576 lines
1023 KiB
JavaScript
576 lines
1023 KiB
JavaScript
var lj=e=>{throw TypeError(e)};var dy=(e,t,n)=>t.has(e)||lj("Cannot "+n);var q=(e,t,n)=>(dy(e,t,"read from private field"),n?n.call(e):t.get(e)),we=(e,t,n)=>t.has(e)?lj("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),de=(e,t,n,r)=>(dy(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),It=(e,t,n)=>(dy(e,t,"access private method"),n);var Lf=(e,t,n,r)=>({set _(a){de(e,t,a,n)},get _(){return q(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 l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).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 zf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Me(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var BA={exports:{}},Rp={};/**
|
||
* @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 y$=Symbol.for("react.transitional.element"),v$=Symbol.for("react.fragment");function UA(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:y$,type:e,key:r,ref:t!==void 0?t:null,props:n}}Rp.Fragment=v$;Rp.jsx=UA;Rp.jsxs=UA;BA.exports=Rp;var s=BA.exports,qA={exports:{}},me={};/**
|
||
* @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 Tb=Symbol.for("react.transitional.element"),g$=Symbol.for("react.portal"),x$=Symbol.for("react.fragment"),b$=Symbol.for("react.strict_mode"),j$=Symbol.for("react.profiler"),S$=Symbol.for("react.consumer"),w$=Symbol.for("react.context"),O$=Symbol.for("react.forward_ref"),N$=Symbol.for("react.suspense"),A$=Symbol.for("react.memo"),HA=Symbol.for("react.lazy"),E$=Symbol.for("react.activity"),oj=Symbol.iterator;function C$(e){return e===null||typeof e!="object"?null:(e=oj&&e[oj]||e["@@iterator"],typeof e=="function"?e:null)}var FA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},GA=Object.assign,KA={};function Do(e,t,n){this.props=e,this.context=t,this.refs=KA,this.updater=n||FA}Do.prototype.isReactComponent={};Do.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")};Do.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function YA(){}YA.prototype=Do.prototype;function kb(e,t,n){this.props=e,this.context=t,this.refs=KA,this.updater=n||FA}var Mb=kb.prototype=new YA;Mb.constructor=kb;GA(Mb,Do.prototype);Mb.isPureReactComponent=!0;var cj=Array.isArray;function Iv(){}var et={H:null,A:null,T:null,S:null},VA=Object.prototype.hasOwnProperty;function Pb(e,t,n){var r=n.ref;return{$$typeof:Tb,type:e,key:t,ref:r!==void 0?r:null,props:n}}function _$(e,t){return Pb(e.type,t,e.props)}function $b(e){return typeof e=="object"&&e!==null&&e.$$typeof===Tb}function T$(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var uj=/\/+/g;function hy(e,t){return typeof e=="object"&&e!==null&&e.key!=null?T$(""+e.key):t.toString(36)}function k$(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Iv,Iv):(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 rl(e,t,n,r,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Tb:case g$:l=!0;break;case HA:return l=e._init,rl(l(e._payload),t,n,r,a)}}if(l)return a=a(e),l=r===""?"."+hy(e,0):r,cj(a)?(n="",l!=null&&(n=l.replace(uj,"$&/")+"/"),rl(a,t,n,"",function(u){return u})):a!=null&&($b(a)&&(a=_$(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(uj,"$&/")+"/")+l)),t.push(a)),1;l=0;var o=r===""?".":r+":";if(cj(e))for(var c=0;c<e.length;c++)r=e[c],i=o+hy(r,c),l+=rl(r,t,n,i,a);else if(c=C$(e),typeof c=="function")for(e=c.call(e),c=0;!(r=e.next()).done;)r=r.value,i=o+hy(r,c++),l+=rl(r,t,n,i,a);else if(i==="object"){if(typeof e.then=="function")return rl(k$(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 l}function If(e,t,n){if(e==null)return e;var r=[],a=0;return rl(e,r,"","",function(i){return t.call(n,i,a++)}),r}function M$(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 fj=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)},P$={map:If,forEach:function(e,t,n){If(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return If(e,function(){t++}),t},toArray:function(e){return If(e,function(t){return t})||[]},only:function(e){if(!$b(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};me.Activity=E$;me.Children=P$;me.Component=Do;me.Fragment=x$;me.Profiler=j$;me.PureComponent=kb;me.StrictMode=b$;me.Suspense=N$;me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=et;me.__COMPILER_RUNTIME={__proto__:null,c:function(e){return et.H.useMemoCache(e)}};me.cache=function(e){return function(){return e.apply(null,arguments)}};me.cacheSignal=function(){return null};me.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=GA({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!VA.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 l=Array(i),o=0;o<i;o++)l[o]=arguments[o+2];r.children=l}return Pb(e.type,a,r)};me.createContext=function(e){return e={$$typeof:w$,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:S$,_context:e},e};me.createElement=function(e,t,n){var r,a={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)VA.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(a[r]=t[r]);var l=arguments.length-2;if(l===1)a.children=n;else if(1<l){for(var o=Array(l),c=0;c<l;c++)o[c]=arguments[c+2];a.children=o}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)a[r]===void 0&&(a[r]=l[r]);return Pb(e,i,a)};me.createRef=function(){return{current:null}};me.forwardRef=function(e){return{$$typeof:O$,render:e}};me.isValidElement=$b;me.lazy=function(e){return{$$typeof:HA,_payload:{_status:-1,_result:e},_init:M$}};me.memo=function(e,t){return{$$typeof:A$,type:e,compare:t===void 0?null:t}};me.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(Iv,fj)}catch(i){fj(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),et.T=t}};me.unstable_useCacheRefresh=function(){return et.H.useCacheRefresh()};me.use=function(e){return et.H.use(e)};me.useActionState=function(e,t,n){return et.H.useActionState(e,t,n)};me.useCallback=function(e,t){return et.H.useCallback(e,t)};me.useContext=function(e){return et.H.useContext(e)};me.useDebugValue=function(){};me.useDeferredValue=function(e,t){return et.H.useDeferredValue(e,t)};me.useEffect=function(e,t){return et.H.useEffect(e,t)};me.useEffectEvent=function(e){return et.H.useEffectEvent(e)};me.useId=function(){return et.H.useId()};me.useImperativeHandle=function(e,t,n){return et.H.useImperativeHandle(e,t,n)};me.useInsertionEffect=function(e,t){return et.H.useInsertionEffect(e,t)};me.useLayoutEffect=function(e,t){return et.H.useLayoutEffect(e,t)};me.useMemo=function(e,t){return et.H.useMemo(e,t)};me.useOptimistic=function(e,t){return et.H.useOptimistic(e,t)};me.useReducer=function(e,t,n){return et.H.useReducer(e,t,n)};me.useRef=function(e){return et.H.useRef(e)};me.useState=function(e){return et.H.useState(e)};me.useSyncExternalStore=function(e,t,n){return et.H.useSyncExternalStore(e,t,n)};me.useTransition=function(){return et.H.useTransition()};me.version="19.2.7";qA.exports=me;var w=qA.exports;const T=Me(w);var WA={exports:{}},Dp={},XA={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(P,I){var z=P.length;P.push(I);e:for(;0<z;){var G=z-1>>>1,V=P[G];if(0<a(V,I))P[G]=I,P[z]=V,z=G;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var I=P[0],z=P.pop();if(z!==I){P[0]=z;e:for(var G=0,V=P.length,Z=V>>>1;G<Z;){var X=2*(G+1)-1,ee=P[X],ie=X+1,Ne=P[ie];if(0>a(ee,z))ie<V&&0>a(Ne,ee)?(P[G]=Ne,P[ie]=z,G=ie):(P[G]=ee,P[X]=z,G=X);else if(ie<V&&0>a(Ne,z))P[G]=Ne,P[ie]=z,G=ie;else break e}}return I}function a(P,I){var z=P.sortIndex-I.sortIndex;return z!==0?z:P.id-I.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 l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var c=[],u=[],f=1,d=null,h=3,m=!1,j=!1,y=!1,p=!1,v=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;function x(P){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=P)r(u),I.sortIndex=I.expirationTime,t(c,I);else break;I=n(u)}}function O(P){if(y=!1,x(P),!j)if(n(c)!==null)j=!0,S||(S=!0,M());else{var I=n(u);I!==null&&E(O,I.startTime-P)}}var S=!1,N=-1,A=5,C=-1;function k(){return p?!0:!(e.unstable_now()-C<A)}function R(){if(p=!1,S){var P=e.unstable_now();C=P;var I=!0;try{e:{j=!1,y&&(y=!1,g(N),N=-1),m=!0;var z=h;try{t:{for(x(P),d=n(c);d!==null&&!(d.expirationTime>P&&k());){var G=d.callback;if(typeof G=="function"){d.callback=null,h=d.priorityLevel;var V=G(d.expirationTime<=P);if(P=e.unstable_now(),typeof V=="function"){d.callback=V,x(P),I=!0;break t}d===n(c)&&r(c),x(P)}else r(c);d=n(c)}if(d!==null)I=!0;else{var Z=n(u);Z!==null&&E(O,Z.startTime-P),I=!1}}break e}finally{d=null,h=z,m=!1}I=void 0}}finally{I?M():S=!1}}}var M;if(typeof b=="function")M=function(){b(R)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,_=B.port2;B.port1.onmessage=R,M=function(){_.postMessage(null)}}else M=function(){v(R,0)};function E(P,I){N=v(function(){P(e.unstable_now())},I)}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(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(P){switch(h){case 1:case 2:case 3:var I=3;break;default:I=h}var z=h;h=I;try{return P()}finally{h=z}},e.unstable_requestPaint=function(){p=!0},e.unstable_runWithPriority=function(P,I){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var z=h;h=P;try{return I()}finally{h=z}},e.unstable_scheduleCallback=function(P,I,z){var G=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?G+z:G):z=G,P){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=z+V,P={id:f++,callback:I,priorityLevel:P,startTime:z,expirationTime:V,sortIndex:-1},z>G?(P.sortIndex=z,t(u,P),n(c)===null&&P===n(u)&&(y?(g(N),N=-1):y=!0,E(O,z-G))):(P.sortIndex=V,t(c,P),j||m||(j=!0,S||(S=!0,M()))),P},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(P){var I=h;return function(){var z=h;h=I;try{return P.apply(this,arguments)}finally{h=z}}}})(QA);XA.exports=QA;var $$=XA.exports,ZA={exports:{}},cn={};/**
|
||
* @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 R$=w;function JA(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 Ha(){}var nn={d:{f:Ha,r:function(){throw Error(JA(522))},D:Ha,C:Ha,L:Ha,m:Ha,X:Ha,S:Ha,M:Ha},p:0,findDOMNode:null},D$=Symbol.for("react.portal");function L$(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:D$,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var $c=R$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Lp(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}cn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=nn;cn.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(JA(299));return L$(e,t,null,n)};cn.flushSync=function(e){var t=$c.T,n=nn.p;try{if($c.T=null,nn.p=2,e)return e()}finally{$c.T=t,nn.p=n,nn.d.f()}};cn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,nn.d.C(e,t))};cn.prefetchDNS=function(e){typeof e=="string"&&nn.d.D(e)};cn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=Lp(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?nn.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:i}):n==="script"&&nn.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};cn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Lp(t.as,t.crossOrigin);nn.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&&nn.d.M(e)};cn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=Lp(n,t.crossOrigin);nn.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})}};cn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Lp(t.as,t.crossOrigin);nn.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 nn.d.m(e)};cn.requestFormReset=function(e){nn.d.r(e)};cn.unstable_batchedUpdates=function(e,t){return e(t)};cn.useFormState=function(e,t,n){return $c.H.useFormState(e,t,n)};cn.useFormStatus=function(){return $c.H.useHostTransitionStatus()};cn.version="19.2.7";function eE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eE)}catch(e){console.error(e)}}eE(),ZA.exports=cn;var z$=ZA.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 Tt=$$,tE=w,I$=z$;function F(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 nE(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function sf(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 rE(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 aE(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 dj(e){if(sf(e)!==e)throw Error(F(188))}function B$(e){var t=e.alternate;if(!t){if(t=sf(e),t===null)throw Error(F(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 dj(a),e;if(i===r)return dj(a),t;i=i.sibling}throw Error(F(188))}if(n.return!==r.return)n=a,r=i;else{for(var l=!1,o=a.child;o;){if(o===n){l=!0,n=a,r=i;break}if(o===r){l=!0,r=a,n=i;break}o=o.sibling}if(!l){for(o=i.child;o;){if(o===n){l=!0,n=i,r=a;break}if(o===r){l=!0,r=i,n=a;break}o=o.sibling}if(!l)throw Error(F(189))}}if(n.alternate!==r)throw Error(F(190))}if(n.tag!==3)throw Error(F(188));return n.stateNode.current===n?e:t}function iE(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=iE(e),t!==null)return t;e=e.sibling}return null}var tt=Object.assign,U$=Symbol.for("react.element"),Bf=Symbol.for("react.transitional.element"),Cc=Symbol.for("react.portal"),sl=Symbol.for("react.fragment"),sE=Symbol.for("react.strict_mode"),Bv=Symbol.for("react.profiler"),lE=Symbol.for("react.consumer"),pa=Symbol.for("react.context"),Rb=Symbol.for("react.forward_ref"),Uv=Symbol.for("react.suspense"),qv=Symbol.for("react.suspense_list"),Db=Symbol.for("react.memo"),Ka=Symbol.for("react.lazy"),Hv=Symbol.for("react.activity"),q$=Symbol.for("react.memo_cache_sentinel"),hj=Symbol.iterator;function cc(e){return e===null||typeof e!="object"?null:(e=hj&&e[hj]||e["@@iterator"],typeof e=="function"?e:null)}var H$=Symbol.for("react.client.reference");function Fv(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===H$?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case sl:return"Fragment";case Bv:return"Profiler";case sE:return"StrictMode";case Uv:return"Suspense";case qv:return"SuspenseList";case Hv:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Cc:return"Portal";case pa:return e.displayName||"Context";case lE:return(e._context.displayName||"Context")+".Consumer";case Rb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Db:return t=e.displayName||null,t!==null?t:Fv(e.type)||"Memo";case Ka:t=e._payload,e=e._init;try{return Fv(e(t))}catch{}}return null}var _c=Array.isArray,fe=tE.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Te=I$.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ps={pending:!1,data:null,method:null,action:null},Gv=[],ll=-1;function Xr(e){return{current:e}}function Lt(e){0>ll||(e.current=Gv[ll],Gv[ll]=null,ll--)}function Ge(e,t){ll++,Gv[ll]=e.current,e.current=t}var Fr=Xr(null),ru=Xr(null),pi=Xr(null),Wd=Xr(null);function Xd(e,t){switch(Ge(pi,t),Ge(ru,e),Ge(Fr,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?xS(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=xS(t),e=E_(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Lt(Fr),Ge(Fr,e)}function Gl(){Lt(Fr),Lt(ru),Lt(pi)}function Kv(e){e.memoizedState!==null&&Ge(Wd,e);var t=Fr.current,n=E_(t,e.type);t!==n&&(Ge(ru,e),Ge(Fr,n))}function Qd(e){ru.current===e&&(Lt(Fr),Lt(ru)),Wd.current===e&&(Lt(Wd),pu._currentValue=ps)}var py,pj;function Vi(e){if(py===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);py=t&&t[1]||"",pj=-1<n.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+py+e+pj}var my=!1;function yy(e,t){if(!e||my)return"";my=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(m){var h=m}Reflect.construct(e,[],d)}else{try{d.call()}catch(m){h=m}e.call(d.prototype)}}else{try{throw Error()}catch(m){h=m}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(m){if(m&&h&&typeof m.stack=="string")return[m.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(),l=i[0],o=i[1];if(l&&o){var c=l.split(`
|
||
`),u=o.split(`
|
||
`);for(a=r=0;r<c.length&&!c[r].includes("DetermineComponentFrameRoot");)r++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(r===c.length||a===u.length)for(r=c.length-1,a=u.length-1;1<=r&&0<=a&&c[r]!==u[a];)a--;for(;1<=r&&0<=a;r--,a--)if(c[r]!==u[a]){if(r!==1||a!==1)do if(r--,a--,0>a||c[r]!==u[a]){var f=`
|
||
`+c[r].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=r&&0<=a);break}}}finally{my=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Vi(n):""}function F$(e,t){switch(e.tag){case 26:case 27:case 5:return Vi(e.type);case 16:return Vi("Lazy");case 13:return e.child!==t&&t!==null?Vi("Suspense Fallback"):Vi("Suspense");case 19:return Vi("SuspenseList");case 0:case 15:return yy(e.type,!1);case 11:return yy(e.type.render,!1);case 1:return yy(e.type,!0);case 31:return Vi("Activity");default:return""}}function mj(e){try{var t="",n=null;do t+=F$(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
|
||
Error generating stack: `+r.message+`
|
||
`+r.stack}}var Yv=Object.prototype.hasOwnProperty,Lb=Tt.unstable_scheduleCallback,vy=Tt.unstable_cancelCallback,G$=Tt.unstable_shouldYield,K$=Tt.unstable_requestPaint,Tn=Tt.unstable_now,Y$=Tt.unstable_getCurrentPriorityLevel,oE=Tt.unstable_ImmediatePriority,cE=Tt.unstable_UserBlockingPriority,Zd=Tt.unstable_NormalPriority,V$=Tt.unstable_LowPriority,uE=Tt.unstable_IdlePriority,W$=Tt.log,X$=Tt.unstable_setDisableYieldValue,lf=null,kn=null;function si(e){if(typeof W$=="function"&&X$(e),kn&&typeof kn.setStrictMode=="function")try{kn.setStrictMode(lf,e)}catch{}}var Mn=Math.clz32?Math.clz32:J$,Q$=Math.log,Z$=Math.LN2;function J$(e){return e>>>=0,e===0?32:31-(Q$(e)/Z$|0)|0}var Uf=256,qf=262144,Hf=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 zp(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var a=0,i=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var o=r&134217727;return o!==0?(r=o&~i,r!==0?a=Wi(r):(l&=o,l!==0?a=Wi(l):n||(n=o&~e,n!==0&&(a=Wi(n))))):(o=r&~i,o!==0?a=Wi(o):l!==0?a=Wi(l):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 of(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function eR(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 fE(){var e=Hf;return Hf<<=1,!(Hf&62914560)&&(Hf=4194304),e}function gy(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function cf(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function tR(e,t,n,r,a,i){var l=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 o=e.entanglements,c=e.expirationTimes,u=e.hiddenUpdates;for(n=l&~n;0<n;){var f=31-Mn(n),d=1<<f;o[f]=0,c[f]=-1;var h=u[f];if(h!==null)for(u[f]=null,f=0;f<h.length;f++){var m=h[f];m!==null&&(m.lane&=-536870913)}n&=~d}r!==0&&dE(e,r,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(l&~t))}function dE(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Mn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function hE(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Mn(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function pE(e,t){var n=t&-t;return n=n&42?1:zb(n),n&(e.suspendedLanes|t)?0:n}function zb(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 Ib(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function mE(){var e=Te.p;return e!==0?e:(e=window.event,e===void 0?32:z_(e.type))}function yj(e,t){var n=Te.p;try{return Te.p=e,t()}finally{Te.p=n}}var Pi=Math.random().toString(36).slice(2),qt="__reactFiber$"+Pi,gn="__reactProps$"+Pi,Lo="__reactContainer$"+Pi,Vv="__reactEvents$"+Pi,nR="__reactListeners$"+Pi,rR="__reactHandles$"+Pi,vj="__reactResources$"+Pi,uf="__reactMarker$"+Pi;function Bb(e){delete e[qt],delete e[gn],delete e[Vv],delete e[nR],delete e[rR]}function ol(e){var t=e[qt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Lo]||n[qt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=OS(e);e!==null;){if(n=e[qt])return n;e=OS(e)}return t}e=n,n=e.parentNode}return null}function zo(e){if(e=e[qt]||e[Lo]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Tc(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(F(33))}function Nl(e){var t=e[vj];return t||(t=e[vj]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Rt(e){e[uf]=!0}var yE=new Set,vE={};function Ls(e,t){Kl(e,t),Kl(e+"Capture",t)}function Kl(e,t){for(vE[e]=t,e=0;e<t.length;e++)yE.add(t[e])}var aR=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]*$"),gj={},xj={};function iR(e){return Yv.call(xj,e)?!0:Yv.call(gj,e)?!1:aR.test(e)?xj[e]=!0:(gj[e]=!0,!1)}function Ad(e,t,n){if(iR(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 Ff(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 na(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 Yn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sR(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(l){n=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wv(e){if(!e._valueTracker){var t=gE(e)?"checked":"value";e._valueTracker=sR(e,t,""+e[t])}}function xE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jd(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 lR=/[\n"\\]/g;function Xn(e){return e.replace(lR,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Xv(e,t,n,r,a,i,l,o){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Yn(t)):e.value!==""+Yn(t)&&(e.value=""+Yn(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?Qv(e,l,Yn(t)):n!=null?Qv(e,l,Yn(n)):r!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+Yn(o):e.removeAttribute("name")}function bE(e,t,n,r,a,i,l,o){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)){Wv(e);return}n=n!=null?""+Yn(n):"",t=t!=null?""+Yn(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),Wv(e)}function Qv(e,t,n){t==="number"&&Jd(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Al(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=""+Yn(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function jE(e,t,n){if(t!=null&&(t=""+Yn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Yn(n):""}function SE(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(F(92));if(_c(r)){if(1<r.length)throw Error(F(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=Yn(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),Wv(e)}function Yl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var oR=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 bj(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||oR.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function wE(e,t,n){if(t!=null&&typeof t!="object")throw Error(F(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&&bj(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&bj(e,i,t[i])}function Ub(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 cR=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"]]),uR=/^[\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 Ed(e){return uR.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ma(){}var Zv=null;function qb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cl=null,El=null;function jj(e){var t=zo(e);if(t&&(e=t.stateNode)){var n=e[gn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Xv(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="'+Xn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[gn]||null;if(!a)throw Error(F(90));Xv(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&&xE(r)}break e;case"textarea":jE(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Al(e,!!n.multiple,t,!1)}}}var xy=!1;function OE(e,t,n){if(xy)return e(t,n);xy=!0;try{var r=e(t);return r}finally{if(xy=!1,(cl!==null||El!==null)&&(Xp(),cl&&(t=cl,e=El,El=cl=null,jj(t),e)))for(t=0;t<e.length;t++)jj(e[t])}}function au(e,t){var n=e.stateNode;if(n===null)return null;var r=n[gn]||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(F(231,t,typeof n));return n}var Na=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jv=!1;if(Na)try{var uc={};Object.defineProperty(uc,"passive",{get:function(){Jv=!0}}),window.addEventListener("test",uc,uc),window.removeEventListener("test",uc,uc)}catch{Jv=!1}var li=null,Hb=null,Cd=null;function NE(){if(Cd)return Cd;var e,t=Hb,n=t.length,r,a="value"in li?li.value:li.textContent,i=a.length;for(e=0;e<n&&t[e]===a[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===a[i-r];r++);return Cd=a.slice(e,1<r?1-r:void 0)}function _d(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 Gf(){return!0}function Sj(){return!1}function xn(e){function t(n,r,a,i,l){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Gf:Sj,this.isPropagationStopped=Sj,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=Gf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gf)},persist:function(){},isPersistent:Gf}),t}var zs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ip=xn(zs),ff=tt({},zs,{view:0,detail:0}),fR=xn(ff),by,jy,fc,Bp=tt({},ff,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fb,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!==fc&&(fc&&e.type==="mousemove"?(by=e.screenX-fc.screenX,jy=e.screenY-fc.screenY):jy=by=0,fc=e),by)},movementY:function(e){return"movementY"in e?e.movementY:jy}}),wj=xn(Bp),dR=tt({},Bp,{dataTransfer:0}),hR=xn(dR),pR=tt({},ff,{relatedTarget:0}),Sy=xn(pR),mR=tt({},zs,{animationName:0,elapsedTime:0,pseudoElement:0}),yR=xn(mR),vR=tt({},zs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gR=xn(vR),xR=tt({},zs,{data:0}),Oj=xn(xR),bR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jR={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"},SR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wR(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=SR[e])?!!t[e]:!1}function Fb(){return wR}var OR=tt({},ff,{key:function(e){if(e.key){var t=bR[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_d(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?jR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fb,charCode:function(e){return e.type==="keypress"?_d(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_d(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),NR=xn(OR),AR=tt({},Bp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nj=xn(AR),ER=tt({},ff,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fb}),CR=xn(ER),_R=tt({},zs,{propertyName:0,elapsedTime:0,pseudoElement:0}),TR=xn(_R),kR=tt({},Bp,{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}),MR=xn(kR),PR=tt({},zs,{newState:0,oldState:0}),$R=xn(PR),RR=[9,13,27,32],Gb=Na&&"CompositionEvent"in window,Rc=null;Na&&"documentMode"in document&&(Rc=document.documentMode);var DR=Na&&"TextEvent"in window&&!Rc,AE=Na&&(!Gb||Rc&&8<Rc&&11>=Rc),Aj=" ",Ej=!1;function EE(e,t){switch(e){case"keyup":return RR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function CE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ul=!1;function LR(e,t){switch(e){case"compositionend":return CE(t);case"keypress":return t.which!==32?null:(Ej=!0,Aj);case"textInput":return e=t.data,e===Aj&&Ej?null:e;default:return null}}function zR(e,t){if(ul)return e==="compositionend"||!Gb&&EE(e,t)?(e=NE(),Cd=Hb=li=null,ul=!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 AE&&t.locale!=="ko"?null:t.data;default:return null}}var IR={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 Cj(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!IR[e.type]:t==="textarea"}function _E(e,t,n,r){cl?El?El.push(r):El=[r]:cl=r,t=vh(t,"onChange"),0<t.length&&(n=new Ip("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Dc=null,iu=null;function BR(e){O_(e,0)}function Up(e){var t=Tc(e);if(xE(t))return e}function _j(e,t){if(e==="change")return t}var TE=!1;if(Na){var wy;if(Na){var Oy="oninput"in document;if(!Oy){var Tj=document.createElement("div");Tj.setAttribute("oninput","return;"),Oy=typeof Tj.oninput=="function"}wy=Oy}else wy=!1;TE=wy&&(!document.documentMode||9<document.documentMode)}function kj(){Dc&&(Dc.detachEvent("onpropertychange",kE),iu=Dc=null)}function kE(e){if(e.propertyName==="value"&&Up(iu)){var t=[];_E(t,iu,e,qb(e)),OE(BR,t)}}function UR(e,t,n){e==="focusin"?(kj(),Dc=t,iu=n,Dc.attachEvent("onpropertychange",kE)):e==="focusout"&&kj()}function qR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Up(iu)}function HR(e,t){if(e==="click")return Up(t)}function FR(e,t){if(e==="input"||e==="change")return Up(t)}function GR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rn=typeof Object.is=="function"?Object.is:GR;function su(e,t){if(Rn(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(!Yv.call(t,a)||!Rn(e[a],t[a]))return!1}return!0}function Mj(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pj(e,t){var n=Mj(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=Mj(n)}}function ME(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ME(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function PE(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Jd(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=Jd(e.document)}return t}function Kb(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 KR=Na&&"documentMode"in document&&11>=document.documentMode,fl=null,eg=null,Lc=null,tg=!1;function $j(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;tg||fl==null||fl!==Jd(r)||(r=fl,"selectionStart"in r&&Kb(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}),Lc&&su(Lc,r)||(Lc=r,r=vh(eg,"onSelect"),0<r.length&&(t=new Ip("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=fl)))}function Fi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var dl={animationend:Fi("Animation","AnimationEnd"),animationiteration:Fi("Animation","AnimationIteration"),animationstart:Fi("Animation","AnimationStart"),transitionrun:Fi("Transition","TransitionRun"),transitionstart:Fi("Transition","TransitionStart"),transitioncancel:Fi("Transition","TransitionCancel"),transitionend:Fi("Transition","TransitionEnd")},Ny={},$E={};Na&&($E=document.createElement("div").style,"AnimationEvent"in window||(delete dl.animationend.animation,delete dl.animationiteration.animation,delete dl.animationstart.animation),"TransitionEvent"in window||delete dl.transitionend.transition);function Is(e){if(Ny[e])return Ny[e];if(!dl[e])return e;var t=dl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $E)return Ny[e]=t[n];return e}var RE=Is("animationend"),DE=Is("animationiteration"),LE=Is("animationstart"),YR=Is("transitionrun"),VR=Is("transitionstart"),WR=Is("transitioncancel"),zE=Is("transitionend"),IE=new Map,ng="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(" ");ng.push("scrollEnd");function Er(e,t){IE.set(e,t),Ls(t,[e])}var eh=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)},Kn=[],hl=0,Yb=0;function qp(){for(var e=hl,t=Yb=hl=0;t<e;){var n=Kn[t];Kn[t++]=null;var r=Kn[t];Kn[t++]=null;var a=Kn[t];Kn[t++]=null;var i=Kn[t];if(Kn[t++]=null,r!==null&&a!==null){var l=r.pending;l===null?a.next=a:(a.next=l.next,l.next=a),r.pending=a}i!==0&&BE(n,a,i)}}function Hp(e,t,n,r){Kn[hl++]=e,Kn[hl++]=t,Kn[hl++]=n,Kn[hl++]=r,Yb|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Vb(e,t,n,r){return Hp(e,t,n,r),th(e)}function Bs(e,t){return Hp(e,null,null,t),th(e)}function BE(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-Mn(n),e=i.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),i):null}function th(e){if(50<Kc)throw Kc=0,wg=null,Error(F(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pl={};function XR(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 En(e,t,n,r){return new XR(e,t,n,r)}function Wb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ba(e,t){var n=e.alternate;return n===null?(n=En(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 UE(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 Td(e,t,n,r,a,i){var l=0;if(r=e,typeof e=="function")Wb(e)&&(l=1);else if(typeof e=="string")l=tD(e,n,Fr.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Hv:return e=En(31,n,t,a),e.elementType=Hv,e.lanes=i,e;case sl:return ms(n.children,a,i,t);case sE:l=8,a|=24;break;case Bv:return e=En(12,n,t,a|2),e.elementType=Bv,e.lanes=i,e;case Uv:return e=En(13,n,t,a),e.elementType=Uv,e.lanes=i,e;case qv:return e=En(19,n,t,a),e.elementType=qv,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pa:l=10;break e;case lE:l=9;break e;case Rb:l=11;break e;case Db:l=14;break e;case Ka:l=16,r=null;break e}l=29,n=Error(F(130,e===null?"null":typeof e,"")),r=null}return t=En(l,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function ms(e,t,n,r){return e=En(7,e,r,t),e.lanes=n,e}function Ay(e,t,n){return e=En(6,e,null,t),e.lanes=n,e}function qE(e){var t=En(18,null,null,0);return t.stateNode=e,t}function Ey(e,t,n){return t=En(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Rj=new WeakMap;function Qn(e,t){if(typeof e=="object"&&e!==null){var n=Rj.get(e);return n!==void 0?n:(t={value:e,source:t,stack:mj(t)},Rj.set(e,t),t)}return{value:e,source:t,stack:mj(t)}}var ml=[],yl=0,nh=null,lu=0,Vn=[],Wn=0,Ni=null,Ir=1,Br="";function ua(e,t){ml[yl++]=lu,ml[yl++]=nh,nh=e,lu=t}function HE(e,t,n){Vn[Wn++]=Ir,Vn[Wn++]=Br,Vn[Wn++]=Ni,Ni=e;var r=Ir;e=Br;var a=32-Mn(r)-1;r&=~(1<<a),n+=1;var i=32-Mn(t)+a;if(30<i){var l=a-a%5;i=(r&(1<<l)-1).toString(32),r>>=l,a-=l,Ir=1<<32-Mn(t)+a|n<<a|r,Br=i+e}else Ir=1<<i|n<<a|r,Br=e}function Xb(e){e.return!==null&&(ua(e,1),HE(e,1,0))}function Qb(e){for(;e===nh;)nh=ml[--yl],ml[yl]=null,lu=ml[--yl],ml[yl]=null;for(;e===Ni;)Ni=Vn[--Wn],Vn[Wn]=null,Br=Vn[--Wn],Vn[Wn]=null,Ir=Vn[--Wn],Vn[Wn]=null}function FE(e,t){Vn[Wn++]=Ir,Vn[Wn++]=Br,Vn[Wn++]=Ni,Ir=t.id,Br=t.overflow,Ni=e}var Ht=null,Ze=null,Ae=!1,mi=null,Zn=!1,rg=Error(F(519));function Ai(e){var t=Error(F(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ou(Qn(t,e)),rg}function Dj(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[qt]=e,t[gn]=r,n){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(n=0;n<du.length;n++)be(du[n],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),bE(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),SE(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||A_(t.textContent,n)?(r.popover!=null&&(be("beforetoggle",t),be("toggle",t)),r.onScroll!=null&&be("scroll",t),r.onScrollEnd!=null&&be("scrollend",t),r.onClick!=null&&(t.onclick=ma),t=!0):t=!1,t||Ai(e,!0)}function Lj(e){for(Ht=e.return;Ht;)switch(Ht.tag){case 5:case 31:case 13:Zn=!1;return;case 27:case 3:Zn=!0;return;default:Ht=Ht.return}}function Ws(e){if(e!==Ht)return!1;if(!Ae)return Lj(e),Ae=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Cg(e.type,e.memoizedProps)),n=!n),n&&Ze&&Ai(e),Lj(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(F(317));Ze=wS(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(F(317));Ze=wS(e)}else t===27?(t=Ze,$i(e.type)?(e=Mg,Mg=null,Ze=e):Ze=t):Ze=Ht?rr(e.stateNode.nextSibling):null;return!0}function Os(){Ze=Ht=null,Ae=!1}function Cy(){var e=mi;return e!==null&&(pn===null?pn=e:pn.push.apply(pn,e),mi=null),e}function ou(e){mi===null?mi=[e]:mi.push(e)}var ag=Xr(null),Us=null,ya=null;function Wa(e,t,n){Ge(ag,t._currentValue),t._currentValue=n}function ja(e){e._currentValue=ag.current,Lt(ag)}function ig(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 sg(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var l=a.child;i=i.firstContext;e:for(;i!==null;){var o=i;i=a;for(var c=0;c<t.length;c++)if(o.context===t[c]){i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),ig(i.return,n,e),r||(l=null);break e}i=o.next}}else if(a.tag===18){if(l=a.return,l===null)throw Error(F(341));l.lanes|=n,i=l.alternate,i!==null&&(i.lanes|=n),ig(l,n,e),l=null}else l=a.child;if(l!==null)l.return=a;else for(l=a;l!==null;){if(l===e){l=null;break}if(a=l.sibling,a!==null){a.return=l.return,l=a;break}l=l.return}a=l}}function Io(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 l=a.alternate;if(l===null)throw Error(F(387));if(l=l.memoizedProps,l!==null){var o=a.type;Rn(a.pendingProps.value,l.value)||(e!==null?e.push(o):e=[o])}}else if(a===Wd.current){if(l=a.alternate,l===null)throw Error(F(387));l.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(pu):e=[pu])}a=a.return}e!==null&&sg(t,e,n,r),t.flags|=262144}function rh(e){for(e=e.firstContext;e!==null;){if(!Rn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ns(e){Us=e,ya=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Gt(e){return GE(Us,e)}function Kf(e,t){return Us===null&&Ns(e),GE(e,t)}function GE(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ya===null){if(e===null)throw Error(F(308));ya=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ya=ya.next=t;return n}var QR=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()})}},ZR=Tt.unstable_scheduleCallback,JR=Tt.unstable_NormalPriority,wt={$$typeof:pa,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zb(){return{controller:new QR,data:new Map,refCount:0}}function df(e){e.refCount--,e.refCount===0&&ZR(JR,function(){e.controller.abort()})}var zc=null,lg=0,Vl=0,Cl=null;function e4(e,t){if(zc===null){var n=zc=[];lg=0,Vl=w0(),Cl={status:"pending",value:void 0,then:function(r){n.push(r)}}}return lg++,t.then(zj,zj),t}function zj(){if(--lg===0&&zc!==null){Cl!==null&&(Cl.status="fulfilled");var e=zc;zc=null,Vl=0,Cl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function t4(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 Ij=fe.S;fe.S=function(e,t){i_=Tn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&e4(e,t),Ij!==null&&Ij(e,t)};var ys=Xr(null);function Jb(){var e=ys.current;return e!==null?e:Ue.pooledCache}function kd(e,t){t===null?Ge(ys,ys.current):Ge(ys,t.pool)}function KE(){var e=Jb();return e===null?null:{parent:wt._currentValue,pool:e}}var Bo=Error(F(460)),e0=Error(F(474)),Fp=Error(F(542)),ah={then:function(){}};function Bj(e){return e=e.status,e==="fulfilled"||e==="rejected"}function YE(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ma,ma),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qj(e),e;default:if(typeof t.status=="string")t.then(ma,ma);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(F(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,qj(e),e}throw vs=t,Bo}}function Xi(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(vs=n,Bo):n}}var vs=null;function Uj(){if(vs===null)throw Error(F(459));var e=vs;return vs=null,e}function qj(e){if(e===Bo||e===Fp)throw Error(F(483))}var _l=null,cu=0;function Yf(e){var t=cu;return cu+=1,_l===null&&(_l=[]),YE(_l,e,t)}function dc(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Vf(e,t){throw t.$$typeof===U$?Error(F(525)):(e=Object.prototype.toString.call(t),Error(F(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function VE(e){function t(v,g){if(e){var b=v.deletions;b===null?(v.deletions=[g],v.flags|=16):b.push(g)}}function n(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function r(v){for(var g=new Map;v!==null;)v.key!==null?g.set(v.key,v):g.set(v.index,v),v=v.sibling;return g}function a(v,g){return v=ba(v,g),v.index=0,v.sibling=null,v}function i(v,g,b){return v.index=b,e?(b=v.alternate,b!==null?(b=b.index,b<g?(v.flags|=67108866,g):b):(v.flags|=67108866,g)):(v.flags|=1048576,g)}function l(v){return e&&v.alternate===null&&(v.flags|=67108866),v}function o(v,g,b,x){return g===null||g.tag!==6?(g=Ay(b,v.mode,x),g.return=v,g):(g=a(g,b),g.return=v,g)}function c(v,g,b,x){var O=b.type;return O===sl?f(v,g,b.props.children,x,b.key):g!==null&&(g.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Ka&&Xi(O)===g.type)?(g=a(g,b.props),dc(g,b),g.return=v,g):(g=Td(b.type,b.key,b.props,null,v.mode,x),dc(g,b),g.return=v,g)}function u(v,g,b,x){return g===null||g.tag!==4||g.stateNode.containerInfo!==b.containerInfo||g.stateNode.implementation!==b.implementation?(g=Ey(b,v.mode,x),g.return=v,g):(g=a(g,b.children||[]),g.return=v,g)}function f(v,g,b,x,O){return g===null||g.tag!==7?(g=ms(b,v.mode,x,O),g.return=v,g):(g=a(g,b),g.return=v,g)}function d(v,g,b){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Ay(""+g,v.mode,b),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Bf:return b=Td(g.type,g.key,g.props,null,v.mode,b),dc(b,g),b.return=v,b;case Cc:return g=Ey(g,v.mode,b),g.return=v,g;case Ka:return g=Xi(g),d(v,g,b)}if(_c(g)||cc(g))return g=ms(g,v.mode,b,null),g.return=v,g;if(typeof g.then=="function")return d(v,Yf(g),b);if(g.$$typeof===pa)return d(v,Kf(v,g),b);Vf(v,g)}return null}function h(v,g,b,x){var O=g!==null?g.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return O!==null?null:o(v,g,""+b,x);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Bf:return b.key===O?c(v,g,b,x):null;case Cc:return b.key===O?u(v,g,b,x):null;case Ka:return b=Xi(b),h(v,g,b,x)}if(_c(b)||cc(b))return O!==null?null:f(v,g,b,x,null);if(typeof b.then=="function")return h(v,g,Yf(b),x);if(b.$$typeof===pa)return h(v,g,Kf(v,b),x);Vf(v,b)}return null}function m(v,g,b,x,O){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return v=v.get(b)||null,o(g,v,""+x,O);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Bf:return v=v.get(x.key===null?b:x.key)||null,c(g,v,x,O);case Cc:return v=v.get(x.key===null?b:x.key)||null,u(g,v,x,O);case Ka:return x=Xi(x),m(v,g,b,x,O)}if(_c(x)||cc(x))return v=v.get(b)||null,f(g,v,x,O,null);if(typeof x.then=="function")return m(v,g,b,Yf(x),O);if(x.$$typeof===pa)return m(v,g,b,Kf(g,x),O);Vf(g,x)}return null}function j(v,g,b,x){for(var O=null,S=null,N=g,A=g=0,C=null;N!==null&&A<b.length;A++){N.index>A?(C=N,N=null):C=N.sibling;var k=h(v,N,b[A],x);if(k===null){N===null&&(N=C);break}e&&N&&k.alternate===null&&t(v,N),g=i(k,g,A),S===null?O=k:S.sibling=k,S=k,N=C}if(A===b.length)return n(v,N),Ae&&ua(v,A),O;if(N===null){for(;A<b.length;A++)N=d(v,b[A],x),N!==null&&(g=i(N,g,A),S===null?O=N:S.sibling=N,S=N);return Ae&&ua(v,A),O}for(N=r(N);A<b.length;A++)C=m(N,v,A,b[A],x),C!==null&&(e&&C.alternate!==null&&N.delete(C.key===null?A:C.key),g=i(C,g,A),S===null?O=C:S.sibling=C,S=C);return e&&N.forEach(function(R){return t(v,R)}),Ae&&ua(v,A),O}function y(v,g,b,x){if(b==null)throw Error(F(151));for(var O=null,S=null,N=g,A=g=0,C=null,k=b.next();N!==null&&!k.done;A++,k=b.next()){N.index>A?(C=N,N=null):C=N.sibling;var R=h(v,N,k.value,x);if(R===null){N===null&&(N=C);break}e&&N&&R.alternate===null&&t(v,N),g=i(R,g,A),S===null?O=R:S.sibling=R,S=R,N=C}if(k.done)return n(v,N),Ae&&ua(v,A),O;if(N===null){for(;!k.done;A++,k=b.next())k=d(v,k.value,x),k!==null&&(g=i(k,g,A),S===null?O=k:S.sibling=k,S=k);return Ae&&ua(v,A),O}for(N=r(N);!k.done;A++,k=b.next())k=m(N,v,A,k.value,x),k!==null&&(e&&k.alternate!==null&&N.delete(k.key===null?A:k.key),g=i(k,g,A),S===null?O=k:S.sibling=k,S=k);return e&&N.forEach(function(M){return t(v,M)}),Ae&&ua(v,A),O}function p(v,g,b,x){if(typeof b=="object"&&b!==null&&b.type===sl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Bf:e:{for(var O=b.key;g!==null;){if(g.key===O){if(O=b.type,O===sl){if(g.tag===7){n(v,g.sibling),x=a(g,b.props.children),x.return=v,v=x;break e}}else if(g.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Ka&&Xi(O)===g.type){n(v,g.sibling),x=a(g,b.props),dc(x,b),x.return=v,v=x;break e}n(v,g);break}else t(v,g);g=g.sibling}b.type===sl?(x=ms(b.props.children,v.mode,x,b.key),x.return=v,v=x):(x=Td(b.type,b.key,b.props,null,v.mode,x),dc(x,b),x.return=v,v=x)}return l(v);case Cc:e:{for(O=b.key;g!==null;){if(g.key===O)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(v,g.sibling),x=a(g,b.children||[]),x.return=v,v=x;break e}else{n(v,g);break}else t(v,g);g=g.sibling}x=Ey(b,v.mode,x),x.return=v,v=x}return l(v);case Ka:return b=Xi(b),p(v,g,b,x)}if(_c(b))return j(v,g,b,x);if(cc(b)){if(O=cc(b),typeof O!="function")throw Error(F(150));return b=O.call(b),y(v,g,b,x)}if(typeof b.then=="function")return p(v,g,Yf(b),x);if(b.$$typeof===pa)return p(v,g,Kf(v,b),x);Vf(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,g!==null&&g.tag===6?(n(v,g.sibling),x=a(g,b),x.return=v,v=x):(n(v,g),x=Ay(b,v.mode,x),x.return=v,v=x),l(v)):n(v,g)}return function(v,g,b,x){try{cu=0;var O=p(v,g,b,x);return _l=null,O}catch(N){if(N===Bo||N===Fp)throw N;var S=En(29,N,null,v.mode);return S.lanes=x,S.return=v,S}finally{}}}var As=VE(!0),WE=VE(!1),Ya=!1;function t0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function og(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 yi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function vi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,_e&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=th(e),BE(e,null,n),t}return Hp(e,r,t,n),th(e)}function Ic(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,hE(e,n)}}function _y(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 l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=l:i=i.next=l,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 cg=!1;function Bc(){if(cg){var e=Cl;if(e!==null)throw e}}function Uc(e,t,n,r){cg=!1;var a=e.updateQueue;Ya=!1;var i=a.firstBaseUpdate,l=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var c=o,u=c.next;c.next=null,l===null?i=u:l.next=u,l=c;var f=e.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==l&&(o===null?f.firstBaseUpdate=u:o.next=u,f.lastBaseUpdate=c))}if(i!==null){var d=a.baseState;l=0,f=u=c=null,o=i;do{var h=o.lane&-536870913,m=h!==o.lane;if(m?(Oe&h)===h:(r&h)===h){h!==0&&h===Vl&&(cg=!0),f!==null&&(f=f.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var j=e,y=o;h=t;var p=n;switch(y.tag){case 1:if(j=y.payload,typeof j=="function"){d=j.call(p,d,h);break e}d=j;break e;case 3:j.flags=j.flags&-65537|128;case 0:if(j=y.payload,h=typeof j=="function"?j.call(p,d,h):j,h==null)break e;d=tt({},d,h);break e;case 2:Ya=!0}}h=o.callback,h!==null&&(e.flags|=64,m&&(e.flags|=8192),m=a.callbacks,m===null?a.callbacks=[h]:m.push(h))}else m={lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(u=f=m,c=d):f=f.next=m,l|=h;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;m=o,o=m.next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}while(!0);f===null&&(c=d),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=f,i===null&&(a.shared.lanes=0),Ci|=l,e.lanes=l,e.memoizedState=d}}function XE(e,t){if(typeof e!="function")throw Error(F(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++)XE(n[e],t)}var Wl=Xr(null),ih=Xr(0);function Hj(e,t){e=_a,Ge(ih,e),Ge(Wl,t),_a=e|t.baseLanes}function ug(){Ge(ih,_a),Ge(Wl,Wl.current)}function n0(){_a=ih.current,Lt(Wl),Lt(ih)}var Dn=Xr(null),nr=null;function Xa(e){var t=e.alternate;Ge(yt,yt.current&1),Ge(Dn,e),nr===null&&(t===null||Wl.current!==null||t.memoizedState!==null)&&(nr=e)}function fg(e){Ge(yt,yt.current),Ge(Dn,e),nr===null&&(nr=e)}function ZE(e){e.tag===22?(Ge(yt,yt.current),Ge(Dn,e),nr===null&&(nr=e)):Qa()}function Qa(){Ge(yt,yt.current),Ge(Dn,Dn.current)}function An(e){Lt(Dn),nr===e&&(nr=null),Lt(yt)}var yt=Xr(0);function sh(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Tg(n)||kg(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 Aa=0,ye=null,Ie=null,jt=null,lh=!1,Tl=!1,Es=!1,oh=0,uu=0,kl=null,n4=0;function ft(){throw Error(F(321))}function r0(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Rn(e[n],t[n]))return!1;return!0}function a0(e,t,n,r,a,i){return Aa=i,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fe.H=e===null||e.memoizedState===null?_C:m0,Es=!1,i=n(r,a),Es=!1,Tl&&(i=eC(t,n,r,a)),JE(e),i}function JE(e){fe.H=fu;var t=Ie!==null&&Ie.next!==null;if(Aa=0,jt=Ie=ye=null,lh=!1,uu=0,kl=null,t)throw Error(F(300));e===null||Ot||(e=e.dependencies,e!==null&&rh(e)&&(Ot=!0))}function eC(e,t,n,r){ye=e;var a=0;do{if(Tl&&(kl=null),uu=0,Tl=!1,25<=a)throw Error(F(301));if(a+=1,jt=Ie=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}fe.H=TC,i=t(n,r)}while(Tl);return i}function r4(){var e=fe.H,t=e.useState()[0];return t=typeof t.then=="function"?hf(t):t,e=e.useState()[0],(Ie!==null?Ie.memoizedState:null)!==e&&(ye.flags|=1024),t}function i0(){var e=oh!==0;return oh=0,e}function s0(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function l0(e){if(lh){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}lh=!1}Aa=0,jt=Ie=ye=null,Tl=!1,uu=oh=0,kl=null}function Jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?ye.memoizedState=jt=e:jt=jt.next=e,jt}function vt(){if(Ie===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=jt===null?ye.memoizedState:jt.next;if(t!==null)jt=t,Ie=e;else{if(e===null)throw ye.alternate===null?Error(F(467)):Error(F(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},jt===null?ye.memoizedState=jt=e:jt=jt.next=e}return jt}function Gp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function hf(e){var t=uu;return uu+=1,kl===null&&(kl=[]),e=YE(kl,e,t),t=ye,(jt===null?t.memoizedState:jt.next)===null&&(t=t.alternate,fe.H=t===null||t.memoizedState===null?_C:m0),e}function Kp(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return hf(e);if(e.$$typeof===pa)return Gt(e)}throw Error(F(438,String(e)))}function o0(e){var t=null,n=ye.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=ye.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=Gp(),ye.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]=q$;return t.index++,n}function Ea(e,t){return typeof t=="function"?t(e):t}function Md(e){var t=vt();return c0(t,Ie,e)}function c0(e,t,n){var r=e.queue;if(r===null)throw Error(F(311));r.lastRenderedReducer=n;var a=e.baseQueue,i=r.pending;if(i!==null){if(a!==null){var l=a.next;a.next=i.next,i.next=l}t.baseQueue=a=i,r.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var o=l=null,c=null,u=t,f=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(Oe&d)===d:(Aa&d)===d){var h=u.revertLane;if(h===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===Vl&&(f=!0);else if((Aa&h)===h){u=u.next,h===Vl&&(f=!0);continue}else d={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},c===null?(o=c=d,l=i):c=c.next=d,ye.lanes|=h,Ci|=h;d=u.action,Es&&n(i,d),i=u.hasEagerState?u.eagerState:n(i,d)}else h={lane:d,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},c===null?(o=c=h,l=i):c=c.next=h,ye.lanes|=d,Ci|=d;u=u.next}while(u!==null&&u!==t);if(c===null?l=i:c.next=o,!Rn(i,e.memoizedState)&&(Ot=!0,f&&(n=Cl,n!==null)))throw n;e.memoizedState=i,e.baseState=l,e.baseQueue=c,r.lastRenderedState=i}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ty(e){var t=vt(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(a!==null){n.pending=null;var l=a=a.next;do i=e(i,l.action),l=l.next;while(l!==a);Rn(i,t.memoizedState)||(Ot=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function tC(e,t,n){var r=ye,a=vt(),i=Ae;if(i){if(n===void 0)throw Error(F(407));n=n()}else n=t();var l=!Rn((Ie||a).memoizedState,n);if(l&&(a.memoizedState=n,Ot=!0),a=a.queue,u0(aC.bind(null,r,a,e),[e]),a.getSnapshot!==t||l||jt!==null&&jt.memoizedState.tag&1){if(r.flags|=2048,Xl(9,{destroy:void 0},rC.bind(null,r,a,n,t),null),Ue===null)throw Error(F(349));i||Aa&127||nC(r,t,n)}return n}function nC(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t=Gp(),ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function rC(e,t,n,r){t.value=n,t.getSnapshot=r,iC(t)&&sC(e)}function aC(e,t,n){return n(function(){iC(t)&&sC(e)})}function iC(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Rn(e,n)}catch{return!0}}function sC(e){var t=Bs(e,2);t!==null&&yn(t,e,2)}function dg(e){var t=Jt();if(typeof e=="function"){var n=e;if(e=n(),Es){si(!0);try{n()}finally{si(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ea,lastRenderedState:e},t}function lC(e,t,n,r){return e.baseState=n,c0(e,Ie,typeof r=="function"?r:Ea)}function a4(e,t,n,r,a){if(Vp(e))throw Error(F(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(l){i.listeners.push(l)}};fe.T!==null?n(!0):i.isTransition=!1,r(i),n=t.pending,n===null?(i.next=t.pending=i,oC(t,i)):(i.next=n.next,t.pending=n.next=i)}}function oC(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var i=fe.T,l={};fe.T=l;try{var o=n(a,r),c=fe.S;c!==null&&c(l,o),Fj(e,t,o)}catch(u){hg(e,t,u)}finally{i!==null&&l.types!==null&&(i.types=l.types),fe.T=i}}else try{i=n(a,r),Fj(e,t,i)}catch(u){hg(e,t,u)}}function Fj(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){Gj(e,t,r)},function(r){return hg(e,t,r)}):Gj(e,t,n)}function Gj(e,t,n){t.status="fulfilled",t.value=n,cC(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,oC(e,n)))}function hg(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,cC(t),t=t.next;while(t!==r)}e.action=null}function cC(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function uC(e,t){return t}function Kj(e,t){if(Ae){var n=Ue.formState;if(n!==null){e:{var r=ye;if(Ae){if(Ze){t:{for(var a=Ze,i=Zn;a.nodeType!==8;){if(!i){a=null;break t}if(a=rr(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Ze=rr(a.nextSibling),r=a.data==="F!";break e}}Ai(r)}r=!1}r&&(t=n[0])}}return n=Jt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:uC,lastRenderedState:t},n.queue=r,n=AC.bind(null,ye,r),r.dispatch=n,r=dg(!1),i=p0.bind(null,ye,!1,r.queue),r=Jt(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=a4.bind(null,ye,a,i,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function Yj(e){var t=vt();return fC(t,Ie,e)}function fC(e,t,n){if(t=c0(e,t,uC)[0],e=Md(Ea)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=hf(t)}catch(l){throw l===Bo?Fp:l}else r=t;t=vt();var a=t.queue,i=a.dispatch;return n!==t.memoizedState&&(ye.flags|=2048,Xl(9,{destroy:void 0},i4.bind(null,a,n),null)),[r,i,e]}function i4(e,t){e.action=t}function Vj(e){var t=vt(),n=Ie;if(n!==null)return fC(t,n,e);vt(),t=t.memoizedState,n=vt();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Xl(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=ye.updateQueue,t===null&&(t=Gp(),ye.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 dC(){return vt().memoizedState}function Pd(e,t,n,r){var a=Jt();ye.flags|=e,a.memoizedState=Xl(1|t,{destroy:void 0},n,r===void 0?null:r)}function Yp(e,t,n,r){var a=vt();r=r===void 0?null:r;var i=a.memoizedState.inst;Ie!==null&&r!==null&&r0(r,Ie.memoizedState.deps)?a.memoizedState=Xl(t,i,n,r):(ye.flags|=e,a.memoizedState=Xl(1|t,i,n,r))}function Wj(e,t){Pd(8390656,8,e,t)}function u0(e,t){Yp(2048,8,e,t)}function s4(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=Gp(),ye.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function hC(e){var t=vt().memoizedState;return s4({ref:t,nextImpl:e}),function(){if(_e&2)throw Error(F(440));return t.impl.apply(void 0,arguments)}}function pC(e,t){return Yp(4,2,e,t)}function mC(e,t){return Yp(4,4,e,t)}function yC(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 vC(e,t,n){n=n!=null?n.concat([e]):null,Yp(4,4,yC.bind(null,t,e),n)}function f0(){}function gC(e,t){var n=vt();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&r0(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function xC(e,t){var n=vt();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&r0(t,r[1]))return r[0];if(r=e(),Es){si(!0);try{e()}finally{si(!1)}}return n.memoizedState=[r,t],r}function d0(e,t,n){return n===void 0||Aa&1073741824&&!(Oe&261930)?e.memoizedState=t:(e.memoizedState=n,e=l_(),ye.lanes|=e,Ci|=e,n)}function bC(e,t,n,r){return Rn(n,t)?n:Wl.current!==null?(e=d0(e,n,r),Rn(e,t)||(Ot=!0),e):!(Aa&42)||Aa&1073741824&&!(Oe&261930)?(Ot=!0,e.memoizedState=n):(e=l_(),ye.lanes|=e,Ci|=e,t)}function jC(e,t,n,r,a){var i=Te.p;Te.p=i!==0&&8>i?i:8;var l=fe.T,o={};fe.T=o,p0(e,!1,t,n);try{var c=a(),u=fe.S;if(u!==null&&u(o,c),c!==null&&typeof c=="object"&&typeof c.then=="function"){var f=t4(c,r);qc(e,t,f,Pn(e))}else qc(e,t,r,Pn(e))}catch(d){qc(e,t,{then:function(){},status:"rejected",reason:d},Pn())}finally{Te.p=i,l!==null&&o.types!==null&&(l.types=o.types),fe.T=l}}function l4(){}function pg(e,t,n,r){if(e.tag!==5)throw Error(F(476));var a=SC(e).queue;jC(e,a,t,ps,n===null?l4:function(){return wC(e),n(r)})}function SC(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ps,baseState:ps,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ea,lastRenderedState:ps},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ea,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function wC(e){var t=SC(e);t.next===null&&(t=e.alternate.memoizedState),qc(e,t.next.queue,{},Pn())}function h0(){return Gt(pu)}function OC(){return vt().memoizedState}function NC(){return vt().memoizedState}function o4(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Pn();e=yi(n);var r=vi(t,e,n);r!==null&&(yn(r,t,n),Ic(r,t,n)),t={cache:Zb()},e.payload=t;return}t=t.return}}function c4(e,t,n){var r=Pn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Vp(e)?EC(t,n):(n=Vb(e,t,n,r),n!==null&&(yn(n,e,r),CC(n,t,r)))}function AC(e,t,n){var r=Pn();qc(e,t,n,r)}function qc(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Vp(e))EC(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,o=i(l,n);if(a.hasEagerState=!0,a.eagerState=o,Rn(o,l))return Hp(e,t,a,0),Ue===null&&qp(),!1}catch{}finally{}if(n=Vb(e,t,a,r),n!==null)return yn(n,e,r),CC(n,t,r),!0}return!1}function p0(e,t,n,r){if(r={lane:2,revertLane:w0(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Vp(e)){if(t)throw Error(F(479))}else t=Vb(e,n,r,2),t!==null&&yn(t,e,2)}function Vp(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function EC(e,t){Tl=lh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function CC(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hE(e,n)}}var fu={readContext:Gt,use:Kp,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useLayoutEffect:ft,useInsertionEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useSyncExternalStore:ft,useId:ft,useHostTransitionStatus:ft,useFormState:ft,useActionState:ft,useOptimistic:ft,useMemoCache:ft,useCacheRefresh:ft};fu.useEffectEvent=ft;var _C={readContext:Gt,use:Kp,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:Gt,useEffect:Wj,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Pd(4194308,4,yC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pd(4194308,4,e,t)},useInsertionEffect:function(e,t){Pd(4,2,e,t)},useMemo:function(e,t){var n=Jt();t=t===void 0?null:t;var r=e();if(Es){si(!0);try{e()}finally{si(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Jt();if(n!==void 0){var a=n(t);if(Es){si(!0);try{n(t)}finally{si(!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=c4.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:function(e){e=dg(e);var t=e.queue,n=AC.bind(null,ye,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:f0,useDeferredValue:function(e,t){var n=Jt();return d0(n,e,t)},useTransition:function(){var e=dg(!1);return e=jC.bind(null,ye,e.queue,!0,!1),Jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ye,a=Jt();if(Ae){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),Ue===null)throw Error(F(349));Oe&127||nC(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Wj(aC.bind(null,r,i,e),[e]),r.flags|=2048,Xl(9,{destroy:void 0},rC.bind(null,r,i,n,t),null),n},useId:function(){var e=Jt(),t=Ue.identifierPrefix;if(Ae){var n=Br,r=Ir;n=(r&~(1<<32-Mn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=oh++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=n4++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:h0,useFormState:Kj,useActionState:Kj,useOptimistic:function(e){var t=Jt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=p0.bind(null,ye,!0,n),n.dispatch=t,[e,t]},useMemoCache:o0,useCacheRefresh:function(){return Jt().memoizedState=o4.bind(null,ye)},useEffectEvent:function(e){var t=Jt(),n={impl:e};return t.memoizedState=n,function(){if(_e&2)throw Error(F(440));return n.impl.apply(void 0,arguments)}}},m0={readContext:Gt,use:Kp,useCallback:gC,useContext:Gt,useEffect:u0,useImperativeHandle:vC,useInsertionEffect:pC,useLayoutEffect:mC,useMemo:xC,useReducer:Md,useRef:dC,useState:function(){return Md(Ea)},useDebugValue:f0,useDeferredValue:function(e,t){var n=vt();return bC(n,Ie.memoizedState,e,t)},useTransition:function(){var e=Md(Ea)[0],t=vt().memoizedState;return[typeof e=="boolean"?e:hf(e),t]},useSyncExternalStore:tC,useId:OC,useHostTransitionStatus:h0,useFormState:Yj,useActionState:Yj,useOptimistic:function(e,t){var n=vt();return lC(n,Ie,e,t)},useMemoCache:o0,useCacheRefresh:NC};m0.useEffectEvent=hC;var TC={readContext:Gt,use:Kp,useCallback:gC,useContext:Gt,useEffect:u0,useImperativeHandle:vC,useInsertionEffect:pC,useLayoutEffect:mC,useMemo:xC,useReducer:Ty,useRef:dC,useState:function(){return Ty(Ea)},useDebugValue:f0,useDeferredValue:function(e,t){var n=vt();return Ie===null?d0(n,e,t):bC(n,Ie.memoizedState,e,t)},useTransition:function(){var e=Ty(Ea)[0],t=vt().memoizedState;return[typeof e=="boolean"?e:hf(e),t]},useSyncExternalStore:tC,useId:OC,useHostTransitionStatus:h0,useFormState:Vj,useActionState:Vj,useOptimistic:function(e,t){var n=vt();return Ie!==null?lC(n,Ie,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:o0,useCacheRefresh:NC};TC.useEffectEvent=hC;function ky(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 mg={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Pn(),a=yi(r);a.payload=t,n!=null&&(a.callback=n),t=vi(e,a,r),t!==null&&(yn(t,e,r),Ic(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Pn(),a=yi(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=vi(e,a,r),t!==null&&(yn(t,e,r),Ic(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pn(),r=yi(n);r.tag=2,t!=null&&(r.callback=t),t=vi(e,r,n),t!==null&&(yn(t,e,n),Ic(t,e,n))}};function Xj(e,t,n,r,a,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,l):t.prototype&&t.prototype.isPureReactComponent?!su(n,r)||!su(a,i):!0}function Qj(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&&mg.enqueueReplaceState(t,t.state,null)}function Cs(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 kC(e){eh(e)}function MC(e){console.error(e)}function PC(e){eh(e)}function ch(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Zj(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 yg(e,t,n){return n=yi(n),n.tag=3,n.payload={element:null},n.callback=function(){ch(e,t)},n}function $C(e){return e=yi(e),e.tag=3,e}function RC(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(){Zj(t,n,r)}}var l=n.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){Zj(t,n,r),typeof a!="function"&&(gi===null?gi=new Set([this]):gi.add(this));var o=r.stack;this.componentDidCatch(r.value,{componentStack:o!==null?o:""})})}function u4(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&Io(t,n,a,!0),n=Dn.current,n!==null){switch(n.tag){case 31:case 13:return nr===null?ph():n.alternate===null&&pt===0&&(pt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ah?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),qy(e,r,a)),!1;case 22:return n.flags|=65536,r===ah?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)),qy(e,r,a)),!1}throw Error(F(435,n.tag))}return qy(e,r,a),ph(),!1}if(Ae)return t=Dn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==rg&&(e=Error(F(422),{cause:r}),ou(Qn(e,n)))):(r!==rg&&(t=Error(F(423),{cause:r}),ou(Qn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Qn(r,n),a=yg(e.stateNode,r,a),_y(e,a),pt!==4&&(pt=2)),!1;var i=Error(F(520),{cause:r});if(i=Qn(i,n),Gc===null?Gc=[i]:Gc.push(i),pt!==4&&(pt=2),t===null)return!0;r=Qn(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=yg(n.stateNode,r,e),_y(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"&&(gi===null||!gi.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=$C(a),RC(a,e,n,r),_y(n,a),!1}n=n.return}while(n!==null);return!1}var y0=Error(F(461)),Ot=!1;function Ut(e,t,n,r){t.child=e===null?WE(t,null,n,r):As(t,e.child,n,r)}function Jj(e,t,n,r,a){n=n.render;var i=t.ref;if("ref"in r){var l={};for(var o in r)o!=="ref"&&(l[o]=r[o])}else l=r;return Ns(t),r=a0(e,t,n,l,i,a),o=i0(),e!==null&&!Ot?(s0(e,t,a),Ca(e,t,a)):(Ae&&o&&Xb(t),t.flags|=1,Ut(e,t,r,a),t.child)}function eS(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!Wb(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,DC(e,t,i,r,a)):(e=Td(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!v0(e,a)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:su,n(l,r)&&e.ref===t.ref)return Ca(e,t,a)}return t.flags|=1,e=ba(i,r),e.ref=t.ref,e.return=t,t.child=e}function DC(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(su(i,r)&&e.ref===t.ref)if(Ot=!1,t.pendingProps=r=i,v0(e,a))e.flags&131072&&(Ot=!0);else return t.lanes=e.lanes,Ca(e,t,a)}return vg(e,t,n,r,a)}function LC(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 tS(e,t,i,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&kd(t,i!==null?i.cachePool:null),i!==null?Hj(t,i):ug(),ZE(t);else return r=t.lanes=536870912,tS(e,t,i!==null?i.baseLanes|n:n,n,r)}else i!==null?(kd(t,i.cachePool),Hj(t,i),Qa(),t.memoizedState=null):(e!==null&&kd(t,null),ug(),Qa());return Ut(e,t,a,n),t.child}function kc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function tS(e,t,n,r,a){var i=Jb();return i=i===null?null:{parent:wt._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&kd(t,null),ug(),ZE(t),e!==null&&Io(e,t,r,!0),t.childLanes=a,null}function $d(e,t){return t=uh({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function nS(e,t,n){return As(t,e.child,null,n),e=$d(t,t.pendingProps),e.flags|=2,An(t),t.memoizedState=null,e}function f4(e,t,n){var r=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(r.mode==="hidden")return e=$d(t,r),t.lanes=536870912,kc(null,e);if(fg(t),(e=Ze)?(e=__(e,Zn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ni!==null?{id:Ir,overflow:Br}:null,retryLane:536870912,hydrationErrors:null},n=qE(e),n.return=t,t.child=n,Ht=t,Ze=null)):e=null,e===null)throw Ai(t);return t.lanes=536870912,null}return $d(t,r)}var i=e.memoizedState;if(i!==null){var l=i.dehydrated;if(fg(t),a)if(t.flags&256)t.flags&=-257,t=nS(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(F(558));else if(Ot||Io(e,t,n,!1),a=(n&e.childLanes)!==0,Ot||a){if(r=Ue,r!==null&&(l=pE(r,n),l!==0&&l!==i.retryLane))throw i.retryLane=l,Bs(e,l),yn(r,e,l),y0;ph(),t=nS(e,t,n)}else e=i.treeContext,Ze=rr(l.nextSibling),Ht=t,Ae=!0,mi=null,Zn=!1,e!==null&&FE(t,e),t=$d(t,r),t.flags|=4096;return t}return e=ba(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Rd(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(F(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function vg(e,t,n,r,a){return Ns(t),n=a0(e,t,n,r,void 0,a),r=i0(),e!==null&&!Ot?(s0(e,t,a),Ca(e,t,a)):(Ae&&r&&Xb(t),t.flags|=1,Ut(e,t,n,a),t.child)}function rS(e,t,n,r,a,i){return Ns(t),t.updateQueue=null,n=eC(t,r,n,a),JE(e),r=i0(),e!==null&&!Ot?(s0(e,t,i),Ca(e,t,i)):(Ae&&r&&Xb(t),t.flags|=1,Ut(e,t,n,i),t.child)}function aS(e,t,n,r,a){if(Ns(t),t.stateNode===null){var i=pl,l=n.contextType;typeof l=="object"&&l!==null&&(i=Gt(l)),i=new n(r,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=mg,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=r,i.state=t.memoizedState,i.refs={},t0(t),l=n.contextType,i.context=typeof l=="object"&&l!==null?Gt(l):pl,i.state=t.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(ky(t,n,l,r),i.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(l=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),l!==i.state&&mg.enqueueReplaceState(i,i.state,null),Uc(t,r,i,a),Bc(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){i=t.stateNode;var o=t.memoizedProps,c=Cs(n,o);i.props=c;var u=i.context,f=n.contextType;l=pl,typeof f=="object"&&f!==null&&(l=Gt(f));var d=n.getDerivedStateFromProps;f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o||u!==l)&&Qj(t,i,r,l),Ya=!1;var h=t.memoizedState;i.state=h,Uc(t,r,i,a),Bc(),u=t.memoizedState,o||h!==u||Ya?(typeof d=="function"&&(ky(t,n,d,r),u=t.memoizedState),(c=Ya||Xj(t,n,c,r,h,u,l))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=l,r=c):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,og(e,t),l=t.memoizedProps,f=Cs(n,l),i.props=f,d=t.pendingProps,h=i.context,u=n.contextType,c=pl,typeof u=="object"&&u!==null&&(c=Gt(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==d||h!==c)&&Qj(t,i,r,c),Ya=!1,h=t.memoizedState,i.state=h,Uc(t,r,i,a),Bc();var m=t.memoizedState;l!==d||h!==m||Ya||e!==null&&e.dependencies!==null&&rh(e.dependencies)?(typeof o=="function"&&(ky(t,n,o,r),m=t.memoizedState),(f=Ya||Xj(t,n,f,r,h,m,c)||e!==null&&e.dependencies!==null&&rh(e.dependencies))?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,m,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,m,c)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=c,r=f):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Rd(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=As(t,e.child,null,a),t.child=As(t,null,n,a)):Ut(e,t,n,a),t.memoizedState=i.state,e=t.child):e=Ca(e,t,a),e}function iS(e,t,n,r){return Os(),t.flags|=256,Ut(e,t,n,r),t.child}var My={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Py(e){return{baseLanes:e,cachePool:KE()}}function $y(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=_n),e}function zC(e,t,n){var r=t.pendingProps,a=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(yt.current&2)!==0),l&&(a=!0,t.flags&=-129),l=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(a?Xa(t):Qa(),(e=Ze)?(e=__(e,Zn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ni!==null?{id:Ir,overflow:Br}:null,retryLane:536870912,hydrationErrors:null},n=qE(e),n.return=t,t.child=n,Ht=t,Ze=null)):e=null,e===null)throw Ai(t);return kg(e)?t.lanes=32:t.lanes=536870912,null}var o=r.children;return r=r.fallback,a?(Qa(),a=t.mode,o=uh({mode:"hidden",children:o},a),r=ms(r,a,n,null),o.return=t,r.return=t,o.sibling=r,t.child=o,r=t.child,r.memoizedState=Py(n),r.childLanes=$y(e,l,n),t.memoizedState=My,kc(null,r)):(Xa(t),gg(t,o))}var c=e.memoizedState;if(c!==null&&(o=c.dehydrated,o!==null)){if(i)t.flags&256?(Xa(t),t.flags&=-257,t=Ry(e,t,n)):t.memoizedState!==null?(Qa(),t.child=e.child,t.flags|=128,t=null):(Qa(),o=r.fallback,a=t.mode,r=uh({mode:"visible",children:r.children},a),o=ms(o,a,n,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,As(t,e.child,null,n),r=t.child,r.memoizedState=Py(n),r.childLanes=$y(e,l,n),t.memoizedState=My,t=kc(null,r));else if(Xa(t),kg(o)){if(l=o.nextSibling&&o.nextSibling.dataset,l)var u=l.dgst;l=u,r=Error(F(419)),r.stack="",r.digest=l,ou({value:r,source:null,stack:null}),t=Ry(e,t,n)}else if(Ot||Io(e,t,n,!1),l=(n&e.childLanes)!==0,Ot||l){if(l=Ue,l!==null&&(r=pE(l,n),r!==0&&r!==c.retryLane))throw c.retryLane=r,Bs(e,r),yn(l,e,r),y0;Tg(o)||ph(),t=Ry(e,t,n)}else Tg(o)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,Ze=rr(o.nextSibling),Ht=t,Ae=!0,mi=null,Zn=!1,e!==null&&FE(t,e),t=gg(t,r.children),t.flags|=4096);return t}return a?(Qa(),o=r.fallback,a=t.mode,c=e.child,u=c.sibling,r=ba(c,{mode:"hidden",children:r.children}),r.subtreeFlags=c.subtreeFlags&65011712,u!==null?o=ba(u,o):(o=ms(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,kc(null,r),r=t.child,o=e.child.memoizedState,o===null?o=Py(n):(a=o.cachePool,a!==null?(c=wt._currentValue,a=a.parent!==c?{parent:c,pool:c}:a):a=KE(),o={baseLanes:o.baseLanes|n,cachePool:a}),r.memoizedState=o,r.childLanes=$y(e,l,n),t.memoizedState=My,kc(e.child,r)):(Xa(t),n=e.child,e=n.sibling,n=ba(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(l=t.deletions,l===null?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=n,t.memoizedState=null,n)}function gg(e,t){return t=uh({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function uh(e,t){return e=En(22,e,null,t),e.lanes=0,e}function Ry(e,t,n){return As(t,e.child,null,n),e=gg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sS(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ig(e.return,t,n)}function Dy(e,t,n,r,a,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,treeForkCount:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=a,l.treeForkCount=i)}function IC(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;r=r.children;var l=yt.current,o=(l&2)!==0;if(o?(l=l&1|2,t.flags|=128):l&=1,Ge(yt,l),Ut(e,t,r,n),r=Ae?lu:0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sS(e,n,t);else if(e.tag===19)sS(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&&sh(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Dy(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&&sh(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Dy(t,!0,n,null,i,r);break;case"together":Dy(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ca(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ci|=t.lanes,!(n&t.childLanes))if(e!==null){if(Io(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(F(153));if(t.child!==null){for(e=t.child,n=ba(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ba(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function v0(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&rh(e)))}function d4(e,t,n){switch(t.tag){case 3:Xd(t,t.stateNode.containerInfo),Wa(t,wt,e.memoizedState.cache),Os();break;case 27:case 5:Kv(t);break;case 4:Xd(t,t.stateNode.containerInfo);break;case 10:Wa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,fg(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Xa(t),t.flags|=128,null):n&t.child.childLanes?zC(e,t,n):(Xa(t),e=Ca(e,t,n),e!==null?e.sibling:null);Xa(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(Io(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return IC(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ge(yt,yt.current),r)break;return null;case 22:return t.lanes=0,LC(e,t,n,t.pendingProps);case 24:Wa(t,wt,e.memoizedState.cache)}return Ca(e,t,n)}function BC(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ot=!0;else{if(!v0(e,n)&&!(t.flags&128))return Ot=!1,d4(e,t,n);Ot=!!(e.flags&131072)}else Ot=!1,Ae&&t.flags&1048576&&HE(t,lu,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Xi(t.elementType),t.type=e,typeof e=="function")Wb(e)?(r=Cs(e,r),t.tag=1,t=aS(null,t,e,r,n)):(t.tag=0,t=vg(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===Rb){t.tag=11,t=Jj(null,t,e,r,n);break e}else if(a===Db){t.tag=14,t=eS(null,t,e,r,n);break e}}throw t=Fv(e)||e,Error(F(306,t,""))}}return t;case 0:return vg(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Cs(r,t.pendingProps),aS(e,t,r,a,n);case 3:e:{if(Xd(t,t.stateNode.containerInfo),e===null)throw Error(F(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,og(e,t),Uc(t,r,null,n);var l=t.memoizedState;if(r=l.cache,Wa(t,wt,r),r!==i.cache&&sg(t,[wt],n,!0),Bc(),r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=iS(e,t,r,n);break e}else if(r!==a){a=Qn(Error(F(424)),t),ou(a),t=iS(e,t,r,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ze=rr(e.firstChild),Ht=t,Ae=!0,mi=null,Zn=!0,n=WE(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Os(),r===a){t=Ca(e,t,n);break e}Ut(e,t,r,n)}t=t.child}return t;case 26:return Rd(e,t),e===null?(n=AS(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ae||(n=t.type,e=t.pendingProps,r=gh(pi.current).createElement(n),r[qt]=t,r[gn]=e,Kt(r,n,e),Rt(r),t.stateNode=r):t.memoizedState=AS(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Kv(t),e===null&&Ae&&(r=t.stateNode=T_(t.type,t.pendingProps,pi.current),Ht=t,Zn=!0,a=Ze,$i(t.type)?(Mg=a,Ze=rr(r.firstChild)):Ze=a),Ut(e,t,t.pendingProps.children,n),Rd(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((a=r=Ze)&&(r=q4(r,t.type,t.pendingProps,Zn),r!==null?(t.stateNode=r,Ht=t,Ze=rr(r.firstChild),Zn=!1,a=!0):a=!1),a||Ai(t)),Kv(t),a=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,r=i.children,Cg(a,i)?r=null:l!==null&&Cg(a,l)&&(t.flags|=32),t.memoizedState!==null&&(a=a0(e,t,r4,null,null,n),pu._currentValue=a),Rd(e,t),Ut(e,t,r,n),t.child;case 6:return e===null&&Ae&&((e=n=Ze)&&(n=H4(n,t.pendingProps,Zn),n!==null?(t.stateNode=n,Ht=t,Ze=null,e=!0):e=!1),e||Ai(t)),null;case 13:return zC(e,t,n);case 4:return Xd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=As(t,null,r,n):Ut(e,t,r,n),t.child;case 11:return Jj(e,t,t.type,t.pendingProps,n);case 7:return Ut(e,t,t.pendingProps,n),t.child;case 8:return Ut(e,t,t.pendingProps.children,n),t.child;case 12:return Ut(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Wa(t,t.type,r.value),Ut(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Ns(t),a=Gt(a),r=r(a),t.flags|=1,Ut(e,t,r,n),t.child;case 14:return eS(e,t,t.type,t.pendingProps,n);case 15:return DC(e,t,t.type,t.pendingProps,n);case 19:return IC(e,t,n);case 31:return f4(e,t,n);case 22:return LC(e,t,n,t.pendingProps);case 24:return Ns(t),r=Gt(wt),e===null?(a=Jb(),a===null&&(a=Ue,i=Zb(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},t0(t),Wa(t,wt,a)):(e.lanes&n&&(og(e,t),Uc(t,null,null,n),Bc()),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),Wa(t,wt,r)):(r=i.cache,Wa(t,wt,r),r!==a.cache&&sg(t,[wt],n,!0))),Ut(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(F(156,t.tag))}function ra(e){e.flags|=4}function Ly(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(u_())e.flags|=8192;else throw vs=ah,e0}else e.flags&=-16777217}function lS(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!P_(t))if(u_())e.flags|=8192;else throw vs=ah,e0}function Wf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?fE():536870912,e.lanes|=t,Ql|=t)}function hc(e,t){if(!Ae)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 We(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 h4(e,t,n){var r=t.pendingProps;switch(Qb(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return We(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ja(wt),Gl(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ws(t)?ra(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Cy())),We(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(ra(t),i!==null?(We(t),lS(t,i)):(We(t),Ly(t,a,null,r,n))):i?i!==e.memoizedState?(ra(t),We(t),lS(t,i)):(We(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&ra(t),We(t),Ly(t,a,e,r,n)),null;case 27:if(Qd(t),n=pi.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ra(t);else{if(!r){if(t.stateNode===null)throw Error(F(166));return We(t),null}e=Fr.current,Ws(t)?Dj(t):(e=T_(a,r,n),t.stateNode=e,ra(t))}return We(t),null;case 5:if(Qd(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ra(t);else{if(!r){if(t.stateNode===null)throw Error(F(166));return We(t),null}if(i=Fr.current,Ws(t))Dj(t);else{var l=gh(pi.current);switch(i){case 1:i=l.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=l.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=l.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof r.is=="string"?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?i.multiple=!0:r.size&&(i.size=r.size);break;default:i=typeof r.is=="string"?l.createElement(a,{is:r.is}):l.createElement(a)}}i[qt]=t,i[gn]=r;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)i.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=i;e:switch(Kt(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&&ra(t)}}return We(t),Ly(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ra(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(F(166));if(e=pi.current,Ws(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ht,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[qt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||A_(e.nodeValue,n)),e||Ai(t,!0)}else e=gh(e).createTextNode(r),e[qt]=t,t.stateNode=e}return We(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ws(t),n!==null){if(e===null){if(!r)throw Error(F(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(F(557));e[qt]=t}else Os(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;We(t),e=!1}else n=Cy(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(An(t),t):(An(t),null);if(t.flags&128)throw Error(F(558))}return We(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ws(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(F(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(F(317));a[qt]=t}else Os(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;We(t),a=!1}else a=Cy(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(An(t),t):(An(t),null)}return An(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),Wf(t,t.updateQueue),We(t),null);case 4:return Gl(),e===null&&O0(t.stateNode.containerInfo),We(t),null;case 10:return ja(t.type),We(t),null;case 19:if(Lt(yt),r=t.memoizedState,r===null)return We(t),null;if(a=(t.flags&128)!==0,i=r.rendering,i===null)if(a)hc(r,!1);else{if(pt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=sh(e),i!==null){for(t.flags|=128,hc(r,!1),e=i.updateQueue,t.updateQueue=e,Wf(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)UE(n,e),n=n.sibling;return Ge(yt,yt.current&1|2),Ae&&ua(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Tn()>dh&&(t.flags|=128,a=!0,hc(r,!1),t.lanes=4194304)}else{if(!a)if(e=sh(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Wf(t,e),hc(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!Ae)return We(t),null}else 2*Tn()-r.renderingStartTime>dh&&n!==536870912&&(t.flags|=128,a=!0,hc(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=yt.current,Ge(yt,a?n&1|2:n&1),Ae&&ua(t,r.treeForkCount),e):(We(t),null);case 22:case 23:return An(t),n0(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),n=t.updateQueue,n!==null&&Wf(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&&Lt(ys),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ja(wt),We(t),null;case 25:return null;case 30:return null}throw Error(F(156,t.tag))}function p4(e,t){switch(Qb(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ja(wt),Gl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Qd(t),null;case 31:if(t.memoizedState!==null){if(An(t),t.alternate===null)throw Error(F(340));Os()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(An(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));Os()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Lt(yt),null;case 4:return Gl(),null;case 10:return ja(t.type),null;case 22:case 23:return An(t),n0(),e!==null&&Lt(ys),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ja(wt),null;case 25:return null;default:return null}}function UC(e,t){switch(Qb(t),t.tag){case 3:ja(wt),Gl();break;case 26:case 27:case 5:Qd(t);break;case 4:Gl();break;case 31:t.memoizedState!==null&&An(t);break;case 13:An(t);break;case 19:Lt(yt);break;case 10:ja(t.type);break;case 22:case 23:An(t),n0(),e!==null&&Lt(ys);break;case 24:ja(wt)}}function pf(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,l=n.inst;r=i(),l.destroy=r}n=n.next}while(n!==a)}}catch(o){Re(t,t.return,o)}}function Ei(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 l=r.inst,o=l.destroy;if(o!==void 0){l.destroy=void 0,a=t;var c=n,u=o;try{u()}catch(f){Re(a,c,f)}}}r=r.next}while(r!==i)}}catch(f){Re(t,t.return,f)}}function qC(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{QE(t,n)}catch(r){Re(e,e.return,r)}}}function HC(e,t,n){n.props=Cs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Re(e,t,r)}}function Hc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(a){Re(e,t,a)}}function Ur(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(a){Re(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Re(e,t,a)}else n.current=null}function FC(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){Re(e,e.return,a)}}function zy(e,t,n){try{var r=e.stateNode;D4(r,e.type,n,t),r[gn]=t}catch(a){Re(e,e.return,a)}}function GC(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$i(e.type)||e.tag===4}function Iy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||GC(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&&$i(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 xg(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=ma));else if(r!==4&&(r===27&&$i(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(xg(e,t,n),e=e.sibling;e!==null;)xg(e,t,n),e=e.sibling}function fh(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&&$i(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(fh(e,t,n),e=e.sibling;e!==null;)fh(e,t,n),e=e.sibling}function KC(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Kt(t,r,n),t[qt]=e,t[gn]=n}catch(i){Re(e,e.return,i)}}var ha=!1,St=!1,By=!1,oS=typeof WeakSet=="function"?WeakSet:Set,$t=null;function m4(e,t){if(e=e.containerInfo,Ag=Sh,e=PE(e),Kb(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 l=0,o=-1,c=-1,u=0,f=0,d=e,h=null;t:for(;;){for(var m;d!==n||a!==0&&d.nodeType!==3||(o=l+a),d!==i||r!==0&&d.nodeType!==3||(c=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(m=d.firstChild)!==null;)h=d,d=m;for(;;){if(d===e)break t;if(h===n&&++u===a&&(o=l),h===i&&++f===r&&(c=l),(m=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=m}n=o===-1||c===-1?null:{start:o,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Eg={focusedElem:e,selectionRange:n},Sh=!1,$t=t;$t!==null;)if(t=$t,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$t=e;else for(;$t!==null;){switch(t=$t,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 j=Cs(n.type,a);e=r.getSnapshotBeforeUpdate(j,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(y){Re(n,n.return,y)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)_g(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":_g(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(F(163))}if(e=t.sibling,e!==null){e.return=t.return,$t=e;break}$t=t.return}}function YC(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ia(e,n),r&4&&pf(5,n);break;case 1:if(ia(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(l){Re(n,n.return,l)}else{var a=Cs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){Re(n,n.return,l)}}r&64&&qC(n),r&512&&Hc(n,n.return);break;case 3:if(ia(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(l){Re(n,n.return,l)}}break;case 27:t===null&&r&4&&KC(n);case 26:case 5:ia(e,n),t===null&&r&4&&FC(n),r&512&&Hc(n,n.return);break;case 12:ia(e,n);break;case 31:ia(e,n),r&4&&XC(e,n);break;case 13:ia(e,n),r&4&&QC(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=O4.bind(null,n),F4(e,n))));break;case 22:if(r=n.memoizedState!==null||ha,!r){t=t!==null&&t.memoizedState!==null||St,a=ha;var i=St;ha=r,(St=t)&&!i?la(e,n,(n.subtreeFlags&8772)!==0):ia(e,n),ha=a,St=i}break;case 30:break;default:ia(e,n)}}function VC(e){var t=e.alternate;t!==null&&(e.alternate=null,VC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Bb(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,hn=!1;function aa(e,t,n){for(n=n.child;n!==null;)WC(e,t,n),n=n.sibling}function WC(e,t,n){if(kn&&typeof kn.onCommitFiberUnmount=="function")try{kn.onCommitFiberUnmount(lf,n)}catch{}switch(n.tag){case 26:St||Ur(n,t),aa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:St||Ur(n,t);var r=nt,a=hn;$i(n.type)&&(nt=n.stateNode,hn=!1),aa(e,t,n),Yc(n.stateNode),nt=r,hn=a;break;case 5:St||Ur(n,t);case 6:if(r=nt,a=hn,nt=null,aa(e,t,n),nt=r,hn=a,nt!==null)if(hn)try{(nt.nodeType===9?nt.body:nt.nodeName==="HTML"?nt.ownerDocument.body:nt).removeChild(n.stateNode)}catch(i){Re(n,t,i)}else try{nt.removeChild(n.stateNode)}catch(i){Re(n,t,i)}break;case 18:nt!==null&&(hn?(e=nt,jS(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),to(e)):jS(nt,n.stateNode));break;case 4:r=nt,a=hn,nt=n.stateNode.containerInfo,hn=!0,aa(e,t,n),nt=r,hn=a;break;case 0:case 11:case 14:case 15:Ei(2,n,t),St||Ei(4,n,t),aa(e,t,n);break;case 1:St||(Ur(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&HC(n,t,r)),aa(e,t,n);break;case 21:aa(e,t,n);break;case 22:St=(r=St)||n.memoizedState!==null,aa(e,t,n),St=r;break;default:aa(e,t,n)}}function XC(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{to(e)}catch(n){Re(t,t.return,n)}}}function QC(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{to(e)}catch(n){Re(t,t.return,n)}}function y4(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new oS),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new oS),t;default:throw Error(F(435,e.tag))}}function Xf(e,t){var n=y4(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=N4.bind(null,e,r);r.then(a,a)}})}function un(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],i=e,l=t,o=l;e:for(;o!==null;){switch(o.tag){case 27:if($i(o.type)){nt=o.stateNode,hn=!1;break e}break;case 5:nt=o.stateNode,hn=!1;break e;case 3:case 4:nt=o.stateNode.containerInfo,hn=!0;break e}o=o.return}if(nt===null)throw Error(F(160));WC(i,l,a),nt=null,hn=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ZC(t,e),t=t.sibling}var yr=null;function ZC(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:un(t,e),fn(e),r&4&&(Ei(3,e,e.return),pf(3,e),Ei(5,e,e.return));break;case 1:un(t,e),fn(e),r&512&&(St||n===null||Ur(n,n.return)),r&64&&ha&&(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=yr;if(un(t,e),fn(e),r&512&&(St||n===null||Ur(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[uf]||i[qt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(r),a.head.insertBefore(i,a.querySelector("head > title"))),Kt(i,r,n),i[qt]=e,Rt(i),r=i;break e;case"link":var l=CS("link","href",a).get(r+(n.href||""));if(l){for(var o=0;o<l.length;o++)if(i=l[o],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)){l.splice(o,1);break t}}i=a.createElement(r),Kt(i,r,n),a.head.appendChild(i);break;case"meta":if(l=CS("meta","content",a).get(r+(n.content||""))){for(o=0;o<l.length;o++)if(i=l[o],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)){l.splice(o,1);break t}}i=a.createElement(r),Kt(i,r,n),a.head.appendChild(i);break;default:throw Error(F(468,r))}i[qt]=e,Rt(i),r=i}e.stateNode=r}else _S(a,e.type,e.stateNode);else e.stateNode=ES(a,r,e.memoizedProps);else i!==r?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,r===null?_S(a,e.type,e.stateNode):ES(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&zy(e,e.memoizedProps,n.memoizedProps)}break;case 27:un(t,e),fn(e),r&512&&(St||n===null||Ur(n,n.return)),n!==null&&r&4&&zy(e,e.memoizedProps,n.memoizedProps);break;case 5:if(un(t,e),fn(e),r&512&&(St||n===null||Ur(n,n.return)),e.flags&32){a=e.stateNode;try{Yl(a,"")}catch(j){Re(e,e.return,j)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,zy(e,a,n!==null?n.memoizedProps:a)),r&1024&&(By=!0);break;case 6:if(un(t,e),fn(e),r&4){if(e.stateNode===null)throw Error(F(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(j){Re(e,e.return,j)}}break;case 3:if(zd=null,a=yr,yr=xh(t.containerInfo),un(t,e),yr=a,fn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{to(t.containerInfo)}catch(j){Re(e,e.return,j)}By&&(By=!1,JC(e));break;case 4:r=yr,yr=xh(e.stateNode.containerInfo),un(t,e),fn(e),yr=r;break;case 12:un(t,e),fn(e);break;case 31:un(t,e),fn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Xf(e,r)));break;case 13:un(t,e),fn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Wp=Tn()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Xf(e,r)));break;case 22:a=e.memoizedState!==null;var c=n!==null&&n.memoizedState!==null,u=ha,f=St;if(ha=u||a,St=f||c,un(t,e),St=f,ha=u,fn(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||c||ha||St||Qi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){c=n=t;try{if(i=c.stateNode,a)l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none";else{o=c.stateNode;var d=c.memoizedProps.style,h=d!=null&&d.hasOwnProperty("display")?d.display:null;o.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(j){Re(c,c.return,j)}}}else if(t.tag===6){if(n===null){c=t;try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(j){Re(c,c.return,j)}}}else if(t.tag===18){if(n===null){c=t;try{var m=c.stateNode;a?SS(m,!0):SS(c.stateNode,!1)}catch(j){Re(c,c.return,j)}}}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,Xf(e,n))));break;case 19:un(t,e),fn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Xf(e,r)));break;case 30:break;case 21:break;default:un(t,e),fn(e)}}function fn(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(GC(r)){n=r;break}r=r.return}if(n==null)throw Error(F(160));switch(n.tag){case 27:var a=n.stateNode,i=Iy(e);fh(e,i,a);break;case 5:var l=n.stateNode;n.flags&32&&(Yl(l,""),n.flags&=-33);var o=Iy(e);fh(e,o,l);break;case 3:case 4:var c=n.stateNode.containerInfo,u=Iy(e);xg(e,u,c);break;default:throw Error(F(161))}}catch(f){Re(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function JC(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;JC(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ia(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)YC(e,t.alternate,t),t=t.sibling}function Qi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ei(4,t,t.return),Qi(t);break;case 1:Ur(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&HC(t,t.return,n),Qi(t);break;case 27:Yc(t.stateNode);case 26:case 5:Ur(t,t.return),Qi(t);break;case 22:t.memoizedState===null&&Qi(t);break;case 30:Qi(t);break;default:Qi(t)}e=e.sibling}}function la(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,a=e,i=t,l=i.flags;switch(i.tag){case 0:case 11:case 15:la(a,i,n),pf(4,i);break;case 1:if(la(a,i,n),r=i,a=r.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){Re(r,r.return,u)}if(r=i,a=r.updateQueue,a!==null){var o=r.stateNode;try{var c=a.shared.hiddenCallbacks;if(c!==null)for(a.shared.hiddenCallbacks=null,a=0;a<c.length;a++)XE(c[a],o)}catch(u){Re(r,r.return,u)}}n&&l&64&&qC(i),Hc(i,i.return);break;case 27:KC(i);case 26:case 5:la(a,i,n),n&&r===null&&l&4&&FC(i),Hc(i,i.return);break;case 12:la(a,i,n);break;case 31:la(a,i,n),n&&l&4&&XC(a,i);break;case 13:la(a,i,n),n&&l&4&&QC(a,i);break;case 22:i.memoizedState===null&&la(a,i,n),Hc(i,i.return);break;case 30:break;default:la(a,i,n)}t=t.sibling}}function g0(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&&df(n))}function x0(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&df(e))}function dr(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)e_(e,t,n,r),t=t.sibling}function e_(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:dr(e,t,n,r),a&2048&&pf(9,t);break;case 1:dr(e,t,n,r);break;case 3:dr(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&&df(e)));break;case 12:if(a&2048){dr(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,l=i.id,o=i.onPostCommit;typeof o=="function"&&o(l,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(c){Re(t,t.return,c)}}else dr(e,t,n,r);break;case 31:dr(e,t,n,r);break;case 13:dr(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,l=t.alternate,t.memoizedState!==null?i._visibility&2?dr(e,t,n,r):Fc(e,t):i._visibility&2?dr(e,t,n,r):(i._visibility|=2,al(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&g0(l,t);break;case 24:dr(e,t,n,r),a&2048&&x0(t.alternate,t);break;default:dr(e,t,n,r)}}function al(e,t,n,r,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,l=t,o=n,c=r,u=l.flags;switch(l.tag){case 0:case 11:case 15:al(i,l,o,c,a),pf(8,l);break;case 23:break;case 22:var f=l.stateNode;l.memoizedState!==null?f._visibility&2?al(i,l,o,c,a):Fc(i,l):(f._visibility|=2,al(i,l,o,c,a)),a&&u&2048&&g0(l.alternate,l);break;case 24:al(i,l,o,c,a),a&&u&2048&&x0(l.alternate,l);break;default:al(i,l,o,c,a)}t=t.sibling}}function Fc(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:Fc(n,r),a&2048&&g0(r.alternate,r);break;case 24:Fc(n,r),a&2048&&x0(r.alternate,r);break;default:Fc(n,r)}t=t.sibling}}var Mc=8192;function Xs(e,t,n){if(e.subtreeFlags&Mc)for(e=e.child;e!==null;)t_(e,t,n),e=e.sibling}function t_(e,t,n){switch(e.tag){case 26:Xs(e,t,n),e.flags&Mc&&e.memoizedState!==null&&nD(n,yr,e.memoizedState,e.memoizedProps);break;case 5:Xs(e,t,n);break;case 3:case 4:var r=yr;yr=xh(e.stateNode.containerInfo),Xs(e,t,n),yr=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Mc,Mc=16777216,Xs(e,t,n),Mc=r):Xs(e,t,n));break;default:Xs(e,t,n)}}function n_(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 pc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];$t=r,a_(r,e)}n_(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)r_(e),e=e.sibling}function r_(e){switch(e.tag){case 0:case 11:case 15:pc(e),e.flags&2048&&Ei(9,e,e.return);break;case 3:pc(e);break;case 12:pc(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Dd(e)):pc(e);break;default:pc(e)}}function Dd(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];$t=r,a_(r,e)}n_(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ei(8,t,t.return),Dd(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Dd(t));break;default:Dd(t)}e=e.sibling}}function a_(e,t){for(;$t!==null;){var n=$t;switch(n.tag){case 0:case 11:case 15:Ei(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:df(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,$t=r;else e:for(n=e;$t!==null;){r=$t;var a=r.sibling,i=r.return;if(VC(r),r===n){$t=null;break e}if(a!==null){a.return=i,$t=a;break e}$t=i}}}var v4={getCacheForType:function(e){var t=Gt(wt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Gt(wt).controller.signal}},g4=typeof WeakMap=="function"?WeakMap:Map,_e=0,Ue=null,je=null,Oe=0,$e=0,wn=null,oi=!1,Uo=!1,b0=!1,_a=0,pt=0,Ci=0,gs=0,j0=0,_n=0,Ql=0,Gc=null,pn=null,bg=!1,Wp=0,i_=0,dh=1/0,hh=null,gi=null,Ct=0,xi=null,Zl=null,Sa=0,jg=0,Sg=null,s_=null,Kc=0,wg=null;function Pn(){return _e&2&&Oe!==0?Oe&-Oe:fe.T!==null?w0():mE()}function l_(){if(_n===0)if(!(Oe&536870912)||Ae){var e=qf;qf<<=1,!(qf&3932160)&&(qf=262144),_n=e}else _n=536870912;return e=Dn.current,e!==null&&(e.flags|=32),_n}function yn(e,t,n){(e===Ue&&($e===2||$e===9)||e.cancelPendingCommit!==null)&&(Jl(e,0),ci(e,Oe,_n,!1)),cf(e,n),(!(_e&2)||e!==Ue)&&(e===Ue&&(!(_e&2)&&(gs|=n),pt===4&&ci(e,Oe,_n,!1)),Qr(e))}function o_(e,t,n){if(_e&6)throw Error(F(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||of(e,t),a=r?j4(e,t):Uy(e,t,!0),i=r;do{if(a===0){Uo&&!r&&ci(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!x4(n)){a=Uy(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){t=l;e:{var o=e;a=Gc;var c=o.current.memoizedState.isDehydrated;if(c&&(Jl(o,l).flags|=256),l=Uy(o,l,!1),l!==2){if(b0&&!c){o.errorRecoveryDisabledLanes|=i,gs|=i,a=4;break e}i=pn,pn=a,i!==null&&(pn===null?pn=i:pn.push.apply(pn,i))}a=l}if(i=!1,a!==2)continue}}if(a===1){Jl(e,0),ci(e,t,0,!0);break}e:{switch(r=e,i=a,i){case 0:case 1:throw Error(F(345));case 4:if((t&4194048)!==t)break;case 6:ci(r,t,_n,!oi);break e;case 2:pn=null;break;case 3:case 5:break;default:throw Error(F(329))}if((t&62914560)===t&&(a=Wp+300-Tn(),10<a)){if(ci(r,t,_n,!oi),zp(r,0,!0)!==0)break e;Sa=t,r.timeoutHandle=C_(cS.bind(null,r,n,pn,hh,bg,t,_n,gs,Ql,oi,i,"Throttled",-0,0),a);break e}cS(r,n,pn,hh,bg,t,_n,gs,Ql,oi,i,null,-0,0)}}break}while(!0);Qr(e)}function cS(e,t,n,r,a,i,l,o,c,u,f,d,h,m){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)===16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ma},t_(t,i,d);var j=(i&62914560)===i?Wp-Tn():(i&4194048)===i?i_-Tn():0;if(j=rD(d,j),j!==null){Sa=i,e.cancelPendingCommit=j(fS.bind(null,e,t,i,n,r,a,l,o,c,f,d,null,h,m)),ci(e,i,l,!u);return}}fS(e,t,i,n,r,a,l,o,c)}function x4(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(!Rn(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 ci(e,t,n,r){t&=~j0,t&=~gs,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var i=31-Mn(a),l=1<<i;r[i]=-1,a&=~l}n!==0&&dE(e,n,t)}function Xp(){return _e&6?!0:(mf(0),!1)}function S0(){if(je!==null){if($e===0)var e=je.return;else e=je,ya=Us=null,l0(e),_l=null,cu=0,e=je;for(;e!==null;)UC(e.alternate,e),e=e.return;je=null}}function Jl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,I4(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Sa=0,S0(),Ue=e,je=n=ba(e.current,null),Oe=t,$e=0,wn=null,oi=!1,Uo=of(e,t),b0=!1,Ql=_n=j0=gs=Ci=pt=0,pn=Gc=null,bg=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-Mn(r),i=1<<a;t|=e[a],r&=~i}return _a=t,qp(),n}function c_(e,t){ye=null,fe.H=fu,t===Bo||t===Fp?(t=Uj(),$e=3):t===e0?(t=Uj(),$e=4):$e=t===y0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,wn=t,je===null&&(pt=1,ch(e,Qn(t,e.current)))}function u_(){var e=Dn.current;return e===null?!0:(Oe&4194048)===Oe?nr===null:(Oe&62914560)===Oe||Oe&536870912?e===nr:!1}function f_(){var e=fe.H;return fe.H=fu,e===null?fu:e}function d_(){var e=fe.A;return fe.A=v4,e}function ph(){pt=4,oi||(Oe&4194048)!==Oe&&Dn.current!==null||(Uo=!0),!(Ci&134217727)&&!(gs&134217727)||Ue===null||ci(Ue,Oe,_n,!1)}function Uy(e,t,n){var r=_e;_e|=2;var a=f_(),i=d_();(Ue!==e||Oe!==t)&&(hh=null,Jl(e,t)),t=!1;var l=pt;e:do try{if($e!==0&&je!==null){var o=je,c=wn;switch($e){case 8:S0(),l=6;break e;case 3:case 2:case 9:case 6:Dn.current===null&&(t=!0);var u=$e;if($e=0,wn=null,vl(e,o,c,u),n&&Uo){l=0;break e}break;default:u=$e,$e=0,wn=null,vl(e,o,c,u)}}b4(),l=pt;break}catch(f){c_(e,f)}while(!0);return t&&e.shellSuspendCounter++,ya=Us=null,_e=r,fe.H=a,fe.A=i,je===null&&(Ue=null,Oe=0,qp()),l}function b4(){for(;je!==null;)h_(je)}function j4(e,t){var n=_e;_e|=2;var r=f_(),a=d_();Ue!==e||Oe!==t?(hh=null,dh=Tn()+500,Jl(e,t)):Uo=of(e,t);e:do try{if($e!==0&&je!==null){t=je;var i=wn;t:switch($e){case 1:$e=0,wn=null,vl(e,t,i,1);break;case 2:case 9:if(Bj(i)){$e=0,wn=null,uS(t);break}t=function(){$e!==2&&$e!==9||Ue!==e||($e=7),Qr(e)},i.then(t,t);break e;case 3:$e=7;break e;case 4:$e=5;break e;case 7:Bj(i)?($e=0,wn=null,uS(t)):($e=0,wn=null,vl(e,t,i,7));break;case 5:var l=null;switch(je.tag){case 26:l=je.memoizedState;case 5:case 27:var o=je;if(l?P_(l):o.stateNode.complete){$e=0,wn=null;var c=o.sibling;if(c!==null)je=c;else{var u=o.return;u!==null?(je=u,Qp(u)):je=null}break t}}$e=0,wn=null,vl(e,t,i,5);break;case 6:$e=0,wn=null,vl(e,t,i,6);break;case 8:S0(),pt=6;break e;default:throw Error(F(462))}}S4();break}catch(f){c_(e,f)}while(!0);return ya=Us=null,fe.H=r,fe.A=a,_e=n,je!==null?0:(Ue=null,Oe=0,qp(),pt)}function S4(){for(;je!==null&&!G$();)h_(je)}function h_(e){var t=BC(e.alternate,e,_a);e.memoizedProps=e.pendingProps,t===null?Qp(e):je=t}function uS(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=rS(n,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=rS(n,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:l0(t);default:UC(n,t),t=je=UE(t,_a),t=BC(n,t,_a)}e.memoizedProps=e.pendingProps,t===null?Qp(e):je=t}function vl(e,t,n,r){ya=Us=null,l0(t),_l=null,cu=0;var a=t.return;try{if(u4(e,a,t,n,Oe)){pt=1,ch(e,Qn(n,e.current)),je=null;return}}catch(i){if(a!==null)throw je=a,i;pt=1,ch(e,Qn(n,e.current)),je=null;return}t.flags&32768?(Ae||r===1?e=!0:Uo||Oe&536870912?e=!1:(oi=e=!0,(r===2||r===9||r===3||r===6)&&(r=Dn.current,r!==null&&r.tag===13&&(r.flags|=16384))),p_(t,e)):Qp(t)}function Qp(e){var t=e;do{if(t.flags&32768){p_(t,oi);return}e=t.return;var n=h4(t.alternate,t,_a);if(n!==null){je=n;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);pt===0&&(pt=5)}function p_(e,t){do{var n=p4(e.alternate,e);if(n!==null){n.flags&=32767,je=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=n}while(e!==null);pt=6,je=null}function fS(e,t,n,r,a,i,l,o,c){e.cancelPendingCommit=null;do Zp();while(Ct!==0);if(_e&6)throw Error(F(327));if(t!==null){if(t===e.current)throw Error(F(177));if(i=t.lanes|t.childLanes,i|=Yb,tR(e,n,i,l,o,c),e===Ue&&(je=Ue=null,Oe=0),Zl=t,xi=e,Sa=n,jg=i,Sg=a,s_=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,A4(Zd,function(){return x_(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=fe.T,fe.T=null,a=Te.p,Te.p=2,l=_e,_e|=4;try{m4(e,t,n)}finally{_e=l,Te.p=a,fe.T=r}}Ct=1,m_(),y_(),v_()}}function m_(){if(Ct===1){Ct=0;var e=xi,t=Zl,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=fe.T,fe.T=null;var r=Te.p;Te.p=2;var a=_e;_e|=4;try{ZC(t,e);var i=Eg,l=PE(e.containerInfo),o=i.focusedElem,c=i.selectionRange;if(l!==o&&o&&o.ownerDocument&&ME(o.ownerDocument.documentElement,o)){if(c!==null&&Kb(o)){var u=c.start,f=c.end;if(f===void 0&&(f=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(f,o.value.length);else{var d=o.ownerDocument||document,h=d&&d.defaultView||window;if(h.getSelection){var m=h.getSelection(),j=o.textContent.length,y=Math.min(c.start,j),p=c.end===void 0?y:Math.min(c.end,j);!m.extend&&y>p&&(l=p,p=y,y=l);var v=Pj(o,y),g=Pj(o,p);if(v&&g&&(m.rangeCount!==1||m.anchorNode!==v.node||m.anchorOffset!==v.offset||m.focusNode!==g.node||m.focusOffset!==g.offset)){var b=d.createRange();b.setStart(v.node,v.offset),m.removeAllRanges(),y>p?(m.addRange(b),m.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),m.addRange(b))}}}}for(d=[],m=o;m=m.parentNode;)m.nodeType===1&&d.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<d.length;o++){var x=d[o];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}Sh=!!Ag,Eg=Ag=null}finally{_e=a,Te.p=r,fe.T=n}}e.current=t,Ct=2}}function y_(){if(Ct===2){Ct=0;var e=xi,t=Zl,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=fe.T,fe.T=null;var r=Te.p;Te.p=2;var a=_e;_e|=4;try{YC(e,t.alternate,t)}finally{_e=a,Te.p=r,fe.T=n}}Ct=3}}function v_(){if(Ct===4||Ct===3){Ct=0,K$();var e=xi,t=Zl,n=Sa,r=s_;t.subtreeFlags&10256||t.flags&10256?Ct=5:(Ct=0,Zl=xi=null,g_(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(gi=null),Ib(n),t=t.stateNode,kn&&typeof kn.onCommitFiberRoot=="function")try{kn.onCommitFiberRoot(lf,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=fe.T,a=Te.p,Te.p=2,fe.T=null;try{for(var i=e.onRecoverableError,l=0;l<r.length;l++){var o=r[l];i(o.value,{componentStack:o.stack})}}finally{fe.T=t,Te.p=a}}Sa&3&&Zp(),Qr(e),a=e.pendingLanes,n&261930&&a&42?e===wg?Kc++:(Kc=0,wg=e):Kc=0,mf(0)}}function g_(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,df(t)))}function Zp(){return m_(),y_(),v_(),x_()}function x_(){if(Ct!==5)return!1;var e=xi,t=jg;jg=0;var n=Ib(Sa),r=fe.T,a=Te.p;try{Te.p=32>n?32:n,fe.T=null,n=Sg,Sg=null;var i=xi,l=Sa;if(Ct=0,Zl=xi=null,Sa=0,_e&6)throw Error(F(331));var o=_e;if(_e|=4,r_(i.current),e_(i,i.current,l,n),_e=o,mf(0,!1),kn&&typeof kn.onPostCommitFiberRoot=="function")try{kn.onPostCommitFiberRoot(lf,i)}catch{}return!0}finally{Te.p=a,fe.T=r,g_(e,t)}}function dS(e,t,n){t=Qn(n,t),t=yg(e.stateNode,t,2),e=vi(e,t,2),e!==null&&(cf(e,2),Qr(e))}function Re(e,t,n){if(e.tag===3)dS(e,e,n);else for(;t!==null;){if(t.tag===3){dS(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gi===null||!gi.has(r))){e=Qn(n,e),n=$C(2),r=vi(t,n,2),r!==null&&(RC(n,r,t,e),cf(r,2),Qr(r));break}}t=t.return}}function qy(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new g4;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)||(b0=!0,a.add(n),e=w4.bind(null,e,t,n),t.then(e,e))}function w4(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ue===e&&(Oe&n)===n&&(pt===4||pt===3&&(Oe&62914560)===Oe&&300>Tn()-Wp?!(_e&2)&&Jl(e,0):j0|=n,Ql===Oe&&(Ql=0)),Qr(e)}function b_(e,t){t===0&&(t=fE()),e=Bs(e,t),e!==null&&(cf(e,t),Qr(e))}function O4(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),b_(e,n)}function N4(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(F(314))}r!==null&&r.delete(t),b_(e,n)}function A4(e,t){return Lb(e,t)}var mh=null,il=null,Og=!1,yh=!1,Hy=!1,ui=0;function Qr(e){e!==il&&e.next===null&&(il===null?mh=il=e:il=il.next=e),yh=!0,Og||(Og=!0,C4())}function mf(e,t){if(!Hy&&yh){Hy=!0;do for(var n=!1,r=mh;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var i=0;else{var l=r.suspendedLanes,o=r.pingedLanes;i=(1<<31-Mn(42|e)+1)-1,i&=a&~(l&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,hS(r,i))}else i=Oe,i=zp(r,r===Ue?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(i&3)||of(r,i)||(n=!0,hS(r,i));r=r.next}while(n);Hy=!1}}function E4(){j_()}function j_(){yh=Og=!1;var e=0;ui!==0&&z4()&&(e=ui);for(var t=Tn(),n=null,r=mh;r!==null;){var a=r.next,i=S_(r,t);i===0?(r.next=null,n===null?mh=a:n.next=a,a===null&&(il=n)):(n=r,(e!==0||i&3)&&(yh=!0)),r=a}Ct!==0&&Ct!==5||mf(e),ui!==0&&(ui=0)}function S_(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var l=31-Mn(i),o=1<<l,c=a[l];c===-1?(!(o&n)||o&r)&&(a[l]=eR(o,t)):c<=t&&(e.expiredLanes|=o),i&=~o}if(t=Ue,n=Oe,n=zp(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&($e===2||$e===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&vy(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||of(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&vy(r),Ib(n)){case 2:case 8:n=cE;break;case 32:n=Zd;break;case 268435456:n=uE;break;default:n=Zd}return r=w_.bind(null,e),n=Lb(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&vy(r),e.callbackPriority=2,e.callbackNode=null,2}function w_(e,t){if(Ct!==0&&Ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Zp()&&e.callbackNode!==n)return null;var r=Oe;return r=zp(e,e===Ue?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(o_(e,r,t),S_(e,Tn()),e.callbackNode!=null&&e.callbackNode===n?w_.bind(null,e):null)}function hS(e,t){if(Zp())return null;o_(e,t,!0)}function C4(){B4(function(){_e&6?Lb(oE,E4):j_()})}function w0(){if(ui===0){var e=Vl;e===0&&(e=Uf,Uf<<=1,!(Uf&261888)&&(Uf=256)),ui=e}return ui}function pS(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ed(""+e)}function mS(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 _4(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var i=pS((a[gn]||null).action),l=r.submitter;l&&(t=(t=l[gn]||null)?pS(t.formAction):l.getAttribute("formAction"),t!==null&&(i=t,l=null));var o=new Ip("action","action",null,r,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ui!==0){var c=l?mS(a,l):new FormData(a);pg(n,{pending:!0,data:c,method:a.method,action:i},null,c)}}else typeof i=="function"&&(o.preventDefault(),c=l?mS(a,l):new FormData(a),pg(n,{pending:!0,data:c,method:a.method,action:i},i,c))},currentTarget:a}]})}}for(var Fy=0;Fy<ng.length;Fy++){var Gy=ng[Fy],T4=Gy.toLowerCase(),k4=Gy[0].toUpperCase()+Gy.slice(1);Er(T4,"on"+k4)}Er(RE,"onAnimationEnd");Er(DE,"onAnimationIteration");Er(LE,"onAnimationStart");Er("dblclick","onDoubleClick");Er("focusin","onFocus");Er("focusout","onBlur");Er(YR,"onTransitionRun");Er(VR,"onTransitionStart");Er(WR,"onTransitionCancel");Er(zE,"onTransitionEnd");Kl("onMouseEnter",["mouseout","mouseover"]);Kl("onMouseLeave",["mouseout","mouseover"]);Kl("onPointerEnter",["pointerout","pointerover"]);Kl("onPointerLeave",["pointerout","pointerover"]);Ls("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ls("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ls("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ls("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ls("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ls("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(" "),M4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(du));function O_(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 l=r.length-1;0<=l;l--){var o=r[l],c=o.instance,u=o.currentTarget;if(o=o.listener,c!==i&&a.isPropagationStopped())break e;i=o,a.currentTarget=u;try{i(a)}catch(f){eh(f)}a.currentTarget=null,i=c}else for(l=0;l<r.length;l++){if(o=r[l],c=o.instance,u=o.currentTarget,o=o.listener,c!==i&&a.isPropagationStopped())break e;i=o,a.currentTarget=u;try{i(a)}catch(f){eh(f)}a.currentTarget=null,i=c}}}}function be(e,t){var n=t[Vv];n===void 0&&(n=t[Vv]=new Set);var r=e+"__bubble";n.has(r)||(N_(t,e,2,!1),n.add(r))}function Ky(e,t,n){var r=0;t&&(r|=4),N_(n,e,r,t)}var Qf="_reactListening"+Math.random().toString(36).slice(2);function O0(e){if(!e[Qf]){e[Qf]=!0,yE.forEach(function(n){n!=="selectionchange"&&(M4.has(n)||Ky(n,!1,e),Ky(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qf]||(t[Qf]=!0,Ky("selectionchange",!1,t))}}function N_(e,t,n,r){switch(z_(t)){case 2:var a=sD;break;case 8:a=lD;break;default:a=C0}n=a.bind(null,t,n,e),a=void 0,!Jv||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 Yy(e,t,n,r,a){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var o=r.stateNode.containerInfo;if(o===a)break;if(l===4)for(l=r.return;l!==null;){var c=l.tag;if((c===3||c===4)&&l.stateNode.containerInfo===a)return;l=l.return}for(;o!==null;){if(l=ol(o),l===null)return;if(c=l.tag,c===5||c===6||c===26||c===27){r=i=l;continue e}o=o.parentNode}}r=r.return}OE(function(){var u=i,f=qb(n),d=[];e:{var h=IE.get(e);if(h!==void 0){var m=Ip,j=e;switch(e){case"keypress":if(_d(n)===0)break e;case"keydown":case"keyup":m=NR;break;case"focusin":j="focus",m=Sy;break;case"focusout":j="blur",m=Sy;break;case"beforeblur":case"afterblur":m=Sy;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":m=wj;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=hR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=CR;break;case RE:case DE:case LE:m=yR;break;case zE:m=TR;break;case"scroll":case"scrollend":m=fR;break;case"wheel":m=MR;break;case"copy":case"cut":case"paste":m=gR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Nj;break;case"toggle":case"beforetoggle":m=$R}var y=(t&4)!==0,p=!y&&(e==="scroll"||e==="scrollend"),v=y?h!==null?h+"Capture":null:h;y=[];for(var g=u,b;g!==null;){var x=g;if(b=x.stateNode,x=x.tag,x!==5&&x!==26&&x!==27||b===null||v===null||(x=au(g,v),x!=null&&y.push(hu(g,x,b))),p)break;g=g.return}0<y.length&&(h=new m(h,j,null,n,f),d.push({event:h,listeners:y}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",h&&n!==Zv&&(j=n.relatedTarget||n.fromElement)&&(ol(j)||j[Lo]))break e;if((m||h)&&(h=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,m?(j=n.relatedTarget||n.toElement,m=u,j=j?ol(j):null,j!==null&&(p=sf(j),y=j.tag,j!==p||y!==5&&y!==27&&y!==6)&&(j=null)):(m=null,j=u),m!==j)){if(y=wj,x="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(y=Nj,x="onPointerLeave",v="onPointerEnter",g="pointer"),p=m==null?h:Tc(m),b=j==null?h:Tc(j),h=new y(x,g+"leave",m,n,f),h.target=p,h.relatedTarget=b,x=null,ol(f)===u&&(y=new y(v,g+"enter",j,n,f),y.target=b,y.relatedTarget=p,x=y),p=x,m&&j)t:{for(y=P4,v=m,g=j,b=0,x=v;x;x=y(x))b++;x=0;for(var O=g;O;O=y(O))x++;for(;0<b-x;)v=y(v),b--;for(;0<x-b;)g=y(g),x--;for(;b--;){if(v===g||g!==null&&v===g.alternate){y=v;break t}v=y(v),g=y(g)}y=null}else y=null;m!==null&&yS(d,h,m,y,!1),j!==null&&p!==null&&yS(d,p,j,y,!0)}}e:{if(h=u?Tc(u):window,m=h.nodeName&&h.nodeName.toLowerCase(),m==="select"||m==="input"&&h.type==="file")var S=_j;else if(Cj(h))if(TE)S=FR;else{S=qR;var N=UR}else m=h.nodeName,!m||m.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?u&&Ub(u.elementType)&&(S=_j):S=HR;if(S&&(S=S(e,u))){_E(d,S,n,f);break e}N&&N(e,h,u),e==="focusout"&&u&&h.type==="number"&&u.memoizedProps.value!=null&&Qv(h,"number",h.value)}switch(N=u?Tc(u):window,e){case"focusin":(Cj(N)||N.contentEditable==="true")&&(fl=N,eg=u,Lc=null);break;case"focusout":Lc=eg=fl=null;break;case"mousedown":tg=!0;break;case"contextmenu":case"mouseup":case"dragend":tg=!1,$j(d,n,f);break;case"selectionchange":if(KR)break;case"keydown":case"keyup":$j(d,n,f)}var A;if(Gb)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else ul?EE(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(AE&&n.locale!=="ko"&&(ul||C!=="onCompositionStart"?C==="onCompositionEnd"&&ul&&(A=NE()):(li=f,Hb="value"in li?li.value:li.textContent,ul=!0)),N=vh(u,C),0<N.length&&(C=new Oj(C,e,null,n,f),d.push({event:C,listeners:N}),A?C.data=A:(A=CE(n),A!==null&&(C.data=A)))),(A=DR?LR(e,n):zR(e,n))&&(C=vh(u,"onBeforeInput"),0<C.length&&(N=new Oj("onBeforeInput","beforeinput",null,n,f),d.push({event:N,listeners:C}),N.data=A)),_4(d,e,u,n,f)}O_(d,t)})}function hu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function vh(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=au(e,n),a!=null&&r.unshift(hu(e,a,i)),a=au(e,t),a!=null&&r.push(hu(e,a,i))),e.tag===3)return r;e=e.return}return[]}function P4(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function yS(e,t,n,r,a){for(var i=t._reactName,l=[];n!==null&&n!==r;){var o=n,c=o.alternate,u=o.stateNode;if(o=o.tag,c!==null&&c===r)break;o!==5&&o!==26&&o!==27||u===null||(c=u,a?(u=au(n,i),u!=null&&l.unshift(hu(n,u,c))):a||(u=au(n,i),u!=null&&l.push(hu(n,u,c)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var $4=/\r\n?/g,R4=/\u0000|\uFFFD/g;function vS(e){return(typeof e=="string"?e:""+e).replace($4,`
|
||
`).replace(R4,"")}function A_(e,t){return t=vS(t),vS(e)===t}function Le(e,t,n,r,a,i){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Yl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Yl(e,""+r);break;case"className":Ff(e,"class",r);break;case"tabIndex":Ff(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Ff(e,n,r);break;case"style":wE(e,r,i);break;case"data":if(t!=="object"){Ff(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=Ed(""+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"&&Le(e,t,"name",a.name,a,null),Le(e,t,"formEncType",a.formEncType,a,null),Le(e,t,"formMethod",a.formMethod,a,null),Le(e,t,"formTarget",a.formTarget,a,null)):(Le(e,t,"encType",a.encType,a,null),Le(e,t,"method",a.method,a,null),Le(e,t,"target",a.target,a,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Ed(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=ma);break;case"onScroll":r!=null&&be("scroll",e);break;case"onScrollEnd":r!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(F(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(F(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=Ed(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":be("beforetoggle",e),be("toggle",e),Ad(e,"popover",r);break;case"xlinkActuate":na(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":na(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":na(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":na(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":na(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":na(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":na(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":na(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":na(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Ad(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=cR.get(n)||n,Ad(e,n,r))}}function Ng(e,t,n,r,a,i){switch(n){case"style":wE(e,r,i);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(F(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(F(60));e.innerHTML=n}}break;case"children":typeof r=="string"?Yl(e,r):(typeof r=="number"||typeof r=="bigint")&&Yl(e,""+r);break;case"onScroll":r!=null&&be("scroll",e);break;case"onScrollEnd":r!=null&&be("scrollend",e);break;case"onClick":r!=null&&(e.onclick=ma);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!vE.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[gn]||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,""):Ad(e,n,r)}}}function Kt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var r=!1,a=!1,i;for(i in n)if(n.hasOwnProperty(i)){var l=n[i];if(l!=null)switch(i){case"src":r=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(F(137,t));default:Le(e,t,i,l,n,null)}}a&&Le(e,t,"srcSet",n.srcSet,n,null),r&&Le(e,t,"src",n.src,n,null);return;case"input":be("invalid",e);var o=i=l=a=null,c=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var f=n[r];if(f!=null)switch(r){case"name":a=f;break;case"type":l=f;break;case"checked":c=f;break;case"defaultChecked":u=f;break;case"value":i=f;break;case"defaultValue":o=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(F(137,t));break;default:Le(e,t,r,f,n,null)}}bE(e,i,o,c,u,l,a,!1);return;case"select":be("invalid",e),r=l=i=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":i=o;break;case"defaultValue":l=o;break;case"multiple":r=o;default:Le(e,t,a,o,n,null)}t=i,n=l,e.multiple=!!r,t!=null?Al(e,!!r,t,!1):n!=null&&Al(e,!!r,n,!0);return;case"textarea":be("invalid",e),i=a=r=null;for(l in n)if(n.hasOwnProperty(l)&&(o=n[l],o!=null))switch(l){case"value":r=o;break;case"defaultValue":a=o;break;case"children":i=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(F(91));break;default:Le(e,t,l,o,n,null)}SE(e,r,a,i);return;case"option":for(c in n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Le(e,t,c,r,n,null)}return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(r=0;r<du.length;r++)be(du[r],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(F(137,t));default:Le(e,t,u,r,n,null)}return;default:if(Ub(t)){for(f in n)n.hasOwnProperty(f)&&(r=n[f],r!==void 0&&Ng(e,t,f,r,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(r=n[o],r!=null&&Le(e,t,o,r,n,null))}function D4(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,l=null,o=null,c=null,u=null,f=null;for(m in n){var d=n[m];if(n.hasOwnProperty(m)&&d!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":c=d;default:r.hasOwnProperty(m)||Le(e,t,m,null,r,d)}}for(var h in r){var m=r[h];if(d=n[h],r.hasOwnProperty(h)&&(m!=null||d!=null))switch(h){case"type":i=m;break;case"name":a=m;break;case"checked":u=m;break;case"defaultChecked":f=m;break;case"value":l=m;break;case"defaultValue":o=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(F(137,t));break;default:m!==d&&Le(e,t,h,m,r,d)}}Xv(e,l,o,c,u,f,i,a);return;case"select":m=l=o=h=null;for(i in n)if(c=n[i],n.hasOwnProperty(i)&&c!=null)switch(i){case"value":break;case"multiple":m=c;default:r.hasOwnProperty(i)||Le(e,t,i,null,r,c)}for(a in r)if(i=r[a],c=n[a],r.hasOwnProperty(a)&&(i!=null||c!=null))switch(a){case"value":h=i;break;case"defaultValue":o=i;break;case"multiple":l=i;default:i!==c&&Le(e,t,a,i,r,c)}t=o,n=l,r=m,h!=null?Al(e,!!n,h,!1):!!r!=!!n&&(t!=null?Al(e,!!n,t,!0):Al(e,!!n,n?[]:"",!1));return;case"textarea":m=h=null;for(o in n)if(a=n[o],n.hasOwnProperty(o)&&a!=null&&!r.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Le(e,t,o,null,r,a)}for(l in r)if(a=r[l],i=n[l],r.hasOwnProperty(l)&&(a!=null||i!=null))switch(l){case"value":h=a;break;case"defaultValue":m=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(F(91));break;default:a!==i&&Le(e,t,l,a,r,i)}jE(e,h,m);return;case"option":for(var j in n)if(h=n[j],n.hasOwnProperty(j)&&h!=null&&!r.hasOwnProperty(j))switch(j){case"selected":e.selected=!1;break;default:Le(e,t,j,null,r,h)}for(c in r)if(h=r[c],m=n[c],r.hasOwnProperty(c)&&h!==m&&(h!=null||m!=null))switch(c){case"selected":e.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:Le(e,t,c,h,r,m)}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 y in n)h=n[y],n.hasOwnProperty(y)&&h!=null&&!r.hasOwnProperty(y)&&Le(e,t,y,null,r,h);for(u in r)if(h=r[u],m=n[u],r.hasOwnProperty(u)&&h!==m&&(h!=null||m!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(F(137,t));break;default:Le(e,t,u,h,r,m)}return;default:if(Ub(t)){for(var p in n)h=n[p],n.hasOwnProperty(p)&&h!==void 0&&!r.hasOwnProperty(p)&&Ng(e,t,p,void 0,r,h);for(f in r)h=r[f],m=n[f],!r.hasOwnProperty(f)||h===m||h===void 0&&m===void 0||Ng(e,t,f,h,r,m);return}}for(var v in n)h=n[v],n.hasOwnProperty(v)&&h!=null&&!r.hasOwnProperty(v)&&Le(e,t,v,null,r,h);for(d in r)h=r[d],m=n[d],!r.hasOwnProperty(d)||h===m||h==null&&m==null||Le(e,t,d,h,r,m)}function gS(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function L4(){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,l=a.initiatorType,o=a.duration;if(i&&o&&gS(l)){for(l=0,o=a.responseEnd,r+=1;r<n.length;r++){var c=n[r],u=c.startTime;if(u>o)break;var f=c.transferSize,d=c.initiatorType;f&&gS(d)&&(c=c.responseEnd,l+=f*(c<o?1:(o-u)/(c-u)))}if(--r,t+=8*(i+l)/(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 Ag=null,Eg=null;function gh(e){return e.nodeType===9?e:e.ownerDocument}function xS(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 E_(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 Cg(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 Vy=null;function z4(){var e=window.event;return e&&e.type==="popstate"?e===Vy?!1:(Vy=e,!0):(Vy=null,!1)}var C_=typeof setTimeout=="function"?setTimeout:void 0,I4=typeof clearTimeout=="function"?clearTimeout:void 0,bS=typeof Promise=="function"?Promise:void 0,B4=typeof queueMicrotask=="function"?queueMicrotask:typeof bS<"u"?function(e){return bS.resolve(null).then(e).catch(U4)}:C_;function U4(e){setTimeout(function(){throw e})}function $i(e){return e==="head"}function jS(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),to(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")Yc(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Yc(n);for(var i=n.firstChild;i;){var l=i.nextSibling,o=i.nodeName;i[uf]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=l}}else n==="body"&&Yc(e.ownerDocument.body);n=a}while(n);to(t)}function SS(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function _g(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":_g(n),Bb(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function q4(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[uf])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=rr(e.nextSibling),e===null)break}return null}function H4(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=rr(e.nextSibling),e===null))return null;return e}function __(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=rr(e.nextSibling),e===null))return null;return e}function Tg(e){return e.data==="$?"||e.data==="$~"}function kg(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function F4(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 rr(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 Mg=null;function wS(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return rr(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function OS(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function T_(e,t,n){switch(t=gh(n),e){case"html":if(e=t.documentElement,!e)throw Error(F(452));return e;case"head":if(e=t.head,!e)throw Error(F(453));return e;case"body":if(e=t.body,!e)throw Error(F(454));return e;default:throw Error(F(451))}}function Yc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Bb(e)}var ar=new Map,NS=new Set;function xh(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var $a=Te.d;Te.d={f:G4,r:K4,D:Y4,C:V4,L:W4,m:X4,X:Z4,S:Q4,M:J4};function G4(){var e=$a.f(),t=Xp();return e||t}function K4(e){var t=zo(e);t!==null&&t.tag===5&&t.type==="form"?wC(t):$a.r(e)}var qo=typeof document>"u"?null:document;function k_(e,t,n){var r=qo;if(r&&typeof t=="string"&&t){var a=Xn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),NS.has(a)||(NS.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),Kt(t,"link",e),Rt(t),r.head.appendChild(t)))}}function Y4(e){$a.D(e),k_("dns-prefetch",e,null)}function V4(e,t){$a.C(e,t),k_("preconnect",e,t)}function W4(e,t,n){$a.L(e,t,n);var r=qo;if(r&&e&&t){var a='link[rel="preload"][as="'+Xn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Xn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+Xn(n.imageSizes)+'"]')):a+='[href="'+Xn(e)+'"]';var i=a;switch(t){case"style":i=eo(e);break;case"script":i=Ho(e)}ar.has(i)||(e=tt({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ar.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(yf(i))||t==="script"&&r.querySelector(vf(i))||(t=r.createElement("link"),Kt(t,"link",e),Rt(t),r.head.appendChild(t)))}}function X4(e,t){$a.m(e,t);var n=qo;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Xn(r)+'"][href="'+Xn(e)+'"]',i=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ho(e)}if(!ar.has(i)&&(e=tt({rel:"modulepreload",href:e},t),ar.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(vf(i)))return}r=n.createElement("link"),Kt(r,"link",e),Rt(r),n.head.appendChild(r)}}}function Q4(e,t,n){$a.S(e,t,n);var r=qo;if(r&&e){var a=Nl(r).hoistableStyles,i=eo(e);t=t||"default";var l=a.get(i);if(!l){var o={loading:0,preload:null};if(l=r.querySelector(yf(i)))o.loading=5;else{e=tt({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ar.get(i))&&N0(e,n);var c=l=r.createElement("link");Rt(c),Kt(c,"link",e),c._p=new Promise(function(u,f){c.onload=u,c.onerror=f}),c.addEventListener("load",function(){o.loading|=1}),c.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Ld(l,t,r)}l={type:"stylesheet",instance:l,count:1,state:o},a.set(i,l)}}}function Z4(e,t){$a.X(e,t);var n=qo;if(n&&e){var r=Nl(n).hoistableScripts,a=Ho(e),i=r.get(a);i||(i=n.querySelector(vf(a)),i||(e=tt({src:e,async:!0},t),(t=ar.get(a))&&A0(e,t),i=n.createElement("script"),Rt(i),Kt(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function J4(e,t){$a.M(e,t);var n=qo;if(n&&e){var r=Nl(n).hoistableScripts,a=Ho(e),i=r.get(a);i||(i=n.querySelector(vf(a)),i||(e=tt({src:e,async:!0,type:"module"},t),(t=ar.get(a))&&A0(e,t),i=n.createElement("script"),Rt(i),Kt(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function AS(e,t,n,r){var a=(a=pi.current)?xh(a):null;if(!a)throw Error(F(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=eo(n.href),n=Nl(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=eo(n.href);var i=Nl(a).hoistableStyles,l=i.get(e);if(l||(a=a.ownerDocument||a,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,l),(i=a.querySelector(yf(e)))&&!i._p&&(l.instance=i,l.state.loading=5),ar.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},ar.set(e,n),i||eD(a,e,n,l.state))),t&&r===null)throw Error(F(528,""));return l}if(t&&r!==null)throw Error(F(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ho(n),n=Nl(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(F(444,e))}}function eo(e){return'href="'+Xn(e)+'"'}function yf(e){return'link[rel="stylesheet"]['+e+"]"}function M_(e){return tt({},e,{"data-precedence":e.precedence,precedence:null})}function eD(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}),Kt(t,"link",n),Rt(t),e.head.appendChild(t))}function Ho(e){return'[src="'+Xn(e)+'"]'}function vf(e){return"script[async]"+e}function ES(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Xn(n.href)+'"]');if(r)return t.instance=r,Rt(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"),Rt(r),Kt(r,"style",a),Ld(r,n.precedence,e),t.instance=r;case"stylesheet":a=eo(n.href);var i=e.querySelector(yf(a));if(i)return t.state.loading|=4,t.instance=i,Rt(i),i;r=M_(n),(a=ar.get(a))&&N0(r,a),i=(e.ownerDocument||e).createElement("link"),Rt(i);var l=i;return l._p=new Promise(function(o,c){l.onload=o,l.onerror=c}),Kt(i,"link",r),t.state.loading|=4,Ld(i,n.precedence,e),t.instance=i;case"script":return i=Ho(n.src),(a=e.querySelector(vf(i)))?(t.instance=a,Rt(a),a):(r=n,(a=ar.get(i))&&(r=tt({},n),A0(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),Rt(a),Kt(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(F(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Ld(r,n.precedence,e));return t.instance}function Ld(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,l=0;l<r.length;l++){var o=r[l];if(o.dataset.precedence===t)i=o;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 N0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function A0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var zd=null;function CS(e,t,n){if(zd===null){var r=new Map,a=zd=new Map;a.set(n,r)}else a=zd,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[uf]||i[qt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var l=i.getAttribute(t)||"";l=e+l;var o=r.get(l);o?o.push(i):r.set(l,[i])}}return r}function _S(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function tD(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 P_(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function nD(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=eo(r.href),i=t.querySelector(yf(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=bh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,Rt(i);return}i=t.ownerDocument||t,r=M_(r),(a=ar.get(a))&&N0(r,a),i=i.createElement("link"),Rt(i);var l=i;l._p=new Promise(function(o,c){l.onload=o,l.onerror=c}),Kt(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=bh.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Wy=0;function rD(e,t){return e.stylesheets&&e.count===0&&Id(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Id(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Wy===0&&(Wy=62500*L4());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Id(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Wy?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function bh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Id(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var jh=null;function Id(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,jh=new Map,t.forEach(aD,e),jh=null,bh.call(e))}function aD(e,t){if(!(t.state.loading&4)){var n=jh.get(e);if(n)var r=n.get(null);else{n=new Map,jh.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var l=a[i];(l.nodeName==="LINK"||l.getAttribute("media")!=="not all")&&(n.set(l.dataset.precedence,l),r=l)}r&&n.set(null,r)}a=t.instance,l=a.getAttribute("data-precedence"),i=n.get(l)||r,i===r&&n.set(null,a),n.set(l,a),this.count++,r=bh.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 pu={$$typeof:pa,Provider:null,Consumer:null,_currentValue:ps,_currentValue2:ps,_threadCount:0};function iD(e,t,n,r,a,i,l,o,c){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=gy(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gy(0),this.hiddenUpdates=gy(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function $_(e,t,n,r,a,i,l,o,c,u,f,d){return e=new iD(e,t,n,l,c,u,f,d,o),t=1,i===!0&&(t|=24),i=En(3,null,null,t),e.current=i,i.stateNode=e,t=Zb(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},t0(i),e}function R_(e){return e?(e=pl,e):pl}function D_(e,t,n,r,a,i){a=R_(a),r.context===null?r.context=a:r.pendingContext=a,r=yi(t),r.payload={element:n},i=i===void 0?null:i,i!==null&&(r.callback=i),n=vi(e,r,t),n!==null&&(yn(n,e,t),Ic(n,e,t))}function TS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function E0(e,t){TS(e,t),(e=e.alternate)&&TS(e,t)}function L_(e){if(e.tag===13||e.tag===31){var t=Bs(e,67108864);t!==null&&yn(t,e,67108864),E0(e,67108864)}}function kS(e){if(e.tag===13||e.tag===31){var t=Pn();t=zb(t);var n=Bs(e,t);n!==null&&yn(n,e,t),E0(e,t)}}var Sh=!0;function sD(e,t,n,r){var a=fe.T;fe.T=null;var i=Te.p;try{Te.p=2,C0(e,t,n,r)}finally{Te.p=i,fe.T=a}}function lD(e,t,n,r){var a=fe.T;fe.T=null;var i=Te.p;try{Te.p=8,C0(e,t,n,r)}finally{Te.p=i,fe.T=a}}function C0(e,t,n,r){if(Sh){var a=Pg(r);if(a===null)Yy(e,t,r,wh,n),MS(e,r);else if(cD(a,e,t,n,r))r.stopPropagation();else if(MS(e,r),t&4&&-1<oD.indexOf(e)){for(;a!==null;){var i=zo(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var l=Wi(i.pendingLanes);if(l!==0){var o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;l;){var c=1<<31-Mn(l);o.entanglements[1]|=c,l&=~c}Qr(i),!(_e&6)&&(dh=Tn()+500,mf(0))}}break;case 31:case 13:o=Bs(i,2),o!==null&&yn(o,i,2),Xp(),E0(i,2)}if(i=Pg(r),i===null&&Yy(e,t,r,wh,n),i===a)break;a=i}a!==null&&r.stopPropagation()}else Yy(e,t,r,null,n)}}function Pg(e){return e=qb(e),_0(e)}var wh=null;function _0(e){if(wh=null,e=ol(e),e!==null){var t=sf(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=rE(t),e!==null)return e;e=null}else if(n===31){if(e=aE(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 wh=e,null}function z_(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(Y$()){case oE:return 2;case cE:return 8;case Zd:case V$:return 32;case uE:return 268435456;default:return 32}default:return 32}}var $g=!1,bi=null,ji=null,Si=null,mu=new Map,yu=new Map,Za=[],oD="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function MS(e,t){switch(e){case"focusin":case"focusout":bi=null;break;case"dragenter":case"dragleave":ji=null;break;case"mouseover":case"mouseout":Si=null;break;case"pointerover":case"pointerout":mu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":yu.delete(t.pointerId)}}function mc(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=zo(t),t!==null&&L_(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function cD(e,t,n,r,a){switch(t){case"focusin":return bi=mc(bi,e,t,n,r,a),!0;case"dragenter":return ji=mc(ji,e,t,n,r,a),!0;case"mouseover":return Si=mc(Si,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return mu.set(i,mc(mu.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,yu.set(i,mc(yu.get(i)||null,e,t,n,r,a)),!0}return!1}function I_(e){var t=ol(e.target);if(t!==null){var n=sf(t);if(n!==null){if(t=n.tag,t===13){if(t=rE(n),t!==null){e.blockedOn=t,yj(e.priority,function(){kS(n)});return}}else if(t===31){if(t=aE(n),t!==null){e.blockedOn=t,yj(e.priority,function(){kS(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Pg(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Zv=r,n.target.dispatchEvent(r),Zv=null}else return t=zo(n),t!==null&&L_(t),e.blockedOn=n,!1;t.shift()}return!0}function PS(e,t,n){Bd(e)&&n.delete(t)}function uD(){$g=!1,bi!==null&&Bd(bi)&&(bi=null),ji!==null&&Bd(ji)&&(ji=null),Si!==null&&Bd(Si)&&(Si=null),mu.forEach(PS),yu.forEach(PS)}function Zf(e,t){e.blockedOn===t&&(e.blockedOn=null,$g||($g=!0,Tt.unstable_scheduleCallback(Tt.unstable_NormalPriority,uD)))}var Jf=null;function $S(e){Jf!==e&&(Jf=e,Tt.unstable_scheduleCallback(Tt.unstable_NormalPriority,function(){Jf===e&&(Jf=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(_0(r||n)===null)continue;break}var i=zo(n);i!==null&&(e.splice(t,3),t-=3,pg(i,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function to(e){function t(c){return Zf(c,e)}bi!==null&&Zf(bi,e),ji!==null&&Zf(ji,e),Si!==null&&Zf(Si,e),mu.forEach(t),yu.forEach(t);for(var n=0;n<Za.length;n++){var r=Za[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Za.length&&(n=Za[0],n.blockedOn===null);)I_(n),n.blockedOn===null&&Za.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],l=a[gn]||null;if(typeof i=="function")l||$S(n);else if(l){var o=null;if(i&&i.hasAttribute("formAction")){if(a=i,l=i[gn]||null)o=l.formAction;else if(_0(a)!==null)continue}else o=l.action;typeof o=="function"?n[r+1]=o:(n.splice(r,3),r-=3),$S(n)}}}function B_(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(l){return a=l})},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 T0(e){this._internalRoot=e}Jp.prototype.render=T0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(F(409));var n=t.current,r=Pn();D_(n,r,e,t,null,null)};Jp.prototype.unmount=T0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;D_(e.current,2,null,e,null,null),Xp(),t[Lo]=null}};function Jp(e){this._internalRoot=e}Jp.prototype.unstable_scheduleHydration=function(e){if(e){var t=mE();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Za.length&&t!==0&&t<Za[n].priority;n++);Za.splice(n,0,e),n===0&&I_(e)}};var RS=tE.version;if(RS!=="19.2.7")throw Error(F(527,RS,"19.2.7"));Te.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(F(188)):(e=Object.keys(e).join(","),Error(F(268,e)));return e=B$(t),e=e!==null?iE(e):null,e=e===null?null:e.stateNode,e};var fD={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:fe,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ed=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ed.isDisabled&&ed.supportsFiber)try{lf=ed.inject(fD),kn=ed}catch{}}Dp.createRoot=function(e,t){if(!nE(e))throw Error(F(299));var n=!1,r="",a=kC,i=MC,l=PC;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&&(l=t.onRecoverableError)),t=$_(e,1,!1,null,null,n,r,null,a,i,l,B_),e[Lo]=t.current,O0(e),new T0(t)};Dp.hydrateRoot=function(e,t,n){if(!nE(e))throw Error(F(299));var r=!1,a="",i=kC,l=MC,o=PC,c=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&&(l=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=$_(e,1,!0,t,n??null,r,a,c,i,l,o,B_),t.context=R_(null),n=t.current,r=Pn(),r=zb(r),a=yi(r),a.callback=null,vi(n,a,r),n=r,t.current.lanes=n,cf(t,n),Qr(t),e[Lo]=t.current,O0(e),new Jp(t)};Dp.version="19.2.7";function U_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(U_)}catch(e){console.error(e)}}U_(),WA.exports=Dp;var dD=WA.exports;const hD=Me(dD);/**
|
||
* 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 DS="popstate";function LS(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function pD(e={}){function t(r,a){var u;let i=(u=a.state)==null?void 0:u.masked,{pathname:l,search:o,hash:c}=i||r.location;return Rg("",{pathname:l,search:o,hash:c},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:vu(a)}return yD(t,n,null,e)}function at(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ar(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function mD(){return Math.random().toString(36).substring(2,10)}function zS(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Rg(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Fo(t):t,state:n,key:t&&t.key||r||mD(),mask:a}}function vu({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 Fo(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 yD(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,l=a.history,o="POP",c=null,u=f();u==null&&(u=0,l.replaceState({...l.state,idx:u},""));function f(){return(l.state||{idx:null}).idx}function d(){o="POP";let p=f(),v=p==null?null:p-u;u=p,c&&c({action:o,location:y.location,delta:v})}function h(p,v){o="PUSH";let g=LS(p)?p:Rg(y.location,p,v);u=f()+1;let b=zS(g,u),x=y.createHref(g.mask||g);try{l.pushState(b,"",x)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;a.location.assign(x)}i&&c&&c({action:o,location:y.location,delta:1})}function m(p,v){o="REPLACE";let g=LS(p)?p:Rg(y.location,p,v);u=f();let b=zS(g,u),x=y.createHref(g.mask||g);l.replaceState(b,"",x),i&&c&&c({action:o,location:y.location,delta:0})}function j(p){return vD(a,p)}let y={get action(){return o},get location(){return e(a,l)},listen(p){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(DS,d),c=p,()=>{a.removeEventListener(DS,d),c=null}},createHref(p){return t(a,p)},createURL:j,encodeLocation(p){let v=j(p);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:h,replace:m,go(p){return l.go(p)}};return y}function vD(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:vu(t);return a=a.replace(/ $/,"%20"),!n&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function q_(e,t,n="/"){return gD(e,t,n,!1)}function gD(e,t,n,r,a){let i=typeof t=="string"?Fo(t):t,l=Ta(i.pathname||"/",n);if(l==null)return null;let o=xD(e),c=null,u=kD(l);for(let f=0;c==null&&f<o.length;++f)c=_D(o[f],u,r);return c}function xD(e){let t=H_(e);return bD(t),t}function H_(e,t=[],n=[],r="",a=!1){let i=(l,o,c=a,u)=>{let f={relativePath:u===void 0?l.path||"":u,caseSensitive:l.caseSensitive===!0,childrenIndex:o,route:l};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&c)return;at(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let d=jr([r,f.relativePath]),h=n.concat(f);l.children&&l.children.length>0&&(at(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),H_(l.children,t,h,d,c)),!(l.path==null&&!l.index)&&t.push({path:d,score:ED(d,l.index),routesMeta:h})};return e.forEach((l,o)=>{var c;if(l.path===""||!((c=l.path)!=null&&c.includes("?")))i(l,o);else for(let u of F_(l.path))i(l,o,!0,u)}),t}function F_(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 l=F_(r.join("/")),o=[];return o.push(...l.map(c=>c===""?i:[i,c].join("/"))),a&&o.push(...l),o.map(c=>e.startsWith("/")&&c===""?"/":c)}function bD(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:CD(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var jD=/^:[\w-]+$/,SD=3,wD=2,OD=1,ND=10,AD=-2,IS=e=>e==="*";function ED(e,t){let n=e.split("/"),r=n.length;return n.some(IS)&&(r+=AD),t&&(r+=wD),n.filter(a=>!IS(a)).reduce((a,i)=>a+(jD.test(i)?SD:i===""?OD:ND),r)}function CD(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 _D(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",l=[];for(let o=0;o<r.length;++o){let c=r[o],u=o===r.length-1,f=i==="/"?t:t.slice(i.length)||"/",d=Oh({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},f),h=c.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=Oh({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},f)),!d)return null;Object.assign(a,d.params),l.push({params:a,pathname:jr([i,d.pathname]),pathnameBase:RD(jr([i,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(i=jr([i,d.pathnameBase]))}return l}function Oh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=TD(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],l=i.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:r.reduce((u,{paramName:f,isOptional:d},h)=>{if(f==="*"){let j=o[h]||"";l=i.slice(0,i.length-j.length).replace(/(.)\/+$/,"$1")}const m=o[h];return d&&!m?u[f]=void 0:u[f]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:l,pattern:e}}function TD(e,t=!1,n=!0){Ar(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,(l,o,c,u,f)=>{if(r.push({paramName:o,isOptional:c!=null}),c){let d=f.charAt(u+l.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}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 kD(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ar(!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 Ta(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 MD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function PD(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Fo(e):e,i;return n?(n=G_(n),n.startsWith("/")?i=BS(n.substring(1),"/"):i=BS(n,t)):i=t,{pathname:i,search:DD(r),hash:LD(a)}}function BS(e,t){let n=Nh(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Xy(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 $D(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function k0(e){let t=$D(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function em(e,t,n,r=!1){let a;typeof e=="string"?a=Fo(e):(a={...e},at(!a.pathname||!a.pathname.includes("?"),Xy("?","pathname","search",a)),at(!a.pathname||!a.pathname.includes("#"),Xy("#","pathname","hash",a)),at(!a.search||!a.search.includes("#"),Xy("#","search","hash",a)));let i=e===""||a.pathname==="",l=i?"/":a.pathname,o;if(l==null)o=n;else{let d=t.length-1;if(!r&&l.startsWith("..")){let h=l.split("/");for(;h[0]==="..";)h.shift(),d-=1;a.pathname=h.join("/")}o=d>=0?t[d]:"/"}let c=PD(a,o),u=l&&l!=="/"&&l.endsWith("/"),f=(i||l===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||f)&&(c.pathname+="/"),c}var G_=e=>e.replace(/\/\/+/g,"/"),jr=e=>G_(e.join("/")),Nh=e=>e.replace(/\/+$/,""),RD=e=>Nh(e).replace(/^\/*/,"/"),DD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,LD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,zD=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 ID(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function BD(e){let t=e.map(n=>n.route.path).filter(Boolean);return jr(t)||"/"}var K_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Y_(e,t){let n=e;if(typeof n!="string"||!MD.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(K_)try{let i=new URL(window.location.href),l=n.startsWith("//")?new URL(i.protocol+n):new URL(n),o=Ta(l.pathname,t);l.origin===i.origin&&o!=null?n=o+l.search+l.hash:a=!0}catch{Ar(!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 V_=["POST","PUT","PATCH","DELETE"];new Set(V_);var UD=["GET",...V_];new Set(UD);var Go=w.createContext(null);Go.displayName="DataRouter";var tm=w.createContext(null);tm.displayName="DataRouterState";var W_=w.createContext(!1);function qD(){return w.useContext(W_)}var X_=w.createContext({isTransitioning:!1});X_.displayName="ViewTransition";var HD=w.createContext(new Map);HD.displayName="Fetchers";var FD=w.createContext(null);FD.displayName="Await";var zn=w.createContext(null);zn.displayName="Navigation";var gf=w.createContext(null);gf.displayName="Location";var Cr=w.createContext({outlet:null,matches:[],isDataRoute:!1});Cr.displayName="Route";var M0=w.createContext(null);M0.displayName="RouteError";var Q_="REACT_ROUTER_ERROR",GD="REDIRECT",KD="ROUTE_ERROR_RESPONSE";function YD(e){if(e.startsWith(`${Q_}:${GD}:{`))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 VD(e){if(e.startsWith(`${Q_}:${KD}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new zD(t.status,t.statusText,t.data)}catch{}}function WD(e,{relative:t}={}){at(Ko(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=w.useContext(zn),{hash:a,pathname:i,search:l}=xf(e,{relative:t}),o=i;return n!=="/"&&(o=i==="/"?n:jr([n,i])),r.createHref({pathname:o,search:l,hash:a})}function Ko(){return w.useContext(gf)!=null}function Zr(){return at(Ko(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(gf).location}var Z_="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function J_(e){w.useContext(zn).static||w.useLayoutEffect(e)}function nm(){let{isDataRoute:e}=w.useContext(Cr);return e?u5():XD()}function XD(){at(Ko(),"useNavigate() may be used only in the context of a <Router> component.");let e=w.useContext(Go),{basename:t,navigator:n}=w.useContext(zn),{matches:r}=w.useContext(Cr),{pathname:a}=Zr(),i=JSON.stringify(k0(r)),l=w.useRef(!1);return J_(()=>{l.current=!0}),w.useCallback((c,u={})=>{if(Ar(l.current,Z_),!l.current)return;if(typeof c=="number"){n.go(c);return}let f=em(c,JSON.parse(i),a,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:jr([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,i,a,e])}var QD=w.createContext(null);function ZD(e){let t=w.useContext(Cr).outlet;return w.useMemo(()=>t&&w.createElement(QD.Provider,{value:e},t),[t,e])}function xf(e,{relative:t}={}){let{matches:n}=w.useContext(Cr),{pathname:r}=Zr(),a=JSON.stringify(k0(n));return w.useMemo(()=>em(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function JD(e,t){return eT(e,t)}function eT(e,t,n){var p;at(Ko(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=w.useContext(zn),{matches:a}=w.useContext(Cr),i=a[a.length-1],l=i?i.params:{},o=i?i.pathname:"/",c=i?i.pathnameBase:"/",u=i&&i.route;{let v=u&&u.path||"";nT(o,!u||v.endsWith("*")||v.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${o}" (under <Route path="${v}">) 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="${v}"> to <Route path="${v==="/"?"*":`${v}/*`}">.`)}let f=Zr(),d;if(t){let v=typeof t=="string"?Fo(t):t;at(c==="/"||((p=v.pathname)==null?void 0:p.startsWith(c)),`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 "${c}" but pathname "${v.pathname}" was given in the \`location\` prop.`),d=v}else d=f;let h=d.pathname||"/",m=h;if(c!=="/"){let v=c.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(v.length).join("/")}let j=n&&n.state.matches.length?n.state.matches.map(v=>Object.assign(v,{route:n.manifest[v.route.id]||v.route})):q_(e,{pathname:m});Ar(u||j!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Ar(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.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 y=a5(j&&j.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:jr([c,r.encodeLocation?r.encodeLocation(v.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?c:jr([c,r.encodeLocation?r.encodeLocation(v.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:v.pathnameBase])})),a,n);return t&&y?w.createElement(gf.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...d},navigationType:"POP"}},y):y}function e5(){let e=c5(),t=ID(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},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:i},"ErrorBoundary")," or"," ",w.createElement("code",{style:i},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:a},n):null,l)}var t5=w.createElement(e5,null),tT=class extends w.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=VD(e.digest);n&&(e=n)}let t=e!==void 0?w.createElement(Cr.Provider,{value:this.props.routeContext},w.createElement(M0.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?w.createElement(n5,{error:e},t):t}};tT.contextType=W_;var Qy=new WeakMap;function n5({children:e,error:t}){let{basename:n}=w.useContext(zn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=YD(t.digest);if(r){let a=Qy.get(t);if(a)throw a;let i=Y_(r.location,n);if(K_&&!Qy.get(t))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw Qy.set(t,l),l}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function r5({routeContext:e,match:t,children:n}){let r=w.useContext(Go);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(Cr.Provider,{value:e},n)}function a5(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,i=r==null?void 0:r.errors;if(i!=null){let f=a.findIndex(d=>d.route.id&&(i==null?void 0:i[d.route.id])!==void 0);at(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,f+1))}let l=!1,o=-1;if(n&&r){l=r.renderFallback;for(let f=0;f<a.length;f++){let d=a[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(o=f),d.route.id){let{loaderData:h,errors:m}=r,j=d.route.loader&&!h.hasOwnProperty(d.route.id)&&(!m||m[d.route.id]===void 0);if(d.route.lazy||j){n.isStatic&&(l=!0),o>=0?a=a.slice(0,o+1):a=[a[0]];break}}}}let c=n==null?void 0:n.onError,u=r&&c?(f,d)=>{var h,m;c(f,{location:r.location,params:((m=(h=r.matches)==null?void 0:h[0])==null?void 0:m.params)??{},pattern:BD(r.matches),errorInfo:d})}:void 0;return a.reduceRight((f,d,h)=>{let m,j=!1,y=null,p=null;r&&(m=i&&d.route.id?i[d.route.id]:void 0,y=d.route.errorElement||t5,l&&(o<0&&h===0?(nT("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,p=null):o===h&&(j=!0,p=d.route.hydrateFallbackElement||null)));let v=t.concat(a.slice(0,h+1)),g=()=>{let b;return m?b=y:j?b=p:d.route.Component?b=w.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=f,w.createElement(r5,{match:d,routeContext:{outlet:f,matches:v,isDataRoute:r!=null},children:b})};return r&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?w.createElement(tT,{location:r.location,revalidation:r.revalidation,component:y,error:m,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0},onError:u}):g()},null)}function P0(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function i5(e){let t=w.useContext(Go);return at(t,P0(e)),t}function s5(e){let t=w.useContext(tm);return at(t,P0(e)),t}function l5(e){let t=w.useContext(Cr);return at(t,P0(e)),t}function $0(e){let t=l5(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 o5(){return $0("useRouteId")}function c5(){var r;let e=w.useContext(M0),t=s5("useRouteError"),n=$0("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function u5(){let{router:e}=i5("useNavigate"),t=$0("useNavigate"),n=w.useRef(!1);return J_(()=>{n.current=!0}),w.useCallback(async(a,i={})=>{Ar(n.current,Z_),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var US={};function nT(e,t,n){!t&&!US[e]&&(US[e]=!0,Ar(!1,n))}w.memo(f5);function f5({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return eT(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function rT({to:e,replace:t,state:n,relative:r}){at(Ko(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=w.useContext(zn);Ar(!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}=w.useContext(Cr),{pathname:l}=Zr(),o=nm(),c=em(e,k0(i),l,r==="path"),u=JSON.stringify(c);return w.useEffect(()=>{o(JSON.parse(u),{replace:t,state:n,relative:r})},[o,u,r,t,n]),null}function d5(e){return ZD(e.context)}function he(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 h5({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,useTransitions:l}){at(!Ko(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),c=w.useMemo(()=>({basename:o,navigator:a,static:i,useTransitions:l,future:{}}),[o,a,i,l]);typeof n=="string"&&(n=Fo(n));let{pathname:u="/",search:f="",hash:d="",state:h=null,key:m="default",mask:j}=n,y=w.useMemo(()=>{let p=Ta(u,o);return p==null?null:{location:{pathname:p,search:f,hash:d,state:h,key:m,mask:j},navigationType:r}},[o,u,f,d,h,m,r,j]);return Ar(y!=null,`<Router basename="${o}"> is not able to match the URL "${u}${f}${d}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:w.createElement(zn.Provider,{value:c},w.createElement(gf.Provider,{children:t,value:y}))}function p5({children:e,location:t}){return JD(Dg(e),t)}function Dg(e,t=[]){let n=[];return w.Children.forEach(e,(r,a)=>{if(!w.isValidElement(r))return;let i=[...t,a];if(r.type===w.Fragment){n.push.apply(n,Dg(r.props.children,i));return}at(r.type===he,`[${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 l={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&&(l.children=Dg(r.props.children,i)),n.push(l)}),n}var Ud="get",qd="application/x-www-form-urlencoded";function rm(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function m5(e){return rm(e)&&e.tagName.toLowerCase()==="button"}function y5(e){return rm(e)&&e.tagName.toLowerCase()==="form"}function v5(e){return rm(e)&&e.tagName.toLowerCase()==="input"}function g5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function x5(e,t){return e.button===0&&(!t||t==="_self")&&!g5(e)}var td=null;function b5(){if(td===null)try{new FormData(document.createElement("form"),0),td=!1}catch{td=!0}return td}var j5=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Zy(e){return e!=null&&!j5.has(e)?(Ar(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${qd}"`),null):e}function S5(e,t){let n,r,a,i,l;if(y5(e)){let o=e.getAttribute("action");r=o?Ta(o,t):null,n=e.getAttribute("method")||Ud,a=Zy(e.getAttribute("enctype"))||qd,i=new FormData(e)}else if(m5(e)||v5(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||o.getAttribute("action");if(r=c?Ta(c,t):null,n=e.getAttribute("formmethod")||o.getAttribute("method")||Ud,a=Zy(e.getAttribute("formenctype"))||Zy(o.getAttribute("enctype"))||qd,i=new FormData(o,e),!b5()){let{name:u,type:f,value:d}=e;if(f==="image"){let h=u?`${u}.`:"";i.append(`${h}x`,"0"),i.append(`${h}y`,"0")}else u&&i.append(u,d)}}else{if(rm(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ud,r=null,a=qd,l=e}return i&&a==="text/plain"&&(l=i,i=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:i,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function R0(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function aT(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&&Ta(a.pathname,t)==="/"?a.pathname=`${Nh(t)}/_root.${r}`:a.pathname=`${Nh(a.pathname)}.${r}`,a}async function w5(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 O5(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 N5(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let l=await w5(i,n);return l.links?l.links():[]}return[]}));return _5(r.flat(1).filter(O5).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function qS(e,t,n,r,a,i){let l=(c,u)=>n[u]?c.route.id!==n[u].route.id:!0,o=(c,u)=>{var f;return n[u].pathname!==c.pathname||((f=n[u].route.path)==null?void 0:f.endsWith("*"))&&n[u].params["*"]!==c.params["*"]};return i==="assets"?t.filter((c,u)=>l(c,u)||o(c,u)):i==="data"?t.filter((c,u)=>{var d;let f=r.routes[c.route.id];if(!f||!f.hasLoader)return!1;if(l(c,u)||o(c,u))return!0;if(c.route.shouldRevalidate){let h=c.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((d=n[0])==null?void 0:d.params)||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function A5(e,t,{includeHydrateFallback:n}={}){return E5(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 E5(e){return[...new Set(e)]}function C5(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function _5(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(C5(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function D0(){let e=w.useContext(Go);return R0(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function T5(){let e=w.useContext(tm);return R0(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var L0=w.createContext(void 0);L0.displayName="FrameworkContext";function z0(){let e=w.useContext(L0);return R0(e,"You must render this element inside a <HydratedRouter> element"),e}function k5(e,t){let n=w.useContext(L0),[r,a]=w.useState(!1),[i,l]=w.useState(!1),{onFocus:o,onBlur:c,onMouseEnter:u,onMouseLeave:f,onTouchStart:d}=t,h=w.useRef(null);w.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let y=v=>{v.forEach(g=>{l(g.isIntersecting)})},p=new IntersectionObserver(y,{threshold:.5});return h.current&&p.observe(h.current),()=>{p.disconnect()}}},[e]),w.useEffect(()=>{if(r){let y=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(y)}}},[r]);let m=()=>{a(!0)},j=()=>{a(!1),l(!1)};return n?e!=="intent"?[i,h,{}]:[i,h,{onFocus:yc(o,m),onBlur:yc(c,j),onMouseEnter:yc(u,m),onMouseLeave:yc(f,j),onTouchStart:yc(d,m)}]:[!1,h,{}]}function yc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function M5({page:e,...t}){let n=qD(),{router:r}=D0(),a=w.useMemo(()=>q_(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n?w.createElement($5,{page:e,matches:a,...t}):w.createElement(R5,{page:e,matches:a,...t}):null}function P5(e){let{manifest:t,routeModules:n}=z0(),[r,a]=w.useState([]);return w.useEffect(()=>{let i=!1;return N5(e,t,n).then(l=>{i||a(l)}),()=>{i=!0}},[e,t,n]),r}function $5({page:e,matches:t,...n}){let r=Zr(),{future:a}=z0(),{basename:i}=D0(),l=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let o=aT(e,i,a.v8_trailingSlashAwareDataRequests,"rsc"),c=!1,u=[];for(let f of t)typeof f.route.shouldRevalidate=="function"?c=!0:u.push(f.route.id);return c&&u.length>0&&o.searchParams.set("_routes",u.join(",")),[o.pathname+o.search]},[i,a.v8_trailingSlashAwareDataRequests,e,r,t]);return w.createElement(w.Fragment,null,l.map(o=>w.createElement("link",{key:o,rel:"prefetch",as:"fetch",href:o,...n})))}function R5({page:e,matches:t,...n}){let r=Zr(),{future:a,manifest:i,routeModules:l}=z0(),{basename:o}=D0(),{loaderData:c,matches:u}=T5(),f=w.useMemo(()=>qS(e,t,u,i,r,"data"),[e,t,u,i,r]),d=w.useMemo(()=>qS(e,t,u,i,r,"assets"),[e,t,u,i,r]),h=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let y=new Set,p=!1;if(t.forEach(g=>{var x;let b=i.routes[g.route.id];!b||!b.hasLoader||(!f.some(O=>O.route.id===g.route.id)&&g.route.id in c&&((x=l[g.route.id])!=null&&x.shouldRevalidate)||b.hasClientLoader?p=!0:y.add(g.route.id))}),y.size===0)return[];let v=aT(e,o,a.v8_trailingSlashAwareDataRequests,"data");return p&&y.size>0&&v.searchParams.set("_routes",t.filter(g=>y.has(g.route.id)).map(g=>g.route.id).join(",")),[v.pathname+v.search]},[o,a.v8_trailingSlashAwareDataRequests,c,r,i,f,t,e,l]),m=w.useMemo(()=>A5(d,i),[d,i]),j=P5(d);return w.createElement(w.Fragment,null,h.map(y=>w.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),m.map(y=>w.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),j.map(({key:y,link:p})=>w.createElement("link",{key:y,nonce:n.nonce,...p,crossOrigin:p.crossOrigin??n.crossOrigin})))}function D5(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var L5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{L5&&(window.__reactRouterVersion="7.17.0")}catch{}function z5({basename:e,children:t,useTransitions:n,window:r}){let a=w.useRef();a.current==null&&(a.current=pD({window:r,v5Compat:!0}));let i=a.current,[l,o]=w.useState({action:i.action,location:i.location}),c=w.useCallback(u=>{n===!1?o(u):w.startTransition(()=>o(u))},[n]);return w.useLayoutEffect(()=>i.listen(c),[i,c]),w.createElement(h5,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:i,useTransitions:n})}var iT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,am=w.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:l,mask:o,state:c,target:u,to:f,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:m,...j},y){let{basename:p,navigator:v,useTransitions:g}=w.useContext(zn),b=typeof f=="string"&&iT.test(f),x=Y_(f,p);f=x.to;let O=WD(f,{relative:a}),S=Zr(),N=null;if(o){let E=em(o,[],S.mask?S.mask.pathname:"/",!0);p!=="/"&&(E.pathname=E.pathname==="/"?p:jr([p,E.pathname])),N=v.createHref(E)}let[A,C,k]=k5(r,j),R=U5(f,{replace:l,mask:o,state:c,target:u,preventScrollReset:d,relative:a,viewTransition:h,defaultShouldRevalidate:m,useTransitions:g});function M(E){t&&t(E),E.defaultPrevented||R(E)}let B=!(x.isExternal||i),_=w.createElement("a",{...j,...k,href:(B?N:void 0)||x.absoluteURL||O,onClick:B?M:t,ref:D5(y,C),target:u,"data-discover":!b&&n==="render"?"true":void 0});return A&&!b?w.createElement(w.Fragment,null,_,w.createElement(M5,{page:O})):_});am.displayName="Link";var sT=w.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:l,viewTransition:o,children:c,...u},f){let d=xf(l,{relative:u.relative}),h=Zr(),m=w.useContext(tm),{navigator:j,basename:y}=w.useContext(zn),p=m!=null&&K5(d)&&o===!0,v=j.encodeLocation?j.encodeLocation(d).pathname:d.pathname,g=h.pathname,b=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;n||(g=g.toLowerCase(),b=b?b.toLowerCase():null,v=v.toLowerCase()),b&&y&&(b=Ta(b,y)||b);const x=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let O=g===v||!a&&g.startsWith(v)&&g.charAt(x)==="/",S=b!=null&&(b===v||!a&&b.startsWith(v)&&b.charAt(v.length)==="/"),N={isActive:O,isPending:S,isTransitioning:p},A=O?t:void 0,C;typeof r=="function"?C=r(N):C=[r,O?"active":null,S?"pending":null,p?"transitioning":null].filter(Boolean).join(" ");let k=typeof i=="function"?i(N):i;return w.createElement(am,{...u,"aria-current":A,className:C,ref:f,style:k,to:l,viewTransition:o},typeof c=="function"?c(N):c)});sT.displayName="NavLink";var I5=w.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:l=Ud,action:o,onSubmit:c,relative:u,preventScrollReset:f,viewTransition:d,defaultShouldRevalidate:h,...m},j)=>{let{useTransitions:y}=w.useContext(zn),p=F5(),v=G5(o,{relative:u}),g=l.toLowerCase()==="get"?"get":"post",b=typeof o=="string"&&iT.test(o),x=O=>{if(c&&c(O),O.defaultPrevented)return;O.preventDefault();let S=O.nativeEvent.submitter,N=(S==null?void 0:S.getAttribute("formmethod"))||l,A=()=>p(S||O.currentTarget,{fetcherKey:t,method:N,navigate:n,replace:a,state:i,relative:u,preventScrollReset:f,viewTransition:d,defaultShouldRevalidate:h});y&&n!==!1?w.startTransition(()=>A()):A()};return w.createElement("form",{ref:j,method:g,action:v,onSubmit:r?c:x,...m,"data-discover":!b&&e==="render"?"true":void 0})});I5.displayName="Form";function B5(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function lT(e){let t=w.useContext(Go);return at(t,B5(e)),t}function U5(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:i,relative:l,viewTransition:o,defaultShouldRevalidate:c,useTransitions:u}={}){let f=nm(),d=Zr(),h=xf(e,{relative:l});return w.useCallback(m=>{if(x5(m,t)){m.preventDefault();let j=n!==void 0?n:vu(d)===vu(h),y=()=>f(e,{replace:j,mask:r,state:a,preventScrollReset:i,relative:l,viewTransition:o,defaultShouldRevalidate:c});u?w.startTransition(()=>y()):y()}},[d,f,h,n,r,a,t,e,i,l,o,c,u])}var q5=0,H5=()=>`__${String(++q5)}__`;function F5(){let{router:e}=lT("useSubmit"),{basename:t}=w.useContext(zn),n=o5(),r=e.fetch,a=e.navigate;return w.useCallback(async(i,l={})=>{let{action:o,method:c,encType:u,formData:f,body:d}=S5(i,t);if(l.navigate===!1){let h=l.fetcherKey||H5();await r(h,n,l.action||o,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:f,body:d,formMethod:l.method||c,formEncType:l.encType||u,flushSync:l.flushSync})}else await a(l.action||o,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:f,body:d,formMethod:l.method||c,formEncType:l.encType||u,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,a,t,n])}function G5(e,{relative:t}={}){let{basename:n}=w.useContext(zn),r=w.useContext(Cr);at(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...xf(e||".",{relative:t})},l=Zr();if(e==null){i.search=l.search;let o=new URLSearchParams(i.search),c=o.getAll("index");if(c.some(f=>f==="")){o.delete("index"),c.filter(d=>d).forEach(d=>o.append("index",d));let f=o.toString();i.search=f?`?${f}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:jr([n,i.pathname])),vu(i)}function K5(e,{relative:t}={}){let n=w.useContext(X_);at(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=lT("useViewTransitionState"),a=xf(e,{relative:t});if(!n.isTransitioning)return!1;let i=Ta(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Ta(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Oh(a.pathname,l)!=null||Oh(a.pathname,i)!=null}var im=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(){}},os,ei,Dl,kA,Y5=(kA=class extends im{constructor(){super();we(this,os);we(this,ei);we(this,Dl);de(this,Dl,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){q(this,ei)||this.setEventListener(q(this,Dl))}onUnsubscribe(){var t;this.hasListeners()||((t=q(this,ei))==null||t.call(this),de(this,ei,void 0))}setEventListener(t){var n;de(this,Dl,t),(n=q(this,ei))==null||n.call(this),de(this,ei,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){q(this,os)!==t&&(de(this,os,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof q(this,os)=="boolean"?q(this,os):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},os=new WeakMap,ei=new WeakMap,Dl=new WeakMap,kA),oT=new Y5,V5={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ti,_b,MA,W5=(MA=class{constructor(){we(this,ti,V5);we(this,_b,!1)}setTimeoutProvider(e){de(this,ti,e)}setTimeout(e,t){return q(this,ti).setTimeout(e,t)}clearTimeout(e){q(this,ti).clearTimeout(e)}setInterval(e,t){return q(this,ti).setInterval(e,t)}clearInterval(e){q(this,ti).clearInterval(e)}},ti=new WeakMap,_b=new WeakMap,MA),Lg=new W5;function X5(e){setTimeout(e,0)}var Q5=typeof window>"u"||"Deno"in globalThis;function pr(){}function Z5(e,t){return typeof e=="function"?e(t):e}function J5(e){return typeof e=="number"&&e>=0&&e!==1/0}function eL(e,t){return Math.max(e+(t||0)-Date.now(),0)}function zg(e,t){return typeof e=="function"?e(t):e}function tL(e,t){return typeof e=="function"?e(t):e}function HS(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:l,stale:o}=e;if(l){if(r){if(t.queryHash!==I0(l,t.options))return!1}else if(!xu(t.queryKey,l))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||a&&a!==t.state.fetchStatus||i&&!i(t))}function FS(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(gu(t.options.mutationKey)!==gu(i))return!1}else if(!xu(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function I0(e,t){return((t==null?void 0:t.queryKeyHashFn)||gu)(e)}function gu(e){return JSON.stringify(e,(t,n)=>Ig(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function xu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>xu(e[n],t[n])):!1}var nL=Object.prototype.hasOwnProperty;function cT(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=GS(e)&&GS(t);if(!r&&!(Ig(e)&&Ig(t)))return t;const i=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),o=l.length,c=r?new Array(o):{};let u=0;for(let f=0;f<o;f++){const d=r?f:l[f],h=e[d],m=t[d];if(h===m){c[d]=h,(r?f<i:nL.call(e,d))&&u++;continue}if(h===null||m===null||typeof h!="object"||typeof m!="object"){c[d]=m;continue}const j=cT(h,m,n+1);c[d]=j,j===h&&u++}return i===o&&u===i?e:c}function GS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ig(e){if(!KS(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!KS(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function KS(e){return Object.prototype.toString.call(e)==="[object Object]"}function rL(e){return new Promise(t=>{Lg.setTimeout(t,e)})}function aL(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?cT(e,t):t}function iL(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function sL(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var B0=Symbol();function uT(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===B0?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function lL(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 fT=(()=>{let e=()=>Q5;return{isServer(){return e()},setIsServer(t){e=t}}})();function oL(){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 cL=X5;function uL(){let e=[],t=0,n=o=>{o()},r=o=>{o()},a=cL;const i=o=>{t?e.push(o):a(()=>{n(o)})},l=()=>{const o=e;e=[],o.length&&a(()=>{r(()=>{o.forEach(c=>{n(c)})})})};return{batch:o=>{let c;t++;try{c=o()}finally{t--,t||l()}return c},batchCalls:o=>(...c)=>{i(()=>{o(...c)})},schedule:i,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{a=o}}}var tn=uL(),Ll,ni,zl,PA,fL=(PA=class extends im{constructor(){super();we(this,Ll,!0);we(this,ni);we(this,zl);de(this,zl,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(){q(this,ni)||this.setEventListener(q(this,zl))}onUnsubscribe(){var t;this.hasListeners()||((t=q(this,ni))==null||t.call(this),de(this,ni,void 0))}setEventListener(t){var n;de(this,zl,t),(n=q(this,ni))==null||n.call(this),de(this,ni,t(this.setOnline.bind(this)))}setOnline(t){q(this,Ll)!==t&&(de(this,Ll,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return q(this,Ll)}},Ll=new WeakMap,ni=new WeakMap,zl=new WeakMap,PA),Ah=new fL;function dL(e){return Math.min(1e3*2**e,3e4)}function dT(e){return(e??"online")==="online"?Ah.isOnline():!0}var Bg=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function hT(e){let t=!1,n=0,r;const a=oL(),i=()=>a.status!=="pending",l=y=>{var p;if(!i()){const v=new Bg(y);h(v),(p=e.onCancel)==null||p.call(e,v)}},o=()=>{t=!0},c=()=>{t=!1},u=()=>oT.isFocused()&&(e.networkMode==="always"||Ah.isOnline())&&e.canRun(),f=()=>dT(e.networkMode)&&e.canRun(),d=y=>{i()||(r==null||r(),a.resolve(y))},h=y=>{i()||(r==null||r(),a.reject(y))},m=()=>new Promise(y=>{var p;r=v=>{(i()||u())&&y(v)},(p=e.onPause)==null||p.call(e)}).then(()=>{var y;r=void 0,i()||(y=e.onContinue)==null||y.call(e)}),j=()=>{if(i())return;let y;const p=n===0?e.initialPromise:void 0;try{y=p??e.fn()}catch(v){y=Promise.reject(v)}Promise.resolve(y).then(d).catch(v=>{var S;if(i())return;const g=e.retry??(fT.isServer()?0:3),b=e.retryDelay??dL,x=typeof b=="function"?b(n,v):b,O=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,v);if(t||!O){h(v);return}n++,(S=e.onFail)==null||S.call(e,n,v),rL(x).then(()=>u()?void 0:m()).then(()=>{t?h(v):j()})})};return{promise:a,status:()=>a.status,cancel:l,continue:()=>(r==null||r(),a),cancelRetry:o,continueRetry:c,canStart:f,start:()=>(f()?j():m().then(j),a)}}var cs,$A,pT=($A=class{constructor(){we(this,cs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),J5(this.gcTime)&&de(this,cs,Lg.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(fT.isServer()?1/0:5*60*1e3))}clearGcTimeout(){q(this,cs)!==void 0&&(Lg.clearTimeout(q(this,cs)),de(this,cs,void 0))}},cs=new WeakMap,$A);function hL(e){return{onFetch:(t,n)=>{var f,d,h,m,j;const r=t.options,a=(h=(d=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((m=t.state.data)==null?void 0:m.pages)||[],l=((j=t.state.data)==null?void 0:j.pageParams)||[];let o={pages:[],pageParams:[]},c=0;const u=async()=>{let y=!1;const p=b=>{lL(b,()=>t.signal,()=>y=!0)},v=uT(t.options,t.fetchOptions),g=async(b,x,O)=>{if(y)return Promise.reject(t.signal.reason);if(x==null&&b.pages.length)return Promise.resolve(b);const N=(()=>{const R={client:t.client,queryKey:t.queryKey,pageParam:x,direction:O?"backward":"forward",meta:t.options.meta};return p(R),R})(),A=await v(N),{maxPages:C}=t.options,k=O?sL:iL;return{pages:k(b.pages,A,C),pageParams:k(b.pageParams,x,C)}};if(a&&i.length){const b=a==="backward",x=b?pL:YS,O={pages:i,pageParams:l},S=x(r,O);o=await g(O,S,b)}else{const b=e??i.length;do{const x=c===0?l[0]??r.initialPageParam:YS(r,o);if(c>0&&x==null)break;o=await g(o,x),c++}while(c<b)}return o};t.options.persister?t.fetchFn=()=>{var y,p;return(p=(y=t.options).persister)==null?void 0:p.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function YS(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 pL(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 Il,us,Bl,Gn,fs,Mt,nf,ds,Nn,mT,oa,RA,mL=(RA=class extends pT{constructor(t){super();we(this,Nn);we(this,Il);we(this,us);we(this,Bl);we(this,Gn);we(this,fs);we(this,Mt);we(this,nf);we(this,ds);de(this,ds,!1),de(this,nf,t.defaultOptions),this.setOptions(t.options),this.observers=[],de(this,fs,t.client),de(this,Gn,q(this,fs).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,de(this,us,WS(this.options)),this.state=t.state??q(this,us),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return q(this,Il)}get promise(){var t;return(t=q(this,Mt))==null?void 0:t.promise}setOptions(t){if(this.options={...q(this,nf),...t},t!=null&&t._type&&de(this,Il,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=WS(this.options);n.data!==void 0&&(this.setState(VS(n.data,n.dataUpdatedAt)),de(this,us,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&q(this,Gn).remove(this)}setData(t,n){const r=aL(this.state.data,t,this.options);return It(this,Nn,oa).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){It(this,Nn,oa).call(this,{type:"setState",state:t})}cancel(t){var r,a;const n=(r=q(this,Mt))==null?void 0:r.promise;return(a=q(this,Mt))==null||a.cancel(t),n?n.then(pr).catch(pr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return q(this,us)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>tL(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===B0||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>zg(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:!eL(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=q(this,Mt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=q(this,Mt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),q(this,Gn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(q(this,Mt)&&(q(this,ds)||It(this,Nn,mT).call(this)?q(this,Mt).cancel({revert:!0}):q(this,Mt).cancelRetry()),this.scheduleGc()),q(this,Gn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||It(this,Nn,oa).call(this,{type:"invalidate"})}async fetch(t,n){var u,f,d,h,m,j,y,p,v,g,b;if(this.state.fetchStatus!=="idle"&&((u=q(this,Mt))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(q(this,Mt))return q(this,Mt).continueRetry(),q(this,Mt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const x=this.observers.find(O=>O.options.queryFn);x&&this.setOptions(x.options)}const r=new AbortController,a=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(de(this,ds,!0),r.signal)})},i=()=>{const x=uT(this.options,n),S=(()=>{const N={client:q(this,fs),queryKey:this.queryKey,meta:this.meta};return a(N),N})();return de(this,ds,!1),this.options.persister?this.options.persister(x,S,this):x(S)},o=(()=>{const x={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:q(this,fs),state:this.state,fetchFn:i};return a(x),x})(),c=q(this,Il)==="infinite"?hL(this.options.pages):this.options.behavior;c==null||c.onFetch(o,this),de(this,Bl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=o.fetchOptions)==null?void 0:f.meta))&&It(this,Nn,oa).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta}),de(this,Mt,hT({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,onCancel:x=>{x instanceof Bg&&x.revert&&this.setState({...q(this,Bl),fetchStatus:"idle"}),r.abort()},onFail:(x,O)=>{It(this,Nn,oa).call(this,{type:"failed",failureCount:x,error:O})},onPause:()=>{It(this,Nn,oa).call(this,{type:"pause"})},onContinue:()=>{It(this,Nn,oa).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}));try{const x=await q(this,Mt).start();if(x===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(x),(m=(h=q(this,Gn).config).onSuccess)==null||m.call(h,x,this),(y=(j=q(this,Gn).config).onSettled)==null||y.call(j,x,this.state.error,this),x}catch(x){if(x instanceof Bg){if(x.silent)return q(this,Mt).promise;if(x.revert){if(this.state.data===void 0)throw x;return this.state.data}}throw It(this,Nn,oa).call(this,{type:"error",error:x}),(v=(p=q(this,Gn).config).onError)==null||v.call(p,x,this),(b=(g=q(this,Gn).config).onSettled)==null||b.call(g,this.state.data,x,this),x}finally{this.scheduleGc()}}},Il=new WeakMap,us=new WeakMap,Bl=new WeakMap,Gn=new WeakMap,fs=new WeakMap,Mt=new WeakMap,nf=new WeakMap,ds=new WeakMap,Nn=new WeakSet,mT=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},oa=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,...yL(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...VS(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return de(this,Bl,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),tn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),q(this,Gn).notify({query:this,type:"updated",action:t})})},RA);function yL(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dT(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function VS(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function WS(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 rf,Rr,Yt,hs,Dr,Fa,DA,vL=(DA=class extends pT{constructor(t){super();we(this,Dr);we(this,rf);we(this,Rr);we(this,Yt);we(this,hs);de(this,rf,t.client),this.mutationId=t.mutationId,de(this,Yt,t.mutationCache),de(this,Rr,[]),this.state=t.state||gL(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){q(this,Rr).includes(t)||(q(this,Rr).push(t),this.clearGcTimeout(),q(this,Yt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){de(this,Rr,q(this,Rr).filter(n=>n!==t)),this.scheduleGc(),q(this,Yt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){q(this,Rr).length||(this.state.status==="pending"?this.scheduleGc():q(this,Yt).remove(this))}continue(){var t;return((t=q(this,hs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,o,c,u,f,d,h,m,j,y,p,v,g,b,x,O,S,N;const n=()=>{It(this,Dr,Fa).call(this,{type:"continue"})},r={client:q(this,rf),meta:this.options.meta,mutationKey:this.options.mutationKey};de(this,hs,hT({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(A,C)=>{It(this,Dr,Fa).call(this,{type:"failed",failureCount:A,error:C})},onPause:()=>{It(this,Dr,Fa).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>q(this,Yt).canRun(this)}));const a=this.state.status==="pending",i=!q(this,hs).canStart();try{if(a)n();else{It(this,Dr,Fa).call(this,{type:"pending",variables:t,isPaused:i}),q(this,Yt).config.onMutate&&await q(this,Yt).config.onMutate(t,this,r);const C=await((o=(l=this.options).onMutate)==null?void 0:o.call(l,t,r));C!==this.state.context&&It(this,Dr,Fa).call(this,{type:"pending",context:C,variables:t,isPaused:i})}const A=await q(this,hs).start();return await((u=(c=q(this,Yt).config).onSuccess)==null?void 0:u.call(c,A,t,this.state.context,this,r)),await((d=(f=this.options).onSuccess)==null?void 0:d.call(f,A,t,this.state.context,r)),await((m=(h=q(this,Yt).config).onSettled)==null?void 0:m.call(h,A,null,this.state.variables,this.state.context,this,r)),await((y=(j=this.options).onSettled)==null?void 0:y.call(j,A,null,t,this.state.context,r)),It(this,Dr,Fa).call(this,{type:"success",data:A}),A}catch(A){try{await((v=(p=q(this,Yt).config).onError)==null?void 0:v.call(p,A,t,this.state.context,this,r))}catch(C){Promise.reject(C)}try{await((b=(g=this.options).onError)==null?void 0:b.call(g,A,t,this.state.context,r))}catch(C){Promise.reject(C)}try{await((O=(x=q(this,Yt).config).onSettled)==null?void 0:O.call(x,void 0,A,this.state.variables,this.state.context,this,r))}catch(C){Promise.reject(C)}try{await((N=(S=this.options).onSettled)==null?void 0:N.call(S,void 0,A,t,this.state.context,r))}catch(C){Promise.reject(C)}throw It(this,Dr,Fa).call(this,{type:"error",error:A}),A}finally{q(this,Yt).runNext(this)}}},rf=new WeakMap,Rr=new WeakMap,Yt=new WeakMap,hs=new WeakMap,Dr=new WeakSet,Fa=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),tn.batch(()=>{q(this,Rr).forEach(r=>{r.onMutationUpdate(t)}),q(this,Yt).notify({mutation:this,type:"updated",action:t})})},DA);function gL(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var da,mr,af,LA,xL=(LA=class extends im{constructor(t={}){super();we(this,da);we(this,mr);we(this,af);this.config=t,de(this,da,new Set),de(this,mr,new Map),de(this,af,0)}build(t,n,r){const a=new vL({client:t,mutationCache:this,mutationId:++Lf(this,af)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){q(this,da).add(t);const n=nd(t);if(typeof n=="string"){const r=q(this,mr).get(n);r?r.push(t):q(this,mr).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(q(this,da).delete(t)){const n=nd(t);if(typeof n=="string"){const r=q(this,mr).get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&q(this,mr).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=nd(t);if(typeof n=="string"){const r=q(this,mr).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=nd(t);if(typeof n=="string"){const a=(r=q(this,mr).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(){tn.batch(()=>{q(this,da).forEach(t=>{this.notify({type:"removed",mutation:t})}),q(this,da).clear(),q(this,mr).clear()})}getAll(){return Array.from(q(this,da))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>FS(n,r))}findAll(t={}){return this.getAll().filter(n=>FS(t,n))}notify(t){tn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return tn.batch(()=>Promise.all(t.map(n=>n.continue().catch(pr))))}},da=new WeakMap,mr=new WeakMap,af=new WeakMap,LA);function nd(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Lr,zA,bL=(zA=class extends im{constructor(t={}){super();we(this,Lr);this.config=t,de(this,Lr,new Map)}build(t,n,r){const a=n.queryKey,i=n.queryHash??I0(a,n);let l=this.get(i);return l||(l=new mL({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(l)),l}add(t){q(this,Lr).has(t.queryHash)||(q(this,Lr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=q(this,Lr).get(t.queryHash);n&&(t.destroy(),n===t&&q(this,Lr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){tn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return q(this,Lr).get(t)}getAll(){return[...q(this,Lr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>HS(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>HS(t,r)):n}notify(t){tn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){tn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){tn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Lr=new WeakMap,zA),dt,ri,ai,Ul,ql,ii,Hl,Fl,IA,jL=(IA=class{constructor(e={}){we(this,dt);we(this,ri);we(this,ai);we(this,Ul);we(this,ql);we(this,ii);we(this,Hl);we(this,Fl);de(this,dt,e.queryCache||new bL),de(this,ri,e.mutationCache||new xL),de(this,ai,e.defaultOptions||{}),de(this,Ul,new Map),de(this,ql,new Map),de(this,ii,0)}mount(){Lf(this,ii)._++,q(this,ii)===1&&(de(this,Hl,oT.subscribe(async e=>{e&&(await this.resumePausedMutations(),q(this,dt).onFocus())})),de(this,Fl,Ah.subscribe(async e=>{e&&(await this.resumePausedMutations(),q(this,dt).onOnline())})))}unmount(){var e,t;Lf(this,ii)._--,q(this,ii)===0&&((e=q(this,Hl))==null||e.call(this),de(this,Hl,void 0),(t=q(this,Fl))==null||t.call(this),de(this,Fl,void 0))}isFetching(e){return q(this,dt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return q(this,ri).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=q(this,dt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=q(this,dt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(zg(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return q(this,dt).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=q(this,dt).get(r.queryHash),i=a==null?void 0:a.state.data,l=Z5(t,i);if(l!==void 0)return q(this,dt).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return tn.batch(()=>q(this,dt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=q(this,dt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=q(this,dt);tn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=q(this,dt);return tn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=tn.batch(()=>q(this,dt).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(pr).catch(pr)}invalidateQueries(e,t={}){return tn.batch(()=>(q(this,dt).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=tn.batch(()=>q(this,dt).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(pr)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(pr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=q(this,dt).build(this,t);return n.isStaleByTime(zg(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(pr).catch(pr)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(pr).catch(pr)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Ah.isOnline()?q(this,ri).resumePausedMutations():Promise.resolve()}getQueryCache(){return q(this,dt)}getMutationCache(){return q(this,ri)}getDefaultOptions(){return q(this,ai)}setDefaultOptions(e){de(this,ai,e)}setQueryDefaults(e,t){q(this,Ul).set(gu(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...q(this,Ul).values()],n={};return t.forEach(r=>{xu(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){q(this,ql).set(gu(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...q(this,ql).values()],n={};return t.forEach(r=>{xu(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...q(this,ai).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=I0(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===B0&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...q(this,ai).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){q(this,dt).clear(),q(this,ri).clear()}},dt=new WeakMap,ri=new WeakMap,ai=new WeakMap,Ul=new WeakMap,ql=new WeakMap,ii=new WeakMap,Hl=new WeakMap,Fl=new WeakMap,IA),SL=w.createContext(void 0),wL=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),s.jsx(SL.Provider,{value:e,children:t}));/**
|
||
* @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 OL=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),yT=(...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 NL={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 AL=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:l,...o},c)=>w.createElement("svg",{ref:c,...NL,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:yT("lucide",a),...o},[...l.map(([u,f])=>w.createElement(u,f)),...Array.isArray(i)?i:[i]]));/**
|
||
* @license lucide-react v0.400.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Q=(e,t)=>{const n=w.forwardRef(({className:r,...a},i)=>w.createElement(AL,{ref:i,iconNode:t,className:yT(`lucide-${OL(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 gl=Q("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||
* @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 EL=Q("AlarmClock",[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M12 9v4l2 2",key:"1c63tq"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}]]);/**
|
||
* @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 CL=Q("ArrowLeftRight",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]);/**
|
||
* @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 _L=Q("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
||
* @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 vT=Q("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
||
* @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 gT=Q("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 xT=Q("Barcode",[["path",{d:"M3 5v14",key:"1nt18q"}],["path",{d:"M8 5v14",key:"1ybrkv"}],["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"M17 5v14",key:"ycjyhj"}],["path",{d:"M21 5v14",key:"nzette"}]]);/**
|
||
* @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 bf=Q("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/**
|
||
* @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 bT=Q("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 TL=Q("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/**
|
||
* @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 kL=Q("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 jT=Q("CalendarRange",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M17 14h-6",key:"bkmgh3"}],["path",{d:"M13 18H7",key:"bb0bb7"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 18h.01",key:"1bdyru"}]]);/**
|
||
* @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 ST=Q("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 wT=Q("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
||
* @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 sm=Q("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
||
* @license lucide-react v0.400.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ML=Q("CircleUser",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);/**
|
||
* @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 Eh=Q("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 OT=Q("ClipboardCheck",[["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:"m9 14 2 2 4-4",key:"df797q"}]]);/**
|
||
* @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 no=Q("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 PL=Q("ClipboardPen",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",key:"1oijnt"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-5.5",key:"cereej"}],["path",{d:"M4 13.5V6a2 2 0 0 1 2-2h2",key:"5ua5vh"}],["path",{d:"M13.378 15.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:"1y4qbx"}]]);/**
|
||
* @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 XS=Q("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 U0=Q("Columns3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
|
||
* @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 $L=Q("Contact",[["path",{d:"M17 18a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2",key:"1mghuy"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["circle",{cx:"12",cy:"10",r:"2",key:"1yojzk"}],["line",{x1:"8",x2:"8",y1:"2",y2:"4",key:"1ff9gb"}],["line",{x1:"16",x2:"16",y1:"2",y2:"4",key:"1ufoma"}]]);/**
|
||
* @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 RL=Q("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 Yr=Q("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 DL=Q("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 LL=Q("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 zL=Q("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
||
* @license lucide-react v0.400.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const xs=Q("Factory",[["path",{d:"M2 20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8l-7 5V8l-7 5V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"159hny"}],["path",{d:"M17 18h1",key:"uldtlt"}],["path",{d:"M12 18h1",key:"s9uhes"}],["path",{d:"M7 18h1",key:"1neino"}]]);/**
|
||
* @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 NT=Q("FileBadge",[["path",{d:"M12 22h6a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"12ixgl"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M5 17a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",key:"u0c8gj"}],["path",{d:"M7 16.5 8 22l-3-1-3 1 1-5.5",key:"5gm2nr"}]]);/**
|
||
* @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 QS=Q("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 ro=Q("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||
* @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 AT=Q("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
|
||
* @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 IL=Q("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
||
* @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 q0=Q("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 BL=Q("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 H0=Q("LineChart",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);/**
|
||
* @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 ET=Q("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
|
||
* @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 UL=Q("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
|
||
* @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 CT=Q("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 qL=Q("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 HL=Q("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 ZS=Q("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 FL=Q("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
||
* @license lucide-react v0.400.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const GL=Q("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
||
* @license lucide-react v0.400.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _T=Q("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 KL=Q("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 JS=Q("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]);/**
|
||
* @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 ew=Q("PackageOpen",[["path",{d:"M12 22v-9",key:"x3hkom"}],["path",{d:"M15.17 2.21a1.67 1.67 0 0 1 1.63 0L21 4.57a1.93 1.93 0 0 1 0 3.36L8.82 14.79a1.655 1.655 0 0 1-1.64 0L3 12.43a1.93 1.93 0 0 1 0-3.36z",key:"2ntwy6"}],["path",{d:"M20 13v3.87a2.06 2.06 0 0 1-1.11 1.83l-6 3.08a1.93 1.93 0 0 1-1.78 0l-6-3.08A2.06 2.06 0 0 1 4 16.87V13",key:"1pmm1c"}],["path",{d:"M21 12.43a1.93 1.93 0 0 0 0-3.36L8.83 2.2a1.64 1.64 0 0 0-1.63 0L3 4.57a1.93 1.93 0 0 0 0 3.36l12.18 6.86a1.636 1.636 0 0 0 1.63 0z",key:"12ttoo"}]]);/**
|
||
* @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 TT=Q("PackagePlus",[["path",{d:"M16 16h6",key:"100bgy"}],["path",{d:"M19 13v6",key:"85cyf1"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]);/**
|
||
* @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 kT=Q("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 MT=Q("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
|
||
* @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 YL=Q("PieChart",[["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}],["path",{d:"M22 12A10 10 0 0 0 12 2v10z",key:"1rfc4y"}]]);/**
|
||
* @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 Ug=Q("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
||
* @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 VL=Q("PlugZap",[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]]);/**
|
||
* @license lucide-react v0.400.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const lt=Q("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 PT=Q("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
|
||
* @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 $T=Q("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 RT=Q("Route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);/**
|
||
* @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 DT=Q("Ruler",[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]]);/**
|
||
* @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 lm=Q("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
|
||
* @license lucide-react v0.400.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const bs=Q("ScanSearch",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]]);/**
|
||
* @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 LT=Q("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 Yo=Q("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
||
* @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 tw=Q("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 zT=Q("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 WL=Q("ShieldAlert",[["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:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
|
||
* @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 om=Q("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 XL=Q("ShieldHalf",[["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:"M12 22V2",key:"zs6s6o"}]]);/**
|
||
* @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 qg=Q("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 Ln=Q("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 QL=Q("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
||
* @license lucide-react v0.400.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const IT=Q("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/**
|
||
* @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 BT=Q("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/**
|
||
* @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 ir=Q("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 ao=Q("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
|
||
* @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 Vr=Q("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 cm=Q("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/**
|
||
* @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 ZL=Q("UserCog",[["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m21.7 16.4-.9-.3",key:"12j9ji"}],["path",{d:"m15.2 13.9-.9-.3",key:"1fdjdi"}],["path",{d:"m16.6 18.7.3-.9",key:"heedtr"}],["path",{d:"m19.1 12.2.3-.9",key:"1af3ki"}],["path",{d:"m19.6 18.7-.4-1",key:"1x9vze"}],["path",{d:"m16.8 12.3-.4-1",key:"vqeiwj"}],["path",{d:"m14.3 16.6 1-.4",key:"1qlj63"}],["path",{d:"m20.7 13.8 1-.4",key:"1v5t8k"}]]);/**
|
||
* @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 JL=Q("UsersRound",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]]);/**
|
||
* @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 UT=Q("Warehouse",[["path",{d:"M22 8.35V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.35A2 2 0 0 1 3.26 6.5l8-3.2a2 2 0 0 1 1.48 0l8 3.2A2 2 0 0 1 22 8.35Z",key:"gksnxg"}],["path",{d:"M6 18h12",key:"9pbo8z"}],["path",{d:"M6 14h12",key:"4cwo0f"}],["rect",{width:"12",height:"12",x:"6",y:"10",key:"apd30q"}]]);/**
|
||
* @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 jf=Q("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
|
||
* @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 qT=Q("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),nw={SUPERADMIN:4,MANAGER:3,WORKER:2,VIEWER:1},rw=["SUPERADMIN","MANAGER","WORKER","VIEWER"];function _i(){return(localStorage.getItem("mes_role")||"VIEWER").toUpperCase()}function _s(e,t=_i()){return(nw[t]||0)>=(nw[e.toUpperCase()]||99)}const Xt=(e=_i())=>_s("WORKER",e),cr=(e=_i())=>_s("MANAGER",e),ez=(e=_i())=>_s("SUPERADMIN",e),HT=w.createContext({theme:"dark",toggle:()=>{},setTheme:()=>{}}),aw="mes_theme";function tz(e){document.documentElement.setAttribute("data-theme",e)}function nz({children:e}){const[t,n]=w.useState(()=>localStorage.getItem(aw)==="light"?"light":"dark");w.useEffect(()=>{tz(t),localStorage.setItem(aw,t)},[t]);const r=i=>n(i),a=()=>n(i=>i==="dark"?"light":"dark");return s.jsx(HT.Provider,{value:{theme:t,toggle:a,setTheme:r},children:e})}function rz(){return w.useContext(HT)}function az(){const{theme:e,toggle:t}=rz();return s.jsxs("button",{onClick:t,title:"테마 전환",style:{display:"flex",alignItems:"center",gap:8,padding:"10px 12px",background:"none",border:"1px solid var(--uiws-border, #2d3448)",borderRadius:8,color:"var(--uiws-text-muted, #8892b0)",cursor:"pointer",fontSize:13,width:"100%"},children:[e==="dark"?s.jsx(QL,{size:16}):s.jsx(GL,{size:16}),e==="dark"?"라이트 모드":"다크 모드"]})}const iz=[{to:"/dashboard",label:"대시보드",icon:BL}],sz=[{to:"/jobs",label:"작업관리 ★",icon:jf},{to:"/progress",label:"진행관리 ★",icon:gl},{to:"/workorders",label:"작업지시",icon:no},{to:"/production",label:"생산실적",icon:xs},{to:"/process-board",label:"공정진행",icon:U0},{to:"/oee",label:"설비 / OEE",icon:ro},{to:"/tracking",label:"LOT 추적",icon:_T},{to:"/plans",label:"생산계획",icon:jT}],lz=[{to:"/receiving",label:"입고",icon:TT},{to:"/shipping",label:"출하관리 ★",icon:cm},{to:"/inventory",label:"재고",icon:bf},{to:"/stocktake",label:"재고실사",icon:OT},{to:"/lotserial",label:"LOT / 시리얼",icon:xT}],oz=[{to:"/inspection",label:"검사",icon:bs},{to:"/spec",label:"검사기준",icon:DT},{to:"/ncr",label:"부적합 NCR",icon:Vr},{to:"/capa",label:"시정조치 CAPA",icon:ET},{to:"/spc",label:"SPC 관리도",icon:H0},{to:"/certificate",label:"성적서",icon:NT}],cz=[{to:"/items",label:"품목",icon:kT},{to:"/bom",label:"BOM",icon:CT},{to:"/routing",label:"라우팅",icon:RT},{to:"/partners",label:"거래처",icon:bT,min:"MANAGER"},{to:"/warehouses",label:"창고/로케이션",icon:UT}],uz=[{to:"/analytics",label:"분석 / KPI",icon:gT},{to:"/ai-tools",label:"AI 도구",icon:Ln},{to:"/ai-techniques",label:"AI 기법 설정",icon:Yr,min:"MANAGER"}],fz=[{to:"/uiws/worklog",label:"업무일지",icon:KL},{to:"/uiws/schedule",label:"일정",icon:kL},{to:"/uiws/message",label:"쪽지",icon:HL},{to:"/uiws/stats",label:"업무통계",icon:YL}],dz=[{to:"/uiws/system/roles",label:"권한 관리",icon:q0,min:"SUPERADMIN"},{to:"/uiws/system/role-menus",label:"역할-메뉴 권한",icon:XL,min:"SUPERADMIN"},{to:"/uiws/system/codes",label:"공통코드",icon:UL,min:"SUPERADMIN"},{to:"/uiws/system/menus",label:"메뉴 관리",icon:FL,min:"SUPERADMIN"},{to:"/uiws/system/depts",label:"부서 관리",icon:JL,min:"SUPERADMIN"},{to:"/uiws/system/companies",label:"거래처 관리",icon:$L,min:"SUPERADMIN"}],hz=[{to:"/admin/users",label:"사용자/권한",icon:om,min:"SUPERADMIN"},{to:"/admin/ai-platform",label:"AI 플랫폼 설정",icon:Yr,min:"SUPERADMIN"},{to:"/admin/audit",label:"감사 로그",icon:LT,min:"MANAGER"},{to:"/admin/settings",label:"시스템 설정",icon:zT,min:"MANAGER"}],pz=[{to:"/admin/mobile-app",label:"모바일 앱 설치",icon:qg}],mz=({isActive:e})=>`flex items-center gap-3 px-5 py-1.5 text-sm transition-colors ${e?"bg-card text-brand border-r-2 border-brand":"text-slate-300 hover:bg-card/60"}`;function Pr({title:e,links:t,role:n}){const r=t.filter(a=>_s(a.min||"VIEWER",n));return r.length?s.jsxs(s.Fragment,{children:[e&&s.jsx("div",{className:"px-5 pt-3 pb-1 text-[10px] font-semibold tracking-wider text-slate-500 uppercase",children:e}),r.map(({to:a,label:i,icon:l})=>s.jsxs(sT,{to:a,className:mz,children:[s.jsx(l,{size:16}),i]},a))]}):null}function yz(){const[e,t]=w.useState(_i);w.useEffect(()=>{const a=()=>{const l=_i();t(o=>o===l?o:l)},i=window.setInterval(a,800);return window.addEventListener("storage",a),()=>{window.clearInterval(i),window.removeEventListener("storage",a)}},[]);const n=dz.filter(a=>_s(a.min||"VIEWER",e)),r=hz.filter(a=>_s(a.min||"VIEWER",e));return s.jsxs("aside",{className:"w-60 bg-panel border-r border-edge flex flex-col",children:[s.jsxs("div",{className:"h-16 flex items-center gap-2 px-5 border-b border-edge",children:[s.jsx(Yr,{className:"text-brand",size:24}),s.jsxs("div",{children:[s.jsx("div",{className:"font-bold text-base leading-tight",children:"GUARDiA MES"}),s.jsx("div",{className:"text-[11px] text-slate-400",children:"AI 제조실행시스템"})]})]}),s.jsxs("nav",{className:"flex-1 py-2 overflow-auto",children:[s.jsx(Pr,{links:iz,role:e}),s.jsx(Pr,{title:"MES 제조실행",links:sz,role:e}),s.jsx(Pr,{title:"WMS 창고관리",links:lz,role:e}),s.jsx(Pr,{title:"QMS 품질관리",links:oz,role:e}),s.jsx(Pr,{title:"기준정보",links:cz,role:e}),s.jsx(Pr,{title:"공통",links:uz,role:e}),s.jsx(Pr,{title:"업무 (UIWS)",links:fz,role:e}),s.jsx("div",{className:"border-t border-edge mt-3",children:s.jsx(Pr,{title:"모바일",links:pz,role:e})}),n.length>0&&s.jsx("div",{className:"border-t border-edge mt-3",children:s.jsx(Pr,{title:"시스템관리(권한)",links:n,role:e})}),r.length>0&&s.jsx("div",{className:"border-t border-edge mt-3",children:s.jsx(Pr,{title:"관리자",links:r,role:e})})]}),s.jsx("div",{className:"p-3 border-t border-edge",children:s.jsx(az,{})}),s.jsx("div",{className:"px-4 pb-4 text-[11px] text-slate-500",children:"Ollama 온프레미스 · WMS·MES·QMS 통합"})]})}function FT(e,t){return function(){return e.apply(t,arguments)}}const{toString:vz}=Object.prototype,{getPrototypeOf:um}=Object,{iterator:fm,toStringTag:GT}=Symbol,dm=(e=>t=>{const n=vz.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_r=e=>(e=e.toLowerCase(),t=>dm(t)===e),hm=e=>t=>typeof t===e,{isArray:Ts}=Array,io=hm("undefined");function Vo(e){return e!==null&&!io(e)&&e.constructor!==null&&!io(e.constructor)&&vn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const KT=_r("ArrayBuffer");function gz(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&KT(e.buffer),t}const xz=hm("string"),vn=hm("function"),YT=hm("number"),Sf=e=>e!==null&&typeof e=="object",bz=e=>e===!0||e===!1,Hd=e=>{if(dm(e)!=="object")return!1;const t=um(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(GT in e)&&!(fm in e)},jz=e=>{if(!Sf(e)||Vo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Sz=_r("Date"),wz=_r("File"),Oz=e=>!!(e&&typeof e.uri<"u"),Nz=e=>e&&typeof e.getParts<"u",Az=_r("Blob"),Ez=_r("FileList"),Cz=e=>Sf(e)&&vn(e.pipe);function _z(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const iw=_z(),sw=typeof iw.FormData<"u"?iw.FormData:void 0,Tz=e=>{if(!e)return!1;if(sw&&e instanceof sw)return!0;const t=um(e);if(!t||t===Object.prototype||!vn(e.append))return!1;const n=dm(e);return n==="formdata"||n==="object"&&vn(e.toString)&&e.toString()==="[object FormData]"},kz=_r("URLSearchParams"),[Mz,Pz,$z,Rz]=["ReadableStream","Request","Response","Headers"].map(_r),Dz=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function wf(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),Ts(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(Vo(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),l=i.length;let o;for(r=0;r<l;r++)o=i[r],t.call(null,e[o],o,e)}}function VT(e,t){if(Vo(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 ns=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,WT=e=>!io(e)&&e!==ns;function Hg(...e){const{caseless:t,skipUndefined:n}=WT(this)&&this||{},r={},a=(i,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const o=t&&typeof l=="string"&&VT(r,l)||l,c=Fg(r,o)?r[o]:void 0;Hd(c)&&Hd(i)?r[o]=Hg(c,i):Hd(i)?r[o]=Hg({},i):Ts(i)?r[o]=i.slice():(!n||!io(i))&&(r[o]=i)};for(let i=0,l=e.length;i<l;i++){const o=e[i];if(!o||Vo(o)||(wf(o,a),typeof o!="object"||Ts(o)))continue;const c=Object.getOwnPropertySymbols(o);for(let u=0;u<c.length;u++){const f=c[u];Vz.call(o,f)&&a(o[f],f)}}return r}const Lz=(e,t,n,{allOwnKeys:r}={})=>(wf(t,(a,i)=>{n&&vn(a)?Object.defineProperty(e,i,{__proto__:null,value:FT(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),zz=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Iz=(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)},Bz=(e,t,n,r)=>{let a,i,l;const o={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)l=a[i],(!r||r(l,e,t))&&!o[l]&&(t[l]=e[l],o[l]=!0);e=n!==!1&&um(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Uz=(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},qz=e=>{if(!e)return null;if(Ts(e))return e;let t=e.length;if(!YT(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Hz=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&um(Uint8Array)),Fz=(e,t)=>{const r=(e&&e[fm]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},Gz=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Kz=_r("HTMLFormElement"),Yz=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Fg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),{propertyIsEnumerable:Vz}=Object.prototype,Wz=_r("RegExp"),XT=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};wf(n,(a,i)=>{let l;(l=t(a,i,e))!==!1&&(r[i]=l||a)}),Object.defineProperties(e,r)},Xz=e=>{XT(e,(t,n)=>{if(vn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(vn(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+"'")})}})},Qz=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return Ts(e)?r(e):r(String(e).split(t)),n},Zz=()=>{},Jz=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function e6(e){return!!(e&&vn(e.append)&&e[GT]==="FormData"&&e[fm])}const t6=e=>{const t=new WeakSet,n=r=>{if(Sf(r)){if(t.has(r))return;if(Vo(r))return r;if(!("toJSON"in r)){t.add(r);const a=Ts(r)?[]:{};return wf(r,(i,l)=>{const o=n(i);!io(o)&&(a[l]=o)}),t.delete(r),a}}return r};return n(e)},n6=_r("AsyncFunction"),r6=e=>e&&(Sf(e)||vn(e))&&vn(e.then)&&vn(e.catch),QT=((e,t)=>e?setImmediate:t?((n,r)=>(ns.addEventListener("message",({source:a,data:i})=>{a===ns&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),ns.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",vn(ns.postMessage)),a6=typeof queueMicrotask<"u"?queueMicrotask.bind(ns):typeof process<"u"&&process.nextTick||QT,i6=e=>e!=null&&vn(e[fm]),D={isArray:Ts,isArrayBuffer:KT,isBuffer:Vo,isFormData:Tz,isArrayBufferView:gz,isString:xz,isNumber:YT,isBoolean:bz,isObject:Sf,isPlainObject:Hd,isEmptyObject:jz,isReadableStream:Mz,isRequest:Pz,isResponse:$z,isHeaders:Rz,isUndefined:io,isDate:Sz,isFile:wz,isReactNativeBlob:Oz,isReactNative:Nz,isBlob:Az,isRegExp:Wz,isFunction:vn,isStream:Cz,isURLSearchParams:kz,isTypedArray:Hz,isFileList:Ez,forEach:wf,merge:Hg,extend:Lz,trim:Dz,stripBOM:zz,inherits:Iz,toFlatObject:Bz,kindOf:dm,kindOfTest:_r,endsWith:Uz,toArray:qz,forEachEntry:Fz,matchAll:Gz,isHTMLForm:Kz,hasOwnProperty:Fg,hasOwnProp:Fg,reduceDescriptors:XT,freezeMethods:Xz,toObjectSet:Qz,toCamelCase:Yz,noop:Zz,toFiniteNumber:Jz,findKey:VT,global:ns,isContextDefined:WT,isSpecCompliantForm:e6,toJSONObject:t6,isAsyncFn:n6,isThenable:r6,setImmediate:QT,asap:a6,isIterable:i6},s6=D.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),l6=e=>{const t={};let n,r,a;return e&&e.split(`
|
||
`).forEach(function(l){a=l.indexOf(":"),n=l.substring(0,a).trim().toLowerCase(),r=l.substring(a+1).trim(),!(!n||t[n]&&s6[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function o6(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 c6=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),u6=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function F0(e,t){return D.isArray(e)?e.map(n=>F0(n,t)):o6(String(e).replace(t,""))}const f6=e=>F0(e,c6),d6=e=>F0(e,u6);function ZT(e){const t=Object.create(null);return D.forEach(e.toJSON(),(n,r)=>{t[r]=d6(n)}),t}const lw=Symbol("internals");function vc(e){return e&&String(e).trim().toLowerCase()}function Fd(e){return e===!1||e==null?e:D.isArray(e)?e.map(Fd):f6(String(e))}function h6(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 p6=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Jy(e,t,n,r,a){if(D.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!D.isString(t)){if(D.isString(r))return t.indexOf(r)!==-1;if(D.isRegExp(r))return r.test(t)}}function m6(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function y6(e,t){const n=D.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(a,i,l){return this[r].call(this,t,a,i,l)},configurable:!0})})}let ln=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(o,c,u){const f=vc(c);if(!f)return;const d=D.findKey(a,f);(!d||a[d]===void 0||u===!0||u===void 0&&a[d]!==!1)&&(a[d||c]=Fd(o))}const l=(o,c)=>D.forEach(o,(u,f)=>i(u,f,c));if(D.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(D.isString(t)&&(t=t.trim())&&!p6(t))l(l6(t),n);else if(D.isObject(t)&&D.isIterable(t)){let o={},c,u;for(const f of t){if(!D.isArray(f))throw new TypeError("Object iterator must return a key-value pair");o[u=f[0]]=(c=o[u])?D.isArray(c)?[...c,f[1]]:[c,f[1]]:f[1]}l(o,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=vc(t),t){const r=D.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return h6(a);if(D.isFunction(n))return n.call(this,a,r);if(D.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=vc(t),t){const r=D.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Jy(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(l){if(l=vc(l),l){const o=D.findKey(r,l);o&&(!n||Jy(r,r[o],o,n))&&(delete r[o],a=!0)}}return D.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||Jy(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return D.forEach(this,(a,i)=>{const l=D.findKey(r,i);if(l){n[l]=Fd(a),delete n[i];return}const o=t?m6(i):String(i).trim();o!==i&&delete n[i],n[o]=Fd(a),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return D.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&D.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[lw]=this[lw]={accessors:{}}).accessors,a=this.prototype;function i(l){const o=vc(l);r[o]||(y6(a,l),r[o]=!0)}return D.isArray(t)?t.forEach(i):i(t),this}};ln.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);D.reduceDescriptors(ln.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});D.freezeMethods(ln);const v6="[REDACTED ****]";function g6(e){if(D.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(D.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function x6(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],a=i=>{if(i===null||typeof i!="object"||D.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof ln&&(i=i.toJSON()),r.push(i);let l;if(D.isArray(i))l=[],i.forEach((o,c)=>{const u=a(o);D.isUndefined(u)||(l[c]=u)});else{if(!D.isPlainObject(i)&&g6(i))return r.pop(),i;l=Object.create(null);for(const[o,c]of Object.entries(i)){const u=n.has(o.toLowerCase())?v6:a(c);D.isUndefined(u)||(l[o]=u)}}return r.pop(),l};return a(e)}let re=class JT extends Error{static from(t,n,r,a,i,l){const o=new JT(t.message,n||t.code,r,a,i);return o.cause=t,o.name=t.name,t.status!=null&&o.status==null&&(o.status=t.status),l&&Object.assign(o,l),o}constructor(t,n,r,a,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),a&&(this.request=a),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&D.hasOwnProp(t,"redact")?t.redact:void 0,r=D.isArray(n)&&n.length>0?x6(t,n):D.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};re.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";re.ERR_BAD_OPTION="ERR_BAD_OPTION";re.ECONNABORTED="ECONNABORTED";re.ETIMEDOUT="ETIMEDOUT";re.ECONNREFUSED="ECONNREFUSED";re.ERR_NETWORK="ERR_NETWORK";re.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";re.ERR_DEPRECATED="ERR_DEPRECATED";re.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";re.ERR_BAD_REQUEST="ERR_BAD_REQUEST";re.ERR_CANCELED="ERR_CANCELED";re.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";re.ERR_INVALID_URL="ERR_INVALID_URL";re.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const b6=null;function Gg(e){return D.isPlainObject(e)||D.isArray(e)}function ek(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function ev(e,t,n){return e?e.concat(t).map(function(a,i){return a=ek(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function j6(e){return D.isArray(e)&&!e.some(Gg)}const S6=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function pm(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,v){return!D.isUndefined(v[p])});const r=n.metaTokens,a=n.visitor||d,i=n.dots,l=n.indexes,o=n.Blob||typeof Blob<"u"&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,u=o&&D.isSpecCompliantForm(t);if(!D.isFunction(a))throw new TypeError("visitor must be a function");function f(y){if(y===null)return"";if(D.isDate(y))return y.toISOString();if(D.isBoolean(y))return y.toString();if(!u&&D.isBlob(y))throw new re("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(y)||D.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,p,v){let g=y;if(D.isReactNative(t)&&D.isReactNativeBlob(y))return t.append(ev(v,p,i),f(y)),!1;if(y&&!v&&typeof y=="object"){if(D.endsWith(p,"{}"))p=r?p:p.slice(0,-2),y=JSON.stringify(y);else if(D.isArray(y)&&j6(y)||(D.isFileList(y)||D.endsWith(p,"[]"))&&(g=D.toArray(y)))return p=ek(p),g.forEach(function(x,O){!(D.isUndefined(x)||x===null)&&t.append(l===!0?ev([p],O,i):l===null?p:p+"[]",f(x))}),!1}return Gg(y)?!0:(t.append(ev(v,p,i),f(y)),!1)}const h=[],m=Object.assign(S6,{defaultVisitor:d,convertValue:f,isVisitable:Gg});function j(y,p,v=0){if(!D.isUndefined(y)){if(v>c)throw new re("Object is too deeply nested ("+v+" levels). Max depth: "+c,re.ERR_FORM_DATA_DEPTH_EXCEEDED);if(h.indexOf(y)!==-1)throw new Error("Circular reference detected in "+p.join("."));h.push(y),D.forEach(y,function(b,x){(!(D.isUndefined(b)||b===null)&&a.call(t,b,D.isString(x)?x.trim():x,p,m))===!0&&j(b,p?p.concat(x):[x],v+1)}),h.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return j(e),t}function ow(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function G0(e,t){this._pairs=[],e&&pm(e,this,t)}const tk=G0.prototype;tk.append=function(t,n){this._pairs.push([t,n])};tk.toString=function(t){const n=t?function(r){return t.call(this,r,ow)}:ow;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function w6(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function nk(e,t,n){if(!t)return e;const r=n&&n.encode||w6,a=D.isFunction(n)?{serialize:n}:n,i=a&&a.serialize;let l;if(i?l=i(t,a):l=D.isURLSearchParams(t)?t.toString():new G0(t,a).toString(r),l){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+l}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){D.forEach(this.handlers,function(r){r!==null&&t(r)})}}const K0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},O6=typeof URLSearchParams<"u"?URLSearchParams:G0,N6=typeof FormData<"u"?FormData:null,A6=typeof Blob<"u"?Blob:null,E6={isBrowser:!0,classes:{URLSearchParams:O6,FormData:N6,Blob:A6},protocols:["http","https","file","blob","url","data"]},Y0=typeof window<"u"&&typeof document<"u",Kg=typeof navigator=="object"&&navigator||void 0,C6=Y0&&(!Kg||["ReactNative","NativeScript","NS"].indexOf(Kg.product)<0),_6=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",T6=Y0&&window.location.href||"http://localhost",k6=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Y0,hasStandardBrowserEnv:C6,hasStandardBrowserWebWorkerEnv:_6,navigator:Kg,origin:T6},Symbol.toStringTag,{value:"Module"})),Ft={...k6,...E6};function M6(e,t){return pm(e,new Ft.classes.URLSearchParams,{visitor:function(n,r,a,i){return Ft.isNode&&D.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function P6(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $6(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 rk(e){function t(n,r,a,i){let l=n[i++];if(l==="__proto__")return!0;const o=Number.isFinite(+l),c=i>=n.length;return l=!l&&D.isArray(a)?a.length:l,c?(D.hasOwnProp(a,l)?a[l]=D.isArray(a[l])?a[l].concat(r):[a[l],r]:a[l]=r,!o):((!D.hasOwnProp(a,l)||!D.isObject(a[l]))&&(a[l]=[]),t(n,r,a[l],i)&&D.isArray(a[l])&&(a[l]=$6(a[l])),!o)}if(D.isFormData(e)&&D.isFunction(e.entries)){const n={};return D.forEachEntry(e,(r,a)=>{t(P6(r),a,n,0)}),n}return null}const Qs=(e,t)=>e!=null&&D.hasOwnProp(e,t)?e[t]:void 0;function R6(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Of={transitional:K0,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=D.isObject(t);if(i&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return a?JSON.stringify(rk(t)):t;if(D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t)||D.isReadableStream(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){const c=Qs(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return M6(t,c).toString();if((o=D.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=Qs(this,"env"),f=u&&u.FormData;return pm(o?{"files[]":t}:t,f&&new f,c)}}return i||a?(n.setContentType("application/json",!1),R6(t)):t}],transformResponse:[function(t){const n=Qs(this,"transitional")||Of.transitional,r=n&&n.forcedJSONParsing,a=Qs(this,"responseType"),i=a==="json";if(D.isResponse(t)||D.isReadableStream(t))return t;if(t&&D.isString(t)&&(r&&!a||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,Qs(this,"parseReviver"))}catch(c){if(o)throw c.name==="SyntaxError"?re.from(c,re.ERR_BAD_RESPONSE,this,null,Qs(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ft.classes.FormData,Blob:Ft.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch","query"],e=>{Of.headers[e]={}});function tv(e,t){const n=this||Of,r=t||n,a=ln.from(r.headers);let i=r.data;return D.forEach(e,function(o){i=o.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function ak(e){return!!(e&&e.__CANCEL__)}let Nf=class extends re{constructor(t,n,r){super(t??"canceled",re.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function ik(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new re("Request failed with status code "+n.status,n.status>=400&&n.status<500?re.ERR_BAD_REQUEST:re.ERR_BAD_RESPONSE,n.config,n.request,n))}function D6(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function L6(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,l;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),f=r[i];l||(l=u),n[a]=c,r[a]=u;let d=i,h=0;for(;d!==a;)h+=n[d++],d=d%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-l<t)return;const m=f&&u-f;return m?Math.round(h*1e3/m):void 0}}function z6(e,t){let n=0,r=1e3/t,a,i;const l=(u,f=Date.now())=>{n=f,a=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const f=Date.now(),d=f-n;d>=r?l(u,f):(a=u,i||(i=setTimeout(()=>{i=null,l(a)},r-d)))},()=>a&&l(a)]}const Ch=(e,t,n=3)=>{let r=0;const a=L6(50,250);return z6(i=>{if(!i||typeof i.loaded!="number")return;const l=i.loaded,o=i.lengthComputable?i.total:void 0,c=o!=null?Math.min(l,o):l,u=Math.max(0,c-r),f=a(u);r=Math.max(r,c);const d={loaded:c,total:o,progress:o?c/o:void 0,bytes:u,rate:f||void 0,estimated:f&&o?(o-c)/f:void 0,event:i,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(d)},n)},uw=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},fw=e=>(...t)=>D.asap(()=>e(...t)),I6=Ft.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ft.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ft.origin),Ft.navigator&&/(msie|trident)/i.test(Ft.navigator.userAgent)):()=>!0,B6=Ft.hasStandardBrowserEnv?{write(e,t,n,r,a,i,l){if(typeof document>"u")return;const o=[`${e}=${encodeURIComponent(t)}`];D.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),D.isString(r)&&o.push(`path=${r}`),D.isString(a)&&o.push(`domain=${a}`),i===!0&&o.push("secure"),D.isString(l)&&o.push(`SameSite=${l}`),document.cookie=o.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 U6(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function q6(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function sk(e,t,n){let r=!U6(t);return e&&(r||n===!1)?q6(e,t):t}const dw=e=>e instanceof ln?{...e}:e;function ks(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(u,f,d,h){return D.isPlainObject(u)&&D.isPlainObject(f)?D.merge.call({caseless:h},u,f):D.isPlainObject(f)?D.merge({},f):D.isArray(f)?f.slice():f}function a(u,f,d,h){if(D.isUndefined(f)){if(!D.isUndefined(u))return r(void 0,u,d,h)}else return r(u,f,d,h)}function i(u,f){if(!D.isUndefined(f))return r(void 0,f)}function l(u,f){if(D.isUndefined(f)){if(!D.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function o(u,f,d){if(D.hasOwnProp(t,d))return r(u,f);if(D.hasOwnProp(e,d))return r(void 0,u)}const c={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,allowedSocketPaths:l,responseEncoding:l,validateStatus:o,headers:(u,f,d)=>a(dw(u),dw(f),d,!0)};return D.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const d=D.hasOwnProp(c,f)?c[f]:a,h=D.hasOwnProp(e,f)?e[f]:void 0,m=D.hasOwnProp(t,f)?t[f]:void 0,j=d(h,m,f);D.isUndefined(j)&&d!==o||(n[f]=j)}),n}const H6=["content-type","content-length"];function F6(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,a])=>{H6.includes(r.toLowerCase())&&e.set(r,a)})}const G6=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function lk(e){const t=ks({},e),n=h=>D.hasOwnProp(t,h)?t[h]:void 0,r=n("data");let a=n("withXSRFToken");const i=n("xsrfHeaderName"),l=n("xsrfCookieName");let o=n("headers");const c=n("auth"),u=n("baseURL"),f=n("allowAbsoluteUrls"),d=n("url");if(t.headers=o=ln.from(o),t.url=nk(sk(u,d,f),n("params"),n("paramsSerializer")),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?G6(c.password):""))),D.isFormData(r)&&(Ft.hasStandardBrowserEnv||Ft.hasStandardBrowserWebWorkerEnv||D.isReactNative(r)?o.setContentType(void 0):D.isFunction(r.getHeaders)&&F6(o,r.getHeaders(),n("formDataHeaderPolicy"))),Ft.hasStandardBrowserEnv&&(D.isFunction(a)&&(a=a(t)),a===!0||a==null&&I6(t.url))){const m=i&&l&&B6.read(l);m&&o.set(i,m)}return t}const K6=typeof XMLHttpRequest<"u",Y6=K6&&function(e){return new Promise(function(n,r){const a=lk(e);let i=a.data;const l=ln.from(a.headers).normalize();let{responseType:o,onUploadProgress:c,onDownloadProgress:u}=a,f,d,h,m,j;function y(){m&&m(),j&&j(),a.cancelToken&&a.cancelToken.unsubscribe(f),a.signal&&a.signal.removeEventListener("abort",f)}let p=new XMLHttpRequest;p.open(a.method.toUpperCase(),a.url,!0),p.timeout=a.timeout;function v(){if(!p)return;const b=ln.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),O={data:!o||o==="text"||o==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:b,config:e,request:p};ik(function(N){n(N),y()},function(N){r(N),y()},O),p=null}"onloadend"in p?p.onloadend=v:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.startsWith("file:"))||setTimeout(v)},p.onabort=function(){p&&(r(new re("Request aborted",re.ECONNABORTED,e,p)),y(),p=null)},p.onerror=function(x){const O=x&&x.message?x.message:"Network Error",S=new re(O,re.ERR_NETWORK,e,p);S.event=x||null,r(S),y(),p=null},p.ontimeout=function(){let x=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const O=a.transitional||K0;a.timeoutErrorMessage&&(x=a.timeoutErrorMessage),r(new re(x,O.clarifyTimeoutError?re.ETIMEDOUT:re.ECONNABORTED,e,p)),y(),p=null},i===void 0&&l.setContentType(null),"setRequestHeader"in p&&D.forEach(ZT(l),function(x,O){p.setRequestHeader(O,x)}),D.isUndefined(a.withCredentials)||(p.withCredentials=!!a.withCredentials),o&&o!=="json"&&(p.responseType=a.responseType),u&&([h,j]=Ch(u,!0),p.addEventListener("progress",h)),c&&p.upload&&([d,m]=Ch(c),p.upload.addEventListener("progress",d),p.upload.addEventListener("loadend",m)),(a.cancelToken||a.signal)&&(f=b=>{p&&(r(!b||b.type?new Nf(null,e,p):b),p.abort(),y(),p=null)},a.cancelToken&&a.cancelToken.subscribe(f),a.signal&&(a.signal.aborted?f():a.signal.addEventListener("abort",f)));const g=D6(a.url);if(g&&!Ft.protocols.includes(g)){r(new re("Unsupported protocol "+g+":",re.ERR_BAD_REQUEST,e));return}p.send(i||null)})},V6=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const a=function(c){if(!r){r=!0,l();const u=c instanceof Error?c:this.reason;n.abort(u instanceof re?u:new Nf(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,a(new re(`timeout of ${t}ms exceeded`,re.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>c.addEventListener("abort",a));const{signal:o}=n;return o.unsubscribe=()=>D.asap(l),o},W6=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},X6=async function*(e,t){for await(const n of Q6(e))yield*W6(n,t)},Q6=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()}},hw=(e,t,n,r)=>{const a=X6(e,t);let i=0,l,o=c=>{l||(l=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:f}=await a.next();if(u){o(),c.close();return}let d=f.byteLength;if(n){let h=i+=d;n(h)}c.enqueue(new Uint8Array(f))}catch(u){throw o(u),u}},cancel(c){return o(c),a.return()}},{highWaterMark:2})};function Z6(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 l=r.length;const o=r.length;for(let m=0;m<o;m++)if(r.charCodeAt(m)===37&&m+2<o){const j=r.charCodeAt(m+1),y=r.charCodeAt(m+2);(j>=48&&j<=57||j>=65&&j<=70||j>=97&&j<=102)&&(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102)&&(l-=2,m+=2)}let c=0,u=o-1;const f=m=>m>=2&&r.charCodeAt(m-2)===37&&r.charCodeAt(m-1)===51&&(r.charCodeAt(m)===68||r.charCodeAt(m)===100);u>=0&&(r.charCodeAt(u)===61?(c++,u--):f(u)&&(c++,u-=3)),c===1&&u>=0&&(r.charCodeAt(u)===61||f(u))&&c++;const h=Math.floor(l/4)*3-(c||0);return h>0?h:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let i=0;for(let l=0,o=r.length;l<o;l++){const c=r.charCodeAt(l);if(c<128)i+=1;else if(c<2048)i+=2;else if(c>=55296&&c<=56319&&l+1<o){const u=r.charCodeAt(l+1);u>=56320&&u<=57343?(i+=4,l++):i+=3}else i+=3}return i}const V0="1.17.0",pw=64*1024,{isFunction:rd}=D,J6=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),mw=e=>{if(!D.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},yw=(e,...t)=>{try{return!!e(...t)}catch{return!1}},eI=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},tI=e=>{const t=D.global!==void 0&&D.global!==null?D.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=D.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:l}=e,o=a?rd(a):typeof fetch=="function",c=rd(i),u=rd(l);if(!o)return!1;const f=o&&rd(n),d=o&&(typeof r=="function"?(v=>g=>v.encode(g))(new r):async v=>new Uint8Array(await new i(v).arrayBuffer())),h=c&&f&&yw(()=>{let v=!1;const g=new i(Ft.origin,{body:new n,method:"POST",get duplex(){return v=!0,"half"}}),b=g.headers.has("Content-Type");return g.body!=null&&g.body.cancel(),v&&!b}),m=u&&f&&yw(()=>D.isReadableStream(new l("").body)),j={stream:m&&(v=>v.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!j[v]&&(j[v]=(g,b)=>{let x=g&&g[v];if(x)return x.call(g);throw new re(`Response type '${v}' is not supported`,re.ERR_NOT_SUPPORT,b)})});const y=async v=>{if(v==null)return 0;if(D.isBlob(v))return v.size;if(D.isSpecCompliantForm(v))return(await new i(Ft.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(D.isArrayBufferView(v)||D.isArrayBuffer(v))return v.byteLength;if(D.isURLSearchParams(v)&&(v=v+""),D.isString(v))return(await d(v)).byteLength},p=async(v,g)=>{const b=D.toFiniteNumber(v.getContentLength());return b??y(g)};return async v=>{let{url:g,method:b,data:x,signal:O,cancelToken:S,timeout:N,onDownloadProgress:A,onUploadProgress:C,responseType:k,headers:R,withCredentials:M="same-origin",fetchOptions:B,maxContentLength:_,maxBodyLength:E}=lk(v);const P=D.isNumber(_)&&_>-1,I=D.isNumber(E)&&E>-1,z=ie=>D.hasOwnProp(v,ie)?v[ie]:void 0;let G=a||fetch;k=k?(k+"").toLowerCase():"text";let V=V6([O,S&&S.toAbortSignal()],N),Z=null;const X=V&&V.unsubscribe&&(()=>{V.unsubscribe()});let ee;try{let ie;const Ne=z("auth");if(Ne){const J=Ne.username||"",K=Ne.password||"";ie={username:J,password:K}}if(eI(g)){const J=new URL(g,Ft.origin);if(!ie&&(J.username||J.password)){const K=mw(J.username),Pe=mw(J.password);ie={username:K,password:Pe}}(J.username||J.password)&&(J.username="",J.password="",g=J.href)}if(ie&&(R.delete("authorization"),R.set("Authorization","Basic "+btoa(J6((ie.username||"")+":"+(ie.password||""))))),P&&typeof g=="string"&&g.startsWith("data:")&&Z6(g)>_)throw new re("maxContentLength size of "+_+" exceeded",re.ERR_BAD_RESPONSE,v,Z);if(I&&b!=="get"&&b!=="head"){const J=await p(R,x);if(typeof J=="number"&&isFinite(J)&&J>E)throw new re("Request body larger than maxBodyLength limit",re.ERR_BAD_REQUEST,v,Z)}if(C&&h&&b!=="get"&&b!=="head"&&(ee=await p(R,x))!==0){let J=new i(g,{method:"POST",body:x,duplex:"half"}),K;if(D.isFormData(x)&&(K=J.headers.get("content-type"))&&R.setContentType(K),J.body){const[Pe,xe]=uw(ee,Ch(fw(C)));x=hw(J.body,pw,Pe,xe)}}D.isString(M)||(M=M?"include":"omit");const Zt=c&&"credentials"in i.prototype;if(D.isFormData(x)){const J=R.getContentType();J&&/^multipart\/form-data/i.test(J)&&!/boundary=/i.test(J)&&R.delete("content-type")}R.set("User-Agent","axios/"+V0,!1);const Mr={...B,signal:V,method:b.toUpperCase(),headers:ZT(R.normalize()),body:x,duplex:"half",credentials:Zt?M:void 0};Z=c&&new i(g,Mr);let Ve=await(c?G(Z,B):G(g,Mr));if(P){const J=D.toFiniteNumber(Ve.headers.get("content-length"));if(J!=null&&J>_)throw new re("maxContentLength size of "+_+" exceeded",re.ERR_BAD_RESPONSE,v,Z)}const te=m&&(k==="stream"||k==="response");if(m&&Ve.body&&(A||P||te&&X)){const J={};["status","statusText","headers"].forEach(xt=>{J[xt]=Ve[xt]});const K=D.toFiniteNumber(Ve.headers.get("content-length")),[Pe,xe]=A&&uw(K,Ch(fw(A),!0))||[];let ut=0;const mt=xt=>{if(P&&(ut=xt,ut>_))throw new re("maxContentLength size of "+_+" exceeded",re.ERR_BAD_RESPONSE,v,Z);Pe&&Pe(xt)};Ve=new l(hw(Ve.body,pw,mt,()=>{xe&&xe(),X&&X()}),J)}k=k||"text";let oe=await j[D.findKey(j,k)||"text"](Ve,v);if(P&&!m&&!te){let J;if(oe!=null&&(typeof oe.byteLength=="number"?J=oe.byteLength:typeof oe.size=="number"?J=oe.size:typeof oe=="string"&&(J=typeof r=="function"?new r().encode(oe).byteLength:oe.length)),typeof J=="number"&&J>_)throw new re("maxContentLength size of "+_+" exceeded",re.ERR_BAD_RESPONSE,v,Z)}return!te&&X&&X(),await new Promise((J,K)=>{ik(J,K,{data:oe,headers:ln.from(Ve.headers),status:Ve.status,statusText:Ve.statusText,config:v,request:Z})})}catch(ie){if(X&&X(),V&&V.aborted&&V.reason instanceof re){const Ne=V.reason;throw Ne.config=v,Z&&(Ne.request=Z),ie!==Ne&&(Ne.cause=ie),Ne}throw ie&&ie.name==="TypeError"&&/Load failed|fetch/i.test(ie.message)?Object.assign(new re("Network Error",re.ERR_NETWORK,v,Z,ie&&ie.response),{cause:ie.cause||ie}):re.from(ie,ie&&ie.code,v,Z,ie&&ie.response)}}},nI=new Map,ok=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,i=[r,a,n];let l=i.length,o=l,c,u,f=nI;for(;o--;)c=i[o],u=f.get(c),u===void 0&&f.set(c,u=o?new Map:tI(t)),f=u;return u};ok();const W0={http:b6,xhr:Y6,fetch:{get:ok}};D.forEach(W0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const vw=e=>`- ${e}`,rI=e=>D.isFunction(e)||e===null||e===!1;function aI(e,t){e=D.isArray(e)?e:[e];const{length:n}=e;let r,a;const i={};for(let l=0;l<n;l++){r=e[l];let o;if(a=r,!rI(r)&&(a=W0[(o=String(r)).toLowerCase()],a===void 0))throw new re(`Unknown adapter '${o}'`);if(a&&(D.isFunction(a)||(a=a.get(t))))break;i[o||"#"+l]=a}if(!a){const l=Object.entries(i).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=n?l.length>1?`since :
|
||
`+l.map(vw).join(`
|
||
`):" "+vw(l[0]):"as no adapter specified";throw new re("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return a}const ck={getAdapter:aI,adapters:W0};function nv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Nf(null,e)}function gw(e){return nv(e),e.headers=ln.from(e.headers),e.data=tv.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ck.getAdapter(e.adapter||Of.adapter,e)(e).then(function(r){nv(e),e.response=r;try{r.data=tv.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=ln.from(r.headers),r},function(r){if(!ak(r)&&(nv(e),r&&r.response)){e.response=r.response;try{r.response.data=tv.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=ln.from(r.response.headers)}return Promise.reject(r)})}const mm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{mm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xw={};mm.transitional=function(t,n,r){function a(i,l){return"[Axios v"+V0+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,o)=>{if(t===!1)throw new re(a(l," has been removed"+(n?" in "+n:"")),re.ERR_DEPRECATED);return n&&!xw[l]&&(xw[l]=!0,console.warn(a(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,o):!0}};mm.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function iI(e,t,n){if(typeof e!="object")throw new re("options must be an object",re.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],l=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(l){const o=e[i],c=o===void 0||l(o,i,e);if(c!==!0)throw new re("option "+i+" must be "+c,re.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new re("Unknown option "+i,re.ERR_BAD_OPTION)}}const Gd={assertOptions:iI,validators:mm},dn=Gd.validators;let js=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 l=a.stack.indexOf(`
|
||
`);return l===-1?"":a.stack.slice(l+1)})();try{if(!r.stack)r.stack=i;else if(i){const l=i.indexOf(`
|
||
`),o=l===-1?-1:i.indexOf(`
|
||
`,l+1),c=o===-1?"":i.slice(o+1);String(r.stack).endsWith(c)||(r.stack+=`
|
||
`+i)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ks(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Gd.assertOptions(r,{silentJSONParsing:dn.transitional(dn.boolean),forcedJSONParsing:dn.transitional(dn.boolean),clarifyTimeoutError:dn.transitional(dn.boolean),legacyInterceptorReqResOrdering:dn.transitional(dn.boolean),advertiseZstdAcceptEncoding:dn.transitional(dn.boolean)},!1),a!=null&&(D.isFunction(a)?n.paramsSerializer={serialize:a}:Gd.assertOptions(a,{encode:dn.function,serialize:dn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Gd.assertOptions(n,{baseUrl:dn.spelling("baseURL"),withXsrfToken:dn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&D.merge(i.common,i[n.method]);i&&D.forEach(["delete","get","head","post","put","patch","query","common"],j=>{delete i[j]}),n.headers=ln.concat(l,i);const o=[];let c=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(n)===!1)return;c=c&&y.synchronous;const p=n.transitional||K0;p&&p.legacyInterceptorReqResOrdering?o.unshift(y.fulfilled,y.rejected):o.push(y.fulfilled,y.rejected)});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let f,d=0,h;if(!c){const j=[gw.bind(this),void 0];for(j.unshift(...o),j.push(...u),h=j.length,f=Promise.resolve(n);d<h;)f=f.then(j[d++],j[d++]);return f}h=o.length;let m=n;for(;d<h;){const j=o[d++],y=o[d++];try{m=j(m)}catch(p){y.call(this,p);break}}try{f=gw.call(this,m)}catch(j){return Promise.reject(j)}for(d=0,h=u.length;d<h;)f=f.then(u[d++],u[d++]);return f}getUri(t){t=ks(this.defaults,t);const n=sk(t.baseURL,t.url,t.allowAbsoluteUrls);return nk(n,t.params,t.paramsSerializer)}};D.forEach(["delete","get","head","options"],function(t){js.prototype[t]=function(n,r){return this.request(ks(r||{},{method:t,url:n,data:(r||{}).data}))}});D.forEach(["post","put","patch","query"],function(t){function n(r){return function(i,l,o){return this.request(ks(o||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}js.prototype[t]=n(),t!=="query"&&(js.prototype[t+"Form"]=n(!0))});let sI=class uk{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 l=new Promise(o=>{r.subscribe(o),i=o}).then(a);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,o){r.reason||(r.reason=new Nf(i,l,o),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 uk(function(a){t=a}),cancel:t}}};function lI(e){return function(n){return e.apply(null,n)}}function oI(e){return D.isObject(e)&&e.isAxiosError===!0}const Yg={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(Yg).forEach(([e,t])=>{Yg[t]=e});function fk(e){const t=new js(e),n=FT(js.prototype.request,t);return D.extend(n,js.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return fk(ks(e,a))},n}const gt=fk(Of);gt.Axios=js;gt.CanceledError=Nf;gt.CancelToken=sI;gt.isCancel=ak;gt.VERSION=V0;gt.toFormData=pm;gt.AxiosError=re;gt.Cancel=gt.CanceledError;gt.all=function(t){return Promise.all(t)};gt.spread=lI;gt.isAxiosError=oI;gt.mergeConfig=ks;gt.AxiosHeaders=ln;gt.formToJSON=e=>rk(D.isHTMLForm(e)?new FormData(e):e);gt.getAdapter=ck.getAdapter;gt.HttpStatusCode=Yg;gt.default=gt;const{Axios:vve,AxiosError:gve,CanceledError:xve,isCancel:bve,CancelToken:jve,VERSION:Sve,all:wve,Cancel:Ove,isAxiosError:Nve,spread:Ave,toFormData:Eve,AxiosHeaders:Cve,HttpStatusCode:_ve,formToJSON:Tve,getAdapter:kve,mergeConfig:Mve,create:Pve}=gt,$=gt.create({baseURL:"http://localhost:8013"});$.interceptors.request.use(e=>{const t=localStorage.getItem("mes_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});$.interceptors.response.use(e=>e,e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem("mes_token"),location.pathname!=="/login"&&(location.href="/login")),Promise.reject(e)});const U=e=>e.then(t=>{var n;return(n=t.data)==null?void 0:n.data}),ot=e=>{const t=new URLSearchParams;Object.entries(e).forEach(([r,a])=>{a!=null&&a!==""&&t.set(r,String(a))});const n=t.toString();return n?`?${n}`:""},cI=(e,t)=>$.post("/api/mes/auth/login",{username:e,password:t}),dk=()=>$.get("/api/mes/auth/me"),uI=()=>U($.get("/api/mes/dashboard/summary")),fI=()=>U($.get("/api/mes/dashboard/workorder-status")),dI=()=>U($.get("/api/mes/dashboard/shipping-status")),hI=()=>U($.get("/api/mes/dashboard/equipment-status")),pI=(e={})=>U($.get(`/api/mes/jobs${ot(e)}`)),mI=()=>U($.get("/api/mes/jobs/board")),yI=()=>U($.get("/api/mes/jobs/workload")),vI=e=>U($.post("/api/mes/jobs",e)),gI=(e,t)=>U($.put(`/api/mes/jobs/${e}`,t)),xI=(e,t)=>U($.post(`/api/mes/jobs/${e}/assign`,t)),bI=(e,t)=>U($.post(`/api/mes/jobs/${e}/transition`,{action:t})),jI=(e,t)=>U($.post(`/api/mes/jobs/${e}/report`,{qty:t})),SI=e=>$.delete(`/api/mes/jobs/${e}`),hk=()=>U($.get("/api/mes/progress/summary")),wI=(e="")=>U($.get(`/api/mes/progress/workorders${e?`?status=${e}`:""}`)),OI=()=>U($.get("/api/mes/progress/live")),NI=(e=30)=>U($.get(`/api/mes/progress/plan-vs-actual?days=${e}`)),AI=()=>U($.get("/api/mes/progress/delays")),EI=(e={})=>U($.get(`/api/mes/shipping${ot(e)}`)),CI=()=>U($.get("/api/mes/shipping/board")),_I=e=>U($.get(`/api/mes/shipping/${e}`)),TI=e=>U($.post("/api/mes/shipping",e)),kI=(e,t)=>U($.put(`/api/mes/shipping/${e}`,t)),MI=(e,t)=>U($.post(`/api/mes/shipping/${e}/pick`,{qty:t})),PI=(e,t)=>U($.post(`/api/mes/shipping/${e}/pack`,{qty:t})),$I=(e,t)=>U($.post(`/api/mes/shipping/${e}/inspect`,{result:t})),RI=e=>U($.post(`/api/mes/shipping/${e}/ship`)),DI=e=>U($.post(`/api/mes/shipping/${e}/cancel`)),ym=(e={})=>U($.get(`/api/mes/workorders${ot(e)}`)),LI=()=>U($.get("/api/mes/workorders/kanban")),zI=e=>U($.post("/api/mes/workorders",e)),II=(e,t)=>U($.put(`/api/mes/workorders/${e}`,t)),BI=(e,t)=>U($.post(`/api/mes/workorders/${e}/transition`,{action:t})),UI=e=>$.delete(`/api/mes/workorders/${e}`),qI=(e={})=>U($.get(`/api/mes/production${ot(e)}`)),HI=(e=14)=>U($.get(`/api/mes/production/daily-output?days=${e}`)),FI=(e=30)=>U($.get(`/api/mes/production/defect-pareto?days=${e}`)),GI=e=>U($.post("/api/mes/production/report",e)),KI=e=>U($.get(`/api/mes/process/workorder/${e}`)),YI=()=>U($.get("/api/mes/process/running")),VI=(e,t)=>U($.put(`/api/mes/process/${e}/status`,{status:t})),WI=(e={})=>U($.get(`/api/mes/oee${ot(e)}`)),XI=e=>U($.post("/api/mes/oee",e)),QI=(e=30)=>U($.get(`/api/mes/oee/downtime-pareto?days=${e}`)),ZI=e=>U($.get(`/api/mes/tracking/lot/${encodeURIComponent(e)}/history`)),JI=e=>U($.get(`/api/mes/tracking/lot/${encodeURIComponent(e)}/forward`)),e8=e=>U($.get(`/api/mes/tracking/lot/${encodeURIComponent(e)}/backward`)),t8=(e={})=>U($.get(`/api/mes/plans${ot(e)}`)),n8=e=>U($.post("/api/mes/plans",e)),r8=(e,t)=>U($.put(`/api/mes/plans/${e}`,t)),a8=(e,t)=>U($.post(`/api/mes/plans/${e}/transition`,{action:t})),i8=e=>$.delete(`/api/mes/plans/${e}`),s8=(e={})=>U($.get(`/api/mes/receiving${ot(e)}`)),l8=e=>U($.post("/api/mes/receiving",e)),o8=(e,t)=>U($.post(`/api/mes/receiving/${e}/accept`,{inspectionResult:t})),c8=(e,t)=>U($.post(`/api/mes/receiving/${e}/reject`,{reason:t})),u8=(e={})=>U($.get(`/api/mes/inventory${ot(e)}`)),f8=()=>U($.get("/api/mes/inventory/below-safety")),d8=(e={})=>U($.get(`/api/mes/inventory/txns${ot(e)}`)),h8=e=>U($.post("/api/mes/inventory/transfer",e)),p8=(e={})=>U($.get(`/api/mes/stocktake${ot(e)}`)),m8=e=>U($.post("/api/mes/stocktake/count",e)),y8=e=>U($.post(`/api/mes/stocktake/${e}/adjust`)),v8=(e={})=>U($.get(`/api/mes/lotserial${ot(e)}`)),g8=(e=30)=>U($.get(`/api/mes/lotserial/expiring?days=${e}`)),x8=e=>U($.post("/api/mes/lotserial",e)),b8=(e,t)=>U($.put(`/api/mes/lotserial/${e}/status`,{status:t})),j8=(e={})=>U($.get(`/api/mes/inspections${ot(e)}`)),S8=(e=30)=>U($.get(`/api/mes/inspections/pass-rate?days=${e}`)),w8=e=>U($.post("/api/mes/inspections",e)),O8=(e,t)=>U($.post(`/api/mes/inspections/${e}/judge`,t)),N8=(e,t)=>U($.post(`/api/mes/inspections/${e}/result`,t)),A8=(e={})=>U($.get(`/api/mes/specs${ot(e)}`)),E8=e=>U($.post("/api/mes/specs",e)),C8=(e,t)=>U($.put(`/api/mes/specs/${e}`,t)),_8=e=>$.delete(`/api/mes/specs/${e}`),T8=(e={})=>U($.get(`/api/mes/ncr${ot(e)}`)),k8=()=>U($.get("/api/mes/ncr/board")),M8=e=>U($.post("/api/mes/ncr",e)),P8=(e,t)=>U($.post(`/api/mes/ncr/${e}/disposition`,{disposition:t})),$8=(e,t)=>U($.post(`/api/mes/ncr/${e}/transition`,{status:t})),R8=(e={})=>U($.get(`/api/mes/capa${ot(e)}`)),D8=e=>U($.post("/api/mes/capa",e)),L8=(e,t)=>U($.put(`/api/mes/capa/${e}`,t)),z8=(e,t)=>U($.post(`/api/mes/capa/${e}/transition`,t)),I8=()=>U($.get("/api/mes/spc/charts")),B8=(e={})=>U($.get(`/api/mes/spc/samples${ot(e)}`)),U8=e=>U($.get(`/api/mes/spc/chart${ot(e)}`)),q8=e=>U($.post("/api/mes/spc/samples",e)),H8=(e={})=>U($.get(`/api/mes/certificates${ot(e)}`)),F8=e=>U($.get(`/api/mes/certificates/${e}`)),G8=e=>U($.post("/api/mes/certificates",e)),Qt=(e={})=>U($.get(`/api/mes/items${ot(e)}`)),K8=e=>U($.post("/api/mes/items",e)),Y8=(e,t)=>U($.put(`/api/mes/items/${e}`,t)),V8=e=>$.delete(`/api/mes/items/${e}`),W8=(e={})=>U($.get(`/api/mes/bom${ot(e)}`)),X8=()=>U($.get("/api/mes/bom/all")),Q8=e=>U($.post("/api/mes/bom",e)),Z8=(e,t)=>U($.put(`/api/mes/bom/${e}`,t)),J8=e=>$.delete(`/api/mes/bom/${e}`),eB=(e="")=>U($.get(`/api/mes/routings${e?`?itemCode=${encodeURIComponent(e)}`:""}`)),tB=e=>U($.post("/api/mes/routings",e)),nB=(e,t)=>U($.put(`/api/mes/routings/${e}`,t)),rB=e=>$.delete(`/api/mes/routings/${e}`),X0=(e={})=>U($.get(`/api/mes/equipment${ot(e)}`)),aB=(e,t)=>U($.put(`/api/mes/equipment/${e}/run-status`,{runStatus:t})),Q0=(e={})=>U($.get(`/api/mes/partners${ot(e)}`)),iB=e=>U($.post("/api/mes/partners",e)),sB=(e,t)=>U($.put(`/api/mes/partners/${e}`,t)),lB=e=>$.delete(`/api/mes/partners/${e}`),Af=()=>U($.get("/api/mes/warehouses")),oB=e=>U($.post("/api/mes/warehouses",e)),cB=(e,t)=>U($.put(`/api/mes/warehouses/${e}`,t)),uB=e=>$.delete(`/api/mes/warehouses/${e}`),fB=e=>U($.get(`/api/mes/warehouses/${encodeURIComponent(e)}/locations`)),dB=e=>U($.post("/api/mes/warehouses/locations",e)),hB=e=>$.delete(`/api/mes/warehouses/locations/${e}`),pk=()=>U($.get("/api/mes/members/workers")),pB=(e=30)=>U($.get(`/api/mes/analytics/production-kpi?days=${e}`)),mB=(e=30)=>U($.get(`/api/mes/analytics/quality-kpi?days=${e}`)),yB=()=>U($.get("/api/mes/analytics/inventory-kpi")),mk=(e=14)=>U($.get(`/api/mes/analytics/daily-production?days=${e}`)),vB=(e=30,t=10)=>U($.get(`/api/mes/analytics/top-items?days=${e}&limit=${t}`)),yk=()=>U($.get("/api/mes/ai/status")),gB=e=>U($.post("/api/mes/ai/defect-root-cause",e)),xB=e=>U($.post("/api/mes/ai/forecast",e)),bB=e=>U($.post("/api/mes/ai/predictive-maintenance",e)),jB=e=>U($.post("/api/mes/ai/spc-anomaly",e)),SB=e=>U($.post("/api/mes/ai/parse-query",e)),wB=e=>U($.post("/api/mes/ai/safety-stock",e)),OB=e=>U($.post("/api/mes/ai/schedule-optimize",e)),NB=e=>U($.post("/api/mes/rag/defect-analysis",e)),AB=e=>U($.post("/api/mes/rag/predict-analysis",e)),EB=e=>U($.post("/api/mes/rag/feedback",e)),CB=()=>U($.get("/api/mes/rag/toggles")),_B=(e,t)=>U($.put(`/api/mes/rag/toggles/${e}`,{value:t})),TB=e=>U($.post("/api/ai/feedback",e)),kB=()=>$.get("/api/admin/users"),MB=e=>$.post("/api/admin/users",e),PB=(e,t)=>$.put(`/api/admin/users/${e}/role`,{role:t}),$B=(e,t)=>$.put(`/api/admin/users/${e}/active`,{active:t}),RB=(e,t)=>$.put(`/api/admin/users/${e}/password`,{password:t}),DB=e=>$.delete(`/api/admin/users/${e}`),LB=(e="",t="",n=200)=>$.get(`/api/admin/audit${ot({action:e,actor:t,limit:n})}`),zB=()=>$.get("/api/admin/settings"),IB=(e,t)=>$.put(`/api/admin/settings/${encodeURIComponent(e)}`,{value:t});function BB(){const e=nm(),t=localStorage.getItem("mes_user")||"admin",n=localStorage.getItem("mes_role")||"",[r,a]=w.useState(null);w.useEffect(()=>{yk().then(l=>a(!!((l==null?void 0:l.ollamaAvailable)??(l==null?void 0:l.available)))).catch(()=>a(!1))},[]);const i=()=>{localStorage.removeItem("mes_token"),localStorage.removeItem("mes_role"),localStorage.removeItem("mes_user"),e("/login")};return s.jsxs("header",{className:"h-16 bg-panel border-b border-edge flex items-center justify-between px-6",children:[s.jsx("div",{className:"text-sm text-slate-400",children:"AI 제조실행시스템 · WMS · MES · QMS · Ollama 온프레미스"}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsxs("span",{className:`flex items-center gap-1.5 text-xs px-2 py-1 rounded-md border ${r?"text-accent border-accent/30 bg-accent/10":"text-slate-400 border-edge bg-card"}`,children:[s.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${r?"bg-accent":"bg-slate-500"}`}),"AI ",r===null?"확인 중":r?"온라인":"폴백"]}),s.jsxs("span",{className:"flex items-center gap-1.5 text-sm text-slate-300",children:[s.jsx(ML,{size:18})," ",t,n&&s.jsxs("span",{className:"text-[11px] text-slate-500",children:["(",n,")"]})]}),s.jsxs("button",{onClick:i,className:"flex items-center gap-1.5 text-sm text-slate-400 hover:text-brand",children:[s.jsx(qL,{size:16})," 로그아웃"]})]})]})}function UB(){const e=localStorage.getItem("mes_token");return w.useEffect(()=>{e&&dk().then(t=>{var r;const n=((r=t.data)==null?void 0:r.data)||{};n.role&&localStorage.setItem("mes_role",n.role),n.username&&localStorage.setItem("mes_user",n.username)}).catch(()=>{})},[e]),e?s.jsxs("div",{className:"flex h-screen bg-ink",children:[s.jsx(yz,{}),s.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[s.jsx(BB,{}),s.jsx("main",{className:"flex-1 overflow-auto p-6",children:s.jsx(d5,{})})]})]}):s.jsx(rT,{to:"/login",replace:!0})}function In({min:e,children:t}){const[n,r]=w.useState(_i());return w.useEffect(()=>{const a=window.setInterval(()=>{const i=_i();r(l=>l===i?l:i)},500);return()=>window.clearInterval(a)},[]),_s(e,n)?s.jsx(s.Fragment,{children:t}):s.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center",children:[s.jsx(WL,{size:48,className:"text-rose-400 mb-4"}),s.jsx("h2",{className:"text-lg font-bold mb-1",children:"접근 권한이 없습니다"}),s.jsxs("p",{className:"text-sm text-slate-400",children:["이 화면은 ",s.jsx("b",{className:"text-brand",children:e})," 이상 권한이 필요합니다. (현재: ",n,")"]})]})}const qB=(e,t)=>$.post("/api/mes/auth/verify",{verifyToken:e,code:t}),HB=e=>$.post("/api/mes/auth/signup",e),FB=e=>$.post("/api/mes/auth/find-id",e),GB=e=>$.post("/api/mes/auth/reset-password",e),KB=e=>$.post("/api/messages",e),YB=e=>$.get("/api/messages/sent",{params:e}),VB=e=>$.get(`/api/messages/sent/${e}`),WB=e=>$.get("/api/messages/received",{params:e}),XB=e=>$.get(`/api/messages/received/${e}`),QB=e=>$.get("/api/schedules",{params:e}),ZB=e=>$.post("/api/schedules",e),JB=e=>$.get(`/api/schedules/${e}`),eU=e=>$.delete(`/api/schedules/${e}`),tU=e=>$.get("/api/worklogs",{params:e}),nU=e=>$.get("/api/worklogs/dashboard/progress",{params:e}),rU=e=>$.post("/api/worklogs",e),aU=e=>$.get(`/api/worklogs/${e}`),iU=e=>$.delete(`/api/worklogs/${e}`),sU=(e,t)=>$.post(`/api/worklogs/${e}/comments`,{cmtContent:t}),lU=e=>$.get("/api/stats/personal-work",{params:e}),oU=e=>$.get("/api/stats/company-work",{params:e}),cU=(e,t=0,n=100)=>$.get("/api/system/roles",{params:{...e?{keyword:e}:{},page:t,size:n}}),uU=e=>$.post("/api/system/roles",e),fU=(e,t)=>$.put(`/api/system/roles/${encodeURIComponent(e)}`,t),dU=e=>$.delete("/api/system/roles",{data:{ids:e}}),hU=(e=0,t=100)=>$.get("/api/system/role-menus",{params:{page:e,size:t}}),pU=e=>$.get(`/api/system/roles/${encodeURIComponent(e)}/menus`),mU=(e,t)=>$.put(`/api/system/roles/${encodeURIComponent(e)}/menus`,{menus:t}),yU=(e,t=0,n=100)=>$.get("/api/system/codes",{params:{...e?{keyword:e}:{},page:t,size:n}}),vU=e=>$.get(`/api/system/codes/${encodeURIComponent(e)}`),gU=e=>$.post("/api/system/codes",e),xU=(e,t)=>$.put(`/api/system/codes/${encodeURIComponent(e)}`,t),bU=e=>$.delete(`/api/system/codes/${encodeURIComponent(e)}`),jU=(e=0,t=200)=>$.get("/api/system/menus",{params:{page:e,size:t}}),SU=e=>$.get("/api/system/menus/search",{params:e?{keyword:e}:{}}),wU=e=>$.post("/api/system/menus",e),OU=(e,t)=>$.put(`/api/system/menus/${encodeURIComponent(e)}`,t),NU=e=>$.delete("/api/system/menus",{data:{ids:e}}),AU=(e,t=0,n=200)=>$.get("/api/system/depts",{params:{...e?{keyword:e}:{},page:t,size:n}}),EU=e=>$.post("/api/system/depts",e),CU=(e,t)=>$.put(`/api/system/depts/${encodeURIComponent(e)}`,t),_U=e=>$.delete(`/api/system/depts/${encodeURIComponent(e)}`),TU=(e,t=0,n=200)=>$.get("/api/system/companies",{params:{...e?{keyword:e}:{},page:t,size:n}}),kU=e=>$.post("/api/system/companies",e),MU=(e,t)=>$.put(`/api/system/companies/${encodeURIComponent(e)}`,t),PU=e=>$.delete("/api/system/companies",{data:{ids:e}});function $U(){const[e,t]=w.useState("admin"),[n,r]=w.useState(""),[a,i]=w.useState(""),[l,o]=w.useState(!1),[c,u]=w.useState("login"),[f,d]=w.useState(""),[h,m]=w.useState(""),[j,y]=w.useState(""),p=nm(),[v,g]=w.useState(null),[b,x]=w.useState({username:"",password:"",displayName:"",email:""}),[O,S]=w.useState(!1),[N,A]=w.useState(""),[C,k]=w.useState(!1),R=z=>{g(z),x({username:"",password:"",displayName:"",email:""}),A(""),k(!1)},M=()=>{g(null),A(""),k(!1)},B=async z=>{var G,V,Z;z.preventDefault(),S(!0),A(""),k(!1);try{let X;if(v==="signup"){X=await HB({username:b.username.trim(),password:b.password,displayName:b.displayName.trim()||void 0,email:b.email.trim()});const ee=(G=X.data)==null?void 0:G.data;k(!(ee!=null&&ee.success)),A((ee==null?void 0:ee.message)||"처리되었습니다.")}else if(v==="find-id"){X=await FB({displayName:b.displayName.trim(),email:b.email.trim()});const ee=(V=X.data)==null?void 0:V.data;ee!=null&&ee.found?(k(!1),A(`회원님의 아이디는 [${ee.maskedUsername}] 입니다.`)):(k(!0),A("일치하는 계정을 찾을 수 없습니다. 이름과 이메일을 확인하세요."))}else if(v==="reset-password"){X=await GB({username:b.username.trim(),email:b.email.trim()});const ee=(Z=X.data)==null?void 0:Z.data;k(!(ee!=null&&ee.success)),A((ee==null?void 0:ee.message)||"요청이 처리되었습니다.")}}catch{k(!0),A("요청 처리 중 오류가 발생했습니다. 잠시 후 다시 시도하세요.")}finally{S(!1)}},_=v==="signup"?"회원가입(승인 대기)":v==="find-id"?"아이디 찾기":"비밀번호 초기화",E=async z=>{var G;if(!z)throw new Error("no token");localStorage.setItem("mes_token",z);try{const Z=((G=(await dk()).data)==null?void 0:G.data)||{};Z.role&&localStorage.setItem("mes_role",Z.role),Z.username&&localStorage.setItem("mes_user",Z.username)}catch{}p("/dashboard")},P=async z=>{var G;z.preventDefault(),i(""),o(!0);try{const Z=((G=(await cI(e,n)).data)==null?void 0:G.data)||{};if(Z.twofa==="true"){d(Z.verifyToken),m(Z.maskedEmail||""),u("verify");return}await E(Z.token)}catch{i("로그인 실패 — 아이디/비밀번호를 확인하세요.")}finally{o(!1)}},I=async z=>{var G,V;z.preventDefault(),i(""),o(!0);try{const Z=await qB(f,j.trim());await E((V=(G=Z.data)==null?void 0:G.data)==null?void 0:V.token)}catch{i("인증 코드가 올바르지 않거나 만료되었습니다.")}finally{o(!1)}};return s.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-ink",children:[s.jsxs("form",{onSubmit:c==="login"?P:I,className:"w-[360px] bg-panel border border-edge rounded-2xl p-8",children:[s.jsxs("div",{className:"flex items-center gap-2 justify-center mb-6",children:[s.jsx(Yr,{className:"text-brand",size:32}),s.jsx("span",{className:"text-xl font-bold",children:"GUARDiA MES"})]}),s.jsx("p",{className:"text-center text-sm text-slate-400 mb-6",children:"AI 제조실행시스템 · WMS · MES · QMS"}),c==="login"?s.jsxs(s.Fragment,{children:[s.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"아이디"}),s.jsx("input",{value:e,onChange:z=>t(z.target.value),className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none"}),s.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"비밀번호"}),s.jsx("input",{type:"password",value:n,onChange:z=>r(z.target.value),className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none"})]}):s.jsxs(s.Fragment,{children:[s.jsxs("p",{className:"text-xs text-slate-400 mb-3",children:["2차 인증 코드를 입력하세요",h?` (${h})`:"","."]}),s.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"인증 코드"}),s.jsx("input",{value:j,onChange:z=>y(z.target.value),inputMode:"numeric",autoFocus:!0,placeholder:"6자리 코드",className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none tracking-widest"})]}),a&&s.jsx("p",{className:"text-rose-400 text-xs mb-3",children:a}),s.jsx("button",{disabled:l,className:"w-full py-2.5 rounded-lg bg-brand text-ink font-semibold hover:bg-brand/90 disabled:opacity-60",children:l?"처리 중…":c==="login"?"로그인":"인증 확인"}),c==="verify"&&s.jsx("button",{type:"button",onClick:()=>{u("login"),y(""),i("")},className:"w-full mt-2 py-2 rounded-lg text-xs text-slate-400 hover:text-slate-200",children:"← 처음으로"}),c==="login"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center justify-center gap-2 text-[11px] text-slate-400 mt-4",children:[s.jsx("button",{type:"button",onClick:()=>R("signup"),className:"hover:text-brand",children:"회원가입"}),s.jsx("span",{className:"text-slate-600",children:"|"}),s.jsx("button",{type:"button",onClick:()=>R("find-id"),className:"hover:text-brand",children:"아이디 찾기"}),s.jsx("span",{className:"text-slate-600",children:"|"}),s.jsx("button",{type:"button",onClick:()=>R("reset-password"),className:"hover:text-brand",children:"비밀번호 초기화"})]}),s.jsx("p",{className:"text-center text-[11px] text-slate-500 mt-3",children:"admin / manager / worker · admin123"})]})]}),v&&s.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60",onClick:M,children:s.jsxs("form",{onClick:z=>z.stopPropagation(),onSubmit:B,className:"w-[360px] bg-panel border border-edge rounded-2xl p-7",children:[s.jsxs("div",{className:"flex items-center justify-between mb-5",children:[s.jsx("span",{className:"text-base font-bold",children:_}),s.jsx("button",{type:"button",onClick:M,className:"text-slate-400 hover:text-slate-200 text-lg leading-none",children:"×"})]}),(v==="signup"||v==="reset-password")&&s.jsxs(s.Fragment,{children:[s.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"아이디"}),s.jsx("input",{value:b.username,onChange:z=>x({...b,username:z.target.value}),className:"w-full mb-3 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none"})]}),v==="signup"&&s.jsxs(s.Fragment,{children:[s.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"비밀번호 (4자 이상)"}),s.jsx("input",{type:"password",value:b.password,onChange:z=>x({...b,password:z.target.value}),className:"w-full mb-3 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none"})]}),(v==="signup"||v==="find-id")&&s.jsxs(s.Fragment,{children:[s.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"이름"}),s.jsx("input",{value:b.displayName,onChange:z=>x({...b,displayName:z.target.value}),className:"w-full mb-3 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none"})]}),s.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"이메일"}),s.jsx("input",{type:"email",value:b.email,onChange:z=>x({...b,email:z.target.value}),className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none"}),N&&s.jsx("p",{className:`text-xs mb-3 ${C?"text-rose-400":"text-emerald-400"}`,children:N}),s.jsx("button",{disabled:O,className:"w-full py-2.5 rounded-lg bg-brand text-ink font-semibold hover:bg-brand/90 disabled:opacity-60",children:O?"처리 중…":v==="signup"?"가입 신청":v==="find-id"?"아이디 찾기":"초기화 요청"}),v==="signup"&&s.jsx("p",{className:"text-[11px] text-slate-500 mt-3",children:"가입 후 관리자 승인이 완료되어야 로그인할 수 있습니다."})]})})]})}function vk(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=vk(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pe(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=vk(e))&&(r&&(r+=" "),r+=t);return r}var RU=Array.isArray,bn=RU,DU=typeof zf=="object"&&zf&&zf.Object===Object&&zf,gk=DU,LU=gk,zU=typeof self=="object"&&self&&self.Object===Object&&self,IU=LU||zU||Function("return this")(),Jr=IU,BU=Jr,UU=BU.Symbol,Ef=UU,bw=Ef,xk=Object.prototype,qU=xk.hasOwnProperty,HU=xk.toString,gc=bw?bw.toStringTag:void 0;function FU(e){var t=qU.call(e,gc),n=e[gc];try{e[gc]=void 0;var r=!0}catch{}var a=HU.call(e);return r&&(t?e[gc]=n:delete e[gc]),a}var GU=FU,KU=Object.prototype,YU=KU.toString;function VU(e){return YU.call(e)}var WU=VU,jw=Ef,XU=GU,QU=WU,ZU="[object Null]",JU="[object Undefined]",Sw=jw?jw.toStringTag:void 0;function e7(e){return e==null?e===void 0?JU:ZU:Sw&&Sw in Object(e)?XU(e):QU(e)}var Ra=e7;function t7(e){return e!=null&&typeof e=="object"}var Da=t7,n7=Ra,r7=Da,a7="[object Symbol]";function i7(e){return typeof e=="symbol"||r7(e)&&n7(e)==a7}var Wo=i7,s7=bn,l7=Wo,o7=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c7=/^\w*$/;function u7(e,t){if(s7(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||l7(e)?!0:c7.test(e)||!o7.test(e)||t!=null&&e in Object(t)}var Z0=u7;function f7(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ri=f7;const Xo=Me(Ri);var d7=Ra,h7=Ri,p7="[object AsyncFunction]",m7="[object Function]",y7="[object GeneratorFunction]",v7="[object Proxy]";function g7(e){if(!h7(e))return!1;var t=d7(e);return t==m7||t==y7||t==p7||t==v7}var J0=g7;const ce=Me(J0);var x7=Jr,b7=x7["__core-js_shared__"],j7=b7,rv=j7,ww=function(){var e=/[^.]+$/.exec(rv&&rv.keys&&rv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function S7(e){return!!ww&&ww in e}var w7=S7,O7=Function.prototype,N7=O7.toString;function A7(e){if(e!=null){try{return N7.call(e)}catch{}try{return e+""}catch{}}return""}var bk=A7,E7=J0,C7=w7,_7=Ri,T7=bk,k7=/[\\^$.*+?()[\]{}|]/g,M7=/^\[object .+?Constructor\]$/,P7=Function.prototype,$7=Object.prototype,R7=P7.toString,D7=$7.hasOwnProperty,L7=RegExp("^"+R7.call(D7).replace(k7,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function z7(e){if(!_7(e)||C7(e))return!1;var t=E7(e)?L7:M7;return t.test(T7(e))}var I7=z7;function B7(e,t){return e==null?void 0:e[t]}var U7=B7,q7=I7,H7=U7;function F7(e,t){var n=H7(e,t);return q7(n)?n:void 0}var qs=F7,G7=qs,K7=G7(Object,"create"),vm=K7,Ow=vm;function Y7(){this.__data__=Ow?Ow(null):{},this.size=0}var V7=Y7;function W7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var X7=W7,Q7=vm,Z7="__lodash_hash_undefined__",J7=Object.prototype,e9=J7.hasOwnProperty;function t9(e){var t=this.__data__;if(Q7){var n=t[e];return n===Z7?void 0:n}return e9.call(t,e)?t[e]:void 0}var n9=t9,r9=vm,a9=Object.prototype,i9=a9.hasOwnProperty;function s9(e){var t=this.__data__;return r9?t[e]!==void 0:i9.call(t,e)}var l9=s9,o9=vm,c9="__lodash_hash_undefined__";function u9(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o9&&t===void 0?c9:t,this}var f9=u9,d9=V7,h9=X7,p9=n9,m9=l9,y9=f9;function Qo(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])}}Qo.prototype.clear=d9;Qo.prototype.delete=h9;Qo.prototype.get=p9;Qo.prototype.has=m9;Qo.prototype.set=y9;var v9=Qo;function g9(){this.__data__=[],this.size=0}var x9=g9;function b9(e,t){return e===t||e!==e&&t!==t}var e1=b9,j9=e1;function S9(e,t){for(var n=e.length;n--;)if(j9(e[n][0],t))return n;return-1}var gm=S9,w9=gm,O9=Array.prototype,N9=O9.splice;function A9(e){var t=this.__data__,n=w9(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():N9.call(t,n,1),--this.size,!0}var E9=A9,C9=gm;function _9(e){var t=this.__data__,n=C9(t,e);return n<0?void 0:t[n][1]}var T9=_9,k9=gm;function M9(e){return k9(this.__data__,e)>-1}var P9=M9,$9=gm;function R9(e,t){var n=this.__data__,r=$9(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var D9=R9,L9=x9,z9=E9,I9=T9,B9=P9,U9=D9;function Zo(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])}}Zo.prototype.clear=L9;Zo.prototype.delete=z9;Zo.prototype.get=I9;Zo.prototype.has=B9;Zo.prototype.set=U9;var xm=Zo,q9=qs,H9=Jr,F9=q9(H9,"Map"),t1=F9,Nw=v9,G9=xm,K9=t1;function Y9(){this.size=0,this.__data__={hash:new Nw,map:new(K9||G9),string:new Nw}}var V9=Y9;function W9(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var X9=W9,Q9=X9;function Z9(e,t){var n=e.__data__;return Q9(t)?n[typeof t=="string"?"string":"hash"]:n.map}var bm=Z9,J9=bm;function eq(e){var t=J9(this,e).delete(e);return this.size-=t?1:0,t}var tq=eq,nq=bm;function rq(e){return nq(this,e).get(e)}var aq=rq,iq=bm;function sq(e){return iq(this,e).has(e)}var lq=sq,oq=bm;function cq(e,t){var n=oq(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var uq=cq,fq=V9,dq=tq,hq=aq,pq=lq,mq=uq;function Jo(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])}}Jo.prototype.clear=fq;Jo.prototype.delete=dq;Jo.prototype.get=hq;Jo.prototype.has=pq;Jo.prototype.set=mq;var n1=Jo,jk=n1,yq="Expected a function";function r1(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(yq);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 l=e.apply(this,r);return n.cache=i.set(a,l)||i,l};return n.cache=new(r1.Cache||jk),n}r1.Cache=jk;var Sk=r1;const vq=Me(Sk);var gq=Sk,xq=500;function bq(e){var t=gq(e,function(r){return n.size===xq&&n.clear(),r}),n=t.cache;return t}var jq=bq,Sq=jq,wq=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oq=/\\(\\)?/g,Nq=Sq(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(wq,function(n,r,a,i){t.push(a?i.replace(Oq,"$1"):r||n)}),t}),Aq=Nq;function Eq(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 a1=Eq,Aw=Ef,Cq=a1,_q=bn,Tq=Wo,Ew=Aw?Aw.prototype:void 0,Cw=Ew?Ew.toString:void 0;function wk(e){if(typeof e=="string")return e;if(_q(e))return Cq(e,wk)+"";if(Tq(e))return Cw?Cw.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var kq=wk,Mq=kq;function Pq(e){return e==null?"":Mq(e)}var Ok=Pq,$q=bn,Rq=Z0,Dq=Aq,Lq=Ok;function zq(e,t){return $q(e)?e:Rq(e,t)?[e]:Dq(Lq(e))}var Nk=zq,Iq=Wo;function Bq(e){if(typeof e=="string"||Iq(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var jm=Bq,Uq=Nk,qq=jm;function Hq(e,t){t=Uq(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[qq(t[n++])];return n&&n==r?e:void 0}var i1=Hq,Fq=i1;function Gq(e,t,n){var r=e==null?void 0:Fq(e,t);return r===void 0?n:r}var Ak=Gq;const $n=Me(Ak);function Kq(e){return e==null}var Yq=Kq;const le=Me(Yq);var Vq=Ra,Wq=bn,Xq=Da,Qq="[object String]";function Zq(e){return typeof e=="string"||!Wq(e)&&Xq(e)&&Vq(e)==Qq}var Jq=Zq;const Ms=Me(Jq);var Ek={exports:{}},De={};/**
|
||
* @license React
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var s1=Symbol.for("react.element"),l1=Symbol.for("react.portal"),Sm=Symbol.for("react.fragment"),wm=Symbol.for("react.strict_mode"),Om=Symbol.for("react.profiler"),Nm=Symbol.for("react.provider"),Am=Symbol.for("react.context"),eH=Symbol.for("react.server_context"),Em=Symbol.for("react.forward_ref"),Cm=Symbol.for("react.suspense"),_m=Symbol.for("react.suspense_list"),Tm=Symbol.for("react.memo"),km=Symbol.for("react.lazy"),tH=Symbol.for("react.offscreen"),Ck;Ck=Symbol.for("react.module.reference");function ur(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case s1:switch(e=e.type,e){case Sm:case Om:case wm:case Cm:case _m:return e;default:switch(e=e&&e.$$typeof,e){case eH:case Am:case Em:case km:case Tm:case Nm:return e;default:return t}}case l1:return t}}}De.ContextConsumer=Am;De.ContextProvider=Nm;De.Element=s1;De.ForwardRef=Em;De.Fragment=Sm;De.Lazy=km;De.Memo=Tm;De.Portal=l1;De.Profiler=Om;De.StrictMode=wm;De.Suspense=Cm;De.SuspenseList=_m;De.isAsyncMode=function(){return!1};De.isConcurrentMode=function(){return!1};De.isContextConsumer=function(e){return ur(e)===Am};De.isContextProvider=function(e){return ur(e)===Nm};De.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===s1};De.isForwardRef=function(e){return ur(e)===Em};De.isFragment=function(e){return ur(e)===Sm};De.isLazy=function(e){return ur(e)===km};De.isMemo=function(e){return ur(e)===Tm};De.isPortal=function(e){return ur(e)===l1};De.isProfiler=function(e){return ur(e)===Om};De.isStrictMode=function(e){return ur(e)===wm};De.isSuspense=function(e){return ur(e)===Cm};De.isSuspenseList=function(e){return ur(e)===_m};De.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Sm||e===Om||e===wm||e===Cm||e===_m||e===tH||typeof e=="object"&&e!==null&&(e.$$typeof===km||e.$$typeof===Tm||e.$$typeof===Nm||e.$$typeof===Am||e.$$typeof===Em||e.$$typeof===Ck||e.getModuleId!==void 0)};De.typeOf=ur;Ek.exports=De;var nH=Ek.exports,rH=Ra,aH=Da,iH="[object Number]";function sH(e){return typeof e=="number"||aH(e)&&rH(e)==iH}var _k=sH;const lH=Me(_k);var oH=_k;function cH(e){return oH(e)&&e!=+e}var uH=cH;const ec=Me(uH);var rn=function(t){return t===0?0:t>0?1:-1},rs=function(t){return Ms(t)&&t.indexOf("%")===t.length-1},W=function(t){return lH(t)&&!ec(t)},fH=function(t){return le(t)},_t=function(t){return W(t)||Ms(t)},dH=0,Di=function(t){var n=++dH;return"".concat(t||"").concat(n)},an=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(!W(t)&&!Ms(t))return r;var i;if(rs(t)){var l=t.indexOf("%");i=n*parseFloat(t.slice(0,l))/100}else i=+t;return ec(i)&&(i=r),a&&i>n&&(i=n),i},Ja=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},hH=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},it=function(t,n){return W(t)&&W(n)?function(r){return t+r*(n-t)}:function(){return n}};function _h(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):$n(r,t))===n})}var pH=function(t){if(!t||!t.length)return null;for(var n=t.length,r=0,a=0,i=0,l=0,o=1/0,c=-1/0,u=0,f=0,d=0;d<n;d++)u=t[d].cx||0,f=t[d].cy||0,r+=u,a+=f,i+=u*f,l+=u*u,o=Math.min(o,u),c=Math.max(c,u);var h=n*l!==r*r?(n*i-r*a)/(n*l-r*r):0;return{xmin:o,xmax:c,a:h,b:(a-h*r)/n}},mH=function(t,n){return W(t)&&W(n)?t-n:Ms(t)&&Ms(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Ml(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 Vg(e){"@babel/helpers - typeof";return Vg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vg(e)}var yH=["viewBox","children"],vH=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],_w=["points","pathLength"],av={svg:yH,polygon:_w,polyline:_w},o1=["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"],Th=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(w.isValidElement(t)&&(r=t.props),!Xo(r))return null;var a={};return Object.keys(r).forEach(function(i){o1.includes(i)&&(a[i]=n||function(l){return r[i](r,l)})}),a},gH=function(t,n,r){return function(a){return t(n,r,a),null}},Ti=function(t,n,r){if(!Xo(t)||Vg(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var l=t[i];o1.includes(i)&&typeof l=="function"&&(a||(a={}),a[i]=gH(l,n,r))}),a},xH=["children"],bH=["children"];function Tw(e,t){if(e==null)return{};var n=jH(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 jH(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 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)}var kw={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"},wa=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Mw=null,iv=null,c1=function e(t){if(t===Mw&&Array.isArray(iv))return iv;var n=[];return w.Children.forEach(t,function(r){le(r)||(nH.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),iv=n,Mw=t,n};function on(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return wa(a)}):r=[wa(t)],c1(e).forEach(function(a){var i=$n(a,"type.displayName")||$n(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function On(e,t){var n=on(e,t);return n&&n[0]}var Pw=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!W(r)||r<=0||!W(a)||a<=0)},SH=["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"],wH=function(t){return t&&t.type&&Ms(t.type)&&SH.indexOf(t.type)>=0},Tk=function(t){return t&&Wg(t)==="object"&&"clipDot"in t},OH=function(t,n,r,a){var i,l=(i=av==null?void 0:av[a])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!ce(t)&&(a&&l.includes(n)||vH.includes(n))||r&&o1.includes(n)},ae=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(w.isValidElement(t)&&(a=t.props),!Xo(a))return null;var i={};return Object.keys(a).forEach(function(l){var o;OH((o=a)===null||o===void 0?void 0:o[l],l,n,r)&&(i[l]=a[l])}),i},Xg=function e(t,n){if(t===n)return!0;var r=w.Children.count(t);if(r!==w.Children.count(n))return!1;if(r===0)return!0;if(r===1)return $w(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a<r;a++){var i=t[a],l=n[a];if(Array.isArray(i)||Array.isArray(l)){if(!e(i,l))return!1}else if(!$w(i,l))return!1}return!0},$w=function(t,n){if(le(t)&&le(n))return!0;if(!le(t)&&!le(n)){var r=t.props||{},a=r.children,i=Tw(r,xH),l=n.props||{},o=l.children,c=Tw(l,bH);return a&&o?Ml(i,c)&&Xg(a,o):!a&&!o?Ml(i,c):!1}return!1},Rw=function(t,n){var r=[],a={};return c1(t).forEach(function(i,l){if(wH(i))r.push(i);else if(i){var o=wa(i.type),c=n[o]||{},u=c.handler,f=c.once;if(u&&(!f||!a[o])){var d=u(i,o,l);r.push(d),a[o]=!0}}}),r},NH=function(t){var n=t&&t.type;return n&&kw[n]?kw[n]:null},AH=function(t,n){return c1(n).indexOf(t)},EH=["children","width","height","viewBox","className","style","title","desc"];function Qg(){return Qg=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},Qg.apply(this,arguments)}function CH(e,t){if(e==null)return{};var n=_H(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 _H(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 Zg(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,i=e.className,l=e.style,o=e.title,c=e.desc,u=CH(e,EH),f=a||{width:n,height:r,x:0,y:0},d=pe("recharts-surface",i);return T.createElement("svg",Qg({},ae(u,!0,"svg"),{className:d,width:n,height:r,style:l,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),T.createElement("title",null,o),T.createElement("desc",null,c),t)}var TH=["children","className"];function Jg(){return Jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jg.apply(this,arguments)}function kH(e,t){if(e==null)return{};var n=MH(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 MH(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 ve=T.forwardRef(function(e,t){var n=e.children,r=e.className,a=kH(e,TH),i=pe("recharts-layer",r);return T.createElement("g",Jg({className:i},ae(a,!0),{ref:t}),n)}),Sr=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 PH(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 $H=PH,RH=$H;function DH(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:RH(e,t,n)}var LH=DH,zH="\\ud800-\\udfff",IH="\\u0300-\\u036f",BH="\\ufe20-\\ufe2f",UH="\\u20d0-\\u20ff",qH=IH+BH+UH,HH="\\ufe0e\\ufe0f",FH="\\u200d",GH=RegExp("["+FH+zH+qH+HH+"]");function KH(e){return GH.test(e)}var kk=KH;function YH(e){return e.split("")}var VH=YH,Mk="\\ud800-\\udfff",WH="\\u0300-\\u036f",XH="\\ufe20-\\ufe2f",QH="\\u20d0-\\u20ff",ZH=WH+XH+QH,JH="\\ufe0e\\ufe0f",eF="["+Mk+"]",ex="["+ZH+"]",tx="\\ud83c[\\udffb-\\udfff]",tF="(?:"+ex+"|"+tx+")",Pk="[^"+Mk+"]",$k="(?:\\ud83c[\\udde6-\\uddff]){2}",Rk="[\\ud800-\\udbff][\\udc00-\\udfff]",nF="\\u200d",Dk=tF+"?",Lk="["+JH+"]?",rF="(?:"+nF+"(?:"+[Pk,$k,Rk].join("|")+")"+Lk+Dk+")*",aF=Lk+Dk+rF,iF="(?:"+[Pk+ex+"?",ex,$k,Rk,eF].join("|")+")",sF=RegExp(tx+"(?="+tx+")|"+iF+aF,"g");function lF(e){return e.match(sF)||[]}var oF=lF,cF=VH,uF=kk,fF=oF;function dF(e){return uF(e)?fF(e):cF(e)}var hF=dF,pF=LH,mF=kk,yF=hF,vF=Ok;function gF(e){return function(t){t=vF(t);var n=mF(t)?yF(t):void 0,r=n?n[0]:t.charAt(0),a=n?pF(n,1).join(""):t.slice(1);return r[e]()+a}}var xF=gF,bF=xF,jF=bF("toUpperCase"),SF=jF;const Mm=Me(SF);function Fe(e){return function(){return e}}const zk=Math.cos,kh=Math.sin,Tr=Math.sqrt,Mh=Math.PI,Pm=2*Mh,nx=Math.PI,rx=2*nx,Zi=1e-6,wF=rx-Zi;function Ik(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function OF(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Ik;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 NF{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Ik:OF(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,l){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+l}`}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 l=this._x1,o=this._y1,c=r-t,u=a-n,f=l-t,d=o-n,h=f*f+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>Zi)if(!(Math.abs(d*c-u*f)>Zi)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let m=r-l,j=a-o,y=c*c+u*u,p=m*m+j*j,v=Math.sqrt(y),g=Math.sqrt(h),b=i*Math.tan((nx-Math.acos((y+h-p)/(2*v*g)))/2),x=b/g,O=b/v;Math.abs(x-1)>Zi&&this._append`L${t+x*f},${n+x*d}`,this._append`A${i},${i},0,0,${+(d*m>f*j)},${this._x1=t+O*c},${this._y1=n+O*u}`}}arc(t,n,r,a,i,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(a),c=r*Math.sin(a),u=t+o,f=n+c,d=1^l,h=l?a-i:i-a;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Zi||Math.abs(this._y1-f)>Zi)&&this._append`L${u},${f}`,r&&(h<0&&(h=h%rx+rx),h>wF?this._append`A${r},${r},0,1,${d},${t-o},${n-c}A${r},${r},0,1,${d},${this._x1=u},${this._y1=f}`:h>Zi&&this._append`A${r},${r},0,${+(h>=nx)},${d},${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 u1(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 NF(t)}function f1(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Bk(e){this._context=e}Bk.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 $m(e){return new Bk(e)}function Uk(e){return e[0]}function qk(e){return e[1]}function Hk(e,t){var n=Fe(!0),r=null,a=$m,i=null,l=u1(o);e=typeof e=="function"?e:e===void 0?Uk:Fe(e),t=typeof t=="function"?t:t===void 0?qk:Fe(t);function o(c){var u,f=(c=f1(c)).length,d,h=!1,m;for(r==null&&(i=a(m=l())),u=0;u<=f;++u)!(u<f&&n(d=c[u],u,c))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(d,u,c),+t(d,u,c));if(m)return i=null,m+""||null}return o.x=function(c){return arguments.length?(e=typeof c=="function"?c:Fe(+c),o):e},o.y=function(c){return arguments.length?(t=typeof c=="function"?c:Fe(+c),o):t},o.defined=function(c){return arguments.length?(n=typeof c=="function"?c:Fe(!!c),o):n},o.curve=function(c){return arguments.length?(a=c,r!=null&&(i=a(r)),o):a},o.context=function(c){return arguments.length?(c==null?r=i=null:i=a(r=c),o):r},o}function ad(e,t,n){var r=null,a=Fe(!0),i=null,l=$m,o=null,c=u1(u);e=typeof e=="function"?e:e===void 0?Uk:Fe(+e),t=typeof t=="function"?t:Fe(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?qk:Fe(+n);function u(d){var h,m,j,y=(d=f1(d)).length,p,v=!1,g,b=new Array(y),x=new Array(y);for(i==null&&(o=l(g=c())),h=0;h<=y;++h){if(!(h<y&&a(p=d[h],h,d))===v)if(v=!v)m=h,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),j=h-1;j>=m;--j)o.point(b[j],x[j]);o.lineEnd(),o.areaEnd()}v&&(b[h]=+e(p,h,d),x[h]=+t(p,h,d),o.point(r?+r(p,h,d):b[h],n?+n(p,h,d):x[h]))}if(g)return o=null,g+""||null}function f(){return Hk().defined(a).curve(l).context(i)}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:Fe(+d),r=null,u):e},u.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Fe(+d),u):e},u.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Fe(+d),u):r},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:Fe(+d),n=null,u):t},u.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Fe(+d),u):t},u.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Fe(+d),u):n},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(n)},u.lineX1=function(){return f().x(r).y(t)},u.defined=function(d){return arguments.length?(a=typeof d=="function"?d:Fe(!!d),u):a},u.curve=function(d){return arguments.length?(l=d,i!=null&&(o=l(i)),u):l},u.context=function(d){return arguments.length?(d==null?i=o=null:o=l(i=d),u):i},u}class Fk{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 AF(e){return new Fk(e,!0)}function EF(e){return new Fk(e,!1)}const d1={draw(e,t){const n=Tr(t/Mh);e.moveTo(n,0),e.arc(0,0,n,0,Pm)}},CF={draw(e,t){const n=Tr(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()}},Gk=Tr(1/3),_F=Gk*2,TF={draw(e,t){const n=Tr(t/_F),r=n*Gk;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},kF={draw(e,t){const n=Tr(t),r=-n/2;e.rect(r,r,n,n)}},MF=.8908130915292852,Kk=kh(Mh/10)/kh(7*Mh/10),PF=kh(Pm/10)*Kk,$F=-zk(Pm/10)*Kk,RF={draw(e,t){const n=Tr(t*MF),r=PF*n,a=$F*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const l=Pm*i/5,o=zk(l),c=kh(l);e.lineTo(c*n,-o*n),e.lineTo(o*r-c*a,c*r+o*a)}e.closePath()}},sv=Tr(3),DF={draw(e,t){const n=-Tr(t/(sv*3));e.moveTo(0,n*2),e.lineTo(-sv*n,-n),e.lineTo(sv*n,-n),e.closePath()}},Bn=-.5,Un=Tr(3)/2,ax=1/Tr(12),LF=(ax/2+1)*3,zF={draw(e,t){const n=Tr(t/LF),r=n/2,a=n*ax,i=r,l=n*ax+n,o=-i,c=l;e.moveTo(r,a),e.lineTo(i,l),e.lineTo(o,c),e.lineTo(Bn*r-Un*a,Un*r+Bn*a),e.lineTo(Bn*i-Un*l,Un*i+Bn*l),e.lineTo(Bn*o-Un*c,Un*o+Bn*c),e.lineTo(Bn*r+Un*a,Bn*a-Un*r),e.lineTo(Bn*i+Un*l,Bn*l-Un*i),e.lineTo(Bn*o+Un*c,Bn*c-Un*o),e.closePath()}};function IF(e,t){let n=null,r=u1(a);e=typeof e=="function"?e:Fe(e||d1),t=typeof t=="function"?t:Fe(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:Fe(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Fe(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function Ph(){}function $h(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 Yk(e){this._context=e}Yk.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:$h(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:$h(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function BF(e){return new Yk(e)}function Vk(e){this._context=e}Vk.prototype={areaStart:Ph,areaEnd:Ph,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:$h(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function UF(e){return new Vk(e)}function Wk(e){this._context=e}Wk.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:$h(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qF(e){return new Wk(e)}function Xk(e){this._context=e}Xk.prototype={areaStart:Ph,areaEnd:Ph,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 HF(e){return new Xk(e)}function Dw(e){return e<0?-1:1}function Lw(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),l=(n-e._y1)/(a||r<0&&-0),o=(i*a+l*r)/(r+a);return(Dw(i)+Dw(l))*Math.min(Math.abs(i),Math.abs(l),.5*Math.abs(o))||0}function zw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function lv(e,t,n){var r=e._x0,a=e._y0,i=e._x1,l=e._y1,o=(i-r)/3;e._context.bezierCurveTo(r+o,a+o*t,i-o,l-o*n,i,l)}function Rh(e){this._context=e}Rh.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:lv(this,this._t0,zw(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,lv(this,zw(this,n=Lw(this,e,t)),n);break;default:lv(this,this._t0,n=Lw(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Qk(e){this._context=new Zk(e)}(Qk.prototype=Object.create(Rh.prototype)).point=function(e,t){Rh.prototype.point.call(this,t,e)};function Zk(e){this._context=e}Zk.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 FF(e){return new Rh(e)}function GF(e){return new Qk(e)}function Jk(e){this._context=e}Jk.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=Iw(e),a=Iw(t),i=0,l=1;l<n;++i,++l)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[l],t[l]);(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 Iw(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),l=new Array(n);for(a[0]=0,i[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,l[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,l[t]-=r*l[t-1];for(a[n-1]=l[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(l[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 KF(e){return new Jk(e)}function Rm(e,t){this._context=e,this._t=t}Rm.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 YF(e){return new Rm(e,.5)}function VF(e){return new Rm(e,0)}function WF(e){return new Rm(e,1)}function so(e,t){if((l=e.length)>1)for(var n=1,r,a,i=e[t[0]],l,o=i.length;n<l;++n)for(a=i,i=e[t[n]],r=0;r<o;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function ix(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function XF(e,t){return e[t]}function QF(e){const t=[];return t.key=e,t}function ZF(){var e=Fe([]),t=ix,n=so,r=XF;function a(i){var l=Array.from(e.apply(this,arguments),QF),o,c=l.length,u=-1,f;for(const d of i)for(o=0,++u;o<c;++o)(l[o][u]=[0,+r(d,l[o].key,u,i)]).data=d;for(o=0,f=f1(t(l));o<c;++o)l[f[o]].index=o;return n(l,f),l}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:Fe(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:Fe(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?ix:typeof i=="function"?i:Fe(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??so,a):n},a}function JF(e,t){if((r=e.length)>0){for(var n,r,a=0,i=e[0].length,l;a<i;++a){for(l=n=0;n<r;++n)l+=e[n][a][1]||0;if(l)for(n=0;n<r;++n)e[n][a][1]/=l}so(e,t)}}function eG(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,i=r.length;n<i;++n){for(var l=0,o=0;l<a;++l)o+=e[l][n][1]||0;r[n][1]+=r[n][0]=-o/2}so(e,t)}}function tG(e,t){if(!(!((l=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,l;r<i;++r){for(var o=0,c=0,u=0;o<l;++o){for(var f=e[t[o]],d=f[r][1]||0,h=f[r-1][1]||0,m=(d-h)/2,j=0;j<o;++j){var y=e[t[j]],p=y[r][1]||0,v=y[r-1][1]||0;m+=p-v}c+=d,u+=m*d}a[r-1][1]+=a[r-1][0]=n,c&&(n-=u/c)}a[r-1][1]+=a[r-1][0]=n,so(e,t)}}function bu(e){"@babel/helpers - typeof";return bu=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},bu(e)}var nG=["type","size","sizeType"];function sx(){return sx=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},sx.apply(this,arguments)}function Bw(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 Uw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bw(Object(n),!0).forEach(function(r){rG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rG(e,t,n){return t=aG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aG(e){var t=iG(e,"string");return bu(t)=="symbol"?t:t+""}function iG(e,t){if(bu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sG(e,t){if(e==null)return{};var n=lG(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 lG(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 eM={symbolCircle:d1,symbolCross:CF,symbolDiamond:TF,symbolSquare:kF,symbolStar:RF,symbolTriangle:DF,symbolWye:zF},oG=Math.PI/180,cG=function(t){var n="symbol".concat(Mm(t));return eM[n]||d1},uG=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*oG;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}},fG=function(t,n){eM["symbol".concat(Mm(t))]=n},Dm=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,i=a===void 0?64:a,l=t.sizeType,o=l===void 0?"area":l,c=sG(t,nG),u=Uw(Uw({},c),{},{type:r,size:i,sizeType:o}),f=function(){var p=cG(r),v=IF().type(p).size(uG(i,o,r));return v()},d=u.className,h=u.cx,m=u.cy,j=ae(u,!0);return h===+h&&m===+m&&i===+i?T.createElement("path",sx({},j,{className:pe("recharts-symbols",d),transform:"translate(".concat(h,", ").concat(m,")"),d:f()})):null};Dm.registerSymbol=fG;function lo(e){"@babel/helpers - typeof";return lo=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},lo(e)}function lx(){return lx=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},lx.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 dG(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){ju(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 hG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pG(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 mG(e,t,n){return t&&pG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yG(e,t,n){return t=Dh(t),vG(e,tM()?Reflect.construct(t,n||[],Dh(e).constructor):t.apply(e,n))}function vG(e,t){if(t&&(lo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gG(e)}function gG(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 Dh(e){return Dh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dh(e)}function xG(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&&ox(e,t)}function ox(e,t){return ox=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ox(e,t)}function ju(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=bG(e,"string");return lo(t)=="symbol"?t:t+""}function bG(e,t){if(lo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qn=32,h1=function(e){function t(){return hG(this,t),yG(this,t,arguments)}return xG(t,e),mG(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,i=qn/2,l=qn/6,o=qn/3,c=r.inactive?a:r.color;if(r.type==="plainline")return T.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:qn,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return T.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(i,"h").concat(o,`
|
||
A`).concat(l,",").concat(l,",0,1,1,").concat(2*o,",").concat(i,`
|
||
H`).concat(qn,"M").concat(2*o,",").concat(i,`
|
||
A`).concat(l,",").concat(l,",0,1,1,").concat(o,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return T.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(qn/8,"h").concat(qn,"v").concat(qn*3/4,"h").concat(-qn,"z"),className:"recharts-legend-icon"});if(T.isValidElement(r.legendIcon)){var u=dG({},r);return delete u.legendIcon,T.cloneElement(r.legendIcon,u)}return T.createElement(Dm,{fill:c,cx:i,cy:i,size:qn,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,i=a.payload,l=a.iconSize,o=a.layout,c=a.formatter,u=a.inactiveColor,f={x:0,y:0,width:qn,height:qn},d={display:o==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(m,j){var y=m.formatter||c,p=pe(ju(ju({"recharts-legend-item":!0},"legend-item-".concat(j),!0),"inactive",m.inactive));if(m.type==="none")return null;var v=ce(m.value)?null:m.value;Sr(!ce(m.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 g=m.inactive?u:m.color;return T.createElement("li",lx({className:p,style:d,key:"legend-item-".concat(j)},Ti(r.props,m,j)),T.createElement(Zg,{width:l,height:l,viewBox:f,style:h},r.renderIcon(m)),T.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},y?y(v,m,j):v))})}},{key:"render",value:function(){var r=this.props,a=r.payload,i=r.layout,l=r.align;if(!a||!a.length)return null;var o={padding:0,margin:0,textAlign:i==="horizontal"?l:"left"};return T.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}])}(w.PureComponent);ju(h1,"displayName","Legend");ju(h1,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var jG=xm;function SG(){this.__data__=new jG,this.size=0}var wG=SG;function OG(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var NG=OG;function AG(e){return this.__data__.get(e)}var EG=AG;function CG(e){return this.__data__.has(e)}var _G=CG,TG=xm,kG=t1,MG=n1,PG=200;function $G(e,t){var n=this.__data__;if(n instanceof TG){var r=n.__data__;if(!kG||r.length<PG-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new MG(r)}return n.set(e,t),this.size=n.size,this}var RG=$G,DG=xm,LG=wG,zG=NG,IG=EG,BG=_G,UG=RG;function tc(e){var t=this.__data__=new DG(e);this.size=t.size}tc.prototype.clear=LG;tc.prototype.delete=zG;tc.prototype.get=IG;tc.prototype.has=BG;tc.prototype.set=UG;var rM=tc,qG="__lodash_hash_undefined__";function HG(e){return this.__data__.set(e,qG),this}var FG=HG;function GG(e){return this.__data__.has(e)}var KG=GG,YG=n1,VG=FG,WG=KG;function Lh(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new YG;++t<n;)this.add(e[t])}Lh.prototype.add=Lh.prototype.push=VG;Lh.prototype.has=WG;var aM=Lh;function XG(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 iM=XG;function QG(e,t){return e.has(t)}var sM=QG,ZG=aM,JG=iM,eK=sM,tK=1,nK=2;function rK(e,t,n,r,a,i){var l=n&tK,o=e.length,c=t.length;if(o!=c&&!(l&&c>o))return!1;var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var d=-1,h=!0,m=n&nK?new ZG:void 0;for(i.set(e,t),i.set(t,e);++d<o;){var j=e[d],y=t[d];if(r)var p=l?r(y,j,d,t,e,i):r(j,y,d,e,t,i);if(p!==void 0){if(p)continue;h=!1;break}if(m){if(!JG(t,function(v,g){if(!eK(m,g)&&(j===v||a(j,v,n,r,i)))return m.push(g)})){h=!1;break}}else if(!(j===y||a(j,y,n,r,i))){h=!1;break}}return i.delete(e),i.delete(t),h}var lM=rK,aK=Jr,iK=aK.Uint8Array,sK=iK;function lK(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var oK=lK;function cK(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var p1=cK,Hw=Ef,Fw=sK,uK=e1,fK=lM,dK=oK,hK=p1,pK=1,mK=2,yK="[object Boolean]",vK="[object Date]",gK="[object Error]",xK="[object Map]",bK="[object Number]",jK="[object RegExp]",SK="[object Set]",wK="[object String]",OK="[object Symbol]",NK="[object ArrayBuffer]",AK="[object DataView]",Gw=Hw?Hw.prototype:void 0,ov=Gw?Gw.valueOf:void 0;function EK(e,t,n,r,a,i,l){switch(n){case AK:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case NK:return!(e.byteLength!=t.byteLength||!i(new Fw(e),new Fw(t)));case yK:case vK:case bK:return uK(+e,+t);case gK:return e.name==t.name&&e.message==t.message;case jK:case wK:return e==t+"";case xK:var o=dK;case SK:var c=r&pK;if(o||(o=hK),e.size!=t.size&&!c)return!1;var u=l.get(e);if(u)return u==t;r|=mK,l.set(e,t);var f=fK(o(e),o(t),r,a,i,l);return l.delete(e),f;case OK:if(ov)return ov.call(e)==ov.call(t)}return!1}var CK=EK;function _K(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var oM=_K,TK=oM,kK=bn;function MK(e,t,n){var r=t(e);return kK(e)?r:TK(r,n(e))}var PK=MK;function $K(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var l=e[n];t(l,n,e)&&(i[a++]=l)}return i}var RK=$K;function DK(){return[]}var LK=DK,zK=RK,IK=LK,BK=Object.prototype,UK=BK.propertyIsEnumerable,Kw=Object.getOwnPropertySymbols,qK=Kw?function(e){return e==null?[]:(e=Object(e),zK(Kw(e),function(t){return UK.call(e,t)}))}:IK,HK=qK;function FK(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var GK=FK,KK=Ra,YK=Da,VK="[object Arguments]";function WK(e){return YK(e)&&KK(e)==VK}var XK=WK,Yw=XK,QK=Da,cM=Object.prototype,ZK=cM.hasOwnProperty,JK=cM.propertyIsEnumerable,eY=Yw(function(){return arguments}())?Yw:function(e){return QK(e)&&ZK.call(e,"callee")&&!JK.call(e,"callee")},m1=eY,zh={exports:{}};function tY(){return!1}var nY=tY;zh.exports;(function(e,t){var n=Jr,r=nY,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,l=i&&i.exports===a,o=l?n.Buffer:void 0,c=o?o.isBuffer:void 0,u=c||r;e.exports=u})(zh,zh.exports);var uM=zh.exports,rY=9007199254740991,aY=/^(?:0|[1-9]\d*)$/;function iY(e,t){var n=typeof e;return t=t??rY,!!t&&(n=="number"||n!="symbol"&&aY.test(e))&&e>-1&&e%1==0&&e<t}var y1=iY,sY=9007199254740991;function lY(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=sY}var v1=lY,oY=Ra,cY=v1,uY=Da,fY="[object Arguments]",dY="[object Array]",hY="[object Boolean]",pY="[object Date]",mY="[object Error]",yY="[object Function]",vY="[object Map]",gY="[object Number]",xY="[object Object]",bY="[object RegExp]",jY="[object Set]",SY="[object String]",wY="[object WeakMap]",OY="[object ArrayBuffer]",NY="[object DataView]",AY="[object Float32Array]",EY="[object Float64Array]",CY="[object Int8Array]",_Y="[object Int16Array]",TY="[object Int32Array]",kY="[object Uint8Array]",MY="[object Uint8ClampedArray]",PY="[object Uint16Array]",$Y="[object Uint32Array]",Xe={};Xe[AY]=Xe[EY]=Xe[CY]=Xe[_Y]=Xe[TY]=Xe[kY]=Xe[MY]=Xe[PY]=Xe[$Y]=!0;Xe[fY]=Xe[dY]=Xe[OY]=Xe[hY]=Xe[NY]=Xe[pY]=Xe[mY]=Xe[yY]=Xe[vY]=Xe[gY]=Xe[xY]=Xe[bY]=Xe[jY]=Xe[SY]=Xe[wY]=!1;function RY(e){return uY(e)&&cY(e.length)&&!!Xe[oY(e)]}var DY=RY;function LY(e){return function(t){return e(t)}}var fM=LY,Ih={exports:{}};Ih.exports;(function(e,t){var n=gk,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,l=i&&n.process,o=function(){try{var c=a&&a.require&&a.require("util").types;return c||l&&l.binding&&l.binding("util")}catch{}}();e.exports=o})(Ih,Ih.exports);var zY=Ih.exports,IY=DY,BY=fM,Vw=zY,Ww=Vw&&Vw.isTypedArray,UY=Ww?BY(Ww):IY,dM=UY,qY=GK,HY=m1,FY=bn,GY=uM,KY=y1,YY=dM,VY=Object.prototype,WY=VY.hasOwnProperty;function XY(e,t){var n=FY(e),r=!n&&HY(e),a=!n&&!r&&GY(e),i=!n&&!r&&!a&&YY(e),l=n||r||a||i,o=l?qY(e.length,String):[],c=o.length;for(var u in e)(t||WY.call(e,u))&&!(l&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||KY(u,c)))&&o.push(u);return o}var QY=XY,ZY=Object.prototype;function JY(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ZY;return e===n}var eV=JY;function tV(e,t){return function(n){return e(t(n))}}var hM=tV,nV=hM,rV=nV(Object.keys,Object),aV=rV,iV=eV,sV=aV,lV=Object.prototype,oV=lV.hasOwnProperty;function cV(e){if(!iV(e))return sV(e);var t=[];for(var n in Object(e))oV.call(e,n)&&n!="constructor"&&t.push(n);return t}var uV=cV,fV=J0,dV=v1;function hV(e){return e!=null&&dV(e.length)&&!fV(e)}var Cf=hV,pV=QY,mV=uV,yV=Cf;function vV(e){return yV(e)?pV(e):mV(e)}var Lm=vV,gV=PK,xV=HK,bV=Lm;function jV(e){return gV(e,bV,xV)}var SV=jV,Xw=SV,wV=1,OV=Object.prototype,NV=OV.hasOwnProperty;function AV(e,t,n,r,a,i){var l=n&wV,o=Xw(e),c=o.length,u=Xw(t),f=u.length;if(c!=f&&!l)return!1;for(var d=c;d--;){var h=o[d];if(!(l?h in t:NV.call(t,h)))return!1}var m=i.get(e),j=i.get(t);if(m&&j)return m==t&&j==e;var y=!0;i.set(e,t),i.set(t,e);for(var p=l;++d<c;){h=o[d];var v=e[h],g=t[h];if(r)var b=l?r(g,v,h,t,e,i):r(v,g,h,e,t,i);if(!(b===void 0?v===g||a(v,g,n,r,i):b)){y=!1;break}p||(p=h=="constructor")}if(y&&!p){var x=e.constructor,O=t.constructor;x!=O&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof O=="function"&&O instanceof O)&&(y=!1)}return i.delete(e),i.delete(t),y}var EV=AV,CV=qs,_V=Jr,TV=CV(_V,"DataView"),kV=TV,MV=qs,PV=Jr,$V=MV(PV,"Promise"),RV=$V,DV=qs,LV=Jr,zV=DV(LV,"Set"),pM=zV,IV=qs,BV=Jr,UV=IV(BV,"WeakMap"),qV=UV,cx=kV,ux=t1,fx=RV,dx=pM,hx=qV,mM=Ra,nc=bk,Qw="[object Map]",HV="[object Object]",Zw="[object Promise]",Jw="[object Set]",e2="[object WeakMap]",t2="[object DataView]",FV=nc(cx),GV=nc(ux),KV=nc(fx),YV=nc(dx),VV=nc(hx),Ji=mM;(cx&&Ji(new cx(new ArrayBuffer(1)))!=t2||ux&&Ji(new ux)!=Qw||fx&&Ji(fx.resolve())!=Zw||dx&&Ji(new dx)!=Jw||hx&&Ji(new hx)!=e2)&&(Ji=function(e){var t=mM(e),n=t==HV?e.constructor:void 0,r=n?nc(n):"";if(r)switch(r){case FV:return t2;case GV:return Qw;case KV:return Zw;case YV:return Jw;case VV:return e2}return t});var WV=Ji,cv=rM,XV=lM,QV=CK,ZV=EV,n2=WV,r2=bn,a2=uM,JV=dM,eW=1,i2="[object Arguments]",s2="[object Array]",id="[object Object]",tW=Object.prototype,l2=tW.hasOwnProperty;function nW(e,t,n,r,a,i){var l=r2(e),o=r2(t),c=l?s2:n2(e),u=o?s2:n2(t);c=c==i2?id:c,u=u==i2?id:u;var f=c==id,d=u==id,h=c==u;if(h&&a2(e)){if(!a2(t))return!1;l=!0,f=!1}if(h&&!f)return i||(i=new cv),l||JV(e)?XV(e,t,n,r,a,i):QV(e,t,c,n,r,a,i);if(!(n&eW)){var m=f&&l2.call(e,"__wrapped__"),j=d&&l2.call(t,"__wrapped__");if(m||j){var y=m?e.value():e,p=j?t.value():t;return i||(i=new cv),a(y,p,n,r,i)}}return h?(i||(i=new cv),ZV(e,t,n,r,a,i)):!1}var rW=nW,aW=rW,o2=Da;function yM(e,t,n,r,a){return e===t?!0:e==null||t==null||!o2(e)&&!o2(t)?e!==e&&t!==t:aW(e,t,n,r,yM,a)}var g1=yM,iW=rM,sW=g1,lW=1,oW=2;function cW(e,t,n,r){var a=n.length,i=a,l=!r;if(e==null)return!i;for(e=Object(e);a--;){var o=n[a];if(l&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<i;){o=n[a];var c=o[0],u=e[c],f=o[1];if(l&&o[2]){if(u===void 0&&!(c in e))return!1}else{var d=new iW;if(r)var h=r(u,f,c,e,t,d);if(!(h===void 0?sW(f,u,lW|oW,r,d):h))return!1}}return!0}var uW=cW,fW=Ri;function dW(e){return e===e&&!fW(e)}var vM=dW,hW=vM,pW=Lm;function mW(e){for(var t=pW(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,hW(a)]}return t}var yW=mW;function vW(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var gM=vW,gW=uW,xW=yW,bW=gM;function jW(e){var t=xW(e);return t.length==1&&t[0][2]?bW(t[0][0],t[0][1]):function(n){return n===e||gW(n,e,t)}}var SW=jW;function wW(e,t){return e!=null&&t in Object(e)}var OW=wW,NW=Nk,AW=m1,EW=bn,CW=y1,_W=v1,TW=jm;function kW(e,t,n){t=NW(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var l=TW(t[r]);if(!(i=e!=null&&n(e,l)))break;e=e[l]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&_W(a)&&CW(l,a)&&(EW(e)||AW(e)))}var MW=kW,PW=OW,$W=MW;function RW(e,t){return e!=null&&$W(e,t,PW)}var DW=RW,LW=g1,zW=Ak,IW=DW,BW=Z0,UW=vM,qW=gM,HW=jm,FW=1,GW=2;function KW(e,t){return BW(e)&&UW(t)?qW(HW(e),t):function(n){var r=zW(n,e);return r===void 0&&r===t?IW(n,e):LW(t,r,FW|GW)}}var YW=KW;function VW(e){return e}var rc=VW;function WW(e){return function(t){return t==null?void 0:t[e]}}var XW=WW,QW=i1;function ZW(e){return function(t){return QW(t,e)}}var JW=ZW,eX=XW,tX=JW,nX=Z0,rX=jm;function aX(e){return nX(e)?eX(rX(e)):tX(e)}var iX=aX,sX=SW,lX=YW,oX=rc,cX=bn,uX=iX;function fX(e){return typeof e=="function"?e:e==null?oX:typeof e=="object"?cX(e)?lX(e[0],e[1]):sX(e):uX(e)}var ea=fX;function dX(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 xM=dX;function hX(e){return e!==e}var pX=hX;function mX(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var yX=mX,vX=xM,gX=pX,xX=yX;function bX(e,t,n){return t===t?xX(e,t,n):vX(e,gX,n)}var jX=bX,SX=jX;function wX(e,t){var n=e==null?0:e.length;return!!n&&SX(e,t,0)>-1}var OX=wX;function NX(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 AX=NX;function EX(){}var CX=EX,uv=pM,_X=CX,TX=p1,kX=1/0,MX=uv&&1/TX(new uv([,-0]))[1]==kX?function(e){return new uv(e)}:_X,PX=MX,$X=aM,RX=OX,DX=AX,LX=sM,zX=PX,IX=p1,BX=200;function UX(e,t,n){var r=-1,a=RX,i=e.length,l=!0,o=[],c=o;if(n)l=!1,a=DX;else if(i>=BX){var u=t?null:zX(e);if(u)return IX(u);l=!1,a=LX,c=new $X}else c=t?[]:o;e:for(;++r<i;){var f=e[r],d=t?t(f):f;if(f=n||f!==0?f:0,l&&d===d){for(var h=c.length;h--;)if(c[h]===d)continue e;t&&c.push(d),o.push(f)}else a(c,d,n)||(c!==o&&c.push(d),o.push(f))}return o}var qX=UX,HX=ea,FX=qX;function GX(e,t){return e&&e.length?FX(e,HX(t)):[]}var KX=GX;const c2=Me(KX);function bM(e,t,n){return t===!0?c2(e,n):ce(t)?c2(e,t):e}function oo(e){"@babel/helpers - typeof";return oo=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},oo(e)}var YX=["ref"];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 sa(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){zm(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 VX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SM(r.key),r)}}function WX(e,t,n){return t&&f2(e.prototype,t),n&&f2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function XX(e,t,n){return t=Bh(t),QX(e,jM()?Reflect.construct(t,n||[],Bh(e).constructor):t.apply(e,n))}function QX(e,t){if(t&&(oo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZX(e)}function ZX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jM=function(){return!!e})()}function Bh(e){return Bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bh(e)}function JX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&px(e,t)}function px(e,t){return px=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},px(e,t)}function zm(e,t,n){return t=SM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SM(e){var t=eQ(e,"string");return oo(t)=="symbol"?t:t+""}function eQ(e,t){if(oo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function tQ(e,t){if(e==null)return{};var n=nQ(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 nQ(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 rQ(e){return e.value}function aQ(e,t){if(T.isValidElement(e))return T.cloneElement(e,t);if(typeof e=="function")return T.createElement(e,t);t.ref;var n=tQ(t,YX);return T.createElement(h1,n)}var d2=1,er=function(e){function t(){var n;VX(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=XX(this,t,[].concat(a)),zm(n,"lastBoundingBox",{width:-1,height:-1}),n}return JX(t,e),WX(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)>d2||Math.abs(a.height-this.lastBoundingBox.height)>d2)&&(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?sa({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,i=a.layout,l=a.align,o=a.verticalAlign,c=a.margin,u=a.chartWidth,f=a.chartHeight,d,h;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(l==="center"&&i==="vertical"){var m=this.getBBoxSnapshot();d={left:((u||0)-m.width)/2}}else d=l==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(o==="middle"){var j=this.getBBoxSnapshot();h={top:((f||0)-j.height)/2}}else h=o==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return sa(sa({},d),h)}},{key:"render",value:function(){var r=this,a=this.props,i=a.content,l=a.width,o=a.height,c=a.wrapperStyle,u=a.payloadUniqBy,f=a.payload,d=sa(sa({position:"absolute",width:l||"auto",height:o||"auto"},this.getDefaultPosition(c)),c);return T.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(m){r.wrapperNode=m}},aQ(i,sa(sa({},this.props),{},{payload:bM(f,u,rQ)})))}}],[{key:"getWithHeight",value:function(r,a){var i=sa(sa({},this.defaultProps),r.props),l=i.layout;return l==="vertical"&&W(r.props.height)?{height:r.props.height}:l==="horizontal"?{width:r.props.width||a}:null}}])}(w.PureComponent);zm(er,"displayName","Legend");zm(er,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var h2=Ef,iQ=m1,sQ=bn,p2=h2?h2.isConcatSpreadable:void 0;function lQ(e){return sQ(e)||iQ(e)||!!(p2&&e&&e[p2])}var oQ=lQ,cQ=oM,uQ=oQ;function wM(e,t,n,r,a){var i=-1,l=e.length;for(n||(n=uQ),a||(a=[]);++i<l;){var o=e[i];t>0&&n(o)?t>1?wM(o,t-1,n,r,a):cQ(a,o):r||(a[a.length]=o)}return a}var OM=wM;function fQ(e){return function(t,n,r){for(var a=-1,i=Object(t),l=r(t),o=l.length;o--;){var c=l[e?o:++a];if(n(i[c],c,i)===!1)break}return t}}var dQ=fQ,hQ=dQ,pQ=hQ(),mQ=pQ,yQ=mQ,vQ=Lm;function gQ(e,t){return e&&yQ(e,t,vQ)}var NM=gQ,xQ=Cf;function bQ(e,t){return function(n,r){if(n==null)return n;if(!xQ(n))return e(n,r);for(var a=n.length,i=t?a:-1,l=Object(n);(t?i--:++i<a)&&r(l[i],i,l)!==!1;);return n}}var jQ=bQ,SQ=NM,wQ=jQ,OQ=wQ(SQ),x1=OQ,NQ=x1,AQ=Cf;function EQ(e,t){var n=-1,r=AQ(e)?Array(e.length):[];return NQ(e,function(a,i,l){r[++n]=t(a,i,l)}),r}var AM=EQ;function CQ(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var _Q=CQ,m2=Wo;function TQ(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=m2(e),l=t!==void 0,o=t===null,c=t===t,u=m2(t);if(!o&&!u&&!i&&e>t||i&&l&&c&&!o&&!u||r&&l&&c||!n&&c||!a)return 1;if(!r&&!i&&!u&&e<t||u&&n&&a&&!r&&!i||o&&n&&a||!l&&a||!c)return-1}return 0}var kQ=TQ,MQ=kQ;function PQ(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,l=a.length,o=n.length;++r<l;){var c=MQ(a[r],i[r]);if(c){if(r>=o)return c;var u=n[r];return c*(u=="desc"?-1:1)}}return e.index-t.index}var $Q=PQ,fv=a1,RQ=i1,DQ=ea,LQ=AM,zQ=_Q,IQ=fM,BQ=$Q,UQ=rc,qQ=bn;function HQ(e,t,n){t.length?t=fv(t,function(i){return qQ(i)?function(l){return RQ(l,i.length===1?i[0]:i)}:i}):t=[UQ];var r=-1;t=fv(t,IQ(DQ));var a=LQ(e,function(i,l,o){var c=fv(t,function(u){return u(i)});return{criteria:c,index:++r,value:i}});return zQ(a,function(i,l){return BQ(i,l,n)})}var FQ=HQ;function GQ(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 KQ=GQ,YQ=KQ,y2=Math.max;function VQ(e,t,n){return t=y2(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=y2(r.length-t,0),l=Array(i);++a<i;)l[a]=r[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=r[a];return o[t]=n(l),YQ(e,this,o)}}var WQ=VQ;function XQ(e){return function(){return e}}var QQ=XQ,ZQ=qs,JQ=function(){try{var e=ZQ(Object,"defineProperty");return e({},"",{}),e}catch{}}(),EM=JQ,eZ=QQ,v2=EM,tZ=rc,nZ=v2?function(e,t){return v2(e,"toString",{configurable:!0,enumerable:!1,value:eZ(t),writable:!0})}:tZ,rZ=nZ,aZ=800,iZ=16,sZ=Date.now;function lZ(e){var t=0,n=0;return function(){var r=sZ(),a=iZ-(r-n);if(n=r,a>0){if(++t>=aZ)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var oZ=lZ,cZ=rZ,uZ=oZ,fZ=uZ(cZ),dZ=fZ,hZ=rc,pZ=WQ,mZ=dZ;function yZ(e,t){return mZ(pZ(e,t,hZ),e+"")}var vZ=yZ,gZ=e1,xZ=Cf,bZ=y1,jZ=Ri;function SZ(e,t,n){if(!jZ(n))return!1;var r=typeof t;return(r=="number"?xZ(n)&&bZ(t,n.length):r=="string"&&t in n)?gZ(n[t],e):!1}var Im=SZ,wZ=OM,OZ=FQ,NZ=vZ,g2=Im,AZ=NZ(function(e,t){if(e==null)return[];var n=t.length;return n>1&&g2(e,t[0],t[1])?t=[]:n>2&&g2(t[0],t[1],t[2])&&(t=[t[0]]),OZ(e,wZ(t,1),[])}),EZ=AZ;const b1=Me(EZ);function Su(e){"@babel/helpers - typeof";return Su=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},Su(e)}function mx(){return mx=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},mx.apply(this,arguments)}function CZ(e,t){return MZ(e)||kZ(e,t)||TZ(e,t)||_Z()}function _Z(){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 TZ(e,t){if(e){if(typeof e=="string")return x2(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 x2(e,t)}}function x2(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 kZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function MZ(e){if(Array.isArray(e))return e}function b2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function dv(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){PZ(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 PZ(e,t,n){return t=$Z(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Z(e){var t=RZ(e,"string");return Su(t)=="symbol"?t:t+""}function RZ(e,t){if(Su(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Su(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DZ(e){return Array.isArray(e)&&_t(e[0])&&_t(e[1])?e.join(" ~ "):e}var LZ=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,i=a===void 0?{}:a,l=t.itemStyle,o=l===void 0?{}:l,c=t.labelStyle,u=c===void 0?{}:c,f=t.payload,d=t.formatter,h=t.itemSorter,m=t.wrapperClassName,j=t.labelClassName,y=t.label,p=t.labelFormatter,v=t.accessibilityLayer,g=v===void 0?!1:v,b=function(){if(f&&f.length){var M={padding:0,margin:0},B=(h?b1(f,h):f).map(function(_,E){if(_.type==="none")return null;var P=dv({display:"block",paddingTop:4,paddingBottom:4,color:_.color||"#000"},o),I=_.formatter||d||DZ,z=_.value,G=_.name,V=z,Z=G;if(I&&V!=null&&Z!=null){var X=I(z,G,_,E,f);if(Array.isArray(X)){var ee=CZ(X,2);V=ee[0],Z=ee[1]}else V=X}return T.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(E),style:P},_t(Z)?T.createElement("span",{className:"recharts-tooltip-item-name"},Z):null,_t(Z)?T.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,T.createElement("span",{className:"recharts-tooltip-item-value"},V),T.createElement("span",{className:"recharts-tooltip-item-unit"},_.unit||""))});return T.createElement("ul",{className:"recharts-tooltip-item-list",style:M},B)}return null},x=dv({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),O=dv({margin:0},u),S=!le(y),N=S?y:"",A=pe("recharts-default-tooltip",m),C=pe("recharts-tooltip-label",j);S&&p&&f!==void 0&&f!==null&&(N=p(y,f));var k=g?{role:"status","aria-live":"assertive"}:{};return T.createElement("div",mx({className:A,style:x},k),T.createElement("p",{className:C,style:O},T.isValidElement(N)?N:"".concat(N)),b())};function wu(e){"@babel/helpers - typeof";return wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wu(e)}function sd(e,t,n){return t=zZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zZ(e){var t=IZ(e,"string");return wu(t)=="symbol"?t:t+""}function IZ(e,t){if(wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xc="recharts-tooltip-wrapper",BZ={visibility:"hidden"};function UZ(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return pe(xc,sd(sd(sd(sd({},"".concat(xc,"-right"),W(n)&&t&&W(t.x)&&n>=t.x),"".concat(xc,"-left"),W(n)&&t&&W(t.x)&&n<t.x),"".concat(xc,"-bottom"),W(r)&&t&&W(t.y)&&r>=t.y),"".concat(xc,"-top"),W(r)&&t&&W(t.y)&&r<t.y))}function j2(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,i=e.position,l=e.reverseDirection,o=e.tooltipDimension,c=e.viewBox,u=e.viewBoxDimension;if(i&&W(i[r]))return i[r];var f=n[r]-o-a,d=n[r]+a;if(t[r])return l[r]?f:d;if(l[r]){var h=f,m=c[r];return h<m?Math.max(d,c[r]):Math.max(f,c[r])}var j=d+o,y=c[r]+u;return j>y?Math.max(f,c[r]):Math.max(d,c[r])}function qZ(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 HZ(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,i=e.reverseDirection,l=e.tooltipBox,o=e.useTranslate3d,c=e.viewBox,u,f,d;return l.height>0&&l.width>0&&n?(f=j2({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:l.width,viewBox:c,viewBoxDimension:c.width}),d=j2({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:l.height,viewBox:c,viewBoxDimension:c.height}),u=qZ({translateX:f,translateY:d,useTranslate3d:o})):u=BZ,{cssProperties:u,cssClasses:UZ({translateX:f,translateY:d,coordinate:n})}}function co(e){"@babel/helpers - typeof";return co=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},co(e)}function S2(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 w2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S2(Object(n),!0).forEach(function(r){vx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GZ(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,_M(r.key),r)}}function KZ(e,t,n){return t&&GZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YZ(e,t,n){return t=Uh(t),VZ(e,CM()?Reflect.construct(t,n||[],Uh(e).constructor):t.apply(e,n))}function VZ(e,t){if(t&&(co(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WZ(e)}function WZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CM=function(){return!!e})()}function Uh(e){return Uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uh(e)}function XZ(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&&yx(e,t)}function yx(e,t){return yx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},yx(e,t)}function vx(e,t,n){return t=_M(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _M(e){var t=QZ(e,"string");return co(t)=="symbol"?t:t+""}function QZ(e,t){if(co(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(co(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var O2=1,ZZ=function(e){function t(){var n;FZ(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=YZ(this,t,[].concat(a)),vx(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),vx(n,"handleKeyDown",function(l){if(l.key==="Escape"){var o,c,u,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(o=(c=n.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&o!==void 0?o:0,y:(u=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),n}return XZ(t,e),KZ(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>O2||Math.abs(r.height-this.state.lastBoundingBox.height)>O2)&&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,l=a.allowEscapeViewBox,o=a.animationDuration,c=a.animationEasing,u=a.children,f=a.coordinate,d=a.hasPayload,h=a.isAnimationActive,m=a.offset,j=a.position,y=a.reverseDirection,p=a.useTranslate3d,v=a.viewBox,g=a.wrapperStyle,b=HZ({allowEscapeViewBox:l,coordinate:f,offsetTopLeft:m,position:j,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:v}),x=b.cssClasses,O=b.cssProperties,S=w2(w2({transition:h&&i?"transform ".concat(o,"ms ").concat(c):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&d?"visible":"hidden",position:"absolute",top:0,left:0},g);return T.createElement("div",{tabIndex:-1,className:x,style:S,ref:function(A){r.wrapperNode=A}},u)}}])}(w.PureComponent),JZ=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},La={isSsr:JZ()};function uo(e){"@babel/helpers - typeof";return uo=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},uo(e)}function N2(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 A2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N2(Object(n),!0).forEach(function(r){j1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tJ(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,kM(r.key),r)}}function nJ(e,t,n){return t&&tJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rJ(e,t,n){return t=qh(t),aJ(e,TM()?Reflect.construct(t,n||[],qh(e).constructor):t.apply(e,n))}function aJ(e,t){if(t&&(uo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iJ(e)}function iJ(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 qh(e){return qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qh(e)}function sJ(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&&gx(e,t)}function gx(e,t){return gx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},gx(e,t)}function j1(e,t,n){return t=kM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kM(e){var t=lJ(e,"string");return uo(t)=="symbol"?t:t+""}function lJ(e,t){if(uo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function oJ(e){return e.dataKey}function cJ(e,t){return T.isValidElement(e)?T.cloneElement(e,t):typeof e=="function"?T.createElement(e,t):T.createElement(LZ,t)}var en=function(e){function t(){return eJ(this,t),rJ(this,t,arguments)}return sJ(t,e),nJ(t,[{key:"render",value:function(){var r=this,a=this.props,i=a.active,l=a.allowEscapeViewBox,o=a.animationDuration,c=a.animationEasing,u=a.content,f=a.coordinate,d=a.filterNull,h=a.isAnimationActive,m=a.offset,j=a.payload,y=a.payloadUniqBy,p=a.position,v=a.reverseDirection,g=a.useTranslate3d,b=a.viewBox,x=a.wrapperStyle,O=j??[];d&&O.length&&(O=bM(j.filter(function(N){return N.value!=null&&(N.hide!==!0||r.props.includeHidden)}),y,oJ));var S=O.length>0;return T.createElement(ZZ,{allowEscapeViewBox:l,animationDuration:o,animationEasing:c,isAnimationActive:h,active:i,coordinate:f,hasPayload:S,offset:m,position:p,reverseDirection:v,useTranslate3d:g,viewBox:b,wrapperStyle:x},cJ(u,A2(A2({},this.props),{},{payload:O})))}}])}(w.PureComponent);j1(en,"displayName","Tooltip");j1(en,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!La.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 uJ=Jr,fJ=function(){return uJ.Date.now()},dJ=fJ,hJ=/\s/;function pJ(e){for(var t=e.length;t--&&hJ.test(e.charAt(t)););return t}var mJ=pJ,yJ=mJ,vJ=/^\s+/;function gJ(e){return e&&e.slice(0,yJ(e)+1).replace(vJ,"")}var xJ=gJ,bJ=xJ,E2=Ri,jJ=Wo,C2=NaN,SJ=/^[-+]0x[0-9a-f]+$/i,wJ=/^0b[01]+$/i,OJ=/^0o[0-7]+$/i,NJ=parseInt;function AJ(e){if(typeof e=="number")return e;if(jJ(e))return C2;if(E2(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=E2(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=bJ(e);var n=wJ.test(e);return n||OJ.test(e)?NJ(e.slice(2),n?2:8):SJ.test(e)?C2:+e}var MM=AJ,EJ=Ri,hv=dJ,_2=MM,CJ="Expected a function",_J=Math.max,TJ=Math.min;function kJ(e,t,n){var r,a,i,l,o,c,u=0,f=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(CJ);t=_2(t)||0,EJ(n)&&(f=!!n.leading,d="maxWait"in n,i=d?_J(_2(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function m(S){var N=r,A=a;return r=a=void 0,u=S,l=e.apply(A,N),l}function j(S){return u=S,o=setTimeout(v,t),f?m(S):l}function y(S){var N=S-c,A=S-u,C=t-N;return d?TJ(C,i-A):C}function p(S){var N=S-c,A=S-u;return c===void 0||N>=t||N<0||d&&A>=i}function v(){var S=hv();if(p(S))return g(S);o=setTimeout(v,y(S))}function g(S){return o=void 0,h&&r?m(S):(r=a=void 0,l)}function b(){o!==void 0&&clearTimeout(o),u=0,r=c=a=o=void 0}function x(){return o===void 0?l:g(hv())}function O(){var S=hv(),N=p(S);if(r=arguments,a=this,c=S,N){if(o===void 0)return j(c);if(d)return clearTimeout(o),o=setTimeout(v,t),m(c)}return o===void 0&&(o=setTimeout(v,t)),l}return O.cancel=b,O.flush=x,O}var MJ=kJ,PJ=MJ,$J=Ri,RJ="Expected a function";function DJ(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(RJ);return $J(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),PJ(e,t,{leading:r,maxWait:t,trailing:a})}var LJ=DJ;const PM=Me(LJ);function Ou(e){"@babel/helpers - typeof";return Ou=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},Ou(e)}function T2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ld(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T2(Object(n),!0).forEach(function(r){zJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zJ(e,t,n){return t=IJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IJ(e){var t=BJ(e,"string");return Ou(t)=="symbol"?t:t+""}function BJ(e,t){if(Ou(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ou(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UJ(e,t){return GJ(e)||FJ(e,t)||HJ(e,t)||qJ()}function qJ(){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 HJ(e,t){if(e){if(typeof e=="string")return k2(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 k2(e,t)}}function k2(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 FJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function GJ(e){if(Array.isArray(e))return e}var xl=w.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,a=r===void 0?{width:-1,height:-1}:r,i=e.width,l=i===void 0?"100%":i,o=e.height,c=o===void 0?"100%":o,u=e.minWidth,f=u===void 0?0:u,d=e.minHeight,h=e.maxHeight,m=e.children,j=e.debounce,y=j===void 0?0:j,p=e.id,v=e.className,g=e.onResize,b=e.style,x=b===void 0?{}:b,O=w.useRef(null),S=w.useRef();S.current=g,w.useImperativeHandle(t,function(){return Object.defineProperty(O.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),O.current},configurable:!0})});var N=w.useState({containerWidth:a.width,containerHeight:a.height}),A=UJ(N,2),C=A[0],k=A[1],R=w.useCallback(function(B,_){k(function(E){var P=Math.round(B),I=Math.round(_);return E.containerWidth===P&&E.containerHeight===I?E:{containerWidth:P,containerHeight:I}})},[]);w.useEffect(function(){var B=function(G){var V,Z=G[0].contentRect,X=Z.width,ee=Z.height;R(X,ee),(V=S.current)===null||V===void 0||V.call(S,X,ee)};y>0&&(B=PM(B,y,{trailing:!0,leading:!1}));var _=new ResizeObserver(B),E=O.current.getBoundingClientRect(),P=E.width,I=E.height;return R(P,I),_.observe(O.current),function(){_.disconnect()}},[R,y]);var M=w.useMemo(function(){var B=C.containerWidth,_=C.containerHeight;if(B<0||_<0)return null;Sr(rs(l)||rs(c),`The width(%s) and height(%s) are both fixed numbers,
|
||
maybe you don't need to use a ResponsiveContainer.`,l,c),Sr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var E=rs(l)?B:l,P=rs(c)?_:c;n&&n>0&&(E?P=E/n:P&&(E=P*n),h&&P>h&&(P=h)),Sr(E>0||P>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.`,E,P,l,c,f,d,n);var I=!Array.isArray(m)&&wa(m.type).endsWith("Chart");return T.Children.map(m,function(z){return T.isValidElement(z)?w.cloneElement(z,ld({width:E,height:P},I?{style:ld({height:"100%",width:"100%",maxHeight:P,maxWidth:E},z.props.style)}:{})):z})},[n,m,c,h,d,f,C,l]);return T.createElement("div",{id:p?"".concat(p):void 0,className:pe("recharts-responsive-container",v),style:ld(ld({},x),{},{width:l,height:c,minWidth:f,minHeight:d,maxHeight:h}),ref:O},M)}),_f=function(t){return null};_f.displayName="Cell";function Nu(e){"@babel/helpers - typeof";return Nu=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},Nu(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 xx(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){KJ(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 KJ(e,t,n){return t=YJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YJ(e){var t=VJ(e,"string");return Nu(t)=="symbol"?t:t+""}function VJ(e,t){if(Nu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zs={widthCache:{},cacheCount:0},WJ=2e3,XJ={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},P2="recharts_measurement_span";function QJ(e){var t=xx({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Vc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||La.isSsr)return{width:0,height:0};var r=QJ(n),a=JSON.stringify({text:t,copyStyle:r});if(Zs.widthCache[a])return Zs.widthCache[a];try{var i=document.getElementById(P2);i||(i=document.createElement("span"),i.setAttribute("id",P2),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var l=xx(xx({},XJ),r);Object.assign(i.style,l),i.textContent="".concat(t);var o=i.getBoundingClientRect(),c={width:o.width,height:o.height};return Zs.widthCache[a]=c,++Zs.cacheCount>WJ&&(Zs.cacheCount=0,Zs.widthCache={}),c}catch{return{width:0,height:0}}},ZJ=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Au(e){"@babel/helpers - typeof";return Au=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},Au(e)}function Hh(e,t){return nee(e)||tee(e,t)||eee(e,t)||JJ()}function JJ(){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 eee(e,t){if(e){if(typeof e=="string")return $2(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 $2(e,t)}}function $2(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 tee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function nee(e){if(Array.isArray(e))return e}function ree(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R2(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,iee(r.key),r)}}function aee(e,t,n){return t&&R2(e.prototype,t),n&&R2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function iee(e){var t=see(e,"string");return Au(t)=="symbol"?t:t+""}function see(e,t){if(Au(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Au(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var D2=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,L2=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,lee=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,oee=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,$M={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},cee=Object.keys($M),bl="NaN";function uee(e,t){return e*$M[t]}var od=function(){function e(t,n){ree(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!lee.test(n)&&(this.num=NaN,this.unit=""),cee.includes(n)&&(this.num=uee(t,n),this.unit="px")}return aee(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=oee.exec(n))!==null&&r!==void 0?r:[],i=Hh(a,3),l=i[1],o=i[2];return new e(parseFloat(l),o??"")}}])}();function RM(e){if(e.includes(bl))return bl;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=D2.exec(t))!==null&&n!==void 0?n:[],a=Hh(r,4),i=a[1],l=a[2],o=a[3],c=od.parse(i??""),u=od.parse(o??""),f=l==="*"?c.multiply(u):c.divide(u);if(f.isNaN())return bl;t=t.replace(D2,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,h=(d=L2.exec(t))!==null&&d!==void 0?d:[],m=Hh(h,4),j=m[1],y=m[2],p=m[3],v=od.parse(j??""),g=od.parse(p??""),b=y==="+"?v.add(g):v.subtract(g);if(b.isNaN())return bl;t=t.replace(L2,b.toString())}return t}var z2=/\(([^()]*)\)/;function fee(e){for(var t=e;t.includes("(");){var n=z2.exec(t),r=Hh(n,2),a=r[1];t=t.replace(z2,RM(a))}return t}function dee(e){var t=e.replace(/\s+/g,"");return t=fee(t),t=RM(t),t}function hee(e){try{return dee(e)}catch{return bl}}function pv(e){var t=hee(e.slice(5,-1));return t===bl?"":t}var pee=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],mee=["dx","dy","angle","className","breakAll"];function bx(){return bx=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},bx.apply(this,arguments)}function I2(e,t){if(e==null)return{};var n=yee(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 yee(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 B2(e,t){return bee(e)||xee(e,t)||gee(e,t)||vee()}function vee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gee(e,t){if(e){if(typeof e=="string")return U2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U2(e,t)}}function U2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function bee(e){if(Array.isArray(e))return e}var DM=/[ \f\n\r\t\v\u2028\u2029]+/,LM=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var i=[];le(n)||(r?i=n.toString().split(""):i=n.toString().split(DM));var l=i.map(function(c){return{word:c,width:Vc(c,a).width}}),o=r?0:Vc(" ",a).width;return{wordsWithComputedWidth:l,spaceWidth:o}}catch{return null}},jee=function(t,n,r,a,i){var l=t.maxLines,o=t.children,c=t.style,u=t.breakAll,f=W(l),d=o,h=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return E.reduce(function(P,I){var z=I.word,G=I.width,V=P[P.length-1];if(V&&(a==null||i||V.width+G+r<Number(a)))V.words.push(z),V.width+=G+r;else{var Z={words:[z],width:G};P.push(Z)}return P},[])},m=h(n),j=function(E){return E.reduce(function(P,I){return P.width>I.width?P:I})};if(!f)return m;for(var y="…",p=function(E){var P=d.slice(0,E),I=LM({breakAll:u,style:c,children:P+y}).wordsWithComputedWidth,z=h(I),G=z.length>l||j(z).width>Number(a);return[G,z]},v=0,g=d.length-1,b=0,x;v<=g&&b<=d.length-1;){var O=Math.floor((v+g)/2),S=O-1,N=p(S),A=B2(N,2),C=A[0],k=A[1],R=p(O),M=B2(R,1),B=M[0];if(!C&&!B&&(v=O+1),C&&B&&(g=O-1),!C&&B){x=k;break}b++}return x||m},q2=function(t){var n=le(t)?[]:t.toString().split(DM);return[{words:n}]},See=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,l=t.breakAll,o=t.maxLines;if((n||r)&&!La.isSsr){var c,u,f=LM({breakAll:l,children:a,style:i});if(f){var d=f.wordsWithComputedWidth,h=f.spaceWidth;c=d,u=h}else return q2(a);return jee({breakAll:l,children:a,maxLines:o,style:i},c,u,n,r)}return q2(a)},H2="#808080",Ps=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,l=t.lineHeight,o=l===void 0?"1em":l,c=t.capHeight,u=c===void 0?"0.71em":c,f=t.scaleToFit,d=f===void 0?!1:f,h=t.textAnchor,m=h===void 0?"start":h,j=t.verticalAnchor,y=j===void 0?"end":j,p=t.fill,v=p===void 0?H2:p,g=I2(t,pee),b=w.useMemo(function(){return See({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:d,style:g.style,width:g.width})},[g.breakAll,g.children,g.maxLines,d,g.style,g.width]),x=g.dx,O=g.dy,S=g.angle,N=g.className,A=g.breakAll,C=I2(g,mee);if(!_t(r)||!_t(i))return null;var k=r+(W(x)?x:0),R=i+(W(O)?O:0),M;switch(y){case"start":M=pv("calc(".concat(u,")"));break;case"middle":M=pv("calc(".concat((b.length-1)/2," * -").concat(o," + (").concat(u," / 2))"));break;default:M=pv("calc(".concat(b.length-1," * -").concat(o,")"));break}var B=[];if(d){var _=b[0].width,E=g.width;B.push("scale(".concat((W(E)?E/_:1)/_,")"))}return S&&B.push("rotate(".concat(S,", ").concat(k,", ").concat(R,")")),B.length&&(C.transform=B.join(" ")),T.createElement("text",bx({},ae(C,!0),{x:k,y:R,className:pe("recharts-text",N),textAnchor:m,fill:v.includes("url")?H2:v}),b.map(function(P,I){var z=P.words.join(A?"":" ");return T.createElement("tspan",{x:k,dy:I===0?M:o,key:"".concat(z,"-").concat(I)},z)}))};function wi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function wee(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function S1(e){let t,n,r;e.length!==2?(t=wi,n=(o,c)=>wi(e(o),c),r=(o,c)=>e(o)-c):(t=e===wi||e===wee?e:Oee,n=e,r=e);function a(o,c,u=0,f=o.length){if(u<f){if(t(c,c)!==0)return f;do{const d=u+f>>>1;n(o[d],c)<0?u=d+1:f=d}while(u<f)}return u}function i(o,c,u=0,f=o.length){if(u<f){if(t(c,c)!==0)return f;do{const d=u+f>>>1;n(o[d],c)<=0?u=d+1:f=d}while(u<f)}return u}function l(o,c,u=0,f=o.length){const d=a(o,c,u,f-1);return d>u&&r(o[d-1],c)>-r(o[d],c)?d-1:d}return{left:a,center:l,right:i}}function Oee(){return 0}function zM(e){return e===null?NaN:+e}function*Nee(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Aee=S1(wi),Tf=Aee.right;S1(zM).center;class F2 extends Map{constructor(t,n=_ee){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(G2(this,t))}has(t){return super.has(G2(this,t))}set(t,n){return super.set(Eee(this,t),n)}delete(t){return super.delete(Cee(this,t))}}function G2({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Eee({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Cee({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function _ee(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Tee(e=wi){if(e===wi)return IM;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 IM(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const kee=Math.sqrt(50),Mee=Math.sqrt(10),Pee=Math.sqrt(2);function Fh(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),l=i>=kee?10:i>=Mee?5:i>=Pee?2:1;let o,c,u;return a<0?(u=Math.pow(10,-a)/l,o=Math.round(e*u),c=Math.round(t*u),o/u<e&&++o,c/u>t&&--c,u=-u):(u=Math.pow(10,a)*l,o=Math.round(e/u),c=Math.round(t/u),o*u<e&&++o,c*u>t&&--c),c<o&&.5<=n&&n<2?Fh(e,t,n*2):[o,c,u]}function jx(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,l]=r?Fh(t,e,n):Fh(e,t,n);if(!(i>=a))return[];const o=i-a+1,c=new Array(o);if(r)if(l<0)for(let u=0;u<o;++u)c[u]=(i-u)/-l;else for(let u=0;u<o;++u)c[u]=(i-u)*l;else if(l<0)for(let u=0;u<o;++u)c[u]=(a+u)/-l;else for(let u=0;u<o;++u)c[u]=(a+u)*l;return c}function Sx(e,t,n){return t=+t,e=+e,n=+n,Fh(e,t,n)[2]}function wx(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?Sx(t,e,n):Sx(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function K2(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function Y2(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function BM(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?IM:Tee(a);r>n;){if(r-n>600){const c=r-n+1,u=t-n+1,f=Math.log(c),d=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*d*(c-d)/c)*(u-c/2<0?-1:1),m=Math.max(n,Math.floor(t-u*d/c+h)),j=Math.min(r,Math.floor(t+(c-u)*d/c+h));BM(e,t,m,j,a)}const i=e[t];let l=n,o=r;for(bc(e,n,t),a(e[r],i)>0&&bc(e,n,r);l<o;){for(bc(e,l,o),++l,--o;a(e[l],i)<0;)++l;for(;a(e[o],i)>0;)--o}a(e[n],i)===0?bc(e,n,o):(++o,bc(e,o,r)),o<=t&&(n=o+1),t<=o&&(r=o-1)}return e}function bc(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function $ee(e,t,n){if(e=Float64Array.from(Nee(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Y2(e);if(t>=1)return K2(e);var r,a=(r-1)*t,i=Math.floor(a),l=K2(BM(e,i).subarray(0,i+1)),o=Y2(e.subarray(i+1));return l+(o-l)*(a-i)}}function Ree(e,t,n=zM){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),l=+n(e[i],i,e),o=+n(e[i+1],i+1,e);return l+(o-l)*(a-i)}}function Dee(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 fr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function za(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 Ox=Symbol("implicit");function w1(){var e=new F2,t=[],n=[],r=Ox;function a(i){let l=e.get(i);if(l===void 0){if(r!==Ox)return r;e.set(i,l=t.push(i)-1)}return n[l%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new F2;for(const l of i)e.has(l)||e.set(l,t.push(l)-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 w1(t,n).unknown(r)},fr.apply(a,arguments),a}function Eu(){var e=w1().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,l,o=!1,c=0,u=0,f=.5;delete e.unknown;function d(){var h=t().length,m=a<r,j=m?a:r,y=m?r:a;i=(y-j)/Math.max(1,h-c+u*2),o&&(i=Math.floor(i)),j+=(y-j-i*(h-c))*f,l=i*(1-c),o&&(j=Math.round(j),l=Math.round(l));var p=Dee(h).map(function(v){return j+i*v});return n(m?p.reverse():p)}return e.domain=function(h){return arguments.length?(t(h),d()):t()},e.range=function(h){return arguments.length?([r,a]=h,r=+r,a=+a,d()):[r,a]},e.rangeRound=function(h){return[r,a]=h,r=+r,a=+a,o=!0,d()},e.bandwidth=function(){return l},e.step=function(){return i},e.round=function(h){return arguments.length?(o=!!h,d()):o},e.padding=function(h){return arguments.length?(c=Math.min(1,u=+h),d()):c},e.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),d()):c},e.paddingOuter=function(h){return arguments.length?(u=+h,d()):u},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),d()):f},e.copy=function(){return Eu(t(),[r,a]).round(o).paddingInner(c).paddingOuter(u).align(f)},fr.apply(d(),arguments)}function UM(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return UM(t())},e}function Wc(){return UM(Eu.apply(null,arguments).paddingInner(1))}function O1(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function qM(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function kf(){}var Cu=.7,Gh=1/Cu,Pl="\\s*([+-]?\\d+)\\s*",_u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Lee=/^#([0-9a-f]{3,8})$/,zee=new RegExp(`^rgb\\(${Pl},${Pl},${Pl}\\)$`),Iee=new RegExp(`^rgb\\(${Gr},${Gr},${Gr}\\)$`),Bee=new RegExp(`^rgba\\(${Pl},${Pl},${Pl},${_u}\\)$`),Uee=new RegExp(`^rgba\\(${Gr},${Gr},${Gr},${_u}\\)$`),qee=new RegExp(`^hsl\\(${_u},${Gr},${Gr}\\)$`),Hee=new RegExp(`^hsla\\(${_u},${Gr},${Gr},${_u}\\)$`),V2={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};O1(kf,Tu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:W2,formatHex:W2,formatHex8:Fee,formatHsl:Gee,formatRgb:X2,toString:X2});function W2(){return this.rgb().formatHex()}function Fee(){return this.rgb().formatHex8()}function Gee(){return HM(this).formatHsl()}function X2(){return this.rgb().formatRgb()}function Tu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Lee.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Q2(t):n===3?new mn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?cd(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?cd(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=zee.exec(e))?new mn(t[1],t[2],t[3],1):(t=Iee.exec(e))?new mn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Bee.exec(e))?cd(t[1],t[2],t[3],t[4]):(t=Uee.exec(e))?cd(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=qee.exec(e))?eO(t[1],t[2]/100,t[3]/100,1):(t=Hee.exec(e))?eO(t[1],t[2]/100,t[3]/100,t[4]):V2.hasOwnProperty(e)?Q2(V2[e]):e==="transparent"?new mn(NaN,NaN,NaN,0):null}function Q2(e){return new mn(e>>16&255,e>>8&255,e&255,1)}function cd(e,t,n,r){return r<=0&&(e=t=n=NaN),new mn(e,t,n,r)}function Kee(e){return e instanceof kf||(e=Tu(e)),e?(e=e.rgb(),new mn(e.r,e.g,e.b,e.opacity)):new mn}function Nx(e,t,n,r){return arguments.length===1?Kee(e):new mn(e,t,n,r??1)}function mn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}O1(mn,Nx,qM(kf,{brighter(e){return e=e==null?Gh:Math.pow(Gh,e),new mn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Cu:Math.pow(Cu,e),new mn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new mn(Ss(this.r),Ss(this.g),Ss(this.b),Kh(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:Z2,formatHex:Z2,formatHex8:Yee,formatRgb:J2,toString:J2}));function Z2(){return`#${as(this.r)}${as(this.g)}${as(this.b)}`}function Yee(){return`#${as(this.r)}${as(this.g)}${as(this.b)}${as((isNaN(this.opacity)?1:this.opacity)*255)}`}function J2(){const e=Kh(this.opacity);return`${e===1?"rgb(":"rgba("}${Ss(this.r)}, ${Ss(this.g)}, ${Ss(this.b)}${e===1?")":`, ${e})`}`}function Kh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ss(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function as(e){return e=Ss(e),(e<16?"0":"")+e.toString(16)}function eO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new xr(e,t,n,r)}function HM(e){if(e instanceof xr)return new xr(e.h,e.s,e.l,e.opacity);if(e instanceof kf||(e=Tu(e)),!e)return new xr;if(e instanceof xr)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),l=NaN,o=i-a,c=(i+a)/2;return o?(t===i?l=(n-r)/o+(n<r)*6:n===i?l=(r-t)/o+2:l=(t-n)/o+4,o/=c<.5?i+a:2-i-a,l*=60):o=c>0&&c<1?0:l,new xr(l,o,c,e.opacity)}function Vee(e,t,n,r){return arguments.length===1?HM(e):new xr(e,t,n,r??1)}function xr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}O1(xr,Vee,qM(kf,{brighter(e){return e=e==null?Gh:Math.pow(Gh,e),new xr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Cu:Math.pow(Cu,e),new xr(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 mn(mv(e>=240?e-240:e+120,a,r),mv(e,a,r),mv(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new xr(tO(this.h),ud(this.s),ud(this.l),Kh(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=Kh(this.opacity);return`${e===1?"hsl(":"hsla("}${tO(this.h)}, ${ud(this.s)*100}%, ${ud(this.l)*100}%${e===1?")":`, ${e})`}`}}));function tO(e){return e=(e||0)%360,e<0?e+360:e}function ud(e){return Math.max(0,Math.min(1,e||0))}function mv(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 N1=e=>()=>e;function Wee(e,t){return function(n){return e+n*t}}function Xee(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 Qee(e){return(e=+e)==1?FM:function(t,n){return n-t?Xee(t,n,e):N1(isNaN(t)?n:t)}}function FM(e,t){var n=t-e;return n?Wee(e,n):N1(isNaN(e)?t:e)}const nO=function e(t){var n=Qee(t);function r(a,i){var l=n((a=Nx(a)).r,(i=Nx(i)).r),o=n(a.g,i.g),c=n(a.b,i.b),u=FM(a.opacity,i.opacity);return function(f){return a.r=l(f),a.g=o(f),a.b=c(f),a.opacity=u(f),a+""}}return r.gamma=e,r}(1);function Zee(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 Jee(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ete(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),l;for(l=0;l<r;++l)a[l]=ac(e[l],t[l]);for(;l<n;++l)i[l]=t[l];return function(o){for(l=0;l<r;++l)i[l]=a[l](o);return i}}function tte(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Yh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function nte(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]=ac(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var Ax=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yv=new RegExp(Ax.source,"g");function rte(e){return function(){return e}}function ate(e){return function(t){return e(t)+""}}function ite(e,t){var n=Ax.lastIndex=yv.lastIndex=0,r,a,i,l=-1,o=[],c=[];for(e=e+"",t=t+"";(r=Ax.exec(e))&&(a=yv.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),o[l]?o[l]+=i:o[++l]=i),(r=r[0])===(a=a[0])?o[l]?o[l]+=a:o[++l]=a:(o[++l]=null,c.push({i:l,x:Yh(r,a)})),n=yv.lastIndex;return n<t.length&&(i=t.slice(n),o[l]?o[l]+=i:o[++l]=i),o.length<2?c[0]?ate(c[0].x):rte(t):(t=c.length,function(u){for(var f=0,d;f<t;++f)o[(d=c[f]).i]=d.x(u);return o.join("")})}function ac(e,t){var n=typeof t,r;return t==null||n==="boolean"?N1(t):(n==="number"?Yh:n==="string"?(r=Tu(t))?(t=r,nO):ite:t instanceof Tu?nO:t instanceof Date?tte:Jee(t)?Zee:Array.isArray(t)?ete:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?nte:Yh)(e,t)}function A1(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function ste(e,t){t===void 0&&(t=e,e=ac);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(l){var o=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return i[o](l-o)}}function lte(e){return function(){return e}}function Vh(e){return+e}var rO=[0,1];function sn(e){return e}function Ex(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:lte(isNaN(t)?NaN:.5)}function ote(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function cte(e,t,n){var r=e[0],a=e[1],i=t[0],l=t[1];return a<r?(r=Ex(a,r),i=n(l,i)):(r=Ex(r,a),i=n(i,l)),function(o){return i(r(o))}}function ute(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)a[l]=Ex(e[l],e[l+1]),i[l]=n(t[l],t[l+1]);return function(o){var c=Tf(e,o,1,r)-1;return i[c](a[c](o))}}function Mf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Bm(){var e=rO,t=rO,n=ac,r,a,i,l=sn,o,c,u;function f(){var h=Math.min(e.length,t.length);return l!==sn&&(l=ote(e[0],e[h-1])),o=h>2?ute:cte,c=u=null,d}function d(h){return h==null||isNaN(h=+h)?i:(c||(c=o(e.map(r),t,n)))(r(l(h)))}return d.invert=function(h){return l(a((u||(u=o(t,e.map(r),Yh)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,Vh),f()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=A1,f()},d.clamp=function(h){return arguments.length?(l=h?!0:sn,f()):l!==sn},d.interpolate=function(h){return arguments.length?(n=h,f()):n},d.unknown=function(h){return arguments.length?(i=h,d):i},function(h,m){return r=h,a=m,f()}}function E1(){return Bm()(sn,sn)}function fte(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Wh(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 fo(e){return e=Wh(Math.abs(e)),e?e[1]:NaN}function dte(e,t){return function(n,r){for(var a=n.length,i=[],l=0,o=e[0],c=0;a>0&&o>0&&(c+o+1>r&&(o=Math.max(1,r-c)),i.push(n.substring(a-=o,a+o)),!((c+=o+1)>r));)o=e[l=(l+1)%e.length];return i.reverse().join(t)}}function hte(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var pte=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ku(e){if(!(t=pte.exec(e)))throw new Error("invalid format: "+e);var t;return new C1({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]})}ku.prototype=C1.prototype;function C1(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+""}C1.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 mte(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 Xh;function yte(e,t){var n=Wh(e,t);if(!n)return Xh=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(Xh=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,l=r.length;return i===l?r:i>l?r+new Array(i-l+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Wh(e,Math.max(0,t+i-1))[0]}function aO(e,t){var n=Wh(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 iO={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:fte,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)=>aO(e*100,t),r:aO,s:yte,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function sO(e){return e}var lO=Array.prototype.map,oO=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function vte(e){var t=e.grouping===void 0||e.thousands===void 0?sO:dte(lO.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?sO:hte(lO.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(d,h){d=ku(d);var m=d.fill,j=d.align,y=d.sign,p=d.symbol,v=d.zero,g=d.width,b=d.comma,x=d.precision,O=d.trim,S=d.type;S==="n"?(b=!0,S="g"):iO[S]||(x===void 0&&(x=12),O=!0,S="g"),(v||m==="0"&&j==="=")&&(v=!0,m="0",j="=");var N=(h&&h.prefix!==void 0?h.prefix:"")+(p==="$"?n:p==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():""),A=(p==="$"?r:/[%p]/.test(S)?l:"")+(h&&h.suffix!==void 0?h.suffix:""),C=iO[S],k=/[defgprs%]/.test(S);x=x===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function R(M){var B=N,_=A,E,P,I;if(S==="c")_=C(M)+_,M="";else{M=+M;var z=M<0||1/M<0;if(M=isNaN(M)?c:C(Math.abs(M),x),O&&(M=mte(M)),z&&+M==0&&y!=="+"&&(z=!1),B=(z?y==="("?y:o:y==="-"||y==="("?"":y)+B,_=(S==="s"&&!isNaN(M)&&Xh!==void 0?oO[8+Xh/3]:"")+_+(z&&y==="("?")":""),k){for(E=-1,P=M.length;++E<P;)if(I=M.charCodeAt(E),48>I||I>57){_=(I===46?a+M.slice(E+1):M.slice(E))+_,M=M.slice(0,E);break}}}b&&!v&&(M=t(M,1/0));var G=B.length+M.length+_.length,V=G<g?new Array(g-G+1).join(m):"";switch(b&&v&&(M=t(V+M,V.length?g-_.length:1/0),V=""),j){case"<":M=B+M+_+V;break;case"=":M=B+V+M+_;break;case"^":M=V.slice(0,G=V.length>>1)+B+M+_+V.slice(G);break;default:M=V+B+M+_;break}return i(M)}return R.toString=function(){return d+""},R}function f(d,h){var m=Math.max(-8,Math.min(8,Math.floor(fo(h)/3)))*3,j=Math.pow(10,-m),y=u((d=ku(d),d.type="f",d),{suffix:oO[8+m/3]});return function(p){return y(j*p)}}return{format:u,formatPrefix:f}}var fd,_1,GM;gte({thousands:",",grouping:[3],currency:["$",""]});function gte(e){return fd=vte(e),_1=fd.format,GM=fd.formatPrefix,fd}function xte(e){return Math.max(0,-fo(Math.abs(e)))}function bte(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(fo(t)/3)))*3-fo(Math.abs(e)))}function jte(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,fo(t)-fo(e))+1}function KM(e,t,n,r){var a=wx(e,t,n),i;switch(r=ku(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=bte(a,l))&&(r.precision=i),GM(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=jte(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=xte(a))&&(r.precision=i-(r.type==="%")*2);break}}return _1(r)}function Li(e){var t=e.domain;return e.ticks=function(n){var r=t();return jx(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return KM(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,l=r[a],o=r[i],c,u,f=10;for(o<l&&(u=l,l=o,o=u,u=a,a=i,i=u);f-- >0;){if(u=Sx(l,o,n),u===c)return r[a]=l,r[i]=o,t(r);if(u>0)l=Math.floor(l/u)*u,o=Math.ceil(o/u)*u;else if(u<0)l=Math.ceil(l*u)/u,o=Math.floor(o*u)/u;else break;c=u}return e},e}function Qh(){var e=E1();return e.copy=function(){return Mf(e,Qh())},fr.apply(e,arguments),Li(e)}function YM(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,Vh),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return YM(e).unknown(t)},e=arguments.length?Array.from(e,Vh):[0,1],Li(n)}function VM(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],l;return i<a&&(l=n,n=r,r=l,l=a,a=i,i=l),e[n]=t.floor(a),e[r]=t.ceil(i),e}function cO(e){return Math.log(e)}function uO(e){return Math.exp(e)}function Ste(e){return-Math.log(-e)}function wte(e){return-Math.exp(-e)}function Ote(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Nte(e){return e===10?Ote:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Ate(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 fO(e){return(t,n)=>-e(-t,n)}function T1(e){const t=e(cO,uO),n=t.domain;let r=10,a,i;function l(){return a=Ate(r),i=Nte(r),n()[0]<0?(a=fO(a),i=fO(i),e(Ste,wte)):e(cO,uO),t}return t.base=function(o){return arguments.length?(r=+o,l()):r},t.domain=function(o){return arguments.length?(n(o),l()):n()},t.ticks=o=>{const c=n();let u=c[0],f=c[c.length-1];const d=f<u;d&&([u,f]=[f,u]);let h=a(u),m=a(f),j,y;const p=o==null?10:+o;let v=[];if(!(r%1)&&m-h<p){if(h=Math.floor(h),m=Math.ceil(m),u>0){for(;h<=m;++h)for(j=1;j<r;++j)if(y=h<0?j/i(-h):j*i(h),!(y<u)){if(y>f)break;v.push(y)}}else for(;h<=m;++h)for(j=r-1;j>=1;--j)if(y=h>0?j/i(-h):j*i(h),!(y<u)){if(y>f)break;v.push(y)}v.length*2<p&&(v=jx(u,f,p))}else v=jx(h,m,Math.min(m-h,p)).map(i);return d?v.reverse():v},t.tickFormat=(o,c)=>{if(o==null&&(o=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=ku(c)).precision==null&&(c.trim=!0),c=_1(c)),o===1/0)return c;const u=Math.max(1,r*o/t.ticks().length);return f=>{let d=f/i(Math.round(a(f)));return d*r<r-.5&&(d*=r),d<=u?c(f):""}},t.nice=()=>n(VM(n(),{floor:o=>i(Math.floor(a(o))),ceil:o=>i(Math.ceil(a(o)))})),t}function WM(){const e=T1(Bm()).domain([1,10]);return e.copy=()=>Mf(e,WM()).base(e.base()),fr.apply(e,arguments),e}function dO(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function hO(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function k1(e){var t=1,n=e(dO(t),hO(t));return n.constant=function(r){return arguments.length?e(dO(t=+r),hO(t)):t},Li(n)}function XM(){var e=k1(Bm());return e.copy=function(){return Mf(e,XM()).constant(e.constant())},fr.apply(e,arguments)}function pO(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Ete(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Cte(e){return e<0?-e*e:e*e}function M1(e){var t=e(sn,sn),n=1;function r(){return n===1?e(sn,sn):n===.5?e(Ete,Cte):e(pO(n),pO(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Li(t)}function P1(){var e=M1(Bm());return e.copy=function(){return Mf(e,P1()).exponent(e.exponent())},fr.apply(e,arguments),e}function _te(){return P1.apply(null,arguments).exponent(.5)}function mO(e){return Math.sign(e)*e*e}function Tte(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function QM(){var e=E1(),t=[0,1],n=!1,r;function a(i){var l=Tte(e(i));return isNaN(l)?r:n?Math.round(l):l}return a.invert=function(i){return e.invert(mO(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,Vh)).map(mO)),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 QM(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},fr.apply(a,arguments),Li(a)}function ZM(){var e=[],t=[],n=[],r;function a(){var l=0,o=Math.max(1,t.length);for(n=new Array(o-1);++l<o;)n[l-1]=Ree(e,l/o);return i}function i(l){return l==null||isNaN(l=+l)?r:t[Tf(n,l)]}return i.invertExtent=function(l){var o=t.indexOf(l);return o<0?[NaN,NaN]:[o>0?n[o-1]:e[0],o<n.length?n[o]:e[e.length-1]]},i.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let o of l)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(wi),a()},i.range=function(l){return arguments.length?(t=Array.from(l),a()):t.slice()},i.unknown=function(l){return arguments.length?(r=l,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return ZM().domain(e).range(t).unknown(r)},fr.apply(i,arguments)}function JM(){var e=0,t=1,n=1,r=[.5],a=[0,1],i;function l(c){return c!=null&&c<=c?a[Tf(r,c,0,n)]:i}function o(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*t-(c-n)*e)/(n+1);return l}return l.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,o()):[e,t]},l.range=function(c){return arguments.length?(n=(a=Array.from(c)).length-1,o()):a.slice()},l.invertExtent=function(c){var u=a.indexOf(c);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},l.unknown=function(c){return arguments.length&&(i=c),l},l.thresholds=function(){return r.slice()},l.copy=function(){return JM().domain([e,t]).range(a).unknown(i)},fr.apply(Li(l),arguments)}function e3(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Tf(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 l=t.indexOf(i);return[e[l-1],e[l]]},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return e3().domain(e).range(t).unknown(n)},fr.apply(a,arguments)}const vv=new Date,gv=new Date;function kt(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 l=a(i),o=a.ceil(i);return i-l<o-i?l:o},a.offset=(i,l)=>(t(i=new Date(+i),l==null?1:Math.floor(l)),i),a.range=(i,l,o)=>{const c=[];if(i=a.ceil(i),o=o==null?1:Math.floor(o),!(i<l)||!(o>0))return c;let u;do c.push(u=new Date(+i)),t(i,o),e(i);while(u<i&&i<l);return c},a.filter=i=>kt(l=>{if(l>=l)for(;e(l),!i(l);)l.setTime(l-1)},(l,o)=>{if(l>=l)if(o<0)for(;++o<=0;)for(;t(l,-1),!i(l););else for(;--o>=0;)for(;t(l,1),!i(l););}),n&&(a.count=(i,l)=>(vv.setTime(+i),gv.setTime(+l),e(vv),e(gv),Math.floor(n(vv,gv))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?l=>r(l)%i===0:l=>a.count(0,l)%i===0):a)),a}const Zh=kt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Zh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?kt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Zh);Zh.range;const va=1e3,tr=va*60,ga=tr*60,ka=ga*24,$1=ka*7,yO=ka*30,xv=ka*365,is=kt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*va)},(e,t)=>(t-e)/va,e=>e.getUTCSeconds());is.range;const R1=kt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*va)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getMinutes());R1.range;const D1=kt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*tr)},(e,t)=>(t-e)/tr,e=>e.getUTCMinutes());D1.range;const L1=kt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*va-e.getMinutes()*tr)},(e,t)=>{e.setTime(+e+t*ga)},(e,t)=>(t-e)/ga,e=>e.getHours());L1.range;const z1=kt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ga)},(e,t)=>(t-e)/ga,e=>e.getUTCHours());z1.range;const Pf=kt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*tr)/ka,e=>e.getDate()-1);Pf.range;const Um=kt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ka,e=>e.getUTCDate()-1);Um.range;const t3=kt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ka,e=>Math.floor(e/ka));t3.range;function Hs(e){return kt(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())*tr)/$1)}const qm=Hs(0),Jh=Hs(1),kte=Hs(2),Mte=Hs(3),ho=Hs(4),Pte=Hs(5),$te=Hs(6);qm.range;Jh.range;kte.range;Mte.range;ho.range;Pte.range;$te.range;function Fs(e){return kt(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)/$1)}const Hm=Fs(0),ep=Fs(1),Rte=Fs(2),Dte=Fs(3),po=Fs(4),Lte=Fs(5),zte=Fs(6);Hm.range;ep.range;Rte.range;Dte.range;po.range;Lte.range;zte.range;const I1=kt(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());I1.range;const B1=kt(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());B1.range;const Ma=kt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Ma.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:kt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Ma.range;const Pa=kt(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:kt(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 n3(e,t,n,r,a,i){const l=[[is,1,va],[is,5,5*va],[is,15,15*va],[is,30,30*va],[i,1,tr],[i,5,5*tr],[i,15,15*tr],[i,30,30*tr],[a,1,ga],[a,3,3*ga],[a,6,6*ga],[a,12,12*ga],[r,1,ka],[r,2,2*ka],[n,1,$1],[t,1,yO],[t,3,3*yO],[e,1,xv]];function o(u,f,d){const h=f<u;h&&([u,f]=[f,u]);const m=d&&typeof d.range=="function"?d:c(u,f,d),j=m?m.range(u,+f+1):[];return h?j.reverse():j}function c(u,f,d){const h=Math.abs(f-u)/d,m=S1(([,,p])=>p).right(l,h);if(m===l.length)return e.every(wx(u/xv,f/xv,d));if(m===0)return Zh.every(Math.max(wx(u,f,d),1));const[j,y]=l[h/l[m-1][2]<l[m][2]/h?m-1:m];return j.every(y)}return[o,c]}const[Ite,Bte]=n3(Pa,B1,Hm,t3,z1,D1),[Ute,qte]=n3(Ma,I1,qm,Pf,L1,R1);function bv(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 jv(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 jc(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Hte(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,l=e.shortDays,o=e.months,c=e.shortMonths,u=Sc(a),f=wc(a),d=Sc(i),h=wc(i),m=Sc(l),j=wc(l),y=Sc(o),p=wc(o),v=Sc(c),g=wc(c),b={a:I,A:z,b:G,B:V,c:null,d:SO,e:SO,f:dne,g:Sne,G:One,H:cne,I:une,j:fne,L:r3,m:hne,M:pne,p:Z,q:X,Q:NO,s:AO,S:mne,u:yne,U:vne,V:gne,w:xne,W:bne,x:null,X:null,y:jne,Y:wne,Z:Nne,"%":OO},x={a:ee,A:ie,b:Ne,B:Zt,c:null,d:wO,e:wO,f:_ne,g:Ine,G:Une,H:Ane,I:Ene,j:Cne,L:i3,m:Tne,M:kne,p:Mr,q:Ve,Q:NO,s:AO,S:Mne,u:Pne,U:$ne,V:Rne,w:Dne,W:Lne,x:null,X:null,y:zne,Y:Bne,Z:qne,"%":OO},O={a:k,A:R,b:M,B,c:_,d:bO,e:bO,f:ine,g:xO,G:gO,H:jO,I:jO,j:tne,L:ane,m:ene,M:nne,p:C,q:Jte,Q:lne,s:one,S:rne,u:Vte,U:Wte,V:Xte,w:Yte,W:Qte,x:E,X:P,y:xO,Y:gO,Z:Zte,"%":sne};b.x=S(n,b),b.X=S(r,b),b.c=S(t,b),x.x=S(n,x),x.X=S(r,x),x.c=S(t,x);function S(te,oe){return function(J){var K=[],Pe=-1,xe=0,ut=te.length,mt,xt,qa;for(J instanceof Date||(J=new Date(+J));++Pe<ut;)te.charCodeAt(Pe)===37&&(K.push(te.slice(xe,Pe)),(xt=vO[mt=te.charAt(++Pe)])!=null?mt=te.charAt(++Pe):xt=mt==="e"?" ":"0",(qa=oe[mt])&&(mt=qa(J,xt)),K.push(mt),xe=Pe+1);return K.push(te.slice(xe,Pe)),K.join("")}}function N(te,oe){return function(J){var K=jc(1900,void 0,1),Pe=A(K,te,J+="",0),xe,ut;if(Pe!=J.length)return null;if("Q"in K)return new Date(K.Q);if("s"in K)return new Date(K.s*1e3+("L"in K?K.L:0));if(oe&&!("Z"in K)&&(K.Z=0),"p"in K&&(K.H=K.H%12+K.p*12),K.m===void 0&&(K.m="q"in K?K.q:0),"V"in K){if(K.V<1||K.V>53)return null;"w"in K||(K.w=1),"Z"in K?(xe=jv(jc(K.y,0,1)),ut=xe.getUTCDay(),xe=ut>4||ut===0?ep.ceil(xe):ep(xe),xe=Um.offset(xe,(K.V-1)*7),K.y=xe.getUTCFullYear(),K.m=xe.getUTCMonth(),K.d=xe.getUTCDate()+(K.w+6)%7):(xe=bv(jc(K.y,0,1)),ut=xe.getDay(),xe=ut>4||ut===0?Jh.ceil(xe):Jh(xe),xe=Pf.offset(xe,(K.V-1)*7),K.y=xe.getFullYear(),K.m=xe.getMonth(),K.d=xe.getDate()+(K.w+6)%7)}else("W"in K||"U"in K)&&("w"in K||(K.w="u"in K?K.u%7:"W"in K?1:0),ut="Z"in K?jv(jc(K.y,0,1)).getUTCDay():bv(jc(K.y,0,1)).getDay(),K.m=0,K.d="W"in K?(K.w+6)%7+K.W*7-(ut+5)%7:K.w+K.U*7-(ut+6)%7);return"Z"in K?(K.H+=K.Z/100|0,K.M+=K.Z%100,jv(K)):bv(K)}}function A(te,oe,J,K){for(var Pe=0,xe=oe.length,ut=J.length,mt,xt;Pe<xe;){if(K>=ut)return-1;if(mt=oe.charCodeAt(Pe++),mt===37){if(mt=oe.charAt(Pe++),xt=O[mt in vO?oe.charAt(Pe++):mt],!xt||(K=xt(te,J,K))<0)return-1}else if(mt!=J.charCodeAt(K++))return-1}return K}function C(te,oe,J){var K=u.exec(oe.slice(J));return K?(te.p=f.get(K[0].toLowerCase()),J+K[0].length):-1}function k(te,oe,J){var K=m.exec(oe.slice(J));return K?(te.w=j.get(K[0].toLowerCase()),J+K[0].length):-1}function R(te,oe,J){var K=d.exec(oe.slice(J));return K?(te.w=h.get(K[0].toLowerCase()),J+K[0].length):-1}function M(te,oe,J){var K=v.exec(oe.slice(J));return K?(te.m=g.get(K[0].toLowerCase()),J+K[0].length):-1}function B(te,oe,J){var K=y.exec(oe.slice(J));return K?(te.m=p.get(K[0].toLowerCase()),J+K[0].length):-1}function _(te,oe,J){return A(te,t,oe,J)}function E(te,oe,J){return A(te,n,oe,J)}function P(te,oe,J){return A(te,r,oe,J)}function I(te){return l[te.getDay()]}function z(te){return i[te.getDay()]}function G(te){return c[te.getMonth()]}function V(te){return o[te.getMonth()]}function Z(te){return a[+(te.getHours()>=12)]}function X(te){return 1+~~(te.getMonth()/3)}function ee(te){return l[te.getUTCDay()]}function ie(te){return i[te.getUTCDay()]}function Ne(te){return c[te.getUTCMonth()]}function Zt(te){return o[te.getUTCMonth()]}function Mr(te){return a[+(te.getUTCHours()>=12)]}function Ve(te){return 1+~~(te.getUTCMonth()/3)}return{format:function(te){var oe=S(te+="",b);return oe.toString=function(){return te},oe},parse:function(te){var oe=N(te+="",!1);return oe.toString=function(){return te},oe},utcFormat:function(te){var oe=S(te+="",x);return oe.toString=function(){return te},oe},utcParse:function(te){var oe=N(te+="",!0);return oe.toString=function(){return te},oe}}}var vO={"-":"",_:" ",0:"0"},zt=/^\s*\d+/,Fte=/^%/,Gte=/[\\^$*+?|[\]().{}]/g;function Ce(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 Kte(e){return e.replace(Gte,"\\$&")}function Sc(e){return new RegExp("^(?:"+e.map(Kte).join("|")+")","i")}function wc(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Yte(e,t,n){var r=zt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Vte(e,t,n){var r=zt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Wte(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Xte(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Qte(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function gO(e,t,n){var r=zt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function xO(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Zte(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 Jte(e,t,n){var r=zt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function ene(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function bO(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function tne(e,t,n){var r=zt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function jO(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function nne(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function rne(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ane(e,t,n){var r=zt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ine(e,t,n){var r=zt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function sne(e,t,n){var r=Fte.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function lne(e,t,n){var r=zt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function one(e,t,n){var r=zt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function SO(e,t){return Ce(e.getDate(),t,2)}function cne(e,t){return Ce(e.getHours(),t,2)}function une(e,t){return Ce(e.getHours()%12||12,t,2)}function fne(e,t){return Ce(1+Pf.count(Ma(e),e),t,3)}function r3(e,t){return Ce(e.getMilliseconds(),t,3)}function dne(e,t){return r3(e,t)+"000"}function hne(e,t){return Ce(e.getMonth()+1,t,2)}function pne(e,t){return Ce(e.getMinutes(),t,2)}function mne(e,t){return Ce(e.getSeconds(),t,2)}function yne(e){var t=e.getDay();return t===0?7:t}function vne(e,t){return Ce(qm.count(Ma(e)-1,e),t,2)}function a3(e){var t=e.getDay();return t>=4||t===0?ho(e):ho.ceil(e)}function gne(e,t){return e=a3(e),Ce(ho.count(Ma(e),e)+(Ma(e).getDay()===4),t,2)}function xne(e){return e.getDay()}function bne(e,t){return Ce(Jh.count(Ma(e)-1,e),t,2)}function jne(e,t){return Ce(e.getFullYear()%100,t,2)}function Sne(e,t){return e=a3(e),Ce(e.getFullYear()%100,t,2)}function wne(e,t){return Ce(e.getFullYear()%1e4,t,4)}function One(e,t){var n=e.getDay();return e=n>=4||n===0?ho(e):ho.ceil(e),Ce(e.getFullYear()%1e4,t,4)}function Nne(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ce(t/60|0,"0",2)+Ce(t%60,"0",2)}function wO(e,t){return Ce(e.getUTCDate(),t,2)}function Ane(e,t){return Ce(e.getUTCHours(),t,2)}function Ene(e,t){return Ce(e.getUTCHours()%12||12,t,2)}function Cne(e,t){return Ce(1+Um.count(Pa(e),e),t,3)}function i3(e,t){return Ce(e.getUTCMilliseconds(),t,3)}function _ne(e,t){return i3(e,t)+"000"}function Tne(e,t){return Ce(e.getUTCMonth()+1,t,2)}function kne(e,t){return Ce(e.getUTCMinutes(),t,2)}function Mne(e,t){return Ce(e.getUTCSeconds(),t,2)}function Pne(e){var t=e.getUTCDay();return t===0?7:t}function $ne(e,t){return Ce(Hm.count(Pa(e)-1,e),t,2)}function s3(e){var t=e.getUTCDay();return t>=4||t===0?po(e):po.ceil(e)}function Rne(e,t){return e=s3(e),Ce(po.count(Pa(e),e)+(Pa(e).getUTCDay()===4),t,2)}function Dne(e){return e.getUTCDay()}function Lne(e,t){return Ce(ep.count(Pa(e)-1,e),t,2)}function zne(e,t){return Ce(e.getUTCFullYear()%100,t,2)}function Ine(e,t){return e=s3(e),Ce(e.getUTCFullYear()%100,t,2)}function Bne(e,t){return Ce(e.getUTCFullYear()%1e4,t,4)}function Une(e,t){var n=e.getUTCDay();return e=n>=4||n===0?po(e):po.ceil(e),Ce(e.getUTCFullYear()%1e4,t,4)}function qne(){return"+0000"}function OO(){return"%"}function NO(e){return+e}function AO(e){return Math.floor(+e/1e3)}var Js,l3,o3;Hne({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 Hne(e){return Js=Hte(e),l3=Js.format,Js.parse,o3=Js.utcFormat,Js.utcParse,Js}function Fne(e){return new Date(e)}function Gne(e){return e instanceof Date?+e:+new Date(+e)}function U1(e,t,n,r,a,i,l,o,c,u){var f=E1(),d=f.invert,h=f.domain,m=u(".%L"),j=u(":%S"),y=u("%I:%M"),p=u("%I %p"),v=u("%a %d"),g=u("%b %d"),b=u("%B"),x=u("%Y");function O(S){return(c(S)<S?m:o(S)<S?j:l(S)<S?y:i(S)<S?p:r(S)<S?a(S)<S?v:g:n(S)<S?b:x)(S)}return f.invert=function(S){return new Date(d(S))},f.domain=function(S){return arguments.length?h(Array.from(S,Gne)):h().map(Fne)},f.ticks=function(S){var N=h();return e(N[0],N[N.length-1],S??10)},f.tickFormat=function(S,N){return N==null?O:u(N)},f.nice=function(S){var N=h();return(!S||typeof S.range!="function")&&(S=t(N[0],N[N.length-1],S??10)),S?h(VM(N,S)):f},f.copy=function(){return Mf(f,U1(e,t,n,r,a,i,l,o,c,u))},f}function Kne(){return fr.apply(U1(Ute,qte,Ma,I1,qm,Pf,L1,R1,is,l3).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Yne(){return fr.apply(U1(Ite,Bte,Pa,B1,Hm,Um,z1,D1,is,o3).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Fm(){var e=0,t=1,n,r,a,i,l=sn,o=!1,c;function u(d){return d==null||isNaN(d=+d)?c:l(a===0?.5:(d=(i(d)-n)*a,o?Math.max(0,Math.min(1,d)):d))}u.domain=function(d){return arguments.length?([e,t]=d,n=i(e=+e),r=i(t=+t),a=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(d){return arguments.length?(o=!!d,u):o},u.interpolator=function(d){return arguments.length?(l=d,u):l};function f(d){return function(h){var m,j;return arguments.length?([m,j]=h,l=d(m,j),u):[l(0),l(1)]}}return u.range=f(ac),u.rangeRound=f(A1),u.unknown=function(d){return arguments.length?(c=d,u):c},function(d){return i=d,n=d(e),r=d(t),a=n===r?0:1/(r-n),u}}function zi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function c3(){var e=Li(Fm()(sn));return e.copy=function(){return zi(e,c3())},za.apply(e,arguments)}function u3(){var e=T1(Fm()).domain([1,10]);return e.copy=function(){return zi(e,u3()).base(e.base())},za.apply(e,arguments)}function f3(){var e=k1(Fm());return e.copy=function(){return zi(e,f3()).constant(e.constant())},za.apply(e,arguments)}function q1(){var e=M1(Fm());return e.copy=function(){return zi(e,q1()).exponent(e.exponent())},za.apply(e,arguments)}function Vne(){return q1.apply(null,arguments).exponent(.5)}function d3(){var e=[],t=sn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Tf(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(wi),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)=>$ee(e,i/r))},n.copy=function(){return d3(t).domain(e)},za.apply(n,arguments)}function Gm(){var e=0,t=.5,n=1,r=1,a,i,l,o,c,u=sn,f,d=!1,h;function m(y){return isNaN(y=+y)?h:(y=.5+((y=+f(y))-i)*(r*y<r*i?o:c),u(d?Math.max(0,Math.min(1,y)):y))}m.domain=function(y){return arguments.length?([e,t,n]=y,a=f(e=+e),i=f(t=+t),l=f(n=+n),o=a===i?0:.5/(i-a),c=i===l?0:.5/(l-i),r=i<a?-1:1,m):[e,t,n]},m.clamp=function(y){return arguments.length?(d=!!y,m):d},m.interpolator=function(y){return arguments.length?(u=y,m):u};function j(y){return function(p){var v,g,b;return arguments.length?([v,g,b]=p,u=ste(y,[v,g,b]),m):[u(0),u(.5),u(1)]}}return m.range=j(ac),m.rangeRound=j(A1),m.unknown=function(y){return arguments.length?(h=y,m):h},function(y){return f=y,a=y(e),i=y(t),l=y(n),o=a===i?0:.5/(i-a),c=i===l?0:.5/(l-i),r=i<a?-1:1,m}}function h3(){var e=Li(Gm()(sn));return e.copy=function(){return zi(e,h3())},za.apply(e,arguments)}function p3(){var e=T1(Gm()).domain([.1,1,10]);return e.copy=function(){return zi(e,p3()).base(e.base())},za.apply(e,arguments)}function m3(){var e=k1(Gm());return e.copy=function(){return zi(e,m3()).constant(e.constant())},za.apply(e,arguments)}function H1(){var e=M1(Gm());return e.copy=function(){return zi(e,H1()).exponent(e.exponent())},za.apply(e,arguments)}function Wne(){return H1.apply(null,arguments).exponent(.5)}const EO=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Eu,scaleDiverging:h3,scaleDivergingLog:p3,scaleDivergingPow:H1,scaleDivergingSqrt:Wne,scaleDivergingSymlog:m3,scaleIdentity:YM,scaleImplicit:Ox,scaleLinear:Qh,scaleLog:WM,scaleOrdinal:w1,scalePoint:Wc,scalePow:P1,scaleQuantile:ZM,scaleQuantize:JM,scaleRadial:QM,scaleSequential:c3,scaleSequentialLog:u3,scaleSequentialPow:q1,scaleSequentialQuantile:d3,scaleSequentialSqrt:Vne,scaleSequentialSymlog:f3,scaleSqrt:_te,scaleSymlog:XM,scaleThreshold:e3,scaleTime:Kne,scaleUtc:Yne,tickFormat:KM},Symbol.toStringTag,{value:"Module"}));var Xne=Wo;function Qne(e,t,n){for(var r=-1,a=e.length;++r<a;){var i=e[r],l=t(i);if(l!=null&&(o===void 0?l===l&&!Xne(l):n(l,o)))var o=l,c=i}return c}var Km=Qne;function Zne(e,t){return e>t}var y3=Zne,Jne=Km,ere=y3,tre=rc;function nre(e){return e&&e.length?Jne(e,tre,ere):void 0}var rre=nre;const fi=Me(rre);function are(e,t){return e<t}var v3=are,ire=Km,sre=v3,lre=rc;function ore(e){return e&&e.length?ire(e,lre,sre):void 0}var cre=ore;const Ym=Me(cre);var ure=a1,fre=ea,dre=AM,hre=bn;function pre(e,t){var n=hre(e)?ure:dre;return n(e,fre(t))}var mre=pre,yre=OM,vre=mre;function gre(e,t){return yre(vre(e,t),1)}var xre=gre;const bre=Me(xre);var jre=g1;function Sre(e,t){return jre(e,t)}var wre=Sre;const ki=Me(wre);var ic=1e9,Ore={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},G1,rt=!0,sr="[DecimalError] ",ws=sr+"Invalid argument: ",F1=sr+"Exponent out of range: ",sc=Math.floor,es=Math.pow,Nre=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Cn,Pt=1e7,Qe=7,g3=9007199254740991,tp=sc(g3/Qe),ne={};ne.absoluteValue=ne.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ne.comparedTo=ne.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};ne.decimalPlaces=ne.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Qe;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};ne.dividedBy=ne.div=function(e){return Oa(this,new this.constructor(e))};ne.dividedToIntegerBy=ne.idiv=function(e){var t=this,n=t.constructor;return Be(Oa(t,new n(e),0,1),n.precision)};ne.equals=ne.eq=function(e){return!this.cmp(e)};ne.exponent=function(){return Nt(this)};ne.greaterThan=ne.gt=function(e){return this.cmp(e)>0};ne.greaterThanOrEqualTo=ne.gte=function(e){return this.cmp(e)>=0};ne.isInteger=ne.isint=function(){return this.e>this.d.length-2};ne.isNegative=ne.isneg=function(){return this.s<0};ne.isPositive=ne.ispos=function(){return this.s>0};ne.isZero=function(){return this.s===0};ne.lessThan=ne.lt=function(e){return this.cmp(e)<0};ne.lessThanOrEqualTo=ne.lte=function(e){return this.cmp(e)<1};ne.logarithm=ne.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(Cn))throw Error(sr+"NaN");if(n.s<1)throw Error(sr+(n.s?"NaN":"-Infinity"));return n.eq(Cn)?new r(0):(rt=!1,t=Oa(Mu(n,i),Mu(e,i),i),rt=!0,Be(t,a))};ne.minus=ne.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?j3(t,e):x3(t,(e.s=-e.s,e))};ne.modulo=ne.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(sr+"NaN");return n.s?(rt=!1,t=Oa(n,e,0,1).times(e),rt=!0,n.minus(t)):Be(new r(n),a)};ne.naturalExponential=ne.exp=function(){return b3(this)};ne.naturalLogarithm=ne.ln=function(){return Mu(this)};ne.negated=ne.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ne.plus=ne.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?x3(t,e):j3(t,(e.s=-e.s,e))};ne.precision=ne.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ws+e);if(t=Nt(a)+1,r=a.d.length-1,n=r*Qe+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};ne.squareRoot=ne.sqrt=function(){var e,t,n,r,a,i,l,o=this,c=o.constructor;if(o.s<1){if(!o.s)return new c(0);throw Error(sr+"NaN")}for(e=Nt(o),rt=!1,a=Math.sqrt(+o),a==0||a==1/0?(t=qr(o.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=sc((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 c(t)):r=new c(a.toString()),n=c.precision,a=l=n+3;;)if(i=r,r=i.plus(Oa(o,i,l+2)).times(.5),qr(i.d).slice(0,l)===(t=qr(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),a==l&&t=="4999"){if(Be(i,n+1,0),i.times(i).eq(o)){r=i;break}}else if(t!="9999")break;l+=4}return rt=!0,Be(r,n)};ne.times=ne.mul=function(e){var t,n,r,a,i,l,o,c,u,f=this,d=f.constructor,h=f.d,m=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,n=f.e+e.e,c=h.length,u=m.length,c<u&&(i=h,h=m,m=i,l=c,c=u,u=l),i=[],l=c+u,r=l;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,a=c+r;a>r;)o=i[a]+m[r]*h[a-r-1]+t,i[a--]=o%Pt|0,t=o/Pt|0;i[a]=(i[a]+t)%Pt|0}for(;!i[--l];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,rt?Be(e,d.precision):e};ne.toDecimalPlaces=ne.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Wr(e,0,ic),t===void 0?t=r.rounding:Wr(t,0,8),Be(n,e+Nt(n)+1,t))};ne.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=$s(r,!0):(Wr(e,0,ic),t===void 0?t=a.rounding:Wr(t,0,8),r=Be(new a(r),e+1,t),n=$s(r,!0,e+1)),n};ne.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?$s(a):(Wr(e,0,ic),t===void 0?t=i.rounding:Wr(t,0,8),r=Be(new i(a),e+Nt(a)+1,t),n=$s(r.abs(),!1,e+Nt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};ne.toInteger=ne.toint=function(){var e=this,t=e.constructor;return Be(new t(e),Nt(e)+1,t.rounding)};ne.toNumber=function(){return+this};ne.toPower=ne.pow=function(e){var t,n,r,a,i,l,o=this,c=o.constructor,u=12,f=+(e=new c(e));if(!e.s)return new c(Cn);if(o=new c(o),!o.s){if(e.s<1)throw Error(sr+"Infinity");return o}if(o.eq(Cn))return o;if(r=c.precision,e.eq(Cn))return Be(o,r);if(t=e.e,n=e.d.length-1,l=t>=n,i=o.s,l){if((n=f<0?-f:f)<=g3){for(a=new c(Cn),t=Math.ceil(r/Qe+4),rt=!1;n%2&&(a=a.times(o),_O(a.d,t)),n=sc(n/2),n!==0;)o=o.times(o),_O(o.d,t);return rt=!0,e.s<0?new c(Cn).div(a):Be(a,r)}}else if(i<0)throw Error(sr+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,o.s=1,rt=!1,a=e.times(Mu(o,r+u)),rt=!0,a=b3(a),a.s=i,a};ne.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=Nt(a),r=$s(a,n<=i.toExpNeg||n>=i.toExpPos)):(Wr(e,1,ic),t===void 0?t=i.rounding:Wr(t,0,8),a=Be(new i(a),e,t),n=Nt(a),r=$s(a,e<=n||n<=i.toExpNeg,e)),r};ne.toSignificantDigits=ne.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Wr(e,1,ic),t===void 0?t=r.rounding:Wr(t,0,8)),Be(new r(n),e,t)};ne.toString=ne.valueOf=ne.val=ne.toJSON=ne[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Nt(e),n=e.constructor;return $s(e,t<=n.toExpNeg||t>=n.toExpPos)};function x3(e,t){var n,r,a,i,l,o,c,u,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),rt?Be(t,d):t;if(c=e.d,u=t.d,l=e.e,a=t.e,c=c.slice(),i=l-a,i){for(i<0?(r=c,i=-i,o=u.length):(r=u,a=l,o=c.length),l=Math.ceil(d/Qe),o=l>o?l+1:o+1,i>o&&(i=o,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(o=c.length,i=u.length,o-i<0&&(i=o,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/Pt|0,c[i]%=Pt;for(n&&(c.unshift(n),++a),o=c.length;c[--o]==0;)c.pop();return t.d=c,t.e=a,rt?Be(t,d):t}function Wr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(ws+e)}function qr(e){var t,n,r,a=e.length-1,i="",l=e[0];if(a>0){for(i+=l,t=1;t<a;t++)r=e[t]+"",n=Qe-r.length,n&&(i+=Va(n)),i+=r;l=e[t],r=l+"",n=Qe-r.length,n&&(i+=Va(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return i+l}var Oa=function(){function e(r,a){var i,l=0,o=r.length;for(r=r.slice();o--;)i=r[o]*a+l,r[o]=i%Pt|0,l=i/Pt|0;return l&&r.unshift(l),r}function t(r,a,i,l){var o,c;if(i!=l)c=i>l?1:-1;else for(o=c=0;o<i;o++)if(r[o]!=a[o]){c=r[o]>a[o]?1:-1;break}return c}function n(r,a,i){for(var l=0;i--;)r[i]-=l,l=r[i]<a[i]?1:0,r[i]=l*Pt+r[i]-a[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,i,l){var o,c,u,f,d,h,m,j,y,p,v,g,b,x,O,S,N,A,C=r.constructor,k=r.s==a.s?1:-1,R=r.d,M=a.d;if(!r.s)return new C(r);if(!a.s)throw Error(sr+"Division by zero");for(c=r.e-a.e,N=M.length,O=R.length,m=new C(k),j=m.d=[],u=0;M[u]==(R[u]||0);)++u;if(M[u]>(R[u]||0)&&--c,i==null?g=i=C.precision:l?g=i+(Nt(r)-Nt(a))+1:g=i,g<0)return new C(0);if(g=g/Qe+2|0,u=0,N==1)for(f=0,M=M[0],g++;(u<O||f)&&g--;u++)b=f*Pt+(R[u]||0),j[u]=b/M|0,f=b%M|0;else{for(f=Pt/(M[0]+1)|0,f>1&&(M=e(M,f),R=e(R,f),N=M.length,O=R.length),x=N,y=R.slice(0,N),p=y.length;p<N;)y[p++]=0;A=M.slice(),A.unshift(0),S=M[0],M[1]>=Pt/2&&++S;do f=0,o=t(M,y,N,p),o<0?(v=y[0],N!=p&&(v=v*Pt+(y[1]||0)),f=v/S|0,f>1?(f>=Pt&&(f=Pt-1),d=e(M,f),h=d.length,p=y.length,o=t(d,y,h,p),o==1&&(f--,n(d,N<h?A:M,h))):(f==0&&(o=f=1),d=M.slice()),h=d.length,h<p&&d.unshift(0),n(y,d,p),o==-1&&(p=y.length,o=t(M,y,N,p),o<1&&(f++,n(y,N<p?A:M,p))),p=y.length):o===0&&(f++,y=[0]),j[u++]=f,o&&y[0]?y[p++]=R[x]||0:(y=[R[x]],p=1);while((x++<O||y[0]!==void 0)&&g--)}return j[0]||j.shift(),m.e=c,Be(m,l?i+Nt(m)+1:i)}}();function b3(e,t){var n,r,a,i,l,o,c=0,u=0,f=e.constructor,d=f.precision;if(Nt(e)>16)throw Error(F1+Nt(e));if(!e.s)return new f(Cn);for(rt=!1,o=d,l=new f(.03125);e.abs().gte(.1);)e=e.times(l),u+=5;for(r=Math.log(es(2,u))/Math.LN10*2+5|0,o+=r,n=a=i=new f(Cn),f.precision=o;;){if(a=Be(a.times(e),o),n=n.times(++c),l=i.plus(Oa(a,n,o)),qr(l.d).slice(0,o)===qr(i.d).slice(0,o)){for(;u--;)i=Be(i.times(i),o);return f.precision=d,t==null?(rt=!0,Be(i,d)):i}i=l}}function Nt(e){for(var t=e.e*Qe,n=e.d[0];n>=10;n/=10)t++;return t}function Sv(e,t,n){if(t>e.LN10.sd())throw rt=!0,n&&(e.precision=n),Error(sr+"LN10 precision limit exceeded");return Be(new e(e.LN10),t)}function Va(e){for(var t="";e--;)t+="0";return t}function Mu(e,t){var n,r,a,i,l,o,c,u,f,d=1,h=10,m=e,j=m.d,y=m.constructor,p=y.precision;if(m.s<1)throw Error(sr+(m.s?"NaN":"-Infinity"));if(m.eq(Cn))return new y(0);if(t==null?(rt=!1,u=p):u=t,m.eq(10))return t==null&&(rt=!0),Sv(y,u);if(u+=h,y.precision=u,n=qr(j),r=n.charAt(0),i=Nt(m),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)m=m.times(e),n=qr(m.d),r=n.charAt(0),d++;i=Nt(m),r>1?(m=new y("0."+n),i++):m=new y(r+"."+n.slice(1))}else return c=Sv(y,u+2,p).times(i+""),m=Mu(new y(r+"."+n.slice(1)),u-h).plus(c),y.precision=p,t==null?(rt=!0,Be(m,p)):m;for(o=l=m=Oa(m.minus(Cn),m.plus(Cn),u),f=Be(m.times(m),u),a=3;;){if(l=Be(l.times(f),u),c=o.plus(Oa(l,new y(a),u)),qr(c.d).slice(0,u)===qr(o.d).slice(0,u))return o=o.times(2),i!==0&&(o=o.plus(Sv(y,u+2,p).times(i+""))),o=Oa(o,new y(d),u),y.precision=p,t==null?(rt=!0,Be(o,p)):o;o=c,a+=2}}function CO(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=sc(n/Qe),e.d=[],r=(n+1)%Qe,n<0&&(r+=Qe),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=Qe;r<a;)e.d.push(+t.slice(r,r+=Qe));t=t.slice(r),r=Qe-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),rt&&(e.e>tp||e.e<-tp))throw Error(F1+n)}else e.s=0,e.e=0,e.d=[0];return e}function Be(e,t,n){var r,a,i,l,o,c,u,f,d=e.d;for(l=1,i=d[0];i>=10;i/=10)l++;if(r=t-l,r<0)r+=Qe,a=t,u=d[f=0];else{if(f=Math.ceil((r+1)/Qe),i=d.length,f>=i)return e;for(u=i=d[f],l=1;i>=10;i/=10)l++;r%=Qe,a=r-Qe+l}if(n!==void 0&&(i=es(10,l-a-1),o=u/i%10|0,c=t<0||d[f+1]!==void 0||u%i,c=n<4?(o||c)&&(n==0||n==(e.s<0?3:2)):o>5||o==5&&(n==4||c||n==6&&(r>0?a>0?u/es(10,l-a):0:d[f-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return c?(i=Nt(e),d.length=1,t=t-i-1,d[0]=es(10,(Qe-t%Qe)%Qe),e.e=sc(-t/Qe)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=f,i=1,f--):(d.length=f+1,i=es(10,Qe-r),d[f]=a>0?(u/es(10,l-a)%es(10,a)|0)*i:0),c)for(;;)if(f==0){(d[0]+=i)==Pt&&(d[0]=1,++e.e);break}else{if(d[f]+=i,d[f]!=Pt)break;d[f--]=0,i=1}for(r=d.length;d[--r]===0;)d.pop();if(rt&&(e.e>tp||e.e<-tp))throw Error(F1+Nt(e));return e}function j3(e,t){var n,r,a,i,l,o,c,u,f,d,h=e.constructor,m=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),rt?Be(t,m):t;if(c=e.d,d=t.d,r=t.e,u=e.e,c=c.slice(),l=u-r,l){for(f=l<0,f?(n=c,l=-l,o=d.length):(n=d,r=u,o=c.length),a=Math.max(Math.ceil(m/Qe),o)+2,l>a&&(l=a,n.length=1),n.reverse(),a=l;a--;)n.push(0);n.reverse()}else{for(a=c.length,o=d.length,f=a<o,f&&(o=a),a=0;a<o;a++)if(c[a]!=d[a]){f=c[a]<d[a];break}l=0}for(f&&(n=c,c=d,d=n,t.s=-t.s),o=c.length,a=d.length-o;a>0;--a)c[o++]=0;for(a=d.length;a>l;){if(c[--a]<d[a]){for(i=a;i&&c[--i]===0;)c[i]=Pt-1;--c[i],c[a]+=Pt}c[a]-=d[a]}for(;c[--o]===0;)c.pop();for(;c[0]===0;c.shift())--r;return c[0]?(t.d=c,t.e=r,rt?Be(t,m):t):new h(0)}function $s(e,t,n){var r,a=Nt(e),i=qr(e.d),l=i.length;return t?(n&&(r=n-l)>0?i=i.charAt(0)+"."+i.slice(1)+Va(r):l>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+Va(-a-1)+i,n&&(r=n-l)>0&&(i+=Va(r))):a>=l?(i+=Va(a+1-l),n&&(r=n-a-1)>0&&(i=i+"."+Va(r))):((r=a+1)<l&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-l)>0&&(a+1===l&&(i+="."),i+=Va(r))),e.s<0?"-"+i:i}function _O(e,t){if(e.length>t)return e.length=t,!0}function S3(e){var t,n,r;function a(i){var l=this;if(!(l instanceof a))return new a(i);if(l.constructor=a,i instanceof a){l.s=i.s,l.e=i.e,l.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(ws+i);if(i>0)l.s=1;else if(i<0)i=-i,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(i===~~i&&i<1e7){l.e=0,l.d=[i];return}return CO(l,i.toString())}else if(typeof i!="string")throw Error(ws+i);if(i.charCodeAt(0)===45?(i=i.slice(1),l.s=-1):l.s=1,Nre.test(i))CO(l,i);else throw Error(ws+i)}if(a.prototype=ne,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=S3,a.config=a.set=Are,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 Are(e){if(!e||typeof e!="object")throw Error(sr+"Object expected");var t,n,r,a=["precision",1,ic,"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(sc(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(ws+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(ws+n+": "+r);return this}var G1=S3(Ore);Cn=new G1(1);const ze=G1;function Ere(e){return kre(e)||Tre(e)||_re(e)||Cre()}function Cre(){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 _re(e,t){if(e){if(typeof e=="string")return Cx(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 Cx(e,t)}}function Tre(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function kre(e){if(Array.isArray(e))return Cx(e)}function Cx(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 Mre=function(t){return t},w3={},O3=function(t){return t===w3},TO=function(t){return function n(){return arguments.length===0||arguments.length===1&&O3(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},Pre=function e(t,n){return t===1?n:TO(function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var l=a.filter(function(o){return o!==w3}).length;return l>=t?n.apply(void 0,a):e(t-l,TO(function(){for(var o=arguments.length,c=new Array(o),u=0;u<o;u++)c[u]=arguments[u];var f=a.map(function(d){return O3(d)?c.shift():d});return n.apply(void 0,Ere(f).concat(c))}))})},Vm=function(t){return Pre(t.length,t)},_x=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},$re=Vm(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),Rre=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Mre;var a=n.reverse(),i=a[0],l=a.slice(1);return function(){return l.reduce(function(o,c){return c(o)},i.apply(void 0,arguments))}},Tx=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},N3=function(t){var n=null,r=null;return function(){for(var a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];return n&&i.every(function(o,c){return o===n[c]})||(n=i,r=t.apply(void 0,i)),r}};function Dre(e){var t;return e===0?t=1:t=Math.floor(new ze(e).abs().log(10).toNumber())+1,t}function Lre(e,t,n){for(var r=new ze(e),a=0,i=[];r.lt(t)&&a<1e5;)i.push(r.toNumber()),r=r.add(n),a++;return i}var zre=Vm(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),Ire=Vm(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Bre=Vm(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Wm={rangeStep:Lre,getDigitCount:Dre,interpolateNumber:zre,uninterpolateNumber:Ire,uninterpolateTruncation:Bre};function kx(e){return Hre(e)||qre(e)||A3(e)||Ure()}function Ure(){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 qre(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Hre(e){if(Array.isArray(e))return Mx(e)}function Pu(e,t){return Kre(e)||Gre(e,t)||A3(e,t)||Fre()}function Fre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A3(e,t){if(e){if(typeof e=="string")return Mx(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 Mx(e,t)}}function Mx(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 Gre(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,i=void 0;try{for(var l=e[Symbol.iterator](),o;!(r=(o=l.next()).done)&&(n.push(o.value),!(t&&n.length===t));r=!0);}catch(c){a=!0,i=c}finally{try{!r&&l.return!=null&&l.return()}finally{if(a)throw i}}return n}}function Kre(e){if(Array.isArray(e))return e}function E3(e){var t=Pu(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function C3(e,t,n){if(e.lte(0))return new ze(0);var r=Wm.getDigitCount(e.toNumber()),a=new ze(10).pow(r),i=e.div(a),l=r!==1?.05:.1,o=new ze(Math.ceil(i.div(l).toNumber())).add(n).mul(l),c=o.mul(a);return t?c:new ze(Math.ceil(c))}function Yre(e,t,n){var r=1,a=new ze(e);if(!a.isint()&&n){var i=Math.abs(e);i<1?(r=new ze(10).pow(Wm.getDigitCount(e)-1),a=new ze(Math.floor(a.div(r).toNumber())).mul(r)):i>1&&(a=new ze(Math.floor(e)))}else e===0?a=new ze(Math.floor((t-1)/2)):n||(a=new ze(Math.floor(e)));var l=Math.floor((t-1)/2),o=Rre($re(function(c){return a.add(new ze(c-l).mul(r)).toNumber()}),_x);return o(0,t)}function _3(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 ze(0),tickMin:new ze(0),tickMax:new ze(0)};var i=C3(new ze(t).sub(e).div(n-1),r,a),l;e<=0&&t>=0?l=new ze(0):(l=new ze(e).add(t).div(2),l=l.sub(new ze(l).mod(i)));var o=Math.ceil(l.sub(e).div(i).toNumber()),c=Math.ceil(new ze(t).sub(l).div(i).toNumber()),u=o+c+1;return u>n?_3(e,t,n,r,a+1):(u<n&&(c=t>0?c+(n-u):c,o=t>0?o:o+(n-u)),{step:i,tickMin:l.sub(new ze(o).mul(i)),tickMax:l.add(new ze(c).mul(i))})}function Vre(e){var t=Pu(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,l=Math.max(a,2),o=E3([n,r]),c=Pu(o,2),u=c[0],f=c[1];if(u===-1/0||f===1/0){var d=f===1/0?[u].concat(kx(_x(0,a-1).map(function(){return 1/0}))):[].concat(kx(_x(0,a-1).map(function(){return-1/0})),[f]);return n>r?Tx(d):d}if(u===f)return Yre(u,a,i);var h=_3(u,f,l,i),m=h.step,j=h.tickMin,y=h.tickMax,p=Wm.rangeStep(j,y.add(new ze(.1).mul(m)),m);return n>r?Tx(p):p}function Wre(e,t){var n=Pu(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=E3([r,a]),o=Pu(l,2),c=o[0],u=o[1];if(c===-1/0||u===1/0)return[r,a];if(c===u)return[c];var f=Math.max(t,2),d=C3(new ze(u).sub(c).div(f-1),i,0),h=[].concat(kx(Wm.rangeStep(new ze(c),new ze(u).sub(new ze(.99).mul(d)),d)),[u]);return r>a?Tx(h):h}var Xre=N3(Vre),Qre=N3(Wre),Zre="Invariant failed";function Rs(e,t){throw new Error(Zre)}var Jre=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function mo(e){"@babel/helpers - typeof";return mo=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},mo(e)}function np(){return np=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},np.apply(this,arguments)}function eae(e,t){return aae(e)||rae(e,t)||nae(e,t)||tae()}function tae(){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 nae(e,t){if(e){if(typeof e=="string")return kO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kO(e,t)}}function kO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function aae(e){if(Array.isArray(e))return e}function iae(e,t){if(e==null)return{};var n=sae(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 sae(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 lae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oae(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,M3(r.key),r)}}function cae(e,t,n){return t&&oae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uae(e,t,n){return t=rp(t),fae(e,T3()?Reflect.construct(t,n||[],rp(e).constructor):t.apply(e,n))}function fae(e,t){if(t&&(mo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dae(e)}function dae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(T3=function(){return!!e})()}function rp(e){return rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rp(e)}function hae(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&&Px(e,t)}function Px(e,t){return Px=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Px(e,t)}function k3(e,t,n){return t=M3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M3(e){var t=pae(e,"string");return mo(t)=="symbol"?t:t+""}function pae(e,t){if(mo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var lc=function(e){function t(){return lae(this,t),uae(this,t,arguments)}return hae(t,e),cae(t,[{key:"render",value:function(){var r=this.props,a=r.offset,i=r.layout,l=r.width,o=r.dataKey,c=r.data,u=r.dataPointFormatter,f=r.xAxis,d=r.yAxis,h=iae(r,Jre),m=ae(h,!1);this.props.direction==="x"&&f.type!=="number"&&Rs();var j=c.map(function(y){var p=u(y,o),v=p.x,g=p.y,b=p.value,x=p.errorVal;if(!x)return null;var O=[],S,N;if(Array.isArray(x)){var A=eae(x,2);S=A[0],N=A[1]}else S=N=x;if(i==="vertical"){var C=f.scale,k=g+a,R=k+l,M=k-l,B=C(b-S),_=C(b+N);O.push({x1:_,y1:R,x2:_,y2:M}),O.push({x1:B,y1:k,x2:_,y2:k}),O.push({x1:B,y1:R,x2:B,y2:M})}else if(i==="horizontal"){var E=d.scale,P=v+a,I=P-l,z=P+l,G=E(b-S),V=E(b+N);O.push({x1:I,y1:V,x2:z,y2:V}),O.push({x1:P,y1:G,x2:P,y2:V}),O.push({x1:I,y1:G,x2:z,y2:G})}return T.createElement(ve,np({className:"recharts-errorBar",key:"bar-".concat(O.map(function(Z){return"".concat(Z.x1,"-").concat(Z.x2,"-").concat(Z.y1,"-").concat(Z.y2)}))},m),O.map(function(Z){return T.createElement("line",np({},Z,{key:"line-".concat(Z.x1,"-").concat(Z.x2,"-").concat(Z.y1,"-").concat(Z.y2)}))}))});return T.createElement(ve,{className:"recharts-errorBars"},j)}}])}(T.Component);k3(lc,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});k3(lc,"displayName","ErrorBar");function $u(e){"@babel/helpers - typeof";return $u=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},$u(e)}function MO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Gi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MO(Object(n),!0).forEach(function(r){mae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mae(e,t,n){return t=yae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yae(e){var t=vae(e,"string");return $u(t)=="symbol"?t:t+""}function vae(e,t){if($u(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($u(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var P3=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,l=On(n,er);if(!l)return null;var o=er.defaultProps,c=o!==void 0?Gi(Gi({},o),l.props):{},u;return l.props&&l.props.payload?u=l.props&&l.props.payload:i==="children"?u=(r||[]).reduce(function(f,d){var h=d.item,m=d.props,j=m.sectors||m.data||[];return f.concat(j.map(function(y){return{type:l.props.iconType||h.props.legendType,value:y.name,color:y.fill,payload:y}}))},[]):u=(r||[]).map(function(f){var d=f.item,h=d.type.defaultProps,m=h!==void 0?Gi(Gi({},h),d.props):{},j=m.dataKey,y=m.name,p=m.legendType,v=m.hide;return{inactive:v,dataKey:j,type:c.iconType||p||"square",color:K1(d),value:y||j,payload:m}}),Gi(Gi(Gi({},c),er.getWithHeight(l,a)),{},{payload:u,item:l})};function Ru(e){"@babel/helpers - typeof";return Ru=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},Ru(e)}function PO(e){return jae(e)||bae(e)||xae(e)||gae()}function gae(){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 xae(e,t){if(e){if(typeof e=="string")return $x(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 $x(e,t)}}function bae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jae(e){if(Array.isArray(e))return $x(e)}function $x(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 $O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$O(Object(n),!0).forEach(function(r){$l(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$O(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $l(e,t,n){return t=Sae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sae(e){var t=wae(e,"string");return Ru(t)=="symbol"?t:t+""}function wae(e,t){if(Ru(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ru(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Je(e,t,n){return le(e)||le(t)?n:_t(t)?$n(e,t,n):ce(t)?t(e):n}function Xc(e,t,n,r){var a=bre(e,function(o){return Je(o,t)});if(n==="number"){var i=a.filter(function(o){return W(o)||parseFloat(o)});return i.length?[Ym(i),fi(i)]:[1/0,-1/0]}var l=r?a.filter(function(o){return!le(o)}):a;return l.map(function(o){return _t(o)||o instanceof Date?o:""})}var Oae=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,l=-1,o=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(o<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,u=0;u<o;u++){var f=u>0?a[u-1].coordinate:a[o-1].coordinate,d=a[u].coordinate,h=u>=o-1?a[0].coordinate:a[u+1].coordinate,m=void 0;if(rn(d-f)!==rn(h-d)){var j=[];if(rn(h-d)===rn(c[1]-c[0])){m=h;var y=d+c[1]-c[0];j[0]=Math.min(y,(y+f)/2),j[1]=Math.max(y,(y+f)/2)}else{m=f;var p=h+c[1]-c[0];j[0]=Math.min(d,(p+d)/2),j[1]=Math.max(d,(p+d)/2)}var v=[Math.min(d,(m+d)/2),Math.max(d,(m+d)/2)];if(t>v[0]&&t<=v[1]||t>=j[0]&&t<=j[1]){l=a[u].index;break}}else{var g=Math.min(f,h),b=Math.max(f,h);if(t>(g+d)/2&&t<=(b+d)/2){l=a[u].index;break}}}else for(var x=0;x<o;x++)if(x===0&&t<=(r[x].coordinate+r[x+1].coordinate)/2||x>0&&x<o-1&&t>(r[x].coordinate+r[x-1].coordinate)/2&&t<=(r[x].coordinate+r[x+1].coordinate)/2||x===o-1&&t>(r[x].coordinate+r[x-1].coordinate)/2){l=r[x].index;break}return l},K1=function(t){var n,r=t,a=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ht(ht({},t.type.defaultProps),t.props):t.props,l=i.stroke,o=i.fill,c;switch(a){case"Line":c=l;break;case"Area":case"Radar":c=l&&l!=="none"?l:o;break;default:c=o;break}return c},Nae=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var l={},o=Object.keys(i),c=0,u=o.length;c<u;c++)for(var f=i[o[c]].stackGroups,d=Object.keys(f),h=0,m=d.length;h<m;h++){var j=f[d[h]],y=j.items,p=j.cateAxisId,v=y.filter(function(N){return wa(N.type).indexOf("Bar")>=0});if(v&&v.length){var g=v[0].type.defaultProps,b=g!==void 0?ht(ht({},g),v[0].props):v[0].props,x=b.barSize,O=b[p];l[O]||(l[O]=[]);var S=le(x)?n:x;l[O].push({item:v[0],stackList:v.slice(1),barSize:le(S)?void 0:an(S,r,0)})}}return l},Aae=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,i=t.sizeList,l=i===void 0?[]:i,o=t.maxBarSize,c=l.length;if(c<1)return null;var u=an(n,a,0,!0),f,d=[];if(l[0].barSize===+l[0].barSize){var h=!1,m=a/c,j=l.reduce(function(x,O){return x+O.barSize||0},0);j+=(c-1)*u,j>=a&&(j-=(c-1)*u,u=0),j>=a&&m>0&&(h=!0,m*=.9,j=c*m);var y=(a-j)/2>>0,p={offset:y-u,size:0};f=l.reduce(function(x,O){var S={item:O.item,position:{offset:p.offset+p.size+u,size:h?m:O.barSize}},N=[].concat(PO(x),[S]);return p=N[N.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(A){N.push({item:A,position:p})}),N},d)}else{var v=an(r,a,0,!0);a-2*v-(c-1)*u<=0&&(u=0);var g=(a-2*v-(c-1)*u)/c;g>1&&(g>>=0);var b=o===+o?Math.min(g,o):g;f=l.reduce(function(x,O,S){var N=[].concat(PO(x),[{item:O.item,position:{offset:v+(g+u)*S+(g-b)/2,size:b}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(A){N.push({item:A,position:N[N.length-1].position})}),N},d)}return f},Eae=function(t,n,r,a){var i=r.children,l=r.width,o=r.margin,c=l-(o.left||0)-(o.right||0),u=P3({children:i,legendWidth:c});if(u){var f=a||{},d=f.width,h=f.height,m=u.align,j=u.verticalAlign,y=u.layout;if((y==="vertical"||y==="horizontal"&&j==="middle")&&m!=="center"&&W(t[m]))return ht(ht({},t),{},$l({},m,t[m]+(d||0)));if((y==="horizontal"||y==="vertical"&&m==="center")&&j!=="middle"&&W(t[j]))return ht(ht({},t),{},$l({},j,t[j]+(h||0)))}return t},Cae=function(t,n,r){return le(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},$3=function(t,n,r,a,i){var l=n.props.children,o=on(l,lc).filter(function(u){return Cae(a,i,u.props.direction)});if(o&&o.length){var c=o.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var d=Je(f,r);if(le(d))return u;var h=Array.isArray(d)?[Ym(d),fi(d)]:[d,d],m=c.reduce(function(j,y){var p=Je(f,y,0),v=h[0]-Math.abs(Array.isArray(p)?p[0]:p),g=h[1]+Math.abs(Array.isArray(p)?p[1]:p);return[Math.min(v,j[0]),Math.max(g,j[1])]},[1/0,-1/0]);return[Math.min(m[0],u[0]),Math.max(m[1],u[1])]},[1/0,-1/0])}return null},_ae=function(t,n,r,a,i){var l=n.map(function(o){return $3(t,o,r,i,a)}).filter(function(o){return!le(o)});return l&&l.length?l.reduce(function(o,c){return[Math.min(o[0],c[0]),Math.max(o[1],c[1])]},[1/0,-1/0]):null},R3=function(t,n,r,a,i){var l=n.map(function(c){var u=c.props.dataKey;return r==="number"&&u&&$3(t,c,u,a)||Xc(t,u,r,i)});if(r==="number")return l.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var o={};return l.reduce(function(c,u){for(var f=0,d=u.length;f<d;f++)o[u[f]]||(o[u[f]]=!0,c.push(u[f]));return c},[])},D3=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},L3=function(t,n,r,a){if(a)return t.map(function(c){return c.coordinate});var i,l,o=t.map(function(c){return c.coordinate===n&&(i=!0),c.coordinate===r&&(l=!0),c.coordinate});return i||o.push(n),l||o.push(r),o},xa=function(t,n,r){if(!t)return null;var a=t.scale,i=t.duplicateDomain,l=t.type,o=t.range,c=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,u=(n||r)&&l==="category"&&a.bandwidth?a.bandwidth()/c:0;if(u=t.axisType==="angleAxis"&&(o==null?void 0:o.length)>=2?rn(o[0]-o[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(d){var h=i?i.indexOf(d):d;return{coordinate:a(h)+u,value:d,offset:u}});return f.filter(function(d){return!ec(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,h){return{coordinate:a(d)+u,value:d,index:h,offset:u}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(d){return{coordinate:a(d)+u,value:d,offset:u}}):a.domain().map(function(d,h){return{coordinate:a(d)+u,value:i?i[d]:d,index:h,offset:u}})},wv=new WeakMap,dd=function(t,n){if(typeof n!="function")return t;wv.has(t)||wv.set(t,new WeakMap);var r=wv.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},z3=function(t,n,r){var a=t.scale,i=t.type,l=t.layout,o=t.axisType;if(a==="auto")return l==="radial"&&o==="radiusAxis"?{scale:Eu(),realScaleType:"band"}:l==="radial"&&o==="angleAxis"?{scale:Qh(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Wc(),realScaleType:"point"}:i==="category"?{scale:Eu(),realScaleType:"band"}:{scale:Qh(),realScaleType:"linear"};if(Ms(a)){var c="scale".concat(Mm(a));return{scale:(EO[c]||Wc)(),realScaleType:EO[c]?c:"point"}}return ce(a)?{scale:a}:{scale:Wc(),realScaleType:"point"}},RO=1e-4,I3=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])-RO,l=Math.max(a[0],a[1])+RO,o=t(n[0]),c=t(n[r-1]);(o<i||o>l||c<i||c>l)&&t.domain([n[0],n[r-1]])}},Tae=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},kae=function(t,n){if(!n||n.length!==2||!W(n[0])||!W(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(!W(t[0])||t[0]<r)&&(i[0]=r),(!W(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<r&&(i[1]=r),i},Mae=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,l=0,o=0;o<n;++o){var c=ec(t[o][r][1])?t[o][r][0]:t[o][r][1];c>=0?(t[o][r][0]=i,t[o][r][1]=i+c,i=t[o][r][1]):(t[o][r][0]=l,t[o][r][1]=l+c,l=t[o][r][1])}},Pae=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,l=0;l<n;++l){var o=ec(t[l][r][1])?t[l][r][0]:t[l][r][1];o>=0?(t[l][r][0]=i,t[l][r][1]=i+o,i=t[l][r][1]):(t[l][r][0]=0,t[l][r][1]=0)}},$ae={sign:Mae,expand:JF,none:so,silhouette:eG,wiggle:tG,positive:Pae},Rae=function(t,n,r){var a=n.map(function(o){return o.props.dataKey}),i=$ae[r],l=ZF().keys(a).value(function(o,c){return+Je(o,c,0)}).order(ix).offset(i);return l(t)},Dae=function(t,n,r,a,i,l){if(!t)return null;var o=l?n.reverse():n,c={},u=o.reduce(function(d,h){var m,j=(m=h.type)!==null&&m!==void 0&&m.defaultProps?ht(ht({},h.type.defaultProps),h.props):h.props,y=j.stackId,p=j.hide;if(p)return d;var v=j[r],g=d[v]||{hasStack:!1,stackGroups:{}};if(_t(y)){var b=g.stackGroups[y]||{numericAxisId:r,cateAxisId:a,items:[]};b.items.push(h),g.hasStack=!0,g.stackGroups[y]=b}else g.stackGroups[Di("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[h]};return ht(ht({},d),{},$l({},v,g))},c),f={};return Object.keys(u).reduce(function(d,h){var m=u[h];if(m.hasStack){var j={};m.stackGroups=Object.keys(m.stackGroups).reduce(function(y,p){var v=m.stackGroups[p];return ht(ht({},y),{},$l({},p,{numericAxisId:r,cateAxisId:a,items:v.items,stackedData:Rae(t,v.items,i)}))},j)}return ht(ht({},d),{},$l({},h,m))},f)},B3=function(t,n){var r=n.realScaleType,a=n.type,i=n.tickCount,l=n.originalDomain,o=n.allowDecimals,c=r||n.scale;if(c!=="auto"&&c!=="linear")return null;if(i&&a==="number"&&l&&(l[0]==="auto"||l[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=Xre(u,i,o);return t.domain([Ym(f),fi(f)]),{niceTicks:f}}if(i&&a==="number"){var d=t.domain(),h=Qre(d,i,o);return{niceTicks:h}}return null};function yo(e){var t=e.axis,n=e.ticks,r=e.bandSize,a=e.entry,i=e.index,l=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!le(a[t.dataKey])){var o=_h(n,"value",a[t.dataKey]);if(o)return o.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=Je(a,le(l)?t.dataKey:l);return le(c)?null:t.scale(c)}var DO=function(t){var n=t.axis,r=t.ticks,a=t.offset,i=t.bandSize,l=t.entry,o=t.index;if(n.type==="category")return r[o]?r[o].coordinate+a:null;var c=Je(l,n.dataKey,n.domain[o]);return le(c)?null:n.scale(c)-i/2+a},Lae=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]},zae=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ht(ht({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(_t(i)){var l=n[i];if(l){var o=l.items.indexOf(t);return o>=0?l.stackedData[o]:null}}return null},Iae=function(t){return t.reduce(function(n,r){return[Ym(r.concat([n[0]]).filter(W)),fi(r.concat([n[1]]).filter(W))]},[1/0,-1/0])},U3=function(t,n,r){return Object.keys(t).reduce(function(a,i){var l=t[i],o=l.stackedData,c=o.reduce(function(u,f){var d=Iae(f.slice(n,r+1));return[Math.min(u[0],d[0]),Math.max(u[1],d[1])]},[1/0,-1/0]);return[Math.min(c[0],a[0]),Math.max(c[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},LO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,zO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Rx=function(t,n,r){if(ce(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(W(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(LO.test(t[0])){var i=+LO.exec(t[0])[1];a[0]=n[0]-i}else ce(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(W(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(zO.test(t[1])){var l=+zO.exec(t[1])[1];a[1]=n[1]+l}else ce(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},ap=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=b1(n,function(d){return d.coordinate}),l=1/0,o=1,c=i.length;o<c;o++){var u=i[o],f=i[o-1];l=Math.min((u.coordinate||0)-(f.coordinate||0),l)}return l===1/0?0:l}return r?void 0:0},IO=function(t,n,r){return!t||!t.length||ki(t,$n(r,"type.defaultProps.domain"))?n:t},q3=function(t,n){var r=t.type.defaultProps?ht(ht({},t.type.defaultProps),t.props):t.props,a=r.dataKey,i=r.name,l=r.unit,o=r.formatter,c=r.tooltipType,u=r.chartType,f=r.hide;return ht(ht({},ae(t,!1)),{},{dataKey:a,unit:l,formatter:o,name:i||a,color:K1(t),value:Je(n,a),type:c,payload:n,chartType:u,hide:f})};function Du(e){"@babel/helpers - typeof";return Du=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},Du(e)}function BO(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 ca(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BO(Object(n),!0).forEach(function(r){H3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function H3(e,t,n){return t=Bae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bae(e){var t=Uae(e,"string");return Du(t)=="symbol"?t:t+""}function Uae(e,t){if(Du(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Du(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qae(e,t){return Kae(e)||Gae(e,t)||Fae(e,t)||Hae()}function Hae(){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 Fae(e,t){if(e){if(typeof e=="string")return UO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UO(e,t)}}function UO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function Kae(e){if(Array.isArray(e))return e}var ip=Math.PI/180,Yae=function(t){return t*180/Math.PI},Ke=function(t,n,r,a){return{x:t+Math.cos(-ip*a)*r,y:n+Math.sin(-ip*a)*r}},F3=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},Vae=function(t,n,r,a,i){var l=t.width,o=t.height,c=t.startAngle,u=t.endAngle,f=an(t.cx,l,l/2),d=an(t.cy,o,o/2),h=F3(l,o,r),m=an(t.innerRadius,h,0),j=an(t.outerRadius,h,h*.8),y=Object.keys(n);return y.reduce(function(p,v){var g=n[v],b=g.domain,x=g.reversed,O;if(le(g.range))a==="angleAxis"?O=[c,u]:a==="radiusAxis"&&(O=[m,j]),x&&(O=[O[1],O[0]]);else{O=g.range;var S=O,N=qae(S,2);c=N[0],u=N[1]}var A=z3(g,i),C=A.realScaleType,k=A.scale;k.domain(b).range(O),I3(k);var R=B3(k,ca(ca({},g),{},{realScaleType:C})),M=ca(ca(ca({},g),R),{},{range:O,radius:j,realScaleType:C,scale:k,cx:f,cy:d,innerRadius:m,outerRadius:j,startAngle:c,endAngle:u});return ca(ca({},p),{},H3({},v,M))},{})},Wae=function(t,n){var r=t.x,a=t.y,i=n.x,l=n.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(a-l,2))},Xae=function(t,n){var r=t.x,a=t.y,i=n.cx,l=n.cy,o=Wae({x:r,y:a},{x:i,y:l});if(o<=0)return{radius:o};var c=(r-i)/o,u=Math.acos(c);return a>l&&(u=2*Math.PI-u),{radius:o,angle:Yae(u),angleInRadian:u}},Qae=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),i=Math.floor(r/360),l=Math.min(a,i);return{startAngle:n-l*360,endAngle:r-l*360}},Zae=function(t,n){var r=n.startAngle,a=n.endAngle,i=Math.floor(r/360),l=Math.floor(a/360),o=Math.min(i,l);return t+o*360},qO=function(t,n){var r=t.x,a=t.y,i=Xae({x:r,y:a},n),l=i.radius,o=i.angle,c=n.innerRadius,u=n.outerRadius;if(l<c||l>u)return!1;if(l===0)return!0;var f=Qae(n),d=f.startAngle,h=f.endAngle,m=o,j;if(d<=h){for(;m>h;)m-=360;for(;m<d;)m+=360;j=m>=d&&m<=h}else{for(;m>d;)m-=360;for(;m<h;)m+=360;j=m>=h&&m<=d}return j?ca(ca({},n),{},{radius:l,angle:Zae(m,n)}):null},G3=function(t){return!w.isValidElement(t)&&!ce(t)&&typeof t!="boolean"?t.className:""};function Lu(e){"@babel/helpers - typeof";return Lu=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},Lu(e)}var Jae=["offset"];function eie(e){return aie(e)||rie(e)||nie(e)||tie()}function tie(){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 nie(e,t){if(e){if(typeof e=="string")return Dx(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 Dx(e,t)}}function rie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aie(e){if(Array.isArray(e))return Dx(e)}function Dx(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 iie(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 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 Et(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){lie(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 lie(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=cie(e,"string");return Lu(t)=="symbol"?t:t+""}function cie(e,t){if(Lu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zu(){return zu=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},zu.apply(this,arguments)}var uie=function(t){var n=t.value,r=t.formatter,a=le(t.children)?n:t.children;return ce(r)?r(a):a},fie=function(t,n){var r=rn(n-t),a=Math.min(Math.abs(n-t),360);return r*a},die=function(t,n,r){var a=t.position,i=t.viewBox,l=t.offset,o=t.className,c=i,u=c.cx,f=c.cy,d=c.innerRadius,h=c.outerRadius,m=c.startAngle,j=c.endAngle,y=c.clockWise,p=(d+h)/2,v=fie(m,j),g=v>=0?1:-1,b,x;a==="insideStart"?(b=m+g*l,x=y):a==="insideEnd"?(b=j-g*l,x=!y):a==="end"&&(b=j+g*l,x=y),x=v<=0?x:!x;var O=Ke(u,f,p,b),S=Ke(u,f,p,b+(x?1:-1)*359),N="M".concat(O.x,",").concat(O.y,`
|
||
A`).concat(p,",").concat(p,",0,1,").concat(x?0:1,`,
|
||
`).concat(S.x,",").concat(S.y),A=le(t.id)?Di("recharts-radial-line-"):t.id;return T.createElement("text",zu({},r,{dominantBaseline:"central",className:pe("recharts-radial-bar-label",o)}),T.createElement("defs",null,T.createElement("path",{id:A,d:N})),T.createElement("textPath",{xlinkHref:"#".concat(A)},n))},hie=function(t){var n=t.viewBox,r=t.offset,a=t.position,i=n,l=i.cx,o=i.cy,c=i.innerRadius,u=i.outerRadius,f=i.startAngle,d=i.endAngle,h=(f+d)/2;if(a==="outside"){var m=Ke(l,o,u+r,h),j=m.x,y=m.y;return{x:j,y,textAnchor:j>=l?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:l,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:l,y:o,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:l,y:o,textAnchor:"middle",verticalAnchor:"end"};var p=(c+u)/2,v=Ke(l,o,p,h),g=v.x,b=v.y;return{x:g,y:b,textAnchor:"middle",verticalAnchor:"middle"}},pie=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,i=t.position,l=n,o=l.x,c=l.y,u=l.width,f=l.height,d=f>=0?1:-1,h=d*a,m=d>0?"end":"start",j=d>0?"start":"end",y=u>=0?1:-1,p=y*a,v=y>0?"end":"start",g=y>0?"start":"end";if(i==="top"){var b={x:o+u/2,y:c-d*a,textAnchor:"middle",verticalAnchor:m};return Et(Et({},b),r?{height:Math.max(c-r.y,0),width:u}:{})}if(i==="bottom"){var x={x:o+u/2,y:c+f+h,textAnchor:"middle",verticalAnchor:j};return Et(Et({},x),r?{height:Math.max(r.y+r.height-(c+f),0),width:u}:{})}if(i==="left"){var O={x:o-p,y:c+f/2,textAnchor:v,verticalAnchor:"middle"};return Et(Et({},O),r?{width:Math.max(O.x-r.x,0),height:f}:{})}if(i==="right"){var S={x:o+u+p,y:c+f/2,textAnchor:g,verticalAnchor:"middle"};return Et(Et({},S),r?{width:Math.max(r.x+r.width-S.x,0),height:f}:{})}var N=r?{width:u,height:f}:{};return i==="insideLeft"?Et({x:o+p,y:c+f/2,textAnchor:g,verticalAnchor:"middle"},N):i==="insideRight"?Et({x:o+u-p,y:c+f/2,textAnchor:v,verticalAnchor:"middle"},N):i==="insideTop"?Et({x:o+u/2,y:c+h,textAnchor:"middle",verticalAnchor:j},N):i==="insideBottom"?Et({x:o+u/2,y:c+f-h,textAnchor:"middle",verticalAnchor:m},N):i==="insideTopLeft"?Et({x:o+p,y:c+h,textAnchor:g,verticalAnchor:j},N):i==="insideTopRight"?Et({x:o+u-p,y:c+h,textAnchor:v,verticalAnchor:j},N):i==="insideBottomLeft"?Et({x:o+p,y:c+f-h,textAnchor:g,verticalAnchor:m},N):i==="insideBottomRight"?Et({x:o+u-p,y:c+f-h,textAnchor:v,verticalAnchor:m},N):Xo(i)&&(W(i.x)||rs(i.x))&&(W(i.y)||rs(i.y))?Et({x:o+an(i.x,u),y:c+an(i.y,f),textAnchor:"end",verticalAnchor:"end"},N):Et({x:o+u/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},N)},mie=function(t){return"cx"in t&&W(t.cx)};function Dt(e){var t=e.offset,n=t===void 0?5:t,r=iie(e,Jae),a=Et({offset:n},r),i=a.viewBox,l=a.position,o=a.value,c=a.children,u=a.content,f=a.className,d=f===void 0?"":f,h=a.textBreakAll;if(!i||le(o)&&le(c)&&!w.isValidElement(u)&&!ce(u))return null;if(w.isValidElement(u))return w.cloneElement(u,a);var m;if(ce(u)){if(m=w.createElement(u,a),w.isValidElement(m))return m}else m=uie(a);var j=mie(i),y=ae(a,!0);if(j&&(l==="insideStart"||l==="insideEnd"||l==="end"))return die(a,m,y);var p=j?hie(a):pie(a);return T.createElement(Ps,zu({className:pe("recharts-label",d)},y,p,{breakAll:h}),m)}Dt.displayName="Label";var K3=function(t){var n=t.cx,r=t.cy,a=t.angle,i=t.startAngle,l=t.endAngle,o=t.r,c=t.radius,u=t.innerRadius,f=t.outerRadius,d=t.x,h=t.y,m=t.top,j=t.left,y=t.width,p=t.height,v=t.clockWise,g=t.labelViewBox;if(g)return g;if(W(y)&&W(p)){if(W(d)&&W(h))return{x:d,y:h,width:y,height:p};if(W(m)&&W(j))return{x:m,y:j,width:y,height:p}}return W(d)&&W(h)?{x:d,y:h,width:0,height:0}:W(n)&&W(r)?{cx:n,cy:r,startAngle:i||a||0,endAngle:l||a||0,innerRadius:u||0,outerRadius:f||c||o||0,clockWise:v}:t.viewBox?t.viewBox:{}},yie=function(t,n){return t?t===!0?T.createElement(Dt,{key:"label-implicit",viewBox:n}):_t(t)?T.createElement(Dt,{key:"label-implicit",viewBox:n,value:t}):w.isValidElement(t)?t.type===Dt?w.cloneElement(t,{key:"label-implicit",viewBox:n}):T.createElement(Dt,{key:"label-implicit",content:t,viewBox:n}):ce(t)?T.createElement(Dt,{key:"label-implicit",content:t,viewBox:n}):Xo(t)?T.createElement(Dt,zu({viewBox:n},t,{key:"label-implicit"})):null:null},vie=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=K3(t),l=on(a,Dt).map(function(c,u){return w.cloneElement(c,{viewBox:n||i,key:"label-".concat(u)})});if(!r)return l;var o=yie(t.label,n||i);return[o].concat(eie(l))};Dt.parseViewBox=K3;Dt.renderCallByParent=vie;function gie(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var xie=gie;const bie=Me(xie);function Iu(e){"@babel/helpers - typeof";return Iu=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},Iu(e)}var jie=["valueAccessor"],Sie=["data","dataKey","clockWise","id","textBreakAll"];function wie(e){return Eie(e)||Aie(e)||Nie(e)||Oie()}function Oie(){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 Nie(e,t){if(e){if(typeof e=="string")return Lx(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 Lx(e,t)}}function Aie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Eie(e){if(Array.isArray(e))return Lx(e)}function Lx(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 sp(){return sp=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},sp.apply(this,arguments)}function FO(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 GO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FO(Object(n),!0).forEach(function(r){Cie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cie(e,t,n){return t=_ie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ie(e){var t=Tie(e,"string");return Iu(t)=="symbol"?t:t+""}function Tie(e,t){if(Iu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Iu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KO(e,t){if(e==null)return{};var n=kie(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 kie(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 Mie=function(t){return Array.isArray(t.value)?bie(t.value):t.value};function wr(e){var t=e.valueAccessor,n=t===void 0?Mie:t,r=KO(e,jie),a=r.data,i=r.dataKey,l=r.clockWise,o=r.id,c=r.textBreakAll,u=KO(r,Sie);return!a||!a.length?null:T.createElement(ve,{className:"recharts-label-list"},a.map(function(f,d){var h=le(i)?n(f,d):Je(f&&f.payload,i),m=le(o)?{}:{id:"".concat(o,"-").concat(d)};return T.createElement(Dt,sp({},ae(f,!0),u,m,{parentViewBox:f.parentViewBox,value:h,textBreakAll:c,viewBox:Dt.parseViewBox(le(l)?f:GO(GO({},f),{},{clockWise:l})),key:"label-".concat(d),index:d}))}))}wr.displayName="LabelList";function Pie(e,t){return e?e===!0?T.createElement(wr,{key:"labelList-implicit",data:t}):T.isValidElement(e)||ce(e)?T.createElement(wr,{key:"labelList-implicit",data:t,content:e}):Xo(e)?T.createElement(wr,sp({data:t},e,{key:"labelList-implicit"})):null:null}function $ie(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=on(r,wr).map(function(l,o){return w.cloneElement(l,{data:t,key:"labelList-".concat(o)})});if(!n)return a;var i=Pie(e.label,t);return[i].concat(wie(a))}wr.renderCallByParent=$ie;function Bu(e){"@babel/helpers - typeof";return Bu=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},Bu(e)}function zx(){return zx=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},zx.apply(this,arguments)}function YO(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 VO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YO(Object(n),!0).forEach(function(r){Rie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rie(e,t,n){return t=Die(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Die(e){var t=Lie(e,"string");return Bu(t)=="symbol"?t:t+""}function Lie(e,t){if(Bu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zie=function(t,n){var r=rn(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},hd=function(t){var n=t.cx,r=t.cy,a=t.radius,i=t.angle,l=t.sign,o=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,f=c*(o?1:-1)+a,d=Math.asin(c/f)/ip,h=u?i:i+l*d,m=Ke(n,r,f,h),j=Ke(n,r,a,h),y=u?i-l*d:i,p=Ke(n,r,f*Math.cos(d*ip),y);return{center:m,circleTangency:j,lineTangency:p,theta:d}},Y3=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,l=t.startAngle,o=t.endAngle,c=zie(l,o),u=l+c,f=Ke(n,r,i,l),d=Ke(n,r,i,u),h="M ".concat(f.x,",").concat(f.y,`
|
||
A `).concat(i,",").concat(i,`,0,
|
||
`).concat(+(Math.abs(c)>180),",").concat(+(l>u),`,
|
||
`).concat(d.x,",").concat(d.y,`
|
||
`);if(a>0){var m=Ke(n,r,a,l),j=Ke(n,r,a,u);h+="L ".concat(j.x,",").concat(j.y,`
|
||
A `).concat(a,",").concat(a,`,0,
|
||
`).concat(+(Math.abs(c)>180),",").concat(+(l<=u),`,
|
||
`).concat(m.x,",").concat(m.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},Iie=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,l=t.cornerRadius,o=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,d=rn(f-u),h=hd({cx:n,cy:r,radius:i,angle:u,sign:d,cornerRadius:l,cornerIsExternal:c}),m=h.circleTangency,j=h.lineTangency,y=h.theta,p=hd({cx:n,cy:r,radius:i,angle:f,sign:-d,cornerRadius:l,cornerIsExternal:c}),v=p.circleTangency,g=p.lineTangency,b=p.theta,x=c?Math.abs(u-f):Math.abs(u-f)-y-b;if(x<0)return o?"M ".concat(j.x,",").concat(j.y,`
|
||
a`).concat(l,",").concat(l,",0,0,1,").concat(l*2,`,0
|
||
a`).concat(l,",").concat(l,",0,0,1,").concat(-l*2,`,0
|
||
`):Y3({cx:n,cy:r,innerRadius:a,outerRadius:i,startAngle:u,endAngle:f});var O="M ".concat(j.x,",").concat(j.y,`
|
||
A`).concat(l,",").concat(l,",0,0,").concat(+(d<0),",").concat(m.x,",").concat(m.y,`
|
||
A`).concat(i,",").concat(i,",0,").concat(+(x>180),",").concat(+(d<0),",").concat(v.x,",").concat(v.y,`
|
||
A`).concat(l,",").concat(l,",0,0,").concat(+(d<0),",").concat(g.x,",").concat(g.y,`
|
||
`);if(a>0){var S=hd({cx:n,cy:r,radius:a,angle:u,sign:d,isExternal:!0,cornerRadius:l,cornerIsExternal:c}),N=S.circleTangency,A=S.lineTangency,C=S.theta,k=hd({cx:n,cy:r,radius:a,angle:f,sign:-d,isExternal:!0,cornerRadius:l,cornerIsExternal:c}),R=k.circleTangency,M=k.lineTangency,B=k.theta,_=c?Math.abs(u-f):Math.abs(u-f)-C-B;if(_<0&&l===0)return"".concat(O,"L").concat(n,",").concat(r,"Z");O+="L".concat(M.x,",").concat(M.y,`
|
||
A`).concat(l,",").concat(l,",0,0,").concat(+(d<0),",").concat(R.x,",").concat(R.y,`
|
||
A`).concat(a,",").concat(a,",0,").concat(+(_>180),",").concat(+(d>0),",").concat(N.x,",").concat(N.y,`
|
||
A`).concat(l,",").concat(l,",0,0,").concat(+(d<0),",").concat(A.x,",").concat(A.y,"Z")}else O+="L".concat(n,",").concat(r,"Z");return O},Bie={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},V3=function(t){var n=VO(VO({},Bie),t),r=n.cx,a=n.cy,i=n.innerRadius,l=n.outerRadius,o=n.cornerRadius,c=n.forceCornerRadius,u=n.cornerIsExternal,f=n.startAngle,d=n.endAngle,h=n.className;if(l<i||f===d)return null;var m=pe("recharts-sector",h),j=l-i,y=an(o,j,0,!0),p;return y>0&&Math.abs(f-d)<360?p=Iie({cx:r,cy:a,innerRadius:i,outerRadius:l,cornerRadius:Math.min(y,j/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:f,endAngle:d}):p=Y3({cx:r,cy:a,innerRadius:i,outerRadius:l,startAngle:f,endAngle:d}),T.createElement("path",zx({},ae(n,!0),{className:m,d:p,role:"img"}))};function Uu(e){"@babel/helpers - typeof";return Uu=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},Uu(e)}function Ix(){return Ix=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},Ix.apply(this,arguments)}function WO(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 XO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WO(Object(n),!0).forEach(function(r){Uie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uie(e,t,n){return t=qie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qie(e){var t=Hie(e,"string");return Uu(t)=="symbol"?t:t+""}function Hie(e,t){if(Uu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var QO={curveBasisClosed:UF,curveBasisOpen:qF,curveBasis:BF,curveBumpX:AF,curveBumpY:EF,curveLinearClosed:HF,curveLinear:$m,curveMonotoneX:FF,curveMonotoneY:GF,curveNatural:KF,curveStep:YF,curveStepAfter:WF,curveStepBefore:VF},pd=function(t){return t.x===+t.x&&t.y===+t.y},Oc=function(t){return t.x},Nc=function(t){return t.y},Fie=function(t,n){if(ce(t))return t;var r="curve".concat(Mm(t));return(r==="curveMonotone"||r==="curveBump")&&n?QO["".concat(r).concat(n==="vertical"?"Y":"X")]:QO[r]||$m},Gie=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,i=a===void 0?[]:a,l=t.baseLine,o=t.layout,c=t.connectNulls,u=c===void 0?!1:c,f=Fie(r,o),d=u?i.filter(function(y){return pd(y)}):i,h;if(Array.isArray(l)){var m=u?l.filter(function(y){return pd(y)}):l,j=d.map(function(y,p){return XO(XO({},y),{},{base:m[p]})});return o==="vertical"?h=ad().y(Nc).x1(Oc).x0(function(y){return y.base.x}):h=ad().x(Oc).y1(Nc).y0(function(y){return y.base.y}),h.defined(pd).curve(f),h(j)}return o==="vertical"&&W(l)?h=ad().y(Nc).x1(Oc).x0(l):W(l)?h=ad().x(Oc).y1(Nc).y0(l):h=Hk().x(Oc).y(Nc),h.defined(pd).curve(f),h(d)},Oi=function(t){var n=t.className,r=t.points,a=t.path,i=t.pathRef;if((!r||!r.length)&&!a)return null;var l=r&&r.length?Gie(t):a;return w.createElement("path",Ix({},ae(t,!1),Th(t),{className:pe("recharts-curve",n),d:l,ref:i}))},W3={exports:{}},Kie="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Yie=Kie,Vie=Yie;function X3(){}function Q3(){}Q3.resetWarningCache=X3;var Wie=function(){function e(r,a,i,l,o,c){if(c!==Vie){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:Q3,resetWarningCache:X3};return n.PropTypes=n,n};W3.exports=Wie();var Xie=W3.exports;const ke=Me(Xie),{getOwnPropertyNames:Qie,getOwnPropertySymbols:Zie}=Object,{hasOwnProperty:Jie}=Object.prototype;function Ov(e,t){return function(r,a,i){return e(r,a,i)&&t(r,a,i)}}function md(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);const{cache:i}=a,l=i.get(n),o=i.get(r);if(l&&o)return l===r&&o===n;i.set(n,r),i.set(r,n);const c=e(n,r,a);return i.delete(n),i.delete(r),c}}function ese(e){return e!=null?e[Symbol.toStringTag]:void 0}function ZO(e){return Qie(e).concat(Zie(e))}const tse=Object.hasOwn||((e,t)=>Jie.call(e,t));function Gs(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const nse="__v",rse="__o",ase="_owner",{getOwnPropertyDescriptor:JO,keys:eN}=Object;function ise(e,t){return e.byteLength===t.byteLength&&lp(new Uint8Array(e),new Uint8Array(t))}function sse(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 lse(e,t){return e.byteLength===t.byteLength&&lp(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function ose(e,t){return Gs(e.getTime(),t.getTime())}function cse(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function use(e,t){return e===t}function tN(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 l,o,c=0;for(;(l=i.next())&&!l.done;){const u=t.entries();let f=!1,d=0;for(;(o=u.next())&&!o.done;){if(a[d]){d++;continue}const h=l.value,m=o.value;if(n.equals(h[0],m[0],c,d,e,t,n)&&n.equals(h[1],m[1],h[0],m[0],e,t,n)){f=a[d]=!0;break}d++}if(!f)return!1;c++}return!0}const fse=Gs;function dse(e,t,n){const r=eN(e);let a=r.length;if(eN(t).length!==a)return!1;for(;a-- >0;)if(!Z3(e,t,n,r[a]))return!1;return!0}function Ac(e,t,n){const r=ZO(e);let a=r.length;if(ZO(t).length!==a)return!1;let i,l,o;for(;a-- >0;)if(i=r[a],!Z3(e,t,n,i)||(l=JO(e,i),o=JO(t,i),(l||o)&&(!l||!o||l.configurable!==o.configurable||l.enumerable!==o.enumerable||l.writable!==o.writable)))return!1;return!0}function hse(e,t){return Gs(e.valueOf(),t.valueOf())}function pse(e,t){return e.source===t.source&&e.flags===t.flags}function nN(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 l,o;for(;(l=i.next())&&!l.done;){const c=t.values();let u=!1,f=0;for(;(o=c.next())&&!o.done;){if(!a[f]&&n.equals(l.value,o.value,l.value,o.value,e,t,n)){u=a[f]=!0;break}f++}if(!u)return!1}return!0}function lp(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 mse(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 Z3(e,t,n,r){return(r===ase||r===rse||r===nse)&&(e.$$typeof||t.$$typeof)?!0:tse(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const yse="[object ArrayBuffer]",vse="[object Arguments]",gse="[object Boolean]",xse="[object DataView]",bse="[object Date]",jse="[object Error]",Sse="[object Map]",wse="[object Number]",Ose="[object Object]",Nse="[object RegExp]",Ase="[object Set]",Ese="[object String]",Cse={"[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},_se="[object URL]",Tse=Object.prototype.toString;function kse({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:l,areNumbersEqual:o,areObjectsEqual:c,arePrimitiveWrappersEqual:u,areRegExpsEqual:f,areSetsEqual:d,areTypedArraysEqual:h,areUrlsEqual:m,unknownTagComparators:j}){return function(p,v,g){if(p===v)return!0;if(p==null||v==null)return!1;const b=typeof p;if(b!==typeof v)return!1;if(b!=="object")return b==="number"?o(p,v,g):b==="function"?i(p,v,g):!1;const x=p.constructor;if(x!==v.constructor)return!1;if(x===Object)return c(p,v,g);if(Array.isArray(p))return t(p,v,g);if(x===Date)return r(p,v,g);if(x===RegExp)return f(p,v,g);if(x===Map)return l(p,v,g);if(x===Set)return d(p,v,g);const O=Tse.call(p);if(O===bse)return r(p,v,g);if(O===Nse)return f(p,v,g);if(O===Sse)return l(p,v,g);if(O===Ase)return d(p,v,g);if(O===Ose)return typeof p.then!="function"&&typeof v.then!="function"&&c(p,v,g);if(O===_se)return m(p,v,g);if(O===jse)return a(p,v,g);if(O===vse)return c(p,v,g);if(Cse[O])return h(p,v,g);if(O===yse)return e(p,v,g);if(O===xse)return n(p,v,g);if(O===gse||O===wse||O===Ese)return u(p,v,g);if(j){let S=j[O];if(!S){const N=ese(p);N&&(S=j[N])}if(S)return S(p,v,g)}return!1}}function Mse({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:ise,areArraysEqual:n?Ac:sse,areDataViewsEqual:lse,areDatesEqual:ose,areErrorsEqual:cse,areFunctionsEqual:use,areMapsEqual:n?Ov(tN,Ac):tN,areNumbersEqual:fse,areObjectsEqual:n?Ac:dse,arePrimitiveWrappersEqual:hse,areRegExpsEqual:pse,areSetsEqual:n?Ov(nN,Ac):nN,areTypedArraysEqual:n?Ov(lp,Ac):lp,areUrlsEqual:mse,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=md(r.areArraysEqual),i=md(r.areMapsEqual),l=md(r.areObjectsEqual),o=md(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:l,areSetsEqual:o})}return r}function Pse(e){return function(t,n,r,a,i,l,o){return e(t,n,o)}}function $se({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(o,c){const{cache:u=e?new WeakMap:void 0,meta:f}=n();return t(o,c,{cache:u,equals:r,meta:f,strict:a})};if(e)return function(o,c){return t(o,c,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const i={cache:void 0,equals:r,meta:void 0,strict:a};return function(o,c){return t(o,c,i)}}const Rse=Ii();Ii({strict:!0});Ii({circular:!0});Ii({circular:!0,strict:!0});Ii({createInternalComparator:()=>Gs});Ii({strict:!0,createInternalComparator:()=>Gs});Ii({circular:!0,createInternalComparator:()=>Gs});Ii({circular:!0,createInternalComparator:()=>Gs,strict:!0});function Ii(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,i=Mse(e),l=kse(i),o=n?n(l):Pse(l);return $se({circular:t,comparator:l,createState:r,equals:o,strict:a})}function Dse(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function rN(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):Dse(a)};requestAnimationFrame(r)}function Bx(e){"@babel/helpers - typeof";return Bx=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},Bx(e)}function Lse(e){return Use(e)||Bse(e)||Ise(e)||zse()}function zse(){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 Ise(e,t){if(e){if(typeof e=="string")return aN(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 aN(e,t)}}function aN(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 Bse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Use(e){if(Array.isArray(e))return e}function qse(){var e={},t=function(){return null},n=!1,r=function a(i){if(!n){if(Array.isArray(i)){if(!i.length)return;var l=i,o=Lse(l),c=o[0],u=o.slice(1);if(typeof c=="number"){rN(a.bind(null,u),c);return}a(c),rN(a.bind(null,u));return}Bx(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 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 iN(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 sN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iN(Object(n),!0).forEach(function(r){J3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function J3(e,t,n){return t=Hse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hse(e){var t=Fse(e,"string");return qu(t)==="symbol"?t:String(t)}function Fse(e,t){if(qu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gse=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(i){return a.includes(i)})})},Kse=function(t){return t},Yse=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Qc=function(t,n){return Object.keys(n).reduce(function(r,a){return sN(sN({},r),{},J3({},a,t(a,n[a])))},{})},lN=function(t,n,r){return t.map(function(a){return"".concat(Yse(a)," ").concat(n,"ms ").concat(r)}).join(",")};function Vse(e,t){return Qse(e)||Xse(e,t)||eP(e,t)||Wse()}function Wse(){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 Xse(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function Qse(e){if(Array.isArray(e))return e}function Zse(e){return tle(e)||ele(e)||eP(e)||Jse()}function Jse(){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 eP(e,t){if(e){if(typeof e=="string")return Ux(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 Ux(e,t)}}function ele(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tle(e){if(Array.isArray(e))return Ux(e)}function Ux(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 op=1e-4,tP=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},nP=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},oN=function(t,n){return function(r){var a=tP(t,n);return nP(a,r)}},nle=function(t,n){return function(r){var a=tP(t,n),i=[].concat(Zse(a.map(function(l,o){return l*o}).slice(1)),[0]);return nP(i,r)}},cN=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],l=n[2],o=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,i=0,l=1,o=1;break;case"ease":a=.25,i=.1,l=.25,o=1;break;case"ease-in":a=.42,i=0,l=1,o=1;break;case"ease-out":a=.42,i=0,l=.58,o=1;break;case"ease-in-out":a=0,i=0,l=.58,o=1;break;default:{var c=n[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var u=c[1].split(")")[0].split(",").map(function(p){return parseFloat(p)}),f=Vse(u,4);a=f[0],i=f[1],l=f[2],o=f[3]}}}var d=oN(a,l),h=oN(i,o),m=nle(a,l),j=function(v){return v>1?1:v<0?0:v},y=function(v){for(var g=v>1?1:v,b=g,x=0;x<8;++x){var O=d(b)-g,S=m(b);if(Math.abs(O-g)<op||S<op)return h(b);b=j(b-O/S)}return h(b)};return y.isStepper=!1,y},rle=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,l=t.dt,o=l===void 0?17:l,c=function(f,d,h){var m=-(f-d)*r,j=h*i,y=h+(m-j)*o/1e3,p=h*o/1e3+f;return Math.abs(p-d)<op&&Math.abs(y)<op?[d,0]:[p,y]};return c.isStepper=!0,c.dt=o,c},ale=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 cN(a);case"spring":return rle();default:if(a.split("(")[0]==="cubic-bezier")return cN(a)}return typeof a=="function"?a:null};function Hu(e){"@babel/helpers - typeof";return Hu=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},Hu(e)}function uN(e){return lle(e)||sle(e)||rP(e)||ile()}function ile(){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 sle(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lle(e){if(Array.isArray(e))return Hx(e)}function fN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fN(Object(n),!0).forEach(function(r){qx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qx(e,t,n){return t=ole(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ole(e){var t=cle(e,"string");return Hu(t)==="symbol"?t:String(t)}function cle(e,t){if(Hu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ule(e,t){return hle(e)||dle(e,t)||rP(e,t)||fle()}function fle(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rP(e,t){if(e){if(typeof e=="string")return Hx(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 Hx(e,t)}}function Hx(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 dle(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function hle(e){if(Array.isArray(e))return e}var cp=function(t,n,r){return t+(n-t)*r},Fx=function(t){var n=t.from,r=t.to;return n!==r},ple=function e(t,n,r){var a=Qc(function(i,l){if(Fx(l)){var o=t(l.from,l.to,l.velocity),c=ule(o,2),u=c[0],f=c[1];return Bt(Bt({},l),{},{from:u,velocity:f})}return l},n);return r<1?Qc(function(i,l){return Fx(l)?Bt(Bt({},l),{},{velocity:cp(l.velocity,a[i].velocity,r),from:cp(l.from,a[i].from,r)}):l},n):e(t,a,r-1)};const mle=function(e,t,n,r,a){var i=Gse(e,t),l=i.reduce(function(p,v){return Bt(Bt({},p),{},qx({},v,[e[v],t[v]]))},{}),o=i.reduce(function(p,v){return Bt(Bt({},p),{},qx({},v,{from:e[v],velocity:0,to:t[v]}))},{}),c=-1,u,f,d=function(){return null},h=function(){return Qc(function(v,g){return g.from},o)},m=function(){return!Object.values(o).filter(Fx).length},j=function(v){u||(u=v);var g=v-u,b=g/n.dt;o=ple(n,o,b),a(Bt(Bt(Bt({},e),t),h())),u=v,m()||(c=requestAnimationFrame(d))},y=function(v){f||(f=v);var g=(v-f)/r,b=Qc(function(O,S){return cp.apply(void 0,uN(S).concat([n(g)]))},l);if(a(Bt(Bt(Bt({},e),t),b)),g<1)c=requestAnimationFrame(d);else{var x=Qc(function(O,S){return cp.apply(void 0,uN(S).concat([n(1)]))},l);a(Bt(Bt(Bt({},e),t),x))}};return d=n.isStepper?j:y,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(c)}}};function vo(e){"@babel/helpers - typeof";return vo=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},vo(e)}var yle=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function vle(e,t){if(e==null)return{};var n=gle(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 gle(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 Nv(e){return Sle(e)||jle(e)||ble(e)||xle()}function xle(){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 ble(e,t){if(e){if(typeof e=="string")return Gx(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 Gx(e,t)}}function jle(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Sle(e){if(Array.isArray(e))return Gx(e)}function Gx(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 dN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dN(Object(n),!0).forEach(function(r){Pc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pc(e,t,n){return t=aP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,aP(r.key),r)}}function Nle(e,t,n){return t&&Ole(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aP(e){var t=Ale(e,"string");return vo(t)==="symbol"?t:String(t)}function Ale(e,t){if(vo(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vo(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ele(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&&Kx(e,t)}function Kx(e,t){return Kx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Kx(e,t)}function Cle(e){var t=_le();return function(){var r=up(e),a;if(t){var i=up(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return Yx(this,a)}}function Yx(e,t){if(t&&(vo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vx(e)}function Vx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _le(){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 up(e){return up=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},up(e)}var lr=function(e){Ele(n,e);var t=Cle(n);function n(r,a){var i;wle(this,n),i=t.call(this,r,a);var l=i.props,o=l.isActive,c=l.attributeName,u=l.from,f=l.to,d=l.steps,h=l.children,m=l.duration;if(i.handleStyleChange=i.handleStyleChange.bind(Vx(i)),i.changeStyle=i.changeStyle.bind(Vx(i)),!o||m<=0)return i.state={style:{}},typeof h=="function"&&(i.state={style:f}),Yx(i);if(d&&d.length)i.state={style:d[0].style};else if(u){if(typeof h=="function")return i.state={style:u},Yx(i);i.state={style:c?Pc({},c,u):u}}else i.state={style:{}};return i}return Nle(n,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,l=a.canBegin;this.mounted=!0,!(!i||!l)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,l=i.isActive,o=i.canBegin,c=i.attributeName,u=i.shouldReAnimate,f=i.to,d=i.from,h=this.state.style;if(o){if(!l){var m={style:c?Pc({},c,f):f};this.state&&h&&(c&&h[c]!==f||!c&&h!==f)&&this.setState(m);return}if(!(Rse(a.to,f)&&a.canBegin&&a.isActive)){var j=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=j||u?d:a.to;if(this.state&&h){var p={style:c?Pc({},c,y):y};(c&&h[c]!==y||!c&&h!==y)&&this.setState(p)}this.runAnimation(hr(hr({},this.props),{},{from:y,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,l=a.from,o=a.to,c=a.duration,u=a.easing,f=a.begin,d=a.onAnimationEnd,h=a.onAnimationStart,m=mle(l,o,ale(u),c,this.changeStyle),j=function(){i.stopJSAnimation=m()};this.manager.start([h,f,j,c,d])}},{key:"runStepAnimation",value:function(a){var i=this,l=a.steps,o=a.begin,c=a.onAnimationStart,u=l[0],f=u.style,d=u.duration,h=d===void 0?0:d,m=function(y,p,v){if(v===0)return y;var g=p.duration,b=p.easing,x=b===void 0?"ease":b,O=p.style,S=p.properties,N=p.onAnimationEnd,A=v>0?l[v-1]:p,C=S||Object.keys(O);if(typeof x=="function"||x==="spring")return[].concat(Nv(y),[i.runJSAnimation.bind(i,{from:A.style,to:O,duration:g,easing:x}),g]);var k=lN(C,g,x),R=hr(hr(hr({},A.style),O),{},{transition:k});return[].concat(Nv(y),[R,g,N]).filter(Kse)};return this.manager.start([c].concat(Nv(l.reduce(m,[f,Math.max(h,o)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=qse());var i=a.begin,l=a.duration,o=a.attributeName,c=a.to,u=a.easing,f=a.onAnimationStart,d=a.onAnimationEnd,h=a.steps,m=a.children,j=this.manager;if(this.unSubscribe=j.subscribe(this.handleStyleChange),typeof u=="function"||typeof m=="function"||u==="spring"){this.runJSAnimation(a);return}if(h.length>1){this.runStepAnimation(a);return}var y=o?Pc({},o,c):c,p=lN(Object.keys(y),l,u);j.start([f,i,hr(hr({},y),{},{transition:p}),l,d])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var l=a.duration;a.attributeName,a.easing;var o=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var c=vle(a,yle),u=w.Children.count(i),f=this.state.style;if(typeof i=="function")return i(f);if(!o||u===0||l<=0)return i;var d=function(m){var j=m.props,y=j.style,p=y===void 0?{}:y,v=j.className,g=w.cloneElement(m,hr(hr({},c),{},{style:hr(hr({},p),f),className:v}));return g};return u===1?d(w.Children.only(i)):T.createElement("div",null,w.Children.map(i,function(h){return d(h)}))}}]),n}(w.PureComponent);lr.displayName="Animate";lr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};lr.propTypes={from:ke.oneOfType([ke.object,ke.string]),to:ke.oneOfType([ke.object,ke.string]),attributeName:ke.string,duration:ke.number,begin:ke.number,easing:ke.oneOfType([ke.string,ke.func]),steps:ke.arrayOf(ke.shape({duration:ke.number.isRequired,style:ke.object.isRequired,easing:ke.oneOfType([ke.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ke.func]),properties:ke.arrayOf("string"),onAnimationEnd:ke.func})),children:ke.oneOfType([ke.node,ke.func]),isActive:ke.bool,canBegin:ke.bool,onAnimationEnd:ke.func,shouldReAnimate:ke.bool,onAnimationStart:ke.func,onAnimationReStart:ke.func};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)}function fp(){return fp=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},fp.apply(this,arguments)}function Tle(e,t){return $le(e)||Ple(e,t)||Mle(e,t)||kle()}function kle(){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 Mle(e,t){if(e){if(typeof e=="string")return hN(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 hN(e,t)}}function hN(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,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function $le(e){if(Array.isArray(e))return e}function pN(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 mN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pN(Object(n),!0).forEach(function(r){Rle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rle(e,t,n){return t=Dle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dle(e){var t=Lle(e,"string");return Fu(t)=="symbol"?t:t+""}function Lle(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)}var yN=function(t,n,r,a,i){var l=Math.min(Math.abs(r)/2,Math.abs(a)/2),o=a>=0?1:-1,c=r>=0?1:-1,u=a>=0&&r>=0||a<0&&r<0?1:0,f;if(l>0&&i instanceof Array){for(var d=[0,0,0,0],h=0,m=4;h<m;h++)d[h]=i[h]>l?l:i[h];f="M".concat(t,",").concat(n+o*d[0]),d[0]>0&&(f+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(u,",").concat(t+c*d[0],",").concat(n)),f+="L ".concat(t+r-c*d[1],",").concat(n),d[1]>0&&(f+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(u,`,
|
||
`).concat(t+r,",").concat(n+o*d[1])),f+="L ".concat(t+r,",").concat(n+a-o*d[2]),d[2]>0&&(f+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(u,`,
|
||
`).concat(t+r-c*d[2],",").concat(n+a)),f+="L ".concat(t+c*d[3],",").concat(n+a),d[3]>0&&(f+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(u,`,
|
||
`).concat(t,",").concat(n+a-o*d[3])),f+="Z"}else if(l>0&&i===+i&&i>0){var j=Math.min(l,i);f="M ".concat(t,",").concat(n+o*j,`
|
||
A `).concat(j,",").concat(j,",0,0,").concat(u,",").concat(t+c*j,",").concat(n,`
|
||
L `).concat(t+r-c*j,",").concat(n,`
|
||
A `).concat(j,",").concat(j,",0,0,").concat(u,",").concat(t+r,",").concat(n+o*j,`
|
||
L `).concat(t+r,",").concat(n+a-o*j,`
|
||
A `).concat(j,",").concat(j,",0,0,").concat(u,",").concat(t+r-c*j,",").concat(n+a,`
|
||
L `).concat(t+c*j,",").concat(n+a,`
|
||
A `).concat(j,",").concat(j,",0,0,").concat(u,",").concat(t,",").concat(n+a-o*j," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return f},zle=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,i=n.x,l=n.y,o=n.width,c=n.height;if(Math.abs(o)>0&&Math.abs(c)>0){var u=Math.min(i,i+o),f=Math.max(i,i+o),d=Math.min(l,l+c),h=Math.max(l,l+c);return r>=u&&r<=f&&a>=d&&a<=h}return!1},Ile={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Y1=function(t){var n=mN(mN({},Ile),t),r=w.useRef(),a=w.useState(-1),i=Tle(a,2),l=i[0],o=i[1];w.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var x=r.current.getTotalLength();x&&o(x)}catch{}},[]);var c=n.x,u=n.y,f=n.width,d=n.height,h=n.radius,m=n.className,j=n.animationEasing,y=n.animationDuration,p=n.animationBegin,v=n.isAnimationActive,g=n.isUpdateAnimationActive;if(c!==+c||u!==+u||f!==+f||d!==+d||f===0||d===0)return null;var b=pe("recharts-rectangle",m);return g?T.createElement(lr,{canBegin:l>0,from:{width:f,height:d,x:c,y:u},to:{width:f,height:d,x:c,y:u},duration:y,animationEasing:j,isActive:g},function(x){var O=x.width,S=x.height,N=x.x,A=x.y;return T.createElement(lr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:y,isActive:v,easing:j},T.createElement("path",fp({},ae(n,!0),{className:b,d:yN(N,A,O,S,h),ref:r})))}):T.createElement("path",fp({},ae(n,!0),{className:b,d:yN(c,u,f,d,h)}))},Ble=["points","className","baseLinePoints","connectNulls"];function jl(){return jl=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},jl.apply(this,arguments)}function Ule(e,t){if(e==null)return{};var n=qle(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 qle(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 vN(e){return Kle(e)||Gle(e)||Fle(e)||Hle()}function Hle(){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 Fle(e,t){if(e){if(typeof e=="string")return Wx(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 Wx(e,t)}}function Gle(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kle(e){if(Array.isArray(e))return Wx(e)}function Wx(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 gN=function(t){return t&&t.x===+t.x&&t.y===+t.y},Yle=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){gN(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),gN(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Zc=function(t,n){var r=Yle(t);n&&(r=[r.reduce(function(i,l){return[].concat(vN(i),vN(l))},[])]);var a=r.map(function(i){return i.reduce(function(l,o,c){return"".concat(l).concat(c===0?"M":"L").concat(o.x,",").concat(o.y)},"")}).join("");return r.length===1?"".concat(a,"Z"):a},Vle=function(t,n,r){var a=Zc(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(Zc(n.reverse(),r).slice(1))},Wle=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,i=t.connectNulls,l=Ule(t,Ble);if(!n||!n.length)return null;var o=pe("recharts-polygon",r);if(a&&a.length){var c=l.stroke&&l.stroke!=="none",u=Vle(n,a,i);return T.createElement("g",{className:o},T.createElement("path",jl({},ae(l,!0),{fill:u.slice(-1)==="Z"?l.fill:"none",stroke:"none",d:u})),c?T.createElement("path",jl({},ae(l,!0),{fill:"none",d:Zc(n,i)})):null,c?T.createElement("path",jl({},ae(l,!0),{fill:"none",d:Zc(a,i)})):null)}var f=Zc(n,i);return T.createElement("path",jl({},ae(l,!0),{fill:f.slice(-1)==="Z"?l.fill:"none",className:o,d:f}))};function Xx(){return Xx=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},Xx.apply(this,arguments)}var $f=function(t){var n=t.cx,r=t.cy,a=t.r,i=t.className,l=pe("recharts-dot",i);return n===+n&&r===+r&&a===+a?w.createElement("circle",Xx({},ae(t,!1),Th(t),{className:l,cx:n,cy:r,r:a})):null};function Gu(e){"@babel/helpers - typeof";return Gu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gu(e)}var Xle=["x","y","top","left","width","height","className"];function Qx(){return Qx=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},Qx.apply(this,arguments)}function xN(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 Qle(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xN(Object(n),!0).forEach(function(r){Zle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zle(e,t,n){return t=Jle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jle(e){var t=eoe(e,"string");return Gu(t)=="symbol"?t:t+""}function eoe(e,t){if(Gu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function toe(e,t){if(e==null)return{};var n=noe(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 noe(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 roe=function(t,n,r,a,i,l){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(l,",").concat(n,"h").concat(r)},aoe=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,l=t.top,o=l===void 0?0:l,c=t.left,u=c===void 0?0:c,f=t.width,d=f===void 0?0:f,h=t.height,m=h===void 0?0:h,j=t.className,y=toe(t,Xle),p=Qle({x:r,y:i,top:o,left:u,width:d,height:m},y);return!W(r)||!W(i)||!W(d)||!W(m)||!W(o)||!W(u)?null:T.createElement("path",Qx({},ae(p,!0),{className:pe("recharts-cross",j),d:roe(r,i,d,m,o,u)}))},ioe=Km,soe=y3,loe=ea;function ooe(e,t){return e&&e.length?ioe(e,loe(t),soe):void 0}var coe=ooe;const uoe=Me(coe);var foe=Km,doe=ea,hoe=v3;function poe(e,t){return e&&e.length?foe(e,doe(t),hoe):void 0}var moe=poe;const yoe=Me(moe);var voe=["cx","cy","angle","ticks","axisLine"],goe=["ticks","tick","angle","tickFormatter","stroke"];function go(e){"@babel/helpers - typeof";return go=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},go(e)}function Jc(){return Jc=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},Jc.apply(this,arguments)}function bN(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 Ki(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bN(Object(n),!0).forEach(function(r){Xm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jN(e,t){if(e==null)return{};var n=xoe(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 xoe(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 boe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SN(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,sP(r.key),r)}}function joe(e,t,n){return t&&SN(e.prototype,t),n&&SN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Soe(e,t,n){return t=dp(t),woe(e,iP()?Reflect.construct(t,n||[],dp(e).constructor):t.apply(e,n))}function woe(e,t){if(t&&(go(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ooe(e)}function Ooe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iP=function(){return!!e})()}function dp(e){return dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dp(e)}function Noe(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&&Zx(e,t)}function Zx(e,t){return Zx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Zx(e,t)}function Xm(e,t,n){return t=sP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sP(e){var t=Aoe(e,"string");return go(t)=="symbol"?t:t+""}function Aoe(e,t){if(go(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(go(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qm=function(e){function t(){return boe(this,t),Soe(this,t,arguments)}return Noe(t,e),joe(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,i=this.props,l=i.angle,o=i.cx,c=i.cy;return Ke(o,c,a,l)}},{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,l=r.angle,o=r.ticks,c=uoe(o,function(f){return f.coordinate||0}),u=yoe(o,function(f){return f.coordinate||0});return{cx:a,cy:i,startAngle:l,endAngle:l,innerRadius:u.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,l=r.angle,o=r.ticks,c=r.axisLine,u=jN(r,voe),f=o.reduce(function(j,y){return[Math.min(j[0],y.coordinate),Math.max(j[1],y.coordinate)]},[1/0,-1/0]),d=Ke(a,i,f[0],l),h=Ke(a,i,f[1],l),m=Ki(Ki(Ki({},ae(u,!1)),{},{fill:"none"},ae(c,!1)),{},{x1:d.x,y1:d.y,x2:h.x,y2:h.y});return T.createElement("line",Jc({className:"recharts-polar-radius-axis-line"},m))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,l=a.tick,o=a.angle,c=a.tickFormatter,u=a.stroke,f=jN(a,goe),d=this.getTickTextAnchor(),h=ae(f,!1),m=ae(l,!1),j=i.map(function(y,p){var v=r.getTickValueCoord(y),g=Ki(Ki(Ki(Ki({textAnchor:d,transform:"rotate(".concat(90-o,", ").concat(v.x,", ").concat(v.y,")")},h),{},{stroke:"none",fill:u},m),{},{index:p},v),{},{payload:y});return T.createElement(ve,Jc({className:pe("recharts-polar-radius-axis-tick",G3(l)),key:"tick-".concat(y.coordinate)},Ti(r.props,y,p)),t.renderTickItem(l,g,c?c(y.value,p):y.value))});return T.createElement(ve,{className:"recharts-polar-radius-axis-ticks"},j)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.axisLine,l=r.tick;return!a||!a.length?null:T.createElement(ve,{className:pe("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),l&&this.renderTicks(),Dt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,i){var l;return T.isValidElement(r)?l=T.cloneElement(r,a):ce(r)?l=r(a):l=T.createElement(Ps,Jc({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),l}}])}(w.PureComponent);Xm(Qm,"displayName","PolarRadiusAxis");Xm(Qm,"axisType","radiusAxis");Xm(Qm,"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 xo(e){"@babel/helpers - typeof";return xo=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},xo(e)}function ts(){return ts=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},ts.apply(this,arguments)}function wN(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 Yi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wN(Object(n),!0).forEach(function(r){Zm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Eoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ON(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,oP(r.key),r)}}function Coe(e,t,n){return t&&ON(e.prototype,t),n&&ON(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _oe(e,t,n){return t=hp(t),Toe(e,lP()?Reflect.construct(t,n||[],hp(e).constructor):t.apply(e,n))}function Toe(e,t){if(t&&(xo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return koe(e)}function koe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lP=function(){return!!e})()}function hp(e){return hp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hp(e)}function Moe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jx(e,t)}function Jx(e,t){return Jx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Jx(e,t)}function Zm(e,t,n){return t=oP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oP(e){var t=Poe(e,"string");return xo(t)=="symbol"?t:t+""}function Poe(e,t){if(xo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $oe=Math.PI/180,NN=1e-5,Jm=function(e){function t(){return Eoe(this,t),_oe(this,t,arguments)}return Moe(t,e),Coe(t,[{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.cx,l=a.cy,o=a.radius,c=a.orientation,u=a.tickSize,f=u||8,d=Ke(i,l,o,r.coordinate),h=Ke(i,l,o+(c==="inner"?-1:1)*f,r.coordinate);return{x1:d.x,y1:d.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(r){var a=this.props.orientation,i=Math.cos(-r.coordinate*$oe),l;return i>NN?l=a==="outer"?"start":"end":i<-NN?l=a==="outer"?"end":"start":l="middle",l}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,l=r.radius,o=r.axisLine,c=r.axisLineType,u=Yi(Yi({},ae(this.props,!1)),{},{fill:"none"},ae(o,!1));if(c==="circle")return T.createElement($f,ts({className:"recharts-polar-angle-axis-line"},u,{cx:a,cy:i,r:l}));var f=this.props.ticks,d=f.map(function(h){return Ke(a,i,l,h.coordinate)});return T.createElement(Wle,ts({className:"recharts-polar-angle-axis-line"},u,{points:d}))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,l=a.tick,o=a.tickLine,c=a.tickFormatter,u=a.stroke,f=ae(this.props,!1),d=ae(l,!1),h=Yi(Yi({},f),{},{fill:"none"},ae(o,!1)),m=i.map(function(j,y){var p=r.getTickLineCoord(j),v=r.getTickTextAnchor(j),g=Yi(Yi(Yi({textAnchor:v},f),{},{stroke:"none",fill:u},d),{},{index:y,payload:j,x:p.x2,y:p.y2});return T.createElement(ve,ts({className:pe("recharts-polar-angle-axis-tick",G3(l)),key:"tick-".concat(j.coordinate)},Ti(r.props,j,y)),o&&T.createElement("line",ts({className:"recharts-polar-angle-axis-tick-line"},h,p)),l&&t.renderTickItem(l,g,c?c(j.value,y):j.value))});return T.createElement(ve,{className:"recharts-polar-angle-axis-ticks"},m)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.radius,l=r.axisLine;return i<=0||!a||!a.length?null:T.createElement(ve,{className:pe("recharts-polar-angle-axis",this.props.className)},l&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,i){var l;return T.isValidElement(r)?l=T.cloneElement(r,a):ce(r)?l=r(a):l=T.createElement(Ps,ts({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),l}}])}(w.PureComponent);Zm(Jm,"displayName","PolarAngleAxis");Zm(Jm,"axisType","angleAxis");Zm(Jm,"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 Roe=hM,Doe=Roe(Object.getPrototypeOf,Object),Loe=Doe,zoe=Ra,Ioe=Loe,Boe=Da,Uoe="[object Object]",qoe=Function.prototype,Hoe=Object.prototype,cP=qoe.toString,Foe=Hoe.hasOwnProperty,Goe=cP.call(Object);function Koe(e){if(!Boe(e)||zoe(e)!=Uoe)return!1;var t=Ioe(e);if(t===null)return!0;var n=Foe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&cP.call(n)==Goe}var Yoe=Koe;const Voe=Me(Yoe);var Woe=Ra,Xoe=Da,Qoe="[object Boolean]";function Zoe(e){return e===!0||e===!1||Xoe(e)&&Woe(e)==Qoe}var Joe=Zoe;const ece=Me(Joe);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 pp(){return pp=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},pp.apply(this,arguments)}function tce(e,t){return ice(e)||ace(e,t)||rce(e,t)||nce()}function nce(){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 rce(e,t){if(e){if(typeof e=="string")return AN(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 AN(e,t)}}function AN(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 ace(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function ice(e){if(Array.isArray(e))return e}function EN(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 CN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EN(Object(n),!0).forEach(function(r){sce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sce(e,t,n){return t=lce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lce(e){var t=oce(e,"string");return Ku(t)=="symbol"?t:t+""}function oce(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)}var _N=function(t,n,r,a,i){var l=r-a,o;return o="M ".concat(t,",").concat(n),o+="L ".concat(t+r,",").concat(n),o+="L ".concat(t+r-l/2,",").concat(n+i),o+="L ".concat(t+r-l/2-a,",").concat(n+i),o+="L ".concat(t,",").concat(n," Z"),o},cce={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},uce=function(t){var n=CN(CN({},cce),t),r=w.useRef(),a=w.useState(-1),i=tce(a,2),l=i[0],o=i[1];w.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var b=r.current.getTotalLength();b&&o(b)}catch{}},[]);var c=n.x,u=n.y,f=n.upperWidth,d=n.lowerWidth,h=n.height,m=n.className,j=n.animationEasing,y=n.animationDuration,p=n.animationBegin,v=n.isUpdateAnimationActive;if(c!==+c||u!==+u||f!==+f||d!==+d||h!==+h||f===0&&d===0||h===0)return null;var g=pe("recharts-trapezoid",m);return v?T.createElement(lr,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:h,x:c,y:u},to:{upperWidth:f,lowerWidth:d,height:h,x:c,y:u},duration:y,animationEasing:j,isActive:v},function(b){var x=b.upperWidth,O=b.lowerWidth,S=b.height,N=b.x,A=b.y;return T.createElement(lr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:y,easing:j},T.createElement("path",pp({},ae(n,!0),{className:g,d:_N(N,A,x,O,S),ref:r})))}):T.createElement("g",null,T.createElement("path",pp({},ae(n,!0),{className:g,d:_N(c,u,f,d,h)})))},fce=["option","shapeType","propTransformer","activeClassName","isActive"];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 dce(e,t){if(e==null)return{};var n=hce(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 hce(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 TN(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 mp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TN(Object(n),!0).forEach(function(r){pce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pce(e,t,n){return t=mce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mce(e){var t=yce(e,"string");return Yu(t)=="symbol"?t:t+""}function yce(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)}function vce(e,t){return mp(mp({},t),e)}function gce(e,t){return e==="symbols"}function kN(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return T.createElement(Y1,n);case"trapezoid":return T.createElement(uce,n);case"sector":return T.createElement(V3,n);case"symbols":if(gce(t))return T.createElement(Dm,n);break;default:return null}}function xce(e){return w.isValidElement(e)?e.props:e}function yp(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?vce:r,i=e.activeClassName,l=i===void 0?"recharts-active-shape":i,o=e.isActive,c=dce(e,fce),u;if(w.isValidElement(t))u=w.cloneElement(t,mp(mp({},c),xce(t)));else if(ce(t))u=t(c);else if(Voe(t)&&!ece(t)){var f=a(t,c);u=T.createElement(kN,{shapeType:n,elementProps:f})}else{var d=c;u=T.createElement(kN,{shapeType:n,elementProps:d})}return o?T.createElement(ve,{className:l},u):u}function ey(e,t){return t!=null&&"trapezoids"in e.props}function ty(e,t){return t!=null&&"sectors"in e.props}function Vu(e,t){return t!=null&&"points"in e.props}function bce(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 jce(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Sce(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function wce(e,t){var n;return ey(e,t)?n=bce:ty(e,t)?n=jce:Vu(e,t)&&(n=Sce),n}function Oce(e,t){var n;return ey(e,t)?n="trapezoids":ty(e,t)?n="sectors":Vu(e,t)&&(n="points"),n}function Nce(e,t){if(ey(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(ty(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 Vu(e,t)?t.payload:{}}function Ace(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=Oce(n,t),i=Nce(n,t),l=r.filter(function(c,u){var f=ki(i,c),d=n.props[a].filter(function(j){var y=wce(n,t);return y(j,t)}),h=n.props[a].indexOf(d[d.length-1]),m=u===h;return f&&m}),o=r.indexOf(l[l.length-1]);return o}var Kd;function bo(e){"@babel/helpers - typeof";return bo=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},bo(e)}function Sl(){return Sl=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},Sl.apply(this,arguments)}function MN(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 He(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MN(Object(n),!0).forEach(function(r){Jn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ece(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fP(r.key),r)}}function Cce(e,t,n){return t&&PN(e.prototype,t),n&&PN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _ce(e,t,n){return t=vp(t),Tce(e,uP()?Reflect.construct(t,n||[],vp(e).constructor):t.apply(e,n))}function Tce(e,t){if(t&&(bo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kce(e)}function kce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uP=function(){return!!e})()}function vp(e){return vp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vp(e)}function Mce(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&&eb(e,t)}function eb(e,t){return eb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},eb(e,t)}function Jn(e,t,n){return t=fP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fP(e){var t=Pce(e,"string");return bo(t)=="symbol"?t:t+""}function Pce(e,t){if(bo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ia=function(e){function t(n){var r;return Ece(this,t),r=_ce(this,t,[n]),Jn(r,"pieRef",null),Jn(r,"sectorRefs",[]),Jn(r,"id",Di("recharts-pie-")),Jn(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ce(a)&&a()}),Jn(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ce(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return Mce(t,e),Cce(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,l=i.label,o=i.labelLine,c=i.dataKey,u=i.valueKey,f=ae(this.props,!1),d=ae(l,!1),h=ae(o,!1),m=l&&l.offsetRadius||20,j=r.map(function(y,p){var v=(y.startAngle+y.endAngle)/2,g=Ke(y.cx,y.cy,y.outerRadius+m,v),b=He(He(He(He({},f),y),{},{stroke:"none"},d),{},{index:p,textAnchor:t.getTextAnchor(g.x,y.cx)},g),x=He(He(He(He({},f),y),{},{fill:"none",stroke:y.fill},h),{},{index:p,points:[Ke(y.cx,y.cy,y.outerRadius,v),g]}),O=c;return le(c)&&le(u)?O="value":le(c)&&(O=u),T.createElement(ve,{key:"label-".concat(y.startAngle,"-").concat(y.endAngle,"-").concat(y.midAngle,"-").concat(p)},o&&t.renderLabelLineItem(o,x,"line"),t.renderLabelItem(l,b,Je(y,O)))});return T.createElement(ve,{className:"recharts-pie-labels"},j)}},{key:"renderSectorsStatically",value:function(r){var a=this,i=this.props,l=i.activeShape,o=i.blendStroke,c=i.inactiveShape;return r.map(function(u,f){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var d=a.isActiveIndex(f),h=c&&a.hasActiveIndex()?c:null,m=d?l:h,j=He(He({},u),{},{stroke:o?u.fill:u.stroke,tabIndex:-1});return T.createElement(ve,Sl({ref:function(p){p&&!a.sectorRefs.includes(p)&&a.sectorRefs.push(p)},tabIndex:-1,className:"recharts-pie-sector"},Ti(a.props,u,f),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(f)}),T.createElement(yp,Sl({option:m,isActive:d,shapeType:"sector"},j)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,a=this.props,i=a.sectors,l=a.isAnimationActive,o=a.animationBegin,c=a.animationDuration,u=a.animationEasing,f=a.animationId,d=this.state,h=d.prevSectors,m=d.prevIsAnimationActive;return T.createElement(lr,{begin:o,duration:c,isActive:l,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(m),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(j){var y=j.t,p=[],v=i&&i[0],g=v.startAngle;return i.forEach(function(b,x){var O=h&&h[x],S=x>0?$n(b,"paddingAngle",0):0;if(O){var N=it(O.endAngle-O.startAngle,b.endAngle-b.startAngle),A=He(He({},b),{},{startAngle:g+S,endAngle:g+N(y)+S});p.push(A),g=A.endAngle}else{var C=b.endAngle,k=b.startAngle,R=it(0,C-k),M=R(y),B=He(He({},b),{},{startAngle:g+S,endAngle:g+M+S});p.push(B),g=B.endAngle}}),T.createElement(ve,null,r.renderSectorsStatically(p))})}},{key:"attachKeyboardHandlers",value:function(r){var a=this;r.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var l=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[l].focus(),a.setState({sectorToFocus:l});break}case"ArrowRight":{var o=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[o].focus(),a.setState({sectorToFocus:o});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,l=this.state.prevSectors;return i&&a&&a.length&&(!l||!ki(l,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,l=a.sectors,o=a.className,c=a.label,u=a.cx,f=a.cy,d=a.innerRadius,h=a.outerRadius,m=a.isAnimationActive,j=this.state.isAnimationFinished;if(i||!l||!l.length||!W(u)||!W(f)||!W(d)||!W(h))return null;var y=pe("recharts-pie",o);return T.createElement(ve,{tabIndex:this.props.rootTabIndex,className:y,ref:function(v){r.pieRef=v}},this.renderSectors(),c&&this.renderLabels(l),Dt.renderCallByParent(this.props,null,!1),(!m||j)&&wr.renderCallByParent(this.props,l,!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(T.isValidElement(r))return T.cloneElement(r,a);if(ce(r))return r(a);var l=pe("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return T.createElement(Oi,Sl({},a,{key:i,type:"linear",className:l}))}},{key:"renderLabelItem",value:function(r,a,i){if(T.isValidElement(r))return T.cloneElement(r,a);var l=i;if(ce(r)&&(l=r(a),T.isValidElement(l)))return l;var o=pe("recharts-pie-label-text",typeof r!="boolean"&&!ce(r)?r.className:"");return T.createElement(Ps,Sl({},a,{alignmentBaseline:"middle",className:o}),l)}}])}(w.PureComponent);Kd=Ia;Jn(Ia,"displayName","Pie");Jn(Ia,"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:!La.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Jn(Ia,"parseDeltaAngle",function(e,t){var n=rn(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Jn(Ia,"getRealPieData",function(e){var t=e.data,n=e.children,r=ae(e,!1),a=on(n,_f);return t&&t.length?t.map(function(i,l){return He(He(He({payload:i},r),i),a&&a[l]&&a[l].props)}):a&&a.length?a.map(function(i){return He(He({},r),i.props)}):[]});Jn(Ia,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,l=F3(a,i),o=r+an(e.cx,a,a/2),c=n+an(e.cy,i,i/2),u=an(e.innerRadius,l,0),f=an(e.outerRadius,l,l*.8),d=e.maxRadius||Math.sqrt(a*a+i*i)/2;return{cx:o,cy:c,innerRadius:u,outerRadius:f,maxRadius:d}});Jn(Ia,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?He(He({},t.type.defaultProps),t.props):t.props,a=Kd.getRealPieData(r);if(!a||!a.length)return null;var i=r.cornerRadius,l=r.startAngle,o=r.endAngle,c=r.paddingAngle,u=r.dataKey,f=r.nameKey,d=r.valueKey,h=r.tooltipType,m=Math.abs(r.minAngle),j=Kd.parseCoordinateOfPie(r,n),y=Kd.parseDeltaAngle(l,o),p=Math.abs(y),v=u;le(u)&&le(d)?(Sr(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),v="value"):le(u)&&(Sr(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),v=d);var g=a.filter(function(A){return Je(A,v,0)!==0}).length,b=(p>=360?g:g-1)*c,x=p-g*m-b,O=a.reduce(function(A,C){var k=Je(C,v,0);return A+(W(k)?k:0)},0),S;if(O>0){var N;S=a.map(function(A,C){var k=Je(A,v,0),R=Je(A,f,C),M=(W(k)?k:0)/O,B;C?B=N.endAngle+rn(y)*c*(k!==0?1:0):B=l;var _=B+rn(y)*((k!==0?m:0)+M*x),E=(B+_)/2,P=(j.innerRadius+j.outerRadius)/2,I=[{name:R,value:k,payload:A,dataKey:v,type:h}],z=Ke(j.cx,j.cy,P,E);return N=He(He(He({percent:M,cornerRadius:i,name:R,tooltipPayload:I,midAngle:E,middleRadius:P,tooltipPosition:z},A),j),{},{value:Je(A,v),startAngle:B,endAngle:_,payload:A,paddingAngle:rn(y)*c}),N})}return He(He({},j),{},{sectors:S,data:a})});var $ce=Math.ceil,Rce=Math.max;function Dce(e,t,n,r){for(var a=-1,i=Rce($ce((t-e)/(n||1)),0),l=Array(i);i--;)l[r?i:++a]=e,e+=n;return l}var Lce=Dce,zce=MM,$N=1/0,Ice=17976931348623157e292;function Bce(e){if(!e)return e===0?e:0;if(e=zce(e),e===$N||e===-$N){var t=e<0?-1:1;return t*Ice}return e===e?e:0}var dP=Bce,Uce=Lce,qce=Im,Av=dP;function Hce(e){return function(t,n,r){return r&&typeof r!="number"&&qce(t,n,r)&&(n=r=void 0),t=Av(t),n===void 0?(n=t,t=0):n=Av(n),r=r===void 0?t<n?1:-1:Av(r),Uce(t,n,r,e)}}var Fce=Hce,Gce=Fce,Kce=Gce(),Yce=Kce;const gp=Me(Yce);function Wu(e){"@babel/helpers - typeof";return Wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wu(e)}function RN(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 DN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RN(Object(n),!0).forEach(function(r){hP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hP(e,t,n){return t=Vce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vce(e){var t=Wce(e,"string");return Wu(t)=="symbol"?t:t+""}function Wce(e,t){if(Wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xce=["Webkit","Moz","O","ms"],Qce=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=Xce.reduce(function(i,l){return DN(DN({},i),{},hP({},l+r,n))},{});return a[t]=n,a};function jo(e){"@babel/helpers - typeof";return jo=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},jo(e)}function xp(){return xp=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},xp.apply(this,arguments)}function LN(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 Ev(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LN(Object(n),!0).forEach(function(r){Sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zN(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,mP(r.key),r)}}function Jce(e,t,n){return t&&zN(e.prototype,t),n&&zN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function eue(e,t,n){return t=bp(t),tue(e,pP()?Reflect.construct(t,n||[],bp(e).constructor):t.apply(e,n))}function tue(e,t){if(t&&(jo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nue(e)}function nue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pP=function(){return!!e})()}function bp(e){return bp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bp(e)}function rue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tb(e,t)}function tb(e,t){return tb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},tb(e,t)}function Sn(e,t,n){return t=mP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mP(e){var t=aue(e,"string");return jo(t)=="symbol"?t:t+""}function aue(e,t){if(jo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var iue=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,i=t.x,l=t.width,o=t.travellerWidth;if(!n||!n.length)return{};var c=n.length,u=Wc().domain(gp(0,c)).range([i,i+l-o]),f=u.domain().map(function(d){return u(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(a),scale:u,scaleValues:f}},IN=function(t){return t.changedTouches&&!!t.changedTouches.length},So=function(e){function t(n){var r;return Zce(this,t),r=eue(this,t,[n]),Sn(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),Sn(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),Sn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,i=a.endIndex,l=a.onDragEnd,o=a.startIndex;l==null||l({endIndex:i,startIndex:o})}),r.detachDragEndListener()}),Sn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Sn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Sn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Sn(r,"handleSlideDragStart",function(a){var i=IN(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 rue(t,e),Jce(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,l=this.state.scaleValues,o=this.props,c=o.gap,u=o.data,f=u.length-1,d=Math.min(a,i),h=Math.max(a,i),m=t.getIndexInRange(l,d),j=t.getIndexInRange(l,h);return{startIndex:m-m%c,endIndex:j===f?f:j-j%c}}},{key:"getTextOfTick",value:function(r){var a=this.props,i=a.data,l=a.tickFormatter,o=a.dataKey,c=Je(i[r],o,r);return ce(l)?l(c,r):c}},{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,l=a.startX,o=a.endX,c=this.props,u=c.x,f=c.width,d=c.travellerWidth,h=c.startIndex,m=c.endIndex,j=c.onChange,y=r.pageX-i;y>0?y=Math.min(y,u+f-d-o,u+f-d-l):y<0&&(y=Math.max(y,u-l,u-o));var p=this.getIndex({startX:l+y,endX:o+y});(p.startIndex!==h||p.endIndex!==m)&&j&&j(p),this.setState({startX:l+y,endX:o+y,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var i=IN(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,l=a.movingTravellerId,o=a.endX,c=a.startX,u=this.state[l],f=this.props,d=f.x,h=f.width,m=f.travellerWidth,j=f.onChange,y=f.gap,p=f.data,v={startX:this.state.startX,endX:this.state.endX},g=r.pageX-i;g>0?g=Math.min(g,d+h-m-u):g<0&&(g=Math.max(g,d-u)),v[l]=u+g;var b=this.getIndex(v),x=b.startIndex,O=b.endIndex,S=function(){var A=p.length-1;return l==="startX"&&(o>c?x%y===0:O%y===0)||o<c&&O===A||l==="endX"&&(o>c?O%y===0:x%y===0)||o>c&&O===A};this.setState(Sn(Sn({},l,u+g),"brushMoveStartX",r.pageX),function(){j&&S()&&j(b)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var i=this,l=this.state,o=l.scaleValues,c=l.startX,u=l.endX,f=this.state[a],d=o.indexOf(f);if(d!==-1){var h=d+r;if(!(h===-1||h>=o.length)){var m=o[h];a==="startX"&&m>=u||a==="endX"&&m<=c||this.setState(Sn({},a,m),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,l=r.width,o=r.height,c=r.fill,u=r.stroke;return T.createElement("rect",{stroke:u,fill:c,x:a,y:i,width:l,height:o})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,i=r.y,l=r.width,o=r.height,c=r.data,u=r.children,f=r.padding,d=w.Children.only(u);return d?T.cloneElement(d,{x:a,y:i,width:l,height:o,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(r,a){var i,l,o=this,c=this.props,u=c.y,f=c.travellerWidth,d=c.height,h=c.traveller,m=c.ariaLabel,j=c.data,y=c.startIndex,p=c.endIndex,v=Math.max(r,this.props.x),g=Ev(Ev({},ae(this.props,!1)),{},{x:v,y:u,width:f,height:d}),b=m||"Min value: ".concat((i=j[y])===null||i===void 0?void 0:i.name,", Max value: ").concat((l=j[p])===null||l===void 0?void 0:l.name);return T.createElement(ve,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(O){["ArrowLeft","ArrowRight"].includes(O.key)&&(O.preventDefault(),O.stopPropagation(),o.handleTravellerMoveKeyboard(O.key==="ArrowRight"?1:-1,a))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,g))}},{key:"renderSlide",value:function(r,a){var i=this.props,l=i.y,o=i.height,c=i.stroke,u=i.travellerWidth,f=Math.min(r,a)+u,d=Math.max(Math.abs(a-r)-u,0);return T.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:f,y:l,width:d,height:o})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,i=r.endIndex,l=r.y,o=r.height,c=r.travellerWidth,u=r.stroke,f=this.state,d=f.startX,h=f.endX,m=5,j={pointerEvents:"none",fill:u};return T.createElement(ve,{className:"recharts-brush-texts"},T.createElement(Ps,xp({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,h)-m,y:l+o/2},j),this.getTextOfTick(a)),T.createElement(Ps,xp({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,h)+c+m,y:l+o/2},j),this.getTextOfTick(i)))}},{key:"render",value:function(){var r=this.props,a=r.data,i=r.className,l=r.children,o=r.x,c=r.y,u=r.width,f=r.height,d=r.alwaysShowText,h=this.state,m=h.startX,j=h.endX,y=h.isTextActive,p=h.isSlideMoving,v=h.isTravellerMoving,g=h.isTravellerFocused;if(!a||!a.length||!W(o)||!W(c)||!W(u)||!W(f)||u<=0||f<=0)return null;var b=pe("recharts-brush",i),x=T.Children.count(l)===1,O=Qce("userSelect","none");return T.createElement(ve,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(m,j),this.renderTravellerLayer(m,"startX"),this.renderTravellerLayer(j,"endX"),(y||p||v||g||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,i=r.y,l=r.width,o=r.height,c=r.stroke,u=Math.floor(i+o/2)-1;return T.createElement(T.Fragment,null,T.createElement("rect",{x:a,y:i,width:l,height:o,fill:c,stroke:"none"}),T.createElement("line",{x1:a+1,y1:u,x2:a+l-1,y2:u,fill:"none",stroke:"#fff"}),T.createElement("line",{x1:a+1,y1:u+2,x2:a+l-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var i;return T.isValidElement(r)?i=T.cloneElement(r,a):ce(r)?i=r(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(r,a){var i=r.data,l=r.width,o=r.x,c=r.travellerWidth,u=r.updateId,f=r.startIndex,d=r.endIndex;if(i!==a.prevData||u!==a.prevUpdateId)return Ev({prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:o,prevWidth:l},i&&i.length?iue({data:i,width:l,x:o,travellerWidth:c,startIndex:f,endIndex:d}):{scale:null,scaleValues:null});if(a.scale&&(l!==a.prevWidth||o!==a.prevX||c!==a.prevTravellerWidth)){a.scale.range([o,o+l-c]);var h=a.scale.domain().map(function(m){return a.scale(m)});return{prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:o,prevWidth:l,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,l=0,o=i-1;o-l>1;){var c=Math.floor((l+o)/2);r[c]>a?o=c:l=c}return a>=r[o]?o:l}}])}(w.PureComponent);Sn(So,"displayName","Brush");Sn(So,"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 sue=x1;function lue(e,t){var n;return sue(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var oue=lue,cue=iM,uue=ea,fue=oue,due=bn,hue=Im;function pue(e,t,n){var r=due(e)?cue:fue;return n&&hue(e,t,n)&&(t=void 0),r(e,uue(t))}var mue=pue;const yue=Me(mue);var Kr=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},BN=EM;function vue(e,t,n){t=="__proto__"&&BN?BN(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var gue=vue,xue=gue,bue=NM,jue=ea;function Sue(e,t){var n={};return t=jue(t),bue(e,function(r,a,i){xue(n,a,t(r,a,i))}),n}var wue=Sue;const Oue=Me(wue);function Nue(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 Aue=Nue,Eue=x1;function Cue(e,t){var n=!0;return Eue(e,function(r,a,i){return n=!!t(r,a,i),n}),n}var _ue=Cue,Tue=Aue,kue=_ue,Mue=ea,Pue=bn,$ue=Im;function Rue(e,t,n){var r=Pue(e)?Tue:kue;return n&&$ue(e,t,n)&&(t=void 0),r(e,Mue(t))}var Due=Rue;const yP=Me(Due);var Lue=["x","y"];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 nb(){return nb=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},nb.apply(this,arguments)}function UN(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 Ec(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UN(Object(n),!0).forEach(function(r){zue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zue(e,t,n){return t=Iue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iue(e){var t=Bue(e,"string");return Xu(t)=="symbol"?t:t+""}function Bue(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)}function Uue(e,t){if(e==null)return{};var n=que(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 que(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 Hue(e,t){var n=e.x,r=e.y,a=Uue(e,Lue),i="".concat(n),l=parseInt(i,10),o="".concat(r),c=parseInt(o,10),u="".concat(t.height||a.height),f=parseInt(u,10),d="".concat(t.width||a.width),h=parseInt(d,10);return Ec(Ec(Ec(Ec(Ec({},t),a),l?{x:l}:{}),c?{y:c}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function qN(e){return T.createElement(yp,nb({shapeType:"rectangle",propTransformer:Hue,activeClassName:"recharts-active-bar"},e))}var Fue=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=W(r)||fH(r);return i?t(r,a):(i||Rs(),n)}},Gue=["value","background"],vP;function wo(e){"@babel/helpers - typeof";return wo=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},wo(e)}function Kue(e,t){if(e==null)return{};var n=Yue(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 Yue(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 jp(){return jp=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},jp.apply(this,arguments)}function HN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HN(Object(n),!0).forEach(function(r){di(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FN(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 Wue(e,t,n){return t&&FN(e.prototype,t),n&&FN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xue(e,t,n){return t=Sp(t),Que(e,gP()?Reflect.construct(t,n||[],Sp(e).constructor):t.apply(e,n))}function Que(e,t){if(t&&(wo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zue(e)}function Zue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gP=function(){return!!e})()}function Sp(e){return Sp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sp(e)}function Jue(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&&rb(e,t)}function rb(e,t){return rb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},rb(e,t)}function di(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=efe(e,"string");return wo(t)=="symbol"?t:t+""}function efe(e,t){if(wo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Bi=function(e){function t(){var n;Vue(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Xue(this,t,[].concat(a)),di(n,"state",{isAnimationFinished:!1}),di(n,"id",Di("recharts-bar-")),di(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),l&&l()}),di(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),l&&l()}),n}return Jue(t,e),Wue(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,i=this.props,l=i.shape,o=i.dataKey,c=i.activeIndex,u=i.activeBar,f=ae(this.props,!1);return r&&r.map(function(d,h){var m=h===c,j=m?u:l,y=bt(bt(bt({},f),d),{},{isActive:m,option:j,index:h,dataKey:o,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return T.createElement(ve,jp({className:"recharts-bar-rectangle"},Ti(a.props,d,h),{key:"rectangle-".concat(d==null?void 0:d.x,"-").concat(d==null?void 0:d.y,"-").concat(d==null?void 0:d.value,"-").concat(h)}),T.createElement(qN,y))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,i=a.data,l=a.layout,o=a.isAnimationActive,c=a.animationBegin,u=a.animationDuration,f=a.animationEasing,d=a.animationId,h=this.state.prevData;return T.createElement(lr,{begin:c,duration:u,isActive:o,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(m){var j=m.t,y=i.map(function(p,v){var g=h&&h[v];if(g){var b=it(g.x,p.x),x=it(g.y,p.y),O=it(g.width,p.width),S=it(g.height,p.height);return bt(bt({},p),{},{x:b(j),y:x(j),width:O(j),height:S(j)})}if(l==="horizontal"){var N=it(0,p.height),A=N(j);return bt(bt({},p),{},{y:p.y+p.height-A,height:A})}var C=it(0,p.width),k=C(j);return bt(bt({},p),{},{width:k})});return T.createElement(ve,null,r.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,i=r.isAnimationActive,l=this.state.prevData;return i&&a&&a.length&&(!l||!ki(l,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,i=a.data,l=a.dataKey,o=a.activeIndex,c=ae(this.props.background,!1);return i.map(function(u,f){u.value;var d=u.background,h=Kue(u,Gue);if(!d)return null;var m=bt(bt(bt(bt(bt({},h),{},{fill:"#eee"},d),c),Ti(r.props,u,f)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:l,index:f,className:"recharts-bar-background-rectangle"});return T.createElement(qN,jp({key:"background-bar-".concat(f),option:r.props.background,isActive:f===o},m))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,l=i.data,o=i.xAxis,c=i.yAxis,u=i.layout,f=i.children,d=on(f,lc);if(!d)return null;var h=u==="vertical"?l[0].height/2:l[0].width/2,m=function(p,v){var g=Array.isArray(p.value)?p.value[1]:p.value;return{x:p.x,y:p.y,value:g,errorVal:Je(p,v)}},j={clipPath:r?"url(#clipPath-".concat(a,")"):null};return T.createElement(ve,j,d.map(function(y){return T.cloneElement(y,{key:"error-bar-".concat(a,"-").concat(y.props.dataKey),data:l,xAxis:o,yAxis:c,layout:u,offset:h,dataPointFormatter:m})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,i=r.data,l=r.className,o=r.xAxis,c=r.yAxis,u=r.left,f=r.top,d=r.width,h=r.height,m=r.isAnimationActive,j=r.background,y=r.id;if(a||!i||!i.length)return null;var p=this.state.isAnimationFinished,v=pe("recharts-bar",l),g=o&&o.allowDataOverflow,b=c&&c.allowDataOverflow,x=g||b,O=le(y)?this.id:y;return T.createElement(ve,{className:v},g||b?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(O)},T.createElement("rect",{x:g?u:u-d/2,y:b?f:f-h/2,width:g?d:d*2,height:b?h:h*2}))):null,T.createElement(ve,{className:"recharts-bar-rectangles",clipPath:x?"url(#clipPath-".concat(O,")"):null},j?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(x,O),(!m||p)&&wr.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}}])}(w.PureComponent);vP=Bi;di(Bi,"displayName","Bar");di(Bi,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!La.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});di(Bi,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,i=e.xAxis,l=e.yAxis,o=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,f=e.dataStartIndex,d=e.displayedData,h=e.offset,m=Tae(r,n);if(!m)return null;var j=t.layout,y=n.type.defaultProps,p=y!==void 0?bt(bt({},y),n.props):n.props,v=p.dataKey,g=p.children,b=p.minPointSize,x=j==="horizontal"?l:i,O=u?x.scale.domain():null,S=Lae({numericAxis:x}),N=on(g,_f),A=d.map(function(C,k){var R,M,B,_,E,P;u?R=kae(u[f+k],O):(R=Je(C,v),Array.isArray(R)||(R=[S,R]));var I=Fue(b,vP.defaultProps.minPointSize)(R[1],k);if(j==="horizontal"){var z,G=[l.scale(R[0]),l.scale(R[1])],V=G[0],Z=G[1];M=DO({axis:i,ticks:o,bandSize:a,offset:m.offset,entry:C,index:k}),B=(z=Z??V)!==null&&z!==void 0?z:void 0,_=m.size;var X=V-Z;if(E=Number.isNaN(X)?0:X,P={x:M,y:l.y,width:_,height:l.height},Math.abs(I)>0&&Math.abs(E)<Math.abs(I)){var ee=rn(E||I)*(Math.abs(I)-Math.abs(E));B-=ee,E+=ee}}else{var ie=[i.scale(R[0]),i.scale(R[1])],Ne=ie[0],Zt=ie[1];if(M=Ne,B=DO({axis:l,ticks:c,bandSize:a,offset:m.offset,entry:C,index:k}),_=Zt-Ne,E=m.size,P={x:i.x,y:B,width:i.width,height:E},Math.abs(I)>0&&Math.abs(_)<Math.abs(I)){var Mr=rn(_||I)*(Math.abs(I)-Math.abs(_));_+=Mr}}return bt(bt(bt({},C),{},{x:M,y:B,width:_,height:E,value:u?R:R[1],payload:C,background:P},N&&N[k]&&N[k].props),{},{tooltipPayload:[q3(n,C)],tooltipPosition:{x:M+_/2,y:B+E/2}})});return bt({data:A,layout:j},h)});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 tfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GN(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,bP(r.key),r)}}function nfe(e,t,n){return t&&GN(e.prototype,t),n&&GN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function KN(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 vr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KN(Object(n),!0).forEach(function(r){ny(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ny(e,t,n){return t=bP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bP(e){var t=rfe(e,"string");return Qu(t)=="symbol"?t:t+""}function rfe(e,t){if(Qu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ry=function(t,n,r,a,i){var l=t.width,o=t.height,c=t.layout,u=t.children,f=Object.keys(n),d={left:r.left,leftMirror:r.left,right:l-r.right,rightMirror:l-r.right,top:r.top,topMirror:r.top,bottom:o-r.bottom,bottomMirror:o-r.bottom},h=!!On(u,Bi);return f.reduce(function(m,j){var y=n[j],p=y.orientation,v=y.domain,g=y.padding,b=g===void 0?{}:g,x=y.mirror,O=y.reversed,S="".concat(p).concat(x?"Mirror":""),N,A,C,k,R;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var M=v[1]-v[0],B=1/0,_=y.categoricalDomain.sort(mH);if(_.forEach(function(ie,Ne){Ne>0&&(B=Math.min((ie||0)-(_[Ne-1]||0),B))}),Number.isFinite(B)){var E=B/M,P=y.layout==="vertical"?r.height:r.width;if(y.padding==="gap"&&(N=E*P/2),y.padding==="no-gap"){var I=an(t.barCategoryGap,E*P),z=E*P/2;N=z-I-(z-I)/P*I}}}a==="xAxis"?A=[r.left+(b.left||0)+(N||0),r.left+r.width-(b.right||0)-(N||0)]:a==="yAxis"?A=c==="horizontal"?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(N||0),r.top+r.height-(b.bottom||0)-(N||0)]:A=y.range,O&&(A=[A[1],A[0]]);var G=z3(y,i,h),V=G.scale,Z=G.realScaleType;V.domain(v).range(A),I3(V);var X=B3(V,vr(vr({},y),{},{realScaleType:Z}));a==="xAxis"?(R=p==="top"&&!x||p==="bottom"&&x,C=r.left,k=d[S]-R*y.height):a==="yAxis"&&(R=p==="left"&&!x||p==="right"&&x,C=d[S]-R*y.width,k=r.top);var ee=vr(vr(vr({},y),X),{},{realScaleType:Z,x:C,y:k,scale:V,width:a==="xAxis"?r.width:y.width,height:a==="yAxis"?r.height:y.height});return ee.bandSize=ap(ee,X),!y.hide&&a==="xAxis"?d[S]+=(R?-1:1)*ee.height:y.hide||(d[S]+=(R?-1:1)*ee.width),vr(vr({},m),{},ny({},j,ee))},{})},jP=function(t,n){var r=t.x,a=t.y,i=n.x,l=n.y;return{x:Math.min(r,i),y:Math.min(a,l),width:Math.abs(i-r),height:Math.abs(l-a)}},afe=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return jP({x:n,y:r},{x:a,y:i})},SP=function(){function e(t){tfe(this,e),this.scale=t}return nfe(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 l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(n)+o}default:return this.scale(n)}if(a){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+c}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)}}])}();ny(SP,"EPS",1e-4);var V1=function(t){var n=Object.keys(t).reduce(function(r,a){return vr(vr({},r),{},ny({},a,SP.create(t[a])))},{});return vr(vr({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=i.bandAware,o=i.position;return Oue(a,function(c,u){return n[u].apply(c,{bandAware:l,position:o})})},isInRange:function(a){return yP(a,function(i,l){return n[l].isInRange(i)})}})};function ife(e){return(e%180+180)%180}var sfe=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=ife(a),l=i*Math.PI/180,o=Math.atan(r/n),c=l>o&&l<Math.PI-o?r/Math.sin(l):n/Math.cos(l);return Math.abs(c)},lfe=ea,ofe=Cf,cfe=Lm;function ufe(e){return function(t,n,r){var a=Object(t);if(!ofe(t)){var i=lfe(n);t=cfe(t),n=function(o){return i(a[o],o,a)}}var l=e(t,n,r);return l>-1?a[i?t[l]:l]:void 0}}var ffe=ufe,dfe=dP;function hfe(e){var t=dfe(e),n=t%1;return t===t?n?t-n:t:0}var pfe=hfe,mfe=xM,yfe=ea,vfe=pfe,gfe=Math.max;function xfe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=n==null?0:vfe(n);return a<0&&(a=gfe(r+a,0)),mfe(e,yfe(t),a)}var bfe=xfe,jfe=ffe,Sfe=bfe,wfe=jfe(Sfe),Ofe=wfe;const Nfe=Me(Ofe);var Afe=vq(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("")}),W1=w.createContext(void 0),X1=w.createContext(void 0),wP=w.createContext(void 0),OP=w.createContext({}),NP=w.createContext(void 0),AP=w.createContext(0),EP=w.createContext(0),YN=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,i=n.offset,l=t.clipPathId,o=t.children,c=t.width,u=t.height,f=Afe(i);return T.createElement(W1.Provider,{value:r},T.createElement(X1.Provider,{value:a},T.createElement(OP.Provider,{value:i},T.createElement(wP.Provider,{value:f},T.createElement(NP.Provider,{value:l},T.createElement(AP.Provider,{value:u},T.createElement(EP.Provider,{value:c},o)))))))},Efe=function(){return w.useContext(NP)},CP=function(t){var n=w.useContext(W1);n==null&&Rs();var r=n[t];return r==null&&Rs(),r},Cfe=function(){var t=w.useContext(W1);return Ja(t)},_fe=function(){var t=w.useContext(X1),n=Nfe(t,function(r){return yP(r.domain,Number.isFinite)});return n||Ja(t)},_P=function(t){var n=w.useContext(X1);n==null&&Rs();var r=n[t];return r==null&&Rs(),r},Tfe=function(){var t=w.useContext(wP);return t},kfe=function(){return w.useContext(OP)},Q1=function(){return w.useContext(EP)},Z1=function(){return w.useContext(AP)};function Oo(e){"@babel/helpers - typeof";return Oo=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},Oo(e)}function Mfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pfe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kP(r.key),r)}}function $fe(e,t,n){return t&&Pfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rfe(e,t,n){return t=wp(t),Dfe(e,TP()?Reflect.construct(t,n||[],wp(e).constructor):t.apply(e,n))}function Dfe(e,t){if(t&&(Oo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lfe(e)}function Lfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TP=function(){return!!e})()}function wp(e){return wp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wp(e)}function zfe(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&&ab(e,t)}function ab(e,t){return ab=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ab(e,t)}function VN(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 WN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VN(Object(n),!0).forEach(function(r){J1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function J1(e,t,n){return t=kP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kP(e){var t=Ife(e,"string");return Oo(t)=="symbol"?t:t+""}function Ife(e,t){if(Oo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Oo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Bfe(e,t){return Ffe(e)||Hfe(e,t)||qfe(e,t)||Ufe()}function Ufe(){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 qfe(e,t){if(e){if(typeof e=="string")return XN(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 XN(e,t)}}function XN(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 Hfe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function Ffe(e){if(Array.isArray(e))return e}function ib(){return ib=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},ib.apply(this,arguments)}var Gfe=function(t,n){var r;return T.isValidElement(t)?r=T.cloneElement(t,n):ce(t)?r=t(n):r=T.createElement("line",ib({},n,{className:"recharts-reference-line-line"})),r},Kfe=function(t,n,r,a,i,l,o,c,u){var f=i.x,d=i.y,h=i.width,m=i.height;if(r){var j=u.y,y=t.y.apply(j,{position:l});if(Kr(u,"discard")&&!t.y.isInRange(y))return null;var p=[{x:f+h,y},{x:f,y}];return c==="left"?p.reverse():p}if(n){var v=u.x,g=t.x.apply(v,{position:l});if(Kr(u,"discard")&&!t.x.isInRange(g))return null;var b=[{x:g,y:d+m},{x:g,y:d}];return o==="top"?b.reverse():b}if(a){var x=u.segment,O=x.map(function(S){return t.apply(S,{position:l})});return Kr(u,"discard")&&yue(O,function(S){return!t.isInRange(S)})?null:O}return null};function Yfe(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,i=e.yAxisId,l=e.shape,o=e.className,c=e.alwaysShow,u=Efe(),f=CP(a),d=_P(i),h=Tfe();if(!u||!h)return null;Sr(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=V1({x:f.scale,y:d.scale}),j=_t(t),y=_t(n),p=r&&r.length===2,v=Kfe(m,j,y,p,h,e.position,f.orientation,d.orientation,e);if(!v)return null;var g=Bfe(v,2),b=g[0],x=b.x,O=b.y,S=g[1],N=S.x,A=S.y,C=Kr(e,"hidden")?"url(#".concat(u,")"):void 0,k=WN(WN({clipPath:C},ae(e,!0)),{},{x1:x,y1:O,x2:N,y2:A});return T.createElement(ve,{className:pe("recharts-reference-line",o)},Gfe(l,k),Dt.renderCallByParent(e,afe({x1:x,y1:O,x2:N,y2:A})))}var fa=function(e){function t(){return Mfe(this,t),Rfe(this,t,arguments)}return zfe(t,e),$fe(t,[{key:"render",value:function(){return T.createElement(Yfe,this.props)}}])}(T.Component);J1(fa,"displayName","ReferenceLine");J1(fa,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function sb(){return sb=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},sb.apply(this,arguments)}function No(e){"@babel/helpers - typeof";return No=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},No(e)}function QN(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 ZN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QN(Object(n),!0).forEach(function(r){ay(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wfe(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,PP(r.key),r)}}function Xfe(e,t,n){return t&&Wfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qfe(e,t,n){return t=Op(t),Zfe(e,MP()?Reflect.construct(t,n||[],Op(e).constructor):t.apply(e,n))}function Zfe(e,t){if(t&&(No(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jfe(e)}function Jfe(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 Op(e){return Op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Op(e)}function ede(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&&lb(e,t)}function lb(e,t){return lb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},lb(e,t)}function ay(e,t,n){return t=PP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PP(e){var t=tde(e,"string");return No(t)=="symbol"?t:t+""}function tde(e,t){if(No(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(No(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nde=function(t){var n=t.x,r=t.y,a=t.xAxis,i=t.yAxis,l=V1({x:a.scale,y:i.scale}),o=l.apply({x:n,y:r},{bandAware:!0});return Kr(t,"discard")&&!l.isInRange(o)?null:o},iy=function(e){function t(){return Vfe(this,t),Qfe(this,t,arguments)}return ede(t,e),Xfe(t,[{key:"render",value:function(){var r=this.props,a=r.x,i=r.y,l=r.r,o=r.alwaysShow,c=r.clipPathId,u=_t(a),f=_t(i);if(Sr(o===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!f)return null;var d=nde(this.props);if(!d)return null;var h=d.x,m=d.y,j=this.props,y=j.shape,p=j.className,v=Kr(this.props,"hidden")?"url(#".concat(c,")"):void 0,g=ZN(ZN({clipPath:v},ae(this.props,!0)),{},{cx:h,cy:m});return T.createElement(ve,{className:pe("recharts-reference-dot",p)},t.renderDot(y,g),Dt.renderCallByParent(this.props,{x:h-l,y:m-l,width:2*l,height:2*l}))}}])}(T.Component);ay(iy,"displayName","ReferenceDot");ay(iy,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});ay(iy,"renderDot",function(e,t){var n;return T.isValidElement(e)?n=T.cloneElement(e,t):ce(e)?n=e(t):n=T.createElement($f,sb({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function ob(){return ob=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},ob.apply(this,arguments)}function Ao(e){"@babel/helpers - typeof";return Ao=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},Ao(e)}function JN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function eA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JN(Object(n),!0).forEach(function(r){sy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ade(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,RP(r.key),r)}}function ide(e,t,n){return t&&ade(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sde(e,t,n){return t=Np(t),lde(e,$P()?Reflect.construct(t,n||[],Np(e).constructor):t.apply(e,n))}function lde(e,t){if(t&&(Ao(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ode(e)}function ode(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $P(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($P=function(){return!!e})()}function Np(e){return Np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Np(e)}function cde(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&&cb(e,t)}function cb(e,t){return cb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},cb(e,t)}function sy(e,t,n){return t=RP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RP(e){var t=ude(e,"string");return Ao(t)=="symbol"?t:t+""}function ude(e,t){if(Ao(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ao(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fde=function(t,n,r,a,i){var l=i.x1,o=i.x2,c=i.y1,u=i.y2,f=i.xAxis,d=i.yAxis;if(!f||!d)return null;var h=V1({x:f.scale,y:d.scale}),m={x:t?h.x.apply(l,{position:"start"}):h.x.rangeMin,y:r?h.y.apply(c,{position:"start"}):h.y.rangeMin},j={x:n?h.x.apply(o,{position:"end"}):h.x.rangeMax,y:a?h.y.apply(u,{position:"end"}):h.y.rangeMax};return Kr(i,"discard")&&(!h.isInRange(m)||!h.isInRange(j))?null:jP(m,j)},ly=function(e){function t(){return rde(this,t),sde(this,t,arguments)}return cde(t,e),ide(t,[{key:"render",value:function(){var r=this.props,a=r.x1,i=r.x2,l=r.y1,o=r.y2,c=r.className,u=r.alwaysShow,f=r.clipPathId;Sr(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=_t(a),h=_t(i),m=_t(l),j=_t(o),y=this.props.shape;if(!d&&!h&&!m&&!j&&!y)return null;var p=fde(d,h,m,j,this.props);if(!p&&!y)return null;var v=Kr(this.props,"hidden")?"url(#".concat(f,")"):void 0;return T.createElement(ve,{className:pe("recharts-reference-area",c)},t.renderRect(y,eA(eA({clipPath:v},ae(this.props,!0)),p)),Dt.renderCallByParent(this.props,p))}}])}(T.Component);sy(ly,"displayName","ReferenceArea");sy(ly,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});sy(ly,"renderRect",function(e,t){var n;return T.isValidElement(e)?n=T.cloneElement(e,t):ce(e)?n=e(t):n=T.createElement(Y1,ob({},t,{className:"recharts-reference-area-rect"})),n});function DP(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 dde(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return sfe(r,n)}function hde(e,t,n){var r=n==="width",a=e.x,i=e.y,l=e.width,o=e.height;return t===1?{start:r?a:i,end:r?a+l:i+o}:{start:r?a+l:i+o,end:r?a:i}}function Ap(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 pde(e,t){return DP(e,t+1)}function mde(e,t,n,r,a){for(var i=(r||[]).slice(),l=t.start,o=t.end,c=0,u=1,f=l,d=function(){var j=r==null?void 0:r[c];if(j===void 0)return{v:DP(r,u)};var y=c,p,v=function(){return p===void 0&&(p=n(j,y)),p},g=j.coordinate,b=c===0||Ap(e,g,v,f,o);b||(c=0,f=l,u+=1),b&&(f=g+e*(v()/2+a),c+=u)},h;u<=i.length;)if(h=d(),h)return h.v;return[]}function Zu(e){"@babel/helpers - typeof";return Zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zu(e)}function 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 Vt(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){yde(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 yde(e,t,n){return t=vde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vde(e){var t=gde(e,"string");return Zu(t)=="symbol"?t:t+""}function gde(e,t){if(Zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xde(e,t,n,r,a){for(var i=(r||[]).slice(),l=i.length,o=t.start,c=t.end,u=function(h){var m=i[h],j,y=function(){return j===void 0&&(j=n(m,h)),j};if(h===l-1){var p=e*(m.coordinate+e*y()/2-c);i[h]=m=Vt(Vt({},m),{},{tickCoord:p>0?m.coordinate-p*e:m.coordinate})}else i[h]=m=Vt(Vt({},m),{},{tickCoord:m.coordinate});var v=Ap(e,m.tickCoord,y,o,c);v&&(c=m.tickCoord-e*(y()/2+a),i[h]=Vt(Vt({},m),{},{isShow:!0}))},f=l-1;f>=0;f--)u(f);return i}function bde(e,t,n,r,a,i){var l=(r||[]).slice(),o=l.length,c=t.start,u=t.end;if(i){var f=r[o-1],d=n(f,o-1),h=e*(f.coordinate+e*d/2-u);l[o-1]=f=Vt(Vt({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var m=Ap(e,f.tickCoord,function(){return d},c,u);m&&(u=f.tickCoord-e*(d/2+a),l[o-1]=Vt(Vt({},f),{},{isShow:!0}))}for(var j=i?o-1:o,y=function(g){var b=l[g],x,O=function(){return x===void 0&&(x=n(b,g)),x};if(g===0){var S=e*(b.coordinate-e*O()/2-c);l[g]=b=Vt(Vt({},b),{},{tickCoord:S<0?b.coordinate-S*e:b.coordinate})}else l[g]=b=Vt(Vt({},b),{},{tickCoord:b.coordinate});var N=Ap(e,b.tickCoord,O,c,u);N&&(c=b.tickCoord+e*(O()/2+a),l[g]=Vt(Vt({},b),{},{isShow:!0}))},p=0;p<j;p++)y(p);return l}function ej(e,t,n){var r=e.tick,a=e.ticks,i=e.viewBox,l=e.minTickGap,o=e.orientation,c=e.interval,u=e.tickFormatter,f=e.unit,d=e.angle;if(!a||!a.length||!r)return[];if(W(c)||La.isSsr)return pde(a,typeof c=="number"&&W(c)?c:0);var h=[],m=o==="top"||o==="bottom"?"width":"height",j=f&&m==="width"?Vc(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},y=function(b,x){var O=ce(u)?u(b.value,x):b.value;return m==="width"?dde(Vc(O,{fontSize:t,letterSpacing:n}),j,d):Vc(O,{fontSize:t,letterSpacing:n})[m]},p=a.length>=2?rn(a[1].coordinate-a[0].coordinate):1,v=hde(i,p,m);return c==="equidistantPreserveStart"?mde(p,v,y,a,l):(c==="preserveStart"||c==="preserveStartEnd"?h=bde(p,v,y,a,l,c==="preserveStartEnd"):h=xde(p,v,y,a,l),h.filter(function(g){return g.isShow}))}var jde=["viewBox"],Sde=["viewBox"],wde=["ticks"];function Eo(e){"@babel/helpers - typeof";return Eo=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},Eo(e)}function wl(){return wl=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},wl.apply(this,arguments)}function nA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nA(Object(n),!0).forEach(function(r){tj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cv(e,t){if(e==null)return{};var n=Ode(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 Ode(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 Nde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zP(r.key),r)}}function Ade(e,t,n){return t&&rA(e.prototype,t),n&&rA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ede(e,t,n){return t=Ep(t),Cde(e,LP()?Reflect.construct(t,n||[],Ep(e).constructor):t.apply(e,n))}function Cde(e,t){if(t&&(Eo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _de(e)}function _de(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LP=function(){return!!e})()}function Ep(e){return Ep=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ep(e)}function Tde(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&&ub(e,t)}function ub(e,t){return ub=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ub(e,t)}function tj(e,t,n){return t=zP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zP(e){var t=kde(e,"string");return Eo(t)=="symbol"?t:t+""}function kde(e,t){if(Eo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Eo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var oc=function(e){function t(n){var r;return Nde(this,t),r=Ede(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Tde(t,e),Ade(t,[{key:"shouldComponentUpdate",value:function(r,a){var i=r.viewBox,l=Cv(r,jde),o=this.props,c=o.viewBox,u=Cv(o,Sde);return!Ml(i,c)||!Ml(l,u)||!Ml(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,l=a.y,o=a.width,c=a.height,u=a.orientation,f=a.tickSize,d=a.mirror,h=a.tickMargin,m,j,y,p,v,g,b=d?-1:1,x=r.tickSize||f,O=W(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":m=j=r.coordinate,p=l+ +!d*c,y=p-b*x,g=y-b*h,v=O;break;case"left":y=p=r.coordinate,j=i+ +!d*o,m=j-b*x,v=m-b*h,g=O;break;case"right":y=p=r.coordinate,j=i+ +d*o,m=j+b*x,v=m+b*h,g=O;break;default:m=j=r.coordinate,p=l+ +d*c,y=p+b*x,g=y+b*h,v=O;break}return{line:{x1:m,y1:y,x2:j,y2:p},tick:{x:v,y:g}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,l;switch(a){case"left":l=i?"start":"end";break;case"right":l=i?"end":"start";break;default:l="middle";break}return l}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,l="end";switch(a){case"left":case"right":l="middle";break;case"top":l=i?"start":"end";break;default:l=i?"end":"start";break}return l}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,i=r.y,l=r.width,o=r.height,c=r.orientation,u=r.mirror,f=r.axisLine,d=At(At(At({},ae(this.props,!1)),ae(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var h=+(c==="top"&&!u||c==="bottom"&&u);d=At(At({},d),{},{x1:a,y1:i+h*o,x2:a+l,y2:i+h*o})}else{var m=+(c==="left"&&!u||c==="right"&&u);d=At(At({},d),{},{x1:a+m*l,y1:i,x2:a+m*l,y2:i+o})}return T.createElement("line",wl({},d,{className:pe("recharts-cartesian-axis-line",$n(f,"className"))}))}},{key:"renderTicks",value:function(r,a,i){var l=this,o=this.props,c=o.tickLine,u=o.stroke,f=o.tick,d=o.tickFormatter,h=o.unit,m=ej(At(At({},this.props),{},{ticks:r}),a,i),j=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),p=ae(this.props,!1),v=ae(f,!1),g=At(At({},p),{},{fill:"none"},ae(c,!1)),b=m.map(function(x,O){var S=l.getTickLineCoord(x),N=S.line,A=S.tick,C=At(At(At(At({textAnchor:j,verticalAnchor:y},p),{},{stroke:"none",fill:u},v),A),{},{index:O,payload:x,visibleTicksCount:m.length,tickFormatter:d});return T.createElement(ve,wl({className:"recharts-cartesian-axis-tick",key:"tick-".concat(x.value,"-").concat(x.coordinate,"-").concat(x.tickCoord)},Ti(l.props,x,O)),c&&T.createElement("line",wl({},g,N,{className:pe("recharts-cartesian-axis-tick-line",$n(c,"className"))})),f&&t.renderTickItem(f,C,"".concat(ce(d)?d(x.value,O):x.value).concat(h||"")))});return T.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var r=this,a=this.props,i=a.axisLine,l=a.width,o=a.height,c=a.ticksGenerator,u=a.className,f=a.hide;if(f)return null;var d=this.props,h=d.ticks,m=Cv(d,wde),j=h;return ce(c)&&(j=h&&h.length>0?c(this.props):c(m)),l<=0||o<=0||!j||!j.length?null:T.createElement(ve,{className:pe("recharts-cartesian-axis",u),ref:function(p){r.layerReference=p}},i&&this.renderAxisLine(),this.renderTicks(j,this.state.fontSize,this.state.letterSpacing),Dt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,i){var l,o=pe(a.className,"recharts-cartesian-axis-tick-value");return T.isValidElement(r)?l=T.cloneElement(r,At(At({},a),{},{className:o})):ce(r)?l=r(At(At({},a),{},{className:o})):l=T.createElement(Ps,wl({},a,{className:"recharts-cartesian-axis-tick-value"}),i),l}}])}(w.Component);tj(oc,"displayName","CartesianAxis");tj(oc,"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"});var Mde=["x1","y1","x2","y2","key"],Pde=["offset"];function Ds(e){"@babel/helpers - typeof";return Ds=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},Ds(e)}function aA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aA(Object(n),!0).forEach(function(r){$de(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $de(e,t,n){return t=Rde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rde(e){var t=Dde(e,"string");return Ds(t)=="symbol"?t:t+""}function Dde(e,t){if(Ds(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ds(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ss(){return ss=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},ss.apply(this,arguments)}function iA(e,t){if(e==null)return{};var n=Lde(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 Lde(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 zde=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,a=t.x,i=t.y,l=t.width,o=t.height,c=t.ry;return T.createElement("rect",{x:a,y:i,ry:c,width:l,height:o,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function IP(e,t){var n;if(T.isValidElement(e))n=T.cloneElement(e,t);else if(ce(e))n=e(t);else{var r=t.x1,a=t.y1,i=t.x2,l=t.y2,o=t.key,c=iA(t,Mde),u=ae(c,!1);u.offset;var f=iA(u,Pde);n=T.createElement("line",ss({},f,{x1:r,y1:a,x2:i,y2:l,fill:"none",key:o}))}return n}function Ide(e){var t=e.x,n=e.width,r=e.horizontal,a=r===void 0?!0:r,i=e.horizontalPoints;if(!a||!i||!i.length)return null;var l=i.map(function(o,c){var u=Wt(Wt({},e),{},{x1:t,y1:o,x2:t+n,y2:o,key:"line-".concat(c),index:c});return IP(a,u)});return T.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function Bde(e){var t=e.y,n=e.height,r=e.vertical,a=r===void 0?!0:r,i=e.verticalPoints;if(!a||!i||!i.length)return null;var l=i.map(function(o,c){var u=Wt(Wt({},e),{},{x1:o,y1:t,x2:o,y2:t+n,key:"line-".concat(c),index:c});return IP(a,u)});return T.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function Ude(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,a=e.y,i=e.width,l=e.height,o=e.horizontalPoints,c=e.horizontal,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var f=o.map(function(h){return Math.round(h+a-a)}).sort(function(h,m){return h-m});a!==f[0]&&f.unshift(0);var d=f.map(function(h,m){var j=!f[m+1],y=j?a+l-h:f[m+1]-h;if(y<=0)return null;var p=m%t.length;return T.createElement("rect",{key:"react-".concat(m),y:h,x:r,height:y,width:i,stroke:"none",fill:t[p],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function qde(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,a=e.fillOpacity,i=e.x,l=e.y,o=e.width,c=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var f=u.map(function(h){return Math.round(h+i-i)}).sort(function(h,m){return h-m});i!==f[0]&&f.unshift(0);var d=f.map(function(h,m){var j=!f[m+1],y=j?i+o-h:f[m+1]-h;if(y<=0)return null;var p=m%r.length;return T.createElement("rect",{key:"react-".concat(m),x:h,y:l,width:y,height:c,stroke:"none",fill:r[p],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var Hde=function(t,n){var r=t.xAxis,a=t.width,i=t.height,l=t.offset;return L3(ej(Wt(Wt(Wt({},oc.defaultProps),r),{},{ticks:xa(r,!0),viewBox:{x:0,y:0,width:a,height:i}})),l.left,l.left+l.width,n)},Fde=function(t,n){var r=t.yAxis,a=t.width,i=t.height,l=t.offset;return L3(ej(Wt(Wt(Wt({},oc.defaultProps),r),{},{ticks:xa(r,!0),viewBox:{x:0,y:0,width:a,height:i}})),l.top,l.top+l.height,n)},el={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Rl(e){var t,n,r,a,i,l,o=Q1(),c=Z1(),u=kfe(),f=Wt(Wt({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:el.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:el.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:el.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:el.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:el.vertical,verticalFill:(l=e.verticalFill)!==null&&l!==void 0?l:el.verticalFill,x:W(e.x)?e.x:u.left,y:W(e.y)?e.y:u.top,width:W(e.width)?e.width:u.width,height:W(e.height)?e.height:u.height}),d=f.x,h=f.y,m=f.width,j=f.height,y=f.syncWithTicks,p=f.horizontalValues,v=f.verticalValues,g=Cfe(),b=_fe();if(!W(m)||m<=0||!W(j)||j<=0||!W(d)||d!==+d||!W(h)||h!==+h)return null;var x=f.verticalCoordinatesGenerator||Hde,O=f.horizontalCoordinatesGenerator||Fde,S=f.horizontalPoints,N=f.verticalPoints;if((!S||!S.length)&&ce(O)){var A=p&&p.length,C=O({yAxis:b?Wt(Wt({},b),{},{ticks:A?p:b.ticks}):void 0,width:o,height:c,offset:u},A?!0:y);Sr(Array.isArray(C),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Ds(C),"]")),Array.isArray(C)&&(S=C)}if((!N||!N.length)&&ce(x)){var k=v&&v.length,R=x({xAxis:g?Wt(Wt({},g),{},{ticks:k?v:g.ticks}):void 0,width:o,height:c,offset:u},k?!0:y);Sr(Array.isArray(R),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Ds(R),"]")),Array.isArray(R)&&(N=R)}return T.createElement("g",{className:"recharts-cartesian-grid"},T.createElement(zde,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),T.createElement(Ide,ss({},f,{offset:u,horizontalPoints:S,xAxis:g,yAxis:b})),T.createElement(Bde,ss({},f,{offset:u,verticalPoints:N,xAxis:g,yAxis:b})),T.createElement(Ude,ss({},f,{horizontalPoints:S})),T.createElement(qde,ss({},f,{verticalPoints:N})))}Rl.displayName="CartesianGrid";var Gde=["type","layout","connectNulls","ref"],Kde=["key"];function Co(e){"@babel/helpers - typeof";return Co=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},Co(e)}function sA(e,t){if(e==null)return{};var n=Yde(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 Yde(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 eu(){return eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eu.apply(this,arguments)}function lA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lA(Object(n),!0).forEach(function(r){gr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tl(e){return Qde(e)||Xde(e)||Wde(e)||Vde()}function Vde(){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 Wde(e,t){if(e){if(typeof e=="string")return fb(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 fb(e,t)}}function Xde(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qde(e){if(Array.isArray(e))return fb(e)}function fb(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 Zde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,UP(r.key),r)}}function Jde(e,t,n){return t&&oA(e.prototype,t),n&&oA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ehe(e,t,n){return t=Cp(t),the(e,BP()?Reflect.construct(t,n||[],Cp(e).constructor):t.apply(e,n))}function the(e,t){if(t&&(Co(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nhe(e)}function nhe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BP=function(){return!!e})()}function Cp(e){return Cp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cp(e)}function rhe(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&&db(e,t)}function db(e,t){return db=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},db(e,t)}function gr(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=ahe(e,"string");return Co(t)=="symbol"?t:t+""}function ahe(e,t){if(Co(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Co(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Mi=function(e){function t(){var n;Zde(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=ehe(this,t,[].concat(a)),gr(n,"state",{isAnimationFinished:!0,totalLength:0}),gr(n,"generateSimpleStrokeDasharray",function(l,o){return"".concat(o,"px ").concat(l-o,"px")}),gr(n,"getStrokeDasharray",function(l,o,c){var u=c.reduce(function(v,g){return v+g});if(!u)return n.generateSimpleStrokeDasharray(o,l);for(var f=Math.floor(l/u),d=l%u,h=o-l,m=[],j=0,y=0;j<c.length;y+=c[j],++j)if(y+c[j]>d){m=[].concat(tl(c.slice(0,j)),[d-y]);break}var p=m.length%2===0?[0,h]:[h];return[].concat(tl(t.repeat(c,f)),tl(m),p).map(function(v){return"".concat(v,"px")}).join(", ")}),gr(n,"id",Di("recharts-line-")),gr(n,"pathRef",function(l){n.mainCurve=l}),gr(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),gr(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return rhe(t,e),Jde(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,l=i.points,o=i.xAxis,c=i.yAxis,u=i.layout,f=i.children,d=on(f,lc);if(!d)return null;var h=function(y,p){return{x:y.x,y:y.y,value:y.value,errorVal:Je(y.payload,p)}},m={clipPath:r?"url(#clipPath-".concat(a,")"):null};return T.createElement(ve,m,d.map(function(j){return T.cloneElement(j,{key:"bar-".concat(j.props.dataKey),data:l,xAxis:o,yAxis:c,layout:u,dataPointFormatter:h})}))}},{key:"renderDots",value:function(r,a,i){var l=this.props.isAnimationActive;if(l&&!this.state.isAnimationFinished)return null;var o=this.props,c=o.dot,u=o.points,f=o.dataKey,d=ae(this.props,!1),h=ae(c,!0),m=u.map(function(y,p){var v=jn(jn(jn({key:"dot-".concat(p),r:3},d),h),{},{index:p,cx:y.x,cy:y.y,value:y.value,dataKey:f,payload:y.payload,points:u});return t.renderDotItem(c,v)}),j={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return T.createElement(ve,eu({className:"recharts-line-dots",key:"dots"},j),m)}},{key:"renderCurveStatically",value:function(r,a,i,l){var o=this.props,c=o.type,u=o.layout,f=o.connectNulls;o.ref;var d=sA(o,Gde),h=jn(jn(jn({},ae(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(i,")"):null,points:r},l),{},{type:c,layout:u,connectNulls:f});return T.createElement(Oi,eu({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,a){var i=this,l=this.props,o=l.points,c=l.strokeDasharray,u=l.isAnimationActive,f=l.animationBegin,d=l.animationDuration,h=l.animationEasing,m=l.animationId,j=l.animateNewValues,y=l.width,p=l.height,v=this.state,g=v.prevPoints,b=v.totalLength;return T.createElement(lr,{begin:f,duration:d,isActive:u,easing:h,from:{t:0},to:{t:1},key:"line-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var O=x.t;if(g){var S=g.length/o.length,N=o.map(function(M,B){var _=Math.floor(B*S);if(g[_]){var E=g[_],P=it(E.x,M.x),I=it(E.y,M.y);return jn(jn({},M),{},{x:P(O),y:I(O)})}if(j){var z=it(y*2,M.x),G=it(p/2,M.y);return jn(jn({},M),{},{x:z(O),y:G(O)})}return jn(jn({},M),{},{x:M.x,y:M.y})});return i.renderCurveStatically(N,r,a)}var A=it(0,b),C=A(O),k;if(c){var R="".concat(c).split(/[,\s]+/gim).map(function(M){return parseFloat(M)});k=i.getStrokeDasharray(C,b,R)}else k=i.generateSimpleStrokeDasharray(b,C);return i.renderCurveStatically(o,r,a,{strokeDasharray:k})})}},{key:"renderCurve",value:function(r,a){var i=this.props,l=i.points,o=i.isAnimationActive,c=this.state,u=c.prevPoints,f=c.totalLength;return o&&l&&l.length&&(!u&&f>0||!ki(u,l))?this.renderCurveWithAnimation(r,a):this.renderCurveStatically(l,r,a)}},{key:"render",value:function(){var r,a=this.props,i=a.hide,l=a.dot,o=a.points,c=a.className,u=a.xAxis,f=a.yAxis,d=a.top,h=a.left,m=a.width,j=a.height,y=a.isAnimationActive,p=a.id;if(i||!o||!o.length)return null;var v=this.state.isAnimationFinished,g=o.length===1,b=pe("recharts-line",c),x=u&&u.allowDataOverflow,O=f&&f.allowDataOverflow,S=x||O,N=le(p)?this.id:p,A=(r=ae(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},C=A.r,k=C===void 0?3:C,R=A.strokeWidth,M=R===void 0?2:R,B=Tk(l)?l:{},_=B.clipDot,E=_===void 0?!0:_,P=k*2+M;return T.createElement(ve,{className:b},x||O?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(N)},T.createElement("rect",{x:x?h:h-m/2,y:O?d:d-j/2,width:x?m:m*2,height:O?j:j*2})),!E&&T.createElement("clipPath",{id:"clipPath-dots-".concat(N)},T.createElement("rect",{x:h-P/2,y:d-P/2,width:m+P,height:j+P}))):null,!g&&this.renderCurve(S,N),this.renderErrorBar(S,N),(g||l)&&this.renderDots(S,E,N),(!y||v)&&wr.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:a.curPoints}:r.points!==a.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,a){for(var i=r.length%2!==0?[].concat(tl(r),[0]):r,l=[],o=0;o<a;++o)l=[].concat(tl(l),tl(i));return l}},{key:"renderDotItem",value:function(r,a){var i;if(T.isValidElement(r))i=T.cloneElement(r,a);else if(ce(r))i=r(a);else{var l=a.key,o=sA(a,Kde),c=pe("recharts-line-dot",typeof r!="boolean"?r.className:"");i=T.createElement($f,eu({key:l},o,{className:c}))}return i}}])}(w.PureComponent);gr(Mi,"displayName","Line");gr(Mi,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!La.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});gr(Mi,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,a=e.xAxisTicks,i=e.yAxisTicks,l=e.dataKey,o=e.bandSize,c=e.displayedData,u=e.offset,f=t.layout,d=c.map(function(h,m){var j=Je(h,l);return f==="horizontal"?{x:yo({axis:n,ticks:a,bandSize:o,entry:h,index:m}),y:le(j)?null:r.scale(j),value:j,payload:h}:{x:le(j)?null:n.scale(j),y:yo({axis:r,ticks:i,bandSize:o,entry:h,index:m}),value:j,payload:h}});return jn({points:d,layout:f},u)});var ihe=["layout","type","stroke","connectNulls","isRange","ref"],she=["key"],qP;function _o(e){"@babel/helpers - typeof";return _o=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},_o(e)}function HP(e,t){if(e==null)return{};var n=lhe(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 lhe(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 ls(){return ls=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},ls.apply(this,arguments)}function cA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ga(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cA(Object(n),!0).forEach(function(r){Hr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ohe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uA(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 che(e,t,n){return t&&uA(e.prototype,t),n&&uA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uhe(e,t,n){return t=_p(t),fhe(e,FP()?Reflect.construct(t,n||[],_p(e).constructor):t.apply(e,n))}function fhe(e,t){if(t&&(_o(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dhe(e)}function dhe(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 _p(e){return _p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_p(e)}function hhe(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&&hb(e,t)}function hb(e,t){return hb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},hb(e,t)}function Hr(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=phe(e,"string");return _o(t)=="symbol"?t:t+""}function phe(e,t){if(_o(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_o(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ba=function(e){function t(){var n;ohe(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=uhe(this,t,[].concat(a)),Hr(n,"state",{isAnimationFinished:!0}),Hr(n,"id",Di("recharts-area-")),Hr(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),ce(l)&&l()}),Hr(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),ce(l)&&l()}),n}return hhe(t,e),che(t,[{key:"renderDots",value:function(r,a,i){var l=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(l&&!o)return null;var c=this.props,u=c.dot,f=c.points,d=c.dataKey,h=ae(this.props,!1),m=ae(u,!0),j=f.map(function(p,v){var g=Ga(Ga(Ga({key:"dot-".concat(v),r:3},h),m),{},{index:v,cx:p.x,cy:p.y,dataKey:d,value:p.value,payload:p.payload,points:f});return t.renderDotItem(u,g)}),y={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return T.createElement(ve,ls({className:"recharts-area-dots"},y),j)}},{key:"renderHorizontalRect",value:function(r){var a=this.props,i=a.baseLine,l=a.points,o=a.strokeWidth,c=l[0].x,u=l[l.length-1].x,f=r*Math.abs(c-u),d=fi(l.map(function(h){return h.y||0}));return W(i)&&typeof i=="number"?d=Math.max(i,d):i&&Array.isArray(i)&&i.length&&(d=Math.max(fi(i.map(function(h){return h.y||0})),d)),W(d)?T.createElement("rect",{x:c<u?c:c-f,y:0,width:f,height:Math.floor(d+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var a=this.props,i=a.baseLine,l=a.points,o=a.strokeWidth,c=l[0].y,u=l[l.length-1].y,f=r*Math.abs(c-u),d=fi(l.map(function(h){return h.x||0}));return W(i)&&typeof i=="number"?d=Math.max(i,d):i&&Array.isArray(i)&&i.length&&(d=Math.max(fi(i.map(function(h){return h.x||0})),d)),W(d)?T.createElement("rect",{x:0,y:c<u?c:c-f,width:d+(o?parseInt("".concat(o),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(r){var a=this.props.layout;return a==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,a,i,l){var o=this.props,c=o.layout,u=o.type,f=o.stroke,d=o.connectNulls,h=o.isRange;o.ref;var m=HP(o,ihe);return T.createElement(ve,{clipPath:i?"url(#clipPath-".concat(l,")"):null},T.createElement(Oi,ls({},ae(m,!0),{points:r,connectNulls:d,type:u,baseLine:a,layout:c,stroke:"none",className:"recharts-area-area"})),f!=="none"&&T.createElement(Oi,ls({},ae(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:d,fill:"none",points:r})),f!=="none"&&h&&T.createElement(Oi,ls({},ae(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:d,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(r,a){var i=this,l=this.props,o=l.points,c=l.baseLine,u=l.isAnimationActive,f=l.animationBegin,d=l.animationDuration,h=l.animationEasing,m=l.animationId,j=this.state,y=j.prevPoints,p=j.prevBaseLine;return T.createElement(lr,{begin:f,duration:d,isActive:u,easing:h,from:{t:0},to:{t:1},key:"area-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var g=v.t;if(y){var b=y.length/o.length,x=o.map(function(A,C){var k=Math.floor(C*b);if(y[k]){var R=y[k],M=it(R.x,A.x),B=it(R.y,A.y);return Ga(Ga({},A),{},{x:M(g),y:B(g)})}return A}),O;if(W(c)&&typeof c=="number"){var S=it(p,c);O=S(g)}else if(le(c)||ec(c)){var N=it(p,0);O=N(g)}else O=c.map(function(A,C){var k=Math.floor(C*b);if(p[k]){var R=p[k],M=it(R.x,A.x),B=it(R.y,A.y);return Ga(Ga({},A),{},{x:M(g),y:B(g)})}return A});return i.renderAreaStatically(x,O,r,a)}return T.createElement(ve,null,T.createElement("defs",null,T.createElement("clipPath",{id:"animationClipPath-".concat(a)},i.renderClipRect(g))),T.createElement(ve,{clipPath:"url(#animationClipPath-".concat(a,")")},i.renderAreaStatically(o,c,r,a)))})}},{key:"renderArea",value:function(r,a){var i=this.props,l=i.points,o=i.baseLine,c=i.isAnimationActive,u=this.state,f=u.prevPoints,d=u.prevBaseLine,h=u.totalLength;return c&&l&&l.length&&(!f&&h>0||!ki(f,l)||!ki(d,o))?this.renderAreaWithAnimation(r,a):this.renderAreaStatically(l,o,r,a)}},{key:"render",value:function(){var r,a=this.props,i=a.hide,l=a.dot,o=a.points,c=a.className,u=a.top,f=a.left,d=a.xAxis,h=a.yAxis,m=a.width,j=a.height,y=a.isAnimationActive,p=a.id;if(i||!o||!o.length)return null;var v=this.state.isAnimationFinished,g=o.length===1,b=pe("recharts-area",c),x=d&&d.allowDataOverflow,O=h&&h.allowDataOverflow,S=x||O,N=le(p)?this.id:p,A=(r=ae(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},C=A.r,k=C===void 0?3:C,R=A.strokeWidth,M=R===void 0?2:R,B=Tk(l)?l:{},_=B.clipDot,E=_===void 0?!0:_,P=k*2+M;return T.createElement(ve,{className:b},x||O?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(N)},T.createElement("rect",{x:x?f:f-m/2,y:O?u:u-j/2,width:x?m:m*2,height:O?j:j*2})),!E&&T.createElement("clipPath",{id:"clipPath-dots-".concat(N)},T.createElement("rect",{x:f-P/2,y:u-P/2,width:m+P,height:j+P}))):null,g?null:this.renderArea(S,N),(l||g)&&this.renderDots(S,E,N),(!y||v)&&wr.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:a.curPoints,prevBaseLine:a.curBaseLine}:r.points!==a.curPoints||r.baseLine!==a.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(w.PureComponent);qP=Ba;Hr(Ba,"displayName","Area");Hr(Ba,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!La.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Hr(Ba,"getBaseValue",function(e,t,n,r){var a=e.layout,i=e.baseValue,l=t.props.baseValue,o=l??i;if(W(o)&&typeof o=="number")return o;var c=a==="horizontal"?r:n,u=c.scale.domain();if(c.type==="number"){var f=Math.max(u[0],u[1]),d=Math.min(u[0],u[1]);return o==="dataMin"?d:o==="dataMax"||f<0?f:Math.max(Math.min(u[0],u[1]),0)}return o==="dataMin"?u[0]:o==="dataMax"?u[1]:u[0]});Hr(Ba,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,a=e.yAxis,i=e.xAxisTicks,l=e.yAxisTicks,o=e.bandSize,c=e.dataKey,u=e.stackedData,f=e.dataStartIndex,d=e.displayedData,h=e.offset,m=t.layout,j=u&&u.length,y=qP.getBaseValue(t,n,r,a),p=m==="horizontal",v=!1,g=d.map(function(x,O){var S;j?S=u[f+O]:(S=Je(x,c),Array.isArray(S)?v=!0:S=[y,S]);var N=S[1]==null||j&&Je(x,c)==null;return p?{x:yo({axis:r,ticks:i,bandSize:o,entry:x,index:O}),y:N?null:a.scale(S[1]),value:S,payload:x}:{x:N?null:r.scale(S[1]),y:yo({axis:a,ticks:l,bandSize:o,entry:x,index:O}),value:S,payload:x}}),b;return j||v?b=g.map(function(x){var O=Array.isArray(x.value)?x.value[0]:null;return p?{x:x.x,y:O!=null&&x.y!=null?a.scale(O):null}:{x:O!=null?r.scale(O):null,y:x.y}}):b=p?a.scale(y):r.scale(y),Ga({points:g,baseLine:b,layout:m,isRange:v},h)});Hr(Ba,"renderDotItem",function(e,t){var n;if(T.isValidElement(e))n=T.cloneElement(e,t);else if(ce(e))n=e(t);else{var r=pe("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,i=HP(t,she);n=T.createElement($f,ls({},i,{key:a,className:r}))}return n});function To(e){"@babel/helpers - typeof";return To=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},To(e)}function mhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yhe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,VP(r.key),r)}}function vhe(e,t,n){return t&&yhe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ghe(e,t,n){return t=Tp(t),xhe(e,KP()?Reflect.construct(t,n||[],Tp(e).constructor):t.apply(e,n))}function xhe(e,t){if(t&&(To(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bhe(e)}function bhe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KP=function(){return!!e})()}function Tp(e){return Tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tp(e)}function jhe(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&&pb(e,t)}function pb(e,t){return pb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},pb(e,t)}function YP(e,t,n){return t=VP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VP(e){var t=She(e,"string");return To(t)=="symbol"?t:t+""}function She(e,t){if(To(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(To(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oy=function(e){function t(){return mhe(this,t),ghe(this,t,arguments)}return jhe(t,e),vhe(t,[{key:"render",value:function(){return null}}])}(w.Component);YP(oy,"displayName","ZAxis");YP(oy,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var whe=["option","isActive"];function tu(){return tu=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},tu.apply(this,arguments)}function Ohe(e,t){if(e==null)return{};var n=Nhe(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 Nhe(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 Ahe(e){var t=e.option,n=e.isActive,r=Ohe(e,whe);return typeof t=="string"?w.createElement(yp,tu({option:w.createElement(Dm,tu({type:t},r)),isActive:n,shapeType:"symbols"},r)):w.createElement(yp,tu({option:t,isActive:n,shapeType:"symbols"},r))}function ko(e){"@babel/helpers - typeof";return ko=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},ko(e)}function nu(){return nu=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},nu.apply(this,arguments)}function fA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fA(Object(n),!0).forEach(function(r){hi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ehe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dA(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 Che(e,t,n){return t&&dA(e.prototype,t),n&&dA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _he(e,t,n){return t=kp(t),The(e,WP()?Reflect.construct(t,n||[],kp(e).constructor):t.apply(e,n))}function The(e,t){if(t&&(ko(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return khe(e)}function khe(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 kp(e){return kp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kp(e)}function Mhe(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&&mb(e,t)}function mb(e,t){return mb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},mb(e,t)}function hi(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=Phe(e,"string");return ko(t)=="symbol"?t:t+""}function Phe(e,t){if(ko(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ko(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cy=function(e){function t(){var n;Ehe(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=_he(this,t,[].concat(a)),hi(n,"state",{isAnimationFinished:!1}),hi(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0})}),hi(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1})}),hi(n,"id",Di("recharts-scatter-")),n}return Mhe(t,e),Che(t,[{key:"renderSymbolsStatically",value:function(r){var a=this,i=this.props,l=i.shape,o=i.activeShape,c=i.activeIndex,u=ae(this.props,!1);return r.map(function(f,d){var h=c===d,m=h?o:l,j=Fn(Fn({},u),f);return T.createElement(ve,nu({className:"recharts-scatter-symbol",key:"symbol-".concat(f==null?void 0:f.cx,"-").concat(f==null?void 0:f.cy,"-").concat(f==null?void 0:f.size,"-").concat(d)},Ti(a.props,f,d),{role:"img"}),T.createElement(Ahe,nu({option:m,isActive:h,key:"symbol-".concat(d)},j)))})}},{key:"renderSymbolsWithAnimation",value:function(){var r=this,a=this.props,i=a.points,l=a.isAnimationActive,o=a.animationBegin,c=a.animationDuration,u=a.animationEasing,f=a.animationId,d=this.state.prevPoints;return T.createElement(lr,{begin:o,duration:c,isActive:l,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var m=h.t,j=i.map(function(y,p){var v=d&&d[p];if(v){var g=it(v.cx,y.cx),b=it(v.cy,y.cy),x=it(v.size,y.size);return Fn(Fn({},y),{},{cx:g(m),cy:b(m),size:x(m)})}var O=it(0,y.size);return Fn(Fn({},y),{},{size:O(m)})});return T.createElement(ve,null,r.renderSymbolsStatically(j))})}},{key:"renderSymbols",value:function(){var r=this.props,a=r.points,i=r.isAnimationActive,l=this.state.prevPoints;return i&&a&&a.length&&(!l||!ki(l,a))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(a)}},{key:"renderErrorBar",value:function(){var r=this.props.isAnimationActive;if(r&&!this.state.isAnimationFinished)return null;var a=this.props,i=a.points,l=a.xAxis,o=a.yAxis,c=a.children,u=on(c,lc);return u?u.map(function(f,d){var h=f.props,m=h.direction,j=h.dataKey;return T.cloneElement(f,{key:"".concat(m,"-").concat(j,"-").concat(i[d]),data:i,xAxis:l,yAxis:o,layout:m==="x"?"vertical":"horizontal",dataPointFormatter:function(p,v){return{x:p.cx,y:p.cy,value:m==="x"?+p.node.x:+p.node.y,errorVal:Je(p,v)}}})}):null}},{key:"renderLine",value:function(){var r=this.props,a=r.points,i=r.line,l=r.lineType,o=r.lineJointType,c=ae(this.props,!1),u=ae(i,!1),f,d;if(l==="joint")f=a.map(function(b){return{x:b.cx,y:b.cy}});else if(l==="fitting"){var h=pH(a),m=h.xmin,j=h.xmax,y=h.a,p=h.b,v=function(x){return y*x+p};f=[{x:m,y:v(m)},{x:j,y:v(j)}]}var g=Fn(Fn(Fn({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:f});return T.isValidElement(i)?d=T.cloneElement(i,g):ce(i)?d=i(g):d=T.createElement(Oi,nu({},g,{type:o})),T.createElement(ve,{className:"recharts-scatter-line",key:"recharts-scatter-line"},d)}},{key:"render",value:function(){var r=this.props,a=r.hide,i=r.points,l=r.line,o=r.className,c=r.xAxis,u=r.yAxis,f=r.left,d=r.top,h=r.width,m=r.height,j=r.id,y=r.isAnimationActive;if(a||!i||!i.length)return null;var p=this.state.isAnimationFinished,v=pe("recharts-scatter",o),g=c&&c.allowDataOverflow,b=u&&u.allowDataOverflow,x=g||b,O=le(j)?this.id:j;return T.createElement(ve,{className:v,clipPath:x?"url(#clipPath-".concat(O,")"):null},g||b?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(O)},T.createElement("rect",{x:g?f:f-h/2,y:b?d:d-m/2,width:g?h:h*2,height:b?m:m*2}))):null,l&&this.renderLine(),this.renderErrorBar(),T.createElement(ve,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!y||p)&&wr.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:a.curPoints}:r.points!==a.curPoints?{curPoints:r.points}:null}}])}(w.PureComponent);hi(cy,"displayName","Scatter");hi(cy,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!La.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});hi(cy,"getComposedData",function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,a=e.item,i=e.displayedData,l=e.xAxisTicks,o=e.yAxisTicks,c=e.offset,u=a.props.tooltipType,f=on(a.props.children,_f),d=le(t.dataKey)?a.props.dataKey:t.dataKey,h=le(n.dataKey)?a.props.dataKey:n.dataKey,m=r&&r.dataKey,j=r?r.range:oy.defaultProps.range,y=j&&j[0],p=t.scale.bandwidth?t.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0,g=i.map(function(b,x){var O=Je(b,d),S=Je(b,h),N=!le(m)&&Je(b,m)||"-",A=[{name:le(t.dataKey)?a.props.name:t.name||t.dataKey,unit:t.unit||"",value:O,payload:b,dataKey:d,type:u},{name:le(n.dataKey)?a.props.name:n.name||n.dataKey,unit:n.unit||"",value:S,payload:b,dataKey:h,type:u}];N!=="-"&&A.push({name:r.name||r.dataKey,unit:r.unit||"",value:N,payload:b,dataKey:m,type:u});var C=yo({axis:t,ticks:l,bandSize:p,entry:b,index:x,dataKey:d}),k=yo({axis:n,ticks:o,bandSize:v,entry:b,index:x,dataKey:h}),R=N!=="-"?r.scale(N):y,M=Math.sqrt(Math.max(R,0)/Math.PI);return Fn(Fn({},b),{},{cx:C,cy:k,x:C-M,y:k-M,xAxis:t,yAxis:n,zAxis:r,width:2*M,height:2*M,size:R,node:{x:O,y:S,z:N},tooltipPayload:A,tooltipPosition:{x:C,y:k},payload:b},f&&f[x]&&f[x].props)});return Fn({points:g},c)});function Mo(e){"@babel/helpers - typeof";return Mo=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},Mo(e)}function $he(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rhe(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 Dhe(e,t,n){return t&&Rhe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lhe(e,t,n){return t=Mp(t),zhe(e,QP()?Reflect.construct(t,n||[],Mp(e).constructor):t.apply(e,n))}function zhe(e,t){if(t&&(Mo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ihe(e)}function Ihe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QP=function(){return!!e})()}function Mp(e){return Mp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mp(e)}function Bhe(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&&yb(e,t)}function yb(e,t){return yb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},yb(e,t)}function ZP(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=Uhe(e,"string");return Mo(t)=="symbol"?t:t+""}function Uhe(e,t){if(Mo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function vb(){return vb=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},vb.apply(this,arguments)}function qhe(e){var t=e.xAxisId,n=Q1(),r=Z1(),a=CP(t);return a==null?null:w.createElement(oc,vb({},a,{className:pe("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(l){return xa(l,!0)}}))}var Or=function(e){function t(){return $he(this,t),Lhe(this,t,arguments)}return Bhe(t,e),Dhe(t,[{key:"render",value:function(){return w.createElement(qhe,this.props)}}])}(w.Component);ZP(Or,"displayName","XAxis");ZP(Or,"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 Po(e){"@babel/helpers - typeof";return Po=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},Po(e)}function Hhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fhe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n$(r.key),r)}}function Ghe(e,t,n){return t&&Fhe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Khe(e,t,n){return t=Pp(t),Yhe(e,e$()?Reflect.construct(t,n||[],Pp(e).constructor):t.apply(e,n))}function Yhe(e,t){if(t&&(Po(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vhe(e)}function Vhe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e$=function(){return!!e})()}function Pp(e){return Pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pp(e)}function Whe(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&&gb(e,t)}function gb(e,t){return gb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},gb(e,t)}function t$(e,t,n){return t=n$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n$(e){var t=Xhe(e,"string");return Po(t)=="symbol"?t:t+""}function Xhe(e,t){if(Po(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Po(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function xb(){return xb=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},xb.apply(this,arguments)}var Qhe=function(t){var n=t.yAxisId,r=Q1(),a=Z1(),i=_P(n);return i==null?null:w.createElement(oc,xb({},i,{className:pe("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(o){return xa(o,!0)}}))},Nr=function(e){function t(){return Hhe(this,t),Khe(this,t,arguments)}return Whe(t,e),Ghe(t,[{key:"render",value:function(){return w.createElement(Qhe,this.props)}}])}(w.Component);t$(Nr,"displayName","YAxis");t$(Nr,"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 hA(e){return tpe(e)||epe(e)||Jhe(e)||Zhe()}function Zhe(){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 Jhe(e,t){if(e){if(typeof e=="string")return bb(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 bb(e,t)}}function epe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tpe(e){if(Array.isArray(e))return bb(e)}function bb(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 jb=function(t,n,r,a,i){var l=on(t,fa),o=on(t,iy),c=[].concat(hA(l),hA(o)),u=on(t,ly),f="".concat(a,"Id"),d=a[0],h=n;if(c.length&&(h=c.reduce(function(y,p){if(p.props[f]===r&&Kr(p.props,"extendDomain")&&W(p.props[d])){var v=p.props[d];return[Math.min(y[0],v),Math.max(y[1],v)]}return y},h)),u.length){var m="".concat(d,"1"),j="".concat(d,"2");h=u.reduce(function(y,p){if(p.props[f]===r&&Kr(p.props,"extendDomain")&&W(p.props[m])&&W(p.props[j])){var v=p.props[m],g=p.props[j];return[Math.min(y[0],v,g),Math.max(y[1],v,g)]}return y},h)}return i&&i.length&&(h=i.reduce(function(y,p){return W(p)?[Math.min(y[0],p),Math.max(y[1],p)]:y},h)),h},r$={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(c,u,f){this.fn=c,this.context=u,this.once=f||!1}function i(c,u,f,d,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var m=new a(f,d||c,h),j=n?n+u:u;return c._events[j]?c._events[j].fn?c._events[j]=[c._events[j],m]:c._events[j].push(m):(c._events[j]=m,c._eventsCount++),c}function l(c,u){--c._eventsCount===0?c._events=new r:delete c._events[u]}function o(){this._events=new r,this._eventsCount=0}o.prototype.eventNames=function(){var u=[],f,d;if(this._eventsCount===0)return u;for(d in f=this._events)t.call(f,d)&&u.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},o.prototype.listeners=function(u){var f=n?n+u:u,d=this._events[f];if(!d)return[];if(d.fn)return[d.fn];for(var h=0,m=d.length,j=new Array(m);h<m;h++)j[h]=d[h].fn;return j},o.prototype.listenerCount=function(u){var f=n?n+u:u,d=this._events[f];return d?d.fn?1:d.length:0},o.prototype.emit=function(u,f,d,h,m,j){var y=n?n+u:u;if(!this._events[y])return!1;var p=this._events[y],v=arguments.length,g,b;if(p.fn){switch(p.once&&this.removeListener(u,p.fn,void 0,!0),v){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,f),!0;case 3:return p.fn.call(p.context,f,d),!0;case 4:return p.fn.call(p.context,f,d,h),!0;case 5:return p.fn.call(p.context,f,d,h,m),!0;case 6:return p.fn.call(p.context,f,d,h,m,j),!0}for(b=1,g=new Array(v-1);b<v;b++)g[b-1]=arguments[b];p.fn.apply(p.context,g)}else{var x=p.length,O;for(b=0;b<x;b++)switch(p[b].once&&this.removeListener(u,p[b].fn,void 0,!0),v){case 1:p[b].fn.call(p[b].context);break;case 2:p[b].fn.call(p[b].context,f);break;case 3:p[b].fn.call(p[b].context,f,d);break;case 4:p[b].fn.call(p[b].context,f,d,h);break;default:if(!g)for(O=1,g=new Array(v-1);O<v;O++)g[O-1]=arguments[O];p[b].fn.apply(p[b].context,g)}}return!0},o.prototype.on=function(u,f,d){return i(this,u,f,d,!1)},o.prototype.once=function(u,f,d){return i(this,u,f,d,!0)},o.prototype.removeListener=function(u,f,d,h){var m=n?n+u:u;if(!this._events[m])return this;if(!f)return l(this,m),this;var j=this._events[m];if(j.fn)j.fn===f&&(!h||j.once)&&(!d||j.context===d)&&l(this,m);else{for(var y=0,p=[],v=j.length;y<v;y++)(j[y].fn!==f||h&&!j[y].once||d&&j[y].context!==d)&&p.push(j[y]);p.length?this._events[m]=p.length===1?p[0]:p:l(this,m)}return this},o.prototype.removeAllListeners=function(u){var f;return u?(f=n?n+u:u,this._events[f]&&l(this,f)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,e.exports=o})(r$);var npe=r$.exports;const rpe=Me(npe);var _v=new rpe,Tv="recharts.syncMouseEvents";function Ju(e){"@babel/helpers - typeof";return Ju=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},Ju(e)}function ape(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ipe(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,a$(r.key),r)}}function spe(e,t,n){return t&&ipe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kv(e,t,n){return t=a$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a$(e){var t=lpe(e,"string");return Ju(t)=="symbol"?t:t+""}function lpe(e,t){if(Ju(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ju(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ope=function(){function e(){ape(this,e),kv(this,"activeIndex",0),kv(this,"coordinateList",[]),kv(this,"layout","horizontal")}return spe(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,i=a===void 0?null:a,l=n.container,o=l===void 0?null:l,c=n.layout,u=c===void 0?null:c,f=n.offset,d=f===void 0?null:f,h=n.mouseHandlerCallback,m=h===void 0?null:h;this.coordinateList=(r=i??this.coordinateList)!==null&&r!==void 0?r:[],this.container=o??this.container,this.layout=u??this.layout,this.offset=d??this.offset,this.mouseHandlerCallback=m??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,l=a.y,o=a.height,c=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,f=((r=window)===null||r===void 0?void 0:r.scrollY)||0,d=i+c+u,h=l+this.offset.top+o/2+f;this.mouseHandlerCallback({pageX:d,pageY:h})}}}])}();function cpe(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&&W(r)&&W(a))return!0}return!1}function upe(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 i$(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,l=Ke(t,n,r,a),o=Ke(t,n,r,i);return{points:[l,o],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function fpe(e,t,n){var r,a,i,l;if(e==="horizontal")r=t.x,i=r,a=n.top,l=n.top+n.height;else if(e==="vertical")a=t.y,l=a,r=n.left,i=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var o=t.cx,c=t.cy,u=t.innerRadius,f=t.outerRadius,d=t.angle,h=Ke(o,c,u,d),m=Ke(o,c,f,d);r=h.x,a=h.y,i=m.x,l=m.y}else return i$(t);return[{x:r,y:a},{x:i,y:l}]}function ef(e){"@babel/helpers - typeof";return ef=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},ef(e)}function pA(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 yd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pA(Object(n),!0).forEach(function(r){dpe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dpe(e,t,n){return t=hpe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hpe(e){var t=ppe(e,"string");return ef(t)=="symbol"?t:t+""}function ppe(e,t){if(ef(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ef(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mpe(e){var t,n,r=e.element,a=e.tooltipEventType,i=e.isActive,l=e.activeCoordinate,o=e.activePayload,c=e.offset,u=e.activeTooltipIndex,f=e.tooltipAxisBandSize,d=e.layout,h=e.chartName,m=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!m||!i||!l||h!=="ScatterChart"&&a!=="axis")return null;var j,y=Oi;if(h==="ScatterChart")j=l,y=aoe;else if(h==="BarChart")j=upe(d,l,c,f),y=Y1;else if(d==="radial"){var p=i$(l),v=p.cx,g=p.cy,b=p.radius,x=p.startAngle,O=p.endAngle;j={cx:v,cy:g,startAngle:x,endAngle:O,innerRadius:b,outerRadius:b},y=V3}else j={points:fpe(d,l,c)},y=Oi;var S=yd(yd(yd(yd({stroke:"#ccc",pointerEvents:"none"},c),j),ae(m,!1)),{},{payload:o,payloadIndex:u,className:pe("recharts-tooltip-cursor",m.className)});return w.isValidElement(m)?w.cloneElement(m,S):w.createElement(y,S)}var ype=["item"],vpe=["children","className","width","height","style","compact","title","desc"];function $o(e){"@babel/helpers - typeof";return $o=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},$o(e)}function Ol(){return Ol=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},Ol.apply(this,arguments)}function mA(e,t){return bpe(e)||xpe(e,t)||l$(e,t)||gpe()}function gpe(){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 xpe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function bpe(e){if(Array.isArray(e))return e}function yA(e,t){if(e==null)return{};var n=jpe(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 jpe(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 Spe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wpe(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,o$(r.key),r)}}function Ope(e,t,n){return t&&wpe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Npe(e,t,n){return t=$p(t),Ape(e,s$()?Reflect.construct(t,n||[],$p(e).constructor):t.apply(e,n))}function Ape(e,t){if(t&&($o(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Epe(e)}function Epe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s$=function(){return!!e})()}function $p(e){return $p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$p(e)}function Cpe(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&&Sb(e,t)}function Sb(e,t){return Sb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Sb(e,t)}function Ro(e){return kpe(e)||Tpe(e)||l$(e)||_pe()}function _pe(){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 l$(e,t){if(e){if(typeof e=="string")return wb(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 wb(e,t)}}function Tpe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kpe(e){if(Array.isArray(e))return wb(e)}function wb(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 vA(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 H(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vA(Object(n),!0).forEach(function(r){ue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ue(e,t,n){return t=o$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o$(e){var t=Mpe(e,"string");return $o(t)=="symbol"?t:t+""}function Mpe(e,t){if($o(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($o(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ppe={xAxis:["bottom","top"],yAxis:["left","right"]},$pe={width:"100%",height:"100%"},c$={x:0,y:0};function vd(e){return e}var Rpe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Dpe=function(t,n,r,a){var i=n.find(function(f){return f&&f.index===r});if(i){if(t==="horizontal")return{x:i.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:i.coordinate};if(t==="centric"){var l=i.coordinate,o=a.radius;return H(H(H({},a),Ke(a.cx,a.cy,o,l)),{},{angle:l,radius:o})}var c=i.coordinate,u=a.angle;return H(H(H({},a),Ke(a.cx,a.cy,c,u)),{},{angle:u,radius:c})}return c$},uy=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,i=n.dataEndIndex,l=(r??[]).reduce(function(o,c){var u=c.props.data;return u&&u.length?[].concat(Ro(o),Ro(u)):o},[]);return l.length>0?l:t&&t.length&&W(a)&&W(i)?t.slice(a,i+1):[]};function u$(e){return e==="number"?[0,"auto"]:void 0}var Ob=function(t,n,r,a){var i=t.graphicalItems,l=t.tooltipAxis,o=uy(n,t);return r<0||!i||!i.length||r>=o.length?null:i.reduce(function(c,u){var f,d=(f=u.props.data)!==null&&f!==void 0?f:n;d&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(d=d.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(l.dataKey&&!l.allowDuplicatedCategory){var m=d===void 0?o:d;h=_h(m,l.dataKey,a)}else h=d&&d[r]||o[r];return h?[].concat(Ro(c),[q3(u,h)]):c},[])},gA=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},l=Rpe(i,r),o=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,f=Oae(l,o,u,c);if(f>=0&&u){var d=u[f]&&u[f].value,h=Ob(t,n,f,d),m=Dpe(r,o,f,i);return{activeTooltipIndex:f,activeLabel:d,activePayload:h,activeCoordinate:m}}return null},Lpe=function(t,n){var r=n.axes,a=n.graphicalItems,i=n.axisType,l=n.axisIdKey,o=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,h=t.stackOffset,m=D3(f,i);return r.reduce(function(j,y){var p,v=y.type.defaultProps!==void 0?H(H({},y.type.defaultProps),y.props):y.props,g=v.type,b=v.dataKey,x=v.allowDataOverflow,O=v.allowDuplicatedCategory,S=v.scale,N=v.ticks,A=v.includeHidden,C=v[l];if(j[C])return j;var k=uy(t.data,{graphicalItems:a.filter(function(X){var ee,ie=l in X.props?X.props[l]:(ee=X.type.defaultProps)===null||ee===void 0?void 0:ee[l];return ie===C}),dataStartIndex:c,dataEndIndex:u}),R=k.length,M,B,_;cpe(v.domain,x,g)&&(M=Rx(v.domain,null,x),m&&(g==="number"||S!=="auto")&&(_=Xc(k,b,"category")));var E=u$(g);if(!M||M.length===0){var P,I=(P=v.domain)!==null&&P!==void 0?P:E;if(b){if(M=Xc(k,b,g),g==="category"&&m){var z=hH(M);O&&z?(B=M,M=gp(0,R)):O||(M=IO(I,M,y).reduce(function(X,ee){return X.indexOf(ee)>=0?X:[].concat(Ro(X),[ee])},[]))}else if(g==="category")O?M=M.filter(function(X){return X!==""&&!le(X)}):M=IO(I,M,y).reduce(function(X,ee){return X.indexOf(ee)>=0||ee===""||le(ee)?X:[].concat(Ro(X),[ee])},[]);else if(g==="number"){var G=_ae(k,a.filter(function(X){var ee,ie,Ne=l in X.props?X.props[l]:(ee=X.type.defaultProps)===null||ee===void 0?void 0:ee[l],Zt="hide"in X.props?X.props.hide:(ie=X.type.defaultProps)===null||ie===void 0?void 0:ie.hide;return Ne===C&&(A||!Zt)}),b,i,f);G&&(M=G)}m&&(g==="number"||S!=="auto")&&(_=Xc(k,b,"category"))}else m?M=gp(0,R):o&&o[C]&&o[C].hasStack&&g==="number"?M=h==="expand"?[0,1]:U3(o[C].stackGroups,c,u):M=R3(k,a.filter(function(X){var ee=l in X.props?X.props[l]:X.type.defaultProps[l],ie="hide"in X.props?X.props.hide:X.type.defaultProps.hide;return ee===C&&(A||!ie)}),g,f,!0);if(g==="number")M=jb(d,M,C,i,N),I&&(M=Rx(I,M,x));else if(g==="category"&&I){var V=I,Z=M.every(function(X){return V.indexOf(X)>=0});Z&&(M=V)}}return H(H({},j),{},ue({},C,H(H({},v),{},{axisType:i,domain:M,categoricalDomain:_,duplicateDomain:B,originalDomain:(p=v.domain)!==null&&p!==void 0?p:E,isCategorical:m,layout:f})))},{})},zpe=function(t,n){var r=n.graphicalItems,a=n.Axis,i=n.axisType,l=n.axisIdKey,o=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,h=uy(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),m=h.length,j=D3(f,i),y=-1;return r.reduce(function(p,v){var g=v.type.defaultProps!==void 0?H(H({},v.type.defaultProps),v.props):v.props,b=g[l],x=u$("number");if(!p[b]){y++;var O;return j?O=gp(0,m):o&&o[b]&&o[b].hasStack?(O=U3(o[b].stackGroups,c,u),O=jb(d,O,b,i)):(O=Rx(x,R3(h,r.filter(function(S){var N,A,C=l in S.props?S.props[l]:(N=S.type.defaultProps)===null||N===void 0?void 0:N[l],k="hide"in S.props?S.props.hide:(A=S.type.defaultProps)===null||A===void 0?void 0:A.hide;return C===b&&!k}),"number",f),a.defaultProps.allowDataOverflow),O=jb(d,O,b,i)),H(H({},p),{},ue({},b,H(H({axisType:i},a.defaultProps),{},{hide:!0,orientation:$n(Ppe,"".concat(i,".").concat(y%2),null),domain:O,originalDomain:x,isCategorical:j,layout:f})))}return p},{})},Ipe=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,i=n.AxisComp,l=n.graphicalItems,o=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,f=t.children,d="".concat(a,"Id"),h=on(f,i),m={};return h&&h.length?m=Lpe(t,{axes:h,graphicalItems:l,axisType:a,axisIdKey:d,stackGroups:o,dataStartIndex:c,dataEndIndex:u}):l&&l.length&&(m=zpe(t,{Axis:i,graphicalItems:l,axisType:a,axisIdKey:d,stackGroups:o,dataStartIndex:c,dataEndIndex:u})),m},Bpe=function(t){var n=Ja(t),r=xa(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:b1(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:ap(n,r)}},xA=function(t){var n=t.children,r=t.defaultShowTooltip,a=On(n,So),i=0,l=0;return t.data&&t.data.length!==0&&(l=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(l=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:l,activeTooltipIndex:-1,isTooltipActive:!!r}},Upe=function(t){return!t||!t.length?!1:t.some(function(n){var r=wa(n&&n.type);return r&&r.indexOf("Bar")>=0})},bA=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"}},qpe=function(t,n){var r=t.props,a=t.graphicalItems,i=t.xAxisMap,l=i===void 0?{}:i,o=t.yAxisMap,c=o===void 0?{}:o,u=r.width,f=r.height,d=r.children,h=r.margin||{},m=On(d,So),j=On(d,er),y=Object.keys(c).reduce(function(O,S){var N=c[S],A=N.orientation;return!N.mirror&&!N.hide?H(H({},O),{},ue({},A,O[A]+N.width)):O},{left:h.left||0,right:h.right||0}),p=Object.keys(l).reduce(function(O,S){var N=l[S],A=N.orientation;return!N.mirror&&!N.hide?H(H({},O),{},ue({},A,$n(O,"".concat(A))+N.height)):O},{top:h.top||0,bottom:h.bottom||0}),v=H(H({},p),y),g=v.bottom;m&&(v.bottom+=m.props.height||So.defaultProps.height),j&&n&&(v=Eae(v,a,r,n));var b=u-v.left-v.right,x=f-v.top-v.bottom;return H(H({brushBottom:g},v),{},{width:Math.max(b,0),height:Math.max(x,0)})},Hpe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Rf=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,l=t.validateTooltipEventTypes,o=l===void 0?["axis"]:l,c=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,d=t.defaultProps,h=function(v,g){var b=g.graphicalItems,x=g.stackGroups,O=g.offset,S=g.updateId,N=g.dataStartIndex,A=g.dataEndIndex,C=v.barSize,k=v.layout,R=v.barGap,M=v.barCategoryGap,B=v.maxBarSize,_=bA(k),E=_.numericAxisName,P=_.cateAxisName,I=Upe(b),z=[];return b.forEach(function(G,V){var Z=uy(v.data,{graphicalItems:[G],dataStartIndex:N,dataEndIndex:A}),X=G.type.defaultProps!==void 0?H(H({},G.type.defaultProps),G.props):G.props,ee=X.dataKey,ie=X.maxBarSize,Ne=X["".concat(E,"Id")],Zt=X["".concat(P,"Id")],Mr={},Ve=c.reduce(function(qi,Hi){var fy=g["".concat(Hi.axisType,"Map")],ij=X["".concat(Hi.axisType,"Id")];fy&&fy[ij]||Hi.axisType==="zAxis"||Rs();var sj=fy[ij];return H(H({},qi),{},ue(ue({},Hi.axisType,sj),"".concat(Hi.axisType,"Ticks"),xa(sj)))},Mr),te=Ve[P],oe=Ve["".concat(P,"Ticks")],J=x&&x[Ne]&&x[Ne].hasStack&&zae(G,x[Ne].stackGroups),K=wa(G.type).indexOf("Bar")>=0,Pe=ap(te,oe),xe=[],ut=I&&Nae({barSize:C,stackGroups:x,totalSize:Hpe(Ve,P)});if(K){var mt,xt,qa=le(ie)?B:ie,Vs=(mt=(xt=ap(te,oe,!0))!==null&&xt!==void 0?xt:qa)!==null&&mt!==void 0?mt:0;xe=Aae({barGap:R,barCategoryGap:M,bandSize:Vs!==Pe?Vs:Pe,sizeList:ut[Zt],maxBarSize:qa}),Vs!==Pe&&(xe=xe.map(function(qi){return H(H({},qi),{},{position:H(H({},qi.position),{},{offset:qi.position.offset-Vs/2})})}))}var Df=G&&G.type&&G.type.getComposedData;Df&&z.push({props:H(H({},Df(H(H({},Ve),{},{displayedData:Z,props:v,dataKey:ee,item:G,bandSize:Pe,barPosition:xe,offset:O,stackedData:J,layout:k,dataStartIndex:N,dataEndIndex:A}))),{},ue(ue(ue({key:G.key||"item-".concat(V)},E,Ve[E]),P,Ve[P]),"animationId",S)),childIndex:AH(G,v.children),item:G})}),z},m=function(v,g){var b=v.props,x=v.dataStartIndex,O=v.dataEndIndex,S=v.updateId;if(!Pw({props:b}))return null;var N=b.children,A=b.layout,C=b.stackOffset,k=b.data,R=b.reverseStackOrder,M=bA(A),B=M.numericAxisName,_=M.cateAxisName,E=on(N,r),P=Dae(k,E,"".concat(B,"Id"),"".concat(_,"Id"),C,R),I=c.reduce(function(X,ee){var ie="".concat(ee.axisType,"Map");return H(H({},X),{},ue({},ie,Ipe(b,H(H({},ee),{},{graphicalItems:E,stackGroups:ee.axisType===B&&P,dataStartIndex:x,dataEndIndex:O}))))},{}),z=qpe(H(H({},I),{},{props:b,graphicalItems:E}),g==null?void 0:g.legendBBox);Object.keys(I).forEach(function(X){I[X]=f(b,I[X],z,X.replace("Map",""),n)});var G=I["".concat(_,"Map")],V=Bpe(G),Z=h(b,H(H({},I),{},{dataStartIndex:x,dataEndIndex:O,updateId:S,graphicalItems:E,stackGroups:P,offset:z}));return H(H({formattedGraphicalItems:Z,graphicalItems:E,offset:z,stackGroups:P},V),I)},j=function(p){function v(g){var b,x,O;return Spe(this,v),O=Npe(this,v,[g]),ue(O,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ue(O,"accessibilityManager",new ope),ue(O,"handleLegendBBoxUpdate",function(S){if(S){var N=O.state,A=N.dataStartIndex,C=N.dataEndIndex,k=N.updateId;O.setState(H({legendBBox:S},m({props:O.props,dataStartIndex:A,dataEndIndex:C,updateId:k},H(H({},O.state),{},{legendBBox:S}))))}}),ue(O,"handleReceiveSyncEvent",function(S,N,A){if(O.props.syncId===S){if(A===O.eventEmitterSymbol&&typeof O.props.syncMethod!="function")return;O.applySyncEvent(N)}}),ue(O,"handleBrushChange",function(S){var N=S.startIndex,A=S.endIndex;if(N!==O.state.dataStartIndex||A!==O.state.dataEndIndex){var C=O.state.updateId;O.setState(function(){return H({dataStartIndex:N,dataEndIndex:A},m({props:O.props,dataStartIndex:N,dataEndIndex:A,updateId:C},O.state))}),O.triggerSyncEvent({dataStartIndex:N,dataEndIndex:A})}}),ue(O,"handleMouseEnter",function(S){var N=O.getMouseInfo(S);if(N){var A=H(H({},N),{},{isTooltipActive:!0});O.setState(A),O.triggerSyncEvent(A);var C=O.props.onMouseEnter;ce(C)&&C(A,S)}}),ue(O,"triggeredAfterMouseMove",function(S){var N=O.getMouseInfo(S),A=N?H(H({},N),{},{isTooltipActive:!0}):{isTooltipActive:!1};O.setState(A),O.triggerSyncEvent(A);var C=O.props.onMouseMove;ce(C)&&C(A,S)}),ue(O,"handleItemMouseEnter",function(S){O.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),ue(O,"handleItemMouseLeave",function(){O.setState(function(){return{isTooltipActive:!1}})}),ue(O,"handleMouseMove",function(S){S.persist(),O.throttleTriggeredAfterMouseMove(S)}),ue(O,"handleMouseLeave",function(S){O.throttleTriggeredAfterMouseMove.cancel();var N={isTooltipActive:!1};O.setState(N),O.triggerSyncEvent(N);var A=O.props.onMouseLeave;ce(A)&&A(N,S)}),ue(O,"handleOuterEvent",function(S){var N=NH(S),A=$n(O.props,"".concat(N));if(N&&ce(A)){var C,k;/.*touch.*/i.test(N)?k=O.getMouseInfo(S.changedTouches[0]):k=O.getMouseInfo(S),A((C=k)!==null&&C!==void 0?C:{},S)}}),ue(O,"handleClick",function(S){var N=O.getMouseInfo(S);if(N){var A=H(H({},N),{},{isTooltipActive:!0});O.setState(A),O.triggerSyncEvent(A);var C=O.props.onClick;ce(C)&&C(A,S)}}),ue(O,"handleMouseDown",function(S){var N=O.props.onMouseDown;if(ce(N)){var A=O.getMouseInfo(S);N(A,S)}}),ue(O,"handleMouseUp",function(S){var N=O.props.onMouseUp;if(ce(N)){var A=O.getMouseInfo(S);N(A,S)}}),ue(O,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&O.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),ue(O,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&O.handleMouseDown(S.changedTouches[0])}),ue(O,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&O.handleMouseUp(S.changedTouches[0])}),ue(O,"handleDoubleClick",function(S){var N=O.props.onDoubleClick;if(ce(N)){var A=O.getMouseInfo(S);N(A,S)}}),ue(O,"handleContextMenu",function(S){var N=O.props.onContextMenu;if(ce(N)){var A=O.getMouseInfo(S);N(A,S)}}),ue(O,"triggerSyncEvent",function(S){O.props.syncId!==void 0&&_v.emit(Tv,O.props.syncId,S,O.eventEmitterSymbol)}),ue(O,"applySyncEvent",function(S){var N=O.props,A=N.layout,C=N.syncMethod,k=O.state.updateId,R=S.dataStartIndex,M=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)O.setState(H({dataStartIndex:R,dataEndIndex:M},m({props:O.props,dataStartIndex:R,dataEndIndex:M,updateId:k},O.state)));else if(S.activeTooltipIndex!==void 0){var B=S.chartX,_=S.chartY,E=S.activeTooltipIndex,P=O.state,I=P.offset,z=P.tooltipTicks;if(!I)return;if(typeof C=="function")E=C(z,S);else if(C==="value"){E=-1;for(var G=0;G<z.length;G++)if(z[G].value===S.activeLabel){E=G;break}}var V=H(H({},I),{},{x:I.left,y:I.top}),Z=Math.min(B,V.x+V.width),X=Math.min(_,V.y+V.height),ee=z[E]&&z[E].value,ie=Ob(O.state,O.props.data,E),Ne=z[E]?{x:A==="horizontal"?z[E].coordinate:Z,y:A==="horizontal"?X:z[E].coordinate}:c$;O.setState(H(H({},S),{},{activeLabel:ee,activeCoordinate:Ne,activePayload:ie,activeTooltipIndex:E}))}else O.setState(S)}),ue(O,"renderCursor",function(S){var N,A=O.state,C=A.isTooltipActive,k=A.activeCoordinate,R=A.activePayload,M=A.offset,B=A.activeTooltipIndex,_=A.tooltipAxisBandSize,E=O.getTooltipEventType(),P=(N=S.props.active)!==null&&N!==void 0?N:C,I=O.props.layout,z=S.key||"_recharts-cursor";return T.createElement(mpe,{key:z,activeCoordinate:k,activePayload:R,activeTooltipIndex:B,chartName:n,element:S,isActive:P,layout:I,offset:M,tooltipAxisBandSize:_,tooltipEventType:E})}),ue(O,"renderPolarAxis",function(S,N,A){var C=$n(S,"type.axisType"),k=$n(O.state,"".concat(C,"Map")),R=S.type.defaultProps,M=R!==void 0?H(H({},R),S.props):S.props,B=k&&k[M["".concat(C,"Id")]];return w.cloneElement(S,H(H({},B),{},{className:pe(C,B.className),key:S.key||"".concat(N,"-").concat(A),ticks:xa(B,!0)}))}),ue(O,"renderPolarGrid",function(S){var N=S.props,A=N.radialLines,C=N.polarAngles,k=N.polarRadius,R=O.state,M=R.radiusAxisMap,B=R.angleAxisMap,_=Ja(M),E=Ja(B),P=E.cx,I=E.cy,z=E.innerRadius,G=E.outerRadius;return w.cloneElement(S,{polarAngles:Array.isArray(C)?C:xa(E,!0).map(function(V){return V.coordinate}),polarRadius:Array.isArray(k)?k:xa(_,!0).map(function(V){return V.coordinate}),cx:P,cy:I,innerRadius:z,outerRadius:G,key:S.key||"polar-grid",radialLines:A})}),ue(O,"renderLegend",function(){var S=O.state.formattedGraphicalItems,N=O.props,A=N.children,C=N.width,k=N.height,R=O.props.margin||{},M=C-(R.left||0)-(R.right||0),B=P3({children:A,formattedGraphicalItems:S,legendWidth:M,legendContent:u});if(!B)return null;var _=B.item,E=yA(B,ype);return w.cloneElement(_,H(H({},E),{},{chartWidth:C,chartHeight:k,margin:R,onBBoxUpdate:O.handleLegendBBoxUpdate}))}),ue(O,"renderTooltip",function(){var S,N=O.props,A=N.children,C=N.accessibilityLayer,k=On(A,en);if(!k)return null;var R=O.state,M=R.isTooltipActive,B=R.activeCoordinate,_=R.activePayload,E=R.activeLabel,P=R.offset,I=(S=k.props.active)!==null&&S!==void 0?S:M;return w.cloneElement(k,{viewBox:H(H({},P),{},{x:P.left,y:P.top}),active:I,label:E,payload:I?_:[],coordinate:B,accessibilityLayer:C})}),ue(O,"renderBrush",function(S){var N=O.props,A=N.margin,C=N.data,k=O.state,R=k.offset,M=k.dataStartIndex,B=k.dataEndIndex,_=k.updateId;return w.cloneElement(S,{key:S.key||"_recharts-brush",onChange:dd(O.handleBrushChange,S.props.onChange),data:C,x:W(S.props.x)?S.props.x:R.left,y:W(S.props.y)?S.props.y:R.top+R.height+R.brushBottom-(A.bottom||0),width:W(S.props.width)?S.props.width:R.width,startIndex:M,endIndex:B,updateId:"brush-".concat(_)})}),ue(O,"renderReferenceElement",function(S,N,A){if(!S)return null;var C=O,k=C.clipPathId,R=O.state,M=R.xAxisMap,B=R.yAxisMap,_=R.offset,E=S.type.defaultProps||{},P=S.props,I=P.xAxisId,z=I===void 0?E.xAxisId:I,G=P.yAxisId,V=G===void 0?E.yAxisId:G;return w.cloneElement(S,{key:S.key||"".concat(N,"-").concat(A),xAxis:M[z],yAxis:B[V],viewBox:{x:_.left,y:_.top,width:_.width,height:_.height},clipPathId:k})}),ue(O,"renderActivePoints",function(S){var N=S.item,A=S.activePoint,C=S.basePoint,k=S.childIndex,R=S.isRange,M=[],B=N.props.key,_=N.item.type.defaultProps!==void 0?H(H({},N.item.type.defaultProps),N.item.props):N.item.props,E=_.activeDot,P=_.dataKey,I=H(H({index:k,dataKey:P,cx:A.x,cy:A.y,r:4,fill:K1(N.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},ae(E,!1)),Th(E));return M.push(v.renderActiveDot(E,I,"".concat(B,"-activePoint-").concat(k))),C?M.push(v.renderActiveDot(E,H(H({},I),{},{cx:C.x,cy:C.y}),"".concat(B,"-basePoint-").concat(k))):R&&M.push(null),M}),ue(O,"renderGraphicChild",function(S,N,A){var C=O.filterFormatItem(S,N,A);if(!C)return null;var k=O.getTooltipEventType(),R=O.state,M=R.isTooltipActive,B=R.tooltipAxis,_=R.activeTooltipIndex,E=R.activeLabel,P=O.props.children,I=On(P,en),z=C.props,G=z.points,V=z.isRange,Z=z.baseLine,X=C.item.type.defaultProps!==void 0?H(H({},C.item.type.defaultProps),C.item.props):C.item.props,ee=X.activeDot,ie=X.hide,Ne=X.activeBar,Zt=X.activeShape,Mr=!!(!ie&&M&&I&&(ee||Ne||Zt)),Ve={};k!=="axis"&&I&&I.props.trigger==="click"?Ve={onClick:dd(O.handleItemMouseEnter,S.props.onClick)}:k!=="axis"&&(Ve={onMouseLeave:dd(O.handleItemMouseLeave,S.props.onMouseLeave),onMouseEnter:dd(O.handleItemMouseEnter,S.props.onMouseEnter)});var te=w.cloneElement(S,H(H({},C.props),Ve));function oe(Hi){return typeof B.dataKey=="function"?B.dataKey(Hi.payload):null}if(Mr)if(_>=0){var J,K;if(B.dataKey&&!B.allowDuplicatedCategory){var Pe=typeof B.dataKey=="function"?oe:"payload.".concat(B.dataKey.toString());J=_h(G,Pe,E),K=V&&Z&&_h(Z,Pe,E)}else J=G==null?void 0:G[_],K=V&&Z&&Z[_];if(Zt||Ne){var xe=S.props.activeIndex!==void 0?S.props.activeIndex:_;return[w.cloneElement(S,H(H(H({},C.props),Ve),{},{activeIndex:xe})),null,null]}if(!le(J))return[te].concat(Ro(O.renderActivePoints({item:C,activePoint:J,basePoint:K,childIndex:_,isRange:V})))}else{var ut,mt=(ut=O.getItemByXY(O.state.activeCoordinate))!==null&&ut!==void 0?ut:{graphicalItem:te},xt=mt.graphicalItem,qa=xt.item,Vs=qa===void 0?S:qa,Df=xt.childIndex,qi=H(H(H({},C.props),Ve),{},{activeIndex:Df});return[w.cloneElement(Vs,qi),null,null]}return V?[te,null,null]:[te,null]}),ue(O,"renderCustomized",function(S,N,A){return w.cloneElement(S,H(H({key:"recharts-customized-".concat(A)},O.props),O.state))}),ue(O,"renderMap",{CartesianGrid:{handler:vd,once:!0},ReferenceArea:{handler:O.renderReferenceElement},ReferenceLine:{handler:vd},ReferenceDot:{handler:O.renderReferenceElement},XAxis:{handler:vd},YAxis:{handler:vd},Brush:{handler:O.renderBrush,once:!0},Bar:{handler:O.renderGraphicChild},Line:{handler:O.renderGraphicChild},Area:{handler:O.renderGraphicChild},Radar:{handler:O.renderGraphicChild},RadialBar:{handler:O.renderGraphicChild},Scatter:{handler:O.renderGraphicChild},Pie:{handler:O.renderGraphicChild},Funnel:{handler:O.renderGraphicChild},Tooltip:{handler:O.renderCursor,once:!0},PolarGrid:{handler:O.renderPolarGrid,once:!0},PolarAngleAxis:{handler:O.renderPolarAxis},PolarRadiusAxis:{handler:O.renderPolarAxis},Customized:{handler:O.renderCustomized}}),O.clipPathId="".concat((b=g.id)!==null&&b!==void 0?b:Di("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=PM(O.triggeredAfterMouseMove,(x=g.throttleDelay)!==null&&x!==void 0?x:1e3/60),O.state={},O}return Cpe(v,p),Ope(v,[{key:"componentDidMount",value:function(){var b,x;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,x=b.children,O=b.data,S=b.height,N=b.layout,A=On(x,en);if(A){var C=A.props.defaultIndex;if(!(typeof C!="number"||C<0||C>this.state.tooltipTicks.length-1)){var k=this.state.tooltipTicks[C]&&this.state.tooltipTicks[C].value,R=Ob(this.state,O,C,k),M=this.state.tooltipTicks[C].coordinate,B=(this.state.offset.top+S)/2,_=N==="horizontal",E=_?{x:M,y:B}:{y:M,x:B},P=this.state.formattedGraphicalItems.find(function(z){var G=z.item;return G.type.name==="Scatter"});P&&(E=H(H({},E),P.props.points[C].tooltipPosition),R=P.props.points[C].tooltipPayload);var I={activeTooltipIndex:C,isTooltipActive:!0,activeLabel:k,activePayload:R,activeCoordinate:E};this.setState(I),this.renderCursor(A),this.accessibilityManager.setIndex(C)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,x){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==x.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var O,S;this.accessibilityManager.setDetails({offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(b){Xg([On(b.children,en)],[On(this.props.children,en)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=On(this.props.children,en);if(b&&typeof b.props.shared=="boolean"){var x=b.props.shared?"axis":"item";return o.indexOf(x)>=0?x:i}return i}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var x=this.container,O=x.getBoundingClientRect(),S=ZJ(O),N={chartX:Math.round(b.pageX-S.left),chartY:Math.round(b.pageY-S.top)},A=O.width/x.offsetWidth||1,C=this.inRange(N.chartX,N.chartY,A);if(!C)return null;var k=this.state,R=k.xAxisMap,M=k.yAxisMap,B=this.getTooltipEventType(),_=gA(this.state,this.props.data,this.props.layout,C);if(B!=="axis"&&R&&M){var E=Ja(R).scale,P=Ja(M).scale,I=E&&E.invert?E.invert(N.chartX):null,z=P&&P.invert?P.invert(N.chartY):null;return H(H({},N),{},{xValue:I,yValue:z},_)}return _?H(H({},N),_):null}},{key:"inRange",value:function(b,x){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,N=b/O,A=x/O;if(S==="horizontal"||S==="vertical"){var C=this.state.offset,k=N>=C.left&&N<=C.left+C.width&&A>=C.top&&A<=C.top+C.height;return k?{x:N,y:A}:null}var R=this.state,M=R.angleAxisMap,B=R.radiusAxisMap;if(M&&B){var _=Ja(M);return qO({x:N,y:A},_)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,x=this.getTooltipEventType(),O=On(b,en),S={};O&&x==="axis"&&(O.props.trigger==="click"?S={onClick:this.handleClick}:S={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 N=Th(this.props,this.handleOuterEvent);return H(H({},N),S)}},{key:"addListener",value:function(){_v.on(Tv,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){_v.removeListener(Tv,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,x,O){for(var S=this.state.formattedGraphicalItems,N=0,A=S.length;N<A;N++){var C=S[N];if(C.item===b||C.props.key===b.key||x===wa(C.item.type)&&O===C.childIndex)return C}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,x=this.state.offset,O=x.left,S=x.top,N=x.height,A=x.width;return T.createElement("defs",null,T.createElement("clipPath",{id:b},T.createElement("rect",{x:O,y:S,height:N,width:A})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(x,O){var S=mA(O,2),N=S[0],A=S[1];return H(H({},x),{},ue({},N,A.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(x,O){var S=mA(O,2),N=S[0],A=S[1];return H(H({},x),{},ue({},N,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var x;return(x=this.state.xAxisMap)===null||x===void 0||(x=x[b])===null||x===void 0?void 0:x.scale}},{key:"getYScaleByAxisId",value:function(b){var x;return(x=this.state.yAxisMap)===null||x===void 0||(x=x[b])===null||x===void 0?void 0:x.scale}},{key:"getItemByXY",value:function(b){var x=this.state,O=x.formattedGraphicalItems,S=x.activeItem;if(O&&O.length)for(var N=0,A=O.length;N<A;N++){var C=O[N],k=C.props,R=C.item,M=R.type.defaultProps!==void 0?H(H({},R.type.defaultProps),R.props):R.props,B=wa(R.type);if(B==="Bar"){var _=(k.data||[]).find(function(z){return zle(b,z)});if(_)return{graphicalItem:C,payload:_}}else if(B==="RadialBar"){var E=(k.data||[]).find(function(z){return qO(b,z)});if(E)return{graphicalItem:C,payload:E}}else if(ey(C,S)||ty(C,S)||Vu(C,S)){var P=Ace({graphicalItem:C,activeTooltipItem:S,itemData:M.data}),I=M.activeIndex===void 0?P:M.activeIndex;return{graphicalItem:H(H({},C),{},{childIndex:I}),payload:Vu(C,S)?M.data[P]:C.props.data[P]}}}return null}},{key:"render",value:function(){var b=this;if(!Pw(this))return null;var x=this.props,O=x.children,S=x.className,N=x.width,A=x.height,C=x.style,k=x.compact,R=x.title,M=x.desc,B=yA(x,vpe),_=ae(B,!1);if(k)return T.createElement(YN,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement(Zg,Ol({},_,{width:N,height:A,title:R,desc:M}),this.renderClipPath(),Rw(O,this.renderMap)));if(this.props.accessibilityLayer){var E,P;_.tabIndex=(E=this.props.tabIndex)!==null&&E!==void 0?E:0,_.role=(P=this.props.role)!==null&&P!==void 0?P:"application",_.onKeyDown=function(z){b.accessibilityManager.keyboardEvent(z)},_.onFocus=function(){b.accessibilityManager.focus()}}var I=this.parseEventsOfWrapper();return T.createElement(YN,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement("div",Ol({className:pe("recharts-wrapper",S),style:H({position:"relative",cursor:"default",width:N,height:A},C)},I,{ref:function(G){b.container=G}}),T.createElement(Zg,Ol({},_,{width:N,height:A,title:R,desc:M,style:$pe}),this.renderClipPath(),Rw(O,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(w.Component);ue(j,"displayName",n),ue(j,"defaultProps",H({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),ue(j,"getDerivedStateFromProps",function(p,v){var g=p.dataKey,b=p.data,x=p.children,O=p.width,S=p.height,N=p.layout,A=p.stackOffset,C=p.margin,k=v.dataStartIndex,R=v.dataEndIndex;if(v.updateId===void 0){var M=xA(p);return H(H(H({},M),{},{updateId:0},m(H(H({props:p},M),{},{updateId:0}),v)),{},{prevDataKey:g,prevData:b,prevWidth:O,prevHeight:S,prevLayout:N,prevStackOffset:A,prevMargin:C,prevChildren:x})}if(g!==v.prevDataKey||b!==v.prevData||O!==v.prevWidth||S!==v.prevHeight||N!==v.prevLayout||A!==v.prevStackOffset||!Ml(C,v.prevMargin)){var B=xA(p),_={chartX:v.chartX,chartY:v.chartY,isTooltipActive:v.isTooltipActive},E=H(H({},gA(v,b,N)),{},{updateId:v.updateId+1}),P=H(H(H({},B),_),E);return H(H(H({},P),m(H({props:p},P),v)),{},{prevDataKey:g,prevData:b,prevWidth:O,prevHeight:S,prevLayout:N,prevStackOffset:A,prevMargin:C,prevChildren:x})}if(!Xg(x,v.prevChildren)){var I,z,G,V,Z=On(x,So),X=Z&&(I=(z=Z.props)===null||z===void 0?void 0:z.startIndex)!==null&&I!==void 0?I:k,ee=Z&&(G=(V=Z.props)===null||V===void 0?void 0:V.endIndex)!==null&&G!==void 0?G:R,ie=X!==k||ee!==R,Ne=!le(b),Zt=Ne&&!ie?v.updateId:v.updateId+1;return H(H({updateId:Zt},m(H(H({props:p},v),{},{updateId:Zt,dataStartIndex:X,dataEndIndex:ee}),v)),{},{prevChildren:x,dataStartIndex:X,dataEndIndex:ee})}return null}),ue(j,"renderActiveDot",function(p,v,g){var b;return w.isValidElement(p)?b=w.cloneElement(p,v):ce(p)?b=p(v):b=T.createElement($f,v),T.createElement(ve,{className:"recharts-active-dot",key:g},b)});var y=w.forwardRef(function(v,g){return T.createElement(j,Ol({},v,{ref:g}))});return y.displayName=j.displayName,y},Fpe=Rf({chartName:"LineChart",GraphicalChild:Mi,axisComponents:[{axisType:"xAxis",AxisComp:Or},{axisType:"yAxis",AxisComp:Nr}],formatAxisMap:ry}),Gpe=Rf({chartName:"BarChart",GraphicalChild:Bi,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Or},{axisType:"yAxis",AxisComp:Nr}],formatAxisMap:ry}),Kpe=Rf({chartName:"PieChart",GraphicalChild:Ia,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Jm},{axisType:"radiusAxis",AxisComp:Qm}],formatAxisMap:Vae,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),Ype=Rf({chartName:"AreaChart",GraphicalChild:Ba,axisComponents:[{axisType:"xAxis",AxisComp:Or},{axisType:"yAxis",AxisComp:Nr}],formatAxisMap:ry}),jA=Rf({chartName:"ComposedChart",GraphicalChild:[Mi,Ba,Bi,cy],axisComponents:[{axisType:"xAxis",AxisComp:Or},{axisType:"yAxis",AxisComp:Nr},{axisType:"zAxis",AxisComp:oy}],formatAxisMap:ry});const $r=["#00a0c8","#3ddc97","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899"],nl={fontSize:11,fill:"#94a3b8"},gd={background:"#0f172a",border:"1px solid #26304a",borderRadius:8,fontSize:12,color:"#e2e8f0"};function Vpe(e){const t=e.labels||[],n=e.series||[];return t.map((r,a)=>{const i={name:r};return n.forEach(l=>{var o;i[l.name]=((o=l.data)==null?void 0:o[a])??0}),i})}function br({type:e="BAR",data:t,height:n=240}){const r=t||{},a=r.series||[],i=Vpe(r);if(!i.length)return s.jsx("div",{className:"flex items-center justify-center text-slate-500 text-sm",style:{height:n},children:"데이터 없음"});const l=(e||"BAR").toUpperCase();if(l==="PIE"){const o=a[0],c=(r.labels||[]).map((u,f)=>{var d;return{name:u,value:((d=o==null?void 0:o.data)==null?void 0:d[f])??0}});return s.jsx(xl,{width:"100%",height:n,children:s.jsxs(Kpe,{children:[s.jsx(Ia,{data:c,dataKey:"value",nameKey:"name",outerRadius:n/2.8,innerRadius:n/5,children:c.map((u,f)=>s.jsx(_f,{fill:$r[f%$r.length]},f))}),s.jsx(en,{contentStyle:gd}),s.jsx(er,{wrapperStyle:{fontSize:11}})]})})}return l==="LINE"?s.jsx(xl,{width:"100%",height:n,children:s.jsxs(Fpe,{data:i,children:[s.jsx(Rl,{strokeDasharray:"3 3",stroke:"#26304a"}),s.jsx(Or,{dataKey:"name",tick:nl}),s.jsx(Nr,{tick:nl}),s.jsx(en,{contentStyle:gd}),s.jsx(er,{wrapperStyle:{fontSize:11}}),a.map((o,c)=>s.jsx(Mi,{type:"monotone",dataKey:o.name,stroke:$r[c%$r.length],strokeWidth:2,dot:!1},o.name))]})}):l==="AREA"?s.jsx(xl,{width:"100%",height:n,children:s.jsxs(Ype,{data:i,children:[s.jsx(Rl,{strokeDasharray:"3 3",stroke:"#26304a"}),s.jsx(Or,{dataKey:"name",tick:nl}),s.jsx(Nr,{tick:nl}),s.jsx(en,{contentStyle:gd}),s.jsx(er,{wrapperStyle:{fontSize:11}}),a.map((o,c)=>s.jsx(Ba,{type:"monotone",dataKey:o.name,stroke:$r[c%$r.length],fill:$r[c%$r.length],fillOpacity:.18,strokeWidth:2},o.name))]})}):s.jsx(xl,{width:"100%",height:n,children:s.jsxs(Gpe,{data:i,children:[s.jsx(Rl,{strokeDasharray:"3 3",stroke:"#26304a"}),s.jsx(Or,{dataKey:"name",tick:nl}),s.jsx(Nr,{tick:nl}),s.jsx(en,{contentStyle:gd,cursor:{fill:"#26304a55"}}),s.jsx(er,{wrapperStyle:{fontSize:11}}),a.map((o,c)=>s.jsx(Bi,{dataKey:o.name,fill:$r[c%$r.length],radius:[3,3,0,0]},o.name))]})})}function ct({title:e,subtitle:t,actions:n}){return s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-xl font-bold",children:e}),t&&s.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:t})]}),n&&s.jsx("div",{className:"flex items-center gap-2",children:n})]})}function L({label:e,children:t,hint:n}){return s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:e}),t,n&&s.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:n})]})}function Ye({title:e,onClose:t,children:n,wide:r}){return s.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",onClick:t,children:s.jsxs("div",{className:`bg-panel border border-edge rounded-2xl p-6 ${r?"w-[760px]":"w-[480px]"} max-h-[90vh] overflow-auto`,onClick:a=>a.stopPropagation(),children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("h2",{className:"text-lg font-bold",children:e}),s.jsx("button",{onClick:t,className:"text-slate-400 hover:text-slate-200",children:s.jsx(qT,{size:18})})]}),n]})})}function Y({children:e,onClick:t,variant:n="primary",size:r="md",disabled:a,title:i,type:l}){const o="inline-flex items-center gap-1.5 rounded-lg font-semibold transition-colors disabled:opacity-50",c=r==="sm"?"px-2.5 py-1 text-xs":"px-3 py-2 text-sm",u=n==="primary"?"bg-brand text-ink hover:bg-brand/90":n==="danger"?"bg-rose-500/90 text-white hover:bg-rose-500":"bg-card border border-edge text-slate-300 hover:border-brand";return s.jsx("button",{type:l||"button",onClick:t,disabled:a,title:i,className:`${o} ${c} ${u}`,children:e})}function qe({msg:e="데이터가 없습니다.",colSpan:t}){return t?s.jsx("tr",{children:s.jsx("td",{colSpan:t,className:"py-6 text-center text-slate-500 text-sm",children:e})}):s.jsx("div",{className:"py-8 text-center text-slate-500 text-sm bg-card border border-edge rounded-xl",children:e})}function ge({title:e,icon:t,children:n,className:r=""}){return s.jsxs("div",{className:`bg-card border border-edge rounded-xl p-4 ${r}`,children:[e&&s.jsxs("h3",{className:"text-sm font-semibold mb-3 flex items-center gap-1.5",children:[t,e]}),n]})}function zr({label:e,value:t,icon:n,color:r="text-brand",unit:a}){return s.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4",children:[s.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-400",children:[n," ",e]}),s.jsxs("div",{className:`text-2xl font-bold mt-2 ${r}`,children:[typeof t=="number"?t.toLocaleString():t,a&&s.jsx("span",{className:"text-sm font-normal text-slate-500 ml-1",children:a})]})]})}function nj(e,t=[]){if(e==null)return t;if(typeof e=="object")return e;try{return JSON.parse(e)}catch{return t}}function rj(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e,null,2)}catch{return""}}function SA(e){if(!e)return"-";if(e.includes("@")){const[t,n]=e.split("@");return`${t.slice(0,2)}***@${n}`}return e.length>4?e.slice(0,3)+"****"+e.slice(-2):"***"}const wA={CREATED:"bg-slate-500/15 text-slate-400 border-slate-500/30",RELEASED:"bg-sky-500/15 text-sky-400 border-sky-500/30",INPROGRESS:"bg-amber-500/15 text-amber-400 border-amber-500/30",DONE:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",CLOSED:"bg-slate-600/15 text-slate-500 border-slate-600/30",CANCELLED:"bg-rose-500/15 text-rose-400 border-rose-500/30",ASSIGNED:"bg-slate-500/15 text-slate-400 border-slate-500/30",STARTED:"bg-amber-500/15 text-amber-400 border-amber-500/30",PAUSED:"bg-orange-500/15 text-orange-400 border-orange-500/30",ORDERED:"bg-slate-500/15 text-slate-400 border-slate-500/30",PICKING:"bg-sky-500/15 text-sky-400 border-sky-500/30",PACKING:"bg-violet-500/15 text-violet-400 border-violet-500/30",INSPECTED:"bg-cyan-500/15 text-cyan-400 border-cyan-500/30",SHIPPED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",WAIT:"bg-slate-500/15 text-slate-400 border-slate-500/30",RUNNING:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",RUN:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",IDLE:"bg-amber-500/15 text-amber-400 border-amber-500/30",DOWN:"bg-rose-500/15 text-rose-400 border-rose-500/30",MAINT:"bg-orange-500/15 text-orange-400 border-orange-500/30",REQUESTED:"bg-slate-500/15 text-slate-400 border-slate-500/30",INSPECTING:"bg-amber-500/15 text-amber-400 border-amber-500/30",ACCEPTED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",REJECTED:"bg-rose-500/15 text-rose-400 border-rose-500/30",COUNTED:"bg-sky-500/15 text-sky-400 border-sky-500/30",ADJUSTED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",CONSUMED:"bg-slate-600/15 text-slate-500 border-slate-600/30",EXPIRED:"bg-rose-500/15 text-rose-400 border-rose-500/30",PASS:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",FAIL:"bg-rose-500/15 text-rose-400 border-rose-500/30",OPEN:"bg-rose-500/15 text-rose-400 border-rose-500/30",REVIEW:"bg-amber-500/15 text-amber-400 border-amber-500/30",DISPOSITIONED:"bg-sky-500/15 text-sky-400 border-sky-500/30",VERIFY:"bg-cyan-500/15 text-cyan-400 border-cyan-500/30",CRITICAL:"bg-rose-500/15 text-rose-400 border-rose-500/30",MAJOR:"bg-orange-500/15 text-orange-400 border-orange-500/30",MINOR:"bg-amber-500/15 text-amber-400 border-amber-500/30",ACTIVE:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",INACTIVE:"bg-slate-500/15 text-slate-400 border-slate-500/30",DELAYED:"bg-rose-500/15 text-rose-400 border-rose-500/30",ON_TIME:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30"};function st({status:e}){const t=(e||"").toUpperCase(),n=wA[t]||wA.CREATED;return s.jsx("span",{className:`inline-block px-2 py-0.5 rounded text-xs font-medium border ${n}`,children:e||"-"})}const Wpe=[{key:"activeWorkorders",alt:["inprogressWorkorders","activeWo"],label:"진행 작업지시",icon:no,color:"text-brand"},{key:"todayOutput",alt:["todayProduction","dailyOutput"],label:"금일 생산량",icon:xs,color:"text-emerald-400"},{key:"oeePercent",alt:["oee","avgOee"],label:"평균 OEE",icon:ro,color:"text-accent",pct:!0},{key:"openNcr",alt:["ncrOpen","defectCount"],label:"미처리 부적합",icon:Vr,color:"text-rose-400"},{key:"belowSafety",alt:["lowStock","safetyAlert"],label:"안전재고 미달",icon:bf,color:"text-amber-400"},{key:"pendingShipping",alt:["openShipping","shippingCount"],label:"출하 대기",icon:cm,color:"text-sky-400"},{key:"runningProcesses",alt:["running","activeProcesses"],label:"가동 공정",icon:gl,color:"text-violet-400"},{key:"equipmentDown",alt:["downEquipment","downCount"],label:"설비 비가동",icon:ro,color:"text-orange-400"}];function xd(e,t,n=[]){if(!e)return 0;for(const r of[t,...n])if(e[r]!=null)return Number(e[r])||0;return 0}function bd(e,t){if(!e)return;if(e.labels&&e.series)return e;const n=Object.entries(e).filter(([,r])=>typeof r=="number");if(n.length)return{labels:n.map(r=>r[0]),series:[{name:t,data:n.map(r=>r[1])}]}}function Xpe(){const[e,t]=w.useState({}),[n,r]=w.useState(null),[a,i]=w.useState(null),[l,o]=w.useState(null),[c,u]=w.useState(null),[f,d]=w.useState({}),h=()=>{uI().then(y=>t(y||{})).catch(()=>{}),hk().then(y=>d(y||{})).catch(()=>{}),fI().then(r).catch(()=>{}),dI().then(i).catch(()=>{}),hI().then(o).catch(()=>{}),mk(14).then(u).catch(()=>{})};w.useEffect(()=>{h();const y=window.setInterval(h,15e3);return()=>window.clearInterval(y)},[]);const m={...f,...e},j=xd(f,"avg_progress_rate",["avgProgressRate","avgRate"]);return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-xl font-bold",children:"제조 실시간 대시보드"}),s.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:"생산 · OEE · 재고 · 품질 통합 모니터링 (15초 자동 갱신)"})]}),s.jsxs(am,{to:"/ai-tools",className:"flex items-center gap-1.5 text-sm text-brand hover:underline",children:[s.jsx(Ln,{size:16})," AI 도구 ",s.jsx(vT,{size:14})]})]}),s.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:Wpe.map(({key:y,alt:p,label:v,icon:g,color:b,pct:x})=>{const O=xd(m,y,p);return s.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4",children:[s.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-400",children:[s.jsx(g,{size:13})," ",v]}),s.jsxs("div",{className:`text-2xl font-bold mt-2 ${b}`,children:[O.toLocaleString(),x?"%":""]})]},y)})}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4 mb-6",children:[s.jsx(ge,{title:"일별 생산량 (14일)",icon:s.jsx(xs,{size:15}),className:"lg:col-span-2",children:s.jsx(br,{type:"AREA",data:bd(c,"생산량")})}),s.jsx(ge,{title:"평균 진척률",icon:s.jsx(sm,{size:15}),children:s.jsxs("div",{className:"flex flex-col items-center justify-center h-[240px]",children:[s.jsxs("div",{className:"text-5xl font-bold text-accent",children:[j.toFixed(1),"%"]}),s.jsxs("div",{className:"text-sm text-slate-400 mt-3",children:["진행 ",xd(f,"inprogress_workorders",["inprogressWorkorders"])," · 지연 ",s.jsx("span",{className:"text-rose-400",children:xd(f,"delayed_workorders",["delayedWorkorders"])})]})]})})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[s.jsx(ge,{title:"작업지시 상태",icon:s.jsx(no,{size:15}),children:s.jsx(br,{type:"PIE",data:bd(n,"작업지시"),height:200})}),s.jsx(ge,{title:"출하 상태",icon:s.jsx(cm,{size:15}),children:s.jsx(br,{type:"BAR",data:bd(a,"출하"),height:200})}),s.jsx(ge,{title:"설비 가동 현황",icon:s.jsx(ro,{size:15}),children:Array.isArray(l)?s.jsxs("div",{className:"space-y-1.5 max-h-[200px] overflow-auto",children:[l.slice(0,8).map((y,p)=>s.jsxs("div",{className:"flex items-center justify-between text-sm border-b border-edge/40 pb-1",children:[s.jsx("span",{className:"text-slate-300",children:y.equipmentName||y.equipmentCode||`설비 ${p+1}`}),s.jsx(st,{status:y.runStatus||y.status})]},p)),l.length===0&&s.jsx("p",{className:"text-slate-500 text-sm py-4 text-center",children:"설비 데이터 없음"})]}):s.jsx(br,{type:"PIE",data:bd(l,"설비"),height:200})})]})]})}const Qpe=["","ASSIGNED","STARTED","PAUSED","DONE","CANCELLED"],Zpe={workorderId:"",opSeq:1,processCode:"",workerId:"",equipmentCode:"",assignedQty:0,plannedStart:"",plannedEnd:"",remark:""};function Jpe(){const[e,t]=w.useState([]),[n,r]=w.useState(null),[a,i]=w.useState([]),[l,o]=w.useState(""),[c,u]=w.useState(""),[f,d]=w.useState(null),[h,m]=w.useState(null),[j,y]=w.useState([]),[p,v]=w.useState([]),[g,b]=w.useState([]),x=Xt(),O=cr(),S=()=>{pI({status:l,woNo:c}).then(E=>t(E||[])).catch(()=>t([])),mI().then(r).catch(()=>{}),yI().then(E=>i(Array.isArray(E)?E:[])).catch(()=>{})};w.useEffect(()=>{S()},[l]),w.useEffect(()=>{pk().then(E=>y(E||[])).catch(()=>{}),X0().then(E=>v(E||[])).catch(()=>{}),ym().then(E=>b(E||[])).catch(()=>{})},[]);const N=()=>d({...Zpe,_new:!0}),A=async()=>{const{_new:E,id:P,...I}=f;E?await vI(I):await gI(P,I),d(null),S()},C=async E=>{window.confirm("삭제하시겠습니까?")&&(await SI(E),S())},k=async(E,P)=>{await bI(E,P),S()},R=async E=>{const P=window.prompt(`'${E.jobNo}' 완료 수량 (현재 ${E.doneQty}/${E.assignedQty})`,String(E.assignedQty-E.doneQty));P!=null&&(await jI(E.id,Number(P)),S())},M=async()=>{await xI(h.id,{workerId:h.workerId||void 0,equipmentCode:h.equipmentCode||void 0}),m(null),S()},B=[{key:"ASSIGNED",label:"배정"},{key:"STARTED",label:"진행"},{key:"PAUSED",label:"일시정지"},{key:"DONE",label:"완료"}],_=E=>(n==null?void 0:n[E])??(n==null?void 0:n[E.toLowerCase()])??0;return s.jsxs("div",{children:[s.jsx(ct,{title:"작업관리 ★",subtitle:"작업/작업자/설비 배정 · 작업 할당 · 진행 상태 전이 · 작업 이력",actions:x&&s.jsxs(Y,{onClick:N,children:[s.jsx(lt,{size:16})," 작업 생성"]})}),s.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3 mb-5",children:B.map(E=>s.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4 text-center",children:[s.jsx("div",{className:"text-xs text-slate-400",children:E.label}),s.jsx("div",{className:"text-2xl font-bold mt-1 text-brand",children:_(E.key).toLocaleString()})]},E.key))}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-5 mb-5",children:[s.jsxs("div",{className:"lg:col-span-3",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-3",children:[s.jsx("select",{className:"inp w-36",value:l,onChange:E=>o(E.target.value),children:Qpe.map(E=>s.jsx("option",{value:E,children:E||"전체 상태"},E))}),s.jsx("input",{value:c,onChange:E=>u(E.target.value),onKeyDown:E=>E.key==="Enter"&&S(),placeholder:"작업지시번호",className:"inp w-44"}),s.jsx(Y,{variant:"ghost",onClick:S,children:"검색"})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"작업번호"}),s.jsx("th",{className:"text-left",children:"작업지시"}),s.jsx("th",{className:"text-left",children:"공정"}),s.jsx("th",{className:"text-left",children:"작업자"}),s.jsx("th",{className:"text-left",children:"설비"}),s.jsx("th",{className:"text-right",children:"수량"}),s.jsx("th",{className:"text-left",children:"상태"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(E=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-1.5",children:[s.jsx(jf,{size:14,className:"text-brand"}),E.jobNo]}),s.jsxs("td",{className:"text-slate-400 text-xs",children:[E.woNo,s.jsx("div",{className:"text-slate-500",children:E.itemName||E.itemCode})]}),s.jsx("td",{className:"text-slate-300 text-xs",children:E.processName||E.processCode}),s.jsx("td",{className:"text-slate-400 text-xs",children:E.workerId||"-"}),s.jsx("td",{className:"text-slate-400 text-xs",children:E.equipmentCode||"-"}),s.jsxs("td",{className:"text-right text-slate-300",children:[E.doneQty,"/",E.assignedQty]}),s.jsx("td",{children:s.jsx(st,{status:E.status})}),s.jsx("td",{className:"px-4",children:s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[x&&E.status==="ASSIGNED"&&s.jsx("button",{onClick:()=>k(E.id,"START"),title:"시작",className:"text-emerald-400 hover:text-emerald-300",children:s.jsx(Ug,{size:15})}),x&&E.status==="STARTED"&&s.jsx("button",{onClick:()=>k(E.id,"PAUSE"),title:"일시정지",className:"text-amber-400 hover:text-amber-300",children:s.jsx(MT,{size:15})}),x&&E.status==="PAUSED"&&s.jsx("button",{onClick:()=>k(E.id,"RESUME"),title:"재개",className:"text-emerald-400 hover:text-emerald-300",children:s.jsx(Ug,{size:15})}),x&&(E.status==="STARTED"||E.status==="PAUSED")&&s.jsx("button",{onClick:()=>R(E),title:"실적 보고",className:"text-sky-400 hover:text-sky-300",children:s.jsx(PL,{size:15})}),x&&(E.status==="STARTED"||E.status==="PAUSED")&&s.jsx("button",{onClick:()=>k(E.id,"DONE"),title:"완료",className:"text-emerald-400 hover:text-emerald-300",children:s.jsx(sm,{size:15})}),x&&E.status!=="DONE"&&E.status!=="CANCELLED"&&s.jsx("button",{onClick:()=>m({id:E.id,workerId:E.workerId||"",equipmentCode:E.equipmentCode||""}),title:"배정",className:"text-slate-400 hover:text-brand",children:s.jsx(ZL,{size:15})}),x&&E.status!=="DONE"&&E.status!=="CANCELLED"&&s.jsx("button",{onClick:()=>k(E.id,"CANCEL"),title:"취소",className:"text-rose-400 hover:text-rose-300",children:s.jsx(Eh,{size:15})}),O&&(E.status==="ASSIGNED"||E.status==="CANCELLED")&&s.jsx("button",{onClick:()=>C(E.id),title:"삭제",className:"text-rose-400 hover:text-rose-300",children:s.jsx(ir,{size:15})})]})})]},E.id)),e.length===0&&s.jsx(qe,{colSpan:8,msg:"작업이 없습니다."})]})]})})]}),s.jsx(ge,{title:"작업자별 부하",children:s.jsxs("div",{className:"space-y-2 max-h-[420px] overflow-auto",children:[a.map((E,P)=>s.jsxs("div",{className:"bg-panel border border-edge rounded p-2.5",children:[s.jsx("div",{className:"text-sm font-medium",children:E.workerName||E.displayName||E.workerId}),s.jsxs("div",{className:"text-[11px] text-slate-400 mt-0.5",children:["진행 ",E.activeJobs??E.inprogressJobs??0,"건 · 잔여 ",Number(E.remainingQty??E.remaining??0).toLocaleString()]})]},P)),a.length===0&&s.jsx("p",{className:"text-slate-500 text-xs py-4 text-center",children:"부하 데이터 없음"})]})})]}),f&&s.jsxs(Ye,{title:f._new?"작업 생성":"작업 수정",onClose:()=>d(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(L,{label:"작업지시",children:s.jsxs("select",{className:"inp",value:f.workorderId,onChange:E=>d({...f,workorderId:E.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),g.map(E=>s.jsxs("option",{value:E.id,children:[E.woNo," · ",E.itemName||E.itemCode]},E.id))]})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"공정순서 (opSeq)",children:s.jsx("input",{type:"number",className:"inp",value:f.opSeq,onChange:E=>d({...f,opSeq:Number(E.target.value)})})}),s.jsx(L,{label:"공정코드",children:s.jsx("input",{className:"inp",value:f.processCode,onChange:E=>d({...f,processCode:E.target.value})})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"작업자",children:s.jsxs("select",{className:"inp",value:f.workerId,onChange:E=>d({...f,workerId:E.target.value}),children:[s.jsx("option",{value:"",children:"미배정"}),j.map(E=>s.jsx("option",{value:E.id,children:E.displayName||E.username},E.id))]})}),s.jsx(L,{label:"설비",children:s.jsxs("select",{className:"inp",value:f.equipmentCode,onChange:E=>d({...f,equipmentCode:E.target.value}),children:[s.jsx("option",{value:"",children:"미배정"}),p.map(E=>s.jsx("option",{value:E.equipmentCode,children:E.equipmentName||E.equipmentCode},E.id))]})})]}),s.jsx(L,{label:"배정 수량",children:s.jsx("input",{type:"number",className:"inp",value:f.assignedQty,onChange:E=>d({...f,assignedQty:Number(E.target.value)})})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"계획 시작",children:s.jsx("input",{type:"datetime-local",className:"inp",value:f.plannedStart,onChange:E=>d({...f,plannedStart:E.target.value})})}),s.jsx(L,{label:"계획 종료",children:s.jsx("input",{type:"datetime-local",className:"inp",value:f.plannedEnd,onChange:E=>d({...f,plannedEnd:E.target.value})})})]}),s.jsx(L,{label:"비고",children:s.jsx("input",{className:"inp",value:f.remark,onChange:E=>d({...f,remark:E.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>d(null),children:"취소"}),s.jsx(Y,{onClick:A,children:"저장"})]})]}),h&&s.jsxs(Ye,{title:"작업자/설비 배정",onClose:()=>m(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(L,{label:"작업자",children:s.jsxs("select",{className:"inp",value:h.workerId,onChange:E=>m({...h,workerId:E.target.value}),children:[s.jsx("option",{value:"",children:"미배정"}),j.map(E=>s.jsx("option",{value:E.id,children:E.displayName||E.username},E.id))]})}),s.jsx(L,{label:"설비",children:s.jsxs("select",{className:"inp",value:h.equipmentCode,onChange:E=>m({...h,equipmentCode:E.target.value}),children:[s.jsx("option",{value:"",children:"미배정"}),p.map(E=>s.jsx("option",{value:E.equipmentCode,children:E.equipmentName||E.equipmentCode},E.id))]})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>m(null),children:"취소"}),s.jsx(Y,{onClick:M,children:"배정"})]})]})]})}function eme(e){return Math.max(0,Math.min(100,Number(e)||0))}function tme({rate:e,delayed:t}){const n=t?"bg-rose-500":e>=100?"bg-emerald-500":"bg-brand";return s.jsx("div",{className:"w-full bg-ink rounded-full h-2 overflow-hidden",children:s.jsx("div",{className:`h-full ${n} transition-all`,style:{width:`${eme(e)}%`}})})}function nme(){const[e,t]=w.useState({}),[n,r]=w.useState([]),[a,i]=w.useState([]),[l,o]=w.useState(null),[c,u]=w.useState({workorders:[],jobs:[]}),[f,d]=w.useState(""),h=()=>{hk().then(y=>t(y||{})).catch(()=>{}),wI(f).then(y=>r(Array.isArray(y)?y:[])).catch(()=>r([])),OI().then(y=>i(Array.isArray(y)?y:[])).catch(()=>i([])),NI(30).then(o).catch(()=>{}),AI().then(y=>u(y||{workorders:[],jobs:[]})).catch(()=>{})};w.useEffect(()=>{h()},[f]),w.useEffect(()=>{const y=window.setInterval(h,15e3);return()=>window.clearInterval(y)},[f]);const m=(y,...p)=>{for(const v of[y,...p])if((e==null?void 0:e[v])!=null)return Number(e[v])||0;return 0},j=(()=>{if(l){if(l.labels&&l.series)return l;if(Array.isArray(l))return{labels:l.map(y=>y.itemName||y.itemCode),series:[{name:"계획",data:l.map(y=>Number(y.planQty??y.plannedQty??0))},{name:"실적",data:l.map(y=>Number(y.actualQty??y.producedQty??0))}]}}})();return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsxs("div",{children:[s.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[s.jsx(gl,{className:"text-brand",size:20})," 진행관리 ★"]}),s.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:"진척률 · 계획대비실적 · 실시간 생산현황 · 지연 알림 (15초 자동 갱신)"})]}),s.jsxs("button",{onClick:h,className:"flex items-center gap-1.5 text-sm text-slate-400 hover:text-brand",children:[s.jsx($T,{size:15})," 새로고침"]})]}),s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-6 gap-3 mb-6",children:[s.jsx(zr,{label:"진행 작업지시",value:m("active_workorders","activeWorkorders"),icon:s.jsx(no,{size:13})}),s.jsx(zr,{label:"가공 중",value:m("inprogress_workorders","inprogressWorkorders"),icon:s.jsx(gl,{size:13}),color:"text-amber-400"}),s.jsx(zr,{label:"지연",value:m("delayed_workorders","delayedWorkorders"),icon:s.jsx(Vr,{size:13}),color:"text-rose-400"}),s.jsx(zr,{label:"가동 공정",value:m("running_processes","runningProcesses"),icon:s.jsx(ro,{size:13}),color:"text-emerald-400"}),s.jsx(zr,{label:"활성 작업",value:m("active_jobs","activeJobs"),icon:s.jsx(ao,{size:13}),color:"text-sky-400"}),s.jsx(zr,{label:"평균 진척률",value:m("avg_progress_rate","avgProgressRate").toFixed(1),unit:"%",icon:s.jsx(gl,{size:13}),color:"text-accent"})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4 mb-6",children:[s.jsxs(ge,{title:"작업지시별 진척률",icon:s.jsx(no,{size:15}),className:"lg:col-span-2",children:[s.jsx("div",{className:"flex items-center gap-2 mb-3",children:s.jsx("select",{className:"inp w-40",value:f,onChange:y=>d(y.target.value),children:["","RELEASED","INPROGRESS","DONE"].map(y=>s.jsx("option",{value:y,children:y||"전체 상태"},y))})}),s.jsxs("div",{className:"space-y-2.5 max-h-[360px] overflow-auto",children:[n.map((y,p)=>{const v=Number(y.progressRate??y.progress_rate??0),g=!!(y.delayed??y.isDelayed);return s.jsxs("div",{className:"bg-panel border border-edge rounded-lg p-3",children:[s.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[s.jsxs("span",{className:"text-sm font-medium",children:[y.woNo," ",s.jsx("span",{className:"text-slate-400 text-xs ml-1",children:y.itemName||y.itemCode})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[g&&s.jsx(st,{status:"DELAYED"}),s.jsxs("span",{className:`text-sm font-bold ${g?"text-rose-400":v>=100?"text-emerald-400":"text-brand"}`,children:[v.toFixed(0),"%"]})]})]}),s.jsx(tme,{rate:v,delayed:g}),s.jsxs("div",{className:"text-[11px] text-slate-500 mt-1",children:["실적 ",Number(y.producedQty??y.actualQty??0).toLocaleString()," / 계획 ",Number(y.planQty??y.plannedQty??0).toLocaleString()]})]},y.id??p)}),n.length===0&&s.jsx(qe,{msg:"진행 중 작업지시가 없습니다."})]})]}),s.jsx(ge,{title:"실시간 가동 공정",icon:s.jsx(gl,{size:15}),children:s.jsxs("div",{className:"space-y-2 max-h-[400px] overflow-auto",children:[a.map((y,p)=>s.jsxs("div",{className:"bg-panel border border-edge rounded-lg p-2.5",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"text-sm font-medium",children:y.processName||y.processCode}),s.jsxs("span",{className:"flex items-center gap-1 text-[11px] text-emerald-400",children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),"RUNNING"]})]}),s.jsxs("div",{className:"text-[11px] text-slate-400 mt-0.5",children:[y.woNo," · ",y.equipmentCode||"설비 미지정"]})]},y.id??p)),a.length===0&&s.jsx("p",{className:"text-slate-500 text-xs py-6 text-center",children:"가동 중 공정 없음"})]})})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[s.jsx(ge,{title:"품목별 계획 대비 실적 (30일)",icon:s.jsx(ao,{size:15}),children:s.jsx(br,{type:"BAR",data:j})}),s.jsx(ge,{title:"지연 알림",icon:s.jsx(XS,{size:15}),children:s.jsxs("div",{className:"space-y-1.5 max-h-[280px] overflow-auto",children:[(c.workorders||[]).map((y,p)=>s.jsxs("div",{className:"flex items-center justify-between bg-rose-500/5 border border-rose-500/20 rounded p-2 text-sm",children:[s.jsxs("span",{children:[s.jsx(Vr,{size:13,className:"inline text-rose-400 mr-1.5"}),y.woNo," · ",y.itemName||y.itemCode]}),s.jsx("span",{className:"text-rose-400 text-xs",children:"작업지시 지연"})]},`wo${p}`)),(c.jobs||[]).map((y,p)=>s.jsxs("div",{className:"flex items-center justify-between bg-amber-500/5 border border-amber-500/20 rounded p-2 text-sm",children:[s.jsxs("span",{children:[s.jsx(XS,{size:13,className:"inline text-amber-400 mr-1.5"}),y.jobNo," · ",y.processName||y.processCode]}),s.jsx("span",{className:"text-amber-400 text-xs",children:"작업 지연"})]},`job${p}`)),(c.workorders||[]).length===0&&(c.jobs||[]).length===0&&s.jsx("p",{className:"text-slate-500 text-sm py-6 text-center",children:"지연 항목이 없습니다."})]})})]})]})}const rme=["","CREATED","RELEASED","INPROGRESS","DONE","CLOSED","CANCELLED"],ame=["CREATED","RELEASED","INPROGRESS","DONE","CLOSED"],ime={itemCode:"",planQty:0,dueDate:"",priority:"NORMAL",remark:""},OA={CREATED:[{action:"RELEASE",label:"확정",manager:!0},{action:"CANCEL",label:"취소",manager:!0}],RELEASED:[{action:"START",label:"착수"},{action:"CANCEL",label:"취소",manager:!0}],INPROGRESS:[{action:"COMPLETE",label:"완료"}],DONE:[{action:"CLOSE",label:"마감",manager:!0}]};function sme(){const[e,t]=w.useState([]),[n,r]=w.useState(null),[a,i]=w.useState("table"),[l,o]=w.useState(""),[c,u]=w.useState(""),[f,d]=w.useState(null),[h,m]=w.useState([]),j=Xt(),y=cr(),p=()=>{ym({status:l,keyword:c}).then(S=>t(S||[])).catch(()=>t([])),LI().then(r).catch(()=>{})};w.useEffect(()=>{p()},[l]),w.useEffect(()=>{Qt({itemType:"PRODUCT"}).then(S=>m(S||[])).catch(()=>{})},[]);const v=()=>d({...ime,_new:!0}),g=async()=>{const{_new:S,id:N,...A}=f;S?await zI(A):await II(N,A),d(null),p()},b=async S=>{window.confirm("삭제하시겠습니까?")&&(await UI(S),p())},x=async(S,N)=>{await BI(S,N),p()},O=S=>n?n[S]||n[S.toLowerCase()]||[]:e.filter(N=>N.status===S);return s.jsxs("div",{children:[s.jsx(ct,{title:"작업지시",subtitle:"생산 작업지시 발행 · 상태 전이 · 칸반",actions:s.jsxs(s.Fragment,{children:[s.jsxs(Y,{variant:"ghost",onClick:()=>i(a==="table"?"kanban":"table"),children:[s.jsx(U0,{size:15})," ",a==="table"?"칸반":"테이블"]}),j&&s.jsxs(Y,{onClick:v,children:[s.jsx(lt,{size:16})," 작업지시"]})]})}),a==="table"?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[s.jsx("select",{className:"inp w-36",value:l,onChange:S=>o(S.target.value),children:rme.map(S=>s.jsx("option",{value:S,children:S||"전체 상태"},S))}),s.jsx("input",{value:c,onChange:S=>u(S.target.value),onKeyDown:S=>S.key==="Enter"&&p(),placeholder:"품목 검색",className:"inp w-52"}),s.jsx(Y,{variant:"ghost",onClick:p,children:"검색"})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"작업지시"}),s.jsx("th",{className:"text-left",children:"품목"}),s.jsx("th",{className:"text-right",children:"계획수량"}),s.jsx("th",{className:"text-left",children:"납기"}),s.jsx("th",{className:"text-left",children:"우선순위"}),s.jsx("th",{className:"text-left",children:"상태"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(S=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-1.5",children:[s.jsx(no,{size:14,className:"text-brand"}),S.woNo]}),s.jsx("td",{className:"text-slate-300 text-xs",children:S.itemName||S.itemCode}),s.jsx("td",{className:"text-right text-slate-300",children:Number(S.planQty||0).toLocaleString()}),s.jsx("td",{className:"text-slate-400 text-xs",children:S.dueDate||"-"}),s.jsx("td",{className:"text-slate-400 text-xs",children:S.priority||"NORMAL"}),s.jsx("td",{children:s.jsx(st,{status:S.status})}),s.jsx("td",{className:"px-4",children:s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[j&&(OA[S.status]||[]).filter(N=>!N.manager||y).map(N=>s.jsx("button",{onClick:()=>x(S.id,N.action),className:"text-xs text-brand hover:underline",children:N.label},N.action)),j&&S.status==="CREATED"&&s.jsx("button",{onClick:()=>d({...S,_new:!1}),className:"text-xs text-slate-400 hover:text-brand",children:"편집"}),y&&s.jsx("button",{onClick:()=>b(S.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(ir,{size:14})})]})})]},S.id)),e.length===0&&s.jsx(qe,{colSpan:7,msg:"작업지시가 없습니다."})]})]})})]}):s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 xl:grid-cols-5 gap-3",children:ame.map(S=>s.jsxs("div",{className:"bg-panel border border-edge rounded-xl p-3",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2 px-1",children:[s.jsx(st,{status:S}),s.jsx("span",{className:"text-xs text-slate-500",children:O(S).length})]}),s.jsxs("div",{className:"space-y-2 max-h-[600px] overflow-auto",children:[O(S).map(N=>s.jsxs("div",{className:"bg-card border border-edge rounded-lg p-2.5",children:[s.jsxs("div",{className:"text-sm font-medium flex items-center gap-1",children:[s.jsx(wT,{size:12,className:"text-brand"}),N.woNo]}),s.jsx("div",{className:"text-[11px] text-slate-400 mt-0.5",children:N.itemName||N.itemCode}),s.jsxs("div",{className:"text-[11px] text-slate-500 mt-0.5",children:["계획 ",Number(N.planQty||0).toLocaleString()," · 납기 ",N.dueDate||"-"]}),j&&s.jsx("div",{className:"flex gap-1.5 mt-2",children:(OA[N.status]||[]).filter(A=>!A.manager||y).map(A=>s.jsx("button",{onClick:()=>x(N.id,A.action),className:"text-[11px] px-1.5 py-0.5 rounded bg-brand/15 text-brand border border-brand/30",children:A.label},A.action))})]},N.id)),O(S).length===0&&s.jsx("p",{className:"text-slate-600 text-xs text-center py-3",children:"-"})]})]},S))}),f&&s.jsxs(Ye,{title:f._new?"작업지시 발행":"작업지시 편집",onClose:()=>d(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(L,{label:"품목(제품)",children:s.jsxs("select",{className:"inp",value:f.itemCode,onChange:S=>d({...f,itemCode:S.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),h.map(S=>s.jsxs("option",{value:S.itemCode,children:[S.itemName," (",S.itemCode,")"]},S.id))]})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"계획 수량",children:s.jsx("input",{type:"number",className:"inp",value:f.planQty,onChange:S=>d({...f,planQty:Number(S.target.value)})})}),s.jsx(L,{label:"납기",children:s.jsx("input",{type:"date",className:"inp",value:f.dueDate||"",onChange:S=>d({...f,dueDate:S.target.value})})})]}),s.jsx(L,{label:"우선순위",children:s.jsx("select",{className:"inp",value:f.priority,onChange:S=>d({...f,priority:S.target.value}),children:["LOW","NORMAL","HIGH","URGENT"].map(S=>s.jsx("option",{children:S},S))})}),s.jsx(L,{label:"비고",children:s.jsx("input",{className:"inp",value:f.remark||"",onChange:S=>d({...f,remark:S.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>d(null),children:"취소"}),s.jsx(Y,{onClick:g,children:"저장"})]})]})]})}const lme={woNo:"",itemCode:"",goodQty:0,defectQty:0,lotNo:"",workerId:"",remark:""};function NA(e,t){if(!e)return;if(e.labels&&e.series)return e;if(Array.isArray(e))return{labels:e.map(r=>r.label||r.name||r.defectCode||r.date),series:[{name:t,data:e.map(r=>Number(r.value??r.count??r.qty??0))}]};const n=Object.entries(e).filter(([,r])=>typeof r=="number");return n.length?{labels:n.map(r=>r[0]),series:[{name:t,data:n.map(r=>r[1])}]}:void 0}function ome(){const[e,t]=w.useState([]),[n,r]=w.useState(null),[a,i]=w.useState(null),[l,o]=w.useState(""),[c,u]=w.useState(null),[f,d]=w.useState([]),[h,m]=w.useState([]),[j,y]=w.useState([]),p=Xt(),v=()=>{qI({woNo:l,limit:100}).then(x=>t(x||[])).catch(()=>t([])),HI(14).then(r).catch(()=>{}),FI(30).then(i).catch(()=>{})};w.useEffect(()=>{v()},[]),w.useEffect(()=>{ym({status:"INPROGRESS"}).then(x=>d(x||[])).catch(()=>{}),Qt().then(x=>m(x||[])).catch(()=>{}),pk().then(x=>y(x||[])).catch(()=>{})},[]);const g=()=>u({...lme}),b=async()=>{await GI(c),u(null),v()};return s.jsxs("div",{children:[s.jsx(ct,{title:"생산실적",subtitle:"생산실적 보고 · LOT 생성 · 자재 투입 / 산출 입고",actions:p&&s.jsxs(Y,{onClick:g,children:[s.jsx(lt,{size:16})," 실적 보고"]})}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 mb-6",children:[s.jsx(ge,{title:"일별 생산량 (14일)",icon:s.jsx(xs,{size:15}),children:s.jsx(br,{type:"AREA",data:NA(n,"생산량")})}),s.jsx(ge,{title:"불량 파레토 (30일)",children:s.jsx(br,{type:"BAR",data:NA(a,"불량수")})})]}),s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx("input",{value:l,onChange:x=>o(x.target.value),onKeyDown:x=>x.key==="Enter"&&v(),placeholder:"작업지시번호",className:"inp w-44"}),s.jsx(Y,{variant:"ghost",onClick:v,children:"검색"})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"작업지시"}),s.jsx("th",{className:"text-left",children:"품목"}),s.jsx("th",{className:"text-left",children:"LOT"}),s.jsx("th",{className:"text-right",children:"양품"}),s.jsx("th",{className:"text-right",children:"불량"}),s.jsx("th",{className:"text-left",children:"작업자"}),s.jsx("th",{className:"text-left",children:"일시"})]})}),s.jsxs("tbody",{children:[e.map(x=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsx("td",{className:"py-3 px-4 font-medium",children:x.woNo}),s.jsx("td",{className:"text-slate-300 text-xs",children:x.itemName||x.itemCode}),s.jsx("td",{className:"text-slate-400 font-mono text-xs",children:x.lotNo||"-"}),s.jsx("td",{className:"text-right text-emerald-400",children:Number(x.goodQty||0).toLocaleString()}),s.jsx("td",{className:"text-right text-rose-400",children:Number(x.defectQty||0).toLocaleString()}),s.jsx("td",{className:"text-slate-400 text-xs",children:x.workerId||"-"}),s.jsx("td",{className:"text-slate-500 text-xs",children:x.createdAt?new Date(x.createdAt).toLocaleString("ko-KR"):"-"})]},x.id)),e.length===0&&s.jsx(qe,{colSpan:7,msg:"생산실적이 없습니다."})]})]})}),c&&s.jsxs(Ye,{title:"생산실적 보고",onClose:()=>u(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(L,{label:"작업지시",children:s.jsxs("select",{className:"inp",value:c.woNo,onChange:x=>{const O=f.find(S=>S.woNo===x.target.value);u({...c,woNo:x.target.value,itemCode:(O==null?void 0:O.itemCode)||c.itemCode})},children:[s.jsx("option",{value:"",children:"선택"}),f.map(x=>s.jsxs("option",{value:x.woNo,children:[x.woNo," · ",x.itemName||x.itemCode]},x.id))]})}),s.jsx(L,{label:"품목코드",children:s.jsxs("select",{className:"inp",value:c.itemCode,onChange:x=>u({...c,itemCode:x.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),h.map(x=>s.jsxs("option",{value:x.itemCode,children:[x.itemName," (",x.itemCode,")"]},x.id))]})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"양품 수량",children:s.jsx("input",{type:"number",className:"inp",value:c.goodQty,onChange:x=>u({...c,goodQty:Number(x.target.value)})})}),s.jsx(L,{label:"불량 수량",children:s.jsx("input",{type:"number",className:"inp",value:c.defectQty,onChange:x=>u({...c,defectQty:Number(x.target.value)})})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"LOT (미입력 시 자동)",children:s.jsx("input",{className:"inp",value:c.lotNo,onChange:x=>u({...c,lotNo:x.target.value})})}),s.jsx(L,{label:"작업자",children:s.jsxs("select",{className:"inp",value:c.workerId,onChange:x=>u({...c,workerId:x.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),j.map(x=>s.jsx("option",{value:x.id,children:x.displayName||x.username},x.id))]})})]}),s.jsx(L,{label:"비고",children:s.jsx("input",{className:"inp",value:c.remark,onChange:x=>u({...c,remark:x.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>u(null),children:"취소"}),s.jsx(Y,{onClick:b,children:"보고"})]})]})]})}const cme=[{key:"WAIT",label:"대기"},{key:"RUNNING",label:"가동"},{key:"DONE",label:"완료"}];function ume(){const[e,t]=w.useState([]),[n,r]=w.useState(""),[a,i]=w.useState([]),l=Xt(),o=()=>YI().then(d=>t(Array.isArray(d)?d:[])).catch(()=>t([])),c=()=>{n?KI(Number(n)).then(d=>t(Array.isArray(d)?d:[])).catch(()=>t([])):o()};w.useEffect(()=>{o()},[]),w.useEffect(()=>{ym().then(h=>i(h||[])).catch(()=>{});const d=window.setInterval(()=>{n||o()},15e3);return()=>window.clearInterval(d)},[n]);const u=async(d,h)=>{await VI(d,h),c()},f=d=>e.filter(h=>(h.status||"WAIT").toUpperCase()===d);return s.jsxs("div",{children:[s.jsx(ct,{title:"공정진행 칸반",subtitle:"공정 실시간 진행 상태 (작업지시 미선택 시 전체 가동 공정 · 15초 갱신)",actions:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("select",{className:"inp w-56",value:n,onChange:d=>r(d.target.value),children:[s.jsx("option",{value:"",children:"전체 가동 공정"}),a.map(d=>s.jsxs("option",{value:d.id,children:[d.woNo," · ",d.itemName||d.itemCode]},d.id))]}),s.jsxs(Y,{variant:"ghost",onClick:c,children:[s.jsx(Yo,{size:15})," 조회"]})]})}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3",children:cme.map(d=>s.jsxs("div",{className:"bg-panel border border-edge rounded-xl p-3",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2 px-1",children:[s.jsx(st,{status:d.key}),s.jsx("span",{className:"text-xs text-slate-500",children:f(d.key).length})]}),s.jsxs("div",{className:"space-y-2 max-h-[600px] overflow-auto",children:[f(d.key).map(h=>s.jsxs("div",{className:"bg-card border border-edge rounded-lg p-2.5",children:[s.jsxs("div",{className:"text-sm font-medium flex items-center gap-1.5",children:[s.jsx(U0,{size:13,className:"text-brand"}),h.processName||h.processCode]}),s.jsxs("div",{className:"text-[11px] text-slate-400 mt-0.5",children:[h.woNo||""," · 순서 ",h.opSeq??"-"," · ",h.equipmentCode||"설비 미지정"]}),l&&s.jsxs("div",{className:"flex gap-1.5 mt-2",children:[d.key==="WAIT"&&s.jsxs("button",{onClick:()=>u(h.id,"RUNNING"),className:"text-[11px] px-1.5 py-0.5 rounded bg-emerald-500/15 text-emerald-400 border border-emerald-500/30 flex items-center gap-1",children:[s.jsx(Ug,{size:10})," 가동"]}),d.key==="RUNNING"&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:()=>u(h.id,"WAIT"),className:"text-[11px] px-1.5 py-0.5 rounded bg-amber-500/15 text-amber-400 border border-amber-500/30 flex items-center gap-1",children:[s.jsx(MT,{size:10})," 대기"]}),s.jsxs("button",{onClick:()=>u(h.id,"DONE"),className:"text-[11px] px-1.5 py-0.5 rounded bg-brand/15 text-brand border border-brand/30 flex items-center gap-1",children:[s.jsx(sm,{size:10})," 완료"]})]})]})]},h.id)),f(d.key).length===0&&s.jsx("p",{className:"text-slate-600 text-xs text-center py-3",children:"-"})]})]},d.key))}),e.length===0&&s.jsx("div",{className:"mt-4",children:s.jsx(qe,{msg:"가동 중 공정이 없습니다. 작업지시를 선택해 공정을 조회하세요."})})]})}const fme={equipmentCode:"",plannedTime:480,runTime:0,idealCycleTime:1,totalCount:0,goodCount:0,recordDate:""},dme=["RUN","IDLE","DOWN","MAINT"];function hme(e,t){if(e){if(e.labels&&e.series)return e;if(Array.isArray(e))return{labels:e.map(n=>n.label||n.code||n.downtimeCode||n.name),series:[{name:t,data:e.map(n=>Number(n.value??n.minutes??n.count??0))}]}}}function pme(e){const t=e.oeePercent??(e.oee!=null?e.oee*100:null);return t!=null?Number(t).toFixed(1):"-"}function mme(){const[e,t]=w.useState([]),[n,r]=w.useState([]),[a,i]=w.useState(null),[l,o]=w.useState(""),[c,u]=w.useState(null),f=Xt(),d=cr(),h=()=>{WI({equipmentCode:l,limit:50}).then(p=>t(p||[])).catch(()=>t([])),X0().then(p=>r(p||[])).catch(()=>{}),QI(30).then(i).catch(()=>{})};w.useEffect(()=>{h()},[]);const m=()=>u({...fme}),j=async()=>{await XI(c),u(null),h()},y=async(p,v)=>{await aB(p,v),h()};return s.jsxs("div",{children:[s.jsx(ct,{title:"설비 / OEE",subtitle:"가동률 × 성능 × 품질 = OEE · 비가동 코드 분석",actions:f&&s.jsxs(Y,{onClick:m,children:[s.jsx(lt,{size:16})," OEE 기록"]})}),s.jsx(ge,{title:"설비 가동 현황",icon:s.jsx(jf,{size:15}),className:"mb-5",children:s.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[n.map(p=>s.jsxs("div",{className:"bg-panel border border-edge rounded-lg p-3",children:[s.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[s.jsx("span",{className:"text-sm font-medium",children:p.equipmentName||p.equipmentCode}),s.jsx(st,{status:p.runStatus||p.status})]}),d&&s.jsx("select",{className:"inp text-xs",value:p.runStatus||"IDLE",onChange:v=>y(p.id,v.target.value),children:dme.map(v=>s.jsx("option",{value:v,children:v},v))})]},p.id)),n.length===0&&s.jsx("p",{className:"text-slate-500 text-sm col-span-4 text-center py-4",children:"설비가 없습니다."})]})}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 mb-6",children:[s.jsx(ge,{title:"비가동 파레토 (30일)",icon:s.jsx(PT,{size:15}),children:s.jsx(br,{type:"BAR",data:hme(a,"비가동(분)")})}),s.jsx(ge,{title:"OEE 추이",icon:s.jsx(ro,{size:15}),children:s.jsx(br,{type:"LINE",data:{labels:e.slice(0,12).reverse().map(p=>p.recordDate||p.equipmentCode),series:[{name:"OEE%",data:e.slice(0,12).reverse().map(p=>Number(p.oeePercent??(p.oee!=null?p.oee*100:0)))}]}})})]}),s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsxs("select",{className:"inp w-52",value:l,onChange:p=>o(p.target.value),children:[s.jsx("option",{value:"",children:"전체 설비"}),n.map(p=>s.jsx("option",{value:p.equipmentCode,children:p.equipmentName||p.equipmentCode},p.id))]}),s.jsx(Y,{variant:"ghost",onClick:h,children:"조회"})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"설비"}),s.jsx("th",{className:"text-left",children:"일자"}),s.jsx("th",{className:"text-right",children:"가동률"}),s.jsx("th",{className:"text-right",children:"성능"}),s.jsx("th",{className:"text-right",children:"품질"}),s.jsx("th",{className:"text-right px-4",children:"OEE"})]})}),s.jsxs("tbody",{children:[e.map(p=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsx("td",{className:"py-3 px-4 font-medium",children:p.equipmentCode}),s.jsx("td",{className:"text-slate-400 text-xs",children:p.recordDate||"-"}),s.jsx("td",{className:"text-right text-slate-300",children:p.availability!=null?(p.availability*100).toFixed(0)+"%":"-"}),s.jsx("td",{className:"text-right text-slate-300",children:p.performance!=null?(p.performance*100).toFixed(0)+"%":"-"}),s.jsx("td",{className:"text-right text-slate-300",children:p.quality!=null?(p.quality*100).toFixed(0)+"%":"-"}),s.jsxs("td",{className:"text-right px-4 font-bold text-accent",children:[pme(p),"%"]})]},p.id)),e.length===0&&s.jsx(qe,{colSpan:6,msg:"OEE 기록이 없습니다."})]})]})}),c&&s.jsxs(Ye,{title:"OEE 기록",onClose:()=>u(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(L,{label:"설비",children:s.jsxs("select",{className:"inp",value:c.equipmentCode,onChange:p=>u({...c,equipmentCode:p.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),n.map(p=>s.jsx("option",{value:p.equipmentCode,children:p.equipmentName||p.equipmentCode},p.id))]})}),s.jsx(L,{label:"기록 일자",children:s.jsx("input",{type:"date",className:"inp",value:c.recordDate,onChange:p=>u({...c,recordDate:p.target.value})})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"계획 가동시간(분)",children:s.jsx("input",{type:"number",className:"inp",value:c.plannedTime,onChange:p=>u({...c,plannedTime:Number(p.target.value)})})}),s.jsx(L,{label:"실제 가동시간(분)",children:s.jsx("input",{type:"number",className:"inp",value:c.runTime,onChange:p=>u({...c,runTime:Number(p.target.value)})})})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[s.jsx(L,{label:"이상 사이클(분)",children:s.jsx("input",{type:"number",step:"0.01",className:"inp",value:c.idealCycleTime,onChange:p=>u({...c,idealCycleTime:Number(p.target.value)})})}),s.jsx(L,{label:"총 생산수",children:s.jsx("input",{type:"number",className:"inp",value:c.totalCount,onChange:p=>u({...c,totalCount:Number(p.target.value)})})}),s.jsx(L,{label:"양품수",children:s.jsx("input",{type:"number",className:"inp",value:c.goodCount,onChange:p=>u({...c,goodCount:Number(p.target.value)})})})]})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>u(null),children:"취소"}),s.jsx(Y,{onClick:j,children:"저장"})]})]})]})}function yme(){const[e,t]=w.useState(""),[n,r]=w.useState([]),[a,i]=w.useState([]),[l,o]=w.useState([]),[c,u]=w.useState(!1),f=async()=>{e.trim()&&(u(!0),ZI(e).then(h=>r(d(h))).catch(()=>r([])),JI(e).then(h=>i(d(h))).catch(()=>i([])),e8(e).then(h=>o(d(h))).catch(()=>o([])))},d=h=>Array.isArray(h)?h:(h==null?void 0:h.nodes)||(h==null?void 0:h.items)||(h?[h]:[]);return s.jsxs("div",{children:[s.jsx(ct,{title:"LOT 추적",subtitle:"LOT/시리얼 정·역추적 (Genealogy) — 이력 · 정추적(소비처) · 역추적(투입원)"}),s.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[s.jsx("input",{value:e,onChange:h=>t(h.target.value),onKeyDown:h=>h.key==="Enter"&&f(),placeholder:"LOT 번호 입력 (예: LOT-20260614-001)",className:"inp w-80"}),s.jsxs(Y,{onClick:f,children:[s.jsx(Yo,{size:15})," 추적"]})]}),c?s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[s.jsx(ge,{title:"이력 (History)",icon:s.jsx(AT,{size:15}),children:s.jsx(Mv,{rows:n,kind:"history"})}),s.jsx(ge,{title:"정추적 → 소비 작업지시",icon:s.jsx(vT,{size:15,className:"text-emerald-400"}),children:s.jsx(Mv,{rows:a,kind:"forward"})}),s.jsx(ge,{title:"역추적 ← 투입 LOT",icon:s.jsx(_L,{size:15,className:"text-sky-400"}),children:s.jsx(Mv,{rows:l,kind:"backward"})})]}):s.jsx(qe,{msg:"LOT 번호를 입력하고 추적을 실행하세요."})]})}function Mv({rows:e,kind:t}){return e.length?s.jsx("div",{className:"space-y-2 max-h-[460px] overflow-auto",children:e.map((n,r)=>s.jsxs("div",{className:"relative pl-4 border-l-2 border-edge",children:[s.jsx("span",{className:"absolute -left-[5px] top-1.5 w-2 h-2 rounded-full bg-brand"}),s.jsxs("div",{className:"bg-panel border border-edge rounded-lg p-2.5",children:[s.jsxs("div",{className:"text-sm font-medium flex items-center gap-1.5",children:[s.jsx(_T,{size:12,className:"text-brand"}),n.lotNo||n.woNo||n.itemName||n.itemCode||n.event||`노드 ${r+1}`]}),s.jsx("div",{className:"text-[11px] text-slate-400 mt-0.5",children:[n.itemName||n.itemCode,n.woNo,n.eventType||n.txnType||n.refType,n.qty!=null?`${n.qty}`:null].filter(Boolean).join(" · ")||(t==="history"?"이력":"관계")}),n.createdAt&&s.jsx("div",{className:"text-[10px] text-slate-500 mt-0.5",children:new Date(n.createdAt).toLocaleString("ko-KR")})]})]},r))}):s.jsx("p",{className:"text-slate-500 text-sm py-6 text-center",children:"데이터 없음"})}const vme=["","DRAFT","CONFIRMED","INPROGRESS","DONE","CANCELLED"],gme={itemCode:"",planQty:0,startDate:"",endDate:"",remark:""},xme={DRAFT:[{action:"CONFIRM",label:"확정"},{action:"CANCEL",label:"취소"}],CONFIRMED:[{action:"START",label:"착수"},{action:"CANCEL",label:"취소"}],INPROGRESS:[{action:"COMPLETE",label:"완료"}]};function bme(e,t,n){const r=e.startDate?new Date(e.startDate).getTime():t,a=e.endDate?new Date(e.endDate).getTime():n,i=Math.max(1,n-t),l=(r-t)/i*100,o=Math.max(2,(a-r)/i*100);return{left:`${Math.max(0,l)}%`,width:`${Math.min(100,o)}%`}}function jme(){const[e,t]=w.useState([]),[n,r]=w.useState(""),[a,i]=w.useState(null),[l,o]=w.useState([]),c=Xt(),u=cr(),f=()=>t8({status:n}).then(g=>t(g||[])).catch(()=>t([]));w.useEffect(()=>{f()},[n]),w.useEffect(()=>{Qt({itemType:"PRODUCT"}).then(g=>o(g||[])).catch(()=>{})},[]);const d=()=>i({...gme,_new:!0}),h=async()=>{const{_new:g,id:b,...x}=a;g?await n8(x):await r8(b,x),i(null),f()},m=async g=>{window.confirm("삭제하시겠습니까?")&&(await i8(g),f())},j=async(g,b)=>{await a8(g,b),f()},y=e.flatMap(g=>[g.startDate,g.endDate]).filter(Boolean).map(g=>new Date(g).getTime()),p=y.length?Math.min(...y):Date.now(),v=y.length?Math.max(...y):Date.now()+864e5;return s.jsxs("div",{children:[s.jsx(ct,{title:"생산계획",subtitle:"생산 일정 계획 · 간트 타임라인",actions:c&&s.jsxs(Y,{onClick:d,children:[s.jsx(lt,{size:16})," 생산계획"]})}),s.jsx("div",{className:"flex items-center gap-2 mb-4",children:s.jsx("select",{className:"inp w-36",value:n,onChange:g=>r(g.target.value),children:vme.map(g=>s.jsx("option",{value:g,children:g||"전체 상태"},g))})}),s.jsx(ge,{title:"생산 일정 (간트)",icon:s.jsx(jT,{size:15}),className:"mb-5",children:s.jsxs("div",{className:"space-y-2",children:[e.map(g=>{const b=bme(g,p,v);return s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"w-40 text-xs text-slate-300 truncate",children:g.itemName||g.itemCode}),s.jsx("div",{className:"flex-1 relative h-5 bg-ink rounded",children:s.jsx("div",{className:"absolute h-5 rounded bg-brand/60 border border-brand text-[10px] text-white flex items-center px-1 overflow-hidden",style:b,children:Number(g.planQty||0).toLocaleString()})}),s.jsx(st,{status:g.status})]},g.id)}),e.length===0&&s.jsx("p",{className:"text-slate-500 text-sm py-4 text-center",children:"생산계획이 없습니다."})]})}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"품목"}),s.jsx("th",{className:"text-right",children:"계획수량"}),s.jsx("th",{className:"text-left",children:"시작"}),s.jsx("th",{className:"text-left",children:"종료"}),s.jsx("th",{className:"text-left",children:"상태"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(g=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsx("td",{className:"py-3 px-4 font-medium",children:g.itemName||g.itemCode}),s.jsx("td",{className:"text-right text-slate-300",children:Number(g.planQty||0).toLocaleString()}),s.jsx("td",{className:"text-slate-400 text-xs",children:g.startDate||"-"}),s.jsx("td",{className:"text-slate-400 text-xs",children:g.endDate||"-"}),s.jsx("td",{children:s.jsx(st,{status:g.status})}),s.jsx("td",{className:"px-4",children:s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[c&&(xme[g.status]||[]).map(b=>s.jsx("button",{onClick:()=>j(g.id,b.action),className:"text-xs text-brand hover:underline",children:b.label},b.action)),c&&g.status==="DRAFT"&&s.jsx("button",{onClick:()=>i({...g,_new:!1}),className:"text-xs text-slate-400 hover:text-brand",children:"편집"}),u&&s.jsx("button",{onClick:()=>m(g.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(ir,{size:14})})]})})]},g.id)),e.length===0&&s.jsx(qe,{colSpan:6,msg:"생산계획이 없습니다."})]})]})}),a&&s.jsxs(Ye,{title:a._new?"생산계획 작성":"생산계획 편집",onClose:()=>i(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(L,{label:"품목(제품)",children:s.jsxs("select",{className:"inp",value:a.itemCode,onChange:g=>i({...a,itemCode:g.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),l.map(g=>s.jsxs("option",{value:g.itemCode,children:[g.itemName," (",g.itemCode,")"]},g.id))]})}),s.jsx(L,{label:"계획 수량",children:s.jsx("input",{type:"number",className:"inp",value:a.planQty,onChange:g=>i({...a,planQty:Number(g.target.value)})})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"시작일",children:s.jsx("input",{type:"date",className:"inp",value:a.startDate||"",onChange:g=>i({...a,startDate:g.target.value})})}),s.jsx(L,{label:"종료일",children:s.jsx("input",{type:"date",className:"inp",value:a.endDate||"",onChange:g=>i({...a,endDate:g.target.value})})})]}),s.jsx(L,{label:"비고",children:s.jsx("input",{className:"inp",value:a.remark||"",onChange:g=>i({...a,remark:g.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>i(null),children:"취소"}),s.jsx(Y,{onClick:h,children:"저장"})]})]})]})}const Sme=["","REQUESTED","INSPECTING","ACCEPTED","REJECTED"],wme={partnerCode:"",itemCode:"",qty:0,lotNo:"",warehouseCode:"",locationCode:"",inspectionRequired:!1,remark:""};function Ome(){const[e,t]=w.useState([]),[n,r]=w.useState(""),[a,i]=w.useState(null),[l,o]=w.useState([]),[c,u]=w.useState([]),[f,d]=w.useState([]),h=Xt(),m=()=>s8({status:n}).then(g=>t(g||[])).catch(()=>t([]));w.useEffect(()=>{m()},[n]),w.useEffect(()=>{Qt().then(g=>o(g||[])).catch(()=>{}),Q0({partnerType:"SUPPLIER"}).then(g=>u(g||[])).catch(()=>{}),Af().then(g=>d(g||[])).catch(()=>{})},[]);const j=()=>i({...wme,_new:!0}),y=async()=>{const{_new:g,...b}=a;await l8(b),i(null),m()},p=async g=>{await o8(g.id,g.inspectionRequired?"PASS":void 0),m()},v=async g=>{const b=window.prompt("반려 사유");b!=null&&(await c8(g.id,b),m())};return s.jsxs("div",{children:[s.jsx(ct,{title:"입고",subtitle:"입고 요청 · 검수 · 입고 LOT · 재고 증가",actions:h&&s.jsxs(Y,{onClick:j,children:[s.jsx(lt,{size:16})," 입고 요청"]})}),s.jsx("div",{className:"flex items-center gap-2 mb-4",children:s.jsx("select",{className:"inp w-36",value:n,onChange:g=>r(g.target.value),children:Sme.map(g=>s.jsx("option",{value:g,children:g||"전체 상태"},g))})}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"입고번호"}),s.jsx("th",{className:"text-left",children:"공급사"}),s.jsx("th",{className:"text-left",children:"품목"}),s.jsx("th",{className:"text-right",children:"수량"}),s.jsx("th",{className:"text-left",children:"LOT"}),s.jsx("th",{className:"text-left",children:"창고"}),s.jsx("th",{className:"text-left",children:"상태"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(g=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-1.5",children:[s.jsx(TT,{size:14,className:"text-brand"}),g.receivingNo||g.id]}),s.jsx("td",{className:"text-slate-400 text-xs",children:g.partnerCode}),s.jsx("td",{className:"text-slate-300 text-xs",children:g.itemName||g.itemCode}),s.jsx("td",{className:"text-right text-slate-300",children:Number(g.qty||0).toLocaleString()}),s.jsx("td",{className:"text-slate-400 font-mono text-xs",children:g.lotNo||"-"}),s.jsx("td",{className:"text-slate-400 text-xs",children:g.warehouseCode||"-"}),s.jsx("td",{children:s.jsx(st,{status:g.status})}),s.jsx("td",{className:"px-4",children:s.jsx("div",{className:"flex items-center justify-end gap-2",children:h&&(g.status==="REQUESTED"||g.status==="INSPECTING")&&s.jsxs(s.Fragment,{children:[s.jsx("button",{onClick:()=>p(g),title:"입고 승인",className:"text-emerald-400 hover:text-emerald-300",children:s.jsx(ST,{size:16})}),s.jsx("button",{onClick:()=>v(g),title:"반려",className:"text-rose-400 hover:text-rose-300",children:s.jsx(qT,{size:16})})]})})})]},g.id)),e.length===0&&s.jsx(qe,{colSpan:8,msg:"입고 건이 없습니다."})]})]})}),a&&s.jsxs(Ye,{title:"입고 요청",onClose:()=>i(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"공급사",children:s.jsxs("select",{className:"inp",value:a.partnerCode,onChange:g=>i({...a,partnerCode:g.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),c.map(g=>s.jsx("option",{value:g.partnerCode,children:g.partnerName||g.partnerCode},g.id))]})}),s.jsx(L,{label:"품목",children:s.jsxs("select",{className:"inp",value:a.itemCode,onChange:g=>i({...a,itemCode:g.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),l.map(g=>s.jsxs("option",{value:g.itemCode,children:[g.itemName," (",g.itemCode,")"]},g.id))]})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"수량",children:s.jsx("input",{type:"number",className:"inp",value:a.qty,onChange:g=>i({...a,qty:Number(g.target.value)})})}),s.jsx(L,{label:"LOT (미입력 시 자동)",children:s.jsx("input",{className:"inp",value:a.lotNo,onChange:g=>i({...a,lotNo:g.target.value})})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"창고",children:s.jsxs("select",{className:"inp",value:a.warehouseCode,onChange:g=>i({...a,warehouseCode:g.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),f.map(g=>s.jsx("option",{value:g.warehouseCode,children:g.warehouseName||g.warehouseCode},g.id))]})}),s.jsx(L,{label:"로케이션",children:s.jsx("input",{className:"inp",value:a.locationCode,onChange:g=>i({...a,locationCode:g.target.value})})})]}),s.jsxs("label",{className:"flex items-center gap-2 text-sm text-slate-300",children:[s.jsx("input",{type:"checkbox",checked:a.inspectionRequired,onChange:g=>i({...a,inspectionRequired:g.target.checked})})," 수입검사(IQC) 필요"]}),s.jsx(L,{label:"비고",children:s.jsx("input",{className:"inp",value:a.remark,onChange:g=>i({...a,remark:g.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>i(null),children:"취소"}),s.jsx(Y,{onClick:y,children:"저장"})]})]})]})}const Nme=["","ORDERED","PICKING","PACKING","INSPECTED","SHIPPED","CANCELLED"],Ame={partnerCode:"",orderRef:"",itemCode:"",lotNo:"",planQty:0,warehouseCode:"",locationCode:"",inspectionRequired:!1,remark:""};function Eme(){const[e,t]=w.useState([]),[n,r]=w.useState(null),[a,i]=w.useState(""),[l,o]=w.useState(""),[c,u]=w.useState(null),[f,d]=w.useState(null),[h,m]=w.useState([]),[j,y]=w.useState([]),[p,v]=w.useState([]),g=Xt(),b=()=>{EI({status:a,keyword:l}).then(_=>t(_||[])).catch(()=>t([])),CI().then(r).catch(()=>{})};w.useEffect(()=>{b()},[a]),w.useEffect(()=>{Q0({partnerType:"CUSTOMER"}).then(_=>m(_||[])).catch(()=>{}),Qt().then(_=>y(_||[])).catch(()=>{}),Af().then(_=>v(_||[])).catch(()=>{})},[]);const x=()=>u({...Ame,_new:!0}),O=async _=>{d(await _I(_))},S=async()=>{const{_new:_,id:E,...P}=c;_?await TI(P):await kI(E,P),u(null),b()},N=async _=>{const E=window.prompt(`피킹 수량 (계획 ${_.planQty})`,String(_.planQty-(_.pickedQty||0)));E!=null&&(await MI(_.id,Number(E)),b(),(f==null?void 0:f.id)===_.id&&O(_.id))},A=async _=>{const E=window.prompt(`패킹 수량 (피킹 ${_.pickedQty})`,String((_.pickedQty||0)-(_.packedQty||0)));E!=null&&(await PI(_.id,Number(E)),b(),(f==null?void 0:f.id)===_.id&&O(_.id))},C=async(_,E)=>{await $I(_.id,E),b(),(f==null?void 0:f.id)===_.id&&O(_.id)},k=async _=>{var E,P;if(window.confirm("출하 확정 시 재고가 차감되고 납품서·거래명세서가 발번됩니다. 진행할까요?"))try{await RI(_.id),b(),d(null)}catch(I){window.alert(((P=(E=I==null?void 0:I.response)==null?void 0:E.data)==null?void 0:P.message)===void 0?"출하 확정 실패":"출하 확정 실패 — 검사 합격 필요 여부를 확인하세요.")}},R=async _=>{window.confirm("취소하시겠습니까?")&&(await DI(_.id),b(),d(null))},M=[{key:"ORDERED",label:"출하지시"},{key:"PICKING",label:"피킹"},{key:"PACKING",label:"패킹"},{key:"INSPECTED",label:"검사완료"},{key:"SHIPPED",label:"출하완료"}],B=_=>(n==null?void 0:n[_])??(n==null?void 0:n[_.toLowerCase()])??0;return s.jsxs("div",{children:[s.jsx(ct,{title:"출하관리 ★",subtitle:"출하지시 · 피킹/패킹 · 출하검사(OQC) · 출하확정(재고감소·납품서·거래명세서)",actions:g&&s.jsxs(Y,{onClick:x,children:[s.jsx(lt,{size:16})," 출하지시"]})}),s.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-5 gap-3 mb-5",children:M.map(_=>s.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4 text-center",children:[s.jsx("div",{className:"text-xs text-slate-400",children:_.label}),s.jsx("div",{className:"text-2xl font-bold mt-1 text-brand",children:B(_.key).toLocaleString()})]},_.key))}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[s.jsx("select",{className:"inp w-36",value:a,onChange:_=>i(_.target.value),children:Nme.map(_=>s.jsx("option",{value:_,children:_||"전체 상태"},_))}),s.jsx("input",{value:l,onChange:_=>o(_.target.value),onKeyDown:_=>_.key==="Enter"&&b(),placeholder:"품목/거래처 검색",className:"inp w-52"}),s.jsx(Y,{variant:"ghost",onClick:b,children:"검색"})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"출하번호"}),s.jsx("th",{className:"text-left",children:"거래처"}),s.jsx("th",{className:"text-left",children:"품목"}),s.jsx("th",{className:"text-left",children:"LOT"}),s.jsx("th",{className:"text-right",children:"계획/피킹/패킹"}),s.jsx("th",{className:"text-left",children:"검사"}),s.jsx("th",{className:"text-left",children:"상태"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(_=>s.jsxs("tr",{className:"border-t border-edge/50 cursor-pointer hover:bg-panel/40",onClick:()=>O(_.id),children:[s.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-1.5",children:[s.jsx(cm,{size:14,className:"text-brand"}),_.shippingNo]}),s.jsx("td",{className:"text-slate-400 text-xs",children:_.partnerCode}),s.jsx("td",{className:"text-slate-300 text-xs",children:_.itemName||_.itemCode}),s.jsx("td",{className:"text-slate-400 font-mono text-xs",children:_.lotNo||"-"}),s.jsxs("td",{className:"text-right text-slate-300 text-xs",children:[_.planQty,"/",_.pickedQty||0,"/",_.packedQty||0]}),s.jsx("td",{children:_.inspectionRequired?s.jsx(st,{status:_.inspectionResult||"WAIT"}):s.jsx("span",{className:"text-slate-500 text-xs",children:"불필요"})}),s.jsx("td",{children:s.jsx(st,{status:_.status})}),s.jsx("td",{className:"px-4",onClick:E=>E.stopPropagation(),children:s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[g&&_.status==="ORDERED"&&s.jsx("button",{onClick:()=>N(_),title:"피킹",className:"text-sky-400 hover:text-sky-300",children:s.jsx(ew,{size:15})}),g&&_.status==="PICKING"&&s.jsx("button",{onClick:()=>A(_),title:"패킹",className:"text-violet-400 hover:text-violet-300",children:s.jsx(JS,{size:15})}),g&&_.status==="PACKING"&&_.inspectionRequired&&s.jsx("button",{onClick:()=>C(_,"PASS"),title:"출하검사",className:"text-cyan-400 hover:text-cyan-300",children:s.jsx(bs,{size:15})}),g&&(_.status==="PACKING"||_.status==="INSPECTED")&&s.jsx("button",{onClick:()=>k(_),title:"출하확정",className:"text-emerald-400 hover:text-emerald-300",children:s.jsx(tw,{size:15})}),g&&_.status!=="SHIPPED"&&_.status!=="CANCELLED"&&s.jsx("button",{onClick:()=>R(_),title:"취소",className:"text-rose-400 hover:text-rose-300",children:s.jsx(Eh,{size:15})})]})})]},_.id)),e.length===0&&s.jsx(qe,{colSpan:8,msg:"출하 건이 없습니다."})]})]})}),c&&s.jsxs(Ye,{title:"출하지시 생성",onClose:()=>u(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"거래처(고객)",children:s.jsxs("select",{className:"inp",value:c.partnerCode,onChange:_=>u({...c,partnerCode:_.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),h.map(_=>s.jsx("option",{value:_.partnerCode,children:_.partnerName||_.partnerCode},_.id))]})}),s.jsx(L,{label:"주문참조",children:s.jsx("input",{className:"inp",value:c.orderRef,onChange:_=>u({...c,orderRef:_.target.value})})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"품목",children:s.jsxs("select",{className:"inp",value:c.itemCode,onChange:_=>u({...c,itemCode:_.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),j.map(_=>s.jsxs("option",{value:_.itemCode,children:[_.itemName," (",_.itemCode,")"]},_.id))]})}),s.jsx(L,{label:"LOT 번호",children:s.jsx("input",{className:"inp",value:c.lotNo,onChange:_=>u({...c,lotNo:_.target.value})})})]}),s.jsx(L,{label:"계획 수량",children:s.jsx("input",{type:"number",className:"inp",value:c.planQty,onChange:_=>u({...c,planQty:Number(_.target.value)})})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"창고",children:s.jsxs("select",{className:"inp",value:c.warehouseCode,onChange:_=>u({...c,warehouseCode:_.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),p.map(_=>s.jsx("option",{value:_.warehouseCode,children:_.warehouseName||_.warehouseCode},_.id))]})}),s.jsx(L,{label:"로케이션",children:s.jsx("input",{className:"inp",value:c.locationCode,onChange:_=>u({...c,locationCode:_.target.value})})})]}),s.jsxs("label",{className:"flex items-center gap-2 text-sm text-slate-300",children:[s.jsx("input",{type:"checkbox",checked:c.inspectionRequired,onChange:_=>u({...c,inspectionRequired:_.target.checked})}),"출하검사(OQC) 필수"]}),s.jsx(L,{label:"비고",children:s.jsx("input",{className:"inp",value:c.remark,onChange:_=>u({...c,remark:_.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>u(null),children:"취소"}),s.jsx(Y,{onClick:S,children:"저장"})]})]}),f&&s.jsxs(Ye,{title:`출하 상세 — ${f.shippingNo}`,onClose:()=>d(null),wide:!0,children:[s.jsxs("div",{className:"grid grid-cols-2 gap-4 text-sm",children:[s.jsx(Hn,{label:"거래처",value:f.partnerCode}),s.jsx(Hn,{label:"상태",value:s.jsx(st,{status:f.status})}),s.jsx(Hn,{label:"품목",value:`${f.itemName||""} (${f.itemCode})`}),s.jsx(Hn,{label:"LOT",value:f.lotNo||"-"}),s.jsx(Hn,{label:"계획 수량",value:f.planQty}),s.jsx(Hn,{label:"피킹/패킹/출하",value:`${f.pickedQty||0} / ${f.packedQty||0} / ${f.shippedQty||0}`}),s.jsx(Hn,{label:"검사 필수",value:f.inspectionRequired?`예 (${f.inspectionResult||"대기"})`:"아니오"}),s.jsx(Hn,{label:"창고/로케이션",value:`${f.warehouseCode||"-"} / ${f.locationCode||"-"}`}),s.jsx(Hn,{label:"납품서",value:f.deliveryNo||"-",icon:s.jsx(QS,{size:13})}),s.jsx(Hn,{label:"거래명세서",value:f.statementNo||"-",icon:s.jsx(QS,{size:13})}),s.jsx(Hn,{label:"출하일",value:f.shipDate||"-"}),s.jsx(Hn,{label:"비고",value:f.remark||"-"})]}),g&&f.status!=="SHIPPED"&&f.status!=="CANCELLED"&&s.jsxs("div",{className:"flex flex-wrap gap-2 mt-5 justify-end",children:[f.status==="ORDERED"&&s.jsxs(Y,{variant:"ghost",onClick:()=>N(f),children:[s.jsx(ew,{size:14})," 피킹"]}),f.status==="PICKING"&&s.jsxs(Y,{variant:"ghost",onClick:()=>A(f),children:[s.jsx(JS,{size:14})," 패킹"]}),f.status==="PACKING"&&f.inspectionRequired&&s.jsxs(s.Fragment,{children:[s.jsxs(Y,{variant:"ghost",onClick:()=>C(f,"PASS"),children:[s.jsx(bs,{size:14})," 검사 합격"]}),s.jsxs(Y,{variant:"danger",onClick:()=>C(f,"FAIL"),children:[s.jsx(bs,{size:14})," 검사 불합격"]})]}),(f.status==="PACKING"||f.status==="INSPECTED")&&s.jsxs(Y,{onClick:()=>k(f),children:[s.jsx(tw,{size:14})," 출하확정"]}),s.jsxs(Y,{variant:"danger",onClick:()=>R(f),children:[s.jsx(Eh,{size:14})," 취소"]})]})]})]})}function Hn({label:e,value:t,icon:n}){return s.jsxs("div",{className:"bg-panel border border-edge rounded-lg p-2.5",children:[s.jsxs("div",{className:"text-[11px] text-slate-500 mb-0.5 flex items-center gap-1",children:[n,e]}),s.jsx("div",{className:"text-slate-200",children:t})]})}function Cme(){const[e,t]=w.useState([]),[n,r]=w.useState([]),[a,i]=w.useState([]),[l,o]=w.useState(""),[c,u]=w.useState(""),[f,d]=w.useState(null),[h,m]=w.useState([]),[j,y]=w.useState([]),p=Xt(),v=()=>{u8({keyword:l,warehouseCode:c}).then(x=>t(x||[])).catch(()=>t([])),f8().then(x=>r(Array.isArray(x)?x:[])).catch(()=>r([])),d8({limit:30}).then(x=>i(Array.isArray(x)?x:[])).catch(()=>i([]))};w.useEffect(()=>{v()},[c]),w.useEffect(()=>{Qt().then(x=>m(x||[])).catch(()=>{}),Af().then(x=>y(x||[])).catch(()=>{})},[]);const g=()=>d({itemCode:"",fromWarehouse:"",toWarehouse:"",fromLocation:"",toLocation:"",qty:0}),b=async()=>{await h8(f),d(null),v()};return s.jsxs("div",{children:[s.jsx(ct,{title:"재고",subtitle:"로케이션별 재고 · 안전재고 · 재고 이동(transfer) · 수불 원장",actions:p&&s.jsxs(Y,{onClick:g,children:[s.jsx(CL,{size:15})," 재고 이동"]})}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4 mb-5",children:[s.jsx(ge,{title:"안전재고 미달",icon:s.jsx(Vr,{size:15,className:"text-amber-400"}),children:s.jsxs("div",{className:"space-y-1.5 max-h-44 overflow-auto",children:[n.map((x,O)=>s.jsxs("div",{className:"flex items-center justify-between bg-amber-500/5 border border-amber-500/20 rounded p-2 text-sm",children:[s.jsx("span",{children:x.itemName||x.itemCode}),s.jsxs("span",{className:"text-amber-400 text-xs",children:[Number(x.qty??x.availableQty??0)," / 안전 ",Number(x.safetyStock??0)]})]},O)),n.length===0&&s.jsx("p",{className:"text-slate-500 text-xs py-4 text-center",children:"미달 항목 없음"})]})}),s.jsx(ge,{title:"최근 수불 이력",icon:s.jsx(AT,{size:15}),className:"lg:col-span-2",children:s.jsxs("div",{className:"space-y-1 max-h-44 overflow-auto",children:[a.map((x,O)=>s.jsxs("div",{className:"flex items-center justify-between text-xs border-b border-edge/40 py-1",children:[s.jsx("span",{className:"text-slate-300",children:x.itemName||x.itemCode}),s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(st,{status:x.txnType||x.refType}),s.jsxs("span",{className:Number(x.qty)<0?"text-rose-400":"text-emerald-400",children:[Number(x.qty||0)>0?"+":"",Number(x.qty||0).toLocaleString()]}),s.jsx("span",{className:"text-slate-500",children:x.createdAt?new Date(x.createdAt).toLocaleDateString("ko-KR"):""})]})]},O)),a.length===0&&s.jsx("p",{className:"text-slate-500 text-xs py-4 text-center",children:"수불 이력 없음"})]})})]}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[s.jsxs("select",{className:"inp w-44",value:c,onChange:x=>u(x.target.value),children:[s.jsx("option",{value:"",children:"전체 창고"}),j.map(x=>s.jsx("option",{value:x.warehouseCode,children:x.warehouseName||x.warehouseCode},x.id))]}),s.jsx("input",{value:l,onChange:x=>o(x.target.value),onKeyDown:x=>x.key==="Enter"&&v(),placeholder:"품목 검색",className:"inp w-52"}),s.jsx(Y,{variant:"ghost",onClick:v,children:"검색"})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"품목"}),s.jsx("th",{className:"text-left",children:"창고"}),s.jsx("th",{className:"text-left",children:"로케이션"}),s.jsx("th",{className:"text-left",children:"LOT"}),s.jsx("th",{className:"text-right",children:"재고수량"}),s.jsx("th",{className:"text-right px-4",children:"안전재고"})]})}),s.jsxs("tbody",{children:[e.map((x,O)=>{const S=Number(x.qty??x.availableQty??0),N=Number(x.safetyStock??0);return s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-1.5",children:[s.jsx(bf,{size:14,className:"text-brand"}),x.itemName||x.itemCode]}),s.jsx("td",{className:"text-slate-400 text-xs",children:x.warehouseCode||"-"}),s.jsx("td",{className:"text-slate-400 text-xs",children:x.locationCode||"-"}),s.jsx("td",{className:"text-slate-400 font-mono text-xs",children:x.lotNo||"-"}),s.jsx("td",{className:`text-right font-medium ${N>0&&S<N?"text-amber-400":"text-slate-200"}`,children:S.toLocaleString()}),s.jsx("td",{className:"text-right px-4 text-slate-500",children:N.toLocaleString()})]},x.id??O)}),e.length===0&&s.jsx(qe,{colSpan:6,msg:"재고가 없습니다."})]})]})}),f&&s.jsxs(Ye,{title:"재고 이동",onClose:()=>d(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(L,{label:"품목",children:s.jsxs("select",{className:"inp",value:f.itemCode,onChange:x=>d({...f,itemCode:x.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),h.map(x=>s.jsxs("option",{value:x.itemCode,children:[x.itemName," (",x.itemCode,")"]},x.id))]})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"출발 창고",children:s.jsxs("select",{className:"inp",value:f.fromWarehouse,onChange:x=>d({...f,fromWarehouse:x.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),j.map(x=>s.jsx("option",{value:x.warehouseCode,children:x.warehouseName||x.warehouseCode},x.id))]})}),s.jsx(L,{label:"도착 창고",children:s.jsxs("select",{className:"inp",value:f.toWarehouse,onChange:x=>d({...f,toWarehouse:x.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),j.map(x=>s.jsx("option",{value:x.warehouseCode,children:x.warehouseName||x.warehouseCode},x.id))]})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"출발 로케이션",children:s.jsx("input",{className:"inp",value:f.fromLocation,onChange:x=>d({...f,fromLocation:x.target.value})})}),s.jsx(L,{label:"도착 로케이션",children:s.jsx("input",{className:"inp",value:f.toLocation,onChange:x=>d({...f,toLocation:x.target.value})})})]}),s.jsx(L,{label:"이동 수량",children:s.jsx("input",{type:"number",className:"inp",value:f.qty,onChange:x=>d({...f,qty:Number(x.target.value)})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>d(null),children:"취소"}),s.jsx(Y,{onClick:b,children:"이동"})]})]})]})}const _me=["","COUNTED","ADJUSTED"],Tme={itemCode:"",warehouseCode:"",locationCode:"",lotNo:"",countedQty:0,remark:""};function kme(){const[e,t]=w.useState([]),[n,r]=w.useState(""),[a,i]=w.useState(null),[l,o]=w.useState([]),[c,u]=w.useState([]),f=Xt(),d=cr(),h=()=>p8({status:n}).then(p=>t(p||[])).catch(()=>t([]));w.useEffect(()=>{h()},[n]),w.useEffect(()=>{Qt().then(p=>o(p||[])).catch(()=>{}),Af().then(p=>u(p||[])).catch(()=>{})},[]);const m=()=>i({...Tme}),j=async()=>{await m8(a),i(null),h()},y=async p=>{window.confirm("재고를 실사 수량으로 보정하시겠습니까?")&&(await y8(p),h())};return s.jsxs("div",{children:[s.jsx(ct,{title:"재고실사",subtitle:"실사 카운트 · 시스템 재고 대비 차이 계산 · 재고 보정(ADJUST)",actions:f&&s.jsxs(Y,{onClick:m,children:[s.jsx(lt,{size:16})," 실사 카운트"]})}),s.jsx("div",{className:"flex items-center gap-2 mb-4",children:s.jsx("select",{className:"inp w-36",value:n,onChange:p=>r(p.target.value),children:_me.map(p=>s.jsx("option",{value:p,children:p||"전체 상태"},p))})}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"실사번호"}),s.jsx("th",{className:"text-left",children:"품목"}),s.jsx("th",{className:"text-left",children:"창고/로케이션"}),s.jsx("th",{className:"text-right",children:"시스템"}),s.jsx("th",{className:"text-right",children:"실사"}),s.jsx("th",{className:"text-right",children:"차이"}),s.jsx("th",{className:"text-left",children:"상태"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(p=>{const v=Number(p.diffQty??(p.countedQty||0)-(p.systemQty||0));return s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-1.5",children:[s.jsx(OT,{size:14,className:"text-brand"}),p.stocktakeNo||p.id]}),s.jsx("td",{className:"text-slate-300 text-xs",children:p.itemName||p.itemCode}),s.jsxs("td",{className:"text-slate-400 text-xs",children:[p.warehouseCode||"-"," / ",p.locationCode||"-"]}),s.jsx("td",{className:"text-right text-slate-300",children:Number(p.systemQty||0).toLocaleString()}),s.jsx("td",{className:"text-right text-slate-300",children:Number(p.countedQty||0).toLocaleString()}),s.jsxs("td",{className:`text-right font-medium ${v===0?"text-slate-400":v>0?"text-emerald-400":"text-rose-400"}`,children:[v>0?"+":"",v.toLocaleString()]}),s.jsx("td",{children:s.jsx(st,{status:p.status})}),s.jsx("td",{className:"px-4 text-right",children:d&&p.status==="COUNTED"&&s.jsxs("button",{onClick:()=>y(p.id),className:"inline-flex items-center gap-1 text-xs text-brand hover:underline",children:[s.jsx(jf,{size:12})," 보정"]})})]},p.id)}),e.length===0&&s.jsx(qe,{colSpan:8,msg:"실사 기록이 없습니다."})]})]})}),a&&s.jsxs(Ye,{title:"실사 카운트",onClose:()=>i(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(L,{label:"품목",children:s.jsxs("select",{className:"inp",value:a.itemCode,onChange:p=>i({...a,itemCode:p.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),l.map(p=>s.jsxs("option",{value:p.itemCode,children:[p.itemName," (",p.itemCode,")"]},p.id))]})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"창고",children:s.jsxs("select",{className:"inp",value:a.warehouseCode,onChange:p=>i({...a,warehouseCode:p.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),c.map(p=>s.jsx("option",{value:p.warehouseCode,children:p.warehouseName||p.warehouseCode},p.id))]})}),s.jsx(L,{label:"로케이션",children:s.jsx("input",{className:"inp",value:a.locationCode,onChange:p=>i({...a,locationCode:p.target.value})})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"LOT",children:s.jsx("input",{className:"inp",value:a.lotNo,onChange:p=>i({...a,lotNo:p.target.value})})}),s.jsx(L,{label:"실사 수량",children:s.jsx("input",{type:"number",className:"inp",value:a.countedQty,onChange:p=>i({...a,countedQty:Number(p.target.value)})})})]}),s.jsx(L,{label:"비고",children:s.jsx("input",{className:"inp",value:a.remark,onChange:p=>i({...a,remark:p.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>i(null),children:"취소"}),s.jsx(Y,{onClick:j,children:"카운트"})]})]})]})}const Mme=["","ACTIVE","CONSUMED","SHIPPED","EXPIRED"],Pme=["ACTIVE","CONSUMED","SHIPPED","EXPIRED"],$me={itemCode:"",lotNo:"",serialNo:"",qty:0,mfgDate:"",expiryDate:"",status:"ACTIVE"};function Rme(){const[e,t]=w.useState([]),[n,r]=w.useState([]),[a,i]=w.useState(""),[l,o]=w.useState(""),[c,u]=w.useState(null),[f,d]=w.useState([]),h=Xt(),m=()=>{v8({status:a,keyword:l}).then(v=>t(v||[])).catch(()=>t([])),g8(30).then(v=>r(Array.isArray(v)?v:[])).catch(()=>r([]))};w.useEffect(()=>{m()},[a]),w.useEffect(()=>{Qt().then(v=>d(v||[])).catch(()=>{})},[]);const j=()=>u({...$me}),y=async()=>{await x8(c),u(null),m()},p=async(v,g)=>{await b8(v,g),m()};return s.jsxs("div",{children:[s.jsx(ct,{title:"LOT / 시리얼",subtitle:"LOT·시리얼 추적 · 유효기간 관리",actions:h&&s.jsxs(Y,{onClick:j,children:[s.jsx(lt,{size:16})," LOT 등록"]})}),s.jsx(ge,{title:"유효기간 임박 (30일)",icon:s.jsx(EL,{size:15,className:"text-amber-400"}),className:"mb-5",children:s.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.map((v,g)=>s.jsxs("div",{className:"bg-amber-500/5 border border-amber-500/20 rounded-lg px-3 py-2 text-sm",children:[s.jsx("span",{className:"font-mono text-xs text-amber-300",children:v.lotNo}),s.jsxs("span",{className:"text-slate-400 text-xs ml-2",children:[v.itemName||v.itemCode," · ~",v.expiryDate]})]},g)),n.length===0&&s.jsx("p",{className:"text-slate-500 text-sm py-2",children:"임박 LOT 없음"})]})}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[s.jsx("select",{className:"inp w-36",value:a,onChange:v=>i(v.target.value),children:Mme.map(v=>s.jsx("option",{value:v,children:v||"전체 상태"},v))}),s.jsx("input",{value:l,onChange:v=>o(v.target.value),onKeyDown:v=>v.key==="Enter"&&m(),placeholder:"LOT/품목 검색",className:"inp w-52"}),s.jsx(Y,{variant:"ghost",onClick:m,children:"검색"})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"LOT"}),s.jsx("th",{className:"text-left",children:"시리얼"}),s.jsx("th",{className:"text-left",children:"품목"}),s.jsx("th",{className:"text-right",children:"수량"}),s.jsx("th",{className:"text-left",children:"제조"}),s.jsx("th",{className:"text-left",children:"유효"}),s.jsx("th",{className:"text-left px-4",children:"상태"})]})}),s.jsxs("tbody",{children:[e.map(v=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-1.5",children:[s.jsx(xT,{size:14,className:"text-brand"}),v.lotNo]}),s.jsx("td",{className:"text-slate-400 font-mono text-xs",children:v.serialNo||"-"}),s.jsx("td",{className:"text-slate-300 text-xs",children:v.itemName||v.itemCode}),s.jsx("td",{className:"text-right text-slate-300",children:Number(v.qty||0).toLocaleString()}),s.jsx("td",{className:"text-slate-400 text-xs",children:v.mfgDate||"-"}),s.jsx("td",{className:"text-slate-400 text-xs",children:v.expiryDate||"-"}),s.jsx("td",{className:"px-4",children:h?s.jsx("select",{value:v.status,onChange:g=>p(v.id,g.target.value),className:"px-2 py-1 rounded-md bg-ink border border-edge text-xs focus:border-brand outline-none",children:Pme.map(g=>s.jsx("option",{value:g,children:g},g))}):s.jsx(st,{status:v.status})})]},v.id)),e.length===0&&s.jsx(qe,{colSpan:7,msg:"LOT/시리얼이 없습니다."})]})]})}),c&&s.jsxs(Ye,{title:"LOT / 시리얼 등록",onClose:()=>u(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(L,{label:"품목",children:s.jsxs("select",{className:"inp",value:c.itemCode,onChange:v=>u({...c,itemCode:v.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),f.map(v=>s.jsxs("option",{value:v.itemCode,children:[v.itemName," (",v.itemCode,")"]},v.id))]})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"LOT 번호",children:s.jsx("input",{className:"inp",value:c.lotNo,onChange:v=>u({...c,lotNo:v.target.value})})}),s.jsx(L,{label:"시리얼",children:s.jsx("input",{className:"inp",value:c.serialNo,onChange:v=>u({...c,serialNo:v.target.value})})})]}),s.jsx(L,{label:"수량",children:s.jsx("input",{type:"number",className:"inp",value:c.qty,onChange:v=>u({...c,qty:Number(v.target.value)})})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"제조일",children:s.jsx("input",{type:"date",className:"inp",value:c.mfgDate,onChange:v=>u({...c,mfgDate:v.target.value})})}),s.jsx(L,{label:"유효기간",children:s.jsx("input",{type:"date",className:"inp",value:c.expiryDate,onChange:v=>u({...c,expiryDate:v.target.value})})})]})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>u(null),children:"취소"}),s.jsx(Y,{onClick:y,children:"저장"})]})]})]})}const Dme=["","IQC","IPQC","OQC"],Lme=["","PASS","FAIL","WAIT"],zme={inspectionType:"IQC",itemCode:"",lotNo:"",qty:0,remark:""};function Ime(){const[e,t]=w.useState([]),[n,r]=w.useState(null),[a,i]=w.useState(""),[l,o]=w.useState(""),[c,u]=w.useState(null),[f,d]=w.useState(null),[h,m]=w.useState([]),j=Xt(),y=()=>{j8({inspectionType:a,result:l}).then(S=>t(S||[])).catch(()=>t([])),S8(30).then(r).catch(()=>{})};w.useEffect(()=>{y()},[a,l]),w.useEffect(()=>{Qt().then(S=>m(S||[])).catch(()=>{})},[]);const p=()=>u({...zme}),v=async()=>{await w8(c),u(null),y()},g=S=>d({id:S.id,measured:0,lsl:"",usl:"",target:"",defectQty:0,defectCode:""}),b=async()=>{const{id:S,...N}=f;await O8(S,{measured:Number(N.measured),lsl:N.lsl===""?void 0:Number(N.lsl),usl:N.usl===""?void 0:Number(N.usl),target:N.target===""?void 0:Number(N.target),defectQty:Number(N.defectQty),defectCode:N.defectCode||void 0}),d(null),y()},x=async(S,N)=>{let A=0,C="";N==="FAIL"&&(A=Number(window.prompt("불량 수량","1")||0),C=window.prompt("불량 코드","")||""),await N8(S.id,{result:N,defectQty:A,defectCode:C}),y()},O=(n==null?void 0:n.passRate)??(n==null?void 0:n.rate);return s.jsxs("div",{children:[s.jsx(ct,{title:"검사 (IQC / IPQC / OQC)",subtitle:"수입·공정·출하 검사 · 합/불 판정 · FAIL 시 NCR 자동생성",actions:j&&s.jsxs(Y,{onClick:p,children:[s.jsx(lt,{size:16})," 검사 등록"]})}),O!=null&&s.jsx(ge,{title:"합격률 (30일)",className:"mb-5",children:s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsxs("div",{className:"text-4xl font-bold text-accent",children:[Number(O).toFixed(1),"%"]}),s.jsxs("div",{className:"text-sm text-slate-400",children:["합격 ",(n==null?void 0:n.passCount)??0," / 전체 ",(n==null?void 0:n.totalCount)??(n==null?void 0:n.total)??0]})]})}),s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx("select",{className:"inp w-32",value:a,onChange:S=>i(S.target.value),children:Dme.map(S=>s.jsx("option",{value:S,children:S||"전체 유형"},S))}),s.jsx("select",{className:"inp w-32",value:l,onChange:S=>o(S.target.value),children:Lme.map(S=>s.jsx("option",{value:S,children:S||"전체 결과"},S))})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"검사번호"}),s.jsx("th",{className:"text-left",children:"유형"}),s.jsx("th",{className:"text-left",children:"품목"}),s.jsx("th",{className:"text-left",children:"LOT"}),s.jsx("th",{className:"text-right",children:"수량"}),s.jsx("th",{className:"text-left",children:"결과"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(S=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-1.5",children:[s.jsx(bs,{size:14,className:"text-brand"}),S.inspectionNo||S.id]}),s.jsx("td",{children:s.jsx("span",{className:"px-2 py-0.5 rounded bg-brand/15 text-brand text-xs border border-brand/30",children:S.inspectionType})}),s.jsx("td",{className:"text-slate-300 text-xs",children:S.itemName||S.itemCode}),s.jsx("td",{className:"text-slate-400 font-mono text-xs",children:S.lotNo||"-"}),s.jsx("td",{className:"text-right text-slate-300",children:Number(S.qty||0).toLocaleString()}),s.jsx("td",{children:s.jsx(st,{status:S.result||"WAIT"})}),s.jsx("td",{className:"px-4",children:j&&(!S.result||S.result==="WAIT")&&s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.jsx("button",{onClick:()=>g(S),title:"AI 판정 보조",className:"text-accent hover:text-accent/80",children:s.jsx(Ln,{size:15})}),s.jsx("button",{onClick:()=>x(S,"PASS"),title:"합격",className:"text-emerald-400 hover:text-emerald-300",children:s.jsx(sm,{size:15})}),s.jsx("button",{onClick:()=>x(S,"FAIL"),title:"불합격",className:"text-rose-400 hover:text-rose-300",children:s.jsx(Eh,{size:15})})]})})]},S.id)),e.length===0&&s.jsx(qe,{colSpan:7,msg:"검사 기록이 없습니다."})]})]})}),c&&s.jsxs(Ye,{title:"검사 등록",onClose:()=>u(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(L,{label:"검사 유형",children:s.jsx("select",{className:"inp",value:c.inspectionType,onChange:S=>u({...c,inspectionType:S.target.value}),children:["IQC","IPQC","OQC"].map(S=>s.jsx("option",{children:S},S))})}),s.jsx(L,{label:"품목",children:s.jsxs("select",{className:"inp",value:c.itemCode,onChange:S=>u({...c,itemCode:S.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),h.map(S=>s.jsxs("option",{value:S.itemCode,children:[S.itemName," (",S.itemCode,")"]},S.id))]})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"LOT",children:s.jsx("input",{className:"inp",value:c.lotNo,onChange:S=>u({...c,lotNo:S.target.value})})}),s.jsx(L,{label:"검사 수량",children:s.jsx("input",{type:"number",className:"inp",value:c.qty,onChange:S=>u({...c,qty:Number(S.target.value)})})})]}),s.jsx(L,{label:"비고",children:s.jsx("input",{className:"inp",value:c.remark,onChange:S=>u({...c,remark:S.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>u(null),children:"취소"}),s.jsx(Y,{onClick:v,children:"저장"})]})]}),f&&s.jsxs(Ye,{title:"검사 판정 (AI 보조)",onClose:()=>d(null),children:[s.jsx("p",{className:"text-xs text-slate-400 mb-3",children:"측정값과 규격(LSL/USL/Target)을 입력하면 PASS/FAIL을 자동 판정합니다. FAIL 시 NCR이 자동 생성됩니다."}),s.jsxs("div",{className:"space-y-3",children:[s.jsx(L,{label:"측정값",children:s.jsx("input",{type:"number",step:"any",className:"inp",value:f.measured,onChange:S=>d({...f,measured:S.target.value})})}),s.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[s.jsx(L,{label:"LSL",children:s.jsx("input",{type:"number",step:"any",className:"inp",value:f.lsl,onChange:S=>d({...f,lsl:S.target.value})})}),s.jsx(L,{label:"Target",children:s.jsx("input",{type:"number",step:"any",className:"inp",value:f.target,onChange:S=>d({...f,target:S.target.value})})}),s.jsx(L,{label:"USL",children:s.jsx("input",{type:"number",step:"any",className:"inp",value:f.usl,onChange:S=>d({...f,usl:S.target.value})})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"불량 수량",children:s.jsx("input",{type:"number",className:"inp",value:f.defectQty,onChange:S=>d({...f,defectQty:S.target.value})})}),s.jsx(L,{label:"불량 코드",children:s.jsx("input",{className:"inp",value:f.defectCode,onChange:S=>d({...f,defectCode:S.target.value})})})]})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>d(null),children:"취소"}),s.jsxs(Y,{onClick:b,children:[s.jsx(Ln,{size:14})," 판정"]})]})]})]})}const Bme=["","IQC","IPQC","OQC"],Ume={specCode:"",itemCode:"",inspectionType:"IQC",characteristic:"",lsl:"",usl:"",target:"",unit:"",aql:"",items:[]};function qme(){const[e,t]=w.useState([]),[n,r]=w.useState(""),[a,i]=w.useState(null),[l,o]=w.useState([]),c=cr(),u=()=>A8({inspectionType:n}).then(v=>t(v||[])).catch(()=>t([]));w.useEffect(()=>{u()},[n]),w.useEffect(()=>{Qt().then(v=>o(v||[])).catch(()=>{})},[]);const f=()=>i({...Ume,_new:!0}),d=v=>i({...v,items:nj(v.items,[]),_new:!1}),h=async()=>{const{_new:v,id:g,items:b,...x}=a,O={...x,items:rj(b)};v?await E8(O):await C8(g,O),i(null),u()},m=async v=>{window.confirm("삭제하시겠습니까?")&&(await _8(v),u())},j=()=>i(v=>({...v,items:[...v.items,{name:"",lsl:"",usl:"",unit:""}]})),y=(v,g,b)=>i(x=>{const O=[...x.items];return O[v]={...O[v],[g]:b},{...x,items:O}}),p=v=>i(g=>({...g,items:g.items.filter((b,x)=>x!==v)}));return s.jsxs("div",{children:[s.jsx(ct,{title:"검사기준 (Spec)",subtitle:"규격 · LSL/USL/Target · AQL · 동적 검사항목(JSON)",actions:c&&s.jsxs(Y,{onClick:f,children:[s.jsx(lt,{size:16})," 검사기준"]})}),s.jsx("div",{className:"flex items-center gap-2 mb-4",children:s.jsx("select",{className:"inp w-32",value:n,onChange:v=>r(v.target.value),children:Bme.map(v=>s.jsx("option",{value:v,children:v||"전체 유형"},v))})}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"기준코드"}),s.jsx("th",{className:"text-left",children:"품목"}),s.jsx("th",{className:"text-left",children:"유형"}),s.jsx("th",{className:"text-left",children:"특성"}),s.jsx("th",{className:"text-right",children:"LSL"}),s.jsx("th",{className:"text-right",children:"Target"}),s.jsx("th",{className:"text-right",children:"USL"}),s.jsx("th",{className:"text-left",children:"AQL"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(v=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-1.5",children:[s.jsx(DT,{size:14,className:"text-brand"}),v.specCode]}),s.jsx("td",{className:"text-slate-300 text-xs",children:v.itemCode}),s.jsx("td",{children:s.jsx("span",{className:"px-2 py-0.5 rounded bg-brand/15 text-brand text-xs border border-brand/30",children:v.inspectionType})}),s.jsx("td",{className:"text-slate-400 text-xs",children:v.characteristic||"-"}),s.jsx("td",{className:"text-right text-slate-300",children:v.lsl??"-"}),s.jsx("td",{className:"text-right text-slate-300",children:v.target??"-"}),s.jsx("td",{className:"text-right text-slate-300",children:v.usl??"-"}),s.jsx("td",{className:"text-slate-400 text-xs",children:v.aql??"-"}),s.jsx("td",{className:"px-4",children:c&&s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.jsx("button",{onClick:()=>d(v),className:"text-xs text-slate-400 hover:text-brand",children:"편집"}),s.jsx("button",{onClick:()=>m(v.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(ir,{size:14})})]})})]},v.id)),e.length===0&&s.jsx(qe,{colSpan:9,msg:"검사기준이 없습니다."})]})]})}),a&&s.jsxs(Ye,{title:a._new?"검사기준 등록":"검사기준 편집",onClose:()=>i(null),wide:!0,children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"기준코드",children:s.jsx("input",{className:"inp",value:a.specCode,onChange:v=>i({...a,specCode:v.target.value})})}),s.jsx(L,{label:"검사유형",children:s.jsx("select",{className:"inp",value:a.inspectionType,onChange:v=>i({...a,inspectionType:v.target.value}),children:["IQC","IPQC","OQC"].map(v=>s.jsx("option",{children:v},v))})})]}),s.jsx(L,{label:"품목",children:s.jsxs("select",{className:"inp",value:a.itemCode,onChange:v=>i({...a,itemCode:v.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),l.map(v=>s.jsxs("option",{value:v.itemCode,children:[v.itemName," (",v.itemCode,")"]},v.id))]})}),s.jsx(L,{label:"특성",children:s.jsx("input",{className:"inp",value:a.characteristic,onChange:v=>i({...a,characteristic:v.target.value})})}),s.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[s.jsx(L,{label:"LSL",children:s.jsx("input",{type:"number",step:"any",className:"inp",value:a.lsl,onChange:v=>i({...a,lsl:v.target.value})})}),s.jsx(L,{label:"Target",children:s.jsx("input",{type:"number",step:"any",className:"inp",value:a.target,onChange:v=>i({...a,target:v.target.value})})}),s.jsx(L,{label:"USL",children:s.jsx("input",{type:"number",step:"any",className:"inp",value:a.usl,onChange:v=>i({...a,usl:v.target.value})})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"단위",children:s.jsx("input",{className:"inp",value:a.unit,onChange:v=>i({...a,unit:v.target.value})})}),s.jsx(L,{label:"AQL",children:s.jsx("input",{className:"inp",value:a.aql,onChange:v=>i({...a,aql:v.target.value})})})]})]}),s.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h3",{className:"text-sm font-semibold",children:"동적 검사항목"}),s.jsxs(Y,{size:"sm",variant:"ghost",onClick:j,children:[s.jsx(lt,{size:13})," 항목"]})]}),a.items.length===0&&s.jsx("p",{className:"text-center text-slate-500 text-xs py-6 border border-dashed border-edge rounded",children:"검사항목을 추가하세요."}),s.jsx("div",{className:"space-y-2 max-h-72 overflow-auto",children:a.items.map((v,g)=>s.jsxs("div",{className:"bg-panel border border-edge rounded p-2",children:[s.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[s.jsxs("span",{className:"text-[11px] text-brand",children:["항목 #",g+1]}),s.jsx("button",{onClick:()=>p(g),className:"text-rose-400 hover:text-rose-300",children:s.jsx(ir,{size:12})})]}),s.jsx("input",{placeholder:"항목명",className:"inp text-xs mb-1.5",value:v.name||"",onChange:b=>y(g,"name",b.target.value)}),s.jsxs("div",{className:"grid grid-cols-3 gap-1.5",children:[s.jsx("input",{placeholder:"LSL",className:"inp text-xs",value:v.lsl||"",onChange:b=>y(g,"lsl",b.target.value)}),s.jsx("input",{placeholder:"USL",className:"inp text-xs",value:v.usl||"",onChange:b=>y(g,"usl",b.target.value)}),s.jsx("input",{placeholder:"단위",className:"inp text-xs",value:v.unit||"",onChange:b=>y(g,"unit",b.target.value)})]})]},g))})]})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>i(null),children:"취소"}),s.jsx(Y,{onClick:h,children:"저장"})]})]})]})}const Hme=["","OPEN","REVIEW","DISPOSITIONED","CLOSED"],Fme=["","MINOR","MAJOR","CRITICAL"],Gme=["USE_AS_IS","REWORK","SCRAP","RETURN"],Kme={itemCode:"",lotNo:"",defectCode:"",severity:"MINOR",qty:0,description:""},Pv={OPEN:"REVIEW",REVIEW:"DISPOSITIONED",DISPOSITIONED:"CLOSED"};function Yme(){const[e,t]=w.useState([]),[n,r]=w.useState(null),[a,i]=w.useState(""),[l,o]=w.useState(""),[c,u]=w.useState(null),[f,d]=w.useState([]),h=Xt(),m=()=>{T8({status:a,severity:l}).then(x=>t(x||[])).catch(()=>t([])),k8().then(r).catch(()=>{})};w.useEffect(()=>{m()},[a,l]),w.useEffect(()=>{Qt().then(x=>d(x||[])).catch(()=>{})},[]);const j=()=>u({...Kme}),y=async()=>{await M8(c),u(null),m()},p=async x=>{const O=window.prompt(`처리 방식 (${Gme.join("/")})`,"REWORK");O&&(await P8(x.id,O),m())},v=async x=>{const O=Pv[x.status];O&&(await $8(x.id,O),m())},g=["OPEN","REVIEW","DISPOSITIONED","CLOSED"],b=x=>(n==null?void 0:n[x])??(n==null?void 0:n[x.toLowerCase()])??0;return s.jsxs("div",{children:[s.jsx(ct,{title:"부적합 NCR",subtitle:"부적합 보고 · 처리(USE_AS_IS/REWORK/SCRAP/RETURN) · CAPA 연계",actions:h&&s.jsxs(Y,{onClick:j,children:[s.jsx(lt,{size:16})," NCR 등록"]})}),s.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3 mb-5",children:g.map(x=>s.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4 text-center",children:[s.jsx("div",{className:"text-xs text-slate-400",children:x}),s.jsx("div",{className:"text-2xl font-bold mt-1 text-brand",children:b(x).toLocaleString()})]},x))}),s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx("select",{className:"inp w-36",value:a,onChange:x=>i(x.target.value),children:Hme.map(x=>s.jsx("option",{value:x,children:x||"전체 상태"},x))}),s.jsx("select",{className:"inp w-32",value:l,onChange:x=>o(x.target.value),children:Fme.map(x=>s.jsx("option",{value:x,children:x||"전체 심각도"},x))})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"NCR"}),s.jsx("th",{className:"text-left",children:"품목"}),s.jsx("th",{className:"text-left",children:"불량코드"}),s.jsx("th",{className:"text-left",children:"심각도"}),s.jsx("th",{className:"text-right",children:"수량"}),s.jsx("th",{className:"text-left",children:"상태"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(x=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-1.5",children:[s.jsx(Vr,{size:14,className:"text-rose-400"}),x.ncrNo||x.id]}),s.jsx("td",{className:"text-slate-300 text-xs",children:x.itemName||x.itemCode}),s.jsx("td",{className:"text-slate-400 text-xs",children:x.defectCode||"-"}),s.jsx("td",{children:s.jsx(st,{status:x.severity})}),s.jsx("td",{className:"text-right text-slate-300",children:Number(x.qty||0).toLocaleString()}),s.jsx("td",{children:s.jsx(st,{status:x.status})}),s.jsx("td",{className:"px-4",children:s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[h&&x.status==="REVIEW"&&s.jsx("button",{onClick:()=>p(x),className:"text-xs text-brand hover:underline",children:"처리방식"}),h&&Pv[x.status]&&s.jsxs("button",{onClick:()=>v(x),className:"text-xs text-brand hover:underline",children:["→ ",Pv[x.status]]})]})})]},x.id)),e.length===0&&s.jsx(qe,{colSpan:7,msg:"부적합이 없습니다."})]})]})}),c&&s.jsxs(Ye,{title:"부적합 NCR 등록",onClose:()=>u(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(L,{label:"품목",children:s.jsxs("select",{className:"inp",value:c.itemCode,onChange:x=>u({...c,itemCode:x.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),f.map(x=>s.jsxs("option",{value:x.itemCode,children:[x.itemName," (",x.itemCode,")"]},x.id))]})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"LOT",children:s.jsx("input",{className:"inp",value:c.lotNo,onChange:x=>u({...c,lotNo:x.target.value})})}),s.jsx(L,{label:"불량코드",children:s.jsx("input",{className:"inp",value:c.defectCode,onChange:x=>u({...c,defectCode:x.target.value})})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"심각도",children:s.jsx("select",{className:"inp",value:c.severity,onChange:x=>u({...c,severity:x.target.value}),children:["MINOR","MAJOR","CRITICAL"].map(x=>s.jsx("option",{children:x},x))})}),s.jsx(L,{label:"수량",children:s.jsx("input",{type:"number",className:"inp",value:c.qty,onChange:x=>u({...c,qty:Number(x.target.value)})})})]}),s.jsx(L,{label:"설명",children:s.jsx("textarea",{className:"inp",value:c.description,onChange:x=>u({...c,description:x.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>u(null),children:"취소"}),s.jsx(Y,{onClick:y,children:"저장"})]})]})]})}const Vme=["","OPEN","INPROGRESS","VERIFY","CLOSED"],Wme=["","CORRECTIVE","PREVENTIVE"],$v={OPEN:"INPROGRESS",INPROGRESS:"VERIFY",VERIFY:"CLOSED"},Xme={ncrNo:"",title:"",capaType:"CORRECTIVE",rootCause:"",actionPlan:"",owner:"",dueDate:""};function Qme(){const[e,t]=w.useState([]),[n,r]=w.useState(""),[a,i]=w.useState(""),[l,o]=w.useState(null),c=Xt(),u=()=>R8({status:n,capaType:a}).then(m=>t(m||[])).catch(()=>t([]));w.useEffect(()=>{u()},[n,a]);const f=()=>o({...Xme,_new:!0}),d=async()=>{const{_new:m,id:j,...y}=l;m?await D8(y):await L8(j,y),o(null),u()},h=async m=>{const j=$v[m.status];if(!j)return;let y;j==="CLOSED"&&(y=window.prompt("효과성 평가 (예: EFFECTIVE/INEFFECTIVE)","EFFECTIVE")||void 0),await z8(m.id,{status:j,effectiveness:y}),u()};return s.jsxs("div",{children:[s.jsx(ct,{title:"시정조치 CAPA",subtitle:"시정·예방조치(8D) · 근본원인 · 조치계획 · 효과성 검증",actions:c&&s.jsxs(Y,{onClick:f,children:[s.jsx(lt,{size:16})," CAPA 등록"]})}),s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx("select",{className:"inp w-36",value:n,onChange:m=>r(m.target.value),children:Vme.map(m=>s.jsx("option",{value:m,children:m||"전체 상태"},m))}),s.jsx("select",{className:"inp w-40",value:a,onChange:m=>i(m.target.value),children:Wme.map(m=>s.jsx("option",{value:m,children:m||"전체 유형"},m))})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"CAPA"}),s.jsx("th",{className:"text-left",children:"제목"}),s.jsx("th",{className:"text-left",children:"유형"}),s.jsx("th",{className:"text-left",children:"NCR"}),s.jsx("th",{className:"text-left",children:"담당"}),s.jsx("th",{className:"text-left",children:"기한"}),s.jsx("th",{className:"text-left",children:"상태"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(m=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-1.5",children:[s.jsx(ET,{size:14,className:"text-brand"}),m.capaNo||m.id]}),s.jsx("td",{className:"text-slate-300 text-xs max-w-[220px] truncate",children:m.title}),s.jsx("td",{children:s.jsx("span",{className:"px-2 py-0.5 rounded bg-brand/15 text-brand text-xs border border-brand/30",children:m.capaType})}),s.jsx("td",{className:"text-slate-400 text-xs",children:m.ncrNo||"-"}),s.jsx("td",{className:"text-slate-400 text-xs",children:m.owner||"-"}),s.jsx("td",{className:"text-slate-400 text-xs",children:m.dueDate||"-"}),s.jsx("td",{children:s.jsx(st,{status:m.status})}),s.jsx("td",{className:"px-4",children:s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[c&&s.jsx("button",{onClick:()=>o({...m,_new:!1}),className:"text-xs text-slate-400 hover:text-brand",children:"편집"}),c&&$v[m.status]&&s.jsxs("button",{onClick:()=>h(m),className:"text-xs text-brand hover:underline",children:["→ ",$v[m.status]]})]})})]},m.id)),e.length===0&&s.jsx(qe,{colSpan:8,msg:"CAPA가 없습니다."})]})]})}),l&&s.jsxs(Ye,{title:l._new?"CAPA 등록":"CAPA 편집",onClose:()=>o(null),wide:!0,children:[s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"제목",children:s.jsx("input",{className:"inp",value:l.title,onChange:m=>o({...l,title:m.target.value})})}),s.jsx(L,{label:"유형",children:s.jsx("select",{className:"inp",value:l.capaType,onChange:m=>o({...l,capaType:m.target.value}),children:["CORRECTIVE","PREVENTIVE"].map(m=>s.jsx("option",{children:m},m))})})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[s.jsx(L,{label:"연계 NCR",children:s.jsx("input",{className:"inp",value:l.ncrNo,onChange:m=>o({...l,ncrNo:m.target.value})})}),s.jsx(L,{label:"담당자",children:s.jsx("input",{className:"inp",value:l.owner,onChange:m=>o({...l,owner:m.target.value})})}),s.jsx(L,{label:"기한",children:s.jsx("input",{type:"date",className:"inp",value:l.dueDate||"",onChange:m=>o({...l,dueDate:m.target.value})})})]}),s.jsx(L,{label:"근본 원인 (Root Cause)",children:s.jsx("textarea",{className:"inp",value:l.rootCause,onChange:m=>o({...l,rootCause:m.target.value})})}),s.jsx(L,{label:"조치 계획 (Action Plan)",children:s.jsx("textarea",{className:"inp",value:l.actionPlan,onChange:m=>o({...l,actionPlan:m.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>o(null),children:"취소"}),s.jsx(Y,{onClick:d,children:"저장"})]})]})]})}const jd={fontSize:11,fill:"#94a3b8"},AA={background:"#0f172a",border:"1px solid #26304a",borderRadius:8,fontSize:12,color:"#e2e8f0"},Zme={chartCode:"",itemCode:"",characteristic:"",subgroupNo:1,values:""};function Jme(){const[e,t]=w.useState([]),[n,r]=w.useState(""),[a,i]=w.useState([]),[l,o]=w.useState(null),[c,u]=w.useState(""),[f,d]=w.useState(""),[h,m]=w.useState(null),[j,y]=w.useState([]),p=Xt(),v=()=>I8().then(A=>{const C=A||[];t(C),!n&&C.length&&r(C[0].chartCode)}).catch(()=>t([]));w.useEffect(()=>{v(),Qt().then(A=>y(A||[])).catch(()=>{})},[]);const g=()=>{n&&(B8({chartCode:n,limit:50}).then(A=>i(Array.isArray(A)?A:[])).catch(()=>i([])),U8({chartCode:n,lsl:c===""?void 0:Number(c),usl:f===""?void 0:Number(f)}).then(o).catch(()=>o(null)))};w.useEffect(()=>{g()},[n]);const b=()=>m({...Zme,chartCode:n}),x=async()=>{const A=h.values.split(/[,\s]+/).map(C=>Number(C)).filter(C=>!isNaN(C));await q8({chartCode:h.chartCode,itemCode:h.itemCode,characteristic:h.characteristic,subgroupNo:Number(h.subgroupNo),values:A}),m(null),g()},O=a.map((A,C)=>({name:A.subgroupNo??C+1,xbar:Number(A.mean??A.xbar??A.average??0),range:Number(A.range??A.r??0)})),S=l||{},N=Array.isArray(S.violations)?S.violations:[];return s.jsxs("div",{children:[s.jsx(ct,{title:"SPC 관리도",subtitle:"Xbar-R 관리한계 · Cp/Cpk 공정능력 · Western Electric 이상감지",actions:p&&n&&s.jsxs(Y,{onClick:b,children:[s.jsx(lt,{size:16})," 샘플 추가"]})}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-5",children:[s.jsxs("select",{className:"inp w-56",value:n,onChange:A=>r(A.target.value),children:[s.jsx("option",{value:"",children:"관리도 선택"}),e.map(A=>s.jsxs("option",{value:A.chartCode,children:[A.chartCode," · ",A.characteristic||A.itemCode]},A.chartCode||A.id))]}),s.jsx("input",{className:"inp w-24",placeholder:"LSL",value:c,onChange:A=>u(A.target.value)}),s.jsx("input",{className:"inp w-24",placeholder:"USL",value:f,onChange:A=>d(A.target.value)}),s.jsx(Y,{variant:"ghost",onClick:g,children:"분석"})]}),n?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-5 gap-3 mb-5",children:[s.jsx(Sd,{label:"X̄ (전체평균)",value:wd(S.xbar)}),s.jsx(Sd,{label:"R̄ (평균범위)",value:wd(S.rbar)}),s.jsx(Sd,{label:"Cp",value:wd(S.cp),color:"text-sky-400"}),s.jsx(Sd,{label:"Cpk",value:wd(S.cpk),color:"text-accent"}),s.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4",children:[s.jsx("div",{className:"text-xs text-slate-400",children:"공정능력 등급"}),s.jsx("div",{className:"mt-2",children:s.jsx(st,{status:S.capabilityGrade||"-"})})]})]}),S.anomaly&&s.jsxs("div",{className:"bg-rose-500/10 border border-rose-500/40 text-rose-300 text-sm rounded-lg px-4 py-2.5 mb-4 flex items-center gap-2",children:[s.jsx(Vr,{size:16})," 이상 패턴 감지됨 (Western Electric Rules)",N.length?` — 위반 ${N.length}건`:""]}),s.jsx(ge,{title:"X̄ 관리도 (Xbar Chart)",icon:s.jsx(H0,{size:15}),className:"mb-4",children:O.length===0?s.jsx(qe,{msg:"샘플이 없습니다."}):s.jsx(xl,{width:"100%",height:280,children:s.jsxs(jA,{data:O,children:[s.jsx(Rl,{strokeDasharray:"3 3",stroke:"#26304a"}),s.jsx(Or,{dataKey:"name",tick:jd}),s.jsx(Nr,{tick:jd,domain:["auto","auto"]}),s.jsx(en,{contentStyle:AA}),s.jsx(er,{wrapperStyle:{fontSize:11}}),S.xbarUcl!=null&&s.jsx(fa,{y:Number(S.xbarUcl),stroke:"#ef4444",strokeDasharray:"4 4",label:{value:"UCL",fontSize:10,fill:"#ef4444",position:"right"}}),S.xbar!=null&&s.jsx(fa,{y:Number(S.xbar),stroke:"#3ddc97",label:{value:"CL",fontSize:10,fill:"#3ddc97",position:"right"}}),S.xbarLcl!=null&&s.jsx(fa,{y:Number(S.xbarLcl),stroke:"#ef4444",strokeDasharray:"4 4",label:{value:"LCL",fontSize:10,fill:"#ef4444",position:"right"}}),s.jsx(Mi,{type:"monotone",dataKey:"xbar",name:"X̄",stroke:"#00a0c8",strokeWidth:2,dot:{r:3}})]})})}),s.jsx(ge,{title:"R 관리도 (Range Chart)",children:O.length===0?s.jsx(qe,{msg:"샘플이 없습니다."}):s.jsx(xl,{width:"100%",height:240,children:s.jsxs(jA,{data:O,children:[s.jsx(Rl,{strokeDasharray:"3 3",stroke:"#26304a"}),s.jsx(Or,{dataKey:"name",tick:jd}),s.jsx(Nr,{tick:jd,domain:["auto","auto"]}),s.jsx(en,{contentStyle:AA}),s.jsx(er,{wrapperStyle:{fontSize:11}}),S.rUcl!=null&&s.jsx(fa,{y:Number(S.rUcl),stroke:"#ef4444",strokeDasharray:"4 4",label:{value:"UCL",fontSize:10,fill:"#ef4444",position:"right"}}),S.rbar!=null&&s.jsx(fa,{y:Number(S.rbar),stroke:"#3ddc97",label:{value:"R̄",fontSize:10,fill:"#3ddc97",position:"right"}}),S.rLcl!=null&&s.jsx(fa,{y:Number(S.rLcl),stroke:"#ef4444",strokeDasharray:"4 4",label:{value:"LCL",fontSize:10,fill:"#ef4444",position:"right"}}),s.jsx(Mi,{type:"monotone",dataKey:"range",name:"R",stroke:"#f59e0b",strokeWidth:2,dot:{r:3}})]})})})]}):s.jsx(qe,{msg:"관리도를 선택하세요."}),h&&s.jsxs(Ye,{title:"SPC 샘플 추가",onClose:()=>m(null),children:[s.jsx("p",{className:"text-xs text-slate-400 mb-3",children:"서브그룹 측정값을 입력하면 평균/범위가 자동 계산됩니다."}),s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"관리도 코드",children:s.jsx("input",{className:"inp",value:h.chartCode,onChange:A=>m({...h,chartCode:A.target.value})})}),s.jsx(L,{label:"서브그룹 번호",children:s.jsx("input",{type:"number",className:"inp",value:h.subgroupNo,onChange:A=>m({...h,subgroupNo:A.target.value})})})]}),s.jsx(L,{label:"품목",children:s.jsxs("select",{className:"inp",value:h.itemCode,onChange:A=>m({...h,itemCode:A.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),j.map(A=>s.jsxs("option",{value:A.itemCode,children:[A.itemName," (",A.itemCode,")"]},A.id))]})}),s.jsx(L,{label:"특성",children:s.jsx("input",{className:"inp",value:h.characteristic,onChange:A=>m({...h,characteristic:A.target.value})})}),s.jsx(L,{label:"측정값 (콤마/공백 구분)",hint:"예: 10.1, 10.0, 9.9, 10.2, 10.0",children:s.jsx("input",{className:"inp",value:h.values,onChange:A=>m({...h,values:A.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>m(null),children:"취소"}),s.jsxs(Y,{onClick:x,children:[s.jsx(Ln,{size:14})," 추가"]})]})]})]})}function Sd({label:e,value:t,color:n="text-slate-200"}){return s.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4",children:[s.jsx("div",{className:"text-xs text-slate-400",children:e}),s.jsx("div",{className:`text-2xl font-bold mt-1 ${n}`,children:t})]})}function wd(e){return e==null?"-":Number(e).toFixed(3)}const eye=["","COA","MSDS","TEST_REPORT"],tye={certType:"COA",itemCode:"",lotNo:"",partnerCode:"",content:""};function nye(){const[e,t]=w.useState([]),[n,r]=w.useState(""),[a,i]=w.useState(null),[l,o]=w.useState(null),[c,u]=w.useState([]),f=Xt(),d=()=>H8({certType:n}).then(y=>t(y||[])).catch(()=>t([]));w.useEffect(()=>{d()},[n]),w.useEffect(()=>{Qt().then(y=>u(y||[])).catch(()=>{})},[]);const h=()=>i({...tye}),m=async()=>{await G8(a),i(null),d()},j=async y=>o(await F8(y));return s.jsxs("div",{children:[s.jsx(ct,{title:"성적서 (Certificate)",subtitle:"COA · MSDS · 시험성적서 (content JSON)",actions:f&&s.jsxs(Y,{onClick:h,children:[s.jsx(lt,{size:16})," 성적서 발행"]})}),s.jsx("div",{className:"flex items-center gap-2 mb-4",children:s.jsx("select",{className:"inp w-40",value:n,onChange:y=>r(y.target.value),children:eye.map(y=>s.jsx("option",{value:y,children:y||"전체 유형"},y))})}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"성적서번호"}),s.jsx("th",{className:"text-left",children:"유형"}),s.jsx("th",{className:"text-left",children:"품목"}),s.jsx("th",{className:"text-left",children:"LOT"}),s.jsx("th",{className:"text-left",children:"거래처"}),s.jsx("th",{className:"text-left",children:"발행일"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(y=>s.jsxs("tr",{className:"border-t border-edge/50 cursor-pointer hover:bg-panel/40",onClick:()=>j(y.id),children:[s.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-1.5",children:[s.jsx(NT,{size:14,className:"text-brand"}),y.certNo||y.id]}),s.jsx("td",{children:s.jsx("span",{className:"px-2 py-0.5 rounded bg-brand/15 text-brand text-xs border border-brand/30",children:y.certType})}),s.jsx("td",{className:"text-slate-300 text-xs",children:y.itemName||y.itemCode}),s.jsx("td",{className:"text-slate-400 font-mono text-xs",children:y.lotNo||"-"}),s.jsx("td",{className:"text-slate-400 text-xs",children:y.partnerCode||"-"}),s.jsx("td",{className:"text-slate-500 text-xs",children:y.createdAt?new Date(y.createdAt).toLocaleDateString("ko-KR"):"-"}),s.jsx("td",{className:"px-4 text-right",onClick:p=>p.stopPropagation(),children:s.jsx("button",{onClick:()=>j(y.id),className:"text-slate-400 hover:text-brand",children:s.jsx(zL,{size:15})})})]},y.id)),e.length===0&&s.jsx(qe,{colSpan:7,msg:"성적서가 없습니다."})]})]})}),a&&s.jsxs(Ye,{title:"성적서 발행",onClose:()=>i(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(L,{label:"유형",children:s.jsx("select",{className:"inp",value:a.certType,onChange:y=>i({...a,certType:y.target.value}),children:["COA","MSDS","TEST_REPORT"].map(y=>s.jsx("option",{children:y},y))})}),s.jsx(L,{label:"품목",children:s.jsxs("select",{className:"inp",value:a.itemCode,onChange:y=>i({...a,itemCode:y.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),c.map(y=>s.jsxs("option",{value:y.itemCode,children:[y.itemName," (",y.itemCode,")"]},y.id))]})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"LOT",children:s.jsx("input",{className:"inp",value:a.lotNo,onChange:y=>i({...a,lotNo:y.target.value})})}),s.jsx(L,{label:"거래처",children:s.jsx("input",{className:"inp",value:a.partnerCode,onChange:y=>i({...a,partnerCode:y.target.value})})})]}),s.jsx(L,{label:"내용 (JSON)",hint:'예: {"검사항목":"인장강도","결과":"450MPa","판정":"합격"}',children:s.jsx("textarea",{className:"inp font-mono text-xs",rows:5,value:a.content,onChange:y=>i({...a,content:y.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>i(null),children:"취소"}),s.jsx(Y,{onClick:m,children:"발행"})]})]}),l&&s.jsxs(Ye,{title:`성적서 — ${l.certNo||l.id}`,onClose:()=>o(null),wide:!0,children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3 text-sm mb-4",children:[s.jsx(Od,{label:"유형",value:l.certType}),s.jsx(Od,{label:"품목",value:`${l.itemName||""} (${l.itemCode})`}),s.jsx(Od,{label:"LOT",value:l.lotNo||"-"}),s.jsx(Od,{label:"거래처",value:l.partnerCode||"-"})]}),s.jsxs("div",{className:"bg-ink border border-edge rounded p-3",children:[s.jsx("div",{className:"text-[11px] text-slate-500 mb-1",children:"내용"}),s.jsx("pre",{className:"text-xs text-slate-300 whitespace-pre-wrap",children:rj(nj(l.content,l.content))||"-"})]})]})]})}function Od({label:e,value:t}){return s.jsxs("div",{className:"bg-panel border border-edge rounded-lg p-2.5",children:[s.jsx("div",{className:"text-[11px] text-slate-500 mb-0.5",children:e}),s.jsx("div",{className:"text-slate-200",children:t})]})}const rye=["","RAW","SEMI","PRODUCT","SUBSIDIARY"],aye=["","ACTIVE","INACTIVE"],iye={itemCode:"",itemName:"",itemType:"PRODUCT",unit:"EA",barcode:"",spec:"",safetyStock:0,warehouseCode:"",attributes:"",status:"ACTIVE"};function sye(){const[e,t]=w.useState([]),[n,r]=w.useState(""),[a,i]=w.useState(""),[l,o]=w.useState(""),[c,u]=w.useState(null),f=cr(),d=()=>Qt({itemType:n,status:a,keyword:l}).then(p=>t(p||[])).catch(()=>t([]));w.useEffect(()=>{d()},[n,a]);const h=()=>u({...iye,_new:!0}),m=p=>u({...p,attributes:rj(nj(p.attributes,{})),_new:!1}),j=async()=>{const{_new:p,id:v,...g}=c;p?await K8(g):await Y8(v,g),u(null),d()},y=async p=>{window.confirm("삭제하시겠습니까?")&&(await V8(p),d())};return s.jsxs("div",{children:[s.jsx(ct,{title:"품목",subtitle:"자재 · 반제품 · 제품 · 부자재 · 바코드 · 안전재고 · 속성(JSON)",actions:f&&s.jsxs(Y,{onClick:h,children:[s.jsx(lt,{size:16})," 품목"]})}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[s.jsx("select",{className:"inp w-36",value:n,onChange:p=>r(p.target.value),children:rye.map(p=>s.jsx("option",{value:p,children:p||"전체 유형"},p))}),s.jsx("select",{className:"inp w-32",value:a,onChange:p=>i(p.target.value),children:aye.map(p=>s.jsx("option",{value:p,children:p||"전체 상태"},p))}),s.jsx("input",{value:l,onChange:p=>o(p.target.value),onKeyDown:p=>p.key==="Enter"&&d(),placeholder:"품목 검색",className:"inp w-52"}),s.jsx(Y,{variant:"ghost",onClick:d,children:"검색"})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"코드"}),s.jsx("th",{className:"text-left",children:"품목명"}),s.jsx("th",{className:"text-left",children:"유형"}),s.jsx("th",{className:"text-left",children:"단위"}),s.jsx("th",{className:"text-left",children:"바코드"}),s.jsx("th",{className:"text-right",children:"안전재고"}),s.jsx("th",{className:"text-left",children:"상태"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(p=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-1.5",children:[s.jsx(kT,{size:14,className:"text-brand"}),p.itemCode]}),s.jsx("td",{className:"text-slate-300",children:p.itemName}),s.jsx("td",{children:s.jsx("span",{className:"px-2 py-0.5 rounded bg-brand/15 text-brand text-xs border border-brand/30",children:p.itemType})}),s.jsx("td",{className:"text-slate-400 text-xs",children:p.unit}),s.jsx("td",{className:"text-slate-400 font-mono text-xs",children:p.barcode||"-"}),s.jsx("td",{className:"text-right text-slate-300",children:Number(p.safetyStock||0).toLocaleString()}),s.jsx("td",{children:s.jsx(st,{status:p.status})}),s.jsx("td",{className:"px-4",children:f&&s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.jsx("button",{onClick:()=>m(p),className:"text-xs text-slate-400 hover:text-brand",children:"편집"}),s.jsx("button",{onClick:()=>y(p.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(ir,{size:14})})]})})]},p.id)),e.length===0&&s.jsx(qe,{colSpan:8,msg:"품목이 없습니다."})]})]})}),c&&s.jsxs(Ye,{title:c._new?"품목 등록":"품목 편집",onClose:()=>u(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"품목코드",children:s.jsx("input",{className:"inp",value:c.itemCode,onChange:p=>u({...c,itemCode:p.target.value}),disabled:!c._new})}),s.jsx(L,{label:"품목명",children:s.jsx("input",{className:"inp",value:c.itemName,onChange:p=>u({...c,itemName:p.target.value})})})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[s.jsx(L,{label:"유형",children:s.jsx("select",{className:"inp",value:c.itemType,onChange:p=>u({...c,itemType:p.target.value}),children:["RAW","SEMI","PRODUCT","SUBSIDIARY"].map(p=>s.jsx("option",{children:p},p))})}),s.jsx(L,{label:"단위",children:s.jsx("input",{className:"inp",value:c.unit,onChange:p=>u({...c,unit:p.target.value})})}),s.jsx(L,{label:"안전재고",children:s.jsx("input",{type:"number",className:"inp",value:c.safetyStock,onChange:p=>u({...c,safetyStock:Number(p.target.value)})})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"바코드",children:s.jsx("input",{className:"inp",value:c.barcode,onChange:p=>u({...c,barcode:p.target.value})})}),s.jsx(L,{label:"기본 창고",children:s.jsx("input",{className:"inp",value:c.warehouseCode,onChange:p=>u({...c,warehouseCode:p.target.value})})})]}),s.jsx(L,{label:"규격(spec)",children:s.jsx("input",{className:"inp",value:c.spec,onChange:p=>u({...c,spec:p.target.value})})}),s.jsx(L,{label:"속성 (JSON)",hint:'예: {"color":"red","grade":"A"}',children:s.jsx("textarea",{className:"inp font-mono text-xs",rows:3,value:c.attributes,onChange:p=>u({...c,attributes:p.target.value})})}),!c._new&&s.jsx(L,{label:"상태",children:s.jsx("select",{className:"inp",value:c.status,onChange:p=>u({...c,status:p.target.value}),children:["ACTIVE","INACTIVE"].map(p=>s.jsx("option",{children:p},p))})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>u(null),children:"취소"}),s.jsx(Y,{onClick:j,children:"저장"})]})]})]})}const lye={parentItemCode:"",childItemCode:"",qtyPer:1,seq:1,lossRate:0,bomVersion:"v1"};function oye(e,t){const n={};e.forEach(a=>{(n[a.parentItemCode]=n[a.parentItemCode]||[]).push(a)});const r=(a,i,l)=>l.has(a)||i>8?[]:(l.add(a),(n[a]||[]).flatMap(o=>[{...o,depth:i},...r(o.childItemCode,i+1,new Set(l))]));return r(t,0,new Set)}function cye(){const[e,t]=w.useState(""),[n,r]=w.useState(""),[a,i]=w.useState([]),[l,o]=w.useState([]),[c,u]=w.useState(null),[f,d]=w.useState([]),h=cr(),m=()=>X8().then(b=>o(Array.isArray(b)?b:[])).catch(()=>o([])),j=()=>{if(!e){i([]);return}W8({parentItemCode:e,bomVersion:n}).then(b=>{const x=Array.isArray(b)?b:(b==null?void 0:b.rows)||(b==null?void 0:b.nodes)||[];i(x.some(O=>O.depth!=null)?x:oye(x,e))}).catch(()=>i([]))};w.useEffect(()=>{m(),Qt().then(b=>d(b||[])).catch(()=>{})},[]),w.useEffect(()=>{j()},[e,n]);const y=()=>u({...lye,parentItemCode:e,_new:!0}),p=async()=>{const{_new:b,id:x,...O}=c;b?await Q8(O):await Z8(x,O),u(null),m(),j()},v=async b=>{window.confirm("삭제하시겠습니까?")&&(await J8(b),m(),j())},g=f.filter(b=>["PRODUCT","SEMI"].includes(b.itemType));return s.jsxs("div",{children:[s.jsx(ct,{title:"BOM",subtitle:"자재 구성(Bill of Materials) · 소요량 · 버전 · 트리 전개",actions:h&&s.jsxs(Y,{onClick:y,children:[s.jsx(lt,{size:16})," BOM 행"]})}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-5",children:[s.jsxs("select",{className:"inp w-56",value:e,onChange:b=>t(b.target.value),children:[s.jsx("option",{value:"",children:"상위 품목 선택"}),g.map(b=>s.jsxs("option",{value:b.itemCode,children:[b.itemName," (",b.itemCode,")"]},b.id))]}),s.jsx("input",{className:"inp w-28",placeholder:"버전",value:n,onChange:b=>r(b.target.value)}),s.jsxs(Y,{variant:"ghost",onClick:j,children:[s.jsx(Yo,{size:15})," 전개"]})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden mb-6",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"구성 (트리)"}),s.jsx("th",{className:"text-left",children:"하위 품목"}),s.jsx("th",{className:"text-right",children:"소요량"}),s.jsx("th",{className:"text-right",children:"손실률"}),s.jsx("th",{className:"text-left",children:"버전"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[a.map((b,x)=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsx("td",{className:"py-2.5 px-4",style:{paddingLeft:16+(b.depth||0)*20},children:s.jsxs("span",{className:"flex items-center gap-1 text-slate-300",children:[s.jsx(wT,{size:12,className:"text-brand"}),b.childItemName||b.childItemCode]})}),s.jsx("td",{className:"text-slate-400 font-mono text-xs",children:b.childItemCode}),s.jsx("td",{className:"text-right text-slate-300",children:b.qtyPer}),s.jsx("td",{className:"text-right text-slate-400 text-xs",children:b.lossRate!=null?`${b.lossRate}%`:"-"}),s.jsx("td",{className:"text-slate-400 text-xs",children:b.bomVersion||"-"}),s.jsx("td",{className:"px-4",children:h&&s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.jsx("button",{onClick:()=>u({...b,_new:!1}),className:"text-xs text-slate-400 hover:text-brand",children:"편집"}),s.jsx("button",{onClick:()=>v(b.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(ir,{size:14})})]})})]},b.id??x)),a.length===0&&s.jsx(qe,{colSpan:6,msg:e?"구성이 없습니다.":"상위 품목을 선택하면 BOM 트리가 전개됩니다."})]})]})}),s.jsxs("h3",{className:"text-sm font-semibold mb-2 flex items-center gap-1.5",children:[s.jsx(CT,{size:15,className:"text-brand"})," 전체 BOM"]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"상위"}),s.jsx("th",{className:"text-left",children:"하위"}),s.jsx("th",{className:"text-right",children:"소요량"}),s.jsx("th",{className:"text-left",children:"버전"})]})}),s.jsxs("tbody",{children:[l.slice(0,100).map(b=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsx("td",{className:"py-2.5 px-4 text-slate-300",children:b.parentItemCode}),s.jsx("td",{className:"text-slate-400",children:b.childItemCode}),s.jsx("td",{className:"text-right text-slate-300",children:b.qtyPer}),s.jsx("td",{className:"text-slate-400 text-xs",children:b.bomVersion||"-"})]},b.id)),l.length===0&&s.jsx(qe,{colSpan:4,msg:"BOM이 없습니다."})]})]})}),c&&s.jsxs(Ye,{title:c._new?"BOM 행 추가":"BOM 행 편집",onClose:()=>u(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(L,{label:"상위 품목",children:s.jsxs("select",{className:"inp",value:c.parentItemCode,onChange:b=>u({...c,parentItemCode:b.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),g.map(b=>s.jsxs("option",{value:b.itemCode,children:[b.itemName," (",b.itemCode,")"]},b.id))]})}),s.jsx(L,{label:"하위 품목",children:s.jsxs("select",{className:"inp",value:c.childItemCode,onChange:b=>u({...c,childItemCode:b.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),f.map(b=>s.jsxs("option",{value:b.itemCode,children:[b.itemName," (",b.itemCode,")"]},b.id))]})}),s.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[s.jsx(L,{label:"소요량",children:s.jsx("input",{type:"number",step:"any",className:"inp",value:c.qtyPer,onChange:b=>u({...c,qtyPer:Number(b.target.value)})})}),s.jsx(L,{label:"순서",children:s.jsx("input",{type:"number",className:"inp",value:c.seq,onChange:b=>u({...c,seq:Number(b.target.value)})})}),s.jsx(L,{label:"손실률(%)",children:s.jsx("input",{type:"number",step:"any",className:"inp",value:c.lossRate,onChange:b=>u({...c,lossRate:Number(b.target.value)})})})]}),s.jsx(L,{label:"버전",children:s.jsx("input",{className:"inp",value:c.bomVersion,onChange:b=>u({...c,bomVersion:b.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>u(null),children:"취소"}),s.jsx(Y,{onClick:p,children:"저장"})]})]})]})}const uye={itemCode:"",opSeq:1,processCode:"",processName:"",equipmentCode:"",stdTimeMin:0};function fye(){const[e,t]=w.useState([]),[n,r]=w.useState(""),[a,i]=w.useState(null),[l,o]=w.useState([]),[c,u]=w.useState([]),f=cr(),d=()=>eB(n).then(p=>t(p||[])).catch(()=>t([]));w.useEffect(()=>{d()},[n]),w.useEffect(()=>{Qt({itemType:"PRODUCT"}).then(p=>o(p||[])).catch(()=>{}),X0().then(p=>u(p||[])).catch(()=>{})},[]);const h=()=>i({...uye,itemCode:n,_new:!0}),m=async()=>{const{_new:p,id:v,...g}=a;p?await tB(g):await nB(v,g),i(null),d()},j=async p=>{window.confirm("삭제하시겠습니까?")&&(await rB(p),d())},y=[...e].sort((p,v)=>(p.opSeq||0)-(v.opSeq||0));return s.jsxs("div",{children:[s.jsx(ct,{title:"라우팅",subtitle:"공정 순서 · 표준시간 · 설비 매핑",actions:f&&s.jsxs(Y,{onClick:h,children:[s.jsx(lt,{size:16})," 공정"]})}),s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsxs("select",{className:"inp w-56",value:n,onChange:p=>r(p.target.value),children:[s.jsx("option",{value:"",children:"전체 / 품목 선택"}),l.map(p=>s.jsxs("option",{value:p.itemCode,children:[p.itemName," (",p.itemCode,")"]},p.id))]}),s.jsxs(Y,{variant:"ghost",onClick:d,children:[s.jsx(Yo,{size:15})," 조회"]})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"순서"}),s.jsx("th",{className:"text-left",children:"품목"}),s.jsx("th",{className:"text-left",children:"공정코드"}),s.jsx("th",{className:"text-left",children:"공정명"}),s.jsx("th",{className:"text-left",children:"설비"}),s.jsx("th",{className:"text-right",children:"표준시간(분)"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[y.map(p=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-1.5",children:[s.jsx(RT,{size:14,className:"text-brand"}),p.opSeq]}),s.jsx("td",{className:"text-slate-300 text-xs",children:p.itemCode}),s.jsx("td",{className:"text-slate-400 text-xs",children:p.processCode}),s.jsx("td",{className:"text-slate-300 text-xs",children:p.processName||"-"}),s.jsx("td",{className:"text-slate-400 text-xs",children:p.equipmentCode||"-"}),s.jsx("td",{className:"text-right text-slate-300",children:p.stdTimeMin??"-"}),s.jsx("td",{className:"px-4",children:f&&s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.jsx("button",{onClick:()=>i({...p,_new:!1}),className:"text-xs text-slate-400 hover:text-brand",children:"편집"}),s.jsx("button",{onClick:()=>j(p.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(ir,{size:14})})]})})]},p.id)),y.length===0&&s.jsx(qe,{colSpan:7,msg:"라우팅이 없습니다."})]})]})}),a&&s.jsxs(Ye,{title:a._new?"공정 추가":"공정 편집",onClose:()=>i(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(L,{label:"품목",children:s.jsxs("select",{className:"inp",value:a.itemCode,onChange:p=>i({...a,itemCode:p.target.value}),children:[s.jsx("option",{value:"",children:"선택"}),l.map(p=>s.jsxs("option",{value:p.itemCode,children:[p.itemName," (",p.itemCode,")"]},p.id))]})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"공정순서",children:s.jsx("input",{type:"number",className:"inp",value:a.opSeq,onChange:p=>i({...a,opSeq:Number(p.target.value)})})}),s.jsx(L,{label:"표준시간(분)",children:s.jsx("input",{type:"number",step:"any",className:"inp",value:a.stdTimeMin,onChange:p=>i({...a,stdTimeMin:Number(p.target.value)})})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"공정코드",children:s.jsx("input",{className:"inp",value:a.processCode,onChange:p=>i({...a,processCode:p.target.value})})}),s.jsx(L,{label:"공정명",children:s.jsx("input",{className:"inp",value:a.processName,onChange:p=>i({...a,processName:p.target.value})})})]}),s.jsx(L,{label:"설비",children:s.jsxs("select",{className:"inp",value:a.equipmentCode,onChange:p=>i({...a,equipmentCode:p.target.value}),children:[s.jsx("option",{value:"",children:"미지정"}),c.map(p=>s.jsx("option",{value:p.equipmentCode,children:p.equipmentName||p.equipmentCode},p.id))]})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>i(null),children:"취소"}),s.jsx(Y,{onClick:m,children:"저장"})]})]})]})}const dye=["","SUPPLIER","CUSTOMER","BOTH"],hye=["","ACTIVE","INACTIVE"],pye={partnerCode:"",partnerName:"",partnerType:"SUPPLIER",contactName:"",contactPhone:"",contactEmail:"",address:"",status:"ACTIVE"};function mye(){const[e,t]=w.useState([]),[n,r]=w.useState(""),[a,i]=w.useState(""),[l,o]=w.useState(""),[c,u]=w.useState(null),f=cr(),d=()=>Q0({partnerType:n,status:a,keyword:l}).then(p=>t(p||[])).catch(()=>t([]));w.useEffect(()=>{d()},[n,a]);const h=()=>u({...pye,_new:!0}),m=p=>u({...p,contactPhone:"",contactEmail:"",_new:!1}),j=async()=>{const{_new:p,id:v,...g}=c;p?await iB(g):await sB(v,g),u(null),d()},y=async p=>{window.confirm("삭제하시겠습니까?")&&(await lB(p),d())};return s.jsxs("div",{children:[s.jsx(ct,{title:"거래처",subtitle:"공급사 · 고객 · 연락처 AES 암호화 저장 · 응답 마스킹 (MANAGER+)",actions:f&&s.jsxs(Y,{onClick:h,children:[s.jsx(lt,{size:16})," 거래처"]})}),s.jsxs("div",{className:"bg-amber-500/5 border border-amber-500/20 text-amber-300/80 text-xs rounded-lg px-3 py-2 mb-4 flex items-center gap-2",children:[s.jsx(om,{size:14})," 거래처 연락처(전화·이메일)는 PII로 마스킹되어 표시됩니다. 원문은 저장 시 AES-256-GCM으로 암호화됩니다."]}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[s.jsx("select",{className:"inp w-36",value:n,onChange:p=>r(p.target.value),children:dye.map(p=>s.jsx("option",{value:p,children:p||"전체 유형"},p))}),s.jsx("select",{className:"inp w-32",value:a,onChange:p=>i(p.target.value),children:hye.map(p=>s.jsx("option",{value:p,children:p||"전체 상태"},p))}),s.jsx("input",{value:l,onChange:p=>o(p.target.value),onKeyDown:p=>p.key==="Enter"&&d(),placeholder:"거래처 검색",className:"inp w-52"}),s.jsx(Y,{variant:"ghost",onClick:d,children:"검색"})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"코드"}),s.jsx("th",{className:"text-left",children:"거래처명"}),s.jsx("th",{className:"text-left",children:"유형"}),s.jsx("th",{className:"text-left",children:"담당"}),s.jsx("th",{className:"text-left",children:"전화"}),s.jsx("th",{className:"text-left",children:"이메일"}),s.jsx("th",{className:"text-left",children:"상태"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(p=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-1.5",children:[s.jsx(bT,{size:14,className:"text-brand"}),p.partnerCode]}),s.jsx("td",{className:"text-slate-300",children:p.partnerName}),s.jsx("td",{children:s.jsx("span",{className:"px-2 py-0.5 rounded bg-brand/15 text-brand text-xs border border-brand/30",children:p.partnerType})}),s.jsx("td",{className:"text-slate-400 text-xs",children:p.contactName||"-"}),s.jsx("td",{className:"text-slate-400 font-mono text-xs",children:p.contactPhone?SA(p.contactPhone):"-"}),s.jsx("td",{className:"text-slate-400 font-mono text-xs",children:p.contactEmail?SA(p.contactEmail):"-"}),s.jsx("td",{children:s.jsx(st,{status:p.status})}),s.jsx("td",{className:"px-4",children:f&&s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.jsx("button",{onClick:()=>m(p),className:"text-xs text-slate-400 hover:text-brand",children:"편집"}),s.jsx("button",{onClick:()=>y(p.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(ir,{size:14})})]})})]},p.id)),e.length===0&&s.jsx(qe,{colSpan:8,msg:"거래처가 없습니다."})]})]})}),c&&s.jsxs(Ye,{title:c._new?"거래처 등록":"거래처 편집",onClose:()=>u(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"코드",children:s.jsx("input",{className:"inp",value:c.partnerCode,onChange:p=>u({...c,partnerCode:p.target.value}),disabled:!c._new})}),s.jsx(L,{label:"거래처명",children:s.jsx("input",{className:"inp",value:c.partnerName,onChange:p=>u({...c,partnerName:p.target.value})})})]}),s.jsx(L,{label:"유형",children:s.jsx("select",{className:"inp",value:c.partnerType,onChange:p=>u({...c,partnerType:p.target.value}),children:["SUPPLIER","CUSTOMER","BOTH"].map(p=>s.jsx("option",{children:p},p))})}),s.jsx(L,{label:"담당자",children:s.jsx("input",{className:"inp",value:c.contactName,onChange:p=>u({...c,contactName:p.target.value})})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"전화 (암호화 저장)",hint:c._new?"":"변경 시에만 입력",children:s.jsx("input",{className:"inp",value:c.contactPhone,onChange:p=>u({...c,contactPhone:p.target.value})})}),s.jsx(L,{label:"이메일 (암호화 저장)",hint:c._new?"":"변경 시에만 입력",children:s.jsx("input",{className:"inp",value:c.contactEmail,onChange:p=>u({...c,contactEmail:p.target.value})})})]}),s.jsx(L,{label:"주소",children:s.jsx("input",{className:"inp",value:c.address,onChange:p=>u({...c,address:p.target.value})})}),!c._new&&s.jsx(L,{label:"상태",children:s.jsx("select",{className:"inp",value:c.status,onChange:p=>u({...c,status:p.target.value}),children:["ACTIVE","INACTIVE"].map(p=>s.jsx("option",{children:p},p))})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>u(null),children:"취소"}),s.jsx(Y,{onClick:j,children:"저장"})]})]})]})}const yye={warehouseCode:"",warehouseName:"",address:"",remark:""};function vye(){const[e,t]=w.useState([]),[n,r]=w.useState(null),[a,i]=w.useState([]),[l,o]=w.useState(null),[c,u]=w.useState(null),f=cr(),d=()=>Af().then(b=>t(b||[])).catch(()=>t([]));w.useEffect(()=>{d()},[]);const h=async b=>{r(b),i(await fB(b.warehouseCode).catch(()=>[])||[])},m=()=>o({...yye,_new:!0}),j=async()=>{const{_new:b,id:x,...O}=l;b?await oB(O):await cB(x,O),o(null),d()},y=async b=>{window.confirm("삭제하시겠습니까?")&&(await uB(b),d(),(n==null?void 0:n.id)===b&&(r(null),i([])))},p=()=>u({warehouseCode:n.warehouseCode,locationCode:"",locationName:"",binType:"SHELF"}),v=async()=>{await dB(c),u(null),h(n)},g=async b=>{window.confirm("로케이션 삭제?")&&(await hB(b),h(n))};return s.jsxs("div",{children:[s.jsx(ct,{title:"창고 / 로케이션",subtitle:"창고 · 로케이션(bin) 관리",actions:f&&s.jsxs(Y,{onClick:m,children:[s.jsx(lt,{size:16})," 창고"]})}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"코드"}),s.jsx("th",{className:"text-left",children:"창고명"}),s.jsx("th",{className:"text-left",children:"주소"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(b=>s.jsxs("tr",{className:`border-t border-edge/50 cursor-pointer ${(n==null?void 0:n.id)===b.id?"bg-panel/60":"hover:bg-panel/30"}`,onClick:()=>h(b),children:[s.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-1.5",children:[s.jsx(UT,{size:14,className:"text-brand"}),b.warehouseCode]}),s.jsx("td",{className:"text-slate-300",children:b.warehouseName}),s.jsx("td",{className:"text-slate-400 text-xs truncate max-w-[160px]",children:b.address||"-"}),s.jsx("td",{className:"px-4",onClick:x=>x.stopPropagation(),children:f&&s.jsxs("div",{className:"flex items-center justify-end gap-2",children:[s.jsx("button",{onClick:()=>o({...b,_new:!1}),className:"text-xs text-slate-400 hover:text-brand",children:"편집"}),s.jsx("button",{onClick:()=>y(b.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(ir,{size:14})})]})})]},b.id)),e.length===0&&s.jsx(qe,{colSpan:4,msg:"창고가 없습니다."})]})]})}),s.jsx(ge,{title:n?`로케이션 — ${n.warehouseName}`:"로케이션 (창고 선택)",icon:s.jsx(ZS,{size:15}),children:n?s.jsxs(s.Fragment,{children:[f&&s.jsx("div",{className:"mb-3",children:s.jsxs(Y,{size:"sm",variant:"ghost",onClick:p,children:[s.jsx(lt,{size:13})," 로케이션 추가"]})}),s.jsxs("div",{className:"space-y-1.5 max-h-[420px] overflow-auto",children:[a.map(b=>s.jsxs("div",{className:"flex items-center justify-between bg-panel border border-edge rounded p-2 text-sm",children:[s.jsxs("span",{className:"flex items-center gap-1.5",children:[s.jsx(ZS,{size:12,className:"text-brand"}),s.jsx("span",{className:"font-mono text-xs",children:b.locationCode})," ",s.jsx("span",{className:"text-slate-400",children:b.locationName||""})]}),s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-[11px] text-slate-500",children:b.binType||""}),f&&s.jsx("button",{onClick:()=>g(b.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(ir,{size:12})})]})]},b.id)),a.length===0&&s.jsx("p",{className:"text-slate-500 text-xs py-4 text-center",children:"로케이션이 없습니다."})]})]}):s.jsx("p",{className:"text-slate-500 text-sm py-6 text-center",children:"왼쪽에서 창고를 선택하세요."})})]}),l&&s.jsxs(Ye,{title:l._new?"창고 등록":"창고 편집",onClose:()=>o(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"코드",children:s.jsx("input",{className:"inp",value:l.warehouseCode,onChange:b=>o({...l,warehouseCode:b.target.value}),disabled:!l._new})}),s.jsx(L,{label:"창고명",children:s.jsx("input",{className:"inp",value:l.warehouseName,onChange:b=>o({...l,warehouseName:b.target.value})})})]}),s.jsx(L,{label:"주소",children:s.jsx("input",{className:"inp",value:l.address,onChange:b=>o({...l,address:b.target.value})})}),s.jsx(L,{label:"비고",children:s.jsx("input",{className:"inp",value:l.remark,onChange:b=>o({...l,remark:b.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>o(null),children:"취소"}),s.jsx(Y,{onClick:j,children:"저장"})]})]}),c&&s.jsxs(Ye,{title:"로케이션 추가",onClose:()=>u(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(L,{label:"로케이션 코드",children:s.jsx("input",{className:"inp",value:c.locationCode,onChange:b=>u({...c,locationCode:b.target.value})})}),s.jsx(L,{label:"로케이션명",children:s.jsx("input",{className:"inp",value:c.locationName,onChange:b=>u({...c,locationName:b.target.value})})}),s.jsx(L,{label:"유형",children:s.jsx("select",{className:"inp",value:c.binType,onChange:b=>u({...c,binType:b.target.value}),children:["SHELF","RACK","FLOOR","PALLET","BIN"].map(b=>s.jsx("option",{children:b},b))})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Y,{variant:"ghost",onClick:()=>u(null),children:"취소"}),s.jsx(Y,{onClick:v,children:"추가"})]})]})]})}function EA(e,t){if(!e)return;if(e.labels&&e.series)return e;if(Array.isArray(e))return{labels:e.map(r=>r.label||r.name||r.itemName||r.itemCode||r.date),series:[{name:t,data:e.map(r=>Number(r.value??r.qty??r.count??0))}]};const n=Object.entries(e).filter(([,r])=>typeof r=="number");return n.length?{labels:n.map(r=>r[0]),series:[{name:t,data:n.map(r=>r[1])}]}:void 0}function Nd(e,...t){for(const n of t)if((e==null?void 0:e[n])!=null)return Number(e[n])||0;return 0}function gye(){const[e,t]=w.useState({}),[n,r]=w.useState({}),[a,i]=w.useState({}),[l,o]=w.useState(null),[c,u]=w.useState(null);return w.useEffect(()=>{pB(30).then(f=>t(f||{})).catch(()=>{}),mB(30).then(f=>r(f||{})).catch(()=>{}),yB().then(f=>i(f||{})).catch(()=>{}),mk(14).then(o).catch(()=>{}),vB(30,10).then(u).catch(()=>{})},[]),s.jsxs("div",{children:[s.jsx("div",{className:"flex items-center justify-between mb-6",children:s.jsxs("div",{children:[s.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[s.jsx(gT,{className:"text-brand",size:20})," 분석 / KPI"]}),s.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:"생산 · 품질 · 재고 KPI (BI 피드 연동, 30일)"})]})}),s.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3 mb-6",children:[s.jsx(zr,{label:"총 생산량",value:Nd(e,"totalOutput","totalQty","output"),icon:s.jsx(xs,{size:13}),color:"text-brand"}),s.jsx(zr,{label:"검사 합격률",value:Nd(n,"passRate","rate").toFixed(1),unit:"%",icon:s.jsx(bs,{size:13}),color:"text-accent"}),s.jsx(zr,{label:"불량률",value:Nd(n,"defectRate").toFixed(2),unit:"%",icon:s.jsx(ao,{size:13}),color:"text-rose-400"}),s.jsx(zr,{label:"재고 품목수",value:Nd(a,"itemCount","totalItems","count"),icon:s.jsx(bf,{size:13}),color:"text-sky-400"})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 mb-4",children:[s.jsx(ge,{title:"일별 생산량 (14일)",icon:s.jsx(xs,{size:15}),children:s.jsx(br,{type:"AREA",data:EA(l,"생산량")})}),s.jsx(ge,{title:"품목별 생산 TOP (30일)",icon:s.jsx(ao,{size:15}),children:s.jsx(br,{type:"BAR",data:EA(c,"생산량")})})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[s.jsx(ge,{title:"생산 KPI",icon:s.jsx(xs,{size:15}),children:s.jsx(CA,{o:e})}),s.jsx(ge,{title:"품질 KPI",icon:s.jsx(bs,{size:15}),children:s.jsx(CA,{o:n})})]})]})}function CA({o:e}){const t=Object.entries(e||{}).filter(([,n])=>typeof n=="number"||typeof n=="string");return t.length?s.jsx("div",{className:"space-y-1.5",children:t.map(([n,r])=>s.jsxs("div",{className:"flex items-center justify-between text-sm border-b border-edge/40 py-1.5",children:[s.jsx("span",{className:"text-slate-400 text-xs",children:n}),s.jsx("span",{className:"text-slate-200 font-medium",children:typeof r=="number"?r.toLocaleString():String(r)})]},n))}):s.jsx("p",{className:"text-slate-500 text-sm py-4 text-center",children:"데이터 없음"})}function f$({data:e}){const t=e==null?void 0:e.applied;if(!t)return null;const n=[`mode:${t.retrievalMode}`,`기법:${t.technique}`];return t.rerank&&n.push("rerank"),t.graphrag&&n.push("graphrag"),t.hybrid&&n.push("hybrid"),t.toolUse&&n.push(`agent(${t.maxSteps})`),t.structured&&n.push("structured"),t.stream&&n.push("stream"),e!=null&&e.degraded&&n.push("⚠ degraded(폴백)"),s.jsx("div",{className:"mt-2 flex flex-wrap gap-1",children:n.map((r,a)=>s.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded border ${r.startsWith("⚠")?"bg-amber-500/15 text-amber-300 border-amber-500/30":"bg-brand/10 text-brand border-brand/30"}`,children:r},a))})}function d$({answerId:e,query:t}){const[n,r]=w.useState("");if(!e)return null;const a=async i=>{try{await EB({answerId:e,query:t,verdict:i}),r(i==="up"?"👍 반영됨":"👎 반영됨")}catch{r("전송 실패")}};return s.jsxs("div",{className:"mt-2 flex items-center gap-2 text-xs text-slate-400",children:[s.jsx("span",{children:"이 답변이 도움이 됐나요?"}),s.jsx("button",{onClick:()=>a("up"),className:"p-1 rounded hover:bg-brand/10 hover:text-brand",children:s.jsx(BT,{size:13})}),s.jsx("button",{onClick:()=>a("down"),className:"p-1 rounded hover:bg-rose-500/10 hover:text-rose-300",children:s.jsx(IT,{size:13})}),n&&s.jsx("span",{className:"text-brand",children:n})]})}function h$({feature:e,question:t,answer:n}){const[r,a]=w.useState("");if(n==null)return null;const i=typeof n=="string"?n:JSON.stringify(n),l=async o=>{try{await TB({feature:e,question:t,answer:i,verdict:o}),a(o==="up"?"👍 반영됨":"👎 반영됨")}catch{a("전송 실패")}};return s.jsxs("div",{className:"mt-2 flex items-center gap-2 text-xs text-slate-400",children:[s.jsx("span",{children:"이 결과가 도움이 됐나요?"}),s.jsx("button",{onClick:()=>l("up"),className:"p-1 rounded hover:bg-brand/10 hover:text-brand",children:s.jsx(BT,{size:13})}),s.jsx("button",{onClick:()=>l("down"),className:"p-1 rounded hover:bg-rose-500/10 hover:text-rose-300",children:s.jsx(IT,{size:13})}),r&&s.jsx("span",{className:"text-brand",children:r})]})}function Ua({data:e}){return e==null?null:typeof e=="string"?s.jsx("pre",{className:"mt-3 text-xs text-slate-300 bg-ink border border-edge rounded p-3 whitespace-pre-wrap max-h-56 overflow-auto",children:e}):s.jsx("pre",{className:"mt-3 text-xs text-slate-300 bg-ink border border-edge rounded p-3 whitespace-pre-wrap max-h-56 overflow-auto",children:JSON.stringify(e,null,2)})}function xye(){const[e,t]=w.useState(null);return w.useEffect(()=>{yk().then(n=>t(!!((n==null?void 0:n.ollamaAvailable)??(n==null?void 0:n.available)))).catch(()=>t(!1))},[]),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsxs("div",{children:[s.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[s.jsx(Ln,{className:"text-accent",size:20})," AI 도구"]}),s.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:"불량분석 · 생산예측 · 예지보전 · SPC이상 · 자연어조회 · 안전재고 · 일정최적화 (Ollama 온프레미스 + Java 폴백)"})]}),s.jsxs("span",{className:`flex items-center gap-1.5 text-xs px-3 py-1.5 rounded-lg border ${e?"text-accent border-accent/30 bg-accent/10":"text-slate-400 border-edge bg-card"}`,children:[s.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${e?"bg-accent":"bg-slate-500"}`}),"Ollama ",e===null?"확인 중":e?"온라인":"오프라인 (Java 폴백)"]})]}),s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("h2",{className:"text-sm font-semibold flex items-center gap-2 text-brand",children:[s.jsx(Yr,{size:15})," 최신 AI 기법 (RAG · 에이전틱 · 구조화)"]}),s.jsx(am,{to:"/ai-techniques",className:"text-xs text-slate-400 hover:text-brand underline",children:"기법 토글 설정 →"})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5 mb-8",children:[s.jsx(bye,{}),s.jsx(jye,{})]}),s.jsx("h2",{className:"text-sm font-semibold text-slate-300 mb-3",children:"기본 AI 도구"}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[s.jsx(Sye,{}),s.jsx(wye,{}),s.jsx(Oye,{}),s.jsx(Nye,{}),s.jsx(Aye,{}),s.jsx(Eye,{}),s.jsx(Cye,{})]})]})}function bye(){var v;const[e,t]=w.useState(""),[n,r]=w.useState(""),[a,i]=w.useState(""),[l,o]=w.useState(""),[c,u]=w.useState(""),[f,d]=w.useState(""),[h,m]=w.useState(null),[j,y]=w.useState(!1),p=async()=>{y(!0);try{const g=a.split(",").map(x=>x.trim()).filter(Boolean).map(Number),b={defectCode:e,context:n?[{note:n}]:[]};g.length&&(b.values=g,b.ucl=Number(l)||0,b.lcl=Number(c)||0,b.cl=Number(f)||0),m(await NB(b))}finally{y(!1)}};return s.jsxs(ge,{title:"불량 원인분석 + SPC 이상감지 (RAG)",icon:s.jsx(Vr,{size:15}),children:[s.jsx(L,{label:"불량 코드",children:s.jsx("input",{className:"inp",value:e,onChange:g=>t(g.target.value),placeholder:"예: D-DIM-01"})}),s.jsx(L,{label:"컨텍스트(공정/설비/자재)",children:s.jsx("textarea",{className:"inp",value:n,onChange:g=>r(g.target.value)})}),s.jsx(L,{label:"SPC 표본값(쉼표구분, 선택)",children:s.jsx("input",{className:"inp",value:a,onChange:g=>i(g.target.value),placeholder:"예: 10.1, 10.3, 9.8, 10.5"})}),s.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[s.jsx(L,{label:"UCL",children:s.jsx("input",{className:"inp",value:l,onChange:g=>o(g.target.value)})}),s.jsx(L,{label:"LCL",children:s.jsx("input",{className:"inp",value:c,onChange:g=>u(g.target.value)})}),s.jsx(L,{label:"CL",children:s.jsx("input",{className:"inp",value:f,onChange:g=>d(g.target.value)})})]}),s.jsxs(Y,{onClick:p,disabled:j,size:"sm",children:[s.jsx(Yr,{size:13})," ",j?"분석 중…":"RCA + SPC 분석"]}),s.jsx(f$,{data:h}),s.jsx(Ua,{data:h}),s.jsx(d$,{answerId:(v=h==null?void 0:h.defect)==null?void 0:v.answerId,query:e})]})}function jye(){var b;const[e,t]=w.useState("forecast"),[n,r]=w.useState(""),[a,i]=w.useState(""),[l,o]=w.useState(""),[c,u]=w.useState(""),[f,d]=w.useState(""),[h,m]=w.useState(7),[j,y]=w.useState(null),[p,v]=w.useState(!1),g=async()=>{v(!0);try{const x={kind:e};e==="pdm"?(x.equipmentCode=n,x.availability=Number(a)||0,x.downtimeCount=Number(l)||0,x.mtbfHours=Number(c)||0):(x.series=f.split(",").map(O=>O.trim()).filter(Boolean).map(Number),x.horizon=h),y(await AB(x))}finally{v(!1)}};return s.jsxs(ge,{title:"예지보전 / 수요·생산 예측 (RAG)",icon:s.jsx(ao,{size:15}),children:[s.jsx("div",{className:"flex gap-2 mb-2",children:["forecast","pdm"].map(x=>s.jsx("button",{onClick:()=>t(x),className:`px-3 py-1.5 text-xs rounded-lg border ${e===x?"bg-brand text-ink border-brand":"bg-card border-edge text-slate-300"}`,children:x==="forecast"?"수요/생산 예측":"설비 예지보전"},x))}),e==="pdm"?s.jsxs(s.Fragment,{children:[s.jsx(L,{label:"설비 코드",children:s.jsx("input",{className:"inp",value:n,onChange:x=>r(x.target.value),placeholder:"예: EQ-CNC-01"})}),s.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[s.jsx(L,{label:"가동률(0~1)",children:s.jsx("input",{className:"inp",value:a,onChange:x=>i(x.target.value)})}),s.jsx(L,{label:"비가동 횟수",children:s.jsx("input",{className:"inp",value:l,onChange:x=>o(x.target.value)})}),s.jsx(L,{label:"MTBF(시간)",children:s.jsx("input",{className:"inp",value:c,onChange:x=>u(x.target.value)})})]})]}):s.jsxs(s.Fragment,{children:[s.jsx(L,{label:"시계열(쉼표구분)",children:s.jsx("input",{className:"inp",value:f,onChange:x=>d(x.target.value),placeholder:"예: 100, 120, 95, 130"})}),s.jsx(L,{label:"예측 기간(일)",children:s.jsx("input",{type:"number",className:"inp",value:h,onChange:x=>m(Number(x.target.value))})})]}),s.jsxs(Y,{onClick:g,disabled:p,size:"sm",children:[s.jsx(Yr,{size:13})," ",p?"분석 중…":"예측 + 해석"]}),s.jsx(f$,{data:j}),s.jsx(Ua,{data:j}),s.jsx(d$,{answerId:(b=j==null?void 0:j.interpretation)==null?void 0:b.answerId,query:e})]})}function Sye(){const[e,t]=w.useState(""),[n,r]=w.useState(""),[a,i]=w.useState(null),[l,o]=w.useState(!1),c=async()=>{o(!0);try{i(await gB({defectCode:e,context:n}))}finally{o(!1)}};return s.jsxs(ge,{title:"불량 원인 분석",icon:s.jsx(Vr,{size:15}),children:[s.jsx(L,{label:"불량 코드",children:s.jsx("input",{className:"inp",value:e,onChange:u=>t(u.target.value),placeholder:"예: D-CRACK-01"})}),s.jsx(L,{label:"컨텍스트(공정/설비/자재)",children:s.jsx("textarea",{className:"inp",value:n,onChange:u=>r(u.target.value)})}),s.jsxs(Y,{onClick:c,disabled:l,size:"sm",children:[s.jsx(Ln,{size:13})," ",l?"분석 중…":"원인 분석"]}),s.jsx(Ua,{data:a}),s.jsx(h$,{feature:"defect-root-cause",question:e,answer:a})]})}function wye(){const[e,t]=w.useState(""),[n,r]=w.useState(30),[a,i]=w.useState(null),[l,o]=w.useState(!1),c=async()=>{o(!0);try{i(await xB({itemCode:e,days:n}))}finally{o(!1)}};return s.jsxs(ge,{title:"수요·생산량 예측",icon:s.jsx(ao,{size:15}),children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(L,{label:"품목코드",children:s.jsx("input",{className:"inp",value:e,onChange:u=>t(u.target.value)})}),s.jsx(L,{label:"예측 기간(일)",children:s.jsx("input",{type:"number",className:"inp",value:n,onChange:u=>r(Number(u.target.value))})})]}),s.jsxs(Y,{onClick:c,disabled:l,size:"sm",children:[s.jsx(Ln,{size:13})," ",l?"예측 중…":"예측"]}),s.jsx(Ua,{data:a})]})}function Oye(){const[e,t]=w.useState(""),[n,r]=w.useState(null),[a,i]=w.useState(!1),l=async()=>{i(!0);try{r(await bB({equipmentCode:e}))}finally{i(!1)}};return s.jsxs(ge,{title:"설비 예지보전",icon:s.jsx(jf,{size:15}),children:[s.jsx(L,{label:"설비 코드",children:s.jsx("input",{className:"inp",value:e,onChange:o=>t(o.target.value),placeholder:"예: EQ-CNC-01"})}),s.jsxs(Y,{onClick:l,disabled:a,size:"sm",children:[s.jsx(Ln,{size:13})," ",a?"분석 중…":"정비 권고"]}),s.jsx(Ua,{data:n})]})}function Nye(){const[e,t]=w.useState(""),[n,r]=w.useState(null),[a,i]=w.useState(!1),l=async()=>{i(!0);try{r(await jB({chartCode:e}))}finally{i(!1)}};return s.jsxs(ge,{title:"SPC 이상 감지",icon:s.jsx(H0,{size:15}),children:[s.jsx(L,{label:"관리도 코드",children:s.jsx("input",{className:"inp",value:e,onChange:o=>t(o.target.value)})}),s.jsxs(Y,{onClick:l,disabled:a,size:"sm",children:[s.jsx(Ln,{size:13})," ",a?"감지 중…":"이상 감지"]}),s.jsx(Ua,{data:n})]})}function Aye(){const[e,t]=w.useState(""),[n,r]=w.useState(null),[a,i]=w.useState(!1),l=async()=>{i(!0);try{r(await SB({query:e}))}finally{i(!1)}};return s.jsxs(ge,{title:"작업지시·재고 자연어 조회",icon:s.jsx(Yo,{size:15}),children:[s.jsx(L,{label:"자연어 질의",children:s.jsx("input",{className:"inp",value:e,onChange:o=>t(o.target.value),placeholder:"예: 지난주 지연된 작업지시",onKeyDown:o=>o.key==="Enter"&&l()})}),s.jsxs(Y,{onClick:l,disabled:a,size:"sm",children:[s.jsx(Ln,{size:13})," ",a?"해석 중…":"질의 해석"]}),s.jsx(Ua,{data:n}),s.jsx(h$,{feature:"parse-query",question:e,answer:n})]})}function Eye(){const[e,t]=w.useState(""),[n,r]=w.useState(null),[a,i]=w.useState(!1),l=async()=>{i(!0);try{r(await wB({itemCode:e}))}finally{i(!1)}};return s.jsxs(ge,{title:"재고 최적화·안전재고 추천",icon:s.jsx(bf,{size:15}),children:[s.jsx(L,{label:"품목코드",children:s.jsx("input",{className:"inp",value:e,onChange:o=>t(o.target.value)})}),s.jsxs(Y,{onClick:l,disabled:a,size:"sm",children:[s.jsx(Ln,{size:13})," ",a?"분석 중…":"추천"]}),s.jsx(Ua,{data:n})]})}function Cye(){const[e,t]=w.useState(null),[n,r]=w.useState(!1),a=async()=>{r(!0);try{t(await OB({}))}finally{r(!1)}};return s.jsxs(ge,{title:"생산 일정 최적화",icon:s.jsx(TL,{size:15}),children:[s.jsx("p",{className:"text-xs text-slate-400 mb-2",children:"현재 작업지시·설비 부하 기반으로 일정 최적화를 제안합니다."}),s.jsxs(Y,{onClick:a,disabled:n,size:"sm",children:[s.jsx(Ln,{size:13})," ",n?"최적화 중…":"일정 최적화 제안"]}),s.jsx(Ua,{data:e})]})}const _ye=new Set(["rag.graphrag","rag.rerank","rag.tool_use","rag.stream"]);function Tye(){const[e,t]=w.useState(null),[n,r]=w.useState(""),[a,i]=w.useState(""),l=cr(),o=()=>CB().then(f=>{t(f),i("")}).catch(()=>i("RAG 토글을 불러오지 못했습니다."));w.useEffect(()=>{o()},[]);const c=async(f,d)=>{var h;r(""),i("");try{const m=await _B(f,d);t(m),r(`'${f}' 저장됨`)}catch(m){i(((h=m==null?void 0:m.response)==null?void 0:h.status)===403?"변경은 Manager+ 권한이 필요합니다.":"저장 실패")}};if(!e)return s.jsx("div",{className:"text-slate-400 text-sm",children:a||"불러오는 중…"});const u=({k:f,label:d,desc:h,on:m})=>s.jsxs("div",{className:"flex items-start justify-between gap-3 py-2.5 border-b border-edge last:border-0",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"text-sm font-medium flex items-center gap-2",children:[d,_ye.has(f)&&s.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-amber-500/15 text-amber-300 border border-amber-500/30",children:"무거움"})]}),s.jsx("div",{className:"text-xs text-slate-400 mt-0.5",children:h})]}),s.jsx("button",{disabled:!l,onClick:()=>c(f,!m),className:`shrink-0 w-11 h-6 rounded-full transition-colors relative disabled:opacity-40 ${m?"bg-brand":"bg-slate-600"}`,title:m?"ON":"OFF",children:s.jsx("span",{className:`absolute top-0.5 w-5 h-5 rounded-full bg-white transition-all ${m?"left-5":"left-0.5"}`})})]});return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsxs("div",{children:[s.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[s.jsx(Yr,{className:"text-brand",size:20})," AI 기법 설정"]}),s.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:"중앙 guardia-rag 최신 기법 적용(검색 모드·리랭크·GraphRAG·에이전틱·구조화·스트리밍). 솔루션별 격리 저장."})]}),s.jsxs("span",{className:`flex items-center gap-1.5 text-xs px-3 py-1.5 rounded-lg border ${e.ragAvailable?"text-brand border-brand/30 bg-brand/10":"text-slate-400 border-edge bg-card"}`,children:[s.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${e.ragAvailable?"bg-brand":"bg-slate-500"}`}),"중앙 RAG ",e.ragAvailable?"연결됨":"미가용 (로컬 폴백)"]})]}),n&&s.jsx("div",{className:"bg-brand/10 border border-brand/30 text-brand text-sm rounded-lg px-4 py-2.5 mb-4",children:n}),a&&s.jsx("div",{className:"bg-rose-500/10 border border-rose-500/40 text-rose-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:a}),!l&&s.jsx("div",{className:"bg-amber-500/10 border border-amber-500/30 text-amber-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:"조회 전용입니다. 기법 변경은 Manager+ 권한이 필요합니다."}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[s.jsxs(ge,{title:"마스터 / 검색 모드",icon:s.jsx(om,{size:15}),children:[s.jsx(u,{k:"rag.enabled",label:"중앙 RAG 경유",desc:"off 시 MES 결정론 로컬 폴백으로 즉시 회귀(기존 동작).",on:e.ragEnabled}),s.jsxs("div",{className:"py-2.5 border-b border-edge",children:[s.jsx("div",{className:"text-sm font-medium mb-1.5",children:"검색 모드 (retrieval_mode)"}),s.jsx("div",{className:"flex gap-2",children:["vector","hybrid","graph"].map(f=>s.jsx("button",{disabled:!l,onClick:()=>c("rag.retrieval_mode",f),className:`px-3 py-1.5 text-xs rounded-lg border disabled:opacity-40 ${e.retrievalMode===f?"bg-brand text-ink border-brand":"bg-card border-edge text-slate-300 hover:border-brand"}`,children:f},f))}),s.jsx("div",{className:"text-xs text-slate-400 mt-1.5",children:"graphrag/hybrid 토글이 켜지면 그 모드가 우선 적용됩니다."})]}),s.jsx(u,{k:"rag.hybrid",label:"하이브리드 검색",desc:"BM25 키워드 + 벡터 앙상블. 검색 정확도↑(중간 비용).",on:e.hybrid}),s.jsx(u,{k:"rag.rerank",label:"리랭킹 (rerank)",desc:"cross-encoder/LLM 재정렬. 상위 정밀도↑(추가 추론 비용).",on:e.rerank}),s.jsx(u,{k:"rag.graphrag",label:"GraphRAG",desc:"지식그래프 기반 검색. 다중 홉 질의에 유리(고비용).",on:e.graphrag})]}),s.jsxs(ge,{title:"에이전틱 / 출력",icon:s.jsx(IL,{size:15}),children:[s.jsx(u,{k:"rag.tool_use",label:"에이전틱 tool-use (/agent)",desc:"조회 매퍼를 도구로 멀티스텝 추론. 불량 RCA·예측 해석에 활용(고비용).",on:e.toolUse}),s.jsx(u,{k:"rag.structured",label:"구조화 출력 (/structured)",desc:"JSON 스키마 강제 — 결정론적 결과 객체(경량, 기본 ON 권장).",on:e.structured}),s.jsx(u,{k:"rag.stream",label:"토큰 스트리밍 (SSE)",desc:"긴 답변 점진 표시. 동시성 위협 시 off 유지(고비용).",on:e.stream}),s.jsxs("div",{className:"grid grid-cols-2 gap-3 mt-3",children:[s.jsx(Rv,{label:"top_k (1~20)",value:e.topK,min:1,max:20,disabled:!l,onSave:f=>c("rag.top_k",f)}),s.jsx(Rv,{label:"max_steps (1~8)",value:e.maxSteps,min:1,max:8,disabled:!l,onSave:f=>c("rag.max_steps",f)}),s.jsx(Rv,{label:"temperature (0~1)",value:e.temperature,min:0,max:1,step:.1,disabled:!l,onSave:f=>c("rag.temperature",f)}),s.jsx(kye,{label:"생성 모델",value:e.generationModel,disabled:!l,onSave:f=>c("rag.generation_model",f)})]})]})]}),s.jsx("div",{className:"mt-4 text-xs text-slate-500",children:"보안 불변: 외부 API 0 (중앙·로컬 모두 Ollama 온프레미스). 무거운 기법은 서버 RAM 제약상 기본 off — 미가용 시 결정론 폴백(degraded:true)."})]})}function Rv({label:e,value:t,min:n,max:r,step:a=1,disabled:i,onSave:l}){const[o,c]=w.useState(String(t));return w.useEffect(()=>{c(String(t))},[t]),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-slate-400",children:e}),s.jsxs("div",{className:"flex gap-1.5 mt-1",children:[s.jsx("input",{type:"number",min:n,max:r,step:a,value:o,disabled:i,onChange:u=>c(u.target.value),className:"w-full bg-ink border border-edge rounded px-2 py-1 text-sm disabled:opacity-50"}),s.jsx(Y,{size:"sm",disabled:i,onClick:()=>l(Number(o)),children:s.jsx(lm,{size:12})})]})]})}function kye({label:e,value:t,disabled:n,onSave:r}){const[a,i]=w.useState(t);return w.useEffect(()=>{i(t)},[t]),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs text-slate-400",children:e}),s.jsxs("div",{className:"flex gap-1.5 mt-1",children:[s.jsx("input",{value:a,disabled:n,onChange:l=>i(l.target.value),className:"w-full bg-ink border border-edge rounded px-2 py-1 text-sm disabled:opacity-50"}),s.jsx(Y,{size:"sm",disabled:n,onClick:()=>r(a),children:s.jsx(lm,{size:12})})]})]})}const Mye=()=>$.get("/api/admin/ai-config").then(e=>{var t;return(t=e.data)==null?void 0:t.data}),Pye=e=>$.put("/api/admin/ai-config",e).then(t=>{var n;return(n=t.data)==null?void 0:n.data}),$ye=()=>$.post("/api/admin/ai-config/test",{}).then(e=>{var t;return(t=e.data)==null?void 0:t.data}),Rye=[{id:"ollama",label:"Ollama (기본)",hint:"온프레미스 · llama3.2:1b"},{id:"qwen3",label:"Qwen3",hint:"온프레미스 · qwen3:1.7b"},{id:"deepseek",label:"DeepSeek",hint:"온프레미스 · deepseek-r1:1.5b"},{id:"glm",label:"GLM",hint:"온프레미스 · glm4:9b",ram:!0},{id:"claude",label:"Claude (외부)",hint:"api.anthropic.com · 키 필요"}],p$=["claude-sonnet-4-6","claude-haiku-4-5","claude-opus-4-8"],Yd="claude-sonnet-4-6",Dv=e=>p$.includes(e)?e:Yd;function Lv(e){var n,r,a;const t=((r=(n=e==null?void 0:e.response)==null?void 0:n.data)==null?void 0:r.message)||"";return((a=e==null?void 0:e.response)==null?void 0:a.status)===403?"권한이 없습니다 (AI 설정은 관리자 전용).":t.includes("ERR-AI-400")?t.replace(/^ERR-AI-400:\s*/,""):"AI 설정을 처리하지 못했습니다."}function Dye(){const[e,t]=w.useState("ollama"),[n,r]=w.useState(Yd),[a,i]=w.useState(!1),[l,o]=w.useState(""),[c,u]=w.useState(!0),[f,d]=w.useState(!1),[h,m]=w.useState(!1),[j,y]=w.useState(!1),[p,v]=w.useState(""),[g,b]=w.useState(!1),[x,O]=w.useState(null),S=()=>{d(!0),Mye().then(E=>{t(E.provider),r(Dv(E.claudeModel??Yd)),i(!!E.claudeKeySet),o(E.ollamaTextModel??""),u(!!E.aiEnabled),v("")}).catch(E=>v(Lv(E))).finally(()=>d(!1))};w.useEffect(()=>{S()},[]);const N=()=>{y(!1),O(null)},A=async()=>{m(!0),y(!1);try{const E=await Pye({provider:e,claudeModel:n});t(E.provider),r(Dv(E.claudeModel??Yd)),i(!!E.claudeKeySet),o(E.ollamaTextModel??""),u(!!E.aiEnabled),y(!0),v("")}catch(E){v(Lv(E))}finally{m(!1)}},C=async()=>{b(!0),O(null);try{O(await $ye())}catch(E){O({ok:!1,degraded:!1,message:Lv(E)})}finally{b(!1)}},k=e==="claude",R=e==="glm",M=k&&!a,B=!k&&!c,_=x?x.degraded?"text-amber-300":x.ok?"text-emerald-300":"text-rose-300":"";return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsxs("div",{children:[s.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[s.jsx(Yr,{size:20,className:"text-brand"})," AI 플랫폼 설정"]}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"불량 원인분석·자연어 조회 등 텍스트 생성에 사용할 LLM 제공자와 모델을 선택합니다."})]}),s.jsx("button",{onClick:S,disabled:f,className:"px-3 py-1.5 rounded-lg bg-card border border-edge text-sm disabled:opacity-40",children:"새로고침"})]}),p&&s.jsx("div",{className:"bg-rose-500/10 border border-rose-500/40 text-rose-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:p}),(M||B)&&s.jsx("div",{className:"bg-amber-500/10 border border-amber-500/40 text-amber-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:M?"Claude API 키가 설정되지 않아 Ollama(온프레미스)로 폴백 동작합니다. 서버 환경변수 ANTHROPIC_API_KEY 설정 후 사용하세요.":"AI 기능이 비활성 상태입니다. 모든 AI 결과는 규칙 기반(degraded)으로 동작합니다."}),R&&s.jsxs("div",{className:"bg-amber-500/10 border border-amber-500/40 text-amber-300 text-sm rounded-lg px-4 py-2.5 mb-4 flex items-start gap-2",children:[s.jsx(Vr,{size:16,className:"mt-0.5 shrink-0"}),s.jsx("span",{children:"GLM(glm4:9b)은 약 5.5GB 로드가 필요해 현재 서버 RAM(≈2.1GB)에서는 콜드로드가 실패할 수 있습니다. 선택은 허용되지만 실패 시 자동으로 폴백(degraded)됩니다. RAM 증설 후 사용을 권장합니다."})]}),s.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[s.jsxs("section",{className:"bg-card border border-edge rounded-xl p-5",children:[s.jsxs("h2",{className:"text-sm font-semibold mb-4 flex items-center gap-2",children:[s.jsx(Yr,{size:16,className:"text-brand"})," 제공자 & 모델"]}),s.jsx("div",{className:"grid grid-cols-2 gap-2 mb-4",children:Rye.map(E=>s.jsxs("button",{onClick:()=>{t(E.id),N()},className:`text-left px-3 py-2.5 rounded-lg border text-sm transition-colors ${e===E.id?"bg-brand/15 border-brand text-brand":"bg-ink border-edge text-slate-300 hover:border-brand/50"}`,children:[s.jsxs("div",{className:"font-semibold flex items-center gap-1.5",children:[E.label,E.ram&&s.jsx("span",{className:"text-[9px] px-1 py-0.5 rounded bg-amber-500/15 text-amber-300 border border-amber-500/30",children:"RAM"})]}),s.jsx("div",{className:"text-[11px] text-slate-500 mt-0.5",children:E.hint})]},E.id))}),!k&&s.jsxs("div",{className:"mb-4",children:[s.jsx("label",{className:"block text-xs text-slate-500 mb-1",children:"Ollama 텍스트 모델"}),s.jsx("div",{className:"px-3 py-2 rounded-lg bg-ink border border-edge text-sm font-mono",children:l||"llama3.2:1b"}),s.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"온프레미스 모델 — provider 별 고정. 외부 호출 없음."})]}),k&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"mb-4",children:[s.jsx("label",{className:"block text-xs text-slate-500 mb-1",children:"Claude 모델"}),s.jsx("select",{value:n,onChange:E=>{r(Dv(E.target.value)),N()},className:"w-full px-3 py-2 rounded-lg bg-ink border border-edge text-sm focus:border-brand outline-none",children:p$.map(E=>s.jsx("option",{value:E,children:E},E))})]}),s.jsxs("div",{className:"mb-4",children:[s.jsxs("label",{className:"block text-xs text-slate-500 mb-1 flex items-center gap-1",children:[s.jsx(q0,{size:13})," API 키"]}),s.jsx("span",{className:`inline-block px-3 py-1 rounded-lg text-xs font-semibold ${a?"bg-emerald-500/15 text-emerald-300 border border-emerald-500/40":"bg-rose-500/15 text-rose-300 border border-rose-500/40"}`,children:a?"설정됨":"미설정"}),s.jsx("p",{className:"text-[11px] text-slate-500 mt-1.5",children:"키는 서버 환경변수(ANTHROPIC_API_KEY)로만 주입되며 화면·응답·로그에 노출되지 않습니다."})]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("button",{onClick:A,disabled:h||f,className:"flex items-center gap-1.5 px-4 py-2 rounded-lg bg-brand text-ink text-sm font-semibold disabled:opacity-40",children:[s.jsx(lm,{size:15})," ",h?"저장 중…":"저장"]}),j&&s.jsx("span",{className:"text-emerald-300 text-xs",children:"저장됨"})]})]}),s.jsxs("section",{className:"bg-card border border-edge rounded-xl p-5",children:[s.jsxs("h2",{className:"text-sm font-semibold mb-2 flex items-center gap-2",children:[s.jsx(VL,{size:16,className:"text-brand"})," 연결 테스트"]}),s.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"저장된 설정 기준으로 선택한 제공자에 짧은 ping 을 보내 연결을 확인합니다(요약 결과만)."}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("button",{onClick:C,disabled:g,className:"px-4 py-2 rounded-lg bg-card border border-edge text-sm disabled:opacity-40 hover:border-brand/50",children:g?"테스트 중…":"테스트 실행"}),x&&s.jsx("span",{className:`text-sm ${_}`,role:"status","aria-live":"polite",children:x.message})]}),s.jsx("p",{className:"text-[11px] text-slate-500 mt-3",children:"먼저 변경 사항을 저장한 뒤 테스트하세요. Claude 실패 시 Ollama 로 자동 폴백합니다."})]})]})]})}function _A(e){var n,r,a;const t=((r=(n=e==null?void 0:e.response)==null?void 0:n.data)==null?void 0:r.message)||"";return((a=e==null?void 0:e.response)==null?void 0:a.status)===403?"권한이 없습니다 (SuperAdmin 전용).":/409|exist|이미/i.test(t)?"이미 존재하는 사용자명입니다.":/last|마지막|423/i.test(t)?"마지막 SuperAdmin은 강등/삭제/비활성화할 수 없습니다.":/404|not found/i.test(t)?"대상 사용자를 찾을 수 없습니다.":"요청을 처리하지 못했습니다. 잠시 후 다시 시도하세요."}function Lye(){const[e,t]=w.useState([]),[n,r]=w.useState({username:"",password:"",displayName:"",role:"WORKER"}),[a,i]=w.useState(!1),[l,o]=w.useState(""),c=()=>kB().then(y=>{var p;t(((p=y.data)==null?void 0:p.data)||[]),o("")}).catch(y=>o(_A(y)));w.useEffect(()=>{c()},[]);const u=async y=>{try{await y(),o(""),await c()}catch(p){o(_A(p))}},f=async()=>{if(!n.username||!n.password){o("사용자명과 비밀번호를 입력하세요.");return}await u(async()=>{await MB(n),r({username:"",password:"",displayName:"",role:"WORKER"}),i(!1)})},d=(y,p)=>u(()=>PB(y.id,p)),h=y=>u(()=>$B(y.id,!y.active)),m=y=>{const p=window.prompt(`'${y.username}' 의 새 비밀번호`);p&&u(()=>RB(y.id,p))},j=y=>{window.confirm(`'${y.username}' 삭제?`)&&u(()=>DB(y.id))};return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[s.jsx(om,{className:"text-brand",size:20})," 사용자 / 권한"]}),s.jsxs("button",{onClick:()=>i(!a),className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-brand text-ink text-sm font-semibold",children:[s.jsx(lt,{size:16})," 새 사용자"]})]}),l&&s.jsx("div",{className:"bg-rose-500/10 border border-rose-500/40 text-rose-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:l}),a&&s.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-6 grid grid-cols-5 gap-3",children:[s.jsx("input",{placeholder:"사용자명",value:n.username,onChange:y=>r({...n,username:y.target.value}),className:"inp"}),s.jsx("input",{placeholder:"표시 이름",value:n.displayName,onChange:y=>r({...n,displayName:y.target.value}),className:"inp"}),s.jsx("input",{placeholder:"비밀번호",type:"password",value:n.password,onChange:y=>r({...n,password:y.target.value}),className:"inp"}),s.jsx("select",{value:n.role,onChange:y=>r({...n,role:y.target.value}),className:"inp",children:rw.map(y=>s.jsx("option",{value:y,children:y},y))}),s.jsx("button",{onClick:f,className:"px-4 rounded-lg bg-brand text-ink text-sm font-semibold",children:"저장"})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"ID"}),s.jsx("th",{className:"text-left",children:"사용자명"}),s.jsx("th",{className:"text-left",children:"표시 이름"}),s.jsx("th",{className:"text-left",children:"역할"}),s.jsx("th",{className:"text-left",children:"상태"}),s.jsx("th",{className:"text-left",children:"생성일"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(y=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsx("td",{className:"py-3 px-4 text-slate-500",children:y.id}),s.jsx("td",{className:"font-medium",children:y.username}),s.jsx("td",{className:"text-slate-400",children:y.displayName||"-"}),s.jsx("td",{children:s.jsx("select",{value:y.role,onChange:p=>d(y,p.target.value),className:"px-2 py-1 rounded-md bg-ink border border-edge text-xs focus:border-brand outline-none",children:rw.map(p=>s.jsx("option",{value:p,children:p},p))})}),s.jsx("td",{children:s.jsx("span",{className:`inline-block px-2 py-0.5 rounded-md text-xs font-medium ${y.active?"bg-accent/15 text-accent":"bg-slate-500/15 text-slate-400"}`,children:y.active?"활성":"비활성"})}),s.jsx("td",{className:"text-slate-500 text-xs",children:y.createdAt?new Date(y.createdAt).toLocaleString("ko-KR"):"-"}),s.jsx("td",{className:"px-4",children:s.jsxs("div",{className:"flex items-center justify-end gap-3",children:[s.jsx("button",{onClick:()=>h(y),title:y.active?"비활성화":"활성화",className:"text-slate-400 hover:text-brand",children:s.jsx(PT,{size:16})}),s.jsx("button",{onClick:()=>m(y),title:"비밀번호 재설정",className:"text-slate-400 hover:text-brand",children:s.jsx(q0,{size:16})}),s.jsx("button",{onClick:()=>j(y),title:"삭제",className:"text-rose-400 hover:text-rose-300",children:s.jsx(ir,{size:16})})]})})]},y.id)),e.length===0&&s.jsx("tr",{children:s.jsx("td",{colSpan:7,className:"py-6 text-center text-slate-500",children:"사용자가 없습니다."})})]})]})})]})}function zye(){const[e,t]=w.useState([]),[n,r]=w.useState(""),[a,i]=w.useState(""),[l,o]=w.useState(""),c=()=>LB(n,a,200).then(u=>{var f;t(((f=u.data)==null?void 0:f.data)||[]),o("")}).catch(u=>{var f;return o(((f=u==null?void 0:u.response)==null?void 0:f.status)===403?"권한이 없습니다 (Manager+).":"감사 로그를 불러오지 못했습니다.")});return w.useEffect(()=>{c()},[]),s.jsxs("div",{children:[s.jsx("div",{className:"flex items-center justify-between mb-6",children:s.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[s.jsx(LT,{className:"text-brand",size:20})," 감사 로그"]})}),s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx("input",{placeholder:"action 필터",value:n,onChange:u=>r(u.target.value),onKeyDown:u=>u.key==="Enter"&&c(),className:"inp w-44"}),s.jsx("input",{placeholder:"actor 필터",value:a,onChange:u=>i(u.target.value),onKeyDown:u=>u.key==="Enter"&&c(),className:"inp w-44"}),s.jsxs("button",{onClick:c,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm hover:border-brand",children:[s.jsx(Yo,{size:15})," 검색"]})]}),l&&s.jsx("div",{className:"bg-rose-500/10 border border-rose-500/40 text-rose-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:l}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"시각"}),s.jsx("th",{className:"text-left",children:"행위자"}),s.jsx("th",{className:"text-left",children:"액션"}),s.jsx("th",{className:"text-left",children:"대상"}),s.jsx("th",{className:"text-left",children:"상세"})]})}),s.jsxs("tbody",{children:[e.map(u=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsx("td",{className:"py-3 px-4 text-slate-500 text-xs whitespace-nowrap",children:u.createdAt?new Date(u.createdAt).toLocaleString("ko-KR"):"-"}),s.jsx("td",{className:"text-slate-300",children:u.actor}),s.jsx("td",{children:s.jsx("span",{className:"px-2 py-0.5 rounded bg-brand/15 text-brand text-xs border border-brand/30",children:u.action})}),s.jsx("td",{className:"text-slate-400 font-mono text-xs",children:u.target||"-"}),s.jsx("td",{className:"text-slate-400 text-xs truncate max-w-[360px]",children:u.detail||"-"})]},u.id)),e.length===0&&s.jsx("tr",{children:s.jsx("td",{colSpan:5,className:"py-6 text-center text-slate-500",children:"감사 로그가 없습니다."})})]})]})})]})}function Iye(){const[e,t]=w.useState([]),[n,r]=w.useState({}),[a,i]=w.useState(""),[l,o]=w.useState(""),c=ez(),u=()=>zB().then(d=>{var j;const h=((j=d.data)==null?void 0:j.data)||[],m=Array.isArray(h)?h:Object.entries(h).map(([y,p])=>({key:y,value:String(p)}));t(m),o("")}).catch(d=>{var h;return o(((h=d==null?void 0:d.response)==null?void 0:h.status)===403?"권한이 없습니다 (Manager+).":"시스템 설정을 불러오지 못했습니다.")});w.useEffect(()=>{u()},[]);const f=async d=>{var h;i(""),o("");try{await IB(d,n[d]??""),i(`'${d}' 저장됨`),u()}catch(m){o(((h=m==null?void 0:m.response)==null?void 0:h.status)===403?"SuperAdmin 권한이 필요합니다.":"저장 실패")}};return s.jsxs("div",{children:[s.jsx("div",{className:"flex items-center justify-between mb-6",children:s.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[s.jsx(zT,{className:"text-brand",size:20})," 시스템 설정"]})}),a&&s.jsx("div",{className:"bg-brand/10 border border-brand/30 text-brand text-sm rounded-lg px-4 py-2.5 mb-4",children:a}),l&&s.jsx("div",{className:"bg-rose-500/10 border border-rose-500/40 text-rose-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:l}),!c&&s.jsx("div",{className:"bg-amber-500/10 border border-amber-500/30 text-amber-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:"조회 전용입니다. 설정 변경은 SuperAdmin 권한이 필요합니다."}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"키"}),s.jsx("th",{className:"text-left",children:"값"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(d=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsxs("td",{className:"py-3 px-4 font-mono text-xs text-brand align-top",children:[d.key,d.description&&s.jsx("div",{className:"text-[11px] text-slate-500 font-sans mt-0.5",children:d.description})]}),s.jsx("td",{className:"py-3",children:s.jsx("input",{className:"inp",defaultValue:d.value,disabled:!c,onChange:h=>r({...n,[d.key]:h.target.value})})}),s.jsx("td",{className:"px-4 text-right align-top",children:c&&s.jsxs("button",{onClick:()=>f(d.key),className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-brand text-ink text-xs font-semibold",children:[s.jsx(lm,{size:13})," 저장"]})})]},d.key)),e.length===0&&s.jsx("tr",{children:s.jsx("td",{colSpan:3,className:"py-6 text-center text-slate-500",children:"설정 항목이 없습니다."})})]})]})})]})}const Bye="https://itsm.zioinfo.co.kr";function Uye(){const[e,t]=w.useState(null),[n,r]=w.useState(!0),[a,i]=w.useState(""),[l,o]=w.useState(!1),c=()=>{r(!0),i(""),fetch(`${Bye}/api/app/public-latest`).then(f=>f.json()).then(f=>t(f)).catch(()=>i("버전 정보를 불러올 수 없습니다. (중앙 앱 저장소 연결 실패)")).finally(()=>r(!1))};w.useEffect(()=>{c()},[]);const u=async()=>{if(e!=null&&e.landing_url)try{await navigator.clipboard.writeText(e.landing_url),o(!0),setTimeout(()=>o(!1),2e3)}catch{}};return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(qg,{className:"text-brand",size:22}),s.jsx("h1",{className:"text-xl font-bold",children:"GUARDiA 통합 메신저 앱 설치"})]}),s.jsxs("button",{onClick:c,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:[s.jsx($T,{size:15})," 새로고침"]})]}),s.jsxs("p",{className:"text-sm text-slate-400 mb-6",children:["QR 코드를 스캔하면 ",s.jsx("span",{className:"text-brand font-semibold",children:"GUARDiA Messenger"})," 앱 설치 페이지로 이동합니다. 앱스토어 설치가 필요 없으며, 앱 업로드·버전 관리는 GUARDiA Manager에서 일원화되어 있습니다."]}),n&&s.jsx("div",{className:"text-slate-400 text-sm",children:"불러오는 중…"}),a&&s.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&&s.jsxs("div",{className:"bg-card border border-edge rounded-xl p-8 text-center text-slate-400",children:[s.jsx(qg,{size:36,className:"mx-auto mb-3 text-slate-600"}),"아직 등록된 앱 버전이 없습니다.",s.jsx("br",{}),s.jsx("span",{className:"text-xs",children:"GUARDiA Manager에서 APK를 업로드하면 여기에 QR이 표시됩니다."})]}),!n&&!a&&(e==null?void 0:e.has_version)&&s.jsxs("div",{className:"bg-card border border-edge rounded-xl p-6 grid md:grid-cols-[200px_1fr] gap-6 items-start",children:[s.jsx("div",{className:"bg-white rounded-xl p-3 flex items-center justify-center",children:s.jsx("img",{src:e.qr_url,alt:"앱 설치 QR",className:"w-44 h-44"})}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"text-lg font-bold",children:e.app_name||"GUARDiA Messenger"}),s.jsxs("span",{className:"px-2 py-0.5 rounded-md bg-brand2 text-white text-xs font-semibold",children:["v",e.version]})]}),s.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&&s.jsxs("div",{className:"mb-4",children:[s.jsx("div",{className:"text-[11px] font-semibold text-slate-500 uppercase tracking-wider mb-1",children:"변경점"}),s.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})]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.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:[s.jsx(LL,{size:15})," 설치 페이지 열기"]}),s.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:[s.jsx(DL,{size:15})," APK 직접 다운로드"]}),s.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:[l?s.jsx(ST,{size:15,className:"text-accent"}):s.jsx(RL,{size:15}),l?"복사됨":"다운로드 링크 복사"]})]}),s.jsx("div",{className:"mt-4 text-[12px] text-slate-500 leading-relaxed",children:'📱 Android: APK 다운로드 후 설정 → 보안 → "알 수 없는 소스" 허용 → 설치. 앱스토어 등록이 필요 없습니다.'})]})]})]})}const aj={background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,boxShadow:"var(--uiws-shadow)"};function ta({title:e,subtitle:t,actions:n}){return s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-end",marginBottom:20},children:[s.jsxs("div",{children:[s.jsx("h1",{style:{fontSize:22,fontWeight:700,color:"var(--uiws-text)"},children:e}),t&&s.jsx("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginTop:4},children:t})]}),s.jsx("div",{style:{display:"flex",gap:8},children:n})]})}function tf({children:e,style:t}){return s.jsx("div",{style:{...aj,padding:18,...t},children:e})}function se({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 s.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 Se({value:e,onChange:t,placeholder:n,type:r="text",style:a}){return s.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 Ee({label:e,children:t}){return s.jsxs("label",{style:{display:"block",marginBottom:12},children:[s.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:e}),t]})}function Ui({children:e}){return s.jsx(tf,{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:16},children:e})}function Ks({columns:e,rows:t,rowKey:n,onRowClick:r,empty:a="데이터가 없습니다."}){return s.jsx("div",{style:{...aj,overflow:"hidden"},children:s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[s.jsx("thead",{children:s.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:e.map(i=>s.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))})}),s.jsx("tbody",{children:t.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:e.length,style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:a})}):t.map(i=>s.jsx("tr",{onClick:()=>r==null?void 0:r(i),style:{cursor:r?"pointer":"default",borderBottom:"1px solid var(--uiws-border)"},onMouseEnter:l=>l.currentTarget.style.background="var(--uiws-row-hover)",onMouseLeave:l=>l.currentTarget.style.background="transparent",children:e.map(l=>s.jsx("td",{style:{padding:"11px 14px",textAlign:l.align??"left"},children:l.render?l.render(i):String(i[l.key]??"")},l.key))},n(i)))})]})})}function m$({page:e,totalPages:t,onChange:n}){return t<=1?null:s.jsxs("div",{style:{display:"flex",gap:6,justifyContent:"center",marginTop:16},children:[s.jsx(se,{variant:"ghost",disabled:e<=0,onClick:()=>n(e-1),children:"이전"}),s.jsxs("span",{style:{alignSelf:"center",fontSize:13,color:"var(--uiws-text-muted)"},children:[e+1," / ",t]}),s.jsx(se,{variant:"ghost",disabled:e>=t-1,onClick:()=>n(e+1),children:"다음"})]})}function Ys({yn:e,yes:t="읽음",no:n="안읽음"}){const r=e==="Y";return s.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 kr({title:e,onClose:t,children:n,footer:r}){return s.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:s.jsxs("div",{onClick:a=>a.stopPropagation(),style:{...aj,width:"min(560px, 92vw)",maxHeight:"88vh",overflow:"auto",padding:22},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[s.jsx("h2",{style:{fontSize:17,fontWeight:700,color:"var(--uiws-text)"},children:e}),s.jsx("button",{onClick:t,style:{background:"none",border:"none",color:"var(--uiws-text-muted)",fontSize:20,cursor:"pointer"},children:"×"})]}),s.jsx("div",{children:n}),r&&s.jsx("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",marginTop:18},children:r})]})})}function or({label:e="불러오는 중..."}){return s.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)",fontSize:13},children:e})}const TA={ONGOING:"진행중",DONE:"종료"};function qye(){const[e,t]=w.useState([]),[n,r]=w.useState(0),[a,i]=w.useState(0),[l,o]=w.useState([]),[c,u]=w.useState(""),[f,d]=w.useState(""),[h,m]=w.useState(!1),[j,y]=w.useState(!1),[p,v]=w.useState(null),g=async()=>{m(!0);try{const S=(await tU({page:n,size:20,progressCd:c||void 0})).data.data;t(S.content??[]),i(S.totalPages??0);const N=await nU({});o(N.data.data??[])}finally{m(!1)}};w.useEffect(()=>{g()},[n,c]);const b=[{key:"workDate",header:"근무일자",width:120},{key:"title",header:"제목"},{key:"writerNm",header:"작성자",width:120},{key:"progressCd",header:"진행",width:90,render:O=>TA[O.progressCd]??O.progressCd},{key:"commentCount",header:"댓글",width:70,align:"center"}],x=async O=>{const S=await aU(O.worklogId);v(S.data.data)};return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(ta,{title:"업무일지",subtitle:"UIWS 이식 · 업무일지 작성/조회/진행관리",actions:s.jsx(se,{onClick:()=>y(!0),children:"+ 업무일지 작성"})}),s.jsx("div",{style:{display:"flex",gap:10,marginBottom:16,flexWrap:"wrap"},children:l.map(O=>s.jsxs("div",{onClick:()=>{u(c===O.progressCd?"":O.progressCd),r(0)},style:{cursor:"pointer",padding:"12px 18px",borderRadius:10,minWidth:130,background:"var(--uiws-surface)",border:`1px solid ${c===O.progressCd?"var(--uiws-primary)":"var(--uiws-border)"}`},children:[s.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)"},children:O.progressNm}),s.jsx("div",{style:{fontSize:24,fontWeight:700,color:"var(--uiws-primary)"},children:O.count})]},O.progressCd))}),s.jsxs(Ui,{children:[s.jsx(Se,{value:f,onChange:d,placeholder:"제목 검색",style:{minWidth:220}}),s.jsx(se,{variant:"ghost",onClick:()=>{r(0),g()},children:"검색"}),c&&s.jsxs(se,{variant:"ghost",onClick:()=>u(""),children:["필터 해제: ",TA[c]??c]})]}),h?s.jsx(or,{}):s.jsxs(s.Fragment,{children:[s.jsx(Ks,{columns:b,rows:e,rowKey:O=>O.worklogId,onRowClick:x,empty:"업무일지가 없습니다."}),s.jsx(m$,{page:n,totalPages:a,onChange:r})]}),j&&s.jsx(Hye,{onClose:()=>y(!1),onSaved:()=>{y(!1),g()}}),p&&s.jsx(Fye,{detail:p,onClose:()=>v(null),onChanged:()=>{v(null),g()}})]})}function Hye({onClose:e,onSaved:t}){const[n,r]=w.useState(""),[a,i]=w.useState(localStorage.getItem("mes_user")||"admin"),[l,o]=w.useState(new Date().toISOString().slice(0,10)),[c,u]=w.useState("NORMAL"),[f,d]=w.useState(""),h=async()=>{var m,j;d("");try{await rU({title:n,writerId:a,workDate:l,workStatusCd:c,progressCd:"ONGOING",details:[]}),t()}catch(y){d(((j=(m=y==null?void 0:y.response)==null?void 0:m.data)==null?void 0:j.message)||"저장 실패")}};return s.jsxs(kr,{title:"업무일지 작성",onClose:e,footer:s.jsxs(s.Fragment,{children:[s.jsx(se,{variant:"ghost",onClick:e,children:"취소"}),s.jsx(se,{onClick:h,children:"저장"})]}),children:[s.jsx(Ee,{label:"제목",children:s.jsx(Se,{value:n,onChange:r,style:{width:"100%"}})}),s.jsx(Ee,{label:"작성자 ID",children:s.jsx(Se,{value:a,onChange:i,style:{width:"100%"}})}),s.jsx(Ee,{label:"근무일자",children:s.jsx(Se,{type:"date",value:l,onChange:o,style:{width:"100%"}})}),s.jsx(Ee,{label:"근무상태 코드",children:s.jsx(Se,{value:c,onChange:u,style:{width:"100%"}})}),f&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:f})]})}function Fye({detail:e,onClose:t,onChanged:n}){var u;const[r,a]=w.useState(""),[i,l]=w.useState(""),o=async()=>{await iU(e.worklogId),n()},c=async()=>{var f,d;l("");try{await sU(e.worklogId,r),a(""),n()}catch(h){l(((d=(f=h==null?void 0:h.response)==null?void 0:f.data)==null?void 0:d.message)||"댓글 등록 실패")}};return s.jsxs(kr,{title:e.title,onClose:t,footer:s.jsxs(s.Fragment,{children:[s.jsx(se,{variant:"danger",onClick:o,children:"삭제"}),s.jsx(se,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[s.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:12},children:[e.writerNm," · ",e.workDate," · ",e.progressCd]}),s.jsxs("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:["시간대별 상세 ",((u=e.details)==null?void 0:u.length)??0,"건"]}),s.jsxs("div",{style:{marginTop:14},children:[s.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:8},children:"댓글"}),(e.comments??[]).map(f=>s.jsxs("div",{style:{padding:"8px 10px",borderRadius:8,background:"var(--uiws-surface-2)",marginBottom:6,fontSize:13},children:[s.jsx("b",{children:f.writerNm})," · ",s.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:f.createdAt}),s.jsx("br",{}),f.cmtContent]},f.cmtId)),s.jsxs("div",{style:{display:"flex",gap:8,marginTop:8},children:[s.jsx(Se,{value:r,onChange:a,placeholder:"댓글 입력(관리자/매니저)",style:{flex:1}}),s.jsx(se,{onClick:c,children:"등록"})]}),i&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:12,marginTop:6},children:i})]})]})}const Gye=["일","월","화","수","목","금","토"];function Kye(){const[e,t]=w.useState(new Date),[n,r]=w.useState("PERSONAL"),[a,i]=w.useState([]),[l,o]=w.useState(!1),[c,u]=w.useState(null),[f,d]=w.useState(null),h=`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}`,m=async()=>{o(!0);try{const x=await QB({type:n,view:"month",baseDate:`${h}-01`});i(x.data.data??[])}finally{o(!1)}};w.useEffect(()=>{m()},[h,n]);const y=new Date(e.getFullYear(),e.getMonth(),1).getDay(),p=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),v=[...Array(y).fill(null),...Array.from({length:p},(x,O)=>O+1)],g=x=>{const O=`${h}-${String(x).padStart(2,"0")}`;return a.filter(S=>(S.startDt??"").slice(0,10)<=O&&O<=(S.endDt??"").slice(0,10))},b=x=>t(new Date(e.getFullYear(),e.getMonth()+x,1));return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(ta,{title:"일정",subtitle:"UIWS 이식 · 개인/부서 일정 달력",actions:s.jsx(se,{onClick:()=>u(`${h}-01`),children:"+ 일정 등록"})}),s.jsxs(tf,{style:{display:"flex",gap:10,alignItems:"center",marginBottom:16},children:[s.jsx(se,{variant:"ghost",onClick:()=>b(-1),children:"‹ 이전"}),s.jsx("div",{style:{fontWeight:700,minWidth:130,textAlign:"center",color:"var(--uiws-text)"},children:h}),s.jsx(se,{variant:"ghost",onClick:()=>b(1),children:"다음 ›"}),s.jsx("div",{style:{flex:1}}),s.jsx(se,{variant:n==="PERSONAL"?"primary":"ghost",onClick:()=>r("PERSONAL"),children:"개인"}),s.jsx(se,{variant:n==="DEPT"?"primary":"ghost",onClick:()=>r("DEPT"),children:"부서"})]}),l?s.jsx(or,{}):s.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"hidden"},children:s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(7,1fr)"},children:[Gye.map((x,O)=>s.jsx("div",{style:{padding:"10px 0",textAlign:"center",fontSize:12,fontWeight:600,color:O===0?"var(--uiws-danger)":"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:x},x)),v.map((x,O)=>s.jsxs("div",{onClick:()=>x&&u(`${h}-${String(x).padStart(2,"0")}`),style:{minHeight:96,padding:6,borderRight:"1px solid var(--uiws-border)",borderBottom:"1px solid var(--uiws-border)",cursor:x?"pointer":"default"},children:[x&&s.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:4},children:x}),x&&g(x).slice(0,3).map(S=>s.jsx("div",{onClick:N=>{N.stopPropagation(),JB(S.scheduleId).then(A=>d(A.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:S.title},S.scheduleId))]},O))]})}),c&&s.jsx(Yye,{date:c,type:n,onClose:()=>u(null),onSaved:()=>{u(null),m()}}),f&&s.jsx(Vye,{detail:f,onClose:()=>d(null),onDeleted:()=>{d(null),m()}})]})}function Yye({date:e,type:t,onClose:n,onSaved:r}){const[a,i]=w.useState(""),[l,o]=w.useState(`${e}T09:00:00`),[c,u]=w.useState(`${e}T18:00:00`),[f,d]=w.useState(""),[h,m]=w.useState(""),j=async()=>{var y,p;m("");try{await ZB({scheType:t,title:a,startDt:l,endDt:c,content:f,attachmentIds:[]}),r()}catch(v){m(((p=(y=v==null?void 0:v.response)==null?void 0:y.data)==null?void 0:p.message)||"저장 실패")}};return s.jsxs(kr,{title:"일정 등록",onClose:n,footer:s.jsxs(s.Fragment,{children:[s.jsx(se,{variant:"ghost",onClick:n,children:"취소"}),s.jsx(se,{onClick:j,children:"저장"})]}),children:[s.jsx(Ee,{label:"제목",children:s.jsx(Se,{value:a,onChange:i,style:{width:"100%"}})}),s.jsx(Ee,{label:"시작(yyyy-MM-ddTHH:mm:ss)",children:s.jsx(Se,{value:l,onChange:o,style:{width:"100%"}})}),s.jsx(Ee,{label:"종료",children:s.jsx(Se,{value:c,onChange:u,style:{width:"100%"}})}),s.jsx(Ee,{label:"내용",children:s.jsx(Se,{value:f,onChange:d,style:{width:"100%"}})}),h&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}function Vye({detail:e,onClose:t,onDeleted:n}){const r=async()=>{await eU(e.scheduleId),n()};return s.jsxs(kr,{title:e.title,onClose:t,footer:s.jsxs(s.Fragment,{children:[s.jsx(se,{variant:"danger",onClick:r,children:"삭제"}),s.jsx(se,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[s.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:8},children:[e.scheType," · ",e.startDt," ~ ",e.endDt]}),s.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)"},children:e.content||"내용 없음"})]})}function Wye(){const[e,t]=w.useState("received"),[n,r]=w.useState([]),[a,i]=w.useState(0),[l,o]=w.useState(0),[c,u]=w.useState(""),[f,d]=w.useState(!1),[h,m]=w.useState(!1),[j,y]=w.useState(null),p=async()=>{d(!0);try{const S=(await(e==="received"?WB:YB)({page:a,size:20,titleKeyword:c||void 0})).data.data;r(S.content??[]),o(S.totalPages??0)}finally{d(!1)}};w.useEffect(()=>{p()},[e,a]);const v=[{key:"title",header:"제목"},{key:"senderNm",header:"보낸사람",width:130},{key:"sentAt",header:"받은시각",width:170},{key:"readYn",header:"상태",width:90,render:x=>s.jsx(Ys,{yn:x.readYn})}],g=[{key:"title",header:"제목"},{key:"receiverSummary",header:"받는사람",width:160},{key:"open",header:"개봉",width:100,align:"center",render:x=>`${x.openCount}/${x.totalCount}`},{key:"sentAt",header:"보낸시각",width:170}],b=async x=>{const O=e==="received"?await XB(x.messageId):await VB(x.messageId);y({...O.data.data,_tab:e}),e==="received"&&p()};return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(ta,{title:"쪽지",subtitle:"UIWS 이식 · 사내 쪽지 송수신",actions:s.jsx(se,{onClick:()=>m(!0),children:"+ 쪽지 보내기"})}),s.jsxs(Ui,{children:[s.jsx(se,{variant:e==="received"?"primary":"ghost",onClick:()=>{t("received"),i(0)},children:"받은쪽지함"}),s.jsx(se,{variant:e==="sent"?"primary":"ghost",onClick:()=>{t("sent"),i(0)},children:"보낸쪽지함"}),s.jsx("div",{style:{flex:1}}),s.jsx(Se,{value:c,onChange:u,placeholder:"제목 검색",style:{minWidth:200}}),s.jsx(se,{variant:"ghost",onClick:()=>{i(0),p()},children:"검색"})]}),f?s.jsx(or,{}):s.jsxs(s.Fragment,{children:[s.jsx(Ks,{columns:e==="received"?v:g,rows:n,rowKey:x=>x.messageId,onRowClick:b,empty:"쪽지가 없습니다."}),s.jsx(m$,{page:a,totalPages:l,onChange:i})]}),h&&s.jsx(Xye,{onClose:()=>m(!1),onSent:()=>{m(!1),p()}}),j&&s.jsx(Qye,{detail:j,onClose:()=>y(null)})]})}function Xye({onClose:e,onSent:t}){const[n,r]=w.useState(""),[a,i]=w.useState(""),[l,o]=w.useState(""),[c,u]=w.useState(""),f=async()=>{var d,h;u("");try{await KB({title:a,content:l,receivers:[{receiverId:n,rcvType:"RECV"}]}),t()}catch(m){u(((h=(d=m==null?void 0:m.response)==null?void 0:d.data)==null?void 0:h.message)||"전송 실패")}};return s.jsxs(kr,{title:"쪽지 보내기",onClose:e,footer:s.jsxs(s.Fragment,{children:[s.jsx(se,{variant:"ghost",onClick:e,children:"취소"}),s.jsx(se,{onClick:f,children:"보내기"})]}),children:[s.jsx(Ee,{label:"받는사람 ID",children:s.jsx(Se,{value:n,onChange:r,style:{width:"100%"}})}),s.jsx(Ee,{label:"제목",children:s.jsx(Se,{value:a,onChange:i,style:{width:"100%"}})}),s.jsx(Ee,{label:"내용",children:s.jsx(Se,{value:l,onChange:o,style:{width:"100%"}})}),c&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:c})]})}function Qye({detail:e,onClose:t}){return s.jsxs(kr,{title:e.title,onClose:t,footer:s.jsx(se,{variant:"ghost",onClick:t,children:"닫기"}),children:[s.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:10},children:[e._tab==="received"?`보낸사람: ${e.senderNm}`:`개봉 ${e.openCount}/${e.totalCount}`," · ",e.sentAt]}),s.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)",whiteSpace:"pre-wrap"},children:e.content}),e._tab==="sent"&&e.receivers&&s.jsxs("div",{style:{marginTop:14},children:[s.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:"수신자 개봉현황"}),e.receivers.map((n,r)=>s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:13,padding:"4px 0"},children:[s.jsxs("span",{children:[n.receiverNm," (",n.rcvType,")"]}),s.jsx(Ys,{yn:n.readYn})]},r))]})]})}function Zye(){const[e,t]=w.useState("personal"),[n,r]=w.useState(null),[a,i]=w.useState(!1),l=new Date().toISOString().slice(0,10),o=new Date(Date.now()-6*864e5).toISOString().slice(0,10),[c,u]=w.useState(o),[f,d]=w.useState(l),h=async()=>{i(!0);try{const y=await(e==="personal"?lU:oU)({fromDate:c,toDate:f});r(y.data.data)}finally{i(!1)}};w.useEffect(()=>{h()},[e]);const m=n?[...n.fixedColumns,...n.dynamicColumns]:[];return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(ta,{title:"업무통계",subtitle:"UIWS 이식 · 근무현황 동적 피벗"}),s.jsxs(Ui,{children:[s.jsx(se,{variant:e==="personal"?"primary":"ghost",onClick:()=>t("personal"),children:"개인별 근무현황"}),s.jsx(se,{variant:e==="company"?"primary":"ghost",onClick:()=>t("company"),children:"업체별 근무현황"}),s.jsx("div",{style:{flex:1}}),s.jsx(Se,{type:"date",value:c,onChange:u}),s.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:"~"}),s.jsx(Se,{type:"date",value:f,onChange:d}),s.jsx(se,{variant:"ghost",onClick:h,children:"조회"})]}),a?s.jsx(or,{}):!n||n.rows.length===0?s.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:"집계 데이터가 없습니다."}):s.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"auto"},children:s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[s.jsx("thead",{children:s.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:m.map(j=>s.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:j.label},j.key))})}),s.jsx("tbody",{children:n.rows.map((j,y)=>s.jsx("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:m.map(p=>s.jsx("td",{style:{padding:"10px 14px"},children:String(j[p.key]??"")},p.key))},y))})]})})]})}function Nb(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (SUPERADMIN 전용).":((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 Jye(){const[e,t]=w.useState([]),[n,r]=w.useState(""),[a,i]=w.useState(!1),[l,o]=w.useState(""),[c,u]=w.useState(new Set),[f,d]=w.useState(null),[h,m]=w.useState(!1),j=async(g=n)=>{var b;i(!0),o("");try{const x=await cU(g||void 0);t(((b=x.data.data)==null?void 0:b.content)??[]),u(new Set)}catch(x){o(Nb(x))}finally{i(!1)}};w.useEffect(()=>{j("")},[]);const y=g=>u(b=>{const x=new Set(b);return x.has(g)?x.delete(g):x.add(g),x}),p=async()=>{if(c.size!==0&&window.confirm(`선택한 권한 ${c.size}건을 삭제하시겠습니까?`))try{await dU([...c]),await j()}catch(g){o(Nb(g))}},v=[{key:"sel",header:"",width:44,align:"center",render:g=>s.jsx("input",{type:"checkbox",checked:c.has(g.roleId),onClick:b=>b.stopPropagation(),onChange:()=>y(g.roleId)})},{key:"roleId",header:"권한ID",width:180},{key:"roleNm",header:"권한명"},{key:"roleDesc",header:"설명"},{key:"useYn",header:"사용",width:80,align:"center",render:g=>s.jsx(Ys,{yn:g.useYn,yes:"사용",no:"미사용"})}];return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(ta,{title:"권한 관리",subtitle:"시스템관리(권한) · 역할(Role) 등록/수정/삭제 — RBAC",actions:s.jsxs(s.Fragment,{children:[s.jsx(se,{variant:"danger",onClick:p,disabled:c.size===0,children:"선택 삭제"}),s.jsx(se,{onClick:()=>{d(null),m(!0)},children:"+ 권한 등록"})]})}),l&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:l}),s.jsxs(Ui,{children:[s.jsx(Se,{value:n,onChange:r,placeholder:"권한ID/권한명 검색",style:{minWidth:240}}),s.jsx(se,{variant:"ghost",onClick:()=>j(),children:"검색"})]}),a?s.jsx(or,{}):s.jsx(Ks,{columns:v,rows:e,rowKey:g=>g.roleId,onRowClick:g=>{d(g),m(!0)},empty:"등록된 권한이 없습니다."}),h&&s.jsx(eve,{role:f,onClose:()=>m(!1),onSaved:()=>{m(!1),j()}})]})}function eve({role:e,onClose:t,onSaved:n}){const r=!!e,[a,i]=w.useState((e==null?void 0:e.roleId)??""),[l,o]=w.useState((e==null?void 0:e.roleNm)??""),[c,u]=w.useState((e==null?void 0:e.roleDesc)??""),[f,d]=w.useState((e==null?void 0:e.useYn)??"Y"),[h,m]=w.useState(""),j=async()=>{if(m(""),!l.trim()){m("권한명은 필수입니다.");return}if(!r&&!a.trim()){m("권한ID는 필수입니다.");return}try{const y={roleId:a,roleNm:l,roleDesc:c,useYn:f};r?await fU(a,y):await uU(y),n()}catch(y){m(Nb(y))}};return s.jsxs(kr,{title:r?"권한 수정":"권한 등록",onClose:t,footer:s.jsxs(s.Fragment,{children:[s.jsx(se,{variant:"ghost",onClick:t,children:"취소"}),s.jsx(se,{onClick:j,children:"저장"})]}),children:[s.jsx(Ee,{label:"권한ID",children:s.jsx(Se,{value:a,onChange:i,style:{width:"100%",opacity:r?.6:1}})}),s.jsx(Ee,{label:"권한명",children:s.jsx(Se,{value:l,onChange:o,style:{width:"100%"}})}),s.jsx(Ee,{label:"설명",children:s.jsx(Se,{value:c,onChange:u,style:{width:"100%"}})}),s.jsx(Ee,{label:"사용 여부",children:s.jsxs("select",{value:f,onChange:y=>d(y.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:[s.jsx("option",{value:"Y",children:"사용"}),s.jsx("option",{value:"N",children:"미사용"})]})}),h&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}function zv(e){var t,n,r;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (SUPERADMIN 전용).":((r=(n=e==null?void 0:e.response)==null?void 0:n.data)==null?void 0:r.message)||"요청을 처리하지 못했습니다."}function tve(){const[e,t]=w.useState([]),[n,r]=w.useState(""),[a,i]=w.useState([]),[l,o]=w.useState(!1),[c,u]=w.useState(!1),[f,d]=w.useState(!1),[h,m]=w.useState(""),[j,y]=w.useState("");w.useEffect(()=>{o(!0),hU().then(b=>{var O;const x=((O=b.data.data)==null?void 0:O.content)??[];t(x),x.length>0&&r(x[0].roleId)}).catch(b=>y(zv(b))).finally(()=>o(!1))},[]),w.useEffect(()=>{n&&(u(!0),m(""),y(""),pU(n).then(b=>i(b.data.data??[])).catch(b=>y(zv(b))).finally(()=>u(!1)))},[n]);const p=(b,x)=>i(O=>O.map(S=>{if(S.menuId!==b)return S;const N=S[x]==="Y"?"N":"Y";return x==="writeYn"&&N==="Y"?{...S,writeYn:"Y",readYn:"Y"}:x==="readYn"&&N==="N"?{...S,readYn:"N",writeYn:"N"}:{...S,[x]:N}})),v=(b,x)=>i(O=>O.map(S=>x&&b==="writeYn"?{...S,writeYn:"Y",readYn:"Y"}:!x&&b==="readYn"?{...S,readYn:"N",writeYn:"N"}:{...S,[b]:x?"Y":"N"})),g=async()=>{d(!0),m(""),y("");try{await mU(n,a),m("메뉴 권한 매핑이 저장되었습니다.")}catch(b){y(zv(b))}finally{d(!1)}};return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(ta,{title:"역할-메뉴 권한",subtitle:"시스템관리(권한) · 역할별 메뉴 접근(읽기/쓰기) 매핑 — RBAC 핵심",actions:s.jsx(se,{onClick:g,disabled:f||!n,children:f?"저장 중...":"매핑 저장"})}),j&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:j}),h&&s.jsx("div",{style:{color:"var(--uiws-success)",fontSize:13,marginBottom:12},children:h}),s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"260px 1fr",gap:16,alignItems:"start"},children:[s.jsxs(tf,{style:{padding:0},children:[s.jsx("div",{style:{padding:"12px 16px",fontSize:12,fontWeight:600,color:"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:"역할 목록"}),l?s.jsx(or,{}):s.jsxs("div",{children:[e.length===0&&s.jsx("div",{style:{padding:20,fontSize:13,color:"var(--uiws-text-faint)"},children:"역할이 없습니다."}),e.map(b=>s.jsxs("div",{onClick:()=>r(b.roleId),style:{padding:"11px 16px",cursor:"pointer",fontSize:13,borderLeft:`3px solid ${n===b.roleId?"var(--uiws-primary)":"transparent"}`,background:n===b.roleId?"var(--uiws-primary-soft)":"transparent",color:n===b.roleId?"var(--uiws-primary)":"var(--uiws-text)"},children:[s.jsx("div",{style:{fontWeight:600},children:b.roleNm}),s.jsx("div",{style:{fontSize:11,color:"var(--uiws-text-muted)"},children:b.roleId})]},b.roleId))]})]}),s.jsx(tf,{style:{padding:0,overflow:"hidden"},children:c?s.jsx(or,{}):s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[s.jsx("thead",{children:s.jsxs("tr",{style:{background:"var(--uiws-surface-2)"},children:[s.jsx("th",{style:{textAlign:"left",padding:"11px 14px",color:"var(--uiws-text-muted)",fontWeight:600,fontSize:12,borderBottom:"1px solid var(--uiws-border)"},children:"메뉴"}),s.jsxs("th",{style:{width:120,padding:"8px 14px",color:"var(--uiws-text-muted)",fontSize:12,borderBottom:"1px solid var(--uiws-border)"},children:["읽기",s.jsx("br",{}),s.jsxs("label",{style:{fontWeight:400,fontSize:11},children:[s.jsx("input",{type:"checkbox",onChange:b=>v("readYn",b.target.checked)})," 전체"]})]}),s.jsxs("th",{style:{width:120,padding:"8px 14px",color:"var(--uiws-text-muted)",fontSize:12,borderBottom:"1px solid var(--uiws-border)"},children:["쓰기",s.jsx("br",{}),s.jsxs("label",{style:{fontWeight:400,fontSize:11},children:[s.jsx("input",{type:"checkbox",onChange:b=>v("writeYn",b.target.checked)})," 전체"]})]})]})}),s.jsx("tbody",{children:a.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:3,style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:"매핑 가능한 메뉴가 없습니다."})}):a.map(b=>s.jsxs("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:[s.jsxs("td",{style:{padding:"11px 14px"},children:[b.menuNm," ",s.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontSize:12},children:["(",b.menuId,")"]})]}),s.jsx("td",{style:{padding:"11px 14px",textAlign:"center"},children:s.jsx("input",{type:"checkbox",checked:b.readYn==="Y",onChange:()=>p(b.menuId,"readYn")})}),s.jsx("td",{style:{padding:"11px 14px",textAlign:"center"},children:s.jsx("input",{type:"checkbox",checked:b.writeYn==="Y",onChange:()=>p(b.menuId,"writeYn")})})]},b.menuId))})]})})]})]})}function Vd(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (SUPERADMIN 전용).":((n=e==null?void 0:e.response)==null?void 0:n.status)===409?"이미 존재하는 코드입니다.":((a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.message)||"요청을 처리하지 못했습니다."}function nve(){const[e,t]=w.useState([]),[n,r]=w.useState(""),[a,i]=w.useState(null),[l,o]=w.useState(""),[c,u]=w.useState(!1),[f,d]=w.useState(!1),[h,m]=w.useState(""),[j,y]=w.useState({open:!1,edit:null}),p=async(x="")=>{var O;u(!0),m("");try{const N=((O=(await yU(x||void 0)).data.data)==null?void 0:O.content)??[];t(N),!n&&N.length>0&&r(N[0].grpCd)}catch(S){m(Vd(S))}finally{u(!1)}};w.useEffect(()=>{p("")},[]);const v=async(x=n)=>{if(!x){i(null);return}d(!0);try{const S=(await vU(x)).data.data;i(S?{...S,values:S.values??[]}:null)}catch(O){m(Vd(O))}finally{d(!1)}};w.useEffect(()=>{v()},[n]);const g=async x=>{if(window.confirm(`코드그룹 '${x}' 와 하위 코드를 삭제하시겠습니까?`))try{await bU(x),n===x&&(r(""),i(null)),await p(l)}catch(O){m(Vd(O))}},b=[{key:"codeVal",header:"코드값",width:170},{key:"codeNm",header:"코드명"},{key:"sortOrd",header:"정렬",width:70,align:"center"},{key:"useYn",header:"사용",width:80,align:"center",render:x=>s.jsx(Ys,{yn:x.useYn,yes:"사용",no:"미사용"})}];return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(ta,{title:"공통코드 관리",subtitle:"시스템관리(권한) · 코드그룹/코드값 일괄 CRUD",actions:s.jsx(se,{onClick:()=>y({open:!0,edit:null}),children:"+ 코드그룹 등록"})}),h&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:h}),s.jsxs(Ui,{children:[s.jsx(Se,{value:l,onChange:o,placeholder:"코드그룹 검색",style:{minWidth:220}}),s.jsx(se,{variant:"ghost",onClick:()=>p(l),children:"검색"})]}),s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"300px 1fr",gap:16,alignItems:"start"},children:[s.jsxs(tf,{style:{padding:0},children:[s.jsx("div",{style:{padding:"12px 16px",fontSize:12,fontWeight:600,color:"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:"코드그룹"}),c?s.jsx(or,{}):s.jsxs("div",{children:[e.length===0&&s.jsx("div",{style:{padding:20,fontSize:13,color:"var(--uiws-text-faint)"},children:"코드그룹이 없습니다."}),e.map(x=>s.jsxs("div",{onClick:()=>r(x.grpCd),style:{padding:"11px 16px",cursor:"pointer",fontSize:13,display:"flex",justifyContent:"space-between",alignItems:"center",borderLeft:`3px solid ${n===x.grpCd?"var(--uiws-primary)":"transparent"}`,background:n===x.grpCd?"var(--uiws-primary-soft)":"transparent"},children:[s.jsxs("div",{children:[s.jsx("div",{style:{fontWeight:600,color:n===x.grpCd?"var(--uiws-primary)":"var(--uiws-text)"},children:x.grpNm}),s.jsx("div",{style:{fontSize:11,color:"var(--uiws-text-muted)"},children:x.grpCd})]}),s.jsx("div",{style:{display:"flex",gap:6},onClick:O=>O.stopPropagation(),children:s.jsx(se,{variant:"ghost",onClick:()=>g(x.grpCd),children:"삭제"})})]},x.grpCd))]})]}),s.jsxs("div",{children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:12},children:[s.jsxs("div",{style:{fontSize:14,fontWeight:600,color:"var(--uiws-text)"},children:["코드값 ",n&&s.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontWeight:400},children:["(",n,")"]})]}),s.jsx(se,{onClick:()=>a&&y({open:!0,edit:a}),disabled:!a,children:"그룹·코드값 편집"})]}),f?s.jsx(or,{}):s.jsx(Ks,{columns:b,rows:(a==null?void 0:a.values)??[],rowKey:x=>`${n}:${x.codeVal}`,empty:n?"코드값이 없습니다.":"코드그룹을 선택하세요."})]})]}),j.open&&s.jsx(ave,{grp:j.edit,onClose:()=>y({open:!1,edit:null}),onSaved:async x=>{y({open:!1,edit:null}),await p(l),x?(r(x),await v(x)):await v()}})]})}function rve({value:e,onChange:t}){return s.jsxs("select",{value:e,onChange:n=>t(n.target.value),style:{width:"100%",padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)"},children:[s.jsx("option",{value:"Y",children:"사용"}),s.jsx("option",{value:"N",children:"미사용"})]})}function ave({grp:e,onClose:t,onSaved:n}){const r=!!e,[a,i]=w.useState((e==null?void 0:e.grpCd)??""),[l,o]=w.useState((e==null?void 0:e.grpNm)??""),[c,u]=w.useState((e==null?void 0:e.useYn)??"Y"),[f,d]=w.useState(e!=null&&e.values?e.values.map(b=>({...b})):[]),[h,m]=w.useState(""),j=()=>d(b=>[...b,{codeVal:"",codeNm:"",sortOrd:b.length+1,useYn:"Y"}]),y=(b,x,O)=>d(S=>S.map((N,A)=>A===b?{...N,[x]:O}:N)),p=b=>d(x=>x.filter((O,S)=>S!==b)),v=async()=>{if(m(""),!r&&!a.trim()){m("그룹코드는 필수입니다.");return}if(!l.trim()){m("그룹명은 필수입니다.");return}for(const b of f)if(!b.codeVal.trim()||!b.codeNm.trim()){m("코드값과 코드명은 필수입니다.");return}try{const b={grpCd:a,grpNm:l,useYn:c,values:f.map(x=>({grpCd:a,codeVal:x.codeVal,codeNm:x.codeNm,sortOrd:Number(x.sortOrd)||0,useYn:x.useYn}))};r?await xU(a,b):await gU(b),n(a)}catch(b){m(Vd(b))}},g={width:"100%",padding:"6px 8px",borderRadius:6,fontSize:12,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)"};return s.jsxs(kr,{title:r?"코드그룹·코드값 편집":"코드그룹 등록",onClose:t,footer:s.jsxs(s.Fragment,{children:[s.jsx(se,{variant:"ghost",onClick:t,children:"취소"}),s.jsx(se,{onClick:v,children:"저장"})]}),children:[s.jsx(Ee,{label:"그룹코드",children:s.jsx(Se,{value:a,onChange:i,style:{width:"100%",opacity:r?.6:1}})}),s.jsx(Ee,{label:"그룹명",children:s.jsx(Se,{value:l,onChange:o,style:{width:"100%"}})}),s.jsx(Ee,{label:"사용 여부",children:s.jsx(rve,{value:c,onChange:u})}),s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:8,marginBottom:8},children:[s.jsxs("div",{style:{fontSize:12,fontWeight:600,color:"var(--uiws-text-muted)"},children:["코드값 (",f.length,")"]}),s.jsx(se,{variant:"ghost",onClick:j,children:"+ 코드값 추가"})]}),s.jsx("div",{style:{border:"1px solid var(--uiws-border)",borderRadius:8,overflow:"hidden"},children:s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12,color:"var(--uiws-text)"},children:[s.jsx("thead",{children:s.jsxs("tr",{style:{background:"var(--uiws-surface-2)"},children:[s.jsx("th",{style:{padding:"7px 8px",textAlign:"left",color:"var(--uiws-text-muted)",fontWeight:600},children:"코드값"}),s.jsx("th",{style:{padding:"7px 8px",textAlign:"left",color:"var(--uiws-text-muted)",fontWeight:600},children:"코드명"}),s.jsx("th",{style:{padding:"7px 8px",width:64,color:"var(--uiws-text-muted)",fontWeight:600},children:"정렬"}),s.jsx("th",{style:{padding:"7px 8px",width:76,color:"var(--uiws-text-muted)",fontWeight:600},children:"사용"}),s.jsx("th",{style:{padding:"7px 8px",width:44}})]})}),s.jsx("tbody",{children:f.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:5,style:{padding:16,textAlign:"center",color:"var(--uiws-text-faint)"},children:"코드값이 없습니다."})}):f.map((b,x)=>s.jsxs("tr",{style:{borderTop:"1px solid var(--uiws-border)"},children:[s.jsx("td",{style:{padding:"5px 8px"},children:s.jsx("input",{value:b.codeVal,onChange:O=>y(x,"codeVal",O.target.value),style:g})}),s.jsx("td",{style:{padding:"5px 8px"},children:s.jsx("input",{value:b.codeNm,onChange:O=>y(x,"codeNm",O.target.value),style:g})}),s.jsx("td",{style:{padding:"5px 8px"},children:s.jsx("input",{type:"number",value:String(b.sortOrd),onChange:O=>y(x,"sortOrd",Number(O.target.value)||0),style:g})}),s.jsx("td",{style:{padding:"5px 8px"},children:s.jsxs("select",{value:b.useYn,onChange:O=>y(x,"useYn",O.target.value),style:g,children:[s.jsx("option",{value:"Y",children:"사용"}),s.jsx("option",{value:"N",children:"미사용"})]})}),s.jsx("td",{style:{padding:"5px 8px",textAlign:"center"},children:s.jsx("button",{onClick:()=>p(x),style:{background:"none",border:"none",color:"var(--uiws-danger)",cursor:"pointer",fontSize:16},children:"×"})})]},x))})]})}),h&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginTop:10},children:h})]})}function Ab(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (SUPERADMIN 전용).":((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 ive(){const[e,t]=w.useState([]),[n,r]=w.useState(""),[a,i]=w.useState(!1),[l,o]=w.useState(""),[c,u]=w.useState({open:!1,edit:null}),f=async(j="")=>{var y;i(!0),o("");try{if(j){const p=await SU(j);t(p.data.data??[])}else{const p=await jU();t(((y=p.data.data)==null?void 0:y.content)??[])}}catch(p){o(Ab(p))}finally{i(!1)}};w.useEffect(()=>{f("")},[]);const d=w.useMemo(()=>{const j=e.filter(v=>!v.parentMenuId).sort((v,g)=>(v.sortOrd??0)-(g.sortOrd??0)),y=[];for(const v of j)y.push({menu:v,depth:0}),e.filter(g=>g.parentMenuId===v.menuId).sort((g,b)=>(g.sortOrd??0)-(b.sortOrd??0)).forEach(g=>y.push({menu:g,depth:1}));const p=new Set(y.map(v=>v.menu.menuId));return e.filter(v=>!p.has(v.menuId)).forEach(v=>y.push({menu:v,depth:0})),y.map(v=>({...v.menu,_depth:v.depth}))},[e]),h=async j=>{if(window.confirm(`메뉴 '${j.menuNm}' 를 삭제하시겠습니까?`))try{await NU([j.menuId]),await f(n)}catch(y){o(Ab(y))}},m=[{key:"menuNm",header:"메뉴명",render:j=>s.jsxs("span",{style:{paddingLeft:j._depth*22},children:[j._depth>0&&s.jsx("span",{style:{color:"var(--uiws-text-faint)"},children:"└ "}),j.menuNm," ",s.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontSize:12},children:["(",j.menuId,")"]})]})},{key:"menuUrl",header:"URL",width:220,render:j=>j.menuUrl??"-"},{key:"programId",header:"프로그램",width:140,render:j=>j.programId??"-"},{key:"sortOrd",header:"정렬",width:70,align:"center"},{key:"useYn",header:"사용",width:80,align:"center",render:j=>s.jsx(Ys,{yn:j.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:j=>s.jsx(se,{variant:"ghost",onClick:()=>h(j),children:"삭제"})}];return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(ta,{title:"메뉴 관리",subtitle:"시스템관리(권한) · 메뉴 트리(2-depth) 등록/수정/삭제",actions:s.jsx(se,{onClick:()=>u({open:!0,edit:null}),children:"+ 메뉴 등록"})}),l&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:l}),s.jsxs(Ui,{children:[s.jsx(Se,{value:n,onChange:r,placeholder:"메뉴명 검색",style:{minWidth:220}}),s.jsx(se,{variant:"ghost",onClick:()=>f(n),children:"검색"})]}),a?s.jsx(or,{}):s.jsx(Ks,{columns:m,rows:d,rowKey:j=>j.menuId,onRowClick:j=>u({open:!0,edit:j}),empty:"등록된 메뉴가 없습니다."}),c.open&&s.jsx(sve,{menu:c.edit,parents:e.filter(j=>!j.parentMenuId),onClose:()=>u({open:!1,edit:null}),onSaved:()=>{u({open:!1,edit:null}),f(n)}})]})}function sve({menu:e,parents:t,onClose:n,onSaved:r}){const a=!!e,[i,l]=w.useState((e==null?void 0:e.menuId)??""),[o,c]=w.useState((e==null?void 0:e.menuNm)??""),[u,f]=w.useState((e==null?void 0:e.parentMenuId)??""),[d,h]=w.useState((e==null?void 0:e.programId)??""),[m,j]=w.useState((e==null?void 0:e.menuUrl)??""),[y,p]=w.useState(String((e==null?void 0:e.sortOrd)??0)),[v,g]=w.useState((e==null?void 0:e.useYn)??"Y"),[b,x]=w.useState(""),O=async()=>{if(x(""),!a&&!i.trim()){x("메뉴ID는 필수입니다.");return}if(!o.trim()){x("메뉴명은 필수입니다.");return}try{const N={menuId:i,menuNm:o,parentMenuId:u||null,programId:d||null,menuUrl:m||null,sortOrd:Number(y)||0,useYn:v};a?await OU(i,N):await wU(N),r()}catch(N){x(Ab(N))}},S={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 s.jsxs(kr,{title:a?"메뉴 수정":"메뉴 등록",onClose:n,footer:s.jsxs(s.Fragment,{children:[s.jsx(se,{variant:"ghost",onClick:n,children:"취소"}),s.jsx(se,{onClick:O,children:"저장"})]}),children:[s.jsx(Ee,{label:"메뉴ID",children:s.jsx(Se,{value:i,onChange:l,style:{width:"100%",opacity:a?.6:1}})}),s.jsx(Ee,{label:"메뉴명",children:s.jsx(Se,{value:o,onChange:c,style:{width:"100%"}})}),s.jsx(Ee,{label:"상위 메뉴",children:s.jsxs("select",{value:u??"",onChange:N=>f(N.target.value),style:S,children:[s.jsx("option",{value:"",children:"(최상위)"}),t.filter(N=>N.menuId!==i).map(N=>s.jsxs("option",{value:N.menuId,children:[N.menuNm," (",N.menuId,")"]},N.menuId))]})}),s.jsx(Ee,{label:"프로그램ID",children:s.jsx(Se,{value:d??"",onChange:h,style:{width:"100%"}})}),s.jsx(Ee,{label:"메뉴 URL",children:s.jsx(Se,{value:m??"",onChange:j,style:{width:"100%"}})}),s.jsx(Ee,{label:"정렬순서",children:s.jsx(Se,{type:"number",value:y,onChange:p,style:{width:"100%"}})}),s.jsx(Ee,{label:"사용 여부",children:s.jsxs("select",{value:v,onChange:N=>g(N.target.value),style:S,children:[s.jsx("option",{value:"Y",children:"사용"}),s.jsx("option",{value:"N",children:"미사용"})]})}),b&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:b})]})}function Eb(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (SUPERADMIN 전용).":((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 lve(){const[e,t]=w.useState([]),[n,r]=w.useState(""),[a,i]=w.useState(!1),[l,o]=w.useState(""),[c,u]=w.useState({open:!1,edit:null}),f=async(j="")=>{var y;i(!0),o("");try{const p=await AU(j||void 0);t(((y=p.data.data)==null?void 0:y.content)??[])}catch(p){o(Eb(p))}finally{i(!1)}};w.useEffect(()=>{f("")},[]);const d=w.useMemo(()=>{const j=e.filter(v=>!v.parentDeptId).sort((v,g)=>(v.sortOrd??0)-(g.sortOrd??0)),y=[];for(const v of j)y.push({...v,_depth:0}),e.filter(g=>g.parentDeptId===v.deptId).sort((g,b)=>(g.sortOrd??0)-(b.sortOrd??0)).forEach(g=>y.push({...g,_depth:1}));const p=new Set(y.map(v=>v.deptId));return e.filter(v=>!p.has(v.deptId)).forEach(v=>y.push({...v,_depth:0})),y},[e]),h=async j=>{if(window.confirm(`부서 '${j.deptNm}' 를 삭제하시겠습니까?`))try{await _U(j.deptId),await f(n)}catch(y){o(Eb(y))}},m=[{key:"deptNm",header:"부서명",render:j=>s.jsxs("span",{style:{paddingLeft:j._depth*22},children:[j._depth>0&&s.jsx("span",{style:{color:"var(--uiws-text-faint)"},children:"└ "}),j.deptNm," ",s.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontSize:12},children:["(",j.deptId,")"]})]})},{key:"sortOrd",header:"정렬",width:70,align:"center"},{key:"useYn",header:"사용",width:80,align:"center",render:j=>s.jsx(Ys,{yn:j.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:j=>s.jsx(se,{variant:"ghost",onClick:()=>h(j),children:"삭제"})}];return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(ta,{title:"부서 관리",subtitle:"시스템관리(권한) · 부서 트리(2-depth) 등록/수정/삭제",actions:s.jsx(se,{onClick:()=>u({open:!0,edit:null}),children:"+ 부서 등록"})}),l&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:l}),s.jsxs(Ui,{children:[s.jsx(Se,{value:n,onChange:r,placeholder:"부서명 검색",style:{minWidth:220}}),s.jsx(se,{variant:"ghost",onClick:()=>f(n),children:"검색"})]}),a?s.jsx(or,{}):s.jsx(Ks,{columns:m,rows:d,rowKey:j=>j.deptId,onRowClick:j=>u({open:!0,edit:j}),empty:"등록된 부서가 없습니다."}),c.open&&s.jsx(ove,{dept:c.edit,parents:e.filter(j=>!j.parentDeptId),onClose:()=>u({open:!1,edit:null}),onSaved:()=>{u({open:!1,edit:null}),f(n)}})]})}function ove({dept:e,parents:t,onClose:n,onSaved:r}){const a=!!e,[i,l]=w.useState((e==null?void 0:e.deptId)??""),[o,c]=w.useState((e==null?void 0:e.deptNm)??""),[u,f]=w.useState((e==null?void 0:e.parentDeptId)??""),[d,h]=w.useState(String((e==null?void 0:e.sortOrd)??0)),[m,j]=w.useState((e==null?void 0:e.useYn)??"Y"),[y,p]=w.useState(""),v={width:"100%",padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)"},g=async()=>{if(p(""),!a&&!i.trim()){p("부서ID는 필수입니다.");return}if(!o.trim()){p("부서명은 필수입니다.");return}try{const b={deptId:i,deptNm:o,parentDeptId:u||null,sortOrd:Number(d)||0,useYn:m};a?await CU(i,b):await EU(b),r()}catch(b){p(Eb(b))}};return s.jsxs(kr,{title:a?"부서 수정":"부서 등록",onClose:n,footer:s.jsxs(s.Fragment,{children:[s.jsx(se,{variant:"ghost",onClick:n,children:"취소"}),s.jsx(se,{onClick:g,children:"저장"})]}),children:[s.jsx(Ee,{label:"부서ID",children:s.jsx(Se,{value:i,onChange:l,style:{width:"100%",opacity:a?.6:1}})}),s.jsx(Ee,{label:"부서명",children:s.jsx(Se,{value:o,onChange:c,style:{width:"100%"}})}),s.jsx(Ee,{label:"상위 부서",children:s.jsxs("select",{value:u??"",onChange:b=>f(b.target.value),style:v,children:[s.jsx("option",{value:"",children:"(최상위)"}),t.filter(b=>b.deptId!==i).map(b=>s.jsxs("option",{value:b.deptId,children:[b.deptNm," (",b.deptId,")"]},b.deptId))]})}),s.jsx(Ee,{label:"정렬순서",children:s.jsx(Se,{type:"number",value:d,onChange:h,style:{width:"100%"}})}),s.jsx(Ee,{label:"사용 여부",children:s.jsxs("select",{value:m,onChange:b=>j(b.target.value),style:v,children:[s.jsx("option",{value:"Y",children:"사용"}),s.jsx("option",{value:"N",children:"미사용"})]})}),y&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:y})]})}function Cb(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (SUPERADMIN 전용).":((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 cve(){const[e,t]=w.useState([]),[n,r]=w.useState(""),[a,i]=w.useState(!1),[l,o]=w.useState(""),[c,u]=w.useState({open:!1,edit:null}),f=async(m="")=>{var j;i(!0),o("");try{const y=await TU(m||void 0);t(((j=y.data.data)==null?void 0:j.content)??[])}catch(y){o(Cb(y))}finally{i(!1)}};w.useEffect(()=>{f("")},[]);const d=async m=>{if(window.confirm(`거래처 '${m.companyNm}' 를 삭제하시겠습니까?`))try{await PU([m.companyId]),await f(n)}catch(j){o(Cb(j))}},h=[{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=>s.jsx(Ys,{yn:m.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:m=>s.jsx(se,{variant:"ghost",onClick:()=>d(m),children:"삭제"})}];return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(ta,{title:"거래처 관리",subtitle:"시스템관리(권한) · 거래처(근무처) 등록/수정/삭제",actions:s.jsx(se,{onClick:()=>u({open:!0,edit:null}),children:"+ 거래처 등록"})}),l&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:l}),s.jsxs(Ui,{children:[s.jsx(Se,{value:n,onChange:r,placeholder:"거래처명 검색",style:{minWidth:220}}),s.jsx(se,{variant:"ghost",onClick:()=>f(n),children:"검색"})]}),a?s.jsx(or,{}):s.jsx(Ks,{columns:h,rows:e,rowKey:m=>m.companyId,onRowClick:m=>u({open:!0,edit:m}),empty:"등록된 거래처가 없습니다."}),c.open&&s.jsx(uve,{company:c.edit,onClose:()=>u({open:!1,edit:null}),onSaved:()=>{u({open:!1,edit:null}),f(n)}})]})}function uve({company:e,onClose:t,onSaved:n}){const r=!!e,[a,i]=w.useState((e==null?void 0:e.companyId)??""),[l,o]=w.useState((e==null?void 0:e.companyNm)??""),[c,u]=w.useState((e==null?void 0:e.bizNo)??""),[f,d]=w.useState((e==null?void 0:e.useYn)??"Y"),[h,m]=w.useState(""),j=async()=>{if(m(""),!r&&!a.trim()){m("거래처ID는 필수입니다.");return}if(!l.trim()){m("거래처명은 필수입니다.");return}try{const y={companyId:a,companyNm:l,bizNo:c||null,useYn:f};r?await MU(a,y):await kU(y),n()}catch(y){m(Cb(y))}};return s.jsxs(kr,{title:r?"거래처 수정":"거래처 등록",onClose:t,footer:s.jsxs(s.Fragment,{children:[s.jsx(se,{variant:"ghost",onClick:t,children:"취소"}),s.jsx(se,{onClick:j,children:"저장"})]}),children:[s.jsx(Ee,{label:"거래처ID",children:s.jsx(Se,{value:a,onChange:i,style:{width:"100%",opacity:r?.6:1}})}),s.jsx(Ee,{label:"거래처명",children:s.jsx(Se,{value:l,onChange:o,style:{width:"100%"}})}),s.jsx(Ee,{label:"사업자번호",children:s.jsx(Se,{value:c??"",onChange:u,style:{width:"100%"}})}),s.jsx(Ee,{label:"사용 여부",children:s.jsxs("select",{value:f,onChange:y=>d(y.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:[s.jsx("option",{value:"Y",children:"사용"}),s.jsx("option",{value:"N",children:"미사용"})]})}),h&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}const fve=new jL;function dve(){return s.jsx(wL,{client:fve,children:s.jsx(z5,{children:s.jsxs(p5,{children:[s.jsx(he,{path:"/login",element:s.jsx($U,{})}),s.jsxs(he,{element:s.jsx(UB,{}),children:[s.jsx(he,{path:"/dashboard",element:s.jsx(Xpe,{})}),s.jsx(he,{path:"/jobs",element:s.jsx(Jpe,{})}),s.jsx(he,{path:"/progress",element:s.jsx(nme,{})}),s.jsx(he,{path:"/workorders",element:s.jsx(sme,{})}),s.jsx(he,{path:"/production",element:s.jsx(ome,{})}),s.jsx(he,{path:"/process-board",element:s.jsx(ume,{})}),s.jsx(he,{path:"/oee",element:s.jsx(mme,{})}),s.jsx(he,{path:"/tracking",element:s.jsx(yme,{})}),s.jsx(he,{path:"/plans",element:s.jsx(jme,{})}),s.jsx(he,{path:"/receiving",element:s.jsx(Ome,{})}),s.jsx(he,{path:"/shipping",element:s.jsx(Eme,{})}),s.jsx(he,{path:"/inventory",element:s.jsx(Cme,{})}),s.jsx(he,{path:"/stocktake",element:s.jsx(kme,{})}),s.jsx(he,{path:"/lotserial",element:s.jsx(Rme,{})}),s.jsx(he,{path:"/inspection",element:s.jsx(Ime,{})}),s.jsx(he,{path:"/spec",element:s.jsx(qme,{})}),s.jsx(he,{path:"/ncr",element:s.jsx(Yme,{})}),s.jsx(he,{path:"/capa",element:s.jsx(Qme,{})}),s.jsx(he,{path:"/spc",element:s.jsx(Jme,{})}),s.jsx(he,{path:"/certificate",element:s.jsx(nye,{})}),s.jsx(he,{path:"/items",element:s.jsx(sye,{})}),s.jsx(he,{path:"/bom",element:s.jsx(cye,{})}),s.jsx(he,{path:"/routing",element:s.jsx(fye,{})}),s.jsx(he,{path:"/partners",element:s.jsx(In,{min:"MANAGER",children:s.jsx(mye,{})})}),s.jsx(he,{path:"/warehouses",element:s.jsx(vye,{})}),s.jsx(he,{path:"/analytics",element:s.jsx(gye,{})}),s.jsx(he,{path:"/ai-tools",element:s.jsx(xye,{})}),s.jsx(he,{path:"/ai-techniques",element:s.jsx(In,{min:"MANAGER",children:s.jsx(Tye,{})})}),s.jsx(he,{path:"/admin/ai-platform",element:s.jsx(In,{min:"SUPERADMIN",children:s.jsx(Dye,{})})}),s.jsx(he,{path:"/uiws/worklog",element:s.jsx(qye,{})}),s.jsx(he,{path:"/uiws/schedule",element:s.jsx(Kye,{})}),s.jsx(he,{path:"/uiws/message",element:s.jsx(Wye,{})}),s.jsx(he,{path:"/uiws/stats",element:s.jsx(Zye,{})}),s.jsx(he,{path:"/uiws/system/roles",element:s.jsx(In,{min:"SUPERADMIN",children:s.jsx(Jye,{})})}),s.jsx(he,{path:"/uiws/system/role-menus",element:s.jsx(In,{min:"SUPERADMIN",children:s.jsx(tve,{})})}),s.jsx(he,{path:"/uiws/system/codes",element:s.jsx(In,{min:"SUPERADMIN",children:s.jsx(nve,{})})}),s.jsx(he,{path:"/uiws/system/menus",element:s.jsx(In,{min:"SUPERADMIN",children:s.jsx(ive,{})})}),s.jsx(he,{path:"/uiws/system/depts",element:s.jsx(In,{min:"SUPERADMIN",children:s.jsx(lve,{})})}),s.jsx(he,{path:"/uiws/system/companies",element:s.jsx(In,{min:"SUPERADMIN",children:s.jsx(cve,{})})}),s.jsx(he,{path:"/admin/users",element:s.jsx(In,{min:"SUPERADMIN",children:s.jsx(Lye,{})})}),s.jsx(he,{path:"/admin/audit",element:s.jsx(In,{min:"MANAGER",children:s.jsx(zye,{})})}),s.jsx(he,{path:"/admin/settings",element:s.jsx(In,{min:"MANAGER",children:s.jsx(Iye,{})})}),s.jsx(he,{path:"/admin/mobile-app",element:s.jsx(Uye,{})})]}),s.jsx(he,{path:"*",element:s.jsx(rT,{to:"/dashboard",replace:!0})})]})})})}hD.createRoot(document.getElementById("root")).render(s.jsx(T.StrictMode,{children:s.jsx(nz,{children:s.jsx(dve,{})})}));
|