From 8a9673b4291447f483b1c163e4f9083627ede502 Mon Sep 17 00:00:00 2001 From: Leonardo Espejo <85245534+Leo-Spj@users.noreply.github.com> Date: Fri, 22 Mar 2024 00:21:53 -0500 Subject: [PATCH] Updates --- assets/index-CcPcv-ve.js | 138 --------------------------------------- assets/index-pWc7IeWw.js | 138 +++++++++++++++++++++++++++++++++++++++ index.html | 2 +- 3 files changed, 139 insertions(+), 139 deletions(-) delete mode 100644 assets/index-CcPcv-ve.js create mode 100644 assets/index-pWc7IeWw.js diff --git a/assets/index-CcPcv-ve.js b/assets/index-CcPcv-ve.js deleted file mode 100644 index c98c640..0000000 --- a/assets/index-CcPcv-ve.js +++ /dev/null @@ -1,138 +0,0 @@ -function HE(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Yu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function me(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Iw={exports:{}},fc={},Dw={exports:{}},ne={};/** - * @license React - * react.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 $u=Symbol.for("react.element"),VE=Symbol.for("react.portal"),qE=Symbol.for("react.fragment"),KE=Symbol.for("react.strict_mode"),GE=Symbol.for("react.profiler"),YE=Symbol.for("react.provider"),XE=Symbol.for("react.context"),QE=Symbol.for("react.forward_ref"),JE=Symbol.for("react.suspense"),ZE=Symbol.for("react.memo"),eA=Symbol.for("react.lazy"),oy=Symbol.iterator;function tA(e){return e===null||typeof e!="object"?null:(e=oy&&e[oy]||e["@@iterator"],typeof e=="function"?e:null)}var Rw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Lw=Object.assign,Bw={};function ba(e,t,n){this.props=e,this.context=t,this.refs=Bw,this.updater=n||Rw}ba.prototype.isReactComponent={};ba.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ba.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Fw(){}Fw.prototype=ba.prototype;function Yp(e,t,n){this.props=e,this.context=t,this.refs=Bw,this.updater=n||Rw}var Xp=Yp.prototype=new Fw;Xp.constructor=Yp;Lw(Xp,ba.prototype);Xp.isPureReactComponent=!0;var uy=Array.isArray,zw=Object.prototype.hasOwnProperty,Qp={current:null},Uw={key:!0,ref:!0,__self:!0,__source:!0};function Ww(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)zw.call(t,r)&&!Uw.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1>>1,V=C[Y];if(0>>1;Yi(Ne,U))sti(mt,Ne)?(C[Y]=mt,C[st]=U,Y=st):(C[Y]=Ne,C[Oe]=U,Y=Oe);else if(sti(mt,U))C[Y]=mt,C[st]=U,Y=st;else break e}}return D}function i(C,D){var U=C.sortIndex-D.sortIndex;return U!==0?U:C.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var l=[],s=[],f=1,c=null,d=3,h=!1,m=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(C){for(var D=n(s);D!==null;){if(D.callback===null)r(s);else if(D.startTime<=C)r(s),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(s)}}function w(C){if(v=!1,g(C),!m)if(n(l)!==null)m=!0,R(x);else{var D=n(s);D!==null&&z(w,D.startTime-C)}}function x(C,D){m=!1,v&&(v=!1,b(P),P=-1),h=!0;var U=d;try{for(g(D),c=n(l);c!==null&&(!(c.expirationTime>D)||C&&!$());){var Y=c.callback;if(typeof Y=="function"){c.callback=null,d=c.priorityLevel;var V=Y(c.expirationTime<=D);D=e.unstable_now(),typeof V=="function"?c.callback=V:c===n(l)&&r(l),g(D)}else r(l);c=n(l)}if(c!==null)var Z=!0;else{var Oe=n(s);Oe!==null&&z(w,Oe.startTime-D),Z=!1}return Z}finally{c=null,d=U,h=!1}}var S=!1,O=null,P=-1,T=5,E=-1;function $(){return!(e.unstable_now()-EC||125Y?(C.sortIndex=U,t(s,C),n(l)===null&&C===n(s)&&(v?(b(P),P=-1):v=!0,z(w,U-Y))):(C.sortIndex=V,t(l,C),m||h||(m=!0,R(x))),C},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(C){var D=d;return function(){var U=d;d=D;try{return C.apply(this,arguments)}finally{d=U}}}})(Kw);qw.exports=Kw;var hA=qw.exports;/** - * @license React - * react-dom.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 Gw=A,kt=hA;function B(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jd=Object.prototype.hasOwnProperty,pA=/^[: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]*$/,sy={},cy={};function vA(e){return jd.call(cy,e)?!0:jd.call(sy,e)?!1:pA.test(e)?cy[e]=!0:(sy[e]=!0,!1)}function mA(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function yA(e,t,n,r){if(t===null||typeof t>"u"||mA(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function vt(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){tt[e]=new vt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];tt[t]=new vt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tt[e]=new vt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tt[e]=new vt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){tt[e]=new vt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tt[e]=new vt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tt[e]=new vt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tt[e]=new vt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tt[e]=new vt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Zp=/[\-:]([a-z])/g;function ev(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Zp,ev);tt[t]=new vt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Zp,ev);tt[t]=new vt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Zp,ev);tt[t]=new vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){tt[e]=new vt(e,1,!1,e.toLowerCase(),null,!1,!1)});tt.xlinkHref=new vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){tt[e]=new vt(e,1,!1,e.toLowerCase(),null,!0,!0)});function tv(e,t,n,r){var i=tt.hasOwnProperty(t)?tt[t]:null;(i!==null?i.type!==0:r||!(2u||i[o]!==a[u]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=u);break}}}finally{Ef=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ro(e):""}function gA(e){switch(e.tag){case 5:return ro(e.type);case 16:return ro("Lazy");case 13:return ro("Suspense");case 19:return ro("SuspenseList");case 0:case 2:case 15:return e=Af(e.type,!1),e;case 11:return e=Af(e.type.render,!1),e;case 1:return e=Af(e.type,!0),e;default:return""}}function Dd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _i:return"Fragment";case Pi:return"Portal";case Md:return"Profiler";case nv:return"StrictMode";case Nd:return"Suspense";case Id:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qw:return(e.displayName||"Context")+".Consumer";case Xw:return(e._context.displayName||"Context")+".Provider";case rv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case iv:return t=e.displayName||null,t!==null?t:Dd(e.type)||"Memo";case tr:t=e._payload,e=e._init;try{return Dd(e(t))}catch{}}return null}function bA(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Dd(t);case 8:return t===nv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Sr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wA(e){var t=Zw(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ju(e){e._valueTracker||(e._valueTracker=wA(e))}function ex(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Rd(e,t){var n=t.checked;return Te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function dy(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Sr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function tx(e,t){t=t.checked,t!=null&&tv(e,"checked",t,!1)}function Ld(e,t){tx(e,t);var n=Sr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Bd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Bd(e,t.type,Sr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hy(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Bd(e,t,n){(t!=="number"||Vl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var io=Array.isArray;function Li(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Zu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _o(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var so={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xA=["Webkit","ms","Moz","O"];Object.keys(so).forEach(function(e){xA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),so[t]=so[e]})});function ax(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||so.hasOwnProperty(e)&&so[e]?(""+t).trim():t+"px"}function ox(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ax(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var SA=Te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ud(e,t){if(t){if(SA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(B(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(B(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(B(61))}if(t.style!=null&&typeof t.style!="object")throw Error(B(62))}}function Wd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hd=null;function av(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vd=null,Bi=null,Fi=null;function my(e){if(e=ju(e)){if(typeof Vd!="function")throw Error(B(280));var t=e.stateNode;t&&(t=mc(t),Vd(e.stateNode,e.type,t))}}function ux(e){Bi?Fi?Fi.push(e):Fi=[e]:Bi=e}function lx(){if(Bi){var e=Bi,t=Fi;if(Fi=Bi=null,my(e),t)for(e=0;e>>=0,e===0?32:31-(MA(e)/NA|0)|0}var el=64,tl=4194304;function ao(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Yl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~i;u!==0?r=ao(u):(a&=o,a!==0&&(r=ao(a)))}else o=n&~i,o!==0?r=ao(o):a!==0&&(r=ao(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Cu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-on(t),e[t]=n}function LA(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=fo),_y=" ",Ey=!1;function Tx(e,t){switch(e){case"keyup":return dT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $x(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ei=!1;function pT(e,t){switch(e){case"compositionend":return $x(t);case"keypress":return t.which!==32?null:(Ey=!0,_y);case"textInput":return e=t.data,e===_y&&Ey?null:e;default:return null}}function vT(e,t){if(Ei)return e==="compositionend"||!hv&&Tx(e,t)?(e=Ex(),Cl=cv=ur=null,Ei=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Cy(n)}}function Mx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nx(){for(var e=window,t=Vl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vl(e.document)}return t}function pv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function PT(e){var t=Nx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Mx(n.ownerDocument.documentElement,n)){if(r!==null&&pv(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=ky(n,a);var o=ky(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ai=null,Qd=null,po=null,Jd=!1;function jy(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jd||Ai==null||Ai!==Vl(r)||(r=Ai,"selectionStart"in r&&pv(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),po&&ko(po,r)||(po=r,r=Jl(Qd,"onSelect"),0Ci||(e.current=ih[Ci],ih[Ci]=null,Ci--)}function ge(e,t){Ci++,ih[Ci]=e.current,e.current=t}var Or={},lt=Er(Or),wt=Er(!1),ni=Or;function Gi(e,t){var n=e.type.contextTypes;if(!n)return Or;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function xt(e){return e=e.childContextTypes,e!=null}function es(){Se(wt),Se(lt)}function By(e,t,n){if(lt.current!==Or)throw Error(B(168));ge(lt,t),ge(wt,n)}function Wx(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(B(108,bA(e)||"Unknown",i));return Te({},n,r)}function ts(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Or,ni=lt.current,ge(lt,e),ge(wt,wt.current),!0}function Fy(e,t,n){var r=e.stateNode;if(!r)throw Error(B(169));n?(e=Wx(e,t,ni),r.__reactInternalMemoizedMergedChildContext=e,Se(wt),Se(lt),ge(lt,e)):Se(wt),ge(wt,n)}var $n=null,yc=!1,zf=!1;function Hx(e){$n===null?$n=[e]:$n.push(e)}function DT(e){yc=!0,Hx(e)}function Ar(){if(!zf&&$n!==null){zf=!0;var e=0,t=fe;try{var n=$n;for(fe=1;e>=o,i-=o,Cn=1<<32-on(t)+i|n<P?(T=O,O=null):T=O.sibling;var E=d(b,O,g[P],w);if(E===null){O===null&&(O=T);break}e&&O&&E.alternate===null&&t(b,O),p=a(E,p,P),S===null?x=E:S.sibling=E,S=E,O=T}if(P===g.length)return n(b,O),Pe&&Rr(b,P),x;if(O===null){for(;PP?(T=O,O=null):T=O.sibling;var $=d(b,O,E.value,w);if($===null){O===null&&(O=T);break}e&&O&&$.alternate===null&&t(b,O),p=a($,p,P),S===null?x=$:S.sibling=$,S=$,O=T}if(E.done)return n(b,O),Pe&&Rr(b,P),x;if(O===null){for(;!E.done;P++,E=g.next())E=c(b,E.value,w),E!==null&&(p=a(E,p,P),S===null?x=E:S.sibling=E,S=E);return Pe&&Rr(b,P),x}for(O=r(b,O);!E.done;P++,E=g.next())E=h(O,b,P,E.value,w),E!==null&&(e&&E.alternate!==null&&O.delete(E.key===null?P:E.key),p=a(E,p,P),S===null?x=E:S.sibling=E,S=E);return e&&O.forEach(function(k){return t(b,k)}),Pe&&Rr(b,P),x}function y(b,p,g,w){if(typeof g=="object"&&g!==null&&g.type===_i&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Qu:e:{for(var x=g.key,S=p;S!==null;){if(S.key===x){if(x=g.type,x===_i){if(S.tag===7){n(b,S.sibling),p=i(S,g.props.children),p.return=b,b=p;break e}}else if(S.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===tr&&Ky(x)===S.type){n(b,S.sibling),p=i(S,g.props),p.ref=za(b,S,g),p.return=b,b=p;break e}n(b,S);break}else t(b,S);S=S.sibling}g.type===_i?(p=Jr(g.props.children,b.mode,w,g.key),p.return=b,b=p):(w=Ll(g.type,g.key,g.props,null,b.mode,w),w.ref=za(b,p,g),w.return=b,b=w)}return o(b);case Pi:e:{for(S=g.key;p!==null;){if(p.key===S)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(b,p.sibling),p=i(p,g.children||[]),p.return=b,b=p;break e}else{n(b,p);break}else t(b,p);p=p.sibling}p=Yf(g,b.mode,w),p.return=b,b=p}return o(b);case tr:return S=g._init,y(b,p,S(g._payload),w)}if(io(g))return m(b,p,g,w);if(Da(g))return v(b,p,g,w);ll(b,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(b,p.sibling),p=i(p,g),p.return=b,b=p):(n(b,p),p=Gf(g,b.mode,w),p.return=b,b=p),o(b)):n(b,p)}return y}var Xi=Jx(!0),Zx=Jx(!1),Mu={},bn=Er(Mu),Io=Er(Mu),Do=Er(Mu);function qr(e){if(e===Mu)throw Error(B(174));return e}function Ov(e,t){switch(ge(Do,t),ge(Io,e),ge(bn,Mu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zd(t,e)}Se(bn),ge(bn,t)}function Qi(){Se(bn),Se(Io),Se(Do)}function eS(e){qr(Do.current);var t=qr(bn.current),n=zd(t,e.type);t!==n&&(ge(Io,e),ge(bn,n))}function Pv(e){Io.current===e&&(Se(bn),Se(Io))}var Ee=Er(0);function us(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Uf=[];function _v(){for(var e=0;en?n:4,e(!0);var r=Wf.transition;Wf.transition={};try{e(!1),t()}finally{fe=n,Wf.transition=r}}function mS(){return Gt().memoizedState}function FT(e,t,n){var r=yr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yS(e))gS(t,n);else if(n=Gx(e,t,n,r),n!==null){var i=ht();un(n,e,r,i),bS(n,t,r)}}function zT(e,t,n){var r=yr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yS(e))gS(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,u=a(o,n);if(i.hasEagerState=!0,i.eagerState=u,sn(u,o)){var l=t.interleaved;l===null?(i.next=i,xv(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Gx(e,t,i,r),n!==null&&(i=ht(),un(n,e,r,i),bS(n,t,r))}}function yS(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function gS(e,t){vo=ls=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bS(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,uv(e,n)}}var ss={readContext:Kt,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useInsertionEffect:nt,useLayoutEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useMutableSource:nt,useSyncExternalStore:nt,useId:nt,unstable_isNewReconciler:!1},UT={readContext:Kt,useCallback:function(e,t){return pn().memoizedState=[e,t===void 0?null:t],e},useContext:Kt,useEffect:Yy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Nl(4194308,4,fS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Nl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Nl(4,2,e,t)},useMemo:function(e,t){var n=pn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=FT.bind(null,Ae,e),[r.memoizedState,e]},useRef:function(e){var t=pn();return e={current:e},t.memoizedState=e},useState:Gy,useDebugValue:Cv,useDeferredValue:function(e){return pn().memoizedState=e},useTransition:function(){var e=Gy(!1),t=e[0];return e=BT.bind(null,e[1]),pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ae,i=pn();if(Pe){if(n===void 0)throw Error(B(407));n=n()}else{if(n=t(),Ge===null)throw Error(B(349));ii&30||rS(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Yy(aS.bind(null,r,a,e),[e]),r.flags|=2048,Bo(9,iS.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=pn(),t=Ge.identifierPrefix;if(Pe){var n=kn,r=Cn;n=(r&~(1<<32-on(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ro++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[vn]=t,e[No]=r,TS(e,t,!1,!1),t.stateNode=e;e:{switch(o=Wd(n,r),n){case"dialog":be("cancel",e),be("close",e),i=r;break;case"iframe":case"object":case"embed":be("load",e),i=r;break;case"video":case"audio":for(i=0;iZi&&(t.flags|=128,r=!0,Ua(a,!1),t.lanes=4194304)}else{if(!r)if(e=us(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ua(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Pe)return rt(t),null}else 2*je()-a.renderingStartTime>Zi&&n!==1073741824&&(t.flags|=128,r=!0,Ua(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=je(),t.sibling=null,n=Ee.current,ge(Ee,r?n&1|2:n&1),t):(rt(t),null);case 22:case 23:return Dv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Et&1073741824&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),null;case 24:return null;case 25:return null}throw Error(B(156,t.tag))}function XT(e,t){switch(mv(t),t.tag){case 1:return xt(t.type)&&es(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qi(),Se(wt),Se(lt),_v(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pv(t),null;case 13:if(Se(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(B(340));Yi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(Ee),null;case 4:return Qi(),null;case 10:return wv(t.type._context),null;case 22:case 23:return Dv(),null;case 24:return null;default:return null}}var cl=!1,at=!1,QT=typeof WeakSet=="function"?WeakSet:Set,K=null;function Ni(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){$e(e,t,r)}else n.current=null}function mh(e,t,n){try{n()}catch(r){$e(e,t,r)}}var ig=!1;function JT(e,t){if(Zd=Xl,e=Nx(),pv(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,u=-1,l=-1,s=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==n||i!==0&&c.nodeType!==3||(u=o+i),c!==a||r!==0&&c.nodeType!==3||(l=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===n&&++s===i&&(u=o),d===a&&++f===r&&(l=o),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}n=u===-1||l===-1?null:{start:u,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(eh={focusedElem:e,selectionRange:n},Xl=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,y=m.memoizedState,b=t.stateNode,p=b.getSnapshotBeforeUpdate(t.elementType===t.type?v:Zt(t.type,v),y);b.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(B(163))}}catch(w){$e(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return m=ig,ig=!1,m}function mo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&mh(t,n,a)}i=i.next}while(i!==r)}}function wc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function yh(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function kS(e){var t=e.alternate;t!==null&&(e.alternate=null,kS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vn],delete t[No],delete t[rh],delete t[NT],delete t[IT])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function jS(e){return e.tag===5||e.tag===3||e.tag===4}function ag(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jS(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function gh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Zl));else if(r!==4&&(e=e.child,e!==null))for(gh(e,t,n),e=e.sibling;e!==null;)gh(e,t,n),e=e.sibling}function bh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bh(e,t,n),e=e.sibling;e!==null;)bh(e,t,n),e=e.sibling}var Je=null,en=!1;function Jn(e,t,n){for(n=n.child;n!==null;)MS(e,t,n),n=n.sibling}function MS(e,t,n){if(gn&&typeof gn.onCommitFiberUnmount=="function")try{gn.onCommitFiberUnmount(dc,n)}catch{}switch(n.tag){case 5:at||Ni(n,t);case 6:var r=Je,i=en;Je=null,Jn(e,t,n),Je=r,en=i,Je!==null&&(en?(e=Je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Je.removeChild(n.stateNode));break;case 18:Je!==null&&(en?(e=Je,n=n.stateNode,e.nodeType===8?Ff(e.parentNode,n):e.nodeType===1&&Ff(e,n),$o(e)):Ff(Je,n.stateNode));break;case 4:r=Je,i=en,Je=n.stateNode.containerInfo,en=!0,Jn(e,t,n),Je=r,en=i;break;case 0:case 11:case 14:case 15:if(!at&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&mh(n,t,o),i=i.next}while(i!==r)}Jn(e,t,n);break;case 1:if(!at&&(Ni(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){$e(n,t,u)}Jn(e,t,n);break;case 21:Jn(e,t,n);break;case 22:n.mode&1?(at=(r=at)||n.memoizedState!==null,Jn(e,t,n),at=r):Jn(e,t,n);break;default:Jn(e,t,n)}}function og(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new QT),t.forEach(function(r){var i=u$.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Qt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=je()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*e$(r/1960))-r,10e?16:e,lr===null)var r=!1;else{if(e=lr,lr=null,ds=0,oe&6)throw Error(B(331));var i=oe;for(oe|=4,K=e.current;K!==null;){var a=K,o=a.child;if(K.flags&16){var u=a.deletions;if(u!==null){for(var l=0;lje()-Nv?Qr(e,0):Mv|=n),St(e,t)}function zS(e,t){t===0&&(e.mode&1?(t=tl,tl<<=1,!(tl&130023424)&&(tl=4194304)):t=1);var n=ht();e=Un(e,t),e!==null&&(Cu(e,t,n),St(e,n))}function o$(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zS(e,n)}function u$(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(B(314))}r!==null&&r.delete(t),zS(e,n)}var US;US=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||wt.current)gt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return gt=!1,GT(e,t,n);gt=!!(e.flags&131072)}else gt=!1,Pe&&t.flags&1048576&&Vx(t,rs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Il(e,t),e=t.pendingProps;var i=Gi(t,lt.current);Ui(t,n),i=Av(null,t,r,e,i,n);var a=Tv();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xt(r)?(a=!0,ts(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Sv(t),i.updater=gc,t.stateNode=i,i._reactInternals=t,sh(t,r,e,n),t=dh(null,t,r,!0,a,n)):(t.tag=0,Pe&&a&&vv(t),ft(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Il(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=s$(r),e=Zt(r,e),i){case 0:t=fh(null,t,r,e,n);break e;case 1:t=tg(null,t,r,e,n);break e;case 11:t=Zy(null,t,r,e,n);break e;case 14:t=eg(null,t,r,Zt(r.type,e),n);break e}throw Error(B(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zt(r,i),fh(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zt(r,i),tg(e,t,r,i,n);case 3:e:{if(_S(t),e===null)throw Error(B(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Yx(e,t),os(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Ji(Error(B(423)),t),t=ng(e,t,r,n,i);break e}else if(r!==i){i=Ji(Error(B(424)),t),t=ng(e,t,r,n,i);break e}else for($t=pr(t.stateNode.containerInfo.firstChild),Ct=t,Pe=!0,nn=null,n=Zx(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yi(),r===i){t=Wn(e,t,n);break e}ft(e,t,r,n)}t=t.child}return t;case 5:return eS(t),e===null&&oh(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,th(r,i)?o=null:a!==null&&th(r,a)&&(t.flags|=32),PS(e,t),ft(e,t,o,n),t.child;case 6:return e===null&&oh(t),null;case 13:return ES(e,t,n);case 4:return Ov(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xi(t,null,r,n):ft(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zt(r,i),Zy(e,t,r,i,n);case 7:return ft(e,t,t.pendingProps,n),t.child;case 8:return ft(e,t,t.pendingProps.children,n),t.child;case 12:return ft(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,ge(is,r._currentValue),r._currentValue=o,a!==null)if(sn(a.value,o)){if(a.children===i.children&&!wt.current){t=Wn(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){o=a.child;for(var l=u.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=In(-1,n&-n),l.tag=2;var s=a.updateQueue;if(s!==null){s=s.shared;var f=s.pending;f===null?l.next=l:(l.next=f.next,f.next=l),s.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),uh(a.return,n,t),u.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(B(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),uh(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}ft(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ui(t,n),i=Kt(i),r=r(i),t.flags|=1,ft(e,t,r,n),t.child;case 14:return r=t.type,i=Zt(r,t.pendingProps),i=Zt(r.type,i),eg(e,t,r,i,n);case 15:return SS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zt(r,i),Il(e,t),t.tag=1,xt(r)?(e=!0,ts(t)):e=!1,Ui(t,n),Qx(t,r,i),sh(t,r,i,n),dh(null,t,r,!0,e,n);case 19:return AS(e,t,n);case 22:return OS(e,t,n)}throw Error(B(156,t.tag))};function WS(e,t){return vx(e,t)}function l$(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,n,r){return new l$(e,t,n,r)}function Lv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function s$(e){if(typeof e=="function")return Lv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rv)return 11;if(e===iv)return 14}return 2}function gr(e,t){var n=e.alternate;return n===null?(n=Ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ll(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")Lv(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case _i:return Jr(n.children,i,a,t);case nv:o=8,i|=8;break;case Md:return e=Ut(12,n,t,i|2),e.elementType=Md,e.lanes=a,e;case Nd:return e=Ut(13,n,t,i),e.elementType=Nd,e.lanes=a,e;case Id:return e=Ut(19,n,t,i),e.elementType=Id,e.lanes=a,e;case Jw:return Sc(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xw:o=10;break e;case Qw:o=9;break e;case rv:o=11;break e;case iv:o=14;break e;case tr:o=16,r=null;break e}throw Error(B(130,e==null?e:typeof e,""))}return t=Ut(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Jr(e,t,n,r){return e=Ut(7,e,r,t),e.lanes=n,e}function Sc(e,t,n,r){return e=Ut(22,e,r,t),e.elementType=Jw,e.lanes=n,e.stateNode={isHidden:!1},e}function Gf(e,t,n){return e=Ut(6,e,null,t),e.lanes=n,e}function Yf(e,t,n){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function c$(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=$f(0),this.expirationTimes=$f(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$f(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Bv(e,t,n,r,i,a,o,u,l){return e=new c$(e,t,n,u,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Ut(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sv(a),e}function f$(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(KS)}catch(e){console.error(e)}}KS(),Vw.exports=jt;var m$=Vw.exports,pg=m$;kd.createRoot=pg.createRoot,kd.hydrateRoot=pg.hydrateRoot;/** - * @remix-run/router v1.15.3 - * - * 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 - */function zo(){return zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Wv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function g$(){return Math.random().toString(36).substr(2,8)}function mg(e,t){return{usr:e.state,key:e.key,idx:t}}function Ph(e,t,n,r){return n===void 0&&(n=null),zo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?hi(t):t,{state:n,key:t&&t.key||r||g$()})}function vs(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function hi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function b$(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,u=sr.Pop,l=null,s=f();s==null&&(s=0,o.replaceState(zo({},o.state,{idx:s}),""));function f(){return(o.state||{idx:null}).idx}function c(){u=sr.Pop;let y=f(),b=y==null?null:y-s;s=y,l&&l({action:u,location:v.location,delta:b})}function d(y,b){u=sr.Push;let p=Ph(v.location,y,b);n&&n(p,y),s=f()+1;let g=mg(p,s),w=v.createHref(p);try{o.pushState(g,"",w)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;i.location.assign(w)}a&&l&&l({action:u,location:v.location,delta:1})}function h(y,b){u=sr.Replace;let p=Ph(v.location,y,b);n&&n(p,y),s=f();let g=mg(p,s),w=v.createHref(p);o.replaceState(g,"",w),a&&l&&l({action:u,location:v.location,delta:0})}function m(y){let b=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof y=="string"?y:vs(y);return p=p.replace(/ $/,"%20"),Ce(b,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,b)}let v={get action(){return u},get location(){return e(i,o)},listen(y){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(vg,c),l=y,()=>{i.removeEventListener(vg,c),l=null}},createHref(y){return t(i,y)},createURL:m,encodeLocation(y){let b=m(y);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:d,replace:h,go(y){return o.go(y)}};return v}var yg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(yg||(yg={}));function w$(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?hi(t):t,i=ea(r.pathname||"/",n);if(i==null)return null;let a=GS(e);x$(a);let o=null;for(let u=0;o==null&&u{let l={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(Ce(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let s=br([r,l.relativePath]),f=n.concat(l);a.children&&a.children.length>0&&(Ce(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),GS(a.children,t,f,s)),!(a.path==null&&!a.index)&&t.push({path:s,score:T$(s,a.index),routesMeta:f})};return e.forEach((a,o)=>{var u;if(a.path===""||!((u=a.path)!=null&&u.includes("?")))i(a,o);else for(let l of YS(a.path))i(a,o,l)}),t}function YS(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=YS(r.join("/")),u=[];return u.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&u.push(...o),u.map(l=>e.startsWith("/")&&l===""?"/":l)}function x$(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:$$(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const S$=/^:[\w-]+$/,O$=3,P$=2,_$=1,E$=10,A$=-2,gg=e=>e==="*";function T$(e,t){let n=e.split("/"),r=n.length;return n.some(gg)&&(r+=A$),t&&(r+=P$),n.filter(i=>!gg(i)).reduce((i,a)=>i+(S$.test(a)?O$:a===""?_$:E$),r)}function $$(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function C$(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let o=0;o{let{paramName:d,isOptional:h}=f;if(d==="*"){let v=u[c]||"";o=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const m=u[c];return h&&!m?s[d]=void 0:s[d]=(m||"").replace(/%2F/g,"/"),s},{}),pathname:a,pathnameBase:o,pattern:e}}function k$(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Wv(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,u,l)=>(r.push({paramName:u,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function j$(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Wv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ea(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 M$(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?hi(e):e;return{pathname:n?n.startsWith("/")?n:N$(n,t):t,search:R$(r),hash:L$(i)}}function N$(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Xf(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 and the router will parse it for you.'}function I$(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function XS(e,t){let n=I$(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function QS(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=hi(e):(i=zo({},e),Ce(!i.pathname||!i.pathname.includes("?"),Xf("?","pathname","search",i)),Ce(!i.pathname||!i.pathname.includes("#"),Xf("#","pathname","hash",i)),Ce(!i.search||!i.search.includes("#"),Xf("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,u;if(o==null)u=n;else{let c=t.length-1;if(!r&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),c-=1;i.pathname=d.join("/")}u=c>=0?t[c]:"/"}let l=M$(i,u),s=o&&o!=="/"&&o.endsWith("/"),f=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(s||f)&&(l.pathname+="/"),l}const br=e=>e.join("/").replace(/\/\/+/g,"/"),D$=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),R$=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,L$=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function B$(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const JS=["post","put","patch","delete"];new Set(JS);const F$=["get",...JS];new Set(F$);/** - * React Router v6.22.3 - * - * 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 - */function Uo(){return Uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current=!0}),A.useCallback(function(s,f){if(f===void 0&&(f={}),!u.current)return;if(typeof s=="number"){r.go(s);return}let c=QS(s,JSON.parse(o),a,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:br([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,o,a,e])}const H$=A.createContext(null);function V$(e){let t=A.useContext(Gn).outlet;return t&&A.createElement(H$.Provider,{value:e},t)}function q$(){let{matches:e}=A.useContext(Gn),t=e[e.length-1];return t?t.params:{}}function $c(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=A.useContext(Tr),{matches:i}=A.useContext(Gn),{pathname:a}=Iu(),o=JSON.stringify(XS(i,r.v7_relativeSplatPath));return A.useMemo(()=>QS(e,JSON.parse(o),a,n==="path"),[e,o,a,n])}function K$(e,t){return G$(e,t)}function G$(e,t,n,r){Nu()||Ce(!1);let{navigator:i}=A.useContext(Tr),{matches:a}=A.useContext(Gn),o=a[a.length-1],u=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let s=Iu(),f;if(t){var c;let y=typeof t=="string"?hi(t):t;l==="/"||(c=y.pathname)!=null&&c.startsWith(l)||Ce(!1),f=y}else f=s;let d=f.pathname||"/",h=d;if(l!=="/"){let y=l.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(y.length).join("/")}let m=w$(e,{pathname:h}),v=Z$(m&&m.map(y=>Object.assign({},y,{params:Object.assign({},u,y.params),pathname:br([l,i.encodeLocation?i.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:br([l,i.encodeLocation?i.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),a,n,r);return t&&v?A.createElement(Tc.Provider,{value:{location:Uo({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:sr.Pop}},v):v}function Y$(){let e=rC(),t=B$(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},t),n?A.createElement("pre",{style:i},n):null,null)}const X$=A.createElement(Y$,null);class Q$ extends A.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?A.createElement(Gn.Provider,{value:this.props.routeContext},A.createElement(eO.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function J$(e){let{routeContext:t,match:n,children:r}=e,i=A.useContext(Ac);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),A.createElement(Gn.Provider,{value:t},r)}function Z$(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let o=e,u=(i=n)==null?void 0:i.errors;if(u!=null){let f=o.findIndex(c=>c.route.id&&(u==null?void 0:u[c.route.id]));f>=0||Ce(!1),o=o.slice(0,Math.min(o.length,f+1))}let l=!1,s=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f=0?o=o.slice(0,s+1):o=[o[0]];break}}}return o.reduceRight((f,c,d)=>{let h,m=!1,v=null,y=null;n&&(h=u&&c.route.id?u[c.route.id]:void 0,v=c.route.errorElement||X$,l&&(s<0&&d===0?(aC("route-fallback",!1),m=!0,y=null):s===d&&(m=!0,y=c.route.hydrateFallbackElement||null)));let b=t.concat(o.slice(0,d+1)),p=()=>{let g;return h?g=v:m?g=y:c.route.Component?g=A.createElement(c.route.Component,null):c.route.element?g=c.route.element:g=f,A.createElement(J$,{match:c,routeContext:{outlet:f,matches:b,isDataRoute:n!=null},children:g})};return n&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?A.createElement(Q$,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:p(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):p()},null)}var nO=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(nO||{}),ms=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ms||{});function eC(e){let t=A.useContext(Ac);return t||Ce(!1),t}function tC(e){let t=A.useContext(ZS);return t||Ce(!1),t}function nC(e){let t=A.useContext(Gn);return t||Ce(!1),t}function rO(e){let t=nC(),n=t.matches[t.matches.length-1];return n.route.id||Ce(!1),n.route.id}function rC(){var e;let t=A.useContext(eO),n=tC(ms.UseRouteError),r=rO(ms.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function iC(){let{router:e}=eC(nO.UseNavigateStable),t=rO(ms.UseNavigateStable),n=A.useRef(!1);return tO(()=>{n.current=!0}),A.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Uo({fromRouteId:t},a)))},[e,t])}const bg={};function aC(e,t,n){!t&&!bg[e]&&(bg[e]=!0)}function oC(e){return V$(e.context)}function Br(e){Ce(!1)}function uC(e){let{basename:t="/",children:n=null,location:r,navigationType:i=sr.Pop,navigator:a,static:o=!1,future:u}=e;Nu()&&Ce(!1);let l=t.replace(/^\/*/,"/"),s=A.useMemo(()=>({basename:l,navigator:a,static:o,future:Uo({v7_relativeSplatPath:!1},u)}),[l,u,a,o]);typeof r=="string"&&(r=hi(r));let{pathname:f="/",search:c="",hash:d="",state:h=null,key:m="default"}=r,v=A.useMemo(()=>{let y=ea(f,l);return y==null?null:{location:{pathname:y,search:c,hash:d,state:h,key:m},navigationType:i}},[l,f,c,d,h,m,i]);return v==null?null:A.createElement(Tr.Provider,{value:s},A.createElement(Tc.Provider,{children:n,value:v}))}function lC(e){let{children:t,location:n}=e;return K$(Eh(t),n)}new Promise(()=>{});function Eh(e,t){t===void 0&&(t=[]);let n=[];return A.Children.forEach(e,(r,i)=>{if(!A.isValidElement(r))return;let a=[...t,i];if(r.type===A.Fragment){n.push.apply(n,Eh(r.props.children,a));return}r.type!==Br&&Ce(!1),!r.props.index||!r.props.children||Ce(!1);let o={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Eh(r.props.children,a)),n.push(o)}),n}/** - * React Router DOM v6.22.3 - * - * 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 - */function ys(){return ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function sC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function cC(e,t){return e.button===0&&(!t||t==="_self")&&!sC(e)}const fC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],dC=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],hC="6";try{window.__reactRouterVersion=hC}catch{}const pC=A.createContext({isTransitioning:!1}),vC="startTransition",wg=oA[vC];function mC(e){let{basename:t,children:n,future:r,window:i}=e,a=A.useRef();a.current==null&&(a.current=y$({window:i,v5Compat:!0}));let o=a.current,[u,l]=A.useState({action:o.action,location:o.location}),{v7_startTransition:s}=r||{},f=A.useCallback(c=>{s&&wg?wg(()=>l(c)):l(c)},[l,s]);return A.useLayoutEffect(()=>o.listen(f),[o,f]),A.createElement(uC,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:o,future:r})}const yC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hv=A.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:o,state:u,target:l,to:s,preventScrollReset:f,unstable_viewTransition:c}=t,d=iO(t,fC),{basename:h}=A.useContext(Tr),m,v=!1;if(typeof s=="string"&&gC.test(s)&&(m=s,yC))try{let g=new URL(window.location.href),w=s.startsWith("//")?new URL(g.protocol+s):new URL(s),x=ea(w.pathname,h);w.origin===g.origin&&x!=null?s=x+w.search+w.hash:v=!0}catch{}let y=z$(s,{relative:i}),b=wC(s,{replace:o,state:u,target:l,preventScrollReset:f,relative:i,unstable_viewTransition:c});function p(g){r&&r(g),g.defaultPrevented||b(g)}return A.createElement("a",ys({},d,{href:m||y,onClick:v||a?r:p,ref:n,target:l}))}),Bl=A.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:a="",end:o=!1,style:u,to:l,unstable_viewTransition:s,children:f}=t,c=iO(t,dC),d=$c(l,{relative:c.relative}),h=Iu(),m=A.useContext(ZS),{navigator:v,basename:y}=A.useContext(Tr),b=m!=null&&xC(d)&&s===!0,p=v.encodeLocation?v.encodeLocation(d).pathname:d.pathname,g=h.pathname,w=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;i||(g=g.toLowerCase(),w=w?w.toLowerCase():null,p=p.toLowerCase()),w&&y&&(w=ea(w,y)||w);const x=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let S=g===p||!o&&g.startsWith(p)&&g.charAt(x)==="/",O=w!=null&&(w===p||!o&&w.startsWith(p)&&w.charAt(p.length)==="/"),P={isActive:S,isPending:O,isTransitioning:b},T=S?r:void 0,E;typeof a=="function"?E=a(P):E=[a,S?"active":null,O?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let $=typeof u=="function"?u(P):u;return A.createElement(Hv,ys({},c,{"aria-current":T,className:E,ref:n,style:$,to:l,unstable_viewTransition:s}),typeof f=="function"?f(P):f)});var Ah;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ah||(Ah={}));var xg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xg||(xg={}));function bC(e){let t=A.useContext(Ac);return t||Ce(!1),t}function wC(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,unstable_viewTransition:u}=t===void 0?{}:t,l=U$(),s=Iu(),f=$c(e,{relative:o});return A.useCallback(c=>{if(cC(c,n)){c.preventDefault();let d=r!==void 0?r:vs(s)===vs(f);l(e,{replace:d,state:i,preventScrollReset:a,relative:o,unstable_viewTransition:u})}},[s,l,f,r,i,n,e,a,o,u])}function xC(e,t){t===void 0&&(t={});let n=A.useContext(pC);n==null&&Ce(!1);let{basename:r}=bC(Ah.useViewTransitionState),i=$c(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=ea(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=ea(n.nextLocation.pathname,r)||n.nextLocation.pathname;return _h(i.pathname,o)!=null||_h(i.pathname,a)!=null}function SC(){return W.jsx("nav",{className:"main-menu",children:W.jsxs("ul",{children:[W.jsx("li",{children:W.jsx(Bl,{to:"/",children:"Inicio"})}),W.jsx("li",{children:W.jsx(Bl,{to:"/criptomonedas",children:"Criptomonedas"})}),W.jsx("li",{children:W.jsx(Bl,{to:"/nosotros",children:"Nosotros"})})]})})}function Sg(){return W.jsxs(W.Fragment,{children:[W.jsx(SC,{}),W.jsx(oC,{})," "]})}function OC(){return W.jsxs("div",{className:"home-container",children:[W.jsx("h1",{className:"title",children:"Bienvenido a CriptoApp"}),W.jsx("p",{className:"subtitle",children:"Cónoce las 100 criptos más usadas"}),W.jsx(Hv,{to:"/criptomonedas",className:"link",children:"Ver criptomonedas"})]})}function aO(e,t){return function(){return e.apply(t,arguments)}}const{toString:PC}=Object.prototype,{getPrototypeOf:Vv}=Object,Cc=(e=>t=>{const n=PC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pn=e=>(e=e.toLowerCase(),t=>Cc(t)===e),kc=e=>t=>typeof t===e,{isArray:Sa}=Array,Wo=kc("undefined");function _C(e){return e!==null&&!Wo(e)&&e.constructor!==null&&!Wo(e.constructor)&&Vt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const oO=Pn("ArrayBuffer");function EC(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&oO(e.buffer),t}const AC=kc("string"),Vt=kc("function"),uO=kc("number"),jc=e=>e!==null&&typeof e=="object",TC=e=>e===!0||e===!1,Fl=e=>{if(Cc(e)!=="object")return!1;const t=Vv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$C=Pn("Date"),CC=Pn("File"),kC=Pn("Blob"),jC=Pn("FileList"),MC=e=>jc(e)&&Vt(e.pipe),NC=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Vt(e.append)&&((t=Cc(e))==="formdata"||t==="object"&&Vt(e.toString)&&e.toString()==="[object FormData]"))},IC=Pn("URLSearchParams"),DC=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Du(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Sa(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const sO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,cO=e=>!Wo(e)&&e!==sO;function Th(){const{caseless:e}=cO(this)&&this||{},t={},n=(r,i)=>{const a=e&&lO(t,i)||i;Fl(t[a])&&Fl(r)?t[a]=Th(t[a],r):Fl(r)?t[a]=Th({},r):Sa(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r(Du(t,(i,a)=>{n&&Vt(i)?e[a]=aO(i,n):e[a]=i},{allOwnKeys:r}),e),LC=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),BC=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},FC=(e,t,n,r)=>{let i,a,o;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=n!==!1&&Vv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},zC=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},UC=e=>{if(!e)return null;if(Sa(e))return e;let t=e.length;if(!uO(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},WC=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Vv(Uint8Array)),HC=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},VC=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},qC=Pn("HTMLFormElement"),KC=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Og=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),GC=Pn("RegExp"),fO=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Du(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},YC=e=>{fO(e,(t,n)=>{if(Vt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Vt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},XC=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return Sa(e)?r(e):r(String(e).split(t)),n},QC=()=>{},JC=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Qf="abcdefghijklmnopqrstuvwxyz",Pg="0123456789",dO={DIGIT:Pg,ALPHA:Qf,ALPHA_DIGIT:Qf+Qf.toUpperCase()+Pg},ZC=(e=16,t=dO.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function ek(e){return!!(e&&Vt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const tk=e=>{const t=new Array(10),n=(r,i)=>{if(jc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=Sa(r)?[]:{};return Du(r,(o,u)=>{const l=n(o,i+1);!Wo(l)&&(a[u]=l)}),t[i]=void 0,a}}return r};return n(e,0)},nk=Pn("AsyncFunction"),rk=e=>e&&(jc(e)||Vt(e))&&Vt(e.then)&&Vt(e.catch),M={isArray:Sa,isArrayBuffer:oO,isBuffer:_C,isFormData:NC,isArrayBufferView:EC,isString:AC,isNumber:uO,isBoolean:TC,isObject:jc,isPlainObject:Fl,isUndefined:Wo,isDate:$C,isFile:CC,isBlob:kC,isRegExp:GC,isFunction:Vt,isStream:MC,isURLSearchParams:IC,isTypedArray:WC,isFileList:jC,forEach:Du,merge:Th,extend:RC,trim:DC,stripBOM:LC,inherits:BC,toFlatObject:FC,kindOf:Cc,kindOfTest:Pn,endsWith:zC,toArray:UC,forEachEntry:HC,matchAll:VC,isHTMLForm:qC,hasOwnProperty:Og,hasOwnProp:Og,reduceDescriptors:fO,freezeMethods:YC,toObjectSet:XC,toCamelCase:KC,noop:QC,toFiniteNumber:JC,findKey:lO,global:sO,isContextDefined:cO,ALPHABET:dO,generateString:ZC,isSpecCompliantForm:ek,toJSONObject:tk,isAsyncFn:nk,isThenable:rk};function ie(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}M.inherits(ie,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const hO=ie.prototype,pO={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pO[e]={value:e}});Object.defineProperties(ie,pO);Object.defineProperty(hO,"isAxiosError",{value:!0});ie.from=(e,t,n,r,i,a)=>{const o=Object.create(hO);return M.toFlatObject(e,o,function(l){return l!==Error.prototype},u=>u!=="isAxiosError"),ie.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const ik=null;function $h(e){return M.isPlainObject(e)||M.isArray(e)}function vO(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function _g(e,t,n){return e?e.concat(t).map(function(i,a){return i=vO(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function ak(e){return M.isArray(e)&&!e.some($h)}const ok=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function Mc(e,t,n){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=M.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,y){return!M.isUndefined(y[v])});const r=n.metaTokens,i=n.visitor||f,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(t);if(!M.isFunction(i))throw new TypeError("visitor must be a function");function s(m){if(m===null)return"";if(M.isDate(m))return m.toISOString();if(!l&&M.isBlob(m))throw new ie("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(m)||M.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,v,y){let b=m;if(m&&!y&&typeof m=="object"){if(M.endsWith(v,"{}"))v=r?v:v.slice(0,-2),m=JSON.stringify(m);else if(M.isArray(m)&&ak(m)||(M.isFileList(m)||M.endsWith(v,"[]"))&&(b=M.toArray(m)))return v=vO(v),b.forEach(function(g,w){!(M.isUndefined(g)||g===null)&&t.append(o===!0?_g([v],w,a):o===null?v:v+"[]",s(g))}),!1}return $h(m)?!0:(t.append(_g(y,v,a),s(m)),!1)}const c=[],d=Object.assign(ok,{defaultVisitor:f,convertValue:s,isVisitable:$h});function h(m,v){if(!M.isUndefined(m)){if(c.indexOf(m)!==-1)throw Error("Circular reference detected in "+v.join("."));c.push(m),M.forEach(m,function(b,p){(!(M.isUndefined(b)||b===null)&&i.call(t,b,M.isString(p)?p.trim():p,v,d))===!0&&h(b,v?v.concat(p):[p])}),c.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Eg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function qv(e,t){this._pairs=[],e&&Mc(e,this,t)}const mO=qv.prototype;mO.append=function(t,n){this._pairs.push([t,n])};mO.toString=function(t){const n=t?function(r){return t.call(this,r,Eg)}:Eg;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function uk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yO(e,t,n){if(!t)return e;const r=n&&n.encode||uk,i=n&&n.serialize;let a;if(i?a=i(t,n):a=M.isURLSearchParams(t)?t.toString():new qv(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Ag{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){M.forEach(this.handlers,function(r){r!==null&&t(r)})}}const gO={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lk=typeof URLSearchParams<"u"?URLSearchParams:qv,sk=typeof FormData<"u"?FormData:null,ck=typeof Blob<"u"?Blob:null,fk={isBrowser:!0,classes:{URLSearchParams:lk,FormData:sk,Blob:ck},protocols:["http","https","file","blob","url","data"]},bO=typeof window<"u"&&typeof document<"u",dk=(e=>bO&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),hk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",pk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bO,hasStandardBrowserEnv:dk,hasStandardBrowserWebWorkerEnv:hk},Symbol.toStringTag,{value:"Module"})),mn={...pk,...fk};function vk(e,t){return Mc(e,new mn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return mn.isNode&&M.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function mk(e){return M.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function yk(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return o=!o&&M.isArray(i)?i.length:o,l?(M.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!u):((!i[o]||!M.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&M.isArray(i[o])&&(i[o]=yk(i[o])),!u)}if(M.isFormData(e)&&M.isFunction(e.entries)){const n={};return M.forEachEntry(e,(r,i)=>{t(mk(r),i,n,0)}),n}return null}function gk(e,t,n){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Kv={transitional:gO,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=M.isObject(t);if(a&&M.isHTMLForm(t)&&(t=new FormData(t)),M.isFormData(t))return i?JSON.stringify(wO(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return vk(t,this.formSerializer).toString();if((u=M.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Mc(u?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),gk(t)):t}],transformResponse:[function(t){const n=this.transitional||Kv.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&M.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(u){if(o)throw u.name==="SyntaxError"?ie.from(u,ie.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mn.classes.FormData,Blob:mn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],e=>{Kv.headers[e]={}});const Gv=Kv,bk=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),wk=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&bk[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Tg=Symbol("internals");function Ha(e){return e&&String(e).trim().toLowerCase()}function zl(e){return e===!1||e==null?e:M.isArray(e)?e.map(zl):String(e)}function xk(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Sk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Jf(e,t,n,r,i){if(M.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!M.isString(t)){if(M.isString(r))return t.indexOf(r)!==-1;if(M.isRegExp(r))return r.test(t)}}function Ok(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Pk(e,t){const n=M.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}class Nc{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(u,l,s){const f=Ha(l);if(!f)throw new Error("header name must be a non-empty string");const c=M.findKey(i,f);(!c||i[c]===void 0||s===!0||s===void 0&&i[c]!==!1)&&(i[c||l]=zl(u))}const o=(u,l)=>M.forEach(u,(s,f)=>a(s,f,l));return M.isPlainObject(t)||t instanceof this.constructor?o(t,n):M.isString(t)&&(t=t.trim())&&!Sk(t)?o(wk(t),n):t!=null&&a(n,t,r),this}get(t,n){if(t=Ha(t),t){const r=M.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return xk(i);if(M.isFunction(n))return n.call(this,i,r);if(M.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ha(t),t){const r=M.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Jf(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=Ha(o),o){const u=M.findKey(r,o);u&&(!n||Jf(r,r[u],u,n))&&(delete r[u],i=!0)}}return M.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||Jf(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return M.forEach(this,(i,a)=>{const o=M.findKey(r,a);if(o){n[o]=zl(i),delete n[a];return}const u=t?Ok(a):String(a).trim();u!==a&&delete n[a],n[u]=zl(i),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return M.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&M.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Tg]=this[Tg]={accessors:{}}).accessors,i=this.prototype;function a(o){const u=Ha(o);r[u]||(Pk(i,o),r[u]=!0)}return M.isArray(t)?t.forEach(a):a(t),this}}Nc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(Nc.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});M.freezeMethods(Nc);const Dn=Nc;function Zf(e,t){const n=this||Gv,r=t||n,i=Dn.from(r.headers);let a=r.data;return M.forEach(e,function(u){a=u.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function xO(e){return!!(e&&e.__CANCEL__)}function Ru(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}M.inherits(Ru,ie,{__CANCEL__:!0});function _k(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ie("Request failed with status code "+n.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Ek=mn.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const o=[e+"="+encodeURIComponent(t)];M.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),M.isString(r)&&o.push("path="+r),M.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ak(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Tk(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function SO(e,t){return e&&!Ak(t)?Tk(e,t):t}const $k=mn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(a){let o=a;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const u=M.isString(o)?i(o):o;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function Ck(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kk(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const s=Date.now(),f=r[a];o||(o=s),n[i]=l,r[i]=s;let c=a,d=0;for(;c!==i;)d+=n[c++],c=c%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),s-o{const a=i.loaded,o=i.lengthComputable?i.total:void 0,u=a-n,l=r(u),s=a<=o;n=a;const f={loaded:a,total:o,progress:o?a/o:void 0,bytes:u,rate:l||void 0,estimated:l&&o&&s?(o-a)/l:void 0,event:i};f[t?"download":"upload"]=!0,e(f)}}const jk=typeof XMLHttpRequest<"u",Mk=jk&&function(e){return new Promise(function(n,r){let i=e.data;const a=Dn.from(e.headers).normalize();let{responseType:o,withXSRFToken:u}=e,l;function s(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let f;if(M.isFormData(i)){if(mn.hasStandardBrowserEnv||mn.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if((f=a.getContentType())!==!1){const[v,...y]=f?f.split(";").map(b=>b.trim()).filter(Boolean):[];a.setContentType([v||"multipart/form-data",...y].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(v+":"+y))}const d=SO(e.baseURL,e.url);c.open(e.method.toUpperCase(),yO(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function h(){if(!c)return;const v=Dn.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),b={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:v,config:e,request:c};_k(function(g){n(g),s()},function(g){r(g),s()},b),c=null}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(r(new ie("Request aborted",ie.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new ie("Network Error",ie.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||gO;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),r(new ie(y,b.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,c)),c=null},mn.hasStandardBrowserEnv&&(u&&M.isFunction(u)&&(u=u(e)),u||u!==!1&&$k(d))){const v=e.xsrfHeaderName&&e.xsrfCookieName&&Ek.read(e.xsrfCookieName);v&&a.set(e.xsrfHeaderName,v)}i===void 0&&a.setContentType(null),"setRequestHeader"in c&&M.forEach(a.toJSON(),function(y,b){c.setRequestHeader(b,y)}),M.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&o!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",$g(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",$g(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=v=>{c&&(r(!v||v.type?new Ru(null,e,c):v),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=Ck(d);if(m&&mn.protocols.indexOf(m)===-1){r(new ie("Unsupported protocol "+m+":",ie.ERR_BAD_REQUEST,e));return}c.send(i||null)})},Ch={http:ik,xhr:Mk};M.forEach(Ch,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Cg=e=>`- ${e}`,Nk=e=>M.isFunction(e)||e===null||e===!1,OO={getAdapter:e=>{e=M.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a`adapter ${u} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since : -`+a.map(Cg).join(` -`):" "+Cg(a[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Ch};function ed(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ru(null,e)}function kg(e){return ed(e),e.headers=Dn.from(e.headers),e.data=Zf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),OO.getAdapter(e.adapter||Gv.adapter)(e).then(function(r){return ed(e),r.data=Zf.call(e,e.transformResponse,r),r.headers=Dn.from(r.headers),r},function(r){return xO(r)||(ed(e),r&&r.response&&(r.response.data=Zf.call(e,e.transformResponse,r.response),r.response.headers=Dn.from(r.response.headers))),Promise.reject(r)})}const jg=e=>e instanceof Dn?{...e}:e;function ta(e,t){t=t||{};const n={};function r(s,f,c){return M.isPlainObject(s)&&M.isPlainObject(f)?M.merge.call({caseless:c},s,f):M.isPlainObject(f)?M.merge({},f):M.isArray(f)?f.slice():f}function i(s,f,c){if(M.isUndefined(f)){if(!M.isUndefined(s))return r(void 0,s,c)}else return r(s,f,c)}function a(s,f){if(!M.isUndefined(f))return r(void 0,f)}function o(s,f){if(M.isUndefined(f)){if(!M.isUndefined(s))return r(void 0,s)}else return r(void 0,f)}function u(s,f,c){if(c in t)return r(s,f);if(c in e)return r(void 0,s)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(s,f)=>i(jg(s),jg(f),!0)};return M.forEach(Object.keys(Object.assign({},e,t)),function(f){const c=l[f]||i,d=c(e[f],t[f],f);M.isUndefined(d)&&c!==u||(n[f]=d)}),n}const PO="1.6.8",Yv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Yv[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Mg={};Yv.transitional=function(t,n,r){function i(a,o){return"[Axios v"+PO+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,u)=>{if(t===!1)throw new ie(i(o," has been removed"+(n?" in "+n:"")),ie.ERR_DEPRECATED);return n&&!Mg[o]&&(Mg[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,u):!0}};function Ik(e,t,n){if(typeof e!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const u=e[a],l=u===void 0||o(u,a,e);if(l!==!0)throw new ie("option "+a+" must be "+l,ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ie("Unknown option "+a,ie.ERR_BAD_OPTION)}}const kh={assertOptions:Ik,validators:Yv},Zn=kh.validators;class gs{constructor(t){this.defaults=t,this.interceptors={request:new Ag,response:new Ag}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+a):r.stack=a}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ta(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&kh.assertOptions(r,{silentJSONParsing:Zn.transitional(Zn.boolean),forcedJSONParsing:Zn.transitional(Zn.boolean),clarifyTimeoutError:Zn.transitional(Zn.boolean)},!1),i!=null&&(M.isFunction(i)?n.paramsSerializer={serialize:i}:kh.assertOptions(i,{encode:Zn.function,serialize:Zn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&M.merge(a.common,a[n.method]);a&&M.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),n.headers=Dn.concat(o,a);const u=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,u.unshift(v.fulfilled,v.rejected))});const s=[];this.interceptors.response.forEach(function(v){s.push(v.fulfilled,v.rejected)});let f,c=0,d;if(!l){const m=[kg.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,s),d=m.length,f=Promise.resolve(n);c{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(u=>{r.subscribe(u),a=u}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,u){r.reason||(r.reason=new Ru(a,o,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Xv(function(i){t=i}),cancel:t}}}const Dk=Xv;function Rk(e){return function(n){return e.apply(null,n)}}function Lk(e){return M.isObject(e)&&e.isAxiosError===!0}const jh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(jh).forEach(([e,t])=>{jh[t]=e});const Bk=jh;function _O(e){const t=new Ul(e),n=aO(Ul.prototype.request,t);return M.extend(n,Ul.prototype,t,{allOwnKeys:!0}),M.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return _O(ta(e,i))},n}const Me=_O(Gv);Me.Axios=Ul;Me.CanceledError=Ru;Me.CancelToken=Dk;Me.isCancel=xO;Me.VERSION=PO;Me.toFormData=Mc;Me.AxiosError=ie;Me.Cancel=Me.CanceledError;Me.all=function(t){return Promise.all(t)};Me.spread=Rk;Me.isAxiosError=Lk;Me.mergeConfig=ta;Me.AxiosHeaders=Dn;Me.formToJSON=e=>wO(M.isHTMLForm(e)?new FormData(e):e);Me.getAdapter=OO.getAdapter;Me.HttpStatusCode=Bk;Me.default=Me;function Fk({id:e,name:t,priceUsd:n,symbol:r,changePercent24Hr:i}){return W.jsx(Hv,{to:`/criptomonedas/${e}`,className:"link-cripto",children:W.jsxs("div",{className:"cripto",children:[W.jsx("h2",{children:t}),W.jsxs("div",{className:"info",children:[W.jsxs("p",{children:[W.jsx("span",{className:"label",children:"Precio: "}),parseFloat(n).toFixed(5)]}),W.jsxs("p",{children:[W.jsx("span",{className:"label",children:"Código: "}),r]}),W.jsxs("p",{children:[W.jsx("span",{className:"label",children:"Variación 24h: "}),W.jsxs("span",{className:i>0?"positivo":"negativo",children:[parseFloat(i).toFixed(3),"%"]})]})]})]})})}function zk(){const[e,t]=A.useState(),n="https://api.coincap.io/v2/";return A.useEffect(()=>{Me.get(`${n}assets`).then(r=>t(r.data.data)).catch(r=>console.log(r))},[]),e?W.jsxs("div",{className:"app-container",children:[W.jsx("h1",{children:"Lista de criptomonedas"}),W.jsx("div",{className:"cripto-container",children:e.map(r=>W.jsx(Fk,{id:r.id,name:r.name,priceUsd:r.priceUsd,symbol:r.symbol,changePercent24Hr:r.changePercent24Hr},r.id))})]}):W.jsx("h1",{className:"app-container",children:"Cargando..."})}function Uk(){return W.jsxs("div",{className:"no-404",children:[W.jsx("h1",{children:"Página no encontrada"}),W.jsx("span",{children:"La página solicitada, no existe"}),W.jsx("span",{children:W.jsx(Bl,{to:"/",children:"Volver"})})]})}function Ng(e){const t="https://api.coincap.io/v2/",[n,r]=A.useState(null);return A.useEffect(()=>{Me.get(`${t}${e}`).then(i=>{r(i.data.data)}).catch(i=>console.error(i))},[]),n}function Wk({cryptoData:e}){return e&&W.jsxs("div",{className:"info",children:[W.jsxs("div",{className:"main-info",children:[W.jsxs("span",{children:["Ranking: ",e.rank]}),W.jsx("h1",{children:e.name}),W.jsx("span",{className:"symbol",children:e.symbol})]}),W.jsx("div",{className:"details",children:W.jsx("ul",{children:e&&Object.entries(e).map(([t,n])=>n!==null&&t!=="id"&&t!=="rank"&&t!=="symbol"&&t!=="name"&&n!==""?t==="explorer"?W.jsxs("li",{className:"link-explorer",children:[W.jsxs("span",{className:"label",children:[t,": "]}),W.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:"Link"})]},t):W.jsxs("li",{children:[W.jsxs("span",{className:"label",children:[t,": "]}),W.jsx("span",{children:isNaN(n)?n:parseFloat(n).toFixed(4)})]},t):null)})})]})}function EO(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t-1}var UM=zM,WM=Dc;function HM(e,t){var n=this.__data__,r=WM(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var VM=HM,qM=TM,KM=DM,GM=BM,YM=UM,XM=VM;function Ea(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0?1:-1},Kr=function(t){return Bu(t)&&t.indexOf("%")===t.length-1},H=function(t){return wN(t)&&!Fu(t)},Ue=function(t){return H(t)||Bu(t)},PN=0,Xc=function(t){var n=++PN;return"".concat(t||"").concat(n)},na=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!H(t)&&!Bu(t))return r;var a;if(Kr(t)){var o=t.indexOf("%");a=n*parseFloat(t.slice(0,o))/100}else a=+t;return Fu(a)&&(a=r),i&&a>n&&(a=n),a},or=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},_N=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var qg={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Rn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Kg=null,rd=null,sm=function e(t){if(t===Kg&&Array.isArray(rd))return rd;var n=[];return A.Children.forEach(t,function(r){ce(r)||(Mh.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),rd=n,Kg=t,n};function ln(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Rn(i)}):r=[Rn(t)],sm(e).forEach(function(i){var a=qt(i,"type.displayName")||qt(i,"type.name");r.indexOf(a)!==-1&&n.push(i)}),n}function At(e,t){var n=ln(e,t);return n&&n[0]}var Gg=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!H(r)||r<=0||!H(i)||i<=0)},jN=["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"],MN=function(t){return t&&t.type&&Bu(t.type)&&jN.indexOf(t.type)>=0},NN=function(t,n,r,i){var a,o=(a=nd==null?void 0:nd[i])!==null&&a!==void 0?a:[];return!te(t)&&(i&&o.includes(n)||AN.includes(n))||r&&lm.includes(n)},le=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(A.isValidElement(t)&&(i=t.props),!Pa(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;NN((u=i)===null||u===void 0?void 0:u[o],o,n,r)&&(a[o]=i[o])}),a},Dh=function e(t,n){if(t===n)return!0;var r=A.Children.count(t);if(r!==A.Children.count(n))return!1;if(r===0)return!0;if(r===1)return Yg(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function BN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Lh(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,l=e.desc,s=LN(e,RN),f=i||{width:n,height:r,x:0,y:0},c=pe("recharts-surface",a);return _.createElement("svg",Rh({},le(s,!0,"svg"),{className:c,width:n,height:r,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),_.createElement("title",null,u),_.createElement("desc",null,l),t)}var FN=["children","className"];function Bh(){return Bh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Ke=_.forwardRef(function(e,t){var n=e.children,r=e.className,i=zN(e,FN),a=pe("recharts-layer",r);return _.createElement("g",Bh({className:a},le(i,!0),{ref:t}),n)}),Ln=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;ai?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=r?e:VN(e,t,n)}var KN=qN,GN="\\ud800-\\udfff",YN="\\u0300-\\u036f",XN="\\ufe20-\\ufe2f",QN="\\u20d0-\\u20ff",JN=YN+XN+QN,ZN="\\ufe0e\\ufe0f",eI="\\u200d",tI=RegExp("["+eI+GN+JN+ZN+"]");function nI(e){return tI.test(e)}var BO=nI;function rI(e){return e.split("")}var iI=rI,FO="\\ud800-\\udfff",aI="\\u0300-\\u036f",oI="\\ufe20-\\ufe2f",uI="\\u20d0-\\u20ff",lI=aI+oI+uI,sI="\\ufe0e\\ufe0f",cI="["+FO+"]",Fh="["+lI+"]",zh="\\ud83c[\\udffb-\\udfff]",fI="(?:"+Fh+"|"+zh+")",zO="[^"+FO+"]",UO="(?:\\ud83c[\\udde6-\\uddff]){2}",WO="[\\ud800-\\udbff][\\udc00-\\udfff]",dI="\\u200d",HO=fI+"?",VO="["+sI+"]?",hI="(?:"+dI+"(?:"+[zO,UO,WO].join("|")+")"+VO+HO+")*",pI=VO+HO+hI,vI="(?:"+[zO+Fh+"?",Fh,UO,WO,cI].join("|")+")",mI=RegExp(zh+"(?="+zh+")|"+vI+pI,"g");function yI(e){return e.match(mI)||[]}var gI=yI,bI=iI,wI=BO,xI=gI;function SI(e){return wI(e)?xI(e):bI(e)}var OI=SI,PI=KN,_I=BO,EI=OI,AI=MO;function TI(e){return function(t){t=AI(t);var n=_I(t)?EI(t):void 0,r=n?n[0]:t.charAt(0),i=n?PI(n,1).join(""):t.slice(1);return r[e]()+i}}var $I=TI,CI=$I,kI=CI("toUpperCase"),jI=kI;const Qc=me(jI);function ye(e){return function(){return e}}const qO=Math.cos,xs=Math.sin,cn=Math.sqrt,Ss=Math.PI,Jc=2*Ss,Uh=Math.PI,Wh=2*Uh,Fr=1e-6,MI=Wh-Fr;function KO(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return KO;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;iFr)if(!(Math.abs(c*l-s*f)>Fr)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,m=i-u,v=l*l+s*s,y=h*h+m*m,b=Math.sqrt(v),p=Math.sqrt(d),g=a*Math.tan((Uh-Math.acos((v+d-y)/(2*b*p)))/2),w=g/p,x=g/b;Math.abs(w-1)>Fr&&this._append`L${t+w*f},${n+w*c}`,this._append`A${a},${a},0,0,${+(c*h>f*m)},${this._x1=t+x*l},${this._y1=n+x*s}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(i),l=r*Math.sin(i),s=t+u,f=n+l,c=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Fr||Math.abs(this._y1-f)>Fr)&&this._append`L${s},${f}`,r&&(d<0&&(d=d%Wh+Wh),d>MI?this._append`A${r},${r},0,1,${c},${t-u},${n-l}A${r},${r},0,1,${c},${this._x1=s},${this._y1=f}`:d>Fr&&this._append`A${r},${r},0,${+(d>=Uh)},${c},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function cm(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 II(t)}function fm(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function GO(e){this._context=e}GO.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 Zc(e){return new GO(e)}function YO(e){return e[0]}function XO(e){return e[1]}function QO(e,t){var n=ye(!0),r=null,i=Zc,a=null,o=cm(u);e=typeof e=="function"?e:e===void 0?YO:ye(e),t=typeof t=="function"?t:t===void 0?XO:ye(t);function u(l){var s,f=(l=fm(l)).length,c,d=!1,h;for(r==null&&(a=i(h=o())),s=0;s<=f;++s)!(s=h;--m)u.point(g[m],w[m]);u.lineEnd(),u.areaEnd()}b&&(g[d]=+e(y,d,c),w[d]=+t(y,d,c),u.point(r?+r(y,d,c):g[d],n?+n(y,d,c):w[d]))}if(p)return u=null,p+""||null}function f(){return QO().defined(i).curve(o).context(a)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:ye(+c),r=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:ye(+c),s):e},s.x1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:ye(+c),s):r},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:ye(+c),n=null,s):t},s.y0=function(c){return arguments.length?(t=typeof c=="function"?c:ye(+c),s):t},s.y1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:ye(+c),s):n},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(n)},s.lineX1=function(){return f().x(r).y(t)},s.defined=function(c){return arguments.length?(i=typeof c=="function"?c:ye(!!c),s):i},s.curve=function(c){return arguments.length?(o=c,a!=null&&(u=o(a)),s):o},s.context=function(c){return arguments.length?(c==null?a=u=null:u=o(a=c),s):a},s}class JO{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 DI(e){return new JO(e,!0)}function RI(e){return new JO(e,!1)}const dm={draw(e,t){const n=cn(t/Ss);e.moveTo(n,0),e.arc(0,0,n,0,Jc)}},LI={draw(e,t){const n=cn(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()}},ZO=cn(1/3),BI=ZO*2,FI={draw(e,t){const n=cn(t/BI),r=n*ZO;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},zI={draw(e,t){const n=cn(t),r=-n/2;e.rect(r,r,n,n)}},UI=.8908130915292852,eP=xs(Ss/10)/xs(7*Ss/10),WI=xs(Jc/10)*eP,HI=-qO(Jc/10)*eP,VI={draw(e,t){const n=cn(t*UI),r=WI*n,i=HI*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=Jc*a/5,u=qO(o),l=xs(o);e.lineTo(l*n,-u*n),e.lineTo(u*r-l*i,l*r+u*i)}e.closePath()}},id=cn(3),qI={draw(e,t){const n=-cn(t/(id*3));e.moveTo(0,n*2),e.lineTo(-id*n,-n),e.lineTo(id*n,-n),e.closePath()}},Dt=-.5,Rt=cn(3)/2,Hh=1/cn(12),KI=(Hh/2+1)*3,GI={draw(e,t){const n=cn(t/KI),r=n/2,i=n*Hh,a=r,o=n*Hh+n,u=-a,l=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(u,l),e.lineTo(Dt*r-Rt*i,Rt*r+Dt*i),e.lineTo(Dt*a-Rt*o,Rt*a+Dt*o),e.lineTo(Dt*u-Rt*l,Rt*u+Dt*l),e.lineTo(Dt*r+Rt*i,Dt*i-Rt*r),e.lineTo(Dt*a+Rt*o,Dt*o-Rt*a),e.lineTo(Dt*u+Rt*l,Dt*l-Rt*u),e.closePath()}};function YI(e,t){let n=null,r=cm(i);e=typeof e=="function"?e:ye(e||dm),t=typeof t=="function"?t:ye(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:ye(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ye(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function Os(){}function Ps(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 tP(e){this._context=e}tP.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:Ps(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:Ps(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function XI(e){return new tP(e)}function nP(e){this._context=e}nP.prototype={areaStart:Os,areaEnd:Os,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:Ps(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function QI(e){return new nP(e)}function rP(e){this._context=e}rP.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:Ps(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function JI(e){return new rP(e)}function iP(e){this._context=e}iP.prototype={areaStart:Os,areaEnd:Os,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 ZI(e){return new iP(e)}function Qg(e){return e<0?-1:1}function Jg(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),u=(a*i+o*r)/(r+i);return(Qg(a)+Qg(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Zg(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ad(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-r)/3;e._context.bezierCurveTo(r+u,i+u*t,a-u,o-u*n,a,o)}function _s(e){this._context=e}_s.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:ad(this,this._t0,Zg(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,ad(this,Zg(this,n=Jg(this,e,t)),n);break;default:ad(this,this._t0,n=Jg(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function aP(e){this._context=new oP(e)}(aP.prototype=Object.create(_s.prototype)).point=function(e,t){_s.prototype.point.call(this,t,e)};function oP(e){this._context=e}oP.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,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function eD(e){return new _s(e)}function tD(e){return new aP(e)}function uP(e){this._context=e}uP.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=e0(e),i=e0(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t=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 rD(e){return new ef(e,.5)}function iD(e){return new ef(e,0)}function aD(e){return new ef(e,1)}function ra(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,u=a.length;n=0;)n[t]=t;return n}function oD(e,t){return e[t]}function uD(e){const t=[];return t.key=e,t}function lD(){var e=ye([]),t=Vh,n=ra,r=oD;function i(a){var o=Array.from(e.apply(this,arguments),uD),u,l=o.length,s=-1,f;for(const c of a)for(u=0,++s;u0){for(var n,r,i=0,a=e[0].length,o;i0){for(var n=0,r=e[t[0]],i,a=r.length;n0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var lP={symbolCircle:dm,symbolCross:LI,symbolDiamond:FI,symbolSquare:zI,symbolStar:VI,symbolTriangle:qI,symbolWye:GI},gD=Math.PI/180,bD=function(t){var n="symbol".concat(Qc(t));return lP[n]||dm},wD=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 i=18*gD;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),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}},xD=function(t,n){lP["symbol".concat(Qc(t))]=n},hm=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,l=mD(t,dD),s=n0(n0({},l),{},{type:r,size:a,sizeType:u}),f=function(){var y=bD(r),b=YI().type(y).size(wD(a,u,r));return b()},c=s.className,d=s.cx,h=s.cy,m=le(s,!0);return d===+d&&h===+h&&a===+a?_.createElement("path",qh({},m,{className:pe("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(h,")"),d:f()})):null};hm.registerSymbol=xD;function ia(e){"@babel/helpers - typeof";return ia=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},ia(e)}function Kh(){return Kh=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var p=h.inactive?s:h.color;return _.createElement("li",Kh({className:y,style:c,key:"legend-item-".concat(m)},ws(r.props,h,m)),_.createElement(Lh,{width:o,height:o,viewBox:f,style:d},r.renderIcon(h)),_.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},v?v(b,h,m):b))})}},{key:"render",value:function(){var r=this.props,i=r.payload,a=r.layout,o=r.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return _.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}]),t}(A.PureComponent);Vo(pm,"displayName","Legend");Vo(pm,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var CD=Rc;function kD(){this.__data__=new CD,this.size=0}var jD=kD;function MD(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var ND=MD;function ID(e){return this.__data__.get(e)}var DD=ID;function RD(e){return this.__data__.has(e)}var LD=RD,BD=Rc,FD=em,zD=tm,UD=200;function WD(e,t){var n=this.__data__;if(n instanceof BD){var r=n.__data__;if(!FD||r.lengthu))return!1;var s=a.get(e),f=a.get(t);if(s&&f)return s==t&&f==e;var c=-1,d=!0,h=n&fR?new uR:void 0;for(a.set(e,t),a.set(t,e);++c-1&&e%1==0&&e-1&&e%1==0&&e<=vL}var gm=mL,yL=Yn,gL=gm,bL=Xn,wL="[object Arguments]",xL="[object Array]",SL="[object Boolean]",OL="[object Date]",PL="[object Error]",_L="[object Function]",EL="[object Map]",AL="[object Number]",TL="[object Object]",$L="[object RegExp]",CL="[object Set]",kL="[object String]",jL="[object WeakMap]",ML="[object ArrayBuffer]",NL="[object DataView]",IL="[object Float32Array]",DL="[object Float64Array]",RL="[object Int8Array]",LL="[object Int16Array]",BL="[object Int32Array]",FL="[object Uint8Array]",zL="[object Uint8ClampedArray]",UL="[object Uint16Array]",WL="[object Uint32Array]",we={};we[IL]=we[DL]=we[RL]=we[LL]=we[BL]=we[FL]=we[zL]=we[UL]=we[WL]=!0;we[wL]=we[xL]=we[ML]=we[SL]=we[NL]=we[OL]=we[PL]=we[_L]=we[EL]=we[AL]=we[TL]=we[$L]=we[CL]=we[kL]=we[jL]=!1;function HL(e){return bL(e)&&gL(e.length)&&!!we[yL(e)]}var VL=HL;function qL(e){return function(t){return e(t)}}var bP=qL,$s={exports:{}};$s.exports;(function(e,t){var n=AO,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,u=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=u})($s,$s.exports);var KL=$s.exports,GL=VL,YL=bP,c0=KL,f0=c0&&c0.isTypedArray,XL=f0?YL(f0):GL,wP=XL,QL=eL,JL=mm,ZL=Ot,eB=gP,tB=ym,nB=wP,rB=Object.prototype,iB=rB.hasOwnProperty;function aB(e,t){var n=ZL(e),r=!n&&JL(e),i=!n&&!r&&eB(e),a=!n&&!r&&!i&&nB(e),o=n||r||i||a,u=o?QL(e.length,String):[],l=u.length;for(var s in e)(t||iB.call(e,s))&&!(o&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||tB(s,l)))&&u.push(s);return u}var oB=aB,uB=Object.prototype;function lB(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||uB;return e===n}var sB=lB;function cB(e,t){return function(n){return e(t(n))}}var xP=cB,fB=xP,dB=fB(Object.keys,Object),hB=dB,pB=sB,vB=hB,mB=Object.prototype,yB=mB.hasOwnProperty;function gB(e){if(!pB(e))return vB(e);var t=[];for(var n in Object(e))yB.call(e,n)&&n!="constructor"&&t.push(n);return t}var bB=gB,wB=Jv,xB=gm;function SB(e){return e!=null&&xB(e.length)&&!wB(e)}var zu=SB,OB=oB,PB=bB,_B=zu;function EB(e){return _B(e)?OB(e):PB(e)}var tf=EB,AB=UR,TB=JR,$B=tf;function CB(e){return AB(e,$B,TB)}var kB=CB,d0=kB,jB=1,MB=Object.prototype,NB=MB.hasOwnProperty;function IB(e,t,n,r,i,a){var o=n&jB,u=d0(e),l=u.length,s=d0(t),f=s.length;if(l!=f&&!o)return!1;for(var c=l;c--;){var d=u[c];if(!(o?d in t:NB.call(t,d)))return!1}var h=a.get(e),m=a.get(t);if(h&&m)return h==t&&m==e;var v=!0;a.set(e,t),a.set(t,e);for(var y=o;++c-1}var MF=jF;function NF(e,t,n){for(var r=-1,i=e==null?0:e.length;++r=YF){var s=t?null:KF(e);if(s)return GF(s);o=!1,i=qF,l=new WF}else l=t?[]:u;e:for(;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function c4(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function f4(e){return e.value}function d4(e,t){if(_.isValidElement(e))return _.cloneElement(e,t);if(typeof e=="function")return _.createElement(e,t);t.ref;var n=s4(t,n4);return _.createElement(pm,n)}var T0=1,oa=function(e){u4(t,e);function t(){var n;r4(this,t);for(var r=arguments.length,i=new Array(r),a=0;aT0||Math.abs(i.height-this.lastBoundingBox.height)>T0)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(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?Dr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,l=i.margin,s=i.chartWidth,f=i.chartHeight,c,d;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(o==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();c={left:((s||0)-h.width)/2}}else c=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(u==="middle"){var m=this.getBBoxSnapshot();d={top:((f||0)-m.height)/2}}else d=u==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Dr(Dr({},c),d)}},{key:"render",value:function(){var r=this,i=this.props,a=i.content,o=i.width,u=i.height,l=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,c=Dr(Dr({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(l)),l);return _.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(h){r.wrapperNode=h}},d4(a,Dr(Dr({},this.props),{},{payload:TP(f,s,f4)})))}}],[{key:"getWithHeight",value:function(r,i){var a=r.props.layout;return a==="vertical"&&H(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||i}:null}}]),t}(A.PureComponent);nf(oa,"displayName","Legend");nf(oa,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var $0=Lu,h4=mm,p4=Ot,C0=$0?$0.isConcatSpreadable:void 0;function v4(e){return p4(e)||h4(e)||!!(C0&&e&&e[C0])}var m4=v4,y4=mP,g4=m4;function jP(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=g4),i||(i=[]);++a0&&n(u)?t>1?jP(u,t-1,n,r,i):y4(i,u):r||(i[i.length]=u)}return i}var MP=jP;function b4(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),u=o.length;u--;){var l=o[e?u:++i];if(n(a[l],l,a)===!1)break}return t}}var w4=b4,x4=w4,S4=x4(),O4=S4,P4=O4,_4=tf;function E4(e,t){return e&&P4(e,t,_4)}var NP=E4,A4=zu;function T4(e,t){return function(n,r){if(n==null)return n;if(!A4(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++at||a&&o&&l&&!u&&!s||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!s&&e=u)return l;var s=n[r];return l*(s=="desc"?-1:1)}}return e.index-t.index}var U4=z4,sd=rm,W4=im,H4=Cr,V4=IP,q4=R4,K4=bP,G4=U4,Y4=Ca,X4=Ot;function Q4(e,t,n){t.length?t=sd(t,function(a){return X4(a)?function(o){return W4(o,a.length===1?a[0]:a)}:a}):t=[Y4];var r=-1;t=sd(t,K4(H4));var i=V4(e,function(a,o,u){var l=sd(t,function(s){return s(a)});return{criteria:l,index:++r,value:a}});return q4(i,function(a,o){return G4(a,o,n)})}var J4=Q4;function Z4(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var ez=Z4,tz=ez,j0=Math.max;function nz(e,t,n){return t=j0(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=j0(r.length-t,0),o=Array(a);++i0){if(++t>=dz)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var mz=vz,yz=fz,gz=mz,bz=gz(yz),wz=bz,xz=Ca,Sz=rz,Oz=wz;function Pz(e,t){return Oz(Sz(e,t,xz),e+"")}var _z=Pz,Ez=Zv,Az=zu,Tz=ym,$z=$r;function Cz(e,t,n){if(!$z(n))return!1;var r=typeof t;return(r=="number"?Az(n)&&Tz(t,n.length):r=="string"&&t in n)?Ez(n[t],e):!1}var rf=Cz,kz=MP,jz=J4,Mz=_z,N0=rf,Nz=Mz(function(e,t){if(e==null)return[];var n=t.length;return n>1&&N0(e,t[0],t[1])?t=[]:n>2&&N0(t[0],t[1],t[2])&&(t=[t[0]]),jz(e,kz(t,1),[])}),Iz=Nz;const xm=me(Iz);function qo(e){"@babel/helpers - typeof";return qo=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},qo(e)}function tp(){return tp=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t.x),"".concat(qa,"-left"),H(n)&&t&&H(t.x)&&n=t.y),"".concat(qa,"-top"),H(r)&&t&&H(t.y)&&rv?Math.max(f,l[r]):Math.max(c,l[r])}function Xz(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 Qz(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,l=e.viewBox,s,f,c;return o.height>0&&o.width>0&&n?(f=R0({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),c=R0({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),s=Xz({translateX:f,translateY:c,useTranslate3d:u})):s=Gz,{cssProperties:s,cssClasses:Yz({translateX:f,translateY:c,coordinate:n})}}function ua(e){"@babel/helpers - typeof";return ua=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},ua(e)}function L0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function B0(e){for(var t=1;tz0||Math.abs(r.height-this.lastBoundingBox.height)>z0)&&(this.lastBoundingBox.width=r.width,this.lastBoundingBox.height=r.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.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,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,l=i.animationEasing,s=i.children,f=i.coordinate,c=i.hasPayload,d=i.isAnimationActive,h=i.offset,m=i.position,v=i.reverseDirection,y=i.useTranslate3d,b=i.viewBox,p=i.wrapperStyle,g=Qz({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:h,position:m,reverseDirection:v,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:y,viewBox:b}),w=g.cssClasses,x=g.cssProperties,S=B0(B0({transition:d&&a?"transform ".concat(u,"ms ").concat(l):void 0},x),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&c?"visible":"hidden",position:"absolute",top:0,left:0},p);return _.createElement("div",{tabIndex:-1,className:w,style:S,ref:function(P){r.wrapperNode=P}},s)}}]),t}(A.PureComponent),aU=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},wr={isSsr:aU(),get:function(t){return wr[t]},set:function(t,n){if(typeof t=="string")wr[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){wr[i]=t[i]})}}};function la(e){"@babel/helpers - typeof";return la=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},la(e)}function U0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function W0(e){for(var t=1;t0;return _.createElement(iU,{allowEscapeViewBox:o,animationDuration:u,animationEasing:l,isAnimationActive:d,active:a,coordinate:f,hasPayload:S,offset:h,position:y,reverseDirection:b,useTranslate3d:p,viewBox:g,wrapperStyle:w},pU(s,W0(W0({},this.props),{},{payload:x})))}}]),t}(A.PureComponent);Sm(Tn,"displayName","Tooltip");Sm(Tn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!wr.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 vU=_n,mU=function(){return vU.Date.now()},yU=mU,gU=/\s/;function bU(e){for(var t=e.length;t--&&gU.test(e.charAt(t)););return t}var wU=bU,xU=wU,SU=/^\s+/;function OU(e){return e&&e.slice(0,xU(e)+1).replace(SU,"")}var PU=OU,_U=PU,V0=$r,EU=Oa,q0=NaN,AU=/^[-+]0x[0-9a-f]+$/i,TU=/^0b[01]+$/i,$U=/^0o[0-7]+$/i,CU=parseInt;function kU(e){if(typeof e=="number")return e;if(EU(e))return q0;if(V0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=V0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=_U(e);var n=TU.test(e);return n||$U.test(e)?CU(e.slice(2),n?2:8):AU.test(e)?q0:+e}var zP=kU,jU=$r,fd=yU,K0=zP,MU="Expected a function",NU=Math.max,IU=Math.min;function DU(e,t,n){var r,i,a,o,u,l,s=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(MU);t=K0(t)||0,jU(n)&&(f=!!n.leading,c="maxWait"in n,a=c?NU(K0(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d);function h(S){var O=r,P=i;return r=i=void 0,s=S,o=e.apply(P,O),o}function m(S){return s=S,u=setTimeout(b,t),f?h(S):o}function v(S){var O=S-l,P=S-s,T=t-O;return c?IU(T,a-P):T}function y(S){var O=S-l,P=S-s;return l===void 0||O>=t||O<0||c&&P>=a}function b(){var S=fd();if(y(S))return p(S);u=setTimeout(b,v(S))}function p(S){return u=void 0,d&&r?h(S):(r=i=void 0,o)}function g(){u!==void 0&&clearTimeout(u),s=0,r=l=i=u=void 0}function w(){return u===void 0?o:p(fd())}function x(){var S=fd(),O=y(S);if(r=arguments,i=this,l=S,O){if(u===void 0)return m(l);if(c)return clearTimeout(u),u=setTimeout(b,t),h(l)}return u===void 0&&(u=setTimeout(b,t)),o}return x.cancel=g,x.flush=w,x}var RU=DU,LU=RU,BU=$r,FU="Expected a function";function zU(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(FU);return BU(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),LU(e,t,{leading:r,maxWait:t,trailing:i})}var UU=zU;const UP=me(UU);function Go(e){"@babel/helpers - typeof";return Go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Go(e)}function G0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ml(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(N=UP(N,v,{trailing:!0,leading:!1}));var j=new ResizeObserver(N),F=x.current.getBoundingClientRect(),R=F.width,z=F.height;return $(R,z),j.observe(x.current),function(){j.disconnect()}},[$,v]);var k=A.useMemo(function(){var N=T.containerWidth,j=T.containerHeight;if(N<0||j<0)return null;Ln(Kr(o)||Kr(l),`The width(%s) and height(%s) are both fixed numbers, - maybe you don't need to use a ResponsiveContainer.`,o,l),Ln(!n||n>0,"The aspect(%s) must be greater than zero.",n);var F=Kr(o)?N:o,R=Kr(l)?j:l;n&&n>0&&(F?R=F/n:R&&(F=R*n),d&&R>d&&(R=d)),Ln(F>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0, - please check the style of container, or the props width(%s) and height(%s), - or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the - height and width.`,F,R,o,l,f,c,n);var z=!Array.isArray(h)&&Mh.isElement(h)&&Rn(h.type).endsWith("Chart");return _.Children.map(h,function(C){return Mh.isElement(C)?A.cloneElement(C,ml({width:F,height:R},z?{style:ml({height:"100%",width:"100%",maxHeight:R,maxWidth:F},C.props.style)}:{})):C})},[n,h,l,d,c,f,T,o]);return _.createElement("div",{id:y?"".concat(y):void 0,className:pe("recharts-responsive-container",b),style:ml(ml({},w),{},{width:o,height:l,minWidth:f,minHeight:c,maxHeight:d}),ref:x},k)}),WP=function(t){return null};WP.displayName="Cell";function Yo(e){"@babel/helpers - typeof";return Yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yo(e)}function X0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ip(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||wr.isSsr)return{width:0,height:0};var r=r8(n),i=JSON.stringify({text:t,copyStyle:r});if(wi.widthCache[i])return wi.widthCache[i];try{var a=document.getElementById(Q0);a||(a=document.createElement("span"),a.setAttribute("id",Q0),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=ip(ip({},n8),r);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),l={width:u.width,height:u.height};return wi.widthCache[i]=l,++wi.cacheCount>t8&&(wi.cacheCount=0,wi.widthCache={}),l}catch{return{width:0,height:0}}},i8=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Xo(e){"@babel/helpers - typeof";return Xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xo(e)}function Ms(e,t){return l8(e)||u8(e,t)||o8(e,t)||a8()}function a8(){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 o8(e,t){if(e){if(typeof e=="string")return J0(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 J0(e,t)}}function J0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function S8(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function i1(e,t){return E8(e)||_8(e,t)||P8(e,t)||O8()}function O8(){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 P8(e,t){if(e){if(typeof e=="string")return a1(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 a1(e,t)}}function a1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return F.reduce(function(R,z){var C=z.word,D=z.width,U=R[R.length-1];if(U&&(i==null||a||U.width+D+rz.width?R:z})};if(!f)return h;for(var v="…",y=function(F){var R=c.slice(0,F),z=KP({breakAll:s,style:l,children:R+v}).wordsWithComputedWidth,C=d(z),D=C.length>o||m(C).width>Number(i);return[D,C]},b=0,p=c.length-1,g=0,w;b<=p&&g<=c.length-1;){var x=Math.floor((b+p)/2),S=x-1,O=y(S),P=i1(O,2),T=P[0],E=P[1],$=y(x),k=i1($,1),N=k[0];if(!T&&!N&&(b=x+1),T&&N&&(p=x-1),!T&&N){w=E;break}g++}return w||h},o1=function(t){var n=ce(t)?[]:t.toString().split(qP);return[{words:n}]},T8=function(t){var n=t.width,r=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((n||r)&&!wr.isSsr){var l,s,f=KP({breakAll:o,children:i,style:a});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;l=c,s=d}else return o1(i);return A8({breakAll:o,children:i,maxLines:u,style:a},l,s,n,r)}return o1(i)},u1="#808080",Ns=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,l=t.capHeight,s=l===void 0?"0.71em":l,f=t.scaleToFit,c=f===void 0?!1:f,d=t.textAnchor,h=d===void 0?"start":d,m=t.verticalAnchor,v=m===void 0?"end":m,y=t.fill,b=y===void 0?u1:y,p=r1(t,w8),g=A.useMemo(function(){return T8({breakAll:p.breakAll,children:p.children,maxLines:p.maxLines,scaleToFit:c,style:p.style,width:p.width})},[p.breakAll,p.children,p.maxLines,c,p.style,p.width]),w=p.dx,x=p.dy,S=p.angle,O=p.className,P=p.breakAll,T=r1(p,x8);if(!Ue(r)||!Ue(a))return null;var E=r+(H(w)?w:0),$=a+(H(x)?x:0),k;switch(v){case"start":k=dd("calc(".concat(s,")"));break;case"middle":k=dd("calc(".concat((g.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:k=dd("calc(".concat(g.length-1," * -").concat(u,")"));break}var N=[];if(c){var j=g[0].width,F=p.width;N.push("scale(".concat((H(F)?F/j:1)/j,")"))}return S&&N.push("rotate(".concat(S,", ").concat(E,", ").concat($,")")),N.length&&(T.transform=N.join(" ")),_.createElement("text",ap({},le(T,!0),{x:E,y:$,className:pe("recharts-text",O),textAnchor:h,fill:b.includes("url")?u1:b}),g.map(function(R,z){var C=R.words.join(P?"":" ");return _.createElement("tspan",{x:E,dy:z===0?k:u,key:C},C)}))};function xr(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function $8(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Om(e){let t,n,r;e.length!==2?(t=xr,n=(u,l)=>xr(e(u),l),r=(u,l)=>e(u)-l):(t=e===xr||e===$8?e:C8,n=e,r=e);function i(u,l,s=0,f=u.length){if(s>>1;n(u[c],l)<0?s=c+1:f=c}while(s>>1;n(u[c],l)<=0?s=c+1:f=c}while(ss&&r(u[c-1],l)>-r(u[c],l)?c-1:c}return{left:i,center:o,right:a}}function C8(){return 0}function GP(e){return e===null?NaN:+e}function*k8(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const j8=Om(xr),Uu=j8.right;Om(GP).center;class l1 extends Map{constructor(t,n=I8){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(s1(this,t))}has(t){return super.has(s1(this,t))}set(t,n){return super.set(M8(this,t),n)}delete(t){return super.delete(N8(this,t))}}function s1({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function M8({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function N8({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function I8(e){return e!==null&&typeof e=="object"?e.valueOf():e}function D8(e=xr){if(e===xr)return YP;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 YP(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const R8=Math.sqrt(50),L8=Math.sqrt(10),B8=Math.sqrt(2);function Is(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=R8?10:a>=L8?5:a>=B8?2:1;let u,l,s;return i<0?(s=Math.pow(10,-i)/o,u=Math.round(e*s),l=Math.round(t*s),u/st&&--l,s=-s):(s=Math.pow(10,i)*o,u=Math.round(e/s),l=Math.round(t/s),u*st&&--l),l0))return[];if(e===t)return[e];const r=t=i))return[];const u=a-i+1,l=new Array(u);if(r)if(o<0)for(let s=0;s=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}function f1(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function XP(e,t,n=0,r=1/0,i){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(i=i===void 0?YP:D8(i);r>n;){if(r-n>600){const l=r-n+1,s=t-n+1,f=Math.log(l),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(l-c)/l)*(s-l/2<0?-1:1),h=Math.max(n,Math.floor(t-s*c/l+d)),m=Math.min(r,Math.floor(t+(l-s)*c/l+d));XP(e,t,h,m,i)}const a=e[t];let o=n,u=r;for(Ka(e,n,t),i(e[r],a)>0&&Ka(e,n,r);o0;)--u}i(e[n],a)===0?Ka(e,n,u):(++u,Ka(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function Ka(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function F8(e,t,n){if(e=Float64Array.from(k8(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return f1(e);if(t>=1)return c1(e);var r,i=(r-1)*t,a=Math.floor(i),o=c1(XP(e,a).subarray(0,a+1)),u=f1(e.subarray(a+1));return o+(u-o)*(i-a)}}function z8(e,t,n=GP){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,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),u=+n(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function U8(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?gl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?gl(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=H8.exec(e))?new bt(t[1],t[2],t[3],1):(t=V8.exec(e))?new bt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=q8.exec(e))?gl(t[1],t[2],t[3],t[4]):(t=K8.exec(e))?gl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=G8.exec(e))?g1(t[1],t[2]/100,t[3]/100,1):(t=Y8.exec(e))?g1(t[1],t[2]/100,t[3]/100,t[4]):d1.hasOwnProperty(e)?v1(d1[e]):e==="transparent"?new bt(NaN,NaN,NaN,0):null}function v1(e){return new bt(e>>16&255,e>>8&255,e&255,1)}function gl(e,t,n,r){return r<=0&&(e=t=n=NaN),new bt(e,t,n,r)}function J8(e){return e instanceof Wu||(e=eu(e)),e?(e=e.rgb(),new bt(e.r,e.g,e.b,e.opacity)):new bt}function cp(e,t,n,r){return arguments.length===1?J8(e):new bt(e,t,n,r??1)}function bt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}_m(bt,cp,JP(Wu,{brighter(e){return e=e==null?Ds:Math.pow(Ds,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Jo:Math.pow(Jo,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bt(Zr(this.r),Zr(this.g),Zr(this.b),Rs(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:m1,formatHex:m1,formatHex8:Z8,formatRgb:y1,toString:y1}));function m1(){return`#${Gr(this.r)}${Gr(this.g)}${Gr(this.b)}`}function Z8(){return`#${Gr(this.r)}${Gr(this.g)}${Gr(this.b)}${Gr((isNaN(this.opacity)?1:this.opacity)*255)}`}function y1(){const e=Rs(this.opacity);return`${e===1?"rgb(":"rgba("}${Zr(this.r)}, ${Zr(this.g)}, ${Zr(this.b)}${e===1?")":`, ${e})`}`}function Rs(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Gr(e){return e=Zr(e),(e<16?"0":"")+e.toString(16)}function g1(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rn(e,t,n,r)}function ZP(e){if(e instanceof rn)return new rn(e.h,e.s,e.l,e.opacity);if(e instanceof Wu||(e=eu(e)),!e)return new rn;if(e instanceof rn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,u=a-i,l=(a+i)/2;return u?(t===a?o=(n-r)/u+(n0&&l<1?0:o,new rn(o,u,l,e.opacity)}function eW(e,t,n,r){return arguments.length===1?ZP(e):new rn(e,t,n,r??1)}function rn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}_m(rn,eW,JP(Wu,{brighter(e){return e=e==null?Ds:Math.pow(Ds,e),new rn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Jo:Math.pow(Jo,e),new rn(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,i=2*n-r;return new bt(hd(e>=240?e-240:e+120,i,r),hd(e,i,r),hd(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new rn(b1(this.h),bl(this.s),bl(this.l),Rs(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=Rs(this.opacity);return`${e===1?"hsl(":"hsla("}${b1(this.h)}, ${bl(this.s)*100}%, ${bl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function b1(e){return e=(e||0)%360,e<0?e+360:e}function bl(e){return Math.max(0,Math.min(1,e||0))}function hd(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 Em=e=>()=>e;function tW(e,t){return function(n){return e+n*t}}function nW(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 rW(e){return(e=+e)==1?e_:function(t,n){return n-t?nW(t,n,e):Em(isNaN(t)?n:t)}}function e_(e,t){var n=t-e;return n?tW(e,n):Em(isNaN(e)?t:e)}const w1=function e(t){var n=rW(t);function r(i,a){var o=n((i=cp(i)).r,(a=cp(a)).r),u=n(i.g,a.g),l=n(i.b,a.b),s=e_(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=l(f),i.opacity=s(f),i+""}}return r.gamma=e,r}(1);function iW(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;in&&(a=t.slice(n,a),u[o]?u[o]+=a:u[++o]=a),(r=r[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,l.push({i:o,x:Ls(r,i)})),n=pd.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function vW(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i2?mW:vW,l=s=null,c}function c(d){return d==null||isNaN(d=+d)?a:(l||(l=u(e.map(r),t,n)))(r(o(d)))}return c.invert=function(d){return o(i((s||(s=u(t,e.map(r),Ls)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,Bs),f()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),n=Am,f()},c.clamp=function(d){return arguments.length?(o=d?!0:dt,f()):o!==dt},c.interpolate=function(d){return arguments.length?(n=d,f()):n},c.unknown=function(d){return arguments.length?(a=d,c):a},function(d,h){return r=d,i=h,f()}}function Tm(){return af()(dt,dt)}function yW(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Fs(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function sa(e){return e=Fs(Math.abs(e)),e?e[1]:NaN}function gW(e,t){return function(n,r){for(var i=n.length,a=[],o=0,u=e[0],l=0;i>0&&u>0&&(l+u+1>r&&(u=Math.max(1,r-l)),a.push(n.substring(i-=u,i+u)),!((l+=u+1)>r));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function bW(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var wW=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tu(e){if(!(t=wW.exec(e)))throw new Error("invalid format: "+e);var t;return new $m({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]})}tu.prototype=$m.prototype;function $m(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+""}$m.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 xW(e){e:for(var t=e.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var t_;function SW(e,t){var n=Fs(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(t_=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Fs(e,Math.max(0,t+a-1))[0]}function S1(e,t){var n=Fs(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const O1={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:yW,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)=>S1(e*100,t),r:S1,s:SW,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function P1(e){return e}var _1=Array.prototype.map,E1=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function OW(e){var t=e.grouping===void 0||e.thousands===void 0?P1:gW(_1.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?P1:bW(_1.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function s(c){c=tu(c);var d=c.fill,h=c.align,m=c.sign,v=c.symbol,y=c.zero,b=c.width,p=c.comma,g=c.precision,w=c.trim,x=c.type;x==="n"?(p=!0,x="g"):O1[x]||(g===void 0&&(g=12),w=!0,x="g"),(y||d==="0"&&h==="=")&&(y=!0,d="0",h="=");var S=v==="$"?n:v==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",O=v==="$"?r:/[%p]/.test(x)?o:"",P=O1[x],T=/[defgprs%]/.test(x);g=g===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g));function E($){var k=S,N=O,j,F,R;if(x==="c")N=P($)+N,$="";else{$=+$;var z=$<0||1/$<0;if($=isNaN($)?l:P(Math.abs($),g),w&&($=xW($)),z&&+$==0&&m!=="+"&&(z=!1),k=(z?m==="("?m:u:m==="-"||m==="("?"":m)+k,N=(x==="s"?E1[8+t_/3]:"")+N+(z&&m==="("?")":""),T){for(j=-1,F=$.length;++jR||R>57){N=(R===46?i+$.slice(j+1):$.slice(j))+N,$=$.slice(0,j);break}}}p&&!y&&($=t($,1/0));var C=k.length+$.length+N.length,D=C>1)+k+$+N+D.slice(C);break;default:$=D+k+$+N;break}return a($)}return E.toString=function(){return c+""},E}function f(c,d){var h=s((c=tu(c),c.type="f",c)),m=Math.max(-8,Math.min(8,Math.floor(sa(d)/3)))*3,v=Math.pow(10,-m),y=E1[8+m/3];return function(b){return h(v*b)+y}}return{format:s,formatPrefix:f}}var wl,Cm,n_;PW({thousands:",",grouping:[3],currency:["$",""]});function PW(e){return wl=OW(e),Cm=wl.format,n_=wl.formatPrefix,wl}function _W(e){return Math.max(0,-sa(Math.abs(e)))}function EW(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(sa(t)/3)))*3-sa(Math.abs(e)))}function AW(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,sa(t)-sa(e))+1}function r_(e,t,n,r){var i=lp(e,t,n),a;switch(r=tu(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=EW(i,o))&&(r.precision=a),n_(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=AW(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=_W(i))&&(r.precision=a-(r.type==="%")*2);break}}return Cm(r)}function kr(e){var t=e.domain;return e.ticks=function(n){var r=t();return op(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return r_(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],u=r[a],l,s,f=10;for(u0;){if(s=up(o,u,n),s===l)return r[i]=o,r[a]=u,t(r);if(s>0)o=Math.floor(o/s)*s,u=Math.ceil(u/s)*s;else if(s<0)o=Math.ceil(o*s)/s,u=Math.floor(u*s)/s;else break;l=s}return e},e}function zs(){var e=Tm();return e.copy=function(){return Hu(e,zs())},Xt.apply(e,arguments),kr(e)}function i_(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,Bs),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return i_(e).unknown(t)},e=arguments.length?Array.from(e,Bs):[0,1],kr(n)}function a_(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return aMath.pow(e,t)}function jW(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 $1(e){return(t,n)=>-e(-t,n)}function km(e){const t=e(A1,T1),n=t.domain;let r=10,i,a;function o(){return i=jW(r),a=kW(r),n()[0]<0?(i=$1(i),a=$1(a),e(TW,$W)):e(A1,T1),t}return t.base=function(u){return arguments.length?(r=+u,o()):r},t.domain=function(u){return arguments.length?(n(u),o()):n()},t.ticks=u=>{const l=n();let s=l[0],f=l[l.length-1];const c=f0){for(;d<=h;++d)for(m=1;mf)break;b.push(v)}}else for(;d<=h;++d)for(m=r-1;m>=1;--m)if(v=d>0?m/a(-d):m*a(d),!(vf)break;b.push(v)}b.length*2{if(u==null&&(u=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=tu(l)).precision==null&&(l.trim=!0),l=Cm(l)),u===1/0)return l;const s=Math.max(1,r*u/t.ticks().length);return f=>{let c=f/a(Math.round(i(f)));return c*rn(a_(n(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function o_(){const e=km(af()).domain([1,10]);return e.copy=()=>Hu(e,o_()).base(e.base()),Xt.apply(e,arguments),e}function C1(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function k1(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function jm(e){var t=1,n=e(C1(t),k1(t));return n.constant=function(r){return arguments.length?e(C1(t=+r),k1(t)):t},kr(n)}function u_(){var e=jm(af());return e.copy=function(){return Hu(e,u_()).constant(e.constant())},Xt.apply(e,arguments)}function j1(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function MW(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function NW(e){return e<0?-e*e:e*e}function Mm(e){var t=e(dt,dt),n=1;function r(){return n===1?e(dt,dt):n===.5?e(MW,NW):e(j1(n),j1(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},kr(t)}function Nm(){var e=Mm(af());return e.copy=function(){return Hu(e,Nm()).exponent(e.exponent())},Xt.apply(e,arguments),e}function IW(){return Nm.apply(null,arguments).exponent(.5)}function M1(e){return Math.sign(e)*e*e}function DW(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function l_(){var e=Tm(),t=[0,1],n=!1,r;function i(a){var o=DW(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(M1(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Bs)).map(M1)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return l_(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Xt.apply(i,arguments),kr(i)}function s_(){var e=[],t=[],n=[],r;function i(){var o=0,u=Math.max(1,t.length);for(n=new Array(u-1);++o0?n[u-1]:e[0],u=n?[r[n-1],t]:[r[s-1],r[s]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return r.slice()},o.copy=function(){return c_().domain([e,t]).range(i).unknown(a)},Xt.apply(kr(o),arguments)}function f_(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[Uu(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return f_().domain(e).range(t).unknown(n)},Xt.apply(i,arguments)}const vd=new Date,md=new Date;function We(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const l=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a0))return l;let s;do l.push(s=new Date(+a)),t(a,u),e(a);while(sWe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(vd.setTime(+a),md.setTime(+o),e(vd),e(md),Math.floor(n(vd,md))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Us=We(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Us.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?We(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Us);Us.range;const jn=1e3,Wt=jn*60,Mn=Wt*60,Hn=Mn*24,Im=Hn*7,N1=Hn*30,yd=Hn*365,Yr=We(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*jn)},(e,t)=>(t-e)/jn,e=>e.getUTCSeconds());Yr.range;const Dm=We(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jn)},(e,t)=>{e.setTime(+e+t*Wt)},(e,t)=>(t-e)/Wt,e=>e.getMinutes());Dm.range;const Rm=We(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Wt)},(e,t)=>(t-e)/Wt,e=>e.getUTCMinutes());Rm.range;const Lm=We(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jn-e.getMinutes()*Wt)},(e,t)=>{e.setTime(+e+t*Mn)},(e,t)=>(t-e)/Mn,e=>e.getHours());Lm.range;const Bm=We(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Mn)},(e,t)=>(t-e)/Mn,e=>e.getUTCHours());Bm.range;const Vu=We(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Wt)/Hn,e=>e.getDate()-1);Vu.range;const of=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Hn,e=>e.getUTCDate()-1);of.range;const d_=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Hn,e=>Math.floor(e/Hn));d_.range;function vi(e){return We(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())*Wt)/Im)}const uf=vi(0),Ws=vi(1),RW=vi(2),LW=vi(3),ca=vi(4),BW=vi(5),FW=vi(6);uf.range;Ws.range;RW.range;LW.range;ca.range;BW.range;FW.range;function mi(e){return We(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)/Im)}const lf=mi(0),Hs=mi(1),zW=mi(2),UW=mi(3),fa=mi(4),WW=mi(5),HW=mi(6);lf.range;Hs.range;zW.range;UW.range;fa.range;WW.range;HW.range;const Fm=We(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());Fm.range;const zm=We(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());zm.range;const Vn=We(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());Vn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:We(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)});Vn.range;const qn=We(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());qn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:We(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)});qn.range;function h_(e,t,n,r,i,a){const o=[[Yr,1,jn],[Yr,5,5*jn],[Yr,15,15*jn],[Yr,30,30*jn],[a,1,Wt],[a,5,5*Wt],[a,15,15*Wt],[a,30,30*Wt],[i,1,Mn],[i,3,3*Mn],[i,6,6*Mn],[i,12,12*Mn],[r,1,Hn],[r,2,2*Hn],[n,1,Im],[t,1,N1],[t,3,3*N1],[e,1,yd]];function u(s,f,c){const d=fy).right(o,d);if(h===o.length)return e.every(lp(s/yd,f/yd,c));if(h===0)return Us.every(Math.max(lp(s,f,c),1));const[m,v]=o[d/o[h-1][2]53)return null;"w"in L||(L.w=1),"Z"in L?(re=bd(Ga(L.y,0,1)),Le=re.getUTCDay(),re=Le>4||Le===0?Hs.ceil(re):Hs(re),re=of.offset(re,(L.V-1)*7),L.y=re.getUTCFullYear(),L.m=re.getUTCMonth(),L.d=re.getUTCDate()+(L.w+6)%7):(re=gd(Ga(L.y,0,1)),Le=re.getDay(),re=Le>4||Le===0?Ws.ceil(re):Ws(re),re=Vu.offset(re,(L.V-1)*7),L.y=re.getFullYear(),L.m=re.getMonth(),L.d=re.getDate()+(L.w+6)%7)}else("W"in L||"U"in L)&&("w"in L||(L.w="u"in L?L.u%7:"W"in L?1:0),Le="Z"in L?bd(Ga(L.y,0,1)).getUTCDay():gd(Ga(L.y,0,1)).getDay(),L.m=0,L.d="W"in L?(L.w+6)%7+L.W*7-(Le+5)%7:L.w+L.U*7-(Le+6)%7);return"Z"in L?(L.H+=L.Z/100|0,L.M+=L.Z%100,bd(L)):gd(L)}}function P(q,Q,ee,L){for(var ke=0,re=Q.length,Le=ee.length,Ie,Pt;ke=Le)return-1;if(Ie=Q.charCodeAt(ke++),Ie===37){if(Ie=Q.charAt(ke++),Pt=x[Ie in I1?Q.charAt(ke++):Ie],!Pt||(L=Pt(q,ee,L))<0)return-1}else if(Ie!=ee.charCodeAt(L++))return-1}return L}function T(q,Q,ee){var L=s.exec(Q.slice(ee));return L?(q.p=f.get(L[0].toLowerCase()),ee+L[0].length):-1}function E(q,Q,ee){var L=h.exec(Q.slice(ee));return L?(q.w=m.get(L[0].toLowerCase()),ee+L[0].length):-1}function $(q,Q,ee){var L=c.exec(Q.slice(ee));return L?(q.w=d.get(L[0].toLowerCase()),ee+L[0].length):-1}function k(q,Q,ee){var L=b.exec(Q.slice(ee));return L?(q.m=p.get(L[0].toLowerCase()),ee+L[0].length):-1}function N(q,Q,ee){var L=v.exec(Q.slice(ee));return L?(q.m=y.get(L[0].toLowerCase()),ee+L[0].length):-1}function j(q,Q,ee){return P(q,t,Q,ee)}function F(q,Q,ee){return P(q,n,Q,ee)}function R(q,Q,ee){return P(q,r,Q,ee)}function z(q){return o[q.getDay()]}function C(q){return a[q.getDay()]}function D(q){return l[q.getMonth()]}function U(q){return u[q.getMonth()]}function Y(q){return i[+(q.getHours()>=12)]}function V(q){return 1+~~(q.getMonth()/3)}function Z(q){return o[q.getUTCDay()]}function Oe(q){return a[q.getUTCDay()]}function Ne(q){return l[q.getUTCMonth()]}function st(q){return u[q.getUTCMonth()]}function mt(q){return i[+(q.getUTCHours()>=12)]}function It(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var Q=S(q+="",g);return Q.toString=function(){return q},Q},parse:function(q){var Q=O(q+="",!1);return Q.toString=function(){return q},Q},utcFormat:function(q){var Q=S(q+="",w);return Q.toString=function(){return q},Q},utcParse:function(q){var Q=O(q+="",!0);return Q.toString=function(){return q},Q}}}var I1={"-":"",_:" ",0:"0"},Xe=/^\s*\d+/,XW=/^%/,QW=/[\\^$*+?|[\]().{}]/g;function ue(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a[t.toLowerCase(),n]))}function ZW(e,t,n){var r=Xe.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function e5(e,t,n){var r=Xe.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function t5(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function n5(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function r5(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function D1(e,t,n){var r=Xe.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function R1(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function i5(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 a5(e,t,n){var r=Xe.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function o5(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function L1(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function u5(e,t,n){var r=Xe.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function B1(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function l5(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function s5(e,t,n){var r=Xe.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function c5(e,t,n){var r=Xe.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function f5(e,t,n){var r=Xe.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function d5(e,t,n){var r=XW.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function h5(e,t,n){var r=Xe.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function p5(e,t,n){var r=Xe.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function F1(e,t){return ue(e.getDate(),t,2)}function v5(e,t){return ue(e.getHours(),t,2)}function m5(e,t){return ue(e.getHours()%12||12,t,2)}function y5(e,t){return ue(1+Vu.count(Vn(e),e),t,3)}function p_(e,t){return ue(e.getMilliseconds(),t,3)}function g5(e,t){return p_(e,t)+"000"}function b5(e,t){return ue(e.getMonth()+1,t,2)}function w5(e,t){return ue(e.getMinutes(),t,2)}function x5(e,t){return ue(e.getSeconds(),t,2)}function S5(e){var t=e.getDay();return t===0?7:t}function O5(e,t){return ue(uf.count(Vn(e)-1,e),t,2)}function v_(e){var t=e.getDay();return t>=4||t===0?ca(e):ca.ceil(e)}function P5(e,t){return e=v_(e),ue(ca.count(Vn(e),e)+(Vn(e).getDay()===4),t,2)}function _5(e){return e.getDay()}function E5(e,t){return ue(Ws.count(Vn(e)-1,e),t,2)}function A5(e,t){return ue(e.getFullYear()%100,t,2)}function T5(e,t){return e=v_(e),ue(e.getFullYear()%100,t,2)}function $5(e,t){return ue(e.getFullYear()%1e4,t,4)}function C5(e,t){var n=e.getDay();return e=n>=4||n===0?ca(e):ca.ceil(e),ue(e.getFullYear()%1e4,t,4)}function k5(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ue(t/60|0,"0",2)+ue(t%60,"0",2)}function z1(e,t){return ue(e.getUTCDate(),t,2)}function j5(e,t){return ue(e.getUTCHours(),t,2)}function M5(e,t){return ue(e.getUTCHours()%12||12,t,2)}function N5(e,t){return ue(1+of.count(qn(e),e),t,3)}function m_(e,t){return ue(e.getUTCMilliseconds(),t,3)}function I5(e,t){return m_(e,t)+"000"}function D5(e,t){return ue(e.getUTCMonth()+1,t,2)}function R5(e,t){return ue(e.getUTCMinutes(),t,2)}function L5(e,t){return ue(e.getUTCSeconds(),t,2)}function B5(e){var t=e.getUTCDay();return t===0?7:t}function F5(e,t){return ue(lf.count(qn(e)-1,e),t,2)}function y_(e){var t=e.getUTCDay();return t>=4||t===0?fa(e):fa.ceil(e)}function z5(e,t){return e=y_(e),ue(fa.count(qn(e),e)+(qn(e).getUTCDay()===4),t,2)}function U5(e){return e.getUTCDay()}function W5(e,t){return ue(Hs.count(qn(e)-1,e),t,2)}function H5(e,t){return ue(e.getUTCFullYear()%100,t,2)}function V5(e,t){return e=y_(e),ue(e.getUTCFullYear()%100,t,2)}function q5(e,t){return ue(e.getUTCFullYear()%1e4,t,4)}function K5(e,t){var n=e.getUTCDay();return e=n>=4||n===0?fa(e):fa.ceil(e),ue(e.getUTCFullYear()%1e4,t,4)}function G5(){return"+0000"}function U1(){return"%"}function W1(e){return+e}function H1(e){return Math.floor(+e/1e3)}var xi,g_,b_;Y5({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 Y5(e){return xi=YW(e),g_=xi.format,xi.parse,b_=xi.utcFormat,xi.utcParse,xi}function X5(e){return new Date(e)}function Q5(e){return e instanceof Date?+e:+new Date(+e)}function Um(e,t,n,r,i,a,o,u,l,s){var f=Tm(),c=f.invert,d=f.domain,h=s(".%L"),m=s(":%S"),v=s("%I:%M"),y=s("%I %p"),b=s("%a %d"),p=s("%b %d"),g=s("%B"),w=s("%Y");function x(S){return(l(S)t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>F8(e,a/r))},n.copy=function(){return O_(t).domain(e)},Qn.apply(n,arguments)}function cf(){var e=0,t=.5,n=1,r=1,i,a,o,u,l,s=dt,f,c=!1,d;function h(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-a)*(r*vt}var a6=i6,o6=A_,u6=a6,l6=Ca;function s6(e){return e&&e.length?o6(e,l6,u6):void 0}var c6=s6;const ff=me(c6);function f6(e,t){return ee.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=re.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};G.decimalPlaces=G.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*xe;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};G.dividedBy=G.div=function(e){return Bn(this,new this.constructor(e))};G.dividedToIntegerBy=G.idiv=function(e){var t=this,n=t.constructor;return ve(Bn(t,new n(e),0,1),n.precision)};G.equals=G.eq=function(e){return!this.cmp(e)};G.exponent=function(){return Re(this)};G.greaterThan=G.gt=function(e){return this.cmp(e)>0};G.greaterThanOrEqualTo=G.gte=function(e){return this.cmp(e)>=0};G.isInteger=G.isint=function(){return this.e>this.d.length-2};G.isNegative=G.isneg=function(){return this.s<0};G.isPositive=G.ispos=function(){return this.s>0};G.isZero=function(){return this.s===0};G.lessThan=G.lt=function(e){return this.cmp(e)<0};G.lessThanOrEqualTo=G.lte=function(e){return this.cmp(e)<1};G.logarithm=G.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Tt))throw Error(Yt+"NaN");if(n.s<1)throw Error(Yt+(n.s?"NaN":"-Infinity"));return n.eq(Tt)?new r(0):(_e=!1,t=Bn(nu(n,a),nu(e,a),a),_e=!0,ve(t,i))};G.minus=G.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?k_(t,e):$_(t,(e.s=-e.s,e))};G.modulo=G.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(Yt+"NaN");return n.s?(_e=!1,t=Bn(n,e,0,1).times(e),_e=!0,n.minus(t)):ve(new r(n),i)};G.naturalExponential=G.exp=function(){return C_(this)};G.naturalLogarithm=G.ln=function(){return nu(this)};G.negated=G.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};G.plus=G.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?$_(t,e):k_(t,(e.s=-e.s,e))};G.precision=G.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ei+e);if(t=Re(i)+1,r=i.d.length-1,n=r*xe+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};G.squareRoot=G.sqrt=function(){var e,t,n,r,i,a,o,u=this,l=u.constructor;if(u.s<1){if(!u.s)return new l(0);throw Error(Yt+"NaN")}for(e=Re(u),_e=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=yn(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ma((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(i.toString()),n=l.precision,i=o=n+3;;)if(a=r,r=a.plus(Bn(u,a,o+2)).times(.5),yn(a.d).slice(0,o)===(t=yn(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ve(a,n+1,0),a.times(a).eq(u)){r=a;break}}else if(t!="9999")break;o+=4}return _e=!0,ve(r,n)};G.times=G.mul=function(e){var t,n,r,i,a,o,u,l,s,f=this,c=f.constructor,d=f.d,h=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,n=f.e+e.e,l=d.length,s=h.length,l=0;){for(t=0,i=l+r;i>r;)u=a[i]+h[r]*d[i-r-1]+t,a[i--]=u%Ve|0,t=u/Ve|0;a[i]=(a[i]+t)%Ve|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,_e?ve(e,c.precision):e};G.toDecimalPlaces=G.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Sn(e,0,ja),t===void 0?t=r.rounding:Sn(t,0,8),ve(n,e+Re(n)+1,t))};G.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=ui(r,!0):(Sn(e,0,ja),t===void 0?t=i.rounding:Sn(t,0,8),r=ve(new i(r),e+1,t),n=ui(r,!0,e+1)),n};G.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?ui(i):(Sn(e,0,ja),t===void 0?t=a.rounding:Sn(t,0,8),r=ve(new a(i),e+Re(i)+1,t),n=ui(r.abs(),!1,e+Re(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};G.toInteger=G.toint=function(){var e=this,t=e.constructor;return ve(new t(e),Re(e)+1,t.rounding)};G.toNumber=function(){return+this};G.toPower=G.pow=function(e){var t,n,r,i,a,o,u=this,l=u.constructor,s=12,f=+(e=new l(e));if(!e.s)return new l(Tt);if(u=new l(u),!u.s){if(e.s<1)throw Error(Yt+"Infinity");return u}if(u.eq(Tt))return u;if(r=l.precision,e.eq(Tt))return ve(u,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=u.s,o){if((n=f<0?-f:f)<=T_){for(i=new l(Tt),t=Math.ceil(r/xe+4),_e=!1;n%2&&(i=i.times(u),K1(i.d,t)),n=Ma(n/2),n!==0;)u=u.times(u),K1(u.d,t);return _e=!0,e.s<0?new l(Tt).div(i):ve(i,r)}}else if(a<0)throw Error(Yt+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,_e=!1,i=e.times(nu(u,r+s)),_e=!0,i=C_(i),i.s=a,i};G.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=Re(i),r=ui(i,n<=a.toExpNeg||n>=a.toExpPos)):(Sn(e,1,ja),t===void 0?t=a.rounding:Sn(t,0,8),i=ve(new a(i),e,t),n=Re(i),r=ui(i,e<=n||n<=a.toExpNeg,e)),r};G.toSignificantDigits=G.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Sn(e,1,ja),t===void 0?t=r.rounding:Sn(t,0,8)),ve(new r(n),e,t)};G.toString=G.valueOf=G.val=G.toJSON=G[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Re(e),n=e.constructor;return ui(e,t<=n.toExpNeg||t>=n.toExpPos)};function $_(e,t){var n,r,i,a,o,u,l,s,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),_e?ve(t,c):t;if(l=e.d,s=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(r=l,a=-a,u=s.length):(r=s,i=o,u=l.length),o=Math.ceil(c/xe),u=o>u?o+1:u+1,a>u&&(a=u,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(u=l.length,a=s.length,u-a<0&&(a=u,r=s,s=l,l=r),n=0;a;)n=(l[--a]=l[a]+s[a]+n)/Ve|0,l[a]%=Ve;for(n&&(l.unshift(n),++i),u=l.length;l[--u]==0;)l.pop();return t.d=l,t.e=i,_e?ve(t,c):t}function Sn(e,t,n){if(e!==~~e||en)throw Error(ei+e)}function yn(e){var t,n,r,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(u=l=0;ui[u]?1:-1;break}return l}function n(r,i,a){for(var o=0;a--;)r[a]-=o,o=r[a]1;)r.shift()}return function(r,i,a,o){var u,l,s,f,c,d,h,m,v,y,b,p,g,w,x,S,O,P,T=r.constructor,E=r.s==i.s?1:-1,$=r.d,k=i.d;if(!r.s)return new T(r);if(!i.s)throw Error(Yt+"Division by zero");for(l=r.e-i.e,O=k.length,x=$.length,h=new T(E),m=h.d=[],s=0;k[s]==($[s]||0);)++s;if(k[s]>($[s]||0)&&--l,a==null?p=a=T.precision:o?p=a+(Re(r)-Re(i))+1:p=a,p<0)return new T(0);if(p=p/xe+2|0,s=0,O==1)for(f=0,k=k[0],p++;(s1&&(k=e(k,f),$=e($,f),O=k.length,x=$.length),w=O,v=$.slice(0,O),y=v.length;y=Ve/2&&++S;do f=0,u=t(k,v,O,y),u<0?(b=v[0],O!=y&&(b=b*Ve+(v[1]||0)),f=b/S|0,f>1?(f>=Ve&&(f=Ve-1),c=e(k,f),d=c.length,y=v.length,u=t(c,v,d,y),u==1&&(f--,n(c,O16)throw Error(qm+Re(e));if(!e.s)return new f(Tt);for(t==null?(_e=!1,u=c):u=t,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(r=Math.log(Ur(2,s))/Math.LN10*2+5|0,u+=r,n=i=a=new f(Tt),f.precision=u;;){if(i=ve(i.times(e),u),n=n.times(++l),o=a.plus(Bn(i,n,u)),yn(o.d).slice(0,u)===yn(a.d).slice(0,u)){for(;s--;)a=ve(a.times(a),u);return f.precision=c,t==null?(_e=!0,ve(a,c)):a}a=o}}function Re(e){for(var t=e.e*xe,n=e.d[0];n>=10;n/=10)t++;return t}function wd(e,t,n){if(t>e.LN10.sd())throw _e=!0,n&&(e.precision=n),Error(Yt+"LN10 precision limit exceeded");return ve(new e(e.LN10),t)}function rr(e){for(var t="";e--;)t+="0";return t}function nu(e,t){var n,r,i,a,o,u,l,s,f,c=1,d=10,h=e,m=h.d,v=h.constructor,y=v.precision;if(h.s<1)throw Error(Yt+(h.s?"NaN":"-Infinity"));if(h.eq(Tt))return new v(0);if(t==null?(_e=!1,s=y):s=t,h.eq(10))return t==null&&(_e=!0),wd(v,s);if(s+=d,v.precision=s,n=yn(m),r=n.charAt(0),a=Re(h),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)h=h.times(e),n=yn(h.d),r=n.charAt(0),c++;a=Re(h),r>1?(h=new v("0."+n),a++):h=new v(r+"."+n.slice(1))}else return l=wd(v,s+2,y).times(a+""),h=nu(new v(r+"."+n.slice(1)),s-d).plus(l),v.precision=y,t==null?(_e=!0,ve(h,y)):h;for(u=o=h=Bn(h.minus(Tt),h.plus(Tt),s),f=ve(h.times(h),s),i=3;;){if(o=ve(o.times(f),s),l=u.plus(Bn(o,new v(i),s)),yn(l.d).slice(0,s)===yn(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(wd(v,s+2,y).times(a+""))),u=Bn(u,new v(c),s),v.precision=y,t==null?(_e=!0,ve(u,y)):u;u=l,i+=2}}function q1(e,t){var n,r,i;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(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=Ma(n/xe),e.d=[],r=(n+1)%xe,n<0&&(r+=xe),rVs||e.e<-Vs))throw Error(qm+n)}else e.s=0,e.e=0,e.d=[0];return e}function ve(e,t,n){var r,i,a,o,u,l,s,f,c=e.d;for(o=1,a=c[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=xe,i=t,s=c[f=0];else{if(f=Math.ceil((r+1)/xe),a=c.length,f>=a)return e;for(s=a=c[f],o=1;a>=10;a/=10)o++;r%=xe,i=r-xe+o}if(n!==void 0&&(a=Ur(10,o-i-1),u=s/a%10|0,l=t<0||c[f+1]!==void 0||s%a,l=n<4?(u||l)&&(n==0||n==(e.s<0?3:2)):u>5||u==5&&(n==4||l||n==6&&(r>0?i>0?s/Ur(10,o-i):0:c[f-1])%10&1||n==(e.s<0?8:7))),t<1||!c[0])return l?(a=Re(e),c.length=1,t=t-a-1,c[0]=Ur(10,(xe-t%xe)%xe),e.e=Ma(-t/xe)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(r==0?(c.length=f,a=1,f--):(c.length=f+1,a=Ur(10,xe-r),c[f]=i>0?(s/Ur(10,o-i)%Ur(10,i)|0)*a:0),l)for(;;)if(f==0){(c[0]+=a)==Ve&&(c[0]=1,++e.e);break}else{if(c[f]+=a,c[f]!=Ve)break;c[f--]=0,a=1}for(r=c.length;c[--r]===0;)c.pop();if(_e&&(e.e>Vs||e.e<-Vs))throw Error(qm+Re(e));return e}function k_(e,t){var n,r,i,a,o,u,l,s,f,c,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),_e?ve(t,h):t;if(l=e.d,c=t.d,r=t.e,s=e.e,l=l.slice(),o=s-r,o){for(f=o<0,f?(n=l,o=-o,u=c.length):(n=c,r=s,u=l.length),i=Math.max(Math.ceil(h/xe),u)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=l.length,u=c.length,f=i0;--i)l[u++]=0;for(i=c.length;i>o;){if(l[--i]0?a=a.charAt(0)+"."+a.slice(1)+rr(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+rr(-i-1)+a,n&&(r=n-o)>0&&(a+=rr(r))):i>=o?(a+=rr(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+rr(r))):((r=i+1)0&&(i+1===o&&(a+="."),a+=rr(r))),e.s<0?"-"+a:a}function K1(e,t){if(e.length>t)return e.length=t,!0}function j_(e){var t,n,r;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(ei+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return q1(o,a.toString())}else if(typeof a!="string")throw Error(ei+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,M6.test(a))q1(o,a);else throw Error(ei+a)}if(i.prototype=G,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=j_,i.config=i.set=N6,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(ei+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(ei+n+": "+r);return this}var Km=j_(j6);Tt=new Km(1);const he=Km;function I6(e){return B6(e)||L6(e)||R6(e)||D6()}function D6(){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 R6(e,t){if(e){if(typeof e=="string")return hp(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 hp(e,t)}}function L6(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function B6(e){if(Array.isArray(e))return hp(e)}function hp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,i):e(t-o,G1(function(){for(var u=arguments.length,l=new Array(u),s=0;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(r=(u=o.next()).done)&&(n.push(u.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,a=l}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function eH(e){if(Array.isArray(e))return e}function R_(e){var t=ru(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]}function L_(e,t,n){if(e.lte(0))return new he(0);var r=pf.getDigitCount(e.toNumber()),i=new he(10).pow(r),a=e.div(i),o=r!==1?.05:.1,u=new he(Math.ceil(a.div(o).toNumber())).add(n).mul(o),l=u.mul(i);return t?l:new he(Math.ceil(l))}function tH(e,t,n){var r=1,i=new he(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new he(10).pow(pf.getDigitCount(e)-1),i=new he(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new he(Math.floor(e)))}else e===0?i=new he(Math.floor((t-1)/2)):n||(i=new he(Math.floor(e)));var o=Math.floor((t-1)/2),u=W6(U6(function(l){return i.add(new he(l-o).mul(r)).toNumber()}),pp);return u(0,t)}function B_(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new he(0),tickMin:new he(0),tickMax:new he(0)};var a=L_(new he(t).sub(e).div(n-1),r,i),o;e<=0&&t>=0?o=new he(0):(o=new he(e).add(t).div(2),o=o.sub(new he(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new he(t).sub(o).div(a).toNumber()),s=u+l+1;return s>n?B_(e,t,n,r,i+1):(s0?l+(n-s):l,u=t>0?u:u+(n-s)),{step:a,tickMin:o.sub(new he(u).mul(a)),tickMax:o.add(new he(l).mul(a))})}function nH(e){var t=ru(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=R_([n,r]),l=ru(u,2),s=l[0],f=l[1];if(s===-1/0||f===1/0){var c=f===1/0?[s].concat(mp(pp(0,i-1).map(function(){return 1/0}))):[].concat(mp(pp(0,i-1).map(function(){return-1/0})),[f]);return n>r?vp(c):c}if(s===f)return tH(s,i,a);var d=B_(s,f,o,a),h=d.step,m=d.tickMin,v=d.tickMax,y=pf.rangeStep(m,v.add(new he(.1).mul(h)),h);return n>r?vp(y):y}function rH(e,t){var n=ru(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=R_([r,i]),u=ru(o,2),l=u[0],s=u[1];if(l===-1/0||s===1/0)return[r,i];if(l===s)return[l];var f=Math.max(t,2),c=L_(new he(s).sub(l).div(f-1),a,0),d=[].concat(mp(pf.rangeStep(new he(l),new he(s).sub(new he(.99).mul(c)),c)),[s]);return r>i?vp(d):d}var iH=I_(nH),aH=I_(rH),oH="Invariant failed";function li(e,t){if(!e)throw new Error(oH)}var uH=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function qs(){return qs=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pH(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function vf(e){var t=e.offset,n=e.layout,r=e.width,i=e.dataKey,a=e.data,o=e.dataPointFormatter,u=e.xAxis,l=e.yAxis,s=hH(e,uH),f=le(s,!1);e.direction==="x"&&u.type!=="number"&&li(!1);var c=a.map(function(d){var h=o(d,i),m=h.x,v=h.y,y=h.value,b=h.errorVal;if(!b)return null;var p=[],g,w;if(Array.isArray(b)){var x=lH(b,2);g=x[0],w=x[1]}else g=w=b;if(n==="vertical"){var S=u.scale,O=v+t,P=O+r,T=O-r,E=S(y-g),$=S(y+w);p.push({x1:$,y1:P,x2:$,y2:T}),p.push({x1:E,y1:O,x2:$,y2:O}),p.push({x1:E,y1:P,x2:E,y2:T})}else if(n==="horizontal"){var k=l.scale,N=m+t,j=N-r,F=N+r,R=k(y-g),z=k(y+w);p.push({x1:j,y1:z,x2:F,y2:z}),p.push({x1:N,y1:R,x2:N,y2:z}),p.push({x1:j,y1:R,x2:F,y2:R})}return _.createElement(Ke,qs({className:"recharts-errorBar",key:"bar-".concat(p.map(function(C){return"".concat(C.x1,"-").concat(C.x2,"-").concat(C.y1,"-").concat(C.y2)}))},f),p.map(function(C){return _.createElement("line",qs({},C,{key:"line-".concat(C.x1,"-").concat(C.x2,"-").concat(C.y1,"-").concat(C.y2)}))}))});return _.createElement(Ke,{className:"recharts-errorBars"},c)}vf.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};vf.displayName="ErrorBar";function iu(e){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iu(e)}function X1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xd(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,s=0;s0?i[s-1].coordinate:i[u-1].coordinate,c=i[s].coordinate,d=s>=u-1?i[0].coordinate:i[s+1].coordinate,h=void 0;if(an(c-f)!==an(d-c)){var m=[];if(an(d-c)===an(l[1]-l[0])){h=d;var v=c+l[1]-l[0];m[0]=Math.min(v,(v+f)/2),m[1]=Math.max(v,(v+f)/2)}else{h=f;var y=d+l[1]-l[0];m[0]=Math.min(c,(y+c)/2),m[1]=Math.max(c,(y+c)/2)}var b=[Math.min(c,(h+c)/2),Math.max(c,(h+c)/2)];if(t>b[0]&&t<=b[1]||t>=m[0]&&t<=m[1]){o=i[s].index;break}}else{var p=Math.min(f,d),g=Math.max(f,d);if(t>(p+c)/2&&t<=(g+c)/2){o=i[s].index;break}}}else for(var w=0;w0&&w(r[w].coordinate+r[w-1].coordinate)/2&&t<=(r[w].coordinate+r[w+1].coordinate)/2||w===u-1&&t>(r[w].coordinate+r[w-1].coordinate)/2){o=r[w].index;break}return o},Gm=function(t){var n=t,r=n.type.displayName,i=t.props,a=i.stroke,o=i.fill,u;switch(r){case"Line":u=a;break;case"Area":case"Radar":u=a&&a!=="none"?a:o;break;default:u=o;break}return u},_H=function(t){var n=t.barSize,r=t.stackGroups,i=r===void 0?{}:r;if(!i)return{};for(var a={},o=Object.keys(i),u=0,l=o.length;u=0});if(y&&y.length){var b=y[0].props.barSize,p=y[0].props[v];a[p]||(a[p]=[]),a[p].push({item:y[0],stackList:y.slice(1),barSize:ce(b)?n:b})}}return a},EH=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,l=o.length;if(l<1)return null;var s=na(n,i,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=i/l,m=o.reduce(function(w,x){return w+x.barSize||0},0);m+=(l-1)*s,m>=i&&(m-=(l-1)*s,s=0),m>=i&&h>0&&(d=!0,h*=.9,m=l*h);var v=(i-m)/2>>0,y={offset:v-s,size:0};f=o.reduce(function(w,x){var S={item:x.item,position:{offset:y.offset+y.size+s,size:d?h:x.barSize}},O=[].concat(J1(w),[S]);return y=O[O.length-1].position,x.stackList&&x.stackList.length&&x.stackList.forEach(function(P){O.push({item:P,position:y})}),O},c)}else{var b=na(r,i,0,!0);i-2*b-(l-1)*s<=0&&(s=0);var p=(i-2*b-(l-1)*s)/l;p>1&&(p>>=0);var g=u===+u?Math.min(p,u):p;f=o.reduce(function(w,x,S){var O=[].concat(J1(w),[{item:x.item,position:{offset:b+(p+s)*S+(p-g)/2,size:g}}]);return x.stackList&&x.stackList.length&&x.stackList.forEach(function(P){O.push({item:P,position:O[O.length-1].position})}),O},c)}return f},AH=function(t,n,r,i){var a=r.children,o=r.width,u=r.margin,l=o-(u.left||0)-(u.right||0),s=F_({children:a,legendWidth:l});if(s){var f=i||{},c=f.width,d=f.height,h=s.align,m=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&m==="middle")&&h!=="center"&&H(t[h]))return zt(zt({},t),{},qi({},h,t[h]+(c||0)));if((v==="horizontal"||v==="vertical"&&h==="center")&&m!=="middle"&&H(t[m]))return zt(zt({},t),{},qi({},m,t[m]+(d||0)))}return t},TH=function(t,n,r){return ce(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},z_=function(t,n,r,i,a){var o=n.props.children,u=ln(o,vf).filter(function(s){return TH(i,a,s.props.direction)});if(u&&u.length){var l=u.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var c=On(f,r);if(ce(c))return s;var d=Array.isArray(c)?[df(c),ff(c)]:[c,c],h=l.reduce(function(m,v){var y=On(f,v,0),b=d[0]-Math.abs(Array.isArray(y)?y[0]:y),p=d[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(b,m[0]),Math.max(p,m[1])]},[1/0,-1/0]);return[Math.min(h[0],s[0]),Math.max(h[1],s[1])]},[1/0,-1/0])}return null},$H=function(t,n,r,i,a){var o=n.map(function(u){return z_(t,u,r,a,i)}).filter(function(u){return!ce(u)});return o&&o.length?o.reduce(function(u,l){return[Math.min(u[0],l[0]),Math.max(u[1],l[1])]},[1/0,-1/0]):null},U_=function(t,n,r,i,a){var o=n.map(function(l){var s=l.props.dataKey;return r==="number"&&s&&z_(t,l,s,i)||xo(t,s,r,a)});if(r==="number")return o.reduce(function(l,s){return[Math.min(l[0],s[0]),Math.max(l[1],s[1])]},[1/0,-1/0]);var u={};return o.reduce(function(l,s){for(var f=0,c=s.length;f=2?an(u[0]-u[1])*2*s:s,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var d=a?a.indexOf(c):c;return{coordinate:i(d)+s,value:c,offset:s}});return f.filter(function(c){return!Fu(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,d){return{coordinate:i(c)+s,value:c,index:d,offset:s}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(c){return{coordinate:i(c)+s,value:c,offset:s}}):i.domain().map(function(c,d){return{coordinate:i(c)+s,value:a?a[c]:c,index:d,offset:s}})},Sd=new WeakMap,xl=function(t,n){if(typeof n!="function")return t;Sd.has(t)||Sd.set(t,new WeakMap);var r=Sd.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},CH=function(t,n,r){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:Qo(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:zs(),realScaleType:"linear"}:a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:wo(),realScaleType:"point"}:a==="category"?{scale:Qo(),realScaleType:"band"}:{scale:zs(),realScaleType:"linear"};if(Bu(i)){var l="scale".concat(Qc(i));return{scale:(V1[l]||wo)(),realScaleType:V1[l]?l:"point"}}return te(i)?{scale:i}:{scale:wo(),realScaleType:"point"}},Z1=1e-4,kH=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),a=Math.min(i[0],i[1])-Z1,o=Math.max(i[0],i[1])+Z1,u=t(n[0]),l=t(n[r-1]);(uo||lo)&&t.domain([n[0],n[r-1]])}},jH=function(t,n){if(!t)return null;for(var r=0,i=t.length;ri)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]=0?(t[u][r][0]=a,t[u][r][1]=a+l,a=t[u][r][1]):(t[u][r][0]=o,t[u][r][1]=o+l,o=t[u][r][1])}},IH=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r=0?(t[o][r][0]=a,t[o][r][1]=a+u,a=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},DH={sign:NH,expand:sD,none:ra,silhouette:cD,wiggle:fD,positive:IH},RH=function(t,n,r){var i=n.map(function(u){return u.props.dataKey}),a=DH[r],o=lD().keys(i).value(function(u,l){return+On(u,l,0)}).order(Vh).offset(a);return o(t)},LH=function(t,n,r,i,a,o){if(!t)return null;var u=o?n.reverse():n,l={},s=u.reduce(function(c,d){var h=d.props,m=h.stackId,v=h.hide;if(v)return c;var y=d.props[r],b=c[y]||{hasStack:!1,stackGroups:{}};if(Ue(m)){var p=b.stackGroups[m]||{numericAxisId:r,cateAxisId:i,items:[]};p.items.push(d),b.hasStack=!0,b.stackGroups[m]=p}else b.stackGroups[Xc("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[d]};return zt(zt({},c),{},qi({},y,b))},l),f={};return Object.keys(s).reduce(function(c,d){var h=s[d];if(h.hasStack){var m={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(v,y){var b=h.stackGroups[y];return zt(zt({},v),{},qi({},y,{numericAxisId:r,cateAxisId:i,items:b.items,stackedData:RH(t,b.items,a)}))},m)}return zt(zt({},c),{},qi({},d,h))},f)},BH=function(t,n){var r=n.realScaleType,i=n.type,a=n.tickCount,o=n.originalDomain,u=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var s=t.domain();if(!s.length)return null;var f=iH(s,a,u);return t.domain([df(f),ff(f)]),{niceTicks:f}}if(a&&i==="number"){var c=t.domain(),d=aH(c,a,u);return{niceTicks:d}}return null},eb=function(t){var n=t.axis,r=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(n.type==="category")return r[u]?r[u].coordinate+i:null;var l=On(o,n.dataKey,n.domain[u]);return ce(l)?null:n.scale(l)-a/2+i},FH=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return i<=0&&a>=0?0:a<0?a:i}return r[0]},zH=function(t,n){var r=t.props.stackId;if(Ue(r)){var i=n[r];if(i){var a=i.items.indexOf(t);return a>=0?i.stackedData[a]:null}}return null},UH=function(t){return t.reduce(function(n,r){return[df(r.concat([n[0]]).filter(H)),ff(r.concat([n[1]]).filter(H))]},[1/0,-1/0])},V_=function(t,n,r){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,l=u.reduce(function(s,f){var c=UH(f.slice(n,r+1));return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},tb=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,nb=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,bp=function(t,n,r){if(te(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(H(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(tb.test(t[0])){var a=+tb.exec(t[0])[1];i[0]=n[0]-a}else te(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(H(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(nb.test(t[1])){var o=+nb.exec(t[1])[1];i[1]=n[1]+o}else te(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Ks=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var a=xm(n,function(c){return c.coordinate}),o=1/0,u=1,l=a.length;uo&&(s=2*Math.PI-s),{radius:u,angle:qH(s),angleInRadian:s}},YH=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360),o=Math.min(i,a);return{startAngle:n-o*360,endAngle:r-o*360}},XH=function(t,n){var r=n.startAngle,i=n.endAngle,a=Math.floor(r/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},ob=function(t,n){var r=t.x,i=t.y,a=GH({x:r,y:i},n),o=a.radius,u=a.angle,l=n.innerRadius,s=n.outerRadius;if(os)return!1;if(o===0)return!0;var f=YH(n),c=f.startAngle,d=f.endAngle,h=u,m;if(c<=d){for(;h>d;)h-=360;for(;h=c&&h<=d}else{for(;h>c;)h-=360;for(;h=d&&h<=c}return m?ab(ab({},n),{},{radius:o,angle:XH(h,n)}):null};function uu(e){"@babel/helpers - typeof";return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uu(e)}var QH=["offset"];function JH(e){return n9(e)||t9(e)||e9(e)||ZH()}function ZH(){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 e9(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 t9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function n9(e){if(Array.isArray(e))return wp(e)}function wp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function i9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function ub(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t=0?1:-1,g,w;i==="insideStart"?(g=h+p*o,w=v):i==="insideEnd"?(g=m-p*o,w=!v):i==="end"&&(g=m+p*o,w=v),w=b<=0?w:!w;var x=Ze(s,f,y,g),S=Ze(s,f,y,g+(w?1:-1)*359),O="M".concat(x.x,",").concat(x.y,` - A`).concat(y,",").concat(y,",0,1,").concat(w?0:1,`, - `).concat(S.x,",").concat(S.y),P=ce(t.id)?Xc("recharts-radial-line-"):t.id;return _.createElement("text",lu({},r,{dominantBaseline:"central",className:pe("recharts-radial-bar-label",u)}),_.createElement("defs",null,_.createElement("path",{id:P,d:O})),_.createElement("textPath",{xlinkHref:"#".concat(P)},n))},f9=function(t){var n=t.viewBox,r=t.offset,i=t.position,a=n,o=a.cx,u=a.cy,l=a.innerRadius,s=a.outerRadius,f=a.startAngle,c=a.endAngle,d=(f+c)/2;if(i==="outside"){var h=Ze(o,u,s+r,d),m=h.x,v=h.y;return{x:m,y:v,textAnchor:m>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var y=(l+s)/2,b=Ze(o,u,y,d),p=b.x,g=b.y;return{x:p,y:g,textAnchor:"middle",verticalAnchor:"middle"}},d9=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,a=t.position,o=n,u=o.x,l=o.y,s=o.width,f=o.height,c=f>=0?1:-1,d=c*i,h=c>0?"end":"start",m=c>0?"start":"end",v=s>=0?1:-1,y=v*i,b=v>0?"end":"start",p=v>0?"start":"end";if(a==="top"){var g={x:u+s/2,y:l-c*i,textAnchor:"middle",verticalAnchor:h};return Be(Be({},g),r?{height:Math.max(l-r.y,0),width:s}:{})}if(a==="bottom"){var w={x:u+s/2,y:l+f+d,textAnchor:"middle",verticalAnchor:m};return Be(Be({},w),r?{height:Math.max(r.y+r.height-(l+f),0),width:s}:{})}if(a==="left"){var x={x:u-y,y:l+f/2,textAnchor:b,verticalAnchor:"middle"};return Be(Be({},x),r?{width:Math.max(x.x-r.x,0),height:f}:{})}if(a==="right"){var S={x:u+s+y,y:l+f/2,textAnchor:p,verticalAnchor:"middle"};return Be(Be({},S),r?{width:Math.max(r.x+r.width-S.x,0),height:f}:{})}var O=r?{width:s,height:f}:{};return a==="insideLeft"?Be({x:u+y,y:l+f/2,textAnchor:p,verticalAnchor:"middle"},O):a==="insideRight"?Be({x:u+s-y,y:l+f/2,textAnchor:b,verticalAnchor:"middle"},O):a==="insideTop"?Be({x:u+s/2,y:l+d,textAnchor:"middle",verticalAnchor:m},O):a==="insideBottom"?Be({x:u+s/2,y:l+f-d,textAnchor:"middle",verticalAnchor:h},O):a==="insideTopLeft"?Be({x:u+y,y:l+d,textAnchor:p,verticalAnchor:m},O):a==="insideTopRight"?Be({x:u+s-y,y:l+d,textAnchor:b,verticalAnchor:m},O):a==="insideBottomLeft"?Be({x:u+y,y:l+f-d,textAnchor:p,verticalAnchor:h},O):a==="insideBottomRight"?Be({x:u+s-y,y:l+f-d,textAnchor:b,verticalAnchor:h},O):Pa(a)&&(H(a.x)||Kr(a.x))&&(H(a.y)||Kr(a.y))?Be({x:u+na(a.x,s),y:l+na(a.y,f),textAnchor:"end",verticalAnchor:"end"},O):Be({x:u+s/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},O)},h9=function(t){return"cx"in t&&H(t.cx)};function ot(e){var t=e.offset,n=t===void 0?5:t,r=r9(e,QH),i=Be({offset:n},r),a=i.viewBox,o=i.position,u=i.value,l=i.children,s=i.content,f=i.className,c=f===void 0?"":f,d=i.textBreakAll;if(!a||ce(u)&&ce(l)&&!A.isValidElement(s)&&!te(s))return null;if(A.isValidElement(s))return A.cloneElement(s,i);var h;if(te(s)){if(h=A.createElement(s,i),A.isValidElement(h))return h}else h=l9(i);var m=h9(a),v=le(i,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return c9(i,h,v);var y=m?f9(i):d9(i);return _.createElement(Ns,lu({className:pe("recharts-label",c)},v,y,{breakAll:d}),h)}ot.displayName="Label";var K_=function(t){var n=t.cx,r=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,l=t.radius,s=t.innerRadius,f=t.outerRadius,c=t.x,d=t.y,h=t.top,m=t.left,v=t.width,y=t.height,b=t.clockWise,p=t.labelViewBox;if(p)return p;if(H(v)&&H(y)){if(H(c)&&H(d))return{x:c,y:d,width:v,height:y};if(H(h)&&H(m))return{x:h,y:m,width:v,height:y}}return H(c)&&H(d)?{x:c,y:d,width:0,height:0}:H(n)&&H(r)?{cx:n,cy:r,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||l||u||0,clockWise:b}:t.viewBox?t.viewBox:{}},p9=function(t,n){return t?t===!0?_.createElement(ot,{key:"label-implicit",viewBox:n}):Ue(t)?_.createElement(ot,{key:"label-implicit",viewBox:n,value:t}):A.isValidElement(t)?t.type===ot?A.cloneElement(t,{key:"label-implicit",viewBox:n}):_.createElement(ot,{key:"label-implicit",content:t,viewBox:n}):te(t)?_.createElement(ot,{key:"label-implicit",content:t,viewBox:n}):Pa(t)?_.createElement(ot,lu({viewBox:n},t,{key:"label-implicit"})):null:null},v9=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 i=t.children,a=K_(t),o=ln(i,ot).map(function(l,s){return A.cloneElement(l,{viewBox:n||a,key:"label-".concat(s)})});if(!r)return o;var u=p9(t.label,n||a);return[u].concat(JH(o))};ot.parseViewBox=K_;ot.renderCallByParent=v9;function m9(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var y9=m9;const g9=me(y9);function su(e){"@babel/helpers - typeof";return su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},su(e)}var b9=["valueAccessor"],w9=["data","dataKey","clockWise","id","textBreakAll"];function x9(e){return _9(e)||P9(e)||O9(e)||S9()}function S9(){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 O9(e,t){if(e){if(typeof e=="string")return xp(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 xp(e,t)}}function P9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _9(e){if(Array.isArray(e))return xp(e)}function xp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $9(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var C9=function(t){return Array.isArray(t.value)?g9(t.value):t.value};function ti(e){var t=e.valueAccessor,n=t===void 0?C9:t,r=cb(e,b9),i=r.data,a=r.dataKey,o=r.clockWise,u=r.id,l=r.textBreakAll,s=cb(r,w9);return!i||!i.length?null:_.createElement(Ke,{className:"recharts-label-list"},i.map(function(f,c){var d=ce(a)?n(f,c):On(f&&f.payload,a),h=ce(u)?{}:{id:"".concat(u,"-").concat(c)};return _.createElement(ot,Ys({},le(f,!0),s,h,{parentViewBox:f.parentViewBox,value:d,textBreakAll:l,viewBox:ot.parseViewBox(ce(o)?f:sb(sb({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}ti.displayName="LabelList";function k9(e,t){return e?e===!0?_.createElement(ti,{key:"labelList-implicit",data:t}):_.isValidElement(e)||te(e)?_.createElement(ti,{key:"labelList-implicit",data:t,content:e}):Pa(e)?_.createElement(ti,Ys({data:t},e,{key:"labelList-implicit"})):null:null}function j9(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,i=ln(r,ti).map(function(o,u){return A.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!n)return i;var a=k9(e.label,t);return[a].concat(x9(i))}ti.renderCallByParent=j9;function cu(e){"@babel/helpers - typeof";return cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cu(e)}function Sp(){return Sp=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(o>s),`, - `).concat(c.x,",").concat(c.y,` - `);if(i>0){var h=Ze(n,r,i,o),m=Ze(n,r,i,s);d+="L ".concat(m.x,",").concat(m.y,` - A `).concat(i,",").concat(i,`,0, - `).concat(+(Math.abs(l)>180),",").concat(+(o<=s),`, - `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(n,",").concat(r," Z");return d},R9=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,l=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,c=an(f-s),d=Sl({cx:n,cy:r,radius:a,angle:s,sign:c,cornerRadius:o,cornerIsExternal:l}),h=d.circleTangency,m=d.lineTangency,v=d.theta,y=Sl({cx:n,cy:r,radius:a,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:l}),b=y.circleTangency,p=y.lineTangency,g=y.theta,w=l?Math.abs(s-f):Math.abs(s-f)-v-g;if(w<0)return u?"M ".concat(m.x,",").concat(m.y,` - a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 - a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 - `):G_({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var x="M ".concat(m.x,",").concat(m.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(h.x,",").concat(h.y,` - A`).concat(a,",").concat(a,",0,").concat(+(w>180),",").concat(+(c<0),",").concat(b.x,",").concat(b.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,` - `);if(i>0){var S=Sl({cx:n,cy:r,radius:i,angle:s,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),O=S.circleTangency,P=S.lineTangency,T=S.theta,E=Sl({cx:n,cy:r,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),$=E.circleTangency,k=E.lineTangency,N=E.theta,j=l?Math.abs(s-f):Math.abs(s-f)-T-N;if(j<0&&o===0)return"".concat(x,"L").concat(n,",").concat(r,"Z");x+="L".concat(k.x,",").concat(k.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat($.x,",").concat($.y,` - A`).concat(i,",").concat(i,",0,").concat(+(j>180),",").concat(+(c>0),",").concat(O.x,",").concat(O.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(P.x,",").concat(P.y,"Z")}else x+="L".concat(n,",").concat(r,"Z");return x},L9={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Y_=function(t){var n=db(db({},L9),t),r=n.cx,i=n.cy,a=n.innerRadius,o=n.outerRadius,u=n.cornerRadius,l=n.forceCornerRadius,s=n.cornerIsExternal,f=n.startAngle,c=n.endAngle,d=n.className;if(o0&&Math.abs(f-c)<360?y=R9({cx:r,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,m/2),forceCornerRadius:l,cornerIsExternal:s,startAngle:f,endAngle:c}):y=G_({cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:c}),_.createElement("path",Sp({},le(n,!0),{className:h,d:y,role:"img"}))};function fu(e){"@babel/helpers - typeof";return fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fu(e)}function Op(){return Op=Object.assign?Object.assign.bind():function(e){for(var t=1;t0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Z9(e,t){return Na(e.getTime(),t.getTime())}function xb(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.entries(),a=0,o,u;(o=i.next())&&!o.done;){for(var l=t.entries(),s=!1,f=0;(u=l.next())&&!u.done;){var c=o.value,d=c[0],h=c[1],m=u.value,v=m[0],y=m[1];!s&&!r[f]&&(s=n.equals(d,v,a,f,e,t,n)&&n.equals(h,y,d,v,e,t,n))&&(r[f]=!0),f++}if(!s)return!1;a++}return!0}function e7(e,t,n){var r=wb(e),i=r.length;if(wb(t).length!==i)return!1;for(var a;i-- >0;)if(a=r[i],a===eE&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!Z_(t,a)||!n.equals(e[a],t[a],a,a,e,t,n))return!1;return!0}function Za(e,t,n){var r=gb(e),i=r.length;if(gb(t).length!==i)return!1;for(var a,o,u;i-- >0;)if(a=r[i],a===eE&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!Z_(t,a)||!n.equals(e[a],t[a],a,a,e,t,n)||(o=bb(e,a),u=bb(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function t7(e,t){return Na(e.valueOf(),t.valueOf())}function n7(e,t){return e.source===t.source&&e.flags===t.flags}function Sb(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.values(),a,o;(a=i.next())&&!a.done;){for(var u=t.values(),l=!1,s=0;(o=u.next())&&!o.done;)!l&&!r[s]&&(l=n.equals(a.value,o.value,a.value,o.value,e,t,n))&&(r[s]=!0),s++;if(!l)return!1}return!0}function r7(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var i7="[object Arguments]",a7="[object Boolean]",o7="[object Date]",u7="[object Map]",l7="[object Number]",s7="[object Object]",c7="[object RegExp]",f7="[object Set]",d7="[object String]",h7=Array.isArray,Ob=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Pb=Object.assign,p7=Object.prototype.toString.call.bind(Object.prototype.toString);function v7(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,u=e.areSetsEqual,l=e.areTypedArraysEqual;return function(f,c,d){if(f===c)return!0;if(f==null||c==null||typeof f!="object"||typeof c!="object")return f!==f&&c!==c;var h=f.constructor;if(h!==c.constructor)return!1;if(h===Object)return i(f,c,d);if(h7(f))return t(f,c,d);if(Ob!=null&&Ob(f))return l(f,c,d);if(h===Date)return n(f,c,d);if(h===RegExp)return o(f,c,d);if(h===Map)return r(f,c,d);if(h===Set)return u(f,c,d);var m=p7(f);return m===o7?n(f,c,d):m===c7?o(f,c,d):m===u7?r(f,c,d):m===f7?u(f,c,d):m===s7?typeof f.then!="function"&&typeof c.then!="function"&&i(f,c,d):m===i7?i(f,c,d):m===a7||m===l7||m===d7?a(f,c,d):!1}}function m7(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Za:J9,areDatesEqual:Z9,areMapsEqual:r?yb(xb,Za):xb,areObjectsEqual:r?Za:e7,arePrimitiveWrappersEqual:t7,areRegExpsEqual:n7,areSetsEqual:r?yb(Sb,Za):Sb,areTypedArraysEqual:r?Za:r7};if(n&&(i=Pb({},i,n(i))),t){var a=Pl(i.areArraysEqual),o=Pl(i.areMapsEqual),u=Pl(i.areObjectsEqual),l=Pl(i.areSetsEqual);i=Pb({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:l})}return i}function y7(e){return function(t,n,r,i,a,o,u){return e(t,n,u)}}function g7(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,a=e.strict;if(r)return function(l,s){var f=r(),c=f.cache,d=c===void 0?t?new WeakMap:void 0:c,h=f.meta;return n(l,s,{cache:d,equals:i,meta:h,strict:a})};if(t)return function(l,s){return n(l,s,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(l,s){return n(l,s,o)}}var b7=Mr();Mr({strict:!0});Mr({circular:!0});Mr({circular:!0,strict:!0});Mr({createInternalComparator:function(){return Na}});Mr({strict:!0,createInternalComparator:function(){return Na}});Mr({circular:!0,createInternalComparator:function(){return Na}});Mr({circular:!0,createInternalComparator:function(){return Na},strict:!0});function Mr(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,u=m7(e),l=v7(u),s=r?r(l):y7(l);return g7({circular:n,comparator:l,createState:i,equals:s,strict:o})}function w7(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function _b(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(a){n<0&&(n=a),a-n>t?(e(a),n=-1):w7(i)};requestAnimationFrame(r)}function Pp(e){"@babel/helpers - typeof";return Pp=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},Pp(e)}function x7(e){return _7(e)||P7(e)||O7(e)||S7()}function S7(){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 O7(e,t){if(e){if(typeof e=="string")return Eb(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 Eb(e,t)}}function Eb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?1:b<0?0:b},v=function(b){for(var p=b>1?1:b,g=p,w=0;w<8;++w){var x=c(g)-p,S=h(g);if(Math.abs(x-p)0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,l=function(f,c,d){var h=-(f-c)*r,m=d*a,v=d+(h-m)*u/1e3,y=d*u/1e3+f;return Math.abs(y-c)e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Od(e){return oV(e)||aV(e)||iV(e)||rV()}function rV(){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 iV(e,t){if(e){if(typeof e=="string")return $p(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 $p(e,t)}}function aV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oV(e){if(Array.isArray(e))return $p(e)}function $p(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Js(e){return Js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Js(e)}var Pr=function(e){cV(n,e);var t=fV(n);function n(r,i){var a;uV(this,n),a=t.call(this,r,i);var o=a.props,u=o.isActive,l=o.attributeName,s=o.from,f=o.to,c=o.steps,d=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(jp(a)),a.changeStyle=a.changeStyle.bind(jp(a)),!u||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),kp(a);if(c&&c.length)a.state={style:c[0].style};else if(s){if(typeof d=="function")return a.state={style:s},kp(a);a.state={style:l?uo({},l,s):s}}else a.state={style:{}};return a}return lV(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,l=a.attributeName,s=a.shouldReAnimate,f=a.to,c=a.from,d=this.state.style;if(u){if(!o){var h={style:l?uo({},l,f):f};this.state&&d&&(l&&d[l]!==f||!l&&d!==f)&&this.setState(h);return}if(!(b7(i.to,f)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=m||s?c:i.to;if(this.state&&d){var y={style:l?uo({},l,v):v};(l&&[l]!==v||!l&&d!==v)&&this.setState(y)}this.runAnimation(Jt(Jt({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,l=i.duration,s=i.easing,f=i.begin,c=i.onAnimationEnd,d=i.onAnimationStart,h=Z7(o,u,U7(s),l,this.changeStyle),m=function(){a.stopJSAnimation=h()};this.manager.start([d,f,m,l,c])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,l=i.onAnimationStart,s=o[0],f=s.style,c=s.duration,d=c===void 0?0:c,h=function(v,y,b){if(b===0)return v;var p=y.duration,g=y.easing,w=g===void 0?"ease":g,x=y.style,S=y.properties,O=y.onAnimationEnd,P=b>0?o[b-1]:y,T=S||Object.keys(x);if(typeof w=="function"||w==="spring")return[].concat(Od(v),[a.runJSAnimation.bind(a,{from:P.style,to:x,duration:p,easing:w}),p]);var E=$b(T,p,w),$=Jt(Jt(Jt({},P.style),x),{},{transition:E});return[].concat(Od(v),[$,p,O]).filter(C7)};return this.manager.start([l].concat(Od(o.reduce(h,[f,Math.max(d,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=E7());var a=i.begin,o=i.duration,u=i.attributeName,l=i.to,s=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,d=i.steps,h=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof s=="function"||typeof h=="function"||s==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=u?uo({},u,l):l,y=$b(Object.keys(v),o,s);m.start([f,a,Jt(Jt({},v),{},{transition:y}),o,c])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=tV(i,eV),s=A.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||s===0||o<=0)return a;var c=function(h){var m=h.props,v=m.style,y=v===void 0?{}:v,b=m.className,p=A.cloneElement(h,Jt(Jt({},l),{},{style:Jt(Jt({},y),f),className:b}));return p};return s===1?c(A.Children.only(a)):_.createElement("div",null,A.Children.map(a,function(d){return c(d)}))}}]),n}(A.PureComponent);Pr.displayName="Animate";Pr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Pr.propTypes={from:J.oneOfType([J.object,J.string]),to:J.oneOfType([J.object,J.string]),attributeName:J.string,duration:J.number,begin:J.number,easing:J.oneOfType([J.string,J.func]),steps:J.arrayOf(J.shape({duration:J.number.isRequired,style:J.object.isRequired,easing:J.oneOfType([J.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),J.func]),properties:J.arrayOf("string"),onAnimationEnd:J.func})),children:J.oneOfType([J.node,J.func]),isActive:J.bool,canBegin:J.bool,onAnimationEnd:J.func,shouldReAnimate:J.bool,onAnimationStart:J.func,onAnimationReStart:J.func};J.object,J.object,J.object,J.element;J.object,J.object,J.object,J.oneOfType([J.array,J.element]),J.any;function pu(e){"@babel/helpers - typeof";return pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pu(e)}function Zs(){return Zs=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?1:-1,l=r>=0?1:-1,s=i>=0&&r>=0||i<0&&r<0?1:0,f;if(o>0&&a instanceof Array){for(var c=[0,0,0,0],d=0,h=4;do?o:a[d];f="M".concat(t,",").concat(n+u*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(s,",").concat(t+l*c[0],",").concat(n)),f+="L ".concat(t+r-l*c[1],",").concat(n),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(s,`, - `).concat(t+r,",").concat(n+u*c[1])),f+="L ".concat(t+r,",").concat(n+i-u*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(s,`, - `).concat(t+r-l*c[2],",").concat(n+i)),f+="L ".concat(t+l*c[3],",").concat(n+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(s,`, - `).concat(t,",").concat(n+i-u*c[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var m=Math.min(o,a);f="M ".concat(t,",").concat(n+u*m,` - A `).concat(m,",").concat(m,",0,0,").concat(s,",").concat(t+l*m,",").concat(n,` - L `).concat(t+r-l*m,",").concat(n,` - A `).concat(m,",").concat(m,",0,0,").concat(s,",").concat(t+r,",").concat(n+u*m,` - L `).concat(t+r,",").concat(n+i-u*m,` - A `).concat(m,",").concat(m,",0,0,").concat(s,",").concat(t+r-l*m,",").concat(n+i,` - L `).concat(t+l*m,",").concat(n+i,` - A `).concat(m,",").concat(m,",0,0,").concat(s,",").concat(t,",").concat(n+i-u*m," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return f},xV=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,a=n.x,o=n.y,u=n.width,l=n.height;if(Math.abs(u)>0&&Math.abs(l)>0){var s=Math.min(a,a+u),f=Math.max(a,a+u),c=Math.min(o,o+l),d=Math.max(o,o+l);return r>=s&&r<=f&&i>=c&&i<=d}return!1},SV={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Ym=function(t){var n=Lb(Lb({},SV),t),r=A.useRef(),i=A.useState(-1),a=hV(i,2),o=a[0],u=a[1];A.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&u(w)}catch{}},[]);var l=n.x,s=n.y,f=n.width,c=n.height,d=n.radius,h=n.className,m=n.animationEasing,v=n.animationDuration,y=n.animationBegin,b=n.isAnimationActive,p=n.isUpdateAnimationActive;if(l!==+l||s!==+s||f!==+f||c!==+c||f===0||c===0)return null;var g=pe("recharts-rectangle",h);return p?_.createElement(Pr,{canBegin:o>0,from:{width:f,height:c,x:l,y:s},to:{width:f,height:c,x:l,y:s},duration:v,animationEasing:m,isActive:p},function(w){var x=w.width,S=w.height,O=w.x,P=w.y;return _.createElement(Pr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,isActive:b,easing:m},_.createElement("path",Zs({},le(n,!0),{className:g,d:Bb(O,P,x,S,d),ref:r})))}):_.createElement("path",Zs({},le(n,!0),{className:g,d:Bb(l,s,f,c,d)}))};function Mp(){return Mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $V(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var CV=function(t,n,r,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(n,"h").concat(r)},kV=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,l=t.left,s=l===void 0?0:l,f=t.width,c=f===void 0?0:f,d=t.height,h=d===void 0?0:d,m=t.className,v=TV(t,OV),y=PV({x:r,y:a,top:u,left:s,width:c,height:h},v);return!H(r)||!H(a)||!H(c)||!H(h)||!H(u)||!H(s)?null:_.createElement("path",Np({},le(y,!0),{className:pe("recharts-cross",m),d:CV(r,a,c,h,u,s)}))},jV=xP,MV=jV(Object.getPrototypeOf,Object),NV=MV,IV=Yn,DV=NV,RV=Xn,LV="[object Object]",BV=Function.prototype,FV=Object.prototype,lE=BV.toString,zV=FV.hasOwnProperty,UV=lE.call(Object);function WV(e){if(!RV(e)||IV(e)!=LV)return!1;var t=DV(e);if(t===null)return!0;var n=zV.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&lE.call(n)==UV}var HV=WV;const VV=me(HV);var qV=Yn,KV=Xn,GV="[object Boolean]";function YV(e){return e===!0||e===!1||KV(e)&&qV(e)==GV}var XV=YV;const QV=me(XV);function mu(e){"@babel/helpers - typeof";return mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mu(e)}function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:s},to:{upperWidth:f,lowerWidth:c,height:d,x:l,y:s},duration:v,animationEasing:m,isActive:b},function(g){var w=g.upperWidth,x=g.lowerWidth,S=g.height,O=g.x,P=g.y;return _.createElement(Pr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,easing:m},_.createElement("path",ec({},le(n,!0),{className:p,d:Hb(O,P,w,x,S),ref:r})))}):_.createElement("g",null,_.createElement("path",ec({},le(n,!0),{className:p,d:Hb(l,s,f,c,d)})))},lq=["option","shapeType","propTransformer","activeClassName","isActive"];function yu(e){"@babel/helpers - typeof";return yu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yu(e)}function sq(e,t){if(e==null)return{};var n=cq(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cq(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Vb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tc(e){for(var t=1;t0&&r.handleDrag(i.changedTouches[0])}),_t(hn(r),"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),r.detachDragEndListener()}),_t(hn(r),"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),_t(hn(r),"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),_t(hn(r),"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),_t(hn(r),"handleSlideDragStart",function(i){var a=Jb(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(hn(r),"startX"),endX:r.handleTravellerDragStart.bind(hn(r),"endX")},r.state={},r}return Hq(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,a=r.endX,o=this.state.scaleValues,u=this.props,l=u.gap,s=u.data,f=s.length-1,c=Math.min(i,a),d=Math.max(i,a),h=t.getIndexInRange(o,c),m=t.getIndexInRange(o,d);return{startIndex:h-h%l,endIndex:m===f?f:m-m%l}}},{key:"getTextOfTick",value:function(r){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,l=On(a[r],u,r);return te(o)?o(l,r):l}},{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 i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,l=this.props,s=l.x,f=l.width,c=l.travellerWidth,d=l.startIndex,h=l.endIndex,m=l.onChange,v=r.pageX-a;v>0?v=Math.min(v,s+f-c-u,s+f-c-o):v<0&&(v=Math.max(v,s-o,s-u));var y=this.getIndex({startX:o+v,endX:u+v});(y.startIndex!==d||y.endIndex!==h)&&m&&m(y),this.setState({startX:o+v,endX:u+v,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var a=Jb(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,l=i.startX,s=this.state[o],f=this.props,c=f.x,d=f.width,h=f.travellerWidth,m=f.onChange,v=f.gap,y=f.data,b={startX:this.state.startX,endX:this.state.endX},p=r.pageX-a;p>0?p=Math.min(p,c+d-h-s):p<0&&(p=Math.max(p,c-s)),b[o]=s+p;var g=this.getIndex(b),w=g.startIndex,x=g.endIndex,S=function(){var P=y.length-1;return o==="startX"&&(u>l?w%v===0:x%v===0)||ul?x%v===0:w%v===0)||u>l&&x===P};this.setState(_t(_t({},o,s+p),"brushMoveStartX",r.pageX),function(){m&&S()&&m(g)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var a=this,o=this.state,u=o.scaleValues,l=o.startX,s=o.endX,f=this.state[i],c=u.indexOf(f);if(c!==-1){var d=c+r;if(!(d===-1||d>=u.length)){var h=u[d];i==="startX"&&h>=s||i==="endX"&&h<=l||this.setState(_t({},i,h),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,u=r.height,l=r.fill,s=r.stroke;return _.createElement("rect",{stroke:s,fill:l,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,u=r.height,l=r.data,s=r.children,f=r.padding,c=A.Children.only(s);return c?_.cloneElement(c,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(r,i){var a=this,o=this.props,u=o.y,l=o.travellerWidth,s=o.height,f=o.traveller,c=o.ariaLabel,d=o.data,h=o.startIndex,m=o.endIndex,v=Math.max(r,this.props.x),y=_d(_d({},le(this.props,!1)),{},{x:v,y:u,width:l,height:s}),b=c||"Min value: ".concat(d[h].name,", Max value: ").concat(d[m].name);return _.createElement(Ke,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(g){["ArrowLeft","ArrowRight"].includes(g.key)&&(g.preventDefault(),g.stopPropagation(),a.handleTravellerMoveKeyboard(g.key==="ArrowRight"?1:-1,i))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(f,y))}},{key:"renderSlide",value:function(r,i){var a=this.props,o=a.y,u=a.height,l=a.stroke,s=a.travellerWidth,f=Math.min(r,i)+s,c=Math.max(Math.abs(i-r)-s,0);return _.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:f,y:o,width:c,height:u})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,a=r.endIndex,o=r.y,u=r.height,l=r.travellerWidth,s=r.stroke,f=this.state,c=f.startX,d=f.endX,h=5,m={pointerEvents:"none",fill:s};return _.createElement(Ke,{className:"recharts-brush-texts"},_.createElement(Ns,rc({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-h,y:o+u/2},m),this.getTextOfTick(i)),_.createElement(Ns,rc({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+l+h,y:o+u/2},m),this.getTextOfTick(a)))}},{key:"render",value:function(){var r=this.props,i=r.data,a=r.className,o=r.children,u=r.x,l=r.y,s=r.width,f=r.height,c=r.alwaysShowText,d=this.state,h=d.startX,m=d.endX,v=d.isTextActive,y=d.isSlideMoving,b=d.isTravellerMoving,p=d.isTravellerFocused;if(!i||!i.length||!H(u)||!H(l)||!H(s)||!H(f)||s<=0||f<=0)return null;var g=pe("recharts-brush",a),w=_.Children.count(o)===1,x=Uq("userSelect","none");return _.createElement(Ke,{className:g,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(h,m),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(m,"endX"),(v||y||b||p||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,a=r.y,o=r.width,u=r.height,l=r.stroke,s=Math.floor(a+u/2)-1;return _.createElement(_.Fragment,null,_.createElement("rect",{x:i,y:a,width:o,height:u,fill:l,stroke:"none"}),_.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),_.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var a;return _.isValidElement(r)?a=_.cloneElement(r,i):te(r)?a=r(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(r,i){var a=r.data,o=r.width,u=r.x,l=r.travellerWidth,s=r.updateId,f=r.startIndex,c=r.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return _d({prevData:a,prevTravellerWidth:l,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?Yq({data:a,width:o,x:u,travellerWidth:l,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([u,u+o-l]);var d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:s,prevX:u,prevWidth:o,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(r,i){for(var a=r.length,o=0,u=a-1;u-o>1;){var l=Math.floor((o+u)/2);r[l]>i?u=l:o=l}return i>=r[u]?u:o}}]),t}(A.PureComponent);_t(pa,"displayName","Brush");_t(pa,"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 Xq=wm;function Qq(e,t){var n;return Xq(e,function(r,i,a){return n=t(r,i,a),!n}),!!n}var Jq=Qq,Zq=hP,eK=Cr,tK=Jq,nK=Ot,rK=rf;function iK(e,t,n){var r=nK(e)?Zq:tK;return n&&rK(e,t,n)&&(t=void 0),r(e,eK(t))}var aK=iK;const oK=me(aK);var xn=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},Zb=DP;function uK(e,t,n){t=="__proto__"&&Zb?Zb(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var lK=uK,sK=lK,cK=NP,fK=Cr;function dK(e,t){var n={};return t=fK(t),cK(e,function(r,i,a){sK(n,i,t(r,i,a))}),n}var hK=dK;const pK=me(hK);function vK(e,t){for(var n=-1,r=e==null?0:e.length;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jK(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function MK(e,t){var n=e.x,r=e.y,i=kK(e,AK),a="".concat(n),o=parseInt(a,10),u="".concat(r),l=parseInt(u,10),s="".concat(t.height||i.height),f=parseInt(s,10),c="".concat(t.width||i.width),d=parseInt(c,10);return eo(eo(eo(eo(eo({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function tw(e){return _.createElement(yq,Dp({shapeType:"rectangle",propTransformer:MK,activeClassName:"recharts-active-bar"},e))}var NK=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var a=typeof r=="number";return a?t(r,i):(a||li(!1),n)}},IK=["value","background"],pE;function va(e){"@babel/helpers - typeof";return va=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},va(e)}function DK(e,t){if(e==null)return{};var n=RK(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function RK(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(j)0&&Math.abs(N)0&&(N=Math.min((Oe||0)-(j[Ne-1]||0),N))});var F=N/k,R=v.layout==="vertical"?r.height:r.width;if(v.padding==="gap"&&(O=F*R/2),v.padding==="no-gap"){var z=na(t.barCategoryGap,F*R),C=F*R/2;O=C-z-(C-z)/R*z}}i==="xAxis"?P=[r.left+(g.left||0)+(O||0),r.left+r.width-(g.right||0)-(O||0)]:i==="yAxis"?P=l==="horizontal"?[r.top+r.height-(g.bottom||0),r.top+(g.top||0)]:[r.top+(g.top||0)+(O||0),r.top+r.height-(g.bottom||0)-(O||0)]:P=v.range,x&&(P=[P[1],P[0]]);var D=CH(v,a,d),U=D.scale,Y=D.realScaleType;U.domain(b).range(P),kH(U);var V=BH(U,tn(tn({},v),{},{realScaleType:Y}));i==="xAxis"?($=y==="top"&&!w||y==="bottom"&&w,T=r.left,E=c[S]-$*v.height):i==="yAxis"&&($=y==="left"&&!w||y==="right"&&w,T=c[S]-$*v.width,E=r.top);var Z=tn(tn(tn({},v),V),{},{realScaleType:Y,x:T,y:E,scale:U,width:i==="xAxis"?r.width:v.width,height:i==="yAxis"?r.height:v.height});return Z.bandSize=Ks(Z,V),!v.hide&&i==="xAxis"?c[S]+=($?-1:1)*Z.height:v.hide||(c[S]+=($?-1:1)*Z.width),tn(tn({},h),{},gf({},m,Z))},{})},gE=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return{x:Math.min(r,a),y:Math.min(i,o),width:Math.abs(a-r),height:Math.abs(o-i)}},GK=function(t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2;return gE({x:n,y:r},{x:i,y:a})},bE=function(){function e(t){HK(this,e),this.scale=t}return VK(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]:{},i=r.bandAware,a=r.position;if(n!==void 0){if(a)switch(a){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(n)+u}default:return this.scale(n)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],a=r[r.length-1];return i<=a?n>=i&&n<=a:n>=a&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}]),e}();gf(bE,"EPS",1e-4);var Xm=function(t){var n=Object.keys(t).reduce(function(r,i){return tn(tn({},r),{},gf({},i,bE.create(t[i])))},{});return tn(tn({},n),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return pK(i,function(l,s){return n[s].apply(l,{bandAware:o,position:u})})},isInRange:function(i){return hE(i,function(a,o){return n[o].isInRange(a)})}})};function YK(e){return(e%180+180)%180}var XK=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=YK(i),o=a*Math.PI/180,u=Math.atan(r/n),l=o>u&&o-1?i[a?t[o]:o]:void 0}}var tG=eG,nG=sE;function rG(e){var t=nG(e),n=t%1;return t===t?n?t-n:t:0}var iG=rG,aG=AP,oG=Cr,uG=iG,lG=Math.max;function sG(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:uG(n);return i<0&&(i=lG(r+i,0)),aG(e,oG(t),i)}var cG=sG,fG=tG,dG=cG,hG=fG(dG),pG=hG;const vG=me(pG);var mG=E2(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("")}),Qm=A.createContext(void 0),Jm=A.createContext(void 0),wE=A.createContext(void 0),xE=A.createContext({}),SE=A.createContext(void 0),OE=A.createContext(0),PE=A.createContext(0),ow=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,a=n.offset,o=t.clipPathId,u=t.children,l=t.width,s=t.height,f=mG(a);return _.createElement(Qm.Provider,{value:r},_.createElement(Jm.Provider,{value:i},_.createElement(xE.Provider,{value:a},_.createElement(wE.Provider,{value:f},_.createElement(SE.Provider,{value:o},_.createElement(OE.Provider,{value:s},_.createElement(PE.Provider,{value:l},u)))))))},yG=function(){return A.useContext(SE)},_E=function(t){var n=A.useContext(Qm);n==null&&li(!1);var r=n[t];return r==null&&li(!1),r},gG=function(){var t=A.useContext(Qm);return or(t)},bG=function(){var t=A.useContext(Jm),n=vG(t,function(r){return hE(r.domain,Number.isFinite)});return n||or(t)},EE=function(t){var n=A.useContext(Jm);n==null&&li(!1);var r=n[t];return r==null&&li(!1),r},wG=function(){var t=A.useContext(wE);return t},xG=function(){return A.useContext(xE)},Zm=function(){return A.useContext(PE)},ey=function(){return A.useContext(OE)};function Su(e){"@babel/helpers - typeof";return Su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Su(e)}function uw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lw(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function UG(e,t){return AE(e,t+1)}function WG(e,t,n,r,i){for(var a=(r||[]).slice(),o=t.start,u=t.end,l=0,s=1,f=o,c=function(){var m=r==null?void 0:r[l];if(m===void 0)return{v:AE(r,s)};var v=l,y,b=function(){return y===void 0&&(y=n(m,v)),y},p=m.coordinate,g=l===0||uc(e,p,b,f,u);g||(l=0,f=o,s+=1),g&&(f=p+e*(b()/2+i),l+=s)},d;s<=a.length;)if(d=c(),d)return d.v;return[]}function _u(e){"@babel/helpers - typeof";return _u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_u(e)}function pw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function it(e){for(var t=1;t0?h.coordinate-y*e:h.coordinate})}else a[d]=h=it(it({},h),{},{tickCoord:h.coordinate});var b=uc(e,h.tickCoord,v,u,l);b&&(l=h.tickCoord-e*(v()/2+i),a[d]=it(it({},h),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function GG(e,t,n,r,i,a){var o=(r||[]).slice(),u=o.length,l=t.start,s=t.end;if(a){var f=r[u-1],c=n(f,u-1),d=e*(f.coordinate+e*c/2-s);o[u-1]=f=it(it({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var h=uc(e,f.tickCoord,function(){return c},l,s);h&&(s=f.tickCoord-e*(c/2+i),o[u-1]=it(it({},f),{},{isShow:!0}))}for(var m=a?u-1:u,v=function(p){var g=o[p],w,x=function(){return w===void 0&&(w=n(g,p)),w};if(p===0){var S=e*(g.coordinate-e*x()/2-l);o[p]=g=it(it({},g),{},{tickCoord:S<0?g.coordinate-S*e:g.coordinate})}else o[p]=g=it(it({},g),{},{tickCoord:g.coordinate});var O=uc(e,g.tickCoord,x,l,s);O&&(l=g.tickCoord+e*(x()/2+i),o[p]=it(it({},g),{},{isShow:!0}))},y=0;y=2?an(i[1].coordinate-i[0].coordinate):1,b=zG(a,y,h);return l==="equidistantPreserveStart"?WG(y,b,v,i,o):(l==="preserveStart"||l==="preserveStartEnd"?d=GG(y,b,v,i,o,l==="preserveStartEnd"):d=KG(y,b,v,i,o),d.filter(function(p){return p.isShow}))}var YG=["viewBox"],XG=["viewBox"],QG=["ticks"];function ma(e){"@babel/helpers - typeof";return ma=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},ma(e)}function Ri(){return Ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function JG(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function ZG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mw(e,t){for(var n=0;n0?l(this.props):l(h)),o<=0||u<=0||!m||!m.length?null:_.createElement(Ke,{className:pe("recharts-cartesian-axis",s),ref:function(y){r.layerReference=y}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),ot.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,a){var o;return _.isValidElement(r)?o=_.cloneElement(r,i):te(r)?o=r(i):o=_.createElement(Ns,Ri({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}]),t}(A.Component);ry(Ia,"displayName","CartesianAxis");ry(Ia,"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 oY=["x1","y1","x2","y2","key"],uY=["offset"];function si(e){"@babel/helpers - typeof";return si=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},si(e)}function yw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fY(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var dY=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height;return _.createElement("rect",{x:i,y:a,width:o,height:u,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function CE(e,t){var n;if(_.isValidElement(e))n=_.cloneElement(e,t);else if(te(e))n=e(t);else{var r=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,l=gw(t,oY),s=le(l,!1);s.offset;var f=gw(s,uY);n=_.createElement("line",Xr({},f,{x1:r,y1:i,x2:a,y2:o,fill:"none",key:u}))}return n}function hY(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,l){var s=ut(ut({},e),{},{x1:t,y1:u,x2:t+n,y2:u,key:"line-".concat(l),index:l});return CE(i,s)});return _.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function pY(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,l){var s=ut(ut({},e),{},{x1:u,y1:t,x2:u,y2:t+n,key:"line-".concat(l),index:l});return CE(i,s)});return _.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function vY(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,l=e.horizontal,s=l===void 0?!0:l;if(!s||!t||!t.length)return null;var f=u.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==f[0]&&f.unshift(0);var c=f.map(function(d,h){var m=!f[h+1],v=m?i+o-d:f[h+1]-d;if(v<=0)return null;var y=h%t.length;return _.createElement("rect",{key:"react-".concat(h),y:d,x:r,height:v,width:a,stroke:"none",fill:t[y],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function mY(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,l=e.height,s=e.verticalPoints;if(!n||!r||!r.length)return null;var f=s.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==f[0]&&f.unshift(0);var c=f.map(function(d,h){var m=!f[h+1],v=m?a+u-d:f[h+1]-d;if(v<=0)return null;var y=h%r.length;return _.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:v,height:l,stroke:"none",fill:r[y],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var yY=function(t,n){var r=t.xAxis,i=t.width,a=t.height,o=t.offset;return H_(ny(ut(ut(ut({},Ia.defaultProps),r),{},{ticks:Nn(r,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,n)},gY=function(t,n){var r=t.yAxis,i=t.width,a=t.height,o=t.offset;return H_(ny(ut(ut(ut({},Ia.defaultProps),r),{},{ticks:Nn(r,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,n)},Si={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function kE(e){var t,n,r,i,a,o,u=Zm(),l=ey(),s=xG(),f=ut(ut({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Si.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Si.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Si.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Si.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Si.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Si.verticalFill,x:H(e.x)?e.x:s.left,y:H(e.y)?e.y:s.top,width:H(e.width)?e.width:s.width,height:H(e.height)?e.height:s.height}),c=f.x,d=f.y,h=f.width,m=f.height,v=f.syncWithTicks,y=f.horizontalValues,b=f.verticalValues,p=gG(),g=bG();if(!H(h)||h<=0||!H(m)||m<=0||!H(c)||c!==+c||!H(d)||d!==+d)return null;var w=f.verticalCoordinatesGenerator||yY,x=f.horizontalCoordinatesGenerator||gY,S=f.horizontalPoints,O=f.verticalPoints;if((!S||!S.length)&&te(x)){var P=y&&y.length,T=x({yAxis:g?ut(ut({},g),{},{ticks:P?y:g.ticks}):void 0,width:u,height:l,offset:s},P?!0:v);Ln(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(si(T),"]")),Array.isArray(T)&&(S=T)}if((!O||!O.length)&&te(w)){var E=b&&b.length,$=w({xAxis:p?ut(ut({},p),{},{ticks:E?b:p.ticks}):void 0,width:u,height:l,offset:s},E?!0:v);Ln(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(si($),"]")),Array.isArray($)&&(O=$)}return _.createElement("g",{className:"recharts-cartesian-grid"},_.createElement(dY,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height}),_.createElement(hY,Xr({},f,{offset:s,horizontalPoints:S,xAxis:p,yAxis:g})),_.createElement(pY,Xr({},f,{offset:s,verticalPoints:O,xAxis:p,yAxis:g})),_.createElement(vY,Xr({},f,{horizontalPoints:S})),_.createElement(mY,Xr({},f,{verticalPoints:O})))}kE.displayName="CartesianGrid";function Up(){return Up=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zY(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function UY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pw(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?o:t&&t.length&&H(i)&&H(a)?t.slice(i,a+1):[]};function BE(e){return e==="number"?[0,"auto"]:void 0}var Gp=function(t,n,r,i){var a=t.graphicalItems,o=t.tooltipAxis,u=xf(n,t);return r<0||!a||!a.length||r>=u.length?null:a.reduce(function(l,s){var f,c=(f=s.props.data)!==null&&f!==void 0?f:n;c&&t.dataStartIndex+t.dataEndIndex!==0&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=c===void 0?u:c;d=Nh(h,o.dataKey,i)}else d=c&&c[r]||u[r];return d?[].concat(ga(l),[q_(s,d)]):l},[])},Ew=function(t,n,r,i){var a=i||{x:t.chartX,y:t.chartY},o=ZY(a,r),u=t.orderedTooltipTicks,l=t.tooltipAxis,s=t.tooltipTicks,f=PH(o,u,s,l);if(f>=0&&s){var c=s[f]&&s[f].value,d=Gp(t,n,f,c),h=eX(r,u,f,a);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:h}}return null},tX=function(t,n){var r=n.axes,i=n.graphicalItems,a=n.axisType,o=n.axisIdKey,u=n.stackGroups,l=n.dataStartIndex,s=n.dataEndIndex,f=t.layout,c=t.children,d=t.stackOffset,h=W_(f,a);return r.reduce(function(m,v){var y,b=v.props,p=b.type,g=b.dataKey,w=b.allowDataOverflow,x=b.allowDuplicatedCategory,S=b.scale,O=b.ticks,P=b.includeHidden,T=v.props[o];if(m[T])return m;var E=xf(t.data,{graphicalItems:i.filter(function(V){return V.props[o]===T}),dataStartIndex:l,dataEndIndex:s}),$=E.length,k,N,j;$Y(v.props.domain,w,p)&&(k=bp(v.props.domain,null,w),h&&(p==="number"||S!=="auto")&&(j=xo(E,g,"category")));var F=BE(p);if(!k||k.length===0){var R,z=(R=v.props.domain)!==null&&R!==void 0?R:F;if(g){if(k=xo(E,g,p),p==="category"&&h){var C=_N(k);x&&C?(N=k,k=nc(0,$)):x||(k=rb(z,k,v).reduce(function(V,Z){return V.indexOf(Z)>=0?V:[].concat(ga(V),[Z])},[]))}else if(p==="category")x?k=k.filter(function(V){return V!==""&&!ce(V)}):k=rb(z,k,v).reduce(function(V,Z){return V.indexOf(Z)>=0||Z===""||ce(Z)?V:[].concat(ga(V),[Z])},[]);else if(p==="number"){var D=$H(E,i.filter(function(V){return V.props[o]===T&&(P||!V.props.hide)}),g,a,f);D&&(k=D)}h&&(p==="number"||S!=="auto")&&(j=xo(E,g,"category"))}else h?k=nc(0,$):u&&u[T]&&u[T].hasStack&&p==="number"?k=d==="expand"?[0,1]:V_(u[T].stackGroups,l,s):k=U_(E,i.filter(function(V){return V.props[o]===T&&(P||!V.props.hide)}),p,f,!0);if(p==="number")k=Vp(c,k,T,a,O),z&&(k=bp(z,k,w));else if(p==="category"&&z){var U=z,Y=k.every(function(V){return U.indexOf(V)>=0});Y&&(k=U)}}return I(I({},m),{},X({},T,I(I({},v.props),{},{axisType:a,domain:k,categoricalDomain:j,duplicateDomain:N,originalDomain:(y=v.props.domain)!==null&&y!==void 0?y:F,isCategorical:h,layout:f})))},{})},nX=function(t,n){var r=n.graphicalItems,i=n.Axis,a=n.axisType,o=n.axisIdKey,u=n.stackGroups,l=n.dataStartIndex,s=n.dataEndIndex,f=t.layout,c=t.children,d=xf(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:s}),h=d.length,m=W_(f,a),v=-1;return r.reduce(function(y,b){var p=b.props[o],g=BE("number");if(!y[p]){v++;var w;return m?w=nc(0,h):u&&u[p]&&u[p].hasStack?(w=V_(u[p].stackGroups,l,s),w=Vp(c,w,p,a)):(w=bp(g,U_(d,r.filter(function(x){return x.props[o]===p&&!x.props.hide}),"number",f),i.defaultProps.allowDataOverflow),w=Vp(c,w,p,a)),I(I({},y),{},X({},p,I(I({axisType:a},i.defaultProps),{},{hide:!0,orientation:qt(QY,"".concat(a,".").concat(v%2),null),domain:w,originalDomain:g,isCategorical:m,layout:f})))}return y},{})},rX=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,a=n.AxisComp,o=n.graphicalItems,u=n.stackGroups,l=n.dataStartIndex,s=n.dataEndIndex,f=t.children,c="".concat(i,"Id"),d=ln(f,a),h={};return d&&d.length?h=tX(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:u,dataStartIndex:l,dataEndIndex:s}):o&&o.length&&(h=nX(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:u,dataStartIndex:l,dataEndIndex:s})),h},iX=function(t){var n=or(t),r=Nn(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:xm(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Ks(n,r)}},Aw=function(t){var n=t.children,r=t.defaultShowTooltip,i=At(n,pa),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},aX=function(t){return!t||!t.length?!1:t.some(function(n){var r=Rn(n&&n.type);return r&&r.indexOf("Bar")>=0})},Tw=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"}},oX=function(t,n){var r=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,l=u===void 0?{}:u,s=r.width,f=r.height,c=r.children,d=r.margin||{},h=At(c,pa),m=At(c,oa),v=Object.keys(l).reduce(function(x,S){var O=l[S],P=O.orientation;return!O.mirror&&!O.hide?I(I({},x),{},X({},P,x[P]+O.width)):x},{left:d.left||0,right:d.right||0}),y=Object.keys(o).reduce(function(x,S){var O=o[S],P=O.orientation;return!O.mirror&&!O.hide?I(I({},x),{},X({},P,qt(x,"".concat(P))+O.height)):x},{top:d.top||0,bottom:d.bottom||0}),b=I(I({},y),v),p=b.bottom;h&&(b.bottom+=h.props.height||pa.defaultProps.height),m&&n&&(b=AH(b,i,r,n));var g=s-b.left-b.right,w=f-b.top-b.bottom;return I(I({brushBottom:p},b),{},{width:Math.max(g,0),height:Math.max(w,0)})},uX=function(t){var n,r=t.chartName,i=t.GraphicalChild,a=t.defaultTooltipEventType,o=a===void 0?"axis":a,u=t.validateTooltipEventTypes,l=u===void 0?["axis"]:u,s=t.axisComponents,f=t.legendContent,c=t.formatAxisMap,d=t.defaultProps,h=function(y,b){var p=b.graphicalItems,g=b.stackGroups,w=b.offset,x=b.updateId,S=b.dataStartIndex,O=b.dataEndIndex,P=y.barSize,T=y.layout,E=y.barGap,$=y.barCategoryGap,k=y.maxBarSize,N=Tw(T),j=N.numericAxisName,F=N.cateAxisName,R=aX(p),z=R&&_H({barSize:P,stackGroups:g}),C=[];return p.forEach(function(D,U){var Y=xf(y.data,{graphicalItems:[D],dataStartIndex:S,dataEndIndex:O}),V=D.props,Z=V.dataKey,Oe=V.maxBarSize,Ne=D.props["".concat(j,"Id")],st=D.props["".concat(F,"Id")],mt={},It=s.reduce(function(Nr,Ir){var Of=b["".concat(Ir.axisType,"Map")],iy=D.props["".concat(Ir.axisType,"Id")];Of&&Of[iy]||Ir.axisType==="zAxis"||li(!1);var ay=Of[iy];return I(I({},Nr),{},X(X({},Ir.axisType,ay),"".concat(Ir.axisType,"Ticks"),Nn(ay)))},mt),q=It[F],Q=It["".concat(F,"Ticks")],ee=g&&g[Ne]&&g[Ne].hasStack&&zH(D,g[Ne].stackGroups),L=Rn(D.type).indexOf("Bar")>=0,ke=Ks(q,Q),re=[];if(L){var Le,Ie,Pt=ce(Oe)?k:Oe,En=(Le=(Ie=Ks(q,Q,!0))!==null&&Ie!==void 0?Ie:Pt)!==null&&Le!==void 0?Le:0;re=EH({barGap:E,barCategoryGap:$,bandSize:En!==ke?En:ke,sizeList:z[st],maxBarSize:Pt}),En!==ke&&(re=re.map(function(Nr){return I(I({},Nr),{},{position:I(I({},Nr.position),{},{offset:Nr.position.offset-En/2})})}))}var Gu=D&&D.type&&D.type.getComposedData;Gu&&C.push({props:I(I({},Gu(I(I({},It),{},{displayedData:Y,props:y,dataKey:Z,item:D,bandSize:ke,barPosition:re,offset:w,stackedData:ee,layout:T,dataStartIndex:S,dataEndIndex:O}))),{},X(X(X({key:D.key||"item-".concat(U)},j,It[j]),F,It[F]),"animationId",x)),childIndex:DN(D,y.children),item:D})}),C},m=function(y,b){var p=y.props,g=y.dataStartIndex,w=y.dataEndIndex,x=y.updateId;if(!Gg({props:p}))return null;var S=p.children,O=p.layout,P=p.stackOffset,T=p.data,E=p.reverseStackOrder,$=Tw(O),k=$.numericAxisName,N=$.cateAxisName,j=ln(S,i),F=LH(T,j,"".concat(k,"Id"),"".concat(N,"Id"),P,E),R=s.reduce(function(Y,V){var Z="".concat(V.axisType,"Map");return I(I({},Y),{},X({},Z,rX(p,I(I({},V),{},{graphicalItems:j,stackGroups:V.axisType===k&&F,dataStartIndex:g,dataEndIndex:w}))))},{}),z=oX(I(I({},R),{},{props:p,graphicalItems:j}),b==null?void 0:b.legendBBox);Object.keys(R).forEach(function(Y){R[Y]=c(p,R[Y],z,Y.replace("Map",""),r)});var C=R["".concat(N,"Map")],D=iX(C),U=h(p,I(I({},R),{},{dataStartIndex:g,dataEndIndex:w,updateId:x,graphicalItems:j,stackGroups:F,offset:z}));return I(I({formattedGraphicalItems:U,graphicalItems:j,offset:z,stackGroups:F},D),R)};return n=function(v){qY(y,v);function y(b){var p,g,w;return UY(this,y),w=HY(this,y,[b]),X(ae(w),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),X(ae(w),"accessibilityManager",new TY),X(ae(w),"handleLegendBBoxUpdate",function(x){if(x){var S=w.state,O=S.dataStartIndex,P=S.dataEndIndex,T=S.updateId;w.setState(I({legendBBox:x},m({props:w.props,dataStartIndex:O,dataEndIndex:P,updateId:T},I(I({},w.state),{},{legendBBox:x}))))}}),X(ae(w),"handleReceiveSyncEvent",function(x,S,O){if(w.props.syncId===x){if(O===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(S)}}),X(ae(w),"handleBrushChange",function(x){var S=x.startIndex,O=x.endIndex;if(S!==w.state.dataStartIndex||O!==w.state.dataEndIndex){var P=w.state.updateId;w.setState(function(){return I({dataStartIndex:S,dataEndIndex:O},m({props:w.props,dataStartIndex:S,dataEndIndex:O,updateId:P},w.state))}),w.triggerSyncEvent({dataStartIndex:S,dataEndIndex:O})}}),X(ae(w),"handleMouseEnter",function(x){var S=w.getMouseInfo(x);if(S){var O=I(I({},S),{},{isTooltipActive:!0});w.setState(O),w.triggerSyncEvent(O);var P=w.props.onMouseEnter;te(P)&&P(O,x)}}),X(ae(w),"triggeredAfterMouseMove",function(x){var S=w.getMouseInfo(x),O=S?I(I({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(O),w.triggerSyncEvent(O);var P=w.props.onMouseMove;te(P)&&P(O,x)}),X(ae(w),"handleItemMouseEnter",function(x){w.setState(function(){return{isTooltipActive:!0,activeItem:x,activePayload:x.tooltipPayload,activeCoordinate:x.tooltipPosition||{x:x.cx,y:x.cy}}})}),X(ae(w),"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),X(ae(w),"handleMouseMove",function(x){x.persist(),w.throttleTriggeredAfterMouseMove(x)}),X(ae(w),"handleMouseLeave",function(x){w.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};w.setState(S),w.triggerSyncEvent(S);var O=w.props.onMouseLeave;te(O)&&O(S,x)}),X(ae(w),"handleOuterEvent",function(x){var S=IN(x),O=qt(w.props,"".concat(S));if(S&&te(O)){var P,T;/.*touch.*/i.test(S)?T=w.getMouseInfo(x.changedTouches[0]):T=w.getMouseInfo(x),O((P=T)!==null&&P!==void 0?P:{},x)}}),X(ae(w),"handleClick",function(x){var S=w.getMouseInfo(x);if(S){var O=I(I({},S),{},{isTooltipActive:!0});w.setState(O),w.triggerSyncEvent(O);var P=w.props.onClick;te(P)&&P(O,x)}}),X(ae(w),"handleMouseDown",function(x){var S=w.props.onMouseDown;if(te(S)){var O=w.getMouseInfo(x);S(O,x)}}),X(ae(w),"handleMouseUp",function(x){var S=w.props.onMouseUp;if(te(S)){var O=w.getMouseInfo(x);S(O,x)}}),X(ae(w),"handleTouchMove",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(x.changedTouches[0])}),X(ae(w),"handleTouchStart",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&w.handleMouseDown(x.changedTouches[0])}),X(ae(w),"handleTouchEnd",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&w.handleMouseUp(x.changedTouches[0])}),X(ae(w),"triggerSyncEvent",function(x){w.props.syncId!==void 0&&Ad.emit(Td,w.props.syncId,x,w.eventEmitterSymbol)}),X(ae(w),"applySyncEvent",function(x){var S=w.props,O=S.layout,P=S.syncMethod,T=w.state.updateId,E=x.dataStartIndex,$=x.dataEndIndex;if(x.dataStartIndex!==void 0||x.dataEndIndex!==void 0)w.setState(I({dataStartIndex:E,dataEndIndex:$},m({props:w.props,dataStartIndex:E,dataEndIndex:$,updateId:T},w.state)));else if(x.activeTooltipIndex!==void 0){var k=x.chartX,N=x.chartY,j=x.activeTooltipIndex,F=w.state,R=F.offset,z=F.tooltipTicks;if(!R)return;if(typeof P=="function")j=P(z,x);else if(P==="value"){j=-1;for(var C=0;C=0){var Q,ee;if(k.dataKey&&!k.allowDuplicatedCategory){var L=typeof k.dataKey=="function"?q:"payload.".concat(k.dataKey.toString());Q=Nh(C,L,j),ee=D&&U&&Nh(U,L,j)}else Q=C==null?void 0:C[N],ee=D&&U&&U[N];if(Ne||Oe){var ke=x.props.activeIndex!==void 0?x.props.activeIndex:N;return[A.cloneElement(x,I(I(I({},P.props),mt),{},{activeIndex:ke})),null,null]}if(!ce(Q))return[It].concat(ga(w.renderActivePoints({item:P,activePoint:Q,basePoint:ee,childIndex:N,isRange:D})))}else{var re,Le=(re=w.getItemByXY(w.state.activeCoordinate))!==null&&re!==void 0?re:{graphicalItem:It},Ie=Le.graphicalItem,Pt=Ie.item,En=Pt===void 0?x:Pt,Gu=Ie.childIndex,Nr=I(I(I({},P.props),mt),{},{activeIndex:Gu});return[A.cloneElement(En,Nr),null,null]}return D?[It,null,null]:[It,null]}),X(ae(w),"renderCustomized",function(x,S,O){return A.cloneElement(x,I(I({key:"recharts-customized-".concat(O)},w.props),w.state))}),X(ae(w),"renderMap",{CartesianGrid:{handler:El,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:El},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:El},YAxis:{handler:El},Brush:{handler:w.renderBrush,once:!0},Bar:{handler:w.renderGraphicChild},Line:{handler:w.renderGraphicChild},Area:{handler:w.renderGraphicChild},Radar:{handler:w.renderGraphicChild},RadialBar:{handler:w.renderGraphicChild},Scatter:{handler:w.renderGraphicChild},Pie:{handler:w.renderGraphicChild},Funnel:{handler:w.renderGraphicChild},Tooltip:{handler:w.renderCursor,once:!0},PolarGrid:{handler:w.renderPolarGrid,once:!0},PolarAngleAxis:{handler:w.renderPolarAxis},PolarRadiusAxis:{handler:w.renderPolarAxis},Customized:{handler:w.renderCustomized}}),w.clipPathId="".concat((p=b.id)!==null&&p!==void 0?p:Xc("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=UP(w.triggeredAfterMouseMove,(g=b.throttleDelay)!==null&&g!==void 0?g:1e3/60),w.state={},w}return WY(y,[{key:"componentDidMount",value:function(){var p,g;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(p=this.props.margin.left)!==null&&p!==void 0?p:0,top:(g=this.props.margin.top)!==null&&g!==void 0?g:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var p=this.props,g=p.children,w=p.data,x=p.height,S=p.layout,O=At(g,Tn);if(O){var P=O.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length)){var T=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,E=Gp(this.state,w,P,T),$=this.state.tooltipTicks[P].coordinate,k=(this.state.offset.top+x)/2,N=S==="horizontal",j=N?{x:$,y:k}:{y:$,x:k},F=this.state.formattedGraphicalItems.find(function(z){var C=z.item;return C.type.name==="Scatter"});F&&(j=I(I({},j),F.props.points[P].tooltipPosition),E=F.props.points[P].tooltipPayload);var R={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:T,activePayload:E,activeCoordinate:j};this.setState(R),this.renderCursor(O),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(p,g){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==g.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==p.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==p.margin){var w,x;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0}})}return null}},{key:"componentDidUpdate",value:function(p){Dh([At(p.children,Tn)],[At(this.props.children,Tn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var p=At(this.props.children,Tn);if(p&&typeof p.props.shared=="boolean"){var g=p.props.shared?"axis":"item";return l.indexOf(g)>=0?g:o}return o}},{key:"getMouseInfo",value:function(p){if(!this.container)return null;var g=this.container,w=g.getBoundingClientRect(),x=i8(w),S={chartX:Math.round(p.pageX-x.left),chartY:Math.round(p.pageY-x.top)},O=w.width/g.offsetWidth||1,P=this.inRange(S.chartX,S.chartY,O);if(!P)return null;var T=this.state,E=T.xAxisMap,$=T.yAxisMap,k=this.getTooltipEventType();if(k!=="axis"&&E&&$){var N=or(E).scale,j=or($).scale,F=N&&N.invert?N.invert(S.chartX):null,R=j&&j.invert?j.invert(S.chartY):null;return I(I({},S),{},{xValue:F,yValue:R})}var z=Ew(this.state,this.props.data,this.props.layout,P);return z?I(I({},S),z):null}},{key:"inRange",value:function(p,g){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,x=this.props.layout,S=p/w,O=g/w;if(x==="horizontal"||x==="vertical"){var P=this.state.offset,T=S>=P.left&&S<=P.left+P.width&&O>=P.top&&O<=P.top+P.height;return T?{x:S,y:O}:null}var E=this.state,$=E.angleAxisMap,k=E.radiusAxisMap;if($&&k){var N=or($);return ob({x:S,y:O},N)}return null}},{key:"parseEventsOfWrapper",value:function(){var p=this.props.children,g=this.getTooltipEventType(),w=At(p,Tn),x={};w&&g==="axis"&&(w.props.trigger==="click"?x={onClick:this.handleClick}:x={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var S=bs(this.props,this.handleOuterEvent);return I(I({},S),x)}},{key:"addListener",value:function(){Ad.on(Td,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Ad.removeListener(Td,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(p,g,w){for(var x=this.state.formattedGraphicalItems,S=0,O=x.length;S=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function $w(e){const t=fn(e);return t.setHours(0,0,0,0),t}function Cw(e){const t=fn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function fX(e,t){const n=$w(e),r=$w(t),i=+n-Cw(n),a=+r-Cw(r);return Math.round((i-a)/sX)}function dX(e){const t=zE(e),n=ci(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),cc(n)}function hX(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function pX(e){if(!hX(e)&&typeof e!="number")return!1;const t=fn(e);return!isNaN(Number(t))}function vX(e){const t=fn(e),n=ci(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const mX={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},yX=(e,t,n)=>{let r;const i=mX[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Cd(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const gX={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},bX={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wX={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xX={date:Cd({formats:gX,defaultWidth:"full"}),time:Cd({formats:bX,defaultWidth:"full"}),dateTime:Cd({formats:wX,defaultWidth:"full"})},SX={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},OX=(e,t,n,r)=>SX[e];function to(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,u=n!=null&&n.width?String(n.width):o;i=e.formattingValues[u]||e.formattingValues[o]}else{const o=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[u]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const PX={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_X={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},EX={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},AX={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},TX={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},$X={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},CX=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},kX={ordinalNumber:CX,era:to({values:PX,defaultWidth:"wide"}),quarter:to({values:_X,defaultWidth:"wide",argumentCallback:e=>e-1}),month:to({values:EX,defaultWidth:"wide"}),day:to({values:AX,defaultWidth:"wide"}),dayPeriod:to({values:TX,defaultWidth:"wide",formattingValues:$X,defaultFormattingWidth:"wide"})};function no(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?MX(u,c=>c.test(o)):jX(u,c=>c.test(o));let s;s=e.valueCallback?e.valueCallback(l):l,s=n.valueCallback?n.valueCallback(s):s;const f=t.slice(o.length);return{value:s,rest:f}}}function jX(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function MX(e,t){for(let n=0;n{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const u=t.slice(i.length);return{value:o,rest:u}}}const IX=/^(\d+)(th|st|nd|rd)?/i,DX=/\d+/i,RX={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},LX={any:[/^b/i,/^(a|c)/i]},BX={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},FX={any:[/1/i,/2/i,/3/i,/4/i]},zX={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},UX={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},WX={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},HX={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},VX={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},qX={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},KX={ordinalNumber:NX({matchPattern:IX,parsePattern:DX,valueCallback:e=>parseInt(e,10)}),era:no({matchPatterns:RX,defaultMatchWidth:"wide",parsePatterns:LX,defaultParseWidth:"any"}),quarter:no({matchPatterns:BX,defaultMatchWidth:"wide",parsePatterns:FX,defaultParseWidth:"any",valueCallback:e=>e+1}),month:no({matchPatterns:zX,defaultMatchWidth:"wide",parsePatterns:UX,defaultParseWidth:"any"}),day:no({matchPatterns:WX,defaultMatchWidth:"wide",parsePatterns:HX,defaultParseWidth:"any"}),dayPeriod:no({matchPatterns:VX,defaultMatchWidth:"any",parsePatterns:qX,defaultParseWidth:"any"})},GX={code:"en-US",formatDistance:yX,formatLong:xX,formatRelative:OX,localize:kX,match:KX,options:{weekStartsOn:0,firstWeekContainsDate:1}};function YX(e){const t=fn(e);return fX(t,vX(t))+1}function XX(e){const t=fn(e),n=+cc(t)-+dX(t);return Math.round(n/FE)+1}function UE(e,t){var f,c,d,h;const n=fn(e),r=n.getFullYear(),i=Sf(),a=(t==null?void 0:t.firstWeekContainsDate)??((c=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:c.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(d=i.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,o=ci(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const u=Tu(o,t),l=ci(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const s=Tu(l,t);return n.getTime()>=u.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function QX(e,t){var u,l,s,f;const n=Sf(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(s=n.locale)==null?void 0:s.options)==null?void 0:f.firstWeekContainsDate)??1,i=UE(e,t),a=ci(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Tu(a,t)}function JX(e,t){const n=fn(e),r=+Tu(n,t)-+QX(n,t);return Math.round(r/FE)+1}function se(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const er={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return se(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):se(n+1,2)},d(e,t){return se(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return se(e.getHours()%12||12,t.length)},H(e,t){return se(e.getHours(),t.length)},m(e,t){return se(e.getMinutes(),t.length)},s(e,t){return se(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return se(i,t.length)}},Oi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},kw={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return er.y(e,t)},Y:function(e,t,n,r){const i=UE(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return se(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):se(a,t.length)},R:function(e,t){const n=zE(e);return se(n,t.length)},u:function(e,t){const n=e.getFullYear();return se(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return se(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return se(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return er.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return se(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=JX(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):se(i,t.length)},I:function(e,t,n){const r=XX(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):se(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):er.d(e,t)},D:function(e,t,n){const r=YX(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):se(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return se(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return se(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return se(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Oi.noon:r===0?i=Oi.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Oi.evening:r>=12?i=Oi.afternoon:r>=4?i=Oi.morning:i=Oi.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return er.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):er.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):se(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):se(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):er.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):er.s(e,t)},S:function(e,t){return er.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Mw(r);case"XXXX":case"XX":return Wr(r);case"XXXXX":case"XXX":default:return Wr(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Mw(r);case"xxxx":case"xx":return Wr(r);case"xxxxx":case"xxx":default:return Wr(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+jw(r,":");case"OOOO":default:return"GMT"+Wr(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+jw(r,":");case"zzzz":default:return"GMT"+Wr(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return se(r,t.length)},T:function(e,t,n){const r=e.getTime();return se(r,t.length)}};function jw(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+se(a,2)}function Mw(e,t){return e%60===0?(e>0?"-":"+")+se(Math.abs(e)/60,2):Wr(e,t)}function Wr(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=se(Math.trunc(r/60),2),a=se(r%60,2);return n+i+t+a}const Nw=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},WE=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ZX=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Nw(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Nw(r,t)).replace("{{time}}",WE(i,t))},eQ={p:WE,P:ZX},tQ=/^D+$/,nQ=/^Y+$/,rQ=["D","DD","YY","YYYY"];function iQ(e){return tQ.test(e)}function aQ(e){return nQ.test(e)}function oQ(e,t,n){const r=uQ(e,t,n);if(console.warn(r),rQ.includes(e))throw new RangeError(r)}function uQ(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const lQ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,sQ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,cQ=/^'([^]*?)'?$/,fQ=/''/g,dQ=/[a-zA-Z]/;function hQ(e,t,n){var f,c,d,h,m,v,y,b;const r=Sf(),i=(n==null?void 0:n.locale)??r.locale??GX,a=(n==null?void 0:n.firstWeekContainsDate)??((c=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(d=r.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((v=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:v.weekStartsOn)??r.weekStartsOn??((b=(y=r.locale)==null?void 0:y.options)==null?void 0:b.weekStartsOn)??0,u=fn(e);if(!pX(u))throw new RangeError("Invalid time value");let l=t.match(sQ).map(p=>{const g=p[0];if(g==="p"||g==="P"){const w=eQ[g];return w(p,i.formatLong)}return p}).join("").match(lQ).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const g=p[0];if(g==="'")return{isToken:!1,value:pQ(p)};if(kw[g])return{isToken:!0,value:p};if(g.match(dQ))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:p}});i.localize.preprocessor&&(l=i.localize.preprocessor(u,l));const s={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return l.map(p=>{if(!p.isToken)return p.value;const g=p.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&aQ(g)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&iQ(g))&&oQ(g,t,String(e));const w=kw[g[0]];return w(u,g,i.localize,s)}).join("")}function pQ(e){const t=e.match(cQ);return t?t[1].replace(fQ,"'"):e}function vQ({history:e}){return e&&W.jsxs("div",{className:"",children:[W.jsx("h2",{children:"Gráfica histórica"}),W.jsx("div",{className:"grafica",children:W.jsx(QU,{width:"100%",height:200,children:W.jsxs(lX,{data:e,children:[W.jsx(kE,{strokeDasharray:"5 5"}),W.jsx(bf,{dataKey:"date",tickFormatter:t=>{const n=new Date(t);return hQ(n,"dd/MM")}}),W.jsx(wf,{}),W.jsx(oa,{}),W.jsx(yi,{dataKey:"priceUsd",name:"Precio (USD)",fill:"#8884d8"})]})})})]})}function mQ(){const e=q$(),t=Ng(`assets/${e.id}`),n=Ng(`assets/${e.id}/history?interval=d1`);return!t||!n?W.jsx("div",{className:"cripto-page-container",children:W.jsx("h1",{children:"Cargando..."})}):W.jsxs(W.Fragment,{children:[W.jsx("div",{className:"cripto-page-container",children:t&&W.jsx(Wk,{cryptoData:t})}),W.jsx("div",{className:"grafica-container",children:n&&W.jsx(vQ,{history:n})})]})}kd.createRoot(document.getElementById("root")).render(W.jsx(mC,{children:W.jsxs(lC,{children:[W.jsx(Br,{path:"*",element:W.jsx(Uk,{})}),W.jsx(Br,{path:"/",element:W.jsx(Sg,{}),children:W.jsx(Br,{index:!0,element:W.jsx(OC,{})})}),W.jsxs(Br,{path:"/criptomonedas",element:W.jsx(Sg,{}),children:[W.jsx(Br,{index:!0,element:W.jsx(zk,{})}),W.jsx(Br,{path:":id",element:W.jsx(mQ,{})})]})]})})); diff --git a/assets/index-pWc7IeWw.js b/assets/index-pWc7IeWw.js new file mode 100644 index 0000000..a165d14 --- /dev/null +++ b/assets/index-pWc7IeWw.js @@ -0,0 +1,138 @@ +function DE(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Vu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function me(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $w={exports:{}},uc={},kw={exports:{}},ne={};/** + * @license React + * react.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 Eu=Symbol.for("react.element"),RE=Symbol.for("react.portal"),LE=Symbol.for("react.fragment"),BE=Symbol.for("react.strict_mode"),FE=Symbol.for("react.profiler"),zE=Symbol.for("react.provider"),UE=Symbol.for("react.context"),WE=Symbol.for("react.forward_ref"),HE=Symbol.for("react.suspense"),VE=Symbol.for("react.memo"),qE=Symbol.for("react.lazy"),ty=Symbol.iterator;function KE(e){return e===null||typeof e!="object"?null:(e=ty&&e[ty]||e["@@iterator"],typeof e=="function"?e:null)}var Cw={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jw=Object.assign,Mw={};function va(e,t,n){this.props=e,this.context=t,this.refs=Mw,this.updater=n||Cw}va.prototype.isReactComponent={};va.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};va.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Nw(){}Nw.prototype=va.prototype;function Wp(e,t,n){this.props=e,this.context=t,this.refs=Mw,this.updater=n||Cw}var Hp=Wp.prototype=new Nw;Hp.constructor=Wp;jw(Hp,va.prototype);Hp.isPureReactComponent=!0;var ny=Array.isArray,Iw=Object.prototype.hasOwnProperty,Vp={current:null},Dw={key:!0,ref:!0,__self:!0,__source:!0};function Rw(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)Iw.call(t,r)&&!Dw.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1>>1,V=$[Y];if(0>>1;Yi(Me,U))lti(vt,Me)?($[Y]=vt,$[lt]=U,Y=lt):($[Y]=Me,$[Oe]=U,Y=Oe);else if(lti(vt,U))$[Y]=vt,$[lt]=U,Y=lt;else break e}}return D}function i($,D){var U=$.sortIndex-D.sortIndex;return U!==0?U:$.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var l=[],s=[],f=1,c=null,d=3,p=!1,m=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y($){for(var D=n(s);D!==null;){if(D.callback===null)r(s);else if(D.startTime<=$)r(s),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(s)}}function b($){if(v=!1,y($),!m)if(n(l)!==null)m=!0,R(x);else{var D=n(s);D!==null&&z(b,D.startTime-$)}}function x($,D){m=!1,v&&(v=!1,g(P),P=-1),p=!0;var U=d;try{for(y(D),c=n(l);c!==null&&(!(c.expirationTime>D)||$&&!T());){var Y=c.callback;if(typeof Y=="function"){c.callback=null,d=c.priorityLevel;var V=Y(c.expirationTime<=D);D=e.unstable_now(),typeof V=="function"?c.callback=V:c===n(l)&&r(l),y(D)}else r(l);c=n(l)}if(c!==null)var Z=!0;else{var Oe=n(s);Oe!==null&&z(b,Oe.startTime-D),Z=!1}return Z}finally{c=null,d=U,p=!1}}var S=!1,O=null,P=-1,A=5,E=-1;function T(){return!(e.unstable_now()-E$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function($){switch(d){case 1:case 2:case 3:var D=3;break;default:D=d}var U=d;d=D;try{return $()}finally{d=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,D){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var U=d;d=$;try{return D()}finally{d=U}},e.unstable_scheduleCallback=function($,D,U){var Y=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0Y?($.sortIndex=U,t(s,$),n(l)===null&&$===n(s)&&(v?(g(P),P=-1):v=!0,z(b,U-Y))):($.sortIndex=V,t(l,$),m||p||(m=!0,R(x))),$},e.unstable_shouldYield=T,e.unstable_wrapCallback=function($){var D=d;return function(){var U=d;d=D;try{return $.apply(this,arguments)}finally{d=U}}}})(zw);Fw.exports=zw;var aA=Fw.exports;/** + * @license React + * react-dom.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 Uw=C,Ct=aA;function B(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Td=Object.prototype.hasOwnProperty,oA=/^[: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]*$/,iy={},ay={};function uA(e){return Td.call(ay,e)?!0:Td.call(iy,e)?!1:oA.test(e)?ay[e]=!0:(iy[e]=!0,!1)}function lA(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function sA(e,t,n,r){if(t===null||typeof t>"u"||lA(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function pt(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var et={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){et[e]=new pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];et[t]=new pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){et[e]=new pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){et[e]=new pt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){et[e]=new pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){et[e]=new pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){et[e]=new pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){et[e]=new pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){et[e]=new pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Kp=/[\-:]([a-z])/g;function Gp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Kp,Gp);et[t]=new pt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Kp,Gp);et[t]=new pt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Kp,Gp);et[t]=new pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){et[e]=new pt(e,1,!1,e.toLowerCase(),null,!1,!1)});et.xlinkHref=new pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){et[e]=new pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yp(e,t,n,r){var i=et.hasOwnProperty(t)?et[t]:null;(i!==null?i.type!==0:r||!(2u||i[o]!==a[u]){var l=` +`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=u);break}}}finally{Sf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?eo(e):""}function cA(e){switch(e.tag){case 5:return eo(e.type);case 16:return eo("Lazy");case 13:return eo("Suspense");case 19:return eo("SuspenseList");case 0:case 2:case 15:return e=Of(e.type,!1),e;case 11:return e=Of(e.type.render,!1),e;case 1:return e=Of(e.type,!0),e;default:return""}}function jd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Si:return"Fragment";case xi:return"Portal";case $d:return"Profiler";case Xp:return"StrictMode";case kd:return"Suspense";case Cd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vw:return(e.displayName||"Context")+".Consumer";case Hw:return(e._context.displayName||"Context")+".Provider";case Qp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Jp:return t=e.displayName||null,t!==null?t:jd(e.type)||"Memo";case er:t=e._payload,e=e._init;try{return jd(e(t))}catch{}}return null}function fA(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return jd(t);case 8:return t===Xp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function br(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dA(e){var t=Kw(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gu(e){e._valueTracker||(e._valueTracker=dA(e))}function Gw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Kw(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Md(e,t){var n=t.checked;return Te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function uy(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=br(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Yw(e,t){t=t.checked,t!=null&&Yp(e,"checked",t,!1)}function Nd(e,t){Yw(e,t);var n=br(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Id(e,t.type,n):t.hasOwnProperty("defaultValue")&&Id(e,t.type,br(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ly(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Id(e,t,n){(t!=="number"||zl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var to=Array.isArray;function Ii(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Yu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function So(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var oo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},hA=["Webkit","ms","Moz","O"];Object.keys(oo).forEach(function(e){hA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),oo[t]=oo[e]})});function Zw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||oo.hasOwnProperty(e)&&oo[e]?(""+t).trim():t+"px"}function ex(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Zw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var pA=Te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ld(e,t){if(t){if(pA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(B(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(B(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(B(61))}if(t.style!=null&&typeof t.style!="object")throw Error(B(62))}}function Bd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Fd=null;function Zp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zd=null,Di=null,Ri=null;function fy(e){if(e=$u(e)){if(typeof zd!="function")throw Error(B(280));var t=e.stateNode;t&&(t=dc(t),zd(e.stateNode,e.type,t))}}function tx(e){Di?Ri?Ri.push(e):Ri=[e]:Di=e}function nx(){if(Di){var e=Di,t=Ri;if(Ri=Di=null,fy(e),t)for(e=0;e>>=0,e===0?32:31-(_A(e)/EA|0)|0}var Xu=64,Qu=4194304;function no(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Vl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~i;u!==0?r=no(u):(a&=o,a!==0&&(r=no(a)))}else o=n&~i,o!==0?r=no(o):a!==0&&(r=no(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Au(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-on(t),e[t]=n}function kA(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=lo),wy=" ",xy=!1;function Sx(e,t){switch(e){case"keyup":return iT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ox(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Oi=!1;function oT(e,t){switch(e){case"compositionend":return Ox(t);case"keypress":return t.which!==32?null:(xy=!0,wy);case"textInput":return e=t.data,e===wy&&xy?null:e;default:return null}}function uT(e,t){if(Oi)return e==="compositionend"||!uv&&Sx(e,t)?(e=wx(),El=iv=or=null,Oi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_y(n)}}function Ax(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ax(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tx(){for(var e=window,t=zl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zl(e.document)}return t}function lv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function mT(e){var t=Tx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ax(n.ownerDocument.documentElement,n)){if(r!==null&&lv(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Ey(n,a);var o=Ey(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Pi=null,Kd=null,co=null,Gd=!1;function Ay(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gd||Pi==null||Pi!==zl(r)||(r=Pi,"selectionStart"in r&&lv(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),co&&To(co,r)||(co=r,r=Gl(Kd,"onSelect"),0Ai||(e.current=eh[Ai],eh[Ai]=null,Ai--)}function ge(e,t){Ai++,eh[Ai]=e.current,e.current=t}var wr={},ut=Or(wr),bt=Or(!1),Jr=wr;function Vi(e,t){var n=e.type.contextTypes;if(!n)return wr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function wt(e){return e=e.childContextTypes,e!=null}function Xl(){Se(bt),Se(ut)}function Ny(e,t,n){if(ut.current!==wr)throw Error(B(168));ge(ut,t),ge(bt,n)}function Rx(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(B(108,fA(e)||"Unknown",i));return Te({},n,r)}function Ql(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wr,Jr=ut.current,ge(ut,e),ge(bt,bt.current),!0}function Iy(e,t,n){var r=e.stateNode;if(!r)throw Error(B(169));n?(e=Rx(e,t,Jr),r.__reactInternalMemoizedMergedChildContext=e,Se(bt),Se(ut),ge(ut,e)):Se(bt),ge(bt,n)}var $n=null,hc=!1,Rf=!1;function Lx(e){$n===null?$n=[e]:$n.push(e)}function TT(e){hc=!0,Lx(e)}function Pr(){if(!Rf&&$n!==null){Rf=!0;var e=0,t=fe;try{var n=$n;for(fe=1;e>=o,i-=o,kn=1<<32-on(t)+i|n<P?(A=O,O=null):A=O.sibling;var E=d(g,O,y[P],b);if(E===null){O===null&&(O=A);break}e&&O&&E.alternate===null&&t(g,O),h=a(E,h,P),S===null?x=E:S.sibling=E,S=E,O=A}if(P===y.length)return n(g,O),Pe&&Mr(g,P),x;if(O===null){for(;PP?(A=O,O=null):A=O.sibling;var T=d(g,O,E.value,b);if(T===null){O===null&&(O=A);break}e&&O&&T.alternate===null&&t(g,O),h=a(T,h,P),S===null?x=T:S.sibling=T,S=T,O=A}if(E.done)return n(g,O),Pe&&Mr(g,P),x;if(O===null){for(;!E.done;P++,E=y.next())E=c(g,E.value,b),E!==null&&(h=a(E,h,P),S===null?x=E:S.sibling=E,S=E);return Pe&&Mr(g,P),x}for(O=r(g,O);!E.done;P++,E=y.next())E=p(O,g,P,E.value,b),E!==null&&(e&&E.alternate!==null&&O.delete(E.key===null?P:E.key),h=a(E,h,P),S===null?x=E:S.sibling=E,S=E);return e&&O.forEach(function(k){return t(g,k)}),Pe&&Mr(g,P),x}function w(g,h,y,b){if(typeof y=="object"&&y!==null&&y.type===Si&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Ku:e:{for(var x=y.key,S=h;S!==null;){if(S.key===x){if(x=y.type,x===Si){if(S.tag===7){n(g,S.sibling),h=i(S,y.props.children),h.return=g,g=h;break e}}else if(S.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===er&&Uy(x)===S.type){n(g,S.sibling),h=i(S,y.props),h.ref=La(g,S,y),h.return=g,g=h;break e}n(g,S);break}else t(g,S);S=S.sibling}y.type===Si?(h=Gr(y.props.children,g.mode,b,y.key),h.return=g,g=h):(b=Nl(y.type,y.key,y.props,null,g.mode,b),b.ref=La(g,h,y),b.return=g,g=b)}return o(g);case xi:e:{for(S=y.key;h!==null;){if(h.key===S)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(g,h.sibling),h=i(h,y.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else t(g,h);h=h.sibling}h=Vf(y,g.mode,b),h.return=g,g=h}return o(g);case er:return S=y._init,w(g,h,S(y._payload),b)}if(to(y))return m(g,h,y,b);if(Ma(y))return v(g,h,y,b);il(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(g,h.sibling),h=i(h,y),h.return=g,g=h):(n(g,h),h=Hf(y,g.mode,b),h.return=g,g=h),o(g)):n(g,h)}return w}var Ki=qx(!0),Kx=qx(!1),ku={},bn=Or(ku),jo=Or(ku),Mo=Or(ku);function zr(e){if(e===ku)throw Error(B(174));return e}function yv(e,t){switch(ge(Mo,t),ge(jo,e),ge(bn,ku),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Rd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Rd(t,e)}Se(bn),ge(bn,t)}function Gi(){Se(bn),Se(jo),Se(Mo)}function Gx(e){zr(Mo.current);var t=zr(bn.current),n=Rd(t,e.type);t!==n&&(ge(jo,e),ge(bn,n))}function gv(e){jo.current===e&&(Se(bn),Se(jo))}var Ee=Or(0);function rs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Lf=[];function bv(){for(var e=0;en?n:4,e(!0);var r=Bf.transition;Bf.transition={};try{e(!1),t()}finally{fe=n,Bf.transition=r}}function cS(){return Gt().memoizedState}function jT(e,t,n){var r=vr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},fS(e))dS(t,n);else if(n=Ux(e,t,n,r),n!==null){var i=dt();un(n,e,r,i),hS(n,t,r)}}function MT(e,t,n){var r=vr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(fS(e))dS(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,u=a(o,n);if(i.hasEagerState=!0,i.eagerState=u,sn(u,o)){var l=t.interleaved;l===null?(i.next=i,vv(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Ux(e,t,i,r),n!==null&&(i=dt(),un(n,e,r,i),hS(n,t,r))}}function fS(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function dS(e,t){fo=is=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hS(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tv(e,n)}}var as={readContext:Kt,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useInsertionEffect:tt,useLayoutEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useMutableSource:tt,useSyncExternalStore:tt,useId:tt,unstable_isNewReconciler:!1},NT={readContext:Kt,useCallback:function(e,t){return pn().memoizedState=[e,t===void 0?null:t],e},useContext:Kt,useEffect:Hy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,kl(4194308,4,aS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return kl(4194308,4,e,t)},useInsertionEffect:function(e,t){return kl(4,2,e,t)},useMemo:function(e,t){var n=pn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=jT.bind(null,Ae,e),[r.memoizedState,e]},useRef:function(e){var t=pn();return e={current:e},t.memoizedState=e},useState:Wy,useDebugValue:Pv,useDeferredValue:function(e){return pn().memoizedState=e},useTransition:function(){var e=Wy(!1),t=e[0];return e=CT.bind(null,e[1]),pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ae,i=pn();if(Pe){if(n===void 0)throw Error(B(407));n=n()}else{if(n=t(),Ke===null)throw Error(B(349));ei&30||Qx(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Hy(Zx.bind(null,r,a,e),[e]),r.flags|=2048,Do(9,Jx.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=pn(),t=Ke.identifierPrefix;if(Pe){var n=Cn,r=kn;n=(r&~(1<<32-on(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=No++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[vn]=t,e[Co]=r,SS(e,t,!1,!1),t.stateNode=e;e:{switch(o=Bd(n,r),n){case"dialog":be("cancel",e),be("close",e),i=r;break;case"iframe":case"object":case"embed":be("load",e),i=r;break;case"video":case"audio":for(i=0;iXi&&(t.flags|=128,r=!0,Ba(a,!1),t.lanes=4194304)}else{if(!r)if(e=rs(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ba(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Pe)return nt(t),null}else 2*Ce()-a.renderingStartTime>Xi&&n!==1073741824&&(t.flags|=128,r=!0,Ba(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ce(),t.sibling=null,n=Ee.current,ge(Ee,r?n&1|2:n&1),t):(nt(t),null);case 22:case 23:return kv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Et&1073741824&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),null;case 24:return null;case 25:return null}throw Error(B(156,t.tag))}function UT(e,t){switch(cv(t),t.tag){case 1:return wt(t.type)&&Xl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gi(),Se(bt),Se(ut),bv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return gv(t),null;case 13:if(Se(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(B(340));qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(Ee),null;case 4:return Gi(),null;case 10:return pv(t.type._context),null;case 22:case 23:return kv(),null;case 24:return null;default:return null}}var ol=!1,it=!1,WT=typeof WeakSet=="function"?WeakSet:Set,K=null;function Ci(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){$e(e,t,r)}else n.current=null}function dh(e,t,n){try{n()}catch(r){$e(e,t,r)}}var Zy=!1;function HT(e,t){if(Yd=ql,e=Tx(),lv(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,u=-1,l=-1,s=0,f=0,c=e,d=null;t:for(;;){for(var p;c!==n||i!==0&&c.nodeType!==3||(u=o+i),c!==a||r!==0&&c.nodeType!==3||(l=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break t;if(d===n&&++s===i&&(u=o),d===a&&++f===r&&(l=o),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}n=u===-1||l===-1?null:{start:u,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Xd={focusedElem:e,selectionRange:n},ql=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,w=m.memoizedState,g=t.stateNode,h=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Zt(t.type,v),w);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(B(163))}}catch(b){$e(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return m=Zy,Zy=!1,m}function ho(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&dh(t,n,a)}i=i.next}while(i!==r)}}function mc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function hh(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function _S(e){var t=e.alternate;t!==null&&(e.alternate=null,_S(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vn],delete t[Co],delete t[Zd],delete t[ET],delete t[AT])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ES(e){return e.tag===5||e.tag===3||e.tag===4}function eg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ES(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ph(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yl));else if(r!==4&&(e=e.child,e!==null))for(ph(e,t,n),e=e.sibling;e!==null;)ph(e,t,n),e=e.sibling}function vh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(vh(e,t,n),e=e.sibling;e!==null;)vh(e,t,n),e=e.sibling}var Qe=null,en=!1;function Qn(e,t,n){for(n=n.child;n!==null;)AS(e,t,n),n=n.sibling}function AS(e,t,n){if(gn&&typeof gn.onCommitFiberUnmount=="function")try{gn.onCommitFiberUnmount(lc,n)}catch{}switch(n.tag){case 5:it||Ci(n,t);case 6:var r=Qe,i=en;Qe=null,Qn(e,t,n),Qe=r,en=i,Qe!==null&&(en?(e=Qe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Qe.removeChild(n.stateNode));break;case 18:Qe!==null&&(en?(e=Qe,n=n.stateNode,e.nodeType===8?Df(e.parentNode,n):e.nodeType===1&&Df(e,n),Eo(e)):Df(Qe,n.stateNode));break;case 4:r=Qe,i=en,Qe=n.stateNode.containerInfo,en=!0,Qn(e,t,n),Qe=r,en=i;break;case 0:case 11:case 14:case 15:if(!it&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&dh(n,t,o),i=i.next}while(i!==r)}Qn(e,t,n);break;case 1:if(!it&&(Ci(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){$e(n,t,u)}Qn(e,t,n);break;case 21:Qn(e,t,n);break;case 22:n.mode&1?(it=(r=it)||n.memoizedState!==null,Qn(e,t,n),it=r):Qn(e,t,n);break;default:Qn(e,t,n)}}function tg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new WT),t.forEach(function(r){var i=ZT.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Qt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=Ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qT(r/1960))-r,10e?16:e,ur===null)var r=!1;else{if(e=ur,ur=null,ls=0,oe&6)throw Error(B(331));var i=oe;for(oe|=4,K=e.current;K!==null;){var a=K,o=a.child;if(K.flags&16){var u=a.deletions;if(u!==null){for(var l=0;lCe()-Tv?Kr(e,0):Av|=n),xt(e,t)}function IS(e,t){t===0&&(e.mode&1?(t=Qu,Qu<<=1,!(Qu&130023424)&&(Qu=4194304)):t=1);var n=dt();e=Un(e,t),e!==null&&(Au(e,t,n),xt(e,n))}function JT(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),IS(e,n)}function ZT(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(B(314))}r!==null&&r.delete(t),IS(e,n)}var DS;DS=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||bt.current)yt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return yt=!1,FT(e,t,n);yt=!!(e.flags&131072)}else yt=!1,Pe&&t.flags&1048576&&Bx(t,Zl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Cl(e,t),e=t.pendingProps;var i=Vi(t,ut.current);Bi(t,n),i=xv(null,t,r,e,i,n);var a=Sv();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wt(r)?(a=!0,Ql(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,mv(t),i.updater=pc,t.stateNode=i,i._reactInternals=t,ah(t,r,e,n),t=lh(null,t,r,!0,a,n)):(t.tag=0,Pe&&a&&sv(t),ct(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Cl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=t$(r),e=Zt(r,e),i){case 0:t=uh(null,t,r,e,n);break e;case 1:t=Xy(null,t,r,e,n);break e;case 11:t=Gy(null,t,r,e,n);break e;case 14:t=Yy(null,t,r,Zt(r.type,e),n);break e}throw Error(B(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zt(r,i),uh(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zt(r,i),Xy(e,t,r,i,n);case 3:e:{if(bS(t),e===null)throw Error(B(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Wx(e,t),ns(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Yi(Error(B(423)),t),t=Qy(e,t,r,n,i);break e}else if(r!==i){i=Yi(Error(B(424)),t),t=Qy(e,t,r,n,i);break e}else for($t=dr(t.stateNode.containerInfo.firstChild),kt=t,Pe=!0,nn=null,n=Kx(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(qi(),r===i){t=Wn(e,t,n);break e}ct(e,t,r,n)}t=t.child}return t;case 5:return Gx(t),e===null&&nh(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Qd(r,i)?o=null:a!==null&&Qd(r,a)&&(t.flags|=32),gS(e,t),ct(e,t,o,n),t.child;case 6:return e===null&&nh(t),null;case 13:return wS(e,t,n);case 4:return yv(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ki(t,null,r,n):ct(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zt(r,i),Gy(e,t,r,i,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,ge(es,r._currentValue),r._currentValue=o,a!==null)if(sn(a.value,o)){if(a.children===i.children&&!bt.current){t=Wn(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){o=a.child;for(var l=u.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=In(-1,n&-n),l.tag=2;var s=a.updateQueue;if(s!==null){s=s.shared;var f=s.pending;f===null?l.next=l:(l.next=f.next,f.next=l),s.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),rh(a.return,n,t),u.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(B(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),rh(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}ct(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Bi(t,n),i=Kt(i),r=r(i),t.flags|=1,ct(e,t,r,n),t.child;case 14:return r=t.type,i=Zt(r,t.pendingProps),i=Zt(r.type,i),Yy(e,t,r,i,n);case 15:return mS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zt(r,i),Cl(e,t),t.tag=1,wt(r)?(e=!0,Ql(t)):e=!1,Bi(t,n),Vx(t,r,i),ah(t,r,i,n),lh(null,t,r,!0,e,n);case 19:return xS(e,t,n);case 22:return yS(e,t,n)}throw Error(B(156,t.tag))};function RS(e,t){return sx(e,t)}function e$(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,n,r){return new e$(e,t,n,r)}function jv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function t$(e){if(typeof e=="function")return jv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qp)return 11;if(e===Jp)return 14}return 2}function mr(e,t){var n=e.alternate;return n===null?(n=Ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nl(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")jv(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Si:return Gr(n.children,i,a,t);case Xp:o=8,i|=8;break;case $d:return e=Ut(12,n,t,i|2),e.elementType=$d,e.lanes=a,e;case kd:return e=Ut(13,n,t,i),e.elementType=kd,e.lanes=a,e;case Cd:return e=Ut(19,n,t,i),e.elementType=Cd,e.lanes=a,e;case qw:return gc(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Hw:o=10;break e;case Vw:o=9;break e;case Qp:o=11;break e;case Jp:o=14;break e;case er:o=16,r=null;break e}throw Error(B(130,e==null?e:typeof e,""))}return t=Ut(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Gr(e,t,n,r){return e=Ut(7,e,r,t),e.lanes=n,e}function gc(e,t,n,r){return e=Ut(22,e,r,t),e.elementType=qw,e.lanes=n,e.stateNode={isHidden:!1},e}function Hf(e,t,n){return e=Ut(6,e,null,t),e.lanes=n,e}function Vf(e,t,n){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function n$(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_f(0),this.expirationTimes=_f(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_f(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Mv(e,t,n,r,i,a,o,u,l){return e=new n$(e,t,n,u,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Ut(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},mv(a),e}function r$(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zS)}catch(e){console.error(e)}}zS(),Bw.exports=jt;var l$=Bw.exports,sg=l$;Ad.createRoot=sg.createRoot,Ad.hydrateRoot=sg.hydrateRoot;/** + * @remix-run/router v1.15.3 + * + * 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 + */function Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function US(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function c$(){return Math.random().toString(36).substr(2,8)}function fg(e,t){return{usr:e.state,key:e.key,idx:t}}function wh(e,t,n,r){return n===void 0&&(n=null),Lo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Cu(t):t,{state:n,key:t&&t.key||r||c$()})}function fs(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Cu(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function f$(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,u=Ur.Pop,l=null,s=f();s==null&&(s=0,o.replaceState(Lo({},o.state,{idx:s}),""));function f(){return(o.state||{idx:null}).idx}function c(){u=Ur.Pop;let w=f(),g=w==null?null:w-s;s=w,l&&l({action:u,location:v.location,delta:g})}function d(w,g){u=Ur.Push;let h=wh(v.location,w,g);n&&n(h,w),s=f()+1;let y=fg(h,s),b=v.createHref(h);try{o.pushState(y,"",b)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;i.location.assign(b)}a&&l&&l({action:u,location:v.location,delta:1})}function p(w,g){u=Ur.Replace;let h=wh(v.location,w,g);n&&n(h,w),s=f();let y=fg(h,s),b=v.createHref(h);o.replaceState(y,"",b),a&&l&&l({action:u,location:v.location,delta:0})}function m(w){let g=i.location.origin!=="null"?i.location.origin:i.location.href,h=typeof w=="string"?w:fs(w);return h=h.replace(/ $/,"%20"),St(g,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,g)}let v={get action(){return u},get location(){return e(i,o)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(cg,c),l=w,()=>{i.removeEventListener(cg,c),l=null}},createHref(w){return t(i,w)},createURL:m,encodeLocation(w){let g=m(w);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:d,replace:p,go(w){return o.go(w)}};return v}var dg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(dg||(dg={}));function hg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=d$(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:r.reduce((s,f,c)=>{let{paramName:d,isOptional:p}=f;if(d==="*"){let v=u[c]||"";o=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const m=u[c];return p&&!m?s[d]=void 0:s[d]=(m||"").replace(/%2F/g,"/"),s},{}),pathname:a,pathnameBase:o,pattern:e}}function d$(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),US(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,u,l)=>(r.push({paramName:u,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Bo(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 h$(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Cu(e):e;return{pathname:n?n.startsWith("/")?n:p$(n,t):t,search:m$(r),hash:y$(i)}}function p$(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function qf(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 and the router will parse it for you.'}function v$(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function WS(e,t){let n=v$(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function HS(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Cu(e):(i=Lo({},e),St(!i.pathname||!i.pathname.includes("?"),qf("?","pathname","search",i)),St(!i.pathname||!i.pathname.includes("#"),qf("#","pathname","hash",i)),St(!i.search||!i.search.includes("#"),qf("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,u;if(o==null)u=n;else{let c=t.length-1;if(!r&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),c-=1;i.pathname=d.join("/")}u=c>=0?t[c]:"/"}let l=h$(i,u),s=o&&o!=="/"&&o.endsWith("/"),f=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(s||f)&&(l.pathname+="/"),l}const VS=e=>e.join("/").replace(/\/\/+/g,"/"),m$=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,y$=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,qS=["post","put","patch","delete"];new Set(qS);const g$=["get",...qS];new Set(g$);/** + * React Router v6.22.3 + * + * 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 + */function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t{u.current=!0}),C.useCallback(function(s,f){if(f===void 0&&(f={}),!u.current)return;if(typeof s=="number"){r.go(s);return}let c=HS(s,JSON.parse(o),a,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:VS([t,c.pathname])),(f.replace?r.replace:r.push)(c,f.state,f)},[t,r,o,a,e])}const O$=C.createContext(null);function P$(e){let t=C.useContext(ga).outlet;return t&&C.createElement(O$.Provider,{value:e},t)}function _$(){let{matches:e}=C.useContext(ga),t=e[e.length-1];return t?t.params:{}}function _c(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=C.useContext(si),{matches:i}=C.useContext(ga),{pathname:a}=Pc(),o=JSON.stringify(WS(i,r.v7_relativeSplatPath));return C.useMemo(()=>HS(e,JSON.parse(o),a,n==="path"),[e,o,a,n])}var GS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(GS||{}),YS=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(YS||{});function E$(e){let t=C.useContext(Rv);return t||St(!1),t}function A$(e){let t=C.useContext(ga);return t||St(!1),t}function T$(e){let t=A$(),n=t.matches[t.matches.length-1];return n.route.id||St(!1),n.route.id}function $$(){let{router:e}=E$(GS.UseNavigateStable),t=T$(YS.UseNavigateStable),n=C.useRef(!1);return KS(()=>{n.current=!0}),C.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,ds({fromRouteId:t},a)))},[e,t])}function k$(e){return P$(e.context)}function vi(e){St(!1)}function C$(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ur.Pop,navigator:a,static:o=!1,future:u}=e;Oc()&&St(!1);let l=t.replace(/^\/*/,"/"),s=C.useMemo(()=>({basename:l,navigator:a,static:o,future:ds({v7_relativeSplatPath:!1},u)}),[l,u,a,o]);typeof r=="string"&&(r=Cu(r));let{pathname:f="/",search:c="",hash:d="",state:p=null,key:m="default"}=r,v=C.useMemo(()=>{let w=Bo(f,l);return w==null?null:{location:{pathname:w,search:c,hash:d,state:p,key:m},navigationType:i}},[l,f,c,d,p,m,i]);return v==null?null:C.createElement(si.Provider,{value:s},C.createElement(Lv.Provider,{children:n,value:v}))}new Promise(()=>{});/** + * React Router DOM v6.22.3 + * + * 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 + */function hs(){return hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function j$(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function M$(e,t){return e.button===0&&(!t||t==="_self")&&!j$(e)}const N$=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],I$=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],D$="6";try{window.__reactRouterVersion=D$}catch{}const R$=C.createContext({isTransitioning:!1}),L$="startTransition",pg=JE[L$];function B$(e){let{basename:t,children:n,future:r,window:i}=e,a=C.useRef();a.current==null&&(a.current=s$({window:i,v5Compat:!0}));let o=a.current,[u,l]=C.useState({action:o.action,location:o.location}),{v7_startTransition:s}=r||{},f=C.useCallback(c=>{s&&pg?pg(()=>l(c)):l(c)},[l,s]);return C.useLayoutEffect(()=>o.listen(f),[o,f]),C.createElement(C$,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:o,future:r})}const F$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",z$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Bv=C.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:a,replace:o,state:u,target:l,to:s,preventScrollReset:f,unstable_viewTransition:c}=t,d=XS(t,N$),{basename:p}=C.useContext(si),m,v=!1;if(typeof s=="string"&&z$.test(s)&&(m=s,F$))try{let y=new URL(window.location.href),b=s.startsWith("//")?new URL(y.protocol+s):new URL(s),x=Bo(b.pathname,p);b.origin===y.origin&&x!=null?s=x+b.search+b.hash:v=!0}catch{}let w=w$(s,{relative:i}),g=W$(s,{replace:o,state:u,target:l,preventScrollReset:f,relative:i,unstable_viewTransition:c});function h(y){r&&r(y),y.defaultPrevented||g(y)}return C.createElement("a",hs({},d,{href:m||w,onClick:v||a?r:h,ref:n,target:l}))}),Il=C.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:a="",end:o=!1,style:u,to:l,unstable_viewTransition:s,children:f}=t,c=XS(t,I$),d=_c(l,{relative:c.relative}),p=Pc(),m=C.useContext(b$),{navigator:v,basename:w}=C.useContext(si),g=m!=null&&H$(d)&&s===!0,h=v.encodeLocation?v.encodeLocation(d).pathname:d.pathname,y=p.pathname,b=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;i||(y=y.toLowerCase(),b=b?b.toLowerCase():null,h=h.toLowerCase()),b&&w&&(b=Bo(b,w)||b);const x=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let S=y===h||!o&&y.startsWith(h)&&y.charAt(x)==="/",O=b!=null&&(b===h||!o&&b.startsWith(h)&&b.charAt(h.length)==="/"),P={isActive:S,isPending:O,isTransitioning:g},A=S?r:void 0,E;typeof a=="function"?E=a(P):E=[a,S?"active":null,O?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let T=typeof u=="function"?u(P):u;return C.createElement(Bv,hs({},c,{"aria-current":A,className:E,ref:n,style:T,to:l,unstable_viewTransition:s}),typeof f=="function"?f(P):f)});var xh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(xh||(xh={}));var vg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(vg||(vg={}));function U$(e){let t=C.useContext(Rv);return t||St(!1),t}function W$(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,unstable_viewTransition:u}=t===void 0?{}:t,l=x$(),s=Pc(),f=_c(e,{relative:o});return C.useCallback(c=>{if(M$(c,n)){c.preventDefault();let d=r!==void 0?r:fs(s)===fs(f);l(e,{replace:d,state:i,preventScrollReset:a,relative:o,unstable_viewTransition:u})}},[s,l,f,r,i,n,e,a,o,u])}function H$(e,t){t===void 0&&(t={});let n=C.useContext(R$);n==null&&St(!1);let{basename:r}=U$(xh.useViewTransitionState),i=_c(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=Bo(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Bo(n.nextLocation.pathname,r)||n.nextLocation.pathname;return hg(i.pathname,o)!=null||hg(i.pathname,a)!=null}function V$(){return W.jsx("nav",{className:"main-menu",children:W.jsxs("ul",{children:[W.jsx("li",{children:W.jsx(Il,{to:"/",children:"Inicio"})}),W.jsx("li",{children:W.jsx(Il,{to:"/criptomonedas",children:"Criptomonedas"})}),W.jsx("li",{children:W.jsx(Il,{to:"/nosotros",children:"Nosotros"})})]})})}function mg(){return W.jsxs(W.Fragment,{children:[W.jsx(V$,{}),W.jsx(k$,{})," "]})}function q$(){return W.jsxs("div",{className:"home-container",children:[W.jsx("h1",{className:"title",children:"Bienvenido a CriptoApp"}),W.jsx("p",{className:"subtitle",children:"Cónoce las 100 criptos más usadas"}),W.jsx(Bv,{to:"/criptomonedas",className:"link",children:"Ver criptomonedas"})]})}function QS(e,t){return function(){return e.apply(t,arguments)}}const{toString:K$}=Object.prototype,{getPrototypeOf:Fv}=Object,Ec=(e=>t=>{const n=K$.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pn=e=>(e=e.toLowerCase(),t=>Ec(t)===e),Ac=e=>t=>typeof t===e,{isArray:ba}=Array,Fo=Ac("undefined");function G$(e){return e!==null&&!Fo(e)&&e.constructor!==null&&!Fo(e.constructor)&&Vt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const JS=Pn("ArrayBuffer");function Y$(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&JS(e.buffer),t}const X$=Ac("string"),Vt=Ac("function"),ZS=Ac("number"),Tc=e=>e!==null&&typeof e=="object",Q$=e=>e===!0||e===!1,Dl=e=>{if(Ec(e)!=="object")return!1;const t=Fv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},J$=Pn("Date"),Z$=Pn("File"),ek=Pn("Blob"),tk=Pn("FileList"),nk=e=>Tc(e)&&Vt(e.pipe),rk=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Vt(e.append)&&((t=Ec(e))==="formdata"||t==="object"&&Vt(e.toString)&&e.toString()==="[object FormData]"))},ik=Pn("URLSearchParams"),ak=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ju(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ba(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const tO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,nO=e=>!Fo(e)&&e!==tO;function Sh(){const{caseless:e}=nO(this)&&this||{},t={},n=(r,i)=>{const a=e&&eO(t,i)||i;Dl(t[a])&&Dl(r)?t[a]=Sh(t[a],r):Dl(r)?t[a]=Sh({},r):ba(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r(ju(t,(i,a)=>{n&&Vt(i)?e[a]=QS(i,n):e[a]=i},{allOwnKeys:r}),e),uk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lk=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},sk=(e,t,n,r)=>{let i,a,o;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!u[o]&&(t[o]=e[o],u[o]=!0);e=n!==!1&&Fv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ck=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},fk=e=>{if(!e)return null;if(ba(e))return e;let t=e.length;if(!ZS(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},dk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Fv(Uint8Array)),hk=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},pk=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},vk=Pn("HTMLFormElement"),mk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),yg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),yk=Pn("RegExp"),rO=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ju(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},gk=e=>{rO(e,(t,n)=>{if(Vt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Vt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},bk=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return ba(e)?r(e):r(String(e).split(t)),n},wk=()=>{},xk=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Kf="abcdefghijklmnopqrstuvwxyz",gg="0123456789",iO={DIGIT:gg,ALPHA:Kf,ALPHA_DIGIT:Kf+Kf.toUpperCase()+gg},Sk=(e=16,t=iO.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Ok(e){return!!(e&&Vt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Pk=e=>{const t=new Array(10),n=(r,i)=>{if(Tc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=ba(r)?[]:{};return ju(r,(o,u)=>{const l=n(o,i+1);!Fo(l)&&(a[u]=l)}),t[i]=void 0,a}}return r};return n(e,0)},_k=Pn("AsyncFunction"),Ek=e=>e&&(Tc(e)||Vt(e))&&Vt(e.then)&&Vt(e.catch),M={isArray:ba,isArrayBuffer:JS,isBuffer:G$,isFormData:rk,isArrayBufferView:Y$,isString:X$,isNumber:ZS,isBoolean:Q$,isObject:Tc,isPlainObject:Dl,isUndefined:Fo,isDate:J$,isFile:Z$,isBlob:ek,isRegExp:yk,isFunction:Vt,isStream:nk,isURLSearchParams:ik,isTypedArray:dk,isFileList:tk,forEach:ju,merge:Sh,extend:ok,trim:ak,stripBOM:uk,inherits:lk,toFlatObject:sk,kindOf:Ec,kindOfTest:Pn,endsWith:ck,toArray:fk,forEachEntry:hk,matchAll:pk,isHTMLForm:vk,hasOwnProperty:yg,hasOwnProp:yg,reduceDescriptors:rO,freezeMethods:gk,toObjectSet:bk,toCamelCase:mk,noop:wk,toFiniteNumber:xk,findKey:eO,global:tO,isContextDefined:nO,ALPHABET:iO,generateString:Sk,isSpecCompliantForm:Ok,toJSONObject:Pk,isAsyncFn:_k,isThenable:Ek};function ie(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}M.inherits(ie,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const aO=ie.prototype,oO={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{oO[e]={value:e}});Object.defineProperties(ie,oO);Object.defineProperty(aO,"isAxiosError",{value:!0});ie.from=(e,t,n,r,i,a)=>{const o=Object.create(aO);return M.toFlatObject(e,o,function(l){return l!==Error.prototype},u=>u!=="isAxiosError"),ie.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const Ak=null;function Oh(e){return M.isPlainObject(e)||M.isArray(e)}function uO(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function bg(e,t,n){return e?e.concat(t).map(function(i,a){return i=uO(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function Tk(e){return M.isArray(e)&&!e.some(Oh)}const $k=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function $c(e,t,n){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=M.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,w){return!M.isUndefined(w[v])});const r=n.metaTokens,i=n.visitor||f,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(t);if(!M.isFunction(i))throw new TypeError("visitor must be a function");function s(m){if(m===null)return"";if(M.isDate(m))return m.toISOString();if(!l&&M.isBlob(m))throw new ie("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(m)||M.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,v,w){let g=m;if(m&&!w&&typeof m=="object"){if(M.endsWith(v,"{}"))v=r?v:v.slice(0,-2),m=JSON.stringify(m);else if(M.isArray(m)&&Tk(m)||(M.isFileList(m)||M.endsWith(v,"[]"))&&(g=M.toArray(m)))return v=uO(v),g.forEach(function(y,b){!(M.isUndefined(y)||y===null)&&t.append(o===!0?bg([v],b,a):o===null?v:v+"[]",s(y))}),!1}return Oh(m)?!0:(t.append(bg(w,v,a),s(m)),!1)}const c=[],d=Object.assign($k,{defaultVisitor:f,convertValue:s,isVisitable:Oh});function p(m,v){if(!M.isUndefined(m)){if(c.indexOf(m)!==-1)throw Error("Circular reference detected in "+v.join("."));c.push(m),M.forEach(m,function(g,h){(!(M.isUndefined(g)||g===null)&&i.call(t,g,M.isString(h)?h.trim():h,v,d))===!0&&p(g,v?v.concat(h):[h])}),c.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return p(e),t}function wg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function zv(e,t){this._pairs=[],e&&$c(e,this,t)}const lO=zv.prototype;lO.append=function(t,n){this._pairs.push([t,n])};lO.toString=function(t){const n=t?function(r){return t.call(this,r,wg)}:wg;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function kk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sO(e,t,n){if(!t)return e;const r=n&&n.encode||kk,i=n&&n.serialize;let a;if(i?a=i(t,n):a=M.isURLSearchParams(t)?t.toString():new zv(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class xg{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){M.forEach(this.handlers,function(r){r!==null&&t(r)})}}const cO={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ck=typeof URLSearchParams<"u"?URLSearchParams:zv,jk=typeof FormData<"u"?FormData:null,Mk=typeof Blob<"u"?Blob:null,Nk={isBrowser:!0,classes:{URLSearchParams:Ck,FormData:jk,Blob:Mk},protocols:["http","https","file","blob","url","data"]},fO=typeof window<"u"&&typeof document<"u",Ik=(e=>fO&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Dk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Rk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fO,hasStandardBrowserEnv:Ik,hasStandardBrowserWebWorkerEnv:Dk},Symbol.toStringTag,{value:"Module"})),mn={...Rk,...Nk};function Lk(e,t){return $c(e,new mn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return mn.isNode&&M.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Bk(e){return M.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Fk(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return o=!o&&M.isArray(i)?i.length:o,l?(M.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!u):((!i[o]||!M.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&M.isArray(i[o])&&(i[o]=Fk(i[o])),!u)}if(M.isFormData(e)&&M.isFunction(e.entries)){const n={};return M.forEachEntry(e,(r,i)=>{t(Bk(r),i,n,0)}),n}return null}function zk(e,t,n){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Uv={transitional:cO,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=M.isObject(t);if(a&&M.isHTMLForm(t)&&(t=new FormData(t)),M.isFormData(t))return i?JSON.stringify(dO(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Lk(t,this.formSerializer).toString();if((u=M.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return $c(u?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),zk(t)):t}],transformResponse:[function(t){const n=this.transitional||Uv.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&M.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(u){if(o)throw u.name==="SyntaxError"?ie.from(u,ie.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mn.classes.FormData,Blob:mn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],e=>{Uv.headers[e]={}});const Wv=Uv,Uk=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Wk=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&Uk[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Sg=Symbol("internals");function za(e){return e&&String(e).trim().toLowerCase()}function Rl(e){return e===!1||e==null?e:M.isArray(e)?e.map(Rl):String(e)}function Hk(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Vk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Gf(e,t,n,r,i){if(M.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!M.isString(t)){if(M.isString(r))return t.indexOf(r)!==-1;if(M.isRegExp(r))return r.test(t)}}function qk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Kk(e,t){const n=M.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}class kc{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(u,l,s){const f=za(l);if(!f)throw new Error("header name must be a non-empty string");const c=M.findKey(i,f);(!c||i[c]===void 0||s===!0||s===void 0&&i[c]!==!1)&&(i[c||l]=Rl(u))}const o=(u,l)=>M.forEach(u,(s,f)=>a(s,f,l));return M.isPlainObject(t)||t instanceof this.constructor?o(t,n):M.isString(t)&&(t=t.trim())&&!Vk(t)?o(Wk(t),n):t!=null&&a(n,t,r),this}get(t,n){if(t=za(t),t){const r=M.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Hk(i);if(M.isFunction(n))return n.call(this,i,r);if(M.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=za(t),t){const r=M.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Gf(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=za(o),o){const u=M.findKey(r,o);u&&(!n||Gf(r,r[u],u,n))&&(delete r[u],i=!0)}}return M.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||Gf(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return M.forEach(this,(i,a)=>{const o=M.findKey(r,a);if(o){n[o]=Rl(i),delete n[a];return}const u=t?qk(a):String(a).trim();u!==a&&delete n[a],n[u]=Rl(i),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return M.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&M.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Sg]=this[Sg]={accessors:{}}).accessors,i=this.prototype;function a(o){const u=za(o);r[u]||(Kk(i,o),r[u]=!0)}return M.isArray(t)?t.forEach(a):a(t),this}}kc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(kc.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});M.freezeMethods(kc);const Dn=kc;function Yf(e,t){const n=this||Wv,r=t||n,i=Dn.from(r.headers);let a=r.data;return M.forEach(e,function(u){a=u.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function hO(e){return!!(e&&e.__CANCEL__)}function Mu(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}M.inherits(Mu,ie,{__CANCEL__:!0});function Gk(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ie("Request failed with status code "+n.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Yk=mn.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const o=[e+"="+encodeURIComponent(t)];M.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),M.isString(r)&&o.push("path="+r),M.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Xk(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Qk(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function pO(e,t){return e&&!Xk(t)?Qk(e,t):t}const Jk=mn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(a){let o=a;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const u=M.isString(o)?i(o):o;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function Zk(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function eC(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const s=Date.now(),f=r[a];o||(o=s),n[i]=l,r[i]=s;let c=a,d=0;for(;c!==i;)d+=n[c++],c=c%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),s-o{const a=i.loaded,o=i.lengthComputable?i.total:void 0,u=a-n,l=r(u),s=a<=o;n=a;const f={loaded:a,total:o,progress:o?a/o:void 0,bytes:u,rate:l||void 0,estimated:l&&o&&s?(o-a)/l:void 0,event:i};f[t?"download":"upload"]=!0,e(f)}}const tC=typeof XMLHttpRequest<"u",nC=tC&&function(e){return new Promise(function(n,r){let i=e.data;const a=Dn.from(e.headers).normalize();let{responseType:o,withXSRFToken:u}=e,l;function s(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let f;if(M.isFormData(i)){if(mn.hasStandardBrowserEnv||mn.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if((f=a.getContentType())!==!1){const[v,...w]=f?f.split(";").map(g=>g.trim()).filter(Boolean):[];a.setContentType([v||"multipart/form-data",...w].join("; "))}}let c=new XMLHttpRequest;if(e.auth){const v=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(v+":"+w))}const d=pO(e.baseURL,e.url);c.open(e.method.toUpperCase(),sO(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function p(){if(!c)return;const v=Dn.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),g={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:v,config:e,request:c};Gk(function(y){n(y),s()},function(y){r(y),s()},g),c=null}if("onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(p)},c.onabort=function(){c&&(r(new ie("Request aborted",ie.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new ie("Network Error",ie.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let w=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||cO;e.timeoutErrorMessage&&(w=e.timeoutErrorMessage),r(new ie(w,g.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,c)),c=null},mn.hasStandardBrowserEnv&&(u&&M.isFunction(u)&&(u=u(e)),u||u!==!1&&Jk(d))){const v=e.xsrfHeaderName&&e.xsrfCookieName&&Yk.read(e.xsrfCookieName);v&&a.set(e.xsrfHeaderName,v)}i===void 0&&a.setContentType(null),"setRequestHeader"in c&&M.forEach(a.toJSON(),function(w,g){c.setRequestHeader(g,w)}),M.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&o!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",Og(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Og(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=v=>{c&&(r(!v||v.type?new Mu(null,e,c):v),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const m=Zk(d);if(m&&mn.protocols.indexOf(m)===-1){r(new ie("Unsupported protocol "+m+":",ie.ERR_BAD_REQUEST,e));return}c.send(i||null)})},Ph={http:Ak,xhr:nC};M.forEach(Ph,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Pg=e=>`- ${e}`,rC=e=>M.isFunction(e)||e===null||e===!1,vO={getAdapter:e=>{e=M.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a`adapter ${u} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since : +`+a.map(Pg).join(` +`):" "+Pg(a[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Ph};function Xf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Mu(null,e)}function _g(e){return Xf(e),e.headers=Dn.from(e.headers),e.data=Yf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),vO.getAdapter(e.adapter||Wv.adapter)(e).then(function(r){return Xf(e),r.data=Yf.call(e,e.transformResponse,r),r.headers=Dn.from(r.headers),r},function(r){return hO(r)||(Xf(e),r&&r.response&&(r.response.data=Yf.call(e,e.transformResponse,r.response),r.response.headers=Dn.from(r.response.headers))),Promise.reject(r)})}const Eg=e=>e instanceof Dn?{...e}:e;function Qi(e,t){t=t||{};const n={};function r(s,f,c){return M.isPlainObject(s)&&M.isPlainObject(f)?M.merge.call({caseless:c},s,f):M.isPlainObject(f)?M.merge({},f):M.isArray(f)?f.slice():f}function i(s,f,c){if(M.isUndefined(f)){if(!M.isUndefined(s))return r(void 0,s,c)}else return r(s,f,c)}function a(s,f){if(!M.isUndefined(f))return r(void 0,f)}function o(s,f){if(M.isUndefined(f)){if(!M.isUndefined(s))return r(void 0,s)}else return r(void 0,f)}function u(s,f,c){if(c in t)return r(s,f);if(c in e)return r(void 0,s)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:(s,f)=>i(Eg(s),Eg(f),!0)};return M.forEach(Object.keys(Object.assign({},e,t)),function(f){const c=l[f]||i,d=c(e[f],t[f],f);M.isUndefined(d)&&c!==u||(n[f]=d)}),n}const mO="1.6.8",Hv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Hv[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ag={};Hv.transitional=function(t,n,r){function i(a,o){return"[Axios v"+mO+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,u)=>{if(t===!1)throw new ie(i(o," has been removed"+(n?" in "+n:"")),ie.ERR_DEPRECATED);return n&&!Ag[o]&&(Ag[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,u):!0}};function iC(e,t,n){if(typeof e!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const u=e[a],l=u===void 0||o(u,a,e);if(l!==!0)throw new ie("option "+a+" must be "+l,ie.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ie("Unknown option "+a,ie.ERR_BAD_OPTION)}}const _h={assertOptions:iC,validators:Hv},Jn=_h.validators;class ps{constructor(t){this.defaults=t,this.interceptors={request:new xg,response:new xg}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+a):r.stack=a}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Qi(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&_h.assertOptions(r,{silentJSONParsing:Jn.transitional(Jn.boolean),forcedJSONParsing:Jn.transitional(Jn.boolean),clarifyTimeoutError:Jn.transitional(Jn.boolean)},!1),i!=null&&(M.isFunction(i)?n.paramsSerializer={serialize:i}:_h.assertOptions(i,{encode:Jn.function,serialize:Jn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&M.merge(a.common,a[n.method]);a&&M.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),n.headers=Dn.concat(o,a);const u=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,u.unshift(v.fulfilled,v.rejected))});const s=[];this.interceptors.response.forEach(function(v){s.push(v.fulfilled,v.rejected)});let f,c=0,d;if(!l){const m=[_g.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,s),d=m.length,f=Promise.resolve(n);c{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(u=>{r.subscribe(u),a=u}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,u){r.reason||(r.reason=new Mu(a,o,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Vv(function(i){t=i}),cancel:t}}}const aC=Vv;function oC(e){return function(n){return e.apply(null,n)}}function uC(e){return M.isObject(e)&&e.isAxiosError===!0}const Eh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Eh).forEach(([e,t])=>{Eh[t]=e});const lC=Eh;function yO(e){const t=new Ll(e),n=QS(Ll.prototype.request,t);return M.extend(n,Ll.prototype,t,{allOwnKeys:!0}),M.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return yO(Qi(e,i))},n}const je=yO(Wv);je.Axios=Ll;je.CanceledError=Mu;je.CancelToken=aC;je.isCancel=hO;je.VERSION=mO;je.toFormData=$c;je.AxiosError=ie;je.Cancel=je.CanceledError;je.all=function(t){return Promise.all(t)};je.spread=oC;je.isAxiosError=uC;je.mergeConfig=Qi;je.AxiosHeaders=Dn;je.formToJSON=e=>dO(M.isHTMLForm(e)?new FormData(e):e);je.getAdapter=vO.getAdapter;je.HttpStatusCode=lC;je.default=je;function sC({id:e,name:t,priceUsd:n,symbol:r,changePercent24Hr:i}){return W.jsx(Bv,{to:`/criptomonedas/${e}`,className:"link-cripto",children:W.jsxs("div",{className:"cripto",children:[W.jsx("h2",{children:t}),W.jsxs("div",{className:"info",children:[W.jsxs("p",{children:[W.jsx("span",{className:"label",children:"Precio: "}),parseFloat(n).toFixed(5)]}),W.jsxs("p",{children:[W.jsx("span",{className:"label",children:"Código: "}),r]}),W.jsxs("p",{children:[W.jsx("span",{className:"label",children:"Variación 24h: "}),W.jsxs("span",{className:i>0?"positivo":"negativo",children:[parseFloat(i).toFixed(3),"%"]})]})]})]})})}function cC(){const[e,t]=C.useState(),n="https://api.coincap.io/v2/";return C.useEffect(()=>{je.get(`${n}assets`).then(r=>t(r.data.data)).catch(r=>console.log(r))},[]),e?W.jsxs("div",{className:"app-container",children:[W.jsx("h1",{children:"Lista de criptomonedas"}),W.jsx("div",{className:"cripto-container",children:e.map(r=>W.jsx(sC,{id:r.id,name:r.name,priceUsd:r.priceUsd,symbol:r.symbol,changePercent24Hr:r.changePercent24Hr},r.id))})]}):W.jsx("h1",{className:"app-container",children:"Cargando..."})}function fC(){return W.jsxs("div",{className:"no-404",children:[W.jsx("h1",{children:"Página no encontrada"}),W.jsx("span",{children:"La página solicitada, no existe"}),W.jsx("span",{children:W.jsx(Il,{to:"/",children:"Volver"})})]})}function Tg(e){const t="https://api.coincap.io/v2/",[n,r]=C.useState(null);return C.useEffect(()=>{je.get(`${t}${e}`).then(i=>{r(i.data.data)}).catch(i=>console.error(i))},[]),n}function dC({cryptoData:e}){return e&&W.jsxs("div",{className:"info",children:[W.jsxs("div",{className:"main-info",children:[W.jsxs("span",{children:["Ranking: ",e.rank]}),W.jsx("h1",{children:e.name}),W.jsx("span",{className:"symbol",children:e.symbol})]}),W.jsx("div",{className:"details",children:W.jsx("ul",{children:e&&Object.entries(e).map(([t,n])=>n!==null&&t!=="id"&&t!=="rank"&&t!=="symbol"&&t!=="name"&&n!==""?t==="explorer"?W.jsxs("li",{className:"link-explorer",children:[W.jsxs("span",{className:"label",children:[t,": "]}),W.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:"Link"})]},t):W.jsxs("li",{children:[W.jsxs("span",{className:"label",children:[t,": "]}),W.jsx("span",{children:isNaN(n)?n:parseFloat(n).toFixed(4)})]},t):null)})})]})}function gO(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t-1}var fM=cM,dM=jc;function hM(e,t){var n=this.__data__,r=dM(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var pM=hM,vM=Qj,mM=aM,yM=lM,gM=fM,bM=pM;function Oa(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0?1:-1},Wr=function(t){return Iu(t)&&t.indexOf("%")===t.length-1},H=function(t){return W2(t)&&!Du(t)},ze=function(t){return H(t)||Iu(t)},K2=0,qc=function(t){var n=++K2;return"".concat(t||"").concat(n)},Ji=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!H(t)&&!Iu(t))return r;var a;if(Wr(t)){var o=t.indexOf("%");a=n*parseFloat(t.slice(0,o))/100}else a=+t;return Du(a)&&(a=r),i&&a>n&&(a=n),a},ar=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},G2=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Fg={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Rn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},zg=null,Zf=null,im=function e(t){if(t===zg&&Array.isArray(Zf))return Zf;var n=[];return C.Children.forEach(t,function(r){ce(r)||(Ah.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Zf=n,zg=t,n};function ln(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Rn(i)}):r=[Rn(t)],im(e).forEach(function(i){var a=qt(i,"type.displayName")||qt(i,"type.name");r.indexOf(a)!==-1&&n.push(i)}),n}function At(e,t){var n=ln(e,t);return n&&n[0]}var Ug=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!H(r)||r<=0||!H(i)||i<=0)},tN=["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"],nN=function(t){return t&&t.type&&Iu(t.type)&&tN.indexOf(t.type)>=0},rN=function(t,n,r,i){var a,o=(a=Jf==null?void 0:Jf[i])!==null&&a!==void 0?a:[];return!te(t)&&(i&&o.includes(n)||X2.includes(n))||r&&rm.includes(n)},le=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(C.isValidElement(t)&&(i=t.props),!xa(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;rN((u=i)===null||u===void 0?void 0:u[o],o,n,r)&&(a[o]=i[o])}),a},kh=function e(t,n){if(t===n)return!0;var r=C.Children.count(t);if(r!==C.Children.count(n))return!1;if(r===0)return!0;if(r===1)return Wg(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function jh(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,l=e.desc,s=uN(e,oN),f=i||{width:n,height:r,x:0,y:0},c=pe("recharts-surface",a);return _.createElement("svg",Ch({},le(s,!0,"svg"),{className:c,width:n,height:r,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),_.createElement("title",null,u),_.createElement("desc",null,l),t)}var sN=["children","className"];function Mh(){return Mh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var qe=_.forwardRef(function(e,t){var n=e.children,r=e.className,i=cN(e,sN),a=pe("recharts-layer",r);return _.createElement("g",Mh({className:a},le(i,!0),{ref:t}),n)}),Ln=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;ai?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=r?e:pN(e,t,n)}var mN=vN,yN="\\ud800-\\udfff",gN="\\u0300-\\u036f",bN="\\ufe20-\\ufe2f",wN="\\u20d0-\\u20ff",xN=gN+bN+wN,SN="\\ufe0e\\ufe0f",ON="\\u200d",PN=RegExp("["+ON+yN+xN+SN+"]");function _N(e){return PN.test(e)}var CO=_N;function EN(e){return e.split("")}var AN=EN,jO="\\ud800-\\udfff",TN="\\u0300-\\u036f",$N="\\ufe20-\\ufe2f",kN="\\u20d0-\\u20ff",CN=TN+$N+kN,jN="\\ufe0e\\ufe0f",MN="["+jO+"]",Nh="["+CN+"]",Ih="\\ud83c[\\udffb-\\udfff]",NN="(?:"+Nh+"|"+Ih+")",MO="[^"+jO+"]",NO="(?:\\ud83c[\\udde6-\\uddff]){2}",IO="[\\ud800-\\udbff][\\udc00-\\udfff]",IN="\\u200d",DO=NN+"?",RO="["+jN+"]?",DN="(?:"+IN+"(?:"+[MO,NO,IO].join("|")+")"+RO+DO+")*",RN=RO+DO+DN,LN="(?:"+[MO+Nh+"?",Nh,NO,IO,MN].join("|")+")",BN=RegExp(Ih+"(?="+Ih+")|"+LN+RN,"g");function FN(e){return e.match(BN)||[]}var zN=FN,UN=AN,WN=CO,HN=zN;function VN(e){return WN(e)?HN(e):UN(e)}var qN=VN,KN=mN,GN=CO,YN=qN,XN=_O;function QN(e){return function(t){t=XN(t);var n=GN(t)?YN(t):void 0,r=n?n[0]:t.charAt(0),i=n?KN(n,1).join(""):t.slice(1);return r[e]()+i}}var JN=QN,ZN=JN,eI=ZN("toUpperCase"),tI=eI;const Kc=me(tI);function ye(e){return function(){return e}}const LO=Math.cos,ys=Math.sin,cn=Math.sqrt,gs=Math.PI,Gc=2*gs,Dh=Math.PI,Rh=2*Dh,Ir=1e-6,nI=Rh-Ir;function BO(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return BO;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;iIr)if(!(Math.abs(c*l-s*f)>Ir)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-o,m=i-u,v=l*l+s*s,w=p*p+m*m,g=Math.sqrt(v),h=Math.sqrt(d),y=a*Math.tan((Dh-Math.acos((v+d-w)/(2*g*h)))/2),b=y/h,x=y/g;Math.abs(b-1)>Ir&&this._append`L${t+b*f},${n+b*c}`,this._append`A${a},${a},0,0,${+(c*p>f*m)},${this._x1=t+x*l},${this._y1=n+x*s}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(i),l=r*Math.sin(i),s=t+u,f=n+l,c=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Ir||Math.abs(this._y1-f)>Ir)&&this._append`L${s},${f}`,r&&(d<0&&(d=d%Rh+Rh),d>nI?this._append`A${r},${r},0,1,${c},${t-u},${n-l}A${r},${r},0,1,${c},${this._x1=s},${this._y1=f}`:d>Ir&&this._append`A${r},${r},0,${+(d>=Dh)},${c},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function am(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 iI(t)}function om(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function FO(e){this._context=e}FO.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 Yc(e){return new FO(e)}function zO(e){return e[0]}function UO(e){return e[1]}function WO(e,t){var n=ye(!0),r=null,i=Yc,a=null,o=am(u);e=typeof e=="function"?e:e===void 0?zO:ye(e),t=typeof t=="function"?t:t===void 0?UO:ye(t);function u(l){var s,f=(l=om(l)).length,c,d=!1,p;for(r==null&&(a=i(p=o())),s=0;s<=f;++s)!(s=p;--m)u.point(y[m],b[m]);u.lineEnd(),u.areaEnd()}g&&(y[d]=+e(w,d,c),b[d]=+t(w,d,c),u.point(r?+r(w,d,c):y[d],n?+n(w,d,c):b[d]))}if(h)return u=null,h+""||null}function f(){return WO().defined(i).curve(o).context(a)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:ye(+c),r=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:ye(+c),s):e},s.x1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:ye(+c),s):r},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:ye(+c),n=null,s):t},s.y0=function(c){return arguments.length?(t=typeof c=="function"?c:ye(+c),s):t},s.y1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:ye(+c),s):n},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(n)},s.lineX1=function(){return f().x(r).y(t)},s.defined=function(c){return arguments.length?(i=typeof c=="function"?c:ye(!!c),s):i},s.curve=function(c){return arguments.length?(o=c,a!=null&&(u=o(a)),s):o},s.context=function(c){return arguments.length?(c==null?a=u=null:u=o(a=c),s):a},s}class HO{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 aI(e){return new HO(e,!0)}function oI(e){return new HO(e,!1)}const um={draw(e,t){const n=cn(t/gs);e.moveTo(n,0),e.arc(0,0,n,0,Gc)}},uI={draw(e,t){const n=cn(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()}},VO=cn(1/3),lI=VO*2,sI={draw(e,t){const n=cn(t/lI),r=n*VO;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},cI={draw(e,t){const n=cn(t),r=-n/2;e.rect(r,r,n,n)}},fI=.8908130915292852,qO=ys(gs/10)/ys(7*gs/10),dI=ys(Gc/10)*qO,hI=-LO(Gc/10)*qO,pI={draw(e,t){const n=cn(t*fI),r=dI*n,i=hI*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=Gc*a/5,u=LO(o),l=ys(o);e.lineTo(l*n,-u*n),e.lineTo(u*r-l*i,l*r+u*i)}e.closePath()}},ed=cn(3),vI={draw(e,t){const n=-cn(t/(ed*3));e.moveTo(0,n*2),e.lineTo(-ed*n,-n),e.lineTo(ed*n,-n),e.closePath()}},Dt=-.5,Rt=cn(3)/2,Lh=1/cn(12),mI=(Lh/2+1)*3,yI={draw(e,t){const n=cn(t/mI),r=n/2,i=n*Lh,a=r,o=n*Lh+n,u=-a,l=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(u,l),e.lineTo(Dt*r-Rt*i,Rt*r+Dt*i),e.lineTo(Dt*a-Rt*o,Rt*a+Dt*o),e.lineTo(Dt*u-Rt*l,Rt*u+Dt*l),e.lineTo(Dt*r+Rt*i,Dt*i-Rt*r),e.lineTo(Dt*a+Rt*o,Dt*o-Rt*a),e.lineTo(Dt*u+Rt*l,Dt*l-Rt*u),e.closePath()}};function gI(e,t){let n=null,r=am(i);e=typeof e=="function"?e:ye(e||um),t=typeof t=="function"?t:ye(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:ye(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ye(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function bs(){}function ws(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 KO(e){this._context=e}KO.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:ws(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:ws(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bI(e){return new KO(e)}function GO(e){this._context=e}GO.prototype={areaStart:bs,areaEnd:bs,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:ws(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wI(e){return new GO(e)}function YO(e){this._context=e}YO.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:ws(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function xI(e){return new YO(e)}function XO(e){this._context=e}XO.prototype={areaStart:bs,areaEnd:bs,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 SI(e){return new XO(e)}function Vg(e){return e<0?-1:1}function qg(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),u=(a*i+o*r)/(r+i);return(Vg(a)+Vg(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Kg(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function td(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-r)/3;e._context.bezierCurveTo(r+u,i+u*t,a-u,o-u*n,a,o)}function xs(e){this._context=e}xs.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:td(this,this._t0,Kg(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,td(this,Kg(this,n=qg(this,e,t)),n);break;default:td(this,this._t0,n=qg(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function QO(e){this._context=new JO(e)}(QO.prototype=Object.create(xs.prototype)).point=function(e,t){xs.prototype.point.call(this,t,e)};function JO(e){this._context=e}JO.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,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function OI(e){return new xs(e)}function PI(e){return new QO(e)}function ZO(e){this._context=e}ZO.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=Gg(e),i=Gg(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t=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 EI(e){return new Xc(e,.5)}function AI(e){return new Xc(e,0)}function TI(e){return new Xc(e,1)}function Zi(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,u=a.length;n=0;)n[t]=t;return n}function $I(e,t){return e[t]}function kI(e){const t=[];return t.key=e,t}function CI(){var e=ye([]),t=Bh,n=Zi,r=$I;function i(a){var o=Array.from(e.apply(this,arguments),kI),u,l=o.length,s=-1,f;for(const c of a)for(u=0,++s;u0){for(var n,r,i=0,a=e[0].length,o;i0){for(var n=0,r=e[t[0]],i,a=r.length;n0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var eP={symbolCircle:um,symbolCross:uI,symbolDiamond:sI,symbolSquare:cI,symbolStar:pI,symbolTriangle:vI,symbolWye:yI},zI=Math.PI/180,UI=function(t){var n="symbol".concat(Kc(t));return eP[n]||um},WI=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 i=18*zI;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),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}},HI=function(t,n){eP["symbol".concat(Kc(t))]=n},lm=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,l=BI(t,II),s=Xg(Xg({},l),{},{type:r,size:a,sizeType:u}),f=function(){var w=UI(r),g=gI().type(w).size(WI(a,u,r));return g()},c=s.className,d=s.cx,p=s.cy,m=le(s,!0);return d===+d&&p===+p&&a===+a?_.createElement("path",Fh({},m,{className:pe("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(p,")"),d:f()})):null};lm.registerSymbol=HI;function ea(e){"@babel/helpers - typeof";return ea=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},ea(e)}function zh(){return zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var h=p.inactive?s:p.color;return _.createElement("li",zh({className:w,style:c,key:"legend-item-".concat(m)},ms(r.props,p,m)),_.createElement(jh,{width:o,height:o,viewBox:f,style:d},r.renderIcon(p)),_.createElement("span",{className:"recharts-legend-item-text",style:{color:h}},v?v(g,p,m):g))})}},{key:"render",value:function(){var r=this.props,i=r.payload,a=r.layout,o=r.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return _.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}]),t}(C.PureComponent);Uo(sm,"displayName","Legend");Uo(sm,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ZI=Mc;function eD(){this.__data__=new ZI,this.size=0}var tD=eD;function nD(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var rD=nD;function iD(e){return this.__data__.get(e)}var aD=iD;function oD(e){return this.__data__.has(e)}var uD=oD,lD=Mc,sD=Yv,cD=Xv,fD=200;function dD(e,t){var n=this.__data__;if(n instanceof lD){var r=n.__data__;if(!sD||r.lengthu))return!1;var s=a.get(e),f=a.get(t);if(s&&f)return s==t&&f==e;var c=-1,d=!0,p=n&ND?new kD:void 0;for(a.set(e,t),a.set(t,e);++c-1&&e%1==0&&e-1&&e%1==0&&e<=LR}var hm=BR,FR=Gn,zR=hm,UR=Yn,WR="[object Arguments]",HR="[object Array]",VR="[object Boolean]",qR="[object Date]",KR="[object Error]",GR="[object Function]",YR="[object Map]",XR="[object Number]",QR="[object Object]",JR="[object RegExp]",ZR="[object Set]",eL="[object String]",tL="[object WeakMap]",nL="[object ArrayBuffer]",rL="[object DataView]",iL="[object Float32Array]",aL="[object Float64Array]",oL="[object Int8Array]",uL="[object Int16Array]",lL="[object Int32Array]",sL="[object Uint8Array]",cL="[object Uint8ClampedArray]",fL="[object Uint16Array]",dL="[object Uint32Array]",we={};we[iL]=we[aL]=we[oL]=we[uL]=we[lL]=we[sL]=we[cL]=we[fL]=we[dL]=!0;we[WR]=we[HR]=we[nL]=we[VR]=we[rL]=we[qR]=we[KR]=we[GR]=we[YR]=we[XR]=we[QR]=we[JR]=we[ZR]=we[eL]=we[tL]=!1;function hL(e){return UR(e)&&zR(e.length)&&!!we[FR(e)]}var pL=hL;function vL(e){return function(t){return e(t)}}var fP=vL,_s={exports:{}};_s.exports;(function(e,t){var n=bO,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,u=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=u})(_s,_s.exports);var mL=_s.exports,yL=pL,gL=fP,i0=mL,a0=i0&&i0.isTypedArray,bL=a0?gL(a0):yL,dP=bL,wL=OR,xL=fm,SL=Ot,OL=cP,PL=dm,_L=dP,EL=Object.prototype,AL=EL.hasOwnProperty;function TL(e,t){var n=SL(e),r=!n&&xL(e),i=!n&&!r&&OL(e),a=!n&&!r&&!i&&_L(e),o=n||r||i||a,u=o?wL(e.length,String):[],l=u.length;for(var s in e)(t||AL.call(e,s))&&!(o&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||PL(s,l)))&&u.push(s);return u}var $L=TL,kL=Object.prototype;function CL(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||kL;return e===n}var jL=CL;function ML(e,t){return function(n){return e(t(n))}}var hP=ML,NL=hP,IL=NL(Object.keys,Object),DL=IL,RL=jL,LL=DL,BL=Object.prototype,FL=BL.hasOwnProperty;function zL(e){if(!RL(e))return LL(e);var t=[];for(var n in Object(e))FL.call(e,n)&&n!="constructor"&&t.push(n);return t}var UL=zL,WL=Kv,HL=hm;function VL(e){return e!=null&&HL(e.length)&&!WL(e)}var Ru=VL,qL=$L,KL=UL,GL=Ru;function YL(e){return GL(e)?qL(e):KL(e)}var Qc=YL,XL=fR,QL=xR,JL=Qc;function ZL(e){return XL(e,JL,QL)}var eB=ZL,o0=eB,tB=1,nB=Object.prototype,rB=nB.hasOwnProperty;function iB(e,t,n,r,i,a){var o=n&tB,u=o0(e),l=u.length,s=o0(t),f=s.length;if(l!=f&&!o)return!1;for(var c=l;c--;){var d=u[c];if(!(o?d in t:rB.call(t,d)))return!1}var p=a.get(e),m=a.get(t);if(p&&m)return p==t&&m==e;var v=!0;a.set(e,t),a.set(t,e);for(var w=o;++c-1}var nF=tF;function rF(e,t,n){for(var r=-1,i=e==null?0:e.length;++r=gF){var s=t?null:mF(e);if(s)return yF(s);o=!1,i=vF,l=new dF}else l=t?[]:u;e:for(;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MF(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function NF(e){return e.value}function IF(e,t){if(_.isValidElement(e))return _.cloneElement(e,t);if(typeof e=="function")return _.createElement(e,t);t.ref;var n=jF(t,_F);return _.createElement(sm,n)}var S0=1,na=function(e){kF(t,e);function t(){var n;EF(this,t);for(var r=arguments.length,i=new Array(r),a=0;aS0||Math.abs(i.height-this.lastBoundingBox.height)>S0)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(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?jr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,l=i.margin,s=i.chartWidth,f=i.chartHeight,c,d;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();c={left:((s||0)-p.width)/2}}else c=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(u==="middle"){var m=this.getBBoxSnapshot();d={top:((f||0)-m.height)/2}}else d=u==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return jr(jr({},c),d)}},{key:"render",value:function(){var r=this,i=this.props,a=i.content,o=i.width,u=i.height,l=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,c=jr(jr({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(l)),l);return _.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){r.wrapperNode=p}},IF(a,jr(jr({},this.props),{},{payload:wP(f,s,NF)})))}}],[{key:"getWithHeight",value:function(r,i){var a=r.props.layout;return a==="vertical"&&H(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||i}:null}}]),t}(C.PureComponent);Jc(na,"displayName","Legend");Jc(na,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var O0=Nu,DF=fm,RF=Ot,P0=O0?O0.isConcatSpreadable:void 0;function LF(e){return RF(e)||DF(e)||!!(P0&&e&&e[P0])}var BF=LF,FF=lP,zF=BF;function PP(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=zF),i||(i=[]);++a0&&n(u)?t>1?PP(u,t-1,n,r,i):FF(i,u):r||(i[i.length]=u)}return i}var _P=PP;function UF(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),u=o.length;u--;){var l=o[e?u:++i];if(n(a[l],l,a)===!1)break}return t}}var WF=UF,HF=WF,VF=HF(),qF=VF,KF=qF,GF=Qc;function YF(e,t){return e&&KF(e,t,GF)}var EP=YF,XF=Ru;function QF(e,t){return function(n,r){if(n==null)return n;if(!XF(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++at||a&&o&&l&&!u&&!s||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!s&&e=u)return l;var s=n[r];return l*(s=="desc"?-1:1)}}return e.index-t.index}var f4=c4,ad=Jv,d4=Zv,h4=Er,p4=AP,v4=o4,m4=fP,y4=f4,g4=Aa,b4=Ot;function w4(e,t,n){t.length?t=ad(t,function(a){return b4(a)?function(o){return d4(o,a.length===1?a[0]:a)}:a}):t=[g4];var r=-1;t=ad(t,m4(h4));var i=p4(e,function(a,o,u){var l=ad(t,function(s){return s(a)});return{criteria:l,index:++r,value:a}});return v4(i,function(a,o){return y4(a,o,n)})}var x4=w4;function S4(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var O4=S4,P4=O4,E0=Math.max;function _4(e,t,n){return t=E0(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=E0(r.length-t,0),o=Array(a);++i0){if(++t>=I4)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var B4=L4,F4=N4,z4=B4,U4=z4(F4),W4=U4,H4=Aa,V4=E4,q4=W4;function K4(e,t){return q4(V4(e,t,H4),e+"")}var G4=K4,Y4=Gv,X4=Ru,Q4=dm,J4=_r;function Z4(e,t,n){if(!J4(n))return!1;var r=typeof t;return(r=="number"?X4(n)&&Q4(t,n.length):r=="string"&&t in n)?Y4(n[t],e):!1}var Zc=Z4,ez=_P,tz=x4,nz=G4,T0=Zc,rz=nz(function(e,t){if(e==null)return[];var n=t.length;return n>1&&T0(e,t[0],t[1])?t=[]:n>2&&T0(t[0],t[1],t[2])&&(t=[t[0]]),tz(e,ez(t,1),[])}),iz=rz;const mm=me(iz);function Wo(e){"@babel/helpers - typeof";return Wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wo(e)}function Yh(){return Yh=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t.x),"".concat(Wa,"-left"),H(n)&&t&&H(t.x)&&n=t.y),"".concat(Wa,"-top"),H(r)&&t&&H(t.y)&&rv?Math.max(f,l[r]):Math.max(c,l[r])}function bz(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 wz(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,l=e.viewBox,s,f,c;return o.height>0&&o.width>0&&n?(f=C0({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),c=C0({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),s=bz({translateX:f,translateY:c,useTranslate3d:u})):s=yz,{cssProperties:s,cssClasses:gz({translateX:f,translateY:c,coordinate:n})}}function ra(e){"@babel/helpers - typeof";return ra=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},ra(e)}function j0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function M0(e){for(var t=1;tI0||Math.abs(r.height-this.lastBoundingBox.height)>I0)&&(this.lastBoundingBox.width=r.width,this.lastBoundingBox.height=r.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.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,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,l=i.animationEasing,s=i.children,f=i.coordinate,c=i.hasPayload,d=i.isAnimationActive,p=i.offset,m=i.position,v=i.reverseDirection,w=i.useTranslate3d,g=i.viewBox,h=i.wrapperStyle,y=wz({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:m,reverseDirection:v,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:w,viewBox:g}),b=y.cssClasses,x=y.cssProperties,S=M0(M0({transition:d&&a?"transform ".concat(u,"ms ").concat(l):void 0},x),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&c?"visible":"hidden",position:"absolute",top:0,left:0},h);return _.createElement("div",{tabIndex:-1,className:b,style:S,ref:function(P){r.wrapperNode=P}},s)}}]),t}(C.PureComponent),Tz=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},yr={isSsr:Tz(),get:function(t){return yr[t]},set:function(t,n){if(typeof t=="string")yr[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){yr[i]=t[i]})}}};function ia(e){"@babel/helpers - typeof";return ia=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},ia(e)}function D0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function R0(e){for(var t=1;t0;return _.createElement(Az,{allowEscapeViewBox:o,animationDuration:u,animationEasing:l,isAnimationActive:d,active:a,coordinate:f,hasPayload:S,offset:p,position:w,reverseDirection:g,useTranslate3d:h,viewBox:y,wrapperStyle:b},Rz(s,R0(R0({},this.props),{},{payload:x})))}}]),t}(C.PureComponent);ym(Tn,"displayName","Tooltip");ym(Tn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!yr.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 Lz=_n,Bz=function(){return Lz.Date.now()},Fz=Bz,zz=/\s/;function Uz(e){for(var t=e.length;t--&&zz.test(e.charAt(t)););return t}var Wz=Uz,Hz=Wz,Vz=/^\s+/;function qz(e){return e&&e.slice(0,Hz(e)+1).replace(Vz,"")}var Kz=qz,Gz=Kz,B0=_r,Yz=wa,F0=NaN,Xz=/^[-+]0x[0-9a-f]+$/i,Qz=/^0b[01]+$/i,Jz=/^0o[0-7]+$/i,Zz=parseInt;function eU(e){if(typeof e=="number")return e;if(Yz(e))return F0;if(B0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=B0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Gz(e);var n=Qz.test(e);return n||Jz.test(e)?Zz(e.slice(2),n?2:8):Xz.test(e)?F0:+e}var MP=eU,tU=_r,ud=Fz,z0=MP,nU="Expected a function",rU=Math.max,iU=Math.min;function aU(e,t,n){var r,i,a,o,u,l,s=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(nU);t=z0(t)||0,tU(n)&&(f=!!n.leading,c="maxWait"in n,a=c?rU(z0(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d);function p(S){var O=r,P=i;return r=i=void 0,s=S,o=e.apply(P,O),o}function m(S){return s=S,u=setTimeout(g,t),f?p(S):o}function v(S){var O=S-l,P=S-s,A=t-O;return c?iU(A,a-P):A}function w(S){var O=S-l,P=S-s;return l===void 0||O>=t||O<0||c&&P>=a}function g(){var S=ud();if(w(S))return h(S);u=setTimeout(g,v(S))}function h(S){return u=void 0,d&&r?p(S):(r=i=void 0,o)}function y(){u!==void 0&&clearTimeout(u),s=0,r=l=i=u=void 0}function b(){return u===void 0?o:h(ud())}function x(){var S=ud(),O=w(S);if(r=arguments,i=this,l=S,O){if(u===void 0)return m(l);if(c)return clearTimeout(u),u=setTimeout(g,t),p(l)}return u===void 0&&(u=setTimeout(g,t)),o}return x.cancel=y,x.flush=b,x}var oU=aU,uU=oU,lU=_r,sU="Expected a function";function cU(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(sU);return lU(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),uU(e,t,{leading:r,maxWait:t,trailing:i})}var fU=cU;const NP=me(fU);function Vo(e){"@babel/helpers - typeof";return Vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vo(e)}function U0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dl(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&(N=NP(N,v,{trailing:!0,leading:!1}));var j=new ResizeObserver(N),F=x.current.getBoundingClientRect(),R=F.width,z=F.height;return T(R,z),j.observe(x.current),function(){j.disconnect()}},[T,v]);var k=C.useMemo(function(){var N=A.containerWidth,j=A.containerHeight;if(N<0||j<0)return null;Ln(Wr(o)||Wr(l),`The width(%s) and height(%s) are both fixed numbers, + maybe you don't need to use a ResponsiveContainer.`,o,l),Ln(!n||n>0,"The aspect(%s) must be greater than zero.",n);var F=Wr(o)?N:o,R=Wr(l)?j:l;n&&n>0&&(F?R=F/n:R&&(F=R*n),d&&R>d&&(R=d)),Ln(F>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0, + please check the style of container, or the props width(%s) and height(%s), + or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the + height and width.`,F,R,o,l,f,c,n);var z=!Array.isArray(p)&&Ah.isElement(p)&&Rn(p.type).endsWith("Chart");return _.Children.map(p,function($){return Ah.isElement($)?C.cloneElement($,dl({width:F,height:R},z?{style:dl({height:"100%",width:"100%",maxHeight:R,maxWidth:F},$.props.style)}:{})):$})},[n,p,l,d,c,f,A,o]);return _.createElement("div",{id:w?"".concat(w):void 0,className:pe("recharts-responsive-container",g),style:dl(dl({},b),{},{width:o,height:l,minWidth:f,minHeight:c,maxHeight:d}),ref:x},k)}),IP=function(t){return null};IP.displayName="Cell";function qo(e){"@babel/helpers - typeof";return qo=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},qo(e)}function H0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jh(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||yr.isSsr)return{width:0,height:0};var r=EU(n),i=JSON.stringify({text:t,copyStyle:r});if(yi.widthCache[i])return yi.widthCache[i];try{var a=document.getElementById(V0);a||(a=document.createElement("span"),a.setAttribute("id",V0),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Jh(Jh({},_U),r);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),l={width:u.width,height:u.height};return yi.widthCache[i]=l,++yi.cacheCount>PU&&(yi.cacheCount=0,yi.widthCache={}),l}catch{return{width:0,height:0}}},AU=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Ko(e){"@babel/helpers - typeof";return Ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ko(e)}function $s(e,t){return CU(e)||kU(e,t)||$U(e,t)||TU()}function TU(){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 $U(e,t){if(e){if(typeof e=="string")return q0(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 q0(e,t)}}function q0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function VU(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function J0(e,t){return YU(e)||GU(e,t)||KU(e,t)||qU()}function qU(){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 KU(e,t){if(e){if(typeof e=="string")return Z0(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 Z0(e,t)}}function Z0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[];return F.reduce(function(R,z){var $=z.word,D=z.width,U=R[R.length-1];if(U&&(i==null||a||U.width+D+rz.width?R:z})};if(!f)return p;for(var v="…",w=function(F){var R=c.slice(0,F),z=BP({breakAll:s,style:l,children:R+v}).wordsWithComputedWidth,$=d(z),D=$.length>o||m($).width>Number(i);return[D,$]},g=0,h=c.length-1,y=0,b;g<=h&&y<=c.length-1;){var x=Math.floor((g+h)/2),S=x-1,O=w(S),P=J0(O,2),A=P[0],E=P[1],T=w(x),k=J0(T,1),N=k[0];if(!A&&!N&&(g=x+1),A&&N&&(h=x-1),!A&&N){b=E;break}y++}return b||p},e1=function(t){var n=ce(t)?[]:t.toString().split(LP);return[{words:n}]},QU=function(t){var n=t.width,r=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((n||r)&&!yr.isSsr){var l,s,f=BP({breakAll:o,children:i,style:a});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;l=c,s=d}else return e1(i);return XU({breakAll:o,children:i,maxLines:u,style:a},l,s,n,r)}return e1(i)},t1="#808080",ks=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,l=t.capHeight,s=l===void 0?"0.71em":l,f=t.scaleToFit,c=f===void 0?!1:f,d=t.textAnchor,p=d===void 0?"start":d,m=t.verticalAnchor,v=m===void 0?"end":m,w=t.fill,g=w===void 0?t1:w,h=Q0(t,WU),y=C.useMemo(function(){return QU({breakAll:h.breakAll,children:h.children,maxLines:h.maxLines,scaleToFit:c,style:h.style,width:h.width})},[h.breakAll,h.children,h.maxLines,c,h.style,h.width]),b=h.dx,x=h.dy,S=h.angle,O=h.className,P=h.breakAll,A=Q0(h,HU);if(!ze(r)||!ze(a))return null;var E=r+(H(b)?b:0),T=a+(H(x)?x:0),k;switch(v){case"start":k=ld("calc(".concat(s,")"));break;case"middle":k=ld("calc(".concat((y.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:k=ld("calc(".concat(y.length-1," * -").concat(u,")"));break}var N=[];if(c){var j=y[0].width,F=h.width;N.push("scale(".concat((H(F)?F/j:1)/j,")"))}return S&&N.push("rotate(".concat(S,", ").concat(E,", ").concat(T,")")),N.length&&(A.transform=N.join(" ")),_.createElement("text",Zh({},le(A,!0),{x:E,y:T,className:pe("recharts-text",O),textAnchor:p,fill:g.includes("url")?t1:g}),y.map(function(R,z){var $=R.words.join(P?"":" ");return _.createElement("tspan",{x:E,dy:z===0?k:u,key:$},$)}))};function gr(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function JU(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function gm(e){let t,n,r;e.length!==2?(t=gr,n=(u,l)=>gr(e(u),l),r=(u,l)=>e(u)-l):(t=e===gr||e===JU?e:ZU,n=e,r=e);function i(u,l,s=0,f=u.length){if(s>>1;n(u[c],l)<0?s=c+1:f=c}while(s>>1;n(u[c],l)<=0?s=c+1:f=c}while(ss&&r(u[c-1],l)>-r(u[c],l)?c-1:c}return{left:i,center:o,right:a}}function ZU(){return 0}function FP(e){return e===null?NaN:+e}function*e8(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const t8=gm(gr),Lu=t8.right;gm(FP).center;class n1 extends Map{constructor(t,n=i8){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(r1(this,t))}has(t){return super.has(r1(this,t))}set(t,n){return super.set(n8(this,t),n)}delete(t){return super.delete(r8(this,t))}}function r1({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function n8({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function r8({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function i8(e){return e!==null&&typeof e=="object"?e.valueOf():e}function a8(e=gr){if(e===gr)return zP;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 zP(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const o8=Math.sqrt(50),u8=Math.sqrt(10),l8=Math.sqrt(2);function Cs(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=o8?10:a>=u8?5:a>=l8?2:1;let u,l,s;return i<0?(s=Math.pow(10,-i)/o,u=Math.round(e*s),l=Math.round(t*s),u/st&&--l,s=-s):(s=Math.pow(10,i)*o,u=Math.round(e/s),l=Math.round(t/s),u*st&&--l),l0))return[];if(e===t)return[e];const r=t=i))return[];const u=a-i+1,l=new Array(u);if(r)if(o<0)for(let s=0;s=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n=i)&&(n=i)}return n}function a1(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function UP(e,t,n=0,r=1/0,i){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(i=i===void 0?zP:a8(i);r>n;){if(r-n>600){const l=r-n+1,s=t-n+1,f=Math.log(l),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(l-c)/l)*(s-l/2<0?-1:1),p=Math.max(n,Math.floor(t-s*c/l+d)),m=Math.min(r,Math.floor(t+(l-s)*c/l+d));UP(e,t,p,m,i)}const a=e[t];let o=n,u=r;for(Ha(e,n,t),i(e[r],a)>0&&Ha(e,n,r);o0;)--u}i(e[n],a)===0?Ha(e,n,u):(++u,Ha(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function Ha(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function s8(e,t,n){if(e=Float64Array.from(e8(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return a1(e);if(t>=1)return i1(e);var r,i=(r-1)*t,a=Math.floor(i),o=i1(UP(e,a).subarray(0,a+1)),u=a1(e.subarray(a+1));return o+(u-o)*(i-a)}}function c8(e,t,n=FP){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,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),u=+n(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function f8(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?pl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?pl(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=h8.exec(e))?new gt(t[1],t[2],t[3],1):(t=p8.exec(e))?new gt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=v8.exec(e))?pl(t[1],t[2],t[3],t[4]):(t=m8.exec(e))?pl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=y8.exec(e))?d1(t[1],t[2]/100,t[3]/100,1):(t=g8.exec(e))?d1(t[1],t[2]/100,t[3]/100,t[4]):o1.hasOwnProperty(e)?s1(o1[e]):e==="transparent"?new gt(NaN,NaN,NaN,0):null}function s1(e){return new gt(e>>16&255,e>>8&255,e&255,1)}function pl(e,t,n,r){return r<=0&&(e=t=n=NaN),new gt(e,t,n,r)}function x8(e){return e instanceof Bu||(e=Qo(e)),e?(e=e.rgb(),new gt(e.r,e.g,e.b,e.opacity)):new gt}function ip(e,t,n,r){return arguments.length===1?x8(e):new gt(e,t,n,r??1)}function gt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}wm(gt,ip,HP(Bu,{brighter(e){return e=e==null?js:Math.pow(js,e),new gt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Yo:Math.pow(Yo,e),new gt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new gt(Yr(this.r),Yr(this.g),Yr(this.b),Ms(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:c1,formatHex:c1,formatHex8:S8,formatRgb:f1,toString:f1}));function c1(){return`#${Hr(this.r)}${Hr(this.g)}${Hr(this.b)}`}function S8(){return`#${Hr(this.r)}${Hr(this.g)}${Hr(this.b)}${Hr((isNaN(this.opacity)?1:this.opacity)*255)}`}function f1(){const e=Ms(this.opacity);return`${e===1?"rgb(":"rgba("}${Yr(this.r)}, ${Yr(this.g)}, ${Yr(this.b)}${e===1?")":`, ${e})`}`}function Ms(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Yr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Hr(e){return e=Yr(e),(e<16?"0":"")+e.toString(16)}function d1(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rn(e,t,n,r)}function VP(e){if(e instanceof rn)return new rn(e.h,e.s,e.l,e.opacity);if(e instanceof Bu||(e=Qo(e)),!e)return new rn;if(e instanceof rn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,u=a-i,l=(a+i)/2;return u?(t===a?o=(n-r)/u+(n0&&l<1?0:o,new rn(o,u,l,e.opacity)}function O8(e,t,n,r){return arguments.length===1?VP(e):new rn(e,t,n,r??1)}function rn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}wm(rn,O8,HP(Bu,{brighter(e){return e=e==null?js:Math.pow(js,e),new rn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Yo:Math.pow(Yo,e),new rn(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,i=2*n-r;return new gt(sd(e>=240?e-240:e+120,i,r),sd(e,i,r),sd(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new rn(h1(this.h),vl(this.s),vl(this.l),Ms(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=Ms(this.opacity);return`${e===1?"hsl(":"hsla("}${h1(this.h)}, ${vl(this.s)*100}%, ${vl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function h1(e){return e=(e||0)%360,e<0?e+360:e}function vl(e){return Math.max(0,Math.min(1,e||0))}function sd(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 xm=e=>()=>e;function P8(e,t){return function(n){return e+n*t}}function _8(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 E8(e){return(e=+e)==1?qP:function(t,n){return n-t?_8(t,n,e):xm(isNaN(t)?n:t)}}function qP(e,t){var n=t-e;return n?P8(e,n):xm(isNaN(e)?t:e)}const p1=function e(t){var n=E8(t);function r(i,a){var o=n((i=ip(i)).r,(a=ip(a)).r),u=n(i.g,a.g),l=n(i.b,a.b),s=qP(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=l(f),i.opacity=s(f),i+""}}return r.gamma=e,r}(1);function A8(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;in&&(a=t.slice(n,a),u[o]?u[o]+=a:u[++o]=a),(r=r[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,l.push({i:o,x:Ns(r,i)})),n=cd.lastIndex;return nt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function L8(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i2?B8:L8,l=s=null,c}function c(d){return d==null||isNaN(d=+d)?a:(l||(l=u(e.map(r),t,n)))(r(o(d)))}return c.invert=function(d){return o(i((s||(s=u(t,e.map(r),Ns)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,Is),f()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),n=Sm,f()},c.clamp=function(d){return arguments.length?(o=d?!0:ft,f()):o!==ft},c.interpolate=function(d){return arguments.length?(n=d,f()):n},c.unknown=function(d){return arguments.length?(a=d,c):a},function(d,p){return r=d,i=p,f()}}function Om(){return ef()(ft,ft)}function F8(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ds(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function aa(e){return e=Ds(Math.abs(e)),e?e[1]:NaN}function z8(e,t){return function(n,r){for(var i=n.length,a=[],o=0,u=e[0],l=0;i>0&&u>0&&(l+u+1>r&&(u=Math.max(1,r-l)),a.push(n.substring(i-=u,i+u)),!((l+=u+1)>r));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function U8(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var W8=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Jo(e){if(!(t=W8.exec(e)))throw new Error("invalid format: "+e);var t;return new Pm({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]})}Jo.prototype=Pm.prototype;function Pm(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+""}Pm.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 H8(e){e:for(var t=e.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var KP;function V8(e,t){var n=Ds(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(KP=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Ds(e,Math.max(0,t+a-1))[0]}function m1(e,t){var n=Ds(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const y1={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:F8,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)=>m1(e*100,t),r:m1,s:V8,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function g1(e){return e}var b1=Array.prototype.map,w1=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function q8(e){var t=e.grouping===void 0||e.thousands===void 0?g1:z8(b1.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?g1:U8(b1.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function s(c){c=Jo(c);var d=c.fill,p=c.align,m=c.sign,v=c.symbol,w=c.zero,g=c.width,h=c.comma,y=c.precision,b=c.trim,x=c.type;x==="n"?(h=!0,x="g"):y1[x]||(y===void 0&&(y=12),b=!0,x="g"),(w||d==="0"&&p==="=")&&(w=!0,d="0",p="=");var S=v==="$"?n:v==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",O=v==="$"?r:/[%p]/.test(x)?o:"",P=y1[x],A=/[defgprs%]/.test(x);y=y===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function E(T){var k=S,N=O,j,F,R;if(x==="c")N=P(T)+N,T="";else{T=+T;var z=T<0||1/T<0;if(T=isNaN(T)?l:P(Math.abs(T),y),b&&(T=H8(T)),z&&+T==0&&m!=="+"&&(z=!1),k=(z?m==="("?m:u:m==="-"||m==="("?"":m)+k,N=(x==="s"?w1[8+KP/3]:"")+N+(z&&m==="("?")":""),A){for(j=-1,F=T.length;++jR||R>57){N=(R===46?i+T.slice(j+1):T.slice(j))+N,T=T.slice(0,j);break}}}h&&!w&&(T=t(T,1/0));var $=k.length+T.length+N.length,D=$>1)+k+T+N+D.slice($);break;default:T=D+k+T+N;break}return a(T)}return E.toString=function(){return c+""},E}function f(c,d){var p=s((c=Jo(c),c.type="f",c)),m=Math.max(-8,Math.min(8,Math.floor(aa(d)/3)))*3,v=Math.pow(10,-m),w=w1[8+m/3];return function(g){return p(v*g)+w}}return{format:s,formatPrefix:f}}var ml,_m,GP;K8({thousands:",",grouping:[3],currency:["$",""]});function K8(e){return ml=q8(e),_m=ml.format,GP=ml.formatPrefix,ml}function G8(e){return Math.max(0,-aa(Math.abs(e)))}function Y8(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(aa(t)/3)))*3-aa(Math.abs(e)))}function X8(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,aa(t)-aa(e))+1}function YP(e,t,n,r){var i=np(e,t,n),a;switch(r=Jo(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Y8(i,o))&&(r.precision=a),GP(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=X8(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=G8(i))&&(r.precision=a-(r.type==="%")*2);break}}return _m(r)}function Ar(e){var t=e.domain;return e.ticks=function(n){var r=t();return ep(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return YP(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],u=r[a],l,s,f=10;for(u0;){if(s=tp(o,u,n),s===l)return r[i]=o,r[a]=u,t(r);if(s>0)o=Math.floor(o/s)*s,u=Math.ceil(u/s)*s;else if(s<0)o=Math.ceil(o*s)/s,u=Math.floor(u*s)/s;else break;l=s}return e},e}function Rs(){var e=Om();return e.copy=function(){return Fu(e,Rs())},Xt.apply(e,arguments),Ar(e)}function XP(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,Is),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return XP(e).unknown(t)},e=arguments.length?Array.from(e,Is):[0,1],Ar(n)}function QP(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return aMath.pow(e,t)}function tW(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 O1(e){return(t,n)=>-e(-t,n)}function Em(e){const t=e(x1,S1),n=t.domain;let r=10,i,a;function o(){return i=tW(r),a=eW(r),n()[0]<0?(i=O1(i),a=O1(a),e(Q8,J8)):e(x1,S1),t}return t.base=function(u){return arguments.length?(r=+u,o()):r},t.domain=function(u){return arguments.length?(n(u),o()):n()},t.ticks=u=>{const l=n();let s=l[0],f=l[l.length-1];const c=f0){for(;d<=p;++d)for(m=1;mf)break;g.push(v)}}else for(;d<=p;++d)for(m=r-1;m>=1;--m)if(v=d>0?m/a(-d):m*a(d),!(vf)break;g.push(v)}g.length*2{if(u==null&&(u=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Jo(l)).precision==null&&(l.trim=!0),l=_m(l)),u===1/0)return l;const s=Math.max(1,r*u/t.ticks().length);return f=>{let c=f/a(Math.round(i(f)));return c*rn(QP(n(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function JP(){const e=Em(ef()).domain([1,10]);return e.copy=()=>Fu(e,JP()).base(e.base()),Xt.apply(e,arguments),e}function P1(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function _1(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Am(e){var t=1,n=e(P1(t),_1(t));return n.constant=function(r){return arguments.length?e(P1(t=+r),_1(t)):t},Ar(n)}function ZP(){var e=Am(ef());return e.copy=function(){return Fu(e,ZP()).constant(e.constant())},Xt.apply(e,arguments)}function E1(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function nW(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function rW(e){return e<0?-e*e:e*e}function Tm(e){var t=e(ft,ft),n=1;function r(){return n===1?e(ft,ft):n===.5?e(nW,rW):e(E1(n),E1(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Ar(t)}function $m(){var e=Tm(ef());return e.copy=function(){return Fu(e,$m()).exponent(e.exponent())},Xt.apply(e,arguments),e}function iW(){return $m.apply(null,arguments).exponent(.5)}function A1(e){return Math.sign(e)*e*e}function aW(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function e_(){var e=Om(),t=[0,1],n=!1,r;function i(a){var o=aW(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(A1(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Is)).map(A1)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return e_(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Xt.apply(i,arguments),Ar(i)}function t_(){var e=[],t=[],n=[],r;function i(){var o=0,u=Math.max(1,t.length);for(n=new Array(u-1);++o0?n[u-1]:e[0],u=n?[r[n-1],t]:[r[s-1],r[s]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return r.slice()},o.copy=function(){return n_().domain([e,t]).range(i).unknown(a)},Xt.apply(Ar(o),arguments)}function r_(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[Lu(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return r_().domain(e).range(t).unknown(n)},Xt.apply(i,arguments)}const fd=new Date,dd=new Date;function Ue(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const l=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a0))return l;let s;do l.push(s=new Date(+a)),t(a,u),e(a);while(sUe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(fd.setTime(+a),dd.setTime(+o),e(fd),e(dd),Math.floor(n(fd,dd))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Ls=Ue(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ls.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ue(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ls);Ls.range;const jn=1e3,Wt=jn*60,Mn=Wt*60,Hn=Mn*24,km=Hn*7,T1=Hn*30,hd=Hn*365,Vr=Ue(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*jn)},(e,t)=>(t-e)/jn,e=>e.getUTCSeconds());Vr.range;const Cm=Ue(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jn)},(e,t)=>{e.setTime(+e+t*Wt)},(e,t)=>(t-e)/Wt,e=>e.getMinutes());Cm.range;const jm=Ue(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Wt)},(e,t)=>(t-e)/Wt,e=>e.getUTCMinutes());jm.range;const Mm=Ue(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jn-e.getMinutes()*Wt)},(e,t)=>{e.setTime(+e+t*Mn)},(e,t)=>(t-e)/Mn,e=>e.getHours());Mm.range;const Nm=Ue(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Mn)},(e,t)=>(t-e)/Mn,e=>e.getUTCHours());Nm.range;const zu=Ue(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Wt)/Hn,e=>e.getDate()-1);zu.range;const tf=Ue(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Hn,e=>e.getUTCDate()-1);tf.range;const i_=Ue(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Hn,e=>Math.floor(e/Hn));i_.range;function fi(e){return Ue(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())*Wt)/km)}const nf=fi(0),Bs=fi(1),oW=fi(2),uW=fi(3),oa=fi(4),lW=fi(5),sW=fi(6);nf.range;Bs.range;oW.range;uW.range;oa.range;lW.range;sW.range;function di(e){return Ue(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)/km)}const rf=di(0),Fs=di(1),cW=di(2),fW=di(3),ua=di(4),dW=di(5),hW=di(6);rf.range;Fs.range;cW.range;fW.range;ua.range;dW.range;hW.range;const Im=Ue(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());Im.range;const Dm=Ue(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());Dm.range;const Vn=Ue(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());Vn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ue(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)});Vn.range;const qn=Ue(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());qn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ue(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)});qn.range;function a_(e,t,n,r,i,a){const o=[[Vr,1,jn],[Vr,5,5*jn],[Vr,15,15*jn],[Vr,30,30*jn],[a,1,Wt],[a,5,5*Wt],[a,15,15*Wt],[a,30,30*Wt],[i,1,Mn],[i,3,3*Mn],[i,6,6*Mn],[i,12,12*Mn],[r,1,Hn],[r,2,2*Hn],[n,1,km],[t,1,T1],[t,3,3*T1],[e,1,hd]];function u(s,f,c){const d=fw).right(o,d);if(p===o.length)return e.every(np(s/hd,f/hd,c));if(p===0)return Ls.every(Math.max(np(s,f,c),1));const[m,v]=o[d/o[p-1][2]53)return null;"w"in L||(L.w=1),"Z"in L?(re=vd(Va(L.y,0,1)),Re=re.getUTCDay(),re=Re>4||Re===0?Fs.ceil(re):Fs(re),re=tf.offset(re,(L.V-1)*7),L.y=re.getUTCFullYear(),L.m=re.getUTCMonth(),L.d=re.getUTCDate()+(L.w+6)%7):(re=pd(Va(L.y,0,1)),Re=re.getDay(),re=Re>4||Re===0?Bs.ceil(re):Bs(re),re=zu.offset(re,(L.V-1)*7),L.y=re.getFullYear(),L.m=re.getMonth(),L.d=re.getDate()+(L.w+6)%7)}else("W"in L||"U"in L)&&("w"in L||(L.w="u"in L?L.u%7:"W"in L?1:0),Re="Z"in L?vd(Va(L.y,0,1)).getUTCDay():pd(Va(L.y,0,1)).getDay(),L.m=0,L.d="W"in L?(L.w+6)%7+L.W*7-(Re+5)%7:L.w+L.U*7-(Re+6)%7);return"Z"in L?(L.H+=L.Z/100|0,L.M+=L.Z%100,vd(L)):pd(L)}}function P(q,Q,ee,L){for(var ke=0,re=Q.length,Re=ee.length,Ne,Pt;ke=Re)return-1;if(Ne=Q.charCodeAt(ke++),Ne===37){if(Ne=Q.charAt(ke++),Pt=x[Ne in $1?Q.charAt(ke++):Ne],!Pt||(L=Pt(q,ee,L))<0)return-1}else if(Ne!=ee.charCodeAt(L++))return-1}return L}function A(q,Q,ee){var L=s.exec(Q.slice(ee));return L?(q.p=f.get(L[0].toLowerCase()),ee+L[0].length):-1}function E(q,Q,ee){var L=p.exec(Q.slice(ee));return L?(q.w=m.get(L[0].toLowerCase()),ee+L[0].length):-1}function T(q,Q,ee){var L=c.exec(Q.slice(ee));return L?(q.w=d.get(L[0].toLowerCase()),ee+L[0].length):-1}function k(q,Q,ee){var L=g.exec(Q.slice(ee));return L?(q.m=h.get(L[0].toLowerCase()),ee+L[0].length):-1}function N(q,Q,ee){var L=v.exec(Q.slice(ee));return L?(q.m=w.get(L[0].toLowerCase()),ee+L[0].length):-1}function j(q,Q,ee){return P(q,t,Q,ee)}function F(q,Q,ee){return P(q,n,Q,ee)}function R(q,Q,ee){return P(q,r,Q,ee)}function z(q){return o[q.getDay()]}function $(q){return a[q.getDay()]}function D(q){return l[q.getMonth()]}function U(q){return u[q.getMonth()]}function Y(q){return i[+(q.getHours()>=12)]}function V(q){return 1+~~(q.getMonth()/3)}function Z(q){return o[q.getUTCDay()]}function Oe(q){return a[q.getUTCDay()]}function Me(q){return l[q.getUTCMonth()]}function lt(q){return u[q.getUTCMonth()]}function vt(q){return i[+(q.getUTCHours()>=12)]}function It(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var Q=S(q+="",y);return Q.toString=function(){return q},Q},parse:function(q){var Q=O(q+="",!1);return Q.toString=function(){return q},Q},utcFormat:function(q){var Q=S(q+="",b);return Q.toString=function(){return q},Q},utcParse:function(q){var Q=O(q+="",!0);return Q.toString=function(){return q},Q}}}var $1={"-":"",_:" ",0:"0"},Ye=/^\s*\d+/,bW=/^%/,wW=/[\\^$*+?|[\]().{}]/g;function ue(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a[t.toLowerCase(),n]))}function SW(e,t,n){var r=Ye.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function OW(e,t,n){var r=Ye.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function PW(e,t,n){var r=Ye.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function _W(e,t,n){var r=Ye.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function EW(e,t,n){var r=Ye.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function k1(e,t,n){var r=Ye.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function C1(e,t,n){var r=Ye.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function AW(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 TW(e,t,n){var r=Ye.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function $W(e,t,n){var r=Ye.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function j1(e,t,n){var r=Ye.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function kW(e,t,n){var r=Ye.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function M1(e,t,n){var r=Ye.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function CW(e,t,n){var r=Ye.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function jW(e,t,n){var r=Ye.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function MW(e,t,n){var r=Ye.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function NW(e,t,n){var r=Ye.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function IW(e,t,n){var r=bW.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function DW(e,t,n){var r=Ye.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function RW(e,t,n){var r=Ye.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function N1(e,t){return ue(e.getDate(),t,2)}function LW(e,t){return ue(e.getHours(),t,2)}function BW(e,t){return ue(e.getHours()%12||12,t,2)}function FW(e,t){return ue(1+zu.count(Vn(e),e),t,3)}function o_(e,t){return ue(e.getMilliseconds(),t,3)}function zW(e,t){return o_(e,t)+"000"}function UW(e,t){return ue(e.getMonth()+1,t,2)}function WW(e,t){return ue(e.getMinutes(),t,2)}function HW(e,t){return ue(e.getSeconds(),t,2)}function VW(e){var t=e.getDay();return t===0?7:t}function qW(e,t){return ue(nf.count(Vn(e)-1,e),t,2)}function u_(e){var t=e.getDay();return t>=4||t===0?oa(e):oa.ceil(e)}function KW(e,t){return e=u_(e),ue(oa.count(Vn(e),e)+(Vn(e).getDay()===4),t,2)}function GW(e){return e.getDay()}function YW(e,t){return ue(Bs.count(Vn(e)-1,e),t,2)}function XW(e,t){return ue(e.getFullYear()%100,t,2)}function QW(e,t){return e=u_(e),ue(e.getFullYear()%100,t,2)}function JW(e,t){return ue(e.getFullYear()%1e4,t,4)}function ZW(e,t){var n=e.getDay();return e=n>=4||n===0?oa(e):oa.ceil(e),ue(e.getFullYear()%1e4,t,4)}function e5(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ue(t/60|0,"0",2)+ue(t%60,"0",2)}function I1(e,t){return ue(e.getUTCDate(),t,2)}function t5(e,t){return ue(e.getUTCHours(),t,2)}function n5(e,t){return ue(e.getUTCHours()%12||12,t,2)}function r5(e,t){return ue(1+tf.count(qn(e),e),t,3)}function l_(e,t){return ue(e.getUTCMilliseconds(),t,3)}function i5(e,t){return l_(e,t)+"000"}function a5(e,t){return ue(e.getUTCMonth()+1,t,2)}function o5(e,t){return ue(e.getUTCMinutes(),t,2)}function u5(e,t){return ue(e.getUTCSeconds(),t,2)}function l5(e){var t=e.getUTCDay();return t===0?7:t}function s5(e,t){return ue(rf.count(qn(e)-1,e),t,2)}function s_(e){var t=e.getUTCDay();return t>=4||t===0?ua(e):ua.ceil(e)}function c5(e,t){return e=s_(e),ue(ua.count(qn(e),e)+(qn(e).getUTCDay()===4),t,2)}function f5(e){return e.getUTCDay()}function d5(e,t){return ue(Fs.count(qn(e)-1,e),t,2)}function h5(e,t){return ue(e.getUTCFullYear()%100,t,2)}function p5(e,t){return e=s_(e),ue(e.getUTCFullYear()%100,t,2)}function v5(e,t){return ue(e.getUTCFullYear()%1e4,t,4)}function m5(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ua(e):ua.ceil(e),ue(e.getUTCFullYear()%1e4,t,4)}function y5(){return"+0000"}function D1(){return"%"}function R1(e){return+e}function L1(e){return Math.floor(+e/1e3)}var gi,c_,f_;g5({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 g5(e){return gi=gW(e),c_=gi.format,gi.parse,f_=gi.utcFormat,gi.utcParse,gi}function b5(e){return new Date(e)}function w5(e){return e instanceof Date?+e:+new Date(+e)}function Rm(e,t,n,r,i,a,o,u,l,s){var f=Om(),c=f.invert,d=f.domain,p=s(".%L"),m=s(":%S"),v=s("%I:%M"),w=s("%I %p"),g=s("%a %d"),h=s("%b %d"),y=s("%B"),b=s("%Y");function x(S){return(l(S)t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>s8(e,a/r))},n.copy=function(){return v_(t).domain(e)},Xn.apply(n,arguments)}function of(){var e=0,t=.5,n=1,r=1,i,a,o,u,l,s=ft,f,c=!1,d;function p(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-a)*(r*vt}var T5=A5,$5=b_,k5=T5,C5=Aa;function j5(e){return e&&e.length?$5(e,C5,k5):void 0}var M5=j5;const uf=me(M5);function N5(e,t){return ee.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=re.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};G.decimalPlaces=G.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*xe;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};G.dividedBy=G.div=function(e){return Bn(this,new this.constructor(e))};G.dividedToIntegerBy=G.idiv=function(e){var t=this,n=t.constructor;return ve(Bn(t,new n(e),0,1),n.precision)};G.equals=G.eq=function(e){return!this.cmp(e)};G.exponent=function(){return De(this)};G.greaterThan=G.gt=function(e){return this.cmp(e)>0};G.greaterThanOrEqualTo=G.gte=function(e){return this.cmp(e)>=0};G.isInteger=G.isint=function(){return this.e>this.d.length-2};G.isNegative=G.isneg=function(){return this.s<0};G.isPositive=G.ispos=function(){return this.s>0};G.isZero=function(){return this.s===0};G.lessThan=G.lt=function(e){return this.cmp(e)<0};G.lessThanOrEqualTo=G.lte=function(e){return this.cmp(e)<1};G.logarithm=G.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Tt))throw Error(Yt+"NaN");if(n.s<1)throw Error(Yt+(n.s?"NaN":"-Infinity"));return n.eq(Tt)?new r(0):(_e=!1,t=Bn(Zo(n,a),Zo(e,a),a),_e=!0,ve(t,i))};G.minus=G.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O_(t,e):x_(t,(e.s=-e.s,e))};G.modulo=G.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(Yt+"NaN");return n.s?(_e=!1,t=Bn(n,e,0,1).times(e),_e=!0,n.minus(t)):ve(new r(n),i)};G.naturalExponential=G.exp=function(){return S_(this)};G.naturalLogarithm=G.ln=function(){return Zo(this)};G.negated=G.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};G.plus=G.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?x_(t,e):O_(t,(e.s=-e.s,e))};G.precision=G.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Xr+e);if(t=De(i)+1,r=i.d.length-1,n=r*xe+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};G.squareRoot=G.sqrt=function(){var e,t,n,r,i,a,o,u=this,l=u.constructor;if(u.s<1){if(!u.s)return new l(0);throw Error(Yt+"NaN")}for(e=De(u),_e=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=yn(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=ka((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(i.toString()),n=l.precision,i=o=n+3;;)if(a=r,r=a.plus(Bn(u,a,o+2)).times(.5),yn(a.d).slice(0,o)===(t=yn(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ve(a,n+1,0),a.times(a).eq(u)){r=a;break}}else if(t!="9999")break;o+=4}return _e=!0,ve(r,n)};G.times=G.mul=function(e){var t,n,r,i,a,o,u,l,s,f=this,c=f.constructor,d=f.d,p=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,n=f.e+e.e,l=d.length,s=p.length,l=0;){for(t=0,i=l+r;i>r;)u=a[i]+p[r]*d[i-r-1]+t,a[i--]=u%He|0,t=u/He|0;a[i]=(a[i]+t)%He|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,_e?ve(e,c.precision):e};G.toDecimalPlaces=G.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Sn(e,0,$a),t===void 0?t=r.rounding:Sn(t,0,8),ve(n,e+De(n)+1,t))};G.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=ri(r,!0):(Sn(e,0,$a),t===void 0?t=i.rounding:Sn(t,0,8),r=ve(new i(r),e+1,t),n=ri(r,!0,e+1)),n};G.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?ri(i):(Sn(e,0,$a),t===void 0?t=a.rounding:Sn(t,0,8),r=ve(new a(i),e+De(i)+1,t),n=ri(r.abs(),!1,e+De(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};G.toInteger=G.toint=function(){var e=this,t=e.constructor;return ve(new t(e),De(e)+1,t.rounding)};G.toNumber=function(){return+this};G.toPower=G.pow=function(e){var t,n,r,i,a,o,u=this,l=u.constructor,s=12,f=+(e=new l(e));if(!e.s)return new l(Tt);if(u=new l(u),!u.s){if(e.s<1)throw Error(Yt+"Infinity");return u}if(u.eq(Tt))return u;if(r=l.precision,e.eq(Tt))return ve(u,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=u.s,o){if((n=f<0?-f:f)<=w_){for(i=new l(Tt),t=Math.ceil(r/xe+4),_e=!1;n%2&&(i=i.times(u),z1(i.d,t)),n=ka(n/2),n!==0;)u=u.times(u),z1(u.d,t);return _e=!0,e.s<0?new l(Tt).div(i):ve(i,r)}}else if(a<0)throw Error(Yt+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,_e=!1,i=e.times(Zo(u,r+s)),_e=!0,i=S_(i),i.s=a,i};G.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=De(i),r=ri(i,n<=a.toExpNeg||n>=a.toExpPos)):(Sn(e,1,$a),t===void 0?t=a.rounding:Sn(t,0,8),i=ve(new a(i),e,t),n=De(i),r=ri(i,e<=n||n<=a.toExpNeg,e)),r};G.toSignificantDigits=G.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Sn(e,1,$a),t===void 0?t=r.rounding:Sn(t,0,8)),ve(new r(n),e,t)};G.toString=G.valueOf=G.val=G.toJSON=G[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=De(e),n=e.constructor;return ri(e,t<=n.toExpNeg||t>=n.toExpPos)};function x_(e,t){var n,r,i,a,o,u,l,s,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),_e?ve(t,c):t;if(l=e.d,s=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(r=l,a=-a,u=s.length):(r=s,i=o,u=l.length),o=Math.ceil(c/xe),u=o>u?o+1:u+1,a>u&&(a=u,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(u=l.length,a=s.length,u-a<0&&(a=u,r=s,s=l,l=r),n=0;a;)n=(l[--a]=l[a]+s[a]+n)/He|0,l[a]%=He;for(n&&(l.unshift(n),++i),u=l.length;l[--u]==0;)l.pop();return t.d=l,t.e=i,_e?ve(t,c):t}function Sn(e,t,n){if(e!==~~e||en)throw Error(Xr+e)}function yn(e){var t,n,r,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(u=l=0;ui[u]?1:-1;break}return l}function n(r,i,a){for(var o=0;a--;)r[a]-=o,o=r[a]1;)r.shift()}return function(r,i,a,o){var u,l,s,f,c,d,p,m,v,w,g,h,y,b,x,S,O,P,A=r.constructor,E=r.s==i.s?1:-1,T=r.d,k=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(Yt+"Division by zero");for(l=r.e-i.e,O=k.length,x=T.length,p=new A(E),m=p.d=[],s=0;k[s]==(T[s]||0);)++s;if(k[s]>(T[s]||0)&&--l,a==null?h=a=A.precision:o?h=a+(De(r)-De(i))+1:h=a,h<0)return new A(0);if(h=h/xe+2|0,s=0,O==1)for(f=0,k=k[0],h++;(s1&&(k=e(k,f),T=e(T,f),O=k.length,x=T.length),b=O,v=T.slice(0,O),w=v.length;w=He/2&&++S;do f=0,u=t(k,v,O,w),u<0?(g=v[0],O!=w&&(g=g*He+(v[1]||0)),f=g/S|0,f>1?(f>=He&&(f=He-1),c=e(k,f),d=c.length,w=v.length,u=t(c,v,d,w),u==1&&(f--,n(c,O16)throw Error(zm+De(e));if(!e.s)return new f(Tt);for(t==null?(_e=!1,u=c):u=t,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(r=Math.log(Rr(2,s))/Math.LN10*2+5|0,u+=r,n=i=a=new f(Tt),f.precision=u;;){if(i=ve(i.times(e),u),n=n.times(++l),o=a.plus(Bn(i,n,u)),yn(o.d).slice(0,u)===yn(a.d).slice(0,u)){for(;s--;)a=ve(a.times(a),u);return f.precision=c,t==null?(_e=!0,ve(a,c)):a}a=o}}function De(e){for(var t=e.e*xe,n=e.d[0];n>=10;n/=10)t++;return t}function md(e,t,n){if(t>e.LN10.sd())throw _e=!0,n&&(e.precision=n),Error(Yt+"LN10 precision limit exceeded");return ve(new e(e.LN10),t)}function nr(e){for(var t="";e--;)t+="0";return t}function Zo(e,t){var n,r,i,a,o,u,l,s,f,c=1,d=10,p=e,m=p.d,v=p.constructor,w=v.precision;if(p.s<1)throw Error(Yt+(p.s?"NaN":"-Infinity"));if(p.eq(Tt))return new v(0);if(t==null?(_e=!1,s=w):s=t,p.eq(10))return t==null&&(_e=!0),md(v,s);if(s+=d,v.precision=s,n=yn(m),r=n.charAt(0),a=De(p),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=yn(p.d),r=n.charAt(0),c++;a=De(p),r>1?(p=new v("0."+n),a++):p=new v(r+"."+n.slice(1))}else return l=md(v,s+2,w).times(a+""),p=Zo(new v(r+"."+n.slice(1)),s-d).plus(l),v.precision=w,t==null?(_e=!0,ve(p,w)):p;for(u=o=p=Bn(p.minus(Tt),p.plus(Tt),s),f=ve(p.times(p),s),i=3;;){if(o=ve(o.times(f),s),l=u.plus(Bn(o,new v(i),s)),yn(l.d).slice(0,s)===yn(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(md(v,s+2,w).times(a+""))),u=Bn(u,new v(c),s),v.precision=w,t==null?(_e=!0,ve(u,w)):u;u=l,i+=2}}function F1(e,t){var n,r,i;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(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=ka(n/xe),e.d=[],r=(n+1)%xe,n<0&&(r+=xe),rzs||e.e<-zs))throw Error(zm+n)}else e.s=0,e.e=0,e.d=[0];return e}function ve(e,t,n){var r,i,a,o,u,l,s,f,c=e.d;for(o=1,a=c[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=xe,i=t,s=c[f=0];else{if(f=Math.ceil((r+1)/xe),a=c.length,f>=a)return e;for(s=a=c[f],o=1;a>=10;a/=10)o++;r%=xe,i=r-xe+o}if(n!==void 0&&(a=Rr(10,o-i-1),u=s/a%10|0,l=t<0||c[f+1]!==void 0||s%a,l=n<4?(u||l)&&(n==0||n==(e.s<0?3:2)):u>5||u==5&&(n==4||l||n==6&&(r>0?i>0?s/Rr(10,o-i):0:c[f-1])%10&1||n==(e.s<0?8:7))),t<1||!c[0])return l?(a=De(e),c.length=1,t=t-a-1,c[0]=Rr(10,(xe-t%xe)%xe),e.e=ka(-t/xe)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(r==0?(c.length=f,a=1,f--):(c.length=f+1,a=Rr(10,xe-r),c[f]=i>0?(s/Rr(10,o-i)%Rr(10,i)|0)*a:0),l)for(;;)if(f==0){(c[0]+=a)==He&&(c[0]=1,++e.e);break}else{if(c[f]+=a,c[f]!=He)break;c[f--]=0,a=1}for(r=c.length;c[--r]===0;)c.pop();if(_e&&(e.e>zs||e.e<-zs))throw Error(zm+De(e));return e}function O_(e,t){var n,r,i,a,o,u,l,s,f,c,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),_e?ve(t,p):t;if(l=e.d,c=t.d,r=t.e,s=e.e,l=l.slice(),o=s-r,o){for(f=o<0,f?(n=l,o=-o,u=c.length):(n=c,r=s,u=l.length),i=Math.max(Math.ceil(p/xe),u)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=l.length,u=c.length,f=i0;--i)l[u++]=0;for(i=c.length;i>o;){if(l[--i]0?a=a.charAt(0)+"."+a.slice(1)+nr(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+nr(-i-1)+a,n&&(r=n-o)>0&&(a+=nr(r))):i>=o?(a+=nr(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+nr(r))):((r=i+1)0&&(i+1===o&&(a+="."),a+=nr(r))),e.s<0?"-"+a:a}function z1(e,t){if(e.length>t)return e.length=t,!0}function P_(e){var t,n,r;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Xr+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return F1(o,a.toString())}else if(typeof a!="string")throw Error(Xr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,n6.test(a))F1(o,a);else throw Error(Xr+a)}if(i.prototype=G,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=P_,i.config=i.set=r6,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Xr+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Xr+n+": "+r);return this}var Um=P_(t6);Tt=new Um(1);const he=Um;function i6(e){return l6(e)||u6(e)||o6(e)||a6()}function a6(){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 o6(e,t){if(e){if(typeof e=="string")return up(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 up(e,t)}}function u6(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function l6(e){if(Array.isArray(e))return up(e)}function up(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t?n.apply(void 0,i):e(t-o,U1(function(){for(var u=arguments.length,l=new Array(u),s=0;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(r=(u=o.next()).done)&&(n.push(u.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,a=l}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function O6(e){if(Array.isArray(e))return e}function $_(e){var t=eu(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]}function k_(e,t,n){if(e.lte(0))return new he(0);var r=cf.getDigitCount(e.toNumber()),i=new he(10).pow(r),a=e.div(i),o=r!==1?.05:.1,u=new he(Math.ceil(a.div(o).toNumber())).add(n).mul(o),l=u.mul(i);return t?l:new he(Math.ceil(l))}function P6(e,t,n){var r=1,i=new he(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new he(10).pow(cf.getDigitCount(e)-1),i=new he(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new he(Math.floor(e)))}else e===0?i=new he(Math.floor((t-1)/2)):n||(i=new he(Math.floor(e)));var o=Math.floor((t-1)/2),u=d6(f6(function(l){return i.add(new he(l-o).mul(r)).toNumber()}),lp);return u(0,t)}function C_(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new he(0),tickMin:new he(0),tickMax:new he(0)};var a=k_(new he(t).sub(e).div(n-1),r,i),o;e<=0&&t>=0?o=new he(0):(o=new he(e).add(t).div(2),o=o.sub(new he(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new he(t).sub(o).div(a).toNumber()),s=u+l+1;return s>n?C_(e,t,n,r,i+1):(s0?l+(n-s):l,u=t>0?u:u+(n-s)),{step:a,tickMin:o.sub(new he(u).mul(a)),tickMax:o.add(new he(l).mul(a))})}function _6(e){var t=eu(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=$_([n,r]),l=eu(u,2),s=l[0],f=l[1];if(s===-1/0||f===1/0){var c=f===1/0?[s].concat(cp(lp(0,i-1).map(function(){return 1/0}))):[].concat(cp(lp(0,i-1).map(function(){return-1/0})),[f]);return n>r?sp(c):c}if(s===f)return P6(s,i,a);var d=C_(s,f,o,a),p=d.step,m=d.tickMin,v=d.tickMax,w=cf.rangeStep(m,v.add(new he(.1).mul(p)),p);return n>r?sp(w):w}function E6(e,t){var n=eu(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=$_([r,i]),u=eu(o,2),l=u[0],s=u[1];if(l===-1/0||s===1/0)return[r,i];if(l===s)return[l];var f=Math.max(t,2),c=k_(new he(s).sub(l).div(f-1),a,0),d=[].concat(cp(cf.rangeStep(new he(l),new he(s).sub(new he(.99).mul(c)),c)),[s]);return r>i?sp(d):d}var A6=A_(_6),T6=A_(E6),$6="Invariant failed";function ii(e,t){if(!e)throw new Error($6)}var k6=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Us(){return Us=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function R6(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function ff(e){var t=e.offset,n=e.layout,r=e.width,i=e.dataKey,a=e.data,o=e.dataPointFormatter,u=e.xAxis,l=e.yAxis,s=D6(e,k6),f=le(s,!1);e.direction==="x"&&u.type!=="number"&&ii(!1);var c=a.map(function(d){var p=o(d,i),m=p.x,v=p.y,w=p.value,g=p.errorVal;if(!g)return null;var h=[],y,b;if(Array.isArray(g)){var x=C6(g,2);y=x[0],b=x[1]}else y=b=g;if(n==="vertical"){var S=u.scale,O=v+t,P=O+r,A=O-r,E=S(w-y),T=S(w+b);h.push({x1:T,y1:P,x2:T,y2:A}),h.push({x1:E,y1:O,x2:T,y2:O}),h.push({x1:E,y1:P,x2:E,y2:A})}else if(n==="horizontal"){var k=l.scale,N=m+t,j=N-r,F=N+r,R=k(w-y),z=k(w+b);h.push({x1:j,y1:z,x2:F,y2:z}),h.push({x1:N,y1:R,x2:N,y2:z}),h.push({x1:j,y1:R,x2:F,y2:R})}return _.createElement(qe,Us({className:"recharts-errorBar",key:"bar-".concat(h.map(function($){return"".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))},f),h.map(function($){return _.createElement("line",Us({},$,{key:"line-".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))}))});return _.createElement(qe,{className:"recharts-errorBars"},c)}ff.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};ff.displayName="ErrorBar";function tu(e){"@babel/helpers - typeof";return tu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tu(e)}function H1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yd(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,s=0;s0?i[s-1].coordinate:i[u-1].coordinate,c=i[s].coordinate,d=s>=u-1?i[0].coordinate:i[s+1].coordinate,p=void 0;if(an(c-f)!==an(d-c)){var m=[];if(an(d-c)===an(l[1]-l[0])){p=d;var v=c+l[1]-l[0];m[0]=Math.min(v,(v+f)/2),m[1]=Math.max(v,(v+f)/2)}else{p=f;var w=d+l[1]-l[0];m[0]=Math.min(c,(w+c)/2),m[1]=Math.max(c,(w+c)/2)}var g=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(t>g[0]&&t<=g[1]||t>=m[0]&&t<=m[1]){o=i[s].index;break}}else{var h=Math.min(f,d),y=Math.max(f,d);if(t>(h+c)/2&&t<=(y+c)/2){o=i[s].index;break}}}else for(var b=0;b0&&b(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===u-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){o=r[b].index;break}return o},Wm=function(t){var n=t,r=n.type.displayName,i=t.props,a=i.stroke,o=i.fill,u;switch(r){case"Line":u=a;break;case"Area":case"Radar":u=a&&a!=="none"?a:o;break;default:u=o;break}return u},G6=function(t){var n=t.barSize,r=t.stackGroups,i=r===void 0?{}:r;if(!i)return{};for(var a={},o=Object.keys(i),u=0,l=o.length;u=0});if(w&&w.length){var g=w[0].props.barSize,h=w[0].props[v];a[h]||(a[h]=[]),a[h].push({item:w[0],stackList:w.slice(1),barSize:ce(g)?n:g})}}return a},Y6=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,l=o.length;if(l<1)return null;var s=Ji(n,i,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/l,m=o.reduce(function(b,x){return b+x.barSize||0},0);m+=(l-1)*s,m>=i&&(m-=(l-1)*s,s=0),m>=i&&p>0&&(d=!0,p*=.9,m=l*p);var v=(i-m)/2>>0,w={offset:v-s,size:0};f=o.reduce(function(b,x){var S={item:x.item,position:{offset:w.offset+w.size+s,size:d?p:x.barSize}},O=[].concat(q1(b),[S]);return w=O[O.length-1].position,x.stackList&&x.stackList.length&&x.stackList.forEach(function(P){O.push({item:P,position:w})}),O},c)}else{var g=Ji(r,i,0,!0);i-2*g-(l-1)*s<=0&&(s=0);var h=(i-2*g-(l-1)*s)/l;h>1&&(h>>=0);var y=u===+u?Math.min(h,u):h;f=o.reduce(function(b,x,S){var O=[].concat(q1(b),[{item:x.item,position:{offset:g+(h+s)*S+(h-y)/2,size:y}}]);return x.stackList&&x.stackList.length&&x.stackList.forEach(function(P){O.push({item:P,position:O[O.length-1].position})}),O},c)}return f},X6=function(t,n,r,i){var a=r.children,o=r.width,u=r.margin,l=o-(u.left||0)-(u.right||0),s=j_({children:a,legendWidth:l});if(s){var f=i||{},c=f.width,d=f.height,p=s.align,m=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&m==="middle")&&p!=="center"&&H(t[p]))return zt(zt({},t),{},Wi({},p,t[p]+(c||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&m!=="middle"&&H(t[m]))return zt(zt({},t),{},Wi({},m,t[m]+(d||0)))}return t},Q6=function(t,n,r){return ce(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},M_=function(t,n,r,i,a){var o=n.props.children,u=ln(o,ff).filter(function(s){return Q6(i,a,s.props.direction)});if(u&&u.length){var l=u.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var c=On(f,r);if(ce(c))return s;var d=Array.isArray(c)?[lf(c),uf(c)]:[c,c],p=l.reduce(function(m,v){var w=On(f,v,0),g=d[0]-Math.abs(Array.isArray(w)?w[0]:w),h=d[1]+Math.abs(Array.isArray(w)?w[1]:w);return[Math.min(g,m[0]),Math.max(h,m[1])]},[1/0,-1/0]);return[Math.min(p[0],s[0]),Math.max(p[1],s[1])]},[1/0,-1/0])}return null},J6=function(t,n,r,i,a){var o=n.map(function(u){return M_(t,u,r,a,i)}).filter(function(u){return!ce(u)});return o&&o.length?o.reduce(function(u,l){return[Math.min(u[0],l[0]),Math.max(u[1],l[1])]},[1/0,-1/0]):null},N_=function(t,n,r,i,a){var o=n.map(function(l){var s=l.props.dataKey;return r==="number"&&s&&M_(t,l,s,i)||go(t,s,r,a)});if(r==="number")return o.reduce(function(l,s){return[Math.min(l[0],s[0]),Math.max(l[1],s[1])]},[1/0,-1/0]);var u={};return o.reduce(function(l,s){for(var f=0,c=s.length;f=2?an(u[0]-u[1])*2*s:s,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var d=a?a.indexOf(c):c;return{coordinate:i(d)+s,value:c,offset:s}});return f.filter(function(c){return!Du(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,d){return{coordinate:i(c)+s,value:c,index:d,offset:s}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(c){return{coordinate:i(c)+s,value:c,offset:s}}):i.domain().map(function(c,d){return{coordinate:i(c)+s,value:a?a[c]:c,index:d,offset:s}})},gd=new WeakMap,yl=function(t,n){if(typeof n!="function")return t;gd.has(t)||gd.set(t,new WeakMap);var r=gd.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},Z6=function(t,n,r){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:Go(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Rs(),realScaleType:"linear"}:a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:yo(),realScaleType:"point"}:a==="category"?{scale:Go(),realScaleType:"band"}:{scale:Rs(),realScaleType:"linear"};if(Iu(i)){var l="scale".concat(Kc(i));return{scale:(B1[l]||yo)(),realScaleType:B1[l]?l:"point"}}return te(i)?{scale:i}:{scale:yo(),realScaleType:"point"}},K1=1e-4,eH=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),a=Math.min(i[0],i[1])-K1,o=Math.max(i[0],i[1])+K1,u=t(n[0]),l=t(n[r-1]);(uo||lo)&&t.domain([n[0],n[r-1]])}},tH=function(t,n){if(!t)return null;for(var r=0,i=t.length;ri)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]=0?(t[u][r][0]=a,t[u][r][1]=a+l,a=t[u][r][1]):(t[u][r][0]=o,t[u][r][1]=o+l,o=t[u][r][1])}},iH=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r=0?(t[o][r][0]=a,t[o][r][1]=a+u,a=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},aH={sign:rH,expand:jI,none:Zi,silhouette:MI,wiggle:NI,positive:iH},oH=function(t,n,r){var i=n.map(function(u){return u.props.dataKey}),a=aH[r],o=CI().keys(i).value(function(u,l){return+On(u,l,0)}).order(Bh).offset(a);return o(t)},uH=function(t,n,r,i,a,o){if(!t)return null;var u=o?n.reverse():n,l={},s=u.reduce(function(c,d){var p=d.props,m=p.stackId,v=p.hide;if(v)return c;var w=d.props[r],g=c[w]||{hasStack:!1,stackGroups:{}};if(ze(m)){var h=g.stackGroups[m]||{numericAxisId:r,cateAxisId:i,items:[]};h.items.push(d),g.hasStack=!0,g.stackGroups[m]=h}else g.stackGroups[qc("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[d]};return zt(zt({},c),{},Wi({},w,g))},l),f={};return Object.keys(s).reduce(function(c,d){var p=s[d];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,w){var g=p.stackGroups[w];return zt(zt({},v),{},Wi({},w,{numericAxisId:r,cateAxisId:i,items:g.items,stackedData:oH(t,g.items,a)}))},m)}return zt(zt({},c),{},Wi({},d,p))},f)},lH=function(t,n){var r=n.realScaleType,i=n.type,a=n.tickCount,o=n.originalDomain,u=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var s=t.domain();if(!s.length)return null;var f=A6(s,a,u);return t.domain([lf(f),uf(f)]),{niceTicks:f}}if(a&&i==="number"){var c=t.domain(),d=T6(c,a,u);return{niceTicks:d}}return null},G1=function(t){var n=t.axis,r=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(n.type==="category")return r[u]?r[u].coordinate+i:null;var l=On(o,n.dataKey,n.domain[u]);return ce(l)?null:n.scale(l)-a/2+i},sH=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return i<=0&&a>=0?0:a<0?a:i}return r[0]},cH=function(t,n){var r=t.props.stackId;if(ze(r)){var i=n[r];if(i){var a=i.items.indexOf(t);return a>=0?i.stackedData[a]:null}}return null},fH=function(t){return t.reduce(function(n,r){return[lf(r.concat([n[0]]).filter(H)),uf(r.concat([n[1]]).filter(H))]},[1/0,-1/0])},R_=function(t,n,r){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,l=u.reduce(function(s,f){var c=fH(f.slice(n,r+1));return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Y1=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,X1=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,hp=function(t,n,r){if(te(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(H(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(Y1.test(t[0])){var a=+Y1.exec(t[0])[1];i[0]=n[0]-a}else te(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(H(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(X1.test(t[1])){var o=+X1.exec(t[1])[1];i[1]=n[1]+o}else te(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Ws=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var a=mm(n,function(c){return c.coordinate}),o=1/0,u=1,l=a.length;uo&&(s=2*Math.PI-s),{radius:u,angle:vH(s),angleInRadian:s}},gH=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360),o=Math.min(i,a);return{startAngle:n-o*360,endAngle:r-o*360}},bH=function(t,n){var r=n.startAngle,i=n.endAngle,a=Math.floor(r/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},eb=function(t,n){var r=t.x,i=t.y,a=yH({x:r,y:i},n),o=a.radius,u=a.angle,l=n.innerRadius,s=n.outerRadius;if(os)return!1;if(o===0)return!0;var f=gH(n),c=f.startAngle,d=f.endAngle,p=u,m;if(c<=d){for(;p>d;)p-=360;for(;p=c&&p<=d}else{for(;p>c;)p-=360;for(;p=d&&p<=c}return m?Z1(Z1({},n),{},{radius:o,angle:bH(p,n)}):null};function iu(e){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iu(e)}var wH=["offset"];function xH(e){return _H(e)||PH(e)||OH(e)||SH()}function SH(){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 OH(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 PH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _H(e){if(Array.isArray(e))return pp(e)}function pp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function AH(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function tb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t=0?1:-1,y,b;i==="insideStart"?(y=p+h*o,b=v):i==="insideEnd"?(y=m-h*o,b=!v):i==="end"&&(y=m+h*o,b=v),b=g<=0?b:!b;var x=Je(s,f,w,y),S=Je(s,f,w,y+(b?1:-1)*359),O="M".concat(x.x,",").concat(x.y,` + A`).concat(w,",").concat(w,",0,1,").concat(b?0:1,`, + `).concat(S.x,",").concat(S.y),P=ce(t.id)?qc("recharts-radial-line-"):t.id;return _.createElement("text",au({},r,{dominantBaseline:"central",className:pe("recharts-radial-bar-label",u)}),_.createElement("defs",null,_.createElement("path",{id:P,d:O})),_.createElement("textPath",{xlinkHref:"#".concat(P)},n))},NH=function(t){var n=t.viewBox,r=t.offset,i=t.position,a=n,o=a.cx,u=a.cy,l=a.innerRadius,s=a.outerRadius,f=a.startAngle,c=a.endAngle,d=(f+c)/2;if(i==="outside"){var p=Je(o,u,s+r,d),m=p.x,v=p.y;return{x:m,y:v,textAnchor:m>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var w=(l+s)/2,g=Je(o,u,w,d),h=g.x,y=g.y;return{x:h,y,textAnchor:"middle",verticalAnchor:"middle"}},IH=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,a=t.position,o=n,u=o.x,l=o.y,s=o.width,f=o.height,c=f>=0?1:-1,d=c*i,p=c>0?"end":"start",m=c>0?"start":"end",v=s>=0?1:-1,w=v*i,g=v>0?"end":"start",h=v>0?"start":"end";if(a==="top"){var y={x:u+s/2,y:l-c*i,textAnchor:"middle",verticalAnchor:p};return Le(Le({},y),r?{height:Math.max(l-r.y,0),width:s}:{})}if(a==="bottom"){var b={x:u+s/2,y:l+f+d,textAnchor:"middle",verticalAnchor:m};return Le(Le({},b),r?{height:Math.max(r.y+r.height-(l+f),0),width:s}:{})}if(a==="left"){var x={x:u-w,y:l+f/2,textAnchor:g,verticalAnchor:"middle"};return Le(Le({},x),r?{width:Math.max(x.x-r.x,0),height:f}:{})}if(a==="right"){var S={x:u+s+w,y:l+f/2,textAnchor:h,verticalAnchor:"middle"};return Le(Le({},S),r?{width:Math.max(r.x+r.width-S.x,0),height:f}:{})}var O=r?{width:s,height:f}:{};return a==="insideLeft"?Le({x:u+w,y:l+f/2,textAnchor:h,verticalAnchor:"middle"},O):a==="insideRight"?Le({x:u+s-w,y:l+f/2,textAnchor:g,verticalAnchor:"middle"},O):a==="insideTop"?Le({x:u+s/2,y:l+d,textAnchor:"middle",verticalAnchor:m},O):a==="insideBottom"?Le({x:u+s/2,y:l+f-d,textAnchor:"middle",verticalAnchor:p},O):a==="insideTopLeft"?Le({x:u+w,y:l+d,textAnchor:h,verticalAnchor:m},O):a==="insideTopRight"?Le({x:u+s-w,y:l+d,textAnchor:g,verticalAnchor:m},O):a==="insideBottomLeft"?Le({x:u+w,y:l+f-d,textAnchor:h,verticalAnchor:p},O):a==="insideBottomRight"?Le({x:u+s-w,y:l+f-d,textAnchor:g,verticalAnchor:p},O):xa(a)&&(H(a.x)||Wr(a.x))&&(H(a.y)||Wr(a.y))?Le({x:u+Ji(a.x,s),y:l+Ji(a.y,f),textAnchor:"end",verticalAnchor:"end"},O):Le({x:u+s/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},O)},DH=function(t){return"cx"in t&&H(t.cx)};function at(e){var t=e.offset,n=t===void 0?5:t,r=EH(e,wH),i=Le({offset:n},r),a=i.viewBox,o=i.position,u=i.value,l=i.children,s=i.content,f=i.className,c=f===void 0?"":f,d=i.textBreakAll;if(!a||ce(u)&&ce(l)&&!C.isValidElement(s)&&!te(s))return null;if(C.isValidElement(s))return C.cloneElement(s,i);var p;if(te(s)){if(p=C.createElement(s,i),C.isValidElement(p))return p}else p=CH(i);var m=DH(a),v=le(i,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return MH(i,p,v);var w=m?NH(i):IH(i);return _.createElement(ks,au({className:pe("recharts-label",c)},v,w,{breakAll:d}),p)}at.displayName="Label";var B_=function(t){var n=t.cx,r=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,l=t.radius,s=t.innerRadius,f=t.outerRadius,c=t.x,d=t.y,p=t.top,m=t.left,v=t.width,w=t.height,g=t.clockWise,h=t.labelViewBox;if(h)return h;if(H(v)&&H(w)){if(H(c)&&H(d))return{x:c,y:d,width:v,height:w};if(H(p)&&H(m))return{x:p,y:m,width:v,height:w}}return H(c)&&H(d)?{x:c,y:d,width:0,height:0}:H(n)&&H(r)?{cx:n,cy:r,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||l||u||0,clockWise:g}:t.viewBox?t.viewBox:{}},RH=function(t,n){return t?t===!0?_.createElement(at,{key:"label-implicit",viewBox:n}):ze(t)?_.createElement(at,{key:"label-implicit",viewBox:n,value:t}):C.isValidElement(t)?t.type===at?C.cloneElement(t,{key:"label-implicit",viewBox:n}):_.createElement(at,{key:"label-implicit",content:t,viewBox:n}):te(t)?_.createElement(at,{key:"label-implicit",content:t,viewBox:n}):xa(t)?_.createElement(at,au({viewBox:n},t,{key:"label-implicit"})):null:null},LH=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 i=t.children,a=B_(t),o=ln(i,at).map(function(l,s){return C.cloneElement(l,{viewBox:n||a,key:"label-".concat(s)})});if(!r)return o;var u=RH(t.label,n||a);return[u].concat(xH(o))};at.parseViewBox=B_;at.renderCallByParent=LH;function BH(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var FH=BH;const zH=me(FH);function ou(e){"@babel/helpers - typeof";return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ou(e)}var UH=["valueAccessor"],WH=["data","dataKey","clockWise","id","textBreakAll"];function HH(e){return GH(e)||KH(e)||qH(e)||VH()}function VH(){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 qH(e,t){if(e){if(typeof e=="string")return vp(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 vp(e,t)}}function KH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GH(e){if(Array.isArray(e))return vp(e)}function vp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function JH(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var ZH=function(t){return Array.isArray(t.value)?zH(t.value):t.value};function Qr(e){var t=e.valueAccessor,n=t===void 0?ZH:t,r=ib(e,UH),i=r.data,a=r.dataKey,o=r.clockWise,u=r.id,l=r.textBreakAll,s=ib(r,WH);return!i||!i.length?null:_.createElement(qe,{className:"recharts-label-list"},i.map(function(f,c){var d=ce(a)?n(f,c):On(f&&f.payload,a),p=ce(u)?{}:{id:"".concat(u,"-").concat(c)};return _.createElement(at,Vs({},le(f,!0),s,p,{parentViewBox:f.parentViewBox,value:d,textBreakAll:l,viewBox:at.parseViewBox(ce(o)?f:rb(rb({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}Qr.displayName="LabelList";function e9(e,t){return e?e===!0?_.createElement(Qr,{key:"labelList-implicit",data:t}):_.isValidElement(e)||te(e)?_.createElement(Qr,{key:"labelList-implicit",data:t,content:e}):xa(e)?_.createElement(Qr,Vs({data:t},e,{key:"labelList-implicit"})):null:null}function t9(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,i=ln(r,Qr).map(function(o,u){return C.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!n)return i;var a=e9(e.label,t);return[a].concat(HH(i))}Qr.renderCallByParent=t9;function uu(e){"@babel/helpers - typeof";return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uu(e)}function mp(){return mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(o>s),`, + `).concat(c.x,",").concat(c.y,` + `);if(i>0){var p=Je(n,r,i,o),m=Je(n,r,i,s);d+="L ".concat(m.x,",").concat(m.y,` + A `).concat(i,",").concat(i,`,0, + `).concat(+(Math.abs(l)>180),",").concat(+(o<=s),`, + `).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(n,",").concat(r," Z");return d},o9=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,l=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,c=an(f-s),d=gl({cx:n,cy:r,radius:a,angle:s,sign:c,cornerRadius:o,cornerIsExternal:l}),p=d.circleTangency,m=d.lineTangency,v=d.theta,w=gl({cx:n,cy:r,radius:a,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:l}),g=w.circleTangency,h=w.lineTangency,y=w.theta,b=l?Math.abs(s-f):Math.abs(s-f)-v-y;if(b<0)return u?"M ".concat(m.x,",").concat(m.y,` + a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 + a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 + `):F_({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var x="M ".concat(m.x,",").concat(m.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,` + A`).concat(a,",").concat(a,",0,").concat(+(b>180),",").concat(+(c<0),",").concat(g.x,",").concat(g.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(h.x,",").concat(h.y,` + `);if(i>0){var S=gl({cx:n,cy:r,radius:i,angle:s,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),O=S.circleTangency,P=S.lineTangency,A=S.theta,E=gl({cx:n,cy:r,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),T=E.circleTangency,k=E.lineTangency,N=E.theta,j=l?Math.abs(s-f):Math.abs(s-f)-A-N;if(j<0&&o===0)return"".concat(x,"L").concat(n,",").concat(r,"Z");x+="L".concat(k.x,",").concat(k.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(T.x,",").concat(T.y,` + A`).concat(i,",").concat(i,",0,").concat(+(j>180),",").concat(+(c>0),",").concat(O.x,",").concat(O.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(P.x,",").concat(P.y,"Z")}else x+="L".concat(n,",").concat(r,"Z");return x},u9={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},z_=function(t){var n=ob(ob({},u9),t),r=n.cx,i=n.cy,a=n.innerRadius,o=n.outerRadius,u=n.cornerRadius,l=n.forceCornerRadius,s=n.cornerIsExternal,f=n.startAngle,c=n.endAngle,d=n.className;if(o0&&Math.abs(f-c)<360?w=o9({cx:r,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,m/2),forceCornerRadius:l,cornerIsExternal:s,startAngle:f,endAngle:c}):w=F_({cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:c}),_.createElement("path",mp({},le(n,!0),{className:p,d:w,role:"img"}))};function lu(e){"@babel/helpers - typeof";return lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lu(e)}function yp(){return yp=Object.assign?Object.assign.bind():function(e){for(var t=1;t0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function S9(e,t){return Ca(e.getTime(),t.getTime())}function vb(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.entries(),a=0,o,u;(o=i.next())&&!o.done;){for(var l=t.entries(),s=!1,f=0;(u=l.next())&&!u.done;){var c=o.value,d=c[0],p=c[1],m=u.value,v=m[0],w=m[1];!s&&!r[f]&&(s=n.equals(d,v,a,f,e,t,n)&&n.equals(p,w,d,v,e,t,n))&&(r[f]=!0),f++}if(!s)return!1;a++}return!0}function O9(e,t,n){var r=pb(e),i=r.length;if(pb(t).length!==i)return!1;for(var a;i-- >0;)if(a=r[i],a===q_&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!V_(t,a)||!n.equals(e[a],t[a],a,a,e,t,n))return!1;return!0}function Xa(e,t,n){var r=db(e),i=r.length;if(db(t).length!==i)return!1;for(var a,o,u;i-- >0;)if(a=r[i],a===q_&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!V_(t,a)||!n.equals(e[a],t[a],a,a,e,t,n)||(o=hb(e,a),u=hb(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function P9(e,t){return Ca(e.valueOf(),t.valueOf())}function _9(e,t){return e.source===t.source&&e.flags===t.flags}function mb(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.values(),a,o;(a=i.next())&&!a.done;){for(var u=t.values(),l=!1,s=0;(o=u.next())&&!o.done;)!l&&!r[s]&&(l=n.equals(a.value,o.value,a.value,o.value,e,t,n))&&(r[s]=!0),s++;if(!l)return!1}return!0}function E9(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var A9="[object Arguments]",T9="[object Boolean]",$9="[object Date]",k9="[object Map]",C9="[object Number]",j9="[object Object]",M9="[object RegExp]",N9="[object Set]",I9="[object String]",D9=Array.isArray,yb=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,gb=Object.assign,R9=Object.prototype.toString.call.bind(Object.prototype.toString);function L9(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,u=e.areSetsEqual,l=e.areTypedArraysEqual;return function(f,c,d){if(f===c)return!0;if(f==null||c==null||typeof f!="object"||typeof c!="object")return f!==f&&c!==c;var p=f.constructor;if(p!==c.constructor)return!1;if(p===Object)return i(f,c,d);if(D9(f))return t(f,c,d);if(yb!=null&&yb(f))return l(f,c,d);if(p===Date)return n(f,c,d);if(p===RegExp)return o(f,c,d);if(p===Map)return r(f,c,d);if(p===Set)return u(f,c,d);var m=R9(f);return m===$9?n(f,c,d):m===M9?o(f,c,d):m===k9?r(f,c,d):m===N9?u(f,c,d):m===j9?typeof f.then!="function"&&typeof c.then!="function"&&i(f,c,d):m===A9?i(f,c,d):m===T9||m===C9||m===I9?a(f,c,d):!1}}function B9(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Xa:x9,areDatesEqual:S9,areMapsEqual:r?fb(vb,Xa):vb,areObjectsEqual:r?Xa:O9,arePrimitiveWrappersEqual:P9,areRegExpsEqual:_9,areSetsEqual:r?fb(mb,Xa):mb,areTypedArraysEqual:r?Xa:E9};if(n&&(i=gb({},i,n(i))),t){var a=wl(i.areArraysEqual),o=wl(i.areMapsEqual),u=wl(i.areObjectsEqual),l=wl(i.areSetsEqual);i=gb({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:l})}return i}function F9(e){return function(t,n,r,i,a,o,u){return e(t,n,u)}}function z9(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,a=e.strict;if(r)return function(l,s){var f=r(),c=f.cache,d=c===void 0?t?new WeakMap:void 0:c,p=f.meta;return n(l,s,{cache:d,equals:i,meta:p,strict:a})};if(t)return function(l,s){return n(l,s,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(l,s){return n(l,s,o)}}var U9=$r();$r({strict:!0});$r({circular:!0});$r({circular:!0,strict:!0});$r({createInternalComparator:function(){return Ca}});$r({strict:!0,createInternalComparator:function(){return Ca}});$r({circular:!0,createInternalComparator:function(){return Ca}});$r({circular:!0,createInternalComparator:function(){return Ca},strict:!0});function $r(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,u=B9(e),l=L9(u),s=r?r(l):F9(l);return z9({circular:n,comparator:l,createState:i,equals:s,strict:o})}function W9(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function bb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(a){n<0&&(n=a),a-n>t?(e(a),n=-1):W9(i)};requestAnimationFrame(r)}function gp(e){"@babel/helpers - typeof";return gp=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},gp(e)}function H9(e){return G9(e)||K9(e)||q9(e)||V9()}function V9(){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 q9(e,t){if(e){if(typeof e=="string")return wb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wb(e,t)}}function wb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?1:g<0?0:g},v=function(g){for(var h=g>1?1:g,y=h,b=0;b<8;++b){var x=c(y)-h,S=p(y);if(Math.abs(x-h)0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,l=function(f,c,d){var p=-(f-c)*r,m=d*a,v=d+(p-m)*u/1e3,w=d*u/1e3+f;return Math.abs(w-c)e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _7(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function bd(e){return $7(e)||T7(e)||A7(e)||E7()}function E7(){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 A7(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 T7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $7(e){if(Array.isArray(e))return Op(e)}function Op(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Gs(e){return Gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gs(e)}var xr=function(e){M7(n,e);var t=N7(n);function n(r,i){var a;k7(this,n),a=t.call(this,r,i);var o=a.props,u=o.isActive,l=o.attributeName,s=o.from,f=o.to,c=o.steps,d=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Ep(a)),a.changeStyle=a.changeStyle.bind(Ep(a)),!u||p<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),_p(a);if(c&&c.length)a.state={style:c[0].style};else if(s){if(typeof d=="function")return a.state={style:s},_p(a);a.state={style:l?io({},l,s):s}}else a.state={style:{}};return a}return C7(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,l=a.attributeName,s=a.shouldReAnimate,f=a.to,c=a.from,d=this.state.style;if(u){if(!o){var p={style:l?io({},l,f):f};this.state&&d&&(l&&d[l]!==f||!l&&d!==f)&&this.setState(p);return}if(!(U9(i.to,f)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=m||s?c:i.to;if(this.state&&d){var w={style:l?io({},l,v):v};(l&&[l]!==v||!l&&d!==v)&&this.setState(w)}this.runAnimation(Jt(Jt({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,l=i.duration,s=i.easing,f=i.begin,c=i.onAnimationEnd,d=i.onAnimationStart,p=S7(o,u,f7(s),l,this.changeStyle),m=function(){a.stopJSAnimation=p()};this.manager.start([d,f,m,l,c])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,l=i.onAnimationStart,s=o[0],f=s.style,c=s.duration,d=c===void 0?0:c,p=function(v,w,g){if(g===0)return v;var h=w.duration,y=w.easing,b=y===void 0?"ease":y,x=w.style,S=w.properties,O=w.onAnimationEnd,P=g>0?o[g-1]:w,A=S||Object.keys(x);if(typeof b=="function"||b==="spring")return[].concat(bd(v),[a.runJSAnimation.bind(a,{from:P.style,to:x,duration:h,easing:b}),h]);var E=Ob(A,h,b),T=Jt(Jt(Jt({},P.style),x),{},{transition:E});return[].concat(bd(v),[T,h,O]).filter(Z9)};return this.manager.start([l].concat(bd(o.reduce(p,[f,Math.max(d,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Y9());var a=i.begin,o=i.duration,u=i.attributeName,l=i.to,s=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,d=i.steps,p=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof s=="function"||typeof p=="function"||s==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=u?io({},u,l):l,w=Ob(Object.keys(v),o,s);m.start([f,a,Jt(Jt({},v),{},{transition:w}),o,c])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=P7(i,O7),s=C.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||s===0||o<=0)return a;var c=function(p){var m=p.props,v=m.style,w=v===void 0?{}:v,g=m.className,h=C.cloneElement(p,Jt(Jt({},l),{},{style:Jt(Jt({},w),f),className:g}));return h};return s===1?c(C.Children.only(a)):_.createElement("div",null,C.Children.map(a,function(d){return c(d)}))}}]),n}(C.PureComponent);xr.displayName="Animate";xr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};xr.propTypes={from:J.oneOfType([J.object,J.string]),to:J.oneOfType([J.object,J.string]),attributeName:J.string,duration:J.number,begin:J.number,easing:J.oneOfType([J.string,J.func]),steps:J.arrayOf(J.shape({duration:J.number.isRequired,style:J.object.isRequired,easing:J.oneOfType([J.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),J.func]),properties:J.arrayOf("string"),onAnimationEnd:J.func})),children:J.oneOfType([J.node,J.func]),isActive:J.bool,canBegin:J.bool,onAnimationEnd:J.func,shouldReAnimate:J.bool,onAnimationStart:J.func,onAnimationReStart:J.func};J.object,J.object,J.object,J.element;J.object,J.object,J.object,J.oneOfType([J.array,J.element]),J.any;function fu(e){"@babel/helpers - typeof";return fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fu(e)}function Ys(){return Ys=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0?1:-1,l=r>=0?1:-1,s=i>=0&&r>=0||i<0&&r<0?1:0,f;if(o>0&&a instanceof Array){for(var c=[0,0,0,0],d=0,p=4;do?o:a[d];f="M".concat(t,",").concat(n+u*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(s,",").concat(t+l*c[0],",").concat(n)),f+="L ".concat(t+r-l*c[1],",").concat(n),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(s,`, + `).concat(t+r,",").concat(n+u*c[1])),f+="L ".concat(t+r,",").concat(n+i-u*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(s,`, + `).concat(t+r-l*c[2],",").concat(n+i)),f+="L ".concat(t+l*c[3],",").concat(n+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(s,`, + `).concat(t,",").concat(n+i-u*c[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var m=Math.min(o,a);f="M ".concat(t,",").concat(n+u*m,` + A `).concat(m,",").concat(m,",0,0,").concat(s,",").concat(t+l*m,",").concat(n,` + L `).concat(t+r-l*m,",").concat(n,` + A `).concat(m,",").concat(m,",0,0,").concat(s,",").concat(t+r,",").concat(n+u*m,` + L `).concat(t+r,",").concat(n+i-u*m,` + A `).concat(m,",").concat(m,",0,0,").concat(s,",").concat(t+r-l*m,",").concat(n+i,` + L `).concat(t+l*m,",").concat(n+i,` + A `).concat(m,",").concat(m,",0,0,").concat(s,",").concat(t,",").concat(n+i-u*m," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return f},H7=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,a=n.x,o=n.y,u=n.width,l=n.height;if(Math.abs(u)>0&&Math.abs(l)>0){var s=Math.min(a,a+u),f=Math.max(a,a+u),c=Math.min(o,o+l),d=Math.max(o,o+l);return r>=s&&r<=f&&i>=c&&i<=d}return!1},V7={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Hm=function(t){var n=jb(jb({},V7),t),r=C.useRef(),i=C.useState(-1),a=D7(i,2),o=a[0],u=a[1];C.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var b=r.current.getTotalLength();b&&u(b)}catch{}},[]);var l=n.x,s=n.y,f=n.width,c=n.height,d=n.radius,p=n.className,m=n.animationEasing,v=n.animationDuration,w=n.animationBegin,g=n.isAnimationActive,h=n.isUpdateAnimationActive;if(l!==+l||s!==+s||f!==+f||c!==+c||f===0||c===0)return null;var y=pe("recharts-rectangle",p);return h?_.createElement(xr,{canBegin:o>0,from:{width:f,height:c,x:l,y:s},to:{width:f,height:c,x:l,y:s},duration:v,animationEasing:m,isActive:h},function(b){var x=b.width,S=b.height,O=b.x,P=b.y;return _.createElement(xr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:v,isActive:g,easing:m},_.createElement("path",Ys({},le(n,!0),{className:y,d:Mb(O,P,x,S,d),ref:r})))}):_.createElement("path",Ys({},le(n,!0),{className:y,d:Mb(l,s,f,c,d)}))};function Ap(){return Ap=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function J7(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var Z7=function(t,n,r,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(n,"h").concat(r)},eV=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,l=t.left,s=l===void 0?0:l,f=t.width,c=f===void 0?0:f,d=t.height,p=d===void 0?0:d,m=t.className,v=Q7(t,q7),w=K7({x:r,y:a,top:u,left:s,width:c,height:p},v);return!H(r)||!H(a)||!H(c)||!H(p)||!H(u)||!H(s)?null:_.createElement("path",Tp({},le(w,!0),{className:pe("recharts-cross",m),d:Z7(r,a,c,p,u,s)}))},tV=hP,nV=tV(Object.getPrototypeOf,Object),rV=nV,iV=Gn,aV=rV,oV=Yn,uV="[object Object]",lV=Function.prototype,sV=Object.prototype,eE=lV.toString,cV=sV.hasOwnProperty,fV=eE.call(Object);function dV(e){if(!oV(e)||iV(e)!=uV)return!1;var t=aV(e);if(t===null)return!0;var n=cV.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&eE.call(n)==fV}var hV=dV;const pV=me(hV);var vV=Gn,mV=Yn,yV="[object Boolean]";function gV(e){return e===!0||e===!1||mV(e)&&vV(e)==yV}var bV=gV;const wV=me(bV);function hu(e){"@babel/helpers - typeof";return hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hu(e)}function Xs(){return Xs=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:s},to:{upperWidth:f,lowerWidth:c,height:d,x:l,y:s},duration:v,animationEasing:m,isActive:g},function(y){var b=y.upperWidth,x=y.lowerWidth,S=y.height,O=y.x,P=y.y;return _.createElement(xr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:v,easing:m},_.createElement("path",Xs({},le(n,!0),{className:h,d:Lb(O,P,b,x,S),ref:r})))}):_.createElement("g",null,_.createElement("path",Xs({},le(n,!0),{className:h,d:Lb(l,s,f,c,d)})))},CV=["option","shapeType","propTransformer","activeClassName","isActive"];function pu(e){"@babel/helpers - typeof";return pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pu(e)}function jV(e,t){if(e==null)return{};var n=MV(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MV(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function Bb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qs(e){for(var t=1;t0&&r.handleDrag(i.changedTouches[0])}),_t(hn(r),"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),r.detachDragEndListener()}),_t(hn(r),"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),_t(hn(r),"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),_t(hn(r),"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),_t(hn(r),"handleSlideDragStart",function(i){var a=qb(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(hn(r),"startX"),endX:r.handleTravellerDragStart.bind(hn(r),"endX")},r.state={},r}return hq(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,a=r.endX,o=this.state.scaleValues,u=this.props,l=u.gap,s=u.data,f=s.length-1,c=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,c),m=t.getIndexInRange(o,d);return{startIndex:p-p%l,endIndex:m===f?f:m-m%l}}},{key:"getTextOfTick",value:function(r){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,l=On(a[r],u,r);return te(o)?o(l,r):l}},{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 i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,l=this.props,s=l.x,f=l.width,c=l.travellerWidth,d=l.startIndex,p=l.endIndex,m=l.onChange,v=r.pageX-a;v>0?v=Math.min(v,s+f-c-u,s+f-c-o):v<0&&(v=Math.max(v,s-o,s-u));var w=this.getIndex({startX:o+v,endX:u+v});(w.startIndex!==d||w.endIndex!==p)&&m&&m(w),this.setState({startX:o+v,endX:u+v,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var a=qb(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,l=i.startX,s=this.state[o],f=this.props,c=f.x,d=f.width,p=f.travellerWidth,m=f.onChange,v=f.gap,w=f.data,g={startX:this.state.startX,endX:this.state.endX},h=r.pageX-a;h>0?h=Math.min(h,c+d-p-s):h<0&&(h=Math.max(h,c-s)),g[o]=s+h;var y=this.getIndex(g),b=y.startIndex,x=y.endIndex,S=function(){var P=w.length-1;return o==="startX"&&(u>l?b%v===0:x%v===0)||ul?x%v===0:b%v===0)||u>l&&x===P};this.setState(_t(_t({},o,s+h),"brushMoveStartX",r.pageX),function(){m&&S()&&m(y)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var a=this,o=this.state,u=o.scaleValues,l=o.startX,s=o.endX,f=this.state[i],c=u.indexOf(f);if(c!==-1){var d=c+r;if(!(d===-1||d>=u.length)){var p=u[d];i==="startX"&&p>=s||i==="endX"&&p<=l||this.setState(_t({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,u=r.height,l=r.fill,s=r.stroke;return _.createElement("rect",{stroke:s,fill:l,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,u=r.height,l=r.data,s=r.children,f=r.padding,c=C.Children.only(s);return c?_.cloneElement(c,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(r,i){var a=this,o=this.props,u=o.y,l=o.travellerWidth,s=o.height,f=o.traveller,c=o.ariaLabel,d=o.data,p=o.startIndex,m=o.endIndex,v=Math.max(r,this.props.x),w=xd(xd({},le(this.props,!1)),{},{x:v,y:u,width:l,height:s}),g=c||"Min value: ".concat(d[p].name,", Max value: ").concat(d[m].name);return _.createElement(qe,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(y){["ArrowLeft","ArrowRight"].includes(y.key)&&(y.preventDefault(),y.stopPropagation(),a.handleTravellerMoveKeyboard(y.key==="ArrowRight"?1:-1,i))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(f,w))}},{key:"renderSlide",value:function(r,i){var a=this.props,o=a.y,u=a.height,l=a.stroke,s=a.travellerWidth,f=Math.min(r,i)+s,c=Math.max(Math.abs(i-r)-s,0);return _.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:f,y:o,width:c,height:u})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,a=r.endIndex,o=r.y,u=r.height,l=r.travellerWidth,s=r.stroke,f=this.state,c=f.startX,d=f.endX,p=5,m={pointerEvents:"none",fill:s};return _.createElement(qe,{className:"recharts-brush-texts"},_.createElement(ks,Zs({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-p,y:o+u/2},m),this.getTextOfTick(i)),_.createElement(ks,Zs({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+l+p,y:o+u/2},m),this.getTextOfTick(a)))}},{key:"render",value:function(){var r=this.props,i=r.data,a=r.className,o=r.children,u=r.x,l=r.y,s=r.width,f=r.height,c=r.alwaysShowText,d=this.state,p=d.startX,m=d.endX,v=d.isTextActive,w=d.isSlideMoving,g=d.isTravellerMoving,h=d.isTravellerFocused;if(!i||!i.length||!H(u)||!H(l)||!H(s)||!H(f)||s<=0||f<=0)return null;var y=pe("recharts-brush",a),b=_.Children.count(o)===1,x=fq("userSelect","none");return _.createElement(qe,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),b&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(v||w||g||h||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,a=r.y,o=r.width,u=r.height,l=r.stroke,s=Math.floor(a+u/2)-1;return _.createElement(_.Fragment,null,_.createElement("rect",{x:i,y:a,width:o,height:u,fill:l,stroke:"none"}),_.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),_.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var a;return _.isValidElement(r)?a=_.cloneElement(r,i):te(r)?a=r(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(r,i){var a=r.data,o=r.width,u=r.x,l=r.travellerWidth,s=r.updateId,f=r.startIndex,c=r.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return xd({prevData:a,prevTravellerWidth:l,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?gq({data:a,width:o,x:u,travellerWidth:l,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([u,u+o-l]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:s,prevX:u,prevWidth:o,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(r,i){for(var a=r.length,o=0,u=a-1;u-o>1;){var l=Math.floor((o+u)/2);r[l]>i?u=l:o=l}return i>=r[u]?u:o}}]),t}(C.PureComponent);_t(ca,"displayName","Brush");_t(ca,"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 bq=vm;function wq(e,t){var n;return bq(e,function(r,i,a){return n=t(r,i,a),!n}),!!n}var xq=wq,Sq=aP,Oq=Er,Pq=xq,_q=Ot,Eq=Zc;function Aq(e,t,n){var r=_q(e)?Sq:Pq;return n&&Eq(e,t,n)&&(t=void 0),r(e,Oq(t))}var Tq=Aq;const $q=me(Tq);var xn=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},Kb=TP;function kq(e,t,n){t=="__proto__"&&Kb?Kb(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Cq=kq,jq=Cq,Mq=EP,Nq=Er;function Iq(e,t){var n={};return t=Nq(t),Mq(e,function(r,i,a){jq(n,i,t(r,i,a))}),n}var Dq=Iq;const Rq=me(Dq);function Lq(e,t){for(var n=-1,r=e==null?0:e.length;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tK(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function nK(e,t){var n=e.x,r=e.y,i=eK(e,Xq),a="".concat(n),o=parseInt(a,10),u="".concat(r),l=parseInt(u,10),s="".concat(t.height||i.height),f=parseInt(s,10),c="".concat(t.width||i.width),d=parseInt(c,10);return Qa(Qa(Qa(Qa(Qa({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function Yb(e){return _.createElement(FV,kp({shapeType:"rectangle",propTransformer:nK,activeClassName:"recharts-active-bar"},e))}var rK=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var a=typeof r=="number";return a?t(r,i):(a||ii(!1),n)}},iK=["value","background"],oE;function fa(e){"@babel/helpers - typeof";return fa=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},fa(e)}function aK(e,t){if(e==null)return{};var n=oK(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oK(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function tc(){return tc=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(j)0&&Math.abs(N)0&&(N=Math.min((Oe||0)-(j[Me-1]||0),N))});var F=N/k,R=v.layout==="vertical"?r.height:r.width;if(v.padding==="gap"&&(O=F*R/2),v.padding==="no-gap"){var z=Ji(t.barCategoryGap,F*R),$=F*R/2;O=$-z-($-z)/R*z}}i==="xAxis"?P=[r.left+(y.left||0)+(O||0),r.left+r.width-(y.right||0)-(O||0)]:i==="yAxis"?P=l==="horizontal"?[r.top+r.height-(y.bottom||0),r.top+(y.top||0)]:[r.top+(y.top||0)+(O||0),r.top+r.height-(y.bottom||0)-(O||0)]:P=v.range,x&&(P=[P[1],P[0]]);var D=Z6(v,a,d),U=D.scale,Y=D.realScaleType;U.domain(g).range(P),eH(U);var V=lH(U,tn(tn({},v),{},{realScaleType:Y}));i==="xAxis"?(T=w==="top"&&!b||w==="bottom"&&b,A=r.left,E=c[S]-T*v.height):i==="yAxis"&&(T=w==="left"&&!b||w==="right"&&b,A=c[S]-T*v.width,E=r.top);var Z=tn(tn(tn({},v),V),{},{realScaleType:Y,x:A,y:E,scale:U,width:i==="xAxis"?r.width:v.width,height:i==="yAxis"?r.height:v.height});return Z.bandSize=Ws(Z,V),!v.hide&&i==="xAxis"?c[S]+=(T?-1:1)*Z.height:v.hide||(c[S]+=(T?-1:1)*Z.width),tn(tn({},p),{},pf({},m,Z))},{})},cE=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return{x:Math.min(r,a),y:Math.min(i,o),width:Math.abs(a-r),height:Math.abs(o-i)}},yK=function(t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2;return cE({x:n,y:r},{x:i,y:a})},fE=function(){function e(t){hK(this,e),this.scale=t}return pK(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]:{},i=r.bandAware,a=r.position;if(n!==void 0){if(a)switch(a){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(n)+u}default:return this.scale(n)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],a=r[r.length-1];return i<=a?n>=i&&n<=a:n>=a&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}]),e}();pf(fE,"EPS",1e-4);var Vm=function(t){var n=Object.keys(t).reduce(function(r,i){return tn(tn({},r),{},pf({},i,fE.create(t[i])))},{});return tn(tn({},n),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return Rq(i,function(l,s){return n[s].apply(l,{bandAware:o,position:u})})},isInRange:function(i){return aE(i,function(a,o){return n[o].isInRange(a)})}})};function gK(e){return(e%180+180)%180}var bK=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=gK(i),o=a*Math.PI/180,u=Math.atan(r/n),l=o>u&&o-1?i[a?t[o]:o]:void 0}}var PK=OK,_K=tE;function EK(e){var t=_K(e),n=t%1;return t===t?n?t-n:t:0}var AK=EK,TK=bP,$K=Er,kK=AK,CK=Math.max;function jK(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:kK(n);return i<0&&(i=CK(r+i,0)),TK(e,$K(t),i)}var MK=jK,NK=PK,IK=MK,DK=NK(IK),RK=DK;const LK=me(RK);var BK=YM(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("")}),qm=C.createContext(void 0),Km=C.createContext(void 0),dE=C.createContext(void 0),hE=C.createContext({}),pE=C.createContext(void 0),vE=C.createContext(0),mE=C.createContext(0),ew=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,a=n.offset,o=t.clipPathId,u=t.children,l=t.width,s=t.height,f=BK(a);return _.createElement(qm.Provider,{value:r},_.createElement(Km.Provider,{value:i},_.createElement(hE.Provider,{value:a},_.createElement(dE.Provider,{value:f},_.createElement(pE.Provider,{value:o},_.createElement(vE.Provider,{value:s},_.createElement(mE.Provider,{value:l},u)))))))},FK=function(){return C.useContext(pE)},yE=function(t){var n=C.useContext(qm);n==null&&ii(!1);var r=n[t];return r==null&&ii(!1),r},zK=function(){var t=C.useContext(qm);return ar(t)},UK=function(){var t=C.useContext(Km),n=LK(t,function(r){return aE(r.domain,Number.isFinite)});return n||ar(t)},gE=function(t){var n=C.useContext(Km);n==null&&ii(!1);var r=n[t];return r==null&&ii(!1),r},WK=function(){var t=C.useContext(dE);return t},HK=function(){return C.useContext(hE)},Gm=function(){return C.useContext(mE)},Ym=function(){return C.useContext(vE)};function bu(e){"@babel/helpers - typeof";return bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bu(e)}function tw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nw(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function fG(e,t){return bE(e,t+1)}function dG(e,t,n,r,i){for(var a=(r||[]).slice(),o=t.start,u=t.end,l=0,s=1,f=o,c=function(){var m=r==null?void 0:r[l];if(m===void 0)return{v:bE(r,s)};var v=l,w,g=function(){return w===void 0&&(w=n(m,v)),w},h=m.coordinate,y=l===0||rc(e,h,g,f,u);y||(l=0,f=o,s+=1),y&&(f=h+e*(g()/2+i),l+=s)},d;s<=a.length;)if(d=c(),d)return d.v;return[]}function Su(e){"@babel/helpers - typeof";return Su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Su(e)}function lw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t0?p.coordinate-w*e:p.coordinate})}else a[d]=p=rt(rt({},p),{},{tickCoord:p.coordinate});var g=rc(e,p.tickCoord,v,u,l);g&&(l=p.tickCoord-e*(v()/2+i),a[d]=rt(rt({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function yG(e,t,n,r,i,a){var o=(r||[]).slice(),u=o.length,l=t.start,s=t.end;if(a){var f=r[u-1],c=n(f,u-1),d=e*(f.coordinate+e*c/2-s);o[u-1]=f=rt(rt({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var p=rc(e,f.tickCoord,function(){return c},l,s);p&&(s=f.tickCoord-e*(c/2+i),o[u-1]=rt(rt({},f),{},{isShow:!0}))}for(var m=a?u-1:u,v=function(h){var y=o[h],b,x=function(){return b===void 0&&(b=n(y,h)),b};if(h===0){var S=e*(y.coordinate-e*x()/2-l);o[h]=y=rt(rt({},y),{},{tickCoord:S<0?y.coordinate-S*e:y.coordinate})}else o[h]=y=rt(rt({},y),{},{tickCoord:y.coordinate});var O=rc(e,y.tickCoord,x,l,s);O&&(l=y.tickCoord+e*(x()/2+i),o[h]=rt(rt({},y),{},{isShow:!0}))},w=0;w=2?an(i[1].coordinate-i[0].coordinate):1,g=cG(a,w,p);return l==="equidistantPreserveStart"?dG(w,g,v,i,o):(l==="preserveStart"||l==="preserveStartEnd"?d=yG(w,g,v,i,o,l==="preserveStartEnd"):d=mG(w,g,v,i,o),d.filter(function(h){return h.isShow}))}var gG=["viewBox"],bG=["viewBox"],wG=["ticks"];function da(e){"@babel/helpers - typeof";return da=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},da(e)}function Ni(){return Ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xG(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function SG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cw(e,t){for(var n=0;n0?l(this.props):l(p)),o<=0||u<=0||!m||!m.length?null:_.createElement(qe,{className:pe("recharts-cartesian-axis",s),ref:function(w){r.layerReference=w}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),at.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,a){var o;return _.isValidElement(r)?o=_.cloneElement(r,i):te(r)?o=r(i):o=_.createElement(ks,Ni({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}]),t}(C.Component);Jm(ja,"displayName","CartesianAxis");Jm(ja,"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 $G=["x1","y1","x2","y2","key"],kG=["offset"];function ai(e){"@babel/helpers - typeof";return ai=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},ai(e)}function fw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ot(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function NG(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var IG=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height;return _.createElement("rect",{x:i,y:a,width:o,height:u,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function SE(e,t){var n;if(_.isValidElement(e))n=_.cloneElement(e,t);else if(te(e))n=e(t);else{var r=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,l=dw(t,$G),s=le(l,!1);s.offset;var f=dw(s,kG);n=_.createElement("line",qr({},f,{x1:r,y1:i,x2:a,y2:o,fill:"none",key:u}))}return n}function DG(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,l){var s=ot(ot({},e),{},{x1:t,y1:u,x2:t+n,y2:u,key:"line-".concat(l),index:l});return SE(i,s)});return _.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function RG(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,l){var s=ot(ot({},e),{},{x1:u,y1:t,x2:u,y2:t+n,key:"line-".concat(l),index:l});return SE(i,s)});return _.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function LG(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,l=e.horizontal,s=l===void 0?!0:l;if(!s||!t||!t.length)return null;var f=u.map(function(d){return Math.round(d+i-i)}).sort(function(d,p){return d-p});i!==f[0]&&f.unshift(0);var c=f.map(function(d,p){var m=!f[p+1],v=m?i+o-d:f[p+1]-d;if(v<=0)return null;var w=p%t.length;return _.createElement("rect",{key:"react-".concat(p),y:d,x:r,height:v,width:a,stroke:"none",fill:t[w],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function BG(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,l=e.height,s=e.verticalPoints;if(!n||!r||!r.length)return null;var f=s.map(function(d){return Math.round(d+a-a)}).sort(function(d,p){return d-p});a!==f[0]&&f.unshift(0);var c=f.map(function(d,p){var m=!f[p+1],v=m?a+u-d:f[p+1]-d;if(v<=0)return null;var w=p%r.length;return _.createElement("rect",{key:"react-".concat(p),x:d,y:o,width:v,height:l,stroke:"none",fill:r[w],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var FG=function(t,n){var r=t.xAxis,i=t.width,a=t.height,o=t.offset;return D_(Qm(ot(ot(ot({},ja.defaultProps),r),{},{ticks:Nn(r,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,n)},zG=function(t,n){var r=t.yAxis,i=t.width,a=t.height,o=t.offset;return D_(Qm(ot(ot(ot({},ja.defaultProps),r),{},{ticks:Nn(r,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,n)},bi={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function OE(e){var t,n,r,i,a,o,u=Gm(),l=Ym(),s=HK(),f=ot(ot({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:bi.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:bi.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:bi.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:bi.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:bi.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:bi.verticalFill,x:H(e.x)?e.x:s.left,y:H(e.y)?e.y:s.top,width:H(e.width)?e.width:s.width,height:H(e.height)?e.height:s.height}),c=f.x,d=f.y,p=f.width,m=f.height,v=f.syncWithTicks,w=f.horizontalValues,g=f.verticalValues,h=zK(),y=UK();if(!H(p)||p<=0||!H(m)||m<=0||!H(c)||c!==+c||!H(d)||d!==+d)return null;var b=f.verticalCoordinatesGenerator||FG,x=f.horizontalCoordinatesGenerator||zG,S=f.horizontalPoints,O=f.verticalPoints;if((!S||!S.length)&&te(x)){var P=w&&w.length,A=x({yAxis:y?ot(ot({},y),{},{ticks:P?w:y.ticks}):void 0,width:u,height:l,offset:s},P?!0:v);Ln(Array.isArray(A),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(ai(A),"]")),Array.isArray(A)&&(S=A)}if((!O||!O.length)&&te(b)){var E=g&&g.length,T=b({xAxis:h?ot(ot({},h),{},{ticks:E?g:h.ticks}):void 0,width:u,height:l,offset:s},E?!0:v);Ln(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(ai(T),"]")),Array.isArray(T)&&(O=T)}return _.createElement("g",{className:"recharts-cartesian-grid"},_.createElement(IG,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height}),_.createElement(DG,qr({},f,{offset:s,horizontalPoints:S,xAxis:h,yAxis:y})),_.createElement(RG,qr({},f,{offset:s,verticalPoints:O,xAxis:h,yAxis:y})),_.createElement(LG,qr({},f,{horizontalPoints:S})),_.createElement(BG,qr({},f,{verticalPoints:O})))}OE.displayName="CartesianGrid";function Dp(){return Dp=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cY(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function fY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gw(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?o:t&&t.length&&H(i)&&H(a)?t.slice(i,a+1):[]};function CE(e){return e==="number"?[0,"auto"]:void 0}var Up=function(t,n,r,i){var a=t.graphicalItems,o=t.tooltipAxis,u=yf(n,t);return r<0||!a||!a.length||r>=u.length?null:a.reduce(function(l,s){var f,c=(f=s.props.data)!==null&&f!==void 0?f:n;c&&t.dataStartIndex+t.dataEndIndex!==0&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=c===void 0?u:c;d=Th(p,o.dataKey,i)}else d=c&&c[r]||u[r];return d?[].concat(pa(l),[L_(s,d)]):l},[])},ww=function(t,n,r,i){var a=i||{x:t.chartX,y:t.chartY},o=SY(a,r),u=t.orderedTooltipTicks,l=t.tooltipAxis,s=t.tooltipTicks,f=K6(o,u,s,l);if(f>=0&&s){var c=s[f]&&s[f].value,d=Up(t,n,f,c),p=OY(r,u,f,a);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:p}}return null},PY=function(t,n){var r=n.axes,i=n.graphicalItems,a=n.axisType,o=n.axisIdKey,u=n.stackGroups,l=n.dataStartIndex,s=n.dataEndIndex,f=t.layout,c=t.children,d=t.stackOffset,p=I_(f,a);return r.reduce(function(m,v){var w,g=v.props,h=g.type,y=g.dataKey,b=g.allowDataOverflow,x=g.allowDuplicatedCategory,S=g.scale,O=g.ticks,P=g.includeHidden,A=v.props[o];if(m[A])return m;var E=yf(t.data,{graphicalItems:i.filter(function(V){return V.props[o]===A}),dataStartIndex:l,dataEndIndex:s}),T=E.length,k,N,j;JG(v.props.domain,b,h)&&(k=hp(v.props.domain,null,b),p&&(h==="number"||S!=="auto")&&(j=go(E,y,"category")));var F=CE(h);if(!k||k.length===0){var R,z=(R=v.props.domain)!==null&&R!==void 0?R:F;if(y){if(k=go(E,y,h),h==="category"&&p){var $=G2(k);x&&$?(N=k,k=Js(0,T)):x||(k=Q1(z,k,v).reduce(function(V,Z){return V.indexOf(Z)>=0?V:[].concat(pa(V),[Z])},[]))}else if(h==="category")x?k=k.filter(function(V){return V!==""&&!ce(V)}):k=Q1(z,k,v).reduce(function(V,Z){return V.indexOf(Z)>=0||Z===""||ce(Z)?V:[].concat(pa(V),[Z])},[]);else if(h==="number"){var D=J6(E,i.filter(function(V){return V.props[o]===A&&(P||!V.props.hide)}),y,a,f);D&&(k=D)}p&&(h==="number"||S!=="auto")&&(j=go(E,y,"category"))}else p?k=Js(0,T):u&&u[A]&&u[A].hasStack&&h==="number"?k=d==="expand"?[0,1]:R_(u[A].stackGroups,l,s):k=N_(E,i.filter(function(V){return V.props[o]===A&&(P||!V.props.hide)}),h,f,!0);if(h==="number")k=Bp(c,k,A,a,O),z&&(k=hp(z,k,b));else if(h==="category"&&z){var U=z,Y=k.every(function(V){return U.indexOf(V)>=0});Y&&(k=U)}}return I(I({},m),{},X({},A,I(I({},v.props),{},{axisType:a,domain:k,categoricalDomain:j,duplicateDomain:N,originalDomain:(w=v.props.domain)!==null&&w!==void 0?w:F,isCategorical:p,layout:f})))},{})},_Y=function(t,n){var r=n.graphicalItems,i=n.Axis,a=n.axisType,o=n.axisIdKey,u=n.stackGroups,l=n.dataStartIndex,s=n.dataEndIndex,f=t.layout,c=t.children,d=yf(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:s}),p=d.length,m=I_(f,a),v=-1;return r.reduce(function(w,g){var h=g.props[o],y=CE("number");if(!w[h]){v++;var b;return m?b=Js(0,p):u&&u[h]&&u[h].hasStack?(b=R_(u[h].stackGroups,l,s),b=Bp(c,b,h,a)):(b=hp(y,N_(d,r.filter(function(x){return x.props[o]===h&&!x.props.hide}),"number",f),i.defaultProps.allowDataOverflow),b=Bp(c,b,h,a)),I(I({},w),{},X({},h,I(I({axisType:a},i.defaultProps),{},{hide:!0,orientation:qt(wY,"".concat(a,".").concat(v%2),null),domain:b,originalDomain:y,isCategorical:m,layout:f})))}return w},{})},EY=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,a=n.AxisComp,o=n.graphicalItems,u=n.stackGroups,l=n.dataStartIndex,s=n.dataEndIndex,f=t.children,c="".concat(i,"Id"),d=ln(f,a),p={};return d&&d.length?p=PY(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:u,dataStartIndex:l,dataEndIndex:s}):o&&o.length&&(p=_Y(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:u,dataStartIndex:l,dataEndIndex:s})),p},AY=function(t){var n=ar(t),r=Nn(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:mm(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Ws(n,r)}},xw=function(t){var n=t.children,r=t.defaultShowTooltip,i=At(n,ca),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},TY=function(t){return!t||!t.length?!1:t.some(function(n){var r=Rn(n&&n.type);return r&&r.indexOf("Bar")>=0})},Sw=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"}},$Y=function(t,n){var r=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,l=u===void 0?{}:u,s=r.width,f=r.height,c=r.children,d=r.margin||{},p=At(c,ca),m=At(c,na),v=Object.keys(l).reduce(function(x,S){var O=l[S],P=O.orientation;return!O.mirror&&!O.hide?I(I({},x),{},X({},P,x[P]+O.width)):x},{left:d.left||0,right:d.right||0}),w=Object.keys(o).reduce(function(x,S){var O=o[S],P=O.orientation;return!O.mirror&&!O.hide?I(I({},x),{},X({},P,qt(x,"".concat(P))+O.height)):x},{top:d.top||0,bottom:d.bottom||0}),g=I(I({},w),v),h=g.bottom;p&&(g.bottom+=p.props.height||ca.defaultProps.height),m&&n&&(g=X6(g,i,r,n));var y=s-g.left-g.right,b=f-g.top-g.bottom;return I(I({brushBottom:h},g),{},{width:Math.max(y,0),height:Math.max(b,0)})},kY=function(t){var n,r=t.chartName,i=t.GraphicalChild,a=t.defaultTooltipEventType,o=a===void 0?"axis":a,u=t.validateTooltipEventTypes,l=u===void 0?["axis"]:u,s=t.axisComponents,f=t.legendContent,c=t.formatAxisMap,d=t.defaultProps,p=function(w,g){var h=g.graphicalItems,y=g.stackGroups,b=g.offset,x=g.updateId,S=g.dataStartIndex,O=g.dataEndIndex,P=w.barSize,A=w.layout,E=w.barGap,T=w.barCategoryGap,k=w.maxBarSize,N=Sw(A),j=N.numericAxisName,F=N.cateAxisName,R=TY(h),z=R&&G6({barSize:P,stackGroups:y}),$=[];return h.forEach(function(D,U){var Y=yf(w.data,{graphicalItems:[D],dataStartIndex:S,dataEndIndex:O}),V=D.props,Z=V.dataKey,Oe=V.maxBarSize,Me=D.props["".concat(j,"Id")],lt=D.props["".concat(F,"Id")],vt={},It=s.reduce(function(kr,Cr){var bf=g["".concat(Cr.axisType,"Map")],Zm=D.props["".concat(Cr.axisType,"Id")];bf&&bf[Zm]||Cr.axisType==="zAxis"||ii(!1);var ey=bf[Zm];return I(I({},kr),{},X(X({},Cr.axisType,ey),"".concat(Cr.axisType,"Ticks"),Nn(ey)))},vt),q=It[F],Q=It["".concat(F,"Ticks")],ee=y&&y[Me]&&y[Me].hasStack&&cH(D,y[Me].stackGroups),L=Rn(D.type).indexOf("Bar")>=0,ke=Ws(q,Q),re=[];if(L){var Re,Ne,Pt=ce(Oe)?k:Oe,En=(Re=(Ne=Ws(q,Q,!0))!==null&&Ne!==void 0?Ne:Pt)!==null&&Re!==void 0?Re:0;re=Y6({barGap:E,barCategoryGap:T,bandSize:En!==ke?En:ke,sizeList:z[lt],maxBarSize:Pt}),En!==ke&&(re=re.map(function(kr){return I(I({},kr),{},{position:I(I({},kr.position),{},{offset:kr.position.offset-En/2})})}))}var Hu=D&&D.type&&D.type.getComposedData;Hu&&$.push({props:I(I({},Hu(I(I({},It),{},{displayedData:Y,props:w,dataKey:Z,item:D,bandSize:ke,barPosition:re,offset:b,stackedData:ee,layout:A,dataStartIndex:S,dataEndIndex:O}))),{},X(X(X({key:D.key||"item-".concat(U)},j,It[j]),F,It[F]),"animationId",x)),childIndex:aN(D,w.children),item:D})}),$},m=function(w,g){var h=w.props,y=w.dataStartIndex,b=w.dataEndIndex,x=w.updateId;if(!Ug({props:h}))return null;var S=h.children,O=h.layout,P=h.stackOffset,A=h.data,E=h.reverseStackOrder,T=Sw(O),k=T.numericAxisName,N=T.cateAxisName,j=ln(S,i),F=uH(A,j,"".concat(k,"Id"),"".concat(N,"Id"),P,E),R=s.reduce(function(Y,V){var Z="".concat(V.axisType,"Map");return I(I({},Y),{},X({},Z,EY(h,I(I({},V),{},{graphicalItems:j,stackGroups:V.axisType===k&&F,dataStartIndex:y,dataEndIndex:b}))))},{}),z=$Y(I(I({},R),{},{props:h,graphicalItems:j}),g==null?void 0:g.legendBBox);Object.keys(R).forEach(function(Y){R[Y]=c(h,R[Y],z,Y.replace("Map",""),r)});var $=R["".concat(N,"Map")],D=AY($),U=p(h,I(I({},R),{},{dataStartIndex:y,dataEndIndex:b,updateId:x,graphicalItems:j,stackGroups:F,offset:z}));return I(I({formattedGraphicalItems:U,graphicalItems:j,offset:z,stackGroups:F},D),R)};return n=function(v){vY(w,v);function w(g){var h,y,b;return fY(this,w),b=hY(this,w,[g]),X(ae(b),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),X(ae(b),"accessibilityManager",new QG),X(ae(b),"handleLegendBBoxUpdate",function(x){if(x){var S=b.state,O=S.dataStartIndex,P=S.dataEndIndex,A=S.updateId;b.setState(I({legendBBox:x},m({props:b.props,dataStartIndex:O,dataEndIndex:P,updateId:A},I(I({},b.state),{},{legendBBox:x}))))}}),X(ae(b),"handleReceiveSyncEvent",function(x,S,O){if(b.props.syncId===x){if(O===b.eventEmitterSymbol&&typeof b.props.syncMethod!="function")return;b.applySyncEvent(S)}}),X(ae(b),"handleBrushChange",function(x){var S=x.startIndex,O=x.endIndex;if(S!==b.state.dataStartIndex||O!==b.state.dataEndIndex){var P=b.state.updateId;b.setState(function(){return I({dataStartIndex:S,dataEndIndex:O},m({props:b.props,dataStartIndex:S,dataEndIndex:O,updateId:P},b.state))}),b.triggerSyncEvent({dataStartIndex:S,dataEndIndex:O})}}),X(ae(b),"handleMouseEnter",function(x){var S=b.getMouseInfo(x);if(S){var O=I(I({},S),{},{isTooltipActive:!0});b.setState(O),b.triggerSyncEvent(O);var P=b.props.onMouseEnter;te(P)&&P(O,x)}}),X(ae(b),"triggeredAfterMouseMove",function(x){var S=b.getMouseInfo(x),O=S?I(I({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};b.setState(O),b.triggerSyncEvent(O);var P=b.props.onMouseMove;te(P)&&P(O,x)}),X(ae(b),"handleItemMouseEnter",function(x){b.setState(function(){return{isTooltipActive:!0,activeItem:x,activePayload:x.tooltipPayload,activeCoordinate:x.tooltipPosition||{x:x.cx,y:x.cy}}})}),X(ae(b),"handleItemMouseLeave",function(){b.setState(function(){return{isTooltipActive:!1}})}),X(ae(b),"handleMouseMove",function(x){x.persist(),b.throttleTriggeredAfterMouseMove(x)}),X(ae(b),"handleMouseLeave",function(x){b.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};b.setState(S),b.triggerSyncEvent(S);var O=b.props.onMouseLeave;te(O)&&O(S,x)}),X(ae(b),"handleOuterEvent",function(x){var S=iN(x),O=qt(b.props,"".concat(S));if(S&&te(O)){var P,A;/.*touch.*/i.test(S)?A=b.getMouseInfo(x.changedTouches[0]):A=b.getMouseInfo(x),O((P=A)!==null&&P!==void 0?P:{},x)}}),X(ae(b),"handleClick",function(x){var S=b.getMouseInfo(x);if(S){var O=I(I({},S),{},{isTooltipActive:!0});b.setState(O),b.triggerSyncEvent(O);var P=b.props.onClick;te(P)&&P(O,x)}}),X(ae(b),"handleMouseDown",function(x){var S=b.props.onMouseDown;if(te(S)){var O=b.getMouseInfo(x);S(O,x)}}),X(ae(b),"handleMouseUp",function(x){var S=b.props.onMouseUp;if(te(S)){var O=b.getMouseInfo(x);S(O,x)}}),X(ae(b),"handleTouchMove",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&b.throttleTriggeredAfterMouseMove(x.changedTouches[0])}),X(ae(b),"handleTouchStart",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&b.handleMouseDown(x.changedTouches[0])}),X(ae(b),"handleTouchEnd",function(x){x.changedTouches!=null&&x.changedTouches.length>0&&b.handleMouseUp(x.changedTouches[0])}),X(ae(b),"triggerSyncEvent",function(x){b.props.syncId!==void 0&&Od.emit(Pd,b.props.syncId,x,b.eventEmitterSymbol)}),X(ae(b),"applySyncEvent",function(x){var S=b.props,O=S.layout,P=S.syncMethod,A=b.state.updateId,E=x.dataStartIndex,T=x.dataEndIndex;if(x.dataStartIndex!==void 0||x.dataEndIndex!==void 0)b.setState(I({dataStartIndex:E,dataEndIndex:T},m({props:b.props,dataStartIndex:E,dataEndIndex:T,updateId:A},b.state)));else if(x.activeTooltipIndex!==void 0){var k=x.chartX,N=x.chartY,j=x.activeTooltipIndex,F=b.state,R=F.offset,z=F.tooltipTicks;if(!R)return;if(typeof P=="function")j=P(z,x);else if(P==="value"){j=-1;for(var $=0;$=0){var Q,ee;if(k.dataKey&&!k.allowDuplicatedCategory){var L=typeof k.dataKey=="function"?q:"payload.".concat(k.dataKey.toString());Q=Th($,L,j),ee=D&&U&&Th(U,L,j)}else Q=$==null?void 0:$[N],ee=D&&U&&U[N];if(Me||Oe){var ke=x.props.activeIndex!==void 0?x.props.activeIndex:N;return[C.cloneElement(x,I(I(I({},P.props),vt),{},{activeIndex:ke})),null,null]}if(!ce(Q))return[It].concat(pa(b.renderActivePoints({item:P,activePoint:Q,basePoint:ee,childIndex:N,isRange:D})))}else{var re,Re=(re=b.getItemByXY(b.state.activeCoordinate))!==null&&re!==void 0?re:{graphicalItem:It},Ne=Re.graphicalItem,Pt=Ne.item,En=Pt===void 0?x:Pt,Hu=Ne.childIndex,kr=I(I(I({},P.props),vt),{},{activeIndex:Hu});return[C.cloneElement(En,kr),null,null]}return D?[It,null,null]:[It,null]}),X(ae(b),"renderCustomized",function(x,S,O){return C.cloneElement(x,I(I({key:"recharts-customized-".concat(O)},b.props),b.state))}),X(ae(b),"renderMap",{CartesianGrid:{handler:Sl,once:!0},ReferenceArea:{handler:b.renderReferenceElement},ReferenceLine:{handler:Sl},ReferenceDot:{handler:b.renderReferenceElement},XAxis:{handler:Sl},YAxis:{handler:Sl},Brush:{handler:b.renderBrush,once:!0},Bar:{handler:b.renderGraphicChild},Line:{handler:b.renderGraphicChild},Area:{handler:b.renderGraphicChild},Radar:{handler:b.renderGraphicChild},RadialBar:{handler:b.renderGraphicChild},Scatter:{handler:b.renderGraphicChild},Pie:{handler:b.renderGraphicChild},Funnel:{handler:b.renderGraphicChild},Tooltip:{handler:b.renderCursor,once:!0},PolarGrid:{handler:b.renderPolarGrid,once:!0},PolarAngleAxis:{handler:b.renderPolarAxis},PolarRadiusAxis:{handler:b.renderPolarAxis},Customized:{handler:b.renderCustomized}}),b.clipPathId="".concat((h=g.id)!==null&&h!==void 0?h:qc("recharts"),"-clip"),b.throttleTriggeredAfterMouseMove=NP(b.triggeredAfterMouseMove,(y=g.throttleDelay)!==null&&y!==void 0?y:1e3/60),b.state={},b}return dY(w,[{key:"componentDidMount",value:function(){var h,y;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(h=this.props.margin.left)!==null&&h!==void 0?h:0,top:(y=this.props.margin.top)!==null&&y!==void 0?y:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var h=this.props,y=h.children,b=h.data,x=h.height,S=h.layout,O=At(y,Tn);if(O){var P=O.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length)){var A=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,E=Up(this.state,b,P,A),T=this.state.tooltipTicks[P].coordinate,k=(this.state.offset.top+x)/2,N=S==="horizontal",j=N?{x:T,y:k}:{y:T,x:k},F=this.state.formattedGraphicalItems.find(function(z){var $=z.item;return $.type.name==="Scatter"});F&&(j=I(I({},j),F.props.points[P].tooltipPosition),E=F.props.points[P].tooltipPayload);var R={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:A,activePayload:E,activeCoordinate:j};this.setState(R),this.renderCursor(O),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(h,y){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==y.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==h.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==h.margin){var b,x;this.accessibilityManager.setDetails({offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0}})}return null}},{key:"componentDidUpdate",value:function(h){kh([At(h.children,Tn)],[At(this.props.children,Tn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var h=At(this.props.children,Tn);if(h&&typeof h.props.shared=="boolean"){var y=h.props.shared?"axis":"item";return l.indexOf(y)>=0?y:o}return o}},{key:"getMouseInfo",value:function(h){if(!this.container)return null;var y=this.container,b=y.getBoundingClientRect(),x=AU(b),S={chartX:Math.round(h.pageX-x.left),chartY:Math.round(h.pageY-x.top)},O=b.width/y.offsetWidth||1,P=this.inRange(S.chartX,S.chartY,O);if(!P)return null;var A=this.state,E=A.xAxisMap,T=A.yAxisMap,k=this.getTooltipEventType();if(k!=="axis"&&E&&T){var N=ar(E).scale,j=ar(T).scale,F=N&&N.invert?N.invert(S.chartX):null,R=j&&j.invert?j.invert(S.chartY):null;return I(I({},S),{},{xValue:F,yValue:R})}var z=ww(this.state,this.props.data,this.props.layout,P);return z?I(I({},S),z):null}},{key:"inRange",value:function(h,y){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,x=this.props.layout,S=h/b,O=y/b;if(x==="horizontal"||x==="vertical"){var P=this.state.offset,A=S>=P.left&&S<=P.left+P.width&&O>=P.top&&O<=P.top+P.height;return A?{x:S,y:O}:null}var E=this.state,T=E.angleAxisMap,k=E.radiusAxisMap;if(T&&k){var N=ar(T);return eb({x:S,y:O},N)}return null}},{key:"parseEventsOfWrapper",value:function(){var h=this.props.children,y=this.getTooltipEventType(),b=At(h,Tn),x={};b&&y==="axis"&&(b.props.trigger==="click"?x={onClick:this.handleClick}:x={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var S=vs(this.props,this.handleOuterEvent);return I(I({},S),x)}},{key:"addListener",value:function(){Od.on(Pd,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Od.removeListener(Pd,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(h,y,b){for(var x=this.state.formattedGraphicalItems,S=0,O=x.length;S=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Ow(e){const t=fn(e);return t.setHours(0,0,0,0),t}function Pw(e){const t=fn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function NY(e,t){const n=Ow(e),r=Ow(t),i=+n-Pw(n),a=+r-Pw(r);return Math.round((i-a)/jY)}function IY(e){const t=ME(e),n=oi(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),oc(n)}function DY(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function RY(e){if(!DY(e)&&typeof e!="number")return!1;const t=fn(e);return!isNaN(Number(t))}function LY(e){const t=fn(e),n=oi(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const BY={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},FY=(e,t,n)=>{let r;const i=BY[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ed(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const zY={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},UY={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},WY={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},HY={date:Ed({formats:zY,defaultWidth:"full"}),time:Ed({formats:UY,defaultWidth:"full"}),dateTime:Ed({formats:WY,defaultWidth:"full"})},VY={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qY=(e,t,n,r)=>VY[e];function Ja(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,u=n!=null&&n.width?String(n.width):o;i=e.formattingValues[u]||e.formattingValues[o]}else{const o=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[u]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const KY={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},GY={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},YY={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},XY={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},QY={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},JY={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ZY=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},eX={ordinalNumber:ZY,era:Ja({values:KY,defaultWidth:"wide"}),quarter:Ja({values:GY,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ja({values:YY,defaultWidth:"wide"}),day:Ja({values:XY,defaultWidth:"wide"}),dayPeriod:Ja({values:QY,defaultWidth:"wide",formattingValues:JY,defaultFormattingWidth:"wide"})};function Za(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?nX(u,c=>c.test(o)):tX(u,c=>c.test(o));let s;s=e.valueCallback?e.valueCallback(l):l,s=n.valueCallback?n.valueCallback(s):s;const f=t.slice(o.length);return{value:s,rest:f}}}function tX(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function nX(e,t){for(let n=0;n{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const u=t.slice(i.length);return{value:o,rest:u}}}const iX=/^(\d+)(th|st|nd|rd)?/i,aX=/\d+/i,oX={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},uX={any:[/^b/i,/^(a|c)/i]},lX={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},sX={any:[/1/i,/2/i,/3/i,/4/i]},cX={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},fX={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},dX={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},hX={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},pX={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},vX={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},mX={ordinalNumber:rX({matchPattern:iX,parsePattern:aX,valueCallback:e=>parseInt(e,10)}),era:Za({matchPatterns:oX,defaultMatchWidth:"wide",parsePatterns:uX,defaultParseWidth:"any"}),quarter:Za({matchPatterns:lX,defaultMatchWidth:"wide",parsePatterns:sX,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Za({matchPatterns:cX,defaultMatchWidth:"wide",parsePatterns:fX,defaultParseWidth:"any"}),day:Za({matchPatterns:dX,defaultMatchWidth:"wide",parsePatterns:hX,defaultParseWidth:"any"}),dayPeriod:Za({matchPatterns:pX,defaultMatchWidth:"any",parsePatterns:vX,defaultParseWidth:"any"})},yX={code:"en-US",formatDistance:FY,formatLong:HY,formatRelative:qY,localize:eX,match:mX,options:{weekStartsOn:0,firstWeekContainsDate:1}};function gX(e){const t=fn(e);return NY(t,LY(t))+1}function bX(e){const t=fn(e),n=+oc(t)-+IY(t);return Math.round(n/jE)+1}function NE(e,t){var f,c,d,p;const n=fn(e),r=n.getFullYear(),i=gf(),a=(t==null?void 0:t.firstWeekContainsDate)??((c=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:c.firstWeekContainsDate)??i.firstWeekContainsDate??((p=(d=i.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,o=oi(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const u=_u(o,t),l=oi(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const s=_u(l,t);return n.getTime()>=u.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function wX(e,t){var u,l,s,f;const n=gf(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(s=n.locale)==null?void 0:s.options)==null?void 0:f.firstWeekContainsDate)??1,i=NE(e,t),a=oi(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),_u(a,t)}function xX(e,t){const n=fn(e),r=+_u(n,t)-+wX(n,t);return Math.round(r/jE)+1}function se(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Zn={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return se(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):se(n+1,2)},d(e,t){return se(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return se(e.getHours()%12||12,t.length)},H(e,t){return se(e.getHours(),t.length)},m(e,t){return se(e.getMinutes(),t.length)},s(e,t){return se(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return se(i,t.length)}},wi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},_w={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Zn.y(e,t)},Y:function(e,t,n,r){const i=NE(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return se(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):se(a,t.length)},R:function(e,t){const n=ME(e);return se(n,t.length)},u:function(e,t){const n=e.getFullYear();return se(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return se(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return se(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Zn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return se(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=xX(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):se(i,t.length)},I:function(e,t,n){const r=bX(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):se(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Zn.d(e,t)},D:function(e,t,n){const r=gX(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):se(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return se(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return se(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return se(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=wi.noon:r===0?i=wi.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=wi.evening:r>=12?i=wi.afternoon:r>=4?i=wi.morning:i=wi.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Zn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Zn.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):se(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):se(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Zn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Zn.s(e,t)},S:function(e,t){return Zn.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Aw(r);case"XXXX":case"XX":return Lr(r);case"XXXXX":case"XXX":default:return Lr(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Aw(r);case"xxxx":case"xx":return Lr(r);case"xxxxx":case"xxx":default:return Lr(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ew(r,":");case"OOOO":default:return"GMT"+Lr(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ew(r,":");case"zzzz":default:return"GMT"+Lr(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return se(r,t.length)},T:function(e,t,n){const r=e.getTime();return se(r,t.length)}};function Ew(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+se(a,2)}function Aw(e,t){return e%60===0?(e>0?"-":"+")+se(Math.abs(e)/60,2):Lr(e,t)}function Lr(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=se(Math.trunc(r/60),2),a=se(r%60,2);return n+i+t+a}const Tw=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},IE=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},SX=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Tw(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Tw(r,t)).replace("{{time}}",IE(i,t))},OX={p:IE,P:SX},PX=/^D+$/,_X=/^Y+$/,EX=["D","DD","YY","YYYY"];function AX(e){return PX.test(e)}function TX(e){return _X.test(e)}function $X(e,t,n){const r=kX(e,t,n);if(console.warn(r),EX.includes(e))throw new RangeError(r)}function kX(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const CX=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jX=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,MX=/^'([^]*?)'?$/,NX=/''/g,IX=/[a-zA-Z]/;function DX(e,t,n){var f,c,d,p,m,v,w,g;const r=gf(),i=(n==null?void 0:n.locale)??r.locale??yX,a=(n==null?void 0:n.firstWeekContainsDate)??((c=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(d=r.locale)==null?void 0:d.options)==null?void 0:p.firstWeekContainsDate)??1,o=(n==null?void 0:n.weekStartsOn)??((v=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:v.weekStartsOn)??r.weekStartsOn??((g=(w=r.locale)==null?void 0:w.options)==null?void 0:g.weekStartsOn)??0,u=fn(e);if(!RY(u))throw new RangeError("Invalid time value");let l=t.match(jX).map(h=>{const y=h[0];if(y==="p"||y==="P"){const b=OX[y];return b(h,i.formatLong)}return h}).join("").match(CX).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const y=h[0];if(y==="'")return{isToken:!1,value:RX(h)};if(_w[y])return{isToken:!0,value:h};if(y.match(IX))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:h}});i.localize.preprocessor&&(l=i.localize.preprocessor(u,l));const s={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return l.map(h=>{if(!h.isToken)return h.value;const y=h.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&TX(y)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&AX(y))&&$X(y,t,String(e));const b=_w[y[0]];return b(u,y,i.localize,s)}).join("")}function RX(e){const t=e.match(MX);return t?t[1].replace(NX,"'"):e}function LX({history:e}){return e&&W.jsxs("div",{className:"",children:[W.jsx("h2",{children:"Gráfica histórica"}),W.jsx("div",{className:"grafica",children:W.jsx(wU,{width:"100%",height:200,children:W.jsxs(CY,{data:e,children:[W.jsx(OE,{strokeDasharray:"5 5"}),W.jsx(vf,{dataKey:"date",tickFormatter:t=>{const n=new Date(t);return DX(n,"dd/MM")}}),W.jsx(mf,{}),W.jsx(na,{}),W.jsx(hi,{dataKey:"priceUsd",name:"Precio (USD)",fill:"#8884d8"})]})})})]})}function BX(){const e=_$(),t=Tg(`assets/${e.id}`),n=Tg(`assets/${e.id}/history?interval=d1`);return!t||!n?W.jsx("div",{className:"cripto-page-container",children:W.jsx("h1",{children:"Cargando..."})}):W.jsxs(W.Fragment,{children:[W.jsx("div",{className:"cripto-page-container",children:t&&W.jsx(dC,{cryptoData:t})}),W.jsx("div",{className:"grafica-container",children:n&&W.jsx(LX,{history:n})})]})}Ad.createRoot(document.getElementById("root")).render(W.jsxs(B$,{children:[W.jsx(vi,{path:"*",element:W.jsx(fC,{})}),W.jsx(vi,{path:"/",element:W.jsx(mg,{}),children:W.jsx(vi,{index:!0,element:W.jsx(q$,{})})}),W.jsxs(vi,{path:"/criptomonedas",element:W.jsx(mg,{}),children:[W.jsx(vi,{index:!0,element:W.jsx(cC,{})}),W.jsx(vi,{path:":id",element:W.jsx(BX,{})})]})]})); diff --git a/index.html b/index.html index aba4d5a..1d63bfc 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ Vite + React - +