Files
boc/web-v2/dist/assets/index-CbMx-xOV.js
T
Bernt e5623d2f84 feat: integrate Grafana dashboards into BOC DashboardPage
- Add Infrastructure Health section with CPU/Memory/Disk panels
- Add Service Status section with PM2/Docker panels
- Create GrafanaPanel component for iframe embedding
- Build passes successfully
2026-07-29 19:03:06 +00:00

456 lines
943 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(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 s of a)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();var _d=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tv={exports:{}},wu={};/**
* @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 J2;function Q6(){if(J2)return wu;J2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var l=null;if(s!==void 0&&(l=""+s),a.key!==void 0&&(l=""+a.key),"key"in a){s={};for(var c in a)c!=="key"&&(s[c]=a[c])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:s}}return wu.Fragment=t,wu.jsx=n,wu.jsxs=n,wu}var eT;function J6(){return eT||(eT=1,Tv.exports=Q6()),Tv.exports}var p=J6(),Ev={exports:{}},Ce={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var tT;function e8(){if(tT)return Ce;tT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),g=Symbol.iterator;function S(L){return L===null||typeof L!="object"?null:(L=g&&L[g]||L["@@iterator"],typeof L=="function"?L:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,b={};function A(L,H,re){this.props=L,this.context=H,this.refs=b,this.updater=re||j}A.prototype.isReactComponent={},A.prototype.setState=function(L,H){if(typeof L!="object"&&typeof L!="function"&&L!=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,L,H,"setState")},A.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function _(){}_.prototype=A.prototype;function T(L,H,re){this.props=L,this.context=H,this.refs=b,this.updater=re||j}var C=T.prototype=new _;C.constructor=T,w(C,A.prototype),C.isPureReactComponent=!0;var O=Array.isArray;function E(){}var M={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function D(L,H,re){var fe=re.ref;return{$$typeof:e,type:L,key:H,ref:fe!==void 0?fe:null,props:re}}function B(L,H){return D(L.type,H,L.props)}function I(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function z(L){var H={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(re){return H[re]})}var F=/\/+/g;function X(L,H){return typeof L=="object"&&L!==null&&L.key!=null?z(""+L.key):H.toString(36)}function Y(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(E,E):(L.status="pending",L.then(function(H){L.status==="pending"&&(L.status="fulfilled",L.value=H)},function(H){L.status==="pending"&&(L.status="rejected",L.reason=H)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function $(L,H,re,fe,ve){var je=typeof L;(je==="undefined"||je==="boolean")&&(L=null);var ze=!1;if(L===null)ze=!0;else switch(je){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(L.$$typeof){case e:case t:ze=!0;break;case m:return ze=L._init,$(ze(L._payload),H,re,fe,ve)}}if(ze)return ve=ve(L),ze=fe===""?"."+X(L,0):fe,O(ve)?(re="",ze!=null&&(re=ze.replace(F,"$&/")+"/"),$(ve,H,re,"",function(Te){return Te})):ve!=null&&(I(ve)&&(ve=B(ve,re+(ve.key==null||L&&L.key===ve.key?"":(""+ve.key).replace(F,"$&/")+"/")+ze)),H.push(ve)),1;ze=0;var Xe=fe===""?".":fe+":";if(O(L))for(var ce=0;ce<L.length;ce++)fe=L[ce],je=Xe+X(fe,ce),ze+=$(fe,H,re,je,ve);else if(ce=S(L),typeof ce=="function")for(L=ce.call(L),ce=0;!(fe=L.next()).done;)fe=fe.value,je=Xe+X(fe,ce++),ze+=$(fe,H,re,je,ve);else if(je==="object"){if(typeof L.then=="function")return $(Y(L),H,re,fe,ve);throw H=String(L),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return ze}function K(L,H,re){if(L==null)return L;var fe=[],ve=0;return $(L,fe,"","",function(je){return H.call(re,je,ve++)}),fe}function Q(L){if(L._status===-1){var H=L._result;H=H(),H.then(function(re){(L._status===0||L._status===-1)&&(L._status=1,L._result=re)},function(re){(L._status===0||L._status===-1)&&(L._status=2,L._result=re)}),L._status===-1&&(L._status=0,L._result=H)}if(L._status===1)return L._result.default;throw L._result}var ie=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},se={map:K,forEach:function(L,H,re){K(L,function(){H.apply(this,arguments)},re)},count:function(L){var H=0;return K(L,function(){H++}),H},toArray:function(L){return K(L,function(H){return H})||[]},only:function(L){if(!I(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};return Ce.Activity=y,Ce.Children=se,Ce.Component=A,Ce.Fragment=n,Ce.Profiler=a,Ce.PureComponent=T,Ce.StrictMode=r,Ce.Suspense=f,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(L){return M.H.useMemoCache(L)}},Ce.cache=function(L){return function(){return L.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(L,H,re){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var fe=w({},L.props),ve=L.key;if(H!=null)for(je in H.key!==void 0&&(ve=""+H.key),H)!k.call(H,je)||je==="key"||je==="__self"||je==="__source"||je==="ref"&&H.ref===void 0||(fe[je]=H[je]);var je=arguments.length-2;if(je===1)fe.children=re;else if(1<je){for(var ze=Array(je),Xe=0;Xe<je;Xe++)ze[Xe]=arguments[Xe+2];fe.children=ze}return D(L.type,ve,fe)},Ce.createContext=function(L){return L={$$typeof:l,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:s,_context:L},L},Ce.createElement=function(L,H,re){var fe,ve={},je=null;if(H!=null)for(fe in H.key!==void 0&&(je=""+H.key),H)k.call(H,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(ve[fe]=H[fe]);var ze=arguments.length-2;if(ze===1)ve.children=re;else if(1<ze){for(var Xe=Array(ze),ce=0;ce<ze;ce++)Xe[ce]=arguments[ce+2];ve.children=Xe}if(L&&L.defaultProps)for(fe in ze=L.defaultProps,ze)ve[fe]===void 0&&(ve[fe]=ze[fe]);return D(L,je,ve)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(L){return{$$typeof:c,render:L}},Ce.isValidElement=I,Ce.lazy=function(L){return{$$typeof:m,_payload:{_status:-1,_result:L},_init:Q}},Ce.memo=function(L,H){return{$$typeof:d,type:L,compare:H===void 0?null:H}},Ce.startTransition=function(L){var H=M.T,re={};M.T=re;try{var fe=L(),ve=M.S;ve!==null&&ve(re,fe),typeof fe=="object"&&fe!==null&&typeof fe.then=="function"&&fe.then(E,ie)}catch(je){ie(je)}finally{H!==null&&re.types!==null&&(H.types=re.types),M.T=H}},Ce.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Ce.use=function(L){return M.H.use(L)},Ce.useActionState=function(L,H,re){return M.H.useActionState(L,H,re)},Ce.useCallback=function(L,H){return M.H.useCallback(L,H)},Ce.useContext=function(L){return M.H.useContext(L)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(L,H){return M.H.useDeferredValue(L,H)},Ce.useEffect=function(L,H){return M.H.useEffect(L,H)},Ce.useEffectEvent=function(L){return M.H.useEffectEvent(L)},Ce.useId=function(){return M.H.useId()},Ce.useImperativeHandle=function(L,H,re){return M.H.useImperativeHandle(L,H,re)},Ce.useInsertionEffect=function(L,H){return M.H.useInsertionEffect(L,H)},Ce.useLayoutEffect=function(L,H){return M.H.useLayoutEffect(L,H)},Ce.useMemo=function(L,H){return M.H.useMemo(L,H)},Ce.useOptimistic=function(L,H){return M.H.useOptimistic(L,H)},Ce.useReducer=function(L,H,re){return M.H.useReducer(L,H,re)},Ce.useRef=function(L){return M.H.useRef(L)},Ce.useState=function(L){return M.H.useState(L)},Ce.useSyncExternalStore=function(L,H,re){return M.H.useSyncExternalStore(L,H,re)},Ce.useTransition=function(){return M.H.useTransition()},Ce.version="19.2.7",Ce}var nT;function rw(){return nT||(nT=1,Ev.exports=e8()),Ev.exports}var P=rw();const q=nt(P);var Nv={exports:{}},ju={},Cv={exports:{}},Mv={};/**
* @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.
*/var rT;function t8(){return rT||(rT=1,(function(e){function t($,K){var Q=$.length;$.push(K);e:for(;0<Q;){var ie=Q-1>>>1,se=$[ie];if(0<a(se,K))$[ie]=K,$[Q]=se,Q=ie;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var K=$[0],Q=$.pop();if(Q!==K){$[0]=Q;e:for(var ie=0,se=$.length,L=se>>>1;ie<L;){var H=2*(ie+1)-1,re=$[H],fe=H+1,ve=$[fe];if(0>a(re,Q))fe<se&&0>a(ve,re)?($[ie]=ve,$[fe]=Q,ie=fe):($[ie]=re,$[H]=Q,ie=H);else if(fe<se&&0>a(ve,Q))$[ie]=ve,$[fe]=Q,ie=fe;else break e}}return K}function a($,K){var Q=$.sortIndex-K.sortIndex;return Q!==0?Q:$.id-K.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var f=[],d=[],m=1,y=null,g=3,S=!1,j=!1,w=!1,b=!1,A=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function C($){for(var K=n(d);K!==null;){if(K.callback===null)r(d);else if(K.startTime<=$)r(d),K.sortIndex=K.expirationTime,t(f,K);else break;K=n(d)}}function O($){if(w=!1,C($),!j)if(n(f)!==null)j=!0,E||(E=!0,z());else{var K=n(d);K!==null&&Y(O,K.startTime-$)}}var E=!1,M=-1,k=5,D=-1;function B(){return b?!0:!(e.unstable_now()-D<k)}function I(){if(b=!1,E){var $=e.unstable_now();D=$;var K=!0;try{e:{j=!1,w&&(w=!1,_(M),M=-1),S=!0;var Q=g;try{t:{for(C($),y=n(f);y!==null&&!(y.expirationTime>$&&B());){var ie=y.callback;if(typeof ie=="function"){y.callback=null,g=y.priorityLevel;var se=ie(y.expirationTime<=$);if($=e.unstable_now(),typeof se=="function"){y.callback=se,C($),K=!0;break t}y===n(f)&&r(f),C($)}else r(f);y=n(f)}if(y!==null)K=!0;else{var L=n(d);L!==null&&Y(O,L.startTime-$),K=!1}}break e}finally{y=null,g=Q,S=!1}K=void 0}}finally{K?z():E=!1}}}var z;if(typeof T=="function")z=function(){T(I)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,X=F.port2;F.port1.onmessage=I,z=function(){X.postMessage(null)}}else z=function(){A(I,0)};function Y($,K){M=A(function(){$(e.unstable_now())},K)}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($){$.callback=null},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function($){switch(g){case 1:case 2:case 3:var K=3;break;default:K=g}var Q=g;g=K;try{return $()}finally{g=Q}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function($,K){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var Q=g;g=$;try{return K()}finally{g=Q}},e.unstable_scheduleCallback=function($,K,Q){var ie=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ie+Q:ie):Q=ie,$){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=Q+se,$={id:m++,callback:K,priorityLevel:$,startTime:Q,expirationTime:se,sortIndex:-1},Q>ie?($.sortIndex=Q,t(d,$),n(f)===null&&$===n(d)&&(w?(_(M),M=-1):w=!0,Y(O,Q-ie))):($.sortIndex=se,t(f,$),j||S||(j=!0,E||(E=!0,z()))),$},e.unstable_shouldYield=B,e.unstable_wrapCallback=function($){var K=g;return function(){var Q=g;g=K;try{return $.apply(this,arguments)}finally{g=Q}}}})(Mv)),Mv}var iT;function n8(){return iT||(iT=1,Cv.exports=t8()),Cv.exports}var Pv={exports:{}},fn={};/**
* @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 aT;function r8(){if(aT)return fn;aT=1;var e=rw();function t(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function s(f,d,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:y==null?null:""+y,children:f,containerInfo:d,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return fn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,fn.createPortal=function(f,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return s(f,d,null,m)},fn.flushSync=function(f){var d=l.T,m=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=d,r.p=m,r.d.f()}},fn.preconnect=function(f,d){typeof f=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(f,d))},fn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},fn.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var m=d.as,y=c(m,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,S=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?r.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:y,integrity:g,fetchPriority:S}):m==="script"&&r.d.X(f,{crossOrigin:y,integrity:g,fetchPriority:S,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},fn.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=c(d.as,d.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(f)},fn.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,y=c(m,d.crossOrigin);r.d.L(f,m,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},fn.preloadModule=function(f,d){if(typeof f=="string")if(d){var m=c(d.as,d.crossOrigin);r.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(f)},fn.requestFormReset=function(f){r.d.r(f)},fn.unstable_batchedUpdates=function(f,d){return f(d)},fn.useFormState=function(f,d,m){return l.H.useFormState(f,d,m)},fn.useFormStatus=function(){return l.H.useHostTransitionStatus()},fn.version="19.2.7",fn}var oT;function i8(){if(oT)return Pv.exports;oT=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Pv.exports=r8(),Pv.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 sT;function a8(){if(sT)return ju;sT=1;var e=n8(),t=rw(),n=i8();function r(i){var o="https://react.dev/errors/"+i;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)o+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function s(i){var o=i,u=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(u=o.return),i=o.return;while(i)}return o.tag===3?u:null}function l(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function c(i){if(i.tag===31){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function f(i){if(s(i)!==i)throw Error(r(188))}function d(i){var o=i.alternate;if(!o){if(o=s(i),o===null)throw Error(r(188));return o!==i?null:i}for(var u=i,h=o;;){var v=u.return;if(v===null)break;var x=v.alternate;if(x===null){if(h=v.return,h!==null){u=h;continue}break}if(v.child===x.child){for(x=v.child;x;){if(x===u)return f(v),i;if(x===h)return f(v),o;x=x.sibling}throw Error(r(188))}if(u.return!==h.return)u=v,h=x;else{for(var N=!1,R=v.child;R;){if(R===u){N=!0,u=v,h=x;break}if(R===h){N=!0,h=v,u=x;break}R=R.sibling}if(!N){for(R=x.child;R;){if(R===u){N=!0,u=x,h=v;break}if(R===h){N=!0,h=x,u=v;break}R=R.sibling}if(!N)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:o}function m(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i;for(i=i.child;i!==null;){if(o=m(i),o!==null)return o;i=i.sibling}return null}var y=Object.assign,g=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),T=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),B=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function z(i){return i===null||typeof i!="object"?null:(i=I&&i[I]||i["@@iterator"],typeof i=="function"?i:null)}var F=Symbol.for("react.client.reference");function X(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===F?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case w:return"Fragment";case A:return"Profiler";case b:return"StrictMode";case O:return"Suspense";case E:return"SuspenseList";case D:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case j:return"Portal";case T:return i.displayName||"Context";case _:return(i._context.displayName||"Context")+".Consumer";case C:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case M:return o=i.displayName||null,o!==null?o:X(i.type)||"Memo";case k:o=i._payload,i=i._init;try{return X(i(o))}catch{}}return null}var Y=Array.isArray,$=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},ie=[],se=-1;function L(i){return{current:i}}function H(i){0>se||(i.current=ie[se],ie[se]=null,se--)}function re(i,o){se++,ie[se]=i.current,i.current=o}var fe=L(null),ve=L(null),je=L(null),ze=L(null);function Xe(i,o){switch(re(je,o),re(ve,i),re(fe,null),o.nodeType){case 9:case 11:i=(i=o.documentElement)&&(i=i.namespaceURI)?w2(i):0;break;default:if(i=o.tagName,o=o.namespaceURI)o=w2(o),i=j2(o,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}H(fe),re(fe,i)}function ce(){H(fe),H(ve),H(je)}function Te(i){i.memoizedState!==null&&re(ze,i);var o=fe.current,u=j2(o,i.type);o!==u&&(re(ve,i),re(fe,u))}function Ne(i){ve.current===i&&(H(fe),H(ve)),ze.current===i&&(H(ze),gu._currentValue=Q)}var le,mt;function De(i){if(le===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);le=o&&o[1]||"",mt=-1<u.stack.indexOf(`
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
`+le+i+mt}var At=!1;function Ot(i,o){if(!i||At)return"";At=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(o){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(ee){var J=ee}Reflect.construct(i,[],oe)}else{try{oe.call()}catch(ee){J=ee}i.call(oe.prototype)}}else{try{throw Error()}catch(ee){J=ee}(oe=i())&&typeof oe.catch=="function"&&oe.catch(function(){})}}catch(ee){if(ee&&J&&typeof ee.stack=="string")return[ee.stack,J.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=h.DetermineComponentFrameRoot(),N=x[0],R=x[1];if(N&&R){var U=N.split(`
`),Z=R.split(`
`);for(v=h=0;h<U.length&&!U[h].includes("DetermineComponentFrameRoot");)h++;for(;v<Z.length&&!Z[v].includes("DetermineComponentFrameRoot");)v++;if(h===U.length||v===Z.length)for(h=U.length-1,v=Z.length-1;1<=h&&0<=v&&U[h]!==Z[v];)v--;for(;1<=h&&0<=v;h--,v--)if(U[h]!==Z[v]){if(h!==1||v!==1)do if(h--,v--,0>v||U[h]!==Z[v]){var te=`
`+U[h].replace(" at new "," at ");return i.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",i.displayName)),te}while(1<=h&&0<=v);break}}}finally{At=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?De(u):""}function un(i,o){switch(i.tag){case 26:case 27:case 5:return De(i.type);case 16:return De("Lazy");case 13:return i.child!==o&&o!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return Ot(i.type,!1);case 11:return Ot(i.type.render,!1);case 1:return Ot(i.type,!0);case 31:return De("Activity");default:return""}}function mr(i){try{var o="",u=null;do o+=un(i,u),u=i,i=i.return;while(i);return o}catch(h){return`
Error generating stack: `+h.message+`
`+h.stack}}var Dr=Object.prototype.hasOwnProperty,Bi=e.unstable_scheduleCallback,yr=e.unstable_cancelCallback,ti=e.unstable_shouldYield,Nl=e.unstable_requestPaint,cn=e.unstable_now,lf=e.unstable_getCurrentPriorityLevel,eA=e.unstable_ImmediatePriority,tA=e.unstable_UserBlockingPriority,uf=e.unstable_NormalPriority,RB=e.unstable_LowPriority,nA=e.unstable_IdlePriority,DB=e.log,kB=e.unstable_setDisableYieldValue,Cl=null,Cn=null;function qi(i){if(typeof DB=="function"&&kB(i),Cn&&typeof Cn.setStrictMode=="function")try{Cn.setStrictMode(Cl,i)}catch{}}var Mn=Math.clz32?Math.clz32:$B,LB=Math.log,zB=Math.LN2;function $B(i){return i>>>=0,i===0?32:31-(LB(i)/zB|0)|0}var cf=256,ff=262144,df=4194304;function ka(i){var o=i&42;if(o!==0)return o;switch(i&-i){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 i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function hf(i,o,u){var h=i.pendingLanes;if(h===0)return 0;var v=0,x=i.suspendedLanes,N=i.pingedLanes;i=i.warmLanes;var R=h&134217727;return R!==0?(h=R&~x,h!==0?v=ka(h):(N&=R,N!==0?v=ka(N):u||(u=R&~i,u!==0&&(v=ka(u))))):(R=h&~x,R!==0?v=ka(R):N!==0?v=ka(N):u||(u=h&~i,u!==0&&(v=ka(u)))),v===0?0:o!==0&&o!==v&&(o&x)===0&&(x=v&-v,u=o&-o,x>=u||x===32&&(u&4194048)!==0)?o:v}function Ml(i,o){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&o)===0}function BB(i,o){switch(i){case 1:case 2:case 4:case 8:case 64:return o+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 o+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 rA(){var i=df;return df<<=1,(df&62914560)===0&&(df=4194304),i}function mm(i){for(var o=[],u=0;31>u;u++)o.push(i);return o}function Pl(i,o){i.pendingLanes|=o,o!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function qB(i,o,u,h,v,x){var N=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var R=i.entanglements,U=i.expirationTimes,Z=i.hiddenUpdates;for(u=N&~u;0<u;){var te=31-Mn(u),oe=1<<te;R[te]=0,U[te]=-1;var J=Z[te];if(J!==null)for(Z[te]=null,te=0;te<J.length;te++){var ee=J[te];ee!==null&&(ee.lane&=-536870913)}u&=~oe}h!==0&&iA(i,h,0),x!==0&&v===0&&i.tag!==0&&(i.suspendedLanes|=x&~(N&~o))}function iA(i,o,u){i.pendingLanes|=o,i.suspendedLanes&=~o;var h=31-Mn(o);i.entangledLanes|=o,i.entanglements[h]=i.entanglements[h]|1073741824|u&261930}function aA(i,o){var u=i.entangledLanes|=o;for(i=i.entanglements;u;){var h=31-Mn(u),v=1<<h;v&o|i[h]&o&&(i[h]|=o),u&=~v}}function oA(i,o){var u=o&-o;return u=(u&42)!==0?1:ym(u),(u&(i.suspendedLanes|o))!==0?0:u}function ym(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function vm(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function sA(){var i=K.p;return i!==0?i:(i=window.event,i===void 0?32:F2(i.type))}function lA(i,o){var u=K.p;try{return K.p=i,o()}finally{K.p=u}}var Ii=Math.random().toString(36).slice(2),en="__reactFiber$"+Ii,Sn="__reactProps$"+Ii,Lo="__reactContainer$"+Ii,gm="__reactEvents$"+Ii,IB="__reactListeners$"+Ii,UB="__reactHandles$"+Ii,uA="__reactResources$"+Ii,Rl="__reactMarker$"+Ii;function xm(i){delete i[en],delete i[Sn],delete i[gm],delete i[IB],delete i[UB]}function zo(i){var o=i[en];if(o)return o;for(var u=i.parentNode;u;){if(o=u[Lo]||u[en]){if(u=o.alternate,o.child!==null||u!==null&&u.child!==null)for(i=C2(i);i!==null;){if(u=i[en])return u;i=C2(i)}return o}i=u,u=i.parentNode}return null}function $o(i){if(i=i[en]||i[Lo]){var o=i.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return i}return null}function Dl(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i.stateNode;throw Error(r(33))}function Bo(i){var o=i[uA];return o||(o=i[uA]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Xt(i){i[Rl]=!0}var cA=new Set,fA={};function La(i,o){qo(i,o),qo(i+"Capture",o)}function qo(i,o){for(fA[i]=o,i=0;i<o.length;i++)cA.add(o[i])}var VB=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]*$"),dA={},hA={};function HB(i){return Dr.call(hA,i)?!0:Dr.call(dA,i)?!1:VB.test(i)?hA[i]=!0:(dA[i]=!0,!1)}function pf(i,o,u){if(HB(o))if(u===null)i.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(o);return;case"boolean":var h=o.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(o);return}}i.setAttribute(o,""+u)}}function mf(i,o,u){if(u===null)i.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(o);return}i.setAttribute(o,""+u)}}function ni(i,o,u,h){if(h===null)i.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(o,u,""+h)}}function Yn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function pA(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function GB(i,o,u){var h=Object.getOwnPropertyDescriptor(i.constructor.prototype,o);if(!i.hasOwnProperty(o)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var v=h.get,x=h.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return v.call(this)},set:function(N){u=""+N,x.call(this,N)}}),Object.defineProperty(i,o,{enumerable:h.enumerable}),{getValue:function(){return u},setValue:function(N){u=""+N},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function bm(i){if(!i._valueTracker){var o=pA(i)?"checked":"value";i._valueTracker=GB(i,o,""+i[o])}}function mA(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var u=o.getValue(),h="";return i&&(h=pA(i)?i.checked?"true":"false":i.value),i=h,i!==u?(o.setValue(i),!0):!1}function yf(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var FB=/[\n"\\]/g;function Xn(i){return i.replace(FB,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Sm(i,o,u,h,v,x,N,R){i.name="",N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?i.type=N:i.removeAttribute("type"),o!=null?N==="number"?(o===0&&i.value===""||i.value!=o)&&(i.value=""+Yn(o)):i.value!==""+Yn(o)&&(i.value=""+Yn(o)):N!=="submit"&&N!=="reset"||i.removeAttribute("value"),o!=null?wm(i,N,Yn(o)):u!=null?wm(i,N,Yn(u)):h!=null&&i.removeAttribute("value"),v==null&&x!=null&&(i.defaultChecked=!!x),v!=null&&(i.checked=v&&typeof v!="function"&&typeof v!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?i.name=""+Yn(R):i.removeAttribute("name")}function yA(i,o,u,h,v,x,N,R){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(i.type=x),o!=null||u!=null){if(!(x!=="submit"&&x!=="reset"||o!=null)){bm(i);return}u=u!=null?""+Yn(u):"",o=o!=null?""+Yn(o):u,R||o===i.value||(i.value=o),i.defaultValue=o}h=h??v,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=R?i.checked:!!h,i.defaultChecked=!!h,N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(i.name=N),bm(i)}function wm(i,o,u){o==="number"&&yf(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function Io(i,o,u,h){if(i=i.options,o){o={};for(var v=0;v<u.length;v++)o["$"+u[v]]=!0;for(u=0;u<i.length;u++)v=o.hasOwnProperty("$"+i[u].value),i[u].selected!==v&&(i[u].selected=v),v&&h&&(i[u].defaultSelected=!0)}else{for(u=""+Yn(u),o=null,v=0;v<i.length;v++){if(i[v].value===u){i[v].selected=!0,h&&(i[v].defaultSelected=!0);return}o!==null||i[v].disabled||(o=i[v])}o!==null&&(o.selected=!0)}}function vA(i,o,u){if(o!=null&&(o=""+Yn(o),o!==i.value&&(i.value=o),u==null)){i.defaultValue!==o&&(i.defaultValue=o);return}i.defaultValue=u!=null?""+Yn(u):""}function gA(i,o,u,h){if(o==null){if(h!=null){if(u!=null)throw Error(r(92));if(Y(h)){if(1<h.length)throw Error(r(93));h=h[0]}u=h}u==null&&(u=""),o=u}u=Yn(o),i.defaultValue=u,h=i.textContent,h===u&&h!==""&&h!==null&&(i.value=h),bm(i)}function Uo(i,o){if(o){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=o;return}}i.textContent=o}var KB=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 xA(i,o,u){var h=o.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?h?i.setProperty(o,""):o==="float"?i.cssFloat="":i[o]="":h?i.setProperty(o,u):typeof u!="number"||u===0||KB.has(o)?o==="float"?i.cssFloat=u:i[o]=(""+u).trim():i[o]=u+"px"}function bA(i,o,u){if(o!=null&&typeof o!="object")throw Error(r(62));if(i=i.style,u!=null){for(var h in u)!u.hasOwnProperty(h)||o!=null&&o.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var v in o)h=o[v],o.hasOwnProperty(v)&&u[v]!==h&&xA(i,v,h)}else for(var x in o)o.hasOwnProperty(x)&&xA(i,x,o[x])}function jm(i){if(i.indexOf("-")===-1)return!1;switch(i){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 YB=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"]]),XB=/^[\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 vf(i){return XB.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function ri(){}var Am=null;function Om(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Vo=null,Ho=null;function SA(i){var o=$o(i);if(o&&(i=o.stateNode)){var u=i[Sn]||null;e:switch(i=o.stateNode,o.type){case"input":if(Sm(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),o=u.name,u.type==="radio"&&o!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Xn(""+o)+'"][type="radio"]'),o=0;o<u.length;o++){var h=u[o];if(h!==i&&h.form===i.form){var v=h[Sn]||null;if(!v)throw Error(r(90));Sm(h,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(o=0;o<u.length;o++)h=u[o],h.form===i.form&&mA(h)}break e;case"textarea":vA(i,u.value,u.defaultValue);break e;case"select":o=u.value,o!=null&&Io(i,!!u.multiple,o,!1)}}}var _m=!1;function wA(i,o,u){if(_m)return i(o,u);_m=!0;try{var h=i(o);return h}finally{if(_m=!1,(Vo!==null||Ho!==null)&&(id(),Vo&&(o=Vo,i=Ho,Ho=Vo=null,SA(o),i)))for(o=0;o<i.length;o++)SA(i[o])}}function kl(i,o){var u=i.stateNode;if(u===null)return null;var h=u[Sn]||null;if(h===null)return null;u=h[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,o,typeof u));return u}var ii=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tm=!1;if(ii)try{var Ll={};Object.defineProperty(Ll,"passive",{get:function(){Tm=!0}}),window.addEventListener("test",Ll,Ll),window.removeEventListener("test",Ll,Ll)}catch{Tm=!1}var Ui=null,Em=null,gf=null;function jA(){if(gf)return gf;var i,o=Em,u=o.length,h,v="value"in Ui?Ui.value:Ui.textContent,x=v.length;for(i=0;i<u&&o[i]===v[i];i++);var N=u-i;for(h=1;h<=N&&o[u-h]===v[x-h];h++);return gf=v.slice(i,1<h?1-h:void 0)}function xf(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function bf(){return!0}function AA(){return!1}function wn(i){function o(u,h,v,x,N){this._reactName=u,this._targetInst=v,this.type=h,this.nativeEvent=x,this.target=N,this.currentTarget=null;for(var R in i)i.hasOwnProperty(R)&&(u=i[R],this[R]=u?u(x):x[R]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?bf:AA,this.isPropagationStopped=AA,this}return y(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=bf)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=bf)},persist:function(){},isPersistent:bf}),o}var za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sf=wn(za),zl=y({},za,{view:0,detail:0}),WB=wn(zl),Nm,Cm,$l,wf=y({},zl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pm,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==$l&&($l&&i.type==="mousemove"?(Nm=i.screenX-$l.screenX,Cm=i.screenY-$l.screenY):Cm=Nm=0,$l=i),Nm)},movementY:function(i){return"movementY"in i?i.movementY:Cm}}),OA=wn(wf),ZB=y({},wf,{dataTransfer:0}),QB=wn(ZB),JB=y({},zl,{relatedTarget:0}),Mm=wn(JB),e5=y({},za,{animationName:0,elapsedTime:0,pseudoElement:0}),t5=wn(e5),n5=y({},za,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),r5=wn(n5),i5=y({},za,{data:0}),_A=wn(i5),a5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},o5={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"},s5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function l5(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=s5[i])?!!o[i]:!1}function Pm(){return l5}var u5=y({},zl,{key:function(i){if(i.key){var o=a5[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=xf(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?o5[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pm,charCode:function(i){return i.type==="keypress"?xf(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?xf(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),c5=wn(u5),f5=y({},wf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),TA=wn(f5),d5=y({},zl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pm}),h5=wn(d5),p5=y({},za,{propertyName:0,elapsedTime:0,pseudoElement:0}),m5=wn(p5),y5=y({},wf,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),v5=wn(y5),g5=y({},za,{newState:0,oldState:0}),x5=wn(g5),b5=[9,13,27,32],Rm=ii&&"CompositionEvent"in window,Bl=null;ii&&"documentMode"in document&&(Bl=document.documentMode);var S5=ii&&"TextEvent"in window&&!Bl,EA=ii&&(!Rm||Bl&&8<Bl&&11>=Bl),NA=" ",CA=!1;function MA(i,o){switch(i){case"keyup":return b5.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function PA(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Go=!1;function w5(i,o){switch(i){case"compositionend":return PA(o);case"keypress":return o.which!==32?null:(CA=!0,NA);case"textInput":return i=o.data,i===NA&&CA?null:i;default:return null}}function j5(i,o){if(Go)return i==="compositionend"||!Rm&&MA(i,o)?(i=jA(),gf=Em=Ui=null,Go=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return EA&&o.locale!=="ko"?null:o.data;default:return null}}var A5={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 RA(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!A5[i.type]:o==="textarea"}function DA(i,o,u,h){Vo?Ho?Ho.push(h):Ho=[h]:Vo=h,o=fd(o,"onChange"),0<o.length&&(u=new Sf("onChange","change",null,u,h),i.push({event:u,listeners:o}))}var ql=null,Il=null;function O5(i){y2(i,0)}function jf(i){var o=Dl(i);if(mA(o))return i}function kA(i,o){if(i==="change")return o}var LA=!1;if(ii){var Dm;if(ii){var km="oninput"in document;if(!km){var zA=document.createElement("div");zA.setAttribute("oninput","return;"),km=typeof zA.oninput=="function"}Dm=km}else Dm=!1;LA=Dm&&(!document.documentMode||9<document.documentMode)}function $A(){ql&&(ql.detachEvent("onpropertychange",BA),Il=ql=null)}function BA(i){if(i.propertyName==="value"&&jf(Il)){var o=[];DA(o,Il,i,Om(i)),wA(O5,o)}}function _5(i,o,u){i==="focusin"?($A(),ql=o,Il=u,ql.attachEvent("onpropertychange",BA)):i==="focusout"&&$A()}function T5(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return jf(Il)}function E5(i,o){if(i==="click")return jf(o)}function N5(i,o){if(i==="input"||i==="change")return jf(o)}function C5(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var Pn=typeof Object.is=="function"?Object.is:C5;function Ul(i,o){if(Pn(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var u=Object.keys(i),h=Object.keys(o);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var v=u[h];if(!Dr.call(o,v)||!Pn(i[v],o[v]))return!1}return!0}function qA(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function IA(i,o){var u=qA(i);i=0;for(var h;u;){if(u.nodeType===3){if(h=i+u.textContent.length,i<=o&&h>=o)return{node:u,offset:o-i};i=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=qA(u)}}function UA(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?UA(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function VA(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var o=yf(i.document);o instanceof i.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href=="string"}catch{u=!1}if(u)i=o.contentWindow;else break;o=yf(i.document)}return o}function Lm(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}var M5=ii&&"documentMode"in document&&11>=document.documentMode,Fo=null,zm=null,Vl=null,$m=!1;function HA(i,o,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;$m||Fo==null||Fo!==yf(h)||(h=Fo,"selectionStart"in h&&Lm(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Vl&&Ul(Vl,h)||(Vl=h,h=fd(zm,"onSelect"),0<h.length&&(o=new Sf("onSelect","select",null,o,u),i.push({event:o,listeners:h}),o.target=Fo)))}function $a(i,o){var u={};return u[i.toLowerCase()]=o.toLowerCase(),u["Webkit"+i]="webkit"+o,u["Moz"+i]="moz"+o,u}var Ko={animationend:$a("Animation","AnimationEnd"),animationiteration:$a("Animation","AnimationIteration"),animationstart:$a("Animation","AnimationStart"),transitionrun:$a("Transition","TransitionRun"),transitionstart:$a("Transition","TransitionStart"),transitioncancel:$a("Transition","TransitionCancel"),transitionend:$a("Transition","TransitionEnd")},Bm={},GA={};ii&&(GA=document.createElement("div").style,"AnimationEvent"in window||(delete Ko.animationend.animation,delete Ko.animationiteration.animation,delete Ko.animationstart.animation),"TransitionEvent"in window||delete Ko.transitionend.transition);function Ba(i){if(Bm[i])return Bm[i];if(!Ko[i])return i;var o=Ko[i],u;for(u in o)if(o.hasOwnProperty(u)&&u in GA)return Bm[i]=o[u];return i}var FA=Ba("animationend"),KA=Ba("animationiteration"),YA=Ba("animationstart"),P5=Ba("transitionrun"),R5=Ba("transitionstart"),D5=Ba("transitioncancel"),XA=Ba("transitionend"),WA=new Map,qm="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(" ");qm.push("scrollEnd");function vr(i,o){WA.set(i,o),La(o,[i])}var Af=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},Wn=[],Yo=0,Im=0;function Of(){for(var i=Yo,o=Im=Yo=0;o<i;){var u=Wn[o];Wn[o++]=null;var h=Wn[o];Wn[o++]=null;var v=Wn[o];Wn[o++]=null;var x=Wn[o];if(Wn[o++]=null,h!==null&&v!==null){var N=h.pending;N===null?v.next=v:(v.next=N.next,N.next=v),h.pending=v}x!==0&&ZA(u,v,x)}}function _f(i,o,u,h){Wn[Yo++]=i,Wn[Yo++]=o,Wn[Yo++]=u,Wn[Yo++]=h,Im|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function Um(i,o,u,h){return _f(i,o,u,h),Tf(i)}function qa(i,o){return _f(i,null,null,o),Tf(i)}function ZA(i,o,u){i.lanes|=u;var h=i.alternate;h!==null&&(h.lanes|=u);for(var v=!1,x=i.return;x!==null;)x.childLanes|=u,h=x.alternate,h!==null&&(h.childLanes|=u),x.tag===22&&(i=x.stateNode,i===null||i._visibility&1||(v=!0)),i=x,x=x.return;return i.tag===3?(x=i.stateNode,v&&o!==null&&(v=31-Mn(u),i=x.hiddenUpdates,h=i[v],h===null?i[v]=[o]:h.push(o),o.lane=u|536870912),x):null}function Tf(i){if(50<fu)throw fu=0,Zy=null,Error(r(185));for(var o=i.return;o!==null;)i=o,o=i.return;return i.tag===3?i.stateNode:null}var Xo={};function k5(i,o,u,h){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rn(i,o,u,h){return new k5(i,o,u,h)}function Vm(i){return i=i.prototype,!(!i||!i.isReactComponent)}function ai(i,o){var u=i.alternate;return u===null?(u=Rn(i.tag,o,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=o,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,o=i.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function QA(i,o){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=o,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,o=u.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),i}function Ef(i,o,u,h,v,x){var N=0;if(h=i,typeof i=="function")Vm(i)&&(N=1);else if(typeof i=="string")N=q6(i,u,fe.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case D:return i=Rn(31,u,o,v),i.elementType=D,i.lanes=x,i;case w:return Ia(u.children,v,x,o);case b:N=8,v|=24;break;case A:return i=Rn(12,u,o,v|2),i.elementType=A,i.lanes=x,i;case O:return i=Rn(13,u,o,v),i.elementType=O,i.lanes=x,i;case E:return i=Rn(19,u,o,v),i.elementType=E,i.lanes=x,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case T:N=10;break e;case _:N=9;break e;case C:N=11;break e;case M:N=14;break e;case k:N=16,h=null;break e}N=29,u=Error(r(130,i===null?"null":typeof i,"")),h=null}return o=Rn(N,u,o,v),o.elementType=i,o.type=h,o.lanes=x,o}function Ia(i,o,u,h){return i=Rn(7,i,h,o),i.lanes=u,i}function Hm(i,o,u){return i=Rn(6,i,null,o),i.lanes=u,i}function JA(i){var o=Rn(18,null,null,0);return o.stateNode=i,o}function Gm(i,o,u){return o=Rn(4,i.children!==null?i.children:[],i.key,o),o.lanes=u,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}var eO=new WeakMap;function Zn(i,o){if(typeof i=="object"&&i!==null){var u=eO.get(i);return u!==void 0?u:(o={value:i,source:o,stack:mr(o)},eO.set(i,o),o)}return{value:i,source:o,stack:mr(o)}}var Wo=[],Zo=0,Nf=null,Hl=0,Qn=[],Jn=0,Vi=null,kr=1,Lr="";function oi(i,o){Wo[Zo++]=Hl,Wo[Zo++]=Nf,Nf=i,Hl=o}function tO(i,o,u){Qn[Jn++]=kr,Qn[Jn++]=Lr,Qn[Jn++]=Vi,Vi=i;var h=kr;i=Lr;var v=32-Mn(h)-1;h&=~(1<<v),u+=1;var x=32-Mn(o)+v;if(30<x){var N=v-v%5;x=(h&(1<<N)-1).toString(32),h>>=N,v-=N,kr=1<<32-Mn(o)+v|u<<v|h,Lr=x+i}else kr=1<<x|u<<v|h,Lr=i}function Fm(i){i.return!==null&&(oi(i,1),tO(i,1,0))}function Km(i){for(;i===Nf;)Nf=Wo[--Zo],Wo[Zo]=null,Hl=Wo[--Zo],Wo[Zo]=null;for(;i===Vi;)Vi=Qn[--Jn],Qn[Jn]=null,Lr=Qn[--Jn],Qn[Jn]=null,kr=Qn[--Jn],Qn[Jn]=null}function nO(i,o){Qn[Jn++]=kr,Qn[Jn++]=Lr,Qn[Jn++]=Vi,kr=o.id,Lr=o.overflow,Vi=i}var tn=null,yt=null,Ve=!1,Hi=null,er=!1,Ym=Error(r(519));function Gi(i){var o=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gl(Zn(o,i)),Ym}function rO(i){var o=i.stateNode,u=i.type,h=i.memoizedProps;switch(o[en]=i,o[Sn]=h,u){case"dialog":Be("cancel",o),Be("close",o);break;case"iframe":case"object":case"embed":Be("load",o);break;case"video":case"audio":for(u=0;u<hu.length;u++)Be(hu[u],o);break;case"source":Be("error",o);break;case"img":case"image":case"link":Be("error",o),Be("load",o);break;case"details":Be("toggle",o);break;case"input":Be("invalid",o),yA(o,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":Be("invalid",o);break;case"textarea":Be("invalid",o),gA(o,h.value,h.defaultValue,h.children)}u=h.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||o.textContent===""+u||h.suppressHydrationWarning===!0||b2(o.textContent,u)?(h.popover!=null&&(Be("beforetoggle",o),Be("toggle",o)),h.onScroll!=null&&Be("scroll",o),h.onScrollEnd!=null&&Be("scrollend",o),h.onClick!=null&&(o.onclick=ri),o=!0):o=!1,o||Gi(i,!0)}function iO(i){for(tn=i.return;tn;)switch(tn.tag){case 5:case 31:case 13:er=!1;return;case 27:case 3:er=!0;return;default:tn=tn.return}}function Qo(i){if(i!==tn)return!1;if(!Ve)return iO(i),Ve=!0,!1;var o=i.tag,u;if((u=o!==3&&o!==27)&&((u=o===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||dv(i.type,i.memoizedProps)),u=!u),u&&yt&&Gi(i),iO(i),o===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));yt=N2(i)}else if(o===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));yt=N2(i)}else o===27?(o=yt,aa(i.type)?(i=vv,vv=null,yt=i):yt=o):yt=tn?nr(i.stateNode.nextSibling):null;return!0}function Ua(){yt=tn=null,Ve=!1}function Xm(){var i=Hi;return i!==null&&(_n===null?_n=i:_n.push.apply(_n,i),Hi=null),i}function Gl(i){Hi===null?Hi=[i]:Hi.push(i)}var Wm=L(null),Va=null,si=null;function Fi(i,o,u){re(Wm,o._currentValue),o._currentValue=u}function li(i){i._currentValue=Wm.current,H(Wm)}function Zm(i,o,u){for(;i!==null;){var h=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),i===u)break;i=i.return}}function Qm(i,o,u,h){var v=i.child;for(v!==null&&(v.return=i);v!==null;){var x=v.dependencies;if(x!==null){var N=v.child;x=x.firstContext;e:for(;x!==null;){var R=x;x=v;for(var U=0;U<o.length;U++)if(R.context===o[U]){x.lanes|=u,R=x.alternate,R!==null&&(R.lanes|=u),Zm(x.return,u,i),h||(N=null);break e}x=R.next}}else if(v.tag===18){if(N=v.return,N===null)throw Error(r(341));N.lanes|=u,x=N.alternate,x!==null&&(x.lanes|=u),Zm(N,u,i),N=null}else N=v.child;if(N!==null)N.return=v;else for(N=v;N!==null;){if(N===i){N=null;break}if(v=N.sibling,v!==null){v.return=N.return,N=v;break}N=N.return}v=N}}function Jo(i,o,u,h){i=null;for(var v=o,x=!1;v!==null;){if(!x){if((v.flags&524288)!==0)x=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var N=v.alternate;if(N===null)throw Error(r(387));if(N=N.memoizedProps,N!==null){var R=v.type;Pn(v.pendingProps.value,N.value)||(i!==null?i.push(R):i=[R])}}else if(v===ze.current){if(N=v.alternate,N===null)throw Error(r(387));N.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(i!==null?i.push(gu):i=[gu])}v=v.return}i!==null&&Qm(o,i,u,h),o.flags|=262144}function Cf(i){for(i=i.firstContext;i!==null;){if(!Pn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Ha(i){Va=i,si=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function nn(i){return aO(Va,i)}function Mf(i,o){return Va===null&&Ha(i),aO(i,o)}function aO(i,o){var u=o._currentValue;if(o={context:o,memoizedValue:u,next:null},si===null){if(i===null)throw Error(r(308));si=o,i.dependencies={lanes:0,firstContext:o},i.flags|=524288}else si=si.next=o;return u}var L5=typeof AbortController<"u"?AbortController:function(){var i=[],o=this.signal={aborted:!1,addEventListener:function(u,h){i.push(h)}};this.abort=function(){o.aborted=!0,i.forEach(function(u){return u()})}},z5=e.unstable_scheduleCallback,$5=e.unstable_NormalPriority,Rt={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jm(){return{controller:new L5,data:new Map,refCount:0}}function Fl(i){i.refCount--,i.refCount===0&&z5($5,function(){i.controller.abort()})}var Kl=null,ey=0,es=0,ts=null;function B5(i,o){if(Kl===null){var u=Kl=[];ey=0,es=rv(),ts={status:"pending",value:void 0,then:function(h){u.push(h)}}}return ey++,o.then(oO,oO),o}function oO(){if(--ey===0&&Kl!==null){ts!==null&&(ts.status="fulfilled");var i=Kl;Kl=null,es=0,ts=null;for(var o=0;o<i.length;o++)(0,i[o])()}}function q5(i,o){var u=[],h={status:"pending",value:null,reason:null,then:function(v){u.push(v)}};return i.then(function(){h.status="fulfilled",h.value=o;for(var v=0;v<u.length;v++)(0,u[v])(o)},function(v){for(h.status="rejected",h.reason=v,v=0;v<u.length;v++)(0,u[v])(void 0)}),h}var sO=$.S;$.S=function(i,o){H_=cn(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&B5(i,o),sO!==null&&sO(i,o)};var Ga=L(null);function ty(){var i=Ga.current;return i!==null?i:st.pooledCache}function Pf(i,o){o===null?re(Ga,Ga.current):re(Ga,o.pool)}function lO(){var i=ty();return i===null?null:{parent:Rt._currentValue,pool:i}}var ns=Error(r(460)),ny=Error(r(474)),Rf=Error(r(542)),Df={then:function(){}};function uO(i){return i=i.status,i==="fulfilled"||i==="rejected"}function cO(i,o,u){switch(u=i[u],u===void 0?i.push(o):u!==o&&(o.then(ri,ri),o=u),o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,dO(i),i;default:if(typeof o.status=="string")o.then(ri,ri);else{if(i=st,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=o,i.status="pending",i.then(function(h){if(o.status==="pending"){var v=o;v.status="fulfilled",v.value=h}},function(h){if(o.status==="pending"){var v=o;v.status="rejected",v.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,dO(i),i}throw Ka=o,ns}}function Fa(i){try{var o=i._init;return o(i._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Ka=u,ns):u}}var Ka=null;function fO(){if(Ka===null)throw Error(r(459));var i=Ka;return Ka=null,i}function dO(i){if(i===ns||i===Rf)throw Error(r(483))}var rs=null,Yl=0;function kf(i){var o=Yl;return Yl+=1,rs===null&&(rs=[]),cO(rs,i,o)}function Xl(i,o){o=o.props.ref,i.ref=o!==void 0?o:null}function Lf(i,o){throw o.$$typeof===g?Error(r(525)):(i=Object.prototype.toString.call(o),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i)))}function hO(i){function o(G,V){if(i){var W=G.deletions;W===null?(G.deletions=[V],G.flags|=16):W.push(V)}}function u(G,V){if(!i)return null;for(;V!==null;)o(G,V),V=V.sibling;return null}function h(G){for(var V=new Map;G!==null;)G.key!==null?V.set(G.key,G):V.set(G.index,G),G=G.sibling;return V}function v(G,V){return G=ai(G,V),G.index=0,G.sibling=null,G}function x(G,V,W){return G.index=W,i?(W=G.alternate,W!==null?(W=W.index,W<V?(G.flags|=67108866,V):W):(G.flags|=67108866,V)):(G.flags|=1048576,V)}function N(G){return i&&G.alternate===null&&(G.flags|=67108866),G}function R(G,V,W,ae){return V===null||V.tag!==6?(V=Hm(W,G.mode,ae),V.return=G,V):(V=v(V,W),V.return=G,V)}function U(G,V,W,ae){var we=W.type;return we===w?te(G,V,W.props.children,ae,W.key):V!==null&&(V.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===k&&Fa(we)===V.type)?(V=v(V,W.props),Xl(V,W),V.return=G,V):(V=Ef(W.type,W.key,W.props,null,G.mode,ae),Xl(V,W),V.return=G,V)}function Z(G,V,W,ae){return V===null||V.tag!==4||V.stateNode.containerInfo!==W.containerInfo||V.stateNode.implementation!==W.implementation?(V=Gm(W,G.mode,ae),V.return=G,V):(V=v(V,W.children||[]),V.return=G,V)}function te(G,V,W,ae,we){return V===null||V.tag!==7?(V=Ia(W,G.mode,ae,we),V.return=G,V):(V=v(V,W),V.return=G,V)}function oe(G,V,W){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return V=Hm(""+V,G.mode,W),V.return=G,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case S:return W=Ef(V.type,V.key,V.props,null,G.mode,W),Xl(W,V),W.return=G,W;case j:return V=Gm(V,G.mode,W),V.return=G,V;case k:return V=Fa(V),oe(G,V,W)}if(Y(V)||z(V))return V=Ia(V,G.mode,W,null),V.return=G,V;if(typeof V.then=="function")return oe(G,kf(V),W);if(V.$$typeof===T)return oe(G,Mf(G,V),W);Lf(G,V)}return null}function J(G,V,W,ae){var we=V!==null?V.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return we!==null?null:R(G,V,""+W,ae);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case S:return W.key===we?U(G,V,W,ae):null;case j:return W.key===we?Z(G,V,W,ae):null;case k:return W=Fa(W),J(G,V,W,ae)}if(Y(W)||z(W))return we!==null?null:te(G,V,W,ae,null);if(typeof W.then=="function")return J(G,V,kf(W),ae);if(W.$$typeof===T)return J(G,V,Mf(G,W),ae);Lf(G,W)}return null}function ee(G,V,W,ae,we){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return G=G.get(W)||null,R(V,G,""+ae,we);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case S:return G=G.get(ae.key===null?W:ae.key)||null,U(V,G,ae,we);case j:return G=G.get(ae.key===null?W:ae.key)||null,Z(V,G,ae,we);case k:return ae=Fa(ae),ee(G,V,W,ae,we)}if(Y(ae)||z(ae))return G=G.get(W)||null,te(V,G,ae,we,null);if(typeof ae.then=="function")return ee(G,V,W,kf(ae),we);if(ae.$$typeof===T)return ee(G,V,W,Mf(V,ae),we);Lf(V,ae)}return null}function me(G,V,W,ae){for(var we=null,He=null,xe=V,ke=V=0,Ue=null;xe!==null&&ke<W.length;ke++){xe.index>ke?(Ue=xe,xe=null):Ue=xe.sibling;var Ge=J(G,xe,W[ke],ae);if(Ge===null){xe===null&&(xe=Ue);break}i&&xe&&Ge.alternate===null&&o(G,xe),V=x(Ge,V,ke),He===null?we=Ge:He.sibling=Ge,He=Ge,xe=Ue}if(ke===W.length)return u(G,xe),Ve&&oi(G,ke),we;if(xe===null){for(;ke<W.length;ke++)xe=oe(G,W[ke],ae),xe!==null&&(V=x(xe,V,ke),He===null?we=xe:He.sibling=xe,He=xe);return Ve&&oi(G,ke),we}for(xe=h(xe);ke<W.length;ke++)Ue=ee(xe,G,ke,W[ke],ae),Ue!==null&&(i&&Ue.alternate!==null&&xe.delete(Ue.key===null?ke:Ue.key),V=x(Ue,V,ke),He===null?we=Ue:He.sibling=Ue,He=Ue);return i&&xe.forEach(function(ca){return o(G,ca)}),Ve&&oi(G,ke),we}function Ae(G,V,W,ae){if(W==null)throw Error(r(151));for(var we=null,He=null,xe=V,ke=V=0,Ue=null,Ge=W.next();xe!==null&&!Ge.done;ke++,Ge=W.next()){xe.index>ke?(Ue=xe,xe=null):Ue=xe.sibling;var ca=J(G,xe,Ge.value,ae);if(ca===null){xe===null&&(xe=Ue);break}i&&xe&&ca.alternate===null&&o(G,xe),V=x(ca,V,ke),He===null?we=ca:He.sibling=ca,He=ca,xe=Ue}if(Ge.done)return u(G,xe),Ve&&oi(G,ke),we;if(xe===null){for(;!Ge.done;ke++,Ge=W.next())Ge=oe(G,Ge.value,ae),Ge!==null&&(V=x(Ge,V,ke),He===null?we=Ge:He.sibling=Ge,He=Ge);return Ve&&oi(G,ke),we}for(xe=h(xe);!Ge.done;ke++,Ge=W.next())Ge=ee(xe,G,ke,Ge.value,ae),Ge!==null&&(i&&Ge.alternate!==null&&xe.delete(Ge.key===null?ke:Ge.key),V=x(Ge,V,ke),He===null?we=Ge:He.sibling=Ge,He=Ge);return i&&xe.forEach(function(Z6){return o(G,Z6)}),Ve&&oi(G,ke),we}function at(G,V,W,ae){if(typeof W=="object"&&W!==null&&W.type===w&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case S:e:{for(var we=W.key;V!==null;){if(V.key===we){if(we=W.type,we===w){if(V.tag===7){u(G,V.sibling),ae=v(V,W.props.children),ae.return=G,G=ae;break e}}else if(V.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===k&&Fa(we)===V.type){u(G,V.sibling),ae=v(V,W.props),Xl(ae,W),ae.return=G,G=ae;break e}u(G,V);break}else o(G,V);V=V.sibling}W.type===w?(ae=Ia(W.props.children,G.mode,ae,W.key),ae.return=G,G=ae):(ae=Ef(W.type,W.key,W.props,null,G.mode,ae),Xl(ae,W),ae.return=G,G=ae)}return N(G);case j:e:{for(we=W.key;V!==null;){if(V.key===we)if(V.tag===4&&V.stateNode.containerInfo===W.containerInfo&&V.stateNode.implementation===W.implementation){u(G,V.sibling),ae=v(V,W.children||[]),ae.return=G,G=ae;break e}else{u(G,V);break}else o(G,V);V=V.sibling}ae=Gm(W,G.mode,ae),ae.return=G,G=ae}return N(G);case k:return W=Fa(W),at(G,V,W,ae)}if(Y(W))return me(G,V,W,ae);if(z(W)){if(we=z(W),typeof we!="function")throw Error(r(150));return W=we.call(W),Ae(G,V,W,ae)}if(typeof W.then=="function")return at(G,V,kf(W),ae);if(W.$$typeof===T)return at(G,V,Mf(G,W),ae);Lf(G,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,V!==null&&V.tag===6?(u(G,V.sibling),ae=v(V,W),ae.return=G,G=ae):(u(G,V),ae=Hm(W,G.mode,ae),ae.return=G,G=ae),N(G)):u(G,V)}return function(G,V,W,ae){try{Yl=0;var we=at(G,V,W,ae);return rs=null,we}catch(xe){if(xe===ns||xe===Rf)throw xe;var He=Rn(29,xe,null,G.mode);return He.lanes=ae,He.return=G,He}finally{}}}var Ya=hO(!0),pO=hO(!1),Ki=!1;function ry(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function iy(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Yi(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Xi(i,o,u){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(Ke&2)!==0){var v=h.pending;return v===null?o.next=o:(o.next=v.next,v.next=o),h.pending=o,o=Tf(i),ZA(i,null,u),o}return _f(i,h,o,u),Tf(i)}function Wl(i,o,u){if(o=o.updateQueue,o!==null&&(o=o.shared,(u&4194048)!==0)){var h=o.lanes;h&=i.pendingLanes,u|=h,o.lanes=u,aA(i,u)}}function ay(i,o){var u=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var v=null,x=null;if(u=u.firstBaseUpdate,u!==null){do{var N={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};x===null?v=x=N:x=x.next=N,u=u.next}while(u!==null);x===null?v=x=o:x=x.next=o}else v=x=o;u={baseState:h.baseState,firstBaseUpdate:v,lastBaseUpdate:x,shared:h.shared,callbacks:h.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=o:i.next=o,u.lastBaseUpdate=o}var oy=!1;function Zl(){if(oy){var i=ts;if(i!==null)throw i}}function Ql(i,o,u,h){oy=!1;var v=i.updateQueue;Ki=!1;var x=v.firstBaseUpdate,N=v.lastBaseUpdate,R=v.shared.pending;if(R!==null){v.shared.pending=null;var U=R,Z=U.next;U.next=null,N===null?x=Z:N.next=Z,N=U;var te=i.alternate;te!==null&&(te=te.updateQueue,R=te.lastBaseUpdate,R!==N&&(R===null?te.firstBaseUpdate=Z:R.next=Z,te.lastBaseUpdate=U))}if(x!==null){var oe=v.baseState;N=0,te=Z=U=null,R=x;do{var J=R.lane&-536870913,ee=J!==R.lane;if(ee?(Ie&J)===J:(h&J)===J){J!==0&&J===es&&(oy=!0),te!==null&&(te=te.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var me=i,Ae=R;J=o;var at=u;switch(Ae.tag){case 1:if(me=Ae.payload,typeof me=="function"){oe=me.call(at,oe,J);break e}oe=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=Ae.payload,J=typeof me=="function"?me.call(at,oe,J):me,J==null)break e;oe=y({},oe,J);break e;case 2:Ki=!0}}J=R.callback,J!==null&&(i.flags|=64,ee&&(i.flags|=8192),ee=v.callbacks,ee===null?v.callbacks=[J]:ee.push(J))}else ee={lane:J,tag:R.tag,payload:R.payload,callback:R.callback,next:null},te===null?(Z=te=ee,U=oe):te=te.next=ee,N|=J;if(R=R.next,R===null){if(R=v.shared.pending,R===null)break;ee=R,R=ee.next,ee.next=null,v.lastBaseUpdate=ee,v.shared.pending=null}}while(!0);te===null&&(U=oe),v.baseState=U,v.firstBaseUpdate=Z,v.lastBaseUpdate=te,x===null&&(v.shared.lanes=0),ea|=N,i.lanes=N,i.memoizedState=oe}}function mO(i,o){if(typeof i!="function")throw Error(r(191,i));i.call(o)}function yO(i,o){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)mO(u[i],o)}var is=L(null),zf=L(0);function vO(i,o){i=vi,re(zf,i),re(is,o),vi=i|o.baseLanes}function sy(){re(zf,vi),re(is,is.current)}function ly(){vi=zf.current,H(is),H(zf)}var Dn=L(null),tr=null;function Wi(i){var o=i.alternate;re(Ct,Ct.current&1),re(Dn,i),tr===null&&(o===null||is.current!==null||o.memoizedState!==null)&&(tr=i)}function uy(i){re(Ct,Ct.current),re(Dn,i),tr===null&&(tr=i)}function gO(i){i.tag===22?(re(Ct,Ct.current),re(Dn,i),tr===null&&(tr=i)):Zi()}function Zi(){re(Ct,Ct.current),re(Dn,Dn.current)}function kn(i){H(Dn),tr===i&&(tr=null),H(Ct)}var Ct=L(0);function $f(i){for(var o=i;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||mv(u)||yv(u)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var ui=0,Pe=null,rt=null,Dt=null,Bf=!1,as=!1,Xa=!1,qf=0,Jl=0,os=null,I5=0;function _t(){throw Error(r(321))}function cy(i,o){if(o===null)return!1;for(var u=0;u<o.length&&u<i.length;u++)if(!Pn(i[u],o[u]))return!1;return!0}function fy(i,o,u,h,v,x){return ui=x,Pe=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,$.H=i===null||i.memoizedState===null?t_:_y,Xa=!1,x=u(h,v),Xa=!1,as&&(x=bO(o,u,h,v)),xO(i),x}function xO(i){$.H=nu;var o=rt!==null&&rt.next!==null;if(ui=0,Dt=rt=Pe=null,Bf=!1,Jl=0,os=null,o)throw Error(r(300));i===null||kt||(i=i.dependencies,i!==null&&Cf(i)&&(kt=!0))}function bO(i,o,u,h){Pe=i;var v=0;do{if(as&&(os=null),Jl=0,as=!1,25<=v)throw Error(r(301));if(v+=1,Dt=rt=null,i.updateQueue!=null){var x=i.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}$.H=n_,x=o(u,h)}while(as);return x}function U5(){var i=$.H,o=i.useState()[0];return o=typeof o.then=="function"?eu(o):o,i=i.useState()[0],(rt!==null?rt.memoizedState:null)!==i&&(Pe.flags|=1024),o}function dy(){var i=qf!==0;return qf=0,i}function hy(i,o,u){o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~u}function py(i){if(Bf){for(i=i.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}Bf=!1}ui=0,Dt=rt=Pe=null,as=!1,Jl=qf=0,os=null}function mn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dt===null?Pe.memoizedState=Dt=i:Dt=Dt.next=i,Dt}function Mt(){if(rt===null){var i=Pe.alternate;i=i!==null?i.memoizedState:null}else i=rt.next;var o=Dt===null?Pe.memoizedState:Dt.next;if(o!==null)Dt=o,rt=i;else{if(i===null)throw Pe.alternate===null?Error(r(467)):Error(r(310));rt=i,i={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},Dt===null?Pe.memoizedState=Dt=i:Dt=Dt.next=i}return Dt}function If(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function eu(i){var o=Jl;return Jl+=1,os===null&&(os=[]),i=cO(os,i,o),o=Pe,(Dt===null?o.memoizedState:Dt.next)===null&&(o=o.alternate,$.H=o===null||o.memoizedState===null?t_:_y),i}function Uf(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return eu(i);if(i.$$typeof===T)return nn(i)}throw Error(r(438,String(i)))}function my(i){var o=null,u=Pe.updateQueue;if(u!==null&&(o=u.memoCache),o==null){var h=Pe.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(v){return v.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),u===null&&(u=If(),Pe.updateQueue=u),u.memoCache=o,u=o.data[o.index],u===void 0)for(u=o.data[o.index]=Array(i),h=0;h<i;h++)u[h]=B;return o.index++,u}function ci(i,o){return typeof o=="function"?o(i):o}function Vf(i){var o=Mt();return yy(o,rt,i)}function yy(i,o,u){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=u;var v=i.baseQueue,x=h.pending;if(x!==null){if(v!==null){var N=v.next;v.next=x.next,x.next=N}o.baseQueue=v=x,h.pending=null}if(x=i.baseState,v===null)i.memoizedState=x;else{o=v.next;var R=N=null,U=null,Z=o,te=!1;do{var oe=Z.lane&-536870913;if(oe!==Z.lane?(Ie&oe)===oe:(ui&oe)===oe){var J=Z.revertLane;if(J===0)U!==null&&(U=U.next={lane:0,revertLane:0,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null}),oe===es&&(te=!0);else if((ui&J)===J){Z=Z.next,J===es&&(te=!0);continue}else oe={lane:0,revertLane:Z.revertLane,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},U===null?(R=U=oe,N=x):U=U.next=oe,Pe.lanes|=J,ea|=J;oe=Z.action,Xa&&u(x,oe),x=Z.hasEagerState?Z.eagerState:u(x,oe)}else J={lane:oe,revertLane:Z.revertLane,gesture:Z.gesture,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},U===null?(R=U=J,N=x):U=U.next=J,Pe.lanes|=oe,ea|=oe;Z=Z.next}while(Z!==null&&Z!==o);if(U===null?N=x:U.next=R,!Pn(x,i.memoizedState)&&(kt=!0,te&&(u=ts,u!==null)))throw u;i.memoizedState=x,i.baseState=N,i.baseQueue=U,h.lastRenderedState=x}return v===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function vy(i){var o=Mt(),u=o.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var h=u.dispatch,v=u.pending,x=o.memoizedState;if(v!==null){u.pending=null;var N=v=v.next;do x=i(x,N.action),N=N.next;while(N!==v);Pn(x,o.memoizedState)||(kt=!0),o.memoizedState=x,o.baseQueue===null&&(o.baseState=x),u.lastRenderedState=x}return[x,h]}function SO(i,o,u){var h=Pe,v=Mt(),x=Ve;if(x){if(u===void 0)throw Error(r(407));u=u()}else u=o();var N=!Pn((rt||v).memoizedState,u);if(N&&(v.memoizedState=u,kt=!0),v=v.queue,by(AO.bind(null,h,v,i),[i]),v.getSnapshot!==o||N||Dt!==null&&Dt.memoizedState.tag&1){if(h.flags|=2048,ss(9,{destroy:void 0},jO.bind(null,h,v,u,o),null),st===null)throw Error(r(349));x||(ui&127)!==0||wO(h,o,u)}return u}function wO(i,o,u){i.flags|=16384,i={getSnapshot:o,value:u},o=Pe.updateQueue,o===null?(o=If(),Pe.updateQueue=o,o.stores=[i]):(u=o.stores,u===null?o.stores=[i]:u.push(i))}function jO(i,o,u,h){o.value=u,o.getSnapshot=h,OO(o)&&_O(i)}function AO(i,o,u){return u(function(){OO(o)&&_O(i)})}function OO(i){var o=i.getSnapshot;i=i.value;try{var u=o();return!Pn(i,u)}catch{return!0}}function _O(i){var o=qa(i,2);o!==null&&Tn(o,i,2)}function gy(i){var o=mn();if(typeof i=="function"){var u=i;if(i=u(),Xa){qi(!0);try{u()}finally{qi(!1)}}}return o.memoizedState=o.baseState=i,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:i},o}function TO(i,o,u,h){return i.baseState=u,yy(i,rt,typeof h=="function"?h:ci)}function V5(i,o,u,h,v){if(Ff(i))throw Error(r(485));if(i=o.action,i!==null){var x={payload:v,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(N){x.listeners.push(N)}};$.T!==null?u(!0):x.isTransition=!1,h(x),u=o.pending,u===null?(x.next=o.pending=x,EO(o,x)):(x.next=u.next,o.pending=u.next=x)}}function EO(i,o){var u=o.action,h=o.payload,v=i.state;if(o.isTransition){var x=$.T,N={};$.T=N;try{var R=u(v,h),U=$.S;U!==null&&U(N,R),NO(i,o,R)}catch(Z){xy(i,o,Z)}finally{x!==null&&N.types!==null&&(x.types=N.types),$.T=x}}else try{x=u(v,h),NO(i,o,x)}catch(Z){xy(i,o,Z)}}function NO(i,o,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){CO(i,o,h)},function(h){return xy(i,o,h)}):CO(i,o,u)}function CO(i,o,u){o.status="fulfilled",o.value=u,MO(o),i.state=u,o=i.pending,o!==null&&(u=o.next,u===o?i.pending=null:(u=u.next,o.next=u,EO(i,u)))}function xy(i,o,u){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=u,MO(o),o=o.next;while(o!==h)}i.action=null}function MO(i){i=i.listeners;for(var o=0;o<i.length;o++)(0,i[o])()}function PO(i,o){return o}function RO(i,o){if(Ve){var u=st.formState;if(u!==null){e:{var h=Pe;if(Ve){if(yt){t:{for(var v=yt,x=er;v.nodeType!==8;){if(!x){v=null;break t}if(v=nr(v.nextSibling),v===null){v=null;break t}}x=v.data,v=x==="F!"||x==="F"?v:null}if(v){yt=nr(v.nextSibling),h=v.data==="F!";break e}}Gi(h)}h=!1}h&&(o=u[0])}}return u=mn(),u.memoizedState=u.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:PO,lastRenderedState:o},u.queue=h,u=QO.bind(null,Pe,h),h.dispatch=u,h=gy(!1),x=Oy.bind(null,Pe,!1,h.queue),h=mn(),v={state:o,dispatch:null,action:i,pending:null},h.queue=v,u=V5.bind(null,Pe,v,x,u),v.dispatch=u,h.memoizedState=i,[o,u,!1]}function DO(i){var o=Mt();return kO(o,rt,i)}function kO(i,o,u){if(o=yy(i,o,PO)[0],i=Vf(ci)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=eu(o)}catch(N){throw N===ns?Rf:N}else h=o;o=Mt();var v=o.queue,x=v.dispatch;return u!==o.memoizedState&&(Pe.flags|=2048,ss(9,{destroy:void 0},H5.bind(null,v,u),null)),[h,x,i]}function H5(i,o){i.action=o}function LO(i){var o=Mt(),u=rt;if(u!==null)return kO(o,u,i);Mt(),o=o.memoizedState,u=Mt();var h=u.queue.dispatch;return u.memoizedState=i,[o,h,!1]}function ss(i,o,u,h){return i={tag:i,create:u,deps:h,inst:o,next:null},o=Pe.updateQueue,o===null&&(o=If(),Pe.updateQueue=o),u=o.lastEffect,u===null?o.lastEffect=i.next=i:(h=u.next,u.next=i,i.next=h,o.lastEffect=i),i}function zO(){return Mt().memoizedState}function Hf(i,o,u,h){var v=mn();Pe.flags|=i,v.memoizedState=ss(1|o,{destroy:void 0},u,h===void 0?null:h)}function Gf(i,o,u,h){var v=Mt();h=h===void 0?null:h;var x=v.memoizedState.inst;rt!==null&&h!==null&&cy(h,rt.memoizedState.deps)?v.memoizedState=ss(o,x,u,h):(Pe.flags|=i,v.memoizedState=ss(1|o,x,u,h))}function $O(i,o){Hf(8390656,8,i,o)}function by(i,o){Gf(2048,8,i,o)}function G5(i){Pe.flags|=4;var o=Pe.updateQueue;if(o===null)o=If(),Pe.updateQueue=o,o.events=[i];else{var u=o.events;u===null?o.events=[i]:u.push(i)}}function BO(i){var o=Mt().memoizedState;return G5({ref:o,nextImpl:i}),function(){if((Ke&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}function qO(i,o){return Gf(4,2,i,o)}function IO(i,o){return Gf(4,4,i,o)}function UO(i,o){if(typeof o=="function"){i=i();var u=o(i);return function(){typeof u=="function"?u():o(null)}}if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function VO(i,o,u){u=u!=null?u.concat([i]):null,Gf(4,4,UO.bind(null,o,i),u)}function Sy(){}function HO(i,o){var u=Mt();o=o===void 0?null:o;var h=u.memoizedState;return o!==null&&cy(o,h[1])?h[0]:(u.memoizedState=[i,o],i)}function GO(i,o){var u=Mt();o=o===void 0?null:o;var h=u.memoizedState;if(o!==null&&cy(o,h[1]))return h[0];if(h=i(),Xa){qi(!0);try{i()}finally{qi(!1)}}return u.memoizedState=[h,o],h}function wy(i,o,u){return u===void 0||(ui&1073741824)!==0&&(Ie&261930)===0?i.memoizedState=o:(i.memoizedState=u,i=F_(),Pe.lanes|=i,ea|=i,u)}function FO(i,o,u,h){return Pn(u,o)?u:is.current!==null?(i=wy(i,u,h),Pn(i,o)||(kt=!0),i):(ui&42)===0||(ui&1073741824)!==0&&(Ie&261930)===0?(kt=!0,i.memoizedState=u):(i=F_(),Pe.lanes|=i,ea|=i,o)}function KO(i,o,u,h,v){var x=K.p;K.p=x!==0&&8>x?x:8;var N=$.T,R={};$.T=R,Oy(i,!1,o,u);try{var U=v(),Z=$.S;if(Z!==null&&Z(R,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var te=q5(U,h);tu(i,o,te,$n(i))}else tu(i,o,h,$n(i))}catch(oe){tu(i,o,{then:function(){},status:"rejected",reason:oe},$n())}finally{K.p=x,N!==null&&R.types!==null&&(N.types=R.types),$.T=N}}function F5(){}function jy(i,o,u,h){if(i.tag!==5)throw Error(r(476));var v=YO(i).queue;KO(i,v,o,Q,u===null?F5:function(){return XO(i),u(h)})}function YO(i){var o=i.memoizedState;if(o!==null)return o;o={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:Q},next:null};var u={};return o.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ci,lastRenderedState:u},next:null},i.memoizedState=o,i=i.alternate,i!==null&&(i.memoizedState=o),o}function XO(i){var o=YO(i);o.next===null&&(o=i.alternate.memoizedState),tu(i,o.next.queue,{},$n())}function Ay(){return nn(gu)}function WO(){return Mt().memoizedState}function ZO(){return Mt().memoizedState}function K5(i){for(var o=i.return;o!==null;){switch(o.tag){case 24:case 3:var u=$n();i=Yi(u);var h=Xi(o,i,u);h!==null&&(Tn(h,o,u),Wl(h,o,u)),o={cache:Jm()},i.payload=o;return}o=o.return}}function Y5(i,o,u){var h=$n();u={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Ff(i)?JO(o,u):(u=Um(i,o,u,h),u!==null&&(Tn(u,i,h),e_(u,o,h)))}function QO(i,o,u){var h=$n();tu(i,o,u,h)}function tu(i,o,u,h){var v={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Ff(i))JO(o,v);else{var x=i.alternate;if(i.lanes===0&&(x===null||x.lanes===0)&&(x=o.lastRenderedReducer,x!==null))try{var N=o.lastRenderedState,R=x(N,u);if(v.hasEagerState=!0,v.eagerState=R,Pn(R,N))return _f(i,o,v,0),st===null&&Of(),!1}catch{}finally{}if(u=Um(i,o,v,h),u!==null)return Tn(u,i,h),e_(u,o,h),!0}return!1}function Oy(i,o,u,h){if(h={lane:2,revertLane:rv(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Ff(i)){if(o)throw Error(r(479))}else o=Um(i,u,h,2),o!==null&&Tn(o,i,2)}function Ff(i){var o=i.alternate;return i===Pe||o!==null&&o===Pe}function JO(i,o){as=Bf=!0;var u=i.pending;u===null?o.next=o:(o.next=u.next,u.next=o),i.pending=o}function e_(i,o,u){if((u&4194048)!==0){var h=o.lanes;h&=i.pendingLanes,u|=h,o.lanes=u,aA(i,u)}}var nu={readContext:nn,use:Uf,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useLayoutEffect:_t,useInsertionEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useSyncExternalStore:_t,useId:_t,useHostTransitionStatus:_t,useFormState:_t,useActionState:_t,useOptimistic:_t,useMemoCache:_t,useCacheRefresh:_t};nu.useEffectEvent=_t;var t_={readContext:nn,use:Uf,useCallback:function(i,o){return mn().memoizedState=[i,o===void 0?null:o],i},useContext:nn,useEffect:$O,useImperativeHandle:function(i,o,u){u=u!=null?u.concat([i]):null,Hf(4194308,4,UO.bind(null,o,i),u)},useLayoutEffect:function(i,o){return Hf(4194308,4,i,o)},useInsertionEffect:function(i,o){Hf(4,2,i,o)},useMemo:function(i,o){var u=mn();o=o===void 0?null:o;var h=i();if(Xa){qi(!0);try{i()}finally{qi(!1)}}return u.memoizedState=[h,o],h},useReducer:function(i,o,u){var h=mn();if(u!==void 0){var v=u(o);if(Xa){qi(!0);try{u(o)}finally{qi(!1)}}}else v=o;return h.memoizedState=h.baseState=v,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:v},h.queue=i,i=i.dispatch=Y5.bind(null,Pe,i),[h.memoizedState,i]},useRef:function(i){var o=mn();return i={current:i},o.memoizedState=i},useState:function(i){i=gy(i);var o=i.queue,u=QO.bind(null,Pe,o);return o.dispatch=u,[i.memoizedState,u]},useDebugValue:Sy,useDeferredValue:function(i,o){var u=mn();return wy(u,i,o)},useTransition:function(){var i=gy(!1);return i=KO.bind(null,Pe,i.queue,!0,!1),mn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,o,u){var h=Pe,v=mn();if(Ve){if(u===void 0)throw Error(r(407));u=u()}else{if(u=o(),st===null)throw Error(r(349));(Ie&127)!==0||wO(h,o,u)}v.memoizedState=u;var x={value:u,getSnapshot:o};return v.queue=x,$O(AO.bind(null,h,x,i),[i]),h.flags|=2048,ss(9,{destroy:void 0},jO.bind(null,h,x,u,o),null),u},useId:function(){var i=mn(),o=st.identifierPrefix;if(Ve){var u=Lr,h=kr;u=(h&~(1<<32-Mn(h)-1)).toString(32)+u,o="_"+o+"R_"+u,u=qf++,0<u&&(o+="H"+u.toString(32)),o+="_"}else u=I5++,o="_"+o+"r_"+u.toString(32)+"_";return i.memoizedState=o},useHostTransitionStatus:Ay,useFormState:RO,useActionState:RO,useOptimistic:function(i){var o=mn();o.memoizedState=o.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=u,o=Oy.bind(null,Pe,!0,u),u.dispatch=o,[i,o]},useMemoCache:my,useCacheRefresh:function(){return mn().memoizedState=K5.bind(null,Pe)},useEffectEvent:function(i){var o=mn(),u={impl:i};return o.memoizedState=u,function(){if((Ke&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},_y={readContext:nn,use:Uf,useCallback:HO,useContext:nn,useEffect:by,useImperativeHandle:VO,useInsertionEffect:qO,useLayoutEffect:IO,useMemo:GO,useReducer:Vf,useRef:zO,useState:function(){return Vf(ci)},useDebugValue:Sy,useDeferredValue:function(i,o){var u=Mt();return FO(u,rt.memoizedState,i,o)},useTransition:function(){var i=Vf(ci)[0],o=Mt().memoizedState;return[typeof i=="boolean"?i:eu(i),o]},useSyncExternalStore:SO,useId:WO,useHostTransitionStatus:Ay,useFormState:DO,useActionState:DO,useOptimistic:function(i,o){var u=Mt();return TO(u,rt,i,o)},useMemoCache:my,useCacheRefresh:ZO};_y.useEffectEvent=BO;var n_={readContext:nn,use:Uf,useCallback:HO,useContext:nn,useEffect:by,useImperativeHandle:VO,useInsertionEffect:qO,useLayoutEffect:IO,useMemo:GO,useReducer:vy,useRef:zO,useState:function(){return vy(ci)},useDebugValue:Sy,useDeferredValue:function(i,o){var u=Mt();return rt===null?wy(u,i,o):FO(u,rt.memoizedState,i,o)},useTransition:function(){var i=vy(ci)[0],o=Mt().memoizedState;return[typeof i=="boolean"?i:eu(i),o]},useSyncExternalStore:SO,useId:WO,useHostTransitionStatus:Ay,useFormState:LO,useActionState:LO,useOptimistic:function(i,o){var u=Mt();return rt!==null?TO(u,rt,i,o):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:my,useCacheRefresh:ZO};n_.useEffectEvent=BO;function Ty(i,o,u,h){o=i.memoizedState,u=u(h,o),u=u==null?o:y({},o,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var Ey={enqueueSetState:function(i,o,u){i=i._reactInternals;var h=$n(),v=Yi(h);v.payload=o,u!=null&&(v.callback=u),o=Xi(i,v,h),o!==null&&(Tn(o,i,h),Wl(o,i,h))},enqueueReplaceState:function(i,o,u){i=i._reactInternals;var h=$n(),v=Yi(h);v.tag=1,v.payload=o,u!=null&&(v.callback=u),o=Xi(i,v,h),o!==null&&(Tn(o,i,h),Wl(o,i,h))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var u=$n(),h=Yi(u);h.tag=2,o!=null&&(h.callback=o),o=Xi(i,h,u),o!==null&&(Tn(o,i,u),Wl(o,i,u))}};function r_(i,o,u,h,v,x,N){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,x,N):o.prototype&&o.prototype.isPureReactComponent?!Ul(u,h)||!Ul(v,x):!0}function i_(i,o,u,h){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(u,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(u,h),o.state!==i&&Ey.enqueueReplaceState(o,o.state,null)}function Wa(i,o){var u=o;if("ref"in o){u={};for(var h in o)h!=="ref"&&(u[h]=o[h])}if(i=i.defaultProps){u===o&&(u=y({},u));for(var v in i)u[v]===void 0&&(u[v]=i[v])}return u}function a_(i){Af(i)}function o_(i){console.error(i)}function s_(i){Af(i)}function Kf(i,o){try{var u=i.onUncaughtError;u(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function l_(i,o,u){try{var h=i.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Ny(i,o,u){return u=Yi(u),u.tag=3,u.payload={element:null},u.callback=function(){Kf(i,o)},u}function u_(i){return i=Yi(i),i.tag=3,i}function c_(i,o,u,h){var v=u.type.getDerivedStateFromError;if(typeof v=="function"){var x=h.value;i.payload=function(){return v(x)},i.callback=function(){l_(o,u,h)}}var N=u.stateNode;N!==null&&typeof N.componentDidCatch=="function"&&(i.callback=function(){l_(o,u,h),typeof v!="function"&&(ta===null?ta=new Set([this]):ta.add(this));var R=h.stack;this.componentDidCatch(h.value,{componentStack:R!==null?R:""})})}function X5(i,o,u,h,v){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=u.alternate,o!==null&&Jo(o,u,v,!0),u=Dn.current,u!==null){switch(u.tag){case 31:case 13:return tr===null?ad():u.alternate===null&&Tt===0&&(Tt=3),u.flags&=-257,u.flags|=65536,u.lanes=v,h===Df?u.flags|=16384:(o=u.updateQueue,o===null?u.updateQueue=new Set([h]):o.add(h),ev(i,h,v)),!1;case 22:return u.flags|=65536,h===Df?u.flags|=16384:(o=u.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([h])},u.updateQueue=o):(u=o.retryQueue,u===null?o.retryQueue=new Set([h]):u.add(h)),ev(i,h,v)),!1}throw Error(r(435,u.tag))}return ev(i,h,v),ad(),!1}if(Ve)return o=Dn.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=v,h!==Ym&&(i=Error(r(422),{cause:h}),Gl(Zn(i,u)))):(h!==Ym&&(o=Error(r(423),{cause:h}),Gl(Zn(o,u))),i=i.current.alternate,i.flags|=65536,v&=-v,i.lanes|=v,h=Zn(h,u),v=Ny(i.stateNode,h,v),ay(i,v),Tt!==4&&(Tt=2)),!1;var x=Error(r(520),{cause:h});if(x=Zn(x,u),cu===null?cu=[x]:cu.push(x),Tt!==4&&(Tt=2),o===null)return!0;h=Zn(h,u),u=o;do{switch(u.tag){case 3:return u.flags|=65536,i=v&-v,u.lanes|=i,i=Ny(u.stateNode,h,i),ay(u,i),!1;case 1:if(o=u.type,x=u.stateNode,(u.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(ta===null||!ta.has(x))))return u.flags|=65536,v&=-v,u.lanes|=v,v=u_(v),c_(v,i,u,h),ay(u,v),!1}u=u.return}while(u!==null);return!1}var Cy=Error(r(461)),kt=!1;function rn(i,o,u,h){o.child=i===null?pO(o,null,u,h):Ya(o,i.child,u,h)}function f_(i,o,u,h,v){u=u.render;var x=o.ref;if("ref"in h){var N={};for(var R in h)R!=="ref"&&(N[R]=h[R])}else N=h;return Ha(o),h=fy(i,o,u,N,x,v),R=dy(),i!==null&&!kt?(hy(i,o,v),fi(i,o,v)):(Ve&&R&&Fm(o),o.flags|=1,rn(i,o,h,v),o.child)}function d_(i,o,u,h,v){if(i===null){var x=u.type;return typeof x=="function"&&!Vm(x)&&x.defaultProps===void 0&&u.compare===null?(o.tag=15,o.type=x,h_(i,o,x,h,v)):(i=Ef(u.type,null,h,o,o.mode,v),i.ref=o.ref,i.return=o,o.child=i)}if(x=i.child,!$y(i,v)){var N=x.memoizedProps;if(u=u.compare,u=u!==null?u:Ul,u(N,h)&&i.ref===o.ref)return fi(i,o,v)}return o.flags|=1,i=ai(x,h),i.ref=o.ref,i.return=o,o.child=i}function h_(i,o,u,h,v){if(i!==null){var x=i.memoizedProps;if(Ul(x,h)&&i.ref===o.ref)if(kt=!1,o.pendingProps=h=x,$y(i,v))(i.flags&131072)!==0&&(kt=!0);else return o.lanes=i.lanes,fi(i,o,v)}return My(i,o,u,h,v)}function p_(i,o,u,h){var v=h.children,x=i!==null?i.memoizedState:null;if(i===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((o.flags&128)!==0){if(x=x!==null?x.baseLanes|u:u,i!==null){for(h=o.child=i.child,v=0;h!==null;)v=v|h.lanes|h.childLanes,h=h.sibling;h=v&~x}else h=0,o.child=null;return m_(i,o,x,u,h)}if((u&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},i!==null&&Pf(o,x!==null?x.cachePool:null),x!==null?vO(o,x):sy(),gO(o);else return h=o.lanes=536870912,m_(i,o,x!==null?x.baseLanes|u:u,u,h)}else x!==null?(Pf(o,x.cachePool),vO(o,x),Zi(),o.memoizedState=null):(i!==null&&Pf(o,null),sy(),Zi());return rn(i,o,v,u),o.child}function ru(i,o){return i!==null&&i.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function m_(i,o,u,h,v){var x=ty();return x=x===null?null:{parent:Rt._currentValue,pool:x},o.memoizedState={baseLanes:u,cachePool:x},i!==null&&Pf(o,null),sy(),gO(o),i!==null&&Jo(i,o,h,!0),o.childLanes=v,null}function Yf(i,o){return o=Wf({mode:o.mode,children:o.children},i.mode),o.ref=i.ref,i.child=o,o.return=i,o}function y_(i,o,u){return Ya(o,i.child,null,u),i=Yf(o,o.pendingProps),i.flags|=2,kn(o),o.memoizedState=null,i}function W5(i,o,u){var h=o.pendingProps,v=(o.flags&128)!==0;if(o.flags&=-129,i===null){if(Ve){if(h.mode==="hidden")return i=Yf(o,h),o.lanes=536870912,ru(null,i);if(uy(o),(i=yt)?(i=E2(i,er),i=i!==null&&i.data==="&"?i:null,i!==null&&(o.memoizedState={dehydrated:i,treeContext:Vi!==null?{id:kr,overflow:Lr}:null,retryLane:536870912,hydrationErrors:null},u=JA(i),u.return=o,o.child=u,tn=o,yt=null)):i=null,i===null)throw Gi(o);return o.lanes=536870912,null}return Yf(o,h)}var x=i.memoizedState;if(x!==null){var N=x.dehydrated;if(uy(o),v)if(o.flags&256)o.flags&=-257,o=y_(i,o,u);else if(o.memoizedState!==null)o.child=i.child,o.flags|=128,o=null;else throw Error(r(558));else if(kt||Jo(i,o,u,!1),v=(u&i.childLanes)!==0,kt||v){if(h=st,h!==null&&(N=oA(h,u),N!==0&&N!==x.retryLane))throw x.retryLane=N,qa(i,N),Tn(h,i,N),Cy;ad(),o=y_(i,o,u)}else i=x.treeContext,yt=nr(N.nextSibling),tn=o,Ve=!0,Hi=null,er=!1,i!==null&&nO(o,i),o=Yf(o,h),o.flags|=4096;return o}return i=ai(i.child,{mode:h.mode,children:h.children}),i.ref=o.ref,o.child=i,i.return=o,i}function Xf(i,o){var u=o.ref;if(u===null)i!==null&&i.ref!==null&&(o.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(o.flags|=4194816)}}function My(i,o,u,h,v){return Ha(o),u=fy(i,o,u,h,void 0,v),h=dy(),i!==null&&!kt?(hy(i,o,v),fi(i,o,v)):(Ve&&h&&Fm(o),o.flags|=1,rn(i,o,u,v),o.child)}function v_(i,o,u,h,v,x){return Ha(o),o.updateQueue=null,u=bO(o,h,u,v),xO(i),h=dy(),i!==null&&!kt?(hy(i,o,x),fi(i,o,x)):(Ve&&h&&Fm(o),o.flags|=1,rn(i,o,u,x),o.child)}function g_(i,o,u,h,v){if(Ha(o),o.stateNode===null){var x=Xo,N=u.contextType;typeof N=="object"&&N!==null&&(x=nn(N)),x=new u(h,x),o.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=Ey,o.stateNode=x,x._reactInternals=o,x=o.stateNode,x.props=h,x.state=o.memoizedState,x.refs={},ry(o),N=u.contextType,x.context=typeof N=="object"&&N!==null?nn(N):Xo,x.state=o.memoizedState,N=u.getDerivedStateFromProps,typeof N=="function"&&(Ty(o,u,N,h),x.state=o.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(N=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),N!==x.state&&Ey.enqueueReplaceState(x,x.state,null),Ql(o,h,x,v),Zl(),x.state=o.memoizedState),typeof x.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(i===null){x=o.stateNode;var R=o.memoizedProps,U=Wa(u,R);x.props=U;var Z=x.context,te=u.contextType;N=Xo,typeof te=="object"&&te!==null&&(N=nn(te));var oe=u.getDerivedStateFromProps;te=typeof oe=="function"||typeof x.getSnapshotBeforeUpdate=="function",R=o.pendingProps!==R,te||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(R||Z!==N)&&i_(o,x,h,N),Ki=!1;var J=o.memoizedState;x.state=J,Ql(o,h,x,v),Zl(),Z=o.memoizedState,R||J!==Z||Ki?(typeof oe=="function"&&(Ty(o,u,oe,h),Z=o.memoizedState),(U=Ki||r_(o,u,U,h,J,Z,N))?(te||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(o.flags|=4194308)):(typeof x.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=Z),x.props=h,x.state=Z,x.context=N,h=U):(typeof x.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{x=o.stateNode,iy(i,o),N=o.memoizedProps,te=Wa(u,N),x.props=te,oe=o.pendingProps,J=x.context,Z=u.contextType,U=Xo,typeof Z=="object"&&Z!==null&&(U=nn(Z)),R=u.getDerivedStateFromProps,(Z=typeof R=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(N!==oe||J!==U)&&i_(o,x,h,U),Ki=!1,J=o.memoizedState,x.state=J,Ql(o,h,x,v),Zl();var ee=o.memoizedState;N!==oe||J!==ee||Ki||i!==null&&i.dependencies!==null&&Cf(i.dependencies)?(typeof R=="function"&&(Ty(o,u,R,h),ee=o.memoizedState),(te=Ki||r_(o,u,te,h,J,ee,U)||i!==null&&i.dependencies!==null&&Cf(i.dependencies))?(Z||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(h,ee,U),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(h,ee,U)),typeof x.componentDidUpdate=="function"&&(o.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof x.componentDidUpdate!="function"||N===i.memoizedProps&&J===i.memoizedState||(o.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&J===i.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=ee),x.props=h,x.state=ee,x.context=U,h=te):(typeof x.componentDidUpdate!="function"||N===i.memoizedProps&&J===i.memoizedState||(o.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&J===i.memoizedState||(o.flags|=1024),h=!1)}return x=h,Xf(i,o),h=(o.flags&128)!==0,x||h?(x=o.stateNode,u=h&&typeof u.getDerivedStateFromError!="function"?null:x.render(),o.flags|=1,i!==null&&h?(o.child=Ya(o,i.child,null,v),o.child=Ya(o,null,u,v)):rn(i,o,u,v),o.memoizedState=x.state,i=o.child):i=fi(i,o,v),i}function x_(i,o,u,h){return Ua(),o.flags|=256,rn(i,o,u,h),o.child}var Py={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ry(i){return{baseLanes:i,cachePool:lO()}}function Dy(i,o,u){return i=i!==null?i.childLanes&~u:0,o&&(i|=zn),i}function b_(i,o,u){var h=o.pendingProps,v=!1,x=(o.flags&128)!==0,N;if((N=x)||(N=i!==null&&i.memoizedState===null?!1:(Ct.current&2)!==0),N&&(v=!0,o.flags&=-129),N=(o.flags&32)!==0,o.flags&=-33,i===null){if(Ve){if(v?Wi(o):Zi(),(i=yt)?(i=E2(i,er),i=i!==null&&i.data!=="&"?i:null,i!==null&&(o.memoizedState={dehydrated:i,treeContext:Vi!==null?{id:kr,overflow:Lr}:null,retryLane:536870912,hydrationErrors:null},u=JA(i),u.return=o,o.child=u,tn=o,yt=null)):i=null,i===null)throw Gi(o);return yv(i)?o.lanes=32:o.lanes=536870912,null}var R=h.children;return h=h.fallback,v?(Zi(),v=o.mode,R=Wf({mode:"hidden",children:R},v),h=Ia(h,v,u,null),R.return=o,h.return=o,R.sibling=h,o.child=R,h=o.child,h.memoizedState=Ry(u),h.childLanes=Dy(i,N,u),o.memoizedState=Py,ru(null,h)):(Wi(o),ky(o,R))}var U=i.memoizedState;if(U!==null&&(R=U.dehydrated,R!==null)){if(x)o.flags&256?(Wi(o),o.flags&=-257,o=Ly(i,o,u)):o.memoizedState!==null?(Zi(),o.child=i.child,o.flags|=128,o=null):(Zi(),R=h.fallback,v=o.mode,h=Wf({mode:"visible",children:h.children},v),R=Ia(R,v,u,null),R.flags|=2,h.return=o,R.return=o,h.sibling=R,o.child=h,Ya(o,i.child,null,u),h=o.child,h.memoizedState=Ry(u),h.childLanes=Dy(i,N,u),o.memoizedState=Py,o=ru(null,h));else if(Wi(o),yv(R)){if(N=R.nextSibling&&R.nextSibling.dataset,N)var Z=N.dgst;N=Z,h=Error(r(419)),h.stack="",h.digest=N,Gl({value:h,source:null,stack:null}),o=Ly(i,o,u)}else if(kt||Jo(i,o,u,!1),N=(u&i.childLanes)!==0,kt||N){if(N=st,N!==null&&(h=oA(N,u),h!==0&&h!==U.retryLane))throw U.retryLane=h,qa(i,h),Tn(N,i,h),Cy;mv(R)||ad(),o=Ly(i,o,u)}else mv(R)?(o.flags|=192,o.child=i.child,o=null):(i=U.treeContext,yt=nr(R.nextSibling),tn=o,Ve=!0,Hi=null,er=!1,i!==null&&nO(o,i),o=ky(o,h.children),o.flags|=4096);return o}return v?(Zi(),R=h.fallback,v=o.mode,U=i.child,Z=U.sibling,h=ai(U,{mode:"hidden",children:h.children}),h.subtreeFlags=U.subtreeFlags&65011712,Z!==null?R=ai(Z,R):(R=Ia(R,v,u,null),R.flags|=2),R.return=o,h.return=o,h.sibling=R,o.child=h,ru(null,h),h=o.child,R=i.child.memoizedState,R===null?R=Ry(u):(v=R.cachePool,v!==null?(U=Rt._currentValue,v=v.parent!==U?{parent:U,pool:U}:v):v=lO(),R={baseLanes:R.baseLanes|u,cachePool:v}),h.memoizedState=R,h.childLanes=Dy(i,N,u),o.memoizedState=Py,ru(i.child,h)):(Wi(o),u=i.child,i=u.sibling,u=ai(u,{mode:"visible",children:h.children}),u.return=o,u.sibling=null,i!==null&&(N=o.deletions,N===null?(o.deletions=[i],o.flags|=16):N.push(i)),o.child=u,o.memoizedState=null,u)}function ky(i,o){return o=Wf({mode:"visible",children:o},i.mode),o.return=i,i.child=o}function Wf(i,o){return i=Rn(22,i,null,o),i.lanes=0,i}function Ly(i,o,u){return Ya(o,i.child,null,u),i=ky(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function S_(i,o,u){i.lanes|=o;var h=i.alternate;h!==null&&(h.lanes|=o),Zm(i.return,o,u)}function zy(i,o,u,h,v,x){var N=i.memoizedState;N===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:v,treeForkCount:x}:(N.isBackwards=o,N.rendering=null,N.renderingStartTime=0,N.last=h,N.tail=u,N.tailMode=v,N.treeForkCount=x)}function w_(i,o,u){var h=o.pendingProps,v=h.revealOrder,x=h.tail;h=h.children;var N=Ct.current,R=(N&2)!==0;if(R?(N=N&1|2,o.flags|=128):N&=1,re(Ct,N),rn(i,o,h,u),h=Ve?Hl:0,!R&&i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&S_(i,u,o);else if(i.tag===19)S_(i,u,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(v){case"forwards":for(u=o.child,v=null;u!==null;)i=u.alternate,i!==null&&$f(i)===null&&(v=u),u=u.sibling;u=v,u===null?(v=o.child,o.child=null):(v=u.sibling,u.sibling=null),zy(o,!1,v,u,x,h);break;case"backwards":case"unstable_legacy-backwards":for(u=null,v=o.child,o.child=null;v!==null;){if(i=v.alternate,i!==null&&$f(i)===null){o.child=v;break}i=v.sibling,v.sibling=u,u=v,v=i}zy(o,!0,u,null,x,h);break;case"together":zy(o,!1,null,null,void 0,h);break;default:o.memoizedState=null}return o.child}function fi(i,o,u){if(i!==null&&(o.dependencies=i.dependencies),ea|=o.lanes,(u&o.childLanes)===0)if(i!==null){if(Jo(i,o,u,!1),(u&o.childLanes)===0)return null}else return null;if(i!==null&&o.child!==i.child)throw Error(r(153));if(o.child!==null){for(i=o.child,u=ai(i,i.pendingProps),o.child=u,u.return=o;i.sibling!==null;)i=i.sibling,u=u.sibling=ai(i,i.pendingProps),u.return=o;u.sibling=null}return o.child}function $y(i,o){return(i.lanes&o)!==0?!0:(i=i.dependencies,!!(i!==null&&Cf(i)))}function Z5(i,o,u){switch(o.tag){case 3:Xe(o,o.stateNode.containerInfo),Fi(o,Rt,i.memoizedState.cache),Ua();break;case 27:case 5:Te(o);break;case 4:Xe(o,o.stateNode.containerInfo);break;case 10:Fi(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,uy(o),null;break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(Wi(o),o.flags|=128,null):(u&o.child.childLanes)!==0?b_(i,o,u):(Wi(o),i=fi(i,o,u),i!==null?i.sibling:null);Wi(o);break;case 19:var v=(i.flags&128)!==0;if(h=(u&o.childLanes)!==0,h||(Jo(i,o,u,!1),h=(u&o.childLanes)!==0),v){if(h)return w_(i,o,u);o.flags|=128}if(v=o.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),re(Ct,Ct.current),h)break;return null;case 22:return o.lanes=0,p_(i,o,u,o.pendingProps);case 24:Fi(o,Rt,i.memoizedState.cache)}return fi(i,o,u)}function j_(i,o,u){if(i!==null)if(i.memoizedProps!==o.pendingProps)kt=!0;else{if(!$y(i,u)&&(o.flags&128)===0)return kt=!1,Z5(i,o,u);kt=(i.flags&131072)!==0}else kt=!1,Ve&&(o.flags&1048576)!==0&&tO(o,Hl,o.index);switch(o.lanes=0,o.tag){case 16:e:{var h=o.pendingProps;if(i=Fa(o.elementType),o.type=i,typeof i=="function")Vm(i)?(h=Wa(i,h),o.tag=1,o=g_(null,o,i,h,u)):(o.tag=0,o=My(null,o,i,h,u));else{if(i!=null){var v=i.$$typeof;if(v===C){o.tag=11,o=f_(null,o,i,h,u);break e}else if(v===M){o.tag=14,o=d_(null,o,i,h,u);break e}}throw o=X(i)||i,Error(r(306,o,""))}}return o;case 0:return My(i,o,o.type,o.pendingProps,u);case 1:return h=o.type,v=Wa(h,o.pendingProps),g_(i,o,h,v,u);case 3:e:{if(Xe(o,o.stateNode.containerInfo),i===null)throw Error(r(387));h=o.pendingProps;var x=o.memoizedState;v=x.element,iy(i,o),Ql(o,h,null,u);var N=o.memoizedState;if(h=N.cache,Fi(o,Rt,h),h!==x.cache&&Qm(o,[Rt],u,!0),Zl(),h=N.element,x.isDehydrated)if(x={element:h,isDehydrated:!1,cache:N.cache},o.updateQueue.baseState=x,o.memoizedState=x,o.flags&256){o=x_(i,o,h,u);break e}else if(h!==v){v=Zn(Error(r(424)),o),Gl(v),o=x_(i,o,h,u);break e}else{switch(i=o.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(yt=nr(i.firstChild),tn=o,Ve=!0,Hi=null,er=!0,u=pO(o,null,h,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Ua(),h===v){o=fi(i,o,u);break e}rn(i,o,h,u)}o=o.child}return o;case 26:return Xf(i,o),i===null?(u=D2(o.type,null,o.pendingProps,null))?o.memoizedState=u:Ve||(u=o.type,i=o.pendingProps,h=dd(je.current).createElement(u),h[en]=o,h[Sn]=i,an(h,u,i),Xt(h),o.stateNode=h):o.memoizedState=D2(o.type,i.memoizedProps,o.pendingProps,i.memoizedState),null;case 27:return Te(o),i===null&&Ve&&(h=o.stateNode=M2(o.type,o.pendingProps,je.current),tn=o,er=!0,v=yt,aa(o.type)?(vv=v,yt=nr(h.firstChild)):yt=v),rn(i,o,o.pendingProps.children,u),Xf(i,o),i===null&&(o.flags|=4194304),o.child;case 5:return i===null&&Ve&&((v=h=yt)&&(h=T6(h,o.type,o.pendingProps,er),h!==null?(o.stateNode=h,tn=o,yt=nr(h.firstChild),er=!1,v=!0):v=!1),v||Gi(o)),Te(o),v=o.type,x=o.pendingProps,N=i!==null?i.memoizedProps:null,h=x.children,dv(v,x)?h=null:N!==null&&dv(v,N)&&(o.flags|=32),o.memoizedState!==null&&(v=fy(i,o,U5,null,null,u),gu._currentValue=v),Xf(i,o),rn(i,o,h,u),o.child;case 6:return i===null&&Ve&&((i=u=yt)&&(u=E6(u,o.pendingProps,er),u!==null?(o.stateNode=u,tn=o,yt=null,i=!0):i=!1),i||Gi(o)),null;case 13:return b_(i,o,u);case 4:return Xe(o,o.stateNode.containerInfo),h=o.pendingProps,i===null?o.child=Ya(o,null,h,u):rn(i,o,h,u),o.child;case 11:return f_(i,o,o.type,o.pendingProps,u);case 7:return rn(i,o,o.pendingProps,u),o.child;case 8:return rn(i,o,o.pendingProps.children,u),o.child;case 12:return rn(i,o,o.pendingProps.children,u),o.child;case 10:return h=o.pendingProps,Fi(o,o.type,h.value),rn(i,o,h.children,u),o.child;case 9:return v=o.type._context,h=o.pendingProps.children,Ha(o),v=nn(v),h=h(v),o.flags|=1,rn(i,o,h,u),o.child;case 14:return d_(i,o,o.type,o.pendingProps,u);case 15:return h_(i,o,o.type,o.pendingProps,u);case 19:return w_(i,o,u);case 31:return W5(i,o,u);case 22:return p_(i,o,u,o.pendingProps);case 24:return Ha(o),h=nn(Rt),i===null?(v=ty(),v===null&&(v=st,x=Jm(),v.pooledCache=x,x.refCount++,x!==null&&(v.pooledCacheLanes|=u),v=x),o.memoizedState={parent:h,cache:v},ry(o),Fi(o,Rt,v)):((i.lanes&u)!==0&&(iy(i,o),Ql(o,null,null,u),Zl()),v=i.memoizedState,x=o.memoizedState,v.parent!==h?(v={parent:h,cache:h},o.memoizedState=v,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=v),Fi(o,Rt,h)):(h=x.cache,Fi(o,Rt,h),h!==v.cache&&Qm(o,[Rt],u,!0))),rn(i,o,o.pendingProps.children,u),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function di(i){i.flags|=4}function By(i,o,u,h,v){if((o=(i.mode&32)!==0)&&(o=!1),o){if(i.flags|=16777216,(v&335544128)===v)if(i.stateNode.complete)i.flags|=8192;else if(W_())i.flags|=8192;else throw Ka=Df,ny}else i.flags&=-16777217}function A_(i,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!B2(o))if(W_())i.flags|=8192;else throw Ka=Df,ny}function Zf(i,o){o!==null&&(i.flags|=4),i.flags&16384&&(o=i.tag!==22?rA():536870912,i.lanes|=o,fs|=o)}function iu(i,o){if(!Ve)switch(i.tailMode){case"hidden":o=i.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function vt(i){var o=i.alternate!==null&&i.alternate.child===i.child,u=0,h=0;if(o)for(var v=i.child;v!==null;)u|=v.lanes|v.childLanes,h|=v.subtreeFlags&65011712,h|=v.flags&65011712,v.return=i,v=v.sibling;else for(v=i.child;v!==null;)u|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=i,v=v.sibling;return i.subtreeFlags|=h,i.childLanes=u,o}function Q5(i,o,u){var h=o.pendingProps;switch(Km(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(o),null;case 1:return vt(o),null;case 3:return u=o.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),li(Rt),ce(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(Qo(o)?di(o):i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Xm())),vt(o),null;case 26:var v=o.type,x=o.memoizedState;return i===null?(di(o),x!==null?(vt(o),A_(o,x)):(vt(o),By(o,v,null,h,u))):x?x!==i.memoizedState?(di(o),vt(o),A_(o,x)):(vt(o),o.flags&=-16777217):(i=i.memoizedProps,i!==h&&di(o),vt(o),By(o,v,i,h,u)),null;case 27:if(Ne(o),u=je.current,v=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==h&&di(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return vt(o),null}i=fe.current,Qo(o)?rO(o):(i=M2(v,h,u),o.stateNode=i,di(o))}return vt(o),null;case 5:if(Ne(o),v=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==h&&di(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return vt(o),null}if(x=fe.current,Qo(o))rO(o);else{var N=dd(je.current);switch(x){case 1:x=N.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:x=N.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":x=N.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":x=N.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":x=N.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild);break;case"select":x=typeof h.is=="string"?N.createElement("select",{is:h.is}):N.createElement("select"),h.multiple?x.multiple=!0:h.size&&(x.size=h.size);break;default:x=typeof h.is=="string"?N.createElement(v,{is:h.is}):N.createElement(v)}}x[en]=o,x[Sn]=h;e:for(N=o.child;N!==null;){if(N.tag===5||N.tag===6)x.appendChild(N.stateNode);else if(N.tag!==4&&N.tag!==27&&N.child!==null){N.child.return=N,N=N.child;continue}if(N===o)break e;for(;N.sibling===null;){if(N.return===null||N.return===o)break e;N=N.return}N.sibling.return=N.return,N=N.sibling}o.stateNode=x;e:switch(an(x,v,h),v){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&di(o)}}return vt(o),By(o,o.type,i===null?null:i.memoizedProps,o.pendingProps,u),null;case 6:if(i&&o.stateNode!=null)i.memoizedProps!==h&&di(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(i=je.current,Qo(o)){if(i=o.stateNode,u=o.memoizedProps,h=null,v=tn,v!==null)switch(v.tag){case 27:case 5:h=v.memoizedProps}i[en]=o,i=!!(i.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||b2(i.nodeValue,u)),i||Gi(o,!0)}else i=dd(i).createTextNode(h),i[en]=o,o.stateNode=i}return vt(o),null;case 31:if(u=o.memoizedState,i===null||i.memoizedState!==null){if(h=Qo(o),u!==null){if(i===null){if(!h)throw Error(r(318));if(i=o.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[en]=o}else Ua(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;vt(o),i=!1}else u=Xm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=u),i=!0;if(!i)return o.flags&256?(kn(o),o):(kn(o),null);if((o.flags&128)!==0)throw Error(r(558))}return vt(o),null;case 13:if(h=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(v=Qo(o),h!==null&&h.dehydrated!==null){if(i===null){if(!v)throw Error(r(318));if(v=o.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[en]=o}else Ua(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;vt(o),v=!1}else v=Xm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=v),v=!0;if(!v)return o.flags&256?(kn(o),o):(kn(o),null)}return kn(o),(o.flags&128)!==0?(o.lanes=u,o):(u=h!==null,i=i!==null&&i.memoizedState!==null,u&&(h=o.child,v=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(v=h.alternate.memoizedState.cachePool.pool),x=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(x=h.memoizedState.cachePool.pool),x!==v&&(h.flags|=2048)),u!==i&&u&&(o.child.flags|=8192),Zf(o,o.updateQueue),vt(o),null);case 4:return ce(),i===null&&sv(o.stateNode.containerInfo),vt(o),null;case 10:return li(o.type),vt(o),null;case 19:if(H(Ct),h=o.memoizedState,h===null)return vt(o),null;if(v=(o.flags&128)!==0,x=h.rendering,x===null)if(v)iu(h,!1);else{if(Tt!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(x=$f(i),x!==null){for(o.flags|=128,iu(h,!1),i=x.updateQueue,o.updateQueue=i,Zf(o,i),o.subtreeFlags=0,i=u,u=o.child;u!==null;)QA(u,i),u=u.sibling;return re(Ct,Ct.current&1|2),Ve&&oi(o,h.treeForkCount),o.child}i=i.sibling}h.tail!==null&&cn()>nd&&(o.flags|=128,v=!0,iu(h,!1),o.lanes=4194304)}else{if(!v)if(i=$f(x),i!==null){if(o.flags|=128,v=!0,i=i.updateQueue,o.updateQueue=i,Zf(o,i),iu(h,!0),h.tail===null&&h.tailMode==="hidden"&&!x.alternate&&!Ve)return vt(o),null}else 2*cn()-h.renderingStartTime>nd&&u!==536870912&&(o.flags|=128,v=!0,iu(h,!1),o.lanes=4194304);h.isBackwards?(x.sibling=o.child,o.child=x):(i=h.last,i!==null?i.sibling=x:o.child=x,h.last=x)}return h.tail!==null?(i=h.tail,h.rendering=i,h.tail=i.sibling,h.renderingStartTime=cn(),i.sibling=null,u=Ct.current,re(Ct,v?u&1|2:u&1),Ve&&oi(o,h.treeForkCount),i):(vt(o),null);case 22:case 23:return kn(o),ly(),h=o.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(o.flags|=8192):h&&(o.flags|=8192),h?(u&536870912)!==0&&(o.flags&128)===0&&(vt(o),o.subtreeFlags&6&&(o.flags|=8192)):vt(o),u=o.updateQueue,u!==null&&Zf(o,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==u&&(o.flags|=2048),i!==null&&H(Ga),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),o.memoizedState.cache!==u&&(o.flags|=2048),li(Rt),vt(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function J5(i,o){switch(Km(o),o.tag){case 1:return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return li(Rt),ce(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 26:case 27:case 5:return Ne(o),null;case 31:if(o.memoizedState!==null){if(kn(o),o.alternate===null)throw Error(r(340));Ua()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 13:if(kn(o),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Ua()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return H(Ct),null;case 4:return ce(),null;case 10:return li(o.type),null;case 22:case 23:return kn(o),ly(),i!==null&&H(Ga),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 24:return li(Rt),null;case 25:return null;default:return null}}function O_(i,o){switch(Km(o),o.tag){case 3:li(Rt),ce();break;case 26:case 27:case 5:Ne(o);break;case 4:ce();break;case 31:o.memoizedState!==null&&kn(o);break;case 13:kn(o);break;case 19:H(Ct);break;case 10:li(o.type);break;case 22:case 23:kn(o),ly(),i!==null&&H(Ga);break;case 24:li(Rt)}}function au(i,o){try{var u=o.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var v=h.next;u=v;do{if((u.tag&i)===i){h=void 0;var x=u.create,N=u.inst;h=x(),N.destroy=h}u=u.next}while(u!==v)}}catch(R){et(o,o.return,R)}}function Qi(i,o,u){try{var h=o.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var x=v.next;h=x;do{if((h.tag&i)===i){var N=h.inst,R=N.destroy;if(R!==void 0){N.destroy=void 0,v=o;var U=u,Z=R;try{Z()}catch(te){et(v,U,te)}}}h=h.next}while(h!==x)}}catch(te){et(o,o.return,te)}}function __(i){var o=i.updateQueue;if(o!==null){var u=i.stateNode;try{yO(o,u)}catch(h){et(i,i.return,h)}}}function T_(i,o,u){u.props=Wa(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(h){et(i,o,h)}}function ou(i,o){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var h=i.stateNode;break;case 30:h=i.stateNode;break;default:h=i.stateNode}typeof u=="function"?i.refCleanup=u(h):u.current=h}}catch(v){et(i,o,v)}}function zr(i,o){var u=i.ref,h=i.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(v){et(i,o,v)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(v){et(i,o,v)}else u.current=null}function E_(i){var o=i.type,u=i.memoizedProps,h=i.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":u.autoFocus&&h.focus();break e;case"img":u.src?h.src=u.src:u.srcSet&&(h.srcset=u.srcSet)}}catch(v){et(i,i.return,v)}}function qy(i,o,u){try{var h=i.stateNode;S6(h,i.type,u,o),h[Sn]=o}catch(v){et(i,i.return,v)}}function N_(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&aa(i.type)||i.tag===4}function Iy(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||N_(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&aa(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Uy(i,o,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,o):(o=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,o.appendChild(i),u=u._reactRootContainer,u!=null||o.onclick!==null||(o.onclick=ri));else if(h!==4&&(h===27&&aa(i.type)&&(u=i.stateNode,o=null),i=i.child,i!==null))for(Uy(i,o,u),i=i.sibling;i!==null;)Uy(i,o,u),i=i.sibling}function Qf(i,o,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?u.insertBefore(i,o):u.appendChild(i);else if(h!==4&&(h===27&&aa(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(Qf(i,o,u),i=i.sibling;i!==null;)Qf(i,o,u),i=i.sibling}function C_(i){var o=i.stateNode,u=i.memoizedProps;try{for(var h=i.type,v=o.attributes;v.length;)o.removeAttributeNode(v[0]);an(o,h,u),o[en]=i,o[Sn]=u}catch(x){et(i,i.return,x)}}var hi=!1,Lt=!1,Vy=!1,M_=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function e6(i,o){if(i=i.containerInfo,cv=xd,i=VA(i),Lm(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var v=h.anchorOffset,x=h.focusNode;h=h.focusOffset;try{u.nodeType,x.nodeType}catch{u=null;break e}var N=0,R=-1,U=-1,Z=0,te=0,oe=i,J=null;t:for(;;){for(var ee;oe!==u||v!==0&&oe.nodeType!==3||(R=N+v),oe!==x||h!==0&&oe.nodeType!==3||(U=N+h),oe.nodeType===3&&(N+=oe.nodeValue.length),(ee=oe.firstChild)!==null;)J=oe,oe=ee;for(;;){if(oe===i)break t;if(J===u&&++Z===v&&(R=N),J===x&&++te===h&&(U=N),(ee=oe.nextSibling)!==null)break;oe=J,J=oe.parentNode}oe=ee}u=R===-1||U===-1?null:{start:R,end:U}}else u=null}u=u||{start:0,end:0}}else u=null;for(fv={focusedElem:i,selectionRange:u},xd=!1,Wt=o;Wt!==null;)if(o=Wt,i=o.child,(o.subtreeFlags&1028)!==0&&i!==null)i.return=o,Wt=i;else for(;Wt!==null;){switch(o=Wt,x=o.alternate,i=o.flags,o.tag){case 0:if((i&4)!==0&&(i=o.updateQueue,i=i!==null?i.events:null,i!==null))for(u=0;u<i.length;u++)v=i[u],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&x!==null){i=void 0,u=o,v=x.memoizedProps,x=x.memoizedState,h=u.stateNode;try{var me=Wa(u.type,v);i=h.getSnapshotBeforeUpdate(me,x),h.__reactInternalSnapshotBeforeUpdate=i}catch(Ae){et(u,u.return,Ae)}}break;case 3:if((i&1024)!==0){if(i=o.stateNode.containerInfo,u=i.nodeType,u===9)pv(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":pv(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=o.sibling,i!==null){i.return=o.return,Wt=i;break}Wt=o.return}}function P_(i,o,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:mi(i,u),h&4&&au(5,u);break;case 1:if(mi(i,u),h&4)if(i=u.stateNode,o===null)try{i.componentDidMount()}catch(N){et(u,u.return,N)}else{var v=Wa(u.type,o.memoizedProps);o=o.memoizedState;try{i.componentDidUpdate(v,o,i.__reactInternalSnapshotBeforeUpdate)}catch(N){et(u,u.return,N)}}h&64&&__(u),h&512&&ou(u,u.return);break;case 3:if(mi(i,u),h&64&&(i=u.updateQueue,i!==null)){if(o=null,u.child!==null)switch(u.child.tag){case 27:case 5:o=u.child.stateNode;break;case 1:o=u.child.stateNode}try{yO(i,o)}catch(N){et(u,u.return,N)}}break;case 27:o===null&&h&4&&C_(u);case 26:case 5:mi(i,u),o===null&&h&4&&E_(u),h&512&&ou(u,u.return);break;case 12:mi(i,u);break;case 31:mi(i,u),h&4&&k_(i,u);break;case 13:mi(i,u),h&4&&L_(i,u),h&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=u6.bind(null,u),N6(i,u))));break;case 22:if(h=u.memoizedState!==null||hi,!h){o=o!==null&&o.memoizedState!==null||Lt,v=hi;var x=Lt;hi=h,(Lt=o)&&!x?yi(i,u,(u.subtreeFlags&8772)!==0):mi(i,u),hi=v,Lt=x}break;case 30:break;default:mi(i,u)}}function R_(i){var o=i.alternate;o!==null&&(i.alternate=null,R_(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&xm(o)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var St=null,jn=!1;function pi(i,o,u){for(u=u.child;u!==null;)D_(i,o,u),u=u.sibling}function D_(i,o,u){if(Cn&&typeof Cn.onCommitFiberUnmount=="function")try{Cn.onCommitFiberUnmount(Cl,u)}catch{}switch(u.tag){case 26:Lt||zr(u,o),pi(i,o,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Lt||zr(u,o);var h=St,v=jn;aa(u.type)&&(St=u.stateNode,jn=!1),pi(i,o,u),mu(u.stateNode),St=h,jn=v;break;case 5:Lt||zr(u,o);case 6:if(h=St,v=jn,St=null,pi(i,o,u),St=h,jn=v,St!==null)if(jn)try{(St.nodeType===9?St.body:St.nodeName==="HTML"?St.ownerDocument.body:St).removeChild(u.stateNode)}catch(x){et(u,o,x)}else try{St.removeChild(u.stateNode)}catch(x){et(u,o,x)}break;case 18:St!==null&&(jn?(i=St,_2(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),xs(i)):_2(St,u.stateNode));break;case 4:h=St,v=jn,St=u.stateNode.containerInfo,jn=!0,pi(i,o,u),St=h,jn=v;break;case 0:case 11:case 14:case 15:Qi(2,u,o),Lt||Qi(4,u,o),pi(i,o,u);break;case 1:Lt||(zr(u,o),h=u.stateNode,typeof h.componentWillUnmount=="function"&&T_(u,o,h)),pi(i,o,u);break;case 21:pi(i,o,u);break;case 22:Lt=(h=Lt)||u.memoizedState!==null,pi(i,o,u),Lt=h;break;default:pi(i,o,u)}}function k_(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{xs(i)}catch(u){et(o,o.return,u)}}}function L_(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{xs(i)}catch(u){et(o,o.return,u)}}function t6(i){switch(i.tag){case 31:case 13:case 19:var o=i.stateNode;return o===null&&(o=i.stateNode=new M_),o;case 22:return i=i.stateNode,o=i._retryCache,o===null&&(o=i._retryCache=new M_),o;default:throw Error(r(435,i.tag))}}function Jf(i,o){var u=t6(i);o.forEach(function(h){if(!u.has(h)){u.add(h);var v=c6.bind(null,i,h);h.then(v,v)}})}function An(i,o){var u=o.deletions;if(u!==null)for(var h=0;h<u.length;h++){var v=u[h],x=i,N=o,R=N;e:for(;R!==null;){switch(R.tag){case 27:if(aa(R.type)){St=R.stateNode,jn=!1;break e}break;case 5:St=R.stateNode,jn=!1;break e;case 3:case 4:St=R.stateNode.containerInfo,jn=!0;break e}R=R.return}if(St===null)throw Error(r(160));D_(x,N,v),St=null,jn=!1,x=v.alternate,x!==null&&(x.return=null),v.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)z_(o,i),o=o.sibling}var gr=null;function z_(i,o){var u=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:An(o,i),On(i),h&4&&(Qi(3,i,i.return),au(3,i),Qi(5,i,i.return));break;case 1:An(o,i),On(i),h&512&&(Lt||u===null||zr(u,u.return)),h&64&&hi&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?h:u.concat(h))));break;case 26:var v=gr;if(An(o,i),On(i),h&512&&(Lt||u===null||zr(u,u.return)),h&4){var x=u!==null?u.memoizedState:null;if(h=i.memoizedState,u===null)if(h===null)if(i.stateNode===null){e:{h=i.type,u=i.memoizedProps,v=v.ownerDocument||v;t:switch(h){case"title":x=v.getElementsByTagName("title")[0],(!x||x[Rl]||x[en]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=v.createElement(h),v.head.insertBefore(x,v.querySelector("head > title"))),an(x,h,u),x[en]=i,Xt(x),h=x;break e;case"link":var N=z2("link","href",v).get(h+(u.href||""));if(N){for(var R=0;R<N.length;R++)if(x=N[R],x.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&x.getAttribute("rel")===(u.rel==null?null:u.rel)&&x.getAttribute("title")===(u.title==null?null:u.title)&&x.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){N.splice(R,1);break t}}x=v.createElement(h),an(x,h,u),v.head.appendChild(x);break;case"meta":if(N=z2("meta","content",v).get(h+(u.content||""))){for(R=0;R<N.length;R++)if(x=N[R],x.getAttribute("content")===(u.content==null?null:""+u.content)&&x.getAttribute("name")===(u.name==null?null:u.name)&&x.getAttribute("property")===(u.property==null?null:u.property)&&x.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&x.getAttribute("charset")===(u.charSet==null?null:u.charSet)){N.splice(R,1);break t}}x=v.createElement(h),an(x,h,u),v.head.appendChild(x);break;default:throw Error(r(468,h))}x[en]=i,Xt(x),h=x}i.stateNode=h}else $2(v,i.type,i.stateNode);else i.stateNode=L2(v,h,i.memoizedProps);else x!==h?(x===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):x.count--,h===null?$2(v,i.type,i.stateNode):L2(v,h,i.memoizedProps)):h===null&&i.stateNode!==null&&qy(i,i.memoizedProps,u.memoizedProps)}break;case 27:An(o,i),On(i),h&512&&(Lt||u===null||zr(u,u.return)),u!==null&&h&4&&qy(i,i.memoizedProps,u.memoizedProps);break;case 5:if(An(o,i),On(i),h&512&&(Lt||u===null||zr(u,u.return)),i.flags&32){v=i.stateNode;try{Uo(v,"")}catch(me){et(i,i.return,me)}}h&4&&i.stateNode!=null&&(v=i.memoizedProps,qy(i,v,u!==null?u.memoizedProps:v)),h&1024&&(Vy=!0);break;case 6:if(An(o,i),On(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,u=i.stateNode;try{u.nodeValue=h}catch(me){et(i,i.return,me)}}break;case 3:if(md=null,v=gr,gr=hd(o.containerInfo),An(o,i),gr=v,On(i),h&4&&u!==null&&u.memoizedState.isDehydrated)try{xs(o.containerInfo)}catch(me){et(i,i.return,me)}Vy&&(Vy=!1,$_(i));break;case 4:h=gr,gr=hd(i.stateNode.containerInfo),An(o,i),On(i),gr=h;break;case 12:An(o,i),On(i);break;case 31:An(o,i),On(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,Jf(i,h)));break;case 13:An(o,i),On(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(td=cn()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,Jf(i,h)));break;case 22:v=i.memoizedState!==null;var U=u!==null&&u.memoizedState!==null,Z=hi,te=Lt;if(hi=Z||v,Lt=te||U,An(o,i),Lt=te,hi=Z,On(i),h&8192)e:for(o=i.stateNode,o._visibility=v?o._visibility&-2:o._visibility|1,v&&(u===null||U||hi||Lt||Za(i)),u=null,o=i;;){if(o.tag===5||o.tag===26){if(u===null){U=u=o;try{if(x=U.stateNode,v)N=x.style,typeof N.setProperty=="function"?N.setProperty("display","none","important"):N.display="none";else{R=U.stateNode;var oe=U.memoizedProps.style,J=oe!=null&&oe.hasOwnProperty("display")?oe.display:null;R.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(me){et(U,U.return,me)}}}else if(o.tag===6){if(u===null){U=o;try{U.stateNode.nodeValue=v?"":U.memoizedProps}catch(me){et(U,U.return,me)}}}else if(o.tag===18){if(u===null){U=o;try{var ee=U.stateNode;v?T2(ee,!0):T2(U.stateNode,!1)}catch(me){et(U,U.return,me)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===i)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;u===o&&(u=null),o=o.return}u===o&&(u=null),o.sibling.return=o.return,o=o.sibling}h&4&&(h=i.updateQueue,h!==null&&(u=h.retryQueue,u!==null&&(h.retryQueue=null,Jf(i,u))));break;case 19:An(o,i),On(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,Jf(i,h)));break;case 30:break;case 21:break;default:An(o,i),On(i)}}function On(i){var o=i.flags;if(o&2){try{for(var u,h=i.return;h!==null;){if(N_(h)){u=h;break}h=h.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var v=u.stateNode,x=Iy(i);Qf(i,x,v);break;case 5:var N=u.stateNode;u.flags&32&&(Uo(N,""),u.flags&=-33);var R=Iy(i);Qf(i,R,N);break;case 3:case 4:var U=u.stateNode.containerInfo,Z=Iy(i);Uy(i,Z,U);break;default:throw Error(r(161))}}catch(te){et(i,i.return,te)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function $_(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var o=i;$_(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),i=i.sibling}}function mi(i,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)P_(i,o.alternate,o),o=o.sibling}function Za(i){for(i=i.child;i!==null;){var o=i;switch(o.tag){case 0:case 11:case 14:case 15:Qi(4,o,o.return),Za(o);break;case 1:zr(o,o.return);var u=o.stateNode;typeof u.componentWillUnmount=="function"&&T_(o,o.return,u),Za(o);break;case 27:mu(o.stateNode);case 26:case 5:zr(o,o.return),Za(o);break;case 22:o.memoizedState===null&&Za(o);break;case 30:Za(o);break;default:Za(o)}i=i.sibling}}function yi(i,o,u){for(u=u&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,v=i,x=o,N=x.flags;switch(x.tag){case 0:case 11:case 15:yi(v,x,u),au(4,x);break;case 1:if(yi(v,x,u),h=x,v=h.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(Z){et(h,h.return,Z)}if(h=x,v=h.updateQueue,v!==null){var R=h.stateNode;try{var U=v.shared.hiddenCallbacks;if(U!==null)for(v.shared.hiddenCallbacks=null,v=0;v<U.length;v++)mO(U[v],R)}catch(Z){et(h,h.return,Z)}}u&&N&64&&__(x),ou(x,x.return);break;case 27:C_(x);case 26:case 5:yi(v,x,u),u&&h===null&&N&4&&E_(x),ou(x,x.return);break;case 12:yi(v,x,u);break;case 31:yi(v,x,u),u&&N&4&&k_(v,x);break;case 13:yi(v,x,u),u&&N&4&&L_(v,x);break;case 22:x.memoizedState===null&&yi(v,x,u),ou(x,x.return);break;case 30:break;default:yi(v,x,u)}o=o.sibling}}function Hy(i,o){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(i=o.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&Fl(u))}function Gy(i,o){i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&Fl(i))}function xr(i,o,u,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)B_(i,o,u,h),o=o.sibling}function B_(i,o,u,h){var v=o.flags;switch(o.tag){case 0:case 11:case 15:xr(i,o,u,h),v&2048&&au(9,o);break;case 1:xr(i,o,u,h);break;case 3:xr(i,o,u,h),v&2048&&(i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&Fl(i)));break;case 12:if(v&2048){xr(i,o,u,h),i=o.stateNode;try{var x=o.memoizedProps,N=x.id,R=x.onPostCommit;typeof R=="function"&&R(N,o.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(U){et(o,o.return,U)}}else xr(i,o,u,h);break;case 31:xr(i,o,u,h);break;case 13:xr(i,o,u,h);break;case 23:break;case 22:x=o.stateNode,N=o.alternate,o.memoizedState!==null?x._visibility&2?xr(i,o,u,h):su(i,o):x._visibility&2?xr(i,o,u,h):(x._visibility|=2,ls(i,o,u,h,(o.subtreeFlags&10256)!==0||!1)),v&2048&&Hy(N,o);break;case 24:xr(i,o,u,h),v&2048&&Gy(o.alternate,o);break;default:xr(i,o,u,h)}}function ls(i,o,u,h,v){for(v=v&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var x=i,N=o,R=u,U=h,Z=N.flags;switch(N.tag){case 0:case 11:case 15:ls(x,N,R,U,v),au(8,N);break;case 23:break;case 22:var te=N.stateNode;N.memoizedState!==null?te._visibility&2?ls(x,N,R,U,v):su(x,N):(te._visibility|=2,ls(x,N,R,U,v)),v&&Z&2048&&Hy(N.alternate,N);break;case 24:ls(x,N,R,U,v),v&&Z&2048&&Gy(N.alternate,N);break;default:ls(x,N,R,U,v)}o=o.sibling}}function su(i,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var u=i,h=o,v=h.flags;switch(h.tag){case 22:su(u,h),v&2048&&Hy(h.alternate,h);break;case 24:su(u,h),v&2048&&Gy(h.alternate,h);break;default:su(u,h)}o=o.sibling}}var lu=8192;function us(i,o,u){if(i.subtreeFlags&lu)for(i=i.child;i!==null;)q_(i,o,u),i=i.sibling}function q_(i,o,u){switch(i.tag){case 26:us(i,o,u),i.flags&lu&&i.memoizedState!==null&&I6(u,gr,i.memoizedState,i.memoizedProps);break;case 5:us(i,o,u);break;case 3:case 4:var h=gr;gr=hd(i.stateNode.containerInfo),us(i,o,u),gr=h;break;case 22:i.memoizedState===null&&(h=i.alternate,h!==null&&h.memoizedState!==null?(h=lu,lu=16777216,us(i,o,u),lu=h):us(i,o,u));break;default:us(i,o,u)}}function I_(i){var o=i.alternate;if(o!==null&&(i=o.child,i!==null)){o.child=null;do o=i.sibling,i.sibling=null,i=o;while(i!==null)}}function uu(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var h=o[u];Wt=h,V_(h,i)}I_(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)U_(i),i=i.sibling}function U_(i){switch(i.tag){case 0:case 11:case 15:uu(i),i.flags&2048&&Qi(9,i,i.return);break;case 3:uu(i);break;case 12:uu(i);break;case 22:var o=i.stateNode;i.memoizedState!==null&&o._visibility&2&&(i.return===null||i.return.tag!==13)?(o._visibility&=-3,ed(i)):uu(i);break;default:uu(i)}}function ed(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var h=o[u];Wt=h,V_(h,i)}I_(i)}for(i=i.child;i!==null;){switch(o=i,o.tag){case 0:case 11:case 15:Qi(8,o,o.return),ed(o);break;case 22:u=o.stateNode,u._visibility&2&&(u._visibility&=-3,ed(o));break;default:ed(o)}i=i.sibling}}function V_(i,o){for(;Wt!==null;){var u=Wt;switch(u.tag){case 0:case 11:case 15:Qi(8,u,o);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var h=u.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:Fl(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,Wt=h;else e:for(u=i;Wt!==null;){h=Wt;var v=h.sibling,x=h.return;if(R_(h),h===u){Wt=null;break e}if(v!==null){v.return=x,Wt=v;break e}Wt=x}}}var n6={getCacheForType:function(i){var o=nn(Rt),u=o.data.get(i);return u===void 0&&(u=i(),o.data.set(i,u)),u},cacheSignal:function(){return nn(Rt).controller.signal}},r6=typeof WeakMap=="function"?WeakMap:Map,Ke=0,st=null,$e=null,Ie=0,Je=0,Ln=null,Ji=!1,cs=!1,Fy=!1,vi=0,Tt=0,ea=0,Qa=0,Ky=0,zn=0,fs=0,cu=null,_n=null,Yy=!1,td=0,H_=0,nd=1/0,rd=null,ta=null,It=0,na=null,ds=null,gi=0,Xy=0,Wy=null,G_=null,fu=0,Zy=null;function $n(){return(Ke&2)!==0&&Ie!==0?Ie&-Ie:$.T!==null?rv():sA()}function F_(){if(zn===0)if((Ie&536870912)===0||Ve){var i=ff;ff<<=1,(ff&3932160)===0&&(ff=262144),zn=i}else zn=536870912;return i=Dn.current,i!==null&&(i.flags|=32),zn}function Tn(i,o,u){(i===st&&(Je===2||Je===9)||i.cancelPendingCommit!==null)&&(hs(i,0),ra(i,Ie,zn,!1)),Pl(i,u),((Ke&2)===0||i!==st)&&(i===st&&((Ke&2)===0&&(Qa|=u),Tt===4&&ra(i,Ie,zn,!1)),$r(i))}function K_(i,o,u){if((Ke&6)!==0)throw Error(r(327));var h=!u&&(o&127)===0&&(o&i.expiredLanes)===0||Ml(i,o),v=h?o6(i,o):Jy(i,o,!0),x=h;do{if(v===0){cs&&!h&&ra(i,o,0,!1);break}else{if(u=i.current.alternate,x&&!i6(u)){v=Jy(i,o,!1),x=!1;continue}if(v===2){if(x=o,i.errorRecoveryDisabledLanes&x)var N=0;else N=i.pendingLanes&-536870913,N=N!==0?N:N&536870912?536870912:0;if(N!==0){o=N;e:{var R=i;v=cu;var U=R.current.memoizedState.isDehydrated;if(U&&(hs(R,N).flags|=256),N=Jy(R,N,!1),N!==2){if(Fy&&!U){R.errorRecoveryDisabledLanes|=x,Qa|=x,v=4;break e}x=_n,_n=v,x!==null&&(_n===null?_n=x:_n.push.apply(_n,x))}v=N}if(x=!1,v!==2)continue}}if(v===1){hs(i,0),ra(i,o,0,!0);break}e:{switch(h=i,x=v,x){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:ra(h,o,zn,!Ji);break e;case 2:_n=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(v=td+300-cn(),10<v)){if(ra(h,o,zn,!Ji),hf(h,0,!0)!==0)break e;gi=o,h.timeoutHandle=A2(Y_.bind(null,h,u,_n,rd,Yy,o,zn,Qa,fs,Ji,x,"Throttled",-0,0),v);break e}Y_(h,u,_n,rd,Yy,o,zn,Qa,fs,Ji,x,null,-0,0)}}break}while(!0);$r(i)}function Y_(i,o,u,h,v,x,N,R,U,Z,te,oe,J,ee){if(i.timeoutHandle=-1,oe=o.subtreeFlags,oe&8192||(oe&16785408)===16785408){oe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ri},q_(o,x,oe);var me=(x&62914560)===x?td-cn():(x&4194048)===x?H_-cn():0;if(me=U6(oe,me),me!==null){gi=x,i.cancelPendingCommit=me(n2.bind(null,i,o,x,u,h,v,N,R,U,te,oe,null,J,ee)),ra(i,x,N,!Z);return}}n2(i,o,x,u,h,v,N,R,U)}function i6(i){for(var o=i;;){var u=o.tag;if((u===0||u===11||u===15)&&o.flags&16384&&(u=o.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var h=0;h<u.length;h++){var v=u[h],x=v.getSnapshot;v=v.value;try{if(!Pn(x(),v))return!1}catch{return!1}}if(u=o.child,o.subtreeFlags&16384&&u!==null)u.return=o,o=u;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ra(i,o,u,h){o&=~Ky,o&=~Qa,i.suspendedLanes|=o,i.pingedLanes&=~o,h&&(i.warmLanes|=o),h=i.expirationTimes;for(var v=o;0<v;){var x=31-Mn(v),N=1<<x;h[x]=-1,v&=~N}u!==0&&iA(i,u,o)}function id(){return(Ke&6)===0?(du(0),!1):!0}function Qy(){if($e!==null){if(Je===0)var i=$e.return;else i=$e,si=Va=null,py(i),rs=null,Yl=0,i=$e;for(;i!==null;)O_(i.alternate,i),i=i.return;$e=null}}function hs(i,o){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,A6(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),gi=0,Qy(),st=i,$e=u=ai(i.current,null),Ie=o,Je=0,Ln=null,Ji=!1,cs=Ml(i,o),Fy=!1,fs=zn=Ky=Qa=ea=Tt=0,_n=cu=null,Yy=!1,(o&8)!==0&&(o|=o&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=o;0<h;){var v=31-Mn(h),x=1<<v;o|=i[v],h&=~x}return vi=o,Of(),u}function X_(i,o){Pe=null,$.H=nu,o===ns||o===Rf?(o=fO(),Je=3):o===ny?(o=fO(),Je=4):Je=o===Cy?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Ln=o,$e===null&&(Tt=1,Kf(i,Zn(o,i.current)))}function W_(){var i=Dn.current;return i===null?!0:(Ie&4194048)===Ie?tr===null:(Ie&62914560)===Ie||(Ie&536870912)!==0?i===tr:!1}function Z_(){var i=$.H;return $.H=nu,i===null?nu:i}function Q_(){var i=$.A;return $.A=n6,i}function ad(){Tt=4,Ji||(Ie&4194048)!==Ie&&Dn.current!==null||(cs=!0),(ea&134217727)===0&&(Qa&134217727)===0||st===null||ra(st,Ie,zn,!1)}function Jy(i,o,u){var h=Ke;Ke|=2;var v=Z_(),x=Q_();(st!==i||Ie!==o)&&(rd=null,hs(i,o)),o=!1;var N=Tt;e:do try{if(Je!==0&&$e!==null){var R=$e,U=Ln;switch(Je){case 8:Qy(),N=6;break e;case 3:case 2:case 9:case 6:Dn.current===null&&(o=!0);var Z=Je;if(Je=0,Ln=null,ps(i,R,U,Z),u&&cs){N=0;break e}break;default:Z=Je,Je=0,Ln=null,ps(i,R,U,Z)}}a6(),N=Tt;break}catch(te){X_(i,te)}while(!0);return o&&i.shellSuspendCounter++,si=Va=null,Ke=h,$.H=v,$.A=x,$e===null&&(st=null,Ie=0,Of()),N}function a6(){for(;$e!==null;)J_($e)}function o6(i,o){var u=Ke;Ke|=2;var h=Z_(),v=Q_();st!==i||Ie!==o?(rd=null,nd=cn()+500,hs(i,o)):cs=Ml(i,o);e:do try{if(Je!==0&&$e!==null){o=$e;var x=Ln;t:switch(Je){case 1:Je=0,Ln=null,ps(i,o,x,1);break;case 2:case 9:if(uO(x)){Je=0,Ln=null,e2(o);break}o=function(){Je!==2&&Je!==9||st!==i||(Je=7),$r(i)},x.then(o,o);break e;case 3:Je=7;break e;case 4:Je=5;break e;case 7:uO(x)?(Je=0,Ln=null,e2(o)):(Je=0,Ln=null,ps(i,o,x,7));break;case 5:var N=null;switch($e.tag){case 26:N=$e.memoizedState;case 5:case 27:var R=$e;if(N?B2(N):R.stateNode.complete){Je=0,Ln=null;var U=R.sibling;if(U!==null)$e=U;else{var Z=R.return;Z!==null?($e=Z,od(Z)):$e=null}break t}}Je=0,Ln=null,ps(i,o,x,5);break;case 6:Je=0,Ln=null,ps(i,o,x,6);break;case 8:Qy(),Tt=6;break e;default:throw Error(r(462))}}s6();break}catch(te){X_(i,te)}while(!0);return si=Va=null,$.H=h,$.A=v,Ke=u,$e!==null?0:(st=null,Ie=0,Of(),Tt)}function s6(){for(;$e!==null&&!ti();)J_($e)}function J_(i){var o=j_(i.alternate,i,vi);i.memoizedProps=i.pendingProps,o===null?od(i):$e=o}function e2(i){var o=i,u=o.alternate;switch(o.tag){case 15:case 0:o=v_(u,o,o.pendingProps,o.type,void 0,Ie);break;case 11:o=v_(u,o,o.pendingProps,o.type.render,o.ref,Ie);break;case 5:py(o);default:O_(u,o),o=$e=QA(o,vi),o=j_(u,o,vi)}i.memoizedProps=i.pendingProps,o===null?od(i):$e=o}function ps(i,o,u,h){si=Va=null,py(o),rs=null,Yl=0;var v=o.return;try{if(X5(i,v,o,u,Ie)){Tt=1,Kf(i,Zn(u,i.current)),$e=null;return}}catch(x){if(v!==null)throw $e=v,x;Tt=1,Kf(i,Zn(u,i.current)),$e=null;return}o.flags&32768?(Ve||h===1?i=!0:cs||(Ie&536870912)!==0?i=!1:(Ji=i=!0,(h===2||h===9||h===3||h===6)&&(h=Dn.current,h!==null&&h.tag===13&&(h.flags|=16384))),t2(o,i)):od(o)}function od(i){var o=i;do{if((o.flags&32768)!==0){t2(o,Ji);return}i=o.return;var u=Q5(o.alternate,o,vi);if(u!==null){$e=u;return}if(o=o.sibling,o!==null){$e=o;return}$e=o=i}while(o!==null);Tt===0&&(Tt=5)}function t2(i,o){do{var u=J5(i.alternate,i);if(u!==null){u.flags&=32767,$e=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!o&&(i=i.sibling,i!==null)){$e=i;return}$e=i=u}while(i!==null);Tt=6,$e=null}function n2(i,o,u,h,v,x,N,R,U){i.cancelPendingCommit=null;do sd();while(It!==0);if((Ke&6)!==0)throw Error(r(327));if(o!==null){if(o===i.current)throw Error(r(177));if(x=o.lanes|o.childLanes,x|=Im,qB(i,u,x,N,R,U),i===st&&($e=st=null,Ie=0),ds=o,na=i,gi=u,Xy=x,Wy=v,G_=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,f6(uf,function(){return s2(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||h){h=$.T,$.T=null,v=K.p,K.p=2,N=Ke,Ke|=4;try{e6(i,o,u)}finally{Ke=N,K.p=v,$.T=h}}It=1,r2(),i2(),a2()}}function r2(){if(It===1){It=0;var i=na,o=ds,u=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||u){u=$.T,$.T=null;var h=K.p;K.p=2;var v=Ke;Ke|=4;try{z_(o,i);var x=fv,N=VA(i.containerInfo),R=x.focusedElem,U=x.selectionRange;if(N!==R&&R&&R.ownerDocument&&UA(R.ownerDocument.documentElement,R)){if(U!==null&&Lm(R)){var Z=U.start,te=U.end;if(te===void 0&&(te=Z),"selectionStart"in R)R.selectionStart=Z,R.selectionEnd=Math.min(te,R.value.length);else{var oe=R.ownerDocument||document,J=oe&&oe.defaultView||window;if(J.getSelection){var ee=J.getSelection(),me=R.textContent.length,Ae=Math.min(U.start,me),at=U.end===void 0?Ae:Math.min(U.end,me);!ee.extend&&Ae>at&&(N=at,at=Ae,Ae=N);var G=IA(R,Ae),V=IA(R,at);if(G&&V&&(ee.rangeCount!==1||ee.anchorNode!==G.node||ee.anchorOffset!==G.offset||ee.focusNode!==V.node||ee.focusOffset!==V.offset)){var W=oe.createRange();W.setStart(G.node,G.offset),ee.removeAllRanges(),Ae>at?(ee.addRange(W),ee.extend(V.node,V.offset)):(W.setEnd(V.node,V.offset),ee.addRange(W))}}}}for(oe=[],ee=R;ee=ee.parentNode;)ee.nodeType===1&&oe.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<oe.length;R++){var ae=oe[R];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}xd=!!cv,fv=cv=null}finally{Ke=v,K.p=h,$.T=u}}i.current=o,It=2}}function i2(){if(It===2){It=0;var i=na,o=ds,u=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||u){u=$.T,$.T=null;var h=K.p;K.p=2;var v=Ke;Ke|=4;try{P_(i,o.alternate,o)}finally{Ke=v,K.p=h,$.T=u}}It=3}}function a2(){if(It===4||It===3){It=0,Nl();var i=na,o=ds,u=gi,h=G_;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?It=5:(It=0,ds=na=null,o2(i,i.pendingLanes));var v=i.pendingLanes;if(v===0&&(ta=null),vm(u),o=o.stateNode,Cn&&typeof Cn.onCommitFiberRoot=="function")try{Cn.onCommitFiberRoot(Cl,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=$.T,v=K.p,K.p=2,$.T=null;try{for(var x=i.onRecoverableError,N=0;N<h.length;N++){var R=h[N];x(R.value,{componentStack:R.stack})}}finally{$.T=o,K.p=v}}(gi&3)!==0&&sd(),$r(i),v=i.pendingLanes,(u&261930)!==0&&(v&42)!==0?i===Zy?fu++:(fu=0,Zy=i):fu=0,du(0)}}function o2(i,o){(i.pooledCacheLanes&=o)===0&&(o=i.pooledCache,o!=null&&(i.pooledCache=null,Fl(o)))}function sd(){return r2(),i2(),a2(),s2()}function s2(){if(It!==5)return!1;var i=na,o=Xy;Xy=0;var u=vm(gi),h=$.T,v=K.p;try{K.p=32>u?32:u,$.T=null,u=Wy,Wy=null;var x=na,N=gi;if(It=0,ds=na=null,gi=0,(Ke&6)!==0)throw Error(r(331));var R=Ke;if(Ke|=4,U_(x.current),B_(x,x.current,N,u),Ke=R,du(0,!1),Cn&&typeof Cn.onPostCommitFiberRoot=="function")try{Cn.onPostCommitFiberRoot(Cl,x)}catch{}return!0}finally{K.p=v,$.T=h,o2(i,o)}}function l2(i,o,u){o=Zn(u,o),o=Ny(i.stateNode,o,2),i=Xi(i,o,2),i!==null&&(Pl(i,2),$r(i))}function et(i,o,u){if(i.tag===3)l2(i,i,u);else for(;o!==null;){if(o.tag===3){l2(o,i,u);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(ta===null||!ta.has(h))){i=Zn(u,i),u=u_(2),h=Xi(o,u,2),h!==null&&(c_(u,h,o,i),Pl(h,2),$r(h));break}}o=o.return}}function ev(i,o,u){var h=i.pingCache;if(h===null){h=i.pingCache=new r6;var v=new Set;h.set(o,v)}else v=h.get(o),v===void 0&&(v=new Set,h.set(o,v));v.has(u)||(Fy=!0,v.add(u),i=l6.bind(null,i,o,u),o.then(i,i))}function l6(i,o,u){var h=i.pingCache;h!==null&&h.delete(o),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,st===i&&(Ie&u)===u&&(Tt===4||Tt===3&&(Ie&62914560)===Ie&&300>cn()-td?(Ke&2)===0&&hs(i,0):Ky|=u,fs===Ie&&(fs=0)),$r(i)}function u2(i,o){o===0&&(o=rA()),i=qa(i,o),i!==null&&(Pl(i,o),$r(i))}function u6(i){var o=i.memoizedState,u=0;o!==null&&(u=o.retryLane),u2(i,u)}function c6(i,o){var u=0;switch(i.tag){case 31:case 13:var h=i.stateNode,v=i.memoizedState;v!==null&&(u=v.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(o),u2(i,u)}function f6(i,o){return Bi(i,o)}var ld=null,ms=null,tv=!1,ud=!1,nv=!1,ia=0;function $r(i){i!==ms&&i.next===null&&(ms===null?ld=ms=i:ms=ms.next=i),ud=!0,tv||(tv=!0,h6())}function du(i,o){if(!nv&&ud){nv=!0;do for(var u=!1,h=ld;h!==null;){if(i!==0){var v=h.pendingLanes;if(v===0)var x=0;else{var N=h.suspendedLanes,R=h.pingedLanes;x=(1<<31-Mn(42|i)+1)-1,x&=v&~(N&~R),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(u=!0,h2(h,x))}else x=Ie,x=hf(h,h===st?x:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(x&3)===0||Ml(h,x)||(u=!0,h2(h,x));h=h.next}while(u);nv=!1}}function d6(){c2()}function c2(){ud=tv=!1;var i=0;ia!==0&&j6()&&(i=ia);for(var o=cn(),u=null,h=ld;h!==null;){var v=h.next,x=f2(h,o);x===0?(h.next=null,u===null?ld=v:u.next=v,v===null&&(ms=u)):(u=h,(i!==0||(x&3)!==0)&&(ud=!0)),h=v}It!==0&&It!==5||du(i),ia!==0&&(ia=0)}function f2(i,o){for(var u=i.suspendedLanes,h=i.pingedLanes,v=i.expirationTimes,x=i.pendingLanes&-62914561;0<x;){var N=31-Mn(x),R=1<<N,U=v[N];U===-1?((R&u)===0||(R&h)!==0)&&(v[N]=BB(R,o)):U<=o&&(i.expiredLanes|=R),x&=~R}if(o=st,u=Ie,u=hf(i,i===o?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,u===0||i===o&&(Je===2||Je===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&yr(h),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||Ml(i,u)){if(o=u&-u,o===i.callbackPriority)return o;switch(h!==null&&yr(h),vm(u)){case 2:case 8:u=tA;break;case 32:u=uf;break;case 268435456:u=nA;break;default:u=uf}return h=d2.bind(null,i),u=Bi(u,h),i.callbackPriority=o,i.callbackNode=u,o}return h!==null&&h!==null&&yr(h),i.callbackPriority=2,i.callbackNode=null,2}function d2(i,o){if(It!==0&&It!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(sd()&&i.callbackNode!==u)return null;var h=Ie;return h=hf(i,i===st?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:(K_(i,h,o),f2(i,cn()),i.callbackNode!=null&&i.callbackNode===u?d2.bind(null,i):null)}function h2(i,o){if(sd())return null;K_(i,o,!0)}function h6(){O6(function(){(Ke&6)!==0?Bi(eA,d6):c2()})}function rv(){if(ia===0){var i=es;i===0&&(i=cf,cf<<=1,(cf&261888)===0&&(cf=256)),ia=i}return ia}function p2(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:vf(""+i)}function m2(i,o){var u=o.ownerDocument.createElement("input");return u.name=o.name,u.value=o.value,i.id&&u.setAttribute("form",i.id),o.parentNode.insertBefore(u,o),i=new FormData(i),u.parentNode.removeChild(u),i}function p6(i,o,u,h,v){if(o==="submit"&&u&&u.stateNode===v){var x=p2((v[Sn]||null).action),N=h.submitter;N&&(o=(o=N[Sn]||null)?p2(o.formAction):N.getAttribute("formAction"),o!==null&&(x=o,N=null));var R=new Sf("action","action",null,h,v);i.push({event:R,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(ia!==0){var U=N?m2(v,N):new FormData(v);jy(u,{pending:!0,data:U,method:v.method,action:x},null,U)}}else typeof x=="function"&&(R.preventDefault(),U=N?m2(v,N):new FormData(v),jy(u,{pending:!0,data:U,method:v.method,action:x},x,U))},currentTarget:v}]})}}for(var iv=0;iv<qm.length;iv++){var av=qm[iv],m6=av.toLowerCase(),y6=av[0].toUpperCase()+av.slice(1);vr(m6,"on"+y6)}vr(FA,"onAnimationEnd"),vr(KA,"onAnimationIteration"),vr(YA,"onAnimationStart"),vr("dblclick","onDoubleClick"),vr("focusin","onFocus"),vr("focusout","onBlur"),vr(P5,"onTransitionRun"),vr(R5,"onTransitionStart"),vr(D5,"onTransitionCancel"),vr(XA,"onTransitionEnd"),qo("onMouseEnter",["mouseout","mouseover"]),qo("onMouseLeave",["mouseout","mouseover"]),qo("onPointerEnter",["pointerout","pointerover"]),qo("onPointerLeave",["pointerout","pointerover"]),La("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),La("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),La("onBeforeInput",["compositionend","keypress","textInput","paste"]),La("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hu="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(" "),v6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hu));function y2(i,o){o=(o&4)!==0;for(var u=0;u<i.length;u++){var h=i[u],v=h.event;h=h.listeners;e:{var x=void 0;if(o)for(var N=h.length-1;0<=N;N--){var R=h[N],U=R.instance,Z=R.currentTarget;if(R=R.listener,U!==x&&v.isPropagationStopped())break e;x=R,v.currentTarget=Z;try{x(v)}catch(te){Af(te)}v.currentTarget=null,x=U}else for(N=0;N<h.length;N++){if(R=h[N],U=R.instance,Z=R.currentTarget,R=R.listener,U!==x&&v.isPropagationStopped())break e;x=R,v.currentTarget=Z;try{x(v)}catch(te){Af(te)}v.currentTarget=null,x=U}}}}function Be(i,o){var u=o[gm];u===void 0&&(u=o[gm]=new Set);var h=i+"__bubble";u.has(h)||(v2(o,i,2,!1),u.add(h))}function ov(i,o,u){var h=0;o&&(h|=4),v2(u,i,h,o)}var cd="_reactListening"+Math.random().toString(36).slice(2);function sv(i){if(!i[cd]){i[cd]=!0,cA.forEach(function(u){u!=="selectionchange"&&(v6.has(u)||ov(u,!1,i),ov(u,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[cd]||(o[cd]=!0,ov("selectionchange",!1,o))}}function v2(i,o,u,h){switch(F2(o)){case 2:var v=G6;break;case 8:v=F6;break;default:v=wv}u=v.bind(null,o,u,i),v=void 0,!Tm||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(v=!0),h?v!==void 0?i.addEventListener(o,u,{capture:!0,passive:v}):i.addEventListener(o,u,!0):v!==void 0?i.addEventListener(o,u,{passive:v}):i.addEventListener(o,u,!1)}function lv(i,o,u,h,v){var x=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var N=h.tag;if(N===3||N===4){var R=h.stateNode.containerInfo;if(R===v)break;if(N===4)for(N=h.return;N!==null;){var U=N.tag;if((U===3||U===4)&&N.stateNode.containerInfo===v)return;N=N.return}for(;R!==null;){if(N=zo(R),N===null)return;if(U=N.tag,U===5||U===6||U===26||U===27){h=x=N;continue e}R=R.parentNode}}h=h.return}wA(function(){var Z=x,te=Om(u),oe=[];e:{var J=WA.get(i);if(J!==void 0){var ee=Sf,me=i;switch(i){case"keypress":if(xf(u)===0)break e;case"keydown":case"keyup":ee=c5;break;case"focusin":me="focus",ee=Mm;break;case"focusout":me="blur",ee=Mm;break;case"beforeblur":case"afterblur":ee=Mm;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=OA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=QB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=h5;break;case FA:case KA:case YA:ee=t5;break;case XA:ee=m5;break;case"scroll":case"scrollend":ee=WB;break;case"wheel":ee=v5;break;case"copy":case"cut":case"paste":ee=r5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=TA;break;case"toggle":case"beforetoggle":ee=x5}var Ae=(o&4)!==0,at=!Ae&&(i==="scroll"||i==="scrollend"),G=Ae?J!==null?J+"Capture":null:J;Ae=[];for(var V=Z,W;V!==null;){var ae=V;if(W=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||W===null||G===null||(ae=kl(V,G),ae!=null&&Ae.push(pu(V,ae,W))),at)break;V=V.return}0<Ae.length&&(J=new ee(J,me,null,u,te),oe.push({event:J,listeners:Ae}))}}if((o&7)===0){e:{if(J=i==="mouseover"||i==="pointerover",ee=i==="mouseout"||i==="pointerout",J&&u!==Am&&(me=u.relatedTarget||u.fromElement)&&(zo(me)||me[Lo]))break e;if((ee||J)&&(J=te.window===te?te:(J=te.ownerDocument)?J.defaultView||J.parentWindow:window,ee?(me=u.relatedTarget||u.toElement,ee=Z,me=me?zo(me):null,me!==null&&(at=s(me),Ae=me.tag,me!==at||Ae!==5&&Ae!==27&&Ae!==6)&&(me=null)):(ee=null,me=Z),ee!==me)){if(Ae=OA,ae="onMouseLeave",G="onMouseEnter",V="mouse",(i==="pointerout"||i==="pointerover")&&(Ae=TA,ae="onPointerLeave",G="onPointerEnter",V="pointer"),at=ee==null?J:Dl(ee),W=me==null?J:Dl(me),J=new Ae(ae,V+"leave",ee,u,te),J.target=at,J.relatedTarget=W,ae=null,zo(te)===Z&&(Ae=new Ae(G,V+"enter",me,u,te),Ae.target=W,Ae.relatedTarget=at,ae=Ae),at=ae,ee&&me)t:{for(Ae=g6,G=ee,V=me,W=0,ae=G;ae;ae=Ae(ae))W++;ae=0;for(var we=V;we;we=Ae(we))ae++;for(;0<W-ae;)G=Ae(G),W--;for(;0<ae-W;)V=Ae(V),ae--;for(;W--;){if(G===V||V!==null&&G===V.alternate){Ae=G;break t}G=Ae(G),V=Ae(V)}Ae=null}else Ae=null;ee!==null&&g2(oe,J,ee,Ae,!1),me!==null&&at!==null&&g2(oe,at,me,Ae,!0)}}e:{if(J=Z?Dl(Z):window,ee=J.nodeName&&J.nodeName.toLowerCase(),ee==="select"||ee==="input"&&J.type==="file")var He=kA;else if(RA(J))if(LA)He=N5;else{He=T5;var xe=_5}else ee=J.nodeName,!ee||ee.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?Z&&jm(Z.elementType)&&(He=kA):He=E5;if(He&&(He=He(i,Z))){DA(oe,He,u,te);break e}xe&&xe(i,J,Z),i==="focusout"&&Z&&J.type==="number"&&Z.memoizedProps.value!=null&&wm(J,"number",J.value)}switch(xe=Z?Dl(Z):window,i){case"focusin":(RA(xe)||xe.contentEditable==="true")&&(Fo=xe,zm=Z,Vl=null);break;case"focusout":Vl=zm=Fo=null;break;case"mousedown":$m=!0;break;case"contextmenu":case"mouseup":case"dragend":$m=!1,HA(oe,u,te);break;case"selectionchange":if(M5)break;case"keydown":case"keyup":HA(oe,u,te)}var ke;if(Rm)e:{switch(i){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else Go?MA(i,u)&&(Ue="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(Ue="onCompositionStart");Ue&&(EA&&u.locale!=="ko"&&(Go||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&Go&&(ke=jA()):(Ui=te,Em="value"in Ui?Ui.value:Ui.textContent,Go=!0)),xe=fd(Z,Ue),0<xe.length&&(Ue=new _A(Ue,i,null,u,te),oe.push({event:Ue,listeners:xe}),ke?Ue.data=ke:(ke=PA(u),ke!==null&&(Ue.data=ke)))),(ke=S5?w5(i,u):j5(i,u))&&(Ue=fd(Z,"onBeforeInput"),0<Ue.length&&(xe=new _A("onBeforeInput","beforeinput",null,u,te),oe.push({event:xe,listeners:Ue}),xe.data=ke)),p6(oe,i,Z,u,te)}y2(oe,o)})}function pu(i,o,u){return{instance:i,listener:o,currentTarget:u}}function fd(i,o){for(var u=o+"Capture",h=[];i!==null;){var v=i,x=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||x===null||(v=kl(i,u),v!=null&&h.unshift(pu(i,v,x)),v=kl(i,o),v!=null&&h.push(pu(i,v,x))),i.tag===3)return h;i=i.return}return[]}function g6(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function g2(i,o,u,h,v){for(var x=o._reactName,N=[];u!==null&&u!==h;){var R=u,U=R.alternate,Z=R.stateNode;if(R=R.tag,U!==null&&U===h)break;R!==5&&R!==26&&R!==27||Z===null||(U=Z,v?(Z=kl(u,x),Z!=null&&N.unshift(pu(u,Z,U))):v||(Z=kl(u,x),Z!=null&&N.push(pu(u,Z,U)))),u=u.return}N.length!==0&&i.push({event:o,listeners:N})}var x6=/\r\n?/g,b6=/\u0000|\uFFFD/g;function x2(i){return(typeof i=="string"?i:""+i).replace(x6,`
`).replace(b6,"")}function b2(i,o){return o=x2(o),x2(i)===o}function it(i,o,u,h,v,x){switch(u){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||Uo(i,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&Uo(i,""+h);break;case"className":mf(i,"class",h);break;case"tabIndex":mf(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":mf(i,u,h);break;case"style":bA(i,h,x);break;case"data":if(o!=="object"){mf(i,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||u!=="href")){i.removeAttribute(u);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=vf(""+h),i.setAttribute(u,h);break;case"action":case"formAction":if(typeof h=="function"){i.setAttribute(u,"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 x=="function"&&(u==="formAction"?(o!=="input"&&it(i,o,"name",v.name,v,null),it(i,o,"formEncType",v.formEncType,v,null),it(i,o,"formMethod",v.formMethod,v,null),it(i,o,"formTarget",v.formTarget,v,null)):(it(i,o,"encType",v.encType,v,null),it(i,o,"method",v.method,v,null),it(i,o,"target",v.target,v,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=vf(""+h),i.setAttribute(u,h);break;case"onClick":h!=null&&(i.onclick=ri);break;case"onScroll":h!=null&&Be("scroll",i);break;case"onScrollEnd":h!=null&&Be("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(v.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}u=vf(""+h),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""+h):i.removeAttribute(u);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":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":h===!0?i.setAttribute(u,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,h):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(u,h):i.removeAttribute(u);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(u):i.setAttribute(u,h);break;case"popover":Be("beforetoggle",i),Be("toggle",i),pf(i,"popover",h);break;case"xlinkActuate":ni(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":ni(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":ni(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":ni(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":ni(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":ni(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":ni(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":ni(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":ni(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":pf(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=YB.get(u)||u,pf(i,u,h))}}function uv(i,o,u,h,v,x){switch(u){case"style":bA(i,h,x);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(v.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof h=="string"?Uo(i,h):(typeof h=="number"||typeof h=="bigint")&&Uo(i,""+h);break;case"onScroll":h!=null&&Be("scroll",i);break;case"onScrollEnd":h!=null&&Be("scrollend",i);break;case"onClick":h!=null&&(i.onclick=ri);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fA.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(v=u.endsWith("Capture"),o=u.slice(2,v?u.length-7:void 0),x=i[Sn]||null,x=x!=null?x[u]:null,typeof x=="function"&&i.removeEventListener(o,x,v),typeof h=="function")){typeof x!="function"&&x!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(o,h,v);break e}u in i?i[u]=h:h===!0?i.setAttribute(u,""):pf(i,u,h)}}}function an(i,o,u){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Be("error",i),Be("load",i);var h=!1,v=!1,x;for(x in u)if(u.hasOwnProperty(x)){var N=u[x];if(N!=null)switch(x){case"src":h=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:it(i,o,x,N,u,null)}}v&&it(i,o,"srcSet",u.srcSet,u,null),h&&it(i,o,"src",u.src,u,null);return;case"input":Be("invalid",i);var R=x=N=v=null,U=null,Z=null;for(h in u)if(u.hasOwnProperty(h)){var te=u[h];if(te!=null)switch(h){case"name":v=te;break;case"type":N=te;break;case"checked":U=te;break;case"defaultChecked":Z=te;break;case"value":x=te;break;case"defaultValue":R=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,o));break;default:it(i,o,h,te,u,null)}}yA(i,x,R,U,Z,N,v,!1);return;case"select":Be("invalid",i),h=N=x=null;for(v in u)if(u.hasOwnProperty(v)&&(R=u[v],R!=null))switch(v){case"value":x=R;break;case"defaultValue":N=R;break;case"multiple":h=R;default:it(i,o,v,R,u,null)}o=x,u=N,i.multiple=!!h,o!=null?Io(i,!!h,o,!1):u!=null&&Io(i,!!h,u,!0);return;case"textarea":Be("invalid",i),x=v=h=null;for(N in u)if(u.hasOwnProperty(N)&&(R=u[N],R!=null))switch(N){case"value":h=R;break;case"defaultValue":v=R;break;case"children":x=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(91));break;default:it(i,o,N,R,u,null)}gA(i,h,v,x);return;case"option":for(U in u)if(u.hasOwnProperty(U)&&(h=u[U],h!=null))switch(U){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:it(i,o,U,h,u,null)}return;case"dialog":Be("beforetoggle",i),Be("toggle",i),Be("cancel",i),Be("close",i);break;case"iframe":case"object":Be("load",i);break;case"video":case"audio":for(h=0;h<hu.length;h++)Be(hu[h],i);break;case"image":Be("error",i),Be("load",i);break;case"details":Be("toggle",i);break;case"embed":case"source":case"link":Be("error",i),Be("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Z in u)if(u.hasOwnProperty(Z)&&(h=u[Z],h!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:it(i,o,Z,h,u,null)}return;default:if(jm(o)){for(te in u)u.hasOwnProperty(te)&&(h=u[te],h!==void 0&&uv(i,o,te,h,u,void 0));return}}for(R in u)u.hasOwnProperty(R)&&(h=u[R],h!=null&&it(i,o,R,h,u,null))}function S6(i,o,u,h){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,x=null,N=null,R=null,U=null,Z=null,te=null;for(ee in u){var oe=u[ee];if(u.hasOwnProperty(ee)&&oe!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":U=oe;default:h.hasOwnProperty(ee)||it(i,o,ee,null,h,oe)}}for(var J in h){var ee=h[J];if(oe=u[J],h.hasOwnProperty(J)&&(ee!=null||oe!=null))switch(J){case"type":x=ee;break;case"name":v=ee;break;case"checked":Z=ee;break;case"defaultChecked":te=ee;break;case"value":N=ee;break;case"defaultValue":R=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,o));break;default:ee!==oe&&it(i,o,J,ee,h,oe)}}Sm(i,N,R,U,Z,te,x,v);return;case"select":ee=N=R=J=null;for(x in u)if(U=u[x],u.hasOwnProperty(x)&&U!=null)switch(x){case"value":break;case"multiple":ee=U;default:h.hasOwnProperty(x)||it(i,o,x,null,h,U)}for(v in h)if(x=h[v],U=u[v],h.hasOwnProperty(v)&&(x!=null||U!=null))switch(v){case"value":J=x;break;case"defaultValue":R=x;break;case"multiple":N=x;default:x!==U&&it(i,o,v,x,h,U)}o=R,u=N,h=ee,J!=null?Io(i,!!u,J,!1):!!h!=!!u&&(o!=null?Io(i,!!u,o,!0):Io(i,!!u,u?[]:"",!1));return;case"textarea":ee=J=null;for(R in u)if(v=u[R],u.hasOwnProperty(R)&&v!=null&&!h.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:it(i,o,R,null,h,v)}for(N in h)if(v=h[N],x=u[N],h.hasOwnProperty(N)&&(v!=null||x!=null))switch(N){case"value":J=v;break;case"defaultValue":ee=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==x&&it(i,o,N,v,h,x)}vA(i,J,ee);return;case"option":for(var me in u)if(J=u[me],u.hasOwnProperty(me)&&J!=null&&!h.hasOwnProperty(me))switch(me){case"selected":i.selected=!1;break;default:it(i,o,me,null,h,J)}for(U in h)if(J=h[U],ee=u[U],h.hasOwnProperty(U)&&J!==ee&&(J!=null||ee!=null))switch(U){case"selected":i.selected=J&&typeof J!="function"&&typeof J!="symbol";break;default:it(i,o,U,J,h,ee)}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 Ae in u)J=u[Ae],u.hasOwnProperty(Ae)&&J!=null&&!h.hasOwnProperty(Ae)&&it(i,o,Ae,null,h,J);for(Z in h)if(J=h[Z],ee=u[Z],h.hasOwnProperty(Z)&&J!==ee&&(J!=null||ee!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,o));break;default:it(i,o,Z,J,h,ee)}return;default:if(jm(o)){for(var at in u)J=u[at],u.hasOwnProperty(at)&&J!==void 0&&!h.hasOwnProperty(at)&&uv(i,o,at,void 0,h,J);for(te in h)J=h[te],ee=u[te],!h.hasOwnProperty(te)||J===ee||J===void 0&&ee===void 0||uv(i,o,te,J,h,ee);return}}for(var G in u)J=u[G],u.hasOwnProperty(G)&&J!=null&&!h.hasOwnProperty(G)&&it(i,o,G,null,h,J);for(oe in h)J=h[oe],ee=u[oe],!h.hasOwnProperty(oe)||J===ee||J==null&&ee==null||it(i,o,oe,J,h,ee)}function S2(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function w6(){if(typeof performance.getEntriesByType=="function"){for(var i=0,o=0,u=performance.getEntriesByType("resource"),h=0;h<u.length;h++){var v=u[h],x=v.transferSize,N=v.initiatorType,R=v.duration;if(x&&R&&S2(N)){for(N=0,R=v.responseEnd,h+=1;h<u.length;h++){var U=u[h],Z=U.startTime;if(Z>R)break;var te=U.transferSize,oe=U.initiatorType;te&&S2(oe)&&(U=U.responseEnd,N+=te*(U<R?1:(R-Z)/(U-Z)))}if(--h,o+=8*(x+N)/(v.duration/1e3),i++,10<i)break}}if(0<i)return o/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var cv=null,fv=null;function dd(i){return i.nodeType===9?i:i.ownerDocument}function w2(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function j2(i,o){if(i===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&o==="foreignObject"?0:i}function dv(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var hv=null;function j6(){var i=window.event;return i&&i.type==="popstate"?i===hv?!1:(hv=i,!0):(hv=null,!1)}var A2=typeof setTimeout=="function"?setTimeout:void 0,A6=typeof clearTimeout=="function"?clearTimeout:void 0,O2=typeof Promise=="function"?Promise:void 0,O6=typeof queueMicrotask=="function"?queueMicrotask:typeof O2<"u"?function(i){return O2.resolve(null).then(i).catch(_6)}:A2;function _6(i){setTimeout(function(){throw i})}function aa(i){return i==="head"}function _2(i,o){var u=o,h=0;do{var v=u.nextSibling;if(i.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"||u==="/&"){if(h===0){i.removeChild(v),xs(o);return}h--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")h++;else if(u==="html")mu(i.ownerDocument.documentElement);else if(u==="head"){u=i.ownerDocument.head,mu(u);for(var x=u.firstChild;x;){var N=x.nextSibling,R=x.nodeName;x[Rl]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&x.rel.toLowerCase()==="stylesheet"||u.removeChild(x),x=N}}else u==="body"&&mu(i.ownerDocument.body);u=v}while(u);xs(o)}function T2(i,o){var u=i;i=0;do{var h=u.nextSibling;if(u.nodeType===1?o?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(o?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),h&&h.nodeType===8)if(u=h.data,u==="/$"){if(i===0)break;i--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||i++;u=h}while(u)}function pv(i){var o=i.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var u=o;switch(o=o.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":pv(u),xm(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function T6(i,o,u,h){for(;i.nodeType===1;){var v=u;if(i.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[Rl])switch(o){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(x=i.getAttribute("rel"),x==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(x!==v.rel||i.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||i.getAttribute("title")!==(v.title==null?null:v.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(x=i.getAttribute("src"),(x!==(v.src==null?null:v.src)||i.getAttribute("type")!==(v.type==null?null:v.type)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&x&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(o==="input"&&i.type==="hidden"){var x=v.name==null?null:""+v.name;if(v.type==="hidden"&&i.getAttribute("name")===x)return i}else return i;if(i=nr(i.nextSibling),i===null)break}return null}function E6(i,o,u){if(o==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=nr(i.nextSibling),i===null))return null;return i}function E2(i,o){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!o||(i=nr(i.nextSibling),i===null))return null;return i}function mv(i){return i.data==="$?"||i.data==="$~"}function yv(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function N6(i,o){var u=i.ownerDocument;if(i.data==="$~")i._reactRetry=o;else if(i.data!=="$?"||u.readyState!=="loading")o();else{var h=function(){o(),u.removeEventListener("DOMContentLoaded",h)};u.addEventListener("DOMContentLoaded",h),i._reactRetry=h}}function nr(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return i}var vv=null;function N2(i){i=i.nextSibling;for(var o=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"||u==="/&"){if(o===0)return nr(i.nextSibling);o--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||o++}i=i.nextSibling}return null}function C2(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(o===0)return i;o--}else u!=="/$"&&u!=="/&"||o++}i=i.previousSibling}return null}function M2(i,o,u){switch(o=dd(u),i){case"html":if(i=o.documentElement,!i)throw Error(r(452));return i;case"head":if(i=o.head,!i)throw Error(r(453));return i;case"body":if(i=o.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function mu(i){for(var o=i.attributes;o.length;)i.removeAttributeNode(o[0]);xm(i)}var rr=new Map,P2=new Set;function hd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var xi=K.d;K.d={f:C6,r:M6,D:P6,C:R6,L:D6,m:k6,X:z6,S:L6,M:$6};function C6(){var i=xi.f(),o=id();return i||o}function M6(i){var o=$o(i);o!==null&&o.tag===5&&o.type==="form"?XO(o):xi.r(i)}var ys=typeof document>"u"?null:document;function R2(i,o,u){var h=ys;if(h&&typeof o=="string"&&o){var v=Xn(o);v='link[rel="'+i+'"][href="'+v+'"]',typeof u=="string"&&(v+='[crossorigin="'+u+'"]'),P2.has(v)||(P2.add(v),i={rel:i,crossOrigin:u,href:o},h.querySelector(v)===null&&(o=h.createElement("link"),an(o,"link",i),Xt(o),h.head.appendChild(o)))}}function P6(i){xi.D(i),R2("dns-prefetch",i,null)}function R6(i,o){xi.C(i,o),R2("preconnect",i,o)}function D6(i,o,u){xi.L(i,o,u);var h=ys;if(h&&i&&o){var v='link[rel="preload"][as="'+Xn(o)+'"]';o==="image"&&u&&u.imageSrcSet?(v+='[imagesrcset="'+Xn(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(v+='[imagesizes="'+Xn(u.imageSizes)+'"]')):v+='[href="'+Xn(i)+'"]';var x=v;switch(o){case"style":x=vs(i);break;case"script":x=gs(i)}rr.has(x)||(i=y({rel:"preload",href:o==="image"&&u&&u.imageSrcSet?void 0:i,as:o},u),rr.set(x,i),h.querySelector(v)!==null||o==="style"&&h.querySelector(yu(x))||o==="script"&&h.querySelector(vu(x))||(o=h.createElement("link"),an(o,"link",i),Xt(o),h.head.appendChild(o)))}}function k6(i,o){xi.m(i,o);var u=ys;if(u&&i){var h=o&&typeof o.as=="string"?o.as:"script",v='link[rel="modulepreload"][as="'+Xn(h)+'"][href="'+Xn(i)+'"]',x=v;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=gs(i)}if(!rr.has(x)&&(i=y({rel:"modulepreload",href:i},o),rr.set(x,i),u.querySelector(v)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(vu(x)))return}h=u.createElement("link"),an(h,"link",i),Xt(h),u.head.appendChild(h)}}}function L6(i,o,u){xi.S(i,o,u);var h=ys;if(h&&i){var v=Bo(h).hoistableStyles,x=vs(i);o=o||"default";var N=v.get(x);if(!N){var R={loading:0,preload:null};if(N=h.querySelector(yu(x)))R.loading=5;else{i=y({rel:"stylesheet",href:i,"data-precedence":o},u),(u=rr.get(x))&&gv(i,u);var U=N=h.createElement("link");Xt(U),an(U,"link",i),U._p=new Promise(function(Z,te){U.onload=Z,U.onerror=te}),U.addEventListener("load",function(){R.loading|=1}),U.addEventListener("error",function(){R.loading|=2}),R.loading|=4,pd(N,o,h)}N={type:"stylesheet",instance:N,count:1,state:R},v.set(x,N)}}}function z6(i,o){xi.X(i,o);var u=ys;if(u&&i){var h=Bo(u).hoistableScripts,v=gs(i),x=h.get(v);x||(x=u.querySelector(vu(v)),x||(i=y({src:i,async:!0},o),(o=rr.get(v))&&xv(i,o),x=u.createElement("script"),Xt(x),an(x,"link",i),u.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},h.set(v,x))}}function $6(i,o){xi.M(i,o);var u=ys;if(u&&i){var h=Bo(u).hoistableScripts,v=gs(i),x=h.get(v);x||(x=u.querySelector(vu(v)),x||(i=y({src:i,async:!0,type:"module"},o),(o=rr.get(v))&&xv(i,o),x=u.createElement("script"),Xt(x),an(x,"link",i),u.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},h.set(v,x))}}function D2(i,o,u,h){var v=(v=je.current)?hd(v):null;if(!v)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(o=vs(u.href),u=Bo(v).hoistableStyles,h=u.get(o),h||(h={type:"style",instance:null,count:0,state:null},u.set(o,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=vs(u.href);var x=Bo(v).hoistableStyles,N=x.get(i);if(N||(v=v.ownerDocument||v,N={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(i,N),(x=v.querySelector(yu(i)))&&!x._p&&(N.instance=x,N.state.loading=5),rr.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},rr.set(i,u),x||B6(v,i,u,N.state))),o&&h===null)throw Error(r(528,""));return N}if(o&&h!==null)throw Error(r(529,""));return null;case"script":return o=u.async,u=u.src,typeof u=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=gs(u),u=Bo(v).hoistableScripts,h=u.get(o),h||(h={type:"script",instance:null,count:0,state:null},u.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function vs(i){return'href="'+Xn(i)+'"'}function yu(i){return'link[rel="stylesheet"]['+i+"]"}function k2(i){return y({},i,{"data-precedence":i.precedence,precedence:null})}function B6(i,o,u,h){i.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=i.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),an(o,"link",u),Xt(o),i.head.appendChild(o))}function gs(i){return'[src="'+Xn(i)+'"]'}function vu(i){return"script[async]"+i}function L2(i,o,u){if(o.count++,o.instance===null)switch(o.type){case"style":var h=i.querySelector('style[data-href~="'+Xn(u.href)+'"]');if(h)return o.instance=h,Xt(h),h;var v=y({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Xt(h),an(h,"style",v),pd(h,u.precedence,i),o.instance=h;case"stylesheet":v=vs(u.href);var x=i.querySelector(yu(v));if(x)return o.state.loading|=4,o.instance=x,Xt(x),x;h=k2(u),(v=rr.get(v))&&gv(h,v),x=(i.ownerDocument||i).createElement("link"),Xt(x);var N=x;return N._p=new Promise(function(R,U){N.onload=R,N.onerror=U}),an(x,"link",h),o.state.loading|=4,pd(x,u.precedence,i),o.instance=x;case"script":return x=gs(u.src),(v=i.querySelector(vu(x)))?(o.instance=v,Xt(v),v):(h=u,(v=rr.get(x))&&(h=y({},u),xv(h,v)),i=i.ownerDocument||i,v=i.createElement("script"),Xt(v),an(v,"link",h),i.head.appendChild(v),o.instance=v);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,pd(h,u.precedence,i));return o.instance}function pd(i,o,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=h.length?h[h.length-1]:null,x=v,N=0;N<h.length;N++){var R=h[N];if(R.dataset.precedence===o)x=R;else if(x!==v)break}x?x.parentNode.insertBefore(i,x.nextSibling):(o=u.nodeType===9?u.head:u,o.insertBefore(i,o.firstChild))}function gv(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function xv(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}var md=null;function z2(i,o,u){if(md===null){var h=new Map,v=md=new Map;v.set(u,h)}else v=md,h=v.get(u),h||(h=new Map,v.set(u,h));if(h.has(i))return h;for(h.set(i,null),u=u.getElementsByTagName(i),v=0;v<u.length;v++){var x=u[v];if(!(x[Rl]||x[en]||i==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var N=x.getAttribute(o)||"";N=i+N;var R=h.get(N);R?R.push(x):h.set(N,[x])}}return h}function $2(i,o,u){i=i.ownerDocument||i,i.head.insertBefore(u,o==="title"?i.querySelector("head > title"):null)}function q6(i,o,u){if(u===1||o.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return i=o.disabled,typeof o.precedence=="string"&&i==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function B2(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function I6(i,o,u,h){if(u.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var v=vs(h.href),x=o.querySelector(yu(v));if(x){o=x._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(i.count++,i=yd.bind(i),o.then(i,i)),u.state.loading|=4,u.instance=x,Xt(x);return}x=o.ownerDocument||o,h=k2(h),(v=rr.get(v))&&gv(h,v),x=x.createElement("link"),Xt(x);var N=x;N._p=new Promise(function(R,U){N.onload=R,N.onerror=U}),an(x,"link",h),u.instance=x}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(u,o),(o=u.state.preload)&&(u.state.loading&3)===0&&(i.count++,u=yd.bind(i),o.addEventListener("load",u),o.addEventListener("error",u))}}var bv=0;function U6(i,o){return i.stylesheets&&i.count===0&&gd(i,i.stylesheets),0<i.count||0<i.imgCount?function(u){var h=setTimeout(function(){if(i.stylesheets&&gd(i,i.stylesheets),i.unsuspend){var x=i.unsuspend;i.unsuspend=null,x()}},6e4+o);0<i.imgBytes&&bv===0&&(bv=62500*w6());var v=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&gd(i,i.stylesheets),i.unsuspend)){var x=i.unsuspend;i.unsuspend=null,x()}},(i.imgBytes>bv?50:800)+o);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(h),clearTimeout(v)}}:null}function yd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)gd(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var vd=null;function gd(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,vd=new Map,o.forEach(V6,i),vd=null,yd.call(i))}function V6(i,o){if(!(o.state.loading&4)){var u=vd.get(i);if(u)var h=u.get(null);else{u=new Map,vd.set(i,u);for(var v=i.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<v.length;x++){var N=v[x];(N.nodeName==="LINK"||N.getAttribute("media")!=="not all")&&(u.set(N.dataset.precedence,N),h=N)}h&&u.set(null,h)}v=o.instance,N=v.getAttribute("data-precedence"),x=u.get(N)||h,x===h&&u.set(null,v),u.set(N,v),this.count++,h=yd.bind(this),v.addEventListener("load",h),v.addEventListener("error",h),x?x.parentNode.insertBefore(v,x.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(v,i.firstChild)),o.state.loading|=4}}var gu={$$typeof:T,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function H6(i,o,u,h,v,x,N,R,U){this.tag=1,this.containerInfo=i,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=mm(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mm(0),this.hiddenUpdates=mm(null),this.identifierPrefix=h,this.onUncaughtError=v,this.onCaughtError=x,this.onRecoverableError=N,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function q2(i,o,u,h,v,x,N,R,U,Z,te,oe){return i=new H6(i,o,u,N,U,Z,te,oe,R),o=1,x===!0&&(o|=24),x=Rn(3,null,null,o),i.current=x,x.stateNode=i,o=Jm(),o.refCount++,i.pooledCache=o,o.refCount++,x.memoizedState={element:h,isDehydrated:u,cache:o},ry(x),i}function I2(i){return i?(i=Xo,i):Xo}function U2(i,o,u,h,v,x){v=I2(v),h.context===null?h.context=v:h.pendingContext=v,h=Yi(o),h.payload={element:u},x=x===void 0?null:x,x!==null&&(h.callback=x),u=Xi(i,h,o),u!==null&&(Tn(u,i,o),Wl(u,i,o))}function V2(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<o?u:o}}function Sv(i,o){V2(i,o),(i=i.alternate)&&V2(i,o)}function H2(i){if(i.tag===13||i.tag===31){var o=qa(i,67108864);o!==null&&Tn(o,i,67108864),Sv(i,67108864)}}function G2(i){if(i.tag===13||i.tag===31){var o=$n();o=ym(o);var u=qa(i,o);u!==null&&Tn(u,i,o),Sv(i,o)}}var xd=!0;function G6(i,o,u,h){var v=$.T;$.T=null;var x=K.p;try{K.p=2,wv(i,o,u,h)}finally{K.p=x,$.T=v}}function F6(i,o,u,h){var v=$.T;$.T=null;var x=K.p;try{K.p=8,wv(i,o,u,h)}finally{K.p=x,$.T=v}}function wv(i,o,u,h){if(xd){var v=jv(h);if(v===null)lv(i,o,h,bd,u),K2(i,h);else if(Y6(v,i,o,u,h))h.stopPropagation();else if(K2(i,h),o&4&&-1<K6.indexOf(i)){for(;v!==null;){var x=$o(v);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var N=ka(x.pendingLanes);if(N!==0){var R=x;for(R.pendingLanes|=2,R.entangledLanes|=2;N;){var U=1<<31-Mn(N);R.entanglements[1]|=U,N&=~U}$r(x),(Ke&6)===0&&(nd=cn()+500,du(0))}}break;case 31:case 13:R=qa(x,2),R!==null&&Tn(R,x,2),id(),Sv(x,2)}if(x=jv(h),x===null&&lv(i,o,h,bd,u),x===v)break;v=x}v!==null&&h.stopPropagation()}else lv(i,o,h,null,u)}}function jv(i){return i=Om(i),Av(i)}var bd=null;function Av(i){if(bd=null,i=zo(i),i!==null){var o=s(i);if(o===null)i=null;else{var u=o.tag;if(u===13){if(i=l(o),i!==null)return i;i=null}else if(u===31){if(i=c(o),i!==null)return i;i=null}else if(u===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return bd=i,null}function F2(i){switch(i){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(lf()){case eA:return 2;case tA:return 8;case uf:case RB:return 32;case nA:return 268435456;default:return 32}default:return 32}}var Ov=!1,oa=null,sa=null,la=null,xu=new Map,bu=new Map,ua=[],K6="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 K2(i,o){switch(i){case"focusin":case"focusout":oa=null;break;case"dragenter":case"dragleave":sa=null;break;case"mouseover":case"mouseout":la=null;break;case"pointerover":case"pointerout":xu.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":bu.delete(o.pointerId)}}function Su(i,o,u,h,v,x){return i===null||i.nativeEvent!==x?(i={blockedOn:o,domEventName:u,eventSystemFlags:h,nativeEvent:x,targetContainers:[v]},o!==null&&(o=$o(o),o!==null&&H2(o)),i):(i.eventSystemFlags|=h,o=i.targetContainers,v!==null&&o.indexOf(v)===-1&&o.push(v),i)}function Y6(i,o,u,h,v){switch(o){case"focusin":return oa=Su(oa,i,o,u,h,v),!0;case"dragenter":return sa=Su(sa,i,o,u,h,v),!0;case"mouseover":return la=Su(la,i,o,u,h,v),!0;case"pointerover":var x=v.pointerId;return xu.set(x,Su(xu.get(x)||null,i,o,u,h,v)),!0;case"gotpointercapture":return x=v.pointerId,bu.set(x,Su(bu.get(x)||null,i,o,u,h,v)),!0}return!1}function Y2(i){var o=zo(i.target);if(o!==null){var u=s(o);if(u!==null){if(o=u.tag,o===13){if(o=l(u),o!==null){i.blockedOn=o,lA(i.priority,function(){G2(u)});return}}else if(o===31){if(o=c(u),o!==null){i.blockedOn=o,lA(i.priority,function(){G2(u)});return}}else if(o===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Sd(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var u=jv(i.nativeEvent);if(u===null){u=i.nativeEvent;var h=new u.constructor(u.type,u);Am=h,u.target.dispatchEvent(h),Am=null}else return o=$o(u),o!==null&&H2(o),i.blockedOn=u,!1;o.shift()}return!0}function X2(i,o,u){Sd(i)&&u.delete(o)}function X6(){Ov=!1,oa!==null&&Sd(oa)&&(oa=null),sa!==null&&Sd(sa)&&(sa=null),la!==null&&Sd(la)&&(la=null),xu.forEach(X2),bu.forEach(X2)}function wd(i,o){i.blockedOn===o&&(i.blockedOn=null,Ov||(Ov=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,X6)))}var jd=null;function W2(i){jd!==i&&(jd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){jd===i&&(jd=null);for(var o=0;o<i.length;o+=3){var u=i[o],h=i[o+1],v=i[o+2];if(typeof h!="function"){if(Av(h||u)===null)continue;break}var x=$o(u);x!==null&&(i.splice(o,3),o-=3,jy(x,{pending:!0,data:v,method:u.method,action:h},h,v))}}))}function xs(i){function o(U){return wd(U,i)}oa!==null&&wd(oa,i),sa!==null&&wd(sa,i),la!==null&&wd(la,i),xu.forEach(o),bu.forEach(o);for(var u=0;u<ua.length;u++){var h=ua[u];h.blockedOn===i&&(h.blockedOn=null)}for(;0<ua.length&&(u=ua[0],u.blockedOn===null);)Y2(u),u.blockedOn===null&&ua.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var v=u[h],x=u[h+1],N=v[Sn]||null;if(typeof x=="function")N||W2(u);else if(N){var R=null;if(x&&x.hasAttribute("formAction")){if(v=x,N=x[Sn]||null)R=N.formAction;else if(Av(v)!==null)continue}else R=N.action;typeof R=="function"?u[h+1]=R:(u.splice(h,3),h-=3),W2(u)}}}function Z2(){function i(x){x.canIntercept&&x.info==="react-transition"&&x.intercept({handler:function(){return new Promise(function(N){return v=N})},focusReset:"manual",scroll:"manual"})}function o(){v!==null&&(v(),v=null),h||setTimeout(u,20)}function u(){if(!h&&!navigation.transition){var x=navigation.currentEntry;x&&x.url!=null&&navigation.navigate(x.url,{state:x.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,v=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(u,100),function(){h=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),v!==null&&(v(),v=null)}}}function _v(i){this._internalRoot=i}Ad.prototype.render=_v.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(r(409));var u=o.current,h=$n();U2(u,h,i,o,null,null)},Ad.prototype.unmount=_v.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;U2(i.current,2,null,i,null,null),id(),o[Lo]=null}};function Ad(i){this._internalRoot=i}Ad.prototype.unstable_scheduleHydration=function(i){if(i){var o=sA();i={blockedOn:null,target:i,priority:o};for(var u=0;u<ua.length&&o!==0&&o<ua[u].priority;u++);ua.splice(u,0,i),u===0&&Y2(i)}};var Q2=t.version;if(Q2!=="19.2.7")throw Error(r(527,Q2,"19.2.7"));K.findDOMNode=function(i){var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(o),i=i!==null?m(i):null,i=i===null?null:i.stateNode,i};var W6={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:$,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Od=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Od.isDisabled&&Od.supportsFiber)try{Cl=Od.inject(W6),Cn=Od}catch{}}return ju.createRoot=function(i,o){if(!a(i))throw Error(r(299));var u=!1,h="",v=a_,x=o_,N=s_;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(v=o.onUncaughtError),o.onCaughtError!==void 0&&(x=o.onCaughtError),o.onRecoverableError!==void 0&&(N=o.onRecoverableError)),o=q2(i,1,!1,null,null,u,h,null,v,x,N,Z2),i[Lo]=o.current,sv(i),new _v(o)},ju.hydrateRoot=function(i,o,u){if(!a(i))throw Error(r(299));var h=!1,v="",x=a_,N=o_,R=s_,U=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onUncaughtError!==void 0&&(x=u.onUncaughtError),u.onCaughtError!==void 0&&(N=u.onCaughtError),u.onRecoverableError!==void 0&&(R=u.onRecoverableError),u.formState!==void 0&&(U=u.formState)),o=q2(i,1,!0,o,u??null,h,v,U,x,N,R,Z2),o.context=I2(null),u=o.current,h=$n(),h=ym(h),v=Yi(h),v.callback=null,Xi(u,v,h),u=h,o.current.lanes=u,Pl(o,u),$r(o),i[Lo]=o.current,sv(i),new Ad(o)},ju.version="19.2.7",ju}var lT;function o8(){if(lT)return Nv.exports;lT=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Nv.exports=a8(),Nv.exports}var s8=o8();/**
* react-router v7.18.1
*
* 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 iw=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Gk=/^[\\/]{2}/;function l8(e,t){return t+e.replace(/\\/g,"/")}var uT="popstate";function cT(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function u8(e={}){function t(r,a){var d;let s=(d=a.state)==null?void 0:d.masked,{pathname:l,search:c,hash:f}=s||r.location;return t1("",{pathname:l,search:c,hash:f},a.state&&a.state.usr||null,a.state&&a.state.key||"default",s?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:nc(a)}return f8(t,n,null,e)}function jt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Nr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function c8(){return Math.random().toString(36).substring(2,10)}function fT(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 t1(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?pl(t):t,state:n,key:t&&t.key||r||c8(),mask:a}}function nc({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 pl(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 f8(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,l=a.history,c="POP",f=null,d=m();d==null&&(d=0,l.replaceState({...l.state,idx:d},""));function m(){return(l.state||{idx:null}).idx}function y(){c="POP";let b=m(),A=b==null?null:b-d;d=b,f&&f({action:c,location:w.location,delta:A})}function g(b,A){c="PUSH";let _=cT(b)?b:t1(w.location,b,A);d=m()+1;let T=fT(_,d),C=w.createHref(_.mask||_);try{l.pushState(T,"",C)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;a.location.assign(C)}s&&f&&f({action:c,location:w.location,delta:1})}function S(b,A){c="REPLACE";let _=cT(b)?b:t1(w.location,b,A);d=m();let T=fT(_,d),C=w.createHref(_.mask||_);l.replaceState(T,"",C),s&&f&&f({action:c,location:w.location,delta:0})}function j(b){return d8(a,b)}let w={get action(){return c},get location(){return e(a,l)},listen(b){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(uT,y),f=b,()=>{a.removeEventListener(uT,y),f=null}},createHref(b){return t(a,b)},createURL:j,encodeLocation(b){let A=j(b);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:g,replace:S,go(b){return l.go(b)}};return w}function d8(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),jt(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:nc(t);return a=a.replace(/ $/,"%20"),!n&&Gk.test(a)&&(a=r+a),new URL(a,r)}function Fk(e,t,n="/"){return h8(e,t,n,!1)}function h8(e,t,n,r,a){let s=typeof t=="string"?pl(t):t,l=Ni(s.pathname||"/",n);if(l==null)return null;let c=p8(e),f=null,d=O8(l);for(let m=0;f==null&&m<c.length;++m)f=A8(c[m],d,r);return f}function p8(e){let t=Kk(e);return m8(t),t}function Kk(e,t=[],n=[],r="",a=!1){let s=(l,c,f=a,d)=>{let m={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&f)return;jt(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let y=_r([r,m.relativePath]),g=n.concat(m);l.children&&l.children.length>0&&(jt(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Kk(l.children,t,g,y,f)),!(l.path==null&&!l.index)&&t.push({path:y,score:w8(y,l.index),routesMeta:g.map((S,j)=>{let[w,b]=Wk(S.relativePath,S.caseSensitive,j===g.length-1);return{...S,matcher:w,compiledParams:b}})})};return e.forEach((l,c)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))s(l,c);else for(let d of Yk(l.path))s(l,c,!0,d)}),t}function Yk(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return a?[s,""]:[s];let l=Yk(r.join("/")),c=[];return c.push(...l.map(f=>f===""?s:[s,f].join("/"))),a&&c.push(...l),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function m8(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:j8(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var y8=/^:[\w-]+$/,v8=3,g8=2,x8=1,b8=10,S8=-2,dT=e=>e==="*";function w8(e,t){let n=e.split("/"),r=n.length;return n.some(dT)&&(r+=S8),t&&(r+=g8),n.filter(a=>!dT(a)).reduce((a,s)=>a+(y8.test(s)?v8:s===""?x8:b8),r)}function j8(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 A8(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",l=[];for(let c=0;c<r.length;++c){let f=r[c],d=c===r.length-1,m=s==="/"?t:t.slice(s.length)||"/",y={path:f.relativePath,caseSensitive:f.caseSensitive,end:d},g=f.matcher&&f.compiledParams?Xk(y,m,f.matcher,f.compiledParams):lh(y,m),S=f.route;if(!g&&d&&n&&!r[r.length-1].route.index&&(g=lh({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!g)return null;Object.assign(a,g.params),l.push({params:a,pathname:_r([s,g.pathname]),pathnameBase:E8(_r([s,g.pathnameBase])),route:S}),g.pathnameBase!=="/"&&(s=_r([s,g.pathnameBase]))}return l}function lh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Wk(e.path,e.caseSensitive,e.end);return Xk(e,t,n,r)}function Xk(e,t,n,r){let a=t.match(n);if(!a)return null;let s=a[0],l=s.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:r.reduce((d,{paramName:m,isOptional:y},g)=>{if(m==="*"){let j=c[g]||"";l=s.slice(0,s.length-j.length).replace(/(.)\/+$/,"$1")}const S=c[g];return y&&!S?d[m]=void 0:d[m]=(S||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:l,pattern:e}}function Wk(e,t=!1,n=!0){Nr(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,c,f,d,m)=>{if(r.push({paramName:c,isOptional:f!=null}),f){let y=m.charAt(d+l.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}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 O8(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Nr(!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 Ni(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)||"/"}function _8(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?pl(e):e,s;return n?(n=Zk(n),n.startsWith("/")?s=hT(n.substring(1),"/"):s=hT(n,t)):s=t,{pathname:s,search:N8(r),hash:C8(a)}}function hT(e,t){let n=uh(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Rv(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 T8(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function aw(e){let t=T8(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function jp(e,t,n,r=!1){let a;typeof e=="string"?a=pl(e):(a={...e},jt(!a.pathname||!a.pathname.includes("?"),Rv("?","pathname","search",a)),jt(!a.pathname||!a.pathname.includes("#"),Rv("#","pathname","hash",a)),jt(!a.search||!a.search.includes("#"),Rv("#","search","hash",a)));let s=e===""||a.pathname==="",l=s?"/":a.pathname,c;if(l==null)c=n;else{let y=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),y-=1;a.pathname=g.join("/")}c=y>=0?t[y]:"/"}let f=_8(a,c),d=l&&l!=="/"&&l.endsWith("/"),m=(s||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(d||m)&&(f.pathname+="/"),f}var Zk=e=>e.replace(/[\\/]{2,}/g,"/"),_r=e=>Zk(e.join("/")),uh=e=>e.replace(/\/+$/,""),E8=e=>uh(e).replace(/^\/*/,"/"),N8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,C8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,M8=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 P8(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function R8(e){let t=e.map(n=>n.route.path).filter(Boolean);return _r(t)||"/"}var Qk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Jk(e,t){let n=e;if(typeof n!="string"||!iw.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(Qk)try{let s=new URL(window.location.href),l=Gk.test(n)?new URL(l8(n,s.protocol)):new URL(n),c=Ni(l.pathname,t);l.origin===s.origin&&c!=null?n=c+l.search+l.hash:a=!0}catch{Nr(!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 e3=["POST","PUT","PATCH","DELETE"];new Set(e3);var D8=["GET",...e3];new Set(D8);var k8=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function L8(e){try{return k8.includes(new URL(e).protocol)}catch{return!1}}var ml=P.createContext(null);ml.displayName="DataRouter";var Ap=P.createContext(null);Ap.displayName="DataRouterState";var t3=P.createContext(!1);function z8(){return P.useContext(t3)}var n3=P.createContext({isTransitioning:!1});n3.displayName="ViewTransition";var $8=P.createContext(new Map);$8.displayName="Fetchers";var B8=P.createContext(null);B8.displayName="Await";var Kn=P.createContext(null);Kn.displayName="Navigation";var Vc=P.createContext(null);Vc.displayName="Location";var Mr=P.createContext({outlet:null,matches:[],isDataRoute:!1});Mr.displayName="Route";var ow=P.createContext(null);ow.displayName="RouteError";var r3="REACT_ROUTER_ERROR",q8="REDIRECT",I8="ROUTE_ERROR_RESPONSE";function U8(e){if(e.startsWith(`${r3}:${q8}:{`))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 V8(e){if(e.startsWith(`${r3}:${I8}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new M8(t.status,t.statusText,t.data)}catch{}}function H8(e,{relative:t}={}){jt(yl(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=P.useContext(Kn),{hash:a,pathname:s,search:l}=Hc(e,{relative:t}),c=s;return n!=="/"&&(c=s==="/"?n:_r([n,s])),r.createHref({pathname:c,search:l,hash:a})}function yl(){return P.useContext(Vc)!=null}function Pr(){return jt(yl(),"useLocation() may be used only in the context of a <Router> component."),P.useContext(Vc).location}var i3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function a3(e){P.useContext(Kn).static||P.useLayoutEffect(e)}function Op(){let{isDataRoute:e}=P.useContext(Mr);return e?aq():G8()}function G8(){jt(yl(),"useNavigate() may be used only in the context of a <Router> component.");let e=P.useContext(ml),{basename:t,navigator:n}=P.useContext(Kn),{matches:r}=P.useContext(Mr),{pathname:a}=Pr(),s=JSON.stringify(aw(r)),l=P.useRef(!1);return a3(()=>{l.current=!0}),P.useCallback((f,d={})=>{if(Nr(l.current,i3),!l.current)return;if(typeof f=="number"){n.go(f);return}let m=jp(f,JSON.parse(s),a,d.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:_r([t,m.pathname])),(d.replace?n.replace:n.push)(m,d.state,d)},[t,n,s,a,e])}var F8=P.createContext(null);function K8(e){let t=P.useContext(Mr).outlet;return P.useMemo(()=>t&&P.createElement(F8.Provider,{value:e},t),[t,e])}function Hc(e,{relative:t}={}){let{matches:n}=P.useContext(Mr),{pathname:r}=Pr(),a=JSON.stringify(aw(n));return P.useMemo(()=>jp(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function Y8(e,t){return o3(e,t)}function o3(e,t,n){var b;jt(yl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=P.useContext(Kn),{matches:a}=P.useContext(Mr),s=a[a.length-1],l=s?s.params:{},c=s?s.pathname:"/",f=s?s.pathnameBase:"/",d=s&&s.route;{let A=d&&d.path||"";l3(c,!d||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${A}">) 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="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let m=Pr(),y;if(t){let A=typeof t=="string"?pl(t):t;jt(f==="/"||((b=A.pathname)==null?void 0:b.startsWith(f)),`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 "${f}" but pathname "${A.pathname}" was given in the \`location\` prop.`),y=A}else y=m;let g=y.pathname||"/",S=g;if(f!=="/"){let A=f.replace(/^\//,"").split("/");S="/"+g.replace(/^\//,"").split("/").slice(A.length).join("/")}let j=n&&n.state.matches.length?n.state.matches.map(A=>Object.assign(A,{route:n.manifest[A.route.id]||A.route})):Fk(e,{pathname:S});Nr(d||j!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Nr(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.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 w=J8(j&&j.map(A=>Object.assign({},A,{params:Object.assign({},l,A.params),pathname:_r([f,r.encodeLocation?r.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?f:_r([f,r.encodeLocation?r.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),a,n);return t&&w?P.createElement(Vc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...y},navigationType:"POP"}},w):w}function X8(){let e=iq(),t=P8(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},s={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=P.createElement(P.Fragment,null,P.createElement("p",null,"💿 Hey developer 👋"),P.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",P.createElement("code",{style:s},"ErrorBoundary")," or"," ",P.createElement("code",{style:s},"errorElement")," prop on your route.")),P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:a},n):null,l)}var W8=P.createElement(X8,null),s3=class extends P.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=V8(e.digest);n&&(e=n)}let t=e!==void 0?P.createElement(Mr.Provider,{value:this.props.routeContext},P.createElement(ow.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?P.createElement(Z8,{error:e},t):t}};s3.contextType=t3;var Dv=new WeakMap;function Z8({children:e,error:t}){let{basename:n}=P.useContext(Kn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=U8(t.digest);if(r){let a=Dv.get(t);if(a)throw a;let s=Jk(r.location,n),l=s.absoluteURL||s.to;if(L8(l))throw new Error("Invalid redirect location");if(Qk&&!Dv.get(t))if(s.isExternal||r.reloadDocument)window.location.href=l;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw Dv.set(t,c),c}return P.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l}`})}}return e}function Q8({routeContext:e,match:t,children:n}){let r=P.useContext(ml);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),P.createElement(Mr.Provider,{value:e},n)}function J8(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,s=r==null?void 0:r.errors;if(s!=null){let m=a.findIndex(y=>y.route.id&&(s==null?void 0:s[y.route.id])!==void 0);jt(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,m+1))}let l=!1,c=-1;if(n&&r){l=r.renderFallback;for(let m=0;m<a.length;m++){let y=a[m];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(c=m),y.route.id){let{loaderData:g,errors:S}=r,j=y.route.loader&&!g.hasOwnProperty(y.route.id)&&(!S||S[y.route.id]===void 0);if(y.route.lazy||j){n.isStatic&&(l=!0),c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}}let f=n==null?void 0:n.onError,d=r&&f?(m,y)=>{var g,S;f(m,{location:r.location,params:((S=(g=r.matches)==null?void 0:g[0])==null?void 0:S.params)??{},pattern:R8(r.matches),errorInfo:y})}:void 0;return a.reduceRight((m,y,g)=>{let S,j=!1,w=null,b=null;r&&(S=s&&y.route.id?s[y.route.id]:void 0,w=y.route.errorElement||W8,l&&(c<0&&g===0?(l3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,b=null):c===g&&(j=!0,b=y.route.hydrateFallbackElement||null)));let A=t.concat(a.slice(0,g+1)),_=()=>{let T;return S?T=w:j?T=b:y.route.Component?T=P.createElement(y.route.Component,null):y.route.element?T=y.route.element:T=m,P.createElement(Q8,{match:y,routeContext:{outlet:m,matches:A,isDataRoute:r!=null},children:T})};return r&&(y.route.ErrorBoundary||y.route.errorElement||g===0)?P.createElement(s3,{location:r.location,revalidation:r.revalidation,component:w,error:S,children:_(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:d}):_()},null)}function sw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function eq(e){let t=P.useContext(ml);return jt(t,sw(e)),t}function tq(e){let t=P.useContext(Ap);return jt(t,sw(e)),t}function nq(e){let t=P.useContext(Mr);return jt(t,sw(e)),t}function lw(e){let t=nq(e),n=t.matches[t.matches.length-1];return jt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function rq(){return lw("useRouteId")}function iq(){var r;let e=P.useContext(ow),t=tq("useRouteError"),n=lw("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function aq(){let{router:e}=eq("useNavigate"),t=lw("useNavigate"),n=P.useRef(!1);return a3(()=>{n.current=!0}),P.useCallback(async(a,s={})=>{Nr(n.current,i3),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var pT={};function l3(e,t,n){!t&&!pT[e]&&(pT[e]=!0,Nr(!1,n))}P.memo(oq);function oq({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:s}){return o3(e,void 0,{manifest:t,state:r,isStatic:a,onError:s})}function uw({to:e,replace:t,state:n,relative:r}){jt(yl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=P.useContext(Kn);Nr(!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:s}=P.useContext(Mr),{pathname:l}=Pr(),c=Op(),f=jp(e,aw(s),l,r==="path"),d=JSON.stringify(f);return P.useEffect(()=>{c(JSON.parse(d),{replace:t,state:n,relative:r})},[c,d,r,t,n]),null}function sq(e){return K8(e.context)}function dn(e){jt(!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 lq({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1,useTransitions:l}){jt(!yl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=P.useMemo(()=>({basename:c,navigator:a,static:s,useTransitions:l,future:{}}),[c,a,s,l]);typeof n=="string"&&(n=pl(n));let{pathname:d="/",search:m="",hash:y="",state:g=null,key:S="default",mask:j}=n,w=P.useMemo(()=>{let b=Ni(d,c);return b==null?null:{location:{pathname:b,search:m,hash:y,state:g,key:S,mask:j},navigationType:r}},[c,d,m,y,g,S,r,j]);return Nr(w!=null,`<Router basename="${c}"> is not able to match the URL "${d}${m}${y}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:P.createElement(Kn.Provider,{value:f},P.createElement(Vc.Provider,{children:t,value:w}))}function uq({children:e,location:t}){return Y8(n1(e),t)}function n1(e,t=[]){let n=[];return P.Children.forEach(e,(r,a)=>{if(!P.isValidElement(r))return;let s=[...t,a];if(r.type===P.Fragment){n.push.apply(n,n1(r.props.children,s));return}jt(r.type===dn,`[${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>`),jt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||s.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=n1(r.props.children,s)),n.push(l)}),n}var Yd="get",Xd="application/x-www-form-urlencoded";function _p(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function cq(e){return _p(e)&&e.tagName.toLowerCase()==="button"}function fq(e){return _p(e)&&e.tagName.toLowerCase()==="form"}function dq(e){return _p(e)&&e.tagName.toLowerCase()==="input"}function hq(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function pq(e,t){return e.button===0&&(!t||t==="_self")&&!hq(e)}var Td=null;function mq(){if(Td===null)try{new FormData(document.createElement("form"),0),Td=!1}catch{Td=!0}return Td}var yq=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function kv(e){return e!=null&&!yq.has(e)?(Nr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xd}"`),null):e}function vq(e,t){let n,r,a,s,l;if(fq(e)){let c=e.getAttribute("action");r=c?Ni(c,t):null,n=e.getAttribute("method")||Yd,a=kv(e.getAttribute("enctype"))||Xd,s=new FormData(e)}else if(cq(e)||dq(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||c.getAttribute("action");if(r=f?Ni(f,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Yd,a=kv(e.getAttribute("formenctype"))||kv(c.getAttribute("enctype"))||Xd,s=new FormData(c,e),!mq()){let{name:d,type:m,value:y}=e;if(m==="image"){let g=d?`${d}.`:"";s.append(`${g}x`,"0"),s.append(`${g}y`,"0")}else d&&s.append(d,y)}}else{if(_p(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Yd,r=null,a=Xd,l=e}return s&&a==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function cw(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function u3(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&&Ni(a.pathname,t)==="/"?a.pathname=`${uh(t)}/_root.${r}`:a.pathname=`${uh(a.pathname)}.${r}`,a}async function gq(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 xq(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 bq(e,t,n){let r=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let l=await gq(s,n);return l.links?l.links():[]}return[]}));return Aq(r.flat(1).filter(xq).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function mT(e,t,n,r,a,s){let l=(f,d)=>n[d]?f.route.id!==n[d].route.id:!0,c=(f,d)=>{var m;return n[d].pathname!==f.pathname||((m=n[d].route.path)==null?void 0:m.endsWith("*"))&&n[d].params["*"]!==f.params["*"]};return s==="assets"?t.filter((f,d)=>l(f,d)||c(f,d)):s==="data"?t.filter((f,d)=>{var y;let m=r.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(l(f,d)||c(f,d))return!0;if(f.route.shouldRevalidate){let g=f.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((y=n[0])==null?void 0:y.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function Sq(e,t,{includeHydrateFallback:n}={}){return wq(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function wq(e){return[...new Set(e)]}function jq(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Aq(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let s=JSON.stringify(jq(a));return n.has(s)||(n.add(s),r.push({key:s,link:a})),r},[])}function fw(){let e=P.useContext(ml);return cw(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Oq(){let e=P.useContext(Ap);return cw(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var dw=P.createContext(void 0);dw.displayName="FrameworkContext";function Tp(){let e=P.useContext(dw);return cw(e,"You must render this element inside a <HydratedRouter> element"),e}function _q(e,t){let n=P.useContext(dw),[r,a]=P.useState(!1),[s,l]=P.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:d,onMouseLeave:m,onTouchStart:y}=t,g=P.useRef(null);P.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let w=A=>{A.forEach(_=>{l(_.isIntersecting)})},b=new IntersectionObserver(w,{threshold:.5});return g.current&&b.observe(g.current),()=>{b.disconnect()}}},[e]),P.useEffect(()=>{if(r){let w=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(w)}}},[r]);let S=()=>{a(!0)},j=()=>{a(!1),l(!1)};return n?e!=="intent"?[s,g,{}]:[s,g,{onFocus:Au(c,S),onBlur:Au(f,j),onMouseEnter:Au(d,S),onMouseLeave:Au(m,j),onTouchStart:Au(y,S)}]:[!1,g,{}]}function Au(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Tq({page:e,...t}){let n=z8(),{nonce:r}=Tp(),{router:a}=fw(),s=P.useMemo(()=>Fk(a.routes,e,a.basename),[a.routes,e,a.basename]);return s?(t.nonce==null&&r&&(t={...t,nonce:r}),n?P.createElement(Nq,{page:e,matches:s,...t}):P.createElement(Cq,{page:e,matches:s,...t})):null}function Eq(e){let{manifest:t,routeModules:n}=Tp(),[r,a]=P.useState([]);return P.useEffect(()=>{let s=!1;return bq(e,t,n).then(l=>{s||a(l)}),()=>{s=!0}},[e,t,n]),r}function Nq({page:e,matches:t,...n}){let r=Pr(),{future:a}=Tp(),{basename:s}=fw(),l=P.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let c=u3(e,s,a.v8_trailingSlashAwareDataRequests,"rsc"),f=!1,d=[];for(let m of t)typeof m.route.shouldRevalidate=="function"?f=!0:d.push(m.route.id);return f&&d.length>0&&c.searchParams.set("_routes",d.join(",")),[c.pathname+c.search]},[s,a.v8_trailingSlashAwareDataRequests,e,r,t]);return P.createElement(P.Fragment,null,l.map(c=>P.createElement("link",{key:c,rel:"prefetch",as:"fetch",href:c,...n})))}function Cq({page:e,matches:t,...n}){let r=Pr(),{future:a,manifest:s,routeModules:l}=Tp(),{basename:c}=fw(),{loaderData:f,matches:d}=Oq(),m=P.useMemo(()=>mT(e,t,d,s,r,"data"),[e,t,d,s,r]),y=P.useMemo(()=>mT(e,t,d,s,r,"assets"),[e,t,d,s,r]),g=P.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let w=new Set,b=!1;if(t.forEach(_=>{var C;let T=s.routes[_.route.id];!T||!T.hasLoader||(!m.some(O=>O.route.id===_.route.id)&&_.route.id in f&&((C=l[_.route.id])!=null&&C.shouldRevalidate)||T.hasClientLoader?b=!0:w.add(_.route.id))}),w.size===0)return[];let A=u3(e,c,a.v8_trailingSlashAwareDataRequests,"data");return b&&w.size>0&&A.searchParams.set("_routes",t.filter(_=>w.has(_.route.id)).map(_=>_.route.id).join(",")),[A.pathname+A.search]},[c,a.v8_trailingSlashAwareDataRequests,f,r,s,m,t,e,l]),S=P.useMemo(()=>Sq(y,s),[y,s]),j=Eq(y);return P.createElement(P.Fragment,null,g.map(w=>P.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),S.map(w=>P.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),j.map(({key:w,link:b})=>P.createElement("link",{key:w,nonce:n.nonce,...b,crossOrigin:b.crossOrigin??n.crossOrigin})))}function Mq(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Pq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Pq&&(window.__reactRouterVersion="7.18.1")}catch{}function Rq({basename:e,children:t,useTransitions:n,window:r}){let a=P.useRef();a.current==null&&(a.current=u8({window:r,v5Compat:!0}));let s=a.current,[l,c]=P.useState({action:s.action,location:s.location}),f=P.useCallback(d=>{n===!1?c(d):P.startTransition(()=>c(d))},[n]);return P.useLayoutEffect(()=>s.listen(f),[s,f]),P.createElement(lq,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:s,useTransitions:n})}var c3=P.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:s,replace:l,mask:c,state:f,target:d,to:m,preventScrollReset:y,viewTransition:g,defaultShouldRevalidate:S,...j},w){let{basename:b,navigator:A,useTransitions:_}=P.useContext(Kn),T=typeof m=="string"&&iw.test(m),C=Jk(m,b);m=C.to;let O=H8(m,{relative:a}),E=Pr(),M=null;if(c){let Y=jp(c,[],E.mask?E.mask.pathname:"/",!0);b!=="/"&&(Y.pathname=Y.pathname==="/"?b:_r([b,Y.pathname])),M=A.createHref(Y)}let[k,D,B]=_q(r,j),I=Lq(m,{replace:l,mask:c,state:f,target:d,preventScrollReset:y,relative:a,viewTransition:g,defaultShouldRevalidate:S,useTransitions:_});function z(Y){t&&t(Y),Y.defaultPrevented||I(Y)}let F=!(C.isExternal||s),X=P.createElement("a",{...j,...B,href:(F?M:void 0)||C.absoluteURL||O,onClick:F?z:t,ref:Mq(w,D),target:d,"data-discover":!T&&n==="render"?"true":void 0});return k&&!T?P.createElement(P.Fragment,null,X,P.createElement(Tq,{page:O})):X});c3.displayName="Link";var f3=P.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:s,to:l,viewTransition:c,children:f,...d},m){let y=Hc(l,{relative:d.relative}),g=Pr(),S=P.useContext(Ap),{navigator:j,basename:w}=P.useContext(Kn),b=S!=null&&Iq(y)&&c===!0,A=j.encodeLocation?j.encodeLocation(y).pathname:y.pathname,_=g.pathname,T=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;n||(_=_.toLowerCase(),T=T?T.toLowerCase():null,A=A.toLowerCase()),T&&w&&(T=Ni(T,w)||T);const C=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let O=_===A||!a&&_.startsWith(A)&&_.charAt(C)==="/",E=T!=null&&(T===A||!a&&T.startsWith(A)&&T.charAt(A.length)==="/"),M={isActive:O,isPending:E,isTransitioning:b},k=O?t:void 0,D;typeof r=="function"?D=r(M):D=[r,O?"active":null,E?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let B=typeof s=="function"?s(M):s;return P.createElement(c3,{...d,"aria-current":k,className:D,ref:m,style:B,to:l,viewTransition:c},typeof f=="function"?f(M):f)});f3.displayName="NavLink";var Dq=P.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:l=Yd,action:c,onSubmit:f,relative:d,preventScrollReset:m,viewTransition:y,defaultShouldRevalidate:g,...S},j)=>{let{useTransitions:w}=P.useContext(Kn),b=Bq(),A=qq(c,{relative:d}),_=l.toLowerCase()==="get"?"get":"post",T=typeof c=="string"&&iw.test(c),C=O=>{if(f&&f(O),O.defaultPrevented)return;O.preventDefault();let E=O.nativeEvent.submitter,M=(E==null?void 0:E.getAttribute("formmethod"))||l,k=()=>b(E||O.currentTarget,{fetcherKey:t,method:M,navigate:n,replace:a,state:s,relative:d,preventScrollReset:m,viewTransition:y,defaultShouldRevalidate:g});w&&n!==!1?P.startTransition(()=>k()):k()};return P.createElement("form",{ref:j,method:_,action:A,onSubmit:r?f:C,...S,"data-discover":!T&&e==="render"?"true":void 0})});Dq.displayName="Form";function kq(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function d3(e){let t=P.useContext(ml);return jt(t,kq(e)),t}function Lq(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:s,relative:l,viewTransition:c,defaultShouldRevalidate:f,useTransitions:d}={}){let m=Op(),y=Pr(),g=Hc(e,{relative:l});return P.useCallback(S=>{if(pq(S,t)){S.preventDefault();let j=n!==void 0?n:nc(y)===nc(g),w=()=>m(e,{replace:j,mask:r,state:a,preventScrollReset:s,relative:l,viewTransition:c,defaultShouldRevalidate:f});d?P.startTransition(()=>w()):w()}},[y,m,g,n,r,a,t,e,s,l,c,f,d])}var zq=0,$q=()=>`__${String(++zq)}__`;function Bq(){let{router:e}=d3("useSubmit"),{basename:t}=P.useContext(Kn),n=rq(),r=e.fetch,a=e.navigate;return P.useCallback(async(s,l={})=>{let{action:c,method:f,encType:d,formData:m,body:y}=vq(s,t);if(l.navigate===!1){let g=l.fetcherKey||$q();await r(g,n,l.action||c,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:y,formMethod:l.method||f,formEncType:l.encType||d,flushSync:l.flushSync})}else await a(l.action||c,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:y,formMethod:l.method||f,formEncType:l.encType||d,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,a,t,n])}function qq(e,{relative:t}={}){let{basename:n}=P.useContext(Kn),r=P.useContext(Mr);jt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...Hc(e||".",{relative:t})},l=Pr();if(e==null){s.search=l.search;let c=new URLSearchParams(s.search),f=c.getAll("index");if(f.some(m=>m==="")){c.delete("index"),f.filter(y=>y).forEach(y=>c.append("index",y));let m=c.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:_r([n,s.pathname])),nc(s)}function Iq(e,{relative:t}={}){let n=P.useContext(n3);jt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=d3("useViewTransitionState"),a=Hc(e,{relative:t});if(!n.isTransitioning)return!1;let s=Ni(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Ni(n.nextLocation.pathname,r)||n.nextLocation.pathname;return lh(a.pathname,l)!=null||lh(a.pathname,s)!=null}const yT=e=>{let t;const n=new Set,r=(d,m)=>{const y=typeof d=="function"?d(t):d;if(!Object.is(y,t)){const g=t;t=m??(typeof y!="object"||y===null)?y:Object.assign({},t,y),n.forEach(S=>S(t,g))}},a=()=>t,c={setState:r,getState:a,getInitialState:()=>f,subscribe:d=>(n.add(d),()=>n.delete(d))},f=t=e(r,a,c);return c},Uq=(e=>e?yT(e):yT),Vq=e=>e;function Hq(e,t=Vq){const n=q.useSyncExternalStore(e.subscribe,q.useCallback(()=>t(e.getState()),[e,t]),q.useCallback(()=>t(e.getInitialState()),[e,t]));return q.useDebugValue(n),n}const vT=e=>{const t=Uq(e),n=r=>Hq(t,r);return Object.assign(n,t),n},h3=(e=>e?vT(e):vT);function Gq(e,t){let n;try{n=e()}catch{return}return{getItem:a=>{var s;const l=f=>f===null?null:JSON.parse(f,void 0),c=(s=n.getItem(a))!=null?s:null;return c instanceof Promise?c.then(l):l(c)},setItem:(a,s)=>n.setItem(a,JSON.stringify(s,void 0)),removeItem:a=>n.removeItem(a)}}const r1=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return r1(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return r1(r)(n)}}}},Fq=(e,t)=>(n,r,a)=>{let s={storage:Gq(()=>window.localStorage),partialize:b=>b,version:0,merge:(b,A)=>({...A,...b}),...t},l=!1,c=0;const f=new Set,d=new Set;let m=s.storage;if(!m)return e((...b)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...b)},r,a);const y=()=>{const b=s.partialize({...r()});return m.setItem(s.name,{state:b,version:s.version})},g=a.setState;a.setState=(b,A)=>(g(b,A),y());const S=e((...b)=>(n(...b),y()),r,a);a.getInitialState=()=>S;let j;const w=()=>{var b,A;if(!m)return;const _=++c;l=!1,f.forEach(C=>{var O;return C((O=r())!=null?O:S)});const T=((A=s.onRehydrateStorage)==null?void 0:A.call(s,(b=r())!=null?b:S))||void 0;return r1(m.getItem.bind(m))(s.name).then(C=>{if(C)if(typeof C.version=="number"&&C.version!==s.version){if(s.migrate){const O=s.migrate(C.state,C.version);return O instanceof Promise?O.then(E=>[!0,E]):[!0,O]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,C.state];return[!1,void 0]}).then(C=>{var O;if(_!==c)return;const[E,M]=C;if(j=s.merge(M,(O=r())!=null?O:S),n(j,!0),E)return y()}).then(()=>{_===c&&(T==null||T(r(),void 0),j=r(),l=!0,d.forEach(C=>C(j)))}).catch(C=>{_===c&&(T==null||T(void 0,C))})};return a.persist={setOptions:b=>{s={...s,...b},b.storage&&(m=b.storage)},clearStorage:()=>{m==null||m.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>w(),hasHydrated:()=>l,onHydrate:b=>(f.add(b),()=>{f.delete(b)}),onFinishHydration:b=>(d.add(b),()=>{d.delete(b)})},s.skipHydration||w(),j||S},Kq=Fq,Gc=h3()(Kq(e=>({token:null,user:null,isAuthenticated:!1,isLoading:!1,login:(t,n)=>{localStorage.setItem("amos_token",t),e({token:t,user:n,isAuthenticated:!0})},logout:()=>{localStorage.removeItem("amos_token"),e({token:null,user:null,isAuthenticated:!1})},setUser:t=>e({user:t})}),{name:"amos-auth",partialize:e=>({token:e.token,user:e.user,isAuthenticated:e.isAuthenticated})})),hw=P.createContext({});function pw(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}const Yq=typeof window<"u",mw=Yq?P.useLayoutEffect:P.useEffect,Ep=P.createContext(null);function yw(e,t){e.indexOf(t)===-1&&e.push(t)}function ch(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Kr=(e,t,n)=>n>t?t:n<e?e:n;let vw=()=>{};const wa={},p3=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),m3=e=>typeof e=="object"&&e!==null,y3=e=>/^0[^.\s]+$/u.test(e);function v3(e){let t;return()=>(t===void 0&&(t=e()),t)}const fr=e=>e,Fc=(...e)=>e.reduce((t,n)=>r=>n(t(r))),rc=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class gw{constructor(){this.subscriptions=[]}add(t){return yw(this.subscriptions,t),()=>ch(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let s=0;s<a;s++){const l=this.subscriptions[s];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Hn=e=>e*1e3,ur=e=>e/1e3,g3=(e,t)=>t?e*(1e3/t):0,x3=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Xq=1e-7,Wq=12;function Zq(e,t,n,r,a){let s,l,c=0;do l=t+(n-t)/2,s=x3(l,r,a)-e,s>0?n=l:t=l;while(Math.abs(s)>Xq&&++c<Wq);return l}function Kc(e,t,n,r){if(e===t&&n===r)return fr;const a=s=>Zq(s,0,1,e,n);return s=>s===0||s===1?s:x3(a(s),t,r)}const b3=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,S3=e=>t=>1-e(1-t),w3=Kc(.33,1.53,.69,.99),xw=S3(w3),j3=b3(xw),A3=e=>e>=1?1:(e*=2)<1?.5*xw(e):.5*(2-Math.pow(2,-10*(e-1))),bw=e=>1-Math.sin(Math.acos(e)),O3=S3(bw),_3=b3(bw),Qq=Kc(.42,0,1,1),Jq=Kc(0,0,.58,1),T3=Kc(.42,0,.58,1),eI=e=>Array.isArray(e)&&typeof e[0]!="number",E3=e=>Array.isArray(e)&&typeof e[0]=="number",tI={linear:fr,easeIn:Qq,easeInOut:T3,easeOut:Jq,circIn:bw,circInOut:_3,circOut:O3,backIn:xw,backInOut:j3,backOut:w3,anticipate:A3},nI=e=>typeof e=="string",gT=e=>{if(E3(e)){vw(e.length===4);const[t,n,r,a]=e;return Kc(t,n,r,a)}else if(nI(e))return tI[e];return e},Ed=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function rI(e){let t=new Set,n=new Set,r=!1,a=!1;const s=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(d){s.has(d)&&(f.schedule(d),e()),d(l)}const f={schedule:(d,m=!1,y=!1)=>{const S=y&&r?t:n;return m&&s.add(d),S.add(d),d},cancel:d=>{n.delete(d),s.delete(d)},process:d=>{if(l=d,r){a=!0;return}r=!0;const m=t;t=n,n=m,t.forEach(c),t.clear(),r=!1,a&&(a=!1,f.process(d))}};return f}const iI=40;function N3(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=Ed.reduce((T,C)=>(T[C]=rI(s),T),{}),{setup:c,read:f,resolveKeyframes:d,preUpdate:m,update:y,preRender:g,render:S,postRender:j}=l,w=()=>{const T=wa.useManualTiming,C=T?a.timestamp:performance.now();n=!1,T||(a.delta=r?1e3/60:Math.max(Math.min(C-a.timestamp,iI),1)),a.timestamp=C,a.isProcessing=!0,c.process(a),f.process(a),d.process(a),m.process(a),y.process(a),g.process(a),S.process(a),j.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(w))},b=()=>{n=!0,r=!0,a.isProcessing||e(w)};return{schedule:Ed.reduce((T,C)=>{const O=l[C];return T[C]=(E,M=!1,k=!1)=>(n||b(),O.schedule(E,M,k)),T},{}),cancel:T=>{for(let C=0;C<Ed.length;C++)l[Ed[C]].cancel(T)},state:a,steps:l}}const{schedule:ct,cancel:ja,state:sn,steps:Lv}=N3(typeof requestAnimationFrame<"u"?requestAnimationFrame:fr,!0);let Wd;function aI(){Wd=void 0}const yn={now:()=>(Wd===void 0&&yn.set(sn.isProcessing||wa.useManualTiming?sn.timestamp:performance.now()),Wd),set:e=>{Wd=e,queueMicrotask(aI)}},C3=e=>t=>typeof t=="string"&&t.startsWith(e),M3=C3("--"),oI=C3("var(--"),Sw=e=>oI(e)?sI.test(e.split("/*")[0].trim()):!1,sI=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function xT(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const vl={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ic={...vl,transform:e=>Kr(0,1,e)},Nd={...vl,default:1},Hu=e=>Math.round(e*1e5)/1e5,ww=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function lI(e){return e==null}const uI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,jw=(e,t)=>n=>!!(typeof n=="string"&&uI.test(n)&&n.startsWith(e)||t&&!lI(n)&&Object.prototype.hasOwnProperty.call(n,t)),P3=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,s,l,c]=r.match(ww);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},cI=e=>Kr(0,255,e),zv={...vl,transform:e=>Math.round(cI(e))},lo={test:jw("rgb","red"),parse:P3("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+zv.transform(e)+", "+zv.transform(t)+", "+zv.transform(n)+", "+Hu(ic.transform(r))+")"};function fI(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const i1={test:jw("#"),parse:fI,transform:lo.transform},Yc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),wi=Yc("deg"),Vr=Yc("%"),ye=Yc("px"),dI=Yc("vh"),hI=Yc("vw"),bT={...Vr,parse:e=>Vr.parse(e)/100,transform:e=>Vr.transform(e*100)},Os={test:jw("hsl","hue"),parse:P3("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Vr.transform(Hu(t))+", "+Vr.transform(Hu(n))+", "+Hu(ic.transform(r))+")"},$t={test:e=>lo.test(e)||i1.test(e)||Os.test(e),parse:e=>lo.test(e)?lo.parse(e):Os.test(e)?Os.parse(e):i1.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?lo.transform(e):Os.transform(e),getAnimatableNone:e=>{const t=$t.parse(e);return t.alpha=0,$t.transform(t)}},pI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function mI(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ww))==null?void 0:t.length)||0)+(((n=e.match(pI))==null?void 0:n.length)||0)>0}const R3="number",D3="color",yI="var",vI="var(",ST="${}",gI=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Bs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let s=0;const c=t.replace(gI,f=>($t.test(f)?(r.color.push(s),a.push(D3),n.push($t.parse(f))):f.startsWith(vI)?(r.var.push(s),a.push(yI),n.push(f)):(r.number.push(s),a.push(R3),n.push(parseFloat(f))),++s,ST)).split(ST);return{values:n,split:c,indexes:r,types:a}}function xI(e){return Bs(e).values}function k3({split:e,types:t}){const n=e.length;return r=>{let a="";for(let s=0;s<n;s++)if(a+=e[s],r[s]!==void 0){const l=t[s];l===R3?a+=Hu(r[s]):l===D3?a+=$t.transform(r[s]):a+=r[s]}return a}}function bI(e){return k3(Bs(e))}const SI=e=>typeof e=="number"?0:$t.test(e)?$t.getAnimatableNone(e):e,wI=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:SI(e);function jI(e){const t=Bs(e);return k3(t)(t.values.map((r,a)=>wI(r,t.split[a])))}const Tr={test:mI,parse:xI,createTransformer:bI,getAnimatableNone:jI};function $v(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function AI({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,s=0,l=0;if(!t)a=s=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;a=$v(f,c,e+1/3),s=$v(f,c,e),l=$v(f,c,e-1/3)}return{red:Math.round(a*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:r}}function fh(e,t){return n=>n>0?t:e}const ut=(e,t,n)=>e+(t-e)*n,Bv=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},OI=[i1,lo,Os],_I=e=>OI.find(t=>t.test(e));function wT(e){const t=_I(e);if(!t)return!1;let n=t.parse(e);return t===Os&&(n=AI(n)),n}const jT=(e,t)=>{const n=wT(e),r=wT(t);if(!n||!r)return fh(e,t);const a={...n};return s=>(a.red=Bv(n.red,r.red,s),a.green=Bv(n.green,r.green,s),a.blue=Bv(n.blue,r.blue,s),a.alpha=ut(n.alpha,r.alpha,s),lo.transform(a))},a1=new Set(["none","hidden"]);function TI(e,t){return a1.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function EI(e,t){return n=>ut(e,t,n)}function Aw(e){return typeof e=="number"?EI:typeof e=="string"?Sw(e)?fh:$t.test(e)?jT:MI:Array.isArray(e)?L3:typeof e=="object"?$t.test(e)?jT:NI:fh}function L3(e,t){const n=[...e],r=n.length,a=e.map((s,l)=>Aw(s)(s,t[l]));return s=>{for(let l=0;l<r;l++)n[l]=a[l](s);return n}}function NI(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=Aw(e[a])(e[a],t[a]));return a=>{for(const s in r)n[s]=r[s](a);return n}}function CI(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],l=e.indexes[s][r[s]],c=e.values[l]??0;n[a]=c,r[s]++}return n}const MI=(e,t)=>{const n=Tr.createTransformer(t),r=Bs(e),a=Bs(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?a1.has(e)&&!a.values.length||a1.has(t)&&!r.values.length?TI(e,t):Fc(L3(CI(r,a),a.values),n):fh(e,t)};function z3(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ut(e,t,n):Aw(e)(e,t)}const PI=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ct.update(t,n),stop:()=>ja(t),now:()=>sn.isProcessing?sn.timestamp:yn.now()}},$3=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let s=0;s<a;s++)r+=Math.round(e(s/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},dh=2e4;function Ow(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<dh;)t+=n,r=e.next(t);return t>=dh?1/0:t}function RI(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(Ow(r),dh);return{type:"keyframes",ease:s=>r.next(a*s).value/t,duration:ur(a)}}const Et={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function o1(e,t){return e*Math.sqrt(1-t*t)}const DI=12;function kI(e,t,n){let r=n;for(let a=1;a<DI;a++)r=r-e(r)/t(r);return r}const qv=.001;function LI({duration:e=Et.duration,bounce:t=Et.bounce,velocity:n=Et.velocity,mass:r=Et.mass}){let a,s,l=1-t;l=Kr(Et.minDamping,Et.maxDamping,l),e=Kr(Et.minDuration,Et.maxDuration,ur(e)),l<1?(a=d=>{const m=d*l,y=m*e,g=m-n,S=o1(d,l),j=Math.exp(-y);return qv-g/S*j},s=d=>{const y=d*l*e,g=y*n+n,S=Math.pow(l,2)*Math.pow(d,2)*e,j=Math.exp(-y),w=o1(Math.pow(d,2),l);return(-a(d)+qv>0?-1:1)*((g-S)*j)/w}):(a=d=>{const m=Math.exp(-d*e),y=(d-n)*e+1;return-qv+m*y},s=d=>{const m=Math.exp(-d*e),y=(n-d)*(e*e);return m*y});const c=5/e,f=kI(a,s,c);if(e=Hn(e),isNaN(f))return{stiffness:Et.stiffness,damping:Et.damping,duration:e};{const d=Math.pow(f,2)*r;return{stiffness:d,damping:l*2*Math.sqrt(r*d),duration:e}}}const zI=["duration","bounce"],$I=["stiffness","damping","mass"];function AT(e,t){return t.some(n=>e[n]!==void 0)}function BI(e){let t={velocity:Et.velocity,stiffness:Et.stiffness,damping:Et.damping,mass:Et.mass,isResolvedFromDuration:!1,...e};if(!AT(e,$I)&&AT(e,zI))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,s=2*Kr(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Et.mass,stiffness:a,damping:s}}else{const n=LI({...e,velocity:0});t={...t,...n,mass:Et.mass},t.isResolvedFromDuration=!0}return t}function hh(e=Et.visualDuration,t=Et.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const s=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],c={done:!1,value:s},{stiffness:f,damping:d,mass:m,duration:y,velocity:g,isResolvedFromDuration:S}=BI({...n,velocity:-ur(n.velocity||0)}),j=g||0,w=d/(2*Math.sqrt(f*m)),b=l-s,A=ur(Math.sqrt(f/m)),_=Math.abs(b)<5;r||(r=_?Et.restSpeed.granular:Et.restSpeed.default),a||(a=_?Et.restDelta.granular:Et.restDelta.default);let T,C,O,E,M,k;if(w<1)O=o1(A,w),E=(j+w*A*b)/O,T=B=>{const I=Math.exp(-w*A*B);return l-I*(E*Math.sin(O*B)+b*Math.cos(O*B))},M=w*A*E+b*O,k=w*A*b-E*O,C=B=>Math.exp(-w*A*B)*(M*Math.sin(O*B)+k*Math.cos(O*B));else if(w===1){T=I=>l-Math.exp(-A*I)*(b+(j+A*b)*I);const B=j+A*b;C=I=>Math.exp(-A*I)*(A*B*I-j)}else{const B=A*Math.sqrt(w*w-1);T=X=>{const Y=Math.exp(-w*A*X),$=Math.min(B*X,300);return l-Y*((j+w*A*b)*Math.sinh($)+B*b*Math.cosh($))/B};const I=(j+w*A*b)/B,z=w*A*I-b*B,F=w*A*b-I*B;C=X=>{const Y=Math.exp(-w*A*X),$=Math.min(B*X,300);return Y*(z*Math.sinh($)+F*Math.cosh($))}}const D={calculatedDuration:S&&y||null,velocity:B=>Hn(C(B)),next:B=>{if(!S&&w<1){const z=Math.exp(-w*A*B),F=Math.sin(O*B),X=Math.cos(O*B),Y=l-z*(E*F+b*X),$=Hn(z*(M*F+k*X));return c.done=Math.abs($)<=r&&Math.abs(l-Y)<=a,c.value=c.done?l:Y,c}const I=T(B);if(S)c.done=B>=y;else{const z=Hn(C(B));c.done=Math.abs(z)<=r&&Math.abs(l-I)<=a}return c.value=c.done?l:I,c},toString:()=>{const B=Math.min(Ow(D),dh),I=$3(z=>D.next(B*z).value,B,30);return B+"ms "+I},toTransition:()=>{}};return D}hh.applyToOptions=e=>{const t=RI(e,100,hh);return e.ease=t.ease,e.duration=Hn(t.duration),e.type="keyframes",e};const qI=5;function B3(e,t,n){const r=Math.max(t-qI,0);return g3(n-e(r),t-r)}function s1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:l,min:c,max:f,restDelta:d=.5,restSpeed:m}){const y=e[0],g={done:!1,value:y},S=k=>c!==void 0&&k<c||f!==void 0&&k>f,j=k=>c===void 0?f:f===void 0||Math.abs(c-k)<Math.abs(f-k)?c:f;let w=n*t;const b=y+w,A=l===void 0?b:l(b);A!==b&&(w=A-y);const _=k=>-w*Math.exp(-k/r),T=k=>A+_(k),C=k=>{const D=_(k),B=T(k);g.done=Math.abs(D)<=d,g.value=g.done?A:B};let O,E;const M=k=>{S(g.value)&&(O=k,E=hh({keyframes:[g.value,j(g.value)],velocity:B3(T,k,g.value),damping:a,stiffness:s,restDelta:d,restSpeed:m}))};return M(0),{calculatedDuration:null,next:k=>{let D=!1;return!E&&O===void 0&&(D=!0,C(k),M(k)),O!==void 0&&k>=O?E.next(k-O):(!D&&C(k),g)}}}function II(e,t,n){const r=[],a=n||wa.mix||z3,s=e.length-1;for(let l=0;l<s;l++){let c=a(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||fr:t;c=Fc(f,c)}r.push(c)}return r}function UI(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const s=e.length;if(vw(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=II(t,r,a),f=c.length,d=m=>{if(l&&m<e[0])return t[0];let y=0;if(f>1)for(;y<e.length-2&&!(m<e[y+1]);y++);const g=rc(e[y],e[y+1],m);return c[y](g)};return n?m=>d(Kr(e[0],e[s-1],m)):d}function VI(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=rc(0,t,r);e.push(ut(n,1,a))}}function HI(e){const t=[0];return VI(t,e.length-1),t}function GI(e,t){return e.map(n=>n*t)}function FI(e,t){return e.map(()=>t||T3).splice(0,e.length-1)}function Gu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=eI(r)?r.map(gT):gT(r),s={done:!1,value:t[0]},l=GI(n&&n.length===t.length?n:HI(t),e),c=UI(l,t,{ease:Array.isArray(a)?a:FI(t,a)});return{calculatedDuration:e,next:f=>(s.value=c(f),s.done=f>=e,s)}}const KI=e=>e!==null;function Np(e,{repeat:t,repeatType:n="loop"},r,a=1){const s=e.filter(KI),c=a<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!c||r===void 0?s[c]:r}const YI={decay:s1,inertia:s1,tween:Gu,keyframes:Gu,spring:hh};function q3(e){typeof e.type=="string"&&(e.type=YI[e.type])}class _w{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const XI=e=>e/100;class ph extends _w{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,a;const{motionValue:n}=this.options;n&&n.updatedAt!==yn.now()&&this.tick(yn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(r=this.options).onStop)==null||a.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;q3(t);const{type:n=Gu,repeat:r=0,repeatDelay:a=0,repeatType:s,velocity:l=0}=t;let{keyframes:c}=t;const f=n||Gu;f!==Gu&&typeof c[0]!="number"&&(this.mixKeyframes=Fc(XI,z3(c[0],c[1])),c=[0,100]);const d=f({...t,keyframes:c});s==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...c].reverse(),velocity:-l})),d.calculatedDuration===null&&(d.calculatedDuration=Ow(d));const{calculatedDuration:m}=d;this.calculatedDuration=m,this.resolvedDuration=m+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:a,mixKeyframes:s,mirroredGenerator:l,resolvedDuration:c,calculatedDuration:f}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:m,repeat:y,repeatType:g,repeatDelay:S,type:j,onUpdate:w,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const A=this.currentTime-d*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?A<0:A>a;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let T=this.currentTime,C=r;if(y){const k=Math.min(this.currentTime,a)/c;let D=Math.floor(k),B=k%1;!B&&k>=1&&(B=1),B===1&&D--,D=Math.min(D,y+1),!!(D%2)&&(g==="reverse"?(B=1-B,S&&(B-=S/c)):g==="mirror"&&(C=l)),T=Kr(0,1,B)*c}let O;_?(this.delayState.value=m[0],O=this.delayState):O=C.next(T),s&&!_&&(O.value=s(O.value));let{done:E}=O;!_&&f!==null&&(E=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return M&&j!==s1&&(O.value=Np(m,this.options,b,this.speed)),w&&w(O.value),M&&this.finish(),O}then(t,n){return this.finished.then(t,n)}get duration(){return ur(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ur(t)}get time(){return ur(this.currentTime)}set time(t){t=Hn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return B3(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(yn.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=ur(this.currentTime))}play(){var a,s;if(this.isStopped)return;const{driver:t=PI,startTime:n}=this.options;this.driver||(this.driver=t(l=>this.tick(l))),(s=(a=this.options).onPlay)==null||s.call(a);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(yn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function WI(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const uo=e=>e*180/Math.PI,l1=e=>{const t=uo(Math.atan2(e[1],e[0]));return u1(t)},ZI={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:l1,rotateZ:l1,skewX:e=>uo(Math.atan(e[1])),skewY:e=>uo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},u1=e=>(e=e%360,e<0&&(e+=360),e),OT=l1,_T=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),TT=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),QI={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_T,scaleY:TT,scale:e=>(_T(e)+TT(e))/2,rotateX:e=>u1(uo(Math.atan2(e[6],e[5]))),rotateY:e=>u1(uo(Math.atan2(-e[2],e[0]))),rotateZ:OT,rotate:OT,skewX:e=>uo(Math.atan(e[4])),skewY:e=>uo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function c1(e){return e.includes("scale")?1:0}function f1(e,t){if(!e||e==="none")return c1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=QI,a=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ZI,a=c}if(!a)return c1(t);const s=r[t],l=a[1].split(",").map(eU);return typeof s=="function"?s(l):l[s]}const JI=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return f1(n,t)};function eU(e){return parseFloat(e.trim())}const gl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],xl=new Set([...gl,"pathRotation"]),ET=e=>e===vl||e===ye,tU=new Set(["x","y","z"]),nU=gl.filter(e=>!tU.has(e));function rU(e){const t=[];return nU.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const va={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const a=e.max-e.min;return r==="border-box"?a:a-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const a=e.max-e.min;return r==="border-box"?a:a-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>f1(t,"x"),y:(e,{transform:t})=>f1(t,"y")};va.translateX=va.x;va.translateY=va.y;const vo=new Set;let d1=!1,h1=!1,p1=!1;function I3(){if(h1){const e=Array.from(vo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=rU(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([s,l])=>{var c;(c=r.getValue(s))==null||c.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}h1=!1,d1=!1,vo.forEach(e=>e.complete(p1)),vo.clear()}function U3(){vo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(h1=!0)})}function iU(){p1=!0,U3(),I3(),p1=!1}class Tw{constructor(t,n,r,a,s,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=s,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(vo.add(this),d1||(d1=!0,ct.read(U3),ct.resolveKeyframes(I3))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const s=a==null?void 0:a.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),a&&s===void 0&&a.set(t[0])}WI(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),vo.delete(this)}cancel(){this.state==="scheduled"&&(vo.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const aU=e=>e.startsWith("--");function V3(e,t,n){aU(t)?e.style.setProperty(t,n):e.style[t]=n}const oU={};function H3(e,t){const n=v3(e);return()=>oU[t]??n()}const sU=H3(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),G3=H3(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),qu=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,NT={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qu([0,.65,.55,1]),circOut:qu([.55,0,1,.45]),backIn:qu([.31,.01,.66,-.59]),backOut:qu([.33,1.53,.69,.99])};function F3(e,t){if(e)return typeof e=="function"?G3()?$3(e,t):"ease-out":E3(e)?qu(e):Array.isArray(e)?e.map(n=>F3(n,t)||NT.easeOut):NT[e]}function lU(e,t,n,{delay:r=0,duration:a=300,repeat:s=0,repeatType:l="loop",ease:c="easeOut",times:f}={},d=void 0){const m={[t]:n};f&&(m.offset=f);const y=F3(c,a);Array.isArray(y)&&(m.easing=y);const g={delay:r,duration:a,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:s+1,direction:l==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(m,g)}function K3(e){return typeof e=="function"&&"applyToOptions"in e}function uU({type:e,...t}){return K3(e)&&G3()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Y3 extends _w{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:s,allowFlatten:l=!1,finalKeyframe:c,onComplete:f}=t;this.isPseudoElement=!!s,this.allowFlatten=l,this.options=t,vw(typeof t.type!="string");const d=uU(t);this.animation=lU(n,r,a,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const m=Np(a,this.options,c,this.speed);this.updateMotionValue&&this.updateMotionValue(m),V3(n,r,m),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,a;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((a=(r=this.animation).commitStyles)==null||a.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return ur(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ur(t)}get time(){return ur(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Hn(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:a}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&sU()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),fr):a(this)}}const X3={anticipate:A3,backInOut:j3,circInOut:_3};function cU(e){return e in X3}function fU(e){typeof e.ease=="string"&&cU(e.ease)&&(e.ease=X3[e.ease])}const Iv=10;class dU extends Y3{constructor(t){fU(t),q3(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:s,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new ph({...l,autoplay:!1}),f=Math.max(Iv,yn.now()-this.startTime),d=Kr(0,Iv,f-Iv),m=c.sample(f).value,{name:y}=this.options;s&&y&&V3(s,y,m),n.setWithVelocity(c.sample(Math.max(0,f-d)).value,m,d),c.stop()}}const CT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Tr.test(e)||e==="0")&&!e.startsWith("url("));function hU(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function pU(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],l=CT(a,t),c=CT(s,t);return!l||!c?!1:hU(e)||(n==="spring"||K3(n))&&r}function m1(e){e.duration=0,e.type="keyframes"}const W3=new Set(["opacity","clipPath","filter","transform"]),mU=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function yU(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&mU.test(e[t]))return!0;return!1}const vU=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),gU=v3(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function xU(e){var y;const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:s,type:l,keyframes:c}=e;if(!(((y=t==null?void 0:t.owner)==null?void 0:y.current)instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:m}=t.owner.getProps();return gU()&&n&&(W3.has(n)||vU.has(n)&&yU(c))&&(n!=="transform"||!m)&&!d&&!r&&a!=="mirror"&&s!==0&&l!=="inertia"}const bU=40;class SU extends _w{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:l="loop",keyframes:c,name:f,motionValue:d,element:m,...y}){var j;super(),this.stop=()=>{var w,b;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=yn.now();const g={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:s,repeatType:l,name:f,motionValue:d,element:m,...y},S=(m==null?void 0:m.KeyframeResolver)||Tw;this.keyframeResolver=new S(c,(w,b,A)=>this.onKeyframesResolved(w,b,g,!A),f,d,m),(j=this.keyframeResolver)==null||j.scheduleResolve()}onKeyframesResolved(t,n,r,a){var A,_;this.keyframeResolver=void 0;const{name:s,type:l,velocity:c,delay:f,isHandoff:d,onUpdate:m}=r;this.resolvedAt=yn.now();let y=!0;pU(t,s,l,c)||(y=!1,(wa.instantAnimations||!f)&&(m==null||m(Np(t,r,n))),t[0]=t[t.length-1],m1(r),r.repeat=0);const S={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>bU?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},j=y&&!d&&xU(S),w=(_=(A=S.motionValue)==null?void 0:A.owner)==null?void 0:_.current;let b;if(j)try{b=new dU({...S,element:w})}catch{b=new ph(S)}else b=new ph(S);b.finished.then(()=>{this.notifyFinished()}).catch(fr),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),iU()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function Z3(e,t,n,r=0,a=1){const s=Array.from(e).sort((d,m)=>d.sortNodePosition(m)).indexOf(t),l=e.size,c=(l-1)*r;return typeof n=="function"?n(s,l):a===1?s*r:c-s*r}const MT=30,wU=e=>!isNaN(parseFloat(e));class jU{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const a=yn.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=yn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=wU(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new gw);const r=this.events[t].add(n);return t==="change"?()=>{r(),ct.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=yn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>MT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,MT);return g3(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qs(e,t){return new jU(e,t)}function Q3(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Ew(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?Q3(n,e):n}const AU={type:"spring",stiffness:500,damping:25,restSpeed:10},OU=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_U={type:"keyframes",duration:.8},TU={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},EU=(e,{keyframes:t})=>t.length>2?_U:xl.has(e)?e.startsWith("scale")?OU(t[1]):AU:TU,NU=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function CU(e){for(const t in e)if(!NU.has(t))return!0;return!1}const Nw=(e,t,n,r={},a,s)=>l=>{const c=Ew(r,e)||{},f=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Hn(f);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:g=>{t.set(g),c.onUpdate&&c.onUpdate(g)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:s?void 0:a};CU(c)||Object.assign(m,EU(e,m)),m.duration&&(m.duration=Hn(m.duration)),m.repeatDelay&&(m.repeatDelay=Hn(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let y=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m1(m),m.delay===0&&(y=!0)),(wa.instantAnimations||wa.skipAnimations||a!=null&&a.shouldSkipAnimations||c.skipAnimations)&&(y=!0,m1(m),m.delay=0),m.allowFlatten=!c.type&&!c.ease,y&&!s&&t.get()!==void 0){const g=Np(m.keyframes,c);if(g!==void 0){ct.update(()=>{m.onUpdate(g),m.onComplete()});return}}return c.isSync?new ph(m):new SU(m)},MU=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function PU(e){const t=MU.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function J3(e,t,n=1){const[r,a]=PU(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const l=s.trim();return p3(l)?parseFloat(l):l}return Sw(a)?J3(a,t,n+1):a}function PT(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Cw(e,t,n,r){if(typeof t=="function"){const[a,s]=PT(r);t=t(n!==void 0?n:e.custom,a,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,s]=PT(r);t=t(n!==void 0?n:e.custom,a,s)}return t}function go(e,t,n){const r=e.getProps();return Cw(r,t,n!==void 0?n:r.custom,e)}const eL=new Set(["width","height","top","left","right","bottom",...gl]),y1=e=>Array.isArray(e);function RU(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,qs(n))}function DU(e){return y1(e)?e[e.length-1]||0:e}function kU(e,t){const n=go(e,t);let{transitionEnd:r={},transition:a={},...s}=n||{};s={...s,...r};for(const l in s){const c=DU(s[l]);RU(e,l,c)}}const ln=e=>!!(e&&e.getVelocity);function LU(e){return!!(ln(e)&&e.add)}function v1(e,t){const n=e.getValue("willChange");if(LU(n))return n.add(t);if(!n&&wa.WillChange){const r=new wa.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Mw(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const zU="framerAppearId",tL="data-"+Mw(zU);function nL(e){return e.props[tL]}function $U({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function rL(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:s,transitionEnd:l,...c}=t;const f=e.getDefaultTransition();s=s?Q3(s,f):f;const d=s==null?void 0:s.reduceMotion,m=s==null?void 0:s.skipAnimations;r&&(s=r);const y=[],g=a&&e.animationState&&e.animationState.getState()[a],S=s==null?void 0:s.path;S&&S.animateVisualElement(e,c,s,n,y);for(const j in c){const w=e.getValue(j,e.latestValues[j]??null),b=c[j];if(b===void 0||g&&$U(g,j))continue;const A={delay:n,...Ew(s||{},j)};m&&(A.skipAnimations=!0);const _=w.get();if(_!==void 0&&!w.isAnimating()&&!Array.isArray(b)&&b===_&&!A.velocity){ct.update(()=>w.set(b));continue}let T=!1;if(window.MotionHandoffAnimation){const E=nL(e);if(E){const M=window.MotionHandoffAnimation(E,j,ct);M!==null&&(A.startTime=M,T=!0)}}v1(e,j);const C=d??e.shouldReduceMotion;w.start(Nw(j,w,b,C&&eL.has(j)?{type:!1}:A,e,T));const O=w.animation;O&&y.push(O)}if(l){const j=()=>ct.update(()=>{l&&kU(e,l)});y.length?Promise.all(y).then(j):j()}return y}function g1(e,t,n={}){var f;const r=go(e,t,n.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const s=r?()=>Promise.all(rL(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:m=0,staggerChildren:y,staggerDirection:g}=a;return BU(e,t,d,m,y,g,n)}:()=>Promise.resolve(),{when:c}=a;if(c){const[d,m]=c==="beforeChildren"?[s,l]:[l,s];return d().then(()=>m())}else return Promise.all([s(),l(n.delay)])}function BU(e,t,n=0,r=0,a=0,s=1,l){const c=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),c.push(g1(f,t,{...l,delay:n+(typeof r=="function"?0:r)+Z3(e.variantChildren,f,r,a,s)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(c)}function qU(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(s=>g1(e,s,n));r=Promise.all(a)}else if(typeof t=="string")r=g1(e,t,n);else{const a=typeof t=="function"?go(e,t,n.custom):t;r=Promise.all(rL(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const IU={test:e=>e==="auto",parse:e=>e},iL=e=>t=>t.test(e),aL=[vl,ye,Vr,wi,hI,dI,IU],RT=e=>aL.find(iL(e));function UU(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||y3(e):!0}const VU=new Set(["brightness","contrast","saturate","opacity"]);function HU(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(ww)||[];if(!r)return e;const a=n.replace(r,"");let s=VU.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const GU=/\b([a-z-]*)\(.*?\)/gu,x1={...Tr,getAnimatableNone:e=>{const t=e.match(GU);return t?t.map(HU).join(" "):e}},b1={...Tr,getAnimatableNone:e=>{const t=Tr.parse(e);return Tr.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},DT={...vl,transform:Math.round},FU={rotate:wi,pathRotation:wi,rotateX:wi,rotateY:wi,rotateZ:wi,scale:Nd,scaleX:Nd,scaleY:Nd,scaleZ:Nd,skew:wi,skewX:wi,skewY:wi,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:ic,originX:bT,originY:bT,originZ:ye},mh={borderWidth:ye,borderTopWidth:ye,borderRightWidth:ye,borderBottomWidth:ye,borderLeftWidth:ye,borderRadius:ye,borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomRightRadius:ye,borderBottomLeftRadius:ye,width:ye,maxWidth:ye,height:ye,maxHeight:ye,top:ye,right:ye,bottom:ye,left:ye,inset:ye,insetBlock:ye,insetBlockStart:ye,insetBlockEnd:ye,insetInline:ye,insetInlineStart:ye,insetInlineEnd:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,paddingBlock:ye,paddingBlockStart:ye,paddingBlockEnd:ye,paddingInline:ye,paddingInlineStart:ye,paddingInlineEnd:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,marginBlock:ye,marginBlockStart:ye,marginBlockEnd:ye,marginInline:ye,marginInlineStart:ye,marginInlineEnd:ye,fontSize:ye,backgroundPositionX:ye,backgroundPositionY:ye,...FU,zIndex:DT,fillOpacity:ic,strokeOpacity:ic,numOctaves:DT},KU={...mh,color:$t,backgroundColor:$t,outlineColor:$t,fill:$t,stroke:$t,borderColor:$t,borderTopColor:$t,borderRightColor:$t,borderBottomColor:$t,borderLeftColor:$t,filter:x1,WebkitFilter:x1,mask:b1,WebkitMask:b1},oL=e=>KU[e],YU=new Set([x1,b1]);function sL(e,t){let n=oL(e);return YU.has(n)||(n=Tr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const XU=new Set(["auto","none","0"]);function WU(e,t,n){let r=0,a;for(;r<e.length&&!a;){const s=e[r];typeof s=="string"&&!XU.has(s)&&Bs(s).values.length&&(a=e[r]),r++}if(a&&n)for(const s of t)e[s]=sL(n,a)}class ZU extends Tw{constructor(t,n,r,a,s){super(t,n,r,a,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let y=t[m];if(typeof y=="string"&&(y=y.trim(),Sw(y))){const g=J3(y,n.current);g!==void 0&&(t[m]=g),m===t.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!eL.has(r)||t.length!==2)return;const[a,s]=t,l=RT(a),c=RT(s),f=xT(a),d=xT(s);if(f!==d&&va[r]){this.needsMeasurement=!0;return}if(l!==c)if(ET(l)&&ET(c))for(let m=0;m<t.length;m++){const y=t[m];typeof y=="string"&&(t[m]=parseFloat(y))}else va[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||UU(t[a]))&&r.push(a);r.length&&WU(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=va[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){var c;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const s=r.length-1,l=r[s];r[s]=va[n](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),(c=this.removedTransforms)!=null&&c.length&&this.removedTransforms.forEach(([f,d])=>{t.getValue(f).set(d)}),this.resolveNoneKeyframes()}}const Pw=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function lL(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const a=(n==null?void 0:n[e])??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(r=>r!=null)}const S1=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Zd(e){return m3(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Rw}=N3(queueMicrotask,!1),wr={x:!1,y:!1};function uL(){return wr.x||wr.y}function QU(e){return e==="x"||e==="y"?wr[e]?null:(wr[e]=!0,()=>{wr[e]=!1}):wr.x||wr.y?null:(wr.x=wr.y=!0,()=>{wr.x=wr.y=!1})}function cL(e,t){const n=lL(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function JU(e){return!(e.pointerType==="touch"||uL())}function eV(e,t,n={}){const[r,a,s]=cL(e,n);return r.forEach(l=>{let c=!1,f=!1,d;const m=()=>{l.removeEventListener("pointerleave",j)},y=b=>{d&&(d(b),d=void 0),m()},g=b=>{c=!1,window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",g),f&&(f=!1,y(b))},S=()=>{c=!0,window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",g,a)},j=b=>{if(b.pointerType!=="touch"){if(c){f=!0;return}y(b)}},w=b=>{if(!JU(b))return;f=!1;const A=t(l,b);typeof A=="function"&&(d=A,l.addEventListener("pointerleave",j,a))};l.addEventListener("pointerenter",w,a),l.addEventListener("pointerdown",S,a)}),s}const fL=(e,t)=>t?e===t?!0:fL(e,t.parentElement):!1,Dw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,tV=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function nV(e){return tV.has(e.tagName)||e.isContentEditable===!0}const rV=new Set(["INPUT","SELECT","TEXTAREA"]);function iV(e){return rV.has(e.tagName)||e.isContentEditable===!0}const Qd=new WeakSet;function kT(e){return t=>{t.key==="Enter"&&e(t)}}function Uv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const aV=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=kT(()=>{if(Qd.has(n))return;Uv(n,"down");const a=kT(()=>{Uv(n,"up")}),s=()=>Uv(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function LT(e){return Dw(e)&&!uL()}const zT=new WeakSet;function oV(e,t,n={}){const[r,a,s]=cL(e,n),l=c=>{const f=c.currentTarget;if(!LT(c)||zT.has(c))return;Qd.add(f),n.stopPropagation&&zT.add(c);const d=t(f,c),m={...a,capture:!0},y=(j,w)=>{window.removeEventListener("pointerup",g,m),window.removeEventListener("pointercancel",S,m),Qd.has(f)&&Qd.delete(f),LT(j)&&typeof d=="function"&&d(j,{success:w})},g=j=>{y(j,f===window||f===document||n.useGlobalTarget||fL(f,j.target))},S=j=>{y(j,!1)};window.addEventListener("pointerup",g,m),window.addEventListener("pointercancel",S,m)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",l,a),Zd(c)&&(c.addEventListener("focus",d=>aV(d,a)),!nV(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),s}function kw(e){return m3(e)&&"ownerSVGElement"in e}const Jd=new WeakMap;let ha;const dL=(e,t,n)=>(r,a)=>a&&a[0]?a[0][e+"Size"]:kw(r)&&"getBBox"in r?r.getBBox()[t]:r[n],sV=dL("inline","width","offsetWidth"),lV=dL("block","height","offsetHeight");function uV({target:e,borderBoxSize:t}){var n;(n=Jd.get(e))==null||n.forEach(r=>{r(e,{get width(){return sV(e,t)},get height(){return lV(e,t)}})})}function cV(e){e.forEach(uV)}function fV(){typeof ResizeObserver>"u"||(ha=new ResizeObserver(cV))}function dV(e,t){ha||fV();const n=lL(e);return n.forEach(r=>{let a=Jd.get(r);a||(a=new Set,Jd.set(r,a)),a.add(t),ha==null||ha.observe(r)}),()=>{n.forEach(r=>{const a=Jd.get(r);a==null||a.delete(t),a!=null&&a.size||ha==null||ha.unobserve(r)})}}const eh=new Set;let _s;function hV(){_s=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};eh.forEach(t=>t(e))},window.addEventListener("resize",_s)}function pV(e){return eh.add(e),_s||hV(),()=>{eh.delete(e),!eh.size&&typeof _s=="function"&&(window.removeEventListener("resize",_s),_s=void 0)}}function $T(e,t){return typeof e=="function"?pV(e):dV(e,t)}function mV(e){return kw(e)&&e.tagName==="svg"}const yV=[...aL,$t,Tr],vV=e=>yV.find(iL(e)),BT=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ts=()=>({x:BT(),y:BT()}),qT=()=>({min:0,max:0}),Ht=()=>({x:qT(),y:qT()}),gV=new WeakMap;function Cp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ac(e){return typeof e=="string"||Array.isArray(e)}const Lw=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zw=["initial",...Lw];function Mp(e){return Cp(e.animate)||zw.some(t=>ac(e[t]))}function hL(e){return!!(Mp(e)||e.variants)}function xV(e,t,n){for(const r in t){const a=t[r],s=n[r];if(ln(a))e.addValue(r,a);else if(ln(s))e.addValue(r,qs(a,{owner:e}));else if(s!==a)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(a):l.hasAnimated||l.set(a)}else{const l=e.getStaticValue(r);e.addValue(r,qs(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const w1={current:null},pL={current:!1},bV=typeof window<"u";function SV(){if(pL.current=!0,!!bV)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>w1.current=e.matches;e.addEventListener("change",t),t()}else w1.current=!1}const IT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let yh={};function mL(e){yh=e}function wV(){return yh}class jV{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,skipAnimations:s,blockInitialAnimation:l,visualState:c},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Tw,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const S=yn.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,ct.render(this.render,!1,!0))};const{latestValues:d,renderState:m}=c;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=m,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=s,this.options=f,this.blockInitialAnimation=!!l,this.isControllingVariants=Mp(n),this.isVariantNode=hL(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const S in g){const j=g[S];d[S]!==void 0&&ln(j)&&j.set(d[S])}}mount(t){var n,r;if(this.hasBeenMounted)for(const a in this.initialValues)(n=this.values.get(a))==null||n.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=t,gV.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,s)=>this.bindToMotionValue(s,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(pL.current||SV(),this.shouldReduceMotion=w1.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),ja(this.notifyUpdate),ja(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&W3.has(t)&&this.current instanceof HTMLElement){const{factory:l,keyframes:c,times:f,ease:d,duration:m}=n.accelerate,y=new Y3({element:this.current,name:t,keyframes:c,times:f,ease:d,duration:Hn(m)}),g=l(y);this.valueSubscriptions.set(t,()=>{g(),y.cancel()});return}const r=xl.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&ct.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),s&&s()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in yh){const n=yh[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ht()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<IT.length;r++){const a=IT[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const s="on"+a,l=t[s];l&&(this.propEventSubscriptions[a]=this.on(a,l))}this.prevMotionValues=xV(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=qs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(p3(r)||y3(r))?r=parseFloat(r):!vV(r)&&Tr.test(n)&&(r=sL(t,n)),this.setBaseTarget(t,ln(r)?r.get():r)),ln(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const l=Cw(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);l&&(r=l[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!ln(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new gw),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Rw.render(this.render)}}class yL extends jV{constructor(){super(...arguments),this.KeyframeResolver=ZU}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ln(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Ea{constructor(t){this.isMounted=!1,this.node=t}update(){}}function vL({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function AV({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function OV(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Vv(e){return e===void 0||e===1}function j1({scale:e,scaleX:t,scaleY:n}){return!Vv(e)||!Vv(t)||!Vv(n)}function ro(e){return j1(e)||gL(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function gL(e){return UT(e.x)||UT(e.y)}function UT(e){return e&&e!=="0%"}function vh(e,t,n){const r=e-n,a=t*r;return n+a}function VT(e,t,n,r,a){return a!==void 0&&(e=vh(e,a,r)),vh(e,n,r)+t}function A1(e,t=0,n=1,r,a){e.min=VT(e.min,t,n,r,a),e.max=VT(e.max,t,n,r,a)}function xL(e,{x:t,y:n}){A1(e.x,t.translate,t.scale,t.originPoint),A1(e.y,n.translate,n.scale,n.originPoint)}const HT=.999999999999,GT=1.0000000000001;function _V(e,t,n,r=!1){var c;const a=n.length;if(!a)return;t.x=t.y=1;let s,l;for(let f=0;f<a;f++){s=n[f],l=s.projectionDelta;const{visualElement:d}=s.options;d&&d.props.style&&d.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(qr(e.x,-s.scroll.offset.x),qr(e.y,-s.scroll.offset.y)),l&&(t.x*=l.x.scale,t.y*=l.y.scale,xL(e,l)),r&&ro(s.latestValues)&&th(e,s.latestValues,(c=s.layout)==null?void 0:c.layoutBox))}t.x<GT&&t.x>HT&&(t.x=1),t.y<GT&&t.y>HT&&(t.y=1)}function qr(e,t){e.min+=t,e.max+=t}function FT(e,t,n,r,a=.5){const s=ut(e.min,e.max,a);A1(e,t,n,s,r)}function KT(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function th(e,t,n){const r=n??e;FT(e.x,KT(t.x,r.x),t.scaleX,t.scale,t.originX),FT(e.y,KT(t.y,r.y),t.scaleY,t.scale,t.originY)}function bL(e,t){return vL(OV(e.getBoundingClientRect(),t))}function TV(e,t,n){const r=bL(e,n),{scroll:a}=t;return a&&(qr(r.x,a.offset.x),qr(r.y,a.offset.y)),r}const EV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},NV=gl.length;function CV(e,t,n){let r="",a=!0;for(let l=0;l<NV;l++){const c=gl[l],f=e[c];if(f===void 0)continue;let d=!0;if(typeof f=="number")d=f===(c.startsWith("scale")?1:0);else{const m=parseFloat(f);d=c.startsWith("scale")?m===1:m===0}if(!d||n){const m=S1(f,mh[c]);if(!d){a=!1;const y=EV[c]||c;r+=`${y}(${m}) `}n&&(t[c]=m)}}const s=e.pathRotation;return s&&(a=!1,r+=`rotate(${S1(s,mh.pathRotation)}) `),r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function $w(e,t,n){const{style:r,vars:a,transformOrigin:s}=e;let l=!1,c=!1;for(const f in t){const d=t[f];if(xl.has(f)){l=!0;continue}else if(M3(f)){a[f]=d;continue}else{const m=S1(d,mh[f]);f.startsWith("origin")?(c=!0,s[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=CV(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:f="50%",originY:d="50%",originZ:m=0}=s;r.transformOrigin=`${f} ${d} ${m}`}}function SL(e,{style:t,vars:n},r,a){const s=e.style;let l;for(l in t)s[l]=t[l];a==null||a.applyProjectionStyles(s,r);for(l in n)s.setProperty(l,n[l])}function YT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ou={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ye.test(e))e=parseFloat(e);else return e;const n=YT(e,t.target.x),r=YT(e,t.target.y);return`${n}% ${r}%`}},MV={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=Tr.parse(e);if(a.length>5)return r;const s=Tr.createTransformer(e),l=typeof a[0]!="number"?1:0,c=n.x.scale*t.x,f=n.y.scale*t.y;a[0+l]/=c,a[1+l]/=f;const d=ut(c,f,.5);return typeof a[2+l]=="number"&&(a[2+l]/=d),typeof a[3+l]=="number"&&(a[3+l]/=d),s(a)}},O1={borderRadius:{...Ou,applyTo:[...Pw]},borderTopLeftRadius:Ou,borderTopRightRadius:Ou,borderBottomLeftRadius:Ou,borderBottomRightRadius:Ou,boxShadow:MV};function wL(e,{layout:t,layoutId:n}){return xl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!O1[e]||e==="opacity")}function Bw(e,t,n){var l;const r=e.style,a=t==null?void 0:t.style,s={};if(!r)return s;for(const c in r)(ln(r[c])||a&&ln(a[c])||wL(c,e)||((l=n==null?void 0:n.getValue(c))==null?void 0:l.liveStyle)!==void 0)&&(s[c]=r[c]);return s}function PV(e){return window.getComputedStyle(e)}class RV extends yL{constructor(){super(...arguments),this.type="html",this.renderInstance=SL}readValueFromInstance(t,n){var r;if(xl.has(n))return(r=this.projection)!=null&&r.isProjecting?c1(n):JI(t,n);{const a=PV(t),s=(M3(n)?a.getPropertyValue(n):a[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return bL(t,n)}build(t,n,r){$w(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Bw(t,n,r)}}const DV={offset:"stroke-dashoffset",array:"stroke-dasharray"},kV={offset:"strokeDashoffset",array:"strokeDasharray"};function LV(e,t,n=1,r=0,a=!0){e.pathLength=1;const s=a?DV:kV;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const zV=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function jL(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},f,d,m){if($w(e,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:g}=e;y.transform&&(g.transform=y.transform,delete y.transform),(g.transform||y.transformOrigin)&&(g.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),g.transform&&(g.transformBox=(m==null?void 0:m.transformBox)??"fill-box",delete y.transformBox);for(const S of zV)y[S]!==void 0&&(g[S]=y[S],delete y[S]);t!==void 0&&(y.x=t),n!==void 0&&(y.y=n),r!==void 0&&(y.scale=r),a!==void 0&&LV(y,a,s,l,!1)}const AL=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),OL=e=>typeof e=="string"&&e.toLowerCase()==="svg";function $V(e,t,n,r){SL(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(AL.has(a)?a:Mw(a),t.attrs[a])}function _L(e,t,n){const r=Bw(e,t,n);for(const a in e)if(ln(e[a])||ln(t[a])){const s=gl.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[s]=e[a]}return r}class BV extends yL{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ht}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(xl.has(n)){const r=oL(n);return r&&r.default||0}return n=AL.has(n)?n:Mw(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return _L(t,n,r)}build(t,n,r){jL(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){$V(t,n,r,a)}mount(t){this.isSVGTag=OL(t.tagName),super.mount(t)}}const qV=zw.length;function TL(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?TL(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<qV;n++){const r=zw[n],a=e.props[r];(ac(a)||a===!1)&&(t[r]=a)}return t}function EL(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const IV=[...Lw].reverse(),UV=Lw.length;function VV(e){return t=>Promise.all(t.map(({animation:n,options:r})=>qU(e,n,r)))}function HV(e){let t=VV(e),n=XT(),r=!0,a=!1;const s=d=>(m,y)=>{var S;const g=go(e,y,d==="exit"?(S=e.presenceContext)==null?void 0:S.custom:void 0);if(g){const{transition:j,transitionEnd:w,...b}=g;m={...m,...b,...w}}return m};function l(d){t=d(e)}function c(d){const{props:m}=e,y=TL(e.parent)||{},g=[],S=new Set;let j={},w=1/0;for(let A=0;A<UV;A++){const _=IV[A],T=n[_],C=m[_]!==void 0?m[_]:y[_],O=ac(C),E=_===d?T.isActive:null;E===!1&&(w=A);let M=C===y[_]&&C!==m[_]&&O;if(M&&(r||a)&&e.manuallyAnimateOnMount&&(M=!1),T.protectedKeys={...j},!T.isActive&&E===null||!C&&!T.prevProp||Cp(C)||typeof C=="boolean")continue;if(_==="exit"&&T.isActive&&E!==!0){T.prevResolvedValues&&(j={...j,...T.prevResolvedValues});continue}const k=GV(T.prevProp,C);let D=k||_===d&&T.isActive&&!M&&O||A>w&&O,B=!1;const I=Array.isArray(C)?C:[C];let z=I.reduce(s(_),{});E===!1&&(z={});const{prevResolvedValues:F={}}=T,X={...F,...z},Y=Q=>{D=!0,S.has(Q)&&(B=!0,S.delete(Q)),T.needsAnimating[Q]=!0;const ie=e.getValue(Q);ie&&(ie.liveStyle=!1)};for(const Q in X){const ie=z[Q],se=F[Q];if(j.hasOwnProperty(Q))continue;let L=!1;y1(ie)&&y1(se)?L=!EL(ie,se)||k:L=ie!==se,L?ie!=null?Y(Q):S.add(Q):ie!==void 0&&S.has(Q)?Y(Q):T.protectedKeys[Q]=!0}T.prevProp=C,T.prevResolvedValues=z,T.isActive&&(j={...j,...z}),(r||a)&&e.blockInitialAnimation&&(D=!1);const $=M&&k;D&&(!$||B)&&g.push(...I.map(Q=>{const ie={type:_};if(typeof Q=="string"&&(r||a)&&!$&&e.manuallyAnimateOnMount&&e.parent){const{parent:se}=e,L=go(se,Q);if(se.enteringChildren&&L){const{delayChildren:H}=L.transition||{};ie.delay=Z3(se.enteringChildren,e,H)}}return{animation:Q,options:ie}}))}if(S.size){const A={};if(typeof m.initial!="boolean"){const _=go(e,Array.isArray(m.initial)?m.initial[0]:m.initial);_&&_.transition&&(A.transition=_.transition)}S.forEach(_=>{const T=e.getBaseTarget(_),C=e.getValue(_);C&&(C.liveStyle=!0),A[_]=T??null}),g.push({animation:A})}let b=!!g.length;return r&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,a=!1,b?t(g):Promise.resolve()}function f(d,m){var g;if(n[d].isActive===m)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(S=>{var j;return(j=S.animationState)==null?void 0:j.setActive(d,m)}),n[d].isActive=m;const y=c(d);for(const S in n)n[S].protectedKeys={};return y}return{animateChanges:c,setActive:f,setAnimateFunction:l,getState:()=>n,reset:()=>{n=XT(),a=!0}}}function GV(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!EL(t,e):!1}function Ja(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function XT(){return{animate:Ja(!0),whileInView:Ja(),whileHover:Ja(),whileTap:Ja(),whileDrag:Ja(),whileFocus:Ja(),exit:Ja()}}function _1(e,t){e.min=t.min,e.max=t.max}function br(e,t){_1(e.x,t.x),_1(e.y,t.y)}function WT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const NL=1e-4,FV=1-NL,KV=1+NL,CL=.01,YV=0-CL,XV=0+CL;function vn(e){return e.max-e.min}function WV(e,t,n){return Math.abs(e-t)<=n}function ZT(e,t,n,r=.5){e.origin=r,e.originPoint=ut(t.min,t.max,e.origin),e.scale=vn(n)/vn(t),e.translate=ut(n.min,n.max,e.origin)-e.originPoint,(e.scale>=FV&&e.scale<=KV||isNaN(e.scale))&&(e.scale=1),(e.translate>=YV&&e.translate<=XV||isNaN(e.translate))&&(e.translate=0)}function Fu(e,t,n,r){ZT(e.x,t.x,n.x,r?r.originX:void 0),ZT(e.y,t.y,n.y,r?r.originY:void 0)}function QT(e,t,n,r=0){const a=r?ut(n.min,n.max,r):n.min;e.min=a+t.min,e.max=e.min+vn(t)}function ZV(e,t,n,r){QT(e.x,t.x,n.x,r==null?void 0:r.x),QT(e.y,t.y,n.y,r==null?void 0:r.y)}function JT(e,t,n,r=0){const a=r?ut(n.min,n.max,r):n.min;e.min=t.min-a,e.max=e.min+vn(t)}function gh(e,t,n,r){JT(e.x,t.x,n.x,r==null?void 0:r.x),JT(e.y,t.y,n.y,r==null?void 0:r.y)}function eE(e,t,n,r,a){return e-=t,e=vh(e,1/n,r),a!==void 0&&(e=vh(e,1/a,r)),e}function QV(e,t=0,n=1,r=.5,a,s=e,l=e){if(Vr.test(t)&&(t=parseFloat(t),t=ut(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=ut(s.min,s.max,r);e===s&&(c-=t),e.min=eE(e.min,t,n,c,a),e.max=eE(e.max,t,n,c,a)}function tE(e,t,[n,r,a],s,l){QV(e,t[n],t[r],t[a],t.scale,s,l)}const JV=["x","scaleX","originX"],e7=["y","scaleY","originY"];function nE(e,t,n,r){tE(e.x,t,JV,n?n.x:void 0,r?r.x:void 0),tE(e.y,t,e7,n?n.y:void 0,r?r.y:void 0)}function rE(e){return e.translate===0&&e.scale===1}function ML(e){return rE(e.x)&&rE(e.y)}function iE(e,t){return e.min===t.min&&e.max===t.max}function t7(e,t){return iE(e.x,t.x)&&iE(e.y,t.y)}function aE(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function PL(e,t){return aE(e.x,t.x)&&aE(e.y,t.y)}function oE(e){return vn(e.x)/vn(e.y)}function sE(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Br(e){return[e("x"),e("y")]}function n7(e,t,n){let r="";const a=e.x.translate/t.x,s=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((a||s||l)&&(r=`translate3d(${a}px, ${s}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:m,pathRotation:y,rotateX:g,rotateY:S,skewX:j,skewY:w}=n;d&&(r=`perspective(${d}px) ${r}`),m&&(r+=`rotate(${m}deg) `),y&&(r+=`rotate(${y}deg) `),g&&(r+=`rotateX(${g}deg) `),S&&(r+=`rotateY(${S}deg) `),j&&(r+=`skewX(${j}deg) `),w&&(r+=`skewY(${w}deg) `)}const c=e.x.scale*t.x,f=e.y.scale*t.y;return(c!==1||f!==1)&&(r+=`scale(${c}, ${f})`),r||"none"}const r7=Pw.length,lE=e=>typeof e=="string"?parseFloat(e):e,uE=e=>typeof e=="number"||ye.test(e);function i7(e,t,n,r,a,s){a?(e.opacity=ut(0,n.opacity??1,a7(r)),e.opacityExit=ut(t.opacity??1,0,o7(r))):s&&(e.opacity=ut(t.opacity??1,n.opacity??1,r));for(let l=0;l<r7;l++){const c=Pw[l];let f=cE(t,c),d=cE(n,c);if(f===void 0&&d===void 0)continue;f||(f=0),d||(d=0),f===0||d===0||uE(f)===uE(d)?(e[c]=Math.max(ut(lE(f),lE(d),r),0),(Vr.test(d)||Vr.test(f))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=ut(t.rotate||0,n.rotate||0,r))}function cE(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const a7=RL(0,.5,O3),o7=RL(.5,.95,fr);function RL(e,t,n){return r=>r<e?0:r>t?1:n(rc(e,t,r))}function s7(e,t,n){const r=ln(e)?e:qs(e);return r.start(Nw("",r,t,n)),r.animation}function oc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const l7=(e,t)=>e.depth-t.depth;class u7{constructor(){this.children=[],this.isDirty=!1}add(t){yw(this.children,t),this.isDirty=!0}remove(t){ch(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(l7),this.isDirty=!1,this.children.forEach(t)}}function c7(e,t){const n=yn.now(),r=({timestamp:a})=>{const s=a-n;s>=t&&(ja(r),e(s-t))};return ct.setup(r,!0),()=>ja(r)}function nh(e){return ln(e)?e.get():e}class f7{constructor(){this.members=[]}add(t){yw(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const a=r.instance;(!a||a.isConnected===!1)&&!r.snapshot&&(ch(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(ch(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const a=this.members[r];if(a.isPresent!==!1&&((n=a.instance)==null?void 0:n.isConnected)!==!1)return this.promote(a),!0}return!1}promote(t,n){var a;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:s}=r.options,{layoutDependency:l}=t.options;(s===void 0||s!==l)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(a=t.root)!=null&&a.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,a,s,l;(r=(n=t.options).onExitComplete)==null||r.call(n),(l=(a=t.resumingFrom)==null?void 0:(s=a.options).onExitComplete)==null||l.call(s)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const rh={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Hv=["","X","Y","Z"],d7=1e3;let h7=0;function Gv(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function DL(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=nL(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ct,!(a||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&DL(r)}function kL({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(l={},c=t==null?void 0:t()){this.id=h7++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(y7),this.nodes.forEach(w7),this.nodes.forEach(j7),this.nodes.forEach(v7)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new u7)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new gw),this.eventHandlers.get(l).add(c)}notifyListeners(l,...c){const f=this.eventHandlers.get(l);f&&f.notify(...c)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=kw(l)&&!mV(l),this.instance=l;const{layoutId:c,layout:f,visualElement:d}=this.options;if(d&&!d.current&&d.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||c)&&(this.isLayoutDirty=!0),e){let m,y=0;const g=()=>this.root.updateBlockedByResize=!1;ct.read(()=>{y=window.innerWidth}),e(l,()=>{const S=window.innerWidth;S!==y&&(y=S,this.root.updateBlockedByResize=!0,m&&m(),m=c7(g,250),rh.hasAnimatedSinceResize&&(rh.hasAnimatedSinceResize=!1,this.nodes.forEach(hE)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:y,hasRelativeLayoutChanged:g,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||d.getDefaultTransition()||E7,{onLayoutAnimationStart:w,onLayoutAnimationComplete:b}=d.getProps(),A=!this.targetLayout||!PL(this.targetLayout,S),_=!y&&g;if(this.options.layoutRoot||this.resumeFrom||_||y&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Ew(j,"layout"),onPlay:w,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(m,_,T.path)}else y||hE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ja(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(A7),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&DL(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const y=this.path[m];y.shouldResetTransform=!0,(typeof y.latestValues.x=="string"||typeof y.latestValues.y=="string")&&(y.isLayoutDirty=!0),y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const f=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),f&&this.nodes.forEach(x7),this.nodes.forEach(fE);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(dE);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(b7),this.nodes.forEach(S7),this.nodes.forEach(p7),this.nodes.forEach(m7)):this.nodes.forEach(dE),this.clearAllSnapshots();const c=yn.now();sn.delta=Kr(0,1e3/60,c-sn.timestamp),sn.timestamp=c,sn.isProcessing=!0,Lv.update.process(sn),Lv.preRender.process(sn),Lv.render.process(sn),sn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Rw.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(g7),this.sharedNodes.forEach(O7)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ct.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ct.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!vn(this.snapshot.measuredBox.x)&&!vn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Ht()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(c=!1),c&&this.instance){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!a)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!ML(this.projectionDelta),f=this.getTransformTemplate(),d=f?f(this.latestValues,""):void 0,m=d!==this.prevTransformTemplateValue;l&&this.instance&&(c||ro(this.latestValues)||m)&&(a(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return l&&(f=this.removeTransform(f)),N7(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:l}=this.options;if(!l)return Ht();const c=l.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(C7))){const{scroll:m}=this.root;m&&(qr(c.x,m.offset.x),qr(c.y,m.offset.y))}return c}removeElementScroll(l){var f;const c=Ht();if(br(c,l),(f=this.scroll)!=null&&f.wasRoot)return c;for(let d=0;d<this.path.length;d++){const m=this.path[d],{scroll:y,options:g}=m;m!==this.root&&y&&g.layoutScroll&&(y.wasRoot&&br(c,l),qr(c.x,y.offset.x),qr(c.y,y.offset.y))}return c}applyTransform(l,c=!1,f){var m,y;const d=f||Ht();br(d,l);for(let g=0;g<this.path.length;g++){const S=this.path[g];!c&&S.options.layoutScroll&&S.scroll&&S!==S.root&&(qr(d.x,-S.scroll.offset.x),qr(d.y,-S.scroll.offset.y)),ro(S.latestValues)&&th(d,S.latestValues,(m=S.layout)==null?void 0:m.layoutBox)}return ro(this.latestValues)&&th(d,this.latestValues,(y=this.layout)==null?void 0:y.layoutBox),d}removeTransform(l){var f;const c=Ht();br(c,l);for(let d=0;d<this.path.length;d++){const m=this.path[d];if(!ro(m.latestValues))continue;let y;m.instance&&(j1(m.latestValues)&&m.updateSnapshot(),y=Ht(),br(y,m.measurePageBox())),nE(c,m.latestValues,(f=m.snapshot)==null?void 0:f.layoutBox,y)}return ro(this.latestValues)&&nE(c,this.latestValues),c}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==sn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var S;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==c;if(!(l||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:y}=this.options;if(!this.layout||!(m||y))return;this.resolvedRelativeTargetAt=sn.timestamp;const g=this.getClosestProjectingParent();g&&this.linkedParentVersion!==g.layoutVersion&&!g.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&g&&g.layout?this.createRelativeTarget(g,this.layout.layoutBox,g.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ht(),this.targetWithTransforms=Ht()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ZV(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):br(this.target,this.layout.layoutBox),xL(this.target,this.targetDelta)):br(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?this.createRelativeTarget(g,this.target,g.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||j1(this.parent.latestValues)||gL(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(l,c,f){this.relativeParent=l,this.linkedParentVersion=l.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ht(),this.relativeTargetOrigin=Ht(),gh(this.relativeTargetOrigin,c,f,this.options.layoutAnchor||void 0),br(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var j;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let f=!0;if((this.isProjectionDirty||(j=this.parent)!=null&&j.isProjectionDirty)&&(f=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===sn.timestamp&&(f=!1),f)return;const{layout:d,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||m))return;br(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,g=this.treeScale.y;_V(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=Ht());const{target:S}=l;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(WT(this.prevProjectionDelta.x,this.projectionDelta.x),WT(this.prevProjectionDelta.y,this.projectionDelta.y)),Fu(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==g||!sE(this.projectionDelta.x,this.prevProjectionDelta.x)||!sE(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var c;if((c=this.options.visualElement)==null||c.scheduleRender(),l){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ts(),this.projectionDelta=Ts(),this.projectionDeltaWithTransform=Ts()}setAnimationOrigin(l,c=!1,f){const d=this.snapshot,m=d?d.latestValues:{},y={...this.latestValues},g=Ts();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const S=Ht(),j=d?d.source:void 0,w=this.layout?this.layout.source:void 0,b=j!==w,A=this.getStack(),_=!A||A.members.length<=1,T=!!(b&&!_&&this.options.crossfade===!0&&!this.path.some(T7));this.animationProgress=0;let C;const O=f==null?void 0:f.interpolateProjection(l);this.mixTargetDelta=E=>{const M=E/1e3,k=O==null?void 0:O(M);k?(g.x.translate=k.x,g.x.scale=ut(l.x.scale,1,M),g.x.origin=l.x.origin,g.x.originPoint=l.x.originPoint,g.y.translate=k.y,g.y.scale=ut(l.y.scale,1,M),g.y.origin=l.y.origin,g.y.originPoint=l.y.originPoint):(pE(g.x,l.x,M),pE(g.y,l.y,M)),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(gh(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),_7(this.relativeTarget,this.relativeTargetOrigin,S,M),C&&t7(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Ht()),br(C,this.relativeTarget)),b&&(this.animationValues=y,i7(y,m,this.latestValues,M,T,_)),k&&k.rotate!==void 0&&(this.animationValues||(this.animationValues=y),this.animationValues.pathRotation=k.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){var c,f,d;this.notifyListeners("animationStart"),(c=this.currentAnimation)==null||c.stop(),(d=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||d.stop(),this.pendingAnimation&&(ja(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ct.update(()=>{rh.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=qs(0)),this.motionValue.jump(0,!1),this.currentAnimation=s7(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(d7),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:f,layout:d,latestValues:m}=l;if(!(!c||!f||!d)){if(this!==l&&this.layout&&d&&LL(this.options.animationType,this.layout.layoutBox,d.layoutBox)){f=this.target||Ht();const y=vn(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+y;const g=vn(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+g}br(c,f),th(c,m),Fu(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new f7),this.sharedNodes.get(l).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var c;const{layoutId:l}=this.options;return l?((c=this.getStack())==null?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:l}=this.options;return l?(c=this.getStack())==null?void 0:c.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:c,preserveFollowOpacity:f}={}){const d=this.getStack();d&&d.promote(this,f),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let c=!1;const{latestValues:f}=l;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const d={};f.z&&Gv("z",l,d,this.animationValues);for(let m=0;m<Hv.length;m++)Gv(`rotate${Hv[m]}`,l,d,this.animationValues),Gv(`skew${Hv[m]}`,l,d,this.animationValues);l.render();for(const m in d)l.setStaticValue(m,d[m]),this.animationValues&&(this.animationValues[m]=d[m]);l.scheduleRender()}applyProjectionStyles(l,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=nh(c==null?void 0:c.pointerEvents)||"",l.transform=f?f(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=nh(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!ro(this.latestValues)&&(l.transform=f?f({},""):"none",this.hasProjected=!1);return}l.visibility="";const m=d.animationValues||d.latestValues;this.applyTransformsToTarget();let y=n7(this.projectionDeltaWithTransform,this.treeScale,m);f&&(y=f(m,y)),l.transform=y;const{x:g,y:S}=this.projectionDelta;l.transformOrigin=`${g.origin*100}% ${S.origin*100}% 0`,d.animationValues?l.opacity=d===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:l.opacity=d===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const j in O1){if(m[j]===void 0)continue;const{correct:w,applyTo:b,isCSSVariable:A}=O1[j],_=y==="none"?m[j]:w(m[j],d);if(b){const T=b.length;for(let C=0;C<T;C++)l[b[C]]=_}else A?this.options.visualElement.renderState.vars[j]=_:l[j]=_}this.options.layoutId&&(l.pointerEvents=d===this?nh(c==null?void 0:c.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var c;return(c=l.currentAnimation)==null?void 0:c.stop()}),this.root.nodes.forEach(fE),this.root.sharedNodes.clear()}}}function p7(e){e.updateLayout()}function m7(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:s}=e.options,l=t.source!==e.layout.source;if(s==="size")Br(y=>{const g=l?t.measuredBox[y]:t.layoutBox[y],S=vn(g);g.min=r[y].min,g.max=g.min+S});else if(s==="x"||s==="y"){const y=s==="x"?"y":"x";_1(l?t.measuredBox[y]:t.layoutBox[y],r[y])}else LL(s,t.layoutBox,r)&&Br(y=>{const g=l?t.measuredBox[y]:t.layoutBox[y],S=vn(r[y]);g.max=g.min+S,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+S)});const c=Ts();Fu(c,r,t.layoutBox);const f=Ts();l?Fu(f,e.applyTransform(a,!0),t.measuredBox):Fu(f,r,t.layoutBox);const d=!ML(c);let m=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:g,layout:S}=y;if(g&&S){const j=e.options.layoutAnchor||void 0,w=Ht();gh(w,t.layoutBox,g.layoutBox,j);const b=Ht();gh(b,r,S.layoutBox,j),PL(w,b)||(m=!0),y.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=w,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:f,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function y7(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function v7(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function g7(e){e.clearSnapshot()}function fE(e){e.clearMeasurements()}function x7(e){e.isLayoutDirty=!0,e.updateLayout()}function dE(e){e.isLayoutDirty=!1}function b7(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function S7(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function hE(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function w7(e){e.resolveTargetDelta()}function j7(e){e.calcProjection()}function A7(e){e.resetSkewAndRotation()}function O7(e){e.removeLeadSnapshot()}function pE(e,t,n){e.translate=ut(t.translate,0,n),e.scale=ut(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function mE(e,t,n,r){e.min=ut(t.min,n.min,r),e.max=ut(t.max,n.max,r)}function _7(e,t,n,r){mE(e.x,t.x,n.x,r),mE(e.y,t.y,n.y,r)}function T7(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const E7={duration:.45,ease:[.4,0,.1,1]},yE=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),vE=yE("applewebkit/")&&!yE("chrome/")?Math.round:fr;function gE(e){e.min=vE(e.min),e.max=vE(e.max)}function N7(e){gE(e.x),gE(e.y)}function LL(e,t,n){return e==="position"||e==="preserve-aspect"&&!WV(oE(t),oE(n),.2)}function C7(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const M7=kL({attachResizeListener:(e,t)=>oc(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Fv={current:void 0},zL=kL({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Fv.current){const e=new M7({});e.mount(window),e.setOptions({layoutScroll:!0}),Fv.current=e}return Fv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),qw=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function xE(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function P7(...e){return t=>{let n=!1;const r=e.map(a=>{const s=xE(a,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let a=0;a<r.length;a++){const s=r[a];typeof s=="function"?s():xE(e[a],null)}}}}function R7(...e){return P.useCallback(P7(...e),e)}class D7 extends P.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Zd(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,a=Zd(r)&&r.offsetWidth||0,s=Zd(r)&&r.offsetHeight||0,l=getComputedStyle(n),c=this.props.sizeRef.current;c.height=parseFloat(l.height),c.width=parseFloat(l.width),c.top=n.offsetTop,c.left=n.offsetLeft,c.right=a-c.width-c.left,c.bottom=s-c.height-c.top,c.direction=l.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function k7({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:s}){var g;const l=P.useId(),c=P.useRef(null),f=P.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:d}=P.useContext(qw),m=((g=e.props)==null?void 0:g.ref)??(e==null?void 0:e.ref),y=R7(c,m);return P.useInsertionEffect(()=>{const{width:S,height:j,top:w,left:b,right:A,bottom:_,direction:T}=f.current;if(t||s===!1||!c.current||!S||!j)return;const C=T==="rtl",O=n==="left"?C?`right: ${A}`:`left: ${b}`:C?`left: ${b}`:`right: ${A}`,E=r==="bottom"?`bottom: ${_}`:`top: ${w}`;c.current.dataset.motionPopId=l;const M=document.createElement("style");d&&(M.nonce=d);const k=a??document.head;return k.appendChild(M),M.sheet&&M.sheet.insertRule(`
[data-motion-pop-id="${l}"] {
position: absolute !important;
width: ${S}px !important;
height: ${j}px !important;
${O}px !important;
${E}px !important;
}
`),()=>{var D;(D=c.current)==null||D.removeAttribute("data-motion-pop-id"),k.contains(M)&&k.removeChild(M)}},[t]),p.jsx(D7,{isPresent:t,childRef:c,sizeRef:f,pop:s,children:s===!1?e:P.cloneElement(e,{ref:y})})}const L7=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:s,mode:l,anchorX:c,anchorY:f,root:d})=>{const m=pw(z7),y=P.useId(),g=P.useRef(n),S=P.useRef(r);mw(()=>{g.current=n,S.current=r});let j=!0,w=P.useMemo(()=>(j=!1,{id:y,initial:t,isPresent:n,custom:a,onExitComplete:b=>{m.set(b,!0);for(const A of m.values())if(!A)return;r&&r()},register:b=>(m.set(b,!1),()=>{var A;m.delete(b),!g.current&&!m.size&&((A=S.current)==null||A.call(S))})}),[n,m,r]);return s&&j&&(w={...w}),P.useMemo(()=>{m.forEach((b,A)=>m.set(A,!1))},[n]),P.useEffect(()=>{!n&&!m.size&&r&&r()},[n]),e=p.jsx(k7,{pop:l==="popLayout",isPresent:n,anchorX:c,anchorY:f,root:d,children:e}),p.jsx(Ep.Provider,{value:w,children:e})};function z7(){return new Map}function $L(e=!0){const t=P.useContext(Ep);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,s=P.useId();P.useEffect(()=>{if(e)return a(s)},[e]);const l=P.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,l]:[!0]}const Cd=e=>e.key||"";function bE(e){const t=[];return P.Children.forEach(e,n=>{P.isValidElement(n)&&t.push(n)}),t}const Ku=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:s="sync",propagate:l=!1,anchorX:c="left",anchorY:f="top",root:d})=>{const[m,y]=$L(l),g=P.useMemo(()=>bE(e),[e]),S=l&&!m?[]:g.map(Cd),j=P.useRef(!0),w=P.useRef(g),b=pw(()=>new Map),A=P.useRef(new Set),[_,T]=P.useState(g),[C,O]=P.useState(g);mw(()=>{j.current=!1,w.current=g;for(let k=0;k<C.length;k++){const D=Cd(C[k]);S.includes(D)?(b.delete(D),A.current.delete(D)):b.get(D)!==!0&&b.set(D,!1)}},[C,S.length,S.join("-")]);const E=[];if(g!==_){let k=[...g];for(let D=0;D<C.length;D++){const B=C[D],I=Cd(B);S.includes(I)||(k.splice(D,0,B),E.push(B))}return s==="wait"&&E.length&&(k=E),O(bE(k)),T(g),null}const{forceRender:M}=P.useContext(hw);return p.jsx(p.Fragment,{children:C.map(k=>{const D=Cd(k),B=l&&!m?!1:g===C||S.includes(D),I=()=>{if(A.current.has(D))return;if(b.has(D))A.current.add(D),b.set(D,!0);else return;let z=!0;b.forEach(F=>{F||(z=!1)}),z&&(M==null||M(),O(w.current),l&&(y==null||y()),r&&r())};return p.jsx(L7,{isPresent:B,initial:!j.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:s,root:d,onExitComplete:B?void 0:I,anchorX:c,anchorY:f,children:k},D)})})},BL=P.createContext({strict:!1}),SE={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let wE=!1;function $7(){if(wE)return;const e={};for(const t in SE)e[t]={isEnabled:n=>SE[t].some(r=>!!n[r])};mL(e),wE=!0}function qL(){return $7(),wV()}function B7(e){const t=qL();for(const n in e)t[n]={...t[n],...e[n]};mL(t)}const q7=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function xh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||q7.has(e)}let IL=e=>!xh(e);function I7(e){typeof e=="function"&&(IL=t=>t.startsWith("on")?!xh(t):e(t))}try{I7(require("@emotion/is-prop-valid").default)}catch{}function U7(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||ln(e[a])||(IL(a)||n===!0&&xh(a)||!t&&!xh(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const Pp=P.createContext({});function V7(e,t){if(Mp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ac(n)?n:void 0,animate:ac(r)?r:void 0}}return e.inherit!==!1?t:{}}function H7(e){const{initial:t,animate:n}=V7(e,P.useContext(Pp));return P.useMemo(()=>({initial:t,animate:n}),[jE(t),jE(n)])}function jE(e){return Array.isArray(e)?e.join(" "):e}const Iw=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function UL(e,t,n){for(const r in t)!ln(t[r])&&!wL(r,n)&&(e[r]=t[r])}function G7({transformTemplate:e},t){return P.useMemo(()=>{const n=Iw();return $w(n,t,e),Object.assign({},n.vars,n.style)},[t])}function F7(e,t){const n=e.style||{},r={};return UL(r,n,e),Object.assign(r,G7(e,t)),r}function K7(e,t){const n={},r=F7(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const VL=()=>({...Iw(),attrs:{}});function Y7(e,t,n,r){const a=P.useMemo(()=>{const s=VL();return jL(s,t,OL(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};UL(s,e.style,e),a.style={...s,...a.style}}return a}const X7=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Uw(e){return typeof e!="string"||e.includes("-")?!1:!!(X7.indexOf(e)>-1||/[A-Z]/u.test(e))}function W7(e,t,n,{latestValues:r},a,s=!1,l){const f=(l??Uw(e)?Y7:K7)(t,r,a,e),d=U7(t,typeof e=="string",s),m=e!==P.Fragment?{...d,...f,ref:n}:{},{children:y}=t,g=P.useMemo(()=>ln(y)?y.get():y,[y]);return P.createElement(e,{...m,children:g})}function Z7({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:Q7(n,r,a,e),renderState:t()}}function Q7(e,t,n,r){const a={},s=r(e,{});for(const g in s)a[g]=nh(s[g]);let{initial:l,animate:c}=e;const f=Mp(e),d=hL(e);t&&d&&!f&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let m=n?n.initial===!1:!1;m=m||l===!1;const y=m?c:l;if(y&&typeof y!="boolean"&&!Cp(y)){const g=Array.isArray(y)?y:[y];for(let S=0;S<g.length;S++){const j=Cw(e,g[S]);if(j){const{transitionEnd:w,transition:b,...A}=j;for(const _ in A){let T=A[_];if(Array.isArray(T)){const C=m?T.length-1:0;T=T[C]}T!==null&&(a[_]=T)}for(const _ in w)a[_]=w[_]}}}return a}const HL=e=>(t,n)=>{const r=P.useContext(Pp),a=P.useContext(Ep),s=()=>Z7(e,t,r,a);return n?s():pw(s)},J7=HL({scrapeMotionValuesFromProps:Bw,createRenderState:Iw}),e9=HL({scrapeMotionValuesFromProps:_L,createRenderState:VL}),t9=Symbol.for("motionComponentSymbol");function n9(e,t,n){const r=P.useRef(n);P.useInsertionEffect(()=>{r.current=n});const a=P.useRef(null);return P.useCallback(s=>{var c;s&&((c=e.onMount)==null||c.call(e,s)),t&&(s?t.mount(s):t.unmount());const l=r.current;if(typeof l=="function")if(s){const f=l(s);typeof f=="function"&&(a.current=f)}else a.current?(a.current(),a.current=null):l(s);else l&&(l.current=s)},[t])}const GL=P.createContext({});function As(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function r9(e,t,n,r,a,s){var T,C;const{visualElement:l}=P.useContext(Pp),c=P.useContext(BL),f=P.useContext(Ep),d=P.useContext(qw),m=d.reducedMotion,y=d.skipAnimations,g=P.useRef(null),S=P.useRef(!1);r=r||c.renderer,!g.current&&r&&(g.current=r(e,{visualState:t,parent:l,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:m,skipAnimations:y,isSVG:s}),S.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));const j=g.current,w=P.useContext(GL);j&&!j.projection&&a&&(j.type==="html"||j.type==="svg")&&i9(g.current,n,a,w);const b=P.useRef(!1);P.useInsertionEffect(()=>{j&&b.current&&j.update(n,f)});const A=n[tL],_=P.useRef(!!A&&typeof window<"u"&&!((T=window.MotionHandoffIsComplete)!=null&&T.call(window,A))&&((C=window.MotionHasOptimisedAnimation)==null?void 0:C.call(window,A)));return mw(()=>{S.current=!0,j&&(b.current=!0,window.MotionIsMounted=!0,j.updateFeatures(),j.scheduleRenderMicrotask(),_.current&&j.animationState&&j.animationState.animateChanges())}),P.useEffect(()=>{j&&(!_.current&&j.animationState&&j.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var O;(O=window.MotionHandoffMarkAsComplete)==null||O.call(window,A)}),_.current=!1),j.enteringChildren=void 0)}),j}function i9(e,t,n,r){const{layoutId:a,layout:s,drag:l,dragConstraints:c,layoutScroll:f,layoutRoot:d,layoutAnchor:m,layoutCrossfade:y}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:FL(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:!!l||c&&As(c),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:y,layoutScroll:f,layoutRoot:d,layoutAnchor:m})}function FL(e){if(e)return e.options.allowProjection!==!1?e.projection:FL(e.parent)}function Kv(e,{forwardMotionProps:t=!1,type:n}={},r,a){r&&B7(r);const s=n?n==="svg":Uw(e),l=s?e9:J7;function c(d,m){let y;const g={...P.useContext(qw),...d,layoutId:a9(d)},{isStatic:S}=g,j=H7(d),w=l(d,S);if(!S&&typeof window<"u"){o9();const b=s9(g);y=b.MeasureLayout,j.visualElement=r9(e,w,g,a,b.ProjectionNode,s)}return p.jsxs(Pp.Provider,{value:j,children:[y&&j.visualElement?p.jsx(y,{visualElement:j.visualElement,...g}):null,W7(e,d,n9(w,j.visualElement,m),w,S,t,s)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=P.forwardRef(c);return f[t9]=e,f}function a9({layoutId:e}){const t=P.useContext(hw).id;return t&&e!==void 0?t+"-"+e:e}function o9(e,t){P.useContext(BL).strict}function s9(e){const t=qL(),{drag:n,layout:r}=t;if(!n&&!r)return{};const a={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function l9(e,t){if(typeof Proxy>"u")return Kv;const n=new Map,r=(s,l)=>Kv(s,l,e,t),a=(s,l)=>r(s,l);return new Proxy(a,{get:(s,l)=>l==="create"?r:(n.has(l)||n.set(l,Kv(l,void 0,e,t)),n.get(l))})}const u9=(e,t)=>t.isSVG??Uw(e)?new BV(t):new RV(t,{allowProjection:e!==P.Fragment});class c9 extends Ea{constructor(t){super(t),t.animationState||(t.animationState=HV(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Cp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let f9=0;class d9 extends Ea{constructor(){super(...arguments),this.id=f9++,this.isExitComplete=!1}update(){var s;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:l,custom:c}=this.node.getProps();if(typeof l=="string"||typeof l=="object"&&l!==null&&!Array.isArray(l)){const f=go(this.node,l,c);if(f){const{transition:d,transitionEnd:m,...y}=f;for(const g in y)(s=this.node.getValue(g))==null||s.jump(y[g])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const h9={animation:{Feature:c9},exit:{Feature:d9}};function Xc(e){return{point:{x:e.pageX,y:e.pageY}}}const p9=e=>t=>Dw(t)&&e(t,Xc(t));function Yu(e,t,n,r){return oc(e,t,p9(n),r)}const KL=({current:e})=>e?e.ownerDocument.defaultView:null,AE=(e,t)=>Math.abs(e-t);function m9(e,t){const n=AE(e.x,t.x),r=AE(e.y,t.y);return Math.sqrt(n**2+r**2)}const OE=new Set(["auto","scroll"]);class YL{constructor(t,n,{transformPagePoint:r,contextWindow:a=window,dragSnapToOrigin:s=!1,distanceThreshold:l=3,element:c}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=j=>{this.handleScroll(j.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Md(this.lastRawMoveEventInfo,this.transformPagePoint));const j=Yv(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,b=m9(j.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!b)return;const{point:A}=j,{timestamp:_}=sn;this.history.push({...A,timestamp:_});const{onStart:T,onMove:C}=this.handlers;w||(T&&T(this.lastMoveEvent,j),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,j)},this.handlePointerMove=(j,w)=>{this.lastMoveEvent=j,this.lastRawMoveEventInfo=w,this.lastMoveEventInfo=Md(w,this.transformPagePoint),ct.update(this.updatePoint,!0)},this.handlePointerUp=(j,w)=>{this.end();const{onEnd:b,onSessionEnd:A,resumeAnimation:_}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=Yv(j.type==="pointercancel"?this.lastMoveEventInfo:Md(w,this.transformPagePoint),this.history);this.startEvent&&b&&b(j,T),A&&A(j,T)},!Dw(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=a||window;const f=Xc(t),d=Md(f,this.transformPagePoint),{point:m}=d,{timestamp:y}=sn;this.history=[{...m,timestamp:y}];const{onSessionStart:g}=n;g&&g(t,Yv(d,this.history));const S={passive:!0,capture:!0};this.removeListeners=Fc(Yu(this.contextWindow,"pointermove",this.handlePointerMove,S),Yu(this.contextWindow,"pointerup",this.handlePointerUp,S),Yu(this.contextWindow,"pointercancel",this.handlePointerUp,S)),c&&this.startScrollTracking(c)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(OE.has(r.overflowX)||OE.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,a=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:a.x-n.x,y:a.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,a),ct.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ja(this.updatePoint)}}function Md(e,t){return t?{point:t(e.point)}:e}function _E(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yv({point:e},t){return{point:e,delta:_E(e,XL(t)),offset:_E(e,y9(t)),velocity:v9(t,.1)}}function y9(e){return e[0]}function XL(e){return e[e.length-1]}function v9(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=XL(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Hn(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&a.timestamp-r.timestamp>Hn(t)*2&&(r=e[1]);const s=ur(a.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const l={x:(a.x-r.x)/s,y:(a.y-r.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function g9(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ut(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ut(n,e,r.max):Math.min(e,n)),e}function TE(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function x9(e,{top:t,left:n,bottom:r,right:a}){return{x:TE(e.x,n,a),y:TE(e.y,t,r)}}function EE(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function b9(e,t){return{x:EE(e.x,t.x),y:EE(e.y,t.y)}}function S9(e,t){let n=.5;const r=vn(e),a=vn(t);return a>r?n=rc(t.min,t.max-r,e.min):r>a&&(n=rc(e.min,e.max-a,t.min)),Kr(0,1,n)}function w9(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const T1=.35;function j9(e=T1){return e===!1?e=0:e===!0&&(e=T1),{x:NE(e,"left","right"),y:NE(e,"top","bottom")}}function NE(e,t,n){return{min:CE(e,t),max:CE(e,n)}}function CE(e,t){return typeof e=="number"?e:e[t]||0}const A9=new WeakMap;class O9{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ht(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const s=y=>{n&&this.snapToCursor(Xc(y).point),this.stopAnimation()},l=(y,g)=>{const{drag:S,dragPropagation:j,onDragStart:w}=this.getProps();if(S&&!j&&(this.openDragLock&&this.openDragLock(),this.openDragLock=QU(S),!this.openDragLock))return;this.latestPointerEvent=y,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Br(A=>{let _=this.getAxisMotionValue(A).get()||0;if(Vr.test(_)){const{projection:T}=this.visualElement;if(T&&T.layout){const C=T.layout.layoutBox[A];C&&(_=vn(C)*(parseFloat(_)/100))}}this.originPoint[A]=_}),w&&ct.update(()=>w(y,g),!1,!0),v1(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},c=(y,g)=>{this.latestPointerEvent=y,this.latestPanInfo=g;const{dragPropagation:S,dragDirectionLock:j,onDirectionLock:w,onDrag:b}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:A}=g;if(j&&this.currentDirection===null){this.currentDirection=T9(A),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",g.point,A),this.updateAxis("y",g.point,A),this.visualElement.render(),b&&ct.update(()=>b(y,g),!1,!0)},f=(y,g)=>{this.latestPointerEvent=y,this.latestPanInfo=g,this.stop(y,g),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>{const{dragSnapToOrigin:y}=this.getProps();(y||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:m}=this.getProps();this.panSession=new YL(t,{onSessionStart:s,onStart:l,onMove:c,onSessionEnd:f,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:KL(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,a=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!a||!r)return;const{velocity:l}=a;this.startAnimation(l);const{onDragEnd:c}=this.getProps();c&&ct.postRender(()=>c(r,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!Pd(t,a,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=g9(l,this.constraints[t],this.elastic[t])),s.set(l)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,a=this.constraints;t&&As(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=x9(r.layoutBox,t):this.constraints=!1,this.elastic=j9(n),a!==this.constraints&&!As(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Br(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=w9(r.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!As(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;a.root&&(a.root.scroll=void 0,a.root.updateScroll());const s=TV(r,a.root,this.visualElement.getTransformPagePoint());let l=b9(a.layout.layoutBox,s);if(n){const c=n(AV(l));this.hasMutatedConstraints=!!c,c&&(l=vL(c))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},d=Br(m=>{if(!Pd(m,n,this.currentDirection))return;let y=f&&f[m]||{};(l===!0||l===m)&&(y={min:0,max:0});const g=a?200:1e6,S=a?40:1e7,j={type:"inertia",velocity:r?t[m]:0,bounceStiffness:g,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...s,...y};return this.startAxisValueAnimation(m,j)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return v1(this.visualElement,t),r.start(Nw(t,r,0,n,this.visualElement,!1))}stopAnimation(){Br(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps()[n];return a||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Br(n=>{const{drag:r}=this.getProps();if(!Pd(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,s=this.getAxisMotionValue(n);if(a&&a.layout){const{min:l,max:c}=a.layout.layoutBox[n],f=s.get()||0;s.set(t[n]-ut(l,c,.5)+f)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!As(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Br(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const f=c.get();a[l]=S9({min:f,max:f},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Br(l=>{if(!Pd(l,t,null))return;const c=this.getAxisMotionValue(l),{min:f,max:d}=this.constraints[l];c.set(ut(f,d,a[l]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;A9.set(this.visualElement,this);const t=this.visualElement.current,n=Yu(t,"pointerdown",d=>{const{drag:m,dragListener:y=!0}=this.getProps(),g=d.target,S=g!==t&&iV(g);m&&y&&!S&&this.start(d)});let r;const a=()=>{const{dragConstraints:d}=this.getProps();As(d)&&d.current&&(this.constraints=this.resolveRefConstraints(),r||(r=_9(t,d.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,l=s.addEventListener("measure",a);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ct.read(a);const c=oc(window,"resize",()=>this.scalePositionWithinConstraints()),f=s.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:m})=>{this.isDragging&&m&&(Br(y=>{const g=this.getAxisMotionValue(y);g&&(this.originPoint[y]+=d[y].translate,g.set(g.get()+d[y].translate))}),this.visualElement.render())}));return()=>{c(),n(),l(),f&&f(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:s=!1,dragElastic:l=T1,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:s,dragElastic:l,dragMomentum:c}}}function ME(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function _9(e,t,n){const r=$T(e,ME(n)),a=$T(t,ME(n));return()=>{r(),a()}}function Pd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function T9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class E9 extends Ea{constructor(t){super(t),this.removeGroupControls=fr,this.removeListeners=fr,this.controls=new O9(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fr}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Xv=e=>(t,n)=>{e&&ct.update(()=>e(t,n),!1,!0)};class N9 extends Ea{constructor(){super(...arguments),this.removePointerDownListener=fr}onPointerDown(t){this.session=new YL(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:KL(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:Xv(t),onStart:Xv(n),onMove:Xv(r),onEnd:(s,l)=>{delete this.session,a&&ct.postRender(()=>a(s,l))}}}mount(){this.removePointerDownListener=Yu(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Wv=!1;class C9 extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&a&&r.register(s),Wv&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:s}=this.props,{projection:l}=r;return l&&(l.isPresent=s,t.layoutDependency!==n&&l.setOptions({...l.options,layoutDependency:n}),Wv=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==s?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||ct.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),Rw.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;Wv=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function WL(e){const[t,n]=$L(),r=P.useContext(hw);return p.jsx(C9,{...e,layoutGroup:r,switchLayoutGroup:P.useContext(GL),isPresent:t,safeToRemove:n})}const M9={pan:{Feature:N9},drag:{Feature:E9,ProjectionNode:zL,MeasureLayout:WL}};function PE(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,s=r[a];s&&ct.postRender(()=>s(t,Xc(t)))}class P9 extends Ea{mount(){const{current:t}=this.node;t&&(this.unmount=eV(t,(n,r)=>(PE(this.node,r,"Start"),a=>PE(this.node,a,"End"))))}unmount(){}}class R9 extends Ea{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Fc(oc(this.node.current,"focus",()=>this.onFocus()),oc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function RE(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),s=r[a];s&&ct.postRender(()=>s(t,Xc(t)))}class D9 extends Ea{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=oV(t,(a,s)=>(RE(this.node,s,"Start"),(l,{success:c})=>RE(this.node,l,c?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const E1=new WeakMap,Zv=new WeakMap,k9=e=>{const t=E1.get(e.target);t&&t(e)},L9=e=>{e.forEach(k9)};function z9({root:e,...t}){const n=e||document;Zv.has(n)||Zv.set(n,{});const r=Zv.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(L9,{root:e,...t})),r[a]}function $9(e,t,n){const r=z9(t);return E1.set(e,n),r.observe(e),()=>{E1.delete(e),r.unobserve(e)}}const B9={some:0,all:1};class q9 extends Ea{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var f;(f=this.stopObserver)==null||f.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:s}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:B9[a]},c=d=>{const{isIntersecting:m}=d;if(this.isInView===m||(this.isInView=m,s&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:y,onViewportLeave:g}=this.node.getProps(),S=m?y:g;S&&S(d)};this.stopObserver=$9(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(I9(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function I9({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const U9={inView:{Feature:q9},tap:{Feature:D9},focus:{Feature:R9},hover:{Feature:P9}},V9={layout:{ProjectionNode:zL,MeasureLayout:WL}},H9={...h9,...U9,...M9,...V9},sr=l9(H9,u9),Vw=h3(e=>({sidebarOpen:!0,toggleSidebar:()=>e(t=>({sidebarOpen:!t.sidebarOpen})),setSidebarOpen:t=>e({sidebarOpen:t})}));/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const G9=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ZL=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var F9={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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const K9=P.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:l,...c},f)=>P.createElement("svg",{ref:f,...F9,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ZL("lucide",a),...c},[...l.map(([d,m])=>P.createElement(d,m)),...Array.isArray(s)?s:[s]]));/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const be=(e,t)=>{const n=P.forwardRef(({className:r,...a},s)=>P.createElement(K9,{ref:s,iconNode:t,className:ZL(`lucide-${G9(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Y9=be("ArrowDownRight",[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const X9=be("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const N1=be("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const C1=be("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sc=be("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Hw=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const W9=be("Calendar",[["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"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Z9=be("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Q9=be("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const J9=be("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.460.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=be("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
* @license lucide-react v0.460.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=be("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gw=be("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Wc=be("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Is=be("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
* @license lucide-react v0.460.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=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fw=be("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const DE=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yr=be("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rH=be("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const QL=be("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iH=be("FileCheck",[["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:"m9 15 2 2 4-4",key:"1grp1n"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const co=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zc=be("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const aH=be("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ih=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const JL=be("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kE=be("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oH=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sH=be("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lH=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wo=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const e4=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uH=be("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cH=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fH=be("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dH=be("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hH=be("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pH=be("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mH=be("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 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.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const LE=be("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zE=be("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $E=be("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ci=be("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yH=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Co=be("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vH=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ah=be("Shield",[["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"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gH=be("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xH=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const t4=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Kw=be("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Na=be("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ba=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const M1=be("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const P1=be("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Aa=be("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const n4=be("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const r4=be("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function i4(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=i4(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Me(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=i4(e))&&(r&&(r+=" "),r+=t);return r}const Yw="-",bH=e=>{const t=wH(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const c=l.split(Yw);return c[0]===""&&c.length!==1&&c.shift(),a4(c,t)||SH(l)},getConflictingClassGroupIds:(l,c)=>{const f=n[l]||[];return c&&r[l]?[...f,...r[l]]:f}}},a4=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?a4(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const s=e.join(Yw);return(l=t.validators.find(({validator:c})=>c(s)))==null?void 0:l.classGroupId},BE=/^\[(.+)\]$/,SH=e=>{if(BE.test(e)){const t=BE.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},wH=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return AH(Object.entries(e.classGroups),n).forEach(([s,l])=>{R1(l,r,s,t)}),r},R1=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const s=a===""?t:qE(t,a);s.classGroupId=n;return}if(typeof a=="function"){if(jH(a)){R1(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,l])=>{R1(l,qE(t,s),n,r)})})},qE=(e,t)=>{let n=e;return t.split(Yw).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},jH=e=>e.isThemeGetter,AH=(e,t)=>t?e.map(([n,r])=>{const a=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,c])=>[t+l,c])):s);return[n,a]}):e,OH=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(s,l)=>{n.set(s,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let l=n.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return a(s,l),l},set(s,l){n.has(s)?n.set(s,l):a(s,l)}}},o4="!",_H=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,a=t[0],s=t.length,l=c=>{const f=[];let d=0,m=0,y;for(let b=0;b<c.length;b++){let A=c[b];if(d===0){if(A===a&&(r||c.slice(b,b+s)===t)){f.push(c.slice(m,b)),m=b+s;continue}if(A==="/"){y=b;continue}}A==="["?d++:A==="]"&&d--}const g=f.length===0?c:c.substring(m),S=g.startsWith(o4),j=S?g.substring(1):g,w=y&&y>m?y-m:void 0;return{modifiers:f,hasImportantModifier:S,baseClassName:j,maybePostfixModifierPosition:w}};return n?c=>n({className:c,parseClassName:l}):l},TH=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},EH=e=>({cache:OH(e.cacheSize),parseClassName:_H(e),...bH(e)}),NH=/\s+/,CH=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,s=[],l=e.trim().split(NH);let c="";for(let f=l.length-1;f>=0;f-=1){const d=l[f],{modifiers:m,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:S}=n(d);let j=!!S,w=r(j?g.substring(0,S):g);if(!w){if(!j){c=d+(c.length>0?" "+c:c);continue}if(w=r(g),!w){c=d+(c.length>0?" "+c:c);continue}j=!1}const b=TH(m).join(":"),A=y?b+o4:b,_=A+w;if(s.includes(_))continue;s.push(_);const T=a(w,j);for(let C=0;C<T.length;++C){const O=T[C];s.push(A+O)}c=d+(c.length>0?" "+c:c)}return c};function MH(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=s4(t))&&(r&&(r+=" "),r+=n);return r}const s4=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=s4(e[r]))&&(n&&(n+=" "),n+=t);return n};function PH(e,...t){let n,r,a,s=l;function l(f){const d=t.reduce((m,y)=>y(m),e());return n=EH(d),r=n.cache.get,a=n.cache.set,s=c,c(f)}function c(f){const d=r(f);if(d)return d;const m=CH(f,n);return a(f,m),m}return function(){return s(MH.apply(null,arguments))}}const gt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},l4=/^\[(?:([a-z-]+):)?(.+)\]$/i,RH=/^\d+\/\d+$/,DH=new Set(["px","full","screen"]),kH=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,LH=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zH=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$H=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,BH=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bi=e=>Ds(e)||DH.has(e)||RH.test(e),fa=e=>bl(e,"length",KH),Ds=e=>!!e&&!Number.isNaN(Number(e)),Qv=e=>bl(e,"number",Ds),_u=e=>!!e&&Number.isInteger(Number(e)),qH=e=>e.endsWith("%")&&Ds(e.slice(0,-1)),Le=e=>l4.test(e),da=e=>kH.test(e),IH=new Set(["length","size","percentage"]),UH=e=>bl(e,IH,u4),VH=e=>bl(e,"position",u4),HH=new Set(["image","url"]),GH=e=>bl(e,HH,XH),FH=e=>bl(e,"",YH),Tu=()=>!0,bl=(e,t,n)=>{const r=l4.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},KH=e=>LH.test(e)&&!zH.test(e),u4=()=>!1,YH=e=>$H.test(e),XH=e=>BH.test(e),WH=()=>{const e=gt("colors"),t=gt("spacing"),n=gt("blur"),r=gt("brightness"),a=gt("borderColor"),s=gt("borderRadius"),l=gt("borderSpacing"),c=gt("borderWidth"),f=gt("contrast"),d=gt("grayscale"),m=gt("hueRotate"),y=gt("invert"),g=gt("gap"),S=gt("gradientColorStops"),j=gt("gradientColorStopPositions"),w=gt("inset"),b=gt("margin"),A=gt("opacity"),_=gt("padding"),T=gt("saturate"),C=gt("scale"),O=gt("sepia"),E=gt("skew"),M=gt("space"),k=gt("translate"),D=()=>["auto","contain","none"],B=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",Le,t],z=()=>[Le,t],F=()=>["",bi,fa],X=()=>["auto",Ds,Le],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],ie=()=>["","0",Le],se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[Ds,Le];return{cacheSize:500,separator:":",theme:{colors:[Tu],spacing:[bi,fa],blur:["none","",da,Le],brightness:L(),borderColor:[e],borderRadius:["none","","full",da,Le],borderSpacing:z(),borderWidth:F(),contrast:L(),grayscale:ie(),hueRotate:L(),invert:ie(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[qH,fa],inset:I(),margin:I(),opacity:L(),padding:z(),saturate:L(),scale:L(),sepia:ie(),skew:L(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",Le]}],container:["container"],columns:[{columns:[da]}],"break-after":[{"break-after":se()}],"break-before":[{"break-before":se()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Y(),Le]}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_u,Le]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Le]}],grow:[{grow:ie()}],shrink:[{shrink:ie()}],order:[{order:["first","last","none",_u,Le]}],"grid-cols":[{"grid-cols":[Tu]}],"col-start-end":[{col:["auto",{span:["full",_u,Le]},Le]}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":[Tu]}],"row-start-end":[{row:["auto",{span:[_u,Le]},Le]}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Le]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Le]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[M]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[M]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Le,t]}],"min-w":[{"min-w":[Le,t,"min","max","fit"]}],"max-w":[{"max-w":[Le,t,"none","full","min","max","fit","prose",{screen:[da]},da]}],h:[{h:[Le,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Le,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Le,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Le,t,"auto","min","max","fit"]}],"font-size":[{text:["base",da,fa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Qv]}],"font-family":[{font:[Tu]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Le]}],"line-clamp":[{"line-clamp":["none",Ds,Qv]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",bi,Le]}],"list-image":[{"list-image":["none",Le]}],"list-style-type":[{list:["none","disc","decimal",Le]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",bi,fa]}],"underline-offset":[{"underline-offset":["auto",bi,Le]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),VH]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",UH]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},GH]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[j]}],"gradient-via-pos":[{via:[j]}],"gradient-to-pos":[{to:[j]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:$()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[bi,Le]}],"outline-w":[{outline:[bi,fa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[bi,fa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",da,FH]}],"shadow-color":[{shadow:[Tu]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",da,Le]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[y]}],saturate:[{saturate:[T]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Le]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",Le]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",Le]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[_u,Le]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Le]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Le]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Le]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[bi,fa,Qv]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},ZH=PH(WH);function Bt(...e){return ZH(Me(e))}function Re(e,t="SEK"){return new Intl.NumberFormat("sv-SE",{style:"currency",currency:t,maximumFractionDigits:0}).format(e)}function IE(e){return new Intl.NumberFormat("sv-SE").format(e)}function dr(e){return new Intl.DateTimeFormat("sv-SE",{year:"numeric",month:"short",day:"numeric"}).format(new Date(e))}function Xw(e){const t=new Date,n=new Date(e),r=t.getTime()-n.getTime(),a=Math.floor(r/6e4),s=Math.floor(r/36e5),l=Math.floor(r/864e5);return a<1?"Just now":a<60?`${a}m ago`:s<24?`${s}h ago`:l<7?`${l}d ago`:dr(e)}function QH(e){return e.split(" ").map(t=>t[0]).join("").toUpperCase().slice(0,2)}const JH=[{path:"/",label:"Briefing",icon:pH},{path:"/dashboard",label:"Dashboard",icon:oH},{path:"/crm",label:"CRM",icon:Aa},{path:"/sales",label:"Sales",icon:Na},{path:"/finance",label:"Finance",icon:n4},{path:"/hr",label:"HR",icon:sc},{path:"/legal",label:"Legal",icon:co},{path:"/marketing",label:"Marketing",icon:e4},{path:"/support",label:"Support",icon:JL},{path:"/automation",label:"Automation",icon:r4}];function eG(){const{sidebarOpen:e,toggleSidebar:t}=Vw(),n=Pr();return p.jsxs(p.Fragment,{children:[p.jsx(Ku,{children:e&&p.jsx(sr.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},className:"fixed inset-0 bg-black/20 z-40 lg:hidden",onClick:t})}),p.jsxs(sr.aside,{initial:!1,animate:{width:e?240:72},transition:{duration:.2,ease:"easeOut"},className:Bt("fixed left-0 top-0 h-full bg-sidebar z-50 flex flex-col","border-r border-border/60",e?"px-4":"px-3"),children:[p.jsxs("div",{className:"h-16 flex items-center justify-between shrink-0",children:[p.jsxs("div",{className:"flex items-center gap-2.5 overflow-hidden",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary flex items-center justify-center shrink-0",children:p.jsx("svg",{width:"16",height:"16",viewBox:"0 0 32 32",fill:"none",children:p.jsx("path",{d:"M10 22L16 10L22 22H10Z",stroke:"white",strokeWidth:"2.5",strokeLinejoin:"round"})})}),p.jsx(Ku,{children:e&&p.jsx(sr.span,{initial:{opacity:0,x:-8},animate:{opacity:1,x:0},exit:{opacity:0,x:-8},transition:{duration:.15},className:"text-sm font-semibold text-text-primary whitespace-nowrap",children:"AMOS"})})]}),p.jsx("button",{onClick:t,className:"hidden lg:flex w-7 h-7 items-center justify-center rounded-lg hover:bg-bg text-text-secondary transition-colors",children:e?p.jsx(eH,{size:14}):p.jsx(tH,{size:14})})]}),p.jsx("nav",{className:"flex-1 py-4 space-y-0.5 overflow-y-auto",children:JH.map(r=>{const a=n.pathname===r.path||r.path!=="/"&&n.pathname.startsWith(r.path),s=r.icon;return p.jsxs(f3,{to:r.path,onClick:()=>{window.innerWidth<1024&&t()},className:Bt("flex items-center gap-3 h-10 rounded-xl px-3 transition-colors duration-150 relative","hover:bg-primary-light",a&&"bg-primary-light text-primary",!a&&"text-text-secondary"),children:[a&&p.jsx(sr.div,{layoutId:"sidebar-active",className:"absolute left-0 top-1/2 -translate-y-1/2 w-0.5 h-5 bg-primary rounded-full",transition:{duration:.18,ease:"easeOut"}}),p.jsx(s,{size:18,strokeWidth:a?2:1.5}),p.jsx(Ku,{children:e&&p.jsx(sr.span,{initial:{opacity:0,x:-8},animate:{opacity:1,x:0},exit:{opacity:0,x:-8},transition:{duration:.15},className:Bt("text-sm font-medium whitespace-nowrap",a?"text-primary":"text-text-secondary"),children:r.label})})]},r.path)})})]})]})}const UE=[{id:"1",title:"Nytt avtal tecknat",description:"Acme Corp har signerat enterprise-avtalet",time:new Date(Date.now()-1e3*60*15).toISOString(),read:!1},{id:"2",title:"Faktura förfallen",description:"Faktura #INV-2024-0042 är 3 dagar försenad",time:new Date(Date.now()-1e3*60*60*2).toISOString(),read:!1},{id:"3",title:"Semester beviljad",description:"Din semesteransökan har godkänts av HR",time:new Date(Date.now()-1e3*60*60*5).toISOString(),read:!0}];function tG(){const{user:e,logout:t}=Gc(),{toggleSidebar:n}=Vw(),r=Op(),[a,s]=P.useState(!1),[l,c]=P.useState(!1),f=()=>{const m=new Date().getHours();return m<12?"Good morning":m<17?"Good afternoon":"Good evening"},d=UE.filter(m=>!m.read).length;return p.jsxs("header",{className:"h-16 bg-surface border-b border-border/60 flex items-center justify-between px-6 lg:px-10 sticky top-0 z-30",children:[p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx("button",{onClick:n,className:"lg:hidden w-9 h-9 flex items-center justify-center rounded-xl hover:bg-bg text-text-secondary transition-colors",children:p.jsx(uH,{size:18})}),p.jsxs("div",{children:[p.jsxs("h1",{className:"text-base font-semibold text-text-primary",children:[f(),e?`, ${e.name||"Erik Svensson"}`:", Erik Svensson"]}),p.jsx("p",{className:"text-xs text-text-secondary hidden sm:block",children:new Date().toLocaleDateString("sv-SE",{weekday:"long",year:"numeric",month:"long",day:"numeric"})})]})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs("div",{className:"hidden md:flex items-center h-9 px-3.5 rounded-xl bg-bg border border-border/60 text-text-secondary",children:[p.jsx(Co,{size:15}),p.jsx("span",{className:"ml-2 text-sm",children:"Search..."}),p.jsx("kbd",{className:"ml-6 px-1.5 py-0.5 text-[10px] font-medium bg-surface rounded border border-border",children:"⌘K"})]}),p.jsxs("div",{className:"relative",children:[p.jsxs("button",{onClick:()=>{s(!a),c(!1)},className:"relative w-9 h-9 flex items-center justify-center rounded-xl hover:bg-bg text-text-secondary transition-colors",children:[p.jsx(C1,{size:17}),d>0&&p.jsx("span",{className:"absolute top-1.5 right-1.5 w-2 h-2 bg-danger rounded-full"})]}),p.jsx(Ku,{children:a&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>s(!1)}),p.jsxs(sr.div,{initial:{opacity:0,y:4,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:4,scale:.98},transition:{duration:.15},className:"absolute right-0 top-full mt-2 w-80 bg-surface rounded-[18px] dropdown-shadow border border-border/60 z-50 overflow-hidden",children:[p.jsxs("div",{className:"px-4 py-3 border-b border-border/60 flex items-center justify-between",children:[p.jsx("span",{className:"text-sm font-semibold text-text-primary",children:"Notifications"}),p.jsx("span",{className:"text-xs text-primary font-medium cursor-pointer",children:"Mark all read"})]}),p.jsx("div",{className:"max-h-80 overflow-y-auto",children:UE.map(m=>p.jsx("div",{className:Bt("px-4 py-3 hover:bg-bg/60 transition-colors cursor-pointer",!m.read&&"bg-primary-light/30"),children:p.jsxs("div",{className:"flex items-start gap-3",children:[p.jsx("div",{className:Bt("w-2 h-2 rounded-full mt-1.5 shrink-0",m.read?"bg-transparent":"bg-primary")}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm font-medium text-text-primary",children:m.title}),p.jsx("p",{className:"text-xs text-text-secondary mt-0.5",children:m.description}),p.jsx("p",{className:"text-[11px] text-text-secondary/60 mt-1",children:Xw(m.time)})]})]})},m.id))})]})]})})]}),p.jsxs("div",{className:"relative",children:[p.jsxs("button",{onClick:()=>{c(!l),s(!1)},className:"flex items-center gap-2 pl-1 pr-2 h-9 rounded-xl hover:bg-bg transition-colors",children:[p.jsx("div",{className:"w-7 h-7 rounded-full bg-primary/10 text-primary flex items-center justify-center text-xs font-semibold",children:e?QH(e.name):"?"}),p.jsx(J9,{size:14,className:"text-text-secondary"})]}),p.jsx(Ku,{children:l&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>c(!1)}),p.jsxs(sr.div,{initial:{opacity:0,y:4,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:4,scale:.98},transition:{duration:.15},className:"absolute right-0 top-full mt-2 w-56 bg-surface rounded-[18px] dropdown-shadow border border-border/60 z-50 overflow-hidden",children:[p.jsxs("div",{className:"px-4 py-3 border-b border-border/60",children:[p.jsx("p",{className:"text-sm font-semibold text-text-primary",children:(e==null?void 0:e.name)||"User"}),p.jsx("p",{className:"text-xs text-text-secondary",children:(e==null?void 0:e.email)||"user@amos.com"})]}),p.jsxs("div",{className:"py-1",children:[p.jsxs("button",{onClick:()=>{r("/profile"),c(!1)},className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-text-secondary hover:bg-bg transition-colors",children:[p.jsx(P1,{size:15}),"Min Profil"]}),p.jsxs("button",{className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-text-secondary hover:bg-bg transition-colors",children:[p.jsx(Hw,{size:15}),"Byt Verksamhet"]}),p.jsxs("button",{className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-text-secondary hover:bg-bg transition-colors",children:[p.jsx(vH,{size:15}),"Inställningar"]}),p.jsx("div",{className:"border-t border-border/60 mt-1 pt-1",children:p.jsxs("button",{onClick:()=>{t(),c(!1)},className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-danger hover:bg-danger-light transition-colors",children:[p.jsx(lH,{size:15}),"Sign out"]})})]})]})]})})]})]})]})}function nG(){const{sidebarOpen:e}=Vw();return p.jsxs("div",{className:"min-h-screen bg-bg",children:[p.jsx(eG,{}),p.jsxs("div",{className:Bt("transition-all duration-200 ease-out",e?"lg:ml-[240px]":"lg:ml-[72px]"),children:[p.jsx(tG,{}),p.jsx("main",{className:"p-6 lg:p-10",children:p.jsx(sq,{})})]})]})}const D1=P.forwardRef(({label:e,error:t,icon:n,className:r,...a},s)=>p.jsxs("div",{className:"w-full",children:[e&&p.jsx("label",{className:"block text-sm font-medium text-text-primary mb-1.5",children:e}),p.jsxs("div",{className:"relative",children:[n&&p.jsx("div",{className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-text-secondary",children:n}),p.jsx("input",{ref:s,className:Bt("w-full h-11 rounded-[14px] border bg-surface text-text-primary text-sm","placeholder:text-text-secondary/50","focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30","transition-all duration-150",n?"pl-10 pr-4":"px-4",t&&"border-danger focus:ring-danger/20 focus:border-danger/30",r),...a})]}),t&&p.jsx("p",{className:"mt-1.5 text-xs text-danger",children:t})]}));D1.displayName="Input";function Kt({children:e,variant:t="primary",size:n="md",loading:r=!1,icon:a,className:s,disabled:l,...c}){const f={primary:"bg-primary text-white hover:bg-primary-hover shadow-sm",secondary:"bg-bg text-text-primary border border-border hover:bg-white",ghost:"bg-transparent text-text-secondary hover:bg-primary-light hover:text-primary",danger:"bg-danger text-white hover:opacity-90"},d={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-12 px-6 text-sm"};return p.jsxs("button",{className:Bt("inline-flex items-center justify-center gap-2 rounded-[14px] font-medium transition-colors duration-150","focus:outline-none focus:ring-2 focus:ring-primary/20","disabled:opacity-50 disabled:cursor-not-allowed","active:scale-[0.98]",f[t],d[n],s),disabled:l||r,...c,children:[r?p.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[p.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),p.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}):a,e]})}const rG="/api/v1";function iG(){var e;try{const t=localStorage.getItem("amos-auth");if(t){const n=JSON.parse(t);if((e=n.state)!=null&&e.token)return n.state.token}}catch{}return localStorage.getItem("amos_token")}async function Rd(e,t,n){const r=`${rG}${t}`,a={"Content-Type":"application/json"},s=iG();s&&(a.Authorization=`Bearer ${s}`);const l=await fetch(r,{method:e,headers:a,body:n?JSON.stringify(n):void 0});if(!l.ok){const c=await l.json().catch(()=>({}));throw new Error(c.message||`HTTP ${l.status}`)}return l.json()}const bt={get:e=>Rd("GET",e),post:(e,t)=>Rd("POST",e,t),put:(e,t)=>Rd("PUT",e,t),delete:e=>Rd("DELETE",e)},VE={login:(e,t)=>bt.post("/auth/login",{email:e,password:t}),me:()=>bt.get("/auth/me")},oh={customers:()=>bt.get("/crm/customers"),leads:()=>bt.get("/crm/leads"),pipeline:()=>bt.get("/crm/pipeline"),createCustomer:e=>bt.post("/crm/customers",e),updateCustomer:(e,t)=>bt.put(`/crm/customers/${e}`,t),deleteCustomer:e=>bt.delete(`/crm/customers/${e}`)},Es={deals:()=>bt.get("/sales/deals"),products:()=>bt.get("/sales/products"),mrr:()=>bt.get("/sales/mrr"),arr:()=>bt.get("/sales/arr"),createDeal:e=>bt.post("/sales/deals",e),updateDeal:(e,t)=>bt.put(`/sales/deals/${e}`,t)},io={balance:()=>bt.get("/finance/balance"),income:()=>bt.get("/finance/income"),moms:()=>bt.get("/finance/moms"),accounts:()=>bt.get("/finance/accounts"),invoices:()=>bt.get("/finance/invoices"),cashflow:()=>bt.get("/finance/cashflow")},HE={employees:()=>bt.get("/hr/employees"),leaves:()=>bt.get("/hr/leaves"),createEmployee:e=>bt.post("/hr/employees",e),createLeave:e=>bt.post("/hr/leaves",e)};function aG(){const e=Op(),{login:t}=Gc(),[n,r]=P.useState(""),[a,s]=P.useState(""),[l,c]=P.useState(!1),[f,d]=P.useState(""),[m,y]=P.useState(!1),g=async S=>{var j;S.preventDefault(),d(""),y(!0);try{const w=await VE.login(n,a);if(!w.ok){d("Invalid credentials");return}localStorage.setItem("amos_token",w.token);const b=await VE.me();t(w.token,{id:b.user.sub,email:b.user.email,name:"Erik Svensson",role:((j=b.user.roles)==null?void 0:j[0])||"user"}),e("/")}catch(w){d(w instanceof Error?w.message:"Login failed")}finally{y(!1)}};return p.jsx("div",{className:"min-h-screen bg-bg flex items-center justify-center p-4",children:p.jsxs(sr.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},className:"w-full max-w-[400px]",children:[p.jsx("div",{className:"flex items-center justify-center mb-10",children:p.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary flex items-center justify-center",children:p.jsx("svg",{width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",children:p.jsx("path",{d:"M10 22L16 10L22 22H10Z",stroke:"white",strokeWidth:"2.5",strokeLinejoin:"round"})})})}),p.jsxs("div",{className:"text-center mb-8",children:[p.jsx("h1",{className:"text-2xl font-semibold text-text-primary",children:"Welcome back"}),p.jsx("p",{className:"text-sm text-text-secondary mt-1.5",children:"Sign in to your AMOS account"})]}),p.jsxs("form",{onSubmit:g,className:"space-y-4",children:[p.jsx(D1,{label:"Email",type:"email",placeholder:"you@company.com",value:n,onChange:S=>r(S.target.value),icon:p.jsx(wo,{size:16}),required:!0}),p.jsxs("div",{className:"relative",children:[p.jsx(D1,{label:"Password",type:l?"text":"password",placeholder:"Enter your password",value:a,onChange:S=>s(S.target.value),icon:p.jsx(sH,{size:16}),required:!0}),p.jsx("button",{type:"button",onClick:()=>c(!l),className:"absolute right-3.5 top-[38px] text-text-secondary hover:text-text-primary transition-colors",children:l?p.jsx(rH,{size:16}):p.jsx(QL,{size:16})})]}),f&&p.jsx(sr.p,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},className:"text-sm text-danger",children:f}),p.jsx(Kt,{type:"submit",size:"lg",loading:m,className:"w-full",children:"Sign in"})]})]})})}function oG({label:e,value:t,change:n,changeLabel:r,icon:a,index:s=0}){const l=n>0,c=n===0;return p.jsxs(sr.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.18,delay:s*.04,ease:"easeOut"},className:"bg-surface rounded-[20px] card-shadow p-6 md:p-7",children:[p.jsxs("div",{className:"flex items-start justify-between",children:[p.jsxs("div",{className:"space-y-4",children:[p.jsx("p",{className:"text-sm text-text-secondary",children:e}),p.jsx("p",{className:"text-2xl md:text-3xl font-semibold text-text-primary tracking-tight",children:t})]}),p.jsx("div",{className:"w-10 h-10 rounded-xl bg-bg flex items-center justify-center text-text-secondary",children:a})]}),p.jsxs("div",{className:"mt-5 flex items-center gap-2",children:[p.jsxs("span",{className:Bt("inline-flex items-center gap-1 text-xs font-medium px-2 py-0.5 rounded-full",l&&"bg-success-light text-success",c&&"bg-bg text-text-secondary",!l&&!c&&"bg-danger-light text-danger"),children:[l?p.jsx(Na,{size:12}):c?p.jsx(fH,{size:12}):p.jsx(Kw,{size:12}),Math.abs(n),"%"]}),p.jsx("span",{className:"text-xs text-text-secondary",children:r})]})]})}var Jv,GE;function Nn(){if(GE)return Jv;GE=1;var e=Array.isArray;return Jv=e,Jv}var eg,FE;function c4(){if(FE)return eg;FE=1;var e=typeof _d=="object"&&_d&&_d.Object===Object&&_d;return eg=e,eg}var tg,KE;function Jr(){if(KE)return tg;KE=1;var e=c4(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return tg=n,tg}var ng,YE;function Qc(){if(YE)return ng;YE=1;var e=Jr(),t=e.Symbol;return ng=t,ng}var rg,XE;function sG(){if(XE)return rg;XE=1;var e=Qc(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,a=e?e.toStringTag:void 0;function s(l){var c=n.call(l,a),f=l[a];try{l[a]=void 0;var d=!0}catch{}var m=r.call(l);return d&&(c?l[a]=f:delete l[a]),m}return rg=s,rg}var ig,WE;function lG(){if(WE)return ig;WE=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return ig=n,ig}var ag,ZE;function ki(){if(ZE)return ag;ZE=1;var e=Qc(),t=sG(),n=lG(),r="[object Null]",a="[object Undefined]",s=e?e.toStringTag:void 0;function l(c){return c==null?c===void 0?a:r:s&&s in Object(c)?t(c):n(c)}return ag=l,ag}var og,QE;function Li(){if(QE)return og;QE=1;function e(t){return t!=null&&typeof t=="object"}return og=e,og}var sg,JE;function Sl(){if(JE)return sg;JE=1;var e=ki(),t=Li(),n="[object Symbol]";function r(a){return typeof a=="symbol"||t(a)&&e(a)==n}return sg=r,sg}var lg,eN;function Ww(){if(eN)return lg;eN=1;var e=Nn(),t=Sl(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function a(s,l){if(e(s))return!1;var c=typeof s;return c=="number"||c=="symbol"||c=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||l!=null&&s in Object(l)}return lg=a,lg}var ug,tN;function Ca(){if(tN)return ug;tN=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return ug=e,ug}var cg,nN;function Zw(){if(nN)return cg;nN=1;var e=ki(),t=Ca(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",s="[object Proxy]";function l(c){if(!t(c))return!1;var f=e(c);return f==r||f==a||f==n||f==s}return cg=l,cg}var fg,rN;function uG(){if(rN)return fg;rN=1;var e=Jr(),t=e["__core-js_shared__"];return fg=t,fg}var dg,iN;function cG(){if(iN)return dg;iN=1;var e=uG(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return dg=n,dg}var hg,aN;function f4(){if(aN)return hg;aN=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return hg=n,hg}var pg,oN;function fG(){if(oN)return pg;oN=1;var e=Zw(),t=cG(),n=Ca(),r=f4(),a=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,f=l.toString,d=c.hasOwnProperty,m=RegExp("^"+f.call(d).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function y(g){if(!n(g)||t(g))return!1;var S=e(g)?m:s;return S.test(r(g))}return pg=y,pg}var mg,sN;function dG(){if(sN)return mg;sN=1;function e(t,n){return t==null?void 0:t[n]}return mg=e,mg}var yg,lN;function Mo(){if(lN)return yg;lN=1;var e=fG(),t=dG();function n(r,a){var s=t(r,a);return e(s)?s:void 0}return yg=n,yg}var vg,uN;function Rp(){if(uN)return vg;uN=1;var e=Mo(),t=e(Object,"create");return vg=t,vg}var gg,cN;function hG(){if(cN)return gg;cN=1;var e=Rp();function t(){this.__data__=e?e(null):{},this.size=0}return gg=t,gg}var xg,fN;function pG(){if(fN)return xg;fN=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return xg=e,xg}var bg,dN;function mG(){if(dN)return bg;dN=1;var e=Rp(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function a(s){var l=this.__data__;if(e){var c=l[s];return c===t?void 0:c}return r.call(l,s)?l[s]:void 0}return bg=a,bg}var Sg,hN;function yG(){if(hN)return Sg;hN=1;var e=Rp(),t=Object.prototype,n=t.hasOwnProperty;function r(a){var s=this.__data__;return e?s[a]!==void 0:n.call(s,a)}return Sg=r,Sg}var wg,pN;function vG(){if(pN)return wg;pN=1;var e=Rp(),t="__lodash_hash_undefined__";function n(r,a){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=e&&a===void 0?t:a,this}return wg=n,wg}var jg,mN;function gG(){if(mN)return jg;mN=1;var e=hG(),t=pG(),n=mG(),r=yG(),a=vG();function s(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=a,jg=s,jg}var Ag,yN;function xG(){if(yN)return Ag;yN=1;function e(){this.__data__=[],this.size=0}return Ag=e,Ag}var Og,vN;function Qw(){if(vN)return Og;vN=1;function e(t,n){return t===n||t!==t&&n!==n}return Og=e,Og}var _g,gN;function Dp(){if(gN)return _g;gN=1;var e=Qw();function t(n,r){for(var a=n.length;a--;)if(e(n[a][0],r))return a;return-1}return _g=t,_g}var Tg,xN;function bG(){if(xN)return Tg;xN=1;var e=Dp(),t=Array.prototype,n=t.splice;function r(a){var s=this.__data__,l=e(s,a);if(l<0)return!1;var c=s.length-1;return l==c?s.pop():n.call(s,l,1),--this.size,!0}return Tg=r,Tg}var Eg,bN;function SG(){if(bN)return Eg;bN=1;var e=Dp();function t(n){var r=this.__data__,a=e(r,n);return a<0?void 0:r[a][1]}return Eg=t,Eg}var Ng,SN;function wG(){if(SN)return Ng;SN=1;var e=Dp();function t(n){return e(this.__data__,n)>-1}return Ng=t,Ng}var Cg,wN;function jG(){if(wN)return Cg;wN=1;var e=Dp();function t(n,r){var a=this.__data__,s=e(a,n);return s<0?(++this.size,a.push([n,r])):a[s][1]=r,this}return Cg=t,Cg}var Mg,jN;function kp(){if(jN)return Mg;jN=1;var e=xG(),t=bG(),n=SG(),r=wG(),a=jG();function s(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=a,Mg=s,Mg}var Pg,AN;function Jw(){if(AN)return Pg;AN=1;var e=Mo(),t=Jr(),n=e(t,"Map");return Pg=n,Pg}var Rg,ON;function AG(){if(ON)return Rg;ON=1;var e=gG(),t=kp(),n=Jw();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Rg=r,Rg}var Dg,_N;function OG(){if(_N)return Dg;_N=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Dg=e,Dg}var kg,TN;function Lp(){if(TN)return kg;TN=1;var e=OG();function t(n,r){var a=n.__data__;return e(r)?a[typeof r=="string"?"string":"hash"]:a.map}return kg=t,kg}var Lg,EN;function _G(){if(EN)return Lg;EN=1;var e=Lp();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Lg=t,Lg}var zg,NN;function TG(){if(NN)return zg;NN=1;var e=Lp();function t(n){return e(this,n).get(n)}return zg=t,zg}var $g,CN;function EG(){if(CN)return $g;CN=1;var e=Lp();function t(n){return e(this,n).has(n)}return $g=t,$g}var Bg,MN;function NG(){if(MN)return Bg;MN=1;var e=Lp();function t(n,r){var a=e(this,n),s=a.size;return a.set(n,r),this.size+=a.size==s?0:1,this}return Bg=t,Bg}var qg,PN;function ej(){if(PN)return qg;PN=1;var e=AG(),t=_G(),n=TG(),r=EG(),a=NG();function s(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=a,qg=s,qg}var Ig,RN;function d4(){if(RN)return Ig;RN=1;var e=ej(),t="Expected a function";function n(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var s=function(){var l=arguments,c=a?a.apply(this,l):l[0],f=s.cache;if(f.has(c))return f.get(c);var d=r.apply(this,l);return s.cache=f.set(c,d)||f,d};return s.cache=new(n.Cache||e),s}return n.Cache=e,Ig=n,Ig}var Ug,DN;function CG(){if(DN)return Ug;DN=1;var e=d4(),t=500;function n(r){var a=e(r,function(l){return s.size===t&&s.clear(),l}),s=a.cache;return a}return Ug=n,Ug}var Vg,kN;function MG(){if(kN)return Vg;kN=1;var e=CG(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(a){var s=[];return a.charCodeAt(0)===46&&s.push(""),a.replace(t,function(l,c,f,d){s.push(f?d.replace(n,"$1"):c||l)}),s});return Vg=r,Vg}var Hg,LN;function tj(){if(LN)return Hg;LN=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,s=Array(a);++r<a;)s[r]=n(t[r],r,t);return s}return Hg=e,Hg}var Gg,zN;function PG(){if(zN)return Gg;zN=1;var e=Qc(),t=tj(),n=Nn(),r=Sl(),a=e?e.prototype:void 0,s=a?a.toString:void 0;function l(c){if(typeof c=="string")return c;if(n(c))return t(c,l)+"";if(r(c))return s?s.call(c):"";var f=c+"";return f=="0"&&1/c==-1/0?"-0":f}return Gg=l,Gg}var Fg,$N;function h4(){if($N)return Fg;$N=1;var e=PG();function t(n){return n==null?"":e(n)}return Fg=t,Fg}var Kg,BN;function p4(){if(BN)return Kg;BN=1;var e=Nn(),t=Ww(),n=MG(),r=h4();function a(s,l){return e(s)?s:t(s,l)?[s]:n(r(s))}return Kg=a,Kg}var Yg,qN;function zp(){if(qN)return Yg;qN=1;var e=Sl();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Yg=t,Yg}var Xg,IN;function nj(){if(IN)return Xg;IN=1;var e=p4(),t=zp();function n(r,a){a=e(a,r);for(var s=0,l=a.length;r!=null&&s<l;)r=r[t(a[s++])];return s&&s==l?r:void 0}return Xg=n,Xg}var Wg,UN;function m4(){if(UN)return Wg;UN=1;var e=nj();function t(n,r,a){var s=n==null?void 0:e(n,r);return s===void 0?a:s}return Wg=t,Wg}var RG=m4();const Gn=nt(RG);var Zg,VN;function DG(){if(VN)return Zg;VN=1;function e(t){return t==null}return Zg=e,Zg}var kG=DG();const Ee=nt(kG);var Qg,HN;function LG(){if(HN)return Qg;HN=1;var e=ki(),t=Nn(),n=Li(),r="[object String]";function a(s){return typeof s=="string"||!t(s)&&n(s)&&e(s)==r}return Qg=a,Qg}var zG=LG();const jo=nt(zG);var $G=Zw();const _e=nt($G);var BG=Ca();const wl=nt(BG);var Jg={exports:{}},We={};/**
* @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 GN;function qG(){if(GN)return We;GN=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),j;j=Symbol.for("react.module.reference");function w(b){if(typeof b=="object"&&b!==null){var A=b.$$typeof;switch(A){case e:switch(b=b.type,b){case n:case a:case r:case d:case m:return b;default:switch(b=b&&b.$$typeof,b){case c:case l:case f:case g:case y:case s:return b;default:return A}}case t:return A}}}return We.ContextConsumer=l,We.ContextProvider=s,We.Element=e,We.ForwardRef=f,We.Fragment=n,We.Lazy=g,We.Memo=y,We.Portal=t,We.Profiler=a,We.StrictMode=r,We.Suspense=d,We.SuspenseList=m,We.isAsyncMode=function(){return!1},We.isConcurrentMode=function(){return!1},We.isContextConsumer=function(b){return w(b)===l},We.isContextProvider=function(b){return w(b)===s},We.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},We.isForwardRef=function(b){return w(b)===f},We.isFragment=function(b){return w(b)===n},We.isLazy=function(b){return w(b)===g},We.isMemo=function(b){return w(b)===y},We.isPortal=function(b){return w(b)===t},We.isProfiler=function(b){return w(b)===a},We.isStrictMode=function(b){return w(b)===r},We.isSuspense=function(b){return w(b)===d},We.isSuspenseList=function(b){return w(b)===m},We.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===a||b===r||b===d||b===m||b===S||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===y||b.$$typeof===s||b.$$typeof===l||b.$$typeof===f||b.$$typeof===j||b.getModuleId!==void 0)},We.typeOf=w,We}var FN;function IG(){return FN||(FN=1,Jg.exports=qG()),Jg.exports}var UG=IG(),ex,KN;function y4(){if(KN)return ex;KN=1;var e=ki(),t=Li(),n="[object Number]";function r(a){return typeof a=="number"||t(a)&&e(a)==n}return ex=r,ex}var tx,YN;function VG(){if(YN)return tx;YN=1;var e=y4();function t(n){return e(n)&&n!=+n}return tx=t,tx}var HG=VG();const jl=nt(HG);var GG=y4();const FG=nt(GG);var gn=function(t){return t===0?0:t>0?1:-1},fo=function(t){return jo(t)&&t.indexOf("%")===t.length-1},ue=function(t){return FG(t)&&!jl(t)},KG=function(t){return Ee(t)},Ft=function(t){return ue(t)||jo(t)},YG=0,Po=function(t){var n=++YG;return"".concat(t||"").concat(n)},xn=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(!ue(t)&&!jo(t))return r;var s;if(fo(t)){var l=t.indexOf("%");s=n*parseFloat(t.slice(0,l))/100}else s=+t;return jl(s)&&(s=r),a&&s>n&&(s=n),s},ya=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},XG=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},Gt=function(t,n){return ue(t)&&ue(n)?function(r){return t+r*(n-t)}:function(){return n}};function bh(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Gn(r,t))===n})}var WG=function(t,n){return ue(t)&&ue(n)?t-n:jo(t)&&jo(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function ks(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 k1(e){"@babel/helpers - typeof";return k1=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},k1(e)}var ZG=["viewBox","children"],QG=["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"],XN=["points","pathLength"],nx={svg:ZG,polygon:XN,polyline:XN},rj=["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"],Sh=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(P.isValidElement(t)&&(r=t.props),!wl(r))return null;var a={};return Object.keys(r).forEach(function(s){rj.includes(s)&&(a[s]=n||function(l){return r[s](r,l)})}),a},JG=function(t,n,r){return function(a){return t(n,r,a),null}},Ao=function(t,n,r){if(!wl(t)||k1(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(s){var l=t[s];rj.includes(s)&&typeof l=="function"&&(a||(a={}),a[s]=JG(l,n,r))}),a},eF=["children"],tF=["children"];function WN(e,t){if(e==null)return{};var n=nF(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nF(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 L1(e){"@babel/helpers - typeof";return L1=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},L1(e)}var ZN={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"},Ti=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},QN=null,rx=null,ij=function e(t){if(t===QN&&Array.isArray(rx))return rx;var n=[];return P.Children.forEach(t,function(r){Ee(r)||(UG.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),rx=n,QN=t,n};function Fn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return Ti(a)}):r=[Ti(t)],ij(e).forEach(function(a){var s=Gn(a,"type.displayName")||Gn(a,"type.name");r.indexOf(s)!==-1&&n.push(a)}),n}function In(e,t){var n=Fn(e,t);return n&&n[0]}var JN=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!ue(r)||r<=0||!ue(a)||a<=0)},rF=["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"],iF=function(t){return t&&t.type&&jo(t.type)&&rF.indexOf(t.type)>=0},v4=function(t){return t&&L1(t)==="object"&&"clipDot"in t},aF=function(t,n,r,a){var s,l=(s=nx==null?void 0:nx[a])!==null&&s!==void 0?s:[];return n.startsWith("data-")||!_e(t)&&(a&&l.includes(n)||QG.includes(n))||r&&rj.includes(n)},Se=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(P.isValidElement(t)&&(a=t.props),!wl(a))return null;var s={};return Object.keys(a).forEach(function(l){var c;aF((c=a)===null||c===void 0?void 0:c[l],l,n,r)&&(s[l]=a[l])}),s},z1=function e(t,n){if(t===n)return!0;var r=P.Children.count(t);if(r!==P.Children.count(n))return!1;if(r===0)return!0;if(r===1)return eC(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a<r;a++){var s=t[a],l=n[a];if(Array.isArray(s)||Array.isArray(l)){if(!e(s,l))return!1}else if(!eC(s,l))return!1}return!0},eC=function(t,n){if(Ee(t)&&Ee(n))return!0;if(!Ee(t)&&!Ee(n)){var r=t.props||{},a=r.children,s=WN(r,eF),l=n.props||{},c=l.children,f=WN(l,tF);return a&&c?ks(s,f)&&z1(a,c):!a&&!c?ks(s,f):!1}return!1},tC=function(t,n){var r=[],a={};return ij(t).forEach(function(s,l){if(iF(s))r.push(s);else if(s){var c=Ti(s.type),f=n[c]||{},d=f.handler,m=f.once;if(d&&(!m||!a[c])){var y=d(s,c,l);r.push(y),a[c]=!0}}}),r},oF=function(t){var n=t&&t.type;return n&&ZN[n]?ZN[n]:null},sF=function(t,n){return ij(n).indexOf(t)},lF=["children","width","height","viewBox","className","style","title","desc"];function $1(){return $1=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},$1.apply(this,arguments)}function uF(e,t){if(e==null)return{};var n=cF(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cF(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 B1(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,s=e.className,l=e.style,c=e.title,f=e.desc,d=uF(e,lF),m=a||{width:n,height:r,x:0,y:0},y=Me("recharts-surface",s);return q.createElement("svg",$1({},Se(d,!0,"svg"),{className:y,width:n,height:r,style:l,viewBox:"".concat(m.x," ").concat(m.y," ").concat(m.width," ").concat(m.height)}),q.createElement("title",null,c),q.createElement("desc",null,f),t)}var fF=["children","className"];function q1(){return q1=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},q1.apply(this,arguments)}function dF(e,t){if(e==null)return{};var n=hF(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hF(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 qe=q.forwardRef(function(e,t){var n=e.children,r=e.className,a=dF(e,fF),s=Me("recharts-layer",r);return q.createElement("g",q1({className:s},Se(a,!0),{ref:t}),n)}),Er=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),s=2;s<r;s++)a[s-2]=arguments[s]},ix,nC;function pF(){if(nC)return ix;nC=1;function e(t,n,r){var a=-1,s=t.length;n<0&&(n=-n>s?0:s+n),r=r>s?s:r,r<0&&(r+=s),s=n>r?0:r-n>>>0,n>>>=0;for(var l=Array(s);++a<s;)l[a]=t[a+n];return l}return ix=e,ix}var ax,rC;function mF(){if(rC)return ax;rC=1;var e=pF();function t(n,r,a){var s=n.length;return a=a===void 0?s:a,!r&&a>=s?n:e(n,r,a)}return ax=t,ax}var ox,iC;function g4(){if(iC)return ox;iC=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,s="\\ufe0e\\ufe0f",l="\\u200d",c=RegExp("["+l+e+a+s+"]");function f(d){return c.test(d)}return ox=f,ox}var sx,aC;function yF(){if(aC)return sx;aC=1;function e(t){return t.split("")}return sx=e,sx}var lx,oC;function vF(){if(oC)return lx;oC=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,s="\\ufe0e\\ufe0f",l="["+e+"]",c="["+a+"]",f="\\ud83c[\\udffb-\\udfff]",d="(?:"+c+"|"+f+")",m="[^"+e+"]",y="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",S="\\u200d",j=d+"?",w="["+s+"]?",b="(?:"+S+"(?:"+[m,y,g].join("|")+")"+w+j+")*",A=w+j+b,_="(?:"+[m+c+"?",c,y,g,l].join("|")+")",T=RegExp(f+"(?="+f+")|"+_+A,"g");function C(O){return O.match(T)||[]}return lx=C,lx}var ux,sC;function gF(){if(sC)return ux;sC=1;var e=yF(),t=g4(),n=vF();function r(a){return t(a)?n(a):e(a)}return ux=r,ux}var cx,lC;function xF(){if(lC)return cx;lC=1;var e=mF(),t=g4(),n=gF(),r=h4();function a(s){return function(l){l=r(l);var c=t(l)?n(l):void 0,f=c?c[0]:l.charAt(0),d=c?e(c,1).join(""):l.slice(1);return f[s]()+d}}return cx=a,cx}var fx,uC;function bF(){if(uC)return fx;uC=1;var e=xF(),t=e("toUpperCase");return fx=t,fx}var SF=bF();const $p=nt(SF);function ht(e){return function(){return e}}const x4=Math.cos,wh=Math.sin,Rr=Math.sqrt,jh=Math.PI,Bp=2*jh,I1=Math.PI,U1=2*I1,ao=1e-6,wF=U1-ao;function b4(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function jF(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return b4;const n=10**t;return function(r){this._+=r[0];for(let a=1,s=r.length;a<s;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class AF{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?b4:jF(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,s,l){this._append`C${+t},${+n},${+r},${+a},${this._x1=+s},${this._y1=+l}`}arcTo(t,n,r,a,s){if(t=+t,n=+n,r=+r,a=+a,s=+s,s<0)throw new Error(`negative radius: ${s}`);let l=this._x1,c=this._y1,f=r-t,d=a-n,m=l-t,y=c-n,g=m*m+y*y;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(g>ao)if(!(Math.abs(y*f-d*m)>ao)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let S=r-l,j=a-c,w=f*f+d*d,b=S*S+j*j,A=Math.sqrt(w),_=Math.sqrt(g),T=s*Math.tan((I1-Math.acos((w+g-b)/(2*A*_)))/2),C=T/_,O=T/A;Math.abs(C-1)>ao&&this._append`L${t+C*m},${n+C*y}`,this._append`A${s},${s},0,0,${+(y*S>m*j)},${this._x1=t+O*f},${this._y1=n+O*d}`}}arc(t,n,r,a,s,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let c=r*Math.cos(a),f=r*Math.sin(a),d=t+c,m=n+f,y=1^l,g=l?a-s:s-a;this._x1===null?this._append`M${d},${m}`:(Math.abs(this._x1-d)>ao||Math.abs(this._y1-m)>ao)&&this._append`L${d},${m}`,r&&(g<0&&(g=g%U1+U1),g>wF?this._append`A${r},${r},0,1,${y},${t-c},${n-f}A${r},${r},0,1,${y},${this._x1=d},${this._y1=m}`:g>ao&&this._append`A${r},${r},0,${+(g>=I1)},${y},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}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 aj(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 AF(t)}function oj(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function S4(e){this._context=e}S4.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 qp(e){return new S4(e)}function w4(e){return e[0]}function j4(e){return e[1]}function A4(e,t){var n=ht(!0),r=null,a=qp,s=null,l=aj(c);e=typeof e=="function"?e:e===void 0?w4:ht(e),t=typeof t=="function"?t:t===void 0?j4:ht(t);function c(f){var d,m=(f=oj(f)).length,y,g=!1,S;for(r==null&&(s=a(S=l())),d=0;d<=m;++d)!(d<m&&n(y=f[d],d,f))===g&&((g=!g)?s.lineStart():s.lineEnd()),g&&s.point(+e(y,d,f),+t(y,d,f));if(S)return s=null,S+""||null}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:ht(+f),c):e},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:ht(+f),c):t},c.defined=function(f){return arguments.length?(n=typeof f=="function"?f:ht(!!f),c):n},c.curve=function(f){return arguments.length?(a=f,r!=null&&(s=a(r)),c):a},c.context=function(f){return arguments.length?(f==null?r=s=null:s=a(r=f),c):r},c}function Dd(e,t,n){var r=null,a=ht(!0),s=null,l=qp,c=null,f=aj(d);e=typeof e=="function"?e:e===void 0?w4:ht(+e),t=typeof t=="function"?t:ht(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?j4:ht(+n);function d(y){var g,S,j,w=(y=oj(y)).length,b,A=!1,_,T=new Array(w),C=new Array(w);for(s==null&&(c=l(_=f())),g=0;g<=w;++g){if(!(g<w&&a(b=y[g],g,y))===A)if(A=!A)S=g,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),j=g-1;j>=S;--j)c.point(T[j],C[j]);c.lineEnd(),c.areaEnd()}A&&(T[g]=+e(b,g,y),C[g]=+t(b,g,y),c.point(r?+r(b,g,y):T[g],n?+n(b,g,y):C[g]))}if(_)return c=null,_+""||null}function m(){return A4().defined(a).curve(l).context(s)}return d.x=function(y){return arguments.length?(e=typeof y=="function"?y:ht(+y),r=null,d):e},d.x0=function(y){return arguments.length?(e=typeof y=="function"?y:ht(+y),d):e},d.x1=function(y){return arguments.length?(r=y==null?null:typeof y=="function"?y:ht(+y),d):r},d.y=function(y){return arguments.length?(t=typeof y=="function"?y:ht(+y),n=null,d):t},d.y0=function(y){return arguments.length?(t=typeof y=="function"?y:ht(+y),d):t},d.y1=function(y){return arguments.length?(n=y==null?null:typeof y=="function"?y:ht(+y),d):n},d.lineX0=d.lineY0=function(){return m().x(e).y(t)},d.lineY1=function(){return m().x(e).y(n)},d.lineX1=function(){return m().x(r).y(t)},d.defined=function(y){return arguments.length?(a=typeof y=="function"?y:ht(!!y),d):a},d.curve=function(y){return arguments.length?(l=y,s!=null&&(c=l(s)),d):l},d.context=function(y){return arguments.length?(y==null?s=c=null:c=l(s=y),d):s},d}class O4{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 OF(e){return new O4(e,!0)}function _F(e){return new O4(e,!1)}const sj={draw(e,t){const n=Rr(t/jh);e.moveTo(n,0),e.arc(0,0,n,0,Bp)}},TF={draw(e,t){const n=Rr(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()}},_4=Rr(1/3),EF=_4*2,NF={draw(e,t){const n=Rr(t/EF),r=n*_4;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},CF={draw(e,t){const n=Rr(t),r=-n/2;e.rect(r,r,n,n)}},MF=.8908130915292852,T4=wh(jh/10)/wh(7*jh/10),PF=wh(Bp/10)*T4,RF=-x4(Bp/10)*T4,DF={draw(e,t){const n=Rr(t*MF),r=PF*n,a=RF*n;e.moveTo(0,-n),e.lineTo(r,a);for(let s=1;s<5;++s){const l=Bp*s/5,c=x4(l),f=wh(l);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*a,f*r+c*a)}e.closePath()}},dx=Rr(3),kF={draw(e,t){const n=-Rr(t/(dx*3));e.moveTo(0,n*2),e.lineTo(-dx*n,-n),e.lineTo(dx*n,-n),e.closePath()}},ir=-.5,ar=Rr(3)/2,V1=1/Rr(12),LF=(V1/2+1)*3,zF={draw(e,t){const n=Rr(t/LF),r=n/2,a=n*V1,s=r,l=n*V1+n,c=-s,f=l;e.moveTo(r,a),e.lineTo(s,l),e.lineTo(c,f),e.lineTo(ir*r-ar*a,ar*r+ir*a),e.lineTo(ir*s-ar*l,ar*s+ir*l),e.lineTo(ir*c-ar*f,ar*c+ir*f),e.lineTo(ir*r+ar*a,ir*a-ar*r),e.lineTo(ir*s+ar*l,ir*l-ar*s),e.lineTo(ir*c+ar*f,ir*f-ar*c),e.closePath()}};function $F(e,t){let n=null,r=aj(a);e=typeof e=="function"?e:ht(e||sj),t=typeof t=="function"?t:ht(t===void 0?64:+t);function a(){let s;if(n||(n=s=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),s)return n=null,s+""||null}return a.type=function(s){return arguments.length?(e=typeof s=="function"?s:ht(s),a):e},a.size=function(s){return arguments.length?(t=typeof s=="function"?s:ht(+s),a):t},a.context=function(s){return arguments.length?(n=s??null,a):n},a}function Ah(){}function Oh(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 E4(e){this._context=e}E4.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:Oh(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:Oh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function BF(e){return new E4(e)}function N4(e){this._context=e}N4.prototype={areaStart:Ah,areaEnd:Ah,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:Oh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qF(e){return new N4(e)}function C4(e){this._context=e}C4.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:Oh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function IF(e){return new C4(e)}function M4(e){this._context=e}M4.prototype={areaStart:Ah,areaEnd:Ah,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 UF(e){return new M4(e)}function cC(e){return e<0?-1:1}function fC(e,t,n){var r=e._x1-e._x0,a=t-e._x1,s=(e._y1-e._y0)/(r||a<0&&-0),l=(n-e._y1)/(a||r<0&&-0),c=(s*a+l*r)/(r+a);return(cC(s)+cC(l))*Math.min(Math.abs(s),Math.abs(l),.5*Math.abs(c))||0}function dC(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function hx(e,t,n){var r=e._x0,a=e._y0,s=e._x1,l=e._y1,c=(s-r)/3;e._context.bezierCurveTo(r+c,a+c*t,s-c,l-c*n,s,l)}function _h(e){this._context=e}_h.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:hx(this,this._t0,dC(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,hx(this,dC(this,n=fC(this,e,t)),n);break;default:hx(this,this._t0,n=fC(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function P4(e){this._context=new R4(e)}(P4.prototype=Object.create(_h.prototype)).point=function(e,t){_h.prototype.point.call(this,t,e)};function R4(e){this._context=e}R4.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,s){this._context.bezierCurveTo(t,e,r,n,s,a)}};function VF(e){return new _h(e)}function HF(e){return new P4(e)}function D4(e){this._context=e}D4.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=hC(e),a=hC(t),s=0,l=1;l<n;++s,++l)this._context.bezierCurveTo(r[0][s],a[0][s],r[1][s],a[1][s],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 hC(e){var t,n=e.length-1,r,a=new Array(n),s=new Array(n),l=new Array(n);for(a[0]=0,s[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,s[t]=4,l[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,s[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/s[t-1],s[t]-=r,l[t]-=r*l[t-1];for(a[n-1]=l[n-1]/s[n-1],t=n-2;t>=0;--t)a[t]=(l[t]-a[t+1])/s[t];for(s[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-a[t+1];return[a,s]}function GF(e){return new D4(e)}function Ip(e,t){this._context=e,this._t=t}Ip.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 FF(e){return new Ip(e,.5)}function KF(e){return new Ip(e,0)}function YF(e){return new Ip(e,1)}function Us(e,t){if((l=e.length)>1)for(var n=1,r,a,s=e[t[0]],l,c=s.length;n<l;++n)for(a=s,s=e[t[n]],r=0;r<c;++r)s[r][1]+=s[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function H1(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function XF(e,t){return e[t]}function WF(e){const t=[];return t.key=e,t}function ZF(){var e=ht([]),t=H1,n=Us,r=XF;function a(s){var l=Array.from(e.apply(this,arguments),WF),c,f=l.length,d=-1,m;for(const y of s)for(c=0,++d;c<f;++c)(l[c][d]=[0,+r(y,l[c].key,d,s)]).data=y;for(c=0,m=oj(t(l));c<f;++c)l[m[c]].index=c;return n(l,m),l}return a.keys=function(s){return arguments.length?(e=typeof s=="function"?s:ht(Array.from(s)),a):e},a.value=function(s){return arguments.length?(r=typeof s=="function"?s:ht(+s),a):r},a.order=function(s){return arguments.length?(t=s==null?H1:typeof s=="function"?s:ht(Array.from(s)),a):t},a.offset=function(s){return arguments.length?(n=s??Us,a):n},a}function QF(e,t){if((r=e.length)>0){for(var n,r,a=0,s=e[0].length,l;a<s;++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}Us(e,t)}}function JF(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,s=r.length;n<s;++n){for(var l=0,c=0;l<a;++l)c+=e[l][n][1]||0;r[n][1]+=r[n][0]=-c/2}Us(e,t)}}function eK(e,t){if(!(!((l=e.length)>0)||!((s=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,s,l;r<s;++r){for(var c=0,f=0,d=0;c<l;++c){for(var m=e[t[c]],y=m[r][1]||0,g=m[r-1][1]||0,S=(y-g)/2,j=0;j<c;++j){var w=e[t[j]],b=w[r][1]||0,A=w[r-1][1]||0;S+=b-A}f+=y,d+=S*y}a[r-1][1]+=a[r-1][0]=n,f&&(n-=d/f)}a[r-1][1]+=a[r-1][0]=n,Us(e,t)}}function lc(e){"@babel/helpers - typeof";return lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lc(e)}var tK=["type","size","sizeType"];function G1(){return G1=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},G1.apply(this,arguments)}function pC(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 mC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pC(Object(n),!0).forEach(function(r){nK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nK(e,t,n){return t=rK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rK(e){var t=iK(e,"string");return lc(t)=="symbol"?t:t+""}function iK(e,t){if(lc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aK(e,t){if(e==null)return{};var n=oK(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oK(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 k4={symbolCircle:sj,symbolCross:TF,symbolDiamond:NF,symbolSquare:CF,symbolStar:DF,symbolTriangle:kF,symbolWye:zF},sK=Math.PI/180,lK=function(t){var n="symbol".concat($p(t));return k4[n]||sj},uK=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*sK;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}},cK=function(t,n){k4["symbol".concat($p(t))]=n},lj=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,s=a===void 0?64:a,l=t.sizeType,c=l===void 0?"area":l,f=aK(t,tK),d=mC(mC({},f),{},{type:r,size:s,sizeType:c}),m=function(){var b=lK(r),A=$F().type(b).size(uK(s,c,r));return A()},y=d.className,g=d.cx,S=d.cy,j=Se(d,!0);return g===+g&&S===+S&&s===+s?q.createElement("path",G1({},j,{className:Me("recharts-symbols",y),transform:"translate(".concat(g,", ").concat(S,")"),d:m()})):null};lj.registerSymbol=cK;function Vs(e){"@babel/helpers - typeof";return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vs(e)}function F1(){return F1=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},F1.apply(this,arguments)}function yC(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 fK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yC(Object(n),!0).forEach(function(r){uc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hK(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,z4(r.key),r)}}function pK(e,t,n){return t&&hK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mK(e,t,n){return t=Th(t),yK(e,L4()?Reflect.construct(t,n||[],Th(e).constructor):t.apply(e,n))}function yK(e,t){if(t&&(Vs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vK(e)}function vK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L4=function(){return!!e})()}function Th(e){return Th=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Th(e)}function gK(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&&K1(e,t)}function K1(e,t){return K1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},K1(e,t)}function uc(e,t,n){return t=z4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z4(e){var t=xK(e,"string");return Vs(t)=="symbol"?t:t+""}function xK(e,t){if(Vs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var or=32,uj=(function(e){function t(){return dK(this,t),mK(this,t,arguments)}return gK(t,e),pK(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,s=or/2,l=or/6,c=or/3,f=r.inactive?a:r.color;if(r.type==="plainline")return q.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:s,x2:or,y2:s,className:"recharts-legend-icon"});if(r.type==="line")return q.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(s,"h").concat(c,`
A`).concat(l,",").concat(l,",0,1,1,").concat(2*c,",").concat(s,`
H`).concat(or,"M").concat(2*c,",").concat(s,`
A`).concat(l,",").concat(l,",0,1,1,").concat(c,",").concat(s),className:"recharts-legend-icon"});if(r.type==="rect")return q.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(or/8,"h").concat(or,"v").concat(or*3/4,"h").concat(-or,"z"),className:"recharts-legend-icon"});if(q.isValidElement(r.legendIcon)){var d=fK({},r);return delete d.legendIcon,q.cloneElement(r.legendIcon,d)}return q.createElement(lj,{fill:f,cx:s,cy:s,size:or,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,s=a.payload,l=a.iconSize,c=a.layout,f=a.formatter,d=a.inactiveColor,m={x:0,y:0,width:or,height:or},y={display:c==="horizontal"?"inline-block":"block",marginRight:10},g={display:"inline-block",verticalAlign:"middle",marginRight:4};return s.map(function(S,j){var w=S.formatter||f,b=Me(uc(uc({"recharts-legend-item":!0},"legend-item-".concat(j),!0),"inactive",S.inactive));if(S.type==="none")return null;var A=_e(S.value)?null:S.value;Er(!_e(S.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 _=S.inactive?d:S.color;return q.createElement("li",F1({className:b,style:y,key:"legend-item-".concat(j)},Ao(r.props,S,j)),q.createElement(B1,{width:l,height:l,viewBox:m,style:g},r.renderIcon(S)),q.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},w?w(A,S,j):A))})}},{key:"render",value:function(){var r=this.props,a=r.payload,s=r.layout,l=r.align;if(!a||!a.length)return null;var c={padding:0,margin:0,textAlign:s==="horizontal"?l:"left"};return q.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])})(P.PureComponent);uc(uj,"displayName","Legend");uc(uj,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var px,vC;function bK(){if(vC)return px;vC=1;var e=kp();function t(){this.__data__=new e,this.size=0}return px=t,px}var mx,gC;function SK(){if(gC)return mx;gC=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return mx=e,mx}var yx,xC;function wK(){if(xC)return yx;xC=1;function e(t){return this.__data__.get(t)}return yx=e,yx}var vx,bC;function jK(){if(bC)return vx;bC=1;function e(t){return this.__data__.has(t)}return vx=e,vx}var gx,SC;function AK(){if(SC)return gx;SC=1;var e=kp(),t=Jw(),n=ej(),r=200;function a(s,l){var c=this.__data__;if(c instanceof e){var f=c.__data__;if(!t||f.length<r-1)return f.push([s,l]),this.size=++c.size,this;c=this.__data__=new n(f)}return c.set(s,l),this.size=c.size,this}return gx=a,gx}var xx,wC;function $4(){if(wC)return xx;wC=1;var e=kp(),t=bK(),n=SK(),r=wK(),a=jK(),s=AK();function l(c){var f=this.__data__=new e(c);this.size=f.size}return l.prototype.clear=t,l.prototype.delete=n,l.prototype.get=r,l.prototype.has=a,l.prototype.set=s,xx=l,xx}var bx,jC;function OK(){if(jC)return bx;jC=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return bx=t,bx}var Sx,AC;function _K(){if(AC)return Sx;AC=1;function e(t){return this.__data__.has(t)}return Sx=e,Sx}var wx,OC;function B4(){if(OC)return wx;OC=1;var e=ej(),t=OK(),n=_K();function r(a){var s=-1,l=a==null?0:a.length;for(this.__data__=new e;++s<l;)this.add(a[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,wx=r,wx}var jx,_C;function q4(){if(_C)return jx;_C=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(n(t[r],r,t))return!0;return!1}return jx=e,jx}var Ax,TC;function I4(){if(TC)return Ax;TC=1;function e(t,n){return t.has(n)}return Ax=e,Ax}var Ox,EC;function U4(){if(EC)return Ox;EC=1;var e=B4(),t=q4(),n=I4(),r=1,a=2;function s(l,c,f,d,m,y){var g=f&r,S=l.length,j=c.length;if(S!=j&&!(g&&j>S))return!1;var w=y.get(l),b=y.get(c);if(w&&b)return w==c&&b==l;var A=-1,_=!0,T=f&a?new e:void 0;for(y.set(l,c),y.set(c,l);++A<S;){var C=l[A],O=c[A];if(d)var E=g?d(O,C,A,c,l,y):d(C,O,A,l,c,y);if(E!==void 0){if(E)continue;_=!1;break}if(T){if(!t(c,function(M,k){if(!n(T,k)&&(C===M||m(C,M,f,d,y)))return T.push(k)})){_=!1;break}}else if(!(C===O||m(C,O,f,d,y))){_=!1;break}}return y.delete(l),y.delete(c),_}return Ox=s,Ox}var _x,NC;function TK(){if(NC)return _x;NC=1;var e=Jr(),t=e.Uint8Array;return _x=t,_x}var Tx,CC;function EK(){if(CC)return Tx;CC=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a,s){r[++n]=[s,a]}),r}return Tx=e,Tx}var Ex,MC;function cj(){if(MC)return Ex;MC=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a){r[++n]=a}),r}return Ex=e,Ex}var Nx,PC;function NK(){if(PC)return Nx;PC=1;var e=Qc(),t=TK(),n=Qw(),r=U4(),a=EK(),s=cj(),l=1,c=2,f="[object Boolean]",d="[object Date]",m="[object Error]",y="[object Map]",g="[object Number]",S="[object RegExp]",j="[object Set]",w="[object String]",b="[object Symbol]",A="[object ArrayBuffer]",_="[object DataView]",T=e?e.prototype:void 0,C=T?T.valueOf:void 0;function O(E,M,k,D,B,I,z){switch(k){case _:if(E.byteLength!=M.byteLength||E.byteOffset!=M.byteOffset)return!1;E=E.buffer,M=M.buffer;case A:return!(E.byteLength!=M.byteLength||!I(new t(E),new t(M)));case f:case d:case g:return n(+E,+M);case m:return E.name==M.name&&E.message==M.message;case S:case w:return E==M+"";case y:var F=a;case j:var X=D&l;if(F||(F=s),E.size!=M.size&&!X)return!1;var Y=z.get(E);if(Y)return Y==M;D|=c,z.set(E,M);var $=r(F(E),F(M),D,B,I,z);return z.delete(E),$;case b:if(C)return C.call(E)==C.call(M)}return!1}return Nx=O,Nx}var Cx,RC;function V4(){if(RC)return Cx;RC=1;function e(t,n){for(var r=-1,a=n.length,s=t.length;++r<a;)t[s+r]=n[r];return t}return Cx=e,Cx}var Mx,DC;function CK(){if(DC)return Mx;DC=1;var e=V4(),t=Nn();function n(r,a,s){var l=a(r);return t(r)?l:e(l,s(r))}return Mx=n,Mx}var Px,kC;function MK(){if(kC)return Px;kC=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,s=0,l=[];++r<a;){var c=t[r];n(c,r,t)&&(l[s++]=c)}return l}return Px=e,Px}var Rx,LC;function PK(){if(LC)return Rx;LC=1;function e(){return[]}return Rx=e,Rx}var Dx,zC;function RK(){if(zC)return Dx;zC=1;var e=MK(),t=PK(),n=Object.prototype,r=n.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(l){return l==null?[]:(l=Object(l),e(a(l),function(c){return r.call(l,c)}))}:t;return Dx=s,Dx}var kx,$C;function DK(){if($C)return kx;$C=1;function e(t,n){for(var r=-1,a=Array(t);++r<t;)a[r]=n(r);return a}return kx=e,kx}var Lx,BC;function kK(){if(BC)return Lx;BC=1;var e=ki(),t=Li(),n="[object Arguments]";function r(a){return t(a)&&e(a)==n}return Lx=r,Lx}var zx,qC;function fj(){if(qC)return zx;qC=1;var e=kK(),t=Li(),n=Object.prototype,r=n.hasOwnProperty,a=n.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(l){return t(l)&&r.call(l,"callee")&&!a.call(l,"callee")};return zx=s,zx}var Iu={exports:{}},$x,IC;function LK(){if(IC)return $x;IC=1;function e(){return!1}return $x=e,$x}Iu.exports;var UC;function H4(){return UC||(UC=1,(function(e,t){var n=Jr(),r=LK(),a=t&&!t.nodeType&&t,s=a&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===a,c=l?n.Buffer:void 0,f=c?c.isBuffer:void 0,d=f||r;e.exports=d})(Iu,Iu.exports)),Iu.exports}var Bx,VC;function dj(){if(VC)return Bx;VC=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,a){var s=typeof r;return a=a??e,!!a&&(s=="number"||s!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<a}return Bx=n,Bx}var qx,HC;function hj(){if(HC)return qx;HC=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return qx=t,qx}var Ix,GC;function zK(){if(GC)return Ix;GC=1;var e=ki(),t=hj(),n=Li(),r="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",m="[object Number]",y="[object Object]",g="[object RegExp]",S="[object Set]",j="[object String]",w="[object WeakMap]",b="[object ArrayBuffer]",A="[object DataView]",_="[object Float32Array]",T="[object Float64Array]",C="[object Int8Array]",O="[object Int16Array]",E="[object Int32Array]",M="[object Uint8Array]",k="[object Uint8ClampedArray]",D="[object Uint16Array]",B="[object Uint32Array]",I={};I[_]=I[T]=I[C]=I[O]=I[E]=I[M]=I[k]=I[D]=I[B]=!0,I[r]=I[a]=I[b]=I[s]=I[A]=I[l]=I[c]=I[f]=I[d]=I[m]=I[y]=I[g]=I[S]=I[j]=I[w]=!1;function z(F){return n(F)&&t(F.length)&&!!I[e(F)]}return Ix=z,Ix}var Ux,FC;function G4(){if(FC)return Ux;FC=1;function e(t){return function(n){return t(n)}}return Ux=e,Ux}var Uu={exports:{}};Uu.exports;var KC;function $K(){return KC||(KC=1,(function(e,t){var n=c4(),r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===r,l=s&&n.process,c=(function(){try{var f=a&&a.require&&a.require("util").types;return f||l&&l.binding&&l.binding("util")}catch{}})();e.exports=c})(Uu,Uu.exports)),Uu.exports}var Vx,YC;function F4(){if(YC)return Vx;YC=1;var e=zK(),t=G4(),n=$K(),r=n&&n.isTypedArray,a=r?t(r):e;return Vx=a,Vx}var Hx,XC;function BK(){if(XC)return Hx;XC=1;var e=DK(),t=fj(),n=Nn(),r=H4(),a=dj(),s=F4(),l=Object.prototype,c=l.hasOwnProperty;function f(d,m){var y=n(d),g=!y&&t(d),S=!y&&!g&&r(d),j=!y&&!g&&!S&&s(d),w=y||g||S||j,b=w?e(d.length,String):[],A=b.length;for(var _ in d)(m||c.call(d,_))&&!(w&&(_=="length"||S&&(_=="offset"||_=="parent")||j&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||a(_,A)))&&b.push(_);return b}return Hx=f,Hx}var Gx,WC;function qK(){if(WC)return Gx;WC=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,a=typeof r=="function"&&r.prototype||e;return n===a}return Gx=t,Gx}var Fx,ZC;function K4(){if(ZC)return Fx;ZC=1;function e(t,n){return function(r){return t(n(r))}}return Fx=e,Fx}var Kx,QC;function IK(){if(QC)return Kx;QC=1;var e=K4(),t=e(Object.keys,Object);return Kx=t,Kx}var Yx,JC;function UK(){if(JC)return Yx;JC=1;var e=qK(),t=IK(),n=Object.prototype,r=n.hasOwnProperty;function a(s){if(!e(s))return t(s);var l=[];for(var c in Object(s))r.call(s,c)&&c!="constructor"&&l.push(c);return l}return Yx=a,Yx}var Xx,eM;function Jc(){if(eM)return Xx;eM=1;var e=Zw(),t=hj();function n(r){return r!=null&&t(r.length)&&!e(r)}return Xx=n,Xx}var Wx,tM;function Up(){if(tM)return Wx;tM=1;var e=BK(),t=UK(),n=Jc();function r(a){return n(a)?e(a):t(a)}return Wx=r,Wx}var Zx,nM;function VK(){if(nM)return Zx;nM=1;var e=CK(),t=RK(),n=Up();function r(a){return e(a,n,t)}return Zx=r,Zx}var Qx,rM;function HK(){if(rM)return Qx;rM=1;var e=VK(),t=1,n=Object.prototype,r=n.hasOwnProperty;function a(s,l,c,f,d,m){var y=c&t,g=e(s),S=g.length,j=e(l),w=j.length;if(S!=w&&!y)return!1;for(var b=S;b--;){var A=g[b];if(!(y?A in l:r.call(l,A)))return!1}var _=m.get(s),T=m.get(l);if(_&&T)return _==l&&T==s;var C=!0;m.set(s,l),m.set(l,s);for(var O=y;++b<S;){A=g[b];var E=s[A],M=l[A];if(f)var k=y?f(M,E,A,l,s,m):f(E,M,A,s,l,m);if(!(k===void 0?E===M||d(E,M,c,f,m):k)){C=!1;break}O||(O=A=="constructor")}if(C&&!O){var D=s.constructor,B=l.constructor;D!=B&&"constructor"in s&&"constructor"in l&&!(typeof D=="function"&&D instanceof D&&typeof B=="function"&&B instanceof B)&&(C=!1)}return m.delete(s),m.delete(l),C}return Qx=a,Qx}var Jx,iM;function GK(){if(iM)return Jx;iM=1;var e=Mo(),t=Jr(),n=e(t,"DataView");return Jx=n,Jx}var eb,aM;function FK(){if(aM)return eb;aM=1;var e=Mo(),t=Jr(),n=e(t,"Promise");return eb=n,eb}var tb,oM;function Y4(){if(oM)return tb;oM=1;var e=Mo(),t=Jr(),n=e(t,"Set");return tb=n,tb}var nb,sM;function KK(){if(sM)return nb;sM=1;var e=Mo(),t=Jr(),n=e(t,"WeakMap");return nb=n,nb}var rb,lM;function YK(){if(lM)return rb;lM=1;var e=GK(),t=Jw(),n=FK(),r=Y4(),a=KK(),s=ki(),l=f4(),c="[object Map]",f="[object Object]",d="[object Promise]",m="[object Set]",y="[object WeakMap]",g="[object DataView]",S=l(e),j=l(t),w=l(n),b=l(r),A=l(a),_=s;return(e&&_(new e(new ArrayBuffer(1)))!=g||t&&_(new t)!=c||n&&_(n.resolve())!=d||r&&_(new r)!=m||a&&_(new a)!=y)&&(_=function(T){var C=s(T),O=C==f?T.constructor:void 0,E=O?l(O):"";if(E)switch(E){case S:return g;case j:return c;case w:return d;case b:return m;case A:return y}return C}),rb=_,rb}var ib,uM;function XK(){if(uM)return ib;uM=1;var e=$4(),t=U4(),n=NK(),r=HK(),a=YK(),s=Nn(),l=H4(),c=F4(),f=1,d="[object Arguments]",m="[object Array]",y="[object Object]",g=Object.prototype,S=g.hasOwnProperty;function j(w,b,A,_,T,C){var O=s(w),E=s(b),M=O?m:a(w),k=E?m:a(b);M=M==d?y:M,k=k==d?y:k;var D=M==y,B=k==y,I=M==k;if(I&&l(w)){if(!l(b))return!1;O=!0,D=!1}if(I&&!D)return C||(C=new e),O||c(w)?t(w,b,A,_,T,C):n(w,b,M,A,_,T,C);if(!(A&f)){var z=D&&S.call(w,"__wrapped__"),F=B&&S.call(b,"__wrapped__");if(z||F){var X=z?w.value():w,Y=F?b.value():b;return C||(C=new e),T(X,Y,A,_,C)}}return I?(C||(C=new e),r(w,b,A,_,T,C)):!1}return ib=j,ib}var ab,cM;function pj(){if(cM)return ab;cM=1;var e=XK(),t=Li();function n(r,a,s,l,c){return r===a?!0:r==null||a==null||!t(r)&&!t(a)?r!==r&&a!==a:e(r,a,s,l,n,c)}return ab=n,ab}var ob,fM;function WK(){if(fM)return ob;fM=1;var e=$4(),t=pj(),n=1,r=2;function a(s,l,c,f){var d=c.length,m=d,y=!f;if(s==null)return!m;for(s=Object(s);d--;){var g=c[d];if(y&&g[2]?g[1]!==s[g[0]]:!(g[0]in s))return!1}for(;++d<m;){g=c[d];var S=g[0],j=s[S],w=g[1];if(y&&g[2]){if(j===void 0&&!(S in s))return!1}else{var b=new e;if(f)var A=f(j,w,S,s,l,b);if(!(A===void 0?t(w,j,n|r,f,b):A))return!1}}return!0}return ob=a,ob}var sb,dM;function X4(){if(dM)return sb;dM=1;var e=Ca();function t(n){return n===n&&!e(n)}return sb=t,sb}var lb,hM;function ZK(){if(hM)return lb;hM=1;var e=X4(),t=Up();function n(r){for(var a=t(r),s=a.length;s--;){var l=a[s],c=r[l];a[s]=[l,c,e(c)]}return a}return lb=n,lb}var ub,pM;function W4(){if(pM)return ub;pM=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return ub=e,ub}var cb,mM;function QK(){if(mM)return cb;mM=1;var e=WK(),t=ZK(),n=W4();function r(a){var s=t(a);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(l){return l===a||e(l,a,s)}}return cb=r,cb}var fb,yM;function JK(){if(yM)return fb;yM=1;function e(t,n){return t!=null&&n in Object(t)}return fb=e,fb}var db,vM;function eY(){if(vM)return db;vM=1;var e=p4(),t=fj(),n=Nn(),r=dj(),a=hj(),s=zp();function l(c,f,d){f=e(f,c);for(var m=-1,y=f.length,g=!1;++m<y;){var S=s(f[m]);if(!(g=c!=null&&d(c,S)))break;c=c[S]}return g||++m!=y?g:(y=c==null?0:c.length,!!y&&a(y)&&r(S,y)&&(n(c)||t(c)))}return db=l,db}var hb,gM;function tY(){if(gM)return hb;gM=1;var e=JK(),t=eY();function n(r,a){return r!=null&&t(r,a,e)}return hb=n,hb}var pb,xM;function nY(){if(xM)return pb;xM=1;var e=pj(),t=m4(),n=tY(),r=Ww(),a=X4(),s=W4(),l=zp(),c=1,f=2;function d(m,y){return r(m)&&a(y)?s(l(m),y):function(g){var S=t(g,m);return S===void 0&&S===y?n(g,m):e(y,S,c|f)}}return pb=d,pb}var mb,bM;function Al(){if(bM)return mb;bM=1;function e(t){return t}return mb=e,mb}var yb,SM;function rY(){if(SM)return yb;SM=1;function e(t){return function(n){return n==null?void 0:n[t]}}return yb=e,yb}var vb,wM;function iY(){if(wM)return vb;wM=1;var e=nj();function t(n){return function(r){return e(r,n)}}return vb=t,vb}var gb,jM;function aY(){if(jM)return gb;jM=1;var e=rY(),t=iY(),n=Ww(),r=zp();function a(s){return n(s)?e(r(s)):t(s)}return gb=a,gb}var xb,AM;function ei(){if(AM)return xb;AM=1;var e=QK(),t=nY(),n=Al(),r=Nn(),a=aY();function s(l){return typeof l=="function"?l:l==null?n:typeof l=="object"?r(l)?t(l[0],l[1]):e(l):a(l)}return xb=s,xb}var bb,OM;function Z4(){if(OM)return bb;OM=1;function e(t,n,r,a){for(var s=t.length,l=r+(a?1:-1);a?l--:++l<s;)if(n(t[l],l,t))return l;return-1}return bb=e,bb}var Sb,_M;function oY(){if(_M)return Sb;_M=1;function e(t){return t!==t}return Sb=e,Sb}var wb,TM;function sY(){if(TM)return wb;TM=1;function e(t,n,r){for(var a=r-1,s=t.length;++a<s;)if(t[a]===n)return a;return-1}return wb=e,wb}var jb,EM;function lY(){if(EM)return jb;EM=1;var e=Z4(),t=oY(),n=sY();function r(a,s,l){return s===s?n(a,s,l):e(a,t,l)}return jb=r,jb}var Ab,NM;function uY(){if(NM)return Ab;NM=1;var e=lY();function t(n,r){var a=n==null?0:n.length;return!!a&&e(n,r,0)>-1}return Ab=t,Ab}var Ob,CM;function cY(){if(CM)return Ob;CM=1;function e(t,n,r){for(var a=-1,s=t==null?0:t.length;++a<s;)if(r(n,t[a]))return!0;return!1}return Ob=e,Ob}var _b,MM;function fY(){if(MM)return _b;MM=1;function e(){}return _b=e,_b}var Tb,PM;function dY(){if(PM)return Tb;PM=1;var e=Y4(),t=fY(),n=cj(),r=1/0,a=e&&1/n(new e([,-0]))[1]==r?function(s){return new e(s)}:t;return Tb=a,Tb}var Eb,RM;function hY(){if(RM)return Eb;RM=1;var e=B4(),t=uY(),n=cY(),r=I4(),a=dY(),s=cj(),l=200;function c(f,d,m){var y=-1,g=t,S=f.length,j=!0,w=[],b=w;if(m)j=!1,g=n;else if(S>=l){var A=d?null:a(f);if(A)return s(A);j=!1,g=r,b=new e}else b=d?[]:w;e:for(;++y<S;){var _=f[y],T=d?d(_):_;if(_=m||_!==0?_:0,j&&T===T){for(var C=b.length;C--;)if(b[C]===T)continue e;d&&b.push(T),w.push(_)}else g(b,T,m)||(b!==w&&b.push(T),w.push(_))}return w}return Eb=c,Eb}var Nb,DM;function pY(){if(DM)return Nb;DM=1;var e=ei(),t=hY();function n(r,a){return r&&r.length?t(r,e(a,2)):[]}return Nb=n,Nb}var mY=pY();const kM=nt(mY);function Q4(e,t,n){return t===!0?kM(e,n):_e(t)?kM(e,t):e}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)}var yY=["ref"];function LM(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 Si(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LM(Object(n),!0).forEach(function(r){Vp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zM(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,ez(r.key),r)}}function gY(e,t,n){return t&&zM(e.prototype,t),n&&zM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xY(e,t,n){return t=Eh(t),bY(e,J4()?Reflect.construct(t,n||[],Eh(e).constructor):t.apply(e,n))}function bY(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 SY(e)}function SY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(J4=function(){return!!e})()}function Eh(e){return Eh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Eh(e)}function wY(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&&Y1(e,t)}function Y1(e,t){return Y1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Y1(e,t)}function Vp(e,t,n){return t=ez(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ez(e){var t=jY(e,"string");return Hs(t)=="symbol"?t:t+""}function jY(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 AY(e,t){if(e==null)return{};var n=OY(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function OY(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 _Y(e){return e.value}function TY(e,t){if(q.isValidElement(e))return q.cloneElement(e,t);if(typeof e=="function")return q.createElement(e,t);t.ref;var n=AY(t,yY);return q.createElement(uj,n)}var $M=1,Ls=(function(e){function t(){var n;vY(this,t);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=xY(this,t,[].concat(a)),Vp(n,"lastBoundingBox",{width:-1,height:-1}),n}return wY(t,e),gY(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)>$M||Math.abs(a.height-this.lastBoundingBox.height)>$M)&&(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?Si({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,s=a.layout,l=a.align,c=a.verticalAlign,f=a.margin,d=a.chartWidth,m=a.chartHeight,y,g;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(l==="center"&&s==="vertical"){var S=this.getBBoxSnapshot();y={left:((d||0)-S.width)/2}}else y=l==="right"?{right:f&&f.right||0}:{left:f&&f.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(c==="middle"){var j=this.getBBoxSnapshot();g={top:((m||0)-j.height)/2}}else g=c==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return Si(Si({},y),g)}},{key:"render",value:function(){var r=this,a=this.props,s=a.content,l=a.width,c=a.height,f=a.wrapperStyle,d=a.payloadUniqBy,m=a.payload,y=Si(Si({position:"absolute",width:l||"auto",height:c||"auto"},this.getDefaultPosition(f)),f);return q.createElement("div",{className:"recharts-legend-wrapper",style:y,ref:function(S){r.wrapperNode=S}},TY(s,Si(Si({},this.props),{},{payload:Q4(m,d,_Y)})))}}],[{key:"getWithHeight",value:function(r,a){var s=Si(Si({},this.defaultProps),r.props),l=s.layout;return l==="vertical"&&ue(r.props.height)?{height:r.props.height}:l==="horizontal"?{width:r.props.width||a}:null}}])})(P.PureComponent);Vp(Ls,"displayName","Legend");Vp(Ls,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Cb,BM;function EY(){if(BM)return Cb;BM=1;var e=Qc(),t=fj(),n=Nn(),r=e?e.isConcatSpreadable:void 0;function a(s){return n(s)||t(s)||!!(r&&s&&s[r])}return Cb=a,Cb}var Mb,qM;function tz(){if(qM)return Mb;qM=1;var e=V4(),t=EY();function n(r,a,s,l,c){var f=-1,d=r.length;for(s||(s=t),c||(c=[]);++f<d;){var m=r[f];a>0&&s(m)?a>1?n(m,a-1,s,l,c):e(c,m):l||(c[c.length]=m)}return c}return Mb=n,Mb}var Pb,IM;function NY(){if(IM)return Pb;IM=1;function e(t){return function(n,r,a){for(var s=-1,l=Object(n),c=a(n),f=c.length;f--;){var d=c[t?f:++s];if(r(l[d],d,l)===!1)break}return n}}return Pb=e,Pb}var Rb,UM;function CY(){if(UM)return Rb;UM=1;var e=NY(),t=e();return Rb=t,Rb}var Db,VM;function nz(){if(VM)return Db;VM=1;var e=CY(),t=Up();function n(r,a){return r&&e(r,a,t)}return Db=n,Db}var kb,HM;function MY(){if(HM)return kb;HM=1;var e=Jc();function t(n,r){return function(a,s){if(a==null)return a;if(!e(a))return n(a,s);for(var l=a.length,c=r?l:-1,f=Object(a);(r?c--:++c<l)&&s(f[c],c,f)!==!1;);return a}}return kb=t,kb}var Lb,GM;function mj(){if(GM)return Lb;GM=1;var e=nz(),t=MY(),n=t(e);return Lb=n,Lb}var zb,FM;function rz(){if(FM)return zb;FM=1;var e=mj(),t=Jc();function n(r,a){var s=-1,l=t(r)?Array(r.length):[];return e(r,function(c,f,d){l[++s]=a(c,f,d)}),l}return zb=n,zb}var $b,KM;function PY(){if(KM)return $b;KM=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return $b=e,$b}var Bb,YM;function RY(){if(YM)return Bb;YM=1;var e=Sl();function t(n,r){if(n!==r){var a=n!==void 0,s=n===null,l=n===n,c=e(n),f=r!==void 0,d=r===null,m=r===r,y=e(r);if(!d&&!y&&!c&&n>r||c&&f&&m&&!d&&!y||s&&f&&m||!a&&m||!l)return 1;if(!s&&!c&&!y&&n<r||y&&a&&l&&!s&&!c||d&&a&&l||!f&&l||!m)return-1}return 0}return Bb=t,Bb}var qb,XM;function DY(){if(XM)return qb;XM=1;var e=RY();function t(n,r,a){for(var s=-1,l=n.criteria,c=r.criteria,f=l.length,d=a.length;++s<f;){var m=e(l[s],c[s]);if(m){if(s>=d)return m;var y=a[s];return m*(y=="desc"?-1:1)}}return n.index-r.index}return qb=t,qb}var Ib,WM;function kY(){if(WM)return Ib;WM=1;var e=tj(),t=nj(),n=ei(),r=rz(),a=PY(),s=G4(),l=DY(),c=Al(),f=Nn();function d(m,y,g){y.length?y=e(y,function(w){return f(w)?function(b){return t(b,w.length===1?w[0]:w)}:w}):y=[c];var S=-1;y=e(y,s(n));var j=r(m,function(w,b,A){var _=e(y,function(T){return T(w)});return{criteria:_,index:++S,value:w}});return a(j,function(w,b){return l(w,b,g)})}return Ib=d,Ib}var Ub,ZM;function LY(){if(ZM)return Ub;ZM=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Ub=e,Ub}var Vb,QM;function zY(){if(QM)return Vb;QM=1;var e=LY(),t=Math.max;function n(r,a,s){return a=t(a===void 0?r.length-1:a,0),function(){for(var l=arguments,c=-1,f=t(l.length-a,0),d=Array(f);++c<f;)d[c]=l[a+c];c=-1;for(var m=Array(a+1);++c<a;)m[c]=l[c];return m[a]=s(d),e(r,this,m)}}return Vb=n,Vb}var Hb,JM;function $Y(){if(JM)return Hb;JM=1;function e(t){return function(){return t}}return Hb=e,Hb}var Gb,eP;function iz(){if(eP)return Gb;eP=1;var e=Mo(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Gb=t,Gb}var Fb,tP;function BY(){if(tP)return Fb;tP=1;var e=$Y(),t=iz(),n=Al(),r=t?function(a,s){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:n;return Fb=r,Fb}var Kb,nP;function qY(){if(nP)return Kb;nP=1;var e=800,t=16,n=Date.now;function r(a){var s=0,l=0;return function(){var c=n(),f=t-(c-l);if(l=c,f>0){if(++s>=e)return arguments[0]}else s=0;return a.apply(void 0,arguments)}}return Kb=r,Kb}var Yb,rP;function IY(){if(rP)return Yb;rP=1;var e=BY(),t=qY(),n=t(e);return Yb=n,Yb}var Xb,iP;function UY(){if(iP)return Xb;iP=1;var e=Al(),t=zY(),n=IY();function r(a,s){return n(t(a,s,e),a+"")}return Xb=r,Xb}var Wb,aP;function Hp(){if(aP)return Wb;aP=1;var e=Qw(),t=Jc(),n=dj(),r=Ca();function a(s,l,c){if(!r(c))return!1;var f=typeof l;return(f=="number"?t(c)&&n(l,c.length):f=="string"&&l in c)?e(c[l],s):!1}return Wb=a,Wb}var Zb,oP;function VY(){if(oP)return Zb;oP=1;var e=tz(),t=kY(),n=UY(),r=Hp(),a=n(function(s,l){if(s==null)return[];var c=l.length;return c>1&&r(s,l[0],l[1])?l=[]:c>2&&r(l[0],l[1],l[2])&&(l=[l[0]]),t(s,e(l,1),[])});return Zb=a,Zb}var HY=VY();const yj=nt(HY);function cc(e){"@babel/helpers - typeof";return cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cc(e)}function X1(){return X1=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},X1.apply(this,arguments)}function GY(e,t){return XY(e)||YY(e,t)||KY(e,t)||FY()}function FY(){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 KY(e,t){if(e){if(typeof e=="string")return sP(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 sP(e,t)}}function sP(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 YY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function XY(e){if(Array.isArray(e))return e}function lP(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 Qb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lP(Object(n),!0).forEach(function(r){WY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WY(e,t,n){return t=ZY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZY(e){var t=QY(e,"string");return cc(t)=="symbol"?t:t+""}function QY(e,t){if(cc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JY(e){return Array.isArray(e)&&Ft(e[0])&&Ft(e[1])?e.join(" ~ "):e}var eX=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,s=a===void 0?{}:a,l=t.itemStyle,c=l===void 0?{}:l,f=t.labelStyle,d=f===void 0?{}:f,m=t.payload,y=t.formatter,g=t.itemSorter,S=t.wrapperClassName,j=t.labelClassName,w=t.label,b=t.labelFormatter,A=t.accessibilityLayer,_=A===void 0?!1:A,T=function(){if(m&&m.length){var z={padding:0,margin:0},F=(g?yj(m,g):m).map(function(X,Y){if(X.type==="none")return null;var $=Qb({display:"block",paddingTop:4,paddingBottom:4,color:X.color||"#000"},c),K=X.formatter||y||JY,Q=X.value,ie=X.name,se=Q,L=ie;if(K&&se!=null&&L!=null){var H=K(Q,ie,X,Y,m);if(Array.isArray(H)){var re=GY(H,2);se=re[0],L=re[1]}else se=H}return q.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(Y),style:$},Ft(L)?q.createElement("span",{className:"recharts-tooltip-item-name"},L):null,Ft(L)?q.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,q.createElement("span",{className:"recharts-tooltip-item-value"},se),q.createElement("span",{className:"recharts-tooltip-item-unit"},X.unit||""))});return q.createElement("ul",{className:"recharts-tooltip-item-list",style:z},F)}return null},C=Qb({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},s),O=Qb({margin:0},d),E=!Ee(w),M=E?w:"",k=Me("recharts-default-tooltip",S),D=Me("recharts-tooltip-label",j);E&&b&&m!==void 0&&m!==null&&(M=b(w,m));var B=_?{role:"status","aria-live":"assertive"}:{};return q.createElement("div",X1({className:k,style:C},B),q.createElement("p",{className:D,style:O},q.isValidElement(M)?M:"".concat(M)),T())};function fc(e){"@babel/helpers - typeof";return fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fc(e)}function kd(e,t,n){return t=tX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tX(e){var t=nX(e,"string");return fc(t)=="symbol"?t:t+""}function nX(e,t){if(fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Eu="recharts-tooltip-wrapper",rX={visibility:"hidden"};function iX(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Me(Eu,kd(kd(kd(kd({},"".concat(Eu,"-right"),ue(n)&&t&&ue(t.x)&&n>=t.x),"".concat(Eu,"-left"),ue(n)&&t&&ue(t.x)&&n<t.x),"".concat(Eu,"-bottom"),ue(r)&&t&&ue(t.y)&&r>=t.y),"".concat(Eu,"-top"),ue(r)&&t&&ue(t.y)&&r<t.y))}function uP(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,s=e.position,l=e.reverseDirection,c=e.tooltipDimension,f=e.viewBox,d=e.viewBoxDimension;if(s&&ue(s[r]))return s[r];var m=n[r]-c-a,y=n[r]+a;if(t[r])return l[r]?m:y;if(l[r]){var g=m,S=f[r];return g<S?Math.max(y,f[r]):Math.max(m,f[r])}var j=y+c,w=f[r]+d;return j>w?Math.max(m,f[r]):Math.max(y,f[r])}function aX(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 oX(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,s=e.reverseDirection,l=e.tooltipBox,c=e.useTranslate3d,f=e.viewBox,d,m,y;return l.height>0&&l.width>0&&n?(m=uP({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:s,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),y=uP({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:s,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),d=aX({translateX:m,translateY:y,useTranslate3d:c})):d=rX,{cssProperties:d,cssClasses:iX({translateX:m,translateY:y,coordinate:n})}}function Gs(e){"@babel/helpers - typeof";return Gs=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},Gs(e)}function cP(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 fP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cP(Object(n),!0).forEach(function(r){Z1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lX(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,oz(r.key),r)}}function uX(e,t,n){return t&&lX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cX(e,t,n){return t=Nh(t),fX(e,az()?Reflect.construct(t,n||[],Nh(e).constructor):t.apply(e,n))}function fX(e,t){if(t&&(Gs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dX(e)}function dX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function az(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(az=function(){return!!e})()}function Nh(e){return Nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nh(e)}function hX(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&&W1(e,t)}function W1(e,t){return W1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},W1(e,t)}function Z1(e,t,n){return t=oz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oz(e){var t=pX(e,"string");return Gs(t)=="symbol"?t:t+""}function pX(e,t){if(Gs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dP=1,mX=(function(e){function t(){var n;sX(this,t);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=cX(this,t,[].concat(a)),Z1(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Z1(n,"handleKeyDown",function(l){if(l.key==="Escape"){var c,f,d,m;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(c=(f=n.props.coordinate)===null||f===void 0?void 0:f.x)!==null&&c!==void 0?c:0,y:(d=(m=n.props.coordinate)===null||m===void 0?void 0:m.y)!==null&&d!==void 0?d:0}})}}),n}return hX(t,e),uX(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>dP||Math.abs(r.height-this.state.lastBoundingBox.height)>dP)&&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,s=a.active,l=a.allowEscapeViewBox,c=a.animationDuration,f=a.animationEasing,d=a.children,m=a.coordinate,y=a.hasPayload,g=a.isAnimationActive,S=a.offset,j=a.position,w=a.reverseDirection,b=a.useTranslate3d,A=a.viewBox,_=a.wrapperStyle,T=oX({allowEscapeViewBox:l,coordinate:m,offsetTopLeft:S,position:j,reverseDirection:w,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:A}),C=T.cssClasses,O=T.cssProperties,E=fP(fP({transition:g&&s?"transform ".concat(c,"ms ").concat(f):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&s&&y?"visible":"hidden",position:"absolute",top:0,left:0},_);return q.createElement("div",{tabIndex:-1,className:C,style:E,ref:function(k){r.wrapperNode=k}},d)}}])})(P.PureComponent),yX=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ma={isSsr:yX()};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 hP(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 pP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hP(Object(n),!0).forEach(function(r){vj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gX(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,lz(r.key),r)}}function xX(e,t,n){return t&&gX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bX(e,t,n){return t=Ch(t),SX(e,sz()?Reflect.construct(t,n||[],Ch(e).constructor):t.apply(e,n))}function SX(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 wX(e)}function wX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sz=function(){return!!e})()}function Ch(e){return Ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ch(e)}function jX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q1(e,t)}function Q1(e,t){return Q1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Q1(e,t)}function vj(e,t,n){return t=lz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lz(e){var t=AX(e,"string");return Fs(t)=="symbol"?t:t+""}function AX(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)}function OX(e){return e.dataKey}function _X(e,t){return q.isValidElement(e)?q.cloneElement(e,t):typeof e=="function"?q.createElement(e,t):q.createElement(eX,t)}var Un=(function(e){function t(){return vX(this,t),bX(this,t,arguments)}return jX(t,e),xX(t,[{key:"render",value:function(){var r=this,a=this.props,s=a.active,l=a.allowEscapeViewBox,c=a.animationDuration,f=a.animationEasing,d=a.content,m=a.coordinate,y=a.filterNull,g=a.isAnimationActive,S=a.offset,j=a.payload,w=a.payloadUniqBy,b=a.position,A=a.reverseDirection,_=a.useTranslate3d,T=a.viewBox,C=a.wrapperStyle,O=j??[];y&&O.length&&(O=Q4(j.filter(function(M){return M.value!=null&&(M.hide!==!0||r.props.includeHidden)}),w,OX));var E=O.length>0;return q.createElement(mX,{allowEscapeViewBox:l,animationDuration:c,animationEasing:f,isAnimationActive:g,active:s,coordinate:m,hasPayload:E,offset:S,position:b,reverseDirection:A,useTranslate3d:_,viewBox:T,wrapperStyle:C},_X(d,pP(pP({},this.props),{},{payload:O})))}}])})(P.PureComponent);vj(Un,"displayName","Tooltip");vj(Un,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ma.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 Jb,mP;function TX(){if(mP)return Jb;mP=1;var e=Jr(),t=function(){return e.Date.now()};return Jb=t,Jb}var e0,yP;function EX(){if(yP)return e0;yP=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return e0=t,e0}var t0,vP;function NX(){if(vP)return t0;vP=1;var e=EX(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return t0=n,t0}var n0,gP;function uz(){if(gP)return n0;gP=1;var e=NX(),t=Ca(),n=Sl(),r=NaN,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;function f(d){if(typeof d=="number")return d;if(n(d))return r;if(t(d)){var m=typeof d.valueOf=="function"?d.valueOf():d;d=t(m)?m+"":m}if(typeof d!="string")return d===0?d:+d;d=e(d);var y=s.test(d);return y||l.test(d)?c(d.slice(2),y?2:8):a.test(d)?r:+d}return n0=f,n0}var r0,xP;function CX(){if(xP)return r0;xP=1;var e=Ca(),t=TX(),n=uz(),r="Expected a function",a=Math.max,s=Math.min;function l(c,f,d){var m,y,g,S,j,w,b=0,A=!1,_=!1,T=!0;if(typeof c!="function")throw new TypeError(r);f=n(f)||0,e(d)&&(A=!!d.leading,_="maxWait"in d,g=_?a(n(d.maxWait)||0,f):g,T="trailing"in d?!!d.trailing:T);function C(F){var X=m,Y=y;return m=y=void 0,b=F,S=c.apply(Y,X),S}function O(F){return b=F,j=setTimeout(k,f),A?C(F):S}function E(F){var X=F-w,Y=F-b,$=f-X;return _?s($,g-Y):$}function M(F){var X=F-w,Y=F-b;return w===void 0||X>=f||X<0||_&&Y>=g}function k(){var F=t();if(M(F))return D(F);j=setTimeout(k,E(F))}function D(F){return j=void 0,T&&m?C(F):(m=y=void 0,S)}function B(){j!==void 0&&clearTimeout(j),b=0,m=w=y=j=void 0}function I(){return j===void 0?S:D(t())}function z(){var F=t(),X=M(F);if(m=arguments,y=this,w=F,X){if(j===void 0)return O(w);if(_)return clearTimeout(j),j=setTimeout(k,f),C(w)}return j===void 0&&(j=setTimeout(k,f)),S}return z.cancel=B,z.flush=I,z}return r0=l,r0}var i0,bP;function MX(){if(bP)return i0;bP=1;var e=CX(),t=Ca(),n="Expected a function";function r(a,s,l){var c=!0,f=!0;if(typeof a!="function")throw new TypeError(n);return t(l)&&(c="leading"in l?!!l.leading:c,f="trailing"in l?!!l.trailing:f),e(a,s,{leading:c,maxWait:s,trailing:f})}return i0=r,i0}var PX=MX();const cz=nt(PX);function dc(e){"@babel/helpers - typeof";return dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dc(e)}function SP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ld(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SP(Object(n),!0).forEach(function(r){RX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function RX(e,t,n){return t=DX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DX(e){var t=kX(e,"string");return dc(t)=="symbol"?t:t+""}function kX(e,t){if(dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LX(e,t){return qX(e)||BX(e,t)||$X(e,t)||zX()}function zX(){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 $X(e,t){if(e){if(typeof e=="string")return wP(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 wP(e,t)}}function wP(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 BX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function qX(e){if(Array.isArray(e))return e}var Mh=P.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,a=r===void 0?{width:-1,height:-1}:r,s=e.width,l=s===void 0?"100%":s,c=e.height,f=c===void 0?"100%":c,d=e.minWidth,m=d===void 0?0:d,y=e.minHeight,g=e.maxHeight,S=e.children,j=e.debounce,w=j===void 0?0:j,b=e.id,A=e.className,_=e.onResize,T=e.style,C=T===void 0?{}:T,O=P.useRef(null),E=P.useRef();E.current=_,P.useImperativeHandle(t,function(){return Object.defineProperty(O.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),O.current},configurable:!0})});var M=P.useState({containerWidth:a.width,containerHeight:a.height}),k=LX(M,2),D=k[0],B=k[1],I=P.useCallback(function(F,X){B(function(Y){var $=Math.round(F),K=Math.round(X);return Y.containerWidth===$&&Y.containerHeight===K?Y:{containerWidth:$,containerHeight:K}})},[]);P.useEffect(function(){var F=function(ie){var se,L=ie[0].contentRect,H=L.width,re=L.height;I(H,re),(se=E.current)===null||se===void 0||se.call(E,H,re)};w>0&&(F=cz(F,w,{trailing:!0,leading:!1}));var X=new ResizeObserver(F),Y=O.current.getBoundingClientRect(),$=Y.width,K=Y.height;return I($,K),X.observe(O.current),function(){X.disconnect()}},[I,w]);var z=P.useMemo(function(){var F=D.containerWidth,X=D.containerHeight;if(F<0||X<0)return null;Er(fo(l)||fo(f),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,l,f),Er(!n||n>0,"The aspect(%s) must be greater than zero.",n);var Y=fo(l)?F:l,$=fo(f)?X:f;n&&n>0&&(Y?$=Y/n:$&&(Y=$*n),g&&$>g&&($=g)),Er(Y>0||$>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.`,Y,$,l,f,m,y,n);var K=!Array.isArray(S)&&Ti(S.type).endsWith("Chart");return q.Children.map(S,function(Q){return q.isValidElement(Q)?P.cloneElement(Q,Ld({width:Y,height:$},K?{style:Ld({height:"100%",width:"100%",maxHeight:$,maxWidth:Y},Q.props.style)}:{})):Q})},[n,S,f,g,y,m,D,l]);return q.createElement("div",{id:b?"".concat(b):void 0,className:Me("recharts-responsive-container",A),style:Ld(Ld({},C),{},{width:l,height:f,minWidth:m,minHeight:y,maxHeight:g}),ref:O},z)}),Gp=function(t){return null};Gp.displayName="Cell";function hc(e){"@babel/helpers - typeof";return hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hc(e)}function jP(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 J1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jP(Object(n),!0).forEach(function(r){IX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IX(e,t,n){return t=UX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UX(e){var t=VX(e,"string");return hc(t)=="symbol"?t:t+""}function VX(e,t){if(hc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bs={widthCache:{},cacheCount:0},HX=2e3,GX={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},AP="recharts_measurement_span";function FX(e){var t=J1({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Xu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ma.isSsr)return{width:0,height:0};var r=FX(n),a=JSON.stringify({text:t,copyStyle:r});if(bs.widthCache[a])return bs.widthCache[a];try{var s=document.getElementById(AP);s||(s=document.createElement("span"),s.setAttribute("id",AP),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var l=J1(J1({},GX),r);Object.assign(s.style,l),s.textContent="".concat(t);var c=s.getBoundingClientRect(),f={width:c.width,height:c.height};return bs.widthCache[a]=f,++bs.cacheCount>HX&&(bs.cacheCount=0,bs.widthCache={}),f}catch{return{width:0,height:0}}},KX=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function pc(e){"@babel/helpers - typeof";return pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pc(e)}function Ph(e,t){return ZX(e)||WX(e,t)||XX(e,t)||YX()}function YX(){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 XX(e,t){if(e){if(typeof e=="string")return OP(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 OP(e,t)}}function OP(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 WX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function ZX(e){if(Array.isArray(e))return e}function QX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _P(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,eW(r.key),r)}}function JX(e,t,n){return t&&_P(e.prototype,t),n&&_P(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function eW(e){var t=tW(e,"string");return pc(t)=="symbol"?t:t+""}function tW(e,t){if(pc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var TP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,EP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,nW=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,rW=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,fz={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},iW=Object.keys(fz),Ns="NaN";function aW(e,t){return e*fz[t]}var zd=(function(){function e(t,n){QX(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!nW.test(n)&&(this.num=NaN,this.unit=""),iW.includes(n)&&(this.num=aW(t,n),this.unit="px")}return JX(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=rW.exec(n))!==null&&r!==void 0?r:[],s=Ph(a,3),l=s[1],c=s[2];return new e(parseFloat(l),c??"")}}])})();function dz(e){if(e.includes(Ns))return Ns;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=TP.exec(t))!==null&&n!==void 0?n:[],a=Ph(r,4),s=a[1],l=a[2],c=a[3],f=zd.parse(s??""),d=zd.parse(c??""),m=l==="*"?f.multiply(d):f.divide(d);if(m.isNaN())return Ns;t=t.replace(TP,m.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var y,g=(y=EP.exec(t))!==null&&y!==void 0?y:[],S=Ph(g,4),j=S[1],w=S[2],b=S[3],A=zd.parse(j??""),_=zd.parse(b??""),T=w==="+"?A.add(_):A.subtract(_);if(T.isNaN())return Ns;t=t.replace(EP,T.toString())}return t}var NP=/\(([^()]*)\)/;function oW(e){for(var t=e;t.includes("(");){var n=NP.exec(t),r=Ph(n,2),a=r[1];t=t.replace(NP,dz(a))}return t}function sW(e){var t=e.replace(/\s+/g,"");return t=oW(t),t=dz(t),t}function lW(e){try{return sW(e)}catch{return Ns}}function a0(e){var t=lW(e.slice(5,-1));return t===Ns?"":t}var uW=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],cW=["dx","dy","angle","className","breakAll"];function eS(){return eS=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},eS.apply(this,arguments)}function CP(e,t){if(e==null)return{};var n=fW(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fW(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 MP(e,t){return mW(e)||pW(e,t)||hW(e,t)||dW()}function dW(){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 hW(e,t){if(e){if(typeof e=="string")return PP(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 PP(e,t)}}function PP(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 pW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function mW(e){if(Array.isArray(e))return e}var hz=/[ \f\n\r\t\v\u2028\u2029]+/,pz=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var s=[];Ee(n)||(r?s=n.toString().split(""):s=n.toString().split(hz));var l=s.map(function(f){return{word:f,width:Xu(f,a).width}}),c=r?0:Xu(" ",a).width;return{wordsWithComputedWidth:l,spaceWidth:c}}catch{return null}},yW=function(t,n,r,a,s){var l=t.maxLines,c=t.children,f=t.style,d=t.breakAll,m=ue(l),y=c,g=function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Y.reduce(function($,K){var Q=K.word,ie=K.width,se=$[$.length-1];if(se&&(a==null||s||se.width+ie+r<Number(a)))se.words.push(Q),se.width+=ie+r;else{var L={words:[Q],width:ie};$.push(L)}return $},[])},S=g(n),j=function(Y){return Y.reduce(function($,K){return $.width>K.width?$:K})};if(!m)return S;for(var w="…",b=function(Y){var $=y.slice(0,Y),K=pz({breakAll:d,style:f,children:$+w}).wordsWithComputedWidth,Q=g(K),ie=Q.length>l||j(Q).width>Number(a);return[ie,Q]},A=0,_=y.length-1,T=0,C;A<=_&&T<=y.length-1;){var O=Math.floor((A+_)/2),E=O-1,M=b(E),k=MP(M,2),D=k[0],B=k[1],I=b(O),z=MP(I,1),F=z[0];if(!D&&!F&&(A=O+1),D&&F&&(_=O-1),!D&&F){C=B;break}T++}return C||S},RP=function(t){var n=Ee(t)?[]:t.toString().split(hz);return[{words:n}]},vW=function(t){var n=t.width,r=t.scaleToFit,a=t.children,s=t.style,l=t.breakAll,c=t.maxLines;if((n||r)&&!Ma.isSsr){var f,d,m=pz({breakAll:l,children:a,style:s});if(m){var y=m.wordsWithComputedWidth,g=m.spaceWidth;f=y,d=g}else return RP(a);return yW({breakAll:l,children:a,maxLines:c,style:s},f,d,n,r)}return RP(a)},DP="#808080",Oo=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,s=a===void 0?0:a,l=t.lineHeight,c=l===void 0?"1em":l,f=t.capHeight,d=f===void 0?"0.71em":f,m=t.scaleToFit,y=m===void 0?!1:m,g=t.textAnchor,S=g===void 0?"start":g,j=t.verticalAnchor,w=j===void 0?"end":j,b=t.fill,A=b===void 0?DP:b,_=CP(t,uW),T=P.useMemo(function(){return vW({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:y,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,y,_.style,_.width]),C=_.dx,O=_.dy,E=_.angle,M=_.className,k=_.breakAll,D=CP(_,cW);if(!Ft(r)||!Ft(s))return null;var B=r+(ue(C)?C:0),I=s+(ue(O)?O:0),z;switch(w){case"start":z=a0("calc(".concat(d,")"));break;case"middle":z=a0("calc(".concat((T.length-1)/2," * -").concat(c," + (").concat(d," / 2))"));break;default:z=a0("calc(".concat(T.length-1," * -").concat(c,")"));break}var F=[];if(y){var X=T[0].width,Y=_.width;F.push("scale(".concat((ue(Y)?Y/X:1)/X,")"))}return E&&F.push("rotate(".concat(E,", ").concat(B,", ").concat(I,")")),F.length&&(D.transform=F.join(" ")),q.createElement("text",eS({},Se(D,!0),{x:B,y:I,className:Me("recharts-text",M),textAnchor:S,fill:A.includes("url")?DP:A}),T.map(function($,K){var Q=$.words.join(k?"":" ");return q.createElement("tspan",{x:B,dy:K===0?z:c,key:"".concat(Q,"-").concat(K)},Q)}))};function Sa(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function gW(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gj(e){let t,n,r;e.length!==2?(t=Sa,n=(c,f)=>Sa(e(c),f),r=(c,f)=>e(c)-f):(t=e===Sa||e===gW?e:xW,n=e,r=e);function a(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const y=d+m>>>1;n(c[y],f)<0?d=y+1:m=y}while(d<m)}return d}function s(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const y=d+m>>>1;n(c[y],f)<=0?d=y+1:m=y}while(d<m)}return d}function l(c,f,d=0,m=c.length){const y=a(c,f,d,m-1);return y>d&&r(c[y-1],f)>-r(c[y],f)?y-1:y}return{left:a,center:l,right:s}}function xW(){return 0}function mz(e){return e===null?NaN:+e}function*bW(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const SW=gj(Sa),ef=SW.right;gj(mz).center;class kP extends Map{constructor(t,n=AW){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(LP(this,t))}has(t){return super.has(LP(this,t))}set(t,n){return super.set(wW(this,t),n)}delete(t){return super.delete(jW(this,t))}}function LP({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function wW({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function jW({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function AW(e){return e!==null&&typeof e=="object"?e.valueOf():e}function OW(e=Sa){if(e===Sa)return yz;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 yz(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const _W=Math.sqrt(50),TW=Math.sqrt(10),EW=Math.sqrt(2);function Rh(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),s=r/Math.pow(10,a),l=s>=_W?10:s>=TW?5:s>=EW?2:1;let c,f,d;return a<0?(d=Math.pow(10,-a)/l,c=Math.round(e*d),f=Math.round(t*d),c/d<e&&++c,f/d>t&&--f,d=-d):(d=Math.pow(10,a)*l,c=Math.round(e/d),f=Math.round(t/d),c*d<e&&++c,f*d>t&&--f),f<c&&.5<=n&&n<2?Rh(e,t,n*2):[c,f,d]}function tS(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,s,l]=r?Rh(t,e,n):Rh(e,t,n);if(!(s>=a))return[];const c=s-a+1,f=new Array(c);if(r)if(l<0)for(let d=0;d<c;++d)f[d]=(s-d)/-l;else for(let d=0;d<c;++d)f[d]=(s-d)*l;else if(l<0)for(let d=0;d<c;++d)f[d]=(a+d)/-l;else for(let d=0;d<c;++d)f[d]=(a+d)*l;return f}function nS(e,t,n){return t=+t,e=+e,n=+n,Rh(e,t,n)[2]}function rS(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?nS(t,e,n):nS(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function zP(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function $P(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function vz(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?yz:OW(a);r>n;){if(r-n>600){const f=r-n+1,d=t-n+1,m=Math.log(f),y=.5*Math.exp(2*m/3),g=.5*Math.sqrt(m*y*(f-y)/f)*(d-f/2<0?-1:1),S=Math.max(n,Math.floor(t-d*y/f+g)),j=Math.min(r,Math.floor(t+(f-d)*y/f+g));vz(e,t,S,j,a)}const s=e[t];let l=n,c=r;for(Nu(e,n,t),a(e[r],s)>0&&Nu(e,n,r);l<c;){for(Nu(e,l,c),++l,--c;a(e[l],s)<0;)++l;for(;a(e[c],s)>0;)--c}a(e[n],s)===0?Nu(e,n,c):(++c,Nu(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function Nu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function NW(e,t,n){if(e=Float64Array.from(bW(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return $P(e);if(t>=1)return zP(e);var r,a=(r-1)*t,s=Math.floor(a),l=zP(vz(e,s).subarray(0,s+1)),c=$P(e.subarray(s+1));return l+(c-l)*(a-s)}}function CW(e,t,n=mz){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,s=Math.floor(a),l=+n(e[s],s,e),c=+n(e[s+1],s+1,e);return l+(c-l)*(a-s)}}function MW(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,s=new Array(a);++r<a;)s[r]=e+r*n;return s}function pr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function zi(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 iS=Symbol("implicit");function xj(){var e=new kP,t=[],n=[],r=iS;function a(s){let l=e.get(s);if(l===void 0){if(r!==iS)return r;e.set(s,l=t.push(s)-1)}return n[l%n.length]}return a.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new kP;for(const l of s)e.has(l)||e.set(l,t.push(l)-1);return a},a.range=function(s){return arguments.length?(n=Array.from(s),a):n.slice()},a.unknown=function(s){return arguments.length?(r=s,a):r},a.copy=function(){return xj(t,n).unknown(r)},pr.apply(a,arguments),a}function mc(){var e=xj().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,s,l,c=!1,f=0,d=0,m=.5;delete e.unknown;function y(){var g=t().length,S=a<r,j=S?a:r,w=S?r:a;s=(w-j)/Math.max(1,g-f+d*2),c&&(s=Math.floor(s)),j+=(w-j-s*(g-f))*m,l=s*(1-f),c&&(j=Math.round(j),l=Math.round(l));var b=MW(g).map(function(A){return j+s*A});return n(S?b.reverse():b)}return e.domain=function(g){return arguments.length?(t(g),y()):t()},e.range=function(g){return arguments.length?([r,a]=g,r=+r,a=+a,y()):[r,a]},e.rangeRound=function(g){return[r,a]=g,r=+r,a=+a,c=!0,y()},e.bandwidth=function(){return l},e.step=function(){return s},e.round=function(g){return arguments.length?(c=!!g,y()):c},e.padding=function(g){return arguments.length?(f=Math.min(1,d=+g),y()):f},e.paddingInner=function(g){return arguments.length?(f=Math.min(1,g),y()):f},e.paddingOuter=function(g){return arguments.length?(d=+g,y()):d},e.align=function(g){return arguments.length?(m=Math.max(0,Math.min(1,g)),y()):m},e.copy=function(){return mc(t(),[r,a]).round(c).paddingInner(f).paddingOuter(d).align(m)},pr.apply(y(),arguments)}function gz(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return gz(t())},e}function Wu(){return gz(mc.apply(null,arguments).paddingInner(1))}function bj(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function xz(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function tf(){}var yc=.7,Dh=1/yc,zs="\\s*([+-]?\\d+)\\s*",vc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Hr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",PW=/^#([0-9a-f]{3,8})$/,RW=new RegExp(`^rgb\\(${zs},${zs},${zs}\\)$`),DW=new RegExp(`^rgb\\(${Hr},${Hr},${Hr}\\)$`),kW=new RegExp(`^rgba\\(${zs},${zs},${zs},${vc}\\)$`),LW=new RegExp(`^rgba\\(${Hr},${Hr},${Hr},${vc}\\)$`),zW=new RegExp(`^hsl\\(${vc},${Hr},${Hr}\\)$`),$W=new RegExp(`^hsla\\(${vc},${Hr},${Hr},${vc}\\)$`),BP={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};bj(tf,gc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qP,formatHex:qP,formatHex8:BW,formatHsl:qW,formatRgb:IP,toString:IP});function qP(){return this.rgb().formatHex()}function BW(){return this.rgb().formatHex8()}function qW(){return bz(this).formatHsl()}function IP(){return this.rgb().formatRgb()}function gc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=PW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?UP(t):n===3?new En(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?$d(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?$d(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=RW.exec(e))?new En(t[1],t[2],t[3],1):(t=DW.exec(e))?new En(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=kW.exec(e))?$d(t[1],t[2],t[3],t[4]):(t=LW.exec(e))?$d(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=zW.exec(e))?GP(t[1],t[2]/100,t[3]/100,1):(t=$W.exec(e))?GP(t[1],t[2]/100,t[3]/100,t[4]):BP.hasOwnProperty(e)?UP(BP[e]):e==="transparent"?new En(NaN,NaN,NaN,0):null}function UP(e){return new En(e>>16&255,e>>8&255,e&255,1)}function $d(e,t,n,r){return r<=0&&(e=t=n=NaN),new En(e,t,n,r)}function IW(e){return e instanceof tf||(e=gc(e)),e?(e=e.rgb(),new En(e.r,e.g,e.b,e.opacity)):new En}function aS(e,t,n,r){return arguments.length===1?IW(e):new En(e,t,n,r??1)}function En(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}bj(En,aS,xz(tf,{brighter(e){return e=e==null?Dh:Math.pow(Dh,e),new En(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yc:Math.pow(yc,e),new En(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new En(xo(this.r),xo(this.g),xo(this.b),kh(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:VP,formatHex:VP,formatHex8:UW,formatRgb:HP,toString:HP}));function VP(){return`#${ho(this.r)}${ho(this.g)}${ho(this.b)}`}function UW(){return`#${ho(this.r)}${ho(this.g)}${ho(this.b)}${ho((isNaN(this.opacity)?1:this.opacity)*255)}`}function HP(){const e=kh(this.opacity);return`${e===1?"rgb(":"rgba("}${xo(this.r)}, ${xo(this.g)}, ${xo(this.b)}${e===1?")":`, ${e})`}`}function kh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ho(e){return e=xo(e),(e<16?"0":"")+e.toString(16)}function GP(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Or(e,t,n,r)}function bz(e){if(e instanceof Or)return new Or(e.h,e.s,e.l,e.opacity);if(e instanceof tf||(e=gc(e)),!e)return new Or;if(e instanceof Or)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),s=Math.max(t,n,r),l=NaN,c=s-a,f=(s+a)/2;return c?(t===s?l=(n-r)/c+(n<r)*6:n===s?l=(r-t)/c+2:l=(t-n)/c+4,c/=f<.5?s+a:2-s-a,l*=60):c=f>0&&f<1?0:l,new Or(l,c,f,e.opacity)}function VW(e,t,n,r){return arguments.length===1?bz(e):new Or(e,t,n,r??1)}function Or(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}bj(Or,VW,xz(tf,{brighter(e){return e=e==null?Dh:Math.pow(Dh,e),new Or(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yc:Math.pow(yc,e),new Or(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 En(o0(e>=240?e-240:e+120,a,r),o0(e,a,r),o0(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Or(FP(this.h),Bd(this.s),Bd(this.l),kh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=kh(this.opacity);return`${e===1?"hsl(":"hsla("}${FP(this.h)}, ${Bd(this.s)*100}%, ${Bd(this.l)*100}%${e===1?")":`, ${e})`}`}}));function FP(e){return e=(e||0)%360,e<0?e+360:e}function Bd(e){return Math.max(0,Math.min(1,e||0))}function o0(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 Sj=e=>()=>e;function HW(e,t){return function(n){return e+n*t}}function GW(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function FW(e){return(e=+e)==1?Sz:function(t,n){return n-t?GW(t,n,e):Sj(isNaN(t)?n:t)}}function Sz(e,t){var n=t-e;return n?HW(e,n):Sj(isNaN(e)?t:e)}const KP=(function e(t){var n=FW(t);function r(a,s){var l=n((a=aS(a)).r,(s=aS(s)).r),c=n(a.g,s.g),f=n(a.b,s.b),d=Sz(a.opacity,s.opacity);return function(m){return a.r=l(m),a.g=c(m),a.b=f(m),a.opacity=d(m),a+""}}return r.gamma=e,r})(1);function KW(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(s){for(a=0;a<n;++a)r[a]=e[a]*(1-s)+t[a]*s;return r}}function YW(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function XW(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),s=new Array(n),l;for(l=0;l<r;++l)a[l]=Ol(e[l],t[l]);for(;l<n;++l)s[l]=t[l];return function(c){for(l=0;l<r;++l)s[l]=a[l](c);return s}}function WW(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Lh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function ZW(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]=Ol(e[a],t[a]):r[a]=t[a];return function(s){for(a in n)r[a]=n[a](s);return r}}var oS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,s0=new RegExp(oS.source,"g");function QW(e){return function(){return e}}function JW(e){return function(t){return e(t)+""}}function eZ(e,t){var n=oS.lastIndex=s0.lastIndex=0,r,a,s,l=-1,c=[],f=[];for(e=e+"",t=t+"";(r=oS.exec(e))&&(a=s0.exec(t));)(s=a.index)>n&&(s=t.slice(n,s),c[l]?c[l]+=s:c[++l]=s),(r=r[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,f.push({i:l,x:Lh(r,a)})),n=s0.lastIndex;return n<t.length&&(s=t.slice(n),c[l]?c[l]+=s:c[++l]=s),c.length<2?f[0]?JW(f[0].x):QW(t):(t=f.length,function(d){for(var m=0,y;m<t;++m)c[(y=f[m]).i]=y.x(d);return c.join("")})}function Ol(e,t){var n=typeof t,r;return t==null||n==="boolean"?Sj(t):(n==="number"?Lh:n==="string"?(r=gc(t))?(t=r,KP):eZ:t instanceof gc?KP:t instanceof Date?WW:YW(t)?KW:Array.isArray(t)?XW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?ZW:Lh)(e,t)}function wj(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function tZ(e,t){t===void 0&&(t=e,e=Ol);for(var n=0,r=t.length-1,a=t[0],s=new Array(r<0?0:r);n<r;)s[n]=e(a,a=t[++n]);return function(l){var c=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return s[c](l-c)}}function nZ(e){return function(){return e}}function zh(e){return+e}var YP=[0,1];function bn(e){return e}function sS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:nZ(isNaN(t)?NaN:.5)}function rZ(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function iZ(e,t,n){var r=e[0],a=e[1],s=t[0],l=t[1];return a<r?(r=sS(a,r),s=n(l,s)):(r=sS(r,a),s=n(s,l)),function(c){return s(r(c))}}function aZ(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),s=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)a[l]=sS(e[l],e[l+1]),s[l]=n(t[l],t[l+1]);return function(c){var f=ef(e,c,1,r)-1;return s[f](a[f](c))}}function nf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Fp(){var e=YP,t=YP,n=Ol,r,a,s,l=bn,c,f,d;function m(){var g=Math.min(e.length,t.length);return l!==bn&&(l=rZ(e[0],e[g-1])),c=g>2?aZ:iZ,f=d=null,y}function y(g){return g==null||isNaN(g=+g)?s:(f||(f=c(e.map(r),t,n)))(r(l(g)))}return y.invert=function(g){return l(a((d||(d=c(t,e.map(r),Lh)))(g)))},y.domain=function(g){return arguments.length?(e=Array.from(g,zh),m()):e.slice()},y.range=function(g){return arguments.length?(t=Array.from(g),m()):t.slice()},y.rangeRound=function(g){return t=Array.from(g),n=wj,m()},y.clamp=function(g){return arguments.length?(l=g?!0:bn,m()):l!==bn},y.interpolate=function(g){return arguments.length?(n=g,m()):n},y.unknown=function(g){return arguments.length?(s=g,y):s},function(g,S){return r=g,a=S,m()}}function jj(){return Fp()(bn,bn)}function oZ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function $h(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 Ks(e){return e=$h(Math.abs(e)),e?e[1]:NaN}function sZ(e,t){return function(n,r){for(var a=n.length,s=[],l=0,c=e[0],f=0;a>0&&c>0&&(f+c+1>r&&(c=Math.max(1,r-f)),s.push(n.substring(a-=c,a+c)),!((f+=c+1)>r));)c=e[l=(l+1)%e.length];return s.reverse().join(t)}}function lZ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var uZ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function xc(e){if(!(t=uZ.exec(e)))throw new Error("invalid format: "+e);var t;return new Aj({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]})}xc.prototype=Aj.prototype;function Aj(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+""}Aj.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 cZ(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 Bh;function fZ(e,t){var n=$h(e,t);if(!n)return Bh=void 0,e.toPrecision(t);var r=n[0],a=n[1],s=a-(Bh=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,l=r.length;return s===l?r:s>l?r+new Array(s-l+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+$h(e,Math.max(0,t+s-1))[0]}function XP(e,t){var n=$h(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 WP={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:oZ,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)=>XP(e*100,t),r:XP,s:fZ,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ZP(e){return e}var QP=Array.prototype.map,JP=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function dZ(e){var t=e.grouping===void 0||e.thousands===void 0?ZP:sZ(QP.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+"",s=e.numerals===void 0?ZP:lZ(QP.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function d(y,g){y=xc(y);var S=y.fill,j=y.align,w=y.sign,b=y.symbol,A=y.zero,_=y.width,T=y.comma,C=y.precision,O=y.trim,E=y.type;E==="n"?(T=!0,E="g"):WP[E]||(C===void 0&&(C=12),O=!0,E="g"),(A||S==="0"&&j==="=")&&(A=!0,S="0",j="=");var M=(g&&g.prefix!==void 0?g.prefix:"")+(b==="$"?n:b==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():""),k=(b==="$"?r:/[%p]/.test(E)?l:"")+(g&&g.suffix!==void 0?g.suffix:""),D=WP[E],B=/[defgprs%]/.test(E);C=C===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function I(z){var F=M,X=k,Y,$,K;if(E==="c")X=D(z)+X,z="";else{z=+z;var Q=z<0||1/z<0;if(z=isNaN(z)?f:D(Math.abs(z),C),O&&(z=cZ(z)),Q&&+z==0&&w!=="+"&&(Q=!1),F=(Q?w==="("?w:c:w==="-"||w==="("?"":w)+F,X=(E==="s"&&!isNaN(z)&&Bh!==void 0?JP[8+Bh/3]:"")+X+(Q&&w==="("?")":""),B){for(Y=-1,$=z.length;++Y<$;)if(K=z.charCodeAt(Y),48>K||K>57){X=(K===46?a+z.slice(Y+1):z.slice(Y))+X,z=z.slice(0,Y);break}}}T&&!A&&(z=t(z,1/0));var ie=F.length+z.length+X.length,se=ie<_?new Array(_-ie+1).join(S):"";switch(T&&A&&(z=t(se+z,se.length?_-X.length:1/0),se=""),j){case"<":z=F+z+X+se;break;case"=":z=F+se+z+X;break;case"^":z=se.slice(0,ie=se.length>>1)+F+z+X+se.slice(ie);break;default:z=se+F+z+X;break}return s(z)}return I.toString=function(){return y+""},I}function m(y,g){var S=Math.max(-8,Math.min(8,Math.floor(Ks(g)/3)))*3,j=Math.pow(10,-S),w=d((y=xc(y),y.type="f",y),{suffix:JP[8+S/3]});return function(b){return w(j*b)}}return{format:d,formatPrefix:m}}var qd,Oj,wz;hZ({thousands:",",grouping:[3],currency:["$",""]});function hZ(e){return qd=dZ(e),Oj=qd.format,wz=qd.formatPrefix,qd}function pZ(e){return Math.max(0,-Ks(Math.abs(e)))}function mZ(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ks(t)/3)))*3-Ks(Math.abs(e)))}function yZ(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ks(t)-Ks(e))+1}function jz(e,t,n,r){var a=rS(e,t,n),s;switch(r=xc(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=mZ(a,l))&&(r.precision=s),wz(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=yZ(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=pZ(a))&&(r.precision=s-(r.type==="%")*2);break}}return Oj(r)}function Pa(e){var t=e.domain;return e.ticks=function(n){var r=t();return tS(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return jz(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,s=r.length-1,l=r[a],c=r[s],f,d,m=10;for(c<l&&(d=l,l=c,c=d,d=a,a=s,s=d);m-- >0;){if(d=nS(l,c,n),d===f)return r[a]=l,r[s]=c,t(r);if(d>0)l=Math.floor(l/d)*d,c=Math.ceil(c/d)*d;else if(d<0)l=Math.ceil(l*d)/d,c=Math.floor(c*d)/d;else break;f=d}return e},e}function qh(){var e=jj();return e.copy=function(){return nf(e,qh())},pr.apply(e,arguments),Pa(e)}function Az(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,zh),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Az(e).unknown(t)},e=arguments.length?Array.from(e,zh):[0,1],Pa(n)}function Oz(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],s=e[r],l;return s<a&&(l=n,n=r,r=l,l=a,a=s,s=l),e[n]=t.floor(a),e[r]=t.ceil(s),e}function eR(e){return Math.log(e)}function tR(e){return Math.exp(e)}function vZ(e){return-Math.log(-e)}function gZ(e){return-Math.exp(-e)}function xZ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function bZ(e){return e===10?xZ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function SZ(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 nR(e){return(t,n)=>-e(-t,n)}function _j(e){const t=e(eR,tR),n=t.domain;let r=10,a,s;function l(){return a=SZ(r),s=bZ(r),n()[0]<0?(a=nR(a),s=nR(s),e(vZ,gZ)):e(eR,tR),t}return t.base=function(c){return arguments.length?(r=+c,l()):r},t.domain=function(c){return arguments.length?(n(c),l()):n()},t.ticks=c=>{const f=n();let d=f[0],m=f[f.length-1];const y=m<d;y&&([d,m]=[m,d]);let g=a(d),S=a(m),j,w;const b=c==null?10:+c;let A=[];if(!(r%1)&&S-g<b){if(g=Math.floor(g),S=Math.ceil(S),d>0){for(;g<=S;++g)for(j=1;j<r;++j)if(w=g<0?j/s(-g):j*s(g),!(w<d)){if(w>m)break;A.push(w)}}else for(;g<=S;++g)for(j=r-1;j>=1;--j)if(w=g>0?j/s(-g):j*s(g),!(w<d)){if(w>m)break;A.push(w)}A.length*2<b&&(A=tS(d,m,b))}else A=tS(g,S,Math.min(S-g,b)).map(s);return y?A.reverse():A},t.tickFormat=(c,f)=>{if(c==null&&(c=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=xc(f)).precision==null&&(f.trim=!0),f=Oj(f)),c===1/0)return f;const d=Math.max(1,r*c/t.ticks().length);return m=>{let y=m/s(Math.round(a(m)));return y*r<r-.5&&(y*=r),y<=d?f(m):""}},t.nice=()=>n(Oz(n(),{floor:c=>s(Math.floor(a(c))),ceil:c=>s(Math.ceil(a(c)))})),t}function _z(){const e=_j(Fp()).domain([1,10]);return e.copy=()=>nf(e,_z()).base(e.base()),pr.apply(e,arguments),e}function rR(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function iR(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Tj(e){var t=1,n=e(rR(t),iR(t));return n.constant=function(r){return arguments.length?e(rR(t=+r),iR(t)):t},Pa(n)}function Tz(){var e=Tj(Fp());return e.copy=function(){return nf(e,Tz()).constant(e.constant())},pr.apply(e,arguments)}function aR(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function wZ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function jZ(e){return e<0?-e*e:e*e}function Ej(e){var t=e(bn,bn),n=1;function r(){return n===1?e(bn,bn):n===.5?e(wZ,jZ):e(aR(n),aR(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Pa(t)}function Nj(){var e=Ej(Fp());return e.copy=function(){return nf(e,Nj()).exponent(e.exponent())},pr.apply(e,arguments),e}function AZ(){return Nj.apply(null,arguments).exponent(.5)}function oR(e){return Math.sign(e)*e*e}function OZ(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Ez(){var e=jj(),t=[0,1],n=!1,r;function a(s){var l=OZ(e(s));return isNaN(l)?r:n?Math.round(l):l}return a.invert=function(s){return e.invert(oR(s))},a.domain=function(s){return arguments.length?(e.domain(s),a):e.domain()},a.range=function(s){return arguments.length?(e.range((t=Array.from(s,zh)).map(oR)),a):t.slice()},a.rangeRound=function(s){return a.range(s).round(!0)},a.round=function(s){return arguments.length?(n=!!s,a):n},a.clamp=function(s){return arguments.length?(e.clamp(s),a):e.clamp()},a.unknown=function(s){return arguments.length?(r=s,a):r},a.copy=function(){return Ez(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},pr.apply(a,arguments),Pa(a)}function Nz(){var e=[],t=[],n=[],r;function a(){var l=0,c=Math.max(1,t.length);for(n=new Array(c-1);++l<c;)n[l-1]=CW(e,l/c);return s}function s(l){return l==null||isNaN(l=+l)?r:t[ef(n,l)]}return s.invertExtent=function(l){var c=t.indexOf(l);return c<0?[NaN,NaN]:[c>0?n[c-1]:e[0],c<n.length?n[c]:e[e.length-1]]},s.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let c of l)c!=null&&!isNaN(c=+c)&&e.push(c);return e.sort(Sa),a()},s.range=function(l){return arguments.length?(t=Array.from(l),a()):t.slice()},s.unknown=function(l){return arguments.length?(r=l,s):r},s.quantiles=function(){return n.slice()},s.copy=function(){return Nz().domain(e).range(t).unknown(r)},pr.apply(s,arguments)}function Cz(){var e=0,t=1,n=1,r=[.5],a=[0,1],s;function l(f){return f!=null&&f<=f?a[ef(r,f,0,n)]:s}function c(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return l}return l.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,c()):[e,t]},l.range=function(f){return arguments.length?(n=(a=Array.from(f)).length-1,c()):a.slice()},l.invertExtent=function(f){var d=a.indexOf(f);return d<0?[NaN,NaN]:d<1?[e,r[0]]:d>=n?[r[n-1],t]:[r[d-1],r[d]]},l.unknown=function(f){return arguments.length&&(s=f),l},l.thresholds=function(){return r.slice()},l.copy=function(){return Cz().domain([e,t]).range(a).unknown(s)},pr.apply(Pa(l),arguments)}function Mz(){var e=[.5],t=[0,1],n,r=1;function a(s){return s!=null&&s<=s?t[ef(e,s,0,r)]:n}return a.domain=function(s){return arguments.length?(e=Array.from(s),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(s){return arguments.length?(t=Array.from(s),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(s){var l=t.indexOf(s);return[e[l-1],e[l]]},a.unknown=function(s){return arguments.length?(n=s,a):n},a.copy=function(){return Mz().domain(e).range(t).unknown(n)},pr.apply(a,arguments)}const l0=new Date,u0=new Date;function Yt(e,t,n,r){function a(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return a.floor=s=>(e(s=new Date(+s)),s),a.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),a.round=s=>{const l=a(s),c=a.ceil(s);return s-l<c-s?l:c},a.offset=(s,l)=>(t(s=new Date(+s),l==null?1:Math.floor(l)),s),a.range=(s,l,c)=>{const f=[];if(s=a.ceil(s),c=c==null?1:Math.floor(c),!(s<l)||!(c>0))return f;let d;do f.push(d=new Date(+s)),t(s,c),e(s);while(d<s&&s<l);return f},a.filter=s=>Yt(l=>{if(l>=l)for(;e(l),!s(l);)l.setTime(l-1)},(l,c)=>{if(l>=l)if(c<0)for(;++c<=0;)for(;t(l,-1),!s(l););else for(;--c>=0;)for(;t(l,1),!s(l););}),n&&(a.count=(s,l)=>(l0.setTime(+s),u0.setTime(+l),e(l0),e(u0),Math.floor(n(l0,u0))),a.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?a.filter(r?l=>r(l)%s===0:l=>a.count(0,l)%s===0):a)),a}const Ih=Yt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ih.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Yt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ih);Ih.range;const Ai=1e3,cr=Ai*60,Oi=cr*60,Mi=Oi*24,Cj=Mi*7,sR=Mi*30,c0=Mi*365,po=Yt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ai)},(e,t)=>(t-e)/Ai,e=>e.getUTCSeconds());po.range;const Mj=Yt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ai)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getMinutes());Mj.range;const Pj=Yt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getUTCMinutes());Pj.range;const Rj=Yt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ai-e.getMinutes()*cr)},(e,t)=>{e.setTime(+e+t*Oi)},(e,t)=>(t-e)/Oi,e=>e.getHours());Rj.range;const Dj=Yt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Oi)},(e,t)=>(t-e)/Oi,e=>e.getUTCHours());Dj.range;const rf=Yt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*cr)/Mi,e=>e.getDate()-1);rf.range;const Kp=Yt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Mi,e=>e.getUTCDate()-1);Kp.range;const Pz=Yt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Mi,e=>Math.floor(e/Mi));Pz.range;function Ro(e){return Yt(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())*cr)/Cj)}const Yp=Ro(0),Uh=Ro(1),_Z=Ro(2),TZ=Ro(3),Ys=Ro(4),EZ=Ro(5),NZ=Ro(6);Yp.range;Uh.range;_Z.range;TZ.range;Ys.range;EZ.range;NZ.range;function Do(e){return Yt(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)/Cj)}const Xp=Do(0),Vh=Do(1),CZ=Do(2),MZ=Do(3),Xs=Do(4),PZ=Do(5),RZ=Do(6);Xp.range;Vh.range;CZ.range;MZ.range;Xs.range;PZ.range;RZ.range;const kj=Yt(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());kj.range;const Lj=Yt(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());Lj.range;const Pi=Yt(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());Pi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Yt(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)});Pi.range;const Ri=Yt(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());Ri.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Yt(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)});Ri.range;function Rz(e,t,n,r,a,s){const l=[[po,1,Ai],[po,5,5*Ai],[po,15,15*Ai],[po,30,30*Ai],[s,1,cr],[s,5,5*cr],[s,15,15*cr],[s,30,30*cr],[a,1,Oi],[a,3,3*Oi],[a,6,6*Oi],[a,12,12*Oi],[r,1,Mi],[r,2,2*Mi],[n,1,Cj],[t,1,sR],[t,3,3*sR],[e,1,c0]];function c(d,m,y){const g=m<d;g&&([d,m]=[m,d]);const S=y&&typeof y.range=="function"?y:f(d,m,y),j=S?S.range(d,+m+1):[];return g?j.reverse():j}function f(d,m,y){const g=Math.abs(m-d)/y,S=gj(([,,b])=>b).right(l,g);if(S===l.length)return e.every(rS(d/c0,m/c0,y));if(S===0)return Ih.every(Math.max(rS(d,m,y),1));const[j,w]=l[g/l[S-1][2]<l[S][2]/g?S-1:S];return j.every(w)}return[c,f]}const[DZ,kZ]=Rz(Ri,Lj,Xp,Pz,Dj,Pj),[LZ,zZ]=Rz(Pi,kj,Yp,rf,Rj,Mj);function f0(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 d0(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 Cu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function $Z(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,s=e.days,l=e.shortDays,c=e.months,f=e.shortMonths,d=Mu(a),m=Pu(a),y=Mu(s),g=Pu(s),S=Mu(l),j=Pu(l),w=Mu(c),b=Pu(c),A=Mu(f),_=Pu(f),T={a:K,A:Q,b:ie,B:se,c:null,d:hR,e:hR,f:sQ,g:vQ,G:xQ,H:iQ,I:aQ,j:oQ,L:Dz,m:lQ,M:uQ,p:L,q:H,Q:yR,s:vR,S:cQ,u:fQ,U:dQ,V:hQ,w:pQ,W:mQ,x:null,X:null,y:yQ,Y:gQ,Z:bQ,"%":mR},C={a:re,A:fe,b:ve,B:je,c:null,d:pR,e:pR,f:AQ,g:DQ,G:LQ,H:SQ,I:wQ,j:jQ,L:Lz,m:OQ,M:_Q,p:ze,q:Xe,Q:yR,s:vR,S:TQ,u:EQ,U:NQ,V:CQ,w:MQ,W:PQ,x:null,X:null,y:RQ,Y:kQ,Z:zQ,"%":mR},O={a:B,A:I,b:z,B:F,c:X,d:fR,e:fR,f:eQ,g:cR,G:uR,H:dR,I:dR,j:WZ,L:JZ,m:XZ,M:ZZ,p:D,q:YZ,Q:nQ,s:rQ,S:QZ,u:VZ,U:HZ,V:GZ,w:UZ,W:FZ,x:Y,X:$,y:cR,Y:uR,Z:KZ,"%":tQ};T.x=E(n,T),T.X=E(r,T),T.c=E(t,T),C.x=E(n,C),C.X=E(r,C),C.c=E(t,C);function E(ce,Te){return function(Ne){var le=[],mt=-1,De=0,At=ce.length,Ot,un,mr;for(Ne instanceof Date||(Ne=new Date(+Ne));++mt<At;)ce.charCodeAt(mt)===37&&(le.push(ce.slice(De,mt)),(un=lR[Ot=ce.charAt(++mt)])!=null?Ot=ce.charAt(++mt):un=Ot==="e"?" ":"0",(mr=Te[Ot])&&(Ot=mr(Ne,un)),le.push(Ot),De=mt+1);return le.push(ce.slice(De,mt)),le.join("")}}function M(ce,Te){return function(Ne){var le=Cu(1900,void 0,1),mt=k(le,ce,Ne+="",0),De,At;if(mt!=Ne.length)return null;if("Q"in le)return new Date(le.Q);if("s"in le)return new Date(le.s*1e3+("L"in le?le.L:0));if(Te&&!("Z"in le)&&(le.Z=0),"p"in le&&(le.H=le.H%12+le.p*12),le.m===void 0&&(le.m="q"in le?le.q:0),"V"in le){if(le.V<1||le.V>53)return null;"w"in le||(le.w=1),"Z"in le?(De=d0(Cu(le.y,0,1)),At=De.getUTCDay(),De=At>4||At===0?Vh.ceil(De):Vh(De),De=Kp.offset(De,(le.V-1)*7),le.y=De.getUTCFullYear(),le.m=De.getUTCMonth(),le.d=De.getUTCDate()+(le.w+6)%7):(De=f0(Cu(le.y,0,1)),At=De.getDay(),De=At>4||At===0?Uh.ceil(De):Uh(De),De=rf.offset(De,(le.V-1)*7),le.y=De.getFullYear(),le.m=De.getMonth(),le.d=De.getDate()+(le.w+6)%7)}else("W"in le||"U"in le)&&("w"in le||(le.w="u"in le?le.u%7:"W"in le?1:0),At="Z"in le?d0(Cu(le.y,0,1)).getUTCDay():f0(Cu(le.y,0,1)).getDay(),le.m=0,le.d="W"in le?(le.w+6)%7+le.W*7-(At+5)%7:le.w+le.U*7-(At+6)%7);return"Z"in le?(le.H+=le.Z/100|0,le.M+=le.Z%100,d0(le)):f0(le)}}function k(ce,Te,Ne,le){for(var mt=0,De=Te.length,At=Ne.length,Ot,un;mt<De;){if(le>=At)return-1;if(Ot=Te.charCodeAt(mt++),Ot===37){if(Ot=Te.charAt(mt++),un=O[Ot in lR?Te.charAt(mt++):Ot],!un||(le=un(ce,Ne,le))<0)return-1}else if(Ot!=Ne.charCodeAt(le++))return-1}return le}function D(ce,Te,Ne){var le=d.exec(Te.slice(Ne));return le?(ce.p=m.get(le[0].toLowerCase()),Ne+le[0].length):-1}function B(ce,Te,Ne){var le=S.exec(Te.slice(Ne));return le?(ce.w=j.get(le[0].toLowerCase()),Ne+le[0].length):-1}function I(ce,Te,Ne){var le=y.exec(Te.slice(Ne));return le?(ce.w=g.get(le[0].toLowerCase()),Ne+le[0].length):-1}function z(ce,Te,Ne){var le=A.exec(Te.slice(Ne));return le?(ce.m=_.get(le[0].toLowerCase()),Ne+le[0].length):-1}function F(ce,Te,Ne){var le=w.exec(Te.slice(Ne));return le?(ce.m=b.get(le[0].toLowerCase()),Ne+le[0].length):-1}function X(ce,Te,Ne){return k(ce,t,Te,Ne)}function Y(ce,Te,Ne){return k(ce,n,Te,Ne)}function $(ce,Te,Ne){return k(ce,r,Te,Ne)}function K(ce){return l[ce.getDay()]}function Q(ce){return s[ce.getDay()]}function ie(ce){return f[ce.getMonth()]}function se(ce){return c[ce.getMonth()]}function L(ce){return a[+(ce.getHours()>=12)]}function H(ce){return 1+~~(ce.getMonth()/3)}function re(ce){return l[ce.getUTCDay()]}function fe(ce){return s[ce.getUTCDay()]}function ve(ce){return f[ce.getUTCMonth()]}function je(ce){return c[ce.getUTCMonth()]}function ze(ce){return a[+(ce.getUTCHours()>=12)]}function Xe(ce){return 1+~~(ce.getUTCMonth()/3)}return{format:function(ce){var Te=E(ce+="",T);return Te.toString=function(){return ce},Te},parse:function(ce){var Te=M(ce+="",!1);return Te.toString=function(){return ce},Te},utcFormat:function(ce){var Te=E(ce+="",C);return Te.toString=function(){return ce},Te},utcParse:function(ce){var Te=M(ce+="",!0);return Te.toString=function(){return ce},Te}}}var lR={"-":"",_:" ",0:"0"},Jt=/^\s*\d+/,BZ=/^%/,qZ=/[\\^$*+?|[\]().{}]/g;function Fe(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",s=a.length;return r+(s<n?new Array(n-s+1).join(t)+a:a)}function IZ(e){return e.replace(qZ,"\\$&")}function Mu(e){return new RegExp("^(?:"+e.map(IZ).join("|")+")","i")}function Pu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function UZ(e,t,n){var r=Jt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function VZ(e,t,n){var r=Jt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function HZ(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function GZ(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function FZ(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function uR(e,t,n){var r=Jt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function cR(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function KZ(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 YZ(e,t,n){var r=Jt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function XZ(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function fR(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function WZ(e,t,n){var r=Jt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function dR(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ZZ(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function QZ(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function JZ(e,t,n){var r=Jt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function eQ(e,t,n){var r=Jt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function tQ(e,t,n){var r=BZ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function nQ(e,t,n){var r=Jt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function rQ(e,t,n){var r=Jt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function hR(e,t){return Fe(e.getDate(),t,2)}function iQ(e,t){return Fe(e.getHours(),t,2)}function aQ(e,t){return Fe(e.getHours()%12||12,t,2)}function oQ(e,t){return Fe(1+rf.count(Pi(e),e),t,3)}function Dz(e,t){return Fe(e.getMilliseconds(),t,3)}function sQ(e,t){return Dz(e,t)+"000"}function lQ(e,t){return Fe(e.getMonth()+1,t,2)}function uQ(e,t){return Fe(e.getMinutes(),t,2)}function cQ(e,t){return Fe(e.getSeconds(),t,2)}function fQ(e){var t=e.getDay();return t===0?7:t}function dQ(e,t){return Fe(Yp.count(Pi(e)-1,e),t,2)}function kz(e){var t=e.getDay();return t>=4||t===0?Ys(e):Ys.ceil(e)}function hQ(e,t){return e=kz(e),Fe(Ys.count(Pi(e),e)+(Pi(e).getDay()===4),t,2)}function pQ(e){return e.getDay()}function mQ(e,t){return Fe(Uh.count(Pi(e)-1,e),t,2)}function yQ(e,t){return Fe(e.getFullYear()%100,t,2)}function vQ(e,t){return e=kz(e),Fe(e.getFullYear()%100,t,2)}function gQ(e,t){return Fe(e.getFullYear()%1e4,t,4)}function xQ(e,t){var n=e.getDay();return e=n>=4||n===0?Ys(e):Ys.ceil(e),Fe(e.getFullYear()%1e4,t,4)}function bQ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Fe(t/60|0,"0",2)+Fe(t%60,"0",2)}function pR(e,t){return Fe(e.getUTCDate(),t,2)}function SQ(e,t){return Fe(e.getUTCHours(),t,2)}function wQ(e,t){return Fe(e.getUTCHours()%12||12,t,2)}function jQ(e,t){return Fe(1+Kp.count(Ri(e),e),t,3)}function Lz(e,t){return Fe(e.getUTCMilliseconds(),t,3)}function AQ(e,t){return Lz(e,t)+"000"}function OQ(e,t){return Fe(e.getUTCMonth()+1,t,2)}function _Q(e,t){return Fe(e.getUTCMinutes(),t,2)}function TQ(e,t){return Fe(e.getUTCSeconds(),t,2)}function EQ(e){var t=e.getUTCDay();return t===0?7:t}function NQ(e,t){return Fe(Xp.count(Ri(e)-1,e),t,2)}function zz(e){var t=e.getUTCDay();return t>=4||t===0?Xs(e):Xs.ceil(e)}function CQ(e,t){return e=zz(e),Fe(Xs.count(Ri(e),e)+(Ri(e).getUTCDay()===4),t,2)}function MQ(e){return e.getUTCDay()}function PQ(e,t){return Fe(Vh.count(Ri(e)-1,e),t,2)}function RQ(e,t){return Fe(e.getUTCFullYear()%100,t,2)}function DQ(e,t){return e=zz(e),Fe(e.getUTCFullYear()%100,t,2)}function kQ(e,t){return Fe(e.getUTCFullYear()%1e4,t,4)}function LQ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Xs(e):Xs.ceil(e),Fe(e.getUTCFullYear()%1e4,t,4)}function zQ(){return"+0000"}function mR(){return"%"}function yR(e){return+e}function vR(e){return Math.floor(+e/1e3)}var Ss,$z,Bz;$Q({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 $Q(e){return Ss=$Z(e),$z=Ss.format,Ss.parse,Bz=Ss.utcFormat,Ss.utcParse,Ss}function BQ(e){return new Date(e)}function qQ(e){return e instanceof Date?+e:+new Date(+e)}function zj(e,t,n,r,a,s,l,c,f,d){var m=jj(),y=m.invert,g=m.domain,S=d(".%L"),j=d(":%S"),w=d("%I:%M"),b=d("%I %p"),A=d("%a %d"),_=d("%b %d"),T=d("%B"),C=d("%Y");function O(E){return(f(E)<E?S:c(E)<E?j:l(E)<E?w:s(E)<E?b:r(E)<E?a(E)<E?A:_:n(E)<E?T:C)(E)}return m.invert=function(E){return new Date(y(E))},m.domain=function(E){return arguments.length?g(Array.from(E,qQ)):g().map(BQ)},m.ticks=function(E){var M=g();return e(M[0],M[M.length-1],E??10)},m.tickFormat=function(E,M){return M==null?O:d(M)},m.nice=function(E){var M=g();return(!E||typeof E.range!="function")&&(E=t(M[0],M[M.length-1],E??10)),E?g(Oz(M,E)):m},m.copy=function(){return nf(m,zj(e,t,n,r,a,s,l,c,f,d))},m}function IQ(){return pr.apply(zj(LZ,zZ,Pi,kj,Yp,rf,Rj,Mj,po,$z).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function UQ(){return pr.apply(zj(DZ,kZ,Ri,Lj,Xp,Kp,Dj,Pj,po,Bz).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Wp(){var e=0,t=1,n,r,a,s,l=bn,c=!1,f;function d(y){return y==null||isNaN(y=+y)?f:l(a===0?.5:(y=(s(y)-n)*a,c?Math.max(0,Math.min(1,y)):y))}d.domain=function(y){return arguments.length?([e,t]=y,n=s(e=+e),r=s(t=+t),a=n===r?0:1/(r-n),d):[e,t]},d.clamp=function(y){return arguments.length?(c=!!y,d):c},d.interpolator=function(y){return arguments.length?(l=y,d):l};function m(y){return function(g){var S,j;return arguments.length?([S,j]=g,l=y(S,j),d):[l(0),l(1)]}}return d.range=m(Ol),d.rangeRound=m(wj),d.unknown=function(y){return arguments.length?(f=y,d):f},function(y){return s=y,n=y(e),r=y(t),a=n===r?0:1/(r-n),d}}function Ra(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function qz(){var e=Pa(Wp()(bn));return e.copy=function(){return Ra(e,qz())},zi.apply(e,arguments)}function Iz(){var e=_j(Wp()).domain([1,10]);return e.copy=function(){return Ra(e,Iz()).base(e.base())},zi.apply(e,arguments)}function Uz(){var e=Tj(Wp());return e.copy=function(){return Ra(e,Uz()).constant(e.constant())},zi.apply(e,arguments)}function $j(){var e=Ej(Wp());return e.copy=function(){return Ra(e,$j()).exponent(e.exponent())},zi.apply(e,arguments)}function VQ(){return $j.apply(null,arguments).exponent(.5)}function Vz(){var e=[],t=bn;function n(r){if(r!=null&&!isNaN(r=+r))return t((ef(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let a of r)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(Sa),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,s)=>NW(e,s/r))},n.copy=function(){return Vz(t).domain(e)},zi.apply(n,arguments)}function Zp(){var e=0,t=.5,n=1,r=1,a,s,l,c,f,d=bn,m,y=!1,g;function S(w){return isNaN(w=+w)?g:(w=.5+((w=+m(w))-s)*(r*w<r*s?c:f),d(y?Math.max(0,Math.min(1,w)):w))}S.domain=function(w){return arguments.length?([e,t,n]=w,a=m(e=+e),s=m(t=+t),l=m(n=+n),c=a===s?0:.5/(s-a),f=s===l?0:.5/(l-s),r=s<a?-1:1,S):[e,t,n]},S.clamp=function(w){return arguments.length?(y=!!w,S):y},S.interpolator=function(w){return arguments.length?(d=w,S):d};function j(w){return function(b){var A,_,T;return arguments.length?([A,_,T]=b,d=tZ(w,[A,_,T]),S):[d(0),d(.5),d(1)]}}return S.range=j(Ol),S.rangeRound=j(wj),S.unknown=function(w){return arguments.length?(g=w,S):g},function(w){return m=w,a=w(e),s=w(t),l=w(n),c=a===s?0:.5/(s-a),f=s===l?0:.5/(l-s),r=s<a?-1:1,S}}function Hz(){var e=Pa(Zp()(bn));return e.copy=function(){return Ra(e,Hz())},zi.apply(e,arguments)}function Gz(){var e=_j(Zp()).domain([.1,1,10]);return e.copy=function(){return Ra(e,Gz()).base(e.base())},zi.apply(e,arguments)}function Fz(){var e=Tj(Zp());return e.copy=function(){return Ra(e,Fz()).constant(e.constant())},zi.apply(e,arguments)}function Bj(){var e=Ej(Zp());return e.copy=function(){return Ra(e,Bj()).exponent(e.exponent())},zi.apply(e,arguments)}function HQ(){return Bj.apply(null,arguments).exponent(.5)}const gR=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:mc,scaleDiverging:Hz,scaleDivergingLog:Gz,scaleDivergingPow:Bj,scaleDivergingSqrt:HQ,scaleDivergingSymlog:Fz,scaleIdentity:Az,scaleImplicit:iS,scaleLinear:qh,scaleLog:_z,scaleOrdinal:xj,scalePoint:Wu,scalePow:Nj,scaleQuantile:Nz,scaleQuantize:Cz,scaleRadial:Ez,scaleSequential:qz,scaleSequentialLog:Iz,scaleSequentialPow:$j,scaleSequentialQuantile:Vz,scaleSequentialSqrt:VQ,scaleSequentialSymlog:Uz,scaleSqrt:AZ,scaleSymlog:Tz,scaleThreshold:Mz,scaleTime:IQ,scaleUtc:UQ,tickFormat:jz},Symbol.toStringTag,{value:"Module"}));var h0,xR;function Qp(){if(xR)return h0;xR=1;var e=Sl();function t(n,r,a){for(var s=-1,l=n.length;++s<l;){var c=n[s],f=r(c);if(f!=null&&(d===void 0?f===f&&!e(f):a(f,d)))var d=f,m=c}return m}return h0=t,h0}var p0,bR;function Kz(){if(bR)return p0;bR=1;function e(t,n){return t>n}return p0=e,p0}var m0,SR;function GQ(){if(SR)return m0;SR=1;var e=Qp(),t=Kz(),n=Al();function r(a){return a&&a.length?e(a,n,t):void 0}return m0=r,m0}var FQ=GQ();const ga=nt(FQ);var y0,wR;function Yz(){if(wR)return y0;wR=1;function e(t,n){return t<n}return y0=e,y0}var v0,jR;function KQ(){if(jR)return v0;jR=1;var e=Qp(),t=Yz(),n=Al();function r(a){return a&&a.length?e(a,n,t):void 0}return v0=r,v0}var YQ=KQ();const Jp=nt(YQ);var g0,AR;function XQ(){if(AR)return g0;AR=1;var e=tj(),t=ei(),n=rz(),r=Nn();function a(s,l){var c=r(s)?e:n;return c(s,t(l,3))}return g0=a,g0}var x0,OR;function WQ(){if(OR)return x0;OR=1;var e=tz(),t=XQ();function n(r,a){return e(t(r,a),1)}return x0=n,x0}var ZQ=WQ();const QQ=nt(ZQ);var b0,_R;function JQ(){if(_R)return b0;_R=1;var e=pj();function t(n,r){return e(n,r)}return b0=t,b0}var eJ=JQ();const _o=nt(eJ);var _l=1e9,tJ={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Ij,wt=!0,hr="[DecimalError] ",bo=hr+"Invalid argument: ",qj=hr+"Exponent out of range: ",Tl=Math.floor,oo=Math.pow,nJ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Vn,Zt=1e7,xt=7,Xz=9007199254740991,Hh=Tl(Xz/xt),pe={};pe.absoluteValue=pe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};pe.comparedTo=pe.cmp=function(e){var t,n,r,a,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(r=s.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return r===a?0:r>a^s.s<0?1:-1};pe.decimalPlaces=pe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*xt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};pe.dividedBy=pe.div=function(e){return Ei(this,new this.constructor(e))};pe.dividedToIntegerBy=pe.idiv=function(e){var t=this,n=t.constructor;return ft(Ei(t,new n(e),0,1),n.precision)};pe.equals=pe.eq=function(e){return!this.cmp(e)};pe.exponent=function(){return qt(this)};pe.greaterThan=pe.gt=function(e){return this.cmp(e)>0};pe.greaterThanOrEqualTo=pe.gte=function(e){return this.cmp(e)>=0};pe.isInteger=pe.isint=function(){return this.e>this.d.length-2};pe.isNegative=pe.isneg=function(){return this.s<0};pe.isPositive=pe.ispos=function(){return this.s>0};pe.isZero=function(){return this.s===0};pe.lessThan=pe.lt=function(e){return this.cmp(e)<0};pe.lessThanOrEqualTo=pe.lte=function(e){return this.cmp(e)<1};pe.logarithm=pe.log=function(e){var t,n=this,r=n.constructor,a=r.precision,s=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Vn))throw Error(hr+"NaN");if(n.s<1)throw Error(hr+(n.s?"NaN":"-Infinity"));return n.eq(Vn)?new r(0):(wt=!1,t=Ei(bc(n,s),bc(e,s),s),wt=!0,ft(t,a))};pe.minus=pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Qz(t,e):Wz(t,(e.s=-e.s,e))};pe.modulo=pe.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(hr+"NaN");return n.s?(wt=!1,t=Ei(n,e,0,1).times(e),wt=!0,n.minus(t)):ft(new r(n),a)};pe.naturalExponential=pe.exp=function(){return Zz(this)};pe.naturalLogarithm=pe.ln=function(){return bc(this)};pe.negated=pe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};pe.plus=pe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Wz(t,e):Qz(t,(e.s=-e.s,e))};pe.precision=pe.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(bo+e);if(t=qt(a)+1,r=a.d.length-1,n=r*xt+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};pe.squareRoot=pe.sqrt=function(){var e,t,n,r,a,s,l,c=this,f=c.constructor;if(c.s<1){if(!c.s)return new f(0);throw Error(hr+"NaN")}for(e=qt(c),wt=!1,a=Math.sqrt(+c),a==0||a==1/0?(t=Ir(c.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Tl((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 f(t)):r=new f(a.toString()),n=f.precision,a=l=n+3;;)if(s=r,r=s.plus(Ei(c,s,l+2)).times(.5),Ir(s.d).slice(0,l)===(t=Ir(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),a==l&&t=="4999"){if(ft(s,n+1,0),s.times(s).eq(c)){r=s;break}}else if(t!="9999")break;l+=4}return wt=!0,ft(r,n)};pe.times=pe.mul=function(e){var t,n,r,a,s,l,c,f,d,m=this,y=m.constructor,g=m.d,S=(e=new y(e)).d;if(!m.s||!e.s)return new y(0);for(e.s*=m.s,n=m.e+e.e,f=g.length,d=S.length,f<d&&(s=g,g=S,S=s,l=f,f=d,d=l),s=[],l=f+d,r=l;r--;)s.push(0);for(r=d;--r>=0;){for(t=0,a=f+r;a>r;)c=s[a]+S[r]*g[a-r-1]+t,s[a--]=c%Zt|0,t=c/Zt|0;s[a]=(s[a]+t)%Zt|0}for(;!s[--l];)s.pop();return t?++n:s.shift(),e.d=s,e.e=n,wt?ft(e,y.precision):e};pe.toDecimalPlaces=pe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Xr(e,0,_l),t===void 0?t=r.rounding:Xr(t,0,8),ft(n,e+qt(n)+1,t))};pe.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=To(r,!0):(Xr(e,0,_l),t===void 0?t=a.rounding:Xr(t,0,8),r=ft(new a(r),e+1,t),n=To(r,!0,e+1)),n};pe.toFixed=function(e,t){var n,r,a=this,s=a.constructor;return e===void 0?To(a):(Xr(e,0,_l),t===void 0?t=s.rounding:Xr(t,0,8),r=ft(new s(a),e+qt(a)+1,t),n=To(r.abs(),!1,e+qt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};pe.toInteger=pe.toint=function(){var e=this,t=e.constructor;return ft(new t(e),qt(e)+1,t.rounding)};pe.toNumber=function(){return+this};pe.toPower=pe.pow=function(e){var t,n,r,a,s,l,c=this,f=c.constructor,d=12,m=+(e=new f(e));if(!e.s)return new f(Vn);if(c=new f(c),!c.s){if(e.s<1)throw Error(hr+"Infinity");return c}if(c.eq(Vn))return c;if(r=f.precision,e.eq(Vn))return ft(c,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=c.s,l){if((n=m<0?-m:m)<=Xz){for(a=new f(Vn),t=Math.ceil(r/xt+4),wt=!1;n%2&&(a=a.times(c),ER(a.d,t)),n=Tl(n/2),n!==0;)c=c.times(c),ER(c.d,t);return wt=!0,e.s<0?new f(Vn).div(a):ft(a,r)}}else if(s<0)throw Error(hr+"NaN");return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,wt=!1,a=e.times(bc(c,r+d)),wt=!0,a=Zz(a),a.s=s,a};pe.toPrecision=function(e,t){var n,r,a=this,s=a.constructor;return e===void 0?(n=qt(a),r=To(a,n<=s.toExpNeg||n>=s.toExpPos)):(Xr(e,1,_l),t===void 0?t=s.rounding:Xr(t,0,8),a=ft(new s(a),e,t),n=qt(a),r=To(a,e<=n||n<=s.toExpNeg,e)),r};pe.toSignificantDigits=pe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Xr(e,1,_l),t===void 0?t=r.rounding:Xr(t,0,8)),ft(new r(n),e,t)};pe.toString=pe.valueOf=pe.val=pe.toJSON=pe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=qt(e),n=e.constructor;return To(e,t<=n.toExpNeg||t>=n.toExpPos)};function Wz(e,t){var n,r,a,s,l,c,f,d,m=e.constructor,y=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),wt?ft(t,y):t;if(f=e.d,d=t.d,l=e.e,a=t.e,f=f.slice(),s=l-a,s){for(s<0?(r=f,s=-s,c=d.length):(r=d,a=l,c=f.length),l=Math.ceil(y/xt),c=l>c?l+1:c+1,s>c&&(s=c,r.length=1),r.reverse();s--;)r.push(0);r.reverse()}for(c=f.length,s=d.length,c-s<0&&(s=c,r=d,d=f,f=r),n=0;s;)n=(f[--s]=f[s]+d[s]+n)/Zt|0,f[s]%=Zt;for(n&&(f.unshift(n),++a),c=f.length;f[--c]==0;)f.pop();return t.d=f,t.e=a,wt?ft(t,y):t}function Xr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(bo+e)}function Ir(e){var t,n,r,a=e.length-1,s="",l=e[0];if(a>0){for(s+=l,t=1;t<a;t++)r=e[t]+"",n=xt-r.length,n&&(s+=ma(n)),s+=r;l=e[t],r=l+"",n=xt-r.length,n&&(s+=ma(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return s+l}var Ei=(function(){function e(r,a){var s,l=0,c=r.length;for(r=r.slice();c--;)s=r[c]*a+l,r[c]=s%Zt|0,l=s/Zt|0;return l&&r.unshift(l),r}function t(r,a,s,l){var c,f;if(s!=l)f=s>l?1:-1;else for(c=f=0;c<s;c++)if(r[c]!=a[c]){f=r[c]>a[c]?1:-1;break}return f}function n(r,a,s){for(var l=0;s--;)r[s]-=l,l=r[s]<a[s]?1:0,r[s]=l*Zt+r[s]-a[s];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,s,l){var c,f,d,m,y,g,S,j,w,b,A,_,T,C,O,E,M,k,D=r.constructor,B=r.s==a.s?1:-1,I=r.d,z=a.d;if(!r.s)return new D(r);if(!a.s)throw Error(hr+"Division by zero");for(f=r.e-a.e,M=z.length,O=I.length,S=new D(B),j=S.d=[],d=0;z[d]==(I[d]||0);)++d;if(z[d]>(I[d]||0)&&--f,s==null?_=s=D.precision:l?_=s+(qt(r)-qt(a))+1:_=s,_<0)return new D(0);if(_=_/xt+2|0,d=0,M==1)for(m=0,z=z[0],_++;(d<O||m)&&_--;d++)T=m*Zt+(I[d]||0),j[d]=T/z|0,m=T%z|0;else{for(m=Zt/(z[0]+1)|0,m>1&&(z=e(z,m),I=e(I,m),M=z.length,O=I.length),C=M,w=I.slice(0,M),b=w.length;b<M;)w[b++]=0;k=z.slice(),k.unshift(0),E=z[0],z[1]>=Zt/2&&++E;do m=0,c=t(z,w,M,b),c<0?(A=w[0],M!=b&&(A=A*Zt+(w[1]||0)),m=A/E|0,m>1?(m>=Zt&&(m=Zt-1),y=e(z,m),g=y.length,b=w.length,c=t(y,w,g,b),c==1&&(m--,n(y,M<g?k:z,g))):(m==0&&(c=m=1),y=z.slice()),g=y.length,g<b&&y.unshift(0),n(w,y,b),c==-1&&(b=w.length,c=t(z,w,M,b),c<1&&(m++,n(w,M<b?k:z,b))),b=w.length):c===0&&(m++,w=[0]),j[d++]=m,c&&w[0]?w[b++]=I[C]||0:(w=[I[C]],b=1);while((C++<O||w[0]!==void 0)&&_--)}return j[0]||j.shift(),S.e=f,ft(S,l?s+qt(S)+1:s)}})();function Zz(e,t){var n,r,a,s,l,c,f=0,d=0,m=e.constructor,y=m.precision;if(qt(e)>16)throw Error(qj+qt(e));if(!e.s)return new m(Vn);for(wt=!1,c=y,l=new m(.03125);e.abs().gte(.1);)e=e.times(l),d+=5;for(r=Math.log(oo(2,d))/Math.LN10*2+5|0,c+=r,n=a=s=new m(Vn),m.precision=c;;){if(a=ft(a.times(e),c),n=n.times(++f),l=s.plus(Ei(a,n,c)),Ir(l.d).slice(0,c)===Ir(s.d).slice(0,c)){for(;d--;)s=ft(s.times(s),c);return m.precision=y,t==null?(wt=!0,ft(s,y)):s}s=l}}function qt(e){for(var t=e.e*xt,n=e.d[0];n>=10;n/=10)t++;return t}function S0(e,t,n){if(t>e.LN10.sd())throw wt=!0,n&&(e.precision=n),Error(hr+"LN10 precision limit exceeded");return ft(new e(e.LN10),t)}function ma(e){for(var t="";e--;)t+="0";return t}function bc(e,t){var n,r,a,s,l,c,f,d,m,y=1,g=10,S=e,j=S.d,w=S.constructor,b=w.precision;if(S.s<1)throw Error(hr+(S.s?"NaN":"-Infinity"));if(S.eq(Vn))return new w(0);if(t==null?(wt=!1,d=b):d=t,S.eq(10))return t==null&&(wt=!0),S0(w,d);if(d+=g,w.precision=d,n=Ir(j),r=n.charAt(0),s=qt(S),Math.abs(s)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)S=S.times(e),n=Ir(S.d),r=n.charAt(0),y++;s=qt(S),r>1?(S=new w("0."+n),s++):S=new w(r+"."+n.slice(1))}else return f=S0(w,d+2,b).times(s+""),S=bc(new w(r+"."+n.slice(1)),d-g).plus(f),w.precision=b,t==null?(wt=!0,ft(S,b)):S;for(c=l=S=Ei(S.minus(Vn),S.plus(Vn),d),m=ft(S.times(S),d),a=3;;){if(l=ft(l.times(m),d),f=c.plus(Ei(l,new w(a),d)),Ir(f.d).slice(0,d)===Ir(c.d).slice(0,d))return c=c.times(2),s!==0&&(c=c.plus(S0(w,d+2,b).times(s+""))),c=Ei(c,new w(y),d),w.precision=b,t==null?(wt=!0,ft(c,b)):c;c=f,a+=2}}function TR(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=Tl(n/xt),e.d=[],r=(n+1)%xt,n<0&&(r+=xt),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=xt;r<a;)e.d.push(+t.slice(r,r+=xt));t=t.slice(r),r=xt-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),wt&&(e.e>Hh||e.e<-Hh))throw Error(qj+n)}else e.s=0,e.e=0,e.d=[0];return e}function ft(e,t,n){var r,a,s,l,c,f,d,m,y=e.d;for(l=1,s=y[0];s>=10;s/=10)l++;if(r=t-l,r<0)r+=xt,a=t,d=y[m=0];else{if(m=Math.ceil((r+1)/xt),s=y.length,m>=s)return e;for(d=s=y[m],l=1;s>=10;s/=10)l++;r%=xt,a=r-xt+l}if(n!==void 0&&(s=oo(10,l-a-1),c=d/s%10|0,f=t<0||y[m+1]!==void 0||d%s,f=n<4?(c||f)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||f||n==6&&(r>0?a>0?d/oo(10,l-a):0:y[m-1])%10&1||n==(e.s<0?8:7))),t<1||!y[0])return f?(s=qt(e),y.length=1,t=t-s-1,y[0]=oo(10,(xt-t%xt)%xt),e.e=Tl(-t/xt)||0):(y.length=1,y[0]=e.e=e.s=0),e;if(r==0?(y.length=m,s=1,m--):(y.length=m+1,s=oo(10,xt-r),y[m]=a>0?(d/oo(10,l-a)%oo(10,a)|0)*s:0),f)for(;;)if(m==0){(y[0]+=s)==Zt&&(y[0]=1,++e.e);break}else{if(y[m]+=s,y[m]!=Zt)break;y[m--]=0,s=1}for(r=y.length;y[--r]===0;)y.pop();if(wt&&(e.e>Hh||e.e<-Hh))throw Error(qj+qt(e));return e}function Qz(e,t){var n,r,a,s,l,c,f,d,m,y,g=e.constructor,S=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),wt?ft(t,S):t;if(f=e.d,y=t.d,r=t.e,d=e.e,f=f.slice(),l=d-r,l){for(m=l<0,m?(n=f,l=-l,c=y.length):(n=y,r=d,c=f.length),a=Math.max(Math.ceil(S/xt),c)+2,l>a&&(l=a,n.length=1),n.reverse(),a=l;a--;)n.push(0);n.reverse()}else{for(a=f.length,c=y.length,m=a<c,m&&(c=a),a=0;a<c;a++)if(f[a]!=y[a]){m=f[a]<y[a];break}l=0}for(m&&(n=f,f=y,y=n,t.s=-t.s),c=f.length,a=y.length-c;a>0;--a)f[c++]=0;for(a=y.length;a>l;){if(f[--a]<y[a]){for(s=a;s&&f[--s]===0;)f[s]=Zt-1;--f[s],f[a]+=Zt}f[a]-=y[a]}for(;f[--c]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,wt?ft(t,S):t):new g(0)}function To(e,t,n){var r,a=qt(e),s=Ir(e.d),l=s.length;return t?(n&&(r=n-l)>0?s=s.charAt(0)+"."+s.slice(1)+ma(r):l>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(a<0?"e":"e+")+a):a<0?(s="0."+ma(-a-1)+s,n&&(r=n-l)>0&&(s+=ma(r))):a>=l?(s+=ma(a+1-l),n&&(r=n-a-1)>0&&(s=s+"."+ma(r))):((r=a+1)<l&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-l)>0&&(a+1===l&&(s+="."),s+=ma(r))),e.s<0?"-"+s:s}function ER(e,t){if(e.length>t)return e.length=t,!0}function Jz(e){var t,n,r;function a(s){var l=this;if(!(l instanceof a))return new a(s);if(l.constructor=a,s instanceof a){l.s=s.s,l.e=s.e,l.d=(s=s.d)?s.slice():s;return}if(typeof s=="number"){if(s*0!==0)throw Error(bo+s);if(s>0)l.s=1;else if(s<0)s=-s,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(s===~~s&&s<1e7){l.e=0,l.d=[s];return}return TR(l,s.toString())}else if(typeof s!="string")throw Error(bo+s);if(s.charCodeAt(0)===45?(s=s.slice(1),l.s=-1):l.s=1,nJ.test(s))TR(l,s);else throw Error(bo+s)}if(a.prototype=pe,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=Jz,a.config=a.set=rJ,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 rJ(e){if(!e||typeof e!="object")throw Error(hr+"Object expected");var t,n,r,a=["precision",1,_l,"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(Tl(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(bo+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(bo+n+": "+r);return this}var Ij=Jz(tJ);Vn=new Ij(1);const ot=Ij;function iJ(e){return lJ(e)||sJ(e)||oJ(e)||aJ()}function aJ(){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 oJ(e,t){if(e){if(typeof e=="string")return lS(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 lS(e,t)}}function sJ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function lJ(e){if(Array.isArray(e))return lS(e)}function lS(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 uJ=function(t){return t},e$={},t$=function(t){return t===e$},NR=function(t){return function n(){return arguments.length===0||arguments.length===1&&t$(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},cJ=function e(t,n){return t===1?n:NR(function(){for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];var l=a.filter(function(c){return c!==e$}).length;return l>=t?n.apply(void 0,a):e(t-l,NR(function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var m=a.map(function(y){return t$(y)?f.shift():y});return n.apply(void 0,iJ(m).concat(f))}))})},em=function(t){return cJ(t.length,t)},uS=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},fJ=em(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),dJ=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return uJ;var a=n.reverse(),s=a[0],l=a.slice(1);return function(){return l.reduce(function(c,f){return f(c)},s.apply(void 0,arguments))}},cS=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},n$=function(t){var n=null,r=null;return function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return n&&s.every(function(c,f){return c===n[f]})||(n=s,r=t.apply(void 0,s)),r}};function hJ(e){var t;return e===0?t=1:t=Math.floor(new ot(e).abs().log(10).toNumber())+1,t}function pJ(e,t,n){for(var r=new ot(e),a=0,s=[];r.lt(t)&&a<1e5;)s.push(r.toNumber()),r=r.add(n),a++;return s}var mJ=em(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),yJ=em(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),vJ=em(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const tm={rangeStep:pJ,getDigitCount:hJ,interpolateNumber:mJ,uninterpolateNumber:yJ,uninterpolateTruncation:vJ};function fS(e){return bJ(e)||xJ(e)||r$(e)||gJ()}function gJ(){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 xJ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function bJ(e){if(Array.isArray(e))return dS(e)}function Sc(e,t){return jJ(e)||wJ(e,t)||r$(e,t)||SJ()}function SJ(){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 r$(e,t){if(e){if(typeof e=="string")return dS(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 dS(e,t)}}function dS(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 wJ(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,s=void 0;try{for(var l=e[Symbol.iterator](),c;!(r=(c=l.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(f){a=!0,s=f}finally{try{!r&&l.return!=null&&l.return()}finally{if(a)throw s}}return n}}function jJ(e){if(Array.isArray(e))return e}function i$(e){var t=Sc(e,2),n=t[0],r=t[1],a=n,s=r;return n>r&&(a=r,s=n),[a,s]}function a$(e,t,n){if(e.lte(0))return new ot(0);var r=tm.getDigitCount(e.toNumber()),a=new ot(10).pow(r),s=e.div(a),l=r!==1?.05:.1,c=new ot(Math.ceil(s.div(l).toNumber())).add(n).mul(l),f=c.mul(a);return t?f:new ot(Math.ceil(f))}function AJ(e,t,n){var r=1,a=new ot(e);if(!a.isint()&&n){var s=Math.abs(e);s<1?(r=new ot(10).pow(tm.getDigitCount(e)-1),a=new ot(Math.floor(a.div(r).toNumber())).mul(r)):s>1&&(a=new ot(Math.floor(e)))}else e===0?a=new ot(Math.floor((t-1)/2)):n||(a=new ot(Math.floor(e)));var l=Math.floor((t-1)/2),c=dJ(fJ(function(f){return a.add(new ot(f-l).mul(r)).toNumber()}),uS);return c(0,t)}function o$(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 ot(0),tickMin:new ot(0),tickMax:new ot(0)};var s=a$(new ot(t).sub(e).div(n-1),r,a),l;e<=0&&t>=0?l=new ot(0):(l=new ot(e).add(t).div(2),l=l.sub(new ot(l).mod(s)));var c=Math.ceil(l.sub(e).div(s).toNumber()),f=Math.ceil(new ot(t).sub(l).div(s).toNumber()),d=c+f+1;return d>n?o$(e,t,n,r,a+1):(d<n&&(f=t>0?f+(n-d):f,c=t>0?c:c+(n-d)),{step:s,tickMin:l.sub(new ot(c).mul(s)),tickMax:l.add(new ot(f).mul(s))})}function OJ(e){var t=Sc(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=Math.max(a,2),c=i$([n,r]),f=Sc(c,2),d=f[0],m=f[1];if(d===-1/0||m===1/0){var y=m===1/0?[d].concat(fS(uS(0,a-1).map(function(){return 1/0}))):[].concat(fS(uS(0,a-1).map(function(){return-1/0})),[m]);return n>r?cS(y):y}if(d===m)return AJ(d,a,s);var g=o$(d,m,l,s),S=g.step,j=g.tickMin,w=g.tickMax,b=tm.rangeStep(j,w.add(new ot(.1).mul(S)),S);return n>r?cS(b):b}function _J(e,t){var n=Sc(e,2),r=n[0],a=n[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=i$([r,a]),c=Sc(l,2),f=c[0],d=c[1];if(f===-1/0||d===1/0)return[r,a];if(f===d)return[f];var m=Math.max(t,2),y=a$(new ot(d).sub(f).div(m-1),s,0),g=[].concat(fS(tm.rangeStep(new ot(f),new ot(d).sub(new ot(.99).mul(y)),y)),[d]);return r>a?cS(g):g}var TJ=n$(OJ),EJ=n$(_J),NJ="Invariant failed";function Eo(e,t){throw new Error(NJ)}var CJ=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ws(e){"@babel/helpers - typeof";return Ws=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},Ws(e)}function Gh(){return Gh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gh.apply(this,arguments)}function MJ(e,t){return kJ(e)||DJ(e,t)||RJ(e,t)||PJ()}function PJ(){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 RJ(e,t){if(e){if(typeof e=="string")return CR(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 CR(e,t)}}function CR(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 DJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function kJ(e){if(Array.isArray(e))return e}function LJ(e,t){if(e==null)return{};var n=zJ(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zJ(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 $J(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u$(r.key),r)}}function qJ(e,t,n){return t&&BJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function IJ(e,t,n){return t=Fh(t),UJ(e,s$()?Reflect.construct(t,n||[],Fh(e).constructor):t.apply(e,n))}function UJ(e,t){if(t&&(Ws(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VJ(e)}function VJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s$=function(){return!!e})()}function Fh(e){return Fh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fh(e)}function HJ(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&&hS(e,t)}function hS(e,t){return hS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},hS(e,t)}function l$(e,t,n){return t=u$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u$(e){var t=GJ(e,"string");return Ws(t)=="symbol"?t:t+""}function GJ(e,t){if(Ws(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ws(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var af=(function(e){function t(){return $J(this,t),IJ(this,t,arguments)}return HJ(t,e),qJ(t,[{key:"render",value:function(){var r=this.props,a=r.offset,s=r.layout,l=r.width,c=r.dataKey,f=r.data,d=r.dataPointFormatter,m=r.xAxis,y=r.yAxis,g=LJ(r,CJ),S=Se(g,!1);this.props.direction==="x"&&m.type!=="number"&&Eo();var j=f.map(function(w){var b=d(w,c),A=b.x,_=b.y,T=b.value,C=b.errorVal;if(!C)return null;var O=[],E,M;if(Array.isArray(C)){var k=MJ(C,2);E=k[0],M=k[1]}else E=M=C;if(s==="vertical"){var D=m.scale,B=_+a,I=B+l,z=B-l,F=D(T-E),X=D(T+M);O.push({x1:X,y1:I,x2:X,y2:z}),O.push({x1:F,y1:B,x2:X,y2:B}),O.push({x1:F,y1:I,x2:F,y2:z})}else if(s==="horizontal"){var Y=y.scale,$=A+a,K=$-l,Q=$+l,ie=Y(T-E),se=Y(T+M);O.push({x1:K,y1:se,x2:Q,y2:se}),O.push({x1:$,y1:ie,x2:$,y2:se}),O.push({x1:K,y1:ie,x2:Q,y2:ie})}return q.createElement(qe,Gh({className:"recharts-errorBar",key:"bar-".concat(O.map(function(L){return"".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))},S),O.map(function(L){return q.createElement("line",Gh({},L,{key:"line-".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))}))});return q.createElement(qe,{className:"recharts-errorBars"},j)}}])})(q.Component);l$(af,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});l$(af,"displayName","ErrorBar");function wc(e){"@babel/helpers - typeof";return wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wc(e)}function MR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MR(Object(n),!0).forEach(function(r){FJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FJ(e,t,n){return t=KJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KJ(e){var t=YJ(e,"string");return wc(t)=="symbol"?t:t+""}function YJ(e,t){if(wc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var c$=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,s=t.legendContent,l=In(n,Ls);if(!l)return null;var c=Ls.defaultProps,f=c!==void 0?eo(eo({},c),l.props):{},d;return l.props&&l.props.payload?d=l.props&&l.props.payload:s==="children"?d=(r||[]).reduce(function(m,y){var g=y.item,S=y.props,j=S.sectors||S.data||[];return m.concat(j.map(function(w){return{type:l.props.iconType||g.props.legendType,value:w.name,color:w.fill,payload:w}}))},[]):d=(r||[]).map(function(m){var y=m.item,g=y.type.defaultProps,S=g!==void 0?eo(eo({},g),y.props):{},j=S.dataKey,w=S.name,b=S.legendType,A=S.hide;return{inactive:A,dataKey:j,type:f.iconType||b||"square",color:Uj(y),value:w||j,payload:S}}),eo(eo(eo({},f),Ls.getWithHeight(l,a)),{},{payload:d,item:l})};function jc(e){"@babel/helpers - typeof";return jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jc(e)}function PR(e){return QJ(e)||ZJ(e)||WJ(e)||XJ()}function XJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WJ(e,t){if(e){if(typeof e=="string")return pS(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 pS(e,t)}}function ZJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QJ(e){if(Array.isArray(e))return pS(e)}function pS(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 RR(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 Nt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RR(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $s(e,t,n){return t=JJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JJ(e){var t=eee(e,"string");return jc(t)=="symbol"?t:t+""}function eee(e,t){if(jc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pt(e,t,n){return Ee(e)||Ee(t)?n:Ft(t)?Gn(e,t,n):_e(t)?t(e):n}function Zu(e,t,n,r){var a=QQ(e,function(c){return Pt(c,t)});if(n==="number"){var s=a.filter(function(c){return ue(c)||parseFloat(c)});return s.length?[Jp(s),ga(s)]:[1/0,-1/0]}var l=r?a.filter(function(c){return!Ee(c)}):a;return l.map(function(c){return Ft(c)||c instanceof Date?c:""})}var tee=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,l=-1,c=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(c<=1)return 0;if(s&&s.axisType==="angleAxis"&&Math.abs(Math.abs(s.range[1]-s.range[0])-360)<=1e-6)for(var f=s.range,d=0;d<c;d++){var m=d>0?a[d-1].coordinate:a[c-1].coordinate,y=a[d].coordinate,g=d>=c-1?a[0].coordinate:a[d+1].coordinate,S=void 0;if(gn(y-m)!==gn(g-y)){var j=[];if(gn(g-y)===gn(f[1]-f[0])){S=g;var w=y+f[1]-f[0];j[0]=Math.min(w,(w+m)/2),j[1]=Math.max(w,(w+m)/2)}else{S=m;var b=g+f[1]-f[0];j[0]=Math.min(y,(b+y)/2),j[1]=Math.max(y,(b+y)/2)}var A=[Math.min(y,(S+y)/2),Math.max(y,(S+y)/2)];if(t>A[0]&&t<=A[1]||t>=j[0]&&t<=j[1]){l=a[d].index;break}}else{var _=Math.min(m,g),T=Math.max(m,g);if(t>(_+y)/2&&t<=(T+y)/2){l=a[d].index;break}}}else for(var C=0;C<c;C++)if(C===0&&t<=(r[C].coordinate+r[C+1].coordinate)/2||C>0&&C<c-1&&t>(r[C].coordinate+r[C-1].coordinate)/2&&t<=(r[C].coordinate+r[C+1].coordinate)/2||C===c-1&&t>(r[C].coordinate+r[C-1].coordinate)/2){l=r[C].index;break}return l},Uj=function(t){var n,r=t,a=r.type.displayName,s=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Nt(Nt({},t.type.defaultProps),t.props):t.props,l=s.stroke,c=s.fill,f;switch(a){case"Line":f=l;break;case"Area":case"Radar":f=l&&l!=="none"?l:c;break;default:f=c;break}return f},nee=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,s=a===void 0?{}:a;if(!s)return{};for(var l={},c=Object.keys(s),f=0,d=c.length;f<d;f++)for(var m=s[c[f]].stackGroups,y=Object.keys(m),g=0,S=y.length;g<S;g++){var j=m[y[g]],w=j.items,b=j.cateAxisId,A=w.filter(function(M){return Ti(M.type).indexOf("Bar")>=0});if(A&&A.length){var _=A[0].type.defaultProps,T=_!==void 0?Nt(Nt({},_),A[0].props):A[0].props,C=T.barSize,O=T[b];l[O]||(l[O]=[]);var E=Ee(C)?n:C;l[O].push({item:A[0],stackList:A.slice(1),barSize:Ee(E)?void 0:xn(E,r,0)})}}return l},ree=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,s=t.sizeList,l=s===void 0?[]:s,c=t.maxBarSize,f=l.length;if(f<1)return null;var d=xn(n,a,0,!0),m,y=[];if(l[0].barSize===+l[0].barSize){var g=!1,S=a/f,j=l.reduce(function(C,O){return C+O.barSize||0},0);j+=(f-1)*d,j>=a&&(j-=(f-1)*d,d=0),j>=a&&S>0&&(g=!0,S*=.9,j=f*S);var w=(a-j)/2>>0,b={offset:w-d,size:0};m=l.reduce(function(C,O){var E={item:O.item,position:{offset:b.offset+b.size+d,size:g?S:O.barSize}},M=[].concat(PR(C),[E]);return b=M[M.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(k){M.push({item:k,position:b})}),M},y)}else{var A=xn(r,a,0,!0);a-2*A-(f-1)*d<=0&&(d=0);var _=(a-2*A-(f-1)*d)/f;_>1&&(_>>=0);var T=c===+c?Math.min(_,c):_;m=l.reduce(function(C,O,E){var M=[].concat(PR(C),[{item:O.item,position:{offset:A+(_+d)*E+(_-T)/2,size:T}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(k){M.push({item:k,position:M[M.length-1].position})}),M},y)}return m},iee=function(t,n,r,a){var s=r.children,l=r.width,c=r.margin,f=l-(c.left||0)-(c.right||0),d=c$({children:s,legendWidth:f});if(d){var m=a||{},y=m.width,g=m.height,S=d.align,j=d.verticalAlign,w=d.layout;if((w==="vertical"||w==="horizontal"&&j==="middle")&&S!=="center"&&ue(t[S]))return Nt(Nt({},t),{},$s({},S,t[S]+(y||0)));if((w==="horizontal"||w==="vertical"&&S==="center")&&j!=="middle"&&ue(t[j]))return Nt(Nt({},t),{},$s({},j,t[j]+(g||0)))}return t},aee=function(t,n,r){return Ee(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},f$=function(t,n,r,a,s){var l=n.props.children,c=Fn(l,af).filter(function(d){return aee(a,s,d.props.direction)});if(c&&c.length){var f=c.map(function(d){return d.props.dataKey});return t.reduce(function(d,m){var y=Pt(m,r);if(Ee(y))return d;var g=Array.isArray(y)?[Jp(y),ga(y)]:[y,y],S=f.reduce(function(j,w){var b=Pt(m,w,0),A=g[0]-Math.abs(Array.isArray(b)?b[0]:b),_=g[1]+Math.abs(Array.isArray(b)?b[1]:b);return[Math.min(A,j[0]),Math.max(_,j[1])]},[1/0,-1/0]);return[Math.min(S[0],d[0]),Math.max(S[1],d[1])]},[1/0,-1/0])}return null},oee=function(t,n,r,a,s){var l=n.map(function(c){return f$(t,c,r,s,a)}).filter(function(c){return!Ee(c)});return l&&l.length?l.reduce(function(c,f){return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]):null},d$=function(t,n,r,a,s){var l=n.map(function(f){var d=f.props.dataKey;return r==="number"&&d&&f$(t,f,d,a)||Zu(t,d,r,s)});if(r==="number")return l.reduce(function(f,d){return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]);var c={};return l.reduce(function(f,d){for(var m=0,y=d.length;m<y;m++)c[d[m]]||(c[d[m]]=!0,f.push(d[m]));return f},[])},h$=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},p$=function(t,n,r,a){if(a)return t.map(function(f){return f.coordinate});var s,l,c=t.map(function(f){return f.coordinate===n&&(s=!0),f.coordinate===r&&(l=!0),f.coordinate});return s||c.push(n),l||c.push(r),c},_i=function(t,n,r){if(!t)return null;var a=t.scale,s=t.duplicateDomain,l=t.type,c=t.range,f=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,d=(n||r)&&l==="category"&&a.bandwidth?a.bandwidth()/f:0;if(d=t.axisType==="angleAxis"&&(c==null?void 0:c.length)>=2?gn(c[0]-c[1])*2*d:d,n&&(t.ticks||t.niceTicks)){var m=(t.ticks||t.niceTicks).map(function(y){var g=s?s.indexOf(y):y;return{coordinate:a(g)+d,value:y,offset:d}});return m.filter(function(y){return!jl(y.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(y,g){return{coordinate:a(y)+d,value:y,index:g,offset:d}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(y){return{coordinate:a(y)+d,value:y,offset:d}}):a.domain().map(function(y,g){return{coordinate:a(y)+d,value:s?s[y]:y,index:g,offset:d}})},w0=new WeakMap,Id=function(t,n){if(typeof n!="function")return t;w0.has(t)||w0.set(t,new WeakMap);var r=w0.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},m$=function(t,n,r){var a=t.scale,s=t.type,l=t.layout,c=t.axisType;if(a==="auto")return l==="radial"&&c==="radiusAxis"?{scale:mc(),realScaleType:"band"}:l==="radial"&&c==="angleAxis"?{scale:qh(),realScaleType:"linear"}:s==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Wu(),realScaleType:"point"}:s==="category"?{scale:mc(),realScaleType:"band"}:{scale:qh(),realScaleType:"linear"};if(jo(a)){var f="scale".concat($p(a));return{scale:(gR[f]||Wu)(),realScaleType:gR[f]?f:"point"}}return _e(a)?{scale:a}:{scale:Wu(),realScaleType:"point"}},DR=1e-4,y$=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),s=Math.min(a[0],a[1])-DR,l=Math.max(a[0],a[1])+DR,c=t(n[0]),f=t(n[r-1]);(c<s||c>l||f<s||f>l)&&t.domain([n[0],n[r-1]])}},see=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},lee=function(t,n){if(!n||n.length!==2||!ue(n[0])||!ue(n[1]))return t;var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),s=[t[0],t[1]];return(!ue(t[0])||t[0]<r)&&(s[0]=r),(!ue(t[1])||t[1]>a)&&(s[1]=a),s[0]>a&&(s[0]=a),s[1]<r&&(s[1]=r),s},uee=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var s=0,l=0,c=0;c<n;++c){var f=jl(t[c][r][1])?t[c][r][0]:t[c][r][1];f>=0?(t[c][r][0]=s,t[c][r][1]=s+f,s=t[c][r][1]):(t[c][r][0]=l,t[c][r][1]=l+f,l=t[c][r][1])}},cee=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var s=0,l=0;l<n;++l){var c=jl(t[l][r][1])?t[l][r][0]:t[l][r][1];c>=0?(t[l][r][0]=s,t[l][r][1]=s+c,s=t[l][r][1]):(t[l][r][0]=0,t[l][r][1]=0)}},fee={sign:uee,expand:QF,none:Us,silhouette:JF,wiggle:eK,positive:cee},dee=function(t,n,r){var a=n.map(function(c){return c.props.dataKey}),s=fee[r],l=ZF().keys(a).value(function(c,f){return+Pt(c,f,0)}).order(H1).offset(s);return l(t)},hee=function(t,n,r,a,s,l){if(!t)return null;var c=l?n.reverse():n,f={},d=c.reduce(function(y,g){var S,j=(S=g.type)!==null&&S!==void 0&&S.defaultProps?Nt(Nt({},g.type.defaultProps),g.props):g.props,w=j.stackId,b=j.hide;if(b)return y;var A=j[r],_=y[A]||{hasStack:!1,stackGroups:{}};if(Ft(w)){var T=_.stackGroups[w]||{numericAxisId:r,cateAxisId:a,items:[]};T.items.push(g),_.hasStack=!0,_.stackGroups[w]=T}else _.stackGroups[Po("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[g]};return Nt(Nt({},y),{},$s({},A,_))},f),m={};return Object.keys(d).reduce(function(y,g){var S=d[g];if(S.hasStack){var j={};S.stackGroups=Object.keys(S.stackGroups).reduce(function(w,b){var A=S.stackGroups[b];return Nt(Nt({},w),{},$s({},b,{numericAxisId:r,cateAxisId:a,items:A.items,stackedData:dee(t,A.items,s)}))},j)}return Nt(Nt({},y),{},$s({},g,S))},m)},v$=function(t,n){var r=n.realScaleType,a=n.type,s=n.tickCount,l=n.originalDomain,c=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(s&&a==="number"&&l&&(l[0]==="auto"||l[1]==="auto")){var d=t.domain();if(!d.length)return null;var m=TJ(d,s,c);return t.domain([Jp(m),ga(m)]),{niceTicks:m}}if(s&&a==="number"){var y=t.domain(),g=EJ(y,s,c);return{niceTicks:g}}return null};function Kh(e){var t=e.axis,n=e.ticks,r=e.bandSize,a=e.entry,s=e.index,l=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Ee(a[t.dataKey])){var c=bh(n,"value",a[t.dataKey]);if(c)return c.coordinate+r/2}return n[s]?n[s].coordinate+r/2:null}var f=Pt(a,Ee(l)?t.dataKey:l);return Ee(f)?null:t.scale(f)}var kR=function(t){var n=t.axis,r=t.ticks,a=t.offset,s=t.bandSize,l=t.entry,c=t.index;if(n.type==="category")return r[c]?r[c].coordinate+a:null;var f=Pt(l,n.dataKey,n.domain[c]);return Ee(f)?null:n.scale(f)-s/2+a},pee=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var a=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);return a<=0&&s>=0?0:s<0?s:a}return r[0]},mee=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Nt(Nt({},t.type.defaultProps),t.props):t.props,s=a.stackId;if(Ft(s)){var l=n[s];if(l){var c=l.items.indexOf(t);return c>=0?l.stackedData[c]:null}}return null},yee=function(t){return t.reduce(function(n,r){return[Jp(r.concat([n[0]]).filter(ue)),ga(r.concat([n[1]]).filter(ue))]},[1/0,-1/0])},g$=function(t,n,r){return Object.keys(t).reduce(function(a,s){var l=t[s],c=l.stackedData,f=c.reduce(function(d,m){var y=yee(m.slice(n,r+1));return[Math.min(d[0],y[0]),Math.max(d[1],y[1])]},[1/0,-1/0]);return[Math.min(f[0],a[0]),Math.max(f[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},LR=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,zR=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,mS=function(t,n,r){if(_e(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(ue(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(LR.test(t[0])){var s=+LR.exec(t[0])[1];a[0]=n[0]-s}else _e(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(ue(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(zR.test(t[1])){var l=+zR.exec(t[1])[1];a[1]=n[1]+l}else _e(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},Yh=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 s=yj(n,function(y){return y.coordinate}),l=1/0,c=1,f=s.length;c<f;c++){var d=s[c],m=s[c-1];l=Math.min((d.coordinate||0)-(m.coordinate||0),l)}return l===1/0?0:l}return r?void 0:0},$R=function(t,n,r){return!t||!t.length||_o(t,Gn(r,"type.defaultProps.domain"))?n:t},x$=function(t,n){var r=t.type.defaultProps?Nt(Nt({},t.type.defaultProps),t.props):t.props,a=r.dataKey,s=r.name,l=r.unit,c=r.formatter,f=r.tooltipType,d=r.chartType,m=r.hide;return Nt(Nt({},Se(t,!1)),{},{dataKey:a,unit:l,formatter:c,name:s||a,color:Uj(t),value:Pt(n,a),type:f,payload:n,chartType:d,hide:m})};function Ac(e){"@babel/helpers - typeof";return Ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ac(e)}function BR(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 ji(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BR(Object(n),!0).forEach(function(r){b$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function b$(e,t,n){return t=vee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vee(e){var t=gee(e,"string");return Ac(t)=="symbol"?t:t+""}function gee(e,t){if(Ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xee(e,t){return jee(e)||wee(e,t)||See(e,t)||bee()}function bee(){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 See(e,t){if(e){if(typeof e=="string")return qR(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 qR(e,t)}}function qR(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 wee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function jee(e){if(Array.isArray(e))return e}var Xh=Math.PI/180,Aee=function(t){return t*180/Math.PI},pt=function(t,n,r,a){return{x:t+Math.cos(-Xh*a)*r,y:n+Math.sin(-Xh*a)*r}},S$=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},Oee=function(t,n,r,a,s){var l=t.width,c=t.height,f=t.startAngle,d=t.endAngle,m=xn(t.cx,l,l/2),y=xn(t.cy,c,c/2),g=S$(l,c,r),S=xn(t.innerRadius,g,0),j=xn(t.outerRadius,g,g*.8),w=Object.keys(n);return w.reduce(function(b,A){var _=n[A],T=_.domain,C=_.reversed,O;if(Ee(_.range))a==="angleAxis"?O=[f,d]:a==="radiusAxis"&&(O=[S,j]),C&&(O=[O[1],O[0]]);else{O=_.range;var E=O,M=xee(E,2);f=M[0],d=M[1]}var k=m$(_,s),D=k.realScaleType,B=k.scale;B.domain(T).range(O),y$(B);var I=v$(B,ji(ji({},_),{},{realScaleType:D})),z=ji(ji(ji({},_),I),{},{range:O,radius:j,realScaleType:D,scale:B,cx:m,cy:y,innerRadius:S,outerRadius:j,startAngle:f,endAngle:d});return ji(ji({},b),{},b$({},A,z))},{})},_ee=function(t,n){var r=t.x,a=t.y,s=n.x,l=n.y;return Math.sqrt(Math.pow(r-s,2)+Math.pow(a-l,2))},Tee=function(t,n){var r=t.x,a=t.y,s=n.cx,l=n.cy,c=_ee({x:r,y:a},{x:s,y:l});if(c<=0)return{radius:c};var f=(r-s)/c,d=Math.acos(f);return a>l&&(d=2*Math.PI-d),{radius:c,angle:Aee(d),angleInRadian:d}},Eee=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),s=Math.floor(r/360),l=Math.min(a,s);return{startAngle:n-l*360,endAngle:r-l*360}},Nee=function(t,n){var r=n.startAngle,a=n.endAngle,s=Math.floor(r/360),l=Math.floor(a/360),c=Math.min(s,l);return t+c*360},IR=function(t,n){var r=t.x,a=t.y,s=Tee({x:r,y:a},n),l=s.radius,c=s.angle,f=n.innerRadius,d=n.outerRadius;if(l<f||l>d)return!1;if(l===0)return!0;var m=Eee(n),y=m.startAngle,g=m.endAngle,S=c,j;if(y<=g){for(;S>g;)S-=360;for(;S<y;)S+=360;j=S>=y&&S<=g}else{for(;S>y;)S-=360;for(;S<g;)S+=360;j=S>=g&&S<=y}return j?ji(ji({},n),{},{radius:l,angle:Nee(S,n)}):null},w$=function(t){return!P.isValidElement(t)&&!_e(t)&&typeof t!="boolean"?t.className:""};function Oc(e){"@babel/helpers - typeof";return Oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oc(e)}var Cee=["offset"];function Mee(e){return kee(e)||Dee(e)||Ree(e)||Pee()}function Pee(){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 Ree(e,t){if(e){if(typeof e=="string")return yS(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 yS(e,t)}}function Dee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kee(e){if(Array.isArray(e))return yS(e)}function yS(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 Lee(e,t){if(e==null)return{};var n=zee(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zee(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 UR(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?UR(Object(n),!0).forEach(function(r){$ee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $ee(e,t,n){return t=Bee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bee(e){var t=qee(e,"string");return Oc(t)=="symbol"?t:t+""}function qee(e,t){if(Oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _c(){return _c=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},_c.apply(this,arguments)}var Iee=function(t){var n=t.value,r=t.formatter,a=Ee(t.children)?n:t.children;return _e(r)?r(a):a},Uee=function(t,n){var r=gn(n-t),a=Math.min(Math.abs(n-t),360);return r*a},Vee=function(t,n,r){var a=t.position,s=t.viewBox,l=t.offset,c=t.className,f=s,d=f.cx,m=f.cy,y=f.innerRadius,g=f.outerRadius,S=f.startAngle,j=f.endAngle,w=f.clockWise,b=(y+g)/2,A=Uee(S,j),_=A>=0?1:-1,T,C;a==="insideStart"?(T=S+_*l,C=w):a==="insideEnd"?(T=j-_*l,C=!w):a==="end"&&(T=j+_*l,C=w),C=A<=0?C:!C;var O=pt(d,m,b,T),E=pt(d,m,b,T+(C?1:-1)*359),M="M".concat(O.x,",").concat(O.y,`
A`).concat(b,",").concat(b,",0,1,").concat(C?0:1,`,
`).concat(E.x,",").concat(E.y),k=Ee(t.id)?Po("recharts-radial-line-"):t.id;return q.createElement("text",_c({},r,{dominantBaseline:"central",className:Me("recharts-radial-bar-label",c)}),q.createElement("defs",null,q.createElement("path",{id:k,d:M})),q.createElement("textPath",{xlinkHref:"#".concat(k)},n))},Hee=function(t){var n=t.viewBox,r=t.offset,a=t.position,s=n,l=s.cx,c=s.cy,f=s.innerRadius,d=s.outerRadius,m=s.startAngle,y=s.endAngle,g=(m+y)/2;if(a==="outside"){var S=pt(l,c,d+r,g),j=S.x,w=S.y;return{x:j,y:w,textAnchor:j>=l?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"end"};var b=(f+d)/2,A=pt(l,c,b,g),_=A.x,T=A.y;return{x:_,y:T,textAnchor:"middle",verticalAnchor:"middle"}},Gee=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,s=t.position,l=n,c=l.x,f=l.y,d=l.width,m=l.height,y=m>=0?1:-1,g=y*a,S=y>0?"end":"start",j=y>0?"start":"end",w=d>=0?1:-1,b=w*a,A=w>0?"end":"start",_=w>0?"start":"end";if(s==="top"){var T={x:c+d/2,y:f-y*a,textAnchor:"middle",verticalAnchor:S};return Vt(Vt({},T),r?{height:Math.max(f-r.y,0),width:d}:{})}if(s==="bottom"){var C={x:c+d/2,y:f+m+g,textAnchor:"middle",verticalAnchor:j};return Vt(Vt({},C),r?{height:Math.max(r.y+r.height-(f+m),0),width:d}:{})}if(s==="left"){var O={x:c-b,y:f+m/2,textAnchor:A,verticalAnchor:"middle"};return Vt(Vt({},O),r?{width:Math.max(O.x-r.x,0),height:m}:{})}if(s==="right"){var E={x:c+d+b,y:f+m/2,textAnchor:_,verticalAnchor:"middle"};return Vt(Vt({},E),r?{width:Math.max(r.x+r.width-E.x,0),height:m}:{})}var M=r?{width:d,height:m}:{};return s==="insideLeft"?Vt({x:c+b,y:f+m/2,textAnchor:_,verticalAnchor:"middle"},M):s==="insideRight"?Vt({x:c+d-b,y:f+m/2,textAnchor:A,verticalAnchor:"middle"},M):s==="insideTop"?Vt({x:c+d/2,y:f+g,textAnchor:"middle",verticalAnchor:j},M):s==="insideBottom"?Vt({x:c+d/2,y:f+m-g,textAnchor:"middle",verticalAnchor:S},M):s==="insideTopLeft"?Vt({x:c+b,y:f+g,textAnchor:_,verticalAnchor:j},M):s==="insideTopRight"?Vt({x:c+d-b,y:f+g,textAnchor:A,verticalAnchor:j},M):s==="insideBottomLeft"?Vt({x:c+b,y:f+m-g,textAnchor:_,verticalAnchor:S},M):s==="insideBottomRight"?Vt({x:c+d-b,y:f+m-g,textAnchor:A,verticalAnchor:S},M):wl(s)&&(ue(s.x)||fo(s.x))&&(ue(s.y)||fo(s.y))?Vt({x:c+xn(s.x,d),y:f+xn(s.y,m),textAnchor:"end",verticalAnchor:"end"},M):Vt({x:c+d/2,y:f+m/2,textAnchor:"middle",verticalAnchor:"middle"},M)},Fee=function(t){return"cx"in t&&ue(t.cx)};function Qt(e){var t=e.offset,n=t===void 0?5:t,r=Lee(e,Cee),a=Vt({offset:n},r),s=a.viewBox,l=a.position,c=a.value,f=a.children,d=a.content,m=a.className,y=m===void 0?"":m,g=a.textBreakAll;if(!s||Ee(c)&&Ee(f)&&!P.isValidElement(d)&&!_e(d))return null;if(P.isValidElement(d))return P.cloneElement(d,a);var S;if(_e(d)){if(S=P.createElement(d,a),P.isValidElement(S))return S}else S=Iee(a);var j=Fee(s),w=Se(a,!0);if(j&&(l==="insideStart"||l==="insideEnd"||l==="end"))return Vee(a,S,w);var b=j?Hee(a):Gee(a);return q.createElement(Oo,_c({className:Me("recharts-label",y)},w,b,{breakAll:g}),S)}Qt.displayName="Label";var j$=function(t){var n=t.cx,r=t.cy,a=t.angle,s=t.startAngle,l=t.endAngle,c=t.r,f=t.radius,d=t.innerRadius,m=t.outerRadius,y=t.x,g=t.y,S=t.top,j=t.left,w=t.width,b=t.height,A=t.clockWise,_=t.labelViewBox;if(_)return _;if(ue(w)&&ue(b)){if(ue(y)&&ue(g))return{x:y,y:g,width:w,height:b};if(ue(S)&&ue(j))return{x:S,y:j,width:w,height:b}}return ue(y)&&ue(g)?{x:y,y:g,width:0,height:0}:ue(n)&&ue(r)?{cx:n,cy:r,startAngle:s||a||0,endAngle:l||a||0,innerRadius:d||0,outerRadius:m||f||c||0,clockWise:A}:t.viewBox?t.viewBox:{}},Kee=function(t,n){return t?t===!0?q.createElement(Qt,{key:"label-implicit",viewBox:n}):Ft(t)?q.createElement(Qt,{key:"label-implicit",viewBox:n,value:t}):P.isValidElement(t)?t.type===Qt?P.cloneElement(t,{key:"label-implicit",viewBox:n}):q.createElement(Qt,{key:"label-implicit",content:t,viewBox:n}):_e(t)?q.createElement(Qt,{key:"label-implicit",content:t,viewBox:n}):wl(t)?q.createElement(Qt,_c({viewBox:n},t,{key:"label-implicit"})):null:null},Yee=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,s=j$(t),l=Fn(a,Qt).map(function(f,d){return P.cloneElement(f,{viewBox:n||s,key:"label-".concat(d)})});if(!r)return l;var c=Kee(t.label,n||s);return[c].concat(Mee(l))};Qt.parseViewBox=j$;Qt.renderCallByParent=Yee;var j0,VR;function Xee(){if(VR)return j0;VR=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return j0=e,j0}var Wee=Xee();const Zee=nt(Wee);function Tc(e){"@babel/helpers - typeof";return Tc=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},Tc(e)}var Qee=["valueAccessor"],Jee=["data","dataKey","clockWise","id","textBreakAll"];function ete(e){return ite(e)||rte(e)||nte(e)||tte()}function tte(){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 nte(e,t){if(e){if(typeof e=="string")return vS(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 vS(e,t)}}function rte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ite(e){if(Array.isArray(e))return vS(e)}function vS(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 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 HR(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 GR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HR(Object(n),!0).forEach(function(r){ate(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ate(e,t,n){return t=ote(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ote(e){var t=ste(e,"string");return Tc(t)=="symbol"?t:t+""}function ste(e,t){if(Tc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FR(e,t){if(e==null)return{};var n=lte(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lte(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 ute=function(t){return Array.isArray(t.value)?Zee(t.value):t.value};function Gr(e){var t=e.valueAccessor,n=t===void 0?ute:t,r=FR(e,Qee),a=r.data,s=r.dataKey,l=r.clockWise,c=r.id,f=r.textBreakAll,d=FR(r,Jee);return!a||!a.length?null:q.createElement(qe,{className:"recharts-label-list"},a.map(function(m,y){var g=Ee(s)?n(m,y):Pt(m&&m.payload,s),S=Ee(c)?{}:{id:"".concat(c,"-").concat(y)};return q.createElement(Qt,Wh({},Se(m,!0),d,S,{parentViewBox:m.parentViewBox,value:g,textBreakAll:f,viewBox:Qt.parseViewBox(Ee(l)?m:GR(GR({},m),{},{clockWise:l})),key:"label-".concat(y),index:y}))}))}Gr.displayName="LabelList";function cte(e,t){return e?e===!0?q.createElement(Gr,{key:"labelList-implicit",data:t}):q.isValidElement(e)||_e(e)?q.createElement(Gr,{key:"labelList-implicit",data:t,content:e}):wl(e)?q.createElement(Gr,Wh({data:t},e,{key:"labelList-implicit"})):null:null}function fte(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=Fn(r,Gr).map(function(l,c){return P.cloneElement(l,{data:t,key:"labelList-".concat(c)})});if(!n)return a;var s=cte(e.label,t);return[s].concat(ete(a))}Gr.renderCallByParent=fte;function Ec(e){"@babel/helpers - typeof";return Ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ec(e)}function gS(){return gS=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},gS.apply(this,arguments)}function KR(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 YR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KR(Object(n),!0).forEach(function(r){dte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dte(e,t,n){return t=hte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hte(e){var t=pte(e,"string");return Ec(t)=="symbol"?t:t+""}function pte(e,t){if(Ec(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mte=function(t,n){var r=gn(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},Ud=function(t){var n=t.cx,r=t.cy,a=t.radius,s=t.angle,l=t.sign,c=t.isExternal,f=t.cornerRadius,d=t.cornerIsExternal,m=f*(c?1:-1)+a,y=Math.asin(f/m)/Xh,g=d?s:s+l*y,S=pt(n,r,m,g),j=pt(n,r,a,g),w=d?s-l*y:s,b=pt(n,r,m*Math.cos(y*Xh),w);return{center:S,circleTangency:j,lineTangency:b,theta:y}},A$=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,s=t.outerRadius,l=t.startAngle,c=t.endAngle,f=mte(l,c),d=l+f,m=pt(n,r,s,l),y=pt(n,r,s,d),g="M ".concat(m.x,",").concat(m.y,`
A `).concat(s,",").concat(s,`,0,
`).concat(+(Math.abs(f)>180),",").concat(+(l>d),`,
`).concat(y.x,",").concat(y.y,`
`);if(a>0){var S=pt(n,r,a,l),j=pt(n,r,a,d);g+="L ".concat(j.x,",").concat(j.y,`
A `).concat(a,",").concat(a,`,0,
`).concat(+(Math.abs(f)>180),",").concat(+(l<=d),`,
`).concat(S.x,",").concat(S.y," Z")}else g+="L ".concat(n,",").concat(r," Z");return g},yte=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,s=t.outerRadius,l=t.cornerRadius,c=t.forceCornerRadius,f=t.cornerIsExternal,d=t.startAngle,m=t.endAngle,y=gn(m-d),g=Ud({cx:n,cy:r,radius:s,angle:d,sign:y,cornerRadius:l,cornerIsExternal:f}),S=g.circleTangency,j=g.lineTangency,w=g.theta,b=Ud({cx:n,cy:r,radius:s,angle:m,sign:-y,cornerRadius:l,cornerIsExternal:f}),A=b.circleTangency,_=b.lineTangency,T=b.theta,C=f?Math.abs(d-m):Math.abs(d-m)-w-T;if(C<0)return c?"M ".concat(j.x,",").concat(j.y,`
a`).concat(l,",").concat(l,",0,0,1,").concat(l*2,`,0
a`).concat(l,",").concat(l,",0,0,1,").concat(-l*2,`,0
`):A$({cx:n,cy:r,innerRadius:a,outerRadius:s,startAngle:d,endAngle:m});var O="M ".concat(j.x,",").concat(j.y,`
A`).concat(l,",").concat(l,",0,0,").concat(+(y<0),",").concat(S.x,",").concat(S.y,`
A`).concat(s,",").concat(s,",0,").concat(+(C>180),",").concat(+(y<0),",").concat(A.x,",").concat(A.y,`
A`).concat(l,",").concat(l,",0,0,").concat(+(y<0),",").concat(_.x,",").concat(_.y,`
`);if(a>0){var E=Ud({cx:n,cy:r,radius:a,angle:d,sign:y,isExternal:!0,cornerRadius:l,cornerIsExternal:f}),M=E.circleTangency,k=E.lineTangency,D=E.theta,B=Ud({cx:n,cy:r,radius:a,angle:m,sign:-y,isExternal:!0,cornerRadius:l,cornerIsExternal:f}),I=B.circleTangency,z=B.lineTangency,F=B.theta,X=f?Math.abs(d-m):Math.abs(d-m)-D-F;if(X<0&&l===0)return"".concat(O,"L").concat(n,",").concat(r,"Z");O+="L".concat(z.x,",").concat(z.y,`
A`).concat(l,",").concat(l,",0,0,").concat(+(y<0),",").concat(I.x,",").concat(I.y,`
A`).concat(a,",").concat(a,",0,").concat(+(X>180),",").concat(+(y>0),",").concat(M.x,",").concat(M.y,`
A`).concat(l,",").concat(l,",0,0,").concat(+(y<0),",").concat(k.x,",").concat(k.y,"Z")}else O+="L".concat(n,",").concat(r,"Z");return O},vte={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},O$=function(t){var n=YR(YR({},vte),t),r=n.cx,a=n.cy,s=n.innerRadius,l=n.outerRadius,c=n.cornerRadius,f=n.forceCornerRadius,d=n.cornerIsExternal,m=n.startAngle,y=n.endAngle,g=n.className;if(l<s||m===y)return null;var S=Me("recharts-sector",g),j=l-s,w=xn(c,j,0,!0),b;return w>0&&Math.abs(m-y)<360?b=yte({cx:r,cy:a,innerRadius:s,outerRadius:l,cornerRadius:Math.min(w,j/2),forceCornerRadius:f,cornerIsExternal:d,startAngle:m,endAngle:y}):b=A$({cx:r,cy:a,innerRadius:s,outerRadius:l,startAngle:m,endAngle:y}),q.createElement("path",gS({},Se(n,!0),{className:S,d:b,role:"img"}))};function Nc(e){"@babel/helpers - typeof";return Nc=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},Nc(e)}function xS(){return xS=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},xS.apply(this,arguments)}function XR(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 WR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XR(Object(n),!0).forEach(function(r){gte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gte(e,t,n){return t=xte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xte(e){var t=bte(e,"string");return Nc(t)=="symbol"?t:t+""}function bte(e,t){if(Nc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZR={curveBasisClosed:qF,curveBasisOpen:IF,curveBasis:BF,curveBumpX:OF,curveBumpY:_F,curveLinearClosed:UF,curveLinear:qp,curveMonotoneX:VF,curveMonotoneY:HF,curveNatural:GF,curveStep:FF,curveStepAfter:YF,curveStepBefore:KF},Vd=function(t){return t.x===+t.x&&t.y===+t.y},Ru=function(t){return t.x},Du=function(t){return t.y},Ste=function(t,n){if(_e(t))return t;var r="curve".concat($p(t));return(r==="curveMonotone"||r==="curveBump")&&n?ZR["".concat(r).concat(n==="vertical"?"Y":"X")]:ZR[r]||qp},wte=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,s=a===void 0?[]:a,l=t.baseLine,c=t.layout,f=t.connectNulls,d=f===void 0?!1:f,m=Ste(r,c),y=d?s.filter(function(w){return Vd(w)}):s,g;if(Array.isArray(l)){var S=d?l.filter(function(w){return Vd(w)}):l,j=y.map(function(w,b){return WR(WR({},w),{},{base:S[b]})});return c==="vertical"?g=Dd().y(Du).x1(Ru).x0(function(w){return w.base.x}):g=Dd().x(Ru).y1(Du).y0(function(w){return w.base.y}),g.defined(Vd).curve(m),g(j)}return c==="vertical"&&ue(l)?g=Dd().y(Du).x1(Ru).x0(l):ue(l)?g=Dd().x(Ru).y1(Du).y0(l):g=A4().x(Ru).y(Du),g.defined(Vd).curve(m),g(y)},So=function(t){var n=t.className,r=t.points,a=t.path,s=t.pathRef;if((!r||!r.length)&&!a)return null;var l=r&&r.length?wte(t):a;return P.createElement("path",xS({},Se(t,!1),Sh(t),{className:Me("recharts-curve",n),d:l,ref:s}))},A0={exports:{}},O0,QR;function jte(){if(QR)return O0;QR=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return O0=e,O0}var _0,JR;function Ate(){if(JR)return _0;JR=1;var e=jte();function t(){}function n(){}return n.resetWarningCache=t,_0=function(){function r(l,c,f,d,m,y){if(y!==e){var g=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 g.name="Invariant Violation",g}}r.isRequired=r;function a(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},_0}var eD;function Ote(){return eD||(eD=1,A0.exports=Ate()()),A0.exports}var _te=Ote();const Ze=nt(_te),{getOwnPropertyNames:Tte,getOwnPropertySymbols:Ete}=Object,{hasOwnProperty:Nte}=Object.prototype;function T0(e,t){return function(r,a,s){return e(r,a,s)&&t(r,a,s)}}function Hd(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);const{cache:s}=a,l=s.get(n),c=s.get(r);if(l&&c)return l===r&&c===n;s.set(n,r),s.set(r,n);const f=e(n,r,a);return s.delete(n),s.delete(r),f}}function Cte(e){return e!=null?e[Symbol.toStringTag]:void 0}function tD(e){return Tte(e).concat(Ete(e))}const Mte=Object.hasOwn||((e,t)=>Nte.call(e,t));function ko(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Pte="__v",Rte="__o",Dte="_owner",{getOwnPropertyDescriptor:nD,keys:rD}=Object;function kte(e,t){return e.byteLength===t.byteLength&&Zh(new Uint8Array(e),new Uint8Array(t))}function Lte(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 zte(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 $te(e,t){return ko(e.getTime(),t.getTime())}function Bte(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function qte(e,t){return e===t}function iD(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),s=e.entries();let l,c,f=0;for(;(l=s.next())&&!l.done;){const d=t.entries();let m=!1,y=0;for(;(c=d.next())&&!c.done;){if(a[y]){y++;continue}const g=l.value,S=c.value;if(n.equals(g[0],S[0],f,y,e,t,n)&&n.equals(g[1],S[1],g[0],S[0],e,t,n)){m=a[y]=!0;break}y++}if(!m)return!1;f++}return!0}const Ite=ko;function Ute(e,t,n){const r=rD(e);let a=r.length;if(rD(t).length!==a)return!1;for(;a-- >0;)if(!_$(e,t,n,r[a]))return!1;return!0}function ku(e,t,n){const r=tD(e);let a=r.length;if(tD(t).length!==a)return!1;let s,l,c;for(;a-- >0;)if(s=r[a],!_$(e,t,n,s)||(l=nD(e,s),c=nD(t,s),(l||c)&&(!l||!c||l.configurable!==c.configurable||l.enumerable!==c.enumerable||l.writable!==c.writable)))return!1;return!0}function Vte(e,t){return ko(e.valueOf(),t.valueOf())}function Hte(e,t){return e.source===t.source&&e.flags===t.flags}function aD(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),s=e.values();let l,c;for(;(l=s.next())&&!l.done;){const f=t.values();let d=!1,m=0;for(;(c=f.next())&&!c.done;){if(!a[m]&&n.equals(l.value,c.value,l.value,c.value,e,t,n)){d=a[m]=!0;break}m++}if(!d)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 Gte(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 _$(e,t,n,r){return(r===Dte||r===Rte||r===Pte)&&(e.$$typeof||t.$$typeof)?!0:Mte(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Fte="[object ArrayBuffer]",Kte="[object Arguments]",Yte="[object Boolean]",Xte="[object DataView]",Wte="[object Date]",Zte="[object Error]",Qte="[object Map]",Jte="[object Number]",ene="[object Object]",tne="[object RegExp]",nne="[object Set]",rne="[object String]",ine={"[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},ane="[object URL]",one=Object.prototype.toString;function sne({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:s,areMapsEqual:l,areNumbersEqual:c,areObjectsEqual:f,arePrimitiveWrappersEqual:d,areRegExpsEqual:m,areSetsEqual:y,areTypedArraysEqual:g,areUrlsEqual:S,unknownTagComparators:j}){return function(b,A,_){if(b===A)return!0;if(b==null||A==null)return!1;const T=typeof b;if(T!==typeof A)return!1;if(T!=="object")return T==="number"?c(b,A,_):T==="function"?s(b,A,_):!1;const C=b.constructor;if(C!==A.constructor)return!1;if(C===Object)return f(b,A,_);if(Array.isArray(b))return t(b,A,_);if(C===Date)return r(b,A,_);if(C===RegExp)return m(b,A,_);if(C===Map)return l(b,A,_);if(C===Set)return y(b,A,_);const O=one.call(b);if(O===Wte)return r(b,A,_);if(O===tne)return m(b,A,_);if(O===Qte)return l(b,A,_);if(O===nne)return y(b,A,_);if(O===ene)return typeof b.then!="function"&&typeof A.then!="function"&&f(b,A,_);if(O===ane)return S(b,A,_);if(O===Zte)return a(b,A,_);if(O===Kte)return f(b,A,_);if(ine[O])return g(b,A,_);if(O===Fte)return e(b,A,_);if(O===Xte)return n(b,A,_);if(O===Yte||O===Jte||O===rne)return d(b,A,_);if(j){let E=j[O];if(!E){const M=Cte(b);M&&(E=j[M])}if(E)return E(b,A,_)}return!1}}function lne({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:kte,areArraysEqual:n?ku:Lte,areDataViewsEqual:zte,areDatesEqual:$te,areErrorsEqual:Bte,areFunctionsEqual:qte,areMapsEqual:n?T0(iD,ku):iD,areNumbersEqual:Ite,areObjectsEqual:n?ku:Ute,arePrimitiveWrappersEqual:Vte,areRegExpsEqual:Hte,areSetsEqual:n?T0(aD,ku):aD,areTypedArraysEqual:n?T0(Zh,ku):Zh,areUrlsEqual:Gte,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=Hd(r.areArraysEqual),s=Hd(r.areMapsEqual),l=Hd(r.areObjectsEqual),c=Hd(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:s,areObjectsEqual:l,areSetsEqual:c})}return r}function une(e){return function(t,n,r,a,s,l,c){return e(t,n,c)}}function cne({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(c,f){const{cache:d=e?new WeakMap:void 0,meta:m}=n();return t(c,f,{cache:d,equals:r,meta:m,strict:a})};if(e)return function(c,f){return t(c,f,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const s={cache:void 0,equals:r,meta:void 0,strict:a};return function(c,f){return t(c,f,s)}}const fne=Da();Da({strict:!0});Da({circular:!0});Da({circular:!0,strict:!0});Da({createInternalComparator:()=>ko});Da({strict:!0,createInternalComparator:()=>ko});Da({circular:!0,createInternalComparator:()=>ko});Da({circular:!0,createInternalComparator:()=>ko,strict:!0});function Da(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,s=lne(e),l=sne(s),c=n?n(l):une(l);return cne({circular:t,comparator:l,createState:r,equals:c,strict:a})}function dne(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function oD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function a(s){n<0&&(n=s),s-n>t?(e(s),n=-1):dne(a)};requestAnimationFrame(r)}function bS(e){"@babel/helpers - typeof";return bS=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},bS(e)}function hne(e){return vne(e)||yne(e)||mne(e)||pne()}function pne(){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 mne(e,t){if(e){if(typeof e=="string")return sD(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 sD(e,t)}}function sD(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 yne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vne(e){if(Array.isArray(e))return e}function gne(){var e={},t=function(){return null},n=!1,r=function a(s){if(!n){if(Array.isArray(s)){if(!s.length)return;var l=s,c=hne(l),f=c[0],d=c.slice(1);if(typeof f=="number"){oD(a.bind(null,d),f);return}a(f),oD(a.bind(null,d));return}bS(s)==="object"&&(e=s,t(e)),typeof s=="function"&&s()}};return{stop:function(){n=!0},start:function(s){n=!1,r(s)},subscribe:function(s){return t=s,function(){t=function(){return null}}}}}function Cc(e){"@babel/helpers - typeof";return Cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cc(e)}function lD(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 uD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lD(Object(n),!0).forEach(function(r){T$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function T$(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=bne(e,"string");return Cc(t)==="symbol"?t:String(t)}function bne(e,t){if(Cc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sne=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(s){return a.includes(s)})})},wne=function(t){return t},jne=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Qu=function(t,n){return Object.keys(n).reduce(function(r,a){return uD(uD({},r),{},T$({},a,t(a,n[a])))},{})},cD=function(t,n,r){return t.map(function(a){return"".concat(jne(a)," ").concat(n,"ms ").concat(r)}).join(",")};function Ane(e,t){return Tne(e)||_ne(e,t)||E$(e,t)||One()}function One(){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 _ne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Tne(e){if(Array.isArray(e))return e}function Ene(e){return Mne(e)||Cne(e)||E$(e)||Nne()}function Nne(){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 E$(e,t){if(e){if(typeof e=="string")return SS(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 SS(e,t)}}function Cne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mne(e){if(Array.isArray(e))return SS(e)}function SS(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 Qh=1e-4,N$=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},C$=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},fD=function(t,n){return function(r){var a=N$(t,n);return C$(a,r)}},Pne=function(t,n){return function(r){var a=N$(t,n),s=[].concat(Ene(a.map(function(l,c){return l*c}).slice(1)),[0]);return C$(s,r)}},dD=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0],s=n[1],l=n[2],c=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,s=0,l=1,c=1;break;case"ease":a=.25,s=.1,l=.25,c=1;break;case"ease-in":a=.42,s=0,l=1,c=1;break;case"ease-out":a=.42,s=0,l=.58,c=1;break;case"ease-in-out":a=0,s=0,l=.58,c=1;break;default:{var f=n[0].split("(");if(f[0]==="cubic-bezier"&&f[1].split(")")[0].split(",").length===4){var d=f[1].split(")")[0].split(",").map(function(b){return parseFloat(b)}),m=Ane(d,4);a=m[0],s=m[1],l=m[2],c=m[3]}}}var y=fD(a,l),g=fD(s,c),S=Pne(a,l),j=function(A){return A>1?1:A<0?0:A},w=function(A){for(var _=A>1?1:A,T=_,C=0;C<8;++C){var O=y(T)-_,E=S(T);if(Math.abs(O-_)<Qh||E<Qh)return g(T);T=j(T-O/E)}return g(T)};return w.isStepper=!1,w},Rne=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,s=a===void 0?8:a,l=t.dt,c=l===void 0?17:l,f=function(m,y,g){var S=-(m-y)*r,j=g*s,w=g+(S-j)*c/1e3,b=g*c/1e3+m;return Math.abs(b-y)<Qh&&Math.abs(w)<Qh?[y,0]:[b,w]};return f.isStepper=!0,f.dt=c,f},Dne=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 dD(a);case"spring":return Rne();default:if(a.split("(")[0]==="cubic-bezier")return dD(a)}return typeof a=="function"?a:null};function Mc(e){"@babel/helpers - typeof";return Mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mc(e)}function hD(e){return zne(e)||Lne(e)||M$(e)||kne()}function kne(){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 Lne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zne(e){if(Array.isArray(e))return jS(e)}function pD(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 on(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pD(Object(n),!0).forEach(function(r){wS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wS(e,t,n){return t=$ne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $ne(e){var t=Bne(e,"string");return Mc(t)==="symbol"?t:String(t)}function Bne(e,t){if(Mc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qne(e,t){return Vne(e)||Une(e,t)||M$(e,t)||Ine()}function Ine(){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 M$(e,t){if(e){if(typeof e=="string")return jS(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 jS(e,t)}}function jS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Une(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Vne(e){if(Array.isArray(e))return e}var Jh=function(t,n,r){return t+(n-t)*r},AS=function(t){var n=t.from,r=t.to;return n!==r},Hne=function e(t,n,r){var a=Qu(function(s,l){if(AS(l)){var c=t(l.from,l.to,l.velocity),f=qne(c,2),d=f[0],m=f[1];return on(on({},l),{},{from:d,velocity:m})}return l},n);return r<1?Qu(function(s,l){return AS(l)?on(on({},l),{},{velocity:Jh(l.velocity,a[s].velocity,r),from:Jh(l.from,a[s].from,r)}):l},n):e(t,a,r-1)};const Gne=(function(e,t,n,r,a){var s=Sne(e,t),l=s.reduce(function(b,A){return on(on({},b),{},wS({},A,[e[A],t[A]]))},{}),c=s.reduce(function(b,A){return on(on({},b),{},wS({},A,{from:e[A],velocity:0,to:t[A]}))},{}),f=-1,d,m,y=function(){return null},g=function(){return Qu(function(A,_){return _.from},c)},S=function(){return!Object.values(c).filter(AS).length},j=function(A){d||(d=A);var _=A-d,T=_/n.dt;c=Hne(n,c,T),a(on(on(on({},e),t),g())),d=A,S()||(f=requestAnimationFrame(y))},w=function(A){m||(m=A);var _=(A-m)/r,T=Qu(function(O,E){return Jh.apply(void 0,hD(E).concat([n(_)]))},l);if(a(on(on(on({},e),t),T)),_<1)f=requestAnimationFrame(y);else{var C=Qu(function(O,E){return Jh.apply(void 0,hD(E).concat([n(1)]))},l);a(on(on(on({},e),t),C))}};return y=n.isStepper?j:w,function(){return requestAnimationFrame(y),function(){cancelAnimationFrame(f)}}});function Zs(e){"@babel/helpers - typeof";return Zs=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},Zs(e)}var Fne=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Kne(e,t){if(e==null)return{};var n=Yne(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yne(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function E0(e){return Qne(e)||Zne(e)||Wne(e)||Xne()}function Xne(){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 Wne(e,t){if(e){if(typeof e=="string")return OS(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 OS(e,t)}}function Zne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qne(e){if(Array.isArray(e))return OS(e)}function OS(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 mD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mD(Object(n),!0).forEach(function(r){Vu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vu(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 Jne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ere(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 tre(e,t,n){return t&&ere(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function P$(e){var t=nre(e,"string");return Zs(t)==="symbol"?t:String(t)}function nre(e,t){if(Zs(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rre(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&&_S(e,t)}function _S(e,t){return _S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},_S(e,t)}function ire(e){var t=are();return function(){var r=ep(e),a;if(t){var s=ep(this).constructor;a=Reflect.construct(r,arguments,s)}else a=r.apply(this,arguments);return TS(this,a)}}function TS(e,t){if(t&&(Zs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ES(e)}function ES(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function are(){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 ep(e){return ep=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ep(e)}var Cr=(function(e){rre(n,e);var t=ire(n);function n(r,a){var s;Jne(this,n),s=t.call(this,r,a);var l=s.props,c=l.isActive,f=l.attributeName,d=l.from,m=l.to,y=l.steps,g=l.children,S=l.duration;if(s.handleStyleChange=s.handleStyleChange.bind(ES(s)),s.changeStyle=s.changeStyle.bind(ES(s)),!c||S<=0)return s.state={style:{}},typeof g=="function"&&(s.state={style:m}),TS(s);if(y&&y.length)s.state={style:y[0].style};else if(d){if(typeof g=="function")return s.state={style:d},TS(s);s.state={style:f?Vu({},f,d):d}}else s.state={style:{}};return s}return tre(n,[{key:"componentDidMount",value:function(){var a=this.props,s=a.isActive,l=a.canBegin;this.mounted=!0,!(!s||!l)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var s=this.props,l=s.isActive,c=s.canBegin,f=s.attributeName,d=s.shouldReAnimate,m=s.to,y=s.from,g=this.state.style;if(c){if(!l){var S={style:f?Vu({},f,m):m};this.state&&g&&(f&&g[f]!==m||!f&&g!==m)&&this.setState(S);return}if(!(fne(a.to,m)&&a.canBegin&&a.isActive)){var j=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var w=j||d?y:a.to;if(this.state&&g){var b={style:f?Vu({},f,w):w};(f&&g[f]!==w||!f&&g!==w)&&this.setState(b)}this.runAnimation(Sr(Sr({},this.props),{},{from:w,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 s=this,l=a.from,c=a.to,f=a.duration,d=a.easing,m=a.begin,y=a.onAnimationEnd,g=a.onAnimationStart,S=Gne(l,c,Dne(d),f,this.changeStyle),j=function(){s.stopJSAnimation=S()};this.manager.start([g,m,j,f,y])}},{key:"runStepAnimation",value:function(a){var s=this,l=a.steps,c=a.begin,f=a.onAnimationStart,d=l[0],m=d.style,y=d.duration,g=y===void 0?0:y,S=function(w,b,A){if(A===0)return w;var _=b.duration,T=b.easing,C=T===void 0?"ease":T,O=b.style,E=b.properties,M=b.onAnimationEnd,k=A>0?l[A-1]:b,D=E||Object.keys(O);if(typeof C=="function"||C==="spring")return[].concat(E0(w),[s.runJSAnimation.bind(s,{from:k.style,to:O,duration:_,easing:C}),_]);var B=cD(D,_,C),I=Sr(Sr(Sr({},k.style),O),{},{transition:B});return[].concat(E0(w),[I,_,M]).filter(wne)};return this.manager.start([f].concat(E0(l.reduce(S,[m,Math.max(g,c)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=gne());var s=a.begin,l=a.duration,c=a.attributeName,f=a.to,d=a.easing,m=a.onAnimationStart,y=a.onAnimationEnd,g=a.steps,S=a.children,j=this.manager;if(this.unSubscribe=j.subscribe(this.handleStyleChange),typeof d=="function"||typeof S=="function"||d==="spring"){this.runJSAnimation(a);return}if(g.length>1){this.runStepAnimation(a);return}var w=c?Vu({},c,f):f,b=cD(Object.keys(w),l,d);j.start([m,s,Sr(Sr({},w),{},{transition:b}),l,y])}},{key:"render",value:function(){var a=this.props,s=a.children;a.begin;var l=a.duration;a.attributeName,a.easing;var c=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var f=Kne(a,Fne),d=P.Children.count(s),m=this.state.style;if(typeof s=="function")return s(m);if(!c||d===0||l<=0)return s;var y=function(S){var j=S.props,w=j.style,b=w===void 0?{}:w,A=j.className,_=P.cloneElement(S,Sr(Sr({},f),{},{style:Sr(Sr({},b),m),className:A}));return _};return d===1?y(P.Children.only(s)):q.createElement("div",null,P.Children.map(s,function(g){return y(g)}))}}]),n})(P.PureComponent);Cr.displayName="Animate";Cr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Cr.propTypes={from:Ze.oneOfType([Ze.object,Ze.string]),to:Ze.oneOfType([Ze.object,Ze.string]),attributeName:Ze.string,duration:Ze.number,begin:Ze.number,easing:Ze.oneOfType([Ze.string,Ze.func]),steps:Ze.arrayOf(Ze.shape({duration:Ze.number.isRequired,style:Ze.object.isRequired,easing:Ze.oneOfType([Ze.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Ze.func]),properties:Ze.arrayOf("string"),onAnimationEnd:Ze.func})),children:Ze.oneOfType([Ze.node,Ze.func]),isActive:Ze.bool,canBegin:Ze.bool,onAnimationEnd:Ze.func,shouldReAnimate:Ze.bool,onAnimationStart:Ze.func,onAnimationReStart:Ze.func};function Pc(e){"@babel/helpers - typeof";return Pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pc(e)}function tp(){return tp=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},tp.apply(this,arguments)}function ore(e,t){return cre(e)||ure(e,t)||lre(e,t)||sre()}function sre(){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 lre(e,t){if(e){if(typeof e=="string")return yD(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 yD(e,t)}}function yD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ure(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function cre(e){if(Array.isArray(e))return e}function vD(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 gD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vD(Object(n),!0).forEach(function(r){fre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fre(e,t,n){return t=dre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dre(e){var t=hre(e,"string");return Pc(t)=="symbol"?t:t+""}function hre(e,t){if(Pc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xD=function(t,n,r,a,s){var l=Math.min(Math.abs(r)/2,Math.abs(a)/2),c=a>=0?1:-1,f=r>=0?1:-1,d=a>=0&&r>=0||a<0&&r<0?1:0,m;if(l>0&&s instanceof Array){for(var y=[0,0,0,0],g=0,S=4;g<S;g++)y[g]=s[g]>l?l:s[g];m="M".concat(t,",").concat(n+c*y[0]),y[0]>0&&(m+="A ".concat(y[0],",").concat(y[0],",0,0,").concat(d,",").concat(t+f*y[0],",").concat(n)),m+="L ".concat(t+r-f*y[1],",").concat(n),y[1]>0&&(m+="A ".concat(y[1],",").concat(y[1],",0,0,").concat(d,`,
`).concat(t+r,",").concat(n+c*y[1])),m+="L ".concat(t+r,",").concat(n+a-c*y[2]),y[2]>0&&(m+="A ".concat(y[2],",").concat(y[2],",0,0,").concat(d,`,
`).concat(t+r-f*y[2],",").concat(n+a)),m+="L ".concat(t+f*y[3],",").concat(n+a),y[3]>0&&(m+="A ".concat(y[3],",").concat(y[3],",0,0,").concat(d,`,
`).concat(t,",").concat(n+a-c*y[3])),m+="Z"}else if(l>0&&s===+s&&s>0){var j=Math.min(l,s);m="M ".concat(t,",").concat(n+c*j,`
A `).concat(j,",").concat(j,",0,0,").concat(d,",").concat(t+f*j,",").concat(n,`
L `).concat(t+r-f*j,",").concat(n,`
A `).concat(j,",").concat(j,",0,0,").concat(d,",").concat(t+r,",").concat(n+c*j,`
L `).concat(t+r,",").concat(n+a-c*j,`
A `).concat(j,",").concat(j,",0,0,").concat(d,",").concat(t+r-f*j,",").concat(n+a,`
L `).concat(t+f*j,",").concat(n+a,`
A `).concat(j,",").concat(j,",0,0,").concat(d,",").concat(t,",").concat(n+a-c*j," Z")}else m="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return m},pre=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,s=n.x,l=n.y,c=n.width,f=n.height;if(Math.abs(c)>0&&Math.abs(f)>0){var d=Math.min(s,s+c),m=Math.max(s,s+c),y=Math.min(l,l+f),g=Math.max(l,l+f);return r>=d&&r<=m&&a>=y&&a<=g}return!1},mre={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Vj=function(t){var n=gD(gD({},mre),t),r=P.useRef(),a=P.useState(-1),s=ore(a,2),l=s[0],c=s[1];P.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var C=r.current.getTotalLength();C&&c(C)}catch{}},[]);var f=n.x,d=n.y,m=n.width,y=n.height,g=n.radius,S=n.className,j=n.animationEasing,w=n.animationDuration,b=n.animationBegin,A=n.isAnimationActive,_=n.isUpdateAnimationActive;if(f!==+f||d!==+d||m!==+m||y!==+y||m===0||y===0)return null;var T=Me("recharts-rectangle",S);return _?q.createElement(Cr,{canBegin:l>0,from:{width:m,height:y,x:f,y:d},to:{width:m,height:y,x:f,y:d},duration:w,animationEasing:j,isActive:_},function(C){var O=C.width,E=C.height,M=C.x,k=C.y;return q.createElement(Cr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:w,isActive:A,easing:j},q.createElement("path",tp({},Se(n,!0),{className:T,d:xD(M,k,O,E,g),ref:r})))}):q.createElement("path",tp({},Se(n,!0),{className:T,d:xD(f,d,m,y,g)}))},yre=["points","className","baseLinePoints","connectNulls"];function Cs(){return Cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cs.apply(this,arguments)}function vre(e,t){if(e==null)return{};var n=gre(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gre(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 bD(e){return wre(e)||Sre(e)||bre(e)||xre()}function xre(){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 bre(e,t){if(e){if(typeof e=="string")return NS(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 NS(e,t)}}function Sre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wre(e){if(Array.isArray(e))return NS(e)}function NS(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 SD=function(t){return t&&t.x===+t.x&&t.y===+t.y},jre=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){SD(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),SD(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Ju=function(t,n){var r=jre(t);n&&(r=[r.reduce(function(s,l){return[].concat(bD(s),bD(l))},[])]);var a=r.map(function(s){return s.reduce(function(l,c,f){return"".concat(l).concat(f===0?"M":"L").concat(c.x,",").concat(c.y)},"")}).join("");return r.length===1?"".concat(a,"Z"):a},Are=function(t,n,r){var a=Ju(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(Ju(n.reverse(),r).slice(1))},Ore=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,s=t.connectNulls,l=vre(t,yre);if(!n||!n.length)return null;var c=Me("recharts-polygon",r);if(a&&a.length){var f=l.stroke&&l.stroke!=="none",d=Are(n,a,s);return q.createElement("g",{className:c},q.createElement("path",Cs({},Se(l,!0),{fill:d.slice(-1)==="Z"?l.fill:"none",stroke:"none",d})),f?q.createElement("path",Cs({},Se(l,!0),{fill:"none",d:Ju(n,s)})):null,f?q.createElement("path",Cs({},Se(l,!0),{fill:"none",d:Ju(a,s)})):null)}var m=Ju(n,s);return q.createElement("path",Cs({},Se(l,!0),{fill:m.slice(-1)==="Z"?l.fill:"none",className:c,d:m}))};function CS(){return CS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CS.apply(this,arguments)}var of=function(t){var n=t.cx,r=t.cy,a=t.r,s=t.className,l=Me("recharts-dot",s);return n===+n&&r===+r&&a===+a?P.createElement("circle",CS({},Se(t,!1),Sh(t),{className:l,cx:n,cy:r,r:a})):null};function Rc(e){"@babel/helpers - typeof";return Rc=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},Rc(e)}var _re=["x","y","top","left","width","height","className"];function MS(){return MS=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},MS.apply(this,arguments)}function wD(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 Tre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wD(Object(n),!0).forEach(function(r){Ere(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ere(e,t,n){return t=Nre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nre(e){var t=Cre(e,"string");return Rc(t)=="symbol"?t:t+""}function Cre(e,t){if(Rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mre(e,t){if(e==null)return{};var n=Pre(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pre(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 Rre=function(t,n,r,a,s,l){return"M".concat(t,",").concat(s,"v").concat(a,"M").concat(l,",").concat(n,"h").concat(r)},Dre=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,s=a===void 0?0:a,l=t.top,c=l===void 0?0:l,f=t.left,d=f===void 0?0:f,m=t.width,y=m===void 0?0:m,g=t.height,S=g===void 0?0:g,j=t.className,w=Mre(t,_re),b=Tre({x:r,y:s,top:c,left:d,width:y,height:S},w);return!ue(r)||!ue(s)||!ue(y)||!ue(S)||!ue(c)||!ue(d)?null:q.createElement("path",MS({},Se(b,!0),{className:Me("recharts-cross",j),d:Rre(r,s,y,S,c,d)}))},N0,jD;function kre(){if(jD)return N0;jD=1;var e=Qp(),t=Kz(),n=ei();function r(a,s){return a&&a.length?e(a,n(s,2),t):void 0}return N0=r,N0}var Lre=kre();const zre=nt(Lre);var C0,AD;function $re(){if(AD)return C0;AD=1;var e=Qp(),t=ei(),n=Yz();function r(a,s){return a&&a.length?e(a,t(s,2),n):void 0}return C0=r,C0}var Bre=$re();const qre=nt(Bre);var Ire=["cx","cy","angle","ticks","axisLine"],Ure=["ticks","tick","angle","tickFormatter","stroke"];function Qs(e){"@babel/helpers - typeof";return Qs=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},Qs(e)}function ec(){return ec=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},ec.apply(this,arguments)}function OD(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?OD(Object(n),!0).forEach(function(r){nm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _D(e,t){if(e==null)return{};var n=Vre(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vre(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 Hre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TD(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,D$(r.key),r)}}function Gre(e,t,n){return t&&TD(e.prototype,t),n&&TD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fre(e,t,n){return t=np(t),Kre(e,R$()?Reflect.construct(t,n||[],np(e).constructor):t.apply(e,n))}function Kre(e,t){if(t&&(Qs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yre(e)}function Yre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R$=function(){return!!e})()}function np(e){return np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},np(e)}function Xre(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&&PS(e,t)}function PS(e,t){return PS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},PS(e,t)}function nm(e,t,n){return t=D$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D$(e){var t=Wre(e,"string");return Qs(t)=="symbol"?t:t+""}function Wre(e,t){if(Qs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rm=(function(e){function t(){return Hre(this,t),Fre(this,t,arguments)}return Xre(t,e),Gre(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,s=this.props,l=s.angle,c=s.cx,f=s.cy;return pt(c,f,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,s=r.cy,l=r.angle,c=r.ticks,f=zre(c,function(m){return m.coordinate||0}),d=qre(c,function(m){return m.coordinate||0});return{cx:a,cy:s,startAngle:l,endAngle:l,innerRadius:d.coordinate||0,outerRadius:f.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,s=r.cy,l=r.angle,c=r.ticks,f=r.axisLine,d=_D(r,Ire),m=c.reduce(function(j,w){return[Math.min(j[0],w.coordinate),Math.max(j[1],w.coordinate)]},[1/0,-1/0]),y=pt(a,s,m[0],l),g=pt(a,s,m[1],l),S=to(to(to({},Se(d,!1)),{},{fill:"none"},Se(f,!1)),{},{x1:y.x,y1:y.y,x2:g.x,y2:g.y});return q.createElement("line",ec({className:"recharts-polar-radius-axis-line"},S))}},{key:"renderTicks",value:function(){var r=this,a=this.props,s=a.ticks,l=a.tick,c=a.angle,f=a.tickFormatter,d=a.stroke,m=_D(a,Ure),y=this.getTickTextAnchor(),g=Se(m,!1),S=Se(l,!1),j=s.map(function(w,b){var A=r.getTickValueCoord(w),_=to(to(to(to({textAnchor:y,transform:"rotate(".concat(90-c,", ").concat(A.x,", ").concat(A.y,")")},g),{},{stroke:"none",fill:d},S),{},{index:b},A),{},{payload:w});return q.createElement(qe,ec({className:Me("recharts-polar-radius-axis-tick",w$(l)),key:"tick-".concat(w.coordinate)},Ao(r.props,w,b)),t.renderTickItem(l,_,f?f(w.value,b):w.value))});return q.createElement(qe,{className:"recharts-polar-radius-axis-ticks"},j)}},{key:"render",value:function(){var r=this.props,a=r.ticks,s=r.axisLine,l=r.tick;return!a||!a.length?null:q.createElement(qe,{className:Me("recharts-polar-radius-axis",this.props.className)},s&&this.renderAxisLine(),l&&this.renderTicks(),Qt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,s){var l;return q.isValidElement(r)?l=q.cloneElement(r,a):_e(r)?l=r(a):l=q.createElement(Oo,ec({},a,{className:"recharts-polar-radius-axis-tick-value"}),s),l}}])})(P.PureComponent);nm(rm,"displayName","PolarRadiusAxis");nm(rm,"axisType","radiusAxis");nm(rm,"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 Js(e){"@babel/helpers - typeof";return Js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Js(e)}function so(){return so=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},so.apply(this,arguments)}function ED(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function no(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ED(Object(n),!0).forEach(function(r){im(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ED(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ND(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,L$(r.key),r)}}function Qre(e,t,n){return t&&ND(e.prototype,t),n&&ND(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jre(e,t,n){return t=rp(t),eie(e,k$()?Reflect.construct(t,n||[],rp(e).constructor):t.apply(e,n))}function eie(e,t){if(t&&(Js(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tie(e)}function tie(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 rp(e){return rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rp(e)}function nie(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&&RS(e,t)}function RS(e,t){return RS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},RS(e,t)}function im(e,t,n){return t=L$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L$(e){var t=rie(e,"string");return Js(t)=="symbol"?t:t+""}function rie(e,t){if(Js(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Js(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iie=Math.PI/180,CD=1e-5,am=(function(e){function t(){return Zre(this,t),Jre(this,t,arguments)}return nie(t,e),Qre(t,[{key:"getTickLineCoord",value:function(r){var a=this.props,s=a.cx,l=a.cy,c=a.radius,f=a.orientation,d=a.tickSize,m=d||8,y=pt(s,l,c,r.coordinate),g=pt(s,l,c+(f==="inner"?-1:1)*m,r.coordinate);return{x1:y.x,y1:y.y,x2:g.x,y2:g.y}}},{key:"getTickTextAnchor",value:function(r){var a=this.props.orientation,s=Math.cos(-r.coordinate*iie),l;return s>CD?l=a==="outer"?"start":"end":s<-CD?l=a==="outer"?"end":"start":l="middle",l}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,s=r.cy,l=r.radius,c=r.axisLine,f=r.axisLineType,d=no(no({},Se(this.props,!1)),{},{fill:"none"},Se(c,!1));if(f==="circle")return q.createElement(of,so({className:"recharts-polar-angle-axis-line"},d,{cx:a,cy:s,r:l}));var m=this.props.ticks,y=m.map(function(g){return pt(a,s,l,g.coordinate)});return q.createElement(Ore,so({className:"recharts-polar-angle-axis-line"},d,{points:y}))}},{key:"renderTicks",value:function(){var r=this,a=this.props,s=a.ticks,l=a.tick,c=a.tickLine,f=a.tickFormatter,d=a.stroke,m=Se(this.props,!1),y=Se(l,!1),g=no(no({},m),{},{fill:"none"},Se(c,!1)),S=s.map(function(j,w){var b=r.getTickLineCoord(j),A=r.getTickTextAnchor(j),_=no(no(no({textAnchor:A},m),{},{stroke:"none",fill:d},y),{},{index:w,payload:j,x:b.x2,y:b.y2});return q.createElement(qe,so({className:Me("recharts-polar-angle-axis-tick",w$(l)),key:"tick-".concat(j.coordinate)},Ao(r.props,j,w)),c&&q.createElement("line",so({className:"recharts-polar-angle-axis-tick-line"},g,b)),l&&t.renderTickItem(l,_,f?f(j.value,w):j.value))});return q.createElement(qe,{className:"recharts-polar-angle-axis-ticks"},S)}},{key:"render",value:function(){var r=this.props,a=r.ticks,s=r.radius,l=r.axisLine;return s<=0||!a||!a.length?null:q.createElement(qe,{className:Me("recharts-polar-angle-axis",this.props.className)},l&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,s){var l;return q.isValidElement(r)?l=q.cloneElement(r,a):_e(r)?l=r(a):l=q.createElement(Oo,so({},a,{className:"recharts-polar-angle-axis-tick-value"}),s),l}}])})(P.PureComponent);im(am,"displayName","PolarAngleAxis");im(am,"axisType","angleAxis");im(am,"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 M0,MD;function aie(){if(MD)return M0;MD=1;var e=K4(),t=e(Object.getPrototypeOf,Object);return M0=t,M0}var P0,PD;function oie(){if(PD)return P0;PD=1;var e=ki(),t=aie(),n=Li(),r="[object Object]",a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,f=l.call(Object);function d(m){if(!n(m)||e(m)!=r)return!1;var y=t(m);if(y===null)return!0;var g=c.call(y,"constructor")&&y.constructor;return typeof g=="function"&&g instanceof g&&l.call(g)==f}return P0=d,P0}var sie=oie();const lie=nt(sie);var R0,RD;function uie(){if(RD)return R0;RD=1;var e=ki(),t=Li(),n="[object Boolean]";function r(a){return a===!0||a===!1||t(a)&&e(a)==n}return R0=r,R0}var cie=uie();const fie=nt(cie);function Dc(e){"@babel/helpers - typeof";return Dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dc(e)}function ip(){return ip=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},ip.apply(this,arguments)}function die(e,t){return yie(e)||mie(e,t)||pie(e,t)||hie()}function hie(){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 pie(e,t){if(e){if(typeof e=="string")return DD(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 DD(e,t)}}function DD(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 mie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function yie(e){if(Array.isArray(e))return e}function kD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function LD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kD(Object(n),!0).forEach(function(r){vie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vie(e,t,n){return t=gie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gie(e){var t=xie(e,"string");return Dc(t)=="symbol"?t:t+""}function xie(e,t){if(Dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zD=function(t,n,r,a,s){var l=r-a,c;return c="M ".concat(t,",").concat(n),c+="L ".concat(t+r,",").concat(n),c+="L ".concat(t+r-l/2,",").concat(n+s),c+="L ".concat(t+r-l/2-a,",").concat(n+s),c+="L ".concat(t,",").concat(n," Z"),c},bie={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Sie=function(t){var n=LD(LD({},bie),t),r=P.useRef(),a=P.useState(-1),s=die(a,2),l=s[0],c=s[1];P.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var T=r.current.getTotalLength();T&&c(T)}catch{}},[]);var f=n.x,d=n.y,m=n.upperWidth,y=n.lowerWidth,g=n.height,S=n.className,j=n.animationEasing,w=n.animationDuration,b=n.animationBegin,A=n.isUpdateAnimationActive;if(f!==+f||d!==+d||m!==+m||y!==+y||g!==+g||m===0&&y===0||g===0)return null;var _=Me("recharts-trapezoid",S);return A?q.createElement(Cr,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:g,x:f,y:d},to:{upperWidth:m,lowerWidth:y,height:g,x:f,y:d},duration:w,animationEasing:j,isActive:A},function(T){var C=T.upperWidth,O=T.lowerWidth,E=T.height,M=T.x,k=T.y;return q.createElement(Cr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:w,easing:j},q.createElement("path",ip({},Se(n,!0),{className:_,d:zD(M,k,C,O,E),ref:r})))}):q.createElement("g",null,q.createElement("path",ip({},Se(n,!0),{className:_,d:zD(f,d,m,y,g)})))},wie=["option","shapeType","propTransformer","activeClassName","isActive"];function kc(e){"@babel/helpers - typeof";return kc=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},kc(e)}function jie(e,t){if(e==null)return{};var n=Aie(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Aie(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 $D(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 ap(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$D(Object(n),!0).forEach(function(r){Oie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$D(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oie(e,t,n){return t=_ie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ie(e){var t=Tie(e,"string");return kc(t)=="symbol"?t:t+""}function Tie(e,t){if(kc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Eie(e,t){return ap(ap({},t),e)}function Nie(e,t){return e==="symbols"}function BD(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return q.createElement(Vj,n);case"trapezoid":return q.createElement(Sie,n);case"sector":return q.createElement(O$,n);case"symbols":if(Nie(t))return q.createElement(lj,n);break;default:return null}}function Cie(e){return P.isValidElement(e)?e.props:e}function z$(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?Eie:r,s=e.activeClassName,l=s===void 0?"recharts-active-shape":s,c=e.isActive,f=jie(e,wie),d;if(P.isValidElement(t))d=P.cloneElement(t,ap(ap({},f),Cie(t)));else if(_e(t))d=t(f);else if(lie(t)&&!fie(t)){var m=a(t,f);d=q.createElement(BD,{shapeType:n,elementProps:m})}else{var y=f;d=q.createElement(BD,{shapeType:n,elementProps:y})}return c?q.createElement(qe,{className:l},d):d}function om(e,t){return t!=null&&"trapezoids"in e.props}function sm(e,t){return t!=null&&"sectors"in e.props}function Lc(e,t){return t!=null&&"points"in e.props}function Mie(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,s=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return a&&s}function Pie(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Rie(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function Die(e,t){var n;return om(e,t)?n=Mie:sm(e,t)?n=Pie:Lc(e,t)&&(n=Rie),n}function kie(e,t){var n;return om(e,t)?n="trapezoids":sm(e,t)?n="sectors":Lc(e,t)&&(n="points"),n}function Lie(e,t){if(om(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(sm(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 Lc(e,t)?t.payload:{}}function zie(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=kie(n,t),s=Lie(n,t),l=r.filter(function(f,d){var m=_o(s,f),y=n.props[a].filter(function(j){var w=Die(n,t);return w(j,t)}),g=n.props[a].indexOf(y[y.length-1]),S=d===g;return m&&S}),c=r.indexOf(l[l.length-1]);return c}var sh;function el(e){"@babel/helpers - typeof";return el=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},el(e)}function Ms(){return Ms=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},Ms.apply(this,arguments)}function qD(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 dt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qD(Object(n),!0).forEach(function(r){lr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ID(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,B$(r.key),r)}}function Bie(e,t,n){return t&&ID(e.prototype,t),n&&ID(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qie(e,t,n){return t=op(t),Iie(e,$$()?Reflect.construct(t,n||[],op(e).constructor):t.apply(e,n))}function Iie(e,t){if(t&&(el(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uie(e)}function Uie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($$=function(){return!!e})()}function op(e){return op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},op(e)}function Vie(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&&DS(e,t)}function DS(e,t){return DS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},DS(e,t)}function lr(e,t,n){return t=B$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B$(e){var t=Hie(e,"string");return el(t)=="symbol"?t:t+""}function Hie(e,t){if(el(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(el(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $i=(function(e){function t(n){var r;return $ie(this,t),r=qie(this,t,[n]),lr(r,"pieRef",null),lr(r,"sectorRefs",[]),lr(r,"id",Po("recharts-pie-")),lr(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),_e(a)&&a()}),lr(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),_e(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return Vie(t,e),Bie(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 s=this.props,l=s.label,c=s.labelLine,f=s.dataKey,d=s.valueKey,m=Se(this.props,!1),y=Se(l,!1),g=Se(c,!1),S=l&&l.offsetRadius||20,j=r.map(function(w,b){var A=(w.startAngle+w.endAngle)/2,_=pt(w.cx,w.cy,w.outerRadius+S,A),T=dt(dt(dt(dt({},m),w),{},{stroke:"none"},y),{},{index:b,textAnchor:t.getTextAnchor(_.x,w.cx)},_),C=dt(dt(dt(dt({},m),w),{},{fill:"none",stroke:w.fill},g),{},{index:b,points:[pt(w.cx,w.cy,w.outerRadius,A),_]}),O=f;return Ee(f)&&Ee(d)?O="value":Ee(f)&&(O=d),q.createElement(qe,{key:"label-".concat(w.startAngle,"-").concat(w.endAngle,"-").concat(w.midAngle,"-").concat(b)},c&&t.renderLabelLineItem(c,C,"line"),t.renderLabelItem(l,T,Pt(w,O)))});return q.createElement(qe,{className:"recharts-pie-labels"},j)}},{key:"renderSectorsStatically",value:function(r){var a=this,s=this.props,l=s.activeShape,c=s.blendStroke,f=s.inactiveShape;return r.map(function(d,m){if((d==null?void 0:d.startAngle)===0&&(d==null?void 0:d.endAngle)===0&&r.length!==1)return null;var y=a.isActiveIndex(m),g=f&&a.hasActiveIndex()?f:null,S=y?l:g,j=dt(dt({},d),{},{stroke:c?d.fill:d.stroke,tabIndex:-1});return q.createElement(qe,Ms({ref:function(b){b&&!a.sectorRefs.includes(b)&&a.sectorRefs.push(b)},tabIndex:-1,className:"recharts-pie-sector"},Ao(a.props,d,m),{key:"sector-".concat(d==null?void 0:d.startAngle,"-").concat(d==null?void 0:d.endAngle,"-").concat(d.midAngle,"-").concat(m)}),q.createElement(z$,Ms({option:S,isActive:y,shapeType:"sector"},j)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,a=this.props,s=a.sectors,l=a.isAnimationActive,c=a.animationBegin,f=a.animationDuration,d=a.animationEasing,m=a.animationId,y=this.state,g=y.prevSectors,S=y.prevIsAnimationActive;return q.createElement(Cr,{begin:c,duration:f,isActive:l,easing:d,from:{t:0},to:{t:1},key:"pie-".concat(m,"-").concat(S),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(j){var w=j.t,b=[],A=s&&s[0],_=A.startAngle;return s.forEach(function(T,C){var O=g&&g[C],E=C>0?Gn(T,"paddingAngle",0):0;if(O){var M=Gt(O.endAngle-O.startAngle,T.endAngle-T.startAngle),k=dt(dt({},T),{},{startAngle:_+E,endAngle:_+M(w)+E});b.push(k),_=k.endAngle}else{var D=T.endAngle,B=T.startAngle,I=Gt(0,D-B),z=I(w),F=dt(dt({},T),{},{startAngle:_+E,endAngle:_+z+E});b.push(F),_=F.endAngle}}),q.createElement(qe,null,r.renderSectorsStatically(b))})}},{key:"attachKeyboardHandlers",value:function(r){var a=this;r.onkeydown=function(s){if(!s.altKey)switch(s.key){case"ArrowLeft":{var l=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[l].focus(),a.setState({sectorToFocus:l});break}case"ArrowRight":{var c=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[c].focus(),a.setState({sectorToFocus:c});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,s=r.isAnimationActive,l=this.state.prevSectors;return s&&a&&a.length&&(!l||!_o(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,s=a.hide,l=a.sectors,c=a.className,f=a.label,d=a.cx,m=a.cy,y=a.innerRadius,g=a.outerRadius,S=a.isAnimationActive,j=this.state.isAnimationFinished;if(s||!l||!l.length||!ue(d)||!ue(m)||!ue(y)||!ue(g))return null;var w=Me("recharts-pie",c);return q.createElement(qe,{tabIndex:this.props.rootTabIndex,className:w,ref:function(A){r.pieRef=A}},this.renderSectors(),f&&this.renderLabels(l),Qt.renderCallByParent(this.props,null,!1),(!S||j)&&Gr.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,s){if(q.isValidElement(r))return q.cloneElement(r,a);if(_e(r))return r(a);var l=Me("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return q.createElement(So,Ms({},a,{key:s,type:"linear",className:l}))}},{key:"renderLabelItem",value:function(r,a,s){if(q.isValidElement(r))return q.cloneElement(r,a);var l=s;if(_e(r)&&(l=r(a),q.isValidElement(l)))return l;var c=Me("recharts-pie-label-text",typeof r!="boolean"&&!_e(r)?r.className:"");return q.createElement(Oo,Ms({},a,{alignmentBaseline:"middle",className:c}),l)}}])})(P.PureComponent);sh=$i;lr($i,"displayName","Pie");lr($i,"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:!Ma.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});lr($i,"parseDeltaAngle",function(e,t){var n=gn(t-e),r=Math.min(Math.abs(t-e),360);return n*r});lr($i,"getRealPieData",function(e){var t=e.data,n=e.children,r=Se(e,!1),a=Fn(n,Gp);return t&&t.length?t.map(function(s,l){return dt(dt(dt({payload:s},r),s),a&&a[l]&&a[l].props)}):a&&a.length?a.map(function(s){return dt(dt({},r),s.props)}):[]});lr($i,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,s=t.height,l=S$(a,s),c=r+xn(e.cx,a,a/2),f=n+xn(e.cy,s,s/2),d=xn(e.innerRadius,l,0),m=xn(e.outerRadius,l,l*.8),y=e.maxRadius||Math.sqrt(a*a+s*s)/2;return{cx:c,cy:f,innerRadius:d,outerRadius:m,maxRadius:y}});lr($i,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?dt(dt({},t.type.defaultProps),t.props):t.props,a=sh.getRealPieData(r);if(!a||!a.length)return null;var s=r.cornerRadius,l=r.startAngle,c=r.endAngle,f=r.paddingAngle,d=r.dataKey,m=r.nameKey,y=r.valueKey,g=r.tooltipType,S=Math.abs(r.minAngle),j=sh.parseCoordinateOfPie(r,n),w=sh.parseDeltaAngle(l,c),b=Math.abs(w),A=d;Ee(d)&&Ee(y)?(Er(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),A="value"):Ee(d)&&(Er(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),A=y);var _=a.filter(function(k){return Pt(k,A,0)!==0}).length,T=(b>=360?_:_-1)*f,C=b-_*S-T,O=a.reduce(function(k,D){var B=Pt(D,A,0);return k+(ue(B)?B:0)},0),E;if(O>0){var M;E=a.map(function(k,D){var B=Pt(k,A,0),I=Pt(k,m,D),z=(ue(B)?B:0)/O,F;D?F=M.endAngle+gn(w)*f*(B!==0?1:0):F=l;var X=F+gn(w)*((B!==0?S:0)+z*C),Y=(F+X)/2,$=(j.innerRadius+j.outerRadius)/2,K=[{name:I,value:B,payload:k,dataKey:A,type:g}],Q=pt(j.cx,j.cy,$,Y);return M=dt(dt(dt({percent:z,cornerRadius:s,name:I,tooltipPayload:K,midAngle:Y,middleRadius:$,tooltipPosition:Q},k),j),{},{value:Pt(k,A),startAngle:F,endAngle:X,payload:k,paddingAngle:gn(w)*f}),M})}return dt(dt({},j),{},{sectors:E,data:a})});var D0,UD;function Gie(){if(UD)return D0;UD=1;var e=Math.ceil,t=Math.max;function n(r,a,s,l){for(var c=-1,f=t(e((a-r)/(s||1)),0),d=Array(f);f--;)d[l?f:++c]=r,r+=s;return d}return D0=n,D0}var k0,VD;function q$(){if(VD)return k0;VD=1;var e=uz(),t=1/0,n=17976931348623157e292;function r(a){if(!a)return a===0?a:0;if(a=e(a),a===t||a===-t){var s=a<0?-1:1;return s*n}return a===a?a:0}return k0=r,k0}var L0,HD;function Fie(){if(HD)return L0;HD=1;var e=Gie(),t=Hp(),n=q$();function r(a){return function(s,l,c){return c&&typeof c!="number"&&t(s,l,c)&&(l=c=void 0),s=n(s),l===void 0?(l=s,s=0):l=n(l),c=c===void 0?s<l?1:-1:n(c),e(s,l,c,a)}}return L0=r,L0}var z0,GD;function Kie(){if(GD)return z0;GD=1;var e=Fie(),t=e();return z0=t,z0}var Yie=Kie();const sp=nt(Yie);function zc(e){"@babel/helpers - typeof";return zc=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},zc(e)}function FD(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 KD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FD(Object(n),!0).forEach(function(r){I$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function I$(e,t,n){return t=Xie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xie(e){var t=Wie(e,"string");return zc(t)=="symbol"?t:t+""}function Wie(e,t){if(zc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zie=["Webkit","Moz","O","ms"],Qie=function(t,n){var r=t.replace(/(\w)/,function(s){return s.toUpperCase()}),a=Zie.reduce(function(s,l){return KD(KD({},s),{},I$({},l+r,n))},{});return a[t]=n,a};function tl(e){"@babel/helpers - typeof";return tl=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},tl(e)}function lp(){return lp=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},lp.apply(this,arguments)}function YD(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 $0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YD(Object(n),!0).forEach(function(r){qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XD(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,V$(r.key),r)}}function eae(e,t,n){return t&&XD(e.prototype,t),n&&XD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tae(e,t,n){return t=up(t),nae(e,U$()?Reflect.construct(t,n||[],up(e).constructor):t.apply(e,n))}function nae(e,t){if(t&&(tl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rae(e)}function rae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U$=function(){return!!e})()}function up(e){return up=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},up(e)}function iae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kS(e,t)}function kS(e,t){return kS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},kS(e,t)}function qn(e,t,n){return t=V$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V$(e){var t=aae(e,"string");return tl(t)=="symbol"?t:t+""}function aae(e,t){if(tl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var oae=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,s=t.x,l=t.width,c=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,d=Wu().domain(sp(0,f)).range([s,s+l-c]),m=d.domain().map(function(y){return d(y)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:d(r),endX:d(a),scale:d,scaleValues:m}},WD=function(t){return t.changedTouches&&!!t.changedTouches.length},nl=(function(e){function t(n){var r;return Jie(this,t),r=tae(this,t,[n]),qn(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),qn(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),qn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,s=a.endIndex,l=a.onDragEnd,c=a.startIndex;l==null||l({endIndex:s,startIndex:c})}),r.detachDragEndListener()}),qn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),qn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),qn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),qn(r,"handleSlideDragStart",function(a){var s=WD(a)?a.changedTouches[0]:a;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:s.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return iae(t,e),eae(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var a=r.startX,s=r.endX,l=this.state.scaleValues,c=this.props,f=c.gap,d=c.data,m=d.length-1,y=Math.min(a,s),g=Math.max(a,s),S=t.getIndexInRange(l,y),j=t.getIndexInRange(l,g);return{startIndex:S-S%f,endIndex:j===m?m:j-j%f}}},{key:"getTextOfTick",value:function(r){var a=this.props,s=a.data,l=a.tickFormatter,c=a.dataKey,f=Pt(s[r],c,r);return _e(l)?l(f,r):f}},{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,s=a.slideMoveStartX,l=a.startX,c=a.endX,f=this.props,d=f.x,m=f.width,y=f.travellerWidth,g=f.startIndex,S=f.endIndex,j=f.onChange,w=r.pageX-s;w>0?w=Math.min(w,d+m-y-c,d+m-y-l):w<0&&(w=Math.max(w,d-l,d-c));var b=this.getIndex({startX:l+w,endX:c+w});(b.startIndex!==g||b.endIndex!==S)&&j&&j(b),this.setState({startX:l+w,endX:c+w,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var s=WD(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:s.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var a=this.state,s=a.brushMoveStartX,l=a.movingTravellerId,c=a.endX,f=a.startX,d=this.state[l],m=this.props,y=m.x,g=m.width,S=m.travellerWidth,j=m.onChange,w=m.gap,b=m.data,A={startX:this.state.startX,endX:this.state.endX},_=r.pageX-s;_>0?_=Math.min(_,y+g-S-d):_<0&&(_=Math.max(_,y-d)),A[l]=d+_;var T=this.getIndex(A),C=T.startIndex,O=T.endIndex,E=function(){var k=b.length-1;return l==="startX"&&(c>f?C%w===0:O%w===0)||c<f&&O===k||l==="endX"&&(c>f?O%w===0:C%w===0)||c>f&&O===k};this.setState(qn(qn({},l,d+_),"brushMoveStartX",r.pageX),function(){j&&E()&&j(T)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var s=this,l=this.state,c=l.scaleValues,f=l.startX,d=l.endX,m=this.state[a],y=c.indexOf(m);if(y!==-1){var g=y+r;if(!(g===-1||g>=c.length)){var S=c[g];a==="startX"&&S>=d||a==="endX"&&S<=f||this.setState(qn({},a,S),function(){s.props.onChange(s.getIndex({startX:s.state.startX,endX:s.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,a=r.x,s=r.y,l=r.width,c=r.height,f=r.fill,d=r.stroke;return q.createElement("rect",{stroke:d,fill:f,x:a,y:s,width:l,height:c})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,s=r.y,l=r.width,c=r.height,f=r.data,d=r.children,m=r.padding,y=P.Children.only(d);return y?q.cloneElement(y,{x:a,y:s,width:l,height:c,margin:m,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,a){var s,l,c=this,f=this.props,d=f.y,m=f.travellerWidth,y=f.height,g=f.traveller,S=f.ariaLabel,j=f.data,w=f.startIndex,b=f.endIndex,A=Math.max(r,this.props.x),_=$0($0({},Se(this.props,!1)),{},{x:A,y:d,width:m,height:y}),T=S||"Min value: ".concat((s=j[w])===null||s===void 0?void 0:s.name,", Max value: ").concat((l=j[b])===null||l===void 0?void 0:l.name);return q.createElement(qe,{tabIndex:0,role:"slider","aria-label":T,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(O){["ArrowLeft","ArrowRight"].includes(O.key)&&(O.preventDefault(),O.stopPropagation(),c.handleTravellerMoveKeyboard(O.key==="ArrowRight"?1:-1,a))},onFocus:function(){c.setState({isTravellerFocused:!0})},onBlur:function(){c.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(g,_))}},{key:"renderSlide",value:function(r,a){var s=this.props,l=s.y,c=s.height,f=s.stroke,d=s.travellerWidth,m=Math.min(r,a)+d,y=Math.max(Math.abs(a-r)-d,0);return q.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:f,fillOpacity:.2,x:m,y:l,width:y,height:c})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,s=r.endIndex,l=r.y,c=r.height,f=r.travellerWidth,d=r.stroke,m=this.state,y=m.startX,g=m.endX,S=5,j={pointerEvents:"none",fill:d};return q.createElement(qe,{className:"recharts-brush-texts"},q.createElement(Oo,lp({textAnchor:"end",verticalAnchor:"middle",x:Math.min(y,g)-S,y:l+c/2},j),this.getTextOfTick(a)),q.createElement(Oo,lp({textAnchor:"start",verticalAnchor:"middle",x:Math.max(y,g)+f+S,y:l+c/2},j),this.getTextOfTick(s)))}},{key:"render",value:function(){var r=this.props,a=r.data,s=r.className,l=r.children,c=r.x,f=r.y,d=r.width,m=r.height,y=r.alwaysShowText,g=this.state,S=g.startX,j=g.endX,w=g.isTextActive,b=g.isSlideMoving,A=g.isTravellerMoving,_=g.isTravellerFocused;if(!a||!a.length||!ue(c)||!ue(f)||!ue(d)||!ue(m)||d<=0||m<=0)return null;var T=Me("recharts-brush",s),C=q.Children.count(l)===1,O=Qie("userSelect","none");return q.createElement(qe,{className:T,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),C&&this.renderPanorama(),this.renderSlide(S,j),this.renderTravellerLayer(S,"startX"),this.renderTravellerLayer(j,"endX"),(w||b||A||_||y)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,s=r.y,l=r.width,c=r.height,f=r.stroke,d=Math.floor(s+c/2)-1;return q.createElement(q.Fragment,null,q.createElement("rect",{x:a,y:s,width:l,height:c,fill:f,stroke:"none"}),q.createElement("line",{x1:a+1,y1:d,x2:a+l-1,y2:d,fill:"none",stroke:"#fff"}),q.createElement("line",{x1:a+1,y1:d+2,x2:a+l-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var s;return q.isValidElement(r)?s=q.cloneElement(r,a):_e(r)?s=r(a):s=t.renderDefaultTraveller(a),s}},{key:"getDerivedStateFromProps",value:function(r,a){var s=r.data,l=r.width,c=r.x,f=r.travellerWidth,d=r.updateId,m=r.startIndex,y=r.endIndex;if(s!==a.prevData||d!==a.prevUpdateId)return $0({prevData:s,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:l},s&&s.length?oae({data:s,width:l,x:c,travellerWidth:f,startIndex:m,endIndex:y}):{scale:null,scaleValues:null});if(a.scale&&(l!==a.prevWidth||c!==a.prevX||f!==a.prevTravellerWidth)){a.scale.range([c,c+l-f]);var g=a.scale.domain().map(function(S){return a.scale(S)});return{prevData:s,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:l,startX:a.scale(r.startIndex),endX:a.scale(r.endIndex),scaleValues:g}}return null}},{key:"getIndexInRange",value:function(r,a){for(var s=r.length,l=0,c=s-1;c-l>1;){var f=Math.floor((l+c)/2);r[f]>a?c=f:l=f}return a>=r[c]?c:l}}])})(P.PureComponent);qn(nl,"displayName","Brush");qn(nl,"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 B0,ZD;function sae(){if(ZD)return B0;ZD=1;var e=mj();function t(n,r){var a;return e(n,function(s,l,c){return a=r(s,l,c),!a}),!!a}return B0=t,B0}var q0,QD;function lae(){if(QD)return q0;QD=1;var e=q4(),t=ei(),n=sae(),r=Nn(),a=Hp();function s(l,c,f){var d=r(l)?e:n;return f&&a(l,c,f)&&(c=void 0),d(l,t(c,3))}return q0=s,q0}var uae=lae();const cae=nt(uae);var Fr=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},I0,JD;function fae(){if(JD)return I0;JD=1;var e=iz();function t(n,r,a){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):n[r]=a}return I0=t,I0}var U0,ek;function dae(){if(ek)return U0;ek=1;var e=fae(),t=nz(),n=ei();function r(a,s){var l={};return s=n(s,3),t(a,function(c,f,d){e(l,f,s(c,f,d))}),l}return U0=r,U0}var hae=dae();const pae=nt(hae);var V0,tk;function mae(){if(tk)return V0;tk=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(!n(t[r],r,t))return!1;return!0}return V0=e,V0}var H0,nk;function yae(){if(nk)return H0;nk=1;var e=mj();function t(n,r){var a=!0;return e(n,function(s,l,c){return a=!!r(s,l,c),a}),a}return H0=t,H0}var G0,rk;function vae(){if(rk)return G0;rk=1;var e=mae(),t=yae(),n=ei(),r=Nn(),a=Hp();function s(l,c,f){var d=r(l)?e:t;return f&&a(l,c,f)&&(c=void 0),d(l,n(c,3))}return G0=s,G0}var gae=vae();const H$=nt(gae);var xae=["x","y"];function $c(e){"@babel/helpers - typeof";return $c=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},$c(e)}function LS(){return LS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LS.apply(this,arguments)}function ik(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 Lu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ik(Object(n),!0).forEach(function(r){bae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ik(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bae(e,t,n){return t=Sae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sae(e){var t=wae(e,"string");return $c(t)=="symbol"?t:t+""}function wae(e,t){if($c(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jae(e,t){if(e==null)return{};var n=Aae(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[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}function Oae(e,t){var n=e.x,r=e.y,a=jae(e,xae),s="".concat(n),l=parseInt(s,10),c="".concat(r),f=parseInt(c,10),d="".concat(t.height||a.height),m=parseInt(d,10),y="".concat(t.width||a.width),g=parseInt(y,10);return Lu(Lu(Lu(Lu(Lu({},t),a),l?{x:l}:{}),f?{y:f}:{}),{},{height:m,width:g,name:t.name,radius:t.radius})}function ak(e){return q.createElement(z$,LS({shapeType:"rectangle",propTransformer:Oae,activeClassName:"recharts-active-bar"},e))}var _ae=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 s=ue(r)||KG(r);return s?t(r,a):(s||Eo(),n)}},Tae=["value","background"],G$;function rl(e){"@babel/helpers - typeof";return rl=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},rl(e)}function Eae(e,t){if(e==null)return{};var n=Nae(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nae(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 cp(){return cp=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},cp.apply(this,arguments)}function ok(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 zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ok(Object(n),!0).forEach(function(r){xa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ok(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sk(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,K$(r.key),r)}}function Mae(e,t,n){return t&&sk(e.prototype,t),n&&sk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pae(e,t,n){return t=fp(t),Rae(e,F$()?Reflect.construct(t,n||[],fp(e).constructor):t.apply(e,n))}function Rae(e,t){if(t&&(rl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dae(e)}function Dae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F$=function(){return!!e})()}function fp(e){return fp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fp(e)}function kae(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&&zS(e,t)}function zS(e,t){return zS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},zS(e,t)}function xa(e,t,n){return t=K$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K$(e){var t=Lae(e,"string");return rl(t)=="symbol"?t:t+""}function Lae(e,t){if(rl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Oa=(function(e){function t(){var n;Cae(this,t);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=Pae(this,t,[].concat(a)),xa(n,"state",{isAnimationFinished:!1}),xa(n,"id",Po("recharts-bar-")),xa(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),l&&l()}),xa(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),l&&l()}),n}return kae(t,e),Mae(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,s=this.props,l=s.shape,c=s.dataKey,f=s.activeIndex,d=s.activeBar,m=Se(this.props,!1);return r&&r.map(function(y,g){var S=g===f,j=S?d:l,w=zt(zt(zt({},m),y),{},{isActive:S,option:j,index:g,dataKey:c,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return q.createElement(qe,cp({className:"recharts-bar-rectangle"},Ao(a.props,y,g),{key:"rectangle-".concat(y==null?void 0:y.x,"-").concat(y==null?void 0:y.y,"-").concat(y==null?void 0:y.value,"-").concat(g)}),q.createElement(ak,w))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,s=a.data,l=a.layout,c=a.isAnimationActive,f=a.animationBegin,d=a.animationDuration,m=a.animationEasing,y=a.animationId,g=this.state.prevData;return q.createElement(Cr,{begin:f,duration:d,isActive:c,easing:m,from:{t:0},to:{t:1},key:"bar-".concat(y),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var j=S.t,w=s.map(function(b,A){var _=g&&g[A];if(_){var T=Gt(_.x,b.x),C=Gt(_.y,b.y),O=Gt(_.width,b.width),E=Gt(_.height,b.height);return zt(zt({},b),{},{x:T(j),y:C(j),width:O(j),height:E(j)})}if(l==="horizontal"){var M=Gt(0,b.height),k=M(j);return zt(zt({},b),{},{y:b.y+b.height-k,height:k})}var D=Gt(0,b.width),B=D(j);return zt(zt({},b),{},{width:B})});return q.createElement(qe,null,r.renderRectanglesStatically(w))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,s=r.isAnimationActive,l=this.state.prevData;return s&&a&&a.length&&(!l||!_o(l,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,s=a.data,l=a.dataKey,c=a.activeIndex,f=Se(this.props.background,!1);return s.map(function(d,m){d.value;var y=d.background,g=Eae(d,Tae);if(!y)return null;var S=zt(zt(zt(zt(zt({},g),{},{fill:"#eee"},y),f),Ao(r.props,d,m)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:l,index:m,className:"recharts-bar-background-rectangle"});return q.createElement(ak,cp({key:"background-bar-".concat(m),option:r.props.background,isActive:m===c},S))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.data,c=s.xAxis,f=s.yAxis,d=s.layout,m=s.children,y=Fn(m,af);if(!y)return null;var g=d==="vertical"?l[0].height/2:l[0].width/2,S=function(b,A){var _=Array.isArray(b.value)?b.value[1]:b.value;return{x:b.x,y:b.y,value:_,errorVal:Pt(b,A)}},j={clipPath:r?"url(#clipPath-".concat(a,")"):null};return q.createElement(qe,j,y.map(function(w){return q.cloneElement(w,{key:"error-bar-".concat(a,"-").concat(w.props.dataKey),data:l,xAxis:c,yAxis:f,layout:d,offset:g,dataPointFormatter:S})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,s=r.data,l=r.className,c=r.xAxis,f=r.yAxis,d=r.left,m=r.top,y=r.width,g=r.height,S=r.isAnimationActive,j=r.background,w=r.id;if(a||!s||!s.length)return null;var b=this.state.isAnimationFinished,A=Me("recharts-bar",l),_=c&&c.allowDataOverflow,T=f&&f.allowDataOverflow,C=_||T,O=Ee(w)?this.id:w;return q.createElement(qe,{className:A},_||T?q.createElement("defs",null,q.createElement("clipPath",{id:"clipPath-".concat(O)},q.createElement("rect",{x:_?d:d-y/2,y:T?m:m-g/2,width:_?y:y*2,height:T?g:g*2}))):null,q.createElement(qe,{className:"recharts-bar-rectangles",clipPath:C?"url(#clipPath-".concat(O,")"):null},j?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(C,O),(!S||b)&&Gr.renderCallByParent(this.props,s))}}],[{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}}])})(P.PureComponent);G$=Oa;xa(Oa,"displayName","Bar");xa(Oa,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ma.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});xa(Oa,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,s=e.xAxis,l=e.yAxis,c=e.xAxisTicks,f=e.yAxisTicks,d=e.stackedData,m=e.dataStartIndex,y=e.displayedData,g=e.offset,S=see(r,n);if(!S)return null;var j=t.layout,w=n.type.defaultProps,b=w!==void 0?zt(zt({},w),n.props):n.props,A=b.dataKey,_=b.children,T=b.minPointSize,C=j==="horizontal"?l:s,O=d?C.scale.domain():null,E=pee({numericAxis:C}),M=Fn(_,Gp),k=y.map(function(D,B){var I,z,F,X,Y,$;d?I=lee(d[m+B],O):(I=Pt(D,A),Array.isArray(I)||(I=[E,I]));var K=_ae(T,G$.defaultProps.minPointSize)(I[1],B);if(j==="horizontal"){var Q,ie=[l.scale(I[0]),l.scale(I[1])],se=ie[0],L=ie[1];z=kR({axis:s,ticks:c,bandSize:a,offset:S.offset,entry:D,index:B}),F=(Q=L??se)!==null&&Q!==void 0?Q:void 0,X=S.size;var H=se-L;if(Y=Number.isNaN(H)?0:H,$={x:z,y:l.y,width:X,height:l.height},Math.abs(K)>0&&Math.abs(Y)<Math.abs(K)){var re=gn(Y||K)*(Math.abs(K)-Math.abs(Y));F-=re,Y+=re}}else{var fe=[s.scale(I[0]),s.scale(I[1])],ve=fe[0],je=fe[1];if(z=ve,F=kR({axis:l,ticks:f,bandSize:a,offset:S.offset,entry:D,index:B}),X=je-ve,Y=S.size,$={x:s.x,y:F,width:s.width,height:Y},Math.abs(K)>0&&Math.abs(X)<Math.abs(K)){var ze=gn(X||K)*(Math.abs(K)-Math.abs(X));X+=ze}}return zt(zt(zt({},D),{},{x:z,y:F,width:X,height:Y,value:d?I:I[1],payload:D,background:$},M&&M[B]&&M[B].props),{},{tooltipPayload:[x$(n,D)],tooltipPosition:{x:z+X/2,y:F+Y/2}})});return zt({data:k,layout:j},g)});function Bc(e){"@babel/helpers - typeof";return Bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bc(e)}function zae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lk(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 $ae(e,t,n){return t&&lk(e.prototype,t),n&&lk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uk(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 jr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uk(Object(n),!0).forEach(function(r){lm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lm(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=Bae(e,"string");return Bc(t)=="symbol"?t:t+""}function Bae(e,t){if(Bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hj=function(t,n,r,a,s){var l=t.width,c=t.height,f=t.layout,d=t.children,m=Object.keys(n),y={left:r.left,leftMirror:r.left,right:l-r.right,rightMirror:l-r.right,top:r.top,topMirror:r.top,bottom:c-r.bottom,bottomMirror:c-r.bottom},g=!!In(d,Oa);return m.reduce(function(S,j){var w=n[j],b=w.orientation,A=w.domain,_=w.padding,T=_===void 0?{}:_,C=w.mirror,O=w.reversed,E="".concat(b).concat(C?"Mirror":""),M,k,D,B,I;if(w.type==="number"&&(w.padding==="gap"||w.padding==="no-gap")){var z=A[1]-A[0],F=1/0,X=w.categoricalDomain.sort(WG);if(X.forEach(function(fe,ve){ve>0&&(F=Math.min((fe||0)-(X[ve-1]||0),F))}),Number.isFinite(F)){var Y=F/z,$=w.layout==="vertical"?r.height:r.width;if(w.padding==="gap"&&(M=Y*$/2),w.padding==="no-gap"){var K=xn(t.barCategoryGap,Y*$),Q=Y*$/2;M=Q-K-(Q-K)/$*K}}}a==="xAxis"?k=[r.left+(T.left||0)+(M||0),r.left+r.width-(T.right||0)-(M||0)]:a==="yAxis"?k=f==="horizontal"?[r.top+r.height-(T.bottom||0),r.top+(T.top||0)]:[r.top+(T.top||0)+(M||0),r.top+r.height-(T.bottom||0)-(M||0)]:k=w.range,O&&(k=[k[1],k[0]]);var ie=m$(w,s,g),se=ie.scale,L=ie.realScaleType;se.domain(A).range(k),y$(se);var H=v$(se,jr(jr({},w),{},{realScaleType:L}));a==="xAxis"?(I=b==="top"&&!C||b==="bottom"&&C,D=r.left,B=y[E]-I*w.height):a==="yAxis"&&(I=b==="left"&&!C||b==="right"&&C,D=y[E]-I*w.width,B=r.top);var re=jr(jr(jr({},w),H),{},{realScaleType:L,x:D,y:B,scale:se,width:a==="xAxis"?r.width:w.width,height:a==="yAxis"?r.height:w.height});return re.bandSize=Yh(re,H),!w.hide&&a==="xAxis"?y[E]+=(I?-1:1)*re.height:w.hide||(y[E]+=(I?-1:1)*re.width),jr(jr({},S),{},lm({},j,re))},{})},X$=function(t,n){var r=t.x,a=t.y,s=n.x,l=n.y;return{x:Math.min(r,s),y:Math.min(a,l),width:Math.abs(s-r),height:Math.abs(l-a)}},qae=function(t){var n=t.x1,r=t.y1,a=t.x2,s=t.y2;return X$({x:n,y:r},{x:a,y:s})},W$=(function(){function e(t){zae(this,e),this.scale=t}return $ae(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,s=r.position;if(n!==void 0){if(s)switch(s){case"start":return this.scale(n);case"middle":{var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}case"end":{var c=this.bandwidth?this.bandwidth():0;return this.scale(n)+c}default:return this.scale(n)}if(a){var f=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+f}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),a=r[0],s=r[r.length-1];return a<=s?n>=a&&n<=s:n>=s&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}])})();lm(W$,"EPS",1e-4);var Gj=function(t){var n=Object.keys(t).reduce(function(r,a){return jr(jr({},r),{},lm({},a,W$.create(t[a])))},{});return jr(jr({},n),{},{apply:function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.bandAware,c=s.position;return pae(a,function(f,d){return n[d].apply(f,{bandAware:l,position:c})})},isInRange:function(a){return H$(a,function(s,l){return n[l].isInRange(s)})}})};function Iae(e){return(e%180+180)%180}var Uae=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=Iae(a),l=s*Math.PI/180,c=Math.atan(r/n),f=l>c&&l<Math.PI-c?r/Math.sin(l):n/Math.cos(l);return Math.abs(f)},F0,ck;function Vae(){if(ck)return F0;ck=1;var e=ei(),t=Jc(),n=Up();function r(a){return function(s,l,c){var f=Object(s);if(!t(s)){var d=e(l,3);s=n(s),l=function(y){return d(f[y],y,f)}}var m=a(s,l,c);return m>-1?f[d?s[m]:m]:void 0}}return F0=r,F0}var K0,fk;function Hae(){if(fk)return K0;fk=1;var e=q$();function t(n){var r=e(n),a=r%1;return r===r?a?r-a:r:0}return K0=t,K0}var Y0,dk;function Gae(){if(dk)return Y0;dk=1;var e=Z4(),t=ei(),n=Hae(),r=Math.max;function a(s,l,c){var f=s==null?0:s.length;if(!f)return-1;var d=c==null?0:n(c);return d<0&&(d=r(f+d,0)),e(s,t(l,3),d)}return Y0=a,Y0}var X0,hk;function Fae(){if(hk)return X0;hk=1;var e=Vae(),t=Gae(),n=e(t);return X0=n,X0}var Kae=Fae();const Yae=nt(Kae);var Xae=d4();const Wae=nt(Xae);var Zae=Wae(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("")}),Fj=P.createContext(void 0),Kj=P.createContext(void 0),Z$=P.createContext(void 0),Q$=P.createContext({}),J$=P.createContext(void 0),eB=P.createContext(0),tB=P.createContext(0),pk=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,s=n.offset,l=t.clipPathId,c=t.children,f=t.width,d=t.height,m=Zae(s);return q.createElement(Fj.Provider,{value:r},q.createElement(Kj.Provider,{value:a},q.createElement(Q$.Provider,{value:s},q.createElement(Z$.Provider,{value:m},q.createElement(J$.Provider,{value:l},q.createElement(eB.Provider,{value:d},q.createElement(tB.Provider,{value:f},c)))))))},Qae=function(){return P.useContext(J$)},nB=function(t){var n=P.useContext(Fj);n==null&&Eo();var r=n[t];return r==null&&Eo(),r},Jae=function(){var t=P.useContext(Fj);return ya(t)},eoe=function(){var t=P.useContext(Kj),n=Yae(t,function(r){return H$(r.domain,Number.isFinite)});return n||ya(t)},rB=function(t){var n=P.useContext(Kj);n==null&&Eo();var r=n[t];return r==null&&Eo(),r},toe=function(){var t=P.useContext(Z$);return t},noe=function(){return P.useContext(Q$)},Yj=function(){return P.useContext(tB)},Xj=function(){return P.useContext(eB)};function il(e){"@babel/helpers - typeof";return il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},il(e)}function roe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ioe(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,aB(r.key),r)}}function aoe(e,t,n){return t&&ioe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ooe(e,t,n){return t=dp(t),soe(e,iB()?Reflect.construct(t,n||[],dp(e).constructor):t.apply(e,n))}function soe(e,t){if(t&&(il(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return loe(e)}function loe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iB=function(){return!!e})()}function dp(e){return dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dp(e)}function uoe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$S(e,t)}function $S(e,t){return $S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},$S(e,t)}function mk(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 yk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mk(Object(n),!0).forEach(function(r){Wj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wj(e,t,n){return t=aB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aB(e){var t=coe(e,"string");return il(t)=="symbol"?t:t+""}function coe(e,t){if(il(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(il(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function foe(e,t){return moe(e)||poe(e,t)||hoe(e,t)||doe()}function doe(){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 hoe(e,t){if(e){if(typeof e=="string")return vk(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 vk(e,t)}}function vk(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 poe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function moe(e){if(Array.isArray(e))return e}function BS(){return BS=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},BS.apply(this,arguments)}var yoe=function(t,n){var r;return q.isValidElement(t)?r=q.cloneElement(t,n):_e(t)?r=t(n):r=q.createElement("line",BS({},n,{className:"recharts-reference-line-line"})),r},voe=function(t,n,r,a,s,l,c,f,d){var m=s.x,y=s.y,g=s.width,S=s.height;if(r){var j=d.y,w=t.y.apply(j,{position:l});if(Fr(d,"discard")&&!t.y.isInRange(w))return null;var b=[{x:m+g,y:w},{x:m,y:w}];return f==="left"?b.reverse():b}if(n){var A=d.x,_=t.x.apply(A,{position:l});if(Fr(d,"discard")&&!t.x.isInRange(_))return null;var T=[{x:_,y:y+S},{x:_,y}];return c==="top"?T.reverse():T}if(a){var C=d.segment,O=C.map(function(E){return t.apply(E,{position:l})});return Fr(d,"discard")&&cae(O,function(E){return!t.isInRange(E)})?null:O}return null};function goe(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,s=e.yAxisId,l=e.shape,c=e.className,f=e.alwaysShow,d=Qae(),m=nB(a),y=rB(s),g=toe();if(!d||!g)return null;Er(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var S=Gj({x:m.scale,y:y.scale}),j=Ft(t),w=Ft(n),b=r&&r.length===2,A=voe(S,j,w,b,g,e.position,m.orientation,y.orientation,e);if(!A)return null;var _=foe(A,2),T=_[0],C=T.x,O=T.y,E=_[1],M=E.x,k=E.y,D=Fr(e,"hidden")?"url(#".concat(d,")"):void 0,B=yk(yk({clipPath:D},Se(e,!0)),{},{x1:C,y1:O,x2:M,y2:k});return q.createElement(qe,{className:Me("recharts-reference-line",c)},yoe(l,B),Qt.renderCallByParent(e,qae({x1:C,y1:O,x2:M,y2:k})))}var Zj=(function(e){function t(){return roe(this,t),ooe(this,t,arguments)}return uoe(t,e),aoe(t,[{key:"render",value:function(){return q.createElement(goe,this.props)}}])})(q.Component);Wj(Zj,"displayName","ReferenceLine");Wj(Zj,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function qS(){return qS=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},qS.apply(this,arguments)}function al(e){"@babel/helpers - typeof";return al=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},al(e)}function gk(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 xk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gk(Object(n),!0).forEach(function(r){um(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function boe(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,sB(r.key),r)}}function Soe(e,t,n){return t&&boe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function woe(e,t,n){return t=hp(t),joe(e,oB()?Reflect.construct(t,n||[],hp(e).constructor):t.apply(e,n))}function joe(e,t){if(t&&(al(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 oB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oB=function(){return!!e})()}function hp(e){return hp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hp(e)}function Ooe(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&&IS(e,t)}function IS(e,t){return IS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},IS(e,t)}function um(e,t,n){return t=sB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sB(e){var t=_oe(e,"string");return al(t)=="symbol"?t:t+""}function _oe(e,t){if(al(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(al(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Toe=function(t){var n=t.x,r=t.y,a=t.xAxis,s=t.yAxis,l=Gj({x:a.scale,y:s.scale}),c=l.apply({x:n,y:r},{bandAware:!0});return Fr(t,"discard")&&!l.isInRange(c)?null:c},cm=(function(e){function t(){return xoe(this,t),woe(this,t,arguments)}return Ooe(t,e),Soe(t,[{key:"render",value:function(){var r=this.props,a=r.x,s=r.y,l=r.r,c=r.alwaysShow,f=r.clipPathId,d=Ft(a),m=Ft(s);if(Er(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!m)return null;var y=Toe(this.props);if(!y)return null;var g=y.x,S=y.y,j=this.props,w=j.shape,b=j.className,A=Fr(this.props,"hidden")?"url(#".concat(f,")"):void 0,_=xk(xk({clipPath:A},Se(this.props,!0)),{},{cx:g,cy:S});return q.createElement(qe,{className:Me("recharts-reference-dot",b)},t.renderDot(w,_),Qt.renderCallByParent(this.props,{x:g-l,y:S-l,width:2*l,height:2*l}))}}])})(q.Component);um(cm,"displayName","ReferenceDot");um(cm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});um(cm,"renderDot",function(e,t){var n;return q.isValidElement(e)?n=q.cloneElement(e,t):_e(e)?n=e(t):n=q.createElement(of,qS({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function US(){return US=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},US.apply(this,arguments)}function ol(e){"@babel/helpers - typeof";return ol=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},ol(e)}function bk(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 Sk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bk(Object(n),!0).forEach(function(r){fm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bk(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 Noe(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,uB(r.key),r)}}function Coe(e,t,n){return t&&Noe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Moe(e,t,n){return t=pp(t),Poe(e,lB()?Reflect.construct(t,n||[],pp(e).constructor):t.apply(e,n))}function Poe(e,t){if(t&&(ol(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Roe(e)}function Roe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lB=function(){return!!e})()}function pp(e){return pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pp(e)}function Doe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&VS(e,t)}function VS(e,t){return VS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},VS(e,t)}function fm(e,t,n){return t=uB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uB(e){var t=koe(e,"string");return ol(t)=="symbol"?t:t+""}function koe(e,t){if(ol(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ol(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Loe=function(t,n,r,a,s){var l=s.x1,c=s.x2,f=s.y1,d=s.y2,m=s.xAxis,y=s.yAxis;if(!m||!y)return null;var g=Gj({x:m.scale,y:y.scale}),S={x:t?g.x.apply(l,{position:"start"}):g.x.rangeMin,y:r?g.y.apply(f,{position:"start"}):g.y.rangeMin},j={x:n?g.x.apply(c,{position:"end"}):g.x.rangeMax,y:a?g.y.apply(d,{position:"end"}):g.y.rangeMax};return Fr(s,"discard")&&(!g.isInRange(S)||!g.isInRange(j))?null:X$(S,j)},dm=(function(e){function t(){return Eoe(this,t),Moe(this,t,arguments)}return Doe(t,e),Coe(t,[{key:"render",value:function(){var r=this.props,a=r.x1,s=r.x2,l=r.y1,c=r.y2,f=r.className,d=r.alwaysShow,m=r.clipPathId;Er(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var y=Ft(a),g=Ft(s),S=Ft(l),j=Ft(c),w=this.props.shape;if(!y&&!g&&!S&&!j&&!w)return null;var b=Loe(y,g,S,j,this.props);if(!b&&!w)return null;var A=Fr(this.props,"hidden")?"url(#".concat(m,")"):void 0;return q.createElement(qe,{className:Me("recharts-reference-area",f)},t.renderRect(w,Sk(Sk({clipPath:A},Se(this.props,!0)),b)),Qt.renderCallByParent(this.props,b))}}])})(q.Component);fm(dm,"displayName","ReferenceArea");fm(dm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});fm(dm,"renderRect",function(e,t){var n;return q.isValidElement(e)?n=q.cloneElement(e,t):_e(e)?n=e(t):n=q.createElement(Vj,US({},t,{className:"recharts-reference-area-rect"})),n});function cB(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 zoe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Uae(r,n)}function $oe(e,t,n){var r=n==="width",a=e.x,s=e.y,l=e.width,c=e.height;return t===1?{start:r?a:s,end:r?a+l:s+c}:{start:r?a+l:s+c,end:r?a:s}}function mp(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var s=n();return e*(t-e*s/2-r)>=0&&e*(t+e*s/2-a)<=0}function Boe(e,t){return cB(e,t+1)}function qoe(e,t,n,r,a){for(var s=(r||[]).slice(),l=t.start,c=t.end,f=0,d=1,m=l,y=function(){var j=r==null?void 0:r[f];if(j===void 0)return{v:cB(r,d)};var w=f,b,A=function(){return b===void 0&&(b=n(j,w)),b},_=j.coordinate,T=f===0||mp(e,_,A,m,c);T||(f=0,m=l,d+=1),T&&(m=_+e*(A()/2+a),f+=d)},g;d<=s.length;)if(g=y(),g)return g.v;return[]}function qc(e){"@babel/helpers - typeof";return qc=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},qc(e)}function wk(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 hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wk(Object(n),!0).forEach(function(r){Ioe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ioe(e,t,n){return t=Uoe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uoe(e){var t=Voe(e,"string");return qc(t)=="symbol"?t:t+""}function Voe(e,t){if(qc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hoe(e,t,n,r,a){for(var s=(r||[]).slice(),l=s.length,c=t.start,f=t.end,d=function(g){var S=s[g],j,w=function(){return j===void 0&&(j=n(S,g)),j};if(g===l-1){var b=e*(S.coordinate+e*w()/2-f);s[g]=S=hn(hn({},S),{},{tickCoord:b>0?S.coordinate-b*e:S.coordinate})}else s[g]=S=hn(hn({},S),{},{tickCoord:S.coordinate});var A=mp(e,S.tickCoord,w,c,f);A&&(f=S.tickCoord-e*(w()/2+a),s[g]=hn(hn({},S),{},{isShow:!0}))},m=l-1;m>=0;m--)d(m);return s}function Goe(e,t,n,r,a,s){var l=(r||[]).slice(),c=l.length,f=t.start,d=t.end;if(s){var m=r[c-1],y=n(m,c-1),g=e*(m.coordinate+e*y/2-d);l[c-1]=m=hn(hn({},m),{},{tickCoord:g>0?m.coordinate-g*e:m.coordinate});var S=mp(e,m.tickCoord,function(){return y},f,d);S&&(d=m.tickCoord-e*(y/2+a),l[c-1]=hn(hn({},m),{},{isShow:!0}))}for(var j=s?c-1:c,w=function(_){var T=l[_],C,O=function(){return C===void 0&&(C=n(T,_)),C};if(_===0){var E=e*(T.coordinate-e*O()/2-f);l[_]=T=hn(hn({},T),{},{tickCoord:E<0?T.coordinate-E*e:T.coordinate})}else l[_]=T=hn(hn({},T),{},{tickCoord:T.coordinate});var M=mp(e,T.tickCoord,O,f,d);M&&(f=T.tickCoord+e*(O()/2+a),l[_]=hn(hn({},T),{},{isShow:!0}))},b=0;b<j;b++)w(b);return l}function Qj(e,t,n){var r=e.tick,a=e.ticks,s=e.viewBox,l=e.minTickGap,c=e.orientation,f=e.interval,d=e.tickFormatter,m=e.unit,y=e.angle;if(!a||!a.length||!r)return[];if(ue(f)||Ma.isSsr)return Boe(a,typeof f=="number"&&ue(f)?f:0);var g=[],S=c==="top"||c==="bottom"?"width":"height",j=m&&S==="width"?Xu(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},w=function(T,C){var O=_e(d)?d(T.value,C):T.value;return S==="width"?zoe(Xu(O,{fontSize:t,letterSpacing:n}),j,y):Xu(O,{fontSize:t,letterSpacing:n})[S]},b=a.length>=2?gn(a[1].coordinate-a[0].coordinate):1,A=$oe(s,b,S);return f==="equidistantPreserveStart"?qoe(b,A,w,a,l):(f==="preserveStart"||f==="preserveStartEnd"?g=Goe(b,A,w,a,l,f==="preserveStartEnd"):g=Hoe(b,A,w,a,l),g.filter(function(_){return _.isShow}))}var Foe=["viewBox"],Koe=["viewBox"],Yoe=["ticks"];function sl(e){"@babel/helpers - typeof";return sl=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},sl(e)}function Ps(){return Ps=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},Ps.apply(this,arguments)}function jk(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 Ut(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jk(Object(n),!0).forEach(function(r){Jj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function W0(e,t){if(e==null)return{};var n=Xoe(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xoe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Woe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ak(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,dB(r.key),r)}}function Zoe(e,t,n){return t&&Ak(e.prototype,t),n&&Ak(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qoe(e,t,n){return t=yp(t),Joe(e,fB()?Reflect.construct(t,n||[],yp(e).constructor):t.apply(e,n))}function Joe(e,t){if(t&&(sl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ese(e)}function ese(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fB=function(){return!!e})()}function yp(e){return yp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yp(e)}function tse(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&&HS(e,t)}function HS(e,t){return HS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},HS(e,t)}function Jj(e,t,n){return t=dB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dB(e){var t=nse(e,"string");return sl(t)=="symbol"?t:t+""}function nse(e,t){if(sl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var El=(function(e){function t(n){var r;return Woe(this,t),r=Qoe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return tse(t,e),Zoe(t,[{key:"shouldComponentUpdate",value:function(r,a){var s=r.viewBox,l=W0(r,Foe),c=this.props,f=c.viewBox,d=W0(c,Koe);return!ks(s,f)||!ks(l,d)||!ks(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,s=a.x,l=a.y,c=a.width,f=a.height,d=a.orientation,m=a.tickSize,y=a.mirror,g=a.tickMargin,S,j,w,b,A,_,T=y?-1:1,C=r.tickSize||m,O=ue(r.tickCoord)?r.tickCoord:r.coordinate;switch(d){case"top":S=j=r.coordinate,b=l+ +!y*f,w=b-T*C,_=w-T*g,A=O;break;case"left":w=b=r.coordinate,j=s+ +!y*c,S=j-T*C,A=S-T*g,_=O;break;case"right":w=b=r.coordinate,j=s+ +y*c,S=j+T*C,A=S+T*g,_=O;break;default:S=j=r.coordinate,b=l+ +y*f,w=b+T*C,_=w+T*g,A=O;break}return{line:{x1:S,y1:w,x2:j,y2:b},tick:{x:A,y:_}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,s=r.mirror,l;switch(a){case"left":l=s?"start":"end";break;case"right":l=s?"end":"start";break;default:l="middle";break}return l}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,s=r.mirror,l="end";switch(a){case"left":case"right":l="middle";break;case"top":l=s?"start":"end";break;default:l=s?"end":"start";break}return l}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,s=r.y,l=r.width,c=r.height,f=r.orientation,d=r.mirror,m=r.axisLine,y=Ut(Ut(Ut({},Se(this.props,!1)),Se(m,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var g=+(f==="top"&&!d||f==="bottom"&&d);y=Ut(Ut({},y),{},{x1:a,y1:s+g*c,x2:a+l,y2:s+g*c})}else{var S=+(f==="left"&&!d||f==="right"&&d);y=Ut(Ut({},y),{},{x1:a+S*l,y1:s,x2:a+S*l,y2:s+c})}return q.createElement("line",Ps({},y,{className:Me("recharts-cartesian-axis-line",Gn(m,"className"))}))}},{key:"renderTicks",value:function(r,a,s){var l=this,c=this.props,f=c.tickLine,d=c.stroke,m=c.tick,y=c.tickFormatter,g=c.unit,S=Qj(Ut(Ut({},this.props),{},{ticks:r}),a,s),j=this.getTickTextAnchor(),w=this.getTickVerticalAnchor(),b=Se(this.props,!1),A=Se(m,!1),_=Ut(Ut({},b),{},{fill:"none"},Se(f,!1)),T=S.map(function(C,O){var E=l.getTickLineCoord(C),M=E.line,k=E.tick,D=Ut(Ut(Ut(Ut({textAnchor:j,verticalAnchor:w},b),{},{stroke:"none",fill:d},A),k),{},{index:O,payload:C,visibleTicksCount:S.length,tickFormatter:y});return q.createElement(qe,Ps({className:"recharts-cartesian-axis-tick",key:"tick-".concat(C.value,"-").concat(C.coordinate,"-").concat(C.tickCoord)},Ao(l.props,C,O)),f&&q.createElement("line",Ps({},_,M,{className:Me("recharts-cartesian-axis-tick-line",Gn(f,"className"))})),m&&t.renderTickItem(m,D,"".concat(_e(y)?y(C.value,O):C.value).concat(g||"")))});return q.createElement("g",{className:"recharts-cartesian-axis-ticks"},T)}},{key:"render",value:function(){var r=this,a=this.props,s=a.axisLine,l=a.width,c=a.height,f=a.ticksGenerator,d=a.className,m=a.hide;if(m)return null;var y=this.props,g=y.ticks,S=W0(y,Yoe),j=g;return _e(f)&&(j=g&&g.length>0?f(this.props):f(S)),l<=0||c<=0||!j||!j.length?null:q.createElement(qe,{className:Me("recharts-cartesian-axis",d),ref:function(b){r.layerReference=b}},s&&this.renderAxisLine(),this.renderTicks(j,this.state.fontSize,this.state.letterSpacing),Qt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,s){var l,c=Me(a.className,"recharts-cartesian-axis-tick-value");return q.isValidElement(r)?l=q.cloneElement(r,Ut(Ut({},a),{},{className:c})):_e(r)?l=r(Ut(Ut({},a),{},{className:c})):l=q.createElement(Oo,Ps({},a,{className:"recharts-cartesian-axis-tick-value"}),s),l}}])})(P.Component);Jj(El,"displayName","CartesianAxis");Jj(El,"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 rse=["x1","y1","x2","y2","key"],ise=["offset"];function No(e){"@babel/helpers - typeof";return No=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},No(e)}function Ok(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 pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ok(Object(n),!0).forEach(function(r){ase(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ok(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ase(e,t,n){return t=ose(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ose(e){var t=sse(e,"string");return No(t)=="symbol"?t:t+""}function sse(e,t){if(No(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(No(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mo(){return mo=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},mo.apply(this,arguments)}function _k(e,t){if(e==null)return{};var n=lse(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lse(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 use=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,a=t.x,s=t.y,l=t.width,c=t.height,f=t.ry;return q.createElement("rect",{x:a,y:s,ry:f,width:l,height:c,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function hB(e,t){var n;if(q.isValidElement(e))n=q.cloneElement(e,t);else if(_e(e))n=e(t);else{var r=t.x1,a=t.y1,s=t.x2,l=t.y2,c=t.key,f=_k(t,rse),d=Se(f,!1);d.offset;var m=_k(d,ise);n=q.createElement("line",mo({},m,{x1:r,y1:a,x2:s,y2:l,fill:"none",key:c}))}return n}function cse(e){var t=e.x,n=e.width,r=e.horizontal,a=r===void 0?!0:r,s=e.horizontalPoints;if(!a||!s||!s.length)return null;var l=s.map(function(c,f){var d=pn(pn({},e),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(f),index:f});return hB(a,d)});return q.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function fse(e){var t=e.y,n=e.height,r=e.vertical,a=r===void 0?!0:r,s=e.verticalPoints;if(!a||!s||!s.length)return null;var l=s.map(function(c,f){var d=pn(pn({},e),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(f),index:f});return hB(a,d)});return q.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function dse(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,a=e.y,s=e.width,l=e.height,c=e.horizontalPoints,f=e.horizontal,d=f===void 0?!0:f;if(!d||!t||!t.length)return null;var m=c.map(function(g){return Math.round(g+a-a)}).sort(function(g,S){return g-S});a!==m[0]&&m.unshift(0);var y=m.map(function(g,S){var j=!m[S+1],w=j?a+l-g:m[S+1]-g;if(w<=0)return null;var b=S%t.length;return q.createElement("rect",{key:"react-".concat(S),y:g,x:r,height:w,width:s,stroke:"none",fill:t[b],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return q.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},y)}function hse(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,a=e.fillOpacity,s=e.x,l=e.y,c=e.width,f=e.height,d=e.verticalPoints;if(!n||!r||!r.length)return null;var m=d.map(function(g){return Math.round(g+s-s)}).sort(function(g,S){return g-S});s!==m[0]&&m.unshift(0);var y=m.map(function(g,S){var j=!m[S+1],w=j?s+c-g:m[S+1]-g;if(w<=0)return null;var b=S%r.length;return q.createElement("rect",{key:"react-".concat(S),x:g,y:l,width:w,height:f,stroke:"none",fill:r[b],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return q.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},y)}var pse=function(t,n){var r=t.xAxis,a=t.width,s=t.height,l=t.offset;return p$(Qj(pn(pn(pn({},El.defaultProps),r),{},{ticks:_i(r,!0),viewBox:{x:0,y:0,width:a,height:s}})),l.left,l.left+l.width,n)},mse=function(t,n){var r=t.yAxis,a=t.width,s=t.height,l=t.offset;return p$(Qj(pn(pn(pn({},El.defaultProps),r),{},{ticks:_i(r,!0),viewBox:{x:0,y:0,width:a,height:s}})),l.top,l.top+l.height,n)},ws={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function vp(e){var t,n,r,a,s,l,c=Yj(),f=Xj(),d=noe(),m=pn(pn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:ws.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:ws.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:ws.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:ws.horizontalFill,vertical:(s=e.vertical)!==null&&s!==void 0?s:ws.vertical,verticalFill:(l=e.verticalFill)!==null&&l!==void 0?l:ws.verticalFill,x:ue(e.x)?e.x:d.left,y:ue(e.y)?e.y:d.top,width:ue(e.width)?e.width:d.width,height:ue(e.height)?e.height:d.height}),y=m.x,g=m.y,S=m.width,j=m.height,w=m.syncWithTicks,b=m.horizontalValues,A=m.verticalValues,_=Jae(),T=eoe();if(!ue(S)||S<=0||!ue(j)||j<=0||!ue(y)||y!==+y||!ue(g)||g!==+g)return null;var C=m.verticalCoordinatesGenerator||pse,O=m.horizontalCoordinatesGenerator||mse,E=m.horizontalPoints,M=m.verticalPoints;if((!E||!E.length)&&_e(O)){var k=b&&b.length,D=O({yAxis:T?pn(pn({},T),{},{ticks:k?b:T.ticks}):void 0,width:c,height:f,offset:d},k?!0:w);Er(Array.isArray(D),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(No(D),"]")),Array.isArray(D)&&(E=D)}if((!M||!M.length)&&_e(C)){var B=A&&A.length,I=C({xAxis:_?pn(pn({},_),{},{ticks:B?A:_.ticks}):void 0,width:c,height:f,offset:d},B?!0:w);Er(Array.isArray(I),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(No(I),"]")),Array.isArray(I)&&(M=I)}return q.createElement("g",{className:"recharts-cartesian-grid"},q.createElement(use,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),q.createElement(cse,mo({},m,{offset:d,horizontalPoints:E,xAxis:_,yAxis:T})),q.createElement(fse,mo({},m,{offset:d,verticalPoints:M,xAxis:_,yAxis:T})),q.createElement(dse,mo({},m,{horizontalPoints:E})),q.createElement(hse,mo({},m,{verticalPoints:M})))}vp.displayName="CartesianGrid";var yse=["type","layout","connectNulls","ref"],vse=["key"];function ll(e){"@babel/helpers - typeof";return ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ll(e)}function Tk(e,t){if(e==null)return{};var n=gse(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gse(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 tc(){return tc=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},tc.apply(this,arguments)}function Ek(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 Bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ek(Object(n),!0).forEach(function(r){Ar(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ek(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function js(e){return wse(e)||Sse(e)||bse(e)||xse()}function xse(){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 bse(e,t){if(e){if(typeof e=="string")return GS(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 GS(e,t)}}function Sse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wse(e){if(Array.isArray(e))return GS(e)}function GS(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 jse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nk(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,mB(r.key),r)}}function Ase(e,t,n){return t&&Nk(e.prototype,t),n&&Nk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ose(e,t,n){return t=gp(t),_se(e,pB()?Reflect.construct(t,n||[],gp(e).constructor):t.apply(e,n))}function _se(e,t){if(t&&(ll(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tse(e)}function Tse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pB=function(){return!!e})()}function gp(e){return gp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gp(e)}function Ese(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&&FS(e,t)}function FS(e,t){return FS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},FS(e,t)}function Ar(e,t,n){return t=mB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mB(e){var t=Nse(e,"string");return ll(t)=="symbol"?t:t+""}function Nse(e,t){if(ll(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ll(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sf=(function(e){function t(){var n;jse(this,t);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=Ose(this,t,[].concat(a)),Ar(n,"state",{isAnimationFinished:!0,totalLength:0}),Ar(n,"generateSimpleStrokeDasharray",function(l,c){return"".concat(c,"px ").concat(l-c,"px")}),Ar(n,"getStrokeDasharray",function(l,c,f){var d=f.reduce(function(A,_){return A+_});if(!d)return n.generateSimpleStrokeDasharray(c,l);for(var m=Math.floor(l/d),y=l%d,g=c-l,S=[],j=0,w=0;j<f.length;w+=f[j],++j)if(w+f[j]>y){S=[].concat(js(f.slice(0,j)),[y-w]);break}var b=S.length%2===0?[0,g]:[g];return[].concat(js(t.repeat(f,m)),js(S),b).map(function(A){return"".concat(A,"px")}).join(", ")}),Ar(n,"id",Po("recharts-line-")),Ar(n,"pathRef",function(l){n.mainCurve=l}),Ar(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Ar(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return Ese(t,e),Ase(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 s=this.props,l=s.points,c=s.xAxis,f=s.yAxis,d=s.layout,m=s.children,y=Fn(m,af);if(!y)return null;var g=function(w,b){return{x:w.x,y:w.y,value:w.value,errorVal:Pt(w.payload,b)}},S={clipPath:r?"url(#clipPath-".concat(a,")"):null};return q.createElement(qe,S,y.map(function(j){return q.cloneElement(j,{key:"bar-".concat(j.props.dataKey),data:l,xAxis:c,yAxis:f,layout:d,dataPointFormatter:g})}))}},{key:"renderDots",value:function(r,a,s){var l=this.props.isAnimationActive;if(l&&!this.state.isAnimationFinished)return null;var c=this.props,f=c.dot,d=c.points,m=c.dataKey,y=Se(this.props,!1),g=Se(f,!0),S=d.map(function(w,b){var A=Bn(Bn(Bn({key:"dot-".concat(b),r:3},y),g),{},{index:b,cx:w.x,cy:w.y,value:w.value,dataKey:m,payload:w.payload,points:d});return t.renderDotItem(f,A)}),j={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(s,")"):null};return q.createElement(qe,tc({className:"recharts-line-dots",key:"dots"},j),S)}},{key:"renderCurveStatically",value:function(r,a,s,l){var c=this.props,f=c.type,d=c.layout,m=c.connectNulls;c.ref;var y=Tk(c,yse),g=Bn(Bn(Bn({},Se(y,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(s,")"):null,points:r},l),{},{type:f,layout:d,connectNulls:m});return q.createElement(So,tc({},g,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,a){var s=this,l=this.props,c=l.points,f=l.strokeDasharray,d=l.isAnimationActive,m=l.animationBegin,y=l.animationDuration,g=l.animationEasing,S=l.animationId,j=l.animateNewValues,w=l.width,b=l.height,A=this.state,_=A.prevPoints,T=A.totalLength;return q.createElement(Cr,{begin:m,duration:y,isActive:d,easing:g,from:{t:0},to:{t:1},key:"line-".concat(S),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(C){var O=C.t;if(_){var E=_.length/c.length,M=c.map(function(z,F){var X=Math.floor(F*E);if(_[X]){var Y=_[X],$=Gt(Y.x,z.x),K=Gt(Y.y,z.y);return Bn(Bn({},z),{},{x:$(O),y:K(O)})}if(j){var Q=Gt(w*2,z.x),ie=Gt(b/2,z.y);return Bn(Bn({},z),{},{x:Q(O),y:ie(O)})}return Bn(Bn({},z),{},{x:z.x,y:z.y})});return s.renderCurveStatically(M,r,a)}var k=Gt(0,T),D=k(O),B;if(f){var I="".concat(f).split(/[,\s]+/gim).map(function(z){return parseFloat(z)});B=s.getStrokeDasharray(D,T,I)}else B=s.generateSimpleStrokeDasharray(T,D);return s.renderCurveStatically(c,r,a,{strokeDasharray:B})})}},{key:"renderCurve",value:function(r,a){var s=this.props,l=s.points,c=s.isAnimationActive,f=this.state,d=f.prevPoints,m=f.totalLength;return c&&l&&l.length&&(!d&&m>0||!_o(d,l))?this.renderCurveWithAnimation(r,a):this.renderCurveStatically(l,r,a)}},{key:"render",value:function(){var r,a=this.props,s=a.hide,l=a.dot,c=a.points,f=a.className,d=a.xAxis,m=a.yAxis,y=a.top,g=a.left,S=a.width,j=a.height,w=a.isAnimationActive,b=a.id;if(s||!c||!c.length)return null;var A=this.state.isAnimationFinished,_=c.length===1,T=Me("recharts-line",f),C=d&&d.allowDataOverflow,O=m&&m.allowDataOverflow,E=C||O,M=Ee(b)?this.id:b,k=(r=Se(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},D=k.r,B=D===void 0?3:D,I=k.strokeWidth,z=I===void 0?2:I,F=v4(l)?l:{},X=F.clipDot,Y=X===void 0?!0:X,$=B*2+z;return q.createElement(qe,{className:T},C||O?q.createElement("defs",null,q.createElement("clipPath",{id:"clipPath-".concat(M)},q.createElement("rect",{x:C?g:g-S/2,y:O?y:y-j/2,width:C?S:S*2,height:O?j:j*2})),!Y&&q.createElement("clipPath",{id:"clipPath-dots-".concat(M)},q.createElement("rect",{x:g-$/2,y:y-$/2,width:S+$,height:j+$}))):null,!_&&this.renderCurve(E,M),this.renderErrorBar(E,M),(_||l)&&this.renderDots(E,Y,M),(!w||A)&&Gr.renderCallByParent(this.props,c))}}],[{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 s=r.length%2!==0?[].concat(js(r),[0]):r,l=[],c=0;c<a;++c)l=[].concat(js(l),js(s));return l}},{key:"renderDotItem",value:function(r,a){var s;if(q.isValidElement(r))s=q.cloneElement(r,a);else if(_e(r))s=r(a);else{var l=a.key,c=Tk(a,vse),f=Me("recharts-line-dot",typeof r!="boolean"?r.className:"");s=q.createElement(of,tc({key:l},c,{className:f}))}return s}}])})(P.PureComponent);Ar(sf,"displayName","Line");Ar(sf,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ma.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Ar(sf,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,a=e.xAxisTicks,s=e.yAxisTicks,l=e.dataKey,c=e.bandSize,f=e.displayedData,d=e.offset,m=t.layout,y=f.map(function(g,S){var j=Pt(g,l);return m==="horizontal"?{x:Kh({axis:n,ticks:a,bandSize:c,entry:g,index:S}),y:Ee(j)?null:r.scale(j),value:j,payload:g}:{x:Ee(j)?null:n.scale(j),y:Kh({axis:r,ticks:s,bandSize:c,entry:g,index:S}),value:j,payload:g}});return Bn({points:y,layout:m},d)});var Cse=["layout","type","stroke","connectNulls","isRange","ref"],Mse=["key"],yB;function ul(e){"@babel/helpers - typeof";return ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ul(e)}function vB(e,t){if(e==null)return{};var n=Pse(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pse(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 yo(){return yo=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},yo.apply(this,arguments)}function Ck(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 pa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ck(Object(n),!0).forEach(function(r){Ur(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ck(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mk(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,xB(r.key),r)}}function Dse(e,t,n){return t&&Mk(e.prototype,t),n&&Mk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kse(e,t,n){return t=xp(t),Lse(e,gB()?Reflect.construct(t,n||[],xp(e).constructor):t.apply(e,n))}function Lse(e,t){if(t&&(ul(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zse(e)}function zse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gB=function(){return!!e})()}function xp(e){return xp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xp(e)}function $se(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&&KS(e,t)}function KS(e,t){return KS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},KS(e,t)}function Ur(e,t,n){return t=xB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xB(e){var t=Bse(e,"string");return ul(t)=="symbol"?t:t+""}function Bse(e,t){if(ul(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ul(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Di=(function(e){function t(){var n;Rse(this,t);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=kse(this,t,[].concat(a)),Ur(n,"state",{isAnimationFinished:!0}),Ur(n,"id",Po("recharts-area-")),Ur(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),_e(l)&&l()}),Ur(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),_e(l)&&l()}),n}return $se(t,e),Dse(t,[{key:"renderDots",value:function(r,a,s){var l=this.props.isAnimationActive,c=this.state.isAnimationFinished;if(l&&!c)return null;var f=this.props,d=f.dot,m=f.points,y=f.dataKey,g=Se(this.props,!1),S=Se(d,!0),j=m.map(function(b,A){var _=pa(pa(pa({key:"dot-".concat(A),r:3},g),S),{},{index:A,cx:b.x,cy:b.y,dataKey:y,value:b.value,payload:b.payload,points:m});return t.renderDotItem(d,_)}),w={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(s,")"):null};return q.createElement(qe,yo({className:"recharts-area-dots"},w),j)}},{key:"renderHorizontalRect",value:function(r){var a=this.props,s=a.baseLine,l=a.points,c=a.strokeWidth,f=l[0].x,d=l[l.length-1].x,m=r*Math.abs(f-d),y=ga(l.map(function(g){return g.y||0}));return ue(s)&&typeof s=="number"?y=Math.max(s,y):s&&Array.isArray(s)&&s.length&&(y=Math.max(ga(s.map(function(g){return g.y||0})),y)),ue(y)?q.createElement("rect",{x:f<d?f:f-m,y:0,width:m,height:Math.floor(y+(c?parseInt("".concat(c),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var a=this.props,s=a.baseLine,l=a.points,c=a.strokeWidth,f=l[0].y,d=l[l.length-1].y,m=r*Math.abs(f-d),y=ga(l.map(function(g){return g.x||0}));return ue(s)&&typeof s=="number"?y=Math.max(s,y):s&&Array.isArray(s)&&s.length&&(y=Math.max(ga(s.map(function(g){return g.x||0})),y)),ue(y)?q.createElement("rect",{x:0,y:f<d?f:f-m,width:y+(c?parseInt("".concat(c),10):1),height:Math.floor(m)}):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,s,l){var c=this.props,f=c.layout,d=c.type,m=c.stroke,y=c.connectNulls,g=c.isRange;c.ref;var S=vB(c,Cse);return q.createElement(qe,{clipPath:s?"url(#clipPath-".concat(l,")"):null},q.createElement(So,yo({},Se(S,!0),{points:r,connectNulls:y,type:d,baseLine:a,layout:f,stroke:"none",className:"recharts-area-area"})),m!=="none"&&q.createElement(So,yo({},Se(this.props,!1),{className:"recharts-area-curve",layout:f,type:d,connectNulls:y,fill:"none",points:r})),m!=="none"&&g&&q.createElement(So,yo({},Se(this.props,!1),{className:"recharts-area-curve",layout:f,type:d,connectNulls:y,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(r,a){var s=this,l=this.props,c=l.points,f=l.baseLine,d=l.isAnimationActive,m=l.animationBegin,y=l.animationDuration,g=l.animationEasing,S=l.animationId,j=this.state,w=j.prevPoints,b=j.prevBaseLine;return q.createElement(Cr,{begin:m,duration:y,isActive:d,easing:g,from:{t:0},to:{t:1},key:"area-".concat(S),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(A){var _=A.t;if(w){var T=w.length/c.length,C=c.map(function(k,D){var B=Math.floor(D*T);if(w[B]){var I=w[B],z=Gt(I.x,k.x),F=Gt(I.y,k.y);return pa(pa({},k),{},{x:z(_),y:F(_)})}return k}),O;if(ue(f)&&typeof f=="number"){var E=Gt(b,f);O=E(_)}else if(Ee(f)||jl(f)){var M=Gt(b,0);O=M(_)}else O=f.map(function(k,D){var B=Math.floor(D*T);if(b[B]){var I=b[B],z=Gt(I.x,k.x),F=Gt(I.y,k.y);return pa(pa({},k),{},{x:z(_),y:F(_)})}return k});return s.renderAreaStatically(C,O,r,a)}return q.createElement(qe,null,q.createElement("defs",null,q.createElement("clipPath",{id:"animationClipPath-".concat(a)},s.renderClipRect(_))),q.createElement(qe,{clipPath:"url(#animationClipPath-".concat(a,")")},s.renderAreaStatically(c,f,r,a)))})}},{key:"renderArea",value:function(r,a){var s=this.props,l=s.points,c=s.baseLine,f=s.isAnimationActive,d=this.state,m=d.prevPoints,y=d.prevBaseLine,g=d.totalLength;return f&&l&&l.length&&(!m&&g>0||!_o(m,l)||!_o(y,c))?this.renderAreaWithAnimation(r,a):this.renderAreaStatically(l,c,r,a)}},{key:"render",value:function(){var r,a=this.props,s=a.hide,l=a.dot,c=a.points,f=a.className,d=a.top,m=a.left,y=a.xAxis,g=a.yAxis,S=a.width,j=a.height,w=a.isAnimationActive,b=a.id;if(s||!c||!c.length)return null;var A=this.state.isAnimationFinished,_=c.length===1,T=Me("recharts-area",f),C=y&&y.allowDataOverflow,O=g&&g.allowDataOverflow,E=C||O,M=Ee(b)?this.id:b,k=(r=Se(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},D=k.r,B=D===void 0?3:D,I=k.strokeWidth,z=I===void 0?2:I,F=v4(l)?l:{},X=F.clipDot,Y=X===void 0?!0:X,$=B*2+z;return q.createElement(qe,{className:T},C||O?q.createElement("defs",null,q.createElement("clipPath",{id:"clipPath-".concat(M)},q.createElement("rect",{x:C?m:m-S/2,y:O?d:d-j/2,width:C?S:S*2,height:O?j:j*2})),!Y&&q.createElement("clipPath",{id:"clipPath-dots-".concat(M)},q.createElement("rect",{x:m-$/2,y:d-$/2,width:S+$,height:j+$}))):null,_?null:this.renderArea(E,M),(l||_)&&this.renderDots(E,Y,M),(!w||A)&&Gr.renderCallByParent(this.props,c))}}],[{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}}])})(P.PureComponent);yB=Di;Ur(Di,"displayName","Area");Ur(Di,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ma.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Ur(Di,"getBaseValue",function(e,t,n,r){var a=e.layout,s=e.baseValue,l=t.props.baseValue,c=l??s;if(ue(c)&&typeof c=="number")return c;var f=a==="horizontal"?r:n,d=f.scale.domain();if(f.type==="number"){var m=Math.max(d[0],d[1]),y=Math.min(d[0],d[1]);return c==="dataMin"?y:c==="dataMax"||m<0?m:Math.max(Math.min(d[0],d[1]),0)}return c==="dataMin"?d[0]:c==="dataMax"?d[1]:d[0]});Ur(Di,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,a=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,c=e.bandSize,f=e.dataKey,d=e.stackedData,m=e.dataStartIndex,y=e.displayedData,g=e.offset,S=t.layout,j=d&&d.length,w=yB.getBaseValue(t,n,r,a),b=S==="horizontal",A=!1,_=y.map(function(C,O){var E;j?E=d[m+O]:(E=Pt(C,f),Array.isArray(E)?A=!0:E=[w,E]);var M=E[1]==null||j&&Pt(C,f)==null;return b?{x:Kh({axis:r,ticks:s,bandSize:c,entry:C,index:O}),y:M?null:a.scale(E[1]),value:E,payload:C}:{x:M?null:r.scale(E[1]),y:Kh({axis:a,ticks:l,bandSize:c,entry:C,index:O}),value:E,payload:C}}),T;return j||A?T=_.map(function(C){var O=Array.isArray(C.value)?C.value[0]:null;return b?{x:C.x,y:O!=null&&C.y!=null?a.scale(O):null}:{x:O!=null?r.scale(O):null,y:C.y}}):T=b?a.scale(w):r.scale(w),pa({points:_,baseLine:T,layout:S,isRange:A},g)});Ur(Di,"renderDotItem",function(e,t){var n;if(q.isValidElement(e))n=q.cloneElement(e,t);else if(_e(e))n=e(t);else{var r=Me("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,s=vB(t,Mse);n=q.createElement(of,yo({},s,{key:a,className:r}))}return n});function cl(e){"@babel/helpers - typeof";return cl=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},cl(e)}function qse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ise(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,wB(r.key),r)}}function Use(e,t,n){return t&&Ise(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vse(e,t,n){return t=bp(t),Hse(e,bB()?Reflect.construct(t,n||[],bp(e).constructor):t.apply(e,n))}function Hse(e,t){if(t&&(cl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gse(e)}function Gse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bB=function(){return!!e})()}function bp(e){return bp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bp(e)}function Fse(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&&YS(e,t)}function YS(e,t){return YS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},YS(e,t)}function SB(e,t,n){return t=wB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wB(e){var t=Kse(e,"string");return cl(t)=="symbol"?t:t+""}function Kse(e,t){if(cl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function XS(){return XS=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},XS.apply(this,arguments)}function Yse(e){var t=e.xAxisId,n=Yj(),r=Xj(),a=nB(t);return a==null?null:P.createElement(El,XS({},a,{className:Me("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(l){return _i(l,!0)}}))}var _a=(function(e){function t(){return qse(this,t),Vse(this,t,arguments)}return Fse(t,e),Use(t,[{key:"render",value:function(){return P.createElement(Yse,this.props)}}])})(P.Component);SB(_a,"displayName","XAxis");SB(_a,"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 fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function Xse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wse(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,OB(r.key),r)}}function Zse(e,t,n){return t&&Wse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qse(e,t,n){return t=Sp(t),Jse(e,jB()?Reflect.construct(t,n||[],Sp(e).constructor):t.apply(e,n))}function Jse(e,t){if(t&&(fl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ele(e)}function ele(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jB=function(){return!!e})()}function Sp(e){return Sp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sp(e)}function tle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&WS(e,t)}function WS(e,t){return WS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},WS(e,t)}function AB(e,t,n){return t=OB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OB(e){var t=nle(e,"string");return fl(t)=="symbol"?t:t+""}function nle(e,t){if(fl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ZS(){return ZS=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},ZS.apply(this,arguments)}var rle=function(t){var n=t.yAxisId,r=Yj(),a=Xj(),s=rB(n);return s==null?null:P.createElement(El,ZS({},s,{className:Me("recharts-".concat(s.axisType," ").concat(s.axisType),s.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(c){return _i(c,!0)}}))},Ta=(function(e){function t(){return Xse(this,t),Qse(this,t,arguments)}return tle(t,e),Zse(t,[{key:"render",value:function(){return P.createElement(rle,this.props)}}])})(P.Component);AB(Ta,"displayName","YAxis");AB(Ta,"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 Pk(e){return sle(e)||ole(e)||ale(e)||ile()}function ile(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ale(e,t){if(e){if(typeof e=="string")return QS(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 QS(e,t)}}function ole(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sle(e){if(Array.isArray(e))return QS(e)}function QS(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 JS=function(t,n,r,a,s){var l=Fn(t,Zj),c=Fn(t,cm),f=[].concat(Pk(l),Pk(c)),d=Fn(t,dm),m="".concat(a,"Id"),y=a[0],g=n;if(f.length&&(g=f.reduce(function(w,b){if(b.props[m]===r&&Fr(b.props,"extendDomain")&&ue(b.props[y])){var A=b.props[y];return[Math.min(w[0],A),Math.max(w[1],A)]}return w},g)),d.length){var S="".concat(y,"1"),j="".concat(y,"2");g=d.reduce(function(w,b){if(b.props[m]===r&&Fr(b.props,"extendDomain")&&ue(b.props[S])&&ue(b.props[j])){var A=b.props[S],_=b.props[j];return[Math.min(w[0],A,_),Math.max(w[1],A,_)]}return w},g)}return s&&s.length&&(g=s.reduce(function(w,b){return ue(b)?[Math.min(w[0],b),Math.max(w[1],b)]:w},g)),g},Z0={exports:{}},Rk;function lle(){return Rk||(Rk=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(f,d,m){this.fn=f,this.context=d,this.once=m||!1}function s(f,d,m,y,g){if(typeof m!="function")throw new TypeError("The listener must be a function");var S=new a(m,y||f,g),j=n?n+d:d;return f._events[j]?f._events[j].fn?f._events[j]=[f._events[j],S]:f._events[j].push(S):(f._events[j]=S,f._eventsCount++),f}function l(f,d){--f._eventsCount===0?f._events=new r:delete f._events[d]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var d=[],m,y;if(this._eventsCount===0)return d;for(y in m=this._events)t.call(m,y)&&d.push(n?y.slice(1):y);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(m)):d},c.prototype.listeners=function(d){var m=n?n+d:d,y=this._events[m];if(!y)return[];if(y.fn)return[y.fn];for(var g=0,S=y.length,j=new Array(S);g<S;g++)j[g]=y[g].fn;return j},c.prototype.listenerCount=function(d){var m=n?n+d:d,y=this._events[m];return y?y.fn?1:y.length:0},c.prototype.emit=function(d,m,y,g,S,j){var w=n?n+d:d;if(!this._events[w])return!1;var b=this._events[w],A=arguments.length,_,T;if(b.fn){switch(b.once&&this.removeListener(d,b.fn,void 0,!0),A){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,m),!0;case 3:return b.fn.call(b.context,m,y),!0;case 4:return b.fn.call(b.context,m,y,g),!0;case 5:return b.fn.call(b.context,m,y,g,S),!0;case 6:return b.fn.call(b.context,m,y,g,S,j),!0}for(T=1,_=new Array(A-1);T<A;T++)_[T-1]=arguments[T];b.fn.apply(b.context,_)}else{var C=b.length,O;for(T=0;T<C;T++)switch(b[T].once&&this.removeListener(d,b[T].fn,void 0,!0),A){case 1:b[T].fn.call(b[T].context);break;case 2:b[T].fn.call(b[T].context,m);break;case 3:b[T].fn.call(b[T].context,m,y);break;case 4:b[T].fn.call(b[T].context,m,y,g);break;default:if(!_)for(O=1,_=new Array(A-1);O<A;O++)_[O-1]=arguments[O];b[T].fn.apply(b[T].context,_)}}return!0},c.prototype.on=function(d,m,y){return s(this,d,m,y,!1)},c.prototype.once=function(d,m,y){return s(this,d,m,y,!0)},c.prototype.removeListener=function(d,m,y,g){var S=n?n+d:d;if(!this._events[S])return this;if(!m)return l(this,S),this;var j=this._events[S];if(j.fn)j.fn===m&&(!g||j.once)&&(!y||j.context===y)&&l(this,S);else{for(var w=0,b=[],A=j.length;w<A;w++)(j[w].fn!==m||g&&!j[w].once||y&&j[w].context!==y)&&b.push(j[w]);b.length?this._events[S]=b.length===1?b[0]:b:l(this,S)}return this},c.prototype.removeAllListeners=function(d){var m;return d?(m=n?n+d:d,this._events[m]&&l(this,m)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c})(Z0)),Z0.exports}var ule=lle();const cle=nt(ule);var Q0=new cle,J0="recharts.syncMouseEvents";function Ic(e){"@babel/helpers - typeof";return Ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ic(e)}function fle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_B(r.key),r)}}function hle(e,t,n){return t&&dle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function e1(e,t,n){return t=_B(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _B(e){var t=ple(e,"string");return Ic(t)=="symbol"?t:t+""}function ple(e,t){if(Ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mle=(function(){function e(){fle(this,e),e1(this,"activeIndex",0),e1(this,"coordinateList",[]),e1(this,"layout","horizontal")}return hle(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,s=a===void 0?null:a,l=n.container,c=l===void 0?null:l,f=n.layout,d=f===void 0?null:f,m=n.offset,y=m===void 0?null:m,g=n.mouseHandlerCallback,S=g===void 0?null:g;this.coordinateList=(r=s??this.coordinateList)!==null&&r!==void 0?r:[],this.container=c??this.container,this.layout=d??this.layout,this.offset=y??this.offset,this.mouseHandlerCallback=S??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(),s=a.x,l=a.y,c=a.height,f=this.coordinateList[this.activeIndex].coordinate,d=((n=window)===null||n===void 0?void 0:n.scrollX)||0,m=((r=window)===null||r===void 0?void 0:r.scrollY)||0,y=s+f+d,g=l+this.offset.top+c/2+m;this.mouseHandlerCallback({pageX:y,pageY:g})}}}])})();function yle(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&&ue(r)&&ue(a))return!0}return!1}function vle(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 TB(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,s=e.endAngle,l=pt(t,n,r,a),c=pt(t,n,r,s);return{points:[l,c],cx:t,cy:n,radius:r,startAngle:a,endAngle:s}}function gle(e,t,n){var r,a,s,l;if(e==="horizontal")r=t.x,s=r,a=n.top,l=n.top+n.height;else if(e==="vertical")a=t.y,l=a,r=n.left,s=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var c=t.cx,f=t.cy,d=t.innerRadius,m=t.outerRadius,y=t.angle,g=pt(c,f,d,y),S=pt(c,f,m,y);r=g.x,a=g.y,s=S.x,l=S.y}else return TB(t);return[{x:r,y:a},{x:s,y:l}]}function Uc(e){"@babel/helpers - typeof";return Uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uc(e)}function Dk(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 Gd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dk(Object(n),!0).forEach(function(r){xle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xle(e,t,n){return t=ble(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ble(e){var t=Sle(e,"string");return Uc(t)=="symbol"?t:t+""}function Sle(e,t){if(Uc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wle(e){var t,n,r=e.element,a=e.tooltipEventType,s=e.isActive,l=e.activeCoordinate,c=e.activePayload,f=e.offset,d=e.activeTooltipIndex,m=e.tooltipAxisBandSize,y=e.layout,g=e.chartName,S=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!S||!s||!l||g!=="ScatterChart"&&a!=="axis")return null;var j,w=So;if(g==="ScatterChart")j=l,w=Dre;else if(g==="BarChart")j=vle(y,l,f,m),w=Vj;else if(y==="radial"){var b=TB(l),A=b.cx,_=b.cy,T=b.radius,C=b.startAngle,O=b.endAngle;j={cx:A,cy:_,startAngle:C,endAngle:O,innerRadius:T,outerRadius:T},w=O$}else j={points:gle(y,l,f)},w=So;var E=Gd(Gd(Gd(Gd({stroke:"#ccc",pointerEvents:"none"},f),j),Se(S,!1)),{},{payload:c,payloadIndex:d,className:Me("recharts-tooltip-cursor",S.className)});return P.isValidElement(S)?P.cloneElement(S,E):P.createElement(w,E)}var jle=["item"],Ale=["children","className","width","height","style","compact","title","desc"];function dl(e){"@babel/helpers - typeof";return dl=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},dl(e)}function Rs(){return Rs=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},Rs.apply(this,arguments)}function kk(e,t){return Tle(e)||_le(e,t)||NB(e,t)||Ole()}function Ole(){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 _le(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Tle(e){if(Array.isArray(e))return e}function Lk(e,t){if(e==null)return{};var n=Ele(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ele(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Nle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cle(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,CB(r.key),r)}}function Mle(e,t,n){return t&&Cle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ple(e,t,n){return t=wp(t),Rle(e,EB()?Reflect.construct(t,n||[],wp(e).constructor):t.apply(e,n))}function Rle(e,t){if(t&&(dl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dle(e)}function Dle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EB=function(){return!!e})()}function wp(e){return wp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wp(e)}function kle(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&&ew(e,t)}function ew(e,t){return ew=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ew(e,t)}function hl(e){return $le(e)||zle(e)||NB(e)||Lle()}function Lle(){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 NB(e,t){if(e){if(typeof e=="string")return tw(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 tw(e,t)}}function zle(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $le(e){if(Array.isArray(e))return tw(e)}function tw(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 zk(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 ne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zk(Object(n),!0).forEach(function(r){Oe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oe(e,t,n){return t=CB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CB(e){var t=Ble(e,"string");return dl(t)=="symbol"?t:t+""}function Ble(e,t){if(dl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qle={xAxis:["bottom","top"],yAxis:["left","right"]},Ile={width:"100%",height:"100%"},MB={x:0,y:0};function Fd(e){return e}var Ule=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Vle=function(t,n,r,a){var s=n.find(function(m){return m&&m.index===r});if(s){if(t==="horizontal")return{x:s.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:s.coordinate};if(t==="centric"){var l=s.coordinate,c=a.radius;return ne(ne(ne({},a),pt(a.cx,a.cy,c,l)),{},{angle:l,radius:c})}var f=s.coordinate,d=a.angle;return ne(ne(ne({},a),pt(a.cx,a.cy,f,d)),{},{angle:d,radius:f})}return MB},hm=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,s=n.dataEndIndex,l=(r??[]).reduce(function(c,f){var d=f.props.data;return d&&d.length?[].concat(hl(c),hl(d)):c},[]);return l.length>0?l:t&&t.length&&ue(a)&&ue(s)?t.slice(a,s+1):[]};function PB(e){return e==="number"?[0,"auto"]:void 0}var nw=function(t,n,r,a){var s=t.graphicalItems,l=t.tooltipAxis,c=hm(n,t);return r<0||!s||!s.length||r>=c.length?null:s.reduce(function(f,d){var m,y=(m=d.props.data)!==null&&m!==void 0?m:n;y&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(y=y.slice(t.dataStartIndex,t.dataEndIndex+1));var g;if(l.dataKey&&!l.allowDuplicatedCategory){var S=y===void 0?c:y;g=bh(S,l.dataKey,a)}else g=y&&y[r]||c[r];return g?[].concat(hl(f),[x$(d,g)]):f},[])},$k=function(t,n,r,a){var s=a||{x:t.chartX,y:t.chartY},l=Ule(s,r),c=t.orderedTooltipTicks,f=t.tooltipAxis,d=t.tooltipTicks,m=tee(l,c,d,f);if(m>=0&&d){var y=d[m]&&d[m].value,g=nw(t,n,m,y),S=Vle(r,c,m,s);return{activeTooltipIndex:m,activeLabel:y,activePayload:g,activeCoordinate:S}}return null},Hle=function(t,n){var r=n.axes,a=n.graphicalItems,s=n.axisType,l=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.layout,y=t.children,g=t.stackOffset,S=h$(m,s);return r.reduce(function(j,w){var b,A=w.type.defaultProps!==void 0?ne(ne({},w.type.defaultProps),w.props):w.props,_=A.type,T=A.dataKey,C=A.allowDataOverflow,O=A.allowDuplicatedCategory,E=A.scale,M=A.ticks,k=A.includeHidden,D=A[l];if(j[D])return j;var B=hm(t.data,{graphicalItems:a.filter(function(H){var re,fe=l in H.props?H.props[l]:(re=H.type.defaultProps)===null||re===void 0?void 0:re[l];return fe===D}),dataStartIndex:f,dataEndIndex:d}),I=B.length,z,F,X;yle(A.domain,C,_)&&(z=mS(A.domain,null,C),S&&(_==="number"||E!=="auto")&&(X=Zu(B,T,"category")));var Y=PB(_);if(!z||z.length===0){var $,K=($=A.domain)!==null&&$!==void 0?$:Y;if(T){if(z=Zu(B,T,_),_==="category"&&S){var Q=XG(z);O&&Q?(F=z,z=sp(0,I)):O||(z=$R(K,z,w).reduce(function(H,re){return H.indexOf(re)>=0?H:[].concat(hl(H),[re])},[]))}else if(_==="category")O?z=z.filter(function(H){return H!==""&&!Ee(H)}):z=$R(K,z,w).reduce(function(H,re){return H.indexOf(re)>=0||re===""||Ee(re)?H:[].concat(hl(H),[re])},[]);else if(_==="number"){var ie=oee(B,a.filter(function(H){var re,fe,ve=l in H.props?H.props[l]:(re=H.type.defaultProps)===null||re===void 0?void 0:re[l],je="hide"in H.props?H.props.hide:(fe=H.type.defaultProps)===null||fe===void 0?void 0:fe.hide;return ve===D&&(k||!je)}),T,s,m);ie&&(z=ie)}S&&(_==="number"||E!=="auto")&&(X=Zu(B,T,"category"))}else S?z=sp(0,I):c&&c[D]&&c[D].hasStack&&_==="number"?z=g==="expand"?[0,1]:g$(c[D].stackGroups,f,d):z=d$(B,a.filter(function(H){var re=l in H.props?H.props[l]:H.type.defaultProps[l],fe="hide"in H.props?H.props.hide:H.type.defaultProps.hide;return re===D&&(k||!fe)}),_,m,!0);if(_==="number")z=JS(y,z,D,s,M),K&&(z=mS(K,z,C));else if(_==="category"&&K){var se=K,L=z.every(function(H){return se.indexOf(H)>=0});L&&(z=se)}}return ne(ne({},j),{},Oe({},D,ne(ne({},A),{},{axisType:s,domain:z,categoricalDomain:X,duplicateDomain:F,originalDomain:(b=A.domain)!==null&&b!==void 0?b:Y,isCategorical:S,layout:m})))},{})},Gle=function(t,n){var r=n.graphicalItems,a=n.Axis,s=n.axisType,l=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.layout,y=t.children,g=hm(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:d}),S=g.length,j=h$(m,s),w=-1;return r.reduce(function(b,A){var _=A.type.defaultProps!==void 0?ne(ne({},A.type.defaultProps),A.props):A.props,T=_[l],C=PB("number");if(!b[T]){w++;var O;return j?O=sp(0,S):c&&c[T]&&c[T].hasStack?(O=g$(c[T].stackGroups,f,d),O=JS(y,O,T,s)):(O=mS(C,d$(g,r.filter(function(E){var M,k,D=l in E.props?E.props[l]:(M=E.type.defaultProps)===null||M===void 0?void 0:M[l],B="hide"in E.props?E.props.hide:(k=E.type.defaultProps)===null||k===void 0?void 0:k.hide;return D===T&&!B}),"number",m),a.defaultProps.allowDataOverflow),O=JS(y,O,T,s)),ne(ne({},b),{},Oe({},T,ne(ne({axisType:s},a.defaultProps),{},{hide:!0,orientation:Gn(qle,"".concat(s,".").concat(w%2),null),domain:O,originalDomain:C,isCategorical:j,layout:m})))}return b},{})},Fle=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,s=n.AxisComp,l=n.graphicalItems,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.children,y="".concat(a,"Id"),g=Fn(m,s),S={};return g&&g.length?S=Hle(t,{axes:g,graphicalItems:l,axisType:a,axisIdKey:y,stackGroups:c,dataStartIndex:f,dataEndIndex:d}):l&&l.length&&(S=Gle(t,{Axis:s,graphicalItems:l,axisType:a,axisIdKey:y,stackGroups:c,dataStartIndex:f,dataEndIndex:d})),S},Kle=function(t){var n=ya(t),r=_i(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:yj(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Yh(n,r)}},Bk=function(t){var n=t.children,r=t.defaultShowTooltip,a=In(n,nl),s=0,l=0;return t.data&&t.data.length!==0&&(l=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(s=a.props.startIndex),a.props.endIndex>=0&&(l=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:s,dataEndIndex:l,activeTooltipIndex:-1,isTooltipActive:!!r}},Yle=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ti(n&&n.type);return r&&r.indexOf("Bar")>=0})},qk=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"}},Xle=function(t,n){var r=t.props,a=t.graphicalItems,s=t.xAxisMap,l=s===void 0?{}:s,c=t.yAxisMap,f=c===void 0?{}:c,d=r.width,m=r.height,y=r.children,g=r.margin||{},S=In(y,nl),j=In(y,Ls),w=Object.keys(f).reduce(function(O,E){var M=f[E],k=M.orientation;return!M.mirror&&!M.hide?ne(ne({},O),{},Oe({},k,O[k]+M.width)):O},{left:g.left||0,right:g.right||0}),b=Object.keys(l).reduce(function(O,E){var M=l[E],k=M.orientation;return!M.mirror&&!M.hide?ne(ne({},O),{},Oe({},k,Gn(O,"".concat(k))+M.height)):O},{top:g.top||0,bottom:g.bottom||0}),A=ne(ne({},b),w),_=A.bottom;S&&(A.bottom+=S.props.height||nl.defaultProps.height),j&&n&&(A=iee(A,a,r,n));var T=d-A.left-A.right,C=m-A.top-A.bottom;return ne(ne({brushBottom:_},A),{},{width:Math.max(T,0),height:Math.max(C,0)})},Wle=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},pm=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,s=a===void 0?"axis":a,l=t.validateTooltipEventTypes,c=l===void 0?["axis"]:l,f=t.axisComponents,d=t.legendContent,m=t.formatAxisMap,y=t.defaultProps,g=function(A,_){var T=_.graphicalItems,C=_.stackGroups,O=_.offset,E=_.updateId,M=_.dataStartIndex,k=_.dataEndIndex,D=A.barSize,B=A.layout,I=A.barGap,z=A.barCategoryGap,F=A.maxBarSize,X=qk(B),Y=X.numericAxisName,$=X.cateAxisName,K=Yle(T),Q=[];return T.forEach(function(ie,se){var L=hm(A.data,{graphicalItems:[ie],dataStartIndex:M,dataEndIndex:k}),H=ie.type.defaultProps!==void 0?ne(ne({},ie.type.defaultProps),ie.props):ie.props,re=H.dataKey,fe=H.maxBarSize,ve=H["".concat(Y,"Id")],je=H["".concat($,"Id")],ze={},Xe=f.reduce(function(yr,ti){var Nl=_["".concat(ti.axisType,"Map")],cn=H["".concat(ti.axisType,"Id")];Nl&&Nl[cn]||ti.axisType==="zAxis"||Eo();var lf=Nl[cn];return ne(ne({},yr),{},Oe(Oe({},ti.axisType,lf),"".concat(ti.axisType,"Ticks"),_i(lf)))},ze),ce=Xe[$],Te=Xe["".concat($,"Ticks")],Ne=C&&C[ve]&&C[ve].hasStack&&mee(ie,C[ve].stackGroups),le=Ti(ie.type).indexOf("Bar")>=0,mt=Yh(ce,Te),De=[],At=K&&nee({barSize:D,stackGroups:C,totalSize:Wle(Xe,$)});if(le){var Ot,un,mr=Ee(fe)?F:fe,Dr=(Ot=(un=Yh(ce,Te,!0))!==null&&un!==void 0?un:mr)!==null&&Ot!==void 0?Ot:0;De=ree({barGap:I,barCategoryGap:z,bandSize:Dr!==mt?Dr:mt,sizeList:At[je],maxBarSize:mr}),Dr!==mt&&(De=De.map(function(yr){return ne(ne({},yr),{},{position:ne(ne({},yr.position),{},{offset:yr.position.offset-Dr/2})})}))}var Bi=ie&&ie.type&&ie.type.getComposedData;Bi&&Q.push({props:ne(ne({},Bi(ne(ne({},Xe),{},{displayedData:L,props:A,dataKey:re,item:ie,bandSize:mt,barPosition:De,offset:O,stackedData:Ne,layout:B,dataStartIndex:M,dataEndIndex:k}))),{},Oe(Oe(Oe({key:ie.key||"item-".concat(se)},Y,Xe[Y]),$,Xe[$]),"animationId",E)),childIndex:sF(ie,A.children),item:ie})}),Q},S=function(A,_){var T=A.props,C=A.dataStartIndex,O=A.dataEndIndex,E=A.updateId;if(!JN({props:T}))return null;var M=T.children,k=T.layout,D=T.stackOffset,B=T.data,I=T.reverseStackOrder,z=qk(k),F=z.numericAxisName,X=z.cateAxisName,Y=Fn(M,r),$=hee(B,Y,"".concat(F,"Id"),"".concat(X,"Id"),D,I),K=f.reduce(function(H,re){var fe="".concat(re.axisType,"Map");return ne(ne({},H),{},Oe({},fe,Fle(T,ne(ne({},re),{},{graphicalItems:Y,stackGroups:re.axisType===F&&$,dataStartIndex:C,dataEndIndex:O}))))},{}),Q=Xle(ne(ne({},K),{},{props:T,graphicalItems:Y}),_==null?void 0:_.legendBBox);Object.keys(K).forEach(function(H){K[H]=m(T,K[H],Q,H.replace("Map",""),n)});var ie=K["".concat(X,"Map")],se=Kle(ie),L=g(T,ne(ne({},K),{},{dataStartIndex:C,dataEndIndex:O,updateId:E,graphicalItems:Y,stackGroups:$,offset:Q}));return ne(ne({formattedGraphicalItems:L,graphicalItems:Y,offset:Q,stackGroups:$},se),K)},j=(function(b){function A(_){var T,C,O;return Nle(this,A),O=Ple(this,A,[_]),Oe(O,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Oe(O,"accessibilityManager",new mle),Oe(O,"handleLegendBBoxUpdate",function(E){if(E){var M=O.state,k=M.dataStartIndex,D=M.dataEndIndex,B=M.updateId;O.setState(ne({legendBBox:E},S({props:O.props,dataStartIndex:k,dataEndIndex:D,updateId:B},ne(ne({},O.state),{},{legendBBox:E}))))}}),Oe(O,"handleReceiveSyncEvent",function(E,M,k){if(O.props.syncId===E){if(k===O.eventEmitterSymbol&&typeof O.props.syncMethod!="function")return;O.applySyncEvent(M)}}),Oe(O,"handleBrushChange",function(E){var M=E.startIndex,k=E.endIndex;if(M!==O.state.dataStartIndex||k!==O.state.dataEndIndex){var D=O.state.updateId;O.setState(function(){return ne({dataStartIndex:M,dataEndIndex:k},S({props:O.props,dataStartIndex:M,dataEndIndex:k,updateId:D},O.state))}),O.triggerSyncEvent({dataStartIndex:M,dataEndIndex:k})}}),Oe(O,"handleMouseEnter",function(E){var M=O.getMouseInfo(E);if(M){var k=ne(ne({},M),{},{isTooltipActive:!0});O.setState(k),O.triggerSyncEvent(k);var D=O.props.onMouseEnter;_e(D)&&D(k,E)}}),Oe(O,"triggeredAfterMouseMove",function(E){var M=O.getMouseInfo(E),k=M?ne(ne({},M),{},{isTooltipActive:!0}):{isTooltipActive:!1};O.setState(k),O.triggerSyncEvent(k);var D=O.props.onMouseMove;_e(D)&&D(k,E)}),Oe(O,"handleItemMouseEnter",function(E){O.setState(function(){return{isTooltipActive:!0,activeItem:E,activePayload:E.tooltipPayload,activeCoordinate:E.tooltipPosition||{x:E.cx,y:E.cy}}})}),Oe(O,"handleItemMouseLeave",function(){O.setState(function(){return{isTooltipActive:!1}})}),Oe(O,"handleMouseMove",function(E){E.persist(),O.throttleTriggeredAfterMouseMove(E)}),Oe(O,"handleMouseLeave",function(E){O.throttleTriggeredAfterMouseMove.cancel();var M={isTooltipActive:!1};O.setState(M),O.triggerSyncEvent(M);var k=O.props.onMouseLeave;_e(k)&&k(M,E)}),Oe(O,"handleOuterEvent",function(E){var M=oF(E),k=Gn(O.props,"".concat(M));if(M&&_e(k)){var D,B;/.*touch.*/i.test(M)?B=O.getMouseInfo(E.changedTouches[0]):B=O.getMouseInfo(E),k((D=B)!==null&&D!==void 0?D:{},E)}}),Oe(O,"handleClick",function(E){var M=O.getMouseInfo(E);if(M){var k=ne(ne({},M),{},{isTooltipActive:!0});O.setState(k),O.triggerSyncEvent(k);var D=O.props.onClick;_e(D)&&D(k,E)}}),Oe(O,"handleMouseDown",function(E){var M=O.props.onMouseDown;if(_e(M)){var k=O.getMouseInfo(E);M(k,E)}}),Oe(O,"handleMouseUp",function(E){var M=O.props.onMouseUp;if(_e(M)){var k=O.getMouseInfo(E);M(k,E)}}),Oe(O,"handleTouchMove",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&O.throttleTriggeredAfterMouseMove(E.changedTouches[0])}),Oe(O,"handleTouchStart",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&O.handleMouseDown(E.changedTouches[0])}),Oe(O,"handleTouchEnd",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&O.handleMouseUp(E.changedTouches[0])}),Oe(O,"handleDoubleClick",function(E){var M=O.props.onDoubleClick;if(_e(M)){var k=O.getMouseInfo(E);M(k,E)}}),Oe(O,"handleContextMenu",function(E){var M=O.props.onContextMenu;if(_e(M)){var k=O.getMouseInfo(E);M(k,E)}}),Oe(O,"triggerSyncEvent",function(E){O.props.syncId!==void 0&&Q0.emit(J0,O.props.syncId,E,O.eventEmitterSymbol)}),Oe(O,"applySyncEvent",function(E){var M=O.props,k=M.layout,D=M.syncMethod,B=O.state.updateId,I=E.dataStartIndex,z=E.dataEndIndex;if(E.dataStartIndex!==void 0||E.dataEndIndex!==void 0)O.setState(ne({dataStartIndex:I,dataEndIndex:z},S({props:O.props,dataStartIndex:I,dataEndIndex:z,updateId:B},O.state)));else if(E.activeTooltipIndex!==void 0){var F=E.chartX,X=E.chartY,Y=E.activeTooltipIndex,$=O.state,K=$.offset,Q=$.tooltipTicks;if(!K)return;if(typeof D=="function")Y=D(Q,E);else if(D==="value"){Y=-1;for(var ie=0;ie<Q.length;ie++)if(Q[ie].value===E.activeLabel){Y=ie;break}}var se=ne(ne({},K),{},{x:K.left,y:K.top}),L=Math.min(F,se.x+se.width),H=Math.min(X,se.y+se.height),re=Q[Y]&&Q[Y].value,fe=nw(O.state,O.props.data,Y),ve=Q[Y]?{x:k==="horizontal"?Q[Y].coordinate:L,y:k==="horizontal"?H:Q[Y].coordinate}:MB;O.setState(ne(ne({},E),{},{activeLabel:re,activeCoordinate:ve,activePayload:fe,activeTooltipIndex:Y}))}else O.setState(E)}),Oe(O,"renderCursor",function(E){var M,k=O.state,D=k.isTooltipActive,B=k.activeCoordinate,I=k.activePayload,z=k.offset,F=k.activeTooltipIndex,X=k.tooltipAxisBandSize,Y=O.getTooltipEventType(),$=(M=E.props.active)!==null&&M!==void 0?M:D,K=O.props.layout,Q=E.key||"_recharts-cursor";return q.createElement(wle,{key:Q,activeCoordinate:B,activePayload:I,activeTooltipIndex:F,chartName:n,element:E,isActive:$,layout:K,offset:z,tooltipAxisBandSize:X,tooltipEventType:Y})}),Oe(O,"renderPolarAxis",function(E,M,k){var D=Gn(E,"type.axisType"),B=Gn(O.state,"".concat(D,"Map")),I=E.type.defaultProps,z=I!==void 0?ne(ne({},I),E.props):E.props,F=B&&B[z["".concat(D,"Id")]];return P.cloneElement(E,ne(ne({},F),{},{className:Me(D,F.className),key:E.key||"".concat(M,"-").concat(k),ticks:_i(F,!0)}))}),Oe(O,"renderPolarGrid",function(E){var M=E.props,k=M.radialLines,D=M.polarAngles,B=M.polarRadius,I=O.state,z=I.radiusAxisMap,F=I.angleAxisMap,X=ya(z),Y=ya(F),$=Y.cx,K=Y.cy,Q=Y.innerRadius,ie=Y.outerRadius;return P.cloneElement(E,{polarAngles:Array.isArray(D)?D:_i(Y,!0).map(function(se){return se.coordinate}),polarRadius:Array.isArray(B)?B:_i(X,!0).map(function(se){return se.coordinate}),cx:$,cy:K,innerRadius:Q,outerRadius:ie,key:E.key||"polar-grid",radialLines:k})}),Oe(O,"renderLegend",function(){var E=O.state.formattedGraphicalItems,M=O.props,k=M.children,D=M.width,B=M.height,I=O.props.margin||{},z=D-(I.left||0)-(I.right||0),F=c$({children:k,formattedGraphicalItems:E,legendWidth:z,legendContent:d});if(!F)return null;var X=F.item,Y=Lk(F,jle);return P.cloneElement(X,ne(ne({},Y),{},{chartWidth:D,chartHeight:B,margin:I,onBBoxUpdate:O.handleLegendBBoxUpdate}))}),Oe(O,"renderTooltip",function(){var E,M=O.props,k=M.children,D=M.accessibilityLayer,B=In(k,Un);if(!B)return null;var I=O.state,z=I.isTooltipActive,F=I.activeCoordinate,X=I.activePayload,Y=I.activeLabel,$=I.offset,K=(E=B.props.active)!==null&&E!==void 0?E:z;return P.cloneElement(B,{viewBox:ne(ne({},$),{},{x:$.left,y:$.top}),active:K,label:Y,payload:K?X:[],coordinate:F,accessibilityLayer:D})}),Oe(O,"renderBrush",function(E){var M=O.props,k=M.margin,D=M.data,B=O.state,I=B.offset,z=B.dataStartIndex,F=B.dataEndIndex,X=B.updateId;return P.cloneElement(E,{key:E.key||"_recharts-brush",onChange:Id(O.handleBrushChange,E.props.onChange),data:D,x:ue(E.props.x)?E.props.x:I.left,y:ue(E.props.y)?E.props.y:I.top+I.height+I.brushBottom-(k.bottom||0),width:ue(E.props.width)?E.props.width:I.width,startIndex:z,endIndex:F,updateId:"brush-".concat(X)})}),Oe(O,"renderReferenceElement",function(E,M,k){if(!E)return null;var D=O,B=D.clipPathId,I=O.state,z=I.xAxisMap,F=I.yAxisMap,X=I.offset,Y=E.type.defaultProps||{},$=E.props,K=$.xAxisId,Q=K===void 0?Y.xAxisId:K,ie=$.yAxisId,se=ie===void 0?Y.yAxisId:ie;return P.cloneElement(E,{key:E.key||"".concat(M,"-").concat(k),xAxis:z[Q],yAxis:F[se],viewBox:{x:X.left,y:X.top,width:X.width,height:X.height},clipPathId:B})}),Oe(O,"renderActivePoints",function(E){var M=E.item,k=E.activePoint,D=E.basePoint,B=E.childIndex,I=E.isRange,z=[],F=M.props.key,X=M.item.type.defaultProps!==void 0?ne(ne({},M.item.type.defaultProps),M.item.props):M.item.props,Y=X.activeDot,$=X.dataKey,K=ne(ne({index:B,dataKey:$,cx:k.x,cy:k.y,r:4,fill:Uj(M.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},Se(Y,!1)),Sh(Y));return z.push(A.renderActiveDot(Y,K,"".concat(F,"-activePoint-").concat(B))),D?z.push(A.renderActiveDot(Y,ne(ne({},K),{},{cx:D.x,cy:D.y}),"".concat(F,"-basePoint-").concat(B))):I&&z.push(null),z}),Oe(O,"renderGraphicChild",function(E,M,k){var D=O.filterFormatItem(E,M,k);if(!D)return null;var B=O.getTooltipEventType(),I=O.state,z=I.isTooltipActive,F=I.tooltipAxis,X=I.activeTooltipIndex,Y=I.activeLabel,$=O.props.children,K=In($,Un),Q=D.props,ie=Q.points,se=Q.isRange,L=Q.baseLine,H=D.item.type.defaultProps!==void 0?ne(ne({},D.item.type.defaultProps),D.item.props):D.item.props,re=H.activeDot,fe=H.hide,ve=H.activeBar,je=H.activeShape,ze=!!(!fe&&z&&K&&(re||ve||je)),Xe={};B!=="axis"&&K&&K.props.trigger==="click"?Xe={onClick:Id(O.handleItemMouseEnter,E.props.onClick)}:B!=="axis"&&(Xe={onMouseLeave:Id(O.handleItemMouseLeave,E.props.onMouseLeave),onMouseEnter:Id(O.handleItemMouseEnter,E.props.onMouseEnter)});var ce=P.cloneElement(E,ne(ne({},D.props),Xe));function Te(ti){return typeof F.dataKey=="function"?F.dataKey(ti.payload):null}if(ze)if(X>=0){var Ne,le;if(F.dataKey&&!F.allowDuplicatedCategory){var mt=typeof F.dataKey=="function"?Te:"payload.".concat(F.dataKey.toString());Ne=bh(ie,mt,Y),le=se&&L&&bh(L,mt,Y)}else Ne=ie==null?void 0:ie[X],le=se&&L&&L[X];if(je||ve){var De=E.props.activeIndex!==void 0?E.props.activeIndex:X;return[P.cloneElement(E,ne(ne(ne({},D.props),Xe),{},{activeIndex:De})),null,null]}if(!Ee(Ne))return[ce].concat(hl(O.renderActivePoints({item:D,activePoint:Ne,basePoint:le,childIndex:X,isRange:se})))}else{var At,Ot=(At=O.getItemByXY(O.state.activeCoordinate))!==null&&At!==void 0?At:{graphicalItem:ce},un=Ot.graphicalItem,mr=un.item,Dr=mr===void 0?E:mr,Bi=un.childIndex,yr=ne(ne(ne({},D.props),Xe),{},{activeIndex:Bi});return[P.cloneElement(Dr,yr),null,null]}return se?[ce,null,null]:[ce,null]}),Oe(O,"renderCustomized",function(E,M,k){return P.cloneElement(E,ne(ne({key:"recharts-customized-".concat(k)},O.props),O.state))}),Oe(O,"renderMap",{CartesianGrid:{handler:Fd,once:!0},ReferenceArea:{handler:O.renderReferenceElement},ReferenceLine:{handler:Fd},ReferenceDot:{handler:O.renderReferenceElement},XAxis:{handler:Fd},YAxis:{handler:Fd},Brush:{handler:O.renderBrush,once:!0},Bar:{handler:O.renderGraphicChild},Line:{handler:O.renderGraphicChild},Area:{handler:O.renderGraphicChild},Radar:{handler:O.renderGraphicChild},RadialBar:{handler:O.renderGraphicChild},Scatter:{handler:O.renderGraphicChild},Pie:{handler:O.renderGraphicChild},Funnel:{handler:O.renderGraphicChild},Tooltip:{handler:O.renderCursor,once:!0},PolarGrid:{handler:O.renderPolarGrid,once:!0},PolarAngleAxis:{handler:O.renderPolarAxis},PolarRadiusAxis:{handler:O.renderPolarAxis},Customized:{handler:O.renderCustomized}}),O.clipPathId="".concat((T=_.id)!==null&&T!==void 0?T:Po("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=cz(O.triggeredAfterMouseMove,(C=_.throttleDelay)!==null&&C!==void 0?C:1e3/60),O.state={},O}return kle(A,b),Mle(A,[{key:"componentDidMount",value:function(){var T,C;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var T=this.props,C=T.children,O=T.data,E=T.height,M=T.layout,k=In(C,Un);if(k){var D=k.props.defaultIndex;if(!(typeof D!="number"||D<0||D>this.state.tooltipTicks.length-1)){var B=this.state.tooltipTicks[D]&&this.state.tooltipTicks[D].value,I=nw(this.state,O,D,B),z=this.state.tooltipTicks[D].coordinate,F=(this.state.offset.top+E)/2,X=M==="horizontal",Y=X?{x:z,y:F}:{y:z,x:F},$=this.state.formattedGraphicalItems.find(function(Q){var ie=Q.item;return ie.type.name==="Scatter"});$&&(Y=ne(ne({},Y),$.props.points[D].tooltipPosition),I=$.props.points[D].tooltipPayload);var K={activeTooltipIndex:D,isTooltipActive:!0,activeLabel:B,activePayload:I,activeCoordinate:Y};this.setState(K),this.renderCursor(k),this.accessibilityManager.setIndex(D)}}}},{key:"getSnapshotBeforeUpdate",value:function(T,C){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==C.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==T.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==T.margin){var O,E;this.accessibilityManager.setDetails({offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0}})}return null}},{key:"componentDidUpdate",value:function(T){z1([In(T.children,Un)],[In(this.props.children,Un)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var T=In(this.props.children,Un);if(T&&typeof T.props.shared=="boolean"){var C=T.props.shared?"axis":"item";return c.indexOf(C)>=0?C:s}return s}},{key:"getMouseInfo",value:function(T){if(!this.container)return null;var C=this.container,O=C.getBoundingClientRect(),E=KX(O),M={chartX:Math.round(T.pageX-E.left),chartY:Math.round(T.pageY-E.top)},k=O.width/C.offsetWidth||1,D=this.inRange(M.chartX,M.chartY,k);if(!D)return null;var B=this.state,I=B.xAxisMap,z=B.yAxisMap,F=this.getTooltipEventType(),X=$k(this.state,this.props.data,this.props.layout,D);if(F!=="axis"&&I&&z){var Y=ya(I).scale,$=ya(z).scale,K=Y&&Y.invert?Y.invert(M.chartX):null,Q=$&&$.invert?$.invert(M.chartY):null;return ne(ne({},M),{},{xValue:K,yValue:Q},X)}return X?ne(ne({},M),X):null}},{key:"inRange",value:function(T,C){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,E=this.props.layout,M=T/O,k=C/O;if(E==="horizontal"||E==="vertical"){var D=this.state.offset,B=M>=D.left&&M<=D.left+D.width&&k>=D.top&&k<=D.top+D.height;return B?{x:M,y:k}:null}var I=this.state,z=I.angleAxisMap,F=I.radiusAxisMap;if(z&&F){var X=ya(z);return IR({x:M,y:k},X)}return null}},{key:"parseEventsOfWrapper",value:function(){var T=this.props.children,C=this.getTooltipEventType(),O=In(T,Un),E={};O&&C==="axis"&&(O.props.trigger==="click"?E={onClick:this.handleClick}:E={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 M=Sh(this.props,this.handleOuterEvent);return ne(ne({},M),E)}},{key:"addListener",value:function(){Q0.on(J0,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Q0.removeListener(J0,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(T,C,O){for(var E=this.state.formattedGraphicalItems,M=0,k=E.length;M<k;M++){var D=E[M];if(D.item===T||D.props.key===T.key||C===Ti(D.item.type)&&O===D.childIndex)return D}return null}},{key:"renderClipPath",value:function(){var T=this.clipPathId,C=this.state.offset,O=C.left,E=C.top,M=C.height,k=C.width;return q.createElement("defs",null,q.createElement("clipPath",{id:T},q.createElement("rect",{x:O,y:E,height:M,width:k})))}},{key:"getXScales",value:function(){var T=this.state.xAxisMap;return T?Object.entries(T).reduce(function(C,O){var E=kk(O,2),M=E[0],k=E[1];return ne(ne({},C),{},Oe({},M,k.scale))},{}):null}},{key:"getYScales",value:function(){var T=this.state.yAxisMap;return T?Object.entries(T).reduce(function(C,O){var E=kk(O,2),M=E[0],k=E[1];return ne(ne({},C),{},Oe({},M,k.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(T){var C;return(C=this.state.xAxisMap)===null||C===void 0||(C=C[T])===null||C===void 0?void 0:C.scale}},{key:"getYScaleByAxisId",value:function(T){var C;return(C=this.state.yAxisMap)===null||C===void 0||(C=C[T])===null||C===void 0?void 0:C.scale}},{key:"getItemByXY",value:function(T){var C=this.state,O=C.formattedGraphicalItems,E=C.activeItem;if(O&&O.length)for(var M=0,k=O.length;M<k;M++){var D=O[M],B=D.props,I=D.item,z=I.type.defaultProps!==void 0?ne(ne({},I.type.defaultProps),I.props):I.props,F=Ti(I.type);if(F==="Bar"){var X=(B.data||[]).find(function(Q){return pre(T,Q)});if(X)return{graphicalItem:D,payload:X}}else if(F==="RadialBar"){var Y=(B.data||[]).find(function(Q){return IR(T,Q)});if(Y)return{graphicalItem:D,payload:Y}}else if(om(D,E)||sm(D,E)||Lc(D,E)){var $=zie({graphicalItem:D,activeTooltipItem:E,itemData:z.data}),K=z.activeIndex===void 0?$:z.activeIndex;return{graphicalItem:ne(ne({},D),{},{childIndex:K}),payload:Lc(D,E)?z.data[$]:D.props.data[$]}}}return null}},{key:"render",value:function(){var T=this;if(!JN(this))return null;var C=this.props,O=C.children,E=C.className,M=C.width,k=C.height,D=C.style,B=C.compact,I=C.title,z=C.desc,F=Lk(C,Ale),X=Se(F,!1);if(B)return q.createElement(pk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},q.createElement(B1,Rs({},X,{width:M,height:k,title:I,desc:z}),this.renderClipPath(),tC(O,this.renderMap)));if(this.props.accessibilityLayer){var Y,$;X.tabIndex=(Y=this.props.tabIndex)!==null&&Y!==void 0?Y:0,X.role=($=this.props.role)!==null&&$!==void 0?$:"application",X.onKeyDown=function(Q){T.accessibilityManager.keyboardEvent(Q)},X.onFocus=function(){T.accessibilityManager.focus()}}var K=this.parseEventsOfWrapper();return q.createElement(pk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},q.createElement("div",Rs({className:Me("recharts-wrapper",E),style:ne({position:"relative",cursor:"default",width:M,height:k},D)},K,{ref:function(ie){T.container=ie}}),q.createElement(B1,Rs({},X,{width:M,height:k,title:I,desc:z,style:Ile}),this.renderClipPath(),tC(O,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(P.Component);Oe(j,"displayName",n),Oe(j,"defaultProps",ne({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},y)),Oe(j,"getDerivedStateFromProps",function(b,A){var _=b.dataKey,T=b.data,C=b.children,O=b.width,E=b.height,M=b.layout,k=b.stackOffset,D=b.margin,B=A.dataStartIndex,I=A.dataEndIndex;if(A.updateId===void 0){var z=Bk(b);return ne(ne(ne({},z),{},{updateId:0},S(ne(ne({props:b},z),{},{updateId:0}),A)),{},{prevDataKey:_,prevData:T,prevWidth:O,prevHeight:E,prevLayout:M,prevStackOffset:k,prevMargin:D,prevChildren:C})}if(_!==A.prevDataKey||T!==A.prevData||O!==A.prevWidth||E!==A.prevHeight||M!==A.prevLayout||k!==A.prevStackOffset||!ks(D,A.prevMargin)){var F=Bk(b),X={chartX:A.chartX,chartY:A.chartY,isTooltipActive:A.isTooltipActive},Y=ne(ne({},$k(A,T,M)),{},{updateId:A.updateId+1}),$=ne(ne(ne({},F),X),Y);return ne(ne(ne({},$),S(ne({props:b},$),A)),{},{prevDataKey:_,prevData:T,prevWidth:O,prevHeight:E,prevLayout:M,prevStackOffset:k,prevMargin:D,prevChildren:C})}if(!z1(C,A.prevChildren)){var K,Q,ie,se,L=In(C,nl),H=L&&(K=(Q=L.props)===null||Q===void 0?void 0:Q.startIndex)!==null&&K!==void 0?K:B,re=L&&(ie=(se=L.props)===null||se===void 0?void 0:se.endIndex)!==null&&ie!==void 0?ie:I,fe=H!==B||re!==I,ve=!Ee(T),je=ve&&!fe?A.updateId:A.updateId+1;return ne(ne({updateId:je},S(ne(ne({props:b},A),{},{updateId:je,dataStartIndex:H,dataEndIndex:re}),A)),{},{prevChildren:C,dataStartIndex:H,dataEndIndex:re})}return null}),Oe(j,"renderActiveDot",function(b,A,_){var T;return P.isValidElement(b)?T=P.cloneElement(b,A):_e(b)?T=b(A):T=q.createElement(of,A),q.createElement(qe,{className:"recharts-active-dot",key:_},T)});var w=P.forwardRef(function(A,_){return q.createElement(j,Rs({},A,{ref:_}))});return w.displayName=j.displayName,w},Zle=pm({chartName:"LineChart",GraphicalChild:sf,axisComponents:[{axisType:"xAxis",AxisComp:_a},{axisType:"yAxis",AxisComp:Ta}],formatAxisMap:Hj}),Qle=pm({chartName:"BarChart",GraphicalChild:Oa,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:_a},{axisType:"yAxis",AxisComp:Ta}],formatAxisMap:Hj}),Jle=pm({chartName:"PieChart",GraphicalChild:$i,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:am},{axisType:"radiusAxis",AxisComp:rm}],formatAxisMap:Oee,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),eue=pm({chartName:"AreaChart",GraphicalChild:Di,axisComponents:[{axisType:"xAxis",AxisComp:_a},{axisType:"yAxis",AxisComp:Ta}],formatAxisMap:Hj});function de({children:e,className:t,hover:n=!1,padding:r="lg"}){const a={sm:"p-4",md:"p-5",lg:"p-6 md:p-8"};return p.jsx(sr.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.18,ease:"easeOut"},className:Bt("bg-surface rounded-[20px] card-shadow",a[r],n&&"transition-shadow duration-200 hover:shadow-hover cursor-pointer",t),children:e})}function tt({title:e,subtitle:t,action:n,className:r}){return p.jsxs("div",{className:Bt("flex items-start justify-between mb-6",r),children:[p.jsxs("div",{children:[p.jsx("h3",{className:"text-base font-semibold text-text-primary",children:e}),t&&p.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:t})]}),n&&p.jsx("div",{children:n})]})}const tue=[{month:"Jan",revenue:42e3,target:45e3},{month:"Feb",revenue:48e3,target:46e3},{month:"Mar",revenue:51e3,target:48e3},{month:"Apr",revenue:47e3,target:5e4},{month:"May",revenue:56e3,target:52e3},{month:"Jun",revenue:62e3,target:55e3},{month:"Jul",revenue:58e3,target:57e3},{month:"Aug",revenue:67e3,target:6e4},{month:"Sep",revenue:71e3,target:63e3},{month:"Oct",revenue:69e3,target:66e3},{month:"Nov",revenue:78e3,target:7e4},{month:"Dec",revenue:85e3,target:75e3}],nue=[{key:"revenue",label:"Revenue"},{key:"mrr",label:"MRR"},{key:"arr",label:"ARR"}];function rue(e){return`${(e/1e3).toFixed(0)}k`}function iue(){const[e,t]=P.useState("revenue");return p.jsxs(de,{children:[p.jsx(tt,{title:"Revenue Overview",subtitle:"Monthly revenue vs target",action:p.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:nue.map(n=>p.jsx("button",{onClick:()=>t(n.key),className:Bt("px-3 py-1.5 text-xs font-medium rounded-lg transition-colors",e===n.key?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"),children:n.label},n.key))})}),p.jsx("div",{className:"h-[280px]",children:p.jsx(Mh,{width:"100%",height:"100%",children:p.jsxs(eue,{data:tue,margin:{top:5,right:5,left:-10,bottom:0},children:[p.jsx("defs",{children:p.jsxs("linearGradient",{id:"colorRevenue",x1:"0",y1:"0",x2:"0",y2:"1",children:[p.jsx("stop",{offset:"5%",stopColor:"#2563EB",stopOpacity:.08}),p.jsx("stop",{offset:"95%",stopColor:"#2563EB",stopOpacity:0})]})}),p.jsx(vp,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.04)",vertical:!1}),p.jsx(_a,{dataKey:"month",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},dy:8}),p.jsx(Ta,{axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},tickFormatter:rue,dx:-5}),p.jsx(Un,{content:({active:n,payload:r,label:a})=>!n||!(r!=null&&r.length)?null:p.jsxs("div",{className:"bg-surface rounded-xl dropdown-shadow border border-border/60 px-4 py-3",children:[p.jsx("p",{className:"text-xs font-medium text-text-secondary mb-2",children:a}),r.map((s,l)=>p.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[p.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:s.color||"#2563EB"}}),p.jsxs("span",{className:"text-text-secondary",children:[s.name,":"]}),p.jsxs("span",{className:"font-semibold text-text-primary",children:["€",Number(s.value).toLocaleString()]})]},l))]})}),p.jsx(Di,{type:"monotone",dataKey:"revenue",stroke:"#2563EB",strokeWidth:2,fill:"url(#colorRevenue)",dot:!1,activeDot:{r:4,strokeWidth:0,fill:"#2563EB"}}),p.jsx(Di,{type:"monotone",dataKey:"target",stroke:"#9CA3AF",strokeWidth:1.5,strokeDasharray:"4 4",fill:"none",dot:!1})]})})})]})}function Ye({children:e,variant:t="default",size:n="sm",className:r}){const a={default:"bg-bg text-text-secondary",success:"bg-success-light text-success",warning:"bg-warning-light text-warning",danger:"bg-danger-light text-danger",primary:"bg-primary-light text-primary"},s={sm:"px-2 py-0.5 text-[11px]",md:"px-2.5 py-1 text-xs"};return p.jsx("span",{className:Bt("inline-flex items-center rounded-full font-medium",a[t],s[n],r),children:e})}const aue=[{id:"1",type:"deal",title:"Enterprise deal closed",description:"Acme Corp signed €85,000 contract",time:new Date(Date.now()-1e3*60*15).toISOString(),user:"Sarah Chen"},{id:"2",type:"customer",title:"New customer onboarded",description:"TechStart AB joined as a premium client",time:new Date(Date.now()-1e3*60*45).toISOString(),user:"Marcus Lind"},{id:"3",type:"invoice",title:"Invoice #INV-2024-0089 paid",description:"€12,400 received from Nordic Solutions",time:new Date(Date.now()-1e3*60*60*2).toISOString()},{id:"4",type:"contract",title:"Contract renewed",description:"Global Industries extended for 2 years",time:new Date(Date.now()-1e3*60*60*4).toISOString(),user:"Elena Rossi"},{id:"5",type:"employee",title:"New team member",description:"Johan Berg joined the Engineering team",time:new Date(Date.now()-1e3*60*60*6).toISOString()},{id:"6",type:"deal",title:"Deal moved to negotiation",description:"MegaCorp €120K proposal under review",time:new Date(Date.now()-1e3*60*60*8).toISOString(),user:"Sarah Chen"}],oue={deal:{icon:Na,color:"primary",label:"Deal"},customer:{icon:Aa,color:"success",label:"Customer"},invoice:{icon:co,color:"warning",label:"Invoice"},contract:{icon:iH,color:"primary",label:"Contract"},employee:{icon:M1,color:"success",label:"HR"}};function sue(){return p.jsxs(de,{children:[p.jsx(tt,{title:"Recent Activity",subtitle:"Latest updates across your organization"}),p.jsx("div",{className:"space-y-0",children:aue.map((e,t)=>{const n=oue[e.type],r=n.icon;return p.jsxs(sr.div,{initial:{opacity:0,x:-8},animate:{opacity:1,x:0},transition:{duration:.15,delay:t*.03},className:"flex items-start gap-3 py-3.5 border-b border-border/40 last:border-0",children:[p.jsx("div",{className:`w-9 h-9 rounded-xl bg-${n.color}-light flex items-center justify-center shrink-0`,children:p.jsx(r,{size:16,className:`text-${n.color}`})}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("p",{className:"text-sm font-medium text-text-primary truncate",children:e.title}),p.jsx(Ye,{variant:n.color,size:"sm",children:n.label})]}),p.jsx("p",{className:"text-xs text-text-secondary mt-0.5",children:e.description}),p.jsxs("div",{className:"flex items-center gap-2 mt-1.5",children:[p.jsx("span",{className:"text-[11px] text-text-secondary/60",children:Xw(e.time)}),e.user&&p.jsxs(p.Fragment,{children:[p.jsx("span",{className:"text-[11px] text-text-secondary/40",children:"·"}),p.jsx("span",{className:"text-[11px] text-text-secondary/60",children:e.user})]})]})]})]},e.id)})})]})}function Qe({className:e}){return p.jsx("div",{className:Bt("animate-pulse rounded-[14px] bg-text-secondary/8",e)})}function Wr({children:e,className:t}){return p.jsx("div",{className:"w-full overflow-x-auto",children:p.jsx("table",{className:Bt("w-full",t),children:e})})}function Zr({children:e,className:t}){return p.jsx("thead",{className:Bt("border-b border-border",t),children:e})}function Qr({children:e,className:t}){return p.jsx("tbody",{className:t,children:e})}function lt({children:e,className:t}){return p.jsx("tr",{className:Bt("border-b border-border/50 transition-colors hover:bg-bg/50",t),children:e})}function ge({children:e,className:t,align:n="left",colSpan:r}){const a={left:"text-left",center:"text-center",right:"text-right"};return p.jsx("th",{colSpan:r,className:Bt("py-3 px-4 text-xs font-medium text-text-secondary uppercase tracking-wider",a[n],t),children:e})}function he({children:e,className:t,align:n="left",colSpan:r}){const a={left:"text-left",center:"text-center",right:"text-right"};return p.jsx("td",{colSpan:r,className:Bt("py-3.5 px-4 text-sm text-text-primary",a[n],t),children:e})}function zu({src:e,title:t}){return p.jsxs(de,{className:"overflow-hidden",children:[p.jsx(tt,{title:t}),p.jsx("iframe",{src:e,width:"100%",height:"300",frameBorder:"0",title:t,className:"bg-surface"})]})}function lue(){const[e,t]=P.useState(!0),[n,r]=P.useState(""),[a,s]=P.useState(0),[l,c]=P.useState(0),[f,d]=P.useState(0),[m,y]=P.useState([]),[g,S]=P.useState(0);P.useEffect(()=>{async function w(){t(!0),r("");try{const[b,A,_,T]=await Promise.all([io.balance(),Es.mrr(),oh.customers(),Es.deals()]);s(b.total_assets||0),c(A.mrr||0),d(_.total||0);const E=T;y(E.deals||[]),S(E.total||0)}catch(b){r(b instanceof Error?b.message:"Failed to load dashboard data")}finally{t(!1)}}w()},[]);const j=[{label:"Total Assets",value:Re(a),change:0,changeLabel:"vs last month",icon:p.jsx(Fw,{size:18})},{label:"Active Customers",value:String(f),change:0,changeLabel:"vs last month",icon:p.jsx(Aa,{size:18})},{label:"MRR",value:Re(l),change:0,changeLabel:"vs last month",icon:p.jsx(Na,{size:18})},{label:"Open Deals",value:String(g),change:0,changeLabel:"vs last month",icon:p.jsx(gH,{size:18})}];return e?p.jsxs("div",{className:"space-y-10",children:[p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-5",children:Array.from({length:4}).map((w,b)=>p.jsx(Qe,{className:"h-[140px]"},b))}),p.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-6",children:[p.jsx(Qe,{className:"h-[320px] xl:col-span-2"}),p.jsx(Qe,{className:"h-[320px]"})]}),p.jsx(Qe,{className:"h-[300px]"})]}):n?p.jsx("div",{className:"flex items-center justify-center h-64",children:p.jsx("p",{className:"text-danger",children:n})}):p.jsxs("div",{className:"space-y-10",children:[p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-5",children:j.map((w,b)=>p.jsx(oG,{...w,index:b},w.label))}),p.jsxs(de,{children:[p.jsx(tt,{title:"Infrastructure Health",subtitle:"Real-time system metrics from Grafana"}),p.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-6 p-6",children:[p.jsx(zu,{src:"http://localhost:3050/d-solo/amlzdh/aamos-system-health?orgId=1&panelId=1&refresh=5s",title:"CPU Usage"}),p.jsx(zu,{src:"http://localhost:3050/d-solo/amlzdh/aamos-system-health?orgId=1&panelId=2&refresh=5s",title:"Memory Usage"}),p.jsx(zu,{src:"http://localhost:3050/d-solo/amlzdh/aamos-system-health?orgId=1&panelId=3&refresh=5s",title:"Disk Usage"})]})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Service Status",subtitle:"All AAMOS services health check"}),p.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-6 p-6",children:[p.jsx(zu,{src:"http://localhost:3050/d-solo/aamos/service-status?orgId=1&panelId=4",title:"PM2 Processes"}),p.jsx(zu,{src:"http://localhost:3050/d-solo/aamos/service-status?orgId=1&panelId=5",title:"Docker Containers"})]})]}),p.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-6",children:[p.jsx("div",{className:"xl:col-span-2",children:p.jsx(iue,{})}),p.jsx("div",{children:p.jsx(sue,{})})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Recent Deals",subtitle:"Latest deals across your pipeline",action:p.jsxs("button",{className:"text-sm text-primary font-medium flex items-center gap-1 hover:underline",children:["View all ",p.jsx(N1,{size:14})]})}),p.jsxs(Wr,{children:[p.jsx(Zr,{children:p.jsxs(lt,{children:[p.jsx(ge,{children:"Deal"}),p.jsx(ge,{children:"Company"}),p.jsx(ge,{align:"right",children:"Value"}),p.jsx(ge,{children:"Stage"}),p.jsx(ge,{align:"right",children:"Probability"}),p.jsx(ge,{children:"Close Date"})]})}),p.jsxs(Qr,{children:[m.length===0&&p.jsx(lt,{children:p.jsx(he,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No deals found"})}),m.map(w=>p.jsxs(lt,{children:[p.jsx(he,{children:p.jsx("span",{className:"font-medium",children:w.name})}),p.jsx(he,{children:w.company}),p.jsx(he,{align:"right",children:Re(w.value)}),p.jsx(he,{children:p.jsx(Ye,{variant:w.stage==="Closed Won"?"success":w.stage==="Negotiation"?"primary":"default",children:w.stage})}),p.jsxs(he,{align:"right",children:[w.probability,"%"]}),p.jsx(he,{children:dr(w.expectedClose)})]},w.id))]})]})]})]})}const uue={getRealBriefing:()=>bt.get("/briefing/real")};function Kd({title:e,value:t,subtitle:n,icon:r,trend:a,trendValue:s,variant:l="default"}){const c={default:"bg-surface border-border",success:"bg-success/5 border-success/20",warning:"bg-warning/5 border-warning/20",danger:"bg-danger/5 border-danger/20"};return p.jsxs("div",{className:`p-4 rounded-xl border ${c[l]}`,children:[p.jsxs("div",{className:"flex items-start justify-between",children:[p.jsxs("div",{className:"space-y-1",children:[p.jsx("p",{className:"text-sm text-text-secondary",children:e}),p.jsx("p",{className:"text-2xl font-semibold",children:t}),n&&p.jsx("p",{className:"text-xs text-text-tertiary",children:n})]}),r&&p.jsx("div",{className:"text-text-secondary",children:r})]}),a&&p.jsxs("div",{className:"flex items-center gap-1 mt-2",children:[a==="up"&&p.jsx(Na,{size:14,className:"text-success"}),a==="down"&&p.jsx(Kw,{size:14,className:"text-danger"}),a==="neutral"&&p.jsx(Gw,{size:14,className:"text-text-secondary"}),p.jsx("span",{className:`text-xs ${a==="up"?"text-success":a==="down"?"text-danger":"text-text-secondary"}`,children:s})]})]})}function cue({alert:e}){const t={info:{icon:p.jsx(Gw,{size:16}),color:"text-primary bg-primary/5 border-primary/20"},warning:{icon:p.jsx(ba,{size:16}),color:"text-warning bg-warning/5 border-warning/20"},critical:{icon:p.jsx(ba,{size:16}),color:"text-danger bg-danger/5 border-danger/20"}},n=t[e.level]||t.info;return p.jsx("div",{className:`p-3 rounded-lg border ${n.color}`,children:p.jsxs("div",{className:"flex items-start gap-2",children:[n.icon,p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm font-medium",children:e.title}),p.jsx("p",{className:"text-xs opacity-80 mt-0.5",children:e.description})]}),p.jsx(Ye,{variant:"default",className:"text-xs",children:e.source})]})})}function fue({action:e}){const t={10:"bg-danger text-white",9:"bg-danger/80 text-white",8:"bg-warning text-white",7:"bg-warning/80 text-white",6:"bg-primary text-white",5:"bg-primary/80 text-white"};return p.jsx("div",{className:"p-3 rounded-lg border border-border bg-surface hover:bg-surface-hover transition-colors cursor-pointer group",children:p.jsxs("div",{className:"flex items-start gap-3",children:[p.jsx("div",{className:`w-6 h-6 rounded-full flex items-center justify-center text-xs font-medium shrink-0 ${t[e.priority]||"bg-text-secondary text-white"}`,children:e.priority}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm font-medium group-hover:text-primary transition-colors",children:e.title}),p.jsx("p",{className:"text-xs text-text-secondary mt-0.5",children:e.description}),p.jsxs("div",{className:"flex items-center gap-3 mt-2",children:[p.jsxs("span",{className:"text-xs text-text-tertiary flex items-center gap-1",children:[p.jsx(Is,{size:12}),e.time_estimate]}),p.jsx("span",{className:"text-xs text-text-tertiary",children:e.impact})]})]}),p.jsx(X9,{size:16,className:"text-text-tertiary group-hover:text-primary transition-colors shrink-0"})]})})}function due({task:e}){const t={critical:"danger",high:"warning",medium:"default",low:"success"};return p.jsxs("div",{className:"flex items-center gap-3 p-2 rounded-lg hover:bg-surface-hover transition-colors",children:[p.jsx("div",{className:"w-2 h-2 rounded-full bg-warning shrink-0"}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm truncate",children:e.title}),p.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[p.jsx(Ye,{variant:t[e.priority],className:"text-xs",children:e.priority}),p.jsx("span",{className:"text-xs text-text-tertiary",children:e.category})]})]}),p.jsxs("span",{className:"text-xs text-text-tertiary shrink-0",children:[e.days_open,"d"]})]})}function hue({deal:e}){return p.jsxs("div",{className:"flex items-center gap-3 p-2 rounded-lg hover:bg-surface-hover transition-colors",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:p.jsx(sc,{size:16,className:"text-primary"})}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm font-medium truncate",children:e.name}),p.jsx("p",{className:"text-xs text-text-secondary",children:e.customer})]}),p.jsxs("div",{className:"text-right shrink-0",children:[p.jsx("p",{className:"text-sm font-medium",children:Re(e.value)}),p.jsxs("p",{className:"text-xs text-text-tertiary",children:[e.probability,"%"]})]})]})}function pue(){var S;const[e,t]=P.useState(null),[n,r]=P.useState(!0),[a,s]=P.useState("");if(P.useEffect(()=>{async function j(){try{r(!0);const b=await uue.getRealBriefing();t(b)}catch(b){s(b instanceof Error?b.message:"Failed to load briefing")}finally{r(!1)}}j();const w=setInterval(j,3e5);return()=>clearInterval(w)},[]),n)return p.jsxs("div",{className:"space-y-6",children:[p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:Array.from({length:4}).map((j,w)=>p.jsx(Qe,{className:"h-[120px]"},w))}),p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[p.jsx(Qe,{className:"h-[400px] lg:col-span-2"}),p.jsx(Qe,{className:"h-[400px]"})]})]});if(a)return p.jsx("div",{className:"flex items-center justify-center h-64",children:p.jsxs("div",{className:"text-center",children:[p.jsx(ba,{size:48,className:"text-danger mx-auto mb-4"}),p.jsx("p",{className:"text-danger font-medium",children:a}),p.jsx("button",{onClick:()=>window.location.reload(),className:"mt-4 px-4 py-2 bg-primary text-white rounded-lg hover:bg-primary-hover transition-colors",children:"Försök igen"})]})});if(!e)return null;const{company_health:l,my_tasks:c,my_deals:f,team_overview:d,financial_status:m,alerts:y,actions:g}=e;return p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-2xl font-bold",children:"Dagsöversikt"}),p.jsxs("p",{className:"text-text-secondary",children:[e.user.name," • ",new Date(e.generated_at).toLocaleDateString("sv-SE",{weekday:"long",year:"numeric",month:"long",day:"numeric"})]})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:`w-2 h-2 rounded-full ${l.status==="healthy"?"bg-success":l.status==="warning"?"bg-warning":"bg-danger"}`}),p.jsx("span",{className:"text-sm text-text-secondary capitalize",children:l.status})]})]}),p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[p.jsx(Kd,{title:"Cash Position",value:Re(l.cash_position),subtitle:"Eget kapital",icon:p.jsx(Fw,{size:20}),trend:l.profit_margin>0?"up":"down",trendValue:`${IE(l.profit_margin)}% marginal`,variant:l.cash_position>1e6?"success":l.cash_position>5e5?"warning":"danger"}),p.jsx(Kd,{title:"Pipeline",value:Re(l.total_pipeline),subtitle:`${l.active_deals} aktiva deals`,icon:p.jsx(sc,{size:20}),trend:"up",trendValue:"+12% vs förra månaden"}),p.jsx(Kd,{title:"Team",value:`${d.active_now}/${d.total_members}`,subtitle:`${d.on_leave} på leave`,icon:p.jsx(Aa,{size:20}),trend:d.on_leave>0?"neutral":"up",trendValue:d.on_leave>0?`${d.on_leave} borta idag`:"Alla närvarande"}),p.jsx(Kd,{title:"Mina Tasks",value:c.length,subtitle:`${c.filter(j=>j.priority==="critical").length} kritiska`,icon:p.jsx(t4,{size:20}),variant:c.filter(j=>j.priority==="critical").length>0?"danger":c.filter(j=>j.priority==="high").length>0?"warning":"success"})]}),y.length>0&&p.jsxs("div",{className:"space-y-2",children:[p.jsxs("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[p.jsx(ba,{size:20,className:"text-warning"}),"Varningar"]}),p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:y.map((j,w)=>p.jsx(cue,{alert:j},w))})]}),p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[p.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[g.length>0&&p.jsxs(de,{children:[p.jsx(tt,{title:"Rekommenderade Åtgärder",subtitle:"Prioriterade baserat på din roll och aktuell data"}),p.jsx("div",{className:"p-4 space-y-3",children:g.map((j,w)=>p.jsx(fue,{action:j},w))})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Mina Uppgifter",subtitle:`${c.length} öppna uppgifter`}),p.jsx("div",{className:"p-4 space-y-1",children:c.length===0?p.jsxs("div",{className:"text-center py-8 text-text-secondary",children:[p.jsx(Wc,{size:48,className:"mx-auto mb-2 text-success"}),p.jsx("p",{children:"Alla uppgifter är klara!"})]}):c.map(j=>p.jsx(due,{task:j},j.id))})]}),f.length>0&&p.jsxs(de,{children:[p.jsx(tt,{title:"Mina Deals",subtitle:`${f.length} aktiva förhandlingar`}),p.jsx("div",{className:"p-4 space-y-1",children:f.map(j=>p.jsx(hue,{deal:j},j.id))})]})]}),p.jsxs("div",{className:"space-y-6",children:[p.jsxs(de,{children:[p.jsx(tt,{title:"Teamöversikt",subtitle:`${d.total_members} medlemmar`}),p.jsxs("div",{className:"p-4",children:[p.jsxs("div",{className:"grid grid-cols-3 gap-2 mb-4",children:[p.jsxs("div",{className:"text-center p-2 bg-success/5 rounded-lg",children:[p.jsx("p",{className:"text-2xl font-semibold text-success",children:d.active_now}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Aktiva"})]}),p.jsxs("div",{className:"text-center p-2 bg-warning/5 rounded-lg",children:[p.jsx("p",{className:"text-2xl font-semibold text-warning",children:d.on_leave}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Borta"})]}),p.jsxs("div",{className:"text-center p-2 bg-primary/5 rounded-lg",children:[p.jsx("p",{className:"text-2xl font-semibold text-primary",children:d.open_tickets}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Tickets"})]})]}),p.jsx("div",{className:"space-y-2",children:d.members.slice(0,5).map((j,w)=>p.jsxs("div",{className:"flex items-center gap-2 p-2 rounded-lg hover:bg-surface-hover transition-colors",children:[p.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center text-xs font-medium text-primary",children:j.name.split(" ").map(b=>b[0]).join("")}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm font-medium truncate",children:j.name}),p.jsx("p",{className:"text-xs text-text-secondary",children:j.role})]}),j.open_tasks>0&&p.jsx(Ye,{variant:"warning",className:"text-xs",children:j.open_tasks})]},w))})]})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Finansiell Status",subtitle:"Från ledger i realtid"}),p.jsxs("div",{className:"p-4 space-y-3",children:[p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx("span",{className:"text-sm text-text-secondary",children:"Tillgångar"}),p.jsx("span",{className:"text-sm font-medium",children:Re(m.total_assets)})]}),p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx("span",{className:"text-sm text-text-secondary",children:"Skulder"}),p.jsx("span",{className:"text-sm font-medium",children:Re(m.total_liabilities)})]}),p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx("span",{className:"text-sm text-text-secondary",children:"Eget Kapital"}),p.jsx("span",{className:"text-sm font-medium text-success",children:Re(m.equity)})]}),m.runway_months>0&&p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx("span",{className:"text-sm text-text-secondary",children:"Runway"}),p.jsxs("span",{className:"text-sm font-medium",children:[IE(m.runway_months)," mån"]})]}),p.jsxs("div",{className:"pt-2 border-t border-border",children:[p.jsx("p",{className:"text-xs text-text-tertiary mb-2",children:"Top Konton"}),(S=m.top_accounts)==null?void 0:S.slice(0,3).map((j,w)=>p.jsxs("div",{className:"flex justify-between items-center py-1",children:[p.jsx("span",{className:"text-xs text-text-secondary",children:j.name}),p.jsx("span",{className:"text-xs font-medium",children:Re(j.amount)})]},w))]})]})]})]})]})]})}function mue(){return p.jsx(pue,{})}function yue(){const{user:e}=Gc(),[t,n]=P.useState(null),[r,a]=P.useState(!0),[s,l]=P.useState(!1),[c,f]=P.useState("general");P.useEffect(()=>{setTimeout(()=>{n({id:(e==null?void 0:e.id)||"3847477b-3d56-4975-9157-ae8f9ce52aa7",name:(e==null?void 0:e.name)||"Erik Svensson",email:(e==null?void 0:e.email)||"erik@landvex.com",phone:"+46 70 123 45 67",role:(e==null?void 0:e.role)||"admin",department:"Ledning",timezone:"Europe/Stockholm",language:"sv",notifications:{email:!0,push:!0,sms:!1},theme:"light",twoFactorEnabled:!1,lastLogin:new Date().toISOString(),createdAt:"2026-01-15T10:30:00Z"}),a(!1)},500)},[e]);const d=async()=>{l(!0),await new Promise(y=>setTimeout(y,1e3)),l(!1)};if(r)return p.jsxs("div",{className:"space-y-6",children:[p.jsx(Qe,{className:"h-[200px]"}),p.jsx(Qe,{className:"h-[400px]"})]});if(!t)return null;const m=[{id:"general",label:"Allmänt",icon:P1},{id:"security",label:"Säkerhet",icon:ah},{id:"notifications",label:"Notifikationer",icon:C1},{id:"preferences",label:"Inställningar",icon:ih}];return p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-2xl font-bold",children:"Min Profil"}),p.jsx("p",{className:"text-text-secondary",children:"Hantera dina kontoinställningar"})]}),p.jsx(Kt,{onClick:d,disabled:s,icon:s?void 0:p.jsx(yH,{size:16}),children:s?"Sparar...":"Spara ändringar"})]}),p.jsxs(de,{className:"relative overflow-hidden",children:[p.jsx("div",{className:"h-32 bg-gradient-to-r from-primary to-primary-hover"}),p.jsxs("div",{className:"px-6 pb-6",children:[p.jsx("div",{className:"relative -mt-16 mb-4",children:p.jsxs("div",{className:"w-32 h-32 rounded-2xl bg-surface border-4 border-bg flex items-center justify-center text-4xl font-bold text-primary relative",children:[t.avatar?p.jsx("img",{src:t.avatar,alt:t.name,className:"w-full h-full rounded-2xl object-cover"}):t.name.split(" ").map(y=>y[0]).join(""),p.jsx("button",{className:"absolute bottom-0 right-0 w-8 h-8 bg-primary text-white rounded-full flex items-center justify-center hover:bg-primary-hover transition-colors",children:p.jsx(Z9,{size:14})})]})}),p.jsxs("div",{className:"flex items-start justify-between",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-xl font-semibold",children:t.name}),p.jsx("p",{className:"text-text-secondary",children:t.email}),p.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[p.jsx(Ye,{variant:"primary",children:t.role}),p.jsx(Ye,{variant:"default",children:t.department})]})]}),p.jsxs("div",{className:"text-right text-sm text-text-secondary",children:[p.jsxs("p",{children:["Senaste inloggning: ",dr(t.lastLogin)]}),p.jsxs("p",{children:["Medlem sedan: ",dr(t.createdAt)]})]})]})]})]}),p.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1 overflow-x-auto",children:m.map(y=>p.jsxs("button",{onClick:()=>f(y.id),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors whitespace-nowrap flex items-center gap-2 ${c===y.id?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:[p.jsx(y.icon,{size:16}),y.label]},y.id))}),c==="general"&&p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[p.jsxs(de,{children:[p.jsx(tt,{title:"Personlig information",subtitle:"Uppdatera dina kontouppgifter"}),p.jsxs("div",{className:"p-4 space-y-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-1",children:"Fullständigt namn"}),p.jsxs("div",{className:"relative",children:[p.jsx(P1,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"text",value:t.name,onChange:y=>n({...t,name:y.target.value}),className:"w-full h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm"})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-1",children:"E-post"}),p.jsxs("div",{className:"relative",children:[p.jsx(wo,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"email",value:t.email,onChange:y=>n({...t,email:y.target.value}),className:"w-full h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm"})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-1",children:"Telefon"}),p.jsxs("div",{className:"relative",children:[p.jsx(zE,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"tel",value:t.phone||"",onChange:y=>n({...t,phone:y.target.value}),className:"w-full h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm"})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-1",children:"Avdelning"}),p.jsxs("div",{className:"relative",children:[p.jsx(Hw,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"text",value:t.department||"",onChange:y=>n({...t,department:y.target.value}),className:"w-full h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm"})]})]})]})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Kontoinformation",subtitle:"Dina kontodetaljer"}),p.jsxs("div",{className:"p-4 space-y-4",children:[p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium",children:"Användar-ID"}),p.jsx("p",{className:"text-xs text-text-secondary",children:t.id})]}),p.jsx(Ye,{variant:"default",children:"Aktiv"})]}),p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium",children:"Roll"}),p.jsx("p",{className:"text-xs text-text-secondary",children:t.role})]}),p.jsx(ah,{size:16,className:"text-primary"})]}),p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium",children:"Tidszon"}),p.jsx("p",{className:"text-xs text-text-secondary",children:t.timezone})]}),p.jsx(ih,{size:16,className:"text-text-secondary"})]}),p.jsxs("div",{className:"flex items-center justify-between py-3",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium",children:"Språk"}),p.jsx("p",{className:"text-xs text-text-secondary",children:t.language==="sv"?"Svenska":t.language})]}),p.jsx(ih,{size:16,className:"text-text-secondary"})]})]})]})]}),c==="security"&&p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[p.jsxs(de,{children:[p.jsx(tt,{title:"Lösenord",subtitle:"Uppdatera ditt lösenord"}),p.jsxs("div",{className:"p-4 space-y-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-1",children:"Nuvarande lösenord"}),p.jsxs("div",{className:"relative",children:[p.jsx(kE,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"password",placeholder:"••••••••",className:"w-full h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm"})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-1",children:"Nytt lösenord"}),p.jsx("input",{type:"password",placeholder:"Minst 8 tecken",className:"w-full h-10 px-4 rounded-[14px] border bg-surface text-sm"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-1",children:"Bekräfta nytt lösenord"}),p.jsx("input",{type:"password",placeholder:"Upprepa lösenord",className:"w-full h-10 px-4 rounded-[14px] border bg-surface text-sm"})]}),p.jsxs(Kt,{variant:"secondary",className:"w-full",children:[p.jsx(kE,{size:16,className:"mr-2"}),"Ändra lösenord"]})]})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Tvåfaktorsautentisering",subtitle:"Öka säkerheten på ditt konto"}),p.jsxs("div",{className:"p-4",children:[p.jsxs("div",{className:"flex items-center justify-between mb-4",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium",children:"2FA-status"}),p.jsx("p",{className:"text-xs text-text-secondary",children:t.twoFactorEnabled?"Aktiverad":"Ej aktiverad"})]}),p.jsx(Ye,{variant:t.twoFactorEnabled?"success":"default",children:t.twoFactorEnabled?"Aktiv":"Inaktiv"})]}),!t.twoFactorEnabled&&p.jsxs(Kt,{className:"w-full",children:[p.jsx(ah,{size:16,className:"mr-2"}),"Aktivera 2FA"]})]})]})]}),c==="notifications"&&p.jsxs(de,{children:[p.jsx(tt,{title:"Notifikationsinställningar",subtitle:"Hantera hur du får notifieringar"}),p.jsx("div",{className:"p-4 space-y-4",children:[{key:"email",label:"E-postnotifikationer",description:"Få uppdateringar via e-post",icon:wo},{key:"push",label:"Push-notifikationer",description:"Få notifikationer i webbläsaren",icon:C1},{key:"sms",label:"SMS-notifikationer",description:"Få viktiga uppdateringar via SMS",icon:zE}].map(y=>p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border last:border-0",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center text-primary",children:p.jsx(y.icon,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium",children:y.label}),p.jsx("p",{className:"text-xs text-text-secondary",children:y.description})]})]}),p.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[p.jsx("input",{type:"checkbox",checked:t.notifications[y.key],onChange:g=>n({...t,notifications:{...t.notifications,[y.key]:g.target.checked}}),className:"sr-only peer"}),p.jsx("div",{className:"w-11 h-6 bg-border peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-primary"})]})]},y.key))})]}),c==="preferences"&&p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[p.jsxs(de,{children:[p.jsx(tt,{title:"Utseende",subtitle:"Anpassa hur BOC ser ut"}),p.jsx("div",{className:"p-4 space-y-4",children:p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-2",children:"Tema"}),p.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{id:"light",label:"Ljust",icon:xH},{id:"dark",label:"Mörkt",icon:hH},{id:"system",label:"System",icon:dH}].map(y=>p.jsxs("button",{onClick:()=>n({...t,theme:y.id}),className:`p-3 rounded-xl border text-center transition-colors ${t.theme===y.id?"border-primary bg-primary/5 text-primary":"border-border hover:border-primary/30"}`,children:[p.jsx(y.icon,{size:20,className:"mx-auto mb-1"}),p.jsx("span",{className:"text-xs",children:y.label})]},y.id))})]})})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Regionala inställningar",subtitle:"Språk och tidszon"}),p.jsxs("div",{className:"p-4 space-y-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-1",children:"Språk"}),p.jsxs("select",{value:t.language,onChange:y=>n({...t,language:y.target.value}),className:"w-full h-10 px-4 rounded-[14px] border bg-surface text-sm",children:[p.jsx("option",{value:"sv",children:"Svenska"}),p.jsx("option",{value:"en",children:"English"}),p.jsx("option",{value:"no",children:"Norsk"}),p.jsx("option",{value:"da",children:"Dansk"}),p.jsx("option",{value:"fi",children:"Suomi"})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-1",children:"Tidszon"}),p.jsxs("select",{value:t.timezone,onChange:y=>n({...t,timezone:y.target.value}),className:"w-full h-10 px-4 rounded-[14px] border bg-surface text-sm",children:[p.jsx("option",{value:"Europe/Stockholm",children:"Stockholm (CET)"}),p.jsx("option",{value:"Europe/Oslo",children:"Oslo (CET)"}),p.jsx("option",{value:"Europe/Copenhagen",children:"Köpenhamn (CET)"}),p.jsx("option",{value:"Europe/Helsinki",children:"Helsingfors (EET)"}),p.jsx("option",{value:"UTC",children:"UTC"})]})]})]})]})]})]})}function Ik({icon:e,title:t,description:n,action:r,className:a}){return p.jsxs("div",{className:Bt("flex flex-col items-center justify-center py-16 text-center",a),children:[e&&p.jsx("div",{className:"mb-4 text-text-secondary/40",children:e}),p.jsx("h3",{className:"text-sm font-medium text-text-primary",children:t}),n&&p.jsx("p",{className:"mt-1 text-sm text-text-secondary max-w-sm",children:n}),r&&p.jsx("div",{className:"mt-4",children:r})]})}const vue=["Customers","Leads","Pipeline"];function gue(){const[e,t]=P.useState("Customers"),[n,r]=P.useState(""),[a,s]=P.useState(!0),[l,c]=P.useState(""),[f,d]=P.useState([]),[m,y]=P.useState(0),[g,S]=P.useState([]),[j,w]=P.useState([]);P.useEffect(()=>{async function T(){s(!0),c("");try{const[C,O,E]=await Promise.all([oh.customers(),oh.leads(),oh.pipeline()]);d(C.customers),y(C.total),S(O.leads);const M=E;w(M.stages||M.pipeline||[])}catch(C){c(C instanceof Error?C.message:"Failed to load CRM data")}finally{s(!1)}}T()},[]);const b=f.filter(T=>T.name.toLowerCase().includes(n.toLowerCase())||(T.company||"").toLowerCase().includes(n.toLowerCase())),A=g.filter(T=>T.name.toLowerCase().includes(n.toLowerCase())||(T.company||"").toLowerCase().includes(n.toLowerCase())),_=j.reduce((T,C)=>T+(C.value||0),0);return a?p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"})]}),p.jsx(Qe,{className:"h-[400px]"})]}):l?p.jsx("div",{className:"flex items-center justify-center h-64",children:p.jsx("p",{className:"text-danger",children:l})}):p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"CRM"}),p.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Manage customers, leads, and pipeline"})]}),p.jsx(Kt,{icon:p.jsx(Ci,{size:16}),children:"Add Contact"})]}),p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(Aa,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:m}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Total Customers"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:p.jsx(wo,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:g.length}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Active Leads"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:p.jsx(Hw,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:new Intl.NumberFormat("sv-SE",{style:"currency",currency:"SEK",maximumFractionDigits:0}).format(_)}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Pipeline Value"})]})]})})]}),p.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[p.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:vue.map(T=>p.jsx("button",{onClick:()=>t(T),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors ${e===T?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:T},T))}),p.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[p.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[p.jsx(Co,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"text",placeholder:"Search...",value:n,onChange:T=>r(T.target.value),className:"w-full sm:w-64 h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm text-text-primary placeholder:text-text-secondary/50 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30"})]}),p.jsx(Kt,{variant:"secondary",size:"sm",icon:p.jsx(Zc,{size:14}),children:"Filter"})]})]}),e==="Customers"&&p.jsxs(de,{children:[p.jsxs(Wr,{children:[p.jsx(Zr,{children:p.jsxs(lt,{children:[p.jsx(ge,{children:"Customer"}),p.jsx(ge,{children:"Company"}),p.jsx(ge,{children:"Status"}),p.jsx(ge,{children:"Phone"}),p.jsx(ge,{children:"Created"}),p.jsx(ge,{align:"right"})]})}),p.jsx(Qr,{children:b.map(T=>p.jsxs(lt,{children:[p.jsx(he,{children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center text-xs font-semibold",children:T.name.charAt(0)}),p.jsxs("div",{children:[p.jsx("p",{className:"font-medium text-text-primary",children:T.name}),p.jsx("p",{className:"text-xs text-text-secondary",children:T.email})]})]})}),p.jsx(he,{children:T.company||"—"}),p.jsx(he,{children:p.jsx(Ye,{variant:T.status==="active"?"success":T.status==="lead"?"primary":"default",children:T.status})}),p.jsx(he,{children:T.phone||"—"}),p.jsx(he,{children:dr(T.created_at)}),p.jsx(he,{align:"right",children:p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Yr,{size:16})})})]},T.id))})]}),b.length===0&&p.jsx(Ik,{icon:p.jsx(Aa,{size:32}),title:"No customers found",description:"Try adjusting your search or filters"})]}),e==="Leads"&&p.jsxs(de,{children:[p.jsxs(Wr,{children:[p.jsx(Zr,{children:p.jsxs(lt,{children:[p.jsx(ge,{children:"Lead"}),p.jsx(ge,{children:"Company"}),p.jsx(ge,{children:"Source"}),p.jsx(ge,{children:"Status"}),p.jsx(ge,{children:"Created"}),p.jsx(ge,{align:"right"})]})}),p.jsx(Qr,{children:A.map(T=>p.jsxs(lt,{children:[p.jsx(he,{children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center text-xs font-semibold",children:T.name.charAt(0)}),p.jsxs("div",{children:[p.jsx("p",{className:"font-medium text-text-primary",children:T.name}),p.jsx("p",{className:"text-xs text-text-secondary",children:T.email})]})]})}),p.jsx(he,{children:T.company||"—"}),p.jsx(he,{children:T.source||"—"}),p.jsx(he,{children:p.jsx(Ye,{variant:T.status==="qualified"?"success":T.status==="contacted"?"primary":T.status==="lost"?"danger":"default",children:T.status})}),p.jsx(he,{children:dr(T.created_at)}),p.jsx(he,{align:"right",children:p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Yr,{size:16})})})]},T.id))})]}),A.length===0&&p.jsx(Ik,{icon:p.jsx(wo,{size:32}),title:"No leads found",description:"Try adjusting your search or filters"})]}),e==="Pipeline"&&p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:[j.length===0&&p.jsx("div",{className:"col-span-full text-center text-text-secondary py-12",children:"No pipeline stages found"}),j.map(T=>p.jsxs(de,{hover:!0,children:[p.jsxs("div",{className:"flex items-center justify-between mb-4",children:[p.jsx("h3",{className:"text-sm font-semibold text-text-primary",children:T.name}),p.jsxs(Ye,{variant:"default",children:[T.deals," deals"]})]}),p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:T.value>0?new Intl.NumberFormat("sv-SE",{style:"currency",currency:"SEK",maximumFractionDigits:0}).format(T.value):"—"}),p.jsx("div",{className:"mt-4 h-1.5 bg-bg rounded-full overflow-hidden",children:p.jsx("div",{className:"h-full bg-primary rounded-full transition-all",style:{width:`${_>0?T.value/_*100:0}%`}})})]},T.id))]})]})}const xue=["Deals","Products","MRR","ARR"];function bue(){const[e,t]=P.useState("Deals"),[n,r]=P.useState(""),[a,s]=P.useState(!0),[l,c]=P.useState(""),[f,d]=P.useState([]),[m,y]=P.useState([]),[g,S]=P.useState([]),[j,w]=P.useState([]),[b,A]=P.useState(0);P.useEffect(()=>{async function O(){s(!0),c("");try{const[E,M,k,D]=await Promise.all([Es.deals(),Es.products(),Es.mrr(),Es.arr()]);d(E.deals||[]),y(M.products||[]),A(k.mrr||0),S([]);const I=D;w([])}catch(E){c(E instanceof Error?E.message:"Failed to load sales data")}finally{s(!1)}}O()},[]);const _=f.reduce((O,E)=>O+(E.value||0),0),T=f.filter(O=>O.stage==="Closed Won").reduce((O,E)=>O+(E.value||0),0),C=m.filter(O=>O.active).length;return a?p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"})]}),p.jsx(Qe,{className:"h-[400px]"})]}):l?p.jsx("div",{className:"flex items-center justify-center h-64",children:p.jsx("p",{className:"text-danger",children:l})}):p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Sales"}),p.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Deals, products, and revenue metrics"})]}),p.jsx(Kt,{icon:p.jsx(Ci,{size:16}),children:"New Deal"})]}),p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(Fw,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Re(_)}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Total Pipeline"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:p.jsx(Na,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Re(T)}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Closed Won"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:p.jsx(mH,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:C}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Active Products"})]})]})})]}),p.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[p.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:xue.map(O=>p.jsx("button",{onClick:()=>t(O),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors ${e===O?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:O},O))}),p.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[p.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[p.jsx(Co,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"text",placeholder:"Search...",value:n,onChange:O=>r(O.target.value),className:"w-full sm:w-64 h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm text-text-primary placeholder:text-text-secondary/50 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30"})]}),p.jsx(Kt,{variant:"secondary",size:"sm",icon:p.jsx(Zc,{size:14}),children:"Filter"})]})]}),e==="Deals"&&p.jsx(de,{children:p.jsxs(Wr,{children:[p.jsx(Zr,{children:p.jsxs(lt,{children:[p.jsx(ge,{children:"Deal"}),p.jsx(ge,{children:"Company"}),p.jsx(ge,{align:"right",children:"Value"}),p.jsx(ge,{children:"Stage"}),p.jsx(ge,{align:"right",children:"Probability"}),p.jsx(ge,{children:"Owner"}),p.jsx(ge,{align:"right"})]})}),p.jsxs(Qr,{children:[f.length===0&&p.jsx(lt,{children:p.jsx(he,{colSpan:7,className:"text-center text-text-secondary py-8",children:"No deals found"})}),f.map(O=>p.jsxs(lt,{children:[p.jsx(he,{children:p.jsx("span",{className:"font-medium",children:O.name})}),p.jsx(he,{children:O.company}),p.jsx(he,{align:"right",children:Re(O.value)}),p.jsx(he,{children:p.jsx(Ye,{variant:O.stage==="Closed Won"?"success":O.stage==="Negotiation"?"primary":"default",children:O.stage})}),p.jsxs(he,{align:"right",children:[O.probability,"%"]}),p.jsx(he,{children:O.owner}),p.jsx(he,{align:"right",children:p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Yr,{size:16})})})]},O.id))]})]})}),e==="Products"&&p.jsx(de,{children:p.jsxs(Wr,{children:[p.jsx(Zr,{children:p.jsxs(lt,{children:[p.jsx(ge,{children:"Product"}),p.jsx(ge,{children:"SKU"}),p.jsx(ge,{align:"right",children:"Price"}),p.jsx(ge,{children:"Type"}),p.jsx(ge,{children:"Status"}),p.jsx(ge,{align:"right"})]})}),p.jsxs(Qr,{children:[m.length===0&&p.jsx(lt,{children:p.jsx(he,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No products found"})}),m.map(O=>p.jsxs(lt,{children:[p.jsx(he,{children:p.jsx("span",{className:"font-medium",children:O.name})}),p.jsx(he,{children:p.jsx("code",{className:"text-xs bg-bg px-2 py-0.5 rounded-md",children:O.sku})}),p.jsx(he,{align:"right",children:Re(O.price)}),p.jsx(he,{children:p.jsx(Ye,{variant:O.recurring?"primary":"default",children:O.recurring?"Recurring":"One-time"})}),p.jsx(he,{children:p.jsx(Ye,{variant:O.active?"success":"danger",children:O.active?"Active":"Inactive"})}),p.jsx(he,{align:"right",children:p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Yr,{size:16})})})]},O.id))]})]})}),e==="MRR"&&p.jsxs(de,{children:[p.jsx(tt,{title:"Monthly Recurring Revenue",subtitle:`Current MRR: ${Re(b)}`}),g.length>0?p.jsx("div",{className:"h-[320px]",children:p.jsx(Mh,{width:"100%",height:"100%",children:p.jsxs(Qle,{data:g,margin:{top:5,right:5,left:-10,bottom:0},children:[p.jsx(vp,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.04)",vertical:!1}),p.jsx(_a,{dataKey:"month",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},dy:8}),p.jsx(Ta,{axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},tickFormatter:O=>`${(O/1e3).toFixed(0)}k`,dx:-5}),p.jsx(Un,{content:({active:O,payload:E,label:M})=>!O||!(E!=null&&E.length)?null:p.jsxs("div",{className:"bg-surface rounded-xl dropdown-shadow border border-border/60 px-4 py-3",children:[p.jsx("p",{className:"text-xs font-medium text-text-secondary mb-2",children:M}),E.map((k,D)=>p.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[p.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:k.color}}),p.jsxs("span",{className:"text-text-secondary",children:[k.name,":"]}),p.jsx("span",{className:"font-semibold text-text-primary",children:Re(Number(k.value))})]},D))]})}),p.jsx(Oa,{dataKey:"mrr",fill:"#2563EB",radius:[4,4,0,0]}),p.jsx(Oa,{dataKey:"arr",fill:"#16A34A",radius:[4,4,0,0]})]})})}):p.jsx("div",{className:"h-[200px] flex items-center justify-center text-text-secondary",children:"No MRR history data available"})]}),e==="ARR"&&p.jsxs(de,{children:[p.jsx(tt,{title:"Annual Recurring Revenue",subtitle:"ARR growth by quarter"}),j.length>0?p.jsx("div",{className:"h-[320px]",children:p.jsx(Mh,{width:"100%",height:"100%",children:p.jsxs(Zle,{data:j,margin:{top:5,right:5,left:-10,bottom:0},children:[p.jsx(vp,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.04)",vertical:!1}),p.jsx(_a,{dataKey:"quarter",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},dy:8}),p.jsx(Ta,{axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},tickFormatter:O=>`${(O/1e3).toFixed(0)}k`,dx:-5}),p.jsx(Un,{content:({active:O,payload:E,label:M})=>!O||!(E!=null&&E.length)?null:p.jsxs("div",{className:"bg-surface rounded-xl dropdown-shadow border border-border/60 px-4 py-3",children:[p.jsx("p",{className:"text-xs font-medium text-text-secondary mb-1",children:M}),p.jsx("p",{className:"text-sm font-semibold text-text-primary",children:Re(Number(E[0].value))})]})}),p.jsx(sf,{type:"monotone",dataKey:"arr",stroke:"#2563EB",strokeWidth:2,dot:{r:4,strokeWidth:0,fill:"#2563EB"},activeDot:{r:6}})]})})}):p.jsx("div",{className:"h-[200px] flex items-center justify-center text-text-secondary",children:"No ARR history data available"})]})]})}const Sue=["Balance","Income","MOMS","Accounts","Invoices","Cashflow"],Uk=["#2563EB","#16A34A","#D97706","#DC2626","#9CA3AF"];function wue(){var M,k;const[e,t]=P.useState("Balance"),[n,r]=P.useState(""),[a,s]=P.useState(!0),[l,c]=P.useState(""),[f,d]=P.useState(null),[m,y]=P.useState(null),[g,S]=P.useState(null),[j,w]=P.useState([]),[b,A]=P.useState([]),[_,T]=P.useState(null);P.useEffect(()=>{async function D(){s(!0),c("");try{const[B,I,z,F,X,Y]=await Promise.all([io.balance(),io.income(),io.moms(),io.accounts(),io.invoices(),io.cashflow()]);d(B),y(I),S(z),w(F.accounts||[]),A(X.invoices||[]),T(Y)}catch(B){c(B instanceof Error?B.message:"Failed to load finance data")}finally{s(!1)}}D()},[]);const C=j.filter(D=>D.name.toLowerCase().includes(n.toLowerCase())||D.id.toLowerCase().includes(n.toLowerCase())),O=b.filter(D=>D.customer.toLowerCase().includes(n.toLowerCase())||D.id.toLowerCase().includes(n.toLowerCase())),E=(m==null?void 0:m.expenses.map((D,B)=>({name:D.account,value:D.amount,color:Uk[B%Uk.length]})))||[];return a?p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"})]}),p.jsx(Qe,{className:"h-[400px]"})]}):l?p.jsx("div",{className:"flex items-center justify-center h-64",children:p.jsx("p",{className:"text-danger",children:l})}):p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Finance"}),p.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Financial reports and accounting"})]}),p.jsx(Kt,{icon:p.jsx(Ci,{size:16}),children:"New Invoice"})]}),p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(n4,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Re((f==null?void 0:f.total_assets)||0)}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Total Assets"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:p.jsx(Na,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Re((m==null?void 0:m.total_revenue)||0)}),p.jsx("p",{className:"text-xs text-text-secondary",children:"YTD Revenue"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:p.jsx(Kw,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Re((m==null?void 0:m.total_expenses)||0)}),p.jsx("p",{className:"text-xs text-text-secondary",children:"YTD Expenses"})]})]})})]}),p.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[p.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1 overflow-x-auto max-w-full",children:Sue.map(D=>p.jsx("button",{onClick:()=>t(D),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors whitespace-nowrap ${e===D?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:D},D))}),p.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[p.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[p.jsx(Co,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"text",placeholder:"Search...",value:n,onChange:D=>r(D.target.value),className:"w-full sm:w-64 h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm text-text-primary placeholder:text-text-secondary/50 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30"})]}),p.jsx(Kt,{variant:"secondary",size:"sm",icon:p.jsx(Zc,{size:14}),children:"Filter"})]})]}),e==="Balance"&&p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:[p.jsxs(de,{children:[p.jsxs("div",{className:"flex items-center justify-between mb-3",children:[p.jsx("span",{className:"text-sm text-text-secondary",children:"Assets"}),p.jsx(N1,{size:14,className:"text-success"})]}),p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Re((f==null?void 0:f.total_assets)||0)})]}),p.jsxs(de,{children:[p.jsxs("div",{className:"flex items-center justify-between mb-3",children:[p.jsx("span",{className:"text-sm text-text-secondary",children:"Liabilities"}),p.jsx(Y9,{size:14,className:"text-danger"})]}),p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Re((f==null?void 0:f.total_liabilities)||0)})]}),p.jsxs(de,{children:[p.jsxs("div",{className:"flex items-center justify-between mb-3",children:[p.jsx("span",{className:"text-sm text-text-secondary",children:"Equity"}),p.jsx(N1,{size:14,className:"text-success"})]}),p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Re((f==null?void 0:f.total_equity)||0)})]})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Balance Sheet",subtitle:`Period: ${(f==null?void 0:f.period)||""}`}),p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{children:[p.jsx("h4",{className:"text-sm font-semibold text-text-primary mb-3",children:"Assets"}),p.jsxs("div",{className:"space-y-2",children:[f==null?void 0:f.assets.map((D,B)=>p.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[p.jsx("div",{children:p.jsx("p",{className:"text-sm text-text-primary",children:D.account})}),p.jsx("p",{className:"text-sm font-medium text-text-primary",children:Re(D.amount)})]},B)),(!(f!=null&&f.assets)||f.assets.length===0)&&p.jsx("p",{className:"text-text-secondary text-sm",children:"No asset accounts"})]})]}),p.jsxs("div",{children:[p.jsx("h4",{className:"text-sm font-semibold text-text-primary mb-3",children:"Liabilities"}),p.jsxs("div",{className:"space-y-2",children:[f==null?void 0:f.liabilities.map((D,B)=>p.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[p.jsx("div",{children:p.jsx("p",{className:"text-sm text-text-primary",children:D.account})}),p.jsx("p",{className:"text-sm font-medium text-text-primary",children:Re(D.amount)})]},B)),(!(f!=null&&f.liabilities)||f.liabilities.length===0)&&p.jsx("p",{className:"text-text-secondary text-sm",children:"No liability accounts"})]})]}),p.jsxs("div",{children:[p.jsx("h4",{className:"text-sm font-semibold text-text-primary mb-3",children:"Equity"}),p.jsxs("div",{className:"space-y-2",children:[(M=f==null?void 0:f.equity)==null?void 0:M.map((D,B)=>p.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[p.jsx("div",{children:p.jsx("p",{className:"text-sm text-text-primary",children:D.account})}),p.jsx("p",{className:"text-sm font-medium text-text-primary",children:Re(D.amount)})]},B)),(!(f!=null&&f.equity)||((k=f.equity)==null?void 0:k.length)===0)&&p.jsx("p",{className:"text-text-secondary text-sm",children:"No equity accounts"})]})]})]})]})]}),e==="Income"&&p.jsx("div",{className:"space-y-6",children:p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[p.jsxs(de,{className:"lg:col-span-2",children:[p.jsx(tt,{title:"Income Statement",subtitle:`Period: ${(m==null?void 0:m.period)||""}`}),p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[p.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[p.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Revenue"}),p.jsx("p",{className:"text-lg font-semibold text-text-primary",children:Re((m==null?void 0:m.total_revenue)||0)})]}),p.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[p.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Expenses"}),p.jsx("p",{className:"text-lg font-semibold text-text-primary",children:Re((m==null?void 0:m.total_expenses)||0)})]}),p.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[p.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Net Income"}),p.jsx("p",{className:"text-lg font-semibold text-success",children:Re((m==null?void 0:m.net_income)||0)})]})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx("h4",{className:"text-sm font-semibold text-text-primary",children:"Revenue Accounts"}),m==null?void 0:m.revenue.map((D,B)=>p.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[p.jsx("p",{className:"text-sm text-text-primary",children:D.account}),p.jsx("p",{className:"text-sm font-medium text-text-primary",children:Re(D.amount)})]},B))]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx("h4",{className:"text-sm font-semibold text-text-primary",children:"Expense Accounts"}),m==null?void 0:m.expenses.map((D,B)=>p.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[p.jsx("p",{className:"text-sm text-text-primary",children:D.account}),p.jsx("p",{className:"text-sm font-medium text-text-primary",children:Re(D.amount)})]},B))]})]})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Expense Breakdown",subtitle:"By category"}),E.length>0?p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"h-[220px]",children:p.jsx(Mh,{width:"100%",height:"100%",children:p.jsxs(Jle,{children:[p.jsx($i,{data:E,cx:"50%",cy:"50%",innerRadius:60,outerRadius:90,paddingAngle:4,dataKey:"value",children:E.map((D,B)=>p.jsx(Gp,{fill:D.color},`cell-${B}`))}),p.jsx(Un,{content:({active:D,payload:B})=>{if(!D||!(B!=null&&B.length))return null;const I=B[0].payload;return p.jsxs("div",{className:"bg-surface rounded-xl dropdown-shadow border border-border/60 px-3 py-2",children:[p.jsx("p",{className:"text-sm font-medium text-text-primary",children:I.name}),p.jsx("p",{className:"text-xs text-text-secondary",children:Re(I.value)})]})}})]})})}),p.jsx("div",{className:"space-y-2 mt-2",children:E.map(D=>p.jsxs("div",{className:"flex items-center justify-between text-sm",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:D.color}}),p.jsx("span",{className:"text-text-secondary",children:D.name})]}),p.jsx("span",{className:"font-medium text-text-primary",children:Re(D.value)})]},D.name))})]}):p.jsx("div",{className:"h-[200px] flex items-center justify-center text-text-secondary",children:"No expense data"})]})]})}),e==="MOMS"&&p.jsxs(de,{children:[p.jsx(tt,{title:"MOMS Report",subtitle:`Period: ${(g==null?void 0:g.period)||""}`}),p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5 mb-6",children:[p.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[p.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"MOMS In (Input VAT)"}),p.jsx("p",{className:"text-lg font-semibold text-text-primary",children:Re((g==null?void 0:g.moms_in)||0)})]}),p.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[p.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"MOMS Ut (Output VAT)"}),p.jsx("p",{className:"text-lg font-semibold text-text-primary",children:Re((g==null?void 0:g.moms_ut)||0)})]}),p.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[p.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"MOMS att betala"}),p.jsx("p",{className:"text-lg font-semibold text-success",children:Re((g==null?void 0:g.moms_att_betala)||0)})]})]})]}),e==="Accounts"&&p.jsxs(de,{children:[p.jsx(tt,{title:"Chart of Accounts",subtitle:"General ledger accounts"}),p.jsxs(Wr,{children:[p.jsx(Zr,{children:p.jsxs(lt,{children:[p.jsx(ge,{children:"Account"}),p.jsx(ge,{children:"Number"}),p.jsx(ge,{children:"Type"}),p.jsx(ge,{align:"right",children:"Balance"}),p.jsx(ge,{align:"right"})]})}),p.jsxs(Qr,{children:[C.map(D=>p.jsxs(lt,{children:[p.jsx(he,{children:p.jsx("span",{className:"font-medium",children:D.name})}),p.jsx(he,{children:p.jsx("code",{className:"text-xs bg-bg px-2 py-0.5 rounded-md",children:D.id})}),p.jsx(he,{children:p.jsx(Ye,{variant:D.type==="asset"?"success":D.type==="equity"?"primary":"warning",children:D.type})}),p.jsx(he,{align:"right",children:Re(D.balance)}),p.jsx(he,{align:"right",children:p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Yr,{size:16})})})]},D.id)),C.length===0&&p.jsx(lt,{children:p.jsx(he,{colSpan:5,className:"text-center text-text-secondary py-8",children:"No accounts found"})})]})]})]}),e==="Invoices"&&p.jsxs(de,{children:[p.jsx(tt,{title:"Invoices",subtitle:"All invoices"}),p.jsxs(Wr,{children:[p.jsx(Zr,{children:p.jsxs(lt,{children:[p.jsx(ge,{children:"Number"}),p.jsx(ge,{children:"Customer"}),p.jsx(ge,{align:"right",children:"Amount"}),p.jsx(ge,{children:"Status"}),p.jsx(ge,{children:"Due Date"}),p.jsx(ge,{align:"right"})]})}),p.jsxs(Qr,{children:[O.map(D=>p.jsxs(lt,{children:[p.jsx(he,{children:p.jsx("span",{className:"font-medium",children:D.id})}),p.jsx(he,{children:D.customer}),p.jsx(he,{align:"right",children:Re(D.amount)}),p.jsx(he,{children:p.jsx(Ye,{variant:D.status==="paid"?"success":D.status==="overdue"?"danger":D.status==="sent"||D.status==="pending"?"primary":"default",children:D.status})}),p.jsx(he,{children:dr(D.due_date)}),p.jsx(he,{align:"right",children:p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Yr,{size:16})})})]},D.id)),O.length===0&&p.jsx(lt,{children:p.jsx(he,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No invoices found"})})]})]})]}),e==="Cashflow"&&p.jsxs(de,{children:[p.jsx(tt,{title:"Cash Flow",subtitle:`Period: ${(_==null?void 0:_.period)||""}`}),p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5 mb-6",children:[p.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[p.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Inflow"}),p.jsx("p",{className:"text-lg font-semibold text-success",children:Re((_==null?void 0:_.inflow)||0)})]}),p.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[p.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Outflow"}),p.jsx("p",{className:"text-lg font-semibold text-danger",children:Re((_==null?void 0:_.outflow)||0)})]}),p.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[p.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Net"}),p.jsx("p",{className:"text-lg font-semibold text-text-primary",children:Re((_==null?void 0:_.net)||0)})]})]})]})]})}const jue=["Employees","Leaves"],Aue={Sales:"primary",Engineering:"success",Finance:"warning",HR:"primary",Legal:"default"};function Oue(){const[e,t]=P.useState("Employees"),[n,r]=P.useState(""),[a,s]=P.useState(!0),[l,c]=P.useState(""),[f,d]=P.useState([]),[m,y]=P.useState([]);P.useEffect(()=>{async function A(){s(!0),c("");try{const[_,T]=await Promise.all([HE.employees(),HE.leaves()]);d(_.employees||[]),y(T.leaves||[])}catch(_){c(_ instanceof Error?_.message:"Failed to load HR data")}finally{s(!1)}}A()},[]);const g=f.filter(A=>A.status==="active").length,S=f.filter(A=>A.status==="on_leave").length,j=m.filter(A=>A.status==="pending").length,w=f.filter(A=>(A.name||`${A.first_name} ${A.last_name}`).toLowerCase().includes(n.toLowerCase())||A.department.toLowerCase().includes(n.toLowerCase())||(A.role||A.position).toLowerCase().includes(n.toLowerCase())),b=m.filter(A=>A.employeeName.toLowerCase().includes(n.toLowerCase())||A.type.toLowerCase().includes(n.toLowerCase()));return a?p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"})]}),p.jsx(Qe,{className:"h-[400px]"})]}):l?p.jsx("div",{className:"flex items-center justify-center h-64",children:p.jsx("p",{className:"text-danger",children:l})}):p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"HR"}),p.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Employees and leave management"})]}),p.jsx(Kt,{icon:p.jsx(Ci,{size:16}),children:"Add Employee"})]}),p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(Aa,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:g}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Active Employees"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:p.jsx(Is,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:S}),p.jsx("p",{className:"text-xs text-text-secondary",children:"On Leave"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:p.jsx(W9,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:j}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Pending Requests"})]})]})})]}),p.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[p.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:jue.map(A=>p.jsx("button",{onClick:()=>t(A),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors ${e===A?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:A},A))}),p.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[p.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[p.jsx(Co,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"text",placeholder:"Search...",value:n,onChange:A=>r(A.target.value),className:"w-full sm:w-64 h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm text-text-primary placeholder:text-text-secondary/50 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30"})]}),p.jsx(Kt,{variant:"secondary",size:"sm",icon:p.jsx(Zc,{size:14}),children:"Filter"})]})]}),e==="Employees"&&p.jsx(de,{children:p.jsxs(Wr,{children:[p.jsx(Zr,{children:p.jsxs(lt,{children:[p.jsx(ge,{children:"Employee"}),p.jsx(ge,{children:"Department"}),p.jsx(ge,{children:"Role"}),p.jsx(ge,{children:"Status"}),p.jsx(ge,{children:"Start Date"}),p.jsx(ge,{align:"right"})]})}),p.jsxs(Qr,{children:[w.map(A=>{const _=A.name||`${A.first_name} ${A.last_name}`,T=A.role||A.position,C=A.startDate||A.start_date;return p.jsxs(lt,{children:[p.jsx(he,{children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center text-xs font-semibold",children:_.split(" ").map(O=>O[0]).join("")}),p.jsxs("div",{children:[p.jsx("p",{className:"font-medium text-text-primary",children:_}),p.jsx("p",{className:"text-xs text-text-secondary",children:A.email})]})]})}),p.jsx(he,{children:p.jsx(Ye,{variant:Aue[A.department]||"default",children:A.department})}),p.jsx(he,{children:T}),p.jsx(he,{children:p.jsx(Ye,{variant:A.status==="active"?"success":A.status==="on_leave"?"warning":"danger",children:A.status.replace("_"," ")})}),p.jsx(he,{children:dr(C||"")}),p.jsx(he,{align:"right",children:p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Yr,{size:16})})})]},A.id)}),w.length===0&&p.jsx(lt,{children:p.jsx(he,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No employees found"})})]})]})}),e==="Leaves"&&p.jsx(de,{children:p.jsxs(Wr,{children:[p.jsx(Zr,{children:p.jsxs(lt,{children:[p.jsx(ge,{children:"Employee"}),p.jsx(ge,{children:"Type"}),p.jsx(ge,{children:"Period"}),p.jsx(ge,{align:"right",children:"Days"}),p.jsx(ge,{children:"Status"}),p.jsx(ge,{align:"right"})]})}),p.jsxs(Qr,{children:[b.map(A=>p.jsxs(lt,{children:[p.jsx(he,{children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center text-xs font-semibold",children:A.employeeName.split(" ").map(_=>_[0]).join("")}),p.jsx("span",{className:"font-medium text-text-primary",children:A.employeeName})]})}),p.jsx(he,{children:p.jsx(Ye,{variant:A.type==="vacation"?"primary":A.type==="sick"?"warning":"default",children:A.type})}),p.jsx(he,{children:p.jsxs("span",{className:"text-sm text-text-primary",children:[dr(A.startDate)," — ",dr(A.endDate)]})}),p.jsx(he,{align:"right",children:p.jsx("span",{className:"font-medium",children:A.days})}),p.jsx(he,{children:p.jsx(Ye,{variant:A.status==="approved"?"success":A.status==="pending"?"warning":"danger",children:A.status})}),p.jsx(he,{align:"right",children:p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Yr,{size:16})})})]},A.id)),b.length===0&&p.jsx(lt,{children:p.jsx(he,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No leave requests found"})})]})]})})]})}const Vk={draft:{variant:"default",icon:Is},pending_signature:{variant:"warning",icon:Is},active:{variant:"success",icon:Wc},expired:{variant:"danger",icon:ba},terminated:{variant:"default",icon:ba},disputed:{variant:"danger",icon:ba}},_ue={aamos:"primary",quixzoom:"success",legal:"warning",hr:"default"};function Hk(){const[e,t]=P.useState("contracts"),[n,r]=P.useState(""),[a,s]=P.useState(!0),[l,c]=P.useState(""),[f,d]=P.useState([]),[m,y]=P.useState([]),[g,S]=P.useState([]),[j,w]=P.useState(null),[b,A]=P.useState(!1);P.useEffect(()=>{async function O(){s(!0),c("");try{const[E,M,k]=await Promise.all([fetch("/api/v1/legal/contracts").then(D=>D.json()),fetch("/api/v1/legal/templates").then(D=>D.json()),fetch("/api/v1/legal/product-links").then(D=>D.json())]);d(E.contracts||[]),y(M.templates||[]),S(k.links||[])}catch(E){c(E instanceof Error?E.message:"Failed to load legal data")}finally{s(!1)}}O()},[]);const _=f.filter(O=>O.name.toLowerCase().includes(n.toLowerCase())||O.counterparty.toLowerCase().includes(n.toLowerCase())||O.template_type.toLowerCase().includes(n.toLowerCase())),T=m.filter(O=>O.name.toLowerCase().includes(n.toLowerCase())||O.description.toLowerCase().includes(n.toLowerCase())||O.category.toLowerCase().includes(n.toLowerCase()));if(a)return p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-4 gap-5",children:[p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"})]}),p.jsx(Qe,{className:"h-[400px]"})]});if(l)return p.jsx("div",{className:"flex items-center justify-center h-64",children:p.jsx("p",{className:"text-danger",children:l})});const C=[{id:"contracts",label:"Avtal",icon:co},{id:"templates",label:"Mallar",icon:nH},{id:"products",label:"Produktkopplingar",icon:sc}];return p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Legal"}),p.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Avtal, mallar och produktkopplingar"})]}),p.jsx(Kt,{icon:p.jsx(Ci,{size:16}),children:"Nytt avtal"})]}),p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-4 gap-5",children:[p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center",children:p.jsx(co,{size:20})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold",children:f.length}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Totalt avtal"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-success/10 text-success flex items-center justify-center",children:p.jsx(Wc,{size:20})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold",children:f.filter(O=>O.status==="active").length}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Aktiva"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning/10 text-warning flex items-center justify-center",children:p.jsx(Is,{size:20})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold",children:f.filter(O=>O.status==="pending_signature").length}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Väntar signering"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-danger/10 text-danger flex items-center justify-center",children:p.jsx(ba,{size:20})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold",children:f.filter(O=>O.status==="expired"||O.status==="terminated").length}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Utgångna"})]})]})})]}),p.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1 overflow-x-auto",children:C.map(O=>p.jsxs("button",{onClick:()=>t(O.id),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors whitespace-nowrap flex items-center gap-2 ${e===O.id?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:[p.jsx(O.icon,{size:16}),O.label]},O.id))}),p.jsxs("div",{className:"relative",children:[p.jsx(Co,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"text",placeholder:"Sök avtal, mallar eller produkter...",value:n,onChange:O=>r(O.target.value),className:"w-full h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm"})]}),e==="contracts"&&p.jsx(de,{children:p.jsx("div",{className:"overflow-x-auto",children:p.jsxs("table",{className:"w-full",children:[p.jsx("thead",{children:p.jsxs("tr",{className:"border-b border-border",children:[p.jsx("th",{className:"text-left text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3",children:"Avtal"}),p.jsx("th",{className:"text-left text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3",children:"Motpart"}),p.jsx("th",{className:"text-left text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3",children:"Typ"}),p.jsx("th",{className:"text-left text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3",children:"Status"}),p.jsx("th",{className:"text-left text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3",children:"Värde"}),p.jsx("th",{className:"text-left text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3",children:"Period"}),p.jsx("th",{className:"text-right text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3"})]})}),p.jsxs("tbody",{className:"divide-y divide-border",children:[_.map(O=>{const E=Vk[O.status]||Vk.draft;return p.jsxs("tr",{className:"hover:bg-bg transition-colors",children:[p.jsx("td",{className:"px-4 py-3",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center",children:p.jsx(co,{size:14})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium text-text-primary",children:O.name}),p.jsx("p",{className:"text-xs text-text-secondary",children:O.template_type})]})]})}),p.jsxs("td",{className:"px-4 py-3",children:[p.jsx("p",{className:"text-sm text-text-primary",children:O.counterparty}),O.counterparty_org&&p.jsx("p",{className:"text-xs text-text-secondary",children:O.counterparty_org})]}),p.jsx("td",{className:"px-4 py-3",children:p.jsx(Ye,{variant:"default",className:"text-xs",children:O.template_type})}),p.jsx("td",{className:"px-4 py-3",children:p.jsxs(Ye,{variant:E.variant,className:"text-xs flex items-center gap-1",children:[p.jsx(E.icon,{size:12}),O.status]})}),p.jsx("td",{className:"px-4 py-3",children:O.value?p.jsxs("p",{className:"text-sm font-medium",children:[Re(O.value)," ",O.currency]}):p.jsx("p",{className:"text-sm text-text-secondary",children:"—"})}),p.jsx("td",{className:"px-4 py-3",children:p.jsxs("p",{className:"text-sm text-text-secondary",children:[O.start_date?dr(O.start_date):"—",O.end_date&&`${dr(O.end_date)}`]})}),p.jsx("td",{className:"px-4 py-3 text-right",children:p.jsxs("div",{className:"flex items-center justify-end gap-1",children:[p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(QL,{size:14})}),p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(DE,{size:14})}),p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Yr,{size:14})})]})})]},O.id)}),_.length===0&&p.jsx("tr",{children:p.jsx("td",{colSpan:7,className:"text-center text-text-secondary py-8",children:"Inga avtal hittades"})})]})]})})}),e==="templates"&&p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[T.map(O=>p.jsx("div",{className:"cursor-pointer hover:border-primary transition-colors",onClick:()=>{w(O),A(!0)},children:p.jsx(de,{children:p.jsxs("div",{className:"p-4",children:[p.jsxs("div",{className:"flex items-start justify-between mb-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center",children:p.jsx(co,{size:20})}),p.jsx(Ye,{variant:_ue[O.category],className:"text-xs",children:O.category})]}),p.jsx("h3",{className:"font-semibold text-text-primary mb-1",children:O.name}),p.jsx("p",{className:"text-sm text-text-secondary mb-3",children:O.description}),p.jsxs("div",{className:"flex items-center gap-2 text-xs text-text-tertiary",children:[p.jsx(ih,{size:12}),O.jurisdiction,p.jsx("span",{className:"mx-1",children:"•"}),p.jsx(ah,{size:12}),"v",O.version,p.jsx("span",{className:"mx-1",children:"•"}),O.sections.length," sektioner"]})]})})},O.id)),T.length===0&&p.jsx("div",{className:"col-span-full text-center text-text-secondary py-8",children:"Inga mallar hittades"})]}),e==="products"&&p.jsx("div",{className:"space-y-6",children:g.map(O=>p.jsx(de,{children:p.jsxs("div",{className:"p-4",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center",children:p.jsx(sc,{size:20})}),p.jsxs("div",{children:[p.jsx("h3",{className:"font-semibold text-text-primary",children:O.product_name}),p.jsx("p",{className:"text-sm text-text-secondary",children:O.product_type})]})]}),p.jsxs("div",{className:"space-y-3",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-xs font-medium text-text-secondary uppercase mb-2",children:"Krävs"}),p.jsx("div",{className:"flex flex-wrap gap-2",children:O.required_contracts.map(E=>p.jsx(Ye,{variant:"primary",className:"text-xs",children:E},E))})]}),O.optional_contracts.length>0&&p.jsxs("div",{children:[p.jsx("p",{className:"text-xs font-medium text-text-secondary uppercase mb-2",children:"Valbart"}),p.jsx("div",{className:"flex flex-wrap gap-2",children:O.optional_contracts.map(E=>p.jsx(Ye,{variant:"default",className:"text-xs",children:E},E))})]})]})]})},O.product_id))}),b&&j&&p.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",children:p.jsx("div",{className:"w-full max-w-3xl max-h-[90vh] overflow-y-auto",children:p.jsx(de,{children:p.jsxs("div",{className:"p-6",children:[p.jsxs("div",{className:"flex items-start justify-between mb-6",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-xl font-semibold",children:j.name}),p.jsx("p",{className:"text-text-secondary",children:j.description})]}),p.jsx("button",{onClick:()=>A(!1),className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:"✕"})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-6",children:[p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"Kategori"}),p.jsx("p",{className:"font-medium",children:j.category})]}),p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"Jurisdiktion"}),p.jsx("p",{className:"font-medium",children:j.jurisdiction})]}),p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"Språk"}),p.jsx("p",{className:"font-medium",children:j.language})]}),p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"Version"}),p.jsx("p",{className:"font-medium",children:j.version})]})]}),p.jsx("h3",{className:"font-semibold mb-3",children:"Avtalssektioner"}),p.jsx("div",{className:"space-y-2 mb-6",children:j.sections.map(O=>p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[p.jsxs("span",{className:"text-xs text-text-tertiary",children:[O.order,"."]}),p.jsx("p",{className:"font-medium text-sm",children:O.title}),O.required&&p.jsx(Ye,{variant:"danger",className:"text-xs",children:"Krävs"})]}),p.jsx("p",{className:"text-sm text-text-secondary",children:O.content}),O.variables&&O.variables.length>0&&p.jsx("div",{className:"flex flex-wrap gap-1 mt-2",children:O.variables.map(E=>p.jsx("code",{className:"text-xs bg-primary/10 text-primary px-2 py-0.5 rounded",children:"{{"+E+"}}"},E))})]},O.id))}),p.jsx("h3",{className:"font-semibold mb-3",children:"Standardvillkor"}),p.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-6",children:[p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"Betalningsvillkor"}),p.jsx("p",{className:"text-sm",children:j.default_terms.payment_terms})]}),p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"Valuta"}),p.jsx("p",{className:"text-sm",children:j.default_terms.currency})]}),p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"Avtalsperiod"}),p.jsx("p",{className:"text-sm",children:j.default_terms.contract_period})]}),p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"Uppsägningstid"}),p.jsx("p",{className:"text-sm",children:j.default_terms.notice_period})]}),p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"Auto-förnyelse"}),p.jsx("p",{className:"text-sm",children:j.default_terms.auto_renewal?"Ja":"Nej"})]}),p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"SLA"}),p.jsx("p",{className:"text-sm",children:j.default_terms.sla_enabled?`${j.default_terms.sla_uptime}% uptime`:"Ej aktiverat"})]})]}),p.jsxs("div",{className:"flex gap-3",children:[p.jsxs(Kt,{className:"flex-1",children:[p.jsx(Ci,{size:16,className:"mr-2"}),"Skapa avtal från mall"]}),p.jsxs(Kt,{variant:"secondary",children:[p.jsx(DE,{size:16,className:"mr-2"}),"Förhandsgranska"]})]})]})})})})]})}const Tue=[{id:"1",name:"Q4 Product Launch",status:"active",channel:"Email",reach:12500,engagement:8.2,conversions:340},{id:"2",name:"Holiday Special",status:"scheduled",channel:"Social",reach:0,engagement:0,conversions:0},{id:"3",name:"Customer Retention",status:"active",channel:"Email",reach:8400,engagement:12.5,conversions:520},{id:"4",name:"Partner Webinar",status:"completed",channel:"Webinar",reach:3200,engagement:45,conversions:180}];function Eue(){return p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Marketing"}),p.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Campaigns and marketing metrics"})]}),p.jsx(Kt,{icon:p.jsx(Ci,{size:16}),children:"New Campaign"})]}),p.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-5",children:[p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(e4,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:"4"}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Campaigns"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:p.jsx(Aa,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:"24.1K"}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Total Reach"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:p.jsx(t4,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:"10.4%"}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Avg. Engagement"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(Na,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:"1,040"}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Conversions"})]})]})})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Campaigns",subtitle:"Active and recent marketing campaigns"}),p.jsx("div",{className:"space-y-4",children:Tue.map(e=>p.jsxs("div",{className:"flex items-center justify-between p-4 rounded-xl bg-bg/50 hover:bg-bg transition-colors",children:[p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:e.channel==="Email"?p.jsx(wo,{size:18}):p.jsx(Q9,{size:18})}),p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"font-medium text-text-primary",children:e.name}),p.jsx(Ye,{variant:e.status==="active"?"success":e.status==="scheduled"?"primary":"default",size:"sm",children:e.status})]}),p.jsx("p",{className:"text-xs text-text-secondary mt-0.5",children:e.channel})]})]}),p.jsxs("div",{className:"flex items-center gap-8 text-right",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium text-text-primary",children:e.reach>0?e.reach.toLocaleString():"—"}),p.jsx("p",{className:"text-[11px] text-text-secondary",children:"Reach"})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium text-text-primary",children:e.engagement>0?`${e.engagement}%`:"—"}),p.jsx("p",{className:"text-[11px] text-text-secondary",children:"Engagement"})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium text-text-primary",children:e.conversions>0?e.conversions.toLocaleString():"—"}),p.jsx("p",{className:"text-[11px] text-text-secondary",children:"Conversions"})]})]})]},e.id))})]})]})}const $u=[{id:"SUP-2024-001",subject:"Login issues after password reset",customer:"Acme Corp",priority:"high",status:"open",assigned:"Johan Berg",created:new Date(Date.now()-1e3*60*30).toISOString()},{id:"SUP-2024-002",subject:"API rate limit questions",customer:"Nordic Solutions",priority:"medium",status:"in_progress",assigned:"Johan Berg",created:new Date(Date.now()-1e3*60*120).toISOString()},{id:"SUP-2024-003",subject:"Feature request: bulk export",customer:"TechStart AB",priority:"low",status:"open",assigned:"Unassigned",created:new Date(Date.now()-1e3*60*60*4).toISOString()},{id:"SUP-2024-004",subject:"Billing discrepancy on invoice #89",customer:"Global Industries",priority:"high",status:"in_progress",assigned:"Elena Rossi",created:new Date(Date.now()-1e3*60*60*6).toISOString()},{id:"SUP-2024-005",subject:"Integration documentation outdated",customer:"ScandiTech",priority:"medium",status:"resolved",assigned:"Johan Berg",created:new Date(Date.now()-1e3*60*60*24).toISOString()},{id:"SUP-2024-006",subject:"Mobile app crash on iOS",customer:"MegaCorp",priority:"high",status:"open",assigned:"Unassigned",created:new Date(Date.now()-1e3*60*60*2).toISOString()}],Nue=["All","Open","In Progress","Resolved"];function Cue(){const[e,t]=P.useState("All"),[n,r]=P.useState(""),a=$u.filter(f=>f.status==="open").length,s=$u.filter(f=>f.status==="in_progress").length,l=$u.filter(f=>f.status==="resolved").length,c=$u.filter(f=>{const d=f.subject.toLowerCase().includes(n.toLowerCase())||f.customer.toLowerCase().includes(n.toLowerCase())||f.id.toLowerCase().includes(n.toLowerCase()),m=e==="All"||f.status===e.toLowerCase().replace(" ","_");return d&&m});return p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Support"}),p.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Customer support tickets"})]}),p.jsx(Kt,{icon:p.jsx(Ci,{size:16}),children:"New Ticket"})]}),p.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-5",children:[p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(JL,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:$u.length}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Total Tickets"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:p.jsx(Gw,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:a}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Open"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(Is,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:s}),p.jsx("p",{className:"text-xs text-text-secondary",children:"In Progress"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:p.jsx(Wc,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:l}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Resolved"})]})]})})]}),p.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[p.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:Nue.map(f=>p.jsx("button",{onClick:()=>t(f),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors ${e===f?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:f},f))}),p.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[p.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[p.jsx(Co,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"text",placeholder:"Search tickets...",value:n,onChange:f=>r(f.target.value),className:"w-full sm:w-64 h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm text-text-primary placeholder:text-text-secondary/50 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30"})]}),p.jsx(Kt,{variant:"secondary",size:"sm",icon:p.jsx(Zc,{size:14}),children:"Filter"})]})]}),p.jsx(de,{children:p.jsxs(Wr,{children:[p.jsx(Zr,{children:p.jsxs(lt,{children:[p.jsx(ge,{children:"Ticket"}),p.jsx(ge,{children:"Subject"}),p.jsx(ge,{children:"Customer"}),p.jsx(ge,{children:"Priority"}),p.jsx(ge,{children:"Status"}),p.jsx(ge,{children:"Assigned"}),p.jsx(ge,{children:"Created"}),p.jsx(ge,{align:"right"})]})}),p.jsx(Qr,{children:c.map(f=>p.jsxs(lt,{children:[p.jsx(he,{children:p.jsx("span",{className:"font-medium text-sm",children:f.id})}),p.jsx(he,{children:p.jsx("span",{className:"text-sm text-text-primary",children:f.subject})}),p.jsx(he,{children:f.customer}),p.jsx(he,{children:p.jsx(Ye,{variant:f.priority==="high"?"danger":f.priority==="medium"?"warning":"default",size:"sm",children:f.priority})}),p.jsx(he,{children:p.jsx(Ye,{variant:f.status==="resolved"?"success":f.status==="in_progress"?"primary":"warning",size:"sm",children:f.status.replace("_"," ")})}),p.jsx(he,{children:f.assigned}),p.jsx(he,{children:p.jsx("span",{className:"text-xs text-text-secondary",children:Xw(f.created)})}),p.jsx(he,{align:"right",children:p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Yr,{size:16})})})]},f.id))})]})})]})}const Bu=[{id:"1",name:"New Lead Notification",description:"Send Slack notification when a new lead is created",status:"active",trigger:"Lead Created",actions:["Send Email","Slack Message"],lastRun:"2 min ago",runs:1240},{id:"2",name:"Invoice Reminder",description:"Send reminder 3 days before invoice due date",status:"active",trigger:"Schedule",actions:["Send Email"],lastRun:"1 hour ago",runs:856},{id:"3",name:"Customer Onboarding",description:"Welcome email series for new customers",status:"active",trigger:"Customer Created",actions:["Send Email","Create Task","Add to CRM"],lastRun:"15 min ago",runs:342},{id:"4",name:"Deal Stage Alert",description:"Notify sales team when deal reaches negotiation",status:"paused",trigger:"Deal Updated",actions:["Send Email","Slack Message"],lastRun:"3 days ago",runs:89},{id:"5",name:"Employee Offboarding",description:"Automated offboarding checklist",status:"active",trigger:"Employee Terminated",actions:["Create Task","Send Email","Update HR"],lastRun:"1 week ago",runs:12}],Mue={"Send Email":p.jsx(wo,{size:12}),"Slack Message":p.jsx(cH,{size:12}),"Create Task":p.jsx(co,{size:12}),"Add to CRM":p.jsx(M1,{size:12}),"Update HR":p.jsx(M1,{size:12})};function Pue(){const e=Bu.filter(n=>n.status==="active").length,t=Bu.reduce((n,r)=>n+r.runs,0);return p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Automation"}),p.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Workflows and automated tasks"})]}),p.jsx(Kt,{icon:p.jsx(Ci,{size:16}),children:"New Workflow"})]}),p.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-5",children:[p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(r4,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Bu.length}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Workflows"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:p.jsx($E,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:e}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Active"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:p.jsx(LE,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Bu.length-e}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Paused"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(Wc,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:t.toLocaleString()}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Total Runs"})]})]})})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Workflows",subtitle:"Automated processes and triggers"}),p.jsx("div",{className:"space-y-3",children:Bu.map(n=>p.jsxs("div",{className:"flex items-center justify-between p-4 rounded-xl bg-bg/50 hover:bg-bg transition-colors",children:[p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx("div",{className:`w-10 h-10 rounded-xl flex items-center justify-center ${n.status==="active"?"bg-success-light text-success":"bg-warning-light text-warning"}`,children:n.status==="active"?p.jsx($E,{size:18}):p.jsx(LE,{size:18})}),p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"font-medium text-text-primary",children:n.name}),p.jsx(Ye,{variant:n.status==="active"?"success":"warning",size:"sm",children:n.status})]}),p.jsx("p",{className:"text-xs text-text-secondary mt-0.5",children:n.description}),p.jsxs("div",{className:"flex items-center gap-3 mt-2",children:[p.jsxs("div",{className:"flex items-center gap-1.5",children:[p.jsx(aH,{size:12,className:"text-text-secondary/60"}),p.jsx("span",{className:"text-[11px] text-text-secondary",children:n.trigger})]}),p.jsx("div",{className:"flex items-center gap-1",children:n.actions.map((r,a)=>p.jsxs("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 bg-bg rounded text-[10px] text-text-secondary",children:[Mue[r],r]},a))})]})]})]}),p.jsxs("div",{className:"flex items-center gap-6 text-right",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium text-text-primary",children:n.runs.toLocaleString()}),p.jsx("p",{className:"text-[11px] text-text-secondary",children:"runs"})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium text-text-primary",children:n.lastRun}),p.jsx("p",{className:"text-[11px] text-text-secondary",children:"last run"})]}),p.jsx("div",{className:"flex items-center",children:p.jsx("div",{className:"w-9 h-5 rounded-full bg-success/20 relative cursor-pointer",children:p.jsx("div",{className:"absolute right-0.5 top-0.5 w-4 h-4 rounded-full bg-success"})})})]})]},n.id))})]})]})}function Rue({children:e}){const{isAuthenticated:t}=Gc();return t?p.jsx(p.Fragment,{children:e}):p.jsx(uw,{to:"/login",replace:!0})}function Due({children:e}){const{isAuthenticated:t}=Gc();return t?p.jsx(uw,{to:"/",replace:!0}):p.jsx(p.Fragment,{children:e})}function kue(){return p.jsxs(uq,{children:[p.jsx(dn,{path:"/login",element:p.jsx(Due,{children:p.jsx(aG,{})})}),p.jsxs(dn,{element:p.jsx(Rue,{children:p.jsx(nG,{})}),children:[p.jsx(dn,{path:"/",element:p.jsx(mue,{})}),p.jsx(dn,{path:"/dashboard",element:p.jsx(lue,{})}),p.jsx(dn,{path:"/crm",element:p.jsx(gue,{})}),p.jsx(dn,{path:"/sales",element:p.jsx(bue,{})}),p.jsx(dn,{path:"/finance",element:p.jsx(wue,{})}),p.jsx(dn,{path:"/hr",element:p.jsx(Oue,{})}),p.jsx(dn,{path:"/legal",element:p.jsx(Hk,{})}),p.jsx(dn,{path:"/marketing",element:p.jsx(Eue,{})}),p.jsx(dn,{path:"/support",element:p.jsx(Cue,{})}),p.jsx(dn,{path:"/automation",element:p.jsx(Pue,{})}),p.jsx(dn,{path:"/legal",element:p.jsx(Hk,{})}),p.jsx(dn,{path:"/profile",element:p.jsx(yue,{})})]}),p.jsx(dn,{path:"*",element:p.jsx(uw,{to:"/",replace:!0})})]})}s8.createRoot(document.getElementById("root")).render(p.jsx(P.StrictMode,{children:p.jsx(Rq,{children:p.jsx(kue,{})})}));