From c02d3724a3e337ad0668b3b2e944c2dae63bc295 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 4 Jul 2025 08:03:57 +0000 Subject: [PATCH 1/4] Initial plan From b0fb742376b3f118ce98d11d16830ee5eccb30f6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 4 Jul 2025 08:07:39 +0000 Subject: [PATCH 2/4] Initial analysis of dashboard UI improvements Co-authored-by: mswat5 <111264418+mswat5@users.noreply.github.com> --- dist/assets/index-JZWsK2B6.js | 251 +++++++++++++++++++++++++++++++++ dist/assets/index-r57sLuj_.css | 1 + dist/index.html | 14 ++ package-lock.json | 8 +- 4 files changed, 270 insertions(+), 4 deletions(-) create mode 100644 dist/assets/index-JZWsK2B6.js create mode 100644 dist/assets/index-r57sLuj_.css create mode 100644 dist/index.html diff --git a/dist/assets/index-JZWsK2B6.js b/dist/assets/index-JZWsK2B6.js new file mode 100644 index 0000000..48f013a --- /dev/null +++ b/dist/assets/index-JZWsK2B6.js @@ -0,0 +1,251 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(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"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(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 n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var El=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pb={exports:{}},Fs={},Ab={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 dl=Symbol.for("react.element"),$P=Symbol.for("react.portal"),TP=Symbol.for("react.fragment"),jP=Symbol.for("react.strict_mode"),kP=Symbol.for("react.profiler"),CP=Symbol.for("react.provider"),MP=Symbol.for("react.context"),NP=Symbol.for("react.forward_ref"),IP=Symbol.for("react.suspense"),DP=Symbol.for("react.memo"),RP=Symbol.for("react.lazy"),wy=Symbol.iterator;function LP(e){return e===null||typeof e!="object"?null:(e=wy&&e[wy]||e["@@iterator"],typeof e=="function"?e:null)}var Eb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$b=Object.assign,Tb={};function va(e,t,r){this.props=e,this.context=t,this.refs=Tb,this.updater=r||Eb}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 jb(){}jb.prototype=va.prototype;function Sh(e,t,r){this.props=e,this.context=t,this.refs=Tb,this.updater=r||Eb}var Oh=Sh.prototype=new jb;Oh.constructor=Sh;$b(Oh,va.prototype);Oh.isPureReactComponent=!0;var Sy=Array.isArray,kb=Object.prototype.hasOwnProperty,_h={current:null},Cb={key:!0,ref:!0,__self:!0,__source:!0};function Mb(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)kb.call(t,n)&&!Cb.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1>>1,W=j[V];if(0>>1;Vi(_e,F))Mei(Mt,_e)?(j[V]=Mt,j[Me]=F,V=Me):(j[V]=_e,j[ie]=F,V=ie);else if(Mei(Mt,F))j[V]=Mt,j[Me]=F,V=Me;else break e}}return I}function i(j,I){var F=j.sortIndex-I.sortIndex;return F!==0?F:j.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var u=[],s=[],f=1,c=null,d=3,p=!1,y=!1,h=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=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(j){for(var I=r(s);I!==null;){if(I.callback===null)n(s);else if(I.startTime<=j)n(s),I.sortIndex=I.expirationTime,t(u,I);else break;I=r(s)}}function S(j){if(h=!1,g(j),!y)if(r(u)!==null)y=!0,R(b);else{var I=r(s);I!==null&&L(S,I.startTime-j)}}function b(j,I){y=!1,h&&(h=!1,m(_),_=-1),p=!0;var F=d;try{for(g(I),c=r(u);c!==null&&(!(c.expirationTime>I)||j&&!$());){var V=c.callback;if(typeof V=="function"){c.callback=null,d=c.priorityLevel;var W=V(c.expirationTime<=I);I=e.unstable_now(),typeof W=="function"?c.callback=W:c===r(u)&&n(u),g(I)}else n(u);c=r(u)}if(c!==null)var X=!0;else{var ie=r(s);ie!==null&&L(S,ie.startTime-I),X=!1}return X}finally{c=null,d=F,p=!1}}var w=!1,O=null,_=-1,P=5,T=-1;function $(){return!(e.unstable_now()-Tj||125V?(j.sortIndex=F,t(s,j),r(u)===null&&j===r(s)&&(h?(m(_),_=-1):h=!0,L(S,F-V))):(j.sortIndex=W,t(u,j),y||p||(y=!0,R(b))),j},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(j){var I=d;return function(){var F=d;d=I;try{return j.apply(this,arguments)}finally{d=F}}}})(Lb);Rb.exports=Lb;var XP=Rb.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 YP=B,jt=XP;function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),td=Object.prototype.hasOwnProperty,QP=/^[: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]*$/,_y={},Py={};function ZP(e){return td.call(Py,e)?!0:td.call(_y,e)?!1:QP.test(e)?Py[e]=!0:(_y[e]=!0,!1)}function JP(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function eA(e,t,r,n){if(t===null||typeof t>"u"||JP(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,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 Ah=/[\-:]([a-z])/g;function Eh(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(Ah,Eh);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(Ah,Eh);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(Ah,Eh);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 $h(e,t,r,n){var i=et.hasOwnProperty(t)?et[t]:null;(i!==null?i.type!==0:n||!(2l||i[o]!==a[l]){var u=` +`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=l);break}}}finally{tf=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?qa(e):""}function tA(e){switch(e.tag){case 5:return qa(e.type);case 16:return qa("Lazy");case 13:return qa("Suspense");case 19:return qa("SuspenseList");case 0:case 2:case 15:return e=rf(e.type,!1),e;case 11:return e=rf(e.type.render,!1),e;case 1:return e=rf(e.type,!0),e;default:return""}}function ad(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 di:return"Fragment";case fi:return"Portal";case rd:return"Profiler";case Th:return"StrictMode";case nd:return"Suspense";case id:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fb:return(e.displayName||"Context")+".Consumer";case zb:return(e._context.displayName||"Context")+".Provider";case jh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kh:return t=e.displayName||null,t!==null?t:ad(e.type)||"Memo";case Kr:t=e._payload,e=e._init;try{return ad(e(t))}catch{}}return null}function rA(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 ad(t);case 8:return t===Th?"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 dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nA(e){var t=Wb(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jl(e){e._valueTracker||(e._valueTracker=nA(e))}function Hb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Wb(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function gu(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 od(e,t){var r=t.checked;return Te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ey(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=dn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Vb(e,t){t=t.checked,t!=null&&$h(e,"checked",t,!1)}function ld(e,t){Vb(e,t);var r=dn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ud(e,t.type,r):t.hasOwnProperty("defaultValue")&&ud(e,t.type,dn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $y(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function ud(e,t,r){(t!=="number"||gu(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ga=Array.isArray;function $i(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=kl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function vo(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Za={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},iA=["Webkit","ms","Moz","O"];Object.keys(Za).forEach(function(e){iA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Za[t]=Za[e]})});function Xb(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Za.hasOwnProperty(e)&&Za[e]?(""+t).trim():t+"px"}function Yb(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Xb(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var aA=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 fd(e,t){if(t){if(aA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function dd(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 pd=null;function Ch(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hd=null,Ti=null,ji=null;function ky(e){if(e=vl(e)){if(typeof hd!="function")throw Error(U(280));var t=e.stateNode;t&&(t=Ks(t),hd(e.stateNode,e.type,t))}}function Qb(e){Ti?ji?ji.push(e):ji=[e]:Ti=e}function Zb(){if(Ti){var e=Ti,t=ji;if(ji=Ti=null,ky(e),t)for(e=0;e>>=0,e===0?32:31-(yA(e)/mA|0)|0}var Cl=64,Ml=4194304;function Xa(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 Su(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var l=o&~i;l!==0?n=Xa(l):(a&=o,a!==0&&(n=Xa(a)))}else o=r&~i,o!==0?n=Xa(o):a!==0&&(n=Xa(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function pl(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rr(t),e[t]=r}function wA(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=eo),zy=" ",Fy=!1;function gx(e,t){switch(e){case"keyup":return XA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pi=!1;function QA(e,t){switch(e){case"compositionend":return bx(t);case"keypress":return t.which!==32?null:(Fy=!0,zy);case"textInput":return e=t.data,e===zy&&Fy?null:e;default:return null}}function ZA(e,t){if(pi)return e==="compositionend"||!zh&&gx(e,t)?(e=yx(),uu=Rh=Zr=null,pi=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Vy(r)}}function Ox(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ox(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _x(){for(var e=window,t=gu();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=gu(e.document)}return t}function Fh(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 l2(e){var t=_x(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Ox(r.ownerDocument.documentElement,r)){if(n!==null&&Fh(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=Ky(r,a);var o=Ky(r,n);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>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,hi=null,xd=null,ro=null,wd=!1;function qy(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;wd||hi==null||hi!==gu(n)||(n=hi,"selectionStart"in n&&Fh(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ro&&wo(ro,n)||(ro=n,n=Pu(xd,"onSelect"),0mi||(e.current=Ed[mi],Ed[mi]=null,mi--)}function me(e,t){mi++,Ed[mi]=e.current,e.current=t}var pn={},ot=vn(pn),bt=vn(!1),Hn=pn;function Bi(e,t){var r=e.type.contextTypes;if(!r)return pn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function xt(e){return e=e.childContextTypes,e!=null}function Eu(){Oe(bt),Oe(ot)}function em(e,t,r){if(ot.current!==pn)throw Error(U(168));me(ot,t),me(bt,r)}function Mx(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(U(108,rA(e)||"Unknown",i));return Te({},r,n)}function $u(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,Hn=ot.current,me(ot,e),me(bt,bt.current),!0}function tm(e,t,r){var n=e.stateNode;if(!n)throw Error(U(169));r?(e=Mx(e,t,Hn),n.__reactInternalMemoizedMergedChildContext=e,Oe(bt),Oe(ot),me(ot,e)):Oe(bt),me(bt,r)}var xr=null,qs=!1,mf=!1;function Nx(e){xr===null?xr=[e]:xr.push(e)}function b2(e){qs=!0,Nx(e)}function yn(){if(!mf&&xr!==null){mf=!0;var e=0,t=ce;try{var r=xr;for(ce=1;e>=o,i-=o,wr=1<<32-rr(t)+i|r<_?(P=O,O=null):P=O.sibling;var T=d(m,O,g[_],S);if(T===null){O===null&&(O=P);break}e&&O&&T.alternate===null&&t(m,O),v=a(T,v,_),w===null?b=T:w.sibling=T,w=T,O=P}if(_===g.length)return r(m,O),Pe&&En(m,_),b;if(O===null){for(;__?(P=O,O=null):P=O.sibling;var $=d(m,O,T.value,S);if($===null){O===null&&(O=P);break}e&&O&&$.alternate===null&&t(m,O),v=a($,v,_),w===null?b=$:w.sibling=$,w=$,O=P}if(T.done)return r(m,O),Pe&&En(m,_),b;if(O===null){for(;!T.done;_++,T=g.next())T=c(m,T.value,S),T!==null&&(v=a(T,v,_),w===null?b=T:w.sibling=T,w=T);return Pe&&En(m,_),b}for(O=n(m,O);!T.done;_++,T=g.next())T=p(O,m,_,T.value,S),T!==null&&(e&&T.alternate!==null&&O.delete(T.key===null?_:T.key),v=a(T,v,_),w===null?b=T:w.sibling=T,w=T);return e&&O.forEach(function(k){return t(m,k)}),Pe&&En(m,_),b}function x(m,v,g,S){if(typeof g=="object"&&g!==null&&g.type===di&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Tl:e:{for(var b=g.key,w=v;w!==null;){if(w.key===b){if(b=g.type,b===di){if(w.tag===7){r(m,w.sibling),v=i(w,g.props.children),v.return=m,m=v;break e}}else if(w.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Kr&&im(b)===w.type){r(m,w.sibling),v=i(w,g.props),v.ref=Na(m,w,g),v.return=m,m=v;break e}r(m,w);break}else t(m,w);w=w.sibling}g.type===di?(v=Fn(g.props.children,m.mode,S,g.key),v.return=m,m=v):(S=yu(g.type,g.key,g.props,null,m.mode,S),S.ref=Na(m,v,g),S.return=m,m=S)}return o(m);case fi:e:{for(w=g.key;v!==null;){if(v.key===w)if(v.tag===4&&v.stateNode.containerInfo===g.containerInfo&&v.stateNode.implementation===g.implementation){r(m,v.sibling),v=i(v,g.children||[]),v.return=m,m=v;break e}else{r(m,v);break}else t(m,v);v=v.sibling}v=Pf(g,m.mode,S),v.return=m,m=v}return o(m);case Kr:return w=g._init,x(m,v,w(g._payload),S)}if(Ga(g))return y(m,v,g,S);if(Ta(g))return h(m,v,g,S);zl(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,v!==null&&v.tag===6?(r(m,v.sibling),v=i(v,g),v.return=m,m=v):(r(m,v),v=_f(g,m.mode,S),v.return=m,m=v),o(m)):r(m,v)}return x}var Fi=Lx(!0),Bx=Lx(!1),ku=vn(null),Cu=null,xi=null,Vh=null;function Kh(){Vh=xi=Cu=null}function qh(e){var t=ku.current;Oe(ku),e._currentValue=t}function jd(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Ci(e,t){Cu=e,Vh=xi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(mt=!0),e.firstContext=null)}function Ht(e){var t=e._currentValue;if(Vh!==e)if(e={context:e,memoizedValue:t,next:null},xi===null){if(Cu===null)throw Error(U(308));xi=e,Cu.dependencies={lanes:0,firstContext:e}}else xi=xi.next=e;return t}var Nn=null;function Gh(e){Nn===null?Nn=[e]:Nn.push(e)}function zx(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Gh(t)):(r.next=i.next,i.next=r),t.interleaved=r,Cr(e,n)}function Cr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var qr=!1;function Xh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fx(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Pr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function on(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,oe&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Cr(e,r)}return i=n.interleaved,i===null?(t.next=t,Gh(n)):(t.next=i.next,i.next=t),n.interleaved=t,Cr(e,r)}function cu(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Nh(e,r)}}function am(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Mu(e,t,r,n){var i=e.updateQueue;qr=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,s=u.next;u.next=null,o===null?a=s:o.next=s,o=u;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==o&&(l===null?f.firstBaseUpdate=s:l.next=s,f.lastBaseUpdate=u))}if(a!==null){var c=i.baseState;o=0,f=s=u=null,l=a;do{var d=l.lane,p=l.eventTime;if((n&d)===d){f!==null&&(f=f.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,h=l;switch(d=t,p=r,h.tag){case 1:if(y=h.payload,typeof y=="function"){c=y.call(p,c,d);break e}c=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=h.payload,d=typeof y=="function"?y.call(p,c,d):y,d==null)break e;c=Te({},c,d);break e;case 2:qr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(s=f=p,u=c):f=f.next=p,o|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(u=c),i.baseState=u,i.firstBaseUpdate=s,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);qn|=o,e.lanes=o,e.memoizedState=c}}function om(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=bf.transition;bf.transition={};try{e(!1),t()}finally{ce=r,bf.transition=n}}function iw(){return Vt().memoizedState}function O2(e,t,r){var n=un(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},aw(e))ow(t,r);else if(r=zx(e,t,r,n),r!==null){var i=ft();nr(r,e,n,i),lw(r,t,n)}}function _2(e,t,r){var n=un(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(aw(e))ow(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,l=a(o,r);if(i.hasEagerState=!0,i.eagerState=l,ir(l,o)){var u=t.interleaved;u===null?(i.next=i,Gh(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}r=zx(e,t,i,n),r!==null&&(i=ft(),nr(r,e,n,i),lw(r,t,n))}}function aw(e){var t=e.alternate;return e===$e||t!==null&&t===$e}function ow(e,t){no=Iu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function lw(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Nh(e,r)}}var Du={readContext:Ht,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},P2={readContext:Ht,useCallback:function(e,t){return lr().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:um,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,du(4194308,4,Jx.bind(null,t,e),r)},useLayoutEffect:function(e,t){return du(4194308,4,e,t)},useInsertionEffect:function(e,t){return du(4,2,e,t)},useMemo:function(e,t){var r=lr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=lr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=O2.bind(null,$e,e),[n.memoizedState,e]},useRef:function(e){var t=lr();return e={current:e},t.memoizedState=e},useState:lm,useDebugValue:nv,useDeferredValue:function(e){return lr().memoizedState=e},useTransition:function(){var e=lm(!1),t=e[0];return e=S2.bind(null,e[1]),lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=$e,i=lr();if(Pe){if(r===void 0)throw Error(U(407));r=r()}else{if(r=t(),Xe===null)throw Error(U(349));Kn&30||Vx(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,um(qx.bind(null,n,a,e),[e]),n.flags|=2048,To(9,Kx.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=lr(),t=Xe.identifierPrefix;if(Pe){var r=Sr,n=wr;r=(n&~(1<<32-rr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Eo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[ur]=t,e[_o]=n,mw(e,t,!1,!1),t.stateNode=e;e:{switch(o=dd(r,n),r){case"dialog":xe("cancel",e),xe("close",e),i=n;break;case"iframe":case"object":case"embed":xe("load",e),i=n;break;case"video":case"audio":for(i=0;iHi&&(t.flags|=128,n=!0,Ia(a,!1),t.lanes=4194304)}else{if(!n)if(e=Nu(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ia(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Pe)return rt(t),null}else 2*Ne()-a.renderingStartTime>Hi&&r!==1073741824&&(t.flags|=128,n=!0,Ia(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ne(),t.sibling=null,r=Ee.current,me(Ee,n?r&1|2:r&1),t):(rt(t),null);case 22:case 23:return sv(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?_t&1073741824&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function M2(e,t){switch(Wh(t),t.tag){case 1:return xt(t.type)&&Eu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(),Oe(bt),Oe(ot),Zh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qh(t),null;case 13:if(Oe(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Oe(Ee),null;case 4:return Ui(),null;case 10:return qh(t.type._context),null;case 22:case 23:return sv(),null;case 24:return null;default:return null}}var Ul=!1,it=!1,N2=typeof WeakSet=="function"?WeakSet:Set,q=null;function wi(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){ke(e,t,n)}else r.current=null}function Bd(e,t,r){try{r()}catch(n){ke(e,t,n)}}var bm=!1;function I2(e,t){if(Sd=Ou,e=_x(),Fh(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,l=-1,u=-1,s=0,f=0,c=e,d=null;t:for(;;){for(var p;c!==r||i!==0&&c.nodeType!==3||(l=o+i),c!==a||n!==0&&c.nodeType!==3||(u=o+n),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break t;if(d===r&&++s===i&&(l=o),d===a&&++f===n&&(u=o),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}r=l===-1||u===-1?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Od={focusedElem:e,selectionRange:r},Ou=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var h=y.memoizedProps,x=y.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?h:Qt(t.type,h),x);m.__reactInternalSnapshotBeforeUpdate=v}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(U(163))}}catch(S){ke(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return y=bm,bm=!1,y}function io(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Bd(t,r,a)}i=i.next}while(i!==n)}}function Ys(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function zd(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function xw(e){var t=e.alternate;t!==null&&(e.alternate=null,xw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ur],delete t[_o],delete t[Ad],delete t[m2],delete t[g2])),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 ww(e){return e.tag===5||e.tag===3||e.tag===4}function xm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ww(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 Fd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Au));else if(n!==4&&(e=e.child,e!==null))for(Fd(e,t,r),e=e.sibling;e!==null;)Fd(e,t,r),e=e.sibling}function Ud(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Ud(e,t,r),e=e.sibling;e!==null;)Ud(e,t,r),e=e.sibling}var Ze=null,Zt=!1;function Vr(e,t,r){for(r=r.child;r!==null;)Sw(e,t,r),r=r.sibling}function Sw(e,t,r){if(cr&&typeof cr.onCommitFiberUnmount=="function")try{cr.onCommitFiberUnmount(Us,r)}catch{}switch(r.tag){case 5:it||wi(r,t);case 6:var n=Ze,i=Zt;Ze=null,Vr(e,t,r),Ze=n,Zt=i,Ze!==null&&(Zt?(e=Ze,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ze.removeChild(r.stateNode));break;case 18:Ze!==null&&(Zt?(e=Ze,r=r.stateNode,e.nodeType===8?yf(e.parentNode,r):e.nodeType===1&&yf(e,r),bo(e)):yf(Ze,r.stateNode));break;case 4:n=Ze,i=Zt,Ze=r.stateNode.containerInfo,Zt=!0,Vr(e,t,r),Ze=n,Zt=i;break;case 0:case 11:case 14:case 15:if(!it&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Bd(r,t,o),i=i.next}while(i!==n)}Vr(e,t,r);break;case 1:if(!it&&(wi(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){ke(r,t,l)}Vr(e,t,r);break;case 21:Vr(e,t,r);break;case 22:r.mode&1?(it=(n=it)||r.memoizedState!==null,Vr(e,t,r),it=n):Vr(e,t,r);break;default:Vr(e,t,r)}}function wm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new N2),t.forEach(function(n){var i=H2.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Xt(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=Ne()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*R2(n/1960))-n,10e?16:e,Jr===null)var n=!1;else{if(e=Jr,Jr=null,Bu=0,oe&6)throw Error(U(331));var i=oe;for(oe|=4,q=e.current;q!==null;){var a=q,o=a.child;if(q.flags&16){var l=a.deletions;if(l!==null){for(var u=0;uNe()-lv?zn(e,0):ov|=r),wt(e,t)}function jw(e,t){t===0&&(e.mode&1?(t=Ml,Ml<<=1,!(Ml&130023424)&&(Ml=4194304)):t=1);var r=ft();e=Cr(e,t),e!==null&&(pl(e,t,r),wt(e,r))}function W2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),jw(e,r)}function H2(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(U(314))}n!==null&&n.delete(t),jw(e,r)}var kw;kw=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||bt.current)mt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return mt=!1,k2(e,t,r);mt=!!(e.flags&131072)}else mt=!1,Pe&&t.flags&1048576&&Ix(t,ju,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;pu(e,t),e=t.pendingProps;var i=Bi(t,ot.current);Ci(t,r),i=ev(null,t,n,e,i,r);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(n)?(a=!0,$u(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Xh(t),i.updater=Xs,t.stateNode=i,i._reactInternals=t,Cd(t,n,e,r),t=Id(null,t,n,!0,a,r)):(t.tag=0,Pe&&a&&Uh(t),lt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(pu(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=K2(n),e=Qt(n,e),i){case 0:t=Nd(null,t,n,e,r);break e;case 1:t=ym(null,t,n,e,r);break e;case 11:t=hm(null,t,n,e,r);break e;case 14:t=vm(null,t,n,Qt(n.type,e),r);break e}throw Error(U(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Qt(n,i),Nd(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Qt(n,i),ym(e,t,n,i,r);case 3:e:{if(hw(t),e===null)throw Error(U(387));n=t.pendingProps,a=t.memoizedState,i=a.element,Fx(e,t),Mu(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Wi(Error(U(423)),t),t=mm(e,t,n,r,i);break e}else if(n!==i){i=Wi(Error(U(424)),t),t=mm(e,t,n,r,i);break e}else for(Et=an(t.stateNode.containerInfo.firstChild),$t=t,Pe=!0,er=null,r=Bx(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(zi(),n===i){t=Mr(e,t,r);break e}lt(e,t,n,r)}t=t.child}return t;case 5:return Ux(t),e===null&&Td(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,_d(n,i)?o=null:a!==null&&_d(n,a)&&(t.flags|=32),pw(e,t),lt(e,t,o,r),t.child;case 6:return e===null&&Td(t),null;case 13:return vw(e,t,r);case 4:return Yh(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Fi(t,null,n,r):lt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Qt(n,i),hm(e,t,n,i,r);case 7:return lt(e,t,t.pendingProps,r),t.child;case 8:return lt(e,t,t.pendingProps.children,r),t.child;case 12:return lt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,me(ku,n._currentValue),n._currentValue=o,a!==null)if(ir(a.value,o)){if(a.children===i.children&&!bt.current){t=Mr(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){o=a.child;for(var u=l.firstContext;u!==null;){if(u.context===n){if(a.tag===1){u=Pr(-1,r&-r),u.tag=2;var s=a.updateQueue;if(s!==null){s=s.shared;var f=s.pending;f===null?u.next=u:(u.next=f.next,f.next=u),s.pending=u}}a.lanes|=r,u=a.alternate,u!==null&&(u.lanes|=r),jd(a.return,r,t),l.lanes|=r;break}u=u.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(U(341));o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),jd(o,r,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}lt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Ci(t,r),i=Ht(i),n=n(i),t.flags|=1,lt(e,t,n,r),t.child;case 14:return n=t.type,i=Qt(n,t.pendingProps),i=Qt(n.type,i),vm(e,t,n,i,r);case 15:return fw(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Qt(n,i),pu(e,t),t.tag=1,xt(n)?(e=!0,$u(t)):e=!1,Ci(t,r),uw(t,n,i),Cd(t,n,i,r),Id(null,t,n,!0,e,r);case 19:return yw(e,t,r);case 22:return dw(e,t,r)}throw Error(U(156,t.tag))};function Cw(e,t){return ax(e,t)}function V2(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zt(e,t,r,n){return new V2(e,t,r,n)}function fv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function K2(e){if(typeof e=="function")return fv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===jh)return 11;if(e===kh)return 14}return 2}function sn(e,t){var r=e.alternate;return r===null?(r=zt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function yu(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")fv(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case di:return Fn(r.children,i,a,t);case Th:o=8,i|=8;break;case rd:return e=zt(12,r,t,i|2),e.elementType=rd,e.lanes=a,e;case nd:return e=zt(13,r,t,i),e.elementType=nd,e.lanes=a,e;case id:return e=zt(19,r,t,i),e.elementType=id,e.lanes=a,e;case Ub:return Zs(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zb:o=10;break e;case Fb:o=9;break e;case jh:o=11;break e;case kh:o=14;break e;case Kr:o=16,n=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=zt(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Fn(e,t,r,n){return e=zt(7,e,n,t),e.lanes=r,e}function Zs(e,t,r,n){return e=zt(22,e,n,t),e.elementType=Ub,e.lanes=r,e.stateNode={isHidden:!1},e}function _f(e,t,r){return e=zt(6,e,null,t),e.lanes=r,e}function Pf(e,t,r){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function q2(e,t,r,n,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=af(0),this.expirationTimes=af(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=af(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function dv(e,t,r,n,i,a,o,l,u){return e=new q2(e,t,r,l,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=zt(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xh(a),e}function G2(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dw)}catch(e){console.error(e)}}Dw(),Db.exports=kt;var J2=Db.exports,Rw,Tm=J2;Rw=Tm.createRoot,Tm.hydrateRoot;/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var eE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),be=(e,t)=>{const r=B.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:l="",children:u,...s},f)=>B.createElement("svg",{ref:f,...eE,width:i,height:i,stroke:n,strokeWidth:o?Number(a)*24/Number(i):a,className:["lucide",`lucide-${tE(e)}`,l].join(" "),...s},[...t.map(([c,d])=>B.createElement(c,d)),...Array.isArray(u)?u:[u]]));return r.displayName=`${e}`,r};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rE=be("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nE=be("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Af=be("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const qd=be("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const iE=be("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const aE=be("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Lw=be("Expand",[["path",{d:"m21 21-6-6m6 6v-4.8m0 4.8h-4.8",key:"1c15vz"}],["path",{d:"M3 16.2V21m0 0h4.8M3 21l6-6",key:"1fsnz2"}],["path",{d:"M21 7.8V3m0 0h-4.8M21 3l-6 6",key:"hawz9i"}],["path",{d:"M3 7.8V3m0 0h4.8M3 3l6 6",key:"u9ee12"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const oE=be("FileSpreadsheet",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lE=be("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const uE=be("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Bw=be("HelpCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const sE=be("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cE=be("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const fE=be("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const zw=be("MoreHorizontal",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Uu=be("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Fw=be("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Uw=be("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const dE=be("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pE=be("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ww=be("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hE=be("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const vE=be("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const yE=be("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const mE=be("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const gE=be("Video",[["path",{d:"m22 8-6 4 6 4V8Z",key:"50v9me"}],["rect",{width:"14",height:"12",x:"2",y:"6",rx:"2",ry:"2",key:"1rqjg6"}]]),bE=()=>E.jsx("header",{className:"bg-teal-700 text-white",children:E.jsxs("div",{className:"flex items-center justify-between px-4 py-2",children:[E.jsx("div",{className:"flex items-center space-x-2",children:E.jsx("div",{className:"w-8 h-8 bg-white rounded-sm flex items-center justify-center",children:E.jsx("div",{className:"w-5 h-5 bg-teal-700 rounded-sm"})})}),E.jsxs("div",{className:"flex items-center bg-teal-600 rounded-md px-3 py-1.5 w-80",children:[E.jsx(Uw,{className:"w-4 h-4 text-teal-300 mr-2"}),E.jsx("input",{type:"text",placeholder:"Search...",className:"bg-transparent text-white placeholder-teal-300 outline-none w-full"})]}),E.jsxs("div",{className:"flex items-center space-x-3",children:[E.jsxs("button",{className:"flex items-center space-x-1 bg-teal-600 hover:bg-teal-500 px-3 py-1.5 rounded-md transition-colors",children:[E.jsx(Ww,{className:"w-4 h-4"}),E.jsx("span",{className:"text-sm",children:"AI"})]}),E.jsx("button",{className:"bg-purple-600 hover:bg-purple-700 px-4 py-1.5 rounded-md text-sm font-medium transition-colors",children:"Upgrade"}),E.jsxs("button",{className:"flex items-center space-x-1 bg-white text-teal-700 hover:bg-gray-100 px-3 py-1.5 rounded-md transition-colors",children:[E.jsx(Uu,{className:"w-4 h-4"}),E.jsx("span",{className:"text-sm font-medium",children:"New"})]}),E.jsxs("div",{className:"flex items-center space-x-2",children:[E.jsx(nE,{className:"w-5 h-5 text-teal-300 hover:text-white cursor-pointer"}),E.jsx(dE,{className:"w-5 h-5 text-teal-300 hover:text-white cursor-pointer"}),E.jsx(Bw,{className:"w-5 h-5 text-teal-300 hover:text-white cursor-pointer"}),E.jsx("div",{className:"w-8 h-8 bg-blue-500 rounded-full flex items-center justify-center font-semibold",children:"S"})]})]})]})}),xE=()=>E.jsx("div",{className:"bg-white border-b border-gray-200 px-6 py-3",children:E.jsxs("div",{className:"flex items-center justify-between",children:[E.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600",children:[E.jsx("span",{children:"Dashboards"}),E.jsx(qd,{className:"w-4 h-4"}),E.jsx("span",{className:"text-gray-900 font-medium",children:"Dashboard"})]}),E.jsxs("div",{className:"flex items-center space-x-3",children:[E.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:E.jsx(pE,{className:"w-4 h-4"})}),E.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:E.jsx(hE,{className:"w-4 h-4"})}),E.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:E.jsx(aE,{className:"w-4 h-4"})}),E.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:E.jsx(Lw,{className:"w-4 h-4"})}),E.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:E.jsx(zw,{className:"w-4 h-4"})})]})]})}),wE=()=>{const[e,t]=B.useState(!1),[r,n]=B.useState(!0),i=[{icon:sE,label:"Home",active:!1},{icon:cE,label:"Inbox",active:!1},{icon:mE,label:"Teams",active:!1},{icon:lE,label:"Docs",active:!1},{icon:rE,label:"Dashboards",active:!0},{icon:fE,label:"Whiteboards",active:!1},{icon:oE,label:"Forms",active:!1},{icon:gE,label:"Clips",active:!1},{icon:vE,label:"Goals",active:!1},{icon:iE,label:"Timesheets",active:!1},{icon:zw,label:"More",active:!1}];return E.jsxs("div",{className:"w-64 bg-gray-50 h-screen border-r border-gray-200 flex flex-col",children:[E.jsx("div",{className:"p-4 border-b border-gray-200",children:E.jsxs("div",{className:"flex items-center space-x-3",children:[E.jsx("div",{className:"w-8 h-8 bg-teal-600 rounded-full flex items-center justify-center text-white font-semibold text-sm",children:"S"}),E.jsx("div",{className:"flex-1",children:E.jsxs("div",{className:"flex items-center space-x-1",children:[E.jsx("span",{className:"text-sm font-medium text-gray-900",children:"Swatantra mi..."}),E.jsx(Af,{className:"w-4 h-4 text-gray-500"})]})})]})}),E.jsxs("nav",{className:"flex-1 p-4 space-y-1",children:[i.map((a,o)=>E.jsxs("a",{href:"#",className:`flex items-center space-x-3 px-3 py-2 rounded-md text-sm transition-colors ${a.active?"bg-teal-100 text-teal-700 font-medium":"text-gray-700 hover:bg-gray-100"}`,children:[E.jsx(a.icon,{className:"w-4 h-4"}),E.jsx("span",{children:a.label})]},o)),E.jsx("div",{className:"pt-4",children:E.jsxs("button",{onClick:()=>t(!e),className:"flex items-center space-x-2 w-full px-3 py-2 text-sm text-gray-600 hover:text-gray-900 transition-colors",children:[e?E.jsx(Af,{className:"w-4 h-4"}):E.jsx(qd,{className:"w-4 h-4"}),E.jsx("span",{className:"font-medium",children:"Favorites"})]})}),E.jsxs("div",{className:"pt-2",children:[E.jsxs("button",{onClick:()=>n(!r),className:"flex items-center space-x-2 w-full px-3 py-2 text-sm text-gray-600 hover:text-gray-900 transition-colors",children:[r?E.jsx(Af,{className:"w-4 h-4"}):E.jsx(qd,{className:"w-4 h-4"}),E.jsx("span",{className:"font-medium",children:"Spaces"}),E.jsxs("div",{className:"ml-auto flex items-center space-x-1",children:[E.jsx(Uw,{className:"w-3 h-3"}),E.jsx(Uu,{className:"w-3 h-3"})]})]}),r&&E.jsxs("div",{className:"ml-4 mt-1 space-y-1",children:[E.jsxs("a",{href:"#",className:"flex items-center space-x-2 px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 rounded-md",children:[E.jsx("div",{className:"w-2 h-2 bg-gray-400 rounded-full"}),E.jsx("span",{children:"Everything"})]}),E.jsxs("a",{href:"#",className:"flex items-center space-x-2 px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 rounded-md",children:[E.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full"}),E.jsx("span",{children:"Team Space"})]}),E.jsxs("button",{className:"flex items-center space-x-2 px-3 py-1.5 text-sm text-gray-500 hover:text-gray-700 transition-colors",children:[E.jsx(Uu,{className:"w-3 h-3"}),E.jsx("span",{children:"Create Space"})]})]})]})]}),E.jsxs("div",{className:"p-4 border-t border-gray-200 space-y-2",children:[E.jsxs("button",{className:"flex items-center space-x-2 w-full px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-md transition-colors",children:[E.jsx(yE,{className:"w-4 h-4"}),E.jsx("span",{children:"Invite"})]}),E.jsxs("button",{className:"flex items-center space-x-2 w-full px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-md transition-colors",children:[E.jsx(Bw,{className:"w-4 h-4"}),E.jsx("span",{children:"Help"})]})]})]})},SE=()=>{const[e,t]=B.useState(!1),[r,n]=B.useState(!0);return E.jsx("div",{className:"bg-white border-b border-gray-200 px-6 py-4",children:E.jsxs("div",{className:"flex items-center justify-between",children:[E.jsxs("div",{className:"flex items-center space-x-6",children:[E.jsxs("div",{className:"flex items-center space-x-3",children:[E.jsx("span",{className:"text-sm text-gray-600",children:"Edit mode:"}),E.jsx("button",{onClick:()=>t(!e),className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${e?"bg-teal-600":"bg-gray-200"}`,children:E.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${e?"translate-x-6":"translate-x-1"}`})})]}),E.jsxs("div",{className:"flex items-center space-x-4",children:[E.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600",children:[E.jsx(Fw,{className:"w-4 h-4"}),E.jsx("span",{children:"Refreshed 3 mins ago"})]}),E.jsxs("div",{className:"flex items-center space-x-2",children:[E.jsx("span",{className:"text-sm text-gray-600",children:"Auto refresh:"}),E.jsx("button",{onClick:()=>n(!r),className:`relative inline-flex h-5 w-9 items-center rounded-full transition-colors ${r?"bg-teal-600":"bg-gray-200"}`,children:E.jsx("span",{className:`inline-block h-3 w-3 transform rounded-full bg-white transition-transform ${r?"translate-x-5":"translate-x-1"}`})}),E.jsx("span",{className:"text-sm text-gray-600",children:"On"})]}),E.jsxs("button",{className:"flex items-center space-x-2 px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 rounded-md transition-colors",children:[E.jsx(uE,{className:"w-4 h-4"}),E.jsx("span",{children:"Filters"})]})]})]}),E.jsxs("button",{className:"flex items-center space-x-2 bg-teal-600 hover:bg-teal-700 text-white px-4 py-2 rounded-md text-sm font-medium transition-colors",children:[E.jsx(Uu,{className:"w-4 h-4"}),E.jsx("span",{children:"Add card"})]})]})})},OE=()=>E.jsxs("div",{className:"bg-white flex-grow rounded-lg border border-gray-200 p-6",children:[E.jsxs("div",{className:"flex items-center justify-between mb-4",children:[E.jsxs("div",{className:"flex items-center space-x-3",children:[E.jsx("div",{className:"w-8 h-8 bg-gradient-to-br from-purple-500 to-pink-500 rounded-lg flex items-center justify-center",children:E.jsx(Ww,{className:"w-5 h-5 text-white"})}),E.jsxs("div",{children:[E.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"AI Executive Summary"}),E.jsx("p",{className:"text-sm text-gray-500",children:"Refreshed 3 mins ago"})]})]}),E.jsxs("div",{className:"flex items-center space-x-2",children:[E.jsx("button",{className:"p-1 text-gray-400 hover:text-gray-600 transition-colors",children:E.jsx(Lw,{className:"w-4 h-4"})}),E.jsx("button",{className:"p-1 text-gray-400 hover:text-gray-600 transition-colors",children:E.jsx(Fw,{className:"w-4 h-4"})})]})]}),E.jsxs("div",{className:"space-y-4",children:[E.jsxs("div",{children:[E.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"Executive Summary"}),E.jsx("p",{className:"text-gray-600",children:"No tasks were updated in the last week."})]}),E.jsxs("div",{children:[E.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"Key Efforts & Initiatives"}),E.jsx("p",{className:"text-gray-600",children:"There are no active tasks."})]})]})]}),_E=()=>{const e=[{label:"Unassigned",count:6,color:"bg-gray-100 text-gray-700"},{label:"In Progress",count:1,color:"bg-blue-100 text-blue-700"},{label:"Completed",count:0,color:"bg-green-100 text-green-700"}];return E.jsx("div",{className:"grid grid-cols-3 gap-4",children:e.map((t,r)=>E.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-6 text-center",children:[E.jsx("h3",{className:"text-sm font-medium text-gray-600 mb-2",children:t.label}),E.jsx("div",{className:"text-4xl font-bold text-gray-900 mb-1",children:t.count}),E.jsx("div",{className:"text-sm text-gray-500",children:"tasks"})]},r))})};function Hw(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t-1}var OT=ST,_T=ic;function PT(e,t){var r=this.__data__,n=_T(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var AT=PT,ET=sT,$T=mT,TT=xT,jT=OT,kT=AT;function wa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0?1:-1},Dn=function(t){return Xn(t)&&t.indexOf("%")===t.length-1},H=function(t){return Jj(t)&&!gl(t)},nk=function(t){return re(t)},He=function(t){return H(t)||Xn(t)},ik=0,bl=function(t){var r=++ik;return"".concat(t||"").concat(r)},st=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!H(t)&&!Xn(t))return n;var a;if(Dn(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return gl(a)&&(a=n),i&&a>r&&(a=r),a},ci=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},ak=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Fm={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Ar=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Um=null,Tf=null,Ev=function e(t){if(t===Um&&Array.isArray(Tf))return Tf;var r=[];return B.Children.forEach(t,function(n){re(n)||(Gj.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Tf=r,Um=t,r};function Wt(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Ar(i)}):n=[Ar(t)],Ev(e).forEach(function(i){var a=Tt(i,"type.displayName")||Tt(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Pt(e,t){var r=Wt(e,t);return r&&r[0]}var Wm=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!H(n)||n<=0||!H(i)||i<=0)},pk=["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"],hk=function(t){return t&&t.type&&Xn(t.type)&&pk.indexOf(t.type)>=0},vk=function(t,r,n,i){var a,o=(a=$f==null?void 0:$f[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Z(t)&&(i&&o.includes(r)||uk.includes(r))||n&&Av.includes(r)},Q=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(B.isValidElement(t)&&(i=t.props),!ba(i))return null;var a={};return Object.keys(i).forEach(function(o){var l;vk((l=i)===null||l===void 0?void 0:l[o],o,r,n)&&(a[o]=i[o])}),a},Yd=function e(t,r){if(t===r)return!0;var n=B.Children.count(t);if(n!==B.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Hm(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Zd(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,l=e.title,u=e.desc,s=bk(e,gk),f=i||{width:r,height:n,x:0,y:0},c=te("recharts-surface",a);return A.createElement("svg",Qd({},Q(s,!0,"svg"),{className:c,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),A.createElement("title",null,l),A.createElement("desc",null,u),t)}var wk=["children","className"];function Jd(){return Jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ok(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var se=A.forwardRef(function(e,t){var r=e.children,n=e.className,i=Sk(e,wk),a=te("recharts-layer",n);return A.createElement("g",Jd({className:a},Q(i,!0),{ref:t}),r)}),Er=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;ai?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n=n?e:Ak(e,t,r)}var $k=Ek,Tk="\\ud800-\\udfff",jk="\\u0300-\\u036f",kk="\\ufe20-\\ufe2f",Ck="\\u20d0-\\u20ff",Mk=jk+kk+Ck,Nk="\\ufe0e\\ufe0f",Ik="\\u200d",Dk=RegExp("["+Ik+Tk+Mk+Nk+"]");function Rk(e){return Dk.test(e)}var nS=Rk;function Lk(e){return e.split("")}var Bk=Lk,iS="\\ud800-\\udfff",zk="\\u0300-\\u036f",Fk="\\ufe20-\\ufe2f",Uk="\\u20d0-\\u20ff",Wk=zk+Fk+Uk,Hk="\\ufe0e\\ufe0f",Vk="["+iS+"]",ep="["+Wk+"]",tp="\\ud83c[\\udffb-\\udfff]",Kk="(?:"+ep+"|"+tp+")",aS="[^"+iS+"]",oS="(?:\\ud83c[\\udde6-\\uddff]){2}",lS="[\\ud800-\\udbff][\\udc00-\\udfff]",qk="\\u200d",uS=Kk+"?",sS="["+Hk+"]?",Gk="(?:"+qk+"(?:"+[aS,oS,lS].join("|")+")"+sS+uS+")*",Xk=sS+uS+Gk,Yk="(?:"+[aS+ep+"?",ep,oS,lS,Vk].join("|")+")",Qk=RegExp(tp+"(?="+tp+")|"+Yk+Xk,"g");function Zk(e){return e.match(Qk)||[]}var Jk=Zk,eC=Bk,tC=nS,rC=Jk;function nC(e){return tC(e)?rC(e):eC(e)}var iC=nC,aC=$k,oC=nS,lC=iC,uC=Qw;function sC(e){return function(t){t=uC(t);var r=oC(t)?lC(t):void 0,n=r?r[0]:t.charAt(0),i=r?aC(r,1).join(""):t.slice(1);return n[e]()+i}}var cC=sC,fC=cC,dC=fC("toUpperCase"),pC=dC;const gc=pe(pC);function ye(e){return function(){return e}}const cS=Math.cos,Hu=Math.sin,ar=Math.sqrt,Vu=Math.PI,bc=2*Vu,rp=Math.PI,np=2*rp,Tn=1e-6,hC=np-Tn;function fS(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return fS;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;iTn)if(!(Math.abs(c*u-s*f)>Tn)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-l,h=u*u+s*s,x=p*p+y*y,m=Math.sqrt(h),v=Math.sqrt(d),g=a*Math.tan((rp-Math.acos((h+d-x)/(2*m*v)))/2),S=g/v,b=g/m;Math.abs(S-1)>Tn&&this._append`L${t+S*f},${r+S*c}`,this._append`A${a},${a},0,0,${+(c*p>f*y)},${this._x1=t+b*u},${this._y1=r+b*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),u=n*Math.sin(i),s=t+l,f=r+u,c=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Tn||Math.abs(this._y1-f)>Tn)&&this._append`L${s},${f}`,n&&(d<0&&(d=d%np+np),d>hC?this._append`A${n},${n},0,1,${c},${t-l},${r-u}A${n},${n},0,1,${c},${this._x1=s},${this._y1=f}`:d>Tn&&this._append`A${n},${n},0,${+(d>=rp)},${c},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function $v(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new yC(t)}function Tv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function dS(e){this._context=e}dS.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 xc(e){return new dS(e)}function pS(e){return e[0]}function hS(e){return e[1]}function vS(e,t){var r=ye(!0),n=null,i=xc,a=null,o=$v(l);e=typeof e=="function"?e:e===void 0?pS:ye(e),t=typeof t=="function"?t:t===void 0?hS:ye(t);function l(u){var s,f=(u=Tv(u)).length,c,d=!1,p;for(n==null&&(a=i(p=o())),s=0;s<=f;++s)!(s=p;--y)l.point(g[y],S[y]);l.lineEnd(),l.areaEnd()}m&&(g[d]=+e(x,d,c),S[d]=+t(x,d,c),l.point(n?+n(x,d,c):g[d],r?+r(x,d,c):S[d]))}if(v)return l=null,v+""||null}function f(){return vS().defined(i).curve(o).context(a)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:ye(+c),n=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?(n=c==null?null:typeof c=="function"?c:ye(+c),s):n},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:ye(+c),r=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?(r=c==null?null:typeof c=="function"?c:ye(+c),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).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&&(l=o(a)),s):o},s.context=function(c){return arguments.length?(c==null?a=l=null:l=o(a=c),s):a},s}class yS{constructor(t,r){this._context=t,this._x=r}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,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function mC(e){return new yS(e,!0)}function gC(e){return new yS(e,!1)}const jv={draw(e,t){const r=ar(t/Vu);e.moveTo(r,0),e.arc(0,0,r,0,bc)}},bC={draw(e,t){const r=ar(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},mS=ar(1/3),xC=mS*2,wC={draw(e,t){const r=ar(t/xC),n=r*mS;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},SC={draw(e,t){const r=ar(t),n=-r/2;e.rect(n,n,r,r)}},OC=.8908130915292852,gS=Hu(Vu/10)/Hu(7*Vu/10),_C=Hu(bc/10)*gS,PC=-cS(bc/10)*gS,AC={draw(e,t){const r=ar(t*OC),n=_C*r,i=PC*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=bc*a/5,l=cS(o),u=Hu(o);e.lineTo(u*r,-l*r),e.lineTo(l*n-u*i,u*n+l*i)}e.closePath()}},jf=ar(3),EC={draw(e,t){const r=-ar(t/(jf*3));e.moveTo(0,r*2),e.lineTo(-jf*r,-r),e.lineTo(jf*r,-r),e.closePath()}},Nt=-.5,It=ar(3)/2,ip=1/ar(12),$C=(ip/2+1)*3,TC={draw(e,t){const r=ar(t/$C),n=r/2,i=r*ip,a=n,o=r*ip+r,l=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,u),e.lineTo(Nt*n-It*i,It*n+Nt*i),e.lineTo(Nt*a-It*o,It*a+Nt*o),e.lineTo(Nt*l-It*u,It*l+Nt*u),e.lineTo(Nt*n+It*i,Nt*i-It*n),e.lineTo(Nt*a+It*o,Nt*o-It*a),e.lineTo(Nt*l+It*u,Nt*u-It*l),e.closePath()}};function jC(e,t){let r=null,n=$v(i);e=typeof e=="function"?e:ye(e||jv),t=typeof t=="function"?t:ye(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=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?(r=a??null,i):r},i}function Ku(){}function qu(e,t,r){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+r)/6)}function bS(e){this._context=e}bS.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:qu(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:qu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kC(e){return new bS(e)}function xS(e){this._context=e}xS.prototype={areaStart:Ku,areaEnd:Ku,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:qu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CC(e){return new xS(e)}function wS(e){this._context=e}wS.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:qu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function MC(e){return new wS(e)}function SS(e){this._context=e}SS.prototype={areaStart:Ku,areaEnd:Ku,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 NC(e){return new SS(e)}function Km(e){return e<0?-1:1}function qm(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),l=(a*i+o*n)/(n+i);return(Km(a)+Km(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function Gm(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function kf(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,o-l*r,a,o)}function Gu(e){this._context=e}Gu.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:kf(this,this._t0,Gm(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 r=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,kf(this,Gm(this,r=qm(this,e,t)),r);break;default:kf(this,this._t0,r=qm(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function OS(e){this._context=new _S(e)}(OS.prototype=Object.create(Gu.prototype)).point=function(e,t){Gu.prototype.point.call(this,t,e)};function _S(e){this._context=e}_S.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,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function IC(e){return new Gu(e)}function DC(e){return new OS(e)}function PS(e){this._context=e}PS.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Xm(e),i=Xm(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function LC(e){return new wc(e,.5)}function BC(e){return new wc(e,0)}function zC(e){return new wc(e,1)}function Vi(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,l=a.length;r=0;)r[t]=t;return r}function FC(e,t){return e[t]}function UC(e){const t=[];return t.key=e,t}function WC(){var e=ye([]),t=ap,r=Vi,n=FC;function i(a){var o=Array.from(e.apply(this,arguments),UC),l,u=o.length,s=-1,f;for(const c of a)for(l=0,++s;l0){for(var r,n,i=0,a=e[0].length,o;i0){for(var r=0,n=e[t[0]],i,a=n.length;r0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ZC(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var AS={symbolCircle:jv,symbolCross:bC,symbolDiamond:wC,symbolSquare:SC,symbolStar:AC,symbolTriangle:EC,symbolWye:TC},JC=Math.PI/180,eM=function(t){var r="symbol".concat(gc(t));return AS[r]||jv},tM=function(t,r,n){if(r==="area")return t;switch(n){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*JC;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}},rM=function(t,r){AS["symbol".concat(gc(t))]=r},kv=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,l=o===void 0?"area":o,u=QC(t,qC),s=Qm(Qm({},u),{},{type:n,size:a,sizeType:l}),f=function(){var x=eM(n),m=jC().type(x).size(tM(a,l,n));return m()},c=s.className,d=s.cx,p=s.cy,y=Q(s,!0);return d===+d&&p===+p&&a===+a?A.createElement("path",op({},y,{className:te("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(p,")"),d:f()})):null};kv.registerSymbol=rM;function Ki(e){"@babel/helpers - typeof";return Ki=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},Ki(e)}function lp(){return lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var v=p.inactive?s:p.color;return A.createElement("li",lp({className:x,style:c,key:"legend-item-".concat(y)},Yn(n.props,p,y)),A.createElement(Zd,{width:o,height:o,viewBox:f,style:d},n.renderIcon(p)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:v}},h?h(m,p,y):m))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return A.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(B.PureComponent);Co(Cv,"displayName","Legend");Co(Cv,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var dM=ac;function pM(){this.__data__=new dM,this.size=0}var hM=pM;function vM(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var yM=vM;function mM(e){return this.__data__.get(e)}var gM=mM;function bM(e){return this.__data__.has(e)}var xM=bM,wM=ac,SM=bv,OM=xv,_M=200;function PM(e,t){var r=this.__data__;if(r instanceof wM){var n=r.__data__;if(!SM||n.length<_M-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new OM(n)}return r.set(e,t),this.size=r.size,this}var AM=PM,EM=ac,$M=hM,TM=yM,jM=gM,kM=xM,CM=AM;function Oa(e){var t=this.__data__=new EM(e);this.size=t.size}Oa.prototype.clear=$M;Oa.prototype.delete=TM;Oa.prototype.get=jM;Oa.prototype.has=kM;Oa.prototype.set=CM;var TS=Oa,MM="__lodash_hash_undefined__";function NM(e){return this.__data__.set(e,MM),this}var IM=NM;function DM(e){return this.__data__.has(e)}var RM=DM,LM=xv,BM=IM,zM=RM;function Yu(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new LM;++tl))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=r&qM?new WM:void 0;for(a.set(e,t),a.set(t,e);++c-1&&e%1==0&&e-1&&e%1==0&&e<=QN}var Dv=ZN,JN=zr,eI=Dv,tI=Fr,rI="[object Arguments]",nI="[object Array]",iI="[object Boolean]",aI="[object Date]",oI="[object Error]",lI="[object Function]",uI="[object Map]",sI="[object Number]",cI="[object Object]",fI="[object RegExp]",dI="[object Set]",pI="[object String]",hI="[object WeakMap]",vI="[object ArrayBuffer]",yI="[object DataView]",mI="[object Float32Array]",gI="[object Float64Array]",bI="[object Int8Array]",xI="[object Int16Array]",wI="[object Int32Array]",SI="[object Uint8Array]",OI="[object Uint8ClampedArray]",_I="[object Uint16Array]",PI="[object Uint32Array]",we={};we[mI]=we[gI]=we[bI]=we[xI]=we[wI]=we[SI]=we[OI]=we[_I]=we[PI]=!0;we[rI]=we[nI]=we[vI]=we[iI]=we[yI]=we[aI]=we[oI]=we[lI]=we[uI]=we[sI]=we[cI]=we[fI]=we[dI]=we[pI]=we[hI]=!1;function AI(e){return tI(e)&&eI(e.length)&&!!we[JN(e)]}var EI=AI;function $I(e){return function(t){return e(t)}}var RS=$I,Zu={exports:{}};Zu.exports;(function(e,t){var r=Vw,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,l=function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(Zu,Zu.exports);var TI=Zu.exports,jI=EI,kI=RS,ig=TI,ag=ig&&ig.isTypedArray,CI=ag?kI(ag):jI,LS=CI,MI=DN,NI=Nv,II=St,DI=DS,RI=Iv,LI=LS,BI=Object.prototype,zI=BI.hasOwnProperty;function FI(e,t){var r=II(e),n=!r&&NI(e),i=!r&&!n&&DI(e),a=!r&&!n&&!i&&LI(e),o=r||n||i||a,l=o?MI(e.length,String):[],u=l.length;for(var s in e)(t||zI.call(e,s))&&!(o&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||RI(s,u)))&&l.push(s);return l}var UI=FI,WI=Object.prototype;function HI(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||WI;return e===r}var VI=HI;function KI(e,t){return function(r){return e(t(r))}}var BS=KI,qI=BS,GI=qI(Object.keys,Object),XI=GI,YI=VI,QI=XI,ZI=Object.prototype,JI=ZI.hasOwnProperty;function eD(e){if(!YI(e))return QI(e);var t=[];for(var r in Object(e))JI.call(e,r)&&r!="constructor"&&t.push(r);return t}var tD=eD,rD=mv,nD=Dv;function iD(e){return e!=null&&nD(e.length)&&!rD(e)}var Sc=iD,aD=UI,oD=tD,lD=Sc;function uD(e){return lD(e)?aD(e):oD(e)}var Rv=uD,sD=_N,cD=NN,fD=Rv;function dD(e){return sD(e,fD,cD)}var pD=dD,og=pD,hD=1,vD=Object.prototype,yD=vD.hasOwnProperty;function mD(e,t,r,n,i,a){var o=r&hD,l=og(e),u=l.length,s=og(t),f=s.length;if(u!=f&&!o)return!1;for(var c=u;c--;){var d=l[c];if(!(o?d in t:yD.call(t,d)))return!1}var p=a.get(e),y=a.get(t);if(p&&y)return p==t&&y==e;var h=!0;a.set(e,t),a.set(t,e);for(var x=o;++c-1}var yR=vR;function mR(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=CR){var s=t?null:jR(e);if(s)return kR(s);o=!1,i=TR,u=new AR}else u=t?[]:l;e:for(;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function GR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function XR(e){return e.value}function YR(e,t){if(A.isValidElement(e))return A.cloneElement(e,t);if(typeof e=="function")return A.createElement(e,t);t.ref;var r=qR(t,BR);return A.createElement(Cv,r)}var Sg=1,Ii=function(e){function t(){var r;zR(this,t);for(var n=arguments.length,i=new Array(n),a=0;aSg||Math.abs(i.height-this.lastBoundingBox.height)>Sg)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?yr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,l=i.verticalAlign,u=i.margin,s=i.chartWidth,f=i.chartHeight,c,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();c={left:((s||0)-p.width)/2}}else c=o==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(l==="middle"){var y=this.getBBoxSnapshot();d={top:((f||0)-y.height)/2}}else d=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return yr(yr({},c),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,l=i.height,u=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,c=yr(yr({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return A.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){n.wrapperNode=p}},YR(a,yr(yr({},this.props),{},{payload:VS(f,s,XR)})))}}],[{key:"getWithHeight",value:function(n,i){var a=yr(yr({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&H(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(B.PureComponent);Oc(Ii,"displayName","Legend");Oc(Ii,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Og=ml,QR=Nv,ZR=St,_g=Og?Og.isConcatSpreadable:void 0;function JR(e){return ZR(e)||QR(e)||!!(_g&&e&&e[_g])}var eL=JR,tL=NS,rL=eL;function GS(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=rL),i||(i=[]);++a0&&r(l)?t>1?GS(l,t-1,r,n,i):tL(i,l):n||(i[i.length]=l)}return i}var XS=GS;function nL(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),l=o.length;l--;){var u=o[e?l:++i];if(r(a[u],u,a)===!1)break}return t}}var iL=nL,aL=iL,oL=aL(),lL=oL,uL=lL,sL=Rv;function cL(e,t){return e&&uL(e,t,sL)}var YS=cL,fL=Sc;function dL(e,t){return function(r,n){if(r==null)return r;if(!fL(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++at||a&&o&&u&&!l&&!s||n&&o&&u||!r&&u||!i)return 1;if(!n&&!a&&!s&&e=l)return u;var s=r[n];return u*(s=="desc"?-1:1)}}return e.index-t.index}var AL=PL,If=Sv,EL=Ov,$L=gn,TL=QS,jL=wL,kL=RS,CL=AL,ML=Pa,NL=St;function IL(e,t,r){t.length?t=If(t,function(a){return NL(a)?function(o){return EL(o,a.length===1?a[0]:a)}:a}):t=[ML];var n=-1;t=If(t,kL($L));var i=TL(e,function(a,o,l){var u=If(t,function(s){return s(a)});return{criteria:u,index:++n,value:a}});return jL(i,function(a,o){return CL(a,o,r)})}var DL=IL;function RL(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var LL=RL,BL=LL,Ag=Math.max;function zL(e,t,r){return t=Ag(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Ag(n.length-t,0),o=Array(a);++i0){if(++t>=YL)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var e4=JL,t4=XL,r4=e4,n4=r4(t4),i4=n4,a4=Pa,o4=FL,l4=i4;function u4(e,t){return l4(o4(e,t,a4),e+"")}var s4=u4,c4=gv,f4=Sc,d4=Iv,p4=mn;function h4(e,t,r){if(!p4(r))return!1;var n=typeof t;return(n=="number"?f4(r)&&d4(t,r.length):n=="string"&&t in r)?c4(r[t],e):!1}var _c=h4,v4=XS,y4=DL,m4=s4,$g=_c,g4=m4(function(e,t){if(e==null)return[];var r=t.length;return r>1&&$g(e,t[0],t[1])?t=[]:r>2&&$g(t[0],t[1],t[2])&&(t=[t[0]]),y4(e,v4(t,1),[])}),b4=g4;const zv=pe(b4);function Mo(e){"@babel/helpers - typeof";return Mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mo(e)}function vp(){return vp=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t.x),"".concat(La,"-left"),H(r)&&t&&H(t.x)&&r=t.y),"".concat(La,"-top"),H(n)&&t&&H(t.y)&&nh?Math.max(f,u[n]):Math.max(c,u[n])}function N4(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function I4(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,u=e.viewBox,s,f,c;return o.height>0&&o.width>0&&r?(f=kg({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),c=kg({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),s=N4({translateX:f,translateY:c,useTranslate3d:l})):s=C4,{cssProperties:s,cssClasses:M4({translateX:f,translateY:c,coordinate:r})}}function Gi(e){"@babel/helpers - typeof";return Gi=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},Gi(e)}function Cg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mg(e){for(var t=1;tNg||Math.abs(n.height-this.state.lastBoundingBox.height)>Ng)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.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 n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,s=i.children,f=i.coordinate,c=i.hasPayload,d=i.isAnimationActive,p=i.offset,y=i.position,h=i.reverseDirection,x=i.useTranslate3d,m=i.viewBox,v=i.wrapperStyle,g=I4({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:y,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:m}),S=g.cssClasses,b=g.cssProperties,w=Mg(Mg({transition:d&&a?"transform ".concat(l,"ms ").concat(u):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&c?"visible":"hidden",position:"absolute",top:0,left:0},v);return A.createElement("div",{tabIndex:-1,className:S,style:w,ref:function(_){n.wrapperNode=_}},s)}}])}(B.PureComponent),V4=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},$r={isSsr:V4(),get:function(t){return $r[t]},set:function(t,r){if(typeof t=="string")$r[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){$r[i]=t[i]})}}};function Xi(e){"@babel/helpers - typeof";return Xi=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},Xi(e)}function Ig(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dg(e){for(var t=1;t0;return A.createElement(H4,{allowEscapeViewBox:o,animationDuration:l,animationEasing:u,isAnimationActive:d,active:a,coordinate:f,hasPayload:w,offset:p,position:x,reverseDirection:m,useTranslate3d:v,viewBox:g,wrapperStyle:S},tB(s,Dg(Dg({},this.props),{},{payload:b})))}}])}(B.PureComponent);Fv(gr,"displayName","Tooltip");Fv(gr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!$r.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 rB=vr,nB=function(){return rB.Date.now()},iB=nB,aB=/\s/;function oB(e){for(var t=e.length;t--&&aB.test(e.charAt(t)););return t}var lB=oB,uB=lB,sB=/^\s+/;function cB(e){return e&&e.slice(0,uB(e)+1).replace(sB,"")}var fB=cB,dB=fB,Rg=mn,pB=ga,Lg=NaN,hB=/^[-+]0x[0-9a-f]+$/i,vB=/^0b[01]+$/i,yB=/^0o[0-7]+$/i,mB=parseInt;function gB(e){if(typeof e=="number")return e;if(pB(e))return Lg;if(Rg(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Rg(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=dB(e);var r=vB.test(e);return r||yB.test(e)?mB(e.slice(2),r?2:8):hB.test(e)?Lg:+e}var nO=gB,bB=mn,Rf=iB,Bg=nO,xB="Expected a function",wB=Math.max,SB=Math.min;function OB(e,t,r){var n,i,a,o,l,u,s=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(xB);t=Bg(t)||0,bB(r)&&(f=!!r.leading,c="maxWait"in r,a=c?wB(Bg(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function p(w){var O=n,_=i;return n=i=void 0,s=w,o=e.apply(_,O),o}function y(w){return s=w,l=setTimeout(m,t),f?p(w):o}function h(w){var O=w-u,_=w-s,P=t-O;return c?SB(P,a-_):P}function x(w){var O=w-u,_=w-s;return u===void 0||O>=t||O<0||c&&_>=a}function m(){var w=Rf();if(x(w))return v(w);l=setTimeout(m,h(w))}function v(w){return l=void 0,d&&n?p(w):(n=i=void 0,o)}function g(){l!==void 0&&clearTimeout(l),s=0,n=u=i=l=void 0}function S(){return l===void 0?o:v(Rf())}function b(){var w=Rf(),O=x(w);if(n=arguments,i=this,u=w,O){if(l===void 0)return y(u);if(c)return clearTimeout(l),l=setTimeout(m,t),p(u)}return l===void 0&&(l=setTimeout(m,t)),o}return b.cancel=g,b.flush=S,b}var _B=OB,PB=_B,AB=mn,EB="Expected a function";function $B(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(EB);return AB(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),PB(e,t,{leading:n,maxWait:t,trailing:i})}var TB=$B;const iO=pe(TB);function Io(e){"@babel/helpers - typeof";return Io=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},Io(e)}function zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gl(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(M=iO(M,h,{trailing:!0,leading:!1}));var D=new ResizeObserver(M),N=b.current.getBoundingClientRect(),R=N.width,L=N.height;return $(R,L),D.observe(b.current),function(){D.disconnect()}},[$,h]);var k=B.useMemo(function(){var M=P.containerWidth,D=P.containerHeight;if(M<0||D<0)return null;Er(Dn(o)||Dn(u),`The width(%s) and height(%s) are both fixed numbers, + maybe you don't need to use a ResponsiveContainer.`,o,u),Er(!r||r>0,"The aspect(%s) must be greater than zero.",r);var N=Dn(o)?M:o,R=Dn(u)?D:u;r&&r>0&&(N?R=N/r:R&&(N=R*r),d&&R>d&&(R=d)),Er(N>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.`,N,R,o,u,f,c,r);var L=!Array.isArray(p)&&Ar(p.type).endsWith("Chart");return A.Children.map(p,function(j){return A.isValidElement(j)?B.cloneElement(j,Gl({width:N,height:R},L?{style:Gl({height:"100%",width:"100%",maxHeight:R,maxWidth:N},j.props.style)}:{})):j})},[r,p,u,d,c,f,P,o]);return A.createElement("div",{id:x?"".concat(x):void 0,className:te("recharts-responsive-container",m),style:Gl(Gl({},S),{},{width:o,height:u,minWidth:f,minHeight:c,maxHeight:d}),ref:b},k)}),Pc=function(t){return null};Pc.displayName="Cell";function Do(e){"@babel/helpers - typeof";return Do=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},Do(e)}function Ug(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xp(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||$r.isSsr)return{width:0,height:0};var n=WB(r),i=JSON.stringify({text:t,copyStyle:n});if(ui.widthCache[i])return ui.widthCache[i];try{var a=document.getElementById(Wg);a||(a=document.createElement("span"),a.setAttribute("id",Wg),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=xp(xp({},UB),n);Object.assign(a.style,o),a.textContent="".concat(t);var l=a.getBoundingClientRect(),u={width:l.width,height:l.height};return ui.widthCache[i]=u,++ui.cacheCount>FB&&(ui.cacheCount=0,ui.widthCache={}),u}catch{return{width:0,height:0}}},HB=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Ro(e){"@babel/helpers - typeof";return Ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ro(e)}function rs(e,t){return GB(e)||qB(e,t)||KB(e,t)||VB()}function VB(){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 KB(e,t){if(e){if(typeof e=="string")return Hg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hg(e,t)}}function Hg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u8(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Yg(e,t){return d8(e)||f8(e,t)||c8(e,t)||s8()}function s8(){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 c8(e,t){if(e){if(typeof e=="string")return Qg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qg(e,t)}}function Qg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return N.reduce(function(R,L){var j=L.word,I=L.width,F=R[R.length-1];if(F&&(i==null||a||F.width+I+nL.width?R:L})};if(!f)return p;for(var h="…",x=function(N){var R=c.slice(0,N),L=uO({breakAll:s,style:u,children:R+h}).wordsWithComputedWidth,j=d(L),I=j.length>o||y(j).width>Number(i);return[I,j]},m=0,v=c.length-1,g=0,S;m<=v&&g<=c.length-1;){var b=Math.floor((m+v)/2),w=b-1,O=x(w),_=Yg(O,2),P=_[0],T=_[1],$=x(b),k=Yg($,1),M=k[0];if(!P&&!M&&(m=b+1),P&&M&&(v=b-1),!P&&M){S=T;break}g++}return S||p},Zg=function(t){var r=re(t)?[]:t.toString().split(lO);return[{words:r}]},h8=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,l=t.maxLines;if((r||n)&&!$r.isSsr){var u,s,f=uO({breakAll:o,children:i,style:a});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;u=c,s=d}else return Zg(i);return p8({breakAll:o,children:i,maxLines:l,style:a},u,s,r,n)}return Zg(i)},Jg="#808080",Qn=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,l=o===void 0?"1em":o,u=t.capHeight,s=u===void 0?"0.71em":u,f=t.scaleToFit,c=f===void 0?!1:f,d=t.textAnchor,p=d===void 0?"start":d,y=t.verticalAnchor,h=y===void 0?"end":y,x=t.fill,m=x===void 0?Jg:x,v=Xg(t,o8),g=B.useMemo(function(){return h8({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:c,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,c,v.style,v.width]),S=v.dx,b=v.dy,w=v.angle,O=v.className,_=v.breakAll,P=Xg(v,l8);if(!He(n)||!He(a))return null;var T=n+(H(S)?S:0),$=a+(H(b)?b:0),k;switch(h){case"start":k=Lf("calc(".concat(s,")"));break;case"middle":k=Lf("calc(".concat((g.length-1)/2," * -").concat(l," + (").concat(s," / 2))"));break;default:k=Lf("calc(".concat(g.length-1," * -").concat(l,")"));break}var M=[];if(c){var D=g[0].width,N=v.width;M.push("scale(".concat((H(N)?N/D:1)/D,")"))}return w&&M.push("rotate(".concat(w,", ").concat(T,", ").concat($,")")),M.length&&(P.transform=M.join(" ")),A.createElement("text",wp({},Q(P,!0),{x:T,y:$,className:te("recharts-text",O),textAnchor:p,fill:m.includes("url")?Jg:m}),g.map(function(R,L){var j=R.words.join(_?"":" ");return A.createElement("tspan",{x:T,dy:L===0?k:l,key:"".concat(j,"-").concat(L)},j)}))};function cn(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function v8(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Uv(e){let t,r,n;e.length!==2?(t=cn,r=(l,u)=>cn(e(l),u),n=(l,u)=>e(l)-u):(t=e===cn||e===v8?e:y8,r=e,n=e);function i(l,u,s=0,f=l.length){if(s>>1;r(l[c],u)<0?s=c+1:f=c}while(s>>1;r(l[c],u)<=0?s=c+1:f=c}while(ss&&n(l[c-1],u)>-n(l[c],u)?c-1:c}return{left:i,center:o,right:a}}function y8(){return 0}function sO(e){return e===null?NaN:+e}function*m8(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const g8=Uv(cn),xl=g8.right;Uv(sO).center;class e0 extends Map{constructor(t,r=w8){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(t0(this,t))}has(t){return super.has(t0(this,t))}set(t,r){return super.set(b8(this,t),r)}delete(t){return super.delete(x8(this,t))}}function t0({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function b8({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function x8({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function w8(e){return e!==null&&typeof e=="object"?e.valueOf():e}function S8(e=cn){if(e===cn)return cO;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function cO(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const O8=Math.sqrt(50),_8=Math.sqrt(10),P8=Math.sqrt(2);function ns(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=O8?10:a>=_8?5:a>=P8?2:1;let l,u,s;return i<0?(s=Math.pow(10,-i)/o,l=Math.round(e*s),u=Math.round(t*s),l/st&&--u,s=-s):(s=Math.pow(10,i)*o,l=Math.round(e/s),u=Math.round(t/s),l*st&&--u),u0))return[];if(e===t)return[e];const n=t=i))return[];const l=a-i+1,u=new Array(l);if(n)if(o<0)for(let s=0;s=n)&&(r=n);return r}function n0(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function fO(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?cO:S8(i);n>r;){if(n-r>600){const u=n-r+1,s=t-r+1,f=Math.log(u),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(u-c)/u)*(s-u/2<0?-1:1),p=Math.max(r,Math.floor(t-s*c/u+d)),y=Math.min(n,Math.floor(t+(u-s)*c/u+d));fO(e,t,p,y,i)}const a=e[t];let o=r,l=n;for(Ba(e,r,t),i(e[n],a)>0&&Ba(e,r,n);o0;)--l}i(e[r],a)===0?Ba(e,r,l):(++l,Ba(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function Ba(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function A8(e,t,r){if(e=Float64Array.from(m8(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return n0(e);if(t>=1)return r0(e);var n,i=(n-1)*t,a=Math.floor(i),o=r0(fO(e,a).subarray(0,a+1)),l=n0(e.subarray(a+1));return o+(l-o)*(i-a)}}function E8(e,t,r=sO){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),l=+r(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function $8(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Yl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Yl(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=j8.exec(e))?new gt(t[1],t[2],t[3],1):(t=k8.exec(e))?new gt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=C8.exec(e))?Yl(t[1],t[2],t[3],t[4]):(t=M8.exec(e))?Yl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=N8.exec(e))?c0(t[1],t[2]/100,t[3]/100,1):(t=I8.exec(e))?c0(t[1],t[2]/100,t[3]/100,t[4]):i0.hasOwnProperty(e)?l0(i0[e]):e==="transparent"?new gt(NaN,NaN,NaN,0):null}function l0(e){return new gt(e>>16&255,e>>8&255,e&255,1)}function Yl(e,t,r,n){return n<=0&&(e=t=r=NaN),new gt(e,t,r,n)}function L8(e){return e instanceof wl||(e=Fo(e)),e?(e=e.rgb(),new gt(e.r,e.g,e.b,e.opacity)):new gt}function Ap(e,t,r,n){return arguments.length===1?L8(e):new gt(e,t,r,n??1)}function gt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Hv(gt,Ap,pO(wl,{brighter(e){return e=e==null?is:Math.pow(is,e),new gt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Bo:Math.pow(Bo,e),new gt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new gt(Un(this.r),Un(this.g),Un(this.b),as(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:u0,formatHex:u0,formatHex8:B8,formatRgb:s0,toString:s0}));function u0(){return`#${Rn(this.r)}${Rn(this.g)}${Rn(this.b)}`}function B8(){return`#${Rn(this.r)}${Rn(this.g)}${Rn(this.b)}${Rn((isNaN(this.opacity)?1:this.opacity)*255)}`}function s0(){const e=as(this.opacity);return`${e===1?"rgb(":"rgba("}${Un(this.r)}, ${Un(this.g)}, ${Un(this.b)}${e===1?")":`, ${e})`}`}function as(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Un(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Rn(e){return e=Un(e),(e<16?"0":"")+e.toString(16)}function c0(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new tr(e,t,r,n)}function hO(e){if(e instanceof tr)return new tr(e.h,e.s,e.l,e.opacity);if(e instanceof wl||(e=Fo(e)),!e)return new tr;if(e instanceof tr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,u=(a+i)/2;return l?(t===a?o=(r-n)/l+(r0&&u<1?0:o,new tr(o,l,u,e.opacity)}function z8(e,t,r,n){return arguments.length===1?hO(e):new tr(e,t,r,n??1)}function tr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Hv(tr,z8,pO(wl,{brighter(e){return e=e==null?is:Math.pow(is,e),new tr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Bo:Math.pow(Bo,e),new tr(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new gt(Bf(e>=240?e-240:e+120,i,n),Bf(e,i,n),Bf(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new tr(f0(this.h),Ql(this.s),Ql(this.l),as(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=as(this.opacity);return`${e===1?"hsl(":"hsla("}${f0(this.h)}, ${Ql(this.s)*100}%, ${Ql(this.l)*100}%${e===1?")":`, ${e})`}`}}));function f0(e){return e=(e||0)%360,e<0?e+360:e}function Ql(e){return Math.max(0,Math.min(1,e||0))}function Bf(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Vv=e=>()=>e;function F8(e,t){return function(r){return e+r*t}}function U8(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function W8(e){return(e=+e)==1?vO:function(t,r){return r-t?U8(t,r,e):Vv(isNaN(t)?r:t)}}function vO(e,t){var r=t-e;return r?F8(e,r):Vv(isNaN(e)?t:e)}const d0=function e(t){var r=W8(t);function n(i,a){var o=r((i=Ap(i)).r,(a=Ap(a)).r),l=r(i.g,a.g),u=r(i.b,a.b),s=vO(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=l(f),i.b=u(f),i.opacity=s(f),i+""}}return n.gamma=e,n}(1);function H8(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;ir&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,u.push({i:o,x:os(n,i)})),r=zf.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function t5(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i2?r5:t5,u=s=null,c}function c(d){return d==null||isNaN(d=+d)?a:(u||(u=l(e.map(n),t,r)))(n(o(d)))}return c.invert=function(d){return o(i((s||(s=l(t,e.map(n),os)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,ls),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),r=Kv,f()},c.clamp=function(d){return arguments.length?(o=d?!0:ct,f()):o!==ct},c.interpolate=function(d){return arguments.length?(r=d,f()):r},c.unknown=function(d){return arguments.length?(a=d,c):a},function(d,p){return n=d,i=p,f()}}function qv(){return Ac()(ct,ct)}function n5(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function us(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Yi(e){return e=us(Math.abs(e)),e?e[1]:NaN}function i5(e,t){return function(r,n){for(var i=r.length,a=[],o=0,l=e[0],u=0;i>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),a.push(r.substring(i-=l,i+l)),!((u+=l+1)>n));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function a5(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var o5=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Uo(e){if(!(t=o5.exec(e)))throw new Error("invalid format: "+e);var t;return new Gv({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]})}Uo.prototype=Gv.prototype;function Gv(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+""}Gv.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 l5(e){e:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var yO;function u5(e,t){var r=us(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(yO=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+us(e,Math.max(0,t+a-1))[0]}function h0(e,t){var r=us(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const v0={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:n5,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)=>h0(e*100,t),r:h0,s:u5,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function y0(e){return e}var m0=Array.prototype.map,g0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function s5(e){var t=e.grouping===void 0||e.thousands===void 0?y0:i5(m0.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?y0:a5(m0.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function s(c){c=Uo(c);var d=c.fill,p=c.align,y=c.sign,h=c.symbol,x=c.zero,m=c.width,v=c.comma,g=c.precision,S=c.trim,b=c.type;b==="n"?(v=!0,b="g"):v0[b]||(g===void 0&&(g=12),S=!0,b="g"),(x||d==="0"&&p==="=")&&(x=!0,d="0",p="=");var w=h==="$"?r:h==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",O=h==="$"?n:/[%p]/.test(b)?o:"",_=v0[b],P=/[defgprs%]/.test(b);g=g===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g));function T($){var k=w,M=O,D,N,R;if(b==="c")M=_($)+M,$="";else{$=+$;var L=$<0||1/$<0;if($=isNaN($)?u:_(Math.abs($),g),S&&($=l5($)),L&&+$==0&&y!=="+"&&(L=!1),k=(L?y==="("?y:l:y==="-"||y==="("?"":y)+k,M=(b==="s"?g0[8+yO/3]:"")+M+(L&&y==="("?")":""),P){for(D=-1,N=$.length;++DR||R>57){M=(R===46?i+$.slice(D+1):$.slice(D))+M,$=$.slice(0,D);break}}}v&&!x&&($=t($,1/0));var j=k.length+$.length+M.length,I=j>1)+k+$+M+I.slice(j);break;default:$=I+k+$+M;break}return a($)}return T.toString=function(){return c+""},T}function f(c,d){var p=s((c=Uo(c),c.type="f",c)),y=Math.max(-8,Math.min(8,Math.floor(Yi(d)/3)))*3,h=Math.pow(10,-y),x=g0[8+y/3];return function(m){return p(h*m)+x}}return{format:s,formatPrefix:f}}var Zl,Xv,mO;c5({thousands:",",grouping:[3],currency:["$",""]});function c5(e){return Zl=s5(e),Xv=Zl.format,mO=Zl.formatPrefix,Zl}function f5(e){return Math.max(0,-Yi(Math.abs(e)))}function d5(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Yi(t)/3)))*3-Yi(Math.abs(e)))}function p5(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Yi(t)-Yi(e))+1}function gO(e,t,r,n){var i=_p(e,t,r),a;switch(n=Uo(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=d5(i,o))&&(n.precision=a),mO(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=p5(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=f5(i))&&(n.precision=a-(n.type==="%")*2);break}}return Xv(n)}function bn(e){var t=e.domain;return e.ticks=function(r){var n=t();return Sp(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return gO(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],l=n[a],u,s,f=10;for(l0;){if(s=Op(o,l,r),s===u)return n[i]=o,n[a]=l,t(n);if(s>0)o=Math.floor(o/s)*s,l=Math.ceil(l/s)*s;else if(s<0)o=Math.ceil(o*s)/s,l=Math.floor(l*s)/s;else break;u=s}return e},e}function ss(){var e=qv();return e.copy=function(){return Sl(e,ss())},Gt.apply(e,arguments),bn(e)}function bO(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,ls),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return bO(e).unknown(t)},e=arguments.length?Array.from(e,ls):[0,1],bn(r)}function xO(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return aMath.pow(e,t)}function g5(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 w0(e){return(t,r)=>-e(-t,r)}function Yv(e){const t=e(b0,x0),r=t.domain;let n=10,i,a;function o(){return i=g5(n),a=m5(n),r()[0]<0?(i=w0(i),a=w0(a),e(h5,v5)):e(b0,x0),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(r(l),o()):r()},t.ticks=l=>{const u=r();let s=u[0],f=u[u.length-1];const c=f0){for(;d<=p;++d)for(y=1;yf)break;m.push(h)}}else for(;d<=p;++d)for(y=n-1;y>=1;--y)if(h=d>0?y/a(-d):y*a(d),!(hf)break;m.push(h)}m.length*2{if(l==null&&(l=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=Uo(u)).precision==null&&(u.trim=!0),u=Xv(u)),l===1/0)return u;const s=Math.max(1,n*l/t.ticks().length);return f=>{let c=f/a(Math.round(i(f)));return c*nr(xO(r(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function wO(){const e=Yv(Ac()).domain([1,10]);return e.copy=()=>Sl(e,wO()).base(e.base()),Gt.apply(e,arguments),e}function S0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function O0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Qv(e){var t=1,r=e(S0(t),O0(t));return r.constant=function(n){return arguments.length?e(S0(t=+n),O0(t)):t},bn(r)}function SO(){var e=Qv(Ac());return e.copy=function(){return Sl(e,SO()).constant(e.constant())},Gt.apply(e,arguments)}function _0(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function b5(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function x5(e){return e<0?-e*e:e*e}function Zv(e){var t=e(ct,ct),r=1;function n(){return r===1?e(ct,ct):r===.5?e(b5,x5):e(_0(r),_0(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},bn(t)}function Jv(){var e=Zv(Ac());return e.copy=function(){return Sl(e,Jv()).exponent(e.exponent())},Gt.apply(e,arguments),e}function w5(){return Jv.apply(null,arguments).exponent(.5)}function P0(e){return Math.sign(e)*e*e}function S5(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function OO(){var e=qv(),t=[0,1],r=!1,n;function i(a){var o=S5(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(P0(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,ls)).map(P0)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return OO(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Gt.apply(i,arguments),bn(i)}function _O(){var e=[],t=[],r=[],n;function i(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o0?r[l-1]:e[0],l=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return PO().domain([e,t]).range(i).unknown(a)},Gt.apply(bn(o),arguments)}function AO(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[xl(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=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?(r=a,i):r},i.copy=function(){return AO().domain(e).range(t).unknown(r)},Gt.apply(i,arguments)}const Ff=new Date,Uf=new Date;function Ve(e,t,r,n){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),l=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const u=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a0))return u;let s;do u.push(s=new Date(+a)),t(a,l),e(a);while(sVe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Ff.setTime(+a),Uf.setTime(+o),e(Ff),e(Uf),Math.floor(r(Ff,Uf))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const cs=Ve(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);cs.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ve(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):cs);cs.range;const Or=1e3,Ft=Or*60,_r=Ft*60,Nr=_r*24,ey=Nr*7,A0=Nr*30,Wf=Nr*365,Ln=Ve(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Or)},(e,t)=>(t-e)/Or,e=>e.getUTCSeconds());Ln.range;const ty=Ve(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Or)},(e,t)=>{e.setTime(+e+t*Ft)},(e,t)=>(t-e)/Ft,e=>e.getMinutes());ty.range;const ry=Ve(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ft)},(e,t)=>(t-e)/Ft,e=>e.getUTCMinutes());ry.range;const ny=Ve(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Or-e.getMinutes()*Ft)},(e,t)=>{e.setTime(+e+t*_r)},(e,t)=>(t-e)/_r,e=>e.getHours());ny.range;const iy=Ve(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*_r)},(e,t)=>(t-e)/_r,e=>e.getUTCHours());iy.range;const Ol=Ve(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ft)/Nr,e=>e.getDate()-1);Ol.range;const Ec=Ve(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Nr,e=>e.getUTCDate()-1);Ec.range;const EO=Ve(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Nr,e=>Math.floor(e/Nr));EO.range;function ni(e){return Ve(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ft)/ey)}const $c=ni(0),fs=ni(1),O5=ni(2),_5=ni(3),Qi=ni(4),P5=ni(5),A5=ni(6);$c.range;fs.range;O5.range;_5.range;Qi.range;P5.range;A5.range;function ii(e){return Ve(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/ey)}const Tc=ii(0),ds=ii(1),E5=ii(2),$5=ii(3),Zi=ii(4),T5=ii(5),j5=ii(6);Tc.range;ds.range;E5.range;$5.range;Zi.range;T5.range;j5.range;const ay=Ve(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());ay.range;const oy=Ve(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());oy.range;const Ir=Ve(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());Ir.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ve(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Ir.range;const Dr=Ve(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());Dr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ve(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Dr.range;function $O(e,t,r,n,i,a){const o=[[Ln,1,Or],[Ln,5,5*Or],[Ln,15,15*Or],[Ln,30,30*Or],[a,1,Ft],[a,5,5*Ft],[a,15,15*Ft],[a,30,30*Ft],[i,1,_r],[i,3,3*_r],[i,6,6*_r],[i,12,12*_r],[n,1,Nr],[n,2,2*Nr],[r,1,ey],[t,1,A0],[t,3,3*A0],[e,1,Wf]];function l(s,f,c){const d=fx).right(o,d);if(p===o.length)return e.every(_p(s/Wf,f/Wf,c));if(p===0)return cs.every(Math.max(_p(s,f,c),1));const[y,h]=o[d/o[p-1][2]53)return null;"w"in z||(z.w=1),"Z"in z?(ae=Vf(za(z.y,0,1)),Le=ae.getUTCDay(),ae=Le>4||Le===0?ds.ceil(ae):ds(ae),ae=Ec.offset(ae,(z.V-1)*7),z.y=ae.getUTCFullYear(),z.m=ae.getUTCMonth(),z.d=ae.getUTCDate()+(z.w+6)%7):(ae=Hf(za(z.y,0,1)),Le=ae.getDay(),ae=Le>4||Le===0?fs.ceil(ae):fs(ae),ae=Ol.offset(ae,(z.V-1)*7),z.y=ae.getFullYear(),z.m=ae.getMonth(),z.d=ae.getDate()+(z.w+6)%7)}else("W"in z||"U"in z)&&("w"in z||(z.w="u"in z?z.u%7:"W"in z?1:0),Le="Z"in z?Vf(za(z.y,0,1)).getUTCDay():Hf(za(z.y,0,1)).getDay(),z.m=0,z.d="W"in z?(z.w+6)%7+z.W*7-(Le+5)%7:z.w+z.U*7-(Le+6)%7);return"Z"in z?(z.H+=z.Z/100|0,z.M+=z.Z%100,Vf(z)):Hf(z)}}function _(K,J,ee,z){for(var je=0,ae=J.length,Le=ee.length,Be,vt;je=Le)return-1;if(Be=J.charCodeAt(je++),Be===37){if(Be=J.charAt(je++),vt=b[Be in E0?J.charAt(je++):Be],!vt||(z=vt(K,ee,z))<0)return-1}else if(Be!=ee.charCodeAt(z++))return-1}return z}function P(K,J,ee){var z=s.exec(J.slice(ee));return z?(K.p=f.get(z[0].toLowerCase()),ee+z[0].length):-1}function T(K,J,ee){var z=p.exec(J.slice(ee));return z?(K.w=y.get(z[0].toLowerCase()),ee+z[0].length):-1}function $(K,J,ee){var z=c.exec(J.slice(ee));return z?(K.w=d.get(z[0].toLowerCase()),ee+z[0].length):-1}function k(K,J,ee){var z=m.exec(J.slice(ee));return z?(K.m=v.get(z[0].toLowerCase()),ee+z[0].length):-1}function M(K,J,ee){var z=h.exec(J.slice(ee));return z?(K.m=x.get(z[0].toLowerCase()),ee+z[0].length):-1}function D(K,J,ee){return _(K,t,J,ee)}function N(K,J,ee){return _(K,r,J,ee)}function R(K,J,ee){return _(K,n,J,ee)}function L(K){return o[K.getDay()]}function j(K){return a[K.getDay()]}function I(K){return u[K.getMonth()]}function F(K){return l[K.getMonth()]}function V(K){return i[+(K.getHours()>=12)]}function W(K){return 1+~~(K.getMonth()/3)}function X(K){return o[K.getUTCDay()]}function ie(K){return a[K.getUTCDay()]}function _e(K){return u[K.getUTCMonth()]}function Me(K){return l[K.getUTCMonth()]}function Mt(K){return i[+(K.getUTCHours()>=12)]}function ht(K){return 1+~~(K.getUTCMonth()/3)}return{format:function(K){var J=w(K+="",g);return J.toString=function(){return K},J},parse:function(K){var J=O(K+="",!1);return J.toString=function(){return K},J},utcFormat:function(K){var J=w(K+="",S);return J.toString=function(){return K},J},utcParse:function(K){var J=O(K+="",!0);return J.toString=function(){return K},J}}}var E0={"-":"",_:" ",0:"0"},Ye=/^\s*\d+/,D5=/^%/,R5=/[\\^$*+?|[\]().{}]/g;function le(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a[t.toLowerCase(),r]))}function B5(e,t,r){var n=Ye.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function z5(e,t,r){var n=Ye.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function F5(e,t,r){var n=Ye.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function U5(e,t,r){var n=Ye.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function W5(e,t,r){var n=Ye.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function $0(e,t,r){var n=Ye.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function T0(e,t,r){var n=Ye.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function H5(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function V5(e,t,r){var n=Ye.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function K5(e,t,r){var n=Ye.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function j0(e,t,r){var n=Ye.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function q5(e,t,r){var n=Ye.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function k0(e,t,r){var n=Ye.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function G5(e,t,r){var n=Ye.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function X5(e,t,r){var n=Ye.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Y5(e,t,r){var n=Ye.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Q5(e,t,r){var n=Ye.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Z5(e,t,r){var n=D5.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function J5(e,t,r){var n=Ye.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function e6(e,t,r){var n=Ye.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function C0(e,t){return le(e.getDate(),t,2)}function t6(e,t){return le(e.getHours(),t,2)}function r6(e,t){return le(e.getHours()%12||12,t,2)}function n6(e,t){return le(1+Ol.count(Ir(e),e),t,3)}function TO(e,t){return le(e.getMilliseconds(),t,3)}function i6(e,t){return TO(e,t)+"000"}function a6(e,t){return le(e.getMonth()+1,t,2)}function o6(e,t){return le(e.getMinutes(),t,2)}function l6(e,t){return le(e.getSeconds(),t,2)}function u6(e){var t=e.getDay();return t===0?7:t}function s6(e,t){return le($c.count(Ir(e)-1,e),t,2)}function jO(e){var t=e.getDay();return t>=4||t===0?Qi(e):Qi.ceil(e)}function c6(e,t){return e=jO(e),le(Qi.count(Ir(e),e)+(Ir(e).getDay()===4),t,2)}function f6(e){return e.getDay()}function d6(e,t){return le(fs.count(Ir(e)-1,e),t,2)}function p6(e,t){return le(e.getFullYear()%100,t,2)}function h6(e,t){return e=jO(e),le(e.getFullYear()%100,t,2)}function v6(e,t){return le(e.getFullYear()%1e4,t,4)}function y6(e,t){var r=e.getDay();return e=r>=4||r===0?Qi(e):Qi.ceil(e),le(e.getFullYear()%1e4,t,4)}function m6(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+le(t/60|0,"0",2)+le(t%60,"0",2)}function M0(e,t){return le(e.getUTCDate(),t,2)}function g6(e,t){return le(e.getUTCHours(),t,2)}function b6(e,t){return le(e.getUTCHours()%12||12,t,2)}function x6(e,t){return le(1+Ec.count(Dr(e),e),t,3)}function kO(e,t){return le(e.getUTCMilliseconds(),t,3)}function w6(e,t){return kO(e,t)+"000"}function S6(e,t){return le(e.getUTCMonth()+1,t,2)}function O6(e,t){return le(e.getUTCMinutes(),t,2)}function _6(e,t){return le(e.getUTCSeconds(),t,2)}function P6(e){var t=e.getUTCDay();return t===0?7:t}function A6(e,t){return le(Tc.count(Dr(e)-1,e),t,2)}function CO(e){var t=e.getUTCDay();return t>=4||t===0?Zi(e):Zi.ceil(e)}function E6(e,t){return e=CO(e),le(Zi.count(Dr(e),e)+(Dr(e).getUTCDay()===4),t,2)}function $6(e){return e.getUTCDay()}function T6(e,t){return le(ds.count(Dr(e)-1,e),t,2)}function j6(e,t){return le(e.getUTCFullYear()%100,t,2)}function k6(e,t){return e=CO(e),le(e.getUTCFullYear()%100,t,2)}function C6(e,t){return le(e.getUTCFullYear()%1e4,t,4)}function M6(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Zi(e):Zi.ceil(e),le(e.getUTCFullYear()%1e4,t,4)}function N6(){return"+0000"}function N0(){return"%"}function I0(e){return+e}function D0(e){return Math.floor(+e/1e3)}var si,MO,NO;I6({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 I6(e){return si=I5(e),MO=si.format,si.parse,NO=si.utcFormat,si.utcParse,si}function D6(e){return new Date(e)}function R6(e){return e instanceof Date?+e:+new Date(+e)}function ly(e,t,r,n,i,a,o,l,u,s){var f=qv(),c=f.invert,d=f.domain,p=s(".%L"),y=s(":%S"),h=s("%I:%M"),x=s("%I %p"),m=s("%a %d"),v=s("%b %d"),g=s("%B"),S=s("%Y");function b(w){return(u(w)t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>A8(e,a/n))},r.copy=function(){return LO(t).domain(e)},Ur.apply(r,arguments)}function kc(){var e=0,t=.5,r=1,n=1,i,a,o,l,u,s=ct,f,c=!1,d;function p(h){return isNaN(h=+h)?d:(h=.5+((h=+f(h))-a)*(n*ht}var UO=H6,V6=Cc,K6=UO,q6=Pa;function G6(e){return e&&e.length?V6(e,q6,K6):void 0}var X6=G6;const Mc=pe(X6);function Y6(e,t){return ee.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=ne.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};G.decimalPlaces=G.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Se;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};G.dividedBy=G.div=function(e){return Tr(this,new this.constructor(e))};G.dividedToIntegerBy=G.idiv=function(e){var t=this,r=t.constructor;return he(Tr(t,new r(e),0,1),r.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,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(At))throw Error(Kt+"NaN");if(r.s<1)throw Error(Kt+(r.s?"NaN":"-Infinity"));return r.eq(At)?new n(0):(Ae=!1,t=Tr(Wo(r,a),Wo(e,a),a),Ae=!0,he(t,i))};G.minus=G.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?qO(t,e):VO(t,(e.s=-e.s,e))};G.modulo=G.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Kt+"NaN");return r.s?(Ae=!1,t=Tr(r,e,0,1).times(e),Ae=!0,r.minus(t)):he(new n(r),i)};G.naturalExponential=G.exp=function(){return KO(this)};G.naturalLogarithm=G.ln=function(){return Wo(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?VO(t,e):qO(t,(e.s=-e.s,e))};G.precision=G.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Wn+e);if(t=Re(i)+1,n=i.d.length-1,r=n*Se+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};G.squareRoot=G.sqrt=function(){var e,t,r,n,i,a,o,l=this,u=l.constructor;if(l.s<1){if(!l.s)return new u(0);throw Error(Kt+"NaN")}for(e=Re(l),Ae=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=sr(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=$a((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),n=new u(t)):n=new u(i.toString()),r=u.precision,i=o=r+3;;)if(a=n,n=a.plus(Tr(l,a,o+2)).times(.5),sr(a.d).slice(0,o)===(t=sr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(he(a,r+1,0),a.times(a).eq(l)){n=a;break}}else if(t!="9999")break;o+=4}return Ae=!0,he(n,r)};G.times=G.mul=function(e){var t,r,n,i,a,o,l,u,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,r=f.e+e.e,u=d.length,s=p.length,u=0;){for(t=0,i=u+n;i>n;)l=a[i]+p[n]*d[i-n-1]+t,a[i--]=l%Ke|0,t=l/Ke|0;a[i]=(a[i]+t)%Ke|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Ae?he(e,c.precision):e};G.toDecimalPlaces=G.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(hr(e,0,Ea),t===void 0?t=n.rounding:hr(t,0,8),he(r,e+Re(r)+1,t))};G.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Zn(n,!0):(hr(e,0,Ea),t===void 0?t=i.rounding:hr(t,0,8),n=he(new i(n),e+1,t),r=Zn(n,!0,e+1)),r};G.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Zn(i):(hr(e,0,Ea),t===void 0?t=a.rounding:hr(t,0,8),n=he(new a(i),e+Re(i)+1,t),r=Zn(n.abs(),!1,e+Re(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};G.toInteger=G.toint=function(){var e=this,t=e.constructor;return he(new t(e),Re(e)+1,t.rounding)};G.toNumber=function(){return+this};G.toPower=G.pow=function(e){var t,r,n,i,a,o,l=this,u=l.constructor,s=12,f=+(e=new u(e));if(!e.s)return new u(At);if(l=new u(l),!l.s){if(e.s<1)throw Error(Kt+"Infinity");return l}if(l.eq(At))return l;if(n=u.precision,e.eq(At))return he(l,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=l.s,o){if((r=f<0?-f:f)<=HO){for(i=new u(At),t=Math.ceil(n/Se+4),Ae=!1;r%2&&(i=i.times(l),B0(i.d,t)),r=$a(r/2),r!==0;)l=l.times(l),B0(l.d,t);return Ae=!0,e.s<0?new u(At).div(i):he(i,n)}}else if(a<0)throw Error(Kt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,l.s=1,Ae=!1,i=e.times(Wo(l,n+s)),Ae=!0,i=KO(i),i.s=a,i};G.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Re(i),n=Zn(i,r<=a.toExpNeg||r>=a.toExpPos)):(hr(e,1,Ea),t===void 0?t=a.rounding:hr(t,0,8),i=he(new a(i),e,t),r=Re(i),n=Zn(i,e<=r||r<=a.toExpNeg,e)),n};G.toSignificantDigits=G.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(hr(e,1,Ea),t===void 0?t=n.rounding:hr(t,0,8)),he(new n(r),e,t)};G.toString=G.valueOf=G.val=G.toJSON=G[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Re(e),r=e.constructor;return Zn(e,t<=r.toExpNeg||t>=r.toExpPos)};function VO(e,t){var r,n,i,a,o,l,u,s,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Ae?he(t,c):t;if(u=e.d,s=t.d,o=e.e,i=t.e,u=u.slice(),a=o-i,a){for(a<0?(n=u,a=-a,l=s.length):(n=s,i=o,l=u.length),o=Math.ceil(c/Se),l=o>l?o+1:l+1,a>l&&(a=l,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(l=u.length,a=s.length,l-a<0&&(a=l,n=s,s=u,u=n),r=0;a;)r=(u[--a]=u[a]+s[a]+r)/Ke|0,u[a]%=Ke;for(r&&(u.unshift(r),++i),l=u.length;u[--l]==0;)u.pop();return t.d=u,t.e=i,Ae?he(t,c):t}function hr(e,t,r){if(e!==~~e||er)throw Error(Wn+e)}function sr(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(l=u=0;li[l]?1:-1;break}return u}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]1;)n.shift()}return function(n,i,a,o){var l,u,s,f,c,d,p,y,h,x,m,v,g,S,b,w,O,_,P=n.constructor,T=n.s==i.s?1:-1,$=n.d,k=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(Kt+"Division by zero");for(u=n.e-i.e,O=k.length,b=$.length,p=new P(T),y=p.d=[],s=0;k[s]==($[s]||0);)++s;if(k[s]>($[s]||0)&&--u,a==null?v=a=P.precision:o?v=a+(Re(n)-Re(i))+1:v=a,v<0)return new P(0);if(v=v/Se+2|0,s=0,O==1)for(f=0,k=k[0],v++;(s1&&(k=e(k,f),$=e($,f),O=k.length,b=$.length),S=O,h=$.slice(0,O),x=h.length;x=Ke/2&&++w;do f=0,l=t(k,h,O,x),l<0?(m=h[0],O!=x&&(m=m*Ke+(h[1]||0)),f=m/w|0,f>1?(f>=Ke&&(f=Ke-1),c=e(k,f),d=c.length,x=h.length,l=t(c,h,d,x),l==1&&(f--,r(c,O16)throw Error(cy+Re(e));if(!e.s)return new f(At);for(t==null?(Ae=!1,l=c):l=t,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(kn(2,s))/Math.LN10*2+5|0,l+=n,r=i=a=new f(At),f.precision=l;;){if(i=he(i.times(e),l),r=r.times(++u),o=a.plus(Tr(i,r,l)),sr(o.d).slice(0,l)===sr(a.d).slice(0,l)){for(;s--;)a=he(a.times(a),l);return f.precision=c,t==null?(Ae=!0,he(a,c)):a}a=o}}function Re(e){for(var t=e.e*Se,r=e.d[0];r>=10;r/=10)t++;return t}function Kf(e,t,r){if(t>e.LN10.sd())throw Ae=!0,r&&(e.precision=r),Error(Kt+"LN10 precision limit exceeded");return he(new e(e.LN10),t)}function Xr(e){for(var t="";e--;)t+="0";return t}function Wo(e,t){var r,n,i,a,o,l,u,s,f,c=1,d=10,p=e,y=p.d,h=p.constructor,x=h.precision;if(p.s<1)throw Error(Kt+(p.s?"NaN":"-Infinity"));if(p.eq(At))return new h(0);if(t==null?(Ae=!1,s=x):s=t,p.eq(10))return t==null&&(Ae=!0),Kf(h,s);if(s+=d,h.precision=s,r=sr(y),n=r.charAt(0),a=Re(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=sr(p.d),n=r.charAt(0),c++;a=Re(p),n>1?(p=new h("0."+r),a++):p=new h(n+"."+r.slice(1))}else return u=Kf(h,s+2,x).times(a+""),p=Wo(new h(n+"."+r.slice(1)),s-d).plus(u),h.precision=x,t==null?(Ae=!0,he(p,x)):p;for(l=o=p=Tr(p.minus(At),p.plus(At),s),f=he(p.times(p),s),i=3;;){if(o=he(o.times(f),s),u=l.plus(Tr(o,new h(i),s)),sr(u.d).slice(0,s)===sr(l.d).slice(0,s))return l=l.times(2),a!==0&&(l=l.plus(Kf(h,s+2,x).times(a+""))),l=Tr(l,new h(c),s),h.precision=x,t==null?(Ae=!0,he(l,x)):l;l=u,i+=2}}function L0(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=$a(r/Se),e.d=[],n=(r+1)%Se,r<0&&(n+=Se),nps||e.e<-ps))throw Error(cy+r)}else e.s=0,e.e=0,e.d=[0];return e}function he(e,t,r){var n,i,a,o,l,u,s,f,c=e.d;for(o=1,a=c[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Se,i=t,s=c[f=0];else{if(f=Math.ceil((n+1)/Se),a=c.length,f>=a)return e;for(s=a=c[f],o=1;a>=10;a/=10)o++;n%=Se,i=n-Se+o}if(r!==void 0&&(a=kn(10,o-i-1),l=s/a%10|0,u=t<0||c[f+1]!==void 0||s%a,u=r<4?(l||u)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||u||r==6&&(n>0?i>0?s/kn(10,o-i):0:c[f-1])%10&1||r==(e.s<0?8:7))),t<1||!c[0])return u?(a=Re(e),c.length=1,t=t-a-1,c[0]=kn(10,(Se-t%Se)%Se),e.e=$a(-t/Se)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(n==0?(c.length=f,a=1,f--):(c.length=f+1,a=kn(10,Se-n),c[f]=i>0?(s/kn(10,o-i)%kn(10,i)|0)*a:0),u)for(;;)if(f==0){(c[0]+=a)==Ke&&(c[0]=1,++e.e);break}else{if(c[f]+=a,c[f]!=Ke)break;c[f--]=0,a=1}for(n=c.length;c[--n]===0;)c.pop();if(Ae&&(e.e>ps||e.e<-ps))throw Error(cy+Re(e));return e}function qO(e,t){var r,n,i,a,o,l,u,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),Ae?he(t,p):t;if(u=e.d,c=t.d,n=t.e,s=e.e,u=u.slice(),o=s-n,o){for(f=o<0,f?(r=u,o=-o,l=c.length):(r=c,n=s,l=u.length),i=Math.max(Math.ceil(p/Se),l)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=u.length,l=c.length,f=i0;--i)u[l++]=0;for(i=c.length;i>o;){if(u[--i]0?a=a.charAt(0)+"."+a.slice(1)+Xr(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Xr(-i-1)+a,r&&(n=r-o)>0&&(a+=Xr(n))):i>=o?(a+=Xr(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Xr(n))):((n=i+1)0&&(i+1===o&&(a+="."),a+=Xr(n))),e.s<0?"-"+a:a}function B0(e,t){if(e.length>t)return e.length=t,!0}function GO(e){var t,r,n;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(Wn+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 L0(o,a.toString())}else if(typeof a!="string")throw Error(Wn+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,mz.test(a))L0(o,a);else throw Error(Wn+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=GO,i.config=i.set=gz,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Wn+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Wn+r+": "+n);return this}var fy=GO(yz);At=new fy(1);const de=fy;function bz(e){return Oz(e)||Sz(e)||wz(e)||xz()}function xz(){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 wz(e,t){if(e){if(typeof e=="string")return Tp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tp(e,t)}}function Sz(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Oz(e){if(Array.isArray(e))return Tp(e)}function Tp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,i):e(t-o,z0(function(){for(var l=arguments.length,u=new Array(l),s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(n=(l=o.next()).done)&&(r.push(l.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function Lz(e){if(Array.isArray(e))return e}function JO(e){var t=Ho(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function e_(e,t,r){if(e.lte(0))return new de(0);var n=Rc.getDigitCount(e.toNumber()),i=new de(10).pow(n),a=e.div(i),o=n!==1?.05:.1,l=new de(Math.ceil(a.div(o).toNumber())).add(r).mul(o),u=l.mul(i);return t?u:new de(Math.ceil(u))}function Bz(e,t,r){var n=1,i=new de(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new de(10).pow(Rc.getDigitCount(e)-1),i=new de(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new de(Math.floor(e)))}else e===0?i=new de(Math.floor((t-1)/2)):r||(i=new de(Math.floor(e)));var o=Math.floor((t-1)/2),l=Ez(Az(function(u){return i.add(new de(u-o).mul(n)).toNumber()}),jp);return l(0,t)}function t_(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new de(0),tickMin:new de(0),tickMax:new de(0)};var a=e_(new de(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new de(0):(o=new de(e).add(t).div(2),o=o.sub(new de(o).mod(a)));var l=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new de(t).sub(o).div(a).toNumber()),s=l+u+1;return s>r?t_(e,t,r,n,i+1):(s0?u+(r-s):u,l=t>0?l:l+(r-s)),{step:a,tickMin:o.sub(new de(l).mul(a)),tickMax:o.add(new de(u).mul(a))})}function zz(e){var t=Ho(e,2),r=t[0],n=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),l=JO([r,n]),u=Ho(l,2),s=u[0],f=u[1];if(s===-1/0||f===1/0){var c=f===1/0?[s].concat(Cp(jp(0,i-1).map(function(){return 1/0}))):[].concat(Cp(jp(0,i-1).map(function(){return-1/0})),[f]);return r>n?kp(c):c}if(s===f)return Bz(s,i,a);var d=t_(s,f,o,a),p=d.step,y=d.tickMin,h=d.tickMax,x=Rc.rangeStep(y,h.add(new de(.1).mul(p)),p);return r>n?kp(x):x}function Fz(e,t){var r=Ho(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=JO([n,i]),l=Ho(o,2),u=l[0],s=l[1];if(u===-1/0||s===1/0)return[n,i];if(u===s)return[u];var f=Math.max(t,2),c=e_(new de(s).sub(u).div(f-1),a,0),d=[].concat(Cp(Rc.rangeStep(new de(u),new de(s).sub(new de(.99).mul(c)),c)),[s]);return n>i?kp(d):d}var Uz=QO(zz),Wz=QO(Fz),Hz="Invariant failed";function Jn(e,t){throw new Error(Hz)}var Vz=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ji(e){"@babel/helpers - typeof";return Ji=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},Ji(e)}function hs(){return hs=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Zz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Jz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eF(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,l=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var u=a.range,s=0;s0?i[s-1].coordinate:i[l-1].coordinate,c=i[s].coordinate,d=s>=l-1?i[0].coordinate:i[s+1].coordinate,p=void 0;if(ut(c-f)!==ut(d-c)){var y=[];if(ut(d-c)===ut(u[1]-u[0])){p=d;var h=c+u[1]-u[0];y[0]=Math.min(h,(h+f)/2),y[1]=Math.max(h,(h+f)/2)}else{p=f;var x=d+u[1]-u[0];y[0]=Math.min(c,(x+c)/2),y[1]=Math.max(c,(x+c)/2)}var m=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(t>m[0]&&t<=m[1]||t>=y[0]&&t<=y[1]){o=i[s].index;break}}else{var v=Math.min(f,d),g=Math.max(f,d);if(t>(v+c)/2&&t<=(g+c)/2){o=i[s].index;break}}}else for(var S=0;S0&&S(n[S].coordinate+n[S-1].coordinate)/2&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S===l-1&&t>(n[S].coordinate+n[S-1].coordinate)/2){o=n[S].index;break}return o},dy=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ce(Ce({},t.type.defaultProps),t.props):t.props,o=a.stroke,l=a.fill,u;switch(i){case"Line":u=o;break;case"Area":case"Radar":u=o&&o!=="none"?o:l;break;default:u=l;break}return u},mF=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},l=Object.keys(a),u=0,s=l.length;u=0});if(m&&m.length){var v=m[0].type.defaultProps,g=v!==void 0?Ce(Ce({},v),m[0].props):m[0].props,S=g.barSize,b=g[x];o[b]||(o[b]=[]);var w=re(S)?r:S;o[b].push({item:m[0],stackList:m.slice(1),barSize:re(w)?void 0:st(w,n,0)})}}return o},gF=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,l=t.maxBarSize,u=o.length;if(u<1)return null;var s=st(r,i,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/u,y=o.reduce(function(S,b){return S+b.barSize||0},0);y+=(u-1)*s,y>=i&&(y-=(u-1)*s,s=0),y>=i&&p>0&&(d=!0,p*=.9,y=u*p);var h=(i-y)/2>>0,x={offset:h-s,size:0};f=o.reduce(function(S,b){var w={item:b.item,position:{offset:x.offset+x.size+s,size:d?p:b.barSize}},O=[].concat(W0(S),[w]);return x=O[O.length-1].position,b.stackList&&b.stackList.length&&b.stackList.forEach(function(_){O.push({item:_,position:x})}),O},c)}else{var m=st(n,i,0,!0);i-2*m-(u-1)*s<=0&&(s=0);var v=(i-2*m-(u-1)*s)/u;v>1&&(v>>=0);var g=l===+l?Math.min(v,l):v;f=o.reduce(function(S,b,w){var O=[].concat(W0(S),[{item:b.item,position:{offset:m+(v+s)*w+(v-g)/2,size:g}}]);return b.stackList&&b.stackList.length&&b.stackList.forEach(function(_){O.push({item:_,position:O[O.length-1].position})}),O},c)}return f},bF=function(t,r,n,i){var a=n.children,o=n.width,l=n.margin,u=o-(l.left||0)-(l.right||0),s=a_({children:a,legendWidth:u});if(s){var f=i||{},c=f.width,d=f.height,p=s.align,y=s.verticalAlign,h=s.layout;if((h==="vertical"||h==="horizontal"&&y==="middle")&&p!=="center"&&H(t[p]))return Ce(Ce({},t),{},Ri({},p,t[p]+(c||0)));if((h==="horizontal"||h==="vertical"&&p==="center")&&y!=="middle"&&H(t[y]))return Ce(Ce({},t),{},Ri({},y,t[y]+(d||0)))}return t},xF=function(t,r,n){return re(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},o_=function(t,r,n,i,a){var o=r.props.children,l=Wt(o,Lc).filter(function(s){return xF(i,a,s.props.direction)});if(l&&l.length){var u=l.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var c=at(f,n);if(re(c))return s;var d=Array.isArray(c)?[Nc(c),Mc(c)]:[c,c],p=u.reduce(function(y,h){var x=at(f,h,0),m=d[0]-Math.abs(Array.isArray(x)?x[0]:x),v=d[1]+Math.abs(Array.isArray(x)?x[1]:x);return[Math.min(m,y[0]),Math.max(v,y[1])]},[1/0,-1/0]);return[Math.min(p[0],s[0]),Math.max(p[1],s[1])]},[1/0,-1/0])}return null},wF=function(t,r,n,i,a){var o=r.map(function(l){return o_(t,l,n,a,i)}).filter(function(l){return!re(l)});return o&&o.length?o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]):null},l_=function(t,r,n,i,a){var o=r.map(function(u){var s=u.props.dataKey;return n==="number"&&s&&o_(t,u,s,i)||so(t,s,n,a)});if(n==="number")return o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]);var l={};return o.reduce(function(u,s){for(var f=0,c=s.length;f=2?ut(l[0]-l[1])*2*s:s,r&&(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!gl(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&&!n?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}})},qf=new WeakMap,Jl=function(t,r){if(typeof r!="function")return t;qf.has(t)||qf.set(t,new WeakMap);var n=qf.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},s_=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,l=t.axisType;if(i==="auto")return o==="radial"&&l==="radiusAxis"?{scale:Lo(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:ss(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:uo(),realScaleType:"point"}:a==="category"?{scale:Lo(),realScaleType:"band"}:{scale:ss(),realScaleType:"linear"};if(Xn(i)){var u="scale".concat(gc(i));return{scale:(R0[u]||uo)(),realScaleType:R0[u]?u:"point"}}return Z(i)?{scale:i}:{scale:uo(),realScaleType:"point"}},V0=1e-4,c_=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-V0,o=Math.max(i[0],i[1])+V0,l=t(r[0]),u=t(r[n-1]);(lo||uo)&&t.domain([r[0],r[n-1]])}},SF=function(t,r){if(!t)return null;for(var n=0,i=t.length;ni)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]=0?(t[l][n][0]=a,t[l][n][1]=a+u,a=t[l][n][1]):(t[l][n][0]=o,t[l][n][1]=o+u,o=t[l][n][1])}},PF=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n=0?(t[o][n][0]=a,t[o][n][1]=a+l,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},AF={sign:_F,expand:HC,none:Vi,silhouette:VC,wiggle:KC,positive:PF},EF=function(t,r,n){var i=r.map(function(l){return l.props.dataKey}),a=AF[n],o=WC().keys(i).value(function(l,u){return+at(l,u,0)}).order(ap).offset(a);return o(t)},$F=function(t,r,n,i,a,o){if(!t)return null;var l=o?r.reverse():r,u={},s=l.reduce(function(c,d){var p,y=(p=d.type)!==null&&p!==void 0&&p.defaultProps?Ce(Ce({},d.type.defaultProps),d.props):d.props,h=y.stackId,x=y.hide;if(x)return c;var m=y[n],v=c[m]||{hasStack:!1,stackGroups:{}};if(He(h)){var g=v.stackGroups[h]||{numericAxisId:n,cateAxisId:i,items:[]};g.items.push(d),v.hasStack=!0,v.stackGroups[h]=g}else v.stackGroups[bl("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Ce(Ce({},c),{},Ri({},m,v))},u),f={};return Object.keys(s).reduce(function(c,d){var p=s[d];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(h,x){var m=p.stackGroups[x];return Ce(Ce({},h),{},Ri({},x,{numericAxisId:n,cateAxisId:i,items:m.items,stackedData:EF(t,m.items,a)}))},y)}return Ce(Ce({},c),{},Ri({},d,p))},f)},f_=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,l=r.allowDecimals,u=n||r.scale;if(u!=="auto"&&u!=="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=Uz(s,a,l);return t.domain([Nc(f),Mc(f)]),{niceTicks:f}}if(a&&i==="number"){var c=t.domain(),d=Wz(c,a,l);return{niceTicks:d}}return null},K0=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,l=t.index;if(r.type==="category")return n[l]?n[l].coordinate+i:null;var u=at(o,r.dataKey,r.domain[l]);return re(u)?null:r.scale(u)-a/2+i},TF=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},jF=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ce(Ce({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(He(a)){var o=r[a];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},kF=function(t){return t.reduce(function(r,n){return[Nc(n.concat([r[0]]).filter(H)),Mc(n.concat([r[1]]).filter(H))]},[1/0,-1/0])},d_=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],l=o.stackedData,u=l.reduce(function(s,f){var c=kF(f.slice(r,n+1));return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);return[Math.min(u[0],i[0]),Math.max(u[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},q0=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,G0=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Dp=function(t,r,n){if(Z(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(H(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(q0.test(t[0])){var a=+q0.exec(t[0])[1];i[0]=r[0]-a}else Z(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(H(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(G0.test(t[1])){var o=+G0.exec(t[1])[1];i[1]=r[1]+o}else Z(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},ys=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=zv(r,function(c){return c.coordinate}),o=1/0,l=1,u=a.length;le.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},zF=function(t,r,n,i,a){var o=t.width,l=t.height,u=t.startAngle,s=t.endAngle,f=st(t.cx,o,o/2),c=st(t.cy,l,l/2),d=v_(o,l,n),p=st(t.innerRadius,d,0),y=st(t.outerRadius,d,d*.8),h=Object.keys(r);return h.reduce(function(x,m){var v=r[m],g=v.domain,S=v.reversed,b;if(re(v.range))i==="angleAxis"?b=[u,s]:i==="radiusAxis"&&(b=[p,y]),S&&(b=[b[1],b[0]]);else{b=v.range;var w=b,O=NF(w,2);u=O[0],s=O[1]}var _=s_(v,a),P=_.realScaleType,T=_.scale;T.domain(g).range(b),c_(T);var $=f_(T,br(br({},v),{},{realScaleType:P})),k=br(br(br({},v),$),{},{range:b,radius:y,realScaleType:P,scale:T,cx:f,cy:c,innerRadius:p,outerRadius:y,startAngle:u,endAngle:s});return br(br({},x),{},h_({},m,k))},{})},FF=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},UF=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,l=FF({x:n,y:i},{x:a,y:o});if(l<=0)return{radius:l};var u=(n-a)/l,s=Math.acos(u);return i>o&&(s=2*Math.PI-s),{radius:l,angle:BF(s),angleInRadian:s}},WF=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},HF=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),l=Math.min(a,o);return t+l*360},Z0=function(t,r){var n=t.x,i=t.y,a=UF({x:n,y:i},r),o=a.radius,l=a.angle,u=r.innerRadius,s=r.outerRadius;if(os)return!1;if(o===0)return!0;var f=WF(r),c=f.startAngle,d=f.endAngle,p=l,y;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 y?br(br({},r),{},{radius:o,angle:HF(p,r)}):null},y_=function(t){return!B.isValidElement(t)&&!Z(t)&&typeof t!="boolean"?t.className:""};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)}var VF=["offset"];function KF(e){return YF(e)||XF(e)||GF(e)||qF()}function qF(){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 GF(e,t){if(e){if(typeof e=="string")return Rp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rp(e,t)}}function XF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YF(e){if(Array.isArray(e))return Rp(e)}function Rp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ZF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function J0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;t=0?1:-1,g,S;i==="insideStart"?(g=p+v*o,S=h):i==="insideEnd"?(g=y-v*o,S=!h):i==="end"&&(g=y+v*o,S=h),S=m<=0?S:!S;var b=ge(s,f,x,g),w=ge(s,f,x,g+(S?1:-1)*359),O="M".concat(b.x,",").concat(b.y,` + A`).concat(x,",").concat(x,",0,1,").concat(S?0:1,`, + `).concat(w.x,",").concat(w.y),_=re(t.id)?bl("recharts-radial-line-"):t.id;return A.createElement("text",Xo({},n,{dominantBaseline:"central",className:te("recharts-radial-bar-label",l)}),A.createElement("defs",null,A.createElement("path",{id:_,d:O})),A.createElement("textPath",{xlinkHref:"#".concat(_)},r))},aU=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,l=a.cy,u=a.innerRadius,s=a.outerRadius,f=a.startAngle,c=a.endAngle,d=(f+c)/2;if(i==="outside"){var p=ge(o,l,s+n,d),y=p.x,h=p.y;return{x:y,y:h,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var x=(u+s)/2,m=ge(o,l,x,d),v=m.x,g=m.y;return{x:v,y:g,textAnchor:"middle",verticalAnchor:"middle"}},oU=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,l=o.x,u=o.y,s=o.width,f=o.height,c=f>=0?1:-1,d=c*i,p=c>0?"end":"start",y=c>0?"start":"end",h=s>=0?1:-1,x=h*i,m=h>0?"end":"start",v=h>0?"start":"end";if(a==="top"){var g={x:l+s/2,y:u-c*i,textAnchor:"middle",verticalAnchor:p};return Fe(Fe({},g),n?{height:Math.max(u-n.y,0),width:s}:{})}if(a==="bottom"){var S={x:l+s/2,y:u+f+d,textAnchor:"middle",verticalAnchor:y};return Fe(Fe({},S),n?{height:Math.max(n.y+n.height-(u+f),0),width:s}:{})}if(a==="left"){var b={x:l-x,y:u+f/2,textAnchor:m,verticalAnchor:"middle"};return Fe(Fe({},b),n?{width:Math.max(b.x-n.x,0),height:f}:{})}if(a==="right"){var w={x:l+s+x,y:u+f/2,textAnchor:v,verticalAnchor:"middle"};return Fe(Fe({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:f}:{})}var O=n?{width:s,height:f}:{};return a==="insideLeft"?Fe({x:l+x,y:u+f/2,textAnchor:v,verticalAnchor:"middle"},O):a==="insideRight"?Fe({x:l+s-x,y:u+f/2,textAnchor:m,verticalAnchor:"middle"},O):a==="insideTop"?Fe({x:l+s/2,y:u+d,textAnchor:"middle",verticalAnchor:y},O):a==="insideBottom"?Fe({x:l+s/2,y:u+f-d,textAnchor:"middle",verticalAnchor:p},O):a==="insideTopLeft"?Fe({x:l+x,y:u+d,textAnchor:v,verticalAnchor:y},O):a==="insideTopRight"?Fe({x:l+s-x,y:u+d,textAnchor:m,verticalAnchor:y},O):a==="insideBottomLeft"?Fe({x:l+x,y:u+f-d,textAnchor:v,verticalAnchor:p},O):a==="insideBottomRight"?Fe({x:l+s-x,y:u+f-d,textAnchor:m,verticalAnchor:p},O):ba(a)&&(H(a.x)||Dn(a.x))&&(H(a.y)||Dn(a.y))?Fe({x:l+st(a.x,s),y:u+st(a.y,f),textAnchor:"end",verticalAnchor:"end"},O):Fe({x:l+s/2,y:u+f/2,textAnchor:"middle",verticalAnchor:"middle"},O)},lU=function(t){return"cx"in t&&H(t.cx)};function Ge(e){var t=e.offset,r=t===void 0?5:t,n=QF(e,VF),i=Fe({offset:r},n),a=i.viewBox,o=i.position,l=i.value,u=i.children,s=i.content,f=i.className,c=f===void 0?"":f,d=i.textBreakAll;if(!a||re(l)&&re(u)&&!B.isValidElement(s)&&!Z(s))return null;if(B.isValidElement(s))return B.cloneElement(s,i);var p;if(Z(s)){if(p=B.createElement(s,i),B.isValidElement(p))return p}else p=rU(i);var y=lU(a),h=Q(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return iU(i,p,h);var x=y?aU(i):oU(i);return A.createElement(Qn,Xo({className:te("recharts-label",c)},h,x,{breakAll:d}),p)}Ge.displayName="Label";var m_=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,l=t.r,u=t.radius,s=t.innerRadius,f=t.outerRadius,c=t.x,d=t.y,p=t.top,y=t.left,h=t.width,x=t.height,m=t.clockWise,v=t.labelViewBox;if(v)return v;if(H(h)&&H(x)){if(H(c)&&H(d))return{x:c,y:d,width:h,height:x};if(H(p)&&H(y))return{x:p,y,width:h,height:x}}return H(c)&&H(d)?{x:c,y:d,width:0,height:0}:H(r)&&H(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||u||l||0,clockWise:m}:t.viewBox?t.viewBox:{}},uU=function(t,r){return t?t===!0?A.createElement(Ge,{key:"label-implicit",viewBox:r}):He(t)?A.createElement(Ge,{key:"label-implicit",viewBox:r,value:t}):B.isValidElement(t)?t.type===Ge?B.cloneElement(t,{key:"label-implicit",viewBox:r}):A.createElement(Ge,{key:"label-implicit",content:t,viewBox:r}):Z(t)?A.createElement(Ge,{key:"label-implicit",content:t,viewBox:r}):ba(t)?A.createElement(Ge,Xo({viewBox:r},t,{key:"label-implicit"})):null:null},sU=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=m_(t),o=Wt(i,Ge).map(function(u,s){return B.cloneElement(u,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var l=uU(t.label,r||a);return[l].concat(KF(o))};Ge.parseViewBox=m_;Ge.renderCallByParent=sU;function cU(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var fU=cU;const dU=pe(fU);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)}var pU=["valueAccessor"],hU=["data","dataKey","clockWise","id","textBreakAll"];function vU(e){return bU(e)||gU(e)||mU(e)||yU()}function yU(){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 mU(e,t){if(e){if(typeof e=="string")return Lp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lp(e,t)}}function gU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bU(e){if(Array.isArray(e))return Lp(e)}function Lp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function OU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var _U=function(t){return Array.isArray(t.value)?dU(t.value):t.value};function fn(e){var t=e.valueAccessor,r=t===void 0?_U:t,n=r1(e,pU),i=n.data,a=n.dataKey,o=n.clockWise,l=n.id,u=n.textBreakAll,s=r1(n,hU);return!i||!i.length?null:A.createElement(se,{className:"recharts-label-list"},i.map(function(f,c){var d=re(a)?r(f,c):at(f&&f.payload,a),p=re(l)?{}:{id:"".concat(l,"-").concat(c)};return A.createElement(Ge,gs({},Q(f,!0),s,p,{parentViewBox:f.parentViewBox,value:d,textBreakAll:u,viewBox:Ge.parseViewBox(re(o)?f:t1(t1({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}fn.displayName="LabelList";function PU(e,t){return e?e===!0?A.createElement(fn,{key:"labelList-implicit",data:t}):A.isValidElement(e)||Z(e)?A.createElement(fn,{key:"labelList-implicit",data:t,content:e}):ba(e)?A.createElement(fn,gs({data:t},e,{key:"labelList-implicit"})):null:null}function AU(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Wt(n,fn).map(function(o,l){return B.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!r)return i;var a=PU(e.label,t);return[a].concat(vU(i))}fn.renderCallByParent=AU;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 Bp(){return Bp=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=ge(r,n,i,o),y=ge(r,n,i,s);d+="L ".concat(y.x,",").concat(y.y,` + A `).concat(i,",").concat(i,`,0, + `).concat(+(Math.abs(u)>180),",").concat(+(o<=s),`, + `).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},kU=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,u=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,c=ut(f-s),d=eu({cx:r,cy:n,radius:a,angle:s,sign:c,cornerRadius:o,cornerIsExternal:u}),p=d.circleTangency,y=d.lineTangency,h=d.theta,x=eu({cx:r,cy:n,radius:a,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:u}),m=x.circleTangency,v=x.lineTangency,g=x.theta,S=u?Math.abs(s-f):Math.abs(s-f)-h-g;if(S<0)return l?"M ".concat(y.x,",").concat(y.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:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var b="M ".concat(y.x,",").concat(y.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,` + A`).concat(a,",").concat(a,",0,").concat(+(S>180),",").concat(+(c<0),",").concat(m.x,",").concat(m.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(v.x,",").concat(v.y,` + `);if(i>0){var w=eu({cx:r,cy:n,radius:i,angle:s,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),O=w.circleTangency,_=w.lineTangency,P=w.theta,T=eu({cx:r,cy:n,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),$=T.circleTangency,k=T.lineTangency,M=T.theta,D=u?Math.abs(s-f):Math.abs(s-f)-P-M;if(D<0&&o===0)return"".concat(b,"L").concat(r,",").concat(n,"Z");b+="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(+(D>180),",").concat(+(c>0),",").concat(O.x,",").concat(O.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(_.x,",").concat(_.y,"Z")}else b+="L".concat(r,",").concat(n,"Z");return b},CU={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},b_=function(t){var r=i1(i1({},CU),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,l=r.cornerRadius,u=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,c=r.endAngle,d=r.className;if(o0&&Math.abs(f-c)<360?x=kU({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(h,y/2),forceCornerRadius:u,cornerIsExternal:s,startAngle:f,endAngle:c}):x=g_({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:c}),A.createElement("path",Bp({},Q(r,!0),{className:p,d:x,role:"img"}))};function Zo(e){"@babel/helpers - typeof";return Zo=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},Zo(e)}function zp(){return zp=Object.assign?Object.assign.bind():function(e){for(var t=1;t0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function QU(e,t){return ai(e.getTime(),t.getTime())}function ZU(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function JU(e,t){return e===t}function d1(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,l,u=0;(o=a.next())&&!o.done;){for(var s=t.entries(),f=!1,c=0;(l=s.next())&&!l.done;){if(i[c]){c++;continue}var d=o.value,p=l.value;if(r.equals(d[0],p[0],u,c,e,t,r)&&r.equals(d[1],p[1],d[0],p[0],e,t,r)){f=i[c]=!0;break}c++}if(!f)return!1;u++}return!0}var e7=ai;function t7(e,t,r){var n=f1(e),i=n.length;if(f1(t).length!==i)return!1;for(;i-- >0;)if(!O_(e,t,r,n[i]))return!1;return!0}function Va(e,t,r){var n=s1(e),i=n.length;if(s1(t).length!==i)return!1;for(var a,o,l;i-- >0;)if(a=n[i],!O_(e,t,r,a)||(o=c1(e,a),l=c1(t,a),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function r7(e,t){return ai(e.valueOf(),t.valueOf())}function n7(e,t){return e.source===t.source&&e.flags===t.flags}function p1(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,l;(o=a.next())&&!o.done;){for(var u=t.values(),s=!1,f=0;(l=u.next())&&!l.done;){if(!i[f]&&r.equals(o.value,l.value,o.value,l.value,e,t,r)){s=i[f]=!0;break}f++}if(!s)return!1}return!0}function i7(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function a7(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function O_(e,t,r,n){return(n===XU||n===GU||n===qU)&&(e.$$typeof||t.$$typeof)?!0:KU(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var o7="[object Arguments]",l7="[object Boolean]",u7="[object Date]",s7="[object Error]",c7="[object Map]",f7="[object Number]",d7="[object Object]",p7="[object RegExp]",h7="[object Set]",v7="[object String]",y7="[object URL]",m7=Array.isArray,h1=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,v1=Object.assign,g7=Object.prototype.toString.call.bind(Object.prototype.toString);function b7(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,l=e.areObjectsEqual,u=e.arePrimitiveWrappersEqual,s=e.areRegExpsEqual,f=e.areSetsEqual,c=e.areTypedArraysEqual,d=e.areUrlsEqual;return function(y,h,x){if(y===h)return!0;if(y==null||h==null)return!1;var m=typeof y;if(m!==typeof h)return!1;if(m!=="object")return m==="number"?o(y,h,x):m==="function"?i(y,h,x):!1;var v=y.constructor;if(v!==h.constructor)return!1;if(v===Object)return l(y,h,x);if(m7(y))return t(y,h,x);if(h1!=null&&h1(y))return c(y,h,x);if(v===Date)return r(y,h,x);if(v===RegExp)return s(y,h,x);if(v===Map)return a(y,h,x);if(v===Set)return f(y,h,x);var g=g7(y);return g===u7?r(y,h,x):g===p7?s(y,h,x):g===c7?a(y,h,x):g===h7?f(y,h,x):g===d7?typeof y.then!="function"&&typeof h.then!="function"&&l(y,h,x):g===y7?d(y,h,x):g===s7?n(y,h,x):g===o7?l(y,h,x):g===l7||g===f7||g===v7?u(y,h,x):!1}}function x7(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Va:YU,areDatesEqual:QU,areErrorsEqual:ZU,areFunctionsEqual:JU,areMapsEqual:n?u1(d1,Va):d1,areNumbersEqual:e7,areObjectsEqual:n?Va:t7,arePrimitiveWrappersEqual:r7,areRegExpsEqual:n7,areSetsEqual:n?u1(p1,Va):p1,areTypedArraysEqual:n?Va:i7,areUrlsEqual:a7};if(r&&(i=v1({},i,r(i))),t){var a=ru(i.areArraysEqual),o=ru(i.areMapsEqual),l=ru(i.areObjectsEqual),u=ru(i.areSetsEqual);i=v1({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:u})}return i}function w7(e){return function(t,r,n,i,a,o,l){return e(t,r,l)}}function S7(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(u,s){var f=n(),c=f.cache,d=c===void 0?t?new WeakMap:void 0:c,p=f.meta;return r(u,s,{cache:d,equals:i,meta:p,strict:a})};if(t)return function(u,s){return r(u,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(u,s){return r(u,s,o)}}var O7=wn();wn({strict:!0});wn({circular:!0});wn({circular:!0,strict:!0});wn({createInternalComparator:function(){return ai}});wn({strict:!0,createInternalComparator:function(){return ai}});wn({circular:!0,createInternalComparator:function(){return ai}});wn({circular:!0,createInternalComparator:function(){return ai},strict:!0});function wn(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,l=x7(e),u=b7(l),s=n?n(u):w7(u);return S7({circular:r,comparator:u,createState:i,equals:s,strict:o})}function _7(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function y1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):_7(i)};requestAnimationFrame(n)}function Up(e){"@babel/helpers - typeof";return Up=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},Up(e)}function P7(e){return T7(e)||$7(e)||E7(e)||A7()}function A7(){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 E7(e,t){if(e){if(typeof e=="string")return m1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m1(e,t)}}function m1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:m<0?0:m},h=function(m){for(var v=m>1?1:m,g=v,S=0;S<8;++S){var b=c(g)-v,w=p(g);if(Math.abs(b-v)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,l=o===void 0?17:o,u=function(f,c,d){var p=-(f-c)*n,y=d*a,h=d+(p-y)*l/1e3,x=d*l/1e3+f;return Math.abs(x-c)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function o9(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Gf(e){return c9(e)||s9(e)||u9(e)||l9()}function l9(){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 u9(e,t){if(e){if(typeof e=="string")return qp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qp(e,t)}}function s9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function c9(e){if(Array.isArray(e))return qp(e)}function qp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"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 ws(e){return ws=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ws(e)}var Rr=function(e){v9(r,e);var t=y9(r);function r(n,i){var a;f9(this,r),a=t.call(this,n,i);var o=a.props,l=o.isActive,u=o.attributeName,s=o.from,f=o.to,c=o.steps,d=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Yp(a)),a.changeStyle=a.changeStyle.bind(Yp(a)),!l||p<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),Xp(a);if(c&&c.length)a.state={style:c[0].style};else if(s){if(typeof d=="function")return a.state={style:s},Xp(a);a.state={style:u?Qa({},u,s):s}}else a.state={style:{}};return a}return p9(r,[{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,l=a.canBegin,u=a.attributeName,s=a.shouldReAnimate,f=a.to,c=a.from,d=this.state.style;if(l){if(!o){var p={style:u?Qa({},u,f):f};this.state&&d&&(u&&d[u]!==f||!u&&d!==f)&&this.setState(p);return}if(!(O7(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var h=y||s?c:i.to;if(this.state&&d){var x={style:u?Qa({},u,h):h};(u&&d[u]!==h||!u&&d!==h)&&this.setState(x)}this.runAnimation(Yt(Yt({},this.props),{},{from:h,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,l=i.to,u=i.duration,s=i.easing,f=i.begin,c=i.onAnimationEnd,d=i.onAnimationStart,p=n9(o,l,K7(s),u,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([d,f,y,u,c])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,l=i.begin,u=i.onAnimationStart,s=o[0],f=s.style,c=s.duration,d=c===void 0?0:c,p=function(h,x,m){if(m===0)return h;var v=x.duration,g=x.easing,S=g===void 0?"ease":g,b=x.style,w=x.properties,O=x.onAnimationEnd,_=m>0?o[m-1]:x,P=w||Object.keys(b);if(typeof S=="function"||S==="spring")return[].concat(Gf(h),[a.runJSAnimation.bind(a,{from:_.style,to:b,duration:v,easing:S}),v]);var T=x1(P,v,S),$=Yt(Yt(Yt({},_.style),b),{},{transition:T});return[].concat(Gf(h),[$,v,O]).filter(N7)};return this.manager.start([u].concat(Gf(o.reduce(p,[f,Math.max(d,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=j7());var a=i.begin,o=i.duration,l=i.attributeName,u=i.to,s=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,d=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof s=="function"||typeof p=="function"||s==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var h=l?Qa({},l,u):u,x=x1(Object.keys(h),o,s);y.start([f,a,Yt(Yt({},h),{},{transition:x}),o,c])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var u=a9(i,i9),s=B.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!l||s===0||o<=0)return a;var c=function(p){var y=p.props,h=y.style,x=h===void 0?{}:h,m=y.className,v=B.cloneElement(p,Yt(Yt({},u),{},{style:Yt(Yt({},x),f),className:m}));return v};return s===1?c(B.Children.only(a)):A.createElement("div",null,B.Children.map(a,function(d){return c(d)}))}}]),r}(B.PureComponent);Rr.displayName="Animate";Rr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Rr.propTypes={from:ue.oneOfType([ue.object,ue.string]),to:ue.oneOfType([ue.object,ue.string]),attributeName:ue.string,duration:ue.number,begin:ue.number,easing:ue.oneOfType([ue.string,ue.func]),steps:ue.arrayOf(ue.shape({duration:ue.number.isRequired,style:ue.object.isRequired,easing:ue.oneOfType([ue.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ue.func]),properties:ue.arrayOf("string"),onAnimationEnd:ue.func})),children:ue.oneOfType([ue.node,ue.func]),isActive:ue.bool,canBegin:ue.bool,onAnimationEnd:ue.func,shouldReAnimate:ue.bool,onAnimationStart:ue.func,onAnimationReStart:ue.func};function tl(e){"@babel/helpers - typeof";return tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tl(e)}function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,u=n>=0?1:-1,s=i>=0&&n>=0||i<0&&n<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(r+l*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(s,",").concat(t+u*c[0],",").concat(r)),f+="L ".concat(t+n-u*c[1],",").concat(r),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(s,`, + `).concat(t+n,",").concat(r+l*c[1])),f+="L ".concat(t+n,",").concat(r+i-l*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(s,`, + `).concat(t+n-u*c[2],",").concat(r+i)),f+="L ".concat(t+u*c[3],",").concat(r+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(s,`, + `).concat(t,",").concat(r+i-l*c[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+l*y,` + A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+u*y,",").concat(r,` + L `).concat(t+n-u*y,",").concat(r,` + A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n,",").concat(r+l*y,` + L `).concat(t+n,",").concat(r+i-l*y,` + A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n-u*y,",").concat(r+i,` + L `).concat(t+u*y,",").concat(r+i,` + A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t,",").concat(r+i-l*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},A9=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,l=r.width,u=r.height;if(Math.abs(l)>0&&Math.abs(u)>0){var s=Math.min(a,a+l),f=Math.max(a,a+l),c=Math.min(o,o+u),d=Math.max(o,o+u);return n>=s&&n<=f&&i>=c&&i<=d}return!1},E9={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},py=function(t){var r=$1($1({},E9),t),n=B.useRef(),i=B.useState(-1),a=g9(i,2),o=a[0],l=a[1];B.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&l(S)}catch{}},[]);var u=r.x,s=r.y,f=r.width,c=r.height,d=r.radius,p=r.className,y=r.animationEasing,h=r.animationDuration,x=r.animationBegin,m=r.isAnimationActive,v=r.isUpdateAnimationActive;if(u!==+u||s!==+s||f!==+f||c!==+c||f===0||c===0)return null;var g=te("recharts-rectangle",p);return v?A.createElement(Rr,{canBegin:o>0,from:{width:f,height:c,x:u,y:s},to:{width:f,height:c,x:u,y:s},duration:h,animationEasing:y,isActive:v},function(S){var b=S.width,w=S.height,O=S.x,_=S.y;return A.createElement(Rr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:h,isActive:m,easing:y},A.createElement("path",Ss({},Q(r,!0),{className:g,d:T1(O,_,b,w,d),ref:n})))}):A.createElement("path",Ss({},Q(r,!0),{className:g,d:T1(u,s,f,c,d)}))},$9=["points","className","baseLinePoints","connectNulls"];function _i(){return _i=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function j9(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function j1(e){return N9(e)||M9(e)||C9(e)||k9()}function k9(){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 C9(e,t){if(e){if(typeof e=="string")return Qp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qp(e,t)}}function M9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function N9(e){if(Array.isArray(e))return Qp(e)}function Qp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){k1(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),k1(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},fo=function(t,r){var n=I9(t);r&&(n=[n.reduce(function(a,o){return[].concat(j1(a),j1(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,l,u){return"".concat(o).concat(u===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},D9=function(t,r,n){var i=fo(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(fo(r.reverse(),n).slice(1))},R9=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=T9(t,$9);if(!r||!r.length)return null;var l=te("recharts-polygon",n);if(i&&i.length){var u=o.stroke&&o.stroke!=="none",s=D9(r,i,a);return A.createElement("g",{className:l},A.createElement("path",_i({},Q(o,!0),{fill:s.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:s})),u?A.createElement("path",_i({},Q(o,!0),{fill:"none",d:fo(r,a)})):null,u?A.createElement("path",_i({},Q(o,!0),{fill:"none",d:fo(i,a)})):null)}var f=fo(r,a);return A.createElement("path",_i({},Q(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:l,d:f}))};function Zp(){return Zp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function H9(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var V9=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},K9=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,l=o===void 0?0:o,u=t.left,s=u===void 0?0:u,f=t.width,c=f===void 0?0:f,d=t.height,p=d===void 0?0:d,y=t.className,h=W9(t,L9),x=B9({x:n,y:a,top:l,left:s,width:c,height:p},h);return!H(n)||!H(a)||!H(c)||!H(p)||!H(l)||!H(s)?null:A.createElement("path",Jp({},Q(x,!0),{className:te("recharts-cross",y),d:V9(n,a,c,p,l,s)}))},q9=Cc,G9=UO,X9=gn;function Y9(e,t){return e&&e.length?q9(e,X9(t),G9):void 0}var Q9=Y9;const Z9=pe(Q9);var J9=Cc,eW=gn,tW=WO;function rW(e,t){return e&&e.length?J9(e,eW(t),tW):void 0}var nW=rW;const iW=pe(nW);var aW=["cx","cy","angle","ticks","axisLine"],oW=["ticks","tick","angle","tickFormatter","stroke"];function ta(e){"@babel/helpers - typeof";return ta=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},ta(e)}function po(){return po=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function uW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I1(e,t){for(var r=0;rL1?o=i==="outer"?"start":"end":a<-L1?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,l=n.axisLine,u=n.axisLineType,s=An(An({},Q(this.props,!1)),{},{fill:"none"},Q(l,!1));if(u==="circle")return A.createElement(hy,Cn({className:"recharts-polar-angle-axis-line"},s,{cx:i,cy:a,r:o}));var f=this.props.ticks,c=f.map(function(d){return ge(i,a,o,d.coordinate)});return A.createElement(R9,Cn({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,l=i.tickLine,u=i.tickFormatter,s=i.stroke,f=Q(this.props,!1),c=Q(o,!1),d=An(An({},f),{},{fill:"none"},Q(l,!1)),p=a.map(function(y,h){var x=n.getTickLineCoord(y),m=n.getTickTextAnchor(y),v=An(An(An({textAnchor:m},f),{},{stroke:"none",fill:s},c),{},{index:h,payload:y,x:x.x2,y:x.y2});return A.createElement(se,Cn({className:te("recharts-polar-angle-axis-tick",y_(o)),key:"tick-".concat(y.coordinate)},Yn(n.props,y,h)),l&&A.createElement("line",Cn({className:"recharts-polar-angle-axis-tick-line"},d,x)),o&&t.renderTickItem(o,v,u?u(y.value,h):y.value))});return A.createElement(se,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:A.createElement(se,{className:te("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return A.isValidElement(n)?o=A.cloneElement(n,i):Z(n)?o=n(i):o=A.createElement(Qn,Cn({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(B.PureComponent);Fc(Uc,"displayName","PolarAngleAxis");Fc(Uc,"axisType","angleAxis");Fc(Uc,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var OW=BS,_W=OW(Object.getPrototypeOf,Object),PW=_W,AW=zr,EW=PW,$W=Fr,TW="[object Object]",jW=Function.prototype,kW=Object.prototype,N_=jW.toString,CW=kW.hasOwnProperty,MW=N_.call(Object);function NW(e){if(!$W(e)||AW(e)!=TW)return!1;var t=EW(e);if(t===null)return!0;var r=CW.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&N_.call(r)==MW}var IW=NW;const DW=pe(IW);var RW=zr,LW=Fr,BW="[object Boolean]";function zW(e){return e===!0||e===!1||LW(e)&&RW(e)==BW}var FW=zW;const UW=pe(FW);function nl(e){"@babel/helpers - typeof";return nl=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},nl(e)}function Ps(){return Ps=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:d,x:u,y:s},to:{upperWidth:f,lowerWidth:c,height:d,x:u,y:s},duration:h,animationEasing:y,isActive:m},function(g){var S=g.upperWidth,b=g.lowerWidth,w=g.height,O=g.x,_=g.y;return A.createElement(Rr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:h,easing:y},A.createElement("path",Ps({},Q(r,!0),{className:v,d:U1(O,_,S,b,w),ref:n})))}):A.createElement("g",null,A.createElement("path",Ps({},Q(r,!0),{className:v,d:U1(u,s,f,c,d)})))},JW=["option","shapeType","propTransformer","activeClassName","isActive"];function il(e){"@babel/helpers - typeof";return il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},il(e)}function eH(e,t){if(e==null)return{};var r=tH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function W1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function As(e){for(var t=1;t0?Tt(g,"paddingAngle",0):0;if(b){var O=Gr(b.endAngle-b.startAngle,g.endAngle-g.startAngle),_=ve(ve({},g),{},{startAngle:v+w,endAngle:v+O(h)+w});x.push(_),v=_.endAngle}else{var P=g.endAngle,T=g.startAngle,$=Gr(0,P-T),k=$(h),M=ve(ve({},g),{},{startAngle:v+w,endAngle:v+k+w});x.push(M),v=M.endAngle}}),A.createElement(se,null,n.renderSectorsStatically(x))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Ic(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,l=i.className,u=i.label,s=i.cx,f=i.cy,c=i.innerRadius,d=i.outerRadius,p=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!H(s)||!H(f)||!H(c)||!H(d))return null;var h=te("recharts-pie",l);return A.createElement(se,{tabIndex:this.props.rootTabIndex,className:h,ref:function(m){n.pieRef=m}},this.renderSectors(),u&&this.renderLabels(o),Ge.renderCallByParent(this.props,null,!1),(!p||y)&&fn.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n=360?v:v-1)*u,S=x-v*p-g,b=i.reduce(function(_,P){var T=at(P,m,0);return _+(H(T)?T:0)},0),w;if(b>0){var O;w=i.map(function(_,P){var T=at(_,m,0),$=at(_,f,P),k=(H(T)?T:0)/b,M;P?M=O.endAngle+ut(h)*u*(T!==0?1:0):M=o;var D=M+ut(h)*((T!==0?p:0)+k*S),N=(M+D)/2,R=(y.innerRadius+y.outerRadius)/2,L=[{name:$,value:T,payload:_,dataKey:m,type:d}],j=ge(y.cx,y.cy,R,N);return O=ve(ve(ve({percent:k,cornerRadius:a,name:$,tooltipPayload:L,midAngle:N,middleRadius:R,tooltipPosition:j},_),y),{},{value:at(_,m),startAngle:M,endAngle:D,payload:_,paddingAngle:ut(h)*u}),O})}return ve(ve({},y),{},{sectors:w,data:i})});var SH=Math.ceil,OH=Math.max;function _H(e,t,r,n){for(var i=-1,a=OH(SH((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var PH=_H,AH=nO,q1=1/0,EH=17976931348623157e292;function $H(e){if(!e)return e===0?e:0;if(e=AH(e),e===q1||e===-q1){var t=e<0?-1:1;return t*EH}return e===e?e:0}var TH=$H,jH=PH,kH=_c,Xf=TH;function CH(e){return function(t,r,n){return n&&typeof n!="number"&&kH(t,r,n)&&(r=n=void 0),t=Xf(t),r===void 0?(r=t,t=0):r=Xf(r),n=n===void 0?t0&&n.handleDrag(i.changedTouches[0])}),Ot(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,l=i.startIndex;o==null||o({endIndex:a,startIndex:l})}),n.detachDragEndListener()}),Ot(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ot(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ot(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ot(n,"handleSlideDragStart",function(i){var a=Z1(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return KH(t,e),UH(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,l=this.props,u=l.gap,s=l.data,f=s.length-1,c=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,c),y=t.getIndexInRange(o,d);return{startIndex:p-p%u,endIndex:y===f?f:y-y%u}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,l=i.dataKey,u=at(a[n],l,n);return Z(o)?o(u,n):u}},{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(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,l=i.endX,u=this.props,s=u.x,f=u.width,c=u.travellerWidth,d=u.startIndex,p=u.endIndex,y=u.onChange,h=n.pageX-a;h>0?h=Math.min(h,s+f-c-l,s+f-c-o):h<0&&(h=Math.max(h,s-o,s-l));var x=this.getIndex({startX:o+h,endX:l+h});(x.startIndex!==d||x.endIndex!==p)&&y&&y(x),this.setState({startX:o+h,endX:l+h,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=Z1(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,l=i.endX,u=i.startX,s=this.state[o],f=this.props,c=f.x,d=f.width,p=f.travellerWidth,y=f.onChange,h=f.gap,x=f.data,m={startX:this.state.startX,endX:this.state.endX},v=n.pageX-a;v>0?v=Math.min(v,c+d-p-s):v<0&&(v=Math.max(v,c-s)),m[o]=s+v;var g=this.getIndex(m),S=g.startIndex,b=g.endIndex,w=function(){var _=x.length-1;return o==="startX"&&(l>u?S%h===0:b%h===0)||lu?b%h===0:S%h===0)||l>u&&b===_};this.setState(Ot(Ot({},o,s+v),"brushMoveStartX",n.pageX),function(){y&&w()&&y(g)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,l=o.scaleValues,u=o.startX,s=o.endX,f=this.state[i],c=l.indexOf(f);if(c!==-1){var d=c+n;if(!(d===-1||d>=l.length)){var p=l[d];i==="startX"&&p>=s||i==="endX"&&p<=u||this.setState(Ot({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,l=n.height,u=n.fill,s=n.stroke;return A.createElement("rect",{stroke:s,fill:u,x:i,y:a,width:o,height:l})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,l=n.height,u=n.data,s=n.children,f=n.padding,c=B.Children.only(s);return c?A.cloneElement(c,{x:i,y:a,width:o,height:l,margin:f,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,l=this,u=this.props,s=u.y,f=u.travellerWidth,c=u.height,d=u.traveller,p=u.ariaLabel,y=u.data,h=u.startIndex,x=u.endIndex,m=Math.max(n,this.props.x),v=Yf(Yf({},Q(this.props,!1)),{},{x:m,y:s,width:f,height:c}),g=p||"Min value: ".concat((a=y[h])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[x])===null||o===void 0?void 0:o.name);return A.createElement(se,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(b){["ArrowLeft","ArrowRight"].includes(b.key)&&(b.preventDefault(),b.stopPropagation(),l.handleTravellerMoveKeyboard(b.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,v))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,l=a.height,u=a.stroke,s=a.travellerWidth,f=Math.min(n,i)+s,c=Math.max(Math.abs(i-n)-s,0);return A.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:f,y:o,width:c,height:l})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,l=n.height,u=n.travellerWidth,s=n.stroke,f=this.state,c=f.startX,d=f.endX,p=5,y={pointerEvents:"none",fill:s};return A.createElement(se,{className:"recharts-brush-texts"},A.createElement(Qn,Ts({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-p,y:o+l/2},y),this.getTextOfTick(i)),A.createElement(Qn,Ts({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+u+p,y:o+l/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,l=n.x,u=n.y,s=n.width,f=n.height,c=n.alwaysShowText,d=this.state,p=d.startX,y=d.endX,h=d.isTextActive,x=d.isSlideMoving,m=d.isTravellerMoving,v=d.isTravellerFocused;if(!i||!i.length||!H(l)||!H(u)||!H(s)||!H(f)||s<=0||f<=0)return null;var g=te("recharts-brush",a),S=A.Children.count(o)===1,b=zH("userSelect","none");return A.createElement(se,{className:g,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(h||x||m||v||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,l=n.height,u=n.stroke,s=Math.floor(a+l/2)-1;return A.createElement(A.Fragment,null,A.createElement("rect",{x:i,y:a,width:o,height:l,fill:u,stroke:"none"}),A.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),A.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return A.isValidElement(n)?a=A.cloneElement(n,i):Z(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,l=n.x,u=n.travellerWidth,s=n.updateId,f=n.startIndex,c=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return Yf({prevData:a,prevTravellerWidth:u,prevUpdateId:s,prevX:l,prevWidth:o},a&&a.length?GH({data:a,width:o,x:l,travellerWidth:u,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||l!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([l,l+o-u]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:u,prevUpdateId:s,prevX:l,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,l=a-1;l-o>1;){var u=Math.floor((o+l)/2);n[u]>i?l=u:o=u}return i>=n[l]?l:o}}])}(B.PureComponent);Ot(aa,"displayName","Brush");Ot(aa,"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 XH=Bv;function YH(e,t){var r;return XH(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var QH=YH,ZH=kS,JH=gn,eV=QH,tV=St,rV=_c;function nV(e,t,r){var n=tV(e)?ZH:eV;return r&&rV(e,t,r)&&(t=void 0),n(e,JH(t))}var iV=nV;const aV=pe(iV);var pr=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},J1=ZS;function oV(e,t,r){t=="__proto__"&&J1?J1(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var lV=oV,uV=lV,sV=YS,cV=gn;function fV(e,t){var r={};return t=cV(t),sV(e,function(n,i,a){uV(r,i,t(n,i,a))}),r}var dV=fV;const pV=pe(dV);function hV(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function MV(e,t){var r=e.x,n=e.y,i=kV(e,EV),a="".concat(r),o=parseInt(a,10),l="".concat(n),u=parseInt(l,10),s="".concat(t.height||i.height),f=parseInt(s,10),c="".concat(t.width||i.width),d=parseInt(c,10);return Ka(Ka(Ka(Ka(Ka({},t),i),o?{x:o}:{}),u?{y:u}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function tb(e){return A.createElement(I_,ih({shapeType:"rectangle",propTransformer:MV,activeClassName:"recharts-active-bar"},e))}var NV=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=H(n)||nk(n);return a?t(n,i):(a||Jn(),r)}},IV=["value","background"],F_;function oa(e){"@babel/helpers - typeof";return oa=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},oa(e)}function DV(e,t){if(e==null)return{};var r=RV(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ks(){return ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(N)0&&Math.abs(D)0&&(M=Math.min((ie||0)-(D[_e-1]||0),M))}),Number.isFinite(M)){var N=M/k,R=h.layout==="vertical"?n.height:n.width;if(h.padding==="gap"&&(O=N*R/2),h.padding==="no-gap"){var L=st(t.barCategoryGap,N*R),j=N*R/2;O=j-L-(j-L)/R*L}}}i==="xAxis"?_=[n.left+(g.left||0)+(O||0),n.left+n.width-(g.right||0)-(O||0)]:i==="yAxis"?_=u==="horizontal"?[n.top+n.height-(g.bottom||0),n.top+(g.top||0)]:[n.top+(g.top||0)+(O||0),n.top+n.height-(g.bottom||0)-(O||0)]:_=h.range,b&&(_=[_[1],_[0]]);var I=s_(h,a,d),F=I.scale,V=I.realScaleType;F.domain(m).range(_),c_(F);var W=f_(F,Jt(Jt({},h),{},{realScaleType:V}));i==="xAxis"?($=x==="top"&&!S||x==="bottom"&&S,P=n.left,T=c[w]-$*h.height):i==="yAxis"&&($=x==="left"&&!S||x==="right"&&S,P=c[w]-$*h.width,T=n.top);var X=Jt(Jt(Jt({},h),W),{},{realScaleType:V,x:P,y:T,scale:F,width:i==="xAxis"?n.width:h.width,height:i==="yAxis"?n.height:h.height});return X.bandSize=ys(X,W),!h.hide&&i==="xAxis"?c[w]+=($?-1:1)*X.height:h.hide||(c[w]+=($?-1:1)*X.width),Jt(Jt({},p),{},Vc({},y,X))},{})},V_=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},XV=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return V_({x:r,y:n},{x:i,y:a})},K_=function(){function e(t){VV(this,e),this.scale=t}return KV(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(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(r)+l}default:return this.scale(r)}if(i){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+u}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();Vc(K_,"EPS",1e-4);var vy=function(t){var r=Object.keys(t).reduce(function(n,i){return Jt(Jt({},n),{},Vc({},i,K_.create(t[i])))},{});return Jt(Jt({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,l=a.position;return pV(i,function(u,s){return r[s].apply(u,{bandAware:o,position:l})})},isInRange:function(i){return AV(i,function(a,o){return r[o].isInRange(a)})}})};function YV(e){return(e%180+180)%180}var QV=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=YV(i),o=a*Math.PI/180,l=Math.atan(n/r),u=o>l&&oe.length)&&(t=e.length);for(var r=0,n=new Array(t);re*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function LK(e,t){return sP(e,t+1)}function BK(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,l=t.end,u=0,s=1,f=o,c=function(){var y=n==null?void 0:n[u];if(y===void 0)return{v:sP(n,s)};var h=u,x,m=function(){return x===void 0&&(x=r(y,h)),x},v=y.coordinate,g=u===0||Ds(e,v,m,f,l);g||(u=0,f=o,s+=1),g&&(f=v+e*(m()/2+i),u+=s)},d;s<=a.length;)if(d=c(),d)return d.v;return[]}function sl(e){"@babel/helpers - typeof";return sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sl(e)}function hb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t0?p.coordinate-x*e:p.coordinate})}else a[d]=p=nt(nt({},p),{},{tickCoord:p.coordinate});var m=Ds(e,p.tickCoord,h,l,u);m&&(u=p.tickCoord-e*(h()/2+i),a[d]=nt(nt({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function HK(e,t,r,n,i,a){var o=(n||[]).slice(),l=o.length,u=t.start,s=t.end;if(a){var f=n[l-1],c=r(f,l-1),d=e*(f.coordinate+e*c/2-s);o[l-1]=f=nt(nt({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var p=Ds(e,f.tickCoord,function(){return c},u,s);p&&(s=f.tickCoord-e*(c/2+i),o[l-1]=nt(nt({},f),{},{isShow:!0}))}for(var y=a?l-1:l,h=function(v){var g=o[v],S,b=function(){return S===void 0&&(S=r(g,v)),S};if(v===0){var w=e*(g.coordinate-e*b()/2-u);o[v]=g=nt(nt({},g),{},{tickCoord:w<0?g.coordinate-w*e:g.coordinate})}else o[v]=g=nt(nt({},g),{},{tickCoord:g.coordinate});var O=Ds(e,g.tickCoord,b,u,s);O&&(u=g.tickCoord+e*(b()/2+i),o[v]=nt(nt({},g),{},{isShow:!0}))},x=0;x=2?ut(i[1].coordinate-i[0].coordinate):1,m=RK(a,x,p);return u==="equidistantPreserveStart"?BK(x,m,h,i,o):(u==="preserveStart"||u==="preserveStartEnd"?d=HK(x,m,h,i,o,u==="preserveStartEnd"):d=WK(x,m,h,i,o),d.filter(function(v){return v.isShow}))}var KK=["viewBox"],qK=["viewBox"],GK=["ticks"];function ca(e){"@babel/helpers - typeof";return ca=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},ca(e)}function Ai(){return Ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function YK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yb(e,t){for(var r=0;r0?u(this.props):u(p)),o<=0||l<=0||!y||!y.length?null:A.createElement(se,{className:te("recharts-cartesian-axis",s),ref:function(x){n.layerReference=x}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ge.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,l=te(i.className,"recharts-cartesian-axis-tick-value");return A.isValidElement(n)?o=A.cloneElement(n,ze(ze({},i),{},{className:l})):Z(n)?o=n(ze(ze({},i),{},{className:l})):o=A.createElement(Qn,Ai({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(B.Component);gy(Yc,"displayName","CartesianAxis");gy(Yc,"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"});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 nq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iq(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Hq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Vq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kq(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?o:t&&t.length&&H(i)&&H(a)?t.slice(i,a+1):[]};function PP(e){return e==="number"?[0,"auto"]:void 0}var wh=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,l=Qc(r,t);return n<0||!a||!a.length||n>=l.length?null:a.reduce(function(u,s){var f,c=(f=s.props.data)!==null&&f!==void 0?f:r;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=c===void 0?l:c;d=Gd(p,o.dataKey,i)}else d=c&&c[n]||l[n];return d?[].concat(ha(u),[p_(s,d)]):u},[])},Sb=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=iG(a,n),l=t.orderedTooltipTicks,u=t.tooltipAxis,s=t.tooltipTicks,f=yF(o,l,s,u);if(f>=0&&s){var c=s[f]&&s[f].value,d=wh(t,r,f,c),p=aG(n,l,f,a);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:p}}return null},oG=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,l=r.stackGroups,u=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,c=t.children,d=t.stackOffset,p=u_(f,a);return n.reduce(function(y,h){var x,m=h.type.defaultProps!==void 0?C(C({},h.type.defaultProps),h.props):h.props,v=m.type,g=m.dataKey,S=m.allowDataOverflow,b=m.allowDuplicatedCategory,w=m.scale,O=m.ticks,_=m.includeHidden,P=m[o];if(y[P])return y;var T=Qc(t.data,{graphicalItems:i.filter(function(W){var X,ie=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o];return ie===P}),dataStartIndex:u,dataEndIndex:s}),$=T.length,k,M,D;Cq(m.domain,S,v)&&(k=Dp(m.domain,null,S),p&&(v==="number"||w!=="auto")&&(D=so(T,g,"category")));var N=PP(v);if(!k||k.length===0){var R,L=(R=m.domain)!==null&&R!==void 0?R:N;if(g){if(k=so(T,g,v),v==="category"&&p){var j=ak(k);b&&j?(M=k,k=$s(0,$)):b||(k=X0(L,k,h).reduce(function(W,X){return W.indexOf(X)>=0?W:[].concat(ha(W),[X])},[]))}else if(v==="category")b?k=k.filter(function(W){return W!==""&&!re(W)}):k=X0(L,k,h).reduce(function(W,X){return W.indexOf(X)>=0||X===""||re(X)?W:[].concat(ha(W),[X])},[]);else if(v==="number"){var I=wF(T,i.filter(function(W){var X,ie,_e=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o],Me="hide"in W.props?W.props.hide:(ie=W.type.defaultProps)===null||ie===void 0?void 0:ie.hide;return _e===P&&(_||!Me)}),g,a,f);I&&(k=I)}p&&(v==="number"||w!=="auto")&&(D=so(T,g,"category"))}else p?k=$s(0,$):l&&l[P]&&l[P].hasStack&&v==="number"?k=d==="expand"?[0,1]:d_(l[P].stackGroups,u,s):k=l_(T,i.filter(function(W){var X=o in W.props?W.props[o]:W.type.defaultProps[o],ie="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return X===P&&(_||!ie)}),v,f,!0);if(v==="number")k=gh(c,k,P,a,O),L&&(k=Dp(L,k,S));else if(v==="category"&&L){var F=L,V=k.every(function(W){return F.indexOf(W)>=0});V&&(k=F)}}return C(C({},y),{},Y({},P,C(C({},m),{},{axisType:a,domain:k,categoricalDomain:D,duplicateDomain:M,originalDomain:(x=m.domain)!==null&&x!==void 0?x:N,isCategorical:p,layout:f})))},{})},lG=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,l=r.stackGroups,u=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,c=t.children,d=Qc(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:s}),p=d.length,y=u_(f,a),h=-1;return n.reduce(function(x,m){var v=m.type.defaultProps!==void 0?C(C({},m.type.defaultProps),m.props):m.props,g=v[o],S=PP("number");if(!x[g]){h++;var b;return y?b=$s(0,p):l&&l[g]&&l[g].hasStack?(b=d_(l[g].stackGroups,u,s),b=gh(c,b,g,a)):(b=Dp(S,l_(d,n.filter(function(w){var O,_,P=o in w.props?w.props[o]:(O=w.type.defaultProps)===null||O===void 0?void 0:O[o],T="hide"in w.props?w.props.hide:(_=w.type.defaultProps)===null||_===void 0?void 0:_.hide;return P===g&&!T}),"number",f),i.defaultProps.allowDataOverflow),b=gh(c,b,g,a)),C(C({},x),{},Y({},g,C(C({axisType:a},i.defaultProps),{},{hide:!0,orientation:Tt(rG,"".concat(a,".").concat(h%2),null),domain:b,originalDomain:S,isCategorical:y,layout:f})))}return x},{})},uG=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,l=r.stackGroups,u=r.dataStartIndex,s=r.dataEndIndex,f=t.children,c="".concat(i,"Id"),d=Wt(f,a),p={};return d&&d.length?p=oG(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:l,dataStartIndex:u,dataEndIndex:s}):o&&o.length&&(p=lG(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:l,dataStartIndex:u,dataEndIndex:s})),p},sG=function(t){var r=ci(t),n=Bn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:zv(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:ys(r,n)}},Ob=function(t){var r=t.children,n=t.defaultShowTooltip,i=Pt(r,aa),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:!!n}},cG=function(t){return!t||!t.length?!1:t.some(function(r){var n=Ar(r&&r.type);return n&&n.indexOf("Bar")>=0})},_b=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"}},fG=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,l=t.yAxisMap,u=l===void 0?{}:l,s=n.width,f=n.height,c=n.children,d=n.margin||{},p=Pt(c,aa),y=Pt(c,Ii),h=Object.keys(u).reduce(function(b,w){var O=u[w],_=O.orientation;return!O.mirror&&!O.hide?C(C({},b),{},Y({},_,b[_]+O.width)):b},{left:d.left||0,right:d.right||0}),x=Object.keys(o).reduce(function(b,w){var O=o[w],_=O.orientation;return!O.mirror&&!O.hide?C(C({},b),{},Y({},_,Tt(b,"".concat(_))+O.height)):b},{top:d.top||0,bottom:d.bottom||0}),m=C(C({},x),h),v=m.bottom;p&&(m.bottom+=p.props.height||aa.defaultProps.height),y&&r&&(m=bF(m,i,n,r));var g=s-m.left-m.right,S=f-m.top-m.bottom;return C(C({brushBottom:v},m),{},{width:Math.max(g,0),height:Math.max(S,0)})},dG=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},AP=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,u=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,d=function(m,v){var g=v.graphicalItems,S=v.stackGroups,b=v.offset,w=v.updateId,O=v.dataStartIndex,_=v.dataEndIndex,P=m.barSize,T=m.layout,$=m.barGap,k=m.barCategoryGap,M=m.maxBarSize,D=_b(T),N=D.numericAxisName,R=D.cateAxisName,L=cG(g),j=[];return g.forEach(function(I,F){var V=Qc(m.data,{graphicalItems:[I],dataStartIndex:O,dataEndIndex:_}),W=I.type.defaultProps!==void 0?C(C({},I.type.defaultProps),I.props):I.props,X=W.dataKey,ie=W.maxBarSize,_e=W["".concat(N,"Id")],Me=W["".concat(R,"Id")],Mt={},ht=u.reduce(function(Sn,On){var Zc=v["".concat(On.axisType,"Map")],by=W["".concat(On.axisType,"Id")];Zc&&Zc[by]||On.axisType==="zAxis"||Jn();var xy=Zc[by];return C(C({},Sn),{},Y(Y({},On.axisType,xy),"".concat(On.axisType,"Ticks"),Bn(xy)))},Mt),K=ht[R],J=ht["".concat(R,"Ticks")],ee=S&&S[_e]&&S[_e].hasStack&&jF(I,S[_e].stackGroups),z=Ar(I.type).indexOf("Bar")>=0,je=ys(K,J),ae=[],Le=L&&mF({barSize:P,stackGroups:S,totalSize:dG(ht,R)});if(z){var Be,vt,Hr=re(ie)?M:ie,oi=(Be=(vt=ys(K,J,!0))!==null&&vt!==void 0?vt:Hr)!==null&&Be!==void 0?Be:0;ae=gF({barGap:$,barCategoryGap:k,bandSize:oi!==je?oi:je,sizeList:Le[Me],maxBarSize:Hr}),oi!==je&&(ae=ae.map(function(Sn){return C(C({},Sn),{},{position:C(C({},Sn.position),{},{offset:Sn.position.offset-oi/2})})}))}var Al=I&&I.type&&I.type.getComposedData;Al&&j.push({props:C(C({},Al(C(C({},ht),{},{displayedData:V,props:m,dataKey:X,item:I,bandSize:je,barPosition:ae,offset:b,stackedData:ee,layout:T,dataStartIndex:O,dataEndIndex:_}))),{},Y(Y(Y({key:I.key||"item-".concat(F)},N,ht[N]),R,ht[R]),"animationId",w)),childIndex:mk(I,m.children),item:I})}),j},p=function(m,v){var g=m.props,S=m.dataStartIndex,b=m.dataEndIndex,w=m.updateId;if(!Wm({props:g}))return null;var O=g.children,_=g.layout,P=g.stackOffset,T=g.data,$=g.reverseStackOrder,k=_b(_),M=k.numericAxisName,D=k.cateAxisName,N=Wt(O,n),R=$F(T,N,"".concat(M,"Id"),"".concat(D,"Id"),P,$),L=u.reduce(function(W,X){var ie="".concat(X.axisType,"Map");return C(C({},W),{},Y({},ie,uG(g,C(C({},X),{},{graphicalItems:N,stackGroups:X.axisType===M&&R,dataStartIndex:S,dataEndIndex:b}))))},{}),j=fG(C(C({},L),{},{props:g,graphicalItems:N}),v==null?void 0:v.legendBBox);Object.keys(L).forEach(function(W){L[W]=f(g,L[W],j,W.replace("Map",""),r)});var I=L["".concat(D,"Map")],F=sG(I),V=d(g,C(C({},L),{},{dataStartIndex:S,dataEndIndex:b,updateId:w,graphicalItems:N,stackGroups:R,offset:j}));return C(C({formattedGraphicalItems:V,graphicalItems:N,offset:j,stackGroups:R},F),L)},y=function(x){function m(v){var g,S,b;return Vq(this,m),b=Gq(this,m,[v]),Y(b,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Y(b,"accessibilityManager",new kq),Y(b,"handleLegendBBoxUpdate",function(w){if(w){var O=b.state,_=O.dataStartIndex,P=O.dataEndIndex,T=O.updateId;b.setState(C({legendBBox:w},p({props:b.props,dataStartIndex:_,dataEndIndex:P,updateId:T},C(C({},b.state),{},{legendBBox:w}))))}}),Y(b,"handleReceiveSyncEvent",function(w,O,_){if(b.props.syncId===w){if(_===b.eventEmitterSymbol&&typeof b.props.syncMethod!="function")return;b.applySyncEvent(O)}}),Y(b,"handleBrushChange",function(w){var O=w.startIndex,_=w.endIndex;if(O!==b.state.dataStartIndex||_!==b.state.dataEndIndex){var P=b.state.updateId;b.setState(function(){return C({dataStartIndex:O,dataEndIndex:_},p({props:b.props,dataStartIndex:O,dataEndIndex:_,updateId:P},b.state))}),b.triggerSyncEvent({dataStartIndex:O,dataEndIndex:_})}}),Y(b,"handleMouseEnter",function(w){var O=b.getMouseInfo(w);if(O){var _=C(C({},O),{},{isTooltipActive:!0});b.setState(_),b.triggerSyncEvent(_);var P=b.props.onMouseEnter;Z(P)&&P(_,w)}}),Y(b,"triggeredAfterMouseMove",function(w){var O=b.getMouseInfo(w),_=O?C(C({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};b.setState(_),b.triggerSyncEvent(_);var P=b.props.onMouseMove;Z(P)&&P(_,w)}),Y(b,"handleItemMouseEnter",function(w){b.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),Y(b,"handleItemMouseLeave",function(){b.setState(function(){return{isTooltipActive:!1}})}),Y(b,"handleMouseMove",function(w){w.persist(),b.throttleTriggeredAfterMouseMove(w)}),Y(b,"handleMouseLeave",function(w){b.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};b.setState(O),b.triggerSyncEvent(O);var _=b.props.onMouseLeave;Z(_)&&_(O,w)}),Y(b,"handleOuterEvent",function(w){var O=yk(w),_=Tt(b.props,"".concat(O));if(O&&Z(_)){var P,T;/.*touch.*/i.test(O)?T=b.getMouseInfo(w.changedTouches[0]):T=b.getMouseInfo(w),_((P=T)!==null&&P!==void 0?P:{},w)}}),Y(b,"handleClick",function(w){var O=b.getMouseInfo(w);if(O){var _=C(C({},O),{},{isTooltipActive:!0});b.setState(_),b.triggerSyncEvent(_);var P=b.props.onClick;Z(P)&&P(_,w)}}),Y(b,"handleMouseDown",function(w){var O=b.props.onMouseDown;if(Z(O)){var _=b.getMouseInfo(w);O(_,w)}}),Y(b,"handleMouseUp",function(w){var O=b.props.onMouseUp;if(Z(O)){var _=b.getMouseInfo(w);O(_,w)}}),Y(b,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),Y(b,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.handleMouseDown(w.changedTouches[0])}),Y(b,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.handleMouseUp(w.changedTouches[0])}),Y(b,"handleDoubleClick",function(w){var O=b.props.onDoubleClick;if(Z(O)){var _=b.getMouseInfo(w);O(_,w)}}),Y(b,"handleContextMenu",function(w){var O=b.props.onContextMenu;if(Z(O)){var _=b.getMouseInfo(w);O(_,w)}}),Y(b,"triggerSyncEvent",function(w){b.props.syncId!==void 0&&Zf.emit(Jf,b.props.syncId,w,b.eventEmitterSymbol)}),Y(b,"applySyncEvent",function(w){var O=b.props,_=O.layout,P=O.syncMethod,T=b.state.updateId,$=w.dataStartIndex,k=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)b.setState(C({dataStartIndex:$,dataEndIndex:k},p({props:b.props,dataStartIndex:$,dataEndIndex:k,updateId:T},b.state)));else if(w.activeTooltipIndex!==void 0){var M=w.chartX,D=w.chartY,N=w.activeTooltipIndex,R=b.state,L=R.offset,j=R.tooltipTicks;if(!L)return;if(typeof P=="function")N=P(j,w);else if(P==="value"){N=-1;for(var I=0;I=0){var ee,z;if(M.dataKey&&!M.allowDuplicatedCategory){var je=typeof M.dataKey=="function"?J:"payload.".concat(M.dataKey.toString());ee=Gd(I,je,N),z=F&&V&&Gd(V,je,N)}else ee=I==null?void 0:I[D],z=F&&V&&V[D];if(Me||_e){var ae=w.props.activeIndex!==void 0?w.props.activeIndex:D;return[B.cloneElement(w,C(C(C({},P.props),ht),{},{activeIndex:ae})),null,null]}if(!re(ee))return[K].concat(ha(b.renderActivePoints({item:P,activePoint:ee,basePoint:z,childIndex:D,isRange:F})))}else{var Le,Be=(Le=b.getItemByXY(b.state.activeCoordinate))!==null&&Le!==void 0?Le:{graphicalItem:K},vt=Be.graphicalItem,Hr=vt.item,oi=Hr===void 0?w:Hr,Al=vt.childIndex,Sn=C(C(C({},P.props),ht),{},{activeIndex:Al});return[B.cloneElement(oi,Sn),null,null]}return F?[K,null,null]:[K,null]}),Y(b,"renderCustomized",function(w,O,_){return B.cloneElement(w,C(C({key:"recharts-customized-".concat(_)},b.props),b.state))}),Y(b,"renderMap",{CartesianGrid:{handler:iu,once:!0},ReferenceArea:{handler:b.renderReferenceElement},ReferenceLine:{handler:iu},ReferenceDot:{handler:b.renderReferenceElement},XAxis:{handler:iu},YAxis:{handler:iu},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((g=v.id)!==null&&g!==void 0?g:bl("recharts"),"-clip"),b.throttleTriggeredAfterMouseMove=iO(b.triggeredAfterMouseMove,(S=v.throttleDelay)!==null&&S!==void 0?S:1e3/60),b.state={},b}return Qq(m,x),qq(m,[{key:"componentDidMount",value:function(){var g,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var g=this.props,S=g.children,b=g.data,w=g.height,O=g.layout,_=Pt(S,gr);if(_){var P=_.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var T=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,$=wh(this.state,b,P,T),k=this.state.tooltipTicks[P].coordinate,M=(this.state.offset.top+w)/2,D=O==="horizontal",N=D?{x:k,y:M}:{y:k,x:M},R=this.state.formattedGraphicalItems.find(function(j){var I=j.item;return I.type.name==="Scatter"});R&&(N=C(C({},N),R.props.points[P].tooltipPosition),$=R.props.points[P].tooltipPayload);var L={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:T,activePayload:$,activeCoordinate:N};this.setState(L),this.renderCursor(_),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(g,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==g.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==g.margin){var b,w;this.accessibilityManager.setDetails({offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(g){Yd([Pt(g.children,gr)],[Pt(this.props.children,gr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var g=Pt(this.props.children,gr);if(g&&typeof g.props.shared=="boolean"){var S=g.props.shared?"axis":"item";return l.indexOf(S)>=0?S:a}return a}},{key:"getMouseInfo",value:function(g){if(!this.container)return null;var S=this.container,b=S.getBoundingClientRect(),w=HB(b),O={chartX:Math.round(g.pageX-w.left),chartY:Math.round(g.pageY-w.top)},_=b.width/S.offsetWidth||1,P=this.inRange(O.chartX,O.chartY,_);if(!P)return null;var T=this.state,$=T.xAxisMap,k=T.yAxisMap,M=this.getTooltipEventType(),D=Sb(this.state,this.props.data,this.props.layout,P);if(M!=="axis"&&$&&k){var N=ci($).scale,R=ci(k).scale,L=N&&N.invert?N.invert(O.chartX):null,j=R&&R.invert?R.invert(O.chartY):null;return C(C({},O),{},{xValue:L,yValue:j},D)}return D?C(C({},O),D):null}},{key:"inRange",value:function(g,S){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,O=g/b,_=S/b;if(w==="horizontal"||w==="vertical"){var P=this.state.offset,T=O>=P.left&&O<=P.left+P.width&&_>=P.top&&_<=P.top+P.height;return T?{x:O,y:_}:null}var $=this.state,k=$.angleAxisMap,M=$.radiusAxisMap;if(k&&M){var D=ci(k);return Z0({x:O,y:_},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var g=this.props.children,S=this.getTooltipEventType(),b=Pt(g,gr),w={};b&&S==="axis"&&(b.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var O=Wu(this.props,this.handleOuterEvent);return C(C({},O),w)}},{key:"addListener",value:function(){Zf.on(Jf,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Zf.removeListener(Jf,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(g,S,b){for(var w=this.state.formattedGraphicalItems,O=0,_=w.length;O<_;O++){var P=w[O];if(P.item===g||P.props.key===g.key||S===Ar(P.item.type)&&b===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var g=this.clipPathId,S=this.state.offset,b=S.left,w=S.top,O=S.height,_=S.width;return A.createElement("defs",null,A.createElement("clipPath",{id:g},A.createElement("rect",{x:b,y:w,height:O,width:_})))}},{key:"getXScales",value:function(){var g=this.state.xAxisMap;return g?Object.entries(g).reduce(function(S,b){var w=bb(b,2),O=w[0],_=w[1];return C(C({},S),{},Y({},O,_.scale))},{}):null}},{key:"getYScales",value:function(){var g=this.state.yAxisMap;return g?Object.entries(g).reduce(function(S,b){var w=bb(b,2),O=w[0],_=w[1];return C(C({},S),{},Y({},O,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(g){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[g])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(g){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[g])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(g){var S=this.state,b=S.formattedGraphicalItems,w=S.activeItem;if(b&&b.length)for(var O=0,_=b.length;O<_;O++){var P=b[O],T=P.props,$=P.item,k=$.type.defaultProps!==void 0?C(C({},$.type.defaultProps),$.props):$.props,M=Ar($.type);if(M==="Bar"){var D=(T.data||[]).find(function(j){return A9(g,j)});if(D)return{graphicalItem:P,payload:D}}else if(M==="RadialBar"){var N=(T.data||[]).find(function(j){return Z0(g,j)});if(N)return{graphicalItem:P,payload:N}}else if(Wc(P,w)||Hc(P,w)||al(P,w)){var R=hH({graphicalItem:P,activeTooltipItem:w,itemData:k.data}),L=k.activeIndex===void 0?R:k.activeIndex;return{graphicalItem:C(C({},P),{},{childIndex:L}),payload:al(P,w)?k.data[R]:P.props.data[R]}}}return null}},{key:"render",value:function(){var g=this;if(!Wm(this))return null;var S=this.props,b=S.children,w=S.className,O=S.width,_=S.height,P=S.style,T=S.compact,$=S.title,k=S.desc,M=xb(S,zq),D=Q(M,!1);if(T)return A.createElement(ob,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement(Zd,Ei({},D,{width:O,height:_,title:$,desc:k}),this.renderClipPath(),Vm(b,this.renderMap)));if(this.props.accessibilityLayer){var N,R;D.tabIndex=(N=this.props.tabIndex)!==null&&N!==void 0?N:0,D.role=(R=this.props.role)!==null&&R!==void 0?R:"application",D.onKeyDown=function(j){g.accessibilityManager.keyboardEvent(j)},D.onFocus=function(){g.accessibilityManager.focus()}}var L=this.parseEventsOfWrapper();return A.createElement(ob,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement("div",Ei({className:te("recharts-wrapper",w),style:C({position:"relative",cursor:"default",width:O,height:_},P)},L,{ref:function(I){g.container=I}}),A.createElement(Zd,Ei({},D,{width:O,height:_,title:$,desc:k,style:nG}),this.renderClipPath(),Vm(b,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(B.Component);Y(y,"displayName",r),Y(y,"defaultProps",C({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},c)),Y(y,"getDerivedStateFromProps",function(x,m){var v=x.dataKey,g=x.data,S=x.children,b=x.width,w=x.height,O=x.layout,_=x.stackOffset,P=x.margin,T=m.dataStartIndex,$=m.dataEndIndex;if(m.updateId===void 0){var k=Ob(x);return C(C(C({},k),{},{updateId:0},p(C(C({props:x},k),{},{updateId:0}),m)),{},{prevDataKey:v,prevData:g,prevWidth:b,prevHeight:w,prevLayout:O,prevStackOffset:_,prevMargin:P,prevChildren:S})}if(v!==m.prevDataKey||g!==m.prevData||b!==m.prevWidth||w!==m.prevHeight||O!==m.prevLayout||_!==m.prevStackOffset||!Ni(P,m.prevMargin)){var M=Ob(x),D={chartX:m.chartX,chartY:m.chartY,isTooltipActive:m.isTooltipActive},N=C(C({},Sb(m,g,O)),{},{updateId:m.updateId+1}),R=C(C(C({},M),D),N);return C(C(C({},R),p(C({props:x},R),m)),{},{prevDataKey:v,prevData:g,prevWidth:b,prevHeight:w,prevLayout:O,prevStackOffset:_,prevMargin:P,prevChildren:S})}if(!Yd(S,m.prevChildren)){var L,j,I,F,V=Pt(S,aa),W=V&&(L=(j=V.props)===null||j===void 0?void 0:j.startIndex)!==null&&L!==void 0?L:T,X=V&&(I=(F=V.props)===null||F===void 0?void 0:F.endIndex)!==null&&I!==void 0?I:$,ie=W!==T||X!==$,_e=!re(g),Me=_e&&!ie?m.updateId:m.updateId+1;return C(C({updateId:Me},p(C(C({props:x},m),{},{updateId:Me,dataStartIndex:W,dataEndIndex:X}),m)),{},{prevChildren:S,dataStartIndex:W,dataEndIndex:X})}return null}),Y(y,"renderActiveDot",function(x,m,v){var g;return B.isValidElement(x)?g=B.cloneElement(x,m):Z(x)?g=x(m):g=A.createElement(hy,m),A.createElement(se,{className:"recharts-active-dot",key:v},g)});var h=B.forwardRef(function(m,v){return A.createElement(y,Ei({},m,{ref:v}))});return h.displayName=y.displayName,h},EP=AP({chartName:"BarChart",GraphicalChild:Lr,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:_l},{axisType:"yAxis",AxisComp:Pl}],formatAxisMap:GV}),pG=AP({chartName:"PieChart",GraphicalChild:Wr,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Uc},{axisType:"radiusAxis",AxisComp:zc}],formatAxisMap:zF,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const hG=()=>{const e=[{name:"Workload",gray:85,blue:15}];return E.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-6",children:[E.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Workload by Status"}),E.jsx("div",{className:"h-40",children:E.jsx(bp,{width:"100%",height:"100%",children:E.jsxs(EP,{data:e,layout:"vertical",barSize:20,children:[E.jsx(_l,{type:"number",domain:[0,100]}),E.jsx(Pl,{type:"category",dataKey:"name",width:80}),E.jsx(Lr,{dataKey:"gray",fill:"#9CA3AF",stackId:"a"}),E.jsx(Lr,{dataKey:"blue",fill:"#3B82F6",stackId:"a"})]})})}),E.jsxs("div",{className:"flex justify-between text-sm text-gray-500 mt-2",children:[E.jsx("span",{children:"0"}),E.jsx("span",{children:"Tasks"}),E.jsx("span",{children:"100"})]})]})},vG=()=>{const e=[{name:"Assigned",value:20},{name:"Unassigned",value:80}],t=[{name:"User A",value:7},{name:"User B",value:6},{name:"User C",value:5},{name:"User D",value:4},{name:"User E",value:3}],r=["#9CA3AF","#E5E7EB"];return E.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[E.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-6",children:[E.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Total Tasks by Assignee"}),E.jsx("div",{className:"h-32",children:E.jsx(bp,{width:"100%",height:"100%",children:E.jsx(pG,{children:E.jsx(Wr,{data:e,cx:"50%",cy:"50%",innerRadius:30,outerRadius:60,paddingAngle:0,dataKey:"value",children:e.map((n,i)=>E.jsx(Pc,{fill:r[i%r.length]},`cell-${i}`))})})})})]}),E.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-6",children:[E.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Open Tasks by Assignee"}),E.jsx("div",{className:"text-sm text-gray-500 mb-2",children:"Tasks"}),E.jsx("div",{className:"h-32",children:E.jsx(bp,{width:"100%",height:"100%",children:E.jsxs(EP,{data:t,children:[E.jsx(_l,{dataKey:"name",hide:!0}),E.jsx(Pl,{domain:[0,8]}),E.jsx(Lr,{dataKey:"value",fill:"#9CA3AF"})]})})})]}),E.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-6",children:[E.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Tasks Completed This Week"}),E.jsx("div",{className:"flex items-center justify-center h-32",children:E.jsxs("div",{className:"text-center",children:[E.jsx("div",{className:"text-gray-400 text-lg mb-2",children:"📋"}),E.jsx("p",{className:"text-gray-500",children:"No Results"})]})})]})]})};function yG(){return E.jsxs("div",{className:"min-h-screen bg-gray-50",children:[E.jsx(bE,{}),E.jsxs("div",{className:"flex",children:[E.jsx(wE,{}),E.jsxs("div",{className:"flex-1",children:[E.jsx(xE,{}),E.jsx(SE,{}),E.jsxs("main",{className:"p-6 space-y-6",children:[E.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[E.jsx("div",{className:"h-full flex flex-col",children:E.jsx(OE,{})}),E.jsxs("div",{className:"space-y-6",children:[E.jsx(_E,{}),E.jsx(hG,{})]})]}),E.jsx(vG,{})]})]})]})]})}Rw(document.getElementById("root")).render(E.jsx(B.StrictMode,{children:E.jsx(yG,{})})); diff --git a/dist/assets/index-r57sLuj_.css b/dist/assets/index-r57sLuj_.css new file mode 100644 index 0000000..30359d6 --- /dev/null +++ b/dist/assets/index-r57sLuj_.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.relative{position:relative}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-2{height:.5rem}.h-3{height:.75rem}.h-32{height:8rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.min-h-screen{min-height:100vh}.w-11{width:2.75rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-64{width:16rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-full{width:100%}.flex-1{flex:1 1 0%}.flex-grow{flex-grow:1}.translate-x-1{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-6{--tw-translate-x: 1.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity, 1))}.bg-teal-100{--tw-bg-opacity: 1;background-color:rgb(204 251 241 / var(--tw-bg-opacity, 1))}.bg-teal-600{--tw-bg-opacity: 1;background-color:rgb(13 148 136 / var(--tw-bg-opacity, 1))}.bg-teal-700{--tw-bg-opacity: 1;background-color:rgb(15 118 110 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.from-purple-500{--tw-gradient-from: #a855f7 var(--tw-gradient-from-position);--tw-gradient-to: rgb(168 85 247 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-pink-500{--tw-gradient-to: #ec4899 var(--tw-gradient-to-position)}.p-1{padding:.25rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-teal-300{--tw-text-opacity: 1;color:rgb(94 234 212 / var(--tw-text-opacity, 1))}.text-teal-700{--tw-text-opacity: 1;color:rgb(15 118 110 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.placeholder-teal-300::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(94 234 212 / var(--tw-placeholder-opacity, 1))}.placeholder-teal-300::placeholder{--tw-placeholder-opacity: 1;color:rgb(94 234 212 / var(--tw-placeholder-opacity, 1))}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-purple-700:hover{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity, 1))}.hover\:bg-teal-500:hover{--tw-bg-opacity: 1;background-color:rgb(20 184 166 / var(--tw-bg-opacity, 1))}.hover\:bg-teal-700:hover{--tw-bg-opacity: 1;background-color:rgb(15 118 110 / var(--tw-bg-opacity, 1))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))} diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 0000000..eb32e17 --- /dev/null +++ b/dist/index.html @@ -0,0 +1,14 @@ + + + + + + + Wokay Assignment + + + + +
+ + diff --git a/package-lock.json b/package-lock.json index b88dfc5..4b07edc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "clickup-dashboard-clone", - "version": "0.0.0", + "name": "wokay-assignment", + "version": "0.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "clickup-dashboard-clone", - "version": "0.0.0", + "name": "wokay-assignment", + "version": "0.0.1", "dependencies": { "lucide-react": "^0.344.0", "react": "^18.3.1", From 4bd50a2de64e5210d7fae3964454a267851b1533 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 4 Jul 2025 08:17:30 +0000 Subject: [PATCH 3/4] Complete dashboard UI improvements with enhanced interactivity Co-authored-by: mswat5 <111264418+mswat5@users.noreply.github.com> --- dist/assets/index-D9muwg9d.css | 1 + dist/assets/index-DRrd4jtE.js | 292 ++++++++++++++++++++++++++ dist/assets/index-JZWsK2B6.js | 251 ---------------------- dist/assets/index-r57sLuj_.css | 1 - dist/index.html | 4 +- src/components/AIExecutiveSummary.tsx | 167 +++++++++++++-- src/components/DashboardControls.tsx | 172 ++++++++++++--- src/components/TaskCharts.tsx | 220 ++++++++++++++++--- src/components/TaskStatusOverview.tsx | 135 ++++++++++-- src/components/WorkloadChart.tsx | 170 +++++++++++++-- 10 files changed, 1046 insertions(+), 367 deletions(-) create mode 100644 dist/assets/index-D9muwg9d.css create mode 100644 dist/assets/index-DRrd4jtE.js delete mode 100644 dist/assets/index-JZWsK2B6.js delete mode 100644 dist/assets/index-r57sLuj_.css diff --git a/dist/assets/index-D9muwg9d.css b/dist/assets/index-D9muwg9d.css new file mode 100644 index 0000000..fe4d776 --- /dev/null +++ b/dist/assets/index-D9muwg9d.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-0{left:0}.top-full{top:100%}.z-10{z-index:10}.row-span-2{grid-row:span 2 / span 2}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-40{height:10rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-full{width:100%}.min-w-\[20px\]{min-width:20px}.flex-1{flex:1 1 0%}.flex-grow{flex-grow:1}.translate-x-1{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-6{--tw-translate-x: 1.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.border-orange-200{--tw-border-opacity: 1;border-color:rgb(254 215 170 / var(--tw-border-opacity, 1))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-orange-400{--tw-bg-opacity: 1;background-color:rgb(251 146 60 / var(--tw-bg-opacity, 1))}.bg-orange-50{--tw-bg-opacity: 1;background-color:rgb(255 247 237 / var(--tw-bg-opacity, 1))}.bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity, 1))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}.bg-purple-400{--tw-bg-opacity: 1;background-color:rgb(192 132 252 / var(--tw-bg-opacity, 1))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity, 1))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity, 1))}.bg-teal-100{--tw-bg-opacity: 1;background-color:rgb(204 251 241 / var(--tw-bg-opacity, 1))}.bg-teal-400{--tw-bg-opacity: 1;background-color:rgb(45 212 191 / var(--tw-bg-opacity, 1))}.bg-teal-600{--tw-bg-opacity: 1;background-color:rgb(13 148 136 / var(--tw-bg-opacity, 1))}.bg-teal-700{--tw-bg-opacity: 1;background-color:rgb(15 118 110 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-400{--tw-gradient-from: #60a5fa var(--tw-gradient-from-position);--tw-gradient-to: rgb(96 165 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-400{--tw-gradient-from: #4ade80 var(--tw-gradient-from-position);--tw-gradient-to: rgb(74 222 128 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-400{--tw-gradient-from: #818cf8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(129 140 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-400{--tw-gradient-from: #c084fc var(--tw-gradient-from-position);--tw-gradient-to: rgb(192 132 252 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from: #a855f7 var(--tw-gradient-from-position);--tw-gradient-to: rgb(168 85 247 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-500{--tw-gradient-from: #14b8a6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(20 184 166 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-600{--tw-gradient-from: #0d9488 var(--tw-gradient-from-position);--tw-gradient-to: rgb(13 148 136 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-pink-500{--tw-gradient-to: rgb(236 72 153 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #ec4899 var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-emerald-500{--tw-gradient-to: #10b981 var(--tw-gradient-to-position)}.to-indigo-500{--tw-gradient-to: #6366f1 var(--tw-gradient-to-position)}.to-indigo-600{--tw-gradient-to: #4f46e5 var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #ec4899 var(--tw-gradient-to-position)}.to-purple-500{--tw-gradient-to: #a855f7 var(--tw-gradient-to-position)}.to-teal-600{--tw-gradient-to: #0d9488 var(--tw-gradient-to-position)}.to-teal-700{--tw-gradient-to: #0f766e var(--tw-gradient-to-position)}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-relaxed{line-height:1.625}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity, 1))}.text-orange-700{--tw-text-opacity: 1;color:rgb(194 65 12 / var(--tw-text-opacity, 1))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.text-purple-600{--tw-text-opacity: 1;color:rgb(147 51 234 / var(--tw-text-opacity, 1))}.text-teal-300{--tw-text-opacity: 1;color:rgb(94 234 212 / var(--tw-text-opacity, 1))}.text-teal-600{--tw-text-opacity: 1;color:rgb(13 148 136 / var(--tw-text-opacity, 1))}.text-teal-700{--tw-text-opacity: 1;color:rgb(15 118 110 / var(--tw-text-opacity, 1))}.text-teal-800{--tw-text-opacity: 1;color:rgb(17 94 89 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.placeholder-teal-300::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(94 234 212 / var(--tw-placeholder-opacity, 1))}.placeholder-teal-300::placeholder{--tw-placeholder-opacity: 1;color:rgb(94 234 212 / var(--tw-placeholder-opacity, 1))}.opacity-20{opacity:.2}.opacity-30{opacity:.3}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-teal-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(20 184 166 / var(--tw-ring-opacity, 1))}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-400:hover{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.hover\:bg-purple-700:hover{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity, 1))}.hover\:bg-teal-500:hover{--tw-bg-opacity: 1;background-color:rgb(20 184 166 / var(--tw-bg-opacity, 1))}.hover\:bg-teal-700:hover{--tw-bg-opacity: 1;background-color:rgb(15 118 110 / var(--tw-bg-opacity, 1))}.hover\:from-teal-700:hover{--tw-gradient-from: #0f766e var(--tw-gradient-from-position);--tw-gradient-to: rgb(15 118 110 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-teal-800:hover{--tw-gradient-to: #115e59 var(--tw-gradient-to-position)}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-sm:hover{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-xl:hover{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-teal-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(20 184 166 / var(--tw-ring-opacity, 1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\:opacity-50:disabled{opacity:.5} diff --git a/dist/assets/index-DRrd4jtE.js b/dist/assets/index-DRrd4jtE.js new file mode 100644 index 0000000..88a37bc --- /dev/null +++ b/dist/assets/index-DRrd4jtE.js @@ -0,0 +1,292 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(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"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(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 n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var Dl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function he(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fb={exports:{}},ec={},Ub={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 Sl=Symbol.for("react.element"),QP=Symbol.for("react.portal"),ZP=Symbol.for("react.fragment"),JP=Symbol.for("react.strict_mode"),eA=Symbol.for("react.profiler"),tA=Symbol.for("react.provider"),rA=Symbol.for("react.context"),nA=Symbol.for("react.forward_ref"),iA=Symbol.for("react.suspense"),aA=Symbol.for("react.memo"),oA=Symbol.for("react.lazy"),Ny=Symbol.iterator;function lA(e){return e===null||typeof e!="object"?null:(e=Ny&&e[Ny]||e["@@iterator"],typeof e=="function"?e:null)}var Wb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hb=Object.assign,Kb={};function Oa(e,t,r){this.props=e,this.context=t,this.refs=Kb,this.updater=r||Wb}Oa.prototype.isReactComponent={};Oa.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")};Oa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Vb(){}Vb.prototype=Oa.prototype;function Nh(e,t,r){this.props=e,this.context=t,this.refs=Kb,this.updater=r||Wb}var Mh=Nh.prototype=new Vb;Mh.constructor=Nh;Hb(Mh,Oa.prototype);Mh.isPureReactComponent=!0;var My=Array.isArray,qb=Object.prototype.hasOwnProperty,Ih={current:null},Gb={key:!0,ref:!0,__self:!0,__source:!0};function Xb(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)qb.call(t,n)&&!Gb.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1>>1,W=k[K];if(0>>1;Ki(_e,F))Nei(Lt,_e)?(k[K]=Lt,k[Ne]=F,K=Ne):(k[K]=_e,k[ae]=F,K=ae);else if(Nei(Lt,F))k[K]=Lt,k[Ne]=F,K=Ne;else break e}}return I}function i(k,I){var F=k.sortIndex-I.sortIndex;return F!==0?F:k.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var u=[],s=[],f=1,c=null,d=3,p=!1,h=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=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(k){for(var I=r(s);I!==null;){if(I.callback===null)n(s);else if(I.startTime<=k)n(s),I.sortIndex=I.expirationTime,t(u,I);else break;I=r(s)}}function S(k){if(v=!1,g(k),!h)if(r(u)!==null)h=!0,R(b);else{var I=r(s);I!==null&&B(S,I.startTime-k)}}function b(k,I){h=!1,v&&(v=!1,m(P),P=-1),p=!0;var F=d;try{for(g(I),c=r(u);c!==null&&(!(c.expirationTime>I)||k&&!j());){var K=c.callback;if(typeof K=="function"){c.callback=null,d=c.priorityLevel;var W=K(c.expirationTime<=I);I=e.unstable_now(),typeof W=="function"?c.callback=W:c===r(u)&&n(u),g(I)}else n(u);c=r(u)}if(c!==null)var X=!0;else{var ae=r(s);ae!==null&&B(S,ae.startTime-I),X=!1}return X}finally{c=null,d=F,p=!1}}var w=!1,O=null,P=-1,A=5,$=-1;function j(){return!(e.unstable_now()-$k||125K?(k.sortIndex=F,t(s,k),r(u)===null&&k===r(s)&&(v?(m(P),P=-1):v=!0,B(S,F-K))):(k.sortIndex=W,t(u,k),h||p||(h=!0,R(b))),k},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(k){var I=d;return function(){var F=d;d=I;try{return k.apply(this,arguments)}finally{d=F}}}})(ex);Jb.exports=ex;var gA=Jb.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 bA=L,Mt=gA;function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dd=Object.prototype.hasOwnProperty,xA=/^[: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]*$/,Dy={},Ly={};function wA(e){return dd.call(Ly,e)?!0:dd.call(Dy,e)?!1:xA.test(e)?Ly[e]=!0:(Dy[e]=!0,!1)}function SA(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function OA(e,t,r,n){if(t===null||typeof t>"u"||SA(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,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 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];tt[t]=new pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tt[e]=new pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tt[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){tt[e]=new pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tt[e]=new pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tt[e]=new pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tt[e]=new pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tt[e]=new pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Lh=/[\-:]([a-z])/g;function Rh(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(Lh,Rh);tt[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(Lh,Rh);tt[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(Lh,Rh);tt[t]=new pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){tt[e]=new pt(e,1,!1,e.toLowerCase(),null,!1,!1)});tt.xlinkHref=new pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){tt[e]=new pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Bh(e,t,r,n){var i=tt.hasOwnProperty(t)?tt[t]:null;(i!==null?i.type!==0:n||!(2l||i[o]!==a[l]){var u=` +`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=l);break}}}finally{pf=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ro(e):""}function _A(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=hf(e.type,!1),e;case 11:return e=hf(e.type.render,!1),e;case 1:return e=hf(e.type,!0),e;default:return""}}function yd(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 gi:return"Fragment";case mi:return"Portal";case pd:return"Profiler";case zh:return"StrictMode";case hd:return"Suspense";case vd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case nx:return(e.displayName||"Context")+".Consumer";case rx:return(e._context.displayName||"Context")+".Provider";case Fh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Uh:return t=e.displayName||null,t!==null?t:yd(e.type)||"Memo";case Yr:t=e._payload,e=e._init;try{return yd(e(t))}catch{}}return null}function PA(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 yd(t);case 8:return t===zh?"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 hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ax(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function AA(e){var t=ax(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bl(e){e._valueTracker||(e._valueTracker=AA(e))}function ox(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=ax(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ju(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 r=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function By(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=hn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function lx(e,t){t=t.checked,t!=null&&Bh(e,"checked",t,!1)}function gd(e,t){lx(e,t);var r=hn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bd(e,t.type,r):t.hasOwnProperty("defaultValue")&&bd(e,t.type,hn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zy(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function bd(e,t,r){(t!=="number"||ju(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var no=Array.isArray;function Mi(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=zl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Po(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var lo={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},EA=["Webkit","ms","Moz","O"];Object.keys(lo).forEach(function(e){EA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),lo[t]=lo[e]})});function fx(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||lo.hasOwnProperty(e)&&lo[e]?(""+t).trim():t+"px"}function dx(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=fx(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var jA=$e({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 Sd(e,t){if(t){if(jA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function Od(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 _d=null;function Wh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pd=null,Ii=null,Di=null;function Wy(e){if(e=Pl(e)){if(typeof Pd!="function")throw Error(U(280));var t=e.stateNode;t&&(t=ac(t),Pd(e.stateNode,e.type,t))}}function px(e){Ii?Di?Di.push(e):Di=[e]:Ii=e}function hx(){if(Ii){var e=Ii,t=Di;if(Di=Ii=null,Wy(e),t)for(e=0;e>>=0,e===0?32:31-(BA(e)/zA|0)|0}var Fl=64,Ul=4194304;function io(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 Cu(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var l=o&~i;l!==0?n=io(l):(a&=o,a!==0&&(n=io(a)))}else o=r&~i,o!==0?n=io(o):a!==0&&(n=io(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Ol(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-or(t),e[t]=r}function HA(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=so),Zy=" ",Jy=!1;function Mx(e,t){switch(e){case"keyup":return g2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ix(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bi=!1;function x2(e,t){switch(e){case"compositionend":return Ix(t);case"keypress":return t.which!==32?null:(Jy=!0,Zy);case"textInput":return e=t.data,e===Zy&&Jy?null:e;default:return null}}function w2(e,t){if(bi)return e==="compositionend"||!Qh&&Mx(e,t)?(e=Cx(),mu=Gh=tn=null,bi=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nm(r)}}function Bx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zx(){for(var e=window,t=ju();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ju(e.document)}return t}function Zh(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 T2(e){var t=zx(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Bx(r.ownerDocument.documentElement,r)){if(n!==null&&Zh(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=im(r,a);var o=im(r,n);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>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,xi=null,kd=null,fo=null,Cd=!1;function am(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Cd||xi==null||xi!==ju(n)||(n=xi,"selectionStart"in n&&Zh(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),fo&&ko(fo,n)||(fo=n,n=Iu(kd,"onSelect"),0Oi||(e.current=Rd[Oi],Rd[Oi]=null,Oi--)}function ge(e,t){Oi++,Rd[Oi]=e.current,e.current=t}var vn={},ot=mn(vn),bt=mn(!1),qn=vn;function Ki(e,t){var r=e.type.contextTypes;if(!r)return vn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function xt(e){return e=e.childContextTypes,e!=null}function Lu(){Oe(bt),Oe(ot)}function dm(e,t,r){if(ot.current!==vn)throw Error(U(168));ge(ot,t),ge(bt,r)}function Xx(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(U(108,PA(e)||"Unknown",i));return $e({},r,n)}function Ru(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vn,qn=ot.current,ge(ot,e),ge(bt,bt.current),!0}function pm(e,t,r){var n=e.stateNode;if(!n)throw Error(U(169));r?(e=Xx(e,t,qn),n.__reactInternalMemoizedMergedChildContext=e,Oe(bt),Oe(ot),ge(ot,e)):Oe(bt),ge(bt,r)}var Ar=null,oc=!1,jf=!1;function Yx(e){Ar===null?Ar=[e]:Ar.push(e)}function U2(e){oc=!0,Yx(e)}function gn(){if(!jf&&Ar!==null){jf=!0;var e=0,t=fe;try{var r=Ar;for(fe=1;e>=o,i-=o,Er=1<<32-or(t)+i|r<P?(A=O,O=null):A=O.sibling;var $=d(m,O,g[P],S);if($===null){O===null&&(O=A);break}e&&O&&$.alternate===null&&t(m,O),y=a($,y,P),w===null?b=$:w.sibling=$,w=$,O=A}if(P===g.length)return r(m,O),Pe&&$n(m,P),b;if(O===null){for(;PP?(A=O,O=null):A=O.sibling;var j=d(m,O,$.value,S);if(j===null){O===null&&(O=A);break}e&&O&&j.alternate===null&&t(m,O),y=a(j,y,P),w===null?b=j:w.sibling=j,w=j,O=A}if($.done)return r(m,O),Pe&&$n(m,P),b;if(O===null){for(;!$.done;P++,$=g.next())$=c(m,$.value,S),$!==null&&(y=a($,y,P),w===null?b=$:w.sibling=$,w=$);return Pe&&$n(m,P),b}for(O=n(m,O);!$.done;P++,$=g.next())$=p(O,m,P,$.value,S),$!==null&&(e&&$.alternate!==null&&O.delete($.key===null?P:$.key),y=a($,y,P),w===null?b=$:w.sibling=$,w=$);return e&&O.forEach(function(T){return t(m,T)}),Pe&&$n(m,P),b}function x(m,y,g,S){if(typeof g=="object"&&g!==null&&g.type===gi&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Rl:e:{for(var b=g.key,w=y;w!==null;){if(w.key===b){if(b=g.type,b===gi){if(w.tag===7){r(m,w.sibling),y=i(w,g.props.children),y.return=m,m=y;break e}}else if(w.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Yr&&ym(b)===w.type){r(m,w.sibling),y=i(w,g.props),y.ref=Wa(m,w,g),y.return=m,m=y;break e}r(m,w);break}else t(m,w);w=w.sibling}g.type===gi?(y=Wn(g.props.children,m.mode,S,g.key),y.return=m,m=y):(S=Pu(g.type,g.key,g.props,null,m.mode,S),S.ref=Wa(m,y,g),S.return=m,m=S)}return o(m);case mi:e:{for(w=g.key;y!==null;){if(y.key===w)if(y.tag===4&&y.stateNode.containerInfo===g.containerInfo&&y.stateNode.implementation===g.implementation){r(m,y.sibling),y=i(y,g.children||[]),y.return=m,m=y;break e}else{r(m,y);break}else t(m,y);y=y.sibling}y=Df(g,m.mode,S),y.return=m,m=y}return o(m);case Yr:return w=g._init,x(m,y,w(g._payload),S)}if(no(g))return h(m,y,g,S);if(Ra(g))return v(m,y,g,S);Xl(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,y!==null&&y.tag===6?(r(m,y.sibling),y=i(y,g),y.return=m,m=y):(r(m,y),y=If(g,m.mode,S),y.return=m,m=y),o(m)):r(m,y)}return x}var qi=ew(!0),tw=ew(!1),Fu=mn(null),Uu=null,Ai=null,rv=null;function nv(){rv=Ai=Uu=null}function iv(e){var t=Fu.current;Oe(Fu),e._currentValue=t}function Fd(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Ri(e,t){Uu=e,rv=Ai=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(mt=!0),e.firstContext=null)}function qt(e){var t=e._currentValue;if(rv!==e)if(e={context:e,memoizedValue:t,next:null},Ai===null){if(Uu===null)throw Error(U(308));Ai=e,Uu.dependencies={lanes:0,firstContext:e}}else Ai=Ai.next=e;return t}var Dn=null;function av(e){Dn===null?Dn=[e]:Dn.push(e)}function rw(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,av(t)):(r.next=i.next,i.next=r),t.interleaved=r,Rr(e,n)}function Rr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Qr=!1;function ov(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function nw(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function kr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function sn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,le&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Rr(e,r)}return i=n.interleaved,i===null?(t.next=t,av(n)):(t.next=i.next,i.next=t),n.interleaved=t,Rr(e,r)}function bu(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Kh(e,r)}}function mm(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Wu(e,t,r,n){var i=e.updateQueue;Qr=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,s=u.next;u.next=null,o===null?a=s:o.next=s,o=u;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==o&&(l===null?f.firstBaseUpdate=s:l.next=s,f.lastBaseUpdate=u))}if(a!==null){var c=i.baseState;o=0,f=s=u=null,l=a;do{var d=l.lane,p=l.eventTime;if((n&d)===d){f!==null&&(f=f.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,v=l;switch(d=t,p=r,v.tag){case 1:if(h=v.payload,typeof h=="function"){c=h.call(p,c,d);break e}c=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=v.payload,d=typeof h=="function"?h.call(p,c,d):h,d==null)break e;c=$e({},c,d);break e;case 2:Qr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(s=f=p,u=c):f=f.next=p,o|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(u=c),i.baseState=u,i.firstBaseUpdate=s,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Yn|=o,e.lanes=o,e.memoizedState=c}}function gm(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=Tf.transition;Tf.transition={};try{e(!1),t()}finally{fe=r,Tf.transition=n}}function xw(){return Gt().memoizedState}function V2(e,t,r){var n=fn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},ww(e))Sw(t,r);else if(r=rw(e,t,r,n),r!==null){var i=ft();lr(r,e,n,i),Ow(r,t,n)}}function q2(e,t,r){var n=fn(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(ww(e))Sw(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,l=a(o,r);if(i.hasEagerState=!0,i.eagerState=l,ur(l,o)){var u=t.interleaved;u===null?(i.next=i,av(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}r=rw(e,t,i,n),r!==null&&(i=ft(),lr(r,e,n,i),Ow(r,t,n))}}function ww(e){var t=e.alternate;return e===je||t!==null&&t===je}function Sw(e,t){po=Ku=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Ow(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Kh(e,r)}}var Vu={readContext:qt,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useInsertionEffect:rt,useLayoutEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useMutableSource:rt,useSyncExternalStore:rt,useId:rt,unstable_isNewReconciler:!1},G2={readContext:qt,useCallback:function(e,t){return fr().memoizedState=[e,t===void 0?null:t],e},useContext:qt,useEffect:xm,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,wu(4194308,4,vw.bind(null,t,e),r)},useLayoutEffect:function(e,t){return wu(4194308,4,e,t)},useInsertionEffect:function(e,t){return wu(4,2,e,t)},useMemo:function(e,t){var r=fr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=fr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=V2.bind(null,je,e),[n.memoizedState,e]},useRef:function(e){var t=fr();return e={current:e},t.memoizedState=e},useState:bm,useDebugValue:hv,useDeferredValue:function(e){return fr().memoizedState=e},useTransition:function(){var e=bm(!1),t=e[0];return e=K2.bind(null,e[1]),fr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=je,i=fr();if(Pe){if(r===void 0)throw Error(U(407));r=r()}else{if(r=t(),Ye===null)throw Error(U(349));Xn&30||lw(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,xm(sw.bind(null,n,a,e),[e]),n.flags|=2048,Bo(9,uw.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=fr(),t=Ye.identifierPrefix;if(Pe){var r=jr,n=Er;r=(n&~(1<<32-or(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Lo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[dr]=t,e[Mo]=n,Nw(e,t,!1,!1),t.stateNode=e;e:{switch(o=Od(r,n),r){case"dialog":xe("cancel",e),xe("close",e),i=n;break;case"iframe":case"object":case"embed":xe("load",e),i=n;break;case"video":case"audio":for(i=0;iYi&&(t.flags|=128,n=!0,Ha(a,!1),t.lanes=4194304)}else{if(!n)if(e=Hu(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ha(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Pe)return nt(t),null}else 2*Me()-a.renderingStartTime>Yi&&r!==1073741824&&(t.flags|=128,n=!0,Ha(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Me(),t.sibling=null,r=Ee.current,ge(Ee,n?r&1|2:r&1),t):(nt(t),null);case 22:case 23:return xv(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Pt&1073741824&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function rE(e,t){switch(ev(t),t.tag){case 1:return xt(t.type)&&Lu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gi(),Oe(bt),Oe(ot),sv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return uv(t),null;case 13:if(Oe(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Oe(Ee),null;case 4:return Gi(),null;case 10:return iv(t.type._context),null;case 22:case 23:return xv(),null;case 24:return null;default:return null}}var Ql=!1,at=!1,nE=typeof WeakSet=="function"?WeakSet:Set,q=null;function Ei(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){ke(e,t,n)}else r.current=null}function Yd(e,t,r){try{r()}catch(n){ke(e,t,n)}}var km=!1;function iE(e,t){if(Nd=Nu,e=zx(),Zh(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,l=-1,u=-1,s=0,f=0,c=e,d=null;t:for(;;){for(var p;c!==r||i!==0&&c.nodeType!==3||(l=o+i),c!==a||n!==0&&c.nodeType!==3||(u=o+n),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break t;if(d===r&&++s===i&&(l=o),d===a&&++f===n&&(u=o),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}r=l===-1||u===-1?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Md={focusedElem:e,selectionRange:r},Nu=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,x=h.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:er(t.type,v),x);m.__reactInternalSnapshotBeforeUpdate=y}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(U(163))}}catch(S){ke(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return h=km,km=!1,h}function ho(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Yd(t,r,a)}i=i.next}while(i!==n)}}function sc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Qd(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Dw(e){var t=e.alternate;t!==null&&(e.alternate=null,Dw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dr],delete t[Mo],delete t[Ld],delete t[z2],delete t[F2])),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 Lw(e){return e.tag===5||e.tag===3||e.tag===4}function Cm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lw(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 Zd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Du));else if(n!==4&&(e=e.child,e!==null))for(Zd(e,t,r),e=e.sibling;e!==null;)Zd(e,t,r),e=e.sibling}function Jd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Jd(e,t,r),e=e.sibling;e!==null;)Jd(e,t,r),e=e.sibling}var Je=null,tr=!1;function Xr(e,t,r){for(r=r.child;r!==null;)Rw(e,t,r),r=r.sibling}function Rw(e,t,r){if(hr&&typeof hr.onCommitFiberUnmount=="function")try{hr.onCommitFiberUnmount(tc,r)}catch{}switch(r.tag){case 5:at||Ei(r,t);case 6:var n=Je,i=tr;Je=null,Xr(e,t,r),Je=n,tr=i,Je!==null&&(tr?(e=Je,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Je.removeChild(r.stateNode));break;case 18:Je!==null&&(tr?(e=Je,r=r.stateNode,e.nodeType===8?Ef(e.parentNode,r):e.nodeType===1&&Ef(e,r),$o(e)):Ef(Je,r.stateNode));break;case 4:n=Je,i=tr,Je=r.stateNode.containerInfo,tr=!0,Xr(e,t,r),Je=n,tr=i;break;case 0:case 11:case 14:case 15:if(!at&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Yd(r,t,o),i=i.next}while(i!==n)}Xr(e,t,r);break;case 1:if(!at&&(Ei(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){ke(r,t,l)}Xr(e,t,r);break;case 21:Xr(e,t,r);break;case 22:r.mode&1?(at=(n=at)||r.memoizedState!==null,Xr(e,t,r),at=n):Xr(e,t,r);break;default:Xr(e,t,r)}}function Nm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new nE),t.forEach(function(n){var i=pE.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Zt(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=Me()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*oE(n/1960))-n,10e?16:e,rn===null)var n=!1;else{if(e=rn,rn=null,Xu=0,le&6)throw Error(U(331));var i=le;for(le|=4,q=e.current;q!==null;){var a=q,o=a.child;if(q.flags&16){var l=a.deletions;if(l!==null){for(var u=0;uMe()-gv?Un(e,0):mv|=r),wt(e,t)}function Vw(e,t){t===0&&(e.mode&1?(t=Ul,Ul<<=1,!(Ul&130023424)&&(Ul=4194304)):t=1);var r=ft();e=Rr(e,t),e!==null&&(Ol(e,t,r),wt(e,r))}function dE(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Vw(e,r)}function pE(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(U(314))}n!==null&&n.delete(t),Vw(e,r)}var qw;qw=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||bt.current)mt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return mt=!1,eE(e,t,r);mt=!!(e.flags&131072)}else mt=!1,Pe&&t.flags&1048576&&Qx(t,zu,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Su(e,t),e=t.pendingProps;var i=Ki(t,ot.current);Ri(t,r),i=fv(null,t,n,e,i,r);var a=dv();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(n)?(a=!0,Ru(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ov(t),i.updater=uc,t.stateNode=i,i._reactInternals=t,Wd(t,n,e,r),t=Vd(null,t,n,!0,a,r)):(t.tag=0,Pe&&a&&Jh(t),lt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Su(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=vE(n),e=er(n,e),i){case 0:t=Kd(null,t,n,e,r);break e;case 1:t=jm(null,t,n,e,r);break e;case 11:t=Am(null,t,n,e,r);break e;case 14:t=Em(null,t,n,er(n.type,e),r);break e}throw Error(U(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:er(n,i),Kd(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:er(n,i),jm(e,t,n,i,r);case 3:e:{if(Tw(t),e===null)throw Error(U(387));n=t.pendingProps,a=t.memoizedState,i=a.element,nw(e,t),Wu(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Xi(Error(U(423)),t),t=$m(e,t,n,r,i);break e}else if(n!==i){i=Xi(Error(U(424)),t),t=$m(e,t,n,r,i);break e}else for(Tt=un(t.stateNode.containerInfo.firstChild),kt=t,Pe=!0,ir=null,r=tw(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Vi(),n===i){t=Br(e,t,r);break e}lt(e,t,n,r)}t=t.child}return t;case 5:return iw(t),e===null&&zd(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Id(n,i)?o=null:a!==null&&Id(n,a)&&(t.flags|=32),$w(e,t),lt(e,t,o,r),t.child;case 6:return e===null&&zd(t),null;case 13:return kw(e,t,r);case 4:return lv(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=qi(t,null,n,r):lt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:er(n,i),Am(e,t,n,i,r);case 7:return lt(e,t,t.pendingProps,r),t.child;case 8:return lt(e,t,t.pendingProps.children,r),t.child;case 12:return lt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,ge(Fu,n._currentValue),n._currentValue=o,a!==null)if(ur(a.value,o)){if(a.children===i.children&&!bt.current){t=Br(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){o=a.child;for(var u=l.firstContext;u!==null;){if(u.context===n){if(a.tag===1){u=kr(-1,r&-r),u.tag=2;var s=a.updateQueue;if(s!==null){s=s.shared;var f=s.pending;f===null?u.next=u:(u.next=f.next,f.next=u),s.pending=u}}a.lanes|=r,u=a.alternate,u!==null&&(u.lanes|=r),Fd(a.return,r,t),l.lanes|=r;break}u=u.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(U(341));o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),Fd(o,r,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}lt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Ri(t,r),i=qt(i),n=n(i),t.flags|=1,lt(e,t,n,r),t.child;case 14:return n=t.type,i=er(n,t.pendingProps),i=er(n.type,i),Em(e,t,n,i,r);case 15:return Ew(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:er(n,i),Su(e,t),t.tag=1,xt(n)?(e=!0,Ru(t)):e=!1,Ri(t,r),_w(t,n,i),Wd(t,n,i,r),Vd(null,t,n,!0,e,r);case 19:return Cw(e,t,r);case 22:return jw(e,t,r)}throw Error(U(156,t.tag))};function Gw(e,t){return wx(e,t)}function hE(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(e,t,r,n){return new hE(e,t,r,n)}function Sv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vE(e){if(typeof e=="function")return Sv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fh)return 11;if(e===Uh)return 14}return 2}function dn(e,t){var r=e.alternate;return r===null?(r=Ht(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Pu(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")Sv(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case gi:return Wn(r.children,i,a,t);case zh:o=8,i|=8;break;case pd:return e=Ht(12,r,t,i|2),e.elementType=pd,e.lanes=a,e;case hd:return e=Ht(13,r,t,i),e.elementType=hd,e.lanes=a,e;case vd:return e=Ht(19,r,t,i),e.elementType=vd,e.lanes=a,e;case ix:return fc(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rx:o=10;break e;case nx:o=9;break e;case Fh:o=11;break e;case Uh:o=14;break e;case Yr:o=16,n=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=Ht(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Wn(e,t,r,n){return e=Ht(7,e,n,t),e.lanes=r,e}function fc(e,t,r,n){return e=Ht(22,e,n,t),e.elementType=ix,e.lanes=r,e.stateNode={isHidden:!1},e}function If(e,t,r){return e=Ht(6,e,null,t),e.lanes=r,e}function Df(e,t,r){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yE(e,t,r,n,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=yf(0),this.expirationTimes=yf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yf(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ov(e,t,r,n,i,a,o,l,u){return e=new yE(e,t,r,l,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Ht(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ov(a),e}function mE(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Zw)}catch(e){console.error(e)}}Zw(),Zb.exports=It;var SE=Zb.exports,Jw,Fm=SE;Jw=Fm.createRoot,Fm.hydrateRoot;/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var OE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _E=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),ie=(e,t)=>{const r=L.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:l="",children:u,...s},f)=>L.createElement("svg",{ref:f,...OE,width:i,height:i,stroke:n,strokeWidth:o?Number(a)*24/Number(i):a,className:["lucide",`lucide-${_E(e)}`,l].join(" "),...s},[...t.map(([c,d])=>L.createElement(c,d)),...Array.isArray(u)?u:[u]]));return r.displayName=`${e}`,r};/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const PE=ie("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const AE=ie("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const EE=ie("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const jE=ie("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $E=ie("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const TE=ie("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const eS=ie("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Lf=ie("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ip=ie("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Ev=ie("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const kE=ie("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tS=ie("Expand",[["path",{d:"m21 21-6-6m6 6v-4.8m0 4.8h-4.8",key:"1c15vz"}],["path",{d:"M3 16.2V21m0 0h4.8M3 21l6-6",key:"1fsnz2"}],["path",{d:"M21 7.8V3m0 0h-4.8M21 3l-6 6",key:"hawz9i"}],["path",{d:"M3 7.8V3m0 0h4.8M3 3l6 6",key:"u9ee12"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const CE=ie("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const NE=ie("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ME=ie("FileSpreadsheet",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const IE=ie("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const DE=ie("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const rS=ie("HelpCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const LE=ie("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const RE=ie("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const BE=ie("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nS=ie("MoreHorizontal",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Zu=ie("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const iS=ie("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const aS=ie("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const oS=ie("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const zE=ie("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const lS=ie("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const FE=ie("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const uS=ie("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const sS=ie("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const UE=ie("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cS=ie("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** + * @license lucide-react v0.344.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const WE=ie("Video",[["path",{d:"m22 8-6 4 6 4V8Z",key:"50v9me"}],["rect",{width:"14",height:"12",x:"2",y:"6",rx:"2",ry:"2",key:"1rqjg6"}]]),HE=()=>_.jsx("header",{className:"bg-teal-700 text-white",children:_.jsxs("div",{className:"flex items-center justify-between px-4 py-2",children:[_.jsx("div",{className:"flex items-center space-x-2",children:_.jsx("div",{className:"w-8 h-8 bg-white rounded-sm flex items-center justify-center",children:_.jsx("div",{className:"w-5 h-5 bg-teal-700 rounded-sm"})})}),_.jsxs("div",{className:"flex items-center bg-teal-600 rounded-md px-3 py-1.5 w-80",children:[_.jsx(aS,{className:"w-4 h-4 text-teal-300 mr-2"}),_.jsx("input",{type:"text",placeholder:"Search...",className:"bg-transparent text-white placeholder-teal-300 outline-none w-full"})]}),_.jsxs("div",{className:"flex items-center space-x-3",children:[_.jsxs("button",{className:"flex items-center space-x-1 bg-teal-600 hover:bg-teal-500 px-3 py-1.5 rounded-md transition-colors",children:[_.jsx(lS,{className:"w-4 h-4"}),_.jsx("span",{className:"text-sm",children:"AI"})]}),_.jsx("button",{className:"bg-purple-600 hover:bg-purple-700 px-4 py-1.5 rounded-md text-sm font-medium transition-colors",children:"Upgrade"}),_.jsxs("button",{className:"flex items-center space-x-1 bg-white text-teal-700 hover:bg-gray-100 px-3 py-1.5 rounded-md transition-colors",children:[_.jsx(Zu,{className:"w-4 h-4"}),_.jsx("span",{className:"text-sm font-medium",children:"New"})]}),_.jsxs("div",{className:"flex items-center space-x-2",children:[_.jsx($E,{className:"w-5 h-5 text-teal-300 hover:text-white cursor-pointer"}),_.jsx(oS,{className:"w-5 h-5 text-teal-300 hover:text-white cursor-pointer"}),_.jsx(rS,{className:"w-5 h-5 text-teal-300 hover:text-white cursor-pointer"}),_.jsx("div",{className:"w-8 h-8 bg-blue-500 rounded-full flex items-center justify-center font-semibold",children:"S"})]})]})]})}),KE=()=>_.jsx("div",{className:"bg-white border-b border-gray-200 px-6 py-3",children:_.jsxs("div",{className:"flex items-center justify-between",children:[_.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600",children:[_.jsx("span",{children:"Dashboards"}),_.jsx(ip,{className:"w-4 h-4"}),_.jsx("span",{className:"text-gray-900 font-medium",children:"Dashboard"})]}),_.jsxs("div",{className:"flex items-center space-x-3",children:[_.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:_.jsx(zE,{className:"w-4 h-4"})}),_.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:_.jsx(FE,{className:"w-4 h-4"})}),_.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:_.jsx(kE,{className:"w-4 h-4"})}),_.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:_.jsx(tS,{className:"w-4 h-4"})}),_.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:_.jsx(nS,{className:"w-4 h-4"})})]})]})}),VE=()=>{const[e,t]=L.useState(!1),[r,n]=L.useState(!0),i=[{icon:LE,label:"Home",active:!1},{icon:RE,label:"Inbox",active:!1},{icon:cS,label:"Teams",active:!1},{icon:IE,label:"Docs",active:!1},{icon:jE,label:"Dashboards",active:!0},{icon:BE,label:"Whiteboards",active:!1},{icon:ME,label:"Forms",active:!1},{icon:WE,label:"Clips",active:!1},{icon:uS,label:"Goals",active:!1},{icon:Ev,label:"Timesheets",active:!1},{icon:nS,label:"More",active:!1}];return _.jsxs("div",{className:"w-64 bg-gray-50 h-screen border-r border-gray-200 flex flex-col",children:[_.jsx("div",{className:"p-4 border-b border-gray-200",children:_.jsxs("div",{className:"flex items-center space-x-3",children:[_.jsx("div",{className:"w-8 h-8 bg-teal-600 rounded-full flex items-center justify-center text-white font-semibold text-sm",children:"S"}),_.jsx("div",{className:"flex-1",children:_.jsxs("div",{className:"flex items-center space-x-1",children:[_.jsx("span",{className:"text-sm font-medium text-gray-900",children:"Swatantra mi..."}),_.jsx(Lf,{className:"w-4 h-4 text-gray-500"})]})})]})}),_.jsxs("nav",{className:"flex-1 p-4 space-y-1",children:[i.map((a,o)=>_.jsxs("a",{href:"#",className:`flex items-center space-x-3 px-3 py-2 rounded-md text-sm transition-colors ${a.active?"bg-teal-100 text-teal-700 font-medium":"text-gray-700 hover:bg-gray-100"}`,children:[_.jsx(a.icon,{className:"w-4 h-4"}),_.jsx("span",{children:a.label})]},o)),_.jsx("div",{className:"pt-4",children:_.jsxs("button",{onClick:()=>t(!e),className:"flex items-center space-x-2 w-full px-3 py-2 text-sm text-gray-600 hover:text-gray-900 transition-colors",children:[e?_.jsx(Lf,{className:"w-4 h-4"}):_.jsx(ip,{className:"w-4 h-4"}),_.jsx("span",{className:"font-medium",children:"Favorites"})]})}),_.jsxs("div",{className:"pt-2",children:[_.jsxs("button",{onClick:()=>n(!r),className:"flex items-center space-x-2 w-full px-3 py-2 text-sm text-gray-600 hover:text-gray-900 transition-colors",children:[r?_.jsx(Lf,{className:"w-4 h-4"}):_.jsx(ip,{className:"w-4 h-4"}),_.jsx("span",{className:"font-medium",children:"Spaces"}),_.jsxs("div",{className:"ml-auto flex items-center space-x-1",children:[_.jsx(aS,{className:"w-3 h-3"}),_.jsx(Zu,{className:"w-3 h-3"})]})]}),r&&_.jsxs("div",{className:"ml-4 mt-1 space-y-1",children:[_.jsxs("a",{href:"#",className:"flex items-center space-x-2 px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 rounded-md",children:[_.jsx("div",{className:"w-2 h-2 bg-gray-400 rounded-full"}),_.jsx("span",{children:"Everything"})]}),_.jsxs("a",{href:"#",className:"flex items-center space-x-2 px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 rounded-md",children:[_.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full"}),_.jsx("span",{children:"Team Space"})]}),_.jsxs("button",{className:"flex items-center space-x-2 px-3 py-1.5 text-sm text-gray-500 hover:text-gray-700 transition-colors",children:[_.jsx(Zu,{className:"w-3 h-3"}),_.jsx("span",{children:"Create Space"})]})]})]})]}),_.jsxs("div",{className:"p-4 border-t border-gray-200 space-y-2",children:[_.jsxs("button",{className:"flex items-center space-x-2 w-full px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-md transition-colors",children:[_.jsx(UE,{className:"w-4 h-4"}),_.jsx("span",{children:"Invite"})]}),_.jsxs("button",{className:"flex items-center space-x-2 w-full px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-md transition-colors",children:[_.jsx(rS,{className:"w-4 h-4"}),_.jsx("span",{children:"Help"})]})]})]})},qE=()=>{const[e,t]=L.useState(!1),[r,n]=L.useState(!0),[i,a]=L.useState(!1),[o,l]=L.useState("3 mins ago"),[u,s]=L.useState(0),[f,c]=L.useState(!1),d=()=>{a(!0),setTimeout(()=>{a(!1),l("just now")},1500)},p=()=>{s(h=>h===0?1:0)};return L.useEffect(()=>{if(r){const h=setInterval(()=>{l(v=>v==="just now"?"1 min ago":v==="1 min ago"?"2 mins ago":"3 mins ago")},6e4);return()=>clearInterval(h)}},[r]),_.jsxs("div",{className:"bg-white border-b border-gray-200 px-6 py-4 shadow-sm",children:[_.jsxs("div",{className:"flex items-center justify-between",children:[_.jsxs("div",{className:"flex items-center space-x-8",children:[_.jsxs("div",{className:"flex items-center space-x-3",children:[_.jsxs("div",{className:"flex items-center space-x-2",children:[e?_.jsx(NE,{className:"w-4 h-4 text-teal-600"}):_.jsx(CE,{className:"w-4 h-4 text-gray-400"}),_.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Edit mode:"})]}),_.jsxs("button",{onClick:()=>t(!e),className:`relative inline-flex h-6 w-11 items-center rounded-full transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-teal-500 focus:ring-offset-2 ${e?"bg-gradient-to-r from-teal-500 to-teal-600 shadow-lg":"bg-gray-200 hover:bg-gray-300"}`,children:[_.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-all duration-300 shadow-md ${e?"translate-x-6 scale-110":"translate-x-1"}`}),e&&_.jsx("div",{className:"absolute inset-0 rounded-full bg-teal-400 opacity-20 animate-ping"})]}),e&&_.jsx("span",{className:"text-xs text-teal-600 font-medium animate-pulse",children:"Active"})]}),_.jsxs("div",{className:"flex items-center space-x-4",children:[_.jsxs("button",{onClick:d,disabled:i,className:"flex items-center space-x-2 text-sm text-gray-600 hover:text-gray-800 transition-colors disabled:opacity-50",children:[_.jsx(iS,{className:`w-4 h-4 ${i?"animate-spin text-teal-600":""}`}),_.jsx("span",{children:i?"Refreshing...":`Refreshed ${o}`})]}),_.jsxs("div",{className:"flex items-center space-x-3",children:[_.jsxs("div",{className:"flex items-center space-x-2",children:[_.jsx(Ev,{className:"w-4 h-4 text-gray-400"}),_.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Auto refresh:"})]}),_.jsxs("button",{onClick:()=>n(!r),className:`relative inline-flex h-5 w-9 items-center rounded-full transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-teal-500 focus:ring-offset-2 ${r?"bg-gradient-to-r from-teal-500 to-teal-600 shadow-md":"bg-gray-200 hover:bg-gray-300"}`,children:[_.jsx("span",{className:`inline-block h-3 w-3 transform rounded-full bg-white transition-all duration-300 shadow-sm ${r?"translate-x-5 scale-110":"translate-x-1"}`}),r&&_.jsx("div",{className:"absolute inset-0 rounded-full bg-teal-400 opacity-20 animate-pulse"})]}),_.jsx("span",{className:`text-sm font-medium transition-colors ${r?"text-teal-600":"text-gray-500"}`,children:r?"On":"Off"})]}),_.jsxs("div",{className:"relative",children:[_.jsxs("button",{onClick:()=>c(!f),className:"flex items-center space-x-2 px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 rounded-lg transition-all duration-200 hover:shadow-sm border border-gray-200",children:[_.jsx(DE,{className:"w-4 h-4"}),_.jsx("span",{children:"Filters"}),u>0&&_.jsx("span",{className:"bg-teal-600 text-white text-xs rounded-full px-1.5 py-0.5 min-w-[20px] text-center",children:u})]}),f&&_.jsxs("div",{className:"absolute top-full left-0 mt-2 w-64 bg-white border border-gray-200 rounded-lg shadow-lg z-10 p-4",children:[_.jsx("h4",{className:"font-medium text-gray-900 mb-3",children:"Filter Options"}),_.jsx("div",{className:"space-y-2",children:["Status","Assignee","Priority","Date"].map(h=>_.jsxs("label",{className:"flex items-center space-x-2 cursor-pointer",children:[_.jsx("input",{type:"checkbox",className:"rounded border-gray-300 text-teal-600 focus:ring-teal-500",onChange:()=>p()}),_.jsx("span",{className:"text-sm text-gray-700",children:h})]},h))}),_.jsx("button",{onClick:()=>c(!1),className:"mt-3 w-full px-3 py-1.5 bg-teal-600 text-white rounded-md text-sm hover:bg-teal-700 transition-colors",children:"Apply Filters"})]})]})]})]}),_.jsxs("div",{className:"flex items-center space-x-3",children:[_.jsx("button",{className:"flex items-center space-x-2 px-3 py-1.5 text-gray-600 hover:text-gray-800 transition-colors",children:_.jsx(oS,{className:"w-4 h-4"})}),_.jsxs("button",{className:"flex items-center space-x-2 bg-gradient-to-r from-teal-600 to-teal-700 hover:from-teal-700 hover:to-teal-800 text-white px-4 py-2 rounded-lg text-sm font-medium transition-all duration-200 shadow-md hover:shadow-lg transform hover:scale-105",children:[_.jsx(Zu,{className:"w-4 h-4"}),_.jsx("span",{children:"Add Card"})]})]})]}),u>0&&_.jsxs("div",{className:"mt-3 flex items-center space-x-2",children:[_.jsx("span",{className:"text-sm text-gray-600",children:"Active filters:"}),_.jsx("span",{className:"bg-teal-100 text-teal-800 px-2 py-1 rounded-md text-xs font-medium",children:"Status: In Progress"}),_.jsx("button",{onClick:()=>s(0),className:"text-gray-400 hover:text-gray-600 text-xs",children:"Clear all"})]})]})},GE=()=>{const[e,t]=L.useState(!1),[r,n]=L.useState(0),[i,a]=L.useState(!1),o=[{title:"Team Productivity Surge",content:"Your team has completed 73% more tasks this week compared to last week. The Development team is leading with 18 completed tasks.",type:"positive",icon:sS,color:"text-green-600",bgColor:"bg-green-50",borderColor:"border-green-200"},{title:"Bottleneck Alert",content:"The Review process is experiencing delays with 8 pending tasks. Consider allocating additional reviewers to maintain workflow.",type:"warning",icon:EE,color:"text-orange-600",bgColor:"bg-orange-50",borderColor:"border-orange-200"},{title:"Sprint Goal Achievement",content:"You're on track to exceed your sprint goal by 15%. Current completion rate suggests finishing 2 days ahead of schedule.",type:"success",icon:eS,color:"text-blue-600",bgColor:"bg-blue-50",borderColor:"border-blue-200"}],l=["Consider redistributing 3 tasks from Design to Development team","Schedule additional code review sessions for Thursday","Celebrate team achievements to maintain momentum"],u=()=>{t(!0),setTimeout(()=>{t(!1),n(c=>(c+1)%o.length)},2e3)};L.useEffect(()=>{const c=setInterval(()=>{n(d=>(d+1)%o.length)},8e3);return()=>clearInterval(c)},[o.length]);const s=o[r],f=s.icon;return _.jsxs("div",{className:`bg-white flex-grow rounded-xl border border-gray-200 p-6 transition-all duration-500 hover:shadow-xl ${i?"row-span-2":""}`,children:[_.jsxs("div",{className:"flex items-center justify-between mb-6",children:[_.jsxs("div",{className:"flex items-center space-x-3",children:[_.jsxs("div",{className:"relative",children:[_.jsx("div",{className:"w-10 h-10 bg-gradient-to-br from-purple-500 via-pink-500 to-indigo-600 rounded-xl flex items-center justify-center shadow-lg",children:_.jsx(lS,{className:"w-5 h-5 text-white"})}),e&&_.jsx("div",{className:"absolute inset-0 rounded-xl bg-purple-400 opacity-30 animate-ping"})]}),_.jsxs("div",{children:[_.jsxs("h3",{className:"text-lg font-semibold text-gray-900 flex items-center",children:["AI Executive Summary",_.jsx(TE,{className:"w-4 h-4 ml-2 text-purple-500"})]}),_.jsx("p",{className:"text-sm text-gray-500",children:e?"Generating insights...":"Updated just now"})]})]}),_.jsxs("div",{className:"flex items-center space-x-2",children:[_.jsx("button",{onClick:()=>a(!i),className:"p-2 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-lg transition-all duration-200",children:_.jsx(tS,{className:"w-4 h-4"})}),_.jsx("button",{onClick:u,disabled:e,className:"p-2 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-lg transition-all duration-200 disabled:opacity-50",children:_.jsx(iS,{className:`w-4 h-4 ${e?"animate-spin text-purple-600":""}`})})]})]}),_.jsx("div",{className:`${s.bgColor} ${s.borderColor} border rounded-xl p-4 mb-6 transition-all duration-500`,children:_.jsxs("div",{className:"flex items-start space-x-3",children:[_.jsx("div",{className:"p-2 rounded-lg bg-white shadow-sm",children:_.jsx(f,{className:`w-5 h-5 ${s.color}`})}),_.jsxs("div",{className:"flex-1",children:[_.jsx("h4",{className:`font-semibold ${s.color} mb-2`,children:s.title}),_.jsx("p",{className:"text-gray-700 text-sm leading-relaxed",children:s.content})]})]})}),_.jsx("div",{className:"flex justify-center space-x-2 mb-6",children:o.map((c,d)=>_.jsx("button",{onClick:()=>n(d),className:`w-2 h-2 rounded-full transition-all duration-300 ${d===r?"bg-purple-500 w-6":"bg-gray-300 hover:bg-gray-400"}`},d))}),_.jsxs("div",{className:"space-y-4",children:[_.jsxs("div",{children:[_.jsxs("h4",{className:"font-semibold text-gray-900 mb-3 flex items-center",children:[_.jsx("span",{className:"w-2 h-2 bg-purple-500 rounded-full mr-3"}),"AI Recommendations"]}),_.jsx("div",{className:"space-y-2",children:l.map((c,d)=>_.jsxs("div",{className:"flex items-start space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors cursor-pointer",children:[_.jsx("div",{className:"w-5 h-5 rounded-full bg-purple-100 flex items-center justify-center mt-0.5",children:_.jsx("span",{className:"text-xs font-medium text-purple-600",children:d+1})}),_.jsx("p",{className:"text-sm text-gray-700 leading-relaxed",children:c})]},d))})]}),i&&_.jsxs("div",{className:"mt-6 pt-4 border-t border-gray-200",children:[_.jsx("h4",{className:"font-semibold text-gray-900 mb-3",children:"Detailed Analytics"}),_.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[_.jsxs("div",{className:"text-center p-3 bg-blue-50 rounded-lg",children:[_.jsx("div",{className:"text-xl font-bold text-blue-600",children:"92%"}),_.jsx("div",{className:"text-xs text-gray-600",children:"Team Efficiency"})]}),_.jsxs("div",{className:"text-center p-3 bg-green-50 rounded-lg",children:[_.jsx("div",{className:"text-xl font-bold text-green-600",children:"+18%"}),_.jsx("div",{className:"text-xs text-gray-600",children:"Week over Week"})]})]})]})]})]})},XE=()=>{const[e,t]=L.useState(!1),[r,n]=L.useState(null),i=[{label:"Unassigned",count:8,color:"bg-orange-50 border-orange-200",textColor:"text-orange-700",numberColor:"text-orange-600",icon:AE,iconColor:"text-orange-500",trend:"+2 from yesterday",trendColor:"text-orange-600"},{label:"In Progress",count:12,color:"bg-blue-50 border-blue-200",textColor:"text-blue-700",numberColor:"text-blue-600",icon:Ev,iconColor:"text-blue-500",trend:"+5 from yesterday",trendColor:"text-blue-600"},{label:"Completed",count:24,color:"bg-green-50 border-green-200",textColor:"text-green-700",numberColor:"text-green-600",icon:eS,iconColor:"text-green-500",trend:"+8 from yesterday",trendColor:"text-green-600"}];L.useEffect(()=>{const o=setTimeout(()=>t(!0),100);return()=>clearTimeout(o)},[]);const a=({target:o,className:l})=>{const[u,s]=L.useState(0);return L.useEffect(()=>{if(!e)return;const f=o/20,c=setInterval(()=>{s(d=>{const p=d+f;return p>=o?(clearInterval(c),o):p})},50);return()=>clearInterval(c)},[o]),_.jsx("div",{className:l,children:Math.floor(u)})};return _.jsx("div",{className:"grid grid-cols-3 gap-6",children:i.map((o,l)=>{const u=o.icon;return _.jsxs("div",{className:`bg-white rounded-xl border-2 p-6 text-center transition-all duration-300 cursor-pointer transform hover:scale-105 hover:shadow-lg ${o.color} ${r===l?"shadow-xl":"shadow-sm"}`,onMouseEnter:()=>n(l),onMouseLeave:()=>n(null),children:[_.jsxs("div",{className:"flex items-center justify-between mb-3",children:[_.jsx("h3",{className:`text-sm font-semibold ${o.textColor}`,children:o.label}),_.jsx(u,{className:`w-5 h-5 ${o.iconColor}`})]}),_.jsx(a,{target:o.count,className:`text-4xl font-bold mb-2 ${o.numberColor}`}),_.jsx("div",{className:"text-sm text-gray-500 mb-2",children:"tasks"}),_.jsxs("div",{className:`flex items-center justify-center text-xs ${o.trendColor} opacity-80`,children:[_.jsx(sS,{className:"w-3 h-3 mr-1"}),o.trend]}),_.jsx("div",{className:"mt-4 w-full bg-gray-200 rounded-full h-2",children:_.jsx("div",{className:`h-2 rounded-full transition-all duration-1000 ease-out ${o.label==="Unassigned"?"bg-orange-400":o.label==="In Progress"?"bg-blue-400":"bg-green-400"}`,style:{width:e?`${o.count/44*100}%`:"0%"}})})]},l)})})};function fS(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t-1}var G$=q$,X$=mc;function Y$(e,t){var r=this.__data__,n=X$(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Q$=Y$,Z$=M$,J$=U$,eT=K$,tT=G$,rT=Q$;function $a(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0?1:-1},Rn=function(t){return Zn(t)&&t.indexOf("%")===t.length-1},H=function(t){return _k(t)&&!jl(t)},jk=function(t){return J(t)},Ke=function(t){return H(t)||Zn(t)},$k=0,ka=function(t){var r=++$k;return"".concat(t||"").concat(r)},st=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!H(t)&&!Zn(t))return n;var a;if(Rn(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return jl(a)&&(a=n),i&&a>r&&(a=r),a},yi=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Tk=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Lk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function op(e){"@babel/helpers - typeof";return op=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},op(e)}var Jm={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Cr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},eg=null,zf=null,Bv=function e(t){if(t===eg&&Array.isArray(zf))return zf;var r=[];return L.Children.forEach(t,function(n){J(n)||(bk.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),zf=r,eg=t,r};function Nt(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Cr(i)}):n=[Cr(t)],Bv(e).forEach(function(i){var a=Ct(i,"type.displayName")||Ct(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function At(e,t){var r=Nt(e,t);return r&&r[0]}var tg=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!H(n)||n<=0||!H(i)||i<=0)},Rk=["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"],Bk=function(t){return t&&t.type&&Zn(t.type)&&Rk.indexOf(t.type)>=0},zk=function(t){return t&&op(t)==="object"&&"clipDot"in t},Fk=function(t,r,n,i){var a,o=(a=Bf==null?void 0:Bf[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Z(t)&&(i&&o.includes(r)||Nk.includes(r))||n&&Rv.includes(r)},Y=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(L.isValidElement(t)&&(i=t.props),!Ea(i))return null;var a={};return Object.keys(i).forEach(function(o){var l;Fk((l=i)===null||l===void 0?void 0:l[o],o,r,n)&&(a[o]=i[o])}),a},lp=function e(t,r){if(t===r)return!0;var n=L.Children.count(t);if(n!==L.Children.count(r))return!1;if(n===0)return!0;if(n===1)return rg(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Vk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function sp(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,l=e.title,u=e.desc,s=Kk(e,Hk),f=i||{width:r,height:n,x:0,y:0},c=te("recharts-surface",a);return E.createElement("svg",up({},Y(s,!0,"svg"),{className:c,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),E.createElement("title",null,l),E.createElement("desc",null,u),t)}var qk=["children","className"];function cp(){return cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Xk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ue=E.forwardRef(function(e,t){var r=e.children,n=e.className,i=Gk(e,qk),a=te("recharts-layer",n);return E.createElement("g",cp({className:a},Y(i,!0),{ref:t}),r)}),Nr=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;ai?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n=n?e:Zk(e,t,r)}var eC=Jk,tC="\\ud800-\\udfff",rC="\\u0300-\\u036f",nC="\\ufe20-\\ufe2f",iC="\\u20d0-\\u20ff",aC=rC+nC+iC,oC="\\ufe0e\\ufe0f",lC="\\u200d",uC=RegExp("["+lC+tC+aC+oC+"]");function sC(e){return uC.test(e)}var _S=sC;function cC(e){return e.split("")}var fC=cC,PS="\\ud800-\\udfff",dC="\\u0300-\\u036f",pC="\\ufe20-\\ufe2f",hC="\\u20d0-\\u20ff",vC=dC+pC+hC,yC="\\ufe0e\\ufe0f",mC="["+PS+"]",fp="["+vC+"]",dp="\\ud83c[\\udffb-\\udfff]",gC="(?:"+fp+"|"+dp+")",AS="[^"+PS+"]",ES="(?:\\ud83c[\\udde6-\\uddff]){2}",jS="[\\ud800-\\udbff][\\udc00-\\udfff]",bC="\\u200d",$S=gC+"?",TS="["+yC+"]?",xC="(?:"+bC+"(?:"+[AS,ES,jS].join("|")+")"+TS+$S+")*",wC=TS+$S+xC,SC="(?:"+[AS+fp+"?",fp,ES,jS,mC].join("|")+")",OC=RegExp(dp+"(?="+dp+")|"+SC+wC,"g");function _C(e){return e.match(OC)||[]}var PC=_C,AC=fC,EC=_S,jC=PC;function $C(e){return EC(e)?jC(e):AC(e)}var TC=$C,kC=eC,CC=_S,NC=TC,MC=gS;function IC(e){return function(t){t=MC(t);var r=CC(t)?NC(t):void 0,n=r?r[0]:t.charAt(0),i=r?kC(r,1).join(""):t.slice(1);return n[e]()+i}}var DC=IC,LC=DC,RC=LC("toUpperCase"),BC=RC;const kc=he(BC);function me(e){return function(){return e}}const kS=Math.cos,ts=Math.sin,sr=Math.sqrt,rs=Math.PI,Cc=2*rs,pp=Math.PI,hp=2*pp,kn=1e-6,zC=hp-kn;function CS(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return CS;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;ikn)if(!(Math.abs(c*u-s*f)>kn)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,h=i-l,v=u*u+s*s,x=p*p+h*h,m=Math.sqrt(v),y=Math.sqrt(d),g=a*Math.tan((pp-Math.acos((v+d-x)/(2*m*y)))/2),S=g/y,b=g/m;Math.abs(S-1)>kn&&this._append`L${t+S*f},${r+S*c}`,this._append`A${a},${a},0,0,${+(c*p>f*h)},${this._x1=t+b*u},${this._y1=r+b*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),u=n*Math.sin(i),s=t+l,f=r+u,c=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>kn||Math.abs(this._y1-f)>kn)&&this._append`L${s},${f}`,n&&(d<0&&(d=d%hp+hp),d>zC?this._append`A${n},${n},0,1,${c},${t-l},${r-u}A${n},${n},0,1,${c},${this._x1=s},${this._y1=f}`:d>kn&&this._append`A${n},${n},0,${+(d>=pp)},${c},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function zv(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new UC(t)}function Fv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function NS(e){this._context=e}NS.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 Nc(e){return new NS(e)}function MS(e){return e[0]}function IS(e){return e[1]}function DS(e,t){var r=me(!0),n=null,i=Nc,a=null,o=zv(l);e=typeof e=="function"?e:e===void 0?MS:me(e),t=typeof t=="function"?t:t===void 0?IS:me(t);function l(u){var s,f=(u=Fv(u)).length,c,d=!1,p;for(n==null&&(a=i(p=o())),s=0;s<=f;++s)!(s=p;--h)l.point(g[h],S[h]);l.lineEnd(),l.areaEnd()}m&&(g[d]=+e(x,d,c),S[d]=+t(x,d,c),l.point(n?+n(x,d,c):g[d],r?+r(x,d,c):S[d]))}if(y)return l=null,y+""||null}function f(){return DS().defined(i).curve(o).context(a)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:me(+c),n=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:me(+c),s):e},s.x1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:me(+c),s):n},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:me(+c),r=null,s):t},s.y0=function(c){return arguments.length?(t=typeof c=="function"?c:me(+c),s):t},s.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:me(+c),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(c){return arguments.length?(i=typeof c=="function"?c:me(!!c),s):i},s.curve=function(c){return arguments.length?(o=c,a!=null&&(l=o(a)),s):o},s.context=function(c){return arguments.length?(c==null?a=l=null:l=o(a=c),s):a},s}class LS{constructor(t,r){this._context=t,this._x=r}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,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function WC(e){return new LS(e,!0)}function HC(e){return new LS(e,!1)}const Uv={draw(e,t){const r=sr(t/rs);e.moveTo(r,0),e.arc(0,0,r,0,Cc)}},KC={draw(e,t){const r=sr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},RS=sr(1/3),VC=RS*2,qC={draw(e,t){const r=sr(t/VC),n=r*RS;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},GC={draw(e,t){const r=sr(t),n=-r/2;e.rect(n,n,r,r)}},XC=.8908130915292852,BS=ts(rs/10)/ts(7*rs/10),YC=ts(Cc/10)*BS,QC=-kS(Cc/10)*BS,ZC={draw(e,t){const r=sr(t*XC),n=YC*r,i=QC*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Cc*a/5,l=kS(o),u=ts(o);e.lineTo(u*r,-l*r),e.lineTo(l*n-u*i,u*n+l*i)}e.closePath()}},Ff=sr(3),JC={draw(e,t){const r=-sr(t/(Ff*3));e.moveTo(0,r*2),e.lineTo(-Ff*r,-r),e.lineTo(Ff*r,-r),e.closePath()}},Rt=-.5,Bt=sr(3)/2,vp=1/sr(12),eN=(vp/2+1)*3,tN={draw(e,t){const r=sr(t/eN),n=r/2,i=r*vp,a=n,o=r*vp+r,l=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,u),e.lineTo(Rt*n-Bt*i,Bt*n+Rt*i),e.lineTo(Rt*a-Bt*o,Bt*a+Rt*o),e.lineTo(Rt*l-Bt*u,Bt*l+Rt*u),e.lineTo(Rt*n+Bt*i,Rt*i-Bt*n),e.lineTo(Rt*a+Bt*o,Rt*o-Bt*a),e.lineTo(Rt*l+Bt*u,Rt*u-Bt*l),e.closePath()}};function rN(e,t){let r=null,n=zv(i);e=typeof e=="function"?e:me(e||Uv),t=typeof t=="function"?t:me(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:me(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:me(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function ns(){}function is(e,t,r){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+r)/6)}function zS(e){this._context=e}zS.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:is(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:is(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nN(e){return new zS(e)}function FS(e){this._context=e}FS.prototype={areaStart:ns,areaEnd:ns,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:is(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function iN(e){return new FS(e)}function US(e){this._context=e}US.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:is(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function aN(e){return new US(e)}function WS(e){this._context=e}WS.prototype={areaStart:ns,areaEnd:ns,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 oN(e){return new WS(e)}function ig(e){return e<0?-1:1}function ag(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),l=(a*i+o*n)/(n+i);return(ig(a)+ig(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function og(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Uf(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,o-l*r,a,o)}function as(e){this._context=e}as.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:Uf(this,this._t0,og(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 r=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,Uf(this,og(this,r=ag(this,e,t)),r);break;default:Uf(this,this._t0,r=ag(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function HS(e){this._context=new KS(e)}(HS.prototype=Object.create(as.prototype)).point=function(e,t){as.prototype.point.call(this,t,e)};function KS(e){this._context=e}KS.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,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function lN(e){return new as(e)}function uN(e){return new HS(e)}function VS(e){this._context=e}VS.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=lg(e),i=lg(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function cN(e){return new Mc(e,.5)}function fN(e){return new Mc(e,0)}function dN(e){return new Mc(e,1)}function Qi(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,l=a.length;r=0;)r[t]=t;return r}function pN(e,t){return e[t]}function hN(e){const t=[];return t.key=e,t}function vN(){var e=me([]),t=yp,r=Qi,n=pN;function i(a){var o=Array.from(e.apply(this,arguments),hN),l,u=o.length,s=-1,f;for(const c of a)for(l=0,++s;l0){for(var r,n,i=0,a=e[0].length,o;i0){for(var r=0,n=e[t[0]],i,a=n.length;r0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _N(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var qS={symbolCircle:Uv,symbolCross:KC,symbolDiamond:qC,symbolSquare:GC,symbolStar:ZC,symbolTriangle:JC,symbolWye:tN},PN=Math.PI/180,AN=function(t){var r="symbol".concat(kc(t));return qS[r]||Uv},EN=function(t,r,n){if(r==="area")return t;switch(n){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*PN;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}},jN=function(t,r){qS["symbol".concat(kc(t))]=r},Wv=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,l=o===void 0?"area":o,u=ON(t,bN),s=sg(sg({},u),{},{type:n,size:a,sizeType:l}),f=function(){var x=AN(n),m=rN().type(x).size(EN(a,l,n));return m()},c=s.className,d=s.cx,p=s.cy,h=Y(s,!0);return d===+d&&p===+p&&a===+a?E.createElement("path",mp({},h,{className:te("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(p,")"),d:f()})):null};Wv.registerSymbol=jN;function Zi(e){"@babel/helpers - typeof";return Zi=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},Zi(e)}function gp(){return gp=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var y=p.inactive?s:p.color;return E.createElement("li",gp({className:x,style:c,key:"legend-item-".concat(h)},Jn(n.props,p,h)),E.createElement(sp,{width:o,height:o,viewBox:f,style:d},n.renderIcon(p)),E.createElement("span",{className:"recharts-legend-item-text",style:{color:y}},v?v(m,p,h):m))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return E.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(L.PureComponent);Uo(Hv,"displayName","Legend");Uo(Hv,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var RN=gc;function BN(){this.__data__=new RN,this.size=0}var zN=BN;function FN(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var UN=FN;function WN(e){return this.__data__.get(e)}var HN=WN;function KN(e){return this.__data__.has(e)}var VN=KN,qN=gc,GN=kv,XN=Cv,YN=200;function QN(e,t){var r=this.__data__;if(r instanceof qN){var n=r.__data__;if(!GN||n.lengthl))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=r&bM?new vM:void 0;for(a.set(e,t),a.set(t,e);++c-1&&e%1==0&&e-1&&e%1==0&&e<=OI}var Gv=_I,PI=Hr,AI=Gv,EI=Kr,jI="[object Arguments]",$I="[object Array]",TI="[object Boolean]",kI="[object Date]",CI="[object Error]",NI="[object Function]",MI="[object Map]",II="[object Number]",DI="[object Object]",LI="[object RegExp]",RI="[object Set]",BI="[object String]",zI="[object WeakMap]",FI="[object ArrayBuffer]",UI="[object DataView]",WI="[object Float32Array]",HI="[object Float64Array]",KI="[object Int8Array]",VI="[object Int16Array]",qI="[object Int32Array]",GI="[object Uint8Array]",XI="[object Uint8ClampedArray]",YI="[object Uint16Array]",QI="[object Uint32Array]",we={};we[WI]=we[HI]=we[KI]=we[VI]=we[qI]=we[GI]=we[XI]=we[YI]=we[QI]=!0;we[jI]=we[$I]=we[FI]=we[TI]=we[UI]=we[kI]=we[CI]=we[NI]=we[MI]=we[II]=we[DI]=we[LI]=we[RI]=we[BI]=we[zI]=!1;function ZI(e){return EI(e)&&AI(e.length)&&!!we[PI(e)]}var JI=ZI;function e3(e){return function(t){return e(t)}}var iO=e3,ss={exports:{}};ss.exports;(function(e,t){var r=dS,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,l=function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(ss,ss.exports);var t3=ss.exports,r3=JI,n3=iO,yg=t3,mg=yg&&yg.isTypedArray,i3=mg?n3(mg):r3,aO=i3,a3=uI,o3=Vv,l3=St,u3=nO,s3=qv,c3=aO,f3=Object.prototype,d3=f3.hasOwnProperty;function p3(e,t){var r=l3(e),n=!r&&o3(e),i=!r&&!n&&u3(e),a=!r&&!n&&!i&&c3(e),o=r||n||i||a,l=o?a3(e.length,String):[],u=l.length;for(var s in e)(t||d3.call(e,s))&&!(o&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||s3(s,u)))&&l.push(s);return l}var h3=p3,v3=Object.prototype;function y3(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||v3;return e===r}var m3=y3;function g3(e,t){return function(r){return e(t(r))}}var oO=g3,b3=oO,x3=b3(Object.keys,Object),w3=x3,S3=m3,O3=w3,_3=Object.prototype,P3=_3.hasOwnProperty;function A3(e){if(!S3(e))return O3(e);var t=[];for(var r in Object(e))P3.call(e,r)&&r!="constructor"&&t.push(r);return t}var E3=A3,j3=$v,$3=Gv;function T3(e){return e!=null&&$3(e.length)&&!j3(e)}var Ic=T3,k3=h3,C3=E3,N3=Ic;function M3(e){return N3(e)?k3(e):C3(e)}var Xv=M3,I3=YM,D3=oI,L3=Xv;function R3(e){return I3(e,L3,D3)}var B3=R3,gg=B3,z3=1,F3=Object.prototype,U3=F3.hasOwnProperty;function W3(e,t,r,n,i,a){var o=r&z3,l=gg(e),u=l.length,s=gg(t),f=s.length;if(u!=f&&!o)return!1;for(var c=u;c--;){var d=l[c];if(!(o?d in t:U3.call(t,d)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var v=!0;a.set(e,t),a.set(t,e);for(var x=o;++c-1}var UL=FL;function WL(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=i4){var s=t?null:r4(e);if(s)return n4(s);o=!1,i=t4,u=new ZL}else u=t?[]:l;e:for(;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function x4(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function w4(e){return e.value}function S4(e,t){if(E.isValidElement(e))return E.cloneElement(e,t);if(typeof e=="function")return E.createElement(e,t);t.ref;var r=b4(t,f4);return E.createElement(Hv,r)}var Mg=1,Fi=function(e){function t(){var r;d4(this,t);for(var n=arguments.length,i=new Array(n),a=0;aMg||Math.abs(i.height-this.lastBoundingBox.height)>Mg)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Or({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,l=i.verticalAlign,u=i.margin,s=i.chartWidth,f=i.chartHeight,c,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();c={left:((s||0)-p.width)/2}}else c=o==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(l==="middle"){var h=this.getBBoxSnapshot();d={top:((f||0)-h.height)/2}}else d=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return Or(Or({},c),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,l=i.height,u=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,c=Or(Or({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return E.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){n.wrapperNode=p}},S4(a,Or(Or({},this.props),{},{payload:dO(f,s,w4)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Or(Or({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&H(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(L.PureComponent);Dc(Fi,"displayName","Legend");Dc(Fi,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Ig=El,O4=Vv,_4=St,Dg=Ig?Ig.isConcatSpreadable:void 0;function P4(e){return _4(e)||O4(e)||!!(Dg&&e&&e[Dg])}var A4=P4,E4=tO,j4=A4;function vO(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=j4),i||(i=[]);++a0&&r(l)?t>1?vO(l,t-1,r,n,i):E4(i,l):n||(i[i.length]=l)}return i}var yO=vO;function $4(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),l=o.length;l--;){var u=o[e?l:++i];if(r(a[u],u,a)===!1)break}return t}}var T4=$4,k4=T4,C4=k4(),N4=C4,M4=N4,I4=Xv;function D4(e,t){return e&&M4(e,t,I4)}var mO=D4,L4=Ic;function R4(e,t){return function(r,n){if(r==null)return r;if(!L4(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++at||a&&o&&u&&!l&&!s||n&&o&&u||!r&&u||!i)return 1;if(!n&&!a&&!s&&e=l)return u;var s=r[n];return u*(s=="desc"?-1:1)}}return e.index-t.index}var Z4=Q4,Vf=Mv,J4=Iv,eR=xn,tR=gO,rR=q4,nR=iO,iR=Z4,aR=Ma,oR=St;function lR(e,t,r){t.length?t=Vf(t,function(a){return oR(a)?function(o){return J4(o,a.length===1?a[0]:a)}:a}):t=[aR];var n=-1;t=Vf(t,nR(eR));var i=tR(e,function(a,o,l){var u=Vf(t,function(s){return s(a)});return{criteria:u,index:++n,value:a}});return rR(i,function(a,o){return iR(a,o,r)})}var uR=lR;function sR(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var cR=sR,fR=cR,Rg=Math.max;function dR(e,t,r){return t=Rg(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Rg(n.length-t,0),o=Array(a);++i0){if(++t>=SR)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var AR=PR,ER=wR,jR=AR,$R=jR(ER),TR=$R,kR=Ma,CR=pR,NR=TR;function MR(e,t){return NR(CR(e,t,kR),e+"")}var IR=MR,DR=Tv,LR=Ic,RR=qv,BR=bn;function zR(e,t,r){if(!BR(r))return!1;var n=typeof t;return(n=="number"?LR(r)&&RR(t,r.length):n=="string"&&t in r)?DR(r[t],e):!1}var Lc=zR,FR=yO,UR=uR,WR=IR,zg=Lc,HR=WR(function(e,t){if(e==null)return[];var r=t.length;return r>1&&zg(e,t[0],t[1])?t=[]:r>2&&zg(t[0],t[1],t[2])&&(t=[t[0]]),UR(e,FR(t,1),[])}),KR=HR;const Zv=he(KR);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 Ap(){return Ap=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t.x),"".concat(qa,"-left"),H(r)&&t&&H(t.x)&&r=t.y),"".concat(qa,"-top"),H(n)&&t&&H(t.y)&&nv?Math.max(f,u[n]):Math.max(c,u[n])}function o5(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function l5(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,u=e.viewBox,s,f,c;return o.height>0&&o.width>0&&r?(f=Wg({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),c=Wg({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),s=o5({translateX:f,translateY:c,useTranslate3d:l})):s=i5,{cssProperties:s,cssClasses:a5({translateX:f,translateY:c,coordinate:r})}}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 Hg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kg(e){for(var t=1;tVg||Math.abs(n.height-this.state.lastBoundingBox.height)>Vg)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.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 n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,s=i.children,f=i.coordinate,c=i.hasPayload,d=i.isAnimationActive,p=i.offset,h=i.position,v=i.reverseDirection,x=i.useTranslate3d,m=i.viewBox,y=i.wrapperStyle,g=l5({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:h,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:m}),S=g.cssClasses,b=g.cssProperties,w=Kg(Kg({transition:d&&a?"transform ".concat(l,"ms ").concat(u):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&c?"visible":"hidden",position:"absolute",top:0,left:0},y);return E.createElement("div",{tabIndex:-1,className:S,style:w,ref:function(P){n.wrapperNode=P}},s)}}])}(L.PureComponent),m5=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},yr={isSsr:m5(),get:function(t){return yr[t]},set:function(t,r){if(typeof t=="string")yr[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){yr[i]=t[i]})}}};function ta(e){"@babel/helpers - typeof";return ta=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},ta(e)}function qg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gg(e){for(var t=1;t0;return E.createElement(y5,{allowEscapeViewBox:o,animationDuration:l,animationEasing:u,isAnimationActive:d,active:a,coordinate:f,hasPayload:w,offset:p,position:x,reverseDirection:m,useTranslate3d:y,viewBox:g,wrapperStyle:S},E5(s,Gg(Gg({},this.props),{},{payload:b})))}}])}(L.PureComponent);Jv(Et,"displayName","Tooltip");Jv(Et,"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 j5=Sr,$5=function(){return j5.Date.now()},T5=$5,k5=/\s/;function C5(e){for(var t=e.length;t--&&k5.test(e.charAt(t)););return t}var N5=C5,M5=N5,I5=/^\s+/;function D5(e){return e&&e.slice(0,M5(e)+1).replace(I5,"")}var L5=D5,R5=L5,Xg=bn,B5=Aa,Yg=NaN,z5=/^[-+]0x[0-9a-f]+$/i,F5=/^0b[01]+$/i,U5=/^0o[0-7]+$/i,W5=parseInt;function H5(e){if(typeof e=="number")return e;if(B5(e))return Yg;if(Xg(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xg(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=R5(e);var r=F5.test(e);return r||U5.test(e)?W5(e.slice(2),r?2:8):z5.test(e)?Yg:+e}var _O=H5,K5=bn,Gf=T5,Qg=_O,V5="Expected a function",q5=Math.max,G5=Math.min;function X5(e,t,r){var n,i,a,o,l,u,s=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(V5);t=Qg(t)||0,K5(r)&&(f=!!r.leading,c="maxWait"in r,a=c?q5(Qg(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function p(w){var O=n,P=i;return n=i=void 0,s=w,o=e.apply(P,O),o}function h(w){return s=w,l=setTimeout(m,t),f?p(w):o}function v(w){var O=w-u,P=w-s,A=t-O;return c?G5(A,a-P):A}function x(w){var O=w-u,P=w-s;return u===void 0||O>=t||O<0||c&&P>=a}function m(){var w=Gf();if(x(w))return y(w);l=setTimeout(m,v(w))}function y(w){return l=void 0,d&&n?p(w):(n=i=void 0,o)}function g(){l!==void 0&&clearTimeout(l),s=0,n=u=i=l=void 0}function S(){return l===void 0?o:y(Gf())}function b(){var w=Gf(),O=x(w);if(n=arguments,i=this,u=w,O){if(l===void 0)return h(u);if(c)return clearTimeout(l),l=setTimeout(m,t),p(u)}return l===void 0&&(l=setTimeout(m,t)),o}return b.cancel=g,b.flush=S,b}var Y5=X5,Q5=Y5,Z5=bn,J5="Expected a function";function e6(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(J5);return Z5(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Q5(e,t,{leading:n,maxWait:t,trailing:i})}var t6=e6;const PO=he(t6);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 Zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nu(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(N=PO(N,v,{trailing:!0,leading:!1}));var D=new ResizeObserver(N),M=b.current.getBoundingClientRect(),R=M.width,B=M.height;return j(R,B),D.observe(b.current),function(){D.disconnect()}},[j,v]);var T=L.useMemo(function(){var N=A.containerWidth,D=A.containerHeight;if(N<0||D<0)return null;Nr(Rn(o)||Rn(u),`The width(%s) and height(%s) are both fixed numbers, + maybe you don't need to use a ResponsiveContainer.`,o,u),Nr(!r||r>0,"The aspect(%s) must be greater than zero.",r);var M=Rn(o)?N:o,R=Rn(u)?D:u;r&&r>0&&(M?R=M/r:R&&(M=R*r),d&&R>d&&(R=d)),Nr(M>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.`,M,R,o,u,f,c,r);var B=!Array.isArray(p)&&Cr(p.type).endsWith("Chart");return E.Children.map(p,function(k){return E.isValidElement(k)?L.cloneElement(k,nu({width:M,height:R},B?{style:nu({height:"100%",width:"100%",maxHeight:R,maxWidth:M},k.props.style)}:{})):k})},[r,p,u,d,c,f,A,o]);return E.createElement("div",{id:x?"".concat(x):void 0,className:te("recharts-responsive-container",m),style:nu(nu({},S),{},{width:o,height:u,minWidth:f,minHeight:c,maxHeight:d}),ref:b},T)}),Hn=function(t){return null};Hn.displayName="Cell";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 e0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tp(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||yr.isSsr)return{width:0,height:0};var n=v6(r),i=JSON.stringify({text:t,copyStyle:n});if(pi.widthCache[i])return pi.widthCache[i];try{var a=document.getElementById(t0);a||(a=document.createElement("span"),a.setAttribute("id",t0),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Tp(Tp({},h6),n);Object.assign(a.style,o),a.textContent="".concat(t);var l=a.getBoundingClientRect(),u={width:l.width,height:l.height};return pi.widthCache[i]=u,++pi.cacheCount>p6&&(pi.cacheCount=0,pi.widthCache={}),u}catch{return{width:0,height:0}}},y6=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 ps(e,t){return x6(e)||b6(e,t)||g6(e,t)||m6()}function m6(){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 g6(e,t){if(e){if(typeof e=="string")return r0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return r0(e,t)}}function r0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function M6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function u0(e,t){return R6(e)||L6(e,t)||D6(e,t)||I6()}function I6(){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 D6(e,t){if(e){if(typeof e=="string")return s0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s0(e,t)}}function s0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return M.reduce(function(R,B){var k=B.word,I=B.width,F=R[R.length-1];if(F&&(i==null||a||F.width+I+nB.width?R:B})};if(!f)return p;for(var v="…",x=function(M){var R=c.slice(0,M),B=$O({breakAll:s,style:u,children:R+v}).wordsWithComputedWidth,k=d(B),I=k.length>o||h(k).width>Number(i);return[I,k]},m=0,y=c.length-1,g=0,S;m<=y&&g<=c.length-1;){var b=Math.floor((m+y)/2),w=b-1,O=x(w),P=u0(O,2),A=P[0],$=P[1],j=x(b),T=u0(j,1),N=T[0];if(!A&&!N&&(m=b+1),A&&N&&(y=b-1),!A&&N){S=$;break}g++}return S||p},c0=function(t){var r=J(t)?[]:t.toString().split(jO);return[{words:r}]},z6=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,l=t.maxLines;if((r||n)&&!yr.isSsr){var u,s,f=$O({breakAll:o,children:i,style:a});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;u=c,s=d}else return c0(i);return B6({breakAll:o,children:i,maxLines:l,style:a},u,s,r,n)}return c0(i)},f0="#808080",ei=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,l=o===void 0?"1em":o,u=t.capHeight,s=u===void 0?"0.71em":u,f=t.scaleToFit,c=f===void 0?!1:f,d=t.textAnchor,p=d===void 0?"start":d,h=t.verticalAnchor,v=h===void 0?"end":h,x=t.fill,m=x===void 0?f0:x,y=l0(t,C6),g=L.useMemo(function(){return z6({breakAll:y.breakAll,children:y.children,maxLines:y.maxLines,scaleToFit:c,style:y.style,width:y.width})},[y.breakAll,y.children,y.maxLines,c,y.style,y.width]),S=y.dx,b=y.dy,w=y.angle,O=y.className,P=y.breakAll,A=l0(y,N6);if(!Ke(n)||!Ke(a))return null;var $=n+(H(S)?S:0),j=a+(H(b)?b:0),T;switch(v){case"start":T=Xf("calc(".concat(s,")"));break;case"middle":T=Xf("calc(".concat((g.length-1)/2," * -").concat(l," + (").concat(s," / 2))"));break;default:T=Xf("calc(".concat(g.length-1," * -").concat(l,")"));break}var N=[];if(c){var D=g[0].width,M=y.width;N.push("scale(".concat((H(M)?M/D:1)/D,")"))}return w&&N.push("rotate(".concat(w,", ").concat($,", ").concat(j,")")),N.length&&(A.transform=N.join(" ")),E.createElement("text",kp({},Y(A,!0),{x:$,y:j,className:te("recharts-text",O),textAnchor:p,fill:m.includes("url")?f0:m}),g.map(function(R,B){var k=R.words.join(P?"":" ");return E.createElement("tspan",{x:$,dy:B===0?T:l,key:"".concat(k,"-").concat(B)},k)}))};function pn(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function F6(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function ey(e){let t,r,n;e.length!==2?(t=pn,r=(l,u)=>pn(e(l),u),n=(l,u)=>e(l)-u):(t=e===pn||e===F6?e:U6,r=e,n=e);function i(l,u,s=0,f=l.length){if(s>>1;r(l[c],u)<0?s=c+1:f=c}while(s>>1;r(l[c],u)<=0?s=c+1:f=c}while(ss&&n(l[c-1],u)>-n(l[c],u)?c-1:c}return{left:i,center:o,right:a}}function U6(){return 0}function TO(e){return e===null?NaN:+e}function*W6(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const H6=ey(pn),$l=H6.right;ey(TO).center;class d0 extends Map{constructor(t,r=q6){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(p0(this,t))}has(t){return super.has(p0(this,t))}set(t,r){return super.set(K6(this,t),r)}delete(t){return super.delete(V6(this,t))}}function p0({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function K6({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function V6({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function q6(e){return e!==null&&typeof e=="object"?e.valueOf():e}function G6(e=pn){if(e===pn)return kO;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function kO(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const X6=Math.sqrt(50),Y6=Math.sqrt(10),Q6=Math.sqrt(2);function hs(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=X6?10:a>=Y6?5:a>=Q6?2:1;let l,u,s;return i<0?(s=Math.pow(10,-i)/o,l=Math.round(e*s),u=Math.round(t*s),l/st&&--u,s=-s):(s=Math.pow(10,i)*o,l=Math.round(e/s),u=Math.round(t/s),l*st&&--u),u0))return[];if(e===t)return[e];const n=t=i))return[];const l=a-i+1,u=new Array(l);if(n)if(o<0)for(let s=0;s=n)&&(r=n);return r}function v0(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function CO(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?kO:G6(i);n>r;){if(n-r>600){const u=n-r+1,s=t-r+1,f=Math.log(u),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(u-c)/u)*(s-u/2<0?-1:1),p=Math.max(r,Math.floor(t-s*c/u+d)),h=Math.min(n,Math.floor(t+(u-s)*c/u+d));CO(e,t,p,h,i)}const a=e[t];let o=r,l=n;for(Ga(e,r,t),i(e[n],a)>0&&Ga(e,r,n);o0;)--l}i(e[r],a)===0?Ga(e,r,l):(++l,Ga(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function Ga(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Z6(e,t,r){if(e=Float64Array.from(W6(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return v0(e);if(t>=1)return h0(e);var n,i=(n-1)*t,a=Math.floor(i),o=h0(CO(e,a).subarray(0,a+1)),l=v0(e.subarray(a+1));return o+(l-o)*(i-a)}}function J6(e,t,r=TO){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),l=+r(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function e8(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?au(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?au(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=r8.exec(e))?new gt(t[1],t[2],t[3],1):(t=n8.exec(e))?new gt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=i8.exec(e))?au(t[1],t[2],t[3],t[4]):(t=a8.exec(e))?au(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=o8.exec(e))?S0(t[1],t[2]/100,t[3]/100,1):(t=l8.exec(e))?S0(t[1],t[2]/100,t[3]/100,t[4]):y0.hasOwnProperty(e)?b0(y0[e]):e==="transparent"?new gt(NaN,NaN,NaN,0):null}function b0(e){return new gt(e>>16&255,e>>8&255,e&255,1)}function au(e,t,r,n){return n<=0&&(e=t=r=NaN),new gt(e,t,r,n)}function c8(e){return e instanceof Tl||(e=Qo(e)),e?(e=e.rgb(),new gt(e.r,e.g,e.b,e.opacity)):new gt}function Dp(e,t,r,n){return arguments.length===1?c8(e):new gt(e,t,r,n??1)}function gt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}ry(gt,Dp,MO(Tl,{brighter(e){return e=e==null?vs:Math.pow(vs,e),new gt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Xo:Math.pow(Xo,e),new gt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new gt(Kn(this.r),Kn(this.g),Kn(this.b),ys(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:x0,formatHex:x0,formatHex8:f8,formatRgb:w0,toString:w0}));function x0(){return`#${Bn(this.r)}${Bn(this.g)}${Bn(this.b)}`}function f8(){return`#${Bn(this.r)}${Bn(this.g)}${Bn(this.b)}${Bn((isNaN(this.opacity)?1:this.opacity)*255)}`}function w0(){const e=ys(this.opacity);return`${e===1?"rgb(":"rgba("}${Kn(this.r)}, ${Kn(this.g)}, ${Kn(this.b)}${e===1?")":`, ${e})`}`}function ys(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Kn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bn(e){return e=Kn(e),(e<16?"0":"")+e.toString(16)}function S0(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ar(e,t,r,n)}function IO(e){if(e instanceof ar)return new ar(e.h,e.s,e.l,e.opacity);if(e instanceof Tl||(e=Qo(e)),!e)return new ar;if(e instanceof ar)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,u=(a+i)/2;return l?(t===a?o=(r-n)/l+(r0&&u<1?0:o,new ar(o,l,u,e.opacity)}function d8(e,t,r,n){return arguments.length===1?IO(e):new ar(e,t,r,n??1)}function ar(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}ry(ar,d8,MO(Tl,{brighter(e){return e=e==null?vs:Math.pow(vs,e),new ar(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Xo:Math.pow(Xo,e),new ar(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new gt(Yf(e>=240?e-240:e+120,i,n),Yf(e,i,n),Yf(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new ar(O0(this.h),ou(this.s),ou(this.l),ys(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=ys(this.opacity);return`${e===1?"hsl(":"hsla("}${O0(this.h)}, ${ou(this.s)*100}%, ${ou(this.l)*100}%${e===1?")":`, ${e})`}`}}));function O0(e){return e=(e||0)%360,e<0?e+360:e}function ou(e){return Math.max(0,Math.min(1,e||0))}function Yf(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const ny=e=>()=>e;function p8(e,t){return function(r){return e+r*t}}function h8(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function v8(e){return(e=+e)==1?DO:function(t,r){return r-t?h8(t,r,e):ny(isNaN(t)?r:t)}}function DO(e,t){var r=t-e;return r?p8(e,r):ny(isNaN(e)?t:e)}const _0=function e(t){var r=v8(t);function n(i,a){var o=r((i=Dp(i)).r,(a=Dp(a)).r),l=r(i.g,a.g),u=r(i.b,a.b),s=DO(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=l(f),i.b=u(f),i.opacity=s(f),i+""}}return n.gamma=e,n}(1);function y8(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;ir&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,u.push({i:o,x:ms(n,i)})),r=Qf.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function E8(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i2?j8:E8,u=s=null,c}function c(d){return d==null||isNaN(d=+d)?a:(u||(u=l(e.map(n),t,r)))(n(o(d)))}return c.invert=function(d){return o(i((s||(s=l(t,e.map(n),ms)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,gs),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),r=iy,f()},c.clamp=function(d){return arguments.length?(o=d?!0:ct,f()):o!==ct},c.interpolate=function(d){return arguments.length?(r=d,f()):r},c.unknown=function(d){return arguments.length?(a=d,c):a},function(d,p){return n=d,i=p,f()}}function ay(){return Rc()(ct,ct)}function $8(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function bs(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function ra(e){return e=bs(Math.abs(e)),e?e[1]:NaN}function T8(e,t){return function(r,n){for(var i=r.length,a=[],o=0,l=e[0],u=0;i>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),a.push(r.substring(i-=l,i+l)),!((u+=l+1)>n));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function k8(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var C8=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Zo(e){if(!(t=C8.exec(e)))throw new Error("invalid format: "+e);var t;return new oy({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]})}Zo.prototype=oy.prototype;function oy(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+""}oy.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 N8(e){e:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var LO;function M8(e,t){var r=bs(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(LO=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+bs(e,Math.max(0,t+a-1))[0]}function A0(e,t){var r=bs(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const E0={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:$8,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)=>A0(e*100,t),r:A0,s:M8,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function j0(e){return e}var $0=Array.prototype.map,T0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function I8(e){var t=e.grouping===void 0||e.thousands===void 0?j0:T8($0.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?j0:k8($0.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function s(c){c=Zo(c);var d=c.fill,p=c.align,h=c.sign,v=c.symbol,x=c.zero,m=c.width,y=c.comma,g=c.precision,S=c.trim,b=c.type;b==="n"?(y=!0,b="g"):E0[b]||(g===void 0&&(g=12),S=!0,b="g"),(x||d==="0"&&p==="=")&&(x=!0,d="0",p="=");var w=v==="$"?r:v==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",O=v==="$"?n:/[%p]/.test(b)?o:"",P=E0[b],A=/[defgprs%]/.test(b);g=g===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g));function $(j){var T=w,N=O,D,M,R;if(b==="c")N=P(j)+N,j="";else{j=+j;var B=j<0||1/j<0;if(j=isNaN(j)?u:P(Math.abs(j),g),S&&(j=N8(j)),B&&+j==0&&h!=="+"&&(B=!1),T=(B?h==="("?h:l:h==="-"||h==="("?"":h)+T,N=(b==="s"?T0[8+LO/3]:"")+N+(B&&h==="("?")":""),A){for(D=-1,M=j.length;++DR||R>57){N=(R===46?i+j.slice(D+1):j.slice(D))+N,j=j.slice(0,D);break}}}y&&!x&&(j=t(j,1/0));var k=T.length+j.length+N.length,I=k>1)+T+j+N+I.slice(k);break;default:j=I+T+j+N;break}return a(j)}return $.toString=function(){return c+""},$}function f(c,d){var p=s((c=Zo(c),c.type="f",c)),h=Math.max(-8,Math.min(8,Math.floor(ra(d)/3)))*3,v=Math.pow(10,-h),x=T0[8+h/3];return function(m){return p(v*m)+x}}return{format:s,formatPrefix:f}}var lu,ly,RO;D8({thousands:",",grouping:[3],currency:["$",""]});function D8(e){return lu=I8(e),ly=lu.format,RO=lu.formatPrefix,lu}function L8(e){return Math.max(0,-ra(Math.abs(e)))}function R8(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ra(t)/3)))*3-ra(Math.abs(e)))}function B8(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ra(t)-ra(e))+1}function BO(e,t,r,n){var i=Mp(e,t,r),a;switch(n=Zo(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=R8(i,o))&&(n.precision=a),RO(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=B8(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=L8(i))&&(n.precision=a-(n.type==="%")*2);break}}return ly(n)}function wn(e){var t=e.domain;return e.ticks=function(r){var n=t();return Cp(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return BO(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],l=n[a],u,s,f=10;for(l0;){if(s=Np(o,l,r),s===u)return n[i]=o,n[a]=l,t(n);if(s>0)o=Math.floor(o/s)*s,l=Math.ceil(l/s)*s;else if(s<0)o=Math.ceil(o*s)/s,l=Math.floor(l*s)/s;else break;u=s}return e},e}function xs(){var e=ay();return e.copy=function(){return kl(e,xs())},Qt.apply(e,arguments),wn(e)}function zO(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,gs),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return zO(e).unknown(t)},e=arguments.length?Array.from(e,gs):[0,1],wn(r)}function FO(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return aMath.pow(e,t)}function H8(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 N0(e){return(t,r)=>-e(-t,r)}function uy(e){const t=e(k0,C0),r=t.domain;let n=10,i,a;function o(){return i=H8(n),a=W8(n),r()[0]<0?(i=N0(i),a=N0(a),e(z8,F8)):e(k0,C0),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(r(l),o()):r()},t.ticks=l=>{const u=r();let s=u[0],f=u[u.length-1];const c=f0){for(;d<=p;++d)for(h=1;hf)break;m.push(v)}}else for(;d<=p;++d)for(h=n-1;h>=1;--h)if(v=d>0?h/a(-d):h*a(d),!(vf)break;m.push(v)}m.length*2{if(l==null&&(l=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=Zo(u)).precision==null&&(u.trim=!0),u=ly(u)),l===1/0)return u;const s=Math.max(1,n*l/t.ticks().length);return f=>{let c=f/a(Math.round(i(f)));return c*nr(FO(r(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function UO(){const e=uy(Rc()).domain([1,10]);return e.copy=()=>kl(e,UO()).base(e.base()),Qt.apply(e,arguments),e}function M0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function I0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function sy(e){var t=1,r=e(M0(t),I0(t));return r.constant=function(n){return arguments.length?e(M0(t=+n),I0(t)):t},wn(r)}function WO(){var e=sy(Rc());return e.copy=function(){return kl(e,WO()).constant(e.constant())},Qt.apply(e,arguments)}function D0(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function K8(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function V8(e){return e<0?-e*e:e*e}function cy(e){var t=e(ct,ct),r=1;function n(){return r===1?e(ct,ct):r===.5?e(K8,V8):e(D0(r),D0(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},wn(t)}function fy(){var e=cy(Rc());return e.copy=function(){return kl(e,fy()).exponent(e.exponent())},Qt.apply(e,arguments),e}function q8(){return fy.apply(null,arguments).exponent(.5)}function L0(e){return Math.sign(e)*e*e}function G8(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function HO(){var e=ay(),t=[0,1],r=!1,n;function i(a){var o=G8(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(L0(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,gs)).map(L0)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return HO(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Qt.apply(i,arguments),wn(i)}function KO(){var e=[],t=[],r=[],n;function i(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o0?r[l-1]:e[0],l=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return VO().domain([e,t]).range(i).unknown(a)},Qt.apply(wn(o),arguments)}function qO(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[$l(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=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?(r=a,i):r},i.copy=function(){return qO().domain(e).range(t).unknown(r)},Qt.apply(i,arguments)}const Zf=new Date,Jf=new Date;function Ve(e,t,r,n){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),l=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const u=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a0))return u;let s;do u.push(s=new Date(+a)),t(a,l),e(a);while(sVe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Zf.setTime(+a),Jf.setTime(+o),e(Zf),e(Jf),Math.floor(r(Zf,Jf))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const ws=Ve(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ws.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ve(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ws);ws.range;const $r=1e3,Kt=$r*60,Tr=Kt*60,zr=Tr*24,dy=zr*7,R0=zr*30,ed=zr*365,zn=Ve(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*$r)},(e,t)=>(t-e)/$r,e=>e.getUTCSeconds());zn.range;const py=Ve(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$r)},(e,t)=>{e.setTime(+e+t*Kt)},(e,t)=>(t-e)/Kt,e=>e.getMinutes());py.range;const hy=Ve(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Kt)},(e,t)=>(t-e)/Kt,e=>e.getUTCMinutes());hy.range;const vy=Ve(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$r-e.getMinutes()*Kt)},(e,t)=>{e.setTime(+e+t*Tr)},(e,t)=>(t-e)/Tr,e=>e.getHours());vy.range;const yy=Ve(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Tr)},(e,t)=>(t-e)/Tr,e=>e.getUTCHours());yy.range;const Cl=Ve(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Kt)/zr,e=>e.getDate()-1);Cl.range;const Bc=Ve(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/zr,e=>e.getUTCDate()-1);Bc.range;const GO=Ve(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/zr,e=>Math.floor(e/zr));GO.range;function ui(e){return Ve(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Kt)/dy)}const zc=ui(0),Ss=ui(1),X8=ui(2),Y8=ui(3),na=ui(4),Q8=ui(5),Z8=ui(6);zc.range;Ss.range;X8.range;Y8.range;na.range;Q8.range;Z8.range;function si(e){return Ve(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/dy)}const Fc=si(0),Os=si(1),J8=si(2),eB=si(3),ia=si(4),tB=si(5),rB=si(6);Fc.range;Os.range;J8.range;eB.range;ia.range;tB.range;rB.range;const my=Ve(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());my.range;const gy=Ve(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());gy.range;const Fr=Ve(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());Fr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ve(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Fr.range;const Ur=Ve(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());Ur.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ve(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Ur.range;function XO(e,t,r,n,i,a){const o=[[zn,1,$r],[zn,5,5*$r],[zn,15,15*$r],[zn,30,30*$r],[a,1,Kt],[a,5,5*Kt],[a,15,15*Kt],[a,30,30*Kt],[i,1,Tr],[i,3,3*Tr],[i,6,6*Tr],[i,12,12*Tr],[n,1,zr],[n,2,2*zr],[r,1,dy],[t,1,R0],[t,3,3*R0],[e,1,ed]];function l(s,f,c){const d=fx).right(o,d);if(p===o.length)return e.every(Mp(s/ed,f/ed,c));if(p===0)return ws.every(Math.max(Mp(s,f,c),1));const[h,v]=o[d/o[p-1][2]53)return null;"w"in z||(z.w=1),"Z"in z?(oe=rd(Xa(z.y,0,1)),Re=oe.getUTCDay(),oe=Re>4||Re===0?Os.ceil(oe):Os(oe),oe=Bc.offset(oe,(z.V-1)*7),z.y=oe.getUTCFullYear(),z.m=oe.getUTCMonth(),z.d=oe.getUTCDate()+(z.w+6)%7):(oe=td(Xa(z.y,0,1)),Re=oe.getDay(),oe=Re>4||Re===0?Ss.ceil(oe):Ss(oe),oe=Cl.offset(oe,(z.V-1)*7),z.y=oe.getFullYear(),z.m=oe.getMonth(),z.d=oe.getDate()+(z.w+6)%7)}else("W"in z||"U"in z)&&("w"in z||(z.w="u"in z?z.u%7:"W"in z?1:0),Re="Z"in z?rd(Xa(z.y,0,1)).getUTCDay():td(Xa(z.y,0,1)).getDay(),z.m=0,z.d="W"in z?(z.w+6)%7+z.W*7-(Re+5)%7:z.w+z.U*7-(Re+6)%7);return"Z"in z?(z.H+=z.Z/100|0,z.M+=z.Z%100,rd(z)):td(z)}}function P(V,ee,re,z){for(var Te=0,oe=ee.length,Re=re.length,Be,vt;Te=Re)return-1;if(Be=ee.charCodeAt(Te++),Be===37){if(Be=ee.charAt(Te++),vt=b[Be in B0?ee.charAt(Te++):Be],!vt||(z=vt(V,re,z))<0)return-1}else if(Be!=re.charCodeAt(z++))return-1}return z}function A(V,ee,re){var z=s.exec(ee.slice(re));return z?(V.p=f.get(z[0].toLowerCase()),re+z[0].length):-1}function $(V,ee,re){var z=p.exec(ee.slice(re));return z?(V.w=h.get(z[0].toLowerCase()),re+z[0].length):-1}function j(V,ee,re){var z=c.exec(ee.slice(re));return z?(V.w=d.get(z[0].toLowerCase()),re+z[0].length):-1}function T(V,ee,re){var z=m.exec(ee.slice(re));return z?(V.m=y.get(z[0].toLowerCase()),re+z[0].length):-1}function N(V,ee,re){var z=v.exec(ee.slice(re));return z?(V.m=x.get(z[0].toLowerCase()),re+z[0].length):-1}function D(V,ee,re){return P(V,t,ee,re)}function M(V,ee,re){return P(V,r,ee,re)}function R(V,ee,re){return P(V,n,ee,re)}function B(V){return o[V.getDay()]}function k(V){return a[V.getDay()]}function I(V){return u[V.getMonth()]}function F(V){return l[V.getMonth()]}function K(V){return i[+(V.getHours()>=12)]}function W(V){return 1+~~(V.getMonth()/3)}function X(V){return o[V.getUTCDay()]}function ae(V){return a[V.getUTCDay()]}function _e(V){return u[V.getUTCMonth()]}function Ne(V){return l[V.getUTCMonth()]}function Lt(V){return i[+(V.getUTCHours()>=12)]}function ht(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var ee=w(V+="",g);return ee.toString=function(){return V},ee},parse:function(V){var ee=O(V+="",!1);return ee.toString=function(){return V},ee},utcFormat:function(V){var ee=w(V+="",S);return ee.toString=function(){return V},ee},utcParse:function(V){var ee=O(V+="",!0);return ee.toString=function(){return V},ee}}}var B0={"-":"",_:" ",0:"0"},Qe=/^\s*\d+/,uB=/^%/,sB=/[\\^$*+?|[\]().{}]/g;function se(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a[t.toLowerCase(),r]))}function fB(e,t,r){var n=Qe.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function dB(e,t,r){var n=Qe.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function pB(e,t,r){var n=Qe.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function hB(e,t,r){var n=Qe.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function vB(e,t,r){var n=Qe.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function z0(e,t,r){var n=Qe.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function F0(e,t,r){var n=Qe.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function yB(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function mB(e,t,r){var n=Qe.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function gB(e,t,r){var n=Qe.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function U0(e,t,r){var n=Qe.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function bB(e,t,r){var n=Qe.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function W0(e,t,r){var n=Qe.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function xB(e,t,r){var n=Qe.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function wB(e,t,r){var n=Qe.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function SB(e,t,r){var n=Qe.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function OB(e,t,r){var n=Qe.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function _B(e,t,r){var n=uB.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function PB(e,t,r){var n=Qe.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function AB(e,t,r){var n=Qe.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function H0(e,t){return se(e.getDate(),t,2)}function EB(e,t){return se(e.getHours(),t,2)}function jB(e,t){return se(e.getHours()%12||12,t,2)}function $B(e,t){return se(1+Cl.count(Fr(e),e),t,3)}function YO(e,t){return se(e.getMilliseconds(),t,3)}function TB(e,t){return YO(e,t)+"000"}function kB(e,t){return se(e.getMonth()+1,t,2)}function CB(e,t){return se(e.getMinutes(),t,2)}function NB(e,t){return se(e.getSeconds(),t,2)}function MB(e){var t=e.getDay();return t===0?7:t}function IB(e,t){return se(zc.count(Fr(e)-1,e),t,2)}function QO(e){var t=e.getDay();return t>=4||t===0?na(e):na.ceil(e)}function DB(e,t){return e=QO(e),se(na.count(Fr(e),e)+(Fr(e).getDay()===4),t,2)}function LB(e){return e.getDay()}function RB(e,t){return se(Ss.count(Fr(e)-1,e),t,2)}function BB(e,t){return se(e.getFullYear()%100,t,2)}function zB(e,t){return e=QO(e),se(e.getFullYear()%100,t,2)}function FB(e,t){return se(e.getFullYear()%1e4,t,4)}function UB(e,t){var r=e.getDay();return e=r>=4||r===0?na(e):na.ceil(e),se(e.getFullYear()%1e4,t,4)}function WB(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+se(t/60|0,"0",2)+se(t%60,"0",2)}function K0(e,t){return se(e.getUTCDate(),t,2)}function HB(e,t){return se(e.getUTCHours(),t,2)}function KB(e,t){return se(e.getUTCHours()%12||12,t,2)}function VB(e,t){return se(1+Bc.count(Ur(e),e),t,3)}function ZO(e,t){return se(e.getUTCMilliseconds(),t,3)}function qB(e,t){return ZO(e,t)+"000"}function GB(e,t){return se(e.getUTCMonth()+1,t,2)}function XB(e,t){return se(e.getUTCMinutes(),t,2)}function YB(e,t){return se(e.getUTCSeconds(),t,2)}function QB(e){var t=e.getUTCDay();return t===0?7:t}function ZB(e,t){return se(Fc.count(Ur(e)-1,e),t,2)}function JO(e){var t=e.getUTCDay();return t>=4||t===0?ia(e):ia.ceil(e)}function JB(e,t){return e=JO(e),se(ia.count(Ur(e),e)+(Ur(e).getUTCDay()===4),t,2)}function ez(e){return e.getUTCDay()}function tz(e,t){return se(Os.count(Ur(e)-1,e),t,2)}function rz(e,t){return se(e.getUTCFullYear()%100,t,2)}function nz(e,t){return e=JO(e),se(e.getUTCFullYear()%100,t,2)}function iz(e,t){return se(e.getUTCFullYear()%1e4,t,4)}function az(e,t){var r=e.getUTCDay();return e=r>=4||r===0?ia(e):ia.ceil(e),se(e.getUTCFullYear()%1e4,t,4)}function oz(){return"+0000"}function V0(){return"%"}function q0(e){return+e}function G0(e){return Math.floor(+e/1e3)}var hi,e_,t_;lz({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 lz(e){return hi=lB(e),e_=hi.format,hi.parse,t_=hi.utcFormat,hi.utcParse,hi}function uz(e){return new Date(e)}function sz(e){return e instanceof Date?+e:+new Date(+e)}function by(e,t,r,n,i,a,o,l,u,s){var f=ay(),c=f.invert,d=f.domain,p=s(".%L"),h=s(":%S"),v=s("%I:%M"),x=s("%I %p"),m=s("%a %d"),y=s("%b %d"),g=s("%B"),S=s("%Y");function b(w){return(u(w)t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>Z6(e,a/n))},r.copy=function(){return a_(t).domain(e)},Vr.apply(r,arguments)}function Wc(){var e=0,t=.5,r=1,n=1,i,a,o,l,u,s=ct,f,c=!1,d;function p(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-a)*(n*vt}var s_=yz,mz=Hc,gz=s_,bz=Ma;function xz(e){return e&&e.length?mz(e,bz,gz):void 0}var wz=xz;const Kc=he(wz);function Sz(e,t){return ee.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=ne.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};G.decimalPlaces=G.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Se;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};G.dividedBy=G.div=function(e){return Mr(this,new this.constructor(e))};G.dividedToIntegerBy=G.idiv=function(e){var t=this,r=t.constructor;return ve(Mr(t,new r(e),0,1),r.precision)};G.equals=G.eq=function(e){return!this.cmp(e)};G.exponent=function(){return Le(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,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq($t))throw Error(Xt+"NaN");if(r.s<1)throw Error(Xt+(r.s?"NaN":"-Infinity"));return r.eq($t)?new n(0):(Ae=!1,t=Mr(Jo(r,a),Jo(e,a),a),Ae=!0,ve(t,i))};G.minus=G.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?h_(t,e):d_(t,(e.s=-e.s,e))};G.modulo=G.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Xt+"NaN");return r.s?(Ae=!1,t=Mr(r,e,0,1).times(e),Ae=!0,r.minus(t)):ve(new n(r),i)};G.naturalExponential=G.exp=function(){return p_(this)};G.naturalLogarithm=G.ln=function(){return Jo(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?d_(t,e):h_(t,(e.s=-e.s,e))};G.precision=G.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Vn+e);if(t=Le(i)+1,n=i.d.length-1,r=n*Se+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};G.squareRoot=G.sqrt=function(){var e,t,r,n,i,a,o,l=this,u=l.constructor;if(l.s<1){if(!l.s)return new u(0);throw Error(Xt+"NaN")}for(e=Le(l),Ae=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=pr(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=La((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),n=new u(t)):n=new u(i.toString()),r=u.precision,i=o=r+3;;)if(a=n,n=a.plus(Mr(l,a,o+2)).times(.5),pr(a.d).slice(0,o)===(t=pr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ve(a,r+1,0),a.times(a).eq(l)){n=a;break}}else if(t!="9999")break;o+=4}return Ae=!0,ve(n,r)};G.times=G.mul=function(e){var t,r,n,i,a,o,l,u,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,r=f.e+e.e,u=d.length,s=p.length,u=0;){for(t=0,i=u+n;i>n;)l=a[i]+p[n]*d[i-n-1]+t,a[i--]=l%qe|0,t=l/qe|0;a[i]=(a[i]+t)%qe|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Ae?ve(e,c.precision):e};G.toDecimalPlaces=G.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(xr(e,0,Da),t===void 0?t=n.rounding:xr(t,0,8),ve(r,e+Le(r)+1,t))};G.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ti(n,!0):(xr(e,0,Da),t===void 0?t=i.rounding:xr(t,0,8),n=ve(new i(n),e+1,t),r=ti(n,!0,e+1)),r};G.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?ti(i):(xr(e,0,Da),t===void 0?t=a.rounding:xr(t,0,8),n=ve(new a(i),e+Le(i)+1,t),r=ti(n.abs(),!1,e+Le(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};G.toInteger=G.toint=function(){var e=this,t=e.constructor;return ve(new t(e),Le(e)+1,t.rounding)};G.toNumber=function(){return+this};G.toPower=G.pow=function(e){var t,r,n,i,a,o,l=this,u=l.constructor,s=12,f=+(e=new u(e));if(!e.s)return new u($t);if(l=new u(l),!l.s){if(e.s<1)throw Error(Xt+"Infinity");return l}if(l.eq($t))return l;if(n=u.precision,e.eq($t))return ve(l,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=l.s,o){if((r=f<0?-f:f)<=f_){for(i=new u($t),t=Math.ceil(n/Se+4),Ae=!1;r%2&&(i=i.times(l),Q0(i.d,t)),r=La(r/2),r!==0;)l=l.times(l),Q0(l.d,t);return Ae=!0,e.s<0?new u($t).div(i):ve(i,n)}}else if(a<0)throw Error(Xt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,l.s=1,Ae=!1,i=e.times(Jo(l,n+s)),Ae=!0,i=p_(i),i.s=a,i};G.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Le(i),n=ti(i,r<=a.toExpNeg||r>=a.toExpPos)):(xr(e,1,Da),t===void 0?t=a.rounding:xr(t,0,8),i=ve(new a(i),e,t),r=Le(i),n=ti(i,e<=r||r<=a.toExpNeg,e)),n};G.toSignificantDigits=G.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(xr(e,1,Da),t===void 0?t=n.rounding:xr(t,0,8)),ve(new n(r),e,t)};G.toString=G.valueOf=G.val=G.toJSON=G[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Le(e),r=e.constructor;return ti(e,t<=r.toExpNeg||t>=r.toExpPos)};function d_(e,t){var r,n,i,a,o,l,u,s,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Ae?ve(t,c):t;if(u=e.d,s=t.d,o=e.e,i=t.e,u=u.slice(),a=o-i,a){for(a<0?(n=u,a=-a,l=s.length):(n=s,i=o,l=u.length),o=Math.ceil(c/Se),l=o>l?o+1:l+1,a>l&&(a=l,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(l=u.length,a=s.length,l-a<0&&(a=l,n=s,s=u,u=n),r=0;a;)r=(u[--a]=u[a]+s[a]+r)/qe|0,u[a]%=qe;for(r&&(u.unshift(r),++i),l=u.length;u[--l]==0;)u.pop();return t.d=u,t.e=i,Ae?ve(t,c):t}function xr(e,t,r){if(e!==~~e||er)throw Error(Vn+e)}function pr(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(l=u=0;li[l]?1:-1;break}return u}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]1;)n.shift()}return function(n,i,a,o){var l,u,s,f,c,d,p,h,v,x,m,y,g,S,b,w,O,P,A=n.constructor,$=n.s==i.s?1:-1,j=n.d,T=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(Xt+"Division by zero");for(u=n.e-i.e,O=T.length,b=j.length,p=new A($),h=p.d=[],s=0;T[s]==(j[s]||0);)++s;if(T[s]>(j[s]||0)&&--u,a==null?y=a=A.precision:o?y=a+(Le(n)-Le(i))+1:y=a,y<0)return new A(0);if(y=y/Se+2|0,s=0,O==1)for(f=0,T=T[0],y++;(s1&&(T=e(T,f),j=e(j,f),O=T.length,b=j.length),S=O,v=j.slice(0,O),x=v.length;x=qe/2&&++w;do f=0,l=t(T,v,O,x),l<0?(m=v[0],O!=x&&(m=m*qe+(v[1]||0)),f=m/w|0,f>1?(f>=qe&&(f=qe-1),c=e(T,f),d=c.length,x=v.length,l=t(c,v,d,x),l==1&&(f--,r(c,O16)throw Error(Sy+Le(e));if(!e.s)return new f($t);for(t==null?(Ae=!1,l=c):l=t,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(Nn(2,s))/Math.LN10*2+5|0,l+=n,r=i=a=new f($t),f.precision=l;;){if(i=ve(i.times(e),l),r=r.times(++u),o=a.plus(Mr(i,r,l)),pr(o.d).slice(0,l)===pr(a.d).slice(0,l)){for(;s--;)a=ve(a.times(a),l);return f.precision=c,t==null?(Ae=!0,ve(a,c)):a}a=o}}function Le(e){for(var t=e.e*Se,r=e.d[0];r>=10;r/=10)t++;return t}function nd(e,t,r){if(t>e.LN10.sd())throw Ae=!0,r&&(e.precision=r),Error(Xt+"LN10 precision limit exceeded");return ve(new e(e.LN10),t)}function Zr(e){for(var t="";e--;)t+="0";return t}function Jo(e,t){var r,n,i,a,o,l,u,s,f,c=1,d=10,p=e,h=p.d,v=p.constructor,x=v.precision;if(p.s<1)throw Error(Xt+(p.s?"NaN":"-Infinity"));if(p.eq($t))return new v(0);if(t==null?(Ae=!1,s=x):s=t,p.eq(10))return t==null&&(Ae=!0),nd(v,s);if(s+=d,v.precision=s,r=pr(h),n=r.charAt(0),a=Le(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=pr(p.d),n=r.charAt(0),c++;a=Le(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return u=nd(v,s+2,x).times(a+""),p=Jo(new v(n+"."+r.slice(1)),s-d).plus(u),v.precision=x,t==null?(Ae=!0,ve(p,x)):p;for(l=o=p=Mr(p.minus($t),p.plus($t),s),f=ve(p.times(p),s),i=3;;){if(o=ve(o.times(f),s),u=l.plus(Mr(o,new v(i),s)),pr(u.d).slice(0,s)===pr(l.d).slice(0,s))return l=l.times(2),a!==0&&(l=l.plus(nd(v,s+2,x).times(a+""))),l=Mr(l,new v(c),s),v.precision=x,t==null?(Ae=!0,ve(l,x)):l;l=u,i+=2}}function Y0(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=La(r/Se),e.d=[],n=(r+1)%Se,r<0&&(n+=Se),n_s||e.e<-_s))throw Error(Sy+r)}else e.s=0,e.e=0,e.d=[0];return e}function ve(e,t,r){var n,i,a,o,l,u,s,f,c=e.d;for(o=1,a=c[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Se,i=t,s=c[f=0];else{if(f=Math.ceil((n+1)/Se),a=c.length,f>=a)return e;for(s=a=c[f],o=1;a>=10;a/=10)o++;n%=Se,i=n-Se+o}if(r!==void 0&&(a=Nn(10,o-i-1),l=s/a%10|0,u=t<0||c[f+1]!==void 0||s%a,u=r<4?(l||u)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||u||r==6&&(n>0?i>0?s/Nn(10,o-i):0:c[f-1])%10&1||r==(e.s<0?8:7))),t<1||!c[0])return u?(a=Le(e),c.length=1,t=t-a-1,c[0]=Nn(10,(Se-t%Se)%Se),e.e=La(-t/Se)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(n==0?(c.length=f,a=1,f--):(c.length=f+1,a=Nn(10,Se-n),c[f]=i>0?(s/Nn(10,o-i)%Nn(10,i)|0)*a:0),u)for(;;)if(f==0){(c[0]+=a)==qe&&(c[0]=1,++e.e);break}else{if(c[f]+=a,c[f]!=qe)break;c[f--]=0,a=1}for(n=c.length;c[--n]===0;)c.pop();if(Ae&&(e.e>_s||e.e<-_s))throw Error(Sy+Le(e));return e}function h_(e,t){var r,n,i,a,o,l,u,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),Ae?ve(t,p):t;if(u=e.d,c=t.d,n=t.e,s=e.e,u=u.slice(),o=s-n,o){for(f=o<0,f?(r=u,o=-o,l=c.length):(r=c,n=s,l=u.length),i=Math.max(Math.ceil(p/Se),l)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=u.length,l=c.length,f=i0;--i)u[l++]=0;for(i=c.length;i>o;){if(u[--i]0?a=a.charAt(0)+"."+a.slice(1)+Zr(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Zr(-i-1)+a,r&&(n=r-o)>0&&(a+=Zr(n))):i>=o?(a+=Zr(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Zr(n))):((n=i+1)0&&(i+1===o&&(a+="."),a+=Zr(n))),e.s<0?"-"+a:a}function Q0(e,t){if(e.length>t)return e.length=t,!0}function v_(e){var t,r,n;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(Vn+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 Y0(o,a.toString())}else if(typeof a!="string")throw Error(Vn+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,Wz.test(a))Y0(o,a);else throw Error(Vn+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=v_,i.config=i.set=Hz,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Vn+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Vn+r+": "+n);return this}var Oy=v_(Uz);$t=new Oy(1);const pe=Oy;function Kz(e){return Xz(e)||Gz(e)||qz(e)||Vz()}function Vz(){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 qz(e,t){if(e){if(typeof e=="string")return Bp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bp(e,t)}}function Gz(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Xz(e){if(Array.isArray(e))return Bp(e)}function Bp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,i):e(t-o,Z0(function(){for(var l=arguments.length,u=new Array(l),s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(n=(l=o.next()).done)&&(r.push(l.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function cF(e){if(Array.isArray(e))return e}function x_(e){var t=el(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function w_(e,t,r){if(e.lte(0))return new pe(0);var n=Gc.getDigitCount(e.toNumber()),i=new pe(10).pow(n),a=e.div(i),o=n!==1?.05:.1,l=new pe(Math.ceil(a.div(o).toNumber())).add(r).mul(o),u=l.mul(i);return t?u:new pe(Math.ceil(u))}function fF(e,t,r){var n=1,i=new pe(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new pe(10).pow(Gc.getDigitCount(e)-1),i=new pe(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new pe(Math.floor(e)))}else e===0?i=new pe(Math.floor((t-1)/2)):r||(i=new pe(Math.floor(e)));var o=Math.floor((t-1)/2),l=Jz(Zz(function(u){return i.add(new pe(u-o).mul(n)).toNumber()}),zp);return l(0,t)}function S_(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new pe(0),tickMin:new pe(0),tickMax:new pe(0)};var a=w_(new pe(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new pe(0):(o=new pe(e).add(t).div(2),o=o.sub(new pe(o).mod(a)));var l=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new pe(t).sub(o).div(a).toNumber()),s=l+u+1;return s>r?S_(e,t,r,n,i+1):(s0?u+(r-s):u,l=t>0?l:l+(r-s)),{step:a,tickMin:o.sub(new pe(l).mul(a)),tickMax:o.add(new pe(u).mul(a))})}function dF(e){var t=el(e,2),r=t[0],n=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),l=x_([r,n]),u=el(l,2),s=u[0],f=u[1];if(s===-1/0||f===1/0){var c=f===1/0?[s].concat(Up(zp(0,i-1).map(function(){return 1/0}))):[].concat(Up(zp(0,i-1).map(function(){return-1/0})),[f]);return r>n?Fp(c):c}if(s===f)return fF(s,i,a);var d=S_(s,f,o,a),p=d.step,h=d.tickMin,v=d.tickMax,x=Gc.rangeStep(h,v.add(new pe(.1).mul(p)),p);return r>n?Fp(x):x}function pF(e,t){var r=el(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=x_([n,i]),l=el(o,2),u=l[0],s=l[1];if(u===-1/0||s===1/0)return[n,i];if(u===s)return[u];var f=Math.max(t,2),c=w_(new pe(s).sub(u).div(f-1),a,0),d=[].concat(Up(Gc.rangeStep(new pe(u),new pe(s).sub(new pe(.99).mul(c)),c)),[s]);return n>i?Fp(d):d}var hF=g_(dF),vF=g_(pF),yF="Invariant failed";function ri(e,t){throw new Error(yF)}var mF=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function aa(e){"@babel/helpers - typeof";return aa=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},aa(e)}function Ps(){return Ps=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _F(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function PF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AF(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,l=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var u=a.range,s=0;s0?i[s-1].coordinate:i[l-1].coordinate,c=i[s].coordinate,d=s>=l-1?i[0].coordinate:i[s+1].coordinate,p=void 0;if(ut(c-f)!==ut(d-c)){var h=[];if(ut(d-c)===ut(u[1]-u[0])){p=d;var v=c+u[1]-u[0];h[0]=Math.min(v,(v+f)/2),h[1]=Math.max(v,(v+f)/2)}else{p=f;var x=d+u[1]-u[0];h[0]=Math.min(c,(x+c)/2),h[1]=Math.max(c,(x+c)/2)}var m=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(t>m[0]&&t<=m[1]||t>=h[0]&&t<=h[1]){o=i[s].index;break}}else{var y=Math.min(f,d),g=Math.max(f,d);if(t>(y+c)/2&&t<=(g+c)/2){o=i[s].index;break}}}else for(var S=0;S0&&S(n[S].coordinate+n[S-1].coordinate)/2&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S===l-1&&t>(n[S].coordinate+n[S-1].coordinate)/2){o=n[S].index;break}return o},_y=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ce(Ce({},t.type.defaultProps),t.props):t.props,o=a.stroke,l=a.fill,u;switch(i){case"Line":u=o;break;case"Area":case"Radar":u=o&&o!=="none"?o:l;break;default:u=l;break}return u},WF=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},l=Object.keys(a),u=0,s=l.length;u=0});if(m&&m.length){var y=m[0].type.defaultProps,g=y!==void 0?Ce(Ce({},y),m[0].props):m[0].props,S=g.barSize,b=g[x];o[b]||(o[b]=[]);var w=J(S)?r:S;o[b].push({item:m[0],stackList:m.slice(1),barSize:J(w)?void 0:st(w,n,0)})}}return o},HF=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,l=t.maxBarSize,u=o.length;if(u<1)return null;var s=st(r,i,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/u,h=o.reduce(function(S,b){return S+b.barSize||0},0);h+=(u-1)*s,h>=i&&(h-=(u-1)*s,s=0),h>=i&&p>0&&(d=!0,p*=.9,h=u*p);var v=(i-h)/2>>0,x={offset:v-s,size:0};f=o.reduce(function(S,b){var w={item:b.item,position:{offset:x.offset+x.size+s,size:d?p:b.barSize}},O=[].concat(t1(S),[w]);return x=O[O.length-1].position,b.stackList&&b.stackList.length&&b.stackList.forEach(function(P){O.push({item:P,position:x})}),O},c)}else{var m=st(n,i,0,!0);i-2*m-(u-1)*s<=0&&(s=0);var y=(i-2*m-(u-1)*s)/u;y>1&&(y>>=0);var g=l===+l?Math.min(y,l):y;f=o.reduce(function(S,b,w){var O=[].concat(t1(S),[{item:b.item,position:{offset:m+(y+s)*w+(y-g)/2,size:g}}]);return b.stackList&&b.stackList.length&&b.stackList.forEach(function(P){O.push({item:P,position:O[O.length-1].position})}),O},c)}return f},KF=function(t,r,n,i){var a=n.children,o=n.width,l=n.margin,u=o-(l.left||0)-(l.right||0),s=A_({children:a,legendWidth:u});if(s){var f=i||{},c=f.width,d=f.height,p=s.align,h=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&h==="middle")&&p!=="center"&&H(t[p]))return Ce(Ce({},t),{},Wi({},p,t[p]+(c||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&h!=="middle"&&H(t[h]))return Ce(Ce({},t),{},Wi({},h,t[h]+(d||0)))}return t},VF=function(t,r,n){return J(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},E_=function(t,r,n,i,a){var o=r.props.children,l=Nt(o,Ml).filter(function(s){return VF(i,a,s.props.direction)});if(l&&l.length){var u=l.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var c=We(f,n);if(J(c))return s;var d=Array.isArray(c)?[Vc(c),Kc(c)]:[c,c],p=u.reduce(function(h,v){var x=We(f,v,0),m=d[0]-Math.abs(Array.isArray(x)?x[0]:x),y=d[1]+Math.abs(Array.isArray(x)?x[1]:x);return[Math.min(m,h[0]),Math.max(y,h[1])]},[1/0,-1/0]);return[Math.min(p[0],s[0]),Math.max(p[1],s[1])]},[1/0,-1/0])}return null},qF=function(t,r,n,i,a){var o=r.map(function(l){return E_(t,l,n,a,i)}).filter(function(l){return!J(l)});return o&&o.length?o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]):null},j_=function(t,r,n,i,a){var o=r.map(function(u){var s=u.props.dataKey;return n==="number"&&s&&E_(t,u,s,i)||bo(t,s,n,a)});if(n==="number")return o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]);var l={};return o.reduce(function(u,s){for(var f=0,c=s.length;f=2?ut(l[0]-l[1])*2*s:s,r&&(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!jl(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&&!n?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}})},id=new WeakMap,uu=function(t,r){if(typeof r!="function")return t;id.has(t)||id.set(t,new WeakMap);var n=id.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},T_=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,l=t.axisType;if(i==="auto")return o==="radial"&&l==="radiusAxis"?{scale:Go(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:xs(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:go(),realScaleType:"point"}:a==="category"?{scale:Go(),realScaleType:"band"}:{scale:xs(),realScaleType:"linear"};if(Zn(i)){var u="scale".concat(kc(i));return{scale:(X0[u]||go)(),realScaleType:X0[u]?u:"point"}}return Z(i)?{scale:i}:{scale:go(),realScaleType:"point"}},n1=1e-4,k_=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-n1,o=Math.max(i[0],i[1])+n1,l=t(r[0]),u=t(r[n-1]);(lo||uo)&&t.domain([r[0],r[n-1]])}},GF=function(t,r){if(!t)return null;for(var n=0,i=t.length;ni)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]=0?(t[l][n][0]=a,t[l][n][1]=a+u,a=t[l][n][1]):(t[l][n][0]=o,t[l][n][1]=o+u,o=t[l][n][1])}},QF=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n=0?(t[o][n][0]=a,t[o][n][1]=a+l,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},ZF={sign:YF,expand:yN,none:Qi,silhouette:mN,wiggle:gN,positive:QF},JF=function(t,r,n){var i=r.map(function(l){return l.props.dataKey}),a=ZF[n],o=vN().keys(i).value(function(l,u){return+We(l,u,0)}).order(yp).offset(a);return o(t)},e7=function(t,r,n,i,a,o){if(!t)return null;var l=o?r.reverse():r,u={},s=l.reduce(function(c,d){var p,h=(p=d.type)!==null&&p!==void 0&&p.defaultProps?Ce(Ce({},d.type.defaultProps),d.props):d.props,v=h.stackId,x=h.hide;if(x)return c;var m=h[n],y=c[m]||{hasStack:!1,stackGroups:{}};if(Ke(v)){var g=y.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};g.items.push(d),y.hasStack=!0,y.stackGroups[v]=g}else y.stackGroups[ka("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Ce(Ce({},c),{},Wi({},m,y))},u),f={};return Object.keys(s).reduce(function(c,d){var p=s[d];if(p.hasStack){var h={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,x){var m=p.stackGroups[x];return Ce(Ce({},v),{},Wi({},x,{numericAxisId:n,cateAxisId:i,items:m.items,stackedData:JF(t,m.items,a)}))},h)}return Ce(Ce({},c),{},Wi({},d,p))},f)},C_=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,l=r.allowDecimals,u=n||r.scale;if(u!=="auto"&&u!=="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=hF(s,a,l);return t.domain([Vc(f),Kc(f)]),{niceTicks:f}}if(a&&i==="number"){var c=t.domain(),d=vF(c,a,l);return{niceTicks:d}}return null};function i1(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!J(i[t.dataKey])){var l=Ju(r,"value",i[t.dataKey]);if(l)return l.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var u=We(i,J(o)?t.dataKey:o);return J(u)?null:t.scale(u)}var a1=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,l=t.index;if(r.type==="category")return n[l]?n[l].coordinate+i:null;var u=We(o,r.dataKey,r.domain[l]);return J(u)?null:r.scale(u)-a/2+i},t7=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},r7=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ce(Ce({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Ke(a)){var o=r[a];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},n7=function(t){return t.reduce(function(r,n){return[Vc(n.concat([r[0]]).filter(H)),Kc(n.concat([r[1]]).filter(H))]},[1/0,-1/0])},N_=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],l=o.stackedData,u=l.reduce(function(s,f){var c=n7(f.slice(r,n+1));return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);return[Math.min(u[0],i[0]),Math.max(u[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},o1=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,l1=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Vp=function(t,r,n){if(Z(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(H(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(o1.test(t[0])){var a=+o1.exec(t[0])[1];i[0]=r[0]-a}else Z(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(H(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(l1.test(t[1])){var o=+l1.exec(t[1])[1];i[1]=r[1]+o}else Z(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Es=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Zv(r,function(c){return c.coordinate}),o=1/0,l=1,u=a.length;le.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},d7=function(t,r,n,i,a){var o=t.width,l=t.height,u=t.startAngle,s=t.endAngle,f=st(t.cx,o,o/2),c=st(t.cy,l,l/2),d=D_(o,l,n),p=st(t.innerRadius,d,0),h=st(t.outerRadius,d,d*.8),v=Object.keys(r);return v.reduce(function(x,m){var y=r[m],g=y.domain,S=y.reversed,b;if(J(y.range))i==="angleAxis"?b=[u,s]:i==="radiusAxis"&&(b=[p,h]),S&&(b=[b[1],b[0]]);else{b=y.range;var w=b,O=o7(w,2);u=O[0],s=O[1]}var P=T_(y,a),A=P.realScaleType,$=P.scale;$.domain(g).range(b),k_($);var j=C_($,Pr(Pr({},y),{},{realScaleType:A})),T=Pr(Pr(Pr({},y),j),{},{range:b,radius:h,realScaleType:A,scale:$,cx:f,cy:c,innerRadius:p,outerRadius:h,startAngle:u,endAngle:s});return Pr(Pr({},x),{},I_({},m,T))},{})},p7=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},h7=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,l=p7({x:n,y:i},{x:a,y:o});if(l<=0)return{radius:l};var u=(n-a)/l,s=Math.acos(u);return i>o&&(s=2*Math.PI-s),{radius:l,angle:f7(s),angleInRadian:s}},v7=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},y7=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),l=Math.min(a,o);return t+l*360},f1=function(t,r){var n=t.x,i=t.y,a=h7({x:n,y:i},r),o=a.radius,l=a.angle,u=r.innerRadius,s=r.outerRadius;if(os)return!1;if(o===0)return!0;var f=v7(r),c=f.startAngle,d=f.endAngle,p=l,h;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 h?Pr(Pr({},r),{},{radius:o,angle:y7(p,r)}):null},L_=function(t){return!L.isValidElement(t)&&!Z(t)&&typeof t!="boolean"?t.className:""};function il(e){"@babel/helpers - typeof";return il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},il(e)}var m7=["offset"];function g7(e){return S7(e)||w7(e)||x7(e)||b7()}function b7(){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 x7(e,t){if(e){if(typeof e=="string")return qp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qp(e,t)}}function w7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function S7(e){if(Array.isArray(e))return qp(e)}function qp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _7(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function d1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;t=0?1:-1,g,S;i==="insideStart"?(g=p+y*o,S=v):i==="insideEnd"?(g=h-y*o,S=!v):i==="end"&&(g=h+y*o,S=v),S=m<=0?S:!S;var b=be(s,f,x,g),w=be(s,f,x,g+(S?1:-1)*359),O="M".concat(b.x,",").concat(b.y,` + A`).concat(x,",").concat(x,",0,1,").concat(S?0:1,`, + `).concat(w.x,",").concat(w.y),P=J(t.id)?ka("recharts-radial-line-"):t.id;return E.createElement("text",al({},n,{dominantBaseline:"central",className:te("recharts-radial-bar-label",l)}),E.createElement("defs",null,E.createElement("path",{id:P,d:O})),E.createElement("textPath",{xlinkHref:"#".concat(P)},r))},k7=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,l=a.cy,u=a.innerRadius,s=a.outerRadius,f=a.startAngle,c=a.endAngle,d=(f+c)/2;if(i==="outside"){var p=be(o,l,s+n,d),h=p.x,v=p.y;return{x:h,y:v,textAnchor:h>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var x=(u+s)/2,m=be(o,l,x,d),y=m.x,g=m.y;return{x:y,y:g,textAnchor:"middle",verticalAnchor:"middle"}},C7=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,l=o.x,u=o.y,s=o.width,f=o.height,c=f>=0?1:-1,d=c*i,p=c>0?"end":"start",h=c>0?"start":"end",v=s>=0?1:-1,x=v*i,m=v>0?"end":"start",y=v>0?"start":"end";if(a==="top"){var g={x:l+s/2,y:u-c*i,textAnchor:"middle",verticalAnchor:p};return Fe(Fe({},g),n?{height:Math.max(u-n.y,0),width:s}:{})}if(a==="bottom"){var S={x:l+s/2,y:u+f+d,textAnchor:"middle",verticalAnchor:h};return Fe(Fe({},S),n?{height:Math.max(n.y+n.height-(u+f),0),width:s}:{})}if(a==="left"){var b={x:l-x,y:u+f/2,textAnchor:m,verticalAnchor:"middle"};return Fe(Fe({},b),n?{width:Math.max(b.x-n.x,0),height:f}:{})}if(a==="right"){var w={x:l+s+x,y:u+f/2,textAnchor:y,verticalAnchor:"middle"};return Fe(Fe({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:f}:{})}var O=n?{width:s,height:f}:{};return a==="insideLeft"?Fe({x:l+x,y:u+f/2,textAnchor:y,verticalAnchor:"middle"},O):a==="insideRight"?Fe({x:l+s-x,y:u+f/2,textAnchor:m,verticalAnchor:"middle"},O):a==="insideTop"?Fe({x:l+s/2,y:u+d,textAnchor:"middle",verticalAnchor:h},O):a==="insideBottom"?Fe({x:l+s/2,y:u+f-d,textAnchor:"middle",verticalAnchor:p},O):a==="insideTopLeft"?Fe({x:l+x,y:u+d,textAnchor:y,verticalAnchor:h},O):a==="insideTopRight"?Fe({x:l+s-x,y:u+d,textAnchor:m,verticalAnchor:h},O):a==="insideBottomLeft"?Fe({x:l+x,y:u+f-d,textAnchor:y,verticalAnchor:p},O):a==="insideBottomRight"?Fe({x:l+s-x,y:u+f-d,textAnchor:m,verticalAnchor:p},O):Ea(a)&&(H(a.x)||Rn(a.x))&&(H(a.y)||Rn(a.y))?Fe({x:l+st(a.x,s),y:u+st(a.y,f),textAnchor:"end",verticalAnchor:"end"},O):Fe({x:l+s/2,y:u+f/2,textAnchor:"middle",verticalAnchor:"middle"},O)},N7=function(t){return"cx"in t&&H(t.cx)};function Xe(e){var t=e.offset,r=t===void 0?5:t,n=O7(e,m7),i=Fe({offset:r},n),a=i.viewBox,o=i.position,l=i.value,u=i.children,s=i.content,f=i.className,c=f===void 0?"":f,d=i.textBreakAll;if(!a||J(l)&&J(u)&&!L.isValidElement(s)&&!Z(s))return null;if(L.isValidElement(s))return L.cloneElement(s,i);var p;if(Z(s)){if(p=L.createElement(s,i),L.isValidElement(p))return p}else p=j7(i);var h=N7(a),v=Y(i,!0);if(h&&(o==="insideStart"||o==="insideEnd"||o==="end"))return T7(i,p,v);var x=h?k7(i):C7(i);return E.createElement(ei,al({className:te("recharts-label",c)},v,x,{breakAll:d}),p)}Xe.displayName="Label";var R_=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,l=t.r,u=t.radius,s=t.innerRadius,f=t.outerRadius,c=t.x,d=t.y,p=t.top,h=t.left,v=t.width,x=t.height,m=t.clockWise,y=t.labelViewBox;if(y)return y;if(H(v)&&H(x)){if(H(c)&&H(d))return{x:c,y:d,width:v,height:x};if(H(p)&&H(h))return{x:p,y:h,width:v,height:x}}return H(c)&&H(d)?{x:c,y:d,width:0,height:0}:H(r)&&H(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||u||l||0,clockWise:m}:t.viewBox?t.viewBox:{}},M7=function(t,r){return t?t===!0?E.createElement(Xe,{key:"label-implicit",viewBox:r}):Ke(t)?E.createElement(Xe,{key:"label-implicit",viewBox:r,value:t}):L.isValidElement(t)?t.type===Xe?L.cloneElement(t,{key:"label-implicit",viewBox:r}):E.createElement(Xe,{key:"label-implicit",content:t,viewBox:r}):Z(t)?E.createElement(Xe,{key:"label-implicit",content:t,viewBox:r}):Ea(t)?E.createElement(Xe,al({viewBox:r},t,{key:"label-implicit"})):null:null},I7=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=R_(t),o=Nt(i,Xe).map(function(u,s){return L.cloneElement(u,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var l=M7(t.label,r||a);return[l].concat(g7(o))};Xe.parseViewBox=R_;Xe.renderCallByParent=I7;function D7(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var L7=D7;const R7=he(L7);function ol(e){"@babel/helpers - typeof";return ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ol(e)}var B7=["valueAccessor"],z7=["data","dataKey","clockWise","id","textBreakAll"];function F7(e){return K7(e)||H7(e)||W7(e)||U7()}function U7(){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 W7(e,t){if(e){if(typeof e=="string")return Gp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gp(e,t)}}function H7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function K7(e){if(Array.isArray(e))return Gp(e)}function Gp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function X7(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Y7=function(t){return Array.isArray(t.value)?R7(t.value):t.value};function Ir(e){var t=e.valueAccessor,r=t===void 0?Y7:t,n=v1(e,B7),i=n.data,a=n.dataKey,o=n.clockWise,l=n.id,u=n.textBreakAll,s=v1(n,z7);return!i||!i.length?null:E.createElement(ue,{className:"recharts-label-list"},i.map(function(f,c){var d=J(a)?r(f,c):We(f&&f.payload,a),p=J(l)?{}:{id:"".concat(l,"-").concat(c)};return E.createElement(Xe,$s({},Y(f,!0),s,p,{parentViewBox:f.parentViewBox,value:d,textBreakAll:u,viewBox:Xe.parseViewBox(J(o)?f:h1(h1({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}Ir.displayName="LabelList";function Q7(e,t){return e?e===!0?E.createElement(Ir,{key:"labelList-implicit",data:t}):E.isValidElement(e)||Z(e)?E.createElement(Ir,{key:"labelList-implicit",data:t,content:e}):Ea(e)?E.createElement(Ir,$s({data:t},e,{key:"labelList-implicit"})):null:null}function Z7(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Nt(n,Ir).map(function(o,l){return L.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!r)return i;var a=Q7(e.label,t);return[a].concat(F7(i))}Ir.renderCallByParent=Z7;function ll(e){"@babel/helpers - typeof";return ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ll(e)}function Xp(){return Xp=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=be(r,n,i,o),h=be(r,n,i,s);d+="L ".concat(h.x,",").concat(h.y,` + A `).concat(i,",").concat(i,`,0, + `).concat(+(Math.abs(u)>180),",").concat(+(o<=s),`, + `).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},n9=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,u=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,c=ut(f-s),d=su({cx:r,cy:n,radius:a,angle:s,sign:c,cornerRadius:o,cornerIsExternal:u}),p=d.circleTangency,h=d.lineTangency,v=d.theta,x=su({cx:r,cy:n,radius:a,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:u}),m=x.circleTangency,y=x.lineTangency,g=x.theta,S=u?Math.abs(s-f):Math.abs(s-f)-v-g;if(S<0)return l?"M ".concat(h.x,",").concat(h.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 + `):B_({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var b="M ".concat(h.x,",").concat(h.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,` + A`).concat(a,",").concat(a,",0,").concat(+(S>180),",").concat(+(c<0),",").concat(m.x,",").concat(m.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(y.x,",").concat(y.y,` + `);if(i>0){var w=su({cx:r,cy:n,radius:i,angle:s,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),O=w.circleTangency,P=w.lineTangency,A=w.theta,$=su({cx:r,cy:n,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),j=$.circleTangency,T=$.lineTangency,N=$.theta,D=u?Math.abs(s-f):Math.abs(s-f)-A-N;if(D<0&&o===0)return"".concat(b,"L").concat(r,",").concat(n,"Z");b+="L".concat(T.x,",").concat(T.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(j.x,",").concat(j.y,` + A`).concat(i,",").concat(i,",0,").concat(+(D>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 b+="L".concat(r,",").concat(n,"Z");return b},i9={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},z_=function(t){var r=m1(m1({},i9),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,l=r.cornerRadius,u=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,c=r.endAngle,d=r.className;if(o0&&Math.abs(f-c)<360?x=n9({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,h/2),forceCornerRadius:u,cornerIsExternal:s,startAngle:f,endAngle:c}):x=B_({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:c}),E.createElement("path",Xp({},Y(r,!0),{className:p,d:x,role:"img"}))};function ul(e){"@babel/helpers - typeof";return ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ul(e)}function Yp(){return Yp=Object.assign?Object.assign.bind():function(e){for(var t=1;t0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function O9(e,t){return ci(e.getTime(),t.getTime())}function _9(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function P9(e,t){return e===t}function P1(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,l,u=0;(o=a.next())&&!o.done;){for(var s=t.entries(),f=!1,c=0;(l=s.next())&&!l.done;){if(i[c]){c++;continue}var d=o.value,p=l.value;if(r.equals(d[0],p[0],u,c,e,t,r)&&r.equals(d[1],p[1],d[0],p[0],e,t,r)){f=i[c]=!0;break}c++}if(!f)return!1;u++}return!0}var A9=ci;function E9(e,t,r){var n=_1(e),i=n.length;if(_1(t).length!==i)return!1;for(;i-- >0;)if(!H_(e,t,r,n[i]))return!1;return!0}function eo(e,t,r){var n=S1(e),i=n.length;if(S1(t).length!==i)return!1;for(var a,o,l;i-- >0;)if(a=n[i],!H_(e,t,r,a)||(o=O1(e,a),l=O1(t,a),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function j9(e,t){return ci(e.valueOf(),t.valueOf())}function $9(e,t){return e.source===t.source&&e.flags===t.flags}function A1(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,l;(o=a.next())&&!o.done;){for(var u=t.values(),s=!1,f=0;(l=u.next())&&!l.done;){if(!i[f]&&r.equals(o.value,l.value,o.value,l.value,e,t,r)){s=i[f]=!0;break}f++}if(!s)return!1}return!0}function T9(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function k9(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function H_(e,t,r,n){return(n===w9||n===x9||n===b9)&&(e.$$typeof||t.$$typeof)?!0:g9(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var C9="[object Arguments]",N9="[object Boolean]",M9="[object Date]",I9="[object Error]",D9="[object Map]",L9="[object Number]",R9="[object Object]",B9="[object RegExp]",z9="[object Set]",F9="[object String]",U9="[object URL]",W9=Array.isArray,E1=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,j1=Object.assign,H9=Object.prototype.toString.call.bind(Object.prototype.toString);function K9(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,l=e.areObjectsEqual,u=e.arePrimitiveWrappersEqual,s=e.areRegExpsEqual,f=e.areSetsEqual,c=e.areTypedArraysEqual,d=e.areUrlsEqual;return function(h,v,x){if(h===v)return!0;if(h==null||v==null)return!1;var m=typeof h;if(m!==typeof v)return!1;if(m!=="object")return m==="number"?o(h,v,x):m==="function"?i(h,v,x):!1;var y=h.constructor;if(y!==v.constructor)return!1;if(y===Object)return l(h,v,x);if(W9(h))return t(h,v,x);if(E1!=null&&E1(h))return c(h,v,x);if(y===Date)return r(h,v,x);if(y===RegExp)return s(h,v,x);if(y===Map)return a(h,v,x);if(y===Set)return f(h,v,x);var g=H9(h);return g===M9?r(h,v,x):g===B9?s(h,v,x):g===D9?a(h,v,x):g===z9?f(h,v,x):g===R9?typeof h.then!="function"&&typeof v.then!="function"&&l(h,v,x):g===U9?d(h,v,x):g===I9?n(h,v,x):g===C9?l(h,v,x):g===N9||g===L9||g===F9?u(h,v,x):!1}}function V9(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?eo:S9,areDatesEqual:O9,areErrorsEqual:_9,areFunctionsEqual:P9,areMapsEqual:n?w1(P1,eo):P1,areNumbersEqual:A9,areObjectsEqual:n?eo:E9,arePrimitiveWrappersEqual:j9,areRegExpsEqual:$9,areSetsEqual:n?w1(A1,eo):A1,areTypedArraysEqual:n?eo:T9,areUrlsEqual:k9};if(r&&(i=j1({},i,r(i))),t){var a=fu(i.areArraysEqual),o=fu(i.areMapsEqual),l=fu(i.areObjectsEqual),u=fu(i.areSetsEqual);i=j1({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:u})}return i}function q9(e){return function(t,r,n,i,a,o,l){return e(t,r,l)}}function G9(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(u,s){var f=n(),c=f.cache,d=c===void 0?t?new WeakMap:void 0:c,p=f.meta;return r(u,s,{cache:d,equals:i,meta:p,strict:a})};if(t)return function(u,s){return r(u,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(u,s){return r(u,s,o)}}var X9=On();On({strict:!0});On({circular:!0});On({circular:!0,strict:!0});On({createInternalComparator:function(){return ci}});On({strict:!0,createInternalComparator:function(){return ci}});On({circular:!0,createInternalComparator:function(){return ci}});On({circular:!0,createInternalComparator:function(){return ci},strict:!0});function On(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,l=V9(e),u=K9(l),s=n?n(u):q9(u);return G9({circular:r,comparator:u,createState:i,equals:s,strict:o})}function Y9(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function $1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):Y9(i)};requestAnimationFrame(n)}function Qp(e){"@babel/helpers - typeof";return Qp=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},Qp(e)}function Q9(e){return tU(e)||eU(e)||J9(e)||Z9()}function Z9(){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 J9(e,t){if(e){if(typeof e=="string")return T1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T1(e,t)}}function T1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:m<0?0:m},v=function(m){for(var y=m>1?1:m,g=y,S=0;S<8;++S){var b=c(g)-y,w=p(g);if(Math.abs(b-y)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,l=o===void 0?17:o,u=function(f,c,d){var p=-(f-c)*n,h=d*a,v=d+(p-h)*l/1e3,x=d*l/1e3+f;return Math.abs(x-c)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CU(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function ad(e){return DU(e)||IU(e)||MU(e)||NU()}function NU(){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 MU(e,t){if(e){if(typeof e=="string")return rh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rh(e,t)}}function IU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DU(e){if(Array.isArray(e))return rh(e)}function rh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"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 Ns(e){return Ns=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ns(e)}var wr=function(e){FU(r,e);var t=UU(r);function r(n,i){var a;LU(this,r),a=t.call(this,n,i);var o=a.props,l=o.isActive,u=o.attributeName,s=o.from,f=o.to,c=o.steps,d=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(ah(a)),a.changeStyle=a.changeStyle.bind(ah(a)),!l||p<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),ih(a);if(c&&c.length)a.state={style:c[0].style};else if(s){if(typeof d=="function")return a.state={style:s},ih(a);a.state={style:u?oo({},u,s):s}}else a.state={style:{}};return a}return BU(r,[{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,l=a.canBegin,u=a.attributeName,s=a.shouldReAnimate,f=a.to,c=a.from,d=this.state.style;if(l){if(!o){var p={style:u?oo({},u,f):f};this.state&&d&&(u&&d[u]!==f||!u&&d!==f)&&this.setState(p);return}if(!(X9(i.to,f)&&i.canBegin&&i.isActive)){var h=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=h||s?c:i.to;if(this.state&&d){var x={style:u?oo({},u,v):v};(u&&d[u]!==v||!u&&d!==v)&&this.setState(x)}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,l=i.to,u=i.duration,s=i.easing,f=i.begin,c=i.onAnimationEnd,d=i.onAnimationStart,p=$U(o,l,gU(s),u,this.changeStyle),h=function(){a.stopJSAnimation=p()};this.manager.start([d,f,h,u,c])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,l=i.begin,u=i.onAnimationStart,s=o[0],f=s.style,c=s.duration,d=c===void 0?0:c,p=function(v,x,m){if(m===0)return v;var y=x.duration,g=x.easing,S=g===void 0?"ease":g,b=x.style,w=x.properties,O=x.onAnimationEnd,P=m>0?o[m-1]:x,A=w||Object.keys(b);if(typeof S=="function"||S==="spring")return[].concat(ad(v),[a.runJSAnimation.bind(a,{from:P.style,to:b,duration:y,easing:S}),y]);var $=N1(A,y,S),j=Jt(Jt(Jt({},P.style),b),{},{transition:$});return[].concat(ad(v),[j,y,O]).filter(oU)};return this.manager.start([u].concat(ad(o.reduce(p,[f,Math.max(d,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=rU());var a=i.begin,o=i.duration,l=i.attributeName,u=i.to,s=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,d=i.steps,p=i.children,h=this.manager;if(this.unSubscribe=h.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=l?oo({},l,u):u,x=N1(Object.keys(v),o,s);h.start([f,a,Jt(Jt({},v),{},{transition:x}),o,c])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var u=kU(i,TU),s=L.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!l||s===0||o<=0)return a;var c=function(p){var h=p.props,v=h.style,x=v===void 0?{}:v,m=h.className,y=L.cloneElement(p,Jt(Jt({},u),{},{style:Jt(Jt({},x),f),className:m}));return y};return s===1?c(L.Children.only(a)):E.createElement("div",null,L.Children.map(a,function(d){return c(d)}))}}]),r}(L.PureComponent);wr.displayName="Animate";wr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};wr.propTypes={from:ce.oneOfType([ce.object,ce.string]),to:ce.oneOfType([ce.object,ce.string]),attributeName:ce.string,duration:ce.number,begin:ce.number,easing:ce.oneOfType([ce.string,ce.func]),steps:ce.arrayOf(ce.shape({duration:ce.number.isRequired,style:ce.object.isRequired,easing:ce.oneOfType([ce.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ce.func]),properties:ce.arrayOf("string"),onAnimationEnd:ce.func})),children:ce.oneOfType([ce.node,ce.func]),isActive:ce.bool,canBegin:ce.bool,onAnimationEnd:ce.func,shouldReAnimate:ce.bool,onAnimationStart:ce.func,onAnimationReStart:ce.func};function fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,u=n>=0?1:-1,s=i>=0&&n>=0||i<0&&n<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(r+l*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(s,",").concat(t+u*c[0],",").concat(r)),f+="L ".concat(t+n-u*c[1],",").concat(r),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(s,`, + `).concat(t+n,",").concat(r+l*c[1])),f+="L ".concat(t+n,",").concat(r+i-l*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(s,`, + `).concat(t+n-u*c[2],",").concat(r+i)),f+="L ".concat(t+u*c[3],",").concat(r+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(s,`, + `).concat(t,",").concat(r+i-l*c[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var h=Math.min(o,a);f="M ".concat(t,",").concat(r+l*h,` + A `).concat(h,",").concat(h,",0,0,").concat(s,",").concat(t+u*h,",").concat(r,` + L `).concat(t+n-u*h,",").concat(r,` + A `).concat(h,",").concat(h,",0,0,").concat(s,",").concat(t+n,",").concat(r+l*h,` + L `).concat(t+n,",").concat(r+i-l*h,` + A `).concat(h,",").concat(h,",0,0,").concat(s,",").concat(t+n-u*h,",").concat(r+i,` + L `).concat(t+u*h,",").concat(r+i,` + A `).concat(h,",").concat(h,",0,0,").concat(s,",").concat(t,",").concat(r+i-l*h," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},ZU=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,l=r.width,u=r.height;if(Math.abs(l)>0&&Math.abs(u)>0){var s=Math.min(a,a+l),f=Math.max(a,a+l),c=Math.min(o,o+u),d=Math.max(o,o+u);return n>=s&&n<=f&&i>=c&&i<=d}return!1},JU={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Py=function(t){var r=F1(F1({},JU),t),n=L.useRef(),i=L.useState(-1),a=HU(i,2),o=a[0],l=a[1];L.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&l(S)}catch{}},[]);var u=r.x,s=r.y,f=r.width,c=r.height,d=r.radius,p=r.className,h=r.animationEasing,v=r.animationDuration,x=r.animationBegin,m=r.isAnimationActive,y=r.isUpdateAnimationActive;if(u!==+u||s!==+s||f!==+f||c!==+c||f===0||c===0)return null;var g=te("recharts-rectangle",p);return y?E.createElement(wr,{canBegin:o>0,from:{width:f,height:c,x:u,y:s},to:{width:f,height:c,x:u,y:s},duration:v,animationEasing:h,isActive:y},function(S){var b=S.width,w=S.height,O=S.x,P=S.y;return E.createElement(wr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:v,isActive:m,easing:h},E.createElement("path",Ms({},Y(r,!0),{className:g,d:U1(O,P,b,w,d),ref:n})))}):E.createElement("path",Ms({},Y(r,!0),{className:g,d:U1(u,s,f,c,d)}))},eW=["points","className","baseLinePoints","connectNulls"];function Ti(){return Ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function W1(e){return oW(e)||aW(e)||iW(e)||nW()}function nW(){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 iW(e,t){if(e){if(typeof e=="string")return oh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oh(e,t)}}function aW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oW(e){if(Array.isArray(e))return oh(e)}function oh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){H1(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),H1(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},wo=function(t,r){var n=lW(t);r&&(n=[n.reduce(function(a,o){return[].concat(W1(a),W1(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,l,u){return"".concat(o).concat(u===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},uW=function(t,r,n){var i=wo(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(wo(r.reverse(),n).slice(1))},sW=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=tW(t,eW);if(!r||!r.length)return null;var l=te("recharts-polygon",n);if(i&&i.length){var u=o.stroke&&o.stroke!=="none",s=uW(r,i,a);return E.createElement("g",{className:l},E.createElement("path",Ti({},Y(o,!0),{fill:s.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:s})),u?E.createElement("path",Ti({},Y(o,!0),{fill:"none",d:wo(r,a)})):null,u?E.createElement("path",Ti({},Y(o,!0),{fill:"none",d:wo(i,a)})):null)}var f=wo(r,a);return E.createElement("path",Ti({},Y(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:l,d:f}))};function lh(){return lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var mW=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},gW=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,l=o===void 0?0:o,u=t.left,s=u===void 0?0:u,f=t.width,c=f===void 0?0:f,d=t.height,p=d===void 0?0:d,h=t.className,v=vW(t,cW),x=fW({x:n,y:a,top:l,left:s,width:c,height:p},v);return!H(n)||!H(a)||!H(c)||!H(p)||!H(l)||!H(s)?null:E.createElement("path",uh({},Y(x,!0),{className:te("recharts-cross",h),d:mW(n,a,c,p,l,s)}))},bW=Hc,xW=s_,wW=xn;function SW(e,t){return e&&e.length?bW(e,wW(t),xW):void 0}var OW=SW;const _W=he(OW);var PW=Hc,AW=xn,EW=c_;function jW(e,t){return e&&e.length?PW(e,AW(t),EW):void 0}var $W=jW;const TW=he($W);var kW=["cx","cy","angle","ticks","axisLine"],CW=["ticks","tick","angle","tickFormatter","stroke"];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 So(){return So=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function NW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function MW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G1(e,t){for(var r=0;rQ1?o=i==="outer"?"start":"end":a<-Q1?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,l=n.axisLine,u=n.axisLineType,s=jn(jn({},Y(this.props,!1)),{},{fill:"none"},Y(l,!1));if(u==="circle")return E.createElement(Xc,Mn({className:"recharts-polar-angle-axis-line"},s,{cx:i,cy:a,r:o}));var f=this.props.ticks,c=f.map(function(d){return be(i,a,o,d.coordinate)});return E.createElement(sW,Mn({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,l=i.tickLine,u=i.tickFormatter,s=i.stroke,f=Y(this.props,!1),c=Y(o,!1),d=jn(jn({},f),{},{fill:"none"},Y(l,!1)),p=a.map(function(h,v){var x=n.getTickLineCoord(h),m=n.getTickTextAnchor(h),y=jn(jn(jn({textAnchor:m},f),{},{stroke:"none",fill:s},c),{},{index:v,payload:h,x:x.x2,y:x.y2});return E.createElement(ue,Mn({className:te("recharts-polar-angle-axis-tick",L_(o)),key:"tick-".concat(h.coordinate)},Jn(n.props,h,v)),l&&E.createElement("line",Mn({className:"recharts-polar-angle-axis-tick-line"},d,x)),o&&t.renderTickItem(o,y,u?u(h.value,v):h.value))});return E.createElement(ue,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:E.createElement(ue,{className:te("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return E.isValidElement(n)?o=E.cloneElement(n,i):Z(n)?o=n(i):o=E.createElement(ei,Mn({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(L.PureComponent);Zc(Jc,"displayName","PolarAngleAxis");Zc(Jc,"axisType","angleAxis");Zc(Jc,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var XW=oO,YW=XW(Object.getPrototypeOf,Object),QW=YW,ZW=Hr,JW=QW,eH=Kr,tH="[object Object]",rH=Function.prototype,nH=Object.prototype,tP=rH.toString,iH=nH.hasOwnProperty,aH=tP.call(Object);function oH(e){if(!eH(e)||ZW(e)!=tH)return!1;var t=JW(e);if(t===null)return!0;var r=iH.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&tP.call(r)==aH}var lH=oH;const uH=he(lH);var sH=Hr,cH=Kr,fH="[object Boolean]";function dH(e){return e===!0||e===!1||cH(e)&&sH(e)==fH}var pH=dH;const hH=he(pH);function pl(e){"@babel/helpers - typeof";return pl=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},pl(e)}function Ls(){return Ls=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:d,x:u,y:s},to:{upperWidth:f,lowerWidth:c,height:d,x:u,y:s},duration:v,animationEasing:h,isActive:m},function(g){var S=g.upperWidth,b=g.lowerWidth,w=g.height,O=g.x,P=g.y;return E.createElement(wr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:v,easing:h},E.createElement("path",Ls({},Y(r,!0),{className:y,d:tb(O,P,S,b,w),ref:n})))}):E.createElement("g",null,E.createElement("path",Ls({},Y(r,!0),{className:y,d:tb(u,s,f,c,d)})))},PH=["option","shapeType","propTransformer","activeClassName","isActive"];function hl(e){"@babel/helpers - typeof";return hl=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},hl(e)}function AH(e,t){if(e==null)return{};var r=EH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function rb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rs(e){for(var t=1;t0?Ct(g,"paddingAngle",0):0;if(b){var O=jt(b.endAngle-b.startAngle,g.endAngle-g.startAngle),P=ye(ye({},g),{},{startAngle:y+w,endAngle:y+O(v)+w});x.push(P),y=P.endAngle}else{var A=g.endAngle,$=g.startAngle,j=jt(0,A-$),T=j(v),N=ye(ye({},g),{},{startAngle:y+w,endAngle:y+T+w});x.push(N),y=N.endAngle}}),E.createElement(ue,null,n.renderSectorsStatically(x))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Nl(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,l=i.className,u=i.label,s=i.cx,f=i.cy,c=i.innerRadius,d=i.outerRadius,p=i.isAnimationActive,h=this.state.isAnimationFinished;if(a||!o||!o.length||!H(s)||!H(f)||!H(c)||!H(d))return null;var v=te("recharts-pie",l);return E.createElement(ue,{tabIndex:this.props.rootTabIndex,className:v,ref:function(m){n.pieRef=m}},this.renderSectors(),u&&this.renderLabels(o),Xe.renderCallByParent(this.props,null,!1),(!p||h)&&Ir.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n=360?y:y-1)*u,S=x-y*p-g,b=i.reduce(function(P,A){var $=We(A,m,0);return P+(H($)?$:0)},0),w;if(b>0){var O;w=i.map(function(P,A){var $=We(P,m,0),j=We(P,f,A),T=(H($)?$:0)/b,N;A?N=O.endAngle+ut(v)*u*($!==0?1:0):N=o;var D=N+ut(v)*(($!==0?p:0)+T*S),M=(N+D)/2,R=(h.innerRadius+h.outerRadius)/2,B=[{name:j,value:$,payload:P,dataKey:m,type:d}],k=be(h.cx,h.cy,R,M);return O=ye(ye(ye({percent:T,cornerRadius:a,name:j,tooltipPayload:B,midAngle:M,middleRadius:R,tooltipPosition:k},P),h),{},{value:We(P,m),startAngle:N,endAngle:D,payload:P,paddingAngle:ut(v)*u}),O})}return ye(ye({},h),{},{sectors:w,data:i})});var GH=Math.ceil,XH=Math.max;function YH(e,t,r,n){for(var i=-1,a=XH(GH((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var QH=YH,ZH=_O,ob=1/0,JH=17976931348623157e292;function eK(e){if(!e)return e===0?e:0;if(e=ZH(e),e===ob||e===-ob){var t=e<0?-1:1;return t*JH}return e===e?e:0}var tK=eK,rK=QH,nK=Lc,od=tK;function iK(e){return function(t,r,n){return n&&typeof n!="number"&&nK(t,r,n)&&(r=n=void 0),t=od(t),r===void 0?(r=t,t=0):r=od(r),n=n===void 0?t0&&n.handleDrag(i.changedTouches[0])}),_t(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,l=i.startIndex;o==null||o({endIndex:a,startIndex:l})}),n.detachDragEndListener()}),_t(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),_t(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),_t(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),_t(n,"handleSlideDragStart",function(i){var a=fb(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return gK(t,e),hK(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,l=this.props,u=l.gap,s=l.data,f=s.length-1,c=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,c),h=t.getIndexInRange(o,d);return{startIndex:p-p%u,endIndex:h===f?f:h-h%u}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,l=i.dataKey,u=We(a[n],l,n);return Z(o)?o(u,n):u}},{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(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,l=i.endX,u=this.props,s=u.x,f=u.width,c=u.travellerWidth,d=u.startIndex,p=u.endIndex,h=u.onChange,v=n.pageX-a;v>0?v=Math.min(v,s+f-c-l,s+f-c-o):v<0&&(v=Math.max(v,s-o,s-l));var x=this.getIndex({startX:o+v,endX:l+v});(x.startIndex!==d||x.endIndex!==p)&&h&&h(x),this.setState({startX:o+v,endX:l+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=fb(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,l=i.endX,u=i.startX,s=this.state[o],f=this.props,c=f.x,d=f.width,p=f.travellerWidth,h=f.onChange,v=f.gap,x=f.data,m={startX:this.state.startX,endX:this.state.endX},y=n.pageX-a;y>0?y=Math.min(y,c+d-p-s):y<0&&(y=Math.max(y,c-s)),m[o]=s+y;var g=this.getIndex(m),S=g.startIndex,b=g.endIndex,w=function(){var P=x.length-1;return o==="startX"&&(l>u?S%v===0:b%v===0)||lu?b%v===0:S%v===0)||l>u&&b===P};this.setState(_t(_t({},o,s+y),"brushMoveStartX",n.pageX),function(){h&&w()&&h(g)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,l=o.scaleValues,u=o.startX,s=o.endX,f=this.state[i],c=l.indexOf(f);if(c!==-1){var d=c+n;if(!(d===-1||d>=l.length)){var p=l[d];i==="startX"&&p>=s||i==="endX"&&p<=u||this.setState(_t({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,l=n.height,u=n.fill,s=n.stroke;return E.createElement("rect",{stroke:s,fill:u,x:i,y:a,width:o,height:l})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,l=n.height,u=n.data,s=n.children,f=n.padding,c=L.Children.only(s);return c?E.cloneElement(c,{x:i,y:a,width:o,height:l,margin:f,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,l=this,u=this.props,s=u.y,f=u.travellerWidth,c=u.height,d=u.traveller,p=u.ariaLabel,h=u.data,v=u.startIndex,x=u.endIndex,m=Math.max(n,this.props.x),y=ld(ld({},Y(this.props,!1)),{},{x:m,y:s,width:f,height:c}),g=p||"Min value: ".concat((a=h[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=h[x])===null||o===void 0?void 0:o.name);return E.createElement(ue,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(b){["ArrowLeft","ArrowRight"].includes(b.key)&&(b.preventDefault(),b.stopPropagation(),l.handleTravellerMoveKeyboard(b.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,y))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,l=a.height,u=a.stroke,s=a.travellerWidth,f=Math.min(n,i)+s,c=Math.max(Math.abs(i-n)-s,0);return E.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:f,y:o,width:c,height:l})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,l=n.height,u=n.travellerWidth,s=n.stroke,f=this.state,c=f.startX,d=f.endX,p=5,h={pointerEvents:"none",fill:s};return E.createElement(ue,{className:"recharts-brush-texts"},E.createElement(ei,Fs({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-p,y:o+l/2},h),this.getTextOfTick(i)),E.createElement(ei,Fs({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+u+p,y:o+l/2},h),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,l=n.x,u=n.y,s=n.width,f=n.height,c=n.alwaysShowText,d=this.state,p=d.startX,h=d.endX,v=d.isTextActive,x=d.isSlideMoving,m=d.isTravellerMoving,y=d.isTravellerFocused;if(!i||!i.length||!H(l)||!H(u)||!H(s)||!H(f)||s<=0||f<=0)return null;var g=te("recharts-brush",a),S=E.Children.count(o)===1,b=dK("userSelect","none");return E.createElement(ue,{className:g,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,h),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(h,"endX"),(v||x||m||y||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,l=n.height,u=n.stroke,s=Math.floor(a+l/2)-1;return E.createElement(E.Fragment,null,E.createElement("rect",{x:i,y:a,width:o,height:l,fill:u,stroke:"none"}),E.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),E.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return E.isValidElement(n)?a=E.cloneElement(n,i):Z(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,l=n.x,u=n.travellerWidth,s=n.updateId,f=n.startIndex,c=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return ld({prevData:a,prevTravellerWidth:u,prevUpdateId:s,prevX:l,prevWidth:o},a&&a.length?xK({data:a,width:o,x:l,travellerWidth:u,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||l!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([l,l+o-u]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:u,prevUpdateId:s,prevX:l,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,l=a-1;l-o>1;){var u=Math.floor((o+l)/2);n[u]>i?l=u:o=u}return i>=n[l]?l:o}}])}(L.PureComponent);_t(fa,"displayName","Brush");_t(fa,"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 wK=Qv;function SK(e,t){var r;return wK(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var OK=SK,_K=ZS,PK=xn,AK=OK,EK=St,jK=Lc;function $K(e,t,r){var n=EK(e)?_K:AK;return r&&jK(e,t,r)&&(t=void 0),n(e,PK(t))}var TK=$K;const kK=he(TK);var gr=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},db=bO;function CK(e,t,r){t=="__proto__"&&db?db(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var NK=CK,MK=NK,IK=mO,DK=xn;function LK(e,t){var r={};return t=DK(t),IK(e,function(n,i,a){MK(r,i,t(n,i,a))}),r}var RK=LK;const BK=he(RK);function zK(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function aV(e,t){var r=e.x,n=e.y,i=nV(e,JK),a="".concat(r),o=parseInt(a,10),l="".concat(n),u=parseInt(l,10),s="".concat(t.height||i.height),f=parseInt(s,10),c="".concat(t.width||i.width),d=parseInt(c,10);return to(to(to(to(to({},t),i),o?{x:o}:{}),u?{y:u}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function hb(e){return E.createElement(rP,ph({shapeType:"rectangle",propTransformer:aV,activeClassName:"recharts-active-bar"},e))}var oV=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=H(n)||jk(n);return a?t(n,i):(a||ri(),r)}},lV=["value","background"],uP;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 uV(e,t){if(e==null)return{};var r=sV(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ws(){return Ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(M)0&&Math.abs(D)0&&(N=Math.min((ae||0)-(D[_e-1]||0),N))}),Number.isFinite(N)){var M=N/T,R=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(O=M*R/2),v.padding==="no-gap"){var B=st(t.barCategoryGap,M*R),k=M*R/2;O=k-B-(k-B)/R*B}}}i==="xAxis"?P=[n.left+(g.left||0)+(O||0),n.left+n.width-(g.right||0)-(O||0)]:i==="yAxis"?P=u==="horizontal"?[n.top+n.height-(g.bottom||0),n.top+(g.top||0)]:[n.top+(g.top||0)+(O||0),n.top+n.height-(g.bottom||0)-(O||0)]:P=v.range,b&&(P=[P[1],P[0]]);var I=T_(v,a,d),F=I.scale,K=I.realScaleType;F.domain(m).range(P),k_(F);var W=C_(F,rr(rr({},v),{},{realScaleType:K}));i==="xAxis"?(j=x==="top"&&!S||x==="bottom"&&S,A=n.left,$=c[w]-j*v.height):i==="yAxis"&&(j=x==="left"&&!S||x==="right"&&S,A=c[w]-j*v.width,$=n.top);var X=rr(rr(rr({},v),W),{},{realScaleType:K,x:A,y:$,scale:F,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return X.bandSize=Es(X,W),!v.hide&&i==="xAxis"?c[w]+=(j?-1:1)*X.height:v.hide||(c[w]+=(j?-1:1)*X.width),rr(rr({},p),{},rf({},h,X))},{})},pP=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},xV=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return pP({x:r,y:n},{x:i,y:a})},hP=function(){function e(t){mV(this,e),this.scale=t}return gV(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(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(r)+l}default:return this.scale(r)}if(i){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+u}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();rf(hP,"EPS",1e-4);var Ay=function(t){var r=Object.keys(t).reduce(function(n,i){return rr(rr({},n),{},rf({},i,hP.create(t[i])))},{});return rr(rr({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,l=a.position;return BK(i,function(u,s){return r[s].apply(u,{bandAware:o,position:l})})},isInRange:function(i){return ZK(i,function(a,o){return r[o].isInRange(a)})}})};function wV(e){return(e%180+180)%180}var SV=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=wV(i),o=a*Math.PI/180,l=Math.atan(n/r),u=o>l&&oe.length)&&(t=e.length);for(var r=0,n=new Array(t);re*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function sq(e,t){return kP(e,t+1)}function cq(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,l=t.end,u=0,s=1,f=o,c=function(){var h=n==null?void 0:n[u];if(h===void 0)return{v:kP(n,s)};var v=u,x,m=function(){return x===void 0&&(x=r(h,v)),x},y=h.coordinate,g=u===0||Gs(e,y,m,f,l);g||(u=0,f=o,s+=1),g&&(f=y+e*(m()/2+i),u+=s)},d;s<=a.length;)if(d=c(),d)return d.v;return[]}function bl(e){"@babel/helpers - typeof";return bl=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},bl(e)}function Eb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function it(e){for(var t=1;t0?p.coordinate-x*e:p.coordinate})}else a[d]=p=it(it({},p),{},{tickCoord:p.coordinate});var m=Gs(e,p.tickCoord,v,l,u);m&&(u=p.tickCoord-e*(v()/2+i),a[d]=it(it({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function vq(e,t,r,n,i,a){var o=(n||[]).slice(),l=o.length,u=t.start,s=t.end;if(a){var f=n[l-1],c=r(f,l-1),d=e*(f.coordinate+e*c/2-s);o[l-1]=f=it(it({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var p=Gs(e,f.tickCoord,function(){return c},u,s);p&&(s=f.tickCoord-e*(c/2+i),o[l-1]=it(it({},f),{},{isShow:!0}))}for(var h=a?l-1:l,v=function(y){var g=o[y],S,b=function(){return S===void 0&&(S=r(g,y)),S};if(y===0){var w=e*(g.coordinate-e*b()/2-u);o[y]=g=it(it({},g),{},{tickCoord:w<0?g.coordinate-w*e:g.coordinate})}else o[y]=g=it(it({},g),{},{tickCoord:g.coordinate});var O=Gs(e,g.tickCoord,b,u,s);O&&(u=g.tickCoord+e*(b()/2+i),o[y]=it(it({},g),{},{isShow:!0}))},x=0;x=2?ut(i[1].coordinate-i[0].coordinate):1,m=uq(a,x,p);return u==="equidistantPreserveStart"?cq(x,m,v,i,o):(u==="preserveStart"||u==="preserveStartEnd"?d=vq(x,m,v,i,o,u==="preserveStartEnd"):d=hq(x,m,v,i,o),d.filter(function(y){return y.isShow}))}var mq=["viewBox"],gq=["viewBox"],bq=["ticks"];function ya(e){"@babel/helpers - typeof";return ya=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},ya(e)}function Ci(){return Ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function wq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $b(e,t){for(var r=0;r0?u(this.props):u(p)),o<=0||l<=0||!h||!h.length?null:E.createElement(ue,{className:te("recharts-cartesian-axis",s),ref:function(x){n.layerReference=x}},a&&this.renderAxisLine(),this.renderTicks(h,this.state.fontSize,this.state.letterSpacing),Xe.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,l=te(i.className,"recharts-cartesian-axis-tick-value");return E.isValidElement(n)?o=E.cloneElement(n,ze(ze({},i),{},{className:l})):Z(n)?o=n(ze(ze({},i),{},{className:l})):o=E.createElement(ei,Ci({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(L.Component);$y(uf,"displayName","CartesianAxis");$y(uf,"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 jq=["type","layout","connectNulls","ref"],$q=["key"];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 Tb(e,t){if(e==null)return{};var r=Tq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Tq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Oo(){return Oo=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);rc){p=[].concat(vi(u.slice(0,h)),[c-v]);break}var x=p.length%2===0?[0,d]:[d];return[].concat(vi(t.repeat(u,f)),vi(p),x).map(function(m){return"".concat(m,"px")}).join(", ")}),nr(r,"id",ka("recharts-line-")),nr(r,"pathRef",function(o){r.mainCurve=o}),nr(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),nr(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return zq(t,e),Dq(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,l=a.xAxis,u=a.yAxis,s=a.layout,f=a.children,c=Nt(f,Ml);if(!c)return null;var d=function(v,x){return{x:v.x,y:v.y,value:v.value,errorVal:We(v.payload,x)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return E.createElement(ue,p,c.map(function(h){return E.cloneElement(h,{key:"bar-".concat(h.props.dataKey),data:o,xAxis:l,yAxis:u,layout:s,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var l=this.props,u=l.dot,s=l.points,f=l.dataKey,c=Y(this.props,!1),d=Y(u,!0),p=s.map(function(v,x){var m=Ot(Ot(Ot({key:"dot-".concat(x),r:3},c),d),{},{index:x,cx:v.x,cy:v.y,value:v.value,dataKey:f,payload:v.payload,points:s});return t.renderDotItem(u,m)}),h={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return E.createElement(ue,Oo({className:"recharts-line-dots",key:"dots"},h),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var l=this.props,u=l.type,s=l.layout,f=l.connectNulls;l.ref;var c=Tb(l,jq),d=Ot(Ot(Ot({},Y(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:u,layout:s,connectNulls:f});return E.createElement(Ts,Oo({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,l=o.points,u=o.strokeDasharray,s=o.isAnimationActive,f=o.animationBegin,c=o.animationDuration,d=o.animationEasing,p=o.animationId,h=o.animateNewValues,v=o.width,x=o.height,m=this.state,y=m.prevPoints,g=m.totalLength;return E.createElement(wr,{begin:f,duration:c,isActive:s,easing:d,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var b=S.t;if(y){var w=y.length/l.length,O=l.map(function(T,N){var D=Math.floor(N*w);if(y[D]){var M=y[D],R=jt(M.x,T.x),B=jt(M.y,T.y);return Ot(Ot({},T),{},{x:R(b),y:B(b)})}if(h){var k=jt(v*2,T.x),I=jt(x/2,T.y);return Ot(Ot({},T),{},{x:k(b),y:I(b)})}return Ot(Ot({},T),{},{x:T.x,y:T.y})});return a.renderCurveStatically(O,n,i)}var P=jt(0,g),A=P(b),$;if(u){var j="".concat(u).split(/[,\s]+/gim).map(function(T){return parseFloat(T)});$=a.getStrokeDasharray(A,g,j)}else $=a.generateSimpleStrokeDasharray(g,A);return a.renderCurveStatically(l,n,i,{strokeDasharray:$})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,l=a.isAnimationActive,u=this.state,s=u.prevPoints,f=u.totalLength;return l&&o&&o.length&&(!s&&f>0||!Nl(s,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,l=i.points,u=i.className,s=i.xAxis,f=i.yAxis,c=i.top,d=i.left,p=i.width,h=i.height,v=i.isAnimationActive,x=i.id;if(a||!l||!l.length)return null;var m=this.state.isAnimationFinished,y=l.length===1,g=te("recharts-line",u),S=s&&s.allowDataOverflow,b=f&&f.allowDataOverflow,w=S||b,O=J(x)?this.id:x,P=(n=Y(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},A=P.r,$=A===void 0?3:A,j=P.strokeWidth,T=j===void 0?2:j,N=zk(o)?o:{},D=N.clipDot,M=D===void 0?!0:D,R=$*2+T;return E.createElement(ue,{className:g},S||b?E.createElement("defs",null,E.createElement("clipPath",{id:"clipPath-".concat(O)},E.createElement("rect",{x:S?d:d-p/2,y:b?c:c-h/2,width:S?p:p*2,height:b?h:h*2})),!M&&E.createElement("clipPath",{id:"clipPath-dots-".concat(O)},E.createElement("rect",{x:d-R/2,y:c-R/2,width:p+R,height:h+R}))):null,!y&&this.renderCurve(w,O),this.renderErrorBar(w,O),(y||o)&&this.renderDots(w,M,O),(!v||m)&&Ir.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(vi(n),[0]):n,o=[],l=0;le.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $G(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function TG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kG(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?o:t&&t.length&&H(i)&&H(a)?t.slice(i,a+1):[]};function XP(e){return e==="number"?[0,"auto"]:void 0}var Ch=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,l=sf(r,t);return n<0||!a||!a.length||n>=l.length?null:a.reduce(function(u,s){var f,c=(f=s.props.data)!==null&&f!==void 0?f:r;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=c===void 0?l:c;d=Ju(p,o.dataKey,i)}else d=c&&c[n]||l[n];return d?[].concat(Sa(u),[M_(s,d)]):u},[])},Rb=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=WG(a,n),l=t.orderedTooltipTicks,u=t.tooltipAxis,s=t.tooltipTicks,f=UF(o,l,s,u);if(f>=0&&s){var c=s[f]&&s[f].value,d=Ch(t,r,f,c),p=HG(n,l,f,a);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:p}}return null},KG=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,l=r.stackGroups,u=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,c=t.children,d=t.stackOffset,p=$_(f,a);return n.reduce(function(h,v){var x,m=v.type.defaultProps!==void 0?C(C({},v.type.defaultProps),v.props):v.props,y=m.type,g=m.dataKey,S=m.allowDataOverflow,b=m.allowDuplicatedCategory,w=m.scale,O=m.ticks,P=m.includeHidden,A=m[o];if(h[A])return h;var $=sf(t.data,{graphicalItems:i.filter(function(W){var X,ae=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o];return ae===A}),dataStartIndex:u,dataEndIndex:s}),j=$.length,T,N,D;mG(m.domain,S,y)&&(T=Vp(m.domain,null,S),p&&(y==="number"||w!=="auto")&&(D=bo($,g,"category")));var M=XP(y);if(!T||T.length===0){var R,B=(R=m.domain)!==null&&R!==void 0?R:M;if(g){if(T=bo($,g,y),y==="category"&&p){var k=Tk(T);b&&k?(N=T,T=zs(0,j)):b||(T=u1(B,T,v).reduce(function(W,X){return W.indexOf(X)>=0?W:[].concat(Sa(W),[X])},[]))}else if(y==="category")b?T=T.filter(function(W){return W!==""&&!J(W)}):T=u1(B,T,v).reduce(function(W,X){return W.indexOf(X)>=0||X===""||J(X)?W:[].concat(Sa(W),[X])},[]);else if(y==="number"){var I=qF($,i.filter(function(W){var X,ae,_e=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o],Ne="hide"in W.props?W.props.hide:(ae=W.type.defaultProps)===null||ae===void 0?void 0:ae.hide;return _e===A&&(P||!Ne)}),g,a,f);I&&(T=I)}p&&(y==="number"||w!=="auto")&&(D=bo($,g,"category"))}else p?T=zs(0,j):l&&l[A]&&l[A].hasStack&&y==="number"?T=d==="expand"?[0,1]:N_(l[A].stackGroups,u,s):T=j_($,i.filter(function(W){var X=o in W.props?W.props[o]:W.type.defaultProps[o],ae="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return X===A&&(P||!ae)}),y,f,!0);if(y==="number")T=$h(c,T,A,a,O),B&&(T=Vp(B,T,S));else if(y==="category"&&B){var F=B,K=T.every(function(W){return F.indexOf(W)>=0});K&&(T=F)}}return C(C({},h),{},Q({},A,C(C({},m),{},{axisType:a,domain:T,categoricalDomain:D,duplicateDomain:N,originalDomain:(x=m.domain)!==null&&x!==void 0?x:M,isCategorical:p,layout:f})))},{})},VG=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,l=r.stackGroups,u=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,c=t.children,d=sf(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:s}),p=d.length,h=$_(f,a),v=-1;return n.reduce(function(x,m){var y=m.type.defaultProps!==void 0?C(C({},m.type.defaultProps),m.props):m.props,g=y[o],S=XP("number");if(!x[g]){v++;var b;return h?b=zs(0,p):l&&l[g]&&l[g].hasStack?(b=N_(l[g].stackGroups,u,s),b=$h(c,b,g,a)):(b=Vp(S,j_(d,n.filter(function(w){var O,P,A=o in w.props?w.props[o]:(O=w.type.defaultProps)===null||O===void 0?void 0:O[o],$="hide"in w.props?w.props.hide:(P=w.type.defaultProps)===null||P===void 0?void 0:P.hide;return A===g&&!$}),"number",f),i.defaultProps.allowDataOverflow),b=$h(c,b,g,a)),C(C({},x),{},Q({},g,C(C({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ct(FG,"".concat(a,".").concat(v%2),null),domain:b,originalDomain:S,isCategorical:h,layout:f})))}return x},{})},qG=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,l=r.stackGroups,u=r.dataStartIndex,s=r.dataEndIndex,f=t.children,c="".concat(i,"Id"),d=Nt(f,a),p={};return d&&d.length?p=KG(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:l,dataStartIndex:u,dataEndIndex:s}):o&&o.length&&(p=VG(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:l,dataStartIndex:u,dataEndIndex:s})),p},GG=function(t){var r=yi(t),n=Fn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Zv(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Es(r,n)}},Bb=function(t){var r=t.children,n=t.defaultShowTooltip,i=At(r,fa),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:!!n}},XG=function(t){return!t||!t.length?!1:t.some(function(r){var n=Cr(r&&r.type);return n&&n.indexOf("Bar")>=0})},zb=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"}},YG=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,l=t.yAxisMap,u=l===void 0?{}:l,s=n.width,f=n.height,c=n.children,d=n.margin||{},p=At(c,fa),h=At(c,Fi),v=Object.keys(u).reduce(function(b,w){var O=u[w],P=O.orientation;return!O.mirror&&!O.hide?C(C({},b),{},Q({},P,b[P]+O.width)):b},{left:d.left||0,right:d.right||0}),x=Object.keys(o).reduce(function(b,w){var O=o[w],P=O.orientation;return!O.mirror&&!O.hide?C(C({},b),{},Q({},P,Ct(b,"".concat(P))+O.height)):b},{top:d.top||0,bottom:d.bottom||0}),m=C(C({},x),v),y=m.bottom;p&&(m.bottom+=p.props.height||fa.defaultProps.height),h&&r&&(m=KF(m,i,n,r));var g=s-m.left-m.right,S=f-m.top-m.bottom;return C(C({brushBottom:y},m),{},{width:Math.max(g,0),height:Math.max(S,0)})},QG=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Ty=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,u=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,d=function(m,y){var g=y.graphicalItems,S=y.stackGroups,b=y.offset,w=y.updateId,O=y.dataStartIndex,P=y.dataEndIndex,A=m.barSize,$=m.layout,j=m.barGap,T=m.barCategoryGap,N=m.maxBarSize,D=zb($),M=D.numericAxisName,R=D.cateAxisName,B=XG(g),k=[];return g.forEach(function(I,F){var K=sf(m.data,{graphicalItems:[I],dataStartIndex:O,dataEndIndex:P}),W=I.type.defaultProps!==void 0?C(C({},I.type.defaultProps),I.props):I.props,X=W.dataKey,ae=W.maxBarSize,_e=W["".concat(M,"Id")],Ne=W["".concat(R,"Id")],Lt={},ht=u.reduce(function(_n,Pn){var cf=y["".concat(Pn.axisType,"Map")],ky=W["".concat(Pn.axisType,"Id")];cf&&cf[ky]||Pn.axisType==="zAxis"||ri();var Cy=cf[ky];return C(C({},_n),{},Q(Q({},Pn.axisType,Cy),"".concat(Pn.axisType,"Ticks"),Fn(Cy)))},Lt),V=ht[R],ee=ht["".concat(R,"Ticks")],re=S&&S[_e]&&S[_e].hasStack&&r7(I,S[_e].stackGroups),z=Cr(I.type).indexOf("Bar")>=0,Te=Es(V,ee),oe=[],Re=B&&WF({barSize:A,stackGroups:S,totalSize:QG(ht,R)});if(z){var Be,vt,Gr=J(ae)?N:ae,fi=(Be=(vt=Es(V,ee,!0))!==null&&vt!==void 0?vt:Gr)!==null&&Be!==void 0?Be:0;oe=HF({barGap:j,barCategoryGap:T,bandSize:fi!==Te?fi:Te,sizeList:Re[Ne],maxBarSize:Gr}),fi!==Te&&(oe=oe.map(function(_n){return C(C({},_n),{},{position:C(C({},_n.position),{},{offset:_n.position.offset-fi/2})})}))}var Il=I&&I.type&&I.type.getComposedData;Il&&k.push({props:C(C({},Il(C(C({},ht),{},{displayedData:K,props:m,dataKey:X,item:I,bandSize:Te,barPosition:oe,offset:b,stackedData:re,layout:$,dataStartIndex:O,dataEndIndex:P}))),{},Q(Q(Q({key:I.key||"item-".concat(F)},M,ht[M]),R,ht[R]),"animationId",w)),childIndex:Wk(I,m.children),item:I})}),k},p=function(m,y){var g=m.props,S=m.dataStartIndex,b=m.dataEndIndex,w=m.updateId;if(!tg({props:g}))return null;var O=g.children,P=g.layout,A=g.stackOffset,$=g.data,j=g.reverseStackOrder,T=zb(P),N=T.numericAxisName,D=T.cateAxisName,M=Nt(O,n),R=e7($,M,"".concat(N,"Id"),"".concat(D,"Id"),A,j),B=u.reduce(function(W,X){var ae="".concat(X.axisType,"Map");return C(C({},W),{},Q({},ae,qG(g,C(C({},X),{},{graphicalItems:M,stackGroups:X.axisType===N&&R,dataStartIndex:S,dataEndIndex:b}))))},{}),k=YG(C(C({},B),{},{props:g,graphicalItems:M}),y==null?void 0:y.legendBBox);Object.keys(B).forEach(function(W){B[W]=f(g,B[W],k,W.replace("Map",""),r)});var I=B["".concat(D,"Map")],F=GG(I),K=d(g,C(C({},B),{},{dataStartIndex:S,dataEndIndex:b,updateId:w,graphicalItems:M,stackGroups:R,offset:k}));return C(C({formattedGraphicalItems:K,graphicalItems:M,offset:k,stackGroups:R},F),B)},h=function(x){function m(y){var g,S,b;return TG(this,m),b=NG(this,m,[y]),Q(b,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Q(b,"accessibilityManager",new yG),Q(b,"handleLegendBBoxUpdate",function(w){if(w){var O=b.state,P=O.dataStartIndex,A=O.dataEndIndex,$=O.updateId;b.setState(C({legendBBox:w},p({props:b.props,dataStartIndex:P,dataEndIndex:A,updateId:$},C(C({},b.state),{},{legendBBox:w}))))}}),Q(b,"handleReceiveSyncEvent",function(w,O,P){if(b.props.syncId===w){if(P===b.eventEmitterSymbol&&typeof b.props.syncMethod!="function")return;b.applySyncEvent(O)}}),Q(b,"handleBrushChange",function(w){var O=w.startIndex,P=w.endIndex;if(O!==b.state.dataStartIndex||P!==b.state.dataEndIndex){var A=b.state.updateId;b.setState(function(){return C({dataStartIndex:O,dataEndIndex:P},p({props:b.props,dataStartIndex:O,dataEndIndex:P,updateId:A},b.state))}),b.triggerSyncEvent({dataStartIndex:O,dataEndIndex:P})}}),Q(b,"handleMouseEnter",function(w){var O=b.getMouseInfo(w);if(O){var P=C(C({},O),{},{isTooltipActive:!0});b.setState(P),b.triggerSyncEvent(P);var A=b.props.onMouseEnter;Z(A)&&A(P,w)}}),Q(b,"triggeredAfterMouseMove",function(w){var O=b.getMouseInfo(w),P=O?C(C({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};b.setState(P),b.triggerSyncEvent(P);var A=b.props.onMouseMove;Z(A)&&A(P,w)}),Q(b,"handleItemMouseEnter",function(w){b.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),Q(b,"handleItemMouseLeave",function(){b.setState(function(){return{isTooltipActive:!1}})}),Q(b,"handleMouseMove",function(w){w.persist(),b.throttleTriggeredAfterMouseMove(w)}),Q(b,"handleMouseLeave",function(w){b.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};b.setState(O),b.triggerSyncEvent(O);var P=b.props.onMouseLeave;Z(P)&&P(O,w)}),Q(b,"handleOuterEvent",function(w){var O=Uk(w),P=Ct(b.props,"".concat(O));if(O&&Z(P)){var A,$;/.*touch.*/i.test(O)?$=b.getMouseInfo(w.changedTouches[0]):$=b.getMouseInfo(w),P((A=$)!==null&&A!==void 0?A:{},w)}}),Q(b,"handleClick",function(w){var O=b.getMouseInfo(w);if(O){var P=C(C({},O),{},{isTooltipActive:!0});b.setState(P),b.triggerSyncEvent(P);var A=b.props.onClick;Z(A)&&A(P,w)}}),Q(b,"handleMouseDown",function(w){var O=b.props.onMouseDown;if(Z(O)){var P=b.getMouseInfo(w);O(P,w)}}),Q(b,"handleMouseUp",function(w){var O=b.props.onMouseUp;if(Z(O)){var P=b.getMouseInfo(w);O(P,w)}}),Q(b,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),Q(b,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.handleMouseDown(w.changedTouches[0])}),Q(b,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.handleMouseUp(w.changedTouches[0])}),Q(b,"handleDoubleClick",function(w){var O=b.props.onDoubleClick;if(Z(O)){var P=b.getMouseInfo(w);O(P,w)}}),Q(b,"handleContextMenu",function(w){var O=b.props.onContextMenu;if(Z(O)){var P=b.getMouseInfo(w);O(P,w)}}),Q(b,"triggerSyncEvent",function(w){b.props.syncId!==void 0&&sd.emit(cd,b.props.syncId,w,b.eventEmitterSymbol)}),Q(b,"applySyncEvent",function(w){var O=b.props,P=O.layout,A=O.syncMethod,$=b.state.updateId,j=w.dataStartIndex,T=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)b.setState(C({dataStartIndex:j,dataEndIndex:T},p({props:b.props,dataStartIndex:j,dataEndIndex:T,updateId:$},b.state)));else if(w.activeTooltipIndex!==void 0){var N=w.chartX,D=w.chartY,M=w.activeTooltipIndex,R=b.state,B=R.offset,k=R.tooltipTicks;if(!B)return;if(typeof A=="function")M=A(k,w);else if(A==="value"){M=-1;for(var I=0;I=0){var re,z;if(N.dataKey&&!N.allowDuplicatedCategory){var Te=typeof N.dataKey=="function"?ee:"payload.".concat(N.dataKey.toString());re=Ju(I,Te,M),z=F&&K&&Ju(K,Te,M)}else re=I==null?void 0:I[D],z=F&&K&&K[D];if(Ne||_e){var oe=w.props.activeIndex!==void 0?w.props.activeIndex:D;return[L.cloneElement(w,C(C(C({},A.props),ht),{},{activeIndex:oe})),null,null]}if(!J(re))return[V].concat(Sa(b.renderActivePoints({item:A,activePoint:re,basePoint:z,childIndex:D,isRange:F})))}else{var Re,Be=(Re=b.getItemByXY(b.state.activeCoordinate))!==null&&Re!==void 0?Re:{graphicalItem:V},vt=Be.graphicalItem,Gr=vt.item,fi=Gr===void 0?w:Gr,Il=vt.childIndex,_n=C(C(C({},A.props),ht),{},{activeIndex:Il});return[L.cloneElement(fi,_n),null,null]}return F?[V,null,null]:[V,null]}),Q(b,"renderCustomized",function(w,O,P){return L.cloneElement(w,C(C({key:"recharts-customized-".concat(P)},b.props),b.state))}),Q(b,"renderMap",{CartesianGrid:{handler:pu,once:!0},ReferenceArea:{handler:b.renderReferenceElement},ReferenceLine:{handler:pu},ReferenceDot:{handler:b.renderReferenceElement},XAxis:{handler:pu},YAxis:{handler:pu},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((g=y.id)!==null&&g!==void 0?g:ka("recharts"),"-clip"),b.throttleTriggeredAfterMouseMove=PO(b.triggeredAfterMouseMove,(S=y.throttleDelay)!==null&&S!==void 0?S:1e3/60),b.state={},b}return DG(m,x),CG(m,[{key:"componentDidMount",value:function(){var g,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var g=this.props,S=g.children,b=g.data,w=g.height,O=g.layout,P=At(S,Et);if(P){var A=P.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var $=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,j=Ch(this.state,b,A,$),T=this.state.tooltipTicks[A].coordinate,N=(this.state.offset.top+w)/2,D=O==="horizontal",M=D?{x:T,y:N}:{y:T,x:N},R=this.state.formattedGraphicalItems.find(function(k){var I=k.item;return I.type.name==="Scatter"});R&&(M=C(C({},M),R.props.points[A].tooltipPosition),j=R.props.points[A].tooltipPayload);var B={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:$,activePayload:j,activeCoordinate:M};this.setState(B),this.renderCursor(P),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(g,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==g.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==g.margin){var b,w;this.accessibilityManager.setDetails({offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(g){lp([At(g.children,Et)],[At(this.props.children,Et)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var g=At(this.props.children,Et);if(g&&typeof g.props.shared=="boolean"){var S=g.props.shared?"axis":"item";return l.indexOf(S)>=0?S:a}return a}},{key:"getMouseInfo",value:function(g){if(!this.container)return null;var S=this.container,b=S.getBoundingClientRect(),w=y6(b),O={chartX:Math.round(g.pageX-w.left),chartY:Math.round(g.pageY-w.top)},P=b.width/S.offsetWidth||1,A=this.inRange(O.chartX,O.chartY,P);if(!A)return null;var $=this.state,j=$.xAxisMap,T=$.yAxisMap,N=this.getTooltipEventType(),D=Rb(this.state,this.props.data,this.props.layout,A);if(N!=="axis"&&j&&T){var M=yi(j).scale,R=yi(T).scale,B=M&&M.invert?M.invert(O.chartX):null,k=R&&R.invert?R.invert(O.chartY):null;return C(C({},O),{},{xValue:B,yValue:k},D)}return D?C(C({},O),D):null}},{key:"inRange",value:function(g,S){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,O=g/b,P=S/b;if(w==="horizontal"||w==="vertical"){var A=this.state.offset,$=O>=A.left&&O<=A.left+A.width&&P>=A.top&&P<=A.top+A.height;return $?{x:O,y:P}:null}var j=this.state,T=j.angleAxisMap,N=j.radiusAxisMap;if(T&&N){var D=yi(T);return f1({x:O,y:P},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var g=this.props.children,S=this.getTooltipEventType(),b=At(g,Et),w={};b&&S==="axis"&&(b.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var O=es(this.props,this.handleOuterEvent);return C(C({},O),w)}},{key:"addListener",value:function(){sd.on(cd,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){sd.removeListener(cd,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(g,S,b){for(var w=this.state.formattedGraphicalItems,O=0,P=w.length;O{const[e,t]=L.useState(null),r=[{name:"Development",completed:45,inProgress:25,pending:15,total:85},{name:"Design",completed:30,inProgress:20,pending:10,total:60},{name:"Testing",completed:20,inProgress:15,pending:5,total:40},{name:"Review",completed:35,inProgress:10,pending:8,total:53}],n=[{label:"Active Members",value:12,icon:cS,color:"text-blue-600"},{label:"Capacity Used",value:"73%",icon:PE,color:"text-green-600"},{label:"Weekly Goal",value:"85%",icon:uS,color:"text-purple-600"}],i=({active:a,payload:o,label:l})=>{if(a&&o&&o.length){const u=o[0].payload;return _.jsxs("div",{className:"bg-white p-4 border border-gray-200 rounded-lg shadow-lg",children:[_.jsx("p",{className:"font-semibold text-gray-900 mb-2",children:l}),_.jsxs("div",{className:"space-y-1",children:[_.jsxs("div",{className:"flex items-center",children:[_.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full mr-2"}),_.jsxs("span",{className:"text-sm",children:["Completed: ",u.completed]})]}),_.jsxs("div",{className:"flex items-center",children:[_.jsx("div",{className:"w-3 h-3 bg-blue-500 rounded-full mr-2"}),_.jsxs("span",{className:"text-sm",children:["In Progress: ",u.inProgress]})]}),_.jsxs("div",{className:"flex items-center",children:[_.jsx("div",{className:"w-3 h-3 bg-orange-500 rounded-full mr-2"}),_.jsxs("span",{className:"text-sm",children:["Pending: ",u.pending]})]})]}),_.jsx("div",{className:"border-t pt-2 mt-2",children:_.jsxs("span",{className:"text-sm font-medium",children:["Total: ",u.total," tasks"]})})]})}return null};return _.jsxs("div",{className:"bg-white rounded-xl border border-gray-200 p-6 hover:shadow-lg transition-all duration-300",children:[_.jsxs("div",{className:"flex items-center justify-between mb-6",children:[_.jsxs("h3",{className:"text-lg font-semibold text-gray-900 flex items-center",children:[_.jsx("span",{className:"w-3 h-3 bg-gradient-to-r from-indigo-400 to-purple-500 rounded-full mr-3"}),"Team Workload Overview"]}),_.jsxs("div",{className:"flex space-x-1",children:[_.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full"}),_.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full"}),_.jsx("div",{className:"w-2 h-2 bg-orange-500 rounded-full"})]})]}),_.jsx("div",{className:"grid grid-cols-3 gap-4 mb-6",children:n.map((a,o)=>{const l=a.icon;return _.jsxs("div",{className:"text-center p-3 bg-gray-50 rounded-lg",children:[_.jsx(l,{className:`w-5 h-5 mx-auto mb-1 ${a.color}`}),_.jsx("div",{className:"text-sm font-semibold text-gray-900",children:a.value}),_.jsx("div",{className:"text-xs text-gray-500",children:a.label})]},o)})}),_.jsx("div",{className:"h-48",children:_.jsx(Au,{width:"100%",height:"100%",children:_.jsxs(YP,{data:r,margin:{top:10,right:10,left:10,bottom:10},onMouseMove:a=>{a&&a.activeTooltipIndex!==void 0&&t(a.activeTooltipIndex)},onMouseLeave:()=>t(null),children:[_.jsx(ni,{dataKey:"name",axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#6B7280"}}),_.jsx(ii,{axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#6B7280"}}),_.jsx(Et,{content:_.jsx(i,{})}),_.jsx(br,{dataKey:"completed",stackId:"a",fill:"#10B981",radius:[0,0,0,0],children:r.map((a,o)=>_.jsx(Hn,{fill:e===o?"#059669":"#10B981"},`completed-${o}`))}),_.jsx(br,{dataKey:"inProgress",stackId:"a",fill:"#3B82F6",radius:[0,0,0,0],children:r.map((a,o)=>_.jsx(Hn,{fill:e===o?"#2563EB":"#3B82F6"},`inProgress-${o}`))}),_.jsx(br,{dataKey:"pending",stackId:"a",fill:"#F59E0B",radius:[4,4,0,0],children:r.map((a,o)=>_.jsx(Hn,{fill:e===o?"#D97706":"#F59E0B"},`pending-${o}`))})]})})}),_.jsxs("div",{className:"flex justify-center space-x-6 mt-4",children:[_.jsxs("div",{className:"flex items-center text-sm",children:[_.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full mr-2"}),_.jsx("span",{className:"text-gray-600",children:"Completed"})]}),_.jsxs("div",{className:"flex items-center text-sm",children:[_.jsx("div",{className:"w-3 h-3 bg-blue-500 rounded-full mr-2"}),_.jsx("span",{className:"text-gray-600",children:"In Progress"})]}),_.jsxs("div",{className:"flex items-center text-sm",children:[_.jsx("div",{className:"w-3 h-3 bg-orange-500 rounded-full mr-2"}),_.jsx("span",{className:"text-gray-600",children:"Pending"})]})]})]})},tX=()=>{const[e,t]=L.useState(-1),[r,n]=L.useState(null),i=[{name:"Assigned",value:65,color:"#10B981"},{name:"Unassigned",value:35,color:"#EF4444"}],a=[{name:"Alice",value:8,avatar:"👩‍💼"},{name:"Bob",value:6,avatar:"👨‍💻"},{name:"Carol",value:5,avatar:"👩‍🎨"},{name:"David",value:4,avatar:"👨‍🔬"},{name:"Emma",value:3,avatar:"👩‍🚀"}],o=[{day:"Mon",completed:12,pending:3},{day:"Tue",completed:15,pending:5},{day:"Wed",completed:8,pending:7},{day:"Thu",completed:18,pending:2},{day:"Fri",completed:22,pending:4},{day:"Sat",completed:5,pending:1},{day:"Sun",completed:3,pending:0}],l=(c,d)=>{t(d)},u=()=>{t(-1)},s=({active:c,payload:d,label:p})=>c&&d&&d.length?_.jsx("div",{className:"bg-white p-3 border border-gray-200 rounded-lg shadow-lg",children:_.jsx("p",{className:"font-medium",children:`${p}: ${d[0].value} tasks`})}):null,f=({active:c,payload:d})=>c&&d&&d.length?_.jsx("div",{className:"bg-white p-3 border border-gray-200 rounded-lg shadow-lg",children:_.jsx("p",{className:"font-medium",children:`${d[0].name}: ${d[0].value}%`})}):null;return _.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[_.jsxs("div",{className:`bg-white rounded-xl border border-gray-200 p-6 transition-all duration-300 hover:shadow-lg hover:border-gray-300 cursor-pointer ${r==="pie"?"ring-2 ring-teal-500":""}`,onClick:()=>n(r==="pie"?null:"pie"),children:[_.jsxs("h3",{className:"text-lg font-semibold text-gray-900 mb-4 flex items-center",children:[_.jsx("span",{className:"w-3 h-3 bg-gradient-to-r from-green-400 to-emerald-500 rounded-full mr-3"}),"Total Tasks by Assignee"]}),_.jsx("div",{className:"h-40",children:_.jsx(Au,{width:"100%",height:"100%",children:_.jsxs(JG,{children:[_.jsx(qr,{data:i,cx:"50%",cy:"50%",innerRadius:35,outerRadius:70,paddingAngle:2,dataKey:"value",onMouseEnter:l,onMouseLeave:u,children:i.map(c=>_.jsx(Hn,{fill:c.color,stroke:e===i.indexOf(c)?"#374151":"none",strokeWidth:e===i.indexOf(c)?2:0,style:{filter:e===i.indexOf(c)?"brightness(1.1)":"none",transform:e===i.indexOf(c)?"scale(1.05)":"scale(1)",transformOrigin:"center",transition:"all 0.2s ease-in-out"}},c.name))}),_.jsx(Et,{content:_.jsx(f,{})})]})})}),_.jsx("div",{className:"flex justify-center space-x-4 mt-3",children:i.map(c=>_.jsxs("div",{className:"flex items-center text-sm",children:[_.jsx("div",{className:"w-3 h-3 rounded-full mr-2",style:{backgroundColor:c.color}}),_.jsxs("span",{className:"text-gray-600",children:[c.name," (",c.value,"%)"]})]},c.name))})]}),_.jsxs("div",{className:`bg-white rounded-xl border border-gray-200 p-6 transition-all duration-300 hover:shadow-lg hover:border-gray-300 cursor-pointer ${r==="bar"?"ring-2 ring-teal-500":""}`,onClick:()=>n(r==="bar"?null:"bar"),children:[_.jsxs("h3",{className:"text-lg font-semibold text-gray-900 mb-4 flex items-center",children:[_.jsx("span",{className:"w-3 h-3 bg-gradient-to-r from-blue-400 to-indigo-500 rounded-full mr-3"}),"Open Tasks by Assignee"]}),_.jsx("div",{className:"text-sm text-gray-500 mb-3",children:"Active Tasks"}),_.jsx("div",{className:"h-40",children:_.jsx(Au,{width:"100%",height:"100%",children:_.jsxs(YP,{data:a,margin:{top:10,right:10,left:10,bottom:10},children:[_.jsx(ni,{dataKey:"name",axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#6B7280"}}),_.jsx(ii,{domain:[0,10],axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#6B7280"}}),_.jsx(Et,{content:_.jsx(s,{})}),_.jsx(br,{dataKey:"value",fill:"#3B82F6",radius:[4,4,0,0],style:{filter:"drop-shadow(0 2px 4px rgba(0,0,0,0.1))"}})]})})}),_.jsx("div",{className:"flex justify-between items-center mt-3",children:a.slice(0,3).map(c=>_.jsxs("div",{className:"text-center",children:[_.jsx("div",{className:"text-lg mb-1",children:c.avatar}),_.jsx("div",{className:"text-xs text-gray-600",children:c.name}),_.jsx("div",{className:"text-sm font-semibold text-gray-800",children:c.value})]},c.name))})]}),_.jsxs("div",{className:`bg-white rounded-xl border border-gray-200 p-6 transition-all duration-300 hover:shadow-lg hover:border-gray-300 cursor-pointer ${r==="line"?"ring-2 ring-teal-500":""}`,onClick:()=>n(r==="line"?null:"line"),children:[_.jsxs("h3",{className:"text-lg font-semibold text-gray-900 mb-4 flex items-center",children:[_.jsx("span",{className:"w-3 h-3 bg-gradient-to-r from-purple-400 to-pink-500 rounded-full mr-3"}),"Weekly Task Completion"]}),_.jsx("div",{className:"text-sm text-gray-500 mb-3",children:"Last 7 days"}),_.jsx("div",{className:"h-40",children:_.jsx(Au,{width:"100%",height:"100%",children:_.jsxs(ZG,{data:o,margin:{top:10,right:10,left:10,bottom:10},children:[_.jsx(ni,{dataKey:"day",axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#6B7280"}}),_.jsx(ii,{axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#6B7280"}}),_.jsx(Et,{content:_.jsx(s,{})}),_.jsx(ga,{type:"monotone",dataKey:"completed",stroke:"#10B981",strokeWidth:3,dot:{fill:"#10B981",strokeWidth:2,r:4},activeDot:{r:6,stroke:"#10B981",strokeWidth:2}}),_.jsx(ga,{type:"monotone",dataKey:"pending",stroke:"#F59E0B",strokeWidth:2,strokeDasharray:"5 5",dot:{fill:"#F59E0B",strokeWidth:2,r:3}})]})})}),_.jsxs("div",{className:"flex justify-center space-x-6 mt-3",children:[_.jsxs("div",{className:"flex items-center text-sm",children:[_.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full mr-2"}),_.jsx("span",{className:"text-gray-600",children:"Completed"})]}),_.jsxs("div",{className:"flex items-center text-sm",children:[_.jsx("div",{className:"w-3 h-3 bg-yellow-500 rounded-full mr-2"}),_.jsx("span",{className:"text-gray-600",children:"Pending"})]})]})]})]})};function rX(){return _.jsxs("div",{className:"min-h-screen bg-gray-50",children:[_.jsx(HE,{}),_.jsxs("div",{className:"flex",children:[_.jsx(VE,{}),_.jsxs("div",{className:"flex-1",children:[_.jsx(KE,{}),_.jsx(qE,{}),_.jsxs("main",{className:"p-6 space-y-6",children:[_.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[_.jsx("div",{className:"h-full flex flex-col",children:_.jsx(GE,{})}),_.jsxs("div",{className:"space-y-6",children:[_.jsx(XE,{}),_.jsx(eX,{})]})]}),_.jsx(tX,{})]})]})]})]})}Jw(document.getElementById("root")).render(_.jsx(L.StrictMode,{children:_.jsx(rX,{})})); diff --git a/dist/assets/index-JZWsK2B6.js b/dist/assets/index-JZWsK2B6.js deleted file mode 100644 index 48f013a..0000000 --- a/dist/assets/index-JZWsK2B6.js +++ /dev/null @@ -1,251 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(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"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(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 n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var El=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pb={exports:{}},Fs={},Ab={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 dl=Symbol.for("react.element"),$P=Symbol.for("react.portal"),TP=Symbol.for("react.fragment"),jP=Symbol.for("react.strict_mode"),kP=Symbol.for("react.profiler"),CP=Symbol.for("react.provider"),MP=Symbol.for("react.context"),NP=Symbol.for("react.forward_ref"),IP=Symbol.for("react.suspense"),DP=Symbol.for("react.memo"),RP=Symbol.for("react.lazy"),wy=Symbol.iterator;function LP(e){return e===null||typeof e!="object"?null:(e=wy&&e[wy]||e["@@iterator"],typeof e=="function"?e:null)}var Eb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$b=Object.assign,Tb={};function va(e,t,r){this.props=e,this.context=t,this.refs=Tb,this.updater=r||Eb}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 jb(){}jb.prototype=va.prototype;function Sh(e,t,r){this.props=e,this.context=t,this.refs=Tb,this.updater=r||Eb}var Oh=Sh.prototype=new jb;Oh.constructor=Sh;$b(Oh,va.prototype);Oh.isPureReactComponent=!0;var Sy=Array.isArray,kb=Object.prototype.hasOwnProperty,_h={current:null},Cb={key:!0,ref:!0,__self:!0,__source:!0};function Mb(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)kb.call(t,n)&&!Cb.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1>>1,W=j[V];if(0>>1;Vi(_e,F))Mei(Mt,_e)?(j[V]=Mt,j[Me]=F,V=Me):(j[V]=_e,j[ie]=F,V=ie);else if(Mei(Mt,F))j[V]=Mt,j[Me]=F,V=Me;else break e}}return I}function i(j,I){var F=j.sortIndex-I.sortIndex;return F!==0?F:j.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var u=[],s=[],f=1,c=null,d=3,p=!1,y=!1,h=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=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(j){for(var I=r(s);I!==null;){if(I.callback===null)n(s);else if(I.startTime<=j)n(s),I.sortIndex=I.expirationTime,t(u,I);else break;I=r(s)}}function S(j){if(h=!1,g(j),!y)if(r(u)!==null)y=!0,R(b);else{var I=r(s);I!==null&&L(S,I.startTime-j)}}function b(j,I){y=!1,h&&(h=!1,m(_),_=-1),p=!0;var F=d;try{for(g(I),c=r(u);c!==null&&(!(c.expirationTime>I)||j&&!$());){var V=c.callback;if(typeof V=="function"){c.callback=null,d=c.priorityLevel;var W=V(c.expirationTime<=I);I=e.unstable_now(),typeof W=="function"?c.callback=W:c===r(u)&&n(u),g(I)}else n(u);c=r(u)}if(c!==null)var X=!0;else{var ie=r(s);ie!==null&&L(S,ie.startTime-I),X=!1}return X}finally{c=null,d=F,p=!1}}var w=!1,O=null,_=-1,P=5,T=-1;function $(){return!(e.unstable_now()-Tj||125V?(j.sortIndex=F,t(s,j),r(u)===null&&j===r(s)&&(h?(m(_),_=-1):h=!0,L(S,F-V))):(j.sortIndex=W,t(u,j),y||p||(y=!0,R(b))),j},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(j){var I=d;return function(){var F=d;d=I;try{return j.apply(this,arguments)}finally{d=F}}}})(Lb);Rb.exports=Lb;var XP=Rb.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 YP=B,jt=XP;function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),td=Object.prototype.hasOwnProperty,QP=/^[: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]*$/,_y={},Py={};function ZP(e){return td.call(Py,e)?!0:td.call(_y,e)?!1:QP.test(e)?Py[e]=!0:(_y[e]=!0,!1)}function JP(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function eA(e,t,r,n){if(t===null||typeof t>"u"||JP(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,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 Ah=/[\-:]([a-z])/g;function Eh(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(Ah,Eh);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(Ah,Eh);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(Ah,Eh);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 $h(e,t,r,n){var i=et.hasOwnProperty(t)?et[t]:null;(i!==null?i.type!==0:n||!(2l||i[o]!==a[l]){var u=` -`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=l);break}}}finally{tf=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?qa(e):""}function tA(e){switch(e.tag){case 5:return qa(e.type);case 16:return qa("Lazy");case 13:return qa("Suspense");case 19:return qa("SuspenseList");case 0:case 2:case 15:return e=rf(e.type,!1),e;case 11:return e=rf(e.type.render,!1),e;case 1:return e=rf(e.type,!0),e;default:return""}}function ad(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 di:return"Fragment";case fi:return"Portal";case rd:return"Profiler";case Th:return"StrictMode";case nd:return"Suspense";case id:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Fb:return(e.displayName||"Context")+".Consumer";case zb:return(e._context.displayName||"Context")+".Provider";case jh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kh:return t=e.displayName||null,t!==null?t:ad(e.type)||"Memo";case Kr:t=e._payload,e=e._init;try{return ad(e(t))}catch{}}return null}function rA(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 ad(t);case 8:return t===Th?"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 dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function nA(e){var t=Wb(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jl(e){e._valueTracker||(e._valueTracker=nA(e))}function Hb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Wb(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function gu(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 od(e,t){var r=t.checked;return Te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ey(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=dn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Vb(e,t){t=t.checked,t!=null&&$h(e,"checked",t,!1)}function ld(e,t){Vb(e,t);var r=dn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ud(e,t.type,r):t.hasOwnProperty("defaultValue")&&ud(e,t.type,dn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $y(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function ud(e,t,r){(t!=="number"||gu(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ga=Array.isArray;function $i(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=kl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function vo(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Za={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},iA=["Webkit","ms","Moz","O"];Object.keys(Za).forEach(function(e){iA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Za[t]=Za[e]})});function Xb(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Za.hasOwnProperty(e)&&Za[e]?(""+t).trim():t+"px"}function Yb(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Xb(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var aA=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 fd(e,t){if(t){if(aA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function dd(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 pd=null;function Ch(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hd=null,Ti=null,ji=null;function ky(e){if(e=vl(e)){if(typeof hd!="function")throw Error(U(280));var t=e.stateNode;t&&(t=Ks(t),hd(e.stateNode,e.type,t))}}function Qb(e){Ti?ji?ji.push(e):ji=[e]:Ti=e}function Zb(){if(Ti){var e=Ti,t=ji;if(ji=Ti=null,ky(e),t)for(e=0;e>>=0,e===0?32:31-(yA(e)/mA|0)|0}var Cl=64,Ml=4194304;function Xa(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 Su(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var l=o&~i;l!==0?n=Xa(l):(a&=o,a!==0&&(n=Xa(a)))}else o=r&~i,o!==0?n=Xa(o):a!==0&&(n=Xa(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function pl(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rr(t),e[t]=r}function wA(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=eo),zy=" ",Fy=!1;function gx(e,t){switch(e){case"keyup":return XA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pi=!1;function QA(e,t){switch(e){case"compositionend":return bx(t);case"keypress":return t.which!==32?null:(Fy=!0,zy);case"textInput":return e=t.data,e===zy&&Fy?null:e;default:return null}}function ZA(e,t){if(pi)return e==="compositionend"||!zh&&gx(e,t)?(e=yx(),uu=Rh=Zr=null,pi=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Vy(r)}}function Ox(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ox(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _x(){for(var e=window,t=gu();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=gu(e.document)}return t}function Fh(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 l2(e){var t=_x(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Ox(r.ownerDocument.documentElement,r)){if(n!==null&&Fh(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=Ky(r,a);var o=Ky(r,n);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>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,hi=null,xd=null,ro=null,wd=!1;function qy(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;wd||hi==null||hi!==gu(n)||(n=hi,"selectionStart"in n&&Fh(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ro&&wo(ro,n)||(ro=n,n=Pu(xd,"onSelect"),0mi||(e.current=Ed[mi],Ed[mi]=null,mi--)}function me(e,t){mi++,Ed[mi]=e.current,e.current=t}var pn={},ot=vn(pn),bt=vn(!1),Hn=pn;function Bi(e,t){var r=e.type.contextTypes;if(!r)return pn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function xt(e){return e=e.childContextTypes,e!=null}function Eu(){Oe(bt),Oe(ot)}function em(e,t,r){if(ot.current!==pn)throw Error(U(168));me(ot,t),me(bt,r)}function Mx(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(U(108,rA(e)||"Unknown",i));return Te({},r,n)}function $u(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,Hn=ot.current,me(ot,e),me(bt,bt.current),!0}function tm(e,t,r){var n=e.stateNode;if(!n)throw Error(U(169));r?(e=Mx(e,t,Hn),n.__reactInternalMemoizedMergedChildContext=e,Oe(bt),Oe(ot),me(ot,e)):Oe(bt),me(bt,r)}var xr=null,qs=!1,mf=!1;function Nx(e){xr===null?xr=[e]:xr.push(e)}function b2(e){qs=!0,Nx(e)}function yn(){if(!mf&&xr!==null){mf=!0;var e=0,t=ce;try{var r=xr;for(ce=1;e>=o,i-=o,wr=1<<32-rr(t)+i|r<_?(P=O,O=null):P=O.sibling;var T=d(m,O,g[_],S);if(T===null){O===null&&(O=P);break}e&&O&&T.alternate===null&&t(m,O),v=a(T,v,_),w===null?b=T:w.sibling=T,w=T,O=P}if(_===g.length)return r(m,O),Pe&&En(m,_),b;if(O===null){for(;__?(P=O,O=null):P=O.sibling;var $=d(m,O,T.value,S);if($===null){O===null&&(O=P);break}e&&O&&$.alternate===null&&t(m,O),v=a($,v,_),w===null?b=$:w.sibling=$,w=$,O=P}if(T.done)return r(m,O),Pe&&En(m,_),b;if(O===null){for(;!T.done;_++,T=g.next())T=c(m,T.value,S),T!==null&&(v=a(T,v,_),w===null?b=T:w.sibling=T,w=T);return Pe&&En(m,_),b}for(O=n(m,O);!T.done;_++,T=g.next())T=p(O,m,_,T.value,S),T!==null&&(e&&T.alternate!==null&&O.delete(T.key===null?_:T.key),v=a(T,v,_),w===null?b=T:w.sibling=T,w=T);return e&&O.forEach(function(k){return t(m,k)}),Pe&&En(m,_),b}function x(m,v,g,S){if(typeof g=="object"&&g!==null&&g.type===di&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Tl:e:{for(var b=g.key,w=v;w!==null;){if(w.key===b){if(b=g.type,b===di){if(w.tag===7){r(m,w.sibling),v=i(w,g.props.children),v.return=m,m=v;break e}}else if(w.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Kr&&im(b)===w.type){r(m,w.sibling),v=i(w,g.props),v.ref=Na(m,w,g),v.return=m,m=v;break e}r(m,w);break}else t(m,w);w=w.sibling}g.type===di?(v=Fn(g.props.children,m.mode,S,g.key),v.return=m,m=v):(S=yu(g.type,g.key,g.props,null,m.mode,S),S.ref=Na(m,v,g),S.return=m,m=S)}return o(m);case fi:e:{for(w=g.key;v!==null;){if(v.key===w)if(v.tag===4&&v.stateNode.containerInfo===g.containerInfo&&v.stateNode.implementation===g.implementation){r(m,v.sibling),v=i(v,g.children||[]),v.return=m,m=v;break e}else{r(m,v);break}else t(m,v);v=v.sibling}v=Pf(g,m.mode,S),v.return=m,m=v}return o(m);case Kr:return w=g._init,x(m,v,w(g._payload),S)}if(Ga(g))return y(m,v,g,S);if(Ta(g))return h(m,v,g,S);zl(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,v!==null&&v.tag===6?(r(m,v.sibling),v=i(v,g),v.return=m,m=v):(r(m,v),v=_f(g,m.mode,S),v.return=m,m=v),o(m)):r(m,v)}return x}var Fi=Lx(!0),Bx=Lx(!1),ku=vn(null),Cu=null,xi=null,Vh=null;function Kh(){Vh=xi=Cu=null}function qh(e){var t=ku.current;Oe(ku),e._currentValue=t}function jd(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Ci(e,t){Cu=e,Vh=xi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(mt=!0),e.firstContext=null)}function Ht(e){var t=e._currentValue;if(Vh!==e)if(e={context:e,memoizedValue:t,next:null},xi===null){if(Cu===null)throw Error(U(308));xi=e,Cu.dependencies={lanes:0,firstContext:e}}else xi=xi.next=e;return t}var Nn=null;function Gh(e){Nn===null?Nn=[e]:Nn.push(e)}function zx(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Gh(t)):(r.next=i.next,i.next=r),t.interleaved=r,Cr(e,n)}function Cr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var qr=!1;function Xh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fx(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Pr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function on(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,oe&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Cr(e,r)}return i=n.interleaved,i===null?(t.next=t,Gh(n)):(t.next=i.next,i.next=t),n.interleaved=t,Cr(e,r)}function cu(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Nh(e,r)}}function am(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Mu(e,t,r,n){var i=e.updateQueue;qr=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,s=u.next;u.next=null,o===null?a=s:o.next=s,o=u;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==o&&(l===null?f.firstBaseUpdate=s:l.next=s,f.lastBaseUpdate=u))}if(a!==null){var c=i.baseState;o=0,f=s=u=null,l=a;do{var d=l.lane,p=l.eventTime;if((n&d)===d){f!==null&&(f=f.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,h=l;switch(d=t,p=r,h.tag){case 1:if(y=h.payload,typeof y=="function"){c=y.call(p,c,d);break e}c=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=h.payload,d=typeof y=="function"?y.call(p,c,d):y,d==null)break e;c=Te({},c,d);break e;case 2:qr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(s=f=p,u=c):f=f.next=p,o|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(u=c),i.baseState=u,i.firstBaseUpdate=s,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);qn|=o,e.lanes=o,e.memoizedState=c}}function om(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=bf.transition;bf.transition={};try{e(!1),t()}finally{ce=r,bf.transition=n}}function iw(){return Vt().memoizedState}function O2(e,t,r){var n=un(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},aw(e))ow(t,r);else if(r=zx(e,t,r,n),r!==null){var i=ft();nr(r,e,n,i),lw(r,t,n)}}function _2(e,t,r){var n=un(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(aw(e))ow(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,l=a(o,r);if(i.hasEagerState=!0,i.eagerState=l,ir(l,o)){var u=t.interleaved;u===null?(i.next=i,Gh(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}r=zx(e,t,i,n),r!==null&&(i=ft(),nr(r,e,n,i),lw(r,t,n))}}function aw(e){var t=e.alternate;return e===$e||t!==null&&t===$e}function ow(e,t){no=Iu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function lw(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Nh(e,r)}}var Du={readContext:Ht,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},P2={readContext:Ht,useCallback:function(e,t){return lr().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:um,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,du(4194308,4,Jx.bind(null,t,e),r)},useLayoutEffect:function(e,t){return du(4194308,4,e,t)},useInsertionEffect:function(e,t){return du(4,2,e,t)},useMemo:function(e,t){var r=lr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=lr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=O2.bind(null,$e,e),[n.memoizedState,e]},useRef:function(e){var t=lr();return e={current:e},t.memoizedState=e},useState:lm,useDebugValue:nv,useDeferredValue:function(e){return lr().memoizedState=e},useTransition:function(){var e=lm(!1),t=e[0];return e=S2.bind(null,e[1]),lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=$e,i=lr();if(Pe){if(r===void 0)throw Error(U(407));r=r()}else{if(r=t(),Xe===null)throw Error(U(349));Kn&30||Vx(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,um(qx.bind(null,n,a,e),[e]),n.flags|=2048,To(9,Kx.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=lr(),t=Xe.identifierPrefix;if(Pe){var r=Sr,n=wr;r=(n&~(1<<32-rr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Eo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[ur]=t,e[_o]=n,mw(e,t,!1,!1),t.stateNode=e;e:{switch(o=dd(r,n),r){case"dialog":xe("cancel",e),xe("close",e),i=n;break;case"iframe":case"object":case"embed":xe("load",e),i=n;break;case"video":case"audio":for(i=0;iHi&&(t.flags|=128,n=!0,Ia(a,!1),t.lanes=4194304)}else{if(!n)if(e=Nu(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ia(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Pe)return rt(t),null}else 2*Ne()-a.renderingStartTime>Hi&&r!==1073741824&&(t.flags|=128,n=!0,Ia(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ne(),t.sibling=null,r=Ee.current,me(Ee,n?r&1|2:r&1),t):(rt(t),null);case 22:case 23:return sv(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?_t&1073741824&&(rt(t),t.subtreeFlags&6&&(t.flags|=8192)):rt(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function M2(e,t){switch(Wh(t),t.tag){case 1:return xt(t.type)&&Eu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(),Oe(bt),Oe(ot),Zh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qh(t),null;case 13:if(Oe(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Oe(Ee),null;case 4:return Ui(),null;case 10:return qh(t.type._context),null;case 22:case 23:return sv(),null;case 24:return null;default:return null}}var Ul=!1,it=!1,N2=typeof WeakSet=="function"?WeakSet:Set,q=null;function wi(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){ke(e,t,n)}else r.current=null}function Bd(e,t,r){try{r()}catch(n){ke(e,t,n)}}var bm=!1;function I2(e,t){if(Sd=Ou,e=_x(),Fh(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,l=-1,u=-1,s=0,f=0,c=e,d=null;t:for(;;){for(var p;c!==r||i!==0&&c.nodeType!==3||(l=o+i),c!==a||n!==0&&c.nodeType!==3||(u=o+n),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break t;if(d===r&&++s===i&&(l=o),d===a&&++f===n&&(u=o),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}r=l===-1||u===-1?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Od={focusedElem:e,selectionRange:r},Ou=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var h=y.memoizedProps,x=y.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?h:Qt(t.type,h),x);m.__reactInternalSnapshotBeforeUpdate=v}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(U(163))}}catch(S){ke(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return y=bm,bm=!1,y}function io(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Bd(t,r,a)}i=i.next}while(i!==n)}}function Ys(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function zd(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function xw(e){var t=e.alternate;t!==null&&(e.alternate=null,xw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ur],delete t[_o],delete t[Ad],delete t[m2],delete t[g2])),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 ww(e){return e.tag===5||e.tag===3||e.tag===4}function xm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ww(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 Fd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Au));else if(n!==4&&(e=e.child,e!==null))for(Fd(e,t,r),e=e.sibling;e!==null;)Fd(e,t,r),e=e.sibling}function Ud(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Ud(e,t,r),e=e.sibling;e!==null;)Ud(e,t,r),e=e.sibling}var Ze=null,Zt=!1;function Vr(e,t,r){for(r=r.child;r!==null;)Sw(e,t,r),r=r.sibling}function Sw(e,t,r){if(cr&&typeof cr.onCommitFiberUnmount=="function")try{cr.onCommitFiberUnmount(Us,r)}catch{}switch(r.tag){case 5:it||wi(r,t);case 6:var n=Ze,i=Zt;Ze=null,Vr(e,t,r),Ze=n,Zt=i,Ze!==null&&(Zt?(e=Ze,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ze.removeChild(r.stateNode));break;case 18:Ze!==null&&(Zt?(e=Ze,r=r.stateNode,e.nodeType===8?yf(e.parentNode,r):e.nodeType===1&&yf(e,r),bo(e)):yf(Ze,r.stateNode));break;case 4:n=Ze,i=Zt,Ze=r.stateNode.containerInfo,Zt=!0,Vr(e,t,r),Ze=n,Zt=i;break;case 0:case 11:case 14:case 15:if(!it&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Bd(r,t,o),i=i.next}while(i!==n)}Vr(e,t,r);break;case 1:if(!it&&(wi(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){ke(r,t,l)}Vr(e,t,r);break;case 21:Vr(e,t,r);break;case 22:r.mode&1?(it=(n=it)||r.memoizedState!==null,Vr(e,t,r),it=n):Vr(e,t,r);break;default:Vr(e,t,r)}}function wm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new N2),t.forEach(function(n){var i=H2.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Xt(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=Ne()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*R2(n/1960))-n,10e?16:e,Jr===null)var n=!1;else{if(e=Jr,Jr=null,Bu=0,oe&6)throw Error(U(331));var i=oe;for(oe|=4,q=e.current;q!==null;){var a=q,o=a.child;if(q.flags&16){var l=a.deletions;if(l!==null){for(var u=0;uNe()-lv?zn(e,0):ov|=r),wt(e,t)}function jw(e,t){t===0&&(e.mode&1?(t=Ml,Ml<<=1,!(Ml&130023424)&&(Ml=4194304)):t=1);var r=ft();e=Cr(e,t),e!==null&&(pl(e,t,r),wt(e,r))}function W2(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),jw(e,r)}function H2(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(U(314))}n!==null&&n.delete(t),jw(e,r)}var kw;kw=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||bt.current)mt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return mt=!1,k2(e,t,r);mt=!!(e.flags&131072)}else mt=!1,Pe&&t.flags&1048576&&Ix(t,ju,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;pu(e,t),e=t.pendingProps;var i=Bi(t,ot.current);Ci(t,r),i=ev(null,t,n,e,i,r);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(n)?(a=!0,$u(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Xh(t),i.updater=Xs,t.stateNode=i,i._reactInternals=t,Cd(t,n,e,r),t=Id(null,t,n,!0,a,r)):(t.tag=0,Pe&&a&&Uh(t),lt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(pu(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=K2(n),e=Qt(n,e),i){case 0:t=Nd(null,t,n,e,r);break e;case 1:t=ym(null,t,n,e,r);break e;case 11:t=hm(null,t,n,e,r);break e;case 14:t=vm(null,t,n,Qt(n.type,e),r);break e}throw Error(U(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Qt(n,i),Nd(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Qt(n,i),ym(e,t,n,i,r);case 3:e:{if(hw(t),e===null)throw Error(U(387));n=t.pendingProps,a=t.memoizedState,i=a.element,Fx(e,t),Mu(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Wi(Error(U(423)),t),t=mm(e,t,n,r,i);break e}else if(n!==i){i=Wi(Error(U(424)),t),t=mm(e,t,n,r,i);break e}else for(Et=an(t.stateNode.containerInfo.firstChild),$t=t,Pe=!0,er=null,r=Bx(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(zi(),n===i){t=Mr(e,t,r);break e}lt(e,t,n,r)}t=t.child}return t;case 5:return Ux(t),e===null&&Td(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,_d(n,i)?o=null:a!==null&&_d(n,a)&&(t.flags|=32),pw(e,t),lt(e,t,o,r),t.child;case 6:return e===null&&Td(t),null;case 13:return vw(e,t,r);case 4:return Yh(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Fi(t,null,n,r):lt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Qt(n,i),hm(e,t,n,i,r);case 7:return lt(e,t,t.pendingProps,r),t.child;case 8:return lt(e,t,t.pendingProps.children,r),t.child;case 12:return lt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,me(ku,n._currentValue),n._currentValue=o,a!==null)if(ir(a.value,o)){if(a.children===i.children&&!bt.current){t=Mr(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){o=a.child;for(var u=l.firstContext;u!==null;){if(u.context===n){if(a.tag===1){u=Pr(-1,r&-r),u.tag=2;var s=a.updateQueue;if(s!==null){s=s.shared;var f=s.pending;f===null?u.next=u:(u.next=f.next,f.next=u),s.pending=u}}a.lanes|=r,u=a.alternate,u!==null&&(u.lanes|=r),jd(a.return,r,t),l.lanes|=r;break}u=u.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(U(341));o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),jd(o,r,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}lt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Ci(t,r),i=Ht(i),n=n(i),t.flags|=1,lt(e,t,n,r),t.child;case 14:return n=t.type,i=Qt(n,t.pendingProps),i=Qt(n.type,i),vm(e,t,n,i,r);case 15:return fw(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Qt(n,i),pu(e,t),t.tag=1,xt(n)?(e=!0,$u(t)):e=!1,Ci(t,r),uw(t,n,i),Cd(t,n,i,r),Id(null,t,n,!0,e,r);case 19:return yw(e,t,r);case 22:return dw(e,t,r)}throw Error(U(156,t.tag))};function Cw(e,t){return ax(e,t)}function V2(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zt(e,t,r,n){return new V2(e,t,r,n)}function fv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function K2(e){if(typeof e=="function")return fv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===jh)return 11;if(e===kh)return 14}return 2}function sn(e,t){var r=e.alternate;return r===null?(r=zt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function yu(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")fv(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case di:return Fn(r.children,i,a,t);case Th:o=8,i|=8;break;case rd:return e=zt(12,r,t,i|2),e.elementType=rd,e.lanes=a,e;case nd:return e=zt(13,r,t,i),e.elementType=nd,e.lanes=a,e;case id:return e=zt(19,r,t,i),e.elementType=id,e.lanes=a,e;case Ub:return Zs(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zb:o=10;break e;case Fb:o=9;break e;case jh:o=11;break e;case kh:o=14;break e;case Kr:o=16,n=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=zt(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Fn(e,t,r,n){return e=zt(7,e,n,t),e.lanes=r,e}function Zs(e,t,r,n){return e=zt(22,e,n,t),e.elementType=Ub,e.lanes=r,e.stateNode={isHidden:!1},e}function _f(e,t,r){return e=zt(6,e,null,t),e.lanes=r,e}function Pf(e,t,r){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function q2(e,t,r,n,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=af(0),this.expirationTimes=af(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=af(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function dv(e,t,r,n,i,a,o,l,u){return e=new q2(e,t,r,l,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=zt(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xh(a),e}function G2(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dw)}catch(e){console.error(e)}}Dw(),Db.exports=kt;var J2=Db.exports,Rw,Tm=J2;Rw=Tm.createRoot,Tm.hydrateRoot;/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var eE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const tE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),be=(e,t)=>{const r=B.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:l="",children:u,...s},f)=>B.createElement("svg",{ref:f,...eE,width:i,height:i,stroke:n,strokeWidth:o?Number(a)*24/Number(i):a,className:["lucide",`lucide-${tE(e)}`,l].join(" "),...s},[...t.map(([c,d])=>B.createElement(c,d)),...Array.isArray(u)?u:[u]]));return r.displayName=`${e}`,r};/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const rE=be("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const nE=be("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Af=be("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const qd=be("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const iE=be("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const aE=be("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Lw=be("Expand",[["path",{d:"m21 21-6-6m6 6v-4.8m0 4.8h-4.8",key:"1c15vz"}],["path",{d:"M3 16.2V21m0 0h4.8M3 21l6-6",key:"1fsnz2"}],["path",{d:"M21 7.8V3m0 0h-4.8M21 3l-6 6",key:"hawz9i"}],["path",{d:"M3 7.8V3m0 0h4.8M3 3l6 6",key:"u9ee12"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const oE=be("FileSpreadsheet",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const lE=be("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const uE=be("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Bw=be("HelpCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const sE=be("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const cE=be("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const fE=be("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const zw=be("MoreHorizontal",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Uu=be("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Fw=be("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Uw=be("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const dE=be("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const pE=be("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Ww=be("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const hE=be("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const vE=be("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const yE=be("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const mE=be("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const gE=be("Video",[["path",{d:"m22 8-6 4 6 4V8Z",key:"50v9me"}],["rect",{width:"14",height:"12",x:"2",y:"6",rx:"2",ry:"2",key:"1rqjg6"}]]),bE=()=>E.jsx("header",{className:"bg-teal-700 text-white",children:E.jsxs("div",{className:"flex items-center justify-between px-4 py-2",children:[E.jsx("div",{className:"flex items-center space-x-2",children:E.jsx("div",{className:"w-8 h-8 bg-white rounded-sm flex items-center justify-center",children:E.jsx("div",{className:"w-5 h-5 bg-teal-700 rounded-sm"})})}),E.jsxs("div",{className:"flex items-center bg-teal-600 rounded-md px-3 py-1.5 w-80",children:[E.jsx(Uw,{className:"w-4 h-4 text-teal-300 mr-2"}),E.jsx("input",{type:"text",placeholder:"Search...",className:"bg-transparent text-white placeholder-teal-300 outline-none w-full"})]}),E.jsxs("div",{className:"flex items-center space-x-3",children:[E.jsxs("button",{className:"flex items-center space-x-1 bg-teal-600 hover:bg-teal-500 px-3 py-1.5 rounded-md transition-colors",children:[E.jsx(Ww,{className:"w-4 h-4"}),E.jsx("span",{className:"text-sm",children:"AI"})]}),E.jsx("button",{className:"bg-purple-600 hover:bg-purple-700 px-4 py-1.5 rounded-md text-sm font-medium transition-colors",children:"Upgrade"}),E.jsxs("button",{className:"flex items-center space-x-1 bg-white text-teal-700 hover:bg-gray-100 px-3 py-1.5 rounded-md transition-colors",children:[E.jsx(Uu,{className:"w-4 h-4"}),E.jsx("span",{className:"text-sm font-medium",children:"New"})]}),E.jsxs("div",{className:"flex items-center space-x-2",children:[E.jsx(nE,{className:"w-5 h-5 text-teal-300 hover:text-white cursor-pointer"}),E.jsx(dE,{className:"w-5 h-5 text-teal-300 hover:text-white cursor-pointer"}),E.jsx(Bw,{className:"w-5 h-5 text-teal-300 hover:text-white cursor-pointer"}),E.jsx("div",{className:"w-8 h-8 bg-blue-500 rounded-full flex items-center justify-center font-semibold",children:"S"})]})]})]})}),xE=()=>E.jsx("div",{className:"bg-white border-b border-gray-200 px-6 py-3",children:E.jsxs("div",{className:"flex items-center justify-between",children:[E.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600",children:[E.jsx("span",{children:"Dashboards"}),E.jsx(qd,{className:"w-4 h-4"}),E.jsx("span",{className:"text-gray-900 font-medium",children:"Dashboard"})]}),E.jsxs("div",{className:"flex items-center space-x-3",children:[E.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:E.jsx(pE,{className:"w-4 h-4"})}),E.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:E.jsx(hE,{className:"w-4 h-4"})}),E.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:E.jsx(aE,{className:"w-4 h-4"})}),E.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:E.jsx(Lw,{className:"w-4 h-4"})}),E.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:E.jsx(zw,{className:"w-4 h-4"})})]})]})}),wE=()=>{const[e,t]=B.useState(!1),[r,n]=B.useState(!0),i=[{icon:sE,label:"Home",active:!1},{icon:cE,label:"Inbox",active:!1},{icon:mE,label:"Teams",active:!1},{icon:lE,label:"Docs",active:!1},{icon:rE,label:"Dashboards",active:!0},{icon:fE,label:"Whiteboards",active:!1},{icon:oE,label:"Forms",active:!1},{icon:gE,label:"Clips",active:!1},{icon:vE,label:"Goals",active:!1},{icon:iE,label:"Timesheets",active:!1},{icon:zw,label:"More",active:!1}];return E.jsxs("div",{className:"w-64 bg-gray-50 h-screen border-r border-gray-200 flex flex-col",children:[E.jsx("div",{className:"p-4 border-b border-gray-200",children:E.jsxs("div",{className:"flex items-center space-x-3",children:[E.jsx("div",{className:"w-8 h-8 bg-teal-600 rounded-full flex items-center justify-center text-white font-semibold text-sm",children:"S"}),E.jsx("div",{className:"flex-1",children:E.jsxs("div",{className:"flex items-center space-x-1",children:[E.jsx("span",{className:"text-sm font-medium text-gray-900",children:"Swatantra mi..."}),E.jsx(Af,{className:"w-4 h-4 text-gray-500"})]})})]})}),E.jsxs("nav",{className:"flex-1 p-4 space-y-1",children:[i.map((a,o)=>E.jsxs("a",{href:"#",className:`flex items-center space-x-3 px-3 py-2 rounded-md text-sm transition-colors ${a.active?"bg-teal-100 text-teal-700 font-medium":"text-gray-700 hover:bg-gray-100"}`,children:[E.jsx(a.icon,{className:"w-4 h-4"}),E.jsx("span",{children:a.label})]},o)),E.jsx("div",{className:"pt-4",children:E.jsxs("button",{onClick:()=>t(!e),className:"flex items-center space-x-2 w-full px-3 py-2 text-sm text-gray-600 hover:text-gray-900 transition-colors",children:[e?E.jsx(Af,{className:"w-4 h-4"}):E.jsx(qd,{className:"w-4 h-4"}),E.jsx("span",{className:"font-medium",children:"Favorites"})]})}),E.jsxs("div",{className:"pt-2",children:[E.jsxs("button",{onClick:()=>n(!r),className:"flex items-center space-x-2 w-full px-3 py-2 text-sm text-gray-600 hover:text-gray-900 transition-colors",children:[r?E.jsx(Af,{className:"w-4 h-4"}):E.jsx(qd,{className:"w-4 h-4"}),E.jsx("span",{className:"font-medium",children:"Spaces"}),E.jsxs("div",{className:"ml-auto flex items-center space-x-1",children:[E.jsx(Uw,{className:"w-3 h-3"}),E.jsx(Uu,{className:"w-3 h-3"})]})]}),r&&E.jsxs("div",{className:"ml-4 mt-1 space-y-1",children:[E.jsxs("a",{href:"#",className:"flex items-center space-x-2 px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 rounded-md",children:[E.jsx("div",{className:"w-2 h-2 bg-gray-400 rounded-full"}),E.jsx("span",{children:"Everything"})]}),E.jsxs("a",{href:"#",className:"flex items-center space-x-2 px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 rounded-md",children:[E.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full"}),E.jsx("span",{children:"Team Space"})]}),E.jsxs("button",{className:"flex items-center space-x-2 px-3 py-1.5 text-sm text-gray-500 hover:text-gray-700 transition-colors",children:[E.jsx(Uu,{className:"w-3 h-3"}),E.jsx("span",{children:"Create Space"})]})]})]})]}),E.jsxs("div",{className:"p-4 border-t border-gray-200 space-y-2",children:[E.jsxs("button",{className:"flex items-center space-x-2 w-full px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-md transition-colors",children:[E.jsx(yE,{className:"w-4 h-4"}),E.jsx("span",{children:"Invite"})]}),E.jsxs("button",{className:"flex items-center space-x-2 w-full px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-md transition-colors",children:[E.jsx(Bw,{className:"w-4 h-4"}),E.jsx("span",{children:"Help"})]})]})]})},SE=()=>{const[e,t]=B.useState(!1),[r,n]=B.useState(!0);return E.jsx("div",{className:"bg-white border-b border-gray-200 px-6 py-4",children:E.jsxs("div",{className:"flex items-center justify-between",children:[E.jsxs("div",{className:"flex items-center space-x-6",children:[E.jsxs("div",{className:"flex items-center space-x-3",children:[E.jsx("span",{className:"text-sm text-gray-600",children:"Edit mode:"}),E.jsx("button",{onClick:()=>t(!e),className:`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${e?"bg-teal-600":"bg-gray-200"}`,children:E.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${e?"translate-x-6":"translate-x-1"}`})})]}),E.jsxs("div",{className:"flex items-center space-x-4",children:[E.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600",children:[E.jsx(Fw,{className:"w-4 h-4"}),E.jsx("span",{children:"Refreshed 3 mins ago"})]}),E.jsxs("div",{className:"flex items-center space-x-2",children:[E.jsx("span",{className:"text-sm text-gray-600",children:"Auto refresh:"}),E.jsx("button",{onClick:()=>n(!r),className:`relative inline-flex h-5 w-9 items-center rounded-full transition-colors ${r?"bg-teal-600":"bg-gray-200"}`,children:E.jsx("span",{className:`inline-block h-3 w-3 transform rounded-full bg-white transition-transform ${r?"translate-x-5":"translate-x-1"}`})}),E.jsx("span",{className:"text-sm text-gray-600",children:"On"})]}),E.jsxs("button",{className:"flex items-center space-x-2 px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 rounded-md transition-colors",children:[E.jsx(uE,{className:"w-4 h-4"}),E.jsx("span",{children:"Filters"})]})]})]}),E.jsxs("button",{className:"flex items-center space-x-2 bg-teal-600 hover:bg-teal-700 text-white px-4 py-2 rounded-md text-sm font-medium transition-colors",children:[E.jsx(Uu,{className:"w-4 h-4"}),E.jsx("span",{children:"Add card"})]})]})})},OE=()=>E.jsxs("div",{className:"bg-white flex-grow rounded-lg border border-gray-200 p-6",children:[E.jsxs("div",{className:"flex items-center justify-between mb-4",children:[E.jsxs("div",{className:"flex items-center space-x-3",children:[E.jsx("div",{className:"w-8 h-8 bg-gradient-to-br from-purple-500 to-pink-500 rounded-lg flex items-center justify-center",children:E.jsx(Ww,{className:"w-5 h-5 text-white"})}),E.jsxs("div",{children:[E.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:"AI Executive Summary"}),E.jsx("p",{className:"text-sm text-gray-500",children:"Refreshed 3 mins ago"})]})]}),E.jsxs("div",{className:"flex items-center space-x-2",children:[E.jsx("button",{className:"p-1 text-gray-400 hover:text-gray-600 transition-colors",children:E.jsx(Lw,{className:"w-4 h-4"})}),E.jsx("button",{className:"p-1 text-gray-400 hover:text-gray-600 transition-colors",children:E.jsx(Fw,{className:"w-4 h-4"})})]})]}),E.jsxs("div",{className:"space-y-4",children:[E.jsxs("div",{children:[E.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"Executive Summary"}),E.jsx("p",{className:"text-gray-600",children:"No tasks were updated in the last week."})]}),E.jsxs("div",{children:[E.jsx("h4",{className:"font-medium text-gray-900 mb-2",children:"Key Efforts & Initiatives"}),E.jsx("p",{className:"text-gray-600",children:"There are no active tasks."})]})]})]}),_E=()=>{const e=[{label:"Unassigned",count:6,color:"bg-gray-100 text-gray-700"},{label:"In Progress",count:1,color:"bg-blue-100 text-blue-700"},{label:"Completed",count:0,color:"bg-green-100 text-green-700"}];return E.jsx("div",{className:"grid grid-cols-3 gap-4",children:e.map((t,r)=>E.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-6 text-center",children:[E.jsx("h3",{className:"text-sm font-medium text-gray-600 mb-2",children:t.label}),E.jsx("div",{className:"text-4xl font-bold text-gray-900 mb-1",children:t.count}),E.jsx("div",{className:"text-sm text-gray-500",children:"tasks"})]},r))})};function Hw(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t-1}var OT=ST,_T=ic;function PT(e,t){var r=this.__data__,n=_T(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var AT=PT,ET=sT,$T=mT,TT=xT,jT=OT,kT=AT;function wa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0?1:-1},Dn=function(t){return Xn(t)&&t.indexOf("%")===t.length-1},H=function(t){return Jj(t)&&!gl(t)},nk=function(t){return re(t)},He=function(t){return H(t)||Xn(t)},ik=0,bl=function(t){var r=++ik;return"".concat(t||"").concat(r)},st=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!H(t)&&!Xn(t))return n;var a;if(Dn(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return gl(a)&&(a=n),i&&a>r&&(a=r),a},ci=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},ak=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Fm={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Ar=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Um=null,Tf=null,Ev=function e(t){if(t===Um&&Array.isArray(Tf))return Tf;var r=[];return B.Children.forEach(t,function(n){re(n)||(Gj.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Tf=r,Um=t,r};function Wt(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Ar(i)}):n=[Ar(t)],Ev(e).forEach(function(i){var a=Tt(i,"type.displayName")||Tt(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Pt(e,t){var r=Wt(e,t);return r&&r[0]}var Wm=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!H(n)||n<=0||!H(i)||i<=0)},pk=["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"],hk=function(t){return t&&t.type&&Xn(t.type)&&pk.indexOf(t.type)>=0},vk=function(t,r,n,i){var a,o=(a=$f==null?void 0:$f[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Z(t)&&(i&&o.includes(r)||uk.includes(r))||n&&Av.includes(r)},Q=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(B.isValidElement(t)&&(i=t.props),!ba(i))return null;var a={};return Object.keys(i).forEach(function(o){var l;vk((l=i)===null||l===void 0?void 0:l[o],o,r,n)&&(a[o]=i[o])}),a},Yd=function e(t,r){if(t===r)return!0;var n=B.Children.count(t);if(n!==B.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Hm(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Zd(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,l=e.title,u=e.desc,s=bk(e,gk),f=i||{width:r,height:n,x:0,y:0},c=te("recharts-surface",a);return A.createElement("svg",Qd({},Q(s,!0,"svg"),{className:c,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),A.createElement("title",null,l),A.createElement("desc",null,u),t)}var wk=["children","className"];function Jd(){return Jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ok(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var se=A.forwardRef(function(e,t){var r=e.children,n=e.className,i=Sk(e,wk),a=te("recharts-layer",n);return A.createElement("g",Jd({className:a},Q(i,!0),{ref:t}),r)}),Er=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;ai?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n=n?e:Ak(e,t,r)}var $k=Ek,Tk="\\ud800-\\udfff",jk="\\u0300-\\u036f",kk="\\ufe20-\\ufe2f",Ck="\\u20d0-\\u20ff",Mk=jk+kk+Ck,Nk="\\ufe0e\\ufe0f",Ik="\\u200d",Dk=RegExp("["+Ik+Tk+Mk+Nk+"]");function Rk(e){return Dk.test(e)}var nS=Rk;function Lk(e){return e.split("")}var Bk=Lk,iS="\\ud800-\\udfff",zk="\\u0300-\\u036f",Fk="\\ufe20-\\ufe2f",Uk="\\u20d0-\\u20ff",Wk=zk+Fk+Uk,Hk="\\ufe0e\\ufe0f",Vk="["+iS+"]",ep="["+Wk+"]",tp="\\ud83c[\\udffb-\\udfff]",Kk="(?:"+ep+"|"+tp+")",aS="[^"+iS+"]",oS="(?:\\ud83c[\\udde6-\\uddff]){2}",lS="[\\ud800-\\udbff][\\udc00-\\udfff]",qk="\\u200d",uS=Kk+"?",sS="["+Hk+"]?",Gk="(?:"+qk+"(?:"+[aS,oS,lS].join("|")+")"+sS+uS+")*",Xk=sS+uS+Gk,Yk="(?:"+[aS+ep+"?",ep,oS,lS,Vk].join("|")+")",Qk=RegExp(tp+"(?="+tp+")|"+Yk+Xk,"g");function Zk(e){return e.match(Qk)||[]}var Jk=Zk,eC=Bk,tC=nS,rC=Jk;function nC(e){return tC(e)?rC(e):eC(e)}var iC=nC,aC=$k,oC=nS,lC=iC,uC=Qw;function sC(e){return function(t){t=uC(t);var r=oC(t)?lC(t):void 0,n=r?r[0]:t.charAt(0),i=r?aC(r,1).join(""):t.slice(1);return n[e]()+i}}var cC=sC,fC=cC,dC=fC("toUpperCase"),pC=dC;const gc=pe(pC);function ye(e){return function(){return e}}const cS=Math.cos,Hu=Math.sin,ar=Math.sqrt,Vu=Math.PI,bc=2*Vu,rp=Math.PI,np=2*rp,Tn=1e-6,hC=np-Tn;function fS(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return fS;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;iTn)if(!(Math.abs(c*u-s*f)>Tn)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-l,h=u*u+s*s,x=p*p+y*y,m=Math.sqrt(h),v=Math.sqrt(d),g=a*Math.tan((rp-Math.acos((h+d-x)/(2*m*v)))/2),S=g/v,b=g/m;Math.abs(S-1)>Tn&&this._append`L${t+S*f},${r+S*c}`,this._append`A${a},${a},0,0,${+(c*p>f*y)},${this._x1=t+b*u},${this._y1=r+b*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),u=n*Math.sin(i),s=t+l,f=r+u,c=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Tn||Math.abs(this._y1-f)>Tn)&&this._append`L${s},${f}`,n&&(d<0&&(d=d%np+np),d>hC?this._append`A${n},${n},0,1,${c},${t-l},${r-u}A${n},${n},0,1,${c},${this._x1=s},${this._y1=f}`:d>Tn&&this._append`A${n},${n},0,${+(d>=rp)},${c},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function $v(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new yC(t)}function Tv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function dS(e){this._context=e}dS.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 xc(e){return new dS(e)}function pS(e){return e[0]}function hS(e){return e[1]}function vS(e,t){var r=ye(!0),n=null,i=xc,a=null,o=$v(l);e=typeof e=="function"?e:e===void 0?pS:ye(e),t=typeof t=="function"?t:t===void 0?hS:ye(t);function l(u){var s,f=(u=Tv(u)).length,c,d=!1,p;for(n==null&&(a=i(p=o())),s=0;s<=f;++s)!(s=p;--y)l.point(g[y],S[y]);l.lineEnd(),l.areaEnd()}m&&(g[d]=+e(x,d,c),S[d]=+t(x,d,c),l.point(n?+n(x,d,c):g[d],r?+r(x,d,c):S[d]))}if(v)return l=null,v+""||null}function f(){return vS().defined(i).curve(o).context(a)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:ye(+c),n=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?(n=c==null?null:typeof c=="function"?c:ye(+c),s):n},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:ye(+c),r=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?(r=c==null?null:typeof c=="function"?c:ye(+c),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).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&&(l=o(a)),s):o},s.context=function(c){return arguments.length?(c==null?a=l=null:l=o(a=c),s):a},s}class yS{constructor(t,r){this._context=t,this._x=r}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,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function mC(e){return new yS(e,!0)}function gC(e){return new yS(e,!1)}const jv={draw(e,t){const r=ar(t/Vu);e.moveTo(r,0),e.arc(0,0,r,0,bc)}},bC={draw(e,t){const r=ar(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},mS=ar(1/3),xC=mS*2,wC={draw(e,t){const r=ar(t/xC),n=r*mS;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},SC={draw(e,t){const r=ar(t),n=-r/2;e.rect(n,n,r,r)}},OC=.8908130915292852,gS=Hu(Vu/10)/Hu(7*Vu/10),_C=Hu(bc/10)*gS,PC=-cS(bc/10)*gS,AC={draw(e,t){const r=ar(t*OC),n=_C*r,i=PC*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=bc*a/5,l=cS(o),u=Hu(o);e.lineTo(u*r,-l*r),e.lineTo(l*n-u*i,u*n+l*i)}e.closePath()}},jf=ar(3),EC={draw(e,t){const r=-ar(t/(jf*3));e.moveTo(0,r*2),e.lineTo(-jf*r,-r),e.lineTo(jf*r,-r),e.closePath()}},Nt=-.5,It=ar(3)/2,ip=1/ar(12),$C=(ip/2+1)*3,TC={draw(e,t){const r=ar(t/$C),n=r/2,i=r*ip,a=n,o=r*ip+r,l=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,u),e.lineTo(Nt*n-It*i,It*n+Nt*i),e.lineTo(Nt*a-It*o,It*a+Nt*o),e.lineTo(Nt*l-It*u,It*l+Nt*u),e.lineTo(Nt*n+It*i,Nt*i-It*n),e.lineTo(Nt*a+It*o,Nt*o-It*a),e.lineTo(Nt*l+It*u,Nt*u-It*l),e.closePath()}};function jC(e,t){let r=null,n=$v(i);e=typeof e=="function"?e:ye(e||jv),t=typeof t=="function"?t:ye(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=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?(r=a??null,i):r},i}function Ku(){}function qu(e,t,r){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+r)/6)}function bS(e){this._context=e}bS.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:qu(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:qu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kC(e){return new bS(e)}function xS(e){this._context=e}xS.prototype={areaStart:Ku,areaEnd:Ku,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:qu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CC(e){return new xS(e)}function wS(e){this._context=e}wS.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:qu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function MC(e){return new wS(e)}function SS(e){this._context=e}SS.prototype={areaStart:Ku,areaEnd:Ku,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 NC(e){return new SS(e)}function Km(e){return e<0?-1:1}function qm(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),l=(a*i+o*n)/(n+i);return(Km(a)+Km(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function Gm(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function kf(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,o-l*r,a,o)}function Gu(e){this._context=e}Gu.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:kf(this,this._t0,Gm(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 r=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,kf(this,Gm(this,r=qm(this,e,t)),r);break;default:kf(this,this._t0,r=qm(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function OS(e){this._context=new _S(e)}(OS.prototype=Object.create(Gu.prototype)).point=function(e,t){Gu.prototype.point.call(this,t,e)};function _S(e){this._context=e}_S.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,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function IC(e){return new Gu(e)}function DC(e){return new OS(e)}function PS(e){this._context=e}PS.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Xm(e),i=Xm(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function LC(e){return new wc(e,.5)}function BC(e){return new wc(e,0)}function zC(e){return new wc(e,1)}function Vi(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,l=a.length;r=0;)r[t]=t;return r}function FC(e,t){return e[t]}function UC(e){const t=[];return t.key=e,t}function WC(){var e=ye([]),t=ap,r=Vi,n=FC;function i(a){var o=Array.from(e.apply(this,arguments),UC),l,u=o.length,s=-1,f;for(const c of a)for(l=0,++s;l0){for(var r,n,i=0,a=e[0].length,o;i0){for(var r=0,n=e[t[0]],i,a=n.length;r0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ZC(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var AS={symbolCircle:jv,symbolCross:bC,symbolDiamond:wC,symbolSquare:SC,symbolStar:AC,symbolTriangle:EC,symbolWye:TC},JC=Math.PI/180,eM=function(t){var r="symbol".concat(gc(t));return AS[r]||jv},tM=function(t,r,n){if(r==="area")return t;switch(n){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*JC;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}},rM=function(t,r){AS["symbol".concat(gc(t))]=r},kv=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,l=o===void 0?"area":o,u=QC(t,qC),s=Qm(Qm({},u),{},{type:n,size:a,sizeType:l}),f=function(){var x=eM(n),m=jC().type(x).size(tM(a,l,n));return m()},c=s.className,d=s.cx,p=s.cy,y=Q(s,!0);return d===+d&&p===+p&&a===+a?A.createElement("path",op({},y,{className:te("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(p,")"),d:f()})):null};kv.registerSymbol=rM;function Ki(e){"@babel/helpers - typeof";return Ki=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},Ki(e)}function lp(){return lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var v=p.inactive?s:p.color;return A.createElement("li",lp({className:x,style:c,key:"legend-item-".concat(y)},Yn(n.props,p,y)),A.createElement(Zd,{width:o,height:o,viewBox:f,style:d},n.renderIcon(p)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:v}},h?h(m,p,y):m))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return A.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(B.PureComponent);Co(Cv,"displayName","Legend");Co(Cv,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var dM=ac;function pM(){this.__data__=new dM,this.size=0}var hM=pM;function vM(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var yM=vM;function mM(e){return this.__data__.get(e)}var gM=mM;function bM(e){return this.__data__.has(e)}var xM=bM,wM=ac,SM=bv,OM=xv,_M=200;function PM(e,t){var r=this.__data__;if(r instanceof wM){var n=r.__data__;if(!SM||n.length<_M-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new OM(n)}return r.set(e,t),this.size=r.size,this}var AM=PM,EM=ac,$M=hM,TM=yM,jM=gM,kM=xM,CM=AM;function Oa(e){var t=this.__data__=new EM(e);this.size=t.size}Oa.prototype.clear=$M;Oa.prototype.delete=TM;Oa.prototype.get=jM;Oa.prototype.has=kM;Oa.prototype.set=CM;var TS=Oa,MM="__lodash_hash_undefined__";function NM(e){return this.__data__.set(e,MM),this}var IM=NM;function DM(e){return this.__data__.has(e)}var RM=DM,LM=xv,BM=IM,zM=RM;function Yu(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new LM;++tl))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=r&qM?new WM:void 0;for(a.set(e,t),a.set(t,e);++c-1&&e%1==0&&e-1&&e%1==0&&e<=QN}var Dv=ZN,JN=zr,eI=Dv,tI=Fr,rI="[object Arguments]",nI="[object Array]",iI="[object Boolean]",aI="[object Date]",oI="[object Error]",lI="[object Function]",uI="[object Map]",sI="[object Number]",cI="[object Object]",fI="[object RegExp]",dI="[object Set]",pI="[object String]",hI="[object WeakMap]",vI="[object ArrayBuffer]",yI="[object DataView]",mI="[object Float32Array]",gI="[object Float64Array]",bI="[object Int8Array]",xI="[object Int16Array]",wI="[object Int32Array]",SI="[object Uint8Array]",OI="[object Uint8ClampedArray]",_I="[object Uint16Array]",PI="[object Uint32Array]",we={};we[mI]=we[gI]=we[bI]=we[xI]=we[wI]=we[SI]=we[OI]=we[_I]=we[PI]=!0;we[rI]=we[nI]=we[vI]=we[iI]=we[yI]=we[aI]=we[oI]=we[lI]=we[uI]=we[sI]=we[cI]=we[fI]=we[dI]=we[pI]=we[hI]=!1;function AI(e){return tI(e)&&eI(e.length)&&!!we[JN(e)]}var EI=AI;function $I(e){return function(t){return e(t)}}var RS=$I,Zu={exports:{}};Zu.exports;(function(e,t){var r=Vw,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,l=function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(Zu,Zu.exports);var TI=Zu.exports,jI=EI,kI=RS,ig=TI,ag=ig&&ig.isTypedArray,CI=ag?kI(ag):jI,LS=CI,MI=DN,NI=Nv,II=St,DI=DS,RI=Iv,LI=LS,BI=Object.prototype,zI=BI.hasOwnProperty;function FI(e,t){var r=II(e),n=!r&&NI(e),i=!r&&!n&&DI(e),a=!r&&!n&&!i&&LI(e),o=r||n||i||a,l=o?MI(e.length,String):[],u=l.length;for(var s in e)(t||zI.call(e,s))&&!(o&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||RI(s,u)))&&l.push(s);return l}var UI=FI,WI=Object.prototype;function HI(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||WI;return e===r}var VI=HI;function KI(e,t){return function(r){return e(t(r))}}var BS=KI,qI=BS,GI=qI(Object.keys,Object),XI=GI,YI=VI,QI=XI,ZI=Object.prototype,JI=ZI.hasOwnProperty;function eD(e){if(!YI(e))return QI(e);var t=[];for(var r in Object(e))JI.call(e,r)&&r!="constructor"&&t.push(r);return t}var tD=eD,rD=mv,nD=Dv;function iD(e){return e!=null&&nD(e.length)&&!rD(e)}var Sc=iD,aD=UI,oD=tD,lD=Sc;function uD(e){return lD(e)?aD(e):oD(e)}var Rv=uD,sD=_N,cD=NN,fD=Rv;function dD(e){return sD(e,fD,cD)}var pD=dD,og=pD,hD=1,vD=Object.prototype,yD=vD.hasOwnProperty;function mD(e,t,r,n,i,a){var o=r&hD,l=og(e),u=l.length,s=og(t),f=s.length;if(u!=f&&!o)return!1;for(var c=u;c--;){var d=l[c];if(!(o?d in t:yD.call(t,d)))return!1}var p=a.get(e),y=a.get(t);if(p&&y)return p==t&&y==e;var h=!0;a.set(e,t),a.set(t,e);for(var x=o;++c-1}var yR=vR;function mR(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=CR){var s=t?null:jR(e);if(s)return kR(s);o=!1,i=TR,u=new AR}else u=t?[]:l;e:for(;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function GR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function XR(e){return e.value}function YR(e,t){if(A.isValidElement(e))return A.cloneElement(e,t);if(typeof e=="function")return A.createElement(e,t);t.ref;var r=qR(t,BR);return A.createElement(Cv,r)}var Sg=1,Ii=function(e){function t(){var r;zR(this,t);for(var n=arguments.length,i=new Array(n),a=0;aSg||Math.abs(i.height-this.lastBoundingBox.height)>Sg)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?yr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,l=i.verticalAlign,u=i.margin,s=i.chartWidth,f=i.chartHeight,c,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();c={left:((s||0)-p.width)/2}}else c=o==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(l==="middle"){var y=this.getBBoxSnapshot();d={top:((f||0)-y.height)/2}}else d=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return yr(yr({},c),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,l=i.height,u=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,c=yr(yr({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return A.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){n.wrapperNode=p}},YR(a,yr(yr({},this.props),{},{payload:VS(f,s,XR)})))}}],[{key:"getWithHeight",value:function(n,i){var a=yr(yr({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&H(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(B.PureComponent);Oc(Ii,"displayName","Legend");Oc(Ii,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Og=ml,QR=Nv,ZR=St,_g=Og?Og.isConcatSpreadable:void 0;function JR(e){return ZR(e)||QR(e)||!!(_g&&e&&e[_g])}var eL=JR,tL=NS,rL=eL;function GS(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=rL),i||(i=[]);++a0&&r(l)?t>1?GS(l,t-1,r,n,i):tL(i,l):n||(i[i.length]=l)}return i}var XS=GS;function nL(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),l=o.length;l--;){var u=o[e?l:++i];if(r(a[u],u,a)===!1)break}return t}}var iL=nL,aL=iL,oL=aL(),lL=oL,uL=lL,sL=Rv;function cL(e,t){return e&&uL(e,t,sL)}var YS=cL,fL=Sc;function dL(e,t){return function(r,n){if(r==null)return r;if(!fL(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++at||a&&o&&u&&!l&&!s||n&&o&&u||!r&&u||!i)return 1;if(!n&&!a&&!s&&e=l)return u;var s=r[n];return u*(s=="desc"?-1:1)}}return e.index-t.index}var AL=PL,If=Sv,EL=Ov,$L=gn,TL=QS,jL=wL,kL=RS,CL=AL,ML=Pa,NL=St;function IL(e,t,r){t.length?t=If(t,function(a){return NL(a)?function(o){return EL(o,a.length===1?a[0]:a)}:a}):t=[ML];var n=-1;t=If(t,kL($L));var i=TL(e,function(a,o,l){var u=If(t,function(s){return s(a)});return{criteria:u,index:++n,value:a}});return jL(i,function(a,o){return CL(a,o,r)})}var DL=IL;function RL(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var LL=RL,BL=LL,Ag=Math.max;function zL(e,t,r){return t=Ag(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Ag(n.length-t,0),o=Array(a);++i0){if(++t>=YL)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var e4=JL,t4=XL,r4=e4,n4=r4(t4),i4=n4,a4=Pa,o4=FL,l4=i4;function u4(e,t){return l4(o4(e,t,a4),e+"")}var s4=u4,c4=gv,f4=Sc,d4=Iv,p4=mn;function h4(e,t,r){if(!p4(r))return!1;var n=typeof t;return(n=="number"?f4(r)&&d4(t,r.length):n=="string"&&t in r)?c4(r[t],e):!1}var _c=h4,v4=XS,y4=DL,m4=s4,$g=_c,g4=m4(function(e,t){if(e==null)return[];var r=t.length;return r>1&&$g(e,t[0],t[1])?t=[]:r>2&&$g(t[0],t[1],t[2])&&(t=[t[0]]),y4(e,v4(t,1),[])}),b4=g4;const zv=pe(b4);function Mo(e){"@babel/helpers - typeof";return Mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mo(e)}function vp(){return vp=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t.x),"".concat(La,"-left"),H(r)&&t&&H(t.x)&&r=t.y),"".concat(La,"-top"),H(n)&&t&&H(t.y)&&nh?Math.max(f,u[n]):Math.max(c,u[n])}function N4(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function I4(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,u=e.viewBox,s,f,c;return o.height>0&&o.width>0&&r?(f=kg({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),c=kg({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),s=N4({translateX:f,translateY:c,useTranslate3d:l})):s=C4,{cssProperties:s,cssClasses:M4({translateX:f,translateY:c,coordinate:r})}}function Gi(e){"@babel/helpers - typeof";return Gi=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},Gi(e)}function Cg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mg(e){for(var t=1;tNg||Math.abs(n.height-this.state.lastBoundingBox.height)>Ng)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.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 n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,s=i.children,f=i.coordinate,c=i.hasPayload,d=i.isAnimationActive,p=i.offset,y=i.position,h=i.reverseDirection,x=i.useTranslate3d,m=i.viewBox,v=i.wrapperStyle,g=I4({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:y,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:m}),S=g.cssClasses,b=g.cssProperties,w=Mg(Mg({transition:d&&a?"transform ".concat(l,"ms ").concat(u):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&c?"visible":"hidden",position:"absolute",top:0,left:0},v);return A.createElement("div",{tabIndex:-1,className:S,style:w,ref:function(_){n.wrapperNode=_}},s)}}])}(B.PureComponent),V4=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},$r={isSsr:V4(),get:function(t){return $r[t]},set:function(t,r){if(typeof t=="string")$r[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){$r[i]=t[i]})}}};function Xi(e){"@babel/helpers - typeof";return Xi=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},Xi(e)}function Ig(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dg(e){for(var t=1;t0;return A.createElement(H4,{allowEscapeViewBox:o,animationDuration:l,animationEasing:u,isAnimationActive:d,active:a,coordinate:f,hasPayload:w,offset:p,position:x,reverseDirection:m,useTranslate3d:v,viewBox:g,wrapperStyle:S},tB(s,Dg(Dg({},this.props),{},{payload:b})))}}])}(B.PureComponent);Fv(gr,"displayName","Tooltip");Fv(gr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!$r.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 rB=vr,nB=function(){return rB.Date.now()},iB=nB,aB=/\s/;function oB(e){for(var t=e.length;t--&&aB.test(e.charAt(t)););return t}var lB=oB,uB=lB,sB=/^\s+/;function cB(e){return e&&e.slice(0,uB(e)+1).replace(sB,"")}var fB=cB,dB=fB,Rg=mn,pB=ga,Lg=NaN,hB=/^[-+]0x[0-9a-f]+$/i,vB=/^0b[01]+$/i,yB=/^0o[0-7]+$/i,mB=parseInt;function gB(e){if(typeof e=="number")return e;if(pB(e))return Lg;if(Rg(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Rg(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=dB(e);var r=vB.test(e);return r||yB.test(e)?mB(e.slice(2),r?2:8):hB.test(e)?Lg:+e}var nO=gB,bB=mn,Rf=iB,Bg=nO,xB="Expected a function",wB=Math.max,SB=Math.min;function OB(e,t,r){var n,i,a,o,l,u,s=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(xB);t=Bg(t)||0,bB(r)&&(f=!!r.leading,c="maxWait"in r,a=c?wB(Bg(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function p(w){var O=n,_=i;return n=i=void 0,s=w,o=e.apply(_,O),o}function y(w){return s=w,l=setTimeout(m,t),f?p(w):o}function h(w){var O=w-u,_=w-s,P=t-O;return c?SB(P,a-_):P}function x(w){var O=w-u,_=w-s;return u===void 0||O>=t||O<0||c&&_>=a}function m(){var w=Rf();if(x(w))return v(w);l=setTimeout(m,h(w))}function v(w){return l=void 0,d&&n?p(w):(n=i=void 0,o)}function g(){l!==void 0&&clearTimeout(l),s=0,n=u=i=l=void 0}function S(){return l===void 0?o:v(Rf())}function b(){var w=Rf(),O=x(w);if(n=arguments,i=this,u=w,O){if(l===void 0)return y(u);if(c)return clearTimeout(l),l=setTimeout(m,t),p(u)}return l===void 0&&(l=setTimeout(m,t)),o}return b.cancel=g,b.flush=S,b}var _B=OB,PB=_B,AB=mn,EB="Expected a function";function $B(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(EB);return AB(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),PB(e,t,{leading:n,maxWait:t,trailing:i})}var TB=$B;const iO=pe(TB);function Io(e){"@babel/helpers - typeof";return Io=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},Io(e)}function zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gl(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(M=iO(M,h,{trailing:!0,leading:!1}));var D=new ResizeObserver(M),N=b.current.getBoundingClientRect(),R=N.width,L=N.height;return $(R,L),D.observe(b.current),function(){D.disconnect()}},[$,h]);var k=B.useMemo(function(){var M=P.containerWidth,D=P.containerHeight;if(M<0||D<0)return null;Er(Dn(o)||Dn(u),`The width(%s) and height(%s) are both fixed numbers, - maybe you don't need to use a ResponsiveContainer.`,o,u),Er(!r||r>0,"The aspect(%s) must be greater than zero.",r);var N=Dn(o)?M:o,R=Dn(u)?D:u;r&&r>0&&(N?R=N/r:R&&(N=R*r),d&&R>d&&(R=d)),Er(N>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.`,N,R,o,u,f,c,r);var L=!Array.isArray(p)&&Ar(p.type).endsWith("Chart");return A.Children.map(p,function(j){return A.isValidElement(j)?B.cloneElement(j,Gl({width:N,height:R},L?{style:Gl({height:"100%",width:"100%",maxHeight:R,maxWidth:N},j.props.style)}:{})):j})},[r,p,u,d,c,f,P,o]);return A.createElement("div",{id:x?"".concat(x):void 0,className:te("recharts-responsive-container",m),style:Gl(Gl({},S),{},{width:o,height:u,minWidth:f,minHeight:c,maxHeight:d}),ref:b},k)}),Pc=function(t){return null};Pc.displayName="Cell";function Do(e){"@babel/helpers - typeof";return Do=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},Do(e)}function Ug(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xp(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||$r.isSsr)return{width:0,height:0};var n=WB(r),i=JSON.stringify({text:t,copyStyle:n});if(ui.widthCache[i])return ui.widthCache[i];try{var a=document.getElementById(Wg);a||(a=document.createElement("span"),a.setAttribute("id",Wg),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=xp(xp({},UB),n);Object.assign(a.style,o),a.textContent="".concat(t);var l=a.getBoundingClientRect(),u={width:l.width,height:l.height};return ui.widthCache[i]=u,++ui.cacheCount>FB&&(ui.cacheCount=0,ui.widthCache={}),u}catch{return{width:0,height:0}}},HB=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Ro(e){"@babel/helpers - typeof";return Ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ro(e)}function rs(e,t){return GB(e)||qB(e,t)||KB(e,t)||VB()}function VB(){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 KB(e,t){if(e){if(typeof e=="string")return Hg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hg(e,t)}}function Hg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u8(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Yg(e,t){return d8(e)||f8(e,t)||c8(e,t)||s8()}function s8(){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 c8(e,t){if(e){if(typeof e=="string")return Qg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qg(e,t)}}function Qg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return N.reduce(function(R,L){var j=L.word,I=L.width,F=R[R.length-1];if(F&&(i==null||a||F.width+I+nL.width?R:L})};if(!f)return p;for(var h="…",x=function(N){var R=c.slice(0,N),L=uO({breakAll:s,style:u,children:R+h}).wordsWithComputedWidth,j=d(L),I=j.length>o||y(j).width>Number(i);return[I,j]},m=0,v=c.length-1,g=0,S;m<=v&&g<=c.length-1;){var b=Math.floor((m+v)/2),w=b-1,O=x(w),_=Yg(O,2),P=_[0],T=_[1],$=x(b),k=Yg($,1),M=k[0];if(!P&&!M&&(m=b+1),P&&M&&(v=b-1),!P&&M){S=T;break}g++}return S||p},Zg=function(t){var r=re(t)?[]:t.toString().split(lO);return[{words:r}]},h8=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,l=t.maxLines;if((r||n)&&!$r.isSsr){var u,s,f=uO({breakAll:o,children:i,style:a});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;u=c,s=d}else return Zg(i);return p8({breakAll:o,children:i,maxLines:l,style:a},u,s,r,n)}return Zg(i)},Jg="#808080",Qn=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,l=o===void 0?"1em":o,u=t.capHeight,s=u===void 0?"0.71em":u,f=t.scaleToFit,c=f===void 0?!1:f,d=t.textAnchor,p=d===void 0?"start":d,y=t.verticalAnchor,h=y===void 0?"end":y,x=t.fill,m=x===void 0?Jg:x,v=Xg(t,o8),g=B.useMemo(function(){return h8({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:c,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,c,v.style,v.width]),S=v.dx,b=v.dy,w=v.angle,O=v.className,_=v.breakAll,P=Xg(v,l8);if(!He(n)||!He(a))return null;var T=n+(H(S)?S:0),$=a+(H(b)?b:0),k;switch(h){case"start":k=Lf("calc(".concat(s,")"));break;case"middle":k=Lf("calc(".concat((g.length-1)/2," * -").concat(l," + (").concat(s," / 2))"));break;default:k=Lf("calc(".concat(g.length-1," * -").concat(l,")"));break}var M=[];if(c){var D=g[0].width,N=v.width;M.push("scale(".concat((H(N)?N/D:1)/D,")"))}return w&&M.push("rotate(".concat(w,", ").concat(T,", ").concat($,")")),M.length&&(P.transform=M.join(" ")),A.createElement("text",wp({},Q(P,!0),{x:T,y:$,className:te("recharts-text",O),textAnchor:p,fill:m.includes("url")?Jg:m}),g.map(function(R,L){var j=R.words.join(_?"":" ");return A.createElement("tspan",{x:T,dy:L===0?k:l,key:"".concat(j,"-").concat(L)},j)}))};function cn(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function v8(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Uv(e){let t,r,n;e.length!==2?(t=cn,r=(l,u)=>cn(e(l),u),n=(l,u)=>e(l)-u):(t=e===cn||e===v8?e:y8,r=e,n=e);function i(l,u,s=0,f=l.length){if(s>>1;r(l[c],u)<0?s=c+1:f=c}while(s>>1;r(l[c],u)<=0?s=c+1:f=c}while(ss&&n(l[c-1],u)>-n(l[c],u)?c-1:c}return{left:i,center:o,right:a}}function y8(){return 0}function sO(e){return e===null?NaN:+e}function*m8(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const g8=Uv(cn),xl=g8.right;Uv(sO).center;class e0 extends Map{constructor(t,r=w8){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(t0(this,t))}has(t){return super.has(t0(this,t))}set(t,r){return super.set(b8(this,t),r)}delete(t){return super.delete(x8(this,t))}}function t0({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function b8({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function x8({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function w8(e){return e!==null&&typeof e=="object"?e.valueOf():e}function S8(e=cn){if(e===cn)return cO;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function cO(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const O8=Math.sqrt(50),_8=Math.sqrt(10),P8=Math.sqrt(2);function ns(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=O8?10:a>=_8?5:a>=P8?2:1;let l,u,s;return i<0?(s=Math.pow(10,-i)/o,l=Math.round(e*s),u=Math.round(t*s),l/st&&--u,s=-s):(s=Math.pow(10,i)*o,l=Math.round(e/s),u=Math.round(t/s),l*st&&--u),u0))return[];if(e===t)return[e];const n=t=i))return[];const l=a-i+1,u=new Array(l);if(n)if(o<0)for(let s=0;s=n)&&(r=n);return r}function n0(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function fO(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?cO:S8(i);n>r;){if(n-r>600){const u=n-r+1,s=t-r+1,f=Math.log(u),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(u-c)/u)*(s-u/2<0?-1:1),p=Math.max(r,Math.floor(t-s*c/u+d)),y=Math.min(n,Math.floor(t+(u-s)*c/u+d));fO(e,t,p,y,i)}const a=e[t];let o=r,l=n;for(Ba(e,r,t),i(e[n],a)>0&&Ba(e,r,n);o0;)--l}i(e[r],a)===0?Ba(e,r,l):(++l,Ba(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function Ba(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function A8(e,t,r){if(e=Float64Array.from(m8(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return n0(e);if(t>=1)return r0(e);var n,i=(n-1)*t,a=Math.floor(i),o=r0(fO(e,a).subarray(0,a+1)),l=n0(e.subarray(a+1));return o+(l-o)*(i-a)}}function E8(e,t,r=sO){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),l=+r(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function $8(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Yl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Yl(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=j8.exec(e))?new gt(t[1],t[2],t[3],1):(t=k8.exec(e))?new gt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=C8.exec(e))?Yl(t[1],t[2],t[3],t[4]):(t=M8.exec(e))?Yl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=N8.exec(e))?c0(t[1],t[2]/100,t[3]/100,1):(t=I8.exec(e))?c0(t[1],t[2]/100,t[3]/100,t[4]):i0.hasOwnProperty(e)?l0(i0[e]):e==="transparent"?new gt(NaN,NaN,NaN,0):null}function l0(e){return new gt(e>>16&255,e>>8&255,e&255,1)}function Yl(e,t,r,n){return n<=0&&(e=t=r=NaN),new gt(e,t,r,n)}function L8(e){return e instanceof wl||(e=Fo(e)),e?(e=e.rgb(),new gt(e.r,e.g,e.b,e.opacity)):new gt}function Ap(e,t,r,n){return arguments.length===1?L8(e):new gt(e,t,r,n??1)}function gt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Hv(gt,Ap,pO(wl,{brighter(e){return e=e==null?is:Math.pow(is,e),new gt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Bo:Math.pow(Bo,e),new gt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new gt(Un(this.r),Un(this.g),Un(this.b),as(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:u0,formatHex:u0,formatHex8:B8,formatRgb:s0,toString:s0}));function u0(){return`#${Rn(this.r)}${Rn(this.g)}${Rn(this.b)}`}function B8(){return`#${Rn(this.r)}${Rn(this.g)}${Rn(this.b)}${Rn((isNaN(this.opacity)?1:this.opacity)*255)}`}function s0(){const e=as(this.opacity);return`${e===1?"rgb(":"rgba("}${Un(this.r)}, ${Un(this.g)}, ${Un(this.b)}${e===1?")":`, ${e})`}`}function as(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Un(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Rn(e){return e=Un(e),(e<16?"0":"")+e.toString(16)}function c0(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new tr(e,t,r,n)}function hO(e){if(e instanceof tr)return new tr(e.h,e.s,e.l,e.opacity);if(e instanceof wl||(e=Fo(e)),!e)return new tr;if(e instanceof tr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,u=(a+i)/2;return l?(t===a?o=(r-n)/l+(r0&&u<1?0:o,new tr(o,l,u,e.opacity)}function z8(e,t,r,n){return arguments.length===1?hO(e):new tr(e,t,r,n??1)}function tr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Hv(tr,z8,pO(wl,{brighter(e){return e=e==null?is:Math.pow(is,e),new tr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Bo:Math.pow(Bo,e),new tr(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new gt(Bf(e>=240?e-240:e+120,i,n),Bf(e,i,n),Bf(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new tr(f0(this.h),Ql(this.s),Ql(this.l),as(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=as(this.opacity);return`${e===1?"hsl(":"hsla("}${f0(this.h)}, ${Ql(this.s)*100}%, ${Ql(this.l)*100}%${e===1?")":`, ${e})`}`}}));function f0(e){return e=(e||0)%360,e<0?e+360:e}function Ql(e){return Math.max(0,Math.min(1,e||0))}function Bf(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Vv=e=>()=>e;function F8(e,t){return function(r){return e+r*t}}function U8(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function W8(e){return(e=+e)==1?vO:function(t,r){return r-t?U8(t,r,e):Vv(isNaN(t)?r:t)}}function vO(e,t){var r=t-e;return r?F8(e,r):Vv(isNaN(e)?t:e)}const d0=function e(t){var r=W8(t);function n(i,a){var o=r((i=Ap(i)).r,(a=Ap(a)).r),l=r(i.g,a.g),u=r(i.b,a.b),s=vO(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=l(f),i.b=u(f),i.opacity=s(f),i+""}}return n.gamma=e,n}(1);function H8(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;ir&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,u.push({i:o,x:os(n,i)})),r=zf.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function t5(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i2?r5:t5,u=s=null,c}function c(d){return d==null||isNaN(d=+d)?a:(u||(u=l(e.map(n),t,r)))(n(o(d)))}return c.invert=function(d){return o(i((s||(s=l(t,e.map(n),os)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,ls),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),r=Kv,f()},c.clamp=function(d){return arguments.length?(o=d?!0:ct,f()):o!==ct},c.interpolate=function(d){return arguments.length?(r=d,f()):r},c.unknown=function(d){return arguments.length?(a=d,c):a},function(d,p){return n=d,i=p,f()}}function qv(){return Ac()(ct,ct)}function n5(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function us(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Yi(e){return e=us(Math.abs(e)),e?e[1]:NaN}function i5(e,t){return function(r,n){for(var i=r.length,a=[],o=0,l=e[0],u=0;i>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),a.push(r.substring(i-=l,i+l)),!((u+=l+1)>n));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function a5(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var o5=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Uo(e){if(!(t=o5.exec(e)))throw new Error("invalid format: "+e);var t;return new Gv({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]})}Uo.prototype=Gv.prototype;function Gv(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+""}Gv.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 l5(e){e:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var yO;function u5(e,t){var r=us(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(yO=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+us(e,Math.max(0,t+a-1))[0]}function h0(e,t){var r=us(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const v0={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:n5,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)=>h0(e*100,t),r:h0,s:u5,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function y0(e){return e}var m0=Array.prototype.map,g0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function s5(e){var t=e.grouping===void 0||e.thousands===void 0?y0:i5(m0.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?y0:a5(m0.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function s(c){c=Uo(c);var d=c.fill,p=c.align,y=c.sign,h=c.symbol,x=c.zero,m=c.width,v=c.comma,g=c.precision,S=c.trim,b=c.type;b==="n"?(v=!0,b="g"):v0[b]||(g===void 0&&(g=12),S=!0,b="g"),(x||d==="0"&&p==="=")&&(x=!0,d="0",p="=");var w=h==="$"?r:h==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",O=h==="$"?n:/[%p]/.test(b)?o:"",_=v0[b],P=/[defgprs%]/.test(b);g=g===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g));function T($){var k=w,M=O,D,N,R;if(b==="c")M=_($)+M,$="";else{$=+$;var L=$<0||1/$<0;if($=isNaN($)?u:_(Math.abs($),g),S&&($=l5($)),L&&+$==0&&y!=="+"&&(L=!1),k=(L?y==="("?y:l:y==="-"||y==="("?"":y)+k,M=(b==="s"?g0[8+yO/3]:"")+M+(L&&y==="("?")":""),P){for(D=-1,N=$.length;++DR||R>57){M=(R===46?i+$.slice(D+1):$.slice(D))+M,$=$.slice(0,D);break}}}v&&!x&&($=t($,1/0));var j=k.length+$.length+M.length,I=j>1)+k+$+M+I.slice(j);break;default:$=I+k+$+M;break}return a($)}return T.toString=function(){return c+""},T}function f(c,d){var p=s((c=Uo(c),c.type="f",c)),y=Math.max(-8,Math.min(8,Math.floor(Yi(d)/3)))*3,h=Math.pow(10,-y),x=g0[8+y/3];return function(m){return p(h*m)+x}}return{format:s,formatPrefix:f}}var Zl,Xv,mO;c5({thousands:",",grouping:[3],currency:["$",""]});function c5(e){return Zl=s5(e),Xv=Zl.format,mO=Zl.formatPrefix,Zl}function f5(e){return Math.max(0,-Yi(Math.abs(e)))}function d5(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Yi(t)/3)))*3-Yi(Math.abs(e)))}function p5(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Yi(t)-Yi(e))+1}function gO(e,t,r,n){var i=_p(e,t,r),a;switch(n=Uo(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=d5(i,o))&&(n.precision=a),mO(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=p5(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=f5(i))&&(n.precision=a-(n.type==="%")*2);break}}return Xv(n)}function bn(e){var t=e.domain;return e.ticks=function(r){var n=t();return Sp(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return gO(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],l=n[a],u,s,f=10;for(l0;){if(s=Op(o,l,r),s===u)return n[i]=o,n[a]=l,t(n);if(s>0)o=Math.floor(o/s)*s,l=Math.ceil(l/s)*s;else if(s<0)o=Math.ceil(o*s)/s,l=Math.floor(l*s)/s;else break;u=s}return e},e}function ss(){var e=qv();return e.copy=function(){return Sl(e,ss())},Gt.apply(e,arguments),bn(e)}function bO(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,ls),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return bO(e).unknown(t)},e=arguments.length?Array.from(e,ls):[0,1],bn(r)}function xO(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return aMath.pow(e,t)}function g5(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 w0(e){return(t,r)=>-e(-t,r)}function Yv(e){const t=e(b0,x0),r=t.domain;let n=10,i,a;function o(){return i=g5(n),a=m5(n),r()[0]<0?(i=w0(i),a=w0(a),e(h5,v5)):e(b0,x0),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(r(l),o()):r()},t.ticks=l=>{const u=r();let s=u[0],f=u[u.length-1];const c=f0){for(;d<=p;++d)for(y=1;yf)break;m.push(h)}}else for(;d<=p;++d)for(y=n-1;y>=1;--y)if(h=d>0?y/a(-d):y*a(d),!(hf)break;m.push(h)}m.length*2{if(l==null&&(l=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=Uo(u)).precision==null&&(u.trim=!0),u=Xv(u)),l===1/0)return u;const s=Math.max(1,n*l/t.ticks().length);return f=>{let c=f/a(Math.round(i(f)));return c*nr(xO(r(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function wO(){const e=Yv(Ac()).domain([1,10]);return e.copy=()=>Sl(e,wO()).base(e.base()),Gt.apply(e,arguments),e}function S0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function O0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Qv(e){var t=1,r=e(S0(t),O0(t));return r.constant=function(n){return arguments.length?e(S0(t=+n),O0(t)):t},bn(r)}function SO(){var e=Qv(Ac());return e.copy=function(){return Sl(e,SO()).constant(e.constant())},Gt.apply(e,arguments)}function _0(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function b5(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function x5(e){return e<0?-e*e:e*e}function Zv(e){var t=e(ct,ct),r=1;function n(){return r===1?e(ct,ct):r===.5?e(b5,x5):e(_0(r),_0(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},bn(t)}function Jv(){var e=Zv(Ac());return e.copy=function(){return Sl(e,Jv()).exponent(e.exponent())},Gt.apply(e,arguments),e}function w5(){return Jv.apply(null,arguments).exponent(.5)}function P0(e){return Math.sign(e)*e*e}function S5(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function OO(){var e=qv(),t=[0,1],r=!1,n;function i(a){var o=S5(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(P0(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,ls)).map(P0)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return OO(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Gt.apply(i,arguments),bn(i)}function _O(){var e=[],t=[],r=[],n;function i(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o0?r[l-1]:e[0],l=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return PO().domain([e,t]).range(i).unknown(a)},Gt.apply(bn(o),arguments)}function AO(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[xl(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=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?(r=a,i):r},i.copy=function(){return AO().domain(e).range(t).unknown(r)},Gt.apply(i,arguments)}const Ff=new Date,Uf=new Date;function Ve(e,t,r,n){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),l=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const u=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a0))return u;let s;do u.push(s=new Date(+a)),t(a,l),e(a);while(sVe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Ff.setTime(+a),Uf.setTime(+o),e(Ff),e(Uf),Math.floor(r(Ff,Uf))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const cs=Ve(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);cs.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ve(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):cs);cs.range;const Or=1e3,Ft=Or*60,_r=Ft*60,Nr=_r*24,ey=Nr*7,A0=Nr*30,Wf=Nr*365,Ln=Ve(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Or)},(e,t)=>(t-e)/Or,e=>e.getUTCSeconds());Ln.range;const ty=Ve(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Or)},(e,t)=>{e.setTime(+e+t*Ft)},(e,t)=>(t-e)/Ft,e=>e.getMinutes());ty.range;const ry=Ve(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ft)},(e,t)=>(t-e)/Ft,e=>e.getUTCMinutes());ry.range;const ny=Ve(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Or-e.getMinutes()*Ft)},(e,t)=>{e.setTime(+e+t*_r)},(e,t)=>(t-e)/_r,e=>e.getHours());ny.range;const iy=Ve(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*_r)},(e,t)=>(t-e)/_r,e=>e.getUTCHours());iy.range;const Ol=Ve(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ft)/Nr,e=>e.getDate()-1);Ol.range;const Ec=Ve(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Nr,e=>e.getUTCDate()-1);Ec.range;const EO=Ve(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Nr,e=>Math.floor(e/Nr));EO.range;function ni(e){return Ve(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ft)/ey)}const $c=ni(0),fs=ni(1),O5=ni(2),_5=ni(3),Qi=ni(4),P5=ni(5),A5=ni(6);$c.range;fs.range;O5.range;_5.range;Qi.range;P5.range;A5.range;function ii(e){return Ve(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/ey)}const Tc=ii(0),ds=ii(1),E5=ii(2),$5=ii(3),Zi=ii(4),T5=ii(5),j5=ii(6);Tc.range;ds.range;E5.range;$5.range;Zi.range;T5.range;j5.range;const ay=Ve(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());ay.range;const oy=Ve(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());oy.range;const Ir=Ve(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());Ir.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ve(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Ir.range;const Dr=Ve(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());Dr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ve(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Dr.range;function $O(e,t,r,n,i,a){const o=[[Ln,1,Or],[Ln,5,5*Or],[Ln,15,15*Or],[Ln,30,30*Or],[a,1,Ft],[a,5,5*Ft],[a,15,15*Ft],[a,30,30*Ft],[i,1,_r],[i,3,3*_r],[i,6,6*_r],[i,12,12*_r],[n,1,Nr],[n,2,2*Nr],[r,1,ey],[t,1,A0],[t,3,3*A0],[e,1,Wf]];function l(s,f,c){const d=fx).right(o,d);if(p===o.length)return e.every(_p(s/Wf,f/Wf,c));if(p===0)return cs.every(Math.max(_p(s,f,c),1));const[y,h]=o[d/o[p-1][2]53)return null;"w"in z||(z.w=1),"Z"in z?(ae=Vf(za(z.y,0,1)),Le=ae.getUTCDay(),ae=Le>4||Le===0?ds.ceil(ae):ds(ae),ae=Ec.offset(ae,(z.V-1)*7),z.y=ae.getUTCFullYear(),z.m=ae.getUTCMonth(),z.d=ae.getUTCDate()+(z.w+6)%7):(ae=Hf(za(z.y,0,1)),Le=ae.getDay(),ae=Le>4||Le===0?fs.ceil(ae):fs(ae),ae=Ol.offset(ae,(z.V-1)*7),z.y=ae.getFullYear(),z.m=ae.getMonth(),z.d=ae.getDate()+(z.w+6)%7)}else("W"in z||"U"in z)&&("w"in z||(z.w="u"in z?z.u%7:"W"in z?1:0),Le="Z"in z?Vf(za(z.y,0,1)).getUTCDay():Hf(za(z.y,0,1)).getDay(),z.m=0,z.d="W"in z?(z.w+6)%7+z.W*7-(Le+5)%7:z.w+z.U*7-(Le+6)%7);return"Z"in z?(z.H+=z.Z/100|0,z.M+=z.Z%100,Vf(z)):Hf(z)}}function _(K,J,ee,z){for(var je=0,ae=J.length,Le=ee.length,Be,vt;je=Le)return-1;if(Be=J.charCodeAt(je++),Be===37){if(Be=J.charAt(je++),vt=b[Be in E0?J.charAt(je++):Be],!vt||(z=vt(K,ee,z))<0)return-1}else if(Be!=ee.charCodeAt(z++))return-1}return z}function P(K,J,ee){var z=s.exec(J.slice(ee));return z?(K.p=f.get(z[0].toLowerCase()),ee+z[0].length):-1}function T(K,J,ee){var z=p.exec(J.slice(ee));return z?(K.w=y.get(z[0].toLowerCase()),ee+z[0].length):-1}function $(K,J,ee){var z=c.exec(J.slice(ee));return z?(K.w=d.get(z[0].toLowerCase()),ee+z[0].length):-1}function k(K,J,ee){var z=m.exec(J.slice(ee));return z?(K.m=v.get(z[0].toLowerCase()),ee+z[0].length):-1}function M(K,J,ee){var z=h.exec(J.slice(ee));return z?(K.m=x.get(z[0].toLowerCase()),ee+z[0].length):-1}function D(K,J,ee){return _(K,t,J,ee)}function N(K,J,ee){return _(K,r,J,ee)}function R(K,J,ee){return _(K,n,J,ee)}function L(K){return o[K.getDay()]}function j(K){return a[K.getDay()]}function I(K){return u[K.getMonth()]}function F(K){return l[K.getMonth()]}function V(K){return i[+(K.getHours()>=12)]}function W(K){return 1+~~(K.getMonth()/3)}function X(K){return o[K.getUTCDay()]}function ie(K){return a[K.getUTCDay()]}function _e(K){return u[K.getUTCMonth()]}function Me(K){return l[K.getUTCMonth()]}function Mt(K){return i[+(K.getUTCHours()>=12)]}function ht(K){return 1+~~(K.getUTCMonth()/3)}return{format:function(K){var J=w(K+="",g);return J.toString=function(){return K},J},parse:function(K){var J=O(K+="",!1);return J.toString=function(){return K},J},utcFormat:function(K){var J=w(K+="",S);return J.toString=function(){return K},J},utcParse:function(K){var J=O(K+="",!0);return J.toString=function(){return K},J}}}var E0={"-":"",_:" ",0:"0"},Ye=/^\s*\d+/,D5=/^%/,R5=/[\\^$*+?|[\]().{}]/g;function le(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a[t.toLowerCase(),r]))}function B5(e,t,r){var n=Ye.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function z5(e,t,r){var n=Ye.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function F5(e,t,r){var n=Ye.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function U5(e,t,r){var n=Ye.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function W5(e,t,r){var n=Ye.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function $0(e,t,r){var n=Ye.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function T0(e,t,r){var n=Ye.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function H5(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function V5(e,t,r){var n=Ye.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function K5(e,t,r){var n=Ye.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function j0(e,t,r){var n=Ye.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function q5(e,t,r){var n=Ye.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function k0(e,t,r){var n=Ye.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function G5(e,t,r){var n=Ye.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function X5(e,t,r){var n=Ye.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Y5(e,t,r){var n=Ye.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Q5(e,t,r){var n=Ye.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Z5(e,t,r){var n=D5.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function J5(e,t,r){var n=Ye.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function e6(e,t,r){var n=Ye.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function C0(e,t){return le(e.getDate(),t,2)}function t6(e,t){return le(e.getHours(),t,2)}function r6(e,t){return le(e.getHours()%12||12,t,2)}function n6(e,t){return le(1+Ol.count(Ir(e),e),t,3)}function TO(e,t){return le(e.getMilliseconds(),t,3)}function i6(e,t){return TO(e,t)+"000"}function a6(e,t){return le(e.getMonth()+1,t,2)}function o6(e,t){return le(e.getMinutes(),t,2)}function l6(e,t){return le(e.getSeconds(),t,2)}function u6(e){var t=e.getDay();return t===0?7:t}function s6(e,t){return le($c.count(Ir(e)-1,e),t,2)}function jO(e){var t=e.getDay();return t>=4||t===0?Qi(e):Qi.ceil(e)}function c6(e,t){return e=jO(e),le(Qi.count(Ir(e),e)+(Ir(e).getDay()===4),t,2)}function f6(e){return e.getDay()}function d6(e,t){return le(fs.count(Ir(e)-1,e),t,2)}function p6(e,t){return le(e.getFullYear()%100,t,2)}function h6(e,t){return e=jO(e),le(e.getFullYear()%100,t,2)}function v6(e,t){return le(e.getFullYear()%1e4,t,4)}function y6(e,t){var r=e.getDay();return e=r>=4||r===0?Qi(e):Qi.ceil(e),le(e.getFullYear()%1e4,t,4)}function m6(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+le(t/60|0,"0",2)+le(t%60,"0",2)}function M0(e,t){return le(e.getUTCDate(),t,2)}function g6(e,t){return le(e.getUTCHours(),t,2)}function b6(e,t){return le(e.getUTCHours()%12||12,t,2)}function x6(e,t){return le(1+Ec.count(Dr(e),e),t,3)}function kO(e,t){return le(e.getUTCMilliseconds(),t,3)}function w6(e,t){return kO(e,t)+"000"}function S6(e,t){return le(e.getUTCMonth()+1,t,2)}function O6(e,t){return le(e.getUTCMinutes(),t,2)}function _6(e,t){return le(e.getUTCSeconds(),t,2)}function P6(e){var t=e.getUTCDay();return t===0?7:t}function A6(e,t){return le(Tc.count(Dr(e)-1,e),t,2)}function CO(e){var t=e.getUTCDay();return t>=4||t===0?Zi(e):Zi.ceil(e)}function E6(e,t){return e=CO(e),le(Zi.count(Dr(e),e)+(Dr(e).getUTCDay()===4),t,2)}function $6(e){return e.getUTCDay()}function T6(e,t){return le(ds.count(Dr(e)-1,e),t,2)}function j6(e,t){return le(e.getUTCFullYear()%100,t,2)}function k6(e,t){return e=CO(e),le(e.getUTCFullYear()%100,t,2)}function C6(e,t){return le(e.getUTCFullYear()%1e4,t,4)}function M6(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Zi(e):Zi.ceil(e),le(e.getUTCFullYear()%1e4,t,4)}function N6(){return"+0000"}function N0(){return"%"}function I0(e){return+e}function D0(e){return Math.floor(+e/1e3)}var si,MO,NO;I6({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 I6(e){return si=I5(e),MO=si.format,si.parse,NO=si.utcFormat,si.utcParse,si}function D6(e){return new Date(e)}function R6(e){return e instanceof Date?+e:+new Date(+e)}function ly(e,t,r,n,i,a,o,l,u,s){var f=qv(),c=f.invert,d=f.domain,p=s(".%L"),y=s(":%S"),h=s("%I:%M"),x=s("%I %p"),m=s("%a %d"),v=s("%b %d"),g=s("%B"),S=s("%Y");function b(w){return(u(w)t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>A8(e,a/n))},r.copy=function(){return LO(t).domain(e)},Ur.apply(r,arguments)}function kc(){var e=0,t=.5,r=1,n=1,i,a,o,l,u,s=ct,f,c=!1,d;function p(h){return isNaN(h=+h)?d:(h=.5+((h=+f(h))-a)*(n*ht}var UO=H6,V6=Cc,K6=UO,q6=Pa;function G6(e){return e&&e.length?V6(e,q6,K6):void 0}var X6=G6;const Mc=pe(X6);function Y6(e,t){return ee.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=ne.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};G.decimalPlaces=G.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Se;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};G.dividedBy=G.div=function(e){return Tr(this,new this.constructor(e))};G.dividedToIntegerBy=G.idiv=function(e){var t=this,r=t.constructor;return he(Tr(t,new r(e),0,1),r.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,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(At))throw Error(Kt+"NaN");if(r.s<1)throw Error(Kt+(r.s?"NaN":"-Infinity"));return r.eq(At)?new n(0):(Ae=!1,t=Tr(Wo(r,a),Wo(e,a),a),Ae=!0,he(t,i))};G.minus=G.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?qO(t,e):VO(t,(e.s=-e.s,e))};G.modulo=G.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Kt+"NaN");return r.s?(Ae=!1,t=Tr(r,e,0,1).times(e),Ae=!0,r.minus(t)):he(new n(r),i)};G.naturalExponential=G.exp=function(){return KO(this)};G.naturalLogarithm=G.ln=function(){return Wo(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?VO(t,e):qO(t,(e.s=-e.s,e))};G.precision=G.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Wn+e);if(t=Re(i)+1,n=i.d.length-1,r=n*Se+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};G.squareRoot=G.sqrt=function(){var e,t,r,n,i,a,o,l=this,u=l.constructor;if(l.s<1){if(!l.s)return new u(0);throw Error(Kt+"NaN")}for(e=Re(l),Ae=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=sr(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=$a((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),n=new u(t)):n=new u(i.toString()),r=u.precision,i=o=r+3;;)if(a=n,n=a.plus(Tr(l,a,o+2)).times(.5),sr(a.d).slice(0,o)===(t=sr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(he(a,r+1,0),a.times(a).eq(l)){n=a;break}}else if(t!="9999")break;o+=4}return Ae=!0,he(n,r)};G.times=G.mul=function(e){var t,r,n,i,a,o,l,u,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,r=f.e+e.e,u=d.length,s=p.length,u=0;){for(t=0,i=u+n;i>n;)l=a[i]+p[n]*d[i-n-1]+t,a[i--]=l%Ke|0,t=l/Ke|0;a[i]=(a[i]+t)%Ke|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Ae?he(e,c.precision):e};G.toDecimalPlaces=G.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(hr(e,0,Ea),t===void 0?t=n.rounding:hr(t,0,8),he(r,e+Re(r)+1,t))};G.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Zn(n,!0):(hr(e,0,Ea),t===void 0?t=i.rounding:hr(t,0,8),n=he(new i(n),e+1,t),r=Zn(n,!0,e+1)),r};G.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Zn(i):(hr(e,0,Ea),t===void 0?t=a.rounding:hr(t,0,8),n=he(new a(i),e+Re(i)+1,t),r=Zn(n.abs(),!1,e+Re(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};G.toInteger=G.toint=function(){var e=this,t=e.constructor;return he(new t(e),Re(e)+1,t.rounding)};G.toNumber=function(){return+this};G.toPower=G.pow=function(e){var t,r,n,i,a,o,l=this,u=l.constructor,s=12,f=+(e=new u(e));if(!e.s)return new u(At);if(l=new u(l),!l.s){if(e.s<1)throw Error(Kt+"Infinity");return l}if(l.eq(At))return l;if(n=u.precision,e.eq(At))return he(l,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=l.s,o){if((r=f<0?-f:f)<=HO){for(i=new u(At),t=Math.ceil(n/Se+4),Ae=!1;r%2&&(i=i.times(l),B0(i.d,t)),r=$a(r/2),r!==0;)l=l.times(l),B0(l.d,t);return Ae=!0,e.s<0?new u(At).div(i):he(i,n)}}else if(a<0)throw Error(Kt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,l.s=1,Ae=!1,i=e.times(Wo(l,n+s)),Ae=!0,i=KO(i),i.s=a,i};G.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Re(i),n=Zn(i,r<=a.toExpNeg||r>=a.toExpPos)):(hr(e,1,Ea),t===void 0?t=a.rounding:hr(t,0,8),i=he(new a(i),e,t),r=Re(i),n=Zn(i,e<=r||r<=a.toExpNeg,e)),n};G.toSignificantDigits=G.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(hr(e,1,Ea),t===void 0?t=n.rounding:hr(t,0,8)),he(new n(r),e,t)};G.toString=G.valueOf=G.val=G.toJSON=G[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Re(e),r=e.constructor;return Zn(e,t<=r.toExpNeg||t>=r.toExpPos)};function VO(e,t){var r,n,i,a,o,l,u,s,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Ae?he(t,c):t;if(u=e.d,s=t.d,o=e.e,i=t.e,u=u.slice(),a=o-i,a){for(a<0?(n=u,a=-a,l=s.length):(n=s,i=o,l=u.length),o=Math.ceil(c/Se),l=o>l?o+1:l+1,a>l&&(a=l,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(l=u.length,a=s.length,l-a<0&&(a=l,n=s,s=u,u=n),r=0;a;)r=(u[--a]=u[a]+s[a]+r)/Ke|0,u[a]%=Ke;for(r&&(u.unshift(r),++i),l=u.length;u[--l]==0;)u.pop();return t.d=u,t.e=i,Ae?he(t,c):t}function hr(e,t,r){if(e!==~~e||er)throw Error(Wn+e)}function sr(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(l=u=0;li[l]?1:-1;break}return u}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]1;)n.shift()}return function(n,i,a,o){var l,u,s,f,c,d,p,y,h,x,m,v,g,S,b,w,O,_,P=n.constructor,T=n.s==i.s?1:-1,$=n.d,k=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(Kt+"Division by zero");for(u=n.e-i.e,O=k.length,b=$.length,p=new P(T),y=p.d=[],s=0;k[s]==($[s]||0);)++s;if(k[s]>($[s]||0)&&--u,a==null?v=a=P.precision:o?v=a+(Re(n)-Re(i))+1:v=a,v<0)return new P(0);if(v=v/Se+2|0,s=0,O==1)for(f=0,k=k[0],v++;(s1&&(k=e(k,f),$=e($,f),O=k.length,b=$.length),S=O,h=$.slice(0,O),x=h.length;x=Ke/2&&++w;do f=0,l=t(k,h,O,x),l<0?(m=h[0],O!=x&&(m=m*Ke+(h[1]||0)),f=m/w|0,f>1?(f>=Ke&&(f=Ke-1),c=e(k,f),d=c.length,x=h.length,l=t(c,h,d,x),l==1&&(f--,r(c,O16)throw Error(cy+Re(e));if(!e.s)return new f(At);for(t==null?(Ae=!1,l=c):l=t,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(kn(2,s))/Math.LN10*2+5|0,l+=n,r=i=a=new f(At),f.precision=l;;){if(i=he(i.times(e),l),r=r.times(++u),o=a.plus(Tr(i,r,l)),sr(o.d).slice(0,l)===sr(a.d).slice(0,l)){for(;s--;)a=he(a.times(a),l);return f.precision=c,t==null?(Ae=!0,he(a,c)):a}a=o}}function Re(e){for(var t=e.e*Se,r=e.d[0];r>=10;r/=10)t++;return t}function Kf(e,t,r){if(t>e.LN10.sd())throw Ae=!0,r&&(e.precision=r),Error(Kt+"LN10 precision limit exceeded");return he(new e(e.LN10),t)}function Xr(e){for(var t="";e--;)t+="0";return t}function Wo(e,t){var r,n,i,a,o,l,u,s,f,c=1,d=10,p=e,y=p.d,h=p.constructor,x=h.precision;if(p.s<1)throw Error(Kt+(p.s?"NaN":"-Infinity"));if(p.eq(At))return new h(0);if(t==null?(Ae=!1,s=x):s=t,p.eq(10))return t==null&&(Ae=!0),Kf(h,s);if(s+=d,h.precision=s,r=sr(y),n=r.charAt(0),a=Re(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=sr(p.d),n=r.charAt(0),c++;a=Re(p),n>1?(p=new h("0."+r),a++):p=new h(n+"."+r.slice(1))}else return u=Kf(h,s+2,x).times(a+""),p=Wo(new h(n+"."+r.slice(1)),s-d).plus(u),h.precision=x,t==null?(Ae=!0,he(p,x)):p;for(l=o=p=Tr(p.minus(At),p.plus(At),s),f=he(p.times(p),s),i=3;;){if(o=he(o.times(f),s),u=l.plus(Tr(o,new h(i),s)),sr(u.d).slice(0,s)===sr(l.d).slice(0,s))return l=l.times(2),a!==0&&(l=l.plus(Kf(h,s+2,x).times(a+""))),l=Tr(l,new h(c),s),h.precision=x,t==null?(Ae=!0,he(l,x)):l;l=u,i+=2}}function L0(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=$a(r/Se),e.d=[],n=(r+1)%Se,r<0&&(n+=Se),nps||e.e<-ps))throw Error(cy+r)}else e.s=0,e.e=0,e.d=[0];return e}function he(e,t,r){var n,i,a,o,l,u,s,f,c=e.d;for(o=1,a=c[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Se,i=t,s=c[f=0];else{if(f=Math.ceil((n+1)/Se),a=c.length,f>=a)return e;for(s=a=c[f],o=1;a>=10;a/=10)o++;n%=Se,i=n-Se+o}if(r!==void 0&&(a=kn(10,o-i-1),l=s/a%10|0,u=t<0||c[f+1]!==void 0||s%a,u=r<4?(l||u)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||u||r==6&&(n>0?i>0?s/kn(10,o-i):0:c[f-1])%10&1||r==(e.s<0?8:7))),t<1||!c[0])return u?(a=Re(e),c.length=1,t=t-a-1,c[0]=kn(10,(Se-t%Se)%Se),e.e=$a(-t/Se)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(n==0?(c.length=f,a=1,f--):(c.length=f+1,a=kn(10,Se-n),c[f]=i>0?(s/kn(10,o-i)%kn(10,i)|0)*a:0),u)for(;;)if(f==0){(c[0]+=a)==Ke&&(c[0]=1,++e.e);break}else{if(c[f]+=a,c[f]!=Ke)break;c[f--]=0,a=1}for(n=c.length;c[--n]===0;)c.pop();if(Ae&&(e.e>ps||e.e<-ps))throw Error(cy+Re(e));return e}function qO(e,t){var r,n,i,a,o,l,u,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),Ae?he(t,p):t;if(u=e.d,c=t.d,n=t.e,s=e.e,u=u.slice(),o=s-n,o){for(f=o<0,f?(r=u,o=-o,l=c.length):(r=c,n=s,l=u.length),i=Math.max(Math.ceil(p/Se),l)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=u.length,l=c.length,f=i0;--i)u[l++]=0;for(i=c.length;i>o;){if(u[--i]0?a=a.charAt(0)+"."+a.slice(1)+Xr(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Xr(-i-1)+a,r&&(n=r-o)>0&&(a+=Xr(n))):i>=o?(a+=Xr(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Xr(n))):((n=i+1)0&&(i+1===o&&(a+="."),a+=Xr(n))),e.s<0?"-"+a:a}function B0(e,t){if(e.length>t)return e.length=t,!0}function GO(e){var t,r,n;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(Wn+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 L0(o,a.toString())}else if(typeof a!="string")throw Error(Wn+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,mz.test(a))L0(o,a);else throw Error(Wn+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=GO,i.config=i.set=gz,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Wn+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Wn+r+": "+n);return this}var fy=GO(yz);At=new fy(1);const de=fy;function bz(e){return Oz(e)||Sz(e)||wz(e)||xz()}function xz(){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 wz(e,t){if(e){if(typeof e=="string")return Tp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tp(e,t)}}function Sz(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Oz(e){if(Array.isArray(e))return Tp(e)}function Tp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,i):e(t-o,z0(function(){for(var l=arguments.length,u=new Array(l),s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(n=(l=o.next()).done)&&(r.push(l.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function Lz(e){if(Array.isArray(e))return e}function JO(e){var t=Ho(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function e_(e,t,r){if(e.lte(0))return new de(0);var n=Rc.getDigitCount(e.toNumber()),i=new de(10).pow(n),a=e.div(i),o=n!==1?.05:.1,l=new de(Math.ceil(a.div(o).toNumber())).add(r).mul(o),u=l.mul(i);return t?u:new de(Math.ceil(u))}function Bz(e,t,r){var n=1,i=new de(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new de(10).pow(Rc.getDigitCount(e)-1),i=new de(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new de(Math.floor(e)))}else e===0?i=new de(Math.floor((t-1)/2)):r||(i=new de(Math.floor(e)));var o=Math.floor((t-1)/2),l=Ez(Az(function(u){return i.add(new de(u-o).mul(n)).toNumber()}),jp);return l(0,t)}function t_(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new de(0),tickMin:new de(0),tickMax:new de(0)};var a=e_(new de(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new de(0):(o=new de(e).add(t).div(2),o=o.sub(new de(o).mod(a)));var l=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new de(t).sub(o).div(a).toNumber()),s=l+u+1;return s>r?t_(e,t,r,n,i+1):(s0?u+(r-s):u,l=t>0?l:l+(r-s)),{step:a,tickMin:o.sub(new de(l).mul(a)),tickMax:o.add(new de(u).mul(a))})}function zz(e){var t=Ho(e,2),r=t[0],n=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),l=JO([r,n]),u=Ho(l,2),s=u[0],f=u[1];if(s===-1/0||f===1/0){var c=f===1/0?[s].concat(Cp(jp(0,i-1).map(function(){return 1/0}))):[].concat(Cp(jp(0,i-1).map(function(){return-1/0})),[f]);return r>n?kp(c):c}if(s===f)return Bz(s,i,a);var d=t_(s,f,o,a),p=d.step,y=d.tickMin,h=d.tickMax,x=Rc.rangeStep(y,h.add(new de(.1).mul(p)),p);return r>n?kp(x):x}function Fz(e,t){var r=Ho(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=JO([n,i]),l=Ho(o,2),u=l[0],s=l[1];if(u===-1/0||s===1/0)return[n,i];if(u===s)return[u];var f=Math.max(t,2),c=e_(new de(s).sub(u).div(f-1),a,0),d=[].concat(Cp(Rc.rangeStep(new de(u),new de(s).sub(new de(.99).mul(c)),c)),[s]);return n>i?kp(d):d}var Uz=QO(zz),Wz=QO(Fz),Hz="Invariant failed";function Jn(e,t){throw new Error(Hz)}var Vz=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ji(e){"@babel/helpers - typeof";return Ji=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},Ji(e)}function hs(){return hs=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Zz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Jz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eF(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,l=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var u=a.range,s=0;s0?i[s-1].coordinate:i[l-1].coordinate,c=i[s].coordinate,d=s>=l-1?i[0].coordinate:i[s+1].coordinate,p=void 0;if(ut(c-f)!==ut(d-c)){var y=[];if(ut(d-c)===ut(u[1]-u[0])){p=d;var h=c+u[1]-u[0];y[0]=Math.min(h,(h+f)/2),y[1]=Math.max(h,(h+f)/2)}else{p=f;var x=d+u[1]-u[0];y[0]=Math.min(c,(x+c)/2),y[1]=Math.max(c,(x+c)/2)}var m=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(t>m[0]&&t<=m[1]||t>=y[0]&&t<=y[1]){o=i[s].index;break}}else{var v=Math.min(f,d),g=Math.max(f,d);if(t>(v+c)/2&&t<=(g+c)/2){o=i[s].index;break}}}else for(var S=0;S0&&S(n[S].coordinate+n[S-1].coordinate)/2&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S===l-1&&t>(n[S].coordinate+n[S-1].coordinate)/2){o=n[S].index;break}return o},dy=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ce(Ce({},t.type.defaultProps),t.props):t.props,o=a.stroke,l=a.fill,u;switch(i){case"Line":u=o;break;case"Area":case"Radar":u=o&&o!=="none"?o:l;break;default:u=l;break}return u},mF=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},l=Object.keys(a),u=0,s=l.length;u=0});if(m&&m.length){var v=m[0].type.defaultProps,g=v!==void 0?Ce(Ce({},v),m[0].props):m[0].props,S=g.barSize,b=g[x];o[b]||(o[b]=[]);var w=re(S)?r:S;o[b].push({item:m[0],stackList:m.slice(1),barSize:re(w)?void 0:st(w,n,0)})}}return o},gF=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,l=t.maxBarSize,u=o.length;if(u<1)return null;var s=st(r,i,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/u,y=o.reduce(function(S,b){return S+b.barSize||0},0);y+=(u-1)*s,y>=i&&(y-=(u-1)*s,s=0),y>=i&&p>0&&(d=!0,p*=.9,y=u*p);var h=(i-y)/2>>0,x={offset:h-s,size:0};f=o.reduce(function(S,b){var w={item:b.item,position:{offset:x.offset+x.size+s,size:d?p:b.barSize}},O=[].concat(W0(S),[w]);return x=O[O.length-1].position,b.stackList&&b.stackList.length&&b.stackList.forEach(function(_){O.push({item:_,position:x})}),O},c)}else{var m=st(n,i,0,!0);i-2*m-(u-1)*s<=0&&(s=0);var v=(i-2*m-(u-1)*s)/u;v>1&&(v>>=0);var g=l===+l?Math.min(v,l):v;f=o.reduce(function(S,b,w){var O=[].concat(W0(S),[{item:b.item,position:{offset:m+(v+s)*w+(v-g)/2,size:g}}]);return b.stackList&&b.stackList.length&&b.stackList.forEach(function(_){O.push({item:_,position:O[O.length-1].position})}),O},c)}return f},bF=function(t,r,n,i){var a=n.children,o=n.width,l=n.margin,u=o-(l.left||0)-(l.right||0),s=a_({children:a,legendWidth:u});if(s){var f=i||{},c=f.width,d=f.height,p=s.align,y=s.verticalAlign,h=s.layout;if((h==="vertical"||h==="horizontal"&&y==="middle")&&p!=="center"&&H(t[p]))return Ce(Ce({},t),{},Ri({},p,t[p]+(c||0)));if((h==="horizontal"||h==="vertical"&&p==="center")&&y!=="middle"&&H(t[y]))return Ce(Ce({},t),{},Ri({},y,t[y]+(d||0)))}return t},xF=function(t,r,n){return re(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},o_=function(t,r,n,i,a){var o=r.props.children,l=Wt(o,Lc).filter(function(s){return xF(i,a,s.props.direction)});if(l&&l.length){var u=l.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var c=at(f,n);if(re(c))return s;var d=Array.isArray(c)?[Nc(c),Mc(c)]:[c,c],p=u.reduce(function(y,h){var x=at(f,h,0),m=d[0]-Math.abs(Array.isArray(x)?x[0]:x),v=d[1]+Math.abs(Array.isArray(x)?x[1]:x);return[Math.min(m,y[0]),Math.max(v,y[1])]},[1/0,-1/0]);return[Math.min(p[0],s[0]),Math.max(p[1],s[1])]},[1/0,-1/0])}return null},wF=function(t,r,n,i,a){var o=r.map(function(l){return o_(t,l,n,a,i)}).filter(function(l){return!re(l)});return o&&o.length?o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]):null},l_=function(t,r,n,i,a){var o=r.map(function(u){var s=u.props.dataKey;return n==="number"&&s&&o_(t,u,s,i)||so(t,s,n,a)});if(n==="number")return o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]);var l={};return o.reduce(function(u,s){for(var f=0,c=s.length;f=2?ut(l[0]-l[1])*2*s:s,r&&(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!gl(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&&!n?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}})},qf=new WeakMap,Jl=function(t,r){if(typeof r!="function")return t;qf.has(t)||qf.set(t,new WeakMap);var n=qf.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},s_=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,l=t.axisType;if(i==="auto")return o==="radial"&&l==="radiusAxis"?{scale:Lo(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:ss(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:uo(),realScaleType:"point"}:a==="category"?{scale:Lo(),realScaleType:"band"}:{scale:ss(),realScaleType:"linear"};if(Xn(i)){var u="scale".concat(gc(i));return{scale:(R0[u]||uo)(),realScaleType:R0[u]?u:"point"}}return Z(i)?{scale:i}:{scale:uo(),realScaleType:"point"}},V0=1e-4,c_=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-V0,o=Math.max(i[0],i[1])+V0,l=t(r[0]),u=t(r[n-1]);(lo||uo)&&t.domain([r[0],r[n-1]])}},SF=function(t,r){if(!t)return null;for(var n=0,i=t.length;ni)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]=0?(t[l][n][0]=a,t[l][n][1]=a+u,a=t[l][n][1]):(t[l][n][0]=o,t[l][n][1]=o+u,o=t[l][n][1])}},PF=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n=0?(t[o][n][0]=a,t[o][n][1]=a+l,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},AF={sign:_F,expand:HC,none:Vi,silhouette:VC,wiggle:KC,positive:PF},EF=function(t,r,n){var i=r.map(function(l){return l.props.dataKey}),a=AF[n],o=WC().keys(i).value(function(l,u){return+at(l,u,0)}).order(ap).offset(a);return o(t)},$F=function(t,r,n,i,a,o){if(!t)return null;var l=o?r.reverse():r,u={},s=l.reduce(function(c,d){var p,y=(p=d.type)!==null&&p!==void 0&&p.defaultProps?Ce(Ce({},d.type.defaultProps),d.props):d.props,h=y.stackId,x=y.hide;if(x)return c;var m=y[n],v=c[m]||{hasStack:!1,stackGroups:{}};if(He(h)){var g=v.stackGroups[h]||{numericAxisId:n,cateAxisId:i,items:[]};g.items.push(d),v.hasStack=!0,v.stackGroups[h]=g}else v.stackGroups[bl("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Ce(Ce({},c),{},Ri({},m,v))},u),f={};return Object.keys(s).reduce(function(c,d){var p=s[d];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(h,x){var m=p.stackGroups[x];return Ce(Ce({},h),{},Ri({},x,{numericAxisId:n,cateAxisId:i,items:m.items,stackedData:EF(t,m.items,a)}))},y)}return Ce(Ce({},c),{},Ri({},d,p))},f)},f_=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,l=r.allowDecimals,u=n||r.scale;if(u!=="auto"&&u!=="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=Uz(s,a,l);return t.domain([Nc(f),Mc(f)]),{niceTicks:f}}if(a&&i==="number"){var c=t.domain(),d=Wz(c,a,l);return{niceTicks:d}}return null},K0=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,l=t.index;if(r.type==="category")return n[l]?n[l].coordinate+i:null;var u=at(o,r.dataKey,r.domain[l]);return re(u)?null:r.scale(u)-a/2+i},TF=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},jF=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ce(Ce({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(He(a)){var o=r[a];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},kF=function(t){return t.reduce(function(r,n){return[Nc(n.concat([r[0]]).filter(H)),Mc(n.concat([r[1]]).filter(H))]},[1/0,-1/0])},d_=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],l=o.stackedData,u=l.reduce(function(s,f){var c=kF(f.slice(r,n+1));return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);return[Math.min(u[0],i[0]),Math.max(u[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},q0=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,G0=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Dp=function(t,r,n){if(Z(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(H(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(q0.test(t[0])){var a=+q0.exec(t[0])[1];i[0]=r[0]-a}else Z(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(H(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(G0.test(t[1])){var o=+G0.exec(t[1])[1];i[1]=r[1]+o}else Z(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},ys=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=zv(r,function(c){return c.coordinate}),o=1/0,l=1,u=a.length;le.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},zF=function(t,r,n,i,a){var o=t.width,l=t.height,u=t.startAngle,s=t.endAngle,f=st(t.cx,o,o/2),c=st(t.cy,l,l/2),d=v_(o,l,n),p=st(t.innerRadius,d,0),y=st(t.outerRadius,d,d*.8),h=Object.keys(r);return h.reduce(function(x,m){var v=r[m],g=v.domain,S=v.reversed,b;if(re(v.range))i==="angleAxis"?b=[u,s]:i==="radiusAxis"&&(b=[p,y]),S&&(b=[b[1],b[0]]);else{b=v.range;var w=b,O=NF(w,2);u=O[0],s=O[1]}var _=s_(v,a),P=_.realScaleType,T=_.scale;T.domain(g).range(b),c_(T);var $=f_(T,br(br({},v),{},{realScaleType:P})),k=br(br(br({},v),$),{},{range:b,radius:y,realScaleType:P,scale:T,cx:f,cy:c,innerRadius:p,outerRadius:y,startAngle:u,endAngle:s});return br(br({},x),{},h_({},m,k))},{})},FF=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},UF=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,l=FF({x:n,y:i},{x:a,y:o});if(l<=0)return{radius:l};var u=(n-a)/l,s=Math.acos(u);return i>o&&(s=2*Math.PI-s),{radius:l,angle:BF(s),angleInRadian:s}},WF=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},HF=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),l=Math.min(a,o);return t+l*360},Z0=function(t,r){var n=t.x,i=t.y,a=UF({x:n,y:i},r),o=a.radius,l=a.angle,u=r.innerRadius,s=r.outerRadius;if(os)return!1;if(o===0)return!0;var f=WF(r),c=f.startAngle,d=f.endAngle,p=l,y;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 y?br(br({},r),{},{radius:o,angle:HF(p,r)}):null},y_=function(t){return!B.isValidElement(t)&&!Z(t)&&typeof t!="boolean"?t.className:""};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)}var VF=["offset"];function KF(e){return YF(e)||XF(e)||GF(e)||qF()}function qF(){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 GF(e,t){if(e){if(typeof e=="string")return Rp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rp(e,t)}}function XF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YF(e){if(Array.isArray(e))return Rp(e)}function Rp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ZF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function J0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;t=0?1:-1,g,S;i==="insideStart"?(g=p+v*o,S=h):i==="insideEnd"?(g=y-v*o,S=!h):i==="end"&&(g=y+v*o,S=h),S=m<=0?S:!S;var b=ge(s,f,x,g),w=ge(s,f,x,g+(S?1:-1)*359),O="M".concat(b.x,",").concat(b.y,` - A`).concat(x,",").concat(x,",0,1,").concat(S?0:1,`, - `).concat(w.x,",").concat(w.y),_=re(t.id)?bl("recharts-radial-line-"):t.id;return A.createElement("text",Xo({},n,{dominantBaseline:"central",className:te("recharts-radial-bar-label",l)}),A.createElement("defs",null,A.createElement("path",{id:_,d:O})),A.createElement("textPath",{xlinkHref:"#".concat(_)},r))},aU=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,l=a.cy,u=a.innerRadius,s=a.outerRadius,f=a.startAngle,c=a.endAngle,d=(f+c)/2;if(i==="outside"){var p=ge(o,l,s+n,d),y=p.x,h=p.y;return{x:y,y:h,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var x=(u+s)/2,m=ge(o,l,x,d),v=m.x,g=m.y;return{x:v,y:g,textAnchor:"middle",verticalAnchor:"middle"}},oU=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,l=o.x,u=o.y,s=o.width,f=o.height,c=f>=0?1:-1,d=c*i,p=c>0?"end":"start",y=c>0?"start":"end",h=s>=0?1:-1,x=h*i,m=h>0?"end":"start",v=h>0?"start":"end";if(a==="top"){var g={x:l+s/2,y:u-c*i,textAnchor:"middle",verticalAnchor:p};return Fe(Fe({},g),n?{height:Math.max(u-n.y,0),width:s}:{})}if(a==="bottom"){var S={x:l+s/2,y:u+f+d,textAnchor:"middle",verticalAnchor:y};return Fe(Fe({},S),n?{height:Math.max(n.y+n.height-(u+f),0),width:s}:{})}if(a==="left"){var b={x:l-x,y:u+f/2,textAnchor:m,verticalAnchor:"middle"};return Fe(Fe({},b),n?{width:Math.max(b.x-n.x,0),height:f}:{})}if(a==="right"){var w={x:l+s+x,y:u+f/2,textAnchor:v,verticalAnchor:"middle"};return Fe(Fe({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:f}:{})}var O=n?{width:s,height:f}:{};return a==="insideLeft"?Fe({x:l+x,y:u+f/2,textAnchor:v,verticalAnchor:"middle"},O):a==="insideRight"?Fe({x:l+s-x,y:u+f/2,textAnchor:m,verticalAnchor:"middle"},O):a==="insideTop"?Fe({x:l+s/2,y:u+d,textAnchor:"middle",verticalAnchor:y},O):a==="insideBottom"?Fe({x:l+s/2,y:u+f-d,textAnchor:"middle",verticalAnchor:p},O):a==="insideTopLeft"?Fe({x:l+x,y:u+d,textAnchor:v,verticalAnchor:y},O):a==="insideTopRight"?Fe({x:l+s-x,y:u+d,textAnchor:m,verticalAnchor:y},O):a==="insideBottomLeft"?Fe({x:l+x,y:u+f-d,textAnchor:v,verticalAnchor:p},O):a==="insideBottomRight"?Fe({x:l+s-x,y:u+f-d,textAnchor:m,verticalAnchor:p},O):ba(a)&&(H(a.x)||Dn(a.x))&&(H(a.y)||Dn(a.y))?Fe({x:l+st(a.x,s),y:u+st(a.y,f),textAnchor:"end",verticalAnchor:"end"},O):Fe({x:l+s/2,y:u+f/2,textAnchor:"middle",verticalAnchor:"middle"},O)},lU=function(t){return"cx"in t&&H(t.cx)};function Ge(e){var t=e.offset,r=t===void 0?5:t,n=QF(e,VF),i=Fe({offset:r},n),a=i.viewBox,o=i.position,l=i.value,u=i.children,s=i.content,f=i.className,c=f===void 0?"":f,d=i.textBreakAll;if(!a||re(l)&&re(u)&&!B.isValidElement(s)&&!Z(s))return null;if(B.isValidElement(s))return B.cloneElement(s,i);var p;if(Z(s)){if(p=B.createElement(s,i),B.isValidElement(p))return p}else p=rU(i);var y=lU(a),h=Q(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return iU(i,p,h);var x=y?aU(i):oU(i);return A.createElement(Qn,Xo({className:te("recharts-label",c)},h,x,{breakAll:d}),p)}Ge.displayName="Label";var m_=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,l=t.r,u=t.radius,s=t.innerRadius,f=t.outerRadius,c=t.x,d=t.y,p=t.top,y=t.left,h=t.width,x=t.height,m=t.clockWise,v=t.labelViewBox;if(v)return v;if(H(h)&&H(x)){if(H(c)&&H(d))return{x:c,y:d,width:h,height:x};if(H(p)&&H(y))return{x:p,y,width:h,height:x}}return H(c)&&H(d)?{x:c,y:d,width:0,height:0}:H(r)&&H(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||u||l||0,clockWise:m}:t.viewBox?t.viewBox:{}},uU=function(t,r){return t?t===!0?A.createElement(Ge,{key:"label-implicit",viewBox:r}):He(t)?A.createElement(Ge,{key:"label-implicit",viewBox:r,value:t}):B.isValidElement(t)?t.type===Ge?B.cloneElement(t,{key:"label-implicit",viewBox:r}):A.createElement(Ge,{key:"label-implicit",content:t,viewBox:r}):Z(t)?A.createElement(Ge,{key:"label-implicit",content:t,viewBox:r}):ba(t)?A.createElement(Ge,Xo({viewBox:r},t,{key:"label-implicit"})):null:null},sU=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=m_(t),o=Wt(i,Ge).map(function(u,s){return B.cloneElement(u,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var l=uU(t.label,r||a);return[l].concat(KF(o))};Ge.parseViewBox=m_;Ge.renderCallByParent=sU;function cU(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var fU=cU;const dU=pe(fU);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)}var pU=["valueAccessor"],hU=["data","dataKey","clockWise","id","textBreakAll"];function vU(e){return bU(e)||gU(e)||mU(e)||yU()}function yU(){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 mU(e,t){if(e){if(typeof e=="string")return Lp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lp(e,t)}}function gU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bU(e){if(Array.isArray(e))return Lp(e)}function Lp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function OU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var _U=function(t){return Array.isArray(t.value)?dU(t.value):t.value};function fn(e){var t=e.valueAccessor,r=t===void 0?_U:t,n=r1(e,pU),i=n.data,a=n.dataKey,o=n.clockWise,l=n.id,u=n.textBreakAll,s=r1(n,hU);return!i||!i.length?null:A.createElement(se,{className:"recharts-label-list"},i.map(function(f,c){var d=re(a)?r(f,c):at(f&&f.payload,a),p=re(l)?{}:{id:"".concat(l,"-").concat(c)};return A.createElement(Ge,gs({},Q(f,!0),s,p,{parentViewBox:f.parentViewBox,value:d,textBreakAll:u,viewBox:Ge.parseViewBox(re(o)?f:t1(t1({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}fn.displayName="LabelList";function PU(e,t){return e?e===!0?A.createElement(fn,{key:"labelList-implicit",data:t}):A.isValidElement(e)||Z(e)?A.createElement(fn,{key:"labelList-implicit",data:t,content:e}):ba(e)?A.createElement(fn,gs({data:t},e,{key:"labelList-implicit"})):null:null}function AU(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Wt(n,fn).map(function(o,l){return B.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!r)return i;var a=PU(e.label,t);return[a].concat(vU(i))}fn.renderCallByParent=AU;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 Bp(){return Bp=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=ge(r,n,i,o),y=ge(r,n,i,s);d+="L ".concat(y.x,",").concat(y.y,` - A `).concat(i,",").concat(i,`,0, - `).concat(+(Math.abs(u)>180),",").concat(+(o<=s),`, - `).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},kU=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,u=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,c=ut(f-s),d=eu({cx:r,cy:n,radius:a,angle:s,sign:c,cornerRadius:o,cornerIsExternal:u}),p=d.circleTangency,y=d.lineTangency,h=d.theta,x=eu({cx:r,cy:n,radius:a,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:u}),m=x.circleTangency,v=x.lineTangency,g=x.theta,S=u?Math.abs(s-f):Math.abs(s-f)-h-g;if(S<0)return l?"M ".concat(y.x,",").concat(y.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:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var b="M ".concat(y.x,",").concat(y.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,` - A`).concat(a,",").concat(a,",0,").concat(+(S>180),",").concat(+(c<0),",").concat(m.x,",").concat(m.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(v.x,",").concat(v.y,` - `);if(i>0){var w=eu({cx:r,cy:n,radius:i,angle:s,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),O=w.circleTangency,_=w.lineTangency,P=w.theta,T=eu({cx:r,cy:n,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),$=T.circleTangency,k=T.lineTangency,M=T.theta,D=u?Math.abs(s-f):Math.abs(s-f)-P-M;if(D<0&&o===0)return"".concat(b,"L").concat(r,",").concat(n,"Z");b+="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(+(D>180),",").concat(+(c>0),",").concat(O.x,",").concat(O.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(_.x,",").concat(_.y,"Z")}else b+="L".concat(r,",").concat(n,"Z");return b},CU={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},b_=function(t){var r=i1(i1({},CU),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,l=r.cornerRadius,u=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,c=r.endAngle,d=r.className;if(o0&&Math.abs(f-c)<360?x=kU({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(h,y/2),forceCornerRadius:u,cornerIsExternal:s,startAngle:f,endAngle:c}):x=g_({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:c}),A.createElement("path",Bp({},Q(r,!0),{className:p,d:x,role:"img"}))};function Zo(e){"@babel/helpers - typeof";return Zo=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},Zo(e)}function zp(){return zp=Object.assign?Object.assign.bind():function(e){for(var t=1;t0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function QU(e,t){return ai(e.getTime(),t.getTime())}function ZU(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function JU(e,t){return e===t}function d1(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,l,u=0;(o=a.next())&&!o.done;){for(var s=t.entries(),f=!1,c=0;(l=s.next())&&!l.done;){if(i[c]){c++;continue}var d=o.value,p=l.value;if(r.equals(d[0],p[0],u,c,e,t,r)&&r.equals(d[1],p[1],d[0],p[0],e,t,r)){f=i[c]=!0;break}c++}if(!f)return!1;u++}return!0}var e7=ai;function t7(e,t,r){var n=f1(e),i=n.length;if(f1(t).length!==i)return!1;for(;i-- >0;)if(!O_(e,t,r,n[i]))return!1;return!0}function Va(e,t,r){var n=s1(e),i=n.length;if(s1(t).length!==i)return!1;for(var a,o,l;i-- >0;)if(a=n[i],!O_(e,t,r,a)||(o=c1(e,a),l=c1(t,a),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function r7(e,t){return ai(e.valueOf(),t.valueOf())}function n7(e,t){return e.source===t.source&&e.flags===t.flags}function p1(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,l;(o=a.next())&&!o.done;){for(var u=t.values(),s=!1,f=0;(l=u.next())&&!l.done;){if(!i[f]&&r.equals(o.value,l.value,o.value,l.value,e,t,r)){s=i[f]=!0;break}f++}if(!s)return!1}return!0}function i7(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function a7(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function O_(e,t,r,n){return(n===XU||n===GU||n===qU)&&(e.$$typeof||t.$$typeof)?!0:KU(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var o7="[object Arguments]",l7="[object Boolean]",u7="[object Date]",s7="[object Error]",c7="[object Map]",f7="[object Number]",d7="[object Object]",p7="[object RegExp]",h7="[object Set]",v7="[object String]",y7="[object URL]",m7=Array.isArray,h1=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,v1=Object.assign,g7=Object.prototype.toString.call.bind(Object.prototype.toString);function b7(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,l=e.areObjectsEqual,u=e.arePrimitiveWrappersEqual,s=e.areRegExpsEqual,f=e.areSetsEqual,c=e.areTypedArraysEqual,d=e.areUrlsEqual;return function(y,h,x){if(y===h)return!0;if(y==null||h==null)return!1;var m=typeof y;if(m!==typeof h)return!1;if(m!=="object")return m==="number"?o(y,h,x):m==="function"?i(y,h,x):!1;var v=y.constructor;if(v!==h.constructor)return!1;if(v===Object)return l(y,h,x);if(m7(y))return t(y,h,x);if(h1!=null&&h1(y))return c(y,h,x);if(v===Date)return r(y,h,x);if(v===RegExp)return s(y,h,x);if(v===Map)return a(y,h,x);if(v===Set)return f(y,h,x);var g=g7(y);return g===u7?r(y,h,x):g===p7?s(y,h,x):g===c7?a(y,h,x):g===h7?f(y,h,x):g===d7?typeof y.then!="function"&&typeof h.then!="function"&&l(y,h,x):g===y7?d(y,h,x):g===s7?n(y,h,x):g===o7?l(y,h,x):g===l7||g===f7||g===v7?u(y,h,x):!1}}function x7(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Va:YU,areDatesEqual:QU,areErrorsEqual:ZU,areFunctionsEqual:JU,areMapsEqual:n?u1(d1,Va):d1,areNumbersEqual:e7,areObjectsEqual:n?Va:t7,arePrimitiveWrappersEqual:r7,areRegExpsEqual:n7,areSetsEqual:n?u1(p1,Va):p1,areTypedArraysEqual:n?Va:i7,areUrlsEqual:a7};if(r&&(i=v1({},i,r(i))),t){var a=ru(i.areArraysEqual),o=ru(i.areMapsEqual),l=ru(i.areObjectsEqual),u=ru(i.areSetsEqual);i=v1({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:u})}return i}function w7(e){return function(t,r,n,i,a,o,l){return e(t,r,l)}}function S7(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(u,s){var f=n(),c=f.cache,d=c===void 0?t?new WeakMap:void 0:c,p=f.meta;return r(u,s,{cache:d,equals:i,meta:p,strict:a})};if(t)return function(u,s){return r(u,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(u,s){return r(u,s,o)}}var O7=wn();wn({strict:!0});wn({circular:!0});wn({circular:!0,strict:!0});wn({createInternalComparator:function(){return ai}});wn({strict:!0,createInternalComparator:function(){return ai}});wn({circular:!0,createInternalComparator:function(){return ai}});wn({circular:!0,createInternalComparator:function(){return ai},strict:!0});function wn(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,l=x7(e),u=b7(l),s=n?n(u):w7(u);return S7({circular:r,comparator:u,createState:i,equals:s,strict:o})}function _7(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function y1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):_7(i)};requestAnimationFrame(n)}function Up(e){"@babel/helpers - typeof";return Up=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},Up(e)}function P7(e){return T7(e)||$7(e)||E7(e)||A7()}function A7(){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 E7(e,t){if(e){if(typeof e=="string")return m1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m1(e,t)}}function m1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:m<0?0:m},h=function(m){for(var v=m>1?1:m,g=v,S=0;S<8;++S){var b=c(g)-v,w=p(g);if(Math.abs(b-v)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,l=o===void 0?17:o,u=function(f,c,d){var p=-(f-c)*n,y=d*a,h=d+(p-y)*l/1e3,x=d*l/1e3+f;return Math.abs(x-c)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function o9(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function Gf(e){return c9(e)||s9(e)||u9(e)||l9()}function l9(){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 u9(e,t){if(e){if(typeof e=="string")return qp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qp(e,t)}}function s9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function c9(e){if(Array.isArray(e))return qp(e)}function qp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"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 ws(e){return ws=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ws(e)}var Rr=function(e){v9(r,e);var t=y9(r);function r(n,i){var a;f9(this,r),a=t.call(this,n,i);var o=a.props,l=o.isActive,u=o.attributeName,s=o.from,f=o.to,c=o.steps,d=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Yp(a)),a.changeStyle=a.changeStyle.bind(Yp(a)),!l||p<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),Xp(a);if(c&&c.length)a.state={style:c[0].style};else if(s){if(typeof d=="function")return a.state={style:s},Xp(a);a.state={style:u?Qa({},u,s):s}}else a.state={style:{}};return a}return p9(r,[{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,l=a.canBegin,u=a.attributeName,s=a.shouldReAnimate,f=a.to,c=a.from,d=this.state.style;if(l){if(!o){var p={style:u?Qa({},u,f):f};this.state&&d&&(u&&d[u]!==f||!u&&d!==f)&&this.setState(p);return}if(!(O7(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var h=y||s?c:i.to;if(this.state&&d){var x={style:u?Qa({},u,h):h};(u&&d[u]!==h||!u&&d!==h)&&this.setState(x)}this.runAnimation(Yt(Yt({},this.props),{},{from:h,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,l=i.to,u=i.duration,s=i.easing,f=i.begin,c=i.onAnimationEnd,d=i.onAnimationStart,p=n9(o,l,K7(s),u,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([d,f,y,u,c])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,l=i.begin,u=i.onAnimationStart,s=o[0],f=s.style,c=s.duration,d=c===void 0?0:c,p=function(h,x,m){if(m===0)return h;var v=x.duration,g=x.easing,S=g===void 0?"ease":g,b=x.style,w=x.properties,O=x.onAnimationEnd,_=m>0?o[m-1]:x,P=w||Object.keys(b);if(typeof S=="function"||S==="spring")return[].concat(Gf(h),[a.runJSAnimation.bind(a,{from:_.style,to:b,duration:v,easing:S}),v]);var T=x1(P,v,S),$=Yt(Yt(Yt({},_.style),b),{},{transition:T});return[].concat(Gf(h),[$,v,O]).filter(N7)};return this.manager.start([u].concat(Gf(o.reduce(p,[f,Math.max(d,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=j7());var a=i.begin,o=i.duration,l=i.attributeName,u=i.to,s=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,d=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof s=="function"||typeof p=="function"||s==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var h=l?Qa({},l,u):u,x=x1(Object.keys(h),o,s);y.start([f,a,Yt(Yt({},h),{},{transition:x}),o,c])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var u=a9(i,i9),s=B.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!l||s===0||o<=0)return a;var c=function(p){var y=p.props,h=y.style,x=h===void 0?{}:h,m=y.className,v=B.cloneElement(p,Yt(Yt({},u),{},{style:Yt(Yt({},x),f),className:m}));return v};return s===1?c(B.Children.only(a)):A.createElement("div",null,B.Children.map(a,function(d){return c(d)}))}}]),r}(B.PureComponent);Rr.displayName="Animate";Rr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Rr.propTypes={from:ue.oneOfType([ue.object,ue.string]),to:ue.oneOfType([ue.object,ue.string]),attributeName:ue.string,duration:ue.number,begin:ue.number,easing:ue.oneOfType([ue.string,ue.func]),steps:ue.arrayOf(ue.shape({duration:ue.number.isRequired,style:ue.object.isRequired,easing:ue.oneOfType([ue.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ue.func]),properties:ue.arrayOf("string"),onAnimationEnd:ue.func})),children:ue.oneOfType([ue.node,ue.func]),isActive:ue.bool,canBegin:ue.bool,onAnimationEnd:ue.func,shouldReAnimate:ue.bool,onAnimationStart:ue.func,onAnimationReStart:ue.func};function tl(e){"@babel/helpers - typeof";return tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tl(e)}function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,u=n>=0?1:-1,s=i>=0&&n>=0||i<0&&n<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(r+l*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(s,",").concat(t+u*c[0],",").concat(r)),f+="L ".concat(t+n-u*c[1],",").concat(r),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(s,`, - `).concat(t+n,",").concat(r+l*c[1])),f+="L ".concat(t+n,",").concat(r+i-l*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(s,`, - `).concat(t+n-u*c[2],",").concat(r+i)),f+="L ".concat(t+u*c[3],",").concat(r+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(s,`, - `).concat(t,",").concat(r+i-l*c[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+l*y,` - A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+u*y,",").concat(r,` - L `).concat(t+n-u*y,",").concat(r,` - A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n,",").concat(r+l*y,` - L `).concat(t+n,",").concat(r+i-l*y,` - A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n-u*y,",").concat(r+i,` - L `).concat(t+u*y,",").concat(r+i,` - A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t,",").concat(r+i-l*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},A9=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,l=r.width,u=r.height;if(Math.abs(l)>0&&Math.abs(u)>0){var s=Math.min(a,a+l),f=Math.max(a,a+l),c=Math.min(o,o+u),d=Math.max(o,o+u);return n>=s&&n<=f&&i>=c&&i<=d}return!1},E9={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},py=function(t){var r=$1($1({},E9),t),n=B.useRef(),i=B.useState(-1),a=g9(i,2),o=a[0],l=a[1];B.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&l(S)}catch{}},[]);var u=r.x,s=r.y,f=r.width,c=r.height,d=r.radius,p=r.className,y=r.animationEasing,h=r.animationDuration,x=r.animationBegin,m=r.isAnimationActive,v=r.isUpdateAnimationActive;if(u!==+u||s!==+s||f!==+f||c!==+c||f===0||c===0)return null;var g=te("recharts-rectangle",p);return v?A.createElement(Rr,{canBegin:o>0,from:{width:f,height:c,x:u,y:s},to:{width:f,height:c,x:u,y:s},duration:h,animationEasing:y,isActive:v},function(S){var b=S.width,w=S.height,O=S.x,_=S.y;return A.createElement(Rr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:h,isActive:m,easing:y},A.createElement("path",Ss({},Q(r,!0),{className:g,d:T1(O,_,b,w,d),ref:n})))}):A.createElement("path",Ss({},Q(r,!0),{className:g,d:T1(u,s,f,c,d)}))},$9=["points","className","baseLinePoints","connectNulls"];function _i(){return _i=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function j9(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function j1(e){return N9(e)||M9(e)||C9(e)||k9()}function k9(){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 C9(e,t){if(e){if(typeof e=="string")return Qp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qp(e,t)}}function M9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function N9(e){if(Array.isArray(e))return Qp(e)}function Qp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){k1(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),k1(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},fo=function(t,r){var n=I9(t);r&&(n=[n.reduce(function(a,o){return[].concat(j1(a),j1(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,l,u){return"".concat(o).concat(u===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},D9=function(t,r,n){var i=fo(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(fo(r.reverse(),n).slice(1))},R9=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=T9(t,$9);if(!r||!r.length)return null;var l=te("recharts-polygon",n);if(i&&i.length){var u=o.stroke&&o.stroke!=="none",s=D9(r,i,a);return A.createElement("g",{className:l},A.createElement("path",_i({},Q(o,!0),{fill:s.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:s})),u?A.createElement("path",_i({},Q(o,!0),{fill:"none",d:fo(r,a)})):null,u?A.createElement("path",_i({},Q(o,!0),{fill:"none",d:fo(i,a)})):null)}var f=fo(r,a);return A.createElement("path",_i({},Q(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:l,d:f}))};function Zp(){return Zp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function H9(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var V9=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},K9=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,l=o===void 0?0:o,u=t.left,s=u===void 0?0:u,f=t.width,c=f===void 0?0:f,d=t.height,p=d===void 0?0:d,y=t.className,h=W9(t,L9),x=B9({x:n,y:a,top:l,left:s,width:c,height:p},h);return!H(n)||!H(a)||!H(c)||!H(p)||!H(l)||!H(s)?null:A.createElement("path",Jp({},Q(x,!0),{className:te("recharts-cross",y),d:V9(n,a,c,p,l,s)}))},q9=Cc,G9=UO,X9=gn;function Y9(e,t){return e&&e.length?q9(e,X9(t),G9):void 0}var Q9=Y9;const Z9=pe(Q9);var J9=Cc,eW=gn,tW=WO;function rW(e,t){return e&&e.length?J9(e,eW(t),tW):void 0}var nW=rW;const iW=pe(nW);var aW=["cx","cy","angle","ticks","axisLine"],oW=["ticks","tick","angle","tickFormatter","stroke"];function ta(e){"@babel/helpers - typeof";return ta=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},ta(e)}function po(){return po=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function uW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I1(e,t){for(var r=0;rL1?o=i==="outer"?"start":"end":a<-L1?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,l=n.axisLine,u=n.axisLineType,s=An(An({},Q(this.props,!1)),{},{fill:"none"},Q(l,!1));if(u==="circle")return A.createElement(hy,Cn({className:"recharts-polar-angle-axis-line"},s,{cx:i,cy:a,r:o}));var f=this.props.ticks,c=f.map(function(d){return ge(i,a,o,d.coordinate)});return A.createElement(R9,Cn({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,l=i.tickLine,u=i.tickFormatter,s=i.stroke,f=Q(this.props,!1),c=Q(o,!1),d=An(An({},f),{},{fill:"none"},Q(l,!1)),p=a.map(function(y,h){var x=n.getTickLineCoord(y),m=n.getTickTextAnchor(y),v=An(An(An({textAnchor:m},f),{},{stroke:"none",fill:s},c),{},{index:h,payload:y,x:x.x2,y:x.y2});return A.createElement(se,Cn({className:te("recharts-polar-angle-axis-tick",y_(o)),key:"tick-".concat(y.coordinate)},Yn(n.props,y,h)),l&&A.createElement("line",Cn({className:"recharts-polar-angle-axis-tick-line"},d,x)),o&&t.renderTickItem(o,v,u?u(y.value,h):y.value))});return A.createElement(se,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:A.createElement(se,{className:te("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return A.isValidElement(n)?o=A.cloneElement(n,i):Z(n)?o=n(i):o=A.createElement(Qn,Cn({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(B.PureComponent);Fc(Uc,"displayName","PolarAngleAxis");Fc(Uc,"axisType","angleAxis");Fc(Uc,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var OW=BS,_W=OW(Object.getPrototypeOf,Object),PW=_W,AW=zr,EW=PW,$W=Fr,TW="[object Object]",jW=Function.prototype,kW=Object.prototype,N_=jW.toString,CW=kW.hasOwnProperty,MW=N_.call(Object);function NW(e){if(!$W(e)||AW(e)!=TW)return!1;var t=EW(e);if(t===null)return!0;var r=CW.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&N_.call(r)==MW}var IW=NW;const DW=pe(IW);var RW=zr,LW=Fr,BW="[object Boolean]";function zW(e){return e===!0||e===!1||LW(e)&&RW(e)==BW}var FW=zW;const UW=pe(FW);function nl(e){"@babel/helpers - typeof";return nl=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},nl(e)}function Ps(){return Ps=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:d,x:u,y:s},to:{upperWidth:f,lowerWidth:c,height:d,x:u,y:s},duration:h,animationEasing:y,isActive:m},function(g){var S=g.upperWidth,b=g.lowerWidth,w=g.height,O=g.x,_=g.y;return A.createElement(Rr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:h,easing:y},A.createElement("path",Ps({},Q(r,!0),{className:v,d:U1(O,_,S,b,w),ref:n})))}):A.createElement("g",null,A.createElement("path",Ps({},Q(r,!0),{className:v,d:U1(u,s,f,c,d)})))},JW=["option","shapeType","propTransformer","activeClassName","isActive"];function il(e){"@babel/helpers - typeof";return il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},il(e)}function eH(e,t){if(e==null)return{};var r=tH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function W1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function As(e){for(var t=1;t0?Tt(g,"paddingAngle",0):0;if(b){var O=Gr(b.endAngle-b.startAngle,g.endAngle-g.startAngle),_=ve(ve({},g),{},{startAngle:v+w,endAngle:v+O(h)+w});x.push(_),v=_.endAngle}else{var P=g.endAngle,T=g.startAngle,$=Gr(0,P-T),k=$(h),M=ve(ve({},g),{},{startAngle:v+w,endAngle:v+k+w});x.push(M),v=M.endAngle}}),A.createElement(se,null,n.renderSectorsStatically(x))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Ic(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,l=i.className,u=i.label,s=i.cx,f=i.cy,c=i.innerRadius,d=i.outerRadius,p=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!H(s)||!H(f)||!H(c)||!H(d))return null;var h=te("recharts-pie",l);return A.createElement(se,{tabIndex:this.props.rootTabIndex,className:h,ref:function(m){n.pieRef=m}},this.renderSectors(),u&&this.renderLabels(o),Ge.renderCallByParent(this.props,null,!1),(!p||y)&&fn.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n=360?v:v-1)*u,S=x-v*p-g,b=i.reduce(function(_,P){var T=at(P,m,0);return _+(H(T)?T:0)},0),w;if(b>0){var O;w=i.map(function(_,P){var T=at(_,m,0),$=at(_,f,P),k=(H(T)?T:0)/b,M;P?M=O.endAngle+ut(h)*u*(T!==0?1:0):M=o;var D=M+ut(h)*((T!==0?p:0)+k*S),N=(M+D)/2,R=(y.innerRadius+y.outerRadius)/2,L=[{name:$,value:T,payload:_,dataKey:m,type:d}],j=ge(y.cx,y.cy,R,N);return O=ve(ve(ve({percent:k,cornerRadius:a,name:$,tooltipPayload:L,midAngle:N,middleRadius:R,tooltipPosition:j},_),y),{},{value:at(_,m),startAngle:M,endAngle:D,payload:_,paddingAngle:ut(h)*u}),O})}return ve(ve({},y),{},{sectors:w,data:i})});var SH=Math.ceil,OH=Math.max;function _H(e,t,r,n){for(var i=-1,a=OH(SH((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var PH=_H,AH=nO,q1=1/0,EH=17976931348623157e292;function $H(e){if(!e)return e===0?e:0;if(e=AH(e),e===q1||e===-q1){var t=e<0?-1:1;return t*EH}return e===e?e:0}var TH=$H,jH=PH,kH=_c,Xf=TH;function CH(e){return function(t,r,n){return n&&typeof n!="number"&&kH(t,r,n)&&(r=n=void 0),t=Xf(t),r===void 0?(r=t,t=0):r=Xf(r),n=n===void 0?t0&&n.handleDrag(i.changedTouches[0])}),Ot(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,l=i.startIndex;o==null||o({endIndex:a,startIndex:l})}),n.detachDragEndListener()}),Ot(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ot(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ot(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ot(n,"handleSlideDragStart",function(i){var a=Z1(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return KH(t,e),UH(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,l=this.props,u=l.gap,s=l.data,f=s.length-1,c=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,c),y=t.getIndexInRange(o,d);return{startIndex:p-p%u,endIndex:y===f?f:y-y%u}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,l=i.dataKey,u=at(a[n],l,n);return Z(o)?o(u,n):u}},{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(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,l=i.endX,u=this.props,s=u.x,f=u.width,c=u.travellerWidth,d=u.startIndex,p=u.endIndex,y=u.onChange,h=n.pageX-a;h>0?h=Math.min(h,s+f-c-l,s+f-c-o):h<0&&(h=Math.max(h,s-o,s-l));var x=this.getIndex({startX:o+h,endX:l+h});(x.startIndex!==d||x.endIndex!==p)&&y&&y(x),this.setState({startX:o+h,endX:l+h,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=Z1(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,l=i.endX,u=i.startX,s=this.state[o],f=this.props,c=f.x,d=f.width,p=f.travellerWidth,y=f.onChange,h=f.gap,x=f.data,m={startX:this.state.startX,endX:this.state.endX},v=n.pageX-a;v>0?v=Math.min(v,c+d-p-s):v<0&&(v=Math.max(v,c-s)),m[o]=s+v;var g=this.getIndex(m),S=g.startIndex,b=g.endIndex,w=function(){var _=x.length-1;return o==="startX"&&(l>u?S%h===0:b%h===0)||lu?b%h===0:S%h===0)||l>u&&b===_};this.setState(Ot(Ot({},o,s+v),"brushMoveStartX",n.pageX),function(){y&&w()&&y(g)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,l=o.scaleValues,u=o.startX,s=o.endX,f=this.state[i],c=l.indexOf(f);if(c!==-1){var d=c+n;if(!(d===-1||d>=l.length)){var p=l[d];i==="startX"&&p>=s||i==="endX"&&p<=u||this.setState(Ot({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,l=n.height,u=n.fill,s=n.stroke;return A.createElement("rect",{stroke:s,fill:u,x:i,y:a,width:o,height:l})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,l=n.height,u=n.data,s=n.children,f=n.padding,c=B.Children.only(s);return c?A.cloneElement(c,{x:i,y:a,width:o,height:l,margin:f,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,l=this,u=this.props,s=u.y,f=u.travellerWidth,c=u.height,d=u.traveller,p=u.ariaLabel,y=u.data,h=u.startIndex,x=u.endIndex,m=Math.max(n,this.props.x),v=Yf(Yf({},Q(this.props,!1)),{},{x:m,y:s,width:f,height:c}),g=p||"Min value: ".concat((a=y[h])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[x])===null||o===void 0?void 0:o.name);return A.createElement(se,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(b){["ArrowLeft","ArrowRight"].includes(b.key)&&(b.preventDefault(),b.stopPropagation(),l.handleTravellerMoveKeyboard(b.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,v))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,l=a.height,u=a.stroke,s=a.travellerWidth,f=Math.min(n,i)+s,c=Math.max(Math.abs(i-n)-s,0);return A.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:f,y:o,width:c,height:l})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,l=n.height,u=n.travellerWidth,s=n.stroke,f=this.state,c=f.startX,d=f.endX,p=5,y={pointerEvents:"none",fill:s};return A.createElement(se,{className:"recharts-brush-texts"},A.createElement(Qn,Ts({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-p,y:o+l/2},y),this.getTextOfTick(i)),A.createElement(Qn,Ts({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+u+p,y:o+l/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,l=n.x,u=n.y,s=n.width,f=n.height,c=n.alwaysShowText,d=this.state,p=d.startX,y=d.endX,h=d.isTextActive,x=d.isSlideMoving,m=d.isTravellerMoving,v=d.isTravellerFocused;if(!i||!i.length||!H(l)||!H(u)||!H(s)||!H(f)||s<=0||f<=0)return null;var g=te("recharts-brush",a),S=A.Children.count(o)===1,b=zH("userSelect","none");return A.createElement(se,{className:g,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(h||x||m||v||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,l=n.height,u=n.stroke,s=Math.floor(a+l/2)-1;return A.createElement(A.Fragment,null,A.createElement("rect",{x:i,y:a,width:o,height:l,fill:u,stroke:"none"}),A.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),A.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return A.isValidElement(n)?a=A.cloneElement(n,i):Z(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,l=n.x,u=n.travellerWidth,s=n.updateId,f=n.startIndex,c=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return Yf({prevData:a,prevTravellerWidth:u,prevUpdateId:s,prevX:l,prevWidth:o},a&&a.length?GH({data:a,width:o,x:l,travellerWidth:u,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||l!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([l,l+o-u]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:u,prevUpdateId:s,prevX:l,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,l=a-1;l-o>1;){var u=Math.floor((o+l)/2);n[u]>i?l=u:o=u}return i>=n[l]?l:o}}])}(B.PureComponent);Ot(aa,"displayName","Brush");Ot(aa,"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 XH=Bv;function YH(e,t){var r;return XH(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var QH=YH,ZH=kS,JH=gn,eV=QH,tV=St,rV=_c;function nV(e,t,r){var n=tV(e)?ZH:eV;return r&&rV(e,t,r)&&(t=void 0),n(e,JH(t))}var iV=nV;const aV=pe(iV);var pr=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},J1=ZS;function oV(e,t,r){t=="__proto__"&&J1?J1(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var lV=oV,uV=lV,sV=YS,cV=gn;function fV(e,t){var r={};return t=cV(t),sV(e,function(n,i,a){uV(r,i,t(n,i,a))}),r}var dV=fV;const pV=pe(dV);function hV(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function MV(e,t){var r=e.x,n=e.y,i=kV(e,EV),a="".concat(r),o=parseInt(a,10),l="".concat(n),u=parseInt(l,10),s="".concat(t.height||i.height),f=parseInt(s,10),c="".concat(t.width||i.width),d=parseInt(c,10);return Ka(Ka(Ka(Ka(Ka({},t),i),o?{x:o}:{}),u?{y:u}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function tb(e){return A.createElement(I_,ih({shapeType:"rectangle",propTransformer:MV,activeClassName:"recharts-active-bar"},e))}var NV=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=H(n)||nk(n);return a?t(n,i):(a||Jn(),r)}},IV=["value","background"],F_;function oa(e){"@babel/helpers - typeof";return oa=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},oa(e)}function DV(e,t){if(e==null)return{};var r=RV(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ks(){return ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(N)0&&Math.abs(D)0&&(M=Math.min((ie||0)-(D[_e-1]||0),M))}),Number.isFinite(M)){var N=M/k,R=h.layout==="vertical"?n.height:n.width;if(h.padding==="gap"&&(O=N*R/2),h.padding==="no-gap"){var L=st(t.barCategoryGap,N*R),j=N*R/2;O=j-L-(j-L)/R*L}}}i==="xAxis"?_=[n.left+(g.left||0)+(O||0),n.left+n.width-(g.right||0)-(O||0)]:i==="yAxis"?_=u==="horizontal"?[n.top+n.height-(g.bottom||0),n.top+(g.top||0)]:[n.top+(g.top||0)+(O||0),n.top+n.height-(g.bottom||0)-(O||0)]:_=h.range,b&&(_=[_[1],_[0]]);var I=s_(h,a,d),F=I.scale,V=I.realScaleType;F.domain(m).range(_),c_(F);var W=f_(F,Jt(Jt({},h),{},{realScaleType:V}));i==="xAxis"?($=x==="top"&&!S||x==="bottom"&&S,P=n.left,T=c[w]-$*h.height):i==="yAxis"&&($=x==="left"&&!S||x==="right"&&S,P=c[w]-$*h.width,T=n.top);var X=Jt(Jt(Jt({},h),W),{},{realScaleType:V,x:P,y:T,scale:F,width:i==="xAxis"?n.width:h.width,height:i==="yAxis"?n.height:h.height});return X.bandSize=ys(X,W),!h.hide&&i==="xAxis"?c[w]+=($?-1:1)*X.height:h.hide||(c[w]+=($?-1:1)*X.width),Jt(Jt({},p),{},Vc({},y,X))},{})},V_=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},XV=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return V_({x:r,y:n},{x:i,y:a})},K_=function(){function e(t){VV(this,e),this.scale=t}return KV(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(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(r)+l}default:return this.scale(r)}if(i){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+u}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();Vc(K_,"EPS",1e-4);var vy=function(t){var r=Object.keys(t).reduce(function(n,i){return Jt(Jt({},n),{},Vc({},i,K_.create(t[i])))},{});return Jt(Jt({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,l=a.position;return pV(i,function(u,s){return r[s].apply(u,{bandAware:o,position:l})})},isInRange:function(i){return AV(i,function(a,o){return r[o].isInRange(a)})}})};function YV(e){return(e%180+180)%180}var QV=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=YV(i),o=a*Math.PI/180,l=Math.atan(n/r),u=o>l&&oe.length)&&(t=e.length);for(var r=0,n=new Array(t);re*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function LK(e,t){return sP(e,t+1)}function BK(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,l=t.end,u=0,s=1,f=o,c=function(){var y=n==null?void 0:n[u];if(y===void 0)return{v:sP(n,s)};var h=u,x,m=function(){return x===void 0&&(x=r(y,h)),x},v=y.coordinate,g=u===0||Ds(e,v,m,f,l);g||(u=0,f=o,s+=1),g&&(f=v+e*(m()/2+i),u+=s)},d;s<=a.length;)if(d=c(),d)return d.v;return[]}function sl(e){"@babel/helpers - typeof";return sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sl(e)}function hb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t0?p.coordinate-x*e:p.coordinate})}else a[d]=p=nt(nt({},p),{},{tickCoord:p.coordinate});var m=Ds(e,p.tickCoord,h,l,u);m&&(u=p.tickCoord-e*(h()/2+i),a[d]=nt(nt({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function HK(e,t,r,n,i,a){var o=(n||[]).slice(),l=o.length,u=t.start,s=t.end;if(a){var f=n[l-1],c=r(f,l-1),d=e*(f.coordinate+e*c/2-s);o[l-1]=f=nt(nt({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var p=Ds(e,f.tickCoord,function(){return c},u,s);p&&(s=f.tickCoord-e*(c/2+i),o[l-1]=nt(nt({},f),{},{isShow:!0}))}for(var y=a?l-1:l,h=function(v){var g=o[v],S,b=function(){return S===void 0&&(S=r(g,v)),S};if(v===0){var w=e*(g.coordinate-e*b()/2-u);o[v]=g=nt(nt({},g),{},{tickCoord:w<0?g.coordinate-w*e:g.coordinate})}else o[v]=g=nt(nt({},g),{},{tickCoord:g.coordinate});var O=Ds(e,g.tickCoord,b,u,s);O&&(u=g.tickCoord+e*(b()/2+i),o[v]=nt(nt({},g),{},{isShow:!0}))},x=0;x=2?ut(i[1].coordinate-i[0].coordinate):1,m=RK(a,x,p);return u==="equidistantPreserveStart"?BK(x,m,h,i,o):(u==="preserveStart"||u==="preserveStartEnd"?d=HK(x,m,h,i,o,u==="preserveStartEnd"):d=WK(x,m,h,i,o),d.filter(function(v){return v.isShow}))}var KK=["viewBox"],qK=["viewBox"],GK=["ticks"];function ca(e){"@babel/helpers - typeof";return ca=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},ca(e)}function Ai(){return Ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function YK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yb(e,t){for(var r=0;r0?u(this.props):u(p)),o<=0||l<=0||!y||!y.length?null:A.createElement(se,{className:te("recharts-cartesian-axis",s),ref:function(x){n.layerReference=x}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ge.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,l=te(i.className,"recharts-cartesian-axis-tick-value");return A.isValidElement(n)?o=A.cloneElement(n,ze(ze({},i),{},{className:l})):Z(n)?o=n(ze(ze({},i),{},{className:l})):o=A.createElement(Qn,Ai({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(B.Component);gy(Yc,"displayName","CartesianAxis");gy(Yc,"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"});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 nq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iq(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Hq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Vq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kq(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?o:t&&t.length&&H(i)&&H(a)?t.slice(i,a+1):[]};function PP(e){return e==="number"?[0,"auto"]:void 0}var wh=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,l=Qc(r,t);return n<0||!a||!a.length||n>=l.length?null:a.reduce(function(u,s){var f,c=(f=s.props.data)!==null&&f!==void 0?f:r;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=c===void 0?l:c;d=Gd(p,o.dataKey,i)}else d=c&&c[n]||l[n];return d?[].concat(ha(u),[p_(s,d)]):u},[])},Sb=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=iG(a,n),l=t.orderedTooltipTicks,u=t.tooltipAxis,s=t.tooltipTicks,f=yF(o,l,s,u);if(f>=0&&s){var c=s[f]&&s[f].value,d=wh(t,r,f,c),p=aG(n,l,f,a);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:p}}return null},oG=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,l=r.stackGroups,u=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,c=t.children,d=t.stackOffset,p=u_(f,a);return n.reduce(function(y,h){var x,m=h.type.defaultProps!==void 0?C(C({},h.type.defaultProps),h.props):h.props,v=m.type,g=m.dataKey,S=m.allowDataOverflow,b=m.allowDuplicatedCategory,w=m.scale,O=m.ticks,_=m.includeHidden,P=m[o];if(y[P])return y;var T=Qc(t.data,{graphicalItems:i.filter(function(W){var X,ie=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o];return ie===P}),dataStartIndex:u,dataEndIndex:s}),$=T.length,k,M,D;Cq(m.domain,S,v)&&(k=Dp(m.domain,null,S),p&&(v==="number"||w!=="auto")&&(D=so(T,g,"category")));var N=PP(v);if(!k||k.length===0){var R,L=(R=m.domain)!==null&&R!==void 0?R:N;if(g){if(k=so(T,g,v),v==="category"&&p){var j=ak(k);b&&j?(M=k,k=$s(0,$)):b||(k=X0(L,k,h).reduce(function(W,X){return W.indexOf(X)>=0?W:[].concat(ha(W),[X])},[]))}else if(v==="category")b?k=k.filter(function(W){return W!==""&&!re(W)}):k=X0(L,k,h).reduce(function(W,X){return W.indexOf(X)>=0||X===""||re(X)?W:[].concat(ha(W),[X])},[]);else if(v==="number"){var I=wF(T,i.filter(function(W){var X,ie,_e=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o],Me="hide"in W.props?W.props.hide:(ie=W.type.defaultProps)===null||ie===void 0?void 0:ie.hide;return _e===P&&(_||!Me)}),g,a,f);I&&(k=I)}p&&(v==="number"||w!=="auto")&&(D=so(T,g,"category"))}else p?k=$s(0,$):l&&l[P]&&l[P].hasStack&&v==="number"?k=d==="expand"?[0,1]:d_(l[P].stackGroups,u,s):k=l_(T,i.filter(function(W){var X=o in W.props?W.props[o]:W.type.defaultProps[o],ie="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return X===P&&(_||!ie)}),v,f,!0);if(v==="number")k=gh(c,k,P,a,O),L&&(k=Dp(L,k,S));else if(v==="category"&&L){var F=L,V=k.every(function(W){return F.indexOf(W)>=0});V&&(k=F)}}return C(C({},y),{},Y({},P,C(C({},m),{},{axisType:a,domain:k,categoricalDomain:D,duplicateDomain:M,originalDomain:(x=m.domain)!==null&&x!==void 0?x:N,isCategorical:p,layout:f})))},{})},lG=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,l=r.stackGroups,u=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,c=t.children,d=Qc(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:s}),p=d.length,y=u_(f,a),h=-1;return n.reduce(function(x,m){var v=m.type.defaultProps!==void 0?C(C({},m.type.defaultProps),m.props):m.props,g=v[o],S=PP("number");if(!x[g]){h++;var b;return y?b=$s(0,p):l&&l[g]&&l[g].hasStack?(b=d_(l[g].stackGroups,u,s),b=gh(c,b,g,a)):(b=Dp(S,l_(d,n.filter(function(w){var O,_,P=o in w.props?w.props[o]:(O=w.type.defaultProps)===null||O===void 0?void 0:O[o],T="hide"in w.props?w.props.hide:(_=w.type.defaultProps)===null||_===void 0?void 0:_.hide;return P===g&&!T}),"number",f),i.defaultProps.allowDataOverflow),b=gh(c,b,g,a)),C(C({},x),{},Y({},g,C(C({axisType:a},i.defaultProps),{},{hide:!0,orientation:Tt(rG,"".concat(a,".").concat(h%2),null),domain:b,originalDomain:S,isCategorical:y,layout:f})))}return x},{})},uG=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,l=r.stackGroups,u=r.dataStartIndex,s=r.dataEndIndex,f=t.children,c="".concat(i,"Id"),d=Wt(f,a),p={};return d&&d.length?p=oG(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:l,dataStartIndex:u,dataEndIndex:s}):o&&o.length&&(p=lG(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:l,dataStartIndex:u,dataEndIndex:s})),p},sG=function(t){var r=ci(t),n=Bn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:zv(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:ys(r,n)}},Ob=function(t){var r=t.children,n=t.defaultShowTooltip,i=Pt(r,aa),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:!!n}},cG=function(t){return!t||!t.length?!1:t.some(function(r){var n=Ar(r&&r.type);return n&&n.indexOf("Bar")>=0})},_b=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"}},fG=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,l=t.yAxisMap,u=l===void 0?{}:l,s=n.width,f=n.height,c=n.children,d=n.margin||{},p=Pt(c,aa),y=Pt(c,Ii),h=Object.keys(u).reduce(function(b,w){var O=u[w],_=O.orientation;return!O.mirror&&!O.hide?C(C({},b),{},Y({},_,b[_]+O.width)):b},{left:d.left||0,right:d.right||0}),x=Object.keys(o).reduce(function(b,w){var O=o[w],_=O.orientation;return!O.mirror&&!O.hide?C(C({},b),{},Y({},_,Tt(b,"".concat(_))+O.height)):b},{top:d.top||0,bottom:d.bottom||0}),m=C(C({},x),h),v=m.bottom;p&&(m.bottom+=p.props.height||aa.defaultProps.height),y&&r&&(m=bF(m,i,n,r));var g=s-m.left-m.right,S=f-m.top-m.bottom;return C(C({brushBottom:v},m),{},{width:Math.max(g,0),height:Math.max(S,0)})},dG=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},AP=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,u=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,d=function(m,v){var g=v.graphicalItems,S=v.stackGroups,b=v.offset,w=v.updateId,O=v.dataStartIndex,_=v.dataEndIndex,P=m.barSize,T=m.layout,$=m.barGap,k=m.barCategoryGap,M=m.maxBarSize,D=_b(T),N=D.numericAxisName,R=D.cateAxisName,L=cG(g),j=[];return g.forEach(function(I,F){var V=Qc(m.data,{graphicalItems:[I],dataStartIndex:O,dataEndIndex:_}),W=I.type.defaultProps!==void 0?C(C({},I.type.defaultProps),I.props):I.props,X=W.dataKey,ie=W.maxBarSize,_e=W["".concat(N,"Id")],Me=W["".concat(R,"Id")],Mt={},ht=u.reduce(function(Sn,On){var Zc=v["".concat(On.axisType,"Map")],by=W["".concat(On.axisType,"Id")];Zc&&Zc[by]||On.axisType==="zAxis"||Jn();var xy=Zc[by];return C(C({},Sn),{},Y(Y({},On.axisType,xy),"".concat(On.axisType,"Ticks"),Bn(xy)))},Mt),K=ht[R],J=ht["".concat(R,"Ticks")],ee=S&&S[_e]&&S[_e].hasStack&&jF(I,S[_e].stackGroups),z=Ar(I.type).indexOf("Bar")>=0,je=ys(K,J),ae=[],Le=L&&mF({barSize:P,stackGroups:S,totalSize:dG(ht,R)});if(z){var Be,vt,Hr=re(ie)?M:ie,oi=(Be=(vt=ys(K,J,!0))!==null&&vt!==void 0?vt:Hr)!==null&&Be!==void 0?Be:0;ae=gF({barGap:$,barCategoryGap:k,bandSize:oi!==je?oi:je,sizeList:Le[Me],maxBarSize:Hr}),oi!==je&&(ae=ae.map(function(Sn){return C(C({},Sn),{},{position:C(C({},Sn.position),{},{offset:Sn.position.offset-oi/2})})}))}var Al=I&&I.type&&I.type.getComposedData;Al&&j.push({props:C(C({},Al(C(C({},ht),{},{displayedData:V,props:m,dataKey:X,item:I,bandSize:je,barPosition:ae,offset:b,stackedData:ee,layout:T,dataStartIndex:O,dataEndIndex:_}))),{},Y(Y(Y({key:I.key||"item-".concat(F)},N,ht[N]),R,ht[R]),"animationId",w)),childIndex:mk(I,m.children),item:I})}),j},p=function(m,v){var g=m.props,S=m.dataStartIndex,b=m.dataEndIndex,w=m.updateId;if(!Wm({props:g}))return null;var O=g.children,_=g.layout,P=g.stackOffset,T=g.data,$=g.reverseStackOrder,k=_b(_),M=k.numericAxisName,D=k.cateAxisName,N=Wt(O,n),R=$F(T,N,"".concat(M,"Id"),"".concat(D,"Id"),P,$),L=u.reduce(function(W,X){var ie="".concat(X.axisType,"Map");return C(C({},W),{},Y({},ie,uG(g,C(C({},X),{},{graphicalItems:N,stackGroups:X.axisType===M&&R,dataStartIndex:S,dataEndIndex:b}))))},{}),j=fG(C(C({},L),{},{props:g,graphicalItems:N}),v==null?void 0:v.legendBBox);Object.keys(L).forEach(function(W){L[W]=f(g,L[W],j,W.replace("Map",""),r)});var I=L["".concat(D,"Map")],F=sG(I),V=d(g,C(C({},L),{},{dataStartIndex:S,dataEndIndex:b,updateId:w,graphicalItems:N,stackGroups:R,offset:j}));return C(C({formattedGraphicalItems:V,graphicalItems:N,offset:j,stackGroups:R},F),L)},y=function(x){function m(v){var g,S,b;return Vq(this,m),b=Gq(this,m,[v]),Y(b,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Y(b,"accessibilityManager",new kq),Y(b,"handleLegendBBoxUpdate",function(w){if(w){var O=b.state,_=O.dataStartIndex,P=O.dataEndIndex,T=O.updateId;b.setState(C({legendBBox:w},p({props:b.props,dataStartIndex:_,dataEndIndex:P,updateId:T},C(C({},b.state),{},{legendBBox:w}))))}}),Y(b,"handleReceiveSyncEvent",function(w,O,_){if(b.props.syncId===w){if(_===b.eventEmitterSymbol&&typeof b.props.syncMethod!="function")return;b.applySyncEvent(O)}}),Y(b,"handleBrushChange",function(w){var O=w.startIndex,_=w.endIndex;if(O!==b.state.dataStartIndex||_!==b.state.dataEndIndex){var P=b.state.updateId;b.setState(function(){return C({dataStartIndex:O,dataEndIndex:_},p({props:b.props,dataStartIndex:O,dataEndIndex:_,updateId:P},b.state))}),b.triggerSyncEvent({dataStartIndex:O,dataEndIndex:_})}}),Y(b,"handleMouseEnter",function(w){var O=b.getMouseInfo(w);if(O){var _=C(C({},O),{},{isTooltipActive:!0});b.setState(_),b.triggerSyncEvent(_);var P=b.props.onMouseEnter;Z(P)&&P(_,w)}}),Y(b,"triggeredAfterMouseMove",function(w){var O=b.getMouseInfo(w),_=O?C(C({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};b.setState(_),b.triggerSyncEvent(_);var P=b.props.onMouseMove;Z(P)&&P(_,w)}),Y(b,"handleItemMouseEnter",function(w){b.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),Y(b,"handleItemMouseLeave",function(){b.setState(function(){return{isTooltipActive:!1}})}),Y(b,"handleMouseMove",function(w){w.persist(),b.throttleTriggeredAfterMouseMove(w)}),Y(b,"handleMouseLeave",function(w){b.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};b.setState(O),b.triggerSyncEvent(O);var _=b.props.onMouseLeave;Z(_)&&_(O,w)}),Y(b,"handleOuterEvent",function(w){var O=yk(w),_=Tt(b.props,"".concat(O));if(O&&Z(_)){var P,T;/.*touch.*/i.test(O)?T=b.getMouseInfo(w.changedTouches[0]):T=b.getMouseInfo(w),_((P=T)!==null&&P!==void 0?P:{},w)}}),Y(b,"handleClick",function(w){var O=b.getMouseInfo(w);if(O){var _=C(C({},O),{},{isTooltipActive:!0});b.setState(_),b.triggerSyncEvent(_);var P=b.props.onClick;Z(P)&&P(_,w)}}),Y(b,"handleMouseDown",function(w){var O=b.props.onMouseDown;if(Z(O)){var _=b.getMouseInfo(w);O(_,w)}}),Y(b,"handleMouseUp",function(w){var O=b.props.onMouseUp;if(Z(O)){var _=b.getMouseInfo(w);O(_,w)}}),Y(b,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),Y(b,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.handleMouseDown(w.changedTouches[0])}),Y(b,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.handleMouseUp(w.changedTouches[0])}),Y(b,"handleDoubleClick",function(w){var O=b.props.onDoubleClick;if(Z(O)){var _=b.getMouseInfo(w);O(_,w)}}),Y(b,"handleContextMenu",function(w){var O=b.props.onContextMenu;if(Z(O)){var _=b.getMouseInfo(w);O(_,w)}}),Y(b,"triggerSyncEvent",function(w){b.props.syncId!==void 0&&Zf.emit(Jf,b.props.syncId,w,b.eventEmitterSymbol)}),Y(b,"applySyncEvent",function(w){var O=b.props,_=O.layout,P=O.syncMethod,T=b.state.updateId,$=w.dataStartIndex,k=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)b.setState(C({dataStartIndex:$,dataEndIndex:k},p({props:b.props,dataStartIndex:$,dataEndIndex:k,updateId:T},b.state)));else if(w.activeTooltipIndex!==void 0){var M=w.chartX,D=w.chartY,N=w.activeTooltipIndex,R=b.state,L=R.offset,j=R.tooltipTicks;if(!L)return;if(typeof P=="function")N=P(j,w);else if(P==="value"){N=-1;for(var I=0;I=0){var ee,z;if(M.dataKey&&!M.allowDuplicatedCategory){var je=typeof M.dataKey=="function"?J:"payload.".concat(M.dataKey.toString());ee=Gd(I,je,N),z=F&&V&&Gd(V,je,N)}else ee=I==null?void 0:I[D],z=F&&V&&V[D];if(Me||_e){var ae=w.props.activeIndex!==void 0?w.props.activeIndex:D;return[B.cloneElement(w,C(C(C({},P.props),ht),{},{activeIndex:ae})),null,null]}if(!re(ee))return[K].concat(ha(b.renderActivePoints({item:P,activePoint:ee,basePoint:z,childIndex:D,isRange:F})))}else{var Le,Be=(Le=b.getItemByXY(b.state.activeCoordinate))!==null&&Le!==void 0?Le:{graphicalItem:K},vt=Be.graphicalItem,Hr=vt.item,oi=Hr===void 0?w:Hr,Al=vt.childIndex,Sn=C(C(C({},P.props),ht),{},{activeIndex:Al});return[B.cloneElement(oi,Sn),null,null]}return F?[K,null,null]:[K,null]}),Y(b,"renderCustomized",function(w,O,_){return B.cloneElement(w,C(C({key:"recharts-customized-".concat(_)},b.props),b.state))}),Y(b,"renderMap",{CartesianGrid:{handler:iu,once:!0},ReferenceArea:{handler:b.renderReferenceElement},ReferenceLine:{handler:iu},ReferenceDot:{handler:b.renderReferenceElement},XAxis:{handler:iu},YAxis:{handler:iu},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((g=v.id)!==null&&g!==void 0?g:bl("recharts"),"-clip"),b.throttleTriggeredAfterMouseMove=iO(b.triggeredAfterMouseMove,(S=v.throttleDelay)!==null&&S!==void 0?S:1e3/60),b.state={},b}return Qq(m,x),qq(m,[{key:"componentDidMount",value:function(){var g,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var g=this.props,S=g.children,b=g.data,w=g.height,O=g.layout,_=Pt(S,gr);if(_){var P=_.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var T=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,$=wh(this.state,b,P,T),k=this.state.tooltipTicks[P].coordinate,M=(this.state.offset.top+w)/2,D=O==="horizontal",N=D?{x:k,y:M}:{y:k,x:M},R=this.state.formattedGraphicalItems.find(function(j){var I=j.item;return I.type.name==="Scatter"});R&&(N=C(C({},N),R.props.points[P].tooltipPosition),$=R.props.points[P].tooltipPayload);var L={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:T,activePayload:$,activeCoordinate:N};this.setState(L),this.renderCursor(_),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(g,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==g.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==g.margin){var b,w;this.accessibilityManager.setDetails({offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(g){Yd([Pt(g.children,gr)],[Pt(this.props.children,gr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var g=Pt(this.props.children,gr);if(g&&typeof g.props.shared=="boolean"){var S=g.props.shared?"axis":"item";return l.indexOf(S)>=0?S:a}return a}},{key:"getMouseInfo",value:function(g){if(!this.container)return null;var S=this.container,b=S.getBoundingClientRect(),w=HB(b),O={chartX:Math.round(g.pageX-w.left),chartY:Math.round(g.pageY-w.top)},_=b.width/S.offsetWidth||1,P=this.inRange(O.chartX,O.chartY,_);if(!P)return null;var T=this.state,$=T.xAxisMap,k=T.yAxisMap,M=this.getTooltipEventType(),D=Sb(this.state,this.props.data,this.props.layout,P);if(M!=="axis"&&$&&k){var N=ci($).scale,R=ci(k).scale,L=N&&N.invert?N.invert(O.chartX):null,j=R&&R.invert?R.invert(O.chartY):null;return C(C({},O),{},{xValue:L,yValue:j},D)}return D?C(C({},O),D):null}},{key:"inRange",value:function(g,S){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,O=g/b,_=S/b;if(w==="horizontal"||w==="vertical"){var P=this.state.offset,T=O>=P.left&&O<=P.left+P.width&&_>=P.top&&_<=P.top+P.height;return T?{x:O,y:_}:null}var $=this.state,k=$.angleAxisMap,M=$.radiusAxisMap;if(k&&M){var D=ci(k);return Z0({x:O,y:_},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var g=this.props.children,S=this.getTooltipEventType(),b=Pt(g,gr),w={};b&&S==="axis"&&(b.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var O=Wu(this.props,this.handleOuterEvent);return C(C({},O),w)}},{key:"addListener",value:function(){Zf.on(Jf,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Zf.removeListener(Jf,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(g,S,b){for(var w=this.state.formattedGraphicalItems,O=0,_=w.length;O<_;O++){var P=w[O];if(P.item===g||P.props.key===g.key||S===Ar(P.item.type)&&b===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var g=this.clipPathId,S=this.state.offset,b=S.left,w=S.top,O=S.height,_=S.width;return A.createElement("defs",null,A.createElement("clipPath",{id:g},A.createElement("rect",{x:b,y:w,height:O,width:_})))}},{key:"getXScales",value:function(){var g=this.state.xAxisMap;return g?Object.entries(g).reduce(function(S,b){var w=bb(b,2),O=w[0],_=w[1];return C(C({},S),{},Y({},O,_.scale))},{}):null}},{key:"getYScales",value:function(){var g=this.state.yAxisMap;return g?Object.entries(g).reduce(function(S,b){var w=bb(b,2),O=w[0],_=w[1];return C(C({},S),{},Y({},O,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(g){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[g])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(g){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[g])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(g){var S=this.state,b=S.formattedGraphicalItems,w=S.activeItem;if(b&&b.length)for(var O=0,_=b.length;O<_;O++){var P=b[O],T=P.props,$=P.item,k=$.type.defaultProps!==void 0?C(C({},$.type.defaultProps),$.props):$.props,M=Ar($.type);if(M==="Bar"){var D=(T.data||[]).find(function(j){return A9(g,j)});if(D)return{graphicalItem:P,payload:D}}else if(M==="RadialBar"){var N=(T.data||[]).find(function(j){return Z0(g,j)});if(N)return{graphicalItem:P,payload:N}}else if(Wc(P,w)||Hc(P,w)||al(P,w)){var R=hH({graphicalItem:P,activeTooltipItem:w,itemData:k.data}),L=k.activeIndex===void 0?R:k.activeIndex;return{graphicalItem:C(C({},P),{},{childIndex:L}),payload:al(P,w)?k.data[R]:P.props.data[R]}}}return null}},{key:"render",value:function(){var g=this;if(!Wm(this))return null;var S=this.props,b=S.children,w=S.className,O=S.width,_=S.height,P=S.style,T=S.compact,$=S.title,k=S.desc,M=xb(S,zq),D=Q(M,!1);if(T)return A.createElement(ob,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement(Zd,Ei({},D,{width:O,height:_,title:$,desc:k}),this.renderClipPath(),Vm(b,this.renderMap)));if(this.props.accessibilityLayer){var N,R;D.tabIndex=(N=this.props.tabIndex)!==null&&N!==void 0?N:0,D.role=(R=this.props.role)!==null&&R!==void 0?R:"application",D.onKeyDown=function(j){g.accessibilityManager.keyboardEvent(j)},D.onFocus=function(){g.accessibilityManager.focus()}}var L=this.parseEventsOfWrapper();return A.createElement(ob,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement("div",Ei({className:te("recharts-wrapper",w),style:C({position:"relative",cursor:"default",width:O,height:_},P)},L,{ref:function(I){g.container=I}}),A.createElement(Zd,Ei({},D,{width:O,height:_,title:$,desc:k,style:nG}),this.renderClipPath(),Vm(b,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(B.Component);Y(y,"displayName",r),Y(y,"defaultProps",C({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},c)),Y(y,"getDerivedStateFromProps",function(x,m){var v=x.dataKey,g=x.data,S=x.children,b=x.width,w=x.height,O=x.layout,_=x.stackOffset,P=x.margin,T=m.dataStartIndex,$=m.dataEndIndex;if(m.updateId===void 0){var k=Ob(x);return C(C(C({},k),{},{updateId:0},p(C(C({props:x},k),{},{updateId:0}),m)),{},{prevDataKey:v,prevData:g,prevWidth:b,prevHeight:w,prevLayout:O,prevStackOffset:_,prevMargin:P,prevChildren:S})}if(v!==m.prevDataKey||g!==m.prevData||b!==m.prevWidth||w!==m.prevHeight||O!==m.prevLayout||_!==m.prevStackOffset||!Ni(P,m.prevMargin)){var M=Ob(x),D={chartX:m.chartX,chartY:m.chartY,isTooltipActive:m.isTooltipActive},N=C(C({},Sb(m,g,O)),{},{updateId:m.updateId+1}),R=C(C(C({},M),D),N);return C(C(C({},R),p(C({props:x},R),m)),{},{prevDataKey:v,prevData:g,prevWidth:b,prevHeight:w,prevLayout:O,prevStackOffset:_,prevMargin:P,prevChildren:S})}if(!Yd(S,m.prevChildren)){var L,j,I,F,V=Pt(S,aa),W=V&&(L=(j=V.props)===null||j===void 0?void 0:j.startIndex)!==null&&L!==void 0?L:T,X=V&&(I=(F=V.props)===null||F===void 0?void 0:F.endIndex)!==null&&I!==void 0?I:$,ie=W!==T||X!==$,_e=!re(g),Me=_e&&!ie?m.updateId:m.updateId+1;return C(C({updateId:Me},p(C(C({props:x},m),{},{updateId:Me,dataStartIndex:W,dataEndIndex:X}),m)),{},{prevChildren:S,dataStartIndex:W,dataEndIndex:X})}return null}),Y(y,"renderActiveDot",function(x,m,v){var g;return B.isValidElement(x)?g=B.cloneElement(x,m):Z(x)?g=x(m):g=A.createElement(hy,m),A.createElement(se,{className:"recharts-active-dot",key:v},g)});var h=B.forwardRef(function(m,v){return A.createElement(y,Ei({},m,{ref:v}))});return h.displayName=y.displayName,h},EP=AP({chartName:"BarChart",GraphicalChild:Lr,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:_l},{axisType:"yAxis",AxisComp:Pl}],formatAxisMap:GV}),pG=AP({chartName:"PieChart",GraphicalChild:Wr,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Uc},{axisType:"radiusAxis",AxisComp:zc}],formatAxisMap:zF,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const hG=()=>{const e=[{name:"Workload",gray:85,blue:15}];return E.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-6",children:[E.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Workload by Status"}),E.jsx("div",{className:"h-40",children:E.jsx(bp,{width:"100%",height:"100%",children:E.jsxs(EP,{data:e,layout:"vertical",barSize:20,children:[E.jsx(_l,{type:"number",domain:[0,100]}),E.jsx(Pl,{type:"category",dataKey:"name",width:80}),E.jsx(Lr,{dataKey:"gray",fill:"#9CA3AF",stackId:"a"}),E.jsx(Lr,{dataKey:"blue",fill:"#3B82F6",stackId:"a"})]})})}),E.jsxs("div",{className:"flex justify-between text-sm text-gray-500 mt-2",children:[E.jsx("span",{children:"0"}),E.jsx("span",{children:"Tasks"}),E.jsx("span",{children:"100"})]})]})},vG=()=>{const e=[{name:"Assigned",value:20},{name:"Unassigned",value:80}],t=[{name:"User A",value:7},{name:"User B",value:6},{name:"User C",value:5},{name:"User D",value:4},{name:"User E",value:3}],r=["#9CA3AF","#E5E7EB"];return E.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[E.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-6",children:[E.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Total Tasks by Assignee"}),E.jsx("div",{className:"h-32",children:E.jsx(bp,{width:"100%",height:"100%",children:E.jsx(pG,{children:E.jsx(Wr,{data:e,cx:"50%",cy:"50%",innerRadius:30,outerRadius:60,paddingAngle:0,dataKey:"value",children:e.map((n,i)=>E.jsx(Pc,{fill:r[i%r.length]},`cell-${i}`))})})})})]}),E.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-6",children:[E.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Open Tasks by Assignee"}),E.jsx("div",{className:"text-sm text-gray-500 mb-2",children:"Tasks"}),E.jsx("div",{className:"h-32",children:E.jsx(bp,{width:"100%",height:"100%",children:E.jsxs(EP,{data:t,children:[E.jsx(_l,{dataKey:"name",hide:!0}),E.jsx(Pl,{domain:[0,8]}),E.jsx(Lr,{dataKey:"value",fill:"#9CA3AF"})]})})})]}),E.jsxs("div",{className:"bg-white rounded-lg border border-gray-200 p-6",children:[E.jsx("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Tasks Completed This Week"}),E.jsx("div",{className:"flex items-center justify-center h-32",children:E.jsxs("div",{className:"text-center",children:[E.jsx("div",{className:"text-gray-400 text-lg mb-2",children:"📋"}),E.jsx("p",{className:"text-gray-500",children:"No Results"})]})})]})]})};function yG(){return E.jsxs("div",{className:"min-h-screen bg-gray-50",children:[E.jsx(bE,{}),E.jsxs("div",{className:"flex",children:[E.jsx(wE,{}),E.jsxs("div",{className:"flex-1",children:[E.jsx(xE,{}),E.jsx(SE,{}),E.jsxs("main",{className:"p-6 space-y-6",children:[E.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[E.jsx("div",{className:"h-full flex flex-col",children:E.jsx(OE,{})}),E.jsxs("div",{className:"space-y-6",children:[E.jsx(_E,{}),E.jsx(hG,{})]})]}),E.jsx(vG,{})]})]})]})]})}Rw(document.getElementById("root")).render(E.jsx(B.StrictMode,{children:E.jsx(yG,{})})); diff --git a/dist/assets/index-r57sLuj_.css b/dist/assets/index-r57sLuj_.css deleted file mode 100644 index 30359d6..0000000 --- a/dist/assets/index-r57sLuj_.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.relative{position:relative}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-2{height:.5rem}.h-3{height:.75rem}.h-32{height:8rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.min-h-screen{min-height:100vh}.w-11{width:2.75rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-64{width:16rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-full{width:100%}.flex-1{flex:1 1 0%}.flex-grow{flex-grow:1}.translate-x-1{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-6{--tw-translate-x: 1.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity, 1))}.bg-teal-100{--tw-bg-opacity: 1;background-color:rgb(204 251 241 / var(--tw-bg-opacity, 1))}.bg-teal-600{--tw-bg-opacity: 1;background-color:rgb(13 148 136 / var(--tw-bg-opacity, 1))}.bg-teal-700{--tw-bg-opacity: 1;background-color:rgb(15 118 110 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.from-purple-500{--tw-gradient-from: #a855f7 var(--tw-gradient-from-position);--tw-gradient-to: rgb(168 85 247 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-pink-500{--tw-gradient-to: #ec4899 var(--tw-gradient-to-position)}.p-1{padding:.25rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-teal-300{--tw-text-opacity: 1;color:rgb(94 234 212 / var(--tw-text-opacity, 1))}.text-teal-700{--tw-text-opacity: 1;color:rgb(15 118 110 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.placeholder-teal-300::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(94 234 212 / var(--tw-placeholder-opacity, 1))}.placeholder-teal-300::placeholder{--tw-placeholder-opacity: 1;color:rgb(94 234 212 / var(--tw-placeholder-opacity, 1))}.outline-none{outline:2px solid transparent;outline-offset:2px}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-purple-700:hover{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity, 1))}.hover\:bg-teal-500:hover{--tw-bg-opacity: 1;background-color:rgb(20 184 166 / var(--tw-bg-opacity, 1))}.hover\:bg-teal-700:hover{--tw-bg-opacity: 1;background-color:rgb(15 118 110 / var(--tw-bg-opacity, 1))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))} diff --git a/dist/index.html b/dist/index.html index eb32e17..0922889 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,8 +5,8 @@ Wokay Assignment - - + +
diff --git a/src/components/AIExecutiveSummary.tsx b/src/components/AIExecutiveSummary.tsx index ef296a9..aab2c03 100644 --- a/src/components/AIExecutiveSummary.tsx +++ b/src/components/AIExecutiveSummary.tsx @@ -1,44 +1,173 @@ -import { Sparkles, Expand, RefreshCw } from "lucide-react"; +import { useState, useEffect } from "react"; +import { Sparkles, Expand, RefreshCw, TrendingUp, AlertTriangle, CheckCircle, Brain } from "lucide-react"; const AIExecutiveSummary = () => { + const [isGenerating, setIsGenerating] = useState(false); + const [currentInsight, setCurrentInsight] = useState(0); + const [isExpanded, setIsExpanded] = useState(false); + + const insights = [ + { + title: "Team Productivity Surge", + content: "Your team has completed 73% more tasks this week compared to last week. The Development team is leading with 18 completed tasks.", + type: "positive", + icon: TrendingUp, + color: "text-green-600", + bgColor: "bg-green-50", + borderColor: "border-green-200" + }, + { + title: "Bottleneck Alert", + content: "The Review process is experiencing delays with 8 pending tasks. Consider allocating additional reviewers to maintain workflow.", + type: "warning", + icon: AlertTriangle, + color: "text-orange-600", + bgColor: "bg-orange-50", + borderColor: "border-orange-200" + }, + { + title: "Sprint Goal Achievement", + content: "You're on track to exceed your sprint goal by 15%. Current completion rate suggests finishing 2 days ahead of schedule.", + type: "success", + icon: CheckCircle, + color: "text-blue-600", + bgColor: "bg-blue-50", + borderColor: "border-blue-200" + } + ]; + + const recommendations = [ + "Consider redistributing 3 tasks from Design to Development team", + "Schedule additional code review sessions for Thursday", + "Celebrate team achievements to maintain momentum" + ]; + + const handleRefresh = () => { + setIsGenerating(true); + setTimeout(() => { + setIsGenerating(false); + setCurrentInsight((prev) => (prev + 1) % insights.length); + }, 2000); + }; + + useEffect(() => { + const interval = setInterval(() => { + setCurrentInsight((prev) => (prev + 1) % insights.length); + }, 8000); + return () => clearInterval(interval); + }, [insights.length]); + + const currentData = insights[currentInsight]; + const IconComponent = currentData.icon; + return ( -
-
+
+
-
- +
+
+ +
+ {isGenerating && ( +
+ )}
-

+

AI Executive Summary +

-

Refreshed 3 mins ago

+

+ {isGenerating ? "Generating insights..." : "Updated just now"} +

- -
-
-
-

Executive Summary

-

- No tasks were updated in the last week. -

+ {/* Main Insight Card */} +
+
+
+ +
+
+

+ {currentData.title} +

+

+ {currentData.content} +

+
+
+ + {/* Insight Indicators */} +
+ {insights.map((_, index) => ( +
+ {/* Recommendations Section */} +
-

- Key Efforts & Initiatives +

+ + AI Recommendations

-

There are no active tasks.

+
+ {recommendations.map((rec, index) => ( +
+
+ {index + 1} +
+

{rec}

+
+ ))} +
+ + {isExpanded && ( +
+

Detailed Analytics

+
+
+
92%
+
Team Efficiency
+
+
+
+18%
+
Week over Week
+
+
+
+ )}
); diff --git a/src/components/DashboardControls.tsx b/src/components/DashboardControls.tsx index 9c58a18..f18cad9 100644 --- a/src/components/DashboardControls.tsx +++ b/src/components/DashboardControls.tsx @@ -1,65 +1,181 @@ -import { useState } from "react"; -import { RefreshCw, Filter, Plus } from "lucide-react"; +import { useState, useEffect } from "react"; +import { RefreshCw, Filter, Plus, Settings, Eye, EyeOff, Clock } from "lucide-react"; const DashboardControls = () => { const [editMode, setEditMode] = useState(false); const [autoRefresh, setAutoRefresh] = useState(true); + const [isRefreshing, setIsRefreshing] = useState(false); + const [lastRefresh, setLastRefresh] = useState("3 mins ago"); + const [filterCount, setFilterCount] = useState(0); + const [showFilters, setShowFilters] = useState(false); + + const handleRefresh = () => { + setIsRefreshing(true); + // Simulate refresh + setTimeout(() => { + setIsRefreshing(false); + setLastRefresh("just now"); + }, 1500); + }; + + const toggleFilter = () => { + setFilterCount(prev => prev === 0 ? 1 : 0); + }; + + useEffect(() => { + if (autoRefresh) { + const interval = setInterval(() => { + setLastRefresh(prev => { + if (prev === "just now") return "1 min ago"; + if (prev === "1 min ago") return "2 mins ago"; + if (prev === "2 mins ago") return "3 mins ago"; + return "3 mins ago"; + }); + }, 60000); + return () => clearInterval(interval); + } + }, [autoRefresh]); return ( -
+
-
+
+ {/* Edit Mode Toggle */}
- Edit mode: +
+ {editMode ? : } + Edit mode: +
+ {editMode && ( + Active + )}
+ {/* Refresh Status */}
-
- - Refreshed 3 mins ago -
+ -
- Auto refresh: + {/* Auto Refresh Toggle */} +
+
+ + Auto refresh: +
- On + + {autoRefresh ? 'On' : 'Off'} +
- + {/* Filters */} +
+ + + {/* Filter Dropdown */} + {showFilters && ( +
+

Filter Options

+
+ {['Status', 'Assignee', 'Priority', 'Date'].map((filter) => ( + + ))} +
+ +
+ )} +
- + {/* Add Card Button */} +
+ + + +
+ + {/* Active filters display */} + {filterCount > 0 && ( +
+ Active filters: + + Status: In Progress + + +
+ )}
); }; diff --git a/src/components/TaskCharts.tsx b/src/components/TaskCharts.tsx index 31cf79c..7190dca 100644 --- a/src/components/TaskCharts.tsx +++ b/src/components/TaskCharts.tsx @@ -1,3 +1,4 @@ +import { useState } from "react"; import { PieChart, Pie, @@ -7,78 +8,231 @@ import { XAxis, YAxis, ResponsiveContainer, + Tooltip, + LineChart, + Line, } from "recharts"; const TaskCharts = () => { + const [activeIndex, setActiveIndex] = useState(-1); + const [selectedChart, setSelectedChart] = useState(null); + const pieData = [ - { name: "Assigned", value: 20 }, - { name: "Unassigned", value: 80 }, + { name: "Assigned", value: 65, color: "#10B981" }, + { name: "Unassigned", value: 35, color: "#EF4444" }, ]; const barData = [ - { name: "User A", value: 7 }, - { name: "User B", value: 6 }, - { name: "User C", value: 5 }, - { name: "User D", value: 4 }, - { name: "User E", value: 3 }, + { name: "Alice", value: 8, avatar: "👩‍💼" }, + { name: "Bob", value: 6, avatar: "👨‍💻" }, + { name: "Carol", value: 5, avatar: "👩‍🎨" }, + { name: "David", value: 4, avatar: "👨‍🔬" }, + { name: "Emma", value: 3, avatar: "👩‍🚀" }, + ]; + + const weeklyData = [ + { day: "Mon", completed: 12, pending: 3 }, + { day: "Tue", completed: 15, pending: 5 }, + { day: "Wed", completed: 8, pending: 7 }, + { day: "Thu", completed: 18, pending: 2 }, + { day: "Fri", completed: 22, pending: 4 }, + { day: "Sat", completed: 5, pending: 1 }, + { day: "Sun", completed: 3, pending: 0 }, ]; - const COLORS = ["#9CA3AF", "#E5E7EB"]; + const onPieEnter = (_: unknown, index: number) => { + setActiveIndex(index); + }; + + const onPieLeave = () => { + setActiveIndex(-1); + }; + + const CustomTooltip = ({ active, payload, label }: { active?: boolean; payload?: Array<{ value: number; payload: Record }>; label?: string }) => { + if (active && payload && payload.length) { + return ( +
+

{`${label}: ${payload[0].value} tasks`}

+
+ ); + } + return null; + }; + + const PieTooltip = ({ active, payload }: { active?: boolean; payload?: Array<{ name: string; value: number }> }) => { + if (active && payload && payload.length) { + return ( +
+

{`${payload[0].name}: ${payload[0].value}%`}

+
+ ); + } + return null; + }; return ( -
-
-

+
+ {/* Enhanced Pie Chart */} +
setSelectedChart(selectedChart === 'pie' ? null : 'pie')} + > +

+ Total Tasks by Assignee

-
+
- {pieData.map((entry, index) => ( + {pieData.map((entry) => ( ))} + } />
+
+ {pieData.map((entry) => ( +
+
+ {entry.name} ({entry.value}%) +
+ ))} +
-
-

+ {/* Enhanced Bar Chart */} +
setSelectedChart(selectedChart === 'bar' ? null : 'bar')} + > +

+ Open Tasks by Assignee

-
Tasks
-
+
Active Tasks
+
- - - - + + + + } /> +
+
+ {barData.slice(0, 3).map((user) => ( +
+
{user.avatar}
+
{user.name}
+
{user.value}
+
+ ))} +
-
-

- Tasks Completed This Week + {/* Enhanced Line Chart - Instead of empty third chart */} +
setSelectedChart(selectedChart === 'line' ? null : 'line')} + > +

+ + Weekly Task Completion

-
-
-
📋
-

No Results

+
Last 7 days
+
+ + + + + } /> + + + + +
+
+
+
+ Completed +
+
+
+ Pending
diff --git a/src/components/TaskStatusOverview.tsx b/src/components/TaskStatusOverview.tsx index b8980bc..6f839e6 100644 --- a/src/components/TaskStatusOverview.tsx +++ b/src/components/TaskStatusOverview.tsx @@ -1,26 +1,127 @@ +import { useState, useEffect } from "react"; +import { Clock, CheckCircle, AlertCircle, TrendingUp } from "lucide-react"; + const TaskStatusOverview = () => { + const [animateNumbers, setAnimateNumbers] = useState(false); + const [hoveredCard, setHoveredCard] = useState(null); + const statusData = [ - { label: "Unassigned", count: 6, color: "bg-gray-100 text-gray-700" }, - { label: "In Progress", count: 1, color: "bg-blue-100 text-blue-700" }, - { label: "Completed", count: 0, color: "bg-green-100 text-green-700" }, + { + label: "Unassigned", + count: 8, + color: "bg-orange-50 border-orange-200", + textColor: "text-orange-700", + numberColor: "text-orange-600", + icon: AlertCircle, + iconColor: "text-orange-500", + trend: "+2 from yesterday", + trendColor: "text-orange-600" + }, + { + label: "In Progress", + count: 12, + color: "bg-blue-50 border-blue-200", + textColor: "text-blue-700", + numberColor: "text-blue-600", + icon: Clock, + iconColor: "text-blue-500", + trend: "+5 from yesterday", + trendColor: "text-blue-600" + }, + { + label: "Completed", + count: 24, + color: "bg-green-50 border-green-200", + textColor: "text-green-700", + numberColor: "text-green-600", + icon: CheckCircle, + iconColor: "text-green-500", + trend: "+8 from yesterday", + trendColor: "text-green-600" + }, ]; + useEffect(() => { + // Trigger number animation on mount + const timer = setTimeout(() => setAnimateNumbers(true), 100); + return () => clearTimeout(timer); + }, []); + + const CountUpAnimation = ({ target, className }: { target: number; className: string }) => { + const [current, setCurrent] = useState(0); + + useEffect(() => { + if (!animateNumbers) return; + + const increment = target / 20; + const timer = setInterval(() => { + setCurrent(prev => { + const next = prev + increment; + if (next >= target) { + clearInterval(timer); + return target; + } + return next; + }); + }, 50); + + return () => clearInterval(timer); + }, [target]); // Remove animateNumbers from dependencies + + return ( +
+ {Math.floor(current)} +
+ ); + }; + return ( -
- {statusData.map((status, index) => ( -
-

- {status.label} -

-
- {status.count} +
+ {statusData.map((status, index) => { + const IconComponent = status.icon; + return ( +
setHoveredCard(index)} + onMouseLeave={() => setHoveredCard(null)} + > +
+

+ {status.label} +

+ +
+ + + +
tasks
+ +
+ + {status.trend} +
+ + {/* Progress bar */} +
+
+
-
tasks
-
- ))} + ); + })}
); }; diff --git a/src/components/WorkloadChart.tsx b/src/components/WorkloadChart.tsx index 9ea1645..bb2df61 100644 --- a/src/components/WorkloadChart.tsx +++ b/src/components/WorkloadChart.tsx @@ -1,27 +1,165 @@ -import { BarChart, Bar, XAxis, YAxis, ResponsiveContainer } from "recharts"; +import { useState } from "react"; +import { BarChart, Bar, XAxis, YAxis, ResponsiveContainer, Tooltip, Cell } from "recharts"; +import { Users, Activity, Target } from "lucide-react"; const WorkloadChart = () => { - const data = [{ name: "Workload", gray: 85, blue: 15 }]; + const [activeBar, setActiveBar] = useState(null); + + const data = [ + { name: "Development", completed: 45, inProgress: 25, pending: 15, total: 85 }, + { name: "Design", completed: 30, inProgress: 20, pending: 10, total: 60 }, + { name: "Testing", completed: 20, inProgress: 15, pending: 5, total: 40 }, + { name: "Review", completed: 35, inProgress: 10, pending: 8, total: 53 }, + ]; + + const teamStats = [ + { label: "Active Members", value: 12, icon: Users, color: "text-blue-600" }, + { label: "Capacity Used", value: "73%", icon: Activity, color: "text-green-600" }, + { label: "Weekly Goal", value: "85%", icon: Target, color: "text-purple-600" }, + ]; + + const CustomTooltip = ({ active, payload, label }: { + active?: boolean; + payload?: Array<{ payload: { completed: number; inProgress: number; pending: number; total: number } }>; + label?: string + }) => { + if (active && payload && payload.length) { + const data = payload[0].payload; + return ( +
+

{label}

+
+
+
+ Completed: {data.completed} +
+
+
+ In Progress: {data.inProgress} +
+
+
+ Pending: {data.pending} +
+
+
+ Total: {data.total} tasks +
+
+ ); + } + return null; + }; return ( -
-

- Workload by Status -

-
+
+
+

+ + Team Workload Overview +

+
+
+
+
+
+
+ + {/* Team Stats */} +
+ {teamStats.map((stat, index) => { + const IconComponent = stat.icon; + return ( +
+ +
{stat.value}
+
{stat.label}
+
+ ); + })} +
+ +
- - - - - + { + if (e && e.activeTooltipIndex !== undefined) { + setActiveBar(e.activeTooltipIndex); + } + }} + onMouseLeave={() => setActiveBar(null)} + > + + + } /> + + {data.map((entry, index) => ( + + ))} + + + {data.map((entry, index) => ( + + ))} + + + {data.map((entry, index) => ( + + ))} +
-
- 0 - Tasks - 100 + + {/* Legend */} +
+
+
+ Completed +
+
+
+ In Progress +
+
+
+ Pending +
); From d073cf64eb332dbc18ce7dd17a5c0b7965165059 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 4 Jul 2025 08:34:24 +0000 Subject: [PATCH 4/4] Adjust dashboard UI to be more ClickUp-like with subtle styling and proper layout Co-authored-by: mswat5 <111264418+mswat5@users.noreply.github.com> --- .gitignore | 28 ++- dist/assets/index-D9muwg9d.css | 1 - dist/assets/index-DRrd4jtE.js | 292 -------------------------- dist/index.html | 4 +- package-lock.json | 49 +++++ package.json | 1 + src/App.tsx | 8 +- src/components/AIExecutiveSummary.tsx | 91 ++++---- src/components/DashboardControls.tsx | 165 +++++++-------- src/components/Sidebar.tsx | 2 +- src/components/TaskCharts.tsx | 54 ++--- src/components/TaskStatusOverview.tsx | 52 +++-- src/components/WorkloadChart.tsx | 43 ++-- 13 files changed, 295 insertions(+), 495 deletions(-) delete mode 100644 dist/assets/index-D9muwg9d.css delete mode 100644 dist/assets/index-DRrd4jtE.js diff --git a/.gitignore b/.gitignore index 30bc162..68d0906 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,27 @@ -/node_modules \ No newline at end of file +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +# Temporary files +/tmp \ No newline at end of file diff --git a/dist/assets/index-D9muwg9d.css b/dist/assets/index-D9muwg9d.css deleted file mode 100644 index fe4d776..0000000 --- a/dist/assets/index-D9muwg9d.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-0{left:0}.top-full{top:100%}.z-10{z-index:10}.row-span-2{grid-row:span 2 / span 2}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-40{height:10rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-full{width:100%}.min-w-\[20px\]{min-width:20px}.flex-1{flex:1 1 0%}.flex-grow{flex-grow:1}.translate-x-1{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-6{--tw-translate-x: 1.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.border-orange-200{--tw-border-opacity: 1;border-color:rgb(254 215 170 / var(--tw-border-opacity, 1))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-orange-400{--tw-bg-opacity: 1;background-color:rgb(251 146 60 / var(--tw-bg-opacity, 1))}.bg-orange-50{--tw-bg-opacity: 1;background-color:rgb(255 247 237 / var(--tw-bg-opacity, 1))}.bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity, 1))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}.bg-purple-400{--tw-bg-opacity: 1;background-color:rgb(192 132 252 / var(--tw-bg-opacity, 1))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity, 1))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity, 1))}.bg-teal-100{--tw-bg-opacity: 1;background-color:rgb(204 251 241 / var(--tw-bg-opacity, 1))}.bg-teal-400{--tw-bg-opacity: 1;background-color:rgb(45 212 191 / var(--tw-bg-opacity, 1))}.bg-teal-600{--tw-bg-opacity: 1;background-color:rgb(13 148 136 / var(--tw-bg-opacity, 1))}.bg-teal-700{--tw-bg-opacity: 1;background-color:rgb(15 118 110 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-400{--tw-gradient-from: #60a5fa var(--tw-gradient-from-position);--tw-gradient-to: rgb(96 165 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-400{--tw-gradient-from: #4ade80 var(--tw-gradient-from-position);--tw-gradient-to: rgb(74 222 128 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-indigo-400{--tw-gradient-from: #818cf8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(129 140 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-400{--tw-gradient-from: #c084fc var(--tw-gradient-from-position);--tw-gradient-to: rgb(192 132 252 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from: #a855f7 var(--tw-gradient-from-position);--tw-gradient-to: rgb(168 85 247 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-500{--tw-gradient-from: #14b8a6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(20 184 166 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-600{--tw-gradient-from: #0d9488 var(--tw-gradient-from-position);--tw-gradient-to: rgb(13 148 136 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-pink-500{--tw-gradient-to: rgb(236 72 153 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #ec4899 var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-emerald-500{--tw-gradient-to: #10b981 var(--tw-gradient-to-position)}.to-indigo-500{--tw-gradient-to: #6366f1 var(--tw-gradient-to-position)}.to-indigo-600{--tw-gradient-to: #4f46e5 var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #ec4899 var(--tw-gradient-to-position)}.to-purple-500{--tw-gradient-to: #a855f7 var(--tw-gradient-to-position)}.to-teal-600{--tw-gradient-to: #0d9488 var(--tw-gradient-to-position)}.to-teal-700{--tw-gradient-to: #0f766e var(--tw-gradient-to-position)}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-relaxed{line-height:1.625}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity, 1))}.text-orange-700{--tw-text-opacity: 1;color:rgb(194 65 12 / var(--tw-text-opacity, 1))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.text-purple-600{--tw-text-opacity: 1;color:rgb(147 51 234 / var(--tw-text-opacity, 1))}.text-teal-300{--tw-text-opacity: 1;color:rgb(94 234 212 / var(--tw-text-opacity, 1))}.text-teal-600{--tw-text-opacity: 1;color:rgb(13 148 136 / var(--tw-text-opacity, 1))}.text-teal-700{--tw-text-opacity: 1;color:rgb(15 118 110 / var(--tw-text-opacity, 1))}.text-teal-800{--tw-text-opacity: 1;color:rgb(17 94 89 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.placeholder-teal-300::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(94 234 212 / var(--tw-placeholder-opacity, 1))}.placeholder-teal-300::placeholder{--tw-placeholder-opacity: 1;color:rgb(94 234 212 / var(--tw-placeholder-opacity, 1))}.opacity-20{opacity:.2}.opacity-30{opacity:.3}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-teal-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(20 184 166 / var(--tw-ring-opacity, 1))}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-400:hover{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.hover\:bg-purple-700:hover{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity, 1))}.hover\:bg-teal-500:hover{--tw-bg-opacity: 1;background-color:rgb(20 184 166 / var(--tw-bg-opacity, 1))}.hover\:bg-teal-700:hover{--tw-bg-opacity: 1;background-color:rgb(15 118 110 / var(--tw-bg-opacity, 1))}.hover\:from-teal-700:hover{--tw-gradient-from: #0f766e var(--tw-gradient-from-position);--tw-gradient-to: rgb(15 118 110 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-teal-800:hover{--tw-gradient-to: #115e59 var(--tw-gradient-to-position)}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-sm:hover{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-xl:hover{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-teal-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(20 184 166 / var(--tw-ring-opacity, 1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\:opacity-50:disabled{opacity:.5} diff --git a/dist/assets/index-DRrd4jtE.js b/dist/assets/index-DRrd4jtE.js deleted file mode 100644 index 88a37bc..0000000 --- a/dist/assets/index-DRrd4jtE.js +++ /dev/null @@ -1,292 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(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"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(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 n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var Dl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function he(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fb={exports:{}},ec={},Ub={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 Sl=Symbol.for("react.element"),QP=Symbol.for("react.portal"),ZP=Symbol.for("react.fragment"),JP=Symbol.for("react.strict_mode"),eA=Symbol.for("react.profiler"),tA=Symbol.for("react.provider"),rA=Symbol.for("react.context"),nA=Symbol.for("react.forward_ref"),iA=Symbol.for("react.suspense"),aA=Symbol.for("react.memo"),oA=Symbol.for("react.lazy"),Ny=Symbol.iterator;function lA(e){return e===null||typeof e!="object"?null:(e=Ny&&e[Ny]||e["@@iterator"],typeof e=="function"?e:null)}var Wb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hb=Object.assign,Kb={};function Oa(e,t,r){this.props=e,this.context=t,this.refs=Kb,this.updater=r||Wb}Oa.prototype.isReactComponent={};Oa.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")};Oa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Vb(){}Vb.prototype=Oa.prototype;function Nh(e,t,r){this.props=e,this.context=t,this.refs=Kb,this.updater=r||Wb}var Mh=Nh.prototype=new Vb;Mh.constructor=Nh;Hb(Mh,Oa.prototype);Mh.isPureReactComponent=!0;var My=Array.isArray,qb=Object.prototype.hasOwnProperty,Ih={current:null},Gb={key:!0,ref:!0,__self:!0,__source:!0};function Xb(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)qb.call(t,n)&&!Gb.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1>>1,W=k[K];if(0>>1;Ki(_e,F))Nei(Lt,_e)?(k[K]=Lt,k[Ne]=F,K=Ne):(k[K]=_e,k[ae]=F,K=ae);else if(Nei(Lt,F))k[K]=Lt,k[Ne]=F,K=Ne;else break e}}return I}function i(k,I){var F=k.sortIndex-I.sortIndex;return F!==0?F:k.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var u=[],s=[],f=1,c=null,d=3,p=!1,h=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=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(k){for(var I=r(s);I!==null;){if(I.callback===null)n(s);else if(I.startTime<=k)n(s),I.sortIndex=I.expirationTime,t(u,I);else break;I=r(s)}}function S(k){if(v=!1,g(k),!h)if(r(u)!==null)h=!0,R(b);else{var I=r(s);I!==null&&B(S,I.startTime-k)}}function b(k,I){h=!1,v&&(v=!1,m(P),P=-1),p=!0;var F=d;try{for(g(I),c=r(u);c!==null&&(!(c.expirationTime>I)||k&&!j());){var K=c.callback;if(typeof K=="function"){c.callback=null,d=c.priorityLevel;var W=K(c.expirationTime<=I);I=e.unstable_now(),typeof W=="function"?c.callback=W:c===r(u)&&n(u),g(I)}else n(u);c=r(u)}if(c!==null)var X=!0;else{var ae=r(s);ae!==null&&B(S,ae.startTime-I),X=!1}return X}finally{c=null,d=F,p=!1}}var w=!1,O=null,P=-1,A=5,$=-1;function j(){return!(e.unstable_now()-$k||125K?(k.sortIndex=F,t(s,k),r(u)===null&&k===r(s)&&(v?(m(P),P=-1):v=!0,B(S,F-K))):(k.sortIndex=W,t(u,k),h||p||(h=!0,R(b))),k},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(k){var I=d;return function(){var F=d;d=I;try{return k.apply(this,arguments)}finally{d=F}}}})(ex);Jb.exports=ex;var gA=Jb.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 bA=L,Mt=gA;function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dd=Object.prototype.hasOwnProperty,xA=/^[: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]*$/,Dy={},Ly={};function wA(e){return dd.call(Ly,e)?!0:dd.call(Dy,e)?!1:xA.test(e)?Ly[e]=!0:(Dy[e]=!0,!1)}function SA(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function OA(e,t,r,n){if(t===null||typeof t>"u"||SA(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,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 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];tt[t]=new pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tt[e]=new pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tt[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){tt[e]=new pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tt[e]=new pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tt[e]=new pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tt[e]=new pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tt[e]=new pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Lh=/[\-:]([a-z])/g;function Rh(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(Lh,Rh);tt[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(Lh,Rh);tt[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(Lh,Rh);tt[t]=new pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){tt[e]=new pt(e,1,!1,e.toLowerCase(),null,!1,!1)});tt.xlinkHref=new pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){tt[e]=new pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Bh(e,t,r,n){var i=tt.hasOwnProperty(t)?tt[t]:null;(i!==null?i.type!==0:n||!(2l||i[o]!==a[l]){var u=` -`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=l);break}}}finally{pf=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ro(e):""}function _A(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=hf(e.type,!1),e;case 11:return e=hf(e.type.render,!1),e;case 1:return e=hf(e.type,!0),e;default:return""}}function yd(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 gi:return"Fragment";case mi:return"Portal";case pd:return"Profiler";case zh:return"StrictMode";case hd:return"Suspense";case vd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case nx:return(e.displayName||"Context")+".Consumer";case rx:return(e._context.displayName||"Context")+".Provider";case Fh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Uh:return t=e.displayName||null,t!==null?t:yd(e.type)||"Memo";case Yr:t=e._payload,e=e._init;try{return yd(e(t))}catch{}}return null}function PA(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 yd(t);case 8:return t===zh?"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 hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ax(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function AA(e){var t=ax(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bl(e){e._valueTracker||(e._valueTracker=AA(e))}function ox(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=ax(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ju(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 r=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function By(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=hn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function lx(e,t){t=t.checked,t!=null&&Bh(e,"checked",t,!1)}function gd(e,t){lx(e,t);var r=hn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bd(e,t.type,r):t.hasOwnProperty("defaultValue")&&bd(e,t.type,hn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zy(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function bd(e,t,r){(t!=="number"||ju(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var no=Array.isArray;function Mi(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=zl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Po(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var lo={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},EA=["Webkit","ms","Moz","O"];Object.keys(lo).forEach(function(e){EA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),lo[t]=lo[e]})});function fx(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||lo.hasOwnProperty(e)&&lo[e]?(""+t).trim():t+"px"}function dx(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=fx(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var jA=$e({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 Sd(e,t){if(t){if(jA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function Od(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 _d=null;function Wh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pd=null,Ii=null,Di=null;function Wy(e){if(e=Pl(e)){if(typeof Pd!="function")throw Error(U(280));var t=e.stateNode;t&&(t=ac(t),Pd(e.stateNode,e.type,t))}}function px(e){Ii?Di?Di.push(e):Di=[e]:Ii=e}function hx(){if(Ii){var e=Ii,t=Di;if(Di=Ii=null,Wy(e),t)for(e=0;e>>=0,e===0?32:31-(BA(e)/zA|0)|0}var Fl=64,Ul=4194304;function io(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 Cu(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var l=o&~i;l!==0?n=io(l):(a&=o,a!==0&&(n=io(a)))}else o=r&~i,o!==0?n=io(o):a!==0&&(n=io(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function Ol(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-or(t),e[t]=r}function HA(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0=so),Zy=" ",Jy=!1;function Mx(e,t){switch(e){case"keyup":return g2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ix(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bi=!1;function x2(e,t){switch(e){case"compositionend":return Ix(t);case"keypress":return t.which!==32?null:(Jy=!0,Zy);case"textInput":return e=t.data,e===Zy&&Jy?null:e;default:return null}}function w2(e,t){if(bi)return e==="compositionend"||!Qh&&Mx(e,t)?(e=Cx(),mu=Gh=tn=null,bi=!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:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nm(r)}}function Bx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zx(){for(var e=window,t=ju();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ju(e.document)}return t}function Zh(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 T2(e){var t=zx(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Bx(r.ownerDocument.documentElement,r)){if(n!==null&&Zh(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=im(r,a);var o=im(r,n);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>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,xi=null,kd=null,fo=null,Cd=!1;function am(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Cd||xi==null||xi!==ju(n)||(n=xi,"selectionStart"in n&&Zh(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),fo&&ko(fo,n)||(fo=n,n=Iu(kd,"onSelect"),0Oi||(e.current=Rd[Oi],Rd[Oi]=null,Oi--)}function ge(e,t){Oi++,Rd[Oi]=e.current,e.current=t}var vn={},ot=mn(vn),bt=mn(!1),qn=vn;function Ki(e,t){var r=e.type.contextTypes;if(!r)return vn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function xt(e){return e=e.childContextTypes,e!=null}function Lu(){Oe(bt),Oe(ot)}function dm(e,t,r){if(ot.current!==vn)throw Error(U(168));ge(ot,t),ge(bt,r)}function Xx(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(U(108,PA(e)||"Unknown",i));return $e({},r,n)}function Ru(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vn,qn=ot.current,ge(ot,e),ge(bt,bt.current),!0}function pm(e,t,r){var n=e.stateNode;if(!n)throw Error(U(169));r?(e=Xx(e,t,qn),n.__reactInternalMemoizedMergedChildContext=e,Oe(bt),Oe(ot),ge(ot,e)):Oe(bt),ge(bt,r)}var Ar=null,oc=!1,jf=!1;function Yx(e){Ar===null?Ar=[e]:Ar.push(e)}function U2(e){oc=!0,Yx(e)}function gn(){if(!jf&&Ar!==null){jf=!0;var e=0,t=fe;try{var r=Ar;for(fe=1;e>=o,i-=o,Er=1<<32-or(t)+i|r<P?(A=O,O=null):A=O.sibling;var $=d(m,O,g[P],S);if($===null){O===null&&(O=A);break}e&&O&&$.alternate===null&&t(m,O),y=a($,y,P),w===null?b=$:w.sibling=$,w=$,O=A}if(P===g.length)return r(m,O),Pe&&$n(m,P),b;if(O===null){for(;PP?(A=O,O=null):A=O.sibling;var j=d(m,O,$.value,S);if(j===null){O===null&&(O=A);break}e&&O&&j.alternate===null&&t(m,O),y=a(j,y,P),w===null?b=j:w.sibling=j,w=j,O=A}if($.done)return r(m,O),Pe&&$n(m,P),b;if(O===null){for(;!$.done;P++,$=g.next())$=c(m,$.value,S),$!==null&&(y=a($,y,P),w===null?b=$:w.sibling=$,w=$);return Pe&&$n(m,P),b}for(O=n(m,O);!$.done;P++,$=g.next())$=p(O,m,P,$.value,S),$!==null&&(e&&$.alternate!==null&&O.delete($.key===null?P:$.key),y=a($,y,P),w===null?b=$:w.sibling=$,w=$);return e&&O.forEach(function(T){return t(m,T)}),Pe&&$n(m,P),b}function x(m,y,g,S){if(typeof g=="object"&&g!==null&&g.type===gi&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Rl:e:{for(var b=g.key,w=y;w!==null;){if(w.key===b){if(b=g.type,b===gi){if(w.tag===7){r(m,w.sibling),y=i(w,g.props.children),y.return=m,m=y;break e}}else if(w.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Yr&&ym(b)===w.type){r(m,w.sibling),y=i(w,g.props),y.ref=Wa(m,w,g),y.return=m,m=y;break e}r(m,w);break}else t(m,w);w=w.sibling}g.type===gi?(y=Wn(g.props.children,m.mode,S,g.key),y.return=m,m=y):(S=Pu(g.type,g.key,g.props,null,m.mode,S),S.ref=Wa(m,y,g),S.return=m,m=S)}return o(m);case mi:e:{for(w=g.key;y!==null;){if(y.key===w)if(y.tag===4&&y.stateNode.containerInfo===g.containerInfo&&y.stateNode.implementation===g.implementation){r(m,y.sibling),y=i(y,g.children||[]),y.return=m,m=y;break e}else{r(m,y);break}else t(m,y);y=y.sibling}y=Df(g,m.mode,S),y.return=m,m=y}return o(m);case Yr:return w=g._init,x(m,y,w(g._payload),S)}if(no(g))return h(m,y,g,S);if(Ra(g))return v(m,y,g,S);Xl(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,y!==null&&y.tag===6?(r(m,y.sibling),y=i(y,g),y.return=m,m=y):(r(m,y),y=If(g,m.mode,S),y.return=m,m=y),o(m)):r(m,y)}return x}var qi=ew(!0),tw=ew(!1),Fu=mn(null),Uu=null,Ai=null,rv=null;function nv(){rv=Ai=Uu=null}function iv(e){var t=Fu.current;Oe(Fu),e._currentValue=t}function Fd(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Ri(e,t){Uu=e,rv=Ai=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(mt=!0),e.firstContext=null)}function qt(e){var t=e._currentValue;if(rv!==e)if(e={context:e,memoizedValue:t,next:null},Ai===null){if(Uu===null)throw Error(U(308));Ai=e,Uu.dependencies={lanes:0,firstContext:e}}else Ai=Ai.next=e;return t}var Dn=null;function av(e){Dn===null?Dn=[e]:Dn.push(e)}function rw(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,av(t)):(r.next=i.next,i.next=r),t.interleaved=r,Rr(e,n)}function Rr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Qr=!1;function ov(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function nw(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function kr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function sn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,le&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Rr(e,r)}return i=n.interleaved,i===null?(t.next=t,av(n)):(t.next=i.next,i.next=t),n.interleaved=t,Rr(e,r)}function bu(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Kh(e,r)}}function mm(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Wu(e,t,r,n){var i=e.updateQueue;Qr=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,s=u.next;u.next=null,o===null?a=s:o.next=s,o=u;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==o&&(l===null?f.firstBaseUpdate=s:l.next=s,f.lastBaseUpdate=u))}if(a!==null){var c=i.baseState;o=0,f=s=u=null,l=a;do{var d=l.lane,p=l.eventTime;if((n&d)===d){f!==null&&(f=f.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,v=l;switch(d=t,p=r,v.tag){case 1:if(h=v.payload,typeof h=="function"){c=h.call(p,c,d);break e}c=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=v.payload,d=typeof h=="function"?h.call(p,c,d):h,d==null)break e;c=$e({},c,d);break e;case 2:Qr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(s=f=p,u=c):f=f.next=p,o|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(u=c),i.baseState=u,i.firstBaseUpdate=s,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Yn|=o,e.lanes=o,e.memoizedState=c}}function gm(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=Tf.transition;Tf.transition={};try{e(!1),t()}finally{fe=r,Tf.transition=n}}function xw(){return Gt().memoizedState}function V2(e,t,r){var n=fn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},ww(e))Sw(t,r);else if(r=rw(e,t,r,n),r!==null){var i=ft();lr(r,e,n,i),Ow(r,t,n)}}function q2(e,t,r){var n=fn(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(ww(e))Sw(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,l=a(o,r);if(i.hasEagerState=!0,i.eagerState=l,ur(l,o)){var u=t.interleaved;u===null?(i.next=i,av(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}r=rw(e,t,i,n),r!==null&&(i=ft(),lr(r,e,n,i),Ow(r,t,n))}}function ww(e){var t=e.alternate;return e===je||t!==null&&t===je}function Sw(e,t){po=Ku=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Ow(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Kh(e,r)}}var Vu={readContext:qt,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useInsertionEffect:rt,useLayoutEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useMutableSource:rt,useSyncExternalStore:rt,useId:rt,unstable_isNewReconciler:!1},G2={readContext:qt,useCallback:function(e,t){return fr().memoizedState=[e,t===void 0?null:t],e},useContext:qt,useEffect:xm,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,wu(4194308,4,vw.bind(null,t,e),r)},useLayoutEffect:function(e,t){return wu(4194308,4,e,t)},useInsertionEffect:function(e,t){return wu(4,2,e,t)},useMemo:function(e,t){var r=fr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=fr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=V2.bind(null,je,e),[n.memoizedState,e]},useRef:function(e){var t=fr();return e={current:e},t.memoizedState=e},useState:bm,useDebugValue:hv,useDeferredValue:function(e){return fr().memoizedState=e},useTransition:function(){var e=bm(!1),t=e[0];return e=K2.bind(null,e[1]),fr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=je,i=fr();if(Pe){if(r===void 0)throw Error(U(407));r=r()}else{if(r=t(),Ye===null)throw Error(U(349));Xn&30||lw(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,xm(sw.bind(null,n,a,e),[e]),n.flags|=2048,Bo(9,uw.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=fr(),t=Ye.identifierPrefix;if(Pe){var r=jr,n=Er;r=(n&~(1<<32-or(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Lo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[dr]=t,e[Mo]=n,Nw(e,t,!1,!1),t.stateNode=e;e:{switch(o=Od(r,n),r){case"dialog":xe("cancel",e),xe("close",e),i=n;break;case"iframe":case"object":case"embed":xe("load",e),i=n;break;case"video":case"audio":for(i=0;iYi&&(t.flags|=128,n=!0,Ha(a,!1),t.lanes=4194304)}else{if(!n)if(e=Hu(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ha(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Pe)return nt(t),null}else 2*Me()-a.renderingStartTime>Yi&&r!==1073741824&&(t.flags|=128,n=!0,Ha(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Me(),t.sibling=null,r=Ee.current,ge(Ee,n?r&1|2:r&1),t):(nt(t),null);case 22:case 23:return xv(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Pt&1073741824&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function rE(e,t){switch(ev(t),t.tag){case 1:return xt(t.type)&&Lu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gi(),Oe(bt),Oe(ot),sv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return uv(t),null;case 13:if(Oe(Ee),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Oe(Ee),null;case 4:return Gi(),null;case 10:return iv(t.type._context),null;case 22:case 23:return xv(),null;case 24:return null;default:return null}}var Ql=!1,at=!1,nE=typeof WeakSet=="function"?WeakSet:Set,q=null;function Ei(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){ke(e,t,n)}else r.current=null}function Yd(e,t,r){try{r()}catch(n){ke(e,t,n)}}var km=!1;function iE(e,t){if(Nd=Nu,e=zx(),Zh(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,l=-1,u=-1,s=0,f=0,c=e,d=null;t:for(;;){for(var p;c!==r||i!==0&&c.nodeType!==3||(l=o+i),c!==a||n!==0&&c.nodeType!==3||(u=o+n),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break t;if(d===r&&++s===i&&(l=o),d===a&&++f===n&&(u=o),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}r=l===-1||u===-1?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Md={focusedElem:e,selectionRange:r},Nu=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,x=h.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:er(t.type,v),x);m.__reactInternalSnapshotBeforeUpdate=y}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(U(163))}}catch(S){ke(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return h=km,km=!1,h}function ho(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Yd(t,r,a)}i=i.next}while(i!==n)}}function sc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Qd(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Dw(e){var t=e.alternate;t!==null&&(e.alternate=null,Dw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dr],delete t[Mo],delete t[Ld],delete t[z2],delete t[F2])),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 Lw(e){return e.tag===5||e.tag===3||e.tag===4}function Cm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lw(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 Zd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Du));else if(n!==4&&(e=e.child,e!==null))for(Zd(e,t,r),e=e.sibling;e!==null;)Zd(e,t,r),e=e.sibling}function Jd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Jd(e,t,r),e=e.sibling;e!==null;)Jd(e,t,r),e=e.sibling}var Je=null,tr=!1;function Xr(e,t,r){for(r=r.child;r!==null;)Rw(e,t,r),r=r.sibling}function Rw(e,t,r){if(hr&&typeof hr.onCommitFiberUnmount=="function")try{hr.onCommitFiberUnmount(tc,r)}catch{}switch(r.tag){case 5:at||Ei(r,t);case 6:var n=Je,i=tr;Je=null,Xr(e,t,r),Je=n,tr=i,Je!==null&&(tr?(e=Je,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Je.removeChild(r.stateNode));break;case 18:Je!==null&&(tr?(e=Je,r=r.stateNode,e.nodeType===8?Ef(e.parentNode,r):e.nodeType===1&&Ef(e,r),$o(e)):Ef(Je,r.stateNode));break;case 4:n=Je,i=tr,Je=r.stateNode.containerInfo,tr=!0,Xr(e,t,r),Je=n,tr=i;break;case 0:case 11:case 14:case 15:if(!at&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Yd(r,t,o),i=i.next}while(i!==n)}Xr(e,t,r);break;case 1:if(!at&&(Ei(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){ke(r,t,l)}Xr(e,t,r);break;case 21:Xr(e,t,r);break;case 22:r.mode&1?(at=(n=at)||r.memoizedState!==null,Xr(e,t,r),at=n):Xr(e,t,r);break;default:Xr(e,t,r)}}function Nm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new nE),t.forEach(function(n){var i=pE.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Zt(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=Me()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*oE(n/1960))-n,10e?16:e,rn===null)var n=!1;else{if(e=rn,rn=null,Xu=0,le&6)throw Error(U(331));var i=le;for(le|=4,q=e.current;q!==null;){var a=q,o=a.child;if(q.flags&16){var l=a.deletions;if(l!==null){for(var u=0;uMe()-gv?Un(e,0):mv|=r),wt(e,t)}function Vw(e,t){t===0&&(e.mode&1?(t=Ul,Ul<<=1,!(Ul&130023424)&&(Ul=4194304)):t=1);var r=ft();e=Rr(e,t),e!==null&&(Ol(e,t,r),wt(e,r))}function dE(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Vw(e,r)}function pE(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(U(314))}n!==null&&n.delete(t),Vw(e,r)}var qw;qw=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||bt.current)mt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return mt=!1,eE(e,t,r);mt=!!(e.flags&131072)}else mt=!1,Pe&&t.flags&1048576&&Qx(t,zu,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Su(e,t),e=t.pendingProps;var i=Ki(t,ot.current);Ri(t,r),i=fv(null,t,n,e,i,r);var a=dv();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(n)?(a=!0,Ru(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ov(t),i.updater=uc,t.stateNode=i,i._reactInternals=t,Wd(t,n,e,r),t=Vd(null,t,n,!0,a,r)):(t.tag=0,Pe&&a&&Jh(t),lt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Su(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=vE(n),e=er(n,e),i){case 0:t=Kd(null,t,n,e,r);break e;case 1:t=jm(null,t,n,e,r);break e;case 11:t=Am(null,t,n,e,r);break e;case 14:t=Em(null,t,n,er(n.type,e),r);break e}throw Error(U(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:er(n,i),Kd(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:er(n,i),jm(e,t,n,i,r);case 3:e:{if(Tw(t),e===null)throw Error(U(387));n=t.pendingProps,a=t.memoizedState,i=a.element,nw(e,t),Wu(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Xi(Error(U(423)),t),t=$m(e,t,n,r,i);break e}else if(n!==i){i=Xi(Error(U(424)),t),t=$m(e,t,n,r,i);break e}else for(Tt=un(t.stateNode.containerInfo.firstChild),kt=t,Pe=!0,ir=null,r=tw(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Vi(),n===i){t=Br(e,t,r);break e}lt(e,t,n,r)}t=t.child}return t;case 5:return iw(t),e===null&&zd(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Id(n,i)?o=null:a!==null&&Id(n,a)&&(t.flags|=32),$w(e,t),lt(e,t,o,r),t.child;case 6:return e===null&&zd(t),null;case 13:return kw(e,t,r);case 4:return lv(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=qi(t,null,n,r):lt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:er(n,i),Am(e,t,n,i,r);case 7:return lt(e,t,t.pendingProps,r),t.child;case 8:return lt(e,t,t.pendingProps.children,r),t.child;case 12:return lt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,ge(Fu,n._currentValue),n._currentValue=o,a!==null)if(ur(a.value,o)){if(a.children===i.children&&!bt.current){t=Br(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){o=a.child;for(var u=l.firstContext;u!==null;){if(u.context===n){if(a.tag===1){u=kr(-1,r&-r),u.tag=2;var s=a.updateQueue;if(s!==null){s=s.shared;var f=s.pending;f===null?u.next=u:(u.next=f.next,f.next=u),s.pending=u}}a.lanes|=r,u=a.alternate,u!==null&&(u.lanes|=r),Fd(a.return,r,t),l.lanes|=r;break}u=u.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(U(341));o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),Fd(o,r,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}lt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Ri(t,r),i=qt(i),n=n(i),t.flags|=1,lt(e,t,n,r),t.child;case 14:return n=t.type,i=er(n,t.pendingProps),i=er(n.type,i),Em(e,t,n,i,r);case 15:return Ew(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:er(n,i),Su(e,t),t.tag=1,xt(n)?(e=!0,Ru(t)):e=!1,Ri(t,r),_w(t,n,i),Wd(t,n,i,r),Vd(null,t,n,!0,e,r);case 19:return Cw(e,t,r);case 22:return jw(e,t,r)}throw Error(U(156,t.tag))};function Gw(e,t){return wx(e,t)}function hE(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(e,t,r,n){return new hE(e,t,r,n)}function Sv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vE(e){if(typeof e=="function")return Sv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fh)return 11;if(e===Uh)return 14}return 2}function dn(e,t){var r=e.alternate;return r===null?(r=Ht(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Pu(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")Sv(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case gi:return Wn(r.children,i,a,t);case zh:o=8,i|=8;break;case pd:return e=Ht(12,r,t,i|2),e.elementType=pd,e.lanes=a,e;case hd:return e=Ht(13,r,t,i),e.elementType=hd,e.lanes=a,e;case vd:return e=Ht(19,r,t,i),e.elementType=vd,e.lanes=a,e;case ix:return fc(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rx:o=10;break e;case nx:o=9;break e;case Fh:o=11;break e;case Uh:o=14;break e;case Yr:o=16,n=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=Ht(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Wn(e,t,r,n){return e=Ht(7,e,n,t),e.lanes=r,e}function fc(e,t,r,n){return e=Ht(22,e,n,t),e.elementType=ix,e.lanes=r,e.stateNode={isHidden:!1},e}function If(e,t,r){return e=Ht(6,e,null,t),e.lanes=r,e}function Df(e,t,r){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yE(e,t,r,n,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=yf(0),this.expirationTimes=yf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yf(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ov(e,t,r,n,i,a,o,l,u){return e=new yE(e,t,r,l,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Ht(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ov(a),e}function mE(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Zw)}catch(e){console.error(e)}}Zw(),Zb.exports=It;var SE=Zb.exports,Jw,Fm=SE;Jw=Fm.createRoot,Fm.hydrateRoot;/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */var OE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const _E=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),ie=(e,t)=>{const r=L.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:l="",children:u,...s},f)=>L.createElement("svg",{ref:f,...OE,width:i,height:i,stroke:n,strokeWidth:o?Number(a)*24/Number(i):a,className:["lucide",`lucide-${_E(e)}`,l].join(" "),...s},[...t.map(([c,d])=>L.createElement(c,d)),...Array.isArray(u)?u:[u]]));return r.displayName=`${e}`,r};/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const PE=ie("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const AE=ie("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const EE=ie("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const jE=ie("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const $E=ie("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const TE=ie("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const eS=ie("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Lf=ie("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const ip=ie("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Ev=ie("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const kE=ie("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const tS=ie("Expand",[["path",{d:"m21 21-6-6m6 6v-4.8m0 4.8h-4.8",key:"1c15vz"}],["path",{d:"M3 16.2V21m0 0h4.8M3 21l6-6",key:"1fsnz2"}],["path",{d:"M21 7.8V3m0 0h-4.8M21 3l-6 6",key:"hawz9i"}],["path",{d:"M3 7.8V3m0 0h4.8M3 3l6 6",key:"u9ee12"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const CE=ie("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const NE=ie("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const ME=ie("FileSpreadsheet",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const IE=ie("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const DE=ie("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const rS=ie("HelpCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const LE=ie("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const RE=ie("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const BE=ie("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const nS=ie("MoreHorizontal",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Zu=ie("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const iS=ie("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const aS=ie("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const oS=ie("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const zE=ie("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const lS=ie("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const FE=ie("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const uS=ie("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const sS=ie("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const UE=ie("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const cS=ie("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** - * @license lucide-react v0.344.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const WE=ie("Video",[["path",{d:"m22 8-6 4 6 4V8Z",key:"50v9me"}],["rect",{width:"14",height:"12",x:"2",y:"6",rx:"2",ry:"2",key:"1rqjg6"}]]),HE=()=>_.jsx("header",{className:"bg-teal-700 text-white",children:_.jsxs("div",{className:"flex items-center justify-between px-4 py-2",children:[_.jsx("div",{className:"flex items-center space-x-2",children:_.jsx("div",{className:"w-8 h-8 bg-white rounded-sm flex items-center justify-center",children:_.jsx("div",{className:"w-5 h-5 bg-teal-700 rounded-sm"})})}),_.jsxs("div",{className:"flex items-center bg-teal-600 rounded-md px-3 py-1.5 w-80",children:[_.jsx(aS,{className:"w-4 h-4 text-teal-300 mr-2"}),_.jsx("input",{type:"text",placeholder:"Search...",className:"bg-transparent text-white placeholder-teal-300 outline-none w-full"})]}),_.jsxs("div",{className:"flex items-center space-x-3",children:[_.jsxs("button",{className:"flex items-center space-x-1 bg-teal-600 hover:bg-teal-500 px-3 py-1.5 rounded-md transition-colors",children:[_.jsx(lS,{className:"w-4 h-4"}),_.jsx("span",{className:"text-sm",children:"AI"})]}),_.jsx("button",{className:"bg-purple-600 hover:bg-purple-700 px-4 py-1.5 rounded-md text-sm font-medium transition-colors",children:"Upgrade"}),_.jsxs("button",{className:"flex items-center space-x-1 bg-white text-teal-700 hover:bg-gray-100 px-3 py-1.5 rounded-md transition-colors",children:[_.jsx(Zu,{className:"w-4 h-4"}),_.jsx("span",{className:"text-sm font-medium",children:"New"})]}),_.jsxs("div",{className:"flex items-center space-x-2",children:[_.jsx($E,{className:"w-5 h-5 text-teal-300 hover:text-white cursor-pointer"}),_.jsx(oS,{className:"w-5 h-5 text-teal-300 hover:text-white cursor-pointer"}),_.jsx(rS,{className:"w-5 h-5 text-teal-300 hover:text-white cursor-pointer"}),_.jsx("div",{className:"w-8 h-8 bg-blue-500 rounded-full flex items-center justify-center font-semibold",children:"S"})]})]})]})}),KE=()=>_.jsx("div",{className:"bg-white border-b border-gray-200 px-6 py-3",children:_.jsxs("div",{className:"flex items-center justify-between",children:[_.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600",children:[_.jsx("span",{children:"Dashboards"}),_.jsx(ip,{className:"w-4 h-4"}),_.jsx("span",{className:"text-gray-900 font-medium",children:"Dashboard"})]}),_.jsxs("div",{className:"flex items-center space-x-3",children:[_.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:_.jsx(zE,{className:"w-4 h-4"})}),_.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:_.jsx(FE,{className:"w-4 h-4"})}),_.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:_.jsx(kE,{className:"w-4 h-4"})}),_.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:_.jsx(tS,{className:"w-4 h-4"})}),_.jsx("button",{className:"text-gray-500 hover:text-gray-700 transition-colors",children:_.jsx(nS,{className:"w-4 h-4"})})]})]})}),VE=()=>{const[e,t]=L.useState(!1),[r,n]=L.useState(!0),i=[{icon:LE,label:"Home",active:!1},{icon:RE,label:"Inbox",active:!1},{icon:cS,label:"Teams",active:!1},{icon:IE,label:"Docs",active:!1},{icon:jE,label:"Dashboards",active:!0},{icon:BE,label:"Whiteboards",active:!1},{icon:ME,label:"Forms",active:!1},{icon:WE,label:"Clips",active:!1},{icon:uS,label:"Goals",active:!1},{icon:Ev,label:"Timesheets",active:!1},{icon:nS,label:"More",active:!1}];return _.jsxs("div",{className:"w-64 bg-gray-50 h-screen border-r border-gray-200 flex flex-col",children:[_.jsx("div",{className:"p-4 border-b border-gray-200",children:_.jsxs("div",{className:"flex items-center space-x-3",children:[_.jsx("div",{className:"w-8 h-8 bg-teal-600 rounded-full flex items-center justify-center text-white font-semibold text-sm",children:"S"}),_.jsx("div",{className:"flex-1",children:_.jsxs("div",{className:"flex items-center space-x-1",children:[_.jsx("span",{className:"text-sm font-medium text-gray-900",children:"Swatantra mi..."}),_.jsx(Lf,{className:"w-4 h-4 text-gray-500"})]})})]})}),_.jsxs("nav",{className:"flex-1 p-4 space-y-1",children:[i.map((a,o)=>_.jsxs("a",{href:"#",className:`flex items-center space-x-3 px-3 py-2 rounded-md text-sm transition-colors ${a.active?"bg-teal-100 text-teal-700 font-medium":"text-gray-700 hover:bg-gray-100"}`,children:[_.jsx(a.icon,{className:"w-4 h-4"}),_.jsx("span",{children:a.label})]},o)),_.jsx("div",{className:"pt-4",children:_.jsxs("button",{onClick:()=>t(!e),className:"flex items-center space-x-2 w-full px-3 py-2 text-sm text-gray-600 hover:text-gray-900 transition-colors",children:[e?_.jsx(Lf,{className:"w-4 h-4"}):_.jsx(ip,{className:"w-4 h-4"}),_.jsx("span",{className:"font-medium",children:"Favorites"})]})}),_.jsxs("div",{className:"pt-2",children:[_.jsxs("button",{onClick:()=>n(!r),className:"flex items-center space-x-2 w-full px-3 py-2 text-sm text-gray-600 hover:text-gray-900 transition-colors",children:[r?_.jsx(Lf,{className:"w-4 h-4"}):_.jsx(ip,{className:"w-4 h-4"}),_.jsx("span",{className:"font-medium",children:"Spaces"}),_.jsxs("div",{className:"ml-auto flex items-center space-x-1",children:[_.jsx(aS,{className:"w-3 h-3"}),_.jsx(Zu,{className:"w-3 h-3"})]})]}),r&&_.jsxs("div",{className:"ml-4 mt-1 space-y-1",children:[_.jsxs("a",{href:"#",className:"flex items-center space-x-2 px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 rounded-md",children:[_.jsx("div",{className:"w-2 h-2 bg-gray-400 rounded-full"}),_.jsx("span",{children:"Everything"})]}),_.jsxs("a",{href:"#",className:"flex items-center space-x-2 px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 rounded-md",children:[_.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full"}),_.jsx("span",{children:"Team Space"})]}),_.jsxs("button",{className:"flex items-center space-x-2 px-3 py-1.5 text-sm text-gray-500 hover:text-gray-700 transition-colors",children:[_.jsx(Zu,{className:"w-3 h-3"}),_.jsx("span",{children:"Create Space"})]})]})]})]}),_.jsxs("div",{className:"p-4 border-t border-gray-200 space-y-2",children:[_.jsxs("button",{className:"flex items-center space-x-2 w-full px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-md transition-colors",children:[_.jsx(UE,{className:"w-4 h-4"}),_.jsx("span",{children:"Invite"})]}),_.jsxs("button",{className:"flex items-center space-x-2 w-full px-3 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-md transition-colors",children:[_.jsx(rS,{className:"w-4 h-4"}),_.jsx("span",{children:"Help"})]})]})]})},qE=()=>{const[e,t]=L.useState(!1),[r,n]=L.useState(!0),[i,a]=L.useState(!1),[o,l]=L.useState("3 mins ago"),[u,s]=L.useState(0),[f,c]=L.useState(!1),d=()=>{a(!0),setTimeout(()=>{a(!1),l("just now")},1500)},p=()=>{s(h=>h===0?1:0)};return L.useEffect(()=>{if(r){const h=setInterval(()=>{l(v=>v==="just now"?"1 min ago":v==="1 min ago"?"2 mins ago":"3 mins ago")},6e4);return()=>clearInterval(h)}},[r]),_.jsxs("div",{className:"bg-white border-b border-gray-200 px-6 py-4 shadow-sm",children:[_.jsxs("div",{className:"flex items-center justify-between",children:[_.jsxs("div",{className:"flex items-center space-x-8",children:[_.jsxs("div",{className:"flex items-center space-x-3",children:[_.jsxs("div",{className:"flex items-center space-x-2",children:[e?_.jsx(NE,{className:"w-4 h-4 text-teal-600"}):_.jsx(CE,{className:"w-4 h-4 text-gray-400"}),_.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Edit mode:"})]}),_.jsxs("button",{onClick:()=>t(!e),className:`relative inline-flex h-6 w-11 items-center rounded-full transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-teal-500 focus:ring-offset-2 ${e?"bg-gradient-to-r from-teal-500 to-teal-600 shadow-lg":"bg-gray-200 hover:bg-gray-300"}`,children:[_.jsx("span",{className:`inline-block h-4 w-4 transform rounded-full bg-white transition-all duration-300 shadow-md ${e?"translate-x-6 scale-110":"translate-x-1"}`}),e&&_.jsx("div",{className:"absolute inset-0 rounded-full bg-teal-400 opacity-20 animate-ping"})]}),e&&_.jsx("span",{className:"text-xs text-teal-600 font-medium animate-pulse",children:"Active"})]}),_.jsxs("div",{className:"flex items-center space-x-4",children:[_.jsxs("button",{onClick:d,disabled:i,className:"flex items-center space-x-2 text-sm text-gray-600 hover:text-gray-800 transition-colors disabled:opacity-50",children:[_.jsx(iS,{className:`w-4 h-4 ${i?"animate-spin text-teal-600":""}`}),_.jsx("span",{children:i?"Refreshing...":`Refreshed ${o}`})]}),_.jsxs("div",{className:"flex items-center space-x-3",children:[_.jsxs("div",{className:"flex items-center space-x-2",children:[_.jsx(Ev,{className:"w-4 h-4 text-gray-400"}),_.jsx("span",{className:"text-sm font-medium text-gray-700",children:"Auto refresh:"})]}),_.jsxs("button",{onClick:()=>n(!r),className:`relative inline-flex h-5 w-9 items-center rounded-full transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-teal-500 focus:ring-offset-2 ${r?"bg-gradient-to-r from-teal-500 to-teal-600 shadow-md":"bg-gray-200 hover:bg-gray-300"}`,children:[_.jsx("span",{className:`inline-block h-3 w-3 transform rounded-full bg-white transition-all duration-300 shadow-sm ${r?"translate-x-5 scale-110":"translate-x-1"}`}),r&&_.jsx("div",{className:"absolute inset-0 rounded-full bg-teal-400 opacity-20 animate-pulse"})]}),_.jsx("span",{className:`text-sm font-medium transition-colors ${r?"text-teal-600":"text-gray-500"}`,children:r?"On":"Off"})]}),_.jsxs("div",{className:"relative",children:[_.jsxs("button",{onClick:()=>c(!f),className:"flex items-center space-x-2 px-3 py-1.5 text-sm text-gray-700 hover:bg-gray-100 rounded-lg transition-all duration-200 hover:shadow-sm border border-gray-200",children:[_.jsx(DE,{className:"w-4 h-4"}),_.jsx("span",{children:"Filters"}),u>0&&_.jsx("span",{className:"bg-teal-600 text-white text-xs rounded-full px-1.5 py-0.5 min-w-[20px] text-center",children:u})]}),f&&_.jsxs("div",{className:"absolute top-full left-0 mt-2 w-64 bg-white border border-gray-200 rounded-lg shadow-lg z-10 p-4",children:[_.jsx("h4",{className:"font-medium text-gray-900 mb-3",children:"Filter Options"}),_.jsx("div",{className:"space-y-2",children:["Status","Assignee","Priority","Date"].map(h=>_.jsxs("label",{className:"flex items-center space-x-2 cursor-pointer",children:[_.jsx("input",{type:"checkbox",className:"rounded border-gray-300 text-teal-600 focus:ring-teal-500",onChange:()=>p()}),_.jsx("span",{className:"text-sm text-gray-700",children:h})]},h))}),_.jsx("button",{onClick:()=>c(!1),className:"mt-3 w-full px-3 py-1.5 bg-teal-600 text-white rounded-md text-sm hover:bg-teal-700 transition-colors",children:"Apply Filters"})]})]})]})]}),_.jsxs("div",{className:"flex items-center space-x-3",children:[_.jsx("button",{className:"flex items-center space-x-2 px-3 py-1.5 text-gray-600 hover:text-gray-800 transition-colors",children:_.jsx(oS,{className:"w-4 h-4"})}),_.jsxs("button",{className:"flex items-center space-x-2 bg-gradient-to-r from-teal-600 to-teal-700 hover:from-teal-700 hover:to-teal-800 text-white px-4 py-2 rounded-lg text-sm font-medium transition-all duration-200 shadow-md hover:shadow-lg transform hover:scale-105",children:[_.jsx(Zu,{className:"w-4 h-4"}),_.jsx("span",{children:"Add Card"})]})]})]}),u>0&&_.jsxs("div",{className:"mt-3 flex items-center space-x-2",children:[_.jsx("span",{className:"text-sm text-gray-600",children:"Active filters:"}),_.jsx("span",{className:"bg-teal-100 text-teal-800 px-2 py-1 rounded-md text-xs font-medium",children:"Status: In Progress"}),_.jsx("button",{onClick:()=>s(0),className:"text-gray-400 hover:text-gray-600 text-xs",children:"Clear all"})]})]})},GE=()=>{const[e,t]=L.useState(!1),[r,n]=L.useState(0),[i,a]=L.useState(!1),o=[{title:"Team Productivity Surge",content:"Your team has completed 73% more tasks this week compared to last week. The Development team is leading with 18 completed tasks.",type:"positive",icon:sS,color:"text-green-600",bgColor:"bg-green-50",borderColor:"border-green-200"},{title:"Bottleneck Alert",content:"The Review process is experiencing delays with 8 pending tasks. Consider allocating additional reviewers to maintain workflow.",type:"warning",icon:EE,color:"text-orange-600",bgColor:"bg-orange-50",borderColor:"border-orange-200"},{title:"Sprint Goal Achievement",content:"You're on track to exceed your sprint goal by 15%. Current completion rate suggests finishing 2 days ahead of schedule.",type:"success",icon:eS,color:"text-blue-600",bgColor:"bg-blue-50",borderColor:"border-blue-200"}],l=["Consider redistributing 3 tasks from Design to Development team","Schedule additional code review sessions for Thursday","Celebrate team achievements to maintain momentum"],u=()=>{t(!0),setTimeout(()=>{t(!1),n(c=>(c+1)%o.length)},2e3)};L.useEffect(()=>{const c=setInterval(()=>{n(d=>(d+1)%o.length)},8e3);return()=>clearInterval(c)},[o.length]);const s=o[r],f=s.icon;return _.jsxs("div",{className:`bg-white flex-grow rounded-xl border border-gray-200 p-6 transition-all duration-500 hover:shadow-xl ${i?"row-span-2":""}`,children:[_.jsxs("div",{className:"flex items-center justify-between mb-6",children:[_.jsxs("div",{className:"flex items-center space-x-3",children:[_.jsxs("div",{className:"relative",children:[_.jsx("div",{className:"w-10 h-10 bg-gradient-to-br from-purple-500 via-pink-500 to-indigo-600 rounded-xl flex items-center justify-center shadow-lg",children:_.jsx(lS,{className:"w-5 h-5 text-white"})}),e&&_.jsx("div",{className:"absolute inset-0 rounded-xl bg-purple-400 opacity-30 animate-ping"})]}),_.jsxs("div",{children:[_.jsxs("h3",{className:"text-lg font-semibold text-gray-900 flex items-center",children:["AI Executive Summary",_.jsx(TE,{className:"w-4 h-4 ml-2 text-purple-500"})]}),_.jsx("p",{className:"text-sm text-gray-500",children:e?"Generating insights...":"Updated just now"})]})]}),_.jsxs("div",{className:"flex items-center space-x-2",children:[_.jsx("button",{onClick:()=>a(!i),className:"p-2 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-lg transition-all duration-200",children:_.jsx(tS,{className:"w-4 h-4"})}),_.jsx("button",{onClick:u,disabled:e,className:"p-2 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-lg transition-all duration-200 disabled:opacity-50",children:_.jsx(iS,{className:`w-4 h-4 ${e?"animate-spin text-purple-600":""}`})})]})]}),_.jsx("div",{className:`${s.bgColor} ${s.borderColor} border rounded-xl p-4 mb-6 transition-all duration-500`,children:_.jsxs("div",{className:"flex items-start space-x-3",children:[_.jsx("div",{className:"p-2 rounded-lg bg-white shadow-sm",children:_.jsx(f,{className:`w-5 h-5 ${s.color}`})}),_.jsxs("div",{className:"flex-1",children:[_.jsx("h4",{className:`font-semibold ${s.color} mb-2`,children:s.title}),_.jsx("p",{className:"text-gray-700 text-sm leading-relaxed",children:s.content})]})]})}),_.jsx("div",{className:"flex justify-center space-x-2 mb-6",children:o.map((c,d)=>_.jsx("button",{onClick:()=>n(d),className:`w-2 h-2 rounded-full transition-all duration-300 ${d===r?"bg-purple-500 w-6":"bg-gray-300 hover:bg-gray-400"}`},d))}),_.jsxs("div",{className:"space-y-4",children:[_.jsxs("div",{children:[_.jsxs("h4",{className:"font-semibold text-gray-900 mb-3 flex items-center",children:[_.jsx("span",{className:"w-2 h-2 bg-purple-500 rounded-full mr-3"}),"AI Recommendations"]}),_.jsx("div",{className:"space-y-2",children:l.map((c,d)=>_.jsxs("div",{className:"flex items-start space-x-3 p-3 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors cursor-pointer",children:[_.jsx("div",{className:"w-5 h-5 rounded-full bg-purple-100 flex items-center justify-center mt-0.5",children:_.jsx("span",{className:"text-xs font-medium text-purple-600",children:d+1})}),_.jsx("p",{className:"text-sm text-gray-700 leading-relaxed",children:c})]},d))})]}),i&&_.jsxs("div",{className:"mt-6 pt-4 border-t border-gray-200",children:[_.jsx("h4",{className:"font-semibold text-gray-900 mb-3",children:"Detailed Analytics"}),_.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[_.jsxs("div",{className:"text-center p-3 bg-blue-50 rounded-lg",children:[_.jsx("div",{className:"text-xl font-bold text-blue-600",children:"92%"}),_.jsx("div",{className:"text-xs text-gray-600",children:"Team Efficiency"})]}),_.jsxs("div",{className:"text-center p-3 bg-green-50 rounded-lg",children:[_.jsx("div",{className:"text-xl font-bold text-green-600",children:"+18%"}),_.jsx("div",{className:"text-xs text-gray-600",children:"Week over Week"})]})]})]})]})]})},XE=()=>{const[e,t]=L.useState(!1),[r,n]=L.useState(null),i=[{label:"Unassigned",count:8,color:"bg-orange-50 border-orange-200",textColor:"text-orange-700",numberColor:"text-orange-600",icon:AE,iconColor:"text-orange-500",trend:"+2 from yesterday",trendColor:"text-orange-600"},{label:"In Progress",count:12,color:"bg-blue-50 border-blue-200",textColor:"text-blue-700",numberColor:"text-blue-600",icon:Ev,iconColor:"text-blue-500",trend:"+5 from yesterday",trendColor:"text-blue-600"},{label:"Completed",count:24,color:"bg-green-50 border-green-200",textColor:"text-green-700",numberColor:"text-green-600",icon:eS,iconColor:"text-green-500",trend:"+8 from yesterday",trendColor:"text-green-600"}];L.useEffect(()=>{const o=setTimeout(()=>t(!0),100);return()=>clearTimeout(o)},[]);const a=({target:o,className:l})=>{const[u,s]=L.useState(0);return L.useEffect(()=>{if(!e)return;const f=o/20,c=setInterval(()=>{s(d=>{const p=d+f;return p>=o?(clearInterval(c),o):p})},50);return()=>clearInterval(c)},[o]),_.jsx("div",{className:l,children:Math.floor(u)})};return _.jsx("div",{className:"grid grid-cols-3 gap-6",children:i.map((o,l)=>{const u=o.icon;return _.jsxs("div",{className:`bg-white rounded-xl border-2 p-6 text-center transition-all duration-300 cursor-pointer transform hover:scale-105 hover:shadow-lg ${o.color} ${r===l?"shadow-xl":"shadow-sm"}`,onMouseEnter:()=>n(l),onMouseLeave:()=>n(null),children:[_.jsxs("div",{className:"flex items-center justify-between mb-3",children:[_.jsx("h3",{className:`text-sm font-semibold ${o.textColor}`,children:o.label}),_.jsx(u,{className:`w-5 h-5 ${o.iconColor}`})]}),_.jsx(a,{target:o.count,className:`text-4xl font-bold mb-2 ${o.numberColor}`}),_.jsx("div",{className:"text-sm text-gray-500 mb-2",children:"tasks"}),_.jsxs("div",{className:`flex items-center justify-center text-xs ${o.trendColor} opacity-80`,children:[_.jsx(sS,{className:"w-3 h-3 mr-1"}),o.trend]}),_.jsx("div",{className:"mt-4 w-full bg-gray-200 rounded-full h-2",children:_.jsx("div",{className:`h-2 rounded-full transition-all duration-1000 ease-out ${o.label==="Unassigned"?"bg-orange-400":o.label==="In Progress"?"bg-blue-400":"bg-green-400"}`,style:{width:e?`${o.count/44*100}%`:"0%"}})})]},l)})})};function fS(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t-1}var G$=q$,X$=mc;function Y$(e,t){var r=this.__data__,n=X$(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Q$=Y$,Z$=M$,J$=U$,eT=K$,tT=G$,rT=Q$;function $a(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0?1:-1},Rn=function(t){return Zn(t)&&t.indexOf("%")===t.length-1},H=function(t){return _k(t)&&!jl(t)},jk=function(t){return J(t)},Ke=function(t){return H(t)||Zn(t)},$k=0,ka=function(t){var r=++$k;return"".concat(t||"").concat(r)},st=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!H(t)&&!Zn(t))return n;var a;if(Rn(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return jl(a)&&(a=n),i&&a>r&&(a=r),a},yi=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Tk=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Lk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function op(e){"@babel/helpers - typeof";return op=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},op(e)}var Jm={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Cr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},eg=null,zf=null,Bv=function e(t){if(t===eg&&Array.isArray(zf))return zf;var r=[];return L.Children.forEach(t,function(n){J(n)||(bk.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),zf=r,eg=t,r};function Nt(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Cr(i)}):n=[Cr(t)],Bv(e).forEach(function(i){var a=Ct(i,"type.displayName")||Ct(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function At(e,t){var r=Nt(e,t);return r&&r[0]}var tg=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!H(n)||n<=0||!H(i)||i<=0)},Rk=["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"],Bk=function(t){return t&&t.type&&Zn(t.type)&&Rk.indexOf(t.type)>=0},zk=function(t){return t&&op(t)==="object"&&"clipDot"in t},Fk=function(t,r,n,i){var a,o=(a=Bf==null?void 0:Bf[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Z(t)&&(i&&o.includes(r)||Nk.includes(r))||n&&Rv.includes(r)},Y=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(L.isValidElement(t)&&(i=t.props),!Ea(i))return null;var a={};return Object.keys(i).forEach(function(o){var l;Fk((l=i)===null||l===void 0?void 0:l[o],o,r,n)&&(a[o]=i[o])}),a},lp=function e(t,r){if(t===r)return!0;var n=L.Children.count(t);if(n!==L.Children.count(r))return!1;if(n===0)return!0;if(n===1)return rg(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Vk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function sp(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,l=e.title,u=e.desc,s=Kk(e,Hk),f=i||{width:r,height:n,x:0,y:0},c=te("recharts-surface",a);return E.createElement("svg",up({},Y(s,!0,"svg"),{className:c,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),E.createElement("title",null,l),E.createElement("desc",null,u),t)}var qk=["children","className"];function cp(){return cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Xk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ue=E.forwardRef(function(e,t){var r=e.children,n=e.className,i=Gk(e,qk),a=te("recharts-layer",n);return E.createElement("g",cp({className:a},Y(i,!0),{ref:t}),r)}),Nr=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;ai?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n=n?e:Zk(e,t,r)}var eC=Jk,tC="\\ud800-\\udfff",rC="\\u0300-\\u036f",nC="\\ufe20-\\ufe2f",iC="\\u20d0-\\u20ff",aC=rC+nC+iC,oC="\\ufe0e\\ufe0f",lC="\\u200d",uC=RegExp("["+lC+tC+aC+oC+"]");function sC(e){return uC.test(e)}var _S=sC;function cC(e){return e.split("")}var fC=cC,PS="\\ud800-\\udfff",dC="\\u0300-\\u036f",pC="\\ufe20-\\ufe2f",hC="\\u20d0-\\u20ff",vC=dC+pC+hC,yC="\\ufe0e\\ufe0f",mC="["+PS+"]",fp="["+vC+"]",dp="\\ud83c[\\udffb-\\udfff]",gC="(?:"+fp+"|"+dp+")",AS="[^"+PS+"]",ES="(?:\\ud83c[\\udde6-\\uddff]){2}",jS="[\\ud800-\\udbff][\\udc00-\\udfff]",bC="\\u200d",$S=gC+"?",TS="["+yC+"]?",xC="(?:"+bC+"(?:"+[AS,ES,jS].join("|")+")"+TS+$S+")*",wC=TS+$S+xC,SC="(?:"+[AS+fp+"?",fp,ES,jS,mC].join("|")+")",OC=RegExp(dp+"(?="+dp+")|"+SC+wC,"g");function _C(e){return e.match(OC)||[]}var PC=_C,AC=fC,EC=_S,jC=PC;function $C(e){return EC(e)?jC(e):AC(e)}var TC=$C,kC=eC,CC=_S,NC=TC,MC=gS;function IC(e){return function(t){t=MC(t);var r=CC(t)?NC(t):void 0,n=r?r[0]:t.charAt(0),i=r?kC(r,1).join(""):t.slice(1);return n[e]()+i}}var DC=IC,LC=DC,RC=LC("toUpperCase"),BC=RC;const kc=he(BC);function me(e){return function(){return e}}const kS=Math.cos,ts=Math.sin,sr=Math.sqrt,rs=Math.PI,Cc=2*rs,pp=Math.PI,hp=2*pp,kn=1e-6,zC=hp-kn;function CS(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return CS;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;ikn)if(!(Math.abs(c*u-s*f)>kn)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,h=i-l,v=u*u+s*s,x=p*p+h*h,m=Math.sqrt(v),y=Math.sqrt(d),g=a*Math.tan((pp-Math.acos((v+d-x)/(2*m*y)))/2),S=g/y,b=g/m;Math.abs(S-1)>kn&&this._append`L${t+S*f},${r+S*c}`,this._append`A${a},${a},0,0,${+(c*p>f*h)},${this._x1=t+b*u},${this._y1=r+b*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),u=n*Math.sin(i),s=t+l,f=r+u,c=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>kn||Math.abs(this._y1-f)>kn)&&this._append`L${s},${f}`,n&&(d<0&&(d=d%hp+hp),d>zC?this._append`A${n},${n},0,1,${c},${t-l},${r-u}A${n},${n},0,1,${c},${this._x1=s},${this._y1=f}`:d>kn&&this._append`A${n},${n},0,${+(d>=pp)},${c},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function zv(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new UC(t)}function Fv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function NS(e){this._context=e}NS.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 Nc(e){return new NS(e)}function MS(e){return e[0]}function IS(e){return e[1]}function DS(e,t){var r=me(!0),n=null,i=Nc,a=null,o=zv(l);e=typeof e=="function"?e:e===void 0?MS:me(e),t=typeof t=="function"?t:t===void 0?IS:me(t);function l(u){var s,f=(u=Fv(u)).length,c,d=!1,p;for(n==null&&(a=i(p=o())),s=0;s<=f;++s)!(s=p;--h)l.point(g[h],S[h]);l.lineEnd(),l.areaEnd()}m&&(g[d]=+e(x,d,c),S[d]=+t(x,d,c),l.point(n?+n(x,d,c):g[d],r?+r(x,d,c):S[d]))}if(y)return l=null,y+""||null}function f(){return DS().defined(i).curve(o).context(a)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:me(+c),n=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:me(+c),s):e},s.x1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:me(+c),s):n},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:me(+c),r=null,s):t},s.y0=function(c){return arguments.length?(t=typeof c=="function"?c:me(+c),s):t},s.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:me(+c),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(c){return arguments.length?(i=typeof c=="function"?c:me(!!c),s):i},s.curve=function(c){return arguments.length?(o=c,a!=null&&(l=o(a)),s):o},s.context=function(c){return arguments.length?(c==null?a=l=null:l=o(a=c),s):a},s}class LS{constructor(t,r){this._context=t,this._x=r}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,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function WC(e){return new LS(e,!0)}function HC(e){return new LS(e,!1)}const Uv={draw(e,t){const r=sr(t/rs);e.moveTo(r,0),e.arc(0,0,r,0,Cc)}},KC={draw(e,t){const r=sr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},RS=sr(1/3),VC=RS*2,qC={draw(e,t){const r=sr(t/VC),n=r*RS;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},GC={draw(e,t){const r=sr(t),n=-r/2;e.rect(n,n,r,r)}},XC=.8908130915292852,BS=ts(rs/10)/ts(7*rs/10),YC=ts(Cc/10)*BS,QC=-kS(Cc/10)*BS,ZC={draw(e,t){const r=sr(t*XC),n=YC*r,i=QC*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Cc*a/5,l=kS(o),u=ts(o);e.lineTo(u*r,-l*r),e.lineTo(l*n-u*i,u*n+l*i)}e.closePath()}},Ff=sr(3),JC={draw(e,t){const r=-sr(t/(Ff*3));e.moveTo(0,r*2),e.lineTo(-Ff*r,-r),e.lineTo(Ff*r,-r),e.closePath()}},Rt=-.5,Bt=sr(3)/2,vp=1/sr(12),eN=(vp/2+1)*3,tN={draw(e,t){const r=sr(t/eN),n=r/2,i=r*vp,a=n,o=r*vp+r,l=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,u),e.lineTo(Rt*n-Bt*i,Bt*n+Rt*i),e.lineTo(Rt*a-Bt*o,Bt*a+Rt*o),e.lineTo(Rt*l-Bt*u,Bt*l+Rt*u),e.lineTo(Rt*n+Bt*i,Rt*i-Bt*n),e.lineTo(Rt*a+Bt*o,Rt*o-Bt*a),e.lineTo(Rt*l+Bt*u,Rt*u-Bt*l),e.closePath()}};function rN(e,t){let r=null,n=zv(i);e=typeof e=="function"?e:me(e||Uv),t=typeof t=="function"?t:me(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:me(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:me(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function ns(){}function is(e,t,r){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+r)/6)}function zS(e){this._context=e}zS.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:is(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:is(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nN(e){return new zS(e)}function FS(e){this._context=e}FS.prototype={areaStart:ns,areaEnd:ns,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:is(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function iN(e){return new FS(e)}function US(e){this._context=e}US.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:is(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function aN(e){return new US(e)}function WS(e){this._context=e}WS.prototype={areaStart:ns,areaEnd:ns,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 oN(e){return new WS(e)}function ig(e){return e<0?-1:1}function ag(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),l=(a*i+o*n)/(n+i);return(ig(a)+ig(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function og(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Uf(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,o-l*r,a,o)}function as(e){this._context=e}as.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:Uf(this,this._t0,og(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 r=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,Uf(this,og(this,r=ag(this,e,t)),r);break;default:Uf(this,this._t0,r=ag(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function HS(e){this._context=new KS(e)}(HS.prototype=Object.create(as.prototype)).point=function(e,t){as.prototype.point.call(this,t,e)};function KS(e){this._context=e}KS.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,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function lN(e){return new as(e)}function uN(e){return new HS(e)}function VS(e){this._context=e}VS.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=lg(e),i=lg(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function cN(e){return new Mc(e,.5)}function fN(e){return new Mc(e,0)}function dN(e){return new Mc(e,1)}function Qi(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,l=a.length;r=0;)r[t]=t;return r}function pN(e,t){return e[t]}function hN(e){const t=[];return t.key=e,t}function vN(){var e=me([]),t=yp,r=Qi,n=pN;function i(a){var o=Array.from(e.apply(this,arguments),hN),l,u=o.length,s=-1,f;for(const c of a)for(l=0,++s;l0){for(var r,n,i=0,a=e[0].length,o;i0){for(var r=0,n=e[t[0]],i,a=n.length;r0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _N(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var qS={symbolCircle:Uv,symbolCross:KC,symbolDiamond:qC,symbolSquare:GC,symbolStar:ZC,symbolTriangle:JC,symbolWye:tN},PN=Math.PI/180,AN=function(t){var r="symbol".concat(kc(t));return qS[r]||Uv},EN=function(t,r,n){if(r==="area")return t;switch(n){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*PN;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}},jN=function(t,r){qS["symbol".concat(kc(t))]=r},Wv=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,l=o===void 0?"area":o,u=ON(t,bN),s=sg(sg({},u),{},{type:n,size:a,sizeType:l}),f=function(){var x=AN(n),m=rN().type(x).size(EN(a,l,n));return m()},c=s.className,d=s.cx,p=s.cy,h=Y(s,!0);return d===+d&&p===+p&&a===+a?E.createElement("path",mp({},h,{className:te("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(p,")"),d:f()})):null};Wv.registerSymbol=jN;function Zi(e){"@babel/helpers - typeof";return Zi=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},Zi(e)}function gp(){return gp=Object.assign?Object.assign.bind():function(e){for(var t=1;t`);var y=p.inactive?s:p.color;return E.createElement("li",gp({className:x,style:c,key:"legend-item-".concat(h)},Jn(n.props,p,h)),E.createElement(sp,{width:o,height:o,viewBox:f,style:d},n.renderIcon(p)),E.createElement("span",{className:"recharts-legend-item-text",style:{color:y}},v?v(m,p,h):m))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return E.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(L.PureComponent);Uo(Hv,"displayName","Legend");Uo(Hv,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var RN=gc;function BN(){this.__data__=new RN,this.size=0}var zN=BN;function FN(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var UN=FN;function WN(e){return this.__data__.get(e)}var HN=WN;function KN(e){return this.__data__.has(e)}var VN=KN,qN=gc,GN=kv,XN=Cv,YN=200;function QN(e,t){var r=this.__data__;if(r instanceof qN){var n=r.__data__;if(!GN||n.lengthl))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=r&bM?new vM:void 0;for(a.set(e,t),a.set(t,e);++c-1&&e%1==0&&e-1&&e%1==0&&e<=OI}var Gv=_I,PI=Hr,AI=Gv,EI=Kr,jI="[object Arguments]",$I="[object Array]",TI="[object Boolean]",kI="[object Date]",CI="[object Error]",NI="[object Function]",MI="[object Map]",II="[object Number]",DI="[object Object]",LI="[object RegExp]",RI="[object Set]",BI="[object String]",zI="[object WeakMap]",FI="[object ArrayBuffer]",UI="[object DataView]",WI="[object Float32Array]",HI="[object Float64Array]",KI="[object Int8Array]",VI="[object Int16Array]",qI="[object Int32Array]",GI="[object Uint8Array]",XI="[object Uint8ClampedArray]",YI="[object Uint16Array]",QI="[object Uint32Array]",we={};we[WI]=we[HI]=we[KI]=we[VI]=we[qI]=we[GI]=we[XI]=we[YI]=we[QI]=!0;we[jI]=we[$I]=we[FI]=we[TI]=we[UI]=we[kI]=we[CI]=we[NI]=we[MI]=we[II]=we[DI]=we[LI]=we[RI]=we[BI]=we[zI]=!1;function ZI(e){return EI(e)&&AI(e.length)&&!!we[PI(e)]}var JI=ZI;function e3(e){return function(t){return e(t)}}var iO=e3,ss={exports:{}};ss.exports;(function(e,t){var r=dS,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,l=function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(ss,ss.exports);var t3=ss.exports,r3=JI,n3=iO,yg=t3,mg=yg&&yg.isTypedArray,i3=mg?n3(mg):r3,aO=i3,a3=uI,o3=Vv,l3=St,u3=nO,s3=qv,c3=aO,f3=Object.prototype,d3=f3.hasOwnProperty;function p3(e,t){var r=l3(e),n=!r&&o3(e),i=!r&&!n&&u3(e),a=!r&&!n&&!i&&c3(e),o=r||n||i||a,l=o?a3(e.length,String):[],u=l.length;for(var s in e)(t||d3.call(e,s))&&!(o&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||s3(s,u)))&&l.push(s);return l}var h3=p3,v3=Object.prototype;function y3(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||v3;return e===r}var m3=y3;function g3(e,t){return function(r){return e(t(r))}}var oO=g3,b3=oO,x3=b3(Object.keys,Object),w3=x3,S3=m3,O3=w3,_3=Object.prototype,P3=_3.hasOwnProperty;function A3(e){if(!S3(e))return O3(e);var t=[];for(var r in Object(e))P3.call(e,r)&&r!="constructor"&&t.push(r);return t}var E3=A3,j3=$v,$3=Gv;function T3(e){return e!=null&&$3(e.length)&&!j3(e)}var Ic=T3,k3=h3,C3=E3,N3=Ic;function M3(e){return N3(e)?k3(e):C3(e)}var Xv=M3,I3=YM,D3=oI,L3=Xv;function R3(e){return I3(e,L3,D3)}var B3=R3,gg=B3,z3=1,F3=Object.prototype,U3=F3.hasOwnProperty;function W3(e,t,r,n,i,a){var o=r&z3,l=gg(e),u=l.length,s=gg(t),f=s.length;if(u!=f&&!o)return!1;for(var c=u;c--;){var d=l[c];if(!(o?d in t:U3.call(t,d)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var v=!0;a.set(e,t),a.set(t,e);for(var x=o;++c-1}var UL=FL;function WL(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=i4){var s=t?null:r4(e);if(s)return n4(s);o=!1,i=t4,u=new ZL}else u=t?[]:l;e:for(;++n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function x4(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function w4(e){return e.value}function S4(e,t){if(E.isValidElement(e))return E.cloneElement(e,t);if(typeof e=="function")return E.createElement(e,t);t.ref;var r=b4(t,f4);return E.createElement(Hv,r)}var Mg=1,Fi=function(e){function t(){var r;d4(this,t);for(var n=arguments.length,i=new Array(n),a=0;aMg||Math.abs(i.height-this.lastBoundingBox.height)>Mg)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Or({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,l=i.verticalAlign,u=i.margin,s=i.chartWidth,f=i.chartHeight,c,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();c={left:((s||0)-p.width)/2}}else c=o==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(l==="middle"){var h=this.getBBoxSnapshot();d={top:((f||0)-h.height)/2}}else d=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return Or(Or({},c),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,l=i.height,u=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,c=Or(Or({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return E.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){n.wrapperNode=p}},S4(a,Or(Or({},this.props),{},{payload:dO(f,s,w4)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Or(Or({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&H(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(L.PureComponent);Dc(Fi,"displayName","Legend");Dc(Fi,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Ig=El,O4=Vv,_4=St,Dg=Ig?Ig.isConcatSpreadable:void 0;function P4(e){return _4(e)||O4(e)||!!(Dg&&e&&e[Dg])}var A4=P4,E4=tO,j4=A4;function vO(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=j4),i||(i=[]);++a0&&r(l)?t>1?vO(l,t-1,r,n,i):E4(i,l):n||(i[i.length]=l)}return i}var yO=vO;function $4(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),l=o.length;l--;){var u=o[e?l:++i];if(r(a[u],u,a)===!1)break}return t}}var T4=$4,k4=T4,C4=k4(),N4=C4,M4=N4,I4=Xv;function D4(e,t){return e&&M4(e,t,I4)}var mO=D4,L4=Ic;function R4(e,t){return function(r,n){if(r==null)return r;if(!L4(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++at||a&&o&&u&&!l&&!s||n&&o&&u||!r&&u||!i)return 1;if(!n&&!a&&!s&&e=l)return u;var s=r[n];return u*(s=="desc"?-1:1)}}return e.index-t.index}var Z4=Q4,Vf=Mv,J4=Iv,eR=xn,tR=gO,rR=q4,nR=iO,iR=Z4,aR=Ma,oR=St;function lR(e,t,r){t.length?t=Vf(t,function(a){return oR(a)?function(o){return J4(o,a.length===1?a[0]:a)}:a}):t=[aR];var n=-1;t=Vf(t,nR(eR));var i=tR(e,function(a,o,l){var u=Vf(t,function(s){return s(a)});return{criteria:u,index:++n,value:a}});return rR(i,function(a,o){return iR(a,o,r)})}var uR=lR;function sR(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var cR=sR,fR=cR,Rg=Math.max;function dR(e,t,r){return t=Rg(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Rg(n.length-t,0),o=Array(a);++i0){if(++t>=SR)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var AR=PR,ER=wR,jR=AR,$R=jR(ER),TR=$R,kR=Ma,CR=pR,NR=TR;function MR(e,t){return NR(CR(e,t,kR),e+"")}var IR=MR,DR=Tv,LR=Ic,RR=qv,BR=bn;function zR(e,t,r){if(!BR(r))return!1;var n=typeof t;return(n=="number"?LR(r)&&RR(t,r.length):n=="string"&&t in r)?DR(r[t],e):!1}var Lc=zR,FR=yO,UR=uR,WR=IR,zg=Lc,HR=WR(function(e,t){if(e==null)return[];var r=t.length;return r>1&&zg(e,t[0],t[1])?t=[]:r>2&&zg(t[0],t[1],t[2])&&(t=[t[0]]),UR(e,FR(t,1),[])}),KR=HR;const Zv=he(KR);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 Ap(){return Ap=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t.x),"".concat(qa,"-left"),H(r)&&t&&H(t.x)&&r=t.y),"".concat(qa,"-top"),H(n)&&t&&H(t.y)&&nv?Math.max(f,u[n]):Math.max(c,u[n])}function o5(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function l5(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,u=e.viewBox,s,f,c;return o.height>0&&o.width>0&&r?(f=Wg({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),c=Wg({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),s=o5({translateX:f,translateY:c,useTranslate3d:l})):s=i5,{cssProperties:s,cssClasses:a5({translateX:f,translateY:c,coordinate:r})}}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 Hg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kg(e){for(var t=1;tVg||Math.abs(n.height-this.state.lastBoundingBox.height)>Vg)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.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 n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,s=i.children,f=i.coordinate,c=i.hasPayload,d=i.isAnimationActive,p=i.offset,h=i.position,v=i.reverseDirection,x=i.useTranslate3d,m=i.viewBox,y=i.wrapperStyle,g=l5({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:h,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:m}),S=g.cssClasses,b=g.cssProperties,w=Kg(Kg({transition:d&&a?"transform ".concat(l,"ms ").concat(u):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&c?"visible":"hidden",position:"absolute",top:0,left:0},y);return E.createElement("div",{tabIndex:-1,className:S,style:w,ref:function(P){n.wrapperNode=P}},s)}}])}(L.PureComponent),m5=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},yr={isSsr:m5(),get:function(t){return yr[t]},set:function(t,r){if(typeof t=="string")yr[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){yr[i]=t[i]})}}};function ta(e){"@babel/helpers - typeof";return ta=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},ta(e)}function qg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gg(e){for(var t=1;t0;return E.createElement(y5,{allowEscapeViewBox:o,animationDuration:l,animationEasing:u,isAnimationActive:d,active:a,coordinate:f,hasPayload:w,offset:p,position:x,reverseDirection:m,useTranslate3d:y,viewBox:g,wrapperStyle:S},E5(s,Gg(Gg({},this.props),{},{payload:b})))}}])}(L.PureComponent);Jv(Et,"displayName","Tooltip");Jv(Et,"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 j5=Sr,$5=function(){return j5.Date.now()},T5=$5,k5=/\s/;function C5(e){for(var t=e.length;t--&&k5.test(e.charAt(t)););return t}var N5=C5,M5=N5,I5=/^\s+/;function D5(e){return e&&e.slice(0,M5(e)+1).replace(I5,"")}var L5=D5,R5=L5,Xg=bn,B5=Aa,Yg=NaN,z5=/^[-+]0x[0-9a-f]+$/i,F5=/^0b[01]+$/i,U5=/^0o[0-7]+$/i,W5=parseInt;function H5(e){if(typeof e=="number")return e;if(B5(e))return Yg;if(Xg(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Xg(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=R5(e);var r=F5.test(e);return r||U5.test(e)?W5(e.slice(2),r?2:8):z5.test(e)?Yg:+e}var _O=H5,K5=bn,Gf=T5,Qg=_O,V5="Expected a function",q5=Math.max,G5=Math.min;function X5(e,t,r){var n,i,a,o,l,u,s=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(V5);t=Qg(t)||0,K5(r)&&(f=!!r.leading,c="maxWait"in r,a=c?q5(Qg(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function p(w){var O=n,P=i;return n=i=void 0,s=w,o=e.apply(P,O),o}function h(w){return s=w,l=setTimeout(m,t),f?p(w):o}function v(w){var O=w-u,P=w-s,A=t-O;return c?G5(A,a-P):A}function x(w){var O=w-u,P=w-s;return u===void 0||O>=t||O<0||c&&P>=a}function m(){var w=Gf();if(x(w))return y(w);l=setTimeout(m,v(w))}function y(w){return l=void 0,d&&n?p(w):(n=i=void 0,o)}function g(){l!==void 0&&clearTimeout(l),s=0,n=u=i=l=void 0}function S(){return l===void 0?o:y(Gf())}function b(){var w=Gf(),O=x(w);if(n=arguments,i=this,u=w,O){if(l===void 0)return h(u);if(c)return clearTimeout(l),l=setTimeout(m,t),p(u)}return l===void 0&&(l=setTimeout(m,t)),o}return b.cancel=g,b.flush=S,b}var Y5=X5,Q5=Y5,Z5=bn,J5="Expected a function";function e6(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(J5);return Z5(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Q5(e,t,{leading:n,maxWait:t,trailing:i})}var t6=e6;const PO=he(t6);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 Zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nu(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(N=PO(N,v,{trailing:!0,leading:!1}));var D=new ResizeObserver(N),M=b.current.getBoundingClientRect(),R=M.width,B=M.height;return j(R,B),D.observe(b.current),function(){D.disconnect()}},[j,v]);var T=L.useMemo(function(){var N=A.containerWidth,D=A.containerHeight;if(N<0||D<0)return null;Nr(Rn(o)||Rn(u),`The width(%s) and height(%s) are both fixed numbers, - maybe you don't need to use a ResponsiveContainer.`,o,u),Nr(!r||r>0,"The aspect(%s) must be greater than zero.",r);var M=Rn(o)?N:o,R=Rn(u)?D:u;r&&r>0&&(M?R=M/r:R&&(M=R*r),d&&R>d&&(R=d)),Nr(M>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.`,M,R,o,u,f,c,r);var B=!Array.isArray(p)&&Cr(p.type).endsWith("Chart");return E.Children.map(p,function(k){return E.isValidElement(k)?L.cloneElement(k,nu({width:M,height:R},B?{style:nu({height:"100%",width:"100%",maxHeight:R,maxWidth:M},k.props.style)}:{})):k})},[r,p,u,d,c,f,A,o]);return E.createElement("div",{id:x?"".concat(x):void 0,className:te("recharts-responsive-container",m),style:nu(nu({},S),{},{width:o,height:u,minWidth:f,minHeight:c,maxHeight:d}),ref:b},T)}),Hn=function(t){return null};Hn.displayName="Cell";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 e0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tp(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||yr.isSsr)return{width:0,height:0};var n=v6(r),i=JSON.stringify({text:t,copyStyle:n});if(pi.widthCache[i])return pi.widthCache[i];try{var a=document.getElementById(t0);a||(a=document.createElement("span"),a.setAttribute("id",t0),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Tp(Tp({},h6),n);Object.assign(a.style,o),a.textContent="".concat(t);var l=a.getBoundingClientRect(),u={width:l.width,height:l.height};return pi.widthCache[i]=u,++pi.cacheCount>p6&&(pi.cacheCount=0,pi.widthCache={}),u}catch{return{width:0,height:0}}},y6=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 ps(e,t){return x6(e)||b6(e,t)||g6(e,t)||m6()}function m6(){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 g6(e,t){if(e){if(typeof e=="string")return r0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return r0(e,t)}}function r0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function M6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function u0(e,t){return R6(e)||L6(e,t)||D6(e,t)||I6()}function I6(){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 D6(e,t){if(e){if(typeof e=="string")return s0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s0(e,t)}}function s0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return M.reduce(function(R,B){var k=B.word,I=B.width,F=R[R.length-1];if(F&&(i==null||a||F.width+I+nB.width?R:B})};if(!f)return p;for(var v="…",x=function(M){var R=c.slice(0,M),B=$O({breakAll:s,style:u,children:R+v}).wordsWithComputedWidth,k=d(B),I=k.length>o||h(k).width>Number(i);return[I,k]},m=0,y=c.length-1,g=0,S;m<=y&&g<=c.length-1;){var b=Math.floor((m+y)/2),w=b-1,O=x(w),P=u0(O,2),A=P[0],$=P[1],j=x(b),T=u0(j,1),N=T[0];if(!A&&!N&&(m=b+1),A&&N&&(y=b-1),!A&&N){S=$;break}g++}return S||p},c0=function(t){var r=J(t)?[]:t.toString().split(jO);return[{words:r}]},z6=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,l=t.maxLines;if((r||n)&&!yr.isSsr){var u,s,f=$O({breakAll:o,children:i,style:a});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;u=c,s=d}else return c0(i);return B6({breakAll:o,children:i,maxLines:l,style:a},u,s,r,n)}return c0(i)},f0="#808080",ei=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,l=o===void 0?"1em":o,u=t.capHeight,s=u===void 0?"0.71em":u,f=t.scaleToFit,c=f===void 0?!1:f,d=t.textAnchor,p=d===void 0?"start":d,h=t.verticalAnchor,v=h===void 0?"end":h,x=t.fill,m=x===void 0?f0:x,y=l0(t,C6),g=L.useMemo(function(){return z6({breakAll:y.breakAll,children:y.children,maxLines:y.maxLines,scaleToFit:c,style:y.style,width:y.width})},[y.breakAll,y.children,y.maxLines,c,y.style,y.width]),S=y.dx,b=y.dy,w=y.angle,O=y.className,P=y.breakAll,A=l0(y,N6);if(!Ke(n)||!Ke(a))return null;var $=n+(H(S)?S:0),j=a+(H(b)?b:0),T;switch(v){case"start":T=Xf("calc(".concat(s,")"));break;case"middle":T=Xf("calc(".concat((g.length-1)/2," * -").concat(l," + (").concat(s," / 2))"));break;default:T=Xf("calc(".concat(g.length-1," * -").concat(l,")"));break}var N=[];if(c){var D=g[0].width,M=y.width;N.push("scale(".concat((H(M)?M/D:1)/D,")"))}return w&&N.push("rotate(".concat(w,", ").concat($,", ").concat(j,")")),N.length&&(A.transform=N.join(" ")),E.createElement("text",kp({},Y(A,!0),{x:$,y:j,className:te("recharts-text",O),textAnchor:p,fill:m.includes("url")?f0:m}),g.map(function(R,B){var k=R.words.join(P?"":" ");return E.createElement("tspan",{x:$,dy:B===0?T:l,key:"".concat(k,"-").concat(B)},k)}))};function pn(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function F6(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function ey(e){let t,r,n;e.length!==2?(t=pn,r=(l,u)=>pn(e(l),u),n=(l,u)=>e(l)-u):(t=e===pn||e===F6?e:U6,r=e,n=e);function i(l,u,s=0,f=l.length){if(s>>1;r(l[c],u)<0?s=c+1:f=c}while(s>>1;r(l[c],u)<=0?s=c+1:f=c}while(ss&&n(l[c-1],u)>-n(l[c],u)?c-1:c}return{left:i,center:o,right:a}}function U6(){return 0}function TO(e){return e===null?NaN:+e}function*W6(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const H6=ey(pn),$l=H6.right;ey(TO).center;class d0 extends Map{constructor(t,r=q6){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(p0(this,t))}has(t){return super.has(p0(this,t))}set(t,r){return super.set(K6(this,t),r)}delete(t){return super.delete(V6(this,t))}}function p0({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function K6({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function V6({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function q6(e){return e!==null&&typeof e=="object"?e.valueOf():e}function G6(e=pn){if(e===pn)return kO;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function kO(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const X6=Math.sqrt(50),Y6=Math.sqrt(10),Q6=Math.sqrt(2);function hs(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=X6?10:a>=Y6?5:a>=Q6?2:1;let l,u,s;return i<0?(s=Math.pow(10,-i)/o,l=Math.round(e*s),u=Math.round(t*s),l/st&&--u,s=-s):(s=Math.pow(10,i)*o,l=Math.round(e/s),u=Math.round(t/s),l*st&&--u),u0))return[];if(e===t)return[e];const n=t=i))return[];const l=a-i+1,u=new Array(l);if(n)if(o<0)for(let s=0;s=n)&&(r=n);return r}function v0(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function CO(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?kO:G6(i);n>r;){if(n-r>600){const u=n-r+1,s=t-r+1,f=Math.log(u),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(u-c)/u)*(s-u/2<0?-1:1),p=Math.max(r,Math.floor(t-s*c/u+d)),h=Math.min(n,Math.floor(t+(u-s)*c/u+d));CO(e,t,p,h,i)}const a=e[t];let o=r,l=n;for(Ga(e,r,t),i(e[n],a)>0&&Ga(e,r,n);o0;)--l}i(e[r],a)===0?Ga(e,r,l):(++l,Ga(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function Ga(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Z6(e,t,r){if(e=Float64Array.from(W6(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return v0(e);if(t>=1)return h0(e);var n,i=(n-1)*t,a=Math.floor(i),o=h0(CO(e,a).subarray(0,a+1)),l=v0(e.subarray(a+1));return o+(l-o)*(i-a)}}function J6(e,t,r=TO){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),l=+r(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function e8(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?au(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?au(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=r8.exec(e))?new gt(t[1],t[2],t[3],1):(t=n8.exec(e))?new gt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=i8.exec(e))?au(t[1],t[2],t[3],t[4]):(t=a8.exec(e))?au(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=o8.exec(e))?S0(t[1],t[2]/100,t[3]/100,1):(t=l8.exec(e))?S0(t[1],t[2]/100,t[3]/100,t[4]):y0.hasOwnProperty(e)?b0(y0[e]):e==="transparent"?new gt(NaN,NaN,NaN,0):null}function b0(e){return new gt(e>>16&255,e>>8&255,e&255,1)}function au(e,t,r,n){return n<=0&&(e=t=r=NaN),new gt(e,t,r,n)}function c8(e){return e instanceof Tl||(e=Qo(e)),e?(e=e.rgb(),new gt(e.r,e.g,e.b,e.opacity)):new gt}function Dp(e,t,r,n){return arguments.length===1?c8(e):new gt(e,t,r,n??1)}function gt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}ry(gt,Dp,MO(Tl,{brighter(e){return e=e==null?vs:Math.pow(vs,e),new gt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Xo:Math.pow(Xo,e),new gt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new gt(Kn(this.r),Kn(this.g),Kn(this.b),ys(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:x0,formatHex:x0,formatHex8:f8,formatRgb:w0,toString:w0}));function x0(){return`#${Bn(this.r)}${Bn(this.g)}${Bn(this.b)}`}function f8(){return`#${Bn(this.r)}${Bn(this.g)}${Bn(this.b)}${Bn((isNaN(this.opacity)?1:this.opacity)*255)}`}function w0(){const e=ys(this.opacity);return`${e===1?"rgb(":"rgba("}${Kn(this.r)}, ${Kn(this.g)}, ${Kn(this.b)}${e===1?")":`, ${e})`}`}function ys(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Kn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bn(e){return e=Kn(e),(e<16?"0":"")+e.toString(16)}function S0(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ar(e,t,r,n)}function IO(e){if(e instanceof ar)return new ar(e.h,e.s,e.l,e.opacity);if(e instanceof Tl||(e=Qo(e)),!e)return new ar;if(e instanceof ar)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,u=(a+i)/2;return l?(t===a?o=(r-n)/l+(r0&&u<1?0:o,new ar(o,l,u,e.opacity)}function d8(e,t,r,n){return arguments.length===1?IO(e):new ar(e,t,r,n??1)}function ar(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}ry(ar,d8,MO(Tl,{brighter(e){return e=e==null?vs:Math.pow(vs,e),new ar(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Xo:Math.pow(Xo,e),new ar(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new gt(Yf(e>=240?e-240:e+120,i,n),Yf(e,i,n),Yf(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new ar(O0(this.h),ou(this.s),ou(this.l),ys(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=ys(this.opacity);return`${e===1?"hsl(":"hsla("}${O0(this.h)}, ${ou(this.s)*100}%, ${ou(this.l)*100}%${e===1?")":`, ${e})`}`}}));function O0(e){return e=(e||0)%360,e<0?e+360:e}function ou(e){return Math.max(0,Math.min(1,e||0))}function Yf(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const ny=e=>()=>e;function p8(e,t){return function(r){return e+r*t}}function h8(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function v8(e){return(e=+e)==1?DO:function(t,r){return r-t?h8(t,r,e):ny(isNaN(t)?r:t)}}function DO(e,t){var r=t-e;return r?p8(e,r):ny(isNaN(e)?t:e)}const _0=function e(t){var r=v8(t);function n(i,a){var o=r((i=Dp(i)).r,(a=Dp(a)).r),l=r(i.g,a.g),u=r(i.b,a.b),s=DO(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=l(f),i.b=u(f),i.opacity=s(f),i+""}}return n.gamma=e,n}(1);function y8(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;ir&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,u.push({i:o,x:ms(n,i)})),r=Qf.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function E8(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i2?j8:E8,u=s=null,c}function c(d){return d==null||isNaN(d=+d)?a:(u||(u=l(e.map(n),t,r)))(n(o(d)))}return c.invert=function(d){return o(i((s||(s=l(t,e.map(n),ms)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,gs),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),r=iy,f()},c.clamp=function(d){return arguments.length?(o=d?!0:ct,f()):o!==ct},c.interpolate=function(d){return arguments.length?(r=d,f()):r},c.unknown=function(d){return arguments.length?(a=d,c):a},function(d,p){return n=d,i=p,f()}}function ay(){return Rc()(ct,ct)}function $8(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function bs(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function ra(e){return e=bs(Math.abs(e)),e?e[1]:NaN}function T8(e,t){return function(r,n){for(var i=r.length,a=[],o=0,l=e[0],u=0;i>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),a.push(r.substring(i-=l,i+l)),!((u+=l+1)>n));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function k8(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var C8=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Zo(e){if(!(t=C8.exec(e)))throw new Error("invalid format: "+e);var t;return new oy({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]})}Zo.prototype=oy.prototype;function oy(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+""}oy.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 N8(e){e:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var LO;function M8(e,t){var r=bs(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(LO=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+bs(e,Math.max(0,t+a-1))[0]}function A0(e,t){var r=bs(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const E0={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:$8,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)=>A0(e*100,t),r:A0,s:M8,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function j0(e){return e}var $0=Array.prototype.map,T0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function I8(e){var t=e.grouping===void 0||e.thousands===void 0?j0:T8($0.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?j0:k8($0.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function s(c){c=Zo(c);var d=c.fill,p=c.align,h=c.sign,v=c.symbol,x=c.zero,m=c.width,y=c.comma,g=c.precision,S=c.trim,b=c.type;b==="n"?(y=!0,b="g"):E0[b]||(g===void 0&&(g=12),S=!0,b="g"),(x||d==="0"&&p==="=")&&(x=!0,d="0",p="=");var w=v==="$"?r:v==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",O=v==="$"?n:/[%p]/.test(b)?o:"",P=E0[b],A=/[defgprs%]/.test(b);g=g===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g));function $(j){var T=w,N=O,D,M,R;if(b==="c")N=P(j)+N,j="";else{j=+j;var B=j<0||1/j<0;if(j=isNaN(j)?u:P(Math.abs(j),g),S&&(j=N8(j)),B&&+j==0&&h!=="+"&&(B=!1),T=(B?h==="("?h:l:h==="-"||h==="("?"":h)+T,N=(b==="s"?T0[8+LO/3]:"")+N+(B&&h==="("?")":""),A){for(D=-1,M=j.length;++DR||R>57){N=(R===46?i+j.slice(D+1):j.slice(D))+N,j=j.slice(0,D);break}}}y&&!x&&(j=t(j,1/0));var k=T.length+j.length+N.length,I=k>1)+T+j+N+I.slice(k);break;default:j=I+T+j+N;break}return a(j)}return $.toString=function(){return c+""},$}function f(c,d){var p=s((c=Zo(c),c.type="f",c)),h=Math.max(-8,Math.min(8,Math.floor(ra(d)/3)))*3,v=Math.pow(10,-h),x=T0[8+h/3];return function(m){return p(v*m)+x}}return{format:s,formatPrefix:f}}var lu,ly,RO;D8({thousands:",",grouping:[3],currency:["$",""]});function D8(e){return lu=I8(e),ly=lu.format,RO=lu.formatPrefix,lu}function L8(e){return Math.max(0,-ra(Math.abs(e)))}function R8(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ra(t)/3)))*3-ra(Math.abs(e)))}function B8(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ra(t)-ra(e))+1}function BO(e,t,r,n){var i=Mp(e,t,r),a;switch(n=Zo(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=R8(i,o))&&(n.precision=a),RO(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=B8(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=L8(i))&&(n.precision=a-(n.type==="%")*2);break}}return ly(n)}function wn(e){var t=e.domain;return e.ticks=function(r){var n=t();return Cp(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return BO(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],l=n[a],u,s,f=10;for(l0;){if(s=Np(o,l,r),s===u)return n[i]=o,n[a]=l,t(n);if(s>0)o=Math.floor(o/s)*s,l=Math.ceil(l/s)*s;else if(s<0)o=Math.ceil(o*s)/s,l=Math.floor(l*s)/s;else break;u=s}return e},e}function xs(){var e=ay();return e.copy=function(){return kl(e,xs())},Qt.apply(e,arguments),wn(e)}function zO(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,gs),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return zO(e).unknown(t)},e=arguments.length?Array.from(e,gs):[0,1],wn(r)}function FO(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return aMath.pow(e,t)}function H8(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 N0(e){return(t,r)=>-e(-t,r)}function uy(e){const t=e(k0,C0),r=t.domain;let n=10,i,a;function o(){return i=H8(n),a=W8(n),r()[0]<0?(i=N0(i),a=N0(a),e(z8,F8)):e(k0,C0),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(r(l),o()):r()},t.ticks=l=>{const u=r();let s=u[0],f=u[u.length-1];const c=f0){for(;d<=p;++d)for(h=1;hf)break;m.push(v)}}else for(;d<=p;++d)for(h=n-1;h>=1;--h)if(v=d>0?h/a(-d):h*a(d),!(vf)break;m.push(v)}m.length*2{if(l==null&&(l=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=Zo(u)).precision==null&&(u.trim=!0),u=ly(u)),l===1/0)return u;const s=Math.max(1,n*l/t.ticks().length);return f=>{let c=f/a(Math.round(i(f)));return c*nr(FO(r(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function UO(){const e=uy(Rc()).domain([1,10]);return e.copy=()=>kl(e,UO()).base(e.base()),Qt.apply(e,arguments),e}function M0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function I0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function sy(e){var t=1,r=e(M0(t),I0(t));return r.constant=function(n){return arguments.length?e(M0(t=+n),I0(t)):t},wn(r)}function WO(){var e=sy(Rc());return e.copy=function(){return kl(e,WO()).constant(e.constant())},Qt.apply(e,arguments)}function D0(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function K8(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function V8(e){return e<0?-e*e:e*e}function cy(e){var t=e(ct,ct),r=1;function n(){return r===1?e(ct,ct):r===.5?e(K8,V8):e(D0(r),D0(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},wn(t)}function fy(){var e=cy(Rc());return e.copy=function(){return kl(e,fy()).exponent(e.exponent())},Qt.apply(e,arguments),e}function q8(){return fy.apply(null,arguments).exponent(.5)}function L0(e){return Math.sign(e)*e*e}function G8(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function HO(){var e=ay(),t=[0,1],r=!1,n;function i(a){var o=G8(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(L0(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,gs)).map(L0)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return HO(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Qt.apply(i,arguments),wn(i)}function KO(){var e=[],t=[],r=[],n;function i(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o0?r[l-1]:e[0],l=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return VO().domain([e,t]).range(i).unknown(a)},Qt.apply(wn(o),arguments)}function qO(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[$l(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=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?(r=a,i):r},i.copy=function(){return qO().domain(e).range(t).unknown(r)},Qt.apply(i,arguments)}const Zf=new Date,Jf=new Date;function Ve(e,t,r,n){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),l=i.ceil(a);return a-o(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const u=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a0))return u;let s;do u.push(s=new Date(+a)),t(a,l),e(a);while(sVe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Zf.setTime(+a),Jf.setTime(+o),e(Zf),e(Jf),Math.floor(r(Zf,Jf))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const ws=Ve(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ws.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ve(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ws);ws.range;const $r=1e3,Kt=$r*60,Tr=Kt*60,zr=Tr*24,dy=zr*7,R0=zr*30,ed=zr*365,zn=Ve(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*$r)},(e,t)=>(t-e)/$r,e=>e.getUTCSeconds());zn.range;const py=Ve(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$r)},(e,t)=>{e.setTime(+e+t*Kt)},(e,t)=>(t-e)/Kt,e=>e.getMinutes());py.range;const hy=Ve(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Kt)},(e,t)=>(t-e)/Kt,e=>e.getUTCMinutes());hy.range;const vy=Ve(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$r-e.getMinutes()*Kt)},(e,t)=>{e.setTime(+e+t*Tr)},(e,t)=>(t-e)/Tr,e=>e.getHours());vy.range;const yy=Ve(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Tr)},(e,t)=>(t-e)/Tr,e=>e.getUTCHours());yy.range;const Cl=Ve(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Kt)/zr,e=>e.getDate()-1);Cl.range;const Bc=Ve(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/zr,e=>e.getUTCDate()-1);Bc.range;const GO=Ve(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/zr,e=>Math.floor(e/zr));GO.range;function ui(e){return Ve(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Kt)/dy)}const zc=ui(0),Ss=ui(1),X8=ui(2),Y8=ui(3),na=ui(4),Q8=ui(5),Z8=ui(6);zc.range;Ss.range;X8.range;Y8.range;na.range;Q8.range;Z8.range;function si(e){return Ve(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/dy)}const Fc=si(0),Os=si(1),J8=si(2),eB=si(3),ia=si(4),tB=si(5),rB=si(6);Fc.range;Os.range;J8.range;eB.range;ia.range;tB.range;rB.range;const my=Ve(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());my.range;const gy=Ve(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());gy.range;const Fr=Ve(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());Fr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ve(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Fr.range;const Ur=Ve(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());Ur.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ve(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Ur.range;function XO(e,t,r,n,i,a){const o=[[zn,1,$r],[zn,5,5*$r],[zn,15,15*$r],[zn,30,30*$r],[a,1,Kt],[a,5,5*Kt],[a,15,15*Kt],[a,30,30*Kt],[i,1,Tr],[i,3,3*Tr],[i,6,6*Tr],[i,12,12*Tr],[n,1,zr],[n,2,2*zr],[r,1,dy],[t,1,R0],[t,3,3*R0],[e,1,ed]];function l(s,f,c){const d=fx).right(o,d);if(p===o.length)return e.every(Mp(s/ed,f/ed,c));if(p===0)return ws.every(Math.max(Mp(s,f,c),1));const[h,v]=o[d/o[p-1][2]53)return null;"w"in z||(z.w=1),"Z"in z?(oe=rd(Xa(z.y,0,1)),Re=oe.getUTCDay(),oe=Re>4||Re===0?Os.ceil(oe):Os(oe),oe=Bc.offset(oe,(z.V-1)*7),z.y=oe.getUTCFullYear(),z.m=oe.getUTCMonth(),z.d=oe.getUTCDate()+(z.w+6)%7):(oe=td(Xa(z.y,0,1)),Re=oe.getDay(),oe=Re>4||Re===0?Ss.ceil(oe):Ss(oe),oe=Cl.offset(oe,(z.V-1)*7),z.y=oe.getFullYear(),z.m=oe.getMonth(),z.d=oe.getDate()+(z.w+6)%7)}else("W"in z||"U"in z)&&("w"in z||(z.w="u"in z?z.u%7:"W"in z?1:0),Re="Z"in z?rd(Xa(z.y,0,1)).getUTCDay():td(Xa(z.y,0,1)).getDay(),z.m=0,z.d="W"in z?(z.w+6)%7+z.W*7-(Re+5)%7:z.w+z.U*7-(Re+6)%7);return"Z"in z?(z.H+=z.Z/100|0,z.M+=z.Z%100,rd(z)):td(z)}}function P(V,ee,re,z){for(var Te=0,oe=ee.length,Re=re.length,Be,vt;Te=Re)return-1;if(Be=ee.charCodeAt(Te++),Be===37){if(Be=ee.charAt(Te++),vt=b[Be in B0?ee.charAt(Te++):Be],!vt||(z=vt(V,re,z))<0)return-1}else if(Be!=re.charCodeAt(z++))return-1}return z}function A(V,ee,re){var z=s.exec(ee.slice(re));return z?(V.p=f.get(z[0].toLowerCase()),re+z[0].length):-1}function $(V,ee,re){var z=p.exec(ee.slice(re));return z?(V.w=h.get(z[0].toLowerCase()),re+z[0].length):-1}function j(V,ee,re){var z=c.exec(ee.slice(re));return z?(V.w=d.get(z[0].toLowerCase()),re+z[0].length):-1}function T(V,ee,re){var z=m.exec(ee.slice(re));return z?(V.m=y.get(z[0].toLowerCase()),re+z[0].length):-1}function N(V,ee,re){var z=v.exec(ee.slice(re));return z?(V.m=x.get(z[0].toLowerCase()),re+z[0].length):-1}function D(V,ee,re){return P(V,t,ee,re)}function M(V,ee,re){return P(V,r,ee,re)}function R(V,ee,re){return P(V,n,ee,re)}function B(V){return o[V.getDay()]}function k(V){return a[V.getDay()]}function I(V){return u[V.getMonth()]}function F(V){return l[V.getMonth()]}function K(V){return i[+(V.getHours()>=12)]}function W(V){return 1+~~(V.getMonth()/3)}function X(V){return o[V.getUTCDay()]}function ae(V){return a[V.getUTCDay()]}function _e(V){return u[V.getUTCMonth()]}function Ne(V){return l[V.getUTCMonth()]}function Lt(V){return i[+(V.getUTCHours()>=12)]}function ht(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var ee=w(V+="",g);return ee.toString=function(){return V},ee},parse:function(V){var ee=O(V+="",!1);return ee.toString=function(){return V},ee},utcFormat:function(V){var ee=w(V+="",S);return ee.toString=function(){return V},ee},utcParse:function(V){var ee=O(V+="",!0);return ee.toString=function(){return V},ee}}}var B0={"-":"",_:" ",0:"0"},Qe=/^\s*\d+/,uB=/^%/,sB=/[\\^$*+?|[\]().{}]/g;function se(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a[t.toLowerCase(),r]))}function fB(e,t,r){var n=Qe.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function dB(e,t,r){var n=Qe.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function pB(e,t,r){var n=Qe.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function hB(e,t,r){var n=Qe.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function vB(e,t,r){var n=Qe.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function z0(e,t,r){var n=Qe.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function F0(e,t,r){var n=Qe.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function yB(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function mB(e,t,r){var n=Qe.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function gB(e,t,r){var n=Qe.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function U0(e,t,r){var n=Qe.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function bB(e,t,r){var n=Qe.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function W0(e,t,r){var n=Qe.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function xB(e,t,r){var n=Qe.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function wB(e,t,r){var n=Qe.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function SB(e,t,r){var n=Qe.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function OB(e,t,r){var n=Qe.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function _B(e,t,r){var n=uB.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function PB(e,t,r){var n=Qe.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function AB(e,t,r){var n=Qe.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function H0(e,t){return se(e.getDate(),t,2)}function EB(e,t){return se(e.getHours(),t,2)}function jB(e,t){return se(e.getHours()%12||12,t,2)}function $B(e,t){return se(1+Cl.count(Fr(e),e),t,3)}function YO(e,t){return se(e.getMilliseconds(),t,3)}function TB(e,t){return YO(e,t)+"000"}function kB(e,t){return se(e.getMonth()+1,t,2)}function CB(e,t){return se(e.getMinutes(),t,2)}function NB(e,t){return se(e.getSeconds(),t,2)}function MB(e){var t=e.getDay();return t===0?7:t}function IB(e,t){return se(zc.count(Fr(e)-1,e),t,2)}function QO(e){var t=e.getDay();return t>=4||t===0?na(e):na.ceil(e)}function DB(e,t){return e=QO(e),se(na.count(Fr(e),e)+(Fr(e).getDay()===4),t,2)}function LB(e){return e.getDay()}function RB(e,t){return se(Ss.count(Fr(e)-1,e),t,2)}function BB(e,t){return se(e.getFullYear()%100,t,2)}function zB(e,t){return e=QO(e),se(e.getFullYear()%100,t,2)}function FB(e,t){return se(e.getFullYear()%1e4,t,4)}function UB(e,t){var r=e.getDay();return e=r>=4||r===0?na(e):na.ceil(e),se(e.getFullYear()%1e4,t,4)}function WB(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+se(t/60|0,"0",2)+se(t%60,"0",2)}function K0(e,t){return se(e.getUTCDate(),t,2)}function HB(e,t){return se(e.getUTCHours(),t,2)}function KB(e,t){return se(e.getUTCHours()%12||12,t,2)}function VB(e,t){return se(1+Bc.count(Ur(e),e),t,3)}function ZO(e,t){return se(e.getUTCMilliseconds(),t,3)}function qB(e,t){return ZO(e,t)+"000"}function GB(e,t){return se(e.getUTCMonth()+1,t,2)}function XB(e,t){return se(e.getUTCMinutes(),t,2)}function YB(e,t){return se(e.getUTCSeconds(),t,2)}function QB(e){var t=e.getUTCDay();return t===0?7:t}function ZB(e,t){return se(Fc.count(Ur(e)-1,e),t,2)}function JO(e){var t=e.getUTCDay();return t>=4||t===0?ia(e):ia.ceil(e)}function JB(e,t){return e=JO(e),se(ia.count(Ur(e),e)+(Ur(e).getUTCDay()===4),t,2)}function ez(e){return e.getUTCDay()}function tz(e,t){return se(Os.count(Ur(e)-1,e),t,2)}function rz(e,t){return se(e.getUTCFullYear()%100,t,2)}function nz(e,t){return e=JO(e),se(e.getUTCFullYear()%100,t,2)}function iz(e,t){return se(e.getUTCFullYear()%1e4,t,4)}function az(e,t){var r=e.getUTCDay();return e=r>=4||r===0?ia(e):ia.ceil(e),se(e.getUTCFullYear()%1e4,t,4)}function oz(){return"+0000"}function V0(){return"%"}function q0(e){return+e}function G0(e){return Math.floor(+e/1e3)}var hi,e_,t_;lz({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 lz(e){return hi=lB(e),e_=hi.format,hi.parse,t_=hi.utcFormat,hi.utcParse,hi}function uz(e){return new Date(e)}function sz(e){return e instanceof Date?+e:+new Date(+e)}function by(e,t,r,n,i,a,o,l,u,s){var f=ay(),c=f.invert,d=f.domain,p=s(".%L"),h=s(":%S"),v=s("%I:%M"),x=s("%I %p"),m=s("%a %d"),y=s("%b %d"),g=s("%B"),S=s("%Y");function b(w){return(u(w)t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>Z6(e,a/n))},r.copy=function(){return a_(t).domain(e)},Vr.apply(r,arguments)}function Wc(){var e=0,t=.5,r=1,n=1,i,a,o,l,u,s=ct,f,c=!1,d;function p(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-a)*(n*vt}var s_=yz,mz=Hc,gz=s_,bz=Ma;function xz(e){return e&&e.length?mz(e,bz,gz):void 0}var wz=xz;const Kc=he(wz);function Sz(e,t){return ee.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=ne.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};G.decimalPlaces=G.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Se;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};G.dividedBy=G.div=function(e){return Mr(this,new this.constructor(e))};G.dividedToIntegerBy=G.idiv=function(e){var t=this,r=t.constructor;return ve(Mr(t,new r(e),0,1),r.precision)};G.equals=G.eq=function(e){return!this.cmp(e)};G.exponent=function(){return Le(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,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq($t))throw Error(Xt+"NaN");if(r.s<1)throw Error(Xt+(r.s?"NaN":"-Infinity"));return r.eq($t)?new n(0):(Ae=!1,t=Mr(Jo(r,a),Jo(e,a),a),Ae=!0,ve(t,i))};G.minus=G.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?h_(t,e):d_(t,(e.s=-e.s,e))};G.modulo=G.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Xt+"NaN");return r.s?(Ae=!1,t=Mr(r,e,0,1).times(e),Ae=!0,r.minus(t)):ve(new n(r),i)};G.naturalExponential=G.exp=function(){return p_(this)};G.naturalLogarithm=G.ln=function(){return Jo(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?d_(t,e):h_(t,(e.s=-e.s,e))};G.precision=G.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Vn+e);if(t=Le(i)+1,n=i.d.length-1,r=n*Se+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};G.squareRoot=G.sqrt=function(){var e,t,r,n,i,a,o,l=this,u=l.constructor;if(l.s<1){if(!l.s)return new u(0);throw Error(Xt+"NaN")}for(e=Le(l),Ae=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=pr(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=La((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),n=new u(t)):n=new u(i.toString()),r=u.precision,i=o=r+3;;)if(a=n,n=a.plus(Mr(l,a,o+2)).times(.5),pr(a.d).slice(0,o)===(t=pr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ve(a,r+1,0),a.times(a).eq(l)){n=a;break}}else if(t!="9999")break;o+=4}return Ae=!0,ve(n,r)};G.times=G.mul=function(e){var t,r,n,i,a,o,l,u,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,r=f.e+e.e,u=d.length,s=p.length,u=0;){for(t=0,i=u+n;i>n;)l=a[i]+p[n]*d[i-n-1]+t,a[i--]=l%qe|0,t=l/qe|0;a[i]=(a[i]+t)%qe|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Ae?ve(e,c.precision):e};G.toDecimalPlaces=G.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(xr(e,0,Da),t===void 0?t=n.rounding:xr(t,0,8),ve(r,e+Le(r)+1,t))};G.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ti(n,!0):(xr(e,0,Da),t===void 0?t=i.rounding:xr(t,0,8),n=ve(new i(n),e+1,t),r=ti(n,!0,e+1)),r};G.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?ti(i):(xr(e,0,Da),t===void 0?t=a.rounding:xr(t,0,8),n=ve(new a(i),e+Le(i)+1,t),r=ti(n.abs(),!1,e+Le(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};G.toInteger=G.toint=function(){var e=this,t=e.constructor;return ve(new t(e),Le(e)+1,t.rounding)};G.toNumber=function(){return+this};G.toPower=G.pow=function(e){var t,r,n,i,a,o,l=this,u=l.constructor,s=12,f=+(e=new u(e));if(!e.s)return new u($t);if(l=new u(l),!l.s){if(e.s<1)throw Error(Xt+"Infinity");return l}if(l.eq($t))return l;if(n=u.precision,e.eq($t))return ve(l,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=l.s,o){if((r=f<0?-f:f)<=f_){for(i=new u($t),t=Math.ceil(n/Se+4),Ae=!1;r%2&&(i=i.times(l),Q0(i.d,t)),r=La(r/2),r!==0;)l=l.times(l),Q0(l.d,t);return Ae=!0,e.s<0?new u($t).div(i):ve(i,n)}}else if(a<0)throw Error(Xt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,l.s=1,Ae=!1,i=e.times(Jo(l,n+s)),Ae=!0,i=p_(i),i.s=a,i};G.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Le(i),n=ti(i,r<=a.toExpNeg||r>=a.toExpPos)):(xr(e,1,Da),t===void 0?t=a.rounding:xr(t,0,8),i=ve(new a(i),e,t),r=Le(i),n=ti(i,e<=r||r<=a.toExpNeg,e)),n};G.toSignificantDigits=G.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(xr(e,1,Da),t===void 0?t=n.rounding:xr(t,0,8)),ve(new n(r),e,t)};G.toString=G.valueOf=G.val=G.toJSON=G[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Le(e),r=e.constructor;return ti(e,t<=r.toExpNeg||t>=r.toExpPos)};function d_(e,t){var r,n,i,a,o,l,u,s,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Ae?ve(t,c):t;if(u=e.d,s=t.d,o=e.e,i=t.e,u=u.slice(),a=o-i,a){for(a<0?(n=u,a=-a,l=s.length):(n=s,i=o,l=u.length),o=Math.ceil(c/Se),l=o>l?o+1:l+1,a>l&&(a=l,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(l=u.length,a=s.length,l-a<0&&(a=l,n=s,s=u,u=n),r=0;a;)r=(u[--a]=u[a]+s[a]+r)/qe|0,u[a]%=qe;for(r&&(u.unshift(r),++i),l=u.length;u[--l]==0;)u.pop();return t.d=u,t.e=i,Ae?ve(t,c):t}function xr(e,t,r){if(e!==~~e||er)throw Error(Vn+e)}function pr(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;to?1:-1;else for(l=u=0;li[l]?1:-1;break}return u}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]1;)n.shift()}return function(n,i,a,o){var l,u,s,f,c,d,p,h,v,x,m,y,g,S,b,w,O,P,A=n.constructor,$=n.s==i.s?1:-1,j=n.d,T=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(Xt+"Division by zero");for(u=n.e-i.e,O=T.length,b=j.length,p=new A($),h=p.d=[],s=0;T[s]==(j[s]||0);)++s;if(T[s]>(j[s]||0)&&--u,a==null?y=a=A.precision:o?y=a+(Le(n)-Le(i))+1:y=a,y<0)return new A(0);if(y=y/Se+2|0,s=0,O==1)for(f=0,T=T[0],y++;(s1&&(T=e(T,f),j=e(j,f),O=T.length,b=j.length),S=O,v=j.slice(0,O),x=v.length;x=qe/2&&++w;do f=0,l=t(T,v,O,x),l<0?(m=v[0],O!=x&&(m=m*qe+(v[1]||0)),f=m/w|0,f>1?(f>=qe&&(f=qe-1),c=e(T,f),d=c.length,x=v.length,l=t(c,v,d,x),l==1&&(f--,r(c,O16)throw Error(Sy+Le(e));if(!e.s)return new f($t);for(t==null?(Ae=!1,l=c):l=t,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(Nn(2,s))/Math.LN10*2+5|0,l+=n,r=i=a=new f($t),f.precision=l;;){if(i=ve(i.times(e),l),r=r.times(++u),o=a.plus(Mr(i,r,l)),pr(o.d).slice(0,l)===pr(a.d).slice(0,l)){for(;s--;)a=ve(a.times(a),l);return f.precision=c,t==null?(Ae=!0,ve(a,c)):a}a=o}}function Le(e){for(var t=e.e*Se,r=e.d[0];r>=10;r/=10)t++;return t}function nd(e,t,r){if(t>e.LN10.sd())throw Ae=!0,r&&(e.precision=r),Error(Xt+"LN10 precision limit exceeded");return ve(new e(e.LN10),t)}function Zr(e){for(var t="";e--;)t+="0";return t}function Jo(e,t){var r,n,i,a,o,l,u,s,f,c=1,d=10,p=e,h=p.d,v=p.constructor,x=v.precision;if(p.s<1)throw Error(Xt+(p.s?"NaN":"-Infinity"));if(p.eq($t))return new v(0);if(t==null?(Ae=!1,s=x):s=t,p.eq(10))return t==null&&(Ae=!0),nd(v,s);if(s+=d,v.precision=s,r=pr(h),n=r.charAt(0),a=Le(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=pr(p.d),n=r.charAt(0),c++;a=Le(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return u=nd(v,s+2,x).times(a+""),p=Jo(new v(n+"."+r.slice(1)),s-d).plus(u),v.precision=x,t==null?(Ae=!0,ve(p,x)):p;for(l=o=p=Mr(p.minus($t),p.plus($t),s),f=ve(p.times(p),s),i=3;;){if(o=ve(o.times(f),s),u=l.plus(Mr(o,new v(i),s)),pr(u.d).slice(0,s)===pr(l.d).slice(0,s))return l=l.times(2),a!==0&&(l=l.plus(nd(v,s+2,x).times(a+""))),l=Mr(l,new v(c),s),v.precision=x,t==null?(Ae=!0,ve(l,x)):l;l=u,i+=2}}function Y0(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=La(r/Se),e.d=[],n=(r+1)%Se,r<0&&(n+=Se),n_s||e.e<-_s))throw Error(Sy+r)}else e.s=0,e.e=0,e.d=[0];return e}function ve(e,t,r){var n,i,a,o,l,u,s,f,c=e.d;for(o=1,a=c[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Se,i=t,s=c[f=0];else{if(f=Math.ceil((n+1)/Se),a=c.length,f>=a)return e;for(s=a=c[f],o=1;a>=10;a/=10)o++;n%=Se,i=n-Se+o}if(r!==void 0&&(a=Nn(10,o-i-1),l=s/a%10|0,u=t<0||c[f+1]!==void 0||s%a,u=r<4?(l||u)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||u||r==6&&(n>0?i>0?s/Nn(10,o-i):0:c[f-1])%10&1||r==(e.s<0?8:7))),t<1||!c[0])return u?(a=Le(e),c.length=1,t=t-a-1,c[0]=Nn(10,(Se-t%Se)%Se),e.e=La(-t/Se)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(n==0?(c.length=f,a=1,f--):(c.length=f+1,a=Nn(10,Se-n),c[f]=i>0?(s/Nn(10,o-i)%Nn(10,i)|0)*a:0),u)for(;;)if(f==0){(c[0]+=a)==qe&&(c[0]=1,++e.e);break}else{if(c[f]+=a,c[f]!=qe)break;c[f--]=0,a=1}for(n=c.length;c[--n]===0;)c.pop();if(Ae&&(e.e>_s||e.e<-_s))throw Error(Sy+Le(e));return e}function h_(e,t){var r,n,i,a,o,l,u,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),Ae?ve(t,p):t;if(u=e.d,c=t.d,n=t.e,s=e.e,u=u.slice(),o=s-n,o){for(f=o<0,f?(r=u,o=-o,l=c.length):(r=c,n=s,l=u.length),i=Math.max(Math.ceil(p/Se),l)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=u.length,l=c.length,f=i0;--i)u[l++]=0;for(i=c.length;i>o;){if(u[--i]0?a=a.charAt(0)+"."+a.slice(1)+Zr(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Zr(-i-1)+a,r&&(n=r-o)>0&&(a+=Zr(n))):i>=o?(a+=Zr(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Zr(n))):((n=i+1)0&&(i+1===o&&(a+="."),a+=Zr(n))),e.s<0?"-"+a:a}function Q0(e,t){if(e.length>t)return e.length=t,!0}function v_(e){var t,r,n;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(Vn+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 Y0(o,a.toString())}else if(typeof a!="string")throw Error(Vn+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,Wz.test(a))Y0(o,a);else throw Error(Vn+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=v_,i.config=i.set=Hz,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Vn+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Vn+r+": "+n);return this}var Oy=v_(Uz);$t=new Oy(1);const pe=Oy;function Kz(e){return Xz(e)||Gz(e)||qz(e)||Vz()}function Vz(){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 qz(e,t){if(e){if(typeof e=="string")return Bp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bp(e,t)}}function Gz(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Xz(e){if(Array.isArray(e))return Bp(e)}function Bp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,i):e(t-o,Z0(function(){for(var l=arguments.length,u=new Array(l),s=0;se.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(n=(l=o.next()).done)&&(r.push(l.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function cF(e){if(Array.isArray(e))return e}function x_(e){var t=el(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function w_(e,t,r){if(e.lte(0))return new pe(0);var n=Gc.getDigitCount(e.toNumber()),i=new pe(10).pow(n),a=e.div(i),o=n!==1?.05:.1,l=new pe(Math.ceil(a.div(o).toNumber())).add(r).mul(o),u=l.mul(i);return t?u:new pe(Math.ceil(u))}function fF(e,t,r){var n=1,i=new pe(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new pe(10).pow(Gc.getDigitCount(e)-1),i=new pe(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new pe(Math.floor(e)))}else e===0?i=new pe(Math.floor((t-1)/2)):r||(i=new pe(Math.floor(e)));var o=Math.floor((t-1)/2),l=Jz(Zz(function(u){return i.add(new pe(u-o).mul(n)).toNumber()}),zp);return l(0,t)}function S_(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new pe(0),tickMin:new pe(0),tickMax:new pe(0)};var a=w_(new pe(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new pe(0):(o=new pe(e).add(t).div(2),o=o.sub(new pe(o).mod(a)));var l=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new pe(t).sub(o).div(a).toNumber()),s=l+u+1;return s>r?S_(e,t,r,n,i+1):(s0?u+(r-s):u,l=t>0?l:l+(r-s)),{step:a,tickMin:o.sub(new pe(l).mul(a)),tickMax:o.add(new pe(u).mul(a))})}function dF(e){var t=el(e,2),r=t[0],n=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),l=x_([r,n]),u=el(l,2),s=u[0],f=u[1];if(s===-1/0||f===1/0){var c=f===1/0?[s].concat(Up(zp(0,i-1).map(function(){return 1/0}))):[].concat(Up(zp(0,i-1).map(function(){return-1/0})),[f]);return r>n?Fp(c):c}if(s===f)return fF(s,i,a);var d=S_(s,f,o,a),p=d.step,h=d.tickMin,v=d.tickMax,x=Gc.rangeStep(h,v.add(new pe(.1).mul(p)),p);return r>n?Fp(x):x}function pF(e,t){var r=el(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=x_([n,i]),l=el(o,2),u=l[0],s=l[1];if(u===-1/0||s===1/0)return[n,i];if(u===s)return[u];var f=Math.max(t,2),c=w_(new pe(s).sub(u).div(f-1),a,0),d=[].concat(Up(Gc.rangeStep(new pe(u),new pe(s).sub(new pe(.99).mul(c)),c)),[s]);return n>i?Fp(d):d}var hF=g_(dF),vF=g_(pF),yF="Invariant failed";function ri(e,t){throw new Error(yF)}var mF=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function aa(e){"@babel/helpers - typeof";return aa=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},aa(e)}function Ps(){return Ps=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _F(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function PF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AF(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,l=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var u=a.range,s=0;s0?i[s-1].coordinate:i[l-1].coordinate,c=i[s].coordinate,d=s>=l-1?i[0].coordinate:i[s+1].coordinate,p=void 0;if(ut(c-f)!==ut(d-c)){var h=[];if(ut(d-c)===ut(u[1]-u[0])){p=d;var v=c+u[1]-u[0];h[0]=Math.min(v,(v+f)/2),h[1]=Math.max(v,(v+f)/2)}else{p=f;var x=d+u[1]-u[0];h[0]=Math.min(c,(x+c)/2),h[1]=Math.max(c,(x+c)/2)}var m=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(t>m[0]&&t<=m[1]||t>=h[0]&&t<=h[1]){o=i[s].index;break}}else{var y=Math.min(f,d),g=Math.max(f,d);if(t>(y+c)/2&&t<=(g+c)/2){o=i[s].index;break}}}else for(var S=0;S0&&S(n[S].coordinate+n[S-1].coordinate)/2&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S===l-1&&t>(n[S].coordinate+n[S-1].coordinate)/2){o=n[S].index;break}return o},_y=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ce(Ce({},t.type.defaultProps),t.props):t.props,o=a.stroke,l=a.fill,u;switch(i){case"Line":u=o;break;case"Area":case"Radar":u=o&&o!=="none"?o:l;break;default:u=l;break}return u},WF=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},l=Object.keys(a),u=0,s=l.length;u=0});if(m&&m.length){var y=m[0].type.defaultProps,g=y!==void 0?Ce(Ce({},y),m[0].props):m[0].props,S=g.barSize,b=g[x];o[b]||(o[b]=[]);var w=J(S)?r:S;o[b].push({item:m[0],stackList:m.slice(1),barSize:J(w)?void 0:st(w,n,0)})}}return o},HF=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,l=t.maxBarSize,u=o.length;if(u<1)return null;var s=st(r,i,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/u,h=o.reduce(function(S,b){return S+b.barSize||0},0);h+=(u-1)*s,h>=i&&(h-=(u-1)*s,s=0),h>=i&&p>0&&(d=!0,p*=.9,h=u*p);var v=(i-h)/2>>0,x={offset:v-s,size:0};f=o.reduce(function(S,b){var w={item:b.item,position:{offset:x.offset+x.size+s,size:d?p:b.barSize}},O=[].concat(t1(S),[w]);return x=O[O.length-1].position,b.stackList&&b.stackList.length&&b.stackList.forEach(function(P){O.push({item:P,position:x})}),O},c)}else{var m=st(n,i,0,!0);i-2*m-(u-1)*s<=0&&(s=0);var y=(i-2*m-(u-1)*s)/u;y>1&&(y>>=0);var g=l===+l?Math.min(y,l):y;f=o.reduce(function(S,b,w){var O=[].concat(t1(S),[{item:b.item,position:{offset:m+(y+s)*w+(y-g)/2,size:g}}]);return b.stackList&&b.stackList.length&&b.stackList.forEach(function(P){O.push({item:P,position:O[O.length-1].position})}),O},c)}return f},KF=function(t,r,n,i){var a=n.children,o=n.width,l=n.margin,u=o-(l.left||0)-(l.right||0),s=A_({children:a,legendWidth:u});if(s){var f=i||{},c=f.width,d=f.height,p=s.align,h=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&h==="middle")&&p!=="center"&&H(t[p]))return Ce(Ce({},t),{},Wi({},p,t[p]+(c||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&h!=="middle"&&H(t[h]))return Ce(Ce({},t),{},Wi({},h,t[h]+(d||0)))}return t},VF=function(t,r,n){return J(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},E_=function(t,r,n,i,a){var o=r.props.children,l=Nt(o,Ml).filter(function(s){return VF(i,a,s.props.direction)});if(l&&l.length){var u=l.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var c=We(f,n);if(J(c))return s;var d=Array.isArray(c)?[Vc(c),Kc(c)]:[c,c],p=u.reduce(function(h,v){var x=We(f,v,0),m=d[0]-Math.abs(Array.isArray(x)?x[0]:x),y=d[1]+Math.abs(Array.isArray(x)?x[1]:x);return[Math.min(m,h[0]),Math.max(y,h[1])]},[1/0,-1/0]);return[Math.min(p[0],s[0]),Math.max(p[1],s[1])]},[1/0,-1/0])}return null},qF=function(t,r,n,i,a){var o=r.map(function(l){return E_(t,l,n,a,i)}).filter(function(l){return!J(l)});return o&&o.length?o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]):null},j_=function(t,r,n,i,a){var o=r.map(function(u){var s=u.props.dataKey;return n==="number"&&s&&E_(t,u,s,i)||bo(t,s,n,a)});if(n==="number")return o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]);var l={};return o.reduce(function(u,s){for(var f=0,c=s.length;f=2?ut(l[0]-l[1])*2*s:s,r&&(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!jl(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&&!n?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}})},id=new WeakMap,uu=function(t,r){if(typeof r!="function")return t;id.has(t)||id.set(t,new WeakMap);var n=id.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},T_=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,l=t.axisType;if(i==="auto")return o==="radial"&&l==="radiusAxis"?{scale:Go(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:xs(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:go(),realScaleType:"point"}:a==="category"?{scale:Go(),realScaleType:"band"}:{scale:xs(),realScaleType:"linear"};if(Zn(i)){var u="scale".concat(kc(i));return{scale:(X0[u]||go)(),realScaleType:X0[u]?u:"point"}}return Z(i)?{scale:i}:{scale:go(),realScaleType:"point"}},n1=1e-4,k_=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-n1,o=Math.max(i[0],i[1])+n1,l=t(r[0]),u=t(r[n-1]);(lo||uo)&&t.domain([r[0],r[n-1]])}},GF=function(t,r){if(!t)return null;for(var n=0,i=t.length;ni)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]=0?(t[l][n][0]=a,t[l][n][1]=a+u,a=t[l][n][1]):(t[l][n][0]=o,t[l][n][1]=o+u,o=t[l][n][1])}},QF=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n=0?(t[o][n][0]=a,t[o][n][1]=a+l,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},ZF={sign:YF,expand:yN,none:Qi,silhouette:mN,wiggle:gN,positive:QF},JF=function(t,r,n){var i=r.map(function(l){return l.props.dataKey}),a=ZF[n],o=vN().keys(i).value(function(l,u){return+We(l,u,0)}).order(yp).offset(a);return o(t)},e7=function(t,r,n,i,a,o){if(!t)return null;var l=o?r.reverse():r,u={},s=l.reduce(function(c,d){var p,h=(p=d.type)!==null&&p!==void 0&&p.defaultProps?Ce(Ce({},d.type.defaultProps),d.props):d.props,v=h.stackId,x=h.hide;if(x)return c;var m=h[n],y=c[m]||{hasStack:!1,stackGroups:{}};if(Ke(v)){var g=y.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};g.items.push(d),y.hasStack=!0,y.stackGroups[v]=g}else y.stackGroups[ka("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Ce(Ce({},c),{},Wi({},m,y))},u),f={};return Object.keys(s).reduce(function(c,d){var p=s[d];if(p.hasStack){var h={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,x){var m=p.stackGroups[x];return Ce(Ce({},v),{},Wi({},x,{numericAxisId:n,cateAxisId:i,items:m.items,stackedData:JF(t,m.items,a)}))},h)}return Ce(Ce({},c),{},Wi({},d,p))},f)},C_=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,l=r.allowDecimals,u=n||r.scale;if(u!=="auto"&&u!=="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=hF(s,a,l);return t.domain([Vc(f),Kc(f)]),{niceTicks:f}}if(a&&i==="number"){var c=t.domain(),d=vF(c,a,l);return{niceTicks:d}}return null};function i1(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!J(i[t.dataKey])){var l=Ju(r,"value",i[t.dataKey]);if(l)return l.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var u=We(i,J(o)?t.dataKey:o);return J(u)?null:t.scale(u)}var a1=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,l=t.index;if(r.type==="category")return n[l]?n[l].coordinate+i:null;var u=We(o,r.dataKey,r.domain[l]);return J(u)?null:r.scale(u)-a/2+i},t7=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},r7=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ce(Ce({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Ke(a)){var o=r[a];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},n7=function(t){return t.reduce(function(r,n){return[Vc(n.concat([r[0]]).filter(H)),Kc(n.concat([r[1]]).filter(H))]},[1/0,-1/0])},N_=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],l=o.stackedData,u=l.reduce(function(s,f){var c=n7(f.slice(r,n+1));return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);return[Math.min(u[0],i[0]),Math.max(u[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},o1=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,l1=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Vp=function(t,r,n){if(Z(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(H(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(o1.test(t[0])){var a=+o1.exec(t[0])[1];i[0]=r[0]-a}else Z(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(H(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(l1.test(t[1])){var o=+l1.exec(t[1])[1];i[1]=r[1]+o}else Z(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Es=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Zv(r,function(c){return c.coordinate}),o=1/0,l=1,u=a.length;le.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},d7=function(t,r,n,i,a){var o=t.width,l=t.height,u=t.startAngle,s=t.endAngle,f=st(t.cx,o,o/2),c=st(t.cy,l,l/2),d=D_(o,l,n),p=st(t.innerRadius,d,0),h=st(t.outerRadius,d,d*.8),v=Object.keys(r);return v.reduce(function(x,m){var y=r[m],g=y.domain,S=y.reversed,b;if(J(y.range))i==="angleAxis"?b=[u,s]:i==="radiusAxis"&&(b=[p,h]),S&&(b=[b[1],b[0]]);else{b=y.range;var w=b,O=o7(w,2);u=O[0],s=O[1]}var P=T_(y,a),A=P.realScaleType,$=P.scale;$.domain(g).range(b),k_($);var j=C_($,Pr(Pr({},y),{},{realScaleType:A})),T=Pr(Pr(Pr({},y),j),{},{range:b,radius:h,realScaleType:A,scale:$,cx:f,cy:c,innerRadius:p,outerRadius:h,startAngle:u,endAngle:s});return Pr(Pr({},x),{},I_({},m,T))},{})},p7=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},h7=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,l=p7({x:n,y:i},{x:a,y:o});if(l<=0)return{radius:l};var u=(n-a)/l,s=Math.acos(u);return i>o&&(s=2*Math.PI-s),{radius:l,angle:f7(s),angleInRadian:s}},v7=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},y7=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),l=Math.min(a,o);return t+l*360},f1=function(t,r){var n=t.x,i=t.y,a=h7({x:n,y:i},r),o=a.radius,l=a.angle,u=r.innerRadius,s=r.outerRadius;if(os)return!1;if(o===0)return!0;var f=v7(r),c=f.startAngle,d=f.endAngle,p=l,h;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 h?Pr(Pr({},r),{},{radius:o,angle:y7(p,r)}):null},L_=function(t){return!L.isValidElement(t)&&!Z(t)&&typeof t!="boolean"?t.className:""};function il(e){"@babel/helpers - typeof";return il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},il(e)}var m7=["offset"];function g7(e){return S7(e)||w7(e)||x7(e)||b7()}function b7(){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 x7(e,t){if(e){if(typeof e=="string")return qp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qp(e,t)}}function w7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function S7(e){if(Array.isArray(e))return qp(e)}function qp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _7(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function d1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;t=0?1:-1,g,S;i==="insideStart"?(g=p+y*o,S=v):i==="insideEnd"?(g=h-y*o,S=!v):i==="end"&&(g=h+y*o,S=v),S=m<=0?S:!S;var b=be(s,f,x,g),w=be(s,f,x,g+(S?1:-1)*359),O="M".concat(b.x,",").concat(b.y,` - A`).concat(x,",").concat(x,",0,1,").concat(S?0:1,`, - `).concat(w.x,",").concat(w.y),P=J(t.id)?ka("recharts-radial-line-"):t.id;return E.createElement("text",al({},n,{dominantBaseline:"central",className:te("recharts-radial-bar-label",l)}),E.createElement("defs",null,E.createElement("path",{id:P,d:O})),E.createElement("textPath",{xlinkHref:"#".concat(P)},r))},k7=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,l=a.cy,u=a.innerRadius,s=a.outerRadius,f=a.startAngle,c=a.endAngle,d=(f+c)/2;if(i==="outside"){var p=be(o,l,s+n,d),h=p.x,v=p.y;return{x:h,y:v,textAnchor:h>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var x=(u+s)/2,m=be(o,l,x,d),y=m.x,g=m.y;return{x:y,y:g,textAnchor:"middle",verticalAnchor:"middle"}},C7=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,l=o.x,u=o.y,s=o.width,f=o.height,c=f>=0?1:-1,d=c*i,p=c>0?"end":"start",h=c>0?"start":"end",v=s>=0?1:-1,x=v*i,m=v>0?"end":"start",y=v>0?"start":"end";if(a==="top"){var g={x:l+s/2,y:u-c*i,textAnchor:"middle",verticalAnchor:p};return Fe(Fe({},g),n?{height:Math.max(u-n.y,0),width:s}:{})}if(a==="bottom"){var S={x:l+s/2,y:u+f+d,textAnchor:"middle",verticalAnchor:h};return Fe(Fe({},S),n?{height:Math.max(n.y+n.height-(u+f),0),width:s}:{})}if(a==="left"){var b={x:l-x,y:u+f/2,textAnchor:m,verticalAnchor:"middle"};return Fe(Fe({},b),n?{width:Math.max(b.x-n.x,0),height:f}:{})}if(a==="right"){var w={x:l+s+x,y:u+f/2,textAnchor:y,verticalAnchor:"middle"};return Fe(Fe({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:f}:{})}var O=n?{width:s,height:f}:{};return a==="insideLeft"?Fe({x:l+x,y:u+f/2,textAnchor:y,verticalAnchor:"middle"},O):a==="insideRight"?Fe({x:l+s-x,y:u+f/2,textAnchor:m,verticalAnchor:"middle"},O):a==="insideTop"?Fe({x:l+s/2,y:u+d,textAnchor:"middle",verticalAnchor:h},O):a==="insideBottom"?Fe({x:l+s/2,y:u+f-d,textAnchor:"middle",verticalAnchor:p},O):a==="insideTopLeft"?Fe({x:l+x,y:u+d,textAnchor:y,verticalAnchor:h},O):a==="insideTopRight"?Fe({x:l+s-x,y:u+d,textAnchor:m,verticalAnchor:h},O):a==="insideBottomLeft"?Fe({x:l+x,y:u+f-d,textAnchor:y,verticalAnchor:p},O):a==="insideBottomRight"?Fe({x:l+s-x,y:u+f-d,textAnchor:m,verticalAnchor:p},O):Ea(a)&&(H(a.x)||Rn(a.x))&&(H(a.y)||Rn(a.y))?Fe({x:l+st(a.x,s),y:u+st(a.y,f),textAnchor:"end",verticalAnchor:"end"},O):Fe({x:l+s/2,y:u+f/2,textAnchor:"middle",verticalAnchor:"middle"},O)},N7=function(t){return"cx"in t&&H(t.cx)};function Xe(e){var t=e.offset,r=t===void 0?5:t,n=O7(e,m7),i=Fe({offset:r},n),a=i.viewBox,o=i.position,l=i.value,u=i.children,s=i.content,f=i.className,c=f===void 0?"":f,d=i.textBreakAll;if(!a||J(l)&&J(u)&&!L.isValidElement(s)&&!Z(s))return null;if(L.isValidElement(s))return L.cloneElement(s,i);var p;if(Z(s)){if(p=L.createElement(s,i),L.isValidElement(p))return p}else p=j7(i);var h=N7(a),v=Y(i,!0);if(h&&(o==="insideStart"||o==="insideEnd"||o==="end"))return T7(i,p,v);var x=h?k7(i):C7(i);return E.createElement(ei,al({className:te("recharts-label",c)},v,x,{breakAll:d}),p)}Xe.displayName="Label";var R_=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,l=t.r,u=t.radius,s=t.innerRadius,f=t.outerRadius,c=t.x,d=t.y,p=t.top,h=t.left,v=t.width,x=t.height,m=t.clockWise,y=t.labelViewBox;if(y)return y;if(H(v)&&H(x)){if(H(c)&&H(d))return{x:c,y:d,width:v,height:x};if(H(p)&&H(h))return{x:p,y:h,width:v,height:x}}return H(c)&&H(d)?{x:c,y:d,width:0,height:0}:H(r)&&H(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||u||l||0,clockWise:m}:t.viewBox?t.viewBox:{}},M7=function(t,r){return t?t===!0?E.createElement(Xe,{key:"label-implicit",viewBox:r}):Ke(t)?E.createElement(Xe,{key:"label-implicit",viewBox:r,value:t}):L.isValidElement(t)?t.type===Xe?L.cloneElement(t,{key:"label-implicit",viewBox:r}):E.createElement(Xe,{key:"label-implicit",content:t,viewBox:r}):Z(t)?E.createElement(Xe,{key:"label-implicit",content:t,viewBox:r}):Ea(t)?E.createElement(Xe,al({viewBox:r},t,{key:"label-implicit"})):null:null},I7=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=R_(t),o=Nt(i,Xe).map(function(u,s){return L.cloneElement(u,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var l=M7(t.label,r||a);return[l].concat(g7(o))};Xe.parseViewBox=R_;Xe.renderCallByParent=I7;function D7(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var L7=D7;const R7=he(L7);function ol(e){"@babel/helpers - typeof";return ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ol(e)}var B7=["valueAccessor"],z7=["data","dataKey","clockWise","id","textBreakAll"];function F7(e){return K7(e)||H7(e)||W7(e)||U7()}function U7(){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 W7(e,t){if(e){if(typeof e=="string")return Gp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gp(e,t)}}function H7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function K7(e){if(Array.isArray(e))return Gp(e)}function Gp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function X7(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Y7=function(t){return Array.isArray(t.value)?R7(t.value):t.value};function Ir(e){var t=e.valueAccessor,r=t===void 0?Y7:t,n=v1(e,B7),i=n.data,a=n.dataKey,o=n.clockWise,l=n.id,u=n.textBreakAll,s=v1(n,z7);return!i||!i.length?null:E.createElement(ue,{className:"recharts-label-list"},i.map(function(f,c){var d=J(a)?r(f,c):We(f&&f.payload,a),p=J(l)?{}:{id:"".concat(l,"-").concat(c)};return E.createElement(Xe,$s({},Y(f,!0),s,p,{parentViewBox:f.parentViewBox,value:d,textBreakAll:u,viewBox:Xe.parseViewBox(J(o)?f:h1(h1({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}Ir.displayName="LabelList";function Q7(e,t){return e?e===!0?E.createElement(Ir,{key:"labelList-implicit",data:t}):E.isValidElement(e)||Z(e)?E.createElement(Ir,{key:"labelList-implicit",data:t,content:e}):Ea(e)?E.createElement(Ir,$s({data:t},e,{key:"labelList-implicit"})):null:null}function Z7(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Nt(n,Ir).map(function(o,l){return L.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!r)return i;var a=Q7(e.label,t);return[a].concat(F7(i))}Ir.renderCallByParent=Z7;function ll(e){"@babel/helpers - typeof";return ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ll(e)}function Xp(){return Xp=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=be(r,n,i,o),h=be(r,n,i,s);d+="L ".concat(h.x,",").concat(h.y,` - A `).concat(i,",").concat(i,`,0, - `).concat(+(Math.abs(u)>180),",").concat(+(o<=s),`, - `).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},n9=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,u=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,c=ut(f-s),d=su({cx:r,cy:n,radius:a,angle:s,sign:c,cornerRadius:o,cornerIsExternal:u}),p=d.circleTangency,h=d.lineTangency,v=d.theta,x=su({cx:r,cy:n,radius:a,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:u}),m=x.circleTangency,y=x.lineTangency,g=x.theta,S=u?Math.abs(s-f):Math.abs(s-f)-v-g;if(S<0)return l?"M ".concat(h.x,",").concat(h.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 - `):B_({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var b="M ".concat(h.x,",").concat(h.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,` - A`).concat(a,",").concat(a,",0,").concat(+(S>180),",").concat(+(c<0),",").concat(m.x,",").concat(m.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(y.x,",").concat(y.y,` - `);if(i>0){var w=su({cx:r,cy:n,radius:i,angle:s,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),O=w.circleTangency,P=w.lineTangency,A=w.theta,$=su({cx:r,cy:n,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),j=$.circleTangency,T=$.lineTangency,N=$.theta,D=u?Math.abs(s-f):Math.abs(s-f)-A-N;if(D<0&&o===0)return"".concat(b,"L").concat(r,",").concat(n,"Z");b+="L".concat(T.x,",").concat(T.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(j.x,",").concat(j.y,` - A`).concat(i,",").concat(i,",0,").concat(+(D>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 b+="L".concat(r,",").concat(n,"Z");return b},i9={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},z_=function(t){var r=m1(m1({},i9),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,l=r.cornerRadius,u=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,c=r.endAngle,d=r.className;if(o0&&Math.abs(f-c)<360?x=n9({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,h/2),forceCornerRadius:u,cornerIsExternal:s,startAngle:f,endAngle:c}):x=B_({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:c}),E.createElement("path",Xp({},Y(r,!0),{className:p,d:x,role:"img"}))};function ul(e){"@babel/helpers - typeof";return ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ul(e)}function Yp(){return Yp=Object.assign?Object.assign.bind():function(e){for(var t=1;t0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function O9(e,t){return ci(e.getTime(),t.getTime())}function _9(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function P9(e,t){return e===t}function P1(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,l,u=0;(o=a.next())&&!o.done;){for(var s=t.entries(),f=!1,c=0;(l=s.next())&&!l.done;){if(i[c]){c++;continue}var d=o.value,p=l.value;if(r.equals(d[0],p[0],u,c,e,t,r)&&r.equals(d[1],p[1],d[0],p[0],e,t,r)){f=i[c]=!0;break}c++}if(!f)return!1;u++}return!0}var A9=ci;function E9(e,t,r){var n=_1(e),i=n.length;if(_1(t).length!==i)return!1;for(;i-- >0;)if(!H_(e,t,r,n[i]))return!1;return!0}function eo(e,t,r){var n=S1(e),i=n.length;if(S1(t).length!==i)return!1;for(var a,o,l;i-- >0;)if(a=n[i],!H_(e,t,r,a)||(o=O1(e,a),l=O1(t,a),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function j9(e,t){return ci(e.valueOf(),t.valueOf())}function $9(e,t){return e.source===t.source&&e.flags===t.flags}function A1(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,l;(o=a.next())&&!o.done;){for(var u=t.values(),s=!1,f=0;(l=u.next())&&!l.done;){if(!i[f]&&r.equals(o.value,l.value,o.value,l.value,e,t,r)){s=i[f]=!0;break}f++}if(!s)return!1}return!0}function T9(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function k9(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function H_(e,t,r,n){return(n===w9||n===x9||n===b9)&&(e.$$typeof||t.$$typeof)?!0:g9(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var C9="[object Arguments]",N9="[object Boolean]",M9="[object Date]",I9="[object Error]",D9="[object Map]",L9="[object Number]",R9="[object Object]",B9="[object RegExp]",z9="[object Set]",F9="[object String]",U9="[object URL]",W9=Array.isArray,E1=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,j1=Object.assign,H9=Object.prototype.toString.call.bind(Object.prototype.toString);function K9(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,l=e.areObjectsEqual,u=e.arePrimitiveWrappersEqual,s=e.areRegExpsEqual,f=e.areSetsEqual,c=e.areTypedArraysEqual,d=e.areUrlsEqual;return function(h,v,x){if(h===v)return!0;if(h==null||v==null)return!1;var m=typeof h;if(m!==typeof v)return!1;if(m!=="object")return m==="number"?o(h,v,x):m==="function"?i(h,v,x):!1;var y=h.constructor;if(y!==v.constructor)return!1;if(y===Object)return l(h,v,x);if(W9(h))return t(h,v,x);if(E1!=null&&E1(h))return c(h,v,x);if(y===Date)return r(h,v,x);if(y===RegExp)return s(h,v,x);if(y===Map)return a(h,v,x);if(y===Set)return f(h,v,x);var g=H9(h);return g===M9?r(h,v,x):g===B9?s(h,v,x):g===D9?a(h,v,x):g===z9?f(h,v,x):g===R9?typeof h.then!="function"&&typeof v.then!="function"&&l(h,v,x):g===U9?d(h,v,x):g===I9?n(h,v,x):g===C9?l(h,v,x):g===N9||g===L9||g===F9?u(h,v,x):!1}}function V9(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?eo:S9,areDatesEqual:O9,areErrorsEqual:_9,areFunctionsEqual:P9,areMapsEqual:n?w1(P1,eo):P1,areNumbersEqual:A9,areObjectsEqual:n?eo:E9,arePrimitiveWrappersEqual:j9,areRegExpsEqual:$9,areSetsEqual:n?w1(A1,eo):A1,areTypedArraysEqual:n?eo:T9,areUrlsEqual:k9};if(r&&(i=j1({},i,r(i))),t){var a=fu(i.areArraysEqual),o=fu(i.areMapsEqual),l=fu(i.areObjectsEqual),u=fu(i.areSetsEqual);i=j1({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:u})}return i}function q9(e){return function(t,r,n,i,a,o,l){return e(t,r,l)}}function G9(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(u,s){var f=n(),c=f.cache,d=c===void 0?t?new WeakMap:void 0:c,p=f.meta;return r(u,s,{cache:d,equals:i,meta:p,strict:a})};if(t)return function(u,s){return r(u,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(u,s){return r(u,s,o)}}var X9=On();On({strict:!0});On({circular:!0});On({circular:!0,strict:!0});On({createInternalComparator:function(){return ci}});On({strict:!0,createInternalComparator:function(){return ci}});On({circular:!0,createInternalComparator:function(){return ci}});On({circular:!0,createInternalComparator:function(){return ci},strict:!0});function On(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,l=V9(e),u=K9(l),s=n?n(u):q9(u);return G9({circular:r,comparator:u,createState:i,equals:s,strict:o})}function Y9(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function $1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):Y9(i)};requestAnimationFrame(n)}function Qp(e){"@babel/helpers - typeof";return Qp=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},Qp(e)}function Q9(e){return tU(e)||eU(e)||J9(e)||Z9()}function Z9(){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 J9(e,t){if(e){if(typeof e=="string")return T1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T1(e,t)}}function T1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:m<0?0:m},v=function(m){for(var y=m>1?1:m,g=y,S=0;S<8;++S){var b=c(g)-y,w=p(g);if(Math.abs(b-y)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,l=o===void 0?17:o,u=function(f,c,d){var p=-(f-c)*n,h=d*a,v=d+(p-h)*l/1e3,x=d*l/1e3+f;return Math.abs(x-c)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CU(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function ad(e){return DU(e)||IU(e)||MU(e)||NU()}function NU(){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 MU(e,t){if(e){if(typeof e=="string")return rh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rh(e,t)}}function IU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DU(e){if(Array.isArray(e))return rh(e)}function rh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"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 Ns(e){return Ns=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ns(e)}var wr=function(e){FU(r,e);var t=UU(r);function r(n,i){var a;LU(this,r),a=t.call(this,n,i);var o=a.props,l=o.isActive,u=o.attributeName,s=o.from,f=o.to,c=o.steps,d=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(ah(a)),a.changeStyle=a.changeStyle.bind(ah(a)),!l||p<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),ih(a);if(c&&c.length)a.state={style:c[0].style};else if(s){if(typeof d=="function")return a.state={style:s},ih(a);a.state={style:u?oo({},u,s):s}}else a.state={style:{}};return a}return BU(r,[{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,l=a.canBegin,u=a.attributeName,s=a.shouldReAnimate,f=a.to,c=a.from,d=this.state.style;if(l){if(!o){var p={style:u?oo({},u,f):f};this.state&&d&&(u&&d[u]!==f||!u&&d!==f)&&this.setState(p);return}if(!(X9(i.to,f)&&i.canBegin&&i.isActive)){var h=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=h||s?c:i.to;if(this.state&&d){var x={style:u?oo({},u,v):v};(u&&d[u]!==v||!u&&d!==v)&&this.setState(x)}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,l=i.to,u=i.duration,s=i.easing,f=i.begin,c=i.onAnimationEnd,d=i.onAnimationStart,p=$U(o,l,gU(s),u,this.changeStyle),h=function(){a.stopJSAnimation=p()};this.manager.start([d,f,h,u,c])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,l=i.begin,u=i.onAnimationStart,s=o[0],f=s.style,c=s.duration,d=c===void 0?0:c,p=function(v,x,m){if(m===0)return v;var y=x.duration,g=x.easing,S=g===void 0?"ease":g,b=x.style,w=x.properties,O=x.onAnimationEnd,P=m>0?o[m-1]:x,A=w||Object.keys(b);if(typeof S=="function"||S==="spring")return[].concat(ad(v),[a.runJSAnimation.bind(a,{from:P.style,to:b,duration:y,easing:S}),y]);var $=N1(A,y,S),j=Jt(Jt(Jt({},P.style),b),{},{transition:$});return[].concat(ad(v),[j,y,O]).filter(oU)};return this.manager.start([u].concat(ad(o.reduce(p,[f,Math.max(d,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=rU());var a=i.begin,o=i.duration,l=i.attributeName,u=i.to,s=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,d=i.steps,p=i.children,h=this.manager;if(this.unSubscribe=h.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=l?oo({},l,u):u,x=N1(Object.keys(v),o,s);h.start([f,a,Jt(Jt({},v),{},{transition:x}),o,c])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var u=kU(i,TU),s=L.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!l||s===0||o<=0)return a;var c=function(p){var h=p.props,v=h.style,x=v===void 0?{}:v,m=h.className,y=L.cloneElement(p,Jt(Jt({},u),{},{style:Jt(Jt({},x),f),className:m}));return y};return s===1?c(L.Children.only(a)):E.createElement("div",null,L.Children.map(a,function(d){return c(d)}))}}]),r}(L.PureComponent);wr.displayName="Animate";wr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};wr.propTypes={from:ce.oneOfType([ce.object,ce.string]),to:ce.oneOfType([ce.object,ce.string]),attributeName:ce.string,duration:ce.number,begin:ce.number,easing:ce.oneOfType([ce.string,ce.func]),steps:ce.arrayOf(ce.shape({duration:ce.number.isRequired,style:ce.object.isRequired,easing:ce.oneOfType([ce.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ce.func]),properties:ce.arrayOf("string"),onAnimationEnd:ce.func})),children:ce.oneOfType([ce.node,ce.func]),isActive:ce.bool,canBegin:ce.bool,onAnimationEnd:ce.func,shouldReAnimate:ce.bool,onAnimationStart:ce.func,onAnimationReStart:ce.func};function fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,u=n>=0?1:-1,s=i>=0&&n>=0||i<0&&n<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(r+l*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(s,",").concat(t+u*c[0],",").concat(r)),f+="L ".concat(t+n-u*c[1],",").concat(r),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(s,`, - `).concat(t+n,",").concat(r+l*c[1])),f+="L ".concat(t+n,",").concat(r+i-l*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(s,`, - `).concat(t+n-u*c[2],",").concat(r+i)),f+="L ".concat(t+u*c[3],",").concat(r+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(s,`, - `).concat(t,",").concat(r+i-l*c[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var h=Math.min(o,a);f="M ".concat(t,",").concat(r+l*h,` - A `).concat(h,",").concat(h,",0,0,").concat(s,",").concat(t+u*h,",").concat(r,` - L `).concat(t+n-u*h,",").concat(r,` - A `).concat(h,",").concat(h,",0,0,").concat(s,",").concat(t+n,",").concat(r+l*h,` - L `).concat(t+n,",").concat(r+i-l*h,` - A `).concat(h,",").concat(h,",0,0,").concat(s,",").concat(t+n-u*h,",").concat(r+i,` - L `).concat(t+u*h,",").concat(r+i,` - A `).concat(h,",").concat(h,",0,0,").concat(s,",").concat(t,",").concat(r+i-l*h," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},ZU=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,l=r.width,u=r.height;if(Math.abs(l)>0&&Math.abs(u)>0){var s=Math.min(a,a+l),f=Math.max(a,a+l),c=Math.min(o,o+u),d=Math.max(o,o+u);return n>=s&&n<=f&&i>=c&&i<=d}return!1},JU={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Py=function(t){var r=F1(F1({},JU),t),n=L.useRef(),i=L.useState(-1),a=HU(i,2),o=a[0],l=a[1];L.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&l(S)}catch{}},[]);var u=r.x,s=r.y,f=r.width,c=r.height,d=r.radius,p=r.className,h=r.animationEasing,v=r.animationDuration,x=r.animationBegin,m=r.isAnimationActive,y=r.isUpdateAnimationActive;if(u!==+u||s!==+s||f!==+f||c!==+c||f===0||c===0)return null;var g=te("recharts-rectangle",p);return y?E.createElement(wr,{canBegin:o>0,from:{width:f,height:c,x:u,y:s},to:{width:f,height:c,x:u,y:s},duration:v,animationEasing:h,isActive:y},function(S){var b=S.width,w=S.height,O=S.x,P=S.y;return E.createElement(wr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:v,isActive:m,easing:h},E.createElement("path",Ms({},Y(r,!0),{className:g,d:U1(O,P,b,w,d),ref:n})))}):E.createElement("path",Ms({},Y(r,!0),{className:g,d:U1(u,s,f,c,d)}))},eW=["points","className","baseLinePoints","connectNulls"];function Ti(){return Ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function W1(e){return oW(e)||aW(e)||iW(e)||nW()}function nW(){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 iW(e,t){if(e){if(typeof e=="string")return oh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oh(e,t)}}function aW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oW(e){if(Array.isArray(e))return oh(e)}function oh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){H1(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),H1(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},wo=function(t,r){var n=lW(t);r&&(n=[n.reduce(function(a,o){return[].concat(W1(a),W1(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,l,u){return"".concat(o).concat(u===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},uW=function(t,r,n){var i=wo(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(wo(r.reverse(),n).slice(1))},sW=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=tW(t,eW);if(!r||!r.length)return null;var l=te("recharts-polygon",n);if(i&&i.length){var u=o.stroke&&o.stroke!=="none",s=uW(r,i,a);return E.createElement("g",{className:l},E.createElement("path",Ti({},Y(o,!0),{fill:s.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:s})),u?E.createElement("path",Ti({},Y(o,!0),{fill:"none",d:wo(r,a)})):null,u?E.createElement("path",Ti({},Y(o,!0),{fill:"none",d:wo(i,a)})):null)}var f=wo(r,a);return E.createElement("path",Ti({},Y(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:l,d:f}))};function lh(){return lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var mW=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},gW=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,l=o===void 0?0:o,u=t.left,s=u===void 0?0:u,f=t.width,c=f===void 0?0:f,d=t.height,p=d===void 0?0:d,h=t.className,v=vW(t,cW),x=fW({x:n,y:a,top:l,left:s,width:c,height:p},v);return!H(n)||!H(a)||!H(c)||!H(p)||!H(l)||!H(s)?null:E.createElement("path",uh({},Y(x,!0),{className:te("recharts-cross",h),d:mW(n,a,c,p,l,s)}))},bW=Hc,xW=s_,wW=xn;function SW(e,t){return e&&e.length?bW(e,wW(t),xW):void 0}var OW=SW;const _W=he(OW);var PW=Hc,AW=xn,EW=c_;function jW(e,t){return e&&e.length?PW(e,AW(t),EW):void 0}var $W=jW;const TW=he($W);var kW=["cx","cy","angle","ticks","axisLine"],CW=["ticks","tick","angle","tickFormatter","stroke"];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 So(){return So=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function NW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function MW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G1(e,t){for(var r=0;rQ1?o=i==="outer"?"start":"end":a<-Q1?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,l=n.axisLine,u=n.axisLineType,s=jn(jn({},Y(this.props,!1)),{},{fill:"none"},Y(l,!1));if(u==="circle")return E.createElement(Xc,Mn({className:"recharts-polar-angle-axis-line"},s,{cx:i,cy:a,r:o}));var f=this.props.ticks,c=f.map(function(d){return be(i,a,o,d.coordinate)});return E.createElement(sW,Mn({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,l=i.tickLine,u=i.tickFormatter,s=i.stroke,f=Y(this.props,!1),c=Y(o,!1),d=jn(jn({},f),{},{fill:"none"},Y(l,!1)),p=a.map(function(h,v){var x=n.getTickLineCoord(h),m=n.getTickTextAnchor(h),y=jn(jn(jn({textAnchor:m},f),{},{stroke:"none",fill:s},c),{},{index:v,payload:h,x:x.x2,y:x.y2});return E.createElement(ue,Mn({className:te("recharts-polar-angle-axis-tick",L_(o)),key:"tick-".concat(h.coordinate)},Jn(n.props,h,v)),l&&E.createElement("line",Mn({className:"recharts-polar-angle-axis-tick-line"},d,x)),o&&t.renderTickItem(o,y,u?u(h.value,v):h.value))});return E.createElement(ue,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:E.createElement(ue,{className:te("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return E.isValidElement(n)?o=E.cloneElement(n,i):Z(n)?o=n(i):o=E.createElement(ei,Mn({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(L.PureComponent);Zc(Jc,"displayName","PolarAngleAxis");Zc(Jc,"axisType","angleAxis");Zc(Jc,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var XW=oO,YW=XW(Object.getPrototypeOf,Object),QW=YW,ZW=Hr,JW=QW,eH=Kr,tH="[object Object]",rH=Function.prototype,nH=Object.prototype,tP=rH.toString,iH=nH.hasOwnProperty,aH=tP.call(Object);function oH(e){if(!eH(e)||ZW(e)!=tH)return!1;var t=JW(e);if(t===null)return!0;var r=iH.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&tP.call(r)==aH}var lH=oH;const uH=he(lH);var sH=Hr,cH=Kr,fH="[object Boolean]";function dH(e){return e===!0||e===!1||cH(e)&&sH(e)==fH}var pH=dH;const hH=he(pH);function pl(e){"@babel/helpers - typeof";return pl=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},pl(e)}function Ls(){return Ls=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:d,x:u,y:s},to:{upperWidth:f,lowerWidth:c,height:d,x:u,y:s},duration:v,animationEasing:h,isActive:m},function(g){var S=g.upperWidth,b=g.lowerWidth,w=g.height,O=g.x,P=g.y;return E.createElement(wr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:v,easing:h},E.createElement("path",Ls({},Y(r,!0),{className:y,d:tb(O,P,S,b,w),ref:n})))}):E.createElement("g",null,E.createElement("path",Ls({},Y(r,!0),{className:y,d:tb(u,s,f,c,d)})))},PH=["option","shapeType","propTransformer","activeClassName","isActive"];function hl(e){"@babel/helpers - typeof";return hl=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},hl(e)}function AH(e,t){if(e==null)return{};var r=EH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function rb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rs(e){for(var t=1;t0?Ct(g,"paddingAngle",0):0;if(b){var O=jt(b.endAngle-b.startAngle,g.endAngle-g.startAngle),P=ye(ye({},g),{},{startAngle:y+w,endAngle:y+O(v)+w});x.push(P),y=P.endAngle}else{var A=g.endAngle,$=g.startAngle,j=jt(0,A-$),T=j(v),N=ye(ye({},g),{},{startAngle:y+w,endAngle:y+T+w});x.push(N),y=N.endAngle}}),E.createElement(ue,null,n.renderSectorsStatically(x))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Nl(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,l=i.className,u=i.label,s=i.cx,f=i.cy,c=i.innerRadius,d=i.outerRadius,p=i.isAnimationActive,h=this.state.isAnimationFinished;if(a||!o||!o.length||!H(s)||!H(f)||!H(c)||!H(d))return null;var v=te("recharts-pie",l);return E.createElement(ue,{tabIndex:this.props.rootTabIndex,className:v,ref:function(m){n.pieRef=m}},this.renderSectors(),u&&this.renderLabels(o),Xe.renderCallByParent(this.props,null,!1),(!p||h)&&Ir.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n=360?y:y-1)*u,S=x-y*p-g,b=i.reduce(function(P,A){var $=We(A,m,0);return P+(H($)?$:0)},0),w;if(b>0){var O;w=i.map(function(P,A){var $=We(P,m,0),j=We(P,f,A),T=(H($)?$:0)/b,N;A?N=O.endAngle+ut(v)*u*($!==0?1:0):N=o;var D=N+ut(v)*(($!==0?p:0)+T*S),M=(N+D)/2,R=(h.innerRadius+h.outerRadius)/2,B=[{name:j,value:$,payload:P,dataKey:m,type:d}],k=be(h.cx,h.cy,R,M);return O=ye(ye(ye({percent:T,cornerRadius:a,name:j,tooltipPayload:B,midAngle:M,middleRadius:R,tooltipPosition:k},P),h),{},{value:We(P,m),startAngle:N,endAngle:D,payload:P,paddingAngle:ut(v)*u}),O})}return ye(ye({},h),{},{sectors:w,data:i})});var GH=Math.ceil,XH=Math.max;function YH(e,t,r,n){for(var i=-1,a=XH(GH((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var QH=YH,ZH=_O,ob=1/0,JH=17976931348623157e292;function eK(e){if(!e)return e===0?e:0;if(e=ZH(e),e===ob||e===-ob){var t=e<0?-1:1;return t*JH}return e===e?e:0}var tK=eK,rK=QH,nK=Lc,od=tK;function iK(e){return function(t,r,n){return n&&typeof n!="number"&&nK(t,r,n)&&(r=n=void 0),t=od(t),r===void 0?(r=t,t=0):r=od(r),n=n===void 0?t0&&n.handleDrag(i.changedTouches[0])}),_t(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,l=i.startIndex;o==null||o({endIndex:a,startIndex:l})}),n.detachDragEndListener()}),_t(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),_t(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),_t(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),_t(n,"handleSlideDragStart",function(i){var a=fb(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return gK(t,e),hK(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,l=this.props,u=l.gap,s=l.data,f=s.length-1,c=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,c),h=t.getIndexInRange(o,d);return{startIndex:p-p%u,endIndex:h===f?f:h-h%u}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,l=i.dataKey,u=We(a[n],l,n);return Z(o)?o(u,n):u}},{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(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,l=i.endX,u=this.props,s=u.x,f=u.width,c=u.travellerWidth,d=u.startIndex,p=u.endIndex,h=u.onChange,v=n.pageX-a;v>0?v=Math.min(v,s+f-c-l,s+f-c-o):v<0&&(v=Math.max(v,s-o,s-l));var x=this.getIndex({startX:o+v,endX:l+v});(x.startIndex!==d||x.endIndex!==p)&&h&&h(x),this.setState({startX:o+v,endX:l+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=fb(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,l=i.endX,u=i.startX,s=this.state[o],f=this.props,c=f.x,d=f.width,p=f.travellerWidth,h=f.onChange,v=f.gap,x=f.data,m={startX:this.state.startX,endX:this.state.endX},y=n.pageX-a;y>0?y=Math.min(y,c+d-p-s):y<0&&(y=Math.max(y,c-s)),m[o]=s+y;var g=this.getIndex(m),S=g.startIndex,b=g.endIndex,w=function(){var P=x.length-1;return o==="startX"&&(l>u?S%v===0:b%v===0)||lu?b%v===0:S%v===0)||l>u&&b===P};this.setState(_t(_t({},o,s+y),"brushMoveStartX",n.pageX),function(){h&&w()&&h(g)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,l=o.scaleValues,u=o.startX,s=o.endX,f=this.state[i],c=l.indexOf(f);if(c!==-1){var d=c+n;if(!(d===-1||d>=l.length)){var p=l[d];i==="startX"&&p>=s||i==="endX"&&p<=u||this.setState(_t({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,l=n.height,u=n.fill,s=n.stroke;return E.createElement("rect",{stroke:s,fill:u,x:i,y:a,width:o,height:l})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,l=n.height,u=n.data,s=n.children,f=n.padding,c=L.Children.only(s);return c?E.cloneElement(c,{x:i,y:a,width:o,height:l,margin:f,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,l=this,u=this.props,s=u.y,f=u.travellerWidth,c=u.height,d=u.traveller,p=u.ariaLabel,h=u.data,v=u.startIndex,x=u.endIndex,m=Math.max(n,this.props.x),y=ld(ld({},Y(this.props,!1)),{},{x:m,y:s,width:f,height:c}),g=p||"Min value: ".concat((a=h[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=h[x])===null||o===void 0?void 0:o.name);return E.createElement(ue,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(b){["ArrowLeft","ArrowRight"].includes(b.key)&&(b.preventDefault(),b.stopPropagation(),l.handleTravellerMoveKeyboard(b.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,y))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,l=a.height,u=a.stroke,s=a.travellerWidth,f=Math.min(n,i)+s,c=Math.max(Math.abs(i-n)-s,0);return E.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:f,y:o,width:c,height:l})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,l=n.height,u=n.travellerWidth,s=n.stroke,f=this.state,c=f.startX,d=f.endX,p=5,h={pointerEvents:"none",fill:s};return E.createElement(ue,{className:"recharts-brush-texts"},E.createElement(ei,Fs({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-p,y:o+l/2},h),this.getTextOfTick(i)),E.createElement(ei,Fs({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+u+p,y:o+l/2},h),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,l=n.x,u=n.y,s=n.width,f=n.height,c=n.alwaysShowText,d=this.state,p=d.startX,h=d.endX,v=d.isTextActive,x=d.isSlideMoving,m=d.isTravellerMoving,y=d.isTravellerFocused;if(!i||!i.length||!H(l)||!H(u)||!H(s)||!H(f)||s<=0||f<=0)return null;var g=te("recharts-brush",a),S=E.Children.count(o)===1,b=dK("userSelect","none");return E.createElement(ue,{className:g,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,h),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(h,"endX"),(v||x||m||y||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,l=n.height,u=n.stroke,s=Math.floor(a+l/2)-1;return E.createElement(E.Fragment,null,E.createElement("rect",{x:i,y:a,width:o,height:l,fill:u,stroke:"none"}),E.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),E.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return E.isValidElement(n)?a=E.cloneElement(n,i):Z(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,l=n.x,u=n.travellerWidth,s=n.updateId,f=n.startIndex,c=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return ld({prevData:a,prevTravellerWidth:u,prevUpdateId:s,prevX:l,prevWidth:o},a&&a.length?xK({data:a,width:o,x:l,travellerWidth:u,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||l!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([l,l+o-u]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:u,prevUpdateId:s,prevX:l,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,l=a-1;l-o>1;){var u=Math.floor((o+l)/2);n[u]>i?l=u:o=u}return i>=n[l]?l:o}}])}(L.PureComponent);_t(fa,"displayName","Brush");_t(fa,"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 wK=Qv;function SK(e,t){var r;return wK(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var OK=SK,_K=ZS,PK=xn,AK=OK,EK=St,jK=Lc;function $K(e,t,r){var n=EK(e)?_K:AK;return r&&jK(e,t,r)&&(t=void 0),n(e,PK(t))}var TK=$K;const kK=he(TK);var gr=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},db=bO;function CK(e,t,r){t=="__proto__"&&db?db(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var NK=CK,MK=NK,IK=mO,DK=xn;function LK(e,t){var r={};return t=DK(t),IK(e,function(n,i,a){MK(r,i,t(n,i,a))}),r}var RK=LK;const BK=he(RK);function zK(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function aV(e,t){var r=e.x,n=e.y,i=nV(e,JK),a="".concat(r),o=parseInt(a,10),l="".concat(n),u=parseInt(l,10),s="".concat(t.height||i.height),f=parseInt(s,10),c="".concat(t.width||i.width),d=parseInt(c,10);return to(to(to(to(to({},t),i),o?{x:o}:{}),u?{y:u}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function hb(e){return E.createElement(rP,ph({shapeType:"rectangle",propTransformer:aV,activeClassName:"recharts-active-bar"},e))}var oV=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=H(n)||jk(n);return a?t(n,i):(a||ri(),r)}},lV=["value","background"],uP;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 uV(e,t){if(e==null)return{};var r=sV(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ws(){return Ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&Math.abs(M)0&&Math.abs(D)0&&(N=Math.min((ae||0)-(D[_e-1]||0),N))}),Number.isFinite(N)){var M=N/T,R=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(O=M*R/2),v.padding==="no-gap"){var B=st(t.barCategoryGap,M*R),k=M*R/2;O=k-B-(k-B)/R*B}}}i==="xAxis"?P=[n.left+(g.left||0)+(O||0),n.left+n.width-(g.right||0)-(O||0)]:i==="yAxis"?P=u==="horizontal"?[n.top+n.height-(g.bottom||0),n.top+(g.top||0)]:[n.top+(g.top||0)+(O||0),n.top+n.height-(g.bottom||0)-(O||0)]:P=v.range,b&&(P=[P[1],P[0]]);var I=T_(v,a,d),F=I.scale,K=I.realScaleType;F.domain(m).range(P),k_(F);var W=C_(F,rr(rr({},v),{},{realScaleType:K}));i==="xAxis"?(j=x==="top"&&!S||x==="bottom"&&S,A=n.left,$=c[w]-j*v.height):i==="yAxis"&&(j=x==="left"&&!S||x==="right"&&S,A=c[w]-j*v.width,$=n.top);var X=rr(rr(rr({},v),W),{},{realScaleType:K,x:A,y:$,scale:F,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return X.bandSize=Es(X,W),!v.hide&&i==="xAxis"?c[w]+=(j?-1:1)*X.height:v.hide||(c[w]+=(j?-1:1)*X.width),rr(rr({},p),{},rf({},h,X))},{})},pP=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},xV=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return pP({x:r,y:n},{x:i,y:a})},hP=function(){function e(t){mV(this,e),this.scale=t}return gV(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(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(r)+l}default:return this.scale(r)}if(i){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+u}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();rf(hP,"EPS",1e-4);var Ay=function(t){var r=Object.keys(t).reduce(function(n,i){return rr(rr({},n),{},rf({},i,hP.create(t[i])))},{});return rr(rr({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,l=a.position;return BK(i,function(u,s){return r[s].apply(u,{bandAware:o,position:l})})},isInRange:function(i){return ZK(i,function(a,o){return r[o].isInRange(a)})}})};function wV(e){return(e%180+180)%180}var SV=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=wV(i),o=a*Math.PI/180,l=Math.atan(n/r),u=o>l&&oe.length)&&(t=e.length);for(var r=0,n=new Array(t);re*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function sq(e,t){return kP(e,t+1)}function cq(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,l=t.end,u=0,s=1,f=o,c=function(){var h=n==null?void 0:n[u];if(h===void 0)return{v:kP(n,s)};var v=u,x,m=function(){return x===void 0&&(x=r(h,v)),x},y=h.coordinate,g=u===0||Gs(e,y,m,f,l);g||(u=0,f=o,s+=1),g&&(f=y+e*(m()/2+i),u+=s)},d;s<=a.length;)if(d=c(),d)return d.v;return[]}function bl(e){"@babel/helpers - typeof";return bl=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},bl(e)}function Eb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function it(e){for(var t=1;t0?p.coordinate-x*e:p.coordinate})}else a[d]=p=it(it({},p),{},{tickCoord:p.coordinate});var m=Gs(e,p.tickCoord,v,l,u);m&&(u=p.tickCoord-e*(v()/2+i),a[d]=it(it({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function vq(e,t,r,n,i,a){var o=(n||[]).slice(),l=o.length,u=t.start,s=t.end;if(a){var f=n[l-1],c=r(f,l-1),d=e*(f.coordinate+e*c/2-s);o[l-1]=f=it(it({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var p=Gs(e,f.tickCoord,function(){return c},u,s);p&&(s=f.tickCoord-e*(c/2+i),o[l-1]=it(it({},f),{},{isShow:!0}))}for(var h=a?l-1:l,v=function(y){var g=o[y],S,b=function(){return S===void 0&&(S=r(g,y)),S};if(y===0){var w=e*(g.coordinate-e*b()/2-u);o[y]=g=it(it({},g),{},{tickCoord:w<0?g.coordinate-w*e:g.coordinate})}else o[y]=g=it(it({},g),{},{tickCoord:g.coordinate});var O=Gs(e,g.tickCoord,b,u,s);O&&(u=g.tickCoord+e*(b()/2+i),o[y]=it(it({},g),{},{isShow:!0}))},x=0;x=2?ut(i[1].coordinate-i[0].coordinate):1,m=uq(a,x,p);return u==="equidistantPreserveStart"?cq(x,m,v,i,o):(u==="preserveStart"||u==="preserveStartEnd"?d=vq(x,m,v,i,o,u==="preserveStartEnd"):d=hq(x,m,v,i,o),d.filter(function(y){return y.isShow}))}var mq=["viewBox"],gq=["viewBox"],bq=["ticks"];function ya(e){"@babel/helpers - typeof";return ya=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},ya(e)}function Ci(){return Ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function wq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $b(e,t){for(var r=0;r0?u(this.props):u(p)),o<=0||l<=0||!h||!h.length?null:E.createElement(ue,{className:te("recharts-cartesian-axis",s),ref:function(x){n.layerReference=x}},a&&this.renderAxisLine(),this.renderTicks(h,this.state.fontSize,this.state.letterSpacing),Xe.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,l=te(i.className,"recharts-cartesian-axis-tick-value");return E.isValidElement(n)?o=E.cloneElement(n,ze(ze({},i),{},{className:l})):Z(n)?o=n(ze(ze({},i),{},{className:l})):o=E.createElement(ei,Ci({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(L.Component);$y(uf,"displayName","CartesianAxis");$y(uf,"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 jq=["type","layout","connectNulls","ref"],$q=["key"];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 Tb(e,t){if(e==null)return{};var r=Tq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Tq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Oo(){return Oo=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);rc){p=[].concat(vi(u.slice(0,h)),[c-v]);break}var x=p.length%2===0?[0,d]:[d];return[].concat(vi(t.repeat(u,f)),vi(p),x).map(function(m){return"".concat(m,"px")}).join(", ")}),nr(r,"id",ka("recharts-line-")),nr(r,"pathRef",function(o){r.mainCurve=o}),nr(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),nr(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return zq(t,e),Dq(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,l=a.xAxis,u=a.yAxis,s=a.layout,f=a.children,c=Nt(f,Ml);if(!c)return null;var d=function(v,x){return{x:v.x,y:v.y,value:v.value,errorVal:We(v.payload,x)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return E.createElement(ue,p,c.map(function(h){return E.cloneElement(h,{key:"bar-".concat(h.props.dataKey),data:o,xAxis:l,yAxis:u,layout:s,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var l=this.props,u=l.dot,s=l.points,f=l.dataKey,c=Y(this.props,!1),d=Y(u,!0),p=s.map(function(v,x){var m=Ot(Ot(Ot({key:"dot-".concat(x),r:3},c),d),{},{index:x,cx:v.x,cy:v.y,value:v.value,dataKey:f,payload:v.payload,points:s});return t.renderDotItem(u,m)}),h={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return E.createElement(ue,Oo({className:"recharts-line-dots",key:"dots"},h),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var l=this.props,u=l.type,s=l.layout,f=l.connectNulls;l.ref;var c=Tb(l,jq),d=Ot(Ot(Ot({},Y(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:u,layout:s,connectNulls:f});return E.createElement(Ts,Oo({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,l=o.points,u=o.strokeDasharray,s=o.isAnimationActive,f=o.animationBegin,c=o.animationDuration,d=o.animationEasing,p=o.animationId,h=o.animateNewValues,v=o.width,x=o.height,m=this.state,y=m.prevPoints,g=m.totalLength;return E.createElement(wr,{begin:f,duration:c,isActive:s,easing:d,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var b=S.t;if(y){var w=y.length/l.length,O=l.map(function(T,N){var D=Math.floor(N*w);if(y[D]){var M=y[D],R=jt(M.x,T.x),B=jt(M.y,T.y);return Ot(Ot({},T),{},{x:R(b),y:B(b)})}if(h){var k=jt(v*2,T.x),I=jt(x/2,T.y);return Ot(Ot({},T),{},{x:k(b),y:I(b)})}return Ot(Ot({},T),{},{x:T.x,y:T.y})});return a.renderCurveStatically(O,n,i)}var P=jt(0,g),A=P(b),$;if(u){var j="".concat(u).split(/[,\s]+/gim).map(function(T){return parseFloat(T)});$=a.getStrokeDasharray(A,g,j)}else $=a.generateSimpleStrokeDasharray(g,A);return a.renderCurveStatically(l,n,i,{strokeDasharray:$})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,l=a.isAnimationActive,u=this.state,s=u.prevPoints,f=u.totalLength;return l&&o&&o.length&&(!s&&f>0||!Nl(s,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,l=i.points,u=i.className,s=i.xAxis,f=i.yAxis,c=i.top,d=i.left,p=i.width,h=i.height,v=i.isAnimationActive,x=i.id;if(a||!l||!l.length)return null;var m=this.state.isAnimationFinished,y=l.length===1,g=te("recharts-line",u),S=s&&s.allowDataOverflow,b=f&&f.allowDataOverflow,w=S||b,O=J(x)?this.id:x,P=(n=Y(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},A=P.r,$=A===void 0?3:A,j=P.strokeWidth,T=j===void 0?2:j,N=zk(o)?o:{},D=N.clipDot,M=D===void 0?!0:D,R=$*2+T;return E.createElement(ue,{className:g},S||b?E.createElement("defs",null,E.createElement("clipPath",{id:"clipPath-".concat(O)},E.createElement("rect",{x:S?d:d-p/2,y:b?c:c-h/2,width:S?p:p*2,height:b?h:h*2})),!M&&E.createElement("clipPath",{id:"clipPath-dots-".concat(O)},E.createElement("rect",{x:d-R/2,y:c-R/2,width:p+R,height:h+R}))):null,!y&&this.renderCurve(w,O),this.renderErrorBar(w,O),(y||o)&&this.renderDots(w,M,O),(!v||m)&&Ir.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(vi(n),[0]):n,o=[],l=0;le.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $G(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function TG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kG(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?o:t&&t.length&&H(i)&&H(a)?t.slice(i,a+1):[]};function XP(e){return e==="number"?[0,"auto"]:void 0}var Ch=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,l=sf(r,t);return n<0||!a||!a.length||n>=l.length?null:a.reduce(function(u,s){var f,c=(f=s.props.data)!==null&&f!==void 0?f:r;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=c===void 0?l:c;d=Ju(p,o.dataKey,i)}else d=c&&c[n]||l[n];return d?[].concat(Sa(u),[M_(s,d)]):u},[])},Rb=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=WG(a,n),l=t.orderedTooltipTicks,u=t.tooltipAxis,s=t.tooltipTicks,f=UF(o,l,s,u);if(f>=0&&s){var c=s[f]&&s[f].value,d=Ch(t,r,f,c),p=HG(n,l,f,a);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:p}}return null},KG=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,l=r.stackGroups,u=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,c=t.children,d=t.stackOffset,p=$_(f,a);return n.reduce(function(h,v){var x,m=v.type.defaultProps!==void 0?C(C({},v.type.defaultProps),v.props):v.props,y=m.type,g=m.dataKey,S=m.allowDataOverflow,b=m.allowDuplicatedCategory,w=m.scale,O=m.ticks,P=m.includeHidden,A=m[o];if(h[A])return h;var $=sf(t.data,{graphicalItems:i.filter(function(W){var X,ae=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o];return ae===A}),dataStartIndex:u,dataEndIndex:s}),j=$.length,T,N,D;mG(m.domain,S,y)&&(T=Vp(m.domain,null,S),p&&(y==="number"||w!=="auto")&&(D=bo($,g,"category")));var M=XP(y);if(!T||T.length===0){var R,B=(R=m.domain)!==null&&R!==void 0?R:M;if(g){if(T=bo($,g,y),y==="category"&&p){var k=Tk(T);b&&k?(N=T,T=zs(0,j)):b||(T=u1(B,T,v).reduce(function(W,X){return W.indexOf(X)>=0?W:[].concat(Sa(W),[X])},[]))}else if(y==="category")b?T=T.filter(function(W){return W!==""&&!J(W)}):T=u1(B,T,v).reduce(function(W,X){return W.indexOf(X)>=0||X===""||J(X)?W:[].concat(Sa(W),[X])},[]);else if(y==="number"){var I=qF($,i.filter(function(W){var X,ae,_e=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o],Ne="hide"in W.props?W.props.hide:(ae=W.type.defaultProps)===null||ae===void 0?void 0:ae.hide;return _e===A&&(P||!Ne)}),g,a,f);I&&(T=I)}p&&(y==="number"||w!=="auto")&&(D=bo($,g,"category"))}else p?T=zs(0,j):l&&l[A]&&l[A].hasStack&&y==="number"?T=d==="expand"?[0,1]:N_(l[A].stackGroups,u,s):T=j_($,i.filter(function(W){var X=o in W.props?W.props[o]:W.type.defaultProps[o],ae="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return X===A&&(P||!ae)}),y,f,!0);if(y==="number")T=$h(c,T,A,a,O),B&&(T=Vp(B,T,S));else if(y==="category"&&B){var F=B,K=T.every(function(W){return F.indexOf(W)>=0});K&&(T=F)}}return C(C({},h),{},Q({},A,C(C({},m),{},{axisType:a,domain:T,categoricalDomain:D,duplicateDomain:N,originalDomain:(x=m.domain)!==null&&x!==void 0?x:M,isCategorical:p,layout:f})))},{})},VG=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,l=r.stackGroups,u=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,c=t.children,d=sf(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:s}),p=d.length,h=$_(f,a),v=-1;return n.reduce(function(x,m){var y=m.type.defaultProps!==void 0?C(C({},m.type.defaultProps),m.props):m.props,g=y[o],S=XP("number");if(!x[g]){v++;var b;return h?b=zs(0,p):l&&l[g]&&l[g].hasStack?(b=N_(l[g].stackGroups,u,s),b=$h(c,b,g,a)):(b=Vp(S,j_(d,n.filter(function(w){var O,P,A=o in w.props?w.props[o]:(O=w.type.defaultProps)===null||O===void 0?void 0:O[o],$="hide"in w.props?w.props.hide:(P=w.type.defaultProps)===null||P===void 0?void 0:P.hide;return A===g&&!$}),"number",f),i.defaultProps.allowDataOverflow),b=$h(c,b,g,a)),C(C({},x),{},Q({},g,C(C({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ct(FG,"".concat(a,".").concat(v%2),null),domain:b,originalDomain:S,isCategorical:h,layout:f})))}return x},{})},qG=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,l=r.stackGroups,u=r.dataStartIndex,s=r.dataEndIndex,f=t.children,c="".concat(i,"Id"),d=Nt(f,a),p={};return d&&d.length?p=KG(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:l,dataStartIndex:u,dataEndIndex:s}):o&&o.length&&(p=VG(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:l,dataStartIndex:u,dataEndIndex:s})),p},GG=function(t){var r=yi(t),n=Fn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Zv(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Es(r,n)}},Bb=function(t){var r=t.children,n=t.defaultShowTooltip,i=At(r,fa),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:!!n}},XG=function(t){return!t||!t.length?!1:t.some(function(r){var n=Cr(r&&r.type);return n&&n.indexOf("Bar")>=0})},zb=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"}},YG=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,l=t.yAxisMap,u=l===void 0?{}:l,s=n.width,f=n.height,c=n.children,d=n.margin||{},p=At(c,fa),h=At(c,Fi),v=Object.keys(u).reduce(function(b,w){var O=u[w],P=O.orientation;return!O.mirror&&!O.hide?C(C({},b),{},Q({},P,b[P]+O.width)):b},{left:d.left||0,right:d.right||0}),x=Object.keys(o).reduce(function(b,w){var O=o[w],P=O.orientation;return!O.mirror&&!O.hide?C(C({},b),{},Q({},P,Ct(b,"".concat(P))+O.height)):b},{top:d.top||0,bottom:d.bottom||0}),m=C(C({},x),v),y=m.bottom;p&&(m.bottom+=p.props.height||fa.defaultProps.height),h&&r&&(m=KF(m,i,n,r));var g=s-m.left-m.right,S=f-m.top-m.bottom;return C(C({brushBottom:y},m),{},{width:Math.max(g,0),height:Math.max(S,0)})},QG=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Ty=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,u=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,d=function(m,y){var g=y.graphicalItems,S=y.stackGroups,b=y.offset,w=y.updateId,O=y.dataStartIndex,P=y.dataEndIndex,A=m.barSize,$=m.layout,j=m.barGap,T=m.barCategoryGap,N=m.maxBarSize,D=zb($),M=D.numericAxisName,R=D.cateAxisName,B=XG(g),k=[];return g.forEach(function(I,F){var K=sf(m.data,{graphicalItems:[I],dataStartIndex:O,dataEndIndex:P}),W=I.type.defaultProps!==void 0?C(C({},I.type.defaultProps),I.props):I.props,X=W.dataKey,ae=W.maxBarSize,_e=W["".concat(M,"Id")],Ne=W["".concat(R,"Id")],Lt={},ht=u.reduce(function(_n,Pn){var cf=y["".concat(Pn.axisType,"Map")],ky=W["".concat(Pn.axisType,"Id")];cf&&cf[ky]||Pn.axisType==="zAxis"||ri();var Cy=cf[ky];return C(C({},_n),{},Q(Q({},Pn.axisType,Cy),"".concat(Pn.axisType,"Ticks"),Fn(Cy)))},Lt),V=ht[R],ee=ht["".concat(R,"Ticks")],re=S&&S[_e]&&S[_e].hasStack&&r7(I,S[_e].stackGroups),z=Cr(I.type).indexOf("Bar")>=0,Te=Es(V,ee),oe=[],Re=B&&WF({barSize:A,stackGroups:S,totalSize:QG(ht,R)});if(z){var Be,vt,Gr=J(ae)?N:ae,fi=(Be=(vt=Es(V,ee,!0))!==null&&vt!==void 0?vt:Gr)!==null&&Be!==void 0?Be:0;oe=HF({barGap:j,barCategoryGap:T,bandSize:fi!==Te?fi:Te,sizeList:Re[Ne],maxBarSize:Gr}),fi!==Te&&(oe=oe.map(function(_n){return C(C({},_n),{},{position:C(C({},_n.position),{},{offset:_n.position.offset-fi/2})})}))}var Il=I&&I.type&&I.type.getComposedData;Il&&k.push({props:C(C({},Il(C(C({},ht),{},{displayedData:K,props:m,dataKey:X,item:I,bandSize:Te,barPosition:oe,offset:b,stackedData:re,layout:$,dataStartIndex:O,dataEndIndex:P}))),{},Q(Q(Q({key:I.key||"item-".concat(F)},M,ht[M]),R,ht[R]),"animationId",w)),childIndex:Wk(I,m.children),item:I})}),k},p=function(m,y){var g=m.props,S=m.dataStartIndex,b=m.dataEndIndex,w=m.updateId;if(!tg({props:g}))return null;var O=g.children,P=g.layout,A=g.stackOffset,$=g.data,j=g.reverseStackOrder,T=zb(P),N=T.numericAxisName,D=T.cateAxisName,M=Nt(O,n),R=e7($,M,"".concat(N,"Id"),"".concat(D,"Id"),A,j),B=u.reduce(function(W,X){var ae="".concat(X.axisType,"Map");return C(C({},W),{},Q({},ae,qG(g,C(C({},X),{},{graphicalItems:M,stackGroups:X.axisType===N&&R,dataStartIndex:S,dataEndIndex:b}))))},{}),k=YG(C(C({},B),{},{props:g,graphicalItems:M}),y==null?void 0:y.legendBBox);Object.keys(B).forEach(function(W){B[W]=f(g,B[W],k,W.replace("Map",""),r)});var I=B["".concat(D,"Map")],F=GG(I),K=d(g,C(C({},B),{},{dataStartIndex:S,dataEndIndex:b,updateId:w,graphicalItems:M,stackGroups:R,offset:k}));return C(C({formattedGraphicalItems:K,graphicalItems:M,offset:k,stackGroups:R},F),B)},h=function(x){function m(y){var g,S,b;return TG(this,m),b=NG(this,m,[y]),Q(b,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Q(b,"accessibilityManager",new yG),Q(b,"handleLegendBBoxUpdate",function(w){if(w){var O=b.state,P=O.dataStartIndex,A=O.dataEndIndex,$=O.updateId;b.setState(C({legendBBox:w},p({props:b.props,dataStartIndex:P,dataEndIndex:A,updateId:$},C(C({},b.state),{},{legendBBox:w}))))}}),Q(b,"handleReceiveSyncEvent",function(w,O,P){if(b.props.syncId===w){if(P===b.eventEmitterSymbol&&typeof b.props.syncMethod!="function")return;b.applySyncEvent(O)}}),Q(b,"handleBrushChange",function(w){var O=w.startIndex,P=w.endIndex;if(O!==b.state.dataStartIndex||P!==b.state.dataEndIndex){var A=b.state.updateId;b.setState(function(){return C({dataStartIndex:O,dataEndIndex:P},p({props:b.props,dataStartIndex:O,dataEndIndex:P,updateId:A},b.state))}),b.triggerSyncEvent({dataStartIndex:O,dataEndIndex:P})}}),Q(b,"handleMouseEnter",function(w){var O=b.getMouseInfo(w);if(O){var P=C(C({},O),{},{isTooltipActive:!0});b.setState(P),b.triggerSyncEvent(P);var A=b.props.onMouseEnter;Z(A)&&A(P,w)}}),Q(b,"triggeredAfterMouseMove",function(w){var O=b.getMouseInfo(w),P=O?C(C({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};b.setState(P),b.triggerSyncEvent(P);var A=b.props.onMouseMove;Z(A)&&A(P,w)}),Q(b,"handleItemMouseEnter",function(w){b.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),Q(b,"handleItemMouseLeave",function(){b.setState(function(){return{isTooltipActive:!1}})}),Q(b,"handleMouseMove",function(w){w.persist(),b.throttleTriggeredAfterMouseMove(w)}),Q(b,"handleMouseLeave",function(w){b.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};b.setState(O),b.triggerSyncEvent(O);var P=b.props.onMouseLeave;Z(P)&&P(O,w)}),Q(b,"handleOuterEvent",function(w){var O=Uk(w),P=Ct(b.props,"".concat(O));if(O&&Z(P)){var A,$;/.*touch.*/i.test(O)?$=b.getMouseInfo(w.changedTouches[0]):$=b.getMouseInfo(w),P((A=$)!==null&&A!==void 0?A:{},w)}}),Q(b,"handleClick",function(w){var O=b.getMouseInfo(w);if(O){var P=C(C({},O),{},{isTooltipActive:!0});b.setState(P),b.triggerSyncEvent(P);var A=b.props.onClick;Z(A)&&A(P,w)}}),Q(b,"handleMouseDown",function(w){var O=b.props.onMouseDown;if(Z(O)){var P=b.getMouseInfo(w);O(P,w)}}),Q(b,"handleMouseUp",function(w){var O=b.props.onMouseUp;if(Z(O)){var P=b.getMouseInfo(w);O(P,w)}}),Q(b,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),Q(b,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.handleMouseDown(w.changedTouches[0])}),Q(b,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.handleMouseUp(w.changedTouches[0])}),Q(b,"handleDoubleClick",function(w){var O=b.props.onDoubleClick;if(Z(O)){var P=b.getMouseInfo(w);O(P,w)}}),Q(b,"handleContextMenu",function(w){var O=b.props.onContextMenu;if(Z(O)){var P=b.getMouseInfo(w);O(P,w)}}),Q(b,"triggerSyncEvent",function(w){b.props.syncId!==void 0&&sd.emit(cd,b.props.syncId,w,b.eventEmitterSymbol)}),Q(b,"applySyncEvent",function(w){var O=b.props,P=O.layout,A=O.syncMethod,$=b.state.updateId,j=w.dataStartIndex,T=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)b.setState(C({dataStartIndex:j,dataEndIndex:T},p({props:b.props,dataStartIndex:j,dataEndIndex:T,updateId:$},b.state)));else if(w.activeTooltipIndex!==void 0){var N=w.chartX,D=w.chartY,M=w.activeTooltipIndex,R=b.state,B=R.offset,k=R.tooltipTicks;if(!B)return;if(typeof A=="function")M=A(k,w);else if(A==="value"){M=-1;for(var I=0;I=0){var re,z;if(N.dataKey&&!N.allowDuplicatedCategory){var Te=typeof N.dataKey=="function"?ee:"payload.".concat(N.dataKey.toString());re=Ju(I,Te,M),z=F&&K&&Ju(K,Te,M)}else re=I==null?void 0:I[D],z=F&&K&&K[D];if(Ne||_e){var oe=w.props.activeIndex!==void 0?w.props.activeIndex:D;return[L.cloneElement(w,C(C(C({},A.props),ht),{},{activeIndex:oe})),null,null]}if(!J(re))return[V].concat(Sa(b.renderActivePoints({item:A,activePoint:re,basePoint:z,childIndex:D,isRange:F})))}else{var Re,Be=(Re=b.getItemByXY(b.state.activeCoordinate))!==null&&Re!==void 0?Re:{graphicalItem:V},vt=Be.graphicalItem,Gr=vt.item,fi=Gr===void 0?w:Gr,Il=vt.childIndex,_n=C(C(C({},A.props),ht),{},{activeIndex:Il});return[L.cloneElement(fi,_n),null,null]}return F?[V,null,null]:[V,null]}),Q(b,"renderCustomized",function(w,O,P){return L.cloneElement(w,C(C({key:"recharts-customized-".concat(P)},b.props),b.state))}),Q(b,"renderMap",{CartesianGrid:{handler:pu,once:!0},ReferenceArea:{handler:b.renderReferenceElement},ReferenceLine:{handler:pu},ReferenceDot:{handler:b.renderReferenceElement},XAxis:{handler:pu},YAxis:{handler:pu},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((g=y.id)!==null&&g!==void 0?g:ka("recharts"),"-clip"),b.throttleTriggeredAfterMouseMove=PO(b.triggeredAfterMouseMove,(S=y.throttleDelay)!==null&&S!==void 0?S:1e3/60),b.state={},b}return DG(m,x),CG(m,[{key:"componentDidMount",value:function(){var g,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var g=this.props,S=g.children,b=g.data,w=g.height,O=g.layout,P=At(S,Et);if(P){var A=P.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var $=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,j=Ch(this.state,b,A,$),T=this.state.tooltipTicks[A].coordinate,N=(this.state.offset.top+w)/2,D=O==="horizontal",M=D?{x:T,y:N}:{y:T,x:N},R=this.state.formattedGraphicalItems.find(function(k){var I=k.item;return I.type.name==="Scatter"});R&&(M=C(C({},M),R.props.points[A].tooltipPosition),j=R.props.points[A].tooltipPayload);var B={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:$,activePayload:j,activeCoordinate:M};this.setState(B),this.renderCursor(P),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(g,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==g.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==g.margin){var b,w;this.accessibilityManager.setDetails({offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(g){lp([At(g.children,Et)],[At(this.props.children,Et)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var g=At(this.props.children,Et);if(g&&typeof g.props.shared=="boolean"){var S=g.props.shared?"axis":"item";return l.indexOf(S)>=0?S:a}return a}},{key:"getMouseInfo",value:function(g){if(!this.container)return null;var S=this.container,b=S.getBoundingClientRect(),w=y6(b),O={chartX:Math.round(g.pageX-w.left),chartY:Math.round(g.pageY-w.top)},P=b.width/S.offsetWidth||1,A=this.inRange(O.chartX,O.chartY,P);if(!A)return null;var $=this.state,j=$.xAxisMap,T=$.yAxisMap,N=this.getTooltipEventType(),D=Rb(this.state,this.props.data,this.props.layout,A);if(N!=="axis"&&j&&T){var M=yi(j).scale,R=yi(T).scale,B=M&&M.invert?M.invert(O.chartX):null,k=R&&R.invert?R.invert(O.chartY):null;return C(C({},O),{},{xValue:B,yValue:k},D)}return D?C(C({},O),D):null}},{key:"inRange",value:function(g,S){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,O=g/b,P=S/b;if(w==="horizontal"||w==="vertical"){var A=this.state.offset,$=O>=A.left&&O<=A.left+A.width&&P>=A.top&&P<=A.top+A.height;return $?{x:O,y:P}:null}var j=this.state,T=j.angleAxisMap,N=j.radiusAxisMap;if(T&&N){var D=yi(T);return f1({x:O,y:P},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var g=this.props.children,S=this.getTooltipEventType(),b=At(g,Et),w={};b&&S==="axis"&&(b.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var O=es(this.props,this.handleOuterEvent);return C(C({},O),w)}},{key:"addListener",value:function(){sd.on(cd,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){sd.removeListener(cd,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(g,S,b){for(var w=this.state.formattedGraphicalItems,O=0,P=w.length;O{const[e,t]=L.useState(null),r=[{name:"Development",completed:45,inProgress:25,pending:15,total:85},{name:"Design",completed:30,inProgress:20,pending:10,total:60},{name:"Testing",completed:20,inProgress:15,pending:5,total:40},{name:"Review",completed:35,inProgress:10,pending:8,total:53}],n=[{label:"Active Members",value:12,icon:cS,color:"text-blue-600"},{label:"Capacity Used",value:"73%",icon:PE,color:"text-green-600"},{label:"Weekly Goal",value:"85%",icon:uS,color:"text-purple-600"}],i=({active:a,payload:o,label:l})=>{if(a&&o&&o.length){const u=o[0].payload;return _.jsxs("div",{className:"bg-white p-4 border border-gray-200 rounded-lg shadow-lg",children:[_.jsx("p",{className:"font-semibold text-gray-900 mb-2",children:l}),_.jsxs("div",{className:"space-y-1",children:[_.jsxs("div",{className:"flex items-center",children:[_.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full mr-2"}),_.jsxs("span",{className:"text-sm",children:["Completed: ",u.completed]})]}),_.jsxs("div",{className:"flex items-center",children:[_.jsx("div",{className:"w-3 h-3 bg-blue-500 rounded-full mr-2"}),_.jsxs("span",{className:"text-sm",children:["In Progress: ",u.inProgress]})]}),_.jsxs("div",{className:"flex items-center",children:[_.jsx("div",{className:"w-3 h-3 bg-orange-500 rounded-full mr-2"}),_.jsxs("span",{className:"text-sm",children:["Pending: ",u.pending]})]})]}),_.jsx("div",{className:"border-t pt-2 mt-2",children:_.jsxs("span",{className:"text-sm font-medium",children:["Total: ",u.total," tasks"]})})]})}return null};return _.jsxs("div",{className:"bg-white rounded-xl border border-gray-200 p-6 hover:shadow-lg transition-all duration-300",children:[_.jsxs("div",{className:"flex items-center justify-between mb-6",children:[_.jsxs("h3",{className:"text-lg font-semibold text-gray-900 flex items-center",children:[_.jsx("span",{className:"w-3 h-3 bg-gradient-to-r from-indigo-400 to-purple-500 rounded-full mr-3"}),"Team Workload Overview"]}),_.jsxs("div",{className:"flex space-x-1",children:[_.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full"}),_.jsx("div",{className:"w-2 h-2 bg-blue-500 rounded-full"}),_.jsx("div",{className:"w-2 h-2 bg-orange-500 rounded-full"})]})]}),_.jsx("div",{className:"grid grid-cols-3 gap-4 mb-6",children:n.map((a,o)=>{const l=a.icon;return _.jsxs("div",{className:"text-center p-3 bg-gray-50 rounded-lg",children:[_.jsx(l,{className:`w-5 h-5 mx-auto mb-1 ${a.color}`}),_.jsx("div",{className:"text-sm font-semibold text-gray-900",children:a.value}),_.jsx("div",{className:"text-xs text-gray-500",children:a.label})]},o)})}),_.jsx("div",{className:"h-48",children:_.jsx(Au,{width:"100%",height:"100%",children:_.jsxs(YP,{data:r,margin:{top:10,right:10,left:10,bottom:10},onMouseMove:a=>{a&&a.activeTooltipIndex!==void 0&&t(a.activeTooltipIndex)},onMouseLeave:()=>t(null),children:[_.jsx(ni,{dataKey:"name",axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#6B7280"}}),_.jsx(ii,{axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#6B7280"}}),_.jsx(Et,{content:_.jsx(i,{})}),_.jsx(br,{dataKey:"completed",stackId:"a",fill:"#10B981",radius:[0,0,0,0],children:r.map((a,o)=>_.jsx(Hn,{fill:e===o?"#059669":"#10B981"},`completed-${o}`))}),_.jsx(br,{dataKey:"inProgress",stackId:"a",fill:"#3B82F6",radius:[0,0,0,0],children:r.map((a,o)=>_.jsx(Hn,{fill:e===o?"#2563EB":"#3B82F6"},`inProgress-${o}`))}),_.jsx(br,{dataKey:"pending",stackId:"a",fill:"#F59E0B",radius:[4,4,0,0],children:r.map((a,o)=>_.jsx(Hn,{fill:e===o?"#D97706":"#F59E0B"},`pending-${o}`))})]})})}),_.jsxs("div",{className:"flex justify-center space-x-6 mt-4",children:[_.jsxs("div",{className:"flex items-center text-sm",children:[_.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full mr-2"}),_.jsx("span",{className:"text-gray-600",children:"Completed"})]}),_.jsxs("div",{className:"flex items-center text-sm",children:[_.jsx("div",{className:"w-3 h-3 bg-blue-500 rounded-full mr-2"}),_.jsx("span",{className:"text-gray-600",children:"In Progress"})]}),_.jsxs("div",{className:"flex items-center text-sm",children:[_.jsx("div",{className:"w-3 h-3 bg-orange-500 rounded-full mr-2"}),_.jsx("span",{className:"text-gray-600",children:"Pending"})]})]})]})},tX=()=>{const[e,t]=L.useState(-1),[r,n]=L.useState(null),i=[{name:"Assigned",value:65,color:"#10B981"},{name:"Unassigned",value:35,color:"#EF4444"}],a=[{name:"Alice",value:8,avatar:"👩‍💼"},{name:"Bob",value:6,avatar:"👨‍💻"},{name:"Carol",value:5,avatar:"👩‍🎨"},{name:"David",value:4,avatar:"👨‍🔬"},{name:"Emma",value:3,avatar:"👩‍🚀"}],o=[{day:"Mon",completed:12,pending:3},{day:"Tue",completed:15,pending:5},{day:"Wed",completed:8,pending:7},{day:"Thu",completed:18,pending:2},{day:"Fri",completed:22,pending:4},{day:"Sat",completed:5,pending:1},{day:"Sun",completed:3,pending:0}],l=(c,d)=>{t(d)},u=()=>{t(-1)},s=({active:c,payload:d,label:p})=>c&&d&&d.length?_.jsx("div",{className:"bg-white p-3 border border-gray-200 rounded-lg shadow-lg",children:_.jsx("p",{className:"font-medium",children:`${p}: ${d[0].value} tasks`})}):null,f=({active:c,payload:d})=>c&&d&&d.length?_.jsx("div",{className:"bg-white p-3 border border-gray-200 rounded-lg shadow-lg",children:_.jsx("p",{className:"font-medium",children:`${d[0].name}: ${d[0].value}%`})}):null;return _.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[_.jsxs("div",{className:`bg-white rounded-xl border border-gray-200 p-6 transition-all duration-300 hover:shadow-lg hover:border-gray-300 cursor-pointer ${r==="pie"?"ring-2 ring-teal-500":""}`,onClick:()=>n(r==="pie"?null:"pie"),children:[_.jsxs("h3",{className:"text-lg font-semibold text-gray-900 mb-4 flex items-center",children:[_.jsx("span",{className:"w-3 h-3 bg-gradient-to-r from-green-400 to-emerald-500 rounded-full mr-3"}),"Total Tasks by Assignee"]}),_.jsx("div",{className:"h-40",children:_.jsx(Au,{width:"100%",height:"100%",children:_.jsxs(JG,{children:[_.jsx(qr,{data:i,cx:"50%",cy:"50%",innerRadius:35,outerRadius:70,paddingAngle:2,dataKey:"value",onMouseEnter:l,onMouseLeave:u,children:i.map(c=>_.jsx(Hn,{fill:c.color,stroke:e===i.indexOf(c)?"#374151":"none",strokeWidth:e===i.indexOf(c)?2:0,style:{filter:e===i.indexOf(c)?"brightness(1.1)":"none",transform:e===i.indexOf(c)?"scale(1.05)":"scale(1)",transformOrigin:"center",transition:"all 0.2s ease-in-out"}},c.name))}),_.jsx(Et,{content:_.jsx(f,{})})]})})}),_.jsx("div",{className:"flex justify-center space-x-4 mt-3",children:i.map(c=>_.jsxs("div",{className:"flex items-center text-sm",children:[_.jsx("div",{className:"w-3 h-3 rounded-full mr-2",style:{backgroundColor:c.color}}),_.jsxs("span",{className:"text-gray-600",children:[c.name," (",c.value,"%)"]})]},c.name))})]}),_.jsxs("div",{className:`bg-white rounded-xl border border-gray-200 p-6 transition-all duration-300 hover:shadow-lg hover:border-gray-300 cursor-pointer ${r==="bar"?"ring-2 ring-teal-500":""}`,onClick:()=>n(r==="bar"?null:"bar"),children:[_.jsxs("h3",{className:"text-lg font-semibold text-gray-900 mb-4 flex items-center",children:[_.jsx("span",{className:"w-3 h-3 bg-gradient-to-r from-blue-400 to-indigo-500 rounded-full mr-3"}),"Open Tasks by Assignee"]}),_.jsx("div",{className:"text-sm text-gray-500 mb-3",children:"Active Tasks"}),_.jsx("div",{className:"h-40",children:_.jsx(Au,{width:"100%",height:"100%",children:_.jsxs(YP,{data:a,margin:{top:10,right:10,left:10,bottom:10},children:[_.jsx(ni,{dataKey:"name",axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#6B7280"}}),_.jsx(ii,{domain:[0,10],axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#6B7280"}}),_.jsx(Et,{content:_.jsx(s,{})}),_.jsx(br,{dataKey:"value",fill:"#3B82F6",radius:[4,4,0,0],style:{filter:"drop-shadow(0 2px 4px rgba(0,0,0,0.1))"}})]})})}),_.jsx("div",{className:"flex justify-between items-center mt-3",children:a.slice(0,3).map(c=>_.jsxs("div",{className:"text-center",children:[_.jsx("div",{className:"text-lg mb-1",children:c.avatar}),_.jsx("div",{className:"text-xs text-gray-600",children:c.name}),_.jsx("div",{className:"text-sm font-semibold text-gray-800",children:c.value})]},c.name))})]}),_.jsxs("div",{className:`bg-white rounded-xl border border-gray-200 p-6 transition-all duration-300 hover:shadow-lg hover:border-gray-300 cursor-pointer ${r==="line"?"ring-2 ring-teal-500":""}`,onClick:()=>n(r==="line"?null:"line"),children:[_.jsxs("h3",{className:"text-lg font-semibold text-gray-900 mb-4 flex items-center",children:[_.jsx("span",{className:"w-3 h-3 bg-gradient-to-r from-purple-400 to-pink-500 rounded-full mr-3"}),"Weekly Task Completion"]}),_.jsx("div",{className:"text-sm text-gray-500 mb-3",children:"Last 7 days"}),_.jsx("div",{className:"h-40",children:_.jsx(Au,{width:"100%",height:"100%",children:_.jsxs(ZG,{data:o,margin:{top:10,right:10,left:10,bottom:10},children:[_.jsx(ni,{dataKey:"day",axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#6B7280"}}),_.jsx(ii,{axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"#6B7280"}}),_.jsx(Et,{content:_.jsx(s,{})}),_.jsx(ga,{type:"monotone",dataKey:"completed",stroke:"#10B981",strokeWidth:3,dot:{fill:"#10B981",strokeWidth:2,r:4},activeDot:{r:6,stroke:"#10B981",strokeWidth:2}}),_.jsx(ga,{type:"monotone",dataKey:"pending",stroke:"#F59E0B",strokeWidth:2,strokeDasharray:"5 5",dot:{fill:"#F59E0B",strokeWidth:2,r:3}})]})})}),_.jsxs("div",{className:"flex justify-center space-x-6 mt-3",children:[_.jsxs("div",{className:"flex items-center text-sm",children:[_.jsx("div",{className:"w-3 h-3 bg-green-500 rounded-full mr-2"}),_.jsx("span",{className:"text-gray-600",children:"Completed"})]}),_.jsxs("div",{className:"flex items-center text-sm",children:[_.jsx("div",{className:"w-3 h-3 bg-yellow-500 rounded-full mr-2"}),_.jsx("span",{className:"text-gray-600",children:"Pending"})]})]})]})]})};function rX(){return _.jsxs("div",{className:"min-h-screen bg-gray-50",children:[_.jsx(HE,{}),_.jsxs("div",{className:"flex",children:[_.jsx(VE,{}),_.jsxs("div",{className:"flex-1",children:[_.jsx(KE,{}),_.jsx(qE,{}),_.jsxs("main",{className:"p-6 space-y-6",children:[_.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[_.jsx("div",{className:"h-full flex flex-col",children:_.jsx(GE,{})}),_.jsxs("div",{className:"space-y-6",children:[_.jsx(XE,{}),_.jsx(eX,{})]})]}),_.jsx(tX,{})]})]})]})]})}Jw(document.getElementById("root")).render(_.jsx(L.StrictMode,{children:_.jsx(rX,{})})); diff --git a/dist/index.html b/dist/index.html index 0922889..4fa5f08 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,8 +5,8 @@ Wokay Assignment - - + +
diff --git a/package-lock.json b/package-lock.json index 4b07edc..18187c7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "wokay-assignment", "version": "0.0.1", "dependencies": { + "framer-motion": "^12.23.0", "lucide-react": "^0.344.0", "react": "^18.3.1", "react-dom": "^18.3.1", @@ -2622,6 +2623,33 @@ "url": "https://github.com/sponsors/rawify" } }, + "node_modules/framer-motion": { + "version": "12.23.0", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.23.0.tgz", + "integrity": "sha512-xf6NxTGAyf7zR4r2KlnhFmsRfKIbjqeBupEDBAaEtVIBJX96sAon00kMlsKButSIRwPSHjbRrAPnYdJJ9kyhbA==", + "license": "MIT", + "dependencies": { + "motion-dom": "^12.22.0", + "motion-utils": "^12.19.0", + "tslib": "^2.4.0" + }, + "peerDependencies": { + "@emotion/is-prop-valid": "*", + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@emotion/is-prop-valid": { + "optional": true + }, + "react": { + "optional": true + }, + "react-dom": { + "optional": true + } + } + }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", @@ -3085,6 +3113,21 @@ "node": ">=16 || 14 >=14.17" } }, + "node_modules/motion-dom": { + "version": "12.22.0", + "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.22.0.tgz", + "integrity": "sha512-ooH7+/BPw9gOsL9VtPhEJHE2m4ltnhMlcGMhEqA0YGNhKof7jdaszvsyThXI6LVIKshJUZ9/CP6HNqQhJfV7kw==", + "license": "MIT", + "dependencies": { + "motion-utils": "^12.19.0" + } + }, + "node_modules/motion-utils": { + "version": "12.19.0", + "resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-12.19.0.tgz", + "integrity": "sha512-BuFTHINYmV07pdWs6lj6aI63vr2N4dg0vR+td0rtrdpWOhBzIkEklZyLcvKBoEtwSqx8Jg06vUB5RS0xDiUybw==", + "license": "MIT" + }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -4050,6 +4093,12 @@ "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", "dev": true }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", diff --git a/package.json b/package.json index 9ac5706..45dcdc5 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "preview": "vite preview" }, "dependencies": { + "framer-motion": "^12.23.0", "lucide-react": "^0.344.0", "react": "^18.3.1", "react-dom": "^18.3.1", diff --git a/src/App.tsx b/src/App.tsx index 2e126ce..a1e0860 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -9,17 +9,17 @@ import TaskCharts from "./components/TaskCharts"; function App() { return ( -
+
-
+
-
+
-
+
diff --git a/src/components/AIExecutiveSummary.tsx b/src/components/AIExecutiveSummary.tsx index aab2c03..46cd49e 100644 --- a/src/components/AIExecutiveSummary.tsx +++ b/src/components/AIExecutiveSummary.tsx @@ -1,5 +1,6 @@ import { useState, useEffect } from "react"; -import { Sparkles, Expand, RefreshCw, TrendingUp, AlertTriangle, CheckCircle, Brain } from "lucide-react"; +import { Sparkles, Expand, RefreshCw, TrendingUp, AlertTriangle, CheckCircle } from "lucide-react"; +import { motion, AnimatePresence } from "framer-motion"; const AIExecutiveSummary = () => { const [isGenerating, setIsGenerating] = useState(false); @@ -21,9 +22,9 @@ const AIExecutiveSummary = () => { content: "The Review process is experiencing delays with 8 pending tasks. Consider allocating additional reviewers to maintain workflow.", type: "warning", icon: AlertTriangle, - color: "text-orange-600", - bgColor: "bg-orange-50", - borderColor: "border-orange-200" + color: "text-amber-600", + bgColor: "bg-amber-50", + borderColor: "border-amber-200" }, { title: "Sprint Goal Achievement", @@ -61,23 +62,26 @@ const AIExecutiveSummary = () => { const IconComponent = currentData.icon; return ( -
-
+
-
+
{isGenerating && ( -
+ )}
-

+

AI Executive Summary -

{isGenerating ? "Generating insights..." : "Updated just now"} @@ -87,14 +91,14 @@ const AIExecutiveSummary = () => {

@@ -102,30 +106,39 @@ const AIExecutiveSummary = () => {
{/* Main Insight Card */} -
-
-
- -
-
-

- {currentData.title} -

-

- {currentData.content} -

+ + +
+
+ +
+
+

+ {currentData.title} +

+

+ {currentData.content} +

+
-
-
+ + {/* Insight Indicators */} -
+
{insights.map((_, index) => (
diff --git a/src/components/DashboardControls.tsx b/src/components/DashboardControls.tsx index f18cad9..fb69aff 100644 --- a/src/components/DashboardControls.tsx +++ b/src/components/DashboardControls.tsx @@ -1,5 +1,6 @@ import { useState, useEffect } from "react"; -import { RefreshCw, Filter, Plus, Settings, Eye, EyeOff, Clock } from "lucide-react"; +import { RefreshCw, Filter, Plus, ChevronDown } from "lucide-react"; +import { motion, AnimatePresence } from "framer-motion"; const DashboardControls = () => { const [editMode, setEditMode] = useState(false); @@ -11,7 +12,6 @@ const DashboardControls = () => { const handleRefresh = () => { setIsRefreshing(true); - // Simulate refresh setTimeout(() => { setIsRefreshing(false); setLastRefresh("just now"); @@ -37,32 +37,32 @@ const DashboardControls = () => { }, [autoRefresh]); return ( -
+
-
+
{/* Edit Mode Toggle */}
-
- {editMode ? : } - Edit mode: -
+ Edit mode: {editMode && ( - Active + + Active + )}
@@ -78,29 +78,21 @@ const DashboardControls = () => { {/* Auto Refresh Toggle */} -
-
- - Auto refresh: -
+
+ Auto refresh: - + {autoRefresh ? 'On' : 'Off'}
@@ -109,73 +101,82 @@ const DashboardControls = () => {
{/* Filter Dropdown */} - {showFilters && ( -
-

Filter Options

-
- {['Status', 'Assignee', 'Priority', 'Date'].map((filter) => ( - - ))} -
- -
- )} +

Filter Options

+
+ {['Status', 'Assignee', 'Priority', 'Date'].map((filter) => ( + + ))} +
+ + + )} +
{/* Add Card Button */} -
- - - -
+
{/* Active filters display */} - {filterCount > 0 && ( -
- Active filters: - - Status: In Progress - - -
- )} + Active filters: + + Status: In Progress + + + + )} +
); }; diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index c6517b2..3143bef 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -38,7 +38,7 @@ const Sidebar = () => { ]; return ( -
+
diff --git a/src/components/TaskCharts.tsx b/src/components/TaskCharts.tsx index 7190dca..47f178f 100644 --- a/src/components/TaskCharts.tsx +++ b/src/components/TaskCharts.tsx @@ -12,6 +12,7 @@ import { LineChart, Line, } from "recharts"; +import { motion } from "framer-motion"; const TaskCharts = () => { const [activeIndex, setActiveIndex] = useState(-1); @@ -19,7 +20,7 @@ const TaskCharts = () => { const pieData = [ { name: "Assigned", value: 65, color: "#10B981" }, - { name: "Unassigned", value: 35, color: "#EF4444" }, + { name: "Unassigned", value: 35, color: "#9CA3AF" }, ]; const barData = [ @@ -72,15 +73,15 @@ const TaskCharts = () => { return (
- {/* Enhanced Pie Chart */} -
setSelectedChart(selectedChart === 'pie' ? null : 'pie')} > -

- +

Total Tasks by Assignee

@@ -103,12 +104,6 @@ const TaskCharts = () => { fill={entry.color} stroke={activeIndex === pieData.indexOf(entry) ? "#374151" : "none"} strokeWidth={activeIndex === pieData.indexOf(entry) ? 2 : 0} - style={{ - filter: activeIndex === pieData.indexOf(entry) ? "brightness(1.1)" : "none", - transform: activeIndex === pieData.indexOf(entry) ? "scale(1.05)" : "scale(1)", - transformOrigin: "center", - transition: "all 0.2s ease-in-out", - }} /> ))} @@ -127,17 +122,17 @@ const TaskCharts = () => {
))}
-
+ - {/* Enhanced Bar Chart */} -
setSelectedChart(selectedChart === 'bar' ? null : 'bar')} > -

- +

Open Tasks by Assignee

Active Tasks
@@ -161,9 +156,6 @@ const TaskCharts = () => { dataKey="value" fill="#3B82F6" radius={[4, 4, 0, 0]} - style={{ - filter: "drop-shadow(0 2px 4px rgba(0,0,0,0.1))" - }} /> @@ -177,17 +169,17 @@ const TaskCharts = () => {
))}
-
+ - {/* Enhanced Line Chart - Instead of empty third chart */} -
setSelectedChart(selectedChart === 'line' ? null : 'line')} > -

- +

Weekly Task Completion

Last 7 days
@@ -217,10 +209,10 @@ const TaskCharts = () => { @@ -231,11 +223,11 @@ const TaskCharts = () => { Completed
-
+
Pending
-
+
); }; diff --git a/src/components/TaskStatusOverview.tsx b/src/components/TaskStatusOverview.tsx index 6f839e6..7898b26 100644 --- a/src/components/TaskStatusOverview.tsx +++ b/src/components/TaskStatusOverview.tsx @@ -1,21 +1,21 @@ import { useState, useEffect } from "react"; import { Clock, CheckCircle, AlertCircle, TrendingUp } from "lucide-react"; +import { motion } from "framer-motion"; const TaskStatusOverview = () => { const [animateNumbers, setAnimateNumbers] = useState(false); - const [hoveredCard, setHoveredCard] = useState(null); const statusData = [ { label: "Unassigned", count: 8, - color: "bg-orange-50 border-orange-200", - textColor: "text-orange-700", - numberColor: "text-orange-600", + color: "bg-gray-50 border-gray-200", + textColor: "text-gray-700", + numberColor: "text-gray-900", icon: AlertCircle, - iconColor: "text-orange-500", + iconColor: "text-gray-500", trend: "+2 from yesterday", - trendColor: "text-orange-600" + trendColor: "text-gray-600" }, { label: "In Progress", @@ -42,7 +42,6 @@ const TaskStatusOverview = () => { ]; useEffect(() => { - // Trigger number animation on mount const timer = setTimeout(() => setAnimateNumbers(true), 100); return () => clearTimeout(timer); }, []); @@ -66,7 +65,7 @@ const TaskStatusOverview = () => { }, 50); return () => clearInterval(timer); - }, [target]); // Remove animateNumbers from dependencies + }, [target]); return (
@@ -76,50 +75,47 @@ const TaskStatusOverview = () => { }; return ( -
+
{statusData.map((status, index) => { const IconComponent = status.icon; return ( -
setHoveredCard(index)} - onMouseLeave={() => setHoveredCard(null)} + whileHover={{ y: -2 }} + className={`bg-white rounded-lg border p-6 text-center transition-all duration-200 cursor-pointer hover:shadow-md ${status.color}`} >
-

+

{status.label}

- +
tasks
-
+
{status.trend}
- {/* Progress bar */} -
-
+
-
+ ); })}
diff --git a/src/components/WorkloadChart.tsx b/src/components/WorkloadChart.tsx index bb2df61..a7b0893 100644 --- a/src/components/WorkloadChart.tsx +++ b/src/components/WorkloadChart.tsx @@ -1,6 +1,7 @@ import { useState } from "react"; import { BarChart, Bar, XAxis, YAxis, ResponsiveContainer, Tooltip, Cell } from "recharts"; import { Users, Activity, Target } from "lucide-react"; +import { motion } from "framer-motion"; const WorkloadChart = () => { const [activeBar, setActiveBar] = useState(null); @@ -13,9 +14,9 @@ const WorkloadChart = () => { ]; const teamStats = [ - { label: "Active Members", value: 12, icon: Users, color: "text-blue-600" }, - { label: "Capacity Used", value: "73%", icon: Activity, color: "text-green-600" }, - { label: "Weekly Goal", value: "85%", icon: Target, color: "text-purple-600" }, + { label: "Active Members", value: 12, icon: Users, color: "text-gray-600" }, + { label: "Capacity Used", value: "73%", icon: Activity, color: "text-blue-600" }, + { label: "Weekly Goal", value: "85%", icon: Target, color: "text-green-600" }, ]; const CustomTooltip = ({ active, payload, label }: { @@ -38,7 +39,7 @@ const WorkloadChart = () => { In Progress: {data.inProgress}
-
+
Pending: {data.pending}
@@ -52,29 +53,37 @@ const WorkloadChart = () => { }; return ( -
-
-

- + +
+

Team Workload Overview

-
+
{/* Team Stats */} -
+
{teamStats.map((stat, index) => { const IconComponent = stat.icon; return ( -
- + +
{stat.value}
{stat.label}
-
+ ); })}
@@ -132,13 +141,13 @@ const WorkloadChart = () => { {data.map((entry, index) => ( ))} @@ -157,11 +166,11 @@ const WorkloadChart = () => { In Progress
-
+
Pending

-
+ ); };