var h1=e=>{throw TypeError(e)};var my=(e,t,n)=>t.has(e)||h1("Cannot "+n);var T=(e,t,n)=>(my(e,t,"read from private field"),n?n.call(e):t.get(e)),ne=(e,t,n)=>t.has(e)?h1("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),V=(e,t,n,r)=>(my(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),he=(e,t,n)=>(my(e,t,"access private method"),n);var af=(e,t,n,r)=>({set _(a){V(e,t,a,n)},get _(){return T(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 He(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var RA={exports:{}},Gh={};/**
 * @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 MP=Symbol.for("react.transitional.element"),RP=Symbol.for("react.fragment");function PA(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:MP,type:e,key:r,ref:t!==void 0?t:null,props:n}}Gh.Fragment=RP;Gh.jsx=PA;Gh.jsxs=PA;RA.exports=Gh;var c=RA.exports,$A={exports:{}},ue={};/**
 * @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 k0=Symbol.for("react.transitional.element"),PP=Symbol.for("react.portal"),$P=Symbol.for("react.fragment"),DP=Symbol.for("react.strict_mode"),kP=Symbol.for("react.profiler"),LP=Symbol.for("react.consumer"),zP=Symbol.for("react.context"),BP=Symbol.for("react.forward_ref"),IP=Symbol.for("react.suspense"),UP=Symbol.for("react.memo"),DA=Symbol.for("react.lazy"),HP=Symbol.for("react.activity"),p1=Symbol.iterator;function qP(e){return e===null||typeof e!="object"?null:(e=p1&&e[p1]||e["@@iterator"],typeof e=="function"?e:null)}var kA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},LA=Object.assign,zA={};function os(e,t,n){this.props=e,this.context=t,this.refs=zA,this.updater=n||kA}os.prototype.isReactComponent={};os.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")};os.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function BA(){}BA.prototype=os.prototype;function L0(e,t,n){this.props=e,this.context=t,this.refs=zA,this.updater=n||kA}var z0=L0.prototype=new BA;z0.constructor=L0;LA(z0,os.prototype);z0.isPureReactComponent=!0;var y1=Array.isArray;function zm(){}var et={H:null,A:null,T:null,S:null},IA=Object.prototype.hasOwnProperty;function B0(e,t,n){var r=n.ref;return{$$typeof:k0,type:e,key:t,ref:r!==void 0?r:null,props:n}}function FP(e,t){return B0(e.type,t,e.props)}function I0(e){return typeof e=="object"&&e!==null&&e.$$typeof===k0}function GP(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var m1=/\/+/g;function vy(e,t){return typeof e=="object"&&e!==null&&e.key!=null?GP(""+e.key):t.toString(36)}function KP(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(zm,zm):(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 Mo(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 k0:case PP:o=!0;break;case DA:return o=e._init,Mo(o(e._payload),t,n,r,a)}}if(o)return a=a(e),o=r===""?"."+vy(e,0):r,y1(a)?(n="",o!=null&&(n=o.replace(m1,"$&/")+"/"),Mo(a,t,n,"",function(u){return u})):a!=null&&(I0(a)&&(a=FP(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(m1,"$&/")+"/")+o)),t.push(a)),1;o=0;var l=r===""?".":r+":";if(y1(e))for(var s=0;s<e.length;s++)r=e[s],i=l+vy(r,s),o+=Mo(r,t,n,i,a);else if(s=qP(e),typeof s=="function")for(e=s.call(e),s=0;!(r=e.next()).done;)r=r.value,i=l+vy(r,s++),o+=Mo(r,t,n,i,a);else if(i==="object"){if(typeof e.then=="function")return Mo(KP(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 Mo(e,r,"","",function(i){return t.call(n,i,a++)}),r}function YP(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 v1=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)},VP={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(!I0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ue.Activity=HP;ue.Children=VP;ue.Component=os;ue.Fragment=$P;ue.Profiler=kP;ue.PureComponent=L0;ue.StrictMode=DP;ue.Suspense=IP;ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=et;ue.__COMPILER_RUNTIME={__proto__:null,c:function(e){return et.H.useMemoCache(e)}};ue.cache=function(e){return function(){return e.apply(null,arguments)}};ue.cacheSignal=function(){return null};ue.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=LA({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!IA.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 B0(e.type,a,r)};ue.createContext=function(e){return e={$$typeof:zP,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:LP,_context:e},e};ue.createElement=function(e,t,n){var r,a={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)IA.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 B0(e,i,a)};ue.createRef=function(){return{current:null}};ue.forwardRef=function(e){return{$$typeof:BP,render:e}};ue.isValidElement=I0;ue.lazy=function(e){return{$$typeof:DA,_payload:{_status:-1,_result:e},_init:YP}};ue.memo=function(e,t){return{$$typeof:UP,type:e,compare:t===void 0?null:t}};ue.startTransition=function(e){var t=et.T,n={};et.T=n;try{var r=e(),a=et.S;a!==null&&a(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(zm,v1)}catch(i){v1(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),et.T=t}};ue.unstable_useCacheRefresh=function(){return et.H.useCacheRefresh()};ue.use=function(e){return et.H.use(e)};ue.useActionState=function(e,t,n){return et.H.useActionState(e,t,n)};ue.useCallback=function(e,t){return et.H.useCallback(e,t)};ue.useContext=function(e){return et.H.useContext(e)};ue.useDebugValue=function(){};ue.useDeferredValue=function(e,t){return et.H.useDeferredValue(e,t)};ue.useEffect=function(e,t){return et.H.useEffect(e,t)};ue.useEffectEvent=function(e){return et.H.useEffectEvent(e)};ue.useId=function(){return et.H.useId()};ue.useImperativeHandle=function(e,t,n){return et.H.useImperativeHandle(e,t,n)};ue.useInsertionEffect=function(e,t){return et.H.useInsertionEffect(e,t)};ue.useLayoutEffect=function(e,t){return et.H.useLayoutEffect(e,t)};ue.useMemo=function(e,t){return et.H.useMemo(e,t)};ue.useOptimistic=function(e,t){return et.H.useOptimistic(e,t)};ue.useReducer=function(e,t,n){return et.H.useReducer(e,t,n)};ue.useRef=function(e){return et.H.useRef(e)};ue.useState=function(e){return et.H.useState(e)};ue.useSyncExternalStore=function(e,t,n){return et.H.useSyncExternalStore(e,t,n)};ue.useTransition=function(){return et.H.useTransition()};ue.version="19.2.7";$A.exports=ue;var j=$A.exports;const M=He(j);var UA={exports:{}},Kh={},HA={exports:{}},qA={};/**
 * @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,L){var z=R.length;R.push(L);e:for(;0<z;){var q=z-1>>>1,G=R[q];if(0<a(G,L))R[q]=L,R[z]=G,z=q;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var L=R[0],z=R.pop();if(z!==L){R[0]=z;e:for(var q=0,G=R.length,Q=G>>>1;q<Q;){var K=2*(q+1)-1,te=R[K],ye=K+1,Le=R[ye];if(0>a(te,z))ye<G&&0>a(Le,te)?(R[q]=Le,R[ye]=z,q=ye):(R[q]=te,R[K]=z,q=K);else if(ye<G&&0>a(Le,z))R[q]=Le,R[ye]=z,q=ye;else break e}}return L}function a(R,L){var z=R.sortIndex-L.sortIndex;return z!==0?z:R.id-L.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,v=!1,x=!1,y=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;function S(R){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=R)r(u),L.sortIndex=L.expirationTime,t(s,L);else break;L=n(u)}}function w(R){if(v=!1,S(R),!b)if(n(s)!==null)b=!0,O||(O=!0,P());else{var L=n(u);L!==null&&k(w,L.startTime-R)}}var O=!1,A=-1,E=5,_=-1;function N(){return x?!0:!(e.unstable_now()-_<E)}function D(){if(x=!1,O){var R=e.unstable_now();_=R;var L=!0;try{e:{b=!1,v&&(v=!1,m(A),A=-1),p=!0;var z=h;try{t:{for(S(R),f=n(s);f!==null&&!(f.expirationTime>R&&N());){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,S(R),L=!0;break t}f===n(s)&&r(s),S(R)}else r(s);f=n(s)}if(f!==null)L=!0;else{var Q=n(u);Q!==null&&k(w,Q.startTime-R),L=!1}}break e}finally{f=null,h=z,p=!1}L=void 0}}finally{L?P():O=!1}}}var P;if(typeof g=="function")P=function(){g(D)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,$=I.port2;I.port1.onmessage=D,P=function(){$.postMessage(null)}}else P=function(){y(D,0)};function k(R,L){A=y(function(){R(e.unstable_now())},L)}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"):E=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 L=3;break;default:L=h}var z=h;h=L;try{return R()}finally{h=z}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(R,L){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var z=h;h=R;try{return L()}finally{h=z}},e.unstable_scheduleCallback=function(R,L,z){var q=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?q+z:q):z=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=z+G,R={id:d++,callback:L,priorityLevel:R,startTime:z,expirationTime:G,sortIndex:-1},z>q?(R.sortIndex=z,t(u,R),n(s)===null&&R===n(u)&&(v?(m(A),A=-1):v=!0,k(w,z-q))):(R.sortIndex=G,t(s,R),b||p||(b=!0,O||(O=!0,P()))),R},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(R){var L=h;return function(){var z=h;h=L;try{return R.apply(this,arguments)}finally{h=z}}}})(qA);HA.exports=qA;var XP=HA.exports,FA={exports:{}},nn={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var QP=j;function GA(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 Sa(){}var Zt={d:{f:Sa,r:function(){throw Error(GA(522))},D:Sa,C:Sa,L:Sa,m:Sa,X:Sa,S:Sa,M:Sa},p:0,findDOMNode:null},WP=Symbol.for("react.portal");function ZP(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:WP,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var ou=QP.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Yh(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}nn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Zt;nn.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(GA(299));return ZP(e,t,null,n)};nn.flushSync=function(e){var t=ou.T,n=Zt.p;try{if(ou.T=null,Zt.p=2,e)return e()}finally{ou.T=t,Zt.p=n,Zt.d.f()}};nn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Zt.d.C(e,t))};nn.prefetchDNS=function(e){typeof e=="string"&&Zt.d.D(e)};nn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=Yh(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Zt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:i}):n==="script"&&Zt.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};nn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Yh(t.as,t.crossOrigin);Zt.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&&Zt.d.M(e)};nn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=Yh(n,t.crossOrigin);Zt.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})}};nn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Yh(t.as,t.crossOrigin);Zt.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 Zt.d.m(e)};nn.requestFormReset=function(e){Zt.d.r(e)};nn.unstable_batchedUpdates=function(e,t){return e(t)};nn.useFormState=function(e,t,n){return ou.H.useFormState(e,t,n)};nn.useFormStatus=function(){return ou.H.useHostTransitionStatus()};nn.version="19.2.7";function KA(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(KA)}catch(e){console.error(e)}}KA(),FA.exports=nn;var JP=FA.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 At=XP,YA=j,e3=JP;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 VA(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Mc(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function XA(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 QA(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 g1(e){if(Mc(e)!==e)throw Error(U(188))}function t3(e){var t=e.alternate;if(!t){if(t=Mc(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 g1(a),e;if(i===r)return g1(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 WA(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=WA(e),t!==null)return t;e=e.sibling}return null}var tt=Object.assign,n3=Symbol.for("react.element"),sf=Symbol.for("react.transitional.element"),Js=Symbol.for("react.portal"),Do=Symbol.for("react.fragment"),ZA=Symbol.for("react.strict_mode"),Bm=Symbol.for("react.profiler"),JA=Symbol.for("react.consumer"),Vr=Symbol.for("react.context"),U0=Symbol.for("react.forward_ref"),Im=Symbol.for("react.suspense"),Um=Symbol.for("react.suspense_list"),H0=Symbol.for("react.memo"),Oa=Symbol.for("react.lazy"),Hm=Symbol.for("react.activity"),r3=Symbol.for("react.memo_cache_sentinel"),b1=Symbol.iterator;function $s(e){return e===null||typeof e!="object"?null:(e=b1&&e[b1]||e["@@iterator"],typeof e=="function"?e:null)}var a3=Symbol.for("react.client.reference");function qm(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===a3?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Do:return"Fragment";case Bm:return"Profiler";case ZA:return"StrictMode";case Im:return"Suspense";case Um:return"SuspenseList";case Hm:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Js:return"Portal";case Vr:return e.displayName||"Context";case JA:return(e._context.displayName||"Context")+".Consumer";case U0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H0:return t=e.displayName||null,t!==null?t:qm(e.type)||"Memo";case Oa:t=e._payload,e=e._init;try{return qm(e(t))}catch{}}return null}var eu=Array.isArray,ie=YA.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ne=e3.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Fi={pending:!1,data:null,method:null,action:null},Fm=[],ko=-1;function Tr(e){return{current:e}}function Rt(e){0>ko||(e.current=Fm[ko],Fm[ko]=null,ko--)}function Ye(e,t){ko++,Fm[ko]=e.current,e.current=t}var jr=Tr(null),Eu=Tr(null),Ka=Tr(null),sd=Tr(null);function ud(e,t){switch(Ye(Ka,t),Ye(Eu,e),Ye(jr,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?AS(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=AS(t),e=bT(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Rt(jr),Ye(jr,e)}function Ol(){Rt(jr),Rt(Eu),Rt(Ka)}function Gm(e){e.memoizedState!==null&&Ye(sd,e);var t=jr.current,n=bT(t,e.type);t!==n&&(Ye(Eu,e),Ye(jr,n))}function cd(e){Eu.current===e&&(Rt(jr),Rt(Eu)),sd.current===e&&(Rt(sd),Lu._currentValue=Fi)}var gy,x1;function Si(e){if(gy===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);gy=t&&t[1]||"",x1=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+gy+e+x1}var by=!1;function xy(e,t){if(!e||by)return"";by=!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{by=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Si(n):""}function i3(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 xy(e.type,!1);case 11:return xy(e.type.render,!1);case 1:return xy(e.type,!0);case 31:return Si("Activity");default:return""}}function S1(e){try{var t="",n=null;do t+=i3(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}var Km=Object.prototype.hasOwnProperty,q0=At.unstable_scheduleCallback,Sy=At.unstable_cancelCallback,o3=At.unstable_shouldYield,l3=At.unstable_requestPaint,Tn=At.unstable_now,s3=At.unstable_getCurrentPriorityLevel,eE=At.unstable_ImmediatePriority,tE=At.unstable_UserBlockingPriority,fd=At.unstable_NormalPriority,u3=At.unstable_LowPriority,nE=At.unstable_IdlePriority,c3=At.log,f3=At.unstable_setDisableYieldValue,Rc=null,Nn=null;function Ia(e){if(typeof c3=="function"&&f3(e),Nn&&typeof Nn.setStrictMode=="function")try{Nn.setStrictMode(Rc,e)}catch{}}var Cn=Math.clz32?Math.clz32:p3,d3=Math.log,h3=Math.LN2;function p3(e){return e>>>=0,e===0?32:31-(d3(e)/h3|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 Vh(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 Pc(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function y3(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 rE(){var e=ff;return ff<<=1,!(ff&62914560)&&(ff=4194304),e}function wy(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $c(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function m3(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-Cn(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&&aE(e,r,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function aE(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Cn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function iE(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Cn(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function oE(e,t){var n=t&-t;return n=n&42?1:F0(n),n&(e.suspendedLanes|t)?0:n}function F0(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 G0(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function lE(){var e=Ne.p;return e!==0?e:(e=window.event,e===void 0?32:CT(e.type))}function w1(e,t){var n=Ne.p;try{return Ne.p=e,t()}finally{Ne.p=n}}var si=Math.random().toString(36).slice(2),zt="__reactFiber$"+si,yn="__reactProps$"+si,ls="__reactContainer$"+si,Ym="__reactEvents$"+si,v3="__reactListeners$"+si,g3="__reactHandles$"+si,O1="__reactResources$"+si,Dc="__reactMarker$"+si;function K0(e){delete e[zt],delete e[yn],delete e[Ym],delete e[v3],delete e[g3]}function Lo(e){var t=e[zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ls]||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 ss(e){if(e=e[zt]||e[ls]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function tu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(U(33))}function Jo(e){var t=e[O1];return t||(t=e[O1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ct(e){e[Dc]=!0}var sE=new Set,uE={};function fo(e,t){jl(e,t),jl(e+"Capture",t)}function jl(e,t){for(uE[e]=t,e=0;e<t.length;e++)sE.add(t[e])}var b3=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]*$"),j1={},A1={};function x3(e){return Km.call(A1,e)?!0:Km.call(j1,e)?!1:b3.test(e)?A1[e]=!0:(j1[e]=!0,!1)}function If(e,t,n){if(x3(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 $r(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 cE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function S3(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 Vm(e){if(!e._valueTracker){var t=cE(e)?"checked":"value";e._valueTracker=S3(e,t,""+e[t])}}function fE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=cE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function dd(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 w3=/[\n"\\]/g;function Fn(e){return e.replace(w3,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Xm(e,t,n,r,a,i,o,l){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Un(t)):e.value!==""+Un(t)&&(e.value=""+Un(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Qm(e,o,Un(t)):n!=null?Qm(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 dE(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)){Vm(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),Vm(e)}function Qm(e,t,n){t==="number"&&dd(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function el(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 hE(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 pE(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(U(92));if(eu(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),Vm(e)}function Al(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var O3=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 E1(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||O3.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function yE(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&&E1(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&E1(e,i,t[i])}function Y0(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 j3=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"]]),A3=/^[\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 Uf(e){return A3.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Xr(){}var Wm=null;function V0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zo=null,tl=null;function _1(e){var t=ss(e);if(t&&(e=t.stateNode)){var n=e[yn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Xm(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Fn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[yn]||null;if(!a)throw Error(U(90));Xm(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&fE(r)}break e;case"textarea":hE(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&el(e,!!n.multiple,t,!1)}}}var Oy=!1;function mE(e,t,n){if(Oy)return e(t,n);Oy=!0;try{var r=e(t);return r}finally{if(Oy=!1,(zo!==null||tl!==null)&&(op(),zo&&(t=zo,e=tl,tl=zo=null,_1(t),e)))for(t=0;t<e.length;t++)_1(e[t])}}function _u(e,t){var n=e.stateNode;if(n===null)return null;var r=n[yn]||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 oa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zm=!1;if(oa)try{var Ds={};Object.defineProperty(Ds,"passive",{get:function(){Zm=!0}}),window.addEventListener("test",Ds,Ds),window.removeEventListener("test",Ds,Ds)}catch{Zm=!1}var Ua=null,X0=null,Hf=null;function vE(){if(Hf)return Hf;var e,t=X0,n=t.length,r,a="value"in Ua?Ua.value:Ua.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 Hf=a.slice(e,1<r?1-r:void 0)}function qf(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 T1(){return!1}function mn(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:T1,this.isPropagationStopped=T1,this}return tt(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},Xh=mn(ho),kc=tt({},ho,{view:0,detail:0}),E3=mn(kc),jy,Ay,ks,Qh=tt({},kc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Q0,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!==ks&&(ks&&e.type==="mousemove"?(jy=e.screenX-ks.screenX,Ay=e.screenY-ks.screenY):Ay=jy=0,ks=e),jy)},movementY:function(e){return"movementY"in e?e.movementY:Ay}}),N1=mn(Qh),_3=tt({},Qh,{dataTransfer:0}),T3=mn(_3),N3=tt({},kc,{relatedTarget:0}),Ey=mn(N3),C3=tt({},ho,{animationName:0,elapsedTime:0,pseudoElement:0}),M3=mn(C3),R3=tt({},ho,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),P3=mn(R3),$3=tt({},ho,{data:0}),C1=mn($3),D3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},k3={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"},L3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function z3(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=L3[e])?!!t[e]:!1}function Q0(){return z3}var B3=tt({},kc,{key:function(e){if(e.key){var t=D3[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?k3[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Q0,charCode:function(e){return e.type==="keypress"?qf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),I3=mn(B3),U3=tt({},Qh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),M1=mn(U3),H3=tt({},kc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Q0}),q3=mn(H3),F3=tt({},ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),G3=mn(F3),K3=tt({},Qh,{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}),Y3=mn(K3),V3=tt({},ho,{newState:0,oldState:0}),X3=mn(V3),Q3=[9,13,27,32],W0=oa&&"CompositionEvent"in window,lu=null;oa&&"documentMode"in document&&(lu=document.documentMode);var W3=oa&&"TextEvent"in window&&!lu,gE=oa&&(!W0||lu&&8<lu&&11>=lu),R1=" ",P1=!1;function bE(e,t){switch(e){case"keyup":return Q3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bo=!1;function Z3(e,t){switch(e){case"compositionend":return xE(t);case"keypress":return t.which!==32?null:(P1=!0,R1);case"textInput":return e=t.data,e===R1&&P1?null:e;default:return null}}function J3(e,t){if(Bo)return e==="compositionend"||!W0&&bE(e,t)?(e=vE(),Hf=X0=Ua=null,Bo=!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 gE&&t.locale!=="ko"?null:t.data;default:return null}}var e$={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!e$[e.type]:t==="textarea"}function SE(e,t,n,r){zo?tl?tl.push(r):tl=[r]:zo=r,t=Cd(t,"onChange"),0<t.length&&(n=new Xh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var su=null,Tu=null;function t$(e){mT(e,0)}function Wh(e){var t=tu(e);if(fE(t))return e}function D1(e,t){if(e==="change")return t}var wE=!1;if(oa){var _y;if(oa){var Ty="oninput"in document;if(!Ty){var k1=document.createElement("div");k1.setAttribute("oninput","return;"),Ty=typeof k1.oninput=="function"}_y=Ty}else _y=!1;wE=_y&&(!document.documentMode||9<document.documentMode)}function L1(){su&&(su.detachEvent("onpropertychange",OE),Tu=su=null)}function OE(e){if(e.propertyName==="value"&&Wh(Tu)){var t=[];SE(t,Tu,e,V0(e)),mE(t$,t)}}function n$(e,t,n){e==="focusin"?(L1(),su=t,Tu=n,su.attachEvent("onpropertychange",OE)):e==="focusout"&&L1()}function r$(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wh(Tu)}function a$(e,t){if(e==="click")return Wh(t)}function i$(e,t){if(e==="input"||e==="change")return Wh(t)}function o$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pn=typeof Object.is=="function"?Object.is:o$;function Nu(e,t){if(Pn(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(!Km.call(t,a)||!Pn(e[a],t[a]))return!1}return!0}function z1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function B1(e,t){var n=z1(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=z1(n)}}function jE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function AE(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=dd(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=dd(e.document)}return t}function Z0(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 l$=oa&&"documentMode"in document&&11>=document.documentMode,Io=null,Jm=null,uu=null,ev=!1;function I1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ev||Io==null||Io!==dd(r)||(r=Io,"selectionStart"in r&&Z0(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}),uu&&Nu(uu,r)||(uu=r,r=Cd(Jm,"onSelect"),0<r.length&&(t=new Xh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Io)))}function vi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Uo={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")},Ny={},EE={};oa&&(EE=document.createElement("div").style,"AnimationEvent"in window||(delete Uo.animationend.animation,delete Uo.animationiteration.animation,delete Uo.animationstart.animation),"TransitionEvent"in window||delete Uo.transitionend.transition);function po(e){if(Ny[e])return Ny[e];if(!Uo[e])return e;var t=Uo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in EE)return Ny[e]=t[n];return e}var _E=po("animationend"),TE=po("animationiteration"),NE=po("animationstart"),s$=po("transitionrun"),u$=po("transitionstart"),c$=po("transitioncancel"),CE=po("transitionend"),ME=new Map,tv="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(" ");tv.push("scrollEnd");function hr(e,t){ME.set(e,t),fo(t,[e])}var hd=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=[],Ho=0,J0=0;function Zh(){for(var e=Ho,t=J0=Ho=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&&RE(n,a,i)}}function Jh(e,t,n,r){In[Ho++]=e,In[Ho++]=t,In[Ho++]=n,In[Ho++]=r,J0|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function eb(e,t,n,r){return Jh(e,t,n,r),pd(e)}function yo(e,t){return Jh(e,null,null,t),pd(e)}function RE(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-Cn(n),e=i.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),i):null}function pd(e){if(50<gu)throw gu=0,wv=null,Error(U(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var qo={};function f$(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 An(e,t,n,r){return new f$(e,t,n,r)}function tb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jr(e,t){var n=e.alternate;return n===null?(n=An(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 PE(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 Ff(e,t,n,r,a,i){var o=0;if(r=e,typeof e=="function")tb(e)&&(o=1);else if(typeof e=="string")o=m4(e,n,jr.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Hm:return e=An(31,n,t,a),e.elementType=Hm,e.lanes=i,e;case Do:return Gi(n.children,a,i,t);case ZA:o=8,a|=24;break;case Bm:return e=An(12,n,t,a|2),e.elementType=Bm,e.lanes=i,e;case Im:return e=An(13,n,t,a),e.elementType=Im,e.lanes=i,e;case Um:return e=An(19,n,t,a),e.elementType=Um,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vr:o=10;break e;case JA:o=9;break e;case U0:o=11;break e;case H0:o=14;break e;case Oa:o=16,r=null;break e}o=29,n=Error(U(130,e===null?"null":typeof e,"")),r=null}return t=An(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function Gi(e,t,n,r){return e=An(7,e,r,t),e.lanes=n,e}function Cy(e,t,n){return e=An(6,e,null,t),e.lanes=n,e}function $E(e){var t=An(18,null,null,0);return t.stateNode=e,t}function My(e,t,n){return t=An(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var U1=new WeakMap;function Gn(e,t){if(typeof e=="object"&&e!==null){var n=U1.get(e);return n!==void 0?n:(t={value:e,source:t,stack:S1(t)},U1.set(e,t),t)}return{value:e,source:t,stack:S1(t)}}var Fo=[],Go=0,yd=null,Cu=0,Hn=[],qn=0,ai=null,xr=1,Sr="";function Hr(e,t){Fo[Go++]=Cu,Fo[Go++]=yd,yd=e,Cu=t}function DE(e,t,n){Hn[qn++]=xr,Hn[qn++]=Sr,Hn[qn++]=ai,ai=e;var r=xr;e=Sr;var a=32-Cn(r)-1;r&=~(1<<a),n+=1;var i=32-Cn(t)+a;if(30<i){var o=a-a%5;i=(r&(1<<o)-1).toString(32),r>>=o,a-=o,xr=1<<32-Cn(t)+a|n<<a|r,Sr=i+e}else xr=1<<i|n<<a|r,Sr=e}function nb(e){e.return!==null&&(Hr(e,1),DE(e,1,0))}function rb(e){for(;e===yd;)yd=Fo[--Go],Fo[Go]=null,Cu=Fo[--Go],Fo[Go]=null;for(;e===ai;)ai=Hn[--qn],Hn[qn]=null,Sr=Hn[--qn],Hn[qn]=null,xr=Hn[--qn],Hn[qn]=null}function kE(e,t){Hn[qn++]=xr,Hn[qn++]=Sr,Hn[qn++]=ai,xr=t.id,Sr=t.overflow,ai=e}var Bt=null,Je=null,je=!1,Ya=null,Kn=!1,nv=Error(U(519));function ii(e){var t=Error(U(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Mu(Gn(t,e)),nv}function H1(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[zt]=e,t[yn]=r,n){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(n=0;n<Du.length;n++)xe(Du[n],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),dE(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),pE(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||gT(t.textContent,n)?(r.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),r.onScroll!=null&&xe("scroll",t),r.onScrollEnd!=null&&xe("scrollend",t),r.onClick!=null&&(t.onclick=Xr),t=!0):t=!1,t||ii(e,!0)}function q1(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 Ao(e){if(e!==Bt)return!1;if(!je)return q1(e),je=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||_v(e.type,e.memoizedProps)),n=!n),n&&Je&&ii(e),q1(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));Je=NS(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));Je=NS(e)}else t===27?(t=Je,ui(e.type)?(e=Mv,Mv=null,Je=e):Je=t):Je=Bt?Qn(e.stateNode.nextSibling):null;return!0}function Zi(){Je=Bt=null,je=!1}function Ry(){var e=Ya;return e!==null&&(fn===null?fn=e:fn.push.apply(fn,e),Ya=null),e}function Mu(e){Ya===null?Ya=[e]:Ya.push(e)}var rv=Tr(null),mo=null,Qr=null;function _a(e,t,n){Ye(rv,t._currentValue),t._currentValue=n}function ea(e){e._currentValue=rv.current,Rt(rv)}function av(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 iv(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),av(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),av(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 us(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;Pn(a.pendingProps.value,o.value)||(e!==null?e.push(l):e=[l])}}else if(a===sd.current){if(o=a.alternate,o===null)throw Error(U(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Lu):e=[Lu])}a=a.return}e!==null&&iv(t,e,n,r),t.flags|=262144}function md(e){for(e=e.firstContext;e!==null;){if(!Pn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ji(e){mo=e,Qr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ut(e){return LE(mo,e)}function pf(e,t){return mo===null&&Ji(e),LE(e,t)}function LE(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Qr===null){if(e===null)throw Error(U(308));Qr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Qr=Qr.next=t;return n}var d$=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()})}},h$=At.unstable_scheduleCallback,p$=At.unstable_NormalPriority,mt={$$typeof:Vr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ab(){return{controller:new d$,data:new Map,refCount:0}}function Lc(e){e.refCount--,e.refCount===0&&h$(p$,function(){e.controller.abort()})}var cu=null,ov=0,El=0,nl=null;function y$(e,t){if(cu===null){var n=cu=[];ov=0,El=Nb(),nl={status:"pending",value:void 0,then:function(r){n.push(r)}}}return ov++,t.then(F1,F1),t}function F1(){if(--ov===0&&cu!==null){nl!==null&&(nl.status="fulfilled");var e=cu;cu=null,El=0,nl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function m$(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 G1=ie.S;ie.S=function(e,t){W_=Tn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&y$(e,t),G1!==null&&G1(e,t)};var Ki=Tr(null);function ib(){var e=Ki.current;return e!==null?e:Fe.pooledCache}function Gf(e,t){t===null?Ye(Ki,Ki.current):Ye(Ki,t.pool)}function zE(){var e=ib();return e===null?null:{parent:mt._currentValue,pool:e}}var cs=Error(U(460)),ob=Error(U(474)),ep=Error(U(542)),vd={then:function(){}};function K1(e){return e=e.status,e==="fulfilled"||e==="rejected"}function BE(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Xr,Xr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,V1(e),e;default:if(typeof t.status=="string")t.then(Xr,Xr);else{if(e=Fe,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,V1(e),e}throw Yi=t,cs}}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,cs):n}}var Yi=null;function Y1(){if(Yi===null)throw Error(U(459));var e=Yi;return Yi=null,e}function V1(e){if(e===cs||e===ep)throw Error(U(483))}var rl=null,Ru=0;function yf(e){var t=Ru;return Ru+=1,rl===null&&(rl=[]),BE(rl,e,t)}function Ls(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function mf(e,t){throw t.$$typeof===n3?Error(U(525)):(e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function IE(e){function t(y,m){if(e){var g=y.deletions;g===null?(y.deletions=[m],y.flags|=16):g.push(m)}}function n(y,m){if(!e)return null;for(;m!==null;)t(y,m),m=m.sibling;return null}function r(y){for(var m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function a(y,m){return y=Jr(y,m),y.index=0,y.sibling=null,y}function i(y,m,g){return y.index=g,e?(g=y.alternate,g!==null?(g=g.index,g<m?(y.flags|=67108866,m):g):(y.flags|=67108866,m)):(y.flags|=1048576,m)}function o(y){return e&&y.alternate===null&&(y.flags|=67108866),y}function l(y,m,g,S){return m===null||m.tag!==6?(m=Cy(g,y.mode,S),m.return=y,m):(m=a(m,g),m.return=y,m)}function s(y,m,g,S){var w=g.type;return w===Do?d(y,m,g.props.children,S,g.key):m!==null&&(m.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Oa&&Oi(w)===m.type)?(m=a(m,g.props),Ls(m,g),m.return=y,m):(m=Ff(g.type,g.key,g.props,null,y.mode,S),Ls(m,g),m.return=y,m)}function u(y,m,g,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==g.containerInfo||m.stateNode.implementation!==g.implementation?(m=My(g,y.mode,S),m.return=y,m):(m=a(m,g.children||[]),m.return=y,m)}function d(y,m,g,S,w){return m===null||m.tag!==7?(m=Gi(g,y.mode,S,w),m.return=y,m):(m=a(m,g),m.return=y,m)}function f(y,m,g){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=Cy(""+m,y.mode,g),m.return=y,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case sf:return g=Ff(m.type,m.key,m.props,null,y.mode,g),Ls(g,m),g.return=y,g;case Js:return m=My(m,y.mode,g),m.return=y,m;case Oa:return m=Oi(m),f(y,m,g)}if(eu(m)||$s(m))return m=Gi(m,y.mode,g,null),m.return=y,m;if(typeof m.then=="function")return f(y,yf(m),g);if(m.$$typeof===Vr)return f(y,pf(y,m),g);mf(y,m)}return null}function h(y,m,g,S){var w=m!==null?m.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return w!==null?null:l(y,m,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case sf:return g.key===w?s(y,m,g,S):null;case Js:return g.key===w?u(y,m,g,S):null;case Oa:return g=Oi(g),h(y,m,g,S)}if(eu(g)||$s(g))return w!==null?null:d(y,m,g,S,null);if(typeof g.then=="function")return h(y,m,yf(g),S);if(g.$$typeof===Vr)return h(y,m,pf(y,g),S);mf(y,g)}return null}function p(y,m,g,S,w){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return y=y.get(g)||null,l(m,y,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case sf:return y=y.get(S.key===null?g:S.key)||null,s(m,y,S,w);case Js:return y=y.get(S.key===null?g:S.key)||null,u(m,y,S,w);case Oa:return S=Oi(S),p(y,m,g,S,w)}if(eu(S)||$s(S))return y=y.get(g)||null,d(m,y,S,w,null);if(typeof S.then=="function")return p(y,m,g,yf(S),w);if(S.$$typeof===Vr)return p(y,m,g,pf(m,S),w);mf(m,S)}return null}function b(y,m,g,S){for(var w=null,O=null,A=m,E=m=0,_=null;A!==null&&E<g.length;E++){A.index>E?(_=A,A=null):_=A.sibling;var N=h(y,A,g[E],S);if(N===null){A===null&&(A=_);break}e&&A&&N.alternate===null&&t(y,A),m=i(N,m,E),O===null?w=N:O.sibling=N,O=N,A=_}if(E===g.length)return n(y,A),je&&Hr(y,E),w;if(A===null){for(;E<g.length;E++)A=f(y,g[E],S),A!==null&&(m=i(A,m,E),O===null?w=A:O.sibling=A,O=A);return je&&Hr(y,E),w}for(A=r(A);E<g.length;E++)_=p(A,y,E,g[E],S),_!==null&&(e&&_.alternate!==null&&A.delete(_.key===null?E:_.key),m=i(_,m,E),O===null?w=_:O.sibling=_,O=_);return e&&A.forEach(function(D){return t(y,D)}),je&&Hr(y,E),w}function v(y,m,g,S){if(g==null)throw Error(U(151));for(var w=null,O=null,A=m,E=m=0,_=null,N=g.next();A!==null&&!N.done;E++,N=g.next()){A.index>E?(_=A,A=null):_=A.sibling;var D=h(y,A,N.value,S);if(D===null){A===null&&(A=_);break}e&&A&&D.alternate===null&&t(y,A),m=i(D,m,E),O===null?w=D:O.sibling=D,O=D,A=_}if(N.done)return n(y,A),je&&Hr(y,E),w;if(A===null){for(;!N.done;E++,N=g.next())N=f(y,N.value,S),N!==null&&(m=i(N,m,E),O===null?w=N:O.sibling=N,O=N);return je&&Hr(y,E),w}for(A=r(A);!N.done;E++,N=g.next())N=p(A,y,E,N.value,S),N!==null&&(e&&N.alternate!==null&&A.delete(N.key===null?E:N.key),m=i(N,m,E),O===null?w=N:O.sibling=N,O=N);return e&&A.forEach(function(P){return t(y,P)}),je&&Hr(y,E),w}function x(y,m,g,S){if(typeof g=="object"&&g!==null&&g.type===Do&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case sf:e:{for(var w=g.key;m!==null;){if(m.key===w){if(w=g.type,w===Do){if(m.tag===7){n(y,m.sibling),S=a(m,g.props.children),S.return=y,y=S;break e}}else if(m.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Oa&&Oi(w)===m.type){n(y,m.sibling),S=a(m,g.props),Ls(S,g),S.return=y,y=S;break e}n(y,m);break}else t(y,m);m=m.sibling}g.type===Do?(S=Gi(g.props.children,y.mode,S,g.key),S.return=y,y=S):(S=Ff(g.type,g.key,g.props,null,y.mode,S),Ls(S,g),S.return=y,y=S)}return o(y);case Js:e:{for(w=g.key;m!==null;){if(m.key===w)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){n(y,m.sibling),S=a(m,g.children||[]),S.return=y,y=S;break e}else{n(y,m);break}else t(y,m);m=m.sibling}S=My(g,y.mode,S),S.return=y,y=S}return o(y);case Oa:return g=Oi(g),x(y,m,g,S)}if(eu(g))return b(y,m,g,S);if($s(g)){if(w=$s(g),typeof w!="function")throw Error(U(150));return g=w.call(g),v(y,m,g,S)}if(typeof g.then=="function")return x(y,m,yf(g),S);if(g.$$typeof===Vr)return x(y,m,pf(y,g),S);mf(y,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,m!==null&&m.tag===6?(n(y,m.sibling),S=a(m,g),S.return=y,y=S):(n(y,m),S=Cy(g,y.mode,S),S.return=y,y=S),o(y)):n(y,m)}return function(y,m,g,S){try{Ru=0;var w=x(y,m,g,S);return rl=null,w}catch(A){if(A===cs||A===ep)throw A;var O=An(29,A,null,y.mode);return O.lanes=S,O.return=y,O}finally{}}}var eo=IE(!0),UE=IE(!1),ja=!1;function lb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Te&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=pd(e),RE(e,null,n),t}return Jh(e,r,t,n),pd(e)}function fu(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,iE(e,n)}}function Py(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 sv=!1;function du(){if(sv){var e=nl;if(e!==null)throw e}}function hu(e,t,n,r){sv=!1;var a=e.updateQueue;ja=!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?(we&h)===h:(r&h)===h){h!==0&&h===El&&(sv=!0),d!==null&&(d=d.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var b=e,v=l;h=t;var x=n;switch(v.tag){case 1:if(b=v.payload,typeof b=="function"){f=b.call(x,f,h);break e}f=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=v.payload,h=typeof b=="function"?b.call(x,f,h):b,h==null)break e;f=tt({},f,h);break e;case 2:ja=!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),li|=o,e.lanes=o,e.memoizedState=f}}function HE(e,t){if(typeof e!="function")throw Error(U(191,e));e.call(t)}function qE(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)HE(n[e],t)}var _l=Tr(null),gd=Tr(0);function X1(e,t){e=ca,Ye(gd,e),Ye(_l,t),ca=e|t.baseLanes}function uv(){Ye(gd,ca),Ye(_l,_l.current)}function sb(){ca=gd.current,Rt(_l),Rt(gd)}var $n=Tr(null),Xn=null;function Ta(e){var t=e.alternate;Ye(ct,ct.current&1),Ye($n,e),Xn===null&&(t===null||_l.current!==null||t.memoizedState!==null)&&(Xn=e)}function cv(e){Ye(ct,ct.current),Ye($n,e),Xn===null&&(Xn=e)}function FE(e){e.tag===22?(Ye(ct,ct.current),Ye($n,e),Xn===null&&(Xn=e)):Na()}function Na(){Ye(ct,ct.current),Ye($n,$n.current)}function jn(e){Rt($n),Xn===e&&(Xn=null),Rt(ct)}var ct=Tr(0);function bd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Nv(n)||Cv(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var la=0,de=null,Ue=null,pt=null,xd=!1,al=!1,to=!1,Sd=0,Pu=0,il=null,v$=0;function ot(){throw Error(U(321))}function ub(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pn(e[n],t[n]))return!1;return!0}function cb(e,t,n,r,a,i){return la=i,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ie.H=e===null||e.memoizedState===null?S_:Sb,to=!1,i=n(r,a),to=!1,al&&(i=KE(t,n,r,a)),GE(e),i}function GE(e){ie.H=$u;var t=Ue!==null&&Ue.next!==null;if(la=0,pt=Ue=de=null,xd=!1,Pu=0,il=null,t)throw Error(U(300));e===null||vt||(e=e.dependencies,e!==null&&md(e)&&(vt=!0))}function KE(e,t,n,r){de=e;var a=0;do{if(al&&(il=null),Pu=0,al=!1,25<=a)throw Error(U(301));if(a+=1,pt=Ue=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}ie.H=w_,i=t(n,r)}while(al);return i}function g$(){var e=ie.H,t=e.useState()[0];return t=typeof t.then=="function"?zc(t):t,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(de.flags|=1024),t}function fb(){var e=Sd!==0;return Sd=0,e}function db(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function hb(e){if(xd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}xd=!1}la=0,pt=Ue=de=null,al=!1,Pu=Sd=0,il=null}function Qt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?de.memoizedState=pt=e:pt=pt.next=e,pt}function ft(){if(Ue===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=pt===null?de.memoizedState:pt.next;if(t!==null)pt=t,Ue=e;else{if(e===null)throw de.alternate===null?Error(U(467)):Error(U(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},pt===null?de.memoizedState=pt=e:pt=pt.next=e}return pt}function tp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zc(e){var t=Pu;return Pu+=1,il===null&&(il=[]),e=BE(il,e,t),t=de,(pt===null?t.memoizedState:pt.next)===null&&(t=t.alternate,ie.H=t===null||t.memoizedState===null?S_:Sb),e}function np(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return zc(e);if(e.$$typeof===Vr)return Ut(e)}throw Error(U(438,String(e)))}function pb(e){var t=null,n=de.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=de.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=tp(),de.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]=r3;return t.index++,n}function sa(e,t){return typeof t=="function"?t(e):t}function Kf(e){var t=ft();return yb(t,Ue,e)}function yb(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?(we&f)===f:(la&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===El&&(d=!0);else if((la&h)===h){u=u.next,h===El&&(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,de.lanes|=h,li|=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,de.lanes|=f,li|=f;u=u.next}while(u!==null&&u!==t);if(s===null?o=i:s.next=l,!Pn(i,e.memoizedState)&&(vt=!0,d&&(n=nl,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 $y(e){var t=ft(),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);Pn(i,t.memoizedState)||(vt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function YE(e,t,n){var r=de,a=ft(),i=je;if(i){if(n===void 0)throw Error(U(407));n=n()}else n=t();var o=!Pn((Ue||a).memoizedState,n);if(o&&(a.memoizedState=n,vt=!0),a=a.queue,mb(QE.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||pt!==null&&pt.memoizedState.tag&1){if(r.flags|=2048,Tl(9,{destroy:void 0},XE.bind(null,r,a,n,t),null),Fe===null)throw Error(U(349));i||la&127||VE(r,t,n)}return n}function VE(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=de.updateQueue,t===null?(t=tp(),de.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function XE(e,t,n,r){t.value=n,t.getSnapshot=r,WE(t)&&ZE(e)}function QE(e,t,n){return n(function(){WE(t)&&ZE(e)})}function WE(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pn(e,n)}catch{return!0}}function ZE(e){var t=yo(e,2);t!==null&&hn(t,e,2)}function fv(e){var t=Qt();if(typeof e=="function"){var n=e;if(e=n(),to){Ia(!0);try{n()}finally{Ia(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:e},t}function JE(e,t,n,r){return e.baseState=n,yb(e,Ue,typeof r=="function"?r:sa)}function b$(e,t,n,r,a){if(ap(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,e_(t,i)):(i.next=n.next,t.pending=n.next=i)}}function e_(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var i=ie.T,o={};ie.T=o;try{var l=n(a,r),s=ie.S;s!==null&&s(o,l),Q1(e,t,l)}catch(u){dv(e,t,u)}finally{i!==null&&o.types!==null&&(i.types=o.types),ie.T=i}}else try{i=n(a,r),Q1(e,t,i)}catch(u){dv(e,t,u)}}function Q1(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){W1(e,t,r)},function(r){return dv(e,t,r)}):W1(e,t,n)}function W1(e,t,n){t.status="fulfilled",t.value=n,t_(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,e_(e,n)))}function dv(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,t_(t),t=t.next;while(t!==r)}e.action=null}function t_(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function n_(e,t){return t}function Z1(e,t){if(je){var n=Fe.formState;if(n!==null){e:{var r=de;if(je){if(Je){t:{for(var a=Je,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){Je=Qn(a.nextSibling),r=a.data==="F!";break e}}ii(r)}r=!1}r&&(t=n[0])}}return n=Qt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n_,lastRenderedState:t},n.queue=r,n=g_.bind(null,de,r),r.dispatch=n,r=fv(!1),i=xb.bind(null,de,!1,r.queue),r=Qt(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=b$.bind(null,de,a,i,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function J1(e){var t=ft();return r_(t,Ue,e)}function r_(e,t,n){if(t=yb(e,t,n_)[0],e=Kf(sa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=zc(t)}catch(o){throw o===cs?ep:o}else r=t;t=ft();var a=t.queue,i=a.dispatch;return n!==t.memoizedState&&(de.flags|=2048,Tl(9,{destroy:void 0},x$.bind(null,a,n),null)),[r,i,e]}function x$(e,t){e.action=t}function eS(e){var t=ft(),n=Ue;if(n!==null)return r_(t,n,e);ft(),t=t.memoizedState,n=ft();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Tl(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=de.updateQueue,t===null&&(t=tp(),de.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 a_(){return ft().memoizedState}function Yf(e,t,n,r){var a=Qt();de.flags|=e,a.memoizedState=Tl(1|t,{destroy:void 0},n,r===void 0?null:r)}function rp(e,t,n,r){var a=ft();r=r===void 0?null:r;var i=a.memoizedState.inst;Ue!==null&&r!==null&&ub(r,Ue.memoizedState.deps)?a.memoizedState=Tl(t,i,n,r):(de.flags|=e,a.memoizedState=Tl(1|t,i,n,r))}function tS(e,t){Yf(8390656,8,e,t)}function mb(e,t){rp(2048,8,e,t)}function S$(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=tp(),de.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function i_(e){var t=ft().memoizedState;return S$({ref:t,nextImpl:e}),function(){if(Te&2)throw Error(U(440));return t.impl.apply(void 0,arguments)}}function o_(e,t){return rp(4,2,e,t)}function l_(e,t){return rp(4,4,e,t)}function s_(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 u_(e,t,n){n=n!=null?n.concat([e]):null,rp(4,4,s_.bind(null,t,e),n)}function vb(){}function c_(e,t){var n=ft();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ub(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function f_(e,t){var n=ft();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ub(t,r[1]))return r[0];if(r=e(),to){Ia(!0);try{e()}finally{Ia(!1)}}return n.memoizedState=[r,t],r}function gb(e,t,n){return n===void 0||la&1073741824&&!(we&261930)?e.memoizedState=t:(e.memoizedState=n,e=J_(),de.lanes|=e,li|=e,n)}function d_(e,t,n,r){return Pn(n,t)?n:_l.current!==null?(e=gb(e,n,r),Pn(e,t)||(vt=!0),e):!(la&42)||la&1073741824&&!(we&261930)?(vt=!0,e.memoizedState=n):(e=J_(),de.lanes|=e,li|=e,t)}function h_(e,t,n,r,a){var i=Ne.p;Ne.p=i!==0&&8>i?i:8;var o=ie.T,l={};ie.T=l,xb(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=m$(s,r);pu(e,t,d,Mn(e))}else pu(e,t,r,Mn(e))}catch(f){pu(e,t,{then:function(){},status:"rejected",reason:f},Mn())}finally{Ne.p=i,o!==null&&l.types!==null&&(o.types=l.types),ie.T=o}}function w$(){}function hv(e,t,n,r){if(e.tag!==5)throw Error(U(476));var a=p_(e).queue;h_(e,a,t,Fi,n===null?w$:function(){return y_(e),n(r)})}function p_(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:sa,lastRenderedState:Fi},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function y_(e){var t=p_(e);t.next===null&&(t=e.alternate.memoizedState),pu(e,t.next.queue,{},Mn())}function bb(){return Ut(Lu)}function m_(){return ft().memoizedState}function v_(){return ft().memoizedState}function O$(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Mn();e=Va(n);var r=Xa(t,e,n);r!==null&&(hn(r,t,n),fu(r,t,n)),t={cache:ab()},e.payload=t;return}t=t.return}}function j$(e,t,n){var r=Mn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ap(e)?b_(t,n):(n=eb(e,t,n,r),n!==null&&(hn(n,e,r),x_(n,t,r)))}function g_(e,t,n){var r=Mn();pu(e,t,n,r)}function pu(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ap(e))b_(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,Pn(l,o))return Jh(e,t,a,0),Fe===null&&Zh(),!1}catch{}finally{}if(n=eb(e,t,a,r),n!==null)return hn(n,e,r),x_(n,t,r),!0}return!1}function xb(e,t,n,r){if(r={lane:2,revertLane:Nb(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ap(e)){if(t)throw Error(U(479))}else t=eb(e,n,r,2),t!==null&&hn(t,e,2)}function ap(e){var t=e.alternate;return e===de||t!==null&&t===de}function b_(e,t){al=xd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function x_(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,iE(e,n)}}var $u={readContext:Ut,use:np,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useLayoutEffect:ot,useInsertionEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useSyncExternalStore:ot,useId:ot,useHostTransitionStatus:ot,useFormState:ot,useActionState:ot,useOptimistic:ot,useMemoCache:ot,useCacheRefresh:ot};$u.useEffectEvent=ot;var S_={readContext:Ut,use:np,useCallback:function(e,t){return Qt().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:tS,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Yf(4194308,4,s_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yf(4194308,4,e,t)},useInsertionEffect:function(e,t){Yf(4,2,e,t)},useMemo:function(e,t){var n=Qt();t=t===void 0?null:t;var r=e();if(to){Ia(!0);try{e()}finally{Ia(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Qt();if(n!==void 0){var a=n(t);if(to){Ia(!0);try{n(t)}finally{Ia(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=j$.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=Qt();return e={current:e},t.memoizedState=e},useState:function(e){e=fv(e);var t=e.queue,n=g_.bind(null,de,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:vb,useDeferredValue:function(e,t){var n=Qt();return gb(n,e,t)},useTransition:function(){var e=fv(!1);return e=h_.bind(null,de,e.queue,!0,!1),Qt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=de,a=Qt();if(je){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Fe===null)throw Error(U(349));we&127||VE(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,tS(QE.bind(null,r,i,e),[e]),r.flags|=2048,Tl(9,{destroy:void 0},XE.bind(null,r,i,n,t),null),n},useId:function(){var e=Qt(),t=Fe.identifierPrefix;if(je){var n=Sr,r=xr;n=(r&~(1<<32-Cn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Sd++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=v$++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:bb,useFormState:Z1,useActionState:Z1,useOptimistic:function(e){var t=Qt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=xb.bind(null,de,!0,n),n.dispatch=t,[e,t]},useMemoCache:pb,useCacheRefresh:function(){return Qt().memoizedState=O$.bind(null,de)},useEffectEvent:function(e){var t=Qt(),n={impl:e};return t.memoizedState=n,function(){if(Te&2)throw Error(U(440));return n.impl.apply(void 0,arguments)}}},Sb={readContext:Ut,use:np,useCallback:c_,useContext:Ut,useEffect:mb,useImperativeHandle:u_,useInsertionEffect:o_,useLayoutEffect:l_,useMemo:f_,useReducer:Kf,useRef:a_,useState:function(){return Kf(sa)},useDebugValue:vb,useDeferredValue:function(e,t){var n=ft();return d_(n,Ue.memoizedState,e,t)},useTransition:function(){var e=Kf(sa)[0],t=ft().memoizedState;return[typeof e=="boolean"?e:zc(e),t]},useSyncExternalStore:YE,useId:m_,useHostTransitionStatus:bb,useFormState:J1,useActionState:J1,useOptimistic:function(e,t){var n=ft();return JE(n,Ue,e,t)},useMemoCache:pb,useCacheRefresh:v_};Sb.useEffectEvent=i_;var w_={readContext:Ut,use:np,useCallback:c_,useContext:Ut,useEffect:mb,useImperativeHandle:u_,useInsertionEffect:o_,useLayoutEffect:l_,useMemo:f_,useReducer:$y,useRef:a_,useState:function(){return $y(sa)},useDebugValue:vb,useDeferredValue:function(e,t){var n=ft();return Ue===null?gb(n,e,t):d_(n,Ue.memoizedState,e,t)},useTransition:function(){var e=$y(sa)[0],t=ft().memoizedState;return[typeof e=="boolean"?e:zc(e),t]},useSyncExternalStore:YE,useId:m_,useHostTransitionStatus:bb,useFormState:eS,useActionState:eS,useOptimistic:function(e,t){var n=ft();return Ue!==null?JE(n,Ue,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:pb,useCacheRefresh:v_};w_.useEffectEvent=i_;function Dy(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:tt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var pv={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Mn(),a=Va(r);a.payload=t,n!=null&&(a.callback=n),t=Xa(e,a,r),t!==null&&(hn(t,e,r),fu(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Mn(),a=Va(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Xa(e,a,r),t!==null&&(hn(t,e,r),fu(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Mn(),r=Va(n);r.tag=2,t!=null&&(r.callback=t),t=Xa(e,r,n),t!==null&&(hn(t,e,n),fu(t,e,n))}};function nS(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 rS(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&&pv.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=tt({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function O_(e){hd(e)}function j_(e){console.error(e)}function A_(e){hd(e)}function wd(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function aS(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 yv(e,t,n){return n=Va(n),n.tag=3,n.payload={element:null},n.callback=function(){wd(e,t)},n}function E_(e){return e=Va(e),e.tag=3,e}function __(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(){aS(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){aS(t,n,r),typeof a!="function"&&(Qa===null?Qa=new Set([this]):Qa.add(this));var l=r.stack;this.componentDidCatch(r.value,{componentStack:l!==null?l:""})})}function A$(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&us(t,n,a,!0),n=$n.current,n!==null){switch(n.tag){case 31:case 13:return Xn===null?_d():n.alternate===null&&ut===0&&(ut=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===vd?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Ky(e,r,a)),!1;case 22:return n.flags|=65536,r===vd?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)),Ky(e,r,a)),!1}throw Error(U(435,n.tag))}return Ky(e,r,a),_d(),!1}if(je)return t=$n.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==nv&&(e=Error(U(422),{cause:r}),Mu(Gn(e,n)))):(r!==nv&&(t=Error(U(423),{cause:r}),Mu(Gn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Gn(r,n),a=yv(e.stateNode,r,a),Py(e,a),ut!==4&&(ut=2)),!1;var i=Error(U(520),{cause:r});if(i=Gn(i,n),vu===null?vu=[i]:vu.push(i),ut!==4&&(ut=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=yv(n.stateNode,r,e),Py(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"&&(Qa===null||!Qa.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=E_(a),__(a,e,n,r),Py(n,a),!1}n=n.return}while(n!==null);return!1}var wb=Error(U(461)),vt=!1;function Lt(e,t,n,r){t.child=e===null?UE(t,null,n,r):eo(t,e.child,n,r)}function iS(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=cb(e,t,n,o,i,a),l=fb(),e!==null&&!vt?(db(e,t,a),ua(e,t,a)):(je&&l&&nb(t),t.flags|=1,Lt(e,t,r,a),t.child)}function oS(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!tb(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,T_(e,t,i,r,a)):(e=Ff(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Ob(e,a)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Nu,n(o,r)&&e.ref===t.ref)return ua(e,t,a)}return t.flags|=1,e=Jr(i,r),e.ref=t.ref,e.return=t,t.child=e}function T_(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(Nu(i,r)&&e.ref===t.ref)if(vt=!1,t.pendingProps=r=i,Ob(e,a))e.flags&131072&&(vt=!0);else return t.lanes=e.lanes,ua(e,t,a)}return mv(e,t,n,r,a)}function N_(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 lS(e,t,i,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Gf(t,i!==null?i.cachePool:null),i!==null?X1(t,i):uv(),FE(t);else return r=t.lanes=536870912,lS(e,t,i!==null?i.baseLanes|n:n,n,r)}else i!==null?(Gf(t,i.cachePool),X1(t,i),Na(),t.memoizedState=null):(e!==null&&Gf(t,null),uv(),Na());return Lt(e,t,a,n),t.child}function nu(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function lS(e,t,n,r,a){var i=ib();return i=i===null?null:{parent:mt._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&Gf(t,null),uv(),FE(t),e!==null&&us(e,t,r,!0),t.childLanes=a,null}function Vf(e,t){return t=Od({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function sS(e,t,n){return eo(t,e.child,null,n),e=Vf(t,t.pendingProps),e.flags|=2,jn(t),t.memoizedState=null,e}function E$(e,t,n){var r=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(r.mode==="hidden")return e=Vf(t,r),t.lanes=536870912,nu(null,e);if(cv(t),(e=Je)?(e=ST(e,Kn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ai!==null?{id:xr,overflow:Sr}:null,retryLane:536870912,hydrationErrors:null},n=$E(e),n.return=t,t.child=n,Bt=t,Je=null)):e=null,e===null)throw ii(t);return t.lanes=536870912,null}return Vf(t,r)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(cv(t),a)if(t.flags&256)t.flags&=-257,t=sS(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(U(558));else if(vt||us(e,t,n,!1),a=(n&e.childLanes)!==0,vt||a){if(r=Fe,r!==null&&(o=oE(r,n),o!==0&&o!==i.retryLane))throw i.retryLane=o,yo(e,o),hn(r,e,o),wb;_d(),t=sS(e,t,n)}else e=i.treeContext,Je=Qn(o.nextSibling),Bt=t,je=!0,Ya=null,Kn=!1,e!==null&&kE(t,e),t=Vf(t,r),t.flags|=4096;return t}return e=Jr(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Xf(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 mv(e,t,n,r,a){return Ji(t),n=cb(e,t,n,r,void 0,a),r=fb(),e!==null&&!vt?(db(e,t,a),ua(e,t,a)):(je&&r&&nb(t),t.flags|=1,Lt(e,t,n,a),t.child)}function uS(e,t,n,r,a,i){return Ji(t),t.updateQueue=null,n=KE(t,r,n,a),GE(e),r=fb(),e!==null&&!vt?(db(e,t,i),ua(e,t,i)):(je&&r&&nb(t),t.flags|=1,Lt(e,t,n,i),t.child)}function cS(e,t,n,r,a){if(Ji(t),t.stateNode===null){var i=qo,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=pv,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=r,i.state=t.memoizedState,i.refs={},lb(t),o=n.contextType,i.context=typeof o=="object"&&o!==null?Ut(o):qo,i.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(Dy(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&&pv.enqueueReplaceState(i,i.state,null),hu(t,r,i,a),du(),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=qo,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)&&rS(t,i,r,o),ja=!1;var h=t.memoizedState;i.state=h,hu(t,r,i,a),du(),u=t.memoizedState,l||h!==u||ja?(typeof f=="function"&&(Dy(t,n,f,r),u=t.memoizedState),(s=ja||nS(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,lv(e,t),o=t.memoizedProps,d=no(n,o),i.props=d,f=t.pendingProps,h=i.context,u=n.contextType,s=qo,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)&&rS(t,i,r,s),ja=!1,h=t.memoizedState,i.state=h,hu(t,r,i,a),du();var p=t.memoizedState;o!==f||h!==p||ja||e!==null&&e.dependencies!==null&&md(e.dependencies)?(typeof l=="function"&&(Dy(t,n,l,r),p=t.memoizedState),(d=ja||nS(t,n,d,r,h,p,s)||e!==null&&e.dependencies!==null&&md(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,Xf(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=ua(e,t,a),e}function fS(e,t,n,r){return Zi(),t.flags|=256,Lt(e,t,n,r),t.child}var ky={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ly(e){return{baseLanes:e,cachePool:zE()}}function zy(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=_n),e}function C_(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:(ct.current&2)!==0),o&&(a=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(a?Ta(t):Na(),(e=Je)?(e=ST(e,Kn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ai!==null?{id:xr,overflow:Sr}:null,retryLane:536870912,hydrationErrors:null},n=$E(e),n.return=t,t.child=n,Bt=t,Je=null)):e=null,e===null)throw ii(t);return Cv(e)?t.lanes=32:t.lanes=536870912,null}var l=r.children;return r=r.fallback,a?(Na(),a=t.mode,l=Od({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=Ly(n),r.childLanes=zy(e,o,n),t.memoizedState=ky,nu(null,r)):(Ta(t),vv(t,l))}var s=e.memoizedState;if(s!==null&&(l=s.dehydrated,l!==null)){if(i)t.flags&256?(Ta(t),t.flags&=-257,t=By(e,t,n)):t.memoizedState!==null?(Na(),t.child=e.child,t.flags|=128,t=null):(Na(),l=r.fallback,a=t.mode,r=Od({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=Ly(n),r.childLanes=zy(e,o,n),t.memoizedState=ky,t=nu(null,r));else if(Ta(t),Cv(l)){if(o=l.nextSibling&&l.nextSibling.dataset,o)var u=o.dgst;o=u,r=Error(U(419)),r.stack="",r.digest=o,Mu({value:r,source:null,stack:null}),t=By(e,t,n)}else if(vt||us(e,t,n,!1),o=(n&e.childLanes)!==0,vt||o){if(o=Fe,o!==null&&(r=oE(o,n),r!==0&&r!==s.retryLane))throw s.retryLane=r,yo(e,r),hn(o,e,r),wb;Nv(l)||_d(),t=By(e,t,n)}else Nv(l)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,Je=Qn(l.nextSibling),Bt=t,je=!0,Ya=null,Kn=!1,e!==null&&kE(t,e),t=vv(t,r.children),t.flags|=4096);return t}return a?(Na(),l=r.fallback,a=t.mode,s=e.child,u=s.sibling,r=Jr(s,{mode:"hidden",children:r.children}),r.subtreeFlags=s.subtreeFlags&65011712,u!==null?l=Jr(u,l):(l=Gi(l,a,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,nu(null,r),r=t.child,l=e.child.memoizedState,l===null?l=Ly(n):(a=l.cachePool,a!==null?(s=mt._currentValue,a=a.parent!==s?{parent:s,pool:s}:a):a=zE(),l={baseLanes:l.baseLanes|n,cachePool:a}),r.memoizedState=l,r.childLanes=zy(e,o,n),t.memoizedState=ky,nu(e.child,r)):(Ta(t),n=e.child,e=n.sibling,n=Jr(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 vv(e,t){return t=Od({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Od(e,t){return e=An(22,e,null,t),e.lanes=0,e}function By(e,t,n){return eo(t,e.child,null,n),e=vv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dS(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),av(e.return,t,n)}function Iy(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 M_(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;r=r.children;var o=ct.current,l=(o&2)!==0;if(l?(o=o&1|2,t.flags|=128):o&=1,Ye(ct,o),Lt(e,t,r,n),r=je?Cu:0,!l&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dS(e,n,t);else if(e.tag===19)dS(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&&bd(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Iy(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&&bd(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Iy(t,!0,n,null,i,r);break;case"together":Iy(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function ua(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),li|=t.lanes,!(n&t.childLanes))if(e!==null){if(us(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=Jr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Jr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ob(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&md(e)))}function _$(e,t,n){switch(t.tag){case 3:ud(t,t.stateNode.containerInfo),_a(t,mt,e.memoizedState.cache),Zi();break;case 27:case 5:Gm(t);break;case 4:ud(t,t.stateNode.containerInfo);break;case 10:_a(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,cv(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Ta(t),t.flags|=128,null):n&t.child.childLanes?C_(e,t,n):(Ta(t),e=ua(e,t,n),e!==null?e.sibling:null);Ta(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(us(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return M_(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ye(ct,ct.current),r)break;return null;case 22:return t.lanes=0,N_(e,t,n,t.pendingProps);case 24:_a(t,mt,e.memoizedState.cache)}return ua(e,t,n)}function R_(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)vt=!0;else{if(!Ob(e,n)&&!(t.flags&128))return vt=!1,_$(e,t,n);vt=!!(e.flags&131072)}else vt=!1,je&&t.flags&1048576&&DE(t,Cu,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")tb(e)?(r=no(e,r),t.tag=1,t=cS(null,t,e,r,n)):(t.tag=0,t=mv(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===U0){t.tag=11,t=iS(null,t,e,r,n);break e}else if(a===H0){t.tag=14,t=oS(null,t,e,r,n);break e}}throw t=qm(e)||e,Error(U(306,t,""))}}return t;case 0:return mv(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=no(r,t.pendingProps),cS(e,t,r,a,n);case 3:e:{if(ud(t,t.stateNode.containerInfo),e===null)throw Error(U(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,lv(e,t),hu(t,r,null,n);var o=t.memoizedState;if(r=o.cache,_a(t,mt,r),r!==i.cache&&iv(t,[mt],n,!0),du(),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=fS(e,t,r,n);break e}else if(r!==a){a=Gn(Error(U(424)),t),Mu(a),t=fS(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(Je=Qn(e.firstChild),Bt=t,je=!0,Ya=null,Kn=!0,n=UE(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Zi(),r===a){t=ua(e,t,n);break e}Lt(e,t,r,n)}t=t.child}return t;case 26:return Xf(e,t),e===null?(n=RS(t.type,null,t.pendingProps,null))?t.memoizedState=n:je||(n=t.type,e=t.pendingProps,r=Md(Ka.current).createElement(n),r[zt]=t,r[yn]=e,Ht(r,n,e),Ct(r),t.stateNode=r):t.memoizedState=RS(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Gm(t),e===null&&je&&(r=t.stateNode=wT(t.type,t.pendingProps,Ka.current),Bt=t,Kn=!0,a=Je,ui(t.type)?(Mv=a,Je=Qn(r.firstChild)):Je=a),Lt(e,t,t.pendingProps.children,n),Xf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((a=r=Je)&&(r=r4(r,t.type,t.pendingProps,Kn),r!==null?(t.stateNode=r,Bt=t,Je=Qn(r.firstChild),Kn=!1,a=!0):a=!1),a||ii(t)),Gm(t),a=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,r=i.children,_v(a,i)?r=null:o!==null&&_v(a,o)&&(t.flags|=32),t.memoizedState!==null&&(a=cb(e,t,g$,null,null,n),Lu._currentValue=a),Xf(e,t),Lt(e,t,r,n),t.child;case 6:return e===null&&je&&((e=n=Je)&&(n=a4(n,t.pendingProps,Kn),n!==null?(t.stateNode=n,Bt=t,Je=null,e=!0):e=!1),e||ii(t)),null;case 13:return C_(e,t,n);case 4:return ud(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 iS(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,_a(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 oS(e,t,t.type,t.pendingProps,n);case 15:return T_(e,t,t.type,t.pendingProps,n);case 19:return M_(e,t,n);case 31:return E$(e,t,n);case 22:return N_(e,t,n,t.pendingProps);case 24:return Ji(t),r=Ut(mt),e===null?(a=ib(),a===null&&(a=Fe,i=ab(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},lb(t),_a(t,mt,a)):(e.lanes&n&&(lv(e,t),hu(t,null,null,n),du()),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),_a(t,mt,r)):(r=i.cache,_a(t,mt,r),r!==a.cache&&iv(t,[mt],n,!0))),Lt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(U(156,t.tag))}function Dr(e){e.flags|=4}function Uy(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(nT())e.flags|=8192;else throw Yi=vd,ob}else e.flags&=-16777217}function hS(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!AT(t))if(nT())e.flags|=8192;else throw Yi=vd,ob}function vf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?rE():536870912,e.lanes|=t,Nl|=t)}function zs(e,t){if(!je)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 Qe(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 T$(e,t,n){var r=t.pendingProps;switch(rb(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return Qe(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ea(mt),Ol(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ao(t)?Dr(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ry())),Qe(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(Dr(t),i!==null?(Qe(t),hS(t,i)):(Qe(t),Uy(t,a,null,r,n))):i?i!==e.memoizedState?(Dr(t),Qe(t),hS(t,i)):(Qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Dr(t),Qe(t),Uy(t,a,e,r,n)),null;case 27:if(cd(t),n=Ka.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dr(t);else{if(!r){if(t.stateNode===null)throw Error(U(166));return Qe(t),null}e=jr.current,Ao(t)?H1(t):(e=wT(a,r,n),t.stateNode=e,Dr(t))}return Qe(t),null;case 5:if(cd(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Dr(t);else{if(!r){if(t.stateNode===null)throw Error(U(166));return Qe(t),null}if(i=jr.current,Ao(t))H1(t);else{var o=Md(Ka.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof r.is=="string"?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?i.multiple=!0:r.size&&(i.size=r.size);break;default:i=typeof r.is=="string"?o.createElement(a,{is:r.is}):o.createElement(a)}}i[zt]=t,i[yn]=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&&Dr(t)}}return Qe(t),Uy(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Dr(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(U(166));if(e=Ka.current,Ao(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||gT(e.nodeValue,n)),e||ii(t,!0)}else e=Md(e).createTextNode(r),e[zt]=t,t.stateNode=e}return Qe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ao(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;Qe(t),e=!1}else n=Ry(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(jn(t),t):(jn(t),null);if(t.flags&128)throw Error(U(558))}return Qe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ao(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;Qe(t),a=!1}else a=Ry(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(jn(t),t):(jn(t),null)}return jn(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),Qe(t),null);case 4:return Ol(),e===null&&Cb(t.stateNode.containerInfo),Qe(t),null;case 10:return ea(t.type),Qe(t),null;case 19:if(Rt(ct),r=t.memoizedState,r===null)return Qe(t),null;if(a=(t.flags&128)!==0,i=r.rendering,i===null)if(a)zs(r,!1);else{if(ut!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=bd(e),i!==null){for(t.flags|=128,zs(r,!1),e=i.updateQueue,t.updateQueue=e,vf(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)PE(n,e),n=n.sibling;return Ye(ct,ct.current&1|2),je&&Hr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Tn()>Ad&&(t.flags|=128,a=!0,zs(r,!1),t.lanes=4194304)}else{if(!a)if(e=bd(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,vf(t,e),zs(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!je)return Qe(t),null}else 2*Tn()-r.renderingStartTime>Ad&&n!==536870912&&(t.flags|=128,a=!0,zs(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=Tn(),e.sibling=null,n=ct.current,Ye(ct,a?n&1|2:n&1),je&&Hr(t,r.treeForkCount),e):(Qe(t),null);case 22:case 23:return jn(t),sb(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(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&&Rt(Ki),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ea(mt),Qe(t),null;case 25:return null;case 30:return null}throw Error(U(156,t.tag))}function N$(e,t){switch(rb(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ea(mt),Ol(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return cd(t),null;case 31:if(t.memoizedState!==null){if(jn(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(jn(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 Rt(ct),null;case 4:return Ol(),null;case 10:return ea(t.type),null;case 22:case 23:return jn(t),sb(),e!==null&&Rt(Ki),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ea(mt),null;case 25:return null;default:return null}}function P_(e,t){switch(rb(t),t.tag){case 3:ea(mt),Ol();break;case 26:case 27:case 5:cd(t);break;case 4:Ol();break;case 31:t.memoizedState!==null&&jn(t);break;case 13:jn(t);break;case 19:Rt(ct);break;case 10:ea(t.type);break;case 22:case 23:jn(t),sb(),e!==null&&Rt(Ki);break;case 24:ea(mt)}}function Bc(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var i=n.create,o=n.inst;r=i(),o.destroy=r}n=n.next}while(n!==a)}}catch(l){$e(t,t.return,l)}}function oi(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){$e(a,s,d)}}}r=r.next}while(r!==i)}}catch(d){$e(t,t.return,d)}}function $_(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{qE(t,n)}catch(r){$e(e,e.return,r)}}}function D_(e,t,n){n.props=no(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){$e(e,t,r)}}function yu(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){$e(e,t,a)}}function wr(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(a){$e(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){$e(e,t,a)}else n.current=null}function k_(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){$e(e,e.return,a)}}function Hy(e,t,n){try{var r=e.stateNode;W$(r,e.type,n,t),r[yn]=t}catch(a){$e(e,e.return,a)}}function L_(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ui(e.type)||e.tag===4}function qy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||L_(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&&ui(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 gv(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=Xr));else if(r!==4&&(r===27&&ui(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(gv(e,t,n),e=e.sibling;e!==null;)gv(e,t,n),e=e.sibling}function jd(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&&ui(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(jd(e,t,n),e=e.sibling;e!==null;)jd(e,t,n),e=e.sibling}function z_(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[yn]=n}catch(i){$e(e,e.return,i)}}var Yr=!1,yt=!1,Fy=!1,pS=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function C$(e,t){if(e=e.containerInfo,Av=Dd,e=AE(e),Z0(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(Ev={focusedElem:e,selectionRange:n},Dd=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){switch(t=Nt,i=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&i!==null){e=void 0,n=t,a=i.memoizedProps,i=i.memoizedState,r=n.stateNode;try{var b=no(n.type,a);e=r.getSnapshotBeforeUpdate(b,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(v){$e(n,n.return,v)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Tv(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Tv(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,Nt=e;break}Nt=t.return}}function B_(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Lr(e,n),r&4&&Bc(5,n);break;case 1:if(Lr(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(o){$e(n,n.return,o)}else{var a=no(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){$e(n,n.return,o)}}r&64&&$_(n),r&512&&yu(n,n.return);break;case 3:if(Lr(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{qE(e,t)}catch(o){$e(n,n.return,o)}}break;case 27:t===null&&r&4&&z_(n);case 26:case 5:Lr(e,n),t===null&&r&4&&k_(n),r&512&&yu(n,n.return);break;case 12:Lr(e,n);break;case 31:Lr(e,n),r&4&&H_(e,n);break;case 13:Lr(e,n),r&4&&q_(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=B$.bind(null,n),i4(e,n))));break;case 22:if(r=n.memoizedState!==null||Yr,!r){t=t!==null&&t.memoizedState!==null||yt,a=Yr;var i=yt;Yr=r,(yt=t)&&!i?Br(e,n,(n.subtreeFlags&8772)!==0):Lr(e,n),Yr=a,yt=i}break;case 30:break;default:Lr(e,n)}}function I_(e){var t=e.alternate;t!==null&&(e.alternate=null,I_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&K0(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 nt=null,cn=!1;function kr(e,t,n){for(n=n.child;n!==null;)U_(e,t,n),n=n.sibling}function U_(e,t,n){if(Nn&&typeof Nn.onCommitFiberUnmount=="function")try{Nn.onCommitFiberUnmount(Rc,n)}catch{}switch(n.tag){case 26:yt||wr(n,t),kr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:yt||wr(n,t);var r=nt,a=cn;ui(n.type)&&(nt=n.stateNode,cn=!1),kr(e,t,n),bu(n.stateNode),nt=r,cn=a;break;case 5:yt||wr(n,t);case 6:if(r=nt,a=cn,nt=null,kr(e,t,n),nt=r,cn=a,nt!==null)if(cn)try{(nt.nodeType===9?nt.body:nt.nodeName==="HTML"?nt.ownerDocument.body:nt).removeChild(n.stateNode)}catch(i){$e(n,t,i)}else try{nt.removeChild(n.stateNode)}catch(i){$e(n,t,i)}break;case 18:nt!==null&&(cn?(e=nt,_S(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Pl(e)):_S(nt,n.stateNode));break;case 4:r=nt,a=cn,nt=n.stateNode.containerInfo,cn=!0,kr(e,t,n),nt=r,cn=a;break;case 0:case 11:case 14:case 15:oi(2,n,t),yt||oi(4,n,t),kr(e,t,n);break;case 1:yt||(wr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&D_(n,t,r)),kr(e,t,n);break;case 21:kr(e,t,n);break;case 22:yt=(r=yt)||n.memoizedState!==null,kr(e,t,n),yt=r;break;default:kr(e,t,n)}}function H_(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pl(e)}catch(n){$e(t,t.return,n)}}}function q_(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pl(e)}catch(n){$e(t,t.return,n)}}function M$(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new pS),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new pS),t;default:throw Error(U(435,e.tag))}}function gf(e,t){var n=M$(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=I$.bind(null,e,r);r.then(a,a)}})}function on(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(ui(l.type)){nt=l.stateNode,cn=!1;break e}break;case 5:nt=l.stateNode,cn=!1;break e;case 3:case 4:nt=l.stateNode.containerInfo,cn=!0;break e}l=l.return}if(nt===null)throw Error(U(160));U_(i,o,a),nt=null,cn=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)F_(t,e),t=t.sibling}var lr=null;function F_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:on(t,e),ln(e),r&4&&(oi(3,e,e.return),Bc(3,e),oi(5,e,e.return));break;case 1:on(t,e),ln(e),r&512&&(yt||n===null||wr(n,n.return)),r&64&&Yr&&(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=lr;if(on(t,e),ln(e),r&512&&(yt||n===null||wr(n,n.return)),r&4){var i=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":i=a.getElementsByTagName("title")[0],(!i||i[Dc]||i[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=$S("link","href",a).get(r+(n.href||""));if(o){for(var l=0;l<o.length;l++)if(i=o[l],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(l,1);break t}}i=a.createElement(r),Ht(i,r,n),a.head.appendChild(i);break;case"meta":if(o=$S("meta","content",a).get(r+(n.content||""))){for(l=0;l<o.length;l++)if(i=o[l],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(l,1);break t}}i=a.createElement(r),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 DS(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?DS(a,e.type,e.stateNode):PS(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Hy(e,e.memoizedProps,n.memoizedProps)}break;case 27:on(t,e),ln(e),r&512&&(yt||n===null||wr(n,n.return)),n!==null&&r&4&&Hy(e,e.memoizedProps,n.memoizedProps);break;case 5:if(on(t,e),ln(e),r&512&&(yt||n===null||wr(n,n.return)),e.flags&32){a=e.stateNode;try{Al(a,"")}catch(b){$e(e,e.return,b)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Hy(e,a,n!==null?n.memoizedProps:a)),r&1024&&(Fy=!0);break;case 6:if(on(t,e),ln(e),r&4){if(e.stateNode===null)throw Error(U(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(b){$e(e,e.return,b)}}break;case 3:if(Zf=null,a=lr,lr=Rd(t.containerInfo),on(t,e),lr=a,ln(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pl(t.containerInfo)}catch(b){$e(e,e.return,b)}Fy&&(Fy=!1,G_(e));break;case 4:r=lr,lr=Rd(e.stateNode.containerInfo),on(t,e),ln(e),lr=r;break;case 12:on(t,e),ln(e);break;case 31:on(t,e),ln(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gf(e,r)));break;case 13:on(t,e),ln(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ip=Tn()),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=Yr,d=yt;if(Yr=u||a,yt=d||s,on(t,e),yt=d,Yr=u,ln(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||s||Yr||yt||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){$e(s,s.return,b)}}}else if(t.tag===6){if(n===null){s=t;try{s.stateNode.nodeValue=a?"":s.memoizedProps}catch(b){$e(s,s.return,b)}}}else if(t.tag===18){if(n===null){s=t;try{var p=s.stateNode;a?TS(p,!0):TS(s.stateNode,!1)}catch(b){$e(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:on(t,e),ln(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gf(e,r)));break;case 30:break;case 21:break;default:on(t,e),ln(e)}}function ln(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(L_(r)){n=r;break}r=r.return}if(n==null)throw Error(U(160));switch(n.tag){case 27:var a=n.stateNode,i=qy(e);jd(e,i,a);break;case 5:var o=n.stateNode;n.flags&32&&(Al(o,""),n.flags&=-33);var l=qy(e);jd(e,l,o);break;case 3:case 4:var s=n.stateNode.containerInfo,u=qy(e);gv(e,u,s);break;default:throw Error(U(161))}}catch(d){$e(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function G_(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;G_(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Lr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)B_(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:oi(4,t,t.return),ji(t);break;case 1:wr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&D_(t,t.return,n),ji(t);break;case 27:bu(t.stateNode);case 26:case 5:wr(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 Br(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:Br(a,i,n),Bc(4,i);break;case 1:if(Br(a,i,n),r=i,a=r.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){$e(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++)HE(s[a],l)}catch(u){$e(r,r.return,u)}}n&&o&64&&$_(i),yu(i,i.return);break;case 27:z_(i);case 26:case 5:Br(a,i,n),n&&r===null&&o&4&&k_(i),yu(i,i.return);break;case 12:Br(a,i,n);break;case 31:Br(a,i,n),n&&o&4&&H_(a,i);break;case 13:Br(a,i,n),n&&o&4&&q_(a,i);break;case 22:i.memoizedState===null&&Br(a,i,n),yu(i,i.return);break;case 30:break;default:Br(a,i,n)}t=t.sibling}}function jb(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Lc(n))}function Ab(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Lc(e))}function ar(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)K_(e,t,n,r),t=t.sibling}function K_(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:ar(e,t,n,r),a&2048&&Bc(9,t);break;case 1:ar(e,t,n,r);break;case 3:ar(e,t,n,r),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Lc(e)));break;case 12:if(a&2048){ar(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){$e(t,t.return,s)}}else ar(e,t,n,r);break;case 31:ar(e,t,n,r);break;case 13:ar(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,t.memoizedState!==null?i._visibility&2?ar(e,t,n,r):mu(e,t):i._visibility&2?ar(e,t,n,r):(i._visibility|=2,Ro(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&jb(o,t);break;case 24:ar(e,t,n,r),a&2048&&Ab(t.alternate,t);break;default:ar(e,t,n,r)}}function Ro(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:Ro(i,o,l,s,a),Bc(8,o);break;case 23:break;case 22:var d=o.stateNode;o.memoizedState!==null?d._visibility&2?Ro(i,o,l,s,a):mu(i,o):(d._visibility|=2,Ro(i,o,l,s,a)),a&&u&2048&&jb(o.alternate,o);break;case 24:Ro(i,o,l,s,a),a&&u&2048&&Ab(o.alternate,o);break;default:Ro(i,o,l,s,a)}t=t.sibling}}function mu(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:mu(n,r),a&2048&&jb(r.alternate,r);break;case 24:mu(n,r),a&2048&&Ab(r.alternate,r);break;default:mu(n,r)}t=t.sibling}}var ru=8192;function Eo(e,t,n){if(e.subtreeFlags&ru)for(e=e.child;e!==null;)Y_(e,t,n),e=e.sibling}function Y_(e,t,n){switch(e.tag){case 26:Eo(e,t,n),e.flags&ru&&e.memoizedState!==null&&v4(n,lr,e.memoizedState,e.memoizedProps);break;case 5:Eo(e,t,n);break;case 3:case 4:var r=lr;lr=Rd(e.stateNode.containerInfo),Eo(e,t,n),lr=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=ru,ru=16777216,Eo(e,t,n),ru=r):Eo(e,t,n));break;default:Eo(e,t,n)}}function V_(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 Bs(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Nt=r,Q_(r,e)}V_(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)X_(e),e=e.sibling}function X_(e){switch(e.tag){case 0:case 11:case 15:Bs(e),e.flags&2048&&oi(9,e,e.return);break;case 3:Bs(e);break;case 12:Bs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Qf(e)):Bs(e);break;default:Bs(e)}}function Qf(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Nt=r,Q_(r,e)}V_(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:oi(8,t,t.return),Qf(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Qf(t));break;default:Qf(t)}e=e.sibling}}function Q_(e,t){for(;Nt!==null;){var n=Nt;switch(n.tag){case 0:case 11:case 15:oi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Lc(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Nt=r;else e:for(n=e;Nt!==null;){r=Nt;var a=r.sibling,i=r.return;if(I_(r),r===n){Nt=null;break e}if(a!==null){a.return=i,Nt=a;break e}Nt=i}}}var R$={getCacheForType:function(e){var t=Ut(mt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ut(mt).controller.signal}},P$=typeof WeakMap=="function"?WeakMap:Map,Te=0,Fe=null,Se=null,we=0,Pe=0,xn=null,Ha=!1,fs=!1,Eb=!1,ca=0,ut=0,li=0,Vi=0,_b=0,_n=0,Nl=0,vu=null,fn=null,bv=!1,ip=0,W_=0,Ad=1/0,Ed=null,Qa=null,Ot=0,Wa=null,Cl=null,ta=0,xv=0,Sv=null,Z_=null,gu=0,wv=null;function Mn(){return Te&2&&we!==0?we&-we:ie.T!==null?Nb():lE()}function J_(){if(_n===0)if(!(we&536870912)||je){var e=cf;cf<<=1,!(cf&3932160)&&(cf=262144),_n=e}else _n=536870912;return e=$n.current,e!==null&&(e.flags|=32),_n}function hn(e,t,n){(e===Fe&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)&&(Ml(e,0),qa(e,we,_n,!1)),$c(e,n),(!(Te&2)||e!==Fe)&&(e===Fe&&(!(Te&2)&&(Vi|=n),ut===4&&qa(e,we,_n,!1)),Nr(e))}function eT(e,t,n){if(Te&6)throw Error(U(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Pc(e,t),a=r?k$(e,t):Gy(e,t,!0),i=r;do{if(a===0){fs&&!r&&qa(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!$$(n)){a=Gy(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=vu;var s=l.current.memoizedState.isDehydrated;if(s&&(Ml(l,o).flags|=256),o=Gy(l,o,!1),o!==2){if(Eb&&!s){l.errorRecoveryDisabledLanes|=i,Vi|=i,a=4;break e}i=fn,fn=a,i!==null&&(fn===null?fn=i:fn.push.apply(fn,i))}a=o}if(i=!1,a!==2)continue}}if(a===1){Ml(e,0),qa(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:qa(r,t,_n,!Ha);break e;case 2:fn=null;break;case 3:case 5:break;default:throw Error(U(329))}if((t&62914560)===t&&(a=ip+300-Tn(),10<a)){if(qa(r,t,_n,!Ha),Vh(r,0,!0)!==0)break e;ta=t,r.timeoutHandle=xT(yS.bind(null,r,n,fn,Ed,bv,t,_n,Vi,Nl,Ha,i,"Throttled",-0,0),a);break e}yS(r,n,fn,Ed,bv,t,_n,Vi,Nl,Ha,i,null,-0,0)}}break}while(!0);Nr(e)}function yS(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:Xr},Y_(t,i,f);var b=(i&62914560)===i?ip-Tn():(i&4194048)===i?W_-Tn():0;if(b=g4(f,b),b!==null){ta=i,e.cancelPendingCommit=b(vS.bind(null,e,t,i,n,r,a,o,l,s,d,f,null,h,p)),qa(e,i,o,!u);return}}vS(e,t,i,n,r,a,o,l,s)}function $$(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(!Pn(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 qa(e,t,n,r){t&=~_b,t&=~Vi,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var i=31-Cn(a),o=1<<i;r[i]=-1,a&=~o}n!==0&&aE(e,n,t)}function op(){return Te&6?!0:(Ic(0),!1)}function Tb(){if(Se!==null){if(Pe===0)var e=Se.return;else e=Se,Qr=mo=null,hb(e),rl=null,Ru=0,e=Se;for(;e!==null;)P_(e.alternate,e),e=e.return;Se=null}}function Ml(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,e4(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ta=0,Tb(),Fe=e,Se=n=Jr(e.current,null),we=t,Pe=0,xn=null,Ha=!1,fs=Pc(e,t),Eb=!1,Nl=_n=_b=Vi=li=ut=0,fn=vu=null,bv=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-Cn(r),i=1<<a;t|=e[a],r&=~i}return ca=t,Zh(),n}function tT(e,t){de=null,ie.H=$u,t===cs||t===ep?(t=Y1(),Pe=3):t===ob?(t=Y1(),Pe=4):Pe=t===wb?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,xn=t,Se===null&&(ut=1,wd(e,Gn(t,e.current)))}function nT(){var e=$n.current;return e===null?!0:(we&4194048)===we?Xn===null:(we&62914560)===we||we&536870912?e===Xn:!1}function rT(){var e=ie.H;return ie.H=$u,e===null?$u:e}function aT(){var e=ie.A;return ie.A=R$,e}function _d(){ut=4,Ha||(we&4194048)!==we&&$n.current!==null||(fs=!0),!(li&134217727)&&!(Vi&134217727)||Fe===null||qa(Fe,we,_n,!1)}function Gy(e,t,n){var r=Te;Te|=2;var a=rT(),i=aT();(Fe!==e||we!==t)&&(Ed=null,Ml(e,t)),t=!1;var o=ut;e:do try{if(Pe!==0&&Se!==null){var l=Se,s=xn;switch(Pe){case 8:Tb(),o=6;break e;case 3:case 2:case 9:case 6:$n.current===null&&(t=!0);var u=Pe;if(Pe=0,xn=null,Ko(e,l,s,u),n&&fs){o=0;break e}break;default:u=Pe,Pe=0,xn=null,Ko(e,l,s,u)}}D$(),o=ut;break}catch(d){tT(e,d)}while(!0);return t&&e.shellSuspendCounter++,Qr=mo=null,Te=r,ie.H=a,ie.A=i,Se===null&&(Fe=null,we=0,Zh()),o}function D$(){for(;Se!==null;)iT(Se)}function k$(e,t){var n=Te;Te|=2;var r=rT(),a=aT();Fe!==e||we!==t?(Ed=null,Ad=Tn()+500,Ml(e,t)):fs=Pc(e,t);e:do try{if(Pe!==0&&Se!==null){t=Se;var i=xn;t:switch(Pe){case 1:Pe=0,xn=null,Ko(e,t,i,1);break;case 2:case 9:if(K1(i)){Pe=0,xn=null,mS(t);break}t=function(){Pe!==2&&Pe!==9||Fe!==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:K1(i)?(Pe=0,xn=null,mS(t)):(Pe=0,xn=null,Ko(e,t,i,7));break;case 5:var o=null;switch(Se.tag){case 26:o=Se.memoizedState;case 5:case 27:var l=Se;if(o?AT(o):l.stateNode.complete){Pe=0,xn=null;var s=l.sibling;if(s!==null)Se=s;else{var u=l.return;u!==null?(Se=u,lp(u)):Se=null}break t}}Pe=0,xn=null,Ko(e,t,i,5);break;case 6:Pe=0,xn=null,Ko(e,t,i,6);break;case 8:Tb(),ut=6;break e;default:throw Error(U(462))}}L$();break}catch(d){tT(e,d)}while(!0);return Qr=mo=null,ie.H=r,ie.A=a,Te=n,Se!==null?0:(Fe=null,we=0,Zh(),ut)}function L$(){for(;Se!==null&&!o3();)iT(Se)}function iT(e){var t=R_(e.alternate,e,ca);e.memoizedProps=e.pendingProps,t===null?lp(e):Se=t}function mS(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=uS(n,t,t.pendingProps,t.type,void 0,we);break;case 11:t=uS(n,t,t.pendingProps,t.type.render,t.ref,we);break;case 5:hb(t);default:P_(n,t),t=Se=PE(t,ca),t=R_(n,t,ca)}e.memoizedProps=e.pendingProps,t===null?lp(e):Se=t}function Ko(e,t,n,r){Qr=mo=null,hb(t),rl=null,Ru=0;var a=t.return;try{if(A$(e,a,t,n,we)){ut=1,wd(e,Gn(n,e.current)),Se=null;return}}catch(i){if(a!==null)throw Se=a,i;ut=1,wd(e,Gn(n,e.current)),Se=null;return}t.flags&32768?(je||r===1?e=!0:fs||we&536870912?e=!1:(Ha=e=!0,(r===2||r===9||r===3||r===6)&&(r=$n.current,r!==null&&r.tag===13&&(r.flags|=16384))),oT(t,e)):lp(t)}function lp(e){var t=e;do{if(t.flags&32768){oT(t,Ha);return}e=t.return;var n=T$(t.alternate,t,ca);if(n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);ut===0&&(ut=5)}function oT(e,t){do{var n=N$(e.alternate,e);if(n!==null){n.flags&=32767,Se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=n}while(e!==null);ut=6,Se=null}function vS(e,t,n,r,a,i,o,l,s){e.cancelPendingCommit=null;do sp();while(Ot!==0);if(Te&6)throw Error(U(327));if(t!==null){if(t===e.current)throw Error(U(177));if(i=t.lanes|t.childLanes,i|=J0,m3(e,n,i,o,l,s),e===Fe&&(Se=Fe=null,we=0),Cl=t,Wa=e,ta=n,xv=i,Sv=a,Z_=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,U$(fd,function(){return fT(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=ie.T,ie.T=null,a=Ne.p,Ne.p=2,o=Te,Te|=4;try{C$(e,t,n)}finally{Te=o,Ne.p=a,ie.T=r}}Ot=1,lT(),sT(),uT()}}function lT(){if(Ot===1){Ot=0;var e=Wa,t=Cl,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=ie.T,ie.T=null;var r=Ne.p;Ne.p=2;var a=Te;Te|=4;try{F_(t,e);var i=Ev,o=AE(e.containerInfo),l=i.focusedElem,s=i.selectionRange;if(o!==l&&l&&l.ownerDocument&&jE(l.ownerDocument.documentElement,l)){if(s!==null&&Z0(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,v=Math.min(s.start,b),x=s.end===void 0?v:Math.min(s.end,b);!p.extend&&v>x&&(o=x,x=v,v=o);var y=B1(l,v),m=B1(l,x);if(y&&m&&(p.rangeCount!==1||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==m.node||p.focusOffset!==m.offset)){var g=f.createRange();g.setStart(y.node,y.offset),p.removeAllRanges(),v>x?(p.addRange(g),p.extend(m.node,m.offset)):(g.setEnd(m.node,m.offset),p.addRange(g))}}}}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 S=f[l];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}Dd=!!Av,Ev=Av=null}finally{Te=a,Ne.p=r,ie.T=n}}e.current=t,Ot=2}}function sT(){if(Ot===2){Ot=0;var e=Wa,t=Cl,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=ie.T,ie.T=null;var r=Ne.p;Ne.p=2;var a=Te;Te|=4;try{B_(e,t.alternate,t)}finally{Te=a,Ne.p=r,ie.T=n}}Ot=3}}function uT(){if(Ot===4||Ot===3){Ot=0,l3();var e=Wa,t=Cl,n=ta,r=Z_;t.subtreeFlags&10256||t.flags&10256?Ot=5:(Ot=0,Cl=Wa=null,cT(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Qa=null),G0(n),t=t.stateNode,Nn&&typeof Nn.onCommitFiberRoot=="function")try{Nn.onCommitFiberRoot(Rc,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=ie.T,a=Ne.p,Ne.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,Ne.p=a}}ta&3&&sp(),Nr(e),a=e.pendingLanes,n&261930&&a&42?e===wv?gu++:(gu=0,wv=e):gu=0,Ic(0)}}function cT(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Lc(t)))}function sp(){return lT(),sT(),uT(),fT()}function fT(){if(Ot!==5)return!1;var e=Wa,t=xv;xv=0;var n=G0(ta),r=ie.T,a=Ne.p;try{Ne.p=32>n?32:n,ie.T=null,n=Sv,Sv=null;var i=Wa,o=ta;if(Ot=0,Cl=Wa=null,ta=0,Te&6)throw Error(U(331));var l=Te;if(Te|=4,X_(i.current),K_(i,i.current,o,n),Te=l,Ic(0,!1),Nn&&typeof Nn.onPostCommitFiberRoot=="function")try{Nn.onPostCommitFiberRoot(Rc,i)}catch{}return!0}finally{Ne.p=a,ie.T=r,cT(e,t)}}function gS(e,t,n){t=Gn(n,t),t=yv(e.stateNode,t,2),e=Xa(e,t,2),e!==null&&($c(e,2),Nr(e))}function $e(e,t,n){if(e.tag===3)gS(e,e,n);else for(;t!==null;){if(t.tag===3){gS(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Qa===null||!Qa.has(r))){e=Gn(n,e),n=E_(2),r=Xa(t,n,2),r!==null&&(__(n,r,t,e),$c(r,2),Nr(r));break}}t=t.return}}function Ky(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new P$;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)||(Eb=!0,a.add(n),e=z$.bind(null,e,t,n),t.then(e,e))}function z$(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Fe===e&&(we&n)===n&&(ut===4||ut===3&&(we&62914560)===we&&300>Tn()-ip?!(Te&2)&&Ml(e,0):_b|=n,Nl===we&&(Nl=0)),Nr(e)}function dT(e,t){t===0&&(t=rE()),e=yo(e,t),e!==null&&($c(e,t),Nr(e))}function B$(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),dT(e,n)}function I$(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),dT(e,n)}function U$(e,t){return q0(e,t)}var Td=null,Po=null,Ov=!1,Nd=!1,Yy=!1,Fa=0;function Nr(e){e!==Po&&e.next===null&&(Po===null?Td=Po=e:Po=Po.next=e),Nd=!0,Ov||(Ov=!0,q$())}function Ic(e,t){if(!Yy&&Nd){Yy=!0;do for(var n=!1,r=Td;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-Cn(42|e)+1)-1,i&=a&~(o&~l),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,bS(r,i))}else i=we,i=Vh(r,r===Fe?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(i&3)||Pc(r,i)||(n=!0,bS(r,i));r=r.next}while(n);Yy=!1}}function H$(){hT()}function hT(){Nd=Ov=!1;var e=0;Fa!==0&&J$()&&(e=Fa);for(var t=Tn(),n=null,r=Td;r!==null;){var a=r.next,i=pT(r,t);i===0?(r.next=null,n===null?Td=a:n.next=a,a===null&&(Po=n)):(n=r,(e!==0||i&3)&&(Nd=!0)),r=a}Ot!==0&&Ot!==5||Ic(e),Fa!==0&&(Fa=0)}function pT(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-Cn(i),l=1<<o,s=a[o];s===-1?(!(l&n)||l&r)&&(a[o]=y3(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}if(t=Fe,n=we,n=Vh(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&&Sy(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Pc(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Sy(r),G0(n)){case 2:case 8:n=tE;break;case 32:n=fd;break;case 268435456:n=nE;break;default:n=fd}return r=yT.bind(null,e),n=q0(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Sy(r),e.callbackPriority=2,e.callbackNode=null,2}function yT(e,t){if(Ot!==0&&Ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(sp()&&e.callbackNode!==n)return null;var r=we;return r=Vh(e,e===Fe?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(eT(e,r,t),pT(e,Tn()),e.callbackNode!=null&&e.callbackNode===n?yT.bind(null,e):null)}function bS(e,t){if(sp())return null;eT(e,t,!0)}function q$(){t4(function(){Te&6?q0(eE,H$):hT()})}function Nb(){if(Fa===0){var e=El;e===0&&(e=uf,uf<<=1,!(uf&261888)&&(uf=256)),Fa=e}return Fa}function xS(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Uf(""+e)}function SS(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 F$(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var i=xS((a[yn]||null).action),o=r.submitter;o&&(t=(t=o[yn]||null)?xS(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var l=new Xh("action","action",null,r,a);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Fa!==0){var s=o?SS(a,o):new FormData(a);hv(n,{pending:!0,data:s,method:a.method,action:i},null,s)}}else typeof i=="function"&&(l.preventDefault(),s=o?SS(a,o):new FormData(a),hv(n,{pending:!0,data:s,method:a.method,action:i},i,s))},currentTarget:a}]})}}for(var Vy=0;Vy<tv.length;Vy++){var Xy=tv[Vy],G$=Xy.toLowerCase(),K$=Xy[0].toUpperCase()+Xy.slice(1);hr(G$,"on"+K$)}hr(_E,"onAnimationEnd");hr(TE,"onAnimationIteration");hr(NE,"onAnimationStart");hr("dblclick","onDoubleClick");hr("focusin","onFocus");hr("focusout","onBlur");hr(s$,"onTransitionRun");hr(u$,"onTransitionStart");hr(c$,"onTransitionCancel");hr(CE,"onTransitionEnd");jl("onMouseEnter",["mouseout","mouseover"]);jl("onMouseLeave",["mouseout","mouseover"]);jl("onPointerEnter",["pointerout","pointerover"]);jl("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 Du="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(" "),Y$=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Du));function mT(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){hd(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){hd(d)}a.currentTarget=null,i=s}}}}function xe(e,t){var n=t[Ym];n===void 0&&(n=t[Ym]=new Set);var r=e+"__bubble";n.has(r)||(vT(t,e,2,!1),n.add(r))}function Qy(e,t,n){var r=0;t&&(r|=4),vT(n,e,r,t)}var bf="_reactListening"+Math.random().toString(36).slice(2);function Cb(e){if(!e[bf]){e[bf]=!0,sE.forEach(function(n){n!=="selectionchange"&&(Y$.has(n)||Qy(n,!1,e),Qy(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bf]||(t[bf]=!0,Qy("selectionchange",!1,t))}}function vT(e,t,n,r){switch(CT(t)){case 2:var a=S4;break;case 8:a=w4;break;default:a=$b}n=a.bind(null,t,n,e),a=void 0,!Zm||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 Wy(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=Lo(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}mE(function(){var u=i,d=V0(n),f=[];e:{var h=ME.get(e);if(h!==void 0){var p=Xh,b=e;switch(e){case"keypress":if(qf(n)===0)break e;case"keydown":case"keyup":p=I3;break;case"focusin":b="focus",p=Ey;break;case"focusout":b="blur",p=Ey;break;case"beforeblur":case"afterblur":p=Ey;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=N1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=T3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=q3;break;case _E:case TE:case NE:p=M3;break;case CE:p=G3;break;case"scroll":case"scrollend":p=E3;break;case"wheel":p=Y3;break;case"copy":case"cut":case"paste":p=P3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=M1;break;case"toggle":case"beforetoggle":p=X3}var v=(t&4)!==0,x=!v&&(e==="scroll"||e==="scrollend"),y=v?h!==null?h+"Capture":null:h;v=[];for(var m=u,g;m!==null;){var S=m;if(g=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||g===null||y===null||(S=_u(m,y),S!=null&&v.push(ku(m,S,g))),x)break;m=m.return}0<v.length&&(h=new p(h,b,null,n,d),f.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Wm&&(b=n.relatedTarget||n.fromElement)&&(Lo(b)||b[ls]))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?Lo(b):null,b!==null&&(x=Mc(b),v=b.tag,b!==x||v!==5&&v!==27&&v!==6)&&(b=null)):(p=null,b=u),p!==b)){if(v=N1,S="onMouseLeave",y="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(v=M1,S="onPointerLeave",y="onPointerEnter",m="pointer"),x=p==null?h:tu(p),g=b==null?h:tu(b),h=new v(S,m+"leave",p,n,d),h.target=x,h.relatedTarget=g,S=null,Lo(d)===u&&(v=new v(y,m+"enter",b,n,d),v.target=g,v.relatedTarget=x,S=v),x=S,p&&b)t:{for(v=V$,y=p,m=b,g=0,S=y;S;S=v(S))g++;S=0;for(var w=m;w;w=v(w))S++;for(;0<g-S;)y=v(y),g--;for(;0<S-g;)m=v(m),S--;for(;g--;){if(y===m||m!==null&&y===m.alternate){v=y;break t}y=v(y),m=v(m)}v=null}else v=null;p!==null&&wS(f,h,p,v,!1),b!==null&&x!==null&&wS(f,x,b,v,!0)}}e:{if(h=u?tu(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var O=D1;else if($1(h))if(wE)O=i$;else{O=r$;var A=n$}else p=h.nodeName,!p||p.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?u&&Y0(u.elementType)&&(O=D1):O=a$;if(O&&(O=O(e,u))){SE(f,O,n,d);break e}A&&A(e,h,u),e==="focusout"&&u&&h.type==="number"&&u.memoizedProps.value!=null&&Qm(h,"number",h.value)}switch(A=u?tu(u):window,e){case"focusin":($1(A)||A.contentEditable==="true")&&(Io=A,Jm=u,uu=null);break;case"focusout":uu=Jm=Io=null;break;case"mousedown":ev=!0;break;case"contextmenu":case"mouseup":case"dragend":ev=!1,I1(f,n,d);break;case"selectionchange":if(l$)break;case"keydown":case"keyup":I1(f,n,d)}var E;if(W0)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Bo?bE(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(gE&&n.locale!=="ko"&&(Bo||_!=="onCompositionStart"?_==="onCompositionEnd"&&Bo&&(E=vE()):(Ua=d,X0="value"in Ua?Ua.value:Ua.textContent,Bo=!0)),A=Cd(u,_),0<A.length&&(_=new C1(_,e,null,n,d),f.push({event:_,listeners:A}),E?_.data=E:(E=xE(n),E!==null&&(_.data=E)))),(E=W3?Z3(e,n):J3(e,n))&&(_=Cd(u,"onBeforeInput"),0<_.length&&(A=new C1("onBeforeInput","beforeinput",null,n,d),f.push({event:A,listeners:_}),A.data=E)),F$(f,e,u,n,d)}mT(f,t)})}function ku(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Cd(e,t){for(var n=t+"Capture",r=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=_u(e,n),a!=null&&r.unshift(ku(e,a,i)),a=_u(e,t),a!=null&&r.push(ku(e,a,i))),e.tag===3)return r;e=e.return}return[]}function V$(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function wS(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=_u(n,i),u!=null&&o.unshift(ku(n,u,s))):a||(u=_u(n,i),u!=null&&o.push(ku(n,u,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var X$=/\r\n?/g,Q$=/\u0000|\uFFFD/g;function OS(e){return(typeof e=="string"?e:""+e).replace(X$,`
`).replace(Q$,"")}function gT(e,t){return t=OS(t),OS(e)===t}function Be(e,t,n,r,a,i){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Al(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Al(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":yE(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=Uf(""+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"&&Be(e,t,"name",a.name,a,null),Be(e,t,"formEncType",a.formEncType,a,null),Be(e,t,"formMethod",a.formMethod,a,null),Be(e,t,"formTarget",a.formTarget,a,null)):(Be(e,t,"encType",a.encType,a,null),Be(e,t,"method",a.method,a,null),Be(e,t,"target",a.target,a,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Uf(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=Xr);break;case"onScroll":r!=null&&xe("scroll",e);break;case"onScrollEnd":r!=null&&xe("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=Uf(""+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":xe("beforetoggle",e),xe("toggle",e),If(e,"popover",r);break;case"xlinkActuate":$r(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":$r(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":$r(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":$r(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":$r(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":$r(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":$r(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":$r(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":$r(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":If(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=j3.get(n)||n,If(e,n,r))}}function jv(e,t,n,r,a,i){switch(n){case"style":yE(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"?Al(e,r):(typeof r=="number"||typeof r=="bigint")&&Al(e,""+r);break;case"onScroll":r!=null&&xe("scroll",e);break;case"onScrollEnd":r!=null&&xe("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Xr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!uE.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[yn]||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,""):If(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":xe("error",e),xe("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:Be(e,t,i,o,n,null)}}a&&Be(e,t,"srcSet",n.srcSet,n,null),r&&Be(e,t,"src",n.src,n,null);return;case"input":xe("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:Be(e,t,r,d,n,null)}}dE(e,i,l,s,u,o,a,!1);return;case"select":xe("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:Be(e,t,a,l,n,null)}t=i,n=o,e.multiple=!!r,t!=null?el(e,!!r,t,!1):n!=null&&el(e,!!r,n,!0);return;case"textarea":xe("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:Be(e,t,o,l,n,null)}pE(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:Be(e,t,s,r,n,null)}return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(r=0;r<Du.length;r++)xe(Du[r],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("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:Be(e,t,u,r,n,null)}return;default:if(Y0(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&jv(e,t,d,r,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!=null&&Be(e,t,l,r,n,null))}function W$(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)||Be(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&&Be(e,t,h,p,r,f)}}Xm(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)||Be(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&&Be(e,t,a,i,r,s)}t=l,n=o,r=p,h!=null?el(e,!!n,h,!1):!!r!=!!n&&(t!=null?el(e,!!n,t,!0):el(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:Be(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&&Be(e,t,o,a,r,i)}hE(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:Be(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:Be(e,t,s,h,r,p)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in n)h=n[v],n.hasOwnProperty(v)&&h!=null&&!r.hasOwnProperty(v)&&Be(e,t,v,null,r,h);for(u in r)if(h=r[u],p=n[u],r.hasOwnProperty(u)&&h!==p&&(h!=null||p!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(U(137,t));break;default:Be(e,t,u,h,r,p)}return;default:if(Y0(t)){for(var x in n)h=n[x],n.hasOwnProperty(x)&&h!==void 0&&!r.hasOwnProperty(x)&&jv(e,t,x,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||jv(e,t,d,h,r,p);return}}for(var y in n)h=n[y],n.hasOwnProperty(y)&&h!=null&&!r.hasOwnProperty(y)&&Be(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||Be(e,t,f,h,r,p)}function jS(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Z$(){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&&jS(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&&jS(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 Av=null,Ev=null;function Md(e){return e.nodeType===9?e:e.ownerDocument}function AS(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 bT(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 _v(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 Zy=null;function J$(){var e=window.event;return e&&e.type==="popstate"?e===Zy?!1:(Zy=e,!0):(Zy=null,!1)}var xT=typeof setTimeout=="function"?setTimeout:void 0,e4=typeof clearTimeout=="function"?clearTimeout:void 0,ES=typeof Promise=="function"?Promise:void 0,t4=typeof queueMicrotask=="function"?queueMicrotask:typeof ES<"u"?function(e){return ES.resolve(null).then(e).catch(n4)}:xT;function n4(e){setTimeout(function(){throw e})}function ui(e){return e==="head"}function _S(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),Pl(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")bu(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,bu(n);for(var i=n.firstChild;i;){var o=i.nextSibling,l=i.nodeName;i[Dc]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=o}}else n==="body"&&bu(e.ownerDocument.body);n=a}while(n);Pl(t)}function TS(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 Tv(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":Tv(n),K0(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function r4(e,t,n,r){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Dc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Qn(e.nextSibling),e===null)break}return null}function a4(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 ST(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 Nv(e){return e.data==="$?"||e.data==="$~"}function Cv(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function i4(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 Mv=null;function NS(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 wT(e,t,n){switch(t=Md(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 bu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);K0(e)}var Zn=new Map,MS=new Set;function Rd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ma=Ne.d;Ne.d={f:o4,r:l4,D:s4,C:u4,L:c4,m:f4,X:h4,S:d4,M:p4};function o4(){var e=ma.f(),t=op();return e||t}function l4(e){var t=ss(e);t!==null&&t.tag===5&&t.type==="form"?y_(t):ma.r(e)}var ds=typeof document>"u"?null:document;function OT(e,t,n){var r=ds;if(r&&typeof t=="string"&&t){var a=Fn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),MS.has(a)||(MS.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 s4(e){ma.D(e),OT("dns-prefetch",e,null)}function u4(e,t){ma.C(e,t),OT("preconnect",e,t)}function c4(e,t,n){ma.L(e,t,n);var r=ds;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=Rl(e);break;case"script":i=hs(e)}Zn.has(i)||(e=tt({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Zn.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(Uc(i))||t==="script"&&r.querySelector(Hc(i))||(t=r.createElement("link"),Ht(t,"link",e),Ct(t),r.head.appendChild(t)))}}function f4(e,t){ma.m(e,t);var n=ds;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=hs(e)}if(!Zn.has(i)&&(e=tt({rel:"modulepreload",href:e},t),Zn.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Hc(i)))return}r=n.createElement("link"),Ht(r,"link",e),Ct(r),n.head.appendChild(r)}}}function d4(e,t,n){ma.S(e,t,n);var r=ds;if(r&&e){var a=Jo(r).hoistableStyles,i=Rl(e);t=t||"default";var o=a.get(i);if(!o){var l={loading:0,preload:null};if(o=r.querySelector(Uc(i)))l.loading=5;else{e=tt({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Zn.get(i))&&Mb(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,Wf(o,t,r)}o={type:"stylesheet",instance:o,count:1,state:l},a.set(i,o)}}}function h4(e,t){ma.X(e,t);var n=ds;if(n&&e){var r=Jo(n).hoistableScripts,a=hs(e),i=r.get(a);i||(i=n.querySelector(Hc(a)),i||(e=tt({src:e,async:!0},t),(t=Zn.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 p4(e,t){ma.M(e,t);var n=ds;if(n&&e){var r=Jo(n).hoistableScripts,a=hs(e),i=r.get(a);i||(i=n.querySelector(Hc(a)),i||(e=tt({src:e,async:!0,type:"module"},t),(t=Zn.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 RS(e,t,n,r){var a=(a=Ka.current)?Rd(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=Rl(n.href),n=Jo(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=Rl(n.href);var i=Jo(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(Uc(e)))&&!i._p&&(o.instance=i,o.state.loading=5),Zn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Zn.set(e,n),i||y4(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=hs(n),n=Jo(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 Rl(e){return'href="'+Fn(e)+'"'}function Uc(e){return'link[rel="stylesheet"]['+e+"]"}function jT(e){return tt({},e,{"data-precedence":e.precedence,precedence:null})}function y4(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 hs(e){return'[src="'+Fn(e)+'"]'}function Hc(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=tt({},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),Wf(r,n.precedence,e),t.instance=r;case"stylesheet":a=Rl(n.href);var i=e.querySelector(Uc(a));if(i)return t.state.loading|=4,t.instance=i,Ct(i),i;r=jT(n),(a=Zn.get(a))&&Mb(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,Wf(i,n.precedence,e),t.instance=i;case"script":return i=hs(n.src),(a=e.querySelector(Hc(i)))?(t.instance=a,Ct(a),a):(r=n,(a=Zn.get(i))&&(r=tt({},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,Wf(r,n.precedence,e));return t.instance}function Wf(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 Mb(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 Zf=null;function $S(e,t,n){if(Zf===null){var r=new Map,a=Zf=new Map;a.set(n,r)}else a=Zf,r=a.get(n),r||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var i=n[a];if(!(i[Dc]||i[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 DS(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function m4(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 AT(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function v4(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=Rl(r.href),i=t.querySelector(Uc(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Pd.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,Ct(i);return}i=t.ownerDocument||t,r=jT(r),(a=Zn.get(a))&&Mb(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=Pd.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Jy=0;function g4(e,t){return e.stylesheets&&e.count===0&&Jf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Jf(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Jy===0&&(Jy=62500*Z$());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Jf(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Jy?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function Pd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Jf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $d=null;function Jf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$d=new Map,t.forEach(b4,e),$d=null,Pd.call(e))}function b4(e,t){if(!(t.state.loading&4)){var n=$d.get(e);if(n)var r=n.get(null);else{n=new Map,$d.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var o=a[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}a=t.instance,o=a.getAttribute("data-precedence"),i=n.get(o)||r,i===r&&n.set(null,a),n.set(o,a),this.count++,r=Pd.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Lu={$$typeof:Vr,Provider:null,Consumer:null,_currentValue:Fi,_currentValue2:Fi,_threadCount:0};function x4(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=wy(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wy(0),this.hiddenUpdates=wy(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 ET(e,t,n,r,a,i,o,l,s,u,d,f){return e=new x4(e,t,n,o,s,u,d,f,l),t=1,i===!0&&(t|=24),i=An(3,null,null,t),e.current=i,i.stateNode=e,t=ab(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},lb(i),e}function _T(e){return e?(e=qo,e):qo}function TT(e,t,n,r,a,i){a=_T(a),r.context===null?r.context=a:r.pendingContext=a,r=Va(t),r.payload={element:n},i=i===void 0?null:i,i!==null&&(r.callback=i),n=Xa(e,r,t),n!==null&&(hn(n,e,t),fu(n,e,t))}function kS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Pb(e,t){kS(e,t),(e=e.alternate)&&kS(e,t)}function NT(e){if(e.tag===13||e.tag===31){var t=yo(e,67108864);t!==null&&hn(t,e,67108864),Pb(e,67108864)}}function LS(e){if(e.tag===13||e.tag===31){var t=Mn();t=F0(t);var n=yo(e,t);n!==null&&hn(n,e,t),Pb(e,t)}}var Dd=!0;function S4(e,t,n,r){var a=ie.T;ie.T=null;var i=Ne.p;try{Ne.p=2,$b(e,t,n,r)}finally{Ne.p=i,ie.T=a}}function w4(e,t,n,r){var a=ie.T;ie.T=null;var i=Ne.p;try{Ne.p=8,$b(e,t,n,r)}finally{Ne.p=i,ie.T=a}}function $b(e,t,n,r){if(Dd){var a=Rv(r);if(a===null)Wy(e,t,r,kd,n),zS(e,r);else if(j4(a,e,t,n,r))r.stopPropagation();else if(zS(e,r),t&4&&-1<O4.indexOf(e)){for(;a!==null;){var i=ss(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-Cn(o);l.entanglements[1]|=s,o&=~s}Nr(i),!(Te&6)&&(Ad=Tn()+500,Ic(0))}}break;case 31:case 13:l=yo(i,2),l!==null&&hn(l,i,2),op(),Pb(i,2)}if(i=Rv(r),i===null&&Wy(e,t,r,kd,n),i===a)break;a=i}a!==null&&r.stopPropagation()}else Wy(e,t,r,null,n)}}function Rv(e){return e=V0(e),Db(e)}var kd=null;function Db(e){if(kd=null,e=Lo(e),e!==null){var t=Mc(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=XA(t),e!==null)return e;e=null}else if(n===31){if(e=QA(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 kd=e,null}function CT(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(s3()){case eE:return 2;case tE:return 8;case fd:case u3:return 32;case nE:return 268435456;default:return 32}default:return 32}}var Pv=!1,Za=null,Ja=null,ei=null,zu=new Map,Bu=new Map,Ca=[],O4="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function zS(e,t){switch(e){case"focusin":case"focusout":Za=null;break;case"dragenter":case"dragleave":Ja=null;break;case"mouseover":case"mouseout":ei=null;break;case"pointerover":case"pointerout":zu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bu.delete(t.pointerId)}}function Is(e,t,n,r,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[a]},t!==null&&(t=ss(t),t!==null&&NT(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function j4(e,t,n,r,a){switch(t){case"focusin":return Za=Is(Za,e,t,n,r,a),!0;case"dragenter":return Ja=Is(Ja,e,t,n,r,a),!0;case"mouseover":return ei=Is(ei,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return zu.set(i,Is(zu.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Bu.set(i,Is(Bu.get(i)||null,e,t,n,r,a)),!0}return!1}function MT(e){var t=Lo(e.target);if(t!==null){var n=Mc(t);if(n!==null){if(t=n.tag,t===13){if(t=XA(n),t!==null){e.blockedOn=t,w1(e.priority,function(){LS(n)});return}}else if(t===31){if(t=QA(n),t!==null){e.blockedOn=t,w1(e.priority,function(){LS(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 ed(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Rv(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Wm=r,n.target.dispatchEvent(r),Wm=null}else return t=ss(n),t!==null&&NT(t),e.blockedOn=n,!1;t.shift()}return!0}function BS(e,t,n){ed(e)&&n.delete(t)}function A4(){Pv=!1,Za!==null&&ed(Za)&&(Za=null),Ja!==null&&ed(Ja)&&(Ja=null),ei!==null&&ed(ei)&&(ei=null),zu.forEach(BS),Bu.forEach(BS)}function xf(e,t){e.blockedOn===t&&(e.blockedOn=null,Pv||(Pv=!0,At.unstable_scheduleCallback(At.unstable_NormalPriority,A4)))}var Sf=null;function IS(e){Sf!==e&&(Sf=e,At.unstable_scheduleCallback(At.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(Db(r||n)===null)continue;break}var i=ss(n);i!==null&&(e.splice(t,3),t-=3,hv(i,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function Pl(e){function t(s){return xf(s,e)}Za!==null&&xf(Za,e),Ja!==null&&xf(Ja,e),ei!==null&&xf(ei,e),zu.forEach(t),Bu.forEach(t);for(var n=0;n<Ca.length;n++){var r=Ca[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ca.length&&(n=Ca[0],n.blockedOn===null);)MT(n),n.blockedOn===null&&Ca.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[yn]||null;if(typeof i=="function")o||IS(n);else if(o){var l=null;if(i&&i.hasAttribute("formAction")){if(a=i,o=i[yn]||null)l=o.formAction;else if(Db(a)!==null)continue}else l=o.action;typeof l=="function"?n[r+1]=l:(n.splice(r,3),r-=3),IS(n)}}}function RT(){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 kb(e){this._internalRoot=e}up.prototype.render=kb.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));var n=t.current,r=Mn();TT(n,r,e,t,null,null)};up.prototype.unmount=kb.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;TT(e.current,2,null,e,null,null),op(),t[ls]=null}};function up(e){this._internalRoot=e}up.prototype.unstable_scheduleHydration=function(e){if(e){var t=lE();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ca.length&&t!==0&&t<Ca[n].priority;n++);Ca.splice(n,0,e),n===0&&MT(e)}};var US=YA.version;if(US!=="19.2.7")throw Error(U(527,US,"19.2.7"));Ne.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=t3(t),e=e!==null?WA(e):null,e=e===null?null:e.stateNode,e};var E4={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(E4),Nn=wf}catch{}}Kh.createRoot=function(e,t){if(!VA(e))throw Error(U(299));var n=!1,r="",a=O_,i=j_,o=A_;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=ET(e,1,!1,null,null,n,r,null,a,i,o,RT),e[ls]=t.current,Cb(e),new kb(t)};Kh.hydrateRoot=function(e,t,n){if(!VA(e))throw Error(U(299));var r=!1,a="",i=O_,o=j_,l=A_,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=ET(e,1,!0,t,n??null,r,a,s,i,o,l,RT),t.context=_T(null),n=t.current,r=Mn(),r=F0(r),a=Va(r),a.callback=null,Xa(n,a,r),n=r,t.current.lanes=n,$c(t,n),Nr(t),e[ls]=t.current,Cb(e),new up(t)};Kh.version="19.2.7";function PT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(PT)}catch(e){console.error(e)}}PT(),UA.exports=Kh;var _4=UA.exports;/**
 * 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 T4(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 $v("",{pathname:o,search:l,hash:s},a.state&&a.state.usr||null,a.state&&a.state.key||"default",i?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:Iu(a)}return C4(t,n,null,e)}function at(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function N4(){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 $v(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ps(t):t,state:n,key:t&&t.key||r||N4(),mask:a}}function Iu({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ps(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 C4(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 x=d(),y=x==null?null:x-u;u=x,s&&s({action:l,location:v.location,delta:y})}function h(x,y){l="PUSH";let m=qS(x)?x:$v(v.location,x,y);u=d()+1;let g=FS(m,u),S=v.createHref(m.mask||m);try{o.pushState(g,"",S)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;a.location.assign(S)}i&&s&&s({action:l,location:v.location,delta:1})}function p(x,y){l="REPLACE";let m=qS(x)?x:$v(v.location,x,y);u=d();let g=FS(m,u),S=v.createHref(m.mask||m);o.replaceState(g,"",S),i&&s&&s({action:l,location:v.location,delta:0})}function b(x){return M4(a,x)}let v={get action(){return l},get location(){return e(a,o)},listen(x){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(HS,f),s=x,()=>{a.removeEventListener(HS,f),s=null}},createHref(x){return t(a,x)},createURL:b,encodeLocation(x){let y=b(x);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:p,go(x){return o.go(x)}};return v}function M4(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),at(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:Iu(t);return a=a.replace(/ $/,"%20"),!n&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function $T(e,t,n="/"){return R4(e,t,n,!1)}function R4(e,t,n,r,a){let i=typeof t=="string"?ps(t):t,o=fa(i.pathname||"/",n);if(o==null)return null;let l=P4(e),s=null,u=G4(o);for(let d=0;s==null&&d<l.length;++d)s=q4(l[d],u,r);return s}function P4(e){let t=DT(e);return $4(t),t}function DT(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;at(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=fr([r,d.relativePath]),h=n.concat(d);o.children&&o.children.length>0&&(at(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),DT(o.children,t,h,f,s)),!(o.path==null&&!o.index)&&t.push({path:f,score:U4(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 kT(o.path))i(o,l,!0,u)}),t}function kT(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=kT(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 $4(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:H4(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var D4=/^:[\w-]+$/,k4=3,L4=2,z4=1,B4=10,I4=-2,GS=e=>e==="*";function U4(e,t){let n=e.split("/"),r=n.length;return n.some(GS)&&(r+=I4),t&&(r+=L4),n.filter(a=>!GS(a)).reduce((a,i)=>a+(D4.test(i)?k4:i===""?z4:B4),r)}function H4(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 q4(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=Ld({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},d),h=s.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Ld({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},d)),!f)return null;Object.assign(a,f.params),o.push({params:a,pathname:fr([i,f.pathname]),pathnameBase:X4(fr([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=fr([i,f.pathnameBase]))}return o}function Ld(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=F4(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 F4(e,t=!1,n=!0){dr(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 G4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dr(!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 fa(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 K4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Y4(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?ps(e):e,i;return n?(n=LT(n),n.startsWith("/")?i=KS(n.substring(1),"/"):i=KS(n,t)):i=t,{pathname:i,search:Q4(r),hash:W4(a)}}function KS(e,t){let n=zd(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function em(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 V4(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Lb(e){let t=V4(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function cp(e,t,n,r=!1){let a;typeof e=="string"?a=ps(e):(a={...e},at(!a.pathname||!a.pathname.includes("?"),em("?","pathname","search",a)),at(!a.pathname||!a.pathname.includes("#"),em("#","pathname","hash",a)),at(!a.search||!a.search.includes("#"),em("#","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=Y4(a,l),u=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||d)&&(s.pathname+="/"),s}var LT=e=>e.replace(/\/\/+/g,"/"),fr=e=>LT(e.join("/")),zd=e=>e.replace(/\/+$/,""),X4=e=>zd(e).replace(/^\/*/,"/"),Q4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,W4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Z4=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 J4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function eD(e){let t=e.map(n=>n.route.path).filter(Boolean);return fr(t)||"/"}var zT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function BT(e,t){let n=e;if(typeof n!="string"||!K4.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(zT)try{let i=new URL(window.location.href),o=n.startsWith("//")?new URL(i.protocol+n):new URL(n),l=fa(o.pathname,t);o.origin===i.origin&&l!=null?n=l+o.search+o.hash:a=!0}catch{dr(!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 IT=["POST","PUT","PATCH","DELETE"];new Set(IT);var tD=["GET",...IT];new Set(tD);var ys=j.createContext(null);ys.displayName="DataRouter";var fp=j.createContext(null);fp.displayName="DataRouterState";var UT=j.createContext(!1);function nD(){return j.useContext(UT)}var HT=j.createContext({isTransitioning:!1});HT.displayName="ViewTransition";var rD=j.createContext(new Map);rD.displayName="Fetchers";var aD=j.createContext(null);aD.displayName="Await";var Dn=j.createContext(null);Dn.displayName="Navigation";var qc=j.createContext(null);qc.displayName="Location";var pr=j.createContext({outlet:null,matches:[],isDataRoute:!1});pr.displayName="Route";var zb=j.createContext(null);zb.displayName="RouteError";var qT="REACT_ROUTER_ERROR",iD="REDIRECT",oD="ROUTE_ERROR_RESPONSE";function lD(e){if(e.startsWith(`${qT}:${iD}:{`))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 sD(e){if(e.startsWith(`${qT}:${oD}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Z4(t.status,t.statusText,t.data)}catch{}}function uD(e,{relative:t}={}){at(ms(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=j.useContext(Dn),{hash:a,pathname:i,search:o}=Fc(e,{relative:t}),l=i;return n!=="/"&&(l=i==="/"?n:fr([n,i])),r.createHref({pathname:l,search:o,hash:a})}function ms(){return j.useContext(qc)!=null}function Cr(){return at(ms(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(qc).location}var FT="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function GT(e){j.useContext(Dn).static||j.useLayoutEffect(e)}function dp(){let{isDataRoute:e}=j.useContext(pr);return e?jD():cD()}function cD(){at(ms(),"useNavigate() may be used only in the context of a <Router> component.");let e=j.useContext(ys),{basename:t,navigator:n}=j.useContext(Dn),{matches:r}=j.useContext(pr),{pathname:a}=Cr(),i=JSON.stringify(Lb(r)),o=j.useRef(!1);return GT(()=>{o.current=!0}),j.useCallback((s,u={})=>{if(dr(o.current,FT),!o.current)return;if(typeof s=="number"){n.go(s);return}let d=cp(s,JSON.parse(i),a,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:fr([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,i,a,e])}var fD=j.createContext(null);function dD(e){let t=j.useContext(pr).outlet;return j.useMemo(()=>t&&j.createElement(fD.Provider,{value:e},t),[t,e])}function Fc(e,{relative:t}={}){let{matches:n}=j.useContext(pr),{pathname:r}=Cr(),a=JSON.stringify(Lb(n));return j.useMemo(()=>cp(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function hD(e,t){return KT(e,t)}function KT(e,t,n){var x;at(ms(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=j.useContext(Dn),{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||"";VT(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=Cr(),f;if(t){let y=typeof t=="string"?ps(t):t;at(s==="/"||((x=y.pathname)==null?void 0:x.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})):$T(e,{pathname:p});dr(u||b!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),dr(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 v=gD(b&&b.map(y=>Object.assign({},y,{params:Object.assign({},o,y.params),pathname:fr([s,r.encodeLocation?r.encodeLocation(y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:fr([s,r.encodeLocation?r.encodeLocation(y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),a,n);return t&&v?j.createElement(qc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...f},navigationType:"POP"}},v):v}function pD(){let e=OD(),t=J4(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 yD=j.createElement(pD,null),YT=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=sD(e.digest);n&&(e=n)}let t=e!==void 0?j.createElement(pr.Provider,{value:this.props.routeContext},j.createElement(zb.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?j.createElement(mD,{error:e},t):t}};YT.contextType=UT;var tm=new WeakMap;function mD({children:e,error:t}){let{basename:n}=j.useContext(Dn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=lD(t.digest);if(r){let a=tm.get(t);if(a)throw a;let i=BT(r.location,n);if(zT&&!tm.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 tm.set(t,o),o}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function vD({routeContext:e,match:t,children:n}){let r=j.useContext(ys);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 gD(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);at(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:eD(r.matches),errorInfo:f})}:void 0;return a.reduceRight((d,f,h)=>{let p,b=!1,v=null,x=null;r&&(p=i&&f.route.id?i[f.route.id]:void 0,v=f.route.errorElement||yD,o&&(l<0&&h===0?(VT("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,x=null):l===h&&(b=!0,x=f.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,h+1)),m=()=>{let g;return p?g=v:b?g=x:f.route.Component?g=j.createElement(f.route.Component,null):f.route.element?g=f.route.element:g=d,j.createElement(vD,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:r!=null},children:g})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?j.createElement(YT,{location:r.location,revalidation:r.revalidation,component:v,error:p,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:u}):m()},null)}function Bb(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function bD(e){let t=j.useContext(ys);return at(t,Bb(e)),t}function xD(e){let t=j.useContext(fp);return at(t,Bb(e)),t}function SD(e){let t=j.useContext(pr);return at(t,Bb(e)),t}function Ib(e){let t=SD(e),n=t.matches[t.matches.length-1];return at(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function wD(){return Ib("useRouteId")}function OD(){var r;let e=j.useContext(zb),t=xD("useRouteError"),n=Ib("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function jD(){let{router:e}=bD("useNavigate"),t=Ib("useNavigate"),n=j.useRef(!1);return GT(()=>{n.current=!0}),j.useCallback(async(a,i={})=>{dr(n.current,FT),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var YS={};function VT(e,t,n){!t&&!YS[e]&&(YS[e]=!0,dr(!1,n))}j.memo(AD);function AD({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return KT(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function XT({to:e,replace:t,state:n,relative:r}){at(ms(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=j.useContext(Dn);dr(!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}=Cr(),l=dp(),s=cp(e,Lb(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 ED(e){return dD(e.context)}function Ee(e){at(!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 _D({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,useTransitions:o}){at(!ms(),"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=ps(n));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:p="default",mask:b}=n,v=j.useMemo(()=>{let x=fa(u,l);return x==null?null:{location:{pathname:x,search:d,hash:f,state:h,key:p,mask:b},navigationType:r}},[l,u,d,f,h,p,r,b]);return dr(v!=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.`),v==null?null:j.createElement(Dn.Provider,{value:s},j.createElement(qc.Provider,{children:t,value:v}))}function TD({children:e,location:t}){return hD(Dv(e),t)}function Dv(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,Dv(r.props.children,i));return}at(r.type===Ee,`[${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>`),at(!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=Dv(r.props.children,i)),n.push(o)}),n}var td="get",nd="application/x-www-form-urlencoded";function hp(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function ND(e){return hp(e)&&e.tagName.toLowerCase()==="button"}function CD(e){return hp(e)&&e.tagName.toLowerCase()==="form"}function MD(e){return hp(e)&&e.tagName.toLowerCase()==="input"}function RD(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function PD(e,t){return e.button===0&&(!t||t==="_self")&&!RD(e)}var Of=null;function $D(){if(Of===null)try{new FormData(document.createElement("form"),0),Of=!1}catch{Of=!0}return Of}var DD=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function nm(e){return e!=null&&!DD.has(e)?(dr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${nd}"`),null):e}function kD(e,t){let n,r,a,i,o;if(CD(e)){let l=e.getAttribute("action");r=l?fa(l,t):null,n=e.getAttribute("method")||td,a=nm(e.getAttribute("enctype"))||nd,i=new FormData(e)}else if(ND(e)||MD(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?fa(s,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||td,a=nm(e.getAttribute("formenctype"))||nm(l.getAttribute("enctype"))||nd,i=new FormData(l,e),!$D()){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(hp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=td,r=null,a=nd,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 Ub(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function QT(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&&fa(a.pathname,t)==="/"?a.pathname=`${zd(t)}/_root.${r}`:a.pathname=`${zd(a.pathname)}.${r}`,a}async function LD(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 BD(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let o=await LD(i,n);return o.links?o.links():[]}return[]}));return qD(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 ID(e,t,{includeHydrateFallback:n}={}){return UD(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 UD(e){return[...new Set(e)]}function HD(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function qD(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(HD(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function Hb(){let e=j.useContext(ys);return Ub(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function FD(){let e=j.useContext(fp);return Ub(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var qb=j.createContext(void 0);qb.displayName="FrameworkContext";function Fb(){let e=j.useContext(qb);return Ub(e,"You must render this element inside a <HydratedRouter> element"),e}function GD(e,t){let n=j.useContext(qb),[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 v=y=>{y.forEach(m=>{o(m.isIntersecting)})},x=new IntersectionObserver(v,{threshold:.5});return h.current&&x.observe(h.current),()=>{x.disconnect()}}},[e]),j.useEffect(()=>{if(r){let v=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(v)}}},[r]);let p=()=>{a(!0)},b=()=>{a(!1),o(!1)};return n?e!=="intent"?[i,h,{}]:[i,h,{onFocus:Us(l,p),onBlur:Us(s,b),onMouseEnter:Us(u,p),onMouseLeave:Us(d,b),onTouchStart:Us(f,p)}]:[!1,h,{}]}function Us(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function KD({page:e,...t}){let n=nD(),{router:r}=Hb(),a=j.useMemo(()=>$T(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n?j.createElement(VD,{page:e,matches:a,...t}):j.createElement(XD,{page:e,matches:a,...t}):null}function YD(e){let{manifest:t,routeModules:n}=Fb(),[r,a]=j.useState([]);return j.useEffect(()=>{let i=!1;return BD(e,t,n).then(o=>{i||a(o)}),()=>{i=!0}},[e,t,n]),r}function VD({page:e,matches:t,...n}){let r=Cr(),{future:a}=Fb(),{basename:i}=Hb(),o=j.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let l=QT(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 XD({page:e,matches:t,...n}){let r=Cr(),{future:a,manifest:i,routeModules:o}=Fb(),{basename:l}=Hb(),{loaderData:s,matches:u}=FD(),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 v=new Set,x=!1;if(t.forEach(m=>{var S;let g=i.routes[m.route.id];!g||!g.hasLoader||(!d.some(w=>w.route.id===m.route.id)&&m.route.id in s&&((S=o[m.route.id])!=null&&S.shouldRevalidate)||g.hasClientLoader?x=!0:v.add(m.route.id))}),v.size===0)return[];let y=QT(e,l,a.v8_trailingSlashAwareDataRequests,"data");return x&&v.size>0&&y.searchParams.set("_routes",t.filter(m=>v.has(m.route.id)).map(m=>m.route.id).join(",")),[y.pathname+y.search]},[l,a.v8_trailingSlashAwareDataRequests,s,r,i,d,t,e,o]),p=j.useMemo(()=>ID(f,i),[f,i]),b=YD(f);return j.createElement(j.Fragment,null,h.map(v=>j.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...n})),p.map(v=>j.createElement("link",{key:v,rel:"modulepreload",href:v,...n})),b.map(({key:v,link:x})=>j.createElement("link",{key:v,nonce:n.nonce,...x,crossOrigin:x.crossOrigin??n.crossOrigin})))}function QD(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var WD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{WD&&(window.__reactRouterVersion="7.17.0")}catch{}function ZD({basename:e,children:t,useTransitions:n,window:r}){let a=j.useRef();a.current==null&&(a.current=T4({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(_D,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i,useTransitions:n})}var WT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ZT=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},v){let{basename:x,navigator:y,useTransitions:m}=j.useContext(Dn),g=typeof d=="string"&&WT.test(d),S=BT(d,x);d=S.to;let w=uD(d,{relative:a}),O=Cr(),A=null;if(l){let k=cp(l,[],O.mask?O.mask.pathname:"/",!0);x!=="/"&&(k.pathname=k.pathname==="/"?x:fr([x,k.pathname])),A=y.createHref(k)}let[E,_,N]=GD(r,b),D=tk(d,{replace:o,mask:l,state:s,target:u,preventScrollReset:f,relative:a,viewTransition:h,defaultShouldRevalidate:p,useTransitions:m});function P(k){t&&t(k),k.defaultPrevented||D(k)}let I=!(S.isExternal||i),$=j.createElement("a",{...b,...N,href:(I?A:void 0)||S.absoluteURL||w,onClick:I?P:t,ref:QD(v,_),target:u,"data-discover":!g&&n==="render"?"true":void 0});return E&&!g?j.createElement(j.Fragment,null,$,j.createElement(KD,{page:w})):$});ZT.displayName="Link";var kv=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=Fc(o,{relative:u.relative}),h=Cr(),p=j.useContext(fp),{navigator:b,basename:v}=j.useContext(Dn),x=p!=null&&ok(f)&&l===!0,y=b.encodeLocation?b.encodeLocation(f).pathname:f.pathname,m=h.pathname,g=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(m=m.toLowerCase(),g=g?g.toLowerCase():null,y=y.toLowerCase()),g&&v&&(g=fa(g,v)||g);const S=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let w=m===y||!a&&m.startsWith(y)&&m.charAt(S)==="/",O=g!=null&&(g===y||!a&&g.startsWith(y)&&g.charAt(y.length)==="/"),A={isActive:w,isPending:O,isTransitioning:x},E=w?t:void 0,_;typeof r=="function"?_=r(A):_=[r,w?"active":null,O?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let N=typeof i=="function"?i(A):i;return j.createElement(ZT,{...u,"aria-current":E,className:_,ref:d,style:N,to:o,viewTransition:l},typeof s=="function"?s(A):s)});kv.displayName="NavLink";var JD=j.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:o=td,action:l,onSubmit:s,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:h,...p},b)=>{let{useTransitions:v}=j.useContext(Dn),x=ak(),y=ik(l,{relative:u}),m=o.toLowerCase()==="get"?"get":"post",g=typeof l=="string"&&WT.test(l),S=w=>{if(s&&s(w),w.defaultPrevented)return;w.preventDefault();let O=w.nativeEvent.submitter,A=(O==null?void 0:O.getAttribute("formmethod"))||o,E=()=>x(O||w.currentTarget,{fetcherKey:t,method:A,navigate:n,replace:a,state:i,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:h});v&&n!==!1?j.startTransition(()=>E()):E()};return j.createElement("form",{ref:b,method:m,action:y,onSubmit:r?s:S,...p,"data-discover":!g&&e==="render"?"true":void 0})});JD.displayName="Form";function ek(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function JT(e){let t=j.useContext(ys);return at(t,ek(e)),t}function tk(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:i,relative:o,viewTransition:l,defaultShouldRevalidate:s,useTransitions:u}={}){let d=dp(),f=Cr(),h=Fc(e,{relative:o});return j.useCallback(p=>{if(PD(p,t)){p.preventDefault();let b=n!==void 0?n:Iu(f)===Iu(h),v=()=>d(e,{replace:b,mask:r,state:a,preventScrollReset:i,relative:o,viewTransition:l,defaultShouldRevalidate:s});u?j.startTransition(()=>v()):v()}},[f,d,h,n,r,a,t,e,i,o,l,s,u])}var nk=0,rk=()=>`__${String(++nk)}__`;function ak(){let{router:e}=JT("useSubmit"),{basename:t}=j.useContext(Dn),n=wD(),r=e.fetch,a=e.navigate;return j.useCallback(async(i,o={})=>{let{action:l,method:s,encType:u,formData:d,body:f}=kD(i,t);if(o.navigate===!1){let h=o.fetcherKey||rk();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 ik(e,{relative:t}={}){let{basename:n}=j.useContext(Dn),r=j.useContext(pr);at(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...Fc(e||".",{relative:t})},o=Cr();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:fr([n,i.pathname])),Iu(i)}function ok(e,{relative:t}={}){let n=j.useContext(HT);at(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=JT("useViewTransitionState"),a=Fc(e,{relative:t});if(!n.isTransitioning)return!1;let i=fa(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=fa(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ld(a.pathname,o)!=null||Ld(a.pathname,i)!=null}var vs=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,Ma,cl,SA,lk=(SA=class extends vs{constructor(){super();ne(this,Di);ne(this,Ma);ne(this,cl);V(this,cl,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,Ma)||this.setEventListener(T(this,cl))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Ma))==null||t.call(this),V(this,Ma,void 0))}setEventListener(t){var n;V(this,cl,t),(n=T(this,Ma))==null||n.call(this),V(this,Ma,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){T(this,Di)!==t&&(V(this,Di,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,Di)=="boolean"?T(this,Di):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Di=new WeakMap,Ma=new WeakMap,cl=new WeakMap,SA),Gb=new lk,sk={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ra,D0,wA,uk=(wA=class{constructor(){ne(this,Ra,sk);ne(this,D0,!1)}setTimeoutProvider(e){V(this,Ra,e)}setTimeout(e,t){return T(this,Ra).setTimeout(e,t)}clearTimeout(e){T(this,Ra).clearTimeout(e)}setInterval(e,t){return T(this,Ra).setInterval(e,t)}clearInterval(e){T(this,Ra).clearInterval(e)}},Ra=new WeakMap,D0=new WeakMap,wA),Ni=new uk;function ck(e){setTimeout(e,0)}var fk=typeof window>"u"||"Deno"in globalThis;function Wt(){}function dk(e,t){return typeof e=="function"?e(t):e}function Lv(e){return typeof e=="number"&&e>=0&&e!==1/0}function eN(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ti(e,t){return typeof e=="function"?e(t):e}function On(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!==Kb(o,t.options))return!1}else if(!Uu(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(!Uu(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function Kb(e,t){return((t==null?void 0:t.queryKeyHashFn)||ro)(e)}function ro(e){return JSON.stringify(e,(t,n)=>zv(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Uu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Uu(e[n],t[n])):!1}var hk=Object.prototype.hasOwnProperty;function tN(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=WS(e)&&WS(t);if(!r&&!(zv(e)&&zv(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:hk.call(e,f))&&u++;continue}if(h===null||p===null||typeof h!="object"||typeof p!="object"){s[f]=p;continue}const b=tN(h,p,n+1);s[f]=b,b===h&&u++}return i===l&&u===i?e:s}function Bd(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 zv(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 pk(e){return new Promise(t=>{Ni.setTimeout(t,e)})}function Bv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?tN(e,t):t}function yk(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function mk(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Yb=Symbol();function nN(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Yb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Vb(e,t){return typeof e=="function"?e(...t):!!e}function vk(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 Hu=(()=>{let e=()=>fk;return{isServer(){return e()},setIsServer(t){e=t}}})();function Iv(){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 gk=ck;function bk(){let e=[],t=0,n=l=>{l()},r=l=>{l()},a=gk;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 wt=bk(),fl,Pa,dl,OA,xk=(OA=class extends vs{constructor(){super();ne(this,fl,!0);ne(this,Pa);ne(this,dl);V(this,dl,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(){T(this,Pa)||this.setEventListener(T(this,dl))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,Pa))==null||t.call(this),V(this,Pa,void 0))}setEventListener(t){var n;V(this,dl,t),(n=T(this,Pa))==null||n.call(this),V(this,Pa,t(this.setOnline.bind(this)))}setOnline(t){T(this,fl)!==t&&(V(this,fl,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return T(this,fl)}},fl=new WeakMap,Pa=new WeakMap,dl=new WeakMap,OA),Id=new xk;function Sk(e){return Math.min(1e3*2**e,3e4)}function rN(e){return(e??"online")==="online"?Id.isOnline():!0}var Uv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function aN(e){let t=!1,n=0,r;const a=Iv(),i=()=>a.status!=="pending",o=v=>{var x;if(!i()){const y=new Uv(v);h(y),(x=e.onCancel)==null||x.call(e,y)}},l=()=>{t=!0},s=()=>{t=!1},u=()=>Gb.isFocused()&&(e.networkMode==="always"||Id.isOnline())&&e.canRun(),d=()=>rN(e.networkMode)&&e.canRun(),f=v=>{i()||(r==null||r(),a.resolve(v))},h=v=>{i()||(r==null||r(),a.reject(v))},p=()=>new Promise(v=>{var x;r=y=>{(i()||u())&&v(y)},(x=e.onPause)==null||x.call(e)}).then(()=>{var v;r=void 0,i()||(v=e.onContinue)==null||v.call(e)}),b=()=>{if(i())return;let v;const x=n===0?e.initialPromise:void 0;try{v=x??e.fn()}catch(y){v=Promise.reject(y)}Promise.resolve(v).then(f).catch(y=>{var O;if(i())return;const m=e.retry??(Hu.isServer()?0:3),g=e.retryDelay??Sk,S=typeof g=="function"?g(n,y):g,w=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,y);if(t||!w){h(y);return}n++,(O=e.onFail)==null||O.call(e,n,y),pk(S).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,jA,iN=(jA=class{constructor(){ne(this,ki)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Lv(this.gcTime)&&V(this,ki,Ni.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Hu.isServer()?1/0:5*60*1e3))}clearGcTimeout(){T(this,ki)!==void 0&&(Ni.clearTimeout(T(this,ki)),V(this,ki,void 0))}},ki=new WeakMap,jA);function wk(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 v=!1;const x=g=>{vk(g,()=>t.signal,()=>v=!0)},y=nN(t.options,t.fetchOptions),m=async(g,S,w)=>{if(v)return Promise.reject(t.signal.reason);if(S==null&&g.pages.length)return Promise.resolve(g);const A=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:S,direction:w?"backward":"forward",meta:t.options.meta};return x(D),D})(),E=await y(A),{maxPages:_}=t.options,N=w?mk:yk;return{pages:N(g.pages,E,_),pageParams:N(g.pageParams,S,_)}};if(a&&i.length){const g=a==="backward",S=g?Ok:JS,w={pages:i,pageParams:o},O=S(r,w);l=await m(w,O,g)}else{const g=e??i.length;do{const S=s===0?o[0]??r.initialPageParam:JS(r,l);if(s>0&&S==null)break;l=await m(l,S),s++}while(s<g)}return l};t.options.persister?t.fetchFn=()=>{var v,x;return(x=(v=t.options).persister)==null?void 0:x.call(v,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 Ok(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 hl,Li,pl,Bn,zi,_t,Ec,Bi,wn,oN,Ir,AA,jk=(AA=class extends iN{constructor(t){super();ne(this,wn);ne(this,hl);ne(this,Li);ne(this,pl);ne(this,Bn);ne(this,zi);ne(this,_t);ne(this,Ec);ne(this,Bi);V(this,Bi,!1),V(this,Ec,t.defaultOptions),this.setOptions(t.options),this.observers=[],V(this,zi,t.client),V(this,Bn,T(this,zi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,V(this,Li,tw(this.options)),this.state=t.state??T(this,Li),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return T(this,hl)}get promise(){var t;return(t=T(this,_t))==null?void 0:t.promise}setOptions(t){if(this.options={...T(this,Ec),...t},t!=null&&t._type&&V(this,hl,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)),V(this,Li,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Bn).remove(this)}setData(t,n){const r=Bv(this.state.data,t,this.options);return he(this,wn,Ir).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){he(this,wn,Ir).call(this,{type:"setState",state:t})}cancel(t){var r,a;const n=(r=T(this,_t))==null?void 0:r.promise;return(a=T(this,_t))==null||a.cancel(t),n?n.then(Wt).catch(Wt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return T(this,Li)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>On(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Yb||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ti(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:!eN(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,_t))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,_t))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(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||(T(this,_t)&&(T(this,Bi)||he(this,wn,oN).call(this)?T(this,_t).cancel({revert:!0}):T(this,_t).cancelRetry()),this.scheduleGc()),T(this,Bn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||he(this,wn,Ir).call(this,{type:"invalidate"})}async fetch(t,n){var u,d,f,h,p,b,v,x,y,m,g;if(this.state.fetchStatus!=="idle"&&((u=T(this,_t))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,_t))return T(this,_t).continueRetry(),T(this,_t).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(w=>w.options.queryFn);S&&this.setOptions(S.options)}const r=new AbortController,a=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(V(this,Bi,!0),r.signal)})},i=()=>{const S=nN(this.options,n),O=(()=>{const A={client:T(this,zi),queryKey:this.queryKey,meta:this.meta};return a(A),A})();return V(this,Bi,!1),this.options.persister?this.options.persister(S,O,this):S(O)},l=(()=>{const S={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,zi),state:this.state,fetchFn:i};return a(S),S})(),s=T(this,hl)==="infinite"?wk(this.options.pages):this.options.behavior;s==null||s.onFetch(l,this),V(this,pl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&he(this,wn,Ir).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta}),V(this,_t,aN({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:S=>{S instanceof Uv&&S.revert&&this.setState({...T(this,pl),fetchStatus:"idle"}),r.abort()},onFail:(S,w)=>{he(this,wn,Ir).call(this,{type:"failed",failureCount:S,error:w})},onPause:()=>{he(this,wn,Ir).call(this,{type:"pause"})},onContinue:()=>{he(this,wn,Ir).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const S=await T(this,_t).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(p=(h=T(this,Bn).config).onSuccess)==null||p.call(h,S,this),(v=(b=T(this,Bn).config).onSettled)==null||v.call(b,S,this.state.error,this),S}catch(S){if(S instanceof Uv){if(S.silent)return T(this,_t).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw he(this,wn,Ir).call(this,{type:"error",error:S}),(y=(x=T(this,Bn).config).onError)==null||y.call(x,S,this),(g=(m=T(this,Bn).config).onSettled)==null||g.call(m,this.state.data,S,this),S}finally{this.scheduleGc()}}},hl=new WeakMap,Li=new WeakMap,pl=new WeakMap,Bn=new WeakMap,zi=new WeakMap,_t=new WeakMap,Ec=new WeakMap,Bi=new WeakMap,wn=new WeakSet,oN=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Ir=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...lN(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 V(this,pl,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),wt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,Bn).notify({query:this,type:"updated",action:t})})},AA);function lN(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:rN(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 sn,Oe,_c,Xt,Ii,yl,qr,$a,Tc,ml,vl,Ui,Hi,Da,gl,Me,au,Hv,qv,Fv,Gv,Kv,Yv,Vv,sN,EA,Ak=(EA=class extends vs{constructor(t,n){super();ne(this,Me);ne(this,sn);ne(this,Oe);ne(this,_c);ne(this,Xt);ne(this,Ii);ne(this,yl);ne(this,qr);ne(this,$a);ne(this,Tc);ne(this,ml);ne(this,vl);ne(this,Ui);ne(this,Hi);ne(this,Da);ne(this,gl,new Set);this.options=n,V(this,sn,t),V(this,$a,null),V(this,qr,Iv()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,Oe).addObserver(this),nw(T(this,Oe),this.options)?he(this,Me,au).call(this):this.updateResult(),he(this,Me,Gv).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xv(T(this,Oe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xv(T(this,Oe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,he(this,Me,Kv).call(this),he(this,Me,Yv).call(this),T(this,Oe).removeObserver(this)}setOptions(t){const n=this.options,r=T(this,Oe);if(this.options=T(this,sn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof On(this.options.enabled,T(this,Oe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");he(this,Me,Vv).call(this),T(this,Oe).setOptions(this.options),n._defaulted&&!Bd(this.options,n)&&T(this,sn).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,Oe),observer:this});const a=this.hasListeners();a&&rw(T(this,Oe),r,this.options,n)&&he(this,Me,au).call(this),this.updateResult(),a&&(T(this,Oe)!==r||On(this.options.enabled,T(this,Oe))!==On(n.enabled,T(this,Oe))||ti(this.options.staleTime,T(this,Oe))!==ti(n.staleTime,T(this,Oe)))&&he(this,Me,Hv).call(this);const i=he(this,Me,qv).call(this);a&&(T(this,Oe)!==r||On(this.options.enabled,T(this,Oe))!==On(n.enabled,T(this,Oe))||i!==T(this,Da))&&he(this,Me,Fv).call(this,i)}getOptimisticResult(t){const n=T(this,sn).getQueryCache().build(T(this,sn),t),r=this.createResult(n,t);return _k(this,r)&&(V(this,Xt,r),V(this,yl,this.options),V(this,Ii,T(this,Oe).state)),r}getCurrentResult(){return T(this,Xt)}trackResult(t,n){return new Proxy(t,{get:(r,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&T(this,qr).status==="pending"&&T(this,qr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){T(this,gl).add(t)}getCurrentQuery(){return T(this,Oe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=T(this,sn).defaultQueryOptions(t),r=T(this,sn).getQueryCache().build(T(this,sn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return he(this,Me,au).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,Xt)))}createResult(t,n){var _;const r=T(this,Oe),a=this.options,i=T(this,Xt),o=T(this,Ii),l=T(this,yl),u=t!==r?t.state:T(this,_c),{state:d}=t;let f={...d},h=!1,p;if(n._optimisticResults){const N=this.hasListeners(),D=!N&&nw(t,n),P=N&&rw(t,r,n,a);(D||P)&&(f={...f,...lN(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:b,errorUpdatedAt:v,status:x}=f;p=f.data;let y=!1;if(n.placeholderData!==void 0&&p===void 0&&x==="pending"){let N;i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(N=i.data,y=!0):N=typeof n.placeholderData=="function"?n.placeholderData((_=T(this,vl))==null?void 0:_.state.data,T(this,vl)):n.placeholderData,N!==void 0&&(x="success",p=Bv(i==null?void 0:i.data,N,n),h=!0)}if(n.select&&p!==void 0&&!y)if(i&&p===(o==null?void 0:o.data)&&n.select===T(this,Tc))p=T(this,ml);else try{V(this,Tc,n.select),p=n.select(p),p=Bv(i==null?void 0:i.data,p,n),V(this,ml,p),V(this,$a,null)}catch(N){V(this,$a,N)}T(this,$a)&&(b=T(this,$a),p=T(this,ml),v=Date.now(),x="error");const m=f.fetchStatus==="fetching",g=x==="pending",S=x==="error",w=g&&m,O=p!==void 0,E={status:x,fetchStatus:f.fetchStatus,isPending:g,isSuccess:x==="success",isError:S,isInitialLoading:w,isLoading:w,data:p,dataUpdatedAt:f.dataUpdatedAt,error:b,errorUpdatedAt:v,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:m,isRefetching:m&&!g,isLoadingError:S&&!O,isPaused:f.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:S&&O,isStale:Xb(t,n),refetch:this.refetch,promise:T(this,qr),isEnabled:On(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=E.data!==void 0,D=E.status==="error"&&!N,P=k=>{D?k.reject(E.error):N&&k.resolve(E.data)},I=()=>{const k=V(this,qr,E.promise=Iv());P(k)},$=T(this,qr);switch($.status){case"pending":t.queryHash===r.queryHash&&P($);break;case"fulfilled":(D||E.data!==$.value)&&I();break;case"rejected":(!D||E.error!==$.reason)&&I();break}}return E}updateResult(){const t=T(this,Xt),n=this.createResult(T(this,Oe),this.options);if(V(this,Ii,T(this,Oe).state),V(this,yl,this.options),T(this,Ii).data!==void 0&&V(this,vl,T(this,Oe)),Bd(n,t))return;V(this,Xt,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,i=typeof a=="function"?a():a;if(i==="all"||!i&&!T(this,gl).size)return!0;const o=new Set(i??T(this,gl));return this.options.throwOnError&&o.add("error"),Object.keys(T(this,Xt)).some(l=>{const s=l;return T(this,Xt)[s]!==t[s]&&o.has(s)})};he(this,Me,sN).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&he(this,Me,Gv).call(this)}},sn=new WeakMap,Oe=new WeakMap,_c=new WeakMap,Xt=new WeakMap,Ii=new WeakMap,yl=new WeakMap,qr=new WeakMap,$a=new WeakMap,Tc=new WeakMap,ml=new WeakMap,vl=new WeakMap,Ui=new WeakMap,Hi=new WeakMap,Da=new WeakMap,gl=new WeakMap,Me=new WeakSet,au=function(t){he(this,Me,Vv).call(this);let n=T(this,Oe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Wt)),n},Hv=function(){he(this,Me,Kv).call(this);const t=ti(this.options.staleTime,T(this,Oe));if(Hu.isServer()||T(this,Xt).isStale||!Lv(t))return;const r=eN(T(this,Xt).dataUpdatedAt,t)+1;V(this,Ui,Ni.setTimeout(()=>{T(this,Xt).isStale||this.updateResult()},r))},qv=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,Oe)):this.options.refetchInterval)??!1},Fv=function(t){he(this,Me,Yv).call(this),V(this,Da,t),!(Hu.isServer()||On(this.options.enabled,T(this,Oe))===!1||!Lv(T(this,Da))||T(this,Da)===0)&&V(this,Hi,Ni.setInterval(()=>{(this.options.refetchIntervalInBackground||Gb.isFocused())&&he(this,Me,au).call(this)},T(this,Da)))},Gv=function(){he(this,Me,Hv).call(this),he(this,Me,Fv).call(this,he(this,Me,qv).call(this))},Kv=function(){T(this,Ui)!==void 0&&(Ni.clearTimeout(T(this,Ui)),V(this,Ui,void 0))},Yv=function(){T(this,Hi)!==void 0&&(Ni.clearInterval(T(this,Hi)),V(this,Hi,void 0))},Vv=function(){const t=T(this,sn).getQueryCache().build(T(this,sn),this.options);if(t===T(this,Oe))return;const n=T(this,Oe);V(this,Oe,t),V(this,_c,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},sN=function(t){wt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(T(this,Xt))}),T(this,sn).getQueryCache().notify({query:T(this,Oe),type:"observerResultsUpdated"})})},EA);function Ek(e,t){return On(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&On(t.retryOnMount,e)===!1)}function nw(e,t){return Ek(e,t)||e.state.data!==void 0&&Xv(e,t,t.refetchOnMount)}function Xv(e,t,n){if(On(t.enabled,e)!==!1&&ti(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Xb(e,t)}return!1}function rw(e,t,n,r){return(e!==t||On(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Xb(e,n)}function Xb(e,t){return On(t.enabled,e)!==!1&&e.isStaleByTime(ti(t.staleTime,e))}function _k(e,t){return!Bd(e.getCurrentResult(),t)}var Nc,vr,Ft,qi,gr,wa,_A,Tk=(_A=class extends iN{constructor(t){super();ne(this,gr);ne(this,Nc);ne(this,vr);ne(this,Ft);ne(this,qi);V(this,Nc,t.client),this.mutationId=t.mutationId,V(this,Ft,t.mutationCache),V(this,vr,[]),this.state=t.state||uN(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,vr).includes(t)||(T(this,vr).push(t),this.clearGcTimeout(),T(this,Ft).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){V(this,vr,T(this,vr).filter(n=>n!==t)),this.scheduleGc(),T(this,Ft).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,vr).length||(this.state.status==="pending"?this.scheduleGc():T(this,Ft).remove(this))}continue(){var t;return((t=T(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,v,x,y,m,g,S,w,O,A;const n=()=>{he(this,gr,wa).call(this,{type:"continue"})},r={client:T(this,Nc),meta:this.options.meta,mutationKey:this.options.mutationKey};V(this,qi,aN({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(E,_)=>{he(this,gr,wa).call(this,{type:"failed",failureCount:E,error:_})},onPause:()=>{he(this,gr,wa).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Ft).canRun(this)}));const a=this.state.status==="pending",i=!T(this,qi).canStart();try{if(a)n();else{he(this,gr,wa).call(this,{type:"pending",variables:t,isPaused:i}),T(this,Ft).config.onMutate&&await T(this,Ft).config.onMutate(t,this,r);const _=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t,r));_!==this.state.context&&he(this,gr,wa).call(this,{type:"pending",context:_,variables:t,isPaused:i})}const E=await T(this,qi).start();return await((u=(s=T(this,Ft).config).onSuccess)==null?void 0:u.call(s,E,t,this.state.context,this,r)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,E,t,this.state.context,r)),await((p=(h=T(this,Ft).config).onSettled)==null?void 0:p.call(h,E,null,this.state.variables,this.state.context,this,r)),await((v=(b=this.options).onSettled)==null?void 0:v.call(b,E,null,t,this.state.context,r)),he(this,gr,wa).call(this,{type:"success",data:E}),E}catch(E){try{await((y=(x=T(this,Ft).config).onError)==null?void 0:y.call(x,E,t,this.state.context,this,r))}catch(_){Promise.reject(_)}try{await((g=(m=this.options).onError)==null?void 0:g.call(m,E,t,this.state.context,r))}catch(_){Promise.reject(_)}try{await((w=(S=T(this,Ft).config).onSettled)==null?void 0:w.call(S,void 0,E,this.state.variables,this.state.context,this,r))}catch(_){Promise.reject(_)}try{await((A=(O=this.options).onSettled)==null?void 0:A.call(O,void 0,E,t,this.state.context,r))}catch(_){Promise.reject(_)}throw he(this,gr,wa).call(this,{type:"error",error:E}),E}finally{T(this,Ft).runNext(this)}}},Nc=new WeakMap,vr=new WeakMap,Ft=new WeakMap,qi=new WeakMap,gr=new WeakSet,wa=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),wt.batch(()=>{T(this,vr).forEach(r=>{r.onMutationUpdate(t)}),T(this,Ft).notify({mutation:this,type:"updated",action:t})})},_A);function uN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Fr,or,Cc,TA,Nk=(TA=class extends vs{constructor(t={}){super();ne(this,Fr);ne(this,or);ne(this,Cc);this.config=t,V(this,Fr,new Set),V(this,or,new Map),V(this,Cc,0)}build(t,n,r){const a=new Tk({client:t,mutationCache:this,mutationId:++af(this,Cc)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){T(this,Fr).add(t);const n=jf(t);if(typeof n=="string"){const r=T(this,or).get(n);r?r.push(t):T(this,or).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,Fr).delete(t)){const n=jf(t);if(typeof n=="string"){const r=T(this,or).get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&T(this,or).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=jf(t);if(typeof n=="string"){const r=T(this,or).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=T(this,or).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(){wt.batch(()=>{T(this,Fr).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,Fr).clear(),T(this,or).clear()})}getAll(){return Array.from(T(this,Fr))}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){wt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return wt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Wt))))}},Fr=new WeakMap,or=new WeakMap,Cc=new WeakMap,TA);function jf(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Gr,ka,un,Kr,ia,rd,Qv,NA,Ck=(NA=class extends vs{constructor(n,r){super();ne(this,ia);ne(this,Gr);ne(this,ka);ne(this,un);ne(this,Kr);V(this,Gr,n),this.setOptions(r),this.bindMethods(),he(this,ia,rd).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=T(this,Gr).defaultMutationOptions(n),Bd(this.options,r)||T(this,Gr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:T(this,un),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&ro(r.mutationKey)!==ro(this.options.mutationKey)?this.reset():((a=T(this,un))==null?void 0:a.state.status)==="pending"&&T(this,un).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=T(this,un))==null||n.removeObserver(this)}onMutationUpdate(n){he(this,ia,rd).call(this),he(this,ia,Qv).call(this,n)}getCurrentResult(){return T(this,ka)}reset(){var n;(n=T(this,un))==null||n.removeObserver(this),V(this,un,void 0),he(this,ia,rd).call(this),he(this,ia,Qv).call(this)}mutate(n,r){var a;return V(this,Kr,r),(a=T(this,un))==null||a.removeObserver(this),V(this,un,T(this,Gr).getMutationCache().build(T(this,Gr),this.options)),T(this,un).addObserver(this),T(this,un).execute(n)}},Gr=new WeakMap,ka=new WeakMap,un=new WeakMap,Kr=new WeakMap,ia=new WeakSet,rd=function(){var r;const n=((r=T(this,un))==null?void 0:r.state)??uN();V(this,ka,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Qv=function(n){wt.batch(()=>{var r,a,i,o,l,s,u,d;if(T(this,Kr)&&this.hasListeners()){const f=T(this,ka).variables,h=T(this,ka).context,p={client:T(this,Gr),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(a=(r=T(this,Kr)).onSuccess)==null||a.call(r,n.data,f,h,p)}catch(b){Promise.reject(b)}try{(o=(i=T(this,Kr)).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=T(this,Kr)).onError)==null||s.call(l,n.error,f,h,p)}catch(b){Promise.reject(b)}try{(d=(u=T(this,Kr)).onSettled)==null||d.call(u,void 0,n.error,f,h,p)}catch(b){Promise.reject(b)}}}this.listeners.forEach(f=>{f(T(this,ka))})})},NA),br,CA,Mk=(CA=class extends vs{constructor(t={}){super();ne(this,br);this.config=t,V(this,br,new Map)}build(t,n,r){const a=n.queryKey,i=n.queryHash??Kb(a,n);let o=this.get(i);return o||(o=new jk({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){T(this,br).has(t.queryHash)||(T(this,br).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,br).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,br).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){wt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,br).get(t)}getAll(){return[...T(this,br).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){wt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){wt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){wt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},br=new WeakMap,CA),lt,La,za,bl,xl,Ba,Sl,wl,MA,Rk=(MA=class{constructor(e={}){ne(this,lt);ne(this,La);ne(this,za);ne(this,bl);ne(this,xl);ne(this,Ba);ne(this,Sl);ne(this,wl);V(this,lt,e.queryCache||new Mk),V(this,La,e.mutationCache||new Nk),V(this,za,e.defaultOptions||{}),V(this,bl,new Map),V(this,xl,new Map),V(this,Ba,0)}mount(){af(this,Ba)._++,T(this,Ba)===1&&(V(this,Sl,Gb.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,lt).onFocus())})),V(this,wl,Id.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,lt).onOnline())})))}unmount(){var e,t;af(this,Ba)._--,T(this,Ba)===0&&((e=T(this,Sl))==null||e.call(this),V(this,Sl,void 0),(t=T(this,wl))==null||t.call(this),V(this,wl,void 0))}isFetching(e){return T(this,lt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,La).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,lt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,lt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ti(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return T(this,lt).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=T(this,lt).get(r.queryHash),i=a==null?void 0:a.state.data,o=dk(t,i);if(o!==void 0)return T(this,lt).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return wt.batch(()=>T(this,lt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,lt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,lt);wt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,lt);return wt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=wt.batch(()=>T(this,lt).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Wt).catch(Wt)}invalidateQueries(e,t={}){return wt.batch(()=>(T(this,lt).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=wt.batch(()=>T(this,lt).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Wt)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Wt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,lt).build(this,t);return n.isStaleByTime(ti(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Wt).catch(Wt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Wt).catch(Wt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Id.isOnline()?T(this,La).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,lt)}getMutationCache(){return T(this,La)}getDefaultOptions(){return T(this,za)}setDefaultOptions(e){V(this,za,e)}setQueryDefaults(e,t){T(this,bl).set(ro(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,bl).values()],n={};return t.forEach(r=>{Uu(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){T(this,xl).set(ro(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,xl).values()],n={};return t.forEach(r=>{Uu(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,za).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Kb(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===Yb&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,za).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,lt).clear(),T(this,La).clear()}},lt=new WeakMap,La=new WeakMap,za=new WeakMap,bl=new WeakMap,xl=new WeakMap,Ba=new WeakMap,Sl=new WeakMap,wl=new WeakMap,MA),cN=j.createContext(void 0),rn=e=>{const t=j.useContext(cN);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Pk=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(cN.Provider,{value:e,children:t})),fN=j.createContext(!1),$k=()=>j.useContext(fN);fN.Provider;function Dk(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var kk=j.createContext(Dk()),Lk=()=>j.useContext(kk),zk=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Vb(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Bk=e=>{j.useEffect(()=>{e.clearReset()},[e])},Ik=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||Vb(n,[e.error,r])),Uk=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))}},Hk=(e,t)=>e.isLoading&&e.isFetching&&!t,qk=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,aw=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Fk(e,t,n){var p,b,v,x;const r=$k(),a=Lk(),i=rn(),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,Uk(o),zk(o,a,l),Bk(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 m=h?d.subscribe(wt.batchCalls(y)):Wt;return d.updateResult(),m},[d,h]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),j.useEffect(()=>{d.setOptions(o)},[o,d]),qk(o,f))throw aw(o,d,a);if(Ik({result:f,errorResetBoundary:a,throwOnError:o.throwOnError,query:l,suspense:o.suspense}))throw f.error;if((x=(v=i.getDefaultOptions().queries)==null?void 0:v._experimental_afterQuery)==null||x.call(v,o,f),o.experimental_prefetchInRender&&!Hu.isServer()&&Hk(f,r)){const y=u?aw(o,d,a):l==null?void 0:l.promise;y==null||y.catch(Wt).finally(()=>{d.updateResult()})}return o.notifyOnChangeProps?f:d.trackResult(f)}function Vt(e,t){return Fk(e,Ak)}function it(e,t){const n=rn(),[r]=j.useState(()=>new Ck(n,e));j.useEffect(()=>{r.setOptions(e)},[r,e]);const a=j.useSyncExternalStore(j.useCallback(o=>r.subscribe(wt.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=j.useCallback((o,l)=>{r.mutate(o,l).catch(Wt)},[r]);if(a.error&&Vb(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 Gk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),dN=(...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 Kk={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 Yk=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,...Kk,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:dN("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 re=(e,t)=>{const n=j.forwardRef(({className:r,...a},i)=>j.createElement(Yk,{ref:i,iconNode:t,className:dN(`lucide-${Gk(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 Vk=re("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hN=re("Battery",[["rect",{width:"16",height:"10",x:"2",y:"7",rx:"2",ry:"2",key:"1w10f2"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pN=re("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yN=re("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xk=re("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mN=re("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qk=re("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wk=re("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zk=re("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qb=re("CircleCheckBig",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jk=re("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const e5=re("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const t5=re("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const n5=re("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const r5=re("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wb=re("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const a5=re("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i5=re("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const o5=re("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const l5=re("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const s5=re("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 u5=re("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c5=re("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 f5=re("Link2Off",[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vN=re("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d5=re("ListOrdered",[["line",{x1:"10",x2:"21",y1:"6",y2:"6",key:"76qw6h"}],["line",{x1:"10",x2:"21",y1:"12",y2:"12",key:"16nom4"}],["line",{x1:"10",x2:"21",y1:"18",y2:"18",key:"u3jurt"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const h5=re("ListTree",[["path",{d:"M21 12h-8",key:"1bmf0i"}],["path",{d:"M21 6H8",key:"1pqkrb"}],["path",{d:"M21 18h-8",key:"1tm79t"}],["path",{d:"M3 6v4c0 1.1.9 2 2 2h3",key:"1ywdgy"}],["path",{d:"M3 10v6c0 1.1.9 2 2 2h3",key:"2wc746"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const p5=re("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 y5=re("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const m5=re("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const v5=re("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const g5=re("NotebookPen",[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const b5=re("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 gs=re("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pp=re("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x5=re("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
 * @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=re("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const S5=re("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w5=re("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["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 O5=re("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const j5=re("SlidersVertical",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wv=re("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 gN=re("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Gc=re("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 A5=re("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zv=re("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const E5=re("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vo=re("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zb=re("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _5=re("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const T5=re("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bN=re("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xN=re("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bs=re("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jv=re("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),N5=[{to:"/dashboard",icon:c5,label:"대시보드"},{to:"/stores",icon:Zv,label:"매장 관리"},{to:"/templates",icon:o5,label:"ESL 템플릿"},{to:"/pos-cvt",icon:pp,label:"POS 가격변환"},{to:"/tag-binding",icon:vN,label:"태그 바인딩"},{to:"/update-queue",icon:d5,label:"업데이트 큐"},{to:"/alarms",icon:pN,label:"알람 관리"},{to:"/hcore",icon:Wb,label:"HCore 장치"},{to:"/works",icon:t5,label:"작업 이력"},{to:"/firmware",icon:Jv,label:"펌웨어"},{to:"/products",icon:b5,label:"상품/가격"},{to:"/users",icon:T5,label:"사용자"},{to:"/tenants",icon:mN,label:"테넌트 관리"},{to:"/audit",icon:x5,label:"감사 로그"},{to:"/settings",icon:w5,label:"시스템 설정"},{to:"/ai",icon:yN,label:"AI 분석"},{to:"/ai-techniques",icon:gN,label:"AI 기법 설정"},{to:"/worklogs",icon:g5,label:"업무일지"},{to:"/schedules",icon:Qk,label:"일정 관리"},{to:"/messages",icon:y5,label:"쪽지"},{to:"/work-stats",icon:Vk,label:"업무 통계"},{to:"/mobile-app",icon:Wv,label:"모바일 앱 설치"}],C5=[{to:"/system/roles",icon:O5,label:"권한 관리"},{to:"/system/role-menus",icon:s5,label:"역할-메뉴 권한"},{to:"/system/menus",icon:h5,label:"메뉴 관리"},{to:"/system/codes",icon:v5,label:"공통코드 관리"},{to:"/system/depts",icon:l5,label:"부서 관리"},{to:"/system/companies",icon:Xk,label:"거래처 관리"}];function M5(){const e=(localStorage.getItem("esn_role")||"")==="ADMIN";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:[N5.map(({to:t,icon:n,label:r})=>c.jsxs(kv,{to:t,className:({isActive:a})=>`flex items-center gap-3 px-4 py-2.5 text-sm transition-colors ${a?"bg-brand/15 text-brand border-r-2 border-brand":"text-gray-400 hover:text-white hover:bg-edge/50"}`,children:[c.jsx(n,{size:16}),r]},t)),e&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"mt-3 px-4 pt-3 pb-1 border-t border-edge text-[10px] font-semibold tracking-wide text-gray-500 uppercase",children:"시스템관리 (권한)"}),C5.map(({to:t,icon:n,label:r})=>c.jsxs(kv,{to:t,className:({isActive:a})=>`flex items-center gap-3 px-4 py-2.5 text-sm transition-colors ${a?"bg-brand/15 text-brand border-r-2 border-brand":"text-gray-400 hover:text-white hover:bg-edge/50"}`,children:[c.jsx(n,{size:16}),r]},t))]})]}),c.jsx("div",{className:"p-4 border-t border-edge text-xs text-gray-500",children:"zioinfo-esn v1.0"})]})}function R5(){const e=dp(),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.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("div",{className:"flex items-center gap-2 text-sm text-gray-300",children:[c.jsx(_5,{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(p5,{size:14}),"로그아웃"]})]})}function SN(e,t){return function(){return e.apply(t,arguments)}}const{toString:P5}=Object.prototype,{getPrototypeOf:$l}=Object,{iterator:Kc,toStringTag:wN}=Symbol,Ud=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),qu=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),Ud(n,t))return!0;n=$l(n)}return!1},$5=(e,t)=>e!=null&&qu(e,t)?e[t]:void 0,Jb=(e=>t=>{const n=P5.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),yr=e=>(e=e.toLowerCase(),t=>Jb(t)===e),yp=e=>t=>typeof t===e,{isArray:ao}=Array,Dl=yp("undefined");function xs(e){return e!==null&&!Dl(e)&&e.constructor!==null&&!Dl(e.constructor)&&pn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ON=yr("ArrayBuffer");function D5(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ON(e.buffer),t}const k5=yp("string"),pn=yp("function"),jN=yp("number"),Ss=e=>e!==null&&typeof e=="object",L5=e=>e===!0||e===!1,ad=e=>{if(!Ss(e))return!1;const t=$l(e);return(t===null||t===Object.prototype||$l(t)===null)&&!qu(e,wN)&&!qu(e,Kc)},z5=e=>{if(!Ss(e)||xs(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},B5=yr("Date"),I5=yr("File"),U5=e=>!!(e&&typeof e.uri<"u"),H5=e=>e&&typeof e.getParts<"u",q5=yr("Blob"),F5=yr("FileList"),G5=e=>Ss(e)&&pn(e.pipe);function K5(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const ow=K5(),lw=typeof ow.FormData<"u"?ow.FormData:void 0,Y5=e=>{if(!e)return!1;if(lw&&e instanceof lw)return!0;const t=$l(e);if(!t||t===Object.prototype||!pn(e.append))return!1;const n=Jb(e);return n==="formdata"||n==="object"&&pn(e.toString)&&e.toString()==="[object FormData]"},V5=yr("URLSearchParams"),[X5,Q5,W5,Z5]=["ReadableStream","Request","Response","Headers"].map(yr),J5=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ao(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(xs(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let l;for(r=0;r<o;r++)l=i[r],t.call(null,e[l],l,e)}}function AN(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 Ci=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,EN=e=>!Dl(e)&&e!==Ci;function eg(...e){const{caseless:t,skipUndefined:n}=EN(this)&&this||{},r={},a=(i,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const l=t&&typeof o=="string"&&AN(r,o)||o,s=Ud(r,l)?r[l]:void 0;ad(s)&&ad(i)?r[l]=eg(s,i):ad(i)?r[l]=eg({},i):ao(i)?r[l]=i.slice():(!n||!Dl(i))&&(r[l]=i)};for(let i=0,o=e.length;i<o;i++){const l=e[i];if(!l||xs(l)||(Yc(l,a),typeof l!="object"||ao(l)))continue;const s=Object.getOwnPropertySymbols(l);for(let u=0;u<s.length;u++){const d=s[u];fL.call(l,d)&&a(l[d],d)}}return r}const eL=(e,t,n,{allOwnKeys:r}={})=>(Yc(t,(a,i)=>{n&&pn(a)?Object.defineProperty(e,i,{__proto__:null,value:SN(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),tL=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),nL=(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)},rL=(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&&$l(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},iL=e=>{if(!e)return null;if(ao(e))return e;let t=e.length;if(!jN(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},oL=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&$l(Uint8Array)),lL=(e,t)=>{const r=(e&&e[Kc]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},sL=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},uL=yr("HTMLFormElement"),cL=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),{propertyIsEnumerable:fL}=Object.prototype,dL=yr("RegExp"),_N=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Yc(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},hL=e=>{_N(e,(t,n)=>{if(pn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(pn(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+"'")})}})},pL=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return ao(e)?r(e):r(String(e).split(t)),n},yL=()=>{},mL=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function vL(e){return!!(e&&pn(e.append)&&e[wN]==="FormData"&&e[Kc])}const gL=e=>{const t=new WeakSet,n=r=>{if(Ss(r)){if(t.has(r))return;if(xs(r))return r;if(!("toJSON"in r)){t.add(r);const a=ao(r)?[]:{};return Yc(r,(i,o)=>{const l=n(i);!Dl(l)&&(a[o]=l)}),t.delete(r),a}}return r};return n(e)},bL=yr("AsyncFunction"),xL=e=>e&&(Ss(e)||pn(e))&&pn(e.then)&&pn(e.catch),TN=((e,t)=>e?setImmediate:t?((n,r)=>(Ci.addEventListener("message",({source:a,data:i})=>{a===Ci&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),Ci.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",pn(Ci.postMessage)),SL=typeof queueMicrotask<"u"?queueMicrotask.bind(Ci):typeof process<"u"&&process.nextTick||TN,NN=e=>e!=null&&pn(e[Kc]),wL=e=>e!=null&&qu(e,Kc)&&NN(e),C={isArray:ao,isArrayBuffer:ON,isBuffer:xs,isFormData:Y5,isArrayBufferView:D5,isString:k5,isNumber:jN,isBoolean:L5,isObject:Ss,isPlainObject:ad,isEmptyObject:z5,isReadableStream:X5,isRequest:Q5,isResponse:W5,isHeaders:Z5,isUndefined:Dl,isDate:B5,isFile:I5,isReactNativeBlob:U5,isReactNative:H5,isBlob:q5,isRegExp:dL,isFunction:pn,isStream:G5,isURLSearchParams:V5,isTypedArray:oL,isFileList:F5,forEach:Yc,merge:eg,extend:eL,trim:J5,stripBOM:tL,inherits:nL,toFlatObject:rL,kindOf:Jb,kindOfTest:yr,endsWith:aL,toArray:iL,forEachEntry:lL,matchAll:sL,isHTMLForm:uL,hasOwnProperty:Ud,hasOwnProp:Ud,hasOwnInPrototypeChain:qu,getSafeProp:$5,reduceDescriptors:_N,freezeMethods:hL,toObjectSet:pL,toCamelCase:cL,noop:yL,toFiniteNumber:mL,findKey:AN,global:Ci,isContextDefined:EN,isSpecCompliantForm:vL,toJSONObject:gL,isAsyncFn:bL,isThenable:xL,setImmediate:TN,asap:SL,isIterable:NN,isSafeIterable:wL},OL=C.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"]),jL=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]&&OL[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function AL(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 EL=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),_L=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ex(e,t){return C.isArray(e)?e.map(n=>ex(n,t)):AL(String(e).replace(t,""))}const TL=e=>ex(e,EL),NL=e=>ex(e,_L);function CN(e){const t=Object.create(null);return C.forEach(e.toJSON(),(n,r)=>{t[r]=NL(n)}),t}const sw=Symbol("internals");function Hs(e){return e&&String(e).trim().toLowerCase()}function id(e){return e===!1||e==null?e:C.isArray(e)?e.map(id):TL(String(e))}function CL(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 ML=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function rm(e,t,n,r,a){if(C.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!C.isString(t)){if(C.isString(r))return t.indexOf(r)!==-1;if(C.isRegExp(r))return r.test(t)}}function RL(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function PL(e,t){const n=C.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=Hs(s);if(!d)return;const f=C.findKey(a,d);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||s]=id(l))}const o=(l,s)=>C.forEach(l,(u,d)=>i(u,d,s));if(C.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(C.isString(t)&&(t=t.trim())&&!ML(t))o(jL(t),n);else if(C.isObject(t)&&C.isSafeIterable(t)){let l=Object.create(null),s,u;for(const d of t){if(!C.isArray(d))throw new TypeError("Object iterator must return a key-value pair");u=d[0],C.hasOwnProp(l,u)?(s=l[u],l[u]=C.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=Hs(t),t){const r=C.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return CL(a);if(C.isFunction(n))return n.call(this,a,r);if(C.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Hs(t),t){const r=C.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||rm(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=Hs(o),o){const l=C.findKey(r,o);l&&(!n||rm(r,r[l],l,n))&&(delete r[l],a=!0)}}return C.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||rm(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return C.forEach(this,(a,i)=>{const o=C.findKey(r,i);if(o){n[o]=id(a),delete n[i];return}const l=t?RL(i):String(i).trim();l!==i&&delete n[i],n[l]=id(a),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return C.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&C.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[sw]=this[sw]={accessors:{}}).accessors,a=this.prototype;function i(o){const l=Hs(o);r[l]||(PL(a,o),r[l]=!0)}return C.isArray(t)?t.forEach(i):i(t),this}};Yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);C.reduceDescriptors(Yt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});C.freezeMethods(Yt);const $L="[REDACTED ****]";function DL(e){if(C.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(C.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function kL(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],a=i=>{if(i===null||typeof i!="object"||C.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof Yt&&(i=i.toJSON()),r.push(i);let o;if(C.isArray(i))o=[],i.forEach((l,s)=>{const u=a(l);C.isUndefined(u)||(o[s]=u)});else{if(!C.isPlainObject(i)&&DL(i))return r.pop(),i;o=Object.create(null);for(const[l,s]of Object.entries(i)){const u=n.has(l.toLowerCase())?$L:a(s);C.isUndefined(u)||(o[l]=u)}}return r.pop(),o};return a(e)}let W=class MN extends Error{static from(t,n,r,a,i,o){const l=new MN(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&&C.hasOwnProp(t,"redact")?t.redact:void 0,r=C.isArray(n)&&n.length>0?kL(t,n):C.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 LL=null,RN=100;function tg(e){return C.isPlainObject(e)||C.isArray(e)}function PN(e){return C.endsWith(e,"[]")?e.slice(0,-2):e}function am(e,t,n){return e?e.concat(t).map(function(a,i){return a=PN(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function zL(e){return C.isArray(e)&&!e.some(tg)}const BL=C.toFlatObject(C,{},null,function(t){return/^is[A-Z]/.test(t)});function mp(e,t,n){if(!C.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=C.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!C.isUndefined(g[m])});const r=n.metaTokens,a=n.visitor||b,i=n.dots,o=n.indexes,l=n.Blob||typeof Blob<"u"&&Blob,s=n.maxDepth===void 0?RN:n.maxDepth,u=l&&C.isSpecCompliantForm(t),d=[];if(!C.isFunction(a))throw new TypeError("visitor must be a function");function f(y){if(y===null)return"";if(C.isDate(y))return y.toISOString();if(C.isBoolean(y))return y.toString();if(!u&&C.isBlob(y))throw new W("Blob is not supported. Use a Buffer instead.");return C.isArrayBuffer(y)||C.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function h(y){if(y>s)throw new W("Object is too deeply nested ("+y+" levels). Max depth: "+s,W.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(y,m){if(s===1/0)return JSON.stringify(y);const g=[];return JSON.stringify(y,function(w,O){if(!C.isObject(O))return O;for(;g.length&&g[g.length-1]!==this;)g.pop();return g.push(O),h(m+g.length-1),O})}function b(y,m,g){let S=y;if(C.isReactNative(t)&&C.isReactNativeBlob(y))return t.append(am(g,m,i),f(y)),!1;if(y&&!g&&typeof y=="object"){if(C.endsWith(m,"{}"))m=r?m:m.slice(0,-2),y=p(y,1);else if(C.isArray(y)&&zL(y)||(C.isFileList(y)||C.endsWith(m,"[]"))&&(S=C.toArray(y)))return m=PN(m),S.forEach(function(O,A){!(C.isUndefined(O)||O===null)&&t.append(o===!0?am([m],A,i):o===null?m:m+"[]",f(O))}),!1}return tg(y)?!0:(t.append(am(g,m,i),f(y)),!1)}const v=Object.assign(BL,{defaultVisitor:b,convertValue:f,isVisitable:tg});function x(y,m,g=0){if(!C.isUndefined(y)){if(h(g),d.indexOf(y)!==-1)throw new Error("Circular reference detected in "+m.join("."));d.push(y),C.forEach(y,function(w,O){(!(C.isUndefined(w)||w===null)&&a.call(t,w,C.isString(O)?O.trim():O,m,v))===!0&&x(w,m?m.concat(O):[O],g+1)}),d.pop()}}if(!C.isObject(e))throw new TypeError("data must be an object");return x(e),t}function uw(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&&mp(e,this,t)}const $N=tx.prototype;$N.append=function(t,n){this._pairs.push([t,n])};$N.toString=function(t){const n=t?function(r){return t.call(this,r,uw)}:uw;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function IL(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function DN(e,t,n){if(!t)return e;const r=C.isFunction(n)?{serialize:n}:n,a=C.getSafeProp(r,"encode")||IL,i=C.getSafeProp(r,"serialize");let o;if(i?o=i(t,r):o=C.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 cw{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){C.forEach(this.handlers,function(r){r!==null&&t(r)})}}const nx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},UL=typeof URLSearchParams<"u"?URLSearchParams:tx,HL=typeof FormData<"u"?FormData:null,qL=typeof Blob<"u"?Blob:null,FL={isBrowser:!0,classes:{URLSearchParams:UL,FormData:HL,Blob:qL},protocols:["http","https","file","blob","url","data"]},rx=typeof window<"u"&&typeof document<"u",ng=typeof navigator=="object"&&navigator||void 0,GL=rx&&(!ng||["ReactNative","NativeScript","NS"].indexOf(ng.product)<0),KL=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",YL=rx&&window.location.href||"http://localhost",VL=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:rx,hasStandardBrowserEnv:GL,hasStandardBrowserWebWorkerEnv:KL,navigator:ng,origin:YL},Symbol.toStringTag,{value:"Module"})),It={...VL,...FL};function XL(e,t){return mp(e,new It.classes.URLSearchParams,{visitor:function(n,r,a,i){return It.isNode&&C.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}const fw=RN;function kN(e){if(e>fw)throw new W("FormData field is too deeply nested ("+e+" levels). Max depth: "+fw,W.ERR_FORM_DATA_DEPTH_EXCEEDED)}function QL(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)kN(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function WL(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 LN(e){function t(n,r,a,i){kN(i);let o=n[i++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),s=i>=n.length;return o=!o&&C.isArray(a)?a.length:o,s?(C.hasOwnProp(a,o)?a[o]=C.isArray(a[o])?a[o].concat(r):[a[o],r]:a[o]=r,!l):((!C.hasOwnProp(a,o)||!C.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&C.isArray(a[o])&&(a[o]=WL(a[o])),!l)}if(C.isFormData(e)&&C.isFunction(e.entries)){const n={};return C.forEachEntry(e,(r,a)=>{t(QL(r),a,n,0)}),n}return null}const _o=(e,t)=>e!=null&&C.hasOwnProp(e,t)?e[t]:void 0;function ZL(e,t,n){if(C.isString(e))try{return(t||JSON.parse)(e),C.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Vc={transitional:nx,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=C.isObject(t);if(i&&C.isHTMLForm(t)&&(t=new FormData(t)),C.isFormData(t))return a?JSON.stringify(LN(t)):t;if(C.isArrayBuffer(t)||C.isBuffer(t)||C.isStream(t)||C.isFile(t)||C.isBlob(t)||C.isReadableStream(t))return t;if(C.isArrayBufferView(t))return t.buffer;if(C.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){const s=_o(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return XL(t,s).toString();if((l=C.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=_o(this,"env"),d=u&&u.FormData;return mp(l?{"files[]":t}:t,d&&new d,s)}}return i||a?(n.setContentType("application/json",!1),ZL(t)):t}],transformResponse:[function(t){const n=_o(this,"transitional")||Vc.transitional,r=n&&n.forcedJSONParsing,a=_o(this,"responseType"),i=a==="json";if(C.isResponse(t)||C.isReadableStream(t))return t;if(t&&C.isString(t)&&(r&&!a||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,_o(this,"parseReviver"))}catch(s){if(l)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,_o(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}}};C.forEach(["delete","get","head","post","put","patch","query"],e=>{Vc.headers[e]={}});function im(e,t){const n=this||Vc,r=t||n,a=Yt.from(r.headers);let i=r.data;return C.forEach(e,function(l){i=l.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function zN(e){return!!(e&&e.__CANCEL__)}let Xc=class extends W{constructor(t,n,r){super(t??"canceled",W.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function BN(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 JL(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function e6(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 t6(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 Hd=(e,t,n=3)=>{let r=0;const a=e6(50,250);return t6(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)},dw=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},hw=e=>(...t)=>C.asap(()=>e(...t)),n6=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,r6=It.hasStandardBrowserEnv?{write(e,t,n,r,a,i,o){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];C.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),C.isString(r)&&l.push(`path=${r}`),C.isString(a)&&l.push(`domain=${a}`),i===!0&&l.push("secure"),C.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 i6(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const o6=/^https?:(?!\/\/)/i,l6=/[\t\n\r]/g;function s6(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function u6(e){return s6(e).replace(l6,"")}function pw(e,t){if(typeof e=="string"&&o6.test(u6(e)))throw new W('Invalid URL: missing "//" after protocol',W.ERR_INVALID_URL,t)}function IN(e,t,n,r){pw(t,r);let a=!a6(t);return e&&(a||n===!1)?(pw(e,r),i6(e,t)):t}const yw=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 C.isPlainObject(d)&&C.isPlainObject(f)?C.merge.call({caseless:p},d,f):C.isPlainObject(f)?C.merge({},f):C.isArray(f)?f.slice():f}function a(d,f,h,p){if(C.isUndefined(f)){if(!C.isUndefined(d))return r(void 0,d,h,p)}else return r(d,f,h,p)}function i(d,f){if(!C.isUndefined(f))return r(void 0,f)}function o(d,f){if(C.isUndefined(f)){if(!C.isUndefined(d))return r(void 0,d)}else return r(void 0,f)}function l(d){const f=C.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!C.isUndefined(f))if(C.isPlainObject(f)){if(C.hasOwnProp(f,d))return f[d]}else return;const h=C.hasOwnProp(e,"transitional")?e.transitional:void 0;if(C.isPlainObject(h)&&C.hasOwnProp(h,d))return h[d]}function s(d,f,h){if(C.hasOwnProp(t,h))return r(d,f);if(C.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(yw(d),yw(f),h,!0)};return C.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const h=C.hasOwnProp(u,f)?u[f]:a,p=C.hasOwnProp(e,f)?e[f]:void 0,b=C.hasOwnProp(t,f)?t[f]:void 0,v=h(p,b,f);C.isUndefined(v)&&h!==s||(n[f]=v)}),C.hasOwnProp(t,"validateStatus")&&C.isUndefined(t.validateStatus)&&l("validateStatusUndefinedResolves")===!1&&(C.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const c6=["content-type","content-length"];function f6(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,a])=>{c6.includes(r.toLowerCase())&&e.set(r,a)})}const d6=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function UN(e){const t=io({},e),n=h=>C.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=DN(IN(u,f,d,t),n("params"),n("paramsSerializer")),s){const h=C.getSafeProp(s,"username")||"",p=C.getSafeProp(s,"password")||"";l.set("Authorization","Basic "+btoa(h+":"+(p?d6(p):"")))}if(C.isFormData(r)&&(It.hasStandardBrowserEnv||It.hasStandardBrowserWebWorkerEnv||C.isReactNative(r)?l.setContentType(void 0):C.isFunction(r.getHeaders)&&f6(l,r.getHeaders(),n("formDataHeaderPolicy"))),It.hasStandardBrowserEnv&&(C.isFunction(a)&&(a=a(t)),a===!0||a==null&&n6(t.url))){const p=i&&o&&r6.read(o);p&&l.set(i,p)}return t}const h6=typeof XMLHttpRequest<"u",p6=h6&&function(e){return new Promise(function(n,r){const a=UN(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 v(){p&&p(),b&&b(),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener("abort",d)}let x=new XMLHttpRequest;x.open(a.method.toUpperCase(),a.url,!0),x.timeout=a.timeout;function y(){if(!x)return;const g=Yt.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:g,config:e,request:x};BN(function(A){n(A),v()},function(A){r(A),v()},w),x=null}"onloadend"in x?x.onloadend=y:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.startsWith("file:"))||setTimeout(y)},x.onabort=function(){x&&(r(new W("Request aborted",W.ECONNABORTED,e,x)),v(),x=null)},x.onerror=function(S){const w=S&&S.message?S.message:"Network Error",O=new W(w,W.ERR_NETWORK,e,x);O.event=S||null,r(O),v(),x=null},x.ontimeout=function(){let S=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const w=a.transitional||nx;a.timeoutErrorMessage&&(S=a.timeoutErrorMessage),r(new W(S,w.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,x)),v(),x=null},i===void 0&&o.setContentType(null),"setRequestHeader"in x&&C.forEach(CN(o),function(S,w){x.setRequestHeader(w,S)}),C.isUndefined(a.withCredentials)||(x.withCredentials=!!a.withCredentials),l&&l!=="json"&&(x.responseType=a.responseType),u&&([h,b]=Hd(u,!0),x.addEventListener("progress",h)),s&&x.upload&&([f,p]=Hd(s),x.upload.addEventListener("progress",f),x.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(d=g=>{x&&(r(!g||g.type?new Xc(null,e,x):g),x.abort(),v(),x=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));const m=JL(a.url);if(m&&!It.protocols.includes(m)){r(new W("Unsupported protocol "+m+":",W.ERR_BAD_REQUEST,e));return}x.send(i||null)})},y6=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const a=function(s){if(!r){r=!0,o();const u=s instanceof Error?s:this.reason;n.abort(u instanceof W?u:new Xc(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,a(new W(`timeout of ${t}ms exceeded`,W.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(s=>{s.unsubscribe?s.unsubscribe(a):s.removeEventListener("abort",a)}),e=null)};e.forEach(s=>s.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>C.asap(o),l},m6=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},v6=async function*(e,t){for await(const n of g6(e))yield*m6(n,t)},g6=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},mw=(e,t,n,r)=>{const a=v6(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})},qd=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,b6=(e,t,n)=>t+2<n&&qd(e.charCodeAt(t+1))&&qd(e.charCodeAt(t+2));function x6(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let o=r.length;const l=r.length;for(let p=0;p<l;p++)if(r.charCodeAt(p)===37&&p+2<l){const b=r.charCodeAt(p+1),v=r.charCodeAt(p+2);qd(b)&&qd(v)&&(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&&b6(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",vw=64*1024,{isFunction:Af}=C,S6=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),gw=e=>{if(!C.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},bw=(e,...t)=>{try{return!!e(...t)}catch{return!1}},w6=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},O6=e=>{const t=C.global!==void 0&&C.global!==null?C.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=C.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=>m=>y.encode(m))(new r):async y=>new Uint8Array(await new i(y).arrayBuffer())),h=s&&d&&bw(()=>{let y=!1;const m=new i(It.origin,{body:new n,method:"POST",get duplex(){return y=!0,"half"}}),g=m.headers.has("Content-Type");return m.body!=null&&m.body.cancel(),y&&!g}),p=u&&d&&bw(()=>C.isReadableStream(new o("").body)),b={stream:p&&(y=>y.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!b[y]&&(b[y]=(m,g)=>{let S=m&&m[y];if(S)return S.call(m);throw new W(`Response type '${y}' is not supported`,W.ERR_NOT_SUPPORT,g)})});const v=async y=>{if(y==null)return 0;if(C.isBlob(y))return y.size;if(C.isSpecCompliantForm(y))return(await new i(It.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(C.isArrayBufferView(y)||C.isArrayBuffer(y))return y.byteLength;if(C.isURLSearchParams(y)&&(y=y+""),C.isString(y))return(await f(y)).byteLength},x=async(y,m)=>{const g=C.toFiniteNumber(y.getContentLength());return g??v(m)};return async y=>{let{url:m,method:g,data:S,signal:w,cancelToken:O,timeout:A,onDownloadProgress:E,onUploadProgress:_,responseType:N,headers:D,withCredentials:P="same-origin",fetchOptions:I,maxContentLength:$,maxBodyLength:k}=UN(y);const R=C.isNumber($)&&$>-1,L=C.isNumber(k)&&k>-1,z=ce=>C.hasOwnProp(y,ce)?y[ce]:void 0;let q=a||fetch;N=N?(N+"").toLowerCase():"text";let G=y6([w,O&&O.toAbortSignal()],A),Q=null;const K=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let te,ye=null;const Le=()=>new W("Request body larger than maxBodyLength limit",W.ERR_BAD_REQUEST,y,Q);try{let ce;const $t=z("auth");if($t){const J=C.getSafeProp($t,"username")||"",ze=C.getSafeProp($t,"password")||"";ce={username:J,password:ze}}if(w6(m)){const J=new URL(m,It.origin);if(!ce&&(J.username||J.password)){const ze=gw(J.username),Dt=gw(J.password);ce={username:ze,password:Dt}}(J.username||J.password)&&(J.username="",J.password="",m=J.href)}if(ce&&(D.delete("authorization"),D.set("Authorization","Basic "+btoa(S6((ce.username||"")+":"+(ce.password||""))))),R&&typeof m=="string"&&m.startsWith("data:")&&x6(m)>$)throw new W("maxContentLength size of "+$+" exceeded",W.ERR_BAD_RESPONSE,y,Q);if(L&&g!=="get"&&g!=="head"){const J=await v(S);if(typeof J=="number"&&isFinite(J)&&(te=J,J>k))throw Le()}const bt=L&&(C.isReadableStream(S)||C.isStream(S)),X=(J,ze,Dt)=>mw(J,vw,an=>{if(L&&an>k)throw ye=Le();ze&&ze(an)},Dt);if(h&&g!=="get"&&g!=="head"&&(_||bt)){if(te=te??await x(D,S),te!==0||bt){let J=new i(m,{method:"POST",body:S,duplex:"half"}),ze;if(C.isFormData(S)&&(ze=J.headers.get("content-type"))&&D.setContentType(ze),J.body){const[Dt,an]=_&&dw(te,Hd(hw(_)))||[];S=X(J.body,Dt,an)}}}else if(bt&&!s&&d&&g!=="get"&&g!=="head")S=X(S);else if(bt&&s&&!h&&g!=="get"&&g!=="head")throw new W("Stream request bodies are not supported by the current fetch implementation",W.ERR_NOT_SUPPORT,y,Q);C.isString(P)||(P=P?"include":"omit");const le=s&&"credentials"in i.prototype;if(C.isFormData(S)){const J=D.getContentType();J&&/^multipart\/form-data/i.test(J)&&!/boundary=/i.test(J)&&D.delete("content-type")}D.set("User-Agent","axios/"+ax,!1);const fe={...I,signal:G,method:g.toUpperCase(),headers:CN(D.normalize()),body:S,duplex:"half",credentials:le?P:void 0};Q=s&&new i(m,fe);let H=await(s?q(Q,I):q(m,fe));const Xe=Yt.from(H.headers);if(R){const J=C.toFiniteNumber(Xe.getContentLength());if(J!=null&&J>$)throw new W("maxContentLength size of "+$+" exceeded",W.ERR_BAD_RESPONSE,y,Q)}const be=p&&(N==="stream"||N==="response");if(p&&H.body&&(E||R||be&&K)){const J={};["status","statusText","headers"].forEach(gn=>{J[gn]=H[gn]});const ze=C.toFiniteNumber(Xe.getContentLength()),[Dt,an]=E&&dw(ze,Hd(hw(E),!0))||[];let mi=0;const Pr=gn=>{if(R&&(mi=gn,mi>$))throw new W("maxContentLength size of "+$+" exceeded",W.ERR_BAD_RESPONSE,y,Q);Dt&&Dt(gn)};H=new o(mw(H.body,vw,Pr,()=>{an&&an(),K&&K()}),J)}N=N||"text";let Re=await b[C.findKey(b,N)||"text"](H,y);if(R&&!p&&!be){let J;if(Re!=null&&(typeof Re.byteLength=="number"?J=Re.byteLength:typeof Re.size=="number"?J=Re.size:typeof Re=="string"&&(J=typeof r=="function"?new r().encode(Re).byteLength:Re.length)),typeof J=="number"&&J>$)throw new W("maxContentLength size of "+$+" exceeded",W.ERR_BAD_RESPONSE,y,Q)}return!be&&K&&K(),await new Promise((J,ze)=>{BN(J,ze,{data:Re,headers:Yt.from(H.headers),status:H.status,statusText:H.statusText,config:y,request:Q})})}catch(ce){if(K&&K(),G&&G.aborted&&G.reason instanceof W){const $t=G.reason;throw $t.config=y,Q&&($t.request=Q),ce!==$t&&($t.cause=ce),$t}throw ye?(Q&&!ye.request&&(ye.request=Q),ye):ce instanceof W?(Q&&!ce.request&&(ce.request=Q),ce):ce&&ce.name==="TypeError"&&/Load failed|fetch/i.test(ce.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,y,Q,ce&&ce.response),{cause:ce.cause||ce}):W.from(ce,ce&&ce.code,y,Q,ce&&ce.response)}}},j6=new Map,HN=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=j6;for(;l--;)s=i[l],u=d.get(s),u===void 0&&d.set(s,u=l?new Map:O6(t)),d=u;return u};HN();const ix={http:LL,xhr:p6,fetch:{get:HN}};C.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 xw=e=>`- ${e}`,A6=e=>C.isFunction(e)||e===null||e===!1;function E6(e,t){e=C.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,!A6(r)&&(a=ix[(l=String(r)).toLowerCase()],a===void 0))throw new W(`Unknown adapter '${l}'`);if(a&&(C.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(xw).join(`
`):" "+xw(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 qN={getAdapter:E6,adapters:ix};function om(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xc(null,e)}function Sw(e){return om(e),e.headers=Yt.from(e.headers),e.data=im.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),qN.getAdapter(e.adapter||Vc.adapter,e)(e).then(function(r){om(e),e.response=r;try{r.data=im.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Yt.from(r.headers),r},function(r){if(!zN(r)&&(om(e),r&&r.response)){e.response=r.response;try{r.response.data=im.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Yt.from(r.response.headers)}return Promise.reject(r)})}const vp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ww={};vp.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&&!ww[o]&&(ww[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}};vp.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function _6(e,t,n){if(typeof e!="object")throw new 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 od={assertOptions:_6,validators:vp},qt=od.validators;let Xi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new cw,response:new cw}}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&&od.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&&(C.isFunction(a)?n.paramsSerializer={serialize:a}:od.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),od.assertOptions(n,{baseUrl:qt.spelling("baseURL"),withXsrfToken:qt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&C.merge(i.common,i[n.method]);i&&C.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(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;s=s&&v.synchronous;const x=n.transitional||nx;x&&x.legacyInterceptorReqResOrdering?l.unshift(v.fulfilled,v.rejected):l.push(v.fulfilled,v.rejected)});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let d,f=0,h;if(!s){const b=[Sw.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++],v=l[f++];try{p=b(p)}catch(x){v.call(this,x);break}}try{d=Sw.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=IN(t.baseURL,t.url,t.allowAbsoluteUrls,t);return DN(n,t.params,t.paramsSerializer)}};C.forEach(["delete","get","head","options"],function(t){Xi.prototype[t]=function(n,r){return this.request(io(r||{},{method:t,url:n,data:r&&C.hasOwnProp(r,"data")?r.data:void 0}))}});C.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 T6=class FN{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(l=>{r.subscribe(l),i=l}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,l){r.reason||(r.reason=new Xc(i,o,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new FN(function(a){t=a}),cancel:t}}};function N6(e){return function(n){return e.apply(null,n)}}function C6(e){return C.isObject(e)&&e.isAxiosError===!0}const rg={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(rg).forEach(([e,t])=>{rg[t]=e});function GN(e){const t=new Xi(e),n=SN(Xi.prototype.request,t);return C.extend(n,Xi.prototype,t,{allOwnKeys:!0}),C.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return GN(io(e,a))},n}const dt=GN(Vc);dt.Axios=Xi;dt.CanceledError=Xc;dt.CancelToken=T6;dt.isCancel=zN;dt.VERSION=ax;dt.toFormData=mp;dt.AxiosError=W;dt.Cancel=dt.CanceledError;dt.all=function(t){return Promise.all(t)};dt.spread=N6;dt.isAxiosError=C6;dt.mergeConfig=io;dt.AxiosHeaders=Yt;dt.formToJSON=e=>LN(C.isHTMLForm(e)?new FormData(e):e);dt.getAdapter=qN.getAdapter;dt.HttpStatusCode=rg;dt.default=dt;const{Axios:mfe,AxiosError:vfe,CanceledError:gfe,isCancel:bfe,CancelToken:xfe,VERSION:Sfe,all:wfe,Cancel:Ofe,isAxiosError:jfe,spread:Afe,toFormData:Efe,AxiosHeaders:_fe,HttpStatusCode:Tfe,formToJSON:Nfe,getAdapter:Cfe,mergeConfig:Mfe,create:Rfe}=dt,F=dt.create({baseURL:""});F.interceptors.request.use(e=>{const t=localStorage.getItem("esn_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});F.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 Ae=e=>e.then(t=>{var n;return(n=t.data)==null?void 0:n.data}),M6=(e,t)=>F.post("/api/auth/login",{username:e,password:t}),R6=()=>F.get("/api/auth/me"),P6=e=>Ae(F.post("/api/auth/signup",e)),$6=(e,t)=>Ae(F.post("/api/auth/find-id",{name:e,email:t})),D6=(e,t,n)=>F.post("/api/auth/reset-password",{username:e,name:t,email:n}),k6=e=>Ae(F.get(`/api/dashboard${e?`?tenantCode=${e}`:""}`)),L6=()=>Ae(F.get("/api/tenants")),z6=e=>Ae(F.post("/api/tenants",e)),B6=(e,t)=>Ae(F.put(`/api/tenants/${e}`,t)),I6=e=>F.delete(`/api/tenants/${e}`),U6=e=>Ae(F.get("/api/stores",{params:e})),H6=e=>Ae(F.post("/api/stores",e)),q6=(e,t)=>Ae(F.put(`/api/stores/${e}`,t)),F6=e=>F.delete(`/api/stores/${e}`),G6=e=>Ae(F.get("/api/templates",{params:e})),K6=e=>Ae(F.post("/api/templates",e)),Y6=(e,t)=>Ae(F.put(`/api/templates/${e}`,t)),V6=e=>F.delete(`/api/templates/${e}`),X6=e=>Ae(F.get("/api/pos-cvt",{params:e})),Q6=e=>Ae(F.put(`/api/pos-cvt/${e}/process`)),W6=e=>Ae(F.put(`/api/pos-cvt/${e}/ignore`)),Z6=e=>Ae(F.get("/api/alarms",{params:e})),J6=(e,t)=>Ae(F.put(`/api/alarms/${e}/resolve`,{resolution:t})),ez=e=>F.delete(`/api/alarms/${e}`),tz=e=>Ae(F.get("/api/hcore",{params:e})),nz=(e,t)=>Ae(F.put(`/api/hcore/${e}/status`,{status:t})),rz=e=>Ae(F.get("/api/works",{params:e})),az=e=>Ae(F.get("/api/firmware",{params:e})),iz=e=>Ae(F.post("/api/firmware",e)),oz=e=>F.delete(`/api/firmware/${e}`),lz=e=>Ae(F.get("/api/users",{params:e})),sz=e=>Ae(F.post("/api/users",e)),uz=(e,t)=>Ae(F.put(`/api/users/${e}`,t)),cz=e=>F.delete(`/api/users/${e}`),fz=e=>Ae(F.get("/api/products",{params:e})),dz=e=>Ae(F.post("/api/products",e)),hz=(e,t)=>Ae(F.put(`/api/products/${e}`,t)),pz=e=>F.delete(`/api/products/${e}`),yz=e=>Ae(F.get("/api/admin/audit",{params:e})),mz=e=>Ae(F.get("/api/admin/settings",{params:{}})),vz=(e,t)=>Ae(F.put(`/api/admin/settings/${encodeURIComponent(e)}`,{value:t})),gz=e=>Ae(F.post("/api/ai/analyze-alarm",e)),bz=e=>Ae(F.post("/api/ai/classify-pos",e)),xz=e=>Ae(F.get("/api/ai/rag/toggles",{params:{tenantCode:e}})),Sz=(e,t,n)=>Ae(F.put(`/api/ai/rag/toggles/${e}`,{value:t,tenantCode:n},n?{headers:{"X-Tenant-Code":n}}:void 0));function wz(){const e=localStorage.getItem("esn_token");return j.useEffect(()=>{e&&R6().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(M5,{}),c.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[c.jsx(R5,{}),c.jsx("main",{className:"flex-1 overflow-auto p-6",children:c.jsx(ED,{})})]})]}):c.jsx(XT,{to:"/login",replace:!0})}const Oz=(e,t)=>F.post("/api/auth/verify",{verifyToken:e,code:t}),jz=e=>F.post("/api/messages",e),Az=e=>F.get("/api/messages/sent",{params:e}),Ez=e=>F.get(`/api/messages/sent/${e}`),_z=e=>F.get("/api/messages/received",{params:e}),Tz=e=>F.get(`/api/messages/received/${e}`),Nz=e=>F.get("/api/schedules",{params:e}),Cz=e=>F.post("/api/schedules",e),Mz=e=>F.get(`/api/schedules/${e}`),Rz=e=>F.delete(`/api/schedules/${e}`),Pz=e=>F.get("/api/worklogs",{params:e}),$z=e=>F.get("/api/worklogs/dashboard/progress",{params:e}),Dz=e=>F.post("/api/worklogs",e),kz=e=>F.get(`/api/worklogs/${e}`),Lz=e=>F.delete(`/api/worklogs/${e}`),zz=(e,t)=>F.post(`/api/worklogs/${e}/comments`,{cmtContent:t}),Bz=e=>F.get("/api/stats/personal-work",{params:e}),Iz=e=>F.get("/api/stats/company-work",{params:e});function Uz(){const e=dp(),[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(""),[v,x]=j.useState(""),[y,m]=j.useState(null);function g(O){localStorage.setItem("esn_token",O),localStorage.setItem("esn_user",t),e("/dashboard")}async function S(O){var A;O.preventDefault(),s(!0),o("");try{const _=(A=(await M6(t,r)).data)==null?void 0:A.data;if((_==null?void 0:_.twofa)==="true")h(_.verifyToken),b(_.maskedEmail||""),d("verify");else{if(!(_!=null&&_.token))throw new Error("토큰 없음");g(_.token)}}catch{o("아이디/비밀번호가 올바르지 않거나 계정이 잠겼습니다.")}finally{s(!1)}}async function w(O){var A,E;O.preventDefault(),s(!0),o("");try{const _=await Oz(f,v);g((E=(A=_.data)==null?void 0:A.data)==null?void 0:E.token)}catch{o("인증 코드가 올바르지 않거나 만료되었습니다.")}finally{s(!1)}}return c.jsxs("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:"GUARDiA ESN"}),c.jsx("p",{className:"text-sm text-gray-400 mt-1",children:u==="login"?"ESL 통합 관리 플랫폼":"2차 인증"})]}),u==="login"?c.jsxs("form",{onSubmit:S,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:O=>n(O.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:O=>a(O.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("button",{type:"button",onClick:()=>m("signup"),className:"hover:text-brand transition-colors",children:"회원가입"}),c.jsx("span",{className:"text-edge",children:"|"}),c.jsx("button",{type:"button",onClick:()=>m("findId"),className:"hover:text-brand transition-colors",children:"아이디 찾기"}),c.jsx("span",{className:"text-edge",children:"|"}),c.jsx("button",{type:"button",onClick:()=>m("resetPw"),className:"hover:text-brand transition-colors",children:"비밀번호 재설정"})]})]}):c.jsxs("form",{onSubmit:w,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[c.jsx("p",{className:"text-xs text-gray-400",children:p?`${p} 로 발송된 인증코드를 입력하세요.`:"발송된 인증코드를 입력하세요."}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"인증코드 6자리"}),c.jsx("input",{inputMode:"numeric",maxLength:6,value:v,onChange:O=>x(O.target.value),placeholder:"000000",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white text-center tracking-[0.4em] placeholder-gray-600 focus:border-brand focus:outline-none"})]}),i&&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.jsx("button",{type:"button",onClick:()=>{d("login"),x(""),o("")},className:"w-full border border-edge text-gray-400 hover:text-white py-2 rounded text-sm transition-colors",children:"뒤로"})]})]}),y&&c.jsx(Hz,{mode:y,onClose:()=>m(null)})]})}function Hz({mode:e,onClose:t}){const[n,r]=j.useState(!1),[a,i]=j.useState(""),[o,l]=j.useState(""),[s,u]=j.useState({username:"",password:"",name:"",email:"",phone:"",tenantCode:""}),[d,f]=j.useState({name:"",email:""}),[h,p]=j.useState({username:"",name:"",email:""}),b=e==="signup"?"회원가입":e==="findId"?"아이디 찾기":"비밀번호 재설정";async function v(y){var m,g;y.preventDefault(),r(!0),i(""),l("");try{if(e==="signup"){const S=await P6(s);i(`가입 신청이 접수되었습니다 (아이디: ${S.username}, 상태: 승인 대기).`)}else if(e==="findId"){const S=await $6(d.name,d.email);i(S.found?`회원님의 아이디: ${S.maskedUsername}`:"일치하는 계정 없음")}else await D6(h.username,h.name,h.email),i("임시 비밀번호를 이메일로 발송했습니다.")}catch(S){l(((g=(m=S==null?void 0:S.response)==null?void 0:m.data)==null?void 0:g.message)||"요청 처리 중 오류가 발생했습니다.")}finally{r(!1)}}const x="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";return c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-4",onClick:t,children:c.jsxs("div",{className:"w-full max-w-sm bg-card border border-edge rounded-lg p-6",onClick:y=>y.stopPropagation(),children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("h2",{className:"text-sm font-bold text-brand",children:b}),c.jsx("button",{type:"button",onClick:t,className:"text-gray-500 hover:text-white text-sm",children:"✕"})]}),c.jsxs("form",{onSubmit:v,className:"space-y-3",children:[e==="signup"&&c.jsxs(c.Fragment,{children:[c.jsx("input",{className:x,placeholder:"아이디",value:s.username,onChange:y=>u({...s,username:y.target.value})}),c.jsx("input",{className:x,type:"password",placeholder:"비밀번호",value:s.password,onChange:y=>u({...s,password:y.target.value})}),c.jsx("input",{className:x,placeholder:"이름",value:s.name,onChange:y=>u({...s,name:y.target.value})}),c.jsx("input",{className:x,type:"email",placeholder:"이메일",value:s.email,onChange:y=>u({...s,email:y.target.value})}),c.jsx("input",{className:x,placeholder:"연락처",value:s.phone,onChange:y=>u({...s,phone:y.target.value})}),c.jsx("input",{className:x,placeholder:"기관 코드 (선택)",value:s.tenantCode,onChange:y=>u({...s,tenantCode:y.target.value})})]}),e==="findId"&&c.jsxs(c.Fragment,{children:[c.jsx("input",{className:x,placeholder:"이름",value:d.name,onChange:y=>f({...d,name:y.target.value})}),c.jsx("input",{className:x,type:"email",placeholder:"이메일",value:d.email,onChange:y=>f({...d,email:y.target.value})})]}),e==="resetPw"&&c.jsxs(c.Fragment,{children:[c.jsx("input",{className:x,placeholder:"아이디",value:h.username,onChange:y=>p({...h,username:y.target.value})}),c.jsx("input",{className:x,placeholder:"이름",value:h.name,onChange:y=>p({...h,name:y.target.value})}),c.jsx("input",{className:x,type:"email",placeholder:"이메일",value:h.email,onChange:y=>p({...h,email:y.target.value})})]}),a&&c.jsx("p",{className:"text-green-400 text-xs",children:a}),o&&c.jsx("p",{className:"text-red-400 text-xs",children:o}),c.jsx("button",{type:"submit",disabled:n,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium transition-colors disabled:opacity-50",children:n?"처리 중...":b})]})]})})}function KN(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=KN(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ve(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=KN(e))&&(r&&(r+=" "),r+=t);return r}var qz=Array.isArray,vn=qz,Fz=typeof of=="object"&&of&&of.Object===Object&&of,YN=Fz,Gz=YN,Kz=typeof self=="object"&&self&&self.Object===Object&&self,Yz=Gz||Kz||Function("return this")(),Mr=Yz,Vz=Mr,Xz=Vz.Symbol,Qc=Xz,Ow=Qc,VN=Object.prototype,Qz=VN.hasOwnProperty,Wz=VN.toString,qs=Ow?Ow.toStringTag:void 0;function Zz(e){var t=Qz.call(e,qs),n=e[qs];try{e[qs]=void 0;var r=!0}catch{}var a=Wz.call(e);return r&&(t?e[qs]=n:delete e[qs]),a}var Jz=Zz,e8=Object.prototype,t8=e8.toString;function n8(e){return t8.call(e)}var r8=n8,jw=Qc,a8=Jz,i8=r8,o8="[object Null]",l8="[object Undefined]",Aw=jw?jw.toStringTag:void 0;function s8(e){return e==null?e===void 0?l8:o8:Aw&&Aw in Object(e)?a8(e):i8(e)}var va=s8;function u8(e){return e!=null&&typeof e=="object"}var ga=u8,c8=va,f8=ga,d8="[object Symbol]";function h8(e){return typeof e=="symbol"||f8(e)&&c8(e)==d8}var ws=h8,p8=vn,y8=ws,m8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,v8=/^\w*$/;function g8(e,t){if(p8(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||y8(e)?!0:v8.test(e)||!m8.test(e)||t!=null&&e in Object(t)}var ox=g8;function b8(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ci=b8;const Os=He(ci);var x8=va,S8=ci,w8="[object AsyncFunction]",O8="[object Function]",j8="[object GeneratorFunction]",A8="[object Proxy]";function E8(e){if(!S8(e))return!1;var t=x8(e);return t==O8||t==j8||t==w8||t==A8}var lx=E8;const se=He(lx);var _8=Mr,T8=_8["__core-js_shared__"],N8=T8,lm=N8,Ew=function(){var e=/[^.]+$/.exec(lm&&lm.keys&&lm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function C8(e){return!!Ew&&Ew in e}var M8=C8,R8=Function.prototype,P8=R8.toString;function $8(e){if(e!=null){try{return P8.call(e)}catch{}try{return e+""}catch{}}return""}var XN=$8,D8=lx,k8=M8,L8=ci,z8=XN,B8=/[\\^$.*+?()[\]{}|]/g,I8=/^\[object .+?Constructor\]$/,U8=Function.prototype,H8=Object.prototype,q8=U8.toString,F8=H8.hasOwnProperty,G8=RegExp("^"+q8.call(F8).replace(B8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function K8(e){if(!L8(e)||k8(e))return!1;var t=D8(e)?G8:I8;return t.test(z8(e))}var Y8=K8;function V8(e,t){return e==null?void 0:e[t]}var X8=V8,Q8=Y8,W8=X8;function Z8(e,t){var n=W8(e,t);return Q8(n)?n:void 0}var go=Z8,J8=go,eB=J8(Object,"create"),gp=eB,_w=gp;function tB(){this.__data__=_w?_w(null):{},this.size=0}var nB=tB;function rB(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var aB=rB,iB=gp,oB="__lodash_hash_undefined__",lB=Object.prototype,sB=lB.hasOwnProperty;function uB(e){var t=this.__data__;if(iB){var n=t[e];return n===oB?void 0:n}return sB.call(t,e)?t[e]:void 0}var cB=uB,fB=gp,dB=Object.prototype,hB=dB.hasOwnProperty;function pB(e){var t=this.__data__;return fB?t[e]!==void 0:hB.call(t,e)}var yB=pB,mB=gp,vB="__lodash_hash_undefined__";function gB(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=mB&&t===void 0?vB:t,this}var bB=gB,xB=nB,SB=aB,wB=cB,OB=yB,jB=bB;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=xB;js.prototype.delete=SB;js.prototype.get=wB;js.prototype.has=OB;js.prototype.set=jB;var AB=js;function EB(){this.__data__=[],this.size=0}var _B=EB;function TB(e,t){return e===t||e!==e&&t!==t}var sx=TB,NB=sx;function CB(e,t){for(var n=e.length;n--;)if(NB(e[n][0],t))return n;return-1}var bp=CB,MB=bp,RB=Array.prototype,PB=RB.splice;function $B(e){var t=this.__data__,n=MB(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():PB.call(t,n,1),--this.size,!0}var DB=$B,kB=bp;function LB(e){var t=this.__data__,n=kB(t,e);return n<0?void 0:t[n][1]}var zB=LB,BB=bp;function IB(e){return BB(this.__data__,e)>-1}var UB=IB,HB=bp;function qB(e,t){var n=this.__data__,r=HB(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var FB=qB,GB=_B,KB=DB,YB=zB,VB=UB,XB=FB;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=GB;As.prototype.delete=KB;As.prototype.get=YB;As.prototype.has=VB;As.prototype.set=XB;var xp=As,QB=go,WB=Mr,ZB=QB(WB,"Map"),ux=ZB,Tw=AB,JB=xp,eI=ux;function tI(){this.size=0,this.__data__={hash:new Tw,map:new(eI||JB),string:new Tw}}var nI=tI;function rI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var aI=rI,iI=aI;function oI(e,t){var n=e.__data__;return iI(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Sp=oI,lI=Sp;function sI(e){var t=lI(this,e).delete(e);return this.size-=t?1:0,t}var uI=sI,cI=Sp;function fI(e){return cI(this,e).get(e)}var dI=fI,hI=Sp;function pI(e){return hI(this,e).has(e)}var yI=pI,mI=Sp;function vI(e,t){var n=mI(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var gI=vI,bI=nI,xI=uI,SI=dI,wI=yI,OI=gI;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=bI;Es.prototype.delete=xI;Es.prototype.get=SI;Es.prototype.has=wI;Es.prototype.set=OI;var cx=Es,QN=cx,jI="Expected a function";function fx(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(jI);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||QN),n}fx.Cache=QN;var WN=fx;const AI=He(WN);var EI=WN,_I=500;function TI(e){var t=EI(e,function(r){return n.size===_I&&n.clear(),r}),n=t.cache;return t}var NI=TI,CI=NI,MI=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,RI=/\\(\\)?/g,PI=CI(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(MI,function(n,r,a,i){t.push(a?i.replace(RI,"$1"):r||n)}),t}),$I=PI;function DI(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=DI,Nw=Qc,kI=dx,LI=vn,zI=ws,Cw=Nw?Nw.prototype:void 0,Mw=Cw?Cw.toString:void 0;function ZN(e){if(typeof e=="string")return e;if(LI(e))return kI(e,ZN)+"";if(zI(e))return Mw?Mw.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var BI=ZN,II=BI;function UI(e){return e==null?"":II(e)}var JN=UI,HI=vn,qI=ox,FI=$I,GI=JN;function KI(e,t){return HI(e)?e:qI(e,t)?[e]:FI(GI(e))}var eC=KI,YI=ws;function VI(e){if(typeof e=="string"||YI(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var wp=VI,XI=eC,QI=wp;function WI(e,t){t=XI(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[QI(t[n++])];return n&&n==r?e:void 0}var hx=WI,ZI=hx;function JI(e,t,n){var r=e==null?void 0:ZI(e,t);return r===void 0?n:r}var tC=JI;const Rn=He(tC);function eU(e){return e==null}var tU=eU;const ge=He(tU);var nU=va,rU=vn,aU=ga,iU="[object String]";function oU(e){return typeof e=="string"||!rU(e)&&aU(e)&&nU(e)==iU}var lU=oU;const oo=He(lU);var nC={exports:{}},ke={};/**
 * @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"),Op=Symbol.for("react.fragment"),jp=Symbol.for("react.strict_mode"),Ap=Symbol.for("react.profiler"),Ep=Symbol.for("react.provider"),_p=Symbol.for("react.context"),sU=Symbol.for("react.server_context"),Tp=Symbol.for("react.forward_ref"),Np=Symbol.for("react.suspense"),Cp=Symbol.for("react.suspense_list"),Mp=Symbol.for("react.memo"),Rp=Symbol.for("react.lazy"),uU=Symbol.for("react.offscreen"),rC;rC=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 Op:case Ap:case jp:case Np:case Cp:return e;default:switch(e=e&&e.$$typeof,e){case sU:case _p:case Tp:case Rp:case Mp:case Ep:return e;default:return t}}case yx:return t}}}ke.ContextConsumer=_p;ke.ContextProvider=Ep;ke.Element=px;ke.ForwardRef=Tp;ke.Fragment=Op;ke.Lazy=Rp;ke.Memo=Mp;ke.Portal=yx;ke.Profiler=Ap;ke.StrictMode=jp;ke.Suspense=Np;ke.SuspenseList=Cp;ke.isAsyncMode=function(){return!1};ke.isConcurrentMode=function(){return!1};ke.isContextConsumer=function(e){return tr(e)===_p};ke.isContextProvider=function(e){return tr(e)===Ep};ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===px};ke.isForwardRef=function(e){return tr(e)===Tp};ke.isFragment=function(e){return tr(e)===Op};ke.isLazy=function(e){return tr(e)===Rp};ke.isMemo=function(e){return tr(e)===Mp};ke.isPortal=function(e){return tr(e)===yx};ke.isProfiler=function(e){return tr(e)===Ap};ke.isStrictMode=function(e){return tr(e)===jp};ke.isSuspense=function(e){return tr(e)===Np};ke.isSuspenseList=function(e){return tr(e)===Cp};ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Op||e===Ap||e===jp||e===Np||e===Cp||e===uU||typeof e=="object"&&e!==null&&(e.$$typeof===Rp||e.$$typeof===Mp||e.$$typeof===Ep||e.$$typeof===_p||e.$$typeof===Tp||e.$$typeof===rC||e.getModuleId!==void 0)};ke.typeOf=tr;nC.exports=ke;var cU=nC.exports,fU=va,dU=ga,hU="[object Number]";function pU(e){return typeof e=="number"||dU(e)&&fU(e)==hU}var aC=pU;const yU=He(aC);var mU=aC;function vU(e){return mU(e)&&e!=+e}var gU=vU;const Wc=He(gU);var Jt=function(t){return t===0?0:t>0?1:-1},Mi=function(t){return oo(t)&&t.indexOf("%")===t.length-1},Y=function(t){return yU(t)&&!Wc(t)},bU=function(t){return ge(t)},jt=function(t){return Y(t)||oo(t)},xU=0,Zc=function(t){var n=++xU;return"".concat(t||"").concat(n)},en=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(!Y(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 Wc(i)&&(i=r),a&&i>n&&(i=n),i},$o=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},SU=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},Aa=function(t,n){return Y(t)&&Y(n)?function(r){return t+r*(n-t)}:function(){return n}};function ag(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Rn(r,t))===n})}var wU=function(t,n){return Y(t)&&Y(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 ol(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 ig(e){"@babel/helpers - typeof";return ig=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},ig(e)}var OU=["viewBox","children"],jU=["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"],sm={svg:OU,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"],Fd=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},AU=function(t,n,r){return function(a){return t(n,r,a),null}},lo=function(t,n,r){if(!Os(t)||ig(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]=AU(o,n,r))}),a},EU=["children"],_U=["children"];function Pw(e,t){if(e==null)return{};var n=TU(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 TU(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 $w={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"},na=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Dw=null,um=null,vx=function e(t){if(t===Dw&&Array.isArray(um))return um;var n=[];return j.Children.forEach(t,function(r){ge(r)||(cU.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),um=n,Dw=t,n};function Wn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return na(a)}):r=[na(t)],vx(e).forEach(function(a){var i=Rn(a,"type.displayName")||Rn(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function Sn(e,t){var n=Wn(e,t);return n&&n[0]}var kw=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!Y(r)||r<=0||!Y(a)||a<=0)},NU=["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"],CU=function(t){return t&&t.type&&oo(t.type)&&NU.indexOf(t.type)>=0},MU=function(t,n,r,a){var i,o=(i=sm==null?void 0:sm[a])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!se(t)&&(a&&o.includes(n)||jU.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;MU((l=a)===null||l===void 0?void 0:l[o],o,n,r)&&(i[o]=a[o])}),i},og=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 Lw(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(!Lw(i,o))return!1}return!0},Lw=function(t,n){if(ge(t)&&ge(n))return!0;if(!ge(t)&&!ge(n)){var r=t.props||{},a=r.children,i=Pw(r,EU),o=n.props||{},l=o.children,s=Pw(o,_U);return a&&l?ol(i,s)&&og(a,l):!a&&!l?ol(i,s):!1}return!1},zw=function(t,n){var r=[],a={};return vx(t).forEach(function(i,o){if(CU(i))r.push(i);else if(i){var l=na(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},RU=function(t){var n=t&&t.type;return n&&$w[n]?$w[n]:null},PU=function(t,n){return vx(n).indexOf(t)},$U=["children","width","height","viewBox","className","style","title","desc"];function lg(){return lg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lg.apply(this,arguments)}function DU(e,t){if(e==null)return{};var n=kU(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 kU(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 sg(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=DU(e,$U),d=a||{width:n,height:r,x:0,y:0},f=ve("recharts-surface",i);return M.createElement("svg",lg({},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)}),M.createElement("title",null,l),M.createElement("desc",null,s),t)}var LU=["children","className"];function ug(){return ug=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ug.apply(this,arguments)}function zU(e,t){if(e==null)return{};var n=BU(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 BU(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 De=M.forwardRef(function(e,t){var n=e.children,r=e.className,a=zU(e,LU),i=ve("recharts-layer",r);return M.createElement("g",ug({className:i},oe(a,!0),{ref:t}),n)}),ra=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 IU(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 UU=IU,HU=UU;function qU(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:HU(e,t,n)}var FU=qU,GU="\\ud800-\\udfff",KU="\\u0300-\\u036f",YU="\\ufe20-\\ufe2f",VU="\\u20d0-\\u20ff",XU=KU+YU+VU,QU="\\ufe0e\\ufe0f",WU="\\u200d",ZU=RegExp("["+WU+GU+XU+QU+"]");function JU(e){return ZU.test(e)}var iC=JU;function e7(e){return e.split("")}var t7=e7,oC="\\ud800-\\udfff",n7="\\u0300-\\u036f",r7="\\ufe20-\\ufe2f",a7="\\u20d0-\\u20ff",i7=n7+r7+a7,o7="\\ufe0e\\ufe0f",l7="["+oC+"]",cg="["+i7+"]",fg="\\ud83c[\\udffb-\\udfff]",s7="(?:"+cg+"|"+fg+")",lC="[^"+oC+"]",sC="(?:\\ud83c[\\udde6-\\uddff]){2}",uC="[\\ud800-\\udbff][\\udc00-\\udfff]",u7="\\u200d",cC=s7+"?",fC="["+o7+"]?",c7="(?:"+u7+"(?:"+[lC,sC,uC].join("|")+")"+fC+cC+")*",f7=fC+cC+c7,d7="(?:"+[lC+cg+"?",cg,sC,uC,l7].join("|")+")",h7=RegExp(fg+"(?="+fg+")|"+d7+f7,"g");function p7(e){return e.match(h7)||[]}var y7=p7,m7=t7,v7=iC,g7=y7;function b7(e){return v7(e)?g7(e):m7(e)}var x7=b7,S7=FU,w7=iC,O7=x7,j7=JN;function A7(e){return function(t){t=j7(t);var n=w7(t)?O7(t):void 0,r=n?n[0]:t.charAt(0),a=n?S7(n,1).join(""):t.slice(1);return r[e]()+a}}var E7=A7,_7=E7,T7=_7("toUpperCase"),N7=T7;const Pp=He(N7);function Ke(e){return function(){return e}}const dC=Math.cos,Gd=Math.sin,mr=Math.sqrt,Kd=Math.PI,$p=2*Kd,dg=Math.PI,hg=2*dg,Ai=1e-6,C7=hg-Ai;function hC(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function M7(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return hC;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 R7{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?hC:M7(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,v=s*s+u*u,x=p*p+b*b,y=Math.sqrt(v),m=Math.sqrt(h),g=i*Math.tan((dg-Math.acos((v+h-x)/(2*y*m)))/2),S=g/m,w=g/y;Math.abs(S-1)>Ai&&this._append`L${t+S*d},${n+S*f}`,this._append`A${i},${i},0,0,${+(f*p>d*b)},${this._x1=t+w*s},${this._y1=n+w*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%hg+hg),h>C7?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>=dg)},${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 R7(t)}function bx(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function pC(e){this._context=e}pC.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 Dp(e){return new pC(e)}function yC(e){return e[0]}function mC(e){return e[1]}function vC(e,t){var n=Ke(!0),r=null,a=Dp,i=null,o=gx(l);e=typeof e=="function"?e:e===void 0?yC:Ke(e),t=typeof t=="function"?t:t===void 0?mC:Ke(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:Ke(+s),l):e},l.y=function(s){return arguments.length?(t=typeof s=="function"?s:Ke(+s),l):t},l.defined=function(s){return arguments.length?(n=typeof s=="function"?s:Ke(!!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=Ke(!0),i=null,o=Dp,l=null,s=gx(u);e=typeof e=="function"?e:e===void 0?yC:Ke(+e),t=typeof t=="function"?t:Ke(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?mC:Ke(+n);function u(f){var h,p,b,v=(f=bx(f)).length,x,y=!1,m,g=new Array(v),S=new Array(v);for(i==null&&(l=o(m=s())),h=0;h<=v;++h){if(!(h<v&&a(x=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(g[b],S[b]);l.lineEnd(),l.areaEnd()}y&&(g[h]=+e(x,h,f),S[h]=+t(x,h,f),l.point(r?+r(x,h,f):g[h],n?+n(x,h,f):S[h]))}if(m)return l=null,m+""||null}function d(){return vC().defined(a).curve(o).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Ke(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Ke(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Ke(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Ke(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Ke(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Ke(+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:Ke(!!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 gC{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 P7(e){return new gC(e,!0)}function $7(e){return new gC(e,!1)}const xx={draw(e,t){const n=mr(t/Kd);e.moveTo(n,0),e.arc(0,0,n,0,$p)}},D7={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()}},bC=mr(1/3),k7=bC*2,L7={draw(e,t){const n=mr(t/k7),r=n*bC;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},z7={draw(e,t){const n=mr(t),r=-n/2;e.rect(r,r,n,n)}},B7=.8908130915292852,xC=Gd(Kd/10)/Gd(7*Kd/10),I7=Gd($p/10)*xC,U7=-dC($p/10)*xC,H7={draw(e,t){const n=mr(t*B7),r=I7*n,a=U7*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const o=$p*i/5,l=dC(o),s=Gd(o);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*a,s*r+l*a)}e.closePath()}},cm=mr(3),q7={draw(e,t){const n=-mr(t/(cm*3));e.moveTo(0,n*2),e.lineTo(-cm*n,-n),e.lineTo(cm*n,-n),e.closePath()}},kn=-.5,Ln=mr(3)/2,pg=1/mr(12),F7=(pg/2+1)*3,G7={draw(e,t){const n=mr(t/F7),r=n/2,a=n*pg,i=r,o=n*pg+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 K7(e,t){let n=null,r=gx(a);e=typeof e=="function"?e:Ke(e||xx),t=typeof t=="function"?t:Ke(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:Ke(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Ke(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function Yd(){}function Vd(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 SC(e){this._context=e}SC.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:Vd(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:Vd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Y7(e){return new SC(e)}function wC(e){this._context=e}wC.prototype={areaStart:Yd,areaEnd:Yd,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Vd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function V7(e){return new wC(e)}function OC(e){this._context=e}OC.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:Vd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function X7(e){return new OC(e)}function jC(e){this._context=e}jC.prototype={areaStart:Yd,areaEnd:Yd,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Q7(e){return new jC(e)}function Bw(e){return e<0?-1:1}function Iw(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(Bw(i)+Bw(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function Uw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function fm(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,a+l*t,i-l,o-l*n,i,o)}function Xd(e){this._context=e}Xd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:fm(this,this._t0,Uw(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,fm(this,Uw(this,n=Iw(this,e,t)),n);break;default:fm(this,this._t0,n=Iw(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function AC(e){this._context=new EC(e)}(AC.prototype=Object.create(Xd.prototype)).point=function(e,t){Xd.prototype.point.call(this,t,e)};function EC(e){this._context=e}EC.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 W7(e){return new Xd(e)}function Z7(e){return new AC(e)}function _C(e){this._context=e}_C.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=Hw(e),a=Hw(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 Hw(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 J7(e){return new _C(e)}function kp(e,t){this._context=e,this._t=t}kp.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 e9(e){return new kp(e,.5)}function t9(e){return new kp(e,0)}function n9(e){return new kp(e,1)}function kl(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 yg(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function r9(e,t){return e[t]}function a9(e){const t=[];return t.key=e,t}function i9(){var e=Ke([]),t=yg,n=kl,r=r9;function a(i){var o=Array.from(e.apply(this,arguments),a9),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:Ke(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:Ke(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?yg:typeof i=="function"?i:Ke(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??kl,a):n},a}function o9(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}kl(e,t)}}function l9(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}kl(e,t)}}function s9(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 v=e[t[b]],x=v[r][1]||0,y=v[r-1][1]||0;p+=x-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,kl(e,t)}}function Fu(e){"@babel/helpers - typeof";return Fu=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},Fu(e)}var u9=["type","size","sizeType"];function mg(){return mg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mg.apply(this,arguments)}function qw(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 Fw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qw(Object(n),!0).forEach(function(r){c9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c9(e,t,n){return t=f9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f9(e){var t=d9(e,"string");return Fu(t)=="symbol"?t:t+""}function d9(e,t){if(Fu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function h9(e,t){if(e==null)return{};var n=p9(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 p9(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 TC={symbolCircle:xx,symbolCross:D7,symbolDiamond:L7,symbolSquare:z7,symbolStar:H7,symbolTriangle:q7,symbolWye:G7},y9=Math.PI/180,m9=function(t){var n="symbol".concat(Pp(t));return TC[n]||xx},v9=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*y9;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}},g9=function(t,n){TC["symbol".concat(Pp(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=h9(t,u9),u=Fw(Fw({},s),{},{type:r,size:i,sizeType:l}),d=function(){var x=m9(r),y=K7().type(x).size(v9(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?M.createElement("path",mg({},b,{className:ve("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:d()})):null};Sx.registerSymbol=g9;function Ll(e){"@babel/helpers - typeof";return Ll=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},Ll(e)}function vg(){return vg=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},vg.apply(this,arguments)}function Gw(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 b9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gw(Object(n),!0).forEach(function(r){Gu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function x9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S9(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,CC(r.key),r)}}function w9(e,t,n){return t&&S9(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function O9(e,t,n){return t=Qd(t),j9(e,NC()?Reflect.construct(t,n||[],Qd(e).constructor):t.apply(e,n))}function j9(e,t){if(t&&(Ll(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A9(e)}function A9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NC=function(){return!!e})()}function Qd(e){return Qd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qd(e)}function E9(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&&gg(e,t)}function gg(e,t){return gg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},gg(e,t)}function Gu(e,t,n){return t=CC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CC(e){var t=_9(e,"string");return Ll(t)=="symbol"?t:t+""}function _9(e,t){if(Ll(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ll(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 x9(this,t),O9(this,t,arguments)}return E9(t,e),w9(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 M.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 M.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 M.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(M.isValidElement(r.legendIcon)){var u=b9({},r);return delete u.legendIcon,M.cloneElement(r.legendIcon,u)}return M.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 v=p.formatter||s,x=ve(Gu(Gu({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",p.inactive));if(p.type==="none")return null;var y=se(p.value)?null:p.value;ra(!se(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var m=p.inactive?u:p.color;return M.createElement("li",vg({className:x,style:f,key:"legend-item-".concat(b)},lo(r.props,p,b)),M.createElement(sg,{width:o,height:o,viewBox:d,style:h},r.renderIcon(p)),M.createElement("span",{className:"recharts-legend-item-text",style:{color:m}},v?v(y,p,b):y))})}},{key:"render",value:function(){var r=this.props,a=r.payload,i=r.layout,o=r.align;if(!a||!a.length)return null;var l={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return M.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(j.PureComponent);Gu(wx,"displayName","Legend");Gu(wx,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var T9=xp;function N9(){this.__data__=new T9,this.size=0}var C9=N9;function M9(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var R9=M9;function P9(e){return this.__data__.get(e)}var $9=P9;function D9(e){return this.__data__.has(e)}var k9=D9,L9=xp,z9=ux,B9=cx,I9=200;function U9(e,t){var n=this.__data__;if(n instanceof L9){var r=n.__data__;if(!z9||r.length<I9-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new B9(r)}return n.set(e,t),this.size=n.size,this}var H9=U9,q9=xp,F9=C9,G9=R9,K9=$9,Y9=k9,V9=H9;function _s(e){var t=this.__data__=new q9(e);this.size=t.size}_s.prototype.clear=F9;_s.prototype.delete=G9;_s.prototype.get=K9;_s.prototype.has=Y9;_s.prototype.set=V9;var MC=_s,X9="__lodash_hash_undefined__";function Q9(e){return this.__data__.set(e,X9),this}var W9=Q9;function Z9(e){return this.__data__.has(e)}var J9=Z9,eH=cx,tH=W9,nH=J9;function Wd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new eH;++t<n;)this.add(e[t])}Wd.prototype.add=Wd.prototype.push=tH;Wd.prototype.has=nH;var RC=Wd;function rH(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 PC=rH;function aH(e,t){return e.has(t)}var $C=aH,iH=RC,oH=PC,lH=$C,sH=1,uH=2;function cH(e,t,n,r,a,i){var o=n&sH,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&uH?new iH:void 0;for(i.set(e,t),i.set(t,e);++f<l;){var b=e[f],v=t[f];if(r)var x=o?r(v,b,f,t,e,i):r(b,v,f,e,t,i);if(x!==void 0){if(x)continue;h=!1;break}if(p){if(!oH(t,function(y,m){if(!lH(p,m)&&(b===y||a(b,y,n,r,i)))return p.push(m)})){h=!1;break}}else if(!(b===v||a(b,v,n,r,i))){h=!1;break}}return i.delete(e),i.delete(t),h}var DC=cH,fH=Mr,dH=fH.Uint8Array,hH=dH;function pH(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var yH=pH;function mH(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Ox=mH,Kw=Qc,Yw=hH,vH=sx,gH=DC,bH=yH,xH=Ox,SH=1,wH=2,OH="[object Boolean]",jH="[object Date]",AH="[object Error]",EH="[object Map]",_H="[object Number]",TH="[object RegExp]",NH="[object Set]",CH="[object String]",MH="[object Symbol]",RH="[object ArrayBuffer]",PH="[object DataView]",Vw=Kw?Kw.prototype:void 0,dm=Vw?Vw.valueOf:void 0;function $H(e,t,n,r,a,i,o){switch(n){case PH:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case RH:return!(e.byteLength!=t.byteLength||!i(new Yw(e),new Yw(t)));case OH:case jH:case _H:return vH(+e,+t);case AH:return e.name==t.name&&e.message==t.message;case TH:case CH:return e==t+"";case EH:var l=bH;case NH:var s=r&SH;if(l||(l=xH),e.size!=t.size&&!s)return!1;var u=o.get(e);if(u)return u==t;r|=wH,o.set(e,t);var d=gH(l(e),l(t),r,a,i,o);return o.delete(e),d;case MH:if(dm)return dm.call(e)==dm.call(t)}return!1}var DH=$H;function kH(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var kC=kH,LH=kC,zH=vn;function BH(e,t,n){var r=t(e);return zH(e)?r:LH(r,n(e))}var IH=BH;function UH(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 HH=UH;function qH(){return[]}var FH=qH,GH=HH,KH=FH,YH=Object.prototype,VH=YH.propertyIsEnumerable,Xw=Object.getOwnPropertySymbols,XH=Xw?function(e){return e==null?[]:(e=Object(e),GH(Xw(e),function(t){return VH.call(e,t)}))}:KH,QH=XH;function WH(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var ZH=WH,JH=va,eq=ga,tq="[object Arguments]";function nq(e){return eq(e)&&JH(e)==tq}var rq=nq,Qw=rq,aq=ga,LC=Object.prototype,iq=LC.hasOwnProperty,oq=LC.propertyIsEnumerable,lq=Qw(function(){return arguments}())?Qw:function(e){return aq(e)&&iq.call(e,"callee")&&!oq.call(e,"callee")},jx=lq,Zd={exports:{}};function sq(){return!1}var uq=sq;Zd.exports;(function(e,t){var n=Mr,r=uq,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})(Zd,Zd.exports);var zC=Zd.exports,cq=9007199254740991,fq=/^(?:0|[1-9]\d*)$/;function dq(e,t){var n=typeof e;return t=t??cq,!!t&&(n=="number"||n!="symbol"&&fq.test(e))&&e>-1&&e%1==0&&e<t}var Ax=dq,hq=9007199254740991;function pq(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=hq}var Ex=pq,yq=va,mq=Ex,vq=ga,gq="[object Arguments]",bq="[object Array]",xq="[object Boolean]",Sq="[object Date]",wq="[object Error]",Oq="[object Function]",jq="[object Map]",Aq="[object Number]",Eq="[object Object]",_q="[object RegExp]",Tq="[object Set]",Nq="[object String]",Cq="[object WeakMap]",Mq="[object ArrayBuffer]",Rq="[object DataView]",Pq="[object Float32Array]",$q="[object Float64Array]",Dq="[object Int8Array]",kq="[object Int16Array]",Lq="[object Int32Array]",zq="[object Uint8Array]",Bq="[object Uint8ClampedArray]",Iq="[object Uint16Array]",Uq="[object Uint32Array]",We={};We[Pq]=We[$q]=We[Dq]=We[kq]=We[Lq]=We[zq]=We[Bq]=We[Iq]=We[Uq]=!0;We[gq]=We[bq]=We[Mq]=We[xq]=We[Rq]=We[Sq]=We[wq]=We[Oq]=We[jq]=We[Aq]=We[Eq]=We[_q]=We[Tq]=We[Nq]=We[Cq]=!1;function Hq(e){return vq(e)&&mq(e.length)&&!!We[yq(e)]}var qq=Hq;function Fq(e){return function(t){return e(t)}}var BC=Fq,Jd={exports:{}};Jd.exports;(function(e,t){var n=YN,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})(Jd,Jd.exports);var Gq=Jd.exports,Kq=qq,Yq=BC,Ww=Gq,Zw=Ww&&Ww.isTypedArray,Vq=Zw?Yq(Zw):Kq,IC=Vq,Xq=ZH,Qq=jx,Wq=vn,Zq=zC,Jq=Ax,eF=IC,tF=Object.prototype,nF=tF.hasOwnProperty;function rF(e,t){var n=Wq(e),r=!n&&Qq(e),a=!n&&!r&&Zq(e),i=!n&&!r&&!a&&eF(e),o=n||r||a||i,l=o?Xq(e.length,String):[],s=l.length;for(var u in e)(t||nF.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Jq(u,s)))&&l.push(u);return l}var aF=rF,iF=Object.prototype;function oF(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||iF;return e===n}var lF=oF;function sF(e,t){return function(n){return e(t(n))}}var UC=sF,uF=UC,cF=uF(Object.keys,Object),fF=cF,dF=lF,hF=fF,pF=Object.prototype,yF=pF.hasOwnProperty;function mF(e){if(!dF(e))return hF(e);var t=[];for(var n in Object(e))yF.call(e,n)&&n!="constructor"&&t.push(n);return t}var vF=mF,gF=lx,bF=Ex;function xF(e){return e!=null&&bF(e.length)&&!gF(e)}var Lp=xF,SF=aF,wF=vF,OF=Lp;function jF(e){return OF(e)?SF(e):wF(e)}var _x=jF,AF=IH,EF=QH,_F=_x;function TF(e){return AF(e,_F,EF)}var NF=TF,Jw=NF,CF=1,MF=Object.prototype,RF=MF.hasOwnProperty;function PF(e,t,n,r,a,i){var o=n&CF,l=Jw(e),s=l.length,u=Jw(t),d=u.length;if(s!=d&&!o)return!1;for(var f=s;f--;){var h=l[f];if(!(o?h in t:RF.call(t,h)))return!1}var p=i.get(e),b=i.get(t);if(p&&b)return p==t&&b==e;var v=!0;i.set(e,t),i.set(t,e);for(var x=o;++f<s;){h=l[f];var y=e[h],m=t[h];if(r)var g=o?r(m,y,h,t,e,i):r(y,m,h,e,t,i);if(!(g===void 0?y===m||a(y,m,n,r,i):g)){v=!1;break}x||(x=h=="constructor")}if(v&&!x){var S=e.constructor,w=t.constructor;S!=w&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof w=="function"&&w instanceof w)&&(v=!1)}return i.delete(e),i.delete(t),v}var $F=PF,DF=go,kF=Mr,LF=DF(kF,"DataView"),zF=LF,BF=go,IF=Mr,UF=BF(IF,"Promise"),HF=UF,qF=go,FF=Mr,GF=qF(FF,"Set"),HC=GF,KF=go,YF=Mr,VF=KF(YF,"WeakMap"),XF=VF,bg=zF,xg=ux,Sg=HF,wg=HC,Og=XF,qC=va,Ts=XN,eO="[object Map]",QF="[object Object]",tO="[object Promise]",nO="[object Set]",rO="[object WeakMap]",aO="[object DataView]",WF=Ts(bg),ZF=Ts(xg),JF=Ts(Sg),eG=Ts(wg),tG=Ts(Og),Ei=qC;(bg&&Ei(new bg(new ArrayBuffer(1)))!=aO||xg&&Ei(new xg)!=eO||Sg&&Ei(Sg.resolve())!=tO||wg&&Ei(new wg)!=nO||Og&&Ei(new Og)!=rO)&&(Ei=function(e){var t=qC(e),n=t==QF?e.constructor:void 0,r=n?Ts(n):"";if(r)switch(r){case WF:return aO;case ZF:return eO;case JF:return tO;case eG:return nO;case tG:return rO}return t});var nG=Ei,hm=MC,rG=DC,aG=DH,iG=$F,iO=nG,oO=vn,lO=zC,oG=IC,lG=1,sO="[object Arguments]",uO="[object Array]",_f="[object Object]",sG=Object.prototype,cO=sG.hasOwnProperty;function uG(e,t,n,r,a,i){var o=oO(e),l=oO(t),s=o?uO:iO(e),u=l?uO:iO(t);s=s==sO?_f:s,u=u==sO?_f:u;var d=s==_f,f=u==_f,h=s==u;if(h&&lO(e)){if(!lO(t))return!1;o=!0,d=!1}if(h&&!d)return i||(i=new hm),o||oG(e)?rG(e,t,n,r,a,i):aG(e,t,s,n,r,a,i);if(!(n&lG)){var p=d&&cO.call(e,"__wrapped__"),b=f&&cO.call(t,"__wrapped__");if(p||b){var v=p?e.value():e,x=b?t.value():t;return i||(i=new hm),a(v,x,n,r,i)}}return h?(i||(i=new hm),iG(e,t,n,r,a,i)):!1}var cG=uG,fG=cG,fO=ga;function FC(e,t,n,r,a){return e===t?!0:e==null||t==null||!fO(e)&&!fO(t)?e!==e&&t!==t:fG(e,t,n,r,FC,a)}var Tx=FC,dG=MC,hG=Tx,pG=1,yG=2;function mG(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 dG;if(r)var h=r(u,d,s,e,t,f);if(!(h===void 0?hG(d,u,pG|yG,r,f):h))return!1}}return!0}var vG=mG,gG=ci;function bG(e){return e===e&&!gG(e)}var GC=bG,xG=GC,SG=_x;function wG(e){for(var t=SG(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,xG(a)]}return t}var OG=wG;function jG(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var KC=jG,AG=vG,EG=OG,_G=KC;function TG(e){var t=EG(e);return t.length==1&&t[0][2]?_G(t[0][0],t[0][1]):function(n){return n===e||AG(n,e,t)}}var NG=TG;function CG(e,t){return e!=null&&t in Object(e)}var MG=CG,RG=eC,PG=jx,$G=vn,DG=Ax,kG=Ex,LG=wp;function zG(e,t,n){t=RG(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=LG(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&&kG(a)&&DG(o,a)&&($G(e)||PG(e)))}var BG=zG,IG=MG,UG=BG;function HG(e,t){return e!=null&&UG(e,t,IG)}var qG=HG,FG=Tx,GG=tC,KG=qG,YG=ox,VG=GC,XG=KC,QG=wp,WG=1,ZG=2;function JG(e,t){return YG(e)&&VG(t)?XG(QG(e),t):function(n){var r=GG(n,e);return r===void 0&&r===t?KG(n,e):FG(t,r,WG|ZG)}}var eK=JG;function tK(e){return e}var Ns=tK;function nK(e){return function(t){return t==null?void 0:t[e]}}var rK=nK,aK=hx;function iK(e){return function(t){return aK(t,e)}}var oK=iK,lK=rK,sK=oK,uK=ox,cK=wp;function fK(e){return uK(e)?lK(cK(e)):sK(e)}var dK=fK,hK=NG,pK=eK,yK=Ns,mK=vn,vK=dK;function gK(e){return typeof e=="function"?e:e==null?yK:typeof e=="object"?mK(e)?pK(e[0],e[1]):hK(e):vK(e)}var fi=gK;function bK(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 xK=bK;function SK(e){return e!==e}var wK=SK;function OK(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var jK=OK,AK=xK,EK=wK,_K=jK;function TK(e,t,n){return t===t?_K(e,t,n):AK(e,EK,n)}var NK=TK,CK=NK;function MK(e,t){var n=e==null?0:e.length;return!!n&&CK(e,t,0)>-1}var RK=MK;function PK(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 $K=PK;function DK(){}var kK=DK,pm=HC,LK=kK,zK=Ox,BK=1/0,IK=pm&&1/zK(new pm([,-0]))[1]==BK?function(e){return new pm(e)}:LK,UK=IK,HK=RC,qK=RK,FK=$K,GK=$C,KK=UK,YK=Ox,VK=200;function XK(e,t,n){var r=-1,a=qK,i=e.length,o=!0,l=[],s=l;if(n)o=!1,a=FK;else if(i>=VK){var u=t?null:KK(e);if(u)return YK(u);o=!1,a=GK,s=new HK}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 QK=XK,WK=fi,ZK=QK;function JK(e,t){return e&&e.length?ZK(e,WK(t)):[]}var eY=JK;const dO=He(eY);function YC(e,t,n){return t===!0?dO(e,n):se(t)?dO(e,t):e}function zl(e){"@babel/helpers - typeof";return zl=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},zl(e)}var tY=["ref"];function hO(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 zr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hO(Object(n),!0).forEach(function(r){zp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pO(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,XC(r.key),r)}}function rY(e,t,n){return t&&pO(e.prototype,t),n&&pO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aY(e,t,n){return t=eh(t),iY(e,VC()?Reflect.construct(t,n||[],eh(e).constructor):t.apply(e,n))}function iY(e,t){if(t&&(zl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oY(e)}function oY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VC=function(){return!!e})()}function eh(e){return eh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},eh(e)}function lY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jg(e,t)}function jg(e,t){return jg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},jg(e,t)}function zp(e,t,n){return t=XC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XC(e){var t=sY(e,"string");return zl(t)=="symbol"?t:t+""}function sY(e,t){if(zl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function uY(e,t){if(e==null)return{};var n=cY(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 cY(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 fY(e){return e.value}function dY(e,t){if(M.isValidElement(e))return M.cloneElement(e,t);if(typeof e=="function")return M.createElement(e,t);t.ref;var n=uY(t,tY);return M.createElement(wx,n)}var yO=1,ll=function(e){function t(){var n;nY(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=aY(this,t,[].concat(a)),zp(n,"lastBoundingBox",{width:-1,height:-1}),n}return lY(t,e),rY(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)>yO||Math.abs(a.height-this.lastBoundingBox.height)>yO)&&(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?zr({},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 zr(zr({},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=zr(zr({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(s)),s);return M.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){r.wrapperNode=p}},dY(i,zr(zr({},this.props),{},{payload:YC(d,u,fY)})))}}],[{key:"getWithHeight",value:function(r,a){var i=zr(zr({},this.defaultProps),r.props),o=i.layout;return o==="vertical"&&Y(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||a}:null}}])}(j.PureComponent);zp(ll,"displayName","Legend");zp(ll,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var mO=Qc,hY=jx,pY=vn,vO=mO?mO.isConcatSpreadable:void 0;function yY(e){return pY(e)||hY(e)||!!(vO&&e&&e[vO])}var mY=yY,vY=kC,gY=mY;function QC(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=gY),a||(a=[]);++i<o;){var l=e[i];t>0&&n(l)?t>1?QC(l,t-1,n,r,a):vY(a,l):r||(a[a.length]=l)}return a}var WC=QC;function bY(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 xY=bY,SY=xY,wY=SY(),OY=wY,jY=OY,AY=_x;function EY(e,t){return e&&jY(e,t,AY)}var ZC=EY,_Y=Lp;function TY(e,t){return function(n,r){if(n==null)return n;if(!_Y(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 NY=TY,CY=ZC,MY=NY,RY=MY(CY),Nx=RY,PY=Nx,$Y=Lp;function DY(e,t){var n=-1,r=$Y(e)?Array(e.length):[];return PY(e,function(a,i,o){r[++n]=t(a,i,o)}),r}var JC=DY;function kY(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var LY=kY,gO=ws;function zY(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=gO(e),o=t!==void 0,l=t===null,s=t===t,u=gO(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 BY=zY,IY=BY;function UY(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,o=a.length,l=n.length;++r<o;){var s=IY(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 HY=UY,ym=dx,qY=hx,FY=fi,GY=JC,KY=LY,YY=BC,VY=HY,XY=Ns,QY=vn;function WY(e,t,n){t.length?t=ym(t,function(i){return QY(i)?function(o){return qY(o,i.length===1?i[0]:i)}:i}):t=[XY];var r=-1;t=ym(t,YY(FY));var a=GY(e,function(i,o,l){var s=ym(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return KY(a,function(i,o){return VY(i,o,n)})}var ZY=WY;function JY(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 eV=JY,tV=eV,bO=Math.max;function nV(e,t,n){return t=bO(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=bO(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),tV(e,this,l)}}var rV=nV;function aV(e){return function(){return e}}var iV=aV,oV=go,lV=function(){try{var e=oV(Object,"defineProperty");return e({},"",{}),e}catch{}}(),eM=lV,sV=iV,xO=eM,uV=Ns,cV=xO?function(e,t){return xO(e,"toString",{configurable:!0,enumerable:!1,value:sV(t),writable:!0})}:uV,fV=cV,dV=800,hV=16,pV=Date.now;function yV(e){var t=0,n=0;return function(){var r=pV(),a=hV-(r-n);if(n=r,a>0){if(++t>=dV)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var mV=yV,vV=fV,gV=mV,bV=gV(vV),xV=bV,SV=Ns,wV=rV,OV=xV;function jV(e,t){return OV(wV(e,t,SV),e+"")}var AV=jV,EV=sx,_V=Lp,TV=Ax,NV=ci;function CV(e,t,n){if(!NV(n))return!1;var r=typeof t;return(r=="number"?_V(n)&&TV(t,n.length):r=="string"&&t in n)?EV(n[t],e):!1}var Bp=CV,MV=WC,RV=ZY,PV=AV,SO=Bp,$V=PV(function(e,t){if(e==null)return[];var n=t.length;return n>1&&SO(e,t[0],t[1])?t=[]:n>2&&SO(t[0],t[1],t[2])&&(t=[t[0]]),RV(e,MV(t,1),[])}),DV=$V;const Cx=He(DV);function Ku(e){"@babel/helpers - typeof";return Ku=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ku(e)}function Ag(){return Ag=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},Ag.apply(this,arguments)}function kV(e,t){return IV(e)||BV(e,t)||zV(e,t)||LV()}function LV(){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 zV(e,t){if(e){if(typeof e=="string")return wO(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 wO(e,t)}}function wO(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 BV(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 IV(e){if(Array.isArray(e))return e}function OO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function mm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OO(Object(n),!0).forEach(function(r){UV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UV(e,t,n){return t=HV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HV(e){var t=qV(e,"string");return Ku(t)=="symbol"?t:t+""}function qV(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 FV(e){return Array.isArray(e)&&jt(e[0])&&jt(e[1])?e.join(" ~ "):e}var GV=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,v=t.label,x=t.labelFormatter,y=t.accessibilityLayer,m=y===void 0?!1:y,g=function(){if(d&&d.length){var P={padding:0,margin:0},I=(h?Cx(d,h):d).map(function($,k){if($.type==="none")return null;var R=mm({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},l),L=$.formatter||f||FV,z=$.value,q=$.name,G=z,Q=q;if(L&&G!=null&&Q!=null){var K=L(z,q,$,k,d);if(Array.isArray(K)){var te=kV(K,2);G=te[0],Q=te[1]}else G=K}return M.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(k),style:R},jt(Q)?M.createElement("span",{className:"recharts-tooltip-item-name"},Q):null,jt(Q)?M.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,M.createElement("span",{className:"recharts-tooltip-item-value"},G),M.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return M.createElement("ul",{className:"recharts-tooltip-item-list",style:P},I)}return null},S=mm({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),w=mm({margin:0},u),O=!ge(v),A=O?v:"",E=ve("recharts-default-tooltip",p),_=ve("recharts-tooltip-label",b);O&&x&&d!==void 0&&d!==null&&(A=x(v,d));var N=m?{role:"status","aria-live":"assertive"}:{};return M.createElement("div",Ag({className:E,style:S},N),M.createElement("p",{className:_,style:w},M.isValidElement(A)?A:"".concat(A)),g())};function Yu(e){"@babel/helpers - typeof";return Yu=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},Yu(e)}function Tf(e,t,n){return t=KV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KV(e){var t=YV(e,"string");return Yu(t)=="symbol"?t:t+""}function YV(e,t){if(Yu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fs="recharts-tooltip-wrapper",VV={visibility:"hidden"};function XV(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return ve(Fs,Tf(Tf(Tf(Tf({},"".concat(Fs,"-right"),Y(n)&&t&&Y(t.x)&&n>=t.x),"".concat(Fs,"-left"),Y(n)&&t&&Y(t.x)&&n<t.x),"".concat(Fs,"-bottom"),Y(r)&&t&&Y(t.y)&&r>=t.y),"".concat(Fs,"-top"),Y(r)&&t&&Y(t.y)&&r<t.y))}function jO(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&&Y(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,v=s[r]+u;return b>v?Math.max(d,s[r]):Math.max(f,s[r])}function QV(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 WV(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=jO({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),f=jO({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),u=QV({translateX:d,translateY:f,useTranslate3d:l})):u=VV,{cssProperties:u,cssClasses:XV({translateX:d,translateY:f,coordinate:n})}}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 AO(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 EO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AO(Object(n),!0).forEach(function(r){_g(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JV(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,nM(r.key),r)}}function eX(e,t,n){return t&&JV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tX(e,t,n){return t=th(t),nX(e,tM()?Reflect.construct(t,n||[],th(e).constructor):t.apply(e,n))}function nX(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 rX(e)}function rX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tM=function(){return!!e})()}function th(e){return th=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},th(e)}function aX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eg(e,t)}function Eg(e,t){return Eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Eg(e,t)}function _g(e,t,n){return t=nM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nM(e){var t=iX(e,"string");return Bl(t)=="symbol"?t:t+""}function iX(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 _O=1,oX=function(e){function t(){var n;ZV(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=tX(this,t,[].concat(a)),_g(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),_g(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 aX(t,e),eX(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>_O||Math.abs(r.height-this.state.lastBoundingBox.height)>_O)&&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,v=a.reverseDirection,x=a.useTranslate3d,y=a.viewBox,m=a.wrapperStyle,g=WV({allowEscapeViewBox:o,coordinate:d,offsetTopLeft:p,position:b,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:y}),S=g.cssClasses,w=g.cssProperties,O=EO(EO({transition:h&&i?"transform ".concat(l,"ms ").concat(s):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&f?"visible":"hidden",position:"absolute",top:0,left:0},m);return M.createElement("div",{tabIndex:-1,className:S,style:O,ref:function(E){r.wrapperNode=E}},u)}}])}(j.PureComponent),lX=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Cs={isSsr:lX()};function Il(e){"@babel/helpers - typeof";return Il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Il(e)}function TO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function NO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TO(Object(n),!0).forEach(function(r){Mx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uX(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,aM(r.key),r)}}function cX(e,t,n){return t&&uX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fX(e,t,n){return t=nh(t),dX(e,rM()?Reflect.construct(t,n||[],nh(e).constructor):t.apply(e,n))}function dX(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 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 rM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rM=function(){return!!e})()}function nh(e){return nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nh(e)}function pX(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&&Tg(e,t)}function Tg(e,t){return Tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Tg(e,t)}function Mx(e,t,n){return t=aM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aM(e){var t=yX(e,"string");return Il(t)=="symbol"?t:t+""}function yX(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 mX(e){return e.dataKey}function vX(e,t){return M.isValidElement(e)?M.cloneElement(e,t):typeof e=="function"?M.createElement(e,t):M.createElement(GV,t)}var sr=function(e){function t(){return sX(this,t),fX(this,t,arguments)}return pX(t,e),cX(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,v=a.payloadUniqBy,x=a.position,y=a.reverseDirection,m=a.useTranslate3d,g=a.viewBox,S=a.wrapperStyle,w=b??[];f&&w.length&&(w=YC(b.filter(function(A){return A.value!=null&&(A.hide!==!0||r.props.includeHidden)}),v,mX));var O=w.length>0;return M.createElement(oX,{allowEscapeViewBox:o,animationDuration:l,animationEasing:s,isAnimationActive:h,active:i,coordinate:d,hasPayload:O,offset:p,position:x,reverseDirection:y,useTranslate3d:m,viewBox:g,wrapperStyle:S},vX(u,NO(NO({},this.props),{},{payload:w})))}}])}(j.PureComponent);Mx(sr,"displayName","Tooltip");Mx(sr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Cs.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 gX=Mr,bX=function(){return gX.Date.now()},xX=bX,SX=/\s/;function wX(e){for(var t=e.length;t--&&SX.test(e.charAt(t)););return t}var OX=wX,jX=OX,AX=/^\s+/;function EX(e){return e&&e.slice(0,jX(e)+1).replace(AX,"")}var _X=EX,TX=_X,CO=ci,NX=ws,MO=NaN,CX=/^[-+]0x[0-9a-f]+$/i,MX=/^0b[01]+$/i,RX=/^0o[0-7]+$/i,PX=parseInt;function $X(e){if(typeof e=="number")return e;if(NX(e))return MO;if(CO(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=CO(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=TX(e);var n=MX.test(e);return n||RX.test(e)?PX(e.slice(2),n?2:8):CX.test(e)?MO:+e}var iM=$X,DX=ci,vm=xX,RO=iM,kX="Expected a function",LX=Math.max,zX=Math.min;function BX(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(kX);t=RO(t)||0,DX(n)&&(d=!!n.leading,f="maxWait"in n,i=f?LX(RO(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function p(O){var A=r,E=a;return r=a=void 0,u=O,o=e.apply(E,A),o}function b(O){return u=O,l=setTimeout(y,t),d?p(O):o}function v(O){var A=O-s,E=O-u,_=t-A;return f?zX(_,i-E):_}function x(O){var A=O-s,E=O-u;return s===void 0||A>=t||A<0||f&&E>=i}function y(){var O=vm();if(x(O))return m(O);l=setTimeout(y,v(O))}function m(O){return l=void 0,h&&r?p(O):(r=a=void 0,o)}function g(){l!==void 0&&clearTimeout(l),u=0,r=s=a=l=void 0}function S(){return l===void 0?o:m(vm())}function w(){var O=vm(),A=x(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 w.cancel=g,w.flush=S,w}var IX=BX,UX=IX,HX=ci,qX="Expected a function";function FX(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(qX);return HX(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),UX(e,t,{leading:r,maxWait:t,trailing:a})}var GX=FX;const oM=He(GX);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 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 Nf(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){KX(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 KX(e,t,n){return t=YX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YX(e){var t=VX(e,"string");return Vu(t)=="symbol"?t:t+""}function VX(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 XX(e,t){return JX(e)||ZX(e,t)||WX(e,t)||QX()}function QX(){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 WX(e,t){if(e){if(typeof e=="string")return $O(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 $O(e,t)}}function $O(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 ZX(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 JX(e){if(Array.isArray(e))return e}var DO=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,v=b===void 0?0:b,x=e.id,y=e.className,m=e.onResize,g=e.style,S=g===void 0?{}:g,w=j.useRef(null),O=j.useRef();O.current=m,j.useImperativeHandle(t,function(){return Object.defineProperty(w.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),w.current},configurable:!0})});var A=j.useState({containerWidth:a.width,containerHeight:a.height}),E=XX(A,2),_=E[0],N=E[1],D=j.useCallback(function(I,$){N(function(k){var R=Math.round(I),L=Math.round($);return k.containerWidth===R&&k.containerHeight===L?k:{containerWidth:R,containerHeight:L}})},[]);j.useEffect(function(){var I=function(q){var G,Q=q[0].contentRect,K=Q.width,te=Q.height;D(K,te),(G=O.current)===null||G===void 0||G.call(O,K,te)};v>0&&(I=oM(I,v,{trailing:!0,leading:!1}));var $=new ResizeObserver(I),k=w.current.getBoundingClientRect(),R=k.width,L=k.height;return D(R,L),$.observe(w.current),function(){$.disconnect()}},[D,v]);var P=j.useMemo(function(){var I=_.containerWidth,$=_.containerHeight;if(I<0||$<0)return null;ra(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),ra(!n||n>0,"The aspect(%s) must be greater than zero.",n);var k=Mi(o)?I:o,R=Mi(s)?$:s;n&&n>0&&(k?R=k/n:R&&(k=R*n),h&&R>h&&(R=h)),ra(k>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,k,R,o,s,d,f,n);var L=!Array.isArray(p)&&na(p.type).endsWith("Chart");return M.Children.map(p,function(z){return M.isValidElement(z)?j.cloneElement(z,Nf({width:k,height:R},L?{style:Nf({height:"100%",width:"100%",maxHeight:R,maxWidth:k},z.props.style)}:{})):z})},[n,p,s,h,f,d,_,o]);return M.createElement("div",{id:x?"".concat(x):void 0,className:ve("recharts-responsive-container",y),style:Nf(Nf({},S),{},{width:o,height:s,minWidth:d,minHeight:f,maxHeight:h}),ref:w},P)}),Ip=function(t){return null};Ip.displayName="Cell";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 kO(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 Ng(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kO(Object(n),!0).forEach(function(r){eQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eQ(e,t,n){return t=tQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tQ(e){var t=nQ(e,"string");return Xu(t)=="symbol"?t:t+""}function nQ(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 To={widthCache:{},cacheCount:0},rQ=2e3,aQ={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},LO="recharts_measurement_span";function iQ(e){var t=Ng({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var xu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Cs.isSsr)return{width:0,height:0};var r=iQ(n),a=JSON.stringify({text:t,copyStyle:r});if(To.widthCache[a])return To.widthCache[a];try{var i=document.getElementById(LO);i||(i=document.createElement("span"),i.setAttribute("id",LO),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=Ng(Ng({},aQ),r);Object.assign(i.style,o),i.textContent="".concat(t);var l=i.getBoundingClientRect(),s={width:l.width,height:l.height};return To.widthCache[a]=s,++To.cacheCount>rQ&&(To.cacheCount=0,To.widthCache={}),s}catch{return{width:0,height:0}}},oQ=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 rh(e,t){return cQ(e)||uQ(e,t)||sQ(e,t)||lQ()}function lQ(){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 sQ(e,t){if(e){if(typeof e=="string")return zO(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 zO(e,t)}}function zO(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 uQ(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 cQ(e){if(Array.isArray(e))return e}function fQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BO(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,hQ(r.key),r)}}function dQ(e,t,n){return t&&BO(e.prototype,t),n&&BO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hQ(e){var t=pQ(e,"string");return Qu(t)=="symbol"?t:t+""}function pQ(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 String(e)}var IO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,UO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,yQ=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,mQ=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,lM={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},vQ=Object.keys(lM),Yo="NaN";function gQ(e,t){return e*lM[t]}var Cf=function(){function e(t,n){fQ(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!yQ.test(n)&&(this.num=NaN,this.unit=""),vQ.includes(n)&&(this.num=gQ(t,n),this.unit="px")}return dQ(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=mQ.exec(n))!==null&&r!==void 0?r:[],i=rh(a,3),o=i[1],l=i[2];return new e(parseFloat(o),l??"")}}])}();function sM(e){if(e.includes(Yo))return Yo;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=IO.exec(t))!==null&&n!==void 0?n:[],a=rh(r,4),i=a[1],o=a[2],l=a[3],s=Cf.parse(i??""),u=Cf.parse(l??""),d=o==="*"?s.multiply(u):s.divide(u);if(d.isNaN())return Yo;t=t.replace(IO,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=UO.exec(t))!==null&&f!==void 0?f:[],p=rh(h,4),b=p[1],v=p[2],x=p[3],y=Cf.parse(b??""),m=Cf.parse(x??""),g=v==="+"?y.add(m):y.subtract(m);if(g.isNaN())return Yo;t=t.replace(UO,g.toString())}return t}var HO=/\(([^()]*)\)/;function bQ(e){for(var t=e;t.includes("(");){var n=HO.exec(t),r=rh(n,2),a=r[1];t=t.replace(HO,sM(a))}return t}function xQ(e){var t=e.replace(/\s+/g,"");return t=bQ(t),t=sM(t),t}function SQ(e){try{return xQ(e)}catch{return Yo}}function gm(e){var t=SQ(e.slice(5,-1));return t===Yo?"":t}var wQ=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],OQ=["dx","dy","angle","className","breakAll"];function Cg(){return Cg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cg.apply(this,arguments)}function qO(e,t){if(e==null)return{};var n=jQ(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 jQ(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 FO(e,t){return TQ(e)||_Q(e,t)||EQ(e,t)||AQ()}function AQ(){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 EQ(e,t){if(e){if(typeof e=="string")return GO(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 GO(e,t)}}function GO(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 _Q(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 TQ(e){if(Array.isArray(e))return e}var uM=/[ \f\n\r\t\v\u2028\u2029]+/,cM=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var i=[];ge(n)||(r?i=n.toString().split(""):i=n.toString().split(uM));var o=i.map(function(s){return{word:s,width:xu(s,a).width}}),l=r?0:xu(" ",a).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},NQ=function(t,n,r,a,i){var o=t.maxLines,l=t.children,s=t.style,u=t.breakAll,d=Y(o),f=l,h=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return k.reduce(function(R,L){var z=L.word,q=L.width,G=R[R.length-1];if(G&&(a==null||i||G.width+q+r<Number(a)))G.words.push(z),G.width+=q+r;else{var Q={words:[z],width:q};R.push(Q)}return R},[])},p=h(n),b=function(k){return k.reduce(function(R,L){return R.width>L.width?R:L})};if(!d)return p;for(var v="…",x=function(k){var R=f.slice(0,k),L=cM({breakAll:u,style:s,children:R+v}).wordsWithComputedWidth,z=h(L),q=z.length>o||b(z).width>Number(a);return[q,z]},y=0,m=f.length-1,g=0,S;y<=m&&g<=f.length-1;){var w=Math.floor((y+m)/2),O=w-1,A=x(O),E=FO(A,2),_=E[0],N=E[1],D=x(w),P=FO(D,1),I=P[0];if(!_&&!I&&(y=w+1),_&&I&&(m=w-1),!_&&I){S=N;break}g++}return S||p},KO=function(t){var n=ge(t)?[]:t.toString().split(uM);return[{words:n}]},CQ=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,l=t.maxLines;if((n||r)&&!Cs.isSsr){var s,u,d=cM({breakAll:o,children:a,style:i});if(d){var f=d.wordsWithComputedWidth,h=d.spaceWidth;s=f,u=h}else return KO(a);return NQ({breakAll:o,children:a,maxLines:l,style:i},s,u,n,r)}return KO(a)},YO="#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,v=b===void 0?"end":b,x=t.fill,y=x===void 0?YO:x,m=qO(t,wQ),g=j.useMemo(function(){return CQ({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:f,style:m.style,width:m.width})},[m.breakAll,m.children,m.maxLines,f,m.style,m.width]),S=m.dx,w=m.dy,O=m.angle,A=m.className,E=m.breakAll,_=qO(m,OQ);if(!jt(r)||!jt(i))return null;var N=r+(Y(S)?S:0),D=i+(Y(w)?w:0),P;switch(v){case"start":P=gm("calc(".concat(u,")"));break;case"middle":P=gm("calc(".concat((g.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:P=gm("calc(".concat(g.length-1," * -").concat(l,")"));break}var I=[];if(f){var $=g[0].width,k=m.width;I.push("scale(".concat((Y(k)?k/$:1)/$,")"))}return O&&I.push("rotate(".concat(O,", ").concat(N,", ").concat(D,")")),I.length&&(_.transform=I.join(" ")),M.createElement("text",Cg({},oe(_,!0),{x:N,y:D,className:ve("recharts-text",A),textAnchor:p,fill:y.includes("url")?YO:y}),g.map(function(R,L){var z=R.words.join(E?"":" ");return M.createElement("tspan",{x:N,dy:L===0?P:l,key:"".concat(z,"-").concat(L)},z)}))};function ni(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function MQ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Rx(e){let t,n,r;e.length!==2?(t=ni,n=(l,s)=>ni(e(l),s),r=(l,s)=>e(l)-s):(t=e===ni||e===MQ?e:RQ,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 RQ(){return 0}function fM(e){return e===null?NaN:+e}function*PQ(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const $Q=Rx(ni),Jc=$Q.right;Rx(fM).center;class VO extends Map{constructor(t,n=LQ){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(XO(this,t))}has(t){return super.has(XO(this,t))}set(t,n){return super.set(DQ(this,t),n)}delete(t){return super.delete(kQ(this,t))}}function XO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function DQ({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function kQ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function LQ(e){return e!==null&&typeof e=="object"?e.valueOf():e}function zQ(e=ni){if(e===ni)return dM;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 dM(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const BQ=Math.sqrt(50),IQ=Math.sqrt(10),UQ=Math.sqrt(2);function ah(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>=BQ?10:i>=IQ?5:i>=UQ?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?ah(e,t,n*2):[l,s,u]}function Mg(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?ah(t,e,n):ah(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 Rg(e,t,n){return t=+t,e=+e,n=+n,ah(e,t,n)[2]}function Pg(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?Rg(t,e,n):Rg(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function QO(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}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 hM(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?dM:zQ(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));hM(e,t,p,b,a)}const i=e[t];let o=n,l=r;for(Gs(e,n,t),a(e[r],i)>0&&Gs(e,n,r);o<l;){for(Gs(e,o,l),++o,--l;a(e[o],i)<0;)++o;for(;a(e[l],i)>0;)--l}a(e[n],i)===0?Gs(e,n,l):(++l,Gs(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Gs(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function HQ(e,t,n){if(e=Float64Array.from(PQ(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return WO(e);if(t>=1)return QO(e);var r,a=(r-1)*t,i=Math.floor(a),o=QO(hM(e,i).subarray(0,i+1)),l=WO(e.subarray(i+1));return o+(l-o)*(a-i)}}function qQ(e,t,n=fM){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 FQ(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 ba(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 $g=Symbol("implicit");function Px(){var e=new VO,t=[],n=[],r=$g;function a(i){let o=e.get(i);if(o===void 0){if(r!==$g)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 VO;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 Px(t,n).unknown(r)},nr.apply(a,arguments),a}function Wu(){var e=Px().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,v=p?r:a;i=(v-b)/Math.max(1,h-s+u*2),l&&(i=Math.floor(i)),b+=(v-b-i*(h-s))*d,o=i*(1-s),l&&(b=Math.round(b),o=Math.round(o));var x=FQ(h).map(function(y){return b+i*y});return n(p?x.reverse():x)}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 Wu(t(),[r,a]).round(l).paddingInner(s).paddingOuter(u).align(d)},nr.apply(f(),arguments)}function pM(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return pM(t())},e}function Su(){return pM(Wu.apply(null,arguments).paddingInner(1))}function $x(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function yM(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ef(){}var Zu=.7,ih=1/Zu,sl="\\s*([+-]?\\d+)\\s*",Ju="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ar="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",GQ=/^#([0-9a-f]{3,8})$/,KQ=new RegExp(`^rgb\\(${sl},${sl},${sl}\\)$`),YQ=new RegExp(`^rgb\\(${Ar},${Ar},${Ar}\\)$`),VQ=new RegExp(`^rgba\\(${sl},${sl},${sl},${Ju}\\)$`),XQ=new RegExp(`^rgba\\(${Ar},${Ar},${Ar},${Ju}\\)$`),QQ=new RegExp(`^hsl\\(${Ju},${Ar},${Ar}\\)$`),WQ=new RegExp(`^hsla\\(${Ju},${Ar},${Ar},${Ju}\\)$`),ZO={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(ef,ec,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:JO,formatHex:JO,formatHex8:ZQ,formatHsl:JQ,formatRgb:ej,toString:ej});function JO(){return this.rgb().formatHex()}function ZQ(){return this.rgb().formatHex8()}function JQ(){return mM(this).formatHsl()}function ej(){return this.rgb().formatRgb()}function ec(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=GQ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?tj(t):n===3?new dn(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=KQ.exec(e))?new dn(t[1],t[2],t[3],1):(t=YQ.exec(e))?new dn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=VQ.exec(e))?Mf(t[1],t[2],t[3],t[4]):(t=XQ.exec(e))?Mf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=QQ.exec(e))?aj(t[1],t[2]/100,t[3]/100,1):(t=WQ.exec(e))?aj(t[1],t[2]/100,t[3]/100,t[4]):ZO.hasOwnProperty(e)?tj(ZO[e]):e==="transparent"?new dn(NaN,NaN,NaN,0):null}function tj(e){return new dn(e>>16&255,e>>8&255,e&255,1)}function Mf(e,t,n,r){return r<=0&&(e=t=n=NaN),new dn(e,t,n,r)}function eW(e){return e instanceof ef||(e=ec(e)),e?(e=e.rgb(),new dn(e.r,e.g,e.b,e.opacity)):new dn}function Dg(e,t,n,r){return arguments.length===1?eW(e):new dn(e,t,n,r??1)}function dn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}$x(dn,Dg,yM(ef,{brighter(e){return e=e==null?ih:Math.pow(ih,e),new dn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Zu:Math.pow(Zu,e),new dn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new dn(Qi(this.r),Qi(this.g),Qi(this.b),oh(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:nj,formatHex:nj,formatHex8:tW,formatRgb:rj,toString:rj}));function nj(){return`#${Ri(this.r)}${Ri(this.g)}${Ri(this.b)}`}function tW(){return`#${Ri(this.r)}${Ri(this.g)}${Ri(this.b)}${Ri((isNaN(this.opacity)?1:this.opacity)*255)}`}function rj(){const e=oh(this.opacity);return`${e===1?"rgb(":"rgba("}${Qi(this.r)}, ${Qi(this.g)}, ${Qi(this.b)}${e===1?")":`, ${e})`}`}function oh(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 Ri(e){return e=Qi(e),(e<16?"0":"")+e.toString(16)}function aj(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new cr(e,t,n,r)}function mM(e){if(e instanceof cr)return new cr(e.h,e.s,e.l,e.opacity);if(e instanceof ef||(e=ec(e)),!e)return new cr;if(e instanceof cr)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 cr(o,l,s,e.opacity)}function nW(e,t,n,r){return arguments.length===1?mM(e):new cr(e,t,n,r??1)}function cr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}$x(cr,nW,yM(ef,{brighter(e){return e=e==null?ih:Math.pow(ih,e),new cr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Zu:Math.pow(Zu,e),new cr(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 dn(bm(e>=240?e-240:e+120,a,r),bm(e,a,r),bm(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new cr(ij(this.h),Rf(this.s),Rf(this.l),oh(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=oh(this.opacity);return`${e===1?"hsl(":"hsla("}${ij(this.h)}, ${Rf(this.s)*100}%, ${Rf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ij(e){return e=(e||0)%360,e<0?e+360:e}function Rf(e){return Math.max(0,Math.min(1,e||0))}function bm(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 rW(e,t){return function(n){return e+n*t}}function aW(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 iW(e){return(e=+e)==1?vM:function(t,n){return n-t?aW(t,n,e):Dx(isNaN(t)?n:t)}}function vM(e,t){var n=t-e;return n?rW(e,n):Dx(isNaN(e)?t:e)}const oj=function e(t){var n=iW(t);function r(a,i){var o=n((a=Dg(a)).r,(i=Dg(i)).r),l=n(a.g,i.g),s=n(a.b,i.b),u=vM(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 oW(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 lW(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function sW(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 uW(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function lh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function cW(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=Ms(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var kg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xm=new RegExp(kg.source,"g");function fW(e){return function(){return e}}function dW(e){return function(t){return e(t)+""}}function hW(e,t){var n=kg.lastIndex=xm.lastIndex=0,r,a,i,o=-1,l=[],s=[];for(e=e+"",t=t+"";(r=kg.exec(e))&&(a=xm.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:lh(r,a)})),n=xm.lastIndex;return n<t.length&&(i=t.slice(n),l[o]?l[o]+=i:l[++o]=i),l.length<2?s[0]?dW(s[0].x):fW(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"?lh:n==="string"?(r=ec(t))?(t=r,oj):hW:t instanceof ec?oj:t instanceof Date?uW:lW(t)?oW:Array.isArray(t)?sW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?cW:lh)(e,t)}function kx(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function pW(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 yW(e){return function(){return e}}function sh(e){return+e}var lj=[0,1];function tn(e){return e}function Lg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:yW(isNaN(t)?NaN:.5)}function mW(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function vW(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=Lg(a,r),i=n(o,i)):(r=Lg(r,a),i=n(i,o)),function(l){return i(r(l))}}function gW(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]=Lg(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(l){var s=Jc(e,l,1,r)-1;return i[s](a[s](l))}}function tf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Up(){var e=lj,t=lj,n=Ms,r,a,i,o=tn,l,s,u;function d(){var h=Math.min(e.length,t.length);return o!==tn&&(o=mW(e[0],e[h-1])),l=h>2?gW:vW,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),lh)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,sh),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:tn,d()):o!==tn},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 Up()(tn,tn)}function bW(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function uh(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 Ul(e){return e=uh(Math.abs(e)),e?e[1]:NaN}function xW(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 SW(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var wW=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tc(e){if(!(t=wW.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]})}tc.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 OW(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 ch;function jW(e,t){var n=uh(e,t);if(!n)return ch=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(ch=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")+uh(e,Math.max(0,t+i-1))[0]}function sj(e,t){var n=uh(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 uj={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:bW,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)=>sj(e*100,t),r:sj,s:jW,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function cj(e){return e}var fj=Array.prototype.map,dj=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function AW(e){var t=e.grouping===void 0||e.thousands===void 0?cj:xW(fj.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?cj:SW(fj.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=tc(f);var p=f.fill,b=f.align,v=f.sign,x=f.symbol,y=f.zero,m=f.width,g=f.comma,S=f.precision,w=f.trim,O=f.type;O==="n"?(g=!0,O="g"):uj[O]||(S===void 0&&(S=12),w=!0,O="g"),(y||p==="0"&&b==="=")&&(y=!0,p="0",b="=");var A=(h&&h.prefix!==void 0?h.prefix:"")+(x==="$"?n:x==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),E=(x==="$"?r:/[%p]/.test(O)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),_=uj[O],N=/[defgprs%]/.test(O);S=S===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function D(P){var I=A,$=E,k,R,L;if(O==="c")$=_(P)+$,P="";else{P=+P;var z=P<0||1/P<0;if(P=isNaN(P)?s:_(Math.abs(P),S),w&&(P=OW(P)),z&&+P==0&&v!=="+"&&(z=!1),I=(z?v==="("?v:l:v==="-"||v==="("?"":v)+I,$=(O==="s"&&!isNaN(P)&&ch!==void 0?dj[8+ch/3]:"")+$+(z&&v==="("?")":""),N){for(k=-1,R=P.length;++k<R;)if(L=P.charCodeAt(k),48>L||L>57){$=(L===46?a+P.slice(k+1):P.slice(k))+$,P=P.slice(0,k);break}}}g&&!y&&(P=t(P,1/0));var q=I.length+P.length+$.length,G=q<m?new Array(m-q+1).join(p):"";switch(g&&y&&(P=t(G+P,G.length?m-$.length:1/0),G=""),b){case"<":P=I+P+$+G;break;case"=":P=I+G+P+$;break;case"^":P=G.slice(0,q=G.length>>1)+I+P+$+G.slice(q);break;default:P=G+I+P+$;break}return i(P)}return D.toString=function(){return f+""},D}function d(f,h){var p=Math.max(-8,Math.min(8,Math.floor(Ul(h)/3)))*3,b=Math.pow(10,-p),v=u((f=tc(f),f.type="f",f),{suffix:dj[8+p/3]});return function(x){return v(b*x)}}return{format:u,formatPrefix:d}}var Pf,Bx,gM;EW({thousands:",",grouping:[3],currency:["$",""]});function EW(e){return Pf=AW(e),Bx=Pf.format,gM=Pf.formatPrefix,Pf}function _W(e){return Math.max(0,-Ul(Math.abs(e)))}function TW(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ul(t)/3)))*3-Ul(Math.abs(e)))}function NW(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ul(t)-Ul(e))+1}function bM(e,t,n,r){var a=Pg(e,t,n),i;switch(r=tc(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=TW(a,o))&&(r.precision=i),gM(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=NW(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=_W(a))&&(r.precision=i-(r.type==="%")*2);break}}return Bx(r)}function di(e){var t=e.domain;return e.ticks=function(n){var r=t();return Mg(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return bM(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=Rg(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 fh(){var e=Lx();return e.copy=function(){return tf(e,fh())},nr.apply(e,arguments),di(e)}function xM(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,sh),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return xM(e).unknown(t)},e=arguments.length?Array.from(e,sh):[0,1],di(n)}function SM(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 hj(e){return Math.log(e)}function pj(e){return Math.exp(e)}function CW(e){return-Math.log(-e)}function MW(e){return-Math.exp(-e)}function RW(e){return isFinite(e)?+("1e"+e):e<0?0:e}function PW(e){return e===10?RW:e===Math.E?Math.exp:t=>Math.pow(e,t)}function $W(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 yj(e){return(t,n)=>-e(-t,n)}function Ix(e){const t=e(hj,pj),n=t.domain;let r=10,a,i;function o(){return a=$W(r),i=PW(r),n()[0]<0?(a=yj(a),i=yj(i),e(CW,MW)):e(hj,pj),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,v;const x=l==null?10:+l;let y=[];if(!(r%1)&&p-h<x){if(h=Math.floor(h),p=Math.ceil(p),u>0){for(;h<=p;++h)for(b=1;b<r;++b)if(v=h<0?b/i(-h):b*i(h),!(v<u)){if(v>d)break;y.push(v)}}else for(;h<=p;++h)for(b=r-1;b>=1;--b)if(v=h>0?b/i(-h):b*i(h),!(v<u)){if(v>d)break;y.push(v)}y.length*2<x&&(y=Mg(u,d,x))}else y=Mg(h,p,Math.min(p-h,x)).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=tc(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(SM(n(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function wM(){const e=Ix(Up()).domain([1,10]);return e.copy=()=>tf(e,wM()).base(e.base()),nr.apply(e,arguments),e}function mj(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function vj(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ux(e){var t=1,n=e(mj(t),vj(t));return n.constant=function(r){return arguments.length?e(mj(t=+r),vj(t)):t},di(n)}function OM(){var e=Ux(Up());return e.copy=function(){return tf(e,OM()).constant(e.constant())},nr.apply(e,arguments)}function gj(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function DW(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function kW(e){return e<0?-e*e:e*e}function Hx(e){var t=e(tn,tn),n=1;function r(){return n===1?e(tn,tn):n===.5?e(DW,kW):e(gj(n),gj(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},di(t)}function qx(){var e=Hx(Up());return e.copy=function(){return tf(e,qx()).exponent(e.exponent())},nr.apply(e,arguments),e}function LW(){return qx.apply(null,arguments).exponent(.5)}function bj(e){return Math.sign(e)*e*e}function zW(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function jM(){var e=Lx(),t=[0,1],n=!1,r;function a(i){var o=zW(e(i));return isNaN(o)?r:n?Math.round(o):o}return a.invert=function(i){return e.invert(bj(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,sh)).map(bj)),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 jM(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},nr.apply(a,arguments),di(a)}function AM(){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]=qQ(e,o/l);return i}function i(o){return o==null||isNaN(o=+o)?r:t[Jc(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(ni),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 AM().domain(e).range(t).unknown(r)},nr.apply(i,arguments)}function EM(){var e=0,t=1,n=1,r=[.5],a=[0,1],i;function o(s){return s!=null&&s<=s?a[Jc(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 EM().domain([e,t]).range(a).unknown(i)},nr.apply(di(o),arguments)}function _M(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Jc(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 _M().domain(e).range(t).unknown(n)},nr.apply(a,arguments)}const Sm=new Date,wm=new Date;function Et(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=>Et(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)=>(Sm.setTime(+i),wm.setTime(+o),e(Sm),e(wm),Math.floor(n(Sm,wm))),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 dh=Et(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);dh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Et(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):dh);dh.range;const Wr=1e3,Vn=Wr*60,Zr=Vn*60,da=Zr*24,Fx=da*7,xj=da*30,Om=da*365,Pi=Et(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Wr)},(e,t)=>(t-e)/Wr,e=>e.getUTCSeconds());Pi.range;const Gx=Et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wr)},(e,t)=>{e.setTime(+e+t*Vn)},(e,t)=>(t-e)/Vn,e=>e.getMinutes());Gx.range;const Kx=Et(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Vn)},(e,t)=>(t-e)/Vn,e=>e.getUTCMinutes());Kx.range;const Yx=Et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Wr-e.getMinutes()*Vn)},(e,t)=>{e.setTime(+e+t*Zr)},(e,t)=>(t-e)/Zr,e=>e.getHours());Yx.range;const Vx=Et(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Zr)},(e,t)=>(t-e)/Zr,e=>e.getUTCHours());Vx.range;const nf=Et(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Vn)/da,e=>e.getDate()-1);nf.range;const Hp=Et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/da,e=>e.getUTCDate()-1);Hp.range;const TM=Et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/da,e=>Math.floor(e/da));TM.range;function bo(e){return Et(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 qp=bo(0),hh=bo(1),BW=bo(2),IW=bo(3),Hl=bo(4),UW=bo(5),HW=bo(6);qp.range;hh.range;BW.range;IW.range;Hl.range;UW.range;HW.range;function xo(e){return Et(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 Fp=xo(0),ph=xo(1),qW=xo(2),FW=xo(3),ql=xo(4),GW=xo(5),KW=xo(6);Fp.range;ph.range;qW.range;FW.range;ql.range;GW.range;KW.range;const Xx=Et(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=Et(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 ha=Et(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ha.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Et(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ha.range;const pa=Et(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());pa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Et(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});pa.range;function NM(e,t,n,r,a,i){const o=[[Pi,1,Wr],[Pi,5,5*Wr],[Pi,15,15*Wr],[Pi,30,30*Wr],[i,1,Vn],[i,5,5*Vn],[i,15,15*Vn],[i,30,30*Vn],[a,1,Zr],[a,3,3*Zr],[a,6,6*Zr],[a,12,12*Zr],[r,1,da],[r,2,2*da],[n,1,Fx],[t,1,xj],[t,3,3*xj],[e,1,Om]];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=Rx(([,,x])=>x).right(o,h);if(p===o.length)return e.every(Pg(u/Om,d/Om,f));if(p===0)return dh.every(Math.max(Pg(u,d,f),1));const[b,v]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return b.every(v)}return[l,s]}const[YW,VW]=NM(pa,Qx,Fp,TM,Vx,Kx),[XW,QW]=NM(ha,Xx,qp,nf,Yx,Gx);function jm(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 Am(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ks(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function WW(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=Ys(a),d=Vs(a),f=Ys(i),h=Vs(i),p=Ys(o),b=Vs(o),v=Ys(l),x=Vs(l),y=Ys(s),m=Vs(s),g={a:L,A:z,b:q,B:G,c:null,d:Ej,e:Ej,f:xZ,g:CZ,G:RZ,H:vZ,I:gZ,j:bZ,L:CM,m:SZ,M:wZ,p:Q,q:K,Q:Nj,s:Cj,S:OZ,u:jZ,U:AZ,V:EZ,w:_Z,W:TZ,x:null,X:null,y:NZ,Y:MZ,Z:PZ,"%":Tj},S={a:te,A:ye,b:Le,B:ce,c:null,d:_j,e:_j,f:LZ,g:YZ,G:XZ,H:$Z,I:DZ,j:kZ,L:RM,m:zZ,M:BZ,p:$t,q:bt,Q:Nj,s:Cj,S:IZ,u:UZ,U:HZ,V:qZ,w:FZ,W:GZ,x:null,X:null,y:KZ,Y:VZ,Z:QZ,"%":Tj},w={a:N,A:D,b:P,B:I,c:$,d:jj,e:jj,f:hZ,g:Oj,G:wj,H:Aj,I:Aj,j:uZ,L:dZ,m:sZ,M:cZ,p:_,q:lZ,Q:yZ,s:mZ,S:fZ,u:nZ,U:rZ,V:aZ,w:tZ,W:iZ,x:k,X:R,y:Oj,Y:wj,Z:oZ,"%":pZ};g.x=O(n,g),g.X=O(r,g),g.c=O(t,g),S.x=O(n,S),S.X=O(r,S),S.c=O(t,S);function O(X,le){return function(fe){var H=[],Xe=-1,be=0,Re=X.length,J,ze,Dt;for(fe instanceof Date||(fe=new Date(+fe));++Xe<Re;)X.charCodeAt(Xe)===37&&(H.push(X.slice(be,Xe)),(ze=Sj[J=X.charAt(++Xe)])!=null?J=X.charAt(++Xe):ze=J==="e"?" ":"0",(Dt=le[J])&&(J=Dt(fe,ze)),H.push(J),be=Xe+1);return H.push(X.slice(be,Xe)),H.join("")}}function A(X,le){return function(fe){var H=Ks(1900,void 0,1),Xe=E(H,X,fe+="",0),be,Re;if(Xe!=fe.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(le&&!("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?(be=Am(Ks(H.y,0,1)),Re=be.getUTCDay(),be=Re>4||Re===0?ph.ceil(be):ph(be),be=Hp.offset(be,(H.V-1)*7),H.y=be.getUTCFullYear(),H.m=be.getUTCMonth(),H.d=be.getUTCDate()+(H.w+6)%7):(be=jm(Ks(H.y,0,1)),Re=be.getDay(),be=Re>4||Re===0?hh.ceil(be):hh(be),be=nf.offset(be,(H.V-1)*7),H.y=be.getFullYear(),H.m=be.getMonth(),H.d=be.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),Re="Z"in H?Am(Ks(H.y,0,1)).getUTCDay():jm(Ks(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(Re+5)%7:H.w+H.U*7-(Re+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,Am(H)):jm(H)}}function E(X,le,fe,H){for(var Xe=0,be=le.length,Re=fe.length,J,ze;Xe<be;){if(H>=Re)return-1;if(J=le.charCodeAt(Xe++),J===37){if(J=le.charAt(Xe++),ze=w[J in Sj?le.charAt(Xe++):J],!ze||(H=ze(X,fe,H))<0)return-1}else if(J!=fe.charCodeAt(H++))return-1}return H}function _(X,le,fe){var H=u.exec(le.slice(fe));return H?(X.p=d.get(H[0].toLowerCase()),fe+H[0].length):-1}function N(X,le,fe){var H=p.exec(le.slice(fe));return H?(X.w=b.get(H[0].toLowerCase()),fe+H[0].length):-1}function D(X,le,fe){var H=f.exec(le.slice(fe));return H?(X.w=h.get(H[0].toLowerCase()),fe+H[0].length):-1}function P(X,le,fe){var H=y.exec(le.slice(fe));return H?(X.m=m.get(H[0].toLowerCase()),fe+H[0].length):-1}function I(X,le,fe){var H=v.exec(le.slice(fe));return H?(X.m=x.get(H[0].toLowerCase()),fe+H[0].length):-1}function $(X,le,fe){return E(X,t,le,fe)}function k(X,le,fe){return E(X,n,le,fe)}function R(X,le,fe){return E(X,r,le,fe)}function L(X){return o[X.getDay()]}function z(X){return i[X.getDay()]}function q(X){return s[X.getMonth()]}function G(X){return l[X.getMonth()]}function Q(X){return a[+(X.getHours()>=12)]}function K(X){return 1+~~(X.getMonth()/3)}function te(X){return o[X.getUTCDay()]}function ye(X){return i[X.getUTCDay()]}function Le(X){return s[X.getUTCMonth()]}function ce(X){return l[X.getUTCMonth()]}function $t(X){return a[+(X.getUTCHours()>=12)]}function bt(X){return 1+~~(X.getUTCMonth()/3)}return{format:function(X){var le=O(X+="",g);return le.toString=function(){return X},le},parse:function(X){var le=A(X+="",!1);return le.toString=function(){return X},le},utcFormat:function(X){var le=O(X+="",S);return le.toString=function(){return X},le},utcParse:function(X){var le=A(X+="",!0);return le.toString=function(){return X},le}}}var Sj={"-":"",_:" ",0:"0"},Pt=/^\s*\d+/,ZW=/^%/,JW=/[\\^$*+?|[\]().{}]/g;function _e(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 eZ(e){return e.replace(JW,"\\$&")}function Ys(e){return new RegExp("^(?:"+e.map(eZ).join("|")+")","i")}function Vs(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function tZ(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function nZ(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function rZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function aZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function iZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function wj(e,t,n){var r=Pt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Oj(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function oZ(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 lZ(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function sZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function jj(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function uZ(e,t,n){var r=Pt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Aj(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function cZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function fZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function dZ(e,t,n){var r=Pt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function hZ(e,t,n){var r=Pt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function pZ(e,t,n){var r=ZW.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function yZ(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function mZ(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Ej(e,t){return _e(e.getDate(),t,2)}function vZ(e,t){return _e(e.getHours(),t,2)}function gZ(e,t){return _e(e.getHours()%12||12,t,2)}function bZ(e,t){return _e(1+nf.count(ha(e),e),t,3)}function CM(e,t){return _e(e.getMilliseconds(),t,3)}function xZ(e,t){return CM(e,t)+"000"}function SZ(e,t){return _e(e.getMonth()+1,t,2)}function wZ(e,t){return _e(e.getMinutes(),t,2)}function OZ(e,t){return _e(e.getSeconds(),t,2)}function jZ(e){var t=e.getDay();return t===0?7:t}function AZ(e,t){return _e(qp.count(ha(e)-1,e),t,2)}function MM(e){var t=e.getDay();return t>=4||t===0?Hl(e):Hl.ceil(e)}function EZ(e,t){return e=MM(e),_e(Hl.count(ha(e),e)+(ha(e).getDay()===4),t,2)}function _Z(e){return e.getDay()}function TZ(e,t){return _e(hh.count(ha(e)-1,e),t,2)}function NZ(e,t){return _e(e.getFullYear()%100,t,2)}function CZ(e,t){return e=MM(e),_e(e.getFullYear()%100,t,2)}function MZ(e,t){return _e(e.getFullYear()%1e4,t,4)}function RZ(e,t){var n=e.getDay();return e=n>=4||n===0?Hl(e):Hl.ceil(e),_e(e.getFullYear()%1e4,t,4)}function PZ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+_e(t/60|0,"0",2)+_e(t%60,"0",2)}function _j(e,t){return _e(e.getUTCDate(),t,2)}function $Z(e,t){return _e(e.getUTCHours(),t,2)}function DZ(e,t){return _e(e.getUTCHours()%12||12,t,2)}function kZ(e,t){return _e(1+Hp.count(pa(e),e),t,3)}function RM(e,t){return _e(e.getUTCMilliseconds(),t,3)}function LZ(e,t){return RM(e,t)+"000"}function zZ(e,t){return _e(e.getUTCMonth()+1,t,2)}function BZ(e,t){return _e(e.getUTCMinutes(),t,2)}function IZ(e,t){return _e(e.getUTCSeconds(),t,2)}function UZ(e){var t=e.getUTCDay();return t===0?7:t}function HZ(e,t){return _e(Fp.count(pa(e)-1,e),t,2)}function PM(e){var t=e.getUTCDay();return t>=4||t===0?ql(e):ql.ceil(e)}function qZ(e,t){return e=PM(e),_e(ql.count(pa(e),e)+(pa(e).getUTCDay()===4),t,2)}function FZ(e){return e.getUTCDay()}function GZ(e,t){return _e(ph.count(pa(e)-1,e),t,2)}function KZ(e,t){return _e(e.getUTCFullYear()%100,t,2)}function YZ(e,t){return e=PM(e),_e(e.getUTCFullYear()%100,t,2)}function VZ(e,t){return _e(e.getUTCFullYear()%1e4,t,4)}function XZ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ql(e):ql.ceil(e),_e(e.getUTCFullYear()%1e4,t,4)}function QZ(){return"+0000"}function Tj(){return"%"}function Nj(e){return+e}function Cj(e){return Math.floor(+e/1e3)}var No,$M,DM;WZ({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 WZ(e){return No=WW(e),$M=No.format,No.parse,DM=No.utcFormat,No.utcParse,No}function ZZ(e){return new Date(e)}function JZ(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"),v=u("%I:%M"),x=u("%I %p"),y=u("%a %d"),m=u("%b %d"),g=u("%B"),S=u("%Y");function w(O){return(s(O)<O?p:l(O)<O?b:o(O)<O?v:i(O)<O?x:r(O)<O?a(O)<O?y:m:n(O)<O?g:S)(O)}return d.invert=function(O){return new Date(f(O))},d.domain=function(O){return arguments.length?h(Array.from(O,JZ)):h().map(ZZ)},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?w: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(SM(A,O)):d},d.copy=function(){return tf(d,Wx(e,t,n,r,a,i,o,l,s,u))},d}function eJ(){return nr.apply(Wx(XW,QW,ha,Xx,qp,nf,Yx,Gx,Pi,$M).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function tJ(){return nr.apply(Wx(YW,VW,pa,Qx,Fp,Hp,Vx,Kx,Pi,DM).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Gp(){var e=0,t=1,n,r,a,i,o=tn,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 hi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function kM(){var e=di(Gp()(tn));return e.copy=function(){return hi(e,kM())},ba.apply(e,arguments)}function LM(){var e=Ix(Gp()).domain([1,10]);return e.copy=function(){return hi(e,LM()).base(e.base())},ba.apply(e,arguments)}function zM(){var e=Ux(Gp());return e.copy=function(){return hi(e,zM()).constant(e.constant())},ba.apply(e,arguments)}function Zx(){var e=Hx(Gp());return e.copy=function(){return hi(e,Zx()).exponent(e.exponent())},ba.apply(e,arguments)}function nJ(){return Zx.apply(null,arguments).exponent(.5)}function BM(){var e=[],t=tn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Jc(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(ni),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)=>HQ(e,i/r))},n.copy=function(){return BM(t).domain(e)},ba.apply(n,arguments)}function Kp(){var e=0,t=.5,n=1,r=1,a,i,o,l,s,u=tn,d,f=!1,h;function p(v){return isNaN(v=+v)?h:(v=.5+((v=+d(v))-i)*(r*v<r*i?l:s),u(f?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,n]=v,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(v){return arguments.length?(f=!!v,p):f},p.interpolator=function(v){return arguments.length?(u=v,p):u};function b(v){return function(x){var y,m,g;return arguments.length?([y,m,g]=x,u=pW(v,[y,m,g]),p):[u(0),u(.5),u(1)]}}return p.range=b(Ms),p.rangeRound=b(kx),p.unknown=function(v){return arguments.length?(h=v,p):h},function(v){return d=v,a=v(e),i=v(t),o=v(n),l=a===i?0:.5/(i-a),s=i===o?0:.5/(o-i),r=i<a?-1:1,p}}function IM(){var e=di(Kp()(tn));return e.copy=function(){return hi(e,IM())},ba.apply(e,arguments)}function UM(){var e=Ix(Kp()).domain([.1,1,10]);return e.copy=function(){return hi(e,UM()).base(e.base())},ba.apply(e,arguments)}function HM(){var e=Ux(Kp());return e.copy=function(){return hi(e,HM()).constant(e.constant())},ba.apply(e,arguments)}function Jx(){var e=Hx(Kp());return e.copy=function(){return hi(e,Jx()).exponent(e.exponent())},ba.apply(e,arguments)}function rJ(){return Jx.apply(null,arguments).exponent(.5)}const Mj=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Wu,scaleDiverging:IM,scaleDivergingLog:UM,scaleDivergingPow:Jx,scaleDivergingSqrt:rJ,scaleDivergingSymlog:HM,scaleIdentity:xM,scaleImplicit:$g,scaleLinear:fh,scaleLog:wM,scaleOrdinal:Px,scalePoint:Su,scalePow:qx,scaleQuantile:AM,scaleQuantize:EM,scaleRadial:jM,scaleSequential:kM,scaleSequentialLog:LM,scaleSequentialPow:Zx,scaleSequentialQuantile:BM,scaleSequentialSqrt:nJ,scaleSequentialSymlog:zM,scaleSqrt:LW,scaleSymlog:OM,scaleThreshold:_M,scaleTime:eJ,scaleUtc:tJ,tickFormat:bM},Symbol.toStringTag,{value:"Module"}));var aJ=ws;function iJ(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&&!aJ(o):n(o,l)))var l=o,s=i}return s}var Yp=iJ;function oJ(e,t){return e>t}var qM=oJ,lJ=Yp,sJ=qM,uJ=Ns;function cJ(e){return e&&e.length?lJ(e,uJ,sJ):void 0}var fJ=cJ;const Vp=He(fJ);function dJ(e,t){return e<t}var FM=dJ,hJ=Yp,pJ=FM,yJ=Ns;function mJ(e){return e&&e.length?hJ(e,yJ,pJ):void 0}var vJ=mJ;const Xp=He(vJ);var gJ=dx,bJ=fi,xJ=JC,SJ=vn;function wJ(e,t){var n=SJ(e)?gJ:xJ;return n(e,bJ(t))}var OJ=wJ,jJ=WC,AJ=OJ;function EJ(e,t){return jJ(AJ(e,t),1)}var _J=EJ;const TJ=He(_J);var NJ=Tx;function CJ(e,t){return NJ(e,t)}var MJ=CJ;const Qp=He(MJ);var Rs=1e9,RJ={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},t1,rt=!0,Jn="[DecimalError] ",Wi=Jn+"Invalid argument: ",e1=Jn+"Exponent out of range: ",Ps=Math.floor,_i=Math.pow,PJ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,En,Tt=1e7,Ze=7,GM=9007199254740991,yh=Ps(GM/Ze),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)*Ze;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 aa(this,new this.constructor(e))};Z.dividedToIntegerBy=Z.idiv=function(e){var t=this,n=t.constructor;return qe(aa(t,new n(e),0,1),n.precision)};Z.equals=Z.eq=function(e){return!this.cmp(e)};Z.exponent=function(){return gt(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(En))throw Error(Jn+"NaN");if(n.s<1)throw Error(Jn+(n.s?"NaN":"-Infinity"));return n.eq(En)?new r(0):(rt=!1,t=aa(nc(n,i),nc(e,i),i),rt=!0,qe(t,a))};Z.minus=Z.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?VM(t,e):KM(t,(e.s=-e.s,e))};Z.modulo=Z.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(Jn+"NaN");return n.s?(rt=!1,t=aa(n,e,0,1).times(e),rt=!0,n.minus(t)):qe(new r(n),a)};Z.naturalExponential=Z.exp=function(){return YM(this)};Z.naturalLogarithm=Z.ln=function(){return nc(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?KM(t,e):VM(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=gt(a)+1,r=a.d.length-1,n=r*Ze+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Z.squareRoot=Z.sqrt=function(){var e,t,n,r,a,i,o,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(Jn+"NaN")}for(e=gt(l),rt=!1,a=Math.sqrt(+l),a==0||a==1/0?(t=Or(l.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Ps((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(aa(l,i,o+2)).times(.5),Or(i.d).slice(0,o)===(t=Or(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(qe(i,n+1,0),i.times(i).eq(l)){r=i;break}}else if(t!="9999")break;o+=4}return rt=!0,qe(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%Tt|0,t=l/Tt|0;i[a]=(i[a]+t)%Tt|0}for(;!i[--o];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,rt?qe(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:(_r(e,0,Rs),t===void 0?t=r.rounding:_r(t,0,8),qe(n,e+gt(n)+1,t))};Z.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=uo(r,!0):(_r(e,0,Rs),t===void 0?t=a.rounding:_r(t,0,8),r=qe(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):(_r(e,0,Rs),t===void 0?t=i.rounding:_r(t,0,8),r=qe(new i(a),e+gt(a)+1,t),n=uo(r.abs(),!1,e+gt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};Z.toInteger=Z.toint=function(){var e=this,t=e.constructor;return qe(new t(e),gt(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(En);if(l=new s(l),!l.s){if(e.s<1)throw Error(Jn+"Infinity");return l}if(l.eq(En))return l;if(r=s.precision,e.eq(En))return qe(l,r);if(t=e.e,n=e.d.length-1,o=t>=n,i=l.s,o){if((n=d<0?-d:d)<=GM){for(a=new s(En),t=Math.ceil(r/Ze+4),rt=!1;n%2&&(a=a.times(l),Pj(a.d,t)),n=Ps(n/2),n!==0;)l=l.times(l),Pj(l.d,t);return rt=!0,e.s<0?new s(En).div(a):qe(a,r)}}else if(i<0)throw Error(Jn+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,rt=!1,a=e.times(nc(l,r+u)),rt=!0,a=YM(a),a.s=i,a};Z.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=gt(a),r=uo(a,n<=i.toExpNeg||n>=i.toExpPos)):(_r(e,1,Rs),t===void 0?t=i.rounding:_r(t,0,8),a=qe(new i(a),e,t),n=gt(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):(_r(e,1,Rs),t===void 0?t=r.rounding:_r(t,0,8)),qe(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=gt(e),n=e.constructor;return uo(e,t<=n.toExpNeg||t>=n.toExpPos)};function KM(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)),rt?qe(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/Ze),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)/Tt|0,s[i]%=Tt;for(n&&(s.unshift(n),++a),l=s.length;s[--l]==0;)s.pop();return t.d=s,t.e=a,rt?qe(t,f):t}function _r(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Wi+e)}function Or(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=Ze-r.length,n&&(i+=Ea(n)),i+=r;o=e[t],r=o+"",n=Ze-r.length,n&&(i+=Ea(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var aa=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%Tt|0,o=i/Tt|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*Tt+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,v,x,y,m,g,S,w,O,A,E,_=r.constructor,N=r.s==a.s?1:-1,D=r.d,P=a.d;if(!r.s)return new _(r);if(!a.s)throw Error(Jn+"Division by zero");for(s=r.e-a.e,A=P.length,w=D.length,p=new _(N),b=p.d=[],u=0;P[u]==(D[u]||0);)++u;if(P[u]>(D[u]||0)&&--s,i==null?m=i=_.precision:o?m=i+(gt(r)-gt(a))+1:m=i,m<0)return new _(0);if(m=m/Ze+2|0,u=0,A==1)for(d=0,P=P[0],m++;(u<w||d)&&m--;u++)g=d*Tt+(D[u]||0),b[u]=g/P|0,d=g%P|0;else{for(d=Tt/(P[0]+1)|0,d>1&&(P=e(P,d),D=e(D,d),A=P.length,w=D.length),S=A,v=D.slice(0,A),x=v.length;x<A;)v[x++]=0;E=P.slice(),E.unshift(0),O=P[0],P[1]>=Tt/2&&++O;do d=0,l=t(P,v,A,x),l<0?(y=v[0],A!=x&&(y=y*Tt+(v[1]||0)),d=y/O|0,d>1?(d>=Tt&&(d=Tt-1),f=e(P,d),h=f.length,x=v.length,l=t(f,v,h,x),l==1&&(d--,n(f,A<h?E:P,h))):(d==0&&(l=d=1),f=P.slice()),h=f.length,h<x&&f.unshift(0),n(v,f,x),l==-1&&(x=v.length,l=t(P,v,A,x),l<1&&(d++,n(v,A<x?E:P,x))),x=v.length):l===0&&(d++,v=[0]),b[u++]=d,l&&v[0]?v[x++]=D[S]||0:(v=[D[S]],x=1);while((S++<w||v[0]!==void 0)&&m--)}return b[0]||b.shift(),p.e=s,qe(p,o?i+gt(p)+1:i)}}();function YM(e,t){var n,r,a,i,o,l,s=0,u=0,d=e.constructor,f=d.precision;if(gt(e)>16)throw Error(e1+gt(e));if(!e.s)return new d(En);for(rt=!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(En),d.precision=l;;){if(a=qe(a.times(e),l),n=n.times(++s),o=i.plus(aa(a,n,l)),Or(o.d).slice(0,l)===Or(i.d).slice(0,l)){for(;u--;)i=qe(i.times(i),l);return d.precision=f,t==null?(rt=!0,qe(i,f)):i}i=o}}function gt(e){for(var t=e.e*Ze,n=e.d[0];n>=10;n/=10)t++;return t}function Em(e,t,n){if(t>e.LN10.sd())throw rt=!0,n&&(e.precision=n),Error(Jn+"LN10 precision limit exceeded");return qe(new e(e.LN10),t)}function Ea(e){for(var t="";e--;)t+="0";return t}function nc(e,t){var n,r,a,i,o,l,s,u,d,f=1,h=10,p=e,b=p.d,v=p.constructor,x=v.precision;if(p.s<1)throw Error(Jn+(p.s?"NaN":"-Infinity"));if(p.eq(En))return new v(0);if(t==null?(rt=!1,u=x):u=t,p.eq(10))return t==null&&(rt=!0),Em(v,u);if(u+=h,v.precision=u,n=Or(b),r=n.charAt(0),i=gt(p),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=Or(p.d),r=n.charAt(0),f++;i=gt(p),r>1?(p=new v("0."+n),i++):p=new v(r+"."+n.slice(1))}else return s=Em(v,u+2,x).times(i+""),p=nc(new v(r+"."+n.slice(1)),u-h).plus(s),v.precision=x,t==null?(rt=!0,qe(p,x)):p;for(l=o=p=aa(p.minus(En),p.plus(En),u),d=qe(p.times(p),u),a=3;;){if(o=qe(o.times(d),u),s=l.plus(aa(o,new v(a),u)),Or(s.d).slice(0,u)===Or(l.d).slice(0,u))return l=l.times(2),i!==0&&(l=l.plus(Em(v,u+2,x).times(i+""))),l=aa(l,new v(f),u),v.precision=x,t==null?(rt=!0,qe(l,x)):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=Ps(n/Ze),e.d=[],r=(n+1)%Ze,n<0&&(r+=Ze),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=Ze;r<a;)e.d.push(+t.slice(r,r+=Ze));t=t.slice(r),r=Ze-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),rt&&(e.e>yh||e.e<-yh))throw Error(e1+n)}else e.s=0,e.e=0,e.d=[0];return e}function qe(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+=Ze,a=t,u=f[d=0];else{if(d=Math.ceil((r+1)/Ze),i=f.length,d>=i)return e;for(u=i=f[d],o=1;i>=10;i/=10)o++;r%=Ze,a=r-Ze+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=gt(e),f.length=1,t=t-i-1,f[0]=_i(10,(Ze-t%Ze)%Ze),e.e=Ps(-t/Ze)||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,Ze-r),f[d]=a>0?(u/_i(10,o-a)%_i(10,a)|0)*i:0),s)for(;;)if(d==0){(f[0]+=i)==Tt&&(f[0]=1,++e.e);break}else{if(f[d]+=i,f[d]!=Tt)break;f[d--]=0,i=1}for(r=f.length;f[--r]===0;)f.pop();if(rt&&(e.e>yh||e.e<-yh))throw Error(e1+gt(e));return e}function VM(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),rt?qe(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/Ze),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]=Tt-1;--s[i],s[a]+=Tt}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,rt?qe(t,p):t):new h(0)}function uo(e,t,n){var r,a=gt(e),i=Or(e.d),o=i.length;return t?(n&&(r=n-o)>0?i=i.charAt(0)+"."+i.slice(1)+Ea(r):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+Ea(-a-1)+i,n&&(r=n-o)>0&&(i+=Ea(r))):a>=o?(i+=Ea(a+1-o),n&&(r=n-a-1)>0&&(i=i+"."+Ea(r))):((r=a+1)<o&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-o)>0&&(a+1===o&&(i+="."),i+=Ea(r))),e.s<0?"-"+i:i}function Pj(e,t){if(e.length>t)return e.length=t,!0}function XM(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,PJ.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=XM,a.config=a.set=$J,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 $J(e){if(!e||typeof e!="object")throw Error(Jn+"Object expected");var t,n,r,a=["precision",1,Rs,"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(Ps(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=XM(RJ);En=new t1(1);const Ie=t1;function DJ(e){return BJ(e)||zJ(e)||LJ(e)||kJ()}function kJ(){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 LJ(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 zJ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function BJ(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}var IJ=function(t){return t},QM={},WM=function(t){return t===QM},$j=function(t){return function n(){return arguments.length===0||arguments.length===1&&WM(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},UJ=function e(t,n){return t===1?n:$j(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!==QM}).length;return o>=t?n.apply(void 0,a):e(t-o,$j(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 WM(f)?s.shift():f});return n.apply(void 0,DJ(d).concat(s))}))})},Wp=function(t){return UJ(t.length,t)},Bg=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},HJ=Wp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),qJ=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return IJ;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))}},Ig=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},ZM=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 FJ(e){var t;return e===0?t=1:t=Math.floor(new Ie(e).abs().log(10).toNumber())+1,t}function GJ(e,t,n){for(var r=new Ie(e),a=0,i=[];r.lt(t)&&a<1e5;)i.push(r.toNumber()),r=r.add(n),a++;return i}var KJ=Wp(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),YJ=Wp(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),VJ=Wp(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Zp={rangeStep:GJ,getDigitCount:FJ,interpolateNumber:KJ,uninterpolateNumber:YJ,uninterpolateTruncation:VJ};function Ug(e){return WJ(e)||QJ(e)||JM(e)||XJ()}function XJ(){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 QJ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function WJ(e){if(Array.isArray(e))return Hg(e)}function rc(e,t){return eee(e)||JJ(e,t)||JM(e,t)||ZJ()}function ZJ(){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 JM(e,t){if(e){if(typeof e=="string")return Hg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hg(e,t)}}function Hg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JJ(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 eee(e){if(Array.isArray(e))return e}function eR(e){var t=rc(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function tR(e,t,n){if(e.lte(0))return new Ie(0);var r=Zp.getDigitCount(e.toNumber()),a=new Ie(10).pow(r),i=e.div(a),o=r!==1?.05:.1,l=new Ie(Math.ceil(i.div(o).toNumber())).add(n).mul(o),s=l.mul(a);return t?s:new Ie(Math.ceil(s))}function tee(e,t,n){var r=1,a=new Ie(e);if(!a.isint()&&n){var i=Math.abs(e);i<1?(r=new Ie(10).pow(Zp.getDigitCount(e)-1),a=new Ie(Math.floor(a.div(r).toNumber())).mul(r)):i>1&&(a=new Ie(Math.floor(e)))}else e===0?a=new Ie(Math.floor((t-1)/2)):n||(a=new Ie(Math.floor(e)));var o=Math.floor((t-1)/2),l=qJ(HJ(function(s){return a.add(new Ie(s-o).mul(r)).toNumber()}),Bg);return l(0,t)}function nR(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 Ie(0),tickMin:new Ie(0),tickMax:new Ie(0)};var i=tR(new Ie(t).sub(e).div(n-1),r,a),o;e<=0&&t>=0?o=new Ie(0):(o=new Ie(e).add(t).div(2),o=o.sub(new Ie(o).mod(i)));var l=Math.ceil(o.sub(e).div(i).toNumber()),s=Math.ceil(new Ie(t).sub(o).div(i).toNumber()),u=l+s+1;return u>n?nR(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 Ie(l).mul(i)),tickMax:o.add(new Ie(s).mul(i))})}function nee(e){var t=rc(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=eR([n,r]),s=rc(l,2),u=s[0],d=s[1];if(u===-1/0||d===1/0){var f=d===1/0?[u].concat(Ug(Bg(0,a-1).map(function(){return 1/0}))):[].concat(Ug(Bg(0,a-1).map(function(){return-1/0})),[d]);return n>r?Ig(f):f}if(u===d)return tee(u,a,i);var h=nR(u,d,o,i),p=h.step,b=h.tickMin,v=h.tickMax,x=Zp.rangeStep(b,v.add(new Ie(.1).mul(p)),p);return n>r?Ig(x):x}function ree(e,t){var n=rc(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=eR([r,a]),l=rc(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=tR(new Ie(u).sub(s).div(d-1),i,0),h=[].concat(Ug(Zp.rangeStep(new Ie(s),new Ie(u).sub(new Ie(.99).mul(f)),f)),[u]);return r>a?Ig(h):h}var aee=ZM(nee),iee=ZM(ree),oee="Invariant failed";function co(e,t){throw new Error(oee)}var lee=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Fl(e){"@babel/helpers - typeof";return Fl=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},Fl(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 see(e,t){return dee(e)||fee(e,t)||cee(e,t)||uee()}function uee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cee(e,t){if(e){if(typeof e=="string")return Dj(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 Dj(e,t)}}function Dj(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 fee(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 dee(e){if(Array.isArray(e))return e}function hee(e,t){if(e==null)return{};var n=pee(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 pee(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 yee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mee(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,iR(r.key),r)}}function vee(e,t,n){return t&&mee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gee(e,t,n){return t=vh(t),bee(e,rR()?Reflect.construct(t,n||[],vh(e).constructor):t.apply(e,n))}function bee(e,t){if(t&&(Fl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xee(e)}function xee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rR=function(){return!!e})()}function vh(e){return vh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vh(e)}function See(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&&qg(e,t)}function qg(e,t){return qg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},qg(e,t)}function aR(e,t,n){return t=iR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iR(e){var t=wee(e,"string");return Fl(t)=="symbol"?t:t+""}function wee(e,t){if(Fl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Jp=function(e){function t(){return yee(this,t),gee(this,t,arguments)}return See(t,e),vee(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=hee(r,lee),p=oe(h,!1);this.props.direction==="x"&&d.type!=="number"&&co();var b=s.map(function(v){var x=u(v,l),y=x.x,m=x.y,g=x.value,S=x.errorVal;if(!S)return null;var w=[],O,A;if(Array.isArray(S)){var E=see(S,2);O=E[0],A=E[1]}else O=A=S;if(i==="vertical"){var _=d.scale,N=m+a,D=N+o,P=N-o,I=_(g-O),$=_(g+A);w.push({x1:$,y1:D,x2:$,y2:P}),w.push({x1:I,y1:N,x2:$,y2:N}),w.push({x1:I,y1:D,x2:I,y2:P})}else if(i==="horizontal"){var k=f.scale,R=y+a,L=R-o,z=R+o,q=k(g-O),G=k(g+A);w.push({x1:L,y1:G,x2:z,y2:G}),w.push({x1:R,y1:q,x2:R,y2:G}),w.push({x1:L,y1:q,x2:z,y2:q})}return M.createElement(De,mh({className:"recharts-errorBar",key:"bar-".concat(w.map(function(Q){return"".concat(Q.x1,"-").concat(Q.x2,"-").concat(Q.y1,"-").concat(Q.y2)}))},p),w.map(function(Q){return M.createElement("line",mh({},Q,{key:"line-".concat(Q.x1,"-").concat(Q.x2,"-").concat(Q.y1,"-").concat(Q.y2)}))}))});return M.createElement(De,{className:"recharts-errorBars"},b)}}])}(M.Component);aR(Jp,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});aR(Jp,"displayName","ErrorBar");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 kj(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?kj(Object(n),!0).forEach(function(r){Oee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oee(e,t,n){return t=jee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jee(e){var t=Aee(e,"string");return ac(t)=="symbol"?t:t+""}function Aee(e,t){if(ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oR=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,o=Sn(n,ll);if(!o)return null;var l=ll.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(v){return{type:o.props.iconType||h.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):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,v=p.name,x=p.legendType,y=p.hide;return{inactive:y,dataKey:b,type:s.iconType||x||"square",color:n1(f),value:v||b,payload:p}}),gi(gi(gi({},s),ll.getWithHeight(o,a)),{},{payload:u,item:o})};function ic(e){"@babel/helpers - typeof";return ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ic(e)}function Lj(e){return Nee(e)||Tee(e)||_ee(e)||Eee()}function Eee(){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 _ee(e,t){if(e){if(typeof e=="string")return Fg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fg(e,t)}}function Tee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nee(e){if(Array.isArray(e))return Fg(e)}function Fg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function 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 st(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){ul(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 ul(e,t,n){return t=Cee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cee(e){var t=Mee(e,"string");return ic(t)=="symbol"?t:t+""}function Mee(e,t){if(ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kt(e,t,n){return ge(e)||ge(t)?n:jt(t)?Rn(e,t,n):se(t)?t(e):n}function wu(e,t,n,r){var a=TJ(e,function(l){return Kt(l,t)});if(n==="number"){var i=a.filter(function(l){return Y(l)||parseFloat(l)});return i.length?[Xp(i),Vp(i)]:[1/0,-1/0]}var o=r?a.filter(function(l){return!ge(l)}):a;return o.map(function(l){return jt(l)||l instanceof Date?l:""})}var Ree=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(Jt(f-d)!==Jt(h-f)){var b=[];if(Jt(h-f)===Jt(s[1]-s[0])){p=h;var v=f+s[1]-s[0];b[0]=Math.min(v,(v+d)/2),b[1]=Math.max(v,(v+d)/2)}else{p=d;var x=h+s[1]-s[0];b[0]=Math.min(f,(x+f)/2),b[1]=Math.max(f,(x+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 m=Math.min(d,h),g=Math.max(d,h);if(t>(m+f)/2&&t<=(g+f)/2){o=a[u].index;break}}}else for(var S=0;S<l;S++)if(S===0&&t<=(r[S].coordinate+r[S+1].coordinate)/2||S>0&&S<l-1&&t>(r[S].coordinate+r[S-1].coordinate)/2&&t<=(r[S].coordinate+r[S+1].coordinate)/2||S===l-1&&t>(r[S].coordinate+r[S-1].coordinate)/2){o=r[S].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?st(st({},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},Pee=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]],v=b.items,x=b.cateAxisId,y=v.filter(function(A){return na(A.type).indexOf("Bar")>=0});if(y&&y.length){var m=y[0].type.defaultProps,g=m!==void 0?st(st({},m),y[0].props):y[0].props,S=g.barSize,w=g[x];o[w]||(o[w]=[]);var O=ge(S)?n:S;o[w].push({item:y[0],stackList:y.slice(1),barSize:ge(O)?void 0:en(O,r,0)})}}return o},$ee=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=en(n,a,0,!0),d,f=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=a/s,b=o.reduce(function(S,w){return S+w.barSize||0},0);b+=(s-1)*u,b>=a&&(b-=(s-1)*u,u=0),b>=a&&p>0&&(h=!0,p*=.9,b=s*p);var v=(a-b)/2>>0,x={offset:v-u,size:0};d=o.reduce(function(S,w){var O={item:w.item,position:{offset:x.offset+x.size+u,size:h?p:w.barSize}},A=[].concat(Lj(S),[O]);return x=A[A.length-1].position,w.stackList&&w.stackList.length&&w.stackList.forEach(function(E){A.push({item:E,position:x})}),A},f)}else{var y=en(r,a,0,!0);a-2*y-(s-1)*u<=0&&(u=0);var m=(a-2*y-(s-1)*u)/s;m>1&&(m>>=0);var g=l===+l?Math.min(m,l):m;d=o.reduce(function(S,w,O){var A=[].concat(Lj(S),[{item:w.item,position:{offset:y+(m+u)*O+(m-g)/2,size:g}}]);return w.stackList&&w.stackList.length&&w.stackList.forEach(function(E){A.push({item:E,position:A[A.length-1].position})}),A},f)}return d},Dee=function(t,n,r,a){var i=r.children,o=r.width,l=r.margin,s=o-(l.left||0)-(l.right||0),u=oR({children:i,legendWidth:s});if(u){var d=a||{},f=d.width,h=d.height,p=u.align,b=u.verticalAlign,v=u.layout;if((v==="vertical"||v==="horizontal"&&b==="middle")&&p!=="center"&&Y(t[p]))return st(st({},t),{},ul({},p,t[p]+(f||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&b!=="middle"&&Y(t[b]))return st(st({},t),{},ul({},b,t[b]+(h||0)))}return t},kee=function(t,n,r){return ge(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},lR=function(t,n,r,a,i){var o=n.props.children,l=Wn(o,Jp).filter(function(u){return kee(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(ge(f))return u;var h=Array.isArray(f)?[Xp(f),Vp(f)]:[f,f],p=s.reduce(function(b,v){var x=Kt(d,v,0),y=h[0]-Math.abs(Array.isArray(x)?x[0]:x),m=h[1]+Math.abs(Array.isArray(x)?x[1]:x);return[Math.min(y,b[0]),Math.max(m,b[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},Lee=function(t,n,r,a,i){var o=n.map(function(l){return lR(t,l,r,i,a)}).filter(function(l){return!ge(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},sR=function(t,n,r,a,i){var o=n.map(function(s){var u=s.props.dataKey;return r==="number"&&u&&lR(t,s,u,a)||wu(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},[])},uR=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?Jt(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!Wc(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}})},_m=new WeakMap,$f=function(t,n){if(typeof n!="function")return t;_m.has(t)||_m.set(t,new WeakMap);var r=_m.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},cR=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:Wu(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:fh(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Su(),realScaleType:"point"}:i==="category"?{scale:Wu(),realScaleType:"band"}:{scale:fh(),realScaleType:"linear"};if(oo(a)){var s="scale".concat(Pp(a));return{scale:(Mj[s]||Su)(),realScaleType:Mj[s]?s:"point"}}return se(a)?{scale:a}:{scale:Su(),realScaleType:"point"}},Bj=1e-4,fR=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])-Bj,o=Math.max(a[0],a[1])+Bj,l=t(n[0]),s=t(n[r-1]);(l<i||l>o||s<i||s>o)&&t.domain([n[0],n[r-1]])}},zee=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},Bee=function(t,n){if(!n||n.length!==2||!Y(n[0])||!Y(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(!Y(t[0])||t[0]<r)&&(i[0]=r),(!Y(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<r&&(i[1]=r),i},Iee=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=Wc(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])}},Uee=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=Wc(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)}},Hee={sign:Iee,expand:o9,none:kl,silhouette:l9,wiggle:s9,positive:Uee},qee=function(t,n,r){var a=n.map(function(l){return l.props.dataKey}),i=Hee[r],o=i9().keys(a).value(function(l,s){return+Kt(l,s,0)}).order(yg).offset(i);return o(t)},Fee=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?st(st({},h.type.defaultProps),h.props):h.props,v=b.stackId,x=b.hide;if(x)return f;var y=b[r],m=f[y]||{hasStack:!1,stackGroups:{}};if(jt(v)){var g=m.stackGroups[v]||{numericAxisId:r,cateAxisId:a,items:[]};g.items.push(h),m.hasStack=!0,m.stackGroups[v]=g}else m.stackGroups[Zc("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[h]};return st(st({},f),{},ul({},y,m))},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(v,x){var y=p.stackGroups[x];return st(st({},v),{},ul({},x,{numericAxisId:r,cateAxisId:a,items:y.items,stackedData:qee(t,y.items,i)}))},b)}return st(st({},f),{},ul({},h,p))},d)},dR=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=aee(u,i,l);return t.domain([Xp(d),Vp(d)]),{niceTicks:d}}if(i&&a==="number"){var f=t.domain(),h=iee(f,i,l);return{niceTicks:h}}return null},Ij=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 ge(s)?null:n.scale(s)-i/2+a},Gee=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]},Kee=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?st(st({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(jt(i)){var o=n[i];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},Yee=function(t){return t.reduce(function(n,r){return[Xp(r.concat([n[0]]).filter(Y)),Vp(r.concat([n[1]]).filter(Y))]},[1/0,-1/0])},hR=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=Yee(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})},Uj=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Hj=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Gg=function(t,n,r){if(se(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(Y(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(Uj.test(t[0])){var i=+Uj.exec(t[0])[1];a[0]=n[0]-i}else se(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(Y(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(Hj.test(t[1])){var o=+Hj.exec(t[1])[1];a[1]=n[1]+o}else se(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},gh=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=Cx(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},qj=function(t,n,r){return!t||!t.length||Qp(t,Rn(r,"type.defaultProps.domain"))?n:t},pR=function(t,n){var r=t.type.defaultProps?st(st({},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 st(st({},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 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 Fj(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 Ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fj(Object(n),!0).forEach(function(r){yR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yR(e,t,n){return t=Vee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vee(e){var t=Xee(e,"string");return oc(t)=="symbol"?t:t+""}function Xee(e,t){if(oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qee(e,t){return ete(e)||Jee(e,t)||Zee(e,t)||Wee()}function Wee(){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 Zee(e,t){if(e){if(typeof e=="string")return Gj(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 Gj(e,t)}}function Gj(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 Jee(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 ete(e){if(Array.isArray(e))return e}var bh=Math.PI/180,tte=function(t){return t*180/Math.PI},Ve=function(t,n,r,a){return{x:t+Math.cos(-bh*a)*r,y:n+Math.sin(-bh*a)*r}},mR=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},nte=function(t,n,r,a,i){var o=t.width,l=t.height,s=t.startAngle,u=t.endAngle,d=en(t.cx,o,o/2),f=en(t.cy,l,l/2),h=mR(o,l,r),p=en(t.innerRadius,h,0),b=en(t.outerRadius,h,h*.8),v=Object.keys(n);return v.reduce(function(x,y){var m=n[y],g=m.domain,S=m.reversed,w;if(ge(m.range))a==="angleAxis"?w=[s,u]:a==="radiusAxis"&&(w=[p,b]),S&&(w=[w[1],w[0]]);else{w=m.range;var O=w,A=Qee(O,2);s=A[0],u=A[1]}var E=cR(m,i),_=E.realScaleType,N=E.scale;N.domain(g).range(w),fR(N);var D=dR(N,Ur(Ur({},m),{},{realScaleType:_})),P=Ur(Ur(Ur({},m),D),{},{range:w,radius:b,realScaleType:_,scale:N,cx:d,cy:f,innerRadius:p,outerRadius:b,startAngle:s,endAngle:u});return Ur(Ur({},x),{},yR({},y,P))},{})},rte=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))},ate=function(t,n){var r=t.x,a=t.y,i=n.cx,o=n.cy,l=rte({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:tte(u),angleInRadian:u}},ite=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}},ote=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},Kj=function(t,n){var r=t.x,a=t.y,i=ate({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=ite(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?Ur(Ur({},n),{},{radius:o,angle:ote(p,n)}):null},vR=function(t){return!j.isValidElement(t)&&!se(t)&&typeof t!="boolean"?t.className:""};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)}var lte=["offset"];function ste(e){return dte(e)||fte(e)||cte(e)||ute()}function ute(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cte(e,t){if(e){if(typeof e=="string")return Kg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kg(e,t)}}function fte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dte(e){if(Array.isArray(e))return Kg(e)}function Kg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hte(e,t){if(e==null)return{};var n=pte(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 pte(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 Yj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yj(Object(n),!0).forEach(function(r){yte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yte(e,t,n){return t=mte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mte(e){var t=vte(e,"string");return lc(t)=="symbol"?t:t+""}function vte(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 sc(){return sc=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},sc.apply(this,arguments)}var gte=function(t){var n=t.value,r=t.formatter,a=ge(t.children)?n:t.children;return se(r)?r(a):a},bte=function(t,n){var r=Jt(n-t),a=Math.min(Math.abs(n-t),360);return r*a},xte=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,v=s.clockWise,x=(f+h)/2,y=bte(p,b),m=y>=0?1:-1,g,S;a==="insideStart"?(g=p+m*o,S=v):a==="insideEnd"?(g=b-m*o,S=!v):a==="end"&&(g=b+m*o,S=v),S=y<=0?S:!S;var w=Ve(u,d,x,g),O=Ve(u,d,x,g+(S?1:-1)*359),A="M".concat(w.x,",").concat(w.y,`
    A`).concat(x,",").concat(x,",0,1,").concat(S?0:1,`,
    `).concat(O.x,",").concat(O.y),E=ge(t.id)?Zc("recharts-radial-line-"):t.id;return M.createElement("text",sc({},r,{dominantBaseline:"central",className:ve("recharts-radial-bar-label",l)}),M.createElement("defs",null,M.createElement("path",{id:E,d:A})),M.createElement("textPath",{xlinkHref:"#".concat(E)},n))},Ste=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=Ve(o,l,u+r,h),b=p.x,v=p.y;return{x:b,y:v,textAnchor:b>=o?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var x=(s+u)/2,y=Ve(o,l,x,h),m=y.x,g=y.y;return{x:m,y:g,textAnchor:"middle",verticalAnchor:"middle"}},wte=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",v=u>=0?1:-1,x=v*a,y=v>0?"end":"start",m=v>0?"start":"end";if(i==="top"){var g={x:l+u/2,y:s-f*a,textAnchor:"middle",verticalAnchor:p};return St(St({},g),r?{height:Math.max(s-r.y,0),width:u}:{})}if(i==="bottom"){var S={x:l+u/2,y:s+d+h,textAnchor:"middle",verticalAnchor:b};return St(St({},S),r?{height:Math.max(r.y+r.height-(s+d),0),width:u}:{})}if(i==="left"){var w={x:l-x,y:s+d/2,textAnchor:y,verticalAnchor:"middle"};return St(St({},w),r?{width:Math.max(w.x-r.x,0),height:d}:{})}if(i==="right"){var O={x:l+u+x,y:s+d/2,textAnchor:m,verticalAnchor:"middle"};return St(St({},O),r?{width:Math.max(r.x+r.width-O.x,0),height:d}:{})}var A=r?{width:u,height:d}:{};return i==="insideLeft"?St({x:l+x,y:s+d/2,textAnchor:m,verticalAnchor:"middle"},A):i==="insideRight"?St({x:l+u-x,y:s+d/2,textAnchor:y,verticalAnchor:"middle"},A):i==="insideTop"?St({x:l+u/2,y:s+h,textAnchor:"middle",verticalAnchor:b},A):i==="insideBottom"?St({x:l+u/2,y:s+d-h,textAnchor:"middle",verticalAnchor:p},A):i==="insideTopLeft"?St({x:l+x,y:s+h,textAnchor:m,verticalAnchor:b},A):i==="insideTopRight"?St({x:l+u-x,y:s+h,textAnchor:y,verticalAnchor:b},A):i==="insideBottomLeft"?St({x:l+x,y:s+d-h,textAnchor:m,verticalAnchor:p},A):i==="insideBottomRight"?St({x:l+u-x,y:s+d-h,textAnchor:y,verticalAnchor:p},A):Os(i)&&(Y(i.x)||Mi(i.x))&&(Y(i.y)||Mi(i.y))?St({x:l+en(i.x,u),y:s+en(i.y,d),textAnchor:"end",verticalAnchor:"end"},A):St({x:l+u/2,y:s+d/2,textAnchor:"middle",verticalAnchor:"middle"},A)},Ote=function(t){return"cx"in t&&Y(t.cx)};function Mt(e){var t=e.offset,n=t===void 0?5:t,r=hte(e,lte),a=St({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||ge(l)&&ge(s)&&!j.isValidElement(u)&&!se(u))return null;if(j.isValidElement(u))return j.cloneElement(u,a);var p;if(se(u)){if(p=j.createElement(u,a),j.isValidElement(p))return p}else p=gte(a);var b=Ote(i),v=oe(a,!0);if(b&&(o==="insideStart"||o==="insideEnd"||o==="end"))return xte(a,p,v);var x=b?Ste(a):wte(a);return M.createElement(so,sc({className:ve("recharts-label",f)},v,x,{breakAll:h}),p)}Mt.displayName="Label";var gR=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,v=t.width,x=t.height,y=t.clockWise,m=t.labelViewBox;if(m)return m;if(Y(v)&&Y(x)){if(Y(f)&&Y(h))return{x:f,y:h,width:v,height:x};if(Y(p)&&Y(b))return{x:p,y:b,width:v,height:x}}return Y(f)&&Y(h)?{x:f,y:h,width:0,height:0}:Y(n)&&Y(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:{}},jte=function(t,n){return t?t===!0?M.createElement(Mt,{key:"label-implicit",viewBox:n}):jt(t)?M.createElement(Mt,{key:"label-implicit",viewBox:n,value:t}):j.isValidElement(t)?t.type===Mt?j.cloneElement(t,{key:"label-implicit",viewBox:n}):M.createElement(Mt,{key:"label-implicit",content:t,viewBox:n}):se(t)?M.createElement(Mt,{key:"label-implicit",content:t,viewBox:n}):Os(t)?M.createElement(Mt,sc({viewBox:n},t,{key:"label-implicit"})):null:null},Ate=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=gR(t),o=Wn(a,Mt).map(function(s,u){return j.cloneElement(s,{viewBox:n||i,key:"label-".concat(u)})});if(!r)return o;var l=jte(t.label,n||i);return[l].concat(ste(o))};Mt.parseViewBox=gR;Mt.renderCallByParent=Ate;function Ete(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var _te=Ete;const Tte=He(_te);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 Nte=["valueAccessor"],Cte=["data","dataKey","clockWise","id","textBreakAll"];function Mte(e){return Dte(e)||$te(e)||Pte(e)||Rte()}function Rte(){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 Pte(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 $te(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dte(e){if(Array.isArray(e))return Yg(e)}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 xh(){return xh=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},xh.apply(this,arguments)}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 Xj(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){kte(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 kte(e,t,n){return t=Lte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lte(e){var t=zte(e,"string");return uc(t)=="symbol"?t:t+""}function zte(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 Qj(e,t){if(e==null)return{};var n=Bte(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 Bte(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 Ite=function(t){return Array.isArray(t.value)?Tte(t.value):t.value};function ri(e){var t=e.valueAccessor,n=t===void 0?Ite:t,r=Qj(e,Nte),a=r.data,i=r.dataKey,o=r.clockWise,l=r.id,s=r.textBreakAll,u=Qj(r,Cte);return!a||!a.length?null:M.createElement(De,{className:"recharts-label-list"},a.map(function(d,f){var h=ge(i)?n(d,f):Kt(d&&d.payload,i),p=ge(l)?{}:{id:"".concat(l,"-").concat(f)};return M.createElement(Mt,xh({},oe(d,!0),u,p,{parentViewBox:d.parentViewBox,value:h,textBreakAll:s,viewBox:Mt.parseViewBox(ge(o)?d:Xj(Xj({},d),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}ri.displayName="LabelList";function Ute(e,t){return e?e===!0?M.createElement(ri,{key:"labelList-implicit",data:t}):M.isValidElement(e)||se(e)?M.createElement(ri,{key:"labelList-implicit",data:t,content:e}):Os(e)?M.createElement(ri,xh({data:t},e,{key:"labelList-implicit"})):null:null}function Hte(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,a=Wn(r,ri).map(function(o,l){return j.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!n)return a;var i=Ute(e.label,t);return[i].concat(Mte(a))}ri.renderCallByParent=Hte;function cc(e){"@babel/helpers - typeof";return cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cc(e)}function Vg(){return Vg=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},Vg.apply(this,arguments)}function Wj(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 Zj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wj(Object(n),!0).forEach(function(r){qte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qte(e,t,n){return t=Fte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fte(e){var t=Gte(e,"string");return cc(t)=="symbol"?t:t+""}function Gte(e,t){if(cc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kte=function(t,n){var r=Jt(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)/bh,h=u?i:i+o*f,p=Ve(n,r,d,h),b=Ve(n,r,a,h),v=u?i-o*f:i,x=Ve(n,r,d*Math.cos(f*bh),v);return{center:p,circleTangency:b,lineTangency:x,theta:f}},bR=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.startAngle,l=t.endAngle,s=Kte(o,l),u=o+s,d=Ve(n,r,i,o),f=Ve(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=Ve(n,r,a,o),b=Ve(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},Yte=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=Jt(d-u),h=Df({cx:n,cy:r,radius:i,angle:u,sign:f,cornerRadius:o,cornerIsExternal:s}),p=h.circleTangency,b=h.lineTangency,v=h.theta,x=Df({cx:n,cy:r,radius:i,angle:d,sign:-f,cornerRadius:o,cornerIsExternal:s}),y=x.circleTangency,m=x.lineTangency,g=x.theta,S=s?Math.abs(u-d):Math.abs(u-d)-v-g;if(S<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
      `):bR({cx:n,cy:r,innerRadius:a,outerRadius:i,startAngle:u,endAngle:d});var w="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(+(S>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(m.x,",").concat(m.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,E=O.lineTangency,_=O.theta,N=Df({cx:n,cy:r,radius:a,angle:d,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),D=N.circleTangency,P=N.lineTangency,I=N.theta,$=s?Math.abs(u-d):Math.abs(u-d)-_-I;if($<0&&o===0)return"".concat(w,"L").concat(n,",").concat(r,"Z");w+="L".concat(P.x,",").concat(P.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(D.x,",").concat(D.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(E.x,",").concat(E.y,"Z")}else w+="L".concat(n,",").concat(r,"Z");return w},Vte={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},xR=function(t){var n=Zj(Zj({},Vte),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=ve("recharts-sector",h),b=o-i,v=en(l,b,0,!0),x;return v>0&&Math.abs(d-f)<360?x=Yte({cx:r,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(v,b/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:d,endAngle:f}):x=bR({cx:r,cy:a,innerRadius:i,outerRadius:o,startAngle:d,endAngle:f}),M.createElement("path",Vg({},oe(n,!0),{className:p,d:x,role:"img"}))};function fc(e){"@babel/helpers - typeof";return fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fc(e)}function Xg(){return Xg=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},Xg.apply(this,arguments)}function Jj(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 e2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jj(Object(n),!0).forEach(function(r){Xte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xte(e,t,n){return t=Qte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qte(e){var t=Wte(e,"string");return fc(t)=="symbol"?t:t+""}function Wte(e,t){if(fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var t2={curveBasisClosed:V7,curveBasisOpen:X7,curveBasis:Y7,curveBumpX:P7,curveBumpY:$7,curveLinearClosed:Q7,curveLinear:Dp,curveMonotoneX:W7,curveMonotoneY:Z7,curveNatural:J7,curveStep:e9,curveStepAfter:n9,curveStepBefore:t9},kf=function(t){return t.x===+t.x&&t.y===+t.y},Xs=function(t){return t.x},Qs=function(t){return t.y},Zte=function(t,n){if(se(t))return t;var r="curve".concat(Pp(t));return(r==="curveMonotone"||r==="curveBump")&&n?t2["".concat(r).concat(n==="vertical"?"Y":"X")]:t2[r]||Dp},Jte=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=Zte(r,l),f=u?i.filter(function(v){return kf(v)}):i,h;if(Array.isArray(o)){var p=u?o.filter(function(v){return kf(v)}):o,b=f.map(function(v,x){return e2(e2({},v),{},{base:p[x]})});return l==="vertical"?h=Ef().y(Qs).x1(Xs).x0(function(v){return v.base.x}):h=Ef().x(Xs).y1(Qs).y0(function(v){return v.base.y}),h.defined(kf).curve(d),h(b)}return l==="vertical"&&Y(o)?h=Ef().y(Qs).x1(Xs).x0(o):Y(o)?h=Ef().x(Xs).y1(Qs).y0(o):h=vC().x(Xs).y(Qs),h.defined(kf).curve(d),h(f)},Qg=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?Jte(t):a;return j.createElement("path",Xg({},oe(t,!1),Fd(t),{className:ve("recharts-curve",n),d:o,ref:i}))},SR={exports:{}},ene="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",tne=ene,nne=tne;function wR(){}function OR(){}OR.resetWarningCache=wR;var rne=function(){function e(r,a,i,o,l,s){if(s!==nne){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:OR,resetWarningCache:wR};return n.PropTypes=n,n};SR.exports=rne();var ane=SR.exports;const Ce=He(ane),{getOwnPropertyNames:ine,getOwnPropertySymbols:one}=Object,{hasOwnProperty:lne}=Object.prototype;function Tm(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 sne(e){return e!=null?e[Symbol.toStringTag]:void 0}function n2(e){return ine(e).concat(one(e))}const une=Object.hasOwn||((e,t)=>lne.call(e,t));function So(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const cne="__v",fne="__o",dne="_owner",{getOwnPropertyDescriptor:r2,keys:a2}=Object;function hne(e,t){return e.byteLength===t.byteLength&&Sh(new Uint8Array(e),new Uint8Array(t))}function pne(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 yne(e,t){return e.byteLength===t.byteLength&&Sh(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function mne(e,t){return So(e.getTime(),t.getTime())}function vne(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function gne(e,t){return e===t}function i2(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 bne=So;function xne(e,t,n){const r=a2(e);let a=r.length;if(a2(t).length!==a)return!1;for(;a-- >0;)if(!jR(e,t,n,r[a]))return!1;return!0}function Ws(e,t,n){const r=n2(e);let a=r.length;if(n2(t).length!==a)return!1;let i,o,l;for(;a-- >0;)if(i=r[a],!jR(e,t,n,i)||(o=r2(e,i),l=r2(t,i),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function Sne(e,t){return So(e.valueOf(),t.valueOf())}function wne(e,t){return e.source===t.source&&e.flags===t.flags}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.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 Sh(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 One(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 jR(e,t,n,r){return(r===dne||r===fne||r===cne)&&(e.$$typeof||t.$$typeof)?!0:une(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const jne="[object ArrayBuffer]",Ane="[object Arguments]",Ene="[object Boolean]",_ne="[object DataView]",Tne="[object Date]",Nne="[object Error]",Cne="[object Map]",Mne="[object Number]",Rne="[object Object]",Pne="[object RegExp]",$ne="[object Set]",Dne="[object String]",kne={"[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},Lne="[object URL]",zne=Object.prototype.toString;function Bne({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(x,y,m){if(x===y)return!0;if(x==null||y==null)return!1;const g=typeof x;if(g!==typeof y)return!1;if(g!=="object")return g==="number"?l(x,y,m):g==="function"?i(x,y,m):!1;const S=x.constructor;if(S!==y.constructor)return!1;if(S===Object)return s(x,y,m);if(Array.isArray(x))return t(x,y,m);if(S===Date)return r(x,y,m);if(S===RegExp)return d(x,y,m);if(S===Map)return o(x,y,m);if(S===Set)return f(x,y,m);const w=zne.call(x);if(w===Tne)return r(x,y,m);if(w===Pne)return d(x,y,m);if(w===Cne)return o(x,y,m);if(w===$ne)return f(x,y,m);if(w===Rne)return typeof x.then!="function"&&typeof y.then!="function"&&s(x,y,m);if(w===Lne)return p(x,y,m);if(w===Nne)return a(x,y,m);if(w===Ane)return s(x,y,m);if(kne[w])return h(x,y,m);if(w===jne)return e(x,y,m);if(w===_ne)return n(x,y,m);if(w===Ene||w===Mne||w===Dne)return u(x,y,m);if(b){let O=b[w];if(!O){const A=sne(x);A&&(O=b[A])}if(O)return O(x,y,m)}return!1}}function Ine({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:hne,areArraysEqual:n?Ws:pne,areDataViewsEqual:yne,areDatesEqual:mne,areErrorsEqual:vne,areFunctionsEqual:gne,areMapsEqual:n?Tm(i2,Ws):i2,areNumbersEqual:bne,areObjectsEqual:n?Ws:xne,arePrimitiveWrappersEqual:Sne,areRegExpsEqual:wne,areSetsEqual:n?Tm(o2,Ws):o2,areTypedArraysEqual:n?Tm(Sh,Ws):Sh,areUrlsEqual:One,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 Une(e){return function(t,n,r,a,i,o,l){return e(t,n,l)}}function Hne({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 qne=pi();pi({strict:!0});pi({circular:!0});pi({circular:!0,strict:!0});pi({createInternalComparator:()=>So});pi({strict:!0,createInternalComparator:()=>So});pi({circular:!0,createInternalComparator:()=>So});pi({circular:!0,createInternalComparator:()=>So,strict:!0});function pi(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,i=Ine(e),o=Bne(i),l=n?n(o):Une(o);return Hne({circular:t,comparator:o,createState:r,equals:l,strict:a})}function Fne(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function l2(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):Fne(a)};requestAnimationFrame(r)}function Wg(e){"@babel/helpers - typeof";return Wg=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},Wg(e)}function Gne(e){return Xne(e)||Vne(e)||Yne(e)||Kne()}function Kne(){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 Yne(e,t){if(e){if(typeof e=="string")return s2(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 s2(e,t)}}function s2(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 Vne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xne(e){if(Array.isArray(e))return e}function Qne(){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=Gne(o),s=l[0],u=l.slice(1);if(typeof s=="number"){l2(a.bind(null,u),s);return}a(s),l2(a.bind(null,u));return}Wg(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 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 u2(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 c2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u2(Object(n),!0).forEach(function(r){AR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AR(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=Zne(e,"string");return dc(t)==="symbol"?t:String(t)}function Zne(e,t){if(dc(e)!=="object"||e===null)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 Jne=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(i){return a.includes(i)})})},ere=function(t){return t},tre=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Ou=function(t,n){return Object.keys(n).reduce(function(r,a){return c2(c2({},r),{},AR({},a,t(a,n[a])))},{})},f2=function(t,n,r){return t.map(function(a){return"".concat(tre(a)," ").concat(n,"ms ").concat(r)}).join(",")};function nre(e,t){return ire(e)||are(e,t)||ER(e,t)||rre()}function rre(){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 are(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 ire(e){if(Array.isArray(e))return e}function ore(e){return ure(e)||sre(e)||ER(e)||lre()}function lre(){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 ER(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 sre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ure(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}var wh=1e-4,_R=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},TR=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},d2=function(t,n){return function(r){var a=_R(t,n);return TR(a,r)}},cre=function(t,n){return function(r){var a=_R(t,n),i=[].concat(ore(a.map(function(o,l){return o*l}).slice(1)),[0]);return TR(i,r)}},h2=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(x){return parseFloat(x)}),d=nre(u,4);a=d[0],i=d[1],o=d[2],l=d[3]}}}var f=d2(a,o),h=d2(i,l),p=cre(a,o),b=function(y){return y>1?1:y<0?0:y},v=function(y){for(var m=y>1?1:y,g=m,S=0;S<8;++S){var w=f(g)-m,O=p(g);if(Math.abs(w-m)<wh||O<wh)return h(g);g=b(g-w/O)}return h(g)};return v.isStepper=!1,v},fre=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,v=h+(p-b)*l/1e3,x=h*l/1e3+d;return Math.abs(x-f)<wh&&Math.abs(v)<wh?[f,0]:[x,v]};return s.isStepper=!0,s.dt=l,s},dre=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 h2(a);case"spring":return fre();default:if(a.split("(")[0]==="cubic-bezier")return h2(a)}return typeof a=="function"?a:null};function hc(e){"@babel/helpers - typeof";return hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hc(e)}function p2(e){return yre(e)||pre(e)||NR(e)||hre()}function hre(){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 pre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yre(e){if(Array.isArray(e))return e0(e)}function y2(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?y2(Object(n),!0).forEach(function(r){Jg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jg(e,t,n){return t=mre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mre(e){var t=vre(e,"string");return hc(t)==="symbol"?t:String(t)}function vre(e,t){if(hc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gre(e,t){return Sre(e)||xre(e,t)||NR(e,t)||bre()}function bre(){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 NR(e,t){if(e){if(typeof e=="string")return e0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e0(e,t)}}function e0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xre(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 Sre(e){if(Array.isArray(e))return e}var Oh=function(t,n,r){return t+(n-t)*r},t0=function(t){var n=t.from,r=t.to;return n!==r},wre=function e(t,n,r){var a=Ou(function(i,o){if(t0(o)){var l=t(o.from,o.to,o.velocity),s=gre(l,2),u=s[0],d=s[1];return kt(kt({},o),{},{from:u,velocity:d})}return o},n);return r<1?Ou(function(i,o){return t0(o)?kt(kt({},o),{},{velocity:Oh(o.velocity,a[i].velocity,r),from:Oh(o.from,a[i].from,r)}):o},n):e(t,a,r-1)};const Ore=function(e,t,n,r,a){var i=Jne(e,t),o=i.reduce(function(x,y){return kt(kt({},x),{},Jg({},y,[e[y],t[y]]))},{}),l=i.reduce(function(x,y){return kt(kt({},x),{},Jg({},y,{from:e[y],velocity:0,to:t[y]}))},{}),s=-1,u,d,f=function(){return null},h=function(){return Ou(function(y,m){return m.from},l)},p=function(){return!Object.values(l).filter(t0).length},b=function(y){u||(u=y);var m=y-u,g=m/n.dt;l=wre(n,l,g),a(kt(kt(kt({},e),t),h())),u=y,p()||(s=requestAnimationFrame(f))},v=function(y){d||(d=y);var m=(y-d)/r,g=Ou(function(w,O){return Oh.apply(void 0,p2(O).concat([n(m)]))},o);if(a(kt(kt(kt({},e),t),g)),m<1)s=requestAnimationFrame(f);else{var S=Ou(function(w,O){return Oh.apply(void 0,p2(O).concat([n(1)]))},o);a(kt(kt(kt({},e),t),S))}};return f=n.isStepper?b:v,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(s)}}};function Gl(e){"@babel/helpers - typeof";return Gl=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},Gl(e)}var jre=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Are(e,t){if(e==null)return{};var n=Ere(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 Ere(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 Nm(e){return Cre(e)||Nre(e)||Tre(e)||_re()}function _re(){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 Tre(e,t){if(e){if(typeof e=="string")return n0(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 n0(e,t)}}function Nre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cre(e){if(Array.isArray(e))return n0(e)}function n0(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 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 ir(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){iu(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 iu(e,t,n){return t=CR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rre(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,CR(r.key),r)}}function Pre(e,t,n){return t&&Rre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CR(e){var t=$re(e,"string");return Gl(t)==="symbol"?t:String(t)}function $re(e,t){if(Gl(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dre(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 kre(e){var t=Lre();return function(){var r=jh(e),a;if(t){var i=jh(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return a0(this,a)}}function a0(e,t){if(t&&(Gl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return i0(e)}function i0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lre(){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 jh(e){return jh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jh(e)}var ya=function(e){Dre(n,e);var t=kre(n);function n(r,a){var i;Mre(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(i0(i)),i.changeStyle=i.changeStyle.bind(i0(i)),!l||p<=0)return i.state={style:{}},typeof h=="function"&&(i.state={style:d}),a0(i);if(f&&f.length)i.state={style:f[0].style};else if(u){if(typeof h=="function")return i.state={style:u},a0(i);i.state={style:s?iu({},s,u):u}}else i.state={style:{}};return i}return Pre(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?iu({},s,d):d};this.state&&h&&(s&&h[s]!==d||!s&&h!==d)&&this.setState(p);return}if(!(qne(a.to,d)&&a.canBegin&&a.isActive)){var b=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=b||u?f:a.to;if(this.state&&h){var x={style:s?iu({},s,v):v};(s&&h[s]!==v||!s&&h!==v)&&this.setState(x)}this.runAnimation(ir(ir({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,o=a.from,l=a.to,s=a.duration,u=a.easing,d=a.begin,f=a.onAnimationEnd,h=a.onAnimationStart,p=Ore(o,l,dre(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(v,x,y){if(y===0)return v;var m=x.duration,g=x.easing,S=g===void 0?"ease":g,w=x.style,O=x.properties,A=x.onAnimationEnd,E=y>0?o[y-1]:x,_=O||Object.keys(w);if(typeof S=="function"||S==="spring")return[].concat(Nm(v),[i.runJSAnimation.bind(i,{from:E.style,to:w,duration:m,easing:S}),m]);var N=f2(_,m,S),D=ir(ir(ir({},E.style),w),{},{transition:N});return[].concat(Nm(v),[D,m,A]).filter(ere)};return this.manager.start([s].concat(Nm(o.reduce(p,[d,Math.max(h,l)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=Qne());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 v=l?iu({},l,s):s,x=f2(Object.keys(v),o,u);b.start([d,i,ir(ir({},v),{},{transition:x}),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=Are(a,jre),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,v=b.style,x=v===void 0?{}:v,y=b.className,m=j.cloneElement(p,ir(ir({},s),{},{style:ir(ir({},x),d),className:y}));return m};return u===1?f(j.Children.only(i)):M.createElement("div",null,j.Children.map(i,function(h){return f(h)}))}}]),n}(j.PureComponent);ya.displayName="Animate";ya.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ya.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 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 Ah(){return Ah=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},Ah.apply(this,arguments)}function zre(e,t){return Hre(e)||Ure(e,t)||Ire(e,t)||Bre()}function Bre(){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 Ire(e,t){if(e){if(typeof e=="string")return v2(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 v2(e,t)}}function v2(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 Ure(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 Hre(e){if(Array.isArray(e))return e}function g2(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 b2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g2(Object(n),!0).forEach(function(r){qre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qre(e,t,n){return t=Fre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fre(e){var t=Gre(e,"string");return pc(t)=="symbol"?t:t+""}function Gre(e,t){if(pc(e)!="object"||!e)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 x2=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},Kre=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},Yre={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=b2(b2({},Yre),t),r=j.useRef(),a=j.useState(-1),i=zre(a,2),o=i[0],l=i[1];j.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var S=r.current.getTotalLength();S&&l(S)}catch{}},[]);var s=n.x,u=n.y,d=n.width,f=n.height,h=n.radius,p=n.className,b=n.animationEasing,v=n.animationDuration,x=n.animationBegin,y=n.isAnimationActive,m=n.isUpdateAnimationActive;if(s!==+s||u!==+u||d!==+d||f!==+f||d===0||f===0)return null;var g=ve("recharts-rectangle",p);return m?M.createElement(ya,{canBegin:o>0,from:{width:d,height:f,x:s,y:u},to:{width:d,height:f,x:s,y:u},duration:v,animationEasing:b,isActive:m},function(S){var w=S.width,O=S.height,A=S.x,E=S.y;return M.createElement(ya,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:v,isActive:y,easing:b},M.createElement("path",Ah({},oe(n,!0),{className:g,d:x2(A,E,w,O,h),ref:r})))}):M.createElement("path",Ah({},oe(n,!0),{className:g,d:x2(s,u,d,f,h)}))},Vre=["points","className","baseLinePoints","connectNulls"];function Vo(){return Vo=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},Vo.apply(this,arguments)}function Xre(e,t){if(e==null)return{};var n=Qre(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 Qre(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 S2(e){return eae(e)||Jre(e)||Zre(e)||Wre()}function Wre(){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 Zre(e,t){if(e){if(typeof e=="string")return o0(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 o0(e,t)}}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 o0(e)}function o0(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 w2=function(t){return t&&t.x===+t.x&&t.y===+t.y},tae=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){w2(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),w2(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},ju=function(t,n){var r=tae(t);n&&(r=[r.reduce(function(i,o){return[].concat(S2(i),S2(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},nae=function(t,n,r){var a=ju(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(ju(n.reverse(),r).slice(1))},rae=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,i=t.connectNulls,o=Xre(t,Vre);if(!n||!n.length)return null;var l=ve("recharts-polygon",r);if(a&&a.length){var s=o.stroke&&o.stroke!=="none",u=nae(n,a,i);return M.createElement("g",{className:l},M.createElement("path",Vo({},oe(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),s?M.createElement("path",Vo({},oe(o,!0),{fill:"none",d:ju(n,i)})):null,s?M.createElement("path",Vo({},oe(o,!0),{fill:"none",d:ju(a,i)})):null)}var d=ju(n,i);return M.createElement("path",Vo({},oe(o,!0),{fill:d.slice(-1)==="Z"?o.fill:"none",className:l,d}))};function l0(){return l0=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},l0.apply(this,arguments)}var a1=function(t){var n=t.cx,r=t.cy,a=t.r,i=t.className,o=ve("recharts-dot",i);return n===+n&&r===+r&&a===+a?j.createElement("circle",l0({},oe(t,!1),Fd(t),{className:o,cx:n,cy:r,r: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)}var aae=["x","y","top","left","width","height","className"];function s0(){return s0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s0.apply(this,arguments)}function O2(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 iae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O2(Object(n),!0).forEach(function(r){oae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oae(e,t,n){return t=lae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lae(e){var t=sae(e,"string");return yc(t)=="symbol"?t:t+""}function sae(e,t){if(yc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uae(e,t){if(e==null)return{};var n=cae(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var fae=function(t,n,r,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(n,"h").concat(r)},dae=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,v=uae(t,aae),x=iae({x:r,y:i,top:l,left:u,width:f,height:p},v);return!Y(r)||!Y(i)||!Y(f)||!Y(p)||!Y(l)||!Y(u)?null:M.createElement("path",s0({},oe(x,!0),{className:ve("recharts-cross",b),d:fae(r,i,f,p,l,u)}))},hae=Yp,pae=qM,yae=fi;function mae(e,t){return e&&e.length?hae(e,yae(t),pae):void 0}var vae=mae;const gae=He(vae);var bae=Yp,xae=fi,Sae=FM;function wae(e,t){return e&&e.length?bae(e,xae(t),Sae):void 0}var Oae=wae;const jae=He(Oae);var Aae=["cx","cy","angle","ticks","axisLine"],Eae=["ticks","tick","angle","tickFormatter","stroke"];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 Au(){return Au=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},Au.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 bi(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){ey(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 A2(e,t){if(e==null)return{};var n=_ae(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 _ae(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 Tae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E2(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 Nae(e,t,n){return t&&E2(e.prototype,t),n&&E2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cae(e,t,n){return t=Eh(t),Mae(e,MR()?Reflect.construct(t,n||[],Eh(e).constructor):t.apply(e,n))}function Mae(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 Rae(e)}function Rae(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 Eh(e){return Eh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Eh(e)}function Pae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u0(e,t)}function u0(e,t){return u0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},u0(e,t)}function ey(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=$ae(e,"string");return Kl(t)=="symbol"?t:t+""}function $ae(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(t==="string"?String:Number)(e)}var ty=function(e){function t(){return Tae(this,t),Cae(this,t,arguments)}return Pae(t,e),Nae(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,i=this.props,o=i.angle,l=i.cx,s=i.cy;return Ve(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=gae(l,function(d){return d.coordinate||0}),u=jae(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=A2(r,Aae),d=l.reduce(function(b,v){return[Math.min(b[0],v.coordinate),Math.max(b[1],v.coordinate)]},[1/0,-1/0]),f=Ve(a,i,d[0],o),h=Ve(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 M.createElement("line",Au({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=A2(a,Eae),f=this.getTickTextAnchor(),h=oe(d,!1),p=oe(o,!1),b=i.map(function(v,x){var y=r.getTickValueCoord(v),m=bi(bi(bi(bi({textAnchor:f,transform:"rotate(".concat(90-l,", ").concat(y.x,", ").concat(y.y,")")},h),{},{stroke:"none",fill:u},p),{},{index:x},y),{},{payload:v});return M.createElement(De,Au({className:ve("recharts-polar-radius-axis-tick",vR(o)),key:"tick-".concat(v.coordinate)},lo(r.props,v,x)),t.renderTickItem(o,m,s?s(v.value,x):v.value))});return M.createElement(De,{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:M.createElement(De,{className:ve("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),o&&this.renderTicks(),Mt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,i){var o;return M.isValidElement(r)?o=M.cloneElement(r,a):se(r)?o=r(a):o=M.createElement(so,Au({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),o}}])}(j.PureComponent);ey(ty,"displayName","PolarRadiusAxis");ey(ty,"axisType","radiusAxis");ey(ty,"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 Yl(e){"@babel/helpers - typeof";return Yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yl(e)}function 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 _2(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?_2(Object(n),!0).forEach(function(r){ny(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T2(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 kae(e,t,n){return t&&T2(e.prototype,t),n&&T2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lae(e,t,n){return t=_h(t),zae(e,PR()?Reflect.construct(t,n||[],_h(e).constructor):t.apply(e,n))}function zae(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 Bae(e)}function Bae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PR=function(){return!!e})()}function _h(e){return _h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_h(e)}function Iae(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 ny(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=Uae(e,"string");return Yl(t)=="symbol"?t:t+""}function Uae(e,t){if(Yl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hae=Math.PI/180,N2=1e-5,ry=function(e){function t(){return Dae(this,t),Lae(this,t,arguments)}return Iae(t,e),kae(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=Ve(i,o,l,r.coordinate),h=Ve(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*Hae),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 M.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 Ve(a,i,o,h.coordinate)});return M.createElement(rae,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,v){var x=r.getTickLineCoord(b),y=r.getTickTextAnchor(b),m=xi(xi(xi({textAnchor:y},d),{},{stroke:"none",fill:u},f),{},{index:v,payload:b,x:x.x2,y:x.y2});return M.createElement(De,Ti({className:ve("recharts-polar-angle-axis-tick",vR(o)),key:"tick-".concat(b.coordinate)},lo(r.props,b,v)),l&&M.createElement("line",Ti({className:"recharts-polar-angle-axis-tick-line"},h,x)),o&&t.renderTickItem(o,m,s?s(b.value,v):b.value))});return M.createElement(De,{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:M.createElement(De,{className:ve("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,i){var o;return M.isValidElement(r)?o=M.cloneElement(r,a):se(r)?o=r(a):o=M.createElement(so,Ti({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),o}}])}(j.PureComponent);ny(ry,"displayName","PolarAngleAxis");ny(ry,"axisType","angleAxis");ny(ry,"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 qae=UC,Fae=qae(Object.getPrototypeOf,Object),Gae=Fae,Kae=va,Yae=Gae,Vae=ga,Xae="[object Object]",Qae=Function.prototype,Wae=Object.prototype,DR=Qae.toString,Zae=Wae.hasOwnProperty,Jae=DR.call(Object);function eie(e){if(!Vae(e)||Kae(e)!=Xae)return!1;var t=Yae(e);if(t===null)return!0;var n=Zae.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&DR.call(n)==Jae}var tie=eie;const nie=He(tie);var rie=va,aie=ga,iie="[object Boolean]";function oie(e){return e===!0||e===!1||aie(e)&&rie(e)==iie}var lie=oie;const sie=He(lie);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 uie(e,t){return hie(e)||die(e,t)||fie(e,t)||cie()}function cie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fie(e,t){if(e){if(typeof e=="string")return C2(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 C2(e,t)}}function C2(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 die(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 hie(e){if(Array.isArray(e))return 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 R2(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){pie(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 pie(e,t,n){return t=yie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yie(e){var t=mie(e,"string");return mc(t)=="symbol"?t:t+""}function mie(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 P2=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},vie={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},gie=function(t){var n=R2(R2({},vie),t),r=j.useRef(),a=j.useState(-1),i=uie(a,2),o=i[0],l=i[1];j.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var g=r.current.getTotalLength();g&&l(g)}catch{}},[]);var s=n.x,u=n.y,d=n.upperWidth,f=n.lowerWidth,h=n.height,p=n.className,b=n.animationEasing,v=n.animationDuration,x=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 m=ve("recharts-trapezoid",p);return y?M.createElement(ya,{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:v,animationEasing:b,isActive:y},function(g){var S=g.upperWidth,w=g.lowerWidth,O=g.height,A=g.x,E=g.y;return M.createElement(ya,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:v,easing:b},M.createElement("path",Th({},oe(n,!0),{className:m,d:P2(A,E,S,w,O),ref:r})))}):M.createElement("g",null,M.createElement("path",Th({},oe(n,!0),{className:m,d:P2(s,u,d,f,h)})))},bie=["option","shapeType","propTransformer","activeClassName","isActive"];function vc(e){"@babel/helpers - typeof";return vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vc(e)}function xie(e,t){if(e==null)return{};var n=Sie(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 Sie(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 $2(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 Nh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$2(Object(n),!0).forEach(function(r){wie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wie(e,t,n){return t=Oie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oie(e){var t=jie(e,"string");return vc(t)=="symbol"?t:t+""}function jie(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 Aie(e,t){return Nh(Nh({},t),e)}function Eie(e,t){return e==="symbols"}function D2(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return M.createElement(r1,n);case"trapezoid":return M.createElement(gie,n);case"sector":return M.createElement(xR,n);case"symbols":if(Eie(t))return M.createElement(Sx,n);break;default:return null}}function _ie(e){return j.isValidElement(e)?e.props:e}function kR(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?Aie:r,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,l=e.isActive,s=xie(e,bie),u;if(j.isValidElement(t))u=j.cloneElement(t,Nh(Nh({},s),_ie(t)));else if(se(t))u=t(s);else if(nie(t)&&!sie(t)){var d=a(t,s);u=M.createElement(D2,{shapeType:n,elementProps:d})}else{var f=s;u=M.createElement(D2,{shapeType:n,elementProps:f})}return l?M.createElement(De,{className:o},u):u}function ay(e,t){return t!=null&&"trapezoids"in e.props}function iy(e,t){return t!=null&&"sectors"in e.props}function gc(e,t){return t!=null&&"points"in e.props}function Tie(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 Nie(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Cie(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function Mie(e,t){var n;return ay(e,t)?n=Tie:iy(e,t)?n=Nie:gc(e,t)&&(n=Cie),n}function Rie(e,t){var n;return ay(e,t)?n="trapezoids":iy(e,t)?n="sectors":gc(e,t)&&(n="points"),n}function Pie(e,t){if(ay(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(iy(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 gc(e,t)?t.payload:{}}function $ie(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=Rie(n,t),i=Pie(n,t),o=r.filter(function(s,u){var d=Qp(i,s),f=n.props[a].filter(function(b){var v=Mie(n,t);return v(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 ld;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 Xo(){return Xo=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},Xo.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 Ge(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){Yn(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 Die(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L2(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,zR(r.key),r)}}function kie(e,t,n){return t&&L2(e.prototype,t),n&&L2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lie(e,t,n){return t=Ch(t),zie(e,LR()?Reflect.construct(t,n||[],Ch(e).constructor):t.apply(e,n))}function zie(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 Bie(e)}function Bie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LR=function(){return!!e})()}function Ch(e){return Ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ch(e)}function Iie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f0(e,t)}function f0(e,t){return f0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},f0(e,t)}function Yn(e,t,n){return t=zR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zR(e){var t=Uie(e,"string");return Vl(t)=="symbol"?t:t+""}function Uie(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 String(e)}var xa=function(e){function t(n){var r;return Die(this,t),r=Lie(this,t,[n]),Yn(r,"pieRef",null),Yn(r,"sectorRefs",[]),Yn(r,"id",Zc("recharts-pie-")),Yn(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),se(a)&&a()}),Yn(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),se(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return Iie(t,e),kie(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(v,x){var y=(v.startAngle+v.endAngle)/2,m=Ve(v.cx,v.cy,v.outerRadius+p,y),g=Ge(Ge(Ge(Ge({},d),v),{},{stroke:"none"},f),{},{index:x,textAnchor:t.getTextAnchor(m.x,v.cx)},m),S=Ge(Ge(Ge(Ge({},d),v),{},{fill:"none",stroke:v.fill},h),{},{index:x,points:[Ve(v.cx,v.cy,v.outerRadius,y),m]}),w=s;return ge(s)&&ge(u)?w="value":ge(s)&&(w=u),M.createElement(De,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(x)},l&&t.renderLabelLineItem(l,S,"line"),t.renderLabelItem(o,g,Kt(v,w)))});return M.createElement(De,{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=Ge(Ge({},u),{},{stroke:l?u.fill:u.stroke,tabIndex:-1});return M.createElement(De,Xo({ref:function(x){x&&!a.sectorRefs.includes(x)&&a.sectorRefs.push(x)},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)}),M.createElement(kR,Xo({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 M.createElement(ya,{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 v=b.t,x=[],y=i&&i[0],m=y.startAngle;return i.forEach(function(g,S){var w=h&&h[S],O=S>0?Rn(g,"paddingAngle",0):0;if(w){var A=Aa(w.endAngle-w.startAngle,g.endAngle-g.startAngle),E=Ge(Ge({},g),{},{startAngle:m+O,endAngle:m+A(v)+O});x.push(E),m=E.endAngle}else{var _=g.endAngle,N=g.startAngle,D=Aa(0,_-N),P=D(v),I=Ge(Ge({},g),{},{startAngle:m+O,endAngle:m+P+O});x.push(I),m=I.endAngle}}),M.createElement(De,null,r.renderSectorsStatically(x))})}},{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||!Qp(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||!Y(u)||!Y(d)||!Y(f)||!Y(h))return null;var v=ve("recharts-pie",l);return M.createElement(De,{tabIndex:this.props.rootTabIndex,className:v,ref:function(y){r.pieRef=y}},this.renderSectors(),s&&this.renderLabels(o),Mt.renderCallByParent(this.props,null,!1),(!p||b)&&ri.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(M.isValidElement(r))return M.cloneElement(r,a);if(se(r))return r(a);var o=ve("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return M.createElement(Qg,Xo({},a,{key:i,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(r,a,i){if(M.isValidElement(r))return M.cloneElement(r,a);var o=i;if(se(r)&&(o=r(a),M.isValidElement(o)))return o;var l=ve("recharts-pie-label-text",typeof r!="boolean"&&!se(r)?r.className:"");return M.createElement(so,Xo({},a,{alignmentBaseline:"middle",className:l}),o)}}])}(j.PureComponent);ld=xa;Yn(xa,"displayName","Pie");Yn(xa,"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:!Cs.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Yn(xa,"parseDeltaAngle",function(e,t){var n=Jt(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Yn(xa,"getRealPieData",function(e){var t=e.data,n=e.children,r=oe(e,!1),a=Wn(n,Ip);return t&&t.length?t.map(function(i,o){return Ge(Ge(Ge({payload:i},r),i),a&&a[o]&&a[o].props)}):a&&a.length?a.map(function(i){return Ge(Ge({},r),i.props)}):[]});Yn(xa,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,o=mR(a,i),l=r+en(e.cx,a,a/2),s=n+en(e.cy,i,i/2),u=en(e.innerRadius,o,0),d=en(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(xa,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?Ge(Ge({},t.type.defaultProps),t.props):t.props,a=ld.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=ld.parseCoordinateOfPie(r,n),v=ld.parseDeltaAngle(o,l),x=Math.abs(v),y=u;ge(u)&&ge(f)?(ra(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),y="value"):ge(u)&&(ra(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),y=f);var m=a.filter(function(E){return Kt(E,y,0)!==0}).length,g=(x>=360?m:m-1)*s,S=x-m*p-g,w=a.reduce(function(E,_){var N=Kt(_,y,0);return E+(Y(N)?N:0)},0),O;if(w>0){var A;O=a.map(function(E,_){var N=Kt(E,y,0),D=Kt(E,d,_),P=(Y(N)?N:0)/w,I;_?I=A.endAngle+Jt(v)*s*(N!==0?1:0):I=o;var $=I+Jt(v)*((N!==0?p:0)+P*S),k=(I+$)/2,R=(b.innerRadius+b.outerRadius)/2,L=[{name:D,value:N,payload:E,dataKey:y,type:h}],z=Ve(b.cx,b.cy,R,k);return A=Ge(Ge(Ge({percent:P,cornerRadius:i,name:D,tooltipPayload:L,midAngle:k,middleRadius:R,tooltipPosition:z},E),b),{},{value:Kt(E,y),startAngle:I,endAngle:$,payload:E,paddingAngle:Jt(v)*s}),A})}return Ge(Ge({},b),{},{sectors:O,data:a})});var Hie=Math.ceil,qie=Math.max;function Fie(e,t,n,r){for(var a=-1,i=qie(Hie((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++a]=e,e+=n;return o}var Gie=Fie,Kie=iM,z2=1/0,Yie=17976931348623157e292;function Vie(e){if(!e)return e===0?e:0;if(e=Kie(e),e===z2||e===-z2){var t=e<0?-1:1;return t*Yie}return e===e?e:0}var Xie=Vie,Qie=Gie,Wie=Bp,Cm=Xie;function Zie(e){return function(t,n,r){return r&&typeof r!="number"&&Wie(t,n,r)&&(n=r=void 0),t=Cm(t),n===void 0?(n=t,t=0):n=Cm(n),r=r===void 0?t<n?1:-1:Cm(r),Qie(t,n,r,e)}}var Jie=Zie,eoe=Jie,toe=eoe(),noe=toe;const Mh=He(noe);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 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 I2(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){BR(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 BR(e,t,n){return t=roe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function roe(e){var t=aoe(e,"string");return bc(t)=="symbol"?t:t+""}function aoe(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)}var ioe=["Webkit","Moz","O","ms"],ooe=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=ioe.reduce(function(i,o){return I2(I2({},i),{},BR({},o+r,n))},{});return a[t]=n,a};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 Rh(){return Rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rh.apply(this,arguments)}function U2(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 Mm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U2(Object(n),!0).forEach(function(r){bn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function loe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,UR(r.key),r)}}function soe(e,t,n){return t&&H2(e.prototype,t),n&&H2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uoe(e,t,n){return t=Ph(t),coe(e,IR()?Reflect.construct(t,n||[],Ph(e).constructor):t.apply(e,n))}function coe(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 foe(e)}function foe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IR=function(){return!!e})()}function Ph(e){return Ph=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ph(e)}function doe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d0(e,t)}function d0(e,t){return d0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},d0(e,t)}function bn(e,t,n){return t=UR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UR(e){var t=hoe(e,"string");return Xl(t)=="symbol"?t:t+""}function hoe(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 String(e)}var poe=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=Su().domain(Mh(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}},q2=function(t){return t.changedTouches&&!!t.changedTouches.length},Ql=function(e){function t(n){var r;return loe(this,t),r=uoe(this,t,[n]),bn(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),bn(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),bn(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()}),bn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),bn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),bn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),bn(r,"handleSlideDragStart",function(a){var i=q2(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 doe(t,e),soe(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 se(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,v=r.pageX-i;v>0?v=Math.min(v,u+d-f-l,u+d-f-o):v<0&&(v=Math.max(v,u-o,u-l));var x=this.getIndex({startX:o+v,endX:l+v});(x.startIndex!==h||x.endIndex!==p)&&b&&b(x),this.setState({startX:o+v,endX:l+v,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var i=q2(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,v=d.gap,x=d.data,y={startX:this.state.startX,endX:this.state.endX},m=r.pageX-i;m>0?m=Math.min(m,f+h-p-u):m<0&&(m=Math.max(m,f-u)),y[o]=u+m;var g=this.getIndex(y),S=g.startIndex,w=g.endIndex,O=function(){var E=x.length-1;return o==="startX"&&(l>s?S%v===0:w%v===0)||l<s&&w===E||o==="endX"&&(l>s?w%v===0:S%v===0)||l>s&&w===E};this.setState(bn(bn({},o,u+m),"brushMoveStartX",r.pageX),function(){b&&O()&&b(g)})}},{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(bn({},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 M.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?M.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,v=s.startIndex,x=s.endIndex,y=Math.max(r,this.props.x),m=Mm(Mm({},oe(this.props,!1)),{},{x:y,y:u,width:d,height:f}),g=p||"Min value: ".concat((i=b[v])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=b[x])===null||o===void 0?void 0:o.name);return M.createElement(De,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(w){["ArrowLeft","ArrowRight"].includes(w.key)&&(w.preventDefault(),w.stopPropagation(),l.handleTravellerMoveKeyboard(w.key==="ArrowRight"?1:-1,a))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,m))}},{key:"renderSlide",value:function(r,a){var i=this.props,o=i.y,l=i.height,s=i.stroke,u=i.travellerWidth,d=Math.min(r,a)+u,f=Math.max(Math.abs(a-r)-u,0);return M.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 M.createElement(De,{className:"recharts-brush-texts"},M.createElement(so,Rh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-p,y:o+l/2},b),this.getTextOfTick(a)),M.createElement(so,Rh({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,v=h.isTextActive,x=h.isSlideMoving,y=h.isTravellerMoving,m=h.isTravellerFocused;if(!a||!a.length||!Y(l)||!Y(s)||!Y(u)||!Y(d)||u<=0||d<=0)return null;var g=ve("recharts-brush",i),S=M.Children.count(o)===1,w=ooe("userSelect","none");return M.createElement(De,{className:g,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,b),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(b,"endX"),(v||x||y||m||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 M.createElement(M.Fragment,null,M.createElement("rect",{x:a,y:i,width:o,height:l,fill:s,stroke:"none"}),M.createElement("line",{x1:a+1,y1:u,x2:a+o-1,y2:u,fill:"none",stroke:"#fff"}),M.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 M.isValidElement(r)?i=M.cloneElement(r,a):se(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 Mm({prevData:i,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:o},i&&i.length?poe({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);bn(Ql,"displayName","Brush");bn(Ql,"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 yoe=Nx;function moe(e,t){var n;return yoe(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var voe=moe,goe=PC,boe=fi,xoe=voe,Soe=vn,woe=Bp;function Ooe(e,t,n){var r=Soe(e)?goe:xoe;return n&&woe(e,t,n)&&(t=void 0),r(e,boe(t))}var joe=Ooe;const Aoe=He(joe);var Er=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},F2=eM;function Eoe(e,t,n){t=="__proto__"&&F2?F2(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var _oe=Eoe,Toe=_oe,Noe=ZC,Coe=fi;function Moe(e,t){var n={};return t=Coe(t),Noe(e,function(r,a,i){Toe(n,a,t(r,a,i))}),n}var Roe=Moe;const Poe=He(Roe);function $oe(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 Doe=$oe,koe=Nx;function Loe(e,t){var n=!0;return koe(e,function(r,a,i){return n=!!t(r,a,i),n}),n}var zoe=Loe,Boe=Doe,Ioe=zoe,Uoe=fi,Hoe=vn,qoe=Bp;function Foe(e,t,n){var r=Hoe(e)?Boe:Ioe;return n&&qoe(e,t,n)&&(t=void 0),r(e,Uoe(t))}var Goe=Foe;const Koe=He(Goe);var Yoe=["x","y"];function xc(e){"@babel/helpers - typeof";return xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xc(e)}function 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 G2(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 Zs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G2(Object(n),!0).forEach(function(r){Voe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Voe(e,t,n){return t=Xoe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xoe(e){var t=Qoe(e,"string");return xc(t)=="symbol"?t:t+""}function Qoe(e,t){if(xc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Woe(e,t){if(e==null)return{};var n=Zoe(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 Zoe(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 Joe(e,t){var n=e.x,r=e.y,a=Woe(e,Yoe),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 Zs(Zs(Zs(Zs(Zs({},t),a),o?{x:o}:{}),s?{y:s}:{}),{},{height:d,width:h,name:t.name,radius:t.radius})}function K2(e){return M.createElement(kR,h0({shapeType:"rectangle",propTransformer:Joe,activeClassName:"recharts-active-bar"},e))}var ele=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=Y(r)||bU(r);return i?t(r,a):(i||co(),n)}},tle=["value","background"],HR;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 nle(e,t){if(e==null)return{};var n=rle(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 rle(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 $h(){return $h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$h.apply(this,arguments)}function Y2(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 ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y2(Object(n),!0).forEach(function(r){Ga(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ale(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,FR(r.key),r)}}function ile(e,t,n){return t&&V2(e.prototype,t),n&&V2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ole(e,t,n){return t=Dh(t),lle(e,qR()?Reflect.construct(t,n||[],Dh(e).constructor):t.apply(e,n))}function lle(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 sle(e)}function sle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qR=function(){return!!e})()}function Dh(e){return Dh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dh(e)}function ule(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 Ga(e,t,n){return t=FR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FR(e){var t=cle(e,"string");return Wl(t)=="symbol"?t:t+""}function cle(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 wo=function(e){function t(){var n;ale(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=ole(this,t,[].concat(a)),Ga(n,"state",{isAnimationFinished:!1}),Ga(n,"id",Zc("recharts-bar-")),Ga(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),o&&o()}),Ga(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),o&&o()}),n}return ule(t,e),ile(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,v=ht(ht(ht({},d),f),{},{isActive:p,option:b,index:h,dataKey:l,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return M.createElement(De,$h({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)}),M.createElement(K2,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,i=a.data,o=a.layout,l=a.isAnimationActive,s=a.animationBegin,u=a.animationDuration,d=a.animationEasing,f=a.animationId,h=this.state.prevData;return M.createElement(ya,{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,v=i.map(function(x,y){var m=h&&h[y];if(m){var g=Aa(m.x,x.x),S=Aa(m.y,x.y),w=Aa(m.width,x.width),O=Aa(m.height,x.height);return ht(ht({},x),{},{x:g(b),y:S(b),width:w(b),height:O(b)})}if(o==="horizontal"){var A=Aa(0,x.height),E=A(b);return ht(ht({},x),{},{y:x.y+x.height-E,height:E})}var _=Aa(0,x.width),N=_(b);return ht(ht({},x),{},{width:N})});return M.createElement(De,null,r.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,i=r.isAnimationActive,o=this.state.prevData;return i&&a&&a.length&&(!o||!Qp(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=nle(u,tle);if(!f)return null;var p=ht(ht(ht(ht(ht({},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 M.createElement(K2,$h({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=Wn(d,Jp);if(!f)return null;var h=u==="vertical"?o[0].height/2:o[0].width/2,p=function(x,y){var m=Array.isArray(x.value)?x.value[1]:x.value;return{x:x.x,y:x.y,value:m,errorVal:Kt(x,y)}},b={clipPath:r?"url(#clipPath-".concat(a,")"):null};return M.createElement(De,b,f.map(function(v){return M.cloneElement(v,{key:"error-bar-".concat(a,"-").concat(v.props.dataKey),data:o,xAxis:l,yAxis:s,layout:u,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,i=r.data,o=r.className,l=r.xAxis,s=r.yAxis,u=r.left,d=r.top,f=r.width,h=r.height,p=r.isAnimationActive,b=r.background,v=r.id;if(a||!i||!i.length)return null;var x=this.state.isAnimationFinished,y=ve("recharts-bar",o),m=l&&l.allowDataOverflow,g=s&&s.allowDataOverflow,S=m||g,w=ge(v)?this.id:v;return M.createElement(De,{className:y},m||g?M.createElement("defs",null,M.createElement("clipPath",{id:"clipPath-".concat(w)},M.createElement("rect",{x:m?u:u-f/2,y:g?d:d-h/2,width:m?f:f*2,height:g?h:h*2}))):null,M.createElement(De,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(w,")"):null},b?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,w),(!p||x)&&ri.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);HR=wo;Ga(wo,"displayName","Bar");Ga(wo,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Cs.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ga(wo,"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=zee(r,n);if(!p)return null;var b=t.layout,v=n.type.defaultProps,x=v!==void 0?ht(ht({},v),n.props):n.props,y=x.dataKey,m=x.children,g=x.minPointSize,S=b==="horizontal"?o:i,w=u?S.scale.domain():null,O=Gee({numericAxis:S}),A=Wn(m,Ip),E=f.map(function(_,N){var D,P,I,$,k,R;u?D=Bee(u[d+N],w):(D=Kt(_,y),Array.isArray(D)||(D=[O,D]));var L=ele(g,HR.defaultProps.minPointSize)(D[1],N);if(b==="horizontal"){var z,q=[o.scale(D[0]),o.scale(D[1])],G=q[0],Q=q[1];P=Ij({axis:i,ticks:l,bandSize:a,offset:p.offset,entry:_,index:N}),I=(z=Q??G)!==null&&z!==void 0?z:void 0,$=p.size;var K=G-Q;if(k=Number.isNaN(K)?0:K,R={x:P,y:o.y,width:$,height:o.height},Math.abs(L)>0&&Math.abs(k)<Math.abs(L)){var te=Jt(k||L)*(Math.abs(L)-Math.abs(k));I-=te,k+=te}}else{var ye=[i.scale(D[0]),i.scale(D[1])],Le=ye[0],ce=ye[1];if(P=Le,I=Ij({axis:o,ticks:s,bandSize:a,offset:p.offset,entry:_,index:N}),$=ce-Le,k=p.size,R={x:i.x,y:I,width:i.width,height:k},Math.abs(L)>0&&Math.abs($)<Math.abs(L)){var $t=Jt($||L)*(Math.abs(L)-Math.abs($));$+=$t}}return ht(ht(ht({},_),{},{x:P,y:I,width:$,height:k,value:u?D:D[1],payload:_,background:R},A&&A[N]&&A[N].props),{},{tooltipPayload:[pR(n,_)],tooltipPosition:{x:P+$/2,y:I+k/2}})});return ht({data:E,layout:b},h)});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 fle(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,GR(r.key),r)}}function dle(e,t,n){return t&&X2(e.prototype,t),n&&X2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q2(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 ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q2(Object(n),!0).forEach(function(r){oy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oy(e,t,n){return t=GR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GR(e){var t=hle(e,"string");return Sc(t)=="symbol"?t:t+""}function hle(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 ple=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=!!Sn(u,wo);return d.reduce(function(p,b){var v=n[b],x=v.orientation,y=v.domain,m=v.padding,g=m===void 0?{}:m,S=v.mirror,w=v.reversed,O="".concat(x).concat(S?"Mirror":""),A,E,_,N,D;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var P=y[1]-y[0],I=1/0,$=v.categoricalDomain.sort(wU);if($.forEach(function(ye,Le){Le>0&&(I=Math.min((ye||0)-($[Le-1]||0),I))}),Number.isFinite(I)){var k=I/P,R=v.layout==="vertical"?r.height:r.width;if(v.padding==="gap"&&(A=k*R/2),v.padding==="no-gap"){var L=en(t.barCategoryGap,k*R),z=k*R/2;A=z-L-(z-L)/R*L}}}a==="xAxis"?E=[r.left+(g.left||0)+(A||0),r.left+r.width-(g.right||0)-(A||0)]:a==="yAxis"?E=s==="horizontal"?[r.top+r.height-(g.bottom||0),r.top+(g.top||0)]:[r.top+(g.top||0)+(A||0),r.top+r.height-(g.bottom||0)-(A||0)]:E=v.range,w&&(E=[E[1],E[0]]);var q=cR(v,i,h),G=q.scale,Q=q.realScaleType;G.domain(y).range(E),fR(G);var K=dR(G,ur(ur({},v),{},{realScaleType:Q}));a==="xAxis"?(D=x==="top"&&!S||x==="bottom"&&S,_=r.left,N=f[O]-D*v.height):a==="yAxis"&&(D=x==="left"&&!S||x==="right"&&S,_=f[O]-D*v.width,N=r.top);var te=ur(ur(ur({},v),K),{},{realScaleType:Q,x:_,y:N,scale:G,width:a==="xAxis"?r.width:v.width,height:a==="yAxis"?r.height:v.height});return te.bandSize=gh(te,K),!v.hide&&a==="xAxis"?f[O]+=(D?-1:1)*te.height:v.hide||(f[O]+=(D?-1:1)*te.width),ur(ur({},p),{},oy({},b,te))},{})},KR=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)}},yle=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return KR({x:n,y:r},{x:a,y:i})},YR=function(){function e(t){fle(this,e),this.scale=t}return dle(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)}}])}();oy(YR,"EPS",1e-4);var i1=function(t){var n=Object.keys(t).reduce(function(r,a){return ur(ur({},r),{},oy({},a,YR.create(t[a])))},{});return ur(ur({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,l=i.position;return Poe(a,function(s,u){return n[u].apply(s,{bandAware:o,position:l})})},isInRange:function(a){return Koe(a,function(i,o){return n[o].isInRange(i)})}})};function mle(e){return(e%180+180)%180}var vle=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=mle(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)},gle=AI(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("")}),VR=j.createContext(void 0),XR=j.createContext(void 0),QR=j.createContext(void 0),ble=j.createContext({}),WR=j.createContext(void 0),ZR=j.createContext(0),JR=j.createContext(0),W2=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=gle(i);return M.createElement(VR.Provider,{value:r},M.createElement(XR.Provider,{value:a},M.createElement(ble.Provider,{value:i},M.createElement(QR.Provider,{value:d},M.createElement(WR.Provider,{value:o},M.createElement(ZR.Provider,{value:u},M.createElement(JR.Provider,{value:s},l)))))))},xle=function(){return j.useContext(WR)},eP=function(t){var n=j.useContext(VR);n==null&&co();var r=n[t];return r==null&&co(),r},tP=function(t){var n=j.useContext(XR);n==null&&co();var r=n[t];return r==null&&co(),r},Sle=function(){var t=j.useContext(QR);return t},nP=function(){return j.useContext(JR)},rP=function(){return j.useContext(ZR)};function Zl(e){"@babel/helpers - typeof";return Zl=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},Zl(e)}function wle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ole(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,iP(r.key),r)}}function jle(e,t,n){return t&&Ole(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ale(e,t,n){return t=kh(t),Ele(e,aP()?Reflect.construct(t,n||[],kh(e).constructor):t.apply(e,n))}function Ele(e,t){if(t&&(Zl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _le(e)}function _le(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aP=function(){return!!e})()}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kh(e)}function Tle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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 Z2(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 J2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z2(Object(n),!0).forEach(function(r){o1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function o1(e,t,n){return t=iP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iP(e){var t=Nle(e,"string");return Zl(t)=="symbol"?t:t+""}function Nle(e,t){if(Zl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Cle(e,t){return $le(e)||Ple(e,t)||Rle(e,t)||Mle()}function Mle(){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 Rle(e,t){if(e){if(typeof e=="string")return eA(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 eA(e,t)}}function eA(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 Ple(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 $le(e){if(Array.isArray(e))return e}function m0(){return m0=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},m0.apply(this,arguments)}var Dle=function(t,n){var r;return M.isValidElement(t)?r=M.cloneElement(t,n):se(t)?r=t(n):r=M.createElement("line",m0({},n,{className:"recharts-reference-line-line"})),r},kle=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,v=t.y.apply(b,{position:o});if(Er(u,"discard")&&!t.y.isInRange(v))return null;var x=[{x:d+h,y:v},{x:d,y:v}];return s==="left"?x.reverse():x}if(n){var y=u.x,m=t.x.apply(y,{position:o});if(Er(u,"discard")&&!t.x.isInRange(m))return null;var g=[{x:m,y:f+p},{x:m,y:f}];return l==="top"?g.reverse():g}if(a){var S=u.segment,w=S.map(function(O){return t.apply(O,{position:o})});return Er(u,"discard")&&Aoe(w,function(O){return!t.isInRange(O)})?null:w}return null};function Lle(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=xle(),d=eP(a),f=tP(i),h=Sle();if(!u||!h)return null;ra(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=i1({x:d.scale,y:f.scale}),b=jt(t),v=jt(n),x=r&&r.length===2,y=kle(p,b,v,x,h,e.position,d.orientation,f.orientation,e);if(!y)return null;var m=Cle(y,2),g=m[0],S=g.x,w=g.y,O=m[1],A=O.x,E=O.y,_=Er(e,"hidden")?"url(#".concat(u,")"):void 0,N=J2(J2({clipPath:_},oe(e,!0)),{},{x1:S,y1:w,x2:A,y2:E});return M.createElement(De,{className:ve("recharts-reference-line",l)},Dle(o,N),Mt.renderCallByParent(e,yle({x1:S,y1:w,x2:A,y2:E})))}var l1=function(e){function t(){return wle(this,t),Ale(this,t,arguments)}return Tle(t,e),jle(t,[{key:"render",value:function(){return M.createElement(Lle,this.props)}}])}(M.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 v0(){return v0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v0.apply(this,arguments)}function 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 tA(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 nA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tA(Object(n),!0).forEach(function(r){ly(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ble(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,lP(r.key),r)}}function Ile(e,t,n){return t&&Ble(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ule(e,t,n){return t=Lh(t),Hle(e,oP()?Reflect.construct(t,n||[],Lh(e).constructor):t.apply(e,n))}function Hle(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 qle(e)}function qle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oP=function(){return!!e})()}function Lh(e){return Lh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lh(e)}function Fle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g0(e,t)}function g0(e,t){return g0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},g0(e,t)}function ly(e,t,n){return t=lP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lP(e){var t=Gle(e,"string");return Jl(t)=="symbol"?t:t+""}function Gle(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 Kle=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 Er(t,"discard")&&!o.isInRange(l)?null:l},sy=function(e){function t(){return zle(this,t),Ule(this,t,arguments)}return Fle(t,e),Ile(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=jt(a),d=jt(i);if(ra(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!d)return null;var f=Kle(this.props);if(!f)return null;var h=f.x,p=f.y,b=this.props,v=b.shape,x=b.className,y=Er(this.props,"hidden")?"url(#".concat(s,")"):void 0,m=nA(nA({clipPath:y},oe(this.props,!0)),{},{cx:h,cy:p});return M.createElement(De,{className:ve("recharts-reference-dot",x)},t.renderDot(v,m),Mt.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])}(M.Component);ly(sy,"displayName","ReferenceDot");ly(sy,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});ly(sy,"renderDot",function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):se(e)?n=e(t):n=M.createElement(a1,v0({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function b0(){return b0=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},b0.apply(this,arguments)}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 rA(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 aA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rA(Object(n),!0).forEach(function(r){uy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uP(r.key),r)}}function Xle(e,t,n){return t&&Vle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qle(e,t,n){return t=zh(t),Wle(e,sP()?Reflect.construct(t,n||[],zh(e).constructor):t.apply(e,n))}function Wle(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 Zle(e)}function Zle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sP=function(){return!!e})()}function zh(e){return zh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zh(e)}function Jle(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 uy(e,t,n){return t=uP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uP(e){var t=ese(e,"string");return es(t)=="symbol"?t:t+""}function ese(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)}var tse=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 Er(i,"discard")&&(!h.isInRange(p)||!h.isInRange(b))?null:KR(p,b)},cy=function(e){function t(){return Yle(this,t),Qle(this,t,arguments)}return Jle(t,e),Xle(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;ra(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=jt(a),h=jt(i),p=jt(o),b=jt(l),v=this.props.shape;if(!f&&!h&&!p&&!b&&!v)return null;var x=tse(f,h,p,b,this.props);if(!x&&!v)return null;var y=Er(this.props,"hidden")?"url(#".concat(d,")"):void 0;return M.createElement(De,{className:ve("recharts-reference-area",s)},t.renderRect(v,aA(aA({clipPath:y},oe(this.props,!0)),x)),Mt.renderCallByParent(this.props,x))}}])}(M.Component);uy(cy,"displayName","ReferenceArea");uy(cy,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});uy(cy,"renderRect",function(e,t){var n;return M.isValidElement(e)?n=M.cloneElement(e,t):se(e)?n=e(t):n=M.createElement(r1,b0({},t,{className:"recharts-reference-area-rect"})),n});function cP(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 nse(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return vle(r,n)}function rse(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 Bh(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 ase(e,t){return cP(e,t+1)}function ise(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:cP(r,u)};var v=s,x,y=function(){return x===void 0&&(x=n(b,v)),x},m=b.coordinate,g=s===0||Bh(e,m,y,d,l);g||(s=0,d=o,u+=1),g&&(d=m+e*(y()/2+a),s+=u)},h;u<=i.length;)if(h=f(),h)return h.v;return[]}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 iA(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?iA(Object(n),!0).forEach(function(r){ose(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ose(e,t,n){return t=lse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lse(e){var t=sse(e,"string");return wc(t)=="symbol"?t:t+""}function sse(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 use(e,t,n,r,a){for(var i=(r||[]).slice(),o=i.length,l=t.start,s=t.end,u=function(h){var p=i[h],b,v=function(){return b===void 0&&(b=n(p,h)),b};if(h===o-1){var x=e*(p.coordinate+e*v()/2-s);i[h]=p=Gt(Gt({},p),{},{tickCoord:x>0?p.coordinate-x*e:p.coordinate})}else i[h]=p=Gt(Gt({},p),{},{tickCoord:p.coordinate});var y=Bh(e,p.tickCoord,v,l,s);y&&(s=p.tickCoord-e*(v()/2+a),i[h]=Gt(Gt({},p),{},{isShow:!0}))},d=o-1;d>=0;d--)u(d);return i}function cse(e,t,n,r,a,i){var o=(r||[]).slice(),l=o.length,s=t.start,u=t.end;if(i){var 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=Bh(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,v=function(m){var g=o[m],S,w=function(){return S===void 0&&(S=n(g,m)),S};if(m===0){var O=e*(g.coordinate-e*w()/2-s);o[m]=g=Gt(Gt({},g),{},{tickCoord:O<0?g.coordinate-O*e:g.coordinate})}else o[m]=g=Gt(Gt({},g),{},{tickCoord:g.coordinate});var A=Bh(e,g.tickCoord,w,s,u);A&&(s=g.tickCoord+e*(w()/2+a),o[m]=Gt(Gt({},g),{},{isShow:!0}))},x=0;x<b;x++)v(x);return o}function fse(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(Y(s)||Cs.isSsr)return ase(a,typeof s=="number"&&Y(s)?s:0);var h=[],p=l==="top"||l==="bottom"?"width":"height",b=d&&p==="width"?xu(d,{fontSize:t,letterSpacing:n}):{width:0,height:0},v=function(g,S){var w=se(u)?u(g.value,S):g.value;return p==="width"?nse(xu(w,{fontSize:t,letterSpacing:n}),b,f):xu(w,{fontSize:t,letterSpacing:n})[p]},x=a.length>=2?Jt(a[1].coordinate-a[0].coordinate):1,y=rse(i,x,p);return s==="equidistantPreserveStart"?ise(x,y,v,a,o):(s==="preserveStart"||s==="preserveStartEnd"?h=cse(x,y,v,a,o,s==="preserveStartEnd"):h=use(x,y,v,a,o),h.filter(function(m){return m.isShow}))}var dse=["viewBox"],hse=["viewBox"],pse=["ticks"];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 Qo(){return Qo=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},Qo.apply(this,arguments)}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 xt(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){s1(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 Rm(e,t){if(e==null)return{};var n=yse(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 yse(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 mse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dP(r.key),r)}}function vse(e,t,n){return t&&lA(e.prototype,t),n&&lA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gse(e,t,n){return t=Ih(t),bse(e,fP()?Reflect.construct(t,n||[],Ih(e).constructor):t.apply(e,n))}function bse(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 xse(e)}function xse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fP=function(){return!!e})()}function Ih(e){return Ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ih(e)}function Sse(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 s1(e,t,n){return t=dP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dP(e){var t=wse(e,"string");return ts(t)=="symbol"?t:t+""}function wse(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 fy=function(e){function t(n){var r;return mse(this,t),r=gse(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Sse(t,e),vse(t,[{key:"shouldComponentUpdate",value:function(r,a){var i=r.viewBox,o=Rm(r,dse),l=this.props,s=l.viewBox,u=Rm(l,hse);return!ol(i,s)||!ol(o,u)||!ol(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,v,x,y,m,g=f?-1:1,S=r.tickSize||d,w=Y(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":p=b=r.coordinate,x=o+ +!f*s,v=x-g*S,m=v-g*h,y=w;break;case"left":v=x=r.coordinate,b=i+ +!f*l,p=b-g*S,y=p-g*h,m=w;break;case"right":v=x=r.coordinate,b=i+ +f*l,p=b+g*S,y=p+g*h,m=w;break;default:p=b=r.coordinate,x=o+ +f*s,v=x+g*S,m=v+g*h,y=w;break}return{line:{x1:p,y1:v,x2:b,y2:x},tick:{x:y,y:m}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,o;switch(a){case"left":o=i?"start":"end";break;case"right":o=i?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,o="end";switch(a){case"left":case"right":o="middle";break;case"top":o=i?"start":"end";break;default:o=i?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,i=r.y,o=r.width,l=r.height,s=r.orientation,u=r.mirror,d=r.axisLine,f=xt(xt(xt({},oe(this.props,!1)),oe(d,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var h=+(s==="top"&&!u||s==="bottom"&&u);f=xt(xt({},f),{},{x1:a,y1:i+h*l,x2:a+o,y2:i+h*l})}else{var p=+(s==="left"&&!u||s==="right"&&u);f=xt(xt({},f),{},{x1:a+p*o,y1:i,x2:a+p*o,y2:i+l})}return M.createElement("line",Qo({},f,{className:ve("recharts-cartesian-axis-line",Rn(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=fse(xt(xt({},this.props),{},{ticks:r}),a,i),b=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),x=oe(this.props,!1),y=oe(d,!1),m=xt(xt({},x),{},{fill:"none"},oe(s,!1)),g=p.map(function(S,w){var O=o.getTickLineCoord(S),A=O.line,E=O.tick,_=xt(xt(xt(xt({textAnchor:b,verticalAnchor:v},x),{},{stroke:"none",fill:u},y),E),{},{index:w,payload:S,visibleTicksCount:p.length,tickFormatter:f});return M.createElement(De,Qo({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},lo(o.props,S,w)),s&&M.createElement("line",Qo({},m,A,{className:ve("recharts-cartesian-axis-tick-line",Rn(s,"className"))})),d&&t.renderTickItem(d,_,"".concat(se(f)?f(S.value,w):S.value).concat(h||"")))});return M.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{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=Rm(f,pse),b=h;return se(s)&&(b=h&&h.length>0?s(this.props):s(p)),o<=0||l<=0||!b||!b.length?null:M.createElement(De,{className:ve("recharts-cartesian-axis",u),ref:function(x){r.layerReference=x}},i&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),Mt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,i){var o,l=ve(a.className,"recharts-cartesian-axis-tick-value");return M.isValidElement(r)?o=M.cloneElement(r,xt(xt({},a),{},{className:l})):se(r)?o=r(xt(xt({},a),{},{className:l})):o=M.createElement(so,Qo({},a,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])}(j.Component);s1(fy,"displayName","CartesianAxis");s1(fy,"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 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 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,yP(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=Uh(t),_se(e,hP()?Reflect.construct(t,n||[],Uh(e).constructor):t.apply(e,n))}function _se(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 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 hP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hP=function(){return!!e})()}function Uh(e){return Uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uh(e)}function Nse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w0(e,t)}function w0(e,t){return w0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},w0(e,t)}function pP(e,t,n){return t=yP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yP(e){var t=Cse(e,"string");return ns(t)=="symbol"?t:t+""}function Cse(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)}function O0(){return O0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O0.apply(this,arguments)}function Mse(e){var t=e.xAxisId,n=nP(),r=rP(),a=eP(t);return a==null?null:j.createElement(fy,O0({},a,{className:ve("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 dy=function(e){function t(){return Ose(this,t),Ese(this,t,arguments)}return Nse(t,e),Ase(t,[{key:"render",value:function(){return j.createElement(Mse,this.props)}}])}(j.Component);pP(dy,"displayName","XAxis");pP(dy,"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 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 Rse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gP(r.key),r)}}function $se(e,t,n){return t&&Pse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dse(e,t,n){return t=Hh(t),kse(e,mP()?Reflect.construct(t,n||[],Hh(e).constructor):t.apply(e,n))}function kse(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 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 mP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mP=function(){return!!e})()}function Hh(e){return Hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hh(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&&j0(e,t)}function j0(e,t){return j0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},j0(e,t)}function vP(e,t,n){return t=gP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gP(e){var t=Bse(e,"string");return rs(t)=="symbol"?t:t+""}function Bse(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)}function A0(){return A0=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},A0.apply(this,arguments)}var Ise=function(t){var n=t.yAxisId,r=nP(),a=rP(),i=tP(n);return i==null?null:j.createElement(fy,A0({},i,{className:ve("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)}}))},hy=function(e){function t(){return Rse(this,t),Dse(this,t,arguments)}return zse(t,e),$se(t,[{key:"render",value:function(){return j.createElement(Ise,this.props)}}])}(j.Component);vP(hy,"displayName","YAxis");vP(hy,"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 sA(e){return Fse(e)||qse(e)||Hse(e)||Use()}function Use(){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 Hse(e,t){if(e){if(typeof e=="string")return E0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E0(e,t)}}function qse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fse(e){if(Array.isArray(e))return E0(e)}function E0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _0=function(t,n,r,a,i){var o=Wn(t,l1),l=Wn(t,sy),s=[].concat(sA(o),sA(l)),u=Wn(t,cy),d="".concat(a,"Id"),f=a[0],h=n;if(s.length&&(h=s.reduce(function(v,x){if(x.props[d]===r&&Er(x.props,"extendDomain")&&Y(x.props[f])){var y=x.props[f];return[Math.min(v[0],y),Math.max(v[1],y)]}return v},h)),u.length){var p="".concat(f,"1"),b="".concat(f,"2");h=u.reduce(function(v,x){if(x.props[d]===r&&Er(x.props,"extendDomain")&&Y(x.props[p])&&Y(x.props[b])){var y=x.props[p],m=x.props[b];return[Math.min(v[0],y,m),Math.max(v[1],y,m)]}return v},h)}return i&&i.length&&(h=i.reduce(function(v,x){return Y(x)?[Math.min(v[0],x),Math.max(v[1],x)]:v},h)),h},bP={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 v=n?n+u:u;if(!this._events[v])return!1;var x=this._events[v],y=arguments.length,m,g;if(x.fn){switch(x.once&&this.removeListener(u,x.fn,void 0,!0),y){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,d),!0;case 3:return x.fn.call(x.context,d,f),!0;case 4:return x.fn.call(x.context,d,f,h),!0;case 5:return x.fn.call(x.context,d,f,h,p),!0;case 6:return x.fn.call(x.context,d,f,h,p,b),!0}for(g=1,m=new Array(y-1);g<y;g++)m[g-1]=arguments[g];x.fn.apply(x.context,m)}else{var S=x.length,w;for(g=0;g<S;g++)switch(x[g].once&&this.removeListener(u,x[g].fn,void 0,!0),y){case 1:x[g].fn.call(x[g].context);break;case 2:x[g].fn.call(x[g].context,d);break;case 3:x[g].fn.call(x[g].context,d,f);break;case 4:x[g].fn.call(x[g].context,d,f,h);break;default:if(!m)for(w=1,m=new Array(y-1);w<y;w++)m[w-1]=arguments[w];x[g].fn.apply(x[g].context,m)}}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 v=0,x=[],y=b.length;v<y;v++)(b[v].fn!==d||h&&!b[v].once||f&&b[v].context!==f)&&x.push(b[v]);x.length?this._events[p]=x.length===1?x[0]:x: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})(bP);var Gse=bP.exports;const Kse=He(Gse);var Pm=new Kse,$m="recharts.syncMouseEvents";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 Yse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xP(r.key),r)}}function Xse(e,t,n){return t&&Vse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dm(e,t,n){return t=xP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xP(e){var t=Qse(e,"string");return Oc(t)=="symbol"?t:t+""}function Qse(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 String(e)}var Wse=function(){function e(){Yse(this,e),Dm(this,"activeIndex",0),Dm(this,"coordinateList",[]),Dm(this,"layout","horizontal")}return Xse(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 Zse(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&&Y(r)&&Y(a))return!0}return!1}function Jse(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 SP(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,o=Ve(t,n,r,a),l=Ve(t,n,r,i);return{points:[o,l],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function eue(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=Ve(l,s,u,f),p=Ve(l,s,d,f);r=h.x,a=h.y,i=p.x,o=p.y}else return SP(t);return[{x:r,y:a},{x:i,y:o}]}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 uA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function zf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uA(Object(n),!0).forEach(function(r){tue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tue(e,t,n){return t=nue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nue(e){var t=rue(e,"string");return jc(t)=="symbol"?t:t+""}function rue(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 aue(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,v=Qg;if(h==="ScatterChart")b=o,v=dae;else if(h==="BarChart")b=Jse(f,o,s,d),v=r1;else if(f==="radial"){var x=SP(o),y=x.cx,m=x.cy,g=x.radius,S=x.startAngle,w=x.endAngle;b={cx:y,cy:m,startAngle:S,endAngle:w,innerRadius:g,outerRadius:g},v=xR}else b={points:eue(f,o,s)},v=Qg;var O=zf(zf(zf(zf({stroke:"#ccc",pointerEvents:"none"},s),b),oe(p,!1)),{},{payload:l,payloadIndex:u,className:ve("recharts-tooltip-cursor",p.className)});return j.isValidElement(p)?j.cloneElement(p,O):j.createElement(v,O)}var iue=["item"],oue=["children","className","width","height","style","compact","title","desc"];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 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 cA(e,t){return uue(e)||sue(e,t)||OP(e,t)||lue()}function lue(){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 sue(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 uue(e){if(Array.isArray(e))return e}function fA(e,t){if(e==null)return{};var n=cue(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function fue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function due(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 hue(e,t,n){return t&&due(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pue(e,t,n){return t=qh(t),yue(e,wP()?Reflect.construct(t,n||[],qh(e).constructor):t.apply(e,n))}function yue(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 mue(e)}function mue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wP=function(){return!!e})()}function qh(e){return qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qh(e)}function vue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T0(e,t)}function T0(e,t){return T0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},T0(e,t)}function is(e){return xue(e)||bue(e)||OP(e)||gue()}function gue(){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 OP(e,t){if(e){if(typeof e=="string")return N0(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 N0(e,t)}}function bue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xue(e){if(Array.isArray(e))return N0(e)}function N0(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 dA(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 B(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dA(Object(n),!0).forEach(function(r){ae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ae(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=Sue(e,"string");return as(t)=="symbol"?t:t+""}function Sue(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(t==="string"?String:Number)(e)}var wue={xAxis:["bottom","top"],yAxis:["left","right"]},Oue={width:"100%",height:"100%"},AP={x:0,y:0};function Bf(e){return e}var jue=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Aue=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 B(B(B({},a),Ve(a.cx,a.cy,l,o)),{},{angle:o,radius:l})}var s=i.coordinate,u=a.angle;return B(B(B({},a),Ve(a.cx,a.cy,s,u)),{},{angle:u,radius:s})}return AP},py=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(is(l),is(u)):l},[]);return o.length>0?o:t&&t.length&&Y(a)&&Y(i)?t.slice(a,i+1):[]};function EP(e){return e==="number"?[0,"auto"]:void 0}var C0=function(t,n,r,a){var i=t.graphicalItems,o=t.tooltipAxis,l=py(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=ag(p,o.dataKey,a)}else h=f&&f[r]||l[r];return h?[].concat(is(s),[pR(u,h)]):s},[])},hA=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},o=jue(i,r),l=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,d=Ree(o,l,u,s);if(d>=0&&u){var f=u[d]&&u[d].value,h=C0(t,n,d,f),p=Aue(r,l,d,i);return{activeTooltipIndex:d,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},Eue=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=uR(d,i);return r.reduce(function(b,v){var x,y=v.type.defaultProps!==void 0?B(B({},v.type.defaultProps),v.props):v.props,m=y.type,g=y.dataKey,S=y.allowDataOverflow,w=y.allowDuplicatedCategory,O=y.scale,A=y.ticks,E=y.includeHidden,_=y[o];if(b[_])return b;var N=py(t.data,{graphicalItems:a.filter(function(K){var te,ye=o in K.props?K.props[o]:(te=K.type.defaultProps)===null||te===void 0?void 0:te[o];return ye===_}),dataStartIndex:s,dataEndIndex:u}),D=N.length,P,I,$;Zse(y.domain,S,m)&&(P=Gg(y.domain,null,S),p&&(m==="number"||O!=="auto")&&($=wu(N,g,"category")));var k=EP(m);if(!P||P.length===0){var R,L=(R=y.domain)!==null&&R!==void 0?R:k;if(g){if(P=wu(N,g,m),m==="category"&&p){var z=SU(P);w&&z?(I=P,P=Mh(0,D)):w||(P=qj(L,P,v).reduce(function(K,te){return K.indexOf(te)>=0?K:[].concat(is(K),[te])},[]))}else if(m==="category")w?P=P.filter(function(K){return K!==""&&!ge(K)}):P=qj(L,P,v).reduce(function(K,te){return K.indexOf(te)>=0||te===""||ge(te)?K:[].concat(is(K),[te])},[]);else if(m==="number"){var q=Lee(N,a.filter(function(K){var te,ye,Le=o in K.props?K.props[o]:(te=K.type.defaultProps)===null||te===void 0?void 0:te[o],ce="hide"in K.props?K.props.hide:(ye=K.type.defaultProps)===null||ye===void 0?void 0:ye.hide;return Le===_&&(E||!ce)}),g,i,d);q&&(P=q)}p&&(m==="number"||O!=="auto")&&($=wu(N,g,"category"))}else p?P=Mh(0,D):l&&l[_]&&l[_].hasStack&&m==="number"?P=h==="expand"?[0,1]:hR(l[_].stackGroups,s,u):P=sR(N,a.filter(function(K){var te=o in K.props?K.props[o]:K.type.defaultProps[o],ye="hide"in K.props?K.props.hide:K.type.defaultProps.hide;return te===_&&(E||!ye)}),m,d,!0);if(m==="number")P=_0(f,P,_,i,A),L&&(P=Gg(L,P,S));else if(m==="category"&&L){var G=L,Q=P.every(function(K){return G.indexOf(K)>=0});Q&&(P=G)}}return B(B({},b),{},ae({},_,B(B({},y),{},{axisType:i,domain:P,categoricalDomain:$,duplicateDomain:I,originalDomain:(x=y.domain)!==null&&x!==void 0?x:k,isCategorical:p,layout:d})))},{})},_ue=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=py(t.data,{graphicalItems:r,dataStartIndex:s,dataEndIndex:u}),p=h.length,b=uR(d,i),v=-1;return r.reduce(function(x,y){var m=y.type.defaultProps!==void 0?B(B({},y.type.defaultProps),y.props):y.props,g=m[o],S=EP("number");if(!x[g]){v++;var w;return b?w=Mh(0,p):l&&l[g]&&l[g].hasStack?(w=hR(l[g].stackGroups,s,u),w=_0(f,w,g,i)):(w=Gg(S,sR(h,r.filter(function(O){var A,E,_=o in O.props?O.props[o]:(A=O.type.defaultProps)===null||A===void 0?void 0:A[o],N="hide"in O.props?O.props.hide:(E=O.type.defaultProps)===null||E===void 0?void 0:E.hide;return _===g&&!N}),"number",d),a.defaultProps.allowDataOverflow),w=_0(f,w,g,i)),B(B({},x),{},ae({},g,B(B({axisType:i},a.defaultProps),{},{hide:!0,orientation:Rn(wue,"".concat(i,".").concat(v%2),null),domain:w,originalDomain:S,isCategorical:b,layout:d})))}return x},{})},Tue=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=Wn(d,i),p={};return h&&h.length?p=Eue(t,{axes:h,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(p=_ue(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u})),p},Nue=function(t){var n=$o(t),r=$i(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:Cx(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:gh(n,r)}},pA=function(t){var n=t.children,r=t.defaultShowTooltip,a=Sn(n,Ql),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}},Cue=function(t){return!t||!t.length?!1:t.some(function(n){var r=na(n&&n.type);return r&&r.indexOf("Bar")>=0})},yA=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"}},Mue=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=Sn(f,Ql),b=Sn(f,ll),v=Object.keys(s).reduce(function(w,O){var A=s[O],E=A.orientation;return!A.mirror&&!A.hide?B(B({},w),{},ae({},E,w[E]+A.width)):w},{left:h.left||0,right:h.right||0}),x=Object.keys(o).reduce(function(w,O){var A=o[O],E=A.orientation;return!A.mirror&&!A.hide?B(B({},w),{},ae({},E,Rn(w,"".concat(E))+A.height)):w},{top:h.top||0,bottom:h.bottom||0}),y=B(B({},x),v),m=y.bottom;p&&(y.bottom+=p.props.height||Ql.defaultProps.height),b&&n&&(y=Dee(y,a,r,n));var g=u-y.left-y.right,S=d-y.top-y.bottom;return B(B({brushBottom:m},y),{},{width:Math.max(g,0),height:Math.max(S,0)})},Rue=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},_P=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,m){var g=m.graphicalItems,S=m.stackGroups,w=m.offset,O=m.updateId,A=m.dataStartIndex,E=m.dataEndIndex,_=y.barSize,N=y.layout,D=y.barGap,P=y.barCategoryGap,I=y.maxBarSize,$=yA(N),k=$.numericAxisName,R=$.cateAxisName,L=Cue(g),z=[];return g.forEach(function(q,G){var Q=py(y.data,{graphicalItems:[q],dataStartIndex:A,dataEndIndex:E}),K=q.type.defaultProps!==void 0?B(B({},q.type.defaultProps),q.props):q.props,te=K.dataKey,ye=K.maxBarSize,Le=K["".concat(k,"Id")],ce=K["".concat(R,"Id")],$t={},bt=s.reduce(function(Pr,gn){var yy=m["".concat(gn.axisType,"Map")],f1=K["".concat(gn.axisType,"Id")];yy&&yy[f1]||gn.axisType==="zAxis"||co();var d1=yy[f1];return B(B({},Pr),{},ae(ae({},gn.axisType,d1),"".concat(gn.axisType,"Ticks"),$i(d1)))},$t),X=bt[R],le=bt["".concat(R,"Ticks")],fe=S&&S[Le]&&S[Le].hasStack&&Kee(q,S[Le].stackGroups),H=na(q.type).indexOf("Bar")>=0,Xe=gh(X,le),be=[],Re=L&&Pee({barSize:_,stackGroups:S,totalSize:Rue(bt,R)});if(H){var J,ze,Dt=ge(ye)?I:ye,an=(J=(ze=gh(X,le,!0))!==null&&ze!==void 0?ze:Dt)!==null&&J!==void 0?J:0;be=$ee({barGap:D,barCategoryGap:P,bandSize:an!==Xe?an:Xe,sizeList:Re[ce],maxBarSize:Dt}),an!==Xe&&(be=be.map(function(Pr){return B(B({},Pr),{},{position:B(B({},Pr.position),{},{offset:Pr.position.offset-an/2})})}))}var mi=q&&q.type&&q.type.getComposedData;mi&&z.push({props:B(B({},mi(B(B({},bt),{},{displayedData:Q,props:y,dataKey:te,item:q,bandSize:Xe,barPosition:be,offset:w,stackedData:fe,layout:N,dataStartIndex:A,dataEndIndex:E}))),{},ae(ae(ae({key:q.key||"item-".concat(G)},k,bt[k]),R,bt[R]),"animationId",O)),childIndex:PU(q,y.children),item:q})}),z},p=function(y,m){var g=y.props,S=y.dataStartIndex,w=y.dataEndIndex,O=y.updateId;if(!kw({props:g}))return null;var A=g.children,E=g.layout,_=g.stackOffset,N=g.data,D=g.reverseStackOrder,P=yA(E),I=P.numericAxisName,$=P.cateAxisName,k=Wn(A,r),R=Fee(N,k,"".concat(I,"Id"),"".concat($,"Id"),_,D),L=s.reduce(function(K,te){var ye="".concat(te.axisType,"Map");return B(B({},K),{},ae({},ye,Tue(g,B(B({},te),{},{graphicalItems:k,stackGroups:te.axisType===I&&R,dataStartIndex:S,dataEndIndex:w}))))},{}),z=Mue(B(B({},L),{},{props:g,graphicalItems:k}),m==null?void 0:m.legendBBox);Object.keys(L).forEach(function(K){L[K]=d(g,L[K],z,K.replace("Map",""),n)});var q=L["".concat($,"Map")],G=Nue(q),Q=h(g,B(B({},L),{},{dataStartIndex:S,dataEndIndex:w,updateId:O,graphicalItems:k,stackGroups:R,offset:z}));return B(B({formattedGraphicalItems:Q,graphicalItems:k,offset:z,stackGroups:R},G),L)},b=function(x){function y(m){var g,S,w;return fue(this,y),w=pue(this,y,[m]),ae(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ae(w,"accessibilityManager",new Wse),ae(w,"handleLegendBBoxUpdate",function(O){if(O){var A=w.state,E=A.dataStartIndex,_=A.dataEndIndex,N=A.updateId;w.setState(B({legendBBox:O},p({props:w.props,dataStartIndex:E,dataEndIndex:_,updateId:N},B(B({},w.state),{},{legendBBox:O}))))}}),ae(w,"handleReceiveSyncEvent",function(O,A,E){if(w.props.syncId===O){if(E===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(A)}}),ae(w,"handleBrushChange",function(O){var A=O.startIndex,E=O.endIndex;if(A!==w.state.dataStartIndex||E!==w.state.dataEndIndex){var _=w.state.updateId;w.setState(function(){return B({dataStartIndex:A,dataEndIndex:E},p({props:w.props,dataStartIndex:A,dataEndIndex:E,updateId:_},w.state))}),w.triggerSyncEvent({dataStartIndex:A,dataEndIndex:E})}}),ae(w,"handleMouseEnter",function(O){var A=w.getMouseInfo(O);if(A){var E=B(B({},A),{},{isTooltipActive:!0});w.setState(E),w.triggerSyncEvent(E);var _=w.props.onMouseEnter;se(_)&&_(E,O)}}),ae(w,"triggeredAfterMouseMove",function(O){var A=w.getMouseInfo(O),E=A?B(B({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(E),w.triggerSyncEvent(E);var _=w.props.onMouseMove;se(_)&&_(E,O)}),ae(w,"handleItemMouseEnter",function(O){w.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),ae(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),ae(w,"handleMouseMove",function(O){O.persist(),w.throttleTriggeredAfterMouseMove(O)}),ae(w,"handleMouseLeave",function(O){w.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};w.setState(A),w.triggerSyncEvent(A);var E=w.props.onMouseLeave;se(E)&&E(A,O)}),ae(w,"handleOuterEvent",function(O){var A=RU(O),E=Rn(w.props,"".concat(A));if(A&&se(E)){var _,N;/.*touch.*/i.test(A)?N=w.getMouseInfo(O.changedTouches[0]):N=w.getMouseInfo(O),E((_=N)!==null&&_!==void 0?_:{},O)}}),ae(w,"handleClick",function(O){var A=w.getMouseInfo(O);if(A){var E=B(B({},A),{},{isTooltipActive:!0});w.setState(E),w.triggerSyncEvent(E);var _=w.props.onClick;se(_)&&_(E,O)}}),ae(w,"handleMouseDown",function(O){var A=w.props.onMouseDown;if(se(A)){var E=w.getMouseInfo(O);A(E,O)}}),ae(w,"handleMouseUp",function(O){var A=w.props.onMouseUp;if(se(A)){var E=w.getMouseInfo(O);A(E,O)}}),ae(w,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),ae(w,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&w.handleMouseDown(O.changedTouches[0])}),ae(w,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&w.handleMouseUp(O.changedTouches[0])}),ae(w,"handleDoubleClick",function(O){var A=w.props.onDoubleClick;if(se(A)){var E=w.getMouseInfo(O);A(E,O)}}),ae(w,"handleContextMenu",function(O){var A=w.props.onContextMenu;if(se(A)){var E=w.getMouseInfo(O);A(E,O)}}),ae(w,"triggerSyncEvent",function(O){w.props.syncId!==void 0&&Pm.emit($m,w.props.syncId,O,w.eventEmitterSymbol)}),ae(w,"applySyncEvent",function(O){var A=w.props,E=A.layout,_=A.syncMethod,N=w.state.updateId,D=O.dataStartIndex,P=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)w.setState(B({dataStartIndex:D,dataEndIndex:P},p({props:w.props,dataStartIndex:D,dataEndIndex:P,updateId:N},w.state)));else if(O.activeTooltipIndex!==void 0){var I=O.chartX,$=O.chartY,k=O.activeTooltipIndex,R=w.state,L=R.offset,z=R.tooltipTicks;if(!L)return;if(typeof _=="function")k=_(z,O);else if(_==="value"){k=-1;for(var q=0;q<z.length;q++)if(z[q].value===O.activeLabel){k=q;break}}var G=B(B({},L),{},{x:L.left,y:L.top}),Q=Math.min(I,G.x+G.width),K=Math.min($,G.y+G.height),te=z[k]&&z[k].value,ye=C0(w.state,w.props.data,k),Le=z[k]?{x:E==="horizontal"?z[k].coordinate:Q,y:E==="horizontal"?K:z[k].coordinate}:AP;w.setState(B(B({},O),{},{activeLabel:te,activeCoordinate:Le,activePayload:ye,activeTooltipIndex:k}))}else w.setState(O)}),ae(w,"renderCursor",function(O){var A,E=w.state,_=E.isTooltipActive,N=E.activeCoordinate,D=E.activePayload,P=E.offset,I=E.activeTooltipIndex,$=E.tooltipAxisBandSize,k=w.getTooltipEventType(),R=(A=O.props.active)!==null&&A!==void 0?A:_,L=w.props.layout,z=O.key||"_recharts-cursor";return M.createElement(aue,{key:z,activeCoordinate:N,activePayload:D,activeTooltipIndex:I,chartName:n,element:O,isActive:R,layout:L,offset:P,tooltipAxisBandSize:$,tooltipEventType:k})}),ae(w,"renderPolarAxis",function(O,A,E){var _=Rn(O,"type.axisType"),N=Rn(w.state,"".concat(_,"Map")),D=O.type.defaultProps,P=D!==void 0?B(B({},D),O.props):O.props,I=N&&N[P["".concat(_,"Id")]];return j.cloneElement(O,B(B({},I),{},{className:ve(_,I.className),key:O.key||"".concat(A,"-").concat(E),ticks:$i(I,!0)}))}),ae(w,"renderPolarGrid",function(O){var A=O.props,E=A.radialLines,_=A.polarAngles,N=A.polarRadius,D=w.state,P=D.radiusAxisMap,I=D.angleAxisMap,$=$o(P),k=$o(I),R=k.cx,L=k.cy,z=k.innerRadius,q=k.outerRadius;return j.cloneElement(O,{polarAngles:Array.isArray(_)?_:$i(k,!0).map(function(G){return G.coordinate}),polarRadius:Array.isArray(N)?N:$i($,!0).map(function(G){return G.coordinate}),cx:R,cy:L,innerRadius:z,outerRadius:q,key:O.key||"polar-grid",radialLines:E})}),ae(w,"renderLegend",function(){var O=w.state.formattedGraphicalItems,A=w.props,E=A.children,_=A.width,N=A.height,D=w.props.margin||{},P=_-(D.left||0)-(D.right||0),I=oR({children:E,formattedGraphicalItems:O,legendWidth:P,legendContent:u});if(!I)return null;var $=I.item,k=fA(I,iue);return j.cloneElement($,B(B({},k),{},{chartWidth:_,chartHeight:N,margin:D,onBBoxUpdate:w.handleLegendBBoxUpdate}))}),ae(w,"renderTooltip",function(){var O,A=w.props,E=A.children,_=A.accessibilityLayer,N=Sn(E,sr);if(!N)return null;var D=w.state,P=D.isTooltipActive,I=D.activeCoordinate,$=D.activePayload,k=D.activeLabel,R=D.offset,L=(O=N.props.active)!==null&&O!==void 0?O:P;return j.cloneElement(N,{viewBox:B(B({},R),{},{x:R.left,y:R.top}),active:L,label:k,payload:L?$:[],coordinate:I,accessibilityLayer:_})}),ae(w,"renderBrush",function(O){var A=w.props,E=A.margin,_=A.data,N=w.state,D=N.offset,P=N.dataStartIndex,I=N.dataEndIndex,$=N.updateId;return j.cloneElement(O,{key:O.key||"_recharts-brush",onChange:$f(w.handleBrushChange,O.props.onChange),data:_,x:Y(O.props.x)?O.props.x:D.left,y:Y(O.props.y)?O.props.y:D.top+D.height+D.brushBottom-(E.bottom||0),width:Y(O.props.width)?O.props.width:D.width,startIndex:P,endIndex:I,updateId:"brush-".concat($)})}),ae(w,"renderReferenceElement",function(O,A,E){if(!O)return null;var _=w,N=_.clipPathId,D=w.state,P=D.xAxisMap,I=D.yAxisMap,$=D.offset,k=O.type.defaultProps||{},R=O.props,L=R.xAxisId,z=L===void 0?k.xAxisId:L,q=R.yAxisId,G=q===void 0?k.yAxisId:q;return j.cloneElement(O,{key:O.key||"".concat(A,"-").concat(E),xAxis:P[z],yAxis:I[G],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:N})}),ae(w,"renderActivePoints",function(O){var A=O.item,E=O.activePoint,_=O.basePoint,N=O.childIndex,D=O.isRange,P=[],I=A.props.key,$=A.item.type.defaultProps!==void 0?B(B({},A.item.type.defaultProps),A.item.props):A.item.props,k=$.activeDot,R=$.dataKey,L=B(B({index:N,dataKey:R,cx:E.x,cy:E.y,r:4,fill:n1(A.item),strokeWidth:2,stroke:"#fff",payload:E.payload,value:E.value},oe(k,!1)),Fd(k));return P.push(y.renderActiveDot(k,L,"".concat(I,"-activePoint-").concat(N))),_?P.push(y.renderActiveDot(k,B(B({},L),{},{cx:_.x,cy:_.y}),"".concat(I,"-basePoint-").concat(N))):D&&P.push(null),P}),ae(w,"renderGraphicChild",function(O,A,E){var _=w.filterFormatItem(O,A,E);if(!_)return null;var N=w.getTooltipEventType(),D=w.state,P=D.isTooltipActive,I=D.tooltipAxis,$=D.activeTooltipIndex,k=D.activeLabel,R=w.props.children,L=Sn(R,sr),z=_.props,q=z.points,G=z.isRange,Q=z.baseLine,K=_.item.type.defaultProps!==void 0?B(B({},_.item.type.defaultProps),_.item.props):_.item.props,te=K.activeDot,ye=K.hide,Le=K.activeBar,ce=K.activeShape,$t=!!(!ye&&P&&L&&(te||Le||ce)),bt={};N!=="axis"&&L&&L.props.trigger==="click"?bt={onClick:$f(w.handleItemMouseEnter,O.props.onClick)}:N!=="axis"&&(bt={onMouseLeave:$f(w.handleItemMouseLeave,O.props.onMouseLeave),onMouseEnter:$f(w.handleItemMouseEnter,O.props.onMouseEnter)});var X=j.cloneElement(O,B(B({},_.props),bt));function le(gn){return typeof I.dataKey=="function"?I.dataKey(gn.payload):null}if($t)if($>=0){var fe,H;if(I.dataKey&&!I.allowDuplicatedCategory){var Xe=typeof I.dataKey=="function"?le:"payload.".concat(I.dataKey.toString());fe=ag(q,Xe,k),H=G&&Q&&ag(Q,Xe,k)}else fe=q==null?void 0:q[$],H=G&&Q&&Q[$];if(ce||Le){var be=O.props.activeIndex!==void 0?O.props.activeIndex:$;return[j.cloneElement(O,B(B(B({},_.props),bt),{},{activeIndex:be})),null,null]}if(!ge(fe))return[X].concat(is(w.renderActivePoints({item:_,activePoint:fe,basePoint:H,childIndex:$,isRange:G})))}else{var Re,J=(Re=w.getItemByXY(w.state.activeCoordinate))!==null&&Re!==void 0?Re:{graphicalItem:X},ze=J.graphicalItem,Dt=ze.item,an=Dt===void 0?O:Dt,mi=ze.childIndex,Pr=B(B(B({},_.props),bt),{},{activeIndex:mi});return[j.cloneElement(an,Pr),null,null]}return G?[X,null,null]:[X,null]}),ae(w,"renderCustomized",function(O,A,E){return j.cloneElement(O,B(B({key:"recharts-customized-".concat(E)},w.props),w.state))}),ae(w,"renderMap",{CartesianGrid:{handler:Bf,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:Bf},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:Bf},YAxis:{handler:Bf},Brush:{handler:w.renderBrush,once:!0},Bar:{handler:w.renderGraphicChild},Line:{handler:w.renderGraphicChild},Area:{handler:w.renderGraphicChild},Radar:{handler:w.renderGraphicChild},RadialBar:{handler:w.renderGraphicChild},Scatter:{handler:w.renderGraphicChild},Pie:{handler:w.renderGraphicChild},Funnel:{handler:w.renderGraphicChild},Tooltip:{handler:w.renderCursor,once:!0},PolarGrid:{handler:w.renderPolarGrid,once:!0},PolarAngleAxis:{handler:w.renderPolarAxis},PolarRadiusAxis:{handler:w.renderPolarAxis},Customized:{handler:w.renderCustomized}}),w.clipPathId="".concat((g=m.id)!==null&&g!==void 0?g:Zc("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=oM(w.triggeredAfterMouseMove,(S=m.throttleDelay)!==null&&S!==void 0?S:1e3/60),w.state={},w}return vue(y,x),hue(y,[{key:"componentDidMount",value:function(){var g,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var g=this.props,S=g.children,w=g.data,O=g.height,A=g.layout,E=Sn(S,sr);if(E){var _=E.props.defaultIndex;if(!(typeof _!="number"||_<0||_>this.state.tooltipTicks.length-1)){var N=this.state.tooltipTicks[_]&&this.state.tooltipTicks[_].value,D=C0(this.state,w,_,N),P=this.state.tooltipTicks[_].coordinate,I=(this.state.offset.top+O)/2,$=A==="horizontal",k=$?{x:P,y:I}:{y:P,x:I},R=this.state.formattedGraphicalItems.find(function(z){var q=z.item;return q.type.name==="Scatter"});R&&(k=B(B({},k),R.props.points[_].tooltipPosition),D=R.props.points[_].tooltipPayload);var L={activeTooltipIndex:_,isTooltipActive:!0,activeLabel:N,activePayload:D,activeCoordinate:k};this.setState(L),this.renderCursor(E),this.accessibilityManager.setIndex(_)}}}},{key:"getSnapshotBeforeUpdate",value:function(g,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==g.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==g.margin){var w,O;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(g){og([Sn(g.children,sr)],[Sn(this.props.children,sr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var g=Sn(this.props.children,sr);if(g&&typeof g.props.shared=="boolean"){var S=g.props.shared?"axis":"item";return l.indexOf(S)>=0?S:i}return i}},{key:"getMouseInfo",value:function(g){if(!this.container)return null;var S=this.container,w=S.getBoundingClientRect(),O=oQ(w),A={chartX:Math.round(g.pageX-O.left),chartY:Math.round(g.pageY-O.top)},E=w.width/S.offsetWidth||1,_=this.inRange(A.chartX,A.chartY,E);if(!_)return null;var N=this.state,D=N.xAxisMap,P=N.yAxisMap,I=this.getTooltipEventType(),$=hA(this.state,this.props.data,this.props.layout,_);if(I!=="axis"&&D&&P){var k=$o(D).scale,R=$o(P).scale,L=k&&k.invert?k.invert(A.chartX):null,z=R&&R.invert?R.invert(A.chartY):null;return B(B({},A),{},{xValue:L,yValue:z},$)}return $?B(B({},A),$):null}},{key:"inRange",value:function(g,S){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,A=g/w,E=S/w;if(O==="horizontal"||O==="vertical"){var _=this.state.offset,N=A>=_.left&&A<=_.left+_.width&&E>=_.top&&E<=_.top+_.height;return N?{x:A,y:E}:null}var D=this.state,P=D.angleAxisMap,I=D.radiusAxisMap;if(P&&I){var $=$o(P);return Kj({x:A,y:E},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var g=this.props.children,S=this.getTooltipEventType(),w=Sn(g,sr),O={};w&&S==="axis"&&(w.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=Fd(this.props,this.handleOuterEvent);return B(B({},A),O)}},{key:"addListener",value:function(){Pm.on($m,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Pm.removeListener($m,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(g,S,w){for(var O=this.state.formattedGraphicalItems,A=0,E=O.length;A<E;A++){var _=O[A];if(_.item===g||_.props.key===g.key||S===na(_.item.type)&&w===_.childIndex)return _}return null}},{key:"renderClipPath",value:function(){var g=this.clipPathId,S=this.state.offset,w=S.left,O=S.top,A=S.height,E=S.width;return M.createElement("defs",null,M.createElement("clipPath",{id:g},M.createElement("rect",{x:w,y:O,height:A,width:E})))}},{key:"getXScales",value:function(){var g=this.state.xAxisMap;return g?Object.entries(g).reduce(function(S,w){var O=cA(w,2),A=O[0],E=O[1];return B(B({},S),{},ae({},A,E.scale))},{}):null}},{key:"getYScales",value:function(){var g=this.state.yAxisMap;return g?Object.entries(g).reduce(function(S,w){var O=cA(w,2),A=O[0],E=O[1];return B(B({},S),{},ae({},A,E.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(g){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[g])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(g){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[g])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(g){var S=this.state,w=S.formattedGraphicalItems,O=S.activeItem;if(w&&w.length)for(var A=0,E=w.length;A<E;A++){var _=w[A],N=_.props,D=_.item,P=D.type.defaultProps!==void 0?B(B({},D.type.defaultProps),D.props):D.props,I=na(D.type);if(I==="Bar"){var $=(N.data||[]).find(function(z){return Kre(g,z)});if($)return{graphicalItem:_,payload:$}}else if(I==="RadialBar"){var k=(N.data||[]).find(function(z){return Kj(g,z)});if(k)return{graphicalItem:_,payload:k}}else if(ay(_,O)||iy(_,O)||gc(_,O)){var R=$ie({graphicalItem:_,activeTooltipItem:O,itemData:P.data}),L=P.activeIndex===void 0?R:P.activeIndex;return{graphicalItem:B(B({},_),{},{childIndex:L}),payload:gc(_,O)?P.data[R]:_.props.data[R]}}}return null}},{key:"render",value:function(){var g=this;if(!kw(this))return null;var S=this.props,w=S.children,O=S.className,A=S.width,E=S.height,_=S.style,N=S.compact,D=S.title,P=S.desc,I=fA(S,oue),$=oe(I,!1);if(N)return M.createElement(W2,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},M.createElement(sg,Wo({},$,{width:A,height:E,title:D,desc:P}),this.renderClipPath(),zw(w,this.renderMap)));if(this.props.accessibilityLayer){var k,R;$.tabIndex=(k=this.props.tabIndex)!==null&&k!==void 0?k:0,$.role=(R=this.props.role)!==null&&R!==void 0?R:"application",$.onKeyDown=function(z){g.accessibilityManager.keyboardEvent(z)},$.onFocus=function(){g.accessibilityManager.focus()}}var L=this.parseEventsOfWrapper();return M.createElement(W2,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},M.createElement("div",Wo({className:ve("recharts-wrapper",O),style:B({position:"relative",cursor:"default",width:A,height:E},_)},L,{ref:function(q){g.container=q}}),M.createElement(sg,Wo({},$,{width:A,height:E,title:D,desc:P,style:Oue}),this.renderClipPath(),zw(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(j.Component);ae(b,"displayName",n),ae(b,"defaultProps",B({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(x,y){var m=x.dataKey,g=x.data,S=x.children,w=x.width,O=x.height,A=x.layout,E=x.stackOffset,_=x.margin,N=y.dataStartIndex,D=y.dataEndIndex;if(y.updateId===void 0){var P=pA(x);return B(B(B({},P),{},{updateId:0},p(B(B({props:x},P),{},{updateId:0}),y)),{},{prevDataKey:m,prevData:g,prevWidth:w,prevHeight:O,prevLayout:A,prevStackOffset:E,prevMargin:_,prevChildren:S})}if(m!==y.prevDataKey||g!==y.prevData||w!==y.prevWidth||O!==y.prevHeight||A!==y.prevLayout||E!==y.prevStackOffset||!ol(_,y.prevMargin)){var I=pA(x),$={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},k=B(B({},hA(y,g,A)),{},{updateId:y.updateId+1}),R=B(B(B({},I),$),k);return B(B(B({},R),p(B({props:x},R),y)),{},{prevDataKey:m,prevData:g,prevWidth:w,prevHeight:O,prevLayout:A,prevStackOffset:E,prevMargin:_,prevChildren:S})}if(!og(S,y.prevChildren)){var L,z,q,G,Q=Sn(S,Ql),K=Q&&(L=(z=Q.props)===null||z===void 0?void 0:z.startIndex)!==null&&L!==void 0?L:N,te=Q&&(q=(G=Q.props)===null||G===void 0?void 0:G.endIndex)!==null&&q!==void 0?q:D,ye=K!==N||te!==D,Le=!ge(g),ce=Le&&!ye?y.updateId:y.updateId+1;return B(B({updateId:ce},p(B(B({props:x},y),{},{updateId:ce,dataStartIndex:K,dataEndIndex:te}),y)),{},{prevChildren:S,dataStartIndex:K,dataEndIndex:te})}return null}),ae(b,"renderActiveDot",function(x,y,m){var g;return j.isValidElement(x)?g=j.cloneElement(x,y):se(x)?g=x(y):g=M.createElement(a1,y),M.createElement(De,{className:"recharts-active-dot",key:m},g)});var v=j.forwardRef(function(y,m){return M.createElement(b,Wo({},y,{ref:m}))});return v.displayName=b.displayName,v},Pue=_P({chartName:"BarChart",GraphicalChild:wo,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:dy},{axisType:"yAxis",AxisComp:hy}],formatAxisMap:ple}),$ue=_P({chartName:"PieChart",GraphicalChild:xa,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:ry},{axisType:"radiusAxis",AxisComp:ty}],formatAxisMap:nte,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function Co({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 mA=["#00a0c8","#3ddc97","#f59e0b","#ef4444"];function Due(){const e=localStorage.getItem("esn_tenant")||void 0,{data:t,isLoading:n}=Vt({queryKey:["dashboard",e],queryFn:()=>k6(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(Co,{title:"전체 매장",value:t.totalStores||0,icon:Zv,color:"brand"}),c.jsx(Co,{title:"운영 매장",value:t.activeStores||0,icon:Zv,color:"green"}),c.jsx(Co,{title:"미해결 알람",value:t.unresolvedAlarms||0,icon:pN,color:"red"}),c.jsx(Co,{title:"긴급 알람",value:t.criticalAlarms||0,icon:Zb,color:"red"}),c.jsx(Co,{title:"온라인 장치",value:t.onlineDevices||0,icon:Wb,color:"green"}),c.jsx(Co,{title:"POS 대기",value:t.pendingPosCvt||0,icon:pp,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(DO,{width:"100%",height:200,children:c.jsxs($ue,{children:[c.jsx(xa,{data:r,cx:"50%",cy:"50%",outerRadius:70,dataKey:"value",label:({name:i,value:o})=>`${i}: ${o}`,children:r.map((i,o)=>c.jsx(Ip,{fill:mA[o%mA.length]},o))}),c.jsx(sr,{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(DO,{width:"100%",height:200,children:c.jsxs(Pue,{data:a,children:[c.jsx(dy,{dataKey:"name",tick:{fill:"#9ca3af",fontSize:11}}),c.jsx(hy,{tick:{fill:"#9ca3af",fontSize:11}}),c.jsx(sr,{contentStyle:{background:"#1a2234",border:"1px solid #26304a",color:"#fff"}}),c.jsx(wo,{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 kue(){const e=rn(),[t,n]=j.useState(null),[r,a]=j.useState(""),{data:i=[],isLoading:o}=Vt({queryKey:["stores",r],queryFn:()=>U6({keyword:r||void 0})}),l=it({mutationFn:u=>u.id?q6(u.id,u):H6(u),onSuccess:()=>{e.invalidateQueries({queryKey:["stores"]}),n(null)}}),s=it({mutationFn:F6,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(gs,{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(Gc,{size:14})}),c.jsx("button",{onClick:()=>{confirm("삭제?")&&s.mutate(u.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(vo,{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(bs,{size:16})})]}),c.jsx(Lue,{initial:t,onSave:u=>l.mutate(u)})]})})]})}function Lue({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:["TENANT_A","TENANT_B","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 zue(){const e=rn(),[t,n]=j.useState(null),{data:r=[],isLoading:a}=Vt({queryKey:["templates"],queryFn:()=>G6()}),i=it({mutationFn:l=>l.id?Y6(l.id,l):K6(l),onSuccess:()=>{e.invalidateQueries({queryKey:["templates"]}),n(null)}}),o=it({mutationFn:V6,onSuccess:()=>e.invalidateQueries({queryKey:["templates"]})});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:"ESL 템플릿"}),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(gs,{size:14})," 템플릿 추가"]})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[r.map(l=>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:l.templateName}),c.jsxs("p",{className:"text-xs text-brand mt-0.5",children:[l.tenantCode," · ",l.templateType]})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:()=>n(l),className:"text-brand hover:text-blue-300",children:c.jsx(Gc,{size:14})}),c.jsx("button",{onClick:()=>{confirm("삭제?")&&o.mutate(l.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(vo,{size:14})})]})]}),c.jsx("div",{className:"bg-panel border border-edge rounded p-3 flex items-center justify-center",style:{height:Math.min((l.height||76)/2+40,120)},children:c.jsxs("div",{className:"text-center",children:[c.jsxs("p",{className:"text-xs text-gray-400",children:[l.width,"×",l.height,"px"]}),c.jsx("p",{className:"text-xs text-gray-500 mt-1",children:l.description})]})}),c.jsxs("p",{className:"text-xs text-gray-500 mt-2",children:["코드: ",l.templateCode]})]},l.id)),r.length===0&&c.jsx("div",{className:"col-span-3 text-center text-gray-500 py-8",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(bs,{size:16})})]}),c.jsx(Bue,{initial:t,onSave:l=>i.mutate(l)})]})})]})}function Bue({initial:e,onSave:t}){const n=!!e.id,[r,a]=j.useState({tenantCode:e.tenantCode||"EMART",templateCode:e.templateCode||"",templateName:e.templateName||"",templateType:e.templateType||"PRICE",width:e.width??250,height:e.height??122,description:e.description||"",layoutJson:e.layoutJson||"",active:e.active!==!1,id:e.id}),i=l=>s=>a(u=>({...u,[l]:s.target.value})),o=l=>{l.preventDefault(),t({...r,width:r.width===""?null:Number(r.width),height:r.height===""?null:Number(r.height),active:r.active===!0||r.active==="true"})};return c.jsxs("form",{onSubmit:o,className:"space-y-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"테넌트"}),c.jsx("select",{value:r.tenantCode,onChange:i("tenantCode"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:["TENANT_A","TENANT_B","EMART","ZIOINFO"].map(l=>c.jsx("option",{value:l,children:l},l))})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"템플릿 코드"}),c.jsx("input",{value:r.templateCode,onChange:i("templateCode"),disabled:n,required:!0,placeholder:"예: EM-PRICE-STD",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white disabled:opacity-50"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"템플릿명"}),c.jsx("input",{value:r.templateName,onChange:i("templateName"),required:!0,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"유형"}),c.jsx("select",{value:r.templateType,onChange:i("templateType"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:["PRICE","INFO","PROMO","CUSTOM"].map(l=>c.jsx("option",{value:l,children:l},l))})]}),c.jsx("div",{className:"grid grid-cols-2 gap-3",children:[{label:"너비(px)",key:"width"},{label:"높이(px)",key:"height"}].map(({label:l,key:s})=>c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:l}),c.jsx("input",{type:"number",value:r[s],onChange:i(s),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]},s))}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"설명"}),c.jsx("input",{value:r.description,onChange:i("description"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"레이아웃 JSON (선택)"}),c.jsx("textarea",{value:r.layoutJson,onChange:i("layoutJson"),rows:2,placeholder:'{"fields":[...]}',className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white font-mono"})]}),c.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"저장"})]})}function Iue(){const e=rn(),[t,n]=j.useState("PENDING"),[r,a]=j.useState(""),{data:i=[],isLoading:o}=Vt({queryKey:["pos-cvt",t,r],queryFn:()=>X6({status:t||void 0,keyword:r||void 0})}),l=it({mutationFn:Q6,onSuccess:()=>e.invalidateQueries({queryKey:["pos-cvt"]})}),s=it({mutationFn:W6,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(Qb,{size:14})}),c.jsx("button",{onClick:()=>s.mutate(u.id),title:"무시",className:"text-gray-400 hover:text-gray-300",children:c.jsx(Jk,{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 Uue({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 Hue(){const e=rn(),[t,n]=j.useState(""),[r,a]=j.useState("OPEN"),{data:i=[],isLoading:o}=Vt({queryKey:["alarms",t,r],queryFn:()=>Z6({severity:t||void 0,status:r||void 0})}),l=it({mutationFn:({id:u,resolution:d})=>J6(u,d),onSuccess:()=>e.invalidateQueries({queryKey:["alarms"]})}),s=it({mutationFn:ez,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(Uue,{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(Qb,{size:14})}),c.jsx("button",{onClick:()=>{confirm("삭제?")&&s.mutate(u.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(vo,{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 que={ONLINE:c.jsx(xN,{size:14,className:"text-green-400"}),OFFLINE:c.jsx(bN,{size:14,className:"text-red-400"}),ERROR:c.jsx(Zb,{size:14,className:"text-orange-400"}),UPDATING:c.jsx(Wb,{size:14,className:"text-yellow-400"})},Fue={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 Gue(){const e=rn(),[t,n]=M.useState(""),[r,a]=M.useState(""),{data:i=[],isLoading:o}=Vt({queryKey:["hcore",t,r],queryFn:()=>tz({deviceType:t||void 0,status:r||void 0}),refetchInterval:15e3}),l=it({mutationFn:({id:s,status:u})=>nz(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 ${Fue[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:[que[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(hN,{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 Kue={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 Yue(){const{data:e=[],isLoading:t}=Vt({queryKey:["works"],queryFn:()=>rz()});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 ${Kue[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 Vue(){const e=rn(),[t,n]=j.useState(null),{data:r=[],isLoading:a}=Vt({queryKey:["firmware"],queryFn:()=>az()}),i=it({mutationFn:l=>iz(l),onSuccess:()=>{e.invalidateQueries({queryKey:["firmware"]}),n(null)}}),o=it({mutationFn:oz,onSuccess:()=>e.invalidateQueries({queryKey:["firmware"]})});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.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(gs,{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(l=>c.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:l},l))})}),c.jsxs("tbody",{children:[r.map(l=>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:l.firmwareVersion}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:l.tenantCode}),c.jsx("td",{className:"px-4 py-3 text-gray-300 text-xs",children:l.deviceType}),c.jsx("td",{className:"px-4 py-3 text-gray-300 text-xs",children:l.fileName}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:l.fileSize?`${(l.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:l.checksum?l.checksum.substring(0,8)+"...":"-"}),c.jsx("td",{className:"px-4 py-3",children:l.latest&&c.jsx(A5,{size:14,className:"text-yellow-400",fill:"currentColor"})}),c.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:l.createdAt?new Date(l.createdAt).toLocaleDateString("ko-KR"):"-"}),c.jsx("td",{className:"px-4 py-3",children:c.jsx("button",{onClick:()=>{confirm("삭제?")&&o.mutate(l.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(vo,{size:14})})})]},l.id)),r.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:9,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:"펌웨어 등록"}),c.jsx("button",{onClick:()=>n(null),children:c.jsx(bs,{size:16})})]}),c.jsx(Xue,{onSave:l=>i.mutate(l)})]})})]})}function Xue({onSave:e}){const[t,n]=j.useState({tenantCode:"EMART",firmwareVersion:"",deviceType:"ESL_DEVICE",fileName:"",filePath:"",fileSize:"",checksum:"",description:"",latest:!0}),r=i=>o=>n(l=>({...l,[i]:o.target.value})),a=i=>{i.preventDefault(),e({...t,fileSize:t.fileSize===""?null:Number(t.fileSize),latest:t.latest===!0||t.latest==="true"})};return c.jsxs("form",{onSubmit:a,className:"space-y-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"테넌트"}),c.jsx("select",{value:t.tenantCode,onChange:r("tenantCode"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:["TENANT_A","TENANT_B","EMART","ZIOINFO"].map(i=>c.jsx("option",{value:i,children:i},i))})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"장치 유형"}),c.jsx("select",{value:t.deviceType,onChange:r("deviceType"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:["GATEWAY","HUB","ESL_DEVICE"].map(i=>c.jsx("option",{value:i,children:i},i))})]}),[{label:"펌웨어 버전",key:"firmwareVersion",ph:"예: v1.2.3",required:!0},{label:"파일명",key:"fileName",ph:"firmware_v1.2.3.bin"},{label:"파일 경로",key:"filePath",ph:"/opt/esn/firmware/..."},{label:"파일 크기(byte)",key:"fileSize",type:"number"},{label:"체크섬(SHA256)",key:"checksum"}].map(({label:i,key:o,ph:l,type:s,required:u})=>c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:i}),c.jsx("input",{type:s||"text",value:t[o],onChange:r(o),placeholder:l,required:u,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]},o)),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"설명"}),c.jsx("textarea",{value:t.description,onChange:r("description"),rows:2,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"최신 버전 지정"}),c.jsxs("select",{value:String(t.latest),onChange:r("latest"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:[c.jsx("option",{value:"true",children:"최신으로 지정"}),c.jsx("option",{value:"false",children:"일반"})]})]}),c.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"등록"})]})}function Que(){const e=rn(),[t,n]=j.useState(null),{data:r=[],isLoading:a}=Vt({queryKey:["users"],queryFn:()=>lz()}),i=it({mutationFn:l=>l.id?uz(l.id,l):sz(l),onSuccess:()=>{e.invalidateQueries({queryKey:["users"]}),n(null)}}),o=it({mutationFn:cz,onSuccess:()=>e.invalidateQueries({queryKey:["users"]})});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.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(gs,{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(l=>c.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:l},l))})}),c.jsxs("tbody",{children:[r.map(l=>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:l.username}),c.jsx("td",{className:"px-4 py-3 text-brand text-xs",children:l.tenantCode||"SUPER"}),c.jsx("td",{className:"px-4 py-3",children:c.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${l.role==="ADMIN"?"bg-red-500/20 text-red-400":l.role==="MANAGER"?"bg-brand/20 text-brand":"bg-gray-500/20 text-gray-400"}`,children:l.role})}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:l.email||"-"}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:l.phone||"-"}),c.jsx("td",{className:"px-4 py-3",children:c.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${l.active?"bg-green-500/20 text-green-400":"bg-gray-500/20 text-gray-400"}`,children:l.active?"활성":"비활성"})}),c.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:l.lastLoginAt?new Date(l.lastLoginAt).toLocaleString("ko-KR"):"-"}),c.jsx("td",{className:"px-4 py-3",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:()=>n(l),className:"text-brand hover:text-blue-300",children:c.jsx(Gc,{size:14})}),c.jsx("button",{onClick:()=>{confirm("삭제?")&&o.mutate(l.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(vo,{size:14})})]})})]},l.id)),r.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:8,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(bs,{size:16})})]}),c.jsx(Wue,{initial:t,onSave:l=>i.mutate(l)})]})})]})}function Wue({initial:e,onSave:t}){const n=!!e.id,[r,a]=j.useState({username:e.username||"",role:e.role||"USER",tenantCode:e.tenantCode||"",email:e.email||"",phone:e.phone||"",password:"",active:e.active!==!1,id:e.id}),i=l=>s=>a(u=>({...u,[l]:s.target.value})),o=l=>{l.preventDefault();const s={username:r.username,role:r.role,tenantCode:r.tenantCode||null,email:r.email||null,phone:r.phone||null,active:r.active===!0||r.active==="true",id:r.id};!n&&r.password&&(s.password=r.password),t(s)};return c.jsxs("form",{onSubmit:o,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",{value:r.username,onChange:i("username"),disabled:n,required:!0,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white disabled:opacity-50"})]}),!n&&c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"초기 비밀번호 (미입력 시 changeme123)"}),c.jsx("input",{type:"password",value:r.password,onChange:i("password"),autoComplete:"new-password",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"역할"}),c.jsx("select",{value:r.role,onChange:i("role"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:["ADMIN","MANAGER","USER"].map(l=>c.jsx("option",{value:l,children:l},l))})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"테넌트 (SUPER는 비움)"}),c.jsxs("select",{value:r.tenantCode,onChange:i("tenantCode"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:[c.jsx("option",{value:"",children:"(SUPER / 전체)"}),["TENANT_A","TENANT_B","EMART","ZIOINFO"].map(l=>c.jsx("option",{value:l,children:l},l))]})]}),[{label:"이메일",key:"email",type:"email"},{label:"전화",key:"phone"}].map(({label:l,key:s,type:u})=>c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:l}),c.jsx("input",{type:u||"text",value:r[s],onChange:i(s),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]},s)),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"상태"}),c.jsxs("select",{value:String(r.active),onChange:i("active"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:[c.jsx("option",{value:"true",children:"활성"}),c.jsx("option",{value:"false",children:"비활성"})]})]}),c.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"저장"})]})}function Zue(){const e=rn(),[t,n]=j.useState(""),[r,a]=j.useState(null),{data:i=[],isLoading:o}=Vt({queryKey:["products",t],queryFn:()=>fz({keyword:t||void 0})}),l=it({mutationFn:u=>u.id?hz(u.id,u):dz(u),onSuccess:()=>{e.invalidateQueries({queryKey:["products"]}),a(null)}}),s=it({mutationFn:pz,onSuccess:()=>e.invalidateQueries({queryKey:["products"]})});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:t,onChange:u=>n(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:()=>a({}),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(gs,{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-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-400 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",children:u.productName}),c.jsx("td",{className:"px-3 py-3 text-gray-400 text-xs",children:u.category}),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 font-medium",children:(f=u.salePrice)==null?void 0:f.toLocaleString()}),c.jsx("td",{className:"px-3 py-3 text-gray-500 text-xs",children:u.currency}),c.jsx("td",{className:"px-3 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-3 py-3",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:()=>a(u),className:"text-brand hover:text-blue-300",children:c.jsx(Gc,{size:14})}),c.jsx("button",{onClick:()=>{confirm("삭제?")&&s.mutate(u.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(vo,{size:14})})]})})]},u.id)}),i.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:10,className:"px-4 py-8 text-center text-gray-500",children:"상품이 없습니다"})})]})]})}),r&&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:r.id?"상품 수정 / 가격 변경":"상품 추가"}),c.jsx("button",{onClick:()=>a(null),children:c.jsx(bs,{size:16})})]}),c.jsx(Jue,{initial:r,onSave:u=>l.mutate(u)})]})})]})}function Jue({initial:e,onSave:t}){const[n,r]=j.useState({tenantCode:e.tenantCode||"EMART",storeId:e.storeId??"",productCode:e.productCode||"",productName:e.productName||"",category:e.category||"",price:e.price??"",salePrice:e.salePrice??"",currency:e.currency||"KRW",active:e.active!==!1,id:e.id}),a=o=>l=>r(s=>({...s,[o]:l.target.value})),i=o=>{o.preventDefault(),t({...n,storeId:n.storeId===""?null:Number(n.storeId),price:n.price===""?null:Number(n.price),salePrice:n.salePrice===""?null:Number(n.salePrice),active:n.active===!0||n.active==="true"})};return c.jsxs("form",{onSubmit:i,className:"space-y-3",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"테넌트"}),c.jsx("select",{value:n.tenantCode,onChange:a("tenantCode"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:["TENANT_A","TENANT_B","EMART","ZIOINFO"].map(o=>c.jsx("option",{value:o,children:o},o))})]}),[{label:"매장 ID",key:"storeId",type:"number",ph:"예: 1"},{label:"상품코드",key:"productCode"},{label:"상품명",key:"productName"},{label:"카테고리",key:"category"},{label:"정가",key:"price",type:"number"},{label:"판매가",key:"salePrice",type:"number"}].map(({label:o,key:l,type:s,ph:u})=>c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:o}),c.jsx("input",{type:s||"text",value:n[l],onChange:a(l),placeholder:u,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]},l)),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"화폐"}),c.jsx("select",{value:n.currency,onChange:a("currency"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:["KRW","USD","EUR"].map(o=>c.jsx("option",{value:o,children:o},o))})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"상태"}),c.jsxs("select",{value:String(n.active),onChange:a("active"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:[c.jsx("option",{value:"true",children:"활성"}),c.jsx("option",{value:"false",children:"비활성"})]})]}),c.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"저장"})]})}function ece(){const e=rn(),[t,n]=j.useState(null),{data:r=[],isLoading:a}=Vt({queryKey:["tenants"],queryFn:()=>L6()}),i=it({mutationFn:s=>s.id?B6(s.id,s):z6(s),onSuccess:()=>{e.invalidateQueries({queryKey:["tenants"]}),n(null)}}),o=it({mutationFn:I6,onSuccess:()=>e.invalidateQueries({queryKey:["tenants"]})});return a?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.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h1",{className:"text-xl font-semibold text-white",children:"테넌트 관리"}),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(gs,{size:14})," 테넌트 추가"]})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[r.map(s=>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(mN,{size:18,className:"text-brand"}),c.jsx("span",{className:"font-bold text-brand",children:s.tenantCode})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:()=>n(s),className:"text-brand hover:text-blue-300",children:c.jsx(Gc,{size:14})}),c.jsx("button",{onClick:()=>{confirm("삭제?")&&o.mutate(s.id)},className:"text-red-400 hover:text-red-300",children:c.jsx(vo,{size:14})})]})]}),c.jsx("p",{className:"text-sm text-white",children:s.tenantName}),c.jsx("p",{className:"text-xs text-gray-400 mt-1",children:s.description}),c.jsx("div",{className:"mt-3",children:c.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${s.active?"bg-green-500/20 text-green-400":"bg-gray-500/20 text-gray-400"}`,children:s.active?"운영중":"비활성"})})]},s.id)),r.length===0&&c.jsx("div",{className:"col-span-full text-center text-gray-500 py-12",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(bs,{size:16})})]}),c.jsx(tce,{initial:t,onSave:s=>i.mutate(s)})]})})]})}function tce({initial:e,onSave:t}){const n=!!e.id,[r,a]=j.useState({tenantCode:e.tenantCode||"",tenantName:e.tenantName||"",description:e.description||"",active:e.active!==!1,id:e.id}),i=l=>s=>a(u=>({...u,[l]:s.target.value})),o=l=>{l.preventDefault(),t({...r,active:r.active===!0||r.active==="true"})};return c.jsxs("form",{onSubmit:o,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",{value:r.tenantCode,onChange:i("tenantCode"),disabled:n,required:!0,placeholder:"예: EMART",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white disabled:opacity-50"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"테넌트명"}),c.jsx("input",{value:r.tenantName,onChange:i("tenantName"),required:!0,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"설명"}),c.jsx("textarea",{value:r.description,onChange:i("description"),rows:2,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"상태"}),c.jsxs("select",{value:String(r.active),onChange:i("active"),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:[c.jsx("option",{value:"true",children:"운영중"}),c.jsx("option",{value:"false",children:"비활성"})]})]}),c.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"저장"})]})}function nce(){const[e,t]=j.useState(""),[n,r]=j.useState(""),[a,i]=j.useState(""),[o,l]=j.useState(""),s=it({mutationFn:gz,onSuccess:d=>r(d.analysis||JSON.stringify(d)),onError:()=>r("Ollama 응답 실패 — 서비스를 확인해주세요.")}),u=it({mutationFn:bz,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(yN,{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(Zb,{size:16,className:"text-yellow-400"})," 알람 원인 분석"]}),c.jsx("textarea",{value:e,onChange:d=>t(d.target.value),rows:4,placeholder:`알람 메시지를 입력하세요
예: ESL-001 배터리 부족 경고 — Store: A매장 구미, 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(Jv,{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(E5,{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(Jv,{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 vA=["LGINNOTEK","LGIT","EMART","ZIOINFO"],rce=[{key:"rag.enabled",label:"RAG 경유 사용",desc:"끄면 기존 Ollama/룰 경로로 동작"},{key:"rag.rerank",label:"리랭킹 (rerank)",desc:"검색 결과 재정렬 — 품질↑·비용↑",heavy:!0},{key:"rag.graphrag",label:"GraphRAG (의존성 추적)",desc:"허브→단말 연쇄 원인 추적 — 무거움",heavy:!0},{key:"rag.tool_use",label:"에이전틱 tool-use (/agent)",desc:"다단계 진단 루프 — 무거움",heavy:!0},{key:"rag.structured",label:"구조화 출력 (/structured)",desc:"결정론 JSON — POS 분류 권장 on"},{key:"rag.stream",label:"토큰 스트리밍 (SSE)",desc:"긴 답변 점진 표시 — 동시 스트림 제한",heavy:!0}];function ace(){const e=rn(),[t,n]=j.useState(vA[3]),[r,a]=j.useState({}),{data:i,isLoading:o}=Vt({queryKey:["rag-toggles",t],queryFn:()=>xz(t)}),l=it({mutationFn:({key:u,value:d})=>Sz(u,d,t),onSuccess:()=>e.invalidateQueries({queryKey:["rag-toggles",t]})});if(o)return c.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."});const s=i||{};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(gN,{size:20,className:"text-brand"})," AI 기법 설정 (중앙 guardia-rag)"]}),c.jsx("p",{className:"text-xs text-gray-500",children:"테넌트별로 격리되어 저장됩니다. 무거운 기법(리랭킹·GraphRAG·tool-use·스트리밍)은 서버 RAM 보호를 위해 기본 OFF입니다. 변경은 MANAGER 이상 권한이 필요합니다."}),c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-5 flex flex-wrap items-center gap-4",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(S5,{size:16,className:"text-accent"}),c.jsx("span",{className:"text-sm text-gray-300",children:"테넌트"}),c.jsx("select",{value:t,onChange:u=>{n(u.target.value),a({})},className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-100",children:vA.map(u=>c.jsx("option",{value:u,children:u},u))})]}),c.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[c.jsx("span",{className:"text-gray-400",children:"중앙 RAG:"}),s.ragAvailable?c.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/20 text-green-300 text-xs",children:"가용"}):c.jsx("span",{className:"px-2 py-0.5 rounded bg-amber-500/20 text-amber-300 text-xs",children:"미가용 (degraded 폴백)"})]})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-5 space-y-3",children:[c.jsxs("h2",{className:"text-sm font-medium text-white flex items-center gap-2 mb-2",children:[c.jsx(u5,{size:16,className:"text-brand"})," 기법 On/Off"]}),rce.map(u=>{const d=!!s[ice(u.key)];return c.jsxs("div",{className:"flex items-center justify-between border-b border-edge/60 pb-3",children:[c.jsxs("div",{children:[c.jsxs("div",{className:"text-sm text-gray-200 flex items-center gap-2",children:[u.label,u.heavy&&c.jsx("span",{className:"px-1.5 py-0.5 rounded bg-amber-500/20 text-amber-300 text-[10px]",children:"무거움"})]}),c.jsx("div",{className:"text-xs text-gray-500",children:u.desc})]}),c.jsx("button",{onClick:()=>l.mutate({key:u.key,value:!d}),disabled:l.isPending,className:`relative w-11 h-6 rounded-full transition ${d?"bg-brand":"bg-edge"}`,children:c.jsx("span",{className:`absolute top-0.5 left-0.5 w-5 h-5 rounded-full bg-white transition ${d?"translate-x-5":""}`})})]},u.key)})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-5 space-y-4",children:[c.jsxs("h2",{className:"text-sm font-medium text-white flex items-center gap-2 mb-2",children:[c.jsx(j5,{size:16,className:"text-accent"})," 파라미터"]}),c.jsx(Fh,{label:"검색 모드 (retrieval_mode)",hint:"vector | hybrid | graph (GraphRAG on 이면 graph 강제)",children:c.jsxs("select",{value:r["rag.retrieval_mode"]??s.retrievalMode??"vector",onChange:u=>a(d=>({...d,"rag.retrieval_mode":u.target.value})),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-100",children:[c.jsx("option",{value:"vector",children:"vector"}),c.jsx("option",{value:"hybrid",children:"hybrid (BM25+벡터)"}),c.jsx("option",{value:"graph",children:"graph (GraphRAG)"})]})}),c.jsx(gA,{label:"top_k (검색 문서 수)",k:"rag.top_k",cur:s.topK,min:1,max:20,draft:r,setDraft:a}),c.jsx(gA,{label:"에이전트 최대 스텝 (agent_max_steps)",k:"rag.agent_max_steps",cur:s.agentMaxSteps,min:1,max:8,draft:r,setDraft:a}),c.jsx(bA,{label:"temperature",k:"rag.temperature",cur:s.temperature,draft:r,setDraft:a}),c.jsx(bA,{label:"신뢰도 임계 (faithfulness_threshold)",k:"rag.faithfulness_threshold",cur:s.faithfulnessThreshold,draft:r,setDraft:a}),c.jsx(Fh,{label:"생성 모델 (generation_model)",hint:"소형 모델 권장 (예: llama3.2:1b)",children:c.jsx("input",{value:r["rag.generation_model"]??s.generationModel??"",onChange:u=>a(d=>({...d,"rag.generation_model":u.target.value})),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-100 w-48"})}),c.jsxs("div",{className:"pt-2 flex flex-wrap gap-2",children:[Object.keys(r).map(u=>c.jsxs("button",{onClick:()=>l.mutate({key:u,value:r[u]}),disabled:l.isPending,className:"text-xs px-3 py-1.5 rounded bg-brand/80 text-white hover:bg-brand",children:["저장: ",u.replace("rag.","")]},u)),Object.keys(r).length>0&&c.jsx("button",{onClick:()=>a({}),className:"text-xs px-3 py-1.5 rounded bg-edge/60 text-gray-300 hover:bg-edge",children:"변경 취소"})]})]})]})}function ice(e){return{"rag.enabled":"ragEnabled","rag.rerank":"rerank","rag.graphrag":"graphrag","rag.tool_use":"toolUse","rag.structured":"structured","rag.stream":"stream"}[e]||e}function Fh({label:e,hint:t,children:n}){return c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-sm text-gray-200",children:e}),t&&c.jsx("div",{className:"text-xs text-gray-500",children:t})]}),n]})}function gA({label:e,k:t,cur:n,min:r,max:a,draft:i,setDraft:o}){return c.jsx(Fh,{label:e,hint:`범위 ${r}~${a}`,children:c.jsx("input",{type:"number",min:r,max:a,value:i[t]??n??r,onChange:l=>o(s=>({...s,[t]:l.target.value})),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-100 w-24"})})}function bA({label:e,k:t,cur:n,draft:r,setDraft:a}){return c.jsx(Fh,{label:e,hint:"0.0 ~ 1.0",children:c.jsx("input",{type:"number",step:"0.1",min:0,max:1,value:r[t]??n??0,onChange:i=>a(o=>({...o,[t]:i.target.value})),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-100 w-24"})})}const oce={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"},lce=e=>e==="ONLINE"?c.jsx(xN,{size:13,className:"text-green-400"}):c.jsx(bN,{size:13,className:"text-red-400"});function sce(){const e=rn(),[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}=Vt({queryKey:["tag-binding",t,r,i],queryFn:()=>F.get("/api/tag-binding",{params:{tenantCode:t||void 0,storeId:r||void 0,keyword:i||void 0,bindStatus:"ACTIVE"}}).then(v=>v.data.data),refetchInterval:2e4}),p=it({mutationFn:v=>F.post("/api/tag-binding",{...v,storeId:Number(v.storeId)}),onSuccess:()=>{e.invalidateQueries({queryKey:["tag-binding"]}),s(!1)}}),b=it({mutationFn:v=>F.put(`/api/tag-binding/${v}/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(v=>!v),className:"flex items-center gap-2 px-3 py-1.5 bg-brand text-white rounded text-sm",children:[c.jsx(vN,{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:v,label:x,ph:y})=>c.jsxs("div",{children:[c.jsx("label",{className:"text-xs text-gray-400 mb-1 block",children:x}),c.jsx("input",{value:u[v],onChange:m=>d(g=>({...g,[v]:m.target.value})),placeholder:y,className:"w-full bg-edge border border-gray-600 rounded px-2 py-1.5 text-sm text-white"})]},v))}),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:v,set:x,ph:y},m)=>c.jsx("input",{value:v,onChange:g=>x(g.target.value),placeholder:y,className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300 w-64"},m))}),c.jsxs("div",{className:"grid grid-cols-1 gap-3",children:[f.map(v=>c.jsxs("div",{className:`bg-panel border rounded-lg p-4 flex items-center justify-between
              ${v.deviceStatus==="ONLINE"?"border-green-500/20":"border-red-500/20"}`,children:[c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsxs("div",{className:"flex flex-col items-center gap-1 w-16",children:[lce(v.deviceStatus),v.batteryLevel!==null&&c.jsxs("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[c.jsx(hN,{size:11}),c.jsxs("span",{className:v.batteryLevel<20?"text-red-400":"",children:[v.batteryLevel,"%"]})]})]}),c.jsxs("div",{children:[c.jsx("div",{className:"text-xs font-mono text-brand",children:v.deviceId}),c.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[c.jsx(m5,{size:11,className:"text-gray-500"}),c.jsx("span",{className:"text-xs text-gray-400",children:v.locationCode||"위치 미지정"}),c.jsx("span",{className:"text-xs text-gray-600",children:"|"}),c.jsx("span",{className:"text-xs text-gray-300",children:v.storeName})]})]}),c.jsxs("div",{className:"ml-4 pl-4 border-l border-edge",children:[c.jsx("div",{className:"text-sm text-white",children:v.productName||v.productCode}),c.jsxs("div",{className:"text-xs text-gray-400 mt-0.5",children:["현재가: ",c.jsx("span",{className:"text-brand font-mono",children:v.lastPrice?v.lastPrice.toLocaleString()+"원":"미전송"}),v.lastUpdatedAt&&c.jsxs("span",{className:"ml-2 text-gray-600",children:["갱신: ",new Date(v.lastUpdatedAt).toLocaleString()]})]}),c.jsxs("div",{className:"text-xs text-gray-500 mt-0.5",children:["템플릿: ",v.templateCode]})]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:`text-xs px-2 py-0.5 rounded border ${oce[v.bindStatus]||""}`,children:v.bindStatus}),c.jsx("button",{onClick:()=>{confirm(`태그 ${v.deviceId} 언바인딩하겠습니까?`)&&b.mutate(v.id)},className:"p-1.5 rounded bg-edge text-gray-400 hover:text-red-400",title:"언바인딩",children:c.jsx(f5,{size:14})})]})]},v.id)),f.length===0&&c.jsx("div",{className:"text-center text-gray-500 py-12",children:'바인딩된 태그가 없습니다. 우측 상단 "바인딩 추가"를 클릭하세요.'})]})]})}const km={PENDING:{icon:c.jsx(n5,{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(Qb,{size:13}),color:"text-green-400 bg-green-500/10 border-green-500/30",label:"확인됨"},FAILED:{icon:c.jsx(e5,{size:13}),color:"text-red-400 bg-red-500/10 border-red-500/30",label:"실패"},CANCELLED:{icon:c.jsx(Zk,{size:13}),color:"text-gray-400 bg-gray-500/10 border-gray-500/30",label:"취소됨"}};function uce(){const e=rn(),[t,n]=j.useState(""),[r,a]=j.useState(""),{data:i=[],isLoading:o,refetch:l}=Vt({queryKey:["update-queue",t,r],queryFn:()=>F.get("/api/update-queue",{params:{tenantCode:t||void 0,status:r||void 0}}).then(h=>h.data.data),refetchInterval:5e3}),s=it({mutationFn:h=>F.put(`/api/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(pp,{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:v})=>c.jsxs("div",{className:`border rounded-lg p-3 ${v}`,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(km).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=km[h.status]||km.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 cce={FIRMWARE_DEPLOY:"bg-purple-500/20 text-purple-300",FIRMWARE_UPDATE:"bg-purple-500/20 text-purple-300",FIRMWARE_DELETE:"bg-red-500/20 text-red-400",POS_PRICE_CHANGE:"bg-amber-500/20 text-amber-300",USER_CREATE:"bg-green-500/20 text-green-400",USER_UPDATE:"bg-blue-500/20 text-blue-400",USER_DELETE:"bg-red-500/20 text-red-400",USER_PASSWORD_RESET:"bg-blue-500/20 text-blue-400",USER_ACTIVE_TOGGLE:"bg-blue-500/20 text-blue-400",TENANT_CREATE:"bg-green-500/20 text-green-400",TENANT_UPDATE:"bg-blue-500/20 text-blue-400",TENANT_DELETE:"bg-red-500/20 text-red-400",SETTING_CHANGE:"bg-cyan-500/20 text-cyan-300"},fce=["","FIRMWARE_DEPLOY","FIRMWARE_UPDATE","FIRMWARE_DELETE","POS_PRICE_CHANGE","USER_CREATE","USER_UPDATE","USER_DELETE","USER_PASSWORD_RESET","USER_ACTIVE_TOGGLE","TENANT_CREATE","TENANT_UPDATE","TENANT_DELETE","SETTING_CHANGE"];function dce(){const[e,t]=j.useState(""),[n,r]=j.useState(""),[a,i]=j.useState(""),[o,l]=j.useState(""),[s,u]=j.useState(""),[d,f]=j.useState({limit:200}),{data:h=[],isLoading:p,refetch:b,isFetching:v}=Vt({queryKey:["audit",d],queryFn:()=>yz(d)}),x=()=>{const m={limit:200};e&&(m.action=e),n.trim()&&(m.username=n.trim()),a.trim()&&(m.tenantCode=a.trim()),o&&(m.from=o+":00"),s&&(m.to=s+":59"),f(m)},y=()=>{t(""),r(""),i(""),l(""),u(""),f({limit:200})};return 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("button",{onClick:()=>b(),className:"text-xs px-3 py-1.5 rounded bg-edge/60 text-gray-300 hover:bg-edge",children:v?"조회 중...":"새로고침"})]}),c.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4 grid grid-cols-1 md:grid-cols-6 gap-3 items-end",children:[c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs text-gray-500",children:"액션"}),c.jsx("select",{value:e,onChange:m=>t(m.target.value),className:"bg-panel border border-edge rounded px-2 py-1.5 text-sm text-gray-200",children:fce.map(m=>c.jsx("option",{value:m,children:m||"전체"},m))})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs text-gray-500",children:"수행자"}),c.jsx("input",{value:n,onChange:m=>r(m.target.value),placeholder:"username",className:"bg-panel border border-edge rounded px-2 py-1.5 text-sm text-gray-200"})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs text-gray-500",children:"테넌트"}),c.jsx("input",{value:a,onChange:m=>i(m.target.value),placeholder:"EMART",className:"bg-panel border border-edge rounded px-2 py-1.5 text-sm text-gray-200"})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs text-gray-500",children:"시작 일시"}),c.jsx("input",{type:"datetime-local",value:o,onChange:m=>l(m.target.value),className:"bg-panel border border-edge rounded px-2 py-1.5 text-sm text-gray-200"})]}),c.jsxs("div",{className:"flex flex-col gap-1",children:[c.jsx("label",{className:"text-xs text-gray-500",children:"종료 일시"}),c.jsx("input",{type:"datetime-local",value:s,onChange:m=>u(m.target.value),className:"bg-panel border border-edge rounded px-2 py-1.5 text-sm text-gray-200"})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:x,className:"flex-1 px-3 py-1.5 rounded bg-brand/80 text-white text-sm hover:bg-brand",children:"조회"}),c.jsx("button",{onClick:y,className:"px-3 py-1.5 rounded bg-edge/60 text-gray-300 text-sm hover:bg-edge",children:"초기화"})]})]}),p?c.jsx("div",{className:"text-gray-400 p-8",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:["일시","수행자","테넌트","액션","리소스","대상","상세","IP","결과"].map(m=>c.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:m},m))})}),c.jsxs("tbody",{children:[h.map(m=>c.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[c.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs whitespace-nowrap",children:m.createdAt?new Date(m.createdAt).toLocaleString("ko-KR"):"-"}),c.jsx("td",{className:"px-4 py-3 text-gray-300",children:m.username||"-"}),c.jsx("td",{className:"px-4 py-3 text-brand text-xs",children:m.tenantCode||"-"}),c.jsx("td",{className:"px-4 py-3",children:c.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${cce[m.action]||"bg-gray-500/20 text-gray-400"}`,children:m.action})}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:m.resource||"-"}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:m.resourceId||"-"}),c.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs max-w-xs truncate",title:m.detail,children:m.detail||"-"}),c.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:m.ipAddress||"-"}),c.jsx("td",{className:"px-4 py-3",children:c.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${m.success===!1?"bg-red-500/20 text-red-400":"bg-green-500/20 text-green-400"}`,children:m.success===!1?"실패":"성공"})})]},m.id)),h.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:9,className:"px-4 py-8 text-center text-gray-500",children:"감사 로그가 없습니다"})})]})]})})]})}const hce={GENERAL:"bg-gray-500/20 text-gray-300",ESL:"bg-purple-500/20 text-purple-300",ALARM:"bg-amber-500/20 text-amber-300",AI:"bg-cyan-500/20 text-cyan-300"};function pce(){const e=rn(),[t,n]=j.useState({}),{data:r=[],isLoading:a}=Vt({queryKey:["settings"],queryFn:()=>mz()}),i=it({mutationFn:({key:o,value:l})=>vz(o,l),onSuccess:(o,l)=>{e.invalidateQueries({queryKey:["settings"]}),n(s=>{const u={...s};return delete u[l.key],u})}});return a?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("p",{className:"text-xs text-gray-500",children:"운영 설정 변경은 감사 로그에 기록됩니다. (변경은 ADMIN 권한 필요)"}),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.jsxs("tbody",{children:[r.map(o=>{const l=o.settingKey in t;return c.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[c.jsx("td",{className:"px-4 py-3",children:c.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${hce[o.category]||"bg-gray-500/20 text-gray-400"}`,children:o.category})}),c.jsx("td",{className:"px-4 py-3 text-gray-200 font-mono text-xs",children:o.settingKey}),c.jsx("td",{className:"px-4 py-3",children:l?c.jsx("input",{value:t[o.settingKey],onChange:s=>n(u=>({...u,[o.settingKey]:s.target.value})),className:"bg-panel border border-brand/60 rounded px-2 py-1 text-sm text-gray-100 w-48"}):c.jsx("span",{className:"text-gray-300",children:o.settingValue})}),c.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs max-w-xs",children:o.description||"-"}),c.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:o.updatedAt?new Date(o.updatedAt).toLocaleString("ko-KR"):"-"}),c.jsx("td",{className:"px-4 py-3 text-right",children:l?c.jsxs("div",{className:"flex gap-2 justify-end",children:[c.jsx("button",{onClick:()=>i.mutate({key:o.settingKey,value:t[o.settingKey]}),disabled:i.isPending,className:"text-xs px-3 py-1 rounded bg-brand/80 text-white hover:bg-brand",children:"저장"}),c.jsx("button",{onClick:()=>n(s=>{const u={...s};return delete u[o.settingKey],u}),className:"text-xs px-3 py-1 rounded bg-edge/60 text-gray-300 hover:bg-edge",children:"취소"})]}):c.jsx("button",{onClick:()=>n(s=>({...s,[o.settingKey]:o.settingValue??""})),className:"text-xs px-3 py-1 rounded bg-edge/60 text-gray-300 hover:bg-edge",children:"수정"})})]},o.settingKey)}),r.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:6,className:"px-4 py-8 text-center text-gray-500",children:"설정이 없습니다"})})]})]})})]})}const yce="https://zioinfo.co.kr:8443";function mce(){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(`${yce}/api/app/public-latest`).then(d=>d.json()).then(d=>t(d)).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-6",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Wv,{className:"text-brand",size:22}),c.jsx("h1",{className:"text-xl font-bold",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-slate-300 hover:text-brand",children:[c.jsx(pp,{size:15})," 새로고침"]})]}),c.jsxs("p",{className:"text-sm text-slate-400 mb-6",children:["QR 코드를 스캔하면 ",c.jsx("span",{className:"text-brand font-semibold",children:"GUARDiA Messenger"})," 앱 설치 페이지로 이동합니다. 앱스토어 설치가 필요 없으며, 앱 업로드·버전 관리는 GUARDiA Manager에서 일원화되어 있습니다."]}),n&&c.jsx("div",{className:"text-slate-400 text-sm",children:"불러오는 중…"}),a&&c.jsx("div",{className:"bg-card border border-edge rounded-xl p-6 text-rose-400 text-sm",children:a}),!n&&!a&&e&&!e.has_version&&c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-8 text-center text-slate-400",children:[c.jsx(Wv,{size:36,className:"mx-auto mb-3 text-slate-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-xl 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:c.jsx("img",{src:e.qr_url,alt:"앱 설치 QR",className:"w-44 h-44"})}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("span",{className:"text-lg font-bold",children:e.app_name||"GUARDiA Messenger"}),c.jsxs("span",{className:"px-2 py-0.5 rounded-md bg-brand2 text-white text-xs font-semibold",children:["v",e.version]})]}),c.jsxs("div",{className:"text-xs text-slate-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-slate-500 uppercase tracking-wider mb-1",children:"변경점"}),c.jsx("div",{className:"text-sm text-slate-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:[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-ink text-sm font-semibold",children:[c.jsx(i5,{size:15})," 설치 페이지 열기"]}),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-slate-300 hover:text-brand",children:[c.jsx(a5,{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-slate-300 hover:text-brand",children:[o?c.jsx(Wk,{size:15,className:"text-accent"}):c.jsx(r5,{size:15}),o?"복사됨":"다운로드 링크 복사"]})]}),c.jsx("div",{className:"mt-4 text-[12px] text-slate-500 leading-relaxed",children:'📱 Android: APK 다운로드 후 설정 → 보안 → "알 수 없는 소스" 허용 → 설치. 앱스토어 등록이 필요 없습니다.'})]})]})]})}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 Ac({children:e,style:t}){return c.jsx("div",{style:{...u1,padding:18,...t},children:e})}function ee({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 pe({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 me({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 yi({children:e}){return c.jsx(Ac,{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:16},children:e})}function Oo({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 rf({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(ee,{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(ee,{variant:"ghost",disabled:e>=t-1,onClick:()=>n(e+1),children:"다음"})]})}function jo({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 rr({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 er({label:e="불러오는 중..."}){return c.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)",fontSize:13},children:e})}const xA={ONGOING:"진행중",DONE:"종료"};function vce(){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,v]=j.useState(!1),[x,y]=j.useState(null),m=async()=>{p(!0);try{const O=(await Pz({page:n,size:20,progressCd:s||void 0})).data.data;t(O.content??[]),i(O.totalPages??0);const A=await $z({});l(A.data.data??[])}finally{p(!1)}};j.useEffect(()=>{m()},[n,s]);const g=[{key:"workDate",header:"근무일자",width:120},{key:"title",header:"제목"},{key:"writerNm",header:"작성자",width:120},{key:"progressCd",header:"진행",width:90,render:w=>xA[w.progressCd]??w.progressCd},{key:"commentCount",header:"댓글",width:70,align:"center"}],S=async w=>{const O=await kz(w.worklogId);y(O.data.data)};return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"업무일지",subtitle:"UIWS 이식 · 업무일지 작성/조회/진행관리",actions:c.jsx(ee,{onClick:()=>v(!0),children:"+ 업무일지 작성"})}),c.jsx("div",{style:{display:"flex",gap:10,marginBottom:16,flexWrap:"wrap"},children:o.map(w=>c.jsxs("div",{onClick:()=>{u(s===w.progressCd?"":w.progressCd),r(0)},style:{cursor:"pointer",padding:"12px 18px",borderRadius:10,minWidth:130,background:"var(--uiws-surface)",border:`1px solid ${s===w.progressCd?"var(--uiws-primary)":"var(--uiws-border)"}`},children:[c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)"},children:w.progressNm}),c.jsx("div",{style:{fontSize:24,fontWeight:700,color:"var(--uiws-primary)"},children:w.count})]},w.progressCd))}),c.jsxs(yi,{children:[c.jsx(pe,{value:d,onChange:f,placeholder:"제목 검색",style:{minWidth:220}}),c.jsx(ee,{variant:"ghost",onClick:()=>{r(0),m()},children:"검색"}),s&&c.jsxs(ee,{variant:"ghost",onClick:()=>u(""),children:["필터 해제: ",xA[s]??s]})]}),h?c.jsx(er,{}):c.jsxs(c.Fragment,{children:[c.jsx(Oo,{columns:g,rows:e,rowKey:w=>w.worklogId,onRowClick:S,empty:"업무일지가 없습니다."}),c.jsx(rf,{page:n,totalPages:a,onChange:r})]}),b&&c.jsx(gce,{onClose:()=>v(!1),onSaved:()=>{v(!1),m()}}),x&&c.jsx(bce,{detail:x,onClose:()=>y(null),onChanged:()=>{y(null),m()}})]})}function gce({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 Dz({title:n,writerId:a,workDate:o,workStatusCd:s,progressCd:"ONGOING",details:[]}),t()}catch(v){f(((b=(p=v==null?void 0:v.response)==null?void 0:p.data)==null?void 0:b.message)||"저장 실패")}};return c.jsxs(rr,{title:"업무일지 작성",onClose:e,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"ghost",onClick:e,children:"취소"}),c.jsx(ee,{onClick:h,children:"저장"})]}),children:[c.jsx(me,{label:"제목",children:c.jsx(pe,{value:n,onChange:r,style:{width:"100%"}})}),c.jsx(me,{label:"작성자 ID",children:c.jsx(pe,{value:a,onChange:i,style:{width:"100%"}})}),c.jsx(me,{label:"근무일자",children:c.jsx(pe,{type:"date",value:o,onChange:l,style:{width:"100%"}})}),c.jsx(me,{label:"근무상태 코드",children:c.jsx(pe,{value:s,onChange:u,style:{width:"100%"}})}),d&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:d})]})}function bce({detail:e,onClose:t,onChanged:n}){var u;const[r,a]=j.useState(""),[i,o]=j.useState(""),l=async()=>{await Lz(e.worklogId),n()},s=async()=>{var d,f;o("");try{await zz(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(rr,{title:e.title,onClose:t,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"danger",onClick:l,children:"삭제"}),c.jsx(ee,{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(pe,{value:r,onChange:a,placeholder:"댓글 입력(관리자/매니저)",style:{flex:1}}),c.jsx(ee,{onClick:s,children:"등록"})]}),i&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:12,marginTop:6},children:i})]})]})}const xce=["일","월","화","수","목","금","토"];function Sce(){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 S=await Nz({type:n,view:"month",baseDate:`${h}-01`});i(S.data.data??[])}finally{l(!1)}};j.useEffect(()=>{p()},[h,n]);const v=new Date(e.getFullYear(),e.getMonth(),1).getDay(),x=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),y=[...Array(v).fill(null),...Array.from({length:x},(S,w)=>w+1)],m=S=>{const w=`${h}-${String(S).padStart(2,"0")}`;return a.filter(O=>(O.startDt??"").slice(0,10)<=w&&w<=(O.endDt??"").slice(0,10))},g=S=>t(new Date(e.getFullYear(),e.getMonth()+S,1));return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"일정",subtitle:"UIWS 이식 · 개인/부서 일정 달력",actions:c.jsx(ee,{onClick:()=>u(`${h}-01`),children:"+ 일정 등록"})}),c.jsxs(Ac,{style:{display:"flex",gap:10,alignItems:"center",marginBottom:16},children:[c.jsx(ee,{variant:"ghost",onClick:()=>g(-1),children:"‹ 이전"}),c.jsx("div",{style:{fontWeight:700,minWidth:130,textAlign:"center",color:"var(--uiws-text)"},children:h}),c.jsx(ee,{variant:"ghost",onClick:()=>g(1),children:"다음 ›"}),c.jsx("div",{style:{flex:1}}),c.jsx(ee,{variant:n==="PERSONAL"?"primary":"ghost",onClick:()=>r("PERSONAL"),children:"개인"}),c.jsx(ee,{variant:n==="DEPT"?"primary":"ghost",onClick:()=>r("DEPT"),children:"부서"})]}),o?c.jsx(er,{}):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:[xce.map((S,w)=>c.jsx("div",{style:{padding:"10px 0",textAlign:"center",fontSize:12,fontWeight:600,color:w===0?"var(--uiws-danger)":"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:S},S)),y.map((S,w)=>c.jsxs("div",{onClick:()=>S&&u(`${h}-${String(S).padStart(2,"0")}`),style:{minHeight:96,padding:6,borderRight:"1px solid var(--uiws-border)",borderBottom:"1px solid var(--uiws-border)",cursor:S?"pointer":"default"},children:[S&&c.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:4},children:S}),S&&m(S).slice(0,3).map(O=>c.jsx("div",{onClick:A=>{A.stopPropagation(),Mz(O.scheduleId).then(E=>f(E.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))]},w))]})}),s&&c.jsx(wce,{date:s,type:n,onClose:()=>u(null),onSaved:()=>{u(null),p()}}),d&&c.jsx(Oce,{detail:d,onClose:()=>f(null),onDeleted:()=>{f(null),p()}})]})}function wce({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 v,x;p("");try{await Cz({scheType:t,title:a,startDt:o,endDt:s,content:d,attachmentIds:[]}),r()}catch(y){p(((x=(v=y==null?void 0:y.response)==null?void 0:v.data)==null?void 0:x.message)||"저장 실패")}};return c.jsxs(rr,{title:"일정 등록",onClose:n,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"ghost",onClick:n,children:"취소"}),c.jsx(ee,{onClick:b,children:"저장"})]}),children:[c.jsx(me,{label:"제목",children:c.jsx(pe,{value:a,onChange:i,style:{width:"100%"}})}),c.jsx(me,{label:"시작(yyyy-MM-ddTHH:mm:ss)",children:c.jsx(pe,{value:o,onChange:l,style:{width:"100%"}})}),c.jsx(me,{label:"종료",children:c.jsx(pe,{value:s,onChange:u,style:{width:"100%"}})}),c.jsx(me,{label:"내용",children:c.jsx(pe,{value:d,onChange:f,style:{width:"100%"}})}),h&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}function Oce({detail:e,onClose:t,onDeleted:n}){const r=async()=>{await Rz(e.scheduleId),n()};return c.jsxs(rr,{title:e.title,onClose:t,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"danger",onClick:r,children:"삭제"}),c.jsx(ee,{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 jce(){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,v]=j.useState(null),x=async()=>{f(!0);try{const O=(await(e==="received"?_z:Az)({page:a,size:20,titleKeyword:s||void 0})).data.data;r(O.content??[]),l(O.totalPages??0)}finally{f(!1)}};j.useEffect(()=>{x()},[e,a]);const y=[{key:"title",header:"제목"},{key:"senderNm",header:"보낸사람",width:130},{key:"sentAt",header:"받은시각",width:170},{key:"readYn",header:"상태",width:90,render:S=>c.jsx(jo,{yn:S.readYn})}],m=[{key:"title",header:"제목"},{key:"receiverSummary",header:"받는사람",width:160},{key:"open",header:"개봉",width:100,align:"center",render:S=>`${S.openCount}/${S.totalCount}`},{key:"sentAt",header:"보낸시각",width:170}],g=async S=>{const w=e==="received"?await Tz(S.messageId):await Ez(S.messageId);v({...w.data.data,_tab:e}),e==="received"&&x()};return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"쪽지",subtitle:"UIWS 이식 · 사내 쪽지 송수신",actions:c.jsx(ee,{onClick:()=>p(!0),children:"+ 쪽지 보내기"})}),c.jsxs(yi,{children:[c.jsx(ee,{variant:e==="received"?"primary":"ghost",onClick:()=>{t("received"),i(0)},children:"받은쪽지함"}),c.jsx(ee,{variant:e==="sent"?"primary":"ghost",onClick:()=>{t("sent"),i(0)},children:"보낸쪽지함"}),c.jsx("div",{style:{flex:1}}),c.jsx(pe,{value:s,onChange:u,placeholder:"제목 검색",style:{minWidth:200}}),c.jsx(ee,{variant:"ghost",onClick:()=>{i(0),x()},children:"검색"})]}),d?c.jsx(er,{}):c.jsxs(c.Fragment,{children:[c.jsx(Oo,{columns:e==="received"?y:m,rows:n,rowKey:S=>S.messageId,onRowClick:g,empty:"쪽지가 없습니다."}),c.jsx(rf,{page:a,totalPages:o,onChange:i})]}),h&&c.jsx(Ace,{onClose:()=>p(!1),onSent:()=>{p(!1),x()}}),b&&c.jsx(Ece,{detail:b,onClose:()=>v(null)})]})}function Ace({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 jz({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(rr,{title:"쪽지 보내기",onClose:e,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"ghost",onClick:e,children:"취소"}),c.jsx(ee,{onClick:d,children:"보내기"})]}),children:[c.jsx(me,{label:"받는사람 ID",children:c.jsx(pe,{value:n,onChange:r,style:{width:"100%"}})}),c.jsx(me,{label:"제목",children:c.jsx(pe,{value:a,onChange:i,style:{width:"100%"}})}),c.jsx(me,{label:"내용",children:c.jsx(pe,{value:o,onChange:l,style:{width:"100%"}})}),s&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:s})]})}function Ece({detail:e,onClose:t}){return c.jsxs(rr,{title:e.title,onClose:t,footer:c.jsx(ee,{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(jo,{yn:n.readYn})]},r))]})]})}function _ce(){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 v=await(e==="personal"?Bz:Iz)({fromDate:s,toDate:d});r(v.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(yi,{children:[c.jsx(ee,{variant:e==="personal"?"primary":"ghost",onClick:()=>t("personal"),children:"개인별 근무현황"}),c.jsx(ee,{variant:e==="company"?"primary":"ghost",onClick:()=>t("company"),children:"업체별 근무현황"}),c.jsx("div",{style:{flex:1}}),c.jsx(pe,{type:"date",value:s,onChange:u}),c.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:"~"}),c.jsx(pe,{type:"date",value:d,onChange:f}),c.jsx(ee,{variant:"ghost",onClick:h,children:"조회"})]}),a?c.jsx(er,{}):!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,v)=>c.jsx("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:p.map(x=>c.jsx("td",{style:{padding:"10px 14px"},children:String(b[x.key]??"")},x.key))},v))})]})})]})}const c1=e=>e&&e.size>0?Math.ceil(e.total/e.size):0,Tce=(e,t=0,n=20)=>F.get("/api/system/roles",{params:{keyword:e||void 0,page:t,size:n}}),Nce=e=>F.post("/api/system/roles",e),Cce=(e,t)=>F.put(`/api/system/roles/${encodeURIComponent(e)}`,t),Mce=e=>F.delete("/api/system/roles",{data:{ids:e}}),Rce=(e=0,t=100)=>F.get("/api/system/role-menus",{params:{page:e,size:t}}),Pce=e=>F.get(`/api/system/roles/${encodeURIComponent(e)}/menus`),$ce=(e,t)=>F.put(`/api/system/roles/${encodeURIComponent(e)}/menus`,{menus:t}),Dce=(e,t=0,n=20)=>F.get("/api/system/codes",{params:{keyword:e||void 0,page:t,size:n}}),TP=e=>F.get(`/api/system/codes/${encodeURIComponent(e)}`),kce=e=>F.post("/api/system/codes",e),NP=(e,t)=>F.put(`/api/system/codes/${encodeURIComponent(e)}`,t),Lce=e=>F.delete(`/api/system/codes/${encodeURIComponent(e)}`),zce=(e=0,t=100)=>F.get("/api/system/menus",{params:{page:e,size:t}}),Bce=e=>F.post("/api/system/menus",e),Ice=(e,t)=>F.put(`/api/system/menus/${encodeURIComponent(e)}`,t),Uce=e=>F.delete("/api/system/menus",{data:{ids:e}}),Hce=(e,t=0,n=100)=>F.get("/api/system/depts",{params:{keyword:void 0,page:t,size:n}}),qce=e=>F.post("/api/system/depts",e),Fce=(e,t)=>F.put(`/api/system/depts/${encodeURIComponent(e)}`,t),Gce=e=>F.delete(`/api/system/depts/${encodeURIComponent(e)}`),Kce=(e,t=0,n=20)=>F.get("/api/system/companies",{params:{keyword:e||void 0,page:t,size:n}}),Yce=e=>F.post("/api/system/companies",e),Vce=(e,t)=>F.put(`/api/system/companies/${encodeURIComponent(e)}`,t),Xce=e=>F.delete("/api/system/companies",{data:{ids:e}});function M0(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 Qce(){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(""),[h,p]=j.useState(new Set),[b,v]=j.useState(null),[x,y]=j.useState(!1),m=async(A=o,E=n)=>{u(!0),f("");try{const N=(await Tce(A||void 0,E)).data.data;t((N==null?void 0:N.content)??[]),i(c1(N)),p(new Set)}catch(_){f(M0(_))}finally{u(!1)}};j.useEffect(()=>{m(o,n)},[n]);const g=()=>{n===0?m(o,0):r(0)},S=A=>p(E=>{const _=new Set(E);return _.has(A)?_.delete(A):_.add(A),_}),w=async()=>{if(h.size!==0&&window.confirm(`선택한 권한 ${h.size}건을 삭제하시겠습니까?`))try{await Mce([...h]),await m()}catch(A){f(M0(A))}},O=[{key:"sel",header:"",width:44,align:"center",render:A=>c.jsx("input",{type:"checkbox",checked:h.has(A.roleId),onClick:E=>E.stopPropagation(),onChange:()=>S(A.roleId)})},{key:"roleId",header:"권한ID",width:180},{key:"roleNm",header:"권한명"},{key:"roleDesc",header:"설명"},{key:"useYn",header:"사용",width:80,align:"center",render:A=>c.jsx(jo,{yn:A.useYn,yes:"사용",no:"미사용"})}];return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"권한 관리",subtitle:"시스템관리(권한) · 역할(Role) 등록/수정/삭제 — RBAC",actions:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"danger",onClick:w,disabled:h.size===0,children:"선택 삭제"}),c.jsx(ee,{onClick:()=>{v(null),y(!0)},children:"+ 권한 등록"})]})}),d&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:d}),c.jsxs(yi,{children:[c.jsx(pe,{value:o,onChange:l,placeholder:"권한ID/권한명 검색",style:{minWidth:240}}),c.jsx(ee,{variant:"ghost",onClick:g,children:"검색"})]}),s?c.jsx(er,{}):c.jsxs(c.Fragment,{children:[c.jsx(Oo,{columns:O,rows:e,rowKey:A=>A.roleId,onRowClick:A=>{v(A),y(!0)},empty:"등록된 권한이 없습니다."}),c.jsx(rf,{page:n,totalPages:a,onChange:r})]}),x&&c.jsx(Wce,{role:b,onClose:()=>y(!1),onSaved:()=>{y(!1),m()}})]})}function Wce({role:e,onClose:t,onSaved:n}){const r=!!e,[a,i]=j.useState((e==null?void 0:e.roleId)??""),[o,l]=j.useState((e==null?void 0:e.roleNm)??""),[s,u]=j.useState((e==null?void 0:e.roleDesc)??""),[d,f]=j.useState((e==null?void 0:e.useYn)??"Y"),[h,p]=j.useState(""),b=async()=>{if(p(""),!o.trim()){p("권한명은 필수입니다.");return}if(!r&&!a.trim()){p("권한ID는 필수입니다.");return}try{const v={roleId:a,roleNm:o,roleDesc:s,useYn:d};r?await Cce(a,v):await Nce(v),n()}catch(v){p(M0(v))}};return c.jsxs(rr,{title:r?"권한 수정":"권한 등록",onClose:t,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"ghost",onClick:t,children:"취소"}),c.jsx(ee,{onClick:b,children:"저장"})]}),children:[c.jsx(me,{label:"권한ID",children:c.jsx(pe,{value:a,onChange:i,style:{width:"100%",opacity:r?.6:1}})}),c.jsx(me,{label:"권한명",children:c.jsx(pe,{value:o,onChange:l,style:{width:"100%"}})}),c.jsx(me,{label:"설명",children:c.jsx(pe,{value:s,onChange:u,style:{width:"100%"}})}),c.jsx(me,{label:"사용 여부",children:c.jsxs("select",{value:d,onChange:v=>f(v.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:"Y",children:"사용"}),c.jsx("option",{value:"N",children:"미사용"})]})}),h&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}function Lm(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 Zce(){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(""),[b,v]=j.useState("");j.useEffect(()=>{l(!0),Rce().then(g=>{var w;const S=((w=g.data.data)==null?void 0:w.content)??[];t(S),S.length>0&&r(S[0].roleId)}).catch(g=>v(Lm(g))).finally(()=>l(!1))},[]),j.useEffect(()=>{n&&(u(!0),p(""),v(""),Pce(n).then(g=>i(g.data.data??[])).catch(g=>v(Lm(g))).finally(()=>u(!1)))},[n]);const x=(g,S)=>i(w=>w.map(O=>{if(O.menuId!==g)return O;const A=O[S]==="Y"?"N":"Y";return S==="writeYn"&&A==="Y"?{...O,writeYn:"Y",readYn:"Y"}:S==="readYn"&&A==="N"?{...O,readYn:"N",writeYn:"N"}:{...O,[S]:A}})),y=(g,S)=>i(w=>w.map(O=>S&&g==="writeYn"?{...O,writeYn:"Y",readYn:"Y"}:!S&&g==="readYn"?{...O,readYn:"N",writeYn:"N"}:{...O,[g]:S?"Y":"N"})),m=async()=>{f(!0),p(""),v("");try{await $ce(n,a),p("메뉴 권한 매핑이 저장되었습니다.")}catch(g){v(Lm(g))}finally{f(!1)}};return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"역할-메뉴 권한",subtitle:"시스템관리(권한) · 역할별 메뉴 접근(읽기/쓰기) 매핑 — RBAC 핵심",actions:c.jsx(ee,{onClick:m,disabled:d||!n,children:d?"저장 중...":"매핑 저장"})}),b&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:b}),h&&c.jsx("div",{style:{color:"var(--uiws-success)",fontSize:13,marginBottom:12},children:h}),c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"260px 1fr",gap:16,alignItems:"start"},children:[c.jsxs(Ac,{style:{padding:0},children:[c.jsx("div",{style:{padding:"12px 16px",fontSize:12,fontWeight:600,color:"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:"역할 목록"}),o?c.jsx(er,{}):c.jsxs("div",{children:[e.length===0&&c.jsx("div",{style:{padding:20,fontSize:13,color:"var(--uiws-text-faint)"},children:"역할이 없습니다."}),e.map(g=>c.jsxs("div",{onClick:()=>r(g.roleId),style:{padding:"11px 16px",cursor:"pointer",fontSize:13,borderLeft:`3px solid ${n===g.roleId?"var(--uiws-primary)":"transparent"}`,background:n===g.roleId?"var(--uiws-primary-soft)":"transparent",color:n===g.roleId?"var(--uiws-primary)":"var(--uiws-text)"},children:[c.jsx("div",{style:{fontWeight:600},children:g.roleNm}),c.jsx("div",{style:{fontSize:11,color:"var(--uiws-text-muted)"},children:g.roleId})]},g.roleId))]})]}),c.jsx(Ac,{style:{padding:0,overflow:"hidden"},children:s?c.jsx(er,{}):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)",fontWeight:600,fontSize:12,borderBottom:"1px solid var(--uiws-border)"},children:"메뉴"}),c.jsxs("th",{style:{width:120,padding:"8px 14px",color:"var(--uiws-text-muted)",fontSize:12,borderBottom:"1px solid var(--uiws-border)"},children:["읽기",c.jsx("br",{}),c.jsxs("label",{style:{fontWeight:400,fontSize:11},children:[c.jsx("input",{type:"checkbox",onChange:g=>y("readYn",g.target.checked)})," 전체"]})]}),c.jsxs("th",{style:{width:120,padding:"8px 14px",color:"var(--uiws-text-muted)",fontSize:12,borderBottom:"1px solid var(--uiws-border)"},children:["쓰기",c.jsx("br",{}),c.jsxs("label",{style:{fontWeight:400,fontSize:11},children:[c.jsx("input",{type:"checkbox",onChange:g=>y("writeYn",g.target.checked)})," 전체"]})]})]})}),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(g=>c.jsxs("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:[c.jsxs("td",{style:{padding:"11px 14px"},children:[g.menuNm," ",c.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontSize:12},children:["(",g.menuId,")"]})]}),c.jsx("td",{style:{padding:"11px 14px",textAlign:"center"},children:c.jsx("input",{type:"checkbox",checked:g.readYn==="Y",onChange:()=>x(g.menuId,"readYn")})}),c.jsx("td",{style:{padding:"11px 14px",textAlign:"center"},children:c.jsx("input",{type:"checkbox",checked:g.writeYn==="Y",onChange:()=>x(g.menuId,"writeYn")})})]},g.menuId))})]})})]})]})}function Zo(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)||"요청을 처리하지 못했습니다."}const Jce={width:"100%",padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)"};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(null),[d,f]=j.useState(""),[h,p]=j.useState(!1),[b,v]=j.useState(!1),[x,y]=j.useState(""),[m,g]=j.useState({open:!1,edit:null}),[S,w]=j.useState({open:!1,edit:null}),O=async($=d,k=n)=>{p(!0),y("");try{const L=(await Dce($||void 0,k)).data.data,z=(L==null?void 0:L.content)??[];t(z),i(c1(L)),(!o||!z.some(q=>q.grpCd===o))&&z.length>0?l(z[0].grpCd):z.length===0&&(l(""),u(null))}catch(R){y(Zo(R))}finally{p(!1)}};j.useEffect(()=>{O(d,n)},[n]);const A=async($=o)=>{if(!$){u(null);return}v(!0);try{const k=await TP($);u(k.data.data)}catch(k){y(Zo(k))}finally{v(!1)}};j.useEffect(()=>{A()},[o]);const E=()=>{n===0?O(d,0):r(0)},_=async $=>{if(window.confirm(`코드그룹 '${$}' 와 하위 코드를 삭제하시겠습니까?`))try{await Lce($),o===$&&(l(""),u(null)),await O()}catch(k){y(Zo(k))}},N=async $=>{if(!s)return;const k={grpCd:s.grpCd,grpNm:s.grpNm,useYn:s.useYn,values:$.map(R=>({grpCd:s.grpCd,codeVal:R.codeVal,codeNm:R.codeNm,sortOrd:R.sortOrd??0,useYn:R.useYn}))};await NP(s.grpCd,k),await A(s.grpCd)},D=async $=>{if(s&&window.confirm(`코드 '${$.codeNm}' 를 삭제하시겠습니까?`))try{await N((s.values??[]).filter(k=>k.codeVal!==$.codeVal))}catch(k){y(Zo(k))}},P=async($,k)=>{if(!s)return;const R=s.values??[];let L;if(k)L=R.map(z=>z.codeVal===k.codeVal?$:z);else{if(R.some(z=>z.codeVal===$.codeVal))throw{response:{status:409}};L=[...R,$]}await N(L)},I=[{key:"codeVal",header:"코드값",width:150},{key:"codeNm",header:"코드명"},{key:"sortOrd",header:"정렬",width:70,align:"center"},{key:"useYn",header:"사용",width:80,align:"center",render:$=>c.jsx(jo,{yn:$.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:$=>c.jsx(ee,{variant:"ghost",onClick:()=>D($),children:"삭제"})}];return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"공통코드 관리",subtitle:"시스템관리(권한) · 코드그룹/코드값 CRUD",actions:c.jsx(ee,{onClick:()=>g({open:!0,edit:null}),children:"+ 코드그룹 등록"})}),x&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:x}),c.jsxs(yi,{children:[c.jsx(pe,{value:d,onChange:f,placeholder:"코드그룹 검색",style:{minWidth:220}}),c.jsx(ee,{variant:"ghost",onClick:E,children:"검색"})]}),c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"300px 1fr",gap:16,alignItems:"start"},children:[c.jsxs("div",{children:[c.jsxs(Ac,{style:{padding:0},children:[c.jsx("div",{style:{padding:"12px 16px",fontSize:12,fontWeight:600,color:"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:"코드그룹"}),h?c.jsx(er,{}):c.jsxs("div",{children:[e.length===0&&c.jsx("div",{style:{padding:20,fontSize:13,color:"var(--uiws-text-faint)"},children:"코드그룹이 없습니다."}),e.map($=>c.jsxs("div",{onClick:()=>l($.grpCd),style:{padding:"11px 16px",cursor:"pointer",fontSize:13,display:"flex",justifyContent:"space-between",alignItems:"center",borderLeft:`3px solid ${o===$.grpCd?"var(--uiws-primary)":"transparent"}`,background:o===$.grpCd?"var(--uiws-primary-soft)":"transparent"},children:[c.jsxs("div",{children:[c.jsx("div",{style:{fontWeight:600,color:o===$.grpCd?"var(--uiws-primary)":"var(--uiws-text)"},children:$.grpNm}),c.jsx("div",{style:{fontSize:11,color:"var(--uiws-text-muted)"},children:$.grpCd})]}),c.jsxs("div",{style:{display:"flex",gap:6},onClick:k=>k.stopPropagation(),children:[c.jsx(ee,{variant:"ghost",onClick:()=>g({open:!0,edit:$}),children:"수정"}),c.jsx(ee,{variant:"ghost",onClick:()=>_($.grpCd),children:"삭제"})]})]},$.grpCd))]})]}),c.jsx(rf,{page:n,totalPages:a,onChange:r})]}),c.jsxs("div",{children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:12},children:[c.jsxs("div",{style:{fontSize:14,fontWeight:600,color:"var(--uiws-text)"},children:["코드값 ",o&&c.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontWeight:400},children:["(",o,")"]})]}),c.jsx(ee,{onClick:()=>w({open:!0,edit:null}),disabled:!s,children:"+ 코드값 등록"})]}),b?c.jsx(er,{}):c.jsx(Oo,{columns:I,rows:(s==null?void 0:s.values)??[],rowKey:$=>`${$.grpCd}:${$.codeVal}`,onRowClick:$=>w({open:!0,edit:$}),empty:o?"코드값이 없습니다.":"코드그룹을 선택하세요."})]})]}),m.open&&c.jsx(tfe,{grp:m.edit,onClose:()=>g({open:!1,edit:null}),onSaved:()=>{g({open:!1,edit:null}),O(d)}}),S.open&&s&&c.jsx(nfe,{grpCd:s.grpCd,code:S.edit,onClose:()=>w({open:!1,edit:null}),onSave:P,onSaved:()=>w({open:!1,edit:null})})]})}function CP({value:e,onChange:t}){return c.jsxs("select",{value:e,onChange:n=>t(n.target.value),style:Jce,children:[c.jsx("option",{value:"Y",children:"사용"}),c.jsx("option",{value:"N",children:"미사용"})]})}function tfe({grp:e,onClose:t,onSaved:n}){const r=!!e,[a,i]=j.useState((e==null?void 0:e.grpCd)??""),[o,l]=j.useState((e==null?void 0:e.grpNm)??""),[s,u]=j.useState((e==null?void 0:e.useYn)??"Y"),[d,f]=j.useState(""),h=async()=>{if(f(""),!r&&!a.trim()){f("그룹코드는 필수입니다.");return}if(!o.trim()){f("그룹명은 필수입니다.");return}try{if(r){const b=(await TP(a)).data.data;await NP(a,{grpCd:a,grpNm:o,useYn:s,values:b.values??[]})}else await kce({grpCd:a,grpNm:o,useYn:s,values:[]});n()}catch(p){f(Zo(p))}};return c.jsxs(rr,{title:r?"코드그룹 수정":"코드그룹 등록",onClose:t,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"ghost",onClick:t,children:"취소"}),c.jsx(ee,{onClick:h,children:"저장"})]}),children:[c.jsx(me,{label:"그룹코드",children:c.jsx(pe,{value:a,onChange:i,style:{width:"100%",opacity:r?.6:1}})}),c.jsx(me,{label:"그룹명",children:c.jsx(pe,{value:o,onChange:l,style:{width:"100%"}})}),c.jsx(me,{label:"사용 여부",children:c.jsx(CP,{value:s,onChange:u})}),d&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:d})]})}function nfe({grpCd:e,code:t,onClose:n,onSave:r,onSaved:a}){const i=!!t,[o,l]=j.useState((t==null?void 0:t.codeVal)??""),[s,u]=j.useState((t==null?void 0:t.codeNm)??""),[d,f]=j.useState(String((t==null?void 0:t.sortOrd)??0)),[h,p]=j.useState((t==null?void 0:t.useYn)??"Y"),[b,v]=j.useState(""),x=async()=>{var y;if(v(""),!i&&!o.trim()){v("코드값은 필수입니다.");return}if(!s.trim()){v("코드명은 필수입니다.");return}try{await r({grpCd:e,codeVal:o,codeNm:s,sortOrd:Number(d)||0,useYn:h},t),a()}catch(m){((y=m==null?void 0:m.response)==null?void 0:y.status)===409?v("이미 존재하는 코드값입니다."):v(Zo(m))}};return c.jsxs(rr,{title:i?"코드값 수정":"코드값 등록",onClose:n,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"ghost",onClick:n,children:"취소"}),c.jsx(ee,{onClick:x,children:"저장"})]}),children:[c.jsx(me,{label:"그룹코드",children:c.jsx(pe,{value:e,onChange:()=>{},style:{width:"100%",opacity:.6}})}),c.jsx(me,{label:"코드값",children:c.jsx(pe,{value:o,onChange:l,style:{width:"100%",opacity:i?.6:1}})}),c.jsx(me,{label:"코드명",children:c.jsx(pe,{value:s,onChange:u,style:{width:"100%"}})}),c.jsx(me,{label:"정렬순서",children:c.jsx(pe,{type:"number",value:d,onChange:f,style:{width:"100%"}})}),c.jsx(me,{label:"사용 여부",children:c.jsx(CP,{value:h,onChange:p})}),b&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:b})]})}function R0(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 rfe(){const[e,t]=j.useState([]),[n,r]=j.useState(""),[a,i]=j.useState(!1),[o,l]=j.useState(""),[s,u]=j.useState({open:!1,edit:null}),d=async()=>{var b;i(!0),l("");try{const v=await zce();t(((b=v.data.data)==null?void 0:b.content)??[])}catch(v){l(R0(v))}finally{i(!1)}};j.useEffect(()=>{d()},[]);const f=j.useMemo(()=>{const b=n.trim().toLowerCase(),v=e.filter(g=>!g.parentMenuId).sort((g,S)=>(g.sortOrd??0)-(S.sortOrd??0)),x=[];for(const g of v)x.push({menu:g,depth:0}),e.filter(S=>S.parentMenuId===g.menuId).sort((S,w)=>(S.sortOrd??0)-(w.sortOrd??0)).forEach(S=>x.push({menu:S,depth:1}));const y=new Set(x.map(g=>g.menu.menuId));e.filter(g=>!y.has(g.menuId)).forEach(g=>x.push({menu:g,depth:0}));let m=x.map(g=>({...g.menu,_depth:g.depth}));return b&&(m=m.filter(g=>(g.menuNm??"").toLowerCase().includes(b)||(g.menuId??"").toLowerCase().includes(b))),m},[e,n]),h=async b=>{if(window.confirm(`메뉴 '${b.menuNm}' 를 삭제하시겠습니까?`))try{await Uce([b.menuId]),await d()}catch(v){l(R0(v))}},p=[{key:"menuNm",header:"메뉴명",render:b=>c.jsxs("span",{style:{paddingLeft:b._depth*22},children:[b._depth>0&&c.jsx("span",{style:{color:"var(--uiws-text-faint)"},children:"└ "}),b.menuNm," ",c.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontSize:12},children:["(",b.menuId,")"]})]})},{key:"menuUrl",header:"URL",width:220,render:b=>b.menuUrl??"-"},{key:"programId",header:"프로그램",width:140,render:b=>b.programId??"-"},{key:"sortOrd",header:"정렬",width:70,align:"center"},{key:"useYn",header:"사용",width:80,align:"center",render:b=>c.jsx(jo,{yn:b.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:b=>c.jsx(ee,{variant:"ghost",onClick:()=>h(b),children:"삭제"})}];return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"메뉴 관리",subtitle:"시스템관리(권한) · 메뉴 트리(2-depth) 등록/수정/삭제",actions:c.jsx(ee,{onClick:()=>u({open:!0,edit:null}),children:"+ 메뉴 등록"})}),o&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:o}),c.jsxs(yi,{children:[c.jsx(pe,{value:n,onChange:r,placeholder:"메뉴명 검색",style:{minWidth:220}}),c.jsx(ee,{variant:"ghost",onClick:()=>r(n),children:"검색"})]}),a?c.jsx(er,{}):c.jsx(Oo,{columns:p,rows:f,rowKey:b=>b.menuId,onRowClick:b=>u({open:!0,edit:b}),empty:"등록된 메뉴가 없습니다."}),s.open&&c.jsx(afe,{menu:s.edit,parents:e.filter(b=>!b.parentMenuId),onClose:()=>u({open:!1,edit:null}),onSaved:()=>{u({open:!1,edit:null}),d()}})]})}function afe({menu:e,parents:t,onClose:n,onSaved:r}){const a=!!e,[i,o]=j.useState((e==null?void 0:e.menuId)??""),[l,s]=j.useState((e==null?void 0:e.menuNm)??""),[u,d]=j.useState((e==null?void 0:e.parentMenuId)??""),[f,h]=j.useState((e==null?void 0:e.programId)??""),[p,b]=j.useState((e==null?void 0:e.menuUrl)??""),[v,x]=j.useState(String((e==null?void 0:e.sortOrd)??0)),[y,m]=j.useState((e==null?void 0:e.useYn)??"Y"),[g,S]=j.useState(""),w=async()=>{if(S(""),!a&&!i.trim()){S("메뉴ID는 필수입니다.");return}if(!l.trim()){S("메뉴명은 필수입니다.");return}try{const A={menuId:i,menuNm:l,parentMenuId:u||null,programId:f||null,menuUrl:p||null,sortOrd:Number(v)||0,useYn:y};a?await Ice(i,A):await Bce(A),r()}catch(A){S(R0(A))}},O={width:"100%",padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)"};return c.jsxs(rr,{title:a?"메뉴 수정":"메뉴 등록",onClose:n,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"ghost",onClick:n,children:"취소"}),c.jsx(ee,{onClick:w,children:"저장"})]}),children:[c.jsx(me,{label:"메뉴ID",children:c.jsx(pe,{value:i,onChange:o,style:{width:"100%",opacity:a?.6:1}})}),c.jsx(me,{label:"메뉴명",children:c.jsx(pe,{value:l,onChange:s,style:{width:"100%"}})}),c.jsx(me,{label:"상위 메뉴",children:c.jsxs("select",{value:u,onChange:A=>d(A.target.value),style:O,children:[c.jsx("option",{value:"",children:"(최상위)"}),t.filter(A=>A.menuId!==i).map(A=>c.jsxs("option",{value:A.menuId,children:[A.menuNm," (",A.menuId,")"]},A.menuId))]})}),c.jsx(me,{label:"프로그램ID",children:c.jsx(pe,{value:f,onChange:h,style:{width:"100%"}})}),c.jsx(me,{label:"메뉴 URL",children:c.jsx(pe,{value:p,onChange:b,style:{width:"100%"}})}),c.jsx(me,{label:"정렬순서",children:c.jsx(pe,{type:"number",value:v,onChange:x,style:{width:"100%"}})}),c.jsx(me,{label:"사용 여부",children:c.jsxs("select",{value:y,onChange:A=>m(A.target.value),style:O,children:[c.jsx("option",{value:"Y",children:"사용"}),c.jsx("option",{value:"N",children:"미사용"})]})}),g&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:g})]})}function P0(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(""),[a,i]=j.useState(!1),[o,l]=j.useState(""),[s,u]=j.useState({open:!1,edit:null}),d=async()=>{var b;i(!0),l("");try{const v=await Hce();t(((b=v.data.data)==null?void 0:b.content)??[])}catch(v){l(P0(v))}finally{i(!1)}};j.useEffect(()=>{d()},[]);const f=j.useMemo(()=>{const b=n.trim().toLowerCase(),v=e.filter(m=>!m.parentDeptId).sort((m,g)=>(m.sortOrd??0)-(g.sortOrd??0)),x=[];for(const m of v)x.push({...m,_depth:0}),e.filter(g=>g.parentDeptId===m.deptId).sort((g,S)=>(g.sortOrd??0)-(S.sortOrd??0)).forEach(g=>x.push({...g,_depth:1}));const y=new Set(x.map(m=>m.deptId));return e.filter(m=>!y.has(m.deptId)).forEach(m=>x.push({...m,_depth:0})),b?x.filter(m=>(m.deptNm??"").toLowerCase().includes(b)||(m.deptId??"").toLowerCase().includes(b)):x},[e,n]),h=async b=>{if(window.confirm(`부서 '${b.deptNm}' 를 삭제하시겠습니까?`))try{await Gce(b.deptId),await d()}catch(v){l(P0(v))}},p=[{key:"deptNm",header:"부서명",render:b=>c.jsxs("span",{style:{paddingLeft:b._depth*22},children:[b._depth>0&&c.jsx("span",{style:{color:"var(--uiws-text-faint)"},children:"└ "}),b.deptNm," ",c.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontSize:12},children:["(",b.deptId,")"]})]})},{key:"sortOrd",header:"정렬",width:70,align:"center"},{key:"useYn",header:"사용",width:80,align:"center",render:b=>c.jsx(jo,{yn:b.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:b=>c.jsx(ee,{variant:"ghost",onClick:()=>h(b),children:"삭제"})}];return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"부서 관리",subtitle:"시스템관리(권한) · 부서 트리(2-depth) 등록/수정/삭제",actions:c.jsx(ee,{onClick:()=>u({open:!0,edit:null}),children:"+ 부서 등록"})}),o&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:o}),c.jsxs(yi,{children:[c.jsx(pe,{value:n,onChange:r,placeholder:"부서명 검색",style:{minWidth:220}}),c.jsx(ee,{variant:"ghost",onClick:()=>r(n),children:"검색"})]}),a?c.jsx(er,{}):c.jsx(Oo,{columns:p,rows:f,rowKey:b=>b.deptId,onRowClick:b=>u({open:!0,edit:b}),empty:"등록된 부서가 없습니다."}),s.open&&c.jsx(ofe,{dept:s.edit,parents:e.filter(b=>!b.parentDeptId),onClose:()=>u({open:!1,edit:null}),onSaved:()=>{u({open:!1,edit:null}),d()}})]})}function ofe({dept:e,parents:t,onClose:n,onSaved:r}){const a=!!e,[i,o]=j.useState((e==null?void 0:e.deptId)??""),[l,s]=j.useState((e==null?void 0:e.deptNm)??""),[u,d]=j.useState((e==null?void 0:e.parentDeptId)??""),[f,h]=j.useState(String((e==null?void 0:e.sortOrd)??0)),[p,b]=j.useState((e==null?void 0:e.useYn)??"Y"),[v,x]=j.useState(""),y={width:"100%",padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)"},m=async()=>{if(x(""),!a&&!i.trim()){x("부서ID는 필수입니다.");return}if(!l.trim()){x("부서명은 필수입니다.");return}try{const g={deptId:i,deptNm:l,parentDeptId:u||null,sortOrd:Number(f)||0,useYn:p};a?await Fce(i,g):await qce(g),r()}catch(g){x(P0(g))}};return c.jsxs(rr,{title:a?"부서 수정":"부서 등록",onClose:n,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"ghost",onClick:n,children:"취소"}),c.jsx(ee,{onClick:m,children:"저장"})]}),children:[c.jsx(me,{label:"부서ID",children:c.jsx(pe,{value:i,onChange:o,style:{width:"100%",opacity:a?.6:1}})}),c.jsx(me,{label:"부서명",children:c.jsx(pe,{value:l,onChange:s,style:{width:"100%"}})}),c.jsx(me,{label:"상위 부서",children:c.jsxs("select",{value:u,onChange:g=>d(g.target.value),style:y,children:[c.jsx("option",{value:"",children:"(최상위)"}),t.filter(g=>g.deptId!==i).map(g=>c.jsxs("option",{value:g.deptId,children:[g.deptNm," (",g.deptId,")"]},g.deptId))]})}),c.jsx(me,{label:"정렬순서",children:c.jsx(pe,{type:"number",value:f,onChange:h,style:{width:"100%"}})}),c.jsx(me,{label:"사용 여부",children:c.jsxs("select",{value:p,onChange:g=>b(g.target.value),style:y,children:[c.jsx("option",{value:"Y",children:"사용"}),c.jsx("option",{value:"N",children:"미사용"})]})}),v&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:v})]})}function $0(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 lfe(){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(""),[h,p]=j.useState({open:!1,edit:null}),b=async(m=o,g=n)=>{u(!0),f("");try{const w=(await Kce(m||void 0,g)).data.data;t((w==null?void 0:w.content)??[]),i(c1(w))}catch(S){f($0(S))}finally{u(!1)}};j.useEffect(()=>{b(o,n)},[n]);const v=()=>{n===0?b(o,0):r(0)},x=async m=>{if(window.confirm(`거래처 '${m.companyNm}' 를 삭제하시겠습니까?`))try{await Xce([m.companyId]),await b()}catch(g){f($0(g))}},y=[{key:"companyId",header:"거래처ID",width:180},{key:"companyNm",header:"거래처명"},{key:"bizNo",header:"사업자번호",width:180,render:m=>m.bizNo??"-"},{key:"useYn",header:"사용",width:80,align:"center",render:m=>c.jsx(jo,{yn:m.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:m=>c.jsx(ee,{variant:"ghost",onClick:()=>x(m),children:"삭제"})}];return c.jsxs("div",{className:"uiws-scope",children:[c.jsx(Rr,{title:"거래처 관리",subtitle:"시스템관리(권한) · 거래처(근무처) 등록/수정/삭제",actions:c.jsx(ee,{onClick:()=>p({open:!0,edit:null}),children:"+ 거래처 등록"})}),d&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:d}),c.jsxs(yi,{children:[c.jsx(pe,{value:o,onChange:l,placeholder:"거래처명 검색",style:{minWidth:220}}),c.jsx(ee,{variant:"ghost",onClick:v,children:"검색"})]}),s?c.jsx(er,{}):c.jsxs(c.Fragment,{children:[c.jsx(Oo,{columns:y,rows:e,rowKey:m=>m.companyId,onRowClick:m=>p({open:!0,edit:m}),empty:"등록된 거래처가 없습니다."}),c.jsx(rf,{page:n,totalPages:a,onChange:r})]}),h.open&&c.jsx(sfe,{company:h.edit,onClose:()=>p({open:!1,edit:null}),onSaved:()=>{p({open:!1,edit:null}),b()}})]})}function sfe({company:e,onClose:t,onSaved:n}){const r=!!e,[a,i]=j.useState((e==null?void 0:e.companyId)??""),[o,l]=j.useState((e==null?void 0:e.companyNm)??""),[s,u]=j.useState((e==null?void 0:e.bizNo)??""),[d,f]=j.useState((e==null?void 0:e.useYn)??"Y"),[h,p]=j.useState(""),b=async()=>{if(p(""),!r&&!a.trim()){p("거래처ID는 필수입니다.");return}if(!o.trim()){p("거래처명은 필수입니다.");return}try{const v={companyId:a,companyNm:o,bizNo:s||null,useYn:d};r?await Vce(a,v):await Yce(v),n()}catch(v){p($0(v))}};return c.jsxs(rr,{title:r?"거래처 수정":"거래처 등록",onClose:t,footer:c.jsxs(c.Fragment,{children:[c.jsx(ee,{variant:"ghost",onClick:t,children:"취소"}),c.jsx(ee,{onClick:b,children:"저장"})]}),children:[c.jsx(me,{label:"거래처ID",children:c.jsx(pe,{value:a,onChange:i,style:{width:"100%",opacity:r?.6:1}})}),c.jsx(me,{label:"거래처명",children:c.jsx(pe,{value:o,onChange:l,style:{width:"100%"}})}),c.jsx(me,{label:"사업자번호",children:c.jsx(pe,{value:s,onChange:u,style:{width:"100%"}})}),c.jsx(me,{label:"사용 여부",children:c.jsxs("select",{value:d,onChange:v=>f(v.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:"Y",children:"사용"}),c.jsx("option",{value:"N",children:"미사용"})]})}),h&&c.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}const ufe=new Rk;function cfe(){return c.jsx(Pk,{client:ufe,children:c.jsx(ZD,{children:c.jsxs(TD,{children:[c.jsx(Ee,{path:"/login",element:c.jsx(Uz,{})}),c.jsxs(Ee,{element:c.jsx(wz,{}),children:[c.jsx(Ee,{path:"/dashboard",element:c.jsx(Due,{})}),c.jsx(Ee,{path:"/stores",element:c.jsx(kue,{})}),c.jsx(Ee,{path:"/templates",element:c.jsx(zue,{})}),c.jsx(Ee,{path:"/pos-cvt",element:c.jsx(Iue,{})}),c.jsx(Ee,{path:"/tag-binding",element:c.jsx(sce,{})}),c.jsx(Ee,{path:"/update-queue",element:c.jsx(uce,{})}),c.jsx(Ee,{path:"/alarms",element:c.jsx(Hue,{})}),c.jsx(Ee,{path:"/hcore",element:c.jsx(Gue,{})}),c.jsx(Ee,{path:"/works",element:c.jsx(Yue,{})}),c.jsx(Ee,{path:"/firmware",element:c.jsx(Vue,{})}),c.jsx(Ee,{path:"/products",element:c.jsx(Zue,{})}),c.jsx(Ee,{path:"/users",element:c.jsx(Que,{})}),c.jsx(Ee,{path:"/tenants",element:c.jsx(ece,{})}),c.jsx(Ee,{path:"/audit",element:c.jsx(dce,{})}),c.jsx(Ee,{path:"/settings",element:c.jsx(pce,{})}),c.jsx(Ee,{path:"/ai",element:c.jsx(nce,{})}),c.jsx(Ee,{path:"/ai-techniques",element:c.jsx(ace,{})}),c.jsx(Ee,{path:"/worklogs",element:c.jsx(vce,{})}),c.jsx(Ee,{path:"/schedules",element:c.jsx(Sce,{})}),c.jsx(Ee,{path:"/messages",element:c.jsx(jce,{})}),c.jsx(Ee,{path:"/work-stats",element:c.jsx(_ce,{})}),c.jsx(Ee,{path:"/system/roles",element:c.jsx(Qce,{})}),c.jsx(Ee,{path:"/system/role-menus",element:c.jsx(Zce,{})}),c.jsx(Ee,{path:"/system/codes",element:c.jsx(efe,{})}),c.jsx(Ee,{path:"/system/menus",element:c.jsx(rfe,{})}),c.jsx(Ee,{path:"/system/depts",element:c.jsx(ife,{})}),c.jsx(Ee,{path:"/system/companies",element:c.jsx(lfe,{})}),c.jsx(Ee,{path:"/mobile-app",element:c.jsx(mce,{})})]}),c.jsx(Ee,{path:"*",element:c.jsx(XT,{to:"/dashboard",replace:!0})})]})})})}_4.createRoot(document.getElementById("root")).render(c.jsx(j.StrictMode,{children:c.jsx(cfe,{})}));
