var R1=e=>{throw TypeError(e)};var $m=(e,t,n)=>t.has(e)||R1("Cannot "+n);var U=(e,t,n)=>($m(e,t,"read from private field"),n?n.call(e):t.get(e)),Ae=(e,t,n)=>t.has(e)?R1("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),pe=(e,t,n,r)=>($m(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),zt=(e,t,n)=>($m(e,t,"access private method"),n);var vf=(e,t,n,r)=>({set _(a){pe(e,t,a,n)},get _(){return U(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 gf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cE={exports:{}},cp={};/**
 * @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 A$=Symbol.for("react.transitional.element"),E$=Symbol.for("react.fragment");function uE(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:A$,type:e,key:r,ref:t!==void 0?t:null,props:n}}cp.Fragment=E$;cp.jsx=uE;cp.jsxs=uE;cE.exports=cp;var o=cE.exports,fE={exports:{}},ve={};/**
 * @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 Xb=Symbol.for("react.transitional.element"),_$=Symbol.for("react.portal"),N$=Symbol.for("react.fragment"),T$=Symbol.for("react.strict_mode"),C$=Symbol.for("react.profiler"),M$=Symbol.for("react.consumer"),k$=Symbol.for("react.context"),P$=Symbol.for("react.forward_ref"),$$=Symbol.for("react.suspense"),R$=Symbol.for("react.memo"),dE=Symbol.for("react.lazy"),D$=Symbol.for("react.activity"),D1=Symbol.iterator;function z$(e){return e===null||typeof e!="object"?null:(e=D1&&e[D1]||e["@@iterator"],typeof e=="function"?e:null)}var hE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pE=Object.assign,mE={};function go(e,t,n){this.props=e,this.context=t,this.refs=mE,this.updater=n||hE}go.prototype.isReactComponent={};go.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")};go.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function yE(){}yE.prototype=go.prototype;function Wb(e,t,n){this.props=e,this.context=t,this.refs=mE,this.updater=n||hE}var Qb=Wb.prototype=new yE;Qb.constructor=Wb;pE(Qb,go.prototype);Qb.isPureReactComponent=!0;var z1=Array.isArray;function av(){}var Ze={H:null,A:null,T:null,S:null},vE=Object.prototype.hasOwnProperty;function Zb(e,t,n){var r=n.ref;return{$$typeof:Xb,type:e,key:t,ref:r!==void 0?r:null,props:n}}function L$(e,t){return Zb(e.type,t,e.props)}function Jb(e){return typeof e=="object"&&e!==null&&e.$$typeof===Xb}function B$(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var L1=/\/+/g;function Rm(e,t){return typeof e=="object"&&e!==null&&e.key!=null?B$(""+e.key):t.toString(36)}function I$(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(av,av):(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 Yl(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 Xb:case _$:l=!0;break;case dE:return l=e._init,Yl(l(e._payload),t,n,r,a)}}if(l)return a=a(e),l=r===""?"."+Rm(e,0):r,z1(a)?(n="",l!=null&&(n=l.replace(L1,"$&/")+"/"),Yl(a,t,n,"",function(u){return u})):a!=null&&(Jb(a)&&(a=L$(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(L1,"$&/")+"/")+l)),t.push(a)),1;l=0;var s=r===""?".":r+":";if(z1(e))for(var c=0;c<e.length;c++)r=e[c],i=s+Rm(r,c),l+=Yl(r,t,n,i,a);else if(c=z$(e),typeof c=="function")for(e=c.call(e),c=0;!(r=e.next()).done;)r=r.value,i=s+Rm(r,c++),l+=Yl(r,t,n,i,a);else if(i==="object"){if(typeof e.then=="function")return Yl(I$(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 bf(e,t,n){if(e==null)return e;var r=[],a=0;return Yl(e,r,"","",function(i){return t.call(n,i,a++)}),r}function U$(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 B1=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)},H$={map:bf,forEach:function(e,t,n){bf(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return bf(e,function(){t++}),t},toArray:function(e){return bf(e,function(t){return t})||[]},only:function(e){if(!Jb(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ve.Activity=D$;ve.Children=H$;ve.Component=go;ve.Fragment=N$;ve.Profiler=C$;ve.PureComponent=Wb;ve.StrictMode=T$;ve.Suspense=$$;ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ze;ve.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Ze.H.useMemoCache(e)}};ve.cache=function(e){return function(){return e.apply(null,arguments)}};ve.cacheSignal=function(){return null};ve.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=pE({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!vE.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),s=0;s<i;s++)l[s]=arguments[s+2];r.children=l}return Zb(e.type,a,r)};ve.createContext=function(e){return e={$$typeof:k$,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:M$,_context:e},e};ve.createElement=function(e,t,n){var r,a={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)vE.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 s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];a.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)a[r]===void 0&&(a[r]=l[r]);return Zb(e,i,a)};ve.createRef=function(){return{current:null}};ve.forwardRef=function(e){return{$$typeof:P$,render:e}};ve.isValidElement=Jb;ve.lazy=function(e){return{$$typeof:dE,_payload:{_status:-1,_result:e},_init:U$}};ve.memo=function(e,t){return{$$typeof:R$,type:e,compare:t===void 0?null:t}};ve.startTransition=function(e){var t=Ze.T,n={};Ze.T=n;try{var r=e(),a=Ze.S;a!==null&&a(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(av,B1)}catch(i){B1(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),Ze.T=t}};ve.unstable_useCacheRefresh=function(){return Ze.H.useCacheRefresh()};ve.use=function(e){return Ze.H.use(e)};ve.useActionState=function(e,t,n){return Ze.H.useActionState(e,t,n)};ve.useCallback=function(e,t){return Ze.H.useCallback(e,t)};ve.useContext=function(e){return Ze.H.useContext(e)};ve.useDebugValue=function(){};ve.useDeferredValue=function(e,t){return Ze.H.useDeferredValue(e,t)};ve.useEffect=function(e,t){return Ze.H.useEffect(e,t)};ve.useEffectEvent=function(e){return Ze.H.useEffectEvent(e)};ve.useId=function(){return Ze.H.useId()};ve.useImperativeHandle=function(e,t,n){return Ze.H.useImperativeHandle(e,t,n)};ve.useInsertionEffect=function(e,t){return Ze.H.useInsertionEffect(e,t)};ve.useLayoutEffect=function(e,t){return Ze.H.useLayoutEffect(e,t)};ve.useMemo=function(e,t){return Ze.H.useMemo(e,t)};ve.useOptimistic=function(e,t){return Ze.H.useOptimistic(e,t)};ve.useReducer=function(e,t,n){return Ze.H.useReducer(e,t,n)};ve.useRef=function(e){return Ze.H.useRef(e)};ve.useState=function(e){return Ze.H.useState(e)};ve.useSyncExternalStore=function(e,t,n){return Ze.H.useSyncExternalStore(e,t,n)};ve.useTransition=function(){return Ze.H.useTransition()};ve.version="19.2.7";fE.exports=ve;var O=fE.exports;const N=Pe(O);var gE={exports:{}},up={},bE={exports:{}},xE={};/**
 * @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(T,z){var B=T.length;T.push(z);e:for(;0<B;){var F=B-1>>>1,V=T[F];if(0<a(V,z))T[F]=z,T[B]=V,B=F;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var z=T[0],B=T.pop();if(B!==z){T[0]=B;e:for(var F=0,V=T.length,Y=V>>>1;F<Y;){var K=2*(F+1)-1,ae=T[K],L=K+1,Z=T[L];if(0>a(ae,B))L<V&&0>a(Z,ae)?(T[F]=Z,T[L]=B,F=L):(T[F]=ae,T[K]=B,F=K);else if(L<V&&0>a(Z,B))T[F]=Z,T[L]=B,F=L;else break e}}return z}function a(T,z){var B=T.sortIndex-z.sortIndex;return B!==0?B:T.id-z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var c=[],u=[],f=1,d=null,h=3,p=!1,y=!1,v=!1,b=!1,g=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function m(T){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=T)r(u),z.sortIndex=z.expirationTime,t(c,z);else break;z=n(u)}}function S(T){if(v=!1,m(T),!y)if(n(c)!==null)y=!0,w||(w=!0,M());else{var z=n(u);z!==null&&$(S,z.startTime-T)}}var w=!1,A=-1,_=5,E=-1;function C(){return b?!0:!(e.unstable_now()-E<_)}function k(){if(b=!1,w){var T=e.unstable_now();E=T;var z=!0;try{e:{y=!1,v&&(v=!1,j(A),A=-1),p=!0;var B=h;try{t:{for(m(T),d=n(c);d!==null&&!(d.expirationTime>T&&C());){var F=d.callback;if(typeof F=="function"){d.callback=null,h=d.priorityLevel;var V=F(d.expirationTime<=T);if(T=e.unstable_now(),typeof V=="function"){d.callback=V,m(T),z=!0;break t}d===n(c)&&r(c),m(T)}else r(c);d=n(c)}if(d!==null)z=!0;else{var Y=n(u);Y!==null&&$(S,Y.startTime-T),z=!1}}break e}finally{d=null,h=B,p=!1}z=void 0}}finally{z?M():w=!1}}}var M;if(typeof x=="function")M=function(){x(k)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,D=I.port2;I.port1.onmessage=k,M=function(){D.postMessage(null)}}else M=function(){g(k,0)};function $(T,z){A=g(function(){T(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(T){switch(h){case 1:case 2:case 3:var z=3;break;default:z=h}var B=h;h=z;try{return T()}finally{h=B}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(T,z){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var B=h;h=T;try{return z()}finally{h=B}},e.unstable_scheduleCallback=function(T,z,B){var F=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?F+B:F):B=F,T){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=B+V,T={id:f++,callback:z,priorityLevel:T,startTime:B,expirationTime:V,sortIndex:-1},B>F?(T.sortIndex=B,t(u,T),n(c)===null&&T===n(u)&&(v?(j(A),A=-1):v=!0,$(S,B-F))):(T.sortIndex=V,t(c,T),y||p||(y=!0,w||(w=!0,M()))),T},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(T){var z=h;return function(){var B=h;h=z;try{return T.apply(this,arguments)}finally{h=B}}}})(xE);bE.exports=xE;var q$=bE.exports,jE={exports:{}},an={};/**
 * @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 F$=O;function SE(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 Ca(){}var Zt={d:{f:Ca,r:function(){throw Error(SE(522))},D:Ca,C:Ca,L:Ca,m:Ca,X:Ca,S:Ca,M:Ca},p:0,findDOMNode:null},G$=Symbol.for("react.portal");function V$(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:G$,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var yc=F$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function fp(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}an.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Zt;an.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(SE(299));return V$(e,t,null,n)};an.flushSync=function(e){var t=yc.T,n=Zt.p;try{if(yc.T=null,Zt.p=2,e)return e()}finally{yc.T=t,Zt.p=n,Zt.d.f()}};an.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Zt.d.C(e,t))};an.prefetchDNS=function(e){typeof e=="string"&&Zt.d.D(e)};an.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=fp(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Zt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:i}):n==="script"&&Zt.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};an.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=fp(t.as,t.crossOrigin);Zt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Zt.d.M(e)};an.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=fp(n,t.crossOrigin);Zt.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};an.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=fp(t.as,t.crossOrigin);Zt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Zt.d.m(e)};an.requestFormReset=function(e){Zt.d.r(e)};an.unstable_batchedUpdates=function(e,t){return e(t)};an.useFormState=function(e,t,n){return yc.H.useFormState(e,t,n)};an.useFormStatus=function(){return yc.H.useHostTransitionStatus()};an.version="19.2.7";function wE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wE)}catch(e){console.error(e)}}wE(),jE.exports=an;var Y$=jE.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 Nt=q$,OE=O,K$=Y$;function q(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 AE(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Uu(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function EE(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function _E(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 I1(e){if(Uu(e)!==e)throw Error(q(188))}function X$(e){var t=e.alternate;if(!t){if(t=Uu(e),t===null)throw Error(q(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 I1(a),e;if(i===r)return I1(a),t;i=i.sibling}throw Error(q(188))}if(n.return!==r.return)n=a,r=i;else{for(var l=!1,s=a.child;s;){if(s===n){l=!0,n=a,r=i;break}if(s===r){l=!0,r=a,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=a;break}if(s===r){l=!0,r=i,n=a;break}s=s.sibling}if(!l)throw Error(q(189))}}if(n.alternate!==r)throw Error(q(190))}if(n.tag!==3)throw Error(q(188));return n.stateNode.current===n?e:t}function NE(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=NE(e),t!==null)return t;e=e.sibling}return null}var Je=Object.assign,W$=Symbol.for("react.element"),xf=Symbol.for("react.transitional.element"),uc=Symbol.for("react.portal"),Wl=Symbol.for("react.fragment"),TE=Symbol.for("react.strict_mode"),iv=Symbol.for("react.profiler"),CE=Symbol.for("react.consumer"),na=Symbol.for("react.context"),ex=Symbol.for("react.forward_ref"),lv=Symbol.for("react.suspense"),sv=Symbol.for("react.suspense_list"),tx=Symbol.for("react.memo"),Pa=Symbol.for("react.lazy"),ov=Symbol.for("react.activity"),Q$=Symbol.for("react.memo_cache_sentinel"),U1=Symbol.iterator;function Go(e){return e===null||typeof e!="object"?null:(e=U1&&e[U1]||e["@@iterator"],typeof e=="function"?e:null)}var Z$=Symbol.for("react.client.reference");function cv(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Z$?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Wl:return"Fragment";case iv:return"Profiler";case TE:return"StrictMode";case lv:return"Suspense";case sv:return"SuspenseList";case ov:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case uc:return"Portal";case na:return e.displayName||"Context";case CE:return(e._context.displayName||"Context")+".Consumer";case ex:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case tx:return t=e.displayName||null,t!==null?t:cv(e.type)||"Memo";case Pa:t=e._payload,e=e._init;try{return cv(e(t))}catch{}}return null}var fc=Array.isArray,he=OE.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Me=K$.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,el={pending:!1,data:null,method:null,action:null},uv=[],Ql=-1;function Br(e){return{current:e}}function Rt(e){0>Ql||(e.current=uv[Ql],uv[Ql]=null,Ql--)}function Ge(e,t){Ql++,uv[Ql]=e.current,e.current=t}var $r=Br(null),zc=Br(null),ni=Br(null),Ad=Br(null);function Ed(e,t){switch(Ge(ni,t),Ge(zc,e),Ge($r,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Yj(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yj(t),e=WN(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Rt($r),Ge($r,e)}function ks(){Rt($r),Rt(zc),Rt(ni)}function fv(e){e.memoizedState!==null&&Ge(Ad,e);var t=$r.current,n=WN(t,e.type);t!==n&&(Ge(zc,e),Ge($r,n))}function _d(e){zc.current===e&&(Rt($r),Rt(zc)),Ad.current===e&&(Rt(Ad),Kc._currentValue=el)}var Dm,H1;function $i(e){if(Dm===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Dm=t&&t[1]||"",H1=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Dm+e+H1}var zm=!1;function Lm(e,t){if(!e||zm)return"";zm=!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(p){var h=p}Reflect.construct(e,[],d)}else{try{d.call()}catch(p){h=p}e.call(d.prototype)}}else{try{throw Error()}catch(p){h=p}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(p){if(p&&h&&typeof p.stack=="string")return[p.stack,h.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),l=i[0],s=i[1];if(l&&s){var c=l.split(`
`),u=s.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{zm=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?$i(n):""}function J$(e,t){switch(e.tag){case 26:case 27:case 5:return $i(e.type);case 16:return $i("Lazy");case 13:return e.child!==t&&t!==null?$i("Suspense Fallback"):$i("Suspense");case 19:return $i("SuspenseList");case 0:case 15:return Lm(e.type,!1);case 11:return Lm(e.type.render,!1);case 1:return Lm(e.type,!0);case 31:return $i("Activity");default:return""}}function q1(e){try{var t="",n=null;do t+=J$(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}var dv=Object.prototype.hasOwnProperty,nx=Nt.unstable_scheduleCallback,Bm=Nt.unstable_cancelCallback,e3=Nt.unstable_shouldYield,t3=Nt.unstable_requestPaint,_n=Nt.unstable_now,n3=Nt.unstable_getCurrentPriorityLevel,ME=Nt.unstable_ImmediatePriority,kE=Nt.unstable_UserBlockingPriority,Nd=Nt.unstable_NormalPriority,r3=Nt.unstable_LowPriority,PE=Nt.unstable_IdlePriority,a3=Nt.log,i3=Nt.unstable_setDisableYieldValue,Hu=null,Nn=null;function Ya(e){if(typeof a3=="function"&&i3(e),Nn&&typeof Nn.setStrictMode=="function")try{Nn.setStrictMode(Hu,e)}catch{}}var Tn=Math.clz32?Math.clz32:o3,l3=Math.log,s3=Math.LN2;function o3(e){return e>>>=0,e===0?32:31-(l3(e)/s3|0)|0}var jf=256,Sf=262144,wf=4194304;function Ri(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 dp(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 s=r&134217727;return s!==0?(r=s&~i,r!==0?a=Ri(r):(l&=s,l!==0?a=Ri(l):n||(n=s&~e,n!==0&&(a=Ri(n))))):(s=r&~i,s!==0?a=Ri(s):l!==0?a=Ri(l):n||(n=r&~e,n!==0&&(a=Ri(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 qu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function c3(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 $E(){var e=wf;return wf<<=1,!(wf&62914560)&&(wf=4194304),e}function Im(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Fu(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function u3(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 s=e.entanglements,c=e.expirationTimes,u=e.hiddenUpdates;for(n=l&~n;0<n;){var f=31-Tn(n),d=1<<f;s[f]=0,c[f]=-1;var h=u[f];if(h!==null)for(u[f]=null,f=0;f<h.length;f++){var p=h[f];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&RE(e,r,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(l&~t))}function RE(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Tn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function DE(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Tn(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function zE(e,t){var n=t&-t;return n=n&42?1:rx(n),n&(e.suspendedLanes|t)?0:n}function rx(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 ax(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function LE(){var e=Me.p;return e!==0?e:(e=window.event,e===void 0?32:sT(e.type))}function F1(e,t){var n=Me.p;try{return Me.p=e,t()}finally{Me.p=n}}var gi=Math.random().toString(36).slice(2),It="__reactFiber$"+gi,pn="__reactProps$"+gi,bo="__reactContainer$"+gi,hv="__reactEvents$"+gi,f3="__reactListeners$"+gi,d3="__reactHandles$"+gi,G1="__reactResources$"+gi,Gu="__reactMarker$"+gi;function ix(e){delete e[It],delete e[pn],delete e[hv],delete e[f3],delete e[d3]}function Zl(e){var t=e[It];if(t)return t;for(var n=e.parentNode;n;){if(t=n[bo]||n[It]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Zj(e);e!==null;){if(n=e[It])return n;e=Zj(e)}return t}e=n,n=e.parentNode}return null}function xo(e){if(e=e[It]||e[bo]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function dc(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(q(33))}function hs(e){var t=e[G1];return t||(t=e[G1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Pt(e){e[Gu]=!0}var BE=new Set,IE={};function Ol(e,t){Ps(e,t),Ps(e+"Capture",t)}function Ps(e,t){for(IE[e]=t,e=0;e<t.length;e++)BE.add(t[e])}var h3=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),V1={},Y1={};function p3(e){return dv.call(Y1,e)?!0:dv.call(V1,e)?!1:h3.test(e)?Y1[e]=!0:(V1[e]=!0,!1)}function td(e,t,n){if(p3(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 Of(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 Gr(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 Fn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function UE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function m3(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 pv(e){if(!e._valueTracker){var t=UE(e)?"checked":"value";e._valueTracker=m3(e,t,""+e[t])}}function HE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=UE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Td(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 y3=/[\n"\\]/g;function Yn(e){return e.replace(y3,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function mv(e,t,n,r,a,i,l,s){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=""+Fn(t)):e.value!==""+Fn(t)&&(e.value=""+Fn(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?yv(e,l,Fn(t)):n!=null?yv(e,l,Fn(n)):r!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+Fn(s):e.removeAttribute("name")}function qE(e,t,n,r,a,i,l,s){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)){pv(e);return}n=n!=null?""+Fn(n):"",t=t!=null?""+Fn(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),pv(e)}function yv(e,t,n){t==="number"&&Td(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ps(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=""+Fn(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 FE(e,t,n){if(t!=null&&(t=""+Fn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Fn(n):""}function GE(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(q(92));if(fc(r)){if(1<r.length)throw Error(q(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=Fn(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),pv(e)}function $s(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var v3=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function K1(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||v3.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function VE(e,t,n){if(t!=null&&typeof t!="object")throw Error(q(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&&K1(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&K1(e,i,t[i])}function lx(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 g3=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"]]),b3=/^[\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 nd(e){return b3.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ra(){}var vv=null;function sx(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jl=null,ms=null;function X1(e){var t=xo(e);if(t&&(e=t.stateNode)){var n=e[pn]||null;e:switch(e=t.stateNode,t.type){case"input":if(mv(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="'+Yn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[pn]||null;if(!a)throw Error(q(90));mv(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&&HE(r)}break e;case"textarea":FE(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ps(e,!!n.multiple,t,!1)}}}var Um=!1;function YE(e,t,n){if(Um)return e(t,n);Um=!0;try{var r=e(t);return r}finally{if(Um=!1,(Jl!==null||ms!==null)&&(Op(),Jl&&(t=Jl,e=ms,ms=Jl=null,X1(t),e)))for(t=0;t<e.length;t++)X1(e[t])}}function Lc(e,t){var n=e.stateNode;if(n===null)return null;var r=n[pn]||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(q(231,t,typeof n));return n}var pa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gv=!1;if(pa)try{var Vo={};Object.defineProperty(Vo,"passive",{get:function(){gv=!0}}),window.addEventListener("test",Vo,Vo),window.removeEventListener("test",Vo,Vo)}catch{gv=!1}var Ka=null,ox=null,rd=null;function KE(){if(rd)return rd;var e,t=ox,n=t.length,r,a="value"in Ka?Ka.value:Ka.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 rd=a.slice(e,1<r?1-r:void 0)}function ad(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 Af(){return!0}function W1(){return!1}function mn(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 s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Af:W1,this.isPropagationStopped=W1,this}return Je(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=Af)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Af)},persist:function(){},isPersistent:Af}),t}var Al={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hp=mn(Al),Vu=Je({},Al,{view:0,detail:0}),x3=mn(Vu),Hm,qm,Yo,pp=Je({},Vu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cx,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!==Yo&&(Yo&&e.type==="mousemove"?(Hm=e.screenX-Yo.screenX,qm=e.screenY-Yo.screenY):qm=Hm=0,Yo=e),Hm)},movementY:function(e){return"movementY"in e?e.movementY:qm}}),Q1=mn(pp),j3=Je({},pp,{dataTransfer:0}),S3=mn(j3),w3=Je({},Vu,{relatedTarget:0}),Fm=mn(w3),O3=Je({},Al,{animationName:0,elapsedTime:0,pseudoElement:0}),A3=mn(O3),E3=Je({},Al,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_3=mn(E3),N3=Je({},Al,{data:0}),Z1=mn(N3),T3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},C3={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},M3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function k3(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=M3[e])?!!t[e]:!1}function cx(){return k3}var P3=Je({},Vu,{key:function(e){if(e.key){var t=T3[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ad(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?C3[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cx,charCode:function(e){return e.type==="keypress"?ad(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ad(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$3=mn(P3),R3=Je({},pp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),J1=mn(R3),D3=Je({},Vu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cx}),z3=mn(D3),L3=Je({},Al,{propertyName:0,elapsedTime:0,pseudoElement:0}),B3=mn(L3),I3=Je({},pp,{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}),U3=mn(I3),H3=Je({},Al,{newState:0,oldState:0}),q3=mn(H3),F3=[9,13,27,32],ux=pa&&"CompositionEvent"in window,vc=null;pa&&"documentMode"in document&&(vc=document.documentMode);var G3=pa&&"TextEvent"in window&&!vc,XE=pa&&(!ux||vc&&8<vc&&11>=vc),ej=" ",tj=!1;function WE(e,t){switch(e){case"keyup":return F3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function QE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var es=!1;function V3(e,t){switch(e){case"compositionend":return QE(t);case"keypress":return t.which!==32?null:(tj=!0,ej);case"textInput":return e=t.data,e===ej&&tj?null:e;default:return null}}function Y3(e,t){if(es)return e==="compositionend"||!ux&&WE(e,t)?(e=KE(),rd=ox=Ka=null,es=!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 XE&&t.locale!=="ko"?null:t.data;default:return null}}var K3={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 nj(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!K3[e.type]:t==="textarea"}function ZE(e,t,n,r){Jl?ms?ms.push(r):ms=[r]:Jl=r,t=Yd(t,"onChange"),0<t.length&&(n=new hp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var gc=null,Bc=null;function X3(e){YN(e,0)}function mp(e){var t=dc(e);if(HE(t))return e}function rj(e,t){if(e==="change")return t}var JE=!1;if(pa){var Gm;if(pa){var Vm="oninput"in document;if(!Vm){var aj=document.createElement("div");aj.setAttribute("oninput","return;"),Vm=typeof aj.oninput=="function"}Gm=Vm}else Gm=!1;JE=Gm&&(!document.documentMode||9<document.documentMode)}function ij(){gc&&(gc.detachEvent("onpropertychange",e_),Bc=gc=null)}function e_(e){if(e.propertyName==="value"&&mp(Bc)){var t=[];ZE(t,Bc,e,sx(e)),YE(X3,t)}}function W3(e,t,n){e==="focusin"?(ij(),gc=t,Bc=n,gc.attachEvent("onpropertychange",e_)):e==="focusout"&&ij()}function Q3(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return mp(Bc)}function Z3(e,t){if(e==="click")return mp(t)}function J3(e,t){if(e==="input"||e==="change")return mp(t)}function eR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $n=typeof Object.is=="function"?Object.is:eR;function Ic(e,t){if($n(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(!dv.call(t,a)||!$n(e[a],t[a]))return!1}return!0}function lj(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sj(e,t){var n=lj(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=lj(n)}}function t_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?t_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function n_(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Td(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=Td(e.document)}return t}function fx(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 tR=pa&&"documentMode"in document&&11>=document.documentMode,ts=null,bv=null,bc=null,xv=!1;function oj(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xv||ts==null||ts!==Td(r)||(r=ts,"selectionStart"in r&&fx(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}),bc&&Ic(bc,r)||(bc=r,r=Yd(bv,"onSelect"),0<r.length&&(t=new hp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ts)))}function Ti(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ns={animationend:Ti("Animation","AnimationEnd"),animationiteration:Ti("Animation","AnimationIteration"),animationstart:Ti("Animation","AnimationStart"),transitionrun:Ti("Transition","TransitionRun"),transitionstart:Ti("Transition","TransitionStart"),transitioncancel:Ti("Transition","TransitionCancel"),transitionend:Ti("Transition","TransitionEnd")},Ym={},r_={};pa&&(r_=document.createElement("div").style,"AnimationEvent"in window||(delete ns.animationend.animation,delete ns.animationiteration.animation,delete ns.animationstart.animation),"TransitionEvent"in window||delete ns.transitionend.transition);function El(e){if(Ym[e])return Ym[e];if(!ns[e])return e;var t=ns[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in r_)return Ym[e]=t[n];return e}var a_=El("animationend"),i_=El("animationiteration"),l_=El("animationstart"),nR=El("transitionrun"),rR=El("transitionstart"),aR=El("transitioncancel"),s_=El("transitionend"),o_=new Map,jv="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(" ");jv.push("scrollEnd");function gr(e,t){o_.set(e,t),Ol(t,[e])}var Cd=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)},qn=[],rs=0,dx=0;function yp(){for(var e=rs,t=dx=rs=0;t<e;){var n=qn[t];qn[t++]=null;var r=qn[t];qn[t++]=null;var a=qn[t];qn[t++]=null;var i=qn[t];if(qn[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&&c_(n,a,i)}}function vp(e,t,n,r){qn[rs++]=e,qn[rs++]=t,qn[rs++]=n,qn[rs++]=r,dx|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function hx(e,t,n,r){return vp(e,t,n,r),Md(e)}function _l(e,t){return vp(e,null,null,t),Md(e)}function c_(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var a=!1,i=e.return;i!==null;)i.childLanes|=n,r=i.alternate,r!==null&&(r.childLanes|=n),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-Tn(n),e=i.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),i):null}function Md(e){if(50<Nc)throw Nc=0,Hv=null,Error(q(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var as={};function iR(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function On(e,t,n,r){return new iR(e,t,n,r)}function px(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ca(e,t){var n=e.alternate;return n===null?(n=On(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function u_(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 id(e,t,n,r,a,i){var l=0;if(r=e,typeof e=="function")px(e)&&(l=1);else if(typeof e=="string")l=uD(e,n,$r.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ov:return e=On(31,n,t,a),e.elementType=ov,e.lanes=i,e;case Wl:return tl(n.children,a,i,t);case TE:l=8,a|=24;break;case iv:return e=On(12,n,t,a|2),e.elementType=iv,e.lanes=i,e;case lv:return e=On(13,n,t,a),e.elementType=lv,e.lanes=i,e;case sv:return e=On(19,n,t,a),e.elementType=sv,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case na:l=10;break e;case CE:l=9;break e;case ex:l=11;break e;case tx:l=14;break e;case Pa:l=16,r=null;break e}l=29,n=Error(q(130,e===null?"null":typeof e,"")),r=null}return t=On(l,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function tl(e,t,n,r){return e=On(7,e,r,t),e.lanes=n,e}function Km(e,t,n){return e=On(6,e,null,t),e.lanes=n,e}function f_(e){var t=On(18,null,null,0);return t.stateNode=e,t}function Xm(e,t,n){return t=On(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var cj=new WeakMap;function Kn(e,t){if(typeof e=="object"&&e!==null){var n=cj.get(e);return n!==void 0?n:(t={value:e,source:t,stack:q1(t)},cj.set(e,t),t)}return{value:e,source:t,stack:q1(t)}}var is=[],ls=0,kd=null,Uc=0,Gn=[],Vn=0,pi=null,Nr=1,Tr="";function Jr(e,t){is[ls++]=Uc,is[ls++]=kd,kd=e,Uc=t}function d_(e,t,n){Gn[Vn++]=Nr,Gn[Vn++]=Tr,Gn[Vn++]=pi,pi=e;var r=Nr;e=Tr;var a=32-Tn(r)-1;r&=~(1<<a),n+=1;var i=32-Tn(t)+a;if(30<i){var l=a-a%5;i=(r&(1<<l)-1).toString(32),r>>=l,a-=l,Nr=1<<32-Tn(t)+a|n<<a|r,Tr=i+e}else Nr=1<<i|n<<a|r,Tr=e}function mx(e){e.return!==null&&(Jr(e,1),d_(e,1,0))}function yx(e){for(;e===kd;)kd=is[--ls],is[ls]=null,Uc=is[--ls],is[ls]=null;for(;e===pi;)pi=Gn[--Vn],Gn[Vn]=null,Tr=Gn[--Vn],Gn[Vn]=null,Nr=Gn[--Vn],Gn[Vn]=null}function h_(e,t){Gn[Vn++]=Nr,Gn[Vn++]=Tr,Gn[Vn++]=pi,Nr=t.id,Tr=t.overflow,pi=e}var Ut=null,Qe=null,_e=!1,ri=null,Xn=!1,Sv=Error(q(519));function mi(e){var t=Error(q(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Hc(Kn(t,e)),Sv}function uj(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[It]=e,t[pn]=r,n){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(n=0;n<Vc.length;n++)je(Vc[n],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),qE(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),GE(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||XN(t.textContent,n)?(r.popover!=null&&(je("beforetoggle",t),je("toggle",t)),r.onScroll!=null&&je("scroll",t),r.onScrollEnd!=null&&je("scrollend",t),r.onClick!=null&&(t.onclick=ra),t=!0):t=!1,t||mi(e,!0)}function fj(e){for(Ut=e.return;Ut;)switch(Ut.tag){case 5:case 31:case 13:Xn=!1;return;case 27:case 3:Xn=!0;return;default:Ut=Ut.return}}function Bl(e){if(e!==Ut)return!1;if(!_e)return fj(e),_e=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Yv(e.type,e.memoizedProps)),n=!n),n&&Qe&&mi(e),fj(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(317));Qe=Qj(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(317));Qe=Qj(e)}else t===27?(t=Qe,bi(e.type)?(e=Qv,Qv=null,Qe=e):Qe=t):Qe=Ut?Jn(e.stateNode.nextSibling):null;return!0}function cl(){Qe=Ut=null,_e=!1}function Wm(){var e=ri;return e!==null&&(un===null?un=e:un.push.apply(un,e),ri=null),e}function Hc(e){ri===null?ri=[e]:ri.push(e)}var wv=Br(null),Nl=null,aa=null;function Da(e,t,n){Ge(wv,t._currentValue),t._currentValue=n}function ua(e){e._currentValue=wv.current,Rt(wv)}function Ov(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Av(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var l=a.child;i=i.firstContext;e:for(;i!==null;){var s=i;i=a;for(var c=0;c<t.length;c++)if(s.context===t[c]){i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Ov(i.return,n,e),r||(l=null);break e}i=s.next}}else if(a.tag===18){if(l=a.return,l===null)throw Error(q(341));l.lanes|=n,i=l.alternate,i!==null&&(i.lanes|=n),Ov(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 jo(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(q(387));if(l=l.memoizedProps,l!==null){var s=a.type;$n(a.pendingProps.value,l.value)||(e!==null?e.push(s):e=[s])}}else if(a===Ad.current){if(l=a.alternate,l===null)throw Error(q(387));l.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Kc):e=[Kc])}a=a.return}e!==null&&Av(t,e,n,r),t.flags|=262144}function Pd(e){for(e=e.firstContext;e!==null;){if(!$n(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ul(e){Nl=e,aa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function qt(e){return p_(Nl,e)}function Ef(e,t){return Nl===null&&ul(e),p_(e,t)}function p_(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},aa===null){if(e===null)throw Error(q(308));aa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else aa=aa.next=t;return n}var lR=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()})}},sR=Nt.unstable_scheduleCallback,oR=Nt.unstable_NormalPriority,bt={$$typeof:na,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vx(){return{controller:new lR,data:new Map,refCount:0}}function Yu(e){e.refCount--,e.refCount===0&&sR(oR,function(){e.controller.abort()})}var xc=null,Ev=0,Rs=0,ys=null;function cR(e,t){if(xc===null){var n=xc=[];Ev=0,Rs=Hx(),ys={status:"pending",value:void 0,then:function(r){n.push(r)}}}return Ev++,t.then(dj,dj),t}function dj(){if(--Ev===0&&xc!==null){ys!==null&&(ys.status="fulfilled");var e=xc;xc=null,Rs=0,ys=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function uR(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 hj=he.S;he.S=function(e,t){NN=_n(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&cR(e,t),hj!==null&&hj(e,t)};var nl=Br(null);function gx(){var e=nl.current;return e!==null?e:He.pooledCache}function ld(e,t){t===null?Ge(nl,nl.current):Ge(nl,t.pool)}function m_(){var e=gx();return e===null?null:{parent:bt._currentValue,pool:e}}var So=Error(q(460)),bx=Error(q(474)),gp=Error(q(542)),$d={then:function(){}};function pj(e){return e=e.status,e==="fulfilled"||e==="rejected"}function y_(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ra,ra),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,yj(e),e;default:if(typeof t.status=="string")t.then(ra,ra);else{if(e=He,e!==null&&100<e.shellSuspendCounter)throw Error(q(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,yj(e),e}throw rl=t,So}}function Di(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(rl=n,So):n}}var rl=null;function mj(){if(rl===null)throw Error(q(459));var e=rl;return rl=null,e}function yj(e){if(e===So||e===gp)throw Error(q(483))}var vs=null,qc=0;function _f(e){var t=qc;return qc+=1,vs===null&&(vs=[]),y_(vs,e,t)}function Ko(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Nf(e,t){throw t.$$typeof===W$?Error(q(525)):(e=Object.prototype.toString.call(t),Error(q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function v_(e){function t(g,j){if(e){var x=g.deletions;x===null?(g.deletions=[j],g.flags|=16):x.push(j)}}function n(g,j){if(!e)return null;for(;j!==null;)t(g,j),j=j.sibling;return null}function r(g){for(var j=new Map;g!==null;)g.key!==null?j.set(g.key,g):j.set(g.index,g),g=g.sibling;return j}function a(g,j){return g=ca(g,j),g.index=0,g.sibling=null,g}function i(g,j,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<j?(g.flags|=67108866,j):x):(g.flags|=67108866,j)):(g.flags|=1048576,j)}function l(g){return e&&g.alternate===null&&(g.flags|=67108866),g}function s(g,j,x,m){return j===null||j.tag!==6?(j=Km(x,g.mode,m),j.return=g,j):(j=a(j,x),j.return=g,j)}function c(g,j,x,m){var S=x.type;return S===Wl?f(g,j,x.props.children,m,x.key):j!==null&&(j.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Pa&&Di(S)===j.type)?(j=a(j,x.props),Ko(j,x),j.return=g,j):(j=id(x.type,x.key,x.props,null,g.mode,m),Ko(j,x),j.return=g,j)}function u(g,j,x,m){return j===null||j.tag!==4||j.stateNode.containerInfo!==x.containerInfo||j.stateNode.implementation!==x.implementation?(j=Xm(x,g.mode,m),j.return=g,j):(j=a(j,x.children||[]),j.return=g,j)}function f(g,j,x,m,S){return j===null||j.tag!==7?(j=tl(x,g.mode,m,S),j.return=g,j):(j=a(j,x),j.return=g,j)}function d(g,j,x){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Km(""+j,g.mode,x),j.return=g,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case xf:return x=id(j.type,j.key,j.props,null,g.mode,x),Ko(x,j),x.return=g,x;case uc:return j=Xm(j,g.mode,x),j.return=g,j;case Pa:return j=Di(j),d(g,j,x)}if(fc(j)||Go(j))return j=tl(j,g.mode,x,null),j.return=g,j;if(typeof j.then=="function")return d(g,_f(j),x);if(j.$$typeof===na)return d(g,Ef(g,j),x);Nf(g,j)}return null}function h(g,j,x,m){var S=j!==null?j.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return S!==null?null:s(g,j,""+x,m);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case xf:return x.key===S?c(g,j,x,m):null;case uc:return x.key===S?u(g,j,x,m):null;case Pa:return x=Di(x),h(g,j,x,m)}if(fc(x)||Go(x))return S!==null?null:f(g,j,x,m,null);if(typeof x.then=="function")return h(g,j,_f(x),m);if(x.$$typeof===na)return h(g,j,Ef(g,x),m);Nf(g,x)}return null}function p(g,j,x,m,S){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return g=g.get(x)||null,s(j,g,""+m,S);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case xf:return g=g.get(m.key===null?x:m.key)||null,c(j,g,m,S);case uc:return g=g.get(m.key===null?x:m.key)||null,u(j,g,m,S);case Pa:return m=Di(m),p(g,j,x,m,S)}if(fc(m)||Go(m))return g=g.get(x)||null,f(j,g,m,S,null);if(typeof m.then=="function")return p(g,j,x,_f(m),S);if(m.$$typeof===na)return p(g,j,x,Ef(j,m),S);Nf(j,m)}return null}function y(g,j,x,m){for(var S=null,w=null,A=j,_=j=0,E=null;A!==null&&_<x.length;_++){A.index>_?(E=A,A=null):E=A.sibling;var C=h(g,A,x[_],m);if(C===null){A===null&&(A=E);break}e&&A&&C.alternate===null&&t(g,A),j=i(C,j,_),w===null?S=C:w.sibling=C,w=C,A=E}if(_===x.length)return n(g,A),_e&&Jr(g,_),S;if(A===null){for(;_<x.length;_++)A=d(g,x[_],m),A!==null&&(j=i(A,j,_),w===null?S=A:w.sibling=A,w=A);return _e&&Jr(g,_),S}for(A=r(A);_<x.length;_++)E=p(A,g,_,x[_],m),E!==null&&(e&&E.alternate!==null&&A.delete(E.key===null?_:E.key),j=i(E,j,_),w===null?S=E:w.sibling=E,w=E);return e&&A.forEach(function(k){return t(g,k)}),_e&&Jr(g,_),S}function v(g,j,x,m){if(x==null)throw Error(q(151));for(var S=null,w=null,A=j,_=j=0,E=null,C=x.next();A!==null&&!C.done;_++,C=x.next()){A.index>_?(E=A,A=null):E=A.sibling;var k=h(g,A,C.value,m);if(k===null){A===null&&(A=E);break}e&&A&&k.alternate===null&&t(g,A),j=i(k,j,_),w===null?S=k:w.sibling=k,w=k,A=E}if(C.done)return n(g,A),_e&&Jr(g,_),S;if(A===null){for(;!C.done;_++,C=x.next())C=d(g,C.value,m),C!==null&&(j=i(C,j,_),w===null?S=C:w.sibling=C,w=C);return _e&&Jr(g,_),S}for(A=r(A);!C.done;_++,C=x.next())C=p(A,g,_,C.value,m),C!==null&&(e&&C.alternate!==null&&A.delete(C.key===null?_:C.key),j=i(C,j,_),w===null?S=C:w.sibling=C,w=C);return e&&A.forEach(function(M){return t(g,M)}),_e&&Jr(g,_),S}function b(g,j,x,m){if(typeof x=="object"&&x!==null&&x.type===Wl&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case xf:e:{for(var S=x.key;j!==null;){if(j.key===S){if(S=x.type,S===Wl){if(j.tag===7){n(g,j.sibling),m=a(j,x.props.children),m.return=g,g=m;break e}}else if(j.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Pa&&Di(S)===j.type){n(g,j.sibling),m=a(j,x.props),Ko(m,x),m.return=g,g=m;break e}n(g,j);break}else t(g,j);j=j.sibling}x.type===Wl?(m=tl(x.props.children,g.mode,m,x.key),m.return=g,g=m):(m=id(x.type,x.key,x.props,null,g.mode,m),Ko(m,x),m.return=g,g=m)}return l(g);case uc:e:{for(S=x.key;j!==null;){if(j.key===S)if(j.tag===4&&j.stateNode.containerInfo===x.containerInfo&&j.stateNode.implementation===x.implementation){n(g,j.sibling),m=a(j,x.children||[]),m.return=g,g=m;break e}else{n(g,j);break}else t(g,j);j=j.sibling}m=Xm(x,g.mode,m),m.return=g,g=m}return l(g);case Pa:return x=Di(x),b(g,j,x,m)}if(fc(x))return y(g,j,x,m);if(Go(x)){if(S=Go(x),typeof S!="function")throw Error(q(150));return x=S.call(x),v(g,j,x,m)}if(typeof x.then=="function")return b(g,j,_f(x),m);if(x.$$typeof===na)return b(g,j,Ef(g,x),m);Nf(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,j!==null&&j.tag===6?(n(g,j.sibling),m=a(j,x),m.return=g,g=m):(n(g,j),m=Km(x,g.mode,m),m.return=g,g=m),l(g)):n(g,j)}return function(g,j,x,m){try{qc=0;var S=b(g,j,x,m);return vs=null,S}catch(A){if(A===So||A===gp)throw A;var w=On(29,A,null,g.mode);return w.lanes=m,w.return=g,w}finally{}}}var fl=v_(!0),g_=v_(!1),$a=!1;function xx(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _v(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 ai(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ii(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ce&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=Md(e),c_(e,null,n),t}return vp(e,r,t,n),Md(e)}function jc(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,DE(e,n)}}function Qm(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 Nv=!1;function Sc(){if(Nv){var e=ys;if(e!==null)throw e}}function wc(e,t,n,r){Nv=!1;var a=e.updateQueue;$a=!1;var i=a.firstBaseUpdate,l=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var c=s,u=c.next;c.next=null,l===null?i=u:l.next=u,l=c;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==l&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=c))}if(i!==null){var d=a.baseState;l=0,f=u=c=null,s=i;do{var h=s.lane&-536870913,p=h!==s.lane;if(p?(Ee&h)===h:(r&h)===h){h!==0&&h===Rs&&(Nv=!0),f!==null&&(f=f.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var y=e,v=s;h=t;var b=n;switch(v.tag){case 1:if(y=v.payload,typeof y=="function"){d=y.call(b,d,h);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,h=typeof y=="function"?y.call(b,d,h):y,h==null)break e;d=Je({},d,h);break e;case 2:$a=!0}}h=s.callback,h!==null&&(e.flags|=64,p&&(e.flags|=8192),p=a.callbacks,p===null?a.callbacks=[h]:p.push(h))}else p={lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=p,c=d):f=f.next=p,l|=h;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;p=s,s=p.next,p.next=null,a.lastBaseUpdate=p,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),vi|=l,e.lanes=l,e.memoizedState=d}}function b_(e,t){if(typeof e!="function")throw Error(q(191,e));e.call(t)}function x_(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)b_(n[e],t)}var Ds=Br(null),Rd=Br(0);function vj(e,t){e=ga,Ge(Rd,e),Ge(Ds,t),ga=e|t.baseLanes}function Tv(){Ge(Rd,ga),Ge(Ds,Ds.current)}function jx(){ga=Rd.current,Rt(Ds),Rt(Rd)}var Rn=Br(null),Zn=null;function za(e){var t=e.alternate;Ge(ut,ut.current&1),Ge(Rn,e),Zn===null&&(t===null||Ds.current!==null||t.memoizedState!==null)&&(Zn=e)}function Cv(e){Ge(ut,ut.current),Ge(Rn,e),Zn===null&&(Zn=e)}function j_(e){e.tag===22?(Ge(ut,ut.current),Ge(Rn,e),Zn===null&&(Zn=e)):La()}function La(){Ge(ut,ut.current),Ge(Rn,Rn.current)}function wn(e){Rt(Rn),Zn===e&&(Zn=null),Rt(ut)}var ut=Br(0);function Dd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Xv(n)||Wv(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 ma=0,ge=null,Ie=null,vt=null,zd=!1,gs=!1,dl=!1,Ld=0,Fc=0,bs=null,fR=0;function it(){throw Error(q(321))}function Sx(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$n(e[n],t[n]))return!1;return!0}function wx(e,t,n,r,a,i){return ma=i,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,he.H=e===null||e.memoizedState===null?Z_:$x,dl=!1,i=n(r,a),dl=!1,gs&&(i=w_(t,n,r,a)),S_(e),i}function S_(e){he.H=Gc;var t=Ie!==null&&Ie.next!==null;if(ma=0,vt=Ie=ge=null,zd=!1,Fc=0,bs=null,t)throw Error(q(300));e===null||jt||(e=e.dependencies,e!==null&&Pd(e)&&(jt=!0))}function w_(e,t,n,r){ge=e;var a=0;do{if(gs&&(bs=null),Fc=0,gs=!1,25<=a)throw Error(q(301));if(a+=1,vt=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)}he.H=J_,i=t(n,r)}while(gs);return i}function dR(){var e=he.H,t=e.useState()[0];return t=typeof t.then=="function"?Ku(t):t,e=e.useState()[0],(Ie!==null?Ie.memoizedState:null)!==e&&(ge.flags|=1024),t}function Ox(){var e=Ld!==0;return Ld=0,e}function Ax(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ex(e){if(zd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zd=!1}ma=0,vt=Ie=ge=null,gs=!1,Fc=Ld=0,bs=null}function Wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?ge.memoizedState=vt=e:vt=vt.next=e,vt}function dt(){if(Ie===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=vt===null?ge.memoizedState:vt.next;if(t!==null)vt=t,Ie=e;else{if(e===null)throw ge.alternate===null?Error(q(467)):Error(q(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},vt===null?ge.memoizedState=vt=e:vt=vt.next=e}return vt}function bp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ku(e){var t=Fc;return Fc+=1,bs===null&&(bs=[]),e=y_(bs,e,t),t=ge,(vt===null?t.memoizedState:vt.next)===null&&(t=t.alternate,he.H=t===null||t.memoizedState===null?Z_:$x),e}function xp(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ku(e);if(e.$$typeof===na)return qt(e)}throw Error(q(438,String(e)))}function _x(e){var t=null,n=ge.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=ge.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=bp(),ge.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 ya(e,t){return typeof t=="function"?t(e):t}function sd(e){var t=dt();return Nx(t,Ie,e)}function Nx(e,t,n){var r=e.queue;if(r===null)throw Error(q(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 s=l=null,c=null,u=t,f=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(Ee&d)===d:(ma&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===Rs&&(f=!0);else if((ma&h)===h){u=u.next,h===Rs&&(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?(s=c=d,l=i):c=c.next=d,ge.lanes|=h,vi|=h;d=u.action,dl&&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?(s=c=h,l=i):c=c.next=h,ge.lanes|=d,vi|=d;u=u.next}while(u!==null&&u!==t);if(c===null?l=i:c.next=s,!$n(i,e.memoizedState)&&(jt=!0,f&&(n=ys,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 Zm(e){var t=dt(),n=t.queue;if(n===null)throw Error(q(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);$n(i,t.memoizedState)||(jt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function O_(e,t,n){var r=ge,a=dt(),i=_e;if(i){if(n===void 0)throw Error(q(407));n=n()}else n=t();var l=!$n((Ie||a).memoizedState,n);if(l&&(a.memoizedState=n,jt=!0),a=a.queue,Tx(__.bind(null,r,a,e),[e]),a.getSnapshot!==t||l||vt!==null&&vt.memoizedState.tag&1){if(r.flags|=2048,zs(9,{destroy:void 0},E_.bind(null,r,a,n,t),null),He===null)throw Error(q(349));i||ma&127||A_(r,t,n)}return n}function A_(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ge.updateQueue,t===null?(t=bp(),ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function E_(e,t,n,r){t.value=n,t.getSnapshot=r,N_(t)&&T_(e)}function __(e,t,n){return n(function(){N_(t)&&T_(e)})}function N_(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$n(e,n)}catch{return!0}}function T_(e){var t=_l(e,2);t!==null&&dn(t,e,2)}function Mv(e){var t=Wt();if(typeof e=="function"){var n=e;if(e=n(),dl){Ya(!0);try{n()}finally{Ya(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:e},t}function C_(e,t,n,r){return e.baseState=n,Nx(e,Ie,typeof r=="function"?r:ya)}function hR(e,t,n,r,a){if(Sp(e))throw Error(q(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)}};he.T!==null?n(!0):i.isTransition=!1,r(i),n=t.pending,n===null?(i.next=t.pending=i,M_(t,i)):(i.next=n.next,t.pending=n.next=i)}}function M_(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var i=he.T,l={};he.T=l;try{var s=n(a,r),c=he.S;c!==null&&c(l,s),gj(e,t,s)}catch(u){kv(e,t,u)}finally{i!==null&&l.types!==null&&(i.types=l.types),he.T=i}}else try{i=n(a,r),gj(e,t,i)}catch(u){kv(e,t,u)}}function gj(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){bj(e,t,r)},function(r){return kv(e,t,r)}):bj(e,t,n)}function bj(e,t,n){t.status="fulfilled",t.value=n,k_(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,M_(e,n)))}function kv(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,k_(t),t=t.next;while(t!==r)}e.action=null}function k_(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function P_(e,t){return t}function xj(e,t){if(_e){var n=He.formState;if(n!==null){e:{var r=ge;if(_e){if(Qe){t:{for(var a=Qe,i=Xn;a.nodeType!==8;){if(!i){a=null;break t}if(a=Jn(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Qe=Jn(a.nextSibling),r=a.data==="F!";break e}}mi(r)}r=!1}r&&(t=n[0])}}return n=Wt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:P_,lastRenderedState:t},n.queue=r,n=X_.bind(null,ge,r),r.dispatch=n,r=Mv(!1),i=Px.bind(null,ge,!1,r.queue),r=Wt(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=hR.bind(null,ge,a,i,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function jj(e){var t=dt();return $_(t,Ie,e)}function $_(e,t,n){if(t=Nx(e,t,P_)[0],e=sd(ya)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Ku(t)}catch(l){throw l===So?gp:l}else r=t;t=dt();var a=t.queue,i=a.dispatch;return n!==t.memoizedState&&(ge.flags|=2048,zs(9,{destroy:void 0},pR.bind(null,a,n),null)),[r,i,e]}function pR(e,t){e.action=t}function Sj(e){var t=dt(),n=Ie;if(n!==null)return $_(t,n,e);dt(),t=t.memoizedState,n=dt();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function zs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=ge.updateQueue,t===null&&(t=bp(),ge.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 R_(){return dt().memoizedState}function od(e,t,n,r){var a=Wt();ge.flags|=e,a.memoizedState=zs(1|t,{destroy:void 0},n,r===void 0?null:r)}function jp(e,t,n,r){var a=dt();r=r===void 0?null:r;var i=a.memoizedState.inst;Ie!==null&&r!==null&&Sx(r,Ie.memoizedState.deps)?a.memoizedState=zs(t,i,n,r):(ge.flags|=e,a.memoizedState=zs(1|t,i,n,r))}function wj(e,t){od(8390656,8,e,t)}function Tx(e,t){jp(2048,8,e,t)}function mR(e){ge.flags|=4;var t=ge.updateQueue;if(t===null)t=bp(),ge.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function D_(e){var t=dt().memoizedState;return mR({ref:t,nextImpl:e}),function(){if(Ce&2)throw Error(q(440));return t.impl.apply(void 0,arguments)}}function z_(e,t){return jp(4,2,e,t)}function L_(e,t){return jp(4,4,e,t)}function B_(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function I_(e,t,n){n=n!=null?n.concat([e]):null,jp(4,4,B_.bind(null,t,e),n)}function Cx(){}function U_(e,t){var n=dt();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Sx(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function H_(e,t){var n=dt();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Sx(t,r[1]))return r[0];if(r=e(),dl){Ya(!0);try{e()}finally{Ya(!1)}}return n.memoizedState=[r,t],r}function Mx(e,t,n){return n===void 0||ma&1073741824&&!(Ee&261930)?e.memoizedState=t:(e.memoizedState=n,e=CN(),ge.lanes|=e,vi|=e,n)}function q_(e,t,n,r){return $n(n,t)?n:Ds.current!==null?(e=Mx(e,n,r),$n(e,t)||(jt=!0),e):!(ma&42)||ma&1073741824&&!(Ee&261930)?(jt=!0,e.memoizedState=n):(e=CN(),ge.lanes|=e,vi|=e,t)}function F_(e,t,n,r,a){var i=Me.p;Me.p=i!==0&&8>i?i:8;var l=he.T,s={};he.T=s,Px(e,!1,t,n);try{var c=a(),u=he.S;if(u!==null&&u(s,c),c!==null&&typeof c=="object"&&typeof c.then=="function"){var f=uR(c,r);Oc(e,t,f,Cn(e))}else Oc(e,t,r,Cn(e))}catch(d){Oc(e,t,{then:function(){},status:"rejected",reason:d},Cn())}finally{Me.p=i,l!==null&&s.types!==null&&(l.types=s.types),he.T=l}}function yR(){}function Pv(e,t,n,r){if(e.tag!==5)throw Error(q(476));var a=G_(e).queue;F_(e,a,t,el,n===null?yR:function(){return V_(e),n(r)})}function G_(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:el,baseState:el,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:el},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function V_(e){var t=G_(e);t.next===null&&(t=e.alternate.memoizedState),Oc(e,t.next.queue,{},Cn())}function kx(){return qt(Kc)}function Y_(){return dt().memoizedState}function K_(){return dt().memoizedState}function vR(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Cn();e=ai(n);var r=ii(t,e,n);r!==null&&(dn(r,t,n),jc(r,t,n)),t={cache:vx()},e.payload=t;return}t=t.return}}function gR(e,t,n){var r=Cn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Sp(e)?W_(t,n):(n=hx(e,t,n,r),n!==null&&(dn(n,e,r),Q_(n,t,r)))}function X_(e,t,n){var r=Cn();Oc(e,t,n,r)}function Oc(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Sp(e))W_(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,s=i(l,n);if(a.hasEagerState=!0,a.eagerState=s,$n(s,l))return vp(e,t,a,0),He===null&&yp(),!1}catch{}finally{}if(n=hx(e,t,a,r),n!==null)return dn(n,e,r),Q_(n,t,r),!0}return!1}function Px(e,t,n,r){if(r={lane:2,revertLane:Hx(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Sp(e)){if(t)throw Error(q(479))}else t=hx(e,n,r,2),t!==null&&dn(t,e,2)}function Sp(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function W_(e,t){gs=zd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Q_(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,DE(e,n)}}var Gc={readContext:qt,use:xp,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useLayoutEffect:it,useInsertionEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useSyncExternalStore:it,useId:it,useHostTransitionStatus:it,useFormState:it,useActionState:it,useOptimistic:it,useMemoCache:it,useCacheRefresh:it};Gc.useEffectEvent=it;var Z_={readContext:qt,use:xp,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:qt,useEffect:wj,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,od(4194308,4,B_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return od(4194308,4,e,t)},useInsertionEffect:function(e,t){od(4,2,e,t)},useMemo:function(e,t){var n=Wt();t=t===void 0?null:t;var r=e();if(dl){Ya(!0);try{e()}finally{Ya(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Wt();if(n!==void 0){var a=n(t);if(dl){Ya(!0);try{n(t)}finally{Ya(!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=gR.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:function(e){e=Mv(e);var t=e.queue,n=X_.bind(null,ge,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Cx,useDeferredValue:function(e,t){var n=Wt();return Mx(n,e,t)},useTransition:function(){var e=Mv(!1);return e=F_.bind(null,ge,e.queue,!0,!1),Wt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ge,a=Wt();if(_e){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),He===null)throw Error(q(349));Ee&127||A_(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,wj(__.bind(null,r,i,e),[e]),r.flags|=2048,zs(9,{destroy:void 0},E_.bind(null,r,i,n,t),null),n},useId:function(){var e=Wt(),t=He.identifierPrefix;if(_e){var n=Tr,r=Nr;n=(r&~(1<<32-Tn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Ld++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=fR++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:kx,useFormState:xj,useActionState:xj,useOptimistic:function(e){var t=Wt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Px.bind(null,ge,!0,n),n.dispatch=t,[e,t]},useMemoCache:_x,useCacheRefresh:function(){return Wt().memoizedState=vR.bind(null,ge)},useEffectEvent:function(e){var t=Wt(),n={impl:e};return t.memoizedState=n,function(){if(Ce&2)throw Error(q(440));return n.impl.apply(void 0,arguments)}}},$x={readContext:qt,use:xp,useCallback:U_,useContext:qt,useEffect:Tx,useImperativeHandle:I_,useInsertionEffect:z_,useLayoutEffect:L_,useMemo:H_,useReducer:sd,useRef:R_,useState:function(){return sd(ya)},useDebugValue:Cx,useDeferredValue:function(e,t){var n=dt();return q_(n,Ie.memoizedState,e,t)},useTransition:function(){var e=sd(ya)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:Ku(e),t]},useSyncExternalStore:O_,useId:Y_,useHostTransitionStatus:kx,useFormState:jj,useActionState:jj,useOptimistic:function(e,t){var n=dt();return C_(n,Ie,e,t)},useMemoCache:_x,useCacheRefresh:K_};$x.useEffectEvent=D_;var J_={readContext:qt,use:xp,useCallback:U_,useContext:qt,useEffect:Tx,useImperativeHandle:I_,useInsertionEffect:z_,useLayoutEffect:L_,useMemo:H_,useReducer:Zm,useRef:R_,useState:function(){return Zm(ya)},useDebugValue:Cx,useDeferredValue:function(e,t){var n=dt();return Ie===null?Mx(n,e,t):q_(n,Ie.memoizedState,e,t)},useTransition:function(){var e=Zm(ya)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:Ku(e),t]},useSyncExternalStore:O_,useId:Y_,useHostTransitionStatus:kx,useFormState:Sj,useActionState:Sj,useOptimistic:function(e,t){var n=dt();return Ie!==null?C_(n,Ie,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:_x,useCacheRefresh:K_};J_.useEffectEvent=D_;function Jm(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Je({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var $v={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Cn(),a=ai(r);a.payload=t,n!=null&&(a.callback=n),t=ii(e,a,r),t!==null&&(dn(t,e,r),jc(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Cn(),a=ai(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=ii(e,a,r),t!==null&&(dn(t,e,r),jc(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Cn(),r=ai(n);r.tag=2,t!=null&&(r.callback=t),t=ii(e,r,n),t!==null&&(dn(t,e,n),jc(t,e,n))}};function Oj(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?!Ic(n,r)||!Ic(a,i):!0}function Aj(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&&$v.enqueueReplaceState(t,t.state,null)}function hl(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=Je({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function eN(e){Cd(e)}function tN(e){console.error(e)}function nN(e){Cd(e)}function Bd(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Ej(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 Rv(e,t,n){return n=ai(n),n.tag=3,n.payload={element:null},n.callback=function(){Bd(e,t)},n}function rN(e){return e=ai(e),e.tag=3,e}function aN(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(){Ej(t,n,r)}}var l=n.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){Ej(t,n,r),typeof a!="function"&&(li===null?li=new Set([this]):li.add(this));var s=r.stack;this.componentDidCatch(r.value,{componentStack:s!==null?s:""})})}function bR(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&jo(t,n,a,!0),n=Rn.current,n!==null){switch(n.tag){case 31:case 13:return Zn===null?Fd():n.alternate===null&&ot===0&&(ot=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===$d?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),uy(e,r,a)),!1;case 22:return n.flags|=65536,r===$d?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)),uy(e,r,a)),!1}throw Error(q(435,n.tag))}return uy(e,r,a),Fd(),!1}if(_e)return t=Rn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Sv&&(e=Error(q(422),{cause:r}),Hc(Kn(e,n)))):(r!==Sv&&(t=Error(q(423),{cause:r}),Hc(Kn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Kn(r,n),a=Rv(e.stateNode,r,a),Qm(e,a),ot!==4&&(ot=2)),!1;var i=Error(q(520),{cause:r});if(i=Kn(i,n),_c===null?_c=[i]:_c.push(i),ot!==4&&(ot=2),t===null)return!0;r=Kn(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Rv(n.stateNode,r,e),Qm(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"&&(li===null||!li.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=rN(a),aN(a,e,n,r),Qm(n,a),!1}n=n.return}while(n!==null);return!1}var Rx=Error(q(461)),jt=!1;function Bt(e,t,n,r){t.child=e===null?g_(t,null,n,r):fl(t,e.child,n,r)}function _j(e,t,n,r,a){n=n.render;var i=t.ref;if("ref"in r){var l={};for(var s in r)s!=="ref"&&(l[s]=r[s])}else l=r;return ul(t),r=wx(e,t,n,l,i,a),s=Ox(),e!==null&&!jt?(Ax(e,t,a),va(e,t,a)):(_e&&s&&mx(t),t.flags|=1,Bt(e,t,r,a),t.child)}function Nj(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!px(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,iN(e,t,i,r,a)):(e=id(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Dx(e,a)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:Ic,n(l,r)&&e.ref===t.ref)return va(e,t,a)}return t.flags|=1,e=ca(i,r),e.ref=t.ref,e.return=t,t.child=e}function iN(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(Ic(i,r)&&e.ref===t.ref)if(jt=!1,t.pendingProps=r=i,Dx(e,a))e.flags&131072&&(jt=!0);else return t.lanes=e.lanes,va(e,t,a)}return Dv(e,t,n,r,a)}function lN(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 Tj(e,t,i,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ld(t,i!==null?i.cachePool:null),i!==null?vj(t,i):Tv(),j_(t);else return r=t.lanes=536870912,Tj(e,t,i!==null?i.baseLanes|n:n,n,r)}else i!==null?(ld(t,i.cachePool),vj(t,i),La(),t.memoizedState=null):(e!==null&&ld(t,null),Tv(),La());return Bt(e,t,a,n),t.child}function hc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Tj(e,t,n,r,a){var i=gx();return i=i===null?null:{parent:bt._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&ld(t,null),Tv(),j_(t),e!==null&&jo(e,t,r,!0),t.childLanes=a,null}function cd(e,t){return t=Id({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Cj(e,t,n){return fl(t,e.child,null,n),e=cd(t,t.pendingProps),e.flags|=2,wn(t),t.memoizedState=null,e}function xR(e,t,n){var r=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(_e){if(r.mode==="hidden")return e=cd(t,r),t.lanes=536870912,hc(null,e);if(Cv(t),(e=Qe)?(e=ZN(e,Xn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pi!==null?{id:Nr,overflow:Tr}:null,retryLane:536870912,hydrationErrors:null},n=f_(e),n.return=t,t.child=n,Ut=t,Qe=null)):e=null,e===null)throw mi(t);return t.lanes=536870912,null}return cd(t,r)}var i=e.memoizedState;if(i!==null){var l=i.dehydrated;if(Cv(t),a)if(t.flags&256)t.flags&=-257,t=Cj(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(q(558));else if(jt||jo(e,t,n,!1),a=(n&e.childLanes)!==0,jt||a){if(r=He,r!==null&&(l=zE(r,n),l!==0&&l!==i.retryLane))throw i.retryLane=l,_l(e,l),dn(r,e,l),Rx;Fd(),t=Cj(e,t,n)}else e=i.treeContext,Qe=Jn(l.nextSibling),Ut=t,_e=!0,ri=null,Xn=!1,e!==null&&h_(t,e),t=cd(t,r),t.flags|=4096;return t}return e=ca(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ud(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(q(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Dv(e,t,n,r,a){return ul(t),n=wx(e,t,n,r,void 0,a),r=Ox(),e!==null&&!jt?(Ax(e,t,a),va(e,t,a)):(_e&&r&&mx(t),t.flags|=1,Bt(e,t,n,a),t.child)}function Mj(e,t,n,r,a,i){return ul(t),t.updateQueue=null,n=w_(t,r,n,a),S_(e),r=Ox(),e!==null&&!jt?(Ax(e,t,i),va(e,t,i)):(_e&&r&&mx(t),t.flags|=1,Bt(e,t,n,i),t.child)}function kj(e,t,n,r,a){if(ul(t),t.stateNode===null){var i=as,l=n.contextType;typeof l=="object"&&l!==null&&(i=qt(l)),i=new n(r,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=$v,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=r,i.state=t.memoizedState,i.refs={},xx(t),l=n.contextType,i.context=typeof l=="object"&&l!==null?qt(l):as,i.state=t.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(Jm(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&&$v.enqueueReplaceState(i,i.state,null),wc(t,r,i,a),Sc(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){i=t.stateNode;var s=t.memoizedProps,c=hl(n,s);i.props=c;var u=i.context,f=n.contextType;l=as,typeof f=="object"&&f!==null&&(l=qt(f));var d=n.getDerivedStateFromProps;f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s||u!==l)&&Aj(t,i,r,l),$a=!1;var h=t.memoizedState;i.state=h,wc(t,r,i,a),Sc(),u=t.memoizedState,s||h!==u||$a?(typeof d=="function"&&(Jm(t,n,d,r),u=t.memoizedState),(c=$a||Oj(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,_v(e,t),l=t.memoizedProps,f=hl(n,l),i.props=f,d=t.pendingProps,h=i.context,u=n.contextType,c=as,typeof u=="object"&&u!==null&&(c=qt(u)),s=n.getDerivedStateFromProps,(u=typeof s=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==d||h!==c)&&Aj(t,i,r,c),$a=!1,h=t.memoizedState,i.state=h,wc(t,r,i,a),Sc();var p=t.memoizedState;l!==d||h!==p||$a||e!==null&&e.dependencies!==null&&Pd(e.dependencies)?(typeof s=="function"&&(Jm(t,n,s,r),p=t.memoizedState),(f=$a||Oj(t,n,f,r,h,p,c)||e!==null&&e.dependencies!==null&&Pd(e.dependencies))?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,p,c),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,p,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=p),i.props=r,i.state=p,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,ud(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=fl(t,e.child,null,a),t.child=fl(t,null,n,a)):Bt(e,t,n,a),t.memoizedState=i.state,e=t.child):e=va(e,t,a),e}function Pj(e,t,n,r){return cl(),t.flags|=256,Bt(e,t,n,r),t.child}var ey={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ty(e){return{baseLanes:e,cachePool:m_()}}function ny(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=En),e}function sN(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:(ut.current&2)!==0),l&&(a=!0,t.flags&=-129),l=(t.flags&32)!==0,t.flags&=-33,e===null){if(_e){if(a?za(t):La(),(e=Qe)?(e=ZN(e,Xn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pi!==null?{id:Nr,overflow:Tr}:null,retryLane:536870912,hydrationErrors:null},n=f_(e),n.return=t,t.child=n,Ut=t,Qe=null)):e=null,e===null)throw mi(t);return Wv(e)?t.lanes=32:t.lanes=536870912,null}var s=r.children;return r=r.fallback,a?(La(),a=t.mode,s=Id({mode:"hidden",children:s},a),r=tl(r,a,n,null),s.return=t,r.return=t,s.sibling=r,t.child=s,r=t.child,r.memoizedState=ty(n),r.childLanes=ny(e,l,n),t.memoizedState=ey,hc(null,r)):(za(t),zv(t,s))}var c=e.memoizedState;if(c!==null&&(s=c.dehydrated,s!==null)){if(i)t.flags&256?(za(t),t.flags&=-257,t=ry(e,t,n)):t.memoizedState!==null?(La(),t.child=e.child,t.flags|=128,t=null):(La(),s=r.fallback,a=t.mode,r=Id({mode:"visible",children:r.children},a),s=tl(s,a,n,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,fl(t,e.child,null,n),r=t.child,r.memoizedState=ty(n),r.childLanes=ny(e,l,n),t.memoizedState=ey,t=hc(null,r));else if(za(t),Wv(s)){if(l=s.nextSibling&&s.nextSibling.dataset,l)var u=l.dgst;l=u,r=Error(q(419)),r.stack="",r.digest=l,Hc({value:r,source:null,stack:null}),t=ry(e,t,n)}else if(jt||jo(e,t,n,!1),l=(n&e.childLanes)!==0,jt||l){if(l=He,l!==null&&(r=zE(l,n),r!==0&&r!==c.retryLane))throw c.retryLane=r,_l(e,r),dn(l,e,r),Rx;Xv(s)||Fd(),t=ry(e,t,n)}else Xv(s)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,Qe=Jn(s.nextSibling),Ut=t,_e=!0,ri=null,Xn=!1,e!==null&&h_(t,e),t=zv(t,r.children),t.flags|=4096);return t}return a?(La(),s=r.fallback,a=t.mode,c=e.child,u=c.sibling,r=ca(c,{mode:"hidden",children:r.children}),r.subtreeFlags=c.subtreeFlags&65011712,u!==null?s=ca(u,s):(s=tl(s,a,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,hc(null,r),r=t.child,s=e.child.memoizedState,s===null?s=ty(n):(a=s.cachePool,a!==null?(c=bt._currentValue,a=a.parent!==c?{parent:c,pool:c}:a):a=m_(),s={baseLanes:s.baseLanes|n,cachePool:a}),r.memoizedState=s,r.childLanes=ny(e,l,n),t.memoizedState=ey,hc(e.child,r)):(za(t),n=e.child,e=n.sibling,n=ca(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 zv(e,t){return t=Id({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Id(e,t){return e=On(22,e,null,t),e.lanes=0,e}function ry(e,t,n){return fl(t,e.child,null,n),e=zv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $j(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ov(e.return,t,n)}function ay(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 oN(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;r=r.children;var l=ut.current,s=(l&2)!==0;if(s?(l=l&1|2,t.flags|=128):l&=1,Ge(ut,l),Bt(e,t,r,n),r=_e?Uc:0,!s&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$j(e,n,t);else if(e.tag===19)$j(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&&Dd(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),ay(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&&Dd(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}ay(t,!0,n,null,i,r);break;case"together":ay(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function va(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),vi|=t.lanes,!(n&t.childLanes))if(e!==null){if(jo(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(q(153));if(t.child!==null){for(e=t.child,n=ca(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ca(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Dx(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Pd(e)))}function jR(e,t,n){switch(t.tag){case 3:Ed(t,t.stateNode.containerInfo),Da(t,bt,e.memoizedState.cache),cl();break;case 27:case 5:fv(t);break;case 4:Ed(t,t.stateNode.containerInfo);break;case 10:Da(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Cv(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(za(t),t.flags|=128,null):n&t.child.childLanes?sN(e,t,n):(za(t),e=va(e,t,n),e!==null?e.sibling:null);za(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(jo(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return oN(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ge(ut,ut.current),r)break;return null;case 22:return t.lanes=0,lN(e,t,n,t.pendingProps);case 24:Da(t,bt,e.memoizedState.cache)}return va(e,t,n)}function cN(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)jt=!0;else{if(!Dx(e,n)&&!(t.flags&128))return jt=!1,jR(e,t,n);jt=!!(e.flags&131072)}else jt=!1,_e&&t.flags&1048576&&d_(t,Uc,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Di(t.elementType),t.type=e,typeof e=="function")px(e)?(r=hl(e,r),t.tag=1,t=kj(null,t,e,r,n)):(t.tag=0,t=Dv(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===ex){t.tag=11,t=_j(null,t,e,r,n);break e}else if(a===tx){t.tag=14,t=Nj(null,t,e,r,n);break e}}throw t=cv(e)||e,Error(q(306,t,""))}}return t;case 0:return Dv(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=hl(r,t.pendingProps),kj(e,t,r,a,n);case 3:e:{if(Ed(t,t.stateNode.containerInfo),e===null)throw Error(q(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,_v(e,t),wc(t,r,null,n);var l=t.memoizedState;if(r=l.cache,Da(t,bt,r),r!==i.cache&&Av(t,[bt],n,!0),Sc(),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=Pj(e,t,r,n);break e}else if(r!==a){a=Kn(Error(q(424)),t),Hc(a),t=Pj(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(Qe=Jn(e.firstChild),Ut=t,_e=!0,ri=null,Xn=!0,n=g_(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(cl(),r===a){t=va(e,t,n);break e}Bt(e,t,r,n)}t=t.child}return t;case 26:return ud(e,t),e===null?(n=eS(t.type,null,t.pendingProps,null))?t.memoizedState=n:_e||(n=t.type,e=t.pendingProps,r=Kd(ni.current).createElement(n),r[It]=t,r[pn]=e,Ft(r,n,e),Pt(r),t.stateNode=r):t.memoizedState=eS(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fv(t),e===null&&_e&&(r=t.stateNode=JN(t.type,t.pendingProps,ni.current),Ut=t,Xn=!0,a=Qe,bi(t.type)?(Qv=a,Qe=Jn(r.firstChild)):Qe=a),Bt(e,t,t.pendingProps.children,n),ud(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&_e&&((a=r=Qe)&&(r=QR(r,t.type,t.pendingProps,Xn),r!==null?(t.stateNode=r,Ut=t,Qe=Jn(r.firstChild),Xn=!1,a=!0):a=!1),a||mi(t)),fv(t),a=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,r=i.children,Yv(a,i)?r=null:l!==null&&Yv(a,l)&&(t.flags|=32),t.memoizedState!==null&&(a=wx(e,t,dR,null,null,n),Kc._currentValue=a),ud(e,t),Bt(e,t,r,n),t.child;case 6:return e===null&&_e&&((e=n=Qe)&&(n=ZR(n,t.pendingProps,Xn),n!==null?(t.stateNode=n,Ut=t,Qe=null,e=!0):e=!1),e||mi(t)),null;case 13:return sN(e,t,n);case 4:return Ed(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fl(t,null,r,n):Bt(e,t,r,n),t.child;case 11:return _j(e,t,t.type,t.pendingProps,n);case 7:return Bt(e,t,t.pendingProps,n),t.child;case 8:return Bt(e,t,t.pendingProps.children,n),t.child;case 12:return Bt(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Da(t,t.type,r.value),Bt(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ul(t),a=qt(a),r=r(a),t.flags|=1,Bt(e,t,r,n),t.child;case 14:return Nj(e,t,t.type,t.pendingProps,n);case 15:return iN(e,t,t.type,t.pendingProps,n);case 19:return oN(e,t,n);case 31:return xR(e,t,n);case 22:return lN(e,t,n,t.pendingProps);case 24:return ul(t),r=qt(bt),e===null?(a=gx(),a===null&&(a=He,i=vx(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},xx(t),Da(t,bt,a)):(e.lanes&n&&(_v(e,t),wc(t,null,null,n),Sc()),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),Da(t,bt,r)):(r=i.cache,Da(t,bt,r),r!==a.cache&&Av(t,[bt],n,!0))),Bt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(q(156,t.tag))}function Vr(e){e.flags|=4}function iy(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(PN())e.flags|=8192;else throw rl=$d,bx}else e.flags&=-16777217}function Rj(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!nT(t))if(PN())e.flags|=8192;else throw rl=$d,bx}function Tf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?$E():536870912,e.lanes|=t,Ls|=t)}function Xo(e,t){if(!_e)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 Ke(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 SR(e,t,n){var r=t.pendingProps;switch(yx(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return Ke(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ua(bt),ks(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Bl(t)?Vr(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Wm())),Ke(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(Vr(t),i!==null?(Ke(t),Rj(t,i)):(Ke(t),iy(t,a,null,r,n))):i?i!==e.memoizedState?(Vr(t),Ke(t),Rj(t,i)):(Ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Vr(t),Ke(t),iy(t,a,e,r,n)),null;case 27:if(_d(t),n=ni.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Vr(t);else{if(!r){if(t.stateNode===null)throw Error(q(166));return Ke(t),null}e=$r.current,Bl(t)?uj(t):(e=JN(a,r,n),t.stateNode=e,Vr(t))}return Ke(t),null;case 5:if(_d(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Vr(t);else{if(!r){if(t.stateNode===null)throw Error(q(166));return Ke(t),null}if(i=$r.current,Bl(t))uj(t);else{var l=Kd(ni.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[It]=t,i[pn]=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(Ft(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&&Vr(t)}}return Ke(t),iy(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Vr(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(q(166));if(e=ni.current,Bl(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ut,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[It]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||XN(e.nodeValue,n)),e||mi(t,!0)}else e=Kd(e).createTextNode(r),e[It]=t,t.stateNode=e}return Ke(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Bl(t),n!==null){if(e===null){if(!r)throw Error(q(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(557));e[It]=t}else cl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ke(t),e=!1}else n=Wm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(wn(t),t):(wn(t),null);if(t.flags&128)throw Error(q(558))}return Ke(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Bl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(q(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(q(317));a[It]=t}else cl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ke(t),a=!1}else a=Wm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(wn(t),t):(wn(t),null)}return wn(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),i=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),i!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Tf(t,t.updateQueue),Ke(t),null);case 4:return ks(),e===null&&qx(t.stateNode.containerInfo),Ke(t),null;case 10:return ua(t.type),Ke(t),null;case 19:if(Rt(ut),r=t.memoizedState,r===null)return Ke(t),null;if(a=(t.flags&128)!==0,i=r.rendering,i===null)if(a)Xo(r,!1);else{if(ot!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Dd(e),i!==null){for(t.flags|=128,Xo(r,!1),e=i.updateQueue,t.updateQueue=e,Tf(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)u_(n,e),n=n.sibling;return Ge(ut,ut.current&1|2),_e&&Jr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&_n()>Hd&&(t.flags|=128,a=!0,Xo(r,!1),t.lanes=4194304)}else{if(!a)if(e=Dd(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Tf(t,e),Xo(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!_e)return Ke(t),null}else 2*_n()-r.renderingStartTime>Hd&&n!==536870912&&(t.flags|=128,a=!0,Xo(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=_n(),e.sibling=null,n=ut.current,Ge(ut,a?n&1|2:n&1),_e&&Jr(t,r.treeForkCount),e):(Ke(t),null);case 22:case 23:return wn(t),jx(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),n=t.updateQueue,n!==null&&Tf(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&Rt(nl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ua(bt),Ke(t),null;case 25:return null;case 30:return null}throw Error(q(156,t.tag))}function wR(e,t){switch(yx(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ua(bt),ks(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _d(t),null;case 31:if(t.memoizedState!==null){if(wn(t),t.alternate===null)throw Error(q(340));cl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(wn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));cl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Rt(ut),null;case 4:return ks(),null;case 10:return ua(t.type),null;case 22:case 23:return wn(t),jx(),e!==null&&Rt(nl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ua(bt),null;case 25:return null;default:return null}}function uN(e,t){switch(yx(t),t.tag){case 3:ua(bt),ks();break;case 26:case 27:case 5:_d(t);break;case 4:ks();break;case 31:t.memoizedState!==null&&wn(t);break;case 13:wn(t);break;case 19:Rt(ut);break;case 10:ua(t.type);break;case 22:case 23:wn(t),jx(),e!==null&&Rt(nl);break;case 24:ua(bt)}}function Xu(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(s){De(t,t.return,s)}}function yi(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,s=l.destroy;if(s!==void 0){l.destroy=void 0,a=t;var c=n,u=s;try{u()}catch(f){De(a,c,f)}}}r=r.next}while(r!==i)}}catch(f){De(t,t.return,f)}}function fN(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{x_(t,n)}catch(r){De(e,e.return,r)}}}function dN(e,t,n){n.props=hl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){De(e,t,r)}}function Ac(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){De(e,t,a)}}function Cr(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(a){De(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){De(e,t,a)}else n.current=null}function hN(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){De(e,e.return,a)}}function ly(e,t,n){try{var r=e.stateNode;GR(r,e.type,n,t),r[pn]=t}catch(a){De(e,e.return,a)}}function pN(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&bi(e.type)||e.tag===4}function sy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pN(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&&bi(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 Lv(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=ra));else if(r!==4&&(r===27&&bi(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Lv(e,t,n),e=e.sibling;e!==null;)Lv(e,t,n),e=e.sibling}function Ud(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&&bi(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ud(e,t,n),e=e.sibling;e!==null;)Ud(e,t,n),e=e.sibling}function mN(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Ft(t,r,n),t[It]=e,t[pn]=n}catch(i){De(e,e.return,i)}}var ta=!1,gt=!1,oy=!1,Dj=typeof WeakSet=="function"?WeakSet:Set,kt=null;function OR(e,t){if(e=e.containerInfo,Gv=Zd,e=n_(e),fx(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,s=-1,c=-1,u=0,f=0,d=e,h=null;t:for(;;){for(var p;d!==n||a!==0&&d.nodeType!==3||(s=l+a),d!==i||r!==0&&d.nodeType!==3||(c=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++u===a&&(s=l),h===i&&++f===r&&(c=l),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vv={focusedElem:e,selectionRange:n},Zd=!1,kt=t;kt!==null;)if(t=kt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,kt=e;else for(;kt!==null;){switch(t=kt,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 y=hl(n.type,a);e=r.getSnapshotBeforeUpdate(y,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(v){De(n,n.return,v)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Kv(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Kv(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(q(163))}if(e=t.sibling,e!==null){e.return=t.return,kt=e;break}kt=t.return}}function yN(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Kr(e,n),r&4&&Xu(5,n);break;case 1:if(Kr(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(l){De(n,n.return,l)}else{var a=hl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){De(n,n.return,l)}}r&64&&fN(n),r&512&&Ac(n,n.return);break;case 3:if(Kr(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{x_(e,t)}catch(l){De(n,n.return,l)}}break;case 27:t===null&&r&4&&mN(n);case 26:case 5:Kr(e,n),t===null&&r&4&&hN(n),r&512&&Ac(n,n.return);break;case 12:Kr(e,n);break;case 31:Kr(e,n),r&4&&bN(e,n);break;case 13:Kr(e,n),r&4&&xN(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=PR.bind(null,n),JR(e,n))));break;case 22:if(r=n.memoizedState!==null||ta,!r){t=t!==null&&t.memoizedState!==null||gt,a=ta;var i=gt;ta=r,(gt=t)&&!i?Wr(e,n,(n.subtreeFlags&8772)!==0):Kr(e,n),ta=a,gt=i}break;case 30:break;default:Kr(e,n)}}function vN(e){var t=e.alternate;t!==null&&(e.alternate=null,vN(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ix(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 et=null,cn=!1;function Yr(e,t,n){for(n=n.child;n!==null;)gN(e,t,n),n=n.sibling}function gN(e,t,n){if(Nn&&typeof Nn.onCommitFiberUnmount=="function")try{Nn.onCommitFiberUnmount(Hu,n)}catch{}switch(n.tag){case 26:gt||Cr(n,t),Yr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:gt||Cr(n,t);var r=et,a=cn;bi(n.type)&&(et=n.stateNode,cn=!1),Yr(e,t,n),Tc(n.stateNode),et=r,cn=a;break;case 5:gt||Cr(n,t);case 6:if(r=et,a=cn,et=null,Yr(e,t,n),et=r,cn=a,et!==null)if(cn)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(n.stateNode)}catch(i){De(n,t,i)}else try{et.removeChild(n.stateNode)}catch(i){De(n,t,i)}break;case 18:et!==null&&(cn?(e=et,Xj(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Hs(e)):Xj(et,n.stateNode));break;case 4:r=et,a=cn,et=n.stateNode.containerInfo,cn=!0,Yr(e,t,n),et=r,cn=a;break;case 0:case 11:case 14:case 15:yi(2,n,t),gt||yi(4,n,t),Yr(e,t,n);break;case 1:gt||(Cr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&dN(n,t,r)),Yr(e,t,n);break;case 21:Yr(e,t,n);break;case 22:gt=(r=gt)||n.memoizedState!==null,Yr(e,t,n),gt=r;break;default:Yr(e,t,n)}}function bN(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hs(e)}catch(n){De(t,t.return,n)}}}function xN(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hs(e)}catch(n){De(t,t.return,n)}}function AR(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Dj),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Dj),t;default:throw Error(q(435,e.tag))}}function Cf(e,t){var n=AR(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=$R.bind(null,e,r);r.then(a,a)}})}function ln(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,s=l;e:for(;s!==null;){switch(s.tag){case 27:if(bi(s.type)){et=s.stateNode,cn=!1;break e}break;case 5:et=s.stateNode,cn=!1;break e;case 3:case 4:et=s.stateNode.containerInfo,cn=!0;break e}s=s.return}if(et===null)throw Error(q(160));gN(i,l,a),et=null,cn=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)jN(t,e),t=t.sibling}var ur=null;function jN(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ln(t,e),sn(e),r&4&&(yi(3,e,e.return),Xu(3,e),yi(5,e,e.return));break;case 1:ln(t,e),sn(e),r&512&&(gt||n===null||Cr(n,n.return)),r&64&&ta&&(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=ur;if(ln(t,e),sn(e),r&512&&(gt||n===null||Cr(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[Gu]||i[It]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(r),a.head.insertBefore(i,a.querySelector("head > title"))),Ft(i,r,n),i[It]=e,Pt(i),r=i;break e;case"link":var l=nS("link","href",a).get(r+(n.href||""));if(l){for(var s=0;s<l.length;s++)if(i=l[s],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(s,1);break t}}i=a.createElement(r),Ft(i,r,n),a.head.appendChild(i);break;case"meta":if(l=nS("meta","content",a).get(r+(n.content||""))){for(s=0;s<l.length;s++)if(i=l[s],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(s,1);break t}}i=a.createElement(r),Ft(i,r,n),a.head.appendChild(i);break;default:throw Error(q(468,r))}i[It]=e,Pt(i),r=i}e.stateNode=r}else rS(a,e.type,e.stateNode);else e.stateNode=tS(a,r,e.memoizedProps);else i!==r?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,r===null?rS(a,e.type,e.stateNode):tS(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&ly(e,e.memoizedProps,n.memoizedProps)}break;case 27:ln(t,e),sn(e),r&512&&(gt||n===null||Cr(n,n.return)),n!==null&&r&4&&ly(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ln(t,e),sn(e),r&512&&(gt||n===null||Cr(n,n.return)),e.flags&32){a=e.stateNode;try{$s(a,"")}catch(y){De(e,e.return,y)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,ly(e,a,n!==null?n.memoizedProps:a)),r&1024&&(oy=!0);break;case 6:if(ln(t,e),sn(e),r&4){if(e.stateNode===null)throw Error(q(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(y){De(e,e.return,y)}}break;case 3:if(hd=null,a=ur,ur=Xd(t.containerInfo),ln(t,e),ur=a,sn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Hs(t.containerInfo)}catch(y){De(e,e.return,y)}oy&&(oy=!1,SN(e));break;case 4:r=ur,ur=Xd(e.stateNode.containerInfo),ln(t,e),sn(e),ur=r;break;case 12:ln(t,e),sn(e);break;case 31:ln(t,e),sn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Cf(e,r)));break;case 13:ln(t,e),sn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(wp=_n()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Cf(e,r)));break;case 22:a=e.memoizedState!==null;var c=n!==null&&n.memoizedState!==null,u=ta,f=gt;if(ta=u||a,gt=f||c,ln(t,e),gt=f,ta=u,sn(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||c||ta||gt||zi(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{s=c.stateNode;var d=c.memoizedProps.style,h=d!=null&&d.hasOwnProperty("display")?d.display:null;s.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(y){De(c,c.return,y)}}}else if(t.tag===6){if(n===null){c=t;try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(y){De(c,c.return,y)}}}else if(t.tag===18){if(n===null){c=t;try{var p=c.stateNode;a?Wj(p,!0):Wj(c.stateNode,!1)}catch(y){De(c,c.return,y)}}}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,Cf(e,n))));break;case 19:ln(t,e),sn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Cf(e,r)));break;case 30:break;case 21:break;default:ln(t,e),sn(e)}}function sn(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(pN(r)){n=r;break}r=r.return}if(n==null)throw Error(q(160));switch(n.tag){case 27:var a=n.stateNode,i=sy(e);Ud(e,i,a);break;case 5:var l=n.stateNode;n.flags&32&&($s(l,""),n.flags&=-33);var s=sy(e);Ud(e,s,l);break;case 3:case 4:var c=n.stateNode.containerInfo,u=sy(e);Lv(e,u,c);break;default:throw Error(q(161))}}catch(f){De(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function SN(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;SN(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Kr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)yN(e,t.alternate,t),t=t.sibling}function zi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:yi(4,t,t.return),zi(t);break;case 1:Cr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&dN(t,t.return,n),zi(t);break;case 27:Tc(t.stateNode);case 26:case 5:Cr(t,t.return),zi(t);break;case 22:t.memoizedState===null&&zi(t);break;case 30:zi(t);break;default:zi(t)}e=e.sibling}}function Wr(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:Wr(a,i,n),Xu(4,i);break;case 1:if(Wr(a,i,n),r=i,a=r.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){De(r,r.return,u)}if(r=i,a=r.updateQueue,a!==null){var s=r.stateNode;try{var c=a.shared.hiddenCallbacks;if(c!==null)for(a.shared.hiddenCallbacks=null,a=0;a<c.length;a++)b_(c[a],s)}catch(u){De(r,r.return,u)}}n&&l&64&&fN(i),Ac(i,i.return);break;case 27:mN(i);case 26:case 5:Wr(a,i,n),n&&r===null&&l&4&&hN(i),Ac(i,i.return);break;case 12:Wr(a,i,n);break;case 31:Wr(a,i,n),n&&l&4&&bN(a,i);break;case 13:Wr(a,i,n),n&&l&4&&xN(a,i);break;case 22:i.memoizedState===null&&Wr(a,i,n),Ac(i,i.return);break;case 30:break;default:Wr(a,i,n)}t=t.sibling}}function zx(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&&Yu(n))}function Lx(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yu(e))}function lr(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wN(e,t,n,r),t=t.sibling}function wN(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:lr(e,t,n,r),a&2048&&Xu(9,t);break;case 1:lr(e,t,n,r);break;case 3:lr(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&&Yu(e)));break;case 12:if(a&2048){lr(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,l=i.id,s=i.onPostCommit;typeof s=="function"&&s(l,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(c){De(t,t.return,c)}}else lr(e,t,n,r);break;case 31:lr(e,t,n,r);break;case 13:lr(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,l=t.alternate,t.memoizedState!==null?i._visibility&2?lr(e,t,n,r):Ec(e,t):i._visibility&2?lr(e,t,n,r):(i._visibility|=2,Kl(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&zx(l,t);break;case 24:lr(e,t,n,r),a&2048&&Lx(t.alternate,t);break;default:lr(e,t,n,r)}}function Kl(e,t,n,r,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,l=t,s=n,c=r,u=l.flags;switch(l.tag){case 0:case 11:case 15:Kl(i,l,s,c,a),Xu(8,l);break;case 23:break;case 22:var f=l.stateNode;l.memoizedState!==null?f._visibility&2?Kl(i,l,s,c,a):Ec(i,l):(f._visibility|=2,Kl(i,l,s,c,a)),a&&u&2048&&zx(l.alternate,l);break;case 24:Kl(i,l,s,c,a),a&&u&2048&&Lx(l.alternate,l);break;default:Kl(i,l,s,c,a)}t=t.sibling}}function Ec(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:Ec(n,r),a&2048&&zx(r.alternate,r);break;case 24:Ec(n,r),a&2048&&Lx(r.alternate,r);break;default:Ec(n,r)}t=t.sibling}}var pc=8192;function Il(e,t,n){if(e.subtreeFlags&pc)for(e=e.child;e!==null;)ON(e,t,n),e=e.sibling}function ON(e,t,n){switch(e.tag){case 26:Il(e,t,n),e.flags&pc&&e.memoizedState!==null&&fD(n,ur,e.memoizedState,e.memoizedProps);break;case 5:Il(e,t,n);break;case 3:case 4:var r=ur;ur=Xd(e.stateNode.containerInfo),Il(e,t,n),ur=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=pc,pc=16777216,Il(e,t,n),pc=r):Il(e,t,n));break;default:Il(e,t,n)}}function AN(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 Wo(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];kt=r,_N(r,e)}AN(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)EN(e),e=e.sibling}function EN(e){switch(e.tag){case 0:case 11:case 15:Wo(e),e.flags&2048&&yi(9,e,e.return);break;case 3:Wo(e);break;case 12:Wo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,fd(e)):Wo(e);break;default:Wo(e)}}function fd(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];kt=r,_N(r,e)}AN(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:yi(8,t,t.return),fd(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,fd(t));break;default:fd(t)}e=e.sibling}}function _N(e,t){for(;kt!==null;){var n=kt;switch(n.tag){case 0:case 11:case 15:yi(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:Yu(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,kt=r;else e:for(n=e;kt!==null;){r=kt;var a=r.sibling,i=r.return;if(vN(r),r===n){kt=null;break e}if(a!==null){a.return=i,kt=a;break e}kt=i}}}var ER={getCacheForType:function(e){var t=qt(bt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return qt(bt).controller.signal}},_R=typeof WeakMap=="function"?WeakMap:Map,Ce=0,He=null,Se=null,Ee=0,Re=0,bn=null,Xa=!1,wo=!1,Bx=!1,ga=0,ot=0,vi=0,al=0,Ix=0,En=0,Ls=0,_c=null,un=null,Bv=!1,wp=0,NN=0,Hd=1/0,qd=null,li=null,Et=0,si=null,Bs=null,fa=0,Iv=0,Uv=null,TN=null,Nc=0,Hv=null;function Cn(){return Ce&2&&Ee!==0?Ee&-Ee:he.T!==null?Hx():LE()}function CN(){if(En===0)if(!(Ee&536870912)||_e){var e=Sf;Sf<<=1,!(Sf&3932160)&&(Sf=262144),En=e}else En=536870912;return e=Rn.current,e!==null&&(e.flags|=32),En}function dn(e,t,n){(e===He&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(Is(e,0),Wa(e,Ee,En,!1)),Fu(e,n),(!(Ce&2)||e!==He)&&(e===He&&(!(Ce&2)&&(al|=n),ot===4&&Wa(e,Ee,En,!1)),Ir(e))}function MN(e,t,n){if(Ce&6)throw Error(q(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||qu(e,t),a=r?CR(e,t):cy(e,t,!0),i=r;do{if(a===0){wo&&!r&&Wa(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!NR(n)){a=cy(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 s=e;a=_c;var c=s.current.memoizedState.isDehydrated;if(c&&(Is(s,l).flags|=256),l=cy(s,l,!1),l!==2){if(Bx&&!c){s.errorRecoveryDisabledLanes|=i,al|=i,a=4;break e}i=un,un=a,i!==null&&(un===null?un=i:un.push.apply(un,i))}a=l}if(i=!1,a!==2)continue}}if(a===1){Is(e,0),Wa(e,t,0,!0);break}e:{switch(r=e,i=a,i){case 0:case 1:throw Error(q(345));case 4:if((t&4194048)!==t)break;case 6:Wa(r,t,En,!Xa);break e;case 2:un=null;break;case 3:case 5:break;default:throw Error(q(329))}if((t&62914560)===t&&(a=wp+300-_n(),10<a)){if(Wa(r,t,En,!Xa),dp(r,0,!0)!==0)break e;fa=t,r.timeoutHandle=QN(zj.bind(null,r,n,un,qd,Bv,t,En,al,Ls,Xa,i,"Throttled",-0,0),a);break e}zj(r,n,un,qd,Bv,t,En,al,Ls,Xa,i,null,-0,0)}}break}while(!0);Ir(e)}function zj(e,t,n,r,a,i,l,s,c,u,f,d,h,p){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:ra},ON(t,i,d);var y=(i&62914560)===i?wp-_n():(i&4194048)===i?NN-_n():0;if(y=dD(d,y),y!==null){fa=i,e.cancelPendingCommit=y(Bj.bind(null,e,t,i,n,r,a,l,s,c,f,d,null,h,p)),Wa(e,i,l,!u);return}}Bj(e,t,i,n,r,a,l,s,c)}function NR(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(!$n(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 Wa(e,t,n,r){t&=~Ix,t&=~al,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var i=31-Tn(a),l=1<<i;r[i]=-1,a&=~l}n!==0&&RE(e,n,t)}function Op(){return Ce&6?!0:(Wu(0),!1)}function Ux(){if(Se!==null){if(Re===0)var e=Se.return;else e=Se,aa=Nl=null,Ex(e),vs=null,qc=0,e=Se;for(;e!==null;)uN(e.alternate,e),e=e.return;Se=null}}function Is(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,KR(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),fa=0,Ux(),He=e,Se=n=ca(e.current,null),Ee=t,Re=0,bn=null,Xa=!1,wo=qu(e,t),Bx=!1,Ls=En=Ix=al=vi=ot=0,un=_c=null,Bv=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-Tn(r),i=1<<a;t|=e[a],r&=~i}return ga=t,yp(),n}function kN(e,t){ge=null,he.H=Gc,t===So||t===gp?(t=mj(),Re=3):t===bx?(t=mj(),Re=4):Re=t===Rx?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bn=t,Se===null&&(ot=1,Bd(e,Kn(t,e.current)))}function PN(){var e=Rn.current;return e===null?!0:(Ee&4194048)===Ee?Zn===null:(Ee&62914560)===Ee||Ee&536870912?e===Zn:!1}function $N(){var e=he.H;return he.H=Gc,e===null?Gc:e}function RN(){var e=he.A;return he.A=ER,e}function Fd(){ot=4,Xa||(Ee&4194048)!==Ee&&Rn.current!==null||(wo=!0),!(vi&134217727)&&!(al&134217727)||He===null||Wa(He,Ee,En,!1)}function cy(e,t,n){var r=Ce;Ce|=2;var a=$N(),i=RN();(He!==e||Ee!==t)&&(qd=null,Is(e,t)),t=!1;var l=ot;e:do try{if(Re!==0&&Se!==null){var s=Se,c=bn;switch(Re){case 8:Ux(),l=6;break e;case 3:case 2:case 9:case 6:Rn.current===null&&(t=!0);var u=Re;if(Re=0,bn=null,ss(e,s,c,u),n&&wo){l=0;break e}break;default:u=Re,Re=0,bn=null,ss(e,s,c,u)}}TR(),l=ot;break}catch(f){kN(e,f)}while(!0);return t&&e.shellSuspendCounter++,aa=Nl=null,Ce=r,he.H=a,he.A=i,Se===null&&(He=null,Ee=0,yp()),l}function TR(){for(;Se!==null;)DN(Se)}function CR(e,t){var n=Ce;Ce|=2;var r=$N(),a=RN();He!==e||Ee!==t?(qd=null,Hd=_n()+500,Is(e,t)):wo=qu(e,t);e:do try{if(Re!==0&&Se!==null){t=Se;var i=bn;t:switch(Re){case 1:Re=0,bn=null,ss(e,t,i,1);break;case 2:case 9:if(pj(i)){Re=0,bn=null,Lj(t);break}t=function(){Re!==2&&Re!==9||He!==e||(Re=7),Ir(e)},i.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:pj(i)?(Re=0,bn=null,Lj(t)):(Re=0,bn=null,ss(e,t,i,7));break;case 5:var l=null;switch(Se.tag){case 26:l=Se.memoizedState;case 5:case 27:var s=Se;if(l?nT(l):s.stateNode.complete){Re=0,bn=null;var c=s.sibling;if(c!==null)Se=c;else{var u=s.return;u!==null?(Se=u,Ap(u)):Se=null}break t}}Re=0,bn=null,ss(e,t,i,5);break;case 6:Re=0,bn=null,ss(e,t,i,6);break;case 8:Ux(),ot=6;break e;default:throw Error(q(462))}}MR();break}catch(f){kN(e,f)}while(!0);return aa=Nl=null,he.H=r,he.A=a,Ce=n,Se!==null?0:(He=null,Ee=0,yp(),ot)}function MR(){for(;Se!==null&&!e3();)DN(Se)}function DN(e){var t=cN(e.alternate,e,ga);e.memoizedProps=e.pendingProps,t===null?Ap(e):Se=t}function Lj(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Mj(n,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=Mj(n,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:Ex(t);default:uN(n,t),t=Se=u_(t,ga),t=cN(n,t,ga)}e.memoizedProps=e.pendingProps,t===null?Ap(e):Se=t}function ss(e,t,n,r){aa=Nl=null,Ex(t),vs=null,qc=0;var a=t.return;try{if(bR(e,a,t,n,Ee)){ot=1,Bd(e,Kn(n,e.current)),Se=null;return}}catch(i){if(a!==null)throw Se=a,i;ot=1,Bd(e,Kn(n,e.current)),Se=null;return}t.flags&32768?(_e||r===1?e=!0:wo||Ee&536870912?e=!1:(Xa=e=!0,(r===2||r===9||r===3||r===6)&&(r=Rn.current,r!==null&&r.tag===13&&(r.flags|=16384))),zN(t,e)):Ap(t)}function Ap(e){var t=e;do{if(t.flags&32768){zN(t,Xa);return}e=t.return;var n=SR(t.alternate,t,ga);if(n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);ot===0&&(ot=5)}function zN(e,t){do{var n=wR(e.alternate,e);if(n!==null){n.flags&=32767,Se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=n}while(e!==null);ot=6,Se=null}function Bj(e,t,n,r,a,i,l,s,c){e.cancelPendingCommit=null;do Ep();while(Et!==0);if(Ce&6)throw Error(q(327));if(t!==null){if(t===e.current)throw Error(q(177));if(i=t.lanes|t.childLanes,i|=dx,u3(e,n,i,l,s,c),e===He&&(Se=He=null,Ee=0),Bs=t,si=e,fa=n,Iv=i,Uv=a,TN=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,RR(Nd,function(){return HN(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=he.T,he.T=null,a=Me.p,Me.p=2,l=Ce,Ce|=4;try{OR(e,t,n)}finally{Ce=l,Me.p=a,he.T=r}}Et=1,LN(),BN(),IN()}}function LN(){if(Et===1){Et=0;var e=si,t=Bs,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=he.T,he.T=null;var r=Me.p;Me.p=2;var a=Ce;Ce|=4;try{jN(t,e);var i=Vv,l=n_(e.containerInfo),s=i.focusedElem,c=i.selectionRange;if(l!==s&&s&&s.ownerDocument&&t_(s.ownerDocument.documentElement,s)){if(c!==null&&fx(s)){var u=c.start,f=c.end;if(f===void 0&&(f=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(f,s.value.length);else{var d=s.ownerDocument||document,h=d&&d.defaultView||window;if(h.getSelection){var p=h.getSelection(),y=s.textContent.length,v=Math.min(c.start,y),b=c.end===void 0?v:Math.min(c.end,y);!p.extend&&v>b&&(l=b,b=v,v=l);var g=sj(s,v),j=sj(s,b);if(g&&j&&(p.rangeCount!==1||p.anchorNode!==g.node||p.anchorOffset!==g.offset||p.focusNode!==j.node||p.focusOffset!==j.offset)){var x=d.createRange();x.setStart(g.node,g.offset),p.removeAllRanges(),v>b?(p.addRange(x),p.extend(j.node,j.offset)):(x.setEnd(j.node,j.offset),p.addRange(x))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<d.length;s++){var m=d[s];m.element.scrollLeft=m.left,m.element.scrollTop=m.top}}Zd=!!Gv,Vv=Gv=null}finally{Ce=a,Me.p=r,he.T=n}}e.current=t,Et=2}}function BN(){if(Et===2){Et=0;var e=si,t=Bs,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=he.T,he.T=null;var r=Me.p;Me.p=2;var a=Ce;Ce|=4;try{yN(e,t.alternate,t)}finally{Ce=a,Me.p=r,he.T=n}}Et=3}}function IN(){if(Et===4||Et===3){Et=0,t3();var e=si,t=Bs,n=fa,r=TN;t.subtreeFlags&10256||t.flags&10256?Et=5:(Et=0,Bs=si=null,UN(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(li=null),ax(n),t=t.stateNode,Nn&&typeof Nn.onCommitFiberRoot=="function")try{Nn.onCommitFiberRoot(Hu,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=he.T,a=Me.p,Me.p=2,he.T=null;try{for(var i=e.onRecoverableError,l=0;l<r.length;l++){var s=r[l];i(s.value,{componentStack:s.stack})}}finally{he.T=t,Me.p=a}}fa&3&&Ep(),Ir(e),a=e.pendingLanes,n&261930&&a&42?e===Hv?Nc++:(Nc=0,Hv=e):Nc=0,Wu(0)}}function UN(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yu(t)))}function Ep(){return LN(),BN(),IN(),HN()}function HN(){if(Et!==5)return!1;var e=si,t=Iv;Iv=0;var n=ax(fa),r=he.T,a=Me.p;try{Me.p=32>n?32:n,he.T=null,n=Uv,Uv=null;var i=si,l=fa;if(Et=0,Bs=si=null,fa=0,Ce&6)throw Error(q(331));var s=Ce;if(Ce|=4,EN(i.current),wN(i,i.current,l,n),Ce=s,Wu(0,!1),Nn&&typeof Nn.onPostCommitFiberRoot=="function")try{Nn.onPostCommitFiberRoot(Hu,i)}catch{}return!0}finally{Me.p=a,he.T=r,UN(e,t)}}function Ij(e,t,n){t=Kn(n,t),t=Rv(e.stateNode,t,2),e=ii(e,t,2),e!==null&&(Fu(e,2),Ir(e))}function De(e,t,n){if(e.tag===3)Ij(e,e,n);else for(;t!==null;){if(t.tag===3){Ij(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(li===null||!li.has(r))){e=Kn(n,e),n=rN(2),r=ii(t,n,2),r!==null&&(aN(n,r,t,e),Fu(r,2),Ir(r));break}}t=t.return}}function uy(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new _R;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)||(Bx=!0,a.add(n),e=kR.bind(null,e,t,n),t.then(e,e))}function kR(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,He===e&&(Ee&n)===n&&(ot===4||ot===3&&(Ee&62914560)===Ee&&300>_n()-wp?!(Ce&2)&&Is(e,0):Ix|=n,Ls===Ee&&(Ls=0)),Ir(e)}function qN(e,t){t===0&&(t=$E()),e=_l(e,t),e!==null&&(Fu(e,t),Ir(e))}function PR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qN(e,n)}function $R(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(q(314))}r!==null&&r.delete(t),qN(e,n)}function RR(e,t){return nx(e,t)}var Gd=null,Xl=null,qv=!1,Vd=!1,fy=!1,Qa=0;function Ir(e){e!==Xl&&e.next===null&&(Xl===null?Gd=Xl=e:Xl=Xl.next=e),Vd=!0,qv||(qv=!0,zR())}function Wu(e,t){if(!fy&&Vd){fy=!0;do for(var n=!1,r=Gd;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var i=0;else{var l=r.suspendedLanes,s=r.pingedLanes;i=(1<<31-Tn(42|e)+1)-1,i&=a&~(l&~s),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,Uj(r,i))}else i=Ee,i=dp(r,r===He?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(i&3)||qu(r,i)||(n=!0,Uj(r,i));r=r.next}while(n);fy=!1}}function DR(){FN()}function FN(){Vd=qv=!1;var e=0;Qa!==0&&YR()&&(e=Qa);for(var t=_n(),n=null,r=Gd;r!==null;){var a=r.next,i=GN(r,t);i===0?(r.next=null,n===null?Gd=a:n.next=a,a===null&&(Xl=n)):(n=r,(e!==0||i&3)&&(Vd=!0)),r=a}Et!==0&&Et!==5||Wu(e),Qa!==0&&(Qa=0)}function GN(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var l=31-Tn(i),s=1<<l,c=a[l];c===-1?(!(s&n)||s&r)&&(a[l]=c3(s,t)):c<=t&&(e.expiredLanes|=s),i&=~s}if(t=He,n=Ee,n=dp(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Bm(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||qu(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Bm(r),ax(n)){case 2:case 8:n=kE;break;case 32:n=Nd;break;case 268435456:n=PE;break;default:n=Nd}return r=VN.bind(null,e),n=nx(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Bm(r),e.callbackPriority=2,e.callbackNode=null,2}function VN(e,t){if(Et!==0&&Et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ep()&&e.callbackNode!==n)return null;var r=Ee;return r=dp(e,e===He?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(MN(e,r,t),GN(e,_n()),e.callbackNode!=null&&e.callbackNode===n?VN.bind(null,e):null)}function Uj(e,t){if(Ep())return null;MN(e,t,!0)}function zR(){XR(function(){Ce&6?nx(ME,DR):FN()})}function Hx(){if(Qa===0){var e=Rs;e===0&&(e=jf,jf<<=1,!(jf&261888)&&(jf=256)),Qa=e}return Qa}function Hj(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:nd(""+e)}function qj(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 LR(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var i=Hj((a[pn]||null).action),l=r.submitter;l&&(t=(t=l[pn]||null)?Hj(t.formAction):l.getAttribute("formAction"),t!==null&&(i=t,l=null));var s=new hp("action","action",null,r,a);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Qa!==0){var c=l?qj(a,l):new FormData(a);Pv(n,{pending:!0,data:c,method:a.method,action:i},null,c)}}else typeof i=="function"&&(s.preventDefault(),c=l?qj(a,l):new FormData(a),Pv(n,{pending:!0,data:c,method:a.method,action:i},i,c))},currentTarget:a}]})}}for(var dy=0;dy<jv.length;dy++){var hy=jv[dy],BR=hy.toLowerCase(),IR=hy[0].toUpperCase()+hy.slice(1);gr(BR,"on"+IR)}gr(a_,"onAnimationEnd");gr(i_,"onAnimationIteration");gr(l_,"onAnimationStart");gr("dblclick","onDoubleClick");gr("focusin","onFocus");gr("focusout","onBlur");gr(nR,"onTransitionRun");gr(rR,"onTransitionStart");gr(aR,"onTransitionCancel");gr(s_,"onTransitionEnd");Ps("onMouseEnter",["mouseout","mouseover"]);Ps("onMouseLeave",["mouseout","mouseover"]);Ps("onPointerEnter",["pointerout","pointerover"]);Ps("onPointerLeave",["pointerout","pointerover"]);Ol("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ol("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ol("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ol("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ol("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ol("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vc="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(" "),UR=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vc));function YN(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 s=r[l],c=s.instance,u=s.currentTarget;if(s=s.listener,c!==i&&a.isPropagationStopped())break e;i=s,a.currentTarget=u;try{i(a)}catch(f){Cd(f)}a.currentTarget=null,i=c}else for(l=0;l<r.length;l++){if(s=r[l],c=s.instance,u=s.currentTarget,s=s.listener,c!==i&&a.isPropagationStopped())break e;i=s,a.currentTarget=u;try{i(a)}catch(f){Cd(f)}a.currentTarget=null,i=c}}}}function je(e,t){var n=t[hv];n===void 0&&(n=t[hv]=new Set);var r=e+"__bubble";n.has(r)||(KN(t,e,2,!1),n.add(r))}function py(e,t,n){var r=0;t&&(r|=4),KN(n,e,r,t)}var Mf="_reactListening"+Math.random().toString(36).slice(2);function qx(e){if(!e[Mf]){e[Mf]=!0,BE.forEach(function(n){n!=="selectionchange"&&(UR.has(n)||py(n,!1,e),py(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Mf]||(t[Mf]=!0,py("selectionchange",!1,t))}}function KN(e,t,n,r){switch(sT(t)){case 2:var a=mD;break;case 8:a=yD;break;default:a=Yx}n=a.bind(null,t,n,e),a=void 0,!gv||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 my(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 s=r.stateNode.containerInfo;if(s===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(;s!==null;){if(l=Zl(s),l===null)return;if(c=l.tag,c===5||c===6||c===26||c===27){r=i=l;continue e}s=s.parentNode}}r=r.return}YE(function(){var u=i,f=sx(n),d=[];e:{var h=o_.get(e);if(h!==void 0){var p=hp,y=e;switch(e){case"keypress":if(ad(n)===0)break e;case"keydown":case"keyup":p=$3;break;case"focusin":y="focus",p=Fm;break;case"focusout":y="blur",p=Fm;break;case"beforeblur":case"afterblur":p=Fm;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Q1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=S3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=z3;break;case a_:case i_:case l_:p=A3;break;case s_:p=B3;break;case"scroll":case"scrollend":p=x3;break;case"wheel":p=U3;break;case"copy":case"cut":case"paste":p=_3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=J1;break;case"toggle":case"beforetoggle":p=q3}var v=(t&4)!==0,b=!v&&(e==="scroll"||e==="scrollend"),g=v?h!==null?h+"Capture":null:h;v=[];for(var j=u,x;j!==null;){var m=j;if(x=m.stateNode,m=m.tag,m!==5&&m!==26&&m!==27||x===null||g===null||(m=Lc(j,g),m!=null&&v.push(Yc(j,m,x))),b)break;j=j.return}0<v.length&&(h=new p(h,y,null,n,f),d.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==vv&&(y=n.relatedTarget||n.fromElement)&&(Zl(y)||y[bo]))break e;if((p||h)&&(h=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,p?(y=n.relatedTarget||n.toElement,p=u,y=y?Zl(y):null,y!==null&&(b=Uu(y),v=y.tag,y!==b||v!==5&&v!==27&&v!==6)&&(y=null)):(p=null,y=u),p!==y)){if(v=Q1,m="onMouseLeave",g="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(v=J1,m="onPointerLeave",g="onPointerEnter",j="pointer"),b=p==null?h:dc(p),x=y==null?h:dc(y),h=new v(m,j+"leave",p,n,f),h.target=b,h.relatedTarget=x,m=null,Zl(f)===u&&(v=new v(g,j+"enter",y,n,f),v.target=x,v.relatedTarget=b,m=v),b=m,p&&y)t:{for(v=HR,g=p,j=y,x=0,m=g;m;m=v(m))x++;m=0;for(var S=j;S;S=v(S))m++;for(;0<x-m;)g=v(g),x--;for(;0<m-x;)j=v(j),m--;for(;x--;){if(g===j||j!==null&&g===j.alternate){v=g;break t}g=v(g),j=v(j)}v=null}else v=null;p!==null&&Fj(d,h,p,v,!1),y!==null&&b!==null&&Fj(d,b,y,v,!0)}}e:{if(h=u?dc(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var w=rj;else if(nj(h))if(JE)w=J3;else{w=Q3;var A=W3}else p=h.nodeName,!p||p.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?u&&lx(u.elementType)&&(w=rj):w=Z3;if(w&&(w=w(e,u))){ZE(d,w,n,f);break e}A&&A(e,h,u),e==="focusout"&&u&&h.type==="number"&&u.memoizedProps.value!=null&&yv(h,"number",h.value)}switch(A=u?dc(u):window,e){case"focusin":(nj(A)||A.contentEditable==="true")&&(ts=A,bv=u,bc=null);break;case"focusout":bc=bv=ts=null;break;case"mousedown":xv=!0;break;case"contextmenu":case"mouseup":case"dragend":xv=!1,oj(d,n,f);break;case"selectionchange":if(tR)break;case"keydown":case"keyup":oj(d,n,f)}var _;if(ux)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else es?WE(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(XE&&n.locale!=="ko"&&(es||E!=="onCompositionStart"?E==="onCompositionEnd"&&es&&(_=KE()):(Ka=f,ox="value"in Ka?Ka.value:Ka.textContent,es=!0)),A=Yd(u,E),0<A.length&&(E=new Z1(E,e,null,n,f),d.push({event:E,listeners:A}),_?E.data=_:(_=QE(n),_!==null&&(E.data=_)))),(_=G3?V3(e,n):Y3(e,n))&&(E=Yd(u,"onBeforeInput"),0<E.length&&(A=new Z1("onBeforeInput","beforeinput",null,n,f),d.push({event:A,listeners:E}),A.data=_)),LR(d,e,u,n,f)}YN(d,t)})}function Yc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yd(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=Lc(e,n),a!=null&&r.unshift(Yc(e,a,i)),a=Lc(e,t),a!=null&&r.push(Yc(e,a,i))),e.tag===3)return r;e=e.return}return[]}function HR(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Fj(e,t,n,r,a){for(var i=t._reactName,l=[];n!==null&&n!==r;){var s=n,c=s.alternate,u=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||u===null||(c=u,a?(u=Lc(n,i),u!=null&&l.unshift(Yc(n,u,c))):a||(u=Lc(n,i),u!=null&&l.push(Yc(n,u,c)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var qR=/\r\n?/g,FR=/\u0000|\uFFFD/g;function Gj(e){return(typeof e=="string"?e:""+e).replace(qR,`
`).replace(FR,"")}function XN(e,t){return t=Gj(t),Gj(e)===t}function Le(e,t,n,r,a,i){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||$s(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&$s(e,""+r);break;case"className":Of(e,"class",r);break;case"tabIndex":Of(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Of(e,n,r);break;case"style":VE(e,r,i);break;case"data":if(t!=="object"){Of(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=nd(""+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=nd(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=ra);break;case"onScroll":r!=null&&je("scroll",e);break;case"onScrollEnd":r!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(q(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(q(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=nd(""+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":je("beforetoggle",e),je("toggle",e),td(e,"popover",r);break;case"xlinkActuate":Gr(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Gr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Gr(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Gr(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Gr(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Gr(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Gr(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Gr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Gr(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":td(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=g3.get(n)||n,td(e,n,r))}}function Fv(e,t,n,r,a,i){switch(n){case"style":VE(e,r,i);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(q(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(q(60));e.innerHTML=n}}break;case"children":typeof r=="string"?$s(e,r):(typeof r=="number"||typeof r=="bigint")&&$s(e,""+r);break;case"onScroll":r!=null&&je("scroll",e);break;case"onScrollEnd":r!=null&&je("scrollend",e);break;case"onClick":r!=null&&(e.onclick=ra);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!IE.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[pn]||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,""):td(e,n,r)}}}function Ft(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("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(q(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":je("invalid",e);var s=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":s=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(q(137,t));break;default:Le(e,t,r,f,n,null)}}qE(e,i,s,c,u,l,a,!1);return;case"select":je("invalid",e),r=l=i=null;for(a in n)if(n.hasOwnProperty(a)&&(s=n[a],s!=null))switch(a){case"value":i=s;break;case"defaultValue":l=s;break;case"multiple":r=s;default:Le(e,t,a,s,n,null)}t=i,n=l,e.multiple=!!r,t!=null?ps(e,!!r,t,!1):n!=null&&ps(e,!!r,n,!0);return;case"textarea":je("invalid",e),i=a=r=null;for(l in n)if(n.hasOwnProperty(l)&&(s=n[l],s!=null))switch(l){case"value":r=s;break;case"defaultValue":a=s;break;case"children":i=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(q(91));break;default:Le(e,t,l,s,n,null)}GE(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":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(r=0;r<Vc.length;r++)je(Vc[r],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("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(q(137,t));default:Le(e,t,u,r,n,null)}return;default:if(lx(t)){for(f in n)n.hasOwnProperty(f)&&(r=n[f],r!==void 0&&Fv(e,t,f,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null&&Le(e,t,s,r,n,null))}function GR(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,s=null,c=null,u=null,f=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&d!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":c=d;default:r.hasOwnProperty(p)||Le(e,t,p,null,r,d)}}for(var h in r){var p=r[h];if(d=n[h],r.hasOwnProperty(h)&&(p!=null||d!=null))switch(h){case"type":i=p;break;case"name":a=p;break;case"checked":u=p;break;case"defaultChecked":f=p;break;case"value":l=p;break;case"defaultValue":s=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(q(137,t));break;default:p!==d&&Le(e,t,h,p,r,d)}}mv(e,l,s,c,u,f,i,a);return;case"select":p=l=s=h=null;for(i in n)if(c=n[i],n.hasOwnProperty(i)&&c!=null)switch(i){case"value":break;case"multiple":p=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":s=i;break;case"multiple":l=i;default:i!==c&&Le(e,t,a,i,r,c)}t=s,n=l,r=p,h!=null?ps(e,!!n,h,!1):!!r!=!!n&&(t!=null?ps(e,!!n,t,!0):ps(e,!!n,n?[]:"",!1));return;case"textarea":p=h=null;for(s in n)if(a=n[s],n.hasOwnProperty(s)&&a!=null&&!r.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:Le(e,t,s,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":p=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(q(91));break;default:a!==i&&Le(e,t,l,a,r,i)}FE(e,h,p);return;case"option":for(var y in n)if(h=n[y],n.hasOwnProperty(y)&&h!=null&&!r.hasOwnProperty(y))switch(y){case"selected":e.selected=!1;break;default:Le(e,t,y,null,r,h)}for(c in r)if(h=r[c],p=n[c],r.hasOwnProperty(c)&&h!==p&&(h!=null||p!=null))switch(c){case"selected":e.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:Le(e,t,c,h,r,p)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in n)h=n[v],n.hasOwnProperty(v)&&h!=null&&!r.hasOwnProperty(v)&&Le(e,t,v,null,r,h);for(u in r)if(h=r[u],p=n[u],r.hasOwnProperty(u)&&h!==p&&(h!=null||p!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(q(137,t));break;default:Le(e,t,u,h,r,p)}return;default:if(lx(t)){for(var b in n)h=n[b],n.hasOwnProperty(b)&&h!==void 0&&!r.hasOwnProperty(b)&&Fv(e,t,b,void 0,r,h);for(f in r)h=r[f],p=n[f],!r.hasOwnProperty(f)||h===p||h===void 0&&p===void 0||Fv(e,t,f,h,r,p);return}}for(var g in n)h=n[g],n.hasOwnProperty(g)&&h!=null&&!r.hasOwnProperty(g)&&Le(e,t,g,null,r,h);for(d in r)h=r[d],p=n[d],!r.hasOwnProperty(d)||h===p||h==null&&p==null||Le(e,t,d,h,r,p)}function Vj(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function VR(){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,s=a.duration;if(i&&s&&Vj(l)){for(l=0,s=a.responseEnd,r+=1;r<n.length;r++){var c=n[r],u=c.startTime;if(u>s)break;var f=c.transferSize,d=c.initiatorType;f&&Vj(d)&&(c=c.responseEnd,l+=f*(c<s?1:(s-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 Gv=null,Vv=null;function Kd(e){return e.nodeType===9?e:e.ownerDocument}function Yj(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 WN(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 Yv(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 yy=null;function YR(){var e=window.event;return e&&e.type==="popstate"?e===yy?!1:(yy=e,!0):(yy=null,!1)}var QN=typeof setTimeout=="function"?setTimeout:void 0,KR=typeof clearTimeout=="function"?clearTimeout:void 0,Kj=typeof Promise=="function"?Promise:void 0,XR=typeof queueMicrotask=="function"?queueMicrotask:typeof Kj<"u"?function(e){return Kj.resolve(null).then(e).catch(WR)}:QN;function WR(e){setTimeout(function(){throw e})}function bi(e){return e==="head"}function Xj(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),Hs(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")Tc(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Tc(n);for(var i=n.firstChild;i;){var l=i.nextSibling,s=i.nodeName;i[Gu]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=l}}else n==="body"&&Tc(e.ownerDocument.body);n=a}while(n);Hs(t)}function Wj(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 Kv(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":Kv(n),ix(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function QR(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[Gu])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=Jn(e.nextSibling),e===null)break}return null}function ZR(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Jn(e.nextSibling),e===null))return null;return e}function ZN(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Jn(e.nextSibling),e===null))return null;return e}function Xv(e){return e.data==="$?"||e.data==="$~"}function Wv(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function JR(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 Jn(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 Qv=null;function Qj(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Jn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Zj(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 JN(e,t,n){switch(t=Kd(n),e){case"html":if(e=t.documentElement,!e)throw Error(q(452));return e;case"head":if(e=t.head,!e)throw Error(q(453));return e;case"body":if(e=t.body,!e)throw Error(q(454));return e;default:throw Error(q(451))}}function Tc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ix(e)}var er=new Map,Jj=new Set;function Xd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Oa=Me.d;Me.d={f:eD,r:tD,D:nD,C:rD,L:aD,m:iD,X:sD,S:lD,M:oD};function eD(){var e=Oa.f(),t=Op();return e||t}function tD(e){var t=xo(e);t!==null&&t.tag===5&&t.type==="form"?V_(t):Oa.r(e)}var Oo=typeof document>"u"?null:document;function eT(e,t,n){var r=Oo;if(r&&typeof t=="string"&&t){var a=Yn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Jj.has(a)||(Jj.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),Ft(t,"link",e),Pt(t),r.head.appendChild(t)))}}function nD(e){Oa.D(e),eT("dns-prefetch",e,null)}function rD(e,t){Oa.C(e,t),eT("preconnect",e,t)}function aD(e,t,n){Oa.L(e,t,n);var r=Oo;if(r&&e&&t){var a='link[rel="preload"][as="'+Yn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Yn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+Yn(n.imageSizes)+'"]')):a+='[href="'+Yn(e)+'"]';var i=a;switch(t){case"style":i=Us(e);break;case"script":i=Ao(e)}er.has(i)||(e=Je({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),er.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(Qu(i))||t==="script"&&r.querySelector(Zu(i))||(t=r.createElement("link"),Ft(t,"link",e),Pt(t),r.head.appendChild(t)))}}function iD(e,t){Oa.m(e,t);var n=Oo;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Yn(r)+'"][href="'+Yn(e)+'"]',i=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ao(e)}if(!er.has(i)&&(e=Je({rel:"modulepreload",href:e},t),er.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Zu(i)))return}r=n.createElement("link"),Ft(r,"link",e),Pt(r),n.head.appendChild(r)}}}function lD(e,t,n){Oa.S(e,t,n);var r=Oo;if(r&&e){var a=hs(r).hoistableStyles,i=Us(e);t=t||"default";var l=a.get(i);if(!l){var s={loading:0,preload:null};if(l=r.querySelector(Qu(i)))s.loading=5;else{e=Je({rel:"stylesheet",href:e,"data-precedence":t},n),(n=er.get(i))&&Fx(e,n);var c=l=r.createElement("link");Pt(c),Ft(c,"link",e),c._p=new Promise(function(u,f){c.onload=u,c.onerror=f}),c.addEventListener("load",function(){s.loading|=1}),c.addEventListener("error",function(){s.loading|=2}),s.loading|=4,dd(l,t,r)}l={type:"stylesheet",instance:l,count:1,state:s},a.set(i,l)}}}function sD(e,t){Oa.X(e,t);var n=Oo;if(n&&e){var r=hs(n).hoistableScripts,a=Ao(e),i=r.get(a);i||(i=n.querySelector(Zu(a)),i||(e=Je({src:e,async:!0},t),(t=er.get(a))&&Gx(e,t),i=n.createElement("script"),Pt(i),Ft(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function oD(e,t){Oa.M(e,t);var n=Oo;if(n&&e){var r=hs(n).hoistableScripts,a=Ao(e),i=r.get(a);i||(i=n.querySelector(Zu(a)),i||(e=Je({src:e,async:!0,type:"module"},t),(t=er.get(a))&&Gx(e,t),i=n.createElement("script"),Pt(i),Ft(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function eS(e,t,n,r){var a=(a=ni.current)?Xd(a):null;if(!a)throw Error(q(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Us(n.href),n=hs(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=Us(n.href);var i=hs(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(Qu(e)))&&!i._p&&(l.instance=i,l.state.loading=5),er.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},er.set(e,n),i||cD(a,e,n,l.state))),t&&r===null)throw Error(q(528,""));return l}if(t&&r!==null)throw Error(q(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ao(n),n=hs(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(q(444,e))}}function Us(e){return'href="'+Yn(e)+'"'}function Qu(e){return'link[rel="stylesheet"]['+e+"]"}function tT(e){return Je({},e,{"data-precedence":e.precedence,precedence:null})}function cD(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}),Ft(t,"link",n),Pt(t),e.head.appendChild(t))}function Ao(e){return'[src="'+Yn(e)+'"]'}function Zu(e){return"script[async]"+e}function tS(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Yn(n.href)+'"]');if(r)return t.instance=r,Pt(r),r;var a=Je({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Pt(r),Ft(r,"style",a),dd(r,n.precedence,e),t.instance=r;case"stylesheet":a=Us(n.href);var i=e.querySelector(Qu(a));if(i)return t.state.loading|=4,t.instance=i,Pt(i),i;r=tT(n),(a=er.get(a))&&Fx(r,a),i=(e.ownerDocument||e).createElement("link"),Pt(i);var l=i;return l._p=new Promise(function(s,c){l.onload=s,l.onerror=c}),Ft(i,"link",r),t.state.loading|=4,dd(i,n.precedence,e),t.instance=i;case"script":return i=Ao(n.src),(a=e.querySelector(Zu(i)))?(t.instance=a,Pt(a),a):(r=n,(a=er.get(i))&&(r=Je({},n),Gx(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),Pt(a),Ft(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(q(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,dd(r,n.precedence,e));return t.instance}function dd(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 s=r[l];if(s.dataset.precedence===t)i=s;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 Fx(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Gx(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var hd=null;function nS(e,t,n){if(hd===null){var r=new Map,a=hd=new Map;a.set(n,r)}else a=hd,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[Gu]||i[It]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var l=i.getAttribute(t)||"";l=e+l;var s=r.get(l);s?s.push(i):r.set(l,[i])}}return r}function rS(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function uD(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function nT(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function fD(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=Us(r.href),i=t.querySelector(Qu(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Wd.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,Pt(i);return}i=t.ownerDocument||t,r=tT(r),(a=er.get(a))&&Fx(r,a),i=i.createElement("link"),Pt(i);var l=i;l._p=new Promise(function(s,c){l.onload=s,l.onerror=c}),Ft(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=Wd.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var vy=0;function dD(e,t){return e.stylesheets&&e.count===0&&pd(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&pd(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&vy===0&&(vy=62500*VR());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&pd(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>vy?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function Wd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)pd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Qd=null;function pd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Qd=new Map,t.forEach(hD,e),Qd=null,Wd.call(e))}function hD(e,t){if(!(t.state.loading&4)){var n=Qd.get(e);if(n)var r=n.get(null);else{n=new Map,Qd.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=Wd.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 Kc={$$typeof:na,Provider:null,Consumer:null,_currentValue:el,_currentValue2:el,_threadCount:0};function pD(e,t,n,r,a,i,l,s,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=Im(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Im(0),this.hiddenUpdates=Im(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 rT(e,t,n,r,a,i,l,s,c,u,f,d){return e=new pD(e,t,n,l,c,u,f,d,s),t=1,i===!0&&(t|=24),i=On(3,null,null,t),e.current=i,i.stateNode=e,t=vx(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},xx(i),e}function aT(e){return e?(e=as,e):as}function iT(e,t,n,r,a,i){a=aT(a),r.context===null?r.context=a:r.pendingContext=a,r=ai(t),r.payload={element:n},i=i===void 0?null:i,i!==null&&(r.callback=i),n=ii(e,r,t),n!==null&&(dn(n,e,t),jc(n,e,t))}function aS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Vx(e,t){aS(e,t),(e=e.alternate)&&aS(e,t)}function lT(e){if(e.tag===13||e.tag===31){var t=_l(e,67108864);t!==null&&dn(t,e,67108864),Vx(e,67108864)}}function iS(e){if(e.tag===13||e.tag===31){var t=Cn();t=rx(t);var n=_l(e,t);n!==null&&dn(n,e,t),Vx(e,t)}}var Zd=!0;function mD(e,t,n,r){var a=he.T;he.T=null;var i=Me.p;try{Me.p=2,Yx(e,t,n,r)}finally{Me.p=i,he.T=a}}function yD(e,t,n,r){var a=he.T;he.T=null;var i=Me.p;try{Me.p=8,Yx(e,t,n,r)}finally{Me.p=i,he.T=a}}function Yx(e,t,n,r){if(Zd){var a=Zv(r);if(a===null)my(e,t,r,Jd,n),lS(e,r);else if(gD(a,e,t,n,r))r.stopPropagation();else if(lS(e,r),t&4&&-1<vD.indexOf(e)){for(;a!==null;){var i=xo(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var l=Ri(i.pendingLanes);if(l!==0){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;l;){var c=1<<31-Tn(l);s.entanglements[1]|=c,l&=~c}Ir(i),!(Ce&6)&&(Hd=_n()+500,Wu(0))}}break;case 31:case 13:s=_l(i,2),s!==null&&dn(s,i,2),Op(),Vx(i,2)}if(i=Zv(r),i===null&&my(e,t,r,Jd,n),i===a)break;a=i}a!==null&&r.stopPropagation()}else my(e,t,r,null,n)}}function Zv(e){return e=sx(e),Kx(e)}var Jd=null;function Kx(e){if(Jd=null,e=Zl(e),e!==null){var t=Uu(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=EE(t),e!==null)return e;e=null}else if(n===31){if(e=_E(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 Jd=e,null}function sT(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(n3()){case ME:return 2;case kE:return 8;case Nd:case r3:return 32;case PE:return 268435456;default:return 32}default:return 32}}var Jv=!1,oi=null,ci=null,ui=null,Xc=new Map,Wc=new Map,Ba=[],vD="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function lS(e,t){switch(e){case"focusin":case"focusout":oi=null;break;case"dragenter":case"dragleave":ci=null;break;case"mouseover":case"mouseout":ui=null;break;case"pointerover":case"pointerout":Xc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wc.delete(t.pointerId)}}function Qo(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=xo(t),t!==null&&lT(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function gD(e,t,n,r,a){switch(t){case"focusin":return oi=Qo(oi,e,t,n,r,a),!0;case"dragenter":return ci=Qo(ci,e,t,n,r,a),!0;case"mouseover":return ui=Qo(ui,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Xc.set(i,Qo(Xc.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Wc.set(i,Qo(Wc.get(i)||null,e,t,n,r,a)),!0}return!1}function oT(e){var t=Zl(e.target);if(t!==null){var n=Uu(t);if(n!==null){if(t=n.tag,t===13){if(t=EE(n),t!==null){e.blockedOn=t,F1(e.priority,function(){iS(n)});return}}else if(t===31){if(t=_E(n),t!==null){e.blockedOn=t,F1(e.priority,function(){iS(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 md(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zv(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);vv=r,n.target.dispatchEvent(r),vv=null}else return t=xo(n),t!==null&&lT(t),e.blockedOn=n,!1;t.shift()}return!0}function sS(e,t,n){md(e)&&n.delete(t)}function bD(){Jv=!1,oi!==null&&md(oi)&&(oi=null),ci!==null&&md(ci)&&(ci=null),ui!==null&&md(ui)&&(ui=null),Xc.forEach(sS),Wc.forEach(sS)}function kf(e,t){e.blockedOn===t&&(e.blockedOn=null,Jv||(Jv=!0,Nt.unstable_scheduleCallback(Nt.unstable_NormalPriority,bD)))}var Pf=null;function oS(e){Pf!==e&&(Pf=e,Nt.unstable_scheduleCallback(Nt.unstable_NormalPriority,function(){Pf===e&&(Pf=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(Kx(r||n)===null)continue;break}var i=xo(n);i!==null&&(e.splice(t,3),t-=3,Pv(i,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function Hs(e){function t(c){return kf(c,e)}oi!==null&&kf(oi,e),ci!==null&&kf(ci,e),ui!==null&&kf(ui,e),Xc.forEach(t),Wc.forEach(t);for(var n=0;n<Ba.length;n++){var r=Ba[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ba.length&&(n=Ba[0],n.blockedOn===null);)oT(n),n.blockedOn===null&&Ba.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[pn]||null;if(typeof i=="function")l||oS(n);else if(l){var s=null;if(i&&i.hasAttribute("formAction")){if(a=i,l=i[pn]||null)s=l.formAction;else if(Kx(a)!==null)continue}else s=l.action;typeof s=="function"?n[r+1]=s:(n.splice(r,3),r-=3),oS(n)}}}function cT(){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 Xx(e){this._internalRoot=e}_p.prototype.render=Xx.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(q(409));var n=t.current,r=Cn();iT(n,r,e,t,null,null)};_p.prototype.unmount=Xx.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;iT(e.current,2,null,e,null,null),Op(),t[bo]=null}};function _p(e){this._internalRoot=e}_p.prototype.unstable_scheduleHydration=function(e){if(e){var t=LE();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ba.length&&t!==0&&t<Ba[n].priority;n++);Ba.splice(n,0,e),n===0&&oT(e)}};var cS=OE.version;if(cS!=="19.2.7")throw Error(q(527,cS,"19.2.7"));Me.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(q(188)):(e=Object.keys(e).join(","),Error(q(268,e)));return e=X$(t),e=e!==null?NE(e):null,e=e===null?null:e.stateNode,e};var xD={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:he,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $f=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$f.isDisabled&&$f.supportsFiber)try{Hu=$f.inject(xD),Nn=$f}catch{}}up.createRoot=function(e,t){if(!AE(e))throw Error(q(299));var n=!1,r="",a=eN,i=tN,l=nN;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=rT(e,1,!1,null,null,n,r,null,a,i,l,cT),e[bo]=t.current,qx(e),new Xx(t)};up.hydrateRoot=function(e,t,n){if(!AE(e))throw Error(q(299));var r=!1,a="",i=eN,l=tN,s=nN,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&&(s=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=rT(e,1,!0,t,n??null,r,a,c,i,l,s,cT),t.context=aT(null),n=t.current,r=Cn(),r=rx(r),a=ai(r),a.callback=null,ii(n,a,r),n=r,t.current.lanes=n,Fu(t,n),Ir(t),e[bo]=t.current,qx(e),new _p(t)};up.version="19.2.7";function uT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uT)}catch(e){console.error(e)}}uT(),gE.exports=up;var jD=gE.exports;const SD=Pe(jD);/**
 * 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 uS="popstate";function fS(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function wD(e={}){function t(r,a){var u;let i=(u=a.state)==null?void 0:u.masked,{pathname:l,search:s,hash:c}=i||r.location;return eg("",{pathname:l,search:s,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:Qc(a)}return AD(t,n,null,e)}function nt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function yr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function OD(){return Math.random().toString(36).substring(2,10)}function dS(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 eg(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Eo(t):t,state:n,key:t&&t.key||r||OD(),mask:a}}function Qc({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 Eo(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 AD(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,l=a.history,s="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(){s="POP";let b=f(),g=b==null?null:b-u;u=b,c&&c({action:s,location:v.location,delta:g})}function h(b,g){s="PUSH";let j=fS(b)?b:eg(v.location,b,g);u=f()+1;let x=dS(j,u),m=v.createHref(j.mask||j);try{l.pushState(x,"",m)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(m)}i&&c&&c({action:s,location:v.location,delta:1})}function p(b,g){s="REPLACE";let j=fS(b)?b:eg(v.location,b,g);u=f();let x=dS(j,u),m=v.createHref(j.mask||j);l.replaceState(x,"",m),i&&c&&c({action:s,location:v.location,delta:0})}function y(b){return ED(a,b)}let v={get action(){return s},get location(){return e(a,l)},listen(b){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(uS,d),c=b,()=>{a.removeEventListener(uS,d),c=null}},createHref(b){return t(a,b)},createURL:y,encodeLocation(b){let g=y(b);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:p,go(b){return l.go(b)}};return v}function ED(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),nt(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:Qc(t);return a=a.replace(/ $/,"%20"),!n&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function fT(e,t,n="/"){return _D(e,t,n,!1)}function _D(e,t,n,r,a){let i=typeof t=="string"?Eo(t):t,l=ba(i.pathname||"/",n);if(l==null)return null;let s=ND(e),c=null,u=ID(l);for(let f=0;c==null&&f<s.length;++f)c=LD(s[f],u,r);return c}function ND(e){let t=dT(e);return TD(t),t}function dT(e,t=[],n=[],r="",a=!1){let i=(l,s,c=a,u)=>{let f={relativePath:u===void 0?l.path||"":u,caseSensitive:l.caseSensitive===!0,childrenIndex:s,route:l};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&c)return;nt(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=pr([r,f.relativePath]),h=n.concat(f);l.children&&l.children.length>0&&(nt(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),dT(l.children,t,h,d,c)),!(l.path==null&&!l.index)&&t.push({path:d,score:DD(d,l.index),routesMeta:h})};return e.forEach((l,s)=>{var c;if(l.path===""||!((c=l.path)!=null&&c.includes("?")))i(l,s);else for(let u of hT(l.path))i(l,s,!0,u)}),t}function hT(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let l=hT(r.join("/")),s=[];return s.push(...l.map(c=>c===""?i:[i,c].join("/"))),a&&s.push(...l),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function TD(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:zD(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var CD=/^:[\w-]+$/,MD=3,kD=2,PD=1,$D=10,RD=-2,hS=e=>e==="*";function DD(e,t){let n=e.split("/"),r=n.length;return n.some(hS)&&(r+=RD),t&&(r+=kD),n.filter(a=>!hS(a)).reduce((a,i)=>a+(CD.test(i)?MD:i===""?PD:$D),r)}function zD(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 LD(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",l=[];for(let s=0;s<r.length;++s){let c=r[s],u=s===r.length-1,f=i==="/"?t:t.slice(i.length)||"/",d=eh({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},f),h=c.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=eh({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},f)),!d)return null;Object.assign(a,d.params),l.push({params:a,pathname:pr([i,d.pathname]),pathnameBase:FD(pr([i,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(i=pr([i,d.pathnameBase]))}return l}function eh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=BD(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],l=i.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:r.reduce((u,{paramName:f,isOptional:d},h)=>{if(f==="*"){let y=s[h]||"";l=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const p=s[h];return d&&!p?u[f]=void 0:u[f]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:l,pattern:e}}function BD(e,t=!1,n=!0){yr(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,s,c,u,f)=>{if(r.push({paramName:s,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 ID(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return yr(!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 ba(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 UD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function HD(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Eo(e):e,i;return n?(n=pT(n),n.startsWith("/")?i=pS(n.substring(1),"/"):i=pS(n,t)):i=t,{pathname:i,search:GD(r),hash:VD(a)}}function pS(e,t){let n=th(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function gy(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 qD(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Wx(e){let t=qD(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Np(e,t,n,r=!1){let a;typeof e=="string"?a=Eo(e):(a={...e},nt(!a.pathname||!a.pathname.includes("?"),gy("?","pathname","search",a)),nt(!a.pathname||!a.pathname.includes("#"),gy("#","pathname","hash",a)),nt(!a.search||!a.search.includes("#"),gy("#","search","hash",a)));let i=e===""||a.pathname==="",l=i?"/":a.pathname,s;if(l==null)s=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("/")}s=d>=0?t[d]:"/"}let c=HD(a,s),u=l&&l!=="/"&&l.endsWith("/"),f=(i||l===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||f)&&(c.pathname+="/"),c}var pT=e=>e.replace(/\/\/+/g,"/"),pr=e=>pT(e.join("/")),th=e=>e.replace(/\/+$/,""),FD=e=>th(e).replace(/^\/*/,"/"),GD=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,VD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,YD=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 KD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function XD(e){let t=e.map(n=>n.route.path).filter(Boolean);return pr(t)||"/"}var mT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function yT(e,t){let n=e;if(typeof n!="string"||!UD.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(mT)try{let i=new URL(window.location.href),l=n.startsWith("//")?new URL(i.protocol+n):new URL(n),s=ba(l.pathname,t);l.origin===i.origin&&s!=null?n=s+l.search+l.hash:a=!0}catch{yr(!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 vT=["POST","PUT","PATCH","DELETE"];new Set(vT);var WD=["GET",...vT];new Set(WD);var _o=O.createContext(null);_o.displayName="DataRouter";var Tp=O.createContext(null);Tp.displayName="DataRouterState";var gT=O.createContext(!1);function QD(){return O.useContext(gT)}var bT=O.createContext({isTransitioning:!1});bT.displayName="ViewTransition";var ZD=O.createContext(new Map);ZD.displayName="Fetchers";var JD=O.createContext(null);JD.displayName="Await";var Dn=O.createContext(null);Dn.displayName="Navigation";var Ju=O.createContext(null);Ju.displayName="Location";var rr=O.createContext({outlet:null,matches:[],isDataRoute:!1});rr.displayName="Route";var Qx=O.createContext(null);Qx.displayName="RouteError";var xT="REACT_ROUTER_ERROR",e4="REDIRECT",t4="ROUTE_ERROR_RESPONSE";function n4(e){if(e.startsWith(`${xT}:${e4}:{`))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 r4(e){if(e.startsWith(`${xT}:${t4}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new YD(t.status,t.statusText,t.data)}catch{}}function a4(e,{relative:t}={}){nt(No(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=O.useContext(Dn),{hash:a,pathname:i,search:l}=ef(e,{relative:t}),s=i;return n!=="/"&&(s=i==="/"?n:pr([n,i])),r.createHref({pathname:s,search:l,hash:a})}function No(){return O.useContext(Ju)!=null}function Ur(){return nt(No(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(Ju).location}var jT="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ST(e){O.useContext(Dn).static||O.useLayoutEffect(e)}function To(){let{isDataRoute:e}=O.useContext(rr);return e?x4():i4()}function i4(){nt(No(),"useNavigate() may be used only in the context of a <Router> component.");let e=O.useContext(_o),{basename:t,navigator:n}=O.useContext(Dn),{matches:r}=O.useContext(rr),{pathname:a}=Ur(),i=JSON.stringify(Wx(r)),l=O.useRef(!1);return ST(()=>{l.current=!0}),O.useCallback((c,u={})=>{if(yr(l.current,jT),!l.current)return;if(typeof c=="number"){n.go(c);return}let f=Np(c,JSON.parse(i),a,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:pr([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,i,a,e])}var l4=O.createContext(null);function s4(e){let t=O.useContext(rr).outlet;return O.useMemo(()=>t&&O.createElement(l4.Provider,{value:e},t),[t,e])}function o4(){let{matches:e}=O.useContext(rr),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function ef(e,{relative:t}={}){let{matches:n}=O.useContext(rr),{pathname:r}=Ur(),a=JSON.stringify(Wx(n));return O.useMemo(()=>Np(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function c4(e,t){return wT(e,t)}function wT(e,t,n){var b;nt(No(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=O.useContext(Dn),{matches:a}=O.useContext(rr),i=a[a.length-1],l=i?i.params:{},s=i?i.pathname:"/",c=i?i.pathnameBase:"/",u=i&&i.route;{let g=u&&u.path||"";AT(s,!u||g.endsWith("*")||g.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${g}">) 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="${g}"> to <Route path="${g==="/"?"*":`${g}/*`}">.`)}let f=Ur(),d;if(t){let g=typeof t=="string"?Eo(t):t;nt(c==="/"||((b=g.pathname)==null?void 0:b.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 "${g.pathname}" was given in the \`location\` prop.`),d=g}else d=f;let h=d.pathname||"/",p=h;if(c!=="/"){let g=c.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(g.length).join("/")}let y=n&&n.state.matches.length?n.state.matches.map(g=>Object.assign(g,{route:n.manifest[g.route.id]||g.route})):fT(e,{pathname:p});yr(u||y!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),yr(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.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 v=p4(y&&y.map(g=>Object.assign({},g,{params:Object.assign({},l,g.params),pathname:pr([c,r.encodeLocation?r.encodeLocation(g.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?c:pr([c,r.encodeLocation?r.encodeLocation(g.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:g.pathnameBase])})),a,n);return t&&v?O.createElement(Ju.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...d},navigationType:"POP"}},v):v}function u4(){let e=b4(),t=KD(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=O.createElement(O.Fragment,null,O.createElement("p",null,"💿 Hey developer 👋"),O.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",O.createElement("code",{style:i},"ErrorBoundary")," or"," ",O.createElement("code",{style:i},"errorElement")," prop on your route.")),O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:a},n):null,l)}var f4=O.createElement(u4,null),OT=class extends O.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=r4(e.digest);n&&(e=n)}let t=e!==void 0?O.createElement(rr.Provider,{value:this.props.routeContext},O.createElement(Qx.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?O.createElement(d4,{error:e},t):t}};OT.contextType=gT;var by=new WeakMap;function d4({children:e,error:t}){let{basename:n}=O.useContext(Dn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=n4(t.digest);if(r){let a=by.get(t);if(a)throw a;let i=yT(r.location,n);if(mT&&!by.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 by.set(t,l),l}return O.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function h4({routeContext:e,match:t,children:n}){let r=O.useContext(_o);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),O.createElement(rr.Provider,{value:e},n)}function p4(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);nt(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,s=-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)&&(s=f),d.route.id){let{loaderData:h,errors:p}=r,y=d.route.loader&&!h.hasOwnProperty(d.route.id)&&(!p||p[d.route.id]===void 0);if(d.route.lazy||y){n.isStatic&&(l=!0),s>=0?a=a.slice(0,s+1):a=[a[0]];break}}}}let c=n==null?void 0:n.onError,u=r&&c?(f,d)=>{var h,p;c(f,{location:r.location,params:((p=(h=r.matches)==null?void 0:h[0])==null?void 0:p.params)??{},pattern:XD(r.matches),errorInfo:d})}:void 0;return a.reduceRight((f,d,h)=>{let p,y=!1,v=null,b=null;r&&(p=i&&d.route.id?i[d.route.id]:void 0,v=d.route.errorElement||f4,l&&(s<0&&h===0?(AT("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,b=null):s===h&&(y=!0,b=d.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,h+1)),j=()=>{let x;return p?x=v:y?x=b:d.route.Component?x=O.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=f,O.createElement(h4,{match:d,routeContext:{outlet:f,matches:g,isDataRoute:r!=null},children:x})};return r&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?O.createElement(OT,{location:r.location,revalidation:r.revalidation,component:v,error:p,children:j(),routeContext:{outlet:null,matches:g,isDataRoute:!0},onError:u}):j()},null)}function Zx(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function m4(e){let t=O.useContext(_o);return nt(t,Zx(e)),t}function y4(e){let t=O.useContext(Tp);return nt(t,Zx(e)),t}function v4(e){let t=O.useContext(rr);return nt(t,Zx(e)),t}function Jx(e){let t=v4(e),n=t.matches[t.matches.length-1];return nt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function g4(){return Jx("useRouteId")}function b4(){var r;let e=O.useContext(Qx),t=y4("useRouteError"),n=Jx("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function x4(){let{router:e}=m4("useNavigate"),t=Jx("useNavigate"),n=O.useRef(!1);return ST(()=>{n.current=!0}),O.useCallback(async(a,i={})=>{yr(n.current,jT),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var mS={};function AT(e,t,n){!t&&!mS[e]&&(mS[e]=!0,yr(!1,n))}O.memo(j4);function j4({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return wT(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function ET({to:e,replace:t,state:n,relative:r}){nt(No(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=O.useContext(Dn);yr(!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}=O.useContext(rr),{pathname:l}=Ur(),s=To(),c=Np(e,Wx(i),l,r==="path"),u=JSON.stringify(c);return O.useEffect(()=>{s(JSON.parse(u),{replace:t,state:n,relative:r})},[s,u,r,t,n]),null}function S4(e){return s4(e.context)}function xe(e){nt(!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 w4({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,useTransitions:l}){nt(!No(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),c=O.useMemo(()=>({basename:s,navigator:a,static:i,useTransitions:l,future:{}}),[s,a,i,l]);typeof n=="string"&&(n=Eo(n));let{pathname:u="/",search:f="",hash:d="",state:h=null,key:p="default",mask:y}=n,v=O.useMemo(()=>{let b=ba(u,s);return b==null?null:{location:{pathname:b,search:f,hash:d,state:h,key:p,mask:y},navigationType:r}},[s,u,f,d,h,p,r,y]);return yr(v!=null,`<Router basename="${s}"> 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.`),v==null?null:O.createElement(Dn.Provider,{value:c},O.createElement(Ju.Provider,{children:t,value:v}))}function O4({children:e,location:t}){return c4(tg(e),t)}function tg(e,t=[]){let n=[];return O.Children.forEach(e,(r,a)=>{if(!O.isValidElement(r))return;let i=[...t,a];if(r.type===O.Fragment){n.push.apply(n,tg(r.props.children,i));return}nt(r.type===xe,`[${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>`),nt(!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=tg(r.props.children,i)),n.push(l)}),n}var yd="get",vd="application/x-www-form-urlencoded";function Cp(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function A4(e){return Cp(e)&&e.tagName.toLowerCase()==="button"}function E4(e){return Cp(e)&&e.tagName.toLowerCase()==="form"}function _4(e){return Cp(e)&&e.tagName.toLowerCase()==="input"}function N4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function T4(e,t){return e.button===0&&(!t||t==="_self")&&!N4(e)}var Rf=null;function C4(){if(Rf===null)try{new FormData(document.createElement("form"),0),Rf=!1}catch{Rf=!0}return Rf}var M4=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function xy(e){return e!=null&&!M4.has(e)?(yr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vd}"`),null):e}function k4(e,t){let n,r,a,i,l;if(E4(e)){let s=e.getAttribute("action");r=s?ba(s,t):null,n=e.getAttribute("method")||yd,a=xy(e.getAttribute("enctype"))||vd,i=new FormData(e)}else if(A4(e)||_4(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||s.getAttribute("action");if(r=c?ba(c,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||yd,a=xy(e.getAttribute("formenctype"))||xy(s.getAttribute("enctype"))||vd,i=new FormData(s,e),!C4()){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(Cp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=yd,r=null,a=vd,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 e0(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function _T(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&&ba(a.pathname,t)==="/"?a.pathname=`${th(t)}/_root.${r}`:a.pathname=`${th(a.pathname)}.${r}`,a}async function P4(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 $4(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 R4(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let l=await P4(i,n);return l.links?l.links():[]}return[]}));return B4(r.flat(1).filter($4).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function yS(e,t,n,r,a,i){let l=(c,u)=>n[u]?c.route.id!==n[u].route.id:!0,s=(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)||s(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)||s(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 D4(e,t,{includeHydrateFallback:n}={}){return z4(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 z4(e){return[...new Set(e)]}function L4(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function B4(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(L4(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function t0(){let e=O.useContext(_o);return e0(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function I4(){let e=O.useContext(Tp);return e0(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var n0=O.createContext(void 0);n0.displayName="FrameworkContext";function r0(){let e=O.useContext(n0);return e0(e,"You must render this element inside a <HydratedRouter> element"),e}function U4(e,t){let n=O.useContext(n0),[r,a]=O.useState(!1),[i,l]=O.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:u,onMouseLeave:f,onTouchStart:d}=t,h=O.useRef(null);O.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let v=g=>{g.forEach(j=>{l(j.isIntersecting)})},b=new IntersectionObserver(v,{threshold:.5});return h.current&&b.observe(h.current),()=>{b.disconnect()}}},[e]),O.useEffect(()=>{if(r){let v=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(v)}}},[r]);let p=()=>{a(!0)},y=()=>{a(!1),l(!1)};return n?e!=="intent"?[i,h,{}]:[i,h,{onFocus:Zo(s,p),onBlur:Zo(c,y),onMouseEnter:Zo(u,p),onMouseLeave:Zo(f,y),onTouchStart:Zo(d,p)}]:[!1,h,{}]}function Zo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function H4({page:e,...t}){let n=QD(),{router:r}=t0(),a=O.useMemo(()=>fT(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n?O.createElement(F4,{page:e,matches:a,...t}):O.createElement(G4,{page:e,matches:a,...t}):null}function q4(e){let{manifest:t,routeModules:n}=r0(),[r,a]=O.useState([]);return O.useEffect(()=>{let i=!1;return R4(e,t,n).then(l=>{i||a(l)}),()=>{i=!0}},[e,t,n]),r}function F4({page:e,matches:t,...n}){let r=Ur(),{future:a}=r0(),{basename:i}=t0(),l=O.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let s=_T(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&&s.searchParams.set("_routes",u.join(",")),[s.pathname+s.search]},[i,a.v8_trailingSlashAwareDataRequests,e,r,t]);return O.createElement(O.Fragment,null,l.map(s=>O.createElement("link",{key:s,rel:"prefetch",as:"fetch",href:s,...n})))}function G4({page:e,matches:t,...n}){let r=Ur(),{future:a,manifest:i,routeModules:l}=r0(),{basename:s}=t0(),{loaderData:c,matches:u}=I4(),f=O.useMemo(()=>yS(e,t,u,i,r,"data"),[e,t,u,i,r]),d=O.useMemo(()=>yS(e,t,u,i,r,"assets"),[e,t,u,i,r]),h=O.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let v=new Set,b=!1;if(t.forEach(j=>{var m;let x=i.routes[j.route.id];!x||!x.hasLoader||(!f.some(S=>S.route.id===j.route.id)&&j.route.id in c&&((m=l[j.route.id])!=null&&m.shouldRevalidate)||x.hasClientLoader?b=!0:v.add(j.route.id))}),v.size===0)return[];let g=_T(e,s,a.v8_trailingSlashAwareDataRequests,"data");return b&&v.size>0&&g.searchParams.set("_routes",t.filter(j=>v.has(j.route.id)).map(j=>j.route.id).join(",")),[g.pathname+g.search]},[s,a.v8_trailingSlashAwareDataRequests,c,r,i,f,t,e,l]),p=O.useMemo(()=>D4(d,i),[d,i]),y=q4(d);return O.createElement(O.Fragment,null,h.map(v=>O.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...n})),p.map(v=>O.createElement("link",{key:v,rel:"modulepreload",href:v,...n})),y.map(({key:v,link:b})=>O.createElement("link",{key:v,nonce:n.nonce,...b,crossOrigin:b.crossOrigin??n.crossOrigin})))}function V4(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Y4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Y4&&(window.__reactRouterVersion="7.17.0")}catch{}function K4({basename:e,children:t,useTransitions:n,window:r}){let a=O.useRef();a.current==null&&(a.current=wD({window:r,v5Compat:!0}));let i=a.current,[l,s]=O.useState({action:i.action,location:i.location}),c=O.useCallback(u=>{n===!1?s(u):O.startTransition(()=>s(u))},[n]);return O.useLayoutEffect(()=>i.listen(c),[i,c]),O.createElement(w4,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:i,useTransitions:n})}var NT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mp=O.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:l,mask:s,state:c,target:u,to:f,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:p,...y},v){let{basename:b,navigator:g,useTransitions:j}=O.useContext(Dn),x=typeof f=="string"&&NT.test(f),m=yT(f,b);f=m.to;let S=a4(f,{relative:a}),w=Ur(),A=null;if(s){let $=Np(s,[],w.mask?w.mask.pathname:"/",!0);b!=="/"&&($.pathname=$.pathname==="/"?b:pr([b,$.pathname])),A=g.createHref($)}let[_,E,C]=U4(r,y),k=Q4(f,{replace:l,mask:s,state:c,target:u,preventScrollReset:d,relative:a,viewTransition:h,defaultShouldRevalidate:p,useTransitions:j});function M($){t&&t($),$.defaultPrevented||k($)}let I=!(m.isExternal||i),D=O.createElement("a",{...y,...C,href:(I?A:void 0)||m.absoluteURL||S,onClick:I?M:t,ref:V4(v,E),target:u,"data-discover":!x&&n==="render"?"true":void 0});return _&&!x?O.createElement(O.Fragment,null,D,O.createElement(H4,{page:S})):D});Mp.displayName="Link";var TT=O.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:l,viewTransition:s,children:c,...u},f){let d=ef(l,{relative:u.relative}),h=Ur(),p=O.useContext(Tp),{navigator:y,basename:v}=O.useContext(Dn),b=p!=null&&n5(d)&&s===!0,g=y.encodeLocation?y.encodeLocation(d).pathname:d.pathname,j=h.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(j=j.toLowerCase(),x=x?x.toLowerCase():null,g=g.toLowerCase()),x&&v&&(x=ba(x,v)||x);const m=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let S=j===g||!a&&j.startsWith(g)&&j.charAt(m)==="/",w=x!=null&&(x===g||!a&&x.startsWith(g)&&x.charAt(g.length)==="/"),A={isActive:S,isPending:w,isTransitioning:b},_=S?t:void 0,E;typeof r=="function"?E=r(A):E=[r,S?"active":null,w?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let C=typeof i=="function"?i(A):i;return O.createElement(Mp,{...u,"aria-current":_,className:E,ref:f,style:C,to:l,viewTransition:s},typeof c=="function"?c(A):c)});TT.displayName="NavLink";var X4=O.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:l=yd,action:s,onSubmit:c,relative:u,preventScrollReset:f,viewTransition:d,defaultShouldRevalidate:h,...p},y)=>{let{useTransitions:v}=O.useContext(Dn),b=e5(),g=t5(s,{relative:u}),j=l.toLowerCase()==="get"?"get":"post",x=typeof s=="string"&&NT.test(s),m=S=>{if(c&&c(S),S.defaultPrevented)return;S.preventDefault();let w=S.nativeEvent.submitter,A=(w==null?void 0:w.getAttribute("formmethod"))||l,_=()=>b(w||S.currentTarget,{fetcherKey:t,method:A,navigate:n,replace:a,state:i,relative:u,preventScrollReset:f,viewTransition:d,defaultShouldRevalidate:h});v&&n!==!1?O.startTransition(()=>_()):_()};return O.createElement("form",{ref:y,method:j,action:g,onSubmit:r?c:m,...p,"data-discover":!x&&e==="render"?"true":void 0})});X4.displayName="Form";function W4(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function CT(e){let t=O.useContext(_o);return nt(t,W4(e)),t}function Q4(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:i,relative:l,viewTransition:s,defaultShouldRevalidate:c,useTransitions:u}={}){let f=To(),d=Ur(),h=ef(e,{relative:l});return O.useCallback(p=>{if(T4(p,t)){p.preventDefault();let y=n!==void 0?n:Qc(d)===Qc(h),v=()=>f(e,{replace:y,mask:r,state:a,preventScrollReset:i,relative:l,viewTransition:s,defaultShouldRevalidate:c});u?O.startTransition(()=>v()):v()}},[d,f,h,n,r,a,t,e,i,l,s,c,u])}var Z4=0,J4=()=>`__${String(++Z4)}__`;function e5(){let{router:e}=CT("useSubmit"),{basename:t}=O.useContext(Dn),n=g4(),r=e.fetch,a=e.navigate;return O.useCallback(async(i,l={})=>{let{action:s,method:c,encType:u,formData:f,body:d}=k4(i,t);if(l.navigate===!1){let h=l.fetcherKey||J4();await r(h,n,l.action||s,{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||s,{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 t5(e,{relative:t}={}){let{basename:n}=O.useContext(Dn),r=O.useContext(rr);nt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...ef(e||".",{relative:t})},l=Ur();if(e==null){i.search=l.search;let s=new URLSearchParams(i.search),c=s.getAll("index");if(c.some(f=>f==="")){s.delete("index"),c.filter(d=>d).forEach(d=>s.append("index",d));let f=s.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:pr([n,i.pathname])),Qc(i)}function n5(e,{relative:t}={}){let n=O.useContext(bT);nt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=CT("useViewTransitionState"),a=ef(e,{relative:t});if(!n.isTransitioning)return!1;let i=ba(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=ba(n.nextLocation.pathname,r)||n.nextLocation.pathname;return eh(a.pathname,l)!=null||eh(a.pathname,i)!=null}var kp=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(){}},Ki,Ua,ws,eE,r5=(eE=class extends kp{constructor(){super();Ae(this,Ki);Ae(this,Ua);Ae(this,ws);pe(this,ws,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){U(this,Ua)||this.setEventListener(U(this,ws))}onUnsubscribe(){var t;this.hasListeners()||((t=U(this,Ua))==null||t.call(this),pe(this,Ua,void 0))}setEventListener(t){var n;pe(this,ws,t),(n=U(this,Ua))==null||n.call(this),pe(this,Ua,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){U(this,Ki)!==t&&(pe(this,Ki,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof U(this,Ki)=="boolean"?U(this,Ki):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ki=new WeakMap,Ua=new WeakMap,ws=new WeakMap,eE),MT=new r5,a5={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ha,Kb,tE,i5=(tE=class{constructor(){Ae(this,Ha,a5);Ae(this,Kb,!1)}setTimeoutProvider(e){pe(this,Ha,e)}setTimeout(e,t){return U(this,Ha).setTimeout(e,t)}clearTimeout(e){U(this,Ha).clearTimeout(e)}setInterval(e,t){return U(this,Ha).setInterval(e,t)}clearInterval(e){U(this,Ha).clearInterval(e)}},Ha=new WeakMap,Kb=new WeakMap,tE),ng=new i5;function l5(e){setTimeout(e,0)}var s5=typeof window>"u"||"Deno"in globalThis;function or(){}function o5(e,t){return typeof e=="function"?e(t):e}function c5(e){return typeof e=="number"&&e>=0&&e!==1/0}function u5(e,t){return Math.max(e+(t||0)-Date.now(),0)}function rg(e,t){return typeof e=="function"?e(t):e}function f5(e,t){return typeof e=="function"?e(t):e}function vS(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:l,stale:s}=e;if(l){if(r){if(t.queryHash!==a0(l,t.options))return!1}else if(!Jc(t.queryKey,l))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||a&&a!==t.state.fetchStatus||i&&!i(t))}function gS(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Zc(t.options.mutationKey)!==Zc(i))return!1}else if(!Jc(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function a0(e,t){return((t==null?void 0:t.queryKeyHashFn)||Zc)(e)}function Zc(e){return JSON.stringify(e,(t,n)=>ag(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Jc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Jc(e[n],t[n])):!1}var d5=Object.prototype.hasOwnProperty;function kT(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=bS(e)&&bS(t);if(!r&&!(ag(e)&&ag(t)))return t;const i=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),s=l.length,c=r?new Array(s):{};let u=0;for(let f=0;f<s;f++){const d=r?f:l[f],h=e[d],p=t[d];if(h===p){c[d]=h,(r?f<i:d5.call(e,d))&&u++;continue}if(h===null||p===null||typeof h!="object"||typeof p!="object"){c[d]=p;continue}const y=kT(h,p,n+1);c[d]=y,y===h&&u++}return i===s&&u===i?e:c}function bS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ag(e){if(!xS(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!xS(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function xS(e){return Object.prototype.toString.call(e)==="[object Object]"}function h5(e){return new Promise(t=>{ng.setTimeout(t,e)})}function p5(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?kT(e,t):t}function m5(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function y5(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var i0=Symbol();function PT(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===i0?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function v5(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 $T=(()=>{let e=()=>s5;return{isServer(){return e()},setIsServer(t){e=t}}})();function g5(){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 b5=l5;function x5(){let e=[],t=0,n=s=>{s()},r=s=>{s()},a=b5;const i=s=>{t?e.push(s):a(()=>{n(s)})},l=()=>{const s=e;e=[],s.length&&a(()=>{r(()=>{s.forEach(c=>{n(c)})})})};return{batch:s=>{let c;t++;try{c=s()}finally{t--,t||l()}return c},batchCalls:s=>(...c)=>{i(()=>{s(...c)})},schedule:i,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{a=s}}}var Qt=x5(),Os,qa,As,nE,j5=(nE=class extends kp{constructor(){super();Ae(this,Os,!0);Ae(this,qa);Ae(this,As);pe(this,As,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(){U(this,qa)||this.setEventListener(U(this,As))}onUnsubscribe(){var t;this.hasListeners()||((t=U(this,qa))==null||t.call(this),pe(this,qa,void 0))}setEventListener(t){var n;pe(this,As,t),(n=U(this,qa))==null||n.call(this),pe(this,qa,t(this.setOnline.bind(this)))}setOnline(t){U(this,Os)!==t&&(pe(this,Os,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return U(this,Os)}},Os=new WeakMap,qa=new WeakMap,As=new WeakMap,nE),nh=new j5;function S5(e){return Math.min(1e3*2**e,3e4)}function RT(e){return(e??"online")==="online"?nh.isOnline():!0}var ig=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function DT(e){let t=!1,n=0,r;const a=g5(),i=()=>a.status!=="pending",l=v=>{var b;if(!i()){const g=new ig(v);h(g),(b=e.onCancel)==null||b.call(e,g)}},s=()=>{t=!0},c=()=>{t=!1},u=()=>MT.isFocused()&&(e.networkMode==="always"||nh.isOnline())&&e.canRun(),f=()=>RT(e.networkMode)&&e.canRun(),d=v=>{i()||(r==null||r(),a.resolve(v))},h=v=>{i()||(r==null||r(),a.reject(v))},p=()=>new Promise(v=>{var b;r=g=>{(i()||u())&&v(g)},(b=e.onPause)==null||b.call(e)}).then(()=>{var v;r=void 0,i()||(v=e.onContinue)==null||v.call(e)}),y=()=>{if(i())return;let v;const b=n===0?e.initialPromise:void 0;try{v=b??e.fn()}catch(g){v=Promise.reject(g)}Promise.resolve(v).then(d).catch(g=>{var w;if(i())return;const j=e.retry??($T.isServer()?0:3),x=e.retryDelay??S5,m=typeof x=="function"?x(n,g):x,S=j===!0||typeof j=="number"&&n<j||typeof j=="function"&&j(n,g);if(t||!S){h(g);return}n++,(w=e.onFail)==null||w.call(e,n,g),h5(m).then(()=>u()?void 0:p()).then(()=>{t?h(g):y()})})};return{promise:a,status:()=>a.status,cancel:l,continue:()=>(r==null||r(),a),cancelRetry:s,continueRetry:c,canStart:f,start:()=>(f()?y():p().then(y),a)}}var Xi,rE,zT=(rE=class{constructor(){Ae(this,Xi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),c5(this.gcTime)&&pe(this,Xi,ng.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??($T.isServer()?1/0:5*60*1e3))}clearGcTimeout(){U(this,Xi)!==void 0&&(ng.clearTimeout(U(this,Xi)),pe(this,Xi,void 0))}},Xi=new WeakMap,rE);function w5(e){return{onFetch:(t,n)=>{var f,d,h,p,y;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=((p=t.state.data)==null?void 0:p.pages)||[],l=((y=t.state.data)==null?void 0:y.pageParams)||[];let s={pages:[],pageParams:[]},c=0;const u=async()=>{let v=!1;const b=x=>{v5(x,()=>t.signal,()=>v=!0)},g=PT(t.options,t.fetchOptions),j=async(x,m,S)=>{if(v)return Promise.reject(t.signal.reason);if(m==null&&x.pages.length)return Promise.resolve(x);const A=(()=>{const k={client:t.client,queryKey:t.queryKey,pageParam:m,direction:S?"backward":"forward",meta:t.options.meta};return b(k),k})(),_=await g(A),{maxPages:E}=t.options,C=S?y5:m5;return{pages:C(x.pages,_,E),pageParams:C(x.pageParams,m,E)}};if(a&&i.length){const x=a==="backward",m=x?O5:jS,S={pages:i,pageParams:l},w=m(r,S);s=await j(S,w,x)}else{const x=e??i.length;do{const m=c===0?l[0]??r.initialPageParam:jS(r,s);if(c>0&&m==null)break;s=await j(s,m),c++}while(c<x)}return s};t.options.persister?t.fetchFn=()=>{var v,b;return(b=(v=t.options).persister)==null?void 0:b.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function jS(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function O5(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 Es,Wi,_s,Hn,Qi,Ct,Lu,Zi,jn,LT,Qr,aE,A5=(aE=class extends zT{constructor(t){super();Ae(this,jn);Ae(this,Es);Ae(this,Wi);Ae(this,_s);Ae(this,Hn);Ae(this,Qi);Ae(this,Ct);Ae(this,Lu);Ae(this,Zi);pe(this,Zi,!1),pe(this,Lu,t.defaultOptions),this.setOptions(t.options),this.observers=[],pe(this,Qi,t.client),pe(this,Hn,U(this,Qi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,pe(this,Wi,wS(this.options)),this.state=t.state??U(this,Wi),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return U(this,Es)}get promise(){var t;return(t=U(this,Ct))==null?void 0:t.promise}setOptions(t){if(this.options={...U(this,Lu),...t},t!=null&&t._type&&pe(this,Es,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(SS(n.data,n.dataUpdatedAt)),pe(this,Wi,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&U(this,Hn).remove(this)}setData(t,n){const r=p5(this.state.data,t,this.options);return zt(this,jn,Qr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){zt(this,jn,Qr).call(this,{type:"setState",state:t})}cancel(t){var r,a;const n=(r=U(this,Ct))==null?void 0:r.promise;return(a=U(this,Ct))==null||a.cancel(t),n?n.then(or).catch(or):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return U(this,Wi)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>f5(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===i0||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>rg(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:!u5(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=U(this,Ct))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=U(this,Ct))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),U(this,Hn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(U(this,Ct)&&(U(this,Zi)||zt(this,jn,LT).call(this)?U(this,Ct).cancel({revert:!0}):U(this,Ct).cancelRetry()),this.scheduleGc()),U(this,Hn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||zt(this,jn,Qr).call(this,{type:"invalidate"})}async fetch(t,n){var u,f,d,h,p,y,v,b,g,j,x;if(this.state.fetchStatus!=="idle"&&((u=U(this,Ct))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(U(this,Ct))return U(this,Ct).continueRetry(),U(this,Ct).promise}if(t&&this.setOptions(t),!this.options.queryFn){const m=this.observers.find(S=>S.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,a=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(pe(this,Zi,!0),r.signal)})},i=()=>{const m=PT(this.options,n),w=(()=>{const A={client:U(this,Qi),queryKey:this.queryKey,meta:this.meta};return a(A),A})();return pe(this,Zi,!1),this.options.persister?this.options.persister(m,w,this):m(w)},s=(()=>{const m={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:U(this,Qi),state:this.state,fetchFn:i};return a(m),m})(),c=U(this,Es)==="infinite"?w5(this.options.pages):this.options.behavior;c==null||c.onFetch(s,this),pe(this,_s,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=s.fetchOptions)==null?void 0:f.meta))&&zt(this,jn,Qr).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta}),pe(this,Ct,DT({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,onCancel:m=>{m instanceof ig&&m.revert&&this.setState({...U(this,_s),fetchStatus:"idle"}),r.abort()},onFail:(m,S)=>{zt(this,jn,Qr).call(this,{type:"failed",failureCount:m,error:S})},onPause:()=>{zt(this,jn,Qr).call(this,{type:"pause"})},onContinue:()=>{zt(this,jn,Qr).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const m=await U(this,Ct).start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),(p=(h=U(this,Hn).config).onSuccess)==null||p.call(h,m,this),(v=(y=U(this,Hn).config).onSettled)==null||v.call(y,m,this.state.error,this),m}catch(m){if(m instanceof ig){if(m.silent)return U(this,Ct).promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw zt(this,jn,Qr).call(this,{type:"error",error:m}),(g=(b=U(this,Hn).config).onError)==null||g.call(b,m,this),(x=(j=U(this,Hn).config).onSettled)==null||x.call(j,this.state.data,m,this),m}finally{this.scheduleGc()}}},Es=new WeakMap,Wi=new WeakMap,_s=new WeakMap,Hn=new WeakMap,Qi=new WeakMap,Ct=new WeakMap,Lu=new WeakMap,Zi=new WeakMap,jn=new WeakSet,LT=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Qr=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,...E5(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...SS(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return pe(this,_s,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),Qt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),U(this,Hn).notify({query:this,type:"updated",action:t})})},aE);function E5(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:RT(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function SS(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 Bu,Ar,Vt,Ji,Er,Ma,iE,_5=(iE=class extends zT{constructor(t){super();Ae(this,Er);Ae(this,Bu);Ae(this,Ar);Ae(this,Vt);Ae(this,Ji);pe(this,Bu,t.client),this.mutationId=t.mutationId,pe(this,Vt,t.mutationCache),pe(this,Ar,[]),this.state=t.state||N5(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){U(this,Ar).includes(t)||(U(this,Ar).push(t),this.clearGcTimeout(),U(this,Vt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){pe(this,Ar,U(this,Ar).filter(n=>n!==t)),this.scheduleGc(),U(this,Vt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){U(this,Ar).length||(this.state.status==="pending"?this.scheduleGc():U(this,Vt).remove(this))}continue(){var t;return((t=U(this,Ji))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var l,s,c,u,f,d,h,p,y,v,b,g,j,x,m,S,w,A;const n=()=>{zt(this,Er,Ma).call(this,{type:"continue"})},r={client:U(this,Bu),meta:this.options.meta,mutationKey:this.options.mutationKey};pe(this,Ji,DT({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(_,E)=>{zt(this,Er,Ma).call(this,{type:"failed",failureCount:_,error:E})},onPause:()=>{zt(this,Er,Ma).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>U(this,Vt).canRun(this)}));const a=this.state.status==="pending",i=!U(this,Ji).canStart();try{if(a)n();else{zt(this,Er,Ma).call(this,{type:"pending",variables:t,isPaused:i}),U(this,Vt).config.onMutate&&await U(this,Vt).config.onMutate(t,this,r);const E=await((s=(l=this.options).onMutate)==null?void 0:s.call(l,t,r));E!==this.state.context&&zt(this,Er,Ma).call(this,{type:"pending",context:E,variables:t,isPaused:i})}const _=await U(this,Ji).start();return await((u=(c=U(this,Vt).config).onSuccess)==null?void 0:u.call(c,_,t,this.state.context,this,r)),await((d=(f=this.options).onSuccess)==null?void 0:d.call(f,_,t,this.state.context,r)),await((p=(h=U(this,Vt).config).onSettled)==null?void 0:p.call(h,_,null,this.state.variables,this.state.context,this,r)),await((v=(y=this.options).onSettled)==null?void 0:v.call(y,_,null,t,this.state.context,r)),zt(this,Er,Ma).call(this,{type:"success",data:_}),_}catch(_){try{await((g=(b=U(this,Vt).config).onError)==null?void 0:g.call(b,_,t,this.state.context,this,r))}catch(E){Promise.reject(E)}try{await((x=(j=this.options).onError)==null?void 0:x.call(j,_,t,this.state.context,r))}catch(E){Promise.reject(E)}try{await((S=(m=U(this,Vt).config).onSettled)==null?void 0:S.call(m,void 0,_,this.state.variables,this.state.context,this,r))}catch(E){Promise.reject(E)}try{await((A=(w=this.options).onSettled)==null?void 0:A.call(w,void 0,_,t,this.state.context,r))}catch(E){Promise.reject(E)}throw zt(this,Er,Ma).call(this,{type:"error",error:_}),_}finally{U(this,Vt).runNext(this)}}},Bu=new WeakMap,Ar=new WeakMap,Vt=new WeakMap,Ji=new WeakMap,Er=new WeakSet,Ma=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),Qt.batch(()=>{U(this,Ar).forEach(r=>{r.onMutationUpdate(t)}),U(this,Vt).notify({mutation:this,type:"updated",action:t})})},iE);function N5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ea,cr,Iu,lE,T5=(lE=class extends kp{constructor(t={}){super();Ae(this,ea);Ae(this,cr);Ae(this,Iu);this.config=t,pe(this,ea,new Set),pe(this,cr,new Map),pe(this,Iu,0)}build(t,n,r){const a=new _5({client:t,mutationCache:this,mutationId:++vf(this,Iu)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){U(this,ea).add(t);const n=Df(t);if(typeof n=="string"){const r=U(this,cr).get(n);r?r.push(t):U(this,cr).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(U(this,ea).delete(t)){const n=Df(t);if(typeof n=="string"){const r=U(this,cr).get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&U(this,cr).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Df(t);if(typeof n=="string"){const r=U(this,cr).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=Df(t);if(typeof n=="string"){const a=(r=U(this,cr).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(){Qt.batch(()=>{U(this,ea).forEach(t=>{this.notify({type:"removed",mutation:t})}),U(this,ea).clear(),U(this,cr).clear()})}getAll(){return Array.from(U(this,ea))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>gS(n,r))}findAll(t={}){return this.getAll().filter(n=>gS(t,n))}notify(t){Qt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Qt.batch(()=>Promise.all(t.map(n=>n.continue().catch(or))))}},ea=new WeakMap,cr=new WeakMap,Iu=new WeakMap,lE);function Df(e){var t;return(t=e.options.scope)==null?void 0:t.id}var _r,sE,C5=(sE=class extends kp{constructor(t={}){super();Ae(this,_r);this.config=t,pe(this,_r,new Map)}build(t,n,r){const a=n.queryKey,i=n.queryHash??a0(a,n);let l=this.get(i);return l||(l=new A5({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(l)),l}add(t){U(this,_r).has(t.queryHash)||(U(this,_r).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=U(this,_r).get(t.queryHash);n&&(t.destroy(),n===t&&U(this,_r).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Qt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return U(this,_r).get(t)}getAll(){return[...U(this,_r).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>vS(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>vS(t,r)):n}notify(t){Qt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Qt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Qt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},_r=new WeakMap,sE),lt,Fa,Ga,Ns,Ts,Va,Cs,Ms,oE,M5=(oE=class{constructor(e={}){Ae(this,lt);Ae(this,Fa);Ae(this,Ga);Ae(this,Ns);Ae(this,Ts);Ae(this,Va);Ae(this,Cs);Ae(this,Ms);pe(this,lt,e.queryCache||new C5),pe(this,Fa,e.mutationCache||new T5),pe(this,Ga,e.defaultOptions||{}),pe(this,Ns,new Map),pe(this,Ts,new Map),pe(this,Va,0)}mount(){vf(this,Va)._++,U(this,Va)===1&&(pe(this,Cs,MT.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(this,lt).onFocus())})),pe(this,Ms,nh.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(this,lt).onOnline())})))}unmount(){var e,t;vf(this,Va)._--,U(this,Va)===0&&((e=U(this,Cs))==null||e.call(this),pe(this,Cs,void 0),(t=U(this,Ms))==null||t.call(this),pe(this,Ms,void 0))}isFetching(e){return U(this,lt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return U(this,Fa).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=U(this,lt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=U(this,lt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(rg(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return U(this,lt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=U(this,lt).get(r.queryHash),i=a==null?void 0:a.state.data,l=o5(t,i);if(l!==void 0)return U(this,lt).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return Qt.batch(()=>U(this,lt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=U(this,lt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=U(this,lt);Qt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=U(this,lt);return Qt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Qt.batch(()=>U(this,lt).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(or).catch(or)}invalidateQueries(e,t={}){return Qt.batch(()=>(U(this,lt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Qt.batch(()=>U(this,lt).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(or)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(or)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=U(this,lt).build(this,t);return n.isStaleByTime(rg(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(or).catch(or)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(or).catch(or)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return nh.isOnline()?U(this,Fa).resumePausedMutations():Promise.resolve()}getQueryCache(){return U(this,lt)}getMutationCache(){return U(this,Fa)}getDefaultOptions(){return U(this,Ga)}setDefaultOptions(e){pe(this,Ga,e)}setQueryDefaults(e,t){U(this,Ns).set(Zc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...U(this,Ns).values()],n={};return t.forEach(r=>{Jc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){U(this,Ts).set(Zc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...U(this,Ts).values()],n={};return t.forEach(r=>{Jc(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...U(this,Ga).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=a0(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===i0&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...U(this,Ga).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){U(this,lt).clear(),U(this,Fa).clear()}},lt=new WeakMap,Fa=new WeakMap,Ga=new WeakMap,Ns=new WeakMap,Ts=new WeakMap,Va=new WeakMap,Cs=new WeakMap,Ms=new WeakMap,oE),k5=O.createContext(void 0),P5=({client:e,children:t})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),o.jsx(k5.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 $5=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),BT=(...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 R5={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 D5=O.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:l,...s},c)=>O.createElement("svg",{ref:c,...R5,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:BT("lucide",a),...s},[...l.map(([u,f])=>O.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 W=(e,t)=>{const n=O.forwardRef(({className:r,...a},i)=>O.createElement(D5,{ref:i,iconNode:t,className:BT(`lucide-${$5(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 z5=W("AppWindow",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const L5=W("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const B5=W("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 I5=W("ArrowRightLeft",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const U5=W("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 l0=W("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 H5=W("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q5=W("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 F5=W("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 G5=W("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 s0=W("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 V5=W("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Y5=W("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 IT=W("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 K5=W("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 X5=W("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 W5=W("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 eu=W("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 Q5=W("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 Z5=W("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 J5=W("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tu=W("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 ez=W("FileCheck2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m3 15 2 2 4-4",key:"1lhrkk"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tz=W("FileClock",[["path",{d:"M16 22h2a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"37hlfg"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]);/**
 * @license lucide-react v0.400.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=W("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const HT=W("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]]);/**
 * @license lucide-react v0.400.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=W("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nz=W("FileStack",[["path",{d:"M21 7h-3a2 2 0 0 1-2-2V2",key:"9rb54x"}],["path",{d:"M21 6v6.5c0 .8-.7 1.5-1.5 1.5h-7c-.8 0-1.5-.7-1.5-1.5v-9c0-.8.7-1.5 1.5-1.5H17Z",key:"1059l0"}],["path",{d:"M7 8v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H15",key:"16874u"}],["path",{d:"M3 12v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H11",key:"k2ox98"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pp=W("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 rz=W("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const az=W("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const o0=W("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const FT=W("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iz=W("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lz=W("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 $p=W("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
 * @license lucide-react v0.400.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=W("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c0=W("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 u0=W("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sz=W("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 oz=W("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const VT=W("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 YT=W("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 cz=W("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uz=W("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 fz=W("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 f0=W("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/**
 * @license lucide-react v0.400.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=W("MessageSquareWarning",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M12 7v2",key:"stiyo7"}],["path",{d:"M12 13h.01",key:"y0uutt"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dz=W("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hz=W("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 pz=W("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 d0=W("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 XT=W("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Co=W("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mz=W("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const OS=W("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 yz=W("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 Xt=W("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 vz=W("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 gz=W("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const WT=W("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 bz=W("RotateCcw",[["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"}]]);/**
 * @license lucide-react v0.400.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=W("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 xz=W("ScanText",[["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"}],["path",{d:"M7 8h8",key:"1jbsf9"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M7 16h6",key:"1vyc9m"}]]);/**
 * @license lucide-react v0.400.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=W("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 tf=W("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 ZT=W("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 JT=W("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 eC=W("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const p0=W("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 qs=W("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 rh=W("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 ht=W("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 jz=W("SquareMenu",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 8h10",key:"1jw688"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M7 16h10",key:"wp8him"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sz=W("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 wz=W("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lg=W("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Oz=W("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 Az=W("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 Gt=W("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 tC=W("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 Ez=W("Tv",[["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",ry:"2",key:"10ag99"}],["polyline",{points:"17 2 12 7 7 2",key:"11pgbg"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _z=W("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const m0=W("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 sg=W("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nC=W("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),AS={SUPERADMIN:4,EDITOR:3,AUTHOR:2,VIEWER:1},ES=["SUPERADMIN","EDITOR","AUTHOR","VIEWER"];function xa(){return(localStorage.getItem("cms_role")||"VIEWER").toUpperCase()}function pl(e,t=xa()){return(AS[t]||0)>=(AS[e.toUpperCase()]||99)}const zn=(e=xa())=>pl("AUTHOR",e),rC=(e=xa())=>pl("EDITOR",e),aC=(e=xa())=>pl("SUPERADMIN",e),iC=O.createContext({theme:"dark",toggle:()=>{},setTheme:()=>{}}),_S="cms_theme";function Nz(e){document.documentElement.setAttribute("data-theme",e)}function Tz({children:e}){const[t,n]=O.useState(()=>localStorage.getItem(_S)==="light"?"light":"dark");O.useEffect(()=>{Nz(t),localStorage.setItem(_S,t)},[t]);const r=i=>n(i),a=()=>n(i=>i==="dark"?"light":"dark");return o.jsx(iC.Provider,{value:{theme:t,toggle:a,setTheme:r},children:e})}function Cz(){return O.useContext(iC)}function lC(){const{theme:e,toggle:t}=Cz();return o.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"?o.jsx(Sz,{size:16}):o.jsx(hz,{size:16}),e==="dark"?"라이트 모드":"다크 모드"]})}const Mz=[{to:"/dashboard",label:"개요",icon:sz},{to:"/contents",label:"콘텐츠",icon:Pp},{to:"/media",label:"미디어",icon:$p},{to:"/products",label:"상품 콘텐츠",icon:d0},{to:"/banners",label:"배너/프로모션",icon:f0},{to:"/menus",label:"메뉴/카테고리",icon:YT}],kz=[{to:"/themes",label:"테마/템플릿",icon:XT},{to:"/i18n",label:"다국어",icon:u0},{to:"/seo",label:"SEO",icon:tf},{to:"/forms",label:"폼빌더",icon:HT},{to:"/channels",label:"채널",icon:eC}],Pz=[{to:"/ugc",label:"UGC 모더레이션",icon:KT},{to:"/members",label:"회원",icon:m0},{to:"/analytics",label:"콘텐츠 분석",icon:l0},{to:"/ai-tools",label:"AI 도구",icon:ht},{to:"/ai-techniques",label:"AI 기법 (RAG)",icon:eu}],$z=[{to:"/admin/users",label:"사용자/권한",icon:qs,min:"SUPERADMIN"},{to:"/admin/audit",label:"감사 로그",icon:QT,min:"EDITOR"},{to:"/admin/settings",label:"시스템 설정",icon:JT,min:"EDITOR"},{to:"/admin/ai-platform",label:"AI 플랫폼",icon:eu,min:"SUPERADMIN"}],Rz=[{to:"/uiws/worklog",label:"업무일지",icon:H5},{to:"/uiws/schedule",label:"일정",icon:G5},{to:"/uiws/message",label:"쪽지",icon:fz},{to:"/uiws/stats",label:"업무통계",icon:l0}],Dz=[{to:"/uiws/system/roles",label:"권한 관리",icon:c0,min:"SUPERADMIN"},{to:"/uiws/system/role-menus",label:"역할-메뉴 권한",icon:VT,min:"SUPERADMIN"},{to:"/uiws/system/codes",label:"공통코드",icon:iz,min:"SUPERADMIN"},{to:"/uiws/system/menus",label:"메뉴 관리",icon:jz,min:"SUPERADMIN"},{to:"/uiws/system/depts",label:"부서 관리",icon:pz,min:"SUPERADMIN"},{to:"/uiws/system/companies",label:"거래처 관리",icon:q5,min:"SUPERADMIN"}],zz=[{to:"/admin/mobile-app",label:"모바일 앱 설치",icon:rh}],Lz=({isActive:e})=>`flex items-center gap-3 px-5 py-2 text-sm transition-colors ${e?"bg-card text-brand border-r-2 border-brand":"text-slate-300 hover:bg-card/60"}`;function Ci({title:e,links:t}){return o.jsxs(o.Fragment,{children:[e&&o.jsx("div",{className:"px-5 pt-4 pb-1.5 text-[10px] font-semibold tracking-wider text-slate-500 uppercase",children:e}),t.map(({to:n,label:r,icon:a})=>o.jsxs(TT,{to:n,className:Lz,children:[o.jsx(a,{size:17}),r]},n))]})}function Bz(){const[e,t]=O.useState(xa);O.useEffect(()=>{const a=()=>{const l=xa();t(s=>s===l?s:l)},i=window.setInterval(a,800);return window.addEventListener("storage",a),()=>{window.clearInterval(i),window.removeEventListener("storage",a)}},[]);const n=$z.filter(a=>pl(a.min||"VIEWER",e)),r=Dz.filter(a=>pl(a.min||"VIEWER",e));return o.jsxs("aside",{className:"w-60 bg-panel border-r border-edge flex flex-col",children:[o.jsxs("div",{className:"h-16 flex items-center gap-2 px-5 border-b border-edge",children:[o.jsx(nz,{className:"text-brand",size:24}),o.jsxs("div",{children:[o.jsx("div",{className:"font-bold text-base leading-tight",children:"GUARDiA CMS"}),o.jsx("div",{className:"text-[11px] text-slate-400",children:"콘텐츠 관리 시스템"})]})]}),o.jsxs("nav",{className:"flex-1 py-2 overflow-auto",children:[o.jsx(Ci,{links:Mz}),o.jsx(Ci,{title:"사이트",links:kz}),o.jsx(Ci,{title:"참여 · 분석",links:Pz}),o.jsx("div",{className:"border-t border-edge mt-3",children:o.jsx(Ci,{title:"업무(UIWS)",links:Rz})}),r.length>0&&o.jsx("div",{className:"border-t border-edge mt-3",children:o.jsx(Ci,{title:"시스템관리(권한)",links:r})}),o.jsx("div",{className:"border-t border-edge mt-3",children:o.jsx(Ci,{title:"모바일",links:zz})}),n.length>0&&o.jsx("div",{className:"border-t border-edge mt-3",children:o.jsx(Ci,{title:"관리자",links:n})})]}),o.jsx("div",{className:"px-4 pt-3 border-t border-edge",children:o.jsx(lC,{})}),o.jsx("div",{className:"p-4 text-[11px] text-slate-500",children:"Ollama 온프레미스 · 헤드리스 CMS"})]})}function sC(e,t){return function(){return e.apply(t,arguments)}}const{toString:Iz}=Object.prototype,{getPrototypeOf:Rp}=Object,{iterator:Dp,toStringTag:oC}=Symbol,zp=(e=>t=>{const n=Iz.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),br=e=>(e=e.toLowerCase(),t=>zp(t)===e),Lp=e=>t=>typeof t===e,{isArray:ml}=Array,Fs=Lp("undefined");function Mo(e){return e!==null&&!Fs(e)&&e.constructor!==null&&!Fs(e.constructor)&&hn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const cC=br("ArrayBuffer");function Uz(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&cC(e.buffer),t}const Hz=Lp("string"),hn=Lp("function"),uC=Lp("number"),nf=e=>e!==null&&typeof e=="object",qz=e=>e===!0||e===!1,gd=e=>{if(zp(e)!=="object")return!1;const t=Rp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(oC in e)&&!(Dp in e)},Fz=e=>{if(!nf(e)||Mo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Gz=br("Date"),Vz=br("File"),Yz=e=>!!(e&&typeof e.uri<"u"),Kz=e=>e&&typeof e.getParts<"u",Xz=br("Blob"),Wz=br("FileList"),Qz=e=>nf(e)&&hn(e.pipe);function Zz(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const NS=Zz(),TS=typeof NS.FormData<"u"?NS.FormData:void 0,Jz=e=>{if(!e)return!1;if(TS&&e instanceof TS)return!0;const t=Rp(e);if(!t||t===Object.prototype||!hn(e.append))return!1;const n=zp(e);return n==="formdata"||n==="object"&&hn(e.toString)&&e.toString()==="[object FormData]"},e6=br("URLSearchParams"),[t6,n6,r6,a6]=["ReadableStream","Request","Response","Headers"].map(br),i6=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rf(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ml(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(Mo(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),l=i.length;let s;for(r=0;r<l;r++)s=i[r],t.call(null,e[s],s,e)}}function fC(e,t){if(Mo(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 Hi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,dC=e=>!Fs(e)&&e!==Hi;function og(...e){const{caseless:t,skipUndefined:n}=dC(this)&&this||{},r={},a=(i,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const s=t&&typeof l=="string"&&fC(r,l)||l,c=cg(r,s)?r[s]:void 0;gd(c)&&gd(i)?r[s]=og(c,i):gd(i)?r[s]=og({},i):ml(i)?r[s]=i.slice():(!n||!Fs(i))&&(r[s]=i)};for(let i=0,l=e.length;i<l;i++){const s=e[i];if(!s||Mo(s)||(rf(s,a),typeof s!="object"||ml(s)))continue;const c=Object.getOwnPropertySymbols(s);for(let u=0;u<c.length;u++){const f=c[u];v6.call(s,f)&&a(s[f],f)}}return r}const l6=(e,t,n,{allOwnKeys:r}={})=>(rf(t,(a,i)=>{n&&hn(a)?Object.defineProperty(e,i,{__proto__:null,value:sC(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),s6=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),o6=(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)},c6=(e,t,n,r)=>{let a,i,l;const s={};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))&&!s[l]&&(t[l]=e[l],s[l]=!0);e=n!==!1&&Rp(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},u6=(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},f6=e=>{if(!e)return null;if(ml(e))return e;let t=e.length;if(!uC(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},d6=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Rp(Uint8Array)),h6=(e,t)=>{const r=(e&&e[Dp]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},p6=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},m6=br("HTMLFormElement"),y6=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),cg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),{propertyIsEnumerable:v6}=Object.prototype,g6=br("RegExp"),hC=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};rf(n,(a,i)=>{let l;(l=t(a,i,e))!==!1&&(r[i]=l||a)}),Object.defineProperties(e,r)},b6=e=>{hC(e,(t,n)=>{if(hn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(hn(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+"'")})}})},x6=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return ml(e)?r(e):r(String(e).split(t)),n},j6=()=>{},S6=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function w6(e){return!!(e&&hn(e.append)&&e[oC]==="FormData"&&e[Dp])}const O6=e=>{const t=new WeakSet,n=r=>{if(nf(r)){if(t.has(r))return;if(Mo(r))return r;if(!("toJSON"in r)){t.add(r);const a=ml(r)?[]:{};return rf(r,(i,l)=>{const s=n(i);!Fs(s)&&(a[l]=s)}),t.delete(r),a}}return r};return n(e)},A6=br("AsyncFunction"),E6=e=>e&&(nf(e)||hn(e))&&hn(e.then)&&hn(e.catch),pC=((e,t)=>e?setImmediate:t?((n,r)=>(Hi.addEventListener("message",({source:a,data:i})=>{a===Hi&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),Hi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",hn(Hi.postMessage)),_6=typeof queueMicrotask<"u"?queueMicrotask.bind(Hi):typeof process<"u"&&process.nextTick||pC,N6=e=>e!=null&&hn(e[Dp]),P={isArray:ml,isArrayBuffer:cC,isBuffer:Mo,isFormData:Jz,isArrayBufferView:Uz,isString:Hz,isNumber:uC,isBoolean:qz,isObject:nf,isPlainObject:gd,isEmptyObject:Fz,isReadableStream:t6,isRequest:n6,isResponse:r6,isHeaders:a6,isUndefined:Fs,isDate:Gz,isFile:Vz,isReactNativeBlob:Yz,isReactNative:Kz,isBlob:Xz,isRegExp:g6,isFunction:hn,isStream:Qz,isURLSearchParams:e6,isTypedArray:d6,isFileList:Wz,forEach:rf,merge:og,extend:l6,trim:i6,stripBOM:s6,inherits:o6,toFlatObject:c6,kindOf:zp,kindOfTest:br,endsWith:u6,toArray:f6,forEachEntry:h6,matchAll:p6,isHTMLForm:m6,hasOwnProperty:cg,hasOwnProp:cg,reduceDescriptors:hC,freezeMethods:b6,toObjectSet:x6,toCamelCase:y6,noop:j6,toFiniteNumber:S6,findKey:fC,global:Hi,isContextDefined:dC,isSpecCompliantForm:w6,toJSONObject:O6,isAsyncFn:A6,isThenable:E6,setImmediate:pC,asap:_6,isIterable:N6},T6=P.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),C6=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]&&T6[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function M6(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 k6=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),P6=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function y0(e,t){return P.isArray(e)?e.map(n=>y0(n,t)):M6(String(e).replace(t,""))}const $6=e=>y0(e,k6),R6=e=>y0(e,P6);function mC(e){const t=Object.create(null);return P.forEach(e.toJSON(),(n,r)=>{t[r]=R6(n)}),t}const CS=Symbol("internals");function Jo(e){return e&&String(e).trim().toLowerCase()}function bd(e){return e===!1||e==null?e:P.isArray(e)?e.map(bd):$6(String(e))}function D6(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 z6=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function jy(e,t,n,r,a){if(P.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!P.isString(t)){if(P.isString(r))return t.indexOf(r)!==-1;if(P.isRegExp(r))return r.test(t)}}function L6(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function B6(e,t){const n=P.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 nn=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(s,c,u){const f=Jo(c);if(!f)return;const d=P.findKey(a,f);(!d||a[d]===void 0||u===!0||u===void 0&&a[d]!==!1)&&(a[d||c]=bd(s))}const l=(s,c)=>P.forEach(s,(u,f)=>i(u,f,c));if(P.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(P.isString(t)&&(t=t.trim())&&!z6(t))l(C6(t),n);else if(P.isObject(t)&&P.isIterable(t)){let s={},c,u;for(const f of t){if(!P.isArray(f))throw new TypeError("Object iterator must return a key-value pair");s[u=f[0]]=(c=s[u])?P.isArray(c)?[...c,f[1]]:[c,f[1]]:f[1]}l(s,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Jo(t),t){const r=P.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return D6(a);if(P.isFunction(n))return n.call(this,a,r);if(P.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Jo(t),t){const r=P.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=Jo(l),l){const s=P.findKey(r,l);s&&(!n||jy(r,r[s],s,n))&&(delete r[s],a=!0)}}return P.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||jy(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return P.forEach(this,(a,i)=>{const l=P.findKey(r,i);if(l){n[l]=bd(a),delete n[i];return}const s=t?L6(i):String(i).trim();s!==i&&delete n[i],n[s]=bd(a),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return P.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&P.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[CS]=this[CS]={accessors:{}}).accessors,a=this.prototype;function i(l){const s=Jo(l);r[s]||(B6(a,l),r[s]=!0)}return P.isArray(t)?t.forEach(i):i(t),this}};nn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(nn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});P.freezeMethods(nn);const I6="[REDACTED ****]";function U6(e){if(P.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(P.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function H6(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],a=i=>{if(i===null||typeof i!="object"||P.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof nn&&(i=i.toJSON()),r.push(i);let l;if(P.isArray(i))l=[],i.forEach((s,c)=>{const u=a(s);P.isUndefined(u)||(l[c]=u)});else{if(!P.isPlainObject(i)&&U6(i))return r.pop(),i;l=Object.create(null);for(const[s,c]of Object.entries(i)){const u=n.has(s.toLowerCase())?I6:a(c);P.isUndefined(u)||(l[s]=u)}}return r.pop(),l};return a(e)}let ie=class yC extends Error{static from(t,n,r,a,i,l){const s=new yC(t.message,n||t.code,r,a,i);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),l&&Object.assign(s,l),s}constructor(t,n,r,a,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),a&&(this.request=a),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&P.hasOwnProp(t,"redact")?t.redact:void 0,r=P.isArray(n)&&n.length>0?H6(t,n):P.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};ie.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ie.ERR_BAD_OPTION="ERR_BAD_OPTION";ie.ECONNABORTED="ECONNABORTED";ie.ETIMEDOUT="ETIMEDOUT";ie.ECONNREFUSED="ECONNREFUSED";ie.ERR_NETWORK="ERR_NETWORK";ie.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ie.ERR_DEPRECATED="ERR_DEPRECATED";ie.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ie.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ie.ERR_CANCELED="ERR_CANCELED";ie.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ie.ERR_INVALID_URL="ERR_INVALID_URL";ie.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const q6=null;function ug(e){return P.isPlainObject(e)||P.isArray(e)}function vC(e){return P.endsWith(e,"[]")?e.slice(0,-2):e}function Sy(e,t,n){return e?e.concat(t).map(function(a,i){return a=vC(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function F6(e){return P.isArray(e)&&!e.some(ug)}const G6=P.toFlatObject(P,{},null,function(t){return/^is[A-Z]/.test(t)});function Bp(e,t,n){if(!P.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=P.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,g){return!P.isUndefined(g[b])});const r=n.metaTokens,a=n.visitor||d,i=n.dots,l=n.indexes,s=n.Blob||typeof Blob<"u"&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,u=s&&P.isSpecCompliantForm(t);if(!P.isFunction(a))throw new TypeError("visitor must be a function");function f(v){if(v===null)return"";if(P.isDate(v))return v.toISOString();if(P.isBoolean(v))return v.toString();if(!u&&P.isBlob(v))throw new ie("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(v)||P.isTypedArray(v)?u&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,b,g){let j=v;if(P.isReactNative(t)&&P.isReactNativeBlob(v))return t.append(Sy(g,b,i),f(v)),!1;if(v&&!g&&typeof v=="object"){if(P.endsWith(b,"{}"))b=r?b:b.slice(0,-2),v=JSON.stringify(v);else if(P.isArray(v)&&F6(v)||(P.isFileList(v)||P.endsWith(b,"[]"))&&(j=P.toArray(v)))return b=vC(b),j.forEach(function(m,S){!(P.isUndefined(m)||m===null)&&t.append(l===!0?Sy([b],S,i):l===null?b:b+"[]",f(m))}),!1}return ug(v)?!0:(t.append(Sy(g,b,i),f(v)),!1)}const h=[],p=Object.assign(G6,{defaultVisitor:d,convertValue:f,isVisitable:ug});function y(v,b,g=0){if(!P.isUndefined(v)){if(g>c)throw new ie("Object is too deeply nested ("+g+" levels). Max depth: "+c,ie.ERR_FORM_DATA_DEPTH_EXCEEDED);if(h.indexOf(v)!==-1)throw new Error("Circular reference detected in "+b.join("."));h.push(v),P.forEach(v,function(x,m){(!(P.isUndefined(x)||x===null)&&a.call(t,x,P.isString(m)?m.trim():m,b,p))===!0&&y(x,b?b.concat(m):[m],g+1)}),h.pop()}}if(!P.isObject(e))throw new TypeError("data must be an object");return y(e),t}function MS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function v0(e,t){this._pairs=[],e&&Bp(e,this,t)}const gC=v0.prototype;gC.append=function(t,n){this._pairs.push([t,n])};gC.toString=function(t){const n=t?function(r){return t.call(this,r,MS)}:MS;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function V6(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function bC(e,t,n){if(!t)return e;const r=n&&n.encode||V6,a=P.isFunction(n)?{serialize:n}:n,i=a&&a.serialize;let l;if(i?l=i(t,a):l=P.isURLSearchParams(t)?t.toString():new v0(t,a).toString(r),l){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class kS{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){P.forEach(this.handlers,function(r){r!==null&&t(r)})}}const g0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},Y6=typeof URLSearchParams<"u"?URLSearchParams:v0,K6=typeof FormData<"u"?FormData:null,X6=typeof Blob<"u"?Blob:null,W6={isBrowser:!0,classes:{URLSearchParams:Y6,FormData:K6,Blob:X6},protocols:["http","https","file","blob","url","data"]},b0=typeof window<"u"&&typeof document<"u",fg=typeof navigator=="object"&&navigator||void 0,Q6=b0&&(!fg||["ReactNative","NativeScript","NS"].indexOf(fg.product)<0),Z6=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",J6=b0&&window.location.href||"http://localhost",eL=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:b0,hasStandardBrowserEnv:Q6,hasStandardBrowserWebWorkerEnv:Z6,navigator:fg,origin:J6},Symbol.toStringTag,{value:"Module"})),Ht={...eL,...W6};function tL(e,t){return Bp(e,new Ht.classes.URLSearchParams,{visitor:function(n,r,a,i){return Ht.isNode&&P.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function nL(e){return P.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function rL(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 xC(e){function t(n,r,a,i){let l=n[i++];if(l==="__proto__")return!0;const s=Number.isFinite(+l),c=i>=n.length;return l=!l&&P.isArray(a)?a.length:l,c?(P.hasOwnProp(a,l)?a[l]=P.isArray(a[l])?a[l].concat(r):[a[l],r]:a[l]=r,!s):((!P.hasOwnProp(a,l)||!P.isObject(a[l]))&&(a[l]=[]),t(n,r,a[l],i)&&P.isArray(a[l])&&(a[l]=rL(a[l])),!s)}if(P.isFormData(e)&&P.isFunction(e.entries)){const n={};return P.forEachEntry(e,(r,a)=>{t(nL(r),a,n,0)}),n}return null}const Ul=(e,t)=>e!=null&&P.hasOwnProp(e,t)?e[t]:void 0;function aL(e,t,n){if(P.isString(e))try{return(t||JSON.parse)(e),P.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const af={transitional:g0,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=P.isObject(t);if(i&&P.isHTMLForm(t)&&(t=new FormData(t)),P.isFormData(t))return a?JSON.stringify(xC(t)):t;if(P.isArrayBuffer(t)||P.isBuffer(t)||P.isStream(t)||P.isFile(t)||P.isBlob(t)||P.isReadableStream(t))return t;if(P.isArrayBufferView(t))return t.buffer;if(P.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){const c=Ul(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return tL(t,c).toString();if((s=P.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=Ul(this,"env"),f=u&&u.FormData;return Bp(s?{"files[]":t}:t,f&&new f,c)}}return i||a?(n.setContentType("application/json",!1),aL(t)):t}],transformResponse:[function(t){const n=Ul(this,"transitional")||af.transitional,r=n&&n.forcedJSONParsing,a=Ul(this,"responseType"),i=a==="json";if(P.isResponse(t)||P.isReadableStream(t))return t;if(t&&P.isString(t)&&(r&&!a||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,Ul(this,"parseReviver"))}catch(c){if(s)throw c.name==="SyntaxError"?ie.from(c,ie.ERR_BAD_RESPONSE,this,null,Ul(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ht.classes.FormData,Blob:Ht.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch","query"],e=>{af.headers[e]={}});function wy(e,t){const n=this||af,r=t||n,a=nn.from(r.headers);let i=r.data;return P.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function jC(e){return!!(e&&e.__CANCEL__)}let lf=class extends ie{constructor(t,n,r){super(t??"canceled",ie.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function SC(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ie("Request failed with status code "+n.status,n.status>=400&&n.status<500?ie.ERR_BAD_REQUEST:ie.ERR_BAD_RESPONSE,n.config,n.request,n))}function iL(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function lL(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 p=f&&u-f;return p?Math.round(h*1e3/p):void 0}}function sL(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 ah=(e,t,n=3)=>{let r=0;const a=lL(50,250);return sL(i=>{if(!i||typeof i.loaded!="number")return;const l=i.loaded,s=i.lengthComputable?i.total:void 0,c=s!=null?Math.min(l,s):l,u=Math.max(0,c-r),f=a(u);r=Math.max(r,c);const d={loaded:c,total:s,progress:s?c/s:void 0,bytes:u,rate:f||void 0,estimated:f&&s?(s-c)/f:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},PS=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},$S=e=>(...t)=>P.asap(()=>e(...t)),oL=Ht.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ht.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ht.origin),Ht.navigator&&/(msie|trident)/i.test(Ht.navigator.userAgent)):()=>!0,cL=Ht.hasStandardBrowserEnv?{write(e,t,n,r,a,i,l){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];P.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),P.isString(r)&&s.push(`path=${r}`),P.isString(a)&&s.push(`domain=${a}`),i===!0&&s.push("secure"),P.isString(l)&&s.push(`SameSite=${l}`),document.cookie=s.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 uL(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function fL(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wC(e,t,n){let r=!uL(t);return e&&(r||n===!1)?fL(e,t):t}const RS=e=>e instanceof nn?{...e}:e;function yl(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 P.isPlainObject(u)&&P.isPlainObject(f)?P.merge.call({caseless:h},u,f):P.isPlainObject(f)?P.merge({},f):P.isArray(f)?f.slice():f}function a(u,f,d,h){if(P.isUndefined(f)){if(!P.isUndefined(u))return r(void 0,u,d,h)}else return r(u,f,d,h)}function i(u,f){if(!P.isUndefined(f))return r(void 0,f)}function l(u,f){if(P.isUndefined(f)){if(!P.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function s(u,f,d){if(P.hasOwnProp(t,d))return r(u,f);if(P.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:s,headers:(u,f,d)=>a(RS(u),RS(f),d,!0)};return P.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const d=P.hasOwnProp(c,f)?c[f]:a,h=P.hasOwnProp(e,f)?e[f]:void 0,p=P.hasOwnProp(t,f)?t[f]:void 0,y=d(h,p,f);P.isUndefined(y)&&d!==s||(n[f]=y)}),n}const dL=["content-type","content-length"];function hL(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,a])=>{dL.includes(r.toLowerCase())&&e.set(r,a)})}const pL=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function OC(e){const t=yl({},e),n=h=>P.hasOwnProp(t,h)?t[h]:void 0,r=n("data");let a=n("withXSRFToken");const i=n("xsrfHeaderName"),l=n("xsrfCookieName");let s=n("headers");const c=n("auth"),u=n("baseURL"),f=n("allowAbsoluteUrls"),d=n("url");if(t.headers=s=nn.from(s),t.url=bC(wC(u,d,f),n("params"),n("paramsSerializer")),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?pL(c.password):""))),P.isFormData(r)&&(Ht.hasStandardBrowserEnv||Ht.hasStandardBrowserWebWorkerEnv||P.isReactNative(r)?s.setContentType(void 0):P.isFunction(r.getHeaders)&&hL(s,r.getHeaders(),n("formDataHeaderPolicy"))),Ht.hasStandardBrowserEnv&&(P.isFunction(a)&&(a=a(t)),a===!0||a==null&&oL(t.url))){const p=i&&l&&cL.read(l);p&&s.set(i,p)}return t}const mL=typeof XMLHttpRequest<"u",yL=mL&&function(e){return new Promise(function(n,r){const a=OC(e);let i=a.data;const l=nn.from(a.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:u}=a,f,d,h,p,y;function v(){p&&p(),y&&y(),a.cancelToken&&a.cancelToken.unsubscribe(f),a.signal&&a.signal.removeEventListener("abort",f)}let b=new XMLHttpRequest;b.open(a.method.toUpperCase(),a.url,!0),b.timeout=a.timeout;function g(){if(!b)return;const x=nn.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:x,config:e,request:b};SC(function(A){n(A),v()},function(A){r(A),v()},S),b=null}"onloadend"in b?b.onloadend=g:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.startsWith("file:"))||setTimeout(g)},b.onabort=function(){b&&(r(new ie("Request aborted",ie.ECONNABORTED,e,b)),v(),b=null)},b.onerror=function(m){const S=m&&m.message?m.message:"Network Error",w=new ie(S,ie.ERR_NETWORK,e,b);w.event=m||null,r(w),v(),b=null},b.ontimeout=function(){let m=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||g0;a.timeoutErrorMessage&&(m=a.timeoutErrorMessage),r(new ie(m,S.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,b)),v(),b=null},i===void 0&&l.setContentType(null),"setRequestHeader"in b&&P.forEach(mC(l),function(m,S){b.setRequestHeader(S,m)}),P.isUndefined(a.withCredentials)||(b.withCredentials=!!a.withCredentials),s&&s!=="json"&&(b.responseType=a.responseType),u&&([h,y]=ah(u,!0),b.addEventListener("progress",h)),c&&b.upload&&([d,p]=ah(c),b.upload.addEventListener("progress",d),b.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(f=x=>{b&&(r(!x||x.type?new lf(null,e,b):x),b.abort(),v(),b=null)},a.cancelToken&&a.cancelToken.subscribe(f),a.signal&&(a.signal.aborted?f():a.signal.addEventListener("abort",f)));const j=iL(a.url);if(j&&!Ht.protocols.includes(j)){r(new ie("Unsupported protocol "+j+":",ie.ERR_BAD_REQUEST,e));return}b.send(i||null)})},vL=(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 ie?u:new lf(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,a(new ie(`timeout of ${t}ms exceeded`,ie.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:s}=n;return s.unsubscribe=()=>P.asap(l),s},gL=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},bL=async function*(e,t){for await(const n of xL(e))yield*gL(n,t)},xL=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()}},DS=(e,t,n,r)=>{const a=bL(e,t);let i=0,l,s=c=>{l||(l=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:f}=await a.next();if(u){s(),c.close();return}let d=f.byteLength;if(n){let h=i+=d;n(h)}c.enqueue(new Uint8Array(f))}catch(u){throw s(u),u}},cancel(c){return s(c),a.return()}},{highWaterMark:2})};function jL(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 s=r.length;for(let p=0;p<s;p++)if(r.charCodeAt(p)===37&&p+2<s){const y=r.charCodeAt(p+1),v=r.charCodeAt(p+2);(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102)&&(v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102)&&(l-=2,p+=2)}let c=0,u=s-1;const f=p=>p>=2&&r.charCodeAt(p-2)===37&&r.charCodeAt(p-1)===51&&(r.charCodeAt(p)===68||r.charCodeAt(p)===100);u>=0&&(r.charCodeAt(u)===61?(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,s=r.length;l<s;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<s){const u=r.charCodeAt(l+1);u>=56320&&u<=57343?(i+=4,l++):i+=3}else i+=3}return i}const x0="1.17.0",zS=64*1024,{isFunction:zf}=P,SL=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),LS=e=>{if(!P.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},BS=(e,...t)=>{try{return!!e(...t)}catch{return!1}},wL=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},OL=e=>{const t=P.global!==void 0&&P.global!==null?P.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=P.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:l}=e,s=a?zf(a):typeof fetch=="function",c=zf(i),u=zf(l);if(!s)return!1;const f=s&&zf(n),d=s&&(typeof r=="function"?(g=>j=>g.encode(j))(new r):async g=>new Uint8Array(await new i(g).arrayBuffer())),h=c&&f&&BS(()=>{let g=!1;const j=new i(Ht.origin,{body:new n,method:"POST",get duplex(){return g=!0,"half"}}),x=j.headers.has("Content-Type");return j.body!=null&&j.body.cancel(),g&&!x}),p=u&&f&&BS(()=>P.isReadableStream(new l("").body)),y={stream:p&&(g=>g.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!y[g]&&(y[g]=(j,x)=>{let m=j&&j[g];if(m)return m.call(j);throw new ie(`Response type '${g}' is not supported`,ie.ERR_NOT_SUPPORT,x)})});const v=async g=>{if(g==null)return 0;if(P.isBlob(g))return g.size;if(P.isSpecCompliantForm(g))return(await new i(Ht.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(P.isArrayBufferView(g)||P.isArrayBuffer(g))return g.byteLength;if(P.isURLSearchParams(g)&&(g=g+""),P.isString(g))return(await d(g)).byteLength},b=async(g,j)=>{const x=P.toFiniteNumber(g.getContentLength());return x??v(j)};return async g=>{let{url:j,method:x,data:m,signal:S,cancelToken:w,timeout:A,onDownloadProgress:_,onUploadProgress:E,responseType:C,headers:k,withCredentials:M="same-origin",fetchOptions:I,maxContentLength:D,maxBodyLength:$}=OC(g);const T=P.isNumber(D)&&D>-1,z=P.isNumber($)&&$>-1,B=L=>P.hasOwnProp(g,L)?g[L]:void 0;let F=a||fetch;C=C?(C+"").toLowerCase():"text";let V=vL([S,w&&w.toAbortSignal()],A),Y=null;const K=V&&V.unsubscribe&&(()=>{V.unsubscribe()});let ae;try{let L;const Z=B("auth");if(Z){const ee=Z.username||"",G=Z.password||"";L={username:ee,password:G}}if(wL(j)){const ee=new URL(j,Ht.origin);if(!L&&(ee.username||ee.password)){const G=LS(ee.username),$e=LS(ee.password);L={username:G,password:$e}}(ee.username||ee.password)&&(ee.username="",ee.password="",j=ee.href)}if(L&&(k.delete("authorization"),k.set("Authorization","Basic "+btoa(SL((L.username||"")+":"+(L.password||""))))),T&&typeof j=="string"&&j.startsWith("data:")&&jL(j)>D)throw new ie("maxContentLength size of "+D+" exceeded",ie.ERR_BAD_RESPONSE,g,Y);if(z&&x!=="get"&&x!=="head"){const ee=await b(k,m);if(typeof ee=="number"&&isFinite(ee)&&ee>$)throw new ie("Request body larger than maxBodyLength limit",ie.ERR_BAD_REQUEST,g,Y)}if(E&&h&&x!=="get"&&x!=="head"&&(ae=await b(k,m))!==0){let ee=new i(j,{method:"POST",body:m,duplex:"half"}),G;if(P.isFormData(m)&&(G=ee.headers.get("content-type"))&&k.setContentType(G),ee.body){const[$e,be]=PS(ae,ah($S(E)));m=DS(ee.body,zS,$e,be)}}P.isString(M)||(M=M?"include":"omit");const ce=c&&"credentials"in i.prototype;if(P.isFormData(m)){const ee=k.getContentType();ee&&/^multipart\/form-data/i.test(ee)&&!/boundary=/i.test(ee)&&k.delete("content-type")}k.set("User-Agent","axios/"+x0,!1);const de={...I,signal:V,method:x.toUpperCase(),headers:mC(k.normalize()),body:m,duplex:"half",credentials:ce?M:void 0};Y=c&&new i(j,de);let Ye=await(c?F(Y,I):F(j,de));if(T){const ee=P.toFiniteNumber(Ye.headers.get("content-length"));if(ee!=null&&ee>D)throw new ie("maxContentLength size of "+D+" exceeded",ie.ERR_BAD_RESPONSE,g,Y)}const te=p&&(C==="stream"||C==="response");if(p&&Ye.body&&(_||T||te&&K)){const ee={};["status","statusText","headers"].forEach(mt=>{ee[mt]=Ye[mt]});const G=P.toFiniteNumber(Ye.headers.get("content-length")),[$e,be]=_&&PS(G,ah($S(_),!0))||[];let at=0;const ct=mt=>{if(T&&(at=mt,at>D))throw new ie("maxContentLength size of "+D+" exceeded",ie.ERR_BAD_RESPONSE,g,Y);$e&&$e(mt)};Ye=new l(DS(Ye.body,zS,ct,()=>{be&&be(),K&&K()}),ee)}C=C||"text";let oe=await y[P.findKey(y,C)||"text"](Ye,g);if(T&&!p&&!te){let ee;if(oe!=null&&(typeof oe.byteLength=="number"?ee=oe.byteLength:typeof oe.size=="number"?ee=oe.size:typeof oe=="string"&&(ee=typeof r=="function"?new r().encode(oe).byteLength:oe.length)),typeof ee=="number"&&ee>D)throw new ie("maxContentLength size of "+D+" exceeded",ie.ERR_BAD_RESPONSE,g,Y)}return!te&&K&&K(),await new Promise((ee,G)=>{SC(ee,G,{data:oe,headers:nn.from(Ye.headers),status:Ye.status,statusText:Ye.statusText,config:g,request:Y})})}catch(L){if(K&&K(),V&&V.aborted&&V.reason instanceof ie){const Z=V.reason;throw Z.config=g,Y&&(Z.request=Y),L!==Z&&(Z.cause=L),Z}throw L&&L.name==="TypeError"&&/Load failed|fetch/i.test(L.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,g,Y,L&&L.response),{cause:L.cause||L}):ie.from(L,L&&L.code,g,Y,L&&L.response)}}},AL=new Map,AC=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,i=[r,a,n];let l=i.length,s=l,c,u,f=AL;for(;s--;)c=i[s],u=f.get(c),u===void 0&&f.set(c,u=s?new Map:OL(t)),f=u;return u};AC();const j0={http:q6,xhr:yL,fetch:{get:AC}};P.forEach(j0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const IS=e=>`- ${e}`,EL=e=>P.isFunction(e)||e===null||e===!1;function _L(e,t){e=P.isArray(e)?e:[e];const{length:n}=e;let r,a;const i={};for(let l=0;l<n;l++){r=e[l];let s;if(a=r,!EL(r)&&(a=j0[(s=String(r)).toLowerCase()],a===void 0))throw new ie(`Unknown adapter '${s}'`);if(a&&(P.isFunction(a)||(a=a.get(t))))break;i[s||"#"+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 s=n?l.length>1?`since :
`+l.map(IS).join(`
`):" "+IS(l[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return a}const EC={getAdapter:_L,adapters:j0};function Oy(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new lf(null,e)}function US(e){return Oy(e),e.headers=nn.from(e.headers),e.data=wy.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),EC.getAdapter(e.adapter||af.adapter,e)(e).then(function(r){Oy(e),e.response=r;try{r.data=wy.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=nn.from(r.headers),r},function(r){if(!jC(r)&&(Oy(e),r&&r.response)){e.response=r.response;try{r.response.data=wy.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=nn.from(r.response.headers)}return Promise.reject(r)})}const Ip={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ip[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const HS={};Ip.transitional=function(t,n,r){function a(i,l){return"[Axios v"+x0+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,s)=>{if(t===!1)throw new ie(a(l," has been removed"+(n?" in "+n:"")),ie.ERR_DEPRECATED);return n&&!HS[l]&&(HS[l]=!0,console.warn(a(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,s):!0}};Ip.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function NL(e,t,n){if(typeof e!="object")throw new ie("options must be an object",ie.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 s=e[i],c=s===void 0||l(s,i,e);if(c!==!0)throw new ie("option "+i+" must be "+c,ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ie("Unknown option "+i,ie.ERR_BAD_OPTION)}}const xd={assertOptions:NL,validators:Ip},on=xd.validators;let il=class{constructor(t){this.defaults=t||{},this.interceptors={request:new kS,response:new kS}}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(`
`),s=l===-1?-1:i.indexOf(`
`,l+1),c=s===-1?"":i.slice(s+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=yl(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&xd.assertOptions(r,{silentJSONParsing:on.transitional(on.boolean),forcedJSONParsing:on.transitional(on.boolean),clarifyTimeoutError:on.transitional(on.boolean),legacyInterceptorReqResOrdering:on.transitional(on.boolean),advertiseZstdAcceptEncoding:on.transitional(on.boolean)},!1),a!=null&&(P.isFunction(a)?n.paramsSerializer={serialize:a}:xd.assertOptions(a,{encode:on.function,serialize:on.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),xd.assertOptions(n,{baseUrl:on.spelling("baseURL"),withXsrfToken:on.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&P.merge(i.common,i[n.method]);i&&P.forEach(["delete","get","head","post","put","patch","query","common"],y=>{delete i[y]}),n.headers=nn.concat(l,i);const s=[];let c=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;c=c&&v.synchronous;const b=n.transitional||g0;b&&b.legacyInterceptorReqResOrdering?s.unshift(v.fulfilled,v.rejected):s.push(v.fulfilled,v.rejected)});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let f,d=0,h;if(!c){const y=[US.bind(this),void 0];for(y.unshift(...s),y.push(...u),h=y.length,f=Promise.resolve(n);d<h;)f=f.then(y[d++],y[d++]);return f}h=s.length;let p=n;for(;d<h;){const y=s[d++],v=s[d++];try{p=y(p)}catch(b){v.call(this,b);break}}try{f=US.call(this,p)}catch(y){return Promise.reject(y)}for(d=0,h=u.length;d<h;)f=f.then(u[d++],u[d++]);return f}getUri(t){t=yl(this.defaults,t);const n=wC(t.baseURL,t.url,t.allowAbsoluteUrls);return bC(n,t.params,t.paramsSerializer)}};P.forEach(["delete","get","head","options"],function(t){il.prototype[t]=function(n,r){return this.request(yl(r||{},{method:t,url:n,data:(r||{}).data}))}});P.forEach(["post","put","patch","query"],function(t){function n(r){return function(i,l,s){return this.request(yl(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}il.prototype[t]=n(),t!=="query"&&(il.prototype[t+"Form"]=n(!0))});let TL=class _C{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(s=>{r.subscribe(s),i=s}).then(a);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,s){r.reason||(r.reason=new lf(i,l,s),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 _C(function(a){t=a}),cancel:t}}};function CL(e){return function(n){return e.apply(null,n)}}function ML(e){return P.isObject(e)&&e.isAxiosError===!0}const dg={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(dg).forEach(([e,t])=>{dg[t]=e});function NC(e){const t=new il(e),n=sC(il.prototype.request,t);return P.extend(n,il.prototype,t,{allOwnKeys:!0}),P.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return NC(yl(e,a))},n}const pt=NC(af);pt.Axios=il;pt.CanceledError=lf;pt.CancelToken=TL;pt.isCancel=jC;pt.VERSION=x0;pt.toFormData=Bp;pt.AxiosError=ie;pt.Cancel=pt.CanceledError;pt.all=function(t){return Promise.all(t)};pt.spread=CL;pt.isAxiosError=ML;pt.mergeConfig=yl;pt.AxiosHeaders=nn;pt.formToJSON=e=>xC(P.isHTMLForm(e)?new FormData(e):e);pt.getAdapter=EC.getAdapter;pt.HttpStatusCode=dg;pt.default=pt;const{Axios:Qpe,AxiosError:Zpe,CanceledError:Jpe,isCancel:eme,CancelToken:tme,VERSION:nme,all:rme,Cancel:ame,isAxiosError:ime,spread:lme,toFormData:sme,AxiosHeaders:ome,HttpStatusCode:cme,formToJSON:ume,getAdapter:fme,mergeConfig:dme,create:hme}=pt,R=pt.create({baseURL:"http://localhost:8012"});R.interceptors.request.use(e=>{const t=localStorage.getItem("cms_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});R.interceptors.response.use(e=>e,e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem("cms_token"),location.pathname!=="/login"&&(location.href="/login")),Promise.reject(e)});const ne=e=>e.then(t=>{var n;return(n=t.data)==null?void 0:n.data}),Tl=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}`:""},kL=(e,t)=>R.post("/api/cms/auth/login",{username:e,password:t}),S0=()=>R.get("/api/cms/auth/me"),PL=()=>R.post("/api/cms/auth/otp/setup"),$L=e=>R.post("/api/cms/auth/otp/confirm",{code:e}),RL=()=>R.post("/api/cms/auth/otp/disable"),DL=(e,t)=>R.post("/api/cms/auth/change-password",{currentPassword:e,newPassword:t}),zL=()=>ne(R.get("/api/cms/dashboard/summary")),LL=()=>ne(R.get("/api/cms/dashboard/workflow")),BL=()=>ne(R.get("/api/cms/dashboard/top-content")),IL=(e={})=>ne(R.get(`/api/cms/content${Tl(e)}`)),UL=e=>ne(R.get(`/api/cms/content/${e}`)),HL=e=>ne(R.get(`/api/cms/content/${e}/versions`)),qL=e=>ne(R.post("/api/cms/content",e)),FL=(e,t)=>ne(R.put(`/api/cms/content/${e}`,t)),GL=e=>R.delete(`/api/cms/content/${e}`),qS=(e,t)=>ne(R.post(`/api/cms/content/${e}/transition`,t)),VL=(e,t)=>ne(R.post(`/api/cms/content/${e}/rollback`,{version:t})),YL=(e={})=>ne(R.get(`/api/cms/product${Tl(e)}`)),KL=e=>ne(R.get(`/api/cms/product/${e}`)),XL=e=>ne(R.post("/api/cms/product",e)),WL=(e,t)=>ne(R.put(`/api/cms/product/${e}`,t)),QL=e=>ne(R.post(`/api/cms/product/${e}/publish`)),ZL=(e,t)=>ne(R.post("/api/cms/product/ai-draft",{topic:e,tone:t})),JL=e=>ne(R.get(`/api/cms/product/ocr-extract/${e}`)),e8=e=>R.delete(`/api/cms/product/${e}`),t8=(e={})=>ne(R.get(`/api/cms/banner${Tl(e)}`)),n8=e=>ne(R.post("/api/cms/banner",e)),r8=(e,t)=>ne(R.put(`/api/cms/banner/${e}`,t)),a8=e=>R.delete(`/api/cms/banner/${e}`),i8=(e={})=>ne(R.get(`/api/cms/media${Tl(e)}`)),l8=e=>ne(R.post("/api/cms/media",e)),s8=(e,t)=>ne(R.post(`/api/cms/media/${e}/auto-tag`,{imageBase64:t})),o8=(e,t)=>ne(R.put(`/api/cms/media/${e}/meta`,t)),c8=e=>R.delete(`/api/cms/media/${e}`),u8=(e="")=>ne(R.get(`/api/cms/menu${e?`?menuType=${e}`:""}`)),f8=(e="")=>ne(R.get(`/api/cms/menu/tree${e?`?menuType=${e}`:""}`)),d8=e=>ne(R.post("/api/cms/menu",e)),h8=(e,t)=>ne(R.put(`/api/cms/menu/${e}`,t)),p8=e=>R.delete(`/api/cms/menu/${e}`),m8=(e="")=>ne(R.get(`/api/cms/menu/sitemap${e?`?baseUrl=${encodeURIComponent(e)}`:""}`)),y8=()=>ne(R.get("/api/cms/theme")),v8=e=>ne(R.post("/api/cms/theme",e)),g8=(e,t)=>ne(R.put(`/api/cms/theme/${e}`,t)),b8=e=>ne(R.post(`/api/cms/theme/${e}/activate`)),x8=e=>R.delete(`/api/cms/theme/${e}`),j8=()=>ne(R.get("/api/cms/i18n/locales")),S8=(e="")=>ne(R.get(`/api/cms/i18n/resources${e?`?locale=${e}`:""}`)),w8=e=>ne(R.post("/api/cms/i18n/resources",e)),O8=e=>R.delete(`/api/cms/i18n/resources/${e}`),A8=(e,t)=>ne(R.post("/api/cms/i18n/translate",{text:e,targetLocale:t})),E8=(e,t)=>ne(R.post("/api/cms/i18n/translate-batch",{sourceLocale:e,targetLocale:t})),_8=()=>ne(R.get("/api/cms/seo/meta")),N8=e=>ne(R.post("/api/cms/seo/meta",e)),T8=(e,t)=>ne(R.put(`/api/cms/seo/meta/${e}`,t)),C8=e=>R.delete(`/api/cms/seo/meta/${e}`),M8=()=>ne(R.get("/api/cms/seo/redirect")),k8=e=>ne(R.post("/api/cms/seo/redirect",e)),P8=e=>R.delete(`/api/cms/seo/redirect/${e}`),$8=(e="")=>ne(R.get(`/api/cms/seo/robots${e?`?baseUrl=${encodeURIComponent(e)}`:""}`)),R8=(e,t)=>ne(R.post("/api/cms/seo/ai-suggest",{title:e,body:t})),D8=()=>ne(R.get("/api/cms/form")),z8=e=>ne(R.post("/api/cms/form",e)),L8=(e,t)=>ne(R.put(`/api/cms/form/${e}`,t)),B8=e=>R.delete(`/api/cms/form/${e}`),I8=(e,t=!1)=>ne(R.get(`/api/cms/form/${e}/submissions${t?"?includeSpam=true":""}`)),U8=()=>ne(R.get("/api/cms/channel")),H8=e=>ne(R.post("/api/cms/channel",e)),q8=(e,t)=>ne(R.put(`/api/cms/channel/${e}`,t)),F8=e=>R.delete(`/api/cms/channel/${e}`),G8=(e={})=>ne(R.get(`/api/cms/ugc${Tl(e)}`)),V8=()=>ne(R.get("/api/cms/ugc/queue")),FS=(e,t,n="")=>ne(R.put(`/api/cms/ugc/${e}/moderate`,{status:t,reason:n})),Y8=e=>ne(R.get(`/api/cms/ugc/review-summary${e?`?targetRef=${encodeURIComponent(e)}`:""}`)),K8=e=>R.delete(`/api/cms/ugc/${e}`),X8=(e={})=>ne(R.get(`/api/cms/member${Tl(e)}`)),W8=e=>ne(R.post("/api/cms/member",e)),Q8=(e,t)=>ne(R.put(`/api/cms/member/${e}`,t)),Z8=e=>ne(R.get(`/api/cms/member/${e}/crm-insight`)),J8=e=>R.delete(`/api/cms/member/${e}`),eB=(e=10)=>ne(R.get(`/api/cms/analytics/top?limit=${e}`)),tB=()=>ne(R.get("/api/cms/analytics/summary")),TC=()=>ne(R.get("/api/cms/ai/status")),CC=(e,t,n)=>ne(R.post("/api/cms/ai/draft",{kind:e,topic:t,tone:n})),MC=(e,t)=>ne(R.post("/api/cms/ai/seo",{title:e,body:t})),nB=(e,t)=>ne(R.post("/api/cms/ai/translate",{text:e,targetLocale:t})),rB=e=>ne(R.post("/api/cms/ai/review-summary",{reviews:e})),aB=e=>ne(R.post("/api/cms/ai/search-keywords",{query:e})),iB=e=>ne(R.post("/api/cms/ai/moderate",{text:e})),lB=()=>ne(R.get("/api/cms/rag/toggles")),sB=(e,t)=>ne(R.put(`/api/cms/rag/toggles/${encodeURIComponent(e)}`,{value:t})),oB=(e,t,n)=>ne(R.post("/api/cms/rag/content-draft",{kind:e,topic:t,tone:n})),cB=e=>ne(R.post("/api/cms/rag/moderate",{text:e})),uB=()=>R.get("/api/admin/users"),fB=e=>R.post("/api/admin/users",e),dB=(e,t)=>R.put(`/api/admin/users/${e}/role`,{role:t}),hB=(e,t)=>R.put(`/api/admin/users/${e}/active`,{active:t}),pB=(e,t)=>R.put(`/api/admin/users/${e}/password`,{password:t}),mB=e=>R.delete(`/api/admin/users/${e}`),yB=e=>R.post(`/api/admin/users/${e}/otp-reset`),vB=(e="",t="",n=100)=>R.get(`/api/admin/audit${Tl({action:e,actor:t,limit:n})}`),gB=()=>R.get("/api/admin/settings"),bB=(e,t)=>R.put(`/api/admin/settings/${encodeURIComponent(e)}`,{value:t});function xB(){const e=To(),t=localStorage.getItem("cms_user")||"admin",n=localStorage.getItem("cms_role")||"",[r,a]=O.useState(null);O.useEffect(()=>{TC().then(l=>a(!!(l!=null&&l.ollamaAvailable))).catch(()=>a(!1))},[]);const i=()=>{localStorage.removeItem("cms_token"),localStorage.removeItem("cms_role"),localStorage.removeItem("cms_user"),e("/login")};return o.jsxs("header",{className:"h-16 bg-panel border-b border-edge flex items-center justify-between px-6",children:[o.jsx("div",{className:"text-sm text-slate-400",children:"AI 콘텐츠 관리 시스템 · 헤드리스 CMS · Ollama 온프레미스"}),o.jsxs("div",{className:"flex items-center gap-4",children:[o.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:[o.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${r?"bg-accent":"bg-slate-500"}`}),"AI ",r===null?"확인 중":r?"온라인":"폴백"]}),o.jsxs(Mp,{to:"/mypage",className:"flex items-center gap-1.5 text-sm text-slate-300 hover:text-brand",title:"마이페이지",children:[o.jsx(K5,{size:18})," ",t,n&&o.jsxs("span",{className:"text-[11px] text-slate-500",children:["(",n,")"]})]}),o.jsxs("button",{onClick:i,className:"flex items-center gap-1.5 text-sm text-slate-400 hover:text-brand",children:[o.jsx(uz,{size:16})," 로그아웃"]})]})]})}function jB(){const e=localStorage.getItem("cms_token");return O.useEffect(()=>{e&&S0().then(t=>{var r;const n=((r=t.data)==null?void 0:r.data)||{};n.role&&localStorage.setItem("cms_role",n.role),n.username&&localStorage.setItem("cms_user",n.username)}).catch(()=>{})},[e]),e?o.jsxs("div",{className:"flex h-screen bg-ink",children:[o.jsx(Bz,{}),o.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[o.jsx(xB,{}),o.jsx("main",{className:"flex-1 overflow-auto p-6",children:o.jsx(S4,{})})]})]}):o.jsx(ET,{to:"/login",replace:!0})}function Sr({min:e,children:t}){const[n,r]=O.useState(xa());return O.useEffect(()=>{const a=window.setInterval(()=>{const i=xa();r(l=>l===i?l:i)},500);return()=>window.clearInterval(a)},[]),pl(e,n)?o.jsx(o.Fragment,{children:t}):o.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center",children:[o.jsx(p0,{size:48,className:"text-rose-400 mb-4"}),o.jsx("h2",{className:"text-lg font-bold mb-1",children:"접근 권한이 없습니다"}),o.jsxs("p",{className:"text-sm text-slate-400",children:["이 화면은 ",o.jsx("b",{className:"text-brand",children:e})," 이상 권한이 필요합니다. (현재: ",n,")"]})]})}const SB=(e,t)=>R.post("/api/cms/auth/verify",{verifyToken:e,code:t}),wB=(e,t)=>R.post("/api/cms/auth/verify-otp",{verifyToken:e,code:t}),OB=e=>R.post("/api/auth/signup",e),AB=e=>R.post("/api/auth/find-id",e),EB=e=>R.post("/api/auth/reset-password",e),_B=e=>R.post("/api/messages",e),NB=e=>R.get("/api/messages/sent",{params:e}),TB=e=>R.get(`/api/messages/sent/${e}`),CB=e=>R.get("/api/messages/received",{params:e}),MB=e=>R.get(`/api/messages/received/${e}`),kB=e=>R.get("/api/schedules",{params:e}),PB=e=>R.post("/api/schedules",e),$B=e=>R.get(`/api/schedules/${e}`),RB=e=>R.delete(`/api/schedules/${e}`),DB=e=>R.get("/api/worklogs",{params:e}),zB=e=>R.get("/api/worklogs/dashboard/progress",{params:e}),LB=e=>R.post("/api/worklogs",e),BB=e=>R.get(`/api/worklogs/${e}`),IB=e=>R.delete(`/api/worklogs/${e}`),UB=(e,t)=>R.post(`/api/worklogs/${e}/comments`,{cmtContent:t}),HB=e=>R.get("/api/stats/personal-work",{params:e}),qB=e=>R.get("/api/stats/company-work",{params:e}),FB=(e,t=0,n=100)=>R.get("/api/system/roles",{params:{...e?{keyword:e}:{},page:t,size:n}}),GB=e=>R.post("/api/system/roles",e),VB=(e,t)=>R.put(`/api/system/roles/${encodeURIComponent(e)}`,t),YB=e=>R.delete("/api/system/roles",{data:{ids:e}}),KB=(e=0,t=100)=>R.get("/api/system/role-menus",{params:{page:e,size:t}}),XB=e=>R.get(`/api/system/roles/${encodeURIComponent(e)}/menus`),WB=(e,t)=>R.put(`/api/system/roles/${encodeURIComponent(e)}/menus`,{menus:t}),QB=(e,t=0,n=100)=>R.get("/api/system/codes",{params:{...e?{keyword:e}:{},page:t,size:n}}),ZB=e=>R.get(`/api/system/codes/${encodeURIComponent(e)}`),JB=e=>R.post("/api/system/codes",e),eI=(e,t)=>R.put(`/api/system/codes/${encodeURIComponent(e)}`,t),tI=e=>R.delete(`/api/system/codes/${encodeURIComponent(e)}`),nI=(e=0,t=200)=>R.get("/api/system/menus",{params:{page:e,size:t}}),rI=e=>R.get("/api/system/menus/search",{params:e?{keyword:e}:{}}),aI=e=>R.post("/api/system/menus",e),iI=(e,t)=>R.put(`/api/system/menus/${encodeURIComponent(e)}`,t),lI=e=>R.delete("/api/system/menus",{data:{ids:e}}),sI=(e,t=0,n=200)=>R.get("/api/system/depts",{params:{...e?{keyword:e}:{},page:t,size:n}}),oI=e=>R.post("/api/system/depts",e),cI=(e,t)=>R.put(`/api/system/depts/${encodeURIComponent(e)}`,t),uI=e=>R.delete(`/api/system/depts/${encodeURIComponent(e)}`),fI=(e,t=0,n=200)=>R.get("/api/system/companies",{params:{...e?{keyword:e}:{},page:t,size:n}}),dI=e=>R.post("/api/system/companies",e),hI=(e,t)=>R.put(`/api/system/companies/${encodeURIComponent(e)}`,t),pI=e=>R.delete("/api/system/companies",{data:{ids:e}}),Za="w-full mb-3 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none",Ja="block text-xs text-slate-400 mb-1";function mI({kind:e,onClose:t}){return e?o.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-4",onClick:t,children:o.jsxs("div",{className:"w-[360px] bg-panel border border-edge rounded-2xl p-6",onClick:n=>n.stopPropagation(),children:[e==="signup"&&o.jsx(yI,{onClose:t}),e==="findId"&&o.jsx(vI,{onClose:t}),e==="reset"&&o.jsx(gI,{onClose:t})]})}):null}function w0({title:e}){return o.jsx("h3",{className:"text-base font-bold mb-4 text-slate-100",children:e})}function O0({onClose:e}){return o.jsx("button",{type:"button",onClick:e,className:"w-full py-2 mt-2 rounded-lg text-slate-400 text-xs hover:text-slate-200",children:"닫기"})}function yI({onClose:e}){const[t,n]=O.useState(""),[r,a]=O.useState(""),[i,l]=O.useState(""),[s,c]=O.useState(""),[u,f]=O.useState(""),[d,h]=O.useState(!1),[p,y]=O.useState(!1),v=async b=>{var g;b.preventDefault(),f(""),y(!0);try{const x=((g=(await OB({username:t,password:r,displayName:i,email:s})).data)==null?void 0:g.data)||{};h(!!x.success),f(x.message||(x.success?"가입 신청이 접수되었습니다.":"가입 신청에 실패했습니다."))}catch{h(!1),f("가입 신청에 실패했습니다. 입력값을 확인하세요.")}finally{y(!1)}};return o.jsxs("form",{onSubmit:v,children:[o.jsx(w0,{title:"운영자 회원가입"}),o.jsx("p",{className:"text-[11px] text-slate-500 mb-4",children:"가입 후 관리자 승인을 거쳐야 로그인할 수 있습니다."}),o.jsx("label",{className:Ja,children:"아이디"}),o.jsx("input",{value:t,onChange:b=>n(b.target.value),className:Za,required:!0}),o.jsx("label",{className:Ja,children:"비밀번호"}),o.jsx("input",{type:"password",value:r,onChange:b=>a(b.target.value),className:Za,required:!0}),o.jsx("label",{className:Ja,children:"이름(표시명)"}),o.jsx("input",{value:i,onChange:b=>l(b.target.value),className:Za}),o.jsx("label",{className:Ja,children:"이메일"}),o.jsx("input",{type:"email",value:s,onChange:b=>c(b.target.value),className:Za,required:!0}),u&&o.jsx("p",{className:`text-xs mb-3 ${d?"text-emerald-400":"text-rose-400"}`,children:u}),!d&&o.jsx("button",{disabled:p,className:"w-full py-2.5 rounded-lg bg-brand text-ink font-semibold hover:bg-brand/90 disabled:opacity-60",children:p?"신청 중…":"가입 신청"}),o.jsx(O0,{onClose:e})]})}function vI({onClose:e}){const[t,n]=O.useState(""),[r,a]=O.useState(""),[i,l]=O.useState(null),[s,c]=O.useState(""),[u,f]=O.useState(!1),d=async h=>{var p;h.preventDefault(),c(""),l(null),f(!0);try{const v=((p=(await AB({displayName:t,email:r})).data)==null?void 0:p.data)||{};v.found?l(v.maskedUsername||""):c("일치하는 계정을 찾지 못했습니다. 이름·이메일을 확인하세요.")}catch{c("조회에 실패했습니다.")}finally{f(!1)}};return o.jsxs("form",{onSubmit:d,children:[o.jsx(w0,{title:"아이디 찾기"}),o.jsx("p",{className:"text-[11px] text-slate-500 mb-4",children:"가입 시 등록한 이름과 이메일로 아이디를 찾습니다."}),o.jsx("label",{className:Ja,children:"이름(표시명)"}),o.jsx("input",{value:t,onChange:h=>n(h.target.value),className:Za,required:!0}),o.jsx("label",{className:Ja,children:"이메일"}),o.jsx("input",{type:"email",value:r,onChange:h=>a(h.target.value),className:Za,required:!0}),i!==null&&o.jsxs("p",{className:"text-xs mb-3 text-emerald-400",children:["회원님의 아이디: ",o.jsx("span",{className:"font-mono tracking-wider",children:i})]}),s&&o.jsx("p",{className:"text-rose-400 text-xs mb-3",children:s}),o.jsx("button",{disabled:u,className:"w-full py-2.5 rounded-lg bg-brand text-ink font-semibold hover:bg-brand/90 disabled:opacity-60",children:u?"조회 중…":"아이디 찾기"}),o.jsx(O0,{onClose:e})]})}function gI({onClose:e}){const[t,n]=O.useState(""),[r,a]=O.useState(""),[i,l]=O.useState(""),[s,c]=O.useState(!1),[u,f]=O.useState(!1),d=async h=>{var p;h.preventDefault(),l(""),f(!0);try{const v=((p=(await EB({username:t,email:r})).data)==null?void 0:p.data)||{};c(!!v.success),l(v.message||"임시 비밀번호를 이메일로 발송했습니다.")}catch{c(!1),l("요청에 실패했습니다. 입력값을 확인하세요.")}finally{f(!1)}};return o.jsxs("form",{onSubmit:d,children:[o.jsx(w0,{title:"비밀번호 초기화"}),o.jsx("p",{className:"text-[11px] text-slate-500 mb-4",children:"아이디와 이메일을 확인 후 임시 비밀번호를 메일로 보내드립니다."}),o.jsx("label",{className:Ja,children:"아이디"}),o.jsx("input",{value:t,onChange:h=>n(h.target.value),className:Za,required:!0}),o.jsx("label",{className:Ja,children:"이메일"}),o.jsx("input",{type:"email",value:r,onChange:h=>a(h.target.value),className:Za,required:!0}),i&&o.jsx("p",{className:`text-xs mb-3 ${s?"text-emerald-400":"text-rose-400"}`,children:i}),!s&&o.jsx("button",{disabled:u,className:"w-full py-2.5 rounded-lg bg-brand text-ink font-semibold hover:bg-brand/90 disabled:opacity-60",children:u?"요청 중…":"임시 비밀번호 발송"}),o.jsx(O0,{onClose:e})]})}function bI(){const[e,t]=O.useState("login"),[n,r]=O.useState("admin"),[a,i]=O.useState(""),[l,s]=O.useState(""),[c,u]=O.useState(""),[f,d]=O.useState("EMAIL"),[h,p]=O.useState(""),[y,v]=O.useState(""),[b,g]=O.useState(""),[j,x]=O.useState(""),[m,S]=O.useState(!1),[w,A]=O.useState(null),_=To(),E=f==="OTP"||f==="OTP_SETUP",C=f==="OTP_SETUP",k=async $=>{var T;localStorage.setItem("cms_token",$);try{const B=((T=(await S0()).data)==null?void 0:T.data)||{};B.role&&localStorage.setItem("cms_role",B.role),B.username&&localStorage.setItem("cms_user",B.username)}catch{}_("/dashboard")},M=async $=>{var T;$.preventDefault(),x(""),S(!0);try{const B=((T=(await kL(n,a)).data)==null?void 0:T.data)||{};if(B.twofa==="true")u(B.verifyToken||""),d(B.verifyMethod||"EMAIL"),p(B.maskedEmail||""),v(B.qrImage||""),g(B.secret||""),s(""),t("verify");else{const F=B.token;if(!F)throw new Error("no token");await k(F)}}catch{x("로그인 실패 — 아이디/비밀번호를 확인하세요.")}finally{S(!1)}},I=async $=>{var T,z;$.preventDefault(),x(""),S(!0);try{const F=(z=(T=(E?await wB(c,l.trim()):await SB(c,l.trim())).data)==null?void 0:T.data)==null?void 0:z.token;if(!F)throw new Error("no token");await k(F)}catch{x("인증 실패 — 코드가 올바르지 않거나 만료되었습니다.")}finally{S(!1)}},D=()=>{t("login"),s(""),x(""),v(""),g("")};return o.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-ink",children:[o.jsxs("form",{onSubmit:e==="login"?M:I,className:"w-[360px] bg-panel border border-edge rounded-2xl p-8",children:[o.jsxs("div",{className:"flex items-center gap-2 justify-center mb-6",children:[o.jsx("img",{src:"/login.png",alt:"GUARDiA",style:{height:36,width:"auto"},onError:$=>{$.target.style.display="none"}}),o.jsx("span",{className:"text-xl font-bold",children:"GUARDiA CMS"})]}),e==="login"?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-center text-sm text-slate-400 mb-6",children:"AI 콘텐츠 관리 시스템"}),o.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"아이디"}),o.jsx("input",{value:n,onChange:$=>r($.target.value),autoComplete:"username",className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none"}),o.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"비밀번호"}),o.jsx("input",{type:"password",value:a,onChange:$=>i($.target.value),autoComplete:"current-password",className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none"}),j&&o.jsx("p",{className:"text-rose-400 text-xs mb-3",children:j}),o.jsx("button",{disabled:m,className:"w-full py-2.5 rounded-lg bg-brand text-ink font-semibold hover:bg-brand/90 disabled:opacity-60",children:m?"로그인 중…":"로그인"}),o.jsx("p",{className:"text-center text-[11px] text-slate-500 mt-4",children:"admin / editor / author · admin123"}),o.jsxs("div",{className:"flex items-center justify-center gap-2 text-[11px] text-slate-400 mt-3",children:[o.jsx("button",{type:"button",onClick:()=>A("signup"),className:"hover:text-brand",children:"회원가입"}),o.jsx("span",{className:"text-slate-600",children:"|"}),o.jsx("button",{type:"button",onClick:()=>A("findId"),className:"hover:text-brand",children:"아이디 찾기"}),o.jsx("span",{className:"text-slate-600",children:"|"}),o.jsx("button",{type:"button",onClick:()=>A("reset"),className:"hover:text-brand",children:"비밀번호 초기화"})]})]}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"flex items-center gap-2 justify-center mb-4",children:[o.jsx(qs,{size:20,className:"text-brand"}),o.jsx("span",{className:"text-lg font-bold",children:"2차 인증"})]}),E?C?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-center text-sm text-slate-400 mb-3",children:"최초 로그인입니다. 아래 QR을 Authenticator 앱(Google·Microsoft)으로 스캔해 등록한 뒤 6자리 코드를 입력하세요."}),y&&o.jsx("div",{className:"flex justify-center mb-3",children:o.jsx("img",{src:y,alt:"OTP QR",width:180,height:180,style:{background:"#fff",padding:8,borderRadius:8}})}),b&&o.jsxs("div",{className:"mb-4",children:[o.jsx("div",{className:"text-[11px] text-slate-500 mb-1",children:"QR 스캔이 안 되면 수동 입력 키"}),o.jsx("code",{className:"block text-xs text-accent bg-ink border border-edge rounded-md px-2 py-1.5 break-all select-all",children:b})]})]}):o.jsx("p",{className:"text-center text-sm text-slate-400 mb-6",children:"Authenticator 앱에 표시된 6자리 코드를 입력하세요."}):o.jsxs("p",{className:"text-center text-xs text-slate-400 mb-4",children:["이메일로 발송된 6자리 인증 코드를 입력하세요",h?` (${h})`:"","."]}),o.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"인증 코드"}),o.jsx("input",{value:l,onChange:$=>s($.target.value.replace(/\D/g,"").slice(0,6)),inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,autoFocus:!0,placeholder:"000000",className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm tracking-[0.4em] text-center focus:border-brand outline-none"}),j&&o.jsx("p",{className:"text-rose-400 text-xs mb-3",children:j}),o.jsx("button",{disabled:m||l.length!==6,className:"w-full py-2.5 rounded-lg bg-brand text-ink font-semibold hover:bg-brand/90 disabled:opacity-60",children:m?"인증 중…":C?"등록하고 로그인":"인증 확인"}),o.jsx("button",{type:"button",onClick:D,className:"w-full py-2 mt-2 rounded-lg text-slate-400 text-xs hover:text-slate-200",children:"← 로그인으로 돌아가기"})]})]}),o.jsx(mI,{kind:w,onClose:()=>A(null)})]})}function kC(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=kC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ye(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=kC(e))&&(r&&(r+=" "),r+=t);return r}var xI=Array.isArray,yn=xI,jI=typeof gf=="object"&&gf&&gf.Object===Object&&gf,PC=jI,SI=PC,wI=typeof self=="object"&&self&&self.Object===Object&&self,OI=SI||wI||Function("return this")(),Hr=OI,AI=Hr,EI=AI.Symbol,sf=EI,GS=sf,$C=Object.prototype,_I=$C.hasOwnProperty,NI=$C.toString,ec=GS?GS.toStringTag:void 0;function TI(e){var t=_I.call(e,ec),n=e[ec];try{e[ec]=void 0;var r=!0}catch{}var a=NI.call(e);return r&&(t?e[ec]=n:delete e[ec]),a}var CI=TI,MI=Object.prototype,kI=MI.toString;function PI(e){return kI.call(e)}var $I=PI,VS=sf,RI=CI,DI=$I,zI="[object Null]",LI="[object Undefined]",YS=VS?VS.toStringTag:void 0;function BI(e){return e==null?e===void 0?LI:zI:YS&&YS in Object(e)?RI(e):DI(e)}var Aa=BI;function II(e){return e!=null&&typeof e=="object"}var Ea=II,UI=Aa,HI=Ea,qI="[object Symbol]";function FI(e){return typeof e=="symbol"||HI(e)&&UI(e)==qI}var ko=FI,GI=yn,VI=ko,YI=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,KI=/^\w*$/;function XI(e,t){if(GI(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||VI(e)?!0:KI.test(e)||!YI.test(e)||t!=null&&e in Object(t)}var A0=XI;function WI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var xi=WI;const Po=Pe(xi);var QI=Aa,ZI=xi,JI="[object AsyncFunction]",eU="[object Function]",tU="[object GeneratorFunction]",nU="[object Proxy]";function rU(e){if(!ZI(e))return!1;var t=QI(e);return t==eU||t==tU||t==JI||t==nU}var E0=rU;const fe=Pe(E0);var aU=Hr,iU=aU["__core-js_shared__"],lU=iU,Ay=lU,KS=function(){var e=/[^.]+$/.exec(Ay&&Ay.keys&&Ay.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function sU(e){return!!KS&&KS in e}var oU=sU,cU=Function.prototype,uU=cU.toString;function fU(e){if(e!=null){try{return uU.call(e)}catch{}try{return e+""}catch{}}return""}var RC=fU,dU=E0,hU=oU,pU=xi,mU=RC,yU=/[\\^$.*+?()[\]{}|]/g,vU=/^\[object .+?Constructor\]$/,gU=Function.prototype,bU=Object.prototype,xU=gU.toString,jU=bU.hasOwnProperty,SU=RegExp("^"+xU.call(jU).replace(yU,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wU(e){if(!pU(e)||hU(e))return!1;var t=dU(e)?SU:vU;return t.test(mU(e))}var OU=wU;function AU(e,t){return e==null?void 0:e[t]}var EU=AU,_U=OU,NU=EU;function TU(e,t){var n=NU(e,t);return _U(n)?n:void 0}var Cl=TU,CU=Cl,MU=CU(Object,"create"),Up=MU,XS=Up;function kU(){this.__data__=XS?XS(null):{},this.size=0}var PU=kU;function $U(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var RU=$U,DU=Up,zU="__lodash_hash_undefined__",LU=Object.prototype,BU=LU.hasOwnProperty;function IU(e){var t=this.__data__;if(DU){var n=t[e];return n===zU?void 0:n}return BU.call(t,e)?t[e]:void 0}var UU=IU,HU=Up,qU=Object.prototype,FU=qU.hasOwnProperty;function GU(e){var t=this.__data__;return HU?t[e]!==void 0:FU.call(t,e)}var VU=GU,YU=Up,KU="__lodash_hash_undefined__";function XU(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=YU&&t===void 0?KU:t,this}var WU=XU,QU=PU,ZU=RU,JU=UU,e7=VU,t7=WU;function $o(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])}}$o.prototype.clear=QU;$o.prototype.delete=ZU;$o.prototype.get=JU;$o.prototype.has=e7;$o.prototype.set=t7;var n7=$o;function r7(){this.__data__=[],this.size=0}var a7=r7;function i7(e,t){return e===t||e!==e&&t!==t}var _0=i7,l7=_0;function s7(e,t){for(var n=e.length;n--;)if(l7(e[n][0],t))return n;return-1}var Hp=s7,o7=Hp,c7=Array.prototype,u7=c7.splice;function f7(e){var t=this.__data__,n=o7(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():u7.call(t,n,1),--this.size,!0}var d7=f7,h7=Hp;function p7(e){var t=this.__data__,n=h7(t,e);return n<0?void 0:t[n][1]}var m7=p7,y7=Hp;function v7(e){return y7(this.__data__,e)>-1}var g7=v7,b7=Hp;function x7(e,t){var n=this.__data__,r=b7(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var j7=x7,S7=a7,w7=d7,O7=m7,A7=g7,E7=j7;function Ro(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])}}Ro.prototype.clear=S7;Ro.prototype.delete=w7;Ro.prototype.get=O7;Ro.prototype.has=A7;Ro.prototype.set=E7;var qp=Ro,_7=Cl,N7=Hr,T7=_7(N7,"Map"),N0=T7,WS=n7,C7=qp,M7=N0;function k7(){this.size=0,this.__data__={hash:new WS,map:new(M7||C7),string:new WS}}var P7=k7;function $7(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var R7=$7,D7=R7;function z7(e,t){var n=e.__data__;return D7(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Fp=z7,L7=Fp;function B7(e){var t=L7(this,e).delete(e);return this.size-=t?1:0,t}var I7=B7,U7=Fp;function H7(e){return U7(this,e).get(e)}var q7=H7,F7=Fp;function G7(e){return F7(this,e).has(e)}var V7=G7,Y7=Fp;function K7(e,t){var n=Y7(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var X7=K7,W7=P7,Q7=I7,Z7=q7,J7=V7,e9=X7;function Do(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])}}Do.prototype.clear=W7;Do.prototype.delete=Q7;Do.prototype.get=Z7;Do.prototype.has=J7;Do.prototype.set=e9;var T0=Do,DC=T0,t9="Expected a function";function C0(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(t9);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(C0.Cache||DC),n}C0.Cache=DC;var zC=C0;const n9=Pe(zC);var r9=zC,a9=500;function i9(e){var t=r9(e,function(r){return n.size===a9&&n.clear(),r}),n=t.cache;return t}var l9=i9,s9=l9,o9=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c9=/\\(\\)?/g,u9=s9(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(o9,function(n,r,a,i){t.push(a?i.replace(c9,"$1"):r||n)}),t}),f9=u9;function d9(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 M0=d9,QS=sf,h9=M0,p9=yn,m9=ko,ZS=QS?QS.prototype:void 0,JS=ZS?ZS.toString:void 0;function LC(e){if(typeof e=="string")return e;if(p9(e))return h9(e,LC)+"";if(m9(e))return JS?JS.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var y9=LC,v9=y9;function g9(e){return e==null?"":v9(e)}var BC=g9,b9=yn,x9=A0,j9=f9,S9=BC;function w9(e,t){return b9(e)?e:x9(e,t)?[e]:j9(S9(e))}var IC=w9,O9=ko;function A9(e){if(typeof e=="string"||O9(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Gp=A9,E9=IC,_9=Gp;function N9(e,t){t=E9(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[_9(t[n++])];return n&&n==r?e:void 0}var k0=N9,T9=k0;function C9(e,t,n){var r=e==null?void 0:T9(e,t);return r===void 0?n:r}var UC=C9;const Mn=Pe(UC);function M9(e){return e==null}var k9=M9;const me=Pe(k9);var P9=Aa,$9=yn,R9=Ea,D9="[object String]";function z9(e){return typeof e=="string"||!$9(e)&&R9(e)&&P9(e)==D9}var L9=z9;const vl=Pe(L9);var HC={exports:{}},ze={};/**
 * @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 P0=Symbol.for("react.element"),$0=Symbol.for("react.portal"),Vp=Symbol.for("react.fragment"),Yp=Symbol.for("react.strict_mode"),Kp=Symbol.for("react.profiler"),Xp=Symbol.for("react.provider"),Wp=Symbol.for("react.context"),B9=Symbol.for("react.server_context"),Qp=Symbol.for("react.forward_ref"),Zp=Symbol.for("react.suspense"),Jp=Symbol.for("react.suspense_list"),em=Symbol.for("react.memo"),tm=Symbol.for("react.lazy"),I9=Symbol.for("react.offscreen"),qC;qC=Symbol.for("react.module.reference");function ar(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case P0:switch(e=e.type,e){case Vp:case Kp:case Yp:case Zp:case Jp:return e;default:switch(e=e&&e.$$typeof,e){case B9:case Wp:case Qp:case tm:case em:case Xp:return e;default:return t}}case $0:return t}}}ze.ContextConsumer=Wp;ze.ContextProvider=Xp;ze.Element=P0;ze.ForwardRef=Qp;ze.Fragment=Vp;ze.Lazy=tm;ze.Memo=em;ze.Portal=$0;ze.Profiler=Kp;ze.StrictMode=Yp;ze.Suspense=Zp;ze.SuspenseList=Jp;ze.isAsyncMode=function(){return!1};ze.isConcurrentMode=function(){return!1};ze.isContextConsumer=function(e){return ar(e)===Wp};ze.isContextProvider=function(e){return ar(e)===Xp};ze.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===P0};ze.isForwardRef=function(e){return ar(e)===Qp};ze.isFragment=function(e){return ar(e)===Vp};ze.isLazy=function(e){return ar(e)===tm};ze.isMemo=function(e){return ar(e)===em};ze.isPortal=function(e){return ar(e)===$0};ze.isProfiler=function(e){return ar(e)===Kp};ze.isStrictMode=function(e){return ar(e)===Yp};ze.isSuspense=function(e){return ar(e)===Zp};ze.isSuspenseList=function(e){return ar(e)===Jp};ze.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Vp||e===Kp||e===Yp||e===Zp||e===Jp||e===I9||typeof e=="object"&&e!==null&&(e.$$typeof===tm||e.$$typeof===em||e.$$typeof===Xp||e.$$typeof===Wp||e.$$typeof===Qp||e.$$typeof===qC||e.getModuleId!==void 0)};ze.typeOf=ar;HC.exports=ze;var U9=HC.exports,H9=Aa,q9=Ea,F9="[object Number]";function G9(e){return typeof e=="number"||q9(e)&&H9(e)==F9}var FC=G9;const V9=Pe(FC);var Y9=FC;function K9(e){return Y9(e)&&e!=+e}var X9=K9;const zo=Pe(X9);var Jt=function(t){return t===0?0:t>0?1:-1},qi=function(t){return vl(t)&&t.indexOf("%")===t.length-1},X=function(t){return V9(t)&&!zo(t)},W9=function(t){return me(t)},_t=function(t){return X(t)||vl(t)},Q9=0,Ml=function(t){var n=++Q9;return"".concat(t||"").concat(n)},en=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!X(t)&&!vl(t))return r;var i;if(qi(t)){var l=t.indexOf("%");i=n*parseFloat(t.slice(0,l))/100}else i=+t;return zo(i)&&(i=r),a&&i>n&&(i=n),i},Ia=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},Z9=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},At=function(t,n){return X(t)&&X(n)?function(r){return t+r*(n-t)}:function(){return n}};function ih(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Mn(r,t))===n})}var J9=function(t,n){return X(t)&&X(n)?t-n:vl(t)&&vl(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function xs(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 hg(e){"@babel/helpers - typeof";return hg=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},hg(e)}var eH=["viewBox","children"],tH=["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"],ew=["points","pathLength"],Ey={svg:eH,polygon:ew,polyline:ew},R0=["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"],lh=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(O.isValidElement(t)&&(r=t.props),!Po(r))return null;var a={};return Object.keys(r).forEach(function(i){R0.includes(i)&&(a[i]=n||function(l){return r[i](r,l)})}),a},nH=function(t,n,r){return function(a){return t(n,r,a),null}},gl=function(t,n,r){if(!Po(t)||hg(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var l=t[i];R0.includes(i)&&typeof l=="function"&&(a||(a={}),a[i]=nH(l,n,r))}),a},rH=["children"],aH=["children"];function tw(e,t){if(e==null)return{};var n=iH(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 iH(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 pg(e){"@babel/helpers - typeof";return pg=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},pg(e)}var nw={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"},da=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},rw=null,_y=null,D0=function e(t){if(t===rw&&Array.isArray(_y))return _y;var n=[];return O.Children.forEach(t,function(r){me(r)||(U9.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),_y=n,rw=t,n};function kn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return da(a)}):r=[da(t)],D0(e).forEach(function(a){var i=Mn(a,"type.displayName")||Mn(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function xn(e,t){var n=kn(e,t);return n&&n[0]}var aw=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!X(r)||r<=0||!X(a)||a<=0)},lH=["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"],sH=function(t){return t&&t.type&&vl(t.type)&&lH.indexOf(t.type)>=0},GC=function(t){return t&&pg(t)==="object"&&"clipDot"in t},oH=function(t,n,r,a){var i,l=(i=Ey==null?void 0:Ey[a])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!fe(t)&&(a&&l.includes(n)||tH.includes(n))||r&&R0.includes(n)},le=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(O.isValidElement(t)&&(a=t.props),!Po(a))return null;var i={};return Object.keys(a).forEach(function(l){var s;oH((s=a)===null||s===void 0?void 0:s[l],l,n,r)&&(i[l]=a[l])}),i},mg=function e(t,n){if(t===n)return!0;var r=O.Children.count(t);if(r!==O.Children.count(n))return!1;if(r===0)return!0;if(r===1)return iw(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(!iw(i,l))return!1}return!0},iw=function(t,n){if(me(t)&&me(n))return!0;if(!me(t)&&!me(n)){var r=t.props||{},a=r.children,i=tw(r,rH),l=n.props||{},s=l.children,c=tw(l,aH);return a&&s?xs(i,c)&&mg(a,s):!a&&!s?xs(i,c):!1}return!1},lw=function(t,n){var r=[],a={};return D0(t).forEach(function(i,l){if(sH(i))r.push(i);else if(i){var s=da(i.type),c=n[s]||{},u=c.handler,f=c.once;if(u&&(!f||!a[s])){var d=u(i,s,l);r.push(d),a[s]=!0}}}),r},cH=function(t){var n=t&&t.type;return n&&nw[n]?nw[n]:null},uH=function(t,n){return D0(n).indexOf(t)},fH=["children","width","height","viewBox","className","style","title","desc"];function yg(){return yg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yg.apply(this,arguments)}function dH(e,t){if(e==null)return{};var n=hH(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 hH(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 vg(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,i=e.className,l=e.style,s=e.title,c=e.desc,u=dH(e,fH),f=a||{width:n,height:r,x:0,y:0},d=ye("recharts-surface",i);return N.createElement("svg",yg({},le(u,!0,"svg"),{className:d,width:n,height:r,style:l,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),N.createElement("title",null,s),N.createElement("desc",null,c),t)}var pH=["children","className"];function gg(){return gg=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},gg.apply(this,arguments)}function mH(e,t){if(e==null)return{};var n=yH(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 yH(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 we=N.forwardRef(function(e,t){var n=e.children,r=e.className,a=mH(e,pH),i=ye("recharts-layer",r);return N.createElement("g",gg({className:i},le(a,!0),{ref:t}),n)}),mr=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 vH(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 gH=vH,bH=gH;function xH(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:bH(e,t,n)}var jH=xH,SH="\\ud800-\\udfff",wH="\\u0300-\\u036f",OH="\\ufe20-\\ufe2f",AH="\\u20d0-\\u20ff",EH=wH+OH+AH,_H="\\ufe0e\\ufe0f",NH="\\u200d",TH=RegExp("["+NH+SH+EH+_H+"]");function CH(e){return TH.test(e)}var VC=CH;function MH(e){return e.split("")}var kH=MH,YC="\\ud800-\\udfff",PH="\\u0300-\\u036f",$H="\\ufe20-\\ufe2f",RH="\\u20d0-\\u20ff",DH=PH+$H+RH,zH="\\ufe0e\\ufe0f",LH="["+YC+"]",bg="["+DH+"]",xg="\\ud83c[\\udffb-\\udfff]",BH="(?:"+bg+"|"+xg+")",KC="[^"+YC+"]",XC="(?:\\ud83c[\\udde6-\\uddff]){2}",WC="[\\ud800-\\udbff][\\udc00-\\udfff]",IH="\\u200d",QC=BH+"?",ZC="["+zH+"]?",UH="(?:"+IH+"(?:"+[KC,XC,WC].join("|")+")"+ZC+QC+")*",HH=ZC+QC+UH,qH="(?:"+[KC+bg+"?",bg,XC,WC,LH].join("|")+")",FH=RegExp(xg+"(?="+xg+")|"+qH+HH,"g");function GH(e){return e.match(FH)||[]}var VH=GH,YH=kH,KH=VC,XH=VH;function WH(e){return KH(e)?XH(e):YH(e)}var QH=WH,ZH=jH,JH=VC,eq=QH,tq=BC;function nq(e){return function(t){t=tq(t);var n=JH(t)?eq(t):void 0,r=n?n[0]:t.charAt(0),a=n?ZH(n,1).join(""):t.slice(1);return r[e]()+a}}var rq=nq,aq=rq,iq=aq("toUpperCase"),lq=iq;const nm=Pe(lq);function Fe(e){return function(){return e}}const JC=Math.cos,sh=Math.sin,xr=Math.sqrt,oh=Math.PI,rm=2*oh,jg=Math.PI,Sg=2*jg,Li=1e-6,sq=Sg-Li;function eM(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function oq(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return eM;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 cq{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?eM:oq(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,s=this._y1,c=r-t,u=a-n,f=l-t,d=s-n,h=f*f+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>Li)if(!(Math.abs(d*c-u*f)>Li)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-l,y=a-s,v=c*c+u*u,b=p*p+y*y,g=Math.sqrt(v),j=Math.sqrt(h),x=i*Math.tan((jg-Math.acos((v+h-b)/(2*g*j)))/2),m=x/j,S=x/g;Math.abs(m-1)>Li&&this._append`L${t+m*f},${n+m*d}`,this._append`A${i},${i},0,0,${+(d*p>f*y)},${this._x1=t+S*c},${this._y1=n+S*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 s=r*Math.cos(a),c=r*Math.sin(a),u=t+s,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)>Li||Math.abs(this._y1-f)>Li)&&this._append`L${u},${f}`,r&&(h<0&&(h=h%Sg+Sg),h>sq?this._append`A${r},${r},0,1,${d},${t-s},${n-c}A${r},${r},0,1,${d},${this._x1=u},${this._y1=f}`:h>Li&&this._append`A${r},${r},0,${+(h>=jg)},${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 z0(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 cq(t)}function L0(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function tM(e){this._context=e}tM.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 am(e){return new tM(e)}function nM(e){return e[0]}function rM(e){return e[1]}function aM(e,t){var n=Fe(!0),r=null,a=am,i=null,l=z0(s);e=typeof e=="function"?e:e===void 0?nM:Fe(e),t=typeof t=="function"?t:t===void 0?rM:Fe(t);function s(c){var u,f=(c=L0(c)).length,d,h=!1,p;for(r==null&&(i=a(p=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(p)return i=null,p+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:Fe(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:Fe(+c),s):t},s.defined=function(c){return arguments.length?(n=typeof c=="function"?c:Fe(!!c),s):n},s.curve=function(c){return arguments.length?(a=c,r!=null&&(i=a(r)),s):a},s.context=function(c){return arguments.length?(c==null?r=i=null:i=a(r=c),s):r},s}function Lf(e,t,n){var r=null,a=Fe(!0),i=null,l=am,s=null,c=z0(u);e=typeof e=="function"?e:e===void 0?nM:Fe(+e),t=typeof t=="function"?t:Fe(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?rM:Fe(+n);function u(d){var h,p,y,v=(d=L0(d)).length,b,g=!1,j,x=new Array(v),m=new Array(v);for(i==null&&(s=l(j=c())),h=0;h<=v;++h){if(!(h<v&&a(b=d[h],h,d))===g)if(g=!g)p=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=h-1;y>=p;--y)s.point(x[y],m[y]);s.lineEnd(),s.areaEnd()}g&&(x[h]=+e(b,h,d),m[h]=+t(b,h,d),s.point(r?+r(b,h,d):x[h],n?+n(b,h,d):m[h]))}if(j)return s=null,j+""||null}function f(){return aM().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&&(s=l(i)),u):l},u.context=function(d){return arguments.length?(d==null?i=s=null:s=l(i=d),u):i},u}class iM{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 uq(e){return new iM(e,!0)}function fq(e){return new iM(e,!1)}const B0={draw(e,t){const n=xr(t/oh);e.moveTo(n,0),e.arc(0,0,n,0,rm)}},dq={draw(e,t){const n=xr(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()}},lM=xr(1/3),hq=lM*2,pq={draw(e,t){const n=xr(t/hq),r=n*lM;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},mq={draw(e,t){const n=xr(t),r=-n/2;e.rect(r,r,n,n)}},yq=.8908130915292852,sM=sh(oh/10)/sh(7*oh/10),vq=sh(rm/10)*sM,gq=-JC(rm/10)*sM,bq={draw(e,t){const n=xr(t*yq),r=vq*n,a=gq*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const l=rm*i/5,s=JC(l),c=sh(l);e.lineTo(c*n,-s*n),e.lineTo(s*r-c*a,c*r+s*a)}e.closePath()}},Ny=xr(3),xq={draw(e,t){const n=-xr(t/(Ny*3));e.moveTo(0,n*2),e.lineTo(-Ny*n,-n),e.lineTo(Ny*n,-n),e.closePath()}},Bn=-.5,In=xr(3)/2,wg=1/xr(12),jq=(wg/2+1)*3,Sq={draw(e,t){const n=xr(t/jq),r=n/2,a=n*wg,i=r,l=n*wg+n,s=-i,c=l;e.moveTo(r,a),e.lineTo(i,l),e.lineTo(s,c),e.lineTo(Bn*r-In*a,In*r+Bn*a),e.lineTo(Bn*i-In*l,In*i+Bn*l),e.lineTo(Bn*s-In*c,In*s+Bn*c),e.lineTo(Bn*r+In*a,Bn*a-In*r),e.lineTo(Bn*i+In*l,Bn*l-In*i),e.lineTo(Bn*s+In*c,Bn*c-In*s),e.closePath()}};function wq(e,t){let n=null,r=z0(a);e=typeof e=="function"?e:Fe(e||B0),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 ch(){}function uh(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 oM(e){this._context=e}oM.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:uh(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:uh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Oq(e){return new oM(e)}function cM(e){this._context=e}cM.prototype={areaStart:ch,areaEnd:ch,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:uh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Aq(e){return new cM(e)}function uM(e){this._context=e}uM.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:uh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Eq(e){return new uM(e)}function fM(e){this._context=e}fM.prototype={areaStart:ch,areaEnd:ch,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 _q(e){return new fM(e)}function sw(e){return e<0?-1:1}function ow(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),s=(i*a+l*r)/(r+a);return(sw(i)+sw(l))*Math.min(Math.abs(i),Math.abs(l),.5*Math.abs(s))||0}function cw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ty(e,t,n){var r=e._x0,a=e._y0,i=e._x1,l=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,a+s*t,i-s,l-s*n,i,l)}function fh(e){this._context=e}fh.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:Ty(this,this._t0,cw(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,Ty(this,cw(this,n=ow(this,e,t)),n);break;default:Ty(this,this._t0,n=ow(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function dM(e){this._context=new hM(e)}(dM.prototype=Object.create(fh.prototype)).point=function(e,t){fh.prototype.point.call(this,t,e)};function hM(e){this._context=e}hM.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 Nq(e){return new fh(e)}function Tq(e){return new dM(e)}function pM(e){this._context=e}pM.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=uw(e),a=uw(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 uw(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 Cq(e){return new pM(e)}function im(e,t){this._context=e,this._t=t}im.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 Mq(e){return new im(e,.5)}function kq(e){return new im(e,0)}function Pq(e){return new im(e,1)}function Gs(e,t){if((l=e.length)>1)for(var n=1,r,a,i=e[t[0]],l,s=i.length;n<l;++n)for(a=i,i=e[t[n]],r=0;r<s;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function Og(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function $q(e,t){return e[t]}function Rq(e){const t=[];return t.key=e,t}function Dq(){var e=Fe([]),t=Og,n=Gs,r=$q;function a(i){var l=Array.from(e.apply(this,arguments),Rq),s,c=l.length,u=-1,f;for(const d of i)for(s=0,++u;s<c;++s)(l[s][u]=[0,+r(d,l[s].key,u,i)]).data=d;for(s=0,f=L0(t(l));s<c;++s)l[f[s]].index=s;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?Og:typeof i=="function"?i:Fe(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??Gs,a):n},a}function zq(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}Gs(e,t)}}function Lq(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,s=0;l<a;++l)s+=e[l][n][1]||0;r[n][1]+=r[n][0]=-s/2}Gs(e,t)}}function Bq(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 s=0,c=0,u=0;s<l;++s){for(var f=e[t[s]],d=f[r][1]||0,h=f[r-1][1]||0,p=(d-h)/2,y=0;y<s;++y){var v=e[t[y]],b=v[r][1]||0,g=v[r-1][1]||0;p+=b-g}c+=d,u+=p*d}a[r-1][1]+=a[r-1][0]=n,c&&(n-=u/c)}a[r-1][1]+=a[r-1][0]=n,Gs(e,t)}}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)}var Iq=["type","size","sizeType"];function Ag(){return Ag=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ag.apply(this,arguments)}function fw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function dw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fw(Object(n),!0).forEach(function(r){Uq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uq(e,t,n){return t=Hq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hq(e){var t=qq(e,"string");return nu(t)=="symbol"?t:t+""}function qq(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)}function Fq(e,t){if(e==null)return{};var n=Gq(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 Gq(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 mM={symbolCircle:B0,symbolCross:dq,symbolDiamond:pq,symbolSquare:mq,symbolStar:bq,symbolTriangle:xq,symbolWye:Sq},Vq=Math.PI/180,Yq=function(t){var n="symbol".concat(nm(t));return mM[n]||B0},Kq=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*Vq;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}},Xq=function(t,n){mM["symbol".concat(nm(t))]=n},I0=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,i=a===void 0?64:a,l=t.sizeType,s=l===void 0?"area":l,c=Fq(t,Iq),u=dw(dw({},c),{},{type:r,size:i,sizeType:s}),f=function(){var b=Yq(r),g=wq().type(b).size(Kq(i,s,r));return g()},d=u.className,h=u.cx,p=u.cy,y=le(u,!0);return h===+h&&p===+p&&i===+i?N.createElement("path",Ag({},y,{className:ye("recharts-symbols",d),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};I0.registerSymbol=Xq;function Vs(e){"@babel/helpers - typeof";return Vs=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},Vs(e)}function Eg(){return Eg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eg.apply(this,arguments)}function hw(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 Wq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hw(Object(n),!0).forEach(function(r){ru(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zq(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,vM(r.key),r)}}function Jq(e,t,n){return t&&Zq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function eF(e,t,n){return t=dh(t),tF(e,yM()?Reflect.construct(t,n||[],dh(e).constructor):t.apply(e,n))}function tF(e,t){if(t&&(Vs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nF(e)}function nF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yM=function(){return!!e})()}function dh(e){return dh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dh(e)}function rF(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&&_g(e,t)}function _g(e,t){return _g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},_g(e,t)}function ru(e,t,n){return t=vM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vM(e){var t=aF(e,"string");return Vs(t)=="symbol"?t:t+""}function aF(e,t){if(Vs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Un=32,U0=function(e){function t(){return Qq(this,t),eF(this,t,arguments)}return rF(t,e),Jq(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,i=Un/2,l=Un/6,s=Un/3,c=r.inactive?a:r.color;if(r.type==="plainline")return N.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:Un,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return N.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(i,"h").concat(s,`
            A`).concat(l,",").concat(l,",0,1,1,").concat(2*s,",").concat(i,`
            H`).concat(Un,"M").concat(2*s,",").concat(i,`
            A`).concat(l,",").concat(l,",0,1,1,").concat(s,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return N.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Un/8,"h").concat(Un,"v").concat(Un*3/4,"h").concat(-Un,"z"),className:"recharts-legend-icon"});if(N.isValidElement(r.legendIcon)){var u=Wq({},r);return delete u.legendIcon,N.cloneElement(r.legendIcon,u)}return N.createElement(I0,{fill:c,cx:i,cy:i,size:Un,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,i=a.payload,l=a.iconSize,s=a.layout,c=a.formatter,u=a.inactiveColor,f={x:0,y:0,width:Un,height:Un},d={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,y){var v=p.formatter||c,b=ye(ru(ru({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var g=fe(p.value)?null:p.value;mr(!fe(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var j=p.inactive?u:p.color;return N.createElement("li",Eg({className:b,style:d,key:"legend-item-".concat(y)},gl(r.props,p,y)),N.createElement(vg,{width:l,height:l,viewBox:f,style:h},r.renderIcon(p)),N.createElement("span",{className:"recharts-legend-item-text",style:{color:j}},v?v(g,p,y):g))})}},{key:"render",value:function(){var r=this.props,a=r.payload,i=r.layout,l=r.align;if(!a||!a.length)return null;var s={padding:0,margin:0,textAlign:i==="horizontal"?l:"left"};return N.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(O.PureComponent);ru(U0,"displayName","Legend");ru(U0,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var iF=qp;function lF(){this.__data__=new iF,this.size=0}var sF=lF;function oF(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var cF=oF;function uF(e){return this.__data__.get(e)}var fF=uF;function dF(e){return this.__data__.has(e)}var hF=dF,pF=qp,mF=N0,yF=T0,vF=200;function gF(e,t){var n=this.__data__;if(n instanceof pF){var r=n.__data__;if(!mF||r.length<vF-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new yF(r)}return n.set(e,t),this.size=n.size,this}var bF=gF,xF=qp,jF=sF,SF=cF,wF=fF,OF=hF,AF=bF;function Lo(e){var t=this.__data__=new xF(e);this.size=t.size}Lo.prototype.clear=jF;Lo.prototype.delete=SF;Lo.prototype.get=wF;Lo.prototype.has=OF;Lo.prototype.set=AF;var gM=Lo,EF="__lodash_hash_undefined__";function _F(e){return this.__data__.set(e,EF),this}var NF=_F;function TF(e){return this.__data__.has(e)}var CF=TF,MF=T0,kF=NF,PF=CF;function hh(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new MF;++t<n;)this.add(e[t])}hh.prototype.add=hh.prototype.push=kF;hh.prototype.has=PF;var bM=hh;function $F(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 xM=$F;function RF(e,t){return e.has(t)}var jM=RF,DF=bM,zF=xM,LF=jM,BF=1,IF=2;function UF(e,t,n,r,a,i){var l=n&BF,s=e.length,c=t.length;if(s!=c&&!(l&&c>s))return!1;var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var d=-1,h=!0,p=n&IF?new DF:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var y=e[d],v=t[d];if(r)var b=l?r(v,y,d,t,e,i):r(y,v,d,e,t,i);if(b!==void 0){if(b)continue;h=!1;break}if(p){if(!zF(t,function(g,j){if(!LF(p,j)&&(y===g||a(y,g,n,r,i)))return p.push(j)})){h=!1;break}}else if(!(y===v||a(y,v,n,r,i))){h=!1;break}}return i.delete(e),i.delete(t),h}var SM=UF,HF=Hr,qF=HF.Uint8Array,FF=qF;function GF(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var VF=GF;function YF(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var H0=YF,pw=sf,mw=FF,KF=_0,XF=SM,WF=VF,QF=H0,ZF=1,JF=2,eG="[object Boolean]",tG="[object Date]",nG="[object Error]",rG="[object Map]",aG="[object Number]",iG="[object RegExp]",lG="[object Set]",sG="[object String]",oG="[object Symbol]",cG="[object ArrayBuffer]",uG="[object DataView]",yw=pw?pw.prototype:void 0,Cy=yw?yw.valueOf:void 0;function fG(e,t,n,r,a,i,l){switch(n){case uG:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case cG:return!(e.byteLength!=t.byteLength||!i(new mw(e),new mw(t)));case eG:case tG:case aG:return KF(+e,+t);case nG:return e.name==t.name&&e.message==t.message;case iG:case sG:return e==t+"";case rG:var s=WF;case lG:var c=r&ZF;if(s||(s=QF),e.size!=t.size&&!c)return!1;var u=l.get(e);if(u)return u==t;r|=JF,l.set(e,t);var f=XF(s(e),s(t),r,a,i,l);return l.delete(e),f;case oG:if(Cy)return Cy.call(e)==Cy.call(t)}return!1}var dG=fG;function hG(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var wM=hG,pG=wM,mG=yn;function yG(e,t,n){var r=t(e);return mG(e)?r:pG(r,n(e))}var vG=yG;function gG(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 bG=gG;function xG(){return[]}var jG=xG,SG=bG,wG=jG,OG=Object.prototype,AG=OG.propertyIsEnumerable,vw=Object.getOwnPropertySymbols,EG=vw?function(e){return e==null?[]:(e=Object(e),SG(vw(e),function(t){return AG.call(e,t)}))}:wG,_G=EG;function NG(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var TG=NG,CG=Aa,MG=Ea,kG="[object Arguments]";function PG(e){return MG(e)&&CG(e)==kG}var $G=PG,gw=$G,RG=Ea,OM=Object.prototype,DG=OM.hasOwnProperty,zG=OM.propertyIsEnumerable,LG=gw(function(){return arguments}())?gw:function(e){return RG(e)&&DG.call(e,"callee")&&!zG.call(e,"callee")},q0=LG,ph={exports:{}};function BG(){return!1}var IG=BG;ph.exports;(function(e,t){var n=Hr,r=IG,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,l=i&&i.exports===a,s=l?n.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||r;e.exports=u})(ph,ph.exports);var AM=ph.exports,UG=9007199254740991,HG=/^(?:0|[1-9]\d*)$/;function qG(e,t){var n=typeof e;return t=t??UG,!!t&&(n=="number"||n!="symbol"&&HG.test(e))&&e>-1&&e%1==0&&e<t}var F0=qG,FG=9007199254740991;function GG(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=FG}var G0=GG,VG=Aa,YG=G0,KG=Ea,XG="[object Arguments]",WG="[object Array]",QG="[object Boolean]",ZG="[object Date]",JG="[object Error]",eV="[object Function]",tV="[object Map]",nV="[object Number]",rV="[object Object]",aV="[object RegExp]",iV="[object Set]",lV="[object String]",sV="[object WeakMap]",oV="[object ArrayBuffer]",cV="[object DataView]",uV="[object Float32Array]",fV="[object Float64Array]",dV="[object Int8Array]",hV="[object Int16Array]",pV="[object Int32Array]",mV="[object Uint8Array]",yV="[object Uint8ClampedArray]",vV="[object Uint16Array]",gV="[object Uint32Array]",Xe={};Xe[uV]=Xe[fV]=Xe[dV]=Xe[hV]=Xe[pV]=Xe[mV]=Xe[yV]=Xe[vV]=Xe[gV]=!0;Xe[XG]=Xe[WG]=Xe[oV]=Xe[QG]=Xe[cV]=Xe[ZG]=Xe[JG]=Xe[eV]=Xe[tV]=Xe[nV]=Xe[rV]=Xe[aV]=Xe[iV]=Xe[lV]=Xe[sV]=!1;function bV(e){return KG(e)&&YG(e.length)&&!!Xe[VG(e)]}var xV=bV;function jV(e){return function(t){return e(t)}}var EM=jV,mh={exports:{}};mh.exports;(function(e,t){var n=PC,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,l=i&&n.process,s=function(){try{var c=a&&a.require&&a.require("util").types;return c||l&&l.binding&&l.binding("util")}catch{}}();e.exports=s})(mh,mh.exports);var SV=mh.exports,wV=xV,OV=EM,bw=SV,xw=bw&&bw.isTypedArray,AV=xw?OV(xw):wV,_M=AV,EV=TG,_V=q0,NV=yn,TV=AM,CV=F0,MV=_M,kV=Object.prototype,PV=kV.hasOwnProperty;function $V(e,t){var n=NV(e),r=!n&&_V(e),a=!n&&!r&&TV(e),i=!n&&!r&&!a&&MV(e),l=n||r||a||i,s=l?EV(e.length,String):[],c=s.length;for(var u in e)(t||PV.call(e,u))&&!(l&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||CV(u,c)))&&s.push(u);return s}var RV=$V,DV=Object.prototype;function zV(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||DV;return e===n}var LV=zV;function BV(e,t){return function(n){return e(t(n))}}var NM=BV,IV=NM,UV=IV(Object.keys,Object),HV=UV,qV=LV,FV=HV,GV=Object.prototype,VV=GV.hasOwnProperty;function YV(e){if(!qV(e))return FV(e);var t=[];for(var n in Object(e))VV.call(e,n)&&n!="constructor"&&t.push(n);return t}var KV=YV,XV=E0,WV=G0;function QV(e){return e!=null&&WV(e.length)&&!XV(e)}var of=QV,ZV=RV,JV=KV,eY=of;function tY(e){return eY(e)?ZV(e):JV(e)}var lm=tY,nY=vG,rY=_G,aY=lm;function iY(e){return nY(e,aY,rY)}var lY=iY,jw=lY,sY=1,oY=Object.prototype,cY=oY.hasOwnProperty;function uY(e,t,n,r,a,i){var l=n&sY,s=jw(e),c=s.length,u=jw(t),f=u.length;if(c!=f&&!l)return!1;for(var d=c;d--;){var h=s[d];if(!(l?h in t:cY.call(t,h)))return!1}var p=i.get(e),y=i.get(t);if(p&&y)return p==t&&y==e;var v=!0;i.set(e,t),i.set(t,e);for(var b=l;++d<c;){h=s[d];var g=e[h],j=t[h];if(r)var x=l?r(j,g,h,t,e,i):r(g,j,h,e,t,i);if(!(x===void 0?g===j||a(g,j,n,r,i):x)){v=!1;break}b||(b=h=="constructor")}if(v&&!b){var m=e.constructor,S=t.constructor;m!=S&&"constructor"in e&&"constructor"in t&&!(typeof m=="function"&&m instanceof m&&typeof S=="function"&&S instanceof S)&&(v=!1)}return i.delete(e),i.delete(t),v}var fY=uY,dY=Cl,hY=Hr,pY=dY(hY,"DataView"),mY=pY,yY=Cl,vY=Hr,gY=yY(vY,"Promise"),bY=gY,xY=Cl,jY=Hr,SY=xY(jY,"Set"),TM=SY,wY=Cl,OY=Hr,AY=wY(OY,"WeakMap"),EY=AY,Ng=mY,Tg=N0,Cg=bY,Mg=TM,kg=EY,CM=Aa,Bo=RC,Sw="[object Map]",_Y="[object Object]",ww="[object Promise]",Ow="[object Set]",Aw="[object WeakMap]",Ew="[object DataView]",NY=Bo(Ng),TY=Bo(Tg),CY=Bo(Cg),MY=Bo(Mg),kY=Bo(kg),Bi=CM;(Ng&&Bi(new Ng(new ArrayBuffer(1)))!=Ew||Tg&&Bi(new Tg)!=Sw||Cg&&Bi(Cg.resolve())!=ww||Mg&&Bi(new Mg)!=Ow||kg&&Bi(new kg)!=Aw)&&(Bi=function(e){var t=CM(e),n=t==_Y?e.constructor:void 0,r=n?Bo(n):"";if(r)switch(r){case NY:return Ew;case TY:return Sw;case CY:return ww;case MY:return Ow;case kY:return Aw}return t});var PY=Bi,My=gM,$Y=SM,RY=dG,DY=fY,_w=PY,Nw=yn,Tw=AM,zY=_M,LY=1,Cw="[object Arguments]",Mw="[object Array]",Bf="[object Object]",BY=Object.prototype,kw=BY.hasOwnProperty;function IY(e,t,n,r,a,i){var l=Nw(e),s=Nw(t),c=l?Mw:_w(e),u=s?Mw:_w(t);c=c==Cw?Bf:c,u=u==Cw?Bf:u;var f=c==Bf,d=u==Bf,h=c==u;if(h&&Tw(e)){if(!Tw(t))return!1;l=!0,f=!1}if(h&&!f)return i||(i=new My),l||zY(e)?$Y(e,t,n,r,a,i):RY(e,t,c,n,r,a,i);if(!(n&LY)){var p=f&&kw.call(e,"__wrapped__"),y=d&&kw.call(t,"__wrapped__");if(p||y){var v=p?e.value():e,b=y?t.value():t;return i||(i=new My),a(v,b,n,r,i)}}return h?(i||(i=new My),DY(e,t,n,r,a,i)):!1}var UY=IY,HY=UY,Pw=Ea;function MM(e,t,n,r,a){return e===t?!0:e==null||t==null||!Pw(e)&&!Pw(t)?e!==e&&t!==t:HY(e,t,n,r,MM,a)}var V0=MM,qY=gM,FY=V0,GY=1,VY=2;function YY(e,t,n,r){var a=n.length,i=a,l=!r;if(e==null)return!i;for(e=Object(e);a--;){var s=n[a];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=n[a];var c=s[0],u=e[c],f=s[1];if(l&&s[2]){if(u===void 0&&!(c in e))return!1}else{var d=new qY;if(r)var h=r(u,f,c,e,t,d);if(!(h===void 0?FY(f,u,GY|VY,r,d):h))return!1}}return!0}var KY=YY,XY=xi;function WY(e){return e===e&&!XY(e)}var kM=WY,QY=kM,ZY=lm;function JY(e){for(var t=ZY(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,QY(a)]}return t}var eK=JY;function tK(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var PM=tK,nK=KY,rK=eK,aK=PM;function iK(e){var t=rK(e);return t.length==1&&t[0][2]?aK(t[0][0],t[0][1]):function(n){return n===e||nK(n,e,t)}}var lK=iK;function sK(e,t){return e!=null&&t in Object(e)}var oK=sK,cK=IC,uK=q0,fK=yn,dK=F0,hK=G0,pK=Gp;function mK(e,t,n){t=cK(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var l=pK(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&&hK(a)&&dK(l,a)&&(fK(e)||uK(e)))}var yK=mK,vK=oK,gK=yK;function bK(e,t){return e!=null&&gK(e,t,vK)}var xK=bK,jK=V0,SK=UC,wK=xK,OK=A0,AK=kM,EK=PM,_K=Gp,NK=1,TK=2;function CK(e,t){return OK(e)&&AK(t)?EK(_K(e),t):function(n){var r=SK(n,e);return r===void 0&&r===t?wK(n,e):jK(t,r,NK|TK)}}var MK=CK;function kK(e){return e}var Io=kK;function PK(e){return function(t){return t==null?void 0:t[e]}}var $K=PK,RK=k0;function DK(e){return function(t){return RK(t,e)}}var zK=DK,LK=$K,BK=zK,IK=A0,UK=Gp;function HK(e){return IK(e)?LK(UK(e)):BK(e)}var qK=HK,FK=lK,GK=MK,VK=Io,YK=yn,KK=qK;function XK(e){return typeof e=="function"?e:e==null?VK:typeof e=="object"?YK(e)?GK(e[0],e[1]):FK(e):KK(e)}var qr=XK;function WK(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 $M=WK;function QK(e){return e!==e}var ZK=QK;function JK(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var eX=JK,tX=$M,nX=ZK,rX=eX;function aX(e,t,n){return t===t?rX(e,t,n):tX(e,nX,n)}var iX=aX,lX=iX;function sX(e,t){var n=e==null?0:e.length;return!!n&&lX(e,t,0)>-1}var oX=sX;function cX(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 uX=cX;function fX(){}var dX=fX,ky=TM,hX=dX,pX=H0,mX=1/0,yX=ky&&1/pX(new ky([,-0]))[1]==mX?function(e){return new ky(e)}:hX,vX=yX,gX=bM,bX=oX,xX=uX,jX=jM,SX=vX,wX=H0,OX=200;function AX(e,t,n){var r=-1,a=bX,i=e.length,l=!0,s=[],c=s;if(n)l=!1,a=xX;else if(i>=OX){var u=t?null:SX(e);if(u)return wX(u);l=!1,a=jX,c=new gX}else c=t?[]:s;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),s.push(f)}else a(c,d,n)||(c!==s&&c.push(d),s.push(f))}return s}var EX=AX,_X=qr,NX=EX;function TX(e,t){return e&&e.length?NX(e,_X(t)):[]}var CX=TX;const $w=Pe(CX);function RM(e,t,n){return t===!0?$w(e,n):fe(t)?$w(e,t):e}function Ys(e){"@babel/helpers - typeof";return Ys=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},Ys(e)}var MX=["ref"];function Rw(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 Xr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rw(Object(n),!0).forEach(function(r){sm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dw(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,zM(r.key),r)}}function PX(e,t,n){return t&&Dw(e.prototype,t),n&&Dw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $X(e,t,n){return t=yh(t),RX(e,DM()?Reflect.construct(t,n||[],yh(e).constructor):t.apply(e,n))}function RX(e,t){if(t&&(Ys(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DX(e)}function DX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DM=function(){return!!e})()}function yh(e){return yh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yh(e)}function zX(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&&Pg(e,t)}function Pg(e,t){return Pg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Pg(e,t)}function sm(e,t,n){return t=zM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zM(e){var t=LX(e,"string");return Ys(t)=="symbol"?t:t+""}function LX(e,t){if(Ys(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ys(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function BX(e,t){if(e==null)return{};var n=IX(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 IX(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 UX(e){return e.value}function HX(e,t){if(N.isValidElement(e))return N.cloneElement(e,t);if(typeof e=="function")return N.createElement(e,t);t.ref;var n=BX(t,MX);return N.createElement(U0,n)}var zw=1,Mr=function(e){function t(){var n;kX(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=$X(this,t,[].concat(a)),sm(n,"lastBoundingBox",{width:-1,height:-1}),n}return zX(t,e),PX(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)>zw||Math.abs(a.height-this.lastBoundingBox.height)>zw)&&(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?Xr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,i=a.layout,l=a.align,s=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 p=this.getBBoxSnapshot();d={left:((u||0)-p.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(s==="middle"){var y=this.getBBoxSnapshot();h={top:((f||0)-y.height)/2}}else h=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Xr(Xr({},d),h)}},{key:"render",value:function(){var r=this,a=this.props,i=a.content,l=a.width,s=a.height,c=a.wrapperStyle,u=a.payloadUniqBy,f=a.payload,d=Xr(Xr({position:"absolute",width:l||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return N.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(p){r.wrapperNode=p}},HX(i,Xr(Xr({},this.props),{},{payload:RM(f,u,UX)})))}}],[{key:"getWithHeight",value:function(r,a){var i=Xr(Xr({},this.defaultProps),r.props),l=i.layout;return l==="vertical"&&X(r.props.height)?{height:r.props.height}:l==="horizontal"?{width:r.props.width||a}:null}}])}(O.PureComponent);sm(Mr,"displayName","Legend");sm(Mr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Lw=sf,qX=q0,FX=yn,Bw=Lw?Lw.isConcatSpreadable:void 0;function GX(e){return FX(e)||qX(e)||!!(Bw&&e&&e[Bw])}var VX=GX,YX=wM,KX=VX;function LM(e,t,n,r,a){var i=-1,l=e.length;for(n||(n=KX),a||(a=[]);++i<l;){var s=e[i];t>0&&n(s)?t>1?LM(s,t-1,n,r,a):YX(a,s):r||(a[a.length]=s)}return a}var BM=LM;function XX(e){return function(t,n,r){for(var a=-1,i=Object(t),l=r(t),s=l.length;s--;){var c=l[e?s:++a];if(n(i[c],c,i)===!1)break}return t}}var WX=XX,QX=WX,ZX=QX(),JX=ZX,eW=JX,tW=lm;function nW(e,t){return e&&eW(e,t,tW)}var IM=nW,rW=of;function aW(e,t){return function(n,r){if(n==null)return n;if(!rW(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 iW=aW,lW=IM,sW=iW,oW=sW(lW),Y0=oW,cW=Y0,uW=of;function fW(e,t){var n=-1,r=uW(e)?Array(e.length):[];return cW(e,function(a,i,l){r[++n]=t(a,i,l)}),r}var UM=fW;function dW(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var hW=dW,Iw=ko;function pW(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=Iw(e),l=t!==void 0,s=t===null,c=t===t,u=Iw(t);if(!s&&!u&&!i&&e>t||i&&l&&c&&!s&&!u||r&&l&&c||!n&&c||!a)return 1;if(!r&&!i&&!u&&e<t||u&&n&&a&&!r&&!i||s&&n&&a||!l&&a||!c)return-1}return 0}var mW=pW,yW=mW;function vW(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,l=a.length,s=n.length;++r<l;){var c=yW(a[r],i[r]);if(c){if(r>=s)return c;var u=n[r];return c*(u=="desc"?-1:1)}}return e.index-t.index}var gW=vW,Py=M0,bW=k0,xW=qr,jW=UM,SW=hW,wW=EM,OW=gW,AW=Io,EW=yn;function _W(e,t,n){t.length?t=Py(t,function(i){return EW(i)?function(l){return bW(l,i.length===1?i[0]:i)}:i}):t=[AW];var r=-1;t=Py(t,wW(xW));var a=jW(e,function(i,l,s){var c=Py(t,function(u){return u(i)});return{criteria:c,index:++r,value:i}});return SW(a,function(i,l){return OW(i,l,n)})}var NW=_W;function TW(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 CW=TW,MW=CW,Uw=Math.max;function kW(e,t,n){return t=Uw(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=Uw(r.length-t,0),l=Array(i);++a<i;)l[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=n(l),MW(e,this,s)}}var PW=kW;function $W(e){return function(){return e}}var RW=$W,DW=Cl,zW=function(){try{var e=DW(Object,"defineProperty");return e({},"",{}),e}catch{}}(),HM=zW,LW=RW,Hw=HM,BW=Io,IW=Hw?function(e,t){return Hw(e,"toString",{configurable:!0,enumerable:!1,value:LW(t),writable:!0})}:BW,UW=IW,HW=800,qW=16,FW=Date.now;function GW(e){var t=0,n=0;return function(){var r=FW(),a=qW-(r-n);if(n=r,a>0){if(++t>=HW)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var VW=GW,YW=UW,KW=VW,XW=KW(YW),WW=XW,QW=Io,ZW=PW,JW=WW;function eQ(e,t){return JW(ZW(e,t,QW),e+"")}var tQ=eQ,nQ=_0,rQ=of,aQ=F0,iQ=xi;function lQ(e,t,n){if(!iQ(n))return!1;var r=typeof t;return(r=="number"?rQ(n)&&aQ(t,n.length):r=="string"&&t in n)?nQ(n[t],e):!1}var om=lQ,sQ=BM,oQ=NW,cQ=tQ,qw=om,uQ=cQ(function(e,t){if(e==null)return[];var n=t.length;return n>1&&qw(e,t[0],t[1])?t=[]:n>2&&qw(t[0],t[1],t[2])&&(t=[t[0]]),oQ(e,sQ(t,1),[])}),fQ=uQ;const K0=Pe(fQ);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 $g(){return $g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$g.apply(this,arguments)}function dQ(e,t){return yQ(e)||mQ(e,t)||pQ(e,t)||hQ()}function hQ(){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 pQ(e,t){if(e){if(typeof e=="string")return Fw(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 Fw(e,t)}}function Fw(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 mQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.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 s}}function yQ(e){if(Array.isArray(e))return e}function Gw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gw(Object(n),!0).forEach(function(r){vQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vQ(e,t,n){return t=gQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gQ(e){var t=bQ(e,"string");return au(t)=="symbol"?t:t+""}function bQ(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(t==="string"?String:Number)(e)}function xQ(e){return Array.isArray(e)&&_t(e[0])&&_t(e[1])?e.join(" ~ "):e}var jQ=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,i=a===void 0?{}:a,l=t.itemStyle,s=l===void 0?{}:l,c=t.labelStyle,u=c===void 0?{}:c,f=t.payload,d=t.formatter,h=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,v=t.label,b=t.labelFormatter,g=t.accessibilityLayer,j=g===void 0?!1:g,x=function(){if(f&&f.length){var M={padding:0,margin:0},I=(h?K0(f,h):f).map(function(D,$){if(D.type==="none")return null;var T=$y({display:"block",paddingTop:4,paddingBottom:4,color:D.color||"#000"},s),z=D.formatter||d||xQ,B=D.value,F=D.name,V=B,Y=F;if(z&&V!=null&&Y!=null){var K=z(B,F,D,$,f);if(Array.isArray(K)){var ae=dQ(K,2);V=ae[0],Y=ae[1]}else V=K}return N.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:T},_t(Y)?N.createElement("span",{className:"recharts-tooltip-item-name"},Y):null,_t(Y)?N.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,N.createElement("span",{className:"recharts-tooltip-item-value"},V),N.createElement("span",{className:"recharts-tooltip-item-unit"},D.unit||""))});return N.createElement("ul",{className:"recharts-tooltip-item-list",style:M},I)}return null},m=$y({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),S=$y({margin:0},u),w=!me(v),A=w?v:"",_=ye("recharts-default-tooltip",p),E=ye("recharts-tooltip-label",y);w&&b&&f!==void 0&&f!==null&&(A=b(v,f));var C=j?{role:"status","aria-live":"assertive"}:{};return N.createElement("div",$g({className:_,style:m},C),N.createElement("p",{className:E,style:S},N.isValidElement(A)?A:"".concat(A)),x())};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)}function If(e,t,n){return t=SQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SQ(e){var t=wQ(e,"string");return iu(t)=="symbol"?t:t+""}function wQ(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)}var tc="recharts-tooltip-wrapper",OQ={visibility:"hidden"};function AQ(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return ye(tc,If(If(If(If({},"".concat(tc,"-right"),X(n)&&t&&X(t.x)&&n>=t.x),"".concat(tc,"-left"),X(n)&&t&&X(t.x)&&n<t.x),"".concat(tc,"-bottom"),X(r)&&t&&X(t.y)&&r>=t.y),"".concat(tc,"-top"),X(r)&&t&&X(t.y)&&r<t.y))}function Vw(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,i=e.position,l=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,u=e.viewBoxDimension;if(i&&X(i[r]))return i[r];var f=n[r]-s-a,d=n[r]+a;if(t[r])return l[r]?f:d;if(l[r]){var h=f,p=c[r];return h<p?Math.max(d,c[r]):Math.max(f,c[r])}var y=d+s,v=c[r]+u;return y>v?Math.max(f,c[r]):Math.max(d,c[r])}function EQ(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 _Q(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,i=e.reverseDirection,l=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,u,f,d;return l.height>0&&l.width>0&&n?(f=Vw({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:l.width,viewBox:c,viewBoxDimension:c.width}),d=Vw({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:l.height,viewBox:c,viewBoxDimension:c.height}),u=EQ({translateX:f,translateY:d,useTranslate3d:s})):u=OQ,{cssProperties:u,cssClasses:AQ({translateX:f,translateY:d,coordinate:n})}}function Ks(e){"@babel/helpers - typeof";return Ks=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},Ks(e)}function Yw(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 Kw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yw(Object(n),!0).forEach(function(r){Dg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TQ(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,FM(r.key),r)}}function CQ(e,t,n){return t&&TQ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function MQ(e,t,n){return t=vh(t),kQ(e,qM()?Reflect.construct(t,n||[],vh(e).constructor):t.apply(e,n))}function kQ(e,t){if(t&&(Ks(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PQ(e)}function PQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qM=function(){return!!e})()}function vh(e){return vh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vh(e)}function $Q(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rg(e,t)}function Rg(e,t){return Rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Rg(e,t)}function Dg(e,t,n){return t=FM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FM(e){var t=RQ(e,"string");return Ks(t)=="symbol"?t:t+""}function RQ(e,t){if(Ks(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ks(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xw=1,DQ=function(e){function t(){var n;NQ(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=MQ(this,t,[].concat(a)),Dg(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Dg(n,"handleKeyDown",function(l){if(l.key==="Escape"){var s,c,u,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(c=n.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&s!==void 0?s:0,y:(u=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),n}return $Q(t,e),CQ(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>Xw||Math.abs(r.height-this.state.lastBoundingBox.height)>Xw)&&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,s=a.animationDuration,c=a.animationEasing,u=a.children,f=a.coordinate,d=a.hasPayload,h=a.isAnimationActive,p=a.offset,y=a.position,v=a.reverseDirection,b=a.useTranslate3d,g=a.viewBox,j=a.wrapperStyle,x=_Q({allowEscapeViewBox:l,coordinate:f,offsetTopLeft:p,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:g}),m=x.cssClasses,S=x.cssProperties,w=Kw(Kw({transition:h&&i?"transform ".concat(s,"ms ").concat(c):void 0},S),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&d?"visible":"hidden",position:"absolute",top:0,left:0},j);return N.createElement("div",{tabIndex:-1,className:m,style:w,ref:function(_){r.wrapperNode=_}},u)}}])}(O.PureComponent),zQ=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ji={isSsr:zQ()};function Xs(e){"@babel/helpers - typeof";return Xs=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},Xs(e)}function Ww(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 Qw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ww(Object(n),!0).forEach(function(r){X0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ww(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BQ(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,VM(r.key),r)}}function IQ(e,t,n){return t&&BQ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UQ(e,t,n){return t=gh(t),HQ(e,GM()?Reflect.construct(t,n||[],gh(e).constructor):t.apply(e,n))}function HQ(e,t){if(t&&(Xs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qQ(e)}function qQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GM=function(){return!!e})()}function gh(e){return gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gh(e)}function FQ(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&&zg(e,t)}function zg(e,t){return zg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},zg(e,t)}function X0(e,t,n){return t=VM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VM(e){var t=GQ(e,"string");return Xs(t)=="symbol"?t:t+""}function GQ(e,t){if(Xs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function VQ(e){return e.dataKey}function YQ(e,t){return N.isValidElement(e)?N.cloneElement(e,t):typeof e=="function"?N.createElement(e,t):N.createElement(jQ,t)}var Sn=function(e){function t(){return LQ(this,t),UQ(this,t,arguments)}return FQ(t,e),IQ(t,[{key:"render",value:function(){var r=this,a=this.props,i=a.active,l=a.allowEscapeViewBox,s=a.animationDuration,c=a.animationEasing,u=a.content,f=a.coordinate,d=a.filterNull,h=a.isAnimationActive,p=a.offset,y=a.payload,v=a.payloadUniqBy,b=a.position,g=a.reverseDirection,j=a.useTranslate3d,x=a.viewBox,m=a.wrapperStyle,S=y??[];d&&S.length&&(S=RM(y.filter(function(A){return A.value!=null&&(A.hide!==!0||r.props.includeHidden)}),v,VQ));var w=S.length>0;return N.createElement(DQ,{allowEscapeViewBox:l,animationDuration:s,animationEasing:c,isAnimationActive:h,active:i,coordinate:f,hasPayload:w,offset:p,position:b,reverseDirection:g,useTranslate3d:j,viewBox:x,wrapperStyle:m},YQ(u,Qw(Qw({},this.props),{},{payload:S})))}}])}(O.PureComponent);X0(Sn,"displayName","Tooltip");X0(Sn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ji.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 KQ=Hr,XQ=function(){return KQ.Date.now()},WQ=XQ,QQ=/\s/;function ZQ(e){for(var t=e.length;t--&&QQ.test(e.charAt(t)););return t}var JQ=ZQ,eZ=JQ,tZ=/^\s+/;function nZ(e){return e&&e.slice(0,eZ(e)+1).replace(tZ,"")}var rZ=nZ,aZ=rZ,Zw=xi,iZ=ko,Jw=NaN,lZ=/^[-+]0x[0-9a-f]+$/i,sZ=/^0b[01]+$/i,oZ=/^0o[0-7]+$/i,cZ=parseInt;function uZ(e){if(typeof e=="number")return e;if(iZ(e))return Jw;if(Zw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Zw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=aZ(e);var n=sZ.test(e);return n||oZ.test(e)?cZ(e.slice(2),n?2:8):lZ.test(e)?Jw:+e}var YM=uZ,fZ=xi,Ry=WQ,e2=YM,dZ="Expected a function",hZ=Math.max,pZ=Math.min;function mZ(e,t,n){var r,a,i,l,s,c,u=0,f=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(dZ);t=e2(t)||0,fZ(n)&&(f=!!n.leading,d="maxWait"in n,i=d?hZ(e2(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function p(w){var A=r,_=a;return r=a=void 0,u=w,l=e.apply(_,A),l}function y(w){return u=w,s=setTimeout(g,t),f?p(w):l}function v(w){var A=w-c,_=w-u,E=t-A;return d?pZ(E,i-_):E}function b(w){var A=w-c,_=w-u;return c===void 0||A>=t||A<0||d&&_>=i}function g(){var w=Ry();if(b(w))return j(w);s=setTimeout(g,v(w))}function j(w){return s=void 0,h&&r?p(w):(r=a=void 0,l)}function x(){s!==void 0&&clearTimeout(s),u=0,r=c=a=s=void 0}function m(){return s===void 0?l:j(Ry())}function S(){var w=Ry(),A=b(w);if(r=arguments,a=this,c=w,A){if(s===void 0)return y(c);if(d)return clearTimeout(s),s=setTimeout(g,t),p(c)}return s===void 0&&(s=setTimeout(g,t)),l}return S.cancel=x,S.flush=m,S}var yZ=mZ,vZ=yZ,gZ=xi,bZ="Expected a function";function xZ(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(bZ);return gZ(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),vZ(e,t,{leading:r,maxWait:t,trailing:a})}var jZ=xZ;const KM=Pe(jZ);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)}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 Uf(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){SZ(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 SZ(e,t,n){return t=wZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wZ(e){var t=OZ(e,"string");return lu(t)=="symbol"?t:t+""}function OZ(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 AZ(e,t){return TZ(e)||NZ(e,t)||_Z(e,t)||EZ()}function EZ(){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 _Z(e,t){if(e){if(typeof e=="string")return n2(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 n2(e,t)}}function n2(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 NZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.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 s}}function TZ(e){if(Array.isArray(e))return e}var Hf=O.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,s=e.height,c=s===void 0?"100%":s,u=e.minWidth,f=u===void 0?0:u,d=e.minHeight,h=e.maxHeight,p=e.children,y=e.debounce,v=y===void 0?0:y,b=e.id,g=e.className,j=e.onResize,x=e.style,m=x===void 0?{}:x,S=O.useRef(null),w=O.useRef();w.current=j,O.useImperativeHandle(t,function(){return Object.defineProperty(S.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),S.current},configurable:!0})});var A=O.useState({containerWidth:a.width,containerHeight:a.height}),_=AZ(A,2),E=_[0],C=_[1],k=O.useCallback(function(I,D){C(function($){var T=Math.round(I),z=Math.round(D);return $.containerWidth===T&&$.containerHeight===z?$:{containerWidth:T,containerHeight:z}})},[]);O.useEffect(function(){var I=function(F){var V,Y=F[0].contentRect,K=Y.width,ae=Y.height;k(K,ae),(V=w.current)===null||V===void 0||V.call(w,K,ae)};v>0&&(I=KM(I,v,{trailing:!0,leading:!1}));var D=new ResizeObserver(I),$=S.current.getBoundingClientRect(),T=$.width,z=$.height;return k(T,z),D.observe(S.current),function(){D.disconnect()}},[k,v]);var M=O.useMemo(function(){var I=E.containerWidth,D=E.containerHeight;if(I<0||D<0)return null;mr(qi(l)||qi(c),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,l,c),mr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var $=qi(l)?I:l,T=qi(c)?D:c;n&&n>0&&($?T=$/n:T&&($=T*n),h&&T>h&&(T=h)),mr($>0||T>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,$,T,l,c,f,d,n);var z=!Array.isArray(p)&&da(p.type).endsWith("Chart");return N.Children.map(p,function(B){return N.isValidElement(B)?O.cloneElement(B,Uf({width:$,height:T},z?{style:Uf({height:"100%",width:"100%",maxHeight:T,maxWidth:$},B.props.style)}:{})):B})},[n,p,c,h,d,f,E,l]);return N.createElement("div",{id:b?"".concat(b):void 0,className:ye("recharts-responsive-container",g),style:Uf(Uf({},m),{},{width:l,height:c,minWidth:f,minHeight:d,maxHeight:h}),ref:S},M)}),cm=function(t){return null};cm.displayName="Cell";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 r2(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 Lg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r2(Object(n),!0).forEach(function(r){CZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CZ(e,t,n){return t=MZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MZ(e){var t=kZ(e,"string");return su(t)=="symbol"?t:t+""}function kZ(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)}var Hl={widthCache:{},cacheCount:0},PZ=2e3,$Z={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},a2="recharts_measurement_span";function RZ(e){var t=Lg({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Cc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ji.isSsr)return{width:0,height:0};var r=RZ(n),a=JSON.stringify({text:t,copyStyle:r});if(Hl.widthCache[a])return Hl.widthCache[a];try{var i=document.getElementById(a2);i||(i=document.createElement("span"),i.setAttribute("id",a2),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var l=Lg(Lg({},$Z),r);Object.assign(i.style,l),i.textContent="".concat(t);var s=i.getBoundingClientRect(),c={width:s.width,height:s.height};return Hl.widthCache[a]=c,++Hl.cacheCount>PZ&&(Hl.cacheCount=0,Hl.widthCache={}),c}catch{return{width:0,height:0}}},DZ=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 bh(e,t){return IZ(e)||BZ(e,t)||LZ(e,t)||zZ()}function zZ(){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 LZ(e,t){if(e){if(typeof e=="string")return i2(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 i2(e,t)}}function i2(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 BZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,s=[],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)&&(s.push(r.value),s.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 s}}function IZ(e){if(Array.isArray(e))return e}function UZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qZ(r.key),r)}}function HZ(e,t,n){return t&&l2(e.prototype,t),n&&l2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qZ(e){var t=FZ(e,"string");return ou(t)=="symbol"?t:t+""}function FZ(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 String(e)}var s2=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,o2=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,GZ=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,VZ=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,XM={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},YZ=Object.keys(XM),os="NaN";function KZ(e,t){return e*XM[t]}var qf=function(){function e(t,n){UZ(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!GZ.test(n)&&(this.num=NaN,this.unit=""),YZ.includes(n)&&(this.num=KZ(t,n),this.unit="px")}return HZ(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=VZ.exec(n))!==null&&r!==void 0?r:[],i=bh(a,3),l=i[1],s=i[2];return new e(parseFloat(l),s??"")}}])}();function WM(e){if(e.includes(os))return os;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=s2.exec(t))!==null&&n!==void 0?n:[],a=bh(r,4),i=a[1],l=a[2],s=a[3],c=qf.parse(i??""),u=qf.parse(s??""),f=l==="*"?c.multiply(u):c.divide(u);if(f.isNaN())return os;t=t.replace(s2,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,h=(d=o2.exec(t))!==null&&d!==void 0?d:[],p=bh(h,4),y=p[1],v=p[2],b=p[3],g=qf.parse(y??""),j=qf.parse(b??""),x=v==="+"?g.add(j):g.subtract(j);if(x.isNaN())return os;t=t.replace(o2,x.toString())}return t}var c2=/\(([^()]*)\)/;function XZ(e){for(var t=e;t.includes("(");){var n=c2.exec(t),r=bh(n,2),a=r[1];t=t.replace(c2,WM(a))}return t}function WZ(e){var t=e.replace(/\s+/g,"");return t=XZ(t),t=WM(t),t}function QZ(e){try{return WZ(e)}catch{return os}}function Dy(e){var t=QZ(e.slice(5,-1));return t===os?"":t}var ZZ=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],JZ=["dx","dy","angle","className","breakAll"];function Bg(){return Bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bg.apply(this,arguments)}function u2(e,t){if(e==null)return{};var n=eJ(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 eJ(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 f2(e,t){return aJ(e)||rJ(e,t)||nJ(e,t)||tJ()}function tJ(){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 nJ(e,t){if(e){if(typeof e=="string")return d2(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 d2(e,t)}}function d2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,s=[],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)&&(s.push(r.value),s.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 s}}function aJ(e){if(Array.isArray(e))return e}var QM=/[ \f\n\r\t\v\u2028\u2029]+/,ZM=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var i=[];me(n)||(r?i=n.toString().split(""):i=n.toString().split(QM));var l=i.map(function(c){return{word:c,width:Cc(c,a).width}}),s=r?0:Cc(" ",a).width;return{wordsWithComputedWidth:l,spaceWidth:s}}catch{return null}},iJ=function(t,n,r,a,i){var l=t.maxLines,s=t.children,c=t.style,u=t.breakAll,f=X(l),d=s,h=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $.reduce(function(T,z){var B=z.word,F=z.width,V=T[T.length-1];if(V&&(a==null||i||V.width+F+r<Number(a)))V.words.push(B),V.width+=F+r;else{var Y={words:[B],width:F};T.push(Y)}return T},[])},p=h(n),y=function($){return $.reduce(function(T,z){return T.width>z.width?T:z})};if(!f)return p;for(var v="…",b=function($){var T=d.slice(0,$),z=ZM({breakAll:u,style:c,children:T+v}).wordsWithComputedWidth,B=h(z),F=B.length>l||y(B).width>Number(a);return[F,B]},g=0,j=d.length-1,x=0,m;g<=j&&x<=d.length-1;){var S=Math.floor((g+j)/2),w=S-1,A=b(w),_=f2(A,2),E=_[0],C=_[1],k=b(S),M=f2(k,1),I=M[0];if(!E&&!I&&(g=S+1),E&&I&&(j=S-1),!E&&I){m=C;break}x++}return m||p},h2=function(t){var n=me(t)?[]:t.toString().split(QM);return[{words:n}]},lJ=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,l=t.breakAll,s=t.maxLines;if((n||r)&&!ji.isSsr){var c,u,f=ZM({breakAll:l,children:a,style:i});if(f){var d=f.wordsWithComputedWidth,h=f.spaceWidth;c=d,u=h}else return h2(a);return iJ({breakAll:l,children:a,maxLines:s,style:i},c,u,n,r)}return h2(a)},p2="#808080",bl=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,l=t.lineHeight,s=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,p=h===void 0?"start":h,y=t.verticalAnchor,v=y===void 0?"end":y,b=t.fill,g=b===void 0?p2:b,j=u2(t,ZZ),x=O.useMemo(function(){return lJ({breakAll:j.breakAll,children:j.children,maxLines:j.maxLines,scaleToFit:d,style:j.style,width:j.width})},[j.breakAll,j.children,j.maxLines,d,j.style,j.width]),m=j.dx,S=j.dy,w=j.angle,A=j.className,_=j.breakAll,E=u2(j,JZ);if(!_t(r)||!_t(i))return null;var C=r+(X(m)?m:0),k=i+(X(S)?S:0),M;switch(v){case"start":M=Dy("calc(".concat(u,")"));break;case"middle":M=Dy("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:M=Dy("calc(".concat(x.length-1," * -").concat(s,")"));break}var I=[];if(d){var D=x[0].width,$=j.width;I.push("scale(".concat((X($)?$/D:1)/D,")"))}return w&&I.push("rotate(".concat(w,", ").concat(C,", ").concat(k,")")),I.length&&(E.transform=I.join(" ")),N.createElement("text",Bg({},le(E,!0),{x:C,y:k,className:ye("recharts-text",A),textAnchor:p,fill:g.includes("url")?p2:g}),x.map(function(T,z){var B=T.words.join(_?"":" ");return N.createElement("tspan",{x:C,dy:z===0?M:s,key:"".concat(B,"-").concat(z)},B)}))};function fi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function sJ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function W0(e){let t,n,r;e.length!==2?(t=fi,n=(s,c)=>fi(e(s),c),r=(s,c)=>e(s)-c):(t=e===fi||e===sJ?e:oJ,n=e,r=e);function a(s,c,u=0,f=s.length){if(u<f){if(t(c,c)!==0)return f;do{const d=u+f>>>1;n(s[d],c)<0?u=d+1:f=d}while(u<f)}return u}function i(s,c,u=0,f=s.length){if(u<f){if(t(c,c)!==0)return f;do{const d=u+f>>>1;n(s[d],c)<=0?u=d+1:f=d}while(u<f)}return u}function l(s,c,u=0,f=s.length){const d=a(s,c,u,f-1);return d>u&&r(s[d-1],c)>-r(s[d],c)?d-1:d}return{left:a,center:l,right:i}}function oJ(){return 0}function JM(e){return e===null?NaN:+e}function*cJ(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const uJ=W0(fi),cf=uJ.right;W0(JM).center;class m2 extends Map{constructor(t,n=hJ){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(y2(this,t))}has(t){return super.has(y2(this,t))}set(t,n){return super.set(fJ(this,t),n)}delete(t){return super.delete(dJ(this,t))}}function y2({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function fJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function dJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function hJ(e){return e!==null&&typeof e=="object"?e.valueOf():e}function pJ(e=fi){if(e===fi)return ek;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 ek(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const mJ=Math.sqrt(50),yJ=Math.sqrt(10),vJ=Math.sqrt(2);function xh(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>=mJ?10:i>=yJ?5:i>=vJ?2:1;let s,c,u;return a<0?(u=Math.pow(10,-a)/l,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,a)*l,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=n&&n<2?xh(e,t,n*2):[s,c,u]}function Ig(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?xh(t,e,n):xh(e,t,n);if(!(i>=a))return[];const s=i-a+1,c=new Array(s);if(r)if(l<0)for(let u=0;u<s;++u)c[u]=(i-u)/-l;else for(let u=0;u<s;++u)c[u]=(i-u)*l;else if(l<0)for(let u=0;u<s;++u)c[u]=(a+u)/-l;else for(let u=0;u<s;++u)c[u]=(a+u)*l;return c}function Ug(e,t,n){return t=+t,e=+e,n=+n,xh(e,t,n)[2]}function Hg(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?Ug(t,e,n):Ug(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function v2(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function g2(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function tk(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?ek:pJ(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),p=Math.max(n,Math.floor(t-u*d/c+h)),y=Math.min(r,Math.floor(t+(c-u)*d/c+h));tk(e,t,p,y,a)}const i=e[t];let l=n,s=r;for(nc(e,n,t),a(e[r],i)>0&&nc(e,n,r);l<s;){for(nc(e,l,s),++l,--s;a(e[l],i)<0;)++l;for(;a(e[s],i)>0;)--s}a(e[n],i)===0?nc(e,n,s):(++s,nc(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function nc(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function gJ(e,t,n){if(e=Float64Array.from(cJ(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return g2(e);if(t>=1)return v2(e);var r,a=(r-1)*t,i=Math.floor(a),l=v2(tk(e,i).subarray(0,i+1)),s=g2(e.subarray(i+1));return l+(s-l)*(a-i)}}function bJ(e,t,n=JM){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),s=+n(e[i+1],i+1,e);return l+(s-l)*(a-i)}}function xJ(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 ir(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function _a(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 qg=Symbol("implicit");function Q0(){var e=new m2,t=[],n=[],r=qg;function a(i){let l=e.get(i);if(l===void 0){if(r!==qg)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 m2;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 Q0(t,n).unknown(r)},ir.apply(a,arguments),a}function cu(){var e=Q0().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,l,s=!1,c=0,u=0,f=.5;delete e.unknown;function d(){var h=t().length,p=a<r,y=p?a:r,v=p?r:a;i=(v-y)/Math.max(1,h-c+u*2),s&&(i=Math.floor(i)),y+=(v-y-i*(h-c))*f,l=i*(1-c),s&&(y=Math.round(y),l=Math.round(l));var b=xJ(h).map(function(g){return y+i*g});return n(p?b.reverse():b)}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,s=!0,d()},e.bandwidth=function(){return l},e.step=function(){return i},e.round=function(h){return arguments.length?(s=!!h,d()):s},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 cu(t(),[r,a]).round(s).paddingInner(c).paddingOuter(u).align(f)},ir.apply(d(),arguments)}function nk(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return nk(t())},e}function Mc(){return nk(cu.apply(null,arguments).paddingInner(1))}function Z0(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function rk(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function uf(){}var uu=.7,jh=1/uu,js="\\s*([+-]?\\d+)\\s*",fu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Rr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jJ=/^#([0-9a-f]{3,8})$/,SJ=new RegExp(`^rgb\\(${js},${js},${js}\\)$`),wJ=new RegExp(`^rgb\\(${Rr},${Rr},${Rr}\\)$`),OJ=new RegExp(`^rgba\\(${js},${js},${js},${fu}\\)$`),AJ=new RegExp(`^rgba\\(${Rr},${Rr},${Rr},${fu}\\)$`),EJ=new RegExp(`^hsl\\(${fu},${Rr},${Rr}\\)$`),_J=new RegExp(`^hsla\\(${fu},${Rr},${Rr},${fu}\\)$`),b2={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};Z0(uf,du,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:x2,formatHex:x2,formatHex8:NJ,formatHsl:TJ,formatRgb:j2,toString:j2});function x2(){return this.rgb().formatHex()}function NJ(){return this.rgb().formatHex8()}function TJ(){return ak(this).formatHsl()}function j2(){return this.rgb().formatRgb()}function du(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=jJ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?S2(t):n===3?new fn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ff(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ff(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=SJ.exec(e))?new fn(t[1],t[2],t[3],1):(t=wJ.exec(e))?new fn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=OJ.exec(e))?Ff(t[1],t[2],t[3],t[4]):(t=AJ.exec(e))?Ff(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=EJ.exec(e))?A2(t[1],t[2]/100,t[3]/100,1):(t=_J.exec(e))?A2(t[1],t[2]/100,t[3]/100,t[4]):b2.hasOwnProperty(e)?S2(b2[e]):e==="transparent"?new fn(NaN,NaN,NaN,0):null}function S2(e){return new fn(e>>16&255,e>>8&255,e&255,1)}function Ff(e,t,n,r){return r<=0&&(e=t=n=NaN),new fn(e,t,n,r)}function CJ(e){return e instanceof uf||(e=du(e)),e?(e=e.rgb(),new fn(e.r,e.g,e.b,e.opacity)):new fn}function Fg(e,t,n,r){return arguments.length===1?CJ(e):new fn(e,t,n,r??1)}function fn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Z0(fn,Fg,rk(uf,{brighter(e){return e=e==null?jh:Math.pow(jh,e),new fn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?uu:Math.pow(uu,e),new fn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new fn(ll(this.r),ll(this.g),ll(this.b),Sh(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:w2,formatHex:w2,formatHex8:MJ,formatRgb:O2,toString:O2}));function w2(){return`#${Fi(this.r)}${Fi(this.g)}${Fi(this.b)}`}function MJ(){return`#${Fi(this.r)}${Fi(this.g)}${Fi(this.b)}${Fi((isNaN(this.opacity)?1:this.opacity)*255)}`}function O2(){const e=Sh(this.opacity);return`${e===1?"rgb(":"rgba("}${ll(this.r)}, ${ll(this.g)}, ${ll(this.b)}${e===1?")":`, ${e})`}`}function Sh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ll(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fi(e){return e=ll(e),(e<16?"0":"")+e.toString(16)}function A2(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new hr(e,t,n,r)}function ak(e){if(e instanceof hr)return new hr(e.h,e.s,e.l,e.opacity);if(e instanceof uf||(e=du(e)),!e)return new hr;if(e instanceof hr)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,s=i-a,c=(i+a)/2;return s?(t===i?l=(n-r)/s+(n<r)*6:n===i?l=(r-t)/s+2:l=(t-n)/s+4,s/=c<.5?i+a:2-i-a,l*=60):s=c>0&&c<1?0:l,new hr(l,s,c,e.opacity)}function kJ(e,t,n,r){return arguments.length===1?ak(e):new hr(e,t,n,r??1)}function hr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Z0(hr,kJ,rk(uf,{brighter(e){return e=e==null?jh:Math.pow(jh,e),new hr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?uu:Math.pow(uu,e),new hr(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 fn(zy(e>=240?e-240:e+120,a,r),zy(e,a,r),zy(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new hr(E2(this.h),Gf(this.s),Gf(this.l),Sh(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=Sh(this.opacity);return`${e===1?"hsl(":"hsla("}${E2(this.h)}, ${Gf(this.s)*100}%, ${Gf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function E2(e){return e=(e||0)%360,e<0?e+360:e}function Gf(e){return Math.max(0,Math.min(1,e||0))}function zy(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 J0=e=>()=>e;function PJ(e,t){return function(n){return e+n*t}}function $J(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 RJ(e){return(e=+e)==1?ik:function(t,n){return n-t?$J(t,n,e):J0(isNaN(t)?n:t)}}function ik(e,t){var n=t-e;return n?PJ(e,n):J0(isNaN(e)?t:e)}const _2=function e(t){var n=RJ(t);function r(a,i){var l=n((a=Fg(a)).r,(i=Fg(i)).r),s=n(a.g,i.g),c=n(a.b,i.b),u=ik(a.opacity,i.opacity);return function(f){return a.r=l(f),a.g=s(f),a.b=c(f),a.opacity=u(f),a+""}}return r.gamma=e,r}(1);function DJ(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 zJ(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function LJ(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]=Uo(e[l],t[l]);for(;l<n;++l)i[l]=t[l];return function(s){for(l=0;l<r;++l)i[l]=a[l](s);return i}}function BJ(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function wh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function IJ(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]=Uo(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var Gg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ly=new RegExp(Gg.source,"g");function UJ(e){return function(){return e}}function HJ(e){return function(t){return e(t)+""}}function qJ(e,t){var n=Gg.lastIndex=Ly.lastIndex=0,r,a,i,l=-1,s=[],c=[];for(e=e+"",t=t+"";(r=Gg.exec(e))&&(a=Ly.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),s[l]?s[l]+=i:s[++l]=i),(r=r[0])===(a=a[0])?s[l]?s[l]+=a:s[++l]=a:(s[++l]=null,c.push({i:l,x:wh(r,a)})),n=Ly.lastIndex;return n<t.length&&(i=t.slice(n),s[l]?s[l]+=i:s[++l]=i),s.length<2?c[0]?HJ(c[0].x):UJ(t):(t=c.length,function(u){for(var f=0,d;f<t;++f)s[(d=c[f]).i]=d.x(u);return s.join("")})}function Uo(e,t){var n=typeof t,r;return t==null||n==="boolean"?J0(t):(n==="number"?wh:n==="string"?(r=du(t))?(t=r,_2):qJ:t instanceof du?_2:t instanceof Date?BJ:zJ(t)?DJ:Array.isArray(t)?LJ:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?IJ:wh)(e,t)}function e1(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function FJ(e,t){t===void 0&&(t=e,e=Uo);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 s=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return i[s](l-s)}}function GJ(e){return function(){return e}}function Oh(e){return+e}var N2=[0,1];function tn(e){return e}function Vg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:GJ(isNaN(t)?NaN:.5)}function VJ(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function YJ(e,t,n){var r=e[0],a=e[1],i=t[0],l=t[1];return a<r?(r=Vg(a,r),i=n(l,i)):(r=Vg(r,a),i=n(i,l)),function(s){return i(r(s))}}function KJ(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]=Vg(e[l],e[l+1]),i[l]=n(t[l],t[l+1]);return function(s){var c=cf(e,s,1,r)-1;return i[c](a[c](s))}}function ff(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function um(){var e=N2,t=N2,n=Uo,r,a,i,l=tn,s,c,u;function f(){var h=Math.min(e.length,t.length);return l!==tn&&(l=VJ(e[0],e[h-1])),s=h>2?KJ:YJ,c=u=null,d}function d(h){return h==null||isNaN(h=+h)?i:(c||(c=s(e.map(r),t,n)))(r(l(h)))}return d.invert=function(h){return l(a((u||(u=s(t,e.map(r),wh)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,Oh),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=e1,f()},d.clamp=function(h){return arguments.length?(l=h?!0:tn,f()):l!==tn},d.interpolate=function(h){return arguments.length?(n=h,f()):n},d.unknown=function(h){return arguments.length?(i=h,d):i},function(h,p){return r=h,a=p,f()}}function t1(){return um()(tn,tn)}function XJ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ah(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 Ws(e){return e=Ah(Math.abs(e)),e?e[1]:NaN}function WJ(e,t){return function(n,r){for(var a=n.length,i=[],l=0,s=e[0],c=0;a>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(n.substring(a-=s,a+s)),!((c+=s+1)>r));)s=e[l=(l+1)%e.length];return i.reverse().join(t)}}function QJ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var ZJ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hu(e){if(!(t=ZJ.exec(e)))throw new Error("invalid format: "+e);var t;return new n1({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]})}hu.prototype=n1.prototype;function n1(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+""}n1.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 JJ(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 Eh;function eee(e,t){var n=Ah(e,t);if(!n)return Eh=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(Eh=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")+Ah(e,Math.max(0,t+i-1))[0]}function T2(e,t){var n=Ah(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 C2={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:XJ,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)=>T2(e*100,t),r:T2,s:eee,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function M2(e){return e}var k2=Array.prototype.map,P2=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function tee(e){var t=e.grouping===void 0||e.thousands===void 0?M2:WJ(k2.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?M2:QJ(k2.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(d,h){d=hu(d);var p=d.fill,y=d.align,v=d.sign,b=d.symbol,g=d.zero,j=d.width,x=d.comma,m=d.precision,S=d.trim,w=d.type;w==="n"?(x=!0,w="g"):C2[w]||(m===void 0&&(m=12),S=!0,w="g"),(g||p==="0"&&y==="=")&&(g=!0,p="0",y="=");var A=(h&&h.prefix!==void 0?h.prefix:"")+(b==="$"?n:b==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():""),_=(b==="$"?r:/[%p]/.test(w)?l:"")+(h&&h.suffix!==void 0?h.suffix:""),E=C2[w],C=/[defgprs%]/.test(w);m=m===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m));function k(M){var I=A,D=_,$,T,z;if(w==="c")D=E(M)+D,M="";else{M=+M;var B=M<0||1/M<0;if(M=isNaN(M)?c:E(Math.abs(M),m),S&&(M=JJ(M)),B&&+M==0&&v!=="+"&&(B=!1),I=(B?v==="("?v:s:v==="-"||v==="("?"":v)+I,D=(w==="s"&&!isNaN(M)&&Eh!==void 0?P2[8+Eh/3]:"")+D+(B&&v==="("?")":""),C){for($=-1,T=M.length;++$<T;)if(z=M.charCodeAt($),48>z||z>57){D=(z===46?a+M.slice($+1):M.slice($))+D,M=M.slice(0,$);break}}}x&&!g&&(M=t(M,1/0));var F=I.length+M.length+D.length,V=F<j?new Array(j-F+1).join(p):"";switch(x&&g&&(M=t(V+M,V.length?j-D.length:1/0),V=""),y){case"<":M=I+M+D+V;break;case"=":M=I+V+M+D;break;case"^":M=V.slice(0,F=V.length>>1)+I+M+D+V.slice(F);break;default:M=V+I+M+D;break}return i(M)}return k.toString=function(){return d+""},k}function f(d,h){var p=Math.max(-8,Math.min(8,Math.floor(Ws(h)/3)))*3,y=Math.pow(10,-p),v=u((d=hu(d),d.type="f",d),{suffix:P2[8+p/3]});return function(b){return v(y*b)}}return{format:u,formatPrefix:f}}var Vf,r1,lk;nee({thousands:",",grouping:[3],currency:["$",""]});function nee(e){return Vf=tee(e),r1=Vf.format,lk=Vf.formatPrefix,Vf}function ree(e){return Math.max(0,-Ws(Math.abs(e)))}function aee(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ws(t)/3)))*3-Ws(Math.abs(e)))}function iee(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ws(t)-Ws(e))+1}function sk(e,t,n,r){var a=Hg(e,t,n),i;switch(r=hu(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=aee(a,l))&&(r.precision=i),lk(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=iee(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=ree(a))&&(r.precision=i-(r.type==="%")*2);break}}return r1(r)}function Si(e){var t=e.domain;return e.ticks=function(n){var r=t();return Ig(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return sk(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],s=r[i],c,u,f=10;for(s<l&&(u=l,l=s,s=u,u=a,a=i,i=u);f-- >0;){if(u=Ug(l,s,n),u===c)return r[a]=l,r[i]=s,t(r);if(u>0)l=Math.floor(l/u)*u,s=Math.ceil(s/u)*u;else if(u<0)l=Math.ceil(l*u)/u,s=Math.floor(s*u)/u;else break;c=u}return e},e}function _h(){var e=t1();return e.copy=function(){return ff(e,_h())},ir.apply(e,arguments),Si(e)}function ok(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,Oh),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return ok(e).unknown(t)},e=arguments.length?Array.from(e,Oh):[0,1],Si(n)}function ck(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 $2(e){return Math.log(e)}function R2(e){return Math.exp(e)}function lee(e){return-Math.log(-e)}function see(e){return-Math.exp(-e)}function oee(e){return isFinite(e)?+("1e"+e):e<0?0:e}function cee(e){return e===10?oee:e===Math.E?Math.exp:t=>Math.pow(e,t)}function uee(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 D2(e){return(t,n)=>-e(-t,n)}function a1(e){const t=e($2,R2),n=t.domain;let r=10,a,i;function l(){return a=uee(r),i=cee(r),n()[0]<0?(a=D2(a),i=D2(i),e(lee,see)):e($2,R2),t}return t.base=function(s){return arguments.length?(r=+s,l()):r},t.domain=function(s){return arguments.length?(n(s),l()):n()},t.ticks=s=>{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),p=a(f),y,v;const b=s==null?10:+s;let g=[];if(!(r%1)&&p-h<b){if(h=Math.floor(h),p=Math.ceil(p),u>0){for(;h<=p;++h)for(y=1;y<r;++y)if(v=h<0?y/i(-h):y*i(h),!(v<u)){if(v>f)break;g.push(v)}}else for(;h<=p;++h)for(y=r-1;y>=1;--y)if(v=h>0?y/i(-h):y*i(h),!(v<u)){if(v>f)break;g.push(v)}g.length*2<b&&(g=Ig(u,f,b))}else g=Ig(h,p,Math.min(p-h,b)).map(i);return d?g.reverse():g},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=hu(c)).precision==null&&(c.trim=!0),c=r1(c)),s===1/0)return c;const u=Math.max(1,r*s/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(ck(n(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function uk(){const e=a1(um()).domain([1,10]);return e.copy=()=>ff(e,uk()).base(e.base()),ir.apply(e,arguments),e}function z2(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function L2(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function i1(e){var t=1,n=e(z2(t),L2(t));return n.constant=function(r){return arguments.length?e(z2(t=+r),L2(t)):t},Si(n)}function fk(){var e=i1(um());return e.copy=function(){return ff(e,fk()).constant(e.constant())},ir.apply(e,arguments)}function B2(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function fee(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function dee(e){return e<0?-e*e:e*e}function l1(e){var t=e(tn,tn),n=1;function r(){return n===1?e(tn,tn):n===.5?e(fee,dee):e(B2(n),B2(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Si(t)}function s1(){var e=l1(um());return e.copy=function(){return ff(e,s1()).exponent(e.exponent())},ir.apply(e,arguments),e}function hee(){return s1.apply(null,arguments).exponent(.5)}function I2(e){return Math.sign(e)*e*e}function pee(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function dk(){var e=t1(),t=[0,1],n=!1,r;function a(i){var l=pee(e(i));return isNaN(l)?r:n?Math.round(l):l}return a.invert=function(i){return e.invert(I2(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,Oh)).map(I2)),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 dk(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},ir.apply(a,arguments),Si(a)}function hk(){var e=[],t=[],n=[],r;function a(){var l=0,s=Math.max(1,t.length);for(n=new Array(s-1);++l<s;)n[l-1]=bJ(e,l/s);return i}function i(l){return l==null||isNaN(l=+l)?r:t[cf(n,l)]}return i.invertExtent=function(l){var s=t.indexOf(l);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},i.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let s of l)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(fi),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 hk().domain(e).range(t).unknown(r)},ir.apply(i,arguments)}function pk(){var e=0,t=1,n=1,r=[.5],a=[0,1],i;function l(c){return c!=null&&c<=c?a[cf(r,c,0,n)]:i}function s(){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,s()):[e,t]},l.range=function(c){return arguments.length?(n=(a=Array.from(c)).length-1,s()):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 pk().domain([e,t]).range(a).unknown(i)},ir.apply(Si(l),arguments)}function mk(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[cf(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 mk().domain(e).range(t).unknown(n)},ir.apply(a,arguments)}const By=new Date,Iy=new Date;function Tt(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),s=a.ceil(i);return i-l<s-i?l:s},a.offset=(i,l)=>(t(i=new Date(+i),l==null?1:Math.floor(l)),i),a.range=(i,l,s)=>{const c=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i<l)||!(s>0))return c;let u;do c.push(u=new Date(+i)),t(i,s),e(i);while(u<i&&i<l);return c},a.filter=i=>Tt(l=>{if(l>=l)for(;e(l),!i(l);)l.setTime(l-1)},(l,s)=>{if(l>=l)if(s<0)for(;++s<=0;)for(;t(l,-1),!i(l););else for(;--s>=0;)for(;t(l,1),!i(l););}),n&&(a.count=(i,l)=>(By.setTime(+i),Iy.setTime(+l),e(By),e(Iy),Math.floor(n(By,Iy))),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 Nh=Tt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Nh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Tt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Nh);Nh.range;const ia=1e3,Qn=ia*60,la=Qn*60,ja=la*24,o1=ja*7,U2=ja*30,Uy=ja*365,Gi=Tt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ia)},(e,t)=>(t-e)/ia,e=>e.getUTCSeconds());Gi.range;const c1=Tt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ia)},(e,t)=>{e.setTime(+e+t*Qn)},(e,t)=>(t-e)/Qn,e=>e.getMinutes());c1.range;const u1=Tt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Qn)},(e,t)=>(t-e)/Qn,e=>e.getUTCMinutes());u1.range;const f1=Tt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ia-e.getMinutes()*Qn)},(e,t)=>{e.setTime(+e+t*la)},(e,t)=>(t-e)/la,e=>e.getHours());f1.range;const d1=Tt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*la)},(e,t)=>(t-e)/la,e=>e.getUTCHours());d1.range;const df=Tt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Qn)/ja,e=>e.getDate()-1);df.range;const fm=Tt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ja,e=>e.getUTCDate()-1);fm.range;const yk=Tt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ja,e=>Math.floor(e/ja));yk.range;function kl(e){return Tt(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())*Qn)/o1)}const dm=kl(0),Th=kl(1),mee=kl(2),yee=kl(3),Qs=kl(4),vee=kl(5),gee=kl(6);dm.range;Th.range;mee.range;yee.range;Qs.range;vee.range;gee.range;function Pl(e){return Tt(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)/o1)}const hm=Pl(0),Ch=Pl(1),bee=Pl(2),xee=Pl(3),Zs=Pl(4),jee=Pl(5),See=Pl(6);hm.range;Ch.range;bee.range;xee.range;Zs.range;jee.range;See.range;const h1=Tt(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());h1.range;const p1=Tt(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());p1.range;const Sa=Tt(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());Sa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Tt(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)});Sa.range;const wa=Tt(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());wa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Tt(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)});wa.range;function vk(e,t,n,r,a,i){const l=[[Gi,1,ia],[Gi,5,5*ia],[Gi,15,15*ia],[Gi,30,30*ia],[i,1,Qn],[i,5,5*Qn],[i,15,15*Qn],[i,30,30*Qn],[a,1,la],[a,3,3*la],[a,6,6*la],[a,12,12*la],[r,1,ja],[r,2,2*ja],[n,1,o1],[t,1,U2],[t,3,3*U2],[e,1,Uy]];function s(u,f,d){const h=f<u;h&&([u,f]=[f,u]);const p=d&&typeof d.range=="function"?d:c(u,f,d),y=p?p.range(u,+f+1):[];return h?y.reverse():y}function c(u,f,d){const h=Math.abs(f-u)/d,p=W0(([,,b])=>b).right(l,h);if(p===l.length)return e.every(Hg(u/Uy,f/Uy,d));if(p===0)return Nh.every(Math.max(Hg(u,f,d),1));const[y,v]=l[h/l[p-1][2]<l[p][2]/h?p-1:p];return y.every(v)}return[s,c]}const[wee,Oee]=vk(wa,p1,hm,yk,d1,u1),[Aee,Eee]=vk(Sa,h1,dm,df,f1,c1);function Hy(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 qy(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 rc(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function _ee(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,l=e.shortDays,s=e.months,c=e.shortMonths,u=ac(a),f=ic(a),d=ac(i),h=ic(i),p=ac(l),y=ic(l),v=ac(s),b=ic(s),g=ac(c),j=ic(c),x={a:z,A:B,b:F,B:V,c:null,d:Y2,e:Y2,f:Wee,g:lte,G:ote,H:Yee,I:Kee,j:Xee,L:gk,m:Qee,M:Zee,p:Y,q:K,Q:W2,s:Q2,S:Jee,u:ete,U:tte,V:nte,w:rte,W:ate,x:null,X:null,y:ite,Y:ste,Z:cte,"%":X2},m={a:ae,A:L,b:Z,B:ce,c:null,d:K2,e:K2,f:hte,g:wte,G:Ate,H:ute,I:fte,j:dte,L:xk,m:pte,M:mte,p:de,q:Ye,Q:W2,s:Q2,S:yte,u:vte,U:gte,V:bte,w:xte,W:jte,x:null,X:null,y:Ste,Y:Ote,Z:Ete,"%":X2},S={a:C,A:k,b:M,B:I,c:D,d:G2,e:G2,f:qee,g:F2,G:q2,H:V2,I:V2,j:Bee,L:Hee,m:Lee,M:Iee,p:E,q:zee,Q:Gee,s:Vee,S:Uee,u:kee,U:Pee,V:$ee,w:Mee,W:Ree,x:$,X:T,y:F2,Y:q2,Z:Dee,"%":Fee};x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),m.x=w(n,m),m.X=w(r,m),m.c=w(t,m);function w(te,oe){return function(ee){var G=[],$e=-1,be=0,at=te.length,ct,mt,Ta;for(ee instanceof Date||(ee=new Date(+ee));++$e<at;)te.charCodeAt($e)===37&&(G.push(te.slice(be,$e)),(mt=H2[ct=te.charAt(++$e)])!=null?ct=te.charAt(++$e):mt=ct==="e"?" ":"0",(Ta=oe[ct])&&(ct=Ta(ee,mt)),G.push(ct),be=$e+1);return G.push(te.slice(be,$e)),G.join("")}}function A(te,oe){return function(ee){var G=rc(1900,void 0,1),$e=_(G,te,ee+="",0),be,at;if($e!=ee.length)return null;if("Q"in G)return new Date(G.Q);if("s"in G)return new Date(G.s*1e3+("L"in G?G.L:0));if(oe&&!("Z"in G)&&(G.Z=0),"p"in G&&(G.H=G.H%12+G.p*12),G.m===void 0&&(G.m="q"in G?G.q:0),"V"in G){if(G.V<1||G.V>53)return null;"w"in G||(G.w=1),"Z"in G?(be=qy(rc(G.y,0,1)),at=be.getUTCDay(),be=at>4||at===0?Ch.ceil(be):Ch(be),be=fm.offset(be,(G.V-1)*7),G.y=be.getUTCFullYear(),G.m=be.getUTCMonth(),G.d=be.getUTCDate()+(G.w+6)%7):(be=Hy(rc(G.y,0,1)),at=be.getDay(),be=at>4||at===0?Th.ceil(be):Th(be),be=df.offset(be,(G.V-1)*7),G.y=be.getFullYear(),G.m=be.getMonth(),G.d=be.getDate()+(G.w+6)%7)}else("W"in G||"U"in G)&&("w"in G||(G.w="u"in G?G.u%7:"W"in G?1:0),at="Z"in G?qy(rc(G.y,0,1)).getUTCDay():Hy(rc(G.y,0,1)).getDay(),G.m=0,G.d="W"in G?(G.w+6)%7+G.W*7-(at+5)%7:G.w+G.U*7-(at+6)%7);return"Z"in G?(G.H+=G.Z/100|0,G.M+=G.Z%100,qy(G)):Hy(G)}}function _(te,oe,ee,G){for(var $e=0,be=oe.length,at=ee.length,ct,mt;$e<be;){if(G>=at)return-1;if(ct=oe.charCodeAt($e++),ct===37){if(ct=oe.charAt($e++),mt=S[ct in H2?oe.charAt($e++):ct],!mt||(G=mt(te,ee,G))<0)return-1}else if(ct!=ee.charCodeAt(G++))return-1}return G}function E(te,oe,ee){var G=u.exec(oe.slice(ee));return G?(te.p=f.get(G[0].toLowerCase()),ee+G[0].length):-1}function C(te,oe,ee){var G=p.exec(oe.slice(ee));return G?(te.w=y.get(G[0].toLowerCase()),ee+G[0].length):-1}function k(te,oe,ee){var G=d.exec(oe.slice(ee));return G?(te.w=h.get(G[0].toLowerCase()),ee+G[0].length):-1}function M(te,oe,ee){var G=g.exec(oe.slice(ee));return G?(te.m=j.get(G[0].toLowerCase()),ee+G[0].length):-1}function I(te,oe,ee){var G=v.exec(oe.slice(ee));return G?(te.m=b.get(G[0].toLowerCase()),ee+G[0].length):-1}function D(te,oe,ee){return _(te,t,oe,ee)}function $(te,oe,ee){return _(te,n,oe,ee)}function T(te,oe,ee){return _(te,r,oe,ee)}function z(te){return l[te.getDay()]}function B(te){return i[te.getDay()]}function F(te){return c[te.getMonth()]}function V(te){return s[te.getMonth()]}function Y(te){return a[+(te.getHours()>=12)]}function K(te){return 1+~~(te.getMonth()/3)}function ae(te){return l[te.getUTCDay()]}function L(te){return i[te.getUTCDay()]}function Z(te){return c[te.getUTCMonth()]}function ce(te){return s[te.getUTCMonth()]}function de(te){return a[+(te.getUTCHours()>=12)]}function Ye(te){return 1+~~(te.getUTCMonth()/3)}return{format:function(te){var oe=w(te+="",x);return oe.toString=function(){return te},oe},parse:function(te){var oe=A(te+="",!1);return oe.toString=function(){return te},oe},utcFormat:function(te){var oe=w(te+="",m);return oe.toString=function(){return te},oe},utcParse:function(te){var oe=A(te+="",!0);return oe.toString=function(){return te},oe}}}var H2={"-":"",_:" ",0:"0"},Dt=/^\s*\d+/,Nee=/^%/,Tee=/[\\^$*+?|[\]().{}]/g;function Te(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 Cee(e){return e.replace(Tee,"\\$&")}function ac(e){return new RegExp("^(?:"+e.map(Cee).join("|")+")","i")}function ic(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Mee(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function kee(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Pee(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function $ee(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Ree(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function q2(e,t,n){var r=Dt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function F2(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Dee(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 zee(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Lee(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function G2(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Bee(e,t,n){var r=Dt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function V2(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Iee(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Uee(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Hee(e,t,n){var r=Dt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function qee(e,t,n){var r=Dt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Fee(e,t,n){var r=Nee.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Gee(e,t,n){var r=Dt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Vee(e,t,n){var r=Dt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Y2(e,t){return Te(e.getDate(),t,2)}function Yee(e,t){return Te(e.getHours(),t,2)}function Kee(e,t){return Te(e.getHours()%12||12,t,2)}function Xee(e,t){return Te(1+df.count(Sa(e),e),t,3)}function gk(e,t){return Te(e.getMilliseconds(),t,3)}function Wee(e,t){return gk(e,t)+"000"}function Qee(e,t){return Te(e.getMonth()+1,t,2)}function Zee(e,t){return Te(e.getMinutes(),t,2)}function Jee(e,t){return Te(e.getSeconds(),t,2)}function ete(e){var t=e.getDay();return t===0?7:t}function tte(e,t){return Te(dm.count(Sa(e)-1,e),t,2)}function bk(e){var t=e.getDay();return t>=4||t===0?Qs(e):Qs.ceil(e)}function nte(e,t){return e=bk(e),Te(Qs.count(Sa(e),e)+(Sa(e).getDay()===4),t,2)}function rte(e){return e.getDay()}function ate(e,t){return Te(Th.count(Sa(e)-1,e),t,2)}function ite(e,t){return Te(e.getFullYear()%100,t,2)}function lte(e,t){return e=bk(e),Te(e.getFullYear()%100,t,2)}function ste(e,t){return Te(e.getFullYear()%1e4,t,4)}function ote(e,t){var n=e.getDay();return e=n>=4||n===0?Qs(e):Qs.ceil(e),Te(e.getFullYear()%1e4,t,4)}function cte(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Te(t/60|0,"0",2)+Te(t%60,"0",2)}function K2(e,t){return Te(e.getUTCDate(),t,2)}function ute(e,t){return Te(e.getUTCHours(),t,2)}function fte(e,t){return Te(e.getUTCHours()%12||12,t,2)}function dte(e,t){return Te(1+fm.count(wa(e),e),t,3)}function xk(e,t){return Te(e.getUTCMilliseconds(),t,3)}function hte(e,t){return xk(e,t)+"000"}function pte(e,t){return Te(e.getUTCMonth()+1,t,2)}function mte(e,t){return Te(e.getUTCMinutes(),t,2)}function yte(e,t){return Te(e.getUTCSeconds(),t,2)}function vte(e){var t=e.getUTCDay();return t===0?7:t}function gte(e,t){return Te(hm.count(wa(e)-1,e),t,2)}function jk(e){var t=e.getUTCDay();return t>=4||t===0?Zs(e):Zs.ceil(e)}function bte(e,t){return e=jk(e),Te(Zs.count(wa(e),e)+(wa(e).getUTCDay()===4),t,2)}function xte(e){return e.getUTCDay()}function jte(e,t){return Te(Ch.count(wa(e)-1,e),t,2)}function Ste(e,t){return Te(e.getUTCFullYear()%100,t,2)}function wte(e,t){return e=jk(e),Te(e.getUTCFullYear()%100,t,2)}function Ote(e,t){return Te(e.getUTCFullYear()%1e4,t,4)}function Ate(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Zs(e):Zs.ceil(e),Te(e.getUTCFullYear()%1e4,t,4)}function Ete(){return"+0000"}function X2(){return"%"}function W2(e){return+e}function Q2(e){return Math.floor(+e/1e3)}var ql,Sk,wk;_te({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 _te(e){return ql=_ee(e),Sk=ql.format,ql.parse,wk=ql.utcFormat,ql.utcParse,ql}function Nte(e){return new Date(e)}function Tte(e){return e instanceof Date?+e:+new Date(+e)}function m1(e,t,n,r,a,i,l,s,c,u){var f=t1(),d=f.invert,h=f.domain,p=u(".%L"),y=u(":%S"),v=u("%I:%M"),b=u("%I %p"),g=u("%a %d"),j=u("%b %d"),x=u("%B"),m=u("%Y");function S(w){return(c(w)<w?p:s(w)<w?y:l(w)<w?v:i(w)<w?b:r(w)<w?a(w)<w?g:j:n(w)<w?x:m)(w)}return f.invert=function(w){return new Date(d(w))},f.domain=function(w){return arguments.length?h(Array.from(w,Tte)):h().map(Nte)},f.ticks=function(w){var A=h();return e(A[0],A[A.length-1],w??10)},f.tickFormat=function(w,A){return A==null?S:u(A)},f.nice=function(w){var A=h();return(!w||typeof w.range!="function")&&(w=t(A[0],A[A.length-1],w??10)),w?h(ck(A,w)):f},f.copy=function(){return ff(f,m1(e,t,n,r,a,i,l,s,c,u))},f}function Cte(){return ir.apply(m1(Aee,Eee,Sa,h1,dm,df,f1,c1,Gi,Sk).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Mte(){return ir.apply(m1(wee,Oee,wa,p1,hm,fm,d1,u1,Gi,wk).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function pm(){var e=0,t=1,n,r,a,i,l=tn,s=!1,c;function u(d){return d==null||isNaN(d=+d)?c:l(a===0?.5:(d=(i(d)-n)*a,s?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?(s=!!d,u):s},u.interpolator=function(d){return arguments.length?(l=d,u):l};function f(d){return function(h){var p,y;return arguments.length?([p,y]=h,l=d(p,y),u):[l(0),l(1)]}}return u.range=f(Uo),u.rangeRound=f(e1),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 wi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Ok(){var e=Si(pm()(tn));return e.copy=function(){return wi(e,Ok())},_a.apply(e,arguments)}function Ak(){var e=a1(pm()).domain([1,10]);return e.copy=function(){return wi(e,Ak()).base(e.base())},_a.apply(e,arguments)}function Ek(){var e=i1(pm());return e.copy=function(){return wi(e,Ek()).constant(e.constant())},_a.apply(e,arguments)}function y1(){var e=l1(pm());return e.copy=function(){return wi(e,y1()).exponent(e.exponent())},_a.apply(e,arguments)}function kte(){return y1.apply(null,arguments).exponent(.5)}function _k(){var e=[],t=tn;function n(r){if(r!=null&&!isNaN(r=+r))return t((cf(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(fi),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)=>gJ(e,i/r))},n.copy=function(){return _k(t).domain(e)},_a.apply(n,arguments)}function mm(){var e=0,t=.5,n=1,r=1,a,i,l,s,c,u=tn,f,d=!1,h;function p(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-i)*(r*v<r*i?s:c),u(d?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,n]=v,a=f(e=+e),i=f(t=+t),l=f(n=+n),s=a===i?0:.5/(i-a),c=i===l?0:.5/(l-i),r=i<a?-1:1,p):[e,t,n]},p.clamp=function(v){return arguments.length?(d=!!v,p):d},p.interpolator=function(v){return arguments.length?(u=v,p):u};function y(v){return function(b){var g,j,x;return arguments.length?([g,j,x]=b,u=FJ(v,[g,j,x]),p):[u(0),u(.5),u(1)]}}return p.range=y(Uo),p.rangeRound=y(e1),p.unknown=function(v){return arguments.length?(h=v,p):h},function(v){return f=v,a=v(e),i=v(t),l=v(n),s=a===i?0:.5/(i-a),c=i===l?0:.5/(l-i),r=i<a?-1:1,p}}function Nk(){var e=Si(mm()(tn));return e.copy=function(){return wi(e,Nk())},_a.apply(e,arguments)}function Tk(){var e=a1(mm()).domain([.1,1,10]);return e.copy=function(){return wi(e,Tk()).base(e.base())},_a.apply(e,arguments)}function Ck(){var e=i1(mm());return e.copy=function(){return wi(e,Ck()).constant(e.constant())},_a.apply(e,arguments)}function v1(){var e=l1(mm());return e.copy=function(){return wi(e,v1()).exponent(e.exponent())},_a.apply(e,arguments)}function Pte(){return v1.apply(null,arguments).exponent(.5)}const Z2=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:cu,scaleDiverging:Nk,scaleDivergingLog:Tk,scaleDivergingPow:v1,scaleDivergingSqrt:Pte,scaleDivergingSymlog:Ck,scaleIdentity:ok,scaleImplicit:qg,scaleLinear:_h,scaleLog:uk,scaleOrdinal:Q0,scalePoint:Mc,scalePow:s1,scaleQuantile:hk,scaleQuantize:pk,scaleRadial:dk,scaleSequential:Ok,scaleSequentialLog:Ak,scaleSequentialPow:y1,scaleSequentialQuantile:_k,scaleSequentialSqrt:kte,scaleSequentialSymlog:Ek,scaleSqrt:hee,scaleSymlog:fk,scaleThreshold:mk,scaleTime:Cte,scaleUtc:Mte,tickFormat:sk},Symbol.toStringTag,{value:"Module"}));var $te=ko;function Rte(e,t,n){for(var r=-1,a=e.length;++r<a;){var i=e[r],l=t(i);if(l!=null&&(s===void 0?l===l&&!$te(l):n(l,s)))var s=l,c=i}return c}var ym=Rte;function Dte(e,t){return e>t}var Mk=Dte,zte=ym,Lte=Mk,Bte=Io;function Ite(e){return e&&e.length?zte(e,Bte,Lte):void 0}var Ute=Ite;const ei=Pe(Ute);function Hte(e,t){return e<t}var kk=Hte,qte=ym,Fte=kk,Gte=Io;function Vte(e){return e&&e.length?qte(e,Gte,Fte):void 0}var Yte=Vte;const vm=Pe(Yte);var Kte=M0,Xte=qr,Wte=UM,Qte=yn;function Zte(e,t){var n=Qte(e)?Kte:Wte;return n(e,Xte(t))}var Jte=Zte,ene=BM,tne=Jte;function nne(e,t){return ene(tne(e,t),1)}var rne=nne;const ane=Pe(rne);var ine=V0;function lne(e,t){return ine(e,t)}var sne=lne;const xl=Pe(sne);var Ho=1e9,one={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},b1,tt=!0,tr="[DecimalError] ",sl=tr+"Invalid argument: ",g1=tr+"Exponent out of range: ",qo=Math.floor,Ii=Math.pow,cne=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,An,Mt=1e7,We=7,Pk=9007199254740991,Mh=qo(Pk/We),re={};re.absoluteValue=re.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};re.comparedTo=re.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};re.decimalPlaces=re.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*We;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};re.dividedBy=re.div=function(e){return ha(this,new this.constructor(e))};re.dividedToIntegerBy=re.idiv=function(e){var t=this,n=t.constructor;return Ue(ha(t,new n(e),0,1),n.precision)};re.equals=re.eq=function(e){return!this.cmp(e)};re.exponent=function(){return St(this)};re.greaterThan=re.gt=function(e){return this.cmp(e)>0};re.greaterThanOrEqualTo=re.gte=function(e){return this.cmp(e)>=0};re.isInteger=re.isint=function(){return this.e>this.d.length-2};re.isNegative=re.isneg=function(){return this.s<0};re.isPositive=re.ispos=function(){return this.s>0};re.isZero=function(){return this.s===0};re.lessThan=re.lt=function(e){return this.cmp(e)<0};re.lessThanOrEqualTo=re.lte=function(e){return this.cmp(e)<1};re.logarithm=re.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(An))throw Error(tr+"NaN");if(n.s<1)throw Error(tr+(n.s?"NaN":"-Infinity"));return n.eq(An)?new r(0):(tt=!1,t=ha(pu(n,i),pu(e,i),i),tt=!0,Ue(t,a))};re.minus=re.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Dk(t,e):$k(t,(e.s=-e.s,e))};re.modulo=re.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(tr+"NaN");return n.s?(tt=!1,t=ha(n,e,0,1).times(e),tt=!0,n.minus(t)):Ue(new r(n),a)};re.naturalExponential=re.exp=function(){return Rk(this)};re.naturalLogarithm=re.ln=function(){return pu(this)};re.negated=re.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};re.plus=re.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?$k(t,e):Dk(t,(e.s=-e.s,e))};re.precision=re.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(sl+e);if(t=St(a)+1,r=a.d.length-1,n=r*We+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};re.squareRoot=re.sqrt=function(){var e,t,n,r,a,i,l,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(tr+"NaN")}for(e=St(s),tt=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=kr(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=qo((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(ha(s,i,l+2)).times(.5),kr(i.d).slice(0,l)===(t=kr(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),a==l&&t=="4999"){if(Ue(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if(t!="9999")break;l+=4}return tt=!0,Ue(r,n)};re.times=re.mul=function(e){var t,n,r,a,i,l,s,c,u,f=this,d=f.constructor,h=f.d,p=(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=p.length,c<u&&(i=h,h=p,p=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;)s=i[a]+p[r]*h[a-r-1]+t,i[a--]=s%Mt|0,t=s/Mt|0;i[a]=(i[a]+t)%Mt|0}for(;!i[--l];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,tt?Ue(e,d.precision):e};re.toDecimalPlaces=re.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Lr(e,0,Ho),t===void 0?t=r.rounding:Lr(t,0,8),Ue(n,e+St(n)+1,t))};re.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=jl(r,!0):(Lr(e,0,Ho),t===void 0?t=a.rounding:Lr(t,0,8),r=Ue(new a(r),e+1,t),n=jl(r,!0,e+1)),n};re.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?jl(a):(Lr(e,0,Ho),t===void 0?t=i.rounding:Lr(t,0,8),r=Ue(new i(a),e+St(a)+1,t),n=jl(r.abs(),!1,e+St(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};re.toInteger=re.toint=function(){var e=this,t=e.constructor;return Ue(new t(e),St(e)+1,t.rounding)};re.toNumber=function(){return+this};re.toPower=re.pow=function(e){var t,n,r,a,i,l,s=this,c=s.constructor,u=12,f=+(e=new c(e));if(!e.s)return new c(An);if(s=new c(s),!s.s){if(e.s<1)throw Error(tr+"Infinity");return s}if(s.eq(An))return s;if(r=c.precision,e.eq(An))return Ue(s,r);if(t=e.e,n=e.d.length-1,l=t>=n,i=s.s,l){if((n=f<0?-f:f)<=Pk){for(a=new c(An),t=Math.ceil(r/We+4),tt=!1;n%2&&(a=a.times(s),eO(a.d,t)),n=qo(n/2),n!==0;)s=s.times(s),eO(s.d,t);return tt=!0,e.s<0?new c(An).div(a):Ue(a,r)}}else if(i<0)throw Error(tr+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,tt=!1,a=e.times(pu(s,r+u)),tt=!0,a=Rk(a),a.s=i,a};re.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=St(a),r=jl(a,n<=i.toExpNeg||n>=i.toExpPos)):(Lr(e,1,Ho),t===void 0?t=i.rounding:Lr(t,0,8),a=Ue(new i(a),e,t),n=St(a),r=jl(a,e<=n||n<=i.toExpNeg,e)),r};re.toSignificantDigits=re.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Lr(e,1,Ho),t===void 0?t=r.rounding:Lr(t,0,8)),Ue(new r(n),e,t)};re.toString=re.valueOf=re.val=re.toJSON=re[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=St(e),n=e.constructor;return jl(e,t<=n.toExpNeg||t>=n.toExpPos)};function $k(e,t){var n,r,a,i,l,s,c,u,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),tt?Ue(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,s=u.length):(r=u,a=l,s=c.length),l=Math.ceil(d/We),s=l>s?l+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=c.length,i=u.length,s-i<0&&(i=s,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/Mt|0,c[i]%=Mt;for(n&&(c.unshift(n),++a),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=a,tt?Ue(t,d):t}function Lr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(sl+e)}function kr(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=We-r.length,n&&(i+=Ra(n)),i+=r;l=e[t],r=l+"",n=We-r.length,n&&(i+=Ra(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return i+l}var ha=function(){function e(r,a){var i,l=0,s=r.length;for(r=r.slice();s--;)i=r[s]*a+l,r[s]=i%Mt|0,l=i/Mt|0;return l&&r.unshift(l),r}function t(r,a,i,l){var s,c;if(i!=l)c=i>l?1:-1;else for(s=c=0;s<i;s++)if(r[s]!=a[s]){c=r[s]>a[s]?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*Mt+r[i]-a[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,i,l){var s,c,u,f,d,h,p,y,v,b,g,j,x,m,S,w,A,_,E=r.constructor,C=r.s==a.s?1:-1,k=r.d,M=a.d;if(!r.s)return new E(r);if(!a.s)throw Error(tr+"Division by zero");for(c=r.e-a.e,A=M.length,S=k.length,p=new E(C),y=p.d=[],u=0;M[u]==(k[u]||0);)++u;if(M[u]>(k[u]||0)&&--c,i==null?j=i=E.precision:l?j=i+(St(r)-St(a))+1:j=i,j<0)return new E(0);if(j=j/We+2|0,u=0,A==1)for(f=0,M=M[0],j++;(u<S||f)&&j--;u++)x=f*Mt+(k[u]||0),y[u]=x/M|0,f=x%M|0;else{for(f=Mt/(M[0]+1)|0,f>1&&(M=e(M,f),k=e(k,f),A=M.length,S=k.length),m=A,v=k.slice(0,A),b=v.length;b<A;)v[b++]=0;_=M.slice(),_.unshift(0),w=M[0],M[1]>=Mt/2&&++w;do f=0,s=t(M,v,A,b),s<0?(g=v[0],A!=b&&(g=g*Mt+(v[1]||0)),f=g/w|0,f>1?(f>=Mt&&(f=Mt-1),d=e(M,f),h=d.length,b=v.length,s=t(d,v,h,b),s==1&&(f--,n(d,A<h?_:M,h))):(f==0&&(s=f=1),d=M.slice()),h=d.length,h<b&&d.unshift(0),n(v,d,b),s==-1&&(b=v.length,s=t(M,v,A,b),s<1&&(f++,n(v,A<b?_:M,b))),b=v.length):s===0&&(f++,v=[0]),y[u++]=f,s&&v[0]?v[b++]=k[m]||0:(v=[k[m]],b=1);while((m++<S||v[0]!==void 0)&&j--)}return y[0]||y.shift(),p.e=c,Ue(p,l?i+St(p)+1:i)}}();function Rk(e,t){var n,r,a,i,l,s,c=0,u=0,f=e.constructor,d=f.precision;if(St(e)>16)throw Error(g1+St(e));if(!e.s)return new f(An);for(tt=!1,s=d,l=new f(.03125);e.abs().gte(.1);)e=e.times(l),u+=5;for(r=Math.log(Ii(2,u))/Math.LN10*2+5|0,s+=r,n=a=i=new f(An),f.precision=s;;){if(a=Ue(a.times(e),s),n=n.times(++c),l=i.plus(ha(a,n,s)),kr(l.d).slice(0,s)===kr(i.d).slice(0,s)){for(;u--;)i=Ue(i.times(i),s);return f.precision=d,t==null?(tt=!0,Ue(i,d)):i}i=l}}function St(e){for(var t=e.e*We,n=e.d[0];n>=10;n/=10)t++;return t}function Fy(e,t,n){if(t>e.LN10.sd())throw tt=!0,n&&(e.precision=n),Error(tr+"LN10 precision limit exceeded");return Ue(new e(e.LN10),t)}function Ra(e){for(var t="";e--;)t+="0";return t}function pu(e,t){var n,r,a,i,l,s,c,u,f,d=1,h=10,p=e,y=p.d,v=p.constructor,b=v.precision;if(p.s<1)throw Error(tr+(p.s?"NaN":"-Infinity"));if(p.eq(An))return new v(0);if(t==null?(tt=!1,u=b):u=t,p.eq(10))return t==null&&(tt=!0),Fy(v,u);if(u+=h,v.precision=u,n=kr(y),r=n.charAt(0),i=St(p),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=kr(p.d),r=n.charAt(0),d++;i=St(p),r>1?(p=new v("0."+n),i++):p=new v(r+"."+n.slice(1))}else return c=Fy(v,u+2,b).times(i+""),p=pu(new v(r+"."+n.slice(1)),u-h).plus(c),v.precision=b,t==null?(tt=!0,Ue(p,b)):p;for(s=l=p=ha(p.minus(An),p.plus(An),u),f=Ue(p.times(p),u),a=3;;){if(l=Ue(l.times(f),u),c=s.plus(ha(l,new v(a),u)),kr(c.d).slice(0,u)===kr(s.d).slice(0,u))return s=s.times(2),i!==0&&(s=s.plus(Fy(v,u+2,b).times(i+""))),s=ha(s,new v(d),u),v.precision=b,t==null?(tt=!0,Ue(s,b)):s;s=c,a+=2}}function J2(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=qo(n/We),e.d=[],r=(n+1)%We,n<0&&(r+=We),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=We;r<a;)e.d.push(+t.slice(r,r+=We));t=t.slice(r),r=We-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),tt&&(e.e>Mh||e.e<-Mh))throw Error(g1+n)}else e.s=0,e.e=0,e.d=[0];return e}function Ue(e,t,n){var r,a,i,l,s,c,u,f,d=e.d;for(l=1,i=d[0];i>=10;i/=10)l++;if(r=t-l,r<0)r+=We,a=t,u=d[f=0];else{if(f=Math.ceil((r+1)/We),i=d.length,f>=i)return e;for(u=i=d[f],l=1;i>=10;i/=10)l++;r%=We,a=r-We+l}if(n!==void 0&&(i=Ii(10,l-a-1),s=u/i%10|0,c=t<0||d[f+1]!==void 0||u%i,c=n<4?(s||c)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||c||n==6&&(r>0?a>0?u/Ii(10,l-a):0:d[f-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return c?(i=St(e),d.length=1,t=t-i-1,d[0]=Ii(10,(We-t%We)%We),e.e=qo(-t/We)||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=Ii(10,We-r),d[f]=a>0?(u/Ii(10,l-a)%Ii(10,a)|0)*i:0),c)for(;;)if(f==0){(d[0]+=i)==Mt&&(d[0]=1,++e.e);break}else{if(d[f]+=i,d[f]!=Mt)break;d[f--]=0,i=1}for(r=d.length;d[--r]===0;)d.pop();if(tt&&(e.e>Mh||e.e<-Mh))throw Error(g1+St(e));return e}function Dk(e,t){var n,r,a,i,l,s,c,u,f,d,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),tt?Ue(t,p):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,s=d.length):(n=d,r=u,s=c.length),a=Math.max(Math.ceil(p/We),s)+2,l>a&&(l=a,n.length=1),n.reverse(),a=l;a--;)n.push(0);n.reverse()}else{for(a=c.length,s=d.length,f=a<s,f&&(s=a),a=0;a<s;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),s=c.length,a=d.length-s;a>0;--a)c[s++]=0;for(a=d.length;a>l;){if(c[--a]<d[a]){for(i=a;i&&c[--i]===0;)c[i]=Mt-1;--c[i],c[a]+=Mt}c[a]-=d[a]}for(;c[--s]===0;)c.pop();for(;c[0]===0;c.shift())--r;return c[0]?(t.d=c,t.e=r,tt?Ue(t,p):t):new h(0)}function jl(e,t,n){var r,a=St(e),i=kr(e.d),l=i.length;return t?(n&&(r=n-l)>0?i=i.charAt(0)+"."+i.slice(1)+Ra(r):l>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+Ra(-a-1)+i,n&&(r=n-l)>0&&(i+=Ra(r))):a>=l?(i+=Ra(a+1-l),n&&(r=n-a-1)>0&&(i=i+"."+Ra(r))):((r=a+1)<l&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-l)>0&&(a+1===l&&(i+="."),i+=Ra(r))),e.s<0?"-"+i:i}function eO(e,t){if(e.length>t)return e.length=t,!0}function zk(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(sl+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 J2(l,i.toString())}else if(typeof i!="string")throw Error(sl+i);if(i.charCodeAt(0)===45?(i=i.slice(1),l.s=-1):l.s=1,cne.test(i))J2(l,i);else throw Error(sl+i)}if(a.prototype=re,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=zk,a.config=a.set=une,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 une(e){if(!e||typeof e!="object")throw Error(tr+"Object expected");var t,n,r,a=["precision",1,Ho,"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(qo(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(sl+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(sl+n+": "+r);return this}var b1=zk(one);An=new b1(1);const Be=b1;function fne(e){return mne(e)||pne(e)||hne(e)||dne()}function dne(){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 hne(e,t){if(e){if(typeof e=="string")return Yg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yg(e,t)}}function pne(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function mne(e){if(Array.isArray(e))return Yg(e)}function Yg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yne=function(t){return t},Lk={},Bk=function(t){return t===Lk},tO=function(t){return function n(){return arguments.length===0||arguments.length===1&&Bk(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},vne=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(s){return s!==Lk}).length;return l>=t?n.apply(void 0,a):e(t-l,tO(function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var f=a.map(function(d){return Bk(d)?c.shift():d});return n.apply(void 0,fne(f).concat(c))}))})},gm=function(t){return vne(t.length,t)},Kg=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},gne=gm(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),bne=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return yne;var a=n.reverse(),i=a[0],l=a.slice(1);return function(){return l.reduce(function(s,c){return c(s)},i.apply(void 0,arguments))}},Xg=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Ik=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(s,c){return s===n[c]})||(n=i,r=t.apply(void 0,i)),r}};function xne(e){var t;return e===0?t=1:t=Math.floor(new Be(e).abs().log(10).toNumber())+1,t}function jne(e,t,n){for(var r=new Be(e),a=0,i=[];r.lt(t)&&a<1e5;)i.push(r.toNumber()),r=r.add(n),a++;return i}var Sne=gm(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),wne=gm(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),One=gm(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const bm={rangeStep:jne,getDigitCount:xne,interpolateNumber:Sne,uninterpolateNumber:wne,uninterpolateTruncation:One};function Wg(e){return _ne(e)||Ene(e)||Uk(e)||Ane()}function Ane(){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 Ene(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _ne(e){if(Array.isArray(e))return Qg(e)}function mu(e,t){return Cne(e)||Tne(e,t)||Uk(e,t)||Nne()}function Nne(){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 Uk(e,t){if(e){if(typeof e=="string")return Qg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qg(e,t)}}function Qg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tne(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](),s;!(r=(s=l.next()).done)&&(n.push(s.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 Cne(e){if(Array.isArray(e))return e}function Hk(e){var t=mu(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function qk(e,t,n){if(e.lte(0))return new Be(0);var r=bm.getDigitCount(e.toNumber()),a=new Be(10).pow(r),i=e.div(a),l=r!==1?.05:.1,s=new Be(Math.ceil(i.div(l).toNumber())).add(n).mul(l),c=s.mul(a);return t?c:new Be(Math.ceil(c))}function Mne(e,t,n){var r=1,a=new Be(e);if(!a.isint()&&n){var i=Math.abs(e);i<1?(r=new Be(10).pow(bm.getDigitCount(e)-1),a=new Be(Math.floor(a.div(r).toNumber())).mul(r)):i>1&&(a=new Be(Math.floor(e)))}else e===0?a=new Be(Math.floor((t-1)/2)):n||(a=new Be(Math.floor(e)));var l=Math.floor((t-1)/2),s=bne(gne(function(c){return a.add(new Be(c-l).mul(r)).toNumber()}),Kg);return s(0,t)}function Fk(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Be(0),tickMin:new Be(0),tickMax:new Be(0)};var i=qk(new Be(t).sub(e).div(n-1),r,a),l;e<=0&&t>=0?l=new Be(0):(l=new Be(e).add(t).div(2),l=l.sub(new Be(l).mod(i)));var s=Math.ceil(l.sub(e).div(i).toNumber()),c=Math.ceil(new Be(t).sub(l).div(i).toNumber()),u=s+c+1;return u>n?Fk(e,t,n,r,a+1):(u<n&&(c=t>0?c+(n-u):c,s=t>0?s:s+(n-u)),{step:i,tickMin:l.sub(new Be(s).mul(i)),tickMax:l.add(new Be(c).mul(i))})}function kne(e){var t=mu(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),s=Hk([n,r]),c=mu(s,2),u=c[0],f=c[1];if(u===-1/0||f===1/0){var d=f===1/0?[u].concat(Wg(Kg(0,a-1).map(function(){return 1/0}))):[].concat(Wg(Kg(0,a-1).map(function(){return-1/0})),[f]);return n>r?Xg(d):d}if(u===f)return Mne(u,a,i);var h=Fk(u,f,l,i),p=h.step,y=h.tickMin,v=h.tickMax,b=bm.rangeStep(y,v.add(new Be(.1).mul(p)),p);return n>r?Xg(b):b}function Pne(e,t){var n=mu(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=Hk([r,a]),s=mu(l,2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[r,a];if(c===u)return[c];var f=Math.max(t,2),d=qk(new Be(u).sub(c).div(f-1),i,0),h=[].concat(Wg(bm.rangeStep(new Be(c),new Be(u).sub(new Be(.99).mul(d)),d)),[u]);return r>a?Xg(h):h}var $ne=Ik(kne),Rne=Ik(Pne),Dne="Invariant failed";function Sl(e,t){throw new Error(Dne)}var zne=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Js(e){"@babel/helpers - typeof";return Js=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},Js(e)}function kh(){return kh=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},kh.apply(this,arguments)}function Lne(e,t){return Hne(e)||Une(e,t)||Ine(e,t)||Bne()}function Bne(){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 Ine(e,t){if(e){if(typeof e=="string")return nO(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 nO(e,t)}}function nO(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 Une(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.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 s}}function Hne(e){if(Array.isArray(e))return e}function qne(e,t){if(e==null)return{};var n=Fne(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 Fne(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 Gne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vne(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,Yk(r.key),r)}}function Yne(e,t,n){return t&&Vne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kne(e,t,n){return t=Ph(t),Xne(e,Gk()?Reflect.construct(t,n||[],Ph(e).constructor):t.apply(e,n))}function Xne(e,t){if(t&&(Js(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wne(e)}function Wne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Gk=function(){return!!e})()}function Ph(e){return Ph=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ph(e)}function Qne(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&&Zg(e,t)}function Zg(e,t){return Zg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Zg(e,t)}function Vk(e,t,n){return t=Yk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yk(e){var t=Zne(e,"string");return Js(t)=="symbol"?t:t+""}function Zne(e,t){if(Js(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Js(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hf=function(e){function t(){return Gne(this,t),Kne(this,t,arguments)}return Qne(t,e),Yne(t,[{key:"render",value:function(){var r=this.props,a=r.offset,i=r.layout,l=r.width,s=r.dataKey,c=r.data,u=r.dataPointFormatter,f=r.xAxis,d=r.yAxis,h=qne(r,zne),p=le(h,!1);this.props.direction==="x"&&f.type!=="number"&&Sl();var y=c.map(function(v){var b=u(v,s),g=b.x,j=b.y,x=b.value,m=b.errorVal;if(!m)return null;var S=[],w,A;if(Array.isArray(m)){var _=Lne(m,2);w=_[0],A=_[1]}else w=A=m;if(i==="vertical"){var E=f.scale,C=j+a,k=C+l,M=C-l,I=E(x-w),D=E(x+A);S.push({x1:D,y1:k,x2:D,y2:M}),S.push({x1:I,y1:C,x2:D,y2:C}),S.push({x1:I,y1:k,x2:I,y2:M})}else if(i==="horizontal"){var $=d.scale,T=g+a,z=T-l,B=T+l,F=$(x-w),V=$(x+A);S.push({x1:z,y1:V,x2:B,y2:V}),S.push({x1:T,y1:F,x2:T,y2:V}),S.push({x1:z,y1:F,x2:B,y2:F})}return N.createElement(we,kh({className:"recharts-errorBar",key:"bar-".concat(S.map(function(Y){return"".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)}))},p),S.map(function(Y){return N.createElement("line",kh({},Y,{key:"line-".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)}))}))});return N.createElement(we,{className:"recharts-errorBars"},y)}}])}(N.Component);Vk(hf,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Vk(hf,"displayName","ErrorBar");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 rO(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 Mi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rO(Object(n),!0).forEach(function(r){Jne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jne(e,t,n){return t=ere(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ere(e){var t=tre(e,"string");return yu(t)=="symbol"?t:t+""}function tre(e,t){if(yu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kk=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,l=xn(n,Mr);if(!l)return null;var s=Mr.defaultProps,c=s!==void 0?Mi(Mi({},s),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,p=d.props,y=p.sectors||p.data||[];return f.concat(y.map(function(v){return{type:l.props.iconType||h.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):u=(r||[]).map(function(f){var d=f.item,h=d.type.defaultProps,p=h!==void 0?Mi(Mi({},h),d.props):{},y=p.dataKey,v=p.name,b=p.legendType,g=p.hide;return{inactive:g,dataKey:y,type:c.iconType||b||"square",color:x1(d),value:v||y,payload:p}}),Mi(Mi(Mi({},c),Mr.getWithHeight(l,a)),{},{payload:u,item:l})};function vu(e){"@babel/helpers - typeof";return vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vu(e)}function aO(e){return ire(e)||are(e)||rre(e)||nre()}function nre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rre(e,t){if(e){if(typeof e=="string")return Jg(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 Jg(e,t)}}function are(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ire(e){if(Array.isArray(e))return Jg(e)}function Jg(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 iO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iO(Object(n),!0).forEach(function(r){Ss(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ss(e,t,n){return t=lre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lre(e){var t=sre(e,"string");return vu(t)=="symbol"?t:t+""}function sre(e,t){if(vu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ft(e,t,n){return me(e)||me(t)?n:_t(t)?Mn(e,t,n):fe(t)?t(e):n}function kc(e,t,n,r){var a=ane(e,function(s){return ft(s,t)});if(n==="number"){var i=a.filter(function(s){return X(s)||parseFloat(s)});return i.length?[vm(i),ei(i)]:[1/0,-1/0]}var l=r?a.filter(function(s){return!me(s)}):a;return l.map(function(s){return _t(s)||s instanceof Date?s:""})}var ore=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,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=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<s;u++){var f=u>0?a[u-1].coordinate:a[s-1].coordinate,d=a[u].coordinate,h=u>=s-1?a[0].coordinate:a[u+1].coordinate,p=void 0;if(Jt(d-f)!==Jt(h-d)){var y=[];if(Jt(h-d)===Jt(c[1]-c[0])){p=h;var v=d+c[1]-c[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{p=f;var b=h+c[1]-c[0];y[0]=Math.min(d,(b+d)/2),y[1]=Math.max(d,(b+d)/2)}var g=[Math.min(d,(p+d)/2),Math.max(d,(p+d)/2)];if(t>g[0]&&t<=g[1]||t>=y[0]&&t<=y[1]){l=a[u].index;break}}else{var j=Math.min(f,h),x=Math.max(f,h);if(t>(j+d)/2&&t<=(x+d)/2){l=a[u].index;break}}}else for(var m=0;m<s;m++)if(m===0&&t<=(r[m].coordinate+r[m+1].coordinate)/2||m>0&&m<s-1&&t>(r[m].coordinate+r[m-1].coordinate)/2&&t<=(r[m].coordinate+r[m+1].coordinate)/2||m===s-1&&t>(r[m].coordinate+r[m-1].coordinate)/2){l=r[m].index;break}return l},x1=function(t){var n,r=t,a=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?st(st({},t.type.defaultProps),t.props):t.props,l=i.stroke,s=i.fill,c;switch(a){case"Line":c=l;break;case"Area":case"Radar":c=l&&l!=="none"?l:s;break;default:c=s;break}return c},cre=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var l={},s=Object.keys(i),c=0,u=s.length;c<u;c++)for(var f=i[s[c]].stackGroups,d=Object.keys(f),h=0,p=d.length;h<p;h++){var y=f[d[h]],v=y.items,b=y.cateAxisId,g=v.filter(function(A){return da(A.type).indexOf("Bar")>=0});if(g&&g.length){var j=g[0].type.defaultProps,x=j!==void 0?st(st({},j),g[0].props):g[0].props,m=x.barSize,S=x[b];l[S]||(l[S]=[]);var w=me(m)?n:m;l[S].push({item:g[0],stackList:g.slice(1),barSize:me(w)?void 0:en(w,r,0)})}}return l},ure=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,i=t.sizeList,l=i===void 0?[]:i,s=t.maxBarSize,c=l.length;if(c<1)return null;var u=en(n,a,0,!0),f,d=[];if(l[0].barSize===+l[0].barSize){var h=!1,p=a/c,y=l.reduce(function(m,S){return m+S.barSize||0},0);y+=(c-1)*u,y>=a&&(y-=(c-1)*u,u=0),y>=a&&p>0&&(h=!0,p*=.9,y=c*p);var v=(a-y)/2>>0,b={offset:v-u,size:0};f=l.reduce(function(m,S){var w={item:S.item,position:{offset:b.offset+b.size+u,size:h?p:S.barSize}},A=[].concat(aO(m),[w]);return b=A[A.length-1].position,S.stackList&&S.stackList.length&&S.stackList.forEach(function(_){A.push({item:_,position:b})}),A},d)}else{var g=en(r,a,0,!0);a-2*g-(c-1)*u<=0&&(u=0);var j=(a-2*g-(c-1)*u)/c;j>1&&(j>>=0);var x=s===+s?Math.min(j,s):j;f=l.reduce(function(m,S,w){var A=[].concat(aO(m),[{item:S.item,position:{offset:g+(j+u)*w+(j-x)/2,size:x}}]);return S.stackList&&S.stackList.length&&S.stackList.forEach(function(_){A.push({item:_,position:A[A.length-1].position})}),A},d)}return f},fre=function(t,n,r,a){var i=r.children,l=r.width,s=r.margin,c=l-(s.left||0)-(s.right||0),u=Kk({children:i,legendWidth:c});if(u){var f=a||{},d=f.width,h=f.height,p=u.align,y=u.verticalAlign,v=u.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&p!=="center"&&X(t[p]))return st(st({},t),{},Ss({},p,t[p]+(d||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&y!=="middle"&&X(t[y]))return st(st({},t),{},Ss({},y,t[y]+(h||0)))}return t},dre=function(t,n,r){return me(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},Xk=function(t,n,r,a,i){var l=n.props.children,s=kn(l,hf).filter(function(u){return dre(a,i,u.props.direction)});if(s&&s.length){var c=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var d=ft(f,r);if(me(d))return u;var h=Array.isArray(d)?[vm(d),ei(d)]:[d,d],p=c.reduce(function(y,v){var b=ft(f,v,0),g=h[0]-Math.abs(Array.isArray(b)?b[0]:b),j=h[1]+Math.abs(Array.isArray(b)?b[1]:b);return[Math.min(g,y[0]),Math.max(j,y[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},hre=function(t,n,r,a,i){var l=n.map(function(s){return Xk(t,s,r,i,a)}).filter(function(s){return!me(s)});return l&&l.length?l.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]):null},Wk=function(t,n,r,a,i){var l=n.map(function(c){var u=c.props.dataKey;return r==="number"&&u&&Xk(t,c,u,a)||kc(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 s={};return l.reduce(function(c,u){for(var f=0,d=u.length;f<d;f++)s[u[f]]||(s[u[f]]=!0,c.push(u[f]));return c},[])},Qk=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},Zk=function(t,n,r,a){if(a)return t.map(function(c){return c.coordinate});var i,l,s=t.map(function(c){return c.coordinate===n&&(i=!0),c.coordinate===r&&(l=!0),c.coordinate});return i||s.push(n),l||s.push(r),s},sa=function(t,n,r){if(!t)return null;var a=t.scale,i=t.duplicateDomain,l=t.type,s=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"&&(s==null?void 0:s.length)>=2?Jt(s[0]-s[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!zo(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}})},Gy=new WeakMap,Yf=function(t,n){if(typeof n!="function")return t;Gy.has(t)||Gy.set(t,new WeakMap);var r=Gy.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},Jk=function(t,n,r){var a=t.scale,i=t.type,l=t.layout,s=t.axisType;if(a==="auto")return l==="radial"&&s==="radiusAxis"?{scale:cu(),realScaleType:"band"}:l==="radial"&&s==="angleAxis"?{scale:_h(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Mc(),realScaleType:"point"}:i==="category"?{scale:cu(),realScaleType:"band"}:{scale:_h(),realScaleType:"linear"};if(vl(a)){var c="scale".concat(nm(a));return{scale:(Z2[c]||Mc)(),realScaleType:Z2[c]?c:"point"}}return fe(a)?{scale:a}:{scale:Mc(),realScaleType:"point"}},lO=1e-4,eP=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])-lO,l=Math.max(a[0],a[1])+lO,s=t(n[0]),c=t(n[r-1]);(s<i||s>l||c<i||c>l)&&t.domain([n[0],n[r-1]])}},pre=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},mre=function(t,n){if(!n||n.length!==2||!X(n[0])||!X(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(!X(t[0])||t[0]<r)&&(i[0]=r),(!X(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<r&&(i[1]=r),i},yre=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,s=0;s<n;++s){var c=zo(t[s][r][1])?t[s][r][0]:t[s][r][1];c>=0?(t[s][r][0]=i,t[s][r][1]=i+c,i=t[s][r][1]):(t[s][r][0]=l,t[s][r][1]=l+c,l=t[s][r][1])}},vre=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 s=zo(t[l][r][1])?t[l][r][0]:t[l][r][1];s>=0?(t[l][r][0]=i,t[l][r][1]=i+s,i=t[l][r][1]):(t[l][r][0]=0,t[l][r][1]=0)}},gre={sign:yre,expand:zq,none:Gs,silhouette:Lq,wiggle:Bq,positive:vre},bre=function(t,n,r){var a=n.map(function(s){return s.props.dataKey}),i=gre[r],l=Dq().keys(a).value(function(s,c){return+ft(s,c,0)}).order(Og).offset(i);return l(t)},xre=function(t,n,r,a,i,l){if(!t)return null;var s=l?n.reverse():n,c={},u=s.reduce(function(d,h){var p,y=(p=h.type)!==null&&p!==void 0&&p.defaultProps?st(st({},h.type.defaultProps),h.props):h.props,v=y.stackId,b=y.hide;if(b)return d;var g=y[r],j=d[g]||{hasStack:!1,stackGroups:{}};if(_t(v)){var x=j.stackGroups[v]||{numericAxisId:r,cateAxisId:a,items:[]};x.items.push(h),j.hasStack=!0,j.stackGroups[v]=x}else j.stackGroups[Ml("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[h]};return st(st({},d),{},Ss({},g,j))},c),f={};return Object.keys(u).reduce(function(d,h){var p=u[h];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,b){var g=p.stackGroups[b];return st(st({},v),{},Ss({},b,{numericAxisId:r,cateAxisId:a,items:g.items,stackedData:bre(t,g.items,i)}))},y)}return st(st({},d),{},Ss({},h,p))},f)},tP=function(t,n){var r=n.realScaleType,a=n.type,i=n.tickCount,l=n.originalDomain,s=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=$ne(u,i,s);return t.domain([vm(f),ei(f)]),{niceTicks:f}}if(i&&a==="number"){var d=t.domain(),h=Rne(d,i,s);return{niceTicks:h}}return null};function $h(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&&!me(a[t.dataKey])){var s=ih(n,"value",a[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=ft(a,me(l)?t.dataKey:l);return me(c)?null:t.scale(c)}var sO=function(t){var n=t.axis,r=t.ticks,a=t.offset,i=t.bandSize,l=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+a:null;var c=ft(l,n.dataKey,n.domain[s]);return me(c)?null:n.scale(c)-i/2+a},jre=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]},Sre=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?st(st({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(_t(i)){var l=n[i];if(l){var s=l.items.indexOf(t);return s>=0?l.stackedData[s]:null}}return null},wre=function(t){return t.reduce(function(n,r){return[vm(r.concat([n[0]]).filter(X)),ei(r.concat([n[1]]).filter(X))]},[1/0,-1/0])},nP=function(t,n,r){return Object.keys(t).reduce(function(a,i){var l=t[i],s=l.stackedData,c=s.reduce(function(u,f){var d=wre(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})},oO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,eb=function(t,n,r){if(fe(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(X(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(oO.test(t[0])){var i=+oO.exec(t[0])[1];a[0]=n[0]-i}else fe(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(X(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(cO.test(t[1])){var l=+cO.exec(t[1])[1];a[1]=n[1]+l}else fe(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},Rh=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=K0(n,function(d){return d.coordinate}),l=1/0,s=1,c=i.length;s<c;s++){var u=i[s],f=i[s-1];l=Math.min((u.coordinate||0)-(f.coordinate||0),l)}return l===1/0?0:l}return r?void 0:0},uO=function(t,n,r){return!t||!t.length||xl(t,Mn(r,"type.defaultProps.domain"))?n:t},rP=function(t,n){var r=t.type.defaultProps?st(st({},t.type.defaultProps),t.props):t.props,a=r.dataKey,i=r.name,l=r.unit,s=r.formatter,c=r.tooltipType,u=r.chartType,f=r.hide;return st(st({},le(t,!1)),{},{dataKey:a,unit:l,formatter:s,name:i||a,color:x1(t),value:ft(n,a),type:c,payload:n,chartType:u,hide:f})};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)}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 Zr(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){aP(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 aP(e,t,n){return t=Ore(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ore(e){var t=Are(e,"string");return gu(t)=="symbol"?t:t+""}function Are(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 Ere(e,t){return Cre(e)||Tre(e,t)||Nre(e,t)||_re()}function _re(){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 Nre(e,t){if(e){if(typeof e=="string")return dO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dO(e,t)}}function dO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.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 s}}function Cre(e){if(Array.isArray(e))return e}var Dh=Math.PI/180,Mre=function(t){return t*180/Math.PI},Ve=function(t,n,r,a){return{x:t+Math.cos(-Dh*a)*r,y:n+Math.sin(-Dh*a)*r}},iP=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},kre=function(t,n,r,a,i){var l=t.width,s=t.height,c=t.startAngle,u=t.endAngle,f=en(t.cx,l,l/2),d=en(t.cy,s,s/2),h=iP(l,s,r),p=en(t.innerRadius,h,0),y=en(t.outerRadius,h,h*.8),v=Object.keys(n);return v.reduce(function(b,g){var j=n[g],x=j.domain,m=j.reversed,S;if(me(j.range))a==="angleAxis"?S=[c,u]:a==="radiusAxis"&&(S=[p,y]),m&&(S=[S[1],S[0]]);else{S=j.range;var w=S,A=Ere(w,2);c=A[0],u=A[1]}var _=Jk(j,i),E=_.realScaleType,C=_.scale;C.domain(x).range(S),eP(C);var k=tP(C,Zr(Zr({},j),{},{realScaleType:E})),M=Zr(Zr(Zr({},j),k),{},{range:S,radius:y,realScaleType:E,scale:C,cx:f,cy:d,innerRadius:p,outerRadius:y,startAngle:c,endAngle:u});return Zr(Zr({},b),{},aP({},g,M))},{})},Pre=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))},$re=function(t,n){var r=t.x,a=t.y,i=n.cx,l=n.cy,s=Pre({x:r,y:a},{x:i,y:l});if(s<=0)return{radius:s};var c=(r-i)/s,u=Math.acos(c);return a>l&&(u=2*Math.PI-u),{radius:s,angle:Mre(u),angleInRadian:u}},Rre=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}},Dre=function(t,n){var r=n.startAngle,a=n.endAngle,i=Math.floor(r/360),l=Math.floor(a/360),s=Math.min(i,l);return t+s*360},hO=function(t,n){var r=t.x,a=t.y,i=$re({x:r,y:a},n),l=i.radius,s=i.angle,c=n.innerRadius,u=n.outerRadius;if(l<c||l>u)return!1;if(l===0)return!0;var f=Rre(n),d=f.startAngle,h=f.endAngle,p=s,y;if(d<=h){for(;p>h;)p-=360;for(;p<d;)p+=360;y=p>=d&&p<=h}else{for(;p>d;)p-=360;for(;p<h;)p+=360;y=p>=h&&p<=d}return y?Zr(Zr({},n),{},{radius:l,angle:Dre(p,n)}):null},lP=function(t){return!O.isValidElement(t)&&!fe(t)&&typeof t!="boolean"?t.className:""};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 zre=["offset"];function Lre(e){return Hre(e)||Ure(e)||Ire(e)||Bre()}function Bre(){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 Ire(e,t){if(e){if(typeof e=="string")return tb(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 tb(e,t)}}function Ure(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hre(e){if(Array.isArray(e))return tb(e)}function tb(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 qre(e,t){if(e==null)return{};var n=Fre(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 Fre(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 pO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pO(Object(n),!0).forEach(function(r){Gre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gre(e,t,n){return t=Vre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vre(e){var t=Yre(e,"string");return bu(t)=="symbol"?t:t+""}function Yre(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 xu(){return xu=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},xu.apply(this,arguments)}var Kre=function(t){var n=t.value,r=t.formatter,a=me(t.children)?n:t.children;return fe(r)?r(a):a},Xre=function(t,n){var r=Jt(n-t),a=Math.min(Math.abs(n-t),360);return r*a},Wre=function(t,n,r){var a=t.position,i=t.viewBox,l=t.offset,s=t.className,c=i,u=c.cx,f=c.cy,d=c.innerRadius,h=c.outerRadius,p=c.startAngle,y=c.endAngle,v=c.clockWise,b=(d+h)/2,g=Xre(p,y),j=g>=0?1:-1,x,m;a==="insideStart"?(x=p+j*l,m=v):a==="insideEnd"?(x=y-j*l,m=!v):a==="end"&&(x=y+j*l,m=v),m=g<=0?m:!m;var S=Ve(u,f,b,x),w=Ve(u,f,b,x+(m?1:-1)*359),A="M".concat(S.x,",").concat(S.y,`
    A`).concat(b,",").concat(b,",0,1,").concat(m?0:1,`,
    `).concat(w.x,",").concat(w.y),_=me(t.id)?Ml("recharts-radial-line-"):t.id;return N.createElement("text",xu({},r,{dominantBaseline:"central",className:ye("recharts-radial-bar-label",s)}),N.createElement("defs",null,N.createElement("path",{id:_,d:A})),N.createElement("textPath",{xlinkHref:"#".concat(_)},n))},Qre=function(t){var n=t.viewBox,r=t.offset,a=t.position,i=n,l=i.cx,s=i.cy,c=i.innerRadius,u=i.outerRadius,f=i.startAngle,d=i.endAngle,h=(f+d)/2;if(a==="outside"){var p=Ve(l,s,u+r,h),y=p.x,v=p.y;return{x:y,y:v,textAnchor:y>=l?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:l,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:l,y:s,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:l,y:s,textAnchor:"middle",verticalAnchor:"end"};var b=(c+u)/2,g=Ve(l,s,b,h),j=g.x,x=g.y;return{x:j,y:x,textAnchor:"middle",verticalAnchor:"middle"}},Zre=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,i=t.position,l=n,s=l.x,c=l.y,u=l.width,f=l.height,d=f>=0?1:-1,h=d*a,p=d>0?"end":"start",y=d>0?"start":"end",v=u>=0?1:-1,b=v*a,g=v>0?"end":"start",j=v>0?"start":"end";if(i==="top"){var x={x:s+u/2,y:c-d*a,textAnchor:"middle",verticalAnchor:p};return Ot(Ot({},x),r?{height:Math.max(c-r.y,0),width:u}:{})}if(i==="bottom"){var m={x:s+u/2,y:c+f+h,textAnchor:"middle",verticalAnchor:y};return Ot(Ot({},m),r?{height:Math.max(r.y+r.height-(c+f),0),width:u}:{})}if(i==="left"){var S={x:s-b,y:c+f/2,textAnchor:g,verticalAnchor:"middle"};return Ot(Ot({},S),r?{width:Math.max(S.x-r.x,0),height:f}:{})}if(i==="right"){var w={x:s+u+b,y:c+f/2,textAnchor:j,verticalAnchor:"middle"};return Ot(Ot({},w),r?{width:Math.max(r.x+r.width-w.x,0),height:f}:{})}var A=r?{width:u,height:f}:{};return i==="insideLeft"?Ot({x:s+b,y:c+f/2,textAnchor:j,verticalAnchor:"middle"},A):i==="insideRight"?Ot({x:s+u-b,y:c+f/2,textAnchor:g,verticalAnchor:"middle"},A):i==="insideTop"?Ot({x:s+u/2,y:c+h,textAnchor:"middle",verticalAnchor:y},A):i==="insideBottom"?Ot({x:s+u/2,y:c+f-h,textAnchor:"middle",verticalAnchor:p},A):i==="insideTopLeft"?Ot({x:s+b,y:c+h,textAnchor:j,verticalAnchor:y},A):i==="insideTopRight"?Ot({x:s+u-b,y:c+h,textAnchor:g,verticalAnchor:y},A):i==="insideBottomLeft"?Ot({x:s+b,y:c+f-h,textAnchor:j,verticalAnchor:p},A):i==="insideBottomRight"?Ot({x:s+u-b,y:c+f-h,textAnchor:g,verticalAnchor:p},A):Po(i)&&(X(i.x)||qi(i.x))&&(X(i.y)||qi(i.y))?Ot({x:s+en(i.x,u),y:c+en(i.y,f),textAnchor:"end",verticalAnchor:"end"},A):Ot({x:s+u/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},A)},Jre=function(t){return"cx"in t&&X(t.cx)};function $t(e){var t=e.offset,n=t===void 0?5:t,r=qre(e,zre),a=Ot({offset:n},r),i=a.viewBox,l=a.position,s=a.value,c=a.children,u=a.content,f=a.className,d=f===void 0?"":f,h=a.textBreakAll;if(!i||me(s)&&me(c)&&!O.isValidElement(u)&&!fe(u))return null;if(O.isValidElement(u))return O.cloneElement(u,a);var p;if(fe(u)){if(p=O.createElement(u,a),O.isValidElement(p))return p}else p=Kre(a);var y=Jre(i),v=le(a,!0);if(y&&(l==="insideStart"||l==="insideEnd"||l==="end"))return Wre(a,p,v);var b=y?Qre(a):Zre(a);return N.createElement(bl,xu({className:ye("recharts-label",d)},v,b,{breakAll:h}),p)}$t.displayName="Label";var sP=function(t){var n=t.cx,r=t.cy,a=t.angle,i=t.startAngle,l=t.endAngle,s=t.r,c=t.radius,u=t.innerRadius,f=t.outerRadius,d=t.x,h=t.y,p=t.top,y=t.left,v=t.width,b=t.height,g=t.clockWise,j=t.labelViewBox;if(j)return j;if(X(v)&&X(b)){if(X(d)&&X(h))return{x:d,y:h,width:v,height:b};if(X(p)&&X(y))return{x:p,y,width:v,height:b}}return X(d)&&X(h)?{x:d,y:h,width:0,height:0}:X(n)&&X(r)?{cx:n,cy:r,startAngle:i||a||0,endAngle:l||a||0,innerRadius:u||0,outerRadius:f||c||s||0,clockWise:g}:t.viewBox?t.viewBox:{}},eae=function(t,n){return t?t===!0?N.createElement($t,{key:"label-implicit",viewBox:n}):_t(t)?N.createElement($t,{key:"label-implicit",viewBox:n,value:t}):O.isValidElement(t)?t.type===$t?O.cloneElement(t,{key:"label-implicit",viewBox:n}):N.createElement($t,{key:"label-implicit",content:t,viewBox:n}):fe(t)?N.createElement($t,{key:"label-implicit",content:t,viewBox:n}):Po(t)?N.createElement($t,xu({viewBox:n},t,{key:"label-implicit"})):null:null},tae=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=sP(t),l=kn(a,$t).map(function(c,u){return O.cloneElement(c,{viewBox:n||i,key:"label-".concat(u)})});if(!r)return l;var s=eae(t.label,n||i);return[s].concat(Lre(l))};$t.parseViewBox=sP;$t.renderCallByParent=tae;function nae(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var rae=nae;const aae=Pe(rae);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)}var iae=["valueAccessor"],lae=["data","dataKey","clockWise","id","textBreakAll"];function sae(e){return fae(e)||uae(e)||cae(e)||oae()}function oae(){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 cae(e,t){if(e){if(typeof e=="string")return nb(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 nb(e,t)}}function uae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fae(e){if(Array.isArray(e))return nb(e)}function nb(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 zh(){return zh=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},zh.apply(this,arguments)}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 yO(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){dae(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 dae(e,t,n){return t=hae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hae(e){var t=pae(e,"string");return ju(t)=="symbol"?t:t+""}function pae(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(t==="string"?String:Number)(e)}function vO(e,t){if(e==null)return{};var n=mae(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 mae(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 yae=function(t){return Array.isArray(t.value)?aae(t.value):t.value};function Dr(e){var t=e.valueAccessor,n=t===void 0?yae:t,r=vO(e,iae),a=r.data,i=r.dataKey,l=r.clockWise,s=r.id,c=r.textBreakAll,u=vO(r,lae);return!a||!a.length?null:N.createElement(we,{className:"recharts-label-list"},a.map(function(f,d){var h=me(i)?n(f,d):ft(f&&f.payload,i),p=me(s)?{}:{id:"".concat(s,"-").concat(d)};return N.createElement($t,zh({},le(f,!0),u,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:c,viewBox:$t.parseViewBox(me(l)?f:yO(yO({},f),{},{clockWise:l})),key:"label-".concat(d),index:d}))}))}Dr.displayName="LabelList";function vae(e,t){return e?e===!0?N.createElement(Dr,{key:"labelList-implicit",data:t}):N.isValidElement(e)||fe(e)?N.createElement(Dr,{key:"labelList-implicit",data:t,content:e}):Po(e)?N.createElement(Dr,zh({data:t},e,{key:"labelList-implicit"})):null:null}function gae(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=kn(r,Dr).map(function(l,s){return O.cloneElement(l,{data:t,key:"labelList-".concat(s)})});if(!n)return a;var i=vae(e.label,t);return[i].concat(sae(a))}Dr.renderCallByParent=gae;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 rb(){return rb=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},rb.apply(this,arguments)}function gO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function bO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gO(Object(n),!0).forEach(function(r){bae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bae(e,t,n){return t=xae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xae(e){var t=jae(e,"string");return Su(t)=="symbol"?t:t+""}function jae(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)}var Sae=function(t,n){var r=Jt(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},Kf=function(t){var n=t.cx,r=t.cy,a=t.radius,i=t.angle,l=t.sign,s=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,f=c*(s?1:-1)+a,d=Math.asin(c/f)/Dh,h=u?i:i+l*d,p=Ve(n,r,f,h),y=Ve(n,r,a,h),v=u?i-l*d:i,b=Ve(n,r,f*Math.cos(d*Dh),v);return{center:p,circleTangency:y,lineTangency:b,theta:d}},oP=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,l=t.startAngle,s=t.endAngle,c=Sae(l,s),u=l+c,f=Ve(n,r,i,l),d=Ve(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 p=Ve(n,r,a,l),y=Ve(n,r,a,u);h+="L ".concat(y.x,",").concat(y.y,`
            A `).concat(a,",").concat(a,`,0,
            `).concat(+(Math.abs(c)>180),",").concat(+(l<=u),`,
            `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},wae=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,l=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,d=Jt(f-u),h=Kf({cx:n,cy:r,radius:i,angle:u,sign:d,cornerRadius:l,cornerIsExternal:c}),p=h.circleTangency,y=h.lineTangency,v=h.theta,b=Kf({cx:n,cy:r,radius:i,angle:f,sign:-d,cornerRadius:l,cornerIsExternal:c}),g=b.circleTangency,j=b.lineTangency,x=b.theta,m=c?Math.abs(u-f):Math.abs(u-f)-v-x;if(m<0)return s?"M ".concat(y.x,",").concat(y.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
      `):oP({cx:n,cy:r,innerRadius:a,outerRadius:i,startAngle:u,endAngle:f});var S="M ".concat(y.x,",").concat(y.y,`
    A`).concat(l,",").concat(l,",0,0,").concat(+(d<0),",").concat(p.x,",").concat(p.y,`
    A`).concat(i,",").concat(i,",0,").concat(+(m>180),",").concat(+(d<0),",").concat(g.x,",").concat(g.y,`
    A`).concat(l,",").concat(l,",0,0,").concat(+(d<0),",").concat(j.x,",").concat(j.y,`
  `);if(a>0){var w=Kf({cx:n,cy:r,radius:a,angle:u,sign:d,isExternal:!0,cornerRadius:l,cornerIsExternal:c}),A=w.circleTangency,_=w.lineTangency,E=w.theta,C=Kf({cx:n,cy:r,radius:a,angle:f,sign:-d,isExternal:!0,cornerRadius:l,cornerIsExternal:c}),k=C.circleTangency,M=C.lineTangency,I=C.theta,D=c?Math.abs(u-f):Math.abs(u-f)-E-I;if(D<0&&l===0)return"".concat(S,"L").concat(n,",").concat(r,"Z");S+="L".concat(M.x,",").concat(M.y,`
      A`).concat(l,",").concat(l,",0,0,").concat(+(d<0),",").concat(k.x,",").concat(k.y,`
      A`).concat(a,",").concat(a,",0,").concat(+(D>180),",").concat(+(d>0),",").concat(A.x,",").concat(A.y,`
      A`).concat(l,",").concat(l,",0,0,").concat(+(d<0),",").concat(_.x,",").concat(_.y,"Z")}else S+="L".concat(n,",").concat(r,"Z");return S},Oae={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},cP=function(t){var n=bO(bO({},Oae),t),r=n.cx,a=n.cy,i=n.innerRadius,l=n.outerRadius,s=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 p=ye("recharts-sector",h),y=l-i,v=en(s,y,0,!0),b;return v>0&&Math.abs(f-d)<360?b=wae({cx:r,cy:a,innerRadius:i,outerRadius:l,cornerRadius:Math.min(v,y/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:f,endAngle:d}):b=oP({cx:r,cy:a,innerRadius:i,outerRadius:l,startAngle:f,endAngle:d}),N.createElement("path",rb({},le(n,!0),{className:p,d:b,role:"img"}))};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 ab(){return ab=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},ab.apply(this,arguments)}function xO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function jO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xO(Object(n),!0).forEach(function(r){Aae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Aae(e,t,n){return t=Eae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eae(e){var t=_ae(e,"string");return wu(t)=="symbol"?t:t+""}function _ae(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 SO={curveBasisClosed:Aq,curveBasisOpen:Eq,curveBasis:Oq,curveBumpX:uq,curveBumpY:fq,curveLinearClosed:_q,curveLinear:am,curveMonotoneX:Nq,curveMonotoneY:Tq,curveNatural:Cq,curveStep:Mq,curveStepAfter:Pq,curveStepBefore:kq},Xf=function(t){return t.x===+t.x&&t.y===+t.y},lc=function(t){return t.x},sc=function(t){return t.y},Nae=function(t,n){if(fe(t))return t;var r="curve".concat(nm(t));return(r==="curveMonotone"||r==="curveBump")&&n?SO["".concat(r).concat(n==="vertical"?"Y":"X")]:SO[r]||am},Tae=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,i=a===void 0?[]:a,l=t.baseLine,s=t.layout,c=t.connectNulls,u=c===void 0?!1:c,f=Nae(r,s),d=u?i.filter(function(v){return Xf(v)}):i,h;if(Array.isArray(l)){var p=u?l.filter(function(v){return Xf(v)}):l,y=d.map(function(v,b){return jO(jO({},v),{},{base:p[b]})});return s==="vertical"?h=Lf().y(sc).x1(lc).x0(function(v){return v.base.x}):h=Lf().x(lc).y1(sc).y0(function(v){return v.base.y}),h.defined(Xf).curve(f),h(y)}return s==="vertical"&&X(l)?h=Lf().y(sc).x1(lc).x0(l):X(l)?h=Lf().x(lc).y1(sc).y0(l):h=aM().x(lc).y(sc),h.defined(Xf).curve(f),h(d)},ol=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?Tae(t):a;return O.createElement("path",ab({},le(t,!1),lh(t),{className:ye("recharts-curve",n),d:l,ref:i}))},uP={exports:{}},Cae="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Mae=Cae,kae=Mae;function fP(){}function dP(){}dP.resetWarningCache=fP;var Pae=function(){function e(r,a,i,l,s,c){if(c!==kae){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:dP,resetWarningCache:fP};return n.PropTypes=n,n};uP.exports=Pae();var $ae=uP.exports;const ke=Pe($ae),{getOwnPropertyNames:Rae,getOwnPropertySymbols:Dae}=Object,{hasOwnProperty:zae}=Object.prototype;function Vy(e,t){return function(r,a,i){return e(r,a,i)&&t(r,a,i)}}function Wf(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),s=i.get(r);if(l&&s)return l===r&&s===n;i.set(n,r),i.set(r,n);const c=e(n,r,a);return i.delete(n),i.delete(r),c}}function Lae(e){return e!=null?e[Symbol.toStringTag]:void 0}function wO(e){return Rae(e).concat(Dae(e))}const Bae=Object.hasOwn||((e,t)=>zae.call(e,t));function $l(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Iae="__v",Uae="__o",Hae="_owner",{getOwnPropertyDescriptor:OO,keys:AO}=Object;function qae(e,t){return e.byteLength===t.byteLength&&Lh(new Uint8Array(e),new Uint8Array(t))}function Fae(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 Gae(e,t){return e.byteLength===t.byteLength&&Lh(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Vae(e,t){return $l(e.getTime(),t.getTime())}function Yae(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Kae(e,t){return e===t}function EO(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,s,c=0;for(;(l=i.next())&&!l.done;){const u=t.entries();let f=!1,d=0;for(;(s=u.next())&&!s.done;){if(a[d]){d++;continue}const h=l.value,p=s.value;if(n.equals(h[0],p[0],c,d,e,t,n)&&n.equals(h[1],p[1],h[0],p[0],e,t,n)){f=a[d]=!0;break}d++}if(!f)return!1;c++}return!0}const Xae=$l;function Wae(e,t,n){const r=AO(e);let a=r.length;if(AO(t).length!==a)return!1;for(;a-- >0;)if(!hP(e,t,n,r[a]))return!1;return!0}function oc(e,t,n){const r=wO(e);let a=r.length;if(wO(t).length!==a)return!1;let i,l,s;for(;a-- >0;)if(i=r[a],!hP(e,t,n,i)||(l=OO(e,i),s=OO(t,i),(l||s)&&(!l||!s||l.configurable!==s.configurable||l.enumerable!==s.enumerable||l.writable!==s.writable)))return!1;return!0}function Qae(e,t){return $l(e.valueOf(),t.valueOf())}function Zae(e,t){return e.source===t.source&&e.flags===t.flags}function _O(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,s;for(;(l=i.next())&&!l.done;){const c=t.values();let u=!1,f=0;for(;(s=c.next())&&!s.done;){if(!a[f]&&n.equals(l.value,s.value,l.value,s.value,e,t,n)){u=a[f]=!0;break}f++}if(!u)return!1}return!0}function Lh(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 Jae(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 hP(e,t,n,r){return(r===Hae||r===Uae||r===Iae)&&(e.$$typeof||t.$$typeof)?!0:Bae(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const eie="[object ArrayBuffer]",tie="[object Arguments]",nie="[object Boolean]",rie="[object DataView]",aie="[object Date]",iie="[object Error]",lie="[object Map]",sie="[object Number]",oie="[object Object]",cie="[object RegExp]",uie="[object Set]",fie="[object String]",die={"[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},hie="[object URL]",pie=Object.prototype.toString;function mie({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:l,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:u,areRegExpsEqual:f,areSetsEqual:d,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:y}){return function(b,g,j){if(b===g)return!0;if(b==null||g==null)return!1;const x=typeof b;if(x!==typeof g)return!1;if(x!=="object")return x==="number"?s(b,g,j):x==="function"?i(b,g,j):!1;const m=b.constructor;if(m!==g.constructor)return!1;if(m===Object)return c(b,g,j);if(Array.isArray(b))return t(b,g,j);if(m===Date)return r(b,g,j);if(m===RegExp)return f(b,g,j);if(m===Map)return l(b,g,j);if(m===Set)return d(b,g,j);const S=pie.call(b);if(S===aie)return r(b,g,j);if(S===cie)return f(b,g,j);if(S===lie)return l(b,g,j);if(S===uie)return d(b,g,j);if(S===oie)return typeof b.then!="function"&&typeof g.then!="function"&&c(b,g,j);if(S===hie)return p(b,g,j);if(S===iie)return a(b,g,j);if(S===tie)return c(b,g,j);if(die[S])return h(b,g,j);if(S===eie)return e(b,g,j);if(S===rie)return n(b,g,j);if(S===nie||S===sie||S===fie)return u(b,g,j);if(y){let w=y[S];if(!w){const A=Lae(b);A&&(w=y[A])}if(w)return w(b,g,j)}return!1}}function yie({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:qae,areArraysEqual:n?oc:Fae,areDataViewsEqual:Gae,areDatesEqual:Vae,areErrorsEqual:Yae,areFunctionsEqual:Kae,areMapsEqual:n?Vy(EO,oc):EO,areNumbersEqual:Xae,areObjectsEqual:n?oc:Wae,arePrimitiveWrappersEqual:Qae,areRegExpsEqual:Zae,areSetsEqual:n?Vy(_O,oc):_O,areTypedArraysEqual:n?Vy(Lh,oc):Lh,areUrlsEqual:Jae,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=Wf(r.areArraysEqual),i=Wf(r.areMapsEqual),l=Wf(r.areObjectsEqual),s=Wf(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:l,areSetsEqual:s})}return r}function vie(e){return function(t,n,r,a,i,l,s){return e(t,n,s)}}function gie({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(s,c){const{cache:u=e?new WeakMap:void 0,meta:f}=n();return t(s,c,{cache:u,equals:r,meta:f,strict:a})};if(e)return function(s,c){return t(s,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(s,c){return t(s,c,i)}}const bie=Oi();Oi({strict:!0});Oi({circular:!0});Oi({circular:!0,strict:!0});Oi({createInternalComparator:()=>$l});Oi({strict:!0,createInternalComparator:()=>$l});Oi({circular:!0,createInternalComparator:()=>$l});Oi({circular:!0,createInternalComparator:()=>$l,strict:!0});function Oi(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,i=yie(e),l=mie(i),s=n?n(l):vie(l);return gie({circular:t,comparator:l,createState:r,equals:s,strict:a})}function xie(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function NO(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):xie(a)};requestAnimationFrame(r)}function ib(e){"@babel/helpers - typeof";return ib=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},ib(e)}function jie(e){return Aie(e)||Oie(e)||wie(e)||Sie()}function Sie(){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 wie(e,t){if(e){if(typeof e=="string")return TO(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 TO(e,t)}}function TO(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 Oie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Aie(e){if(Array.isArray(e))return e}function Eie(){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,s=jie(l),c=s[0],u=s.slice(1);if(typeof c=="number"){NO(a.bind(null,u),c);return}a(c),NO(a.bind(null,u));return}ib(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 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 CO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function MO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CO(Object(n),!0).forEach(function(r){pP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pP(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=Nie(e,"string");return Ou(t)==="symbol"?t:String(t)}function Nie(e,t){if(Ou(e)!=="object"||e===null)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)}var Tie=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(i){return a.includes(i)})})},Cie=function(t){return t},Mie=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Pc=function(t,n){return Object.keys(n).reduce(function(r,a){return MO(MO({},r),{},pP({},a,t(a,n[a])))},{})},kO=function(t,n,r){return t.map(function(a){return"".concat(Mie(a)," ").concat(n,"ms ").concat(r)}).join(",")};function kie(e,t){return Rie(e)||$ie(e,t)||mP(e,t)||Pie()}function Pie(){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 $ie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.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 s}}function Rie(e){if(Array.isArray(e))return e}function Die(e){return Bie(e)||Lie(e)||mP(e)||zie()}function zie(){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 mP(e,t){if(e){if(typeof e=="string")return lb(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 lb(e,t)}}function Lie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bie(e){if(Array.isArray(e))return lb(e)}function lb(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 Bh=1e-4,yP=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},vP=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},PO=function(t,n){return function(r){var a=yP(t,n);return vP(a,r)}},Iie=function(t,n){return function(r){var a=yP(t,n),i=[].concat(Die(a.map(function(l,s){return l*s}).slice(1)),[0]);return vP(i,r)}},$O=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],s=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,i=0,l=1,s=1;break;case"ease":a=.25,i=.1,l=.25,s=1;break;case"ease-in":a=.42,i=0,l=1,s=1;break;case"ease-out":a=.42,i=0,l=.58,s=1;break;case"ease-in-out":a=0,i=0,l=.58,s=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(b){return parseFloat(b)}),f=kie(u,4);a=f[0],i=f[1],l=f[2],s=f[3]}}}var d=PO(a,l),h=PO(i,s),p=Iie(a,l),y=function(g){return g>1?1:g<0?0:g},v=function(g){for(var j=g>1?1:g,x=j,m=0;m<8;++m){var S=d(x)-j,w=p(x);if(Math.abs(S-j)<Bh||w<Bh)return h(x);x=y(x-S/w)}return h(x)};return v.isStepper=!1,v},Uie=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,s=l===void 0?17:l,c=function(f,d,h){var p=-(f-d)*r,y=h*i,v=h+(p-y)*s/1e3,b=h*s/1e3+f;return Math.abs(b-d)<Bh&&Math.abs(v)<Bh?[d,0]:[b,v]};return c.isStepper=!0,c.dt=s,c},Hie=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 $O(a);case"spring":return Uie();default:if(a.split("(")[0]==="cubic-bezier")return $O(a)}return typeof a=="function"?a:null};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 RO(e){return Gie(e)||Fie(e)||gP(e)||qie()}function qie(){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 Fie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gie(e){if(Array.isArray(e))return ob(e)}function DO(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 Lt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DO(Object(n),!0).forEach(function(r){sb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sb(e,t,n){return t=Vie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vie(e){var t=Yie(e,"string");return Au(t)==="symbol"?t:String(t)}function Yie(e,t){if(Au(e)!=="object"||e===null)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(t==="string"?String:Number)(e)}function Kie(e,t){return Qie(e)||Wie(e,t)||gP(e,t)||Xie()}function Xie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gP(e,t){if(e){if(typeof e=="string")return ob(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 ob(e,t)}}function ob(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.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 s}}function Qie(e){if(Array.isArray(e))return e}var Ih=function(t,n,r){return t+(n-t)*r},cb=function(t){var n=t.from,r=t.to;return n!==r},Zie=function e(t,n,r){var a=Pc(function(i,l){if(cb(l)){var s=t(l.from,l.to,l.velocity),c=Kie(s,2),u=c[0],f=c[1];return Lt(Lt({},l),{},{from:u,velocity:f})}return l},n);return r<1?Pc(function(i,l){return cb(l)?Lt(Lt({},l),{},{velocity:Ih(l.velocity,a[i].velocity,r),from:Ih(l.from,a[i].from,r)}):l},n):e(t,a,r-1)};const Jie=function(e,t,n,r,a){var i=Tie(e,t),l=i.reduce(function(b,g){return Lt(Lt({},b),{},sb({},g,[e[g],t[g]]))},{}),s=i.reduce(function(b,g){return Lt(Lt({},b),{},sb({},g,{from:e[g],velocity:0,to:t[g]}))},{}),c=-1,u,f,d=function(){return null},h=function(){return Pc(function(g,j){return j.from},s)},p=function(){return!Object.values(s).filter(cb).length},y=function(g){u||(u=g);var j=g-u,x=j/n.dt;s=Zie(n,s,x),a(Lt(Lt(Lt({},e),t),h())),u=g,p()||(c=requestAnimationFrame(d))},v=function(g){f||(f=g);var j=(g-f)/r,x=Pc(function(S,w){return Ih.apply(void 0,RO(w).concat([n(j)]))},l);if(a(Lt(Lt(Lt({},e),t),x)),j<1)c=requestAnimationFrame(d);else{var m=Pc(function(S,w){return Ih.apply(void 0,RO(w).concat([n(1)]))},l);a(Lt(Lt(Lt({},e),t),m))}};return d=n.isStepper?y:v,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(c)}}};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)}var ele=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function tle(e,t){if(e==null)return{};var n=nle(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 nle(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 Yy(e){return lle(e)||ile(e)||ale(e)||rle()}function rle(){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 ale(e,t){if(e){if(typeof e=="string")return ub(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 ub(e,t)}}function ile(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lle(e){if(Array.isArray(e))return ub(e)}function ub(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 zO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zO(Object(n),!0).forEach(function(r){mc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mc(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 sle(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,bP(r.key),r)}}function cle(e,t,n){return t&&ole(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bP(e){var t=ule(e,"string");return eo(t)==="symbol"?t:String(t)}function ule(e,t){if(eo(e)!=="object"||e===null)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(t==="string"?String:Number)(e)}function fle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fb(e,t)}function fb(e,t){return fb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},fb(e,t)}function dle(e){var t=hle();return function(){var r=Uh(e),a;if(t){var i=Uh(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return db(this,a)}}function db(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 hb(e)}function hb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hle(){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 Uh(e){return Uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uh(e)}var vr=function(e){fle(n,e);var t=dle(n);function n(r,a){var i;sle(this,n),i=t.call(this,r,a);var l=i.props,s=l.isActive,c=l.attributeName,u=l.from,f=l.to,d=l.steps,h=l.children,p=l.duration;if(i.handleStyleChange=i.handleStyleChange.bind(hb(i)),i.changeStyle=i.changeStyle.bind(hb(i)),!s||p<=0)return i.state={style:{}},typeof h=="function"&&(i.state={style:f}),db(i);if(d&&d.length)i.state={style:d[0].style};else if(u){if(typeof h=="function")return i.state={style:u},db(i);i.state={style:c?mc({},c,u):u}}else i.state={style:{}};return i}return cle(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,s=i.canBegin,c=i.attributeName,u=i.shouldReAnimate,f=i.to,d=i.from,h=this.state.style;if(s){if(!l){var p={style:c?mc({},c,f):f};this.state&&h&&(c&&h[c]!==f||!c&&h!==f)&&this.setState(p);return}if(!(bie(a.to,f)&&a.canBegin&&a.isActive)){var y=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||u?d:a.to;if(this.state&&h){var b={style:c?mc({},c,v):v};(c&&h[c]!==v||!c&&h!==v)&&this.setState(b)}this.runAnimation(sr(sr({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,l=a.from,s=a.to,c=a.duration,u=a.easing,f=a.begin,d=a.onAnimationEnd,h=a.onAnimationStart,p=Jie(l,s,Hie(u),c,this.changeStyle),y=function(){i.stopJSAnimation=p()};this.manager.start([h,f,y,c,d])}},{key:"runStepAnimation",value:function(a){var i=this,l=a.steps,s=a.begin,c=a.onAnimationStart,u=l[0],f=u.style,d=u.duration,h=d===void 0?0:d,p=function(v,b,g){if(g===0)return v;var j=b.duration,x=b.easing,m=x===void 0?"ease":x,S=b.style,w=b.properties,A=b.onAnimationEnd,_=g>0?l[g-1]:b,E=w||Object.keys(S);if(typeof m=="function"||m==="spring")return[].concat(Yy(v),[i.runJSAnimation.bind(i,{from:_.style,to:S,duration:j,easing:m}),j]);var C=kO(E,j,m),k=sr(sr(sr({},_.style),S),{},{transition:C});return[].concat(Yy(v),[k,j,A]).filter(Cie)};return this.manager.start([c].concat(Yy(l.reduce(p,[f,Math.max(h,s)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=Eie());var i=a.begin,l=a.duration,s=a.attributeName,c=a.to,u=a.easing,f=a.onAnimationStart,d=a.onAnimationEnd,h=a.steps,p=a.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(a);return}if(h.length>1){this.runStepAnimation(a);return}var v=s?mc({},s,c):c,b=kO(Object.keys(v),l,u);y.start([f,i,sr(sr({},v),{},{transition:b}),l,d])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var l=a.duration;a.attributeName,a.easing;var s=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var c=tle(a,ele),u=O.Children.count(i),f=this.state.style;if(typeof i=="function")return i(f);if(!s||u===0||l<=0)return i;var d=function(p){var y=p.props,v=y.style,b=v===void 0?{}:v,g=y.className,j=O.cloneElement(p,sr(sr({},c),{},{style:sr(sr({},b),f),className:g}));return j};return u===1?d(O.Children.only(i)):N.createElement("div",null,O.Children.map(i,function(h){return d(h)}))}}]),n}(O.PureComponent);vr.displayName="Animate";vr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};vr.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 Eu(e){"@babel/helpers - typeof";return Eu=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},Eu(e)}function Hh(){return Hh=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},Hh.apply(this,arguments)}function ple(e,t){return gle(e)||vle(e,t)||yle(e,t)||mle()}function mle(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yle(e,t){if(e){if(typeof e=="string")return LO(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 LO(e,t)}}function LO(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 vle(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.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 s}}function gle(e){if(Array.isArray(e))return 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 IO(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){ble(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 ble(e,t,n){return t=xle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xle(e){var t=jle(e,"string");return Eu(t)=="symbol"?t:t+""}function jle(e,t){if(Eu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Eu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UO=function(t,n,r,a,i){var l=Math.min(Math.abs(r)/2,Math.abs(a)/2),s=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,p=4;h<p;h++)d[h]=i[h]>l?l:i[h];f="M".concat(t,",").concat(n+s*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+s*d[1])),f+="L ".concat(t+r,",").concat(n+a-s*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-s*d[3])),f+="Z"}else if(l>0&&i===+i&&i>0){var y=Math.min(l,i);f="M ".concat(t,",").concat(n+s*y,`
            A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+c*y,",").concat(n,`
            L `).concat(t+r-c*y,",").concat(n,`
            A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+r,",").concat(n+s*y,`
            L `).concat(t+r,",").concat(n+a-s*y,`
            A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+r-c*y,",").concat(n+a,`
            L `).concat(t+c*y,",").concat(n+a,`
            A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t,",").concat(n+a-s*y," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return f},Sle=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,i=n.x,l=n.y,s=n.width,c=n.height;if(Math.abs(s)>0&&Math.abs(c)>0){var u=Math.min(i,i+s),f=Math.max(i,i+s),d=Math.min(l,l+c),h=Math.max(l,l+c);return r>=u&&r<=f&&a>=d&&a<=h}return!1},wle={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},j1=function(t){var n=IO(IO({},wle),t),r=O.useRef(),a=O.useState(-1),i=ple(a,2),l=i[0],s=i[1];O.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var m=r.current.getTotalLength();m&&s(m)}catch{}},[]);var c=n.x,u=n.y,f=n.width,d=n.height,h=n.radius,p=n.className,y=n.animationEasing,v=n.animationDuration,b=n.animationBegin,g=n.isAnimationActive,j=n.isUpdateAnimationActive;if(c!==+c||u!==+u||f!==+f||d!==+d||f===0||d===0)return null;var x=ye("recharts-rectangle",p);return j?N.createElement(vr,{canBegin:l>0,from:{width:f,height:d,x:c,y:u},to:{width:f,height:d,x:c,y:u},duration:v,animationEasing:y,isActive:j},function(m){var S=m.width,w=m.height,A=m.x,_=m.y;return N.createElement(vr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:v,isActive:g,easing:y},N.createElement("path",Hh({},le(n,!0),{className:x,d:UO(A,_,S,w,h),ref:r})))}):N.createElement("path",Hh({},le(n,!0),{className:x,d:UO(c,u,f,d,h)}))},Ole=["points","className","baseLinePoints","connectNulls"];function cs(){return cs=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},cs.apply(this,arguments)}function Ale(e,t){if(e==null)return{};var n=Ele(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 Ele(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){return Cle(e)||Tle(e)||Nle(e)||_le()}function _le(){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 Nle(e,t){if(e){if(typeof e=="string")return pb(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 pb(e,t)}}function Tle(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cle(e){if(Array.isArray(e))return pb(e)}function pb(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 qO=function(t){return t&&t.x===+t.x&&t.y===+t.y},Mle=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){qO(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),qO(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},$c=function(t,n){var r=Mle(t);n&&(r=[r.reduce(function(i,l){return[].concat(HO(i),HO(l))},[])]);var a=r.map(function(i){return i.reduce(function(l,s,c){return"".concat(l).concat(c===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return r.length===1?"".concat(a,"Z"):a},kle=function(t,n,r){var a=$c(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat($c(n.reverse(),r).slice(1))},Ple=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,i=t.connectNulls,l=Ale(t,Ole);if(!n||!n.length)return null;var s=ye("recharts-polygon",r);if(a&&a.length){var c=l.stroke&&l.stroke!=="none",u=kle(n,a,i);return N.createElement("g",{className:s},N.createElement("path",cs({},le(l,!0),{fill:u.slice(-1)==="Z"?l.fill:"none",stroke:"none",d:u})),c?N.createElement("path",cs({},le(l,!0),{fill:"none",d:$c(n,i)})):null,c?N.createElement("path",cs({},le(l,!0),{fill:"none",d:$c(a,i)})):null)}var f=$c(n,i);return N.createElement("path",cs({},le(l,!0),{fill:f.slice(-1)==="Z"?l.fill:"none",className:s,d:f}))};function mb(){return mb=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},mb.apply(this,arguments)}var pf=function(t){var n=t.cx,r=t.cy,a=t.r,i=t.className,l=ye("recharts-dot",i);return n===+n&&r===+r&&a===+a?O.createElement("circle",mb({},le(t,!1),lh(t),{className:l,cx:n,cy:r,r:a})):null};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)}var $le=["x","y","top","left","width","height","className"];function yb(){return yb=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},yb.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 Rle(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){Dle(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 Dle(e,t,n){return t=zle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zle(e){var t=Lle(e,"string");return _u(t)=="symbol"?t:t+""}function Lle(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)}function Ble(e,t){if(e==null)return{};var n=Ile(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 Ile(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 Ule=function(t,n,r,a,i,l){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(l,",").concat(n,"h").concat(r)},Hle=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,l=t.top,s=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,p=h===void 0?0:h,y=t.className,v=Ble(t,$le),b=Rle({x:r,y:i,top:s,left:u,width:d,height:p},v);return!X(r)||!X(i)||!X(d)||!X(p)||!X(s)||!X(u)?null:N.createElement("path",yb({},le(b,!0),{className:ye("recharts-cross",y),d:Ule(r,i,d,p,s,u)}))},qle=ym,Fle=Mk,Gle=qr;function Vle(e,t){return e&&e.length?qle(e,Gle(t),Fle):void 0}var Yle=Vle;const Kle=Pe(Yle);var Xle=ym,Wle=qr,Qle=kk;function Zle(e,t){return e&&e.length?Xle(e,Wle(t),Qle):void 0}var Jle=Zle;const ese=Pe(Jle);var tse=["cx","cy","angle","ticks","axisLine"],nse=["ticks","tick","angle","tickFormatter","stroke"];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 Rc(){return Rc=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},Rc.apply(this,arguments)}function GO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ki(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GO(Object(n),!0).forEach(function(r){xm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VO(e,t){if(e==null)return{};var n=rse(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 rse(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 ase(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jP(r.key),r)}}function ise(e,t,n){return t&&YO(e.prototype,t),n&&YO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function lse(e,t,n){return t=qh(t),sse(e,xP()?Reflect.construct(t,n||[],qh(e).constructor):t.apply(e,n))}function sse(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 ose(e)}function ose(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xP=function(){return!!e})()}function qh(e){return qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qh(e)}function cse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vb(e,t)}function vb(e,t){return vb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},vb(e,t)}function xm(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=use(e,"string");return to(t)=="symbol"?t:t+""}function use(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 jm=function(e){function t(){return ase(this,t),lse(this,t,arguments)}return cse(t,e),ise(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,i=this.props,l=i.angle,s=i.cx,c=i.cy;return Ve(s,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,s=r.ticks,c=Kle(s,function(f){return f.coordinate||0}),u=ese(s,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,s=r.ticks,c=r.axisLine,u=VO(r,tse),f=s.reduce(function(y,v){return[Math.min(y[0],v.coordinate),Math.max(y[1],v.coordinate)]},[1/0,-1/0]),d=Ve(a,i,f[0],l),h=Ve(a,i,f[1],l),p=ki(ki(ki({},le(u,!1)),{},{fill:"none"},le(c,!1)),{},{x1:d.x,y1:d.y,x2:h.x,y2:h.y});return N.createElement("line",Rc({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,l=a.tick,s=a.angle,c=a.tickFormatter,u=a.stroke,f=VO(a,nse),d=this.getTickTextAnchor(),h=le(f,!1),p=le(l,!1),y=i.map(function(v,b){var g=r.getTickValueCoord(v),j=ki(ki(ki(ki({textAnchor:d,transform:"rotate(".concat(90-s,", ").concat(g.x,", ").concat(g.y,")")},h),{},{stroke:"none",fill:u},p),{},{index:b},g),{},{payload:v});return N.createElement(we,Rc({className:ye("recharts-polar-radius-axis-tick",lP(l)),key:"tick-".concat(v.coordinate)},gl(r.props,v,b)),t.renderTickItem(l,j,c?c(v.value,b):v.value))});return N.createElement(we,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.axisLine,l=r.tick;return!a||!a.length?null:N.createElement(we,{className:ye("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),l&&this.renderTicks(),$t.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,i){var l;return N.isValidElement(r)?l=N.cloneElement(r,a):fe(r)?l=r(a):l=N.createElement(bl,Rc({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),l}}])}(O.PureComponent);xm(jm,"displayName","PolarRadiusAxis");xm(jm,"axisType","radiusAxis");xm(jm,"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 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 Ui(){return Ui=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},Ui.apply(this,arguments)}function KO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Pi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KO(Object(n),!0).forEach(function(r){Sm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XO(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,wP(r.key),r)}}function dse(e,t,n){return t&&XO(e.prototype,t),n&&XO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hse(e,t,n){return t=Fh(t),pse(e,SP()?Reflect.construct(t,n||[],Fh(e).constructor):t.apply(e,n))}function pse(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 mse(e)}function mse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SP=function(){return!!e})()}function Fh(e){return Fh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fh(e)}function yse(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 Sm(e,t,n){return t=wP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wP(e){var t=vse(e,"string");return no(t)=="symbol"?t:t+""}function vse(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(t==="string"?String:Number)(e)}var gse=Math.PI/180,WO=1e-5,wm=function(e){function t(){return fse(this,t),hse(this,t,arguments)}return yse(t,e),dse(t,[{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.cx,l=a.cy,s=a.radius,c=a.orientation,u=a.tickSize,f=u||8,d=Ve(i,l,s,r.coordinate),h=Ve(i,l,s+(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*gse),l;return i>WO?l=a==="outer"?"start":"end":i<-WO?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,s=r.axisLine,c=r.axisLineType,u=Pi(Pi({},le(this.props,!1)),{},{fill:"none"},le(s,!1));if(c==="circle")return N.createElement(pf,Ui({className:"recharts-polar-angle-axis-line"},u,{cx:a,cy:i,r:l}));var f=this.props.ticks,d=f.map(function(h){return Ve(a,i,l,h.coordinate)});return N.createElement(Ple,Ui({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,s=a.tickLine,c=a.tickFormatter,u=a.stroke,f=le(this.props,!1),d=le(l,!1),h=Pi(Pi({},f),{},{fill:"none"},le(s,!1)),p=i.map(function(y,v){var b=r.getTickLineCoord(y),g=r.getTickTextAnchor(y),j=Pi(Pi(Pi({textAnchor:g},f),{},{stroke:"none",fill:u},d),{},{index:v,payload:y,x:b.x2,y:b.y2});return N.createElement(we,Ui({className:ye("recharts-polar-angle-axis-tick",lP(l)),key:"tick-".concat(y.coordinate)},gl(r.props,y,v)),s&&N.createElement("line",Ui({className:"recharts-polar-angle-axis-tick-line"},h,b)),l&&t.renderTickItem(l,j,c?c(y.value,v):y.value))});return N.createElement(we,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.radius,l=r.axisLine;return i<=0||!a||!a.length?null:N.createElement(we,{className:ye("recharts-polar-angle-axis",this.props.className)},l&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,i){var l;return N.isValidElement(r)?l=N.cloneElement(r,a):fe(r)?l=r(a):l=N.createElement(bl,Ui({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),l}}])}(O.PureComponent);Sm(wm,"displayName","PolarAngleAxis");Sm(wm,"axisType","angleAxis");Sm(wm,"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 bse=NM,xse=bse(Object.getPrototypeOf,Object),jse=xse,Sse=Aa,wse=jse,Ose=Ea,Ase="[object Object]",Ese=Function.prototype,_se=Object.prototype,OP=Ese.toString,Nse=_se.hasOwnProperty,Tse=OP.call(Object);function Cse(e){if(!Ose(e)||Sse(e)!=Ase)return!1;var t=wse(e);if(t===null)return!0;var n=Nse.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&OP.call(n)==Tse}var Mse=Cse;const kse=Pe(Mse);var Pse=Aa,$se=Ea,Rse="[object Boolean]";function Dse(e){return e===!0||e===!1||$se(e)&&Pse(e)==Rse}var zse=Dse;const Lse=Pe(zse);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 Gh(){return Gh=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},Gh.apply(this,arguments)}function Bse(e,t){return qse(e)||Hse(e,t)||Use(e,t)||Ise()}function Ise(){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 Use(e,t){if(e){if(typeof e=="string")return QO(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 QO(e,t)}}function QO(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 Hse(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.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 s}}function qse(e){if(Array.isArray(e))return e}function ZO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function JO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZO(Object(n),!0).forEach(function(r){Fse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fse(e,t,n){return t=Gse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gse(e){var t=Vse(e,"string");return Nu(t)=="symbol"?t:t+""}function Vse(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 eA=function(t,n,r,a,i){var l=r-a,s;return s="M ".concat(t,",").concat(n),s+="L ".concat(t+r,",").concat(n),s+="L ".concat(t+r-l/2,",").concat(n+i),s+="L ".concat(t+r-l/2-a,",").concat(n+i),s+="L ".concat(t,",").concat(n," Z"),s},Yse={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Kse=function(t){var n=JO(JO({},Yse),t),r=O.useRef(),a=O.useState(-1),i=Bse(a,2),l=i[0],s=i[1];O.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var x=r.current.getTotalLength();x&&s(x)}catch{}},[]);var c=n.x,u=n.y,f=n.upperWidth,d=n.lowerWidth,h=n.height,p=n.className,y=n.animationEasing,v=n.animationDuration,b=n.animationBegin,g=n.isUpdateAnimationActive;if(c!==+c||u!==+u||f!==+f||d!==+d||h!==+h||f===0&&d===0||h===0)return null;var j=ye("recharts-trapezoid",p);return g?N.createElement(vr,{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:v,animationEasing:y,isActive:g},function(x){var m=x.upperWidth,S=x.lowerWidth,w=x.height,A=x.x,_=x.y;return N.createElement(vr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:v,easing:y},N.createElement("path",Gh({},le(n,!0),{className:j,d:eA(A,_,m,S,w),ref:r})))}):N.createElement("g",null,N.createElement("path",Gh({},le(n,!0),{className:j,d:eA(c,u,f,d,h)})))},Xse=["option","shapeType","propTransformer","activeClassName","isActive"];function Tu(e){"@babel/helpers - typeof";return Tu=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},Tu(e)}function Wse(e,t){if(e==null)return{};var n=Qse(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 Qse(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 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 Vh(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){Zse(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 Zse(e,t,n){return t=Jse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jse(e){var t=eoe(e,"string");return Tu(t)=="symbol"?t:t+""}function eoe(e,t){if(Tu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function toe(e,t){return Vh(Vh({},t),e)}function noe(e,t){return e==="symbols"}function nA(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return N.createElement(j1,n);case"trapezoid":return N.createElement(Kse,n);case"sector":return N.createElement(cP,n);case"symbols":if(noe(t))return N.createElement(I0,n);break;default:return null}}function roe(e){return O.isValidElement(e)?e.props:e}function AP(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?toe:r,i=e.activeClassName,l=i===void 0?"recharts-active-shape":i,s=e.isActive,c=Wse(e,Xse),u;if(O.isValidElement(t))u=O.cloneElement(t,Vh(Vh({},c),roe(t)));else if(fe(t))u=t(c);else if(kse(t)&&!Lse(t)){var f=a(t,c);u=N.createElement(nA,{shapeType:n,elementProps:f})}else{var d=c;u=N.createElement(nA,{shapeType:n,elementProps:d})}return s?N.createElement(we,{className:l},u):u}function Om(e,t){return t!=null&&"trapezoids"in e.props}function Am(e,t){return t!=null&&"sectors"in e.props}function Cu(e,t){return t!=null&&"points"in e.props}function aoe(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 ioe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function loe(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function soe(e,t){var n;return Om(e,t)?n=aoe:Am(e,t)?n=ioe:Cu(e,t)&&(n=loe),n}function ooe(e,t){var n;return Om(e,t)?n="trapezoids":Am(e,t)?n="sectors":Cu(e,t)&&(n="points"),n}function coe(e,t){if(Om(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(Am(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 Cu(e,t)?t.payload:{}}function uoe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=ooe(n,t),i=coe(n,t),l=r.filter(function(c,u){var f=xl(i,c),d=n.props[a].filter(function(y){var v=soe(n,t);return v(y,t)}),h=n.props[a].indexOf(d[d.length-1]),p=u===h;return f&&p}),s=r.indexOf(l[l.length-1]);return s}var jd;function ro(e){"@babel/helpers - typeof";return ro=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},ro(e)}function us(){return us=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},us.apply(this,arguments)}function rA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function qe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rA(Object(n),!0).forEach(function(r){Wn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function foe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_P(r.key),r)}}function doe(e,t,n){return t&&aA(e.prototype,t),n&&aA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hoe(e,t,n){return t=Yh(t),poe(e,EP()?Reflect.construct(t,n||[],Yh(e).constructor):t.apply(e,n))}function poe(e,t){if(t&&(ro(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return moe(e)}function moe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EP=function(){return!!e})()}function Yh(e){return Yh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yh(e)}function yoe(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&&bb(e,t)}function bb(e,t){return bb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},bb(e,t)}function Wn(e,t,n){return t=_P(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _P(e){var t=voe(e,"string");return ro(t)=="symbol"?t:t+""}function voe(e,t){if(ro(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ro(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Na=function(e){function t(n){var r;return foe(this,t),r=hoe(this,t,[n]),Wn(r,"pieRef",null),Wn(r,"sectorRefs",[]),Wn(r,"id",Ml("recharts-pie-")),Wn(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),fe(a)&&a()}),Wn(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),fe(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return yoe(t,e),doe(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,s=i.labelLine,c=i.dataKey,u=i.valueKey,f=le(this.props,!1),d=le(l,!1),h=le(s,!1),p=l&&l.offsetRadius||20,y=r.map(function(v,b){var g=(v.startAngle+v.endAngle)/2,j=Ve(v.cx,v.cy,v.outerRadius+p,g),x=qe(qe(qe(qe({},f),v),{},{stroke:"none"},d),{},{index:b,textAnchor:t.getTextAnchor(j.x,v.cx)},j),m=qe(qe(qe(qe({},f),v),{},{fill:"none",stroke:v.fill},h),{},{index:b,points:[Ve(v.cx,v.cy,v.outerRadius,g),j]}),S=c;return me(c)&&me(u)?S="value":me(c)&&(S=u),N.createElement(we,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(b)},s&&t.renderLabelLineItem(s,m,"line"),t.renderLabelItem(l,x,ft(v,S)))});return N.createElement(we,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(r){var a=this,i=this.props,l=i.activeShape,s=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,p=d?l:h,y=qe(qe({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return N.createElement(we,us({ref:function(b){b&&!a.sectorRefs.includes(b)&&a.sectorRefs.push(b)},tabIndex:-1,className:"recharts-pie-sector"},gl(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)}),N.createElement(AP,us({option:p,isActive:d,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,a=this.props,i=a.sectors,l=a.isAnimationActive,s=a.animationBegin,c=a.animationDuration,u=a.animationEasing,f=a.animationId,d=this.state,h=d.prevSectors,p=d.prevIsAnimationActive;return N.createElement(vr,{begin:s,duration:c,isActive:l,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var v=y.t,b=[],g=i&&i[0],j=g.startAngle;return i.forEach(function(x,m){var S=h&&h[m],w=m>0?Mn(x,"paddingAngle",0):0;if(S){var A=At(S.endAngle-S.startAngle,x.endAngle-x.startAngle),_=qe(qe({},x),{},{startAngle:j+w,endAngle:j+A(v)+w});b.push(_),j=_.endAngle}else{var E=x.endAngle,C=x.startAngle,k=At(0,E-C),M=k(v),I=qe(qe({},x),{},{startAngle:j+w,endAngle:j+M+w});b.push(I),j=I.endAngle}}),N.createElement(we,null,r.renderSectorsStatically(b))})}},{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 s=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[s].focus(),a.setState({sectorToFocus:s});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||!xl(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,s=a.className,c=a.label,u=a.cx,f=a.cy,d=a.innerRadius,h=a.outerRadius,p=a.isAnimationActive,y=this.state.isAnimationFinished;if(i||!l||!l.length||!X(u)||!X(f)||!X(d)||!X(h))return null;var v=ye("recharts-pie",s);return N.createElement(we,{tabIndex:this.props.rootTabIndex,className:v,ref:function(g){r.pieRef=g}},this.renderSectors(),c&&this.renderLabels(l),$t.renderCallByParent(this.props,null,!1),(!p||y)&&Dr.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(N.isValidElement(r))return N.cloneElement(r,a);if(fe(r))return r(a);var l=ye("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return N.createElement(ol,us({},a,{key:i,type:"linear",className:l}))}},{key:"renderLabelItem",value:function(r,a,i){if(N.isValidElement(r))return N.cloneElement(r,a);var l=i;if(fe(r)&&(l=r(a),N.isValidElement(l)))return l;var s=ye("recharts-pie-label-text",typeof r!="boolean"&&!fe(r)?r.className:"");return N.createElement(bl,us({},a,{alignmentBaseline:"middle",className:s}),l)}}])}(O.PureComponent);jd=Na;Wn(Na,"displayName","Pie");Wn(Na,"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:!ji.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Wn(Na,"parseDeltaAngle",function(e,t){var n=Jt(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Wn(Na,"getRealPieData",function(e){var t=e.data,n=e.children,r=le(e,!1),a=kn(n,cm);return t&&t.length?t.map(function(i,l){return qe(qe(qe({payload:i},r),i),a&&a[l]&&a[l].props)}):a&&a.length?a.map(function(i){return qe(qe({},r),i.props)}):[]});Wn(Na,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,l=iP(a,i),s=r+en(e.cx,a,a/2),c=n+en(e.cy,i,i/2),u=en(e.innerRadius,l,0),f=en(e.outerRadius,l,l*.8),d=e.maxRadius||Math.sqrt(a*a+i*i)/2;return{cx:s,cy:c,innerRadius:u,outerRadius:f,maxRadius:d}});Wn(Na,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?qe(qe({},t.type.defaultProps),t.props):t.props,a=jd.getRealPieData(r);if(!a||!a.length)return null;var i=r.cornerRadius,l=r.startAngle,s=r.endAngle,c=r.paddingAngle,u=r.dataKey,f=r.nameKey,d=r.valueKey,h=r.tooltipType,p=Math.abs(r.minAngle),y=jd.parseCoordinateOfPie(r,n),v=jd.parseDeltaAngle(l,s),b=Math.abs(v),g=u;me(u)&&me(d)?(mr(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),g="value"):me(u)&&(mr(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),g=d);var j=a.filter(function(_){return ft(_,g,0)!==0}).length,x=(b>=360?j:j-1)*c,m=b-j*p-x,S=a.reduce(function(_,E){var C=ft(E,g,0);return _+(X(C)?C:0)},0),w;if(S>0){var A;w=a.map(function(_,E){var C=ft(_,g,0),k=ft(_,f,E),M=(X(C)?C:0)/S,I;E?I=A.endAngle+Jt(v)*c*(C!==0?1:0):I=l;var D=I+Jt(v)*((C!==0?p:0)+M*m),$=(I+D)/2,T=(y.innerRadius+y.outerRadius)/2,z=[{name:k,value:C,payload:_,dataKey:g,type:h}],B=Ve(y.cx,y.cy,T,$);return A=qe(qe(qe({percent:M,cornerRadius:i,name:k,tooltipPayload:z,midAngle:$,middleRadius:T,tooltipPosition:B},_),y),{},{value:ft(_,g),startAngle:I,endAngle:D,payload:_,paddingAngle:Jt(v)*c}),A})}return qe(qe({},y),{},{sectors:w,data:a})});var goe=Math.ceil,boe=Math.max;function xoe(e,t,n,r){for(var a=-1,i=boe(goe((t-e)/(n||1)),0),l=Array(i);i--;)l[r?i:++a]=e,e+=n;return l}var joe=xoe,Soe=YM,iA=1/0,woe=17976931348623157e292;function Ooe(e){if(!e)return e===0?e:0;if(e=Soe(e),e===iA||e===-iA){var t=e<0?-1:1;return t*woe}return e===e?e:0}var NP=Ooe,Aoe=joe,Eoe=om,Ky=NP;function _oe(e){return function(t,n,r){return r&&typeof r!="number"&&Eoe(t,n,r)&&(n=r=void 0),t=Ky(t),n===void 0?(n=t,t=0):n=Ky(n),r=r===void 0?t<n?1:-1:Ky(r),Aoe(t,n,r,e)}}var Noe=_oe,Toe=Noe,Coe=Toe(),Moe=Coe;const Kh=Pe(Moe);function Mu(e){"@babel/helpers - typeof";return Mu=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},Mu(e)}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 sA(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){TP(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 TP(e,t,n){return t=koe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function koe(e){var t=Poe(e,"string");return Mu(t)=="symbol"?t:t+""}function Poe(e,t){if(Mu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $oe=["Webkit","Moz","O","ms"],Roe=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=$oe.reduce(function(i,l){return sA(sA({},i),{},TP({},l+r,n))},{});return a[t]=n,a};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 Xh(){return Xh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xh.apply(this,arguments)}function oA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Xy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oA(Object(n),!0).forEach(function(r){gn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Doe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cA(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 zoe(e,t,n){return t&&cA(e.prototype,t),n&&cA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Loe(e,t,n){return t=Wh(t),Boe(e,CP()?Reflect.construct(t,n||[],Wh(e).constructor):t.apply(e,n))}function Boe(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 Ioe(e)}function Ioe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CP=function(){return!!e})()}function Wh(e){return Wh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wh(e)}function Uoe(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&&xb(e,t)}function xb(e,t){return xb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},xb(e,t)}function gn(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=Hoe(e,"string");return ao(t)=="symbol"?t:t+""}function Hoe(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 qoe=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,i=t.x,l=t.width,s=t.travellerWidth;if(!n||!n.length)return{};var c=n.length,u=Mc().domain(Kh(0,c)).range([i,i+l-s]),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}},uA=function(t){return t.changedTouches&&!!t.changedTouches.length},io=function(e){function t(n){var r;return Doe(this,t),r=Loe(this,t,[n]),gn(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),gn(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),gn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,i=a.endIndex,l=a.onDragEnd,s=a.startIndex;l==null||l({endIndex:i,startIndex:s})}),r.detachDragEndListener()}),gn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),gn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),gn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),gn(r,"handleSlideDragStart",function(a){var i=uA(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 Uoe(t,e),zoe(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,s=this.props,c=s.gap,u=s.data,f=u.length-1,d=Math.min(a,i),h=Math.max(a,i),p=t.getIndexInRange(l,d),y=t.getIndexInRange(l,h);return{startIndex:p-p%c,endIndex:y===f?f:y-y%c}}},{key:"getTextOfTick",value:function(r){var a=this.props,i=a.data,l=a.tickFormatter,s=a.dataKey,c=ft(i[r],s,r);return fe(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,s=a.endX,c=this.props,u=c.x,f=c.width,d=c.travellerWidth,h=c.startIndex,p=c.endIndex,y=c.onChange,v=r.pageX-i;v>0?v=Math.min(v,u+f-d-s,u+f-d-l):v<0&&(v=Math.max(v,u-l,u-s));var b=this.getIndex({startX:l+v,endX:s+v});(b.startIndex!==h||b.endIndex!==p)&&y&&y(b),this.setState({startX:l+v,endX:s+v,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var i=uA(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,s=a.endX,c=a.startX,u=this.state[l],f=this.props,d=f.x,h=f.width,p=f.travellerWidth,y=f.onChange,v=f.gap,b=f.data,g={startX:this.state.startX,endX:this.state.endX},j=r.pageX-i;j>0?j=Math.min(j,d+h-p-u):j<0&&(j=Math.max(j,d-u)),g[l]=u+j;var x=this.getIndex(g),m=x.startIndex,S=x.endIndex,w=function(){var _=b.length-1;return l==="startX"&&(s>c?m%v===0:S%v===0)||s<c&&S===_||l==="endX"&&(s>c?S%v===0:m%v===0)||s>c&&S===_};this.setState(gn(gn({},l,u+j),"brushMoveStartX",r.pageX),function(){y&&w()&&y(x)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var i=this,l=this.state,s=l.scaleValues,c=l.startX,u=l.endX,f=this.state[a],d=s.indexOf(f);if(d!==-1){var h=d+r;if(!(h===-1||h>=s.length)){var p=s[h];a==="startX"&&p>=u||a==="endX"&&p<=c||this.setState(gn({},a,p),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,a=r.x,i=r.y,l=r.width,s=r.height,c=r.fill,u=r.stroke;return N.createElement("rect",{stroke:u,fill:c,x:a,y:i,width:l,height:s})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,i=r.y,l=r.width,s=r.height,c=r.data,u=r.children,f=r.padding,d=O.Children.only(u);return d?N.cloneElement(d,{x:a,y:i,width:l,height:s,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(r,a){var i,l,s=this,c=this.props,u=c.y,f=c.travellerWidth,d=c.height,h=c.traveller,p=c.ariaLabel,y=c.data,v=c.startIndex,b=c.endIndex,g=Math.max(r,this.props.x),j=Xy(Xy({},le(this.props,!1)),{},{x:g,y:u,width:f,height:d}),x=p||"Min value: ".concat((i=y[v])===null||i===void 0?void 0:i.name,", Max value: ").concat((l=y[b])===null||l===void 0?void 0:l.name);return N.createElement(we,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(S){["ArrowLeft","ArrowRight"].includes(S.key)&&(S.preventDefault(),S.stopPropagation(),s.handleTravellerMoveKeyboard(S.key==="ArrowRight"?1:-1,a))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,j))}},{key:"renderSlide",value:function(r,a){var i=this.props,l=i.y,s=i.height,c=i.stroke,u=i.travellerWidth,f=Math.min(r,a)+u,d=Math.max(Math.abs(a-r)-u,0);return N.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:s})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,i=r.endIndex,l=r.y,s=r.height,c=r.travellerWidth,u=r.stroke,f=this.state,d=f.startX,h=f.endX,p=5,y={pointerEvents:"none",fill:u};return N.createElement(we,{className:"recharts-brush-texts"},N.createElement(bl,Xh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,h)-p,y:l+s/2},y),this.getTextOfTick(a)),N.createElement(bl,Xh({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,h)+c+p,y:l+s/2},y),this.getTextOfTick(i)))}},{key:"render",value:function(){var r=this.props,a=r.data,i=r.className,l=r.children,s=r.x,c=r.y,u=r.width,f=r.height,d=r.alwaysShowText,h=this.state,p=h.startX,y=h.endX,v=h.isTextActive,b=h.isSlideMoving,g=h.isTravellerMoving,j=h.isTravellerFocused;if(!a||!a.length||!X(s)||!X(c)||!X(u)||!X(f)||u<=0||f<=0)return null;var x=ye("recharts-brush",i),m=N.Children.count(l)===1,S=Roe("userSelect","none");return N.createElement(we,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(v||b||g||j||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,i=r.y,l=r.width,s=r.height,c=r.stroke,u=Math.floor(i+s/2)-1;return N.createElement(N.Fragment,null,N.createElement("rect",{x:a,y:i,width:l,height:s,fill:c,stroke:"none"}),N.createElement("line",{x1:a+1,y1:u,x2:a+l-1,y2:u,fill:"none",stroke:"#fff"}),N.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 N.isValidElement(r)?i=N.cloneElement(r,a):fe(r)?i=r(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(r,a){var i=r.data,l=r.width,s=r.x,c=r.travellerWidth,u=r.updateId,f=r.startIndex,d=r.endIndex;if(i!==a.prevData||u!==a.prevUpdateId)return Xy({prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:l},i&&i.length?qoe({data:i,width:l,x:s,travellerWidth:c,startIndex:f,endIndex:d}):{scale:null,scaleValues:null});if(a.scale&&(l!==a.prevWidth||s!==a.prevX||c!==a.prevTravellerWidth)){a.scale.range([s,s+l-c]);var h=a.scale.domain().map(function(p){return a.scale(p)});return{prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:s,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,s=i-1;s-l>1;){var c=Math.floor((l+s)/2);r[c]>a?s=c:l=c}return a>=r[s]?s:l}}])}(O.PureComponent);gn(io,"displayName","Brush");gn(io,"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 Foe=Y0;function Goe(e,t){var n;return Foe(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var Voe=Goe,Yoe=xM,Koe=qr,Xoe=Voe,Woe=yn,Qoe=om;function Zoe(e,t,n){var r=Woe(e)?Yoe:Xoe;return n&&Qoe(e,t,n)&&(t=void 0),r(e,Koe(t))}var Joe=Zoe;const ece=Pe(Joe);var zr=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},fA=HM;function tce(e,t,n){t=="__proto__"&&fA?fA(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var nce=tce,rce=nce,ace=IM,ice=qr;function lce(e,t){var n={};return t=ice(t),ace(e,function(r,a,i){rce(n,a,t(r,a,i))}),n}var sce=lce;const oce=Pe(sce);function cce(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 uce=cce,fce=Y0;function dce(e,t){var n=!0;return fce(e,function(r,a,i){return n=!!t(r,a,i),n}),n}var hce=dce,pce=uce,mce=hce,yce=qr,vce=yn,gce=om;function bce(e,t,n){var r=vce(e)?pce:mce;return n&&gce(e,t,n)&&(t=void 0),r(e,yce(t))}var xce=bce;const kP=Pe(xce);var jce=["x","y"];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 jb(){return jb=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},jb.apply(this,arguments)}function dA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function cc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dA(Object(n),!0).forEach(function(r){Sce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sce(e,t,n){return t=wce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wce(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)}function Ace(e,t){if(e==null)return{};var n=Ece(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 Ece(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 _ce(e,t){var n=e.x,r=e.y,a=Ace(e,jce),i="".concat(n),l=parseInt(i,10),s="".concat(r),c=parseInt(s,10),u="".concat(t.height||a.height),f=parseInt(u,10),d="".concat(t.width||a.width),h=parseInt(d,10);return cc(cc(cc(cc(cc({},t),a),l?{x:l}:{}),c?{y:c}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function hA(e){return N.createElement(AP,jb({shapeType:"rectangle",propTransformer:_ce,activeClassName:"recharts-active-bar"},e))}var Nce=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=X(r)||W9(r);return i?t(r,a):(i||Sl(),n)}},Tce=["value","background"],PP;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 Cce(e,t){if(e==null)return{};var n=Mce(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 Mce(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 Qh(){return Qh=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},Qh.apply(this,arguments)}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 yt(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){ti(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 kce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mA(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 Pce(e,t,n){return t&&mA(e.prototype,t),n&&mA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $ce(e,t,n){return t=Zh(t),Rce(e,$P()?Reflect.construct(t,n||[],Zh(e).constructor):t.apply(e,n))}function Rce(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 Dce(e)}function Dce(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 Zh(e){return Zh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zh(e)}function zce(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 ti(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=Lce(e,"string");return lo(t)=="symbol"?t:t+""}function Lce(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 Rl=function(e){function t(){var n;kce(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=$ce(this,t,[].concat(a)),ti(n,"state",{isAnimationFinished:!1}),ti(n,"id",Ml("recharts-bar-")),ti(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),l&&l()}),ti(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),l&&l()}),n}return zce(t,e),Pce(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,i=this.props,l=i.shape,s=i.dataKey,c=i.activeIndex,u=i.activeBar,f=le(this.props,!1);return r&&r.map(function(d,h){var p=h===c,y=p?u:l,v=yt(yt(yt({},f),d),{},{isActive:p,option:y,index:h,dataKey:s,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return N.createElement(we,Qh({className:"recharts-bar-rectangle"},gl(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)}),N.createElement(hA,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,i=a.data,l=a.layout,s=a.isAnimationActive,c=a.animationBegin,u=a.animationDuration,f=a.animationEasing,d=a.animationId,h=this.state.prevData;return N.createElement(vr,{begin:c,duration:u,isActive:s,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,v=i.map(function(b,g){var j=h&&h[g];if(j){var x=At(j.x,b.x),m=At(j.y,b.y),S=At(j.width,b.width),w=At(j.height,b.height);return yt(yt({},b),{},{x:x(y),y:m(y),width:S(y),height:w(y)})}if(l==="horizontal"){var A=At(0,b.height),_=A(y);return yt(yt({},b),{},{y:b.y+b.height-_,height:_})}var E=At(0,b.width),C=E(y);return yt(yt({},b),{},{width:C})});return N.createElement(we,null,r.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,i=r.isAnimationActive,l=this.state.prevData;return i&&a&&a.length&&(!l||!xl(l,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,i=a.data,l=a.dataKey,s=a.activeIndex,c=le(this.props.background,!1);return i.map(function(u,f){u.value;var d=u.background,h=Cce(u,Tce);if(!d)return null;var p=yt(yt(yt(yt(yt({},h),{},{fill:"#eee"},d),c),gl(r.props,u,f)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:l,index:f,className:"recharts-bar-background-rectangle"});return N.createElement(hA,Qh({key:"background-bar-".concat(f),option:r.props.background,isActive:f===s},p))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,l=i.data,s=i.xAxis,c=i.yAxis,u=i.layout,f=i.children,d=kn(f,hf);if(!d)return null;var h=u==="vertical"?l[0].height/2:l[0].width/2,p=function(b,g){var j=Array.isArray(b.value)?b.value[1]:b.value;return{x:b.x,y:b.y,value:j,errorVal:ft(b,g)}},y={clipPath:r?"url(#clipPath-".concat(a,")"):null};return N.createElement(we,y,d.map(function(v){return N.cloneElement(v,{key:"error-bar-".concat(a,"-").concat(v.props.dataKey),data:l,xAxis:s,yAxis:c,layout:u,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,i=r.data,l=r.className,s=r.xAxis,c=r.yAxis,u=r.left,f=r.top,d=r.width,h=r.height,p=r.isAnimationActive,y=r.background,v=r.id;if(a||!i||!i.length)return null;var b=this.state.isAnimationFinished,g=ye("recharts-bar",l),j=s&&s.allowDataOverflow,x=c&&c.allowDataOverflow,m=j||x,S=me(v)?this.id:v;return N.createElement(we,{className:g},j||x?N.createElement("defs",null,N.createElement("clipPath",{id:"clipPath-".concat(S)},N.createElement("rect",{x:j?u:u-d/2,y:x?f:f-h/2,width:j?d:d*2,height:x?h:h*2}))):null,N.createElement(we,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(S,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,S),(!p||b)&&Dr.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}}])}(O.PureComponent);PP=Rl;ti(Rl,"displayName","Bar");ti(Rl,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ji.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});ti(Rl,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,i=e.xAxis,l=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,f=e.dataStartIndex,d=e.displayedData,h=e.offset,p=pre(r,n);if(!p)return null;var y=t.layout,v=n.type.defaultProps,b=v!==void 0?yt(yt({},v),n.props):n.props,g=b.dataKey,j=b.children,x=b.minPointSize,m=y==="horizontal"?l:i,S=u?m.scale.domain():null,w=jre({numericAxis:m}),A=kn(j,cm),_=d.map(function(E,C){var k,M,I,D,$,T;u?k=mre(u[f+C],S):(k=ft(E,g),Array.isArray(k)||(k=[w,k]));var z=Nce(x,PP.defaultProps.minPointSize)(k[1],C);if(y==="horizontal"){var B,F=[l.scale(k[0]),l.scale(k[1])],V=F[0],Y=F[1];M=sO({axis:i,ticks:s,bandSize:a,offset:p.offset,entry:E,index:C}),I=(B=Y??V)!==null&&B!==void 0?B:void 0,D=p.size;var K=V-Y;if($=Number.isNaN(K)?0:K,T={x:M,y:l.y,width:D,height:l.height},Math.abs(z)>0&&Math.abs($)<Math.abs(z)){var ae=Jt($||z)*(Math.abs(z)-Math.abs($));I-=ae,$+=ae}}else{var L=[i.scale(k[0]),i.scale(k[1])],Z=L[0],ce=L[1];if(M=Z,I=sO({axis:l,ticks:c,bandSize:a,offset:p.offset,entry:E,index:C}),D=ce-Z,$=p.size,T={x:i.x,y:I,width:i.width,height:$},Math.abs(z)>0&&Math.abs(D)<Math.abs(z)){var de=Jt(D||z)*(Math.abs(z)-Math.abs(D));D+=de}}return yt(yt(yt({},E),{},{x:M,y:I,width:D,height:$,value:u?k:k[1],payload:E,background:T},A&&A[C]&&A[C].props),{},{tooltipPayload:[rP(n,E)],tooltipPosition:{x:M+D/2,y:I+$/2}})});return yt({data:_,layout:y},h)});function Pu(e){"@babel/helpers - typeof";return Pu=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},Pu(e)}function Bce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,DP(r.key),r)}}function Ice(e,t,n){return t&&yA(e.prototype,t),n&&yA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}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 fr(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){Em(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 Em(e,t,n){return t=DP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DP(e){var t=Uce(e,"string");return Pu(t)=="symbol"?t:t+""}function Uce(e,t){if(Pu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var S1=function(t,n,r,a,i){var l=t.width,s=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:s-r.bottom,bottomMirror:s-r.bottom},h=!!xn(u,Rl);return f.reduce(function(p,y){var v=n[y],b=v.orientation,g=v.domain,j=v.padding,x=j===void 0?{}:j,m=v.mirror,S=v.reversed,w="".concat(b).concat(m?"Mirror":""),A,_,E,C,k;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var M=g[1]-g[0],I=1/0,D=v.categoricalDomain.sort(J9);if(D.forEach(function(L,Z){Z>0&&(I=Math.min((L||0)-(D[Z-1]||0),I))}),Number.isFinite(I)){var $=I/M,T=v.layout==="vertical"?r.height:r.width;if(v.padding==="gap"&&(A=$*T/2),v.padding==="no-gap"){var z=en(t.barCategoryGap,$*T),B=$*T/2;A=B-z-(B-z)/T*z}}}a==="xAxis"?_=[r.left+(x.left||0)+(A||0),r.left+r.width-(x.right||0)-(A||0)]:a==="yAxis"?_=c==="horizontal"?[r.top+r.height-(x.bottom||0),r.top+(x.top||0)]:[r.top+(x.top||0)+(A||0),r.top+r.height-(x.bottom||0)-(A||0)]:_=v.range,S&&(_=[_[1],_[0]]);var F=Jk(v,i,h),V=F.scale,Y=F.realScaleType;V.domain(g).range(_),eP(V);var K=tP(V,fr(fr({},v),{},{realScaleType:Y}));a==="xAxis"?(k=b==="top"&&!m||b==="bottom"&&m,E=r.left,C=d[w]-k*v.height):a==="yAxis"&&(k=b==="left"&&!m||b==="right"&&m,E=d[w]-k*v.width,C=r.top);var ae=fr(fr(fr({},v),K),{},{realScaleType:Y,x:E,y:C,scale:V,width:a==="xAxis"?r.width:v.width,height:a==="yAxis"?r.height:v.height});return ae.bandSize=Rh(ae,K),!v.hide&&a==="xAxis"?d[w]+=(k?-1:1)*ae.height:v.hide||(d[w]+=(k?-1:1)*ae.width),fr(fr({},p),{},Em({},y,ae))},{})},zP=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)}},Hce=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return zP({x:n,y:r},{x:a,y:i})},LP=function(){function e(t){Bce(this,e),this.scale=t}return Ice(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 s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}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)}}])}();Em(LP,"EPS",1e-4);var w1=function(t){var n=Object.keys(t).reduce(function(r,a){return fr(fr({},r),{},Em({},a,LP.create(t[a])))},{});return fr(fr({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=i.bandAware,s=i.position;return oce(a,function(c,u){return n[u].apply(c,{bandAware:l,position:s})})},isInRange:function(a){return kP(a,function(i,l){return n[l].isInRange(i)})}})};function qce(e){return(e%180+180)%180}var Fce=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=qce(a),l=i*Math.PI/180,s=Math.atan(r/n),c=l>s&&l<Math.PI-s?r/Math.sin(l):n/Math.cos(l);return Math.abs(c)},Gce=qr,Vce=of,Yce=lm;function Kce(e){return function(t,n,r){var a=Object(t);if(!Vce(t)){var i=Gce(n);t=Yce(t),n=function(s){return i(a[s],s,a)}}var l=e(t,n,r);return l>-1?a[i?t[l]:l]:void 0}}var Xce=Kce,Wce=NP;function Qce(e){var t=Wce(e),n=t%1;return t===t?n?t-n:t:0}var Zce=Qce,Jce=$M,eue=qr,tue=Zce,nue=Math.max;function rue(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=n==null?0:tue(n);return a<0&&(a=nue(r+a,0)),Jce(e,eue(t),a)}var aue=rue,iue=Xce,lue=aue,sue=iue(lue),oue=sue;const cue=Pe(oue);var uue=n9(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("")}),O1=O.createContext(void 0),A1=O.createContext(void 0),BP=O.createContext(void 0),IP=O.createContext({}),UP=O.createContext(void 0),HP=O.createContext(0),qP=O.createContext(0),gA=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,i=n.offset,l=t.clipPathId,s=t.children,c=t.width,u=t.height,f=uue(i);return N.createElement(O1.Provider,{value:r},N.createElement(A1.Provider,{value:a},N.createElement(IP.Provider,{value:i},N.createElement(BP.Provider,{value:f},N.createElement(UP.Provider,{value:l},N.createElement(HP.Provider,{value:u},N.createElement(qP.Provider,{value:c},s)))))))},fue=function(){return O.useContext(UP)},FP=function(t){var n=O.useContext(O1);n==null&&Sl();var r=n[t];return r==null&&Sl(),r},due=function(){var t=O.useContext(O1);return Ia(t)},hue=function(){var t=O.useContext(A1),n=cue(t,function(r){return kP(r.domain,Number.isFinite)});return n||Ia(t)},GP=function(t){var n=O.useContext(A1);n==null&&Sl();var r=n[t];return r==null&&Sl(),r},pue=function(){var t=O.useContext(BP);return t},mue=function(){return O.useContext(IP)},E1=function(){return O.useContext(qP)},_1=function(){return O.useContext(HP)};function so(e){"@babel/helpers - typeof";return so=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},so(e)}function yue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YP(r.key),r)}}function gue(e,t,n){return t&&vue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bue(e,t,n){return t=Jh(t),xue(e,VP()?Reflect.construct(t,n||[],Jh(e).constructor):t.apply(e,n))}function xue(e,t){if(t&&(so(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jue(e)}function jue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VP=function(){return!!e})()}function Jh(e){return Jh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jh(e)}function Sue(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&&wb(e,t)}function wb(e,t){return wb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},wb(e,t)}function bA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function xA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bA(Object(n),!0).forEach(function(r){N1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function N1(e,t,n){return t=YP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YP(e){var t=wue(e,"string");return so(t)=="symbol"?t:t+""}function wue(e,t){if(so(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(so(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Oue(e,t){return Nue(e)||_ue(e,t)||Eue(e,t)||Aue()}function Aue(){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 Eue(e,t){if(e){if(typeof e=="string")return jA(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 jA(e,t)}}function jA(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 _ue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.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 s}}function Nue(e){if(Array.isArray(e))return e}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)}var Tue=function(t,n){var r;return N.isValidElement(t)?r=N.cloneElement(t,n):fe(t)?r=t(n):r=N.createElement("line",Ob({},n,{className:"recharts-reference-line-line"})),r},Cue=function(t,n,r,a,i,l,s,c,u){var f=i.x,d=i.y,h=i.width,p=i.height;if(r){var y=u.y,v=t.y.apply(y,{position:l});if(zr(u,"discard")&&!t.y.isInRange(v))return null;var b=[{x:f+h,y:v},{x:f,y:v}];return c==="left"?b.reverse():b}if(n){var g=u.x,j=t.x.apply(g,{position:l});if(zr(u,"discard")&&!t.x.isInRange(j))return null;var x=[{x:j,y:d+p},{x:j,y:d}];return s==="top"?x.reverse():x}if(a){var m=u.segment,S=m.map(function(w){return t.apply(w,{position:l})});return zr(u,"discard")&&ece(S,function(w){return!t.isInRange(w)})?null:S}return null};function Mue(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,i=e.yAxisId,l=e.shape,s=e.className,c=e.alwaysShow,u=fue(),f=FP(a),d=GP(i),h=pue();if(!u||!h)return null;mr(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=w1({x:f.scale,y:d.scale}),y=_t(t),v=_t(n),b=r&&r.length===2,g=Cue(p,y,v,b,h,e.position,f.orientation,d.orientation,e);if(!g)return null;var j=Oue(g,2),x=j[0],m=x.x,S=x.y,w=j[1],A=w.x,_=w.y,E=zr(e,"hidden")?"url(#".concat(u,")"):void 0,C=xA(xA({clipPath:E},le(e,!0)),{},{x1:m,y1:S,x2:A,y2:_});return N.createElement(we,{className:ye("recharts-reference-line",s)},Tue(l,C),$t.renderCallByParent(e,Hce({x1:m,y1:S,x2:A,y2:_})))}var T1=function(e){function t(){return yue(this,t),bue(this,t,arguments)}return Sue(t,e),gue(t,[{key:"render",value:function(){return N.createElement(Mue,this.props)}}])}(N.Component);N1(T1,"displayName","ReferenceLine");N1(T1,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Ab(){return Ab=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},Ab.apply(this,arguments)}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 SA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SA(Object(n),!0).forEach(function(r){_m(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pue(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 $ue(e,t,n){return t&&Pue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rue(e,t,n){return t=ep(t),Due(e,KP()?Reflect.construct(t,n||[],ep(e).constructor):t.apply(e,n))}function Due(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 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 KP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KP=function(){return!!e})()}function ep(e){return ep=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ep(e)}function Lue(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 _m(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=Bue(e,"string");return oo(t)=="symbol"?t:t+""}function Bue(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)}var Iue=function(t){var n=t.x,r=t.y,a=t.xAxis,i=t.yAxis,l=w1({x:a.scale,y:i.scale}),s=l.apply({x:n,y:r},{bandAware:!0});return zr(t,"discard")&&!l.isInRange(s)?null:s},Nm=function(e){function t(){return kue(this,t),Rue(this,t,arguments)}return Lue(t,e),$ue(t,[{key:"render",value:function(){var r=this.props,a=r.x,i=r.y,l=r.r,s=r.alwaysShow,c=r.clipPathId,u=_t(a),f=_t(i);if(mr(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!f)return null;var d=Iue(this.props);if(!d)return null;var h=d.x,p=d.y,y=this.props,v=y.shape,b=y.className,g=zr(this.props,"hidden")?"url(#".concat(c,")"):void 0,j=wA(wA({clipPath:g},le(this.props,!0)),{},{cx:h,cy:p});return N.createElement(we,{className:ye("recharts-reference-dot",b)},t.renderDot(v,j),$t.renderCallByParent(this.props,{x:h-l,y:p-l,width:2*l,height:2*l}))}}])}(N.Component);_m(Nm,"displayName","ReferenceDot");_m(Nm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});_m(Nm,"renderDot",function(e,t){var n;return N.isValidElement(e)?n=N.cloneElement(e,t):fe(e)?n=e(t):n=N.createElement(pf,Ab({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function _b(){return _b=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},_b.apply(this,arguments)}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 OA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function AA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OA(Object(n),!0).forEach(function(r){Tm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QP(r.key),r)}}function que(e,t,n){return t&&Hue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fue(e,t,n){return t=tp(t),Gue(e,WP()?Reflect.construct(t,n||[],tp(e).constructor):t.apply(e,n))}function Gue(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 Vue(e)}function Vue(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 tp(e){return tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tp(e)}function Yue(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&&Nb(e,t)}function Nb(e,t){return Nb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Nb(e,t)}function Tm(e,t,n){return t=QP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QP(e){var t=Kue(e,"string");return co(t)=="symbol"?t:t+""}function Kue(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 Xue=function(t,n,r,a,i){var l=i.x1,s=i.x2,c=i.y1,u=i.y2,f=i.xAxis,d=i.yAxis;if(!f||!d)return null;var h=w1({x:f.scale,y:d.scale}),p={x:t?h.x.apply(l,{position:"start"}):h.x.rangeMin,y:r?h.y.apply(c,{position:"start"}):h.y.rangeMin},y={x:n?h.x.apply(s,{position:"end"}):h.x.rangeMax,y:a?h.y.apply(u,{position:"end"}):h.y.rangeMax};return zr(i,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:zP(p,y)},Cm=function(e){function t(){return Uue(this,t),Fue(this,t,arguments)}return Yue(t,e),que(t,[{key:"render",value:function(){var r=this.props,a=r.x1,i=r.x2,l=r.y1,s=r.y2,c=r.className,u=r.alwaysShow,f=r.clipPathId;mr(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=_t(a),h=_t(i),p=_t(l),y=_t(s),v=this.props.shape;if(!d&&!h&&!p&&!y&&!v)return null;var b=Xue(d,h,p,y,this.props);if(!b&&!v)return null;var g=zr(this.props,"hidden")?"url(#".concat(f,")"):void 0;return N.createElement(we,{className:ye("recharts-reference-area",c)},t.renderRect(v,AA(AA({clipPath:g},le(this.props,!0)),b)),$t.renderCallByParent(this.props,b))}}])}(N.Component);Tm(Cm,"displayName","ReferenceArea");Tm(Cm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Tm(Cm,"renderRect",function(e,t){var n;return N.isValidElement(e)?n=N.cloneElement(e,t):fe(e)?n=e(t):n=N.createElement(j1,_b({},t,{className:"recharts-reference-area-rect"})),n});function ZP(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 Wue(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Fce(r,n)}function Que(e,t,n){var r=n==="width",a=e.x,i=e.y,l=e.width,s=e.height;return t===1?{start:r?a:i,end:r?a+l:i+s}:{start:r?a+l:i+s,end:r?a:i}}function np(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 Zue(e,t){return ZP(e,t+1)}function Jue(e,t,n,r,a){for(var i=(r||[]).slice(),l=t.start,s=t.end,c=0,u=1,f=l,d=function(){var y=r==null?void 0:r[c];if(y===void 0)return{v:ZP(r,u)};var v=c,b,g=function(){return b===void 0&&(b=n(y,v)),b},j=y.coordinate,x=c===0||np(e,j,g,f,s);x||(c=0,f=l,u+=1),x&&(f=j+e*(g()/2+a),c+=u)},h;u<=i.length;)if(h=d(),h)return h.v;return[]}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 EA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EA(Object(n),!0).forEach(function(r){efe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function efe(e,t,n){return t=tfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tfe(e){var t=nfe(e,"string");return $u(t)=="symbol"?t:t+""}function nfe(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)}function rfe(e,t,n,r,a){for(var i=(r||[]).slice(),l=i.length,s=t.start,c=t.end,u=function(h){var p=i[h],y,v=function(){return y===void 0&&(y=n(p,h)),y};if(h===l-1){var b=e*(p.coordinate+e*v()/2-c);i[h]=p=Yt(Yt({},p),{},{tickCoord:b>0?p.coordinate-b*e:p.coordinate})}else i[h]=p=Yt(Yt({},p),{},{tickCoord:p.coordinate});var g=np(e,p.tickCoord,v,s,c);g&&(c=p.tickCoord-e*(v()/2+a),i[h]=Yt(Yt({},p),{},{isShow:!0}))},f=l-1;f>=0;f--)u(f);return i}function afe(e,t,n,r,a,i){var l=(r||[]).slice(),s=l.length,c=t.start,u=t.end;if(i){var f=r[s-1],d=n(f,s-1),h=e*(f.coordinate+e*d/2-u);l[s-1]=f=Yt(Yt({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=np(e,f.tickCoord,function(){return d},c,u);p&&(u=f.tickCoord-e*(d/2+a),l[s-1]=Yt(Yt({},f),{},{isShow:!0}))}for(var y=i?s-1:s,v=function(j){var x=l[j],m,S=function(){return m===void 0&&(m=n(x,j)),m};if(j===0){var w=e*(x.coordinate-e*S()/2-c);l[j]=x=Yt(Yt({},x),{},{tickCoord:w<0?x.coordinate-w*e:x.coordinate})}else l[j]=x=Yt(Yt({},x),{},{tickCoord:x.coordinate});var A=np(e,x.tickCoord,S,c,u);A&&(c=x.tickCoord+e*(S()/2+a),l[j]=Yt(Yt({},x),{},{isShow:!0}))},b=0;b<y;b++)v(b);return l}function C1(e,t,n){var r=e.tick,a=e.ticks,i=e.viewBox,l=e.minTickGap,s=e.orientation,c=e.interval,u=e.tickFormatter,f=e.unit,d=e.angle;if(!a||!a.length||!r)return[];if(X(c)||ji.isSsr)return Zue(a,typeof c=="number"&&X(c)?c:0);var h=[],p=s==="top"||s==="bottom"?"width":"height",y=f&&p==="width"?Cc(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},v=function(x,m){var S=fe(u)?u(x.value,m):x.value;return p==="width"?Wue(Cc(S,{fontSize:t,letterSpacing:n}),y,d):Cc(S,{fontSize:t,letterSpacing:n})[p]},b=a.length>=2?Jt(a[1].coordinate-a[0].coordinate):1,g=Que(i,b,p);return c==="equidistantPreserveStart"?Jue(b,g,v,a,l):(c==="preserveStart"||c==="preserveStartEnd"?h=afe(b,g,v,a,l,c==="preserveStartEnd"):h=rfe(b,g,v,a,l),h.filter(function(j){return j.isShow}))}var ife=["viewBox"],lfe=["viewBox"],sfe=["ticks"];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 fs(){return fs=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},fs.apply(this,arguments)}function _A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function wt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_A(Object(n),!0).forEach(function(r){M1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_A(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wy(e,t){if(e==null)return{};var n=ofe(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 ofe(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 cfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NA(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,e$(r.key),r)}}function ufe(e,t,n){return t&&NA(e.prototype,t),n&&NA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ffe(e,t,n){return t=rp(t),dfe(e,JP()?Reflect.construct(t,n||[],rp(e).constructor):t.apply(e,n))}function dfe(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 hfe(e)}function hfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JP=function(){return!!e})()}function rp(e){return rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rp(e)}function pfe(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 M1(e,t,n){return t=e$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e$(e){var t=mfe(e,"string");return uo(t)=="symbol"?t:t+""}function mfe(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)}var Fo=function(e){function t(n){var r;return cfe(this,t),r=ffe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return pfe(t,e),ufe(t,[{key:"shouldComponentUpdate",value:function(r,a){var i=r.viewBox,l=Wy(r,ife),s=this.props,c=s.viewBox,u=Wy(s,lfe);return!xs(i,c)||!xs(l,u)||!xs(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,s=a.width,c=a.height,u=a.orientation,f=a.tickSize,d=a.mirror,h=a.tickMargin,p,y,v,b,g,j,x=d?-1:1,m=r.tickSize||f,S=X(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":p=y=r.coordinate,b=l+ +!d*c,v=b-x*m,j=v-x*h,g=S;break;case"left":v=b=r.coordinate,y=i+ +!d*s,p=y-x*m,g=p-x*h,j=S;break;case"right":v=b=r.coordinate,y=i+ +d*s,p=y+x*m,g=p+x*h,j=S;break;default:p=y=r.coordinate,b=l+ +d*c,v=b+x*m,j=v+x*h,g=S;break}return{line:{x1:p,y1:v,x2:y,y2:b},tick:{x:g,y:j}}}},{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,s=r.height,c=r.orientation,u=r.mirror,f=r.axisLine,d=wt(wt(wt({},le(this.props,!1)),le(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var h=+(c==="top"&&!u||c==="bottom"&&u);d=wt(wt({},d),{},{x1:a,y1:i+h*s,x2:a+l,y2:i+h*s})}else{var p=+(c==="left"&&!u||c==="right"&&u);d=wt(wt({},d),{},{x1:a+p*l,y1:i,x2:a+p*l,y2:i+s})}return N.createElement("line",fs({},d,{className:ye("recharts-cartesian-axis-line",Mn(f,"className"))}))}},{key:"renderTicks",value:function(r,a,i){var l=this,s=this.props,c=s.tickLine,u=s.stroke,f=s.tick,d=s.tickFormatter,h=s.unit,p=C1(wt(wt({},this.props),{},{ticks:r}),a,i),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),b=le(this.props,!1),g=le(f,!1),j=wt(wt({},b),{},{fill:"none"},le(c,!1)),x=p.map(function(m,S){var w=l.getTickLineCoord(m),A=w.line,_=w.tick,E=wt(wt(wt(wt({textAnchor:y,verticalAnchor:v},b),{},{stroke:"none",fill:u},g),_),{},{index:S,payload:m,visibleTicksCount:p.length,tickFormatter:d});return N.createElement(we,fs({className:"recharts-cartesian-axis-tick",key:"tick-".concat(m.value,"-").concat(m.coordinate,"-").concat(m.tickCoord)},gl(l.props,m,S)),c&&N.createElement("line",fs({},j,A,{className:ye("recharts-cartesian-axis-tick-line",Mn(c,"className"))})),f&&t.renderTickItem(f,E,"".concat(fe(d)?d(m.value,S):m.value).concat(h||"")))});return N.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var r=this,a=this.props,i=a.axisLine,l=a.width,s=a.height,c=a.ticksGenerator,u=a.className,f=a.hide;if(f)return null;var d=this.props,h=d.ticks,p=Wy(d,sfe),y=h;return fe(c)&&(y=h&&h.length>0?c(this.props):c(p)),l<=0||s<=0||!y||!y.length?null:N.createElement(we,{className:ye("recharts-cartesian-axis",u),ref:function(b){r.layerReference=b}},i&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),$t.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,i){var l,s=ye(a.className,"recharts-cartesian-axis-tick-value");return N.isValidElement(r)?l=N.cloneElement(r,wt(wt({},a),{},{className:s})):fe(r)?l=r(wt(wt({},a),{},{className:s})):l=N.createElement(bl,fs({},a,{className:"recharts-cartesian-axis-tick-value"}),i),l}}])}(O.Component);M1(Fo,"displayName","CartesianAxis");M1(Fo,"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 yfe=["x1","y1","x2","y2","key"],vfe=["offset"];function wl(e){"@babel/helpers - typeof";return wl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wl(e)}function 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 Kt(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){gfe(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 gfe(e,t,n){return t=bfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bfe(e){var t=xfe(e,"string");return wl(t)=="symbol"?t:t+""}function xfe(e,t){if(wl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vi(){return Vi=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},Vi.apply(this,arguments)}function CA(e,t){if(e==null)return{};var n=jfe(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 jfe(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 Sfe=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,s=t.height,c=t.ry;return N.createElement("rect",{x:a,y:i,ry:c,width:l,height:s,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function t$(e,t){var n;if(N.isValidElement(e))n=N.cloneElement(e,t);else if(fe(e))n=e(t);else{var r=t.x1,a=t.y1,i=t.x2,l=t.y2,s=t.key,c=CA(t,yfe),u=le(c,!1);u.offset;var f=CA(u,vfe);n=N.createElement("line",Vi({},f,{x1:r,y1:a,x2:i,y2:l,fill:"none",key:s}))}return n}function wfe(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(s,c){var u=Kt(Kt({},e),{},{x1:t,y1:s,x2:t+n,y2:s,key:"line-".concat(c),index:c});return t$(a,u)});return N.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function Ofe(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(s,c){var u=Kt(Kt({},e),{},{x1:s,y1:t,x2:s,y2:t+n,key:"line-".concat(c),index:c});return t$(a,u)});return N.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function Afe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,a=e.y,i=e.width,l=e.height,s=e.horizontalPoints,c=e.horizontal,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var f=s.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==f[0]&&f.unshift(0);var d=f.map(function(h,p){var y=!f[p+1],v=y?a+l-h:f[p+1]-h;if(v<=0)return null;var b=p%t.length;return N.createElement("rect",{key:"react-".concat(p),y:h,x:r,height:v,width:i,stroke:"none",fill:t[b],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return N.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function Efe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,a=e.fillOpacity,i=e.x,l=e.y,s=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,p){return h-p});i!==f[0]&&f.unshift(0);var d=f.map(function(h,p){var y=!f[p+1],v=y?i+s-h:f[p+1]-h;if(v<=0)return null;var b=p%r.length;return N.createElement("rect",{key:"react-".concat(p),x:h,y:l,width:v,height:c,stroke:"none",fill:r[b],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return N.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var _fe=function(t,n){var r=t.xAxis,a=t.width,i=t.height,l=t.offset;return Zk(C1(Kt(Kt(Kt({},Fo.defaultProps),r),{},{ticks:sa(r,!0),viewBox:{x:0,y:0,width:a,height:i}})),l.left,l.left+l.width,n)},Nfe=function(t,n){var r=t.yAxis,a=t.width,i=t.height,l=t.offset;return Zk(C1(Kt(Kt(Kt({},Fo.defaultProps),r),{},{ticks:sa(r,!0),viewBox:{x:0,y:0,width:a,height:i}})),l.top,l.top+l.height,n)},Fl={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Sd(e){var t,n,r,a,i,l,s=E1(),c=_1(),u=mue(),f=Kt(Kt({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Fl.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Fl.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Fl.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:Fl.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:Fl.vertical,verticalFill:(l=e.verticalFill)!==null&&l!==void 0?l:Fl.verticalFill,x:X(e.x)?e.x:u.left,y:X(e.y)?e.y:u.top,width:X(e.width)?e.width:u.width,height:X(e.height)?e.height:u.height}),d=f.x,h=f.y,p=f.width,y=f.height,v=f.syncWithTicks,b=f.horizontalValues,g=f.verticalValues,j=due(),x=hue();if(!X(p)||p<=0||!X(y)||y<=0||!X(d)||d!==+d||!X(h)||h!==+h)return null;var m=f.verticalCoordinatesGenerator||_fe,S=f.horizontalCoordinatesGenerator||Nfe,w=f.horizontalPoints,A=f.verticalPoints;if((!w||!w.length)&&fe(S)){var _=b&&b.length,E=S({yAxis:x?Kt(Kt({},x),{},{ticks:_?b:x.ticks}):void 0,width:s,height:c,offset:u},_?!0:v);mr(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(wl(E),"]")),Array.isArray(E)&&(w=E)}if((!A||!A.length)&&fe(m)){var C=g&&g.length,k=m({xAxis:j?Kt(Kt({},j),{},{ticks:C?g:j.ticks}):void 0,width:s,height:c,offset:u},C?!0:v);mr(Array.isArray(k),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(wl(k),"]")),Array.isArray(k)&&(A=k)}return N.createElement("g",{className:"recharts-cartesian-grid"},N.createElement(Sfe,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),N.createElement(wfe,Vi({},f,{offset:u,horizontalPoints:w,xAxis:j,yAxis:x})),N.createElement(Ofe,Vi({},f,{offset:u,verticalPoints:A,xAxis:j,yAxis:x})),N.createElement(Afe,Vi({},f,{horizontalPoints:w})),N.createElement(Efe,Vi({},f,{verticalPoints:A})))}Sd.displayName="CartesianGrid";var Tfe=["type","layout","connectNulls","ref"],Cfe=["key"];function fo(e){"@babel/helpers - typeof";return fo=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},fo(e)}function MA(e,t){if(e==null)return{};var n=Mfe(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 Mfe(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 Dc(){return Dc=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},Dc.apply(this,arguments)}function kA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kA(Object(n),!0).forEach(function(r){dr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gl(e){return Rfe(e)||$fe(e)||Pfe(e)||kfe()}function kfe(){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 Pfe(e,t){if(e){if(typeof e=="string")return Cb(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 Cb(e,t)}}function $fe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rfe(e){if(Array.isArray(e))return Cb(e)}function Cb(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 Dfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r$(r.key),r)}}function zfe(e,t,n){return t&&PA(e.prototype,t),n&&PA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lfe(e,t,n){return t=ap(t),Bfe(e,n$()?Reflect.construct(t,n||[],ap(e).constructor):t.apply(e,n))}function Bfe(e,t){if(t&&(fo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ife(e)}function Ife(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(n$=function(){return!!e})()}function ap(e){return ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ap(e)}function Ufe(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 dr(e,t,n){return t=r$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r$(e){var t=Hfe(e,"string");return fo(t)=="symbol"?t:t+""}function Hfe(e,t){if(fo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mf=function(e){function t(){var n;Dfe(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Lfe(this,t,[].concat(a)),dr(n,"state",{isAnimationFinished:!0,totalLength:0}),dr(n,"generateSimpleStrokeDasharray",function(l,s){return"".concat(s,"px ").concat(l-s,"px")}),dr(n,"getStrokeDasharray",function(l,s,c){var u=c.reduce(function(g,j){return g+j});if(!u)return n.generateSimpleStrokeDasharray(s,l);for(var f=Math.floor(l/u),d=l%u,h=s-l,p=[],y=0,v=0;y<c.length;v+=c[y],++y)if(v+c[y]>d){p=[].concat(Gl(c.slice(0,y)),[d-v]);break}var b=p.length%2===0?[0,h]:[h];return[].concat(Gl(t.repeat(c,f)),Gl(p),b).map(function(g){return"".concat(g,"px")}).join(", ")}),dr(n,"id",Ml("recharts-line-")),dr(n,"pathRef",function(l){n.mainCurve=l}),dr(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),dr(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return Ufe(t,e),zfe(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,s=i.xAxis,c=i.yAxis,u=i.layout,f=i.children,d=kn(f,hf);if(!d)return null;var h=function(v,b){return{x:v.x,y:v.y,value:v.value,errorVal:ft(v.payload,b)}},p={clipPath:r?"url(#clipPath-".concat(a,")"):null};return N.createElement(we,p,d.map(function(y){return N.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:l,xAxis:s,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 s=this.props,c=s.dot,u=s.points,f=s.dataKey,d=le(this.props,!1),h=le(c,!0),p=u.map(function(v,b){var g=vn(vn(vn({key:"dot-".concat(b),r:3},d),h),{},{index:b,cx:v.x,cy:v.y,value:v.value,dataKey:f,payload:v.payload,points:u});return t.renderDotItem(c,g)}),y={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return N.createElement(we,Dc({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(r,a,i,l){var s=this.props,c=s.type,u=s.layout,f=s.connectNulls;s.ref;var d=MA(s,Tfe),h=vn(vn(vn({},le(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 N.createElement(ol,Dc({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,a){var i=this,l=this.props,s=l.points,c=l.strokeDasharray,u=l.isAnimationActive,f=l.animationBegin,d=l.animationDuration,h=l.animationEasing,p=l.animationId,y=l.animateNewValues,v=l.width,b=l.height,g=this.state,j=g.prevPoints,x=g.totalLength;return N.createElement(vr,{begin:f,duration:d,isActive:u,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(m){var S=m.t;if(j){var w=j.length/s.length,A=s.map(function(M,I){var D=Math.floor(I*w);if(j[D]){var $=j[D],T=At($.x,M.x),z=At($.y,M.y);return vn(vn({},M),{},{x:T(S),y:z(S)})}if(y){var B=At(v*2,M.x),F=At(b/2,M.y);return vn(vn({},M),{},{x:B(S),y:F(S)})}return vn(vn({},M),{},{x:M.x,y:M.y})});return i.renderCurveStatically(A,r,a)}var _=At(0,x),E=_(S),C;if(c){var k="".concat(c).split(/[,\s]+/gim).map(function(M){return parseFloat(M)});C=i.getStrokeDasharray(E,x,k)}else C=i.generateSimpleStrokeDasharray(x,E);return i.renderCurveStatically(s,r,a,{strokeDasharray:C})})}},{key:"renderCurve",value:function(r,a){var i=this.props,l=i.points,s=i.isAnimationActive,c=this.state,u=c.prevPoints,f=c.totalLength;return s&&l&&l.length&&(!u&&f>0||!xl(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,s=a.points,c=a.className,u=a.xAxis,f=a.yAxis,d=a.top,h=a.left,p=a.width,y=a.height,v=a.isAnimationActive,b=a.id;if(i||!s||!s.length)return null;var g=this.state.isAnimationFinished,j=s.length===1,x=ye("recharts-line",c),m=u&&u.allowDataOverflow,S=f&&f.allowDataOverflow,w=m||S,A=me(b)?this.id:b,_=(r=le(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},E=_.r,C=E===void 0?3:E,k=_.strokeWidth,M=k===void 0?2:k,I=GC(l)?l:{},D=I.clipDot,$=D===void 0?!0:D,T=C*2+M;return N.createElement(we,{className:x},m||S?N.createElement("defs",null,N.createElement("clipPath",{id:"clipPath-".concat(A)},N.createElement("rect",{x:m?h:h-p/2,y:S?d:d-y/2,width:m?p:p*2,height:S?y:y*2})),!$&&N.createElement("clipPath",{id:"clipPath-dots-".concat(A)},N.createElement("rect",{x:h-T/2,y:d-T/2,width:p+T,height:y+T}))):null,!j&&this.renderCurve(w,A),this.renderErrorBar(w,A),(j||l)&&this.renderDots(w,$,A),(!v||g)&&Dr.renderCallByParent(this.props,s))}}],[{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(Gl(r),[0]):r,l=[],s=0;s<a;++s)l=[].concat(Gl(l),Gl(i));return l}},{key:"renderDotItem",value:function(r,a){var i;if(N.isValidElement(r))i=N.cloneElement(r,a);else if(fe(r))i=r(a);else{var l=a.key,s=MA(a,Cfe),c=ye("recharts-line-dot",typeof r!="boolean"?r.className:"");i=N.createElement(pf,Dc({key:l},s,{className:c}))}return i}}])}(O.PureComponent);dr(mf,"displayName","Line");dr(mf,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ji.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});dr(mf,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,a=e.xAxisTicks,i=e.yAxisTicks,l=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,f=t.layout,d=c.map(function(h,p){var y=ft(h,l);return f==="horizontal"?{x:$h({axis:n,ticks:a,bandSize:s,entry:h,index:p}),y:me(y)?null:r.scale(y),value:y,payload:h}:{x:me(y)?null:n.scale(y),y:$h({axis:r,ticks:i,bandSize:s,entry:h,index:p}),value:y,payload:h}});return vn({points:d,layout:f},u)});var qfe=["layout","type","stroke","connectNulls","isRange","ref"],Ffe=["key"],a$;function ho(e){"@babel/helpers - typeof";return ho=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},ho(e)}function i$(e,t){if(e==null)return{};var n=Gfe(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 Gfe(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 Yi(){return Yi=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},Yi.apply(this,arguments)}function $A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ka(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$A(Object(n),!0).forEach(function(r){Pr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$A(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vfe(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,s$(r.key),r)}}function Yfe(e,t,n){return t&&RA(e.prototype,t),n&&RA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kfe(e,t,n){return t=ip(t),Xfe(e,l$()?Reflect.construct(t,n||[],ip(e).constructor):t.apply(e,n))}function Xfe(e,t){if(t&&(ho(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wfe(e)}function Wfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l$=function(){return!!e})()}function ip(e){return ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ip(e)}function Qfe(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&&kb(e,t)}function kb(e,t){return kb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},kb(e,t)}function Pr(e,t,n){return t=s$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s$(e){var t=Zfe(e,"string");return ho(t)=="symbol"?t:t+""}function Zfe(e,t){if(ho(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ho(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ai=function(e){function t(){var n;Vfe(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Kfe(this,t,[].concat(a)),Pr(n,"state",{isAnimationFinished:!0}),Pr(n,"id",Ml("recharts-area-")),Pr(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),fe(l)&&l()}),Pr(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),fe(l)&&l()}),n}return Qfe(t,e),Yfe(t,[{key:"renderDots",value:function(r,a,i){var l=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(l&&!s)return null;var c=this.props,u=c.dot,f=c.points,d=c.dataKey,h=le(this.props,!1),p=le(u,!0),y=f.map(function(b,g){var j=ka(ka(ka({key:"dot-".concat(g),r:3},h),p),{},{index:g,cx:b.x,cy:b.y,dataKey:d,value:b.value,payload:b.payload,points:f});return t.renderDotItem(u,j)}),v={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return N.createElement(we,Yi({className:"recharts-area-dots"},v),y)}},{key:"renderHorizontalRect",value:function(r){var a=this.props,i=a.baseLine,l=a.points,s=a.strokeWidth,c=l[0].x,u=l[l.length-1].x,f=r*Math.abs(c-u),d=ei(l.map(function(h){return h.y||0}));return X(i)&&typeof i=="number"?d=Math.max(i,d):i&&Array.isArray(i)&&i.length&&(d=Math.max(ei(i.map(function(h){return h.y||0})),d)),X(d)?N.createElement("rect",{x:c<u?c:c-f,y:0,width:f,height:Math.floor(d+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var a=this.props,i=a.baseLine,l=a.points,s=a.strokeWidth,c=l[0].y,u=l[l.length-1].y,f=r*Math.abs(c-u),d=ei(l.map(function(h){return h.x||0}));return X(i)&&typeof i=="number"?d=Math.max(i,d):i&&Array.isArray(i)&&i.length&&(d=Math.max(ei(i.map(function(h){return h.x||0})),d)),X(d)?N.createElement("rect",{x:0,y:c<u?c:c-f,width:d+(s?parseInt("".concat(s),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 s=this.props,c=s.layout,u=s.type,f=s.stroke,d=s.connectNulls,h=s.isRange;s.ref;var p=i$(s,qfe);return N.createElement(we,{clipPath:i?"url(#clipPath-".concat(l,")"):null},N.createElement(ol,Yi({},le(p,!0),{points:r,connectNulls:d,type:u,baseLine:a,layout:c,stroke:"none",className:"recharts-area-area"})),f!=="none"&&N.createElement(ol,Yi({},le(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:d,fill:"none",points:r})),f!=="none"&&h&&N.createElement(ol,Yi({},le(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,s=l.points,c=l.baseLine,u=l.isAnimationActive,f=l.animationBegin,d=l.animationDuration,h=l.animationEasing,p=l.animationId,y=this.state,v=y.prevPoints,b=y.prevBaseLine;return N.createElement(vr,{begin:f,duration:d,isActive:u,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var j=g.t;if(v){var x=v.length/s.length,m=s.map(function(_,E){var C=Math.floor(E*x);if(v[C]){var k=v[C],M=At(k.x,_.x),I=At(k.y,_.y);return ka(ka({},_),{},{x:M(j),y:I(j)})}return _}),S;if(X(c)&&typeof c=="number"){var w=At(b,c);S=w(j)}else if(me(c)||zo(c)){var A=At(b,0);S=A(j)}else S=c.map(function(_,E){var C=Math.floor(E*x);if(b[C]){var k=b[C],M=At(k.x,_.x),I=At(k.y,_.y);return ka(ka({},_),{},{x:M(j),y:I(j)})}return _});return i.renderAreaStatically(m,S,r,a)}return N.createElement(we,null,N.createElement("defs",null,N.createElement("clipPath",{id:"animationClipPath-".concat(a)},i.renderClipRect(j))),N.createElement(we,{clipPath:"url(#animationClipPath-".concat(a,")")},i.renderAreaStatically(s,c,r,a)))})}},{key:"renderArea",value:function(r,a){var i=this.props,l=i.points,s=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||!xl(f,l)||!xl(d,s))?this.renderAreaWithAnimation(r,a):this.renderAreaStatically(l,s,r,a)}},{key:"render",value:function(){var r,a=this.props,i=a.hide,l=a.dot,s=a.points,c=a.className,u=a.top,f=a.left,d=a.xAxis,h=a.yAxis,p=a.width,y=a.height,v=a.isAnimationActive,b=a.id;if(i||!s||!s.length)return null;var g=this.state.isAnimationFinished,j=s.length===1,x=ye("recharts-area",c),m=d&&d.allowDataOverflow,S=h&&h.allowDataOverflow,w=m||S,A=me(b)?this.id:b,_=(r=le(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},E=_.r,C=E===void 0?3:E,k=_.strokeWidth,M=k===void 0?2:k,I=GC(l)?l:{},D=I.clipDot,$=D===void 0?!0:D,T=C*2+M;return N.createElement(we,{className:x},m||S?N.createElement("defs",null,N.createElement("clipPath",{id:"clipPath-".concat(A)},N.createElement("rect",{x:m?f:f-p/2,y:S?u:u-y/2,width:m?p:p*2,height:S?y:y*2})),!$&&N.createElement("clipPath",{id:"clipPath-dots-".concat(A)},N.createElement("rect",{x:f-T/2,y:u-T/2,width:p+T,height:y+T}))):null,j?null:this.renderArea(w,A),(l||j)&&this.renderDots(w,$,A),(!v||g)&&Dr.renderCallByParent(this.props,s))}}],[{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}}])}(O.PureComponent);a$=Ai;Pr(Ai,"displayName","Area");Pr(Ai,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ji.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Pr(Ai,"getBaseValue",function(e,t,n,r){var a=e.layout,i=e.baseValue,l=t.props.baseValue,s=l??i;if(X(s)&&typeof s=="number")return s;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 s==="dataMin"?d:s==="dataMax"||f<0?f:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});Pr(Ai,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,a=e.yAxis,i=e.xAxisTicks,l=e.yAxisTicks,s=e.bandSize,c=e.dataKey,u=e.stackedData,f=e.dataStartIndex,d=e.displayedData,h=e.offset,p=t.layout,y=u&&u.length,v=a$.getBaseValue(t,n,r,a),b=p==="horizontal",g=!1,j=d.map(function(m,S){var w;y?w=u[f+S]:(w=ft(m,c),Array.isArray(w)?g=!0:w=[v,w]);var A=w[1]==null||y&&ft(m,c)==null;return b?{x:$h({axis:r,ticks:i,bandSize:s,entry:m,index:S}),y:A?null:a.scale(w[1]),value:w,payload:m}:{x:A?null:r.scale(w[1]),y:$h({axis:a,ticks:l,bandSize:s,entry:m,index:S}),value:w,payload:m}}),x;return y||g?x=j.map(function(m){var S=Array.isArray(m.value)?m.value[0]:null;return b?{x:m.x,y:S!=null&&m.y!=null?a.scale(S):null}:{x:S!=null?r.scale(S):null,y:m.y}}):x=b?a.scale(v):r.scale(v),ka({points:j,baseLine:x,layout:p,isRange:g},h)});Pr(Ai,"renderDotItem",function(e,t){var n;if(N.isValidElement(e))n=N.cloneElement(e,t);else if(fe(e))n=e(t);else{var r=ye("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,i=i$(t,Ffe);n=N.createElement(pf,Yi({},i,{key:a,className:r}))}return n});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 Jfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ede(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,u$(r.key),r)}}function tde(e,t,n){return t&&ede(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nde(e,t,n){return t=lp(t),rde(e,o$()?Reflect.construct(t,n||[],lp(e).constructor):t.apply(e,n))}function rde(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 ade(e)}function ade(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o$=function(){return!!e})()}function lp(e){return lp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lp(e)}function ide(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 c$(e,t,n){return t=u$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u$(e){var t=lde(e,"string");return po(t)=="symbol"?t:t+""}function lde(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 $b(){return $b=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},$b.apply(this,arguments)}function sde(e){var t=e.xAxisId,n=E1(),r=_1(),a=FP(t);return a==null?null:O.createElement(Fo,$b({},a,{className:ye("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(l){return sa(l,!0)}}))}var di=function(e){function t(){return Jfe(this,t),nde(this,t,arguments)}return ide(t,e),tde(t,[{key:"render",value:function(){return O.createElement(sde,this.props)}}])}(O.Component);c$(di,"displayName","XAxis");c$(di,"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 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 ode(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cde(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,h$(r.key),r)}}function ude(e,t,n){return t&&cde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fde(e,t,n){return t=sp(t),dde(e,f$()?Reflect.construct(t,n||[],sp(e).constructor):t.apply(e,n))}function dde(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 hde(e)}function hde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f$=function(){return!!e})()}function sp(e){return sp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sp(e)}function pde(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 d$(e,t,n){return t=h$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h$(e){var t=mde(e,"string");return mo(t)=="symbol"?t:t+""}function mde(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 Db(){return Db=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},Db.apply(this,arguments)}var yde=function(t){var n=t.yAxisId,r=E1(),a=_1(),i=GP(n);return i==null?null:O.createElement(Fo,Db({},i,{className:ye("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(s){return sa(s,!0)}}))},hi=function(e){function t(){return ode(this,t),fde(this,t,arguments)}return pde(t,e),ude(t,[{key:"render",value:function(){return O.createElement(yde,this.props)}}])}(O.Component);d$(hi,"displayName","YAxis");d$(hi,"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 DA(e){return xde(e)||bde(e)||gde(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 gde(e,t){if(e){if(typeof e=="string")return zb(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 zb(e,t)}}function bde(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xde(e){if(Array.isArray(e))return zb(e)}function zb(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 Lb=function(t,n,r,a,i){var l=kn(t,T1),s=kn(t,Nm),c=[].concat(DA(l),DA(s)),u=kn(t,Cm),f="".concat(a,"Id"),d=a[0],h=n;if(c.length&&(h=c.reduce(function(v,b){if(b.props[f]===r&&zr(b.props,"extendDomain")&&X(b.props[d])){var g=b.props[d];return[Math.min(v[0],g),Math.max(v[1],g)]}return v},h)),u.length){var p="".concat(d,"1"),y="".concat(d,"2");h=u.reduce(function(v,b){if(b.props[f]===r&&zr(b.props,"extendDomain")&&X(b.props[p])&&X(b.props[y])){var g=b.props[p],j=b.props[y];return[Math.min(v[0],g,j),Math.max(v[1],g,j)]}return v},h)}return i&&i.length&&(h=i.reduce(function(v,b){return X(b)?[Math.min(v[0],b),Math.max(v[1],b)]:v},h)),h},p$={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 p=new a(f,d||c,h),y=n?n+u:u;return c._events[y]?c._events[y].fn?c._events[y]=[c._events[y],p]:c._events[y].push(p):(c._events[y]=p,c._eventsCount++),c}function l(c,u){--c._eventsCount===0?c._events=new r:delete c._events[u]}function s(){this._events=new r,this._eventsCount=0}s.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},s.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,p=d.length,y=new Array(p);h<p;h++)y[h]=d[h].fn;return y},s.prototype.listenerCount=function(u){var f=n?n+u:u,d=this._events[f];return d?d.fn?1:d.length:0},s.prototype.emit=function(u,f,d,h,p,y){var v=n?n+u:u;if(!this._events[v])return!1;var b=this._events[v],g=arguments.length,j,x;if(b.fn){switch(b.once&&this.removeListener(u,b.fn,void 0,!0),g){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,f),!0;case 3:return b.fn.call(b.context,f,d),!0;case 4:return b.fn.call(b.context,f,d,h),!0;case 5:return b.fn.call(b.context,f,d,h,p),!0;case 6:return b.fn.call(b.context,f,d,h,p,y),!0}for(x=1,j=new Array(g-1);x<g;x++)j[x-1]=arguments[x];b.fn.apply(b.context,j)}else{var m=b.length,S;for(x=0;x<m;x++)switch(b[x].once&&this.removeListener(u,b[x].fn,void 0,!0),g){case 1:b[x].fn.call(b[x].context);break;case 2:b[x].fn.call(b[x].context,f);break;case 3:b[x].fn.call(b[x].context,f,d);break;case 4:b[x].fn.call(b[x].context,f,d,h);break;default:if(!j)for(S=1,j=new Array(g-1);S<g;S++)j[S-1]=arguments[S];b[x].fn.apply(b[x].context,j)}}return!0},s.prototype.on=function(u,f,d){return i(this,u,f,d,!1)},s.prototype.once=function(u,f,d){return i(this,u,f,d,!0)},s.prototype.removeListener=function(u,f,d,h){var p=n?n+u:u;if(!this._events[p])return this;if(!f)return l(this,p),this;var y=this._events[p];if(y.fn)y.fn===f&&(!h||y.once)&&(!d||y.context===d)&&l(this,p);else{for(var v=0,b=[],g=y.length;v<g;v++)(y[v].fn!==f||h&&!y[v].once||d&&y[v].context!==d)&&b.push(y[v]);b.length?this._events[p]=b.length===1?b[0]:b:l(this,p)}return this},s.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},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(p$);var jde=p$.exports;const Sde=Pe(jde);var Qy=new Sde,Zy="recharts.syncMouseEvents";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 wde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ode(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 Ade(e,t,n){return t&&Ode(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jy(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=Ede(e,"string");return Ru(t)=="symbol"?t:t+""}function Ede(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 String(e)}var _de=function(){function e(){wde(this,e),Jy(this,"activeIndex",0),Jy(this,"coordinateList",[]),Jy(this,"layout","horizontal")}return Ade(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,i=a===void 0?null:a,l=n.container,s=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,p=h===void 0?null:h;this.coordinateList=(r=i??this.coordinateList)!==null&&r!==void 0?r:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=d??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var a=this.container.getBoundingClientRect(),i=a.x,l=a.y,s=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+s/2+f;this.mouseHandlerCallback({pageX:d,pageY:h})}}}])}();function Nde(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&&X(r)&&X(a))return!0}return!1}function Tde(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 y$(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,l=Ve(t,n,r,a),s=Ve(t,n,r,i);return{points:[l,s],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function Cde(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 s=t.cx,c=t.cy,u=t.innerRadius,f=t.outerRadius,d=t.angle,h=Ve(s,c,u,d),p=Ve(s,c,f,d);r=h.x,a=h.y,i=p.x,l=p.y}else return y$(t);return[{x:r,y:a},{x:i,y:l}]}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 zA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Qf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zA(Object(n),!0).forEach(function(r){Mde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mde(e,t,n){return t=kde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kde(e){var t=Pde(e,"string");return Du(t)=="symbol"?t:t+""}function Pde(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 $de(e){var t,n,r=e.element,a=e.tooltipEventType,i=e.isActive,l=e.activeCoordinate,s=e.activePayload,c=e.offset,u=e.activeTooltipIndex,f=e.tooltipAxisBandSize,d=e.layout,h=e.chartName,p=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!p||!i||!l||h!=="ScatterChart"&&a!=="axis")return null;var y,v=ol;if(h==="ScatterChart")y=l,v=Hle;else if(h==="BarChart")y=Tde(d,l,c,f),v=j1;else if(d==="radial"){var b=y$(l),g=b.cx,j=b.cy,x=b.radius,m=b.startAngle,S=b.endAngle;y={cx:g,cy:j,startAngle:m,endAngle:S,innerRadius:x,outerRadius:x},v=cP}else y={points:Cde(d,l,c)},v=ol;var w=Qf(Qf(Qf(Qf({stroke:"#ccc",pointerEvents:"none"},c),y),le(p,!1)),{},{payload:s,payloadIndex:u,className:ye("recharts-tooltip-cursor",p.className)});return O.isValidElement(p)?O.cloneElement(p,w):O.createElement(v,w)}var Rde=["item"],Dde=["children","className","width","height","style","compact","title","desc"];function yo(e){"@babel/helpers - typeof";return yo=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},yo(e)}function ds(){return ds=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},ds.apply(this,arguments)}function LA(e,t){return Bde(e)||Lde(e,t)||g$(e,t)||zde()}function zde(){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 Lde(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.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 s}}function Bde(e){if(Array.isArray(e))return e}function BA(e,t){if(e==null)return{};var n=Ide(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 Ide(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 Ude(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hde(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,b$(r.key),r)}}function qde(e,t,n){return t&&Hde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fde(e,t,n){return t=op(t),Gde(e,v$()?Reflect.construct(t,n||[],op(e).constructor):t.apply(e,n))}function Gde(e,t){if(t&&(yo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vde(e)}function Vde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v$=function(){return!!e})()}function op(e){return op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},op(e)}function Yde(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&&Bb(e,t)}function Bb(e,t){return Bb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Bb(e,t)}function vo(e){return Wde(e)||Xde(e)||g$(e)||Kde()}function Kde(){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 g$(e,t){if(e){if(typeof e=="string")return Ib(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 Ib(e,t)}}function Xde(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wde(e){if(Array.isArray(e))return Ib(e)}function Ib(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 IA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IA(Object(n),!0).forEach(function(r){ue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ue(e,t,n){return t=b$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b$(e){var t=Qde(e,"string");return yo(t)=="symbol"?t:t+""}function Qde(e,t){if(yo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zde={xAxis:["bottom","top"],yAxis:["left","right"]},Jde={width:"100%",height:"100%"},x$={x:0,y:0};function Zf(e){return e}var ehe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},the=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,s=a.radius;return H(H(H({},a),Ve(a.cx,a.cy,s,l)),{},{angle:l,radius:s})}var c=i.coordinate,u=a.angle;return H(H(H({},a),Ve(a.cx,a.cy,c,u)),{},{angle:u,radius:c})}return x$},Mm=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,i=n.dataEndIndex,l=(r??[]).reduce(function(s,c){var u=c.props.data;return u&&u.length?[].concat(vo(s),vo(u)):s},[]);return l.length>0?l:t&&t.length&&X(a)&&X(i)?t.slice(a,i+1):[]};function j$(e){return e==="number"?[0,"auto"]:void 0}var Ub=function(t,n,r,a){var i=t.graphicalItems,l=t.tooltipAxis,s=Mm(n,t);return r<0||!i||!i.length||r>=s.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 p=d===void 0?s:d;h=ih(p,l.dataKey,a)}else h=d&&d[r]||s[r];return h?[].concat(vo(c),[rP(u,h)]):c},[])},UA=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},l=ehe(i,r),s=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,f=ore(l,s,u,c);if(f>=0&&u){var d=u[f]&&u[f].value,h=Ub(t,n,f,d),p=the(r,s,f,i);return{activeTooltipIndex:f,activeLabel:d,activePayload:h,activeCoordinate:p}}return null},nhe=function(t,n){var r=n.axes,a=n.graphicalItems,i=n.axisType,l=n.axisIdKey,s=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,h=t.stackOffset,p=Qk(f,i);return r.reduce(function(y,v){var b,g=v.type.defaultProps!==void 0?H(H({},v.type.defaultProps),v.props):v.props,j=g.type,x=g.dataKey,m=g.allowDataOverflow,S=g.allowDuplicatedCategory,w=g.scale,A=g.ticks,_=g.includeHidden,E=g[l];if(y[E])return y;var C=Mm(t.data,{graphicalItems:a.filter(function(K){var ae,L=l in K.props?K.props[l]:(ae=K.type.defaultProps)===null||ae===void 0?void 0:ae[l];return L===E}),dataStartIndex:c,dataEndIndex:u}),k=C.length,M,I,D;Nde(g.domain,m,j)&&(M=eb(g.domain,null,m),p&&(j==="number"||w!=="auto")&&(D=kc(C,x,"category")));var $=j$(j);if(!M||M.length===0){var T,z=(T=g.domain)!==null&&T!==void 0?T:$;if(x){if(M=kc(C,x,j),j==="category"&&p){var B=Z9(M);S&&B?(I=M,M=Kh(0,k)):S||(M=uO(z,M,v).reduce(function(K,ae){return K.indexOf(ae)>=0?K:[].concat(vo(K),[ae])},[]))}else if(j==="category")S?M=M.filter(function(K){return K!==""&&!me(K)}):M=uO(z,M,v).reduce(function(K,ae){return K.indexOf(ae)>=0||ae===""||me(ae)?K:[].concat(vo(K),[ae])},[]);else if(j==="number"){var F=hre(C,a.filter(function(K){var ae,L,Z=l in K.props?K.props[l]:(ae=K.type.defaultProps)===null||ae===void 0?void 0:ae[l],ce="hide"in K.props?K.props.hide:(L=K.type.defaultProps)===null||L===void 0?void 0:L.hide;return Z===E&&(_||!ce)}),x,i,f);F&&(M=F)}p&&(j==="number"||w!=="auto")&&(D=kc(C,x,"category"))}else p?M=Kh(0,k):s&&s[E]&&s[E].hasStack&&j==="number"?M=h==="expand"?[0,1]:nP(s[E].stackGroups,c,u):M=Wk(C,a.filter(function(K){var ae=l in K.props?K.props[l]:K.type.defaultProps[l],L="hide"in K.props?K.props.hide:K.type.defaultProps.hide;return ae===E&&(_||!L)}),j,f,!0);if(j==="number")M=Lb(d,M,E,i,A),z&&(M=eb(z,M,m));else if(j==="category"&&z){var V=z,Y=M.every(function(K){return V.indexOf(K)>=0});Y&&(M=V)}}return H(H({},y),{},ue({},E,H(H({},g),{},{axisType:i,domain:M,categoricalDomain:D,duplicateDomain:I,originalDomain:(b=g.domain)!==null&&b!==void 0?b:$,isCategorical:p,layout:f})))},{})},rhe=function(t,n){var r=n.graphicalItems,a=n.Axis,i=n.axisType,l=n.axisIdKey,s=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,h=Mm(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=h.length,y=Qk(f,i),v=-1;return r.reduce(function(b,g){var j=g.type.defaultProps!==void 0?H(H({},g.type.defaultProps),g.props):g.props,x=j[l],m=j$("number");if(!b[x]){v++;var S;return y?S=Kh(0,p):s&&s[x]&&s[x].hasStack?(S=nP(s[x].stackGroups,c,u),S=Lb(d,S,x,i)):(S=eb(m,Wk(h,r.filter(function(w){var A,_,E=l in w.props?w.props[l]:(A=w.type.defaultProps)===null||A===void 0?void 0:A[l],C="hide"in w.props?w.props.hide:(_=w.type.defaultProps)===null||_===void 0?void 0:_.hide;return E===x&&!C}),"number",f),a.defaultProps.allowDataOverflow),S=Lb(d,S,x,i)),H(H({},b),{},ue({},x,H(H({axisType:i},a.defaultProps),{},{hide:!0,orientation:Mn(Zde,"".concat(i,".").concat(v%2),null),domain:S,originalDomain:m,isCategorical:y,layout:f})))}return b},{})},ahe=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,i=n.AxisComp,l=n.graphicalItems,s=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,f=t.children,d="".concat(a,"Id"),h=kn(f,i),p={};return h&&h.length?p=nhe(t,{axes:h,graphicalItems:l,axisType:a,axisIdKey:d,stackGroups:s,dataStartIndex:c,dataEndIndex:u}):l&&l.length&&(p=rhe(t,{Axis:i,graphicalItems:l,axisType:a,axisIdKey:d,stackGroups:s,dataStartIndex:c,dataEndIndex:u})),p},ihe=function(t){var n=Ia(t),r=sa(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:K0(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Rh(n,r)}},HA=function(t){var n=t.children,r=t.defaultShowTooltip,a=xn(n,io),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}},lhe=function(t){return!t||!t.length?!1:t.some(function(n){var r=da(n&&n.type);return r&&r.indexOf("Bar")>=0})},qA=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"}},she=function(t,n){var r=t.props,a=t.graphicalItems,i=t.xAxisMap,l=i===void 0?{}:i,s=t.yAxisMap,c=s===void 0?{}:s,u=r.width,f=r.height,d=r.children,h=r.margin||{},p=xn(d,io),y=xn(d,Mr),v=Object.keys(c).reduce(function(S,w){var A=c[w],_=A.orientation;return!A.mirror&&!A.hide?H(H({},S),{},ue({},_,S[_]+A.width)):S},{left:h.left||0,right:h.right||0}),b=Object.keys(l).reduce(function(S,w){var A=l[w],_=A.orientation;return!A.mirror&&!A.hide?H(H({},S),{},ue({},_,Mn(S,"".concat(_))+A.height)):S},{top:h.top||0,bottom:h.bottom||0}),g=H(H({},b),v),j=g.bottom;p&&(g.bottom+=p.props.height||io.defaultProps.height),y&&n&&(g=fre(g,a,r,n));var x=u-g.left-g.right,m=f-g.top-g.bottom;return H(H({brushBottom:j},g),{},{width:Math.max(x,0),height:Math.max(m,0)})},ohe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},km=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,l=t.validateTooltipEventTypes,s=l===void 0?["axis"]:l,c=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,d=t.defaultProps,h=function(g,j){var x=j.graphicalItems,m=j.stackGroups,S=j.offset,w=j.updateId,A=j.dataStartIndex,_=j.dataEndIndex,E=g.barSize,C=g.layout,k=g.barGap,M=g.barCategoryGap,I=g.maxBarSize,D=qA(C),$=D.numericAxisName,T=D.cateAxisName,z=lhe(x),B=[];return x.forEach(function(F,V){var Y=Mm(g.data,{graphicalItems:[F],dataStartIndex:A,dataEndIndex:_}),K=F.type.defaultProps!==void 0?H(H({},F.type.defaultProps),F.props):F.props,ae=K.dataKey,L=K.maxBarSize,Z=K["".concat($,"Id")],ce=K["".concat(T,"Id")],de={},Ye=c.reduce(function(_i,Ni){var Pm=j["".concat(Ni.axisType,"Map")],P1=K["".concat(Ni.axisType,"Id")];Pm&&Pm[P1]||Ni.axisType==="zAxis"||Sl();var $1=Pm[P1];return H(H({},_i),{},ue(ue({},Ni.axisType,$1),"".concat(Ni.axisType,"Ticks"),sa($1)))},de),te=Ye[T],oe=Ye["".concat(T,"Ticks")],ee=m&&m[Z]&&m[Z].hasStack&&Sre(F,m[Z].stackGroups),G=da(F.type).indexOf("Bar")>=0,$e=Rh(te,oe),be=[],at=z&&cre({barSize:E,stackGroups:m,totalSize:ohe(Ye,T)});if(G){var ct,mt,Ta=me(L)?I:L,Ll=(ct=(mt=Rh(te,oe,!0))!==null&&mt!==void 0?mt:Ta)!==null&&ct!==void 0?ct:0;be=ure({barGap:k,barCategoryGap:M,bandSize:Ll!==$e?Ll:$e,sizeList:at[ce],maxBarSize:Ta}),Ll!==$e&&(be=be.map(function(_i){return H(H({},_i),{},{position:H(H({},_i.position),{},{offset:_i.position.offset-Ll/2})})}))}var yf=F&&F.type&&F.type.getComposedData;yf&&B.push({props:H(H({},yf(H(H({},Ye),{},{displayedData:Y,props:g,dataKey:ae,item:F,bandSize:$e,barPosition:be,offset:S,stackedData:ee,layout:C,dataStartIndex:A,dataEndIndex:_}))),{},ue(ue(ue({key:F.key||"item-".concat(V)},$,Ye[$]),T,Ye[T]),"animationId",w)),childIndex:uH(F,g.children),item:F})}),B},p=function(g,j){var x=g.props,m=g.dataStartIndex,S=g.dataEndIndex,w=g.updateId;if(!aw({props:x}))return null;var A=x.children,_=x.layout,E=x.stackOffset,C=x.data,k=x.reverseStackOrder,M=qA(_),I=M.numericAxisName,D=M.cateAxisName,$=kn(A,r),T=xre(C,$,"".concat(I,"Id"),"".concat(D,"Id"),E,k),z=c.reduce(function(K,ae){var L="".concat(ae.axisType,"Map");return H(H({},K),{},ue({},L,ahe(x,H(H({},ae),{},{graphicalItems:$,stackGroups:ae.axisType===I&&T,dataStartIndex:m,dataEndIndex:S}))))},{}),B=she(H(H({},z),{},{props:x,graphicalItems:$}),j==null?void 0:j.legendBBox);Object.keys(z).forEach(function(K){z[K]=f(x,z[K],B,K.replace("Map",""),n)});var F=z["".concat(D,"Map")],V=ihe(F),Y=h(x,H(H({},z),{},{dataStartIndex:m,dataEndIndex:S,updateId:w,graphicalItems:$,stackGroups:T,offset:B}));return H(H({formattedGraphicalItems:Y,graphicalItems:$,offset:B,stackGroups:T},V),z)},y=function(b){function g(j){var x,m,S;return Ude(this,g),S=Fde(this,g,[j]),ue(S,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ue(S,"accessibilityManager",new _de),ue(S,"handleLegendBBoxUpdate",function(w){if(w){var A=S.state,_=A.dataStartIndex,E=A.dataEndIndex,C=A.updateId;S.setState(H({legendBBox:w},p({props:S.props,dataStartIndex:_,dataEndIndex:E,updateId:C},H(H({},S.state),{},{legendBBox:w}))))}}),ue(S,"handleReceiveSyncEvent",function(w,A,_){if(S.props.syncId===w){if(_===S.eventEmitterSymbol&&typeof S.props.syncMethod!="function")return;S.applySyncEvent(A)}}),ue(S,"handleBrushChange",function(w){var A=w.startIndex,_=w.endIndex;if(A!==S.state.dataStartIndex||_!==S.state.dataEndIndex){var E=S.state.updateId;S.setState(function(){return H({dataStartIndex:A,dataEndIndex:_},p({props:S.props,dataStartIndex:A,dataEndIndex:_,updateId:E},S.state))}),S.triggerSyncEvent({dataStartIndex:A,dataEndIndex:_})}}),ue(S,"handleMouseEnter",function(w){var A=S.getMouseInfo(w);if(A){var _=H(H({},A),{},{isTooltipActive:!0});S.setState(_),S.triggerSyncEvent(_);var E=S.props.onMouseEnter;fe(E)&&E(_,w)}}),ue(S,"triggeredAfterMouseMove",function(w){var A=S.getMouseInfo(w),_=A?H(H({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};S.setState(_),S.triggerSyncEvent(_);var E=S.props.onMouseMove;fe(E)&&E(_,w)}),ue(S,"handleItemMouseEnter",function(w){S.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),ue(S,"handleItemMouseLeave",function(){S.setState(function(){return{isTooltipActive:!1}})}),ue(S,"handleMouseMove",function(w){w.persist(),S.throttleTriggeredAfterMouseMove(w)}),ue(S,"handleMouseLeave",function(w){S.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};S.setState(A),S.triggerSyncEvent(A);var _=S.props.onMouseLeave;fe(_)&&_(A,w)}),ue(S,"handleOuterEvent",function(w){var A=cH(w),_=Mn(S.props,"".concat(A));if(A&&fe(_)){var E,C;/.*touch.*/i.test(A)?C=S.getMouseInfo(w.changedTouches[0]):C=S.getMouseInfo(w),_((E=C)!==null&&E!==void 0?E:{},w)}}),ue(S,"handleClick",function(w){var A=S.getMouseInfo(w);if(A){var _=H(H({},A),{},{isTooltipActive:!0});S.setState(_),S.triggerSyncEvent(_);var E=S.props.onClick;fe(E)&&E(_,w)}}),ue(S,"handleMouseDown",function(w){var A=S.props.onMouseDown;if(fe(A)){var _=S.getMouseInfo(w);A(_,w)}}),ue(S,"handleMouseUp",function(w){var A=S.props.onMouseUp;if(fe(A)){var _=S.getMouseInfo(w);A(_,w)}}),ue(S,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&S.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),ue(S,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&S.handleMouseDown(w.changedTouches[0])}),ue(S,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&S.handleMouseUp(w.changedTouches[0])}),ue(S,"handleDoubleClick",function(w){var A=S.props.onDoubleClick;if(fe(A)){var _=S.getMouseInfo(w);A(_,w)}}),ue(S,"handleContextMenu",function(w){var A=S.props.onContextMenu;if(fe(A)){var _=S.getMouseInfo(w);A(_,w)}}),ue(S,"triggerSyncEvent",function(w){S.props.syncId!==void 0&&Qy.emit(Zy,S.props.syncId,w,S.eventEmitterSymbol)}),ue(S,"applySyncEvent",function(w){var A=S.props,_=A.layout,E=A.syncMethod,C=S.state.updateId,k=w.dataStartIndex,M=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)S.setState(H({dataStartIndex:k,dataEndIndex:M},p({props:S.props,dataStartIndex:k,dataEndIndex:M,updateId:C},S.state)));else if(w.activeTooltipIndex!==void 0){var I=w.chartX,D=w.chartY,$=w.activeTooltipIndex,T=S.state,z=T.offset,B=T.tooltipTicks;if(!z)return;if(typeof E=="function")$=E(B,w);else if(E==="value"){$=-1;for(var F=0;F<B.length;F++)if(B[F].value===w.activeLabel){$=F;break}}var V=H(H({},z),{},{x:z.left,y:z.top}),Y=Math.min(I,V.x+V.width),K=Math.min(D,V.y+V.height),ae=B[$]&&B[$].value,L=Ub(S.state,S.props.data,$),Z=B[$]?{x:_==="horizontal"?B[$].coordinate:Y,y:_==="horizontal"?K:B[$].coordinate}:x$;S.setState(H(H({},w),{},{activeLabel:ae,activeCoordinate:Z,activePayload:L,activeTooltipIndex:$}))}else S.setState(w)}),ue(S,"renderCursor",function(w){var A,_=S.state,E=_.isTooltipActive,C=_.activeCoordinate,k=_.activePayload,M=_.offset,I=_.activeTooltipIndex,D=_.tooltipAxisBandSize,$=S.getTooltipEventType(),T=(A=w.props.active)!==null&&A!==void 0?A:E,z=S.props.layout,B=w.key||"_recharts-cursor";return N.createElement($de,{key:B,activeCoordinate:C,activePayload:k,activeTooltipIndex:I,chartName:n,element:w,isActive:T,layout:z,offset:M,tooltipAxisBandSize:D,tooltipEventType:$})}),ue(S,"renderPolarAxis",function(w,A,_){var E=Mn(w,"type.axisType"),C=Mn(S.state,"".concat(E,"Map")),k=w.type.defaultProps,M=k!==void 0?H(H({},k),w.props):w.props,I=C&&C[M["".concat(E,"Id")]];return O.cloneElement(w,H(H({},I),{},{className:ye(E,I.className),key:w.key||"".concat(A,"-").concat(_),ticks:sa(I,!0)}))}),ue(S,"renderPolarGrid",function(w){var A=w.props,_=A.radialLines,E=A.polarAngles,C=A.polarRadius,k=S.state,M=k.radiusAxisMap,I=k.angleAxisMap,D=Ia(M),$=Ia(I),T=$.cx,z=$.cy,B=$.innerRadius,F=$.outerRadius;return O.cloneElement(w,{polarAngles:Array.isArray(E)?E:sa($,!0).map(function(V){return V.coordinate}),polarRadius:Array.isArray(C)?C:sa(D,!0).map(function(V){return V.coordinate}),cx:T,cy:z,innerRadius:B,outerRadius:F,key:w.key||"polar-grid",radialLines:_})}),ue(S,"renderLegend",function(){var w=S.state.formattedGraphicalItems,A=S.props,_=A.children,E=A.width,C=A.height,k=S.props.margin||{},M=E-(k.left||0)-(k.right||0),I=Kk({children:_,formattedGraphicalItems:w,legendWidth:M,legendContent:u});if(!I)return null;var D=I.item,$=BA(I,Rde);return O.cloneElement(D,H(H({},$),{},{chartWidth:E,chartHeight:C,margin:k,onBBoxUpdate:S.handleLegendBBoxUpdate}))}),ue(S,"renderTooltip",function(){var w,A=S.props,_=A.children,E=A.accessibilityLayer,C=xn(_,Sn);if(!C)return null;var k=S.state,M=k.isTooltipActive,I=k.activeCoordinate,D=k.activePayload,$=k.activeLabel,T=k.offset,z=(w=C.props.active)!==null&&w!==void 0?w:M;return O.cloneElement(C,{viewBox:H(H({},T),{},{x:T.left,y:T.top}),active:z,label:$,payload:z?D:[],coordinate:I,accessibilityLayer:E})}),ue(S,"renderBrush",function(w){var A=S.props,_=A.margin,E=A.data,C=S.state,k=C.offset,M=C.dataStartIndex,I=C.dataEndIndex,D=C.updateId;return O.cloneElement(w,{key:w.key||"_recharts-brush",onChange:Yf(S.handleBrushChange,w.props.onChange),data:E,x:X(w.props.x)?w.props.x:k.left,y:X(w.props.y)?w.props.y:k.top+k.height+k.brushBottom-(_.bottom||0),width:X(w.props.width)?w.props.width:k.width,startIndex:M,endIndex:I,updateId:"brush-".concat(D)})}),ue(S,"renderReferenceElement",function(w,A,_){if(!w)return null;var E=S,C=E.clipPathId,k=S.state,M=k.xAxisMap,I=k.yAxisMap,D=k.offset,$=w.type.defaultProps||{},T=w.props,z=T.xAxisId,B=z===void 0?$.xAxisId:z,F=T.yAxisId,V=F===void 0?$.yAxisId:F;return O.cloneElement(w,{key:w.key||"".concat(A,"-").concat(_),xAxis:M[B],yAxis:I[V],viewBox:{x:D.left,y:D.top,width:D.width,height:D.height},clipPathId:C})}),ue(S,"renderActivePoints",function(w){var A=w.item,_=w.activePoint,E=w.basePoint,C=w.childIndex,k=w.isRange,M=[],I=A.props.key,D=A.item.type.defaultProps!==void 0?H(H({},A.item.type.defaultProps),A.item.props):A.item.props,$=D.activeDot,T=D.dataKey,z=H(H({index:C,dataKey:T,cx:_.x,cy:_.y,r:4,fill:x1(A.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},le($,!1)),lh($));return M.push(g.renderActiveDot($,z,"".concat(I,"-activePoint-").concat(C))),E?M.push(g.renderActiveDot($,H(H({},z),{},{cx:E.x,cy:E.y}),"".concat(I,"-basePoint-").concat(C))):k&&M.push(null),M}),ue(S,"renderGraphicChild",function(w,A,_){var E=S.filterFormatItem(w,A,_);if(!E)return null;var C=S.getTooltipEventType(),k=S.state,M=k.isTooltipActive,I=k.tooltipAxis,D=k.activeTooltipIndex,$=k.activeLabel,T=S.props.children,z=xn(T,Sn),B=E.props,F=B.points,V=B.isRange,Y=B.baseLine,K=E.item.type.defaultProps!==void 0?H(H({},E.item.type.defaultProps),E.item.props):E.item.props,ae=K.activeDot,L=K.hide,Z=K.activeBar,ce=K.activeShape,de=!!(!L&&M&&z&&(ae||Z||ce)),Ye={};C!=="axis"&&z&&z.props.trigger==="click"?Ye={onClick:Yf(S.handleItemMouseEnter,w.props.onClick)}:C!=="axis"&&(Ye={onMouseLeave:Yf(S.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:Yf(S.handleItemMouseEnter,w.props.onMouseEnter)});var te=O.cloneElement(w,H(H({},E.props),Ye));function oe(Ni){return typeof I.dataKey=="function"?I.dataKey(Ni.payload):null}if(de)if(D>=0){var ee,G;if(I.dataKey&&!I.allowDuplicatedCategory){var $e=typeof I.dataKey=="function"?oe:"payload.".concat(I.dataKey.toString());ee=ih(F,$e,$),G=V&&Y&&ih(Y,$e,$)}else ee=F==null?void 0:F[D],G=V&&Y&&Y[D];if(ce||Z){var be=w.props.activeIndex!==void 0?w.props.activeIndex:D;return[O.cloneElement(w,H(H(H({},E.props),Ye),{},{activeIndex:be})),null,null]}if(!me(ee))return[te].concat(vo(S.renderActivePoints({item:E,activePoint:ee,basePoint:G,childIndex:D,isRange:V})))}else{var at,ct=(at=S.getItemByXY(S.state.activeCoordinate))!==null&&at!==void 0?at:{graphicalItem:te},mt=ct.graphicalItem,Ta=mt.item,Ll=Ta===void 0?w:Ta,yf=mt.childIndex,_i=H(H(H({},E.props),Ye),{},{activeIndex:yf});return[O.cloneElement(Ll,_i),null,null]}return V?[te,null,null]:[te,null]}),ue(S,"renderCustomized",function(w,A,_){return O.cloneElement(w,H(H({key:"recharts-customized-".concat(_)},S.props),S.state))}),ue(S,"renderMap",{CartesianGrid:{handler:Zf,once:!0},ReferenceArea:{handler:S.renderReferenceElement},ReferenceLine:{handler:Zf},ReferenceDot:{handler:S.renderReferenceElement},XAxis:{handler:Zf},YAxis:{handler:Zf},Brush:{handler:S.renderBrush,once:!0},Bar:{handler:S.renderGraphicChild},Line:{handler:S.renderGraphicChild},Area:{handler:S.renderGraphicChild},Radar:{handler:S.renderGraphicChild},RadialBar:{handler:S.renderGraphicChild},Scatter:{handler:S.renderGraphicChild},Pie:{handler:S.renderGraphicChild},Funnel:{handler:S.renderGraphicChild},Tooltip:{handler:S.renderCursor,once:!0},PolarGrid:{handler:S.renderPolarGrid,once:!0},PolarAngleAxis:{handler:S.renderPolarAxis},PolarRadiusAxis:{handler:S.renderPolarAxis},Customized:{handler:S.renderCustomized}}),S.clipPathId="".concat((x=j.id)!==null&&x!==void 0?x:Ml("recharts"),"-clip"),S.throttleTriggeredAfterMouseMove=KM(S.triggeredAfterMouseMove,(m=j.throttleDelay)!==null&&m!==void 0?m:1e3/60),S.state={},S}return Yde(g,b),qde(g,[{key:"componentDidMount",value:function(){var x,m;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(m=this.props.margin.top)!==null&&m!==void 0?m:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,m=x.children,S=x.data,w=x.height,A=x.layout,_=xn(m,Sn);if(_){var E=_.props.defaultIndex;if(!(typeof E!="number"||E<0||E>this.state.tooltipTicks.length-1)){var C=this.state.tooltipTicks[E]&&this.state.tooltipTicks[E].value,k=Ub(this.state,S,E,C),M=this.state.tooltipTicks[E].coordinate,I=(this.state.offset.top+w)/2,D=A==="horizontal",$=D?{x:M,y:I}:{y:M,x:I},T=this.state.formattedGraphicalItems.find(function(B){var F=B.item;return F.type.name==="Scatter"});T&&($=H(H({},$),T.props.points[E].tooltipPosition),k=T.props.points[E].tooltipPayload);var z={activeTooltipIndex:E,isTooltipActive:!0,activeLabel:C,activePayload:k,activeCoordinate:$};this.setState(z),this.renderCursor(_),this.accessibilityManager.setIndex(E)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,m){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==m.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var S,w;this.accessibilityManager.setDetails({offset:{left:(S=this.props.margin.left)!==null&&S!==void 0?S:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(x){mg([xn(x.children,Sn)],[xn(this.props.children,Sn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=xn(this.props.children,Sn);if(x&&typeof x.props.shared=="boolean"){var m=x.props.shared?"axis":"item";return s.indexOf(m)>=0?m:i}return i}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var m=this.container,S=m.getBoundingClientRect(),w=DZ(S),A={chartX:Math.round(x.pageX-w.left),chartY:Math.round(x.pageY-w.top)},_=S.width/m.offsetWidth||1,E=this.inRange(A.chartX,A.chartY,_);if(!E)return null;var C=this.state,k=C.xAxisMap,M=C.yAxisMap,I=this.getTooltipEventType(),D=UA(this.state,this.props.data,this.props.layout,E);if(I!=="axis"&&k&&M){var $=Ia(k).scale,T=Ia(M).scale,z=$&&$.invert?$.invert(A.chartX):null,B=T&&T.invert?T.invert(A.chartY):null;return H(H({},A),{},{xValue:z,yValue:B},D)}return D?H(H({},A),D):null}},{key:"inRange",value:function(x,m){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,A=x/S,_=m/S;if(w==="horizontal"||w==="vertical"){var E=this.state.offset,C=A>=E.left&&A<=E.left+E.width&&_>=E.top&&_<=E.top+E.height;return C?{x:A,y:_}:null}var k=this.state,M=k.angleAxisMap,I=k.radiusAxisMap;if(M&&I){var D=Ia(M);return hO({x:A,y:_},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,m=this.getTooltipEventType(),S=xn(x,Sn),w={};S&&m==="axis"&&(S.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var A=lh(this.props,this.handleOuterEvent);return H(H({},A),w)}},{key:"addListener",value:function(){Qy.on(Zy,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Qy.removeListener(Zy,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,m,S){for(var w=this.state.formattedGraphicalItems,A=0,_=w.length;A<_;A++){var E=w[A];if(E.item===x||E.props.key===x.key||m===da(E.item.type)&&S===E.childIndex)return E}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,m=this.state.offset,S=m.left,w=m.top,A=m.height,_=m.width;return N.createElement("defs",null,N.createElement("clipPath",{id:x},N.createElement("rect",{x:S,y:w,height:A,width:_})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(m,S){var w=LA(S,2),A=w[0],_=w[1];return H(H({},m),{},ue({},A,_.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(m,S){var w=LA(S,2),A=w[0],_=w[1];return H(H({},m),{},ue({},A,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var m;return(m=this.state.xAxisMap)===null||m===void 0||(m=m[x])===null||m===void 0?void 0:m.scale}},{key:"getYScaleByAxisId",value:function(x){var m;return(m=this.state.yAxisMap)===null||m===void 0||(m=m[x])===null||m===void 0?void 0:m.scale}},{key:"getItemByXY",value:function(x){var m=this.state,S=m.formattedGraphicalItems,w=m.activeItem;if(S&&S.length)for(var A=0,_=S.length;A<_;A++){var E=S[A],C=E.props,k=E.item,M=k.type.defaultProps!==void 0?H(H({},k.type.defaultProps),k.props):k.props,I=da(k.type);if(I==="Bar"){var D=(C.data||[]).find(function(B){return Sle(x,B)});if(D)return{graphicalItem:E,payload:D}}else if(I==="RadialBar"){var $=(C.data||[]).find(function(B){return hO(x,B)});if($)return{graphicalItem:E,payload:$}}else if(Om(E,w)||Am(E,w)||Cu(E,w)){var T=uoe({graphicalItem:E,activeTooltipItem:w,itemData:M.data}),z=M.activeIndex===void 0?T:M.activeIndex;return{graphicalItem:H(H({},E),{},{childIndex:z}),payload:Cu(E,w)?M.data[T]:E.props.data[T]}}}return null}},{key:"render",value:function(){var x=this;if(!aw(this))return null;var m=this.props,S=m.children,w=m.className,A=m.width,_=m.height,E=m.style,C=m.compact,k=m.title,M=m.desc,I=BA(m,Dde),D=le(I,!1);if(C)return N.createElement(gA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},N.createElement(vg,ds({},D,{width:A,height:_,title:k,desc:M}),this.renderClipPath(),lw(S,this.renderMap)));if(this.props.accessibilityLayer){var $,T;D.tabIndex=($=this.props.tabIndex)!==null&&$!==void 0?$:0,D.role=(T=this.props.role)!==null&&T!==void 0?T:"application",D.onKeyDown=function(B){x.accessibilityManager.keyboardEvent(B)},D.onFocus=function(){x.accessibilityManager.focus()}}var z=this.parseEventsOfWrapper();return N.createElement(gA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},N.createElement("div",ds({className:ye("recharts-wrapper",w),style:H({position:"relative",cursor:"default",width:A,height:_},E)},z,{ref:function(F){x.container=F}}),N.createElement(vg,ds({},D,{width:A,height:_,title:k,desc:M,style:Jde}),this.renderClipPath(),lw(S,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(O.Component);ue(y,"displayName",n),ue(y,"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(y,"getDerivedStateFromProps",function(b,g){var j=b.dataKey,x=b.data,m=b.children,S=b.width,w=b.height,A=b.layout,_=b.stackOffset,E=b.margin,C=g.dataStartIndex,k=g.dataEndIndex;if(g.updateId===void 0){var M=HA(b);return H(H(H({},M),{},{updateId:0},p(H(H({props:b},M),{},{updateId:0}),g)),{},{prevDataKey:j,prevData:x,prevWidth:S,prevHeight:w,prevLayout:A,prevStackOffset:_,prevMargin:E,prevChildren:m})}if(j!==g.prevDataKey||x!==g.prevData||S!==g.prevWidth||w!==g.prevHeight||A!==g.prevLayout||_!==g.prevStackOffset||!xs(E,g.prevMargin)){var I=HA(b),D={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},$=H(H({},UA(g,x,A)),{},{updateId:g.updateId+1}),T=H(H(H({},I),D),$);return H(H(H({},T),p(H({props:b},T),g)),{},{prevDataKey:j,prevData:x,prevWidth:S,prevHeight:w,prevLayout:A,prevStackOffset:_,prevMargin:E,prevChildren:m})}if(!mg(m,g.prevChildren)){var z,B,F,V,Y=xn(m,io),K=Y&&(z=(B=Y.props)===null||B===void 0?void 0:B.startIndex)!==null&&z!==void 0?z:C,ae=Y&&(F=(V=Y.props)===null||V===void 0?void 0:V.endIndex)!==null&&F!==void 0?F:k,L=K!==C||ae!==k,Z=!me(x),ce=Z&&!L?g.updateId:g.updateId+1;return H(H({updateId:ce},p(H(H({props:b},g),{},{updateId:ce,dataStartIndex:K,dataEndIndex:ae}),g)),{},{prevChildren:m,dataStartIndex:K,dataEndIndex:ae})}return null}),ue(y,"renderActiveDot",function(b,g,j){var x;return O.isValidElement(b)?x=O.cloneElement(b,g):fe(b)?x=b(g):x=N.createElement(pf,g),N.createElement(we,{className:"recharts-active-dot",key:j},x)});var v=O.forwardRef(function(g,j){return N.createElement(y,ds({},g,{ref:j}))});return v.displayName=y.displayName,v},che=km({chartName:"LineChart",GraphicalChild:mf,axisComponents:[{axisType:"xAxis",AxisComp:di},{axisType:"yAxis",AxisComp:hi}],formatAxisMap:S1}),uhe=km({chartName:"BarChart",GraphicalChild:Rl,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:di},{axisType:"yAxis",AxisComp:hi}],formatAxisMap:S1}),fhe=km({chartName:"PieChart",GraphicalChild:Na,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:wm},{axisType:"radiusAxis",AxisComp:jm}],formatAxisMap:kre,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),dhe=km({chartName:"AreaChart",GraphicalChild:Ai,axisComponents:[{axisType:"xAxis",AxisComp:di},{axisType:"yAxis",AxisComp:hi}],formatAxisMap:S1});const wr=["#00a0c8","#3ddc97","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899"],Vl={fontSize:11,fill:"#94a3b8"},Jf={background:"#0f172a",border:"1px solid #26304a",borderRadius:8,fontSize:12,color:"#e2e8f0"};function hhe(e){const t=e.labels||[],n=e.series||[];return t.map((r,a)=>{const i={name:r};return n.forEach(l=>{var s;i[l.name]=((s=l.data)==null?void 0:s[a])??0}),i})}function Hb({type:e="BAR",data:t,height:n=240}){const r=t||{},a=r.series||[],i=hhe(r);if(!i.length)return o.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 s=a[0],c=(r.labels||[]).map((u,f)=>{var d;return{name:u,value:((d=s==null?void 0:s.data)==null?void 0:d[f])??0}});return o.jsx(Hf,{width:"100%",height:n,children:o.jsxs(fhe,{children:[o.jsx(Na,{data:c,dataKey:"value",nameKey:"name",outerRadius:n/2.8,innerRadius:n/5,children:c.map((u,f)=>o.jsx(cm,{fill:wr[f%wr.length]},f))}),o.jsx(Sn,{contentStyle:Jf}),o.jsx(Mr,{wrapperStyle:{fontSize:11}})]})})}return l==="LINE"?o.jsx(Hf,{width:"100%",height:n,children:o.jsxs(che,{data:i,children:[o.jsx(Sd,{strokeDasharray:"3 3",stroke:"#26304a"}),o.jsx(di,{dataKey:"name",tick:Vl}),o.jsx(hi,{tick:Vl}),o.jsx(Sn,{contentStyle:Jf}),o.jsx(Mr,{wrapperStyle:{fontSize:11}}),a.map((s,c)=>o.jsx(mf,{type:"monotone",dataKey:s.name,stroke:wr[c%wr.length],strokeWidth:2,dot:!1},s.name))]})}):l==="AREA"?o.jsx(Hf,{width:"100%",height:n,children:o.jsxs(dhe,{data:i,children:[o.jsx(Sd,{strokeDasharray:"3 3",stroke:"#26304a"}),o.jsx(di,{dataKey:"name",tick:Vl}),o.jsx(hi,{tick:Vl}),o.jsx(Sn,{contentStyle:Jf}),o.jsx(Mr,{wrapperStyle:{fontSize:11}}),a.map((s,c)=>o.jsx(Ai,{type:"monotone",dataKey:s.name,stroke:wr[c%wr.length],fill:wr[c%wr.length],fillOpacity:.18,strokeWidth:2},s.name))]})}):o.jsx(Hf,{width:"100%",height:n,children:o.jsxs(uhe,{data:i,children:[o.jsx(Sd,{strokeDasharray:"3 3",stroke:"#26304a"}),o.jsx(di,{dataKey:"name",tick:Vl}),o.jsx(hi,{tick:Vl}),o.jsx(Sn,{contentStyle:Jf,cursor:{fill:"#26304a55"}}),o.jsx(Mr,{wrapperStyle:{fontSize:11}}),a.map((s,c)=>o.jsx(Rl,{dataKey:s.name,fill:wr[c%wr.length],radius:[3,3,0,0]},s.name))]})})}function Ln({title:e,subtitle:t,actions:n}){return o.jsxs("div",{className:"flex items-center justify-between mb-6",children:[o.jsxs("div",{children:[o.jsx("h1",{className:"text-xl font-bold",children:e}),t&&o.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:t})]}),n&&o.jsx("div",{className:"flex items-center gap-2",children:n})]})}function Q({label:e,children:t,hint:n}){return o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:e}),t,n&&o.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:n})]})}function rt({title:e,onClose:t,children:n,wide:r}){return o.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",onClick:t,children:o.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:[o.jsxs("div",{className:"flex items-center justify-between mb-4",children:[o.jsx("h2",{className:"text-lg font-bold",children:e}),o.jsx("button",{onClick:t,className:"text-slate-400 hover:text-slate-200",children:o.jsx(nC,{size:18})})]}),n]})})}function J({children:e,onClick:t,variant:n="primary",size:r="md",disabled:a,title:i,type:l}){const s="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 o.jsx("button",{type:l||"button",onClick:t,disabled:a,title:i,className:`${s} ${c} ${u}`,children:e})}function rn({msg:e="데이터가 없습니다.",colSpan:t}){return t?o.jsx("tr",{children:o.jsx("td",{colSpan:t,className:"py-6 text-center text-slate-500 text-sm",children:e})}):o.jsx("div",{className:"py-8 text-center text-slate-500 text-sm bg-card border border-edge rounded-xl",children:e})}function xt({title:e,icon:t,children:n,className:r=""}){return o.jsxs("div",{className:`bg-card border border-edge rounded-xl p-4 ${r}`,children:[e&&o.jsxs("h3",{className:"text-sm font-semibold mb-3 flex items-center gap-1.5",children:[t,e]}),n]})}function oa(e,t=[]){if(e==null)return t;if(typeof e=="object")return e;try{return JSON.parse(e)}catch{return t}}function qb(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e,null,2)}catch{return""}}const phe=[{key:"totalContent",label:"전체 콘텐츠",icon:Pp,color:"text-brand"},{key:"publishedContent",label:"게시됨",icon:ez,color:"text-emerald-400"},{key:"draftContent",label:"초안",icon:tz,color:"text-slate-300"},{key:"reviewContent",label:"검토 대기",icon:qT,color:"text-amber-400"},{key:"mediaCount",label:"미디어",icon:$p,color:"text-sky-400"},{key:"pendingUgc",label:"UGC 대기",icon:KT,color:"text-rose-400"},{key:"memberCount",label:"회원",icon:m0,color:"text-violet-400"},{key:"totalViews",label:"총 조회수",icon:tu,color:"text-accent"}];function mhe(){const[e,t]=O.useState({}),[n,r]=O.useState(null),[a,i]=O.useState([]);O.useEffect(()=>{zL().then(c=>t(c||{})).catch(()=>t({})),LL().then(r).catch(()=>r(null)),BL().then(c=>i(Array.isArray(c)?c:(c==null?void 0:c.items)||[])).catch(()=>i([]))},[]);const l=(()=>{if(!n)return null;if(n.labels&&n.series)return n;const c=Object.entries(n).filter(([,u])=>typeof u=="number");return c.length?{labels:c.map(u=>u[0]),series:[{name:"콘텐츠",data:c.map(u=>u[1])}]}:null})(),s=e.totalViews?((e.totalConversions||0)/e.totalViews*100).toFixed(1):"0.0";return o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between mb-6",children:[o.jsxs("div",{children:[o.jsx("h1",{className:"text-xl font-bold",children:"콘텐츠 개요"}),o.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:"게시 현황 · 워크플로우 · 콘텐츠 성과 통합 뷰"})]}),o.jsxs(Mp,{to:"/ai-tools",className:"flex items-center gap-1.5 text-sm text-brand hover:underline",children:[o.jsx(ht,{size:16})," AI 도구 열기 ",o.jsx(U5,{size:14})]})]}),o.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:phe.map(({key:c,label:u,icon:f,color:d})=>o.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4",children:[o.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-400",children:[o.jsx(f,{size:13})," ",u]}),o.jsx("div",{className:`text-2xl font-bold mt-2 ${d}`,children:Number(e[c]??0).toLocaleString()})]},c))}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4 mb-6",children:[o.jsx(xt,{title:"게시 워크플로우 현황",icon:o.jsx(qT,{size:15}),className:"lg:col-span-2",children:o.jsx(Hb,{type:"BAR",data:l||void 0})}),o.jsx(xt,{title:"전환율",icon:o.jsx(lg,{size:15}),children:o.jsxs("div",{className:"flex flex-col items-center justify-center h-[240px]",children:[o.jsxs("div",{className:"text-5xl font-bold text-accent",children:[s,"%"]}),o.jsxs("div",{className:"text-sm text-slate-400 mt-3",children:["전환 ",Number(e.totalConversions??0).toLocaleString()," / 조회 ",Number(e.totalViews??0).toLocaleString()]})]})})]}),o.jsx(xt,{title:"인기 콘텐츠 TOP",icon:o.jsx(tu,{size:15}),children:a.length===0?o.jsx("p",{className:"text-slate-500 text-sm py-2",children:"데이터가 없습니다."}):o.jsxs("table",{className:"w-full text-sm",children:[o.jsx("thead",{className:"text-slate-500 text-xs",children:o.jsxs("tr",{children:[o.jsx("th",{className:"text-left py-2",children:"제목"}),o.jsx("th",{className:"text-left",children:"유형"}),o.jsx("th",{className:"text-right",children:"조회"}),o.jsx("th",{className:"text-right",children:"전환"})]})}),o.jsx("tbody",{children:a.slice(0,8).map((c,u)=>o.jsxs("tr",{className:"border-t border-edge/50",children:[o.jsx("td",{className:"py-2 font-medium",children:c.title||c.contentTitle||`#${c.contentId??c.id}`}),o.jsx("td",{className:"text-slate-400",children:c.contentType||"-"}),o.jsx("td",{className:"text-right text-slate-300",children:Number(c.views??c.totalViews??0).toLocaleString()}),o.jsx("td",{className:"text-right text-slate-300",children:Number(c.conversions??c.totalConversions??0).toLocaleString()})]},c.id??u))})]})})]})}const FA={PUBLISHED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",APPROVED:"bg-sky-500/15 text-sky-400 border-sky-500/30",REVIEW:"bg-amber-500/15 text-amber-400 border-amber-500/30",DRAFT:"bg-slate-500/15 text-slate-400 border-slate-500/30",ARCHIVED:"bg-slate-600/15 text-slate-500 border-slate-600/30",SCHEDULED:"bg-violet-500/15 text-violet-400 border-violet-500/30",PENDING:"bg-amber-500/15 text-amber-400 border-amber-500/30",REJECTED:"bg-rose-500/15 text-rose-400 border-rose-500/30",SPAM:"bg-rose-500/15 text-rose-400 border-rose-500/30",OK:"bg-emerald-500/15 text-emerald-400 border-emerald-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",FAIL:"bg-rose-500/15 text-rose-400 border-rose-500/30",POSITIVE:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",NEUTRAL:"bg-slate-500/15 text-slate-400 border-slate-500/30",NEGATIVE:"bg-rose-500/15 text-rose-400 border-rose-500/30"};function Pn({status:e}){const t=(e||"").toUpperCase(),n=FA[t]||FA.DRAFT;return o.jsx("span",{className:`inline-block px-2 py-0.5 rounded text-xs font-medium border ${n}`,children:e||"-"})}const yhe=["","PAGE","POST","PRODUCT","LANDING"],vhe=["","DRAFT","REVIEW","APPROVED","PUBLISHED","ARCHIVED","SCHEDULED"];function ghe(){const e=To(),[t,n]=O.useState([]),[r,a]=O.useState(""),[i,l]=O.useState(""),[s,c]=O.useState(""),[u,f]=O.useState(!1),d=zn(),h=()=>{f(!0),IL({contentType:r,status:i,keyword:s}).then(y=>n(y||[])).catch(()=>n([])).finally(()=>f(!1))};O.useEffect(()=>{h()},[r,i]);const p=async y=>{window.confirm("이 콘텐츠를 삭제하시겠습니까?")&&(await GL(y),h())};return o.jsxs("div",{children:[o.jsx(Ln,{title:"콘텐츠",subtitle:"페이지 · 포스트 · 헤드리스 블록 콘텐츠",actions:d&&o.jsxs(J,{onClick:()=>e("/contents/new"),children:[o.jsx(Xt,{size:16})," 새 콘텐츠"]})}),o.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[o.jsxs("div",{className:"relative",children:[o.jsx(tf,{size:14,className:"absolute left-2.5 top-2.5 text-slate-500"}),o.jsx("input",{value:s,onChange:y=>c(y.target.value),onKeyDown:y=>y.key==="Enter"&&h(),placeholder:"제목/슬러그 검색",className:"inp pl-8 w-56"})]}),o.jsx("select",{className:"inp w-36",value:r,onChange:y=>a(y.target.value),children:yhe.map(y=>o.jsx("option",{value:y,children:y||"전체 유형"},y))}),o.jsx("select",{className:"inp w-36",value:i,onChange:y=>l(y.target.value),children:vhe.map(y=>o.jsx("option",{value:y,children:y||"전체 상태"},y))}),o.jsx(J,{variant:"ghost",onClick:h,children:"검색"})]}),o.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:o.jsxs("table",{className:"w-full text-sm",children:[o.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:o.jsxs("tr",{children:[o.jsx("th",{className:"text-left py-3 px-4",children:"제목"}),o.jsx("th",{className:"text-left",children:"유형"}),o.jsx("th",{className:"text-left",children:"로케일"}),o.jsx("th",{className:"text-left",children:"상태"}),o.jsx("th",{className:"text-left",children:"버전"}),o.jsx("th",{className:"text-left",children:"수정일"}),o.jsx("th",{className:"text-right px-4",children:"작업"})]})}),o.jsxs("tbody",{children:[t.map(y=>o.jsxs("tr",{className:"border-t border-edge/50 hover:bg-panel/40 cursor-pointer",onClick:()=>e(`/contents/${y.id}`),children:[o.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-2",children:[o.jsx(Pp,{size:15,className:"text-brand"}),o.jsxs("div",{children:[o.jsx("div",{children:y.title}),o.jsxs("div",{className:"text-[11px] text-slate-500 font-mono",children:["/",y.slug]})]})]}),o.jsx("td",{className:"text-slate-400",children:y.contentType}),o.jsx("td",{className:"text-slate-400",children:y.locale}),o.jsx("td",{children:o.jsx(Pn,{status:y.scheduledAt&&y.status!=="PUBLISHED"?"SCHEDULED":y.status})}),o.jsxs("td",{className:"text-slate-500",children:["v",y.version]}),o.jsx("td",{className:"text-slate-500 text-xs",children:y.updatedAt?new Date(y.updatedAt).toLocaleString("ko-KR"):"-"}),o.jsx("td",{className:"px-4",onClick:v=>v.stopPropagation(),children:o.jsxs("div",{className:"flex items-center justify-end gap-3",children:[o.jsx("button",{onClick:()=>e(`/contents/${y.id}`),className:"text-slate-400 hover:text-brand",children:o.jsx(Co,{size:15})}),d&&o.jsx("button",{onClick:()=>p(y.id),className:"text-rose-400 hover:text-rose-300",children:o.jsx(Gt,{size:15})})]})})]},y.id)),t.length===0&&o.jsx(rn,{colSpan:7,msg:u?"불러오는 중…":"콘텐츠가 없습니다."})]})]})})]})}const bhe=[{type:"text",label:"텍스트",icon:_z},{type:"image",label:"이미지",icon:$p},{type:"product",label:"상품",icon:d0},{type:"banner",label:"배너",icon:f0}];function xhe(e){switch(e){case"image":return{type:e,url:"",alt:""};case"product":return{type:e,productId:"",label:""};case"banner":return{type:e,bannerId:"",label:""};default:return{type:"text",text:""}}}const jhe={contentType:"PAGE",slug:"",title:"",summary:"",blocks:[],locale:"ko",tags:"",seoMeta:{title:"",description:"",keywords:""},menuId:null};function GA(){var Y,K,ae;const{id:e}=o4(),t=To(),n=!e||e==="new",[r,a]=O.useState({...jhe}),[i,l]=O.useState("DRAFT"),[s,c]=O.useState(1),[u,f]=O.useState(null),[d,h]=O.useState([]),[p,y]=O.useState(!1),[v,b]=O.useState(!1),[g,j]=O.useState(""),[x,m]=O.useState(""),[S,w]=O.useState(""),A=zn(),_=rC();O.useEffect(()=>{n||UL(Number(e)).then(L=>{L&&(a({contentType:L.contentType,slug:L.slug,title:L.title,summary:L.summary||"",blocks:oa(L.blocks,[]),locale:L.locale,tags:L.tags||"",seoMeta:oa(L.seoMeta,{title:"",description:"",keywords:""}),menuId:L.menuId??null}),l(L.status),c(L.version),f(L.scheduledAt))}).catch(()=>{})},[e]);const E=()=>{HL(Number(e)).then(L=>{h(L||[]),y(!0)}).catch(()=>h([]))},C=(L,Z)=>{const ce=[...r.blocks];ce[L]={...ce[L],...Z},a({...r,blocks:ce})},k=L=>a({...r,blocks:[...r.blocks,xhe(L)]}),M=L=>a({...r,blocks:r.blocks.filter((Z,ce)=>ce!==L)}),I=(L,Z)=>{const ce=L+Z;if(ce<0||ce>=r.blocks.length)return;const de=[...r.blocks];[de[L],de[ce]]=[de[ce],de[L]],a({...r,blocks:de})},D=async()=>{var Z,ce;w("");const L={...r};try{if(n){const de=await qL(L);t(`/contents/${de.id}`,{replace:!0})}else{const de=await FL(Number(e),L);c(de.version),w("저장되었습니다.")}}catch(de){w(((ce=(Z=de==null?void 0:de.response)==null?void 0:Z.data)==null?void 0:ce.message)||"저장에 실패했습니다.")}},$=async L=>{var Z,ce;if(n){w("먼저 저장하세요.");return}try{const de=await qS(Number(e),{action:L});l(de.status),f(de.scheduledAt),w(`상태 전환: ${de.status}`)}catch(de){w(((ce=(Z=de==null?void 0:de.response)==null?void 0:Z.data)==null?void 0:ce.message)||"상태 전환에 실패했습니다 (권한 확인).")}},T=async()=>{var L,Z;if(g)try{const ce=await qS(Number(e),{action:"schedule",scheduledAt:new Date(g).toISOString()});l(ce.status),f(ce.scheduledAt),b(!1),w("예약 게시가 설정되었습니다.")}catch(ce){w(((Z=(L=ce==null?void 0:ce.response)==null?void 0:L.data)==null?void 0:Z.message)||"예약에 실패했습니다.")}},z=async L=>{var Z,ce;if(window.confirm(`v${L} 로 롤백하시겠습니까? (DRAFT 로 복원)`))try{const de=await VL(Number(e),L);a({contentType:de.contentType,slug:de.slug,title:de.title,summary:de.summary||"",blocks:oa(de.blocks,[]),locale:de.locale,tags:de.tags||"",seoMeta:oa(de.seoMeta,{}),menuId:de.menuId??null}),l(de.status),c(de.version),y(!1),w(`v${L} 로 롤백되었습니다.`)}catch(de){w(((ce=(Z=de==null?void 0:de.response)==null?void 0:Z.data)==null?void 0:ce.message)||"롤백에 실패했습니다.")}},B=async()=>{var L;m("draft");try{const Z=await CC(((L=r.contentType)==null?void 0:L.toLowerCase())||"page",r.title||r.slug||"콘텐츠","professional");Z!=null&&Z.draft&&F(Z.draft)}catch{w("AI 초안 생성 실패 (Ollama 폴백)")}finally{m("")}},F=L=>a(Z=>({...Z,blocks:[...Z.blocks,{type:"text",text:L}]})),V=async()=>{m("seo");const L=r.blocks.filter(Z=>Z.type==="text").map(Z=>Z.text).join(`
`);try{const Z=await MC(r.title||"",L);a(ce=>({...ce,seoMeta:{...ce.seoMeta,description:(Z==null?void 0:Z.metaDescription)||ce.seoMeta.description,keywords:((Z==null?void 0:Z.keywords)||[]).join(", ")}})),w(`AI SEO 제안 적용 (점수 ${(Z==null?void 0:Z.score)??"-"})`)}catch{w("AI SEO 제안 실패")}finally{m("")}};return o.jsxs("div",{children:[o.jsx(Ln,{title:n?"새 콘텐츠":"콘텐츠 편집",subtitle:n?"헤드리스 블록 콘텐츠 작성":`v${s}`,actions:o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsxs(J,{variant:"ghost",onClick:()=>t("/contents"),children:[o.jsx(B5,{size:15})," 목록"]}),!n&&o.jsx(Pn,{status:u&&i!=="PUBLISHED"?"SCHEDULED":i}),!n&&o.jsxs(J,{variant:"ghost",onClick:E,children:[o.jsx(lz,{size:15})," 버전"]}),A&&o.jsxs(J,{onClick:D,children:[o.jsx(h0,{size:15})," 저장"]})]})}),S&&o.jsx("div",{className:"mb-4 text-sm rounded-lg px-4 py-2.5 bg-brand/10 border border-brand/30 text-brand",children:S}),!n&&o.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-5 bg-card border border-edge rounded-xl p-3",children:[o.jsx("span",{className:"text-xs text-slate-500 mr-1",children:"워크플로우:"}),o.jsxs(J,{size:"sm",variant:"ghost",onClick:()=>$("submit"),children:[o.jsx(ZT,{size:13})," 검토 요청"]}),o.jsxs(J,{size:"sm",variant:"ghost",disabled:!_,onClick:()=>$("approve"),title:_?"":"Editor+ 필요",children:[o.jsx(IT,{size:13})," 승인"]}),o.jsxs(J,{size:"sm",variant:"ghost",disabled:!_,onClick:()=>$("publish"),title:_?"":"Editor+ 필요",children:[o.jsx(o0,{size:13})," 발행"]}),o.jsxs(J,{size:"sm",variant:"ghost",disabled:!_,onClick:()=>$("reject"),title:_?"":"Editor+ 필요",children:[o.jsx(X5,{size:13})," 반려"]}),o.jsxs(J,{size:"sm",variant:"ghost",disabled:!_,onClick:()=>$("archive"),title:_?"":"Editor+ 필요",children:[o.jsx(L5,{size:13})," 보관"]}),o.jsxs(J,{size:"sm",variant:"ghost",disabled:!_,onClick:()=>{j(""),b(!0)},title:_?"":"Editor+ 필요",children:[o.jsx(F5,{size:13})," 예약 게시"]}),u&&o.jsxs("span",{className:"text-[11px] text-violet-400 ml-1",children:["예약: ",new Date(u).toLocaleString("ko-KR")]})]}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[o.jsxs(xt,{title:"기본 정보",className:"lg:col-span-1 self-start",children:[o.jsxs("div",{className:"space-y-3",children:[o.jsx(Q,{label:"제목",children:o.jsx("input",{className:"inp",value:r.title,onChange:L=>a({...r,title:L.target.value})})}),o.jsx(Q,{label:"슬러그",children:o.jsx("input",{className:"inp",value:r.slug,onChange:L=>a({...r,slug:L.target.value}),placeholder:"url-slug"})}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsx(Q,{label:"유형",children:o.jsx("select",{className:"inp",value:r.contentType,onChange:L=>a({...r,contentType:L.target.value}),children:["PAGE","POST","PRODUCT","LANDING"].map(L=>o.jsx("option",{children:L},L))})}),o.jsx(Q,{label:"로케일",children:o.jsx("select",{className:"inp",value:r.locale,onChange:L=>a({...r,locale:L.target.value}),children:["ko","en","ja","zh"].map(L=>o.jsx("option",{children:L},L))})})]}),o.jsx(Q,{label:"요약",children:o.jsx("textarea",{className:"inp",value:r.summary,onChange:L=>a({...r,summary:L.target.value})})}),o.jsx(Q,{label:"태그 (쉼표 구분)",children:o.jsx("input",{className:"inp",value:r.tags,onChange:L=>a({...r,tags:L.target.value})})})]}),o.jsxs("div",{className:"mt-5 pt-4 border-t border-edge",children:[o.jsxs("div",{className:"flex items-center justify-between mb-2",children:[o.jsxs("span",{className:"text-xs font-semibold text-slate-300 flex items-center gap-1",children:[o.jsx(ht,{size:13,className:"text-accent"})," SEO 메타"]}),o.jsxs(J,{size:"sm",variant:"ghost",disabled:!!x,onClick:V,children:[o.jsx(ht,{size:12})," ",x==="seo"?"생성 중…":"AI 제안"]})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx("input",{className:"inp",placeholder:"SEO 제목",value:((Y=r.seoMeta)==null?void 0:Y.title)||"",onChange:L=>a({...r,seoMeta:{...r.seoMeta,title:L.target.value}})}),o.jsx("textarea",{className:"inp",placeholder:"메타 설명",value:((K=r.seoMeta)==null?void 0:K.description)||"",onChange:L=>a({...r,seoMeta:{...r.seoMeta,description:L.target.value}})}),o.jsx("input",{className:"inp",placeholder:"키워드",value:((ae=r.seoMeta)==null?void 0:ae.keywords)||"",onChange:L=>a({...r,seoMeta:{...r.seoMeta,keywords:L.target.value}})})]})]})]}),o.jsx("div",{className:"lg:col-span-2",children:o.jsxs(xt,{title:"블록 에디터",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-4 flex-wrap",children:[bhe.map(({type:L,label:Z,icon:ce})=>o.jsxs(J,{size:"sm",variant:"ghost",onClick:()=>k(L),children:[o.jsx(ce,{size:13})," ",Z]},L)),o.jsxs(J,{size:"sm",variant:"ghost",disabled:!!x,onClick:B,children:[o.jsx(ht,{size:13})," ",x==="draft"?"AI 초안…":"AI 초안 블록"]})]}),r.blocks.length===0&&o.jsx("div",{className:"text-center text-slate-500 text-sm py-10 border border-dashed border-edge rounded-lg",children:"블록을 추가하세요. (텍스트 / 이미지 / 상품 / 배너)"}),o.jsx("div",{className:"space-y-3",children:r.blocks.map((L,Z)=>o.jsxs("div",{className:"bg-panel border border-edge rounded-lg p-3",children:[o.jsxs("div",{className:"flex items-center justify-between mb-2",children:[o.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-semibold text-brand",children:[o.jsx(FT,{size:13,className:"text-slate-500"})," ",L.type.toUpperCase()," ",o.jsxs("span",{className:"text-slate-500",children:["#",Z+1]})]}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("button",{onClick:()=>I(Z,-1),className:"text-slate-500 hover:text-brand text-xs",children:"▲"}),o.jsx("button",{onClick:()=>I(Z,1),className:"text-slate-500 hover:text-brand text-xs",children:"▼"}),o.jsx("button",{onClick:()=>M(Z),className:"text-rose-400 hover:text-rose-300",children:o.jsx(Gt,{size:14})})]})]}),o.jsx(She,{block:L,onChange:ce=>C(Z,ce)})]},Z))}),o.jsxs("details",{className:"mt-4",children:[o.jsx("summary",{className:"text-[11px] text-slate-500 cursor-pointer",children:"블록 JSON 보기"}),o.jsx("pre",{className:"mt-2 text-[11px] text-slate-400 bg-ink border border-edge rounded p-3 overflow-auto max-h-48",children:JSON.stringify(r.blocks,null,2)})]})]})})]}),p&&o.jsx(rt,{title:"버전 히스토리",onClose:()=>y(!1),children:d.length===0?o.jsx("p",{className:"text-slate-500 text-sm",children:"버전 기록이 없습니다."}):o.jsx("ul",{className:"divide-y divide-edge/50",children:d.map(L=>o.jsxs("li",{className:"flex items-center justify-between py-2.5 text-sm",children:[o.jsxs("div",{children:[o.jsxs("span",{className:"font-medium",children:["v",L.version]}),o.jsx("span",{className:"text-slate-400 ml-2",children:L.title}),o.jsxs("div",{className:"text-[11px] text-slate-500",children:[L.createdAt?new Date(L.createdAt).toLocaleString("ko-KR"):""," · ",L.createdBy||""]})]}),o.jsxs(J,{size:"sm",variant:"ghost",onClick:()=>z(L.version),children:[o.jsx(bz,{size:13})," 롤백"]})]},L.id??L.version))})}),v&&o.jsxs(rt,{title:"예약 게시",onClose:()=>b(!1),children:[o.jsx(Q,{label:"게시 일시",hint:"도래 시 스케줄러가 자동 PUBLISHED 처리합니다.",children:o.jsx("input",{className:"inp",type:"datetime-local",value:g,onChange:L=>j(L.target.value)})}),o.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[o.jsx(J,{variant:"ghost",onClick:()=>b(!1),children:"취소"}),o.jsx(J,{onClick:T,children:"예약"})]})]})]})}function She({block:e,onChange:t}){return e.type==="text"?o.jsx("textarea",{className:"inp",value:e.text||"",onChange:n=>t({text:n.target.value}),placeholder:"텍스트 내용"}):e.type==="image"?o.jsxs("div",{className:"space-y-2",children:[o.jsx("input",{className:"inp",value:e.url||"",onChange:n=>t({url:n.target.value}),placeholder:"이미지 URL"}),o.jsx("input",{className:"inp",value:e.alt||"",onChange:n=>t({alt:n.target.value}),placeholder:"대체 텍스트"})]}):e.type==="product"?o.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[o.jsx("input",{className:"inp",value:e.productId||"",onChange:n=>t({productId:n.target.value}),placeholder:"상품 ID"}),o.jsx("input",{className:"inp",value:e.label||"",onChange:n=>t({label:n.target.value}),placeholder:"라벨"})]}):e.type==="banner"?o.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[o.jsx("input",{className:"inp",value:e.bannerId||"",onChange:n=>t({bannerId:n.target.value}),placeholder:"배너 ID"}),o.jsx("input",{className:"inp",value:e.label||"",onChange:n=>t({label:n.target.value}),placeholder:"라벨"})]}):null}const whe=["","IMAGE","VIDEO","FILE"],Ohe={fileName:"",mediaType:"IMAGE",url:"",folder:"",mimeType:"image/png",sizeBytes:0,altText:"",tags:""};function Ahe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(""),[l,s]=O.useState(""),[c,u]=O.useState(null),[f,d]=O.useState(null),[h,p]=O.useState(null),y=zn(),v=()=>i8({folder:n,mediaType:a,keyword:l}).then(m=>t(m||[])).catch(()=>t([]));O.useEffect(()=>{v()},[a]);const b=async()=>{await l8(c),u(null),v()},g=async m=>{window.confirm("삭제하시겠습니까?")&&(await c8(m),v())},j=async m=>{p(m);try{await s8(m),v()}finally{p(null)}},x=async()=>{await o8(f.id,{altText:f.altText,tags:f.tags}),d(null),v()};return o.jsxs("div",{children:[o.jsx(Ln,{title:"미디어 라이브러리",subtitle:"이미지 · 동영상 · 파일 · AI 대체텍스트",actions:y&&o.jsxs(J,{onClick:()=>u({...Ohe}),children:[o.jsx(Xt,{size:16})," 미디어 등록"]})}),o.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[o.jsxs("div",{className:"relative",children:[o.jsx(az,{size:14,className:"absolute left-2.5 top-2.5 text-slate-500"}),o.jsx("input",{value:n,onChange:m=>r(m.target.value),onKeyDown:m=>m.key==="Enter"&&v(),placeholder:"폴더",className:"inp pl-8 w-40"})]}),o.jsx("select",{className:"inp w-32",value:a,onChange:m=>i(m.target.value),children:whe.map(m=>o.jsx("option",{value:m,children:m||"전체"},m))}),o.jsx("input",{value:l,onChange:m=>s(m.target.value),onKeyDown:m=>m.key==="Enter"&&v(),placeholder:"검색",className:"inp w-44"}),o.jsx(J,{variant:"ghost",onClick:v,children:"검색"})]}),e.length===0?o.jsx(rn,{msg:"미디어가 없습니다."}):o.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4",children:e.map(m=>o.jsxs("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:[o.jsx("div",{className:"aspect-video bg-ink flex items-center justify-center overflow-hidden",children:m.mediaType==="IMAGE"&&m.url?o.jsx("img",{src:m.url,alt:m.altText||m.fileName,className:"object-cover w-full h-full",onError:S=>{S.target.style.display="none"}}):m.mediaType==="VIDEO"?o.jsx(rz,{size:28,className:"text-slate-600"}):o.jsx($p,{size:28,className:"text-slate-600"})}),o.jsxs("div",{className:"p-3",children:[o.jsx("div",{className:"text-xs font-medium truncate",title:m.fileName,children:m.fileName}),o.jsx("div",{className:"text-[11px] text-slate-500 truncate",children:m.altText||"대체텍스트 없음"}),m.tags&&o.jsxs("div",{className:"text-[10px] text-brand truncate mt-1",children:["# ",m.tags]}),y&&o.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[o.jsx("button",{onClick:()=>j(m.id),disabled:h===m.id,title:"AI 대체텍스트",className:"text-accent hover:text-accent/80",children:o.jsx(ht,{size:14})}),o.jsx("button",{onClick:()=>d({id:m.id,altText:m.altText||"",tags:m.tags||""}),title:"메타 편집",className:"text-slate-400 hover:text-brand",children:o.jsx(wz,{size:14})}),o.jsx("button",{onClick:()=>g(m.id),className:"text-rose-400 hover:text-rose-300 ml-auto",children:o.jsx(Gt,{size:14})})]})]})]},m.id))}),c&&o.jsxs(rt,{title:"미디어 등록",onClose:()=>u(null),children:[o.jsxs("div",{className:"space-y-3",children:[o.jsx(Q,{label:"파일명",children:o.jsx("input",{className:"inp",value:c.fileName,onChange:m=>u({...c,fileName:m.target.value})})}),o.jsx(Q,{label:"URL",children:o.jsx("input",{className:"inp",value:c.url,onChange:m=>u({...c,url:m.target.value}),placeholder:"https://..."})}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsx(Q,{label:"유형",children:o.jsx("select",{className:"inp",value:c.mediaType,onChange:m=>u({...c,mediaType:m.target.value}),children:["IMAGE","VIDEO","FILE"].map(m=>o.jsx("option",{children:m},m))})}),o.jsx(Q,{label:"폴더",children:o.jsx("input",{className:"inp",value:c.folder,onChange:m=>u({...c,folder:m.target.value})})})]}),o.jsx(Q,{label:"대체 텍스트",children:o.jsx("input",{className:"inp",value:c.altText,onChange:m=>u({...c,altText:m.target.value})})}),o.jsx(Q,{label:"태그",children:o.jsx("input",{className:"inp",value:c.tags,onChange:m=>u({...c,tags:m.target.value})})})]}),o.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[o.jsx(J,{variant:"ghost",onClick:()=>u(null),children:"취소"}),o.jsx(J,{onClick:b,children:"저장"})]})]}),f&&o.jsxs(rt,{title:"메타 편집",onClose:()=>d(null),children:[o.jsxs("div",{className:"space-y-3",children:[o.jsx(Q,{label:"대체 텍스트",children:o.jsx("input",{className:"inp",value:f.altText,onChange:m=>d({...f,altText:m.target.value})})}),o.jsx(Q,{label:"태그",children:o.jsx("input",{className:"inp",value:f.tags,onChange:m=>d({...f,tags:m.target.value})})})]}),o.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[o.jsx(J,{variant:"ghost",onClick:()=>d(null),children:"취소"}),o.jsx(J,{onClick:x,children:"저장"})]})]})]})}const Ehe=["","DRAFT","PUBLISHED","ARCHIVED"],_he={mallProductId:"",productName:"",summary:"",detailBlocks:[],specs:"",locale:"ko"};function Nhe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(""),[l,s]=O.useState(null),[c,u]=O.useState(!1),[f,d]=O.useState(""),h=zn(),p=rC(),y=()=>YL({status:n,keyword:a}).then(E=>t(E||[])).catch(()=>t([]));O.useEffect(()=>{y()},[n]);const v=()=>s({..._he,_new:!0}),b=async E=>{const C=await KL(E);s({...C,detailBlocks:oa(C.detailBlocks,[]),_new:!1})},g=async()=>{const{_new:E,id:C,...k}=l;E?await XL(k):await WL(C,k),s(null),y()},j=async E=>{window.confirm("삭제하시겠습니까?")&&(await e8(E),y())},x=async E=>{await QL(E),y()},m=async()=>{u(!0);try{const E=await ZL(l.productName||"상품","marketing");E!=null&&E.draft&&s(C=>({...C,detailBlocks:[...C.detailBlocks,{type:"text",text:E.draft}]}))}catch{}finally{u(!1)}},S=async()=>{if(f)try{const E=await JL(f);s(C=>({...C,productName:C.productName||(E==null?void 0:E.productName)||"",summary:C.summary||(E==null?void 0:E.summary)||"",specs:C.specs||(E==null?void 0:E.specs)||""}))}catch{}},w=()=>s(E=>({...E,detailBlocks:[...E.detailBlocks,{type:"text",text:""}]})),A=(E,C)=>s(k=>{const M=[...k.detailBlocks];return M[E]={...M[E],text:C},{...k,detailBlocks:M}}),_=E=>s(C=>({...C,detailBlocks:C.detailBlocks.filter((k,M)=>M!==E)}));return o.jsxs("div",{children:[o.jsx(Ln,{title:"상품 콘텐츠",subtitle:"상품 상세페이지 빌더 · Mall 연계 · AI 초안 · OCR 추출",actions:h&&o.jsxs(J,{onClick:v,children:[o.jsx(Xt,{size:16})," 상품 콘텐츠"]})}),o.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[o.jsx("select",{className:"inp w-36",value:n,onChange:E=>r(E.target.value),children:Ehe.map(E=>o.jsx("option",{value:E,children:E||"전체 상태"},E))}),o.jsx("input",{value:a,onChange:E=>i(E.target.value),onKeyDown:E=>E.key==="Enter"&&y(),placeholder:"상품명 검색",className:"inp w-52"}),o.jsx(J,{variant:"ghost",onClick:y,children:"검색"})]}),o.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:o.jsxs("table",{className:"w-full text-sm",children:[o.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:o.jsxs("tr",{children:[o.jsx("th",{className:"text-left py-3 px-4",children:"상품명"}),o.jsx("th",{className:"text-left",children:"Mall ID"}),o.jsx("th",{className:"text-left",children:"로케일"}),o.jsx("th",{className:"text-left",children:"상태"}),o.jsx("th",{className:"text-right px-4",children:"작업"})]})}),o.jsxs("tbody",{children:[e.map(E=>o.jsxs("tr",{className:"border-t border-edge/50",children:[o.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-2",children:[o.jsx(d0,{size:15,className:"text-brand"}),E.productName]}),o.jsx("td",{className:"text-slate-400 font-mono text-xs",children:E.mallProductId||"-"}),o.jsx("td",{className:"text-slate-400",children:E.locale}),o.jsx("td",{children:o.jsx(Pn,{status:E.status})}),o.jsx("td",{className:"px-4",children:o.jsxs("div",{className:"flex items-center justify-end gap-3",children:[o.jsx("button",{onClick:()=>b(E.id),className:"text-slate-400 hover:text-brand text-xs",children:"편집"}),p&&E.status!=="PUBLISHED"&&o.jsx("button",{onClick:()=>x(E.id),title:"발행",className:"text-emerald-400 hover:text-emerald-300",children:o.jsx(o0,{size:15})}),h&&o.jsx("button",{onClick:()=>j(E.id),className:"text-rose-400 hover:text-rose-300",children:o.jsx(Gt,{size:15})})]})})]},E.id)),e.length===0&&o.jsx(rn,{colSpan:5,msg:"상품 콘텐츠가 없습니다."})]})]})}),l&&o.jsxs(rt,{title:l._new?"상품 콘텐츠 작성":"상품 콘텐츠 편집",onClose:()=>s(null),wide:!0,children:[o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[o.jsxs("div",{className:"space-y-3",children:[o.jsx(Q,{label:"상품명",children:o.jsx("input",{className:"inp",value:l.productName,onChange:E=>s({...l,productName:E.target.value})})}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsx(Q,{label:"Mall 상품 ID",children:o.jsx("input",{className:"inp",value:l.mallProductId||"",onChange:E=>s({...l,mallProductId:E.target.value})})}),o.jsx(Q,{label:"로케일",children:o.jsx("select",{className:"inp",value:l.locale,onChange:E=>s({...l,locale:E.target.value}),children:["ko","en","ja","zh"].map(E=>o.jsx("option",{children:E},E))})})]}),o.jsx(Q,{label:"요약",children:o.jsx("textarea",{className:"inp",value:l.summary||"",onChange:E=>s({...l,summary:E.target.value})})}),o.jsx(Q,{label:"사양 (specs)",children:o.jsx("textarea",{className:"inp",value:l.specs||"",onChange:E=>s({...l,specs:E.target.value})})}),o.jsx(Q,{label:"OCR 문서로 채우기",children:o.jsxs("div",{className:"flex gap-2",children:[o.jsx("input",{className:"inp",placeholder:"documentId",value:f,onChange:E=>d(E.target.value)}),o.jsxs(J,{variant:"ghost",onClick:S,children:[o.jsx(xz,{size:13})," 추출"]})]})})]}),o.jsxs(xt,{title:"상세페이지 빌더",children:[o.jsxs("div",{className:"flex gap-2 mb-3",children:[o.jsxs(J,{size:"sm",variant:"ghost",onClick:w,children:[o.jsx(Xt,{size:13})," 텍스트 블록"]}),o.jsxs(J,{size:"sm",variant:"ghost",disabled:c,onClick:m,children:[o.jsx(ht,{size:13})," ",c?"AI…":"AI 초안"]})]}),l.detailBlocks.length===0&&o.jsx("div",{className:"text-center text-slate-500 text-xs py-6 border border-dashed border-edge rounded",children:"블록을 추가하세요."}),o.jsx("div",{className:"space-y-2 max-h-72 overflow-auto",children:l.detailBlocks.map((E,C)=>o.jsxs("div",{className:"bg-panel border border-edge rounded p-2",children:[o.jsxs("div",{className:"flex items-center justify-between mb-1",children:[o.jsxs("span",{className:"text-[11px] text-brand flex items-center gap-1",children:[o.jsx(FT,{size:11,className:"text-slate-500"})," #",C+1]}),o.jsx("button",{onClick:()=>_(C),className:"text-rose-400 hover:text-rose-300",children:o.jsx(Gt,{size:12})})]}),o.jsx("textarea",{className:"inp text-xs",value:E.text||"",onChange:k=>A(C,k.target.value)})]},C))})]})]}),o.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[o.jsx(J,{variant:"ghost",onClick:()=>s(null),children:"취소"}),o.jsx(J,{onClick:g,children:"저장"})]})]})]})}const VA=["HERO","PROMOTION","POPUP","CAMPAIGN","EXHIBITION"],The={name:"",bannerType:"HERO",imageUrl:"",linkUrl:"",position:"main_top",targetRule:"",sortOrder:0,active:!0,startAt:"",endAt:""};function Che(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(""),[l,s]=O.useState(null),c=zn(),u=()=>t8({bannerType:n,position:a}).then(y=>t(y||[])).catch(()=>t([]));O.useEffect(()=>{u()},[n]);const f=()=>s({...The}),d=y=>s({...y,targetRule:qb(y.targetRule),startAt:YA(y.startAt),endAt:YA(y.endAt)}),h=async()=>{const y={...l,targetRule:l.targetRule?oa(l.targetRule,{}):null};l.id?await r8(l.id,y):await n8(y),s(null),u()},p=async y=>{window.confirm("삭제하시겠습니까?")&&(await a8(y),u())};return o.jsxs("div",{children:[o.jsx(Ln,{title:"배너 / 프로모션",subtitle:"히어로 · 프로모션 · 팝업 · 기획전 · 노출 스케줄",actions:c&&o.jsxs(J,{onClick:f,children:[o.jsx(Xt,{size:16})," 배너 추가"]})}),o.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[o.jsxs("select",{className:"inp w-40",value:n,onChange:y=>r(y.target.value),children:[o.jsx("option",{value:"",children:"전체 유형"}),VA.map(y=>o.jsx("option",{children:y},y))]}),o.jsx("input",{className:"inp w-40",placeholder:"position",value:a,onChange:y=>i(y.target.value),onKeyDown:y=>y.key==="Enter"&&u()}),o.jsx(J,{variant:"ghost",onClick:u,children:"검색"})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[e.map(y=>o.jsxs("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:[o.jsx("div",{className:"aspect-[16/6] bg-ink flex items-center justify-center overflow-hidden",children:y.imageUrl?o.jsx("img",{src:y.imageUrl,alt:y.name,className:"object-cover w-full h-full",onError:v=>{v.target.style.display="none"}}):o.jsx(f0,{size:26,className:"text-slate-600"})}),o.jsxs("div",{className:"p-3",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"font-medium text-sm",children:y.name}),o.jsx(Pn,{status:y.active?"ACTIVE":"INACTIVE"})]}),o.jsxs("div",{className:"text-[11px] text-slate-500 mt-1",children:[y.bannerType," · ",y.position," · 순서 ",y.sortOrder]}),c&&o.jsxs("div",{className:"flex items-center gap-3 mt-2",children:[o.jsx("button",{onClick:()=>d(y),className:"text-slate-400 hover:text-brand",children:o.jsx(Co,{size:14})}),o.jsx("button",{onClick:()=>p(y.id),className:"text-rose-400 hover:text-rose-300",children:o.jsx(Gt,{size:14})})]})]})]},y.id)),e.length===0&&o.jsx("div",{className:"col-span-3",children:o.jsx(rn,{msg:"배너가 없습니다."})})]}),l&&o.jsxs(rt,{title:l.id?"배너 편집":"배너 추가",onClose:()=>s(null),children:[o.jsxs("div",{className:"space-y-3",children:[o.jsx(Q,{label:"이름",children:o.jsx("input",{className:"inp",value:l.name,onChange:y=>s({...l,name:y.target.value})})}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsx(Q,{label:"유형",children:o.jsx("select",{className:"inp",value:l.bannerType,onChange:y=>s({...l,bannerType:y.target.value}),children:VA.map(y=>o.jsx("option",{children:y},y))})}),o.jsx(Q,{label:"position",children:o.jsx("input",{className:"inp",value:l.position,onChange:y=>s({...l,position:y.target.value})})})]}),o.jsx(Q,{label:"이미지 URL",children:o.jsx("input",{className:"inp",value:l.imageUrl,onChange:y=>s({...l,imageUrl:y.target.value})})}),o.jsx(Q,{label:"링크 URL",children:o.jsx("input",{className:"inp",value:l.linkUrl,onChange:y=>s({...l,linkUrl:y.target.value})})}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsx(Q,{label:"시작",children:o.jsx("input",{className:"inp",type:"datetime-local",value:l.startAt,onChange:y=>s({...l,startAt:y.target.value})})}),o.jsx(Q,{label:"종료",children:o.jsx("input",{className:"inp",type:"datetime-local",value:l.endAt,onChange:y=>s({...l,endAt:y.target.value})})})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsx(Q,{label:"정렬 순서",children:o.jsx("input",{className:"inp",type:"number",value:l.sortOrder,onChange:y=>s({...l,sortOrder:Number(y.target.value)})})}),o.jsx(Q,{label:"활성",children:o.jsxs("select",{className:"inp",value:String(l.active),onChange:y=>s({...l,active:y.target.value==="true"}),children:[o.jsx("option",{value:"true",children:"활성"}),o.jsx("option",{value:"false",children:"비활성"})]})})]}),o.jsx(Q,{label:"타겟 규칙 (JSON)",hint:'예: {"segment":"VIP"}',children:o.jsx("textarea",{className:"inp",value:l.targetRule,onChange:y=>s({...l,targetRule:y.target.value})})})]}),o.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[o.jsx(J,{variant:"ghost",onClick:()=>s(null),children:"취소"}),o.jsx(J,{onClick:h,children:"저장"})]})]})]})}function YA(e){if(!e)return"";try{const t=new Date(e);return new Date(t.getTime()-t.getTimezoneOffset()*6e4).toISOString().slice(0,16)}catch{return""}}const Mhe=["MAIN","FOOTER","CATEGORY","SIDEBAR"],KA={parentId:null,name:"",menuType:"MAIN",url:"",slug:"",sortOrder:0,active:!0};function khe(){const[e,t]=O.useState("MAIN"),[n,r]=O.useState([]),[a,i]=O.useState([]),[l,s]=O.useState(null),[c,u]=O.useState(""),f=zn(),d=()=>{f8(e).then(v=>r(v||[])).catch(()=>r([])),u8(e).then(v=>i(v||[])).catch(()=>i([]))};O.useEffect(()=>{d()},[e]);const h=async()=>{const v={...l,menuType:e};l.id?await h8(l.id,v):await d8(v),s(null),d()},p=async v=>{var b;if(window.confirm("삭제하시겠습니까? (하위 메뉴가 있으면 거부됩니다)"))try{await p8(v),d()}catch(g){window.alert(((b=g==null?void 0:g.response)==null?void 0:b.status)===409?"하위 메뉴가 있어 삭제할 수 없습니다.":"삭제 실패")}},y=async()=>{const v=await m8("https://example.com");u((v==null?void 0:v.xml)||"")};return o.jsxs("div",{children:[o.jsx(Ln,{title:"메뉴 / 카테고리",subtitle:"내비게이션 · 카테고리 트리 · 사이트맵",actions:o.jsxs("div",{className:"flex gap-2",children:[o.jsxs(J,{variant:"ghost",onClick:y,children:[o.jsx(UT,{size:15})," 사이트맵"]}),f&&o.jsxs(J,{onClick:()=>s({...KA}),children:[o.jsx(Xt,{size:16})," 메뉴 추가"]})]})}),o.jsx("div",{className:"flex items-center gap-2 mb-4",children:o.jsx("select",{className:"inp w-44",value:e,onChange:v=>t(v.target.value),children:Mhe.map(v=>o.jsx("option",{children:v},v))})}),o.jsx("div",{className:"bg-card border border-edge rounded-xl p-4",children:n.length===0?o.jsx("p",{className:"text-slate-500 text-sm py-4 text-center",children:"메뉴가 없습니다."}):n.map(v=>o.jsx(S$,{node:v,depth:0,onEdit:b=>s({...b}),onAddChild:b=>s({...KA,parentId:b}),onDel:p,writable:f},v.id))}),l&&o.jsxs(rt,{title:l.id?"메뉴 편집":"메뉴 추가",onClose:()=>s(null),children:[o.jsxs("div",{className:"space-y-3",children:[o.jsx(Q,{label:"이름",children:o.jsx("input",{className:"inp",value:l.name,onChange:v=>s({...l,name:v.target.value})})}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsx(Q,{label:"URL",children:o.jsx("input",{className:"inp",value:l.url||"",onChange:v=>s({...l,url:v.target.value})})}),o.jsx(Q,{label:"슬러그",children:o.jsx("input",{className:"inp",value:l.slug||"",onChange:v=>s({...l,slug:v.target.value})})})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsx(Q,{label:"상위 메뉴",children:o.jsxs("select",{className:"inp",value:l.parentId??"",onChange:v=>s({...l,parentId:v.target.value?Number(v.target.value):null}),children:[o.jsx("option",{value:"",children:"(최상위)"}),a.filter(v=>v.id!==l.id).map(v=>o.jsx("option",{value:v.id,children:v.name},v.id))]})}),o.jsx(Q,{label:"정렬 순서",children:o.jsx("input",{className:"inp",type:"number",value:l.sortOrder,onChange:v=>s({...l,sortOrder:Number(v.target.value)})})})]}),o.jsx(Q,{label:"활성",children:o.jsxs("select",{className:"inp",value:String(l.active),onChange:v=>s({...l,active:v.target.value==="true"}),children:[o.jsx("option",{value:"true",children:"활성"}),o.jsx("option",{value:"false",children:"비활성"})]})})]}),o.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[o.jsx(J,{variant:"ghost",onClick:()=>s(null),children:"취소"}),o.jsx(J,{onClick:h,children:"저장"})]})]}),c&&o.jsx(rt,{title:"sitemap.xml",onClose:()=>u(""),wide:!0,children:o.jsx("pre",{className:"text-[11px] text-slate-400 bg-ink border border-edge rounded p-3 overflow-auto max-h-[60vh]",children:c})})]})}function S$({node:e,depth:t,onEdit:n,onAddChild:r,onDel:a,writable:i}){const[l,s]=O.useState(!0),c=e.children||[];return o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center gap-2 py-1.5 hover:bg-panel/40 rounded px-2",style:{marginLeft:t*18},children:[c.length>0?o.jsx("button",{onClick:()=>s(!l),className:"text-slate-500",children:l?o.jsx(V5,{size:14}):o.jsx(Y5,{size:14})}):o.jsx("span",{className:"w-3.5 inline-block"}),o.jsx(YT,{size:14,className:"text-brand"}),o.jsx("span",{className:"text-sm font-medium",children:e.name}),e.url&&o.jsx("span",{className:"text-[11px] text-slate-500 font-mono",children:e.url}),!e.active&&o.jsx("span",{className:"text-[10px] text-slate-500",children:"(비활성)"}),i&&o.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[o.jsx("button",{onClick:()=>r(e.id),className:"text-slate-500 hover:text-brand",children:o.jsx(Xt,{size:13})}),o.jsx("button",{onClick:()=>n(e),className:"text-slate-400 hover:text-brand text-xs",children:"편집"}),o.jsx("button",{onClick:()=>a(e.id),className:"text-rose-400 hover:text-rose-300",children:o.jsx(Gt,{size:13})})]})]}),l&&c.map(u=>o.jsx(S$,{node:u,depth:t+1,onEdit:n,onAddChild:r,onDel:a,writable:i},u.id))]})}const Phe={name:"",layout:`{
  "slots": ["header", "main", "footer"]
}`,tokens:`{
  "brand": "#00a0c8"
}`,active:!1};function $he(){const[e,t]=O.useState([]),[n,r]=O.useState(null),a=zn(),i=()=>y8().then(d=>t(d||[])).catch(()=>t([]));O.useEffect(()=>{i()},[]);const l=()=>r({...Phe}),s=d=>r({...d,layout:qb(d.layout),tokens:qb(d.tokens)}),c=async()=>{const d={...n,layout:oa(n.layout,{}),tokens:oa(n.tokens,{})};n.id?await g8(n.id,d):await v8(d),r(null),i()},u=async d=>{await b8(d),i()},f=async d=>{window.confirm("삭제하시겠습니까?")&&(await x8(d),i())};return o.jsxs("div",{children:[o.jsx(Ln,{title:"테마 / 템플릿",subtitle:"레이아웃 슬롯 · 디자인 토큰 · 단일 활성",actions:a&&o.jsxs(J,{onClick:l,children:[o.jsx(Xt,{size:16})," 테마 추가"]})}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[e.map(d=>{const h=oa(d.tokens,{});return o.jsxs("div",{className:`bg-card border rounded-xl p-4 ${d.active?"border-brand":"border-edge"}`,children:[o.jsxs("div",{className:"flex items-center justify-between mb-2",children:[o.jsxs("span",{className:"font-medium flex items-center gap-1.5",children:[o.jsx(XT,{size:15,className:"text-brand"})," ",d.name]}),o.jsx(Pn,{status:d.active?"ACTIVE":"INACTIVE"})]}),o.jsx("div",{className:"flex gap-1.5 mb-3",children:Object.values(h).slice(0,6).map((p,y)=>typeof p=="string"&&p.startsWith("#")&&o.jsx("span",{className:"w-6 h-6 rounded border border-edge",style:{background:p},title:p},y))}),a&&o.jsxs("div",{className:"flex items-center gap-3",children:[!d.active&&o.jsx("button",{onClick:()=>u(d.id),title:"활성화",className:"text-emerald-400 hover:text-emerald-300",children:o.jsx(s0,{size:15})}),o.jsx("button",{onClick:()=>s(d),className:"text-slate-400 hover:text-brand",children:o.jsx(Co,{size:14})}),o.jsx("button",{onClick:()=>f(d.id),className:"text-rose-400 hover:text-rose-300",children:o.jsx(Gt,{size:14})})]})]},d.id)}),e.length===0&&o.jsx("div",{className:"col-span-3",children:o.jsx(rn,{msg:"테마가 없습니다."})})]}),n&&o.jsxs(rt,{title:n.id?"테마 편집":"테마 추가",onClose:()=>r(null),wide:!0,children:[o.jsxs("div",{className:"space-y-3",children:[o.jsx(Q,{label:"이름",children:o.jsx("input",{className:"inp",value:n.name,onChange:d=>r({...n,name:d.target.value})})}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsx(Q,{label:"레이아웃 (JSON)",children:o.jsx("textarea",{className:"inp font-mono text-xs",style:{minHeight:140},value:n.layout,onChange:d=>r({...n,layout:d.target.value})})}),o.jsx(Q,{label:"토큰 (JSON)",children:o.jsx("textarea",{className:"inp font-mono text-xs",style:{minHeight:140},value:n.tokens,onChange:d=>r({...n,tokens:d.target.value})})})]})]}),o.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[o.jsx(J,{variant:"ghost",onClick:()=>r(null),children:"취소"}),o.jsx(J,{onClick:c,children:"저장"})]})]})]})}function Rhe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState([]),[l,s]=O.useState(null),[c,u]=O.useState(null),[f,d]=O.useState(null),[h,p]=O.useState(""),y=zn();O.useEffect(()=>{j8().then(m=>{t(m||[]),m!=null&&m[0]&&r(m[0])}).catch(()=>t([]))},[]);const v=()=>S8(n).then(m=>i(m||[])).catch(()=>i([]));O.useEffect(()=>{n&&v()},[n]);const b=async()=>{await w8({locale:l.locale,resourceKey:l.resourceKey,value:l.value}),s(null),v()},g=async m=>{window.confirm("삭제하시겠습니까?")&&(await O8(m),v())},j=async()=>{if(!c)return;const m=await A8(c.text,c.target);u({...c,result:(m==null?void 0:m.translated)||""})},x=async()=>{if(!f)return;const m=await E8(f.source,f.target);p(`일괄 번역 완료: ${(m==null?void 0:m.translated)??0}건 → ${(m==null?void 0:m.targetLocale)||f.target}`),d(null),v()};return o.jsxs("div",{children:[o.jsx(Ln,{title:"다국어 (i18n)",subtitle:"로케일 · 번역 리소스 · AI 번역",actions:o.jsxs("div",{className:"flex gap-2",children:[o.jsxs(J,{variant:"ghost",onClick:()=>u({text:"",target:"en",result:""}),children:[o.jsx(ht,{size:15})," AI 번역"]}),o.jsxs(J,{variant:"ghost",onClick:()=>d({source:"ko",target:"en"}),children:[o.jsx(sg,{size:15})," 일괄 번역"]}),y&&o.jsxs(J,{onClick:()=>s({locale:n||"ko",resourceKey:"",value:""}),children:[o.jsx(Xt,{size:16})," 리소스 추가"]})]})}),h&&o.jsx("div",{className:"mb-4 text-sm rounded-lg px-4 py-2.5 bg-brand/10 border border-brand/30 text-brand",children:h}),o.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[o.jsx(u0,{size:16,className:"text-slate-400"}),o.jsxs("select",{className:"inp w-40",value:n,onChange:m=>r(m.target.value),children:[e.length===0&&o.jsx("option",{value:"",children:"로케일 없음"}),e.map(m=>o.jsx("option",{value:m,children:m},m))]})]}),o.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:o.jsxs("table",{className:"w-full text-sm",children:[o.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:o.jsxs("tr",{children:[o.jsx("th",{className:"text-left py-3 px-4",children:"키"}),o.jsx("th",{className:"text-left",children:"값"}),o.jsx("th",{className:"text-right px-4",children:"작업"})]})}),o.jsxs("tbody",{children:[a.map(m=>o.jsxs("tr",{className:"border-t border-edge/50",children:[o.jsx("td",{className:"py-3 px-4 font-mono text-xs text-brand",children:m.resourceKey}),o.jsx("td",{className:"text-slate-300",children:m.value}),o.jsx("td",{className:"px-4 text-right",children:y&&o.jsx("button",{onClick:()=>g(m.id),className:"text-rose-400 hover:text-rose-300",children:o.jsx(Gt,{size:15})})})]},m.id)),a.length===0&&o.jsx(rn,{colSpan:3,msg:"번역 리소스가 없습니다."})]})]})}),l&&o.jsxs(rt,{title:"리소스 추가",onClose:()=>s(null),children:[o.jsxs("div",{className:"space-y-3",children:[o.jsx(Q,{label:"로케일",children:o.jsx("input",{className:"inp",value:l.locale,onChange:m=>s({...l,locale:m.target.value})})}),o.jsx(Q,{label:"키",children:o.jsx("input",{className:"inp",value:l.resourceKey,onChange:m=>s({...l,resourceKey:m.target.value}),placeholder:"home.title"})}),o.jsx(Q,{label:"값",children:o.jsx("textarea",{className:"inp",value:l.value,onChange:m=>s({...l,value:m.target.value})})})]}),o.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[o.jsx(J,{variant:"ghost",onClick:()=>s(null),children:"취소"}),o.jsx(J,{onClick:b,children:"저장"})]})]}),c&&o.jsx(rt,{title:"AI 번역",onClose:()=>u(null),children:o.jsxs("div",{className:"space-y-3",children:[o.jsx(Q,{label:"원문",children:o.jsx("textarea",{className:"inp",value:c.text,onChange:m=>u({...c,text:m.target.value})})}),o.jsx(Q,{label:"대상 로케일",children:o.jsx("input",{className:"inp",value:c.target,onChange:m=>u({...c,target:m.target.value})})}),o.jsxs(J,{onClick:j,children:[o.jsx(ht,{size:14})," 번역"]}),c.result&&o.jsx(Q,{label:"번역 결과",children:o.jsx("div",{className:"inp min-h-[60px] whitespace-pre-wrap",children:c.result})})]})}),f&&o.jsxs(rt,{title:"일괄 번역",onClose:()=>d(null),children:[o.jsxs("div",{className:"space-y-3",children:[o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsx(Q,{label:"원본 로케일",children:o.jsx("input",{className:"inp",value:f.source,onChange:m=>d({...f,source:m.target.value})})}),o.jsx(Q,{label:"대상 로케일",children:o.jsx("input",{className:"inp",value:f.target,onChange:m=>d({...f,target:m.target.value})})})]}),o.jsx("p",{className:"text-[11px] text-slate-500",children:"원본 로케일의 모든 리소스를 대상 로케일로 AI 번역하여 생성합니다."})]}),o.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[o.jsx(J,{variant:"ghost",onClick:()=>d(null),children:"취소"}),o.jsxs(J,{onClick:x,children:[o.jsx(sg,{size:14})," 일괄 번역 실행"]})]})]})]})}const Dhe={pathKey:"",title:"",description:"",keywords:"",ogTitle:"",ogImage:"",canonical:"",locale:"ko"},zhe={fromPath:"",toPath:"",statusCode:301,active:!0};function Lhe(){const[e,t]=O.useState("meta"),[n,r]=O.useState([]),[a,i]=O.useState([]),[l,s]=O.useState(null),[c,u]=O.useState(null),[f,d]=O.useState(""),[h,p]=O.useState(null),y=zn(),v=()=>{_8().then(w=>r(w||[])).catch(()=>r([])),M8().then(w=>i(w||[])).catch(()=>i([]))};O.useEffect(()=>{v()},[]);const b=async()=>{l.id?await T8(l.id,l):await N8(l),s(null),v()},g=async w=>{window.confirm("삭제하시겠습니까?")&&(await C8(w),v())},j=async()=>{await k8(c),u(null),v()},x=async w=>{window.confirm("삭제하시겠습니까?")&&(await P8(w),v())},m=async()=>{const w=await $8("https://example.com");d((w==null?void 0:w.robots)||"")},S=async()=>{if(!h)return;const w=await R8(h.title,h.body);p({...h,result:w})};return o.jsxs("div",{children:[o.jsx(Ln,{title:"SEO",subtitle:"메타데이터 · OG · 리다이렉트 · robots/sitemap · AI 제안",actions:o.jsxs("div",{className:"flex gap-2",children:[o.jsxs(J,{variant:"ghost",onClick:m,children:[o.jsx(UT,{size:15})," robots.txt"]}),o.jsxs(J,{variant:"ghost",onClick:()=>p({title:"",body:"",result:null}),children:[o.jsx(ht,{size:15})," AI 제안"]})]})}),o.jsxs("div",{className:"flex gap-2 mb-4",children:[o.jsx("button",{onClick:()=>t("meta"),className:`px-3 py-1.5 rounded-lg text-sm ${e==="meta"?"bg-brand text-ink font-semibold":"bg-card border border-edge text-slate-300"}`,children:"메타데이터"}),o.jsx("button",{onClick:()=>t("redirect"),className:`px-3 py-1.5 rounded-lg text-sm ${e==="redirect"?"bg-brand text-ink font-semibold":"bg-card border border-edge text-slate-300"}`,children:"리다이렉트"}),o.jsxs("div",{className:"ml-auto",children:[y&&e==="meta"&&o.jsxs(J,{onClick:()=>s({...Dhe}),children:[o.jsx(Xt,{size:16})," 메타 추가"]}),y&&e==="redirect"&&o.jsxs(J,{onClick:()=>u({...zhe}),children:[o.jsx(Xt,{size:16})," 리다이렉트 추가"]})]})]}),e==="meta"?o.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:o.jsxs("table",{className:"w-full text-sm",children:[o.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:o.jsxs("tr",{children:[o.jsx("th",{className:"text-left py-3 px-4",children:"경로"}),o.jsx("th",{className:"text-left",children:"제목"}),o.jsx("th",{className:"text-left",children:"설명"}),o.jsx("th",{className:"text-left",children:"로케일"}),o.jsx("th",{className:"text-right px-4",children:"작업"})]})}),o.jsxs("tbody",{children:[n.map(w=>o.jsxs("tr",{className:"border-t border-edge/50",children:[o.jsx("td",{className:"py-3 px-4 font-mono text-xs text-brand",children:w.pathKey}),o.jsx("td",{children:w.title}),o.jsx("td",{className:"text-slate-400 text-xs truncate max-w-[280px]",children:w.description}),o.jsx("td",{className:"text-slate-400",children:w.locale}),o.jsx("td",{className:"px-4",children:o.jsxs("div",{className:"flex items-center justify-end gap-3",children:[y&&o.jsx("button",{onClick:()=>s({...w}),className:"text-slate-400 hover:text-brand",children:o.jsx(Co,{size:14})}),y&&o.jsx("button",{onClick:()=>g(w.id),className:"text-rose-400 hover:text-rose-300",children:o.jsx(Gt,{size:14})})]})})]},w.id)),n.length===0&&o.jsx(rn,{colSpan:5,msg:"메타데이터가 없습니다."})]})]})}):o.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:o.jsxs("table",{className:"w-full text-sm",children:[o.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:o.jsxs("tr",{children:[o.jsx("th",{className:"text-left py-3 px-4",children:"From"}),o.jsx("th",{}),o.jsx("th",{className:"text-left",children:"To"}),o.jsx("th",{className:"text-left",children:"코드"}),o.jsx("th",{className:"text-left",children:"활성"}),o.jsx("th",{className:"text-right px-4",children:"작업"})]})}),o.jsxs("tbody",{children:[a.map(w=>o.jsxs("tr",{className:"border-t border-edge/50",children:[o.jsx("td",{className:"py-3 px-4 font-mono text-xs",children:w.fromPath}),o.jsx("td",{children:o.jsx(I5,{size:13,className:"text-slate-500"})}),o.jsx("td",{className:"font-mono text-xs text-brand",children:w.toPath}),o.jsx("td",{className:"text-slate-400",children:w.statusCode}),o.jsx("td",{children:w.active?"활성":"비활성"}),o.jsx("td",{className:"px-4 text-right",children:y&&o.jsx("button",{onClick:()=>x(w.id),className:"text-rose-400 hover:text-rose-300",children:o.jsx(Gt,{size:14})})})]},w.id)),a.length===0&&o.jsx(rn,{colSpan:6,msg:"리다이렉트가 없습니다."})]})]})}),l&&o.jsxs(rt,{title:l.id?"메타 편집":"메타 추가",onClose:()=>s(null),wide:!0,children:[o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsx(Q,{label:"경로 키",children:o.jsx("input",{className:"inp",value:l.pathKey,onChange:w=>s({...l,pathKey:w.target.value}),placeholder:"/about"})}),o.jsx(Q,{label:"로케일",children:o.jsx("input",{className:"inp",value:l.locale,onChange:w=>s({...l,locale:w.target.value})})}),o.jsx(Q,{label:"제목",children:o.jsx("input",{className:"inp",value:l.title,onChange:w=>s({...l,title:w.target.value})})}),o.jsx(Q,{label:"canonical",children:o.jsx("input",{className:"inp",value:l.canonical,onChange:w=>s({...l,canonical:w.target.value})})}),o.jsx(Q,{label:"설명",children:o.jsx("textarea",{className:"inp",value:l.description,onChange:w=>s({...l,description:w.target.value})})}),o.jsx(Q,{label:"키워드",children:o.jsx("textarea",{className:"inp",value:l.keywords,onChange:w=>s({...l,keywords:w.target.value})})}),o.jsx(Q,{label:"OG 제목",children:o.jsx("input",{className:"inp",value:l.ogTitle,onChange:w=>s({...l,ogTitle:w.target.value})})}),o.jsx(Q,{label:"OG 이미지",children:o.jsx("input",{className:"inp",value:l.ogImage,onChange:w=>s({...l,ogImage:w.target.value})})})]}),o.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[o.jsx(J,{variant:"ghost",onClick:()=>s(null),children:"취소"}),o.jsx(J,{onClick:b,children:"저장"})]})]}),c&&o.jsxs(rt,{title:"리다이렉트 추가",onClose:()=>u(null),children:[o.jsxs("div",{className:"space-y-3",children:[o.jsx(Q,{label:"From 경로",children:o.jsx("input",{className:"inp",value:c.fromPath,onChange:w=>u({...c,fromPath:w.target.value})})}),o.jsx(Q,{label:"To 경로",children:o.jsx("input",{className:"inp",value:c.toPath,onChange:w=>u({...c,toPath:w.target.value})})}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsx(Q,{label:"상태 코드",children:o.jsx("select",{className:"inp",value:c.statusCode,onChange:w=>u({...c,statusCode:Number(w.target.value)}),children:[301,302,307,308].map(w=>o.jsx("option",{children:w},w))})}),o.jsx(Q,{label:"활성",children:o.jsxs("select",{className:"inp",value:String(c.active),onChange:w=>u({...c,active:w.target.value==="true"}),children:[o.jsx("option",{value:"true",children:"활성"}),o.jsx("option",{value:"false",children:"비활성"})]})})]})]}),o.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[o.jsx(J,{variant:"ghost",onClick:()=>u(null),children:"취소"}),o.jsx(J,{onClick:j,children:"저장"})]})]}),f&&o.jsx(rt,{title:"robots.txt",onClose:()=>d(""),children:o.jsx("pre",{className:"text-xs text-slate-400 bg-ink border border-edge rounded p-3 overflow-auto max-h-[50vh]",children:f})}),h&&o.jsx(rt,{title:"AI SEO 제안",onClose:()=>p(null),wide:!0,children:o.jsxs("div",{className:"space-y-3",children:[o.jsx(Q,{label:"제목",children:o.jsx("input",{className:"inp",value:h.title,onChange:w=>p({...h,title:w.target.value})})}),o.jsx(Q,{label:"본문",children:o.jsx("textarea",{className:"inp",value:h.body,onChange:w=>p({...h,body:w.target.value})})}),o.jsxs(J,{onClick:S,children:[o.jsx(ht,{size:14})," 제안 생성"]}),h.result&&o.jsxs("div",{className:"bg-ink border border-edge rounded-lg p-3 text-sm space-y-2",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-slate-500 text-xs",children:"메타 설명:"})," ",h.result.metaDescription]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-slate-500 text-xs",children:"키워드:"})," ",(h.result.keywords||[]).join(", ")]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-slate-500 text-xs",children:"점수:"})," ",o.jsx("span",{className:"text-accent",children:h.result.score})]})]})]})})]})}const Bhe=["text","email","tel","textarea","select","checkbox","number"],Ihe={name:"",slug:"",fields:[],active:!0};function Uhe(){const[e,t]=O.useState([]),[n,r]=O.useState(null),[a,i]=O.useState(null),[l,s]=O.useState([]),[c,u]=O.useState(!1),f=zn(),d=()=>D8().then(m=>t(m||[])).catch(()=>t([]));O.useEffect(()=>{d()},[]);const h=()=>r({...Ihe}),p=m=>r({...m,fields:Array.isArray(m.fields)?m.fields:XA(m.fields)}),y=async()=>{n.id?await L8(n.id,n):await z8(n),r(null),d()},v=async m=>{window.confirm("삭제하시겠습니까?")&&(await B8(m),d())},b=()=>r(m=>({...m,fields:[...m.fields,{name:"",label:"",type:"text",required:!1}]})),g=(m,S)=>r(w=>{const A=[...w.fields];return A[m]={...A[m],...S},{...w,fields:A}}),j=m=>r(S=>({...S,fields:S.fields.filter((w,A)=>A!==m)})),x=async(m,S=!1)=>{i(m),u(S);const w=await I8(m.id,S);s(w||[])};return o.jsxs("div",{children:[o.jsx(Ln,{title:"폼빌더",subtitle:"필드 정의 · 제출 수집 · AI 스팸 필터",actions:f&&o.jsxs(J,{onClick:h,children:[o.jsx(Xt,{size:16})," 폼 생성"]})}),o.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:o.jsxs("table",{className:"w-full text-sm",children:[o.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:o.jsxs("tr",{children:[o.jsx("th",{className:"text-left py-3 px-4",children:"이름"}),o.jsx("th",{className:"text-left",children:"슬러그"}),o.jsx("th",{className:"text-left",children:"필드 수"}),o.jsx("th",{className:"text-left",children:"활성"}),o.jsx("th",{className:"text-right px-4",children:"작업"})]})}),o.jsxs("tbody",{children:[e.map(m=>o.jsxs("tr",{className:"border-t border-edge/50",children:[o.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-2",children:[o.jsx(HT,{size:15,className:"text-brand"}),m.name]}),o.jsx("td",{className:"text-slate-400 font-mono text-xs",children:m.slug}),o.jsx("td",{className:"text-slate-400",children:(Array.isArray(m.fields)?m.fields:XA(m.fields)).length}),o.jsx("td",{children:m.active?"활성":"비활성"}),o.jsx("td",{className:"px-4",children:o.jsxs("div",{className:"flex items-center justify-end gap-3",children:[o.jsx("button",{onClick:()=>x(m),title:"제출 내역",className:"text-slate-400 hover:text-brand",children:o.jsx(GT,{size:15})}),f&&o.jsx("button",{onClick:()=>p(m),className:"text-slate-400 hover:text-brand text-xs",children:"편집"}),f&&o.jsx("button",{onClick:()=>v(m.id),className:"text-rose-400 hover:text-rose-300",children:o.jsx(Gt,{size:15})})]})})]},m.id)),e.length===0&&o.jsx(rn,{colSpan:5,msg:"폼이 없습니다."})]})]})}),n&&o.jsxs(rt,{title:n.id?"폼 편집":"폼 생성",onClose:()=>r(null),wide:!0,children:[o.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-4",children:[o.jsx(Q,{label:"이름",children:o.jsx("input",{className:"inp",value:n.name,onChange:m=>r({...n,name:m.target.value})})}),o.jsx(Q,{label:"슬러그",children:o.jsx("input",{className:"inp",value:n.slug,onChange:m=>r({...n,slug:m.target.value})})})]}),o.jsxs("div",{className:"flex items-center justify-between mb-2",children:[o.jsxs("span",{className:"text-sm font-semibold flex items-center gap-1.5",children:[o.jsx(VT,{size:15})," 필드 정의"]}),o.jsxs(J,{size:"sm",variant:"ghost",onClick:b,children:[o.jsx(Xt,{size:13})," 필드"]})]}),o.jsxs("div",{className:"space-y-2 max-h-72 overflow-auto",children:[n.fields.map((m,S)=>o.jsxs("div",{className:"grid grid-cols-12 gap-2 items-center bg-panel border border-edge rounded p-2",children:[o.jsx("input",{className:"inp col-span-3",placeholder:"name",value:m.name,onChange:w=>g(S,{name:w.target.value})}),o.jsx("input",{className:"inp col-span-3",placeholder:"라벨",value:m.label,onChange:w=>g(S,{label:w.target.value})}),o.jsx("select",{className:"inp col-span-3",value:m.type,onChange:w=>g(S,{type:w.target.value}),children:Bhe.map(w=>o.jsx("option",{children:w},w))}),o.jsxs("label",{className:"col-span-2 text-xs flex items-center gap-1 text-slate-400",children:[o.jsx("input",{type:"checkbox",checked:!!m.required,onChange:w=>g(S,{required:w.target.checked})})," 필수"]}),o.jsx("button",{onClick:()=>j(S),className:"col-span-1 text-rose-400 hover:text-rose-300",children:o.jsx(Gt,{size:14})})]},S)),n.fields.length===0&&o.jsx("div",{className:"text-center text-slate-500 text-xs py-6 border border-dashed border-edge rounded",children:"필드를 추가하세요."})]}),o.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[o.jsx(J,{variant:"ghost",onClick:()=>r(null),children:"취소"}),o.jsx(J,{onClick:y,children:"저장"})]})]}),a&&o.jsxs(rt,{title:`제출 내역 — ${a.name}`,onClose:()=>i(null),wide:!0,children:[o.jsx("div",{className:"flex items-center gap-2 mb-3",children:o.jsxs("label",{className:"text-xs flex items-center gap-1 text-slate-400",children:[o.jsx("input",{type:"checkbox",checked:c,onChange:m=>x(a,m.target.checked)})," 스팸 포함"]})}),l.length===0?o.jsx("p",{className:"text-slate-500 text-sm",children:"제출 내역이 없습니다."}):o.jsx("div",{className:"space-y-2 max-h-[60vh] overflow-auto",children:l.map((m,S)=>o.jsxs("div",{className:"bg-ink border border-edge rounded p-3 text-xs",children:[o.jsxs("div",{className:"flex items-center justify-between mb-1",children:[o.jsx("span",{className:"text-slate-500",children:m.createdAt?new Date(m.createdAt).toLocaleString("ko-KR"):""}),m.spam&&o.jsx("span",{className:"text-rose-400",children:"SPAM"})]}),o.jsx("pre",{className:"text-slate-300 whitespace-pre-wrap",children:JSON.stringify(m.payload??m,null,2)})]},m.id??S))})]})]})}function XA(e){if(Array.isArray(e))return e;try{const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}}const Hhe=["","REVIEW","COMMENT","POST","INQUIRY"],qhe=["","PENDING","APPROVED","REJECTED"];function Fhe({risk:e}){if(e==null)return null;const t=Math.round(e*100),n=e>=.7?"bg-rose-500/15 text-rose-400 border-rose-500/30":e>=.3?"bg-amber-500/15 text-amber-400 border-amber-500/30":"bg-emerald-500/15 text-emerald-400 border-emerald-500/30";return o.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs border ${n}`,children:[o.jsx(p0,{size:11})," 위험 ",t,"%"]})}function Ghe(){const[e,t]=O.useState(!0),[n,r]=O.useState(""),[a,i]=O.useState(""),[l,s]=O.useState([]),[c,u]=O.useState(null),[f,d]=O.useState(""),[h,p]=O.useState(null),y=zn(),v=()=>{(e?V8():G8({ugcType:n,moderationStatus:a})).then(S=>s(S||[])).catch(()=>s([]))};O.useEffect(()=>{v()},[e,n,a]);const b=async m=>{await FS(m,"APPROVED"),v()},g=async()=>{await FS(c.id,"REJECTED",f),u(null),d(""),v()},j=async m=>{window.confirm("삭제하시겠습니까?")&&(await K8(m),v())},x=async m=>{const S=await Y8(m);p({ref:m,data:S})};return o.jsxs("div",{children:[o.jsx(Ln,{title:"UGC 모더레이션",subtitle:"리뷰 · 댓글 · 게시글 · 문의 — AI 위험도 자동 분류",actions:o.jsxs("div",{className:"flex gap-2",children:[o.jsxs(J,{variant:e?"primary":"ghost",onClick:()=>t(!0),children:[o.jsx(GT,{size:15})," 대기 큐"]}),o.jsx(J,{variant:e?"ghost":"primary",onClick:()=>t(!1),children:"전체"})]})}),!e&&o.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[o.jsx("select",{className:"inp w-36",value:n,onChange:m=>r(m.target.value),children:Hhe.map(m=>o.jsx("option",{value:m,children:m||"전체 유형"},m))}),o.jsx("select",{className:"inp w-36",value:a,onChange:m=>i(m.target.value),children:qhe.map(m=>o.jsx("option",{value:m,children:m||"전체 상태"},m))})]}),l.length===0?o.jsx(rn,{msg:e?"검토 대기 항목이 없습니다.":"UGC가 없습니다."}):o.jsx("div",{className:"space-y-3",children:l.map(m=>o.jsx("div",{className:"bg-card border border-edge rounded-xl p-4",children:o.jsxs("div",{className:"flex items-start justify-between gap-4",children:[o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsxs("div",{className:"flex items-center gap-2 flex-wrap mb-1.5",children:[o.jsx("span",{className:"text-xs font-semibold text-brand",children:m.ugcType}),o.jsx(Pn,{status:m.moderationStatus}),o.jsx(Fhe,{risk:m.aiRisk}),m.sentiment&&o.jsx(Pn,{status:m.sentiment}),m.rating!=null&&o.jsxs("span",{className:"text-xs text-amber-400",children:["★ ",m.rating]}),m.itsmSrId&&o.jsxs("span",{className:"text-[11px] text-sky-400 flex items-center gap-0.5",children:[o.jsx(oz,{size:11})," SR #",m.itsmSrId]})]}),o.jsx("p",{className:"text-sm text-slate-200",children:m.body}),o.jsxs("div",{className:"text-[11px] text-slate-500 mt-1.5",children:[m.authorName||"익명"," · ",m.authorEmail||""," · ",m.createdAt?new Date(m.createdAt).toLocaleString("ko-KR"):"",m.targetRef&&o.jsxs(o.Fragment,{children:[" · 대상 ",m.targetRef]})]}),m.aiReason&&o.jsxs("div",{className:"text-[11px] text-amber-400/80 mt-1",children:["AI: ",m.aiReason]})]}),y&&o.jsxs("div",{className:"flex flex-col gap-2 shrink-0",children:[m.moderationStatus!=="APPROVED"&&o.jsxs(J,{size:"sm",onClick:()=>b(m.id),children:[o.jsx(s0,{size:13})," 승인"]}),m.moderationStatus!=="REJECTED"&&o.jsxs(J,{size:"sm",variant:"ghost",onClick:()=>{u(m),d("")},children:[o.jsx(nC,{size:13})," 반려"]}),m.ugcType==="REVIEW"&&m.targetRef&&o.jsxs(J,{size:"sm",variant:"ghost",onClick:()=>x(m.targetRef),children:[o.jsx(ht,{size:13})," AI 요약"]}),o.jsx(J,{size:"sm",variant:"danger",onClick:()=>j(m.id),children:o.jsx(Gt,{size:13})})]})]})},m.id))}),c&&o.jsxs(rt,{title:"UGC 반려",onClose:()=>u(null),children:[o.jsx("p",{className:"text-sm text-slate-300 mb-3 line-clamp-2",children:c.body}),o.jsx("textarea",{className:"inp",placeholder:"반려 사유 (선택)",value:f,onChange:m=>d(m.target.value)}),o.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[o.jsx(J,{variant:"ghost",onClick:()=>u(null),children:"취소"}),o.jsx(J,{variant:"danger",onClick:g,children:"반려"})]})]}),h&&o.jsx(rt,{title:`AI 리뷰 요약 — ${h.ref}`,onClose:()=>p(null),children:h.data?o.jsxs(xt,{children:[o.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[o.jsx(Pn,{status:h.data.sentiment}),o.jsxs("span",{className:"text-xs text-slate-400",children:["점수 ",h.data.score]})]}),o.jsx("p",{className:"text-sm text-slate-200",children:h.data.summary})]}):o.jsx("p",{className:"text-slate-500 text-sm",children:"요약 데이터가 없습니다."})})]})}const Vhe=["WEB","MOBILE","APP","KIOSK"],Yhe={WEB:o0,MOBILE:rh,APP:z5,KIOSK:Ez},Khe={name:"",channelType:"WEB",endpoint:"",active:!0};function Xhe(){const[e,t]=O.useState([]),[n,r]=O.useState(null),a=zn(),i=()=>U8().then(c=>t(c||[])).catch(()=>t([]));O.useEffect(()=>{i()},[]);const l=async()=>{n.id?await q8(n.id,n):await H8(n),r(null),i()},s=async c=>{window.confirm("삭제하시겠습니까?")&&(await F8(c),i())};return o.jsxs("div",{children:[o.jsx(Ln,{title:"채널",subtitle:"다채널 배포 타겟 — 웹 · 모바일 · 앱 · 키오스크",actions:a&&o.jsxs(J,{onClick:()=>r({...Khe}),children:[o.jsx(Xt,{size:16})," 채널 추가"]})}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[e.map(c=>{const u=Yhe[c.channelType]||eC;return o.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4",children:[o.jsxs("div",{className:"flex items-center justify-between mb-2",children:[o.jsxs("span",{className:"font-medium flex items-center gap-2",children:[o.jsx(u,{size:16,className:"text-brand"})," ",c.name]}),o.jsx(Pn,{status:c.active?"ACTIVE":"INACTIVE"})]}),o.jsx("div",{className:"text-xs text-slate-400",children:c.channelType}),o.jsx("div",{className:"text-[11px] text-slate-500 font-mono truncate mt-1",children:c.endpoint}),a&&o.jsxs("div",{className:"flex items-center gap-3 mt-3",children:[o.jsx("button",{onClick:()=>r({...c}),className:"text-slate-400 hover:text-brand",children:o.jsx(Co,{size:14})}),o.jsx("button",{onClick:()=>s(c.id),className:"text-rose-400 hover:text-rose-300",children:o.jsx(Gt,{size:14})})]})]},c.id)}),e.length===0&&o.jsx("div",{className:"col-span-3",children:o.jsx(rn,{msg:"채널이 없습니다."})})]}),n&&o.jsxs(rt,{title:n.id?"채널 편집":"채널 추가",onClose:()=>r(null),children:[o.jsxs("div",{className:"space-y-3",children:[o.jsx(Q,{label:"이름",children:o.jsx("input",{className:"inp",value:n.name,onChange:c=>r({...n,name:c.target.value})})}),o.jsx(Q,{label:"유형",children:o.jsx("select",{className:"inp",value:n.channelType,onChange:c=>r({...n,channelType:c.target.value}),children:Vhe.map(c=>o.jsx("option",{children:c},c))})}),o.jsx(Q,{label:"엔드포인트",children:o.jsx("input",{className:"inp",value:n.endpoint,onChange:c=>r({...n,endpoint:c.target.value}),placeholder:"https://..."})}),o.jsx(Q,{label:"활성",children:o.jsxs("select",{className:"inp",value:String(n.active),onChange:c=>r({...n,active:c.target.value==="true"}),children:[o.jsx("option",{value:"true",children:"활성"}),o.jsx("option",{value:"false",children:"비활성"})]})})]}),o.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[o.jsx(J,{variant:"ghost",onClick:()=>r(null),children:"취소"}),o.jsx(J,{onClick:l,children:"저장"})]})]})]})}const WA=["","VIP","REGULAR","NEW","DORMANT"],QA=["","ACTIVE","INACTIVE","BLOCKED"],Whe={memberCode:"",name:"",email:"",phone:"",segment:"NEW",status:"ACTIVE",crmCustomerId:""};function Qhe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(""),[l,s]=O.useState(""),[c,u]=O.useState(null),[f,d]=O.useState(null),h=zn(),p=()=>X8({segment:n,status:a,keyword:l}).then(x=>t(x||[])).catch(()=>t([]));O.useEffect(()=>{p()},[n,a]);const y=()=>u({...Whe}),v=x=>u({id:x.id,memberCode:x.memberCode,name:x.name,email:"",phone:"",segment:x.segment,status:x.status,crmCustomerId:x.crmCustomerId||""}),b=async()=>{const x={...c};x.email||delete x.email,x.phone||delete x.phone,c.id?await Q8(c.id,x):await W8(x),u(null),p()},g=async x=>{window.confirm("삭제하시겠습니까?")&&(await J8(x),p())},j=async x=>{const m=await Z8(x.id);d({name:x.name,data:m})};return o.jsxs("div",{children:[o.jsx(Ln,{title:"회원",subtitle:"회원 관리 · PII 마스킹 · CRM 인사이트 연계",actions:h&&o.jsxs(J,{onClick:y,children:[o.jsx(Xt,{size:16})," 회원 추가"]})}),o.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[o.jsxs("div",{className:"relative",children:[o.jsx(tf,{size:14,className:"absolute left-2.5 top-2.5 text-slate-500"}),o.jsx("input",{value:l,onChange:x=>s(x.target.value),onKeyDown:x=>x.key==="Enter"&&p(),placeholder:"이름/코드 검색",className:"inp pl-8 w-52"})]}),o.jsx("select",{className:"inp w-36",value:n,onChange:x=>r(x.target.value),children:WA.map(x=>o.jsx("option",{value:x,children:x||"전체 세그먼트"},x))}),o.jsx("select",{className:"inp w-36",value:a,onChange:x=>i(x.target.value),children:QA.map(x=>o.jsx("option",{value:x,children:x||"전체 상태"},x))}),o.jsx(J,{variant:"ghost",onClick:p,children:"검색"})]}),o.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:o.jsxs("table",{className:"w-full text-sm",children:[o.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:o.jsxs("tr",{children:[o.jsx("th",{className:"text-left py-3 px-4",children:"코드"}),o.jsx("th",{className:"text-left",children:"이름"}),o.jsx("th",{className:"text-left",children:"이메일"}),o.jsx("th",{className:"text-left",children:"전화"}),o.jsx("th",{className:"text-left",children:"세그먼트"}),o.jsx("th",{className:"text-left",children:"상태"}),o.jsx("th",{className:"text-right px-4",children:"작업"})]})}),o.jsxs("tbody",{children:[e.map(x=>o.jsxs("tr",{className:"border-t border-edge/50",children:[o.jsx("td",{className:"py-3 px-4 font-mono text-xs text-slate-400",children:x.memberCode}),o.jsxs("td",{className:"font-medium flex items-center gap-2",children:[o.jsx(m0,{size:14,className:"text-brand"}),x.name]}),o.jsx("td",{className:"text-slate-400 font-mono text-xs",children:x.emailEnc||"—"}),o.jsx("td",{className:"text-slate-400 font-mono text-xs",children:x.phoneEnc||"—"}),o.jsx("td",{children:o.jsx(Pn,{status:x.segment})}),o.jsx("td",{children:o.jsx(Pn,{status:x.status})}),o.jsx("td",{className:"px-4",children:o.jsxs("div",{className:"flex items-center justify-end gap-3",children:[x.crmCustomerId&&o.jsx("button",{onClick:()=>j(x),title:"CRM 인사이트",className:"text-accent hover:text-accent/80",children:o.jsx(ht,{size:15})}),h&&o.jsx("button",{onClick:()=>v(x),className:"text-slate-400 hover:text-brand",children:o.jsx(Co,{size:14})}),h&&o.jsx("button",{onClick:()=>g(x.id),className:"text-rose-400 hover:text-rose-300",children:o.jsx(Gt,{size:14})})]})})]},x.id)),e.length===0&&o.jsx(rn,{colSpan:7,msg:"회원이 없습니다."})]})]})}),c&&o.jsxs(rt,{title:c.id?"회원 편집":"회원 추가",onClose:()=>u(null),children:[o.jsxs("div",{className:"space-y-3",children:[o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsx(Q,{label:"회원 코드",children:o.jsx("input",{className:"inp",value:c.memberCode,onChange:x=>u({...c,memberCode:x.target.value})})}),o.jsx(Q,{label:"이름",children:o.jsx("input",{className:"inp",value:c.name,onChange:x=>u({...c,name:x.target.value})})})]}),o.jsx(Q,{label:"이메일",hint:c.id?"변경 시에만 입력 (빈 값은 기존 유지)":void 0,children:o.jsx("input",{className:"inp",value:c.email,onChange:x=>u({...c,email:x.target.value})})}),o.jsx(Q,{label:"전화",hint:c.id?"변경 시에만 입력 (빈 값은 기존 유지)":void 0,children:o.jsx("input",{className:"inp",value:c.phone,onChange:x=>u({...c,phone:x.target.value})})}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsx(Q,{label:"세그먼트",children:o.jsx("select",{className:"inp",value:c.segment,onChange:x=>u({...c,segment:x.target.value}),children:WA.filter(Boolean).map(x=>o.jsx("option",{children:x},x))})}),o.jsx(Q,{label:"상태",children:o.jsx("select",{className:"inp",value:c.status,onChange:x=>u({...c,status:x.target.value}),children:QA.filter(Boolean).map(x=>o.jsx("option",{children:x},x))})})]}),o.jsx(Q,{label:"CRM 고객 ID",children:o.jsx("input",{className:"inp",value:c.crmCustomerId,onChange:x=>u({...c,crmCustomerId:x.target.value})})})]}),o.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[o.jsx(J,{variant:"ghost",onClick:()=>u(null),children:"취소"}),o.jsx(J,{onClick:b,children:"저장"})]})]}),f&&o.jsx(rt,{title:`CRM 인사이트 — ${f.name}`,onClose:()=>d(null),children:f.data?o.jsx(xt,{children:o.jsx("pre",{className:"text-xs text-slate-300 whitespace-pre-wrap",children:JSON.stringify(f.data,null,2)})}):o.jsx("p",{className:"text-slate-500 text-sm",children:"CRM 인사이트가 없습니다."})})]})}function Zhe(){const[e,t]=O.useState({}),[n,r]=O.useState([]);O.useEffect(()=>{tB().then(s=>t(s||{})).catch(()=>t({})),eB(10).then(s=>r(Array.isArray(s)?s:(s==null?void 0:s.items)||[])).catch(()=>r([]))},[]);const a=e.conversionRate!=null?Number(e.conversionRate):e.totalViews?(e.totalConversions||0)/e.totalViews*100:0,i={labels:n.slice(0,8).map(s=>{var c;return(c=s.title||s.contentTitle||`#${s.contentId??s.id}`)==null?void 0:c.slice(0,14)}),series:[{name:"조회수",data:n.slice(0,8).map(s=>Number(s.views??s.totalViews??0))}]},l={labels:n.slice(0,8).map(s=>{var c;return(c=s.title||s.contentTitle||`#${s.contentId??s.id}`)==null?void 0:c.slice(0,14)}),series:[{name:"전환",data:n.slice(0,8).map(s=>Number(s.conversions??s.totalConversions??0))}]};return o.jsxs("div",{children:[o.jsxs("div",{className:"mb-6",children:[o.jsx("h1",{className:"text-xl font-bold",children:"콘텐츠 분석"}),o.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:"조회 · 체류 · 전환 · 인기 콘텐츠 성과 (Recharts)"})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6",children:[o.jsxs(xt,{children:[o.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-400",children:[o.jsx(tu,{size:13})," 총 조회수"]}),o.jsx("div",{className:"text-3xl font-bold mt-2 text-brand",children:Number(e.totalViews??0).toLocaleString()})]}),o.jsxs(xt,{children:[o.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-400",children:[o.jsx(lg,{size:13})," 총 전환"]}),o.jsx("div",{className:"text-3xl font-bold mt-2 text-accent",children:Number(e.totalConversions??0).toLocaleString()})]}),o.jsxs(xt,{children:[o.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-400",children:[o.jsx(mz,{size:13})," 전환율"]}),o.jsxs("div",{className:"text-3xl font-bold mt-2 text-amber-400",children:[a.toFixed(1),"%"]})]})]}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[o.jsx(xt,{title:"인기 콘텐츠 조회수",icon:o.jsx(l0,{size:15}),children:n.length?o.jsx(Hb,{type:"BAR",data:i}):o.jsx(rn,{msg:"데이터가 없습니다."})}),o.jsx(xt,{title:"콘텐츠별 전환",icon:o.jsx(lg,{size:15}),children:n.length?o.jsx(Hb,{type:"BAR",data:l}):o.jsx(rn,{msg:"데이터가 없습니다."})})]}),o.jsx(xt,{title:"인기 콘텐츠 상세",icon:o.jsx(tu,{size:15}),className:"mt-4",children:n.length===0?o.jsx(rn,{msg:"데이터가 없습니다."}):o.jsxs("table",{className:"w-full text-sm",children:[o.jsx("thead",{className:"text-slate-500 text-xs",children:o.jsxs("tr",{children:[o.jsx("th",{className:"text-left py-2",children:"제목"}),o.jsx("th",{className:"text-left",children:"유형"}),o.jsx("th",{className:"text-right",children:"조회"}),o.jsx("th",{className:"text-right",children:"전환"})]})}),o.jsx("tbody",{children:n.map((s,c)=>o.jsxs("tr",{className:"border-t border-edge/50",children:[o.jsx("td",{className:"py-2 font-medium",children:s.title||s.contentTitle||`#${s.contentId??s.id}`}),o.jsx("td",{className:"text-slate-400",children:s.contentType||"-"}),o.jsx("td",{className:"text-right text-slate-300",children:Number(s.views??s.totalViews??0).toLocaleString()}),o.jsx("td",{className:"text-right text-slate-300",children:Number(s.conversions??s.totalConversions??0).toLocaleString()})]},s.id??s.contentId??c))})]})})]})}function Jhe(){const[e,t]=O.useState(null);return O.useEffect(()=>{TC().then(n=>t(!!(n!=null&&n.ollamaAvailable))).catch(()=>t(!1))},[]),o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between mb-6",children:[o.jsxs("div",{children:[o.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[o.jsx(ht,{className:"text-accent",size:20})," AI 도구"]}),o.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:"콘텐츠 초안 · SEO · 번역 · 모더레이션 · 리뷰 요약 · 자연어 검색 (Ollama 온프레미스)"})]}),o.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:[o.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${e?"bg-accent":"bg-slate-500"}`}),"Ollama ",e===null?"확인 중":e?"온라인":"오프라인 (Java 폴백)"]})]}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[o.jsx(epe,{}),o.jsx(tpe,{}),o.jsx(npe,{}),o.jsx(rpe,{}),o.jsx(ape,{}),o.jsx(ipe,{})]})]})}function epe(){const[e,t]=O.useState("post"),[n,r]=O.useState(""),[a,i]=O.useState("professional"),[l,s]=O.useState(""),[c,u]=O.useState(!1),f=async()=>{u(!0);try{const d=await CC(e,n,a);s((d==null?void 0:d.draft)||"")}finally{u(!1)}};return o.jsxs(xt,{title:"콘텐츠 초안 생성",icon:o.jsx(Pp,{size:15}),children:[o.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-2",children:[o.jsx(Q,{label:"종류",children:o.jsx("select",{className:"inp",value:e,onChange:d=>t(d.target.value),children:["post","page","product","banner"].map(d=>o.jsx("option",{children:d},d))})}),o.jsx(Q,{label:"톤",children:o.jsx("select",{className:"inp",value:a,onChange:d=>i(d.target.value),children:["professional","casual","marketing","formal"].map(d=>o.jsx("option",{children:d},d))})})]}),o.jsx(Q,{label:"주제",children:o.jsx("input",{className:"inp",value:n,onChange:d=>r(d.target.value),placeholder:"예: 봄 시즌 프로모션"})}),o.jsxs(J,{onClick:f,disabled:c,size:"sm",children:[o.jsx(ht,{size:13})," ",c?"생성 중…":"초안 생성"]}),l&&o.jsx("pre",{className:"mt-3 text-xs text-slate-300 bg-ink border border-edge rounded p-3 whitespace-pre-wrap max-h-48 overflow-auto",children:l})]})}function tpe(){const[e,t]=O.useState(""),[n,r]=O.useState(""),[a,i]=O.useState(null),[l,s]=O.useState(!1),c=async()=>{s(!0);try{i(await MC(e,n))}finally{s(!1)}};return o.jsxs(xt,{title:"SEO 최적화 제안",icon:o.jsx(tf,{size:15}),children:[o.jsx(Q,{label:"제목",children:o.jsx("input",{className:"inp",value:e,onChange:u=>t(u.target.value)})}),o.jsx(Q,{label:"본문",children:o.jsx("textarea",{className:"inp",value:n,onChange:u=>r(u.target.value)})}),o.jsxs(J,{onClick:c,disabled:l,size:"sm",children:[o.jsx(ht,{size:13})," ",l?"분석 중…":"제안 생성"]}),a&&o.jsxs("div",{className:"mt-3 text-sm bg-ink border border-edge rounded p-3 space-y-1.5",children:[o.jsxs("div",{children:[o.jsx("span",{className:"text-slate-500 text-xs",children:"메타:"})," ",a.metaDescription]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-slate-500 text-xs",children:"키워드:"})," ",(a.keywords||[]).join(", ")]}),o.jsxs("div",{children:[o.jsx("span",{className:"text-slate-500 text-xs",children:"점수:"})," ",o.jsx("span",{className:"text-accent",children:a.score})]})]})]})}function npe(){const[e,t]=O.useState(""),[n,r]=O.useState("en"),[a,i]=O.useState(""),[l,s]=O.useState(!1),c=async()=>{s(!0);try{const u=await nB(e,n);i((u==null?void 0:u.translated)||"")}finally{s(!1)}};return o.jsxs(xt,{title:"다국어 번역",icon:o.jsx(u0,{size:15}),children:[o.jsx(Q,{label:"원문",children:o.jsx("textarea",{className:"inp",value:e,onChange:u=>t(u.target.value)})}),o.jsx(Q,{label:"대상 로케일",children:o.jsx("input",{className:"inp",value:n,onChange:u=>r(u.target.value)})}),o.jsxs(J,{onClick:c,disabled:l,size:"sm",children:[o.jsx(ht,{size:13})," ",l?"번역 중…":"번역"]}),a&&o.jsx("div",{className:"mt-3 text-sm text-slate-200 bg-ink border border-edge rounded p-3 whitespace-pre-wrap",children:a})]})}function rpe(){const[e,t]=O.useState(""),[n,r]=O.useState([]),[a,i]=O.useState(!1),l=async()=>{i(!0);try{const s=await aB(e);r((s==null?void 0:s.keywords)||[])}finally{i(!1)}};return o.jsxs(xt,{title:"자연어 콘텐츠 검색",icon:o.jsx(sg,{size:15}),children:[o.jsx(Q,{label:"자연어 질의",children:o.jsx("input",{className:"inp",value:e,onChange:s=>t(s.target.value),placeholder:"예: 환불 정책 관련 페이지",onKeyDown:s=>s.key==="Enter"&&l()})}),o.jsxs(J,{onClick:l,disabled:a,size:"sm",children:[o.jsx(ht,{size:13})," ",a?"추출 중…":"키워드 추출"]}),n.length>0&&o.jsx("div",{className:"mt-3 flex flex-wrap gap-1.5",children:n.map((s,c)=>o.jsx("span",{className:"px-2 py-0.5 rounded bg-brand/15 text-brand text-xs border border-brand/30",children:s},c))})]})}function ape(){const[e,t]=O.useState(""),[n,r]=O.useState(null),[a,i]=O.useState(!1),l=async()=>{i(!0);try{r(await iB(e))}finally{i(!1)}};return o.jsxs(xt,{title:"UGC 모더레이션 판정",icon:o.jsx(p0,{size:15}),children:[o.jsx(Q,{label:"검사 텍스트",children:o.jsx("textarea",{className:"inp",value:e,onChange:s=>t(s.target.value)})}),o.jsxs(J,{onClick:l,disabled:a,size:"sm",children:[o.jsx(ht,{size:13})," ",a?"판정 중…":"위험도 판정"]}),n&&o.jsxs("div",{className:"mt-3 text-sm bg-ink border border-edge rounded p-3 flex items-center gap-3",children:[o.jsx(Pn,{status:n.decision==="APPROVE"?"APPROVED":n.decision==="REJECT"?"REJECTED":"PENDING"}),o.jsxs("span",{className:"text-slate-400 text-xs",children:["위험 ",Math.round((n.risk??0)*100),"%"]}),o.jsx("span",{className:"text-slate-400 text-xs",children:n.reason})]})]})}function ipe(){const[e,t]=O.useState(""),[n,r]=O.useState(null),[a,i]=O.useState(!1),l=async()=>{i(!0);try{r(await rB(e.split(`
`).map(s=>s.trim()).filter(Boolean)))}finally{i(!1)}};return o.jsxs(xt,{title:"리뷰 요약·감성 분석",icon:o.jsx(dz,{size:15}),children:[o.jsx(Q,{label:"리뷰 (줄바꿈 구분)",children:o.jsx("textarea",{className:"inp",value:e,onChange:s=>t(s.target.value),placeholder:`리뷰 1
리뷰 2`})}),o.jsxs(J,{onClick:l,disabled:a,size:"sm",children:[o.jsx(ht,{size:13})," ",a?"요약 중…":"요약 생성"]}),n&&o.jsxs("div",{className:"mt-3 text-sm bg-ink border border-edge rounded p-3 space-y-2",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(Pn,{status:n.sentiment}),o.jsxs("span",{className:"text-slate-400 text-xs",children:["점수 ",n.score]})]}),o.jsx("p",{className:"text-slate-200",children:n.summary})]})]})}const lpe=[{key:"rag.enabled",label:"RAG 경유 (마스터)",hint:"off 시 모든 AI 호출이 CMS 로컬 폴백"},{key:"rag.rerank",label:"리랭킹 (rerank)",hint:"cross-encoder 재정렬 — 정확도↑·RAM↑",heavy:!0},{key:"rag.graphrag",label:"GraphRAG (graph)",hint:"지식그래프 검색 — 관계 추론·RAM↑",heavy:!0},{key:"rag.tool_use",label:"에이전틱 tool-use",hint:"다단계 콘텐츠 작업(/agent) — 옵트인·RAM↑",heavy:!0},{key:"rag.stream",label:"SSE 스트리밍",hint:"긴 초안 토큰 스트리밍"}];function spe(){const[e,t]=O.useState(null),[n,r]=O.useState(""),[a,i]=O.useState(""),[l,s]=O.useState(null),[c,u]=O.useState(null),[f,d]=O.useState("봄맞이 신상 화분"),[h,p]=O.useState("이 상품 정말 최고예요! 강추합니다"),[y,v]=O.useState(""),b=pl("EDITOR",xa()),g=()=>lB().then(w=>{t(w),i("")}).catch(()=>i("AI 기법 토글을 불러오지 못했습니다."));O.useEffect(()=>{g()},[]);const j=async(w,A)=>{var _;r(""),i("");try{const E=await sB(w,A);t(E),r(`'${w}' 저장됨`)}catch(E){i(((_=E==null?void 0:E.response)==null?void 0:_.status)===403?"권한이 없습니다 (Editor+).":"저장 실패")}},x=async()=>{v("draft"),s(null);try{s(await oB("product",f,"친근함"))}catch{s({error:"호출 실패"})}finally{v("")}},m=async()=>{v("mod"),u(null);try{u(await cB(h))}catch{u({error:"호출 실패"})}finally{v("")}};if(!e)return o.jsx("div",{className:"text-slate-500",children:a||"불러오는 중..."});const S=({on:w,label:A})=>o.jsx("span",{className:`px-2 py-0.5 rounded text-[11px] font-medium ${w?"bg-brand/15 text-brand":"bg-slate-500/15 text-slate-400"}`,children:A});return o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between mb-6",children:[o.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[o.jsx(eu,{className:"text-brand",size:20})," AI 기법 (중앙 guardia-rag)"]}),o.jsxs("span",{className:`px-2.5 py-1 rounded-lg text-xs font-medium ${e.ragAvailable?"bg-emerald-500/15 text-emerald-300":"bg-amber-500/15 text-amber-300"}`,children:["중앙 RAG ",e.ragAvailable?"가용":"미가용 (로컬 폴백)"]})]}),n&&o.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&&o.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}),!b&&o.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:"조회 전용입니다. 토글 변경은 Editor+ 권한이 필요합니다."}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[o.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[o.jsxs("h2",{className:"font-semibold mb-3 flex items-center gap-2",children:[o.jsx(qs,{size:16,className:"text-brand"})," 기법 토글"]}),o.jsxs("div",{className:"flex items-center justify-between py-2.5 border-b border-edge/50",children:[o.jsxs("div",{children:[o.jsx("div",{className:"text-sm font-medium",children:"검색 모드 (retrieval_mode)"}),o.jsx("div",{className:"text-[11px] text-slate-500",children:"vector(경량 기본) · hybrid(BM25+벡터) · graph"})]}),o.jsxs("select",{className:"inp w-32",value:e.retrievalMode,disabled:!b,onChange:w=>j("rag.retrieval_mode",w.target.value),children:[o.jsx("option",{value:"vector",children:"vector"}),o.jsx("option",{value:"hybrid",children:"hybrid"}),o.jsx("option",{value:"graph",children:"graph"})]})]}),lpe.map(w=>{const A=e[w.key.replace("rag.","").replace(/_(\w)/g,(_,E)=>E.toUpperCase())];return o.jsxs("div",{className:"flex items-center justify-between py-2.5 border-b border-edge/50",children:[o.jsxs("div",{children:[o.jsxs("div",{className:"text-sm font-medium flex items-center gap-1.5",children:[w.label,w.heavy&&o.jsx("span",{className:"text-[10px] text-amber-400",children:"RAM↑ 기본 off"})]}),o.jsx("div",{className:"text-[11px] text-slate-500",children:w.hint})]}),o.jsx("button",{disabled:!b,onClick:()=>j(w.key,String(!A)),className:`w-11 h-6 rounded-full transition-colors relative ${A?"bg-brand":"bg-slate-600"} ${b?"":"opacity-50"}`,children:o.jsx("span",{className:`absolute top-0.5 w-5 h-5 rounded-full bg-white transition-all ${A?"left-[22px]":"left-0.5"}`})})]},w.key)}),[{key:"rag.top_k",label:"top_k (검색 결과 수)",val:e.topK,min:1,max:20},{key:"rag.step_limit",label:"step 상한 (/agent)",val:e.stepLimit,min:1,max:8},{key:"rag.faithfulness_threshold",label:"신뢰도 임계값",val:e.faithfulnessThreshold,min:0,max:1,step:.05},{key:"rag.temperature",label:"temperature",val:e.temperature,min:0,max:1,step:.05}].map(w=>o.jsxs("div",{className:"flex items-center justify-between py-2.5 border-b border-edge/50",children:[o.jsx("div",{className:"text-sm",children:w.label}),o.jsx("input",{type:"number",className:"inp w-24",defaultValue:w.val,min:w.min,max:w.max,step:w.step||1,disabled:!b,onBlur:A=>j(w.key,A.target.value)})]},w.key)),o.jsxs("div",{className:"flex items-center justify-between py-2.5",children:[o.jsx("div",{className:"text-sm",children:"생성 모델"}),o.jsx("input",{className:"inp w-40",defaultValue:e.generationModel,disabled:!b,onBlur:w=>j("rag.generation_model",w.target.value)})]}),o.jsx("p",{className:"text-[11px] text-slate-500 mt-2",children:"설정은 cms_setting(rag.*)에 격리 저장 · 변경 시 감사로그 기록 · 무거운 기법 기본 off"})]}),o.jsxs("div",{className:"space-y-5",children:[o.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[o.jsxs("h2",{className:"font-semibold mb-3 flex items-center gap-2",children:[o.jsx(ht,{size:16,className:"text-brand"})," 콘텐츠 초안 (/rag/answer · /agent)"]}),o.jsx("input",{className:"inp w-full mb-2",value:f,onChange:w=>d(w.target.value),placeholder:"주제"}),o.jsxs("button",{onClick:x,disabled:y==="draft",className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-brand text-ink text-xs font-semibold",children:[o.jsx(OS,{size:13})," ",y==="draft"?"생성 중...":"초안 생성"]}),l&&o.jsxs("div",{className:"mt-3 text-sm",children:[o.jsx("div",{className:"bg-panel rounded-lg p-3 whitespace-pre-wrap text-slate-200",children:String(l.draft??l.error??"")}),o.jsxs("div",{className:"flex flex-wrap gap-1.5 mt-2",children:[o.jsx(S,{on:!l.degraded,label:l.degraded?`폴백(${l.degraded_reason||"degraded"})`:`엔진:${l.engine||"RAG"}`}),l.applied&&o.jsxs(o.Fragment,{children:[o.jsx(S,{on:!0,label:`mode:${l.applied.retrievalMode}`}),o.jsx(S,{on:l.applied.rerank,label:"rerank"}),o.jsx(S,{on:l.applied.graphrag,label:"graph"}),o.jsx(S,{on:l.applied.toolUse,label:"tool-use"})]}),l.abstained&&o.jsx(S,{on:!1,label:"근거부족 보류"})]})]})]}),o.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[o.jsxs("h2",{className:"font-semibold mb-3 flex items-center gap-2",children:[o.jsx(qs,{size:16,className:"text-brand"})," UGC 모더레이션 (/rag/structured)"]}),o.jsx("textarea",{className:"inp w-full mb-2 h-16",value:h,onChange:w=>p(w.target.value),placeholder:"리뷰/댓글"}),o.jsxs("button",{onClick:m,disabled:y==="mod",className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-brand text-ink text-xs font-semibold",children:[o.jsx(OS,{size:13})," ",y==="mod"?"판정 중...":"판정"]}),c&&o.jsxs("div",{className:"mt-3 text-sm flex flex-wrap gap-1.5 items-center",children:[o.jsx("span",{className:`px-2 py-0.5 rounded text-xs font-semibold ${c.verdict==="APPROVE"?"bg-emerald-500/15 text-emerald-300":c.verdict==="REJECT"?"bg-rose-500/15 text-rose-300":"bg-amber-500/15 text-amber-300"}`,children:c.verdict||c.error}),c.score!=null&&o.jsx(S,{on:!0,label:`score:${c.score}`}),c.piiFlag&&o.jsx(S,{on:!1,label:"PII 감지"}),o.jsx(S,{on:!c.degraded,label:c.degraded?`폴백(${c.degraded_reason||"rule"})`:"결정론 JSON"})]}),o.jsx("p",{className:"text-[11px] text-slate-500 mt-2",children:"애매(저신뢰) 시 자동 통과 금지 → REVIEW(보류). 사람 검토 큐로."})]})]})]})]})}function ZA(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 ope(){const[e,t]=O.useState([]),[n,r]=O.useState({username:"",password:"",displayName:"",role:"AUTHOR"}),[a,i]=O.useState(!1),[l,s]=O.useState(""),c=()=>uB().then(b=>{var g;t(((g=b.data)==null?void 0:g.data)||[]),s("")}).catch(b=>s(ZA(b)));O.useEffect(()=>{c()},[]);const u=async b=>{try{await b(),s(""),await c()}catch(g){s(ZA(g))}},f=async()=>{if(!n.username||!n.password){s("사용자명과 비밀번호를 입력하세요.");return}await u(async()=>{await fB(n),r({username:"",password:"",displayName:"",role:"AUTHOR"}),i(!1)})},d=(b,g)=>u(()=>dB(b.id,g)),h=b=>u(()=>hB(b.id,!b.active)),p=b=>{const g=window.prompt(`'${b.username}' 의 새 비밀번호`);g&&u(()=>pB(b.id,g))},y=b=>{window.confirm(`'${b.username}' 사용자의 OTP를 초기화하시겠습니까?
초기화하면 다음 로그인 시 재등록해야 합니다.`)&&u(()=>yB(b.id))},v=b=>{window.confirm(`'${b.username}' 삭제?`)&&u(()=>mB(b.id))};return o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between mb-6",children:[o.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[o.jsx(qs,{className:"text-brand",size:20})," 사용자 / 권한"]}),o.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:[o.jsx(Xt,{size:16})," 새 사용자"]})]}),l&&o.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&&o.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-6 grid grid-cols-5 gap-3",children:[o.jsx("input",{placeholder:"사용자명",value:n.username,onChange:b=>r({...n,username:b.target.value}),className:"inp"}),o.jsx("input",{placeholder:"표시 이름",value:n.displayName,onChange:b=>r({...n,displayName:b.target.value}),className:"inp"}),o.jsx("input",{placeholder:"비밀번호",type:"password",value:n.password,onChange:b=>r({...n,password:b.target.value}),className:"inp"}),o.jsx("select",{value:n.role,onChange:b=>r({...n,role:b.target.value}),className:"inp",children:ES.map(b=>o.jsx("option",{value:b,children:b},b))}),o.jsx("button",{onClick:f,className:"px-4 rounded-lg bg-brand text-ink text-sm font-semibold",children:"저장"})]}),o.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:o.jsxs("table",{className:"w-full text-sm",children:[o.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:o.jsxs("tr",{children:[o.jsx("th",{className:"text-left py-3 px-4",children:"ID"}),o.jsx("th",{className:"text-left",children:"사용자명"}),o.jsx("th",{className:"text-left",children:"표시 이름"}),o.jsx("th",{className:"text-left",children:"역할"}),o.jsx("th",{className:"text-left",children:"상태"}),o.jsx("th",{className:"text-left",children:"생성일"}),o.jsx("th",{className:"text-right px-4",children:"작업"})]})}),o.jsxs("tbody",{children:[e.map(b=>o.jsxs("tr",{className:"border-t border-edge/50",children:[o.jsx("td",{className:"py-3 px-4 text-slate-500",children:b.id}),o.jsx("td",{className:"font-medium",children:b.username}),o.jsx("td",{className:"text-slate-400",children:b.displayName||"-"}),o.jsx("td",{children:o.jsx("select",{value:b.role,onChange:g=>d(b,g.target.value),className:"px-2 py-1 rounded-md bg-ink border border-edge text-xs focus:border-brand outline-none",children:ES.map(g=>o.jsx("option",{value:g,children:g},g))})}),o.jsx("td",{children:o.jsx("span",{className:`inline-block px-2 py-0.5 rounded-md text-xs font-medium ${b.active?"bg-accent/15 text-accent":"bg-slate-500/15 text-slate-400"}`,children:b.active?"활성":"비활성"})}),o.jsx("td",{className:"text-slate-500 text-xs",children:b.createdAt?new Date(b.createdAt).toLocaleString("ko-KR"):"-"}),o.jsx("td",{className:"px-4",children:o.jsxs("div",{className:"flex items-center justify-end gap-3",children:[o.jsx("button",{onClick:()=>h(b),title:b.active?"비활성화":"활성화",className:"text-slate-400 hover:text-brand",children:o.jsx(vz,{size:16})}),o.jsx("button",{onClick:()=>p(b),title:"비밀번호 재설정",className:"text-slate-400 hover:text-brand",children:o.jsx(c0,{size:16})}),o.jsx("button",{onClick:()=>y(b),title:"OTP 초기화",className:"text-slate-400 hover:text-brand",children:o.jsx(WT,{size:16})}),o.jsx("button",{onClick:()=>v(b),title:"삭제",className:"text-rose-400 hover:text-rose-300",children:o.jsx(Gt,{size:16})})]})})]},b.id)),e.length===0&&o.jsx("tr",{children:o.jsx("td",{colSpan:7,className:"py-6 text-center text-slate-500",children:"사용자가 없습니다."})})]})]})})]})}function cpe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(""),[l,s]=O.useState(""),c=()=>vB(n,a,200).then(u=>{var f;t(((f=u.data)==null?void 0:f.data)||[]),s("")}).catch(u=>{var f;return s(((f=u==null?void 0:u.response)==null?void 0:f.status)===403?"권한이 없습니다 (Editor+).":"감사 로그를 불러오지 못했습니다.")});return O.useEffect(()=>{c()},[]),o.jsxs("div",{children:[o.jsx("div",{className:"flex items-center justify-between mb-6",children:o.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[o.jsx(QT,{className:"text-brand",size:20})," 감사 로그"]})}),o.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[o.jsx("input",{placeholder:"action 필터",value:n,onChange:u=>r(u.target.value),onKeyDown:u=>u.key==="Enter"&&c(),className:"inp w-44"}),o.jsx("input",{placeholder:"actor 필터",value:a,onChange:u=>i(u.target.value),onKeyDown:u=>u.key==="Enter"&&c(),className:"inp w-44"}),o.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:[o.jsx(tf,{size:15})," 검색"]})]}),l&&o.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}),o.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:o.jsxs("table",{className:"w-full text-sm",children:[o.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:o.jsxs("tr",{children:[o.jsx("th",{className:"text-left py-3 px-4",children:"시각"}),o.jsx("th",{className:"text-left",children:"행위자"}),o.jsx("th",{className:"text-left",children:"액션"}),o.jsx("th",{className:"text-left",children:"대상"}),o.jsx("th",{className:"text-left",children:"상세"})]})}),o.jsxs("tbody",{children:[e.map(u=>o.jsxs("tr",{className:"border-t border-edge/50",children:[o.jsx("td",{className:"py-3 px-4 text-slate-500 text-xs whitespace-nowrap",children:u.createdAt?new Date(u.createdAt).toLocaleString("ko-KR"):"-"}),o.jsx("td",{className:"text-slate-300",children:u.actor}),o.jsx("td",{children:o.jsx("span",{className:"px-2 py-0.5 rounded bg-brand/15 text-brand text-xs border border-brand/30",children:u.action})}),o.jsx("td",{className:"text-slate-400 font-mono text-xs",children:u.target||"-"}),o.jsx("td",{className:"text-slate-400 text-xs truncate max-w-[360px]",children:u.detail||"-"})]},u.id)),e.length===0&&o.jsx("tr",{children:o.jsx("td",{colSpan:5,className:"py-6 text-center text-slate-500",children:"감사 로그가 없습니다."})})]})]})})]})}function upe(){const[e,t]=O.useState([]),[n,r]=O.useState({}),[a,i]=O.useState(""),[l,s]=O.useState(""),c=aC(),u=()=>gB().then(d=>{var y;const h=((y=d.data)==null?void 0:y.data)||[],p=Array.isArray(h)?h:Object.entries(h).map(([v,b])=>({key:v,value:String(b)}));t(p),s("")}).catch(d=>{var h;return s(((h=d==null?void 0:d.response)==null?void 0:h.status)===403?"권한이 없습니다 (Editor+).":"시스템 설정을 불러오지 못했습니다.")});O.useEffect(()=>{u()},[]);const f=async d=>{var h;i(""),s("");try{await bB(d,n[d]??""),i(`'${d}' 저장됨`),u()}catch(p){s(((h=p==null?void 0:p.response)==null?void 0:h.status)===403?"SuperAdmin 권한이 필요합니다.":"저장 실패")}};return o.jsxs("div",{children:[o.jsx("div",{className:"flex items-center justify-between mb-6",children:o.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[o.jsx(JT,{className:"text-brand",size:20})," 시스템 설정"]})}),a&&o.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&&o.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&&o.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 권한이 필요합니다."}),o.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:o.jsxs("table",{className:"w-full text-sm",children:[o.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:o.jsxs("tr",{children:[o.jsx("th",{className:"text-left py-3 px-4",children:"키"}),o.jsx("th",{className:"text-left",children:"값"}),o.jsx("th",{className:"text-right px-4",children:"작업"})]})}),o.jsxs("tbody",{children:[e.map(d=>o.jsxs("tr",{className:"border-t border-edge/50",children:[o.jsxs("td",{className:"py-3 px-4 font-mono text-xs text-brand align-top",children:[d.key,d.description&&o.jsx("div",{className:"text-[11px] text-slate-500 font-sans mt-0.5",children:d.description})]}),o.jsx("td",{className:"py-3",children:o.jsx("input",{className:"inp",defaultValue:d.value,disabled:!c,onChange:h=>r({...n,[d.key]:h.target.value})})}),o.jsx("td",{className:"px-4 text-right align-top",children:c&&o.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:[o.jsx(h0,{size:13})," 저장"]})})]},d.key)),e.length===0&&o.jsx("tr",{children:o.jsx("td",{colSpan:3,className:"py-6 text-center text-slate-500",children:"설정 항목이 없습니다."})})]})]})})]})}const fpe=()=>R.get("/api/admin/ai-config").then(e=>{var t;return(t=e.data)==null?void 0:t.data}),dpe=e=>R.put("/api/admin/ai-config",e).then(t=>{var n;return(n=t.data)==null?void 0:n.data}),hpe=()=>R.post("/api/admin/ai-config/test",{}).then(e=>{var t;return(t=e.data)==null?void 0:t.data}),ppe=e=>R.post("/api/ai/feedback",e).then(t=>{var n;return(n=t.data)==null?void 0:n.data});function mpe({feature:e,question:t,answer:n}){const[r,a]=O.useState(null),[i,l]=O.useState(""),[s,c]=O.useState(!1),[u,f]=O.useState(!1),d=async p=>{a(p),p==="up"&&await h(p)},h=async p=>{f(!0);try{await ppe({feature:e,question:t,answer:n,verdict:p,correction:i||void 0}),c(!0)}catch{c(!0)}finally{f(!1)}};return s?o.jsx("div",{className:"text-xs text-accent",children:"피드백 감사합니다. 학습에 반영됩니다."}):o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("span",{className:"text-xs text-slate-500",children:"이 결과가 도움이 되었나요?"}),o.jsx("button",{onClick:()=>d("up"),disabled:u,className:`p-1.5 rounded-lg border text-xs ${r==="up"?"bg-accent/15 border-accent text-accent":"bg-ink border-edge text-slate-300 hover:border-accent/50"}`,"aria-label":"좋아요",children:o.jsx(Az,{size:14})}),o.jsx("button",{onClick:()=>d("down"),disabled:u,className:`p-1.5 rounded-lg border text-xs ${r==="down"?"bg-rose-500/15 border-rose-500 text-rose-300":"bg-ink border-edge text-slate-300 hover:border-rose-500/50"}`,"aria-label":"아쉬워요",children:o.jsx(Oz,{size:14})})]}),r==="down"&&o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("input",{value:i,onChange:p=>l(p.target.value),placeholder:"무엇이 잘못됐는지 알려주세요 (선택)",className:"flex-1 px-3 py-1.5 rounded-lg bg-ink border border-edge text-sm outline-none focus:border-brand"}),o.jsxs("button",{onClick:()=>h("down"),disabled:u,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-brand text-ink text-xs font-semibold disabled:opacity-40",children:[o.jsx(ZT,{size:13})," 제출"]})]})]})}const ype=[{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 (Zhipu)",hint:"온프레미스 · glm4:9b",ram:!0},{id:"claude",label:"Claude (외부)",hint:"api.anthropic.com · 키 필요"}],w$=["claude-sonnet-4-6","claude-haiku-4-5","claude-opus-4-8"],wd="claude-sonnet-4-6",ev=e=>w$.includes(e)?e:wd;function tv(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 설정은 SuperAdmin 전용).":t.includes("ERR-AI-400")?t.replace(/^ERR-AI-400:\s*/,""):"AI 설정을 처리하지 못했습니다."}function vpe(){const e=aC(),[t,n]=O.useState("ollama"),[r,a]=O.useState(wd),[i,l]=O.useState(!1),[s,c]=O.useState(""),[u,f]=O.useState(!0),[d,h]=O.useState(!1),[p,y]=O.useState(!1),[v,b]=O.useState(!1),[g,j]=O.useState(""),[x,m]=O.useState(!1),[S,w]=O.useState(null),A=()=>{h(!0),fpe().then(T=>{n(T.provider),a(ev(T.claudeModel??wd)),l(!!T.claudeKeySet),c(T.ollamaTextModel??""),f(!!T.aiEnabled),j("")}).catch(T=>j(tv(T))).finally(()=>h(!1))};O.useEffect(()=>{A()},[]);const _=()=>{b(!1),w(null)},E=async()=>{y(!0),b(!1);try{const T=await dpe({provider:t,claudeModel:r});n(T.provider),a(ev(T.claudeModel??wd)),l(!!T.claudeKeySet),c(T.ollamaTextModel??""),f(!!T.aiEnabled),b(!0),j("")}catch(T){j(tv(T))}finally{y(!1)}},C=async()=>{m(!0),w(null);try{w(await hpe())}catch(T){w({ok:!1,degraded:!1,message:tv(T)})}finally{m(!1)}},k=t==="claude",M=t==="glm",I=k&&!i,D=!k&&!u,$=S?S.degraded?"text-amber-300":S.ok?"text-accent":"text-rose-300":"";return o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between mb-6",children:[o.jsxs("div",{children:[o.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[o.jsx(eu,{size:20,className:"text-brand"})," AI 플랫폼 설정"]}),o.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"콘텐츠 초안·SEO·번역·리뷰 요약·검색·모더레이션 등 텍스트 생성에 사용할 LLM 제공자와 모델을 선택합니다."})]}),o.jsx("button",{onClick:A,disabled:d,className:"px-3 py-1.5 rounded-lg bg-card border border-edge text-sm disabled:opacity-40",children:"새로고침"})]}),g&&o.jsx("div",{className:"bg-rose-500/10 border border-rose-500/40 text-rose-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:g}),!e&&o.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:"조회 전용입니다. AI 플랫폼 설정 변경은 SuperAdmin 권한이 필요합니다."}),(I||D)&&o.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:I?"Claude API 키가 설정되지 않아 Ollama(온프레미스)로 폴백 동작합니다. 서버 환경변수 ANTHROPIC_API_KEY 설정 후 사용하세요.":"AI 기능이 비활성 상태입니다. 모든 AI 결과는 규칙 기반(degraded)으로 동작합니다."}),M&&o.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-center gap-2",children:[o.jsx(tC,{size:15}),"GLM(glm4:9b, 약 5.5GB)은 현재 서버 가용 RAM(~2GB)을 초과합니다. RAM 증설 전까지 콜드로드가 실패할 수 있으며, 실패 시 자동으로 소형 모델로 폴백합니다."]}),o.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[o.jsxs("section",{className:"bg-card border border-edge rounded-xl p-5",children:[o.jsxs("h2",{className:"text-sm font-semibold mb-4 flex items-center gap-2",children:[o.jsx(eu,{size:16,className:"text-brand"})," 제공자 & 모델"]}),o.jsx("div",{className:"grid grid-cols-2 gap-2 mb-4",children:ype.map(T=>o.jsxs("button",{onClick:()=>{e&&(n(T.id),_())},disabled:!e,className:`text-left px-3 py-2.5 rounded-lg border text-sm transition-colors disabled:opacity-60 ${t===T.id?"bg-brand/15 border-brand text-brand":"bg-ink border-edge text-slate-300 hover:border-brand/50"}`,children:[o.jsxs("div",{className:"font-semibold flex items-center gap-1.5",children:[T.label,T.ram&&o.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-amber-500/15 text-amber-300 border border-amber-500/40",children:"RAM"})]}),o.jsx("div",{className:"text-[11px] text-slate-500 mt-0.5",children:T.hint})]},T.id))}),!k&&o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block text-xs text-slate-500 mb-1",children:"Ollama 텍스트 모델"}),o.jsx("div",{className:"px-3 py-2 rounded-lg bg-ink border border-edge text-sm font-mono",children:s||"llama3.2:1b"}),o.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"온프레미스 소형 모델 — 서버 RAM 제약으로 고정. 외부 호출 없음."})]}),k&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"mb-4",children:[o.jsx("label",{className:"block text-xs text-slate-500 mb-1",children:"Claude 모델"}),o.jsx("select",{value:r,onChange:T=>{a(ev(T.target.value)),_()},disabled:!e,className:"w-full px-3 py-2 rounded-lg bg-ink border border-edge text-sm focus:border-brand outline-none disabled:opacity-60",children:w$.map(T=>o.jsx("option",{value:T,children:T},T))})]}),o.jsxs("div",{className:"mb-4",children:[o.jsxs("label",{className:"text-xs text-slate-500 mb-1 flex items-center gap-1",children:[o.jsx(c0,{size:13})," API 키"]}),o.jsx("span",{className:`inline-block px-3 py-1 rounded-lg text-xs font-semibold ${i?"bg-accent/15 text-accent border border-accent/40":"bg-rose-500/15 text-rose-300 border border-rose-500/40"}`,children:i?"설정됨":"미설정"}),o.jsx("p",{className:"text-[11px] text-slate-500 mt-1.5",children:"키는 서버 환경변수(ANTHROPIC_API_KEY)로만 주입되며 화면·응답·로그에 노출되지 않습니다."})]})]}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsxs("button",{onClick:E,disabled:p||d||!e,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:[o.jsx(h0,{size:15})," ",p?"저장 중…":"저장"]}),v&&o.jsx("span",{className:"text-accent text-xs",children:"저장됨"})]})]}),o.jsxs("section",{className:"bg-card border border-edge rounded-xl p-5",children:[o.jsxs("h2",{className:"text-sm font-semibold mb-2 flex items-center gap-2",children:[o.jsx(yz,{size:16,className:"text-brand"})," 연결 테스트"]}),o.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"저장된 설정 기준으로 선택한 제공자에 짧은 ping 을 보내 연결을 확인합니다(요약 결과만)."}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("button",{onClick:C,disabled:x,className:"px-4 py-2 rounded-lg bg-card border border-edge text-sm disabled:opacity-40 hover:border-brand/50",children:x?"테스트 중…":"테스트 실행"}),S&&o.jsx("span",{className:`text-sm ${$}`,role:"status","aria-live":"polite",children:S.message})]}),o.jsx("p",{className:"text-[11px] text-slate-500 mt-3",children:"먼저 변경 사항을 저장한 뒤 테스트하세요. Claude 실패 시 Ollama 로 자동 폴백합니다."}),o.jsxs("div",{className:"mt-5 pt-4 border-t border-edge/60",children:[o.jsx("div",{className:"text-xs text-slate-500 mb-2",children:"AI 품질 피드백"}),o.jsx(mpe,{feature:"ai-platform-settings"})]})]})]})]})}const gpe="https://itsm.zioinfo.co.kr";function bpe(){const[e,t]=O.useState(null),[n,r]=O.useState(!0),[a,i]=O.useState(""),[l,s]=O.useState(!1),c=()=>{r(!0),i(""),fetch(`${gpe}/api/app/public-latest`).then(f=>f.json()).then(f=>t(f)).catch(()=>i("버전 정보를 불러올 수 없습니다. (중앙 앱 저장소 연결 실패)")).finally(()=>r(!1))};O.useEffect(()=>{c()},[]);const u=async()=>{if(e!=null&&e.landing_url)try{await navigator.clipboard.writeText(e.landing_url),s(!0),setTimeout(()=>s(!1),2e3)}catch{}};return o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center justify-between mb-6",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(rh,{className:"text-brand",size:22}),o.jsx("h1",{className:"text-xl font-bold",children:"GUARDiA 통합 메신저 앱 설치"})]}),o.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:[o.jsx(WT,{size:15})," 새로고침"]})]}),o.jsxs("p",{className:"text-sm text-slate-400 mb-6",children:["QR 코드를 스캔하면 ",o.jsx("span",{className:"text-brand font-semibold",children:"GUARDiA Messenger"})," 앱 설치 페이지로 이동합니다. 앱스토어 설치가 필요 없으며, 앱 업로드·버전 관리는 GUARDiA Manager에서 일원화되어 있습니다."]}),n&&o.jsx("div",{className:"text-slate-400 text-sm",children:"불러오는 중…"}),a&&o.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&&o.jsxs("div",{className:"bg-card border border-edge rounded-xl p-8 text-center text-slate-400",children:[o.jsx(rh,{size:36,className:"mx-auto mb-3 text-slate-600"}),"아직 등록된 앱 버전이 없습니다.",o.jsx("br",{}),o.jsx("span",{className:"text-xs",children:"GUARDiA Manager에서 APK를 업로드하면 여기에 QR이 표시됩니다."})]}),!n&&!a&&(e==null?void 0:e.has_version)&&o.jsxs("div",{className:"bg-card border border-edge rounded-xl p-6 grid md:grid-cols-[200px_1fr] gap-6 items-start",children:[o.jsx("div",{className:"bg-white rounded-xl p-3 flex items-center justify-center",children:o.jsx("img",{src:e.qr_url,alt:"앱 설치 QR",className:"w-44 h-44"})}),o.jsxs("div",{children:[o.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[o.jsx("span",{className:"text-lg font-bold",children:e.app_name||"GUARDiA Messenger"}),o.jsxs("span",{className:"px-2 py-0.5 rounded-md bg-brand2 text-white text-xs font-semibold",children:["v",e.version]})]}),o.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&&o.jsxs("div",{className:"mb-4",children:[o.jsx("div",{className:"text-[11px] font-semibold text-slate-500 uppercase tracking-wider mb-1",children:"변경점"}),o.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})]}),o.jsxs("div",{className:"flex flex-wrap gap-2",children:[o.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:[o.jsx(Z5,{size:15})," 설치 페이지 열기"]}),o.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:[o.jsx(Q5,{size:15})," APK 직접 다운로드"]}),o.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?o.jsx(s0,{size:15,className:"text-accent"}):o.jsx(W5,{size:15}),l?"복사됨":"다운로드 링크 복사"]})]}),o.jsx("div",{className:"mt-4 text-[12px] text-slate-500 leading-relaxed",children:'📱 Android: APK 다운로드 후 설정 → 보안 → "알 수 없는 소스" 허용 → 설치. 앱스토어 등록이 필요 없습니다.'})]})]})]})}const nv=8;function ed(e,t){var n,r,a;return((n=e==null?void 0:e.response)==null?void 0:n.status)===403?"권한이 없습니다.":((a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.message)||t}function xpe(){const[e,t]=O.useState(""),[n,r]=O.useState(null),[a,i]=O.useState("idle"),[l,s]=O.useState(""),[c,u]=O.useState(""),[f,d]=O.useState(""),[h,p]=O.useState(!1),[y,v]=O.useState(null),[b,g]=O.useState(""),[j,x]=O.useState(""),[m,S]=O.useState(""),[w,A]=O.useState(!1),[_,E]=O.useState(!1),[C,k]=O.useState(null),M=()=>S0().then(Y=>{var ae;const K=((ae=Y.data)==null?void 0:ae.data)||{};t(K.username||localStorage.getItem("cms_user")||""),typeof K.otpEnabled=="boolean"?r(K.otpEnabled):typeof K.verifyMethod=="string"&&r(K.verifyMethod==="OTP")}).catch(()=>{});O.useEffect(()=>{M()},[]);const I=async()=>{var Y;v(null),p(!0);try{const ae=((Y=(await PL()).data)==null?void 0:Y.data)||{};s(ae.qrImage||""),u(ae.secret||""),d(""),i("setup")}catch(K){v({ok:!1,text:ed(K,"OTP 등록을 시작하지 못했습니다.")})}finally{p(!1)}},D=async()=>{v(null),p(!0);try{await $L(f),u(""),s(""),d(""),i("done"),r(!0),v({ok:!0,text:"2차 인증이 활성화되었습니다."})}catch(Y){v({ok:!1,text:ed(Y,"코드가 일치하지 않거나 만료되었습니다.")})}finally{p(!1)}},$=()=>{i("idle"),u(""),s(""),d(""),v(null)},T=async()=>{if(window.confirm("Authenticator 2차 인증을 해제하시겠습니까?")){v(null),p(!0);try{await RL(),i("idle"),u(""),s(""),r(!1),v({ok:!0,text:"2차 인증이 해제되었습니다."})}catch(Y){v({ok:!1,text:ed(Y,"OTP 해제에 실패했습니다.")})}finally{p(!1)}}},z=async()=>{if(k(null),!b){k({ok:!1,text:"현재 비밀번호를 입력하세요."});return}if(j.length<nv){k({ok:!1,text:`새 비밀번호는 최소 ${nv}자 이상이어야 합니다.`});return}if(j!==m){k({ok:!1,text:"새 비밀번호가 일치하지 않습니다."});return}if(j===b){k({ok:!1,text:"새 비밀번호는 현재 비밀번호와 달라야 합니다."});return}E(!0);try{await DL(b,j),g(""),x(""),S(""),k({ok:!0,text:"비밀번호가 변경되었습니다."})}catch(Y){k({ok:!1,text:ed(Y,"비밀번호 변경에 실패했습니다.")})}finally{E(!1)}},B="w-full px-3 py-2 rounded-lg bg-ink border border-edge text-sm focus:border-brand outline-none",F=B+" tracking-[0.4em] text-center text-lg",V=({m:Y})=>Y?o.jsxs("div",{className:`flex items-center gap-2 text-sm rounded-lg px-3 py-2 mb-3 border ${Y.ok?"bg-accent/10 border-accent/40 text-accent":"bg-rose-500/10 border-rose-500/40 text-rose-300"}`,children:[Y.ok?o.jsx(IT,{size:16}):o.jsx(tC,{size:16}),Y.text]}):null;return o.jsxs("div",{className:"max-w-2xl",children:[o.jsx("h1",{className:"text-xl font-bold mb-1",children:"마이페이지"}),o.jsx("p",{className:"text-sm text-slate-400 mb-6",children:e&&o.jsxs(o.Fragment,{children:["계정: ",o.jsx("span",{className:"text-slate-200",children:e})]})}),o.jsxs("section",{className:"bg-card border border-edge rounded-xl p-5 mb-6",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[o.jsx(qs,{size:18,className:"text-brand"}),o.jsx("h2",{className:"font-semibold",children:"2차 인증 — Authenticator(OTP)"})]}),o.jsxs("p",{className:"text-xs text-slate-400 mb-4",children:["Google·Microsoft Authenticator 앱으로 6자리 코드를 사용하는 2차 인증을 설정합니다.",n!==null&&o.jsxs("span",{className:"ml-2",children:["현재 상태:"," ",o.jsx("span",{className:n?"text-accent":"text-slate-300",children:n?"OTP 사용 중":"미설정"})]})]}),o.jsx(V,{m:y}),a==="idle"&&o.jsxs("div",{className:"flex flex-wrap gap-2",children:[o.jsxs("button",{onClick:I,disabled:h,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-brand text-ink text-sm font-semibold disabled:opacity-60",children:[o.jsx(gz,{size:16})," ",h?"발급 중…":n?"OTP 재설정 시작":"OTP 등록 시작"]}),n&&o.jsx("button",{onClick:T,disabled:h,className:"px-3 py-2 rounded-lg border border-rose-500/50 text-rose-300 text-sm hover:bg-rose-500/10 disabled:opacity-60",children:"Authenticator 해제"})]}),a==="setup"&&o.jsxs("div",{children:[o.jsxs("ol",{className:"list-decimal list-inside text-sm text-slate-300 leading-7 mb-3",children:[o.jsx("li",{children:"Authenticator 앱에서 아래 QR을 스캔하세요."}),o.jsx("li",{children:"스캔이 안 되면 수동 키를 직접 입력하세요."}),o.jsx("li",{children:"앱에 표시된 6자리 코드를 입력해 확인하세요."})]}),l&&o.jsx("div",{className:"flex justify-center mb-3",children:o.jsx("img",{src:l,alt:"OTP QR",width:200,height:200,style:{background:"#fff",padding:8,borderRadius:8}})}),c&&o.jsxs("div",{className:"mb-4",children:[o.jsx("div",{className:"text-[11px] text-slate-500 mb-1",children:"수동 입력 키"}),o.jsx("code",{className:"block text-xs text-accent bg-ink border border-edge rounded-md px-2 py-1.5 break-all select-all",children:c})]}),o.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"앱에 표시된 6자리 코드"}),o.jsx("input",{value:f,onChange:Y=>d(Y.target.value.replace(/\D/g,"").slice(0,6)),inputMode:"numeric",autoComplete:"one-time-code",maxLength:6,placeholder:"000000",className:F+" mb-3"}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx("button",{onClick:D,disabled:h||f.length!==6,className:"px-4 py-2 rounded-lg bg-brand text-ink text-sm font-semibold disabled:opacity-60",children:h?"확인 중…":"코드 확인 · 활성화"}),o.jsx("button",{onClick:$,disabled:h,className:"px-4 py-2 rounded-lg border border-edge text-sm text-slate-300 hover:bg-card/60",children:"취소"})]})]}),a==="done"&&o.jsx("div",{className:"flex flex-wrap gap-2",children:o.jsx("button",{onClick:T,disabled:h,className:"px-3 py-2 rounded-lg border border-rose-500/50 text-rose-300 text-sm hover:bg-rose-500/10 disabled:opacity-60",children:"Authenticator 해제"})})]}),o.jsxs("section",{className:"bg-card border border-edge rounded-xl p-5",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[o.jsx(cz,{size:18,className:"text-brand"}),o.jsx("h2",{className:"font-semibold",children:"비밀번호 변경"})]}),o.jsx(V,{m:C}),o.jsxs("div",{className:"space-y-3",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"현재 비밀번호"}),o.jsx("input",{type:w?"text":"password",value:b,autoComplete:"current-password",onChange:Y=>g(Y.target.value),className:B})]}),o.jsxs("div",{children:[o.jsxs("label",{className:"block text-xs text-slate-400 mb-1",children:["새 비밀번호 (최소 ",nv,"자)"]}),o.jsx("input",{type:w?"text":"password",value:j,autoComplete:"new-password",onChange:Y=>x(Y.target.value),className:B})]}),o.jsxs("div",{children:[o.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"새 비밀번호 확인"}),o.jsx("input",{type:w?"text":"password",value:m,autoComplete:"new-password",onChange:Y=>S(Y.target.value),className:B})]}),o.jsxs("label",{className:"flex items-center gap-1.5 text-xs text-slate-400 cursor-pointer select-none",children:[o.jsx("button",{type:"button",onClick:()=>A(!w),className:"text-slate-400 hover:text-brand",children:w?o.jsx(J5,{size:15}):o.jsx(tu,{size:15})}),"비밀번호 표시"]}),o.jsx("button",{onClick:z,disabled:_,className:"px-4 py-2 rounded-lg bg-brand text-ink text-sm font-semibold disabled:opacity-60",children:_?"변경 중…":"비밀번호 변경"})]})]})]})}function Or({children:e}){return o.jsxs("div",{className:"uiws-scope",style:{background:"var(--uiws-bg)",color:"var(--uiws-text)",minHeight:"100%",margin:-24,padding:24,borderRadius:0},children:[o.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:12},children:o.jsx("div",{style:{width:150},children:o.jsx(lC,{})})}),e]})}const k1={background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,boxShadow:"var(--uiws-shadow)"};function Fr({title:e,subtitle:t,actions:n}){return o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-end",marginBottom:20},children:[o.jsxs("div",{children:[o.jsx("h1",{style:{fontSize:22,fontWeight:700,color:"var(--uiws-text)"},children:e}),t&&o.jsx("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginTop:4},children:t})]}),o.jsx("div",{style:{display:"flex",gap:8},children:n})]})}function zu({children:e,style:t}){return o.jsx("div",{style:{...k1,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 o.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 Oe({value:e,onChange:t,placeholder:n,type:r="text",style:a}){return o.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 Ne({label:e,children:t}){return o.jsxs("label",{style:{display:"block",marginBottom:12},children:[o.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:e}),t]})}function Ei({children:e}){return o.jsx(zu,{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:16},children:e})}function Dl({columns:e,rows:t,rowKey:n,onRowClick:r,empty:a="데이터가 없습니다."}){return o.jsx("div",{style:{...k1,overflow:"hidden"},children:o.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[o.jsx("thead",{children:o.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:e.map(i=>o.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))})}),o.jsx("tbody",{children:t.length===0?o.jsx("tr",{children:o.jsx("td",{colSpan:e.length,style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:a})}):t.map(i=>o.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=>o.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 O$({page:e,totalPages:t,onChange:n}){return t<=1?null:o.jsxs("div",{style:{display:"flex",gap:6,justifyContent:"center",marginTop:16},children:[o.jsx(se,{variant:"ghost",disabled:e<=0,onClick:()=>n(e-1),children:"이전"}),o.jsxs("span",{style:{alignSelf:"center",fontSize:13,color:"var(--uiws-text-muted)"},children:[e+1," / ",t]}),o.jsx(se,{variant:"ghost",disabled:e>=t-1,onClick:()=>n(e+1),children:"다음"})]})}function zl({yn:e,yes:t="읽음",no:n="안읽음"}){const r=e==="Y";return o.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 jr({title:e,onClose:t,children:n,footer:r}){return o.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:o.jsxs("div",{onClick:a=>a.stopPropagation(),style:{...k1,width:"min(560px, 92vw)",maxHeight:"88vh",overflow:"auto",padding:22},children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[o.jsx("h2",{style:{fontSize:17,fontWeight:700,color:"var(--uiws-text)"},children:e}),o.jsx("button",{onClick:t,style:{background:"none",border:"none",color:"var(--uiws-text-muted)",fontSize:20,cursor:"pointer"},children:"×"})]}),o.jsx("div",{children:n}),r&&o.jsx("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",marginTop:18},children:r})]})})}function nr({label:e="불러오는 중..."}){return o.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)",fontSize:13},children:e})}const JA={ONGOING:"진행중",DONE:"종료"};function jpe(){const[e,t]=O.useState([]),[n,r]=O.useState(0),[a,i]=O.useState(0),[l,s]=O.useState([]),[c,u]=O.useState(""),[f,d]=O.useState(""),[h,p]=O.useState(!1),[y,v]=O.useState(!1),[b,g]=O.useState(null),j=async()=>{p(!0);try{const w=(await DB({page:n,size:20,progressCd:c||void 0})).data.data;t(w.content??[]),i(w.totalPages??0);const A=await zB({});s(A.data.data??[])}finally{p(!1)}};O.useEffect(()=>{j()},[n,c]);const x=[{key:"workDate",header:"근무일자",width:120},{key:"title",header:"제목"},{key:"writerNm",header:"작성자",width:120},{key:"progressCd",header:"진행",width:90,render:S=>JA[S.progressCd]??S.progressCd},{key:"commentCount",header:"댓글",width:70,align:"center"}],m=async S=>{const w=await BB(S.worklogId);g(w.data.data)};return o.jsxs("div",{className:"uiws-scope",children:[o.jsx(Fr,{title:"업무일지",subtitle:"UIWS 이식 · 업무일지 작성/조회/진행관리",actions:o.jsx(se,{onClick:()=>v(!0),children:"+ 업무일지 작성"})}),o.jsx("div",{style:{display:"flex",gap:10,marginBottom:16,flexWrap:"wrap"},children:l.map(S=>o.jsxs("div",{onClick:()=>{u(c===S.progressCd?"":S.progressCd),r(0)},style:{cursor:"pointer",padding:"12px 18px",borderRadius:10,minWidth:130,background:"var(--uiws-surface)",border:`1px solid ${c===S.progressCd?"var(--uiws-primary)":"var(--uiws-border)"}`},children:[o.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)"},children:S.progressNm}),o.jsx("div",{style:{fontSize:24,fontWeight:700,color:"var(--uiws-primary)"},children:S.count})]},S.progressCd))}),o.jsxs(Ei,{children:[o.jsx(Oe,{value:f,onChange:d,placeholder:"제목 검색",style:{minWidth:220}}),o.jsx(se,{variant:"ghost",onClick:()=>{r(0),j()},children:"검색"}),c&&o.jsxs(se,{variant:"ghost",onClick:()=>u(""),children:["필터 해제: ",JA[c]??c]})]}),h?o.jsx(nr,{}):o.jsxs(o.Fragment,{children:[o.jsx(Dl,{columns:x,rows:e,rowKey:S=>S.worklogId,onRowClick:m,empty:"업무일지가 없습니다."}),o.jsx(O$,{page:n,totalPages:a,onChange:r})]}),y&&o.jsx(Spe,{onClose:()=>v(!1),onSaved:()=>{v(!1),j()}}),b&&o.jsx(wpe,{detail:b,onClose:()=>g(null),onChanged:()=>{g(null),j()}})]})}function Spe({onClose:e,onSaved:t}){const[n,r]=O.useState(""),[a,i]=O.useState(localStorage.getItem("cms_user")||"admin"),[l,s]=O.useState(new Date().toISOString().slice(0,10)),[c,u]=O.useState("NORMAL"),[f,d]=O.useState(""),h=async()=>{var p,y;d("");try{await LB({title:n,writerId:a,workDate:l,workStatusCd:c,progressCd:"ONGOING",details:[]}),t()}catch(v){d(((y=(p=v==null?void 0:v.response)==null?void 0:p.data)==null?void 0:y.message)||"저장 실패")}};return o.jsxs(jr,{title:"업무일지 작성",onClose:e,footer:o.jsxs(o.Fragment,{children:[o.jsx(se,{variant:"ghost",onClick:e,children:"취소"}),o.jsx(se,{onClick:h,children:"저장"})]}),children:[o.jsx(Ne,{label:"제목",children:o.jsx(Oe,{value:n,onChange:r,style:{width:"100%"}})}),o.jsx(Ne,{label:"작성자 ID",children:o.jsx(Oe,{value:a,onChange:i,style:{width:"100%"}})}),o.jsx(Ne,{label:"근무일자",children:o.jsx(Oe,{type:"date",value:l,onChange:s,style:{width:"100%"}})}),o.jsx(Ne,{label:"근무상태 코드",children:o.jsx(Oe,{value:c,onChange:u,style:{width:"100%"}})}),f&&o.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:f})]})}function wpe({detail:e,onClose:t,onChanged:n}){var u;const[r,a]=O.useState(""),[i,l]=O.useState(""),s=async()=>{await IB(e.worklogId),n()},c=async()=>{var f,d;l("");try{await UB(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 o.jsxs(jr,{title:e.title,onClose:t,footer:o.jsxs(o.Fragment,{children:[o.jsx(se,{variant:"danger",onClick:s,children:"삭제"}),o.jsx(se,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[o.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:12},children:[e.writerNm," · ",e.workDate," · ",e.progressCd]}),o.jsxs("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:["시간대별 상세 ",((u=e.details)==null?void 0:u.length)??0,"건"]}),o.jsxs("div",{style:{marginTop:14},children:[o.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:8},children:"댓글"}),(e.comments??[]).map(f=>o.jsxs("div",{style:{padding:"8px 10px",borderRadius:8,background:"var(--uiws-surface-2)",marginBottom:6,fontSize:13},children:[o.jsx("b",{children:f.writerNm})," · ",o.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:f.createdAt}),o.jsx("br",{}),f.cmtContent]},f.cmtId)),o.jsxs("div",{style:{display:"flex",gap:8,marginTop:8},children:[o.jsx(Oe,{value:r,onChange:a,placeholder:"댓글 입력(관리자/매니저)",style:{flex:1}}),o.jsx(se,{onClick:c,children:"등록"})]}),i&&o.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:12,marginTop:6},children:i})]})]})}const Ope=["일","월","화","수","목","금","토"];function Ape(){const[e,t]=O.useState(new Date),[n,r]=O.useState("PERSONAL"),[a,i]=O.useState([]),[l,s]=O.useState(!1),[c,u]=O.useState(null),[f,d]=O.useState(null),h=`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}`,p=async()=>{s(!0);try{const m=await kB({type:n,view:"month",baseDate:`${h}-01`});i(m.data.data??[])}finally{s(!1)}};O.useEffect(()=>{p()},[h,n]);const v=new Date(e.getFullYear(),e.getMonth(),1).getDay(),b=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),g=[...Array(v).fill(null),...Array.from({length:b},(m,S)=>S+1)],j=m=>{const S=`${h}-${String(m).padStart(2,"0")}`;return a.filter(w=>(w.startDt??"").slice(0,10)<=S&&S<=(w.endDt??"").slice(0,10))},x=m=>t(new Date(e.getFullYear(),e.getMonth()+m,1));return o.jsxs("div",{className:"uiws-scope",children:[o.jsx(Fr,{title:"일정",subtitle:"UIWS 이식 · 개인/부서 일정 달력",actions:o.jsx(se,{onClick:()=>u(`${h}-01`),children:"+ 일정 등록"})}),o.jsxs(zu,{style:{display:"flex",gap:10,alignItems:"center",marginBottom:16},children:[o.jsx(se,{variant:"ghost",onClick:()=>x(-1),children:"‹ 이전"}),o.jsx("div",{style:{fontWeight:700,minWidth:130,textAlign:"center",color:"var(--uiws-text)"},children:h}),o.jsx(se,{variant:"ghost",onClick:()=>x(1),children:"다음 ›"}),o.jsx("div",{style:{flex:1}}),o.jsx(se,{variant:n==="PERSONAL"?"primary":"ghost",onClick:()=>r("PERSONAL"),children:"개인"}),o.jsx(se,{variant:n==="DEPT"?"primary":"ghost",onClick:()=>r("DEPT"),children:"부서"})]}),l?o.jsx(nr,{}):o.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"hidden"},children:o.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(7,1fr)"},children:[Ope.map((m,S)=>o.jsx("div",{style:{padding:"10px 0",textAlign:"center",fontSize:12,fontWeight:600,color:S===0?"var(--uiws-danger)":"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:m},m)),g.map((m,S)=>o.jsxs("div",{onClick:()=>m&&u(`${h}-${String(m).padStart(2,"0")}`),style:{minHeight:96,padding:6,borderRight:"1px solid var(--uiws-border)",borderBottom:"1px solid var(--uiws-border)",cursor:m?"pointer":"default"},children:[m&&o.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:4},children:m}),m&&j(m).slice(0,3).map(w=>o.jsx("div",{onClick:A=>{A.stopPropagation(),$B(w.scheduleId).then(_=>d(_.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:w.title},w.scheduleId))]},S))]})}),c&&o.jsx(Epe,{date:c,type:n,onClose:()=>u(null),onSaved:()=>{u(null),p()}}),f&&o.jsx(_pe,{detail:f,onClose:()=>d(null),onDeleted:()=>{d(null),p()}})]})}function Epe({date:e,type:t,onClose:n,onSaved:r}){const[a,i]=O.useState(""),[l,s]=O.useState(`${e}T09:00:00`),[c,u]=O.useState(`${e}T18:00:00`),[f,d]=O.useState(""),[h,p]=O.useState(""),y=async()=>{var v,b;p("");try{await PB({scheType:t,title:a,startDt:l,endDt:c,content:f,attachmentIds:[]}),r()}catch(g){p(((b=(v=g==null?void 0:g.response)==null?void 0:v.data)==null?void 0:b.message)||"저장 실패")}};return o.jsxs(jr,{title:"일정 등록",onClose:n,footer:o.jsxs(o.Fragment,{children:[o.jsx(se,{variant:"ghost",onClick:n,children:"취소"}),o.jsx(se,{onClick:y,children:"저장"})]}),children:[o.jsx(Ne,{label:"제목",children:o.jsx(Oe,{value:a,onChange:i,style:{width:"100%"}})}),o.jsx(Ne,{label:"시작(yyyy-MM-ddTHH:mm:ss)",children:o.jsx(Oe,{value:l,onChange:s,style:{width:"100%"}})}),o.jsx(Ne,{label:"종료",children:o.jsx(Oe,{value:c,onChange:u,style:{width:"100%"}})}),o.jsx(Ne,{label:"내용",children:o.jsx(Oe,{value:f,onChange:d,style:{width:"100%"}})}),h&&o.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}function _pe({detail:e,onClose:t,onDeleted:n}){const r=async()=>{await RB(e.scheduleId),n()};return o.jsxs(jr,{title:e.title,onClose:t,footer:o.jsxs(o.Fragment,{children:[o.jsx(se,{variant:"danger",onClick:r,children:"삭제"}),o.jsx(se,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[o.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:8},children:[e.scheType," · ",e.startDt," ~ ",e.endDt]}),o.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)"},children:e.content||"내용 없음"})]})}function Npe(){const[e,t]=O.useState("received"),[n,r]=O.useState([]),[a,i]=O.useState(0),[l,s]=O.useState(0),[c,u]=O.useState(""),[f,d]=O.useState(!1),[h,p]=O.useState(!1),[y,v]=O.useState(null),b=async()=>{d(!0);try{const w=(await(e==="received"?CB:NB)({page:a,size:20,titleKeyword:c||void 0})).data.data;r(w.content??[]),s(w.totalPages??0)}finally{d(!1)}};O.useEffect(()=>{b()},[e,a]);const g=[{key:"title",header:"제목"},{key:"senderNm",header:"보낸사람",width:130},{key:"sentAt",header:"받은시각",width:170},{key:"readYn",header:"상태",width:90,render:m=>o.jsx(zl,{yn:m.readYn})}],j=[{key:"title",header:"제목"},{key:"receiverSummary",header:"받는사람",width:160},{key:"open",header:"개봉",width:100,align:"center",render:m=>`${m.openCount}/${m.totalCount}`},{key:"sentAt",header:"보낸시각",width:170}],x=async m=>{const S=e==="received"?await MB(m.messageId):await TB(m.messageId);v({...S.data.data,_tab:e}),e==="received"&&b()};return o.jsxs("div",{className:"uiws-scope",children:[o.jsx(Fr,{title:"쪽지",subtitle:"UIWS 이식 · 사내 쪽지 송수신",actions:o.jsx(se,{onClick:()=>p(!0),children:"+ 쪽지 보내기"})}),o.jsxs(Ei,{children:[o.jsx(se,{variant:e==="received"?"primary":"ghost",onClick:()=>{t("received"),i(0)},children:"받은쪽지함"}),o.jsx(se,{variant:e==="sent"?"primary":"ghost",onClick:()=>{t("sent"),i(0)},children:"보낸쪽지함"}),o.jsx("div",{style:{flex:1}}),o.jsx(Oe,{value:c,onChange:u,placeholder:"제목 검색",style:{minWidth:200}}),o.jsx(se,{variant:"ghost",onClick:()=>{i(0),b()},children:"검색"})]}),f?o.jsx(nr,{}):o.jsxs(o.Fragment,{children:[o.jsx(Dl,{columns:e==="received"?g:j,rows:n,rowKey:m=>m.messageId,onRowClick:x,empty:"쪽지가 없습니다."}),o.jsx(O$,{page:a,totalPages:l,onChange:i})]}),h&&o.jsx(Tpe,{onClose:()=>p(!1),onSent:()=>{p(!1),b()}}),y&&o.jsx(Cpe,{detail:y,onClose:()=>v(null)})]})}function Tpe({onClose:e,onSent:t}){const[n,r]=O.useState(""),[a,i]=O.useState(""),[l,s]=O.useState(""),[c,u]=O.useState(""),f=async()=>{var d,h;u("");try{await _B({title:a,content:l,receivers:[{receiverId:n,rcvType:"RECV"}]}),t()}catch(p){u(((h=(d=p==null?void 0:p.response)==null?void 0:d.data)==null?void 0:h.message)||"전송 실패")}};return o.jsxs(jr,{title:"쪽지 보내기",onClose:e,footer:o.jsxs(o.Fragment,{children:[o.jsx(se,{variant:"ghost",onClick:e,children:"취소"}),o.jsx(se,{onClick:f,children:"보내기"})]}),children:[o.jsx(Ne,{label:"받는사람 ID",children:o.jsx(Oe,{value:n,onChange:r,style:{width:"100%"}})}),o.jsx(Ne,{label:"제목",children:o.jsx(Oe,{value:a,onChange:i,style:{width:"100%"}})}),o.jsx(Ne,{label:"내용",children:o.jsx(Oe,{value:l,onChange:s,style:{width:"100%"}})}),c&&o.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:c})]})}function Cpe({detail:e,onClose:t}){return o.jsxs(jr,{title:e.title,onClose:t,footer:o.jsx(se,{variant:"ghost",onClick:t,children:"닫기"}),children:[o.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:10},children:[e._tab==="received"?`보낸사람: ${e.senderNm}`:`개봉 ${e.openCount}/${e.totalCount}`," · ",e.sentAt]}),o.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)",whiteSpace:"pre-wrap"},children:e.content}),e._tab==="sent"&&e.receivers&&o.jsxs("div",{style:{marginTop:14},children:[o.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:"수신자 개봉현황"}),e.receivers.map((n,r)=>o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:13,padding:"4px 0"},children:[o.jsxs("span",{children:[n.receiverNm," (",n.rcvType,")"]}),o.jsx(zl,{yn:n.readYn})]},r))]})]})}function Mpe(){const[e,t]=O.useState("personal"),[n,r]=O.useState(null),[a,i]=O.useState(!1),l=new Date().toISOString().slice(0,10),s=new Date(Date.now()-6*864e5).toISOString().slice(0,10),[c,u]=O.useState(s),[f,d]=O.useState(l),h=async()=>{i(!0);try{const v=await(e==="personal"?HB:qB)({fromDate:c,toDate:f});r(v.data.data)}finally{i(!1)}};O.useEffect(()=>{h()},[e]);const p=n?[...n.fixedColumns,...n.dynamicColumns]:[];return o.jsxs("div",{className:"uiws-scope",children:[o.jsx(Fr,{title:"업무통계",subtitle:"UIWS 이식 · 근무현황 동적 피벗"}),o.jsxs(Ei,{children:[o.jsx(se,{variant:e==="personal"?"primary":"ghost",onClick:()=>t("personal"),children:"개인별 근무현황"}),o.jsx(se,{variant:e==="company"?"primary":"ghost",onClick:()=>t("company"),children:"업체별 근무현황"}),o.jsx("div",{style:{flex:1}}),o.jsx(Oe,{type:"date",value:c,onChange:u}),o.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:"~"}),o.jsx(Oe,{type:"date",value:f,onChange:d}),o.jsx(se,{variant:"ghost",onClick:h,children:"조회"})]}),a?o.jsx(nr,{}):!n||n.rows.length===0?o.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:"집계 데이터가 없습니다."}):o.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"auto"},children:o.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[o.jsx("thead",{children:o.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:p.map(y=>o.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:y.label},y.key))})}),o.jsx("tbody",{children:n.rows.map((y,v)=>o.jsx("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:p.map(b=>o.jsx("td",{style:{padding:"10px 14px"},children:String(y[b.key]??"")},b.key))},v))})]})})]})}function Fb(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 kpe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(!1),[l,s]=O.useState(""),[c,u]=O.useState(new Set),[f,d]=O.useState(null),[h,p]=O.useState(!1),y=async(j=n)=>{var x;i(!0),s("");try{const m=await FB(j||void 0);t(((x=m.data.data)==null?void 0:x.content)??[]),u(new Set)}catch(m){s(Fb(m))}finally{i(!1)}};O.useEffect(()=>{y("")},[]);const v=j=>u(x=>{const m=new Set(x);return m.has(j)?m.delete(j):m.add(j),m}),b=async()=>{if(c.size!==0&&window.confirm(`선택한 권한 ${c.size}건을 삭제하시겠습니까?`))try{await YB([...c]),await y()}catch(j){s(Fb(j))}},g=[{key:"sel",header:"",width:44,align:"center",render:j=>o.jsx("input",{type:"checkbox",checked:c.has(j.roleId),onClick:x=>x.stopPropagation(),onChange:()=>v(j.roleId)})},{key:"roleId",header:"권한ID",width:180},{key:"roleNm",header:"권한명"},{key:"roleDesc",header:"설명"},{key:"useYn",header:"사용",width:80,align:"center",render:j=>o.jsx(zl,{yn:j.useYn,yes:"사용",no:"미사용"})}];return o.jsxs("div",{className:"uiws-scope",children:[o.jsx(Fr,{title:"권한 관리",subtitle:"시스템관리(권한) · 역할(Role) 등록/수정/삭제 — RBAC",actions:o.jsxs(o.Fragment,{children:[o.jsx(se,{variant:"danger",onClick:b,disabled:c.size===0,children:"선택 삭제"}),o.jsx(se,{onClick:()=>{d(null),p(!0)},children:"+ 권한 등록"})]})}),l&&o.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:l}),o.jsxs(Ei,{children:[o.jsx(Oe,{value:n,onChange:r,placeholder:"권한ID/권한명 검색",style:{minWidth:240}}),o.jsx(se,{variant:"ghost",onClick:()=>y(),children:"검색"})]}),a?o.jsx(nr,{}):o.jsx(Dl,{columns:g,rows:e,rowKey:j=>j.roleId,onRowClick:j=>{d(j),p(!0)},empty:"등록된 권한이 없습니다."}),h&&o.jsx(Ppe,{role:f,onClose:()=>p(!1),onSaved:()=>{p(!1),y()}})]})}function Ppe({role:e,onClose:t,onSaved:n}){const r=!!e,[a,i]=O.useState((e==null?void 0:e.roleId)??""),[l,s]=O.useState((e==null?void 0:e.roleNm)??""),[c,u]=O.useState((e==null?void 0:e.roleDesc)??""),[f,d]=O.useState((e==null?void 0:e.useYn)??"Y"),[h,p]=O.useState(""),y=async()=>{if(p(""),!l.trim()){p("권한명은 필수입니다.");return}if(!r&&!a.trim()){p("권한ID는 필수입니다.");return}try{const v={roleId:a,roleNm:l,roleDesc:c,useYn:f};r?await VB(a,v):await GB(v),n()}catch(v){p(Fb(v))}};return o.jsxs(jr,{title:r?"권한 수정":"권한 등록",onClose:t,footer:o.jsxs(o.Fragment,{children:[o.jsx(se,{variant:"ghost",onClick:t,children:"취소"}),o.jsx(se,{onClick:y,children:"저장"})]}),children:[o.jsx(Ne,{label:"권한ID",children:o.jsx(Oe,{value:a,onChange:i,style:{width:"100%",opacity:r?.6:1}})}),o.jsx(Ne,{label:"권한명",children:o.jsx(Oe,{value:l,onChange:s,style:{width:"100%"}})}),o.jsx(Ne,{label:"설명",children:o.jsx(Oe,{value:c,onChange:u,style:{width:"100%"}})}),o.jsx(Ne,{label:"사용 여부",children:o.jsxs("select",{value:f,onChange:v=>d(v.target.value),style:{width:"100%",padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)"},children:[o.jsx("option",{value:"Y",children:"사용"}),o.jsx("option",{value:"N",children:"미사용"})]})}),h&&o.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}function rv(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 $pe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState([]),[l,s]=O.useState(!1),[c,u]=O.useState(!1),[f,d]=O.useState(!1),[h,p]=O.useState(""),[y,v]=O.useState("");O.useEffect(()=>{s(!0),KB().then(x=>{var S;const m=((S=x.data.data)==null?void 0:S.content)??[];t(m),m.length>0&&r(m[0].roleId)}).catch(x=>v(rv(x))).finally(()=>s(!1))},[]),O.useEffect(()=>{n&&(u(!0),p(""),v(""),XB(n).then(x=>i(x.data.data??[])).catch(x=>v(rv(x))).finally(()=>u(!1)))},[n]);const b=(x,m)=>i(S=>S.map(w=>{if(w.menuId!==x)return w;const A=w[m]==="Y"?"N":"Y";return m==="writeYn"&&A==="Y"?{...w,writeYn:"Y",readYn:"Y"}:m==="readYn"&&A==="N"?{...w,readYn:"N",writeYn:"N"}:{...w,[m]:A}})),g=(x,m)=>i(S=>S.map(w=>m&&x==="writeYn"?{...w,writeYn:"Y",readYn:"Y"}:!m&&x==="readYn"?{...w,readYn:"N",writeYn:"N"}:{...w,[x]:m?"Y":"N"})),j=async()=>{d(!0),p(""),v("");try{await WB(n,a),p("메뉴 권한 매핑이 저장되었습니다.")}catch(x){v(rv(x))}finally{d(!1)}};return o.jsxs("div",{className:"uiws-scope",children:[o.jsx(Fr,{title:"역할-메뉴 권한",subtitle:"시스템관리(권한) · 역할별 메뉴 접근(읽기/쓰기) 매핑 — RBAC 핵심",actions:o.jsx(se,{onClick:j,disabled:f||!n,children:f?"저장 중...":"매핑 저장"})}),y&&o.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:y}),h&&o.jsx("div",{style:{color:"var(--uiws-success)",fontSize:13,marginBottom:12},children:h}),o.jsxs("div",{style:{display:"grid",gridTemplateColumns:"260px 1fr",gap:16,alignItems:"start"},children:[o.jsxs(zu,{style:{padding:0},children:[o.jsx("div",{style:{padding:"12px 16px",fontSize:12,fontWeight:600,color:"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:"역할 목록"}),l?o.jsx(nr,{}):o.jsxs("div",{children:[e.length===0&&o.jsx("div",{style:{padding:20,fontSize:13,color:"var(--uiws-text-faint)"},children:"역할이 없습니다."}),e.map(x=>o.jsxs("div",{onClick:()=>r(x.roleId),style:{padding:"11px 16px",cursor:"pointer",fontSize:13,borderLeft:`3px solid ${n===x.roleId?"var(--uiws-primary)":"transparent"}`,background:n===x.roleId?"var(--uiws-primary-soft)":"transparent",color:n===x.roleId?"var(--uiws-primary)":"var(--uiws-text)"},children:[o.jsx("div",{style:{fontWeight:600},children:x.roleNm}),o.jsx("div",{style:{fontSize:11,color:"var(--uiws-text-muted)"},children:x.roleId})]},x.roleId))]})]}),o.jsx(zu,{style:{padding:0,overflow:"hidden"},children:c?o.jsx(nr,{}):o.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[o.jsx("thead",{children:o.jsxs("tr",{style:{background:"var(--uiws-surface-2)"},children:[o.jsx("th",{style:{textAlign:"left",padding:"11px 14px",color:"var(--uiws-text-muted)",fontWeight:600,fontSize:12,borderBottom:"1px solid var(--uiws-border)"},children:"메뉴"}),o.jsxs("th",{style:{width:120,padding:"8px 14px",color:"var(--uiws-text-muted)",fontSize:12,borderBottom:"1px solid var(--uiws-border)"},children:["읽기",o.jsx("br",{}),o.jsxs("label",{style:{fontWeight:400,fontSize:11},children:[o.jsx("input",{type:"checkbox",onChange:x=>g("readYn",x.target.checked)})," 전체"]})]}),o.jsxs("th",{style:{width:120,padding:"8px 14px",color:"var(--uiws-text-muted)",fontSize:12,borderBottom:"1px solid var(--uiws-border)"},children:["쓰기",o.jsx("br",{}),o.jsxs("label",{style:{fontWeight:400,fontSize:11},children:[o.jsx("input",{type:"checkbox",onChange:x=>g("writeYn",x.target.checked)})," 전체"]})]})]})}),o.jsx("tbody",{children:a.length===0?o.jsx("tr",{children:o.jsx("td",{colSpan:3,style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:"매핑 가능한 메뉴가 없습니다."})}):a.map(x=>o.jsxs("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:[o.jsxs("td",{style:{padding:"11px 14px"},children:[x.menuNm," ",o.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontSize:12},children:["(",x.menuId,")"]})]}),o.jsx("td",{style:{padding:"11px 14px",textAlign:"center"},children:o.jsx("input",{type:"checkbox",checked:x.readYn==="Y",onChange:()=>b(x.menuId,"readYn")})}),o.jsx("td",{style:{padding:"11px 14px",textAlign:"center"},children:o.jsx("input",{type:"checkbox",checked:x.writeYn==="Y",onChange:()=>b(x.menuId,"writeYn")})})]},x.menuId))})]})})]})]})}function Od(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 Rpe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(null),[l,s]=O.useState(""),[c,u]=O.useState(!1),[f,d]=O.useState(!1),[h,p]=O.useState(""),[y,v]=O.useState({open:!1,edit:null}),b=async(m="")=>{var S;u(!0),p("");try{const A=((S=(await QB(m||void 0)).data.data)==null?void 0:S.content)??[];t(A),!n&&A.length>0&&r(A[0].grpCd)}catch(w){p(Od(w))}finally{u(!1)}};O.useEffect(()=>{b("")},[]);const g=async(m=n)=>{if(!m){i(null);return}d(!0);try{const w=(await ZB(m)).data.data;i(w?{...w,values:w.values??[]}:null)}catch(S){p(Od(S))}finally{d(!1)}};O.useEffect(()=>{g()},[n]);const j=async m=>{if(window.confirm(`코드그룹 '${m}' 와 하위 코드를 삭제하시겠습니까?`))try{await tI(m),n===m&&(r(""),i(null)),await b(l)}catch(S){p(Od(S))}},x=[{key:"codeVal",header:"코드값",width:170},{key:"codeNm",header:"코드명"},{key:"sortOrd",header:"정렬",width:70,align:"center"},{key:"useYn",header:"사용",width:80,align:"center",render:m=>o.jsx(zl,{yn:m.useYn,yes:"사용",no:"미사용"})}];return o.jsxs("div",{className:"uiws-scope",children:[o.jsx(Fr,{title:"공통코드 관리",subtitle:"시스템관리(권한) · 코드그룹/코드값 일괄 CRUD",actions:o.jsx(se,{onClick:()=>v({open:!0,edit:null}),children:"+ 코드그룹 등록"})}),h&&o.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:h}),o.jsxs(Ei,{children:[o.jsx(Oe,{value:l,onChange:s,placeholder:"코드그룹 검색",style:{minWidth:220}}),o.jsx(se,{variant:"ghost",onClick:()=>b(l),children:"검색"})]}),o.jsxs("div",{style:{display:"grid",gridTemplateColumns:"300px 1fr",gap:16,alignItems:"start"},children:[o.jsxs(zu,{style:{padding:0},children:[o.jsx("div",{style:{padding:"12px 16px",fontSize:12,fontWeight:600,color:"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:"코드그룹"}),c?o.jsx(nr,{}):o.jsxs("div",{children:[e.length===0&&o.jsx("div",{style:{padding:20,fontSize:13,color:"var(--uiws-text-faint)"},children:"코드그룹이 없습니다."}),e.map(m=>o.jsxs("div",{onClick:()=>r(m.grpCd),style:{padding:"11px 16px",cursor:"pointer",fontSize:13,display:"flex",justifyContent:"space-between",alignItems:"center",borderLeft:`3px solid ${n===m.grpCd?"var(--uiws-primary)":"transparent"}`,background:n===m.grpCd?"var(--uiws-primary-soft)":"transparent"},children:[o.jsxs("div",{children:[o.jsx("div",{style:{fontWeight:600,color:n===m.grpCd?"var(--uiws-primary)":"var(--uiws-text)"},children:m.grpNm}),o.jsx("div",{style:{fontSize:11,color:"var(--uiws-text-muted)"},children:m.grpCd})]}),o.jsx("div",{style:{display:"flex",gap:6},onClick:S=>S.stopPropagation(),children:o.jsx(se,{variant:"ghost",onClick:()=>j(m.grpCd),children:"삭제"})})]},m.grpCd))]})]}),o.jsxs("div",{children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:12},children:[o.jsxs("div",{style:{fontSize:14,fontWeight:600,color:"var(--uiws-text)"},children:["코드값 ",n&&o.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontWeight:400},children:["(",n,")"]})]}),o.jsx(se,{onClick:()=>a&&v({open:!0,edit:a}),disabled:!a,children:"그룹·코드값 편집"})]}),f?o.jsx(nr,{}):o.jsx(Dl,{columns:x,rows:(a==null?void 0:a.values)??[],rowKey:m=>`${n}:${m.codeVal}`,empty:n?"코드값이 없습니다.":"코드그룹을 선택하세요."})]})]}),y.open&&o.jsx(zpe,{grp:y.edit,onClose:()=>v({open:!1,edit:null}),onSaved:async m=>{v({open:!1,edit:null}),await b(l),m?(r(m),await g(m)):await g()}})]})}function Dpe({value:e,onChange:t}){return o.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:[o.jsx("option",{value:"Y",children:"사용"}),o.jsx("option",{value:"N",children:"미사용"})]})}function zpe({grp:e,onClose:t,onSaved:n}){const r=!!e,[a,i]=O.useState((e==null?void 0:e.grpCd)??""),[l,s]=O.useState((e==null?void 0:e.grpNm)??""),[c,u]=O.useState((e==null?void 0:e.useYn)??"Y"),[f,d]=O.useState(e!=null&&e.values?e.values.map(x=>({...x})):[]),[h,p]=O.useState(""),y=()=>d(x=>[...x,{codeVal:"",codeNm:"",sortOrd:x.length+1,useYn:"Y"}]),v=(x,m,S)=>d(w=>w.map((A,_)=>_===x?{...A,[m]:S}:A)),b=x=>d(m=>m.filter((S,w)=>w!==x)),g=async()=>{if(p(""),!r&&!a.trim()){p("그룹코드는 필수입니다.");return}if(!l.trim()){p("그룹명은 필수입니다.");return}for(const x of f)if(!x.codeVal.trim()||!x.codeNm.trim()){p("코드값과 코드명은 필수입니다.");return}try{const x={grpCd:a,grpNm:l,useYn:c,values:f.map(m=>({grpCd:a,codeVal:m.codeVal,codeNm:m.codeNm,sortOrd:Number(m.sortOrd)||0,useYn:m.useYn}))};r?await eI(a,x):await JB(x),n(a)}catch(x){p(Od(x))}},j={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 o.jsxs(jr,{title:r?"코드그룹·코드값 편집":"코드그룹 등록",onClose:t,footer:o.jsxs(o.Fragment,{children:[o.jsx(se,{variant:"ghost",onClick:t,children:"취소"}),o.jsx(se,{onClick:g,children:"저장"})]}),children:[o.jsx(Ne,{label:"그룹코드",children:o.jsx(Oe,{value:a,onChange:i,style:{width:"100%",opacity:r?.6:1}})}),o.jsx(Ne,{label:"그룹명",children:o.jsx(Oe,{value:l,onChange:s,style:{width:"100%"}})}),o.jsx(Ne,{label:"사용 여부",children:o.jsx(Dpe,{value:c,onChange:u})}),o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:8,marginBottom:8},children:[o.jsxs("div",{style:{fontSize:12,fontWeight:600,color:"var(--uiws-text-muted)"},children:["코드값 (",f.length,")"]}),o.jsx(se,{variant:"ghost",onClick:y,children:"+ 코드값 추가"})]}),o.jsx("div",{style:{border:"1px solid var(--uiws-border)",borderRadius:8,overflow:"hidden"},children:o.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12,color:"var(--uiws-text)"},children:[o.jsx("thead",{children:o.jsxs("tr",{style:{background:"var(--uiws-surface-2)"},children:[o.jsx("th",{style:{padding:"7px 8px",textAlign:"left",color:"var(--uiws-text-muted)",fontWeight:600},children:"코드값"}),o.jsx("th",{style:{padding:"7px 8px",textAlign:"left",color:"var(--uiws-text-muted)",fontWeight:600},children:"코드명"}),o.jsx("th",{style:{padding:"7px 8px",width:64,color:"var(--uiws-text-muted)",fontWeight:600},children:"정렬"}),o.jsx("th",{style:{padding:"7px 8px",width:76,color:"var(--uiws-text-muted)",fontWeight:600},children:"사용"}),o.jsx("th",{style:{padding:"7px 8px",width:44}})]})}),o.jsx("tbody",{children:f.length===0?o.jsx("tr",{children:o.jsx("td",{colSpan:5,style:{padding:16,textAlign:"center",color:"var(--uiws-text-faint)"},children:"코드값이 없습니다."})}):f.map((x,m)=>o.jsxs("tr",{style:{borderTop:"1px solid var(--uiws-border)"},children:[o.jsx("td",{style:{padding:"5px 8px"},children:o.jsx("input",{value:x.codeVal,onChange:S=>v(m,"codeVal",S.target.value),style:j})}),o.jsx("td",{style:{padding:"5px 8px"},children:o.jsx("input",{value:x.codeNm,onChange:S=>v(m,"codeNm",S.target.value),style:j})}),o.jsx("td",{style:{padding:"5px 8px"},children:o.jsx("input",{type:"number",value:String(x.sortOrd),onChange:S=>v(m,"sortOrd",Number(S.target.value)||0),style:j})}),o.jsx("td",{style:{padding:"5px 8px"},children:o.jsxs("select",{value:x.useYn,onChange:S=>v(m,"useYn",S.target.value),style:j,children:[o.jsx("option",{value:"Y",children:"사용"}),o.jsx("option",{value:"N",children:"미사용"})]})}),o.jsx("td",{style:{padding:"5px 8px",textAlign:"center"},children:o.jsx("button",{onClick:()=>b(m),style:{background:"none",border:"none",color:"var(--uiws-danger)",cursor:"pointer",fontSize:16},children:"×"})})]},m))})]})}),h&&o.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginTop:10},children:h})]})}function Gb(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 Lpe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(!1),[l,s]=O.useState(""),[c,u]=O.useState({open:!1,edit:null}),f=async(y="")=>{var v;i(!0),s("");try{if(y){const b=await rI(y);t(b.data.data??[])}else{const b=await nI();t(((v=b.data.data)==null?void 0:v.content)??[])}}catch(b){s(Gb(b))}finally{i(!1)}};O.useEffect(()=>{f("")},[]);const d=O.useMemo(()=>{const y=e.filter(g=>!g.parentMenuId).sort((g,j)=>(g.sortOrd??0)-(j.sortOrd??0)),v=[];for(const g of y)v.push({menu:g,depth:0}),e.filter(j=>j.parentMenuId===g.menuId).sort((j,x)=>(j.sortOrd??0)-(x.sortOrd??0)).forEach(j=>v.push({menu:j,depth:1}));const b=new Set(v.map(g=>g.menu.menuId));return e.filter(g=>!b.has(g.menuId)).forEach(g=>v.push({menu:g,depth:0})),v.map(g=>({...g.menu,_depth:g.depth}))},[e]),h=async y=>{if(window.confirm(`메뉴 '${y.menuNm}' 를 삭제하시겠습니까?`))try{await lI([y.menuId]),await f(n)}catch(v){s(Gb(v))}},p=[{key:"menuNm",header:"메뉴명",render:y=>o.jsxs("span",{style:{paddingLeft:y._depth*22},children:[y._depth>0&&o.jsx("span",{style:{color:"var(--uiws-text-faint)"},children:"└ "}),y.menuNm," ",o.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontSize:12},children:["(",y.menuId,")"]})]})},{key:"menuUrl",header:"URL",width:220,render:y=>y.menuUrl??"-"},{key:"programId",header:"프로그램",width:140,render:y=>y.programId??"-"},{key:"sortOrd",header:"정렬",width:70,align:"center"},{key:"useYn",header:"사용",width:80,align:"center",render:y=>o.jsx(zl,{yn:y.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:y=>o.jsx(se,{variant:"ghost",onClick:()=>h(y),children:"삭제"})}];return o.jsxs("div",{className:"uiws-scope",children:[o.jsx(Fr,{title:"메뉴 관리",subtitle:"시스템관리(권한) · 메뉴 트리(2-depth) 등록/수정/삭제",actions:o.jsx(se,{onClick:()=>u({open:!0,edit:null}),children:"+ 메뉴 등록"})}),l&&o.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:l}),o.jsxs(Ei,{children:[o.jsx(Oe,{value:n,onChange:r,placeholder:"메뉴명 검색",style:{minWidth:220}}),o.jsx(se,{variant:"ghost",onClick:()=>f(n),children:"검색"})]}),a?o.jsx(nr,{}):o.jsx(Dl,{columns:p,rows:d,rowKey:y=>y.menuId,onRowClick:y=>u({open:!0,edit:y}),empty:"등록된 메뉴가 없습니다."}),c.open&&o.jsx(Bpe,{menu:c.edit,parents:e.filter(y=>!y.parentMenuId),onClose:()=>u({open:!1,edit:null}),onSaved:()=>{u({open:!1,edit:null}),f(n)}})]})}function Bpe({menu:e,parents:t,onClose:n,onSaved:r}){const a=!!e,[i,l]=O.useState((e==null?void 0:e.menuId)??""),[s,c]=O.useState((e==null?void 0:e.menuNm)??""),[u,f]=O.useState((e==null?void 0:e.parentMenuId)??""),[d,h]=O.useState((e==null?void 0:e.programId)??""),[p,y]=O.useState((e==null?void 0:e.menuUrl)??""),[v,b]=O.useState(String((e==null?void 0:e.sortOrd)??0)),[g,j]=O.useState((e==null?void 0:e.useYn)??"Y"),[x,m]=O.useState(""),S=async()=>{if(m(""),!a&&!i.trim()){m("메뉴ID는 필수입니다.");return}if(!s.trim()){m("메뉴명은 필수입니다.");return}try{const A={menuId:i,menuNm:s,parentMenuId:u||null,programId:d||null,menuUrl:p||null,sortOrd:Number(v)||0,useYn:g};a?await iI(i,A):await aI(A),r()}catch(A){m(Gb(A))}},w={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 o.jsxs(jr,{title:a?"메뉴 수정":"메뉴 등록",onClose:n,footer:o.jsxs(o.Fragment,{children:[o.jsx(se,{variant:"ghost",onClick:n,children:"취소"}),o.jsx(se,{onClick:S,children:"저장"})]}),children:[o.jsx(Ne,{label:"메뉴ID",children:o.jsx(Oe,{value:i,onChange:l,style:{width:"100%",opacity:a?.6:1}})}),o.jsx(Ne,{label:"메뉴명",children:o.jsx(Oe,{value:s,onChange:c,style:{width:"100%"}})}),o.jsx(Ne,{label:"상위 메뉴",children:o.jsxs("select",{value:u??"",onChange:A=>f(A.target.value),style:w,children:[o.jsx("option",{value:"",children:"(최상위)"}),t.filter(A=>A.menuId!==i).map(A=>o.jsxs("option",{value:A.menuId,children:[A.menuNm," (",A.menuId,")"]},A.menuId))]})}),o.jsx(Ne,{label:"프로그램ID",children:o.jsx(Oe,{value:d??"",onChange:h,style:{width:"100%"}})}),o.jsx(Ne,{label:"메뉴 URL",children:o.jsx(Oe,{value:p??"",onChange:y,style:{width:"100%"}})}),o.jsx(Ne,{label:"정렬순서",children:o.jsx(Oe,{type:"number",value:v,onChange:b,style:{width:"100%"}})}),o.jsx(Ne,{label:"사용 여부",children:o.jsxs("select",{value:g,onChange:A=>j(A.target.value),style:w,children:[o.jsx("option",{value:"Y",children:"사용"}),o.jsx("option",{value:"N",children:"미사용"})]})}),x&&o.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:x})]})}function Vb(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 Ipe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(!1),[l,s]=O.useState(""),[c,u]=O.useState({open:!1,edit:null}),f=async(y="")=>{var v;i(!0),s("");try{const b=await sI(y||void 0);t(((v=b.data.data)==null?void 0:v.content)??[])}catch(b){s(Vb(b))}finally{i(!1)}};O.useEffect(()=>{f("")},[]);const d=O.useMemo(()=>{const y=e.filter(g=>!g.parentDeptId).sort((g,j)=>(g.sortOrd??0)-(j.sortOrd??0)),v=[];for(const g of y)v.push({...g,_depth:0}),e.filter(j=>j.parentDeptId===g.deptId).sort((j,x)=>(j.sortOrd??0)-(x.sortOrd??0)).forEach(j=>v.push({...j,_depth:1}));const b=new Set(v.map(g=>g.deptId));return e.filter(g=>!b.has(g.deptId)).forEach(g=>v.push({...g,_depth:0})),v},[e]),h=async y=>{if(window.confirm(`부서 '${y.deptNm}' 를 삭제하시겠습니까?`))try{await uI(y.deptId),await f(n)}catch(v){s(Vb(v))}},p=[{key:"deptNm",header:"부서명",render:y=>o.jsxs("span",{style:{paddingLeft:y._depth*22},children:[y._depth>0&&o.jsx("span",{style:{color:"var(--uiws-text-faint)"},children:"└ "}),y.deptNm," ",o.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontSize:12},children:["(",y.deptId,")"]})]})},{key:"sortOrd",header:"정렬",width:70,align:"center"},{key:"useYn",header:"사용",width:80,align:"center",render:y=>o.jsx(zl,{yn:y.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:y=>o.jsx(se,{variant:"ghost",onClick:()=>h(y),children:"삭제"})}];return o.jsxs("div",{className:"uiws-scope",children:[o.jsx(Fr,{title:"부서 관리",subtitle:"시스템관리(권한) · 부서 트리(2-depth) 등록/수정/삭제",actions:o.jsx(se,{onClick:()=>u({open:!0,edit:null}),children:"+ 부서 등록"})}),l&&o.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:l}),o.jsxs(Ei,{children:[o.jsx(Oe,{value:n,onChange:r,placeholder:"부서명 검색",style:{minWidth:220}}),o.jsx(se,{variant:"ghost",onClick:()=>f(n),children:"검색"})]}),a?o.jsx(nr,{}):o.jsx(Dl,{columns:p,rows:d,rowKey:y=>y.deptId,onRowClick:y=>u({open:!0,edit:y}),empty:"등록된 부서가 없습니다."}),c.open&&o.jsx(Upe,{dept:c.edit,parents:e.filter(y=>!y.parentDeptId),onClose:()=>u({open:!1,edit:null}),onSaved:()=>{u({open:!1,edit:null}),f(n)}})]})}function Upe({dept:e,parents:t,onClose:n,onSaved:r}){const a=!!e,[i,l]=O.useState((e==null?void 0:e.deptId)??""),[s,c]=O.useState((e==null?void 0:e.deptNm)??""),[u,f]=O.useState((e==null?void 0:e.parentDeptId)??""),[d,h]=O.useState(String((e==null?void 0:e.sortOrd)??0)),[p,y]=O.useState((e==null?void 0:e.useYn)??"Y"),[v,b]=O.useState(""),g={width:"100%",padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)"},j=async()=>{if(b(""),!a&&!i.trim()){b("부서ID는 필수입니다.");return}if(!s.trim()){b("부서명은 필수입니다.");return}try{const x={deptId:i,deptNm:s,parentDeptId:u||null,sortOrd:Number(d)||0,useYn:p};a?await cI(i,x):await oI(x),r()}catch(x){b(Vb(x))}};return o.jsxs(jr,{title:a?"부서 수정":"부서 등록",onClose:n,footer:o.jsxs(o.Fragment,{children:[o.jsx(se,{variant:"ghost",onClick:n,children:"취소"}),o.jsx(se,{onClick:j,children:"저장"})]}),children:[o.jsx(Ne,{label:"부서ID",children:o.jsx(Oe,{value:i,onChange:l,style:{width:"100%",opacity:a?.6:1}})}),o.jsx(Ne,{label:"부서명",children:o.jsx(Oe,{value:s,onChange:c,style:{width:"100%"}})}),o.jsx(Ne,{label:"상위 부서",children:o.jsxs("select",{value:u??"",onChange:x=>f(x.target.value),style:g,children:[o.jsx("option",{value:"",children:"(최상위)"}),t.filter(x=>x.deptId!==i).map(x=>o.jsxs("option",{value:x.deptId,children:[x.deptNm," (",x.deptId,")"]},x.deptId))]})}),o.jsx(Ne,{label:"정렬순서",children:o.jsx(Oe,{type:"number",value:d,onChange:h,style:{width:"100%"}})}),o.jsx(Ne,{label:"사용 여부",children:o.jsxs("select",{value:p,onChange:x=>y(x.target.value),style:g,children:[o.jsx("option",{value:"Y",children:"사용"}),o.jsx("option",{value:"N",children:"미사용"})]})}),v&&o.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:v})]})}function Yb(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 Hpe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(!1),[l,s]=O.useState(""),[c,u]=O.useState({open:!1,edit:null}),f=async(p="")=>{var y;i(!0),s("");try{const v=await fI(p||void 0);t(((y=v.data.data)==null?void 0:y.content)??[])}catch(v){s(Yb(v))}finally{i(!1)}};O.useEffect(()=>{f("")},[]);const d=async p=>{if(window.confirm(`거래처 '${p.companyNm}' 를 삭제하시겠습니까?`))try{await pI([p.companyId]),await f(n)}catch(y){s(Yb(y))}},h=[{key:"companyId",header:"거래처ID",width:180},{key:"companyNm",header:"거래처명"},{key:"bizNo",header:"사업자번호",width:180,render:p=>p.bizNo??"-"},{key:"useYn",header:"사용",width:80,align:"center",render:p=>o.jsx(zl,{yn:p.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:p=>o.jsx(se,{variant:"ghost",onClick:()=>d(p),children:"삭제"})}];return o.jsxs("div",{className:"uiws-scope",children:[o.jsx(Fr,{title:"거래처 관리",subtitle:"시스템관리(권한) · 거래처(근무처) 등록/수정/삭제",actions:o.jsx(se,{onClick:()=>u({open:!0,edit:null}),children:"+ 거래처 등록"})}),l&&o.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:l}),o.jsxs(Ei,{children:[o.jsx(Oe,{value:n,onChange:r,placeholder:"거래처명 검색",style:{minWidth:220}}),o.jsx(se,{variant:"ghost",onClick:()=>f(n),children:"검색"})]}),a?o.jsx(nr,{}):o.jsx(Dl,{columns:h,rows:e,rowKey:p=>p.companyId,onRowClick:p=>u({open:!0,edit:p}),empty:"등록된 거래처가 없습니다."}),c.open&&o.jsx(qpe,{company:c.edit,onClose:()=>u({open:!1,edit:null}),onSaved:()=>{u({open:!1,edit:null}),f(n)}})]})}function qpe({company:e,onClose:t,onSaved:n}){const r=!!e,[a,i]=O.useState((e==null?void 0:e.companyId)??""),[l,s]=O.useState((e==null?void 0:e.companyNm)??""),[c,u]=O.useState((e==null?void 0:e.bizNo)??""),[f,d]=O.useState((e==null?void 0:e.useYn)??"Y"),[h,p]=O.useState(""),y=async()=>{if(p(""),!r&&!a.trim()){p("거래처ID는 필수입니다.");return}if(!l.trim()){p("거래처명은 필수입니다.");return}try{const v={companyId:a,companyNm:l,bizNo:c||null,useYn:f};r?await hI(a,v):await dI(v),n()}catch(v){p(Yb(v))}};return o.jsxs(jr,{title:r?"거래처 수정":"거래처 등록",onClose:t,footer:o.jsxs(o.Fragment,{children:[o.jsx(se,{variant:"ghost",onClick:t,children:"취소"}),o.jsx(se,{onClick:y,children:"저장"})]}),children:[o.jsx(Ne,{label:"거래처ID",children:o.jsx(Oe,{value:a,onChange:i,style:{width:"100%",opacity:r?.6:1}})}),o.jsx(Ne,{label:"거래처명",children:o.jsx(Oe,{value:l,onChange:s,style:{width:"100%"}})}),o.jsx(Ne,{label:"사업자번호",children:o.jsx(Oe,{value:c??"",onChange:u,style:{width:"100%"}})}),o.jsx(Ne,{label:"사용 여부",children:o.jsxs("select",{value:f,onChange:v=>d(v.target.value),style:{width:"100%",padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)"},children:[o.jsx("option",{value:"Y",children:"사용"}),o.jsx("option",{value:"N",children:"미사용"})]})}),h&&o.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}const Fpe=new M5;function Gpe(){return o.jsx(P5,{client:Fpe,children:o.jsx(K4,{children:o.jsxs(O4,{children:[o.jsx(xe,{path:"/login",element:o.jsx(bI,{})}),o.jsxs(xe,{element:o.jsx(jB,{}),children:[o.jsx(xe,{path:"/dashboard",element:o.jsx(mhe,{})}),o.jsx(xe,{path:"/mypage",element:o.jsx(xpe,{})}),o.jsx(xe,{path:"/contents",element:o.jsx(ghe,{})}),o.jsx(xe,{path:"/contents/new",element:o.jsx(GA,{})}),o.jsx(xe,{path:"/contents/:id",element:o.jsx(GA,{})}),o.jsx(xe,{path:"/media",element:o.jsx(Ahe,{})}),o.jsx(xe,{path:"/products",element:o.jsx(Nhe,{})}),o.jsx(xe,{path:"/banners",element:o.jsx(Che,{})}),o.jsx(xe,{path:"/menus",element:o.jsx(khe,{})}),o.jsx(xe,{path:"/themes",element:o.jsx($he,{})}),o.jsx(xe,{path:"/i18n",element:o.jsx(Rhe,{})}),o.jsx(xe,{path:"/seo",element:o.jsx(Lhe,{})}),o.jsx(xe,{path:"/forms",element:o.jsx(Uhe,{})}),o.jsx(xe,{path:"/ugc",element:o.jsx(Ghe,{})}),o.jsx(xe,{path:"/channels",element:o.jsx(Xhe,{})}),o.jsx(xe,{path:"/members",element:o.jsx(Qhe,{})}),o.jsx(xe,{path:"/analytics",element:o.jsx(Zhe,{})}),o.jsx(xe,{path:"/ai-tools",element:o.jsx(Jhe,{})}),o.jsx(xe,{path:"/ai-techniques",element:o.jsx(spe,{})}),o.jsx(xe,{path:"/admin/users",element:o.jsx(Sr,{min:"SUPERADMIN",children:o.jsx(ope,{})})}),o.jsx(xe,{path:"/admin/audit",element:o.jsx(Sr,{min:"EDITOR",children:o.jsx(cpe,{})})}),o.jsx(xe,{path:"/admin/settings",element:o.jsx(Sr,{min:"EDITOR",children:o.jsx(upe,{})})}),o.jsx(xe,{path:"/admin/ai-platform",element:o.jsx(Sr,{min:"SUPERADMIN",children:o.jsx(vpe,{})})}),o.jsx(xe,{path:"/admin/mobile-app",element:o.jsx(bpe,{})}),o.jsx(xe,{path:"/uiws/worklog",element:o.jsx(Or,{children:o.jsx(jpe,{})})}),o.jsx(xe,{path:"/uiws/schedule",element:o.jsx(Or,{children:o.jsx(Ape,{})})}),o.jsx(xe,{path:"/uiws/message",element:o.jsx(Or,{children:o.jsx(Npe,{})})}),o.jsx(xe,{path:"/uiws/stats",element:o.jsx(Or,{children:o.jsx(Mpe,{})})}),o.jsx(xe,{path:"/uiws/system/roles",element:o.jsx(Sr,{min:"SUPERADMIN",children:o.jsx(Or,{children:o.jsx(kpe,{})})})}),o.jsx(xe,{path:"/uiws/system/role-menus",element:o.jsx(Sr,{min:"SUPERADMIN",children:o.jsx(Or,{children:o.jsx($pe,{})})})}),o.jsx(xe,{path:"/uiws/system/codes",element:o.jsx(Sr,{min:"SUPERADMIN",children:o.jsx(Or,{children:o.jsx(Rpe,{})})})}),o.jsx(xe,{path:"/uiws/system/menus",element:o.jsx(Sr,{min:"SUPERADMIN",children:o.jsx(Or,{children:o.jsx(Lpe,{})})})}),o.jsx(xe,{path:"/uiws/system/depts",element:o.jsx(Sr,{min:"SUPERADMIN",children:o.jsx(Or,{children:o.jsx(Ipe,{})})})}),o.jsx(xe,{path:"/uiws/system/companies",element:o.jsx(Sr,{min:"SUPERADMIN",children:o.jsx(Or,{children:o.jsx(Hpe,{})})})})]}),o.jsx(xe,{path:"*",element:o.jsx(ET,{to:"/dashboard",replace:!0})})]})})})}const Vpe=localStorage.getItem("cms_theme");document.documentElement.setAttribute("data-theme",Vpe==="light"?"light":"dark");SD.createRoot(document.getElementById("root")).render(o.jsx(N.StrictMode,{children:o.jsx(Tz,{children:o.jsx(Gpe,{})})}));
