var k1=e=>{throw TypeError(e)};var km=(e,t,n)=>t.has(e)||k1("Cannot "+n);var U=(e,t,n)=>(km(e,t,"read from private field"),n?n.call(e):t.get(e)),Ae=(e,t,n)=>t.has(e)?k1("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),pe=(e,t,n,r)=>(km(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),zt=(e,t,n)=>(km(e,t,"access private method"),n);var mf=(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 yf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lE={exports:{}},sp={};/**
 * @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 xP=Symbol.for("react.transitional.element"),jP=Symbol.for("react.fragment");function oE(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:xP,type:e,key:r,ref:t!==void 0?t:null,props:n}}sp.Fragment=jP;sp.jsx=oE;sp.jsxs=oE;lE.exports=sp;var s=lE.exports,sE={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 Yb=Symbol.for("react.transitional.element"),SP=Symbol.for("react.portal"),wP=Symbol.for("react.fragment"),OP=Symbol.for("react.strict_mode"),AP=Symbol.for("react.profiler"),EP=Symbol.for("react.consumer"),_P=Symbol.for("react.context"),TP=Symbol.for("react.forward_ref"),NP=Symbol.for("react.suspense"),CP=Symbol.for("react.memo"),cE=Symbol.for("react.lazy"),MP=Symbol.for("react.activity"),$1=Symbol.iterator;function kP(e){return e===null||typeof e!="object"?null:(e=$1&&e[$1]||e["@@iterator"],typeof e=="function"?e:null)}var uE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fE=Object.assign,dE={};function vs(e,t,n){this.props=e,this.context=t,this.refs=dE,this.updater=n||uE}vs.prototype.isReactComponent={};vs.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")};vs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function hE(){}hE.prototype=vs.prototype;function Vb(e,t,n){this.props=e,this.context=t,this.refs=dE,this.updater=n||uE}var Kb=Vb.prototype=new hE;Kb.constructor=Vb;fE(Kb,vs.prototype);Kb.isPureReactComponent=!0;var P1=Array.isArray;function tv(){}var Ze={H:null,A:null,T:null,S:null},pE=Object.prototype.hasOwnProperty;function Xb(e,t,n){var r=n.ref;return{$$typeof:Yb,type:e,key:t,ref:r!==void 0?r:null,props:n}}function $P(e,t){return Xb(e.type,t,e.props)}function Wb(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yb}function PP(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var R1=/\/+/g;function $m(e,t){return typeof e=="object"&&e!==null&&e.key!=null?PP(""+e.key):t.toString(36)}function RP(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(tv,tv):(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 Vl(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 Yb:case SP:l=!0;break;case cE:return l=e._init,Vl(l(e._payload),t,n,r,a)}}if(l)return a=a(e),l=r===""?"."+$m(e,0):r,P1(a)?(n="",l!=null&&(n=l.replace(R1,"$&/")+"/"),Vl(a,t,n,"",function(u){return u})):a!=null&&(Wb(a)&&(a=$P(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(R1,"$&/")+"/")+l)),t.push(a)),1;l=0;var o=r===""?".":r+":";if(P1(e))for(var c=0;c<e.length;c++)r=e[c],i=o+$m(r,c),l+=Vl(r,t,n,i,a);else if(c=kP(e),typeof c=="function")for(e=c.call(e),c=0;!(r=e.next()).done;)r=r.value,i=o+$m(r,c++),l+=Vl(r,t,n,i,a);else if(i==="object"){if(typeof e.then=="function")return Vl(RP(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 vf(e,t,n){if(e==null)return e;var r=[],a=0;return Vl(e,r,"","",function(i){return t.call(n,i,a++)}),r}function DP(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 D1=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)},zP={map:vf,forEach:function(e,t,n){vf(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return vf(e,function(){t++}),t},toArray:function(e){return vf(e,function(t){return t})||[]},only:function(e){if(!Wb(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ve.Activity=MP;ve.Children=zP;ve.Component=vs;ve.Fragment=wP;ve.Profiler=AP;ve.PureComponent=Vb;ve.StrictMode=OP;ve.Suspense=NP;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=fE({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!pE.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(r[i]=t[i]);var i=arguments.length-2;if(i===1)r.children=n;else if(1<i){for(var l=Array(i),o=0;o<i;o++)l[o]=arguments[o+2];r.children=l}return Xb(e.type,a,r)};ve.createContext=function(e){return e={$$typeof:_P,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:EP,_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)pE.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(a[r]=t[r]);var l=arguments.length-2;if(l===1)a.children=n;else if(1<l){for(var o=Array(l),c=0;c<l;c++)o[c]=arguments[c+2];a.children=o}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)a[r]===void 0&&(a[r]=l[r]);return Xb(e,i,a)};ve.createRef=function(){return{current:null}};ve.forwardRef=function(e){return{$$typeof:TP,render:e}};ve.isValidElement=Wb;ve.lazy=function(e){return{$$typeof:cE,_payload:{_status:-1,_result:e},_init:DP}};ve.memo=function(e,t){return{$$typeof:CP,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(tv,D1)}catch(i){D1(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";sE.exports=ve;var O=sE.exports;const T=$e(O);var mE={exports:{}},cp={},yE={exports:{}},vE={};/**
 * @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(C,L){var I=C.length;C.push(L);e:for(;0<I;){var G=I-1>>>1,Y=C[G];if(0<a(Y,L))C[G]=L,C[I]=Y,I=G;else break e}}function n(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var L=C[0],I=C.pop();if(I!==L){C[0]=I;e:for(var G=0,Y=C.length,ne=Y>>>1;G<ne;){var X=2*(G+1)-1,ie=C[X],D=X+1,W=C[D];if(0>a(ie,I))D<Y&&0>a(W,ie)?(C[G]=W,C[D]=I,G=D):(C[G]=ie,C[X]=I,G=X);else if(D<Y&&0>a(W,I))C[G]=W,C[D]=I,G=D;else break e}}return L}function a(C,L){var I=C.sortIndex-L.sortIndex;return I!==0?I:C.id-L.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var c=[],u=[],f=1,d=null,h=3,p=!1,y=!1,m=!1,x=!1,g=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;function v(C){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=C)r(u),L.sortIndex=L.expirationTime,t(c,L);else break;L=n(u)}}function S(C){if(m=!1,v(C),!y)if(n(c)!==null)y=!0,w||(w=!0,M());else{var L=n(u);L!==null&&P(S,L.startTime-C)}}var w=!1,A=-1,_=5,E=-1;function N(){return x?!0:!(e.unstable_now()-E<_)}function k(){if(x=!1,w){var C=e.unstable_now();E=C;var L=!0;try{e:{y=!1,m&&(m=!1,j(A),A=-1),p=!0;var I=h;try{t:{for(v(C),d=n(c);d!==null&&!(d.expirationTime>C&&N());){var G=d.callback;if(typeof G=="function"){d.callback=null,h=d.priorityLevel;var Y=G(d.expirationTime<=C);if(C=e.unstable_now(),typeof Y=="function"){d.callback=Y,v(C),L=!0;break t}d===n(c)&&r(c),v(C)}else r(c);d=n(c)}if(d!==null)L=!0;else{var ne=n(u);ne!==null&&P(S,ne.startTime-C),L=!1}}break e}finally{d=null,h=I,p=!1}L=void 0}}finally{L?M():w=!1}}}var M;if(typeof b=="function")M=function(){b(k)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,z=B.port2;B.port1.onmessage=k,M=function(){z.postMessage(null)}}else M=function(){g(k,0)};function P(C,L){A=g(function(){C(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(C){switch(h){case 1:case 2:case 3:var L=3;break;default:L=h}var I=h;h=L;try{return C()}finally{h=I}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(C,L){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var I=h;h=C;try{return L()}finally{h=I}},e.unstable_scheduleCallback=function(C,L,I){var G=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?G+I:G):I=G,C){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=I+Y,C={id:f++,callback:L,priorityLevel:C,startTime:I,expirationTime:Y,sortIndex:-1},I>G?(C.sortIndex=I,t(u,C),n(c)===null&&C===n(u)&&(m?(j(A),A=-1):m=!0,P(S,I-G))):(C.sortIndex=Y,t(c,C),y||p||(y=!0,w||(w=!0,M()))),C},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(C){var L=h;return function(){var I=h;h=L;try{return C.apply(this,arguments)}finally{h=I}}}})(vE);yE.exports=vE;var LP=yE.exports,gE={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 BP=O;function bE(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(bE(522))},D:Ca,C:Ca,L:Ca,m:Ca,X:Ca,S:Ca,M:Ca},p:0,findDOMNode:null},IP=Symbol.for("react.portal");function UP(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:IP,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var mc=BP.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function up(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(bE(299));return UP(e,t,null,n)};an.flushSync=function(e){var t=mc.T,n=Zt.p;try{if(mc.T=null,Zt.p=2,e)return e()}finally{mc.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=up(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=up(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=up(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=up(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 mc.H.useFormState(e,t,n)};an.useFormStatus=function(){return mc.H.useHostTransitionStatus()};an.version="19.2.7";function xE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xE)}catch(e){console.error(e)}}xE(),gE.exports=an;var HP=gE.exports;/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Tt=LP,jE=O,qP=HP;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 SE(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Bu(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 wE(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 OE(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 z1(e){if(Bu(e)!==e)throw Error(q(188))}function FP(e){var t=e.alternate;if(!t){if(t=Bu(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 z1(a),e;if(i===r)return z1(a),t;i=i.sibling}throw Error(q(188))}if(n.return!==r.return)n=a,r=i;else{for(var l=!1,o=a.child;o;){if(o===n){l=!0,n=a,r=i;break}if(o===r){l=!0,r=a,n=i;break}o=o.sibling}if(!l){for(o=i.child;o;){if(o===n){l=!0,n=i,r=a;break}if(o===r){l=!0,r=i,n=a;break}o=o.sibling}if(!l)throw Error(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 AE(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=AE(e),t!==null)return t;e=e.sibling}return null}var Je=Object.assign,GP=Symbol.for("react.element"),gf=Symbol.for("react.transitional.element"),cc=Symbol.for("react.portal"),Wl=Symbol.for("react.fragment"),EE=Symbol.for("react.strict_mode"),nv=Symbol.for("react.profiler"),_E=Symbol.for("react.consumer"),na=Symbol.for("react.context"),Qb=Symbol.for("react.forward_ref"),rv=Symbol.for("react.suspense"),av=Symbol.for("react.suspense_list"),Zb=Symbol.for("react.memo"),$a=Symbol.for("react.lazy"),iv=Symbol.for("react.activity"),YP=Symbol.for("react.memo_cache_sentinel"),L1=Symbol.iterator;function Fs(e){return e===null||typeof e!="object"?null:(e=L1&&e[L1]||e["@@iterator"],typeof e=="function"?e:null)}var VP=Symbol.for("react.client.reference");function lv(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===VP?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Wl:return"Fragment";case nv:return"Profiler";case EE:return"StrictMode";case rv:return"Suspense";case av:return"SuspenseList";case iv:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case cc:return"Portal";case na:return e.displayName||"Context";case _E:return(e._context.displayName||"Context")+".Consumer";case Qb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zb:return t=e.displayName||null,t!==null?t:lv(e.type)||"Memo";case $a:t=e._payload,e=e._init;try{return lv(e(t))}catch{}}return null}var uc=Array.isArray,he=jE.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Me=qP.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,el={pending:!1,data:null,method:null,action:null},ov=[],Ql=-1;function Br(e){return{current:e}}function Rt(e){0>Ql||(e.current=ov[Ql],ov[Ql]=null,Ql--)}function Ge(e,t){Ql++,ov[Ql]=e.current,e.current=t}var Pr=Br(null),Dc=Br(null),ni=Br(null),Sd=Br(null);function wd(e,t){switch(Ge(ni,t),Ge(Dc,e),Ge(Pr,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Fj(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Fj(t),e=VT(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Rt(Pr),Ge(Pr,e)}function $o(){Rt(Pr),Rt(Dc),Rt(ni)}function sv(e){e.memoizedState!==null&&Ge(Sd,e);var t=Pr.current,n=VT(t,e.type);t!==n&&(Ge(Dc,e),Ge(Pr,n))}function Od(e){Dc.current===e&&(Rt(Pr),Rt(Dc)),Sd.current===e&&(Rt(Sd),Vc._currentValue=el)}var Pm,B1;function Pi(e){if(Pm===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Pm=t&&t[1]||"",B1=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Pm+e+B1}var Rm=!1;function Dm(e,t){if(!e||Rm)return"";Rm=!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],o=i[1];if(l&&o){var c=l.split(`
`),u=o.split(`
`);for(a=r=0;r<c.length&&!c[r].includes("DetermineComponentFrameRoot");)r++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(r===c.length||a===u.length)for(r=c.length-1,a=u.length-1;1<=r&&0<=a&&c[r]!==u[a];)a--;for(;1<=r&&0<=a;r--,a--)if(c[r]!==u[a]){if(r!==1||a!==1)do if(r--,a--,0>a||c[r]!==u[a]){var f=`
`+c[r].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=r&&0<=a);break}}}finally{Rm=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Pi(n):""}function KP(e,t){switch(e.tag){case 26:case 27:case 5:return Pi(e.type);case 16:return Pi("Lazy");case 13:return e.child!==t&&t!==null?Pi("Suspense Fallback"):Pi("Suspense");case 19:return Pi("SuspenseList");case 0:case 15:return Dm(e.type,!1);case 11:return Dm(e.type.render,!1);case 1:return Dm(e.type,!0);case 31:return Pi("Activity");default:return""}}function I1(e){try{var t="",n=null;do t+=KP(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}var cv=Object.prototype.hasOwnProperty,Jb=Tt.unstable_scheduleCallback,zm=Tt.unstable_cancelCallback,XP=Tt.unstable_shouldYield,WP=Tt.unstable_requestPaint,_n=Tt.unstable_now,QP=Tt.unstable_getCurrentPriorityLevel,TE=Tt.unstable_ImmediatePriority,NE=Tt.unstable_UserBlockingPriority,Ad=Tt.unstable_NormalPriority,ZP=Tt.unstable_LowPriority,CE=Tt.unstable_IdlePriority,JP=Tt.log,eR=Tt.unstable_setDisableYieldValue,Iu=null,Tn=null;function Va(e){if(typeof JP=="function"&&eR(e),Tn&&typeof Tn.setStrictMode=="function")try{Tn.setStrictMode(Iu,e)}catch{}}var Nn=Math.clz32?Math.clz32:rR,tR=Math.log,nR=Math.LN2;function rR(e){return e>>>=0,e===0?32:31-(tR(e)/nR|0)|0}var bf=256,xf=262144,jf=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 fp(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var a=0,i=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var o=r&134217727;return o!==0?(r=o&~i,r!==0?a=Ri(r):(l&=o,l!==0?a=Ri(l):n||(n=o&~e,n!==0&&(a=Ri(n))))):(o=r&~i,o!==0?a=Ri(o):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 Uu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function aR(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 ME(){var e=jf;return jf<<=1,!(jf&62914560)&&(jf=4194304),e}function Lm(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Hu(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function iR(e,t,n,r,a,i){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,c=e.expirationTimes,u=e.hiddenUpdates;for(n=l&~n;0<n;){var f=31-Nn(n),d=1<<f;o[f]=0,c[f]=-1;var h=u[f];if(h!==null)for(u[f]=null,f=0;f<h.length;f++){var p=h[f];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&kE(e,r,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(l&~t))}function kE(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Nn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function $E(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Nn(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function PE(e,t){var n=t&-t;return n=n&42?1:e0(n),n&(e.suspendedLanes|t)?0:n}function e0(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 t0(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function RE(){var e=Me.p;return e!==0?e:(e=window.event,e===void 0?32:aN(e.type))}function U1(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,gs="__reactContainer$"+gi,uv="__reactEvents$"+gi,lR="__reactListeners$"+gi,oR="__reactHandles$"+gi,H1="__reactResources$"+gi,qu="__reactMarker$"+gi;function n0(e){delete e[It],delete e[pn],delete e[uv],delete e[lR],delete e[oR]}function Zl(e){var t=e[It];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gs]||n[It]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Xj(e);e!==null;){if(n=e[It])return n;e=Xj(e)}return t}e=n,n=e.parentNode}return null}function bs(e){if(e=e[It]||e[gs]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function fc(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(q(33))}function po(e){var t=e[H1];return t||(t=e[H1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function $t(e){e[qu]=!0}var DE=new Set,zE={};function Ol(e,t){Po(e,t),Po(e+"Capture",t)}function Po(e,t){for(zE[e]=t,e=0;e<t.length;e++)DE.add(t[e])}var sR=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]*$"),q1={},F1={};function cR(e){return cv.call(F1,e)?!0:cv.call(q1,e)?!1:sR.test(e)?F1[e]=!0:(q1[e]=!0,!1)}function Zf(e,t,n){if(cR(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 Sf(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 LE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function uR(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 fv(e){if(!e._valueTracker){var t=LE(e)?"checked":"value";e._valueTracker=uR(e,t,""+e[t])}}function BE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=LE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ed(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 fR=/[\n"\\]/g;function Vn(e){return e.replace(fR,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function dv(e,t,n,r,a,i,l,o){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Fn(t)):e.value!==""+Fn(t)&&(e.value=""+Fn(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?hv(e,l,Fn(t)):n!=null?hv(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"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+Fn(o):e.removeAttribute("name")}function IE(e,t,n,r,a,i,l,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){fv(e);return}n=n!=null?""+Fn(n):"",t=t!=null?""+Fn(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),fv(e)}function hv(e,t,n){t==="number"&&Ed(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function mo(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 UE(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 HE(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(q(92));if(uc(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),fv(e)}function Ro(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var dR=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 G1(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||dR.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function qE(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&&G1(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&G1(e,i,t[i])}function r0(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 hR=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"]]),pR=/^[\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 Jf(e){return pR.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ra(){}var pv=null;function a0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jl=null,yo=null;function Y1(e){var t=bs(e);if(t&&(e=t.stateNode)){var n=e[pn]||null;e:switch(e=t.stateNode,t.type){case"input":if(dv(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="'+Vn(""+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));dv(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&&BE(r)}break e;case"textarea":UE(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&mo(e,!!n.multiple,t,!1)}}}var Bm=!1;function FE(e,t,n){if(Bm)return e(t,n);Bm=!0;try{var r=e(t);return r}finally{if(Bm=!1,(Jl!==null||yo!==null)&&(wp(),Jl&&(t=Jl,e=yo,yo=Jl=null,Y1(t),e)))for(t=0;t<e.length;t++)Y1(e[t])}}function zc(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"),mv=!1;if(pa)try{var Gs={};Object.defineProperty(Gs,"passive",{get:function(){mv=!0}}),window.addEventListener("test",Gs,Gs),window.removeEventListener("test",Gs,Gs)}catch{mv=!1}var Ka=null,i0=null,ed=null;function GE(){if(ed)return ed;var e,t=i0,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 ed=a.slice(e,1<r?1-r:void 0)}function td(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 wf(){return!0}function V1(){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 o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?wf:V1,this.isPropagationStopped=V1,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=wf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=wf)},persist:function(){},isPersistent:wf}),t}var Al={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dp=mn(Al),Fu=Je({},Al,{view:0,detail:0}),mR=mn(Fu),Im,Um,Ys,hp=Je({},Fu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:l0,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!==Ys&&(Ys&&e.type==="mousemove"?(Im=e.screenX-Ys.screenX,Um=e.screenY-Ys.screenY):Um=Im=0,Ys=e),Im)},movementY:function(e){return"movementY"in e?e.movementY:Um}}),K1=mn(hp),yR=Je({},hp,{dataTransfer:0}),vR=mn(yR),gR=Je({},Fu,{relatedTarget:0}),Hm=mn(gR),bR=Je({},Al,{animationName:0,elapsedTime:0,pseudoElement:0}),xR=mn(bR),jR=Je({},Al,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),SR=mn(jR),wR=Je({},Al,{data:0}),X1=mn(wR),OR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},AR={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"},ER={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _R(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ER[e])?!!t[e]:!1}function l0(){return _R}var TR=Je({},Fu,{key:function(e){if(e.key){var t=OR[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=td(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?AR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:l0,charCode:function(e){return e.type==="keypress"?td(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?td(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),NR=mn(TR),CR=Je({},hp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),W1=mn(CR),MR=Je({},Fu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:l0}),kR=mn(MR),$R=Je({},Al,{propertyName:0,elapsedTime:0,pseudoElement:0}),PR=mn($R),RR=Je({},hp,{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}),DR=mn(RR),zR=Je({},Al,{newState:0,oldState:0}),LR=mn(zR),BR=[9,13,27,32],o0=pa&&"CompositionEvent"in window,yc=null;pa&&"documentMode"in document&&(yc=document.documentMode);var IR=pa&&"TextEvent"in window&&!yc,YE=pa&&(!o0||yc&&8<yc&&11>=yc),Q1=" ",Z1=!1;function VE(e,t){switch(e){case"keyup":return BR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function KE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var eo=!1;function UR(e,t){switch(e){case"compositionend":return KE(t);case"keypress":return t.which!==32?null:(Z1=!0,Q1);case"textInput":return e=t.data,e===Q1&&Z1?null:e;default:return null}}function HR(e,t){if(eo)return e==="compositionend"||!o0&&VE(e,t)?(e=GE(),ed=i0=Ka=null,eo=!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 YE&&t.locale!=="ko"?null:t.data;default:return null}}var qR={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 J1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qR[e.type]:t==="textarea"}function XE(e,t,n,r){Jl?yo?yo.push(r):yo=[r]:Jl=r,t=Fd(t,"onChange"),0<t.length&&(n=new dp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var vc=null,Lc=null;function FR(e){FT(e,0)}function pp(e){var t=fc(e);if(BE(t))return e}function ej(e,t){if(e==="change")return t}var WE=!1;if(pa){var qm;if(pa){var Fm="oninput"in document;if(!Fm){var tj=document.createElement("div");tj.setAttribute("oninput","return;"),Fm=typeof tj.oninput=="function"}qm=Fm}else qm=!1;WE=qm&&(!document.documentMode||9<document.documentMode)}function nj(){vc&&(vc.detachEvent("onpropertychange",QE),Lc=vc=null)}function QE(e){if(e.propertyName==="value"&&pp(Lc)){var t=[];XE(t,Lc,e,a0(e)),FE(FR,t)}}function GR(e,t,n){e==="focusin"?(nj(),vc=t,Lc=n,vc.attachEvent("onpropertychange",QE)):e==="focusout"&&nj()}function YR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pp(Lc)}function VR(e,t){if(e==="click")return pp(t)}function KR(e,t){if(e==="input"||e==="change")return pp(t)}function XR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pn=typeof Object.is=="function"?Object.is:XR;function Bc(e,t){if(Pn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!cv.call(t,a)||!Pn(e[a],t[a]))return!1}return!0}function rj(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function aj(e,t){var n=rj(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=rj(n)}}function ZE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ZE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function JE(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ed(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=Ed(e.document)}return t}function s0(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 WR=pa&&"documentMode"in document&&11>=document.documentMode,to=null,yv=null,gc=null,vv=!1;function ij(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vv||to==null||to!==Ed(r)||(r=to,"selectionStart"in r&&s0(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}),gc&&Bc(gc,r)||(gc=r,r=Fd(yv,"onSelect"),0<r.length&&(t=new dp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=to)))}function Ni(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var no={animationend:Ni("Animation","AnimationEnd"),animationiteration:Ni("Animation","AnimationIteration"),animationstart:Ni("Animation","AnimationStart"),transitionrun:Ni("Transition","TransitionRun"),transitionstart:Ni("Transition","TransitionStart"),transitioncancel:Ni("Transition","TransitionCancel"),transitionend:Ni("Transition","TransitionEnd")},Gm={},e_={};pa&&(e_=document.createElement("div").style,"AnimationEvent"in window||(delete no.animationend.animation,delete no.animationiteration.animation,delete no.animationstart.animation),"TransitionEvent"in window||delete no.transitionend.transition);function El(e){if(Gm[e])return Gm[e];if(!no[e])return e;var t=no[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in e_)return Gm[e]=t[n];return e}var t_=El("animationend"),n_=El("animationiteration"),r_=El("animationstart"),QR=El("transitionrun"),ZR=El("transitionstart"),JR=El("transitioncancel"),a_=El("transitionend"),i_=new Map,gv="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(" ");gv.push("scrollEnd");function gr(e,t){i_.set(e,t),Ol(t,[e])}var _d=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=[],ro=0,c0=0;function mp(){for(var e=ro,t=c0=ro=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&&l_(n,a,i)}}function yp(e,t,n,r){qn[ro++]=e,qn[ro++]=t,qn[ro++]=n,qn[ro++]=r,c0|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function u0(e,t,n,r){return yp(e,t,n,r),Td(e)}function _l(e,t){return yp(e,null,null,t),Td(e)}function l_(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-Nn(n),e=i.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),i):null}function Td(e){if(50<_c)throw _c=0,Bv=null,Error(q(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ao={};function e3(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 e3(e,t,n,r)}function f0(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 o_(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 nd(e,t,n,r,a,i){var l=0;if(r=e,typeof e=="function")f0(e)&&(l=1);else if(typeof e=="string")l=iD(e,n,Pr.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case iv:return e=On(31,n,t,a),e.elementType=iv,e.lanes=i,e;case Wl:return tl(n.children,a,i,t);case EE:l=8,a|=24;break;case nv:return e=On(12,n,t,a|2),e.elementType=nv,e.lanes=i,e;case rv:return e=On(13,n,t,a),e.elementType=rv,e.lanes=i,e;case av:return e=On(19,n,t,a),e.elementType=av,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case na:l=10;break e;case _E:l=9;break e;case Qb:l=11;break e;case Zb:l=14;break e;case $a: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 Ym(e,t,n){return e=On(6,e,null,t),e.lanes=n,e}function s_(e){var t=On(18,null,null,0);return t.stateNode=e,t}function Vm(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 lj=new WeakMap;function Kn(e,t){if(typeof e=="object"&&e!==null){var n=lj.get(e);return n!==void 0?n:(t={value:e,source:t,stack:I1(t)},lj.set(e,t),t)}return{value:e,source:t,stack:I1(t)}}var io=[],lo=0,Nd=null,Ic=0,Gn=[],Yn=0,pi=null,Tr=1,Nr="";function Jr(e,t){io[lo++]=Ic,io[lo++]=Nd,Nd=e,Ic=t}function c_(e,t,n){Gn[Yn++]=Tr,Gn[Yn++]=Nr,Gn[Yn++]=pi,pi=e;var r=Tr;e=Nr;var a=32-Nn(r)-1;r&=~(1<<a),n+=1;var i=32-Nn(t)+a;if(30<i){var l=a-a%5;i=(r&(1<<l)-1).toString(32),r>>=l,a-=l,Tr=1<<32-Nn(t)+a|n<<a|r,Nr=i+e}else Tr=1<<i|n<<a|r,Nr=e}function d0(e){e.return!==null&&(Jr(e,1),c_(e,1,0))}function h0(e){for(;e===Nd;)Nd=io[--lo],io[lo]=null,Ic=io[--lo],io[lo]=null;for(;e===pi;)pi=Gn[--Yn],Gn[Yn]=null,Nr=Gn[--Yn],Gn[Yn]=null,Tr=Gn[--Yn],Gn[Yn]=null}function u_(e,t){Gn[Yn++]=Tr,Gn[Yn++]=Nr,Gn[Yn++]=pi,Tr=t.id,Nr=t.overflow,pi=e}var Ut=null,Qe=null,_e=!1,ri=null,Xn=!1,bv=Error(q(519));function mi(e){var t=Error(q(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Uc(Kn(t,e)),bv}function oj(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<Gc.length;n++)je(Gc[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),IE(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),HE(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||YT(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 sj(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 sj(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")||Fv(e.type,e.memoizedProps)),n=!n),n&&Qe&&mi(e),sj(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(317));Qe=Kj(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(317));Qe=Kj(e)}else t===27?(t=Qe,bi(e.type)?(e=Kv,Kv=null,Qe=e):Qe=t):Qe=Ut?Jn(e.stateNode.nextSibling):null;return!0}function cl(){Qe=Ut=null,_e=!1}function Km(){var e=ri;return e!==null&&(un===null?un=e:un.push.apply(un,e),ri=null),e}function Uc(e){ri===null?ri=[e]:ri.push(e)}var xv=Br(null),Tl=null,aa=null;function Da(e,t,n){Ge(xv,t._currentValue),t._currentValue=n}function ua(e){e._currentValue=xv.current,Rt(xv)}function jv(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 Sv(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var l=a.child;i=i.firstContext;e:for(;i!==null;){var o=i;i=a;for(var c=0;c<t.length;c++)if(o.context===t[c]){i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),jv(i.return,n,e),r||(l=null);break e}i=o.next}}else if(a.tag===18){if(l=a.return,l===null)throw Error(q(341));l.lanes|=n,i=l.alternate,i!==null&&(i.lanes|=n),jv(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 xs(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 o=a.type;Pn(a.pendingProps.value,l.value)||(e!==null?e.push(o):e=[o])}}else if(a===Sd.current){if(l=a.alternate,l===null)throw Error(q(387));l.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Vc):e=[Vc])}a=a.return}e!==null&&Sv(t,e,n,r),t.flags|=262144}function Cd(e){for(e=e.firstContext;e!==null;){if(!Pn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ul(e){Tl=e,aa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function qt(e){return f_(Tl,e)}function Of(e,t){return Tl===null&&ul(e),f_(e,t)}function f_(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 t3=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()})}},n3=Tt.unstable_scheduleCallback,r3=Tt.unstable_NormalPriority,bt={$$typeof:na,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function p0(){return{controller:new t3,data:new Map,refCount:0}}function Gu(e){e.refCount--,e.refCount===0&&n3(r3,function(){e.controller.abort()})}var bc=null,wv=0,Do=0,vo=null;function a3(e,t){if(bc===null){var n=bc=[];wv=0,Do=B0(),vo={status:"pending",value:void 0,then:function(r){n.push(r)}}}return wv++,t.then(cj,cj),t}function cj(){if(--wv===0&&bc!==null){vo!==null&&(vo.status="fulfilled");var e=bc;bc=null,Do=0,vo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function i3(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 uj=he.S;he.S=function(e,t){AT=_n(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&a3(e,t),uj!==null&&uj(e,t)};var nl=Br(null);function m0(){var e=nl.current;return e!==null?e:He.pooledCache}function rd(e,t){t===null?Ge(nl,nl.current):Ge(nl,t.pool)}function d_(){var e=m0();return e===null?null:{parent:bt._currentValue,pool:e}}var js=Error(q(460)),y0=Error(q(474)),vp=Error(q(542)),Md={then:function(){}};function fj(e){return e=e.status,e==="fulfilled"||e==="rejected"}function h_(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,hj(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,hj(e),e}throw rl=t,js}}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,js):n}}var rl=null;function dj(){if(rl===null)throw Error(q(459));var e=rl;return rl=null,e}function hj(e){if(e===js||e===vp)throw Error(q(483))}var go=null,Hc=0;function Af(e){var t=Hc;return Hc+=1,go===null&&(go=[]),h_(go,e,t)}function Vs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ef(e,t){throw t.$$typeof===GP?Error(q(525)):(e=Object.prototype.toString.call(t),Error(q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function p_(e){function t(g,j){if(e){var b=g.deletions;b===null?(g.deletions=[j],g.flags|=16):b.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,b){return g.index=b,e?(b=g.alternate,b!==null?(b=b.index,b<j?(g.flags|=67108866,j):b):(g.flags|=67108866,j)):(g.flags|=1048576,j)}function l(g){return e&&g.alternate===null&&(g.flags|=67108866),g}function o(g,j,b,v){return j===null||j.tag!==6?(j=Ym(b,g.mode,v),j.return=g,j):(j=a(j,b),j.return=g,j)}function c(g,j,b,v){var S=b.type;return S===Wl?f(g,j,b.props.children,v,b.key):j!==null&&(j.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===$a&&Di(S)===j.type)?(j=a(j,b.props),Vs(j,b),j.return=g,j):(j=nd(b.type,b.key,b.props,null,g.mode,v),Vs(j,b),j.return=g,j)}function u(g,j,b,v){return j===null||j.tag!==4||j.stateNode.containerInfo!==b.containerInfo||j.stateNode.implementation!==b.implementation?(j=Vm(b,g.mode,v),j.return=g,j):(j=a(j,b.children||[]),j.return=g,j)}function f(g,j,b,v,S){return j===null||j.tag!==7?(j=tl(b,g.mode,v,S),j.return=g,j):(j=a(j,b),j.return=g,j)}function d(g,j,b){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Ym(""+j,g.mode,b),j.return=g,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case gf:return b=nd(j.type,j.key,j.props,null,g.mode,b),Vs(b,j),b.return=g,b;case cc:return j=Vm(j,g.mode,b),j.return=g,j;case $a:return j=Di(j),d(g,j,b)}if(uc(j)||Fs(j))return j=tl(j,g.mode,b,null),j.return=g,j;if(typeof j.then=="function")return d(g,Af(j),b);if(j.$$typeof===na)return d(g,Of(g,j),b);Ef(g,j)}return null}function h(g,j,b,v){var S=j!==null?j.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return S!==null?null:o(g,j,""+b,v);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case gf:return b.key===S?c(g,j,b,v):null;case cc:return b.key===S?u(g,j,b,v):null;case $a:return b=Di(b),h(g,j,b,v)}if(uc(b)||Fs(b))return S!==null?null:f(g,j,b,v,null);if(typeof b.then=="function")return h(g,j,Af(b),v);if(b.$$typeof===na)return h(g,j,Of(g,b),v);Ef(g,b)}return null}function p(g,j,b,v,S){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return g=g.get(b)||null,o(j,g,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case gf:return g=g.get(v.key===null?b:v.key)||null,c(j,g,v,S);case cc:return g=g.get(v.key===null?b:v.key)||null,u(j,g,v,S);case $a:return v=Di(v),p(g,j,b,v,S)}if(uc(v)||Fs(v))return g=g.get(b)||null,f(j,g,v,S,null);if(typeof v.then=="function")return p(g,j,b,Af(v),S);if(v.$$typeof===na)return p(g,j,b,Of(j,v),S);Ef(j,v)}return null}function y(g,j,b,v){for(var S=null,w=null,A=j,_=j=0,E=null;A!==null&&_<b.length;_++){A.index>_?(E=A,A=null):E=A.sibling;var N=h(g,A,b[_],v);if(N===null){A===null&&(A=E);break}e&&A&&N.alternate===null&&t(g,A),j=i(N,j,_),w===null?S=N:w.sibling=N,w=N,A=E}if(_===b.length)return n(g,A),_e&&Jr(g,_),S;if(A===null){for(;_<b.length;_++)A=d(g,b[_],v),A!==null&&(j=i(A,j,_),w===null?S=A:w.sibling=A,w=A);return _e&&Jr(g,_),S}for(A=r(A);_<b.length;_++)E=p(A,g,_,b[_],v),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 m(g,j,b,v){if(b==null)throw Error(q(151));for(var S=null,w=null,A=j,_=j=0,E=null,N=b.next();A!==null&&!N.done;_++,N=b.next()){A.index>_?(E=A,A=null):E=A.sibling;var k=h(g,A,N.value,v);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(N.done)return n(g,A),_e&&Jr(g,_),S;if(A===null){for(;!N.done;_++,N=b.next())N=d(g,N.value,v),N!==null&&(j=i(N,j,_),w===null?S=N:w.sibling=N,w=N);return _e&&Jr(g,_),S}for(A=r(A);!N.done;_++,N=b.next())N=p(A,g,_,N.value,v),N!==null&&(e&&N.alternate!==null&&A.delete(N.key===null?_:N.key),j=i(N,j,_),w===null?S=N:w.sibling=N,w=N);return e&&A.forEach(function(M){return t(g,M)}),_e&&Jr(g,_),S}function x(g,j,b,v){if(typeof b=="object"&&b!==null&&b.type===Wl&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case gf:e:{for(var S=b.key;j!==null;){if(j.key===S){if(S=b.type,S===Wl){if(j.tag===7){n(g,j.sibling),v=a(j,b.props.children),v.return=g,g=v;break e}}else if(j.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===$a&&Di(S)===j.type){n(g,j.sibling),v=a(j,b.props),Vs(v,b),v.return=g,g=v;break e}n(g,j);break}else t(g,j);j=j.sibling}b.type===Wl?(v=tl(b.props.children,g.mode,v,b.key),v.return=g,g=v):(v=nd(b.type,b.key,b.props,null,g.mode,v),Vs(v,b),v.return=g,g=v)}return l(g);case cc:e:{for(S=b.key;j!==null;){if(j.key===S)if(j.tag===4&&j.stateNode.containerInfo===b.containerInfo&&j.stateNode.implementation===b.implementation){n(g,j.sibling),v=a(j,b.children||[]),v.return=g,g=v;break e}else{n(g,j);break}else t(g,j);j=j.sibling}v=Vm(b,g.mode,v),v.return=g,g=v}return l(g);case $a:return b=Di(b),x(g,j,b,v)}if(uc(b))return y(g,j,b,v);if(Fs(b)){if(S=Fs(b),typeof S!="function")throw Error(q(150));return b=S.call(b),m(g,j,b,v)}if(typeof b.then=="function")return x(g,j,Af(b),v);if(b.$$typeof===na)return x(g,j,Of(g,b),v);Ef(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,j!==null&&j.tag===6?(n(g,j.sibling),v=a(j,b),v.return=g,g=v):(n(g,j),v=Ym(b,g.mode,v),v.return=g,g=v),l(g)):n(g,j)}return function(g,j,b,v){try{Hc=0;var S=x(g,j,b,v);return go=null,S}catch(A){if(A===js||A===vp)throw A;var w=On(29,A,null,g.mode);return w.lanes=v,w.return=g,w}finally{}}}var fl=p_(!0),m_=p_(!1),Pa=!1;function v0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ov(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function 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=Td(e),l_(e,null,n),t}return yp(e,r,t,n),Td(e)}function xc(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,$E(e,n)}}function Xm(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 Av=!1;function jc(){if(Av){var e=vo;if(e!==null)throw e}}function Sc(e,t,n,r){Av=!1;var a=e.updateQueue;Pa=!1;var i=a.firstBaseUpdate,l=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var c=o,u=c.next;c.next=null,l===null?i=u:l.next=u,l=c;var f=e.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==l&&(o===null?f.firstBaseUpdate=u:o.next=u,f.lastBaseUpdate=c))}if(i!==null){var d=a.baseState;l=0,f=u=c=null,o=i;do{var h=o.lane&-536870913,p=h!==o.lane;if(p?(Ee&h)===h:(r&h)===h){h!==0&&h===Do&&(Av=!0),f!==null&&(f=f.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var y=e,m=o;h=t;var x=n;switch(m.tag){case 1:if(y=m.payload,typeof y=="function"){d=y.call(x,d,h);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=m.payload,h=typeof y=="function"?y.call(x,d,h):y,h==null)break e;d=Je({},d,h);break e;case 2:Pa=!0}}h=o.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:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(u=f=p,c=d):f=f.next=p,l|=h;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;p=o,o=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 y_(e,t){if(typeof e!="function")throw Error(q(191,e));e.call(t)}function v_(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)y_(n[e],t)}var zo=Br(null),kd=Br(0);function pj(e,t){e=ga,Ge(kd,e),Ge(zo,t),ga=e|t.baseLanes}function Ev(){Ge(kd,ga),Ge(zo,zo.current)}function g0(){ga=kd.current,Rt(zo),Rt(kd)}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||zo.current!==null||t.memoizedState!==null)&&(Zn=e)}function _v(e){Ge(ut,ut.current),Ge(Rn,e),Zn===null&&(Zn=e)}function g_(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 $d(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Yv(n)||Vv(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,Pd=!1,bo=!1,dl=!1,Rd=0,qc=0,xo=null,l3=0;function it(){throw Error(q(321))}function b0(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Pn(e[n],t[n]))return!1;return!0}function x0(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?X_:M0,dl=!1,i=n(r,a),dl=!1,bo&&(i=x_(t,n,r,a)),b_(e),i}function b_(e){he.H=Fc;var t=Ie!==null&&Ie.next!==null;if(ma=0,vt=Ie=ge=null,Pd=!1,qc=0,xo=null,t)throw Error(q(300));e===null||jt||(e=e.dependencies,e!==null&&Cd(e)&&(jt=!0))}function x_(e,t,n,r){ge=e;var a=0;do{if(bo&&(xo=null),qc=0,bo=!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=W_,i=t(n,r)}while(bo);return i}function o3(){var e=he.H,t=e.useState()[0];return t=typeof t.then=="function"?Yu(t):t,e=e.useState()[0],(Ie!==null?Ie.memoizedState:null)!==e&&(ge.flags|=1024),t}function j0(){var e=Rd!==0;return Rd=0,e}function S0(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function w0(e){if(Pd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Pd=!1}ma=0,vt=Ie=ge=null,bo=!1,qc=Rd=0,xo=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 gp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yu(e){var t=qc;return qc+=1,xo===null&&(xo=[]),e=h_(xo,e,t),t=ge,(vt===null?t.memoizedState:vt.next)===null&&(t=t.alternate,he.H=t===null||t.memoizedState===null?X_:M0),e}function bp(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Yu(e);if(e.$$typeof===na)return qt(e)}throw Error(q(438,String(e)))}function O0(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=gp(),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]=YP;return t.index++,n}function ya(e,t){return typeof t=="function"?t(e):t}function ad(e){var t=dt();return A0(t,Ie,e)}function A0(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 o=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===Do&&(f=!0);else if((ma&h)===h){u=u.next,h===Do&&(f=!0);continue}else d={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},c===null?(o=c=d,l=i):c=c.next=d,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?(o=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=o,!Pn(i,e.memoizedState)&&(jt=!0,f&&(n=vo,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 Wm(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);Pn(i,t.memoizedState)||(jt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function j_(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=!Pn((Ie||a).memoizedState,n);if(l&&(a.memoizedState=n,jt=!0),a=a.queue,E0(O_.bind(null,r,a,e),[e]),a.getSnapshot!==t||l||vt!==null&&vt.memoizedState.tag&1){if(r.flags|=2048,Lo(9,{destroy:void 0},w_.bind(null,r,a,n,t),null),He===null)throw Error(q(349));i||ma&127||S_(r,t,n)}return n}function S_(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ge.updateQueue,t===null?(t=gp(),ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function w_(e,t,n,r){t.value=n,t.getSnapshot=r,A_(t)&&E_(e)}function O_(e,t,n){return n(function(){A_(t)&&E_(e)})}function A_(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pn(e,n)}catch{return!0}}function E_(e){var t=_l(e,2);t!==null&&dn(t,e,2)}function Tv(e){var t=Wt();if(typeof e=="function"){var n=e;if(e=n(),dl){Va(!0);try{n()}finally{Va(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:e},t}function __(e,t,n,r){return e.baseState=n,A0(e,Ie,typeof r=="function"?r:ya)}function s3(e,t,n,r,a){if(jp(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,T_(t,i)):(i.next=n.next,t.pending=n.next=i)}}function T_(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 o=n(a,r),c=he.S;c!==null&&c(l,o),mj(e,t,o)}catch(u){Nv(e,t,u)}finally{i!==null&&l.types!==null&&(i.types=l.types),he.T=i}}else try{i=n(a,r),mj(e,t,i)}catch(u){Nv(e,t,u)}}function mj(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){yj(e,t,r)},function(r){return Nv(e,t,r)}):yj(e,t,n)}function yj(e,t,n){t.status="fulfilled",t.value=n,N_(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,T_(e,n)))}function Nv(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,N_(t),t=t.next;while(t!==r)}e.action=null}function N_(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function C_(e,t){return t}function vj(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:C_,lastRenderedState:t},n.queue=r,n=Y_.bind(null,ge,r),r.dispatch=n,r=Tv(!1),i=C0.bind(null,ge,!1,r.queue),r=Wt(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=s3.bind(null,ge,a,i,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function gj(e){var t=dt();return M_(t,Ie,e)}function M_(e,t,n){if(t=A0(e,t,C_)[0],e=ad(ya)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Yu(t)}catch(l){throw l===js?vp:l}else r=t;t=dt();var a=t.queue,i=a.dispatch;return n!==t.memoizedState&&(ge.flags|=2048,Lo(9,{destroy:void 0},c3.bind(null,a,n),null)),[r,i,e]}function c3(e,t){e.action=t}function bj(e){var t=dt(),n=Ie;if(n!==null)return M_(t,n,e);dt(),t=t.memoizedState,n=dt();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Lo(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=ge.updateQueue,t===null&&(t=gp(),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 k_(){return dt().memoizedState}function id(e,t,n,r){var a=Wt();ge.flags|=e,a.memoizedState=Lo(1|t,{destroy:void 0},n,r===void 0?null:r)}function xp(e,t,n,r){var a=dt();r=r===void 0?null:r;var i=a.memoizedState.inst;Ie!==null&&r!==null&&b0(r,Ie.memoizedState.deps)?a.memoizedState=Lo(t,i,n,r):(ge.flags|=e,a.memoizedState=Lo(1|t,i,n,r))}function xj(e,t){id(8390656,8,e,t)}function E0(e,t){xp(2048,8,e,t)}function u3(e){ge.flags|=4;var t=ge.updateQueue;if(t===null)t=gp(),ge.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function $_(e){var t=dt().memoizedState;return u3({ref:t,nextImpl:e}),function(){if(Ce&2)throw Error(q(440));return t.impl.apply(void 0,arguments)}}function P_(e,t){return xp(4,2,e,t)}function R_(e,t){return xp(4,4,e,t)}function D_(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 z_(e,t,n){n=n!=null?n.concat([e]):null,xp(4,4,D_.bind(null,t,e),n)}function _0(){}function L_(e,t){var n=dt();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&b0(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function B_(e,t){var n=dt();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&b0(t,r[1]))return r[0];if(r=e(),dl){Va(!0);try{e()}finally{Va(!1)}}return n.memoizedState=[r,t],r}function T0(e,t,n){return n===void 0||ma&1073741824&&!(Ee&261930)?e.memoizedState=t:(e.memoizedState=n,e=_T(),ge.lanes|=e,vi|=e,n)}function I_(e,t,n,r){return Pn(n,t)?n:zo.current!==null?(e=T0(e,n,r),Pn(e,t)||(jt=!0),e):!(ma&42)||ma&1073741824&&!(Ee&261930)?(jt=!0,e.memoizedState=n):(e=_T(),ge.lanes|=e,vi|=e,t)}function U_(e,t,n,r,a){var i=Me.p;Me.p=i!==0&&8>i?i:8;var l=he.T,o={};he.T=o,C0(e,!1,t,n);try{var c=a(),u=he.S;if(u!==null&&u(o,c),c!==null&&typeof c=="object"&&typeof c.then=="function"){var f=i3(c,r);wc(e,t,f,Cn(e))}else wc(e,t,r,Cn(e))}catch(d){wc(e,t,{then:function(){},status:"rejected",reason:d},Cn())}finally{Me.p=i,l!==null&&o.types!==null&&(l.types=o.types),he.T=l}}function f3(){}function Cv(e,t,n,r){if(e.tag!==5)throw Error(q(476));var a=H_(e).queue;U_(e,a,t,el,n===null?f3:function(){return q_(e),n(r)})}function H_(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 q_(e){var t=H_(e);t.next===null&&(t=e.alternate.memoizedState),wc(e,t.next.queue,{},Cn())}function N0(){return qt(Vc)}function F_(){return dt().memoizedState}function G_(){return dt().memoizedState}function d3(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),xc(r,t,n)),t={cache:p0()},e.payload=t;return}t=t.return}}function h3(e,t,n){var r=Cn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},jp(e)?V_(t,n):(n=u0(e,t,n,r),n!==null&&(dn(n,e,r),K_(n,t,r)))}function Y_(e,t,n){var r=Cn();wc(e,t,n,r)}function wc(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(jp(e))V_(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,o=i(l,n);if(a.hasEagerState=!0,a.eagerState=o,Pn(o,l))return yp(e,t,a,0),He===null&&mp(),!1}catch{}finally{}if(n=u0(e,t,a,r),n!==null)return dn(n,e,r),K_(n,t,r),!0}return!1}function C0(e,t,n,r){if(r={lane:2,revertLane:B0(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},jp(e)){if(t)throw Error(q(479))}else t=u0(e,n,r,2),t!==null&&dn(t,e,2)}function jp(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function V_(e,t){bo=Pd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function K_(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$E(e,n)}}var Fc={readContext:qt,use:bp,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};Fc.useEffectEvent=it;var X_={readContext:qt,use:bp,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:qt,useEffect:xj,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,id(4194308,4,D_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return id(4194308,4,e,t)},useInsertionEffect:function(e,t){id(4,2,e,t)},useMemo:function(e,t){var n=Wt();t=t===void 0?null:t;var r=e();if(dl){Va(!0);try{e()}finally{Va(!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){Va(!0);try{n(t)}finally{Va(!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=h3.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:function(e){e=Tv(e);var t=e.queue,n=Y_.bind(null,ge,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:_0,useDeferredValue:function(e,t){var n=Wt();return T0(n,e,t)},useTransition:function(){var e=Tv(!1);return e=U_.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||S_(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,xj(O_.bind(null,r,i,e),[e]),r.flags|=2048,Lo(9,{destroy:void 0},w_.bind(null,r,i,n,t),null),n},useId:function(){var e=Wt(),t=He.identifierPrefix;if(_e){var n=Nr,r=Tr;n=(r&~(1<<32-Nn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Rd++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=l3++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:N0,useFormState:vj,useActionState:vj,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=C0.bind(null,ge,!0,n),n.dispatch=t,[e,t]},useMemoCache:O0,useCacheRefresh:function(){return Wt().memoizedState=d3.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)}}},M0={readContext:qt,use:bp,useCallback:L_,useContext:qt,useEffect:E0,useImperativeHandle:z_,useInsertionEffect:P_,useLayoutEffect:R_,useMemo:B_,useReducer:ad,useRef:k_,useState:function(){return ad(ya)},useDebugValue:_0,useDeferredValue:function(e,t){var n=dt();return I_(n,Ie.memoizedState,e,t)},useTransition:function(){var e=ad(ya)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:Yu(e),t]},useSyncExternalStore:j_,useId:F_,useHostTransitionStatus:N0,useFormState:gj,useActionState:gj,useOptimistic:function(e,t){var n=dt();return __(n,Ie,e,t)},useMemoCache:O0,useCacheRefresh:G_};M0.useEffectEvent=$_;var W_={readContext:qt,use:bp,useCallback:L_,useContext:qt,useEffect:E0,useImperativeHandle:z_,useInsertionEffect:P_,useLayoutEffect:R_,useMemo:B_,useReducer:Wm,useRef:k_,useState:function(){return Wm(ya)},useDebugValue:_0,useDeferredValue:function(e,t){var n=dt();return Ie===null?T0(n,e,t):I_(n,Ie.memoizedState,e,t)},useTransition:function(){var e=Wm(ya)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:Yu(e),t]},useSyncExternalStore:j_,useId:F_,useHostTransitionStatus:N0,useFormState:bj,useActionState:bj,useOptimistic:function(e,t){var n=dt();return Ie!==null?__(n,Ie,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:O0,useCacheRefresh:G_};W_.useEffectEvent=$_;function Qm(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 Mv={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),xc(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),xc(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),xc(t,e,n))}};function jj(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?!Bc(n,r)||!Bc(a,i):!0}function Sj(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&&Mv.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 Q_(e){_d(e)}function Z_(e){console.error(e)}function J_(e){_d(e)}function Dd(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function wj(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 kv(e,t,n){return n=ai(n),n.tag=3,n.payload={element:null},n.callback=function(){Dd(e,t)},n}function eT(e){return e=ai(e),e.tag=3,e}function tT(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(){wj(t,n,r)}}var l=n.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){wj(t,n,r),typeof a!="function"&&(li===null?li=new Set([this]):li.add(this));var o=r.stack;this.componentDidCatch(r.value,{componentStack:o!==null?o:""})})}function p3(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&xs(t,n,a,!0),n=Rn.current,n!==null){switch(n.tag){case 31:case 13:return Zn===null?Ud():n.alternate===null&&st===0&&(st=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Md?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),sy(e,r,a)),!1;case 22:return n.flags|=65536,r===Md?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),sy(e,r,a)),!1}throw Error(q(435,n.tag))}return sy(e,r,a),Ud(),!1}if(_e)return t=Rn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==bv&&(e=Error(q(422),{cause:r}),Uc(Kn(e,n)))):(r!==bv&&(t=Error(q(423),{cause:r}),Uc(Kn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Kn(r,n),a=kv(e.stateNode,r,a),Xm(e,a),st!==4&&(st=2)),!1;var i=Error(q(520),{cause:r});if(i=Kn(i,n),Ec===null?Ec=[i]:Ec.push(i),st!==4&&(st=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=kv(n.stateNode,r,e),Xm(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=eT(a),tT(a,e,n,r),Xm(n,a),!1}n=n.return}while(n!==null);return!1}var k0=Error(q(461)),jt=!1;function Bt(e,t,n,r){t.child=e===null?m_(t,null,n,r):fl(t,e.child,n,r)}function Oj(e,t,n,r,a){n=n.render;var i=t.ref;if("ref"in r){var l={};for(var o in r)o!=="ref"&&(l[o]=r[o])}else l=r;return ul(t),r=x0(e,t,n,l,i,a),o=j0(),e!==null&&!jt?(S0(e,t,a),va(e,t,a)):(_e&&o&&d0(t),t.flags|=1,Bt(e,t,r,a),t.child)}function Aj(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!f0(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,nT(e,t,i,r,a)):(e=nd(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!$0(e,a)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:Bc,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 nT(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(Bc(i,r)&&e.ref===t.ref)if(jt=!1,t.pendingProps=r=i,$0(e,a))e.flags&131072&&(jt=!0);else return t.lanes=e.lanes,va(e,t,a)}return $v(e,t,n,r,a)}function rT(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 Ej(e,t,i,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&rd(t,i!==null?i.cachePool:null),i!==null?pj(t,i):Ev(),g_(t);else return r=t.lanes=536870912,Ej(e,t,i!==null?i.baseLanes|n:n,n,r)}else i!==null?(rd(t,i.cachePool),pj(t,i),La(),t.memoizedState=null):(e!==null&&rd(t,null),Ev(),La());return Bt(e,t,a,n),t.child}function dc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ej(e,t,n,r,a){var i=m0();return i=i===null?null:{parent:bt._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&rd(t,null),Ev(),g_(t),e!==null&&xs(e,t,r,!0),t.childLanes=a,null}function ld(e,t){return t=zd({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function _j(e,t,n){return fl(t,e.child,null,n),e=ld(t,t.pendingProps),e.flags|=2,wn(t),t.memoizedState=null,e}function m3(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=ld(t,r),t.lanes=536870912,dc(null,e);if(_v(t),(e=Qe)?(e=XT(e,Xn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pi!==null?{id:Tr,overflow:Nr}:null,retryLane:536870912,hydrationErrors:null},n=s_(e),n.return=t,t.child=n,Ut=t,Qe=null)):e=null,e===null)throw mi(t);return t.lanes=536870912,null}return ld(t,r)}var i=e.memoizedState;if(i!==null){var l=i.dehydrated;if(_v(t),a)if(t.flags&256)t.flags&=-257,t=_j(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||xs(e,t,n,!1),a=(n&e.childLanes)!==0,jt||a){if(r=He,r!==null&&(l=PE(r,n),l!==0&&l!==i.retryLane))throw i.retryLane=l,_l(e,l),dn(r,e,l),k0;Ud(),t=_j(e,t,n)}else e=i.treeContext,Qe=Jn(l.nextSibling),Ut=t,_e=!0,ri=null,Xn=!1,e!==null&&u_(t,e),t=ld(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 od(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 $v(e,t,n,r,a){return ul(t),n=x0(e,t,n,r,void 0,a),r=j0(),e!==null&&!jt?(S0(e,t,a),va(e,t,a)):(_e&&r&&d0(t),t.flags|=1,Bt(e,t,n,a),t.child)}function Tj(e,t,n,r,a,i){return ul(t),t.updateQueue=null,n=x_(t,r,n,a),b_(e),r=j0(),e!==null&&!jt?(S0(e,t,i),va(e,t,i)):(_e&&r&&d0(t),t.flags|=1,Bt(e,t,n,i),t.child)}function Nj(e,t,n,r,a){if(ul(t),t.stateNode===null){var i=ao,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=Mv,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=r,i.state=t.memoizedState,i.refs={},v0(t),l=n.contextType,i.context=typeof l=="object"&&l!==null?qt(l):ao,i.state=t.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(Qm(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&&Mv.enqueueReplaceState(i,i.state,null),Sc(t,r,i,a),jc(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){i=t.stateNode;var o=t.memoizedProps,c=hl(n,o);i.props=c;var u=i.context,f=n.contextType;l=ao,typeof f=="object"&&f!==null&&(l=qt(f));var d=n.getDerivedStateFromProps;f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o||u!==l)&&Sj(t,i,r,l),Pa=!1;var h=t.memoizedState;i.state=h,Sc(t,r,i,a),jc(),u=t.memoizedState,o||h!==u||Pa?(typeof d=="function"&&(Qm(t,n,d,r),u=t.memoizedState),(c=Pa||jj(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,Ov(e,t),l=t.memoizedProps,f=hl(n,l),i.props=f,d=t.pendingProps,h=i.context,u=n.contextType,c=ao,typeof u=="object"&&u!==null&&(c=qt(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==d||h!==c)&&Sj(t,i,r,c),Pa=!1,h=t.memoizedState,i.state=h,Sc(t,r,i,a),jc();var p=t.memoizedState;l!==d||h!==p||Pa||e!==null&&e.dependencies!==null&&Cd(e.dependencies)?(typeof o=="function"&&(Qm(t,n,o,r),p=t.memoizedState),(f=Pa||jj(t,n,f,r,h,p,c)||e!==null&&e.dependencies!==null&&Cd(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,od(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 Cj(e,t,n,r){return cl(),t.flags|=256,Bt(e,t,n,r),t.child}var Zm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jm(e){return{baseLanes:e,cachePool:d_()}}function ey(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=En),e}function aT(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=XT(e,Xn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pi!==null?{id:Tr,overflow:Nr}:null,retryLane:536870912,hydrationErrors:null},n=s_(e),n.return=t,t.child=n,Ut=t,Qe=null)):e=null,e===null)throw mi(t);return Vv(e)?t.lanes=32:t.lanes=536870912,null}var o=r.children;return r=r.fallback,a?(La(),a=t.mode,o=zd({mode:"hidden",children:o},a),r=tl(r,a,n,null),o.return=t,r.return=t,o.sibling=r,t.child=o,r=t.child,r.memoizedState=Jm(n),r.childLanes=ey(e,l,n),t.memoizedState=Zm,dc(null,r)):(za(t),Pv(t,o))}var c=e.memoizedState;if(c!==null&&(o=c.dehydrated,o!==null)){if(i)t.flags&256?(za(t),t.flags&=-257,t=ty(e,t,n)):t.memoizedState!==null?(La(),t.child=e.child,t.flags|=128,t=null):(La(),o=r.fallback,a=t.mode,r=zd({mode:"visible",children:r.children},a),o=tl(o,a,n,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,fl(t,e.child,null,n),r=t.child,r.memoizedState=Jm(n),r.childLanes=ey(e,l,n),t.memoizedState=Zm,t=dc(null,r));else if(za(t),Vv(o)){if(l=o.nextSibling&&o.nextSibling.dataset,l)var u=l.dgst;l=u,r=Error(q(419)),r.stack="",r.digest=l,Uc({value:r,source:null,stack:null}),t=ty(e,t,n)}else if(jt||xs(e,t,n,!1),l=(n&e.childLanes)!==0,jt||l){if(l=He,l!==null&&(r=PE(l,n),r!==0&&r!==c.retryLane))throw c.retryLane=r,_l(e,r),dn(l,e,r),k0;Yv(o)||Ud(),t=ty(e,t,n)}else Yv(o)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,Qe=Jn(o.nextSibling),Ut=t,_e=!0,ri=null,Xn=!1,e!==null&&u_(t,e),t=Pv(t,r.children),t.flags|=4096);return t}return a?(La(),o=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?o=ca(u,o):(o=tl(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,dc(null,r),r=t.child,o=e.child.memoizedState,o===null?o=Jm(n):(a=o.cachePool,a!==null?(c=bt._currentValue,a=a.parent!==c?{parent:c,pool:c}:a):a=d_(),o={baseLanes:o.baseLanes|n,cachePool:a}),r.memoizedState=o,r.childLanes=ey(e,l,n),t.memoizedState=Zm,dc(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 Pv(e,t){return t=zd({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function zd(e,t){return e=On(22,e,null,t),e.lanes=0,e}function ty(e,t,n){return fl(t,e.child,null,n),e=Pv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Mj(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),jv(e.return,t,n)}function ny(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 iT(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;r=r.children;var l=ut.current,o=(l&2)!==0;if(o?(l=l&1|2,t.flags|=128):l&=1,Ge(ut,l),Bt(e,t,r,n),r=_e?Ic:0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Mj(e,n,t);else if(e.tag===19)Mj(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&&$d(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),ny(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&&$d(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}ny(t,!0,n,null,i,r);break;case"together":ny(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(xs(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 $0(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Cd(e)))}function y3(e,t,n){switch(t.tag){case 3:wd(t,t.stateNode.containerInfo),Da(t,bt,e.memoizedState.cache),cl();break;case 27:case 5:sv(t);break;case 4:wd(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,_v(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?aT(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||(xs(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return iT(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,rT(e,t,n,t.pendingProps);case 24:Da(t,bt,e.memoizedState.cache)}return va(e,t,n)}function lT(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)jt=!0;else{if(!$0(e,n)&&!(t.flags&128))return jt=!1,y3(e,t,n);jt=!!(e.flags&131072)}else jt=!1,_e&&t.flags&1048576&&c_(t,Ic,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")f0(e)?(r=hl(e,r),t.tag=1,t=Nj(null,t,e,r,n)):(t.tag=0,t=$v(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===Qb){t.tag=11,t=Oj(null,t,e,r,n);break e}else if(a===Zb){t.tag=14,t=Aj(null,t,e,r,n);break e}}throw t=lv(e)||e,Error(q(306,t,""))}}return t;case 0:return $v(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=hl(r,t.pendingProps),Nj(e,t,r,a,n);case 3:e:{if(wd(t,t.stateNode.containerInfo),e===null)throw Error(q(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,Ov(e,t),Sc(t,r,null,n);var l=t.memoizedState;if(r=l.cache,Da(t,bt,r),r!==i.cache&&Sv(t,[bt],n,!0),jc(),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=Cj(e,t,r,n);break e}else if(r!==a){a=Kn(Error(q(424)),t),Uc(a),t=Cj(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=m_(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 od(e,t),e===null?(n=Qj(t.type,null,t.pendingProps,null))?t.memoizedState=n:_e||(n=t.type,e=t.pendingProps,r=Gd(ni.current).createElement(n),r[It]=t,r[pn]=e,Ft(r,n,e),$t(r),t.stateNode=r):t.memoizedState=Qj(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return sv(t),e===null&&_e&&(r=t.stateNode=WT(t.type,t.pendingProps,ni.current),Ut=t,Xn=!0,a=Qe,bi(t.type)?(Kv=a,Qe=Jn(r.firstChild)):Qe=a),Bt(e,t,t.pendingProps.children,n),od(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&_e&&((a=r=Qe)&&(r=Y3(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)),sv(t),a=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,r=i.children,Fv(a,i)?r=null:l!==null&&Fv(a,l)&&(t.flags|=32),t.memoizedState!==null&&(a=x0(e,t,o3,null,null,n),Vc._currentValue=a),od(e,t),Bt(e,t,r,n),t.child;case 6:return e===null&&_e&&((e=n=Qe)&&(n=V3(n,t.pendingProps,Xn),n!==null?(t.stateNode=n,Ut=t,Qe=null,e=!0):e=!1),e||mi(t)),null;case 13:return aT(e,t,n);case 4:return wd(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 Oj(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 Aj(e,t,t.type,t.pendingProps,n);case 15:return nT(e,t,t.type,t.pendingProps,n);case 19:return iT(e,t,n);case 31:return m3(e,t,n);case 22:return rT(e,t,n,t.pendingProps);case 24:return ul(t),r=qt(bt),e===null?(a=m0(),a===null&&(a=He,i=p0(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},v0(t),Da(t,bt,a)):(e.lanes&n&&(Ov(e,t),Sc(t,null,null,n),jc()),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&&Sv(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 Yr(e){e.flags|=4}function ry(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(CT())e.flags|=8192;else throw rl=Md,y0}else e.flags&=-16777217}function kj(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!JT(t))if(CT())e.flags|=8192;else throw rl=Md,y0}function _f(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ME():536870912,e.lanes|=t,Bo|=t)}function Ks(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 v3(e,t,n){var r=t.pendingProps;switch(h0(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),$o(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Bl(t)?Yr(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Km())),Ke(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(Yr(t),i!==null?(Ke(t),kj(t,i)):(Ke(t),ry(t,a,null,r,n))):i?i!==e.memoizedState?(Yr(t),Ke(t),kj(t,i)):(Ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Yr(t),Ke(t),ry(t,a,e,r,n)),null;case 27:if(Od(t),n=ni.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Yr(t);else{if(!r){if(t.stateNode===null)throw Error(q(166));return Ke(t),null}e=Pr.current,Bl(t)?oj(t):(e=WT(a,r,n),t.stateNode=e,Yr(t))}return Ke(t),null;case 5:if(Od(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Yr(t);else{if(!r){if(t.stateNode===null)throw Error(q(166));return Ke(t),null}if(i=Pr.current,Bl(t))oj(t);else{var l=Gd(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&&Yr(t)}}return Ke(t),ry(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Yr(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||YT(e.nodeValue,n)),e||mi(t,!0)}else e=Gd(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=Km(),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=Km(),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),_f(t,t.updateQueue),Ke(t),null);case 4:return $o(),e===null&&I0(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)Ks(r,!1);else{if(st!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=$d(e),i!==null){for(t.flags|=128,Ks(r,!1),e=i.updateQueue,t.updateQueue=e,_f(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)o_(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()>Bd&&(t.flags|=128,a=!0,Ks(r,!1),t.lanes=4194304)}else{if(!a)if(e=$d(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,_f(t,e),Ks(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!_e)return Ke(t),null}else 2*_n()-r.renderingStartTime>Bd&&n!==536870912&&(t.flags|=128,a=!0,Ks(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),g0(),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&&_f(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 g3(e,t){switch(h0(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ua(bt),$o(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Od(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 $o(),null;case 10:return ua(t.type),null;case 22:case 23:return wn(t),g0(),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 oT(e,t){switch(h0(t),t.tag){case 3:ua(bt),$o();break;case 26:case 27:case 5:Od(t);break;case 4:$o();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),g0(),e!==null&&Rt(nl);break;case 24:ua(bt)}}function Vu(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var i=n.create,l=n.inst;r=i(),l.destroy=r}n=n.next}while(n!==a)}}catch(o){De(t,t.return,o)}}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,o=l.destroy;if(o!==void 0){l.destroy=void 0,a=t;var c=n,u=o;try{u()}catch(f){De(a,c,f)}}}r=r.next}while(r!==i)}}catch(f){De(t,t.return,f)}}function sT(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{v_(t,n)}catch(r){De(e,e.return,r)}}}function cT(e,t,n){n.props=hl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){De(e,t,r)}}function Oc(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 uT(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 ay(e,t,n){try{var r=e.stateNode;I3(r,e.type,n,t),r[pn]=t}catch(a){De(e,e.return,a)}}function fT(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&bi(e.type)||e.tag===4}function iy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fT(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 Rv(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(Rv(e,t,n),e=e.sibling;e!==null;)Rv(e,t,n),e=e.sibling}function Ld(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(Ld(e,t,n),e=e.sibling;e!==null;)Ld(e,t,n),e=e.sibling}function dT(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,ly=!1,$j=typeof WeakSet=="function"?WeakSet:Set,kt=null;function b3(e,t){if(e=e.containerInfo,Hv=Xd,e=JE(e),s0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,o=-1,c=-1,u=0,f=0,d=e,h=null;t:for(;;){for(var p;d!==n||a!==0&&d.nodeType!==3||(o=l+a),d!==i||r!==0&&d.nodeType!==3||(c=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++u===a&&(o=l),h===i&&++f===r&&(c=l),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=o===-1||c===-1?null:{start:o,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(qv={focusedElem:e,selectionRange:n},Xd=!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(m){De(n,n.return,m)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Gv(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Gv(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 hT(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Kr(e,n),r&4&&Vu(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&&sT(n),r&512&&Oc(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{v_(e,t)}catch(l){De(n,n.return,l)}}break;case 27:t===null&&r&4&&dT(n);case 26:case 5:Kr(e,n),t===null&&r&4&&uT(n),r&512&&Oc(n,n.return);break;case 12:Kr(e,n);break;case 31:Kr(e,n),r&4&&yT(e,n);break;case 13:Kr(e,n),r&4&&vT(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=T3.bind(null,n),K3(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 pT(e){var t=e.alternate;t!==null&&(e.alternate=null,pT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&n0(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 Vr(e,t,n){for(n=n.child;n!==null;)mT(e,t,n),n=n.sibling}function mT(e,t,n){if(Tn&&typeof Tn.onCommitFiberUnmount=="function")try{Tn.onCommitFiberUnmount(Iu,n)}catch{}switch(n.tag){case 26:gt||Cr(n,t),Vr(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),Vr(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,Vr(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,Yj(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),qo(e)):Yj(et,n.stateNode));break;case 4:r=et,a=cn,et=n.stateNode.containerInfo,cn=!0,Vr(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),Vr(e,t,n);break;case 1:gt||(Cr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&cT(n,t,r)),Vr(e,t,n);break;case 21:Vr(e,t,n);break;case 22:gt=(r=gt)||n.memoizedState!==null,Vr(e,t,n),gt=r;break;default:Vr(e,t,n)}}function yT(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{qo(e)}catch(n){De(t,t.return,n)}}}function vT(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qo(e)}catch(n){De(t,t.return,n)}}function x3(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new $j),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new $j),t;default:throw Error(q(435,e.tag))}}function Tf(e,t){var n=x3(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=N3.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,o=l;e:for(;o!==null;){switch(o.tag){case 27:if(bi(o.type)){et=o.stateNode,cn=!1;break e}break;case 5:et=o.stateNode,cn=!1;break e;case 3:case 4:et=o.stateNode.containerInfo,cn=!0;break e}o=o.return}if(et===null)throw Error(q(160));mT(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;)gT(t,e),t=t.sibling}var ur=null;function gT(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ln(t,e),on(e),r&4&&(yi(3,e,e.return),Vu(3,e),yi(5,e,e.return));break;case 1:ln(t,e),on(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),on(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[qu]||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,$t(i),r=i;break e;case"link":var l=Jj("link","href",a).get(r+(n.href||""));if(l){for(var o=0;o<l.length;o++)if(i=l[o],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){l.splice(o,1);break t}}i=a.createElement(r),Ft(i,r,n),a.head.appendChild(i);break;case"meta":if(l=Jj("meta","content",a).get(r+(n.content||""))){for(o=0;o<l.length;o++)if(i=l[o],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){l.splice(o,1);break t}}i=a.createElement(r),Ft(i,r,n),a.head.appendChild(i);break;default:throw Error(q(468,r))}i[It]=e,$t(i),r=i}e.stateNode=r}else eS(a,e.type,e.stateNode);else e.stateNode=Zj(a,r,e.memoizedProps);else i!==r?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,r===null?eS(a,e.type,e.stateNode):Zj(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&ay(e,e.memoizedProps,n.memoizedProps)}break;case 27:ln(t,e),on(e),r&512&&(gt||n===null||Cr(n,n.return)),n!==null&&r&4&&ay(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ln(t,e),on(e),r&512&&(gt||n===null||Cr(n,n.return)),e.flags&32){a=e.stateNode;try{Ro(a,"")}catch(y){De(e,e.return,y)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,ay(e,a,n!==null?n.memoizedProps:a)),r&1024&&(ly=!0);break;case 6:if(ln(t,e),on(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(ud=null,a=ur,ur=Yd(t.containerInfo),ln(t,e),ur=a,on(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{qo(t.containerInfo)}catch(y){De(e,e.return,y)}ly&&(ly=!1,bT(e));break;case 4:r=ur,ur=Yd(e.stateNode.containerInfo),ln(t,e),on(e),ur=r;break;case 12:ln(t,e),on(e);break;case 31:ln(t,e),on(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Tf(e,r)));break;case 13:ln(t,e),on(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Sp=_n()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Tf(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,on(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{o=c.stateNode;var d=c.memoizedProps.style,h=d!=null&&d.hasOwnProperty("display")?d.display:null;o.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(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?Vj(p,!0):Vj(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,Tf(e,n))));break;case 19:ln(t,e),on(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Tf(e,r)));break;case 30:break;case 21:break;default:ln(t,e),on(e)}}function on(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(fT(r)){n=r;break}r=r.return}if(n==null)throw Error(q(160));switch(n.tag){case 27:var a=n.stateNode,i=iy(e);Ld(e,i,a);break;case 5:var l=n.stateNode;n.flags&32&&(Ro(l,""),n.flags&=-33);var o=iy(e);Ld(e,o,l);break;case 3:case 4:var c=n.stateNode.containerInfo,u=iy(e);Rv(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 bT(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;bT(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;)hT(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"&&cT(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),Vu(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 o=r.stateNode;try{var c=a.shared.hiddenCallbacks;if(c!==null)for(a.shared.hiddenCallbacks=null,a=0;a<c.length;a++)y_(c[a],o)}catch(u){De(r,r.return,u)}}n&&l&64&&sT(i),Oc(i,i.return);break;case 27:dT(i);case 26:case 5:Wr(a,i,n),n&&r===null&&l&4&&uT(i),Oc(i,i.return);break;case 12:Wr(a,i,n);break;case 31:Wr(a,i,n),n&&l&4&&yT(a,i);break;case 13:Wr(a,i,n),n&&l&4&&vT(a,i);break;case 22:i.memoizedState===null&&Wr(a,i,n),Oc(i,i.return);break;case 30:break;default:Wr(a,i,n)}t=t.sibling}}function P0(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&&Gu(n))}function R0(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Gu(e))}function lr(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xT(e,t,n,r),t=t.sibling}function xT(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:lr(e,t,n,r),a&2048&&Vu(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&&Gu(e)));break;case 12:if(a&2048){lr(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,l=i.id,o=i.onPostCommit;typeof o=="function"&&o(l,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(c){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):Ac(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&&P0(l,t);break;case 24:lr(e,t,n,r),a&2048&&R0(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,o=n,c=r,u=l.flags;switch(l.tag){case 0:case 11:case 15:Kl(i,l,o,c,a),Vu(8,l);break;case 23:break;case 22:var f=l.stateNode;l.memoizedState!==null?f._visibility&2?Kl(i,l,o,c,a):Ac(i,l):(f._visibility|=2,Kl(i,l,o,c,a)),a&&u&2048&&P0(l.alternate,l);break;case 24:Kl(i,l,o,c,a),a&&u&2048&&R0(l.alternate,l);break;default:Kl(i,l,o,c,a)}t=t.sibling}}function Ac(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:Ac(n,r),a&2048&&P0(r.alternate,r);break;case 24:Ac(n,r),a&2048&&R0(r.alternate,r);break;default:Ac(n,r)}t=t.sibling}}var hc=8192;function Il(e,t,n){if(e.subtreeFlags&hc)for(e=e.child;e!==null;)jT(e,t,n),e=e.sibling}function jT(e,t,n){switch(e.tag){case 26:Il(e,t,n),e.flags&hc&&e.memoizedState!==null&&lD(n,ur,e.memoizedState,e.memoizedProps);break;case 5:Il(e,t,n);break;case 3:case 4:var r=ur;ur=Yd(e.stateNode.containerInfo),Il(e,t,n),ur=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=hc,hc=16777216,Il(e,t,n),hc=r):Il(e,t,n));break;default:Il(e,t,n)}}function ST(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 Xs(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,OT(r,e)}ST(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wT(e),e=e.sibling}function wT(e){switch(e.tag){case 0:case 11:case 15:Xs(e),e.flags&2048&&yi(9,e,e.return);break;case 3:Xs(e);break;case 12:Xs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,sd(e)):Xs(e);break;default:Xs(e)}}function sd(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,OT(r,e)}ST(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:yi(8,t,t.return),sd(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,sd(t));break;default:sd(t)}e=e.sibling}}function OT(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:Gu(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(pT(r),r===n){kt=null;break e}if(a!==null){a.return=i,kt=a;break e}kt=i}}}var j3={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}},S3=typeof WeakMap=="function"?WeakMap:Map,Ce=0,He=null,Se=null,Ee=0,Re=0,bn=null,Xa=!1,Ss=!1,D0=!1,ga=0,st=0,vi=0,al=0,z0=0,En=0,Bo=0,Ec=null,un=null,Dv=!1,Sp=0,AT=0,Bd=1/0,Id=null,li=null,Et=0,oi=null,Io=null,fa=0,zv=0,Lv=null,ET=null,_c=0,Bv=null;function Cn(){return Ce&2&&Ee!==0?Ee&-Ee:he.T!==null?B0():RE()}function _T(){if(En===0)if(!(Ee&536870912)||_e){var e=xf;xf<<=1,!(xf&3932160)&&(xf=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)&&(Uo(e,0),Wa(e,Ee,En,!1)),Hu(e,n),(!(Ce&2)||e!==He)&&(e===He&&(!(Ce&2)&&(al|=n),st===4&&Wa(e,Ee,En,!1)),Ir(e))}function TT(e,t,n){if(Ce&6)throw Error(q(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Uu(e,t),a=r?A3(e,t):oy(e,t,!0),i=r;do{if(a===0){Ss&&!r&&Wa(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!w3(n)){a=oy(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){t=l;e:{var o=e;a=Ec;var c=o.current.memoizedState.isDehydrated;if(c&&(Uo(o,l).flags|=256),l=oy(o,l,!1),l!==2){if(D0&&!c){o.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){Uo(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=Sp+300-_n(),10<a)){if(Wa(r,t,En,!Xa),fp(r,0,!0)!==0)break e;fa=t,r.timeoutHandle=KT(Pj.bind(null,r,n,un,Id,Dv,t,En,al,Bo,Xa,i,"Throttled",-0,0),a);break e}Pj(r,n,un,Id,Dv,t,En,al,Bo,Xa,i,null,-0,0)}}break}while(!0);Ir(e)}function Pj(e,t,n,r,a,i,l,o,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},jT(t,i,d);var y=(i&62914560)===i?Sp-_n():(i&4194048)===i?AT-_n():0;if(y=oD(d,y),y!==null){fa=i,e.cancelPendingCommit=y(Dj.bind(null,e,t,i,n,r,a,l,o,c,f,d,null,h,p)),Wa(e,i,l,!u);return}}Dj(e,t,i,n,r,a,l,o,c)}function w3(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var a=n[r],i=a.getSnapshot;a=a.value;try{if(!Pn(i(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wa(e,t,n,r){t&=~z0,t&=~al,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var i=31-Nn(a),l=1<<i;r[i]=-1,a&=~l}n!==0&&kE(e,n,t)}function wp(){return Ce&6?!0:(Ku(0),!1)}function L0(){if(Se!==null){if(Re===0)var e=Se.return;else e=Se,aa=Tl=null,w0(e),go=null,Hc=0,e=Se;for(;e!==null;)oT(e.alternate,e),e=e.return;Se=null}}function Uo(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,q3(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),fa=0,L0(),He=e,Se=n=ca(e.current,null),Ee=t,Re=0,bn=null,Xa=!1,Ss=Uu(e,t),D0=!1,Bo=En=z0=al=vi=st=0,un=Ec=null,Dv=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-Nn(r),i=1<<a;t|=e[a],r&=~i}return ga=t,mp(),n}function NT(e,t){ge=null,he.H=Fc,t===js||t===vp?(t=dj(),Re=3):t===y0?(t=dj(),Re=4):Re=t===k0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,bn=t,Se===null&&(st=1,Dd(e,Kn(t,e.current)))}function CT(){var e=Rn.current;return e===null?!0:(Ee&4194048)===Ee?Zn===null:(Ee&62914560)===Ee||Ee&536870912?e===Zn:!1}function MT(){var e=he.H;return he.H=Fc,e===null?Fc:e}function kT(){var e=he.A;return he.A=j3,e}function Ud(){st=4,Xa||(Ee&4194048)!==Ee&&Rn.current!==null||(Ss=!0),!(vi&134217727)&&!(al&134217727)||He===null||Wa(He,Ee,En,!1)}function oy(e,t,n){var r=Ce;Ce|=2;var a=MT(),i=kT();(He!==e||Ee!==t)&&(Id=null,Uo(e,t)),t=!1;var l=st;e:do try{if(Re!==0&&Se!==null){var o=Se,c=bn;switch(Re){case 8:L0(),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,oo(e,o,c,u),n&&Ss){l=0;break e}break;default:u=Re,Re=0,bn=null,oo(e,o,c,u)}}O3(),l=st;break}catch(f){NT(e,f)}while(!0);return t&&e.shellSuspendCounter++,aa=Tl=null,Ce=r,he.H=a,he.A=i,Se===null&&(He=null,Ee=0,mp()),l}function O3(){for(;Se!==null;)$T(Se)}function A3(e,t){var n=Ce;Ce|=2;var r=MT(),a=kT();He!==e||Ee!==t?(Id=null,Bd=_n()+500,Uo(e,t)):Ss=Uu(e,t);e:do try{if(Re!==0&&Se!==null){t=Se;var i=bn;t:switch(Re){case 1:Re=0,bn=null,oo(e,t,i,1);break;case 2:case 9:if(fj(i)){Re=0,bn=null,Rj(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:fj(i)?(Re=0,bn=null,Rj(t)):(Re=0,bn=null,oo(e,t,i,7));break;case 5:var l=null;switch(Se.tag){case 26:l=Se.memoizedState;case 5:case 27:var o=Se;if(l?JT(l):o.stateNode.complete){Re=0,bn=null;var c=o.sibling;if(c!==null)Se=c;else{var u=o.return;u!==null?(Se=u,Op(u)):Se=null}break t}}Re=0,bn=null,oo(e,t,i,5);break;case 6:Re=0,bn=null,oo(e,t,i,6);break;case 8:L0(),st=6;break e;default:throw Error(q(462))}}E3();break}catch(f){NT(e,f)}while(!0);return aa=Tl=null,he.H=r,he.A=a,Ce=n,Se!==null?0:(He=null,Ee=0,mp(),st)}function E3(){for(;Se!==null&&!XP();)$T(Se)}function $T(e){var t=lT(e.alternate,e,ga);e.memoizedProps=e.pendingProps,t===null?Op(e):Se=t}function Rj(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Tj(n,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=Tj(n,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:w0(t);default:oT(n,t),t=Se=o_(t,ga),t=lT(n,t,ga)}e.memoizedProps=e.pendingProps,t===null?Op(e):Se=t}function oo(e,t,n,r){aa=Tl=null,w0(t),go=null,Hc=0;var a=t.return;try{if(p3(e,a,t,n,Ee)){st=1,Dd(e,Kn(n,e.current)),Se=null;return}}catch(i){if(a!==null)throw Se=a,i;st=1,Dd(e,Kn(n,e.current)),Se=null;return}t.flags&32768?(_e||r===1?e=!0:Ss||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))),PT(t,e)):Op(t)}function Op(e){var t=e;do{if(t.flags&32768){PT(t,Xa);return}e=t.return;var n=v3(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);st===0&&(st=5)}function PT(e,t){do{var n=g3(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);st=6,Se=null}function Dj(e,t,n,r,a,i,l,o,c){e.cancelPendingCommit=null;do Ap();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|=c0,iR(e,n,i,l,o,c),e===He&&(Se=He=null,Ee=0),Io=t,oi=e,fa=n,zv=i,Lv=a,ET=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,C3(Ad,function(){return BT(),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{b3(e,t,n)}finally{Ce=l,Me.p=a,he.T=r}}Et=1,RT(),DT(),zT()}}function RT(){if(Et===1){Et=0;var e=oi,t=Io,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{gT(t,e);var i=qv,l=JE(e.containerInfo),o=i.focusedElem,c=i.selectionRange;if(l!==o&&o&&o.ownerDocument&&ZE(o.ownerDocument.documentElement,o)){if(c!==null&&s0(o)){var u=c.start,f=c.end;if(f===void 0&&(f=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(f,o.value.length);else{var d=o.ownerDocument||document,h=d&&d.defaultView||window;if(h.getSelection){var p=h.getSelection(),y=o.textContent.length,m=Math.min(c.start,y),x=c.end===void 0?m:Math.min(c.end,y);!p.extend&&m>x&&(l=x,x=m,m=l);var g=aj(o,m),j=aj(o,x);if(g&&j&&(p.rangeCount!==1||p.anchorNode!==g.node||p.anchorOffset!==g.offset||p.focusNode!==j.node||p.focusOffset!==j.offset)){var b=d.createRange();b.setStart(g.node,g.offset),p.removeAllRanges(),m>x?(p.addRange(b),p.extend(j.node,j.offset)):(b.setEnd(j.node,j.offset),p.addRange(b))}}}}for(d=[],p=o;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<d.length;o++){var v=d[o];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}Xd=!!Hv,qv=Hv=null}finally{Ce=a,Me.p=r,he.T=n}}e.current=t,Et=2}}function DT(){if(Et===2){Et=0;var e=oi,t=Io,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{hT(e,t.alternate,t)}finally{Ce=a,Me.p=r,he.T=n}}Et=3}}function zT(){if(Et===4||Et===3){Et=0,WP();var e=oi,t=Io,n=fa,r=ET;t.subtreeFlags&10256||t.flags&10256?Et=5:(Et=0,Io=oi=null,LT(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(li=null),t0(n),t=t.stateNode,Tn&&typeof Tn.onCommitFiberRoot=="function")try{Tn.onCommitFiberRoot(Iu,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 o=r[l];i(o.value,{componentStack:o.stack})}}finally{he.T=t,Me.p=a}}fa&3&&Ap(),Ir(e),a=e.pendingLanes,n&261930&&a&42?e===Bv?_c++:(_c=0,Bv=e):_c=0,Ku(0)}}function LT(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Gu(t)))}function Ap(){return RT(),DT(),zT(),BT()}function BT(){if(Et!==5)return!1;var e=oi,t=zv;zv=0;var n=t0(fa),r=he.T,a=Me.p;try{Me.p=32>n?32:n,he.T=null,n=Lv,Lv=null;var i=oi,l=fa;if(Et=0,Io=oi=null,fa=0,Ce&6)throw Error(q(331));var o=Ce;if(Ce|=4,wT(i.current),xT(i,i.current,l,n),Ce=o,Ku(0,!1),Tn&&typeof Tn.onPostCommitFiberRoot=="function")try{Tn.onPostCommitFiberRoot(Iu,i)}catch{}return!0}finally{Me.p=a,he.T=r,LT(e,t)}}function zj(e,t,n){t=Kn(n,t),t=kv(e.stateNode,t,2),e=ii(e,t,2),e!==null&&(Hu(e,2),Ir(e))}function De(e,t,n){if(e.tag===3)zj(e,e,n);else for(;t!==null;){if(t.tag===3){zj(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=eT(2),r=ii(t,n,2),r!==null&&(tT(n,r,t,e),Hu(r,2),Ir(r));break}}t=t.return}}function sy(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new S3;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)||(D0=!0,a.add(n),e=_3.bind(null,e,t,n),t.then(e,e))}function _3(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&&(st===4||st===3&&(Ee&62914560)===Ee&&300>_n()-Sp?!(Ce&2)&&Uo(e,0):z0|=n,Bo===Ee&&(Bo=0)),Ir(e)}function IT(e,t){t===0&&(t=ME()),e=_l(e,t),e!==null&&(Hu(e,t),Ir(e))}function T3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),IT(e,n)}function N3(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),IT(e,n)}function C3(e,t){return Jb(e,t)}var Hd=null,Xl=null,Iv=!1,qd=!1,cy=!1,Qa=0;function Ir(e){e!==Xl&&e.next===null&&(Xl===null?Hd=Xl=e:Xl=Xl.next=e),qd=!0,Iv||(Iv=!0,k3())}function Ku(e,t){if(!cy&&qd){cy=!0;do for(var n=!1,r=Hd;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var i=0;else{var l=r.suspendedLanes,o=r.pingedLanes;i=(1<<31-Nn(42|e)+1)-1,i&=a&~(l&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,Lj(r,i))}else i=Ee,i=fp(r,r===He?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(i&3)||Uu(r,i)||(n=!0,Lj(r,i));r=r.next}while(n);cy=!1}}function M3(){UT()}function UT(){qd=Iv=!1;var e=0;Qa!==0&&H3()&&(e=Qa);for(var t=_n(),n=null,r=Hd;r!==null;){var a=r.next,i=HT(r,t);i===0?(r.next=null,n===null?Hd=a:n.next=a,a===null&&(Xl=n)):(n=r,(e!==0||i&3)&&(qd=!0)),r=a}Et!==0&&Et!==5||Ku(e),Qa!==0&&(Qa=0)}function HT(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var l=31-Nn(i),o=1<<l,c=a[l];c===-1?(!(o&n)||o&r)&&(a[l]=aR(o,t)):c<=t&&(e.expiredLanes|=o),i&=~o}if(t=He,n=Ee,n=fp(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&&zm(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Uu(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&zm(r),t0(n)){case 2:case 8:n=NE;break;case 32:n=Ad;break;case 268435456:n=CE;break;default:n=Ad}return r=qT.bind(null,e),n=Jb(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&zm(r),e.callbackPriority=2,e.callbackNode=null,2}function qT(e,t){if(Et!==0&&Et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ap()&&e.callbackNode!==n)return null;var r=Ee;return r=fp(e,e===He?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(TT(e,r,t),HT(e,_n()),e.callbackNode!=null&&e.callbackNode===n?qT.bind(null,e):null)}function Lj(e,t){if(Ap())return null;TT(e,t,!0)}function k3(){F3(function(){Ce&6?Jb(TE,M3):UT()})}function B0(){if(Qa===0){var e=Do;e===0&&(e=bf,bf<<=1,!(bf&261888)&&(bf=256)),Qa=e}return Qa}function Bj(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Jf(""+e)}function Ij(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 $3(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var i=Bj((a[pn]||null).action),l=r.submitter;l&&(t=(t=l[pn]||null)?Bj(t.formAction):l.getAttribute("formAction"),t!==null&&(i=t,l=null));var o=new dp("action","action",null,r,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Qa!==0){var c=l?Ij(a,l):new FormData(a);Cv(n,{pending:!0,data:c,method:a.method,action:i},null,c)}}else typeof i=="function"&&(o.preventDefault(),c=l?Ij(a,l):new FormData(a),Cv(n,{pending:!0,data:c,method:a.method,action:i},i,c))},currentTarget:a}]})}}for(var uy=0;uy<gv.length;uy++){var fy=gv[uy],P3=fy.toLowerCase(),R3=fy[0].toUpperCase()+fy.slice(1);gr(P3,"on"+R3)}gr(t_,"onAnimationEnd");gr(n_,"onAnimationIteration");gr(r_,"onAnimationStart");gr("dblclick","onDoubleClick");gr("focusin","onFocus");gr("focusout","onBlur");gr(QR,"onTransitionRun");gr(ZR,"onTransitionStart");gr(JR,"onTransitionCancel");gr(a_,"onTransitionEnd");Po("onMouseEnter",["mouseout","mouseover"]);Po("onMouseLeave",["mouseout","mouseover"]);Po("onPointerEnter",["pointerout","pointerover"]);Po("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 Gc="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(" "),D3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gc));function FT(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var l=r.length-1;0<=l;l--){var o=r[l],c=o.instance,u=o.currentTarget;if(o=o.listener,c!==i&&a.isPropagationStopped())break e;i=o,a.currentTarget=u;try{i(a)}catch(f){_d(f)}a.currentTarget=null,i=c}else for(l=0;l<r.length;l++){if(o=r[l],c=o.instance,u=o.currentTarget,o=o.listener,c!==i&&a.isPropagationStopped())break e;i=o,a.currentTarget=u;try{i(a)}catch(f){_d(f)}a.currentTarget=null,i=c}}}}function je(e,t){var n=t[uv];n===void 0&&(n=t[uv]=new Set);var r=e+"__bubble";n.has(r)||(GT(t,e,2,!1),n.add(r))}function dy(e,t,n){var r=0;t&&(r|=4),GT(n,e,r,t)}var Nf="_reactListening"+Math.random().toString(36).slice(2);function I0(e){if(!e[Nf]){e[Nf]=!0,DE.forEach(function(n){n!=="selectionchange"&&(D3.has(n)||dy(n,!1,e),dy(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Nf]||(t[Nf]=!0,dy("selectionchange",!1,t))}}function GT(e,t,n,r){switch(aN(t)){case 2:var a=uD;break;case 8:a=fD;break;default:a=F0}n=a.bind(null,t,n,e),a=void 0,!mv||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 hy(e,t,n,r,a){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var o=r.stateNode.containerInfo;if(o===a)break;if(l===4)for(l=r.return;l!==null;){var c=l.tag;if((c===3||c===4)&&l.stateNode.containerInfo===a)return;l=l.return}for(;o!==null;){if(l=Zl(o),l===null)return;if(c=l.tag,c===5||c===6||c===26||c===27){r=i=l;continue e}o=o.parentNode}}r=r.return}FE(function(){var u=i,f=a0(n),d=[];e:{var h=i_.get(e);if(h!==void 0){var p=dp,y=e;switch(e){case"keypress":if(td(n)===0)break e;case"keydown":case"keyup":p=NR;break;case"focusin":y="focus",p=Hm;break;case"focusout":y="blur",p=Hm;break;case"beforeblur":case"afterblur":p=Hm;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=K1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=vR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=kR;break;case t_:case n_:case r_:p=xR;break;case a_:p=PR;break;case"scroll":case"scrollend":p=mR;break;case"wheel":p=DR;break;case"copy":case"cut":case"paste":p=SR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=W1;break;case"toggle":case"beforetoggle":p=LR}var m=(t&4)!==0,x=!m&&(e==="scroll"||e==="scrollend"),g=m?h!==null?h+"Capture":null:h;m=[];for(var j=u,b;j!==null;){var v=j;if(b=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||b===null||g===null||(v=zc(j,g),v!=null&&m.push(Yc(j,v,b))),x)break;j=j.return}0<m.length&&(h=new p(h,y,null,n,f),d.push({event:h,listeners:m}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==pv&&(y=n.relatedTarget||n.fromElement)&&(Zl(y)||y[gs]))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&&(x=Bu(y),m=y.tag,y!==x||m!==5&&m!==27&&m!==6)&&(y=null)):(p=null,y=u),p!==y)){if(m=K1,v="onMouseLeave",g="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(m=W1,v="onPointerLeave",g="onPointerEnter",j="pointer"),x=p==null?h:fc(p),b=y==null?h:fc(y),h=new m(v,j+"leave",p,n,f),h.target=x,h.relatedTarget=b,v=null,Zl(f)===u&&(m=new m(g,j+"enter",y,n,f),m.target=b,m.relatedTarget=x,v=m),x=v,p&&y)t:{for(m=z3,g=p,j=y,b=0,v=g;v;v=m(v))b++;v=0;for(var S=j;S;S=m(S))v++;for(;0<b-v;)g=m(g),b--;for(;0<v-b;)j=m(j),v--;for(;b--;){if(g===j||j!==null&&g===j.alternate){m=g;break t}g=m(g),j=m(j)}m=null}else m=null;p!==null&&Uj(d,h,p,m,!1),y!==null&&x!==null&&Uj(d,x,y,m,!0)}}e:{if(h=u?fc(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var w=ej;else if(J1(h))if(WE)w=KR;else{w=YR;var A=GR}else p=h.nodeName,!p||p.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?u&&r0(u.elementType)&&(w=ej):w=VR;if(w&&(w=w(e,u))){XE(d,w,n,f);break e}A&&A(e,h,u),e==="focusout"&&u&&h.type==="number"&&u.memoizedProps.value!=null&&hv(h,"number",h.value)}switch(A=u?fc(u):window,e){case"focusin":(J1(A)||A.contentEditable==="true")&&(to=A,yv=u,gc=null);break;case"focusout":gc=yv=to=null;break;case"mousedown":vv=!0;break;case"contextmenu":case"mouseup":case"dragend":vv=!1,ij(d,n,f);break;case"selectionchange":if(WR)break;case"keydown":case"keyup":ij(d,n,f)}var _;if(o0)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 eo?VE(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(YE&&n.locale!=="ko"&&(eo||E!=="onCompositionStart"?E==="onCompositionEnd"&&eo&&(_=GE()):(Ka=f,i0="value"in Ka?Ka.value:Ka.textContent,eo=!0)),A=Fd(u,E),0<A.length&&(E=new X1(E,e,null,n,f),d.push({event:E,listeners:A}),_?E.data=_:(_=KE(n),_!==null&&(E.data=_)))),(_=IR?UR(e,n):HR(e,n))&&(E=Fd(u,"onBeforeInput"),0<E.length&&(A=new X1("onBeforeInput","beforeinput",null,n,f),d.push({event:A,listeners:E}),A.data=_)),$3(d,e,u,n,f)}FT(d,t)})}function Yc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fd(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=zc(e,n),a!=null&&r.unshift(Yc(e,a,i)),a=zc(e,t),a!=null&&r.push(Yc(e,a,i))),e.tag===3)return r;e=e.return}return[]}function z3(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Uj(e,t,n,r,a){for(var i=t._reactName,l=[];n!==null&&n!==r;){var o=n,c=o.alternate,u=o.stateNode;if(o=o.tag,c!==null&&c===r)break;o!==5&&o!==26&&o!==27||u===null||(c=u,a?(u=zc(n,i),u!=null&&l.unshift(Yc(n,u,c))):a||(u=zc(n,i),u!=null&&l.push(Yc(n,u,c)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var L3=/\r\n?/g,B3=/\u0000|\uFFFD/g;function Hj(e){return(typeof e=="string"?e:""+e).replace(L3,`
`).replace(B3,"")}function YT(e,t){return t=Hj(t),Hj(e)===t}function Le(e,t,n,r,a,i){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Ro(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Ro(e,""+r);break;case"className":Sf(e,"class",r);break;case"tabIndex":Sf(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Sf(e,n,r);break;case"style":qE(e,r,i);break;case"data":if(t!=="object"){Sf(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=Jf(""+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=Jf(""+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=Jf(""+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),Zf(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":Zf(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=hR.get(n)||n,Zf(e,n,r))}}function Uv(e,t,n,r,a,i){switch(n){case"style":qE(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"?Ro(e,r):(typeof r=="number"||typeof r=="bigint")&&Ro(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(!zE.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,""):Zf(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 o=i=l=a=null,c=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var f=n[r];if(f!=null)switch(r){case"name":a=f;break;case"type":l=f;break;case"checked":c=f;break;case"defaultChecked":u=f;break;case"value":i=f;break;case"defaultValue":o=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(q(137,t));break;default:Le(e,t,r,f,n,null)}}IE(e,i,o,c,u,l,a,!1);return;case"select":je("invalid",e),r=l=i=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":i=o;break;case"defaultValue":l=o;break;case"multiple":r=o;default:Le(e,t,a,o,n,null)}t=i,n=l,e.multiple=!!r,t!=null?mo(e,!!r,t,!1):n!=null&&mo(e,!!r,n,!0);return;case"textarea":je("invalid",e),i=a=r=null;for(l in n)if(n.hasOwnProperty(l)&&(o=n[l],o!=null))switch(l){case"value":r=o;break;case"defaultValue":a=o;break;case"children":i=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(q(91));break;default:Le(e,t,l,o,n,null)}HE(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<Gc.length;r++)je(Gc[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(r0(t)){for(f in n)n.hasOwnProperty(f)&&(r=n[f],r!==void 0&&Uv(e,t,f,r,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(r=n[o],r!=null&&Le(e,t,o,r,n,null))}function I3(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,l=null,o=null,c=null,u=null,f=null;for(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":o=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)}}dv(e,l,o,c,u,f,i,a);return;case"select":p=l=o=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":o=i;break;case"multiple":l=i;default:i!==c&&Le(e,t,a,i,r,c)}t=o,n=l,r=p,h!=null?mo(e,!!n,h,!1):!!r!=!!n&&(t!=null?mo(e,!!n,t,!0):mo(e,!!n,n?[]:"",!1));return;case"textarea":p=h=null;for(o in n)if(a=n[o],n.hasOwnProperty(o)&&a!=null&&!r.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Le(e,t,o,null,r,a)}for(l in r)if(a=r[l],i=n[l],r.hasOwnProperty(l)&&(a!=null||i!=null))switch(l){case"value":h=a;break;case"defaultValue":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)}UE(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 m in n)h=n[m],n.hasOwnProperty(m)&&h!=null&&!r.hasOwnProperty(m)&&Le(e,t,m,null,r,h);for(u in r)if(h=r[u],p=n[u],r.hasOwnProperty(u)&&h!==p&&(h!=null||p!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(q(137,t));break;default:Le(e,t,u,h,r,p)}return;default:if(r0(t)){for(var x in n)h=n[x],n.hasOwnProperty(x)&&h!==void 0&&!r.hasOwnProperty(x)&&Uv(e,t,x,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||Uv(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 qj(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function U3(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var a=n[r],i=a.transferSize,l=a.initiatorType,o=a.duration;if(i&&o&&qj(l)){for(l=0,o=a.responseEnd,r+=1;r<n.length;r++){var c=n[r],u=c.startTime;if(u>o)break;var f=c.transferSize,d=c.initiatorType;f&&qj(d)&&(c=c.responseEnd,l+=f*(c<o?1:(o-u)/(c-u)))}if(--r,t+=8*(i+l)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Hv=null,qv=null;function Gd(e){return e.nodeType===9?e:e.ownerDocument}function Fj(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 VT(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 Fv(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 py=null;function H3(){var e=window.event;return e&&e.type==="popstate"?e===py?!1:(py=e,!0):(py=null,!1)}var KT=typeof setTimeout=="function"?setTimeout:void 0,q3=typeof clearTimeout=="function"?clearTimeout:void 0,Gj=typeof Promise=="function"?Promise:void 0,F3=typeof queueMicrotask=="function"?queueMicrotask:typeof Gj<"u"?function(e){return Gj.resolve(null).then(e).catch(G3)}:KT;function G3(e){setTimeout(function(){throw e})}function bi(e){return e==="head"}function Yj(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),qo(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,o=i.nodeName;i[qu]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=l}}else n==="body"&&Tc(e.ownerDocument.body);n=a}while(n);qo(t)}function Vj(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 Gv(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":Gv(n),n0(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Y3(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[qu])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 V3(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 XT(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 Yv(e){return e.data==="$?"||e.data==="$~"}function Vv(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function K3(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 Kv=null;function Kj(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 Xj(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function WT(e,t,n){switch(t=Gd(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]);n0(e)}var er=new Map,Wj=new Set;function Yd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Oa=Me.d;Me.d={f:X3,r:W3,D:Q3,C:Z3,L:J3,m:eD,X:nD,S:tD,M:rD};function X3(){var e=Oa.f(),t=wp();return e||t}function W3(e){var t=bs(e);t!==null&&t.tag===5&&t.type==="form"?q_(t):Oa.r(e)}var ws=typeof document>"u"?null:document;function QT(e,t,n){var r=ws;if(r&&typeof t=="string"&&t){var a=Vn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Wj.has(a)||(Wj.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),Ft(t,"link",e),$t(t),r.head.appendChild(t)))}}function Q3(e){Oa.D(e),QT("dns-prefetch",e,null)}function Z3(e,t){Oa.C(e,t),QT("preconnect",e,t)}function J3(e,t,n){Oa.L(e,t,n);var r=ws;if(r&&e&&t){var a='link[rel="preload"][as="'+Vn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Vn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+Vn(n.imageSizes)+'"]')):a+='[href="'+Vn(e)+'"]';var i=a;switch(t){case"style":i=Ho(e);break;case"script":i=Os(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(Xu(i))||t==="script"&&r.querySelector(Wu(i))||(t=r.createElement("link"),Ft(t,"link",e),$t(t),r.head.appendChild(t)))}}function eD(e,t){Oa.m(e,t);var n=ws;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Vn(r)+'"][href="'+Vn(e)+'"]',i=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Os(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(Wu(i)))return}r=n.createElement("link"),Ft(r,"link",e),$t(r),n.head.appendChild(r)}}}function tD(e,t,n){Oa.S(e,t,n);var r=ws;if(r&&e){var a=po(r).hoistableStyles,i=Ho(e);t=t||"default";var l=a.get(i);if(!l){var o={loading:0,preload:null};if(l=r.querySelector(Xu(i)))o.loading=5;else{e=Je({rel:"stylesheet",href:e,"data-precedence":t},n),(n=er.get(i))&&U0(e,n);var c=l=r.createElement("link");$t(c),Ft(c,"link",e),c._p=new Promise(function(u,f){c.onload=u,c.onerror=f}),c.addEventListener("load",function(){o.loading|=1}),c.addEventListener("error",function(){o.loading|=2}),o.loading|=4,cd(l,t,r)}l={type:"stylesheet",instance:l,count:1,state:o},a.set(i,l)}}}function nD(e,t){Oa.X(e,t);var n=ws;if(n&&e){var r=po(n).hoistableScripts,a=Os(e),i=r.get(a);i||(i=n.querySelector(Wu(a)),i||(e=Je({src:e,async:!0},t),(t=er.get(a))&&H0(e,t),i=n.createElement("script"),$t(i),Ft(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function rD(e,t){Oa.M(e,t);var n=ws;if(n&&e){var r=po(n).hoistableScripts,a=Os(e),i=r.get(a);i||(i=n.querySelector(Wu(a)),i||(e=Je({src:e,async:!0,type:"module"},t),(t=er.get(a))&&H0(e,t),i=n.createElement("script"),$t(i),Ft(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function Qj(e,t,n,r){var a=(a=ni.current)?Yd(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=Ho(n.href),n=po(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=Ho(n.href);var i=po(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(Xu(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||aD(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=Os(n),n=po(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 Ho(e){return'href="'+Vn(e)+'"'}function Xu(e){return'link[rel="stylesheet"]['+e+"]"}function ZT(e){return Je({},e,{"data-precedence":e.precedence,precedence:null})}function aD(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),$t(t),e.head.appendChild(t))}function Os(e){return'[src="'+Vn(e)+'"]'}function Wu(e){return"script[async]"+e}function Zj(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Vn(n.href)+'"]');if(r)return t.instance=r,$t(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"),$t(r),Ft(r,"style",a),cd(r,n.precedence,e),t.instance=r;case"stylesheet":a=Ho(n.href);var i=e.querySelector(Xu(a));if(i)return t.state.loading|=4,t.instance=i,$t(i),i;r=ZT(n),(a=er.get(a))&&U0(r,a),i=(e.ownerDocument||e).createElement("link"),$t(i);var l=i;return l._p=new Promise(function(o,c){l.onload=o,l.onerror=c}),Ft(i,"link",r),t.state.loading|=4,cd(i,n.precedence,e),t.instance=i;case"script":return i=Os(n.src),(a=e.querySelector(Wu(i)))?(t.instance=a,$t(a),a):(r=n,(a=er.get(i))&&(r=Je({},n),H0(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),$t(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,cd(r,n.precedence,e));return t.instance}function cd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,i=a,l=0;l<r.length;l++){var o=r[l];if(o.dataset.precedence===t)i=o;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function U0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function H0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ud=null;function Jj(e,t,n){if(ud===null){var r=new Map,a=ud=new Map;a.set(n,r)}else a=ud,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[qu]||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 o=r.get(l);o?o.push(i):r.set(l,[i])}}return r}function eS(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function iD(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 JT(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function lD(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=Ho(r.href),i=t.querySelector(Xu(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Vd.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,$t(i);return}i=t.ownerDocument||t,r=ZT(r),(a=er.get(a))&&U0(r,a),i=i.createElement("link"),$t(i);var l=i;l._p=new Promise(function(o,c){l.onload=o,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=Vd.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var my=0;function oD(e,t){return e.stylesheets&&e.count===0&&fd(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&fd(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&my===0&&(my=62500*U3());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&fd(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>my?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function Vd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Kd=null;function fd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Kd=new Map,t.forEach(sD,e),Kd=null,Vd.call(e))}function sD(e,t){if(!(t.state.loading&4)){var n=Kd.get(e);if(n)var r=n.get(null);else{n=new Map,Kd.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=Vd.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 Vc={$$typeof:na,Provider:null,Consumer:null,_currentValue:el,_currentValue2:el,_threadCount:0};function cD(e,t,n,r,a,i,l,o,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Lm(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lm(0),this.hiddenUpdates=Lm(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 eN(e,t,n,r,a,i,l,o,c,u,f,d){return e=new cD(e,t,n,l,c,u,f,d,o),t=1,i===!0&&(t|=24),i=On(3,null,null,t),e.current=i,i.stateNode=e,t=p0(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},v0(i),e}function tN(e){return e?(e=ao,e):ao}function nN(e,t,n,r,a,i){a=tN(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),xc(n,e,t))}function tS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function q0(e,t){tS(e,t),(e=e.alternate)&&tS(e,t)}function rN(e){if(e.tag===13||e.tag===31){var t=_l(e,67108864);t!==null&&dn(t,e,67108864),q0(e,67108864)}}function nS(e){if(e.tag===13||e.tag===31){var t=Cn();t=e0(t);var n=_l(e,t);n!==null&&dn(n,e,t),q0(e,t)}}var Xd=!0;function uD(e,t,n,r){var a=he.T;he.T=null;var i=Me.p;try{Me.p=2,F0(e,t,n,r)}finally{Me.p=i,he.T=a}}function fD(e,t,n,r){var a=he.T;he.T=null;var i=Me.p;try{Me.p=8,F0(e,t,n,r)}finally{Me.p=i,he.T=a}}function F0(e,t,n,r){if(Xd){var a=Xv(r);if(a===null)hy(e,t,r,Wd,n),rS(e,r);else if(hD(a,e,t,n,r))r.stopPropagation();else if(rS(e,r),t&4&&-1<dD.indexOf(e)){for(;a!==null;){var i=bs(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 o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;l;){var c=1<<31-Nn(l);o.entanglements[1]|=c,l&=~c}Ir(i),!(Ce&6)&&(Bd=_n()+500,Ku(0))}}break;case 31:case 13:o=_l(i,2),o!==null&&dn(o,i,2),wp(),q0(i,2)}if(i=Xv(r),i===null&&hy(e,t,r,Wd,n),i===a)break;a=i}a!==null&&r.stopPropagation()}else hy(e,t,r,null,n)}}function Xv(e){return e=a0(e),G0(e)}var Wd=null;function G0(e){if(Wd=null,e=Zl(e),e!==null){var t=Bu(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=wE(t),e!==null)return e;e=null}else if(n===31){if(e=OE(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 Wd=e,null}function aN(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(QP()){case TE:return 2;case NE:return 8;case Ad:case ZP:return 32;case CE:return 268435456;default:return 32}default:return 32}}var Wv=!1,si=null,ci=null,ui=null,Kc=new Map,Xc=new Map,Ba=[],dD="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 rS(e,t){switch(e){case"focusin":case"focusout":si=null;break;case"dragenter":case"dragleave":ci=null;break;case"mouseover":case"mouseout":ui=null;break;case"pointerover":case"pointerout":Kc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xc.delete(t.pointerId)}}function Ws(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=bs(t),t!==null&&rN(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function hD(e,t,n,r,a){switch(t){case"focusin":return si=Ws(si,e,t,n,r,a),!0;case"dragenter":return ci=Ws(ci,e,t,n,r,a),!0;case"mouseover":return ui=Ws(ui,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Kc.set(i,Ws(Kc.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Xc.set(i,Ws(Xc.get(i)||null,e,t,n,r,a)),!0}return!1}function iN(e){var t=Zl(e.target);if(t!==null){var n=Bu(t);if(n!==null){if(t=n.tag,t===13){if(t=wE(n),t!==null){e.blockedOn=t,U1(e.priority,function(){nS(n)});return}}else if(t===31){if(t=OE(n),t!==null){e.blockedOn=t,U1(e.priority,function(){nS(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function dd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xv(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);pv=r,n.target.dispatchEvent(r),pv=null}else return t=bs(n),t!==null&&rN(t),e.blockedOn=n,!1;t.shift()}return!0}function aS(e,t,n){dd(e)&&n.delete(t)}function pD(){Wv=!1,si!==null&&dd(si)&&(si=null),ci!==null&&dd(ci)&&(ci=null),ui!==null&&dd(ui)&&(ui=null),Kc.forEach(aS),Xc.forEach(aS)}function Cf(e,t){e.blockedOn===t&&(e.blockedOn=null,Wv||(Wv=!0,Tt.unstable_scheduleCallback(Tt.unstable_NormalPriority,pD)))}var Mf=null;function iS(e){Mf!==e&&(Mf=e,Tt.unstable_scheduleCallback(Tt.unstable_NormalPriority,function(){Mf===e&&(Mf=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(G0(r||n)===null)continue;break}var i=bs(n);i!==null&&(e.splice(t,3),t-=3,Cv(i,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function qo(e){function t(c){return Cf(c,e)}si!==null&&Cf(si,e),ci!==null&&Cf(ci,e),ui!==null&&Cf(ui,e),Kc.forEach(t),Xc.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);)iN(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||iS(n);else if(l){var o=null;if(i&&i.hasAttribute("formAction")){if(a=i,l=i[pn]||null)o=l.formAction;else if(G0(a)!==null)continue}else o=l.action;typeof o=="function"?n[r+1]=o:(n.splice(r,3),r-=3),iS(n)}}}function lN(){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 Y0(e){this._internalRoot=e}Ep.prototype.render=Y0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(q(409));var n=t.current,r=Cn();nN(n,r,e,t,null,null)};Ep.prototype.unmount=Y0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nN(e.current,2,null,e,null,null),wp(),t[gs]=null}};function Ep(e){this._internalRoot=e}Ep.prototype.unstable_scheduleHydration=function(e){if(e){var t=RE();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&&iN(e)}};var lS=jE.version;if(lS!=="19.2.7")throw Error(q(527,lS,"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=FP(t),e=e!==null?AE(e):null,e=e===null?null:e.stateNode,e};var mD={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:he,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kf.isDisabled&&kf.supportsFiber)try{Iu=kf.inject(mD),Tn=kf}catch{}}cp.createRoot=function(e,t){if(!SE(e))throw Error(q(299));var n=!1,r="",a=Q_,i=Z_,l=J_;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=eN(e,1,!1,null,null,n,r,null,a,i,l,lN),e[gs]=t.current,I0(e),new Y0(t)};cp.hydrateRoot=function(e,t,n){if(!SE(e))throw Error(q(299));var r=!1,a="",i=Q_,l=Z_,o=J_,c=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(l=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=eN(e,1,!0,t,n??null,r,a,c,i,l,o,lN),t.context=tN(null),n=t.current,r=Cn(),r=e0(r),a=ai(r),a.callback=null,ii(n,a,r),n=r,t.current.lanes=n,Hu(t,n),Ir(t),e[gs]=t.current,I0(e),new Ep(t)};cp.version="19.2.7";function oN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(oN)}catch(e){console.error(e)}}oN(),mE.exports=cp;var yD=mE.exports;const vD=$e(yD);/**
 * 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 oS="popstate";function sS(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function gD(e={}){function t(r,a){var u;let i=(u=a.state)==null?void 0:u.masked,{pathname:l,search:o,hash:c}=i||r.location;return Qv("",{pathname:l,search:o,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default",i?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:Wc(a)}return xD(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 bD(){return Math.random().toString(36).substring(2,10)}function cS(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 Qv(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?As(t):t,state:n,key:t&&t.key||r||bD(),mask:a}}function Wc({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 As(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 xD(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,l=a.history,o="POP",c=null,u=f();u==null&&(u=0,l.replaceState({...l.state,idx:u},""));function f(){return(l.state||{idx:null}).idx}function d(){o="POP";let x=f(),g=x==null?null:x-u;u=x,c&&c({action:o,location:m.location,delta:g})}function h(x,g){o="PUSH";let j=sS(x)?x:Qv(m.location,x,g);u=f()+1;let b=cS(j,u),v=m.createHref(j.mask||j);try{l.pushState(b,"",v)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(v)}i&&c&&c({action:o,location:m.location,delta:1})}function p(x,g){o="REPLACE";let j=sS(x)?x:Qv(m.location,x,g);u=f();let b=cS(j,u),v=m.createHref(j.mask||j);l.replaceState(b,"",v),i&&c&&c({action:o,location:m.location,delta:0})}function y(x){return jD(a,x)}let m={get action(){return o},get location(){return e(a,l)},listen(x){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(oS,d),c=x,()=>{a.removeEventListener(oS,d),c=null}},createHref(x){return t(a,x)},createURL:y,encodeLocation(x){let g=y(x);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:p,go(x){return l.go(x)}};return m}function jD(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:Wc(t);return a=a.replace(/ $/,"%20"),!n&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function sN(e,t,n="/"){return SD(e,t,n,!1)}function SD(e,t,n,r,a){let i=typeof t=="string"?As(t):t,l=ba(i.pathname||"/",n);if(l==null)return null;let o=wD(e),c=null,u=RD(l);for(let f=0;c==null&&f<o.length;++f)c=$D(o[f],u,r);return c}function wD(e){let t=cN(e);return OD(t),t}function cN(e,t=[],n=[],r="",a=!1){let i=(l,o,c=a,u)=>{let f={relativePath:u===void 0?l.path||"":u,caseSensitive:l.caseSensitive===!0,childrenIndex:o,route:l};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&c)return;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}".`),cN(l.children,t,h,d,c)),!(l.path==null&&!l.index)&&t.push({path:d,score:MD(d,l.index),routesMeta:h})};return e.forEach((l,o)=>{var c;if(l.path===""||!((c=l.path)!=null&&c.includes("?")))i(l,o);else for(let u of uN(l.path))i(l,o,!0,u)}),t}function uN(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=uN(r.join("/")),o=[];return o.push(...l.map(c=>c===""?i:[i,c].join("/"))),a&&o.push(...l),o.map(c=>e.startsWith("/")&&c===""?"/":c)}function OD(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:kD(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var AD=/^:[\w-]+$/,ED=3,_D=2,TD=1,ND=10,CD=-2,uS=e=>e==="*";function MD(e,t){let n=e.split("/"),r=n.length;return n.some(uS)&&(r+=CD),t&&(r+=_D),n.filter(a=>!uS(a)).reduce((a,i)=>a+(AD.test(i)?ED:i===""?TD:ND),r)}function kD(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function $D(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",l=[];for(let o=0;o<r.length;++o){let c=r[o],u=o===r.length-1,f=i==="/"?t:t.slice(i.length)||"/",d=Qd({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},f),h=c.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=Qd({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:BD(pr([i,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(i=pr([i,d.pathnameBase]))}return l}function Qd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=PD(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],l=i.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:r.reduce((u,{paramName:f,isOptional:d},h)=>{if(f==="*"){let y=o[h]||"";l=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const p=o[h];return d&&!p?u[f]=void 0:u[f]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:l,pattern:e}}function PD(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,o,c,u,f)=>{if(r.push({paramName:o,isOptional:c!=null}),c){let d=f.charAt(u+l.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function RD(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 DD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function zD(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?As(e):e,i;return n?(n=fN(n),n.startsWith("/")?i=fS(n.substring(1),"/"):i=fS(n,t)):i=t,{pathname:i,search:ID(r),hash:UD(a)}}function fS(e,t){let n=Zd(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function yy(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 LD(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function V0(e){let t=LD(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function _p(e,t,n,r=!1){let a;typeof e=="string"?a=As(e):(a={...e},nt(!a.pathname||!a.pathname.includes("?"),yy("?","pathname","search",a)),nt(!a.pathname||!a.pathname.includes("#"),yy("#","pathname","hash",a)),nt(!a.search||!a.search.includes("#"),yy("#","search","hash",a)));let i=e===""||a.pathname==="",l=i?"/":a.pathname,o;if(l==null)o=n;else{let d=t.length-1;if(!r&&l.startsWith("..")){let h=l.split("/");for(;h[0]==="..";)h.shift(),d-=1;a.pathname=h.join("/")}o=d>=0?t[d]:"/"}let c=zD(a,o),u=l&&l!=="/"&&l.endsWith("/"),f=(i||l===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||f)&&(c.pathname+="/"),c}var fN=e=>e.replace(/\/\/+/g,"/"),pr=e=>fN(e.join("/")),Zd=e=>e.replace(/\/+$/,""),BD=e=>Zd(e).replace(/^\/*/,"/"),ID=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,UD=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,HD=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 qD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function FD(e){let t=e.map(n=>n.route.path).filter(Boolean);return pr(t)||"/"}var dN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function hN(e,t){let n=e;if(typeof n!="string"||!DD.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(dN)try{let i=new URL(window.location.href),l=n.startsWith("//")?new URL(i.protocol+n):new URL(n),o=ba(l.pathname,t);l.origin===i.origin&&o!=null?n=o+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 pN=["POST","PUT","PATCH","DELETE"];new Set(pN);var GD=["GET",...pN];new Set(GD);var Es=O.createContext(null);Es.displayName="DataRouter";var Tp=O.createContext(null);Tp.displayName="DataRouterState";var mN=O.createContext(!1);function YD(){return O.useContext(mN)}var yN=O.createContext({isTransitioning:!1});yN.displayName="ViewTransition";var VD=O.createContext(new Map);VD.displayName="Fetchers";var KD=O.createContext(null);KD.displayName="Await";var Dn=O.createContext(null);Dn.displayName="Navigation";var Qu=O.createContext(null);Qu.displayName="Location";var rr=O.createContext({outlet:null,matches:[],isDataRoute:!1});rr.displayName="Route";var K0=O.createContext(null);K0.displayName="RouteError";var vN="REACT_ROUTER_ERROR",XD="REDIRECT",WD="ROUTE_ERROR_RESPONSE";function QD(e){if(e.startsWith(`${vN}:${XD}:{`))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 ZD(e){if(e.startsWith(`${vN}:${WD}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new HD(t.status,t.statusText,t.data)}catch{}}function JD(e,{relative:t}={}){nt(_s(),"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}=Zu(e,{relative:t}),o=i;return n!=="/"&&(o=i==="/"?n:pr([n,i])),r.createHref({pathname:o,search:l,hash:a})}function _s(){return O.useContext(Qu)!=null}function Ur(){return nt(_s(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(Qu).location}var gN="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function bN(e){O.useContext(Dn).static||O.useLayoutEffect(e)}function Ts(){let{isDataRoute:e}=O.useContext(rr);return e?m4():e4()}function e4(){nt(_s(),"useNavigate() may be used only in the context of a <Router> component.");let e=O.useContext(Es),{basename:t,navigator:n}=O.useContext(Dn),{matches:r}=O.useContext(rr),{pathname:a}=Ur(),i=JSON.stringify(V0(r)),l=O.useRef(!1);return bN(()=>{l.current=!0}),O.useCallback((c,u={})=>{if(yr(l.current,gN),!l.current)return;if(typeof c=="number"){n.go(c);return}let f=_p(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 t4=O.createContext(null);function n4(e){let t=O.useContext(rr).outlet;return O.useMemo(()=>t&&O.createElement(t4.Provider,{value:e},t),[t,e])}function r4(){let{matches:e}=O.useContext(rr),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function Zu(e,{relative:t}={}){let{matches:n}=O.useContext(rr),{pathname:r}=Ur(),a=JSON.stringify(V0(n));return O.useMemo(()=>_p(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function a4(e,t){return xN(e,t)}function xN(e,t,n){var x;nt(_s(),"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:{},o=i?i.pathname:"/",c=i?i.pathnameBase:"/",u=i&&i.route;{let g=u&&u.path||"";SN(o,!u||g.endsWith("*")||g.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${o}" (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"?As(t):t;nt(c==="/"||((x=g.pathname)==null?void 0:x.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})):sN(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 m=c4(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&&m?O.createElement(Qu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...d},navigationType:"POP"}},m):m}function i4(){let e=p4(),t=qD(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 l4=O.createElement(i4,null),jN=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=ZD(e.digest);n&&(e=n)}let t=e!==void 0?O.createElement(rr.Provider,{value:this.props.routeContext},O.createElement(K0.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?O.createElement(o4,{error:e},t):t}};jN.contextType=mN;var vy=new WeakMap;function o4({children:e,error:t}){let{basename:n}=O.useContext(Dn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=QD(t.digest);if(r){let a=vy.get(t);if(a)throw a;let i=hN(r.location,n);if(dN&&!vy.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 vy.set(t,l),l}return O.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function s4({routeContext:e,match:t,children:n}){let r=O.useContext(Es);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 c4(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,o=-1;if(n&&r){l=r.renderFallback;for(let f=0;f<a.length;f++){let d=a[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(o=f),d.route.id){let{loaderData:h,errors: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),o>=0?a=a.slice(0,o+1):a=[a[0]];break}}}}let c=n==null?void 0:n.onError,u=r&&c?(f,d)=>{var h,p;c(f,{location:r.location,params:((p=(h=r.matches)==null?void 0:h[0])==null?void 0:p.params)??{},pattern:FD(r.matches),errorInfo:d})}:void 0;return a.reduceRight((f,d,h)=>{let p,y=!1,m=null,x=null;r&&(p=i&&d.route.id?i[d.route.id]:void 0,m=d.route.errorElement||l4,l&&(o<0&&h===0?(SN("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,x=null):o===h&&(y=!0,x=d.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,h+1)),j=()=>{let b;return p?b=m:y?b=x:d.route.Component?b=O.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=f,O.createElement(s4,{match:d,routeContext:{outlet:f,matches:g,isDataRoute:r!=null},children:b})};return r&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?O.createElement(jN,{location:r.location,revalidation:r.revalidation,component:m,error:p,children:j(),routeContext:{outlet:null,matches:g,isDataRoute:!0},onError:u}):j()},null)}function X0(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function u4(e){let t=O.useContext(Es);return nt(t,X0(e)),t}function f4(e){let t=O.useContext(Tp);return nt(t,X0(e)),t}function d4(e){let t=O.useContext(rr);return nt(t,X0(e)),t}function W0(e){let t=d4(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 h4(){return W0("useRouteId")}function p4(){var r;let e=O.useContext(K0),t=f4("useRouteError"),n=W0("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function m4(){let{router:e}=u4("useNavigate"),t=W0("useNavigate"),n=O.useRef(!1);return bN(()=>{n.current=!0}),O.useCallback(async(a,i={})=>{yr(n.current,gN),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var dS={};function SN(e,t,n){!t&&!dS[e]&&(dS[e]=!0,yr(!1,n))}O.memo(y4);function y4({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return xN(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function wN({to:e,replace:t,state:n,relative:r}){nt(_s(),"<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(),o=Ts(),c=_p(e,V0(i),l,r==="path"),u=JSON.stringify(c);return O.useEffect(()=>{o(JSON.parse(u),{replace:t,state:n,relative:r})},[o,u,r,t,n]),null}function v4(e){return n4(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 g4({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,useTransitions:l}){nt(!_s(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),c=O.useMemo(()=>({basename:o,navigator:a,static:i,useTransitions:l,future:{}}),[o,a,i,l]);typeof n=="string"&&(n=As(n));let{pathname:u="/",search:f="",hash:d="",state:h=null,key:p="default",mask:y}=n,m=O.useMemo(()=>{let x=ba(u,o);return x==null?null:{location:{pathname:x,search:f,hash:d,state:h,key:p,mask:y},navigationType:r}},[o,u,f,d,h,p,r,y]);return yr(m!=null,`<Router basename="${o}"> is not able to match the URL "${u}${f}${d}" because it does not start with the basename, so the <Router> won't render anything.`),m==null?null:O.createElement(Dn.Provider,{value:c},O.createElement(Qu.Provider,{children:t,value:m}))}function b4({children:e,location:t}){return a4(Zv(e),t)}function Zv(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,Zv(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=Zv(r.props.children,i)),n.push(l)}),n}var hd="get",pd="application/x-www-form-urlencoded";function Np(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function x4(e){return Np(e)&&e.tagName.toLowerCase()==="button"}function j4(e){return Np(e)&&e.tagName.toLowerCase()==="form"}function S4(e){return Np(e)&&e.tagName.toLowerCase()==="input"}function w4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function O4(e,t){return e.button===0&&(!t||t==="_self")&&!w4(e)}var $f=null;function A4(){if($f===null)try{new FormData(document.createElement("form"),0),$f=!1}catch{$f=!0}return $f}var E4=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function gy(e){return e!=null&&!E4.has(e)?(yr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${pd}"`),null):e}function _4(e,t){let n,r,a,i,l;if(j4(e)){let o=e.getAttribute("action");r=o?ba(o,t):null,n=e.getAttribute("method")||hd,a=gy(e.getAttribute("enctype"))||pd,i=new FormData(e)}else if(x4(e)||S4(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||o.getAttribute("action");if(r=c?ba(c,t):null,n=e.getAttribute("formmethod")||o.getAttribute("method")||hd,a=gy(e.getAttribute("formenctype"))||gy(o.getAttribute("enctype"))||pd,i=new FormData(o,e),!A4()){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(Np(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=hd,r=null,a=pd,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 Q0(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ON(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=`${Zd(t)}/_root.${r}`:a.pathname=`${Zd(a.pathname)}.${r}`,a}async function T4(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 N4(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 C4(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let l=await T4(i,n);return l.links?l.links():[]}return[]}));return P4(r.flat(1).filter(N4).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function hS(e,t,n,r,a,i){let l=(c,u)=>n[u]?c.route.id!==n[u].route.id:!0,o=(c,u)=>{var f;return n[u].pathname!==c.pathname||((f=n[u].route.path)==null?void 0:f.endsWith("*"))&&n[u].params["*"]!==c.params["*"]};return i==="assets"?t.filter((c,u)=>l(c,u)||o(c,u)):i==="data"?t.filter((c,u)=>{var d;let f=r.routes[c.route.id];if(!f||!f.hasLoader)return!1;if(l(c,u)||o(c,u))return!0;if(c.route.shouldRevalidate){let h=c.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((d=n[0])==null?void 0:d.params)||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function M4(e,t,{includeHydrateFallback:n}={}){return k4(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 k4(e){return[...new Set(e)]}function $4(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function P4(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify($4(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function Z0(){let e=O.useContext(Es);return Q0(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function R4(){let e=O.useContext(Tp);return Q0(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var J0=O.createContext(void 0);J0.displayName="FrameworkContext";function ex(){let e=O.useContext(J0);return Q0(e,"You must render this element inside a <HydratedRouter> element"),e}function D4(e,t){let n=O.useContext(J0),[r,a]=O.useState(!1),[i,l]=O.useState(!1),{onFocus:o,onBlur:c,onMouseEnter:u,onMouseLeave:f,onTouchStart:d}=t,h=O.useRef(null);O.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let m=g=>{g.forEach(j=>{l(j.isIntersecting)})},x=new IntersectionObserver(m,{threshold:.5});return h.current&&x.observe(h.current),()=>{x.disconnect()}}},[e]),O.useEffect(()=>{if(r){let m=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(m)}}},[r]);let p=()=>{a(!0)},y=()=>{a(!1),l(!1)};return n?e!=="intent"?[i,h,{}]:[i,h,{onFocus:Qs(o,p),onBlur:Qs(c,y),onMouseEnter:Qs(u,p),onMouseLeave:Qs(f,y),onTouchStart:Qs(d,p)}]:[!1,h,{}]}function Qs(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function z4({page:e,...t}){let n=YD(),{router:r}=Z0(),a=O.useMemo(()=>sN(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n?O.createElement(B4,{page:e,matches:a,...t}):O.createElement(I4,{page:e,matches:a,...t}):null}function L4(e){let{manifest:t,routeModules:n}=ex(),[r,a]=O.useState([]);return O.useEffect(()=>{let i=!1;return C4(e,t,n).then(l=>{i||a(l)}),()=>{i=!0}},[e,t,n]),r}function B4({page:e,matches:t,...n}){let r=Ur(),{future:a}=ex(),{basename:i}=Z0(),l=O.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let o=ON(e,i,a.v8_trailingSlashAwareDataRequests,"rsc"),c=!1,u=[];for(let f of t)typeof f.route.shouldRevalidate=="function"?c=!0:u.push(f.route.id);return c&&u.length>0&&o.searchParams.set("_routes",u.join(",")),[o.pathname+o.search]},[i,a.v8_trailingSlashAwareDataRequests,e,r,t]);return O.createElement(O.Fragment,null,l.map(o=>O.createElement("link",{key:o,rel:"prefetch",as:"fetch",href:o,...n})))}function I4({page:e,matches:t,...n}){let r=Ur(),{future:a,manifest:i,routeModules:l}=ex(),{basename:o}=Z0(),{loaderData:c,matches:u}=R4(),f=O.useMemo(()=>hS(e,t,u,i,r,"data"),[e,t,u,i,r]),d=O.useMemo(()=>hS(e,t,u,i,r,"assets"),[e,t,u,i,r]),h=O.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let m=new Set,x=!1;if(t.forEach(j=>{var v;let b=i.routes[j.route.id];!b||!b.hasLoader||(!f.some(S=>S.route.id===j.route.id)&&j.route.id in c&&((v=l[j.route.id])!=null&&v.shouldRevalidate)||b.hasClientLoader?x=!0:m.add(j.route.id))}),m.size===0)return[];let g=ON(e,o,a.v8_trailingSlashAwareDataRequests,"data");return x&&m.size>0&&g.searchParams.set("_routes",t.filter(j=>m.has(j.route.id)).map(j=>j.route.id).join(",")),[g.pathname+g.search]},[o,a.v8_trailingSlashAwareDataRequests,c,r,i,f,t,e,l]),p=O.useMemo(()=>M4(d,i),[d,i]),y=L4(d);return O.createElement(O.Fragment,null,h.map(m=>O.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...n})),p.map(m=>O.createElement("link",{key:m,rel:"modulepreload",href:m,...n})),y.map(({key:m,link:x})=>O.createElement("link",{key:m,nonce:n.nonce,...x,crossOrigin:x.crossOrigin??n.crossOrigin})))}function U4(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var H4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{H4&&(window.__reactRouterVersion="7.17.0")}catch{}function q4({basename:e,children:t,useTransitions:n,window:r}){let a=O.useRef();a.current==null&&(a.current=gD({window:r,v5Compat:!0}));let i=a.current,[l,o]=O.useState({action:i.action,location:i.location}),c=O.useCallback(u=>{n===!1?o(u):O.startTransition(()=>o(u))},[n]);return O.useLayoutEffect(()=>i.listen(c),[i,c]),O.createElement(g4,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:i,useTransitions:n})}var AN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,tx=O.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:l,mask:o,state:c,target:u,to:f,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:p,...y},m){let{basename:x,navigator:g,useTransitions:j}=O.useContext(Dn),b=typeof f=="string"&&AN.test(f),v=hN(f,x);f=v.to;let S=JD(f,{relative:a}),w=Ur(),A=null;if(o){let P=_p(o,[],w.mask?w.mask.pathname:"/",!0);x!=="/"&&(P.pathname=P.pathname==="/"?x:pr([x,P.pathname])),A=g.createHref(P)}let[_,E,N]=D4(r,y),k=Y4(f,{replace:l,mask:o,state:c,target:u,preventScrollReset:d,relative:a,viewTransition:h,defaultShouldRevalidate:p,useTransitions:j});function M(P){t&&t(P),P.defaultPrevented||k(P)}let B=!(v.isExternal||i),z=O.createElement("a",{...y,...N,href:(B?A:void 0)||v.absoluteURL||S,onClick:B?M:t,ref:U4(m,E),target:u,"data-discover":!b&&n==="render"?"true":void 0});return _&&!b?O.createElement(O.Fragment,null,z,O.createElement(z4,{page:S})):z});tx.displayName="Link";var EN=O.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:l,viewTransition:o,children:c,...u},f){let d=Zu(l,{relative:u.relative}),h=Ur(),p=O.useContext(Tp),{navigator:y,basename:m}=O.useContext(Dn),x=p!=null&&Q4(d)&&o===!0,g=y.encodeLocation?y.encodeLocation(d).pathname:d.pathname,j=h.pathname,b=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(j=j.toLowerCase(),b=b?b.toLowerCase():null,g=g.toLowerCase()),b&&m&&(b=ba(b,m)||b);const v=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let S=j===g||!a&&j.startsWith(g)&&j.charAt(v)==="/",w=b!=null&&(b===g||!a&&b.startsWith(g)&&b.charAt(g.length)==="/"),A={isActive:S,isPending:w,isTransitioning:x},_=S?t:void 0,E;typeof r=="function"?E=r(A):E=[r,S?"active":null,w?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let N=typeof i=="function"?i(A):i;return O.createElement(tx,{...u,"aria-current":_,className:E,ref:f,style:N,to:l,viewTransition:o},typeof c=="function"?c(A):c)});EN.displayName="NavLink";var F4=O.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:l=hd,action:o,onSubmit:c,relative:u,preventScrollReset:f,viewTransition:d,defaultShouldRevalidate:h,...p},y)=>{let{useTransitions:m}=O.useContext(Dn),x=X4(),g=W4(o,{relative:u}),j=l.toLowerCase()==="get"?"get":"post",b=typeof o=="string"&&AN.test(o),v=S=>{if(c&&c(S),S.defaultPrevented)return;S.preventDefault();let w=S.nativeEvent.submitter,A=(w==null?void 0:w.getAttribute("formmethod"))||l,_=()=>x(w||S.currentTarget,{fetcherKey:t,method:A,navigate:n,replace:a,state:i,relative:u,preventScrollReset:f,viewTransition:d,defaultShouldRevalidate:h});m&&n!==!1?O.startTransition(()=>_()):_()};return O.createElement("form",{ref:y,method:j,action:g,onSubmit:r?c:v,...p,"data-discover":!b&&e==="render"?"true":void 0})});F4.displayName="Form";function G4(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function _N(e){let t=O.useContext(Es);return nt(t,G4(e)),t}function Y4(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:i,relative:l,viewTransition:o,defaultShouldRevalidate:c,useTransitions:u}={}){let f=Ts(),d=Ur(),h=Zu(e,{relative:l});return O.useCallback(p=>{if(O4(p,t)){p.preventDefault();let y=n!==void 0?n:Wc(d)===Wc(h),m=()=>f(e,{replace:y,mask:r,state:a,preventScrollReset:i,relative:l,viewTransition:o,defaultShouldRevalidate:c});u?O.startTransition(()=>m()):m()}},[d,f,h,n,r,a,t,e,i,l,o,c,u])}var V4=0,K4=()=>`__${String(++V4)}__`;function X4(){let{router:e}=_N("useSubmit"),{basename:t}=O.useContext(Dn),n=h4(),r=e.fetch,a=e.navigate;return O.useCallback(async(i,l={})=>{let{action:o,method:c,encType:u,formData:f,body:d}=_4(i,t);if(l.navigate===!1){let h=l.fetcherKey||K4();await r(h,n,l.action||o,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:f,body:d,formMethod:l.method||c,formEncType:l.encType||u,flushSync:l.flushSync})}else await a(l.action||o,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:f,body:d,formMethod:l.method||c,formEncType:l.encType||u,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,a,t,n])}function W4(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={...Zu(e||".",{relative:t})},l=Ur();if(e==null){i.search=l.search;let o=new URLSearchParams(i.search),c=o.getAll("index");if(c.some(f=>f==="")){o.delete("index"),c.filter(d=>d).forEach(d=>o.append("index",d));let f=o.toString();i.search=f?`?${f}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:pr([n,i.pathname])),Wc(i)}function Q4(e,{relative:t}={}){let n=O.useContext(yN);nt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=_N("useViewTransitionState"),a=Zu(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 Qd(a.pathname,l)!=null||Qd(a.pathname,i)!=null}var Cp=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,Oo,QA,Z4=(QA=class extends Cp{constructor(){super();Ae(this,Ki);Ae(this,Ua);Ae(this,Oo);pe(this,Oo,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,Oo))}onUnsubscribe(){var t;this.hasListeners()||((t=U(this,Ua))==null||t.call(this),pe(this,Ua,void 0))}setEventListener(t){var n;pe(this,Oo,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,Oo=new WeakMap,QA),TN=new Z4,J4={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ha,Gb,ZA,e5=(ZA=class{constructor(){Ae(this,Ha,J4);Ae(this,Gb,!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,Gb=new WeakMap,ZA),Jv=new e5;function t5(e){setTimeout(e,0)}var n5=typeof window>"u"||"Deno"in globalThis;function sr(){}function r5(e,t){return typeof e=="function"?e(t):e}function a5(e){return typeof e=="number"&&e>=0&&e!==1/0}function i5(e,t){return Math.max(e+(t||0)-Date.now(),0)}function eg(e,t){return typeof e=="function"?e(t):e}function l5(e,t){return typeof e=="function"?e(t):e}function pS(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:l,stale:o}=e;if(l){if(r){if(t.queryHash!==nx(l,t.options))return!1}else if(!Zc(t.queryKey,l))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||a&&a!==t.state.fetchStatus||i&&!i(t))}function mS(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Qc(t.options.mutationKey)!==Qc(i))return!1}else if(!Zc(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function nx(e,t){return((t==null?void 0:t.queryKeyHashFn)||Qc)(e)}function Qc(e){return JSON.stringify(e,(t,n)=>tg(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Zc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Zc(e[n],t[n])):!1}var o5=Object.prototype.hasOwnProperty;function NN(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=yS(e)&&yS(t);if(!r&&!(tg(e)&&tg(t)))return t;const i=(r?e:Object.keys(e)).length,l=r?t:Object.keys(t),o=l.length,c=r?new Array(o):{};let u=0;for(let f=0;f<o;f++){const d=r?f:l[f],h=e[d],p=t[d];if(h===p){c[d]=h,(r?f<i:o5.call(e,d))&&u++;continue}if(h===null||p===null||typeof h!="object"||typeof p!="object"){c[d]=p;continue}const y=NN(h,p,n+1);c[d]=y,y===h&&u++}return i===o&&u===i?e:c}function yS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function tg(e){if(!vS(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!vS(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function vS(e){return Object.prototype.toString.call(e)==="[object Object]"}function s5(e){return new Promise(t=>{Jv.setTimeout(t,e)})}function c5(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?NN(e,t):t}function u5(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function f5(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var rx=Symbol();function CN(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===rx?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function d5(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 MN=(()=>{let e=()=>n5;return{isServer(){return e()},setIsServer(t){e=t}}})();function h5(){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 p5=t5;function m5(){let e=[],t=0,n=o=>{o()},r=o=>{o()},a=p5;const i=o=>{t?e.push(o):a(()=>{n(o)})},l=()=>{const o=e;e=[],o.length&&a(()=>{r(()=>{o.forEach(c=>{n(c)})})})};return{batch:o=>{let c;t++;try{c=o()}finally{t--,t||l()}return c},batchCalls:o=>(...c)=>{i(()=>{o(...c)})},schedule:i,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{a=o}}}var Qt=m5(),Ao,qa,Eo,JA,y5=(JA=class extends Cp{constructor(){super();Ae(this,Ao,!0);Ae(this,qa);Ae(this,Eo);pe(this,Eo,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,Eo))}onUnsubscribe(){var t;this.hasListeners()||((t=U(this,qa))==null||t.call(this),pe(this,qa,void 0))}setEventListener(t){var n;pe(this,Eo,t),(n=U(this,qa))==null||n.call(this),pe(this,qa,t(this.setOnline.bind(this)))}setOnline(t){U(this,Ao)!==t&&(pe(this,Ao,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return U(this,Ao)}},Ao=new WeakMap,qa=new WeakMap,Eo=new WeakMap,JA),Jd=new y5;function v5(e){return Math.min(1e3*2**e,3e4)}function kN(e){return(e??"online")==="online"?Jd.isOnline():!0}var ng=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function $N(e){let t=!1,n=0,r;const a=h5(),i=()=>a.status!=="pending",l=m=>{var x;if(!i()){const g=new ng(m);h(g),(x=e.onCancel)==null||x.call(e,g)}},o=()=>{t=!0},c=()=>{t=!1},u=()=>TN.isFocused()&&(e.networkMode==="always"||Jd.isOnline())&&e.canRun(),f=()=>kN(e.networkMode)&&e.canRun(),d=m=>{i()||(r==null||r(),a.resolve(m))},h=m=>{i()||(r==null||r(),a.reject(m))},p=()=>new Promise(m=>{var x;r=g=>{(i()||u())&&m(g)},(x=e.onPause)==null||x.call(e)}).then(()=>{var m;r=void 0,i()||(m=e.onContinue)==null||m.call(e)}),y=()=>{if(i())return;let m;const x=n===0?e.initialPromise:void 0;try{m=x??e.fn()}catch(g){m=Promise.reject(g)}Promise.resolve(m).then(d).catch(g=>{var w;if(i())return;const j=e.retry??(MN.isServer()?0:3),b=e.retryDelay??v5,v=typeof b=="function"?b(n,g):b,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),s5(v).then(()=>u()?void 0:p()).then(()=>{t?h(g):y()})})};return{promise:a,status:()=>a.status,cancel:l,continue:()=>(r==null||r(),a),cancelRetry:o,continueRetry:c,canStart:f,start:()=>(f()?y():p().then(y),a)}}var Xi,eE,PN=(eE=class{constructor(){Ae(this,Xi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),a5(this.gcTime)&&pe(this,Xi,Jv.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(MN.isServer()?1/0:5*60*1e3))}clearGcTimeout(){U(this,Xi)!==void 0&&(Jv.clearTimeout(U(this,Xi)),pe(this,Xi,void 0))}},Xi=new WeakMap,eE);function g5(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 o={pages:[],pageParams:[]},c=0;const u=async()=>{let m=!1;const x=b=>{d5(b,()=>t.signal,()=>m=!0)},g=CN(t.options,t.fetchOptions),j=async(b,v,S)=>{if(m)return Promise.reject(t.signal.reason);if(v==null&&b.pages.length)return Promise.resolve(b);const A=(()=>{const k={client:t.client,queryKey:t.queryKey,pageParam:v,direction:S?"backward":"forward",meta:t.options.meta};return x(k),k})(),_=await g(A),{maxPages:E}=t.options,N=S?f5:u5;return{pages:N(b.pages,_,E),pageParams:N(b.pageParams,v,E)}};if(a&&i.length){const b=a==="backward",v=b?b5:gS,S={pages:i,pageParams:l},w=v(r,S);o=await j(S,w,b)}else{const b=e??i.length;do{const v=c===0?l[0]??r.initialPageParam:gS(r,o);if(c>0&&v==null)break;o=await j(o,v),c++}while(c<b)}return o};t.options.persister?t.fetchFn=()=>{var m,x;return(x=(m=t.options).persister)==null?void 0:x.call(m,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function gS(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 b5(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 _o,Wi,To,Hn,Qi,Ct,Du,Zi,jn,RN,Qr,tE,x5=(tE=class extends PN{constructor(t){super();Ae(this,jn);Ae(this,_o);Ae(this,Wi);Ae(this,To);Ae(this,Hn);Ae(this,Qi);Ae(this,Ct);Ae(this,Du);Ae(this,Zi);pe(this,Zi,!1),pe(this,Du,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,xS(this.options)),this.state=t.state??U(this,Wi),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return U(this,_o)}get promise(){var t;return(t=U(this,Ct))==null?void 0:t.promise}setOptions(t){if(this.options={...U(this,Du),...t},t!=null&&t._type&&pe(this,_o,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=xS(this.options);n.data!==void 0&&(this.setState(bS(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=c5(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(sr).catch(sr):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=>l5(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===rx||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>eg(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:!i5(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,RN).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,m,x,g,j,b;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 v=this.observers.find(S=>S.options.queryFn);v&&this.setOptions(v.options)}const r=new AbortController,a=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(pe(this,Zi,!0),r.signal)})},i=()=>{const v=CN(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(v,w,this):v(w)},o=(()=>{const v={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:U(this,Qi),state:this.state,fetchFn:i};return a(v),v})(),c=U(this,_o)==="infinite"?g5(this.options.pages):this.options.behavior;c==null||c.onFetch(o,this),pe(this,To,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=o.fetchOptions)==null?void 0:f.meta))&&zt(this,jn,Qr).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta}),pe(this,Ct,$N({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,onCancel:v=>{v instanceof ng&&v.revert&&this.setState({...U(this,To),fetchStatus:"idle"}),r.abort()},onFail:(v,S)=>{zt(this,jn,Qr).call(this,{type:"failed",failureCount:v,error:S})},onPause:()=>{zt(this,jn,Qr).call(this,{type:"pause"})},onContinue:()=>{zt(this,jn,Qr).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}));try{const v=await U(this,Ct).start();if(v===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(v),(p=(h=U(this,Hn).config).onSuccess)==null||p.call(h,v,this),(m=(y=U(this,Hn).config).onSettled)==null||m.call(y,v,this.state.error,this),v}catch(v){if(v instanceof ng){if(v.silent)return U(this,Ct).promise;if(v.revert){if(this.state.data===void 0)throw v;return this.state.data}}throw zt(this,jn,Qr).call(this,{type:"error",error:v}),(g=(x=U(this,Hn).config).onError)==null||g.call(x,v,this),(b=(j=U(this,Hn).config).onSettled)==null||b.call(j,this.state.data,v,this),v}finally{this.scheduleGc()}}},_o=new WeakMap,Wi=new WeakMap,To=new WeakMap,Hn=new WeakMap,Qi=new WeakMap,Ct=new WeakMap,Du=new WeakMap,Zi=new WeakMap,jn=new WeakSet,RN=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,...j5(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...bS(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return pe(this,To,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})})},tE);function j5(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:kN(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function bS(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function xS(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 zu,Ar,Yt,Ji,Er,Ma,nE,S5=(nE=class extends PN{constructor(t){super();Ae(this,Er);Ae(this,zu);Ae(this,Ar);Ae(this,Yt);Ae(this,Ji);pe(this,zu,t.client),this.mutationId=t.mutationId,pe(this,Yt,t.mutationCache),pe(this,Ar,[]),this.state=t.state||w5(),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,Yt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){pe(this,Ar,U(this,Ar).filter(n=>n!==t)),this.scheduleGc(),U(this,Yt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){U(this,Ar).length||(this.state.status==="pending"?this.scheduleGc():U(this,Yt).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,o,c,u,f,d,h,p,y,m,x,g,j,b,v,S,w,A;const n=()=>{zt(this,Er,Ma).call(this,{type:"continue"})},r={client:U(this,zu),meta:this.options.meta,mutationKey:this.options.mutationKey};pe(this,Ji,$N({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,Yt).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,Yt).config.onMutate&&await U(this,Yt).config.onMutate(t,this,r);const E=await((o=(l=this.options).onMutate)==null?void 0:o.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,Yt).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,Yt).config).onSettled)==null?void 0:p.call(h,_,null,this.state.variables,this.state.context,this,r)),await((m=(y=this.options).onSettled)==null?void 0:m.call(y,_,null,t,this.state.context,r)),zt(this,Er,Ma).call(this,{type:"success",data:_}),_}catch(_){try{await((g=(x=U(this,Yt).config).onError)==null?void 0:g.call(x,_,t,this.state.context,this,r))}catch(E){Promise.reject(E)}try{await((b=(j=this.options).onError)==null?void 0:b.call(j,_,t,this.state.context,r))}catch(E){Promise.reject(E)}try{await((S=(v=U(this,Yt).config).onSettled)==null?void 0:S.call(v,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,Yt).runNext(this)}}},zu=new WeakMap,Ar=new WeakMap,Yt=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,Yt).notify({mutation:this,type:"updated",action:t})})},nE);function w5(){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,Lu,rE,O5=(rE=class extends Cp{constructor(t={}){super();Ae(this,ea);Ae(this,cr);Ae(this,Lu);this.config=t,pe(this,ea,new Set),pe(this,cr,new Map),pe(this,Lu,0)}build(t,n,r){const a=new S5({client:t,mutationCache:this,mutationId:++mf(this,Lu)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){U(this,ea).add(t);const n=Pf(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=Pf(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=Pf(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=Pf(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=>mS(n,r))}findAll(t={}){return this.getAll().filter(n=>mS(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(sr))))}},ea=new WeakMap,cr=new WeakMap,Lu=new WeakMap,rE);function Pf(e){var t;return(t=e.options.scope)==null?void 0:t.id}var _r,aE,A5=(aE=class extends Cp{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??nx(a,n);let l=this.get(i);return l||(l=new x5({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=>pS(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>pS(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,aE),lt,Fa,Ga,No,Co,Ya,Mo,ko,iE,E5=(iE=class{constructor(e={}){Ae(this,lt);Ae(this,Fa);Ae(this,Ga);Ae(this,No);Ae(this,Co);Ae(this,Ya);Ae(this,Mo);Ae(this,ko);pe(this,lt,e.queryCache||new A5),pe(this,Fa,e.mutationCache||new O5),pe(this,Ga,e.defaultOptions||{}),pe(this,No,new Map),pe(this,Co,new Map),pe(this,Ya,0)}mount(){mf(this,Ya)._++,U(this,Ya)===1&&(pe(this,Mo,TN.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(this,lt).onFocus())})),pe(this,ko,Jd.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(this,lt).onOnline())})))}unmount(){var e,t;mf(this,Ya)._--,U(this,Ya)===0&&((e=U(this,Mo))==null||e.call(this),pe(this,Mo,void 0),(t=U(this,ko))==null||t.call(this),pe(this,ko,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(eg(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=r5(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(sr).catch(sr)}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(sr)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(sr)}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(eg(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(sr).catch(sr)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(sr).catch(sr)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Jd.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,No).set(Qc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...U(this,No).values()],n={};return t.forEach(r=>{Zc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){U(this,Co).set(Qc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...U(this,Co).values()],n={};return t.forEach(r=>{Zc(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=nx(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===rx&&(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,No=new WeakMap,Co=new WeakMap,Ya=new WeakMap,Mo=new WeakMap,ko=new WeakMap,iE),_5=O.createContext(void 0),T5=({client:e,children:t})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),s.jsx(_5.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 N5=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),DN=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var C5={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 M5=O.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:l,...o},c)=>O.createElement("svg",{ref:c,...C5,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:DN("lucide",a),...o},[...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 Z=(e,t)=>{const n=O.forwardRef(({className:r,...a},i)=>O.createElement(M5,{ref:i,iconNode:t,className:DN(`lucide-${N5(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 k5=Z("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 $5=Z("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 P5=Z("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 R5=Z("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 D5=Z("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 ax=Z("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 z5=Z("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 L5=Z("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 B5=Z("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 I5=Z("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 ix=Z("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 U5=Z("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 H5=Z("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 q5=Z("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 F5=Z("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 G5=Z("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 Y5=Z("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 Jc=Z("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 V5=Z("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 K5=Z("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 eh=Z("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 X5=Z("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 W5=Z("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 zN=Z("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 LN=Z("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 BN=Z("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 Q5=Z("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 Mp=Z("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 Z5=Z("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 J5=Z("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 lx=Z("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 IN=Z("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 ez=Z("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 tz=Z("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 kp=Z("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 UN=Z("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 ox=Z("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 sx=Z("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 nz=Z("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 rz=Z("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 HN=Z("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 qN=Z("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 az=Z("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 iz=Z("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 cx=Z("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 FN=Z("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 lz=Z("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 oz=Z("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 sz=Z("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 ux=Z("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 GN=Z("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 Ns=Z("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 cz=Z("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 jS=Z("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 uz=Z("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=Z("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 fz=Z("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 dz=Z("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 hz=Z("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 fx=Z("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 pz=Z("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 YN=Z("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 Ju=Z("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 VN=Z("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 KN=Z("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 XN=Z("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 dx=Z("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 th=Z("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 nh=Z("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=Z("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 mz=Z("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 yz=Z("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 vz=Z("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 rg=Z("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 gz=Z("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 bz=Z("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=Z("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 xz=Z("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 jz=Z("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 Sz=Z("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 hx=Z("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 ag=Z("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 WN=Z("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),SS={SUPERADMIN:4,EDITOR:3,AUTHOR:2,VIEWER:1},wS=["SUPERADMIN","EDITOR","AUTHOR","VIEWER"];function xa(){return(localStorage.getItem("cms_role")||"VIEWER").toUpperCase()}function pl(e,t=xa()){return(SS[t]||0)>=(SS[e.toUpperCase()]||99)}const zn=(e=xa())=>pl("AUTHOR",e),QN=(e=xa())=>pl("EDITOR",e),ZN=(e=xa())=>pl("SUPERADMIN",e),JN=O.createContext({theme:"dark",toggle:()=>{},setTheme:()=>{}}),OS="cms_theme";function wz(e){document.documentElement.setAttribute("data-theme",e)}function Oz({children:e}){const[t,n]=O.useState(()=>localStorage.getItem(OS)==="light"?"light":"dark");O.useEffect(()=>{wz(t),localStorage.setItem(OS,t)},[t]);const r=i=>n(i),a=()=>n(i=>i==="dark"?"light":"dark");return s.jsx(JN.Provider,{value:{theme:t,toggle:a,setTheme:r},children:e})}function Az(){return O.useContext(JN)}function eC(){const{theme:e,toggle:t}=Az();return s.jsxs("button",{onClick:t,title:"테마 전환",style:{display:"flex",alignItems:"center",gap:8,padding:"10px 12px",background:"none",border:"1px solid var(--uiws-border, #2d3448)",borderRadius:8,color:"var(--uiws-text-muted, #8892b0)",cursor:"pointer",fontSize:13,width:"100%"},children:[e==="dark"?s.jsx(yz,{size:16}):s.jsx(oz,{size:16}),e==="dark"?"라이트 모드":"다크 모드"]})}const Ez=[{to:"/dashboard",label:"개요",icon:nz},{to:"/contents",label:"콘텐츠",icon:Mp},{to:"/media",label:"미디어",icon:kp},{to:"/products",label:"상품 콘텐츠",icon:ux},{to:"/banners",label:"배너/프로모션",icon:cx},{to:"/menus",label:"메뉴/카테고리",icon:qN}],_z=[{to:"/themes",label:"테마/템플릿",icon:GN},{to:"/i18n",label:"다국어",icon:sx},{to:"/seo",label:"SEO",icon:Ju},{to:"/forms",label:"폼빌더",icon:LN},{to:"/channels",label:"채널",icon:XN}],Tz=[{to:"/ugc",label:"UGC 모더레이션",icon:FN},{to:"/members",label:"회원",icon:hx},{to:"/analytics",label:"콘텐츠 분석",icon:ax},{to:"/ai-tools",label:"AI 도구",icon:ht},{to:"/ai-techniques",label:"AI 기법 (RAG)",icon:Jc}],Nz=[{to:"/admin/users",label:"사용자/권한",icon:th,min:"SUPERADMIN"},{to:"/admin/audit",label:"감사 로그",icon:YN,min:"EDITOR"},{to:"/admin/settings",label:"시스템 설정",icon:KN,min:"EDITOR"},{to:"/admin/ai-platform",label:"AI 플랫폼",icon:Jc,min:"SUPERADMIN"}],Cz=[{to:"/uiws/worklog",label:"업무일지",icon:z5},{to:"/uiws/schedule",label:"일정",icon:I5},{to:"/uiws/message",label:"쪽지",icon:iz},{to:"/uiws/stats",label:"업무통계",icon:ax}],Mz=[{to:"/uiws/system/roles",label:"권한 관리",icon:ox,min:"SUPERADMIN"},{to:"/uiws/system/role-menus",label:"역할-메뉴 권한",icon:HN,min:"SUPERADMIN"},{to:"/uiws/system/codes",label:"공통코드",icon:ez,min:"SUPERADMIN"},{to:"/uiws/system/menus",label:"메뉴 관리",icon:mz,min:"SUPERADMIN"},{to:"/uiws/system/depts",label:"부서 관리",icon:sz,min:"SUPERADMIN"},{to:"/uiws/system/companies",label:"거래처 관리",icon:L5,min:"SUPERADMIN"}],kz=[{to:"/admin/mobile-app",label:"모바일 앱 설치",icon:nh}],$z=({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 s.jsxs(s.Fragment,{children:[e&&s.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})=>s.jsxs(EN,{to:n,className:$z,children:[s.jsx(a,{size:17}),r]},n))]})}function Pz(){const[e,t]=O.useState(xa);O.useEffect(()=>{const a=()=>{const l=xa();t(o=>o===l?o:l)},i=window.setInterval(a,800);return window.addEventListener("storage",a),()=>{window.clearInterval(i),window.removeEventListener("storage",a)}},[]);const n=Nz.filter(a=>pl(a.min||"VIEWER",e)),r=Mz.filter(a=>pl(a.min||"VIEWER",e));return s.jsxs("aside",{className:"w-60 bg-panel border-r border-edge flex flex-col",children:[s.jsxs("div",{className:"h-16 flex items-center gap-2 px-5 border-b border-edge",children:[s.jsx(Q5,{className:"text-brand",size:24}),s.jsxs("div",{children:[s.jsx("div",{className:"font-bold text-base leading-tight",children:"GUARDiA CMS"}),s.jsx("div",{className:"text-[11px] text-slate-400",children:"콘텐츠 관리 시스템"})]})]}),s.jsxs("nav",{className:"flex-1 py-2 overflow-auto",children:[s.jsx(Ci,{links:Ez}),s.jsx(Ci,{title:"사이트",links:_z}),s.jsx(Ci,{title:"참여 · 분석",links:Tz}),s.jsx("div",{className:"border-t border-edge mt-3",children:s.jsx(Ci,{title:"업무(UIWS)",links:Cz})}),r.length>0&&s.jsx("div",{className:"border-t border-edge mt-3",children:s.jsx(Ci,{title:"시스템관리(권한)",links:r})}),s.jsx("div",{className:"border-t border-edge mt-3",children:s.jsx(Ci,{title:"모바일",links:kz})}),n.length>0&&s.jsx("div",{className:"border-t border-edge mt-3",children:s.jsx(Ci,{title:"관리자",links:n})})]}),s.jsx("div",{className:"px-4 pt-3 border-t border-edge",children:s.jsx(eC,{})}),s.jsx("div",{className:"p-4 text-[11px] text-slate-500",children:"Ollama 온프레미스 · 헤드리스 CMS"})]})}function tC(e,t){return function(){return e.apply(t,arguments)}}const{toString:Rz}=Object.prototype,{getPrototypeOf:$p}=Object,{iterator:Pp,toStringTag:nC}=Symbol,Rp=(e=>t=>{const n=Rz.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),br=e=>(e=e.toLowerCase(),t=>Rp(t)===e),Dp=e=>t=>typeof t===e,{isArray:ml}=Array,Fo=Dp("undefined");function Cs(e){return e!==null&&!Fo(e)&&e.constructor!==null&&!Fo(e.constructor)&&hn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const rC=br("ArrayBuffer");function Dz(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&rC(e.buffer),t}const zz=Dp("string"),hn=Dp("function"),aC=Dp("number"),ef=e=>e!==null&&typeof e=="object",Lz=e=>e===!0||e===!1,md=e=>{if(Rp(e)!=="object")return!1;const t=$p(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(nC in e)&&!(Pp in e)},Bz=e=>{if(!ef(e)||Cs(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Iz=br("Date"),Uz=br("File"),Hz=e=>!!(e&&typeof e.uri<"u"),qz=e=>e&&typeof e.getParts<"u",Fz=br("Blob"),Gz=br("FileList"),Yz=e=>ef(e)&&hn(e.pipe);function Vz(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const AS=Vz(),ES=typeof AS.FormData<"u"?AS.FormData:void 0,Kz=e=>{if(!e)return!1;if(ES&&e instanceof ES)return!0;const t=$p(e);if(!t||t===Object.prototype||!hn(e.append))return!1;const n=Rp(e);return n==="formdata"||n==="object"&&hn(e.toString)&&e.toString()==="[object FormData]"},Xz=br("URLSearchParams"),[Wz,Qz,Zz,Jz]=["ReadableStream","Request","Response","Headers"].map(br),e6=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function tf(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(Cs(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),l=i.length;let o;for(r=0;r<l;r++)o=i[r],t.call(null,e[o],o,e)}}function iC(e,t){if(Cs(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,lC=e=>!Fo(e)&&e!==Hi;function ig(...e){const{caseless:t,skipUndefined:n}=lC(this)&&this||{},r={},a=(i,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const o=t&&typeof l=="string"&&iC(r,l)||l,c=lg(r,o)?r[o]:void 0;md(c)&&md(i)?r[o]=ig(c,i):md(i)?r[o]=ig({},i):ml(i)?r[o]=i.slice():(!n||!Fo(i))&&(r[o]=i)};for(let i=0,l=e.length;i<l;i++){const o=e[i];if(!o||Cs(o)||(tf(o,a),typeof o!="object"||ml(o)))continue;const c=Object.getOwnPropertySymbols(o);for(let u=0;u<c.length;u++){const f=c[u];d6.call(o,f)&&a(o[f],f)}}return r}const t6=(e,t,n,{allOwnKeys:r}={})=>(tf(t,(a,i)=>{n&&hn(a)?Object.defineProperty(e,i,{__proto__:null,value:tC(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),n6=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),r6=(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)},a6=(e,t,n,r)=>{let a,i,l;const o={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)l=a[i],(!r||r(l,e,t))&&!o[l]&&(t[l]=e[l],o[l]=!0);e=n!==!1&&$p(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},i6=(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},l6=e=>{if(!e)return null;if(ml(e))return e;let t=e.length;if(!aC(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},o6=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&$p(Uint8Array)),s6=(e,t)=>{const r=(e&&e[Pp]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},c6=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},u6=br("HTMLFormElement"),f6=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),lg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),{propertyIsEnumerable:d6}=Object.prototype,h6=br("RegExp"),oC=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};tf(n,(a,i)=>{let l;(l=t(a,i,e))!==!1&&(r[i]=l||a)}),Object.defineProperties(e,r)},p6=e=>{oC(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+"'")})}})},m6=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return ml(e)?r(e):r(String(e).split(t)),n},y6=()=>{},v6=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function g6(e){return!!(e&&hn(e.append)&&e[nC]==="FormData"&&e[Pp])}const b6=e=>{const t=new WeakSet,n=r=>{if(ef(r)){if(t.has(r))return;if(Cs(r))return r;if(!("toJSON"in r)){t.add(r);const a=ml(r)?[]:{};return tf(r,(i,l)=>{const o=n(i);!Fo(o)&&(a[l]=o)}),t.delete(r),a}}return r};return n(e)},x6=br("AsyncFunction"),j6=e=>e&&(ef(e)||hn(e))&&hn(e.then)&&hn(e.catch),sC=((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)),S6=typeof queueMicrotask<"u"?queueMicrotask.bind(Hi):typeof process<"u"&&process.nextTick||sC,w6=e=>e!=null&&hn(e[Pp]),$={isArray:ml,isArrayBuffer:rC,isBuffer:Cs,isFormData:Kz,isArrayBufferView:Dz,isString:zz,isNumber:aC,isBoolean:Lz,isObject:ef,isPlainObject:md,isEmptyObject:Bz,isReadableStream:Wz,isRequest:Qz,isResponse:Zz,isHeaders:Jz,isUndefined:Fo,isDate:Iz,isFile:Uz,isReactNativeBlob:Hz,isReactNative:qz,isBlob:Fz,isRegExp:h6,isFunction:hn,isStream:Yz,isURLSearchParams:Xz,isTypedArray:o6,isFileList:Gz,forEach:tf,merge:ig,extend:t6,trim:e6,stripBOM:n6,inherits:r6,toFlatObject:a6,kindOf:Rp,kindOfTest:br,endsWith:i6,toArray:l6,forEachEntry:s6,matchAll:c6,isHTMLForm:u6,hasOwnProperty:lg,hasOwnProp:lg,reduceDescriptors:oC,freezeMethods:p6,toObjectSet:m6,toCamelCase:f6,noop:y6,toFiniteNumber:v6,findKey:iC,global:Hi,isContextDefined:lC,isSpecCompliantForm:g6,toJSONObject:b6,isAsyncFn:x6,isThenable:j6,setImmediate:sC,asap:S6,isIterable:w6},O6=$.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"]),A6=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]&&O6[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function E6(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 _6=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),T6=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function px(e,t){return $.isArray(e)?e.map(n=>px(n,t)):E6(String(e).replace(t,""))}const N6=e=>px(e,_6),C6=e=>px(e,T6);function cC(e){const t=Object.create(null);return $.forEach(e.toJSON(),(n,r)=>{t[r]=C6(n)}),t}const _S=Symbol("internals");function Zs(e){return e&&String(e).trim().toLowerCase()}function yd(e){return e===!1||e==null?e:$.isArray(e)?e.map(yd):N6(String(e))}function M6(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 k6=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function by(e,t,n,r,a){if($.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!$.isString(t)){if($.isString(r))return t.indexOf(r)!==-1;if($.isRegExp(r))return r.test(t)}}function $6(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function P6(e,t){const n=$.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(o,c,u){const f=Zs(c);if(!f)return;const d=$.findKey(a,f);(!d||a[d]===void 0||u===!0||u===void 0&&a[d]!==!1)&&(a[d||c]=yd(o))}const l=(o,c)=>$.forEach(o,(u,f)=>i(u,f,c));if($.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if($.isString(t)&&(t=t.trim())&&!k6(t))l(A6(t),n);else if($.isObject(t)&&$.isIterable(t)){let o={},c,u;for(const f of t){if(!$.isArray(f))throw new TypeError("Object iterator must return a key-value pair");o[u=f[0]]=(c=o[u])?$.isArray(c)?[...c,f[1]]:[c,f[1]]:f[1]}l(o,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Zs(t),t){const r=$.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return M6(a);if($.isFunction(n))return n.call(this,a,r);if($.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Zs(t),t){const r=$.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||by(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(l){if(l=Zs(l),l){const o=$.findKey(r,l);o&&(!n||by(r,r[o],o,n))&&(delete r[o],a=!0)}}return $.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||by(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return $.forEach(this,(a,i)=>{const l=$.findKey(r,i);if(l){n[l]=yd(a),delete n[i];return}const o=t?$6(i):String(i).trim();o!==i&&delete n[i],n[o]=yd(a),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return $.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&$.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[_S]=this[_S]={accessors:{}}).accessors,a=this.prototype;function i(l){const o=Zs(l);r[o]||(P6(a,l),r[o]=!0)}return $.isArray(t)?t.forEach(i):i(t),this}};nn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);$.reduceDescriptors(nn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});$.freezeMethods(nn);const R6="[REDACTED ****]";function D6(e){if($.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if($.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function z6(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],a=i=>{if(i===null||typeof i!="object"||$.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof nn&&(i=i.toJSON()),r.push(i);let l;if($.isArray(i))l=[],i.forEach((o,c)=>{const u=a(o);$.isUndefined(u)||(l[c]=u)});else{if(!$.isPlainObject(i)&&D6(i))return r.pop(),i;l=Object.create(null);for(const[o,c]of Object.entries(i)){const u=n.has(o.toLowerCase())?R6:a(c);$.isUndefined(u)||(l[o]=u)}}return r.pop(),l};return a(e)}let ae=class uC extends Error{static from(t,n,r,a,i,l){const o=new uC(t.message,n||t.code,r,a,i);return o.cause=t,o.name=t.name,t.status!=null&&o.status==null&&(o.status=t.status),l&&Object.assign(o,l),o}constructor(t,n,r,a,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),a&&(this.request=a),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&$.hasOwnProp(t,"redact")?t.redact:void 0,r=$.isArray(n)&&n.length>0?z6(t,n):$.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}}};ae.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ae.ERR_BAD_OPTION="ERR_BAD_OPTION";ae.ECONNABORTED="ECONNABORTED";ae.ETIMEDOUT="ETIMEDOUT";ae.ECONNREFUSED="ECONNREFUSED";ae.ERR_NETWORK="ERR_NETWORK";ae.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ae.ERR_DEPRECATED="ERR_DEPRECATED";ae.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ae.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ae.ERR_CANCELED="ERR_CANCELED";ae.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ae.ERR_INVALID_URL="ERR_INVALID_URL";ae.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const L6=null;function og(e){return $.isPlainObject(e)||$.isArray(e)}function fC(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function xy(e,t,n){return e?e.concat(t).map(function(a,i){return a=fC(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function B6(e){return $.isArray(e)&&!e.some(og)}const I6=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function zp(e,t,n){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=$.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,g){return!$.isUndefined(g[x])});const r=n.metaTokens,a=n.visitor||d,i=n.dots,l=n.indexes,o=n.Blob||typeof Blob<"u"&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,u=o&&$.isSpecCompliantForm(t);if(!$.isFunction(a))throw new TypeError("visitor must be a function");function f(m){if(m===null)return"";if($.isDate(m))return m.toISOString();if($.isBoolean(m))return m.toString();if(!u&&$.isBlob(m))throw new ae("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(m)||$.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,x,g){let j=m;if($.isReactNative(t)&&$.isReactNativeBlob(m))return t.append(xy(g,x,i),f(m)),!1;if(m&&!g&&typeof m=="object"){if($.endsWith(x,"{}"))x=r?x:x.slice(0,-2),m=JSON.stringify(m);else if($.isArray(m)&&B6(m)||($.isFileList(m)||$.endsWith(x,"[]"))&&(j=$.toArray(m)))return x=fC(x),j.forEach(function(v,S){!($.isUndefined(v)||v===null)&&t.append(l===!0?xy([x],S,i):l===null?x:x+"[]",f(v))}),!1}return og(m)?!0:(t.append(xy(g,x,i),f(m)),!1)}const h=[],p=Object.assign(I6,{defaultVisitor:d,convertValue:f,isVisitable:og});function y(m,x,g=0){if(!$.isUndefined(m)){if(g>c)throw new ae("Object is too deeply nested ("+g+" levels). Max depth: "+c,ae.ERR_FORM_DATA_DEPTH_EXCEEDED);if(h.indexOf(m)!==-1)throw new Error("Circular reference detected in "+x.join("."));h.push(m),$.forEach(m,function(b,v){(!($.isUndefined(b)||b===null)&&a.call(t,b,$.isString(v)?v.trim():v,x,p))===!0&&y(b,x?x.concat(v):[v],g+1)}),h.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return y(e),t}function TS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function mx(e,t){this._pairs=[],e&&zp(e,this,t)}const dC=mx.prototype;dC.append=function(t,n){this._pairs.push([t,n])};dC.toString=function(t){const n=t?function(r){return t.call(this,r,TS)}:TS;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function U6(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function hC(e,t,n){if(!t)return e;const r=n&&n.encode||U6,a=$.isFunction(n)?{serialize:n}:n,i=a&&a.serialize;let l;if(i?l=i(t,a):l=$.isURLSearchParams(t)?t.toString():new mx(t,a).toString(r),l){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class NS{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){$.forEach(this.handlers,function(r){r!==null&&t(r)})}}const yx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},H6=typeof URLSearchParams<"u"?URLSearchParams:mx,q6=typeof FormData<"u"?FormData:null,F6=typeof Blob<"u"?Blob:null,G6={isBrowser:!0,classes:{URLSearchParams:H6,FormData:q6,Blob:F6},protocols:["http","https","file","blob","url","data"]},vx=typeof window<"u"&&typeof document<"u",sg=typeof navigator=="object"&&navigator||void 0,Y6=vx&&(!sg||["ReactNative","NativeScript","NS"].indexOf(sg.product)<0),V6=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",K6=vx&&window.location.href||"http://localhost",X6=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vx,hasStandardBrowserEnv:Y6,hasStandardBrowserWebWorkerEnv:V6,navigator:sg,origin:K6},Symbol.toStringTag,{value:"Module"})),Ht={...X6,...G6};function W6(e,t){return zp(e,new Ht.classes.URLSearchParams,{visitor:function(n,r,a,i){return Ht.isNode&&$.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Q6(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Z6(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 pC(e){function t(n,r,a,i){let l=n[i++];if(l==="__proto__")return!0;const o=Number.isFinite(+l),c=i>=n.length;return l=!l&&$.isArray(a)?a.length:l,c?($.hasOwnProp(a,l)?a[l]=$.isArray(a[l])?a[l].concat(r):[a[l],r]:a[l]=r,!o):((!$.hasOwnProp(a,l)||!$.isObject(a[l]))&&(a[l]=[]),t(n,r,a[l],i)&&$.isArray(a[l])&&(a[l]=Z6(a[l])),!o)}if($.isFormData(e)&&$.isFunction(e.entries)){const n={};return $.forEachEntry(e,(r,a)=>{t(Q6(r),a,n,0)}),n}return null}const Ul=(e,t)=>e!=null&&$.hasOwnProp(e,t)?e[t]:void 0;function J6(e,t,n){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const nf={transitional:yx,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=$.isObject(t);if(i&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return a?JSON.stringify(pC(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t)||$.isReadableStream(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){const c=Ul(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return W6(t,c).toString();if((o=$.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=Ul(this,"env"),f=u&&u.FormData;return zp(o?{"files[]":t}:t,f&&new f,c)}}return i||a?(n.setContentType("application/json",!1),J6(t)):t}],transformResponse:[function(t){const n=Ul(this,"transitional")||nf.transitional,r=n&&n.forcedJSONParsing,a=Ul(this,"responseType"),i=a==="json";if($.isResponse(t)||$.isReadableStream(t))return t;if(t&&$.isString(t)&&(r&&!a||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,Ul(this,"parseReviver"))}catch(c){if(o)throw c.name==="SyntaxError"?ae.from(c,ae.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}}};$.forEach(["delete","get","head","post","put","patch","query"],e=>{nf.headers[e]={}});function jy(e,t){const n=this||nf,r=t||n,a=nn.from(r.headers);let i=r.data;return $.forEach(e,function(o){i=o.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function mC(e){return!!(e&&e.__CANCEL__)}let rf=class extends ae{constructor(t,n,r){super(t??"canceled",ae.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function yC(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ae("Request failed with status code "+n.status,n.status>=400&&n.status<500?ae.ERR_BAD_REQUEST:ae.ERR_BAD_RESPONSE,n.config,n.request,n))}function eL(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function tL(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 nL(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 rh=(e,t,n=3)=>{let r=0;const a=tL(50,250);return nL(i=>{if(!i||typeof i.loaded!="number")return;const l=i.loaded,o=i.lengthComputable?i.total:void 0,c=o!=null?Math.min(l,o):l,u=Math.max(0,c-r),f=a(u);r=Math.max(r,c);const d={loaded:c,total:o,progress:o?c/o:void 0,bytes:u,rate:f||void 0,estimated:f&&o?(o-c)/f:void 0,event:i,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(d)},n)},CS=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},MS=e=>(...t)=>$.asap(()=>e(...t)),rL=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,aL=Ht.hasStandardBrowserEnv?{write(e,t,n,r,a,i,l){if(typeof document>"u")return;const o=[`${e}=${encodeURIComponent(t)}`];$.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),$.isString(r)&&o.push(`path=${r}`),$.isString(a)&&o.push(`domain=${a}`),i===!0&&o.push("secure"),$.isString(l)&&o.push(`SameSite=${l}`),document.cookie=o.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),a=r.indexOf("=");if(a!==-1&&r.slice(0,a)===e)return decodeURIComponent(r.slice(a+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function iL(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function lL(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function vC(e,t,n){let r=!iL(t);return e&&(r||n===!1)?lL(e,t):t}const kS=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 $.isPlainObject(u)&&$.isPlainObject(f)?$.merge.call({caseless:h},u,f):$.isPlainObject(f)?$.merge({},f):$.isArray(f)?f.slice():f}function a(u,f,d,h){if($.isUndefined(f)){if(!$.isUndefined(u))return r(void 0,u,d,h)}else return r(u,f,d,h)}function i(u,f){if(!$.isUndefined(f))return r(void 0,f)}function l(u,f){if($.isUndefined(f)){if(!$.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function o(u,f,d){if($.hasOwnProp(t,d))return r(u,f);if($.hasOwnProp(e,d))return r(void 0,u)}const c={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,allowedSocketPaths:l,responseEncoding:l,validateStatus:o,headers:(u,f,d)=>a(kS(u),kS(f),d,!0)};return $.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const d=$.hasOwnProp(c,f)?c[f]:a,h=$.hasOwnProp(e,f)?e[f]:void 0,p=$.hasOwnProp(t,f)?t[f]:void 0,y=d(h,p,f);$.isUndefined(y)&&d!==o||(n[f]=y)}),n}const oL=["content-type","content-length"];function sL(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,a])=>{oL.includes(r.toLowerCase())&&e.set(r,a)})}const cL=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function gC(e){const t=yl({},e),n=h=>$.hasOwnProp(t,h)?t[h]:void 0,r=n("data");let a=n("withXSRFToken");const i=n("xsrfHeaderName"),l=n("xsrfCookieName");let o=n("headers");const c=n("auth"),u=n("baseURL"),f=n("allowAbsoluteUrls"),d=n("url");if(t.headers=o=nn.from(o),t.url=hC(vC(u,d,f),n("params"),n("paramsSerializer")),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?cL(c.password):""))),$.isFormData(r)&&(Ht.hasStandardBrowserEnv||Ht.hasStandardBrowserWebWorkerEnv||$.isReactNative(r)?o.setContentType(void 0):$.isFunction(r.getHeaders)&&sL(o,r.getHeaders(),n("formDataHeaderPolicy"))),Ht.hasStandardBrowserEnv&&($.isFunction(a)&&(a=a(t)),a===!0||a==null&&rL(t.url))){const p=i&&l&&aL.read(l);p&&o.set(i,p)}return t}const uL=typeof XMLHttpRequest<"u",fL=uL&&function(e){return new Promise(function(n,r){const a=gC(e);let i=a.data;const l=nn.from(a.headers).normalize();let{responseType:o,onUploadProgress:c,onDownloadProgress:u}=a,f,d,h,p,y;function m(){p&&p(),y&&y(),a.cancelToken&&a.cancelToken.unsubscribe(f),a.signal&&a.signal.removeEventListener("abort",f)}let x=new XMLHttpRequest;x.open(a.method.toUpperCase(),a.url,!0),x.timeout=a.timeout;function g(){if(!x)return;const b=nn.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),S={data:!o||o==="text"||o==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:b,config:e,request:x};yC(function(A){n(A),m()},function(A){r(A),m()},S),x=null}"onloadend"in x?x.onloadend=g:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.startsWith("file:"))||setTimeout(g)},x.onabort=function(){x&&(r(new ae("Request aborted",ae.ECONNABORTED,e,x)),m(),x=null)},x.onerror=function(v){const S=v&&v.message?v.message:"Network Error",w=new ae(S,ae.ERR_NETWORK,e,x);w.event=v||null,r(w),m(),x=null},x.ontimeout=function(){let v=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||yx;a.timeoutErrorMessage&&(v=a.timeoutErrorMessage),r(new ae(v,S.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,x)),m(),x=null},i===void 0&&l.setContentType(null),"setRequestHeader"in x&&$.forEach(cC(l),function(v,S){x.setRequestHeader(S,v)}),$.isUndefined(a.withCredentials)||(x.withCredentials=!!a.withCredentials),o&&o!=="json"&&(x.responseType=a.responseType),u&&([h,y]=rh(u,!0),x.addEventListener("progress",h)),c&&x.upload&&([d,p]=rh(c),x.upload.addEventListener("progress",d),x.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(f=b=>{x&&(r(!b||b.type?new rf(null,e,x):b),x.abort(),m(),x=null)},a.cancelToken&&a.cancelToken.subscribe(f),a.signal&&(a.signal.aborted?f():a.signal.addEventListener("abort",f)));const j=eL(a.url);if(j&&!Ht.protocols.includes(j)){r(new ae("Unsupported protocol "+j+":",ae.ERR_BAD_REQUEST,e));return}x.send(i||null)})},dL=(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 ae?u:new rf(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,a(new ae(`timeout of ${t}ms exceeded`,ae.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>c.addEventListener("abort",a));const{signal:o}=n;return o.unsubscribe=()=>$.asap(l),o},hL=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},pL=async function*(e,t){for await(const n of mL(e))yield*hL(n,t)},mL=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()}},$S=(e,t,n,r)=>{const a=pL(e,t);let i=0,l,o=c=>{l||(l=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:f}=await a.next();if(u){o(),c.close();return}let d=f.byteLength;if(n){let h=i+=d;n(h)}c.enqueue(new Uint8Array(f))}catch(u){throw o(u),u}},cancel(c){return o(c),a.return()}},{highWaterMark:2})};function yL(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let l=r.length;const o=r.length;for(let p=0;p<o;p++)if(r.charCodeAt(p)===37&&p+2<o){const y=r.charCodeAt(p+1),m=r.charCodeAt(p+2);(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(l-=2,p+=2)}let c=0,u=o-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,o=r.length;l<o;l++){const c=r.charCodeAt(l);if(c<128)i+=1;else if(c<2048)i+=2;else if(c>=55296&&c<=56319&&l+1<o){const u=r.charCodeAt(l+1);u>=56320&&u<=57343?(i+=4,l++):i+=3}else i+=3}return i}const gx="1.17.0",PS=64*1024,{isFunction:Rf}=$,vL=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),RS=e=>{if(!$.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},DS=(e,...t)=>{try{return!!e(...t)}catch{return!1}},gL=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},bL=e=>{const t=$.global!==void 0&&$.global!==null?$.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=$.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:l}=e,o=a?Rf(a):typeof fetch=="function",c=Rf(i),u=Rf(l);if(!o)return!1;const f=o&&Rf(n),d=o&&(typeof r=="function"?(g=>j=>g.encode(j))(new r):async g=>new Uint8Array(await new i(g).arrayBuffer())),h=c&&f&&DS(()=>{let g=!1;const j=new i(Ht.origin,{body:new n,method:"POST",get duplex(){return g=!0,"half"}}),b=j.headers.has("Content-Type");return j.body!=null&&j.body.cancel(),g&&!b}),p=u&&f&&DS(()=>$.isReadableStream(new l("").body)),y={stream:p&&(g=>g.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!y[g]&&(y[g]=(j,b)=>{let v=j&&j[g];if(v)return v.call(j);throw new ae(`Response type '${g}' is not supported`,ae.ERR_NOT_SUPPORT,b)})});const m=async g=>{if(g==null)return 0;if($.isBlob(g))return g.size;if($.isSpecCompliantForm(g))return(await new i(Ht.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if($.isArrayBufferView(g)||$.isArrayBuffer(g))return g.byteLength;if($.isURLSearchParams(g)&&(g=g+""),$.isString(g))return(await d(g)).byteLength},x=async(g,j)=>{const b=$.toFiniteNumber(g.getContentLength());return b??m(j)};return async g=>{let{url:j,method:b,data:v,signal:S,cancelToken:w,timeout:A,onDownloadProgress:_,onUploadProgress:E,responseType:N,headers:k,withCredentials:M="same-origin",fetchOptions:B,maxContentLength:z,maxBodyLength:P}=gC(g);const C=$.isNumber(z)&&z>-1,L=$.isNumber(P)&&P>-1,I=D=>$.hasOwnProp(g,D)?g[D]:void 0;let G=a||fetch;N=N?(N+"").toLowerCase():"text";let Y=dL([S,w&&w.toAbortSignal()],A),ne=null;const X=Y&&Y.unsubscribe&&(()=>{Y.unsubscribe()});let ie;try{let D;const W=I("auth");if(W){const J=W.username||"",F=W.password||"";D={username:J,password:F}}if(gL(j)){const J=new URL(j,Ht.origin);if(!D&&(J.username||J.password)){const F=RS(J.username),Pe=RS(J.password);D={username:F,password:Pe}}(J.username||J.password)&&(J.username="",J.password="",j=J.href)}if(D&&(k.delete("authorization"),k.set("Authorization","Basic "+btoa(vL((D.username||"")+":"+(D.password||""))))),C&&typeof j=="string"&&j.startsWith("data:")&&yL(j)>z)throw new ae("maxContentLength size of "+z+" exceeded",ae.ERR_BAD_RESPONSE,g,ne);if(L&&b!=="get"&&b!=="head"){const J=await x(k,v);if(typeof J=="number"&&isFinite(J)&&J>P)throw new ae("Request body larger than maxBodyLength limit",ae.ERR_BAD_REQUEST,g,ne)}if(E&&h&&b!=="get"&&b!=="head"&&(ie=await x(k,v))!==0){let J=new i(j,{method:"POST",body:v,duplex:"half"}),F;if($.isFormData(v)&&(F=J.headers.get("content-type"))&&k.setContentType(F),J.body){const[Pe,be]=CS(ie,rh(MS(E)));v=$S(J.body,PS,Pe,be)}}$.isString(M)||(M=M?"include":"omit");const ce=c&&"credentials"in i.prototype;if($.isFormData(v)){const J=k.getContentType();J&&/^multipart\/form-data/i.test(J)&&!/boundary=/i.test(J)&&k.delete("content-type")}k.set("User-Agent","axios/"+gx,!1);const de={...B,signal:Y,method:b.toUpperCase(),headers:cC(k.normalize()),body:v,duplex:"half",credentials:ce?M:void 0};ne=c&&new i(j,de);let Ve=await(c?G(ne,B):G(j,de));if(C){const J=$.toFiniteNumber(Ve.headers.get("content-length"));if(J!=null&&J>z)throw new ae("maxContentLength size of "+z+" exceeded",ae.ERR_BAD_RESPONSE,g,ne)}const ee=p&&(N==="stream"||N==="response");if(p&&Ve.body&&(_||C||ee&&X)){const J={};["status","statusText","headers"].forEach(mt=>{J[mt]=Ve[mt]});const F=$.toFiniteNumber(Ve.headers.get("content-length")),[Pe,be]=_&&CS(F,rh(MS(_),!0))||[];let at=0;const ct=mt=>{if(C&&(at=mt,at>z))throw new ae("maxContentLength size of "+z+" exceeded",ae.ERR_BAD_RESPONSE,g,ne);Pe&&Pe(mt)};Ve=new l($S(Ve.body,PS,ct,()=>{be&&be(),X&&X()}),J)}N=N||"text";let se=await y[$.findKey(y,N)||"text"](Ve,g);if(C&&!p&&!ee){let J;if(se!=null&&(typeof se.byteLength=="number"?J=se.byteLength:typeof se.size=="number"?J=se.size:typeof se=="string"&&(J=typeof r=="function"?new r().encode(se).byteLength:se.length)),typeof J=="number"&&J>z)throw new ae("maxContentLength size of "+z+" exceeded",ae.ERR_BAD_RESPONSE,g,ne)}return!ee&&X&&X(),await new Promise((J,F)=>{yC(J,F,{data:se,headers:nn.from(Ve.headers),status:Ve.status,statusText:Ve.statusText,config:g,request:ne})})}catch(D){if(X&&X(),Y&&Y.aborted&&Y.reason instanceof ae){const W=Y.reason;throw W.config=g,ne&&(W.request=ne),D!==W&&(W.cause=D),W}throw D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new ae("Network Error",ae.ERR_NETWORK,g,ne,D&&D.response),{cause:D.cause||D}):ae.from(D,D&&D.code,g,ne,D&&D.response)}}},xL=new Map,bC=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,i=[r,a,n];let l=i.length,o=l,c,u,f=xL;for(;o--;)c=i[o],u=f.get(c),u===void 0&&f.set(c,u=o?new Map:bL(t)),f=u;return u};bC();const bx={http:L6,xhr:fL,fetch:{get:bC}};$.forEach(bx,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const zS=e=>`- ${e}`,jL=e=>$.isFunction(e)||e===null||e===!1;function SL(e,t){e=$.isArray(e)?e:[e];const{length:n}=e;let r,a;const i={};for(let l=0;l<n;l++){r=e[l];let o;if(a=r,!jL(r)&&(a=bx[(o=String(r)).toLowerCase()],a===void 0))throw new ae(`Unknown adapter '${o}'`);if(a&&($.isFunction(a)||(a=a.get(t))))break;i[o||"#"+l]=a}if(!a){const l=Object.entries(i).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=n?l.length>1?`since :
`+l.map(zS).join(`
`):" "+zS(l[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return a}const xC={getAdapter:SL,adapters:bx};function Sy(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rf(null,e)}function LS(e){return Sy(e),e.headers=nn.from(e.headers),e.data=jy.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xC.getAdapter(e.adapter||nf.adapter,e)(e).then(function(r){Sy(e),e.response=r;try{r.data=jy.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=nn.from(r.headers),r},function(r){if(!mC(r)&&(Sy(e),r&&r.response)){e.response=r.response;try{r.response.data=jy.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=nn.from(r.response.headers)}return Promise.reject(r)})}const Lp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Lp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const BS={};Lp.transitional=function(t,n,r){function a(i,l){return"[Axios v"+gx+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,o)=>{if(t===!1)throw new ae(a(l," has been removed"+(n?" in "+n:"")),ae.ERR_DEPRECATED);return n&&!BS[l]&&(BS[l]=!0,console.warn(a(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,o):!0}};Lp.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function wL(e,t,n){if(typeof e!="object")throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],l=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(l){const o=e[i],c=o===void 0||l(o,i,e);if(c!==!0)throw new ae("option "+i+" must be "+c,ae.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ae("Unknown option "+i,ae.ERR_BAD_OPTION)}}const vd={assertOptions:wL,validators:Lp},sn=vd.validators;let il=class{constructor(t){this.defaults=t||{},this.interceptors={request:new NS,response:new NS}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=(()=>{if(!a.stack)return"";const l=a.stack.indexOf(`
`);return l===-1?"":a.stack.slice(l+1)})();try{if(!r.stack)r.stack=i;else if(i){const l=i.indexOf(`
`),o=l===-1?-1:i.indexOf(`
`,l+1),c=o===-1?"":i.slice(o+1);String(r.stack).endsWith(c)||(r.stack+=`
`+i)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=yl(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&vd.assertOptions(r,{silentJSONParsing:sn.transitional(sn.boolean),forcedJSONParsing:sn.transitional(sn.boolean),clarifyTimeoutError:sn.transitional(sn.boolean),legacyInterceptorReqResOrdering:sn.transitional(sn.boolean),advertiseZstdAcceptEncoding:sn.transitional(sn.boolean)},!1),a!=null&&($.isFunction(a)?n.paramsSerializer={serialize:a}:vd.assertOptions(a,{encode:sn.function,serialize:sn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),vd.assertOptions(n,{baseUrl:sn.spelling("baseURL"),withXsrfToken:sn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&$.merge(i.common,i[n.method]);i&&$.forEach(["delete","get","head","post","put","patch","query","common"],y=>{delete i[y]}),n.headers=nn.concat(l,i);const o=[];let c=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(n)===!1)return;c=c&&m.synchronous;const x=n.transitional||yx;x&&x.legacyInterceptorReqResOrdering?o.unshift(m.fulfilled,m.rejected):o.push(m.fulfilled,m.rejected)});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let f,d=0,h;if(!c){const y=[LS.bind(this),void 0];for(y.unshift(...o),y.push(...u),h=y.length,f=Promise.resolve(n);d<h;)f=f.then(y[d++],y[d++]);return f}h=o.length;let p=n;for(;d<h;){const y=o[d++],m=o[d++];try{p=y(p)}catch(x){m.call(this,x);break}}try{f=LS.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=vC(t.baseURL,t.url,t.allowAbsoluteUrls);return hC(n,t.params,t.paramsSerializer)}};$.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}))}});$.forEach(["post","put","patch","query"],function(t){function n(r){return function(i,l,o){return this.request(yl(o||{},{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 OL=class jC{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const l=new Promise(o=>{r.subscribe(o),i=o}).then(a);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,o){r.reason||(r.reason=new rf(i,l,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new jC(function(a){t=a}),cancel:t}}};function AL(e){return function(n){return e.apply(null,n)}}function EL(e){return $.isObject(e)&&e.isAxiosError===!0}const cg={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(cg).forEach(([e,t])=>{cg[t]=e});function SC(e){const t=new il(e),n=tC(il.prototype.request,t);return $.extend(n,il.prototype,t,{allOwnKeys:!0}),$.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return SC(yl(e,a))},n}const pt=SC(nf);pt.Axios=il;pt.CanceledError=rf;pt.CancelToken=OL;pt.isCancel=mC;pt.VERSION=gx;pt.toFormData=zp;pt.AxiosError=ae;pt.Cancel=pt.CanceledError;pt.all=function(t){return Promise.all(t)};pt.spread=AL;pt.isAxiosError=EL;pt.mergeConfig=yl;pt.AxiosHeaders=nn;pt.formToJSON=e=>pC($.isHTMLForm(e)?new FormData(e):e);pt.getAdapter=xC.getAdapter;pt.HttpStatusCode=cg;pt.default=pt;const{Axios:Bpe,AxiosError:Ipe,CanceledError:Upe,isCancel:Hpe,CancelToken:qpe,VERSION:Fpe,all:Gpe,Cancel:Ype,isAxiosError:Vpe,spread:Kpe,toFormData:Xpe,AxiosHeaders:Wpe,HttpStatusCode:Qpe,formToJSON:Zpe,getAdapter:Jpe,mergeConfig:eme,create:tme}=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 te=e=>e.then(t=>{var n;return(n=t.data)==null?void 0:n.data}),Nl=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}`:""},_L=(e,t)=>R.post("/api/cms/auth/login",{username:e,password:t}),wC=()=>R.get("/api/cms/auth/me"),TL=()=>te(R.get("/api/cms/dashboard/summary")),NL=()=>te(R.get("/api/cms/dashboard/workflow")),CL=()=>te(R.get("/api/cms/dashboard/top-content")),ML=(e={})=>te(R.get(`/api/cms/content${Nl(e)}`)),kL=e=>te(R.get(`/api/cms/content/${e}`)),$L=e=>te(R.get(`/api/cms/content/${e}/versions`)),PL=e=>te(R.post("/api/cms/content",e)),RL=(e,t)=>te(R.put(`/api/cms/content/${e}`,t)),DL=e=>R.delete(`/api/cms/content/${e}`),IS=(e,t)=>te(R.post(`/api/cms/content/${e}/transition`,t)),zL=(e,t)=>te(R.post(`/api/cms/content/${e}/rollback`,{version:t})),LL=(e={})=>te(R.get(`/api/cms/product${Nl(e)}`)),BL=e=>te(R.get(`/api/cms/product/${e}`)),IL=e=>te(R.post("/api/cms/product",e)),UL=(e,t)=>te(R.put(`/api/cms/product/${e}`,t)),HL=e=>te(R.post(`/api/cms/product/${e}/publish`)),qL=(e,t)=>te(R.post("/api/cms/product/ai-draft",{topic:e,tone:t})),FL=e=>te(R.get(`/api/cms/product/ocr-extract/${e}`)),GL=e=>R.delete(`/api/cms/product/${e}`),YL=(e={})=>te(R.get(`/api/cms/banner${Nl(e)}`)),VL=e=>te(R.post("/api/cms/banner",e)),KL=(e,t)=>te(R.put(`/api/cms/banner/${e}`,t)),XL=e=>R.delete(`/api/cms/banner/${e}`),WL=(e={})=>te(R.get(`/api/cms/media${Nl(e)}`)),QL=e=>te(R.post("/api/cms/media",e)),ZL=(e,t)=>te(R.post(`/api/cms/media/${e}/auto-tag`,{imageBase64:t})),JL=(e,t)=>te(R.put(`/api/cms/media/${e}/meta`,t)),e8=e=>R.delete(`/api/cms/media/${e}`),t8=(e="")=>te(R.get(`/api/cms/menu${e?`?menuType=${e}`:""}`)),n8=(e="")=>te(R.get(`/api/cms/menu/tree${e?`?menuType=${e}`:""}`)),r8=e=>te(R.post("/api/cms/menu",e)),a8=(e,t)=>te(R.put(`/api/cms/menu/${e}`,t)),i8=e=>R.delete(`/api/cms/menu/${e}`),l8=(e="")=>te(R.get(`/api/cms/menu/sitemap${e?`?baseUrl=${encodeURIComponent(e)}`:""}`)),o8=()=>te(R.get("/api/cms/theme")),s8=e=>te(R.post("/api/cms/theme",e)),c8=(e,t)=>te(R.put(`/api/cms/theme/${e}`,t)),u8=e=>te(R.post(`/api/cms/theme/${e}/activate`)),f8=e=>R.delete(`/api/cms/theme/${e}`),d8=()=>te(R.get("/api/cms/i18n/locales")),h8=(e="")=>te(R.get(`/api/cms/i18n/resources${e?`?locale=${e}`:""}`)),p8=e=>te(R.post("/api/cms/i18n/resources",e)),m8=e=>R.delete(`/api/cms/i18n/resources/${e}`),y8=(e,t)=>te(R.post("/api/cms/i18n/translate",{text:e,targetLocale:t})),v8=(e,t)=>te(R.post("/api/cms/i18n/translate-batch",{sourceLocale:e,targetLocale:t})),g8=()=>te(R.get("/api/cms/seo/meta")),b8=e=>te(R.post("/api/cms/seo/meta",e)),x8=(e,t)=>te(R.put(`/api/cms/seo/meta/${e}`,t)),j8=e=>R.delete(`/api/cms/seo/meta/${e}`),S8=()=>te(R.get("/api/cms/seo/redirect")),w8=e=>te(R.post("/api/cms/seo/redirect",e)),O8=e=>R.delete(`/api/cms/seo/redirect/${e}`),A8=(e="")=>te(R.get(`/api/cms/seo/robots${e?`?baseUrl=${encodeURIComponent(e)}`:""}`)),E8=(e,t)=>te(R.post("/api/cms/seo/ai-suggest",{title:e,body:t})),_8=()=>te(R.get("/api/cms/form")),T8=e=>te(R.post("/api/cms/form",e)),N8=(e,t)=>te(R.put(`/api/cms/form/${e}`,t)),C8=e=>R.delete(`/api/cms/form/${e}`),M8=(e,t=!1)=>te(R.get(`/api/cms/form/${e}/submissions${t?"?includeSpam=true":""}`)),k8=()=>te(R.get("/api/cms/channel")),$8=e=>te(R.post("/api/cms/channel",e)),P8=(e,t)=>te(R.put(`/api/cms/channel/${e}`,t)),R8=e=>R.delete(`/api/cms/channel/${e}`),D8=(e={})=>te(R.get(`/api/cms/ugc${Nl(e)}`)),z8=()=>te(R.get("/api/cms/ugc/queue")),US=(e,t,n="")=>te(R.put(`/api/cms/ugc/${e}/moderate`,{status:t,reason:n})),L8=e=>te(R.get(`/api/cms/ugc/review-summary${e?`?targetRef=${encodeURIComponent(e)}`:""}`)),B8=e=>R.delete(`/api/cms/ugc/${e}`),I8=(e={})=>te(R.get(`/api/cms/member${Nl(e)}`)),U8=e=>te(R.post("/api/cms/member",e)),H8=(e,t)=>te(R.put(`/api/cms/member/${e}`,t)),q8=e=>te(R.get(`/api/cms/member/${e}/crm-insight`)),F8=e=>R.delete(`/api/cms/member/${e}`),G8=(e=10)=>te(R.get(`/api/cms/analytics/top?limit=${e}`)),Y8=()=>te(R.get("/api/cms/analytics/summary")),OC=()=>te(R.get("/api/cms/ai/status")),AC=(e,t,n)=>te(R.post("/api/cms/ai/draft",{kind:e,topic:t,tone:n})),EC=(e,t)=>te(R.post("/api/cms/ai/seo",{title:e,body:t})),V8=(e,t)=>te(R.post("/api/cms/ai/translate",{text:e,targetLocale:t})),K8=e=>te(R.post("/api/cms/ai/review-summary",{reviews:e})),X8=e=>te(R.post("/api/cms/ai/search-keywords",{query:e})),W8=e=>te(R.post("/api/cms/ai/moderate",{text:e})),Q8=()=>te(R.get("/api/cms/rag/toggles")),Z8=(e,t)=>te(R.put(`/api/cms/rag/toggles/${encodeURIComponent(e)}`,{value:t})),J8=(e,t,n)=>te(R.post("/api/cms/rag/content-draft",{kind:e,topic:t,tone:n})),eB=e=>te(R.post("/api/cms/rag/moderate",{text:e})),tB=()=>R.get("/api/admin/users"),nB=e=>R.post("/api/admin/users",e),rB=(e,t)=>R.put(`/api/admin/users/${e}/role`,{role:t}),aB=(e,t)=>R.put(`/api/admin/users/${e}/active`,{active:t}),iB=(e,t)=>R.put(`/api/admin/users/${e}/password`,{password:t}),lB=e=>R.delete(`/api/admin/users/${e}`),oB=(e="",t="",n=100)=>R.get(`/api/admin/audit${Nl({action:e,actor:t,limit:n})}`),sB=()=>R.get("/api/admin/settings"),cB=(e,t)=>R.put(`/api/admin/settings/${encodeURIComponent(e)}`,{value:t});function uB(){const e=Ts(),t=localStorage.getItem("cms_user")||"admin",n=localStorage.getItem("cms_role")||"",[r,a]=O.useState(null);O.useEffect(()=>{OC().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 s.jsxs("header",{className:"h-16 bg-panel border-b border-edge flex items-center justify-between px-6",children:[s.jsx("div",{className:"text-sm text-slate-400",children:"AI 콘텐츠 관리 시스템 · 헤드리스 CMS · Ollama 온프레미스"}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsxs("span",{className:`flex items-center gap-1.5 text-xs px-2 py-1 rounded-md border ${r?"text-accent border-accent/30 bg-accent/10":"text-slate-400 border-edge bg-card"}`,children:[s.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${r?"bg-accent":"bg-slate-500"}`}),"AI ",r===null?"확인 중":r?"온라인":"폴백"]}),s.jsxs("span",{className:"flex items-center gap-1.5 text-sm text-slate-300",children:[s.jsx(F5,{size:18})," ",t,n&&s.jsxs("span",{className:"text-[11px] text-slate-500",children:["(",n,")"]})]}),s.jsxs("button",{onClick:i,className:"flex items-center gap-1.5 text-sm text-slate-400 hover:text-brand",children:[s.jsx(az,{size:16})," 로그아웃"]})]})]})}function fB(){const e=localStorage.getItem("cms_token");return O.useEffect(()=>{e&&wC().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?s.jsxs("div",{className:"flex h-screen bg-ink",children:[s.jsx(Pz,{}),s.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[s.jsx(uB,{}),s.jsx("main",{className:"flex-1 overflow-auto p-6",children:s.jsx(v4,{})})]})]}):s.jsx(wN,{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)?s.jsx(s.Fragment,{children:t}):s.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center",children:[s.jsx(dx,{size:48,className:"text-rose-400 mb-4"}),s.jsx("h2",{className:"text-lg font-bold mb-1",children:"접근 권한이 없습니다"}),s.jsxs("p",{className:"text-sm text-slate-400",children:["이 화면은 ",s.jsx("b",{className:"text-brand",children:e})," 이상 권한이 필요합니다. (현재: ",n,")"]})]})}const dB=(e,t)=>R.post("/api/cms/auth/verify",{verifyToken:e,code:t}),hB=e=>R.post("/api/auth/signup",e),pB=e=>R.post("/api/auth/find-id",e),mB=e=>R.post("/api/auth/reset-password",e),yB=e=>R.post("/api/messages",e),vB=e=>R.get("/api/messages/sent",{params:e}),gB=e=>R.get(`/api/messages/sent/${e}`),bB=e=>R.get("/api/messages/received",{params:e}),xB=e=>R.get(`/api/messages/received/${e}`),jB=e=>R.get("/api/schedules",{params:e}),SB=e=>R.post("/api/schedules",e),wB=e=>R.get(`/api/schedules/${e}`),OB=e=>R.delete(`/api/schedules/${e}`),AB=e=>R.get("/api/worklogs",{params:e}),EB=e=>R.get("/api/worklogs/dashboard/progress",{params:e}),_B=e=>R.post("/api/worklogs",e),TB=e=>R.get(`/api/worklogs/${e}`),NB=e=>R.delete(`/api/worklogs/${e}`),CB=(e,t)=>R.post(`/api/worklogs/${e}/comments`,{cmtContent:t}),MB=e=>R.get("/api/stats/personal-work",{params:e}),kB=e=>R.get("/api/stats/company-work",{params:e}),$B=(e,t=0,n=100)=>R.get("/api/system/roles",{params:{...e?{keyword:e}:{},page:t,size:n}}),PB=e=>R.post("/api/system/roles",e),RB=(e,t)=>R.put(`/api/system/roles/${encodeURIComponent(e)}`,t),DB=e=>R.delete("/api/system/roles",{data:{ids:e}}),zB=(e=0,t=100)=>R.get("/api/system/role-menus",{params:{page:e,size:t}}),LB=e=>R.get(`/api/system/roles/${encodeURIComponent(e)}/menus`),BB=(e,t)=>R.put(`/api/system/roles/${encodeURIComponent(e)}/menus`,{menus:t}),IB=(e,t=0,n=100)=>R.get("/api/system/codes",{params:{...e?{keyword:e}:{},page:t,size:n}}),UB=e=>R.get(`/api/system/codes/${encodeURIComponent(e)}`),HB=e=>R.post("/api/system/codes",e),qB=(e,t)=>R.put(`/api/system/codes/${encodeURIComponent(e)}`,t),FB=e=>R.delete(`/api/system/codes/${encodeURIComponent(e)}`),GB=(e=0,t=200)=>R.get("/api/system/menus",{params:{page:e,size:t}}),YB=e=>R.get("/api/system/menus/search",{params:e?{keyword:e}:{}}),VB=e=>R.post("/api/system/menus",e),KB=(e,t)=>R.put(`/api/system/menus/${encodeURIComponent(e)}`,t),XB=e=>R.delete("/api/system/menus",{data:{ids:e}}),WB=(e,t=0,n=200)=>R.get("/api/system/depts",{params:{...e?{keyword:e}:{},page:t,size:n}}),QB=e=>R.post("/api/system/depts",e),ZB=(e,t)=>R.put(`/api/system/depts/${encodeURIComponent(e)}`,t),JB=e=>R.delete(`/api/system/depts/${encodeURIComponent(e)}`),eI=(e,t=0,n=200)=>R.get("/api/system/companies",{params:{...e?{keyword:e}:{},page:t,size:n}}),tI=e=>R.post("/api/system/companies",e),nI=(e,t)=>R.put(`/api/system/companies/${encodeURIComponent(e)}`,t),rI=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 aI({kind:e,onClose:t}){return e?s.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-4",onClick:t,children:s.jsxs("div",{className:"w-[360px] bg-panel border border-edge rounded-2xl p-6",onClick:n=>n.stopPropagation(),children:[e==="signup"&&s.jsx(iI,{onClose:t}),e==="findId"&&s.jsx(lI,{onClose:t}),e==="reset"&&s.jsx(oI,{onClose:t})]})}):null}function xx({title:e}){return s.jsx("h3",{className:"text-base font-bold mb-4 text-slate-100",children:e})}function jx({onClose:e}){return s.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 iI({onClose:e}){const[t,n]=O.useState(""),[r,a]=O.useState(""),[i,l]=O.useState(""),[o,c]=O.useState(""),[u,f]=O.useState(""),[d,h]=O.useState(!1),[p,y]=O.useState(!1),m=async x=>{var g;x.preventDefault(),f(""),y(!0);try{const b=((g=(await hB({username:t,password:r,displayName:i,email:o})).data)==null?void 0:g.data)||{};h(!!b.success),f(b.message||(b.success?"가입 신청이 접수되었습니다.":"가입 신청에 실패했습니다."))}catch{h(!1),f("가입 신청에 실패했습니다. 입력값을 확인하세요.")}finally{y(!1)}};return s.jsxs("form",{onSubmit:m,children:[s.jsx(xx,{title:"운영자 회원가입"}),s.jsx("p",{className:"text-[11px] text-slate-500 mb-4",children:"가입 후 관리자 승인을 거쳐야 로그인할 수 있습니다."}),s.jsx("label",{className:Ja,children:"아이디"}),s.jsx("input",{value:t,onChange:x=>n(x.target.value),className:Za,required:!0}),s.jsx("label",{className:Ja,children:"비밀번호"}),s.jsx("input",{type:"password",value:r,onChange:x=>a(x.target.value),className:Za,required:!0}),s.jsx("label",{className:Ja,children:"이름(표시명)"}),s.jsx("input",{value:i,onChange:x=>l(x.target.value),className:Za}),s.jsx("label",{className:Ja,children:"이메일"}),s.jsx("input",{type:"email",value:o,onChange:x=>c(x.target.value),className:Za,required:!0}),u&&s.jsx("p",{className:`text-xs mb-3 ${d?"text-emerald-400":"text-rose-400"}`,children:u}),!d&&s.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?"신청 중…":"가입 신청"}),s.jsx(jx,{onClose:e})]})}function lI({onClose:e}){const[t,n]=O.useState(""),[r,a]=O.useState(""),[i,l]=O.useState(null),[o,c]=O.useState(""),[u,f]=O.useState(!1),d=async h=>{var p;h.preventDefault(),c(""),l(null),f(!0);try{const m=((p=(await pB({displayName:t,email:r})).data)==null?void 0:p.data)||{};m.found?l(m.maskedUsername||""):c("일치하는 계정을 찾지 못했습니다. 이름·이메일을 확인하세요.")}catch{c("조회에 실패했습니다.")}finally{f(!1)}};return s.jsxs("form",{onSubmit:d,children:[s.jsx(xx,{title:"아이디 찾기"}),s.jsx("p",{className:"text-[11px] text-slate-500 mb-4",children:"가입 시 등록한 이름과 이메일로 아이디를 찾습니다."}),s.jsx("label",{className:Ja,children:"이름(표시명)"}),s.jsx("input",{value:t,onChange:h=>n(h.target.value),className:Za,required:!0}),s.jsx("label",{className:Ja,children:"이메일"}),s.jsx("input",{type:"email",value:r,onChange:h=>a(h.target.value),className:Za,required:!0}),i!==null&&s.jsxs("p",{className:"text-xs mb-3 text-emerald-400",children:["회원님의 아이디: ",s.jsx("span",{className:"font-mono tracking-wider",children:i})]}),o&&s.jsx("p",{className:"text-rose-400 text-xs mb-3",children:o}),s.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?"조회 중…":"아이디 찾기"}),s.jsx(jx,{onClose:e})]})}function oI({onClose:e}){const[t,n]=O.useState(""),[r,a]=O.useState(""),[i,l]=O.useState(""),[o,c]=O.useState(!1),[u,f]=O.useState(!1),d=async h=>{var p;h.preventDefault(),l(""),f(!0);try{const m=((p=(await mB({username:t,email:r})).data)==null?void 0:p.data)||{};c(!!m.success),l(m.message||"임시 비밀번호를 이메일로 발송했습니다.")}catch{c(!1),l("요청에 실패했습니다. 입력값을 확인하세요.")}finally{f(!1)}};return s.jsxs("form",{onSubmit:d,children:[s.jsx(xx,{title:"비밀번호 초기화"}),s.jsx("p",{className:"text-[11px] text-slate-500 mb-4",children:"아이디와 이메일을 확인 후 임시 비밀번호를 메일로 보내드립니다."}),s.jsx("label",{className:Ja,children:"아이디"}),s.jsx("input",{value:t,onChange:h=>n(h.target.value),className:Za,required:!0}),s.jsx("label",{className:Ja,children:"이메일"}),s.jsx("input",{type:"email",value:r,onChange:h=>a(h.target.value),className:Za,required:!0}),i&&s.jsx("p",{className:`text-xs mb-3 ${o?"text-emerald-400":"text-rose-400"}`,children:i}),!o&&s.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?"요청 중…":"임시 비밀번호 발송"}),s.jsx(jx,{onClose:e})]})}function sI(){const[e,t]=O.useState("login"),[n,r]=O.useState("admin"),[a,i]=O.useState(""),[l,o]=O.useState(""),[c,u]=O.useState(""),[f,d]=O.useState(""),[h,p]=O.useState(""),[y,m]=O.useState(!1),[x,g]=O.useState(null),j=Ts(),b=async w=>{var A;localStorage.setItem("cms_token",w);try{const E=((A=(await wC()).data)==null?void 0:A.data)||{};E.role&&localStorage.setItem("cms_role",E.role),E.username&&localStorage.setItem("cms_user",E.username)}catch{}j("/dashboard")},v=async w=>{var A;w.preventDefault(),p(""),m(!0);try{const E=((A=(await _L(n,a)).data)==null?void 0:A.data)||{};if(E.twofa==="true")u(E.verifyToken||""),d(E.maskedEmail||""),t("verify");else{const N=E.token;if(!N)throw new Error("no token");await b(N)}}catch{p("로그인 실패 — 아이디/비밀번호를 확인하세요.")}finally{m(!1)}},S=async w=>{var A,_;w.preventDefault(),p(""),m(!0);try{const N=(_=(A=(await dB(c,l.trim())).data)==null?void 0:A.data)==null?void 0:_.token;if(!N)throw new Error("no token");await b(N)}catch{p("인증 실패 — 코드가 올바르지 않거나 만료되었습니다.")}finally{m(!1)}};return s.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-ink",children:[s.jsxs("form",{onSubmit:e==="login"?v:S,className:"w-[360px] bg-panel border border-edge rounded-2xl p-8",children:[s.jsxs("div",{className:"flex items-center gap-2 justify-center mb-6",children:[s.jsx("img",{src:"/login.png",alt:"GUARDiA",style:{height:36,width:"auto"},onError:w=>{w.target.style.display="none"}}),s.jsx("span",{className:"text-xl font-bold",children:"GUARDiA CMS"})]}),s.jsx("p",{className:"text-center text-sm text-slate-400 mb-6",children:"AI 콘텐츠 관리 시스템"}),e==="login"?s.jsxs(s.Fragment,{children:[s.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"아이디"}),s.jsx("input",{value:n,onChange:w=>r(w.target.value),className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none"}),s.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"비밀번호"}),s.jsx("input",{type:"password",value:a,onChange:w=>i(w.target.value),className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none"}),h&&s.jsx("p",{className:"text-rose-400 text-xs mb-3",children:h}),s.jsx("button",{disabled:y,className:"w-full py-2.5 rounded-lg bg-brand text-ink font-semibold hover:bg-brand/90 disabled:opacity-60",children:y?"로그인 중…":"로그인"}),s.jsx("p",{className:"text-center text-[11px] text-slate-500 mt-4",children:"admin / editor / author · admin123"}),s.jsxs("div",{className:"flex items-center justify-center gap-2 text-[11px] text-slate-400 mt-3",children:[s.jsx("button",{type:"button",onClick:()=>g("signup"),className:"hover:text-brand",children:"회원가입"}),s.jsx("span",{className:"text-slate-600",children:"|"}),s.jsx("button",{type:"button",onClick:()=>g("findId"),className:"hover:text-brand",children:"아이디 찾기"}),s.jsx("span",{className:"text-slate-600",children:"|"}),s.jsx("button",{type:"button",onClick:()=>g("reset"),className:"hover:text-brand",children:"비밀번호 초기화"})]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("p",{className:"text-center text-xs text-slate-400 mb-4",children:["2차 인증 코드를 입력하세요",f?` (${f} 발송)`:"","."]}),s.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"인증 코드"}),s.jsx("input",{value:l,onChange:w=>o(w.target.value),inputMode:"numeric",maxLength:6,autoFocus:!0,placeholder:"6자리 코드",className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm tracking-[0.3em] text-center focus:border-brand outline-none"}),h&&s.jsx("p",{className:"text-rose-400 text-xs mb-3",children:h}),s.jsx("button",{disabled:y,className:"w-full py-2.5 rounded-lg bg-brand text-ink font-semibold hover:bg-brand/90 disabled:opacity-60",children:y?"확인 중…":"인증 확인"}),s.jsx("button",{type:"button",onClick:()=>{t("login"),o(""),p("")},className:"w-full py-2 mt-2 rounded-lg text-slate-400 text-xs hover:text-slate-200",children:"← 로그인으로 돌아가기"})]})]}),s.jsx(aI,{kind:x,onClose:()=>g(null)})]})}function _C(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=_C(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=_C(e))&&(r&&(r+=" "),r+=t);return r}var cI=Array.isArray,yn=cI,uI=typeof yf=="object"&&yf&&yf.Object===Object&&yf,TC=uI,fI=TC,dI=typeof self=="object"&&self&&self.Object===Object&&self,hI=fI||dI||Function("return this")(),Hr=hI,pI=Hr,mI=pI.Symbol,af=mI,HS=af,NC=Object.prototype,yI=NC.hasOwnProperty,vI=NC.toString,Js=HS?HS.toStringTag:void 0;function gI(e){var t=yI.call(e,Js),n=e[Js];try{e[Js]=void 0;var r=!0}catch{}var a=vI.call(e);return r&&(t?e[Js]=n:delete e[Js]),a}var bI=gI,xI=Object.prototype,jI=xI.toString;function SI(e){return jI.call(e)}var wI=SI,qS=af,OI=bI,AI=wI,EI="[object Null]",_I="[object Undefined]",FS=qS?qS.toStringTag:void 0;function TI(e){return e==null?e===void 0?_I:EI:FS&&FS in Object(e)?OI(e):AI(e)}var Aa=TI;function NI(e){return e!=null&&typeof e=="object"}var Ea=NI,CI=Aa,MI=Ea,kI="[object Symbol]";function $I(e){return typeof e=="symbol"||MI(e)&&CI(e)==kI}var Ms=$I,PI=yn,RI=Ms,DI=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zI=/^\w*$/;function LI(e,t){if(PI(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||RI(e)?!0:zI.test(e)||!DI.test(e)||t!=null&&e in Object(t)}var Sx=LI;function BI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var xi=BI;const ks=$e(xi);var II=Aa,UI=xi,HI="[object AsyncFunction]",qI="[object Function]",FI="[object GeneratorFunction]",GI="[object Proxy]";function YI(e){if(!UI(e))return!1;var t=II(e);return t==qI||t==FI||t==HI||t==GI}var wx=YI;const fe=$e(wx);var VI=Hr,KI=VI["__core-js_shared__"],XI=KI,wy=XI,GS=function(){var e=/[^.]+$/.exec(wy&&wy.keys&&wy.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function WI(e){return!!GS&&GS in e}var QI=WI,ZI=Function.prototype,JI=ZI.toString;function eU(e){if(e!=null){try{return JI.call(e)}catch{}try{return e+""}catch{}}return""}var CC=eU,tU=wx,nU=QI,rU=xi,aU=CC,iU=/[\\^$.*+?()[\]{}|]/g,lU=/^\[object .+?Constructor\]$/,oU=Function.prototype,sU=Object.prototype,cU=oU.toString,uU=sU.hasOwnProperty,fU=RegExp("^"+cU.call(uU).replace(iU,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dU(e){if(!rU(e)||nU(e))return!1;var t=tU(e)?fU:lU;return t.test(aU(e))}var hU=dU;function pU(e,t){return e==null?void 0:e[t]}var mU=pU,yU=hU,vU=mU;function gU(e,t){var n=vU(e,t);return yU(n)?n:void 0}var Cl=gU,bU=Cl,xU=bU(Object,"create"),Bp=xU,YS=Bp;function jU(){this.__data__=YS?YS(null):{},this.size=0}var SU=jU;function wU(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var OU=wU,AU=Bp,EU="__lodash_hash_undefined__",_U=Object.prototype,TU=_U.hasOwnProperty;function NU(e){var t=this.__data__;if(AU){var n=t[e];return n===EU?void 0:n}return TU.call(t,e)?t[e]:void 0}var CU=NU,MU=Bp,kU=Object.prototype,$U=kU.hasOwnProperty;function PU(e){var t=this.__data__;return MU?t[e]!==void 0:$U.call(t,e)}var RU=PU,DU=Bp,zU="__lodash_hash_undefined__";function LU(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=DU&&t===void 0?zU:t,this}var BU=LU,IU=SU,UU=OU,HU=CU,qU=RU,FU=BU;function $s(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])}}$s.prototype.clear=IU;$s.prototype.delete=UU;$s.prototype.get=HU;$s.prototype.has=qU;$s.prototype.set=FU;var GU=$s;function YU(){this.__data__=[],this.size=0}var VU=YU;function KU(e,t){return e===t||e!==e&&t!==t}var Ox=KU,XU=Ox;function WU(e,t){for(var n=e.length;n--;)if(XU(e[n][0],t))return n;return-1}var Ip=WU,QU=Ip,ZU=Array.prototype,JU=ZU.splice;function e7(e){var t=this.__data__,n=QU(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():JU.call(t,n,1),--this.size,!0}var t7=e7,n7=Ip;function r7(e){var t=this.__data__,n=n7(t,e);return n<0?void 0:t[n][1]}var a7=r7,i7=Ip;function l7(e){return i7(this.__data__,e)>-1}var o7=l7,s7=Ip;function c7(e,t){var n=this.__data__,r=s7(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var u7=c7,f7=VU,d7=t7,h7=a7,p7=o7,m7=u7;function Ps(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])}}Ps.prototype.clear=f7;Ps.prototype.delete=d7;Ps.prototype.get=h7;Ps.prototype.has=p7;Ps.prototype.set=m7;var Up=Ps,y7=Cl,v7=Hr,g7=y7(v7,"Map"),Ax=g7,VS=GU,b7=Up,x7=Ax;function j7(){this.size=0,this.__data__={hash:new VS,map:new(x7||b7),string:new VS}}var S7=j7;function w7(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var O7=w7,A7=O7;function E7(e,t){var n=e.__data__;return A7(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Hp=E7,_7=Hp;function T7(e){var t=_7(this,e).delete(e);return this.size-=t?1:0,t}var N7=T7,C7=Hp;function M7(e){return C7(this,e).get(e)}var k7=M7,$7=Hp;function P7(e){return $7(this,e).has(e)}var R7=P7,D7=Hp;function z7(e,t){var n=D7(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var L7=z7,B7=S7,I7=N7,U7=k7,H7=R7,q7=L7;function Rs(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])}}Rs.prototype.clear=B7;Rs.prototype.delete=I7;Rs.prototype.get=U7;Rs.prototype.has=H7;Rs.prototype.set=q7;var Ex=Rs,MC=Ex,F7="Expected a function";function _x(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(F7);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(_x.Cache||MC),n}_x.Cache=MC;var kC=_x;const G7=$e(kC);var Y7=kC,V7=500;function K7(e){var t=Y7(e,function(r){return n.size===V7&&n.clear(),r}),n=t.cache;return t}var X7=K7,W7=X7,Q7=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z7=/\\(\\)?/g,J7=W7(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Q7,function(n,r,a,i){t.push(a?i.replace(Z7,"$1"):r||n)}),t}),e9=J7;function t9(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 Tx=t9,KS=af,n9=Tx,r9=yn,a9=Ms,XS=KS?KS.prototype:void 0,WS=XS?XS.toString:void 0;function $C(e){if(typeof e=="string")return e;if(r9(e))return n9(e,$C)+"";if(a9(e))return WS?WS.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var i9=$C,l9=i9;function o9(e){return e==null?"":l9(e)}var PC=o9,s9=yn,c9=Sx,u9=e9,f9=PC;function d9(e,t){return s9(e)?e:c9(e,t)?[e]:u9(f9(e))}var RC=d9,h9=Ms;function p9(e){if(typeof e=="string"||h9(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var qp=p9,m9=RC,y9=qp;function v9(e,t){t=m9(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[y9(t[n++])];return n&&n==r?e:void 0}var Nx=v9,g9=Nx;function b9(e,t,n){var r=e==null?void 0:g9(e,t);return r===void 0?n:r}var DC=b9;const Mn=$e(DC);function x9(e){return e==null}var j9=x9;const me=$e(j9);var S9=Aa,w9=yn,O9=Ea,A9="[object String]";function E9(e){return typeof e=="string"||!w9(e)&&O9(e)&&S9(e)==A9}var _9=E9;const vl=$e(_9);var zC={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 Cx=Symbol.for("react.element"),Mx=Symbol.for("react.portal"),Fp=Symbol.for("react.fragment"),Gp=Symbol.for("react.strict_mode"),Yp=Symbol.for("react.profiler"),Vp=Symbol.for("react.provider"),Kp=Symbol.for("react.context"),T9=Symbol.for("react.server_context"),Xp=Symbol.for("react.forward_ref"),Wp=Symbol.for("react.suspense"),Qp=Symbol.for("react.suspense_list"),Zp=Symbol.for("react.memo"),Jp=Symbol.for("react.lazy"),N9=Symbol.for("react.offscreen"),LC;LC=Symbol.for("react.module.reference");function ar(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Cx:switch(e=e.type,e){case Fp:case Yp:case Gp:case Wp:case Qp:return e;default:switch(e=e&&e.$$typeof,e){case T9:case Kp:case Xp:case Jp:case Zp:case Vp:return e;default:return t}}case Mx:return t}}}ze.ContextConsumer=Kp;ze.ContextProvider=Vp;ze.Element=Cx;ze.ForwardRef=Xp;ze.Fragment=Fp;ze.Lazy=Jp;ze.Memo=Zp;ze.Portal=Mx;ze.Profiler=Yp;ze.StrictMode=Gp;ze.Suspense=Wp;ze.SuspenseList=Qp;ze.isAsyncMode=function(){return!1};ze.isConcurrentMode=function(){return!1};ze.isContextConsumer=function(e){return ar(e)===Kp};ze.isContextProvider=function(e){return ar(e)===Vp};ze.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Cx};ze.isForwardRef=function(e){return ar(e)===Xp};ze.isFragment=function(e){return ar(e)===Fp};ze.isLazy=function(e){return ar(e)===Jp};ze.isMemo=function(e){return ar(e)===Zp};ze.isPortal=function(e){return ar(e)===Mx};ze.isProfiler=function(e){return ar(e)===Yp};ze.isStrictMode=function(e){return ar(e)===Gp};ze.isSuspense=function(e){return ar(e)===Wp};ze.isSuspenseList=function(e){return ar(e)===Qp};ze.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Fp||e===Yp||e===Gp||e===Wp||e===Qp||e===N9||typeof e=="object"&&e!==null&&(e.$$typeof===Jp||e.$$typeof===Zp||e.$$typeof===Vp||e.$$typeof===Kp||e.$$typeof===Xp||e.$$typeof===LC||e.getModuleId!==void 0)};ze.typeOf=ar;zC.exports=ze;var C9=zC.exports,M9=Aa,k9=Ea,$9="[object Number]";function P9(e){return typeof e=="number"||k9(e)&&M9(e)==$9}var BC=P9;const R9=$e(BC);var D9=BC;function z9(e){return D9(e)&&e!=+e}var L9=z9;const Ds=$e(L9);var Jt=function(t){return t===0?0:t>0?1:-1},qi=function(t){return vl(t)&&t.indexOf("%")===t.length-1},V=function(t){return R9(t)&&!Ds(t)},B9=function(t){return me(t)},_t=function(t){return V(t)||vl(t)},I9=0,Ml=function(t){var n=++I9;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(!V(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 Ds(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},U9=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 V(t)&&V(n)?function(r){return t+r*(n-t)}:function(){return n}};function ah(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Mn(r,t))===n})}var H9=function(t,n){return V(t)&&V(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 jo(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 ug(e){"@babel/helpers - typeof";return ug=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},ug(e)}var q9=["viewBox","children"],F9=["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"],QS=["points","pathLength"],Oy={svg:q9,polygon:QS,polyline:QS},kx=["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"],ih=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(O.isValidElement(t)&&(r=t.props),!ks(r))return null;var a={};return Object.keys(r).forEach(function(i){kx.includes(i)&&(a[i]=n||function(l){return r[i](r,l)})}),a},G9=function(t,n,r){return function(a){return t(n,r,a),null}},gl=function(t,n,r){if(!ks(t)||ug(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var l=t[i];kx.includes(i)&&typeof l=="function"&&(a||(a={}),a[i]=G9(l,n,r))}),a},Y9=["children"],V9=["children"];function ZS(e,t){if(e==null)return{};var n=K9(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 K9(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 fg(e){"@babel/helpers - typeof";return fg=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},fg(e)}var JS={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":""},ew=null,Ay=null,$x=function e(t){if(t===ew&&Array.isArray(Ay))return Ay;var n=[];return O.Children.forEach(t,function(r){me(r)||(C9.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Ay=n,ew=t,n};function kn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return da(a)}):r=[da(t)],$x(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 tw=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!V(r)||r<=0||!V(a)||a<=0)},X9=["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"],W9=function(t){return t&&t.type&&vl(t.type)&&X9.indexOf(t.type)>=0},IC=function(t){return t&&fg(t)==="object"&&"clipDot"in t},Q9=function(t,n,r,a){var i,l=(i=Oy==null?void 0:Oy[a])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!fe(t)&&(a&&l.includes(n)||F9.includes(n))||r&&kx.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),!ks(a))return null;var i={};return Object.keys(a).forEach(function(l){var o;Q9((o=a)===null||o===void 0?void 0:o[l],l,n,r)&&(i[l]=a[l])}),i},dg=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 nw(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(!nw(i,l))return!1}return!0},nw=function(t,n){if(me(t)&&me(n))return!0;if(!me(t)&&!me(n)){var r=t.props||{},a=r.children,i=ZS(r,Y9),l=n.props||{},o=l.children,c=ZS(l,V9);return a&&o?jo(i,c)&&dg(a,o):!a&&!o?jo(i,c):!1}return!1},rw=function(t,n){var r=[],a={};return $x(t).forEach(function(i,l){if(W9(i))r.push(i);else if(i){var o=da(i.type),c=n[o]||{},u=c.handler,f=c.once;if(u&&(!f||!a[o])){var d=u(i,o,l);r.push(d),a[o]=!0}}}),r},Z9=function(t){var n=t&&t.type;return n&&JS[n]?JS[n]:null},J9=function(t,n){return $x(n).indexOf(t)},eH=["children","width","height","viewBox","className","style","title","desc"];function hg(){return hg=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},hg.apply(this,arguments)}function tH(e,t){if(e==null)return{};var n=nH(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 nH(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){var t=e.children,n=e.width,r=e.height,a=e.viewBox,i=e.className,l=e.style,o=e.title,c=e.desc,u=tH(e,eH),f=a||{width:n,height:r,x:0,y:0},d=ye("recharts-surface",i);return T.createElement("svg",hg({},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)}),T.createElement("title",null,o),T.createElement("desc",null,c),t)}var rH=["children","className"];function mg(){return mg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mg.apply(this,arguments)}function aH(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}var we=T.forwardRef(function(e,t){var n=e.children,r=e.className,a=aH(e,rH),i=ye("recharts-layer",r);return T.createElement("g",mg({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 lH(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 oH=lH,sH=oH;function cH(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:sH(e,t,n)}var uH=cH,fH="\\ud800-\\udfff",dH="\\u0300-\\u036f",hH="\\ufe20-\\ufe2f",pH="\\u20d0-\\u20ff",mH=dH+hH+pH,yH="\\ufe0e\\ufe0f",vH="\\u200d",gH=RegExp("["+vH+fH+mH+yH+"]");function bH(e){return gH.test(e)}var UC=bH;function xH(e){return e.split("")}var jH=xH,HC="\\ud800-\\udfff",SH="\\u0300-\\u036f",wH="\\ufe20-\\ufe2f",OH="\\u20d0-\\u20ff",AH=SH+wH+OH,EH="\\ufe0e\\ufe0f",_H="["+HC+"]",yg="["+AH+"]",vg="\\ud83c[\\udffb-\\udfff]",TH="(?:"+yg+"|"+vg+")",qC="[^"+HC+"]",FC="(?:\\ud83c[\\udde6-\\uddff]){2}",GC="[\\ud800-\\udbff][\\udc00-\\udfff]",NH="\\u200d",YC=TH+"?",VC="["+EH+"]?",CH="(?:"+NH+"(?:"+[qC,FC,GC].join("|")+")"+VC+YC+")*",MH=VC+YC+CH,kH="(?:"+[qC+yg+"?",yg,FC,GC,_H].join("|")+")",$H=RegExp(vg+"(?="+vg+")|"+kH+MH,"g");function PH(e){return e.match($H)||[]}var RH=PH,DH=jH,zH=UC,LH=RH;function BH(e){return zH(e)?LH(e):DH(e)}var IH=BH,UH=uH,HH=UC,qH=IH,FH=PC;function GH(e){return function(t){t=FH(t);var n=HH(t)?qH(t):void 0,r=n?n[0]:t.charAt(0),a=n?UH(n,1).join(""):t.slice(1);return r[e]()+a}}var YH=GH,VH=YH,KH=VH("toUpperCase"),XH=KH;const em=$e(XH);function Fe(e){return function(){return e}}const KC=Math.cos,lh=Math.sin,xr=Math.sqrt,oh=Math.PI,tm=2*oh,gg=Math.PI,bg=2*gg,Li=1e-6,WH=bg-Li;function XC(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function QH(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return XC;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 ZH{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?XC:QH(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,l){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+l}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let l=this._x1,o=this._y1,c=r-t,u=a-n,f=l-t,d=o-n,h=f*f+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>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-o,m=c*c+u*u,x=p*p+y*y,g=Math.sqrt(m),j=Math.sqrt(h),b=i*Math.tan((gg-Math.acos((m+h-x)/(2*g*j)))/2),v=b/j,S=b/g;Math.abs(v-1)>Li&&this._append`L${t+v*f},${n+v*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 o=r*Math.cos(a),c=r*Math.sin(a),u=t+o,f=n+c,d=1^l,h=l?a-i:i-a;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Li||Math.abs(this._y1-f)>Li)&&this._append`L${u},${f}`,r&&(h<0&&(h=h%bg+bg),h>WH?this._append`A${r},${r},0,1,${d},${t-o},${n-c}A${r},${r},0,1,${d},${this._x1=u},${this._y1=f}`:h>Li&&this._append`A${r},${r},0,${+(h>=gg)},${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 Px(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 ZH(t)}function Rx(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function WC(e){this._context=e}WC.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 nm(e){return new WC(e)}function QC(e){return e[0]}function ZC(e){return e[1]}function JC(e,t){var n=Fe(!0),r=null,a=nm,i=null,l=Px(o);e=typeof e=="function"?e:e===void 0?QC:Fe(e),t=typeof t=="function"?t:t===void 0?ZC:Fe(t);function o(c){var u,f=(c=Rx(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 o.x=function(c){return arguments.length?(e=typeof c=="function"?c:Fe(+c),o):e},o.y=function(c){return arguments.length?(t=typeof c=="function"?c:Fe(+c),o):t},o.defined=function(c){return arguments.length?(n=typeof c=="function"?c:Fe(!!c),o):n},o.curve=function(c){return arguments.length?(a=c,r!=null&&(i=a(r)),o):a},o.context=function(c){return arguments.length?(c==null?r=i=null:i=a(r=c),o):r},o}function Df(e,t,n){var r=null,a=Fe(!0),i=null,l=nm,o=null,c=Px(u);e=typeof e=="function"?e:e===void 0?QC:Fe(+e),t=typeof t=="function"?t:Fe(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?ZC:Fe(+n);function u(d){var h,p,y,m=(d=Rx(d)).length,x,g=!1,j,b=new Array(m),v=new Array(m);for(i==null&&(o=l(j=c())),h=0;h<=m;++h){if(!(h<m&&a(x=d[h],h,d))===g)if(g=!g)p=h,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),y=h-1;y>=p;--y)o.point(b[y],v[y]);o.lineEnd(),o.areaEnd()}g&&(b[h]=+e(x,h,d),v[h]=+t(x,h,d),o.point(r?+r(x,h,d):b[h],n?+n(x,h,d):v[h]))}if(j)return o=null,j+""||null}function f(){return JC().defined(a).curve(l).context(i)}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:Fe(+d),r=null,u):e},u.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Fe(+d),u):e},u.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Fe(+d),u):r},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:Fe(+d),n=null,u):t},u.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Fe(+d),u):t},u.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Fe(+d),u):n},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(n)},u.lineX1=function(){return f().x(r).y(t)},u.defined=function(d){return arguments.length?(a=typeof d=="function"?d:Fe(!!d),u):a},u.curve=function(d){return arguments.length?(l=d,i!=null&&(o=l(i)),u):l},u.context=function(d){return arguments.length?(d==null?i=o=null:o=l(i=d),u):i},u}class eM{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 JH(e){return new eM(e,!0)}function eq(e){return new eM(e,!1)}const Dx={draw(e,t){const n=xr(t/oh);e.moveTo(n,0),e.arc(0,0,n,0,tm)}},tq={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()}},tM=xr(1/3),nq=tM*2,rq={draw(e,t){const n=xr(t/nq),r=n*tM;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},aq={draw(e,t){const n=xr(t),r=-n/2;e.rect(r,r,n,n)}},iq=.8908130915292852,nM=lh(oh/10)/lh(7*oh/10),lq=lh(tm/10)*nM,oq=-KC(tm/10)*nM,sq={draw(e,t){const n=xr(t*iq),r=lq*n,a=oq*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const l=tm*i/5,o=KC(l),c=lh(l);e.lineTo(c*n,-o*n),e.lineTo(o*r-c*a,c*r+o*a)}e.closePath()}},Ey=xr(3),cq={draw(e,t){const n=-xr(t/(Ey*3));e.moveTo(0,n*2),e.lineTo(-Ey*n,-n),e.lineTo(Ey*n,-n),e.closePath()}},Bn=-.5,In=xr(3)/2,xg=1/xr(12),uq=(xg/2+1)*3,fq={draw(e,t){const n=xr(t/uq),r=n/2,a=n*xg,i=r,l=n*xg+n,o=-i,c=l;e.moveTo(r,a),e.lineTo(i,l),e.lineTo(o,c),e.lineTo(Bn*r-In*a,In*r+Bn*a),e.lineTo(Bn*i-In*l,In*i+Bn*l),e.lineTo(Bn*o-In*c,In*o+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*o+In*c,Bn*c-In*o),e.closePath()}};function dq(e,t){let n=null,r=Px(a);e=typeof e=="function"?e:Fe(e||Dx),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 sh(){}function ch(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 rM(e){this._context=e}rM.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:ch(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:ch(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function hq(e){return new rM(e)}function aM(e){this._context=e}aM.prototype={areaStart:sh,areaEnd:sh,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:ch(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function pq(e){return new aM(e)}function iM(e){this._context=e}iM.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:ch(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mq(e){return new iM(e)}function lM(e){this._context=e}lM.prototype={areaStart:sh,areaEnd:sh,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 yq(e){return new lM(e)}function aw(e){return e<0?-1:1}function iw(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),l=(n-e._y1)/(a||r<0&&-0),o=(i*a+l*r)/(r+a);return(aw(i)+aw(l))*Math.min(Math.abs(i),Math.abs(l),.5*Math.abs(o))||0}function lw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function _y(e,t,n){var r=e._x0,a=e._y0,i=e._x1,l=e._y1,o=(i-r)/3;e._context.bezierCurveTo(r+o,a+o*t,i-o,l-o*n,i,l)}function uh(e){this._context=e}uh.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:_y(this,this._t0,lw(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,_y(this,lw(this,n=iw(this,e,t)),n);break;default:_y(this,this._t0,n=iw(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function oM(e){this._context=new sM(e)}(oM.prototype=Object.create(uh.prototype)).point=function(e,t){uh.prototype.point.call(this,t,e)};function sM(e){this._context=e}sM.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 vq(e){return new uh(e)}function gq(e){return new oM(e)}function cM(e){this._context=e}cM.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=ow(e),a=ow(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 ow(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 bq(e){return new cM(e)}function rm(e,t){this._context=e,this._t=t}rm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function xq(e){return new rm(e,.5)}function jq(e){return new rm(e,0)}function Sq(e){return new rm(e,1)}function Go(e,t){if((l=e.length)>1)for(var n=1,r,a,i=e[t[0]],l,o=i.length;n<l;++n)for(a=i,i=e[t[n]],r=0;r<o;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function jg(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function wq(e,t){return e[t]}function Oq(e){const t=[];return t.key=e,t}function Aq(){var e=Fe([]),t=jg,n=Go,r=wq;function a(i){var l=Array.from(e.apply(this,arguments),Oq),o,c=l.length,u=-1,f;for(const d of i)for(o=0,++u;o<c;++o)(l[o][u]=[0,+r(d,l[o].key,u,i)]).data=d;for(o=0,f=Rx(t(l));o<c;++o)l[f[o]].index=o;return n(l,f),l}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:Fe(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:Fe(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?jg:typeof i=="function"?i:Fe(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??Go,a):n},a}function Eq(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}Go(e,t)}}function _q(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,i=r.length;n<i;++n){for(var l=0,o=0;l<a;++l)o+=e[l][n][1]||0;r[n][1]+=r[n][0]=-o/2}Go(e,t)}}function Tq(e,t){if(!(!((l=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,l;r<i;++r){for(var o=0,c=0,u=0;o<l;++o){for(var f=e[t[o]],d=f[r][1]||0,h=f[r-1][1]||0,p=(d-h)/2,y=0;y<o;++y){var m=e[t[y]],x=m[r][1]||0,g=m[r-1][1]||0;p+=x-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,Go(e,t)}}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)}var Nq=["type","size","sizeType"];function Sg(){return Sg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sg.apply(this,arguments)}function sw(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 cw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sw(Object(n),!0).forEach(function(r){Cq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cq(e,t,n){return t=Mq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mq(e){var t=kq(e,"string");return eu(t)=="symbol"?t:t+""}function kq(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)}function $q(e,t){if(e==null)return{};var n=Pq(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 Pq(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 uM={symbolCircle:Dx,symbolCross:tq,symbolDiamond:rq,symbolSquare:aq,symbolStar:sq,symbolTriangle:cq,symbolWye:fq},Rq=Math.PI/180,Dq=function(t){var n="symbol".concat(em(t));return uM[n]||Dx},zq=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*Rq;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}},Lq=function(t,n){uM["symbol".concat(em(t))]=n},zx=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,i=a===void 0?64:a,l=t.sizeType,o=l===void 0?"area":l,c=$q(t,Nq),u=cw(cw({},c),{},{type:r,size:i,sizeType:o}),f=function(){var x=Dq(r),g=dq().type(x).size(zq(i,o,r));return g()},d=u.className,h=u.cx,p=u.cy,y=le(u,!0);return h===+h&&p===+p&&i===+i?T.createElement("path",Sg({},y,{className:ye("recharts-symbols",d),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};zx.registerSymbol=Lq;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 wg(){return wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wg.apply(this,arguments)}function uw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Bq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uw(Object(n),!0).forEach(function(r){tu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Iq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uq(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,dM(r.key),r)}}function Hq(e,t,n){return t&&Uq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qq(e,t,n){return t=fh(t),Fq(e,fM()?Reflect.construct(t,n||[],fh(e).constructor):t.apply(e,n))}function Fq(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 Gq(e)}function Gq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fM=function(){return!!e})()}function fh(e){return fh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fh(e)}function Yq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Og(e,t)}function Og(e,t){return Og=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Og(e,t)}function tu(e,t,n){return t=dM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dM(e){var t=Vq(e,"string");return Yo(t)=="symbol"?t:t+""}function Vq(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 String(e)}var Un=32,Lx=function(e){function t(){return Iq(this,t),qq(this,t,arguments)}return Yq(t,e),Hq(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,i=Un/2,l=Un/6,o=Un/3,c=r.inactive?a:r.color;if(r.type==="plainline")return T.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:Un,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return T.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(i,"h").concat(o,`
            A`).concat(l,",").concat(l,",0,1,1,").concat(2*o,",").concat(i,`
            H`).concat(Un,"M").concat(2*o,",").concat(i,`
            A`).concat(l,",").concat(l,",0,1,1,").concat(o,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return T.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Un/8,"h").concat(Un,"v").concat(Un*3/4,"h").concat(-Un,"z"),className:"recharts-legend-icon"});if(T.isValidElement(r.legendIcon)){var u=Bq({},r);return delete u.legendIcon,T.cloneElement(r.legendIcon,u)}return T.createElement(zx,{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,o=a.layout,c=a.formatter,u=a.inactiveColor,f={x:0,y:0,width:Un,height:Un},d={display:o==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,y){var m=p.formatter||c,x=ye(tu(tu({"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 T.createElement("li",wg({className:x,style:d,key:"legend-item-".concat(y)},gl(r.props,p,y)),T.createElement(pg,{width:l,height:l,viewBox:f,style:h},r.renderIcon(p)),T.createElement("span",{className:"recharts-legend-item-text",style:{color:j}},m?m(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 o={padding:0,margin:0,textAlign:i==="horizontal"?l:"left"};return T.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}])}(O.PureComponent);tu(Lx,"displayName","Legend");tu(Lx,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Kq=Up;function Xq(){this.__data__=new Kq,this.size=0}var Wq=Xq;function Qq(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var Zq=Qq;function Jq(e){return this.__data__.get(e)}var eF=Jq;function tF(e){return this.__data__.has(e)}var nF=tF,rF=Up,aF=Ax,iF=Ex,lF=200;function oF(e,t){var n=this.__data__;if(n instanceof rF){var r=n.__data__;if(!aF||r.length<lF-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new iF(r)}return n.set(e,t),this.size=n.size,this}var sF=oF,cF=Up,uF=Wq,fF=Zq,dF=eF,hF=nF,pF=sF;function zs(e){var t=this.__data__=new cF(e);this.size=t.size}zs.prototype.clear=uF;zs.prototype.delete=fF;zs.prototype.get=dF;zs.prototype.has=hF;zs.prototype.set=pF;var hM=zs,mF="__lodash_hash_undefined__";function yF(e){return this.__data__.set(e,mF),this}var vF=yF;function gF(e){return this.__data__.has(e)}var bF=gF,xF=Ex,jF=vF,SF=bF;function dh(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new xF;++t<n;)this.add(e[t])}dh.prototype.add=dh.prototype.push=jF;dh.prototype.has=SF;var pM=dh;function wF(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 mM=wF;function OF(e,t){return e.has(t)}var yM=OF,AF=pM,EF=mM,_F=yM,TF=1,NF=2;function CF(e,t,n,r,a,i){var l=n&TF,o=e.length,c=t.length;if(o!=c&&!(l&&c>o))return!1;var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var d=-1,h=!0,p=n&NF?new AF:void 0;for(i.set(e,t),i.set(t,e);++d<o;){var y=e[d],m=t[d];if(r)var x=l?r(m,y,d,t,e,i):r(y,m,d,e,t,i);if(x!==void 0){if(x)continue;h=!1;break}if(p){if(!EF(t,function(g,j){if(!_F(p,j)&&(y===g||a(y,g,n,r,i)))return p.push(j)})){h=!1;break}}else if(!(y===m||a(y,m,n,r,i))){h=!1;break}}return i.delete(e),i.delete(t),h}var vM=CF,MF=Hr,kF=MF.Uint8Array,$F=kF;function PF(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var RF=PF;function DF(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Bx=DF,fw=af,dw=$F,zF=Ox,LF=vM,BF=RF,IF=Bx,UF=1,HF=2,qF="[object Boolean]",FF="[object Date]",GF="[object Error]",YF="[object Map]",VF="[object Number]",KF="[object RegExp]",XF="[object Set]",WF="[object String]",QF="[object Symbol]",ZF="[object ArrayBuffer]",JF="[object DataView]",hw=fw?fw.prototype:void 0,Ty=hw?hw.valueOf:void 0;function eG(e,t,n,r,a,i,l){switch(n){case JF:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ZF:return!(e.byteLength!=t.byteLength||!i(new dw(e),new dw(t)));case qF:case FF:case VF:return zF(+e,+t);case GF:return e.name==t.name&&e.message==t.message;case KF:case WF:return e==t+"";case YF:var o=BF;case XF:var c=r&UF;if(o||(o=IF),e.size!=t.size&&!c)return!1;var u=l.get(e);if(u)return u==t;r|=HF,l.set(e,t);var f=LF(o(e),o(t),r,a,i,l);return l.delete(e),f;case QF:if(Ty)return Ty.call(e)==Ty.call(t)}return!1}var tG=eG;function nG(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var gM=nG,rG=gM,aG=yn;function iG(e,t,n){var r=t(e);return aG(e)?r:rG(r,n(e))}var lG=iG;function oG(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 sG=oG;function cG(){return[]}var uG=cG,fG=sG,dG=uG,hG=Object.prototype,pG=hG.propertyIsEnumerable,pw=Object.getOwnPropertySymbols,mG=pw?function(e){return e==null?[]:(e=Object(e),fG(pw(e),function(t){return pG.call(e,t)}))}:dG,yG=mG;function vG(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var gG=vG,bG=Aa,xG=Ea,jG="[object Arguments]";function SG(e){return xG(e)&&bG(e)==jG}var wG=SG,mw=wG,OG=Ea,bM=Object.prototype,AG=bM.hasOwnProperty,EG=bM.propertyIsEnumerable,_G=mw(function(){return arguments}())?mw:function(e){return OG(e)&&AG.call(e,"callee")&&!EG.call(e,"callee")},Ix=_G,hh={exports:{}};function TG(){return!1}var NG=TG;hh.exports;(function(e,t){var n=Hr,r=NG,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,l=i&&i.exports===a,o=l?n.Buffer:void 0,c=o?o.isBuffer:void 0,u=c||r;e.exports=u})(hh,hh.exports);var xM=hh.exports,CG=9007199254740991,MG=/^(?:0|[1-9]\d*)$/;function kG(e,t){var n=typeof e;return t=t??CG,!!t&&(n=="number"||n!="symbol"&&MG.test(e))&&e>-1&&e%1==0&&e<t}var Ux=kG,$G=9007199254740991;function PG(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=$G}var Hx=PG,RG=Aa,DG=Hx,zG=Ea,LG="[object Arguments]",BG="[object Array]",IG="[object Boolean]",UG="[object Date]",HG="[object Error]",qG="[object Function]",FG="[object Map]",GG="[object Number]",YG="[object Object]",VG="[object RegExp]",KG="[object Set]",XG="[object String]",WG="[object WeakMap]",QG="[object ArrayBuffer]",ZG="[object DataView]",JG="[object Float32Array]",eY="[object Float64Array]",tY="[object Int8Array]",nY="[object Int16Array]",rY="[object Int32Array]",aY="[object Uint8Array]",iY="[object Uint8ClampedArray]",lY="[object Uint16Array]",oY="[object Uint32Array]",Xe={};Xe[JG]=Xe[eY]=Xe[tY]=Xe[nY]=Xe[rY]=Xe[aY]=Xe[iY]=Xe[lY]=Xe[oY]=!0;Xe[LG]=Xe[BG]=Xe[QG]=Xe[IG]=Xe[ZG]=Xe[UG]=Xe[HG]=Xe[qG]=Xe[FG]=Xe[GG]=Xe[YG]=Xe[VG]=Xe[KG]=Xe[XG]=Xe[WG]=!1;function sY(e){return zG(e)&&DG(e.length)&&!!Xe[RG(e)]}var cY=sY;function uY(e){return function(t){return e(t)}}var jM=uY,ph={exports:{}};ph.exports;(function(e,t){var n=TC,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,l=i&&n.process,o=function(){try{var c=a&&a.require&&a.require("util").types;return c||l&&l.binding&&l.binding("util")}catch{}}();e.exports=o})(ph,ph.exports);var fY=ph.exports,dY=cY,hY=jM,yw=fY,vw=yw&&yw.isTypedArray,pY=vw?hY(vw):dY,SM=pY,mY=gG,yY=Ix,vY=yn,gY=xM,bY=Ux,xY=SM,jY=Object.prototype,SY=jY.hasOwnProperty;function wY(e,t){var n=vY(e),r=!n&&yY(e),a=!n&&!r&&gY(e),i=!n&&!r&&!a&&xY(e),l=n||r||a||i,o=l?mY(e.length,String):[],c=o.length;for(var u in e)(t||SY.call(e,u))&&!(l&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||bY(u,c)))&&o.push(u);return o}var OY=wY,AY=Object.prototype;function EY(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||AY;return e===n}var _Y=EY;function TY(e,t){return function(n){return e(t(n))}}var wM=TY,NY=wM,CY=NY(Object.keys,Object),MY=CY,kY=_Y,$Y=MY,PY=Object.prototype,RY=PY.hasOwnProperty;function DY(e){if(!kY(e))return $Y(e);var t=[];for(var n in Object(e))RY.call(e,n)&&n!="constructor"&&t.push(n);return t}var zY=DY,LY=wx,BY=Hx;function IY(e){return e!=null&&BY(e.length)&&!LY(e)}var lf=IY,UY=OY,HY=zY,qY=lf;function FY(e){return qY(e)?UY(e):HY(e)}var am=FY,GY=lG,YY=yG,VY=am;function KY(e){return GY(e,VY,YY)}var XY=KY,gw=XY,WY=1,QY=Object.prototype,ZY=QY.hasOwnProperty;function JY(e,t,n,r,a,i){var l=n&WY,o=gw(e),c=o.length,u=gw(t),f=u.length;if(c!=f&&!l)return!1;for(var d=c;d--;){var h=o[d];if(!(l?h in t:ZY.call(t,h)))return!1}var p=i.get(e),y=i.get(t);if(p&&y)return p==t&&y==e;var m=!0;i.set(e,t),i.set(t,e);for(var x=l;++d<c;){h=o[d];var g=e[h],j=t[h];if(r)var b=l?r(j,g,h,t,e,i):r(g,j,h,e,t,i);if(!(b===void 0?g===j||a(g,j,n,r,i):b)){m=!1;break}x||(x=h=="constructor")}if(m&&!x){var v=e.constructor,S=t.constructor;v!=S&&"constructor"in e&&"constructor"in t&&!(typeof v=="function"&&v instanceof v&&typeof S=="function"&&S instanceof S)&&(m=!1)}return i.delete(e),i.delete(t),m}var eV=JY,tV=Cl,nV=Hr,rV=tV(nV,"DataView"),aV=rV,iV=Cl,lV=Hr,oV=iV(lV,"Promise"),sV=oV,cV=Cl,uV=Hr,fV=cV(uV,"Set"),OM=fV,dV=Cl,hV=Hr,pV=dV(hV,"WeakMap"),mV=pV,Ag=aV,Eg=Ax,_g=sV,Tg=OM,Ng=mV,AM=Aa,Ls=CC,bw="[object Map]",yV="[object Object]",xw="[object Promise]",jw="[object Set]",Sw="[object WeakMap]",ww="[object DataView]",vV=Ls(Ag),gV=Ls(Eg),bV=Ls(_g),xV=Ls(Tg),jV=Ls(Ng),Bi=AM;(Ag&&Bi(new Ag(new ArrayBuffer(1)))!=ww||Eg&&Bi(new Eg)!=bw||_g&&Bi(_g.resolve())!=xw||Tg&&Bi(new Tg)!=jw||Ng&&Bi(new Ng)!=Sw)&&(Bi=function(e){var t=AM(e),n=t==yV?e.constructor:void 0,r=n?Ls(n):"";if(r)switch(r){case vV:return ww;case gV:return bw;case bV:return xw;case xV:return jw;case jV:return Sw}return t});var SV=Bi,Ny=hM,wV=vM,OV=tG,AV=eV,Ow=SV,Aw=yn,Ew=xM,EV=SM,_V=1,_w="[object Arguments]",Tw="[object Array]",zf="[object Object]",TV=Object.prototype,Nw=TV.hasOwnProperty;function NV(e,t,n,r,a,i){var l=Aw(e),o=Aw(t),c=l?Tw:Ow(e),u=o?Tw:Ow(t);c=c==_w?zf:c,u=u==_w?zf:u;var f=c==zf,d=u==zf,h=c==u;if(h&&Ew(e)){if(!Ew(t))return!1;l=!0,f=!1}if(h&&!f)return i||(i=new Ny),l||EV(e)?wV(e,t,n,r,a,i):OV(e,t,c,n,r,a,i);if(!(n&_V)){var p=f&&Nw.call(e,"__wrapped__"),y=d&&Nw.call(t,"__wrapped__");if(p||y){var m=p?e.value():e,x=y?t.value():t;return i||(i=new Ny),a(m,x,n,r,i)}}return h?(i||(i=new Ny),AV(e,t,n,r,a,i)):!1}var CV=NV,MV=CV,Cw=Ea;function EM(e,t,n,r,a){return e===t?!0:e==null||t==null||!Cw(e)&&!Cw(t)?e!==e&&t!==t:MV(e,t,n,r,EM,a)}var qx=EM,kV=hM,$V=qx,PV=1,RV=2;function DV(e,t,n,r){var a=n.length,i=a,l=!r;if(e==null)return!i;for(e=Object(e);a--;){var o=n[a];if(l&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<i;){o=n[a];var c=o[0],u=e[c],f=o[1];if(l&&o[2]){if(u===void 0&&!(c in e))return!1}else{var d=new kV;if(r)var h=r(u,f,c,e,t,d);if(!(h===void 0?$V(f,u,PV|RV,r,d):h))return!1}}return!0}var zV=DV,LV=xi;function BV(e){return e===e&&!LV(e)}var _M=BV,IV=_M,UV=am;function HV(e){for(var t=UV(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,IV(a)]}return t}var qV=HV;function FV(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var TM=FV,GV=zV,YV=qV,VV=TM;function KV(e){var t=YV(e);return t.length==1&&t[0][2]?VV(t[0][0],t[0][1]):function(n){return n===e||GV(n,e,t)}}var XV=KV;function WV(e,t){return e!=null&&t in Object(e)}var QV=WV,ZV=RC,JV=Ix,eK=yn,tK=Ux,nK=Hx,rK=qp;function aK(e,t,n){t=ZV(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var l=rK(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&&nK(a)&&tK(l,a)&&(eK(e)||JV(e)))}var iK=aK,lK=QV,oK=iK;function sK(e,t){return e!=null&&oK(e,t,lK)}var cK=sK,uK=qx,fK=DC,dK=cK,hK=Sx,pK=_M,mK=TM,yK=qp,vK=1,gK=2;function bK(e,t){return hK(e)&&pK(t)?mK(yK(e),t):function(n){var r=fK(n,e);return r===void 0&&r===t?dK(n,e):uK(t,r,vK|gK)}}var xK=bK;function jK(e){return e}var Bs=jK;function SK(e){return function(t){return t==null?void 0:t[e]}}var wK=SK,OK=Nx;function AK(e){return function(t){return OK(t,e)}}var EK=AK,_K=wK,TK=EK,NK=Sx,CK=qp;function MK(e){return NK(e)?_K(CK(e)):TK(e)}var kK=MK,$K=XV,PK=xK,RK=Bs,DK=yn,zK=kK;function LK(e){return typeof e=="function"?e:e==null?RK:typeof e=="object"?DK(e)?PK(e[0],e[1]):$K(e):zK(e)}var qr=LK;function BK(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var NM=BK;function IK(e){return e!==e}var UK=IK;function HK(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var qK=HK,FK=NM,GK=UK,YK=qK;function VK(e,t,n){return t===t?YK(e,t,n):FK(e,GK,n)}var KK=VK,XK=KK;function WK(e,t){var n=e==null?0:e.length;return!!n&&XK(e,t,0)>-1}var QK=WK;function ZK(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 JK=ZK;function eX(){}var tX=eX,Cy=OM,nX=tX,rX=Bx,aX=1/0,iX=Cy&&1/rX(new Cy([,-0]))[1]==aX?function(e){return new Cy(e)}:nX,lX=iX,oX=pM,sX=QK,cX=JK,uX=yM,fX=lX,dX=Bx,hX=200;function pX(e,t,n){var r=-1,a=sX,i=e.length,l=!0,o=[],c=o;if(n)l=!1,a=cX;else if(i>=hX){var u=t?null:fX(e);if(u)return dX(u);l=!1,a=uX,c=new oX}else c=t?[]:o;e:for(;++r<i;){var f=e[r],d=t?t(f):f;if(f=n||f!==0?f:0,l&&d===d){for(var h=c.length;h--;)if(c[h]===d)continue e;t&&c.push(d),o.push(f)}else a(c,d,n)||(c!==o&&c.push(d),o.push(f))}return o}var mX=pX,yX=qr,vX=mX;function gX(e,t){return e&&e.length?vX(e,yX(t)):[]}var bX=gX;const Mw=$e(bX);function CM(e,t,n){return t===!0?Mw(e,n):fe(t)?Mw(e,t):e}function Vo(e){"@babel/helpers - typeof";return Vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vo(e)}var xX=["ref"];function kw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Xr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kw(Object(n),!0).forEach(function(r){im(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kM(r.key),r)}}function SX(e,t,n){return t&&$w(e.prototype,t),n&&$w(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wX(e,t,n){return t=mh(t),OX(e,MM()?Reflect.construct(t,n||[],mh(e).constructor):t.apply(e,n))}function OX(e,t){if(t&&(Vo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AX(e)}function AX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MM=function(){return!!e})()}function mh(e){return mh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mh(e)}function EX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cg(e,t)}function Cg(e,t){return Cg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Cg(e,t)}function im(e,t,n){return t=kM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kM(e){var t=_X(e,"string");return Vo(t)=="symbol"?t:t+""}function _X(e,t){if(Vo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function TX(e,t){if(e==null)return{};var n=NX(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 NX(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 CX(e){return e.value}function MX(e,t){if(T.isValidElement(e))return T.cloneElement(e,t);if(typeof e=="function")return T.createElement(e,t);t.ref;var n=TX(t,xX);return T.createElement(Lx,n)}var Pw=1,Mr=function(e){function t(){var n;jX(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=wX(this,t,[].concat(a)),im(n,"lastBoundingBox",{width:-1,height:-1}),n}return EX(t,e),SX(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)>Pw||Math.abs(a.height-this.lastBoundingBox.height)>Pw)&&(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,o=a.verticalAlign,c=a.margin,u=a.chartWidth,f=a.chartHeight,d,h;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(l==="center"&&i==="vertical"){var 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(o==="middle"){var y=this.getBBoxSnapshot();h={top:((f||0)-y.height)/2}}else h=o==="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,o=a.height,c=a.wrapperStyle,u=a.payloadUniqBy,f=a.payload,d=Xr(Xr({position:"absolute",width:l||"auto",height:o||"auto"},this.getDefaultPosition(c)),c);return T.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(p){r.wrapperNode=p}},MX(i,Xr(Xr({},this.props),{},{payload:CM(f,u,CX)})))}}],[{key:"getWithHeight",value:function(r,a){var i=Xr(Xr({},this.defaultProps),r.props),l=i.layout;return l==="vertical"&&V(r.props.height)?{height:r.props.height}:l==="horizontal"?{width:r.props.width||a}:null}}])}(O.PureComponent);im(Mr,"displayName","Legend");im(Mr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Rw=af,kX=Ix,$X=yn,Dw=Rw?Rw.isConcatSpreadable:void 0;function PX(e){return $X(e)||kX(e)||!!(Dw&&e&&e[Dw])}var RX=PX,DX=gM,zX=RX;function $M(e,t,n,r,a){var i=-1,l=e.length;for(n||(n=zX),a||(a=[]);++i<l;){var o=e[i];t>0&&n(o)?t>1?$M(o,t-1,n,r,a):DX(a,o):r||(a[a.length]=o)}return a}var PM=$M;function LX(e){return function(t,n,r){for(var a=-1,i=Object(t),l=r(t),o=l.length;o--;){var c=l[e?o:++a];if(n(i[c],c,i)===!1)break}return t}}var BX=LX,IX=BX,UX=IX(),HX=UX,qX=HX,FX=am;function GX(e,t){return e&&qX(e,t,FX)}var RM=GX,YX=lf;function VX(e,t){return function(n,r){if(n==null)return n;if(!YX(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 KX=VX,XX=RM,WX=KX,QX=WX(XX),Fx=QX,ZX=Fx,JX=lf;function eW(e,t){var n=-1,r=JX(e)?Array(e.length):[];return ZX(e,function(a,i,l){r[++n]=t(a,i,l)}),r}var DM=eW;function tW(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var nW=tW,zw=Ms;function rW(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=zw(e),l=t!==void 0,o=t===null,c=t===t,u=zw(t);if(!o&&!u&&!i&&e>t||i&&l&&c&&!o&&!u||r&&l&&c||!n&&c||!a)return 1;if(!r&&!i&&!u&&e<t||u&&n&&a&&!r&&!i||o&&n&&a||!l&&a||!c)return-1}return 0}var aW=rW,iW=aW;function lW(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,l=a.length,o=n.length;++r<l;){var c=iW(a[r],i[r]);if(c){if(r>=o)return c;var u=n[r];return c*(u=="desc"?-1:1)}}return e.index-t.index}var oW=lW,My=Tx,sW=Nx,cW=qr,uW=DM,fW=nW,dW=jM,hW=oW,pW=Bs,mW=yn;function yW(e,t,n){t.length?t=My(t,function(i){return mW(i)?function(l){return sW(l,i.length===1?i[0]:i)}:i}):t=[pW];var r=-1;t=My(t,dW(cW));var a=uW(e,function(i,l,o){var c=My(t,function(u){return u(i)});return{criteria:c,index:++r,value:i}});return fW(a,function(i,l){return hW(i,l,n)})}var vW=yW;function gW(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 bW=gW,xW=bW,Lw=Math.max;function jW(e,t,n){return t=Lw(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=Lw(r.length-t,0),l=Array(i);++a<i;)l[a]=r[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=r[a];return o[t]=n(l),xW(e,this,o)}}var SW=jW;function wW(e){return function(){return e}}var OW=wW,AW=Cl,EW=function(){try{var e=AW(Object,"defineProperty");return e({},"",{}),e}catch{}}(),zM=EW,_W=OW,Bw=zM,TW=Bs,NW=Bw?function(e,t){return Bw(e,"toString",{configurable:!0,enumerable:!1,value:_W(t),writable:!0})}:TW,CW=NW,MW=800,kW=16,$W=Date.now;function PW(e){var t=0,n=0;return function(){var r=$W(),a=kW-(r-n);if(n=r,a>0){if(++t>=MW)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var RW=PW,DW=CW,zW=RW,LW=zW(DW),BW=LW,IW=Bs,UW=SW,HW=BW;function qW(e,t){return HW(UW(e,t,IW),e+"")}var FW=qW,GW=Ox,YW=lf,VW=Ux,KW=xi;function XW(e,t,n){if(!KW(n))return!1;var r=typeof t;return(r=="number"?YW(n)&&VW(t,n.length):r=="string"&&t in n)?GW(n[t],e):!1}var lm=XW,WW=PM,QW=vW,ZW=FW,Iw=lm,JW=ZW(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Iw(e,t[0],t[1])?t=[]:n>2&&Iw(t[0],t[1],t[2])&&(t=[t[0]]),QW(e,WW(t,1),[])}),eQ=JW;const Gx=$e(eQ);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 Mg(){return Mg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mg.apply(this,arguments)}function tQ(e,t){return iQ(e)||aQ(e,t)||rQ(e,t)||nQ()}function nQ(){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 rQ(e,t){if(e){if(typeof e=="string")return Uw(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 Uw(e,t)}}function Uw(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 aQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function iQ(e){if(Array.isArray(e))return e}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 ky(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){lQ(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 lQ(e,t,n){return t=oQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oQ(e){var t=sQ(e,"string");return nu(t)=="symbol"?t:t+""}function sQ(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 cQ(e){return Array.isArray(e)&&_t(e[0])&&_t(e[1])?e.join(" ~ "):e}var uQ=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,i=a===void 0?{}:a,l=t.itemStyle,o=l===void 0?{}:l,c=t.labelStyle,u=c===void 0?{}:c,f=t.payload,d=t.formatter,h=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,m=t.label,x=t.labelFormatter,g=t.accessibilityLayer,j=g===void 0?!1:g,b=function(){if(f&&f.length){var M={padding:0,margin:0},B=(h?Gx(f,h):f).map(function(z,P){if(z.type==="none")return null;var C=ky({display:"block",paddingTop:4,paddingBottom:4,color:z.color||"#000"},o),L=z.formatter||d||cQ,I=z.value,G=z.name,Y=I,ne=G;if(L&&Y!=null&&ne!=null){var X=L(I,G,z,P,f);if(Array.isArray(X)){var ie=tQ(X,2);Y=ie[0],ne=ie[1]}else Y=X}return T.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(P),style:C},_t(ne)?T.createElement("span",{className:"recharts-tooltip-item-name"},ne):null,_t(ne)?T.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,T.createElement("span",{className:"recharts-tooltip-item-value"},Y),T.createElement("span",{className:"recharts-tooltip-item-unit"},z.unit||""))});return T.createElement("ul",{className:"recharts-tooltip-item-list",style:M},B)}return null},v=ky({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),S=ky({margin:0},u),w=!me(m),A=w?m:"",_=ye("recharts-default-tooltip",p),E=ye("recharts-tooltip-label",y);w&&x&&f!==void 0&&f!==null&&(A=x(m,f));var N=j?{role:"status","aria-live":"assertive"}:{};return T.createElement("div",Mg({className:_,style:v},N),T.createElement("p",{className:E,style:S},T.isValidElement(A)?A:"".concat(A)),b())};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 Lf(e,t,n){return t=fQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fQ(e){var t=dQ(e,"string");return ru(t)=="symbol"?t:t+""}function dQ(e,t){if(ru(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ru(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ec="recharts-tooltip-wrapper",hQ={visibility:"hidden"};function pQ(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return ye(ec,Lf(Lf(Lf(Lf({},"".concat(ec,"-right"),V(n)&&t&&V(t.x)&&n>=t.x),"".concat(ec,"-left"),V(n)&&t&&V(t.x)&&n<t.x),"".concat(ec,"-bottom"),V(r)&&t&&V(t.y)&&r>=t.y),"".concat(ec,"-top"),V(r)&&t&&V(t.y)&&r<t.y))}function qw(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,i=e.position,l=e.reverseDirection,o=e.tooltipDimension,c=e.viewBox,u=e.viewBoxDimension;if(i&&V(i[r]))return i[r];var f=n[r]-o-a,d=n[r]+a;if(t[r])return l[r]?f:d;if(l[r]){var h=f,p=c[r];return h<p?Math.max(d,c[r]):Math.max(f,c[r])}var y=d+o,m=c[r]+u;return y>m?Math.max(f,c[r]):Math.max(d,c[r])}function mQ(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 yQ(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,i=e.reverseDirection,l=e.tooltipBox,o=e.useTranslate3d,c=e.viewBox,u,f,d;return l.height>0&&l.width>0&&n?(f=qw({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:l.width,viewBox:c,viewBoxDimension:c.width}),d=qw({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:l.height,viewBox:c,viewBoxDimension:c.height}),u=mQ({translateX:f,translateY:d,useTranslate3d:o})):u=hQ,{cssProperties:u,cssClasses:pQ({translateX:f,translateY:d,coordinate:n})}}function Ko(e){"@babel/helpers - typeof";return Ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ko(e)}function Fw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Gw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fw(Object(n),!0).forEach(function(r){$g(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 vQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gQ(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,BM(r.key),r)}}function bQ(e,t,n){return t&&gQ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xQ(e,t,n){return t=yh(t),jQ(e,LM()?Reflect.construct(t,n||[],yh(e).constructor):t.apply(e,n))}function jQ(e,t){if(t&&(Ko(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SQ(e)}function SQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LM=function(){return!!e})()}function yh(e){return yh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yh(e)}function wQ(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&&kg(e,t)}function kg(e,t){return kg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},kg(e,t)}function $g(e,t,n){return t=BM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BM(e){var t=OQ(e,"string");return Ko(t)=="symbol"?t:t+""}function OQ(e,t){if(Ko(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ko(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yw=1,AQ=function(e){function t(){var n;vQ(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=xQ(this,t,[].concat(a)),$g(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),$g(n,"handleKeyDown",function(l){if(l.key==="Escape"){var o,c,u,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(o=(c=n.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&o!==void 0?o:0,y:(u=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),n}return wQ(t,e),bQ(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>Yw||Math.abs(r.height-this.state.lastBoundingBox.height)>Yw)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,a=this.props,i=a.active,l=a.allowEscapeViewBox,o=a.animationDuration,c=a.animationEasing,u=a.children,f=a.coordinate,d=a.hasPayload,h=a.isAnimationActive,p=a.offset,y=a.position,m=a.reverseDirection,x=a.useTranslate3d,g=a.viewBox,j=a.wrapperStyle,b=yQ({allowEscapeViewBox:l,coordinate:f,offsetTopLeft:p,position:y,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:g}),v=b.cssClasses,S=b.cssProperties,w=Gw(Gw({transition:h&&i?"transform ".concat(o,"ms ").concat(c):void 0},S),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&d?"visible":"hidden",position:"absolute",top:0,left:0},j);return T.createElement("div",{tabIndex:-1,className:v,style:w,ref:function(_){r.wrapperNode=_}},u)}}])}(O.PureComponent),EQ=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ji={isSsr:EQ()};function Xo(e){"@babel/helpers - typeof";return Xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xo(e)}function Vw(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?Vw(Object(n),!0).forEach(function(r){Yx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _Q(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,UM(r.key),r)}}function NQ(e,t,n){return t&&TQ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CQ(e,t,n){return t=vh(t),MQ(e,IM()?Reflect.construct(t,n||[],vh(e).constructor):t.apply(e,n))}function MQ(e,t){if(t&&(Xo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kQ(e)}function kQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IM=function(){return!!e})()}function 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&&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 Yx(e,t,n){return t=UM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UM(e){var t=PQ(e,"string");return Xo(t)=="symbol"?t:t+""}function PQ(e,t){if(Xo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function RQ(e){return e.dataKey}function DQ(e,t){return T.isValidElement(e)?T.cloneElement(e,t):typeof e=="function"?T.createElement(e,t):T.createElement(uQ,t)}var Sn=function(e){function t(){return _Q(this,t),CQ(this,t,arguments)}return $Q(t,e),NQ(t,[{key:"render",value:function(){var r=this,a=this.props,i=a.active,l=a.allowEscapeViewBox,o=a.animationDuration,c=a.animationEasing,u=a.content,f=a.coordinate,d=a.filterNull,h=a.isAnimationActive,p=a.offset,y=a.payload,m=a.payloadUniqBy,x=a.position,g=a.reverseDirection,j=a.useTranslate3d,b=a.viewBox,v=a.wrapperStyle,S=y??[];d&&S.length&&(S=CM(y.filter(function(A){return A.value!=null&&(A.hide!==!0||r.props.includeHidden)}),m,RQ));var w=S.length>0;return T.createElement(AQ,{allowEscapeViewBox:l,animationDuration:o,animationEasing:c,isAnimationActive:h,active:i,coordinate:f,hasPayload:w,offset:p,position:x,reverseDirection:g,useTranslate3d:j,viewBox:b,wrapperStyle:v},DQ(u,Kw(Kw({},this.props),{},{payload:S})))}}])}(O.PureComponent);Yx(Sn,"displayName","Tooltip");Yx(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 zQ=Hr,LQ=function(){return zQ.Date.now()},BQ=LQ,IQ=/\s/;function UQ(e){for(var t=e.length;t--&&IQ.test(e.charAt(t)););return t}var HQ=UQ,qQ=HQ,FQ=/^\s+/;function GQ(e){return e&&e.slice(0,qQ(e)+1).replace(FQ,"")}var YQ=GQ,VQ=YQ,Xw=xi,KQ=Ms,Ww=NaN,XQ=/^[-+]0x[0-9a-f]+$/i,WQ=/^0b[01]+$/i,QQ=/^0o[0-7]+$/i,ZQ=parseInt;function JQ(e){if(typeof e=="number")return e;if(KQ(e))return Ww;if(Xw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=VQ(e);var n=WQ.test(e);return n||QQ.test(e)?ZQ(e.slice(2),n?2:8):XQ.test(e)?Ww:+e}var HM=JQ,eZ=xi,$y=BQ,Qw=HM,tZ="Expected a function",nZ=Math.max,rZ=Math.min;function aZ(e,t,n){var r,a,i,l,o,c,u=0,f=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(tZ);t=Qw(t)||0,eZ(n)&&(f=!!n.leading,d="maxWait"in n,i=d?nZ(Qw(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,o=setTimeout(g,t),f?p(w):l}function m(w){var A=w-c,_=w-u,E=t-A;return d?rZ(E,i-_):E}function x(w){var A=w-c,_=w-u;return c===void 0||A>=t||A<0||d&&_>=i}function g(){var w=$y();if(x(w))return j(w);o=setTimeout(g,m(w))}function j(w){return o=void 0,h&&r?p(w):(r=a=void 0,l)}function b(){o!==void 0&&clearTimeout(o),u=0,r=c=a=o=void 0}function v(){return o===void 0?l:j($y())}function S(){var w=$y(),A=x(w);if(r=arguments,a=this,c=w,A){if(o===void 0)return y(c);if(d)return clearTimeout(o),o=setTimeout(g,t),p(c)}return o===void 0&&(o=setTimeout(g,t)),l}return S.cancel=b,S.flush=v,S}var iZ=aZ,lZ=iZ,oZ=xi,sZ="Expected a function";function cZ(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(sZ);return oZ(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),lZ(e,t,{leading:r,maxWait:t,trailing:a})}var uZ=cZ;const qM=$e(uZ);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 Zw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Bf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zw(Object(n),!0).forEach(function(r){fZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fZ(e,t,n){return t=dZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dZ(e){var t=hZ(e,"string");return au(t)=="symbol"?t:t+""}function hZ(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 pZ(e,t){return gZ(e)||vZ(e,t)||yZ(e,t)||mZ()}function mZ(){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 yZ(e,t){if(e){if(typeof e=="string")return Jw(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 Jw(e,t)}}function Jw(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 vZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function gZ(e){if(Array.isArray(e))return e}var If=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,o=e.height,c=o===void 0?"100%":o,u=e.minWidth,f=u===void 0?0:u,d=e.minHeight,h=e.maxHeight,p=e.children,y=e.debounce,m=y===void 0?0:y,x=e.id,g=e.className,j=e.onResize,b=e.style,v=b===void 0?{}:b,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}),_=pZ(A,2),E=_[0],N=_[1],k=O.useCallback(function(B,z){N(function(P){var C=Math.round(B),L=Math.round(z);return P.containerWidth===C&&P.containerHeight===L?P:{containerWidth:C,containerHeight:L}})},[]);O.useEffect(function(){var B=function(G){var Y,ne=G[0].contentRect,X=ne.width,ie=ne.height;k(X,ie),(Y=w.current)===null||Y===void 0||Y.call(w,X,ie)};m>0&&(B=qM(B,m,{trailing:!0,leading:!1}));var z=new ResizeObserver(B),P=S.current.getBoundingClientRect(),C=P.width,L=P.height;return k(C,L),z.observe(S.current),function(){z.disconnect()}},[k,m]);var M=O.useMemo(function(){var B=E.containerWidth,z=E.containerHeight;if(B<0||z<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 P=qi(l)?B:l,C=qi(c)?z:c;n&&n>0&&(P?C=P/n:C&&(P=C*n),h&&C>h&&(C=h)),mr(P>0||C>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,P,C,l,c,f,d,n);var L=!Array.isArray(p)&&da(p.type).endsWith("Chart");return T.Children.map(p,function(I){return T.isValidElement(I)?O.cloneElement(I,Bf({width:P,height:C},L?{style:Bf({height:"100%",width:"100%",maxHeight:C,maxWidth:P},I.props.style)}:{})):I})},[n,p,c,h,d,f,E,l]);return T.createElement("div",{id:x?"".concat(x):void 0,className:ye("recharts-responsive-container",g),style:Bf(Bf({},v),{},{width:l,height:c,minWidth:f,minHeight:d,maxHeight:h}),ref:S},M)}),om=function(t){return null};om.displayName="Cell";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 e2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Rg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e2(Object(n),!0).forEach(function(r){bZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bZ(e,t,n){return t=xZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xZ(e){var t=jZ(e,"string");return iu(t)=="symbol"?t:t+""}function jZ(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 Hl={widthCache:{},cacheCount:0},SZ=2e3,wZ={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},t2="recharts_measurement_span";function OZ(e){var t=Rg({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Nc=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=OZ(n),a=JSON.stringify({text:t,copyStyle:r});if(Hl.widthCache[a])return Hl.widthCache[a];try{var i=document.getElementById(t2);i||(i=document.createElement("span"),i.setAttribute("id",t2),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var l=Rg(Rg({},wZ),r);Object.assign(i.style,l),i.textContent="".concat(t);var o=i.getBoundingClientRect(),c={width:o.width,height:o.height};return Hl.widthCache[a]=c,++Hl.cacheCount>SZ&&(Hl.cacheCount=0,Hl.widthCache={}),c}catch{return{width:0,height:0}}},AZ=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 gh(e,t){return NZ(e)||TZ(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 TZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function NZ(e){if(Array.isArray(e))return e}function CZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kZ(r.key),r)}}function MZ(e,t,n){return t&&r2(e.prototype,t),n&&r2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kZ(e){var t=$Z(e,"string");return lu(t)=="symbol"?t:t+""}function $Z(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 String(e)}var a2=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,i2=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,PZ=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,RZ=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,FM={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},DZ=Object.keys(FM),so="NaN";function zZ(e,t){return e*FM[t]}var Uf=function(){function e(t,n){CZ(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!PZ.test(n)&&(this.num=NaN,this.unit=""),DZ.includes(n)&&(this.num=zZ(t,n),this.unit="px")}return MZ(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=RZ.exec(n))!==null&&r!==void 0?r:[],i=gh(a,3),l=i[1],o=i[2];return new e(parseFloat(l),o??"")}}])}();function GM(e){if(e.includes(so))return so;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=a2.exec(t))!==null&&n!==void 0?n:[],a=gh(r,4),i=a[1],l=a[2],o=a[3],c=Uf.parse(i??""),u=Uf.parse(o??""),f=l==="*"?c.multiply(u):c.divide(u);if(f.isNaN())return so;t=t.replace(a2,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,h=(d=i2.exec(t))!==null&&d!==void 0?d:[],p=gh(h,4),y=p[1],m=p[2],x=p[3],g=Uf.parse(y??""),j=Uf.parse(x??""),b=m==="+"?g.add(j):g.subtract(j);if(b.isNaN())return so;t=t.replace(i2,b.toString())}return t}var l2=/\(([^()]*)\)/;function LZ(e){for(var t=e;t.includes("(");){var n=l2.exec(t),r=gh(n,2),a=r[1];t=t.replace(l2,GM(a))}return t}function BZ(e){var t=e.replace(/\s+/g,"");return t=LZ(t),t=GM(t),t}function IZ(e){try{return BZ(e)}catch{return so}}function Py(e){var t=IZ(e.slice(5,-1));return t===so?"":t}var UZ=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],HZ=["dx","dy","angle","className","breakAll"];function Dg(){return Dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dg.apply(this,arguments)}function o2(e,t){if(e==null)return{};var n=qZ(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 qZ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function s2(e,t){return VZ(e)||YZ(e,t)||GZ(e,t)||FZ()}function FZ(){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 GZ(e,t){if(e){if(typeof e=="string")return c2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c2(e,t)}}function c2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function VZ(e){if(Array.isArray(e))return e}var YM=/[ \f\n\r\t\v\u2028\u2029]+/,VM=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(YM));var l=i.map(function(c){return{word:c,width:Nc(c,a).width}}),o=r?0:Nc(" ",a).width;return{wordsWithComputedWidth:l,spaceWidth:o}}catch{return null}},KZ=function(t,n,r,a,i){var l=t.maxLines,o=t.children,c=t.style,u=t.breakAll,f=V(l),d=o,h=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return P.reduce(function(C,L){var I=L.word,G=L.width,Y=C[C.length-1];if(Y&&(a==null||i||Y.width+G+r<Number(a)))Y.words.push(I),Y.width+=G+r;else{var ne={words:[I],width:G};C.push(ne)}return C},[])},p=h(n),y=function(P){return P.reduce(function(C,L){return C.width>L.width?C:L})};if(!f)return p;for(var m="…",x=function(P){var C=d.slice(0,P),L=VM({breakAll:u,style:c,children:C+m}).wordsWithComputedWidth,I=h(L),G=I.length>l||y(I).width>Number(a);return[G,I]},g=0,j=d.length-1,b=0,v;g<=j&&b<=d.length-1;){var S=Math.floor((g+j)/2),w=S-1,A=x(w),_=s2(A,2),E=_[0],N=_[1],k=x(S),M=s2(k,1),B=M[0];if(!E&&!B&&(g=S+1),E&&B&&(j=S-1),!E&&B){v=N;break}b++}return v||p},u2=function(t){var n=me(t)?[]:t.toString().split(YM);return[{words:n}]},XZ=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,l=t.breakAll,o=t.maxLines;if((n||r)&&!ji.isSsr){var c,u,f=VM({breakAll:l,children:a,style:i});if(f){var d=f.wordsWithComputedWidth,h=f.spaceWidth;c=d,u=h}else return u2(a);return KZ({breakAll:l,children:a,maxLines:o,style:i},c,u,n,r)}return u2(a)},f2="#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,o=l===void 0?"1em":l,c=t.capHeight,u=c===void 0?"0.71em":c,f=t.scaleToFit,d=f===void 0?!1:f,h=t.textAnchor,p=h===void 0?"start":h,y=t.verticalAnchor,m=y===void 0?"end":y,x=t.fill,g=x===void 0?f2:x,j=o2(t,UZ),b=O.useMemo(function(){return XZ({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]),v=j.dx,S=j.dy,w=j.angle,A=j.className,_=j.breakAll,E=o2(j,HZ);if(!_t(r)||!_t(i))return null;var N=r+(V(v)?v:0),k=i+(V(S)?S:0),M;switch(m){case"start":M=Py("calc(".concat(u,")"));break;case"middle":M=Py("calc(".concat((b.length-1)/2," * -").concat(o," + (").concat(u," / 2))"));break;default:M=Py("calc(".concat(b.length-1," * -").concat(o,")"));break}var B=[];if(d){var z=b[0].width,P=j.width;B.push("scale(".concat((V(P)?P/z:1)/z,")"))}return w&&B.push("rotate(".concat(w,", ").concat(N,", ").concat(k,")")),B.length&&(E.transform=B.join(" ")),T.createElement("text",Dg({},le(E,!0),{x:N,y:k,className:ye("recharts-text",A),textAnchor:p,fill:g.includes("url")?f2:g}),b.map(function(C,L){var I=C.words.join(_?"":" ");return T.createElement("tspan",{x:N,dy:L===0?M:o,key:"".concat(I,"-").concat(L)},I)}))};function fi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function WZ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Vx(e){let t,n,r;e.length!==2?(t=fi,n=(o,c)=>fi(e(o),c),r=(o,c)=>e(o)-c):(t=e===fi||e===WZ?e:QZ,n=e,r=e);function a(o,c,u=0,f=o.length){if(u<f){if(t(c,c)!==0)return f;do{const d=u+f>>>1;n(o[d],c)<0?u=d+1:f=d}while(u<f)}return u}function i(o,c,u=0,f=o.length){if(u<f){if(t(c,c)!==0)return f;do{const d=u+f>>>1;n(o[d],c)<=0?u=d+1:f=d}while(u<f)}return u}function l(o,c,u=0,f=o.length){const d=a(o,c,u,f-1);return d>u&&r(o[d-1],c)>-r(o[d],c)?d-1:d}return{left:a,center:l,right:i}}function QZ(){return 0}function KM(e){return e===null?NaN:+e}function*ZZ(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const JZ=Vx(fi),of=JZ.right;Vx(KM).center;class d2 extends Map{constructor(t,n=nJ){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(h2(this,t))}has(t){return super.has(h2(this,t))}set(t,n){return super.set(eJ(this,t),n)}delete(t){return super.delete(tJ(this,t))}}function h2({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function eJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function tJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function nJ(e){return e!==null&&typeof e=="object"?e.valueOf():e}function rJ(e=fi){if(e===fi)return XM;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 XM(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const aJ=Math.sqrt(50),iJ=Math.sqrt(10),lJ=Math.sqrt(2);function bh(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>=aJ?10:i>=iJ?5:i>=lJ?2:1;let o,c,u;return a<0?(u=Math.pow(10,-a)/l,o=Math.round(e*u),c=Math.round(t*u),o/u<e&&++o,c/u>t&&--c,u=-u):(u=Math.pow(10,a)*l,o=Math.round(e/u),c=Math.round(t/u),o*u<e&&++o,c*u>t&&--c),c<o&&.5<=n&&n<2?bh(e,t,n*2):[o,c,u]}function zg(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?bh(t,e,n):bh(e,t,n);if(!(i>=a))return[];const o=i-a+1,c=new Array(o);if(r)if(l<0)for(let u=0;u<o;++u)c[u]=(i-u)/-l;else for(let u=0;u<o;++u)c[u]=(i-u)*l;else if(l<0)for(let u=0;u<o;++u)c[u]=(a+u)/-l;else for(let u=0;u<o;++u)c[u]=(a+u)*l;return c}function Lg(e,t,n){return t=+t,e=+e,n=+n,bh(e,t,n)[2]}function Bg(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?Lg(t,e,n):Lg(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function p2(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function m2(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function WM(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?XM:rJ(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));WM(e,t,p,y,a)}const i=e[t];let l=n,o=r;for(tc(e,n,t),a(e[r],i)>0&&tc(e,n,r);l<o;){for(tc(e,l,o),++l,--o;a(e[l],i)<0;)++l;for(;a(e[o],i)>0;)--o}a(e[n],i)===0?tc(e,n,o):(++o,tc(e,o,r)),o<=t&&(n=o+1),t<=o&&(r=o-1)}return e}function tc(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function oJ(e,t,n){if(e=Float64Array.from(ZZ(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return m2(e);if(t>=1)return p2(e);var r,a=(r-1)*t,i=Math.floor(a),l=p2(WM(e,i).subarray(0,i+1)),o=m2(e.subarray(i+1));return l+(o-l)*(a-i)}}function sJ(e,t,n=KM){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),l=+n(e[i],i,e),o=+n(e[i+1],i+1,e);return l+(o-l)*(a-i)}}function cJ(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 Ig=Symbol("implicit");function Kx(){var e=new d2,t=[],n=[],r=Ig;function a(i){let l=e.get(i);if(l===void 0){if(r!==Ig)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 d2;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 Kx(t,n).unknown(r)},ir.apply(a,arguments),a}function ou(){var e=Kx().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,l,o=!1,c=0,u=0,f=.5;delete e.unknown;function d(){var h=t().length,p=a<r,y=p?a:r,m=p?r:a;i=(m-y)/Math.max(1,h-c+u*2),o&&(i=Math.floor(i)),y+=(m-y-i*(h-c))*f,l=i*(1-c),o&&(y=Math.round(y),l=Math.round(l));var x=cJ(h).map(function(g){return y+i*g});return n(p?x.reverse():x)}return e.domain=function(h){return arguments.length?(t(h),d()):t()},e.range=function(h){return arguments.length?([r,a]=h,r=+r,a=+a,d()):[r,a]},e.rangeRound=function(h){return[r,a]=h,r=+r,a=+a,o=!0,d()},e.bandwidth=function(){return l},e.step=function(){return i},e.round=function(h){return arguments.length?(o=!!h,d()):o},e.padding=function(h){return arguments.length?(c=Math.min(1,u=+h),d()):c},e.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),d()):c},e.paddingOuter=function(h){return arguments.length?(u=+h,d()):u},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),d()):f},e.copy=function(){return ou(t(),[r,a]).round(o).paddingInner(c).paddingOuter(u).align(f)},ir.apply(d(),arguments)}function QM(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return QM(t())},e}function Cc(){return QM(ou.apply(null,arguments).paddingInner(1))}function Xx(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ZM(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function sf(){}var su=.7,xh=1/su,So="\\s*([+-]?\\d+)\\s*",cu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Rr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",uJ=/^#([0-9a-f]{3,8})$/,fJ=new RegExp(`^rgb\\(${So},${So},${So}\\)$`),dJ=new RegExp(`^rgb\\(${Rr},${Rr},${Rr}\\)$`),hJ=new RegExp(`^rgba\\(${So},${So},${So},${cu}\\)$`),pJ=new RegExp(`^rgba\\(${Rr},${Rr},${Rr},${cu}\\)$`),mJ=new RegExp(`^hsl\\(${cu},${Rr},${Rr}\\)$`),yJ=new RegExp(`^hsla\\(${cu},${Rr},${Rr},${cu}\\)$`),y2={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};Xx(sf,uu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:v2,formatHex:v2,formatHex8:vJ,formatHsl:gJ,formatRgb:g2,toString:g2});function v2(){return this.rgb().formatHex()}function vJ(){return this.rgb().formatHex8()}function gJ(){return JM(this).formatHsl()}function g2(){return this.rgb().formatRgb()}function uu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=uJ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?b2(t):n===3?new fn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Hf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Hf(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=fJ.exec(e))?new fn(t[1],t[2],t[3],1):(t=dJ.exec(e))?new fn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=hJ.exec(e))?Hf(t[1],t[2],t[3],t[4]):(t=pJ.exec(e))?Hf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=mJ.exec(e))?S2(t[1],t[2]/100,t[3]/100,1):(t=yJ.exec(e))?S2(t[1],t[2]/100,t[3]/100,t[4]):y2.hasOwnProperty(e)?b2(y2[e]):e==="transparent"?new fn(NaN,NaN,NaN,0):null}function b2(e){return new fn(e>>16&255,e>>8&255,e&255,1)}function Hf(e,t,n,r){return r<=0&&(e=t=n=NaN),new fn(e,t,n,r)}function bJ(e){return e instanceof sf||(e=uu(e)),e?(e=e.rgb(),new fn(e.r,e.g,e.b,e.opacity)):new fn}function Ug(e,t,n,r){return arguments.length===1?bJ(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}Xx(fn,Ug,ZM(sf,{brighter(e){return e=e==null?xh:Math.pow(xh,e),new fn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?su:Math.pow(su,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),jh(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:x2,formatHex:x2,formatHex8:xJ,formatRgb:j2,toString:j2}));function x2(){return`#${Fi(this.r)}${Fi(this.g)}${Fi(this.b)}`}function xJ(){return`#${Fi(this.r)}${Fi(this.g)}${Fi(this.b)}${Fi((isNaN(this.opacity)?1:this.opacity)*255)}`}function j2(){const e=jh(this.opacity);return`${e===1?"rgb(":"rgba("}${ll(this.r)}, ${ll(this.g)}, ${ll(this.b)}${e===1?")":`, ${e})`}`}function jh(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 S2(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 JM(e){if(e instanceof hr)return new hr(e.h,e.s,e.l,e.opacity);if(e instanceof sf||(e=uu(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,o=i-a,c=(i+a)/2;return o?(t===i?l=(n-r)/o+(n<r)*6:n===i?l=(r-t)/o+2:l=(t-n)/o+4,o/=c<.5?i+a:2-i-a,l*=60):o=c>0&&c<1?0:l,new hr(l,o,c,e.opacity)}function jJ(e,t,n,r){return arguments.length===1?JM(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}Xx(hr,jJ,ZM(sf,{brighter(e){return e=e==null?xh:Math.pow(xh,e),new hr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?su:Math.pow(su,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(Ry(e>=240?e-240:e+120,a,r),Ry(e,a,r),Ry(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new hr(w2(this.h),qf(this.s),qf(this.l),jh(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=jh(this.opacity);return`${e===1?"hsl(":"hsla("}${w2(this.h)}, ${qf(this.s)*100}%, ${qf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function w2(e){return e=(e||0)%360,e<0?e+360:e}function qf(e){return Math.max(0,Math.min(1,e||0))}function Ry(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 Wx=e=>()=>e;function SJ(e,t){return function(n){return e+n*t}}function wJ(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 OJ(e){return(e=+e)==1?ek:function(t,n){return n-t?wJ(t,n,e):Wx(isNaN(t)?n:t)}}function ek(e,t){var n=t-e;return n?SJ(e,n):Wx(isNaN(e)?t:e)}const O2=function e(t){var n=OJ(t);function r(a,i){var l=n((a=Ug(a)).r,(i=Ug(i)).r),o=n(a.g,i.g),c=n(a.b,i.b),u=ek(a.opacity,i.opacity);return function(f){return a.r=l(f),a.g=o(f),a.b=c(f),a.opacity=u(f),a+""}}return r.gamma=e,r}(1);function AJ(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 EJ(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function _J(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]=Is(e[l],t[l]);for(;l<n;++l)i[l]=t[l];return function(o){for(l=0;l<r;++l)i[l]=a[l](o);return i}}function TJ(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Sh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function NJ(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]=Is(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var Hg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Dy=new RegExp(Hg.source,"g");function CJ(e){return function(){return e}}function MJ(e){return function(t){return e(t)+""}}function kJ(e,t){var n=Hg.lastIndex=Dy.lastIndex=0,r,a,i,l=-1,o=[],c=[];for(e=e+"",t=t+"";(r=Hg.exec(e))&&(a=Dy.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),o[l]?o[l]+=i:o[++l]=i),(r=r[0])===(a=a[0])?o[l]?o[l]+=a:o[++l]=a:(o[++l]=null,c.push({i:l,x:Sh(r,a)})),n=Dy.lastIndex;return n<t.length&&(i=t.slice(n),o[l]?o[l]+=i:o[++l]=i),o.length<2?c[0]?MJ(c[0].x):CJ(t):(t=c.length,function(u){for(var f=0,d;f<t;++f)o[(d=c[f]).i]=d.x(u);return o.join("")})}function Is(e,t){var n=typeof t,r;return t==null||n==="boolean"?Wx(t):(n==="number"?Sh:n==="string"?(r=uu(t))?(t=r,O2):kJ:t instanceof uu?O2:t instanceof Date?TJ:EJ(t)?AJ:Array.isArray(t)?_J:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?NJ:Sh)(e,t)}function Qx(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function $J(e,t){t===void 0&&(t=e,e=Is);for(var n=0,r=t.length-1,a=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(a,a=t[++n]);return function(l){var o=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return i[o](l-o)}}function PJ(e){return function(){return e}}function wh(e){return+e}var A2=[0,1];function tn(e){return e}function qg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:PJ(isNaN(t)?NaN:.5)}function RJ(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function DJ(e,t,n){var r=e[0],a=e[1],i=t[0],l=t[1];return a<r?(r=qg(a,r),i=n(l,i)):(r=qg(r,a),i=n(i,l)),function(o){return i(r(o))}}function zJ(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]=qg(e[l],e[l+1]),i[l]=n(t[l],t[l+1]);return function(o){var c=of(e,o,1,r)-1;return i[c](a[c](o))}}function cf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function sm(){var e=A2,t=A2,n=Is,r,a,i,l=tn,o,c,u;function f(){var h=Math.min(e.length,t.length);return l!==tn&&(l=RJ(e[0],e[h-1])),o=h>2?zJ:DJ,c=u=null,d}function d(h){return h==null||isNaN(h=+h)?i:(c||(c=o(e.map(r),t,n)))(r(l(h)))}return d.invert=function(h){return l(a((u||(u=o(t,e.map(r),Sh)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,wh),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=Qx,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 Zx(){return sm()(tn,tn)}function LJ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Oh(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 Wo(e){return e=Oh(Math.abs(e)),e?e[1]:NaN}function BJ(e,t){return function(n,r){for(var a=n.length,i=[],l=0,o=e[0],c=0;a>0&&o>0&&(c+o+1>r&&(o=Math.max(1,r-c)),i.push(n.substring(a-=o,a+o)),!((c+=o+1)>r));)o=e[l=(l+1)%e.length];return i.reverse().join(t)}}function IJ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var UJ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function fu(e){if(!(t=UJ.exec(e)))throw new Error("invalid format: "+e);var t;return new Jx({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]})}fu.prototype=Jx.prototype;function Jx(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+""}Jx.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 HJ(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 Ah;function qJ(e,t){var n=Oh(e,t);if(!n)return Ah=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(Ah=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")+Oh(e,Math.max(0,t+i-1))[0]}function E2(e,t){var n=Oh(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 _2={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:LJ,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)=>E2(e*100,t),r:E2,s:qJ,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function T2(e){return e}var N2=Array.prototype.map,C2=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function FJ(e){var t=e.grouping===void 0||e.thousands===void 0?T2:BJ(N2.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?T2:IJ(N2.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(d,h){d=fu(d);var p=d.fill,y=d.align,m=d.sign,x=d.symbol,g=d.zero,j=d.width,b=d.comma,v=d.precision,S=d.trim,w=d.type;w==="n"?(b=!0,w="g"):_2[w]||(v===void 0&&(v=12),S=!0,w="g"),(g||p==="0"&&y==="=")&&(g=!0,p="0",y="=");var A=(h&&h.prefix!==void 0?h.prefix:"")+(x==="$"?n:x==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():""),_=(x==="$"?r:/[%p]/.test(w)?l:"")+(h&&h.suffix!==void 0?h.suffix:""),E=_2[w],N=/[defgprs%]/.test(w);v=v===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function k(M){var B=A,z=_,P,C,L;if(w==="c")z=E(M)+z,M="";else{M=+M;var I=M<0||1/M<0;if(M=isNaN(M)?c:E(Math.abs(M),v),S&&(M=HJ(M)),I&&+M==0&&m!=="+"&&(I=!1),B=(I?m==="("?m:o:m==="-"||m==="("?"":m)+B,z=(w==="s"&&!isNaN(M)&&Ah!==void 0?C2[8+Ah/3]:"")+z+(I&&m==="("?")":""),N){for(P=-1,C=M.length;++P<C;)if(L=M.charCodeAt(P),48>L||L>57){z=(L===46?a+M.slice(P+1):M.slice(P))+z,M=M.slice(0,P);break}}}b&&!g&&(M=t(M,1/0));var G=B.length+M.length+z.length,Y=G<j?new Array(j-G+1).join(p):"";switch(b&&g&&(M=t(Y+M,Y.length?j-z.length:1/0),Y=""),y){case"<":M=B+M+z+Y;break;case"=":M=B+Y+M+z;break;case"^":M=Y.slice(0,G=Y.length>>1)+B+M+z+Y.slice(G);break;default:M=Y+B+M+z;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(Wo(h)/3)))*3,y=Math.pow(10,-p),m=u((d=fu(d),d.type="f",d),{suffix:C2[8+p/3]});return function(x){return m(y*x)}}return{format:u,formatPrefix:f}}var Ff,e1,tk;GJ({thousands:",",grouping:[3],currency:["$",""]});function GJ(e){return Ff=FJ(e),e1=Ff.format,tk=Ff.formatPrefix,Ff}function YJ(e){return Math.max(0,-Wo(Math.abs(e)))}function VJ(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Wo(t)/3)))*3-Wo(Math.abs(e)))}function KJ(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Wo(t)-Wo(e))+1}function nk(e,t,n,r){var a=Bg(e,t,n),i;switch(r=fu(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=VJ(a,l))&&(r.precision=i),tk(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=KJ(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=YJ(a))&&(r.precision=i-(r.type==="%")*2);break}}return e1(r)}function Si(e){var t=e.domain;return e.ticks=function(n){var r=t();return zg(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return nk(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,l=r[a],o=r[i],c,u,f=10;for(o<l&&(u=l,l=o,o=u,u=a,a=i,i=u);f-- >0;){if(u=Lg(l,o,n),u===c)return r[a]=l,r[i]=o,t(r);if(u>0)l=Math.floor(l/u)*u,o=Math.ceil(o/u)*u;else if(u<0)l=Math.ceil(l*u)/u,o=Math.floor(o*u)/u;else break;c=u}return e},e}function Eh(){var e=Zx();return e.copy=function(){return cf(e,Eh())},ir.apply(e,arguments),Si(e)}function rk(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,wh),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return rk(e).unknown(t)},e=arguments.length?Array.from(e,wh):[0,1],Si(n)}function ak(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 M2(e){return Math.log(e)}function k2(e){return Math.exp(e)}function XJ(e){return-Math.log(-e)}function WJ(e){return-Math.exp(-e)}function QJ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function ZJ(e){return e===10?QJ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function JJ(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 $2(e){return(t,n)=>-e(-t,n)}function t1(e){const t=e(M2,k2),n=t.domain;let r=10,a,i;function l(){return a=JJ(r),i=ZJ(r),n()[0]<0?(a=$2(a),i=$2(i),e(XJ,WJ)):e(M2,k2),t}return t.base=function(o){return arguments.length?(r=+o,l()):r},t.domain=function(o){return arguments.length?(n(o),l()):n()},t.ticks=o=>{const c=n();let u=c[0],f=c[c.length-1];const d=f<u;d&&([u,f]=[f,u]);let h=a(u),p=a(f),y,m;const x=o==null?10:+o;let g=[];if(!(r%1)&&p-h<x){if(h=Math.floor(h),p=Math.ceil(p),u>0){for(;h<=p;++h)for(y=1;y<r;++y)if(m=h<0?y/i(-h):y*i(h),!(m<u)){if(m>f)break;g.push(m)}}else for(;h<=p;++h)for(y=r-1;y>=1;--y)if(m=h>0?y/i(-h):y*i(h),!(m<u)){if(m>f)break;g.push(m)}g.length*2<x&&(g=zg(u,f,x))}else g=zg(h,p,Math.min(p-h,x)).map(i);return d?g.reverse():g},t.tickFormat=(o,c)=>{if(o==null&&(o=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=fu(c)).precision==null&&(c.trim=!0),c=e1(c)),o===1/0)return c;const u=Math.max(1,r*o/t.ticks().length);return f=>{let d=f/i(Math.round(a(f)));return d*r<r-.5&&(d*=r),d<=u?c(f):""}},t.nice=()=>n(ak(n(),{floor:o=>i(Math.floor(a(o))),ceil:o=>i(Math.ceil(a(o)))})),t}function ik(){const e=t1(sm()).domain([1,10]);return e.copy=()=>cf(e,ik()).base(e.base()),ir.apply(e,arguments),e}function P2(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function R2(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function n1(e){var t=1,n=e(P2(t),R2(t));return n.constant=function(r){return arguments.length?e(P2(t=+r),R2(t)):t},Si(n)}function lk(){var e=n1(sm());return e.copy=function(){return cf(e,lk()).constant(e.constant())},ir.apply(e,arguments)}function D2(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function eee(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function tee(e){return e<0?-e*e:e*e}function r1(e){var t=e(tn,tn),n=1;function r(){return n===1?e(tn,tn):n===.5?e(eee,tee):e(D2(n),D2(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Si(t)}function a1(){var e=r1(sm());return e.copy=function(){return cf(e,a1()).exponent(e.exponent())},ir.apply(e,arguments),e}function nee(){return a1.apply(null,arguments).exponent(.5)}function z2(e){return Math.sign(e)*e*e}function ree(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ok(){var e=Zx(),t=[0,1],n=!1,r;function a(i){var l=ree(e(i));return isNaN(l)?r:n?Math.round(l):l}return a.invert=function(i){return e.invert(z2(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,wh)).map(z2)),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 ok(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},ir.apply(a,arguments),Si(a)}function sk(){var e=[],t=[],n=[],r;function a(){var l=0,o=Math.max(1,t.length);for(n=new Array(o-1);++l<o;)n[l-1]=sJ(e,l/o);return i}function i(l){return l==null||isNaN(l=+l)?r:t[of(n,l)]}return i.invertExtent=function(l){var o=t.indexOf(l);return o<0?[NaN,NaN]:[o>0?n[o-1]:e[0],o<n.length?n[o]:e[e.length-1]]},i.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let o of l)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(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 sk().domain(e).range(t).unknown(r)},ir.apply(i,arguments)}function ck(){var e=0,t=1,n=1,r=[.5],a=[0,1],i;function l(c){return c!=null&&c<=c?a[of(r,c,0,n)]:i}function o(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*t-(c-n)*e)/(n+1);return l}return l.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,o()):[e,t]},l.range=function(c){return arguments.length?(n=(a=Array.from(c)).length-1,o()):a.slice()},l.invertExtent=function(c){var u=a.indexOf(c);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},l.unknown=function(c){return arguments.length&&(i=c),l},l.thresholds=function(){return r.slice()},l.copy=function(){return ck().domain([e,t]).range(a).unknown(i)},ir.apply(Si(l),arguments)}function uk(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[of(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 uk().domain(e).range(t).unknown(n)},ir.apply(a,arguments)}const zy=new Date,Ly=new Date;function Nt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const l=a(i),o=a.ceil(i);return i-l<o-i?l:o},a.offset=(i,l)=>(t(i=new Date(+i),l==null?1:Math.floor(l)),i),a.range=(i,l,o)=>{const c=[];if(i=a.ceil(i),o=o==null?1:Math.floor(o),!(i<l)||!(o>0))return c;let u;do c.push(u=new Date(+i)),t(i,o),e(i);while(u<i&&i<l);return c},a.filter=i=>Nt(l=>{if(l>=l)for(;e(l),!i(l);)l.setTime(l-1)},(l,o)=>{if(l>=l)if(o<0)for(;++o<=0;)for(;t(l,-1),!i(l););else for(;--o>=0;)for(;t(l,1),!i(l););}),n&&(a.count=(i,l)=>(zy.setTime(+i),Ly.setTime(+l),e(zy),e(Ly),Math.floor(n(zy,Ly))),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 _h=Nt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);_h.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Nt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):_h);_h.range;const ia=1e3,Qn=ia*60,la=Qn*60,ja=la*24,i1=ja*7,L2=ja*30,By=ja*365,Gi=Nt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ia)},(e,t)=>(t-e)/ia,e=>e.getUTCSeconds());Gi.range;const l1=Nt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ia)},(e,t)=>{e.setTime(+e+t*Qn)},(e,t)=>(t-e)/Qn,e=>e.getMinutes());l1.range;const o1=Nt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Qn)},(e,t)=>(t-e)/Qn,e=>e.getUTCMinutes());o1.range;const s1=Nt(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());s1.range;const c1=Nt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*la)},(e,t)=>(t-e)/la,e=>e.getUTCHours());c1.range;const uf=Nt(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);uf.range;const cm=Nt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ja,e=>e.getUTCDate()-1);cm.range;const fk=Nt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ja,e=>Math.floor(e/ja));fk.range;function kl(e){return Nt(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)/i1)}const um=kl(0),Th=kl(1),aee=kl(2),iee=kl(3),Qo=kl(4),lee=kl(5),oee=kl(6);um.range;Th.range;aee.range;iee.range;Qo.range;lee.range;oee.range;function $l(e){return Nt(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)/i1)}const fm=$l(0),Nh=$l(1),see=$l(2),cee=$l(3),Zo=$l(4),uee=$l(5),fee=$l(6);fm.range;Nh.range;see.range;cee.range;Zo.range;uee.range;fee.range;const u1=Nt(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());u1.range;const f1=Nt(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());f1.range;const Sa=Nt(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:Nt(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=Nt(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:Nt(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 dk(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,i1],[t,1,L2],[t,3,3*L2],[e,1,By]];function o(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=Vx(([,,x])=>x).right(l,h);if(p===l.length)return e.every(Bg(u/By,f/By,d));if(p===0)return _h.every(Math.max(Bg(u,f,d),1));const[y,m]=l[h/l[p-1][2]<l[p][2]/h?p-1:p];return y.every(m)}return[o,c]}const[dee,hee]=dk(wa,f1,fm,fk,c1,o1),[pee,mee]=dk(Sa,u1,um,uf,s1,l1);function Iy(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 Uy(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 nc(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function yee(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,l=e.shortDays,o=e.months,c=e.shortMonths,u=rc(a),f=ac(a),d=rc(i),h=ac(i),p=rc(l),y=ac(l),m=rc(o),x=ac(o),g=rc(c),j=ac(c),b={a:L,A:I,b:G,B:Y,c:null,d:F2,e:F2,f:Bee,g:Xee,G:Qee,H:Dee,I:zee,j:Lee,L:hk,m:Iee,M:Uee,p:ne,q:X,Q:V2,s:K2,S:Hee,u:qee,U:Fee,V:Gee,w:Yee,W:Vee,x:null,X:null,y:Kee,Y:Wee,Z:Zee,"%":Y2},v={a:ie,A:D,b:W,B:ce,c:null,d:G2,e:G2,f:nte,g:dte,G:pte,H:Jee,I:ete,j:tte,L:mk,m:rte,M:ate,p:de,q:Ve,Q:V2,s:K2,S:ite,u:lte,U:ote,V:ste,w:cte,W:ute,x:null,X:null,y:fte,Y:hte,Z:mte,"%":Y2},S={a:N,A:k,b:M,B,c:z,d:H2,e:H2,f:kee,g:U2,G:I2,H:q2,I:q2,j:Tee,L:Mee,m:_ee,M:Nee,p:E,q:Eee,Q:Pee,s:Ree,S:Cee,u:jee,U:See,V:wee,w:xee,W:Oee,x:P,X:C,y:U2,Y:I2,Z:Aee,"%":$ee};b.x=w(n,b),b.X=w(r,b),b.c=w(t,b),v.x=w(n,v),v.X=w(r,v),v.c=w(t,v);function w(ee,se){return function(J){var F=[],Pe=-1,be=0,at=ee.length,ct,mt,Na;for(J instanceof Date||(J=new Date(+J));++Pe<at;)ee.charCodeAt(Pe)===37&&(F.push(ee.slice(be,Pe)),(mt=B2[ct=ee.charAt(++Pe)])!=null?ct=ee.charAt(++Pe):mt=ct==="e"?" ":"0",(Na=se[ct])&&(ct=Na(J,mt)),F.push(ct),be=Pe+1);return F.push(ee.slice(be,Pe)),F.join("")}}function A(ee,se){return function(J){var F=nc(1900,void 0,1),Pe=_(F,ee,J+="",0),be,at;if(Pe!=J.length)return null;if("Q"in F)return new Date(F.Q);if("s"in F)return new Date(F.s*1e3+("L"in F?F.L:0));if(se&&!("Z"in F)&&(F.Z=0),"p"in F&&(F.H=F.H%12+F.p*12),F.m===void 0&&(F.m="q"in F?F.q:0),"V"in F){if(F.V<1||F.V>53)return null;"w"in F||(F.w=1),"Z"in F?(be=Uy(nc(F.y,0,1)),at=be.getUTCDay(),be=at>4||at===0?Nh.ceil(be):Nh(be),be=cm.offset(be,(F.V-1)*7),F.y=be.getUTCFullYear(),F.m=be.getUTCMonth(),F.d=be.getUTCDate()+(F.w+6)%7):(be=Iy(nc(F.y,0,1)),at=be.getDay(),be=at>4||at===0?Th.ceil(be):Th(be),be=uf.offset(be,(F.V-1)*7),F.y=be.getFullYear(),F.m=be.getMonth(),F.d=be.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),at="Z"in F?Uy(nc(F.y,0,1)).getUTCDay():Iy(nc(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(at+5)%7:F.w+F.U*7-(at+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,Uy(F)):Iy(F)}}function _(ee,se,J,F){for(var Pe=0,be=se.length,at=J.length,ct,mt;Pe<be;){if(F>=at)return-1;if(ct=se.charCodeAt(Pe++),ct===37){if(ct=se.charAt(Pe++),mt=S[ct in B2?se.charAt(Pe++):ct],!mt||(F=mt(ee,J,F))<0)return-1}else if(ct!=J.charCodeAt(F++))return-1}return F}function E(ee,se,J){var F=u.exec(se.slice(J));return F?(ee.p=f.get(F[0].toLowerCase()),J+F[0].length):-1}function N(ee,se,J){var F=p.exec(se.slice(J));return F?(ee.w=y.get(F[0].toLowerCase()),J+F[0].length):-1}function k(ee,se,J){var F=d.exec(se.slice(J));return F?(ee.w=h.get(F[0].toLowerCase()),J+F[0].length):-1}function M(ee,se,J){var F=g.exec(se.slice(J));return F?(ee.m=j.get(F[0].toLowerCase()),J+F[0].length):-1}function B(ee,se,J){var F=m.exec(se.slice(J));return F?(ee.m=x.get(F[0].toLowerCase()),J+F[0].length):-1}function z(ee,se,J){return _(ee,t,se,J)}function P(ee,se,J){return _(ee,n,se,J)}function C(ee,se,J){return _(ee,r,se,J)}function L(ee){return l[ee.getDay()]}function I(ee){return i[ee.getDay()]}function G(ee){return c[ee.getMonth()]}function Y(ee){return o[ee.getMonth()]}function ne(ee){return a[+(ee.getHours()>=12)]}function X(ee){return 1+~~(ee.getMonth()/3)}function ie(ee){return l[ee.getUTCDay()]}function D(ee){return i[ee.getUTCDay()]}function W(ee){return c[ee.getUTCMonth()]}function ce(ee){return o[ee.getUTCMonth()]}function de(ee){return a[+(ee.getUTCHours()>=12)]}function Ve(ee){return 1+~~(ee.getUTCMonth()/3)}return{format:function(ee){var se=w(ee+="",b);return se.toString=function(){return ee},se},parse:function(ee){var se=A(ee+="",!1);return se.toString=function(){return ee},se},utcFormat:function(ee){var se=w(ee+="",v);return se.toString=function(){return ee},se},utcParse:function(ee){var se=A(ee+="",!0);return se.toString=function(){return ee},se}}}var B2={"-":"",_:" ",0:"0"},Dt=/^\s*\d+/,vee=/^%/,gee=/[\\^$*+?|[\]().{}]/g;function Ne(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 bee(e){return e.replace(gee,"\\$&")}function rc(e){return new RegExp("^(?:"+e.map(bee).join("|")+")","i")}function ac(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function xee(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function jee(e,t,n){var r=Dt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function See(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function wee(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Oee(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function I2(e,t,n){var r=Dt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function U2(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 Aee(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 Eee(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 _ee(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 H2(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Tee(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 q2(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Nee(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Cee(e,t,n){var r=Dt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Mee(e,t,n){var r=Dt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function kee(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 $ee(e,t,n){var r=vee.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Pee(e,t,n){var r=Dt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ree(e,t,n){var r=Dt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function F2(e,t){return Ne(e.getDate(),t,2)}function Dee(e,t){return Ne(e.getHours(),t,2)}function zee(e,t){return Ne(e.getHours()%12||12,t,2)}function Lee(e,t){return Ne(1+uf.count(Sa(e),e),t,3)}function hk(e,t){return Ne(e.getMilliseconds(),t,3)}function Bee(e,t){return hk(e,t)+"000"}function Iee(e,t){return Ne(e.getMonth()+1,t,2)}function Uee(e,t){return Ne(e.getMinutes(),t,2)}function Hee(e,t){return Ne(e.getSeconds(),t,2)}function qee(e){var t=e.getDay();return t===0?7:t}function Fee(e,t){return Ne(um.count(Sa(e)-1,e),t,2)}function pk(e){var t=e.getDay();return t>=4||t===0?Qo(e):Qo.ceil(e)}function Gee(e,t){return e=pk(e),Ne(Qo.count(Sa(e),e)+(Sa(e).getDay()===4),t,2)}function Yee(e){return e.getDay()}function Vee(e,t){return Ne(Th.count(Sa(e)-1,e),t,2)}function Kee(e,t){return Ne(e.getFullYear()%100,t,2)}function Xee(e,t){return e=pk(e),Ne(e.getFullYear()%100,t,2)}function Wee(e,t){return Ne(e.getFullYear()%1e4,t,4)}function Qee(e,t){var n=e.getDay();return e=n>=4||n===0?Qo(e):Qo.ceil(e),Ne(e.getFullYear()%1e4,t,4)}function Zee(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ne(t/60|0,"0",2)+Ne(t%60,"0",2)}function G2(e,t){return Ne(e.getUTCDate(),t,2)}function Jee(e,t){return Ne(e.getUTCHours(),t,2)}function ete(e,t){return Ne(e.getUTCHours()%12||12,t,2)}function tte(e,t){return Ne(1+cm.count(wa(e),e),t,3)}function mk(e,t){return Ne(e.getUTCMilliseconds(),t,3)}function nte(e,t){return mk(e,t)+"000"}function rte(e,t){return Ne(e.getUTCMonth()+1,t,2)}function ate(e,t){return Ne(e.getUTCMinutes(),t,2)}function ite(e,t){return Ne(e.getUTCSeconds(),t,2)}function lte(e){var t=e.getUTCDay();return t===0?7:t}function ote(e,t){return Ne(fm.count(wa(e)-1,e),t,2)}function yk(e){var t=e.getUTCDay();return t>=4||t===0?Zo(e):Zo.ceil(e)}function ste(e,t){return e=yk(e),Ne(Zo.count(wa(e),e)+(wa(e).getUTCDay()===4),t,2)}function cte(e){return e.getUTCDay()}function ute(e,t){return Ne(Nh.count(wa(e)-1,e),t,2)}function fte(e,t){return Ne(e.getUTCFullYear()%100,t,2)}function dte(e,t){return e=yk(e),Ne(e.getUTCFullYear()%100,t,2)}function hte(e,t){return Ne(e.getUTCFullYear()%1e4,t,4)}function pte(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Zo(e):Zo.ceil(e),Ne(e.getUTCFullYear()%1e4,t,4)}function mte(){return"+0000"}function Y2(){return"%"}function V2(e){return+e}function K2(e){return Math.floor(+e/1e3)}var ql,vk,gk;yte({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 yte(e){return ql=yee(e),vk=ql.format,ql.parse,gk=ql.utcFormat,ql.utcParse,ql}function vte(e){return new Date(e)}function gte(e){return e instanceof Date?+e:+new Date(+e)}function d1(e,t,n,r,a,i,l,o,c,u){var f=Zx(),d=f.invert,h=f.domain,p=u(".%L"),y=u(":%S"),m=u("%I:%M"),x=u("%I %p"),g=u("%a %d"),j=u("%b %d"),b=u("%B"),v=u("%Y");function S(w){return(c(w)<w?p:o(w)<w?y:l(w)<w?m:i(w)<w?x:r(w)<w?a(w)<w?g:j:n(w)<w?b:v)(w)}return f.invert=function(w){return new Date(d(w))},f.domain=function(w){return arguments.length?h(Array.from(w,gte)):h().map(vte)},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(ak(A,w)):f},f.copy=function(){return cf(f,d1(e,t,n,r,a,i,l,o,c,u))},f}function bte(){return ir.apply(d1(pee,mee,Sa,u1,um,uf,s1,l1,Gi,vk).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function xte(){return ir.apply(d1(dee,hee,wa,f1,fm,cm,c1,o1,Gi,gk).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function dm(){var e=0,t=1,n,r,a,i,l=tn,o=!1,c;function u(d){return d==null||isNaN(d=+d)?c:l(a===0?.5:(d=(i(d)-n)*a,o?Math.max(0,Math.min(1,d)):d))}u.domain=function(d){return arguments.length?([e,t]=d,n=i(e=+e),r=i(t=+t),a=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(d){return arguments.length?(o=!!d,u):o},u.interpolator=function(d){return arguments.length?(l=d,u):l};function f(d){return function(h){var p,y;return arguments.length?([p,y]=h,l=d(p,y),u):[l(0),l(1)]}}return u.range=f(Is),u.rangeRound=f(Qx),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 bk(){var e=Si(dm()(tn));return e.copy=function(){return wi(e,bk())},_a.apply(e,arguments)}function xk(){var e=t1(dm()).domain([1,10]);return e.copy=function(){return wi(e,xk()).base(e.base())},_a.apply(e,arguments)}function jk(){var e=n1(dm());return e.copy=function(){return wi(e,jk()).constant(e.constant())},_a.apply(e,arguments)}function h1(){var e=r1(dm());return e.copy=function(){return wi(e,h1()).exponent(e.exponent())},_a.apply(e,arguments)}function jte(){return h1.apply(null,arguments).exponent(.5)}function Sk(){var e=[],t=tn;function n(r){if(r!=null&&!isNaN(r=+r))return t((of(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)=>oJ(e,i/r))},n.copy=function(){return Sk(t).domain(e)},_a.apply(n,arguments)}function hm(){var e=0,t=.5,n=1,r=1,a,i,l,o,c,u=tn,f,d=!1,h;function p(m){return isNaN(m=+m)?h:(m=.5+((m=+f(m))-i)*(r*m<r*i?o:c),u(d?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,n]=m,a=f(e=+e),i=f(t=+t),l=f(n=+n),o=a===i?0:.5/(i-a),c=i===l?0:.5/(l-i),r=i<a?-1:1,p):[e,t,n]},p.clamp=function(m){return arguments.length?(d=!!m,p):d},p.interpolator=function(m){return arguments.length?(u=m,p):u};function y(m){return function(x){var g,j,b;return arguments.length?([g,j,b]=x,u=$J(m,[g,j,b]),p):[u(0),u(.5),u(1)]}}return p.range=y(Is),p.rangeRound=y(Qx),p.unknown=function(m){return arguments.length?(h=m,p):h},function(m){return f=m,a=m(e),i=m(t),l=m(n),o=a===i?0:.5/(i-a),c=i===l?0:.5/(l-i),r=i<a?-1:1,p}}function wk(){var e=Si(hm()(tn));return e.copy=function(){return wi(e,wk())},_a.apply(e,arguments)}function Ok(){var e=t1(hm()).domain([.1,1,10]);return e.copy=function(){return wi(e,Ok()).base(e.base())},_a.apply(e,arguments)}function Ak(){var e=n1(hm());return e.copy=function(){return wi(e,Ak()).constant(e.constant())},_a.apply(e,arguments)}function p1(){var e=r1(hm());return e.copy=function(){return wi(e,p1()).exponent(e.exponent())},_a.apply(e,arguments)}function Ste(){return p1.apply(null,arguments).exponent(.5)}const X2=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ou,scaleDiverging:wk,scaleDivergingLog:Ok,scaleDivergingPow:p1,scaleDivergingSqrt:Ste,scaleDivergingSymlog:Ak,scaleIdentity:rk,scaleImplicit:Ig,scaleLinear:Eh,scaleLog:ik,scaleOrdinal:Kx,scalePoint:Cc,scalePow:a1,scaleQuantile:sk,scaleQuantize:ck,scaleRadial:ok,scaleSequential:bk,scaleSequentialLog:xk,scaleSequentialPow:h1,scaleSequentialQuantile:Sk,scaleSequentialSqrt:jte,scaleSequentialSymlog:jk,scaleSqrt:nee,scaleSymlog:lk,scaleThreshold:uk,scaleTime:bte,scaleUtc:xte,tickFormat:nk},Symbol.toStringTag,{value:"Module"}));var wte=Ms;function Ote(e,t,n){for(var r=-1,a=e.length;++r<a;){var i=e[r],l=t(i);if(l!=null&&(o===void 0?l===l&&!wte(l):n(l,o)))var o=l,c=i}return c}var pm=Ote;function Ate(e,t){return e>t}var Ek=Ate,Ete=pm,_te=Ek,Tte=Bs;function Nte(e){return e&&e.length?Ete(e,Tte,_te):void 0}var Cte=Nte;const ei=$e(Cte);function Mte(e,t){return e<t}var _k=Mte,kte=pm,$te=_k,Pte=Bs;function Rte(e){return e&&e.length?kte(e,Pte,$te):void 0}var Dte=Rte;const mm=$e(Dte);var zte=Tx,Lte=qr,Bte=DM,Ite=yn;function Ute(e,t){var n=Ite(e)?zte:Bte;return n(e,Lte(t))}var Hte=Ute,qte=PM,Fte=Hte;function Gte(e,t){return qte(Fte(e,t),1)}var Yte=Gte;const Vte=$e(Yte);var Kte=qx;function Xte(e,t){return Kte(e,t)}var Wte=Xte;const xl=$e(Wte);var Us=1e9,Qte={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},y1,tt=!0,tr="[DecimalError] ",ol=tr+"Invalid argument: ",m1=tr+"Exponent out of range: ",Hs=Math.floor,Ii=Math.pow,Zte=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,An,Mt=1e7,We=7,Tk=9007199254740991,Ch=Hs(Tk/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(du(n,i),du(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?Mk(t,e):Nk(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 Ck(this)};re.naturalLogarithm=re.ln=function(){return du(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?Nk(t,e):Mk(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(ol+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,o=this,c=o.constructor;if(o.s<1){if(!o.s)return new c(0);throw Error(tr+"NaN")}for(e=St(o),tt=!1,a=Math.sqrt(+o),a==0||a==1/0?(t=kr(o.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Hs((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(o,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(o)){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,o,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;)o=i[a]+p[r]*h[a-r-1]+t,i[a--]=o%Mt|0,t=o/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,Us),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,Us),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,Us),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,o=this,c=o.constructor,u=12,f=+(e=new c(e));if(!e.s)return new c(An);if(o=new c(o),!o.s){if(e.s<1)throw Error(tr+"Infinity");return o}if(o.eq(An))return o;if(r=c.precision,e.eq(An))return Ue(o,r);if(t=e.e,n=e.d.length-1,l=t>=n,i=o.s,l){if((n=f<0?-f:f)<=Tk){for(a=new c(An),t=Math.ceil(r/We+4),tt=!1;n%2&&(a=a.times(o),Q2(a.d,t)),n=Hs(n/2),n!==0;)o=o.times(o),Q2(o.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,o.s=1,tt=!1,a=e.times(du(o,r+u)),tt=!0,a=Ck(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,Us),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,Us),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 Nk(e,t){var n,r,a,i,l,o,c,u,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),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,o=u.length):(r=u,a=l,o=c.length),l=Math.ceil(d/We),o=l>o?l+1:o+1,i>o&&(i=o,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(o=c.length,i=u.length,o-i<0&&(i=o,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/Mt|0,c[i]%=Mt;for(n&&(c.unshift(n),++a),o=c.length;c[--o]==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(ol+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,o=r.length;for(r=r.slice();o--;)i=r[o]*a+l,r[o]=i%Mt|0,l=i/Mt|0;return l&&r.unshift(l),r}function t(r,a,i,l){var o,c;if(i!=l)c=i>l?1:-1;else for(o=c=0;o<i;o++)if(r[o]!=a[o]){c=r[o]>a[o]?1:-1;break}return c}function n(r,a,i){for(var l=0;i--;)r[i]-=l,l=r[i]<a[i]?1:0,r[i]=l*Mt+r[i]-a[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,i,l){var o,c,u,f,d,h,p,y,m,x,g,j,b,v,S,w,A,_,E=r.constructor,N=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(N),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++)b=f*Mt+(k[u]||0),y[u]=b/M|0,f=b%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),v=A,m=k.slice(0,A),x=m.length;x<A;)m[x++]=0;_=M.slice(),_.unshift(0),w=M[0],M[1]>=Mt/2&&++w;do f=0,o=t(M,m,A,x),o<0?(g=m[0],A!=x&&(g=g*Mt+(m[1]||0)),f=g/w|0,f>1?(f>=Mt&&(f=Mt-1),d=e(M,f),h=d.length,x=m.length,o=t(d,m,h,x),o==1&&(f--,n(d,A<h?_:M,h))):(f==0&&(o=f=1),d=M.slice()),h=d.length,h<x&&d.unshift(0),n(m,d,x),o==-1&&(x=m.length,o=t(M,m,A,x),o<1&&(f++,n(m,A<x?_:M,x))),x=m.length):o===0&&(f++,m=[0]),y[u++]=f,o&&m[0]?m[x++]=k[v]||0:(m=[k[v]],x=1);while((v++<S||m[0]!==void 0)&&j--)}return y[0]||y.shift(),p.e=c,Ue(p,l?i+St(p)+1:i)}}();function Ck(e,t){var n,r,a,i,l,o,c=0,u=0,f=e.constructor,d=f.precision;if(St(e)>16)throw Error(m1+St(e));if(!e.s)return new f(An);for(tt=!1,o=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,o+=r,n=a=i=new f(An),f.precision=o;;){if(a=Ue(a.times(e),o),n=n.times(++c),l=i.plus(ha(a,n,o)),kr(l.d).slice(0,o)===kr(i.d).slice(0,o)){for(;u--;)i=Ue(i.times(i),o);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 Hy(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 du(e,t){var n,r,a,i,l,o,c,u,f,d=1,h=10,p=e,y=p.d,m=p.constructor,x=m.precision;if(p.s<1)throw Error(tr+(p.s?"NaN":"-Infinity"));if(p.eq(An))return new m(0);if(t==null?(tt=!1,u=x):u=t,p.eq(10))return t==null&&(tt=!0),Hy(m,u);if(u+=h,m.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 m("0."+n),i++):p=new m(r+"."+n.slice(1))}else return c=Hy(m,u+2,x).times(i+""),p=du(new m(r+"."+n.slice(1)),u-h).plus(c),m.precision=x,t==null?(tt=!0,Ue(p,x)):p;for(o=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=o.plus(ha(l,new m(a),u)),kr(c.d).slice(0,u)===kr(o.d).slice(0,u))return o=o.times(2),i!==0&&(o=o.plus(Hy(m,u+2,x).times(i+""))),o=ha(o,new m(d),u),m.precision=x,t==null?(tt=!0,Ue(o,x)):o;o=c,a+=2}}function W2(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=Hs(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>Ch||e.e<-Ch))throw Error(m1+n)}else e.s=0,e.e=0,e.d=[0];return e}function Ue(e,t,n){var r,a,i,l,o,c,u,f,d=e.d;for(l=1,i=d[0];i>=10;i/=10)l++;if(r=t-l,r<0)r+=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),o=u/i%10|0,c=t<0||d[f+1]!==void 0||u%i,c=n<4?(o||c)&&(n==0||n==(e.s<0?3:2)):o>5||o==5&&(n==4||c||n==6&&(r>0?a>0?u/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=Hs(-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>Ch||e.e<-Ch))throw Error(m1+St(e));return e}function Mk(e,t){var n,r,a,i,l,o,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,o=d.length):(n=d,r=u,o=c.length),a=Math.max(Math.ceil(p/We),o)+2,l>a&&(l=a,n.length=1),n.reverse(),a=l;a--;)n.push(0);n.reverse()}else{for(a=c.length,o=d.length,f=a<o,f&&(o=a),a=0;a<o;a++)if(c[a]!=d[a]){f=c[a]<d[a];break}l=0}for(f&&(n=c,c=d,d=n,t.s=-t.s),o=c.length,a=d.length-o;a>0;--a)c[o++]=0;for(a=d.length;a>l;){if(c[--a]<d[a]){for(i=a;i&&c[--i]===0;)c[i]=Mt-1;--c[i],c[a]+=Mt}c[a]-=d[a]}for(;c[--o]===0;)c.pop();for(;c[0]===0;c.shift())--r;return c[0]?(t.d=c,t.e=r,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 Q2(e,t){if(e.length>t)return e.length=t,!0}function kk(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(ol+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 W2(l,i.toString())}else if(typeof i!="string")throw Error(ol+i);if(i.charCodeAt(0)===45?(i=i.slice(1),l.s=-1):l.s=1,Zte.test(i))W2(l,i);else throw Error(ol+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=kk,a.config=a.set=Jte,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 Jte(e){if(!e||typeof e!="object")throw Error(tr+"Object expected");var t,n,r,a=["precision",1,Us,"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(Hs(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(ol+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(ol+n+": "+r);return this}var y1=kk(Qte);An=new y1(1);const Be=y1;function ene(e){return ane(e)||rne(e)||nne(e)||tne()}function tne(){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 nne(e,t){if(e){if(typeof e=="string")return Fg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fg(e,t)}}function rne(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function ane(e){if(Array.isArray(e))return Fg(e)}function Fg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ine=function(t){return t},$k={},Pk=function(t){return t===$k},Z2=function(t){return function n(){return arguments.length===0||arguments.length===1&&Pk(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},lne=function e(t,n){return t===1?n:Z2(function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var l=a.filter(function(o){return o!==$k}).length;return l>=t?n.apply(void 0,a):e(t-l,Z2(function(){for(var o=arguments.length,c=new Array(o),u=0;u<o;u++)c[u]=arguments[u];var f=a.map(function(d){return Pk(d)?c.shift():d});return n.apply(void 0,ene(f).concat(c))}))})},ym=function(t){return lne(t.length,t)},Gg=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},one=ym(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),sne=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return ine;var a=n.reverse(),i=a[0],l=a.slice(1);return function(){return l.reduce(function(o,c){return c(o)},i.apply(void 0,arguments))}},Yg=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Rk=function(t){var n=null,r=null;return function(){for(var a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];return n&&i.every(function(o,c){return o===n[c]})||(n=i,r=t.apply(void 0,i)),r}};function cne(e){var t;return e===0?t=1:t=Math.floor(new Be(e).abs().log(10).toNumber())+1,t}function une(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 fne=ym(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),dne=ym(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),hne=ym(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const vm={rangeStep:une,getDigitCount:cne,interpolateNumber:fne,uninterpolateNumber:dne,uninterpolateTruncation:hne};function Vg(e){return yne(e)||mne(e)||Dk(e)||pne()}function pne(){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 mne(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function yne(e){if(Array.isArray(e))return Kg(e)}function hu(e,t){return bne(e)||gne(e,t)||Dk(e,t)||vne()}function vne(){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 Dk(e,t){if(e){if(typeof e=="string")return Kg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kg(e,t)}}function Kg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gne(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,i=void 0;try{for(var l=e[Symbol.iterator](),o;!(r=(o=l.next()).done)&&(n.push(o.value),!(t&&n.length===t));r=!0);}catch(c){a=!0,i=c}finally{try{!r&&l.return!=null&&l.return()}finally{if(a)throw i}}return n}}function bne(e){if(Array.isArray(e))return e}function zk(e){var t=hu(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function Lk(e,t,n){if(e.lte(0))return new Be(0);var r=vm.getDigitCount(e.toNumber()),a=new Be(10).pow(r),i=e.div(a),l=r!==1?.05:.1,o=new Be(Math.ceil(i.div(l).toNumber())).add(n).mul(l),c=o.mul(a);return t?c:new Be(Math.ceil(c))}function xne(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(vm.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),o=sne(one(function(c){return a.add(new Be(c-l).mul(r)).toNumber()}),Gg);return o(0,t)}function Bk(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=Lk(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 o=Math.ceil(l.sub(e).div(i).toNumber()),c=Math.ceil(new Be(t).sub(l).div(i).toNumber()),u=o+c+1;return u>n?Bk(e,t,n,r,a+1):(u<n&&(c=t>0?c+(n-u):c,o=t>0?o:o+(n-u)),{step:i,tickMin:l.sub(new Be(o).mul(i)),tickMax:l.add(new Be(c).mul(i))})}function jne(e){var t=hu(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=Math.max(a,2),o=zk([n,r]),c=hu(o,2),u=c[0],f=c[1];if(u===-1/0||f===1/0){var d=f===1/0?[u].concat(Vg(Gg(0,a-1).map(function(){return 1/0}))):[].concat(Vg(Gg(0,a-1).map(function(){return-1/0})),[f]);return n>r?Yg(d):d}if(u===f)return xne(u,a,i);var h=Bk(u,f,l,i),p=h.step,y=h.tickMin,m=h.tickMax,x=vm.rangeStep(y,m.add(new Be(.1).mul(p)),p);return n>r?Yg(x):x}function Sne(e,t){var n=hu(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=zk([r,a]),o=hu(l,2),c=o[0],u=o[1];if(c===-1/0||u===1/0)return[r,a];if(c===u)return[c];var f=Math.max(t,2),d=Lk(new Be(u).sub(c).div(f-1),i,0),h=[].concat(Vg(vm.rangeStep(new Be(c),new Be(u).sub(new Be(.99).mul(d)),d)),[u]);return r>a?Yg(h):h}var wne=Rk(jne),One=Rk(Sne),Ane="Invariant failed";function Sl(e,t){throw new Error(Ane)}var Ene=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Jo(e){"@babel/helpers - typeof";return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jo(e)}function Mh(){return Mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mh.apply(this,arguments)}function _ne(e,t){return Mne(e)||Cne(e,t)||Nne(e,t)||Tne()}function Tne(){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 Nne(e,t){if(e){if(typeof e=="string")return J2(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 J2(e,t)}}function J2(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 Cne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function Mne(e){if(Array.isArray(e))return e}function kne(e,t){if(e==null)return{};var n=$ne(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 $ne(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 Pne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rne(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,Hk(r.key),r)}}function Dne(e,t,n){return t&&Rne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zne(e,t,n){return t=kh(t),Lne(e,Ik()?Reflect.construct(t,n||[],kh(e).constructor):t.apply(e,n))}function Lne(e,t){if(t&&(Jo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bne(e)}function Bne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ik(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ik=function(){return!!e})()}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kh(e)}function Ine(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&&Xg(e,t)}function Xg(e,t){return Xg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Xg(e,t)}function Uk(e,t,n){return t=Hk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hk(e){var t=Une(e,"string");return Jo(t)=="symbol"?t:t+""}function Une(e,t){if(Jo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ff=function(e){function t(){return Pne(this,t),zne(this,t,arguments)}return Ine(t,e),Dne(t,[{key:"render",value:function(){var r=this.props,a=r.offset,i=r.layout,l=r.width,o=r.dataKey,c=r.data,u=r.dataPointFormatter,f=r.xAxis,d=r.yAxis,h=kne(r,Ene),p=le(h,!1);this.props.direction==="x"&&f.type!=="number"&&Sl();var y=c.map(function(m){var x=u(m,o),g=x.x,j=x.y,b=x.value,v=x.errorVal;if(!v)return null;var S=[],w,A;if(Array.isArray(v)){var _=_ne(v,2);w=_[0],A=_[1]}else w=A=v;if(i==="vertical"){var E=f.scale,N=j+a,k=N+l,M=N-l,B=E(b-w),z=E(b+A);S.push({x1:z,y1:k,x2:z,y2:M}),S.push({x1:B,y1:N,x2:z,y2:N}),S.push({x1:B,y1:k,x2:B,y2:M})}else if(i==="horizontal"){var P=d.scale,C=g+a,L=C-l,I=C+l,G=P(b-w),Y=P(b+A);S.push({x1:L,y1:Y,x2:I,y2:Y}),S.push({x1:C,y1:G,x2:C,y2:Y}),S.push({x1:L,y1:G,x2:I,y2:G})}return T.createElement(we,Mh({className:"recharts-errorBar",key:"bar-".concat(S.map(function(ne){return"".concat(ne.x1,"-").concat(ne.x2,"-").concat(ne.y1,"-").concat(ne.y2)}))},p),S.map(function(ne){return T.createElement("line",Mh({},ne,{key:"line-".concat(ne.x1,"-").concat(ne.x2,"-").concat(ne.y1,"-").concat(ne.y2)}))}))});return T.createElement(we,{className:"recharts-errorBars"},y)}}])}(T.Component);Uk(ff,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Uk(ff,"displayName","ErrorBar");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 eO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Mi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eO(Object(n),!0).forEach(function(r){Hne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hne(e,t,n){return t=qne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qne(e){var t=Fne(e,"string");return pu(t)=="symbol"?t:t+""}function Fne(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 qk=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,l=xn(n,Mr);if(!l)return null;var o=Mr.defaultProps,c=o!==void 0?Mi(Mi({},o),l.props):{},u;return l.props&&l.props.payload?u=l.props&&l.props.payload:i==="children"?u=(r||[]).reduce(function(f,d){var h=d.item,p=d.props,y=p.sectors||p.data||[];return f.concat(y.map(function(m){return{type:l.props.iconType||h.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):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,m=p.name,x=p.legendType,g=p.hide;return{inactive:g,dataKey:y,type:c.iconType||x||"square",color:v1(d),value:m||y,payload:p}}),Mi(Mi(Mi({},c),Mr.getWithHeight(l,a)),{},{payload:u,item:l})};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 tO(e){return Kne(e)||Vne(e)||Yne(e)||Gne()}function Gne(){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 Yne(e,t){if(e){if(typeof e=="string")return Wg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wg(e,t)}}function Vne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kne(e){if(Array.isArray(e))return Wg(e)}function Wg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nO(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?nO(Object(n),!0).forEach(function(r){wo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wo(e,t,n){return t=Xne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xne(e){var t=Wne(e,"string");return mu(t)=="symbol"?t:t+""}function Wne(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)}function ft(e,t,n){return me(e)||me(t)?n:_t(t)?Mn(e,t,n):fe(t)?t(e):n}function Mc(e,t,n,r){var a=Vte(e,function(o){return ft(o,t)});if(n==="number"){var i=a.filter(function(o){return V(o)||parseFloat(o)});return i.length?[mm(i),ei(i)]:[1/0,-1/0]}var l=r?a.filter(function(o){return!me(o)}):a;return l.map(function(o){return _t(o)||o instanceof Date?o:""})}var Qne=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,l=-1,o=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(o<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,u=0;u<o;u++){var f=u>0?a[u-1].coordinate:a[o-1].coordinate,d=a[u].coordinate,h=u>=o-1?a[0].coordinate:a[u+1].coordinate,p=void 0;if(Jt(d-f)!==Jt(h-d)){var y=[];if(Jt(h-d)===Jt(c[1]-c[0])){p=h;var m=d+c[1]-c[0];y[0]=Math.min(m,(m+f)/2),y[1]=Math.max(m,(m+f)/2)}else{p=f;var x=h+c[1]-c[0];y[0]=Math.min(d,(x+d)/2),y[1]=Math.max(d,(x+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),b=Math.max(f,h);if(t>(j+d)/2&&t<=(b+d)/2){l=a[u].index;break}}}else for(var v=0;v<o;v++)if(v===0&&t<=(r[v].coordinate+r[v+1].coordinate)/2||v>0&&v<o-1&&t>(r[v].coordinate+r[v-1].coordinate)/2&&t<=(r[v].coordinate+r[v+1].coordinate)/2||v===o-1&&t>(r[v].coordinate+r[v-1].coordinate)/2){l=r[v].index;break}return l},v1=function(t){var n,r=t,a=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ot(ot({},t.type.defaultProps),t.props):t.props,l=i.stroke,o=i.fill,c;switch(a){case"Line":c=l;break;case"Area":case"Radar":c=l&&l!=="none"?l:o;break;default:c=o;break}return c},Zne=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var l={},o=Object.keys(i),c=0,u=o.length;c<u;c++)for(var f=i[o[c]].stackGroups,d=Object.keys(f),h=0,p=d.length;h<p;h++){var y=f[d[h]],m=y.items,x=y.cateAxisId,g=m.filter(function(A){return da(A.type).indexOf("Bar")>=0});if(g&&g.length){var j=g[0].type.defaultProps,b=j!==void 0?ot(ot({},j),g[0].props):g[0].props,v=b.barSize,S=b[x];l[S]||(l[S]=[]);var w=me(v)?n:v;l[S].push({item:g[0],stackList:g.slice(1),barSize:me(w)?void 0:en(w,r,0)})}}return l},Jne=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,i=t.sizeList,l=i===void 0?[]:i,o=t.maxBarSize,c=l.length;if(c<1)return null;var u=en(n,a,0,!0),f,d=[];if(l[0].barSize===+l[0].barSize){var h=!1,p=a/c,y=l.reduce(function(v,S){return v+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 m=(a-y)/2>>0,x={offset:m-u,size:0};f=l.reduce(function(v,S){var w={item:S.item,position:{offset:x.offset+x.size+u,size:h?p:S.barSize}},A=[].concat(tO(v),[w]);return x=A[A.length-1].position,S.stackList&&S.stackList.length&&S.stackList.forEach(function(_){A.push({item:_,position:x})}),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 b=o===+o?Math.min(j,o):j;f=l.reduce(function(v,S,w){var A=[].concat(tO(v),[{item:S.item,position:{offset:g+(j+u)*w+(j-b)/2,size:b}}]);return S.stackList&&S.stackList.length&&S.stackList.forEach(function(_){A.push({item:_,position:A[A.length-1].position})}),A},d)}return f},ere=function(t,n,r,a){var i=r.children,l=r.width,o=r.margin,c=l-(o.left||0)-(o.right||0),u=qk({children:i,legendWidth:c});if(u){var f=a||{},d=f.width,h=f.height,p=u.align,y=u.verticalAlign,m=u.layout;if((m==="vertical"||m==="horizontal"&&y==="middle")&&p!=="center"&&V(t[p]))return ot(ot({},t),{},wo({},p,t[p]+(d||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&y!=="middle"&&V(t[y]))return ot(ot({},t),{},wo({},y,t[y]+(h||0)))}return t},tre=function(t,n,r){return me(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},Fk=function(t,n,r,a,i){var l=n.props.children,o=kn(l,ff).filter(function(u){return tre(a,i,u.props.direction)});if(o&&o.length){var c=o.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var d=ft(f,r);if(me(d))return u;var h=Array.isArray(d)?[mm(d),ei(d)]:[d,d],p=c.reduce(function(y,m){var x=ft(f,m,0),g=h[0]-Math.abs(Array.isArray(x)?x[0]:x),j=h[1]+Math.abs(Array.isArray(x)?x[1]:x);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},nre=function(t,n,r,a,i){var l=n.map(function(o){return Fk(t,o,r,i,a)}).filter(function(o){return!me(o)});return l&&l.length?l.reduce(function(o,c){return[Math.min(o[0],c[0]),Math.max(o[1],c[1])]},[1/0,-1/0]):null},Gk=function(t,n,r,a,i){var l=n.map(function(c){var u=c.props.dataKey;return r==="number"&&u&&Fk(t,c,u,a)||Mc(t,u,r,i)});if(r==="number")return l.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var o={};return l.reduce(function(c,u){for(var f=0,d=u.length;f<d;f++)o[u[f]]||(o[u[f]]=!0,c.push(u[f]));return c},[])},Yk=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},Vk=function(t,n,r,a){if(a)return t.map(function(c){return c.coordinate});var i,l,o=t.map(function(c){return c.coordinate===n&&(i=!0),c.coordinate===r&&(l=!0),c.coordinate});return i||o.push(n),l||o.push(r),o},oa=function(t,n,r){if(!t)return null;var a=t.scale,i=t.duplicateDomain,l=t.type,o=t.range,c=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,u=(n||r)&&l==="category"&&a.bandwidth?a.bandwidth()/c:0;if(u=t.axisType==="angleAxis"&&(o==null?void 0:o.length)>=2?Jt(o[0]-o[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(d){var h=i?i.indexOf(d):d;return{coordinate:a(h)+u,value:d,offset:u}});return f.filter(function(d){return!Ds(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}})},qy=new WeakMap,Gf=function(t,n){if(typeof n!="function")return t;qy.has(t)||qy.set(t,new WeakMap);var r=qy.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},Kk=function(t,n,r){var a=t.scale,i=t.type,l=t.layout,o=t.axisType;if(a==="auto")return l==="radial"&&o==="radiusAxis"?{scale:ou(),realScaleType:"band"}:l==="radial"&&o==="angleAxis"?{scale:Eh(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Cc(),realScaleType:"point"}:i==="category"?{scale:ou(),realScaleType:"band"}:{scale:Eh(),realScaleType:"linear"};if(vl(a)){var c="scale".concat(em(a));return{scale:(X2[c]||Cc)(),realScaleType:X2[c]?c:"point"}}return fe(a)?{scale:a}:{scale:Cc(),realScaleType:"point"}},rO=1e-4,Xk=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),i=Math.min(a[0],a[1])-rO,l=Math.max(a[0],a[1])+rO,o=t(n[0]),c=t(n[r-1]);(o<i||o>l||c<i||c>l)&&t.domain([n[0],n[r-1]])}},rre=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},are=function(t,n){if(!n||n.length!==2||!V(n[0])||!V(n[1]))return t;var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),i=[t[0],t[1]];return(!V(t[0])||t[0]<r)&&(i[0]=r),(!V(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<r&&(i[1]=r),i},ire=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,l=0,o=0;o<n;++o){var c=Ds(t[o][r][1])?t[o][r][0]:t[o][r][1];c>=0?(t[o][r][0]=i,t[o][r][1]=i+c,i=t[o][r][1]):(t[o][r][0]=l,t[o][r][1]=l+c,l=t[o][r][1])}},lre=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,l=0;l<n;++l){var o=Ds(t[l][r][1])?t[l][r][0]:t[l][r][1];o>=0?(t[l][r][0]=i,t[l][r][1]=i+o,i=t[l][r][1]):(t[l][r][0]=0,t[l][r][1]=0)}},ore={sign:ire,expand:Eq,none:Go,silhouette:_q,wiggle:Tq,positive:lre},sre=function(t,n,r){var a=n.map(function(o){return o.props.dataKey}),i=ore[r],l=Aq().keys(a).value(function(o,c){return+ft(o,c,0)}).order(jg).offset(i);return l(t)},cre=function(t,n,r,a,i,l){if(!t)return null;var o=l?n.reverse():n,c={},u=o.reduce(function(d,h){var p,y=(p=h.type)!==null&&p!==void 0&&p.defaultProps?ot(ot({},h.type.defaultProps),h.props):h.props,m=y.stackId,x=y.hide;if(x)return d;var g=y[r],j=d[g]||{hasStack:!1,stackGroups:{}};if(_t(m)){var b=j.stackGroups[m]||{numericAxisId:r,cateAxisId:a,items:[]};b.items.push(h),j.hasStack=!0,j.stackGroups[m]=b}else j.stackGroups[Ml("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[h]};return ot(ot({},d),{},wo({},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(m,x){var g=p.stackGroups[x];return ot(ot({},m),{},wo({},x,{numericAxisId:r,cateAxisId:a,items:g.items,stackedData:sre(t,g.items,i)}))},y)}return ot(ot({},d),{},wo({},h,p))},f)},Wk=function(t,n){var r=n.realScaleType,a=n.type,i=n.tickCount,l=n.originalDomain,o=n.allowDecimals,c=r||n.scale;if(c!=="auto"&&c!=="linear")return null;if(i&&a==="number"&&l&&(l[0]==="auto"||l[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=wne(u,i,o);return t.domain([mm(f),ei(f)]),{niceTicks:f}}if(i&&a==="number"){var d=t.domain(),h=One(d,i,o);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 o=ah(n,"value",a[t.dataKey]);if(o)return o.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 aO=function(t){var n=t.axis,r=t.ticks,a=t.offset,i=t.bandSize,l=t.entry,o=t.index;if(n.type==="category")return r[o]?r[o].coordinate+a:null;var c=ft(l,n.dataKey,n.domain[o]);return me(c)?null:n.scale(c)-i/2+a},ure=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]},fre=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ot(ot({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(_t(i)){var l=n[i];if(l){var o=l.items.indexOf(t);return o>=0?l.stackedData[o]:null}}return null},dre=function(t){return t.reduce(function(n,r){return[mm(r.concat([n[0]]).filter(V)),ei(r.concat([n[1]]).filter(V))]},[1/0,-1/0])},Qk=function(t,n,r){return Object.keys(t).reduce(function(a,i){var l=t[i],o=l.stackedData,c=o.reduce(function(u,f){var d=dre(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})},iO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,lO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Qg=function(t,n,r){if(fe(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(V(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(iO.test(t[0])){var i=+iO.exec(t[0])[1];a[0]=n[0]-i}else fe(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(V(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(lO.test(t[1])){var l=+lO.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},Ph=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=Gx(n,function(d){return d.coordinate}),l=1/0,o=1,c=i.length;o<c;o++){var u=i[o],f=i[o-1];l=Math.min((u.coordinate||0)-(f.coordinate||0),l)}return l===1/0?0:l}return r?void 0:0},oO=function(t,n,r){return!t||!t.length||xl(t,Mn(r,"type.defaultProps.domain"))?n:t},Zk=function(t,n){var r=t.type.defaultProps?ot(ot({},t.type.defaultProps),t.props):t.props,a=r.dataKey,i=r.name,l=r.unit,o=r.formatter,c=r.tooltipType,u=r.chartType,f=r.hide;return ot(ot({},le(t,!1)),{},{dataKey:a,unit:l,formatter:o,name:i||a,color:v1(t),value:ft(n,a),type:c,payload:n,chartType:u,hide:f})};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 sO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Zr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sO(Object(n),!0).forEach(function(r){Jk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jk(e,t,n){return t=hre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hre(e){var t=pre(e,"string");return yu(t)=="symbol"?t:t+""}function pre(e,t){if(yu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mre(e,t){return bre(e)||gre(e,t)||vre(e,t)||yre()}function yre(){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 vre(e,t){if(e){if(typeof e=="string")return cO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cO(e,t)}}function cO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function bre(e){if(Array.isArray(e))return e}var Rh=Math.PI/180,xre=function(t){return t*180/Math.PI},Ye=function(t,n,r,a){return{x:t+Math.cos(-Rh*a)*r,y:n+Math.sin(-Rh*a)*r}},e$=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},jre=function(t,n,r,a,i){var l=t.width,o=t.height,c=t.startAngle,u=t.endAngle,f=en(t.cx,l,l/2),d=en(t.cy,o,o/2),h=e$(l,o,r),p=en(t.innerRadius,h,0),y=en(t.outerRadius,h,h*.8),m=Object.keys(n);return m.reduce(function(x,g){var j=n[g],b=j.domain,v=j.reversed,S;if(me(j.range))a==="angleAxis"?S=[c,u]:a==="radiusAxis"&&(S=[p,y]),v&&(S=[S[1],S[0]]);else{S=j.range;var w=S,A=mre(w,2);c=A[0],u=A[1]}var _=Kk(j,i),E=_.realScaleType,N=_.scale;N.domain(b).range(S),Xk(N);var k=Wk(N,Zr(Zr({},j),{},{realScaleType:E})),M=Zr(Zr(Zr({},j),k),{},{range:S,radius:y,realScaleType:E,scale:N,cx:f,cy:d,innerRadius:p,outerRadius:y,startAngle:c,endAngle:u});return Zr(Zr({},x),{},Jk({},g,M))},{})},Sre=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))},wre=function(t,n){var r=t.x,a=t.y,i=n.cx,l=n.cy,o=Sre({x:r,y:a},{x:i,y:l});if(o<=0)return{radius:o};var c=(r-i)/o,u=Math.acos(c);return a>l&&(u=2*Math.PI-u),{radius:o,angle:xre(u),angleInRadian:u}},Ore=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}},Are=function(t,n){var r=n.startAngle,a=n.endAngle,i=Math.floor(r/360),l=Math.floor(a/360),o=Math.min(i,l);return t+o*360},uO=function(t,n){var r=t.x,a=t.y,i=wre({x:r,y:a},n),l=i.radius,o=i.angle,c=n.innerRadius,u=n.outerRadius;if(l<c||l>u)return!1;if(l===0)return!0;var f=Ore(n),d=f.startAngle,h=f.endAngle,p=o,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:Are(p,n)}):null},t$=function(t){return!O.isValidElement(t)&&!fe(t)&&typeof t!="boolean"?t.className:""};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)}var Ere=["offset"];function _re(e){return Mre(e)||Cre(e)||Nre(e)||Tre()}function Tre(){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 Nre(e,t){if(e){if(typeof e=="string")return Zg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zg(e,t)}}function Cre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mre(e){if(Array.isArray(e))return Zg(e)}function Zg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kre(e,t){if(e==null)return{};var n=$re(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 $re(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function fO(e,t){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?fO(Object(n),!0).forEach(function(r){Pre(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 Pre(e,t,n){return t=Rre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rre(e){var t=Dre(e,"string");return vu(t)=="symbol"?t:t+""}function Dre(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 gu(){return gu=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},gu.apply(this,arguments)}var zre=function(t){var n=t.value,r=t.formatter,a=me(t.children)?n:t.children;return fe(r)?r(a):a},Lre=function(t,n){var r=Jt(n-t),a=Math.min(Math.abs(n-t),360);return r*a},Bre=function(t,n,r){var a=t.position,i=t.viewBox,l=t.offset,o=t.className,c=i,u=c.cx,f=c.cy,d=c.innerRadius,h=c.outerRadius,p=c.startAngle,y=c.endAngle,m=c.clockWise,x=(d+h)/2,g=Lre(p,y),j=g>=0?1:-1,b,v;a==="insideStart"?(b=p+j*l,v=m):a==="insideEnd"?(b=y-j*l,v=!m):a==="end"&&(b=y+j*l,v=m),v=g<=0?v:!v;var S=Ye(u,f,x,b),w=Ye(u,f,x,b+(v?1:-1)*359),A="M".concat(S.x,",").concat(S.y,`
    A`).concat(x,",").concat(x,",0,1,").concat(v?0:1,`,
    `).concat(w.x,",").concat(w.y),_=me(t.id)?Ml("recharts-radial-line-"):t.id;return T.createElement("text",gu({},r,{dominantBaseline:"central",className:ye("recharts-radial-bar-label",o)}),T.createElement("defs",null,T.createElement("path",{id:_,d:A})),T.createElement("textPath",{xlinkHref:"#".concat(_)},n))},Ire=function(t){var n=t.viewBox,r=t.offset,a=t.position,i=n,l=i.cx,o=i.cy,c=i.innerRadius,u=i.outerRadius,f=i.startAngle,d=i.endAngle,h=(f+d)/2;if(a==="outside"){var p=Ye(l,o,u+r,h),y=p.x,m=p.y;return{x:y,y:m,textAnchor:y>=l?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:l,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:l,y:o,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:l,y:o,textAnchor:"middle",verticalAnchor:"end"};var x=(c+u)/2,g=Ye(l,o,x,h),j=g.x,b=g.y;return{x:j,y:b,textAnchor:"middle",verticalAnchor:"middle"}},Ure=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,i=t.position,l=n,o=l.x,c=l.y,u=l.width,f=l.height,d=f>=0?1:-1,h=d*a,p=d>0?"end":"start",y=d>0?"start":"end",m=u>=0?1:-1,x=m*a,g=m>0?"end":"start",j=m>0?"start":"end";if(i==="top"){var b={x:o+u/2,y:c-d*a,textAnchor:"middle",verticalAnchor:p};return Ot(Ot({},b),r?{height:Math.max(c-r.y,0),width:u}:{})}if(i==="bottom"){var v={x:o+u/2,y:c+f+h,textAnchor:"middle",verticalAnchor:y};return Ot(Ot({},v),r?{height:Math.max(r.y+r.height-(c+f),0),width:u}:{})}if(i==="left"){var S={x:o-x,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:o+u+x,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:o+x,y:c+f/2,textAnchor:j,verticalAnchor:"middle"},A):i==="insideRight"?Ot({x:o+u-x,y:c+f/2,textAnchor:g,verticalAnchor:"middle"},A):i==="insideTop"?Ot({x:o+u/2,y:c+h,textAnchor:"middle",verticalAnchor:y},A):i==="insideBottom"?Ot({x:o+u/2,y:c+f-h,textAnchor:"middle",verticalAnchor:p},A):i==="insideTopLeft"?Ot({x:o+x,y:c+h,textAnchor:j,verticalAnchor:y},A):i==="insideTopRight"?Ot({x:o+u-x,y:c+h,textAnchor:g,verticalAnchor:y},A):i==="insideBottomLeft"?Ot({x:o+x,y:c+f-h,textAnchor:j,verticalAnchor:p},A):i==="insideBottomRight"?Ot({x:o+u-x,y:c+f-h,textAnchor:g,verticalAnchor:p},A):ks(i)&&(V(i.x)||qi(i.x))&&(V(i.y)||qi(i.y))?Ot({x:o+en(i.x,u),y:c+en(i.y,f),textAnchor:"end",verticalAnchor:"end"},A):Ot({x:o+u/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},A)},Hre=function(t){return"cx"in t&&V(t.cx)};function Pt(e){var t=e.offset,n=t===void 0?5:t,r=kre(e,Ere),a=Ot({offset:n},r),i=a.viewBox,l=a.position,o=a.value,c=a.children,u=a.content,f=a.className,d=f===void 0?"":f,h=a.textBreakAll;if(!i||me(o)&&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=zre(a);var y=Hre(i),m=le(a,!0);if(y&&(l==="insideStart"||l==="insideEnd"||l==="end"))return Bre(a,p,m);var x=y?Ire(a):Ure(a);return T.createElement(bl,gu({className:ye("recharts-label",d)},m,x,{breakAll:h}),p)}Pt.displayName="Label";var n$=function(t){var n=t.cx,r=t.cy,a=t.angle,i=t.startAngle,l=t.endAngle,o=t.r,c=t.radius,u=t.innerRadius,f=t.outerRadius,d=t.x,h=t.y,p=t.top,y=t.left,m=t.width,x=t.height,g=t.clockWise,j=t.labelViewBox;if(j)return j;if(V(m)&&V(x)){if(V(d)&&V(h))return{x:d,y:h,width:m,height:x};if(V(p)&&V(y))return{x:p,y,width:m,height:x}}return V(d)&&V(h)?{x:d,y:h,width:0,height:0}:V(n)&&V(r)?{cx:n,cy:r,startAngle:i||a||0,endAngle:l||a||0,innerRadius:u||0,outerRadius:f||c||o||0,clockWise:g}:t.viewBox?t.viewBox:{}},qre=function(t,n){return t?t===!0?T.createElement(Pt,{key:"label-implicit",viewBox:n}):_t(t)?T.createElement(Pt,{key:"label-implicit",viewBox:n,value:t}):O.isValidElement(t)?t.type===Pt?O.cloneElement(t,{key:"label-implicit",viewBox:n}):T.createElement(Pt,{key:"label-implicit",content:t,viewBox:n}):fe(t)?T.createElement(Pt,{key:"label-implicit",content:t,viewBox:n}):ks(t)?T.createElement(Pt,gu({viewBox:n},t,{key:"label-implicit"})):null:null},Fre=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=n$(t),l=kn(a,Pt).map(function(c,u){return O.cloneElement(c,{viewBox:n||i,key:"label-".concat(u)})});if(!r)return l;var o=qre(t.label,n||i);return[o].concat(_re(l))};Pt.parseViewBox=n$;Pt.renderCallByParent=Fre;function Gre(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Yre=Gre;const Vre=$e(Yre);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 Kre=["valueAccessor"],Xre=["data","dataKey","clockWise","id","textBreakAll"];function Wre(e){return eae(e)||Jre(e)||Zre(e)||Qre()}function Qre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zre(e,t){if(e){if(typeof e=="string")return 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 Jre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eae(e){if(Array.isArray(e))return 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 Dh(){return Dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dh.apply(this,arguments)}function 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 hO(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){tae(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 tae(e,t,n){return t=nae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nae(e){var t=rae(e,"string");return bu(t)=="symbol"?t:t+""}function rae(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 pO(e,t){if(e==null)return{};var n=aae(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 aae(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 iae=function(t){return Array.isArray(t.value)?Vre(t.value):t.value};function Dr(e){var t=e.valueAccessor,n=t===void 0?iae:t,r=pO(e,Kre),a=r.data,i=r.dataKey,l=r.clockWise,o=r.id,c=r.textBreakAll,u=pO(r,Xre);return!a||!a.length?null:T.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(o)?{}:{id:"".concat(o,"-").concat(d)};return T.createElement(Pt,Dh({},le(f,!0),u,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:c,viewBox:Pt.parseViewBox(me(l)?f:hO(hO({},f),{},{clockWise:l})),key:"label-".concat(d),index:d}))}))}Dr.displayName="LabelList";function lae(e,t){return e?e===!0?T.createElement(Dr,{key:"labelList-implicit",data:t}):T.isValidElement(e)||fe(e)?T.createElement(Dr,{key:"labelList-implicit",data:t,content:e}):ks(e)?T.createElement(Dr,Dh({data:t},e,{key:"labelList-implicit"})):null:null}function oae(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,o){return O.cloneElement(l,{data:t,key:"labelList-".concat(o)})});if(!n)return a;var i=lae(e.label,t);return[i].concat(Wre(a))}Dr.renderCallByParent=oae;function xu(e){"@babel/helpers - typeof";return xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xu(e)}function eb(){return eb=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},eb.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){sae(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 sae(e,t,n){return t=cae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cae(e){var t=uae(e,"string");return xu(t)=="symbol"?t:t+""}function uae(e,t){if(xu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fae=function(t,n){var r=Jt(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},Yf=function(t){var n=t.cx,r=t.cy,a=t.radius,i=t.angle,l=t.sign,o=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,f=c*(o?1:-1)+a,d=Math.asin(c/f)/Rh,h=u?i:i+l*d,p=Ye(n,r,f,h),y=Ye(n,r,a,h),m=u?i-l*d:i,x=Ye(n,r,f*Math.cos(d*Rh),m);return{center:p,circleTangency:y,lineTangency:x,theta:d}},r$=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,l=t.startAngle,o=t.endAngle,c=fae(l,o),u=l+c,f=Ye(n,r,i,l),d=Ye(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=Ye(n,r,a,l),y=Ye(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},dae=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,l=t.cornerRadius,o=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,d=Jt(f-u),h=Yf({cx:n,cy:r,radius:i,angle:u,sign:d,cornerRadius:l,cornerIsExternal:c}),p=h.circleTangency,y=h.lineTangency,m=h.theta,x=Yf({cx:n,cy:r,radius:i,angle:f,sign:-d,cornerRadius:l,cornerIsExternal:c}),g=x.circleTangency,j=x.lineTangency,b=x.theta,v=c?Math.abs(u-f):Math.abs(u-f)-m-b;if(v<0)return o?"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
      `):r$({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(+(v>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=Yf({cx:n,cy:r,radius:a,angle:u,sign:d,isExternal:!0,cornerRadius:l,cornerIsExternal:c}),A=w.circleTangency,_=w.lineTangency,E=w.theta,N=Yf({cx:n,cy:r,radius:a,angle:f,sign:-d,isExternal:!0,cornerRadius:l,cornerIsExternal:c}),k=N.circleTangency,M=N.lineTangency,B=N.theta,z=c?Math.abs(u-f):Math.abs(u-f)-E-B;if(z<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(+(z>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},hae={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},a$=function(t){var n=yO(yO({},hae),t),r=n.cx,a=n.cy,i=n.innerRadius,l=n.outerRadius,o=n.cornerRadius,c=n.forceCornerRadius,u=n.cornerIsExternal,f=n.startAngle,d=n.endAngle,h=n.className;if(l<i||f===d)return null;var p=ye("recharts-sector",h),y=l-i,m=en(o,y,0,!0),x;return m>0&&Math.abs(f-d)<360?x=dae({cx:r,cy:a,innerRadius:i,outerRadius:l,cornerRadius:Math.min(m,y/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:f,endAngle:d}):x=r$({cx:r,cy:a,innerRadius:i,outerRadius:l,startAngle:f,endAngle:d}),T.createElement("path",eb({},le(n,!0),{className:p,d:x,role:"img"}))};function ju(e){"@babel/helpers - typeof";return ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ju(e)}function tb(){return tb=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},tb.apply(this,arguments)}function vO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function gO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vO(Object(n),!0).forEach(function(r){pae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pae(e,t,n){return t=mae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mae(e){var t=yae(e,"string");return ju(t)=="symbol"?t:t+""}function yae(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)}var bO={curveBasisClosed:pq,curveBasisOpen:mq,curveBasis:hq,curveBumpX:JH,curveBumpY:eq,curveLinearClosed:yq,curveLinear:nm,curveMonotoneX:vq,curveMonotoneY:gq,curveNatural:bq,curveStep:xq,curveStepAfter:Sq,curveStepBefore:jq},Vf=function(t){return t.x===+t.x&&t.y===+t.y},ic=function(t){return t.x},lc=function(t){return t.y},vae=function(t,n){if(fe(t))return t;var r="curve".concat(em(t));return(r==="curveMonotone"||r==="curveBump")&&n?bO["".concat(r).concat(n==="vertical"?"Y":"X")]:bO[r]||nm},gae=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,i=a===void 0?[]:a,l=t.baseLine,o=t.layout,c=t.connectNulls,u=c===void 0?!1:c,f=vae(r,o),d=u?i.filter(function(m){return Vf(m)}):i,h;if(Array.isArray(l)){var p=u?l.filter(function(m){return Vf(m)}):l,y=d.map(function(m,x){return gO(gO({},m),{},{base:p[x]})});return o==="vertical"?h=Df().y(lc).x1(ic).x0(function(m){return m.base.x}):h=Df().x(ic).y1(lc).y0(function(m){return m.base.y}),h.defined(Vf).curve(f),h(y)}return o==="vertical"&&V(l)?h=Df().y(lc).x1(ic).x0(l):V(l)?h=Df().x(ic).y1(lc).y0(l):h=JC().x(ic).y(lc),h.defined(Vf).curve(f),h(d)},sl=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?gae(t):a;return O.createElement("path",tb({},le(t,!1),ih(t),{className:ye("recharts-curve",n),d:l,ref:i}))},i$={exports:{}},bae="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",xae=bae,jae=xae;function l$(){}function o$(){}o$.resetWarningCache=l$;var Sae=function(){function e(r,a,i,l,o,c){if(c!==jae){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:o$,resetWarningCache:l$};return n.PropTypes=n,n};i$.exports=Sae();var wae=i$.exports;const ke=$e(wae),{getOwnPropertyNames:Oae,getOwnPropertySymbols:Aae}=Object,{hasOwnProperty:Eae}=Object.prototype;function Fy(e,t){return function(r,a,i){return e(r,a,i)&&t(r,a,i)}}function Kf(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);const{cache:i}=a,l=i.get(n),o=i.get(r);if(l&&o)return l===r&&o===n;i.set(n,r),i.set(r,n);const c=e(n,r,a);return i.delete(n),i.delete(r),c}}function _ae(e){return e!=null?e[Symbol.toStringTag]:void 0}function xO(e){return Oae(e).concat(Aae(e))}const Tae=Object.hasOwn||((e,t)=>Eae.call(e,t));function Pl(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Nae="__v",Cae="__o",Mae="_owner",{getOwnPropertyDescriptor:jO,keys:SO}=Object;function kae(e,t){return e.byteLength===t.byteLength&&zh(new Uint8Array(e),new Uint8Array(t))}function $ae(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 Pae(e,t){return e.byteLength===t.byteLength&&zh(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Rae(e,t){return Pl(e.getTime(),t.getTime())}function Dae(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function zae(e,t){return e===t}function wO(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.entries();let l,o,c=0;for(;(l=i.next())&&!l.done;){const u=t.entries();let f=!1,d=0;for(;(o=u.next())&&!o.done;){if(a[d]){d++;continue}const h=l.value,p=o.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 Lae=Pl;function Bae(e,t,n){const r=SO(e);let a=r.length;if(SO(t).length!==a)return!1;for(;a-- >0;)if(!s$(e,t,n,r[a]))return!1;return!0}function oc(e,t,n){const r=xO(e);let a=r.length;if(xO(t).length!==a)return!1;let i,l,o;for(;a-- >0;)if(i=r[a],!s$(e,t,n,i)||(l=jO(e,i),o=jO(t,i),(l||o)&&(!l||!o||l.configurable!==o.configurable||l.enumerable!==o.enumerable||l.writable!==o.writable)))return!1;return!0}function Iae(e,t){return Pl(e.valueOf(),t.valueOf())}function Uae(e,t){return e.source===t.source&&e.flags===t.flags}function OO(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.values();let l,o;for(;(l=i.next())&&!l.done;){const c=t.values();let u=!1,f=0;for(;(o=c.next())&&!o.done;){if(!a[f]&&n.equals(l.value,o.value,l.value,o.value,e,t,n)){u=a[f]=!0;break}f++}if(!u)return!1}return!0}function zh(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 Hae(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 s$(e,t,n,r){return(r===Mae||r===Cae||r===Nae)&&(e.$$typeof||t.$$typeof)?!0:Tae(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const qae="[object ArrayBuffer]",Fae="[object Arguments]",Gae="[object Boolean]",Yae="[object DataView]",Vae="[object Date]",Kae="[object Error]",Xae="[object Map]",Wae="[object Number]",Qae="[object Object]",Zae="[object RegExp]",Jae="[object Set]",eie="[object String]",tie={"[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},nie="[object URL]",rie=Object.prototype.toString;function aie({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:l,areNumbersEqual:o,areObjectsEqual:c,arePrimitiveWrappersEqual:u,areRegExpsEqual:f,areSetsEqual:d,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:y}){return function(x,g,j){if(x===g)return!0;if(x==null||g==null)return!1;const b=typeof x;if(b!==typeof g)return!1;if(b!=="object")return b==="number"?o(x,g,j):b==="function"?i(x,g,j):!1;const v=x.constructor;if(v!==g.constructor)return!1;if(v===Object)return c(x,g,j);if(Array.isArray(x))return t(x,g,j);if(v===Date)return r(x,g,j);if(v===RegExp)return f(x,g,j);if(v===Map)return l(x,g,j);if(v===Set)return d(x,g,j);const S=rie.call(x);if(S===Vae)return r(x,g,j);if(S===Zae)return f(x,g,j);if(S===Xae)return l(x,g,j);if(S===Jae)return d(x,g,j);if(S===Qae)return typeof x.then!="function"&&typeof g.then!="function"&&c(x,g,j);if(S===nie)return p(x,g,j);if(S===Kae)return a(x,g,j);if(S===Fae)return c(x,g,j);if(tie[S])return h(x,g,j);if(S===qae)return e(x,g,j);if(S===Yae)return n(x,g,j);if(S===Gae||S===Wae||S===eie)return u(x,g,j);if(y){let w=y[S];if(!w){const A=_ae(x);A&&(w=y[A])}if(w)return w(x,g,j)}return!1}}function iie({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:kae,areArraysEqual:n?oc:$ae,areDataViewsEqual:Pae,areDatesEqual:Rae,areErrorsEqual:Dae,areFunctionsEqual:zae,areMapsEqual:n?Fy(wO,oc):wO,areNumbersEqual:Lae,areObjectsEqual:n?oc:Bae,arePrimitiveWrappersEqual:Iae,areRegExpsEqual:Uae,areSetsEqual:n?Fy(OO,oc):OO,areTypedArraysEqual:n?Fy(zh,oc):zh,areUrlsEqual:Hae,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=Kf(r.areArraysEqual),i=Kf(r.areMapsEqual),l=Kf(r.areObjectsEqual),o=Kf(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:l,areSetsEqual:o})}return r}function lie(e){return function(t,n,r,a,i,l,o){return e(t,n,o)}}function oie({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(o,c){const{cache:u=e?new WeakMap:void 0,meta:f}=n();return t(o,c,{cache:u,equals:r,meta:f,strict:a})};if(e)return function(o,c){return t(o,c,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const i={cache:void 0,equals:r,meta:void 0,strict:a};return function(o,c){return t(o,c,i)}}const sie=Oi();Oi({strict:!0});Oi({circular:!0});Oi({circular:!0,strict:!0});Oi({createInternalComparator:()=>Pl});Oi({strict:!0,createInternalComparator:()=>Pl});Oi({circular:!0,createInternalComparator:()=>Pl});Oi({circular:!0,createInternalComparator:()=>Pl,strict:!0});function Oi(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,i=iie(e),l=aie(i),o=n?n(l):lie(l);return oie({circular:t,comparator:l,createState:r,equals:o,strict:a})}function cie(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function AO(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):cie(a)};requestAnimationFrame(r)}function nb(e){"@babel/helpers - typeof";return nb=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},nb(e)}function uie(e){return pie(e)||hie(e)||die(e)||fie()}function fie(){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 die(e,t){if(e){if(typeof e=="string")return EO(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 EO(e,t)}}function EO(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 hie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pie(e){if(Array.isArray(e))return e}function mie(){var e={},t=function(){return null},n=!1,r=function a(i){if(!n){if(Array.isArray(i)){if(!i.length)return;var l=i,o=uie(l),c=o[0],u=o.slice(1);if(typeof c=="number"){AO(a.bind(null,u),c);return}a(c),AO(a.bind(null,u));return}nb(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 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 _O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function TO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_O(Object(n),!0).forEach(function(r){c$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_O(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c$(e,t,n){return t=yie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yie(e){var t=vie(e,"string");return Su(t)==="symbol"?t:String(t)}function vie(e,t){if(Su(e)!=="object"||e===null)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 gie=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(i){return a.includes(i)})})},bie=function(t){return t},xie=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},kc=function(t,n){return Object.keys(n).reduce(function(r,a){return TO(TO({},r),{},c$({},a,t(a,n[a])))},{})},NO=function(t,n,r){return t.map(function(a){return"".concat(xie(a)," ").concat(n,"ms ").concat(r)}).join(",")};function jie(e,t){return Oie(e)||wie(e,t)||u$(e,t)||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){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function Oie(e){if(Array.isArray(e))return e}function Aie(e){return Tie(e)||_ie(e)||u$(e)||Eie()}function Eie(){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 u$(e,t){if(e){if(typeof e=="string")return rb(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 rb(e,t)}}function _ie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tie(e){if(Array.isArray(e))return rb(e)}function rb(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 Lh=1e-4,f$=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},d$=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},CO=function(t,n){return function(r){var a=f$(t,n);return d$(a,r)}},Nie=function(t,n){return function(r){var a=f$(t,n),i=[].concat(Aie(a.map(function(l,o){return l*o}).slice(1)),[0]);return d$(i,r)}},MO=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0],i=n[1],l=n[2],o=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,i=0,l=1,o=1;break;case"ease":a=.25,i=.1,l=.25,o=1;break;case"ease-in":a=.42,i=0,l=1,o=1;break;case"ease-out":a=.42,i=0,l=.58,o=1;break;case"ease-in-out":a=0,i=0,l=.58,o=1;break;default:{var c=n[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var u=c[1].split(")")[0].split(",").map(function(x){return parseFloat(x)}),f=jie(u,4);a=f[0],i=f[1],l=f[2],o=f[3]}}}var d=CO(a,l),h=CO(i,o),p=Nie(a,l),y=function(g){return g>1?1:g<0?0:g},m=function(g){for(var j=g>1?1:g,b=j,v=0;v<8;++v){var S=d(b)-j,w=p(b);if(Math.abs(S-j)<Lh||w<Lh)return h(b);b=y(b-S/w)}return h(b)};return m.isStepper=!1,m},Cie=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,i=a===void 0?8:a,l=t.dt,o=l===void 0?17:l,c=function(f,d,h){var p=-(f-d)*r,y=h*i,m=h+(p-y)*o/1e3,x=h*o/1e3+f;return Math.abs(x-d)<Lh&&Math.abs(m)<Lh?[d,0]:[x,m]};return c.isStepper=!0,c.dt=o,c},Mie=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 MO(a);case"spring":return Cie();default:if(a.split("(")[0]==="cubic-bezier")return MO(a)}return typeof a=="function"?a:null};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 kO(e){return Pie(e)||$ie(e)||h$(e)||kie()}function kie(){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 $ie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pie(e){if(Array.isArray(e))return ib(e)}function $O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Lt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$O(Object(n),!0).forEach(function(r){ab(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$O(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ab(e,t,n){return t=Rie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rie(e){var t=Die(e,"string");return wu(t)==="symbol"?t:String(t)}function Die(e,t){if(wu(e)!=="object"||e===null)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)}function zie(e,t){return Iie(e)||Bie(e,t)||h$(e,t)||Lie()}function Lie(){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 h$(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 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 Bie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function Iie(e){if(Array.isArray(e))return e}var Bh=function(t,n,r){return t+(n-t)*r},lb=function(t){var n=t.from,r=t.to;return n!==r},Uie=function e(t,n,r){var a=kc(function(i,l){if(lb(l)){var o=t(l.from,l.to,l.velocity),c=zie(o,2),u=c[0],f=c[1];return Lt(Lt({},l),{},{from:u,velocity:f})}return l},n);return r<1?kc(function(i,l){return lb(l)?Lt(Lt({},l),{},{velocity:Bh(l.velocity,a[i].velocity,r),from:Bh(l.from,a[i].from,r)}):l},n):e(t,a,r-1)};const Hie=function(e,t,n,r,a){var i=gie(e,t),l=i.reduce(function(x,g){return Lt(Lt({},x),{},ab({},g,[e[g],t[g]]))},{}),o=i.reduce(function(x,g){return Lt(Lt({},x),{},ab({},g,{from:e[g],velocity:0,to:t[g]}))},{}),c=-1,u,f,d=function(){return null},h=function(){return kc(function(g,j){return j.from},o)},p=function(){return!Object.values(o).filter(lb).length},y=function(g){u||(u=g);var j=g-u,b=j/n.dt;o=Uie(n,o,b),a(Lt(Lt(Lt({},e),t),h())),u=g,p()||(c=requestAnimationFrame(d))},m=function(g){f||(f=g);var j=(g-f)/r,b=kc(function(S,w){return Bh.apply(void 0,kO(w).concat([n(j)]))},l);if(a(Lt(Lt(Lt({},e),t),b)),j<1)c=requestAnimationFrame(d);else{var v=kc(function(S,w){return Bh.apply(void 0,kO(w).concat([n(1)]))},l);a(Lt(Lt(Lt({},e),t),v))}};return d=n.isStepper?y:m,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(c)}}};function es(e){"@babel/helpers - typeof";return es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},es(e)}var qie=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Fie(e,t){if(e==null)return{};var n=Gie(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 Gie(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 Gy(e){return Xie(e)||Kie(e)||Vie(e)||Yie()}function Yie(){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 Vie(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 Kie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xie(e){if(Array.isArray(e))return ob(e)}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 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 or(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){pc(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 pc(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 Wie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qie(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 Zie(e,t,n){return t&&Qie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function p$(e){var t=Jie(e,"string");return es(t)==="symbol"?t:String(t)}function Jie(e,t){if(es(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(es(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ele(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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 tle(e){var t=nle();return function(){var r=Ih(e),a;if(t){var i=Ih(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return cb(this,a)}}function cb(e,t){if(t&&(es(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ub(e)}function ub(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nle(){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 Ih(e){return Ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ih(e)}var vr=function(e){ele(n,e);var t=tle(n);function n(r,a){var i;Wie(this,n),i=t.call(this,r,a);var l=i.props,o=l.isActive,c=l.attributeName,u=l.from,f=l.to,d=l.steps,h=l.children,p=l.duration;if(i.handleStyleChange=i.handleStyleChange.bind(ub(i)),i.changeStyle=i.changeStyle.bind(ub(i)),!o||p<=0)return i.state={style:{}},typeof h=="function"&&(i.state={style:f}),cb(i);if(d&&d.length)i.state={style:d[0].style};else if(u){if(typeof h=="function")return i.state={style:u},cb(i);i.state={style:c?pc({},c,u):u}}else i.state={style:{}};return i}return Zie(n,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,l=a.canBegin;this.mounted=!0,!(!i||!l)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,l=i.isActive,o=i.canBegin,c=i.attributeName,u=i.shouldReAnimate,f=i.to,d=i.from,h=this.state.style;if(o){if(!l){var p={style:c?pc({},c,f):f};this.state&&h&&(c&&h[c]!==f||!c&&h!==f)&&this.setState(p);return}if(!(sie(a.to,f)&&a.canBegin&&a.isActive)){var y=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=y||u?d:a.to;if(this.state&&h){var x={style:c?pc({},c,m):m};(c&&h[c]!==m||!c&&h!==m)&&this.setState(x)}this.runAnimation(or(or({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,l=a.from,o=a.to,c=a.duration,u=a.easing,f=a.begin,d=a.onAnimationEnd,h=a.onAnimationStart,p=Hie(l,o,Mie(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,o=a.begin,c=a.onAnimationStart,u=l[0],f=u.style,d=u.duration,h=d===void 0?0:d,p=function(m,x,g){if(g===0)return m;var j=x.duration,b=x.easing,v=b===void 0?"ease":b,S=x.style,w=x.properties,A=x.onAnimationEnd,_=g>0?l[g-1]:x,E=w||Object.keys(S);if(typeof v=="function"||v==="spring")return[].concat(Gy(m),[i.runJSAnimation.bind(i,{from:_.style,to:S,duration:j,easing:v}),j]);var N=NO(E,j,v),k=or(or(or({},_.style),S),{},{transition:N});return[].concat(Gy(m),[k,j,A]).filter(bie)};return this.manager.start([c].concat(Gy(l.reduce(p,[f,Math.max(h,o)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=mie());var i=a.begin,l=a.duration,o=a.attributeName,c=a.to,u=a.easing,f=a.onAnimationStart,d=a.onAnimationEnd,h=a.steps,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 m=o?pc({},o,c):c,x=NO(Object.keys(m),l,u);y.start([f,i,or(or({},m),{},{transition:x}),l,d])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var l=a.duration;a.attributeName,a.easing;var o=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var c=Fie(a,qie),u=O.Children.count(i),f=this.state.style;if(typeof i=="function")return i(f);if(!o||u===0||l<=0)return i;var d=function(p){var y=p.props,m=y.style,x=m===void 0?{}:m,g=y.className,j=O.cloneElement(p,or(or({},c),{},{style:or(or({},x),f),className:g}));return j};return u===1?d(O.Children.only(i)):T.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 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 Uh(){return Uh=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},Uh.apply(this,arguments)}function rle(e,t){return ole(e)||lle(e,t)||ile(e,t)||ale()}function ale(){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 ile(e,t){if(e){if(typeof e=="string")return RO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RO(e,t)}}function RO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lle(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function ole(e){if(Array.isArray(e))return 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 zO(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){sle(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 sle(e,t,n){return t=cle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cle(e){var t=ule(e,"string");return Ou(t)=="symbol"?t:t+""}function ule(e,t){if(Ou(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ou(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LO=function(t,n,r,a,i){var l=Math.min(Math.abs(r)/2,Math.abs(a)/2),o=a>=0?1:-1,c=r>=0?1:-1,u=a>=0&&r>=0||a<0&&r<0?1:0,f;if(l>0&&i instanceof Array){for(var d=[0,0,0,0],h=0,p=4;h<p;h++)d[h]=i[h]>l?l:i[h];f="M".concat(t,",").concat(n+o*d[0]),d[0]>0&&(f+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(u,",").concat(t+c*d[0],",").concat(n)),f+="L ".concat(t+r-c*d[1],",").concat(n),d[1]>0&&(f+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(u,`,
        `).concat(t+r,",").concat(n+o*d[1])),f+="L ".concat(t+r,",").concat(n+a-o*d[2]),d[2]>0&&(f+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(u,`,
        `).concat(t+r-c*d[2],",").concat(n+a)),f+="L ".concat(t+c*d[3],",").concat(n+a),d[3]>0&&(f+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(u,`,
        `).concat(t,",").concat(n+a-o*d[3])),f+="Z"}else if(l>0&&i===+i&&i>0){var y=Math.min(l,i);f="M ".concat(t,",").concat(n+o*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+o*y,`
            L `).concat(t+r,",").concat(n+a-o*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-o*y," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return f},fle=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,i=n.x,l=n.y,o=n.width,c=n.height;if(Math.abs(o)>0&&Math.abs(c)>0){var u=Math.min(i,i+o),f=Math.max(i,i+o),d=Math.min(l,l+c),h=Math.max(l,l+c);return r>=u&&r<=f&&a>=d&&a<=h}return!1},dle={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},g1=function(t){var n=zO(zO({},dle),t),r=O.useRef(),a=O.useState(-1),i=rle(a,2),l=i[0],o=i[1];O.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var v=r.current.getTotalLength();v&&o(v)}catch{}},[]);var c=n.x,u=n.y,f=n.width,d=n.height,h=n.radius,p=n.className,y=n.animationEasing,m=n.animationDuration,x=n.animationBegin,g=n.isAnimationActive,j=n.isUpdateAnimationActive;if(c!==+c||u!==+u||f!==+f||d!==+d||f===0||d===0)return null;var b=ye("recharts-rectangle",p);return j?T.createElement(vr,{canBegin:l>0,from:{width:f,height:d,x:c,y:u},to:{width:f,height:d,x:c,y:u},duration:m,animationEasing:y,isActive:j},function(v){var S=v.width,w=v.height,A=v.x,_=v.y;return T.createElement(vr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:m,isActive:g,easing:y},T.createElement("path",Uh({},le(n,!0),{className:b,d:LO(A,_,S,w,h),ref:r})))}):T.createElement("path",Uh({},le(n,!0),{className:b,d:LO(c,u,f,d,h)}))},hle=["points","className","baseLinePoints","connectNulls"];function co(){return co=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},co.apply(this,arguments)}function ple(e,t){if(e==null)return{};var n=mle(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 mle(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function BO(e){return ble(e)||gle(e)||vle(e)||yle()}function yle(){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 vle(e,t){if(e){if(typeof e=="string")return fb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fb(e,t)}}function gle(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ble(e){if(Array.isArray(e))return fb(e)}function fb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var IO=function(t){return t&&t.x===+t.x&&t.y===+t.y},xle=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){IO(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),IO(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=xle(t);n&&(r=[r.reduce(function(i,l){return[].concat(BO(i),BO(l))},[])]);var a=r.map(function(i){return i.reduce(function(l,o,c){return"".concat(l).concat(c===0?"M":"L").concat(o.x,",").concat(o.y)},"")}).join("");return r.length===1?"".concat(a,"Z"):a},jle=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))},Sle=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,i=t.connectNulls,l=ple(t,hle);if(!n||!n.length)return null;var o=ye("recharts-polygon",r);if(a&&a.length){var c=l.stroke&&l.stroke!=="none",u=jle(n,a,i);return T.createElement("g",{className:o},T.createElement("path",co({},le(l,!0),{fill:u.slice(-1)==="Z"?l.fill:"none",stroke:"none",d:u})),c?T.createElement("path",co({},le(l,!0),{fill:"none",d:$c(n,i)})):null,c?T.createElement("path",co({},le(l,!0),{fill:"none",d:$c(a,i)})):null)}var f=$c(n,i);return T.createElement("path",co({},le(l,!0),{fill:f.slice(-1)==="Z"?l.fill:"none",className:o,d:f}))};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 df=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",db({},le(t,!1),ih(t),{className:l,cx:n,cy:r,r: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)}var wle=["x","y","top","left","width","height","className"];function hb(){return hb=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},hb.apply(this,arguments)}function UO(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 Ole(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UO(Object(n),!0).forEach(function(r){Ale(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ale(e,t,n){return t=Ele(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ele(e){var t=_le(e,"string");return Au(t)=="symbol"?t:t+""}function _le(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 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={};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 Cle=function(t,n,r,a,i,l){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(l,",").concat(n,"h").concat(r)},Mle=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,l=t.top,o=l===void 0?0:l,c=t.left,u=c===void 0?0:c,f=t.width,d=f===void 0?0:f,h=t.height,p=h===void 0?0:h,y=t.className,m=Tle(t,wle),x=Ole({x:r,y:i,top:o,left:u,width:d,height:p},m);return!V(r)||!V(i)||!V(d)||!V(p)||!V(o)||!V(u)?null:T.createElement("path",hb({},le(x,!0),{className:ye("recharts-cross",y),d:Cle(r,i,d,p,o,u)}))},kle=pm,$le=Ek,Ple=qr;function Rle(e,t){return e&&e.length?kle(e,Ple(t),$le):void 0}var Dle=Rle;const zle=$e(Dle);var Lle=pm,Ble=qr,Ile=_k;function Ule(e,t){return e&&e.length?Lle(e,Ble(t),Ile):void 0}var Hle=Ule;const qle=$e(Hle);var Fle=["cx","cy","angle","ticks","axisLine"],Gle=["ticks","tick","angle","tickFormatter","stroke"];function ts(e){"@babel/helpers - typeof";return ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ts(e)}function Pc(){return Pc=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},Pc.apply(this,arguments)}function HO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ki(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HO(Object(n),!0).forEach(function(r){gm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qO(e,t){if(e==null)return{};var n=Yle(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 Yle(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 Vle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FO(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,y$(r.key),r)}}function Kle(e,t,n){return t&&FO(e.prototype,t),n&&FO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xle(e,t,n){return t=Hh(t),Wle(e,m$()?Reflect.construct(t,n||[],Hh(e).constructor):t.apply(e,n))}function Wle(e,t){if(t&&(ts(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qle(e)}function Qle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(m$=function(){return!!e})()}function Hh(e){return Hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hh(e)}function Zle(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 gm(e,t,n){return t=y$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y$(e){var t=Jle(e,"string");return ts(t)=="symbol"?t:t+""}function Jle(e,t){if(ts(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bm=function(e){function t(){return Vle(this,t),Xle(this,t,arguments)}return Zle(t,e),Kle(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,i=this.props,l=i.angle,o=i.cx,c=i.cy;return Ye(o,c,a,l)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,a;switch(r){case"left":a="end";break;case"right":a="start";break;default:a="middle";break}return a}},{key:"getViewBox",value:function(){var r=this.props,a=r.cx,i=r.cy,l=r.angle,o=r.ticks,c=zle(o,function(f){return f.coordinate||0}),u=qle(o,function(f){return f.coordinate||0});return{cx:a,cy:i,startAngle:l,endAngle:l,innerRadius:u.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,l=r.angle,o=r.ticks,c=r.axisLine,u=qO(r,Fle),f=o.reduce(function(y,m){return[Math.min(y[0],m.coordinate),Math.max(y[1],m.coordinate)]},[1/0,-1/0]),d=Ye(a,i,f[0],l),h=Ye(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 T.createElement("line",Pc({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,l=a.tick,o=a.angle,c=a.tickFormatter,u=a.stroke,f=qO(a,Gle),d=this.getTickTextAnchor(),h=le(f,!1),p=le(l,!1),y=i.map(function(m,x){var g=r.getTickValueCoord(m),j=ki(ki(ki(ki({textAnchor:d,transform:"rotate(".concat(90-o,", ").concat(g.x,", ").concat(g.y,")")},h),{},{stroke:"none",fill:u},p),{},{index:x},g),{},{payload:m});return T.createElement(we,Pc({className:ye("recharts-polar-radius-axis-tick",t$(l)),key:"tick-".concat(m.coordinate)},gl(r.props,m,x)),t.renderTickItem(l,j,c?c(m.value,x):m.value))});return T.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:T.createElement(we,{className:ye("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),l&&this.renderTicks(),Pt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,i){var l;return T.isValidElement(r)?l=T.cloneElement(r,a):fe(r)?l=r(a):l=T.createElement(bl,Pc({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),l}}])}(O.PureComponent);gm(bm,"displayName","PolarRadiusAxis");gm(bm,"axisType","radiusAxis");gm(bm,"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 ns(e){"@babel/helpers - typeof";return ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ns(e)}function 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 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 $i(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 eoe(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,g$(r.key),r)}}function toe(e,t,n){return t&&YO(e.prototype,t),n&&YO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function noe(e,t,n){return t=qh(t),roe(e,v$()?Reflect.construct(t,n||[],qh(e).constructor):t.apply(e,n))}function roe(e,t){if(t&&(ns(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aoe(e)}function aoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v$=function(){return!!e})()}function qh(e){return qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qh(e)}function ioe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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 xm(e,t,n){return t=g$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g$(e){var t=loe(e,"string");return ns(t)=="symbol"?t:t+""}function loe(e,t){if(ns(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ooe=Math.PI/180,VO=1e-5,jm=function(e){function t(){return eoe(this,t),noe(this,t,arguments)}return ioe(t,e),toe(t,[{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.cx,l=a.cy,o=a.radius,c=a.orientation,u=a.tickSize,f=u||8,d=Ye(i,l,o,r.coordinate),h=Ye(i,l,o+(c==="inner"?-1:1)*f,r.coordinate);return{x1:d.x,y1:d.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(r){var a=this.props.orientation,i=Math.cos(-r.coordinate*ooe),l;return i>VO?l=a==="outer"?"start":"end":i<-VO?l=a==="outer"?"end":"start":l="middle",l}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,l=r.radius,o=r.axisLine,c=r.axisLineType,u=$i($i({},le(this.props,!1)),{},{fill:"none"},le(o,!1));if(c==="circle")return T.createElement(df,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 Ye(a,i,l,h.coordinate)});return T.createElement(Sle,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,o=a.tickLine,c=a.tickFormatter,u=a.stroke,f=le(this.props,!1),d=le(l,!1),h=$i($i({},f),{},{fill:"none"},le(o,!1)),p=i.map(function(y,m){var x=r.getTickLineCoord(y),g=r.getTickTextAnchor(y),j=$i($i($i({textAnchor:g},f),{},{stroke:"none",fill:u},d),{},{index:m,payload:y,x:x.x2,y:x.y2});return T.createElement(we,Ui({className:ye("recharts-polar-angle-axis-tick",t$(l)),key:"tick-".concat(y.coordinate)},gl(r.props,y,m)),o&&T.createElement("line",Ui({className:"recharts-polar-angle-axis-tick-line"},h,x)),l&&t.renderTickItem(l,j,c?c(y.value,m):y.value))});return T.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:T.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 T.isValidElement(r)?l=T.cloneElement(r,a):fe(r)?l=r(a):l=T.createElement(bl,Ui({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),l}}])}(O.PureComponent);xm(jm,"displayName","PolarAngleAxis");xm(jm,"axisType","angleAxis");xm(jm,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var soe=wM,coe=soe(Object.getPrototypeOf,Object),uoe=coe,foe=Aa,doe=uoe,hoe=Ea,poe="[object Object]",moe=Function.prototype,yoe=Object.prototype,b$=moe.toString,voe=yoe.hasOwnProperty,goe=b$.call(Object);function boe(e){if(!hoe(e)||foe(e)!=poe)return!1;var t=doe(e);if(t===null)return!0;var n=voe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&b$.call(n)==goe}var xoe=boe;const joe=$e(xoe);var Soe=Aa,woe=Ea,Ooe="[object Boolean]";function Aoe(e){return e===!0||e===!1||woe(e)&&Soe(e)==Ooe}var Eoe=Aoe;const _oe=$e(Eoe);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 Fh(){return Fh=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},Fh.apply(this,arguments)}function Toe(e,t){return koe(e)||Moe(e,t)||Coe(e,t)||Noe()}function Noe(){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 Coe(e,t){if(e){if(typeof e=="string")return KO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KO(e,t)}}function KO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Moe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function koe(e){if(Array.isArray(e))return e}function XO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function WO(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){$oe(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 $oe(e,t,n){return t=Poe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Poe(e){var t=Roe(e,"string");return Eu(t)=="symbol"?t:t+""}function Roe(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 QO=function(t,n,r,a,i){var l=r-a,o;return o="M ".concat(t,",").concat(n),o+="L ".concat(t+r,",").concat(n),o+="L ".concat(t+r-l/2,",").concat(n+i),o+="L ".concat(t+r-l/2-a,",").concat(n+i),o+="L ".concat(t,",").concat(n," Z"),o},Doe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},zoe=function(t){var n=WO(WO({},Doe),t),r=O.useRef(),a=O.useState(-1),i=Toe(a,2),l=i[0],o=i[1];O.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var b=r.current.getTotalLength();b&&o(b)}catch{}},[]);var c=n.x,u=n.y,f=n.upperWidth,d=n.lowerWidth,h=n.height,p=n.className,y=n.animationEasing,m=n.animationDuration,x=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?T.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:m,animationEasing:y,isActive:g},function(b){var v=b.upperWidth,S=b.lowerWidth,w=b.height,A=b.x,_=b.y;return T.createElement(vr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:m,easing:y},T.createElement("path",Fh({},le(n,!0),{className:j,d:QO(A,_,v,S,w),ref:r})))}):T.createElement("g",null,T.createElement("path",Fh({},le(n,!0),{className:j,d:QO(c,u,f,d,h)})))},Loe=["option","shapeType","propTransformer","activeClassName","isActive"];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 Boe(e,t){if(e==null)return{};var n=Ioe(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 Ioe(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 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 Gh(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){Uoe(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 Uoe(e,t,n){return t=Hoe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hoe(e){var t=qoe(e,"string");return _u(t)=="symbol"?t:t+""}function qoe(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 Foe(e,t){return Gh(Gh({},t),e)}function Goe(e,t){return e==="symbols"}function JO(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return T.createElement(g1,n);case"trapezoid":return T.createElement(zoe,n);case"sector":return T.createElement(a$,n);case"symbols":if(Goe(t))return T.createElement(zx,n);break;default:return null}}function Yoe(e){return O.isValidElement(e)?e.props:e}function x$(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?Foe:r,i=e.activeClassName,l=i===void 0?"recharts-active-shape":i,o=e.isActive,c=Boe(e,Loe),u;if(O.isValidElement(t))u=O.cloneElement(t,Gh(Gh({},c),Yoe(t)));else if(fe(t))u=t(c);else if(joe(t)&&!_oe(t)){var f=a(t,c);u=T.createElement(JO,{shapeType:n,elementProps:f})}else{var d=c;u=T.createElement(JO,{shapeType:n,elementProps:d})}return o?T.createElement(we,{className:l},u):u}function Sm(e,t){return t!=null&&"trapezoids"in e.props}function wm(e,t){return t!=null&&"sectors"in e.props}function Tu(e,t){return t!=null&&"points"in e.props}function Voe(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 Koe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Xoe(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function Woe(e,t){var n;return Sm(e,t)?n=Voe:wm(e,t)?n=Koe:Tu(e,t)&&(n=Xoe),n}function Qoe(e,t){var n;return Sm(e,t)?n="trapezoids":wm(e,t)?n="sectors":Tu(e,t)&&(n="points"),n}function Zoe(e,t){if(Sm(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(wm(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 Tu(e,t)?t.payload:{}}function Joe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=Qoe(n,t),i=Zoe(n,t),l=r.filter(function(c,u){var f=xl(i,c),d=n.props[a].filter(function(y){var m=Woe(n,t);return m(y,t)}),h=n.props[a].indexOf(d[d.length-1]),p=u===h;return f&&p}),o=r.indexOf(l[l.length-1]);return o}var gd;function rs(e){"@babel/helpers - typeof";return rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rs(e)}function uo(){return uo=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},uo.apply(this,arguments)}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 qe(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){Wn(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 ese(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tA(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 tse(e,t,n){return t&&tA(e.prototype,t),n&&tA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nse(e,t,n){return t=Yh(t),rse(e,j$()?Reflect.construct(t,n||[],Yh(e).constructor):t.apply(e,n))}function rse(e,t){if(t&&(rs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ase(e)}function ase(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j$=function(){return!!e})()}function Yh(e){return Yh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yh(e)}function ise(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yb(e,t)}function yb(e,t){return yb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},yb(e,t)}function Wn(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=lse(e,"string");return rs(t)=="symbol"?t:t+""}function lse(e,t){if(rs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ta=function(e){function t(n){var r;return ese(this,t),r=nse(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 ise(t,e),tse(t,[{key:"isActiveIndex",value:function(r){var a=this.props.activeIndex;return Array.isArray(a)?a.indexOf(r)!==-1:r===a}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var i=this.props,l=i.label,o=i.labelLine,c=i.dataKey,u=i.valueKey,f=le(this.props,!1),d=le(l,!1),h=le(o,!1),p=l&&l.offsetRadius||20,y=r.map(function(m,x){var g=(m.startAngle+m.endAngle)/2,j=Ye(m.cx,m.cy,m.outerRadius+p,g),b=qe(qe(qe(qe({},f),m),{},{stroke:"none"},d),{},{index:x,textAnchor:t.getTextAnchor(j.x,m.cx)},j),v=qe(qe(qe(qe({},f),m),{},{fill:"none",stroke:m.fill},h),{},{index:x,points:[Ye(m.cx,m.cy,m.outerRadius,g),j]}),S=c;return me(c)&&me(u)?S="value":me(c)&&(S=u),T.createElement(we,{key:"label-".concat(m.startAngle,"-").concat(m.endAngle,"-").concat(m.midAngle,"-").concat(x)},o&&t.renderLabelLineItem(o,v,"line"),t.renderLabelItem(l,b,ft(m,S)))});return T.createElement(we,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(r){var a=this,i=this.props,l=i.activeShape,o=i.blendStroke,c=i.inactiveShape;return r.map(function(u,f){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var d=a.isActiveIndex(f),h=c&&a.hasActiveIndex()?c:null,p=d?l:h,y=qe(qe({},u),{},{stroke:o?u.fill:u.stroke,tabIndex:-1});return T.createElement(we,uo({ref:function(x){x&&!a.sectorRefs.includes(x)&&a.sectorRefs.push(x)},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)}),T.createElement(x$,uo({option:p,isActive:d,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,a=this.props,i=a.sectors,l=a.isAnimationActive,o=a.animationBegin,c=a.animationDuration,u=a.animationEasing,f=a.animationId,d=this.state,h=d.prevSectors,p=d.prevIsAnimationActive;return T.createElement(vr,{begin:o,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 m=y.t,x=[],g=i&&i[0],j=g.startAngle;return i.forEach(function(b,v){var S=h&&h[v],w=v>0?Mn(b,"paddingAngle",0):0;if(S){var A=At(S.endAngle-S.startAngle,b.endAngle-b.startAngle),_=qe(qe({},b),{},{startAngle:j+w,endAngle:j+A(m)+w});x.push(_),j=_.endAngle}else{var E=b.endAngle,N=b.startAngle,k=At(0,E-N),M=k(m),B=qe(qe({},b),{},{startAngle:j+w,endAngle:j+M+w});x.push(B),j=B.endAngle}}),T.createElement(we,null,r.renderSectorsStatically(x))})}},{key:"attachKeyboardHandlers",value:function(r){var a=this;r.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var l=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[l].focus(),a.setState({sectorToFocus:l});break}case"ArrowRight":{var o=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[o].focus(),a.setState({sectorToFocus:o});break}case"Escape":{a.sectorRefs[a.state.sectorToFocus].blur(),a.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,a=r.sectors,i=r.isAnimationActive,l=this.state.prevSectors;return i&&a&&a.length&&(!l||!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,o=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||!V(u)||!V(f)||!V(d)||!V(h))return null;var m=ye("recharts-pie",o);return T.createElement(we,{tabIndex:this.props.rootTabIndex,className:m,ref:function(g){r.pieRef=g}},this.renderSectors(),c&&this.renderLabels(l),Pt.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(T.isValidElement(r))return T.cloneElement(r,a);if(fe(r))return r(a);var l=ye("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return T.createElement(sl,uo({},a,{key:i,type:"linear",className:l}))}},{key:"renderLabelItem",value:function(r,a,i){if(T.isValidElement(r))return T.cloneElement(r,a);var l=i;if(fe(r)&&(l=r(a),T.isValidElement(l)))return l;var o=ye("recharts-pie-label-text",typeof r!="boolean"&&!fe(r)?r.className:"");return T.createElement(bl,uo({},a,{alignmentBaseline:"middle",className:o}),l)}}])}(O.PureComponent);gd=Ta;Wn(Ta,"displayName","Pie");Wn(Ta,"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(Ta,"parseDeltaAngle",function(e,t){var n=Jt(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Wn(Ta,"getRealPieData",function(e){var t=e.data,n=e.children,r=le(e,!1),a=kn(n,om);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(Ta,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,l=e$(a,i),o=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:o,cy:c,innerRadius:u,outerRadius:f,maxRadius:d}});Wn(Ta,"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=gd.getRealPieData(r);if(!a||!a.length)return null;var i=r.cornerRadius,l=r.startAngle,o=r.endAngle,c=r.paddingAngle,u=r.dataKey,f=r.nameKey,d=r.valueKey,h=r.tooltipType,p=Math.abs(r.minAngle),y=gd.parseCoordinateOfPie(r,n),m=gd.parseDeltaAngle(l,o),x=Math.abs(m),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,b=(x>=360?j:j-1)*c,v=x-j*p-b,S=a.reduce(function(_,E){var N=ft(E,g,0);return _+(V(N)?N:0)},0),w;if(S>0){var A;w=a.map(function(_,E){var N=ft(_,g,0),k=ft(_,f,E),M=(V(N)?N:0)/S,B;E?B=A.endAngle+Jt(m)*c*(N!==0?1:0):B=l;var z=B+Jt(m)*((N!==0?p:0)+M*v),P=(B+z)/2,C=(y.innerRadius+y.outerRadius)/2,L=[{name:k,value:N,payload:_,dataKey:g,type:h}],I=Ye(y.cx,y.cy,C,P);return A=qe(qe(qe({percent:M,cornerRadius:i,name:k,tooltipPayload:L,midAngle:P,middleRadius:C,tooltipPosition:I},_),y),{},{value:ft(_,g),startAngle:B,endAngle:z,payload:_,paddingAngle:Jt(m)*c}),A})}return qe(qe({},y),{},{sectors:w,data:a})});var ose=Math.ceil,sse=Math.max;function cse(e,t,n,r){for(var a=-1,i=sse(ose((t-e)/(n||1)),0),l=Array(i);i--;)l[r?i:++a]=e,e+=n;return l}var use=cse,fse=HM,nA=1/0,dse=17976931348623157e292;function hse(e){if(!e)return e===0?e:0;if(e=fse(e),e===nA||e===-nA){var t=e<0?-1:1;return t*dse}return e===e?e:0}var w$=hse,pse=use,mse=lm,Yy=w$;function yse(e){return function(t,n,r){return r&&typeof r!="number"&&mse(t,n,r)&&(n=r=void 0),t=Yy(t),n===void 0?(n=t,t=0):n=Yy(n),r=r===void 0?t<n?1:-1:Yy(r),pse(t,n,r,e)}}var vse=yse,gse=vse,bse=gse(),xse=bse;const Vh=$e(xse);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 rA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function aA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rA(Object(n),!0).forEach(function(r){O$(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 O$(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=Sse(e,"string");return Nu(t)=="symbol"?t:t+""}function Sse(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 wse=["Webkit","Moz","O","ms"],Ose=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=wse.reduce(function(i,l){return aA(aA({},i),{},O$({},l+r,n))},{});return a[t]=n,a};function as(e){"@babel/helpers - typeof";return as=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},as(e)}function 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 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 Vy(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){gn(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 Ase(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,E$(r.key),r)}}function Ese(e,t,n){return t&&lA(e.prototype,t),n&&lA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _se(e,t,n){return t=Xh(t),Tse(e,A$()?Reflect.construct(t,n||[],Xh(e).constructor):t.apply(e,n))}function Tse(e,t){if(t&&(as(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nse(e)}function Nse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A$=function(){return!!e})()}function Xh(e){return Xh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xh(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 gn(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=Mse(e,"string");return as(t)=="symbol"?t:t+""}function Mse(e,t){if(as(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(as(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var kse=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,i=t.x,l=t.width,o=t.travellerWidth;if(!n||!n.length)return{};var c=n.length,u=Cc().domain(Vh(0,c)).range([i,i+l-o]),f=u.domain().map(function(d){return u(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(a),scale:u,scaleValues:f}},oA=function(t){return t.changedTouches&&!!t.changedTouches.length},is=function(e){function t(n){var r;return Ase(this,t),r=_se(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,o=a.startIndex;l==null||l({endIndex:i,startIndex:o})}),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=oA(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 Cse(t,e),Ese(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var a=r.startX,i=r.endX,l=this.state.scaleValues,o=this.props,c=o.gap,u=o.data,f=u.length-1,d=Math.min(a,i),h=Math.max(a,i),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,o=a.dataKey,c=ft(i[r],o,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,o=a.endX,c=this.props,u=c.x,f=c.width,d=c.travellerWidth,h=c.startIndex,p=c.endIndex,y=c.onChange,m=r.pageX-i;m>0?m=Math.min(m,u+f-d-o,u+f-d-l):m<0&&(m=Math.max(m,u-l,u-o));var x=this.getIndex({startX:l+m,endX:o+m});(x.startIndex!==h||x.endIndex!==p)&&y&&y(x),this.setState({startX:l+m,endX:o+m,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var i=oA(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var a=this.state,i=a.brushMoveStartX,l=a.movingTravellerId,o=a.endX,c=a.startX,u=this.state[l],f=this.props,d=f.x,h=f.width,p=f.travellerWidth,y=f.onChange,m=f.gap,x=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 b=this.getIndex(g),v=b.startIndex,S=b.endIndex,w=function(){var _=x.length-1;return l==="startX"&&(o>c?v%m===0:S%m===0)||o<c&&S===_||l==="endX"&&(o>c?S%m===0:v%m===0)||o>c&&S===_};this.setState(gn(gn({},l,u+j),"brushMoveStartX",r.pageX),function(){y&&w()&&y(b)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var i=this,l=this.state,o=l.scaleValues,c=l.startX,u=l.endX,f=this.state[a],d=o.indexOf(f);if(d!==-1){var h=d+r;if(!(h===-1||h>=o.length)){var p=o[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,o=r.height,c=r.fill,u=r.stroke;return T.createElement("rect",{stroke:u,fill:c,x:a,y:i,width:l,height:o})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,i=r.y,l=r.width,o=r.height,c=r.data,u=r.children,f=r.padding,d=O.Children.only(u);return d?T.cloneElement(d,{x:a,y:i,width:l,height:o,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(r,a){var i,l,o=this,c=this.props,u=c.y,f=c.travellerWidth,d=c.height,h=c.traveller,p=c.ariaLabel,y=c.data,m=c.startIndex,x=c.endIndex,g=Math.max(r,this.props.x),j=Vy(Vy({},le(this.props,!1)),{},{x:g,y:u,width:f,height:d}),b=p||"Min value: ".concat((i=y[m])===null||i===void 0?void 0:i.name,", Max value: ").concat((l=y[x])===null||l===void 0?void 0:l.name);return T.createElement(we,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(S){["ArrowLeft","ArrowRight"].includes(S.key)&&(S.preventDefault(),S.stopPropagation(),o.handleTravellerMoveKeyboard(S.key==="ArrowRight"?1:-1,a))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,j))}},{key:"renderSlide",value:function(r,a){var i=this.props,l=i.y,o=i.height,c=i.stroke,u=i.travellerWidth,f=Math.min(r,a)+u,d=Math.max(Math.abs(a-r)-u,0);return T.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:f,y:l,width:d,height:o})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,i=r.endIndex,l=r.y,o=r.height,c=r.travellerWidth,u=r.stroke,f=this.state,d=f.startX,h=f.endX,p=5,y={pointerEvents:"none",fill:u};return T.createElement(we,{className:"recharts-brush-texts"},T.createElement(bl,Kh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,h)-p,y:l+o/2},y),this.getTextOfTick(a)),T.createElement(bl,Kh({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,h)+c+p,y:l+o/2},y),this.getTextOfTick(i)))}},{key:"render",value:function(){var r=this.props,a=r.data,i=r.className,l=r.children,o=r.x,c=r.y,u=r.width,f=r.height,d=r.alwaysShowText,h=this.state,p=h.startX,y=h.endX,m=h.isTextActive,x=h.isSlideMoving,g=h.isTravellerMoving,j=h.isTravellerFocused;if(!a||!a.length||!V(o)||!V(c)||!V(u)||!V(f)||u<=0||f<=0)return null;var b=ye("recharts-brush",i),v=T.Children.count(l)===1,S=Ose("userSelect","none");return T.createElement(we,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(m||x||g||j||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,i=r.y,l=r.width,o=r.height,c=r.stroke,u=Math.floor(i+o/2)-1;return T.createElement(T.Fragment,null,T.createElement("rect",{x:a,y:i,width:l,height:o,fill:c,stroke:"none"}),T.createElement("line",{x1:a+1,y1:u,x2:a+l-1,y2:u,fill:"none",stroke:"#fff"}),T.createElement("line",{x1:a+1,y1:u+2,x2:a+l-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var i;return T.isValidElement(r)?i=T.cloneElement(r,a):fe(r)?i=r(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(r,a){var i=r.data,l=r.width,o=r.x,c=r.travellerWidth,u=r.updateId,f=r.startIndex,d=r.endIndex;if(i!==a.prevData||u!==a.prevUpdateId)return Vy({prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:o,prevWidth:l},i&&i.length?kse({data:i,width:l,x:o,travellerWidth:c,startIndex:f,endIndex:d}):{scale:null,scaleValues:null});if(a.scale&&(l!==a.prevWidth||o!==a.prevX||c!==a.prevTravellerWidth)){a.scale.range([o,o+l-c]);var h=a.scale.domain().map(function(p){return a.scale(p)});return{prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:o,prevWidth:l,startX:a.scale(r.startIndex),endX:a.scale(r.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(r,a){for(var i=r.length,l=0,o=i-1;o-l>1;){var c=Math.floor((l+o)/2);r[c]>a?o=c:l=c}return a>=r[o]?o:l}}])}(O.PureComponent);gn(is,"displayName","Brush");gn(is,"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 $se=Fx;function Pse(e,t){var n;return $se(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var Rse=Pse,Dse=mM,zse=qr,Lse=Rse,Bse=yn,Ise=lm;function Use(e,t,n){var r=Bse(e)?Dse:Lse;return n&&Ise(e,t,n)&&(t=void 0),r(e,zse(t))}var Hse=Use;const qse=$e(Hse);var zr=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},sA=zM;function Fse(e,t,n){t=="__proto__"&&sA?sA(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Gse=Fse,Yse=Gse,Vse=RM,Kse=qr;function Xse(e,t){var n={};return t=Kse(t),Vse(e,function(r,a,i){Yse(n,a,t(r,a,i))}),n}var Wse=Xse;const Qse=$e(Wse);function Zse(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 Jse=Zse,ece=Fx;function tce(e,t){var n=!0;return ece(e,function(r,a,i){return n=!!t(r,a,i),n}),n}var nce=tce,rce=Jse,ace=nce,ice=qr,lce=yn,oce=lm;function sce(e,t,n){var r=lce(e)?rce:ace;return n&&oce(e,t,n)&&(t=void 0),r(e,ice(t))}var cce=sce;const _$=$e(cce);var uce=["x","y"];function Cu(e){"@babel/helpers - typeof";return Cu=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},Cu(e)}function gb(){return gb=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},gb.apply(this,arguments)}function cA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function sc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cA(Object(n),!0).forEach(function(r){fce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fce(e,t,n){return t=dce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dce(e){var t=hce(e,"string");return Cu(t)=="symbol"?t:t+""}function hce(e,t){if(Cu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pce(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 yce(e,t){var n=e.x,r=e.y,a=pce(e,uce),i="".concat(n),l=parseInt(i,10),o="".concat(r),c=parseInt(o,10),u="".concat(t.height||a.height),f=parseInt(u,10),d="".concat(t.width||a.width),h=parseInt(d,10);return sc(sc(sc(sc(sc({},t),a),l?{x:l}:{}),c?{y:c}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function uA(e){return T.createElement(x$,gb({shapeType:"rectangle",propTransformer:yce,activeClassName:"recharts-active-bar"},e))}var vce=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,a){if(typeof t=="number")return t;var i=V(r)||B9(r);return i?t(r,a):(i||Sl(),n)}},gce=["value","background"],T$;function ls(e){"@babel/helpers - typeof";return ls=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},ls(e)}function bce(e,t){if(e==null)return{};var n=xce(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 xce(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 Wh(){return Wh=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},Wh.apply(this,arguments)}function fA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fA(Object(n),!0).forEach(function(r){ti(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C$(r.key),r)}}function Sce(e,t,n){return t&&dA(e.prototype,t),n&&dA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wce(e,t,n){return t=Qh(t),Oce(e,N$()?Reflect.construct(t,n||[],Qh(e).constructor):t.apply(e,n))}function Oce(e,t){if(t&&(ls(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ace(e)}function Ace(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 Qh(e){return Qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qh(e)}function Ece(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 ti(e,t,n){return t=C$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C$(e){var t=_ce(e,"string");return ls(t)=="symbol"?t:t+""}function _ce(e,t){if(ls(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ls(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Rl=function(e){function t(){var n;jce(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=wce(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 Ece(t,e),Sce(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,i=this.props,l=i.shape,o=i.dataKey,c=i.activeIndex,u=i.activeBar,f=le(this.props,!1);return r&&r.map(function(d,h){var p=h===c,y=p?u:l,m=yt(yt(yt({},f),d),{},{isActive:p,option:y,index:h,dataKey:o,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return T.createElement(we,Wh({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)}),T.createElement(uA,m))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,i=a.data,l=a.layout,o=a.isAnimationActive,c=a.animationBegin,u=a.animationDuration,f=a.animationEasing,d=a.animationId,h=this.state.prevData;return T.createElement(vr,{begin:c,duration:u,isActive:o,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,m=i.map(function(x,g){var j=h&&h[g];if(j){var b=At(j.x,x.x),v=At(j.y,x.y),S=At(j.width,x.width),w=At(j.height,x.height);return yt(yt({},x),{},{x:b(y),y:v(y),width:S(y),height:w(y)})}if(l==="horizontal"){var A=At(0,x.height),_=A(y);return yt(yt({},x),{},{y:x.y+x.height-_,height:_})}var E=At(0,x.width),N=E(y);return yt(yt({},x),{},{width:N})});return T.createElement(we,null,r.renderRectanglesStatically(m))})}},{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,o=a.activeIndex,c=le(this.props.background,!1);return i.map(function(u,f){u.value;var d=u.background,h=bce(u,gce);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 T.createElement(uA,Wh({key:"background-bar-".concat(f),option:r.props.background,isActive:f===o},p))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,l=i.data,o=i.xAxis,c=i.yAxis,u=i.layout,f=i.children,d=kn(f,ff);if(!d)return null;var h=u==="vertical"?l[0].height/2:l[0].width/2,p=function(x,g){var j=Array.isArray(x.value)?x.value[1]:x.value;return{x:x.x,y:x.y,value:j,errorVal:ft(x,g)}},y={clipPath:r?"url(#clipPath-".concat(a,")"):null};return T.createElement(we,y,d.map(function(m){return T.cloneElement(m,{key:"error-bar-".concat(a,"-").concat(m.props.dataKey),data:l,xAxis:o,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,o=r.xAxis,c=r.yAxis,u=r.left,f=r.top,d=r.width,h=r.height,p=r.isAnimationActive,y=r.background,m=r.id;if(a||!i||!i.length)return null;var x=this.state.isAnimationFinished,g=ye("recharts-bar",l),j=o&&o.allowDataOverflow,b=c&&c.allowDataOverflow,v=j||b,S=me(m)?this.id:m;return T.createElement(we,{className:g},j||b?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(S)},T.createElement("rect",{x:j?u:u-d/2,y:b?f:f-h/2,width:j?d:d*2,height:b?h:h*2}))):null,T.createElement(we,{className:"recharts-bar-rectangles",clipPath:v?"url(#clipPath-".concat(S,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(v,S),(!p||x)&&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);T$=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,o=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,f=e.dataStartIndex,d=e.displayedData,h=e.offset,p=rre(r,n);if(!p)return null;var y=t.layout,m=n.type.defaultProps,x=m!==void 0?yt(yt({},m),n.props):n.props,g=x.dataKey,j=x.children,b=x.minPointSize,v=y==="horizontal"?l:i,S=u?v.scale.domain():null,w=ure({numericAxis:v}),A=kn(j,om),_=d.map(function(E,N){var k,M,B,z,P,C;u?k=are(u[f+N],S):(k=ft(E,g),Array.isArray(k)||(k=[w,k]));var L=vce(b,T$.defaultProps.minPointSize)(k[1],N);if(y==="horizontal"){var I,G=[l.scale(k[0]),l.scale(k[1])],Y=G[0],ne=G[1];M=aO({axis:i,ticks:o,bandSize:a,offset:p.offset,entry:E,index:N}),B=(I=ne??Y)!==null&&I!==void 0?I:void 0,z=p.size;var X=Y-ne;if(P=Number.isNaN(X)?0:X,C={x:M,y:l.y,width:z,height:l.height},Math.abs(L)>0&&Math.abs(P)<Math.abs(L)){var ie=Jt(P||L)*(Math.abs(L)-Math.abs(P));B-=ie,P+=ie}}else{var D=[i.scale(k[0]),i.scale(k[1])],W=D[0],ce=D[1];if(M=W,B=aO({axis:l,ticks:c,bandSize:a,offset:p.offset,entry:E,index:N}),z=ce-W,P=p.size,C={x:i.x,y:B,width:i.width,height:P},Math.abs(L)>0&&Math.abs(z)<Math.abs(L)){var de=Jt(z||L)*(Math.abs(L)-Math.abs(z));z+=de}}return yt(yt(yt({},E),{},{x:M,y:B,width:z,height:P,value:u?k:k[1],payload:E,background:C},A&&A[N]&&A[N].props),{},{tooltipPayload:[Zk(n,E)],tooltipPosition:{x:M+z/2,y:B+P/2}})});return yt({data:_,layout:y},h)});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 Tce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hA(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 Nce(e,t,n){return t&&hA(e.prototype,t),n&&hA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function fr(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){Om(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 Om(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=Cce(e,"string");return Mu(t)=="symbol"?t:t+""}function Cce(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 b1=function(t,n,r,a,i){var l=t.width,o=t.height,c=t.layout,u=t.children,f=Object.keys(n),d={left:r.left,leftMirror:r.left,right:l-r.right,rightMirror:l-r.right,top:r.top,topMirror:r.top,bottom:o-r.bottom,bottomMirror:o-r.bottom},h=!!xn(u,Rl);return f.reduce(function(p,y){var m=n[y],x=m.orientation,g=m.domain,j=m.padding,b=j===void 0?{}:j,v=m.mirror,S=m.reversed,w="".concat(x).concat(v?"Mirror":""),A,_,E,N,k;if(m.type==="number"&&(m.padding==="gap"||m.padding==="no-gap")){var M=g[1]-g[0],B=1/0,z=m.categoricalDomain.sort(H9);if(z.forEach(function(D,W){W>0&&(B=Math.min((D||0)-(z[W-1]||0),B))}),Number.isFinite(B)){var P=B/M,C=m.layout==="vertical"?r.height:r.width;if(m.padding==="gap"&&(A=P*C/2),m.padding==="no-gap"){var L=en(t.barCategoryGap,P*C),I=P*C/2;A=I-L-(I-L)/C*L}}}a==="xAxis"?_=[r.left+(b.left||0)+(A||0),r.left+r.width-(b.right||0)-(A||0)]:a==="yAxis"?_=c==="horizontal"?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(A||0),r.top+r.height-(b.bottom||0)-(A||0)]:_=m.range,S&&(_=[_[1],_[0]]);var G=Kk(m,i,h),Y=G.scale,ne=G.realScaleType;Y.domain(g).range(_),Xk(Y);var X=Wk(Y,fr(fr({},m),{},{realScaleType:ne}));a==="xAxis"?(k=x==="top"&&!v||x==="bottom"&&v,E=r.left,N=d[w]-k*m.height):a==="yAxis"&&(k=x==="left"&&!v||x==="right"&&v,E=d[w]-k*m.width,N=r.top);var ie=fr(fr(fr({},m),X),{},{realScaleType:ne,x:E,y:N,scale:Y,width:a==="xAxis"?r.width:m.width,height:a==="yAxis"?r.height:m.height});return ie.bandSize=Ph(ie,X),!m.hide&&a==="xAxis"?d[w]+=(k?-1:1)*ie.height:m.hide||(d[w]+=(k?-1:1)*ie.width),fr(fr({},p),{},Om({},y,ie))},{})},k$=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)}},Mce=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return k$({x:n,y:r},{x:a,y:i})},$$=function(){function e(t){Tce(this,e),this.scale=t}return Nce(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.bandAware,i=r.position;if(n!==void 0){if(i)switch(i){case"start":return this.scale(n);case"middle":{var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(n)+o}default:return this.scale(n)}if(a){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+c}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),a=r[0],i=r[r.length-1];return a<=i?n>=a&&n<=i:n>=i&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}])}();Om($$,"EPS",1e-4);var x1=function(t){var n=Object.keys(t).reduce(function(r,a){return fr(fr({},r),{},Om({},a,$$.create(t[a])))},{});return fr(fr({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=i.bandAware,o=i.position;return Qse(a,function(c,u){return n[u].apply(c,{bandAware:l,position:o})})},isInRange:function(a){return _$(a,function(i,l){return n[l].isInRange(i)})}})};function kce(e){return(e%180+180)%180}var $ce=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=kce(a),l=i*Math.PI/180,o=Math.atan(r/n),c=l>o&&l<Math.PI-o?r/Math.sin(l):n/Math.cos(l);return Math.abs(c)},Pce=qr,Rce=lf,Dce=am;function zce(e){return function(t,n,r){var a=Object(t);if(!Rce(t)){var i=Pce(n);t=Dce(t),n=function(o){return i(a[o],o,a)}}var l=e(t,n,r);return l>-1?a[i?t[l]:l]:void 0}}var Lce=zce,Bce=w$;function Ice(e){var t=Bce(e),n=t%1;return t===t?n?t-n:t:0}var Uce=Ice,Hce=NM,qce=qr,Fce=Uce,Gce=Math.max;function Yce(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=n==null?0:Fce(n);return a<0&&(a=Gce(r+a,0)),Hce(e,qce(t),a)}var Vce=Yce,Kce=Lce,Xce=Vce,Wce=Kce(Xce),Qce=Wce;const Zce=$e(Qce);var Jce=G7(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("")}),j1=O.createContext(void 0),S1=O.createContext(void 0),P$=O.createContext(void 0),R$=O.createContext({}),D$=O.createContext(void 0),z$=O.createContext(0),L$=O.createContext(0),mA=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,i=n.offset,l=t.clipPathId,o=t.children,c=t.width,u=t.height,f=Jce(i);return T.createElement(j1.Provider,{value:r},T.createElement(S1.Provider,{value:a},T.createElement(R$.Provider,{value:i},T.createElement(P$.Provider,{value:f},T.createElement(D$.Provider,{value:l},T.createElement(z$.Provider,{value:u},T.createElement(L$.Provider,{value:c},o)))))))},eue=function(){return O.useContext(D$)},B$=function(t){var n=O.useContext(j1);n==null&&Sl();var r=n[t];return r==null&&Sl(),r},tue=function(){var t=O.useContext(j1);return Ia(t)},nue=function(){var t=O.useContext(S1),n=Zce(t,function(r){return _$(r.domain,Number.isFinite)});return n||Ia(t)},I$=function(t){var n=O.useContext(S1);n==null&&Sl();var r=n[t];return r==null&&Sl(),r},rue=function(){var t=O.useContext(P$);return t},aue=function(){return O.useContext(R$)},w1=function(){return O.useContext(L$)},O1=function(){return O.useContext(z$)};function os(e){"@babel/helpers - typeof";return os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},os(e)}function iue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lue(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 oue(e,t,n){return t&&lue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sue(e,t,n){return t=Zh(t),cue(e,U$()?Reflect.construct(t,n||[],Zh(e).constructor):t.apply(e,n))}function cue(e,t){if(t&&(os(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uue(e)}function uue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U$=function(){return!!e})()}function Zh(e){return Zh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zh(e)}function fue(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 yA(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 vA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yA(Object(n),!0).forEach(function(r){A1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function A1(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=due(e,"string");return os(t)=="symbol"?t:t+""}function due(e,t){if(os(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function hue(e,t){return vue(e)||yue(e,t)||mue(e,t)||pue()}function pue(){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 mue(e,t){if(e){if(typeof e=="string")return gA(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 gA(e,t)}}function gA(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 yue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function vue(e){if(Array.isArray(e))return 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)}var gue=function(t,n){var r;return T.isValidElement(t)?r=T.cloneElement(t,n):fe(t)?r=t(n):r=T.createElement("line",jb({},n,{className:"recharts-reference-line-line"})),r},bue=function(t,n,r,a,i,l,o,c,u){var f=i.x,d=i.y,h=i.width,p=i.height;if(r){var y=u.y,m=t.y.apply(y,{position:l});if(zr(u,"discard")&&!t.y.isInRange(m))return null;var x=[{x:f+h,y:m},{x:f,y:m}];return c==="left"?x.reverse():x}if(n){var g=u.x,j=t.x.apply(g,{position:l});if(zr(u,"discard")&&!t.x.isInRange(j))return null;var b=[{x:j,y:d+p},{x:j,y:d}];return o==="top"?b.reverse():b}if(a){var v=u.segment,S=v.map(function(w){return t.apply(w,{position:l})});return zr(u,"discard")&&qse(S,function(w){return!t.isInRange(w)})?null:S}return null};function xue(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,i=e.yAxisId,l=e.shape,o=e.className,c=e.alwaysShow,u=eue(),f=B$(a),d=I$(i),h=rue();if(!u||!h)return null;mr(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=x1({x:f.scale,y:d.scale}),y=_t(t),m=_t(n),x=r&&r.length===2,g=bue(p,y,m,x,h,e.position,f.orientation,d.orientation,e);if(!g)return null;var j=hue(g,2),b=j[0],v=b.x,S=b.y,w=j[1],A=w.x,_=w.y,E=zr(e,"hidden")?"url(#".concat(u,")"):void 0,N=vA(vA({clipPath:E},le(e,!0)),{},{x1:v,y1:S,x2:A,y2:_});return T.createElement(we,{className:ye("recharts-reference-line",o)},gue(l,N),Pt.renderCallByParent(e,Mce({x1:v,y1:S,x2:A,y2:_})))}var E1=function(e){function t(){return iue(this,t),sue(this,t,arguments)}return fue(t,e),oue(t,[{key:"render",value:function(){return T.createElement(xue,this.props)}}])}(T.Component);A1(E1,"displayName","ReferenceLine");A1(E1,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Sb(){return Sb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sb.apply(this,arguments)}function ss(e){"@babel/helpers - typeof";return ss=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},ss(e)}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){Am(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 jue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sue(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,F$(r.key),r)}}function wue(e,t,n){return t&&Sue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oue(e,t,n){return t=Jh(t),Aue(e,q$()?Reflect.construct(t,n||[],Jh(e).constructor):t.apply(e,n))}function Aue(e,t){if(t&&(ss(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Eue(e)}function Eue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q$=function(){return!!e})()}function Jh(e){return Jh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jh(e)}function _ue(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 Am(e,t,n){return t=F$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F$(e){var t=Tue(e,"string");return ss(t)=="symbol"?t:t+""}function Tue(e,t){if(ss(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ss(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Nue=function(t){var n=t.x,r=t.y,a=t.xAxis,i=t.yAxis,l=x1({x:a.scale,y:i.scale}),o=l.apply({x:n,y:r},{bandAware:!0});return zr(t,"discard")&&!l.isInRange(o)?null:o},Em=function(e){function t(){return jue(this,t),Oue(this,t,arguments)}return _ue(t,e),wue(t,[{key:"render",value:function(){var r=this.props,a=r.x,i=r.y,l=r.r,o=r.alwaysShow,c=r.clipPathId,u=_t(a),f=_t(i);if(mr(o===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!f)return null;var d=Nue(this.props);if(!d)return null;var h=d.x,p=d.y,y=this.props,m=y.shape,x=y.className,g=zr(this.props,"hidden")?"url(#".concat(c,")"):void 0,j=xA(xA({clipPath:g},le(this.props,!0)),{},{cx:h,cy:p});return T.createElement(we,{className:ye("recharts-reference-dot",x)},t.renderDot(m,j),Pt.renderCallByParent(this.props,{x:h-l,y:p-l,width:2*l,height:2*l}))}}])}(T.Component);Am(Em,"displayName","ReferenceDot");Am(Em,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Am(Em,"renderDot",function(e,t){var n;return T.isValidElement(e)?n=T.cloneElement(e,t):fe(e)?n=e(t):n=T.createElement(df,Sb({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function Ob(){return Ob=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ob.apply(this,arguments)}function cs(e){"@babel/helpers - typeof";return cs=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},cs(e)}function jA(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?jA(Object(n),!0).forEach(function(r){_m(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Y$(r.key),r)}}function kue(e,t,n){return t&&Mue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $ue(e,t,n){return t=ep(t),Pue(e,G$()?Reflect.construct(t,n||[],ep(e).constructor):t.apply(e,n))}function Pue(e,t){if(t&&(cs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rue(e)}function Rue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G$=function(){return!!e})()}function ep(e){return ep=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ep(e)}function Due(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ab(e,t)}function Ab(e,t){return Ab=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Ab(e,t)}function _m(e,t,n){return t=Y$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y$(e){var t=zue(e,"string");return cs(t)=="symbol"?t:t+""}function zue(e,t){if(cs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Lue=function(t,n,r,a,i){var l=i.x1,o=i.x2,c=i.y1,u=i.y2,f=i.xAxis,d=i.yAxis;if(!f||!d)return null;var h=x1({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(o,{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:k$(p,y)},Tm=function(e){function t(){return Cue(this,t),$ue(this,t,arguments)}return Due(t,e),kue(t,[{key:"render",value:function(){var r=this.props,a=r.x1,i=r.x2,l=r.y1,o=r.y2,c=r.className,u=r.alwaysShow,f=r.clipPathId;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(o),m=this.props.shape;if(!d&&!h&&!p&&!y&&!m)return null;var x=Lue(d,h,p,y,this.props);if(!x&&!m)return null;var g=zr(this.props,"hidden")?"url(#".concat(f,")"):void 0;return T.createElement(we,{className:ye("recharts-reference-area",c)},t.renderRect(m,SA(SA({clipPath:g},le(this.props,!0)),x)),Pt.renderCallByParent(this.props,x))}}])}(T.Component);_m(Tm,"displayName","ReferenceArea");_m(Tm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});_m(Tm,"renderRect",function(e,t){var n;return T.isValidElement(e)?n=T.cloneElement(e,t):fe(e)?n=e(t):n=T.createElement(g1,Ob({},t,{className:"recharts-reference-area-rect"})),n});function V$(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 Bue(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return $ce(r,n)}function Iue(e,t,n){var r=n==="width",a=e.x,i=e.y,l=e.width,o=e.height;return t===1?{start:r?a:i,end:r?a+l:i+o}:{start:r?a+l:i+o,end:r?a:i}}function tp(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 Uue(e,t){return V$(e,t+1)}function Hue(e,t,n,r,a){for(var i=(r||[]).slice(),l=t.start,o=t.end,c=0,u=1,f=l,d=function(){var y=r==null?void 0:r[c];if(y===void 0)return{v:V$(r,u)};var m=c,x,g=function(){return x===void 0&&(x=n(y,m)),x},j=y.coordinate,b=c===0||tp(e,j,g,f,o);b||(c=0,f=l,u+=1),b&&(f=j+e*(g()/2+a),c+=u)},h;u<=i.length;)if(h=d(),h)return h.v;return[]}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 wA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wA(Object(n),!0).forEach(function(r){que(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function que(e,t,n){return t=Fue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fue(e){var t=Gue(e,"string");return ku(t)=="symbol"?t:t+""}function Gue(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 Yue(e,t,n,r,a){for(var i=(r||[]).slice(),l=i.length,o=t.start,c=t.end,u=function(h){var p=i[h],y,m=function(){return y===void 0&&(y=n(p,h)),y};if(h===l-1){var x=e*(p.coordinate+e*m()/2-c);i[h]=p=Vt(Vt({},p),{},{tickCoord:x>0?p.coordinate-x*e:p.coordinate})}else i[h]=p=Vt(Vt({},p),{},{tickCoord:p.coordinate});var g=tp(e,p.tickCoord,m,o,c);g&&(c=p.tickCoord-e*(m()/2+a),i[h]=Vt(Vt({},p),{},{isShow:!0}))},f=l-1;f>=0;f--)u(f);return i}function Vue(e,t,n,r,a,i){var l=(r||[]).slice(),o=l.length,c=t.start,u=t.end;if(i){var f=r[o-1],d=n(f,o-1),h=e*(f.coordinate+e*d/2-u);l[o-1]=f=Vt(Vt({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=tp(e,f.tickCoord,function(){return d},c,u);p&&(u=f.tickCoord-e*(d/2+a),l[o-1]=Vt(Vt({},f),{},{isShow:!0}))}for(var y=i?o-1:o,m=function(j){var b=l[j],v,S=function(){return v===void 0&&(v=n(b,j)),v};if(j===0){var w=e*(b.coordinate-e*S()/2-c);l[j]=b=Vt(Vt({},b),{},{tickCoord:w<0?b.coordinate-w*e:b.coordinate})}else l[j]=b=Vt(Vt({},b),{},{tickCoord:b.coordinate});var A=tp(e,b.tickCoord,S,c,u);A&&(c=b.tickCoord+e*(S()/2+a),l[j]=Vt(Vt({},b),{},{isShow:!0}))},x=0;x<y;x++)m(x);return l}function _1(e,t,n){var r=e.tick,a=e.ticks,i=e.viewBox,l=e.minTickGap,o=e.orientation,c=e.interval,u=e.tickFormatter,f=e.unit,d=e.angle;if(!a||!a.length||!r)return[];if(V(c)||ji.isSsr)return Uue(a,typeof c=="number"&&V(c)?c:0);var h=[],p=o==="top"||o==="bottom"?"width":"height",y=f&&p==="width"?Nc(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},m=function(b,v){var S=fe(u)?u(b.value,v):b.value;return p==="width"?Bue(Nc(S,{fontSize:t,letterSpacing:n}),y,d):Nc(S,{fontSize:t,letterSpacing:n})[p]},x=a.length>=2?Jt(a[1].coordinate-a[0].coordinate):1,g=Iue(i,x,p);return c==="equidistantPreserveStart"?Hue(x,g,m,a,l):(c==="preserveStart"||c==="preserveStartEnd"?h=Vue(x,g,m,a,l,c==="preserveStartEnd"):h=Yue(x,g,m,a,l),h.filter(function(j){return j.isShow}))}var Kue=["viewBox"],Xue=["viewBox"],Wue=["ticks"];function us(e){"@babel/helpers - typeof";return us=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},us(e)}function fo(){return fo=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},fo.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 wt(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){T1(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 Ky(e,t){if(e==null)return{};var n=Que(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Que(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Zue(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,X$(r.key),r)}}function Jue(e,t,n){return t&&AA(e.prototype,t),n&&AA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function efe(e,t,n){return t=np(t),tfe(e,K$()?Reflect.construct(t,n||[],np(e).constructor):t.apply(e,n))}function tfe(e,t){if(t&&(us(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nfe(e)}function nfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(K$=function(){return!!e})()}function np(e){return np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},np(e)}function rfe(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 T1(e,t,n){return t=X$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X$(e){var t=afe(e,"string");return us(t)=="symbol"?t:t+""}function afe(e,t){if(us(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(us(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qs=function(e){function t(n){var r;return Zue(this,t),r=efe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return rfe(t,e),Jue(t,[{key:"shouldComponentUpdate",value:function(r,a){var i=r.viewBox,l=Ky(r,Kue),o=this.props,c=o.viewBox,u=Ky(o,Xue);return!jo(i,c)||!jo(l,u)||!jo(a,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var a=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.x,l=a.y,o=a.width,c=a.height,u=a.orientation,f=a.tickSize,d=a.mirror,h=a.tickMargin,p,y,m,x,g,j,b=d?-1:1,v=r.tickSize||f,S=V(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":p=y=r.coordinate,x=l+ +!d*c,m=x-b*v,j=m-b*h,g=S;break;case"left":m=x=r.coordinate,y=i+ +!d*o,p=y-b*v,g=p-b*h,j=S;break;case"right":m=x=r.coordinate,y=i+ +d*o,p=y+b*v,g=p+b*h,j=S;break;default:p=y=r.coordinate,x=l+ +d*c,m=x+b*v,j=m+b*h,g=S;break}return{line:{x1:p,y1:m,x2:y,y2:x},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,o=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*o,x2:a+l,y2:i+h*o})}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+o})}return T.createElement("line",fo({},d,{className:ye("recharts-cartesian-axis-line",Mn(f,"className"))}))}},{key:"renderTicks",value:function(r,a,i){var l=this,o=this.props,c=o.tickLine,u=o.stroke,f=o.tick,d=o.tickFormatter,h=o.unit,p=_1(wt(wt({},this.props),{},{ticks:r}),a,i),y=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),x=le(this.props,!1),g=le(f,!1),j=wt(wt({},x),{},{fill:"none"},le(c,!1)),b=p.map(function(v,S){var w=l.getTickLineCoord(v),A=w.line,_=w.tick,E=wt(wt(wt(wt({textAnchor:y,verticalAnchor:m},x),{},{stroke:"none",fill:u},g),_),{},{index:S,payload:v,visibleTicksCount:p.length,tickFormatter:d});return T.createElement(we,fo({className:"recharts-cartesian-axis-tick",key:"tick-".concat(v.value,"-").concat(v.coordinate,"-").concat(v.tickCoord)},gl(l.props,v,S)),c&&T.createElement("line",fo({},j,A,{className:ye("recharts-cartesian-axis-tick-line",Mn(c,"className"))})),f&&t.renderTickItem(f,E,"".concat(fe(d)?d(v.value,S):v.value).concat(h||"")))});return T.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var r=this,a=this.props,i=a.axisLine,l=a.width,o=a.height,c=a.ticksGenerator,u=a.className,f=a.hide;if(f)return null;var d=this.props,h=d.ticks,p=Ky(d,Wue),y=h;return fe(c)&&(y=h&&h.length>0?c(this.props):c(p)),l<=0||o<=0||!y||!y.length?null:T.createElement(we,{className:ye("recharts-cartesian-axis",u),ref:function(x){r.layerReference=x}},i&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Pt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,i){var l,o=ye(a.className,"recharts-cartesian-axis-tick-value");return T.isValidElement(r)?l=T.cloneElement(r,wt(wt({},a),{},{className:o})):fe(r)?l=r(wt(wt({},a),{},{className:o})):l=T.createElement(bl,fo({},a,{className:"recharts-cartesian-axis-tick-value"}),i),l}}])}(O.Component);T1(qs,"displayName","CartesianAxis");T1(qs,"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 ife=["x1","y1","x2","y2","key"],lfe=["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 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 Kt(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){ofe(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 ofe(e,t,n){return t=sfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sfe(e){var t=cfe(e,"string");return wl(t)=="symbol"?t:t+""}function cfe(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 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){if(e==null)return{};var n=ufe(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 ufe(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 ffe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,a=t.x,i=t.y,l=t.width,o=t.height,c=t.ry;return T.createElement("rect",{x:a,y:i,ry:c,width:l,height:o,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function W$(e,t){var n;if(T.isValidElement(e))n=T.cloneElement(e,t);else if(fe(e))n=e(t);else{var r=t.x1,a=t.y1,i=t.x2,l=t.y2,o=t.key,c=_A(t,ife),u=le(c,!1);u.offset;var f=_A(u,lfe);n=T.createElement("line",Yi({},f,{x1:r,y1:a,x2:i,y2:l,fill:"none",key:o}))}return n}function dfe(e){var t=e.x,n=e.width,r=e.horizontal,a=r===void 0?!0:r,i=e.horizontalPoints;if(!a||!i||!i.length)return null;var l=i.map(function(o,c){var u=Kt(Kt({},e),{},{x1:t,y1:o,x2:t+n,y2:o,key:"line-".concat(c),index:c});return W$(a,u)});return T.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function hfe(e){var t=e.y,n=e.height,r=e.vertical,a=r===void 0?!0:r,i=e.verticalPoints;if(!a||!i||!i.length)return null;var l=i.map(function(o,c){var u=Kt(Kt({},e),{},{x1:o,y1:t,x2:o,y2:t+n,key:"line-".concat(c),index:c});return W$(a,u)});return T.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function pfe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,a=e.y,i=e.width,l=e.height,o=e.horizontalPoints,c=e.horizontal,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var f=o.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==f[0]&&f.unshift(0);var d=f.map(function(h,p){var y=!f[p+1],m=y?a+l-h:f[p+1]-h;if(m<=0)return null;var x=p%t.length;return T.createElement("rect",{key:"react-".concat(p),y:h,x:r,height:m,width:i,stroke:"none",fill:t[x],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function mfe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,a=e.fillOpacity,i=e.x,l=e.y,o=e.width,c=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var f=u.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==f[0]&&f.unshift(0);var d=f.map(function(h,p){var y=!f[p+1],m=y?i+o-h:f[p+1]-h;if(m<=0)return null;var x=p%r.length;return T.createElement("rect",{key:"react-".concat(p),x:h,y:l,width:m,height:c,stroke:"none",fill:r[x],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var yfe=function(t,n){var r=t.xAxis,a=t.width,i=t.height,l=t.offset;return Vk(_1(Kt(Kt(Kt({},qs.defaultProps),r),{},{ticks:oa(r,!0),viewBox:{x:0,y:0,width:a,height:i}})),l.left,l.left+l.width,n)},vfe=function(t,n){var r=t.yAxis,a=t.width,i=t.height,l=t.offset;return Vk(_1(Kt(Kt(Kt({},qs.defaultProps),r),{},{ticks:oa(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 bd(e){var t,n,r,a,i,l,o=w1(),c=O1(),u=aue(),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:V(e.x)?e.x:u.left,y:V(e.y)?e.y:u.top,width:V(e.width)?e.width:u.width,height:V(e.height)?e.height:u.height}),d=f.x,h=f.y,p=f.width,y=f.height,m=f.syncWithTicks,x=f.horizontalValues,g=f.verticalValues,j=tue(),b=nue();if(!V(p)||p<=0||!V(y)||y<=0||!V(d)||d!==+d||!V(h)||h!==+h)return null;var v=f.verticalCoordinatesGenerator||yfe,S=f.horizontalCoordinatesGenerator||vfe,w=f.horizontalPoints,A=f.verticalPoints;if((!w||!w.length)&&fe(S)){var _=x&&x.length,E=S({yAxis:b?Kt(Kt({},b),{},{ticks:_?x:b.ticks}):void 0,width:o,height:c,offset:u},_?!0:m);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(v)){var N=g&&g.length,k=v({xAxis:j?Kt(Kt({},j),{},{ticks:N?g:j.ticks}):void 0,width:o,height:c,offset:u},N?!0:m);mr(Array.isArray(k),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(wl(k),"]")),Array.isArray(k)&&(A=k)}return T.createElement("g",{className:"recharts-cartesian-grid"},T.createElement(ffe,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),T.createElement(dfe,Yi({},f,{offset:u,horizontalPoints:w,xAxis:j,yAxis:b})),T.createElement(hfe,Yi({},f,{offset:u,verticalPoints:A,xAxis:j,yAxis:b})),T.createElement(pfe,Yi({},f,{horizontalPoints:w})),T.createElement(mfe,Yi({},f,{verticalPoints:A})))}bd.displayName="CartesianGrid";var gfe=["type","layout","connectNulls","ref"],bfe=["key"];function fs(e){"@babel/helpers - typeof";return fs=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},fs(e)}function TA(e,t){if(e==null)return{};var n=xfe(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 xfe(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 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 NA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NA(Object(n),!0).forEach(function(r){dr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gl(e){return Ofe(e)||wfe(e)||Sfe(e)||jfe()}function jfe(){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 Sfe(e,t){if(e){if(typeof e=="string")return _b(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 _b(e,t)}}function wfe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ofe(e){if(Array.isArray(e))return _b(e)}function _b(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 Afe(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,Z$(r.key),r)}}function Efe(e,t,n){return t&&CA(e.prototype,t),n&&CA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _fe(e,t,n){return t=rp(t),Tfe(e,Q$()?Reflect.construct(t,n||[],rp(e).constructor):t.apply(e,n))}function Tfe(e,t){if(t&&(fs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nfe(e)}function Nfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q$=function(){return!!e})()}function rp(e){return rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rp(e)}function Cfe(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 dr(e,t,n){return t=Z$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z$(e){var t=Mfe(e,"string");return fs(t)=="symbol"?t:t+""}function Mfe(e,t){if(fs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hf=function(e){function t(){var n;Afe(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=_fe(this,t,[].concat(a)),dr(n,"state",{isAnimationFinished:!0,totalLength:0}),dr(n,"generateSimpleStrokeDasharray",function(l,o){return"".concat(o,"px ").concat(l-o,"px")}),dr(n,"getStrokeDasharray",function(l,o,c){var u=c.reduce(function(g,j){return g+j});if(!u)return n.generateSimpleStrokeDasharray(o,l);for(var f=Math.floor(l/u),d=l%u,h=o-l,p=[],y=0,m=0;y<c.length;m+=c[y],++y)if(m+c[y]>d){p=[].concat(Gl(c.slice(0,y)),[d-m]);break}var x=p.length%2===0?[0,h]:[h];return[].concat(Gl(t.repeat(c,f)),Gl(p),x).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 Cfe(t,e),Efe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,l=i.points,o=i.xAxis,c=i.yAxis,u=i.layout,f=i.children,d=kn(f,ff);if(!d)return null;var h=function(m,x){return{x:m.x,y:m.y,value:m.value,errorVal:ft(m.payload,x)}},p={clipPath:r?"url(#clipPath-".concat(a,")"):null};return T.createElement(we,p,d.map(function(y){return T.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:l,xAxis:o,yAxis:c,layout:u,dataPointFormatter:h})}))}},{key:"renderDots",value:function(r,a,i){var l=this.props.isAnimationActive;if(l&&!this.state.isAnimationFinished)return null;var o=this.props,c=o.dot,u=o.points,f=o.dataKey,d=le(this.props,!1),h=le(c,!0),p=u.map(function(m,x){var g=vn(vn(vn({key:"dot-".concat(x),r:3},d),h),{},{index:x,cx:m.x,cy:m.y,value:m.value,dataKey:f,payload:m.payload,points:u});return t.renderDotItem(c,g)}),y={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return T.createElement(we,Rc({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(r,a,i,l){var o=this.props,c=o.type,u=o.layout,f=o.connectNulls;o.ref;var d=TA(o,gfe),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 T.createElement(sl,Rc({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,a){var i=this,l=this.props,o=l.points,c=l.strokeDasharray,u=l.isAnimationActive,f=l.animationBegin,d=l.animationDuration,h=l.animationEasing,p=l.animationId,y=l.animateNewValues,m=l.width,x=l.height,g=this.state,j=g.prevPoints,b=g.totalLength;return T.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(v){var S=v.t;if(j){var w=j.length/o.length,A=o.map(function(M,B){var z=Math.floor(B*w);if(j[z]){var P=j[z],C=At(P.x,M.x),L=At(P.y,M.y);return vn(vn({},M),{},{x:C(S),y:L(S)})}if(y){var I=At(m*2,M.x),G=At(x/2,M.y);return vn(vn({},M),{},{x:I(S),y:G(S)})}return vn(vn({},M),{},{x:M.x,y:M.y})});return i.renderCurveStatically(A,r,a)}var _=At(0,b),E=_(S),N;if(c){var k="".concat(c).split(/[,\s]+/gim).map(function(M){return parseFloat(M)});N=i.getStrokeDasharray(E,b,k)}else N=i.generateSimpleStrokeDasharray(b,E);return i.renderCurveStatically(o,r,a,{strokeDasharray:N})})}},{key:"renderCurve",value:function(r,a){var i=this.props,l=i.points,o=i.isAnimationActive,c=this.state,u=c.prevPoints,f=c.totalLength;return o&&l&&l.length&&(!u&&f>0||!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,o=a.points,c=a.className,u=a.xAxis,f=a.yAxis,d=a.top,h=a.left,p=a.width,y=a.height,m=a.isAnimationActive,x=a.id;if(i||!o||!o.length)return null;var g=this.state.isAnimationFinished,j=o.length===1,b=ye("recharts-line",c),v=u&&u.allowDataOverflow,S=f&&f.allowDataOverflow,w=v||S,A=me(x)?this.id:x,_=(r=le(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},E=_.r,N=E===void 0?3:E,k=_.strokeWidth,M=k===void 0?2:k,B=IC(l)?l:{},z=B.clipDot,P=z===void 0?!0:z,C=N*2+M;return T.createElement(we,{className:b},v||S?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(A)},T.createElement("rect",{x:v?h:h-p/2,y:S?d:d-y/2,width:v?p:p*2,height:S?y:y*2})),!P&&T.createElement("clipPath",{id:"clipPath-dots-".concat(A)},T.createElement("rect",{x:h-C/2,y:d-C/2,width:p+C,height:y+C}))):null,!j&&this.renderCurve(w,A),this.renderErrorBar(w,A),(j||l)&&this.renderDots(w,P,A),(!m||g)&&Dr.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:a.curPoints}:r.points!==a.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,a){for(var i=r.length%2!==0?[].concat(Gl(r),[0]):r,l=[],o=0;o<a;++o)l=[].concat(Gl(l),Gl(i));return l}},{key:"renderDotItem",value:function(r,a){var i;if(T.isValidElement(r))i=T.cloneElement(r,a);else if(fe(r))i=r(a);else{var l=a.key,o=TA(a,bfe),c=ye("recharts-line-dot",typeof r!="boolean"?r.className:"");i=T.createElement(df,Rc({key:l},o,{className:c}))}return i}}])}(O.PureComponent);dr(hf,"displayName","Line");dr(hf,"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(hf,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,a=e.xAxisTicks,i=e.yAxisTicks,l=e.dataKey,o=e.bandSize,c=e.displayedData,u=e.offset,f=t.layout,d=c.map(function(h,p){var y=ft(h,l);return f==="horizontal"?{x:$h({axis:n,ticks:a,bandSize:o,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:o,entry:h,index:p}),value:y,payload:h}});return vn({points:d,layout:f},u)});var kfe=["layout","type","stroke","connectNulls","isRange","ref"],$fe=["key"],J$;function ds(e){"@babel/helpers - typeof";return ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ds(e)}function eP(e,t){if(e==null)return{};var n=Pfe(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 Pfe(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 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 MA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ka(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MA(Object(n),!0).forEach(function(r){$r(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kA(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,nP(r.key),r)}}function Dfe(e,t,n){return t&&kA(e.prototype,t),n&&kA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zfe(e,t,n){return t=ap(t),Lfe(e,tP()?Reflect.construct(t,n||[],ap(e).constructor):t.apply(e,n))}function Lfe(e,t){if(t&&(ds(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bfe(e)}function Bfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tP=function(){return!!e})()}function ap(e){return ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ap(e)}function Ife(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 $r(e,t,n){return t=nP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nP(e){var t=Ufe(e,"string");return ds(t)=="symbol"?t:t+""}function Ufe(e,t){if(ds(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ds(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ai=function(e){function t(){var n;Rfe(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=zfe(this,t,[].concat(a)),$r(n,"state",{isAnimationFinished:!0}),$r(n,"id",Ml("recharts-area-")),$r(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),fe(l)&&l()}),$r(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),fe(l)&&l()}),n}return Ife(t,e),Dfe(t,[{key:"renderDots",value:function(r,a,i){var l=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(l&&!o)return null;var c=this.props,u=c.dot,f=c.points,d=c.dataKey,h=le(this.props,!1),p=le(u,!0),y=f.map(function(x,g){var j=ka(ka(ka({key:"dot-".concat(g),r:3},h),p),{},{index:g,cx:x.x,cy:x.y,dataKey:d,value:x.value,payload:x.payload,points:f});return t.renderDotItem(u,j)}),m={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return T.createElement(we,Vi({className:"recharts-area-dots"},m),y)}},{key:"renderHorizontalRect",value:function(r){var a=this.props,i=a.baseLine,l=a.points,o=a.strokeWidth,c=l[0].x,u=l[l.length-1].x,f=r*Math.abs(c-u),d=ei(l.map(function(h){return h.y||0}));return V(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)),V(d)?T.createElement("rect",{x:c<u?c:c-f,y:0,width:f,height:Math.floor(d+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var a=this.props,i=a.baseLine,l=a.points,o=a.strokeWidth,c=l[0].y,u=l[l.length-1].y,f=r*Math.abs(c-u),d=ei(l.map(function(h){return h.x||0}));return V(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)),V(d)?T.createElement("rect",{x:0,y:c<u?c:c-f,width:d+(o?parseInt("".concat(o),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(r){var a=this.props.layout;return a==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,a,i,l){var o=this.props,c=o.layout,u=o.type,f=o.stroke,d=o.connectNulls,h=o.isRange;o.ref;var p=eP(o,kfe);return T.createElement(we,{clipPath:i?"url(#clipPath-".concat(l,")"):null},T.createElement(sl,Vi({},le(p,!0),{points:r,connectNulls:d,type:u,baseLine:a,layout:c,stroke:"none",className:"recharts-area-area"})),f!=="none"&&T.createElement(sl,Vi({},le(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:d,fill:"none",points:r})),f!=="none"&&h&&T.createElement(sl,Vi({},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,o=l.points,c=l.baseLine,u=l.isAnimationActive,f=l.animationBegin,d=l.animationDuration,h=l.animationEasing,p=l.animationId,y=this.state,m=y.prevPoints,x=y.prevBaseLine;return T.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(m){var b=m.length/o.length,v=o.map(function(_,E){var N=Math.floor(E*b);if(m[N]){var k=m[N],M=At(k.x,_.x),B=At(k.y,_.y);return ka(ka({},_),{},{x:M(j),y:B(j)})}return _}),S;if(V(c)&&typeof c=="number"){var w=At(x,c);S=w(j)}else if(me(c)||Ds(c)){var A=At(x,0);S=A(j)}else S=c.map(function(_,E){var N=Math.floor(E*b);if(x[N]){var k=x[N],M=At(k.x,_.x),B=At(k.y,_.y);return ka(ka({},_),{},{x:M(j),y:B(j)})}return _});return i.renderAreaStatically(v,S,r,a)}return T.createElement(we,null,T.createElement("defs",null,T.createElement("clipPath",{id:"animationClipPath-".concat(a)},i.renderClipRect(j))),T.createElement(we,{clipPath:"url(#animationClipPath-".concat(a,")")},i.renderAreaStatically(o,c,r,a)))})}},{key:"renderArea",value:function(r,a){var i=this.props,l=i.points,o=i.baseLine,c=i.isAnimationActive,u=this.state,f=u.prevPoints,d=u.prevBaseLine,h=u.totalLength;return c&&l&&l.length&&(!f&&h>0||!xl(f,l)||!xl(d,o))?this.renderAreaWithAnimation(r,a):this.renderAreaStatically(l,o,r,a)}},{key:"render",value:function(){var r,a=this.props,i=a.hide,l=a.dot,o=a.points,c=a.className,u=a.top,f=a.left,d=a.xAxis,h=a.yAxis,p=a.width,y=a.height,m=a.isAnimationActive,x=a.id;if(i||!o||!o.length)return null;var g=this.state.isAnimationFinished,j=o.length===1,b=ye("recharts-area",c),v=d&&d.allowDataOverflow,S=h&&h.allowDataOverflow,w=v||S,A=me(x)?this.id:x,_=(r=le(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},E=_.r,N=E===void 0?3:E,k=_.strokeWidth,M=k===void 0?2:k,B=IC(l)?l:{},z=B.clipDot,P=z===void 0?!0:z,C=N*2+M;return T.createElement(we,{className:b},v||S?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(A)},T.createElement("rect",{x:v?f:f-p/2,y:S?u:u-y/2,width:v?p:p*2,height:S?y:y*2})),!P&&T.createElement("clipPath",{id:"clipPath-dots-".concat(A)},T.createElement("rect",{x:f-C/2,y:u-C/2,width:p+C,height:y+C}))):null,j?null:this.renderArea(w,A),(l||j)&&this.renderDots(w,P,A),(!m||g)&&Dr.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:a.curPoints,prevBaseLine:a.curBaseLine}:r.points!==a.curPoints||r.baseLine!==a.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(O.PureComponent);J$=Ai;$r(Ai,"displayName","Area");$r(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"});$r(Ai,"getBaseValue",function(e,t,n,r){var a=e.layout,i=e.baseValue,l=t.props.baseValue,o=l??i;if(V(o)&&typeof o=="number")return o;var c=a==="horizontal"?r:n,u=c.scale.domain();if(c.type==="number"){var f=Math.max(u[0],u[1]),d=Math.min(u[0],u[1]);return o==="dataMin"?d:o==="dataMax"||f<0?f:Math.max(Math.min(u[0],u[1]),0)}return o==="dataMin"?u[0]:o==="dataMax"?u[1]:u[0]});$r(Ai,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,a=e.yAxis,i=e.xAxisTicks,l=e.yAxisTicks,o=e.bandSize,c=e.dataKey,u=e.stackedData,f=e.dataStartIndex,d=e.displayedData,h=e.offset,p=t.layout,y=u&&u.length,m=J$.getBaseValue(t,n,r,a),x=p==="horizontal",g=!1,j=d.map(function(v,S){var w;y?w=u[f+S]:(w=ft(v,c),Array.isArray(w)?g=!0:w=[m,w]);var A=w[1]==null||y&&ft(v,c)==null;return x?{x:$h({axis:r,ticks:i,bandSize:o,entry:v,index:S}),y:A?null:a.scale(w[1]),value:w,payload:v}:{x:A?null:r.scale(w[1]),y:$h({axis:a,ticks:l,bandSize:o,entry:v,index:S}),value:w,payload:v}}),b;return y||g?b=j.map(function(v){var S=Array.isArray(v.value)?v.value[0]:null;return x?{x:v.x,y:S!=null&&v.y!=null?a.scale(S):null}:{x:S!=null?r.scale(S):null,y:v.y}}):b=x?a.scale(m):r.scale(m),ka({points:j,baseLine:b,layout:p,isRange:g},h)});$r(Ai,"renderDotItem",function(e,t){var n;if(T.isValidElement(e))n=T.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=eP(t,$fe);n=T.createElement(df,Vi({},i,{key:a,className:r}))}return n});function hs(e){"@babel/helpers - typeof";return hs=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},hs(e)}function Hfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qfe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iP(r.key),r)}}function Ffe(e,t,n){return t&&qfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gfe(e,t,n){return t=ip(t),Yfe(e,rP()?Reflect.construct(t,n||[],ip(e).constructor):t.apply(e,n))}function Yfe(e,t){if(t&&(hs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vfe(e)}function Vfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rP=function(){return!!e})()}function ip(e){return ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ip(e)}function Kfe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cb(e,t)}function Cb(e,t){return Cb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Cb(e,t)}function aP(e,t,n){return t=iP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iP(e){var t=Xfe(e,"string");return hs(t)=="symbol"?t:t+""}function Xfe(e,t){if(hs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}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)}function Wfe(e){var t=e.xAxisId,n=w1(),r=O1(),a=B$(t);return a==null?null:O.createElement(qs,Mb({},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 oa(l,!0)}}))}var di=function(e){function t(){return Hfe(this,t),Gfe(this,t,arguments)}return Kfe(t,e),Ffe(t,[{key:"render",value:function(){return O.createElement(Wfe,this.props)}}])}(O.Component);aP(di,"displayName","XAxis");aP(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 ps(e){"@babel/helpers - typeof";return ps=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},ps(e)}function Qfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zfe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sP(r.key),r)}}function Jfe(e,t,n){return t&&Zfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ede(e,t,n){return t=lp(t),tde(e,lP()?Reflect.construct(t,n||[],lp(e).constructor):t.apply(e,n))}function tde(e,t){if(t&&(ps(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nde(e)}function nde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lP=function(){return!!e})()}function lp(e){return lp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lp(e)}function rde(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 oP(e,t,n){return t=sP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sP(e){var t=ade(e,"string");return ps(t)=="symbol"?t:t+""}function ade(e,t){if(ps(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ps(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)}var ide=function(t){var n=t.yAxisId,r=w1(),a=O1(),i=I$(n);return i==null?null:O.createElement(qs,$b({},i,{className:ye("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(o){return oa(o,!0)}}))},hi=function(e){function t(){return Qfe(this,t),ede(this,t,arguments)}return rde(t,e),Jfe(t,[{key:"render",value:function(){return O.createElement(ide,this.props)}}])}(O.Component);oP(hi,"displayName","YAxis");oP(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 $A(e){return cde(e)||sde(e)||ode(e)||lde()}function lde(){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 ode(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 sde(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cde(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 Rb=function(t,n,r,a,i){var l=kn(t,E1),o=kn(t,Em),c=[].concat($A(l),$A(o)),u=kn(t,Tm),f="".concat(a,"Id"),d=a[0],h=n;if(c.length&&(h=c.reduce(function(m,x){if(x.props[f]===r&&zr(x.props,"extendDomain")&&V(x.props[d])){var g=x.props[d];return[Math.min(m[0],g),Math.max(m[1],g)]}return m},h)),u.length){var p="".concat(d,"1"),y="".concat(d,"2");h=u.reduce(function(m,x){if(x.props[f]===r&&zr(x.props,"extendDomain")&&V(x.props[p])&&V(x.props[y])){var g=x.props[p],j=x.props[y];return[Math.min(m[0],g,j),Math.max(m[1],g,j)]}return m},h)}return i&&i.length&&(h=i.reduce(function(m,x){return V(x)?[Math.min(m[0],x),Math.max(m[1],x)]:m},h)),h},cP={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 o(){this._events=new r,this._eventsCount=0}o.prototype.eventNames=function(){var u=[],f,d;if(this._eventsCount===0)return u;for(d in f=this._events)t.call(f,d)&&u.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},o.prototype.listeners=function(u){var f=n?n+u:u,d=this._events[f];if(!d)return[];if(d.fn)return[d.fn];for(var h=0,p=d.length,y=new Array(p);h<p;h++)y[h]=d[h].fn;return y},o.prototype.listenerCount=function(u){var f=n?n+u:u,d=this._events[f];return d?d.fn?1:d.length:0},o.prototype.emit=function(u,f,d,h,p,y){var m=n?n+u:u;if(!this._events[m])return!1;var x=this._events[m],g=arguments.length,j,b;if(x.fn){switch(x.once&&this.removeListener(u,x.fn,void 0,!0),g){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,f),!0;case 3:return x.fn.call(x.context,f,d),!0;case 4:return x.fn.call(x.context,f,d,h),!0;case 5:return x.fn.call(x.context,f,d,h,p),!0;case 6:return x.fn.call(x.context,f,d,h,p,y),!0}for(b=1,j=new Array(g-1);b<g;b++)j[b-1]=arguments[b];x.fn.apply(x.context,j)}else{var v=x.length,S;for(b=0;b<v;b++)switch(x[b].once&&this.removeListener(u,x[b].fn,void 0,!0),g){case 1:x[b].fn.call(x[b].context);break;case 2:x[b].fn.call(x[b].context,f);break;case 3:x[b].fn.call(x[b].context,f,d);break;case 4:x[b].fn.call(x[b].context,f,d,h);break;default:if(!j)for(S=1,j=new Array(g-1);S<g;S++)j[S-1]=arguments[S];x[b].fn.apply(x[b].context,j)}}return!0},o.prototype.on=function(u,f,d){return i(this,u,f,d,!1)},o.prototype.once=function(u,f,d){return i(this,u,f,d,!0)},o.prototype.removeListener=function(u,f,d,h){var 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 m=0,x=[],g=y.length;m<g;m++)(y[m].fn!==f||h&&!y[m].once||d&&y[m].context!==d)&&x.push(y[m]);x.length?this._events[p]=x.length===1?x[0]:x:l(this,p)}return this},o.prototype.removeAllListeners=function(u){var f;return u?(f=n?n+u:u,this._events[f]&&l(this,f)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,e.exports=o})(cP);var ude=cP.exports;const fde=$e(ude);var Xy=new fde,Wy="recharts.syncMouseEvents";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 dde(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,uP(r.key),r)}}function pde(e,t,n){return t&&hde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qy(e,t,n){return t=uP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uP(e){var t=mde(e,"string");return $u(t)=="symbol"?t:t+""}function mde(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 String(e)}var yde=function(){function e(){dde(this,e),Qy(this,"activeIndex",0),Qy(this,"coordinateList",[]),Qy(this,"layout","horizontal")}return pde(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,i=a===void 0?null:a,l=n.container,o=l===void 0?null:l,c=n.layout,u=c===void 0?null:c,f=n.offset,d=f===void 0?null:f,h=n.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(r=i??this.coordinateList)!==null&&r!==void 0?r:[],this.container=o??this.container,this.layout=u??this.layout,this.offset=d??this.offset,this.mouseHandlerCallback=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,o=a.height,c=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,f=((r=window)===null||r===void 0?void 0:r.scrollY)||0,d=i+c+u,h=l+this.offset.top+o/2+f;this.mouseHandlerCallback({pageX:d,pageY:h})}}}])}();function vde(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],a=e==null?void 0:e[1];if(r&&a&&V(r)&&V(a))return!0}return!1}function gde(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 fP(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,l=Ye(t,n,r,a),o=Ye(t,n,r,i);return{points:[l,o],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function bde(e,t,n){var r,a,i,l;if(e==="horizontal")r=t.x,i=r,a=n.top,l=n.top+n.height;else if(e==="vertical")a=t.y,l=a,r=n.left,i=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var o=t.cx,c=t.cy,u=t.innerRadius,f=t.outerRadius,d=t.angle,h=Ye(o,c,u,d),p=Ye(o,c,f,d);r=h.x,a=h.y,i=p.x,l=p.y}else return fP(t);return[{x:r,y:a},{x:i,y:l}]}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 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 Xf(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){xde(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 xde(e,t,n){return t=jde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jde(e){var t=Sde(e,"string");return Pu(t)=="symbol"?t:t+""}function Sde(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)}function wde(e){var t,n,r=e.element,a=e.tooltipEventType,i=e.isActive,l=e.activeCoordinate,o=e.activePayload,c=e.offset,u=e.activeTooltipIndex,f=e.tooltipAxisBandSize,d=e.layout,h=e.chartName,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,m=sl;if(h==="ScatterChart")y=l,m=Mle;else if(h==="BarChart")y=gde(d,l,c,f),m=g1;else if(d==="radial"){var x=fP(l),g=x.cx,j=x.cy,b=x.radius,v=x.startAngle,S=x.endAngle;y={cx:g,cy:j,startAngle:v,endAngle:S,innerRadius:b,outerRadius:b},m=a$}else y={points:bde(d,l,c)},m=sl;var w=Xf(Xf(Xf(Xf({stroke:"#ccc",pointerEvents:"none"},c),y),le(p,!1)),{},{payload:o,payloadIndex:u,className:ye("recharts-tooltip-cursor",p.className)});return O.isValidElement(p)?O.cloneElement(p,w):O.createElement(m,w)}var Ode=["item"],Ade=["children","className","width","height","style","compact","title","desc"];function ms(e){"@babel/helpers - typeof";return ms=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},ms(e)}function ho(){return ho=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},ho.apply(this,arguments)}function RA(e,t){return Tde(e)||_de(e,t)||hP(e,t)||Ede()}function Ede(){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 _de(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,l,o=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);c=!0);}catch(f){u=!0,a=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}function Tde(e){if(Array.isArray(e))return e}function DA(e,t){if(e==null)return{};var n=Nde(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 Nde(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 Cde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mde(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pP(r.key),r)}}function kde(e,t,n){return t&&Mde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $de(e,t,n){return t=op(t),Pde(e,dP()?Reflect.construct(t,n||[],op(e).constructor):t.apply(e,n))}function Pde(e,t){if(t&&(ms(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rde(e)}function Rde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dP=function(){return!!e})()}function op(e){return op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},op(e)}function Dde(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Db(e,t)}function Db(e,t){return Db=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Db(e,t)}function ys(e){return Bde(e)||Lde(e)||hP(e)||zde()}function zde(){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 hP(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 Lde(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bde(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}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 H(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){ue(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 ue(e,t,n){return t=pP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pP(e){var t=Ide(e,"string");return ms(t)=="symbol"?t:t+""}function Ide(e,t){if(ms(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ude={xAxis:["bottom","top"],yAxis:["left","right"]},Hde={width:"100%",height:"100%"},mP={x:0,y:0};function Wf(e){return e}var qde=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Fde=function(t,n,r,a){var i=n.find(function(f){return f&&f.index===r});if(i){if(t==="horizontal")return{x:i.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:i.coordinate};if(t==="centric"){var l=i.coordinate,o=a.radius;return H(H(H({},a),Ye(a.cx,a.cy,o,l)),{},{angle:l,radius:o})}var c=i.coordinate,u=a.angle;return H(H(H({},a),Ye(a.cx,a.cy,c,u)),{},{angle:u,radius:c})}return mP},Nm=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,i=n.dataEndIndex,l=(r??[]).reduce(function(o,c){var u=c.props.data;return u&&u.length?[].concat(ys(o),ys(u)):o},[]);return l.length>0?l:t&&t.length&&V(a)&&V(i)?t.slice(a,i+1):[]};function yP(e){return e==="number"?[0,"auto"]:void 0}var Lb=function(t,n,r,a){var i=t.graphicalItems,l=t.tooltipAxis,o=Nm(n,t);return r<0||!i||!i.length||r>=o.length?null:i.reduce(function(c,u){var f,d=(f=u.props.data)!==null&&f!==void 0?f:n;d&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(d=d.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(l.dataKey&&!l.allowDuplicatedCategory){var p=d===void 0?o:d;h=ah(p,l.dataKey,a)}else h=d&&d[r]||o[r];return h?[].concat(ys(c),[Zk(u,h)]):c},[])},LA=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},l=qde(i,r),o=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,f=Qne(l,o,u,c);if(f>=0&&u){var d=u[f]&&u[f].value,h=Lb(t,n,f,d),p=Fde(r,o,f,i);return{activeTooltipIndex:f,activeLabel:d,activePayload:h,activeCoordinate:p}}return null},Gde=function(t,n){var r=n.axes,a=n.graphicalItems,i=n.axisType,l=n.axisIdKey,o=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,h=t.stackOffset,p=Yk(f,i);return r.reduce(function(y,m){var x,g=m.type.defaultProps!==void 0?H(H({},m.type.defaultProps),m.props):m.props,j=g.type,b=g.dataKey,v=g.allowDataOverflow,S=g.allowDuplicatedCategory,w=g.scale,A=g.ticks,_=g.includeHidden,E=g[l];if(y[E])return y;var N=Nm(t.data,{graphicalItems:a.filter(function(X){var ie,D=l in X.props?X.props[l]:(ie=X.type.defaultProps)===null||ie===void 0?void 0:ie[l];return D===E}),dataStartIndex:c,dataEndIndex:u}),k=N.length,M,B,z;vde(g.domain,v,j)&&(M=Qg(g.domain,null,v),p&&(j==="number"||w!=="auto")&&(z=Mc(N,b,"category")));var P=yP(j);if(!M||M.length===0){var C,L=(C=g.domain)!==null&&C!==void 0?C:P;if(b){if(M=Mc(N,b,j),j==="category"&&p){var I=U9(M);S&&I?(B=M,M=Vh(0,k)):S||(M=oO(L,M,m).reduce(function(X,ie){return X.indexOf(ie)>=0?X:[].concat(ys(X),[ie])},[]))}else if(j==="category")S?M=M.filter(function(X){return X!==""&&!me(X)}):M=oO(L,M,m).reduce(function(X,ie){return X.indexOf(ie)>=0||ie===""||me(ie)?X:[].concat(ys(X),[ie])},[]);else if(j==="number"){var G=nre(N,a.filter(function(X){var ie,D,W=l in X.props?X.props[l]:(ie=X.type.defaultProps)===null||ie===void 0?void 0:ie[l],ce="hide"in X.props?X.props.hide:(D=X.type.defaultProps)===null||D===void 0?void 0:D.hide;return W===E&&(_||!ce)}),b,i,f);G&&(M=G)}p&&(j==="number"||w!=="auto")&&(z=Mc(N,b,"category"))}else p?M=Vh(0,k):o&&o[E]&&o[E].hasStack&&j==="number"?M=h==="expand"?[0,1]:Qk(o[E].stackGroups,c,u):M=Gk(N,a.filter(function(X){var ie=l in X.props?X.props[l]:X.type.defaultProps[l],D="hide"in X.props?X.props.hide:X.type.defaultProps.hide;return ie===E&&(_||!D)}),j,f,!0);if(j==="number")M=Rb(d,M,E,i,A),L&&(M=Qg(L,M,v));else if(j==="category"&&L){var Y=L,ne=M.every(function(X){return Y.indexOf(X)>=0});ne&&(M=Y)}}return H(H({},y),{},ue({},E,H(H({},g),{},{axisType:i,domain:M,categoricalDomain:z,duplicateDomain:B,originalDomain:(x=g.domain)!==null&&x!==void 0?x:P,isCategorical:p,layout:f})))},{})},Yde=function(t,n){var r=n.graphicalItems,a=n.Axis,i=n.axisType,l=n.axisIdKey,o=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,h=Nm(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=h.length,y=Yk(f,i),m=-1;return r.reduce(function(x,g){var j=g.type.defaultProps!==void 0?H(H({},g.type.defaultProps),g.props):g.props,b=j[l],v=yP("number");if(!x[b]){m++;var S;return y?S=Vh(0,p):o&&o[b]&&o[b].hasStack?(S=Qk(o[b].stackGroups,c,u),S=Rb(d,S,b,i)):(S=Qg(v,Gk(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],N="hide"in w.props?w.props.hide:(_=w.type.defaultProps)===null||_===void 0?void 0:_.hide;return E===b&&!N}),"number",f),a.defaultProps.allowDataOverflow),S=Rb(d,S,b,i)),H(H({},x),{},ue({},b,H(H({axisType:i},a.defaultProps),{},{hide:!0,orientation:Mn(Ude,"".concat(i,".").concat(m%2),null),domain:S,originalDomain:v,isCategorical:y,layout:f})))}return x},{})},Vde=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,i=n.AxisComp,l=n.graphicalItems,o=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,f=t.children,d="".concat(a,"Id"),h=kn(f,i),p={};return h&&h.length?p=Gde(t,{axes:h,graphicalItems:l,axisType:a,axisIdKey:d,stackGroups:o,dataStartIndex:c,dataEndIndex:u}):l&&l.length&&(p=Yde(t,{Axis:i,graphicalItems:l,axisType:a,axisIdKey:d,stackGroups:o,dataStartIndex:c,dataEndIndex:u})),p},Kde=function(t){var n=Ia(t),r=oa(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:Gx(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Ph(n,r)}},BA=function(t){var n=t.children,r=t.defaultShowTooltip,a=xn(n,is),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}},Xde=function(t){return!t||!t.length?!1:t.some(function(n){var r=da(n&&n.type);return r&&r.indexOf("Bar")>=0})},IA=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"}},Wde=function(t,n){var r=t.props,a=t.graphicalItems,i=t.xAxisMap,l=i===void 0?{}:i,o=t.yAxisMap,c=o===void 0?{}:o,u=r.width,f=r.height,d=r.children,h=r.margin||{},p=xn(d,is),y=xn(d,Mr),m=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}),x=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({},x),m),j=g.bottom;p&&(g.bottom+=p.props.height||is.defaultProps.height),y&&n&&(g=ere(g,a,r,n));var b=u-g.left-g.right,v=f-g.top-g.bottom;return H(H({brushBottom:j},g),{},{width:Math.max(b,0),height:Math.max(v,0)})},Qde=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Cm=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,l=t.validateTooltipEventTypes,o=l===void 0?["axis"]:l,c=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,d=t.defaultProps,h=function(g,j){var b=j.graphicalItems,v=j.stackGroups,S=j.offset,w=j.updateId,A=j.dataStartIndex,_=j.dataEndIndex,E=g.barSize,N=g.layout,k=g.barGap,M=g.barCategoryGap,B=g.maxBarSize,z=IA(N),P=z.numericAxisName,C=z.cateAxisName,L=Xde(b),I=[];return b.forEach(function(G,Y){var ne=Nm(g.data,{graphicalItems:[G],dataStartIndex:A,dataEndIndex:_}),X=G.type.defaultProps!==void 0?H(H({},G.type.defaultProps),G.props):G.props,ie=X.dataKey,D=X.maxBarSize,W=X["".concat(P,"Id")],ce=X["".concat(C,"Id")],de={},Ve=c.reduce(function(_i,Ti){var Mm=j["".concat(Ti.axisType,"Map")],C1=X["".concat(Ti.axisType,"Id")];Mm&&Mm[C1]||Ti.axisType==="zAxis"||Sl();var M1=Mm[C1];return H(H({},_i),{},ue(ue({},Ti.axisType,M1),"".concat(Ti.axisType,"Ticks"),oa(M1)))},de),ee=Ve[C],se=Ve["".concat(C,"Ticks")],J=v&&v[W]&&v[W].hasStack&&fre(G,v[W].stackGroups),F=da(G.type).indexOf("Bar")>=0,Pe=Ph(ee,se),be=[],at=L&&Zne({barSize:E,stackGroups:v,totalSize:Qde(Ve,C)});if(F){var ct,mt,Na=me(D)?B:D,Ll=(ct=(mt=Ph(ee,se,!0))!==null&&mt!==void 0?mt:Na)!==null&&ct!==void 0?ct:0;be=Jne({barGap:k,barCategoryGap:M,bandSize:Ll!==Pe?Ll:Pe,sizeList:at[ce],maxBarSize:Na}),Ll!==Pe&&(be=be.map(function(_i){return H(H({},_i),{},{position:H(H({},_i.position),{},{offset:_i.position.offset-Ll/2})})}))}var pf=G&&G.type&&G.type.getComposedData;pf&&I.push({props:H(H({},pf(H(H({},Ve),{},{displayedData:ne,props:g,dataKey:ie,item:G,bandSize:Pe,barPosition:be,offset:S,stackedData:J,layout:N,dataStartIndex:A,dataEndIndex:_}))),{},ue(ue(ue({key:G.key||"item-".concat(Y)},P,Ve[P]),C,Ve[C]),"animationId",w)),childIndex:J9(G,g.children),item:G})}),I},p=function(g,j){var b=g.props,v=g.dataStartIndex,S=g.dataEndIndex,w=g.updateId;if(!tw({props:b}))return null;var A=b.children,_=b.layout,E=b.stackOffset,N=b.data,k=b.reverseStackOrder,M=IA(_),B=M.numericAxisName,z=M.cateAxisName,P=kn(A,r),C=cre(N,P,"".concat(B,"Id"),"".concat(z,"Id"),E,k),L=c.reduce(function(X,ie){var D="".concat(ie.axisType,"Map");return H(H({},X),{},ue({},D,Vde(b,H(H({},ie),{},{graphicalItems:P,stackGroups:ie.axisType===B&&C,dataStartIndex:v,dataEndIndex:S}))))},{}),I=Wde(H(H({},L),{},{props:b,graphicalItems:P}),j==null?void 0:j.legendBBox);Object.keys(L).forEach(function(X){L[X]=f(b,L[X],I,X.replace("Map",""),n)});var G=L["".concat(z,"Map")],Y=Kde(G),ne=h(b,H(H({},L),{},{dataStartIndex:v,dataEndIndex:S,updateId:w,graphicalItems:P,stackGroups:C,offset:I}));return H(H({formattedGraphicalItems:ne,graphicalItems:P,offset:I,stackGroups:C},Y),L)},y=function(x){function g(j){var b,v,S;return Cde(this,g),S=$de(this,g,[j]),ue(S,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ue(S,"accessibilityManager",new yde),ue(S,"handleLegendBBoxUpdate",function(w){if(w){var A=S.state,_=A.dataStartIndex,E=A.dataEndIndex,N=A.updateId;S.setState(H({legendBBox:w},p({props:S.props,dataStartIndex:_,dataEndIndex:E,updateId:N},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=Z9(w),_=Mn(S.props,"".concat(A));if(A&&fe(_)){var E,N;/.*touch.*/i.test(A)?N=S.getMouseInfo(w.changedTouches[0]):N=S.getMouseInfo(w),_((E=N)!==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&&Xy.emit(Wy,S.props.syncId,w,S.eventEmitterSymbol)}),ue(S,"applySyncEvent",function(w){var A=S.props,_=A.layout,E=A.syncMethod,N=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:N},S.state)));else if(w.activeTooltipIndex!==void 0){var B=w.chartX,z=w.chartY,P=w.activeTooltipIndex,C=S.state,L=C.offset,I=C.tooltipTicks;if(!L)return;if(typeof E=="function")P=E(I,w);else if(E==="value"){P=-1;for(var G=0;G<I.length;G++)if(I[G].value===w.activeLabel){P=G;break}}var Y=H(H({},L),{},{x:L.left,y:L.top}),ne=Math.min(B,Y.x+Y.width),X=Math.min(z,Y.y+Y.height),ie=I[P]&&I[P].value,D=Lb(S.state,S.props.data,P),W=I[P]?{x:_==="horizontal"?I[P].coordinate:ne,y:_==="horizontal"?X:I[P].coordinate}:mP;S.setState(H(H({},w),{},{activeLabel:ie,activeCoordinate:W,activePayload:D,activeTooltipIndex:P}))}else S.setState(w)}),ue(S,"renderCursor",function(w){var A,_=S.state,E=_.isTooltipActive,N=_.activeCoordinate,k=_.activePayload,M=_.offset,B=_.activeTooltipIndex,z=_.tooltipAxisBandSize,P=S.getTooltipEventType(),C=(A=w.props.active)!==null&&A!==void 0?A:E,L=S.props.layout,I=w.key||"_recharts-cursor";return T.createElement(wde,{key:I,activeCoordinate:N,activePayload:k,activeTooltipIndex:B,chartName:n,element:w,isActive:C,layout:L,offset:M,tooltipAxisBandSize:z,tooltipEventType:P})}),ue(S,"renderPolarAxis",function(w,A,_){var E=Mn(w,"type.axisType"),N=Mn(S.state,"".concat(E,"Map")),k=w.type.defaultProps,M=k!==void 0?H(H({},k),w.props):w.props,B=N&&N[M["".concat(E,"Id")]];return O.cloneElement(w,H(H({},B),{},{className:ye(E,B.className),key:w.key||"".concat(A,"-").concat(_),ticks:oa(B,!0)}))}),ue(S,"renderPolarGrid",function(w){var A=w.props,_=A.radialLines,E=A.polarAngles,N=A.polarRadius,k=S.state,M=k.radiusAxisMap,B=k.angleAxisMap,z=Ia(M),P=Ia(B),C=P.cx,L=P.cy,I=P.innerRadius,G=P.outerRadius;return O.cloneElement(w,{polarAngles:Array.isArray(E)?E:oa(P,!0).map(function(Y){return Y.coordinate}),polarRadius:Array.isArray(N)?N:oa(z,!0).map(function(Y){return Y.coordinate}),cx:C,cy:L,innerRadius:I,outerRadius:G,key:w.key||"polar-grid",radialLines:_})}),ue(S,"renderLegend",function(){var w=S.state.formattedGraphicalItems,A=S.props,_=A.children,E=A.width,N=A.height,k=S.props.margin||{},M=E-(k.left||0)-(k.right||0),B=qk({children:_,formattedGraphicalItems:w,legendWidth:M,legendContent:u});if(!B)return null;var z=B.item,P=DA(B,Ode);return O.cloneElement(z,H(H({},P),{},{chartWidth:E,chartHeight:N,margin:k,onBBoxUpdate:S.handleLegendBBoxUpdate}))}),ue(S,"renderTooltip",function(){var w,A=S.props,_=A.children,E=A.accessibilityLayer,N=xn(_,Sn);if(!N)return null;var k=S.state,M=k.isTooltipActive,B=k.activeCoordinate,z=k.activePayload,P=k.activeLabel,C=k.offset,L=(w=N.props.active)!==null&&w!==void 0?w:M;return O.cloneElement(N,{viewBox:H(H({},C),{},{x:C.left,y:C.top}),active:L,label:P,payload:L?z:[],coordinate:B,accessibilityLayer:E})}),ue(S,"renderBrush",function(w){var A=S.props,_=A.margin,E=A.data,N=S.state,k=N.offset,M=N.dataStartIndex,B=N.dataEndIndex,z=N.updateId;return O.cloneElement(w,{key:w.key||"_recharts-brush",onChange:Gf(S.handleBrushChange,w.props.onChange),data:E,x:V(w.props.x)?w.props.x:k.left,y:V(w.props.y)?w.props.y:k.top+k.height+k.brushBottom-(_.bottom||0),width:V(w.props.width)?w.props.width:k.width,startIndex:M,endIndex:B,updateId:"brush-".concat(z)})}),ue(S,"renderReferenceElement",function(w,A,_){if(!w)return null;var E=S,N=E.clipPathId,k=S.state,M=k.xAxisMap,B=k.yAxisMap,z=k.offset,P=w.type.defaultProps||{},C=w.props,L=C.xAxisId,I=L===void 0?P.xAxisId:L,G=C.yAxisId,Y=G===void 0?P.yAxisId:G;return O.cloneElement(w,{key:w.key||"".concat(A,"-").concat(_),xAxis:M[I],yAxis:B[Y],viewBox:{x:z.left,y:z.top,width:z.width,height:z.height},clipPathId:N})}),ue(S,"renderActivePoints",function(w){var A=w.item,_=w.activePoint,E=w.basePoint,N=w.childIndex,k=w.isRange,M=[],B=A.props.key,z=A.item.type.defaultProps!==void 0?H(H({},A.item.type.defaultProps),A.item.props):A.item.props,P=z.activeDot,C=z.dataKey,L=H(H({index:N,dataKey:C,cx:_.x,cy:_.y,r:4,fill:v1(A.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},le(P,!1)),ih(P));return M.push(g.renderActiveDot(P,L,"".concat(B,"-activePoint-").concat(N))),E?M.push(g.renderActiveDot(P,H(H({},L),{},{cx:E.x,cy:E.y}),"".concat(B,"-basePoint-").concat(N))):k&&M.push(null),M}),ue(S,"renderGraphicChild",function(w,A,_){var E=S.filterFormatItem(w,A,_);if(!E)return null;var N=S.getTooltipEventType(),k=S.state,M=k.isTooltipActive,B=k.tooltipAxis,z=k.activeTooltipIndex,P=k.activeLabel,C=S.props.children,L=xn(C,Sn),I=E.props,G=I.points,Y=I.isRange,ne=I.baseLine,X=E.item.type.defaultProps!==void 0?H(H({},E.item.type.defaultProps),E.item.props):E.item.props,ie=X.activeDot,D=X.hide,W=X.activeBar,ce=X.activeShape,de=!!(!D&&M&&L&&(ie||W||ce)),Ve={};N!=="axis"&&L&&L.props.trigger==="click"?Ve={onClick:Gf(S.handleItemMouseEnter,w.props.onClick)}:N!=="axis"&&(Ve={onMouseLeave:Gf(S.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:Gf(S.handleItemMouseEnter,w.props.onMouseEnter)});var ee=O.cloneElement(w,H(H({},E.props),Ve));function se(Ti){return typeof B.dataKey=="function"?B.dataKey(Ti.payload):null}if(de)if(z>=0){var J,F;if(B.dataKey&&!B.allowDuplicatedCategory){var Pe=typeof B.dataKey=="function"?se:"payload.".concat(B.dataKey.toString());J=ah(G,Pe,P),F=Y&&ne&&ah(ne,Pe,P)}else J=G==null?void 0:G[z],F=Y&&ne&&ne[z];if(ce||W){var be=w.props.activeIndex!==void 0?w.props.activeIndex:z;return[O.cloneElement(w,H(H(H({},E.props),Ve),{},{activeIndex:be})),null,null]}if(!me(J))return[ee].concat(ys(S.renderActivePoints({item:E,activePoint:J,basePoint:F,childIndex:z,isRange:Y})))}else{var at,ct=(at=S.getItemByXY(S.state.activeCoordinate))!==null&&at!==void 0?at:{graphicalItem:ee},mt=ct.graphicalItem,Na=mt.item,Ll=Na===void 0?w:Na,pf=mt.childIndex,_i=H(H(H({},E.props),Ve),{},{activeIndex:pf});return[O.cloneElement(Ll,_i),null,null]}return Y?[ee,null,null]:[ee,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:Wf,once:!0},ReferenceArea:{handler:S.renderReferenceElement},ReferenceLine:{handler:Wf},ReferenceDot:{handler:S.renderReferenceElement},XAxis:{handler:Wf},YAxis:{handler:Wf},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((b=j.id)!==null&&b!==void 0?b:Ml("recharts"),"-clip"),S.throttleTriggeredAfterMouseMove=qM(S.triggeredAfterMouseMove,(v=j.throttleDelay)!==null&&v!==void 0?v:1e3/60),S.state={},S}return Dde(g,x),kde(g,[{key:"componentDidMount",value:function(){var b,v;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(v=this.props.margin.top)!==null&&v!==void 0?v:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,v=b.children,S=b.data,w=b.height,A=b.layout,_=xn(v,Sn);if(_){var E=_.props.defaultIndex;if(!(typeof E!="number"||E<0||E>this.state.tooltipTicks.length-1)){var N=this.state.tooltipTicks[E]&&this.state.tooltipTicks[E].value,k=Lb(this.state,S,E,N),M=this.state.tooltipTicks[E].coordinate,B=(this.state.offset.top+w)/2,z=A==="horizontal",P=z?{x:M,y:B}:{y:M,x:B},C=this.state.formattedGraphicalItems.find(function(I){var G=I.item;return G.type.name==="Scatter"});C&&(P=H(H({},P),C.props.points[E].tooltipPosition),k=C.props.points[E].tooltipPayload);var L={activeTooltipIndex:E,isTooltipActive:!0,activeLabel:N,activePayload:k,activeCoordinate:P};this.setState(L),this.renderCursor(_),this.accessibilityManager.setIndex(E)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,v){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==v.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var 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(b){dg([xn(b.children,Sn)],[xn(this.props.children,Sn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=xn(this.props.children,Sn);if(b&&typeof b.props.shared=="boolean"){var v=b.props.shared?"axis":"item";return o.indexOf(v)>=0?v:i}return i}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var v=this.container,S=v.getBoundingClientRect(),w=AZ(S),A={chartX:Math.round(b.pageX-w.left),chartY:Math.round(b.pageY-w.top)},_=S.width/v.offsetWidth||1,E=this.inRange(A.chartX,A.chartY,_);if(!E)return null;var N=this.state,k=N.xAxisMap,M=N.yAxisMap,B=this.getTooltipEventType(),z=LA(this.state,this.props.data,this.props.layout,E);if(B!=="axis"&&k&&M){var P=Ia(k).scale,C=Ia(M).scale,L=P&&P.invert?P.invert(A.chartX):null,I=C&&C.invert?C.invert(A.chartY):null;return H(H({},A),{},{xValue:L,yValue:I},z)}return z?H(H({},A),z):null}},{key:"inRange",value:function(b,v){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,A=b/S,_=v/S;if(w==="horizontal"||w==="vertical"){var E=this.state.offset,N=A>=E.left&&A<=E.left+E.width&&_>=E.top&&_<=E.top+E.height;return N?{x:A,y:_}:null}var k=this.state,M=k.angleAxisMap,B=k.radiusAxisMap;if(M&&B){var z=Ia(M);return uO({x:A,y:_},z)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,v=this.getTooltipEventType(),S=xn(b,Sn),w={};S&&v==="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=ih(this.props,this.handleOuterEvent);return H(H({},A),w)}},{key:"addListener",value:function(){Xy.on(Wy,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Xy.removeListener(Wy,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,v,S){for(var w=this.state.formattedGraphicalItems,A=0,_=w.length;A<_;A++){var E=w[A];if(E.item===b||E.props.key===b.key||v===da(E.item.type)&&S===E.childIndex)return E}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,v=this.state.offset,S=v.left,w=v.top,A=v.height,_=v.width;return T.createElement("defs",null,T.createElement("clipPath",{id:b},T.createElement("rect",{x:S,y:w,height:A,width:_})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(v,S){var w=RA(S,2),A=w[0],_=w[1];return H(H({},v),{},ue({},A,_.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(v,S){var w=RA(S,2),A=w[0],_=w[1];return H(H({},v),{},ue({},A,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var v;return(v=this.state.xAxisMap)===null||v===void 0||(v=v[b])===null||v===void 0?void 0:v.scale}},{key:"getYScaleByAxisId",value:function(b){var v;return(v=this.state.yAxisMap)===null||v===void 0||(v=v[b])===null||v===void 0?void 0:v.scale}},{key:"getItemByXY",value:function(b){var v=this.state,S=v.formattedGraphicalItems,w=v.activeItem;if(S&&S.length)for(var A=0,_=S.length;A<_;A++){var E=S[A],N=E.props,k=E.item,M=k.type.defaultProps!==void 0?H(H({},k.type.defaultProps),k.props):k.props,B=da(k.type);if(B==="Bar"){var z=(N.data||[]).find(function(I){return fle(b,I)});if(z)return{graphicalItem:E,payload:z}}else if(B==="RadialBar"){var P=(N.data||[]).find(function(I){return uO(b,I)});if(P)return{graphicalItem:E,payload:P}}else if(Sm(E,w)||wm(E,w)||Tu(E,w)){var C=Joe({graphicalItem:E,activeTooltipItem:w,itemData:M.data}),L=M.activeIndex===void 0?C:M.activeIndex;return{graphicalItem:H(H({},E),{},{childIndex:L}),payload:Tu(E,w)?M.data[C]:E.props.data[C]}}}return null}},{key:"render",value:function(){var b=this;if(!tw(this))return null;var v=this.props,S=v.children,w=v.className,A=v.width,_=v.height,E=v.style,N=v.compact,k=v.title,M=v.desc,B=DA(v,Ade),z=le(B,!1);if(N)return T.createElement(mA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement(pg,ho({},z,{width:A,height:_,title:k,desc:M}),this.renderClipPath(),rw(S,this.renderMap)));if(this.props.accessibilityLayer){var P,C;z.tabIndex=(P=this.props.tabIndex)!==null&&P!==void 0?P:0,z.role=(C=this.props.role)!==null&&C!==void 0?C:"application",z.onKeyDown=function(I){b.accessibilityManager.keyboardEvent(I)},z.onFocus=function(){b.accessibilityManager.focus()}}var L=this.parseEventsOfWrapper();return T.createElement(mA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement("div",ho({className:ye("recharts-wrapper",w),style:H({position:"relative",cursor:"default",width:A,height:_},E)},L,{ref:function(G){b.container=G}}),T.createElement(pg,ho({},z,{width:A,height:_,title:k,desc:M,style:Hde}),this.renderClipPath(),rw(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(x,g){var j=x.dataKey,b=x.data,v=x.children,S=x.width,w=x.height,A=x.layout,_=x.stackOffset,E=x.margin,N=g.dataStartIndex,k=g.dataEndIndex;if(g.updateId===void 0){var M=BA(x);return H(H(H({},M),{},{updateId:0},p(H(H({props:x},M),{},{updateId:0}),g)),{},{prevDataKey:j,prevData:b,prevWidth:S,prevHeight:w,prevLayout:A,prevStackOffset:_,prevMargin:E,prevChildren:v})}if(j!==g.prevDataKey||b!==g.prevData||S!==g.prevWidth||w!==g.prevHeight||A!==g.prevLayout||_!==g.prevStackOffset||!jo(E,g.prevMargin)){var B=BA(x),z={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},P=H(H({},LA(g,b,A)),{},{updateId:g.updateId+1}),C=H(H(H({},B),z),P);return H(H(H({},C),p(H({props:x},C),g)),{},{prevDataKey:j,prevData:b,prevWidth:S,prevHeight:w,prevLayout:A,prevStackOffset:_,prevMargin:E,prevChildren:v})}if(!dg(v,g.prevChildren)){var L,I,G,Y,ne=xn(v,is),X=ne&&(L=(I=ne.props)===null||I===void 0?void 0:I.startIndex)!==null&&L!==void 0?L:N,ie=ne&&(G=(Y=ne.props)===null||Y===void 0?void 0:Y.endIndex)!==null&&G!==void 0?G:k,D=X!==N||ie!==k,W=!me(b),ce=W&&!D?g.updateId:g.updateId+1;return H(H({updateId:ce},p(H(H({props:x},g),{},{updateId:ce,dataStartIndex:X,dataEndIndex:ie}),g)),{},{prevChildren:v,dataStartIndex:X,dataEndIndex:ie})}return null}),ue(y,"renderActiveDot",function(x,g,j){var b;return O.isValidElement(x)?b=O.cloneElement(x,g):fe(x)?b=x(g):b=T.createElement(df,g),T.createElement(we,{className:"recharts-active-dot",key:j},b)});var m=O.forwardRef(function(g,j){return T.createElement(y,ho({},g,{ref:j}))});return m.displayName=y.displayName,m},Zde=Cm({chartName:"LineChart",GraphicalChild:hf,axisComponents:[{axisType:"xAxis",AxisComp:di},{axisType:"yAxis",AxisComp:hi}],formatAxisMap:b1}),Jde=Cm({chartName:"BarChart",GraphicalChild:Rl,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:di},{axisType:"yAxis",AxisComp:hi}],formatAxisMap:b1}),ehe=Cm({chartName:"PieChart",GraphicalChild:Ta,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:jm},{axisType:"radiusAxis",AxisComp:bm}],formatAxisMap:jre,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),the=Cm({chartName:"AreaChart",GraphicalChild:Ai,axisComponents:[{axisType:"xAxis",AxisComp:di},{axisType:"yAxis",AxisComp:hi}],formatAxisMap:b1});const wr=["#00a0c8","#3ddc97","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899"],Yl={fontSize:11,fill:"#94a3b8"},Qf={background:"#0f172a",border:"1px solid #26304a",borderRadius:8,fontSize:12,color:"#e2e8f0"};function nhe(e){const t=e.labels||[],n=e.series||[];return t.map((r,a)=>{const i={name:r};return n.forEach(l=>{var o;i[l.name]=((o=l.data)==null?void 0:o[a])??0}),i})}function Bb({type:e="BAR",data:t,height:n=240}){const r=t||{},a=r.series||[],i=nhe(r);if(!i.length)return s.jsx("div",{className:"flex items-center justify-center text-slate-500 text-sm",style:{height:n},children:"데이터 없음"});const l=(e||"BAR").toUpperCase();if(l==="PIE"){const o=a[0],c=(r.labels||[]).map((u,f)=>{var d;return{name:u,value:((d=o==null?void 0:o.data)==null?void 0:d[f])??0}});return s.jsx(If,{width:"100%",height:n,children:s.jsxs(ehe,{children:[s.jsx(Ta,{data:c,dataKey:"value",nameKey:"name",outerRadius:n/2.8,innerRadius:n/5,children:c.map((u,f)=>s.jsx(om,{fill:wr[f%wr.length]},f))}),s.jsx(Sn,{contentStyle:Qf}),s.jsx(Mr,{wrapperStyle:{fontSize:11}})]})})}return l==="LINE"?s.jsx(If,{width:"100%",height:n,children:s.jsxs(Zde,{data:i,children:[s.jsx(bd,{strokeDasharray:"3 3",stroke:"#26304a"}),s.jsx(di,{dataKey:"name",tick:Yl}),s.jsx(hi,{tick:Yl}),s.jsx(Sn,{contentStyle:Qf}),s.jsx(Mr,{wrapperStyle:{fontSize:11}}),a.map((o,c)=>s.jsx(hf,{type:"monotone",dataKey:o.name,stroke:wr[c%wr.length],strokeWidth:2,dot:!1},o.name))]})}):l==="AREA"?s.jsx(If,{width:"100%",height:n,children:s.jsxs(the,{data:i,children:[s.jsx(bd,{strokeDasharray:"3 3",stroke:"#26304a"}),s.jsx(di,{dataKey:"name",tick:Yl}),s.jsx(hi,{tick:Yl}),s.jsx(Sn,{contentStyle:Qf}),s.jsx(Mr,{wrapperStyle:{fontSize:11}}),a.map((o,c)=>s.jsx(Ai,{type:"monotone",dataKey:o.name,stroke:wr[c%wr.length],fill:wr[c%wr.length],fillOpacity:.18,strokeWidth:2},o.name))]})}):s.jsx(If,{width:"100%",height:n,children:s.jsxs(Jde,{data:i,children:[s.jsx(bd,{strokeDasharray:"3 3",stroke:"#26304a"}),s.jsx(di,{dataKey:"name",tick:Yl}),s.jsx(hi,{tick:Yl}),s.jsx(Sn,{contentStyle:Qf,cursor:{fill:"#26304a55"}}),s.jsx(Mr,{wrapperStyle:{fontSize:11}}),a.map((o,c)=>s.jsx(Rl,{dataKey:o.name,fill:wr[c%wr.length],radius:[3,3,0,0]},o.name))]})})}function Ln({title:e,subtitle:t,actions:n}){return s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-xl font-bold",children:e}),t&&s.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:t})]}),n&&s.jsx("div",{className:"flex items-center gap-2",children:n})]})}function K({label:e,children:t,hint:n}){return s.jsxs("div",{children:[s.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:e}),t,n&&s.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:n})]})}function rt({title:e,onClose:t,children:n,wide:r}){return s.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",onClick:t,children:s.jsxs("div",{className:`bg-panel border border-edge rounded-2xl p-6 ${r?"w-[760px]":"w-[480px]"} max-h-[90vh] overflow-auto`,onClick:a=>a.stopPropagation(),children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("h2",{className:"text-lg font-bold",children:e}),s.jsx("button",{onClick:t,className:"text-slate-400 hover:text-slate-200",children:s.jsx(WN,{size:18})})]}),n]})})}function Q({children:e,onClick:t,variant:n="primary",size:r="md",disabled:a,title:i,type:l}){const o="inline-flex items-center gap-1.5 rounded-lg font-semibold transition-colors disabled:opacity-50",c=r==="sm"?"px-2.5 py-1 text-xs":"px-3 py-2 text-sm",u=n==="primary"?"bg-brand text-ink hover:bg-brand/90":n==="danger"?"bg-rose-500/90 text-white hover:bg-rose-500":"bg-card border border-edge text-slate-300 hover:border-brand";return s.jsx("button",{type:l||"button",onClick:t,disabled:a,title:i,className:`${o} ${c} ${u}`,children:e})}function rn({msg:e="데이터가 없습니다.",colSpan:t}){return t?s.jsx("tr",{children:s.jsx("td",{colSpan:t,className:"py-6 text-center text-slate-500 text-sm",children:e})}):s.jsx("div",{className:"py-8 text-center text-slate-500 text-sm bg-card border border-edge rounded-xl",children:e})}function xt({title:e,icon:t,children:n,className:r=""}){return s.jsxs("div",{className:`bg-card border border-edge rounded-xl p-4 ${r}`,children:[e&&s.jsxs("h3",{className:"text-sm font-semibold mb-3 flex items-center gap-1.5",children:[t,e]}),n]})}function sa(e,t=[]){if(e==null)return t;if(typeof e=="object")return e;try{return JSON.parse(e)}catch{return t}}function Ib(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e,null,2)}catch{return""}}const rhe=[{key:"totalContent",label:"전체 콘텐츠",icon:Mp,color:"text-brand"},{key:"publishedContent",label:"게시됨",icon:X5,color:"text-emerald-400"},{key:"draftContent",label:"초안",icon:W5,color:"text-slate-300"},{key:"reviewContent",label:"검토 대기",icon:BN,color:"text-amber-400"},{key:"mediaCount",label:"미디어",icon:kp,color:"text-sky-400"},{key:"pendingUgc",label:"UGC 대기",icon:FN,color:"text-rose-400"},{key:"memberCount",label:"회원",icon:hx,color:"text-violet-400"},{key:"totalViews",label:"총 조회수",icon:eh,color:"text-accent"}];function ahe(){const[e,t]=O.useState({}),[n,r]=O.useState(null),[a,i]=O.useState([]);O.useEffect(()=>{TL().then(c=>t(c||{})).catch(()=>t({})),NL().then(r).catch(()=>r(null)),CL().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})(),o=e.totalViews?((e.totalConversions||0)/e.totalViews*100).toFixed(1):"0.0";return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-xl font-bold",children:"콘텐츠 개요"}),s.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:"게시 현황 · 워크플로우 · 콘텐츠 성과 통합 뷰"})]}),s.jsxs(tx,{to:"/ai-tools",className:"flex items-center gap-1.5 text-sm text-brand hover:underline",children:[s.jsx(ht,{size:16})," AI 도구 열기 ",s.jsx(D5,{size:14})]})]}),s.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:rhe.map(({key:c,label:u,icon:f,color:d})=>s.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4",children:[s.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-400",children:[s.jsx(f,{size:13})," ",u]}),s.jsx("div",{className:`text-2xl font-bold mt-2 ${d}`,children:Number(e[c]??0).toLocaleString()})]},c))}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4 mb-6",children:[s.jsx(xt,{title:"게시 워크플로우 현황",icon:s.jsx(BN,{size:15}),className:"lg:col-span-2",children:s.jsx(Bb,{type:"BAR",data:l||void 0})}),s.jsx(xt,{title:"전환율",icon:s.jsx(rg,{size:15}),children:s.jsxs("div",{className:"flex flex-col items-center justify-center h-[240px]",children:[s.jsxs("div",{className:"text-5xl font-bold text-accent",children:[o,"%"]}),s.jsxs("div",{className:"text-sm text-slate-400 mt-3",children:["전환 ",Number(e.totalConversions??0).toLocaleString()," / 조회 ",Number(e.totalViews??0).toLocaleString()]})]})})]}),s.jsx(xt,{title:"인기 콘텐츠 TOP",icon:s.jsx(eh,{size:15}),children:a.length===0?s.jsx("p",{className:"text-slate-500 text-sm py-2",children:"데이터가 없습니다."}):s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-2",children:"제목"}),s.jsx("th",{className:"text-left",children:"유형"}),s.jsx("th",{className:"text-right",children:"조회"}),s.jsx("th",{className:"text-right",children:"전환"})]})}),s.jsx("tbody",{children:a.slice(0,8).map((c,u)=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsx("td",{className:"py-2 font-medium",children:c.title||c.contentTitle||`#${c.contentId??c.id}`}),s.jsx("td",{className:"text-slate-400",children:c.contentType||"-"}),s.jsx("td",{className:"text-right text-slate-300",children:Number(c.views??c.totalViews??0).toLocaleString()}),s.jsx("td",{className:"text-right text-slate-300",children:Number(c.conversions??c.totalConversions??0).toLocaleString()})]},c.id??u))})]})})]})}const UA={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 $n({status:e}){const t=(e||"").toUpperCase(),n=UA[t]||UA.DRAFT;return s.jsx("span",{className:`inline-block px-2 py-0.5 rounded text-xs font-medium border ${n}`,children:e||"-"})}const ihe=["","PAGE","POST","PRODUCT","LANDING"],lhe=["","DRAFT","REVIEW","APPROVED","PUBLISHED","ARCHIVED","SCHEDULED"];function ohe(){const e=Ts(),[t,n]=O.useState([]),[r,a]=O.useState(""),[i,l]=O.useState(""),[o,c]=O.useState(""),[u,f]=O.useState(!1),d=zn(),h=()=>{f(!0),ML({contentType:r,status:i,keyword:o}).then(y=>n(y||[])).catch(()=>n([])).finally(()=>f(!1))};O.useEffect(()=>{h()},[r,i]);const p=async y=>{window.confirm("이 콘텐츠를 삭제하시겠습니까?")&&(await DL(y),h())};return s.jsxs("div",{children:[s.jsx(Ln,{title:"콘텐츠",subtitle:"페이지 · 포스트 · 헤드리스 블록 콘텐츠",actions:d&&s.jsxs(Q,{onClick:()=>e("/contents/new"),children:[s.jsx(Xt,{size:16})," 새 콘텐츠"]})}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[s.jsxs("div",{className:"relative",children:[s.jsx(Ju,{size:14,className:"absolute left-2.5 top-2.5 text-slate-500"}),s.jsx("input",{value:o,onChange:y=>c(y.target.value),onKeyDown:y=>y.key==="Enter"&&h(),placeholder:"제목/슬러그 검색",className:"inp pl-8 w-56"})]}),s.jsx("select",{className:"inp w-36",value:r,onChange:y=>a(y.target.value),children:ihe.map(y=>s.jsx("option",{value:y,children:y||"전체 유형"},y))}),s.jsx("select",{className:"inp w-36",value:i,onChange:y=>l(y.target.value),children:lhe.map(y=>s.jsx("option",{value:y,children:y||"전체 상태"},y))}),s.jsx(Q,{variant:"ghost",onClick:h,children:"검색"})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"제목"}),s.jsx("th",{className:"text-left",children:"유형"}),s.jsx("th",{className:"text-left",children:"로케일"}),s.jsx("th",{className:"text-left",children:"상태"}),s.jsx("th",{className:"text-left",children:"버전"}),s.jsx("th",{className:"text-left",children:"수정일"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[t.map(y=>s.jsxs("tr",{className:"border-t border-edge/50 hover:bg-panel/40 cursor-pointer",onClick:()=>e(`/contents/${y.id}`),children:[s.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-2",children:[s.jsx(Mp,{size:15,className:"text-brand"}),s.jsxs("div",{children:[s.jsx("div",{children:y.title}),s.jsxs("div",{className:"text-[11px] text-slate-500 font-mono",children:["/",y.slug]})]})]}),s.jsx("td",{className:"text-slate-400",children:y.contentType}),s.jsx("td",{className:"text-slate-400",children:y.locale}),s.jsx("td",{children:s.jsx($n,{status:y.scheduledAt&&y.status!=="PUBLISHED"?"SCHEDULED":y.status})}),s.jsxs("td",{className:"text-slate-500",children:["v",y.version]}),s.jsx("td",{className:"text-slate-500 text-xs",children:y.updatedAt?new Date(y.updatedAt).toLocaleString("ko-KR"):"-"}),s.jsx("td",{className:"px-4",onClick:m=>m.stopPropagation(),children:s.jsxs("div",{className:"flex items-center justify-end gap-3",children:[s.jsx("button",{onClick:()=>e(`/contents/${y.id}`),className:"text-slate-400 hover:text-brand",children:s.jsx(Ns,{size:15})}),d&&s.jsx("button",{onClick:()=>p(y.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(Gt,{size:15})})]})})]},y.id)),t.length===0&&s.jsx(rn,{colSpan:7,msg:u?"불러오는 중…":"콘텐츠가 없습니다."})]})]})})]})}const she=[{type:"text",label:"텍스트",icon:Sz},{type:"image",label:"이미지",icon:kp},{type:"product",label:"상품",icon:ux},{type:"banner",label:"배너",icon:cx}];function che(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 uhe={contentType:"PAGE",slug:"",title:"",summary:"",blocks:[],locale:"ko",tags:"",seoMeta:{title:"",description:"",keywords:""},menuId:null};function HA(){var ne,X,ie;const{id:e}=r4(),t=Ts(),n=!e||e==="new",[r,a]=O.useState({...uhe}),[i,l]=O.useState("DRAFT"),[o,c]=O.useState(1),[u,f]=O.useState(null),[d,h]=O.useState([]),[p,y]=O.useState(!1),[m,x]=O.useState(!1),[g,j]=O.useState(""),[b,v]=O.useState(""),[S,w]=O.useState(""),A=zn(),_=QN();O.useEffect(()=>{n||kL(Number(e)).then(D=>{D&&(a({contentType:D.contentType,slug:D.slug,title:D.title,summary:D.summary||"",blocks:sa(D.blocks,[]),locale:D.locale,tags:D.tags||"",seoMeta:sa(D.seoMeta,{title:"",description:"",keywords:""}),menuId:D.menuId??null}),l(D.status),c(D.version),f(D.scheduledAt))}).catch(()=>{})},[e]);const E=()=>{$L(Number(e)).then(D=>{h(D||[]),y(!0)}).catch(()=>h([]))},N=(D,W)=>{const ce=[...r.blocks];ce[D]={...ce[D],...W},a({...r,blocks:ce})},k=D=>a({...r,blocks:[...r.blocks,che(D)]}),M=D=>a({...r,blocks:r.blocks.filter((W,ce)=>ce!==D)}),B=(D,W)=>{const ce=D+W;if(ce<0||ce>=r.blocks.length)return;const de=[...r.blocks];[de[D],de[ce]]=[de[ce],de[D]],a({...r,blocks:de})},z=async()=>{var W,ce;w("");const D={...r};try{if(n){const de=await PL(D);t(`/contents/${de.id}`,{replace:!0})}else{const de=await RL(Number(e),D);c(de.version),w("저장되었습니다.")}}catch(de){w(((ce=(W=de==null?void 0:de.response)==null?void 0:W.data)==null?void 0:ce.message)||"저장에 실패했습니다.")}},P=async D=>{var W,ce;if(n){w("먼저 저장하세요.");return}try{const de=await IS(Number(e),{action:D});l(de.status),f(de.scheduledAt),w(`상태 전환: ${de.status}`)}catch(de){w(((ce=(W=de==null?void 0:de.response)==null?void 0:W.data)==null?void 0:ce.message)||"상태 전환에 실패했습니다 (권한 확인).")}},C=async()=>{var D,W;if(g)try{const ce=await IS(Number(e),{action:"schedule",scheduledAt:new Date(g).toISOString()});l(ce.status),f(ce.scheduledAt),x(!1),w("예약 게시가 설정되었습니다.")}catch(ce){w(((W=(D=ce==null?void 0:ce.response)==null?void 0:D.data)==null?void 0:W.message)||"예약에 실패했습니다.")}},L=async D=>{var W,ce;if(window.confirm(`v${D} 로 롤백하시겠습니까? (DRAFT 로 복원)`))try{const de=await zL(Number(e),D);a({contentType:de.contentType,slug:de.slug,title:de.title,summary:de.summary||"",blocks:sa(de.blocks,[]),locale:de.locale,tags:de.tags||"",seoMeta:sa(de.seoMeta,{}),menuId:de.menuId??null}),l(de.status),c(de.version),y(!1),w(`v${D} 로 롤백되었습니다.`)}catch(de){w(((ce=(W=de==null?void 0:de.response)==null?void 0:W.data)==null?void 0:ce.message)||"롤백에 실패했습니다.")}},I=async()=>{var D;v("draft");try{const W=await AC(((D=r.contentType)==null?void 0:D.toLowerCase())||"page",r.title||r.slug||"콘텐츠","professional");W!=null&&W.draft&&G(W.draft)}catch{w("AI 초안 생성 실패 (Ollama 폴백)")}finally{v("")}},G=D=>a(W=>({...W,blocks:[...W.blocks,{type:"text",text:D}]})),Y=async()=>{v("seo");const D=r.blocks.filter(W=>W.type==="text").map(W=>W.text).join(`
`);try{const W=await EC(r.title||"",D);a(ce=>({...ce,seoMeta:{...ce.seoMeta,description:(W==null?void 0:W.metaDescription)||ce.seoMeta.description,keywords:((W==null?void 0:W.keywords)||[]).join(", ")}})),w(`AI SEO 제안 적용 (점수 ${(W==null?void 0:W.score)??"-"})`)}catch{w("AI SEO 제안 실패")}finally{v("")}};return s.jsxs("div",{children:[s.jsx(Ln,{title:n?"새 콘텐츠":"콘텐츠 편집",subtitle:n?"헤드리스 블록 콘텐츠 작성":`v${o}`,actions:s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs(Q,{variant:"ghost",onClick:()=>t("/contents"),children:[s.jsx(P5,{size:15})," 목록"]}),!n&&s.jsx($n,{status:u&&i!=="PUBLISHED"?"SCHEDULED":i}),!n&&s.jsxs(Q,{variant:"ghost",onClick:E,children:[s.jsx(tz,{size:15})," 버전"]}),A&&s.jsxs(Q,{onClick:z,children:[s.jsx(fx,{size:15})," 저장"]})]})}),S&&s.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&&s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-5 bg-card border border-edge rounded-xl p-3",children:[s.jsx("span",{className:"text-xs text-slate-500 mr-1",children:"워크플로우:"}),s.jsxs(Q,{size:"sm",variant:"ghost",onClick:()=>P("submit"),children:[s.jsx(VN,{size:13})," 검토 요청"]}),s.jsxs(Q,{size:"sm",variant:"ghost",disabled:!_,onClick:()=>P("approve"),title:_?"":"Editor+ 필요",children:[s.jsx(q5,{size:13})," 승인"]}),s.jsxs(Q,{size:"sm",variant:"ghost",disabled:!_,onClick:()=>P("publish"),title:_?"":"Editor+ 필요",children:[s.jsx(lx,{size:13})," 발행"]}),s.jsxs(Q,{size:"sm",variant:"ghost",disabled:!_,onClick:()=>P("reject"),title:_?"":"Editor+ 필요",children:[s.jsx(G5,{size:13})," 반려"]}),s.jsxs(Q,{size:"sm",variant:"ghost",disabled:!_,onClick:()=>P("archive"),title:_?"":"Editor+ 필요",children:[s.jsx($5,{size:13})," 보관"]}),s.jsxs(Q,{size:"sm",variant:"ghost",disabled:!_,onClick:()=>{j(""),x(!0)},title:_?"":"Editor+ 필요",children:[s.jsx(B5,{size:13})," 예약 게시"]}),u&&s.jsxs("span",{className:"text-[11px] text-violet-400 ml-1",children:["예약: ",new Date(u).toLocaleString("ko-KR")]})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[s.jsxs(xt,{title:"기본 정보",className:"lg:col-span-1 self-start",children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(K,{label:"제목",children:s.jsx("input",{className:"inp",value:r.title,onChange:D=>a({...r,title:D.target.value})})}),s.jsx(K,{label:"슬러그",children:s.jsx("input",{className:"inp",value:r.slug,onChange:D=>a({...r,slug:D.target.value}),placeholder:"url-slug"})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(K,{label:"유형",children:s.jsx("select",{className:"inp",value:r.contentType,onChange:D=>a({...r,contentType:D.target.value}),children:["PAGE","POST","PRODUCT","LANDING"].map(D=>s.jsx("option",{children:D},D))})}),s.jsx(K,{label:"로케일",children:s.jsx("select",{className:"inp",value:r.locale,onChange:D=>a({...r,locale:D.target.value}),children:["ko","en","ja","zh"].map(D=>s.jsx("option",{children:D},D))})})]}),s.jsx(K,{label:"요약",children:s.jsx("textarea",{className:"inp",value:r.summary,onChange:D=>a({...r,summary:D.target.value})})}),s.jsx(K,{label:"태그 (쉼표 구분)",children:s.jsx("input",{className:"inp",value:r.tags,onChange:D=>a({...r,tags:D.target.value})})})]}),s.jsxs("div",{className:"mt-5 pt-4 border-t border-edge",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsxs("span",{className:"text-xs font-semibold text-slate-300 flex items-center gap-1",children:[s.jsx(ht,{size:13,className:"text-accent"})," SEO 메타"]}),s.jsxs(Q,{size:"sm",variant:"ghost",disabled:!!b,onClick:Y,children:[s.jsx(ht,{size:12})," ",b==="seo"?"생성 중…":"AI 제안"]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("input",{className:"inp",placeholder:"SEO 제목",value:((ne=r.seoMeta)==null?void 0:ne.title)||"",onChange:D=>a({...r,seoMeta:{...r.seoMeta,title:D.target.value}})}),s.jsx("textarea",{className:"inp",placeholder:"메타 설명",value:((X=r.seoMeta)==null?void 0:X.description)||"",onChange:D=>a({...r,seoMeta:{...r.seoMeta,description:D.target.value}})}),s.jsx("input",{className:"inp",placeholder:"키워드",value:((ie=r.seoMeta)==null?void 0:ie.keywords)||"",onChange:D=>a({...r,seoMeta:{...r.seoMeta,keywords:D.target.value}})})]})]})]}),s.jsx("div",{className:"lg:col-span-2",children:s.jsxs(xt,{title:"블록 에디터",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-4 flex-wrap",children:[she.map(({type:D,label:W,icon:ce})=>s.jsxs(Q,{size:"sm",variant:"ghost",onClick:()=>k(D),children:[s.jsx(ce,{size:13})," ",W]},D)),s.jsxs(Q,{size:"sm",variant:"ghost",disabled:!!b,onClick:I,children:[s.jsx(ht,{size:13})," ",b==="draft"?"AI 초안…":"AI 초안 블록"]})]}),r.blocks.length===0&&s.jsx("div",{className:"text-center text-slate-500 text-sm py-10 border border-dashed border-edge rounded-lg",children:"블록을 추가하세요. (텍스트 / 이미지 / 상품 / 배너)"}),s.jsx("div",{className:"space-y-3",children:r.blocks.map((D,W)=>s.jsxs("div",{className:"bg-panel border border-edge rounded-lg p-3",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-semibold text-brand",children:[s.jsx(IN,{size:13,className:"text-slate-500"})," ",D.type.toUpperCase()," ",s.jsxs("span",{className:"text-slate-500",children:["#",W+1]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("button",{onClick:()=>B(W,-1),className:"text-slate-500 hover:text-brand text-xs",children:"▲"}),s.jsx("button",{onClick:()=>B(W,1),className:"text-slate-500 hover:text-brand text-xs",children:"▼"}),s.jsx("button",{onClick:()=>M(W),className:"text-rose-400 hover:text-rose-300",children:s.jsx(Gt,{size:14})})]})]}),s.jsx(fhe,{block:D,onChange:ce=>N(W,ce)})]},W))}),s.jsxs("details",{className:"mt-4",children:[s.jsx("summary",{className:"text-[11px] text-slate-500 cursor-pointer",children:"블록 JSON 보기"}),s.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&&s.jsx(rt,{title:"버전 히스토리",onClose:()=>y(!1),children:d.length===0?s.jsx("p",{className:"text-slate-500 text-sm",children:"버전 기록이 없습니다."}):s.jsx("ul",{className:"divide-y divide-edge/50",children:d.map(D=>s.jsxs("li",{className:"flex items-center justify-between py-2.5 text-sm",children:[s.jsxs("div",{children:[s.jsxs("span",{className:"font-medium",children:["v",D.version]}),s.jsx("span",{className:"text-slate-400 ml-2",children:D.title}),s.jsxs("div",{className:"text-[11px] text-slate-500",children:[D.createdAt?new Date(D.createdAt).toLocaleString("ko-KR"):""," · ",D.createdBy||""]})]}),s.jsxs(Q,{size:"sm",variant:"ghost",onClick:()=>L(D.version),children:[s.jsx(hz,{size:13})," 롤백"]})]},D.id??D.version))})}),m&&s.jsxs(rt,{title:"예약 게시",onClose:()=>x(!1),children:[s.jsx(K,{label:"게시 일시",hint:"도래 시 스케줄러가 자동 PUBLISHED 처리합니다.",children:s.jsx("input",{className:"inp",type:"datetime-local",value:g,onChange:D=>j(D.target.value)})}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Q,{variant:"ghost",onClick:()=>x(!1),children:"취소"}),s.jsx(Q,{onClick:C,children:"예약"})]})]})]})}function fhe({block:e,onChange:t}){return e.type==="text"?s.jsx("textarea",{className:"inp",value:e.text||"",onChange:n=>t({text:n.target.value}),placeholder:"텍스트 내용"}):e.type==="image"?s.jsxs("div",{className:"space-y-2",children:[s.jsx("input",{className:"inp",value:e.url||"",onChange:n=>t({url:n.target.value}),placeholder:"이미지 URL"}),s.jsx("input",{className:"inp",value:e.alt||"",onChange:n=>t({alt:n.target.value}),placeholder:"대체 텍스트"})]}):e.type==="product"?s.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[s.jsx("input",{className:"inp",value:e.productId||"",onChange:n=>t({productId:n.target.value}),placeholder:"상품 ID"}),s.jsx("input",{className:"inp",value:e.label||"",onChange:n=>t({label:n.target.value}),placeholder:"라벨"})]}):e.type==="banner"?s.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[s.jsx("input",{className:"inp",value:e.bannerId||"",onChange:n=>t({bannerId:n.target.value}),placeholder:"배너 ID"}),s.jsx("input",{className:"inp",value:e.label||"",onChange:n=>t({label:n.target.value}),placeholder:"라벨"})]}):null}const dhe=["","IMAGE","VIDEO","FILE"],hhe={fileName:"",mediaType:"IMAGE",url:"",folder:"",mimeType:"image/png",sizeBytes:0,altText:"",tags:""};function phe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(""),[l,o]=O.useState(""),[c,u]=O.useState(null),[f,d]=O.useState(null),[h,p]=O.useState(null),y=zn(),m=()=>WL({folder:n,mediaType:a,keyword:l}).then(v=>t(v||[])).catch(()=>t([]));O.useEffect(()=>{m()},[a]);const x=async()=>{await QL(c),u(null),m()},g=async v=>{window.confirm("삭제하시겠습니까?")&&(await e8(v),m())},j=async v=>{p(v);try{await ZL(v),m()}finally{p(null)}},b=async()=>{await JL(f.id,{altText:f.altText,tags:f.tags}),d(null),m()};return s.jsxs("div",{children:[s.jsx(Ln,{title:"미디어 라이브러리",subtitle:"이미지 · 동영상 · 파일 · AI 대체텍스트",actions:y&&s.jsxs(Q,{onClick:()=>u({...hhe}),children:[s.jsx(Xt,{size:16})," 미디어 등록"]})}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[s.jsxs("div",{className:"relative",children:[s.jsx(J5,{size:14,className:"absolute left-2.5 top-2.5 text-slate-500"}),s.jsx("input",{value:n,onChange:v=>r(v.target.value),onKeyDown:v=>v.key==="Enter"&&m(),placeholder:"폴더",className:"inp pl-8 w-40"})]}),s.jsx("select",{className:"inp w-32",value:a,onChange:v=>i(v.target.value),children:dhe.map(v=>s.jsx("option",{value:v,children:v||"전체"},v))}),s.jsx("input",{value:l,onChange:v=>o(v.target.value),onKeyDown:v=>v.key==="Enter"&&m(),placeholder:"검색",className:"inp w-44"}),s.jsx(Q,{variant:"ghost",onClick:m,children:"검색"})]}),e.length===0?s.jsx(rn,{msg:"미디어가 없습니다."}):s.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4",children:e.map(v=>s.jsxs("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:[s.jsx("div",{className:"aspect-video bg-ink flex items-center justify-center overflow-hidden",children:v.mediaType==="IMAGE"&&v.url?s.jsx("img",{src:v.url,alt:v.altText||v.fileName,className:"object-cover w-full h-full",onError:S=>{S.target.style.display="none"}}):v.mediaType==="VIDEO"?s.jsx(Z5,{size:28,className:"text-slate-600"}):s.jsx(kp,{size:28,className:"text-slate-600"})}),s.jsxs("div",{className:"p-3",children:[s.jsx("div",{className:"text-xs font-medium truncate",title:v.fileName,children:v.fileName}),s.jsx("div",{className:"text-[11px] text-slate-500 truncate",children:v.altText||"대체텍스트 없음"}),v.tags&&s.jsxs("div",{className:"text-[10px] text-brand truncate mt-1",children:["# ",v.tags]}),y&&s.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[s.jsx("button",{onClick:()=>j(v.id),disabled:h===v.id,title:"AI 대체텍스트",className:"text-accent hover:text-accent/80",children:s.jsx(ht,{size:14})}),s.jsx("button",{onClick:()=>d({id:v.id,altText:v.altText||"",tags:v.tags||""}),title:"메타 편집",className:"text-slate-400 hover:text-brand",children:s.jsx(vz,{size:14})}),s.jsx("button",{onClick:()=>g(v.id),className:"text-rose-400 hover:text-rose-300 ml-auto",children:s.jsx(Gt,{size:14})})]})]})]},v.id))}),c&&s.jsxs(rt,{title:"미디어 등록",onClose:()=>u(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(K,{label:"파일명",children:s.jsx("input",{className:"inp",value:c.fileName,onChange:v=>u({...c,fileName:v.target.value})})}),s.jsx(K,{label:"URL",children:s.jsx("input",{className:"inp",value:c.url,onChange:v=>u({...c,url:v.target.value}),placeholder:"https://..."})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(K,{label:"유형",children:s.jsx("select",{className:"inp",value:c.mediaType,onChange:v=>u({...c,mediaType:v.target.value}),children:["IMAGE","VIDEO","FILE"].map(v=>s.jsx("option",{children:v},v))})}),s.jsx(K,{label:"폴더",children:s.jsx("input",{className:"inp",value:c.folder,onChange:v=>u({...c,folder:v.target.value})})})]}),s.jsx(K,{label:"대체 텍스트",children:s.jsx("input",{className:"inp",value:c.altText,onChange:v=>u({...c,altText:v.target.value})})}),s.jsx(K,{label:"태그",children:s.jsx("input",{className:"inp",value:c.tags,onChange:v=>u({...c,tags:v.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Q,{variant:"ghost",onClick:()=>u(null),children:"취소"}),s.jsx(Q,{onClick:x,children:"저장"})]})]}),f&&s.jsxs(rt,{title:"메타 편집",onClose:()=>d(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(K,{label:"대체 텍스트",children:s.jsx("input",{className:"inp",value:f.altText,onChange:v=>d({...f,altText:v.target.value})})}),s.jsx(K,{label:"태그",children:s.jsx("input",{className:"inp",value:f.tags,onChange:v=>d({...f,tags:v.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Q,{variant:"ghost",onClick:()=>d(null),children:"취소"}),s.jsx(Q,{onClick:b,children:"저장"})]})]})]})}const mhe=["","DRAFT","PUBLISHED","ARCHIVED"],yhe={mallProductId:"",productName:"",summary:"",detailBlocks:[],specs:"",locale:"ko"};function vhe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(""),[l,o]=O.useState(null),[c,u]=O.useState(!1),[f,d]=O.useState(""),h=zn(),p=QN(),y=()=>LL({status:n,keyword:a}).then(E=>t(E||[])).catch(()=>t([]));O.useEffect(()=>{y()},[n]);const m=()=>o({...yhe,_new:!0}),x=async E=>{const N=await BL(E);o({...N,detailBlocks:sa(N.detailBlocks,[]),_new:!1})},g=async()=>{const{_new:E,id:N,...k}=l;E?await IL(k):await UL(N,k),o(null),y()},j=async E=>{window.confirm("삭제하시겠습니까?")&&(await GL(E),y())},b=async E=>{await HL(E),y()},v=async()=>{u(!0);try{const E=await qL(l.productName||"상품","marketing");E!=null&&E.draft&&o(N=>({...N,detailBlocks:[...N.detailBlocks,{type:"text",text:E.draft}]}))}catch{}finally{u(!1)}},S=async()=>{if(f)try{const E=await FL(f);o(N=>({...N,productName:N.productName||(E==null?void 0:E.productName)||"",summary:N.summary||(E==null?void 0:E.summary)||"",specs:N.specs||(E==null?void 0:E.specs)||""}))}catch{}},w=()=>o(E=>({...E,detailBlocks:[...E.detailBlocks,{type:"text",text:""}]})),A=(E,N)=>o(k=>{const M=[...k.detailBlocks];return M[E]={...M[E],text:N},{...k,detailBlocks:M}}),_=E=>o(N=>({...N,detailBlocks:N.detailBlocks.filter((k,M)=>M!==E)}));return s.jsxs("div",{children:[s.jsx(Ln,{title:"상품 콘텐츠",subtitle:"상품 상세페이지 빌더 · Mall 연계 · AI 초안 · OCR 추출",actions:h&&s.jsxs(Q,{onClick:m,children:[s.jsx(Xt,{size:16})," 상품 콘텐츠"]})}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[s.jsx("select",{className:"inp w-36",value:n,onChange:E=>r(E.target.value),children:mhe.map(E=>s.jsx("option",{value:E,children:E||"전체 상태"},E))}),s.jsx("input",{value:a,onChange:E=>i(E.target.value),onKeyDown:E=>E.key==="Enter"&&y(),placeholder:"상품명 검색",className:"inp w-52"}),s.jsx(Q,{variant:"ghost",onClick:y,children:"검색"})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"상품명"}),s.jsx("th",{className:"text-left",children:"Mall ID"}),s.jsx("th",{className:"text-left",children:"로케일"}),s.jsx("th",{className:"text-left",children:"상태"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(E=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-2",children:[s.jsx(ux,{size:15,className:"text-brand"}),E.productName]}),s.jsx("td",{className:"text-slate-400 font-mono text-xs",children:E.mallProductId||"-"}),s.jsx("td",{className:"text-slate-400",children:E.locale}),s.jsx("td",{children:s.jsx($n,{status:E.status})}),s.jsx("td",{className:"px-4",children:s.jsxs("div",{className:"flex items-center justify-end gap-3",children:[s.jsx("button",{onClick:()=>x(E.id),className:"text-slate-400 hover:text-brand text-xs",children:"편집"}),p&&E.status!=="PUBLISHED"&&s.jsx("button",{onClick:()=>b(E.id),title:"발행",className:"text-emerald-400 hover:text-emerald-300",children:s.jsx(lx,{size:15})}),h&&s.jsx("button",{onClick:()=>j(E.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(Gt,{size:15})})]})})]},E.id)),e.length===0&&s.jsx(rn,{colSpan:5,msg:"상품 콘텐츠가 없습니다."})]})]})}),l&&s.jsxs(rt,{title:l._new?"상품 콘텐츠 작성":"상품 콘텐츠 편집",onClose:()=>o(null),wide:!0,children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(K,{label:"상품명",children:s.jsx("input",{className:"inp",value:l.productName,onChange:E=>o({...l,productName:E.target.value})})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(K,{label:"Mall 상품 ID",children:s.jsx("input",{className:"inp",value:l.mallProductId||"",onChange:E=>o({...l,mallProductId:E.target.value})})}),s.jsx(K,{label:"로케일",children:s.jsx("select",{className:"inp",value:l.locale,onChange:E=>o({...l,locale:E.target.value}),children:["ko","en","ja","zh"].map(E=>s.jsx("option",{children:E},E))})})]}),s.jsx(K,{label:"요약",children:s.jsx("textarea",{className:"inp",value:l.summary||"",onChange:E=>o({...l,summary:E.target.value})})}),s.jsx(K,{label:"사양 (specs)",children:s.jsx("textarea",{className:"inp",value:l.specs||"",onChange:E=>o({...l,specs:E.target.value})})}),s.jsx(K,{label:"OCR 문서로 채우기",children:s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{className:"inp",placeholder:"documentId",value:f,onChange:E=>d(E.target.value)}),s.jsxs(Q,{variant:"ghost",onClick:S,children:[s.jsx(pz,{size:13})," 추출"]})]})})]}),s.jsxs(xt,{title:"상세페이지 빌더",children:[s.jsxs("div",{className:"flex gap-2 mb-3",children:[s.jsxs(Q,{size:"sm",variant:"ghost",onClick:w,children:[s.jsx(Xt,{size:13})," 텍스트 블록"]}),s.jsxs(Q,{size:"sm",variant:"ghost",disabled:c,onClick:v,children:[s.jsx(ht,{size:13})," ",c?"AI…":"AI 초안"]})]}),l.detailBlocks.length===0&&s.jsx("div",{className:"text-center text-slate-500 text-xs py-6 border border-dashed border-edge rounded",children:"블록을 추가하세요."}),s.jsx("div",{className:"space-y-2 max-h-72 overflow-auto",children:l.detailBlocks.map((E,N)=>s.jsxs("div",{className:"bg-panel border border-edge rounded p-2",children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsxs("span",{className:"text-[11px] text-brand flex items-center gap-1",children:[s.jsx(IN,{size:11,className:"text-slate-500"})," #",N+1]}),s.jsx("button",{onClick:()=>_(N),className:"text-rose-400 hover:text-rose-300",children:s.jsx(Gt,{size:12})})]}),s.jsx("textarea",{className:"inp text-xs",value:E.text||"",onChange:k=>A(N,k.target.value)})]},N))})]})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Q,{variant:"ghost",onClick:()=>o(null),children:"취소"}),s.jsx(Q,{onClick:g,children:"저장"})]})]})]})}const qA=["HERO","PROMOTION","POPUP","CAMPAIGN","EXHIBITION"],ghe={name:"",bannerType:"HERO",imageUrl:"",linkUrl:"",position:"main_top",targetRule:"",sortOrder:0,active:!0,startAt:"",endAt:""};function bhe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(""),[l,o]=O.useState(null),c=zn(),u=()=>YL({bannerType:n,position:a}).then(y=>t(y||[])).catch(()=>t([]));O.useEffect(()=>{u()},[n]);const f=()=>o({...ghe}),d=y=>o({...y,targetRule:Ib(y.targetRule),startAt:FA(y.startAt),endAt:FA(y.endAt)}),h=async()=>{const y={...l,targetRule:l.targetRule?sa(l.targetRule,{}):null};l.id?await KL(l.id,y):await VL(y),o(null),u()},p=async y=>{window.confirm("삭제하시겠습니까?")&&(await XL(y),u())};return s.jsxs("div",{children:[s.jsx(Ln,{title:"배너 / 프로모션",subtitle:"히어로 · 프로모션 · 팝업 · 기획전 · 노출 스케줄",actions:c&&s.jsxs(Q,{onClick:f,children:[s.jsx(Xt,{size:16})," 배너 추가"]})}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[s.jsxs("select",{className:"inp w-40",value:n,onChange:y=>r(y.target.value),children:[s.jsx("option",{value:"",children:"전체 유형"}),qA.map(y=>s.jsx("option",{children:y},y))]}),s.jsx("input",{className:"inp w-40",placeholder:"position",value:a,onChange:y=>i(y.target.value),onKeyDown:y=>y.key==="Enter"&&u()}),s.jsx(Q,{variant:"ghost",onClick:u,children:"검색"})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[e.map(y=>s.jsxs("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:[s.jsx("div",{className:"aspect-[16/6] bg-ink flex items-center justify-center overflow-hidden",children:y.imageUrl?s.jsx("img",{src:y.imageUrl,alt:y.name,className:"object-cover w-full h-full",onError:m=>{m.target.style.display="none"}}):s.jsx(cx,{size:26,className:"text-slate-600"})}),s.jsxs("div",{className:"p-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("span",{className:"font-medium text-sm",children:y.name}),s.jsx($n,{status:y.active?"ACTIVE":"INACTIVE"})]}),s.jsxs("div",{className:"text-[11px] text-slate-500 mt-1",children:[y.bannerType," · ",y.position," · 순서 ",y.sortOrder]}),c&&s.jsxs("div",{className:"flex items-center gap-3 mt-2",children:[s.jsx("button",{onClick:()=>d(y),className:"text-slate-400 hover:text-brand",children:s.jsx(Ns,{size:14})}),s.jsx("button",{onClick:()=>p(y.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(Gt,{size:14})})]})]})]},y.id)),e.length===0&&s.jsx("div",{className:"col-span-3",children:s.jsx(rn,{msg:"배너가 없습니다."})})]}),l&&s.jsxs(rt,{title:l.id?"배너 편집":"배너 추가",onClose:()=>o(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(K,{label:"이름",children:s.jsx("input",{className:"inp",value:l.name,onChange:y=>o({...l,name:y.target.value})})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(K,{label:"유형",children:s.jsx("select",{className:"inp",value:l.bannerType,onChange:y=>o({...l,bannerType:y.target.value}),children:qA.map(y=>s.jsx("option",{children:y},y))})}),s.jsx(K,{label:"position",children:s.jsx("input",{className:"inp",value:l.position,onChange:y=>o({...l,position:y.target.value})})})]}),s.jsx(K,{label:"이미지 URL",children:s.jsx("input",{className:"inp",value:l.imageUrl,onChange:y=>o({...l,imageUrl:y.target.value})})}),s.jsx(K,{label:"링크 URL",children:s.jsx("input",{className:"inp",value:l.linkUrl,onChange:y=>o({...l,linkUrl:y.target.value})})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(K,{label:"시작",children:s.jsx("input",{className:"inp",type:"datetime-local",value:l.startAt,onChange:y=>o({...l,startAt:y.target.value})})}),s.jsx(K,{label:"종료",children:s.jsx("input",{className:"inp",type:"datetime-local",value:l.endAt,onChange:y=>o({...l,endAt:y.target.value})})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(K,{label:"정렬 순서",children:s.jsx("input",{className:"inp",type:"number",value:l.sortOrder,onChange:y=>o({...l,sortOrder:Number(y.target.value)})})}),s.jsx(K,{label:"활성",children:s.jsxs("select",{className:"inp",value:String(l.active),onChange:y=>o({...l,active:y.target.value==="true"}),children:[s.jsx("option",{value:"true",children:"활성"}),s.jsx("option",{value:"false",children:"비활성"})]})})]}),s.jsx(K,{label:"타겟 규칙 (JSON)",hint:'예: {"segment":"VIP"}',children:s.jsx("textarea",{className:"inp",value:l.targetRule,onChange:y=>o({...l,targetRule:y.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Q,{variant:"ghost",onClick:()=>o(null),children:"취소"}),s.jsx(Q,{onClick:h,children:"저장"})]})]})]})}function FA(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 xhe=["MAIN","FOOTER","CATEGORY","SIDEBAR"],GA={parentId:null,name:"",menuType:"MAIN",url:"",slug:"",sortOrder:0,active:!0};function jhe(){const[e,t]=O.useState("MAIN"),[n,r]=O.useState([]),[a,i]=O.useState([]),[l,o]=O.useState(null),[c,u]=O.useState(""),f=zn(),d=()=>{n8(e).then(m=>r(m||[])).catch(()=>r([])),t8(e).then(m=>i(m||[])).catch(()=>i([]))};O.useEffect(()=>{d()},[e]);const h=async()=>{const m={...l,menuType:e};l.id?await a8(l.id,m):await r8(m),o(null),d()},p=async m=>{var x;if(window.confirm("삭제하시겠습니까? (하위 메뉴가 있으면 거부됩니다)"))try{await i8(m),d()}catch(g){window.alert(((x=g==null?void 0:g.response)==null?void 0:x.status)===409?"하위 메뉴가 있어 삭제할 수 없습니다.":"삭제 실패")}},y=async()=>{const m=await l8("https://example.com");u((m==null?void 0:m.xml)||"")};return s.jsxs("div",{children:[s.jsx(Ln,{title:"메뉴 / 카테고리",subtitle:"내비게이션 · 카테고리 트리 · 사이트맵",actions:s.jsxs("div",{className:"flex gap-2",children:[s.jsxs(Q,{variant:"ghost",onClick:y,children:[s.jsx(zN,{size:15})," 사이트맵"]}),f&&s.jsxs(Q,{onClick:()=>o({...GA}),children:[s.jsx(Xt,{size:16})," 메뉴 추가"]})]})}),s.jsx("div",{className:"flex items-center gap-2 mb-4",children:s.jsx("select",{className:"inp w-44",value:e,onChange:m=>t(m.target.value),children:xhe.map(m=>s.jsx("option",{children:m},m))})}),s.jsx("div",{className:"bg-card border border-edge rounded-xl p-4",children:n.length===0?s.jsx("p",{className:"text-slate-500 text-sm py-4 text-center",children:"메뉴가 없습니다."}):n.map(m=>s.jsx(vP,{node:m,depth:0,onEdit:x=>o({...x}),onAddChild:x=>o({...GA,parentId:x}),onDel:p,writable:f},m.id))}),l&&s.jsxs(rt,{title:l.id?"메뉴 편집":"메뉴 추가",onClose:()=>o(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(K,{label:"이름",children:s.jsx("input",{className:"inp",value:l.name,onChange:m=>o({...l,name:m.target.value})})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(K,{label:"URL",children:s.jsx("input",{className:"inp",value:l.url||"",onChange:m=>o({...l,url:m.target.value})})}),s.jsx(K,{label:"슬러그",children:s.jsx("input",{className:"inp",value:l.slug||"",onChange:m=>o({...l,slug:m.target.value})})})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(K,{label:"상위 메뉴",children:s.jsxs("select",{className:"inp",value:l.parentId??"",onChange:m=>o({...l,parentId:m.target.value?Number(m.target.value):null}),children:[s.jsx("option",{value:"",children:"(최상위)"}),a.filter(m=>m.id!==l.id).map(m=>s.jsx("option",{value:m.id,children:m.name},m.id))]})}),s.jsx(K,{label:"정렬 순서",children:s.jsx("input",{className:"inp",type:"number",value:l.sortOrder,onChange:m=>o({...l,sortOrder:Number(m.target.value)})})})]}),s.jsx(K,{label:"활성",children:s.jsxs("select",{className:"inp",value:String(l.active),onChange:m=>o({...l,active:m.target.value==="true"}),children:[s.jsx("option",{value:"true",children:"활성"}),s.jsx("option",{value:"false",children:"비활성"})]})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Q,{variant:"ghost",onClick:()=>o(null),children:"취소"}),s.jsx(Q,{onClick:h,children:"저장"})]})]}),c&&s.jsx(rt,{title:"sitemap.xml",onClose:()=>u(""),wide:!0,children:s.jsx("pre",{className:"text-[11px] text-slate-400 bg-ink border border-edge rounded p-3 overflow-auto max-h-[60vh]",children:c})})]})}function vP({node:e,depth:t,onEdit:n,onAddChild:r,onDel:a,writable:i}){const[l,o]=O.useState(!0),c=e.children||[];return s.jsxs("div",{children:[s.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?s.jsx("button",{onClick:()=>o(!l),className:"text-slate-500",children:l?s.jsx(U5,{size:14}):s.jsx(H5,{size:14})}):s.jsx("span",{className:"w-3.5 inline-block"}),s.jsx(qN,{size:14,className:"text-brand"}),s.jsx("span",{className:"text-sm font-medium",children:e.name}),e.url&&s.jsx("span",{className:"text-[11px] text-slate-500 font-mono",children:e.url}),!e.active&&s.jsx("span",{className:"text-[10px] text-slate-500",children:"(비활성)"}),i&&s.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[s.jsx("button",{onClick:()=>r(e.id),className:"text-slate-500 hover:text-brand",children:s.jsx(Xt,{size:13})}),s.jsx("button",{onClick:()=>n(e),className:"text-slate-400 hover:text-brand text-xs",children:"편집"}),s.jsx("button",{onClick:()=>a(e.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(Gt,{size:13})})]})]}),l&&c.map(u=>s.jsx(vP,{node:u,depth:t+1,onEdit:n,onAddChild:r,onDel:a,writable:i},u.id))]})}const She={name:"",layout:`{
  "slots": ["header", "main", "footer"]
}`,tokens:`{
  "brand": "#00a0c8"
}`,active:!1};function whe(){const[e,t]=O.useState([]),[n,r]=O.useState(null),a=zn(),i=()=>o8().then(d=>t(d||[])).catch(()=>t([]));O.useEffect(()=>{i()},[]);const l=()=>r({...She}),o=d=>r({...d,layout:Ib(d.layout),tokens:Ib(d.tokens)}),c=async()=>{const d={...n,layout:sa(n.layout,{}),tokens:sa(n.tokens,{})};n.id?await c8(n.id,d):await s8(d),r(null),i()},u=async d=>{await u8(d),i()},f=async d=>{window.confirm("삭제하시겠습니까?")&&(await f8(d),i())};return s.jsxs("div",{children:[s.jsx(Ln,{title:"테마 / 템플릿",subtitle:"레이아웃 슬롯 · 디자인 토큰 · 단일 활성",actions:a&&s.jsxs(Q,{onClick:l,children:[s.jsx(Xt,{size:16})," 테마 추가"]})}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[e.map(d=>{const h=sa(d.tokens,{});return s.jsxs("div",{className:`bg-card border rounded-xl p-4 ${d.active?"border-brand":"border-edge"}`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsxs("span",{className:"font-medium flex items-center gap-1.5",children:[s.jsx(GN,{size:15,className:"text-brand"})," ",d.name]}),s.jsx($n,{status:d.active?"ACTIVE":"INACTIVE"})]}),s.jsx("div",{className:"flex gap-1.5 mb-3",children:Object.values(h).slice(0,6).map((p,y)=>typeof p=="string"&&p.startsWith("#")&&s.jsx("span",{className:"w-6 h-6 rounded border border-edge",style:{background:p},title:p},y))}),a&&s.jsxs("div",{className:"flex items-center gap-3",children:[!d.active&&s.jsx("button",{onClick:()=>u(d.id),title:"활성화",className:"text-emerald-400 hover:text-emerald-300",children:s.jsx(ix,{size:15})}),s.jsx("button",{onClick:()=>o(d),className:"text-slate-400 hover:text-brand",children:s.jsx(Ns,{size:14})}),s.jsx("button",{onClick:()=>f(d.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(Gt,{size:14})})]})]},d.id)}),e.length===0&&s.jsx("div",{className:"col-span-3",children:s.jsx(rn,{msg:"테마가 없습니다."})})]}),n&&s.jsxs(rt,{title:n.id?"테마 편집":"테마 추가",onClose:()=>r(null),wide:!0,children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(K,{label:"이름",children:s.jsx("input",{className:"inp",value:n.name,onChange:d=>r({...n,name:d.target.value})})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(K,{label:"레이아웃 (JSON)",children:s.jsx("textarea",{className:"inp font-mono text-xs",style:{minHeight:140},value:n.layout,onChange:d=>r({...n,layout:d.target.value})})}),s.jsx(K,{label:"토큰 (JSON)",children:s.jsx("textarea",{className:"inp font-mono text-xs",style:{minHeight:140},value:n.tokens,onChange:d=>r({...n,tokens:d.target.value})})})]})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Q,{variant:"ghost",onClick:()=>r(null),children:"취소"}),s.jsx(Q,{onClick:c,children:"저장"})]})]})]})}function Ohe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState([]),[l,o]=O.useState(null),[c,u]=O.useState(null),[f,d]=O.useState(null),[h,p]=O.useState(""),y=zn();O.useEffect(()=>{d8().then(v=>{t(v||[]),v!=null&&v[0]&&r(v[0])}).catch(()=>t([]))},[]);const m=()=>h8(n).then(v=>i(v||[])).catch(()=>i([]));O.useEffect(()=>{n&&m()},[n]);const x=async()=>{await p8({locale:l.locale,resourceKey:l.resourceKey,value:l.value}),o(null),m()},g=async v=>{window.confirm("삭제하시겠습니까?")&&(await m8(v),m())},j=async()=>{if(!c)return;const v=await y8(c.text,c.target);u({...c,result:(v==null?void 0:v.translated)||""})},b=async()=>{if(!f)return;const v=await v8(f.source,f.target);p(`일괄 번역 완료: ${(v==null?void 0:v.translated)??0}건 → ${(v==null?void 0:v.targetLocale)||f.target}`),d(null),m()};return s.jsxs("div",{children:[s.jsx(Ln,{title:"다국어 (i18n)",subtitle:"로케일 · 번역 리소스 · AI 번역",actions:s.jsxs("div",{className:"flex gap-2",children:[s.jsxs(Q,{variant:"ghost",onClick:()=>u({text:"",target:"en",result:""}),children:[s.jsx(ht,{size:15})," AI 번역"]}),s.jsxs(Q,{variant:"ghost",onClick:()=>d({source:"ko",target:"en"}),children:[s.jsx(ag,{size:15})," 일괄 번역"]}),y&&s.jsxs(Q,{onClick:()=>o({locale:n||"ko",resourceKey:"",value:""}),children:[s.jsx(Xt,{size:16})," 리소스 추가"]})]})}),h&&s.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}),s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx(sx,{size:16,className:"text-slate-400"}),s.jsxs("select",{className:"inp w-40",value:n,onChange:v=>r(v.target.value),children:[e.length===0&&s.jsx("option",{value:"",children:"로케일 없음"}),e.map(v=>s.jsx("option",{value:v,children:v},v))]})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"키"}),s.jsx("th",{className:"text-left",children:"값"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[a.map(v=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsx("td",{className:"py-3 px-4 font-mono text-xs text-brand",children:v.resourceKey}),s.jsx("td",{className:"text-slate-300",children:v.value}),s.jsx("td",{className:"px-4 text-right",children:y&&s.jsx("button",{onClick:()=>g(v.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(Gt,{size:15})})})]},v.id)),a.length===0&&s.jsx(rn,{colSpan:3,msg:"번역 리소스가 없습니다."})]})]})}),l&&s.jsxs(rt,{title:"리소스 추가",onClose:()=>o(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(K,{label:"로케일",children:s.jsx("input",{className:"inp",value:l.locale,onChange:v=>o({...l,locale:v.target.value})})}),s.jsx(K,{label:"키",children:s.jsx("input",{className:"inp",value:l.resourceKey,onChange:v=>o({...l,resourceKey:v.target.value}),placeholder:"home.title"})}),s.jsx(K,{label:"값",children:s.jsx("textarea",{className:"inp",value:l.value,onChange:v=>o({...l,value:v.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Q,{variant:"ghost",onClick:()=>o(null),children:"취소"}),s.jsx(Q,{onClick:x,children:"저장"})]})]}),c&&s.jsx(rt,{title:"AI 번역",onClose:()=>u(null),children:s.jsxs("div",{className:"space-y-3",children:[s.jsx(K,{label:"원문",children:s.jsx("textarea",{className:"inp",value:c.text,onChange:v=>u({...c,text:v.target.value})})}),s.jsx(K,{label:"대상 로케일",children:s.jsx("input",{className:"inp",value:c.target,onChange:v=>u({...c,target:v.target.value})})}),s.jsxs(Q,{onClick:j,children:[s.jsx(ht,{size:14})," 번역"]}),c.result&&s.jsx(K,{label:"번역 결과",children:s.jsx("div",{className:"inp min-h-[60px] whitespace-pre-wrap",children:c.result})})]})}),f&&s.jsxs(rt,{title:"일괄 번역",onClose:()=>d(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(K,{label:"원본 로케일",children:s.jsx("input",{className:"inp",value:f.source,onChange:v=>d({...f,source:v.target.value})})}),s.jsx(K,{label:"대상 로케일",children:s.jsx("input",{className:"inp",value:f.target,onChange:v=>d({...f,target:v.target.value})})})]}),s.jsx("p",{className:"text-[11px] text-slate-500",children:"원본 로케일의 모든 리소스를 대상 로케일로 AI 번역하여 생성합니다."})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Q,{variant:"ghost",onClick:()=>d(null),children:"취소"}),s.jsxs(Q,{onClick:b,children:[s.jsx(ag,{size:14})," 일괄 번역 실행"]})]})]})]})}const Ahe={pathKey:"",title:"",description:"",keywords:"",ogTitle:"",ogImage:"",canonical:"",locale:"ko"},Ehe={fromPath:"",toPath:"",statusCode:301,active:!0};function _he(){const[e,t]=O.useState("meta"),[n,r]=O.useState([]),[a,i]=O.useState([]),[l,o]=O.useState(null),[c,u]=O.useState(null),[f,d]=O.useState(""),[h,p]=O.useState(null),y=zn(),m=()=>{g8().then(w=>r(w||[])).catch(()=>r([])),S8().then(w=>i(w||[])).catch(()=>i([]))};O.useEffect(()=>{m()},[]);const x=async()=>{l.id?await x8(l.id,l):await b8(l),o(null),m()},g=async w=>{window.confirm("삭제하시겠습니까?")&&(await j8(w),m())},j=async()=>{await w8(c),u(null),m()},b=async w=>{window.confirm("삭제하시겠습니까?")&&(await O8(w),m())},v=async()=>{const w=await A8("https://example.com");d((w==null?void 0:w.robots)||"")},S=async()=>{if(!h)return;const w=await E8(h.title,h.body);p({...h,result:w})};return s.jsxs("div",{children:[s.jsx(Ln,{title:"SEO",subtitle:"메타데이터 · OG · 리다이렉트 · robots/sitemap · AI 제안",actions:s.jsxs("div",{className:"flex gap-2",children:[s.jsxs(Q,{variant:"ghost",onClick:v,children:[s.jsx(zN,{size:15})," robots.txt"]}),s.jsxs(Q,{variant:"ghost",onClick:()=>p({title:"",body:"",result:null}),children:[s.jsx(ht,{size:15})," AI 제안"]})]})}),s.jsxs("div",{className:"flex gap-2 mb-4",children:[s.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:"메타데이터"}),s.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:"리다이렉트"}),s.jsxs("div",{className:"ml-auto",children:[y&&e==="meta"&&s.jsxs(Q,{onClick:()=>o({...Ahe}),children:[s.jsx(Xt,{size:16})," 메타 추가"]}),y&&e==="redirect"&&s.jsxs(Q,{onClick:()=>u({...Ehe}),children:[s.jsx(Xt,{size:16})," 리다이렉트 추가"]})]})]}),e==="meta"?s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"경로"}),s.jsx("th",{className:"text-left",children:"제목"}),s.jsx("th",{className:"text-left",children:"설명"}),s.jsx("th",{className:"text-left",children:"로케일"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[n.map(w=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsx("td",{className:"py-3 px-4 font-mono text-xs text-brand",children:w.pathKey}),s.jsx("td",{children:w.title}),s.jsx("td",{className:"text-slate-400 text-xs truncate max-w-[280px]",children:w.description}),s.jsx("td",{className:"text-slate-400",children:w.locale}),s.jsx("td",{className:"px-4",children:s.jsxs("div",{className:"flex items-center justify-end gap-3",children:[y&&s.jsx("button",{onClick:()=>o({...w}),className:"text-slate-400 hover:text-brand",children:s.jsx(Ns,{size:14})}),y&&s.jsx("button",{onClick:()=>g(w.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(Gt,{size:14})})]})})]},w.id)),n.length===0&&s.jsx(rn,{colSpan:5,msg:"메타데이터가 없습니다."})]})]})}):s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"From"}),s.jsx("th",{}),s.jsx("th",{className:"text-left",children:"To"}),s.jsx("th",{className:"text-left",children:"코드"}),s.jsx("th",{className:"text-left",children:"활성"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[a.map(w=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsx("td",{className:"py-3 px-4 font-mono text-xs",children:w.fromPath}),s.jsx("td",{children:s.jsx(R5,{size:13,className:"text-slate-500"})}),s.jsx("td",{className:"font-mono text-xs text-brand",children:w.toPath}),s.jsx("td",{className:"text-slate-400",children:w.statusCode}),s.jsx("td",{children:w.active?"활성":"비활성"}),s.jsx("td",{className:"px-4 text-right",children:y&&s.jsx("button",{onClick:()=>b(w.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(Gt,{size:14})})})]},w.id)),a.length===0&&s.jsx(rn,{colSpan:6,msg:"리다이렉트가 없습니다."})]})]})}),l&&s.jsxs(rt,{title:l.id?"메타 편집":"메타 추가",onClose:()=>o(null),wide:!0,children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(K,{label:"경로 키",children:s.jsx("input",{className:"inp",value:l.pathKey,onChange:w=>o({...l,pathKey:w.target.value}),placeholder:"/about"})}),s.jsx(K,{label:"로케일",children:s.jsx("input",{className:"inp",value:l.locale,onChange:w=>o({...l,locale:w.target.value})})}),s.jsx(K,{label:"제목",children:s.jsx("input",{className:"inp",value:l.title,onChange:w=>o({...l,title:w.target.value})})}),s.jsx(K,{label:"canonical",children:s.jsx("input",{className:"inp",value:l.canonical,onChange:w=>o({...l,canonical:w.target.value})})}),s.jsx(K,{label:"설명",children:s.jsx("textarea",{className:"inp",value:l.description,onChange:w=>o({...l,description:w.target.value})})}),s.jsx(K,{label:"키워드",children:s.jsx("textarea",{className:"inp",value:l.keywords,onChange:w=>o({...l,keywords:w.target.value})})}),s.jsx(K,{label:"OG 제목",children:s.jsx("input",{className:"inp",value:l.ogTitle,onChange:w=>o({...l,ogTitle:w.target.value})})}),s.jsx(K,{label:"OG 이미지",children:s.jsx("input",{className:"inp",value:l.ogImage,onChange:w=>o({...l,ogImage:w.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Q,{variant:"ghost",onClick:()=>o(null),children:"취소"}),s.jsx(Q,{onClick:x,children:"저장"})]})]}),c&&s.jsxs(rt,{title:"리다이렉트 추가",onClose:()=>u(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(K,{label:"From 경로",children:s.jsx("input",{className:"inp",value:c.fromPath,onChange:w=>u({...c,fromPath:w.target.value})})}),s.jsx(K,{label:"To 경로",children:s.jsx("input",{className:"inp",value:c.toPath,onChange:w=>u({...c,toPath:w.target.value})})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(K,{label:"상태 코드",children:s.jsx("select",{className:"inp",value:c.statusCode,onChange:w=>u({...c,statusCode:Number(w.target.value)}),children:[301,302,307,308].map(w=>s.jsx("option",{children:w},w))})}),s.jsx(K,{label:"활성",children:s.jsxs("select",{className:"inp",value:String(c.active),onChange:w=>u({...c,active:w.target.value==="true"}),children:[s.jsx("option",{value:"true",children:"활성"}),s.jsx("option",{value:"false",children:"비활성"})]})})]})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Q,{variant:"ghost",onClick:()=>u(null),children:"취소"}),s.jsx(Q,{onClick:j,children:"저장"})]})]}),f&&s.jsx(rt,{title:"robots.txt",onClose:()=>d(""),children:s.jsx("pre",{className:"text-xs text-slate-400 bg-ink border border-edge rounded p-3 overflow-auto max-h-[50vh]",children:f})}),h&&s.jsx(rt,{title:"AI SEO 제안",onClose:()=>p(null),wide:!0,children:s.jsxs("div",{className:"space-y-3",children:[s.jsx(K,{label:"제목",children:s.jsx("input",{className:"inp",value:h.title,onChange:w=>p({...h,title:w.target.value})})}),s.jsx(K,{label:"본문",children:s.jsx("textarea",{className:"inp",value:h.body,onChange:w=>p({...h,body:w.target.value})})}),s.jsxs(Q,{onClick:S,children:[s.jsx(ht,{size:14})," 제안 생성"]}),h.result&&s.jsxs("div",{className:"bg-ink border border-edge rounded-lg p-3 text-sm space-y-2",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-slate-500 text-xs",children:"메타 설명:"})," ",h.result.metaDescription]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-slate-500 text-xs",children:"키워드:"})," ",(h.result.keywords||[]).join(", ")]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-slate-500 text-xs",children:"점수:"})," ",s.jsx("span",{className:"text-accent",children:h.result.score})]})]})]})})]})}const The=["text","email","tel","textarea","select","checkbox","number"],Nhe={name:"",slug:"",fields:[],active:!0};function Che(){const[e,t]=O.useState([]),[n,r]=O.useState(null),[a,i]=O.useState(null),[l,o]=O.useState([]),[c,u]=O.useState(!1),f=zn(),d=()=>_8().then(v=>t(v||[])).catch(()=>t([]));O.useEffect(()=>{d()},[]);const h=()=>r({...Nhe}),p=v=>r({...v,fields:Array.isArray(v.fields)?v.fields:YA(v.fields)}),y=async()=>{n.id?await N8(n.id,n):await T8(n),r(null),d()},m=async v=>{window.confirm("삭제하시겠습니까?")&&(await C8(v),d())},x=()=>r(v=>({...v,fields:[...v.fields,{name:"",label:"",type:"text",required:!1}]})),g=(v,S)=>r(w=>{const A=[...w.fields];return A[v]={...A[v],...S},{...w,fields:A}}),j=v=>r(S=>({...S,fields:S.fields.filter((w,A)=>A!==v)})),b=async(v,S=!1)=>{i(v),u(S);const w=await M8(v.id,S);o(w||[])};return s.jsxs("div",{children:[s.jsx(Ln,{title:"폼빌더",subtitle:"필드 정의 · 제출 수집 · AI 스팸 필터",actions:f&&s.jsxs(Q,{onClick:h,children:[s.jsx(Xt,{size:16})," 폼 생성"]})}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"이름"}),s.jsx("th",{className:"text-left",children:"슬러그"}),s.jsx("th",{className:"text-left",children:"필드 수"}),s.jsx("th",{className:"text-left",children:"활성"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(v=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-2",children:[s.jsx(LN,{size:15,className:"text-brand"}),v.name]}),s.jsx("td",{className:"text-slate-400 font-mono text-xs",children:v.slug}),s.jsx("td",{className:"text-slate-400",children:(Array.isArray(v.fields)?v.fields:YA(v.fields)).length}),s.jsx("td",{children:v.active?"활성":"비활성"}),s.jsx("td",{className:"px-4",children:s.jsxs("div",{className:"flex items-center justify-end gap-3",children:[s.jsx("button",{onClick:()=>b(v),title:"제출 내역",className:"text-slate-400 hover:text-brand",children:s.jsx(UN,{size:15})}),f&&s.jsx("button",{onClick:()=>p(v),className:"text-slate-400 hover:text-brand text-xs",children:"편집"}),f&&s.jsx("button",{onClick:()=>m(v.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(Gt,{size:15})})]})})]},v.id)),e.length===0&&s.jsx(rn,{colSpan:5,msg:"폼이 없습니다."})]})]})}),n&&s.jsxs(rt,{title:n.id?"폼 편집":"폼 생성",onClose:()=>r(null),wide:!0,children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-4",children:[s.jsx(K,{label:"이름",children:s.jsx("input",{className:"inp",value:n.name,onChange:v=>r({...n,name:v.target.value})})}),s.jsx(K,{label:"슬러그",children:s.jsx("input",{className:"inp",value:n.slug,onChange:v=>r({...n,slug:v.target.value})})})]}),s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsxs("span",{className:"text-sm font-semibold flex items-center gap-1.5",children:[s.jsx(HN,{size:15})," 필드 정의"]}),s.jsxs(Q,{size:"sm",variant:"ghost",onClick:x,children:[s.jsx(Xt,{size:13})," 필드"]})]}),s.jsxs("div",{className:"space-y-2 max-h-72 overflow-auto",children:[n.fields.map((v,S)=>s.jsxs("div",{className:"grid grid-cols-12 gap-2 items-center bg-panel border border-edge rounded p-2",children:[s.jsx("input",{className:"inp col-span-3",placeholder:"name",value:v.name,onChange:w=>g(S,{name:w.target.value})}),s.jsx("input",{className:"inp col-span-3",placeholder:"라벨",value:v.label,onChange:w=>g(S,{label:w.target.value})}),s.jsx("select",{className:"inp col-span-3",value:v.type,onChange:w=>g(S,{type:w.target.value}),children:The.map(w=>s.jsx("option",{children:w},w))}),s.jsxs("label",{className:"col-span-2 text-xs flex items-center gap-1 text-slate-400",children:[s.jsx("input",{type:"checkbox",checked:!!v.required,onChange:w=>g(S,{required:w.target.checked})})," 필수"]}),s.jsx("button",{onClick:()=>j(S),className:"col-span-1 text-rose-400 hover:text-rose-300",children:s.jsx(Gt,{size:14})})]},S)),n.fields.length===0&&s.jsx("div",{className:"text-center text-slate-500 text-xs py-6 border border-dashed border-edge rounded",children:"필드를 추가하세요."})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Q,{variant:"ghost",onClick:()=>r(null),children:"취소"}),s.jsx(Q,{onClick:y,children:"저장"})]})]}),a&&s.jsxs(rt,{title:`제출 내역 — ${a.name}`,onClose:()=>i(null),wide:!0,children:[s.jsx("div",{className:"flex items-center gap-2 mb-3",children:s.jsxs("label",{className:"text-xs flex items-center gap-1 text-slate-400",children:[s.jsx("input",{type:"checkbox",checked:c,onChange:v=>b(a,v.target.checked)})," 스팸 포함"]})}),l.length===0?s.jsx("p",{className:"text-slate-500 text-sm",children:"제출 내역이 없습니다."}):s.jsx("div",{className:"space-y-2 max-h-[60vh] overflow-auto",children:l.map((v,S)=>s.jsxs("div",{className:"bg-ink border border-edge rounded p-3 text-xs",children:[s.jsxs("div",{className:"flex items-center justify-between mb-1",children:[s.jsx("span",{className:"text-slate-500",children:v.createdAt?new Date(v.createdAt).toLocaleString("ko-KR"):""}),v.spam&&s.jsx("span",{className:"text-rose-400",children:"SPAM"})]}),s.jsx("pre",{className:"text-slate-300 whitespace-pre-wrap",children:JSON.stringify(v.payload??v,null,2)})]},v.id??S))})]})]})}function YA(e){if(Array.isArray(e))return e;try{const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}}const Mhe=["","REVIEW","COMMENT","POST","INQUIRY"],khe=["","PENDING","APPROVED","REJECTED"];function $he({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 s.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs border ${n}`,children:[s.jsx(dx,{size:11})," 위험 ",t,"%"]})}function Phe(){const[e,t]=O.useState(!0),[n,r]=O.useState(""),[a,i]=O.useState(""),[l,o]=O.useState([]),[c,u]=O.useState(null),[f,d]=O.useState(""),[h,p]=O.useState(null),y=zn(),m=()=>{(e?z8():D8({ugcType:n,moderationStatus:a})).then(S=>o(S||[])).catch(()=>o([]))};O.useEffect(()=>{m()},[e,n,a]);const x=async v=>{await US(v,"APPROVED"),m()},g=async()=>{await US(c.id,"REJECTED",f),u(null),d(""),m()},j=async v=>{window.confirm("삭제하시겠습니까?")&&(await B8(v),m())},b=async v=>{const S=await L8(v);p({ref:v,data:S})};return s.jsxs("div",{children:[s.jsx(Ln,{title:"UGC 모더레이션",subtitle:"리뷰 · 댓글 · 게시글 · 문의 — AI 위험도 자동 분류",actions:s.jsxs("div",{className:"flex gap-2",children:[s.jsxs(Q,{variant:e?"primary":"ghost",onClick:()=>t(!0),children:[s.jsx(UN,{size:15})," 대기 큐"]}),s.jsx(Q,{variant:e?"ghost":"primary",onClick:()=>t(!1),children:"전체"})]})}),!e&&s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[s.jsx("select",{className:"inp w-36",value:n,onChange:v=>r(v.target.value),children:Mhe.map(v=>s.jsx("option",{value:v,children:v||"전체 유형"},v))}),s.jsx("select",{className:"inp w-36",value:a,onChange:v=>i(v.target.value),children:khe.map(v=>s.jsx("option",{value:v,children:v||"전체 상태"},v))})]}),l.length===0?s.jsx(rn,{msg:e?"검토 대기 항목이 없습니다.":"UGC가 없습니다."}):s.jsx("div",{className:"space-y-3",children:l.map(v=>s.jsx("div",{className:"bg-card border border-edge rounded-xl p-4",children:s.jsxs("div",{className:"flex items-start justify-between gap-4",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2 flex-wrap mb-1.5",children:[s.jsx("span",{className:"text-xs font-semibold text-brand",children:v.ugcType}),s.jsx($n,{status:v.moderationStatus}),s.jsx($he,{risk:v.aiRisk}),v.sentiment&&s.jsx($n,{status:v.sentiment}),v.rating!=null&&s.jsxs("span",{className:"text-xs text-amber-400",children:["★ ",v.rating]}),v.itsmSrId&&s.jsxs("span",{className:"text-[11px] text-sky-400 flex items-center gap-0.5",children:[s.jsx(rz,{size:11})," SR #",v.itsmSrId]})]}),s.jsx("p",{className:"text-sm text-slate-200",children:v.body}),s.jsxs("div",{className:"text-[11px] text-slate-500 mt-1.5",children:[v.authorName||"익명"," · ",v.authorEmail||""," · ",v.createdAt?new Date(v.createdAt).toLocaleString("ko-KR"):"",v.targetRef&&s.jsxs(s.Fragment,{children:[" · 대상 ",v.targetRef]})]}),v.aiReason&&s.jsxs("div",{className:"text-[11px] text-amber-400/80 mt-1",children:["AI: ",v.aiReason]})]}),y&&s.jsxs("div",{className:"flex flex-col gap-2 shrink-0",children:[v.moderationStatus!=="APPROVED"&&s.jsxs(Q,{size:"sm",onClick:()=>x(v.id),children:[s.jsx(ix,{size:13})," 승인"]}),v.moderationStatus!=="REJECTED"&&s.jsxs(Q,{size:"sm",variant:"ghost",onClick:()=>{u(v),d("")},children:[s.jsx(WN,{size:13})," 반려"]}),v.ugcType==="REVIEW"&&v.targetRef&&s.jsxs(Q,{size:"sm",variant:"ghost",onClick:()=>b(v.targetRef),children:[s.jsx(ht,{size:13})," AI 요약"]}),s.jsx(Q,{size:"sm",variant:"danger",onClick:()=>j(v.id),children:s.jsx(Gt,{size:13})})]})]})},v.id))}),c&&s.jsxs(rt,{title:"UGC 반려",onClose:()=>u(null),children:[s.jsx("p",{className:"text-sm text-slate-300 mb-3 line-clamp-2",children:c.body}),s.jsx("textarea",{className:"inp",placeholder:"반려 사유 (선택)",value:f,onChange:v=>d(v.target.value)}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Q,{variant:"ghost",onClick:()=>u(null),children:"취소"}),s.jsx(Q,{variant:"danger",onClick:g,children:"반려"})]})]}),h&&s.jsx(rt,{title:`AI 리뷰 요약 — ${h.ref}`,onClose:()=>p(null),children:h.data?s.jsxs(xt,{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx($n,{status:h.data.sentiment}),s.jsxs("span",{className:"text-xs text-slate-400",children:["점수 ",h.data.score]})]}),s.jsx("p",{className:"text-sm text-slate-200",children:h.data.summary})]}):s.jsx("p",{className:"text-slate-500 text-sm",children:"요약 데이터가 없습니다."})})]})}const Rhe=["WEB","MOBILE","APP","KIOSK"],Dhe={WEB:lx,MOBILE:nh,APP:k5,KIOSK:jz},zhe={name:"",channelType:"WEB",endpoint:"",active:!0};function Lhe(){const[e,t]=O.useState([]),[n,r]=O.useState(null),a=zn(),i=()=>k8().then(c=>t(c||[])).catch(()=>t([]));O.useEffect(()=>{i()},[]);const l=async()=>{n.id?await P8(n.id,n):await $8(n),r(null),i()},o=async c=>{window.confirm("삭제하시겠습니까?")&&(await R8(c),i())};return s.jsxs("div",{children:[s.jsx(Ln,{title:"채널",subtitle:"다채널 배포 타겟 — 웹 · 모바일 · 앱 · 키오스크",actions:a&&s.jsxs(Q,{onClick:()=>r({...zhe}),children:[s.jsx(Xt,{size:16})," 채널 추가"]})}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[e.map(c=>{const u=Dhe[c.channelType]||XN;return s.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsxs("span",{className:"font-medium flex items-center gap-2",children:[s.jsx(u,{size:16,className:"text-brand"})," ",c.name]}),s.jsx($n,{status:c.active?"ACTIVE":"INACTIVE"})]}),s.jsx("div",{className:"text-xs text-slate-400",children:c.channelType}),s.jsx("div",{className:"text-[11px] text-slate-500 font-mono truncate mt-1",children:c.endpoint}),a&&s.jsxs("div",{className:"flex items-center gap-3 mt-3",children:[s.jsx("button",{onClick:()=>r({...c}),className:"text-slate-400 hover:text-brand",children:s.jsx(Ns,{size:14})}),s.jsx("button",{onClick:()=>o(c.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(Gt,{size:14})})]})]},c.id)}),e.length===0&&s.jsx("div",{className:"col-span-3",children:s.jsx(rn,{msg:"채널이 없습니다."})})]}),n&&s.jsxs(rt,{title:n.id?"채널 편집":"채널 추가",onClose:()=>r(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsx(K,{label:"이름",children:s.jsx("input",{className:"inp",value:n.name,onChange:c=>r({...n,name:c.target.value})})}),s.jsx(K,{label:"유형",children:s.jsx("select",{className:"inp",value:n.channelType,onChange:c=>r({...n,channelType:c.target.value}),children:Rhe.map(c=>s.jsx("option",{children:c},c))})}),s.jsx(K,{label:"엔드포인트",children:s.jsx("input",{className:"inp",value:n.endpoint,onChange:c=>r({...n,endpoint:c.target.value}),placeholder:"https://..."})}),s.jsx(K,{label:"활성",children:s.jsxs("select",{className:"inp",value:String(n.active),onChange:c=>r({...n,active:c.target.value==="true"}),children:[s.jsx("option",{value:"true",children:"활성"}),s.jsx("option",{value:"false",children:"비활성"})]})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Q,{variant:"ghost",onClick:()=>r(null),children:"취소"}),s.jsx(Q,{onClick:l,children:"저장"})]})]})]})}const VA=["","VIP","REGULAR","NEW","DORMANT"],KA=["","ACTIVE","INACTIVE","BLOCKED"],Bhe={memberCode:"",name:"",email:"",phone:"",segment:"NEW",status:"ACTIVE",crmCustomerId:""};function Ihe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(""),[l,o]=O.useState(""),[c,u]=O.useState(null),[f,d]=O.useState(null),h=zn(),p=()=>I8({segment:n,status:a,keyword:l}).then(b=>t(b||[])).catch(()=>t([]));O.useEffect(()=>{p()},[n,a]);const y=()=>u({...Bhe}),m=b=>u({id:b.id,memberCode:b.memberCode,name:b.name,email:"",phone:"",segment:b.segment,status:b.status,crmCustomerId:b.crmCustomerId||""}),x=async()=>{const b={...c};b.email||delete b.email,b.phone||delete b.phone,c.id?await H8(c.id,b):await U8(b),u(null),p()},g=async b=>{window.confirm("삭제하시겠습니까?")&&(await F8(b),p())},j=async b=>{const v=await q8(b.id);d({name:b.name,data:v})};return s.jsxs("div",{children:[s.jsx(Ln,{title:"회원",subtitle:"회원 관리 · PII 마스킹 · CRM 인사이트 연계",actions:h&&s.jsxs(Q,{onClick:y,children:[s.jsx(Xt,{size:16})," 회원 추가"]})}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[s.jsxs("div",{className:"relative",children:[s.jsx(Ju,{size:14,className:"absolute left-2.5 top-2.5 text-slate-500"}),s.jsx("input",{value:l,onChange:b=>o(b.target.value),onKeyDown:b=>b.key==="Enter"&&p(),placeholder:"이름/코드 검색",className:"inp pl-8 w-52"})]}),s.jsx("select",{className:"inp w-36",value:n,onChange:b=>r(b.target.value),children:VA.map(b=>s.jsx("option",{value:b,children:b||"전체 세그먼트"},b))}),s.jsx("select",{className:"inp w-36",value:a,onChange:b=>i(b.target.value),children:KA.map(b=>s.jsx("option",{value:b,children:b||"전체 상태"},b))}),s.jsx(Q,{variant:"ghost",onClick:p,children:"검색"})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"코드"}),s.jsx("th",{className:"text-left",children:"이름"}),s.jsx("th",{className:"text-left",children:"이메일"}),s.jsx("th",{className:"text-left",children:"전화"}),s.jsx("th",{className:"text-left",children:"세그먼트"}),s.jsx("th",{className:"text-left",children:"상태"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(b=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsx("td",{className:"py-3 px-4 font-mono text-xs text-slate-400",children:b.memberCode}),s.jsxs("td",{className:"font-medium flex items-center gap-2",children:[s.jsx(hx,{size:14,className:"text-brand"}),b.name]}),s.jsx("td",{className:"text-slate-400 font-mono text-xs",children:b.emailEnc||"—"}),s.jsx("td",{className:"text-slate-400 font-mono text-xs",children:b.phoneEnc||"—"}),s.jsx("td",{children:s.jsx($n,{status:b.segment})}),s.jsx("td",{children:s.jsx($n,{status:b.status})}),s.jsx("td",{className:"px-4",children:s.jsxs("div",{className:"flex items-center justify-end gap-3",children:[b.crmCustomerId&&s.jsx("button",{onClick:()=>j(b),title:"CRM 인사이트",className:"text-accent hover:text-accent/80",children:s.jsx(ht,{size:15})}),h&&s.jsx("button",{onClick:()=>m(b),className:"text-slate-400 hover:text-brand",children:s.jsx(Ns,{size:14})}),h&&s.jsx("button",{onClick:()=>g(b.id),className:"text-rose-400 hover:text-rose-300",children:s.jsx(Gt,{size:14})})]})})]},b.id)),e.length===0&&s.jsx(rn,{colSpan:7,msg:"회원이 없습니다."})]})]})}),c&&s.jsxs(rt,{title:c.id?"회원 편집":"회원 추가",onClose:()=>u(null),children:[s.jsxs("div",{className:"space-y-3",children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(K,{label:"회원 코드",children:s.jsx("input",{className:"inp",value:c.memberCode,onChange:b=>u({...c,memberCode:b.target.value})})}),s.jsx(K,{label:"이름",children:s.jsx("input",{className:"inp",value:c.name,onChange:b=>u({...c,name:b.target.value})})})]}),s.jsx(K,{label:"이메일",hint:c.id?"변경 시에만 입력 (빈 값은 기존 유지)":void 0,children:s.jsx("input",{className:"inp",value:c.email,onChange:b=>u({...c,email:b.target.value})})}),s.jsx(K,{label:"전화",hint:c.id?"변경 시에만 입력 (빈 값은 기존 유지)":void 0,children:s.jsx("input",{className:"inp",value:c.phone,onChange:b=>u({...c,phone:b.target.value})})}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsx(K,{label:"세그먼트",children:s.jsx("select",{className:"inp",value:c.segment,onChange:b=>u({...c,segment:b.target.value}),children:VA.filter(Boolean).map(b=>s.jsx("option",{children:b},b))})}),s.jsx(K,{label:"상태",children:s.jsx("select",{className:"inp",value:c.status,onChange:b=>u({...c,status:b.target.value}),children:KA.filter(Boolean).map(b=>s.jsx("option",{children:b},b))})})]}),s.jsx(K,{label:"CRM 고객 ID",children:s.jsx("input",{className:"inp",value:c.crmCustomerId,onChange:b=>u({...c,crmCustomerId:b.target.value})})})]}),s.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[s.jsx(Q,{variant:"ghost",onClick:()=>u(null),children:"취소"}),s.jsx(Q,{onClick:x,children:"저장"})]})]}),f&&s.jsx(rt,{title:`CRM 인사이트 — ${f.name}`,onClose:()=>d(null),children:f.data?s.jsx(xt,{children:s.jsx("pre",{className:"text-xs text-slate-300 whitespace-pre-wrap",children:JSON.stringify(f.data,null,2)})}):s.jsx("p",{className:"text-slate-500 text-sm",children:"CRM 인사이트가 없습니다."})})]})}function Uhe(){const[e,t]=O.useState({}),[n,r]=O.useState([]);O.useEffect(()=>{Y8().then(o=>t(o||{})).catch(()=>t({})),G8(10).then(o=>r(Array.isArray(o)?o:(o==null?void 0:o.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(o=>{var c;return(c=o.title||o.contentTitle||`#${o.contentId??o.id}`)==null?void 0:c.slice(0,14)}),series:[{name:"조회수",data:n.slice(0,8).map(o=>Number(o.views??o.totalViews??0))}]},l={labels:n.slice(0,8).map(o=>{var c;return(c=o.title||o.contentTitle||`#${o.contentId??o.id}`)==null?void 0:c.slice(0,14)}),series:[{name:"전환",data:n.slice(0,8).map(o=>Number(o.conversions??o.totalConversions??0))}]};return s.jsxs("div",{children:[s.jsxs("div",{className:"mb-6",children:[s.jsx("h1",{className:"text-xl font-bold",children:"콘텐츠 분석"}),s.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:"조회 · 체류 · 전환 · 인기 콘텐츠 성과 (Recharts)"})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6",children:[s.jsxs(xt,{children:[s.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-400",children:[s.jsx(eh,{size:13})," 총 조회수"]}),s.jsx("div",{className:"text-3xl font-bold mt-2 text-brand",children:Number(e.totalViews??0).toLocaleString()})]}),s.jsxs(xt,{children:[s.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-400",children:[s.jsx(rg,{size:13})," 총 전환"]}),s.jsx("div",{className:"text-3xl font-bold mt-2 text-accent",children:Number(e.totalConversions??0).toLocaleString()})]}),s.jsxs(xt,{children:[s.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-400",children:[s.jsx(cz,{size:13})," 전환율"]}),s.jsxs("div",{className:"text-3xl font-bold mt-2 text-amber-400",children:[a.toFixed(1),"%"]})]})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[s.jsx(xt,{title:"인기 콘텐츠 조회수",icon:s.jsx(ax,{size:15}),children:n.length?s.jsx(Bb,{type:"BAR",data:i}):s.jsx(rn,{msg:"데이터가 없습니다."})}),s.jsx(xt,{title:"콘텐츠별 전환",icon:s.jsx(rg,{size:15}),children:n.length?s.jsx(Bb,{type:"BAR",data:l}):s.jsx(rn,{msg:"데이터가 없습니다."})})]}),s.jsx(xt,{title:"인기 콘텐츠 상세",icon:s.jsx(eh,{size:15}),className:"mt-4",children:n.length===0?s.jsx(rn,{msg:"데이터가 없습니다."}):s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-2",children:"제목"}),s.jsx("th",{className:"text-left",children:"유형"}),s.jsx("th",{className:"text-right",children:"조회"}),s.jsx("th",{className:"text-right",children:"전환"})]})}),s.jsx("tbody",{children:n.map((o,c)=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsx("td",{className:"py-2 font-medium",children:o.title||o.contentTitle||`#${o.contentId??o.id}`}),s.jsx("td",{className:"text-slate-400",children:o.contentType||"-"}),s.jsx("td",{className:"text-right text-slate-300",children:Number(o.views??o.totalViews??0).toLocaleString()}),s.jsx("td",{className:"text-right text-slate-300",children:Number(o.conversions??o.totalConversions??0).toLocaleString()})]},o.id??o.contentId??c))})]})})]})}function Hhe(){const[e,t]=O.useState(null);return O.useEffect(()=>{OC().then(n=>t(!!(n!=null&&n.ollamaAvailable))).catch(()=>t(!1))},[]),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsxs("div",{children:[s.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[s.jsx(ht,{className:"text-accent",size:20})," AI 도구"]}),s.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:"콘텐츠 초안 · SEO · 번역 · 모더레이션 · 리뷰 요약 · 자연어 검색 (Ollama 온프레미스)"})]}),s.jsxs("span",{className:`flex items-center gap-1.5 text-xs px-3 py-1.5 rounded-lg border ${e?"text-accent border-accent/30 bg-accent/10":"text-slate-400 border-edge bg-card"}`,children:[s.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${e?"bg-accent":"bg-slate-500"}`}),"Ollama ",e===null?"확인 중":e?"온라인":"오프라인 (Java 폴백)"]})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[s.jsx(qhe,{}),s.jsx(Fhe,{}),s.jsx(Ghe,{}),s.jsx(Yhe,{}),s.jsx(Vhe,{}),s.jsx(Khe,{})]})]})}function qhe(){const[e,t]=O.useState("post"),[n,r]=O.useState(""),[a,i]=O.useState("professional"),[l,o]=O.useState(""),[c,u]=O.useState(!1),f=async()=>{u(!0);try{const d=await AC(e,n,a);o((d==null?void 0:d.draft)||"")}finally{u(!1)}};return s.jsxs(xt,{title:"콘텐츠 초안 생성",icon:s.jsx(Mp,{size:15}),children:[s.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-2",children:[s.jsx(K,{label:"종류",children:s.jsx("select",{className:"inp",value:e,onChange:d=>t(d.target.value),children:["post","page","product","banner"].map(d=>s.jsx("option",{children:d},d))})}),s.jsx(K,{label:"톤",children:s.jsx("select",{className:"inp",value:a,onChange:d=>i(d.target.value),children:["professional","casual","marketing","formal"].map(d=>s.jsx("option",{children:d},d))})})]}),s.jsx(K,{label:"주제",children:s.jsx("input",{className:"inp",value:n,onChange:d=>r(d.target.value),placeholder:"예: 봄 시즌 프로모션"})}),s.jsxs(Q,{onClick:f,disabled:c,size:"sm",children:[s.jsx(ht,{size:13})," ",c?"생성 중…":"초안 생성"]}),l&&s.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 Fhe(){const[e,t]=O.useState(""),[n,r]=O.useState(""),[a,i]=O.useState(null),[l,o]=O.useState(!1),c=async()=>{o(!0);try{i(await EC(e,n))}finally{o(!1)}};return s.jsxs(xt,{title:"SEO 최적화 제안",icon:s.jsx(Ju,{size:15}),children:[s.jsx(K,{label:"제목",children:s.jsx("input",{className:"inp",value:e,onChange:u=>t(u.target.value)})}),s.jsx(K,{label:"본문",children:s.jsx("textarea",{className:"inp",value:n,onChange:u=>r(u.target.value)})}),s.jsxs(Q,{onClick:c,disabled:l,size:"sm",children:[s.jsx(ht,{size:13})," ",l?"분석 중…":"제안 생성"]}),a&&s.jsxs("div",{className:"mt-3 text-sm bg-ink border border-edge rounded p-3 space-y-1.5",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-slate-500 text-xs",children:"메타:"})," ",a.metaDescription]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-slate-500 text-xs",children:"키워드:"})," ",(a.keywords||[]).join(", ")]}),s.jsxs("div",{children:[s.jsx("span",{className:"text-slate-500 text-xs",children:"점수:"})," ",s.jsx("span",{className:"text-accent",children:a.score})]})]})]})}function Ghe(){const[e,t]=O.useState(""),[n,r]=O.useState("en"),[a,i]=O.useState(""),[l,o]=O.useState(!1),c=async()=>{o(!0);try{const u=await V8(e,n);i((u==null?void 0:u.translated)||"")}finally{o(!1)}};return s.jsxs(xt,{title:"다국어 번역",icon:s.jsx(sx,{size:15}),children:[s.jsx(K,{label:"원문",children:s.jsx("textarea",{className:"inp",value:e,onChange:u=>t(u.target.value)})}),s.jsx(K,{label:"대상 로케일",children:s.jsx("input",{className:"inp",value:n,onChange:u=>r(u.target.value)})}),s.jsxs(Q,{onClick:c,disabled:l,size:"sm",children:[s.jsx(ht,{size:13})," ",l?"번역 중…":"번역"]}),a&&s.jsx("div",{className:"mt-3 text-sm text-slate-200 bg-ink border border-edge rounded p-3 whitespace-pre-wrap",children:a})]})}function Yhe(){const[e,t]=O.useState(""),[n,r]=O.useState([]),[a,i]=O.useState(!1),l=async()=>{i(!0);try{const o=await X8(e);r((o==null?void 0:o.keywords)||[])}finally{i(!1)}};return s.jsxs(xt,{title:"자연어 콘텐츠 검색",icon:s.jsx(ag,{size:15}),children:[s.jsx(K,{label:"자연어 질의",children:s.jsx("input",{className:"inp",value:e,onChange:o=>t(o.target.value),placeholder:"예: 환불 정책 관련 페이지",onKeyDown:o=>o.key==="Enter"&&l()})}),s.jsxs(Q,{onClick:l,disabled:a,size:"sm",children:[s.jsx(ht,{size:13})," ",a?"추출 중…":"키워드 추출"]}),n.length>0&&s.jsx("div",{className:"mt-3 flex flex-wrap gap-1.5",children:n.map((o,c)=>s.jsx("span",{className:"px-2 py-0.5 rounded bg-brand/15 text-brand text-xs border border-brand/30",children:o},c))})]})}function Vhe(){const[e,t]=O.useState(""),[n,r]=O.useState(null),[a,i]=O.useState(!1),l=async()=>{i(!0);try{r(await W8(e))}finally{i(!1)}};return s.jsxs(xt,{title:"UGC 모더레이션 판정",icon:s.jsx(dx,{size:15}),children:[s.jsx(K,{label:"검사 텍스트",children:s.jsx("textarea",{className:"inp",value:e,onChange:o=>t(o.target.value)})}),s.jsxs(Q,{onClick:l,disabled:a,size:"sm",children:[s.jsx(ht,{size:13})," ",a?"판정 중…":"위험도 판정"]}),n&&s.jsxs("div",{className:"mt-3 text-sm bg-ink border border-edge rounded p-3 flex items-center gap-3",children:[s.jsx($n,{status:n.decision==="APPROVE"?"APPROVED":n.decision==="REJECT"?"REJECTED":"PENDING"}),s.jsxs("span",{className:"text-slate-400 text-xs",children:["위험 ",Math.round((n.risk??0)*100),"%"]}),s.jsx("span",{className:"text-slate-400 text-xs",children:n.reason})]})]})}function Khe(){const[e,t]=O.useState(""),[n,r]=O.useState(null),[a,i]=O.useState(!1),l=async()=>{i(!0);try{r(await K8(e.split(`
`).map(o=>o.trim()).filter(Boolean)))}finally{i(!1)}};return s.jsxs(xt,{title:"리뷰 요약·감성 분석",icon:s.jsx(lz,{size:15}),children:[s.jsx(K,{label:"리뷰 (줄바꿈 구분)",children:s.jsx("textarea",{className:"inp",value:e,onChange:o=>t(o.target.value),placeholder:`리뷰 1
리뷰 2`})}),s.jsxs(Q,{onClick:l,disabled:a,size:"sm",children:[s.jsx(ht,{size:13})," ",a?"요약 중…":"요약 생성"]}),n&&s.jsxs("div",{className:"mt-3 text-sm bg-ink border border-edge rounded p-3 space-y-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx($n,{status:n.sentiment}),s.jsxs("span",{className:"text-slate-400 text-xs",children:["점수 ",n.score]})]}),s.jsx("p",{className:"text-slate-200",children:n.summary})]})]})}const Xhe=[{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 Whe(){const[e,t]=O.useState(null),[n,r]=O.useState(""),[a,i]=O.useState(""),[l,o]=O.useState(null),[c,u]=O.useState(null),[f,d]=O.useState("봄맞이 신상 화분"),[h,p]=O.useState("이 상품 정말 최고예요! 강추합니다"),[y,m]=O.useState(""),x=pl("EDITOR",xa()),g=()=>Q8().then(w=>{t(w),i("")}).catch(()=>i("AI 기법 토글을 불러오지 못했습니다."));O.useEffect(()=>{g()},[]);const j=async(w,A)=>{var _;r(""),i("");try{const E=await Z8(w,A);t(E),r(`'${w}' 저장됨`)}catch(E){i(((_=E==null?void 0:E.response)==null?void 0:_.status)===403?"권한이 없습니다 (Editor+).":"저장 실패")}},b=async()=>{m("draft"),o(null);try{o(await J8("product",f,"친근함"))}catch{o({error:"호출 실패"})}finally{m("")}},v=async()=>{m("mod"),u(null);try{u(await eB(h))}catch{u({error:"호출 실패"})}finally{m("")}};if(!e)return s.jsx("div",{className:"text-slate-500",children:a||"불러오는 중..."});const S=({on:w,label:A})=>s.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 s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[s.jsx(Jc,{className:"text-brand",size:20})," AI 기법 (중앙 guardia-rag)"]}),s.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&&s.jsx("div",{className:"bg-brand/10 border border-brand/30 text-brand text-sm rounded-lg px-4 py-2.5 mb-4",children:n}),a&&s.jsx("div",{className:"bg-rose-500/10 border border-rose-500/40 text-rose-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:a}),!x&&s.jsx("div",{className:"bg-amber-500/10 border border-amber-500/30 text-amber-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:"조회 전용입니다. 토글 변경은 Editor+ 권한이 필요합니다."}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[s.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[s.jsxs("h2",{className:"font-semibold mb-3 flex items-center gap-2",children:[s.jsx(th,{size:16,className:"text-brand"})," 기법 토글"]}),s.jsxs("div",{className:"flex items-center justify-between py-2.5 border-b border-edge/50",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium",children:"검색 모드 (retrieval_mode)"}),s.jsx("div",{className:"text-[11px] text-slate-500",children:"vector(경량 기본) · hybrid(BM25+벡터) · graph"})]}),s.jsxs("select",{className:"inp w-32",value:e.retrievalMode,disabled:!x,onChange:w=>j("rag.retrieval_mode",w.target.value),children:[s.jsx("option",{value:"vector",children:"vector"}),s.jsx("option",{value:"hybrid",children:"hybrid"}),s.jsx("option",{value:"graph",children:"graph"})]})]}),Xhe.map(w=>{const A=e[w.key.replace("rag.","").replace(/_(\w)/g,(_,E)=>E.toUpperCase())];return s.jsxs("div",{className:"flex items-center justify-between py-2.5 border-b border-edge/50",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"text-sm font-medium flex items-center gap-1.5",children:[w.label,w.heavy&&s.jsx("span",{className:"text-[10px] text-amber-400",children:"RAM↑ 기본 off"})]}),s.jsx("div",{className:"text-[11px] text-slate-500",children:w.hint})]}),s.jsx("button",{disabled:!x,onClick:()=>j(w.key,String(!A)),className:`w-11 h-6 rounded-full transition-colors relative ${A?"bg-brand":"bg-slate-600"} ${x?"":"opacity-50"}`,children:s.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=>s.jsxs("div",{className:"flex items-center justify-between py-2.5 border-b border-edge/50",children:[s.jsx("div",{className:"text-sm",children:w.label}),s.jsx("input",{type:"number",className:"inp w-24",defaultValue:w.val,min:w.min,max:w.max,step:w.step||1,disabled:!x,onBlur:A=>j(w.key,A.target.value)})]},w.key)),s.jsxs("div",{className:"flex items-center justify-between py-2.5",children:[s.jsx("div",{className:"text-sm",children:"생성 모델"}),s.jsx("input",{className:"inp w-40",defaultValue:e.generationModel,disabled:!x,onBlur:w=>j("rag.generation_model",w.target.value)})]}),s.jsx("p",{className:"text-[11px] text-slate-500 mt-2",children:"설정은 cms_setting(rag.*)에 격리 저장 · 변경 시 감사로그 기록 · 무거운 기법 기본 off"})]}),s.jsxs("div",{className:"space-y-5",children:[s.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[s.jsxs("h2",{className:"font-semibold mb-3 flex items-center gap-2",children:[s.jsx(ht,{size:16,className:"text-brand"})," 콘텐츠 초안 (/rag/answer · /agent)"]}),s.jsx("input",{className:"inp w-full mb-2",value:f,onChange:w=>d(w.target.value),placeholder:"주제"}),s.jsxs("button",{onClick:b,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:[s.jsx(jS,{size:13})," ",y==="draft"?"생성 중...":"초안 생성"]}),l&&s.jsxs("div",{className:"mt-3 text-sm",children:[s.jsx("div",{className:"bg-panel rounded-lg p-3 whitespace-pre-wrap text-slate-200",children:String(l.draft??l.error??"")}),s.jsxs("div",{className:"flex flex-wrap gap-1.5 mt-2",children:[s.jsx(S,{on:!l.degraded,label:l.degraded?`폴백(${l.degraded_reason||"degraded"})`:`엔진:${l.engine||"RAG"}`}),l.applied&&s.jsxs(s.Fragment,{children:[s.jsx(S,{on:!0,label:`mode:${l.applied.retrievalMode}`}),s.jsx(S,{on:l.applied.rerank,label:"rerank"}),s.jsx(S,{on:l.applied.graphrag,label:"graph"}),s.jsx(S,{on:l.applied.toolUse,label:"tool-use"})]}),l.abstained&&s.jsx(S,{on:!1,label:"근거부족 보류"})]})]})]}),s.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[s.jsxs("h2",{className:"font-semibold mb-3 flex items-center gap-2",children:[s.jsx(th,{size:16,className:"text-brand"})," UGC 모더레이션 (/rag/structured)"]}),s.jsx("textarea",{className:"inp w-full mb-2 h-16",value:h,onChange:w=>p(w.target.value),placeholder:"리뷰/댓글"}),s.jsxs("button",{onClick:v,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:[s.jsx(jS,{size:13})," ",y==="mod"?"판정 중...":"판정"]}),c&&s.jsxs("div",{className:"mt-3 text-sm flex flex-wrap gap-1.5 items-center",children:[s.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&&s.jsx(S,{on:!0,label:`score:${c.score}`}),c.piiFlag&&s.jsx(S,{on:!1,label:"PII 감지"}),s.jsx(S,{on:!c.degraded,label:c.degraded?`폴백(${c.degraded_reason||"rule"})`:"결정론 JSON"})]}),s.jsx("p",{className:"text-[11px] text-slate-500 mt-2",children:"애매(저신뢰) 시 자동 통과 금지 → REVIEW(보류). 사람 검토 큐로."})]})]})]})]})}function XA(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 Qhe(){const[e,t]=O.useState([]),[n,r]=O.useState({username:"",password:"",displayName:"",role:"AUTHOR"}),[a,i]=O.useState(!1),[l,o]=O.useState(""),c=()=>tB().then(m=>{var x;t(((x=m.data)==null?void 0:x.data)||[]),o("")}).catch(m=>o(XA(m)));O.useEffect(()=>{c()},[]);const u=async m=>{try{await m(),o(""),await c()}catch(x){o(XA(x))}},f=async()=>{if(!n.username||!n.password){o("사용자명과 비밀번호를 입력하세요.");return}await u(async()=>{await nB(n),r({username:"",password:"",displayName:"",role:"AUTHOR"}),i(!1)})},d=(m,x)=>u(()=>rB(m.id,x)),h=m=>u(()=>aB(m.id,!m.active)),p=m=>{const x=window.prompt(`'${m.username}' 의 새 비밀번호`);x&&u(()=>iB(m.id,x))},y=m=>{window.confirm(`'${m.username}' 삭제?`)&&u(()=>lB(m.id))};return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[s.jsx(th,{className:"text-brand",size:20})," 사용자 / 권한"]}),s.jsxs("button",{onClick:()=>i(!a),className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-brand text-ink text-sm font-semibold",children:[s.jsx(Xt,{size:16})," 새 사용자"]})]}),l&&s.jsx("div",{className:"bg-rose-500/10 border border-rose-500/40 text-rose-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:l}),a&&s.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-6 grid grid-cols-5 gap-3",children:[s.jsx("input",{placeholder:"사용자명",value:n.username,onChange:m=>r({...n,username:m.target.value}),className:"inp"}),s.jsx("input",{placeholder:"표시 이름",value:n.displayName,onChange:m=>r({...n,displayName:m.target.value}),className:"inp"}),s.jsx("input",{placeholder:"비밀번호",type:"password",value:n.password,onChange:m=>r({...n,password:m.target.value}),className:"inp"}),s.jsx("select",{value:n.role,onChange:m=>r({...n,role:m.target.value}),className:"inp",children:wS.map(m=>s.jsx("option",{value:m,children:m},m))}),s.jsx("button",{onClick:f,className:"px-4 rounded-lg bg-brand text-ink text-sm font-semibold",children:"저장"})]}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"ID"}),s.jsx("th",{className:"text-left",children:"사용자명"}),s.jsx("th",{className:"text-left",children:"표시 이름"}),s.jsx("th",{className:"text-left",children:"역할"}),s.jsx("th",{className:"text-left",children:"상태"}),s.jsx("th",{className:"text-left",children:"생성일"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(m=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsx("td",{className:"py-3 px-4 text-slate-500",children:m.id}),s.jsx("td",{className:"font-medium",children:m.username}),s.jsx("td",{className:"text-slate-400",children:m.displayName||"-"}),s.jsx("td",{children:s.jsx("select",{value:m.role,onChange:x=>d(m,x.target.value),className:"px-2 py-1 rounded-md bg-ink border border-edge text-xs focus:border-brand outline-none",children:wS.map(x=>s.jsx("option",{value:x,children:x},x))})}),s.jsx("td",{children:s.jsx("span",{className:`inline-block px-2 py-0.5 rounded-md text-xs font-medium ${m.active?"bg-accent/15 text-accent":"bg-slate-500/15 text-slate-400"}`,children:m.active?"활성":"비활성"})}),s.jsx("td",{className:"text-slate-500 text-xs",children:m.createdAt?new Date(m.createdAt).toLocaleString("ko-KR"):"-"}),s.jsx("td",{className:"px-4",children:s.jsxs("div",{className:"flex items-center justify-end gap-3",children:[s.jsx("button",{onClick:()=>h(m),title:m.active?"비활성화":"활성화",className:"text-slate-400 hover:text-brand",children:s.jsx(fz,{size:16})}),s.jsx("button",{onClick:()=>p(m),title:"비밀번호 재설정",className:"text-slate-400 hover:text-brand",children:s.jsx(ox,{size:16})}),s.jsx("button",{onClick:()=>y(m),title:"삭제",className:"text-rose-400 hover:text-rose-300",children:s.jsx(Gt,{size:16})})]})})]},m.id)),e.length===0&&s.jsx("tr",{children:s.jsx("td",{colSpan:7,className:"py-6 text-center text-slate-500",children:"사용자가 없습니다."})})]})]})})]})}function Zhe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(""),[l,o]=O.useState(""),c=()=>oB(n,a,200).then(u=>{var f;t(((f=u.data)==null?void 0:f.data)||[]),o("")}).catch(u=>{var f;return o(((f=u==null?void 0:u.response)==null?void 0:f.status)===403?"권한이 없습니다 (Editor+).":"감사 로그를 불러오지 못했습니다.")});return O.useEffect(()=>{c()},[]),s.jsxs("div",{children:[s.jsx("div",{className:"flex items-center justify-between mb-6",children:s.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[s.jsx(YN,{className:"text-brand",size:20})," 감사 로그"]})}),s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx("input",{placeholder:"action 필터",value:n,onChange:u=>r(u.target.value),onKeyDown:u=>u.key==="Enter"&&c(),className:"inp w-44"}),s.jsx("input",{placeholder:"actor 필터",value:a,onChange:u=>i(u.target.value),onKeyDown:u=>u.key==="Enter"&&c(),className:"inp w-44"}),s.jsxs("button",{onClick:c,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm hover:border-brand",children:[s.jsx(Ju,{size:15})," 검색"]})]}),l&&s.jsx("div",{className:"bg-rose-500/10 border border-rose-500/40 text-rose-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:l}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"시각"}),s.jsx("th",{className:"text-left",children:"행위자"}),s.jsx("th",{className:"text-left",children:"액션"}),s.jsx("th",{className:"text-left",children:"대상"}),s.jsx("th",{className:"text-left",children:"상세"})]})}),s.jsxs("tbody",{children:[e.map(u=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsx("td",{className:"py-3 px-4 text-slate-500 text-xs whitespace-nowrap",children:u.createdAt?new Date(u.createdAt).toLocaleString("ko-KR"):"-"}),s.jsx("td",{className:"text-slate-300",children:u.actor}),s.jsx("td",{children:s.jsx("span",{className:"px-2 py-0.5 rounded bg-brand/15 text-brand text-xs border border-brand/30",children:u.action})}),s.jsx("td",{className:"text-slate-400 font-mono text-xs",children:u.target||"-"}),s.jsx("td",{className:"text-slate-400 text-xs truncate max-w-[360px]",children:u.detail||"-"})]},u.id)),e.length===0&&s.jsx("tr",{children:s.jsx("td",{colSpan:5,className:"py-6 text-center text-slate-500",children:"감사 로그가 없습니다."})})]})]})})]})}function Jhe(){const[e,t]=O.useState([]),[n,r]=O.useState({}),[a,i]=O.useState(""),[l,o]=O.useState(""),c=ZN(),u=()=>sB().then(d=>{var y;const h=((y=d.data)==null?void 0:y.data)||[],p=Array.isArray(h)?h:Object.entries(h).map(([m,x])=>({key:m,value:String(x)}));t(p),o("")}).catch(d=>{var h;return o(((h=d==null?void 0:d.response)==null?void 0:h.status)===403?"권한이 없습니다 (Editor+).":"시스템 설정을 불러오지 못했습니다.")});O.useEffect(()=>{u()},[]);const f=async d=>{var h;i(""),o("");try{await cB(d,n[d]??""),i(`'${d}' 저장됨`),u()}catch(p){o(((h=p==null?void 0:p.response)==null?void 0:h.status)===403?"SuperAdmin 권한이 필요합니다.":"저장 실패")}};return s.jsxs("div",{children:[s.jsx("div",{className:"flex items-center justify-between mb-6",children:s.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[s.jsx(KN,{className:"text-brand",size:20})," 시스템 설정"]})}),a&&s.jsx("div",{className:"bg-brand/10 border border-brand/30 text-brand text-sm rounded-lg px-4 py-2.5 mb-4",children:a}),l&&s.jsx("div",{className:"bg-rose-500/10 border border-rose-500/40 text-rose-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:l}),!c&&s.jsx("div",{className:"bg-amber-500/10 border border-amber-500/30 text-amber-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:"조회 전용입니다. 설정 변경은 SuperAdmin 권한이 필요합니다."}),s.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:s.jsxs("tr",{children:[s.jsx("th",{className:"text-left py-3 px-4",children:"키"}),s.jsx("th",{className:"text-left",children:"값"}),s.jsx("th",{className:"text-right px-4",children:"작업"})]})}),s.jsxs("tbody",{children:[e.map(d=>s.jsxs("tr",{className:"border-t border-edge/50",children:[s.jsxs("td",{className:"py-3 px-4 font-mono text-xs text-brand align-top",children:[d.key,d.description&&s.jsx("div",{className:"text-[11px] text-slate-500 font-sans mt-0.5",children:d.description})]}),s.jsx("td",{className:"py-3",children:s.jsx("input",{className:"inp",defaultValue:d.value,disabled:!c,onChange:h=>r({...n,[d.key]:h.target.value})})}),s.jsx("td",{className:"px-4 text-right align-top",children:c&&s.jsxs("button",{onClick:()=>f(d.key),className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-brand text-ink text-xs font-semibold",children:[s.jsx(fx,{size:13})," 저장"]})})]},d.key)),e.length===0&&s.jsx("tr",{children:s.jsx("td",{colSpan:3,className:"py-6 text-center text-slate-500",children:"설정 항목이 없습니다."})})]})]})})]})}const epe=()=>R.get("/api/admin/ai-config").then(e=>{var t;return(t=e.data)==null?void 0:t.data}),tpe=e=>R.put("/api/admin/ai-config",e).then(t=>{var n;return(n=t.data)==null?void 0:n.data}),npe=()=>R.post("/api/admin/ai-config/test",{}).then(e=>{var t;return(t=e.data)==null?void 0:t.data}),rpe=e=>R.post("/api/ai/feedback",e).then(t=>{var n;return(n=t.data)==null?void 0:n.data});function ape({feature:e,question:t,answer:n}){const[r,a]=O.useState(null),[i,l]=O.useState(""),[o,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 rpe({feature:e,question:t,answer:n,verdict:p,correction:i||void 0}),c(!0)}catch{c(!0)}finally{f(!1)}};return o?s.jsx("div",{className:"text-xs text-accent",children:"피드백 감사합니다. 학습에 반영됩니다."}):s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-xs text-slate-500",children:"이 결과가 도움이 되었나요?"}),s.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:s.jsx(bz,{size:14})}),s.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:s.jsx(gz,{size:14})})]}),r==="down"&&s.jsxs("div",{className:"flex items-center gap-2",children:[s.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"}),s.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:[s.jsx(VN,{size:13})," 제출"]})]})]})}const ipe=[{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 · 키 필요"}],gP=["claude-sonnet-4-6","claude-haiku-4-5","claude-opus-4-8"],xd="claude-sonnet-4-6",Zy=e=>gP.includes(e)?e:xd;function Jy(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 lpe(){const e=ZN(),[t,n]=O.useState("ollama"),[r,a]=O.useState(xd),[i,l]=O.useState(!1),[o,c]=O.useState(""),[u,f]=O.useState(!0),[d,h]=O.useState(!1),[p,y]=O.useState(!1),[m,x]=O.useState(!1),[g,j]=O.useState(""),[b,v]=O.useState(!1),[S,w]=O.useState(null),A=()=>{h(!0),epe().then(C=>{n(C.provider),a(Zy(C.claudeModel??xd)),l(!!C.claudeKeySet),c(C.ollamaTextModel??""),f(!!C.aiEnabled),j("")}).catch(C=>j(Jy(C))).finally(()=>h(!1))};O.useEffect(()=>{A()},[]);const _=()=>{x(!1),w(null)},E=async()=>{y(!0),x(!1);try{const C=await tpe({provider:t,claudeModel:r});n(C.provider),a(Zy(C.claudeModel??xd)),l(!!C.claudeKeySet),c(C.ollamaTextModel??""),f(!!C.aiEnabled),x(!0),j("")}catch(C){j(Jy(C))}finally{y(!1)}},N=async()=>{v(!0),w(null);try{w(await npe())}catch(C){w({ok:!1,degraded:!1,message:Jy(C)})}finally{v(!1)}},k=t==="claude",M=t==="glm",B=k&&!i,z=!k&&!u,P=S?S.degraded?"text-amber-300":S.ok?"text-accent":"text-rose-300":"";return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsxs("div",{children:[s.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[s.jsx(Jc,{size:20,className:"text-brand"})," AI 플랫폼 설정"]}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"콘텐츠 초안·SEO·번역·리뷰 요약·검색·모더레이션 등 텍스트 생성에 사용할 LLM 제공자와 모델을 선택합니다."})]}),s.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&&s.jsx("div",{className:"bg-rose-500/10 border border-rose-500/40 text-rose-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:g}),!e&&s.jsx("div",{className:"bg-amber-500/10 border border-amber-500/30 text-amber-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:"조회 전용입니다. AI 플랫폼 설정 변경은 SuperAdmin 권한이 필요합니다."}),(B||z)&&s.jsx("div",{className:"bg-amber-500/10 border border-amber-500/40 text-amber-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:B?"Claude API 키가 설정되지 않아 Ollama(온프레미스)로 폴백 동작합니다. 서버 환경변수 ANTHROPIC_API_KEY 설정 후 사용하세요.":"AI 기능이 비활성 상태입니다. 모든 AI 결과는 규칙 기반(degraded)으로 동작합니다."}),M&&s.jsxs("div",{className:"bg-amber-500/10 border border-amber-500/40 text-amber-300 text-sm rounded-lg px-4 py-2.5 mb-4 flex items-center gap-2",children:[s.jsx(xz,{size:15}),"GLM(glm4:9b, 약 5.5GB)은 현재 서버 가용 RAM(~2GB)을 초과합니다. RAM 증설 전까지 콜드로드가 실패할 수 있으며, 실패 시 자동으로 소형 모델로 폴백합니다."]}),s.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[s.jsxs("section",{className:"bg-card border border-edge rounded-xl p-5",children:[s.jsxs("h2",{className:"text-sm font-semibold mb-4 flex items-center gap-2",children:[s.jsx(Jc,{size:16,className:"text-brand"})," 제공자 & 모델"]}),s.jsx("div",{className:"grid grid-cols-2 gap-2 mb-4",children:ipe.map(C=>s.jsxs("button",{onClick:()=>{e&&(n(C.id),_())},disabled:!e,className:`text-left px-3 py-2.5 rounded-lg border text-sm transition-colors disabled:opacity-60 ${t===C.id?"bg-brand/15 border-brand text-brand":"bg-ink border-edge text-slate-300 hover:border-brand/50"}`,children:[s.jsxs("div",{className:"font-semibold flex items-center gap-1.5",children:[C.label,C.ram&&s.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"})]}),s.jsx("div",{className:"text-[11px] text-slate-500 mt-0.5",children:C.hint})]},C.id))}),!k&&s.jsxs("div",{className:"mb-4",children:[s.jsx("label",{className:"block text-xs text-slate-500 mb-1",children:"Ollama 텍스트 모델"}),s.jsx("div",{className:"px-3 py-2 rounded-lg bg-ink border border-edge text-sm font-mono",children:o||"llama3.2:1b"}),s.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:"온프레미스 소형 모델 — 서버 RAM 제약으로 고정. 외부 호출 없음."})]}),k&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"mb-4",children:[s.jsx("label",{className:"block text-xs text-slate-500 mb-1",children:"Claude 모델"}),s.jsx("select",{value:r,onChange:C=>{a(Zy(C.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:gP.map(C=>s.jsx("option",{value:C,children:C},C))})]}),s.jsxs("div",{className:"mb-4",children:[s.jsxs("label",{className:"text-xs text-slate-500 mb-1 flex items-center gap-1",children:[s.jsx(ox,{size:13})," API 키"]}),s.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?"설정됨":"미설정"}),s.jsx("p",{className:"text-[11px] text-slate-500 mt-1.5",children:"키는 서버 환경변수(ANTHROPIC_API_KEY)로만 주입되며 화면·응답·로그에 노출되지 않습니다."})]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("button",{onClick: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:[s.jsx(fx,{size:15})," ",p?"저장 중…":"저장"]}),m&&s.jsx("span",{className:"text-accent text-xs",children:"저장됨"})]})]}),s.jsxs("section",{className:"bg-card border border-edge rounded-xl p-5",children:[s.jsxs("h2",{className:"text-sm font-semibold mb-2 flex items-center gap-2",children:[s.jsx(uz,{size:16,className:"text-brand"})," 연결 테스트"]}),s.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"저장된 설정 기준으로 선택한 제공자에 짧은 ping 을 보내 연결을 확인합니다(요약 결과만)."}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("button",{onClick:N,disabled:b,className:"px-4 py-2 rounded-lg bg-card border border-edge text-sm disabled:opacity-40 hover:border-brand/50",children:b?"테스트 중…":"테스트 실행"}),S&&s.jsx("span",{className:`text-sm ${P}`,role:"status","aria-live":"polite",children:S.message})]}),s.jsx("p",{className:"text-[11px] text-slate-500 mt-3",children:"먼저 변경 사항을 저장한 뒤 테스트하세요. Claude 실패 시 Ollama 로 자동 폴백합니다."}),s.jsxs("div",{className:"mt-5 pt-4 border-t border-edge/60",children:[s.jsx("div",{className:"text-xs text-slate-500 mb-2",children:"AI 품질 피드백"}),s.jsx(ape,{feature:"ai-platform-settings"})]})]})]})]})}const ope="https://itsm.zioinfo.co.kr";function spe(){const[e,t]=O.useState(null),[n,r]=O.useState(!0),[a,i]=O.useState(""),[l,o]=O.useState(!1),c=()=>{r(!0),i(""),fetch(`${ope}/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),o(!0),setTimeout(()=>o(!1),2e3)}catch{}};return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-6",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(nh,{className:"text-brand",size:22}),s.jsx("h1",{className:"text-xl font-bold",children:"GUARDiA 통합 메신저 앱 설치"})]}),s.jsxs("button",{onClick:c,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-slate-300 hover:text-brand",children:[s.jsx(dz,{size:15})," 새로고침"]})]}),s.jsxs("p",{className:"text-sm text-slate-400 mb-6",children:["QR 코드를 스캔하면 ",s.jsx("span",{className:"text-brand font-semibold",children:"GUARDiA Messenger"})," 앱 설치 페이지로 이동합니다. 앱스토어 설치가 필요 없으며, 앱 업로드·버전 관리는 GUARDiA Manager에서 일원화되어 있습니다."]}),n&&s.jsx("div",{className:"text-slate-400 text-sm",children:"불러오는 중…"}),a&&s.jsx("div",{className:"bg-card border border-edge rounded-xl p-6 text-rose-400 text-sm",children:a}),!n&&!a&&e&&!e.has_version&&s.jsxs("div",{className:"bg-card border border-edge rounded-xl p-8 text-center text-slate-400",children:[s.jsx(nh,{size:36,className:"mx-auto mb-3 text-slate-600"}),"아직 등록된 앱 버전이 없습니다.",s.jsx("br",{}),s.jsx("span",{className:"text-xs",children:"GUARDiA Manager에서 APK를 업로드하면 여기에 QR이 표시됩니다."})]}),!n&&!a&&(e==null?void 0:e.has_version)&&s.jsxs("div",{className:"bg-card border border-edge rounded-xl p-6 grid md:grid-cols-[200px_1fr] gap-6 items-start",children:[s.jsx("div",{className:"bg-white rounded-xl p-3 flex items-center justify-center",children:s.jsx("img",{src:e.qr_url,alt:"앱 설치 QR",className:"w-44 h-44"})}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"text-lg font-bold",children:e.app_name||"GUARDiA Messenger"}),s.jsxs("span",{className:"px-2 py-0.5 rounded-md bg-brand2 text-white text-xs font-semibold",children:["v",e.version]})]}),s.jsxs("div",{className:"text-xs text-slate-400 mb-4",children:[e.platform," · ",e.file_size_mb?`${e.file_size_mb}MB`:"",e.download_count!=null&&` · 다운로드 ${e.download_count}회`]}),e.release_notes&&s.jsxs("div",{className:"mb-4",children:[s.jsx("div",{className:"text-[11px] font-semibold text-slate-500 uppercase tracking-wider mb-1",children:"변경점"}),s.jsx("div",{className:"text-sm text-slate-300 whitespace-pre-line bg-ink border border-edge rounded-lg p-3 max-h-32 overflow-auto",children:e.release_notes})]}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsxs("a",{href:e.landing_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-brand text-ink text-sm font-semibold",children:[s.jsx(K5,{size:15})," 설치 페이지 열기"]}),s.jsxs("a",{href:e.download_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-slate-300 hover:text-brand",children:[s.jsx(V5,{size:15})," APK 직접 다운로드"]}),s.jsxs("button",{onClick:u,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-slate-300 hover:text-brand",children:[l?s.jsx(ix,{size:15,className:"text-accent"}):s.jsx(Y5,{size:15}),l?"복사됨":"다운로드 링크 복사"]})]}),s.jsx("div",{className:"mt-4 text-[12px] text-slate-500 leading-relaxed",children:'📱 Android: APK 다운로드 후 설정 → 보안 → "알 수 없는 소스" 허용 → 설치. 앱스토어 등록이 필요 없습니다.'})]})]})]})}function Or({children:e}){return s.jsxs("div",{className:"uiws-scope",style:{background:"var(--uiws-bg)",color:"var(--uiws-text)",minHeight:"100%",margin:-24,padding:24,borderRadius:0},children:[s.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:12},children:s.jsx("div",{style:{width:150},children:s.jsx(eC,{})})}),e]})}const N1={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 s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-end",marginBottom:20},children:[s.jsxs("div",{children:[s.jsx("h1",{style:{fontSize:22,fontWeight:700,color:"var(--uiws-text)"},children:e}),t&&s.jsx("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginTop:4},children:t})]}),s.jsx("div",{style:{display:"flex",gap:8},children:n})]})}function Ru({children:e,style:t}){return s.jsx("div",{style:{...N1,padding:18,...t},children:e})}function oe({children:e,onClick:t,variant:n="primary",type:r="button",disabled:a}){const i={primary:{background:"var(--uiws-primary)",color:"var(--uiws-primary-contrast)",border:"none"},ghost:{background:"transparent",color:"var(--uiws-text-muted)",border:"1px solid var(--uiws-border)"},danger:{background:"var(--uiws-danger)",color:"#fff",border:"none"}};return s.jsx("button",{type:r,onClick:t,disabled:a,style:{padding:"9px 16px",borderRadius:8,fontSize:13,fontWeight:600,cursor:a?"not-allowed":"pointer",opacity:a?.5:1,...i[n]},children:e})}function Oe({value:e,onChange:t,placeholder:n,type:r="text",style:a}){return s.jsx("input",{type:r,value:e,placeholder:n,onChange:i=>t(i.target.value),style:{padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)",...a}})}function Te({label:e,children:t}){return s.jsxs("label",{style:{display:"block",marginBottom:12},children:[s.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:e}),t]})}function Ei({children:e}){return s.jsx(Ru,{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 s.jsx("div",{style:{...N1,overflow:"hidden"},children:s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[s.jsx("thead",{children:s.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:e.map(i=>s.jsx("th",{style:{textAlign:i.align??"left",padding:"11px 14px",color:"var(--uiws-text-muted)",fontWeight:600,fontSize:12,borderBottom:"1px solid var(--uiws-border)",width:i.width},children:i.header},i.key))})}),s.jsx("tbody",{children:t.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:e.length,style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:a})}):t.map(i=>s.jsx("tr",{onClick:()=>r==null?void 0:r(i),style:{cursor:r?"pointer":"default",borderBottom:"1px solid var(--uiws-border)"},onMouseEnter:l=>l.currentTarget.style.background="var(--uiws-row-hover)",onMouseLeave:l=>l.currentTarget.style.background="transparent",children:e.map(l=>s.jsx("td",{style:{padding:"11px 14px",textAlign:l.align??"left"},children:l.render?l.render(i):String(i[l.key]??"")},l.key))},n(i)))})]})})}function bP({page:e,totalPages:t,onChange:n}){return t<=1?null:s.jsxs("div",{style:{display:"flex",gap:6,justifyContent:"center",marginTop:16},children:[s.jsx(oe,{variant:"ghost",disabled:e<=0,onClick:()=>n(e-1),children:"이전"}),s.jsxs("span",{style:{alignSelf:"center",fontSize:13,color:"var(--uiws-text-muted)"},children:[e+1," / ",t]}),s.jsx(oe,{variant:"ghost",disabled:e>=t-1,onClick:()=>n(e+1),children:"다음"})]})}function zl({yn:e,yes:t="읽음",no:n="안읽음"}){const r=e==="Y";return s.jsx("span",{style:{fontSize:11,fontWeight:600,padding:"2px 9px",borderRadius:999,color:r?"var(--uiws-success)":"var(--uiws-text-muted)",background:r?"rgba(46,204,113,0.12)":"var(--uiws-surface-2)",border:"1px solid var(--uiws-border)"},children:r?t:n})}function jr({title:e,onClose:t,children:n,footer:r}){return s.jsx("div",{onClick:t,style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},children:s.jsxs("div",{onClick:a=>a.stopPropagation(),style:{...N1,width:"min(560px, 92vw)",maxHeight:"88vh",overflow:"auto",padding:22},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[s.jsx("h2",{style:{fontSize:17,fontWeight:700,color:"var(--uiws-text)"},children:e}),s.jsx("button",{onClick:t,style:{background:"none",border:"none",color:"var(--uiws-text-muted)",fontSize:20,cursor:"pointer"},children:"×"})]}),s.jsx("div",{children:n}),r&&s.jsx("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",marginTop:18},children:r})]})})}function nr({label:e="불러오는 중..."}){return s.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)",fontSize:13},children:e})}const WA={ONGOING:"진행중",DONE:"종료"};function cpe(){const[e,t]=O.useState([]),[n,r]=O.useState(0),[a,i]=O.useState(0),[l,o]=O.useState([]),[c,u]=O.useState(""),[f,d]=O.useState(""),[h,p]=O.useState(!1),[y,m]=O.useState(!1),[x,g]=O.useState(null),j=async()=>{p(!0);try{const w=(await AB({page:n,size:20,progressCd:c||void 0})).data.data;t(w.content??[]),i(w.totalPages??0);const A=await EB({});o(A.data.data??[])}finally{p(!1)}};O.useEffect(()=>{j()},[n,c]);const b=[{key:"workDate",header:"근무일자",width:120},{key:"title",header:"제목"},{key:"writerNm",header:"작성자",width:120},{key:"progressCd",header:"진행",width:90,render:S=>WA[S.progressCd]??S.progressCd},{key:"commentCount",header:"댓글",width:70,align:"center"}],v=async S=>{const w=await TB(S.worklogId);g(w.data.data)};return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(Fr,{title:"업무일지",subtitle:"UIWS 이식 · 업무일지 작성/조회/진행관리",actions:s.jsx(oe,{onClick:()=>m(!0),children:"+ 업무일지 작성"})}),s.jsx("div",{style:{display:"flex",gap:10,marginBottom:16,flexWrap:"wrap"},children:l.map(S=>s.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:[s.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)"},children:S.progressNm}),s.jsx("div",{style:{fontSize:24,fontWeight:700,color:"var(--uiws-primary)"},children:S.count})]},S.progressCd))}),s.jsxs(Ei,{children:[s.jsx(Oe,{value:f,onChange:d,placeholder:"제목 검색",style:{minWidth:220}}),s.jsx(oe,{variant:"ghost",onClick:()=>{r(0),j()},children:"검색"}),c&&s.jsxs(oe,{variant:"ghost",onClick:()=>u(""),children:["필터 해제: ",WA[c]??c]})]}),h?s.jsx(nr,{}):s.jsxs(s.Fragment,{children:[s.jsx(Dl,{columns:b,rows:e,rowKey:S=>S.worklogId,onRowClick:v,empty:"업무일지가 없습니다."}),s.jsx(bP,{page:n,totalPages:a,onChange:r})]}),y&&s.jsx(upe,{onClose:()=>m(!1),onSaved:()=>{m(!1),j()}}),x&&s.jsx(fpe,{detail:x,onClose:()=>g(null),onChanged:()=>{g(null),j()}})]})}function upe({onClose:e,onSaved:t}){const[n,r]=O.useState(""),[a,i]=O.useState(localStorage.getItem("cms_user")||"admin"),[l,o]=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 _B({title:n,writerId:a,workDate:l,workStatusCd:c,progressCd:"ONGOING",details:[]}),t()}catch(m){d(((y=(p=m==null?void 0:m.response)==null?void 0:p.data)==null?void 0:y.message)||"저장 실패")}};return s.jsxs(jr,{title:"업무일지 작성",onClose:e,footer:s.jsxs(s.Fragment,{children:[s.jsx(oe,{variant:"ghost",onClick:e,children:"취소"}),s.jsx(oe,{onClick:h,children:"저장"})]}),children:[s.jsx(Te,{label:"제목",children:s.jsx(Oe,{value:n,onChange:r,style:{width:"100%"}})}),s.jsx(Te,{label:"작성자 ID",children:s.jsx(Oe,{value:a,onChange:i,style:{width:"100%"}})}),s.jsx(Te,{label:"근무일자",children:s.jsx(Oe,{type:"date",value:l,onChange:o,style:{width:"100%"}})}),s.jsx(Te,{label:"근무상태 코드",children:s.jsx(Oe,{value:c,onChange:u,style:{width:"100%"}})}),f&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:f})]})}function fpe({detail:e,onClose:t,onChanged:n}){var u;const[r,a]=O.useState(""),[i,l]=O.useState(""),o=async()=>{await NB(e.worklogId),n()},c=async()=>{var f,d;l("");try{await CB(e.worklogId,r),a(""),n()}catch(h){l(((d=(f=h==null?void 0:h.response)==null?void 0:f.data)==null?void 0:d.message)||"댓글 등록 실패")}};return s.jsxs(jr,{title:e.title,onClose:t,footer:s.jsxs(s.Fragment,{children:[s.jsx(oe,{variant:"danger",onClick:o,children:"삭제"}),s.jsx(oe,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[s.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:12},children:[e.writerNm," · ",e.workDate," · ",e.progressCd]}),s.jsxs("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:["시간대별 상세 ",((u=e.details)==null?void 0:u.length)??0,"건"]}),s.jsxs("div",{style:{marginTop:14},children:[s.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:8},children:"댓글"}),(e.comments??[]).map(f=>s.jsxs("div",{style:{padding:"8px 10px",borderRadius:8,background:"var(--uiws-surface-2)",marginBottom:6,fontSize:13},children:[s.jsx("b",{children:f.writerNm})," · ",s.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:f.createdAt}),s.jsx("br",{}),f.cmtContent]},f.cmtId)),s.jsxs("div",{style:{display:"flex",gap:8,marginTop:8},children:[s.jsx(Oe,{value:r,onChange:a,placeholder:"댓글 입력(관리자/매니저)",style:{flex:1}}),s.jsx(oe,{onClick:c,children:"등록"})]}),i&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:12,marginTop:6},children:i})]})]})}const dpe=["일","월","화","수","목","금","토"];function hpe(){const[e,t]=O.useState(new Date),[n,r]=O.useState("PERSONAL"),[a,i]=O.useState([]),[l,o]=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()=>{o(!0);try{const v=await jB({type:n,view:"month",baseDate:`${h}-01`});i(v.data.data??[])}finally{o(!1)}};O.useEffect(()=>{p()},[h,n]);const m=new Date(e.getFullYear(),e.getMonth(),1).getDay(),x=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),g=[...Array(m).fill(null),...Array.from({length:x},(v,S)=>S+1)],j=v=>{const S=`${h}-${String(v).padStart(2,"0")}`;return a.filter(w=>(w.startDt??"").slice(0,10)<=S&&S<=(w.endDt??"").slice(0,10))},b=v=>t(new Date(e.getFullYear(),e.getMonth()+v,1));return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(Fr,{title:"일정",subtitle:"UIWS 이식 · 개인/부서 일정 달력",actions:s.jsx(oe,{onClick:()=>u(`${h}-01`),children:"+ 일정 등록"})}),s.jsxs(Ru,{style:{display:"flex",gap:10,alignItems:"center",marginBottom:16},children:[s.jsx(oe,{variant:"ghost",onClick:()=>b(-1),children:"‹ 이전"}),s.jsx("div",{style:{fontWeight:700,minWidth:130,textAlign:"center",color:"var(--uiws-text)"},children:h}),s.jsx(oe,{variant:"ghost",onClick:()=>b(1),children:"다음 ›"}),s.jsx("div",{style:{flex:1}}),s.jsx(oe,{variant:n==="PERSONAL"?"primary":"ghost",onClick:()=>r("PERSONAL"),children:"개인"}),s.jsx(oe,{variant:n==="DEPT"?"primary":"ghost",onClick:()=>r("DEPT"),children:"부서"})]}),l?s.jsx(nr,{}):s.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"hidden"},children:s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(7,1fr)"},children:[dpe.map((v,S)=>s.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:v},v)),g.map((v,S)=>s.jsxs("div",{onClick:()=>v&&u(`${h}-${String(v).padStart(2,"0")}`),style:{minHeight:96,padding:6,borderRight:"1px solid var(--uiws-border)",borderBottom:"1px solid var(--uiws-border)",cursor:v?"pointer":"default"},children:[v&&s.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:4},children:v}),v&&j(v).slice(0,3).map(w=>s.jsx("div",{onClick:A=>{A.stopPropagation(),wB(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&&s.jsx(ppe,{date:c,type:n,onClose:()=>u(null),onSaved:()=>{u(null),p()}}),f&&s.jsx(mpe,{detail:f,onClose:()=>d(null),onDeleted:()=>{d(null),p()}})]})}function ppe({date:e,type:t,onClose:n,onSaved:r}){const[a,i]=O.useState(""),[l,o]=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 m,x;p("");try{await SB({scheType:t,title:a,startDt:l,endDt:c,content:f,attachmentIds:[]}),r()}catch(g){p(((x=(m=g==null?void 0:g.response)==null?void 0:m.data)==null?void 0:x.message)||"저장 실패")}};return s.jsxs(jr,{title:"일정 등록",onClose:n,footer:s.jsxs(s.Fragment,{children:[s.jsx(oe,{variant:"ghost",onClick:n,children:"취소"}),s.jsx(oe,{onClick:y,children:"저장"})]}),children:[s.jsx(Te,{label:"제목",children:s.jsx(Oe,{value:a,onChange:i,style:{width:"100%"}})}),s.jsx(Te,{label:"시작(yyyy-MM-ddTHH:mm:ss)",children:s.jsx(Oe,{value:l,onChange:o,style:{width:"100%"}})}),s.jsx(Te,{label:"종료",children:s.jsx(Oe,{value:c,onChange:u,style:{width:"100%"}})}),s.jsx(Te,{label:"내용",children:s.jsx(Oe,{value:f,onChange:d,style:{width:"100%"}})}),h&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}function mpe({detail:e,onClose:t,onDeleted:n}){const r=async()=>{await OB(e.scheduleId),n()};return s.jsxs(jr,{title:e.title,onClose:t,footer:s.jsxs(s.Fragment,{children:[s.jsx(oe,{variant:"danger",onClick:r,children:"삭제"}),s.jsx(oe,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[s.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:8},children:[e.scheType," · ",e.startDt," ~ ",e.endDt]}),s.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)"},children:e.content||"내용 없음"})]})}function ype(){const[e,t]=O.useState("received"),[n,r]=O.useState([]),[a,i]=O.useState(0),[l,o]=O.useState(0),[c,u]=O.useState(""),[f,d]=O.useState(!1),[h,p]=O.useState(!1),[y,m]=O.useState(null),x=async()=>{d(!0);try{const w=(await(e==="received"?bB:vB)({page:a,size:20,titleKeyword:c||void 0})).data.data;r(w.content??[]),o(w.totalPages??0)}finally{d(!1)}};O.useEffect(()=>{x()},[e,a]);const g=[{key:"title",header:"제목"},{key:"senderNm",header:"보낸사람",width:130},{key:"sentAt",header:"받은시각",width:170},{key:"readYn",header:"상태",width:90,render:v=>s.jsx(zl,{yn:v.readYn})}],j=[{key:"title",header:"제목"},{key:"receiverSummary",header:"받는사람",width:160},{key:"open",header:"개봉",width:100,align:"center",render:v=>`${v.openCount}/${v.totalCount}`},{key:"sentAt",header:"보낸시각",width:170}],b=async v=>{const S=e==="received"?await xB(v.messageId):await gB(v.messageId);m({...S.data.data,_tab:e}),e==="received"&&x()};return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(Fr,{title:"쪽지",subtitle:"UIWS 이식 · 사내 쪽지 송수신",actions:s.jsx(oe,{onClick:()=>p(!0),children:"+ 쪽지 보내기"})}),s.jsxs(Ei,{children:[s.jsx(oe,{variant:e==="received"?"primary":"ghost",onClick:()=>{t("received"),i(0)},children:"받은쪽지함"}),s.jsx(oe,{variant:e==="sent"?"primary":"ghost",onClick:()=>{t("sent"),i(0)},children:"보낸쪽지함"}),s.jsx("div",{style:{flex:1}}),s.jsx(Oe,{value:c,onChange:u,placeholder:"제목 검색",style:{minWidth:200}}),s.jsx(oe,{variant:"ghost",onClick:()=>{i(0),x()},children:"검색"})]}),f?s.jsx(nr,{}):s.jsxs(s.Fragment,{children:[s.jsx(Dl,{columns:e==="received"?g:j,rows:n,rowKey:v=>v.messageId,onRowClick:b,empty:"쪽지가 없습니다."}),s.jsx(bP,{page:a,totalPages:l,onChange:i})]}),h&&s.jsx(vpe,{onClose:()=>p(!1),onSent:()=>{p(!1),x()}}),y&&s.jsx(gpe,{detail:y,onClose:()=>m(null)})]})}function vpe({onClose:e,onSent:t}){const[n,r]=O.useState(""),[a,i]=O.useState(""),[l,o]=O.useState(""),[c,u]=O.useState(""),f=async()=>{var d,h;u("");try{await yB({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 s.jsxs(jr,{title:"쪽지 보내기",onClose:e,footer:s.jsxs(s.Fragment,{children:[s.jsx(oe,{variant:"ghost",onClick:e,children:"취소"}),s.jsx(oe,{onClick:f,children:"보내기"})]}),children:[s.jsx(Te,{label:"받는사람 ID",children:s.jsx(Oe,{value:n,onChange:r,style:{width:"100%"}})}),s.jsx(Te,{label:"제목",children:s.jsx(Oe,{value:a,onChange:i,style:{width:"100%"}})}),s.jsx(Te,{label:"내용",children:s.jsx(Oe,{value:l,onChange:o,style:{width:"100%"}})}),c&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:c})]})}function gpe({detail:e,onClose:t}){return s.jsxs(jr,{title:e.title,onClose:t,footer:s.jsx(oe,{variant:"ghost",onClick:t,children:"닫기"}),children:[s.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:10},children:[e._tab==="received"?`보낸사람: ${e.senderNm}`:`개봉 ${e.openCount}/${e.totalCount}`," · ",e.sentAt]}),s.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)",whiteSpace:"pre-wrap"},children:e.content}),e._tab==="sent"&&e.receivers&&s.jsxs("div",{style:{marginTop:14},children:[s.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:"수신자 개봉현황"}),e.receivers.map((n,r)=>s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:13,padding:"4px 0"},children:[s.jsxs("span",{children:[n.receiverNm," (",n.rcvType,")"]}),s.jsx(zl,{yn:n.readYn})]},r))]})]})}function bpe(){const[e,t]=O.useState("personal"),[n,r]=O.useState(null),[a,i]=O.useState(!1),l=new Date().toISOString().slice(0,10),o=new Date(Date.now()-6*864e5).toISOString().slice(0,10),[c,u]=O.useState(o),[f,d]=O.useState(l),h=async()=>{i(!0);try{const m=await(e==="personal"?MB:kB)({fromDate:c,toDate:f});r(m.data.data)}finally{i(!1)}};O.useEffect(()=>{h()},[e]);const p=n?[...n.fixedColumns,...n.dynamicColumns]:[];return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(Fr,{title:"업무통계",subtitle:"UIWS 이식 · 근무현황 동적 피벗"}),s.jsxs(Ei,{children:[s.jsx(oe,{variant:e==="personal"?"primary":"ghost",onClick:()=>t("personal"),children:"개인별 근무현황"}),s.jsx(oe,{variant:e==="company"?"primary":"ghost",onClick:()=>t("company"),children:"업체별 근무현황"}),s.jsx("div",{style:{flex:1}}),s.jsx(Oe,{type:"date",value:c,onChange:u}),s.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:"~"}),s.jsx(Oe,{type:"date",value:f,onChange:d}),s.jsx(oe,{variant:"ghost",onClick:h,children:"조회"})]}),a?s.jsx(nr,{}):!n||n.rows.length===0?s.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:"집계 데이터가 없습니다."}):s.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"auto"},children:s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[s.jsx("thead",{children:s.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:p.map(y=>s.jsx("th",{style:{padding:"11px 14px",textAlign:"left",fontSize:12,fontWeight:600,color:"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)",whiteSpace:"nowrap"},children:y.label},y.key))})}),s.jsx("tbody",{children:n.rows.map((y,m)=>s.jsx("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:p.map(x=>s.jsx("td",{style:{padding:"10px 14px"},children:String(y[x.key]??"")},x.key))},m))})]})})]})}function Ub(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 xpe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(!1),[l,o]=O.useState(""),[c,u]=O.useState(new Set),[f,d]=O.useState(null),[h,p]=O.useState(!1),y=async(j=n)=>{var b;i(!0),o("");try{const v=await $B(j||void 0);t(((b=v.data.data)==null?void 0:b.content)??[]),u(new Set)}catch(v){o(Ub(v))}finally{i(!1)}};O.useEffect(()=>{y("")},[]);const m=j=>u(b=>{const v=new Set(b);return v.has(j)?v.delete(j):v.add(j),v}),x=async()=>{if(c.size!==0&&window.confirm(`선택한 권한 ${c.size}건을 삭제하시겠습니까?`))try{await DB([...c]),await y()}catch(j){o(Ub(j))}},g=[{key:"sel",header:"",width:44,align:"center",render:j=>s.jsx("input",{type:"checkbox",checked:c.has(j.roleId),onClick:b=>b.stopPropagation(),onChange:()=>m(j.roleId)})},{key:"roleId",header:"권한ID",width:180},{key:"roleNm",header:"권한명"},{key:"roleDesc",header:"설명"},{key:"useYn",header:"사용",width:80,align:"center",render:j=>s.jsx(zl,{yn:j.useYn,yes:"사용",no:"미사용"})}];return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(Fr,{title:"권한 관리",subtitle:"시스템관리(권한) · 역할(Role) 등록/수정/삭제 — RBAC",actions:s.jsxs(s.Fragment,{children:[s.jsx(oe,{variant:"danger",onClick:x,disabled:c.size===0,children:"선택 삭제"}),s.jsx(oe,{onClick:()=>{d(null),p(!0)},children:"+ 권한 등록"})]})}),l&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:l}),s.jsxs(Ei,{children:[s.jsx(Oe,{value:n,onChange:r,placeholder:"권한ID/권한명 검색",style:{minWidth:240}}),s.jsx(oe,{variant:"ghost",onClick:()=>y(),children:"검색"})]}),a?s.jsx(nr,{}):s.jsx(Dl,{columns:g,rows:e,rowKey:j=>j.roleId,onRowClick:j=>{d(j),p(!0)},empty:"등록된 권한이 없습니다."}),h&&s.jsx(jpe,{role:f,onClose:()=>p(!1),onSaved:()=>{p(!1),y()}})]})}function jpe({role:e,onClose:t,onSaved:n}){const r=!!e,[a,i]=O.useState((e==null?void 0:e.roleId)??""),[l,o]=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 m={roleId:a,roleNm:l,roleDesc:c,useYn:f};r?await RB(a,m):await PB(m),n()}catch(m){p(Ub(m))}};return s.jsxs(jr,{title:r?"권한 수정":"권한 등록",onClose:t,footer:s.jsxs(s.Fragment,{children:[s.jsx(oe,{variant:"ghost",onClick:t,children:"취소"}),s.jsx(oe,{onClick:y,children:"저장"})]}),children:[s.jsx(Te,{label:"권한ID",children:s.jsx(Oe,{value:a,onChange:i,style:{width:"100%",opacity:r?.6:1}})}),s.jsx(Te,{label:"권한명",children:s.jsx(Oe,{value:l,onChange:o,style:{width:"100%"}})}),s.jsx(Te,{label:"설명",children:s.jsx(Oe,{value:c,onChange:u,style:{width:"100%"}})}),s.jsx(Te,{label:"사용 여부",children:s.jsxs("select",{value:f,onChange:m=>d(m.target.value),style:{width:"100%",padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)"},children:[s.jsx("option",{value:"Y",children:"사용"}),s.jsx("option",{value:"N",children:"미사용"})]})}),h&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}function ev(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 Spe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState([]),[l,o]=O.useState(!1),[c,u]=O.useState(!1),[f,d]=O.useState(!1),[h,p]=O.useState(""),[y,m]=O.useState("");O.useEffect(()=>{o(!0),zB().then(b=>{var S;const v=((S=b.data.data)==null?void 0:S.content)??[];t(v),v.length>0&&r(v[0].roleId)}).catch(b=>m(ev(b))).finally(()=>o(!1))},[]),O.useEffect(()=>{n&&(u(!0),p(""),m(""),LB(n).then(b=>i(b.data.data??[])).catch(b=>m(ev(b))).finally(()=>u(!1)))},[n]);const x=(b,v)=>i(S=>S.map(w=>{if(w.menuId!==b)return w;const A=w[v]==="Y"?"N":"Y";return v==="writeYn"&&A==="Y"?{...w,writeYn:"Y",readYn:"Y"}:v==="readYn"&&A==="N"?{...w,readYn:"N",writeYn:"N"}:{...w,[v]:A}})),g=(b,v)=>i(S=>S.map(w=>v&&b==="writeYn"?{...w,writeYn:"Y",readYn:"Y"}:!v&&b==="readYn"?{...w,readYn:"N",writeYn:"N"}:{...w,[b]:v?"Y":"N"})),j=async()=>{d(!0),p(""),m("");try{await BB(n,a),p("메뉴 권한 매핑이 저장되었습니다.")}catch(b){m(ev(b))}finally{d(!1)}};return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(Fr,{title:"역할-메뉴 권한",subtitle:"시스템관리(권한) · 역할별 메뉴 접근(읽기/쓰기) 매핑 — RBAC 핵심",actions:s.jsx(oe,{onClick:j,disabled:f||!n,children:f?"저장 중...":"매핑 저장"})}),y&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:y}),h&&s.jsx("div",{style:{color:"var(--uiws-success)",fontSize:13,marginBottom:12},children:h}),s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"260px 1fr",gap:16,alignItems:"start"},children:[s.jsxs(Ru,{style:{padding:0},children:[s.jsx("div",{style:{padding:"12px 16px",fontSize:12,fontWeight:600,color:"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:"역할 목록"}),l?s.jsx(nr,{}):s.jsxs("div",{children:[e.length===0&&s.jsx("div",{style:{padding:20,fontSize:13,color:"var(--uiws-text-faint)"},children:"역할이 없습니다."}),e.map(b=>s.jsxs("div",{onClick:()=>r(b.roleId),style:{padding:"11px 16px",cursor:"pointer",fontSize:13,borderLeft:`3px solid ${n===b.roleId?"var(--uiws-primary)":"transparent"}`,background:n===b.roleId?"var(--uiws-primary-soft)":"transparent",color:n===b.roleId?"var(--uiws-primary)":"var(--uiws-text)"},children:[s.jsx("div",{style:{fontWeight:600},children:b.roleNm}),s.jsx("div",{style:{fontSize:11,color:"var(--uiws-text-muted)"},children:b.roleId})]},b.roleId))]})]}),s.jsx(Ru,{style:{padding:0,overflow:"hidden"},children:c?s.jsx(nr,{}):s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[s.jsx("thead",{children:s.jsxs("tr",{style:{background:"var(--uiws-surface-2)"},children:[s.jsx("th",{style:{textAlign:"left",padding:"11px 14px",color:"var(--uiws-text-muted)",fontWeight:600,fontSize:12,borderBottom:"1px solid var(--uiws-border)"},children:"메뉴"}),s.jsxs("th",{style:{width:120,padding:"8px 14px",color:"var(--uiws-text-muted)",fontSize:12,borderBottom:"1px solid var(--uiws-border)"},children:["읽기",s.jsx("br",{}),s.jsxs("label",{style:{fontWeight:400,fontSize:11},children:[s.jsx("input",{type:"checkbox",onChange:b=>g("readYn",b.target.checked)})," 전체"]})]}),s.jsxs("th",{style:{width:120,padding:"8px 14px",color:"var(--uiws-text-muted)",fontSize:12,borderBottom:"1px solid var(--uiws-border)"},children:["쓰기",s.jsx("br",{}),s.jsxs("label",{style:{fontWeight:400,fontSize:11},children:[s.jsx("input",{type:"checkbox",onChange:b=>g("writeYn",b.target.checked)})," 전체"]})]})]})}),s.jsx("tbody",{children:a.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:3,style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:"매핑 가능한 메뉴가 없습니다."})}):a.map(b=>s.jsxs("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:[s.jsxs("td",{style:{padding:"11px 14px"},children:[b.menuNm," ",s.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontSize:12},children:["(",b.menuId,")"]})]}),s.jsx("td",{style:{padding:"11px 14px",textAlign:"center"},children:s.jsx("input",{type:"checkbox",checked:b.readYn==="Y",onChange:()=>x(b.menuId,"readYn")})}),s.jsx("td",{style:{padding:"11px 14px",textAlign:"center"},children:s.jsx("input",{type:"checkbox",checked:b.writeYn==="Y",onChange:()=>x(b.menuId,"writeYn")})})]},b.menuId))})]})})]})]})}function jd(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 wpe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(null),[l,o]=O.useState(""),[c,u]=O.useState(!1),[f,d]=O.useState(!1),[h,p]=O.useState(""),[y,m]=O.useState({open:!1,edit:null}),x=async(v="")=>{var S;u(!0),p("");try{const A=((S=(await IB(v||void 0)).data.data)==null?void 0:S.content)??[];t(A),!n&&A.length>0&&r(A[0].grpCd)}catch(w){p(jd(w))}finally{u(!1)}};O.useEffect(()=>{x("")},[]);const g=async(v=n)=>{if(!v){i(null);return}d(!0);try{const w=(await UB(v)).data.data;i(w?{...w,values:w.values??[]}:null)}catch(S){p(jd(S))}finally{d(!1)}};O.useEffect(()=>{g()},[n]);const j=async v=>{if(window.confirm(`코드그룹 '${v}' 와 하위 코드를 삭제하시겠습니까?`))try{await FB(v),n===v&&(r(""),i(null)),await x(l)}catch(S){p(jd(S))}},b=[{key:"codeVal",header:"코드값",width:170},{key:"codeNm",header:"코드명"},{key:"sortOrd",header:"정렬",width:70,align:"center"},{key:"useYn",header:"사용",width:80,align:"center",render:v=>s.jsx(zl,{yn:v.useYn,yes:"사용",no:"미사용"})}];return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(Fr,{title:"공통코드 관리",subtitle:"시스템관리(권한) · 코드그룹/코드값 일괄 CRUD",actions:s.jsx(oe,{onClick:()=>m({open:!0,edit:null}),children:"+ 코드그룹 등록"})}),h&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:h}),s.jsxs(Ei,{children:[s.jsx(Oe,{value:l,onChange:o,placeholder:"코드그룹 검색",style:{minWidth:220}}),s.jsx(oe,{variant:"ghost",onClick:()=>x(l),children:"검색"})]}),s.jsxs("div",{style:{display:"grid",gridTemplateColumns:"300px 1fr",gap:16,alignItems:"start"},children:[s.jsxs(Ru,{style:{padding:0},children:[s.jsx("div",{style:{padding:"12px 16px",fontSize:12,fontWeight:600,color:"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:"코드그룹"}),c?s.jsx(nr,{}):s.jsxs("div",{children:[e.length===0&&s.jsx("div",{style:{padding:20,fontSize:13,color:"var(--uiws-text-faint)"},children:"코드그룹이 없습니다."}),e.map(v=>s.jsxs("div",{onClick:()=>r(v.grpCd),style:{padding:"11px 16px",cursor:"pointer",fontSize:13,display:"flex",justifyContent:"space-between",alignItems:"center",borderLeft:`3px solid ${n===v.grpCd?"var(--uiws-primary)":"transparent"}`,background:n===v.grpCd?"var(--uiws-primary-soft)":"transparent"},children:[s.jsxs("div",{children:[s.jsx("div",{style:{fontWeight:600,color:n===v.grpCd?"var(--uiws-primary)":"var(--uiws-text)"},children:v.grpNm}),s.jsx("div",{style:{fontSize:11,color:"var(--uiws-text-muted)"},children:v.grpCd})]}),s.jsx("div",{style:{display:"flex",gap:6},onClick:S=>S.stopPropagation(),children:s.jsx(oe,{variant:"ghost",onClick:()=>j(v.grpCd),children:"삭제"})})]},v.grpCd))]})]}),s.jsxs("div",{children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:12},children:[s.jsxs("div",{style:{fontSize:14,fontWeight:600,color:"var(--uiws-text)"},children:["코드값 ",n&&s.jsxs("span",{style:{color:"var(--uiws-text-muted)",fontWeight:400},children:["(",n,")"]})]}),s.jsx(oe,{onClick:()=>a&&m({open:!0,edit:a}),disabled:!a,children:"그룹·코드값 편집"})]}),f?s.jsx(nr,{}):s.jsx(Dl,{columns:b,rows:(a==null?void 0:a.values)??[],rowKey:v=>`${n}:${v.codeVal}`,empty:n?"코드값이 없습니다.":"코드그룹을 선택하세요."})]})]}),y.open&&s.jsx(Ape,{grp:y.edit,onClose:()=>m({open:!1,edit:null}),onSaved:async v=>{m({open:!1,edit:null}),await x(l),v?(r(v),await g(v)):await g()}})]})}function Ope({value:e,onChange:t}){return s.jsxs("select",{value:e,onChange:n=>t(n.target.value),style:{width:"100%",padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)"},children:[s.jsx("option",{value:"Y",children:"사용"}),s.jsx("option",{value:"N",children:"미사용"})]})}function Ape({grp:e,onClose:t,onSaved:n}){const r=!!e,[a,i]=O.useState((e==null?void 0:e.grpCd)??""),[l,o]=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(b=>({...b})):[]),[h,p]=O.useState(""),y=()=>d(b=>[...b,{codeVal:"",codeNm:"",sortOrd:b.length+1,useYn:"Y"}]),m=(b,v,S)=>d(w=>w.map((A,_)=>_===b?{...A,[v]:S}:A)),x=b=>d(v=>v.filter((S,w)=>w!==b)),g=async()=>{if(p(""),!r&&!a.trim()){p("그룹코드는 필수입니다.");return}if(!l.trim()){p("그룹명은 필수입니다.");return}for(const b of f)if(!b.codeVal.trim()||!b.codeNm.trim()){p("코드값과 코드명은 필수입니다.");return}try{const b={grpCd:a,grpNm:l,useYn:c,values:f.map(v=>({grpCd:a,codeVal:v.codeVal,codeNm:v.codeNm,sortOrd:Number(v.sortOrd)||0,useYn:v.useYn}))};r?await qB(a,b):await HB(b),n(a)}catch(b){p(jd(b))}},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 s.jsxs(jr,{title:r?"코드그룹·코드값 편집":"코드그룹 등록",onClose:t,footer:s.jsxs(s.Fragment,{children:[s.jsx(oe,{variant:"ghost",onClick:t,children:"취소"}),s.jsx(oe,{onClick:g,children:"저장"})]}),children:[s.jsx(Te,{label:"그룹코드",children:s.jsx(Oe,{value:a,onChange:i,style:{width:"100%",opacity:r?.6:1}})}),s.jsx(Te,{label:"그룹명",children:s.jsx(Oe,{value:l,onChange:o,style:{width:"100%"}})}),s.jsx(Te,{label:"사용 여부",children:s.jsx(Ope,{value:c,onChange:u})}),s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:8,marginBottom:8},children:[s.jsxs("div",{style:{fontSize:12,fontWeight:600,color:"var(--uiws-text-muted)"},children:["코드값 (",f.length,")"]}),s.jsx(oe,{variant:"ghost",onClick:y,children:"+ 코드값 추가"})]}),s.jsx("div",{style:{border:"1px solid var(--uiws-border)",borderRadius:8,overflow:"hidden"},children:s.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12,color:"var(--uiws-text)"},children:[s.jsx("thead",{children:s.jsxs("tr",{style:{background:"var(--uiws-surface-2)"},children:[s.jsx("th",{style:{padding:"7px 8px",textAlign:"left",color:"var(--uiws-text-muted)",fontWeight:600},children:"코드값"}),s.jsx("th",{style:{padding:"7px 8px",textAlign:"left",color:"var(--uiws-text-muted)",fontWeight:600},children:"코드명"}),s.jsx("th",{style:{padding:"7px 8px",width:64,color:"var(--uiws-text-muted)",fontWeight:600},children:"정렬"}),s.jsx("th",{style:{padding:"7px 8px",width:76,color:"var(--uiws-text-muted)",fontWeight:600},children:"사용"}),s.jsx("th",{style:{padding:"7px 8px",width:44}})]})}),s.jsx("tbody",{children:f.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:5,style:{padding:16,textAlign:"center",color:"var(--uiws-text-faint)"},children:"코드값이 없습니다."})}):f.map((b,v)=>s.jsxs("tr",{style:{borderTop:"1px solid var(--uiws-border)"},children:[s.jsx("td",{style:{padding:"5px 8px"},children:s.jsx("input",{value:b.codeVal,onChange:S=>m(v,"codeVal",S.target.value),style:j})}),s.jsx("td",{style:{padding:"5px 8px"},children:s.jsx("input",{value:b.codeNm,onChange:S=>m(v,"codeNm",S.target.value),style:j})}),s.jsx("td",{style:{padding:"5px 8px"},children:s.jsx("input",{type:"number",value:String(b.sortOrd),onChange:S=>m(v,"sortOrd",Number(S.target.value)||0),style:j})}),s.jsx("td",{style:{padding:"5px 8px"},children:s.jsxs("select",{value:b.useYn,onChange:S=>m(v,"useYn",S.target.value),style:j,children:[s.jsx("option",{value:"Y",children:"사용"}),s.jsx("option",{value:"N",children:"미사용"})]})}),s.jsx("td",{style:{padding:"5px 8px",textAlign:"center"},children:s.jsx("button",{onClick:()=>x(v),style:{background:"none",border:"none",color:"var(--uiws-danger)",cursor:"pointer",fontSize:16},children:"×"})})]},v))})]})}),h&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginTop:10},children:h})]})}function Hb(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 Epe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(!1),[l,o]=O.useState(""),[c,u]=O.useState({open:!1,edit:null}),f=async(y="")=>{var m;i(!0),o("");try{if(y){const x=await YB(y);t(x.data.data??[])}else{const x=await GB();t(((m=x.data.data)==null?void 0:m.content)??[])}}catch(x){o(Hb(x))}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)),m=[];for(const g of y)m.push({menu:g,depth:0}),e.filter(j=>j.parentMenuId===g.menuId).sort((j,b)=>(j.sortOrd??0)-(b.sortOrd??0)).forEach(j=>m.push({menu:j,depth:1}));const x=new Set(m.map(g=>g.menu.menuId));return e.filter(g=>!x.has(g.menuId)).forEach(g=>m.push({menu:g,depth:0})),m.map(g=>({...g.menu,_depth:g.depth}))},[e]),h=async y=>{if(window.confirm(`메뉴 '${y.menuNm}' 를 삭제하시겠습니까?`))try{await XB([y.menuId]),await f(n)}catch(m){o(Hb(m))}},p=[{key:"menuNm",header:"메뉴명",render:y=>s.jsxs("span",{style:{paddingLeft:y._depth*22},children:[y._depth>0&&s.jsx("span",{style:{color:"var(--uiws-text-faint)"},children:"└ "}),y.menuNm," ",s.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=>s.jsx(zl,{yn:y.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:y=>s.jsx(oe,{variant:"ghost",onClick:()=>h(y),children:"삭제"})}];return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(Fr,{title:"메뉴 관리",subtitle:"시스템관리(권한) · 메뉴 트리(2-depth) 등록/수정/삭제",actions:s.jsx(oe,{onClick:()=>u({open:!0,edit:null}),children:"+ 메뉴 등록"})}),l&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:l}),s.jsxs(Ei,{children:[s.jsx(Oe,{value:n,onChange:r,placeholder:"메뉴명 검색",style:{minWidth:220}}),s.jsx(oe,{variant:"ghost",onClick:()=>f(n),children:"검색"})]}),a?s.jsx(nr,{}):s.jsx(Dl,{columns:p,rows:d,rowKey:y=>y.menuId,onRowClick:y=>u({open:!0,edit:y}),empty:"등록된 메뉴가 없습니다."}),c.open&&s.jsx(_pe,{menu:c.edit,parents:e.filter(y=>!y.parentMenuId),onClose:()=>u({open:!1,edit:null}),onSaved:()=>{u({open:!1,edit:null}),f(n)}})]})}function _pe({menu:e,parents:t,onClose:n,onSaved:r}){const a=!!e,[i,l]=O.useState((e==null?void 0:e.menuId)??""),[o,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)??""),[m,x]=O.useState(String((e==null?void 0:e.sortOrd)??0)),[g,j]=O.useState((e==null?void 0:e.useYn)??"Y"),[b,v]=O.useState(""),S=async()=>{if(v(""),!a&&!i.trim()){v("메뉴ID는 필수입니다.");return}if(!o.trim()){v("메뉴명은 필수입니다.");return}try{const A={menuId:i,menuNm:o,parentMenuId:u||null,programId:d||null,menuUrl:p||null,sortOrd:Number(m)||0,useYn:g};a?await KB(i,A):await VB(A),r()}catch(A){v(Hb(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 s.jsxs(jr,{title:a?"메뉴 수정":"메뉴 등록",onClose:n,footer:s.jsxs(s.Fragment,{children:[s.jsx(oe,{variant:"ghost",onClick:n,children:"취소"}),s.jsx(oe,{onClick:S,children:"저장"})]}),children:[s.jsx(Te,{label:"메뉴ID",children:s.jsx(Oe,{value:i,onChange:l,style:{width:"100%",opacity:a?.6:1}})}),s.jsx(Te,{label:"메뉴명",children:s.jsx(Oe,{value:o,onChange:c,style:{width:"100%"}})}),s.jsx(Te,{label:"상위 메뉴",children:s.jsxs("select",{value:u??"",onChange:A=>f(A.target.value),style:w,children:[s.jsx("option",{value:"",children:"(최상위)"}),t.filter(A=>A.menuId!==i).map(A=>s.jsxs("option",{value:A.menuId,children:[A.menuNm," (",A.menuId,")"]},A.menuId))]})}),s.jsx(Te,{label:"프로그램ID",children:s.jsx(Oe,{value:d??"",onChange:h,style:{width:"100%"}})}),s.jsx(Te,{label:"메뉴 URL",children:s.jsx(Oe,{value:p??"",onChange:y,style:{width:"100%"}})}),s.jsx(Te,{label:"정렬순서",children:s.jsx(Oe,{type:"number",value:m,onChange:x,style:{width:"100%"}})}),s.jsx(Te,{label:"사용 여부",children:s.jsxs("select",{value:g,onChange:A=>j(A.target.value),style:w,children:[s.jsx("option",{value:"Y",children:"사용"}),s.jsx("option",{value:"N",children:"미사용"})]})}),b&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:b})]})}function qb(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 Tpe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(!1),[l,o]=O.useState(""),[c,u]=O.useState({open:!1,edit:null}),f=async(y="")=>{var m;i(!0),o("");try{const x=await WB(y||void 0);t(((m=x.data.data)==null?void 0:m.content)??[])}catch(x){o(qb(x))}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)),m=[];for(const g of y)m.push({...g,_depth:0}),e.filter(j=>j.parentDeptId===g.deptId).sort((j,b)=>(j.sortOrd??0)-(b.sortOrd??0)).forEach(j=>m.push({...j,_depth:1}));const x=new Set(m.map(g=>g.deptId));return e.filter(g=>!x.has(g.deptId)).forEach(g=>m.push({...g,_depth:0})),m},[e]),h=async y=>{if(window.confirm(`부서 '${y.deptNm}' 를 삭제하시겠습니까?`))try{await JB(y.deptId),await f(n)}catch(m){o(qb(m))}},p=[{key:"deptNm",header:"부서명",render:y=>s.jsxs("span",{style:{paddingLeft:y._depth*22},children:[y._depth>0&&s.jsx("span",{style:{color:"var(--uiws-text-faint)"},children:"└ "}),y.deptNm," ",s.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=>s.jsx(zl,{yn:y.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:y=>s.jsx(oe,{variant:"ghost",onClick:()=>h(y),children:"삭제"})}];return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(Fr,{title:"부서 관리",subtitle:"시스템관리(권한) · 부서 트리(2-depth) 등록/수정/삭제",actions:s.jsx(oe,{onClick:()=>u({open:!0,edit:null}),children:"+ 부서 등록"})}),l&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:l}),s.jsxs(Ei,{children:[s.jsx(Oe,{value:n,onChange:r,placeholder:"부서명 검색",style:{minWidth:220}}),s.jsx(oe,{variant:"ghost",onClick:()=>f(n),children:"검색"})]}),a?s.jsx(nr,{}):s.jsx(Dl,{columns:p,rows:d,rowKey:y=>y.deptId,onRowClick:y=>u({open:!0,edit:y}),empty:"등록된 부서가 없습니다."}),c.open&&s.jsx(Npe,{dept:c.edit,parents:e.filter(y=>!y.parentDeptId),onClose:()=>u({open:!1,edit:null}),onSaved:()=>{u({open:!1,edit:null}),f(n)}})]})}function Npe({dept:e,parents:t,onClose:n,onSaved:r}){const a=!!e,[i,l]=O.useState((e==null?void 0:e.deptId)??""),[o,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"),[m,x]=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(x(""),!a&&!i.trim()){x("부서ID는 필수입니다.");return}if(!o.trim()){x("부서명은 필수입니다.");return}try{const b={deptId:i,deptNm:o,parentDeptId:u||null,sortOrd:Number(d)||0,useYn:p};a?await ZB(i,b):await QB(b),r()}catch(b){x(qb(b))}};return s.jsxs(jr,{title:a?"부서 수정":"부서 등록",onClose:n,footer:s.jsxs(s.Fragment,{children:[s.jsx(oe,{variant:"ghost",onClick:n,children:"취소"}),s.jsx(oe,{onClick:j,children:"저장"})]}),children:[s.jsx(Te,{label:"부서ID",children:s.jsx(Oe,{value:i,onChange:l,style:{width:"100%",opacity:a?.6:1}})}),s.jsx(Te,{label:"부서명",children:s.jsx(Oe,{value:o,onChange:c,style:{width:"100%"}})}),s.jsx(Te,{label:"상위 부서",children:s.jsxs("select",{value:u??"",onChange:b=>f(b.target.value),style:g,children:[s.jsx("option",{value:"",children:"(최상위)"}),t.filter(b=>b.deptId!==i).map(b=>s.jsxs("option",{value:b.deptId,children:[b.deptNm," (",b.deptId,")"]},b.deptId))]})}),s.jsx(Te,{label:"정렬순서",children:s.jsx(Oe,{type:"number",value:d,onChange:h,style:{width:"100%"}})}),s.jsx(Te,{label:"사용 여부",children:s.jsxs("select",{value:p,onChange:b=>y(b.target.value),style:g,children:[s.jsx("option",{value:"Y",children:"사용"}),s.jsx("option",{value:"N",children:"미사용"})]})}),m&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:m})]})}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 Cpe(){const[e,t]=O.useState([]),[n,r]=O.useState(""),[a,i]=O.useState(!1),[l,o]=O.useState(""),[c,u]=O.useState({open:!1,edit:null}),f=async(p="")=>{var y;i(!0),o("");try{const m=await eI(p||void 0);t(((y=m.data.data)==null?void 0:y.content)??[])}catch(m){o(Fb(m))}finally{i(!1)}};O.useEffect(()=>{f("")},[]);const d=async p=>{if(window.confirm(`거래처 '${p.companyNm}' 를 삭제하시겠습니까?`))try{await rI([p.companyId]),await f(n)}catch(y){o(Fb(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=>s.jsx(zl,{yn:p.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:60,align:"center",render:p=>s.jsx(oe,{variant:"ghost",onClick:()=>d(p),children:"삭제"})}];return s.jsxs("div",{className:"uiws-scope",children:[s.jsx(Fr,{title:"거래처 관리",subtitle:"시스템관리(권한) · 거래처(근무처) 등록/수정/삭제",actions:s.jsx(oe,{onClick:()=>u({open:!0,edit:null}),children:"+ 거래처 등록"})}),l&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13,marginBottom:12},children:l}),s.jsxs(Ei,{children:[s.jsx(Oe,{value:n,onChange:r,placeholder:"거래처명 검색",style:{minWidth:220}}),s.jsx(oe,{variant:"ghost",onClick:()=>f(n),children:"검색"})]}),a?s.jsx(nr,{}):s.jsx(Dl,{columns:h,rows:e,rowKey:p=>p.companyId,onRowClick:p=>u({open:!0,edit:p}),empty:"등록된 거래처가 없습니다."}),c.open&&s.jsx(Mpe,{company:c.edit,onClose:()=>u({open:!1,edit:null}),onSaved:()=>{u({open:!1,edit:null}),f(n)}})]})}function Mpe({company:e,onClose:t,onSaved:n}){const r=!!e,[a,i]=O.useState((e==null?void 0:e.companyId)??""),[l,o]=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 m={companyId:a,companyNm:l,bizNo:c||null,useYn:f};r?await nI(a,m):await tI(m),n()}catch(m){p(Fb(m))}};return s.jsxs(jr,{title:r?"거래처 수정":"거래처 등록",onClose:t,footer:s.jsxs(s.Fragment,{children:[s.jsx(oe,{variant:"ghost",onClick:t,children:"취소"}),s.jsx(oe,{onClick:y,children:"저장"})]}),children:[s.jsx(Te,{label:"거래처ID",children:s.jsx(Oe,{value:a,onChange:i,style:{width:"100%",opacity:r?.6:1}})}),s.jsx(Te,{label:"거래처명",children:s.jsx(Oe,{value:l,onChange:o,style:{width:"100%"}})}),s.jsx(Te,{label:"사업자번호",children:s.jsx(Oe,{value:c??"",onChange:u,style:{width:"100%"}})}),s.jsx(Te,{label:"사용 여부",children:s.jsxs("select",{value:f,onChange:m=>d(m.target.value),style:{width:"100%",padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)"},children:[s.jsx("option",{value:"Y",children:"사용"}),s.jsx("option",{value:"N",children:"미사용"})]})}),h&&s.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}const kpe=new E5;function $pe(){return s.jsx(T5,{client:kpe,children:s.jsx(q4,{children:s.jsxs(b4,{children:[s.jsx(xe,{path:"/login",element:s.jsx(sI,{})}),s.jsxs(xe,{element:s.jsx(fB,{}),children:[s.jsx(xe,{path:"/dashboard",element:s.jsx(ahe,{})}),s.jsx(xe,{path:"/contents",element:s.jsx(ohe,{})}),s.jsx(xe,{path:"/contents/new",element:s.jsx(HA,{})}),s.jsx(xe,{path:"/contents/:id",element:s.jsx(HA,{})}),s.jsx(xe,{path:"/media",element:s.jsx(phe,{})}),s.jsx(xe,{path:"/products",element:s.jsx(vhe,{})}),s.jsx(xe,{path:"/banners",element:s.jsx(bhe,{})}),s.jsx(xe,{path:"/menus",element:s.jsx(jhe,{})}),s.jsx(xe,{path:"/themes",element:s.jsx(whe,{})}),s.jsx(xe,{path:"/i18n",element:s.jsx(Ohe,{})}),s.jsx(xe,{path:"/seo",element:s.jsx(_he,{})}),s.jsx(xe,{path:"/forms",element:s.jsx(Che,{})}),s.jsx(xe,{path:"/ugc",element:s.jsx(Phe,{})}),s.jsx(xe,{path:"/channels",element:s.jsx(Lhe,{})}),s.jsx(xe,{path:"/members",element:s.jsx(Ihe,{})}),s.jsx(xe,{path:"/analytics",element:s.jsx(Uhe,{})}),s.jsx(xe,{path:"/ai-tools",element:s.jsx(Hhe,{})}),s.jsx(xe,{path:"/ai-techniques",element:s.jsx(Whe,{})}),s.jsx(xe,{path:"/admin/users",element:s.jsx(Sr,{min:"SUPERADMIN",children:s.jsx(Qhe,{})})}),s.jsx(xe,{path:"/admin/audit",element:s.jsx(Sr,{min:"EDITOR",children:s.jsx(Zhe,{})})}),s.jsx(xe,{path:"/admin/settings",element:s.jsx(Sr,{min:"EDITOR",children:s.jsx(Jhe,{})})}),s.jsx(xe,{path:"/admin/ai-platform",element:s.jsx(Sr,{min:"SUPERADMIN",children:s.jsx(lpe,{})})}),s.jsx(xe,{path:"/admin/mobile-app",element:s.jsx(spe,{})}),s.jsx(xe,{path:"/uiws/worklog",element:s.jsx(Or,{children:s.jsx(cpe,{})})}),s.jsx(xe,{path:"/uiws/schedule",element:s.jsx(Or,{children:s.jsx(hpe,{})})}),s.jsx(xe,{path:"/uiws/message",element:s.jsx(Or,{children:s.jsx(ype,{})})}),s.jsx(xe,{path:"/uiws/stats",element:s.jsx(Or,{children:s.jsx(bpe,{})})}),s.jsx(xe,{path:"/uiws/system/roles",element:s.jsx(Sr,{min:"SUPERADMIN",children:s.jsx(Or,{children:s.jsx(xpe,{})})})}),s.jsx(xe,{path:"/uiws/system/role-menus",element:s.jsx(Sr,{min:"SUPERADMIN",children:s.jsx(Or,{children:s.jsx(Spe,{})})})}),s.jsx(xe,{path:"/uiws/system/codes",element:s.jsx(Sr,{min:"SUPERADMIN",children:s.jsx(Or,{children:s.jsx(wpe,{})})})}),s.jsx(xe,{path:"/uiws/system/menus",element:s.jsx(Sr,{min:"SUPERADMIN",children:s.jsx(Or,{children:s.jsx(Epe,{})})})}),s.jsx(xe,{path:"/uiws/system/depts",element:s.jsx(Sr,{min:"SUPERADMIN",children:s.jsx(Or,{children:s.jsx(Tpe,{})})})}),s.jsx(xe,{path:"/uiws/system/companies",element:s.jsx(Sr,{min:"SUPERADMIN",children:s.jsx(Or,{children:s.jsx(Cpe,{})})})})]}),s.jsx(xe,{path:"*",element:s.jsx(wN,{to:"/dashboard",replace:!0})})]})})})}const Ppe=localStorage.getItem("cms_theme");document.documentElement.setAttribute("data-theme",Ppe==="light"?"light":"dark");vD.createRoot(document.getElementById("root")).render(s.jsx(T.StrictMode,{children:s.jsx(Oz,{children:s.jsx($pe,{})})}));
