@kaitranntt/ccs 6.1.0-dev.1 → 6.1.0-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/config/base-agy.settings.json +1 -1
- package/dist/cliproxy/model-config.d.ts.map +1 -1
- package/dist/cliproxy/model-config.js +1 -28
- package/dist/cliproxy/model-config.js.map +1 -1
- package/dist/ui/assets/{accounts-BKXwPuIj.js → accounts-DjGgiBaT.js} +1 -1
- package/dist/ui/assets/analytics-BMXXbe7n.js +64 -0
- package/dist/ui/assets/{api-BqQcCyY7.js → api-BxYCjnbV.js} +1 -1
- package/dist/ui/assets/{card-CyFQG_uw.js → card-DtuB-tY2.js} +1 -1
- package/dist/ui/assets/{cliproxy-BovFwaun.js → cliproxy-C7H0ktJS.js} +1 -1
- package/dist/ui/assets/{cliproxy-control-panel-Cu7DgEPx.js → cliproxy-control-panel-CCHewXLy.js} +1 -1
- package/dist/ui/assets/{code-editor-B0qs-d-B.js → code-editor-DrGnSi2g.js} +1 -1
- package/dist/ui/assets/{health-t1teUGAX.js → health-CUiIrsfV.js} +1 -1
- package/dist/ui/assets/icons-CPPxUvb4.js +1 -0
- package/dist/ui/assets/index-BBNncLQd.js +46 -0
- package/dist/ui/assets/index-CbKJobGP.css +1 -0
- package/dist/ui/assets/{settings-CW3WY2YF.js → settings-D8SKgj9M.js} +1 -1
- package/dist/ui/assets/{shared-BiL6CT3F.js → shared-BSXhYf5P.js} +1 -1
- package/dist/ui/index.html +3 -3
- package/package.json +1 -1
- package/dist/ui/assets/analytics-CXbZmq08.js +0 -64
- package/dist/ui/assets/icons-D6DaLbNh.js +0 -1
- package/dist/ui/assets/index-CR7ZgAY0.js +0 -46
- package/dist/ui/assets/index-D5-8NcFs.css +0 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import{j as S}from"./radix-ui-Bhyw9pC9.js";import{j as Ui,g as ce,r as D,c as P}from"./react-vendor-DadlvKzT.js";import{C as Re,a as qe,b as Ze,c as Pt}from"./card-DtuB-tY2.js";import{c as oe,B as Zl,I as Ph,u as gn,S as we,P as Qe,a as J,g as N0,b as Un,d as pO,e as vO,f as yO,h as mO,i as gO,j as bO}from"./index-BBNncLQd.js";import{y as xO,z as wO,D as I0,J as Ql,N as D0,O as R0,t as OO,G as _O,Q as jh,U as SO,Z as q0,w as AO,V as zi,Y as PO,_ as jO,m as TO,$ as EO,a as MO,a0 as CO}from"./icons-CPPxUvb4.js";import{u as $O,a as bn}from"./tanstack-DZ3a6J0N.js";import"./form-utils-CKETQmt9.js";const L0=6048e5,kO=864e5,Hi=43200,Th=1440,Eh=Symbol.for("constructDateFrom");function bt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Eh in e?e[Eh](t):e instanceof Date?new e.constructor(t):new Date(t)}function _e(e,t){return bt(t||e,e)}function NO(e,t,r){const n=_e(e,r?.in);return isNaN(t)?bt(e,NaN):(t&&n.setDate(n.getDate()+t),n)}let IO={};function Ni(){return IO}function Zn(e,t){const r=Ni(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=_e(e,t?.in),a=i.getDay(),o=(a<n?7:0)+a-n;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function ca(e,t){return Zn(e,{...t,weekStartsOn:1})}function B0(e,t){const r=_e(e,t?.in),n=r.getFullYear(),i=bt(r,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const a=ca(i),o=bt(r,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const u=ca(o);return r.getTime()>=a.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function la(e){const t=_e(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function so(e,...t){const r=bt.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function Mh(e,t){const r=_e(e,t?.in);return r.setHours(0,0,0,0),r}function DO(e,t,r){const[n,i]=so(r?.in,e,t),a=Mh(n),o=Mh(i),u=+a-la(a),s=+o-la(o);return Math.round((u-s)/kO)}function RO(e,t){const r=B0(e,t),n=bt(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),ca(n)}function ua(e,t){const r=+_e(e)-+_e(t);return r<0?-1:r>0?1:r}function qO(e){return bt(e,Date.now())}function LO(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function BO(e){return!(!LO(e)&&typeof e!="number"||isNaN(+_e(e)))}function FO(e,t,r){const[n,i]=so(r?.in,e,t),a=n.getFullYear()-i.getFullYear(),o=n.getMonth()-i.getMonth();return a*12+o}function WO(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function UO(e,t){return+_e(e)-+_e(t)}function zO(e,t){const r=_e(e,t?.in);return r.setHours(23,59,59,999),r}function HO(e,t){const r=_e(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function GO(e,t){const r=_e(e,t?.in);return+zO(r,t)==+HO(r,t)}function KO(e,t,r){const[n,i,a]=so(r?.in,e,e,t),o=ua(i,a),u=Math.abs(FO(i,a));if(u<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-o*u);let s=ua(i,a)===-o;GO(n)&&u===1&&ua(n,a)===1&&(s=!1);const c=o*(u-+s);return c===0?0:c}function YO(e,t,r){const n=UO(e,t)/1e3;return WO(r?.roundingMethod)(n)}function VO(e,t){const r=_e(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function XO(e,t){const r=_e(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}const ZO={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},QO=(e,t,r)=>{let n;const i=ZO[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Vo(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const JO={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},e_={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},t_={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},r_={date:Vo({formats:JO,defaultWidth:"full"}),time:Vo({formats:e_,defaultWidth:"full"}),dateTime:Vo({formats:t_,defaultWidth:"full"})},n_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},i_=(e,t,r,n)=>n_[e];function En(e){return(t,r)=>{const n=r?.context?String(r.context):"standalone";let i;if(n==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,u=r?.width?String(r.width):o;i=e.formattingValues[u]||e.formattingValues[o]}else{const o=e.defaultWidth,u=r?.width?String(r.width):e.defaultWidth;i=e.values[u]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const a_={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},o_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},u_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},c_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},l_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},f_=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},d_={ordinalNumber:f_,era:En({values:a_,defaultWidth:"wide"}),quarter:En({values:o_,defaultWidth:"wide",argumentCallback:e=>e-1}),month:En({values:u_,defaultWidth:"wide"}),day:En({values:s_,defaultWidth:"wide"}),dayPeriod:En({values:c_,defaultWidth:"wide",formattingValues:l_,defaultFormattingWidth:"wide"})};function Mn(e){return(t,r={})=>{const n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(u)?p_(u,l=>l.test(o)):h_(u,l=>l.test(o));let c;c=e.valueCallback?e.valueCallback(s):s,c=r.valueCallback?r.valueCallback(c):c;const f=t.slice(o.length);return{value:c,rest:f}}}function h_(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function p_(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function v_(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const i=n[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;const u=t.slice(i.length);return{value:o,rest:u}}}const y_=/^(\d+)(th|st|nd|rd)?/i,m_=/\d+/i,g_={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},b_={any:[/^b/i,/^(a|c)/i]},x_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},w_={any:[/1/i,/2/i,/3/i,/4/i]},O_={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},__={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},S_={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},A_={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},P_={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},j_={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},T_={ordinalNumber:v_({matchPattern:y_,parsePattern:m_,valueCallback:e=>parseInt(e,10)}),era:Mn({matchPatterns:g_,defaultMatchWidth:"wide",parsePatterns:b_,defaultParseWidth:"any"}),quarter:Mn({matchPatterns:x_,defaultMatchWidth:"wide",parsePatterns:w_,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Mn({matchPatterns:O_,defaultMatchWidth:"wide",parsePatterns:__,defaultParseWidth:"any"}),day:Mn({matchPatterns:S_,defaultMatchWidth:"wide",parsePatterns:A_,defaultParseWidth:"any"}),dayPeriod:Mn({matchPatterns:P_,defaultMatchWidth:"any",parsePatterns:j_,defaultParseWidth:"any"})},F0={code:"en-US",formatDistance:QO,formatLong:r_,formatRelative:i_,localize:d_,match:T_,options:{weekStartsOn:0,firstWeekContainsDate:1}};function E_(e,t){const r=_e(e,t?.in);return DO(r,XO(r))+1}function M_(e,t){const r=_e(e,t?.in),n=+ca(r)-+RO(r);return Math.round(n/L0)+1}function W0(e,t){const r=_e(e,t?.in),n=r.getFullYear(),i=Ni(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=bt(t?.in||e,0);o.setFullYear(n+1,0,a),o.setHours(0,0,0,0);const u=Zn(o,t),s=bt(t?.in||e,0);s.setFullYear(n,0,a),s.setHours(0,0,0,0);const c=Zn(s,t);return+r>=+u?n+1:+r>=+c?n:n-1}function C_(e,t){const r=Ni(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=W0(e,t),a=bt(t?.in||e,0);return a.setFullYear(i,0,n),a.setHours(0,0,0,0),Zn(a,t)}function $_(e,t){const r=_e(e,t?.in),n=+Zn(r,t)-+C_(r,t);return Math.round(n/L0)+1}function ue(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const Wt={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return ue(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):ue(r+1,2)},d(e,t){return ue(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return ue(e.getHours()%12||12,t.length)},H(e,t){return ue(e.getHours(),t.length)},m(e,t){return ue(e.getMinutes(),t.length)},s(e,t){return ue(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),i=Math.trunc(n*Math.pow(10,r-3));return ue(i,t.length)}},Mr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ch={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return Wt.y(e,t)},Y:function(e,t,r,n){const i=W0(e,n),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return ue(o,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):ue(a,t.length)},R:function(e,t){const r=B0(e);return ue(r,t.length)},u:function(e,t){const r=e.getFullYear();return ue(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return ue(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return ue(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Wt.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return ue(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const i=$_(e,n);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):ue(i,t.length)},I:function(e,t,r){const n=M_(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):ue(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Wt.d(e,t)},D:function(e,t,r){const n=E_(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):ue(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const i=e.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return ue(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const i=e.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return ue(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),i=n===0?7:n;switch(t){case"i":return String(i);case"ii":return ue(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let i;switch(n===12?i=Mr.noon:n===0?i=Mr.midnight:i=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let i;switch(n>=17?i=Mr.evening:n>=12?i=Mr.afternoon:n>=4?i=Mr.morning:i=Mr.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Wt.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Wt.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):ue(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):ue(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Wt.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Wt.s(e,t)},S:function(e,t){return Wt.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return kh(n);case"XXXX":case"XX":return or(n);case"XXXXX":case"XXX":default:return or(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return kh(n);case"xxxx":case"xx":return or(n);case"xxxxx":case"xxx":default:return or(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+$h(n,":");case"OOOO":default:return"GMT"+or(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+$h(n,":");case"zzzz":default:return"GMT"+or(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return ue(n,t.length)},T:function(e,t,r){return ue(+e,t.length)}};function $h(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),a=n%60;return a===0?r+String(i):r+String(i)+t+ue(a,2)}function kh(e,t){return e%60===0?(e>0?"-":"+")+ue(Math.abs(e)/60,2):or(e,t)}function or(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=ue(Math.trunc(n/60),2),a=ue(n%60,2);return r+i+t+a}const Nh=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},U0=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},k_=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return Nh(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Nh(n,t)).replace("{{time}}",U0(i,t))},N_={p:U0,P:k_},I_=/^D+$/,D_=/^Y+$/,R_=["D","DD","YY","YYYY"];function q_(e){return I_.test(e)}function L_(e){return D_.test(e)}function B_(e,t,r){const n=F_(e,t,r);if(console.warn(n),R_.includes(e))throw new RangeError(n)}function F_(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const W_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,U_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,z_=/^'([^]*?)'?$/,H_=/''/g,G_=/[a-zA-Z]/;function zn(e,t,r){const n=Ni(),i=n.locale??F0,a=n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=n.weekStartsOn??n.locale?.options?.weekStartsOn??0,u=_e(e,r?.in);if(!BO(u))throw new RangeError("Invalid time value");let s=t.match(U_).map(f=>{const l=f[0];if(l==="p"||l==="P"){const d=N_[l];return d(f,i.formatLong)}return f}).join("").match(W_).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const l=f[0];if(l==="'")return{isToken:!1,value:K_(f)};if(Ch[l])return{isToken:!0,value:f};if(l.match(G_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+l+"`");return{isToken:!1,value:f}});i.localize.preprocessor&&(s=i.localize.preprocessor(u,s));const c={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return s.map(f=>{if(!f.isToken)return f.value;const l=f.value;(L_(l)||q_(l))&&B_(l,t,String(e));const d=Ch[l[0]];return d(u,l,i.localize,c)}).join("")}function K_(e){const t=e.match(z_);return t?t[1].replace(H_,"'"):e}function Y_(e,t,r){const n=Ni(),i=r?.locale??n.locale??F0,a=2520,o=ua(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const u=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:o}),[s,c]=so(r?.in,...o>0?[t,e]:[e,t]),f=YO(c,s),l=(la(c)-la(s))/1e3,d=Math.round((f-l)/60);let p;if(d<2)return r?.includeSeconds?f<5?i.formatDistance("lessThanXSeconds",5,u):f<10?i.formatDistance("lessThanXSeconds",10,u):f<20?i.formatDistance("lessThanXSeconds",20,u):f<40?i.formatDistance("halfAMinute",0,u):f<60?i.formatDistance("lessThanXMinutes",1,u):i.formatDistance("xMinutes",1,u):d===0?i.formatDistance("lessThanXMinutes",1,u):i.formatDistance("xMinutes",d,u);if(d<45)return i.formatDistance("xMinutes",d,u);if(d<90)return i.formatDistance("aboutXHours",1,u);if(d<Th){const y=Math.round(d/60);return i.formatDistance("aboutXHours",y,u)}else{if(d<a)return i.formatDistance("xDays",1,u);if(d<Hi){const y=Math.round(d/Th);return i.formatDistance("xDays",y,u)}else if(d<Hi*2)return p=Math.round(d/Hi),i.formatDistance("aboutXMonths",p,u)}if(p=KO(c,s),p<12){const y=Math.round(d/Hi);return i.formatDistance("xMonths",y,u)}else{const y=p%12,v=Math.trunc(p/12);return y<3?i.formatDistance("aboutXYears",v,u):y<9?i.formatDistance("overXYears",v,u):i.formatDistance("almostXYears",v+1,u)}}function Jl(e,t){return Y_(e,qO(e),t)}function Gi(e,t,r){return NO(e,-t,r)}function V_({value:e,onChange:t,presets:r=[],className:n}){const i=u=>{t(u)},a=u=>{const s=u.target.value?new Date(u.target.value):void 0;t({from:s,to:e?.to})},o=u=>{const s=u.target.value?new Date(u.target.value):void 0;t({from:e?.from,to:s})};return S.jsxs("div",{className:oe("flex flex-wrap items-center gap-2",n),children:[r.map((u,s)=>S.jsx(Zl,{variant:X_(e,u.range)?"default":"outline",size:"sm",onClick:()=>i(u.range),children:u.label},s)),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsxs("div",{className:"flex items-center gap-1",children:[S.jsx(xO,{className:"h-4 w-4 text-muted-foreground"}),S.jsx(Ph,{type:"date",value:e?.from?zn(e.from,"yyyy-MM-dd"):"",onChange:a,placeholder:"From",className:"w-40"})]}),S.jsx("span",{className:"text-muted-foreground",children:"to"}),S.jsx(Ph,{type:"date",value:e?.to?zn(e.to,"yyyy-MM-dd"):"",onChange:o,placeholder:"To",className:"w-40"})]})]})}function X_(e,t){if(!e||!t)return e===t;const r=e.from?.getTime()??0,n=t.from?.getTime()??0,i=e.to?.getTime()??0,a=t.to?.getTime()??0;return r===n&&i===a}function Z_({data:e,isLoading:t}){const{privacyMode:r}=gn();if(t)return S.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 xl:grid-cols-5 gap-4",children:[1,2,3,4,5].map(o=>S.jsx(Re,{children:S.jsx(qe,{className:"p-6",children:S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"space-y-2",children:[S.jsx(we,{className:"h-4 w-[100px]"}),S.jsx(we,{className:"h-8 w-[80px]"})]}),S.jsx(we,{className:"h-8 w-8 rounded-lg"})]})})},o))});const n=(e?.tokenBreakdown?.cacheCreation?.cost??0)+(e?.tokenBreakdown?.cacheRead?.cost??0),i=e?.totalCost?Math.round(n/e.totalCost*100):0,a=[{title:"Total Tokens",value:e?.totalTokens??0,icon:wO,format:o=>Cr(o),color:"text-blue-600",bgColor:"bg-blue-100 dark:bg-blue-900/20",subtitle:`${Cr(e?.totalInputTokens??0)} in / ${Cr(e?.totalOutputTokens??0)} out`},{title:"Total Cost",value:e?.totalCost??0,icon:I0,format:o=>`$${o.toFixed(2)}`,color:"text-green-600",bgColor:"bg-green-100 dark:bg-green-900/20",subtitle:`$${e?.averageCostPerDay?.toFixed(2)??"0.00"}/day avg`},{title:"Cache Tokens",value:e?.totalCacheTokens??0,icon:Ql,format:o=>Cr(o),color:"text-cyan-600",bgColor:"bg-cyan-100 dark:bg-cyan-900/20",subtitle:`$${n.toFixed(2)} (${i}% of cost)`},{title:"Input Cost",value:e?.tokenBreakdown?.input?.cost??0,icon:D0,format:o=>`$${o.toFixed(2)}`,color:"text-purple-600",bgColor:"bg-purple-100 dark:bg-purple-900/20",subtitle:`${Cr(e?.tokenBreakdown?.input?.tokens??0)} tokens`},{title:"Output Cost",value:e?.tokenBreakdown?.output?.cost??0,icon:R0,format:o=>`$${o.toFixed(2)}`,color:"text-orange-600",bgColor:"bg-orange-100 dark:bg-orange-900/20",subtitle:`${Cr(e?.tokenBreakdown?.output?.tokens??0)} tokens`}];return S.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 xl:grid-cols-5 gap-4",children:a.map((o,u)=>{const s=o.icon;return S.jsx(Re,{className:"hover:shadow-md transition-shadow",children:S.jsx(qe,{className:"p-4",children:S.jsxs("div",{className:"flex items-center justify-between space-x-2",children:[S.jsxs("div",{className:"space-y-1 min-w-0",children:[S.jsx("p",{className:"text-xs font-medium text-muted-foreground truncate",children:o.title}),S.jsx("p",{className:oe("text-xl font-bold truncate",r&&Qe),children:o.format(o.value)}),o.subtitle&&S.jsx("p",{className:oe("text-[10px] text-muted-foreground truncate",r&&Qe),children:o.subtitle})]}),S.jsx("div",{className:oe("p-2 rounded-lg shrink-0",o.bgColor),children:S.jsx(s,{className:oe("h-4 w-4",o.color)})})]})})},u)})})}function Cr(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toLocaleString()}var Xo,Ih;function Ge(){if(Ih)return Xo;Ih=1;var e=Array.isArray;return Xo=e,Xo}var Zo,Dh;function z0(){if(Dh)return Zo;Dh=1;var e=typeof Ui=="object"&&Ui&&Ui.Object===Object&&Ui;return Zo=e,Zo}var Qo,Rh;function Ot(){if(Rh)return Qo;Rh=1;var e=z0(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Qo=r,Qo}var Jo,qh;function Ii(){if(qh)return Jo;qh=1;var e=Ot(),t=e.Symbol;return Jo=t,Jo}var eu,Lh;function Q_(){if(Lh)return eu;Lh=1;var e=Ii(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),s=o[i];try{o[i]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(u?o[i]=s:delete o[i]),f}return eu=a,eu}var tu,Bh;function J_(){if(Bh)return tu;Bh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return tu=r,tu}var ru,Fh;function Rt(){if(Fh)return ru;Fh=1;var e=Ii(),t=Q_(),r=J_(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return ru=o,ru}var nu,Wh;function qt(){if(Wh)return nu;Wh=1;function e(t){return t!=null&&typeof t=="object"}return nu=e,nu}var iu,Uh;function xn(){if(Uh)return iu;Uh=1;var e=Rt(),t=qt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return iu=n,iu}var au,zh;function wd(){if(zh)return au;zh=1;var e=Ge(),t=xn(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return au=i,au}var ou,Hh;function Xt(){if(Hh)return ou;Hh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return ou=e,ou}var uu,Gh;function Od(){if(Gh)return uu;Gh=1;var e=Rt(),t=Xt(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var s=e(u);return s==n||s==i||s==r||s==a}return uu=o,uu}var su,Kh;function eS(){if(Kh)return su;Kh=1;var e=Ot(),t=e["__core-js_shared__"];return su=t,su}var cu,Yh;function tS(){if(Yh)return cu;Yh=1;var e=eS(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return cu=r,cu}var lu,Vh;function H0(){if(Vh)return lu;Vh=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return lu=r,lu}var fu,Xh;function rS(){if(Xh)return fu;Xh=1;var e=Od(),t=tS(),r=Xt(),n=H0(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(d){if(!r(d)||t(d))return!1;var p=e(d)?f:a;return p.test(n(d))}return fu=l,fu}var du,Zh;function nS(){if(Zh)return du;Zh=1;function e(t,r){return t?.[r]}return du=e,du}var hu,Qh;function _r(){if(Qh)return hu;Qh=1;var e=rS(),t=nS();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return hu=r,hu}var pu,Jh;function co(){if(Jh)return pu;Jh=1;var e=_r(),t=e(Object,"create");return pu=t,pu}var vu,ep;function iS(){if(ep)return vu;ep=1;var e=co();function t(){this.__data__=e?e(null):{},this.size=0}return vu=t,vu}var yu,tp;function aS(){if(tp)return yu;tp=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return yu=e,yu}var mu,rp;function oS(){if(rp)return mu;rp=1;var e=co(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return mu=i,mu}var gu,np;function uS(){if(np)return gu;np=1;var e=co(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return gu=n,gu}var bu,ip;function sS(){if(ip)return bu;ip=1;var e=co(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return bu=r,bu}var xu,ap;function cS(){if(ap)return xu;ap=1;var e=iS(),t=aS(),r=oS(),n=uS(),i=sS();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,xu=a,xu}var wu,op;function lS(){if(op)return wu;op=1;function e(){this.__data__=[],this.size=0}return wu=e,wu}var Ou,up;function _d(){if(up)return Ou;up=1;function e(t,r){return t===r||t!==t&&r!==r}return Ou=e,Ou}var _u,sp;function lo(){if(sp)return _u;sp=1;var e=_d();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return _u=t,_u}var Su,cp;function fS(){if(cp)return Su;cp=1;var e=lo(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return Su=n,Su}var Au,lp;function dS(){if(lp)return Au;lp=1;var e=lo();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Au=t,Au}var Pu,fp;function hS(){if(fp)return Pu;fp=1;var e=lo();function t(r){return e(this.__data__,r)>-1}return Pu=t,Pu}var ju,dp;function pS(){if(dp)return ju;dp=1;var e=lo();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return ju=t,ju}var Tu,hp;function fo(){if(hp)return Tu;hp=1;var e=lS(),t=fS(),r=dS(),n=hS(),i=pS();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Tu=a,Tu}var Eu,pp;function Sd(){if(pp)return Eu;pp=1;var e=_r(),t=Ot(),r=e(t,"Map");return Eu=r,Eu}var Mu,vp;function vS(){if(vp)return Mu;vp=1;var e=cS(),t=fo(),r=Sd();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Mu=n,Mu}var Cu,yp;function yS(){if(yp)return Cu;yp=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Cu=e,Cu}var $u,mp;function ho(){if(mp)return $u;mp=1;var e=yS();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return $u=t,$u}var ku,gp;function mS(){if(gp)return ku;gp=1;var e=ho();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return ku=t,ku}var Nu,bp;function gS(){if(bp)return Nu;bp=1;var e=ho();function t(r){return e(this,r).get(r)}return Nu=t,Nu}var Iu,xp;function bS(){if(xp)return Iu;xp=1;var e=ho();function t(r){return e(this,r).has(r)}return Iu=t,Iu}var Du,wp;function xS(){if(wp)return Du;wp=1;var e=ho();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Du=t,Du}var Ru,Op;function Ad(){if(Op)return Ru;Op=1;var e=vS(),t=mS(),r=gS(),n=bS(),i=xS();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Ru=a,Ru}var qu,_p;function G0(){if(_p)return qu;_p=1;var e=Ad(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var c=n.apply(this,o);return a.cache=s.set(u,c)||s,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,qu=r,qu}var Lu,Sp;function wS(){if(Sp)return Lu;Sp=1;var e=G0(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Lu=r,Lu}var Bu,Ap;function OS(){if(Ap)return Bu;Ap=1;var e=wS(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,s,c){a.push(s?c.replace(r,"$1"):u||o)}),a});return Bu=n,Bu}var Fu,Pp;function Pd(){if(Pp)return Fu;Pp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return Fu=e,Fu}var Wu,jp;function _S(){if(jp)return Wu;jp=1;var e=Ii(),t=Pd(),r=Ge(),n=xn(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return Wu=o,Wu}var Uu,Tp;function K0(){if(Tp)return Uu;Tp=1;var e=_S();function t(r){return r==null?"":e(r)}return Uu=t,Uu}var zu,Ep;function Y0(){if(Ep)return zu;Ep=1;var e=Ge(),t=wd(),r=OS(),n=K0();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return zu=i,zu}var Hu,Mp;function po(){if(Mp)return Hu;Mp=1;var e=xn();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Hu=t,Hu}var Gu,Cp;function jd(){if(Cp)return Gu;Cp=1;var e=Y0(),t=po();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Gu=r,Gu}var Ku,$p;function V0(){if($p)return Ku;$p=1;var e=jd();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Ku=t,Ku}var SS=V0();const Je=ce(SS);var Yu,kp;function AS(){if(kp)return Yu;kp=1;function e(t){return t==null}return Yu=e,Yu}var PS=AS();const Z=ce(PS);var Vu,Np;function jS(){if(Np)return Vu;Np=1;var e=Rt(),t=Ge(),r=qt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Vu=i,Vu}var TS=jS();const mr=ce(TS);var ES=Od();const V=ce(ES);var MS=Xt();const wn=ce(MS);var Xu={exports:{}},ie={};var Ip;function CS(){if(Ip)return ie;Ip=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(h){if(typeof h=="object"&&h!==null){var g=h.$$typeof;switch(g){case e:switch(h=h.type,h){case r:case i:case n:case c:case f:return h;default:switch(h=h&&h.$$typeof,h){case u:case o:case s:case d:case l:case a:return h;default:return g}}case t:return g}}}return ie.ContextConsumer=o,ie.ContextProvider=a,ie.Element=e,ie.ForwardRef=s,ie.Fragment=r,ie.Lazy=d,ie.Memo=l,ie.Portal=t,ie.Profiler=i,ie.StrictMode=n,ie.Suspense=c,ie.SuspenseList=f,ie.isAsyncMode=function(){return!1},ie.isConcurrentMode=function(){return!1},ie.isContextConsumer=function(h){return v(h)===o},ie.isContextProvider=function(h){return v(h)===a},ie.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},ie.isForwardRef=function(h){return v(h)===s},ie.isFragment=function(h){return v(h)===r},ie.isLazy=function(h){return v(h)===d},ie.isMemo=function(h){return v(h)===l},ie.isPortal=function(h){return v(h)===t},ie.isProfiler=function(h){return v(h)===i},ie.isStrictMode=function(h){return v(h)===n},ie.isSuspense=function(h){return v(h)===c},ie.isSuspenseList=function(h){return v(h)===f},ie.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===i||h===n||h===c||h===f||h===p||typeof h=="object"&&h!==null&&(h.$$typeof===d||h.$$typeof===l||h.$$typeof===a||h.$$typeof===o||h.$$typeof===s||h.$$typeof===y||h.getModuleId!==void 0)},ie.typeOf=v,ie}var Dp;function $S(){return Dp||(Dp=1,Xu.exports=CS()),Xu.exports}var kS=$S(),Zu,Rp;function X0(){if(Rp)return Zu;Rp=1;var e=Rt(),t=qt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Zu=n,Zu}var Qu,qp;function NS(){if(qp)return Qu;qp=1;var e=X0();function t(r){return e(r)&&r!=+r}return Qu=t,Qu}var IS=NS();const On=ce(IS);var DS=X0();const RS=ce(DS);var Le=function(t){return t===0?0:t>0?1:-1},lr=function(t){return mr(t)&&t.indexOf("%")===t.length-1},L=function(t){return RS(t)&&!On(t)},qS=function(t){return Z(t)},Ee=function(t){return L(t)||mr(t)},LS=0,_n=function(t){var r=++LS;return"".concat(t||"").concat(r)},Be=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(!L(t)&&!mr(t))return n;var a;if(lr(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return On(a)&&(a=n),i&&a>r&&(a=r),a},Gt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},BS=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},ze=function(t,r){return L(t)&&L(r)?function(n){return t+n*(r-t)}:function(){return r}};function fa(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Je(n,t))===r})}var FS=function(t,r){return L(t)&&L(r)?t-r:mr(t)&&mr(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Br(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function ef(e){"@babel/helpers - typeof";return ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ef(e)}var WS=["viewBox","children"],US=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Lp=["points","pathLength"],Ju={svg:WS,polygon:Lp,polyline:Lp},Td=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],da=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(D.isValidElement(t)&&(n=t.props),!wn(n))return null;var i={};return Object.keys(n).forEach(function(a){Td.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},zS=function(t,r,n){return function(i){return t(r,n,i),null}},gr=function(t,r,n){if(!wn(t)||ef(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Td.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=zS(o,r,n))}),i},HS=["children"],GS=["children"];function Bp(e,t){if(e==null)return{};var r=KS(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KS(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 tf(e){"@babel/helpers - typeof";return tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tf(e)}var Fp={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"},Mt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Wp=null,es=null,Ed=function e(t){if(t===Wp&&Array.isArray(es))return es;var r=[];return D.Children.forEach(t,function(n){Z(n)||(kS.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),es=r,Wp=t,r};function ot(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Mt(i)}):n=[Mt(t)],Ed(e).forEach(function(i){var a=Je(i,"type.displayName")||Je(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ve(e,t){var r=ot(e,t);return r&&r[0]}var Up=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!L(n)||n<=0||!L(i)||i<=0)},YS=["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"],VS=function(t){return t&&t.type&&mr(t.type)&&YS.indexOf(t.type)>=0},XS=function(t){return t&&tf(t)==="object"&&"clipDot"in t},ZS=function(t,r,n,i){var a,o=(a=Ju?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!V(t)&&(i&&o.includes(r)||US.includes(r))||n&&Td.includes(r)},G=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(D.isValidElement(t)&&(i=t.props),!wn(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;ZS((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},rf=function e(t,r){if(t===r)return!0;var n=D.Children.count(t);if(n!==D.Children.count(r))return!1;if(n===0)return!0;if(n===1)return zp(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!zp(a,o))return!1}return!0},zp=function(t,r){if(Z(t)&&Z(r))return!0;if(!Z(t)&&!Z(r)){var n=t.props||{},i=n.children,a=Bp(n,HS),o=r.props||{},u=o.children,s=Bp(o,GS);return i&&u?Br(a,s)&&rf(i,u):!i&&!u?Br(a,s):!1}return!1},Hp=function(t,r){var n=[],i={};return Ed(t).forEach(function(a,o){if(VS(a))n.push(a);else if(a){var u=Mt(a.type),s=r[u]||{},c=s.handler,f=s.once;if(c&&(!f||!i[u])){var l=c(a,u,o);n.push(l),i[u]=!0}}}),n},QS=function(t){var r=t&&t.type;return r&&Fp[r]?Fp[r]:null},JS=function(t,r){return Ed(r).indexOf(t)},eA=["children","width","height","viewBox","className","style","title","desc"];function nf(){return nf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nf.apply(this,arguments)}function tA(e,t){if(e==null)return{};var r=rA(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rA(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 af(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,s=e.desc,c=tA(e,eA),f=i||{width:r,height:n,x:0,y:0},l=J("recharts-surface",a);return P.createElement("svg",nf({},G(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),P.createElement("title",null,u),P.createElement("desc",null,s),t)}var nA=["children","className"];function of(){return of=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},of.apply(this,arguments)}function iA(e,t){if(e==null)return{};var r=aA(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function aA(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 te=P.forwardRef(function(e,t){var r=e.children,n=e.className,i=iA(e,nA),a=J("recharts-layer",n);return P.createElement("g",of({className:a},G(i,!0),{ref:t}),r)}),ht=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]},ts,Gp;function oA(){if(Gp)return ts;Gp=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return ts=e,ts}var rs,Kp;function uA(){if(Kp)return rs;Kp=1;var e=oA();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return rs=t,rs}var ns,Yp;function Z0(){if(Yp)return ns;Yp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function s(c){return u.test(c)}return ns=s,ns}var is,Vp;function sA(){if(Vp)return is;Vp=1;function e(t){return t.split("")}return is=e,is}var as,Xp;function cA(){if(Xp)return as;Xp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",s="\\ud83c[\\udffb-\\udfff]",c="(?:"+u+"|"+s+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=c+"?",v="["+a+"]?",h="(?:"+p+"(?:"+[f,l,d].join("|")+")"+v+y+")*",g=v+y+h,x="(?:"+[f+u+"?",u,l,d,o].join("|")+")",w=RegExp(s+"(?="+s+")|"+x+g,"g");function O(m){return m.match(w)||[]}return as=O,as}var os,Zp;function lA(){if(Zp)return os;Zp=1;var e=sA(),t=Z0(),r=cA();function n(i){return t(i)?r(i):e(i)}return os=n,os}var us,Qp;function fA(){if(Qp)return us;Qp=1;var e=uA(),t=Z0(),r=lA(),n=K0();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,s=u?u[0]:o.charAt(0),c=u?e(u,1).join(""):o.slice(1);return s[a]()+c}}return us=i,us}var ss,Jp;function dA(){if(Jp)return ss;Jp=1;var e=fA(),t=e("toUpperCase");return ss=t,ss}var hA=dA();const vo=ce(hA);function de(e){return function(){return e}}const Q0=Math.cos,ha=Math.sin,pt=Math.sqrt,pa=Math.PI,yo=2*pa,uf=Math.PI,sf=2*uf,ur=1e-6,pA=sf-ur;function J0(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function vA(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return J0;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class yA{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?J0:vA(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-t,c=i-r,f=o-t,l=u-r,d=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>ur)if(!(Math.abs(l*s-c*f)>ur)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-u,v=s*s+c*c,h=p*p+y*y,g=Math.sqrt(v),x=Math.sqrt(d),w=a*Math.tan((uf-Math.acos((v+d-h)/(2*g*x)))/2),O=w/x,m=w/g;Math.abs(O-1)>ur&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*p>f*y)},${this._x1=t+m*s},${this._y1=r+m*c}`}}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 u=n*Math.cos(i),s=n*Math.sin(i),c=t+u,f=r+s,l=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>ur||Math.abs(this._y1-f)>ur)&&this._append`L${c},${f}`,n&&(d<0&&(d=d%sf+sf),d>pA?this._append`A${n},${n},0,1,${l},${t-u},${r-s}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:d>ur&&this._append`A${n},${n},0,${+(d>=uf)},${l},${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 Md(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 yA(t)}function Cd(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ex(e){this._context=e}ex.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 mo(e){return new ex(e)}function tx(e){return e[0]}function rx(e){return e[1]}function nx(e,t){var r=de(!0),n=null,i=mo,a=null,o=Md(u);e=typeof e=="function"?e:e===void 0?tx:de(e),t=typeof t=="function"?t:t===void 0?rx:de(t);function u(s){var c,f=(s=Cd(s)).length,l,d=!1,p;for(n==null&&(a=i(p=o())),c=0;c<=f;++c)!(c<f&&r(l=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(l,c,s),+t(l,c,s));if(p)return a=null,p+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:de(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:de(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:de(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function Ki(e,t,r){var n=null,i=de(!0),a=null,o=mo,u=null,s=Md(c);e=typeof e=="function"?e:e===void 0?tx:de(+e),t=typeof t=="function"?t:de(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?rx:de(+r);function c(l){var d,p,y,v=(l=Cd(l)).length,h,g=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=s())),d=0;d<=v;++d){if(!(d<v&&i(h=l[d],d,l))===g)if(g=!g)p=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=d-1;y>=p;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}g&&(w[d]=+e(h,d,l),O[d]=+t(h,d,l),u.point(n?+n(h,d,l):w[d],r?+r(h,d,l):O[d]))}if(x)return u=null,x+""||null}function f(){return nx().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:de(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:de(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:de(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:de(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:de(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:de(+l),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(n).y(t)},c.defined=function(l){return arguments.length?(i=typeof l=="function"?l:de(!!l),c):i},c.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),c):o},c.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),c):a},c}class ix{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 mA(e){return new ix(e,!0)}function gA(e){return new ix(e,!1)}const $d={draw(e,t){const r=pt(t/pa);e.moveTo(r,0),e.arc(0,0,r,0,yo)}},bA={draw(e,t){const r=pt(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()}},ax=pt(1/3),xA=ax*2,wA={draw(e,t){const r=pt(t/xA),n=r*ax;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},OA={draw(e,t){const r=pt(t),n=-r/2;e.rect(n,n,r,r)}},_A=.8908130915292852,ox=ha(pa/10)/ha(7*pa/10),SA=ha(yo/10)*ox,AA=-Q0(yo/10)*ox,PA={draw(e,t){const r=pt(t*_A),n=SA*r,i=AA*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=yo*a/5,u=Q0(o),s=ha(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},cs=pt(3),jA={draw(e,t){const r=-pt(t/(cs*3));e.moveTo(0,r*2),e.lineTo(-cs*r,-r),e.lineTo(cs*r,-r),e.closePath()}},et=-.5,tt=pt(3)/2,cf=1/pt(12),TA=(cf/2+1)*3,EA={draw(e,t){const r=pt(t/TA),n=r/2,i=r*cf,a=n,o=r*cf+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(et*n-tt*i,tt*n+et*i),e.lineTo(et*a-tt*o,tt*a+et*o),e.lineTo(et*u-tt*s,tt*u+et*s),e.lineTo(et*n+tt*i,et*i-tt*n),e.lineTo(et*a+tt*o,et*o-tt*a),e.lineTo(et*u+tt*s,et*s-tt*u),e.closePath()}};function MA(e,t){let r=null,n=Md(i);e=typeof e=="function"?e:de(e||$d),t=typeof t=="function"?t:de(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:de(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:de(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function va(){}function ya(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 ux(e){this._context=e}ux.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:ya(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:ya(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CA(e){return new ux(e)}function sx(e){this._context=e}sx.prototype={areaStart:va,areaEnd:va,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:ya(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $A(e){return new sx(e)}function cx(e){this._context=e}cx.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:ya(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kA(e){return new cx(e)}function lx(e){this._context=e}lx.prototype={areaStart:va,areaEnd:va,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 NA(e){return new lx(e)}function ev(e){return e<0?-1:1}function tv(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),u=(a*i+o*n)/(n+i);return(ev(a)+ev(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function rv(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function ls(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function ma(e){this._context=e}ma.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:ls(this,this._t0,rv(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,ls(this,rv(this,r=tv(this,e,t)),r);break;default:ls(this,this._t0,r=tv(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function fx(e){this._context=new dx(e)}(fx.prototype=Object.create(ma.prototype)).point=function(e,t){ma.prototype.point.call(this,t,e)};function dx(e){this._context=e}dx.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 IA(e){return new ma(e)}function DA(e){return new fx(e)}function hx(e){this._context=e}hx.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=nv(e),i=nv(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function nv(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function RA(e){return new hx(e)}function go(e,t){this._context=e,this._t=t}go.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var 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 qA(e){return new go(e,.5)}function LA(e){return new go(e,0)}function BA(e){return new go(e,1)}function Hr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function lf(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function FA(e,t){return e[t]}function WA(e){const t=[];return t.key=e,t}function UA(){var e=de([]),t=lf,r=Hr,n=FA;function i(a){var o=Array.from(e.apply(this,arguments),WA),u,s=o.length,c=-1,f;for(const l of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(l,o[u].key,c,a)]).data=l;for(u=0,f=Cd(t(o));u<s;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:de(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:de(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?lf:typeof a=="function"?a:de(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Hr,i):r},i}function zA(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Hr(e,t)}}function HA(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}Hr(e,t)}}function GA(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,c=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,d=f[n-1][1]||0,p=(l-d)/2,y=0;y<u;++y){var v=e[t[y]],h=v[n][1]||0,g=v[n-1][1]||0;p+=h-g}s+=l,c+=p*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,Hr(e,t)}}function Qn(e){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qn(e)}var KA=["type","size","sizeType"];function ff(){return ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ff.apply(this,arguments)}function iv(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 av(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iv(Object(r),!0).forEach(function(n){YA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YA(e,t,r){return t=VA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VA(e){var t=XA(e,"string");return Qn(t)=="symbol"?t:t+""}function XA(e,t){if(Qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZA(e,t){if(e==null)return{};var r=QA(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QA(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 px={symbolCircle:$d,symbolCross:bA,symbolDiamond:wA,symbolSquare:OA,symbolStar:PA,symbolTriangle:jA,symbolWye:EA},JA=Math.PI/180,eP=function(t){var r="symbol".concat(vo(t));return px[r]||$d},tP=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*JA;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}},rP=function(t,r){px["symbol".concat(vo(t))]=r},kd=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,s=ZA(t,KA),c=av(av({},s),{},{type:n,size:a,sizeType:u}),f=function(){var h=eP(n),g=MA().type(h).size(tP(a,u,n));return g()},l=c.className,d=c.cx,p=c.cy,y=G(c,!0);return d===+d&&p===+p&&a===+a?P.createElement("path",ff({},y,{className:J("recharts-symbols",l),transform:"translate(".concat(d,", ").concat(p,")"),d:f()})):null};kd.registerSymbol=rP;function Gr(e){"@babel/helpers - typeof";return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gr(e)}function df(){return df=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},df.apply(this,arguments)}function ov(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 nP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ov(Object(r),!0).forEach(function(n){Jn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ov(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aP(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yx(n.key),n)}}function oP(e,t,r){return t&&aP(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uP(e,t,r){return t=ga(t),sP(e,vx()?Reflect.construct(t,r||[],ga(e).constructor):t.apply(e,r))}function sP(e,t){if(t&&(Gr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cP(e)}function cP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vx=function(){return!!e})()}function ga(e){return ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ga(e)}function lP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hf(e,t)}function hf(e,t){return hf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hf(e,t)}function Jn(e,t,r){return t=yx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yx(e){var t=fP(e,"string");return Gr(t)=="symbol"?t:t+""}function fP(e,t){if(Gr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rt=32,Nd=(function(e){function t(){return iP(this,t),uP(this,t,arguments)}return lP(t,e),oP(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=rt/2,o=rt/6,u=rt/3,s=n.inactive?i:n.color;if(n.type==="plainline")return P.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:rt,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return P.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,`
|
|
2
|
+
A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
|
|
3
|
+
H`).concat(rt,"M").concat(2*u,",").concat(a,`
|
|
4
|
+
A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return P.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(rt/8,"h").concat(rt,"v").concat(rt*3/4,"h").concat(-rt,"z"),className:"recharts-legend-icon"});if(P.isValidElement(n.legendIcon)){var c=nP({},n);return delete c.legendIcon,P.cloneElement(n.legendIcon,c)}return P.createElement(kd,{fill:s,cx:a,cy:a,size:rt,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,s=i.formatter,c=i.inactiveColor,f={x:0,y:0,width:rt,height:rt},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var v=p.formatter||s,h=J(Jn(Jn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var g=V(p.value)?null:p.value;ht(!V(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=p.inactive?c:p.color;return P.createElement("li",df({className:h,style:l,key:"legend-item-".concat(y)},gr(n.props,p,y)),P.createElement(af,{width:o,height:o,viewBox:f,style:d},n.renderIcon(p)),P.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(g,p,y):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return P.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(D.PureComponent);Jn(Nd,"displayName","Legend");Jn(Nd,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var fs,uv;function dP(){if(uv)return fs;uv=1;var e=fo();function t(){this.__data__=new e,this.size=0}return fs=t,fs}var ds,sv;function hP(){if(sv)return ds;sv=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return ds=e,ds}var hs,cv;function pP(){if(cv)return hs;cv=1;function e(t){return this.__data__.get(t)}return hs=e,hs}var ps,lv;function vP(){if(lv)return ps;lv=1;function e(t){return this.__data__.has(t)}return ps=e,ps}var vs,fv;function yP(){if(fv)return vs;fv=1;var e=fo(),t=Sd(),r=Ad(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!t||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(s)}return u.set(a,o),this.size=u.size,this}return vs=i,vs}var ys,dv;function mx(){if(dv)return ys;dv=1;var e=fo(),t=dP(),r=hP(),n=pP(),i=vP(),a=yP();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,ys=o,ys}var ms,hv;function mP(){if(hv)return ms;hv=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return ms=t,ms}var gs,pv;function gP(){if(pv)return gs;pv=1;function e(t){return this.__data__.has(t)}return gs=e,gs}var bs,vv;function gx(){if(vv)return bs;vv=1;var e=Ad(),t=mP(),r=gP();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,bs=n,bs}var xs,yv;function bx(){if(yv)return xs;yv=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return xs=e,xs}var ws,mv;function xx(){if(mv)return ws;mv=1;function e(t,r){return t.has(r)}return ws=e,ws}var Os,gv;function wx(){if(gv)return Os;gv=1;var e=gx(),t=bx(),r=xx(),n=1,i=2;function a(o,u,s,c,f,l){var d=s&n,p=o.length,y=u.length;if(p!=y&&!(d&&y>p))return!1;var v=l.get(o),h=l.get(u);if(v&&h)return v==u&&h==o;var g=-1,x=!0,w=s&i?new e:void 0;for(l.set(o,u),l.set(u,o);++g<p;){var O=o[g],m=u[g];if(c)var b=d?c(m,O,g,u,o,l):c(O,m,g,o,u,l);if(b!==void 0){if(b)continue;x=!1;break}if(w){if(!t(u,function(_,A){if(!r(w,A)&&(O===_||f(O,_,s,c,l)))return w.push(A)})){x=!1;break}}else if(!(O===m||f(O,m,s,c,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return Os=a,Os}var _s,bv;function bP(){if(bv)return _s;bv=1;var e=Ot(),t=e.Uint8Array;return _s=t,_s}var Ss,xv;function xP(){if(xv)return Ss;xv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return Ss=e,Ss}var As,wv;function Id(){if(wv)return As;wv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return As=e,As}var Ps,Ov;function wP(){if(Ov)return Ps;Ov=1;var e=Ii(),t=bP(),r=_d(),n=wx(),i=xP(),a=Id(),o=1,u=2,s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",d="[object Number]",p="[object RegExp]",y="[object Set]",v="[object String]",h="[object Symbol]",g="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function m(b,_,A,T,$,j,M){switch(A){case x:if(b.byteLength!=_.byteLength||b.byteOffset!=_.byteOffset)return!1;b=b.buffer,_=_.buffer;case g:return!(b.byteLength!=_.byteLength||!j(new t(b),new t(_)));case s:case c:case d:return r(+b,+_);case f:return b.name==_.name&&b.message==_.message;case p:case v:return b==_+"";case l:var C=i;case y:var k=T&o;if(C||(C=a),b.size!=_.size&&!k)return!1;var E=M.get(b);if(E)return E==_;T|=u,M.set(b,_);var I=n(C(b),C(_),T,$,j,M);return M.delete(b),I;case h:if(O)return O.call(b)==O.call(_)}return!1}return Ps=m,Ps}var js,_v;function Ox(){if(_v)return js;_v=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return js=e,js}var Ts,Sv;function OP(){if(Sv)return Ts;Sv=1;var e=Ox(),t=Ge();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Ts=r,Ts}var Es,Av;function _P(){if(Av)return Es;Av=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var u=t[n];r(u,n,t)&&(o[a++]=u)}return o}return Es=e,Es}var Ms,Pv;function SP(){if(Pv)return Ms;Pv=1;function e(){return[]}return Ms=e,Ms}var Cs,jv;function AP(){if(jv)return Cs;jv=1;var e=_P(),t=SP(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:t;return Cs=a,Cs}var $s,Tv;function PP(){if(Tv)return $s;Tv=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return $s=e,$s}var ks,Ev;function jP(){if(Ev)return ks;Ev=1;var e=Rt(),t=qt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return ks=n,ks}var Ns,Mv;function Dd(){if(Mv)return Ns;Mv=1;var e=jP(),t=qt(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Ns=a,Ns}var Bn={exports:{}},Is,Cv;function TP(){if(Cv)return Is;Cv=1;function e(){return!1}return Is=e,Is}Bn.exports;var $v;function _x(){return $v||($v=1,(function(e,t){var r=Ot(),n=TP(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,s=u?u.isBuffer:void 0,c=s||n;e.exports=c})(Bn,Bn.exports)),Bn.exports}var Ds,kv;function Rd(){if(kv)return Ds;kv=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Ds=r,Ds}var Rs,Nv;function qd(){if(Nv)return Rs;Nv=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Rs=t,Rs}var qs,Iv;function EP(){if(Iv)return qs;Iv=1;var e=Rt(),t=qd(),r=qt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",d="[object RegExp]",p="[object Set]",y="[object String]",v="[object WeakMap]",h="[object ArrayBuffer]",g="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",m="[object Int16Array]",b="[object Int32Array]",_="[object Uint8Array]",A="[object Uint8ClampedArray]",T="[object Uint16Array]",$="[object Uint32Array]",j={};j[x]=j[w]=j[O]=j[m]=j[b]=j[_]=j[A]=j[T]=j[$]=!0,j[n]=j[i]=j[h]=j[a]=j[g]=j[o]=j[u]=j[s]=j[c]=j[f]=j[l]=j[d]=j[p]=j[y]=j[v]=!1;function M(C){return r(C)&&t(C.length)&&!!j[e(C)]}return qs=M,qs}var Ls,Dv;function Sx(){if(Dv)return Ls;Dv=1;function e(t){return function(r){return t(r)}}return Ls=e,Ls}var Fn={exports:{}};Fn.exports;var Rv;function MP(){return Rv||(Rv=1,(function(e,t){var r=z0(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=(function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(Fn,Fn.exports)),Fn.exports}var Bs,qv;function Ax(){if(qv)return Bs;qv=1;var e=EP(),t=Sx(),r=MP(),n=r&&r.isTypedArray,i=n?t(n):e;return Bs=i,Bs}var Fs,Lv;function CP(){if(Lv)return Fs;Lv=1;var e=PP(),t=Dd(),r=Ge(),n=_x(),i=Rd(),a=Ax(),o=Object.prototype,u=o.hasOwnProperty;function s(c,f){var l=r(c),d=!l&&t(c),p=!l&&!d&&n(c),y=!l&&!d&&!p&&a(c),v=l||d||p||y,h=v?e(c.length,String):[],g=h.length;for(var x in c)(f||u.call(c,x))&&!(v&&(x=="length"||p&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,g)))&&h.push(x);return h}return Fs=s,Fs}var Ws,Bv;function $P(){if(Bv)return Ws;Bv=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Ws=t,Ws}var Us,Fv;function Px(){if(Fv)return Us;Fv=1;function e(t,r){return function(n){return t(r(n))}}return Us=e,Us}var zs,Wv;function kP(){if(Wv)return zs;Wv=1;var e=Px(),t=e(Object.keys,Object);return zs=t,zs}var Hs,Uv;function NP(){if(Uv)return Hs;Uv=1;var e=$P(),t=kP(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return Hs=i,Hs}var Gs,zv;function Di(){if(zv)return Gs;zv=1;var e=Od(),t=qd();function r(n){return n!=null&&t(n.length)&&!e(n)}return Gs=r,Gs}var Ks,Hv;function bo(){if(Hv)return Ks;Hv=1;var e=CP(),t=NP(),r=Di();function n(i){return r(i)?e(i):t(i)}return Ks=n,Ks}var Ys,Gv;function IP(){if(Gv)return Ys;Gv=1;var e=OP(),t=AP(),r=bo();function n(i){return e(i,r,t)}return Ys=n,Ys}var Vs,Kv;function DP(){if(Kv)return Vs;Kv=1;var e=IP(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,c,f){var l=u&t,d=e(a),p=d.length,y=e(o),v=y.length;if(p!=v&&!l)return!1;for(var h=p;h--;){var g=d[h];if(!(l?g in o:n.call(o,g)))return!1}var x=f.get(a),w=f.get(o);if(x&&w)return x==o&&w==a;var O=!0;f.set(a,o),f.set(o,a);for(var m=l;++h<p;){g=d[h];var b=a[g],_=o[g];if(s)var A=l?s(_,b,g,o,a,f):s(b,_,g,a,o,f);if(!(A===void 0?b===_||c(b,_,u,s,f):A)){O=!1;break}m||(m=g=="constructor")}if(O&&!m){var T=a.constructor,$=o.constructor;T!=$&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof $=="function"&&$ instanceof $)&&(O=!1)}return f.delete(a),f.delete(o),O}return Vs=i,Vs}var Xs,Yv;function RP(){if(Yv)return Xs;Yv=1;var e=_r(),t=Ot(),r=e(t,"DataView");return Xs=r,Xs}var Zs,Vv;function qP(){if(Vv)return Zs;Vv=1;var e=_r(),t=Ot(),r=e(t,"Promise");return Zs=r,Zs}var Qs,Xv;function jx(){if(Xv)return Qs;Xv=1;var e=_r(),t=Ot(),r=e(t,"Set");return Qs=r,Qs}var Js,Zv;function LP(){if(Zv)return Js;Zv=1;var e=_r(),t=Ot(),r=e(t,"WeakMap");return Js=r,Js}var ec,Qv;function BP(){if(Qv)return ec;Qv=1;var e=RP(),t=Sd(),r=qP(),n=jx(),i=LP(),a=Rt(),o=H0(),u="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",d="[object DataView]",p=o(e),y=o(t),v=o(r),h=o(n),g=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=d||t&&x(new t)!=u||r&&x(r.resolve())!=c||n&&x(new n)!=f||i&&x(new i)!=l)&&(x=function(w){var O=a(w),m=O==s?w.constructor:void 0,b=m?o(m):"";if(b)switch(b){case p:return d;case y:return u;case v:return c;case h:return f;case g:return l}return O}),ec=x,ec}var tc,Jv;function FP(){if(Jv)return tc;Jv=1;var e=mx(),t=wx(),r=wP(),n=DP(),i=BP(),a=Ge(),o=_x(),u=Ax(),s=1,c="[object Arguments]",f="[object Array]",l="[object Object]",d=Object.prototype,p=d.hasOwnProperty;function y(v,h,g,x,w,O){var m=a(v),b=a(h),_=m?f:i(v),A=b?f:i(h);_=_==c?l:_,A=A==c?l:A;var T=_==l,$=A==l,j=_==A;if(j&&o(v)){if(!o(h))return!1;m=!0,T=!1}if(j&&!T)return O||(O=new e),m||u(v)?t(v,h,g,x,w,O):r(v,h,_,g,x,w,O);if(!(g&s)){var M=T&&p.call(v,"__wrapped__"),C=$&&p.call(h,"__wrapped__");if(M||C){var k=M?v.value():v,E=C?h.value():h;return O||(O=new e),w(k,E,g,x,O)}}return j?(O||(O=new e),n(v,h,g,x,w,O)):!1}return tc=y,tc}var rc,ey;function Ld(){if(ey)return rc;ey=1;var e=FP(),t=qt();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,u)}return rc=r,rc}var nc,ty;function WP(){if(ty)return nc;ty=1;var e=mx(),t=Ld(),r=1,n=2;function i(a,o,u,s){var c=u.length,f=c,l=!s;if(a==null)return!f;for(a=Object(a);c--;){var d=u[c];if(l&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++c<f;){d=u[c];var p=d[0],y=a[p],v=d[1];if(l&&d[2]){if(y===void 0&&!(p in a))return!1}else{var h=new e;if(s)var g=s(y,v,p,a,o,h);if(!(g===void 0?t(v,y,r|n,s,h):g))return!1}}return!0}return nc=i,nc}var ic,ry;function Tx(){if(ry)return ic;ry=1;var e=Xt();function t(r){return r===r&&!e(r)}return ic=t,ic}var ac,ny;function UP(){if(ny)return ac;ny=1;var e=Tx(),t=bo();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return ac=r,ac}var oc,iy;function Ex(){if(iy)return oc;iy=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return oc=e,oc}var uc,ay;function zP(){if(ay)return uc;ay=1;var e=WP(),t=UP(),r=Ex();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return uc=n,uc}var sc,oy;function HP(){if(oy)return sc;oy=1;function e(t,r){return t!=null&&r in Object(t)}return sc=e,sc}var cc,uy;function GP(){if(uy)return cc;uy=1;var e=Y0(),t=Dd(),r=Ge(),n=Rd(),i=qd(),a=po();function o(u,s,c){s=e(s,u);for(var f=-1,l=s.length,d=!1;++f<l;){var p=a(s[f]);if(!(d=u!=null&&c(u,p)))break;u=u[p]}return d||++f!=l?d:(l=u==null?0:u.length,!!l&&i(l)&&n(p,l)&&(r(u)||t(u)))}return cc=o,cc}var lc,sy;function KP(){if(sy)return lc;sy=1;var e=HP(),t=GP();function r(n,i){return n!=null&&t(n,i,e)}return lc=r,lc}var fc,cy;function YP(){if(cy)return fc;cy=1;var e=Ld(),t=V0(),r=KP(),n=wd(),i=Tx(),a=Ex(),o=po(),u=1,s=2;function c(f,l){return n(f)&&i(l)?a(o(f),l):function(d){var p=t(d,f);return p===void 0&&p===l?r(d,f):e(l,p,u|s)}}return fc=c,fc}var dc,ly;function Sn(){if(ly)return dc;ly=1;function e(t){return t}return dc=e,dc}var hc,fy;function VP(){if(fy)return hc;fy=1;function e(t){return function(r){return r?.[t]}}return hc=e,hc}var pc,dy;function XP(){if(dy)return pc;dy=1;var e=jd();function t(r){return function(n){return e(n,r)}}return pc=t,pc}var vc,hy;function ZP(){if(hy)return vc;hy=1;var e=VP(),t=XP(),r=wd(),n=po();function i(a){return r(a)?e(n(a)):t(a)}return vc=i,vc}var yc,py;function _t(){if(py)return yc;py=1;var e=zP(),t=YP(),r=Sn(),n=Ge(),i=ZP();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return yc=a,yc}var mc,vy;function Mx(){if(vy)return mc;vy=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return mc=e,mc}var gc,yy;function QP(){if(yy)return gc;yy=1;function e(t){return t!==t}return gc=e,gc}var bc,my;function JP(){if(my)return bc;my=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return bc=e,bc}var xc,gy;function ej(){if(gy)return xc;gy=1;var e=Mx(),t=QP(),r=JP();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return xc=n,xc}var wc,by;function tj(){if(by)return wc;by=1;var e=ej();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return wc=t,wc}var Oc,xy;function rj(){if(xy)return Oc;xy=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return Oc=e,Oc}var _c,wy;function nj(){if(wy)return _c;wy=1;function e(){}return _c=e,_c}var Sc,Oy;function ij(){if(Oy)return Sc;Oy=1;var e=jx(),t=nj(),r=Id(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Sc=i,Sc}var Ac,_y;function aj(){if(_y)return Ac;_y=1;var e=gx(),t=tj(),r=rj(),n=xx(),i=ij(),a=Id(),o=200;function u(s,c,f){var l=-1,d=t,p=s.length,y=!0,v=[],h=v;if(f)y=!1,d=r;else if(p>=o){var g=c?null:i(s);if(g)return a(g);y=!1,d=n,h=new e}else h=c?[]:v;e:for(;++l<p;){var x=s[l],w=c?c(x):x;if(x=f||x!==0?x:0,y&&w===w){for(var O=h.length;O--;)if(h[O]===w)continue e;c&&h.push(w),v.push(x)}else d(h,w,f)||(h!==v&&h.push(w),v.push(x))}return v}return Ac=u,Ac}var Pc,Sy;function oj(){if(Sy)return Pc;Sy=1;var e=_t(),t=aj();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Pc=r,Pc}var uj=oj();const Ay=ce(uj);function Cx(e,t,r){return t===!0?Ay(e,r):V(t)?Ay(e,t):e}function Kr(e){"@babel/helpers - typeof";return Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kr(e)}var sj=["ref"];function Py(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 St(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Py(Object(r),!0).forEach(function(n){xo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Py(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jy(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kx(n.key),n)}}function lj(e,t,r){return t&&jy(e.prototype,t),r&&jy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fj(e,t,r){return t=ba(t),dj(e,$x()?Reflect.construct(t,r||[],ba(e).constructor):t.apply(e,r))}function dj(e,t){if(t&&(Kr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hj(e)}function hj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($x=function(){return!!e})()}function ba(e){return ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ba(e)}function pj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pf(e,t)}function pf(e,t){return pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pf(e,t)}function xo(e,t,r){return t=kx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kx(e){var t=vj(e,"string");return Kr(t)=="symbol"?t:t+""}function vj(e,t){if(Kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function yj(e,t){if(e==null)return{};var r=mj(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mj(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 gj(e){return e.value}function bj(e,t){if(P.isValidElement(e))return P.cloneElement(e,t);if(typeof e=="function")return P.createElement(e,t);t.ref;var r=yj(t,sj);return P.createElement(Nd,r)}var Ty=1,Fr=(function(e){function t(){var r;cj(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=fj(this,t,[].concat(i)),xo(r,"lastBoundingBox",{width:-1,height:-1}),r}return pj(t,e),lj(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Ty||Math.abs(i.height-this.lastBoundingBox.height)>Ty)&&(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?St({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,s=i.margin,c=i.chartWidth,f=i.chartHeight,l,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();l={left:((c||0)-p.width)/2}}else l=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();d={top:((f||0)-y.height)/2}}else d=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return St(St({},l),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,s=i.wrapperStyle,c=i.payloadUniqBy,f=i.payload,l=St(St({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return P.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(p){n.wrapperNode=p}},bj(a,St(St({},this.props),{},{payload:Cx(f,c,gj)})))}}],[{key:"getWithHeight",value:function(n,i){var a=St(St({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&L(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(D.PureComponent);xo(Fr,"displayName","Legend");xo(Fr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var jc,Ey;function xj(){if(Ey)return jc;Ey=1;var e=Ii(),t=Dd(),r=Ge(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return jc=i,jc}var Tc,My;function Nx(){if(My)return Tc;My=1;var e=Ox(),t=xj();function r(n,i,a,o,u){var s=-1,c=n.length;for(a||(a=t),u||(u=[]);++s<c;){var f=n[s];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return Tc=r,Tc}var Ec,Cy;function wj(){if(Cy)return Ec;Cy=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),s=u.length;s--;){var c=u[t?s:++a];if(n(o[c],c,o)===!1)break}return r}}return Ec=e,Ec}var Mc,$y;function Oj(){if($y)return Mc;$y=1;var e=wj(),t=e();return Mc=t,Mc}var Cc,ky;function Ix(){if(ky)return Cc;ky=1;var e=Oj(),t=bo();function r(n,i){return n&&e(n,i,t)}return Cc=r,Cc}var $c,Ny;function _j(){if(Ny)return $c;Ny=1;var e=Di();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return $c=t,$c}var kc,Iy;function Bd(){if(Iy)return kc;Iy=1;var e=Ix(),t=_j(),r=t(e);return kc=r,kc}var Nc,Dy;function Dx(){if(Dy)return Nc;Dy=1;var e=Bd(),t=Di();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,s,c){o[++a]=i(u,s,c)}),o}return Nc=r,Nc}var Ic,Ry;function Sj(){if(Ry)return Ic;Ry=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Ic=e,Ic}var Dc,qy;function Aj(){if(qy)return Dc;qy=1;var e=xn();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),s=n!==void 0,c=n===null,f=n===n,l=e(n);if(!c&&!l&&!u&&r>n||u&&s&&f&&!c&&!l||a&&s&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||c&&i&&o||!s&&o||!f)return-1}return 0}return Dc=t,Dc}var Rc,Ly;function Pj(){if(Ly)return Rc;Ly=1;var e=Aj();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,s=o.length,c=i.length;++a<s;){var f=e(o[a],u[a]);if(f){if(a>=c)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return Rc=t,Rc}var qc,By;function jj(){if(By)return qc;By=1;var e=Pd(),t=jd(),r=_t(),n=Dx(),i=Sj(),a=Sx(),o=Pj(),u=Sn(),s=Ge();function c(f,l,d){l.length?l=e(l,function(v){return s(v)?function(h){return t(h,v.length===1?v[0]:v)}:v}):l=[u];var p=-1;l=e(l,a(r));var y=n(f,function(v,h,g){var x=e(l,function(w){return w(v)});return{criteria:x,index:++p,value:v}});return i(y,function(v,h){return o(v,h,d)})}return qc=c,qc}var Lc,Fy;function Tj(){if(Fy)return Lc;Fy=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Lc=e,Lc}var Bc,Wy;function Ej(){if(Wy)return Bc;Wy=1;var e=Tj(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,s=t(o.length-i,0),c=Array(s);++u<s;)c[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(c),e(n,this,f)}}return Bc=r,Bc}var Fc,Uy;function Mj(){if(Uy)return Fc;Uy=1;function e(t){return function(){return t}}return Fc=e,Fc}var Wc,zy;function Rx(){if(zy)return Wc;zy=1;var e=_r(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Wc=t,Wc}var Uc,Hy;function Cj(){if(Hy)return Uc;Hy=1;var e=Mj(),t=Rx(),r=Sn(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Uc=n,Uc}var zc,Gy;function $j(){if(Gy)return zc;Gy=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),s=t-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return zc=n,zc}var Hc,Ky;function kj(){if(Ky)return Hc;Ky=1;var e=Cj(),t=$j(),r=t(e);return Hc=r,Hc}var Gc,Yy;function Nj(){if(Yy)return Gc;Yy=1;var e=Sn(),t=Ej(),r=kj();function n(i,a){return r(t(i,a,e),i+"")}return Gc=n,Gc}var Kc,Vy;function wo(){if(Vy)return Kc;Vy=1;var e=_d(),t=Di(),r=Rd(),n=Xt();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?t(u)&&r(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return Kc=i,Kc}var Yc,Xy;function Ij(){if(Xy)return Yc;Xy=1;var e=Nx(),t=jj(),r=Nj(),n=wo(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Yc=i,Yc}var Dj=Ij();const Fd=ce(Dj);function ei(e){"@babel/helpers - typeof";return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ei(e)}function vf(){return vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vf.apply(this,arguments)}function Rj(e,t){return Fj(e)||Bj(e,t)||Lj(e,t)||qj()}function qj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lj(e,t){if(e){if(typeof e=="string")return Zy(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 Zy(e,t)}}function Zy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Bj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function Fj(e){if(Array.isArray(e))return e}function Qy(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 Vc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qy(Object(r),!0).forEach(function(n){Wj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wj(e,t,r){return t=Uj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uj(e){var t=zj(e,"string");return ei(t)=="symbol"?t:t+""}function zj(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hj(e){return Array.isArray(e)&&Ee(e[0])&&Ee(e[1])?e.join(" ~ "):e}var Gj=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,s=t.labelStyle,c=s===void 0?{}:s,f=t.payload,l=t.formatter,d=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,v=t.label,h=t.labelFormatter,g=t.accessibilityLayer,x=g===void 0?!1:g,w=function(){if(f&&f.length){var M={padding:0,margin:0},C=(d?Fd(f,d):f).map(function(k,E){if(k.type==="none")return null;var I=Vc({display:"block",paddingTop:4,paddingBottom:4,color:k.color||"#000"},u),R=k.formatter||l||Hj,B=k.value,F=k.name,H=B,Y=F;if(R&&H!=null&&Y!=null){var U=R(B,F,k,E,f);if(Array.isArray(U)){var X=Rj(U,2);H=X[0],Y=X[1]}else H=U}return P.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(E),style:I},Ee(Y)?P.createElement("span",{className:"recharts-tooltip-item-name"},Y):null,Ee(Y)?P.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,P.createElement("span",{className:"recharts-tooltip-item-value"},H),P.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return P.createElement("ul",{className:"recharts-tooltip-item-list",style:M},C)}return null},O=Vc({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=Vc({margin:0},c),b=!Z(v),_=b?v:"",A=J("recharts-default-tooltip",p),T=J("recharts-tooltip-label",y);b&&h&&f!==void 0&&f!==null&&(_=h(v,f));var $=x?{role:"status","aria-live":"assertive"}:{};return P.createElement("div",vf({className:A,style:O},$),P.createElement("p",{className:T,style:m},P.isValidElement(_)?_:"".concat(_)),w())};function ti(e){"@babel/helpers - typeof";return ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ti(e)}function Yi(e,t,r){return t=Kj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kj(e){var t=Yj(e,"string");return ti(t)=="symbol"?t:t+""}function Yj(e,t){if(ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cn="recharts-tooltip-wrapper",Vj={visibility:"hidden"};function Xj(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return J(Cn,Yi(Yi(Yi(Yi({},"".concat(Cn,"-right"),L(r)&&t&&L(t.x)&&r>=t.x),"".concat(Cn,"-left"),L(r)&&t&&L(t.x)&&r<t.x),"".concat(Cn,"-bottom"),L(n)&&t&&L(t.y)&&n>=t.y),"".concat(Cn,"-top"),L(n)&&t&&L(t.y)&&n<t.y))}function Jy(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&L(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var d=f,p=s[n];return d<p?Math.max(l,s[n]):Math.max(f,s[n])}var y=l+u,v=s[n]+c;return y>v?Math.max(f,s[n]):Math.max(l,s[n])}function Zj(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 Qj(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox,c,f,l;return o.height>0&&o.width>0&&r?(f=Jy({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=Jy({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=Zj({translateX:f,translateY:l,useTranslate3d:u})):c=Vj,{cssProperties:c,cssClasses:Xj({translateX:f,translateY:l,coordinate:r})}}function Yr(e){"@babel/helpers - typeof";return Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yr(e)}function em(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 tm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?em(Object(r),!0).forEach(function(n){mf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):em(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Lx(n.key),n)}}function tT(e,t,r){return t&&eT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rT(e,t,r){return t=xa(t),nT(e,qx()?Reflect.construct(t,r||[],xa(e).constructor):t.apply(e,r))}function nT(e,t){if(t&&(Yr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iT(e)}function iT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qx=function(){return!!e})()}function xa(e){return xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xa(e)}function aT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yf(e,t)}function yf(e,t){return yf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yf(e,t)}function mf(e,t,r){return t=Lx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lx(e){var t=oT(e,"string");return Yr(t)=="symbol"?t:t+""}function oT(e,t){if(Yr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rm=1,uT=(function(e){function t(){var r;Jj(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=rT(this,t,[].concat(i)),mf(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),mf(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,c,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(s=r.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&u!==void 0?u:0,y:(c=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),r}return aT(t,e),tT(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>rm||Math.abs(n.height-this.state.lastBoundingBox.height)>rm)&&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,u=i.animationDuration,s=i.animationEasing,c=i.children,f=i.coordinate,l=i.hasPayload,d=i.isAnimationActive,p=i.offset,y=i.position,v=i.reverseDirection,h=i.useTranslate3d,g=i.viewBox,x=i.wrapperStyle,w=Qj({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:g}),O=w.cssClasses,m=w.cssProperties,b=tm(tm({transition:d&&a?"transform ".concat(u,"ms ").concat(s):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return P.createElement("div",{tabIndex:-1,className:O,style:b,ref:function(A){n.wrapperNode=A}},c)}}])})(D.PureComponent),sT=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Sr={isSsr:sT()};function Vr(e){"@babel/helpers - typeof";return Vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vr(e)}function nm(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 im(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nm(Object(r),!0).forEach(function(n){Wd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Fx(n.key),n)}}function fT(e,t,r){return t&&lT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dT(e,t,r){return t=wa(t),hT(e,Bx()?Reflect.construct(t,r||[],wa(e).constructor):t.apply(e,r))}function hT(e,t){if(t&&(Vr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pT(e)}function pT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bx=function(){return!!e})()}function wa(e){return wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wa(e)}function vT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gf(e,t)}function gf(e,t){return gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gf(e,t)}function Wd(e,t,r){return t=Fx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fx(e){var t=yT(e,"string");return Vr(t)=="symbol"?t:t+""}function yT(e,t){if(Vr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function mT(e){return e.dataKey}function gT(e,t){return P.isValidElement(e)?P.cloneElement(e,t):typeof e=="function"?P.createElement(e,t):P.createElement(Gj,t)}var lt=(function(e){function t(){return cT(this,t),dT(this,t,arguments)}return vT(t,e),fT(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.content,f=i.coordinate,l=i.filterNull,d=i.isAnimationActive,p=i.offset,y=i.payload,v=i.payloadUniqBy,h=i.position,g=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=Cx(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,mT));var b=m.length>0;return P.createElement(uT,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:d,active:a,coordinate:f,hasPayload:b,offset:p,position:h,reverseDirection:g,useTranslate3d:x,viewBox:w,wrapperStyle:O},gT(c,im(im({},this.props),{},{payload:m})))}}])})(D.PureComponent);Wd(lt,"displayName","Tooltip");Wd(lt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Sr.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 Xc,am;function bT(){if(am)return Xc;am=1;var e=Ot(),t=function(){return e.Date.now()};return Xc=t,Xc}var Zc,om;function xT(){if(om)return Zc;om=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Zc=t,Zc}var Qc,um;function wT(){if(um)return Qc;um=1;var e=xT(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Qc=r,Qc}var Jc,sm;function Wx(){if(sm)return Jc;sm=1;var e=wT(),t=Xt(),r=xn(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function s(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=t(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=e(c);var l=a.test(c);return l||o.test(c)?u(c.slice(2),l?2:8):i.test(c)?n:+c}return Jc=s,Jc}var el,cm;function OT(){if(cm)return el;cm=1;var e=Xt(),t=bT(),r=Wx(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,c){var f,l,d,p,y,v,h=0,g=!1,x=!1,w=!0;if(typeof u!="function")throw new TypeError(n);s=r(s)||0,e(c)&&(g=!!c.leading,x="maxWait"in c,d=x?i(r(c.maxWait)||0,s):d,w="trailing"in c?!!c.trailing:w);function O(C){var k=f,E=l;return f=l=void 0,h=C,p=u.apply(E,k),p}function m(C){return h=C,y=setTimeout(A,s),g?O(C):p}function b(C){var k=C-v,E=C-h,I=s-k;return x?a(I,d-E):I}function _(C){var k=C-v,E=C-h;return v===void 0||k>=s||k<0||x&&E>=d}function A(){var C=t();if(_(C))return T(C);y=setTimeout(A,b(C))}function T(C){return y=void 0,w&&f?O(C):(f=l=void 0,p)}function $(){y!==void 0&&clearTimeout(y),h=0,f=v=l=y=void 0}function j(){return y===void 0?p:T(t())}function M(){var C=t(),k=_(C);if(f=arguments,l=this,v=C,k){if(y===void 0)return m(v);if(x)return clearTimeout(y),y=setTimeout(A,s),O(v)}return y===void 0&&(y=setTimeout(A,s)),p}return M.cancel=$,M.flush=j,M}return el=o,el}var tl,lm;function _T(){if(lm)return tl;lm=1;var e=OT(),t=Xt(),r="Expected a function";function n(i,a,o){var u=!0,s=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,s="trailing"in o?!!o.trailing:s),e(i,a,{leading:u,maxWait:a,trailing:s})}return tl=n,tl}var ST=_T();const Ux=ce(ST);function ri(e){"@babel/helpers - typeof";return ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ri(e)}function fm(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 Vi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fm(Object(r),!0).forEach(function(n){AT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AT(e,t,r){return t=PT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PT(e){var t=jT(e,"string");return ri(t)=="symbol"?t:t+""}function jT(e,t){if(ri(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TT(e,t){return $T(e)||CT(e,t)||MT(e,t)||ET()}function ET(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MT(e,t){if(e){if(typeof e=="string")return dm(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 dm(e,t)}}function dm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function CT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function $T(e){if(Array.isArray(e))return e}var zx=D.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,s=u===void 0?"100%":u,c=e.minWidth,f=c===void 0?0:c,l=e.minHeight,d=e.maxHeight,p=e.children,y=e.debounce,v=y===void 0?0:y,h=e.id,g=e.className,x=e.onResize,w=e.style,O=w===void 0?{}:w,m=D.useRef(null),b=D.useRef();b.current=x,D.useImperativeHandle(t,function(){return Object.defineProperty(m.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),m.current},configurable:!0})});var _=D.useState({containerWidth:i.width,containerHeight:i.height}),A=TT(_,2),T=A[0],$=A[1],j=D.useCallback(function(C,k){$(function(E){var I=Math.round(C),R=Math.round(k);return E.containerWidth===I&&E.containerHeight===R?E:{containerWidth:I,containerHeight:R}})},[]);D.useEffect(function(){var C=function(F){var H,Y=F[0].contentRect,U=Y.width,X=Y.height;j(U,X),(H=b.current)===null||H===void 0||H.call(b,U,X)};v>0&&(C=Ux(C,v,{trailing:!0,leading:!1}));var k=new ResizeObserver(C),E=m.current.getBoundingClientRect(),I=E.width,R=E.height;return j(I,R),k.observe(m.current),function(){k.disconnect()}},[j,v]);var M=D.useMemo(function(){var C=T.containerWidth,k=T.containerHeight;if(C<0||k<0)return null;ht(lr(o)||lr(s),`The width(%s) and height(%s) are both fixed numbers,
|
|
7
|
+
maybe you don't need to use a ResponsiveContainer.`,o,s),ht(!r||r>0,"The aspect(%s) must be greater than zero.",r);var E=lr(o)?C:o,I=lr(s)?k:s;r&&r>0&&(E?I=E/r:I&&(E=I*r),d&&I>d&&(I=d)),ht(E>0||I>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
8
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
9
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
10
|
+
height and width.`,E,I,o,s,f,l,r);var R=!Array.isArray(p)&&Mt(p.type).endsWith("Chart");return P.Children.map(p,function(B){return P.isValidElement(B)?D.cloneElement(B,Vi({width:E,height:I},R?{style:Vi({height:"100%",width:"100%",maxHeight:I,maxWidth:E},B.props.style)}:{})):B})},[r,p,s,d,l,f,T,o]);return P.createElement("div",{id:h?"".concat(h):void 0,className:J("recharts-responsive-container",g),style:Vi(Vi({},O),{},{width:o,height:s,minWidth:f,minHeight:l,maxHeight:d}),ref:m},M)}),Oo=function(t){return null};Oo.displayName="Cell";function ni(e){"@babel/helpers - typeof";return ni=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ni(e)}function hm(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 bf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hm(Object(r),!0).forEach(function(n){kT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kT(e,t,r){return t=NT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NT(e){var t=IT(e,"string");return ni(t)=="symbol"?t:t+""}function IT(e,t){if(ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $r={widthCache:{},cacheCount:0},DT=2e3,RT={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},pm="recharts_measurement_span";function qT(e){var t=bf({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Hn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Sr.isSsr)return{width:0,height:0};var n=qT(r),i=JSON.stringify({text:t,copyStyle:n});if($r.widthCache[i])return $r.widthCache[i];try{var a=document.getElementById(pm);a||(a=document.createElement("span"),a.setAttribute("id",pm),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=bf(bf({},RT),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),s={width:u.width,height:u.height};return $r.widthCache[i]=s,++$r.cacheCount>DT&&($r.cacheCount=0,$r.widthCache={}),s}catch{return{width:0,height:0}}},LT=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ii(e){"@babel/helpers - typeof";return ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ii(e)}function Oa(e,t){return UT(e)||WT(e,t)||FT(e,t)||BT()}function BT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FT(e,t){if(e){if(typeof e=="string")return vm(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 vm(e,t)}}function vm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function WT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function UT(e){if(Array.isArray(e))return e}function zT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ym(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GT(n.key),n)}}function HT(e,t,r){return t&&ym(e.prototype,t),r&&ym(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function GT(e){var t=KT(e,"string");return ii(t)=="symbol"?t:t+""}function KT(e,t){if(ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mm=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,gm=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,YT=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,VT=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Hx={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},XT=Object.keys(Hx),Ir="NaN";function ZT(e,t){return e*Hx[t]}var Xi=(function(){function e(t,r){zT(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!YT.test(r)&&(this.num=NaN,this.unit=""),XT.includes(r)&&(this.num=ZT(t,r),this.unit="px")}return HT(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=VT.exec(r))!==null&&n!==void 0?n:[],a=Oa(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function Gx(e){if(e.includes(Ir))return Ir;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=mm.exec(t))!==null&&r!==void 0?r:[],i=Oa(n,4),a=i[1],o=i[2],u=i[3],s=Xi.parse(a??""),c=Xi.parse(u??""),f=o==="*"?s.multiply(c):s.divide(c);if(f.isNaN())return Ir;t=t.replace(mm,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,d=(l=gm.exec(t))!==null&&l!==void 0?l:[],p=Oa(d,4),y=p[1],v=p[2],h=p[3],g=Xi.parse(y??""),x=Xi.parse(h??""),w=v==="+"?g.add(x):g.subtract(x);if(w.isNaN())return Ir;t=t.replace(gm,w.toString())}return t}var bm=/\(([^()]*)\)/;function QT(e){for(var t=e;t.includes("(");){var r=bm.exec(t),n=Oa(r,2),i=n[1];t=t.replace(bm,Gx(i))}return t}function JT(e){var t=e.replace(/\s+/g,"");return t=QT(t),t=Gx(t),t}function eE(e){try{return JT(e)}catch{return Ir}}function rl(e){var t=eE(e.slice(5,-1));return t===Ir?"":t}var tE=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],rE=["dx","dy","angle","className","breakAll"];function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xf.apply(this,arguments)}function xm(e,t){if(e==null)return{};var r=nE(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nE(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 wm(e,t){return uE(e)||oE(e,t)||aE(e,t)||iE()}function iE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
12
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aE(e,t){if(e){if(typeof e=="string")return Om(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 Om(e,t)}}function Om(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function oE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function uE(e){if(Array.isArray(e))return e}var Kx=/[ \f\n\r\t\v\u2028\u2029]+/,Yx=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Z(r)||(n?a=r.toString().split(""):a=r.toString().split(Kx));var o=a.map(function(s){return{word:s,width:Hn(s,i).width}}),u=n?0:Hn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},sE=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,c=t.breakAll,f=L(o),l=u,d=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return E.reduce(function(I,R){var B=R.word,F=R.width,H=I[I.length-1];if(H&&(i==null||a||H.width+F+n<Number(i)))H.words.push(B),H.width+=F+n;else{var Y={words:[B],width:F};I.push(Y)}return I},[])},p=d(r),y=function(E){return E.reduce(function(I,R){return I.width>R.width?I:R})};if(!f)return p;for(var v="…",h=function(E){var I=l.slice(0,E),R=Yx({breakAll:c,style:s,children:I+v}).wordsWithComputedWidth,B=d(R),F=B.length>o||y(B).width>Number(i);return[F,B]},g=0,x=l.length-1,w=0,O;g<=x&&w<=l.length-1;){var m=Math.floor((g+x)/2),b=m-1,_=h(b),A=wm(_,2),T=A[0],$=A[1],j=h(m),M=wm(j,1),C=M[0];if(!T&&!C&&(g=m+1),T&&C&&(x=m-1),!T&&C){O=$;break}w++}return O||p},_m=function(t){var r=Z(t)?[]:t.toString().split(Kx);return[{words:r}]},cE=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!Sr.isSsr){var s,c,f=Yx({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,d=f.spaceWidth;s=l,c=d}else return _m(i);return sE({breakAll:o,children:i,maxLines:u,style:a},s,c,r,n)}return _m(i)},Sm="#808080",br=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,s=t.capHeight,c=s===void 0?"0.71em":s,f=t.scaleToFit,l=f===void 0?!1:f,d=t.textAnchor,p=d===void 0?"start":d,y=t.verticalAnchor,v=y===void 0?"end":y,h=t.fill,g=h===void 0?Sm:h,x=xm(t,tE),w=D.useMemo(function(){return cE({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:l,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,l,x.style,x.width]),O=x.dx,m=x.dy,b=x.angle,_=x.className,A=x.breakAll,T=xm(x,rE);if(!Ee(n)||!Ee(a))return null;var $=n+(L(O)?O:0),j=a+(L(m)?m:0),M;switch(v){case"start":M=rl("calc(".concat(c,")"));break;case"middle":M=rl("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:M=rl("calc(".concat(w.length-1," * -").concat(u,")"));break}var C=[];if(l){var k=w[0].width,E=x.width;C.push("scale(".concat((L(E)?E/k:1)/k,")"))}return b&&C.push("rotate(".concat(b,", ").concat($,", ").concat(j,")")),C.length&&(T.transform=C.join(" ")),P.createElement("text",xf({},G(T,!0),{x:$,y:j,className:J("recharts-text",_),textAnchor:p,fill:g.includes("url")?Sm:g}),w.map(function(I,R){var B=I.words.join(A?"":" ");return P.createElement("tspan",{x:$,dy:R===0?M:u,key:"".concat(B,"-").concat(R)},B)}))};function Vt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function lE(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ud(e){let t,r,n;e.length!==2?(t=Vt,r=(u,s)=>Vt(e(u),s),n=(u,s)=>e(u)-s):(t=e===Vt||e===lE?e:fE,r=e,n=e);function i(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<0?c=l+1:f=l}while(c<f)}return c}function a(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<=0?c=l+1:f=l}while(c<f)}return c}function o(u,s,c=0,f=u.length){const l=i(u,s,c,f-1);return l>c&&n(u[l-1],s)>-n(u[l],s)?l-1:l}return{left:i,center:o,right:a}}function fE(){return 0}function Vx(e){return e===null?NaN:+e}function*dE(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const hE=Ud(Vt),Ri=hE.right;Ud(Vx).center;class Am extends Map{constructor(t,r=yE){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(Pm(this,t))}has(t){return super.has(Pm(this,t))}set(t,r){return super.set(pE(this,t),r)}delete(t){return super.delete(vE(this,t))}}function Pm({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function pE({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function vE({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function yE(e){return e!==null&&typeof e=="object"?e.valueOf():e}function mE(e=Vt){if(e===Vt)return Xx;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 Xx(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const gE=Math.sqrt(50),bE=Math.sqrt(10),xE=Math.sqrt(2);function _a(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>=gE?10:a>=bE?5:a>=xE?2:1;let u,s,c;return i<0?(c=Math.pow(10,-i)/o,u=Math.round(e*c),s=Math.round(t*c),u/c<e&&++u,s/c>t&&--s,c=-c):(c=Math.pow(10,i)*o,u=Math.round(e/c),s=Math.round(t/c),u*c<e&&++u,s*c>t&&--s),s<u&&.5<=r&&r<2?_a(e,t,r*2):[u,s,c]}function wf(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?_a(t,e,r):_a(e,t,r);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(n)if(o<0)for(let c=0;c<u;++c)s[c]=(a-c)/-o;else for(let c=0;c<u;++c)s[c]=(a-c)*o;else if(o<0)for(let c=0;c<u;++c)s[c]=(i+c)/-o;else for(let c=0;c<u;++c)s[c]=(i+c)*o;return s}function Of(e,t,r){return t=+t,e=+e,r=+r,_a(e,t,r)[2]}function _f(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Of(t,e,r):Of(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function jm(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Tm(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Zx(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?Xx:mE(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,f=Math.log(s),l=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*l*(s-l)/s)*(c-s/2<0?-1:1),p=Math.max(r,Math.floor(t-c*l/s+d)),y=Math.min(n,Math.floor(t+(s-c)*l/s+d));Zx(e,t,p,y,i)}const a=e[t];let o=r,u=n;for($n(e,r,t),i(e[n],a)>0&&$n(e,r,n);o<u;){for($n(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?$n(e,r,u):(++u,$n(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function $n(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function wE(e,t,r){if(e=Float64Array.from(dE(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Tm(e);if(t>=1)return jm(e);var n,i=(n-1)*t,a=Math.floor(i),o=jm(Zx(e,a).subarray(0,a+1)),u=Tm(e.subarray(a+1));return o+(u-o)*(i-a)}}function OE(e,t,r=Vx){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),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function _E(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<i;)a[n]=e+n*r;return a}function st(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Lt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Sf=Symbol("implicit");function zd(){var e=new Am,t=[],r=[],n=Sf;function i(a){let o=e.get(a);if(o===void 0){if(n!==Sf)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Am;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return zd(t,r).unknown(n)},st.apply(i,arguments),i}function ai(){var e=zd().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,c=0,f=.5;delete e.unknown;function l(){var d=t().length,p=i<n,y=p?i:n,v=p?n:i;a=(v-y)/Math.max(1,d-s+c*2),u&&(a=Math.floor(a)),y+=(v-y-a*(d-s))*f,o=a*(1-s),u&&(y=Math.round(y),o=Math.round(o));var h=_E(d).map(function(g){return y+a*g});return r(p?h.reverse():h)}return e.domain=function(d){return arguments.length?(t(d),l()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(u=!!d,l()):u},e.padding=function(d){return arguments.length?(s=Math.min(1,c=+d),l()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),l()):s},e.paddingOuter=function(d){return arguments.length?(c=+d,l()):c},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),l()):f},e.copy=function(){return ai(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(f)},st.apply(l(),arguments)}function Qx(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Qx(t())},e}function Gn(){return Qx(ai.apply(null,arguments).paddingInner(1))}function Hd(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Jx(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function qi(){}var oi=.7,Sa=1/oi,Wr="\\s*([+-]?\\d+)\\s*",ui="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",SE=/^#([0-9a-f]{3,8})$/,AE=new RegExp(`^rgb\\(${Wr},${Wr},${Wr}\\)$`),PE=new RegExp(`^rgb\\(${mt},${mt},${mt}\\)$`),jE=new RegExp(`^rgba\\(${Wr},${Wr},${Wr},${ui}\\)$`),TE=new RegExp(`^rgba\\(${mt},${mt},${mt},${ui}\\)$`),EE=new RegExp(`^hsl\\(${ui},${mt},${mt}\\)$`),ME=new RegExp(`^hsla\\(${ui},${mt},${mt},${ui}\\)$`),Em={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Hd(qi,si,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Mm,formatHex:Mm,formatHex8:CE,formatHsl:$E,formatRgb:Cm,toString:Cm});function Mm(){return this.rgb().formatHex()}function CE(){return this.rgb().formatHex8()}function $E(){return ew(this).formatHsl()}function Cm(){return this.rgb().formatRgb()}function si(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=SE.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?$m(t):r===3?new He(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Zi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Zi(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=AE.exec(e))?new He(t[1],t[2],t[3],1):(t=PE.exec(e))?new He(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=jE.exec(e))?Zi(t[1],t[2],t[3],t[4]):(t=TE.exec(e))?Zi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=EE.exec(e))?Im(t[1],t[2]/100,t[3]/100,1):(t=ME.exec(e))?Im(t[1],t[2]/100,t[3]/100,t[4]):Em.hasOwnProperty(e)?$m(Em[e]):e==="transparent"?new He(NaN,NaN,NaN,0):null}function $m(e){return new He(e>>16&255,e>>8&255,e&255,1)}function Zi(e,t,r,n){return n<=0&&(e=t=r=NaN),new He(e,t,r,n)}function kE(e){return e instanceof qi||(e=si(e)),e?(e=e.rgb(),new He(e.r,e.g,e.b,e.opacity)):new He}function Af(e,t,r,n){return arguments.length===1?kE(e):new He(e,t,r,n??1)}function He(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Hd(He,Af,Jx(qi,{brighter(e){return e=e==null?Sa:Math.pow(Sa,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?oi:Math.pow(oi,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new He(vr(this.r),vr(this.g),vr(this.b),Aa(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:km,formatHex:km,formatHex8:NE,formatRgb:Nm,toString:Nm}));function km(){return`#${fr(this.r)}${fr(this.g)}${fr(this.b)}`}function NE(){return`#${fr(this.r)}${fr(this.g)}${fr(this.b)}${fr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Nm(){const e=Aa(this.opacity);return`${e===1?"rgb(":"rgba("}${vr(this.r)}, ${vr(this.g)}, ${vr(this.b)}${e===1?")":`, ${e})`}`}function Aa(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function vr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function fr(e){return e=vr(e),(e<16?"0":"")+e.toString(16)}function Im(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new dt(e,t,r,n)}function ew(e){if(e instanceof dt)return new dt(e.h,e.s,e.l,e.opacity);if(e instanceof qi||(e=si(e)),!e)return new dt;if(e instanceof dt)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,u=a-i,s=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new dt(o,u,s,e.opacity)}function IE(e,t,r,n){return arguments.length===1?ew(e):new dt(e,t,r,n??1)}function dt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Hd(dt,IE,Jx(qi,{brighter(e){return e=e==null?Sa:Math.pow(Sa,e),new dt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?oi:Math.pow(oi,e),new dt(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 He(nl(e>=240?e-240:e+120,i,n),nl(e,i,n),nl(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new dt(Dm(this.h),Qi(this.s),Qi(this.l),Aa(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=Aa(this.opacity);return`${e===1?"hsl(":"hsla("}${Dm(this.h)}, ${Qi(this.s)*100}%, ${Qi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Dm(e){return e=(e||0)%360,e<0?e+360:e}function Qi(e){return Math.max(0,Math.min(1,e||0))}function nl(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 Gd=e=>()=>e;function DE(e,t){return function(r){return e+r*t}}function RE(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 qE(e){return(e=+e)==1?tw:function(t,r){return r-t?RE(t,r,e):Gd(isNaN(t)?r:t)}}function tw(e,t){var r=t-e;return r?DE(e,r):Gd(isNaN(e)?t:e)}const Rm=(function e(t){var r=qE(t);function n(i,a){var o=r((i=Af(i)).r,(a=Af(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=tw(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=s(f),i.opacity=c(f),i+""}}return n.gamma=e,n})(1);function LE(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function BE(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function FE(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=An(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function WE(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Pa(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function UE(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=An(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Pf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,il=new RegExp(Pf.source,"g");function zE(e){return function(){return e}}function HE(e){return function(t){return e(t)+""}}function GE(e,t){var r=Pf.lastIndex=il.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=Pf.exec(e))&&(i=il.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:Pa(n,i)})),r=il.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?HE(s[0].x):zE(t):(t=s.length,function(c){for(var f=0,l;f<t;++f)u[(l=s[f]).i]=l.x(c);return u.join("")})}function An(e,t){var r=typeof t,n;return t==null||r==="boolean"?Gd(t):(r==="number"?Pa:r==="string"?(n=si(t))?(t=n,Rm):GE:t instanceof si?Rm:t instanceof Date?WE:BE(t)?LE:Array.isArray(t)?FE:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?UE:Pa)(e,t)}function Kd(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function KE(e,t){t===void 0&&(t=e,e=An);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function YE(e){return function(){return e}}function ja(e){return+e}var qm=[0,1];function Fe(e){return e}function jf(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:YE(isNaN(t)?NaN:.5)}function VE(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function XE(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=jf(i,n),a=r(o,a)):(n=jf(n,i),a=r(a,o)),function(u){return a(n(u))}}function ZE(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=jf(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=Ri(e,u,1,n)-1;return a[s](i[s](u))}}function Li(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function _o(){var e=qm,t=qm,r=An,n,i,a,o=Fe,u,s,c;function f(){var d=Math.min(e.length,t.length);return o!==Fe&&(o=VE(e[0],e[d-1])),u=d>2?ZE:XE,s=c=null,l}function l(d){return d==null||isNaN(d=+d)?a:(s||(s=u(e.map(n),t,r)))(n(o(d)))}return l.invert=function(d){return o(i((c||(c=u(t,e.map(n),Pa)))(d)))},l.domain=function(d){return arguments.length?(e=Array.from(d,ja),f()):e.slice()},l.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},l.rangeRound=function(d){return t=Array.from(d),r=Kd,f()},l.clamp=function(d){return arguments.length?(o=d?!0:Fe,f()):o!==Fe},l.interpolate=function(d){return arguments.length?(r=d,f()):r},l.unknown=function(d){return arguments.length?(a=d,l):a},function(d,p){return n=d,i=p,f()}}function Yd(){return _o()(Fe,Fe)}function QE(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ta(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 Xr(e){return e=Ta(Math.abs(e)),e?e[1]:NaN}function JE(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function eM(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var tM=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ci(e){if(!(t=tM.exec(e)))throw new Error("invalid format: "+e);var t;return new Vd({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]})}ci.prototype=Vd.prototype;function Vd(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+""}Vd.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 rM(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var rw;function nM(e,t){var r=Ta(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(rw=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")+Ta(e,Math.max(0,t+a-1))[0]}function Lm(e,t){var r=Ta(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 Bm={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:QE,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)=>Lm(e*100,t),r:Lm,s:nM,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Fm(e){return e}var Wm=Array.prototype.map,Um=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function iM(e){var t=e.grouping===void 0||e.thousands===void 0?Fm:JE(Wm.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?Fm:eM(Wm.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(l){l=ci(l);var d=l.fill,p=l.align,y=l.sign,v=l.symbol,h=l.zero,g=l.width,x=l.comma,w=l.precision,O=l.trim,m=l.type;m==="n"?(x=!0,m="g"):Bm[m]||(w===void 0&&(w=12),O=!0,m="g"),(h||d==="0"&&p==="=")&&(h=!0,d="0",p="=");var b=v==="$"?r:v==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_=v==="$"?n:/[%p]/.test(m)?o:"",A=Bm[m],T=/[defgprs%]/.test(m);w=w===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function $(j){var M=b,C=_,k,E,I;if(m==="c")C=A(j)+C,j="";else{j=+j;var R=j<0||1/j<0;if(j=isNaN(j)?s:A(Math.abs(j),w),O&&(j=rM(j)),R&&+j==0&&y!=="+"&&(R=!1),M=(R?y==="("?y:u:y==="-"||y==="("?"":y)+M,C=(m==="s"?Um[8+rw/3]:"")+C+(R&&y==="("?")":""),T){for(k=-1,E=j.length;++k<E;)if(I=j.charCodeAt(k),48>I||I>57){C=(I===46?i+j.slice(k+1):j.slice(k))+C,j=j.slice(0,k);break}}}x&&!h&&(j=t(j,1/0));var B=M.length+j.length+C.length,F=B<g?new Array(g-B+1).join(d):"";switch(x&&h&&(j=t(F+j,F.length?g-C.length:1/0),F=""),p){case"<":j=M+j+C+F;break;case"=":j=M+F+j+C;break;case"^":j=F.slice(0,B=F.length>>1)+M+j+C+F.slice(B);break;default:j=F+M+j+C;break}return a(j)}return $.toString=function(){return l+""},$}function f(l,d){var p=c((l=ci(l),l.type="f",l)),y=Math.max(-8,Math.min(8,Math.floor(Xr(d)/3)))*3,v=Math.pow(10,-y),h=Um[8+y/3];return function(g){return p(v*g)+h}}return{format:c,formatPrefix:f}}var Ji,Xd,nw;aM({thousands:",",grouping:[3],currency:["$",""]});function aM(e){return Ji=iM(e),Xd=Ji.format,nw=Ji.formatPrefix,Ji}function oM(e){return Math.max(0,-Xr(Math.abs(e)))}function uM(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Xr(t)/3)))*3-Xr(Math.abs(e)))}function sM(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Xr(t)-Xr(e))+1}function iw(e,t,r,n){var i=_f(e,t,r),a;switch(n=ci(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=uM(i,o))&&(n.precision=a),nw(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=sM(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=oM(i))&&(n.precision=a-(n.type==="%")*2);break}}return Xd(n)}function Zt(e){var t=e.domain;return e.ticks=function(r){var n=t();return wf(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return iw(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],u=n[a],s,c,f=10;for(u<o&&(c=o,o=u,u=c,c=i,i=a,a=c);f-- >0;){if(c=Of(o,u,r),c===s)return n[i]=o,n[a]=u,t(n);if(c>0)o=Math.floor(o/c)*c,u=Math.ceil(u/c)*c;else if(c<0)o=Math.ceil(o*c)/c,u=Math.floor(u*c)/c;else break;s=c}return e},e}function Ea(){var e=Yd();return e.copy=function(){return Li(e,Ea())},st.apply(e,arguments),Zt(e)}function aw(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,ja),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return aw(e).unknown(t)},e=arguments.length?Array.from(e,ja):[0,1],Zt(r)}function ow(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function zm(e){return Math.log(e)}function Hm(e){return Math.exp(e)}function cM(e){return-Math.log(-e)}function lM(e){return-Math.exp(-e)}function fM(e){return isFinite(e)?+("1e"+e):e<0?0:e}function dM(e){return e===10?fM:e===Math.E?Math.exp:t=>Math.pow(e,t)}function hM(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 Gm(e){return(t,r)=>-e(-t,r)}function Zd(e){const t=e(zm,Hm),r=t.domain;let n=10,i,a;function o(){return i=hM(n),a=dM(n),r()[0]<0?(i=Gm(i),a=Gm(a),e(cM,lM)):e(zm,Hm),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const s=r();let c=s[0],f=s[s.length-1];const l=f<c;l&&([c,f]=[f,c]);let d=i(c),p=i(f),y,v;const h=u==null?10:+u;let g=[];if(!(n%1)&&p-d<h){if(d=Math.floor(d),p=Math.ceil(p),c>0){for(;d<=p;++d)for(y=1;y<n;++y)if(v=d<0?y/a(-d):y*a(d),!(v<c)){if(v>f)break;g.push(v)}}else for(;d<=p;++d)for(y=n-1;y>=1;--y)if(v=d>0?y/a(-d):y*a(d),!(v<c)){if(v>f)break;g.push(v)}g.length*2<h&&(g=wf(c,f,h))}else g=wf(d,p,Math.min(p-d,h)).map(a);return l?g.reverse():g},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=ci(s)).precision==null&&(s.trim=!0),s=Xd(s)),u===1/0)return s;const c=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=c?s(f):""}},t.nice=()=>r(ow(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function uw(){const e=Zd(_o()).domain([1,10]);return e.copy=()=>Li(e,uw()).base(e.base()),st.apply(e,arguments),e}function Km(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Ym(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Qd(e){var t=1,r=e(Km(t),Ym(t));return r.constant=function(n){return arguments.length?e(Km(t=+n),Ym(t)):t},Zt(r)}function sw(){var e=Qd(_o());return e.copy=function(){return Li(e,sw()).constant(e.constant())},st.apply(e,arguments)}function Vm(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function pM(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function vM(e){return e<0?-e*e:e*e}function Jd(e){var t=e(Fe,Fe),r=1;function n(){return r===1?e(Fe,Fe):r===.5?e(pM,vM):e(Vm(r),Vm(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Zt(t)}function eh(){var e=Jd(_o());return e.copy=function(){return Li(e,eh()).exponent(e.exponent())},st.apply(e,arguments),e}function yM(){return eh.apply(null,arguments).exponent(.5)}function Xm(e){return Math.sign(e)*e*e}function mM(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function cw(){var e=Yd(),t=[0,1],r=!1,n;function i(a){var o=mM(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Xm(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,ja)).map(Xm)),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 cw(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},st.apply(i,arguments),Zt(i)}function lw(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=OE(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Ri(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(Vt),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return lw().domain(e).range(t).unknown(n)},st.apply(a,arguments)}function fw(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Ri(n,s,0,r)]:a}function u(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,u()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,u()):i.slice()},o.invertExtent=function(s){var c=i.indexOf(s);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return fw().domain([e,t]).range(i).unknown(a)},st.apply(Zt(o),arguments)}function dw(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Ri(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 dw().domain(e).range(t).unknown(r)},st.apply(i,arguments)}const al=new Date,ol=new Date;function Me(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),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let c;do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=a=>Me(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(al.setTime(+a),ol.setTime(+o),e(al),e(ol),Math.floor(r(al,ol))),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 Ma=Me(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ma.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Me(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ma);Ma.range;const jt=1e3,at=jt*60,Tt=at*60,kt=Tt*24,th=kt*7,Zm=kt*30,ul=kt*365,dr=Me(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*jt)},(e,t)=>(t-e)/jt,e=>e.getUTCSeconds());dr.range;const rh=Me(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jt)},(e,t)=>{e.setTime(+e+t*at)},(e,t)=>(t-e)/at,e=>e.getMinutes());rh.range;const nh=Me(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*at)},(e,t)=>(t-e)/at,e=>e.getUTCMinutes());nh.range;const ih=Me(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*jt-e.getMinutes()*at)},(e,t)=>{e.setTime(+e+t*Tt)},(e,t)=>(t-e)/Tt,e=>e.getHours());ih.range;const ah=Me(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Tt)},(e,t)=>(t-e)/Tt,e=>e.getUTCHours());ah.range;const Bi=Me(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*at)/kt,e=>e.getDate()-1);Bi.range;const So=Me(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/kt,e=>e.getUTCDate()-1);So.range;const hw=Me(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/kt,e=>Math.floor(e/kt));hw.range;function Ar(e){return Me(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())*at)/th)}const Ao=Ar(0),Ca=Ar(1),gM=Ar(2),bM=Ar(3),Zr=Ar(4),xM=Ar(5),wM=Ar(6);Ao.range;Ca.range;gM.range;bM.range;Zr.range;xM.range;wM.range;function Pr(e){return Me(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)/th)}const Po=Pr(0),$a=Pr(1),OM=Pr(2),_M=Pr(3),Qr=Pr(4),SM=Pr(5),AM=Pr(6);Po.range;$a.range;OM.range;_M.range;Qr.range;SM.range;AM.range;const oh=Me(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());oh.range;const uh=Me(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());uh.range;const Nt=Me(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());Nt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Me(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)});Nt.range;const It=Me(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());It.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Me(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)});It.range;function pw(e,t,r,n,i,a){const o=[[dr,1,jt],[dr,5,5*jt],[dr,15,15*jt],[dr,30,30*jt],[a,1,at],[a,5,5*at],[a,15,15*at],[a,30,30*at],[i,1,Tt],[i,3,3*Tt],[i,6,6*Tt],[i,12,12*Tt],[n,1,kt],[n,2,2*kt],[r,1,th],[t,1,Zm],[t,3,3*Zm],[e,1,ul]];function u(c,f,l){const d=f<c;d&&([c,f]=[f,c]);const p=l&&typeof l.range=="function"?l:s(c,f,l),y=p?p.range(c,+f+1):[];return d?y.reverse():y}function s(c,f,l){const d=Math.abs(f-c)/l,p=Ud(([,,h])=>h).right(o,d);if(p===o.length)return e.every(_f(c/ul,f/ul,l));if(p===0)return Ma.every(Math.max(_f(c,f,l),1));const[y,v]=o[d/o[p-1][2]<o[p][2]/d?p-1:p];return y.every(v)}return[u,s]}const[PM,jM]=pw(It,uh,Po,hw,ah,nh),[TM,EM]=pw(Nt,oh,Ao,Bi,ih,rh);function sl(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function cl(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function kn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function MM(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,c=Nn(i),f=In(i),l=Nn(a),d=In(a),p=Nn(o),y=In(o),v=Nn(u),h=In(u),g=Nn(s),x=In(s),w={a:R,A:B,b:F,B:H,c:null,d:ng,e:ng,f:JM,g:cC,G:fC,H:XM,I:ZM,j:QM,L:vw,m:eC,M:tC,p:Y,q:U,Q:og,s:ug,S:rC,u:nC,U:iC,V:aC,w:oC,W:uC,x:null,X:null,y:sC,Y:lC,Z:dC,"%":ag},O={a:X,A:pe,b:be,B:Ke,c:null,d:ig,e:ig,f:yC,g:PC,G:TC,H:hC,I:pC,j:vC,L:mw,m:mC,M:gC,p:er,q:We,Q:og,s:ug,S:bC,u:xC,U:wC,V:OC,w:_C,W:SC,x:null,X:null,y:AC,Y:jC,Z:EC,"%":ag},m={a:$,A:j,b:M,B:C,c:k,d:tg,e:tg,f:GM,g:eg,G:Jm,H:rg,I:rg,j:WM,L:HM,m:FM,M:UM,p:T,q:BM,Q:YM,s:VM,S:zM,u:IM,U:DM,V:RM,w:NM,W:qM,x:E,X:I,y:eg,Y:Jm,Z:LM,"%":KM};w.x=b(r,w),w.X=b(n,w),w.c=b(t,w),O.x=b(r,O),O.X=b(n,O),O.c=b(t,O);function b(W,Q){return function(ee){var q=[],me=-1,re=0,Se=W.length,Ae,Ue,Ft;for(ee instanceof Date||(ee=new Date(+ee));++me<Se;)W.charCodeAt(me)===37&&(q.push(W.slice(re,me)),(Ue=Qm[Ae=W.charAt(++me)])!=null?Ae=W.charAt(++me):Ue=Ae==="e"?" ":"0",(Ft=Q[Ae])&&(Ae=Ft(ee,Ue)),q.push(Ae),re=me+1);return q.push(W.slice(re,me)),q.join("")}}function _(W,Q){return function(ee){var q=kn(1900,void 0,1),me=A(q,W,ee+="",0),re,Se;if(me!=ee.length)return null;if("Q"in q)return new Date(q.Q);if("s"in q)return new Date(q.s*1e3+("L"in q?q.L:0));if(Q&&!("Z"in q)&&(q.Z=0),"p"in q&&(q.H=q.H%12+q.p*12),q.m===void 0&&(q.m="q"in q?q.q:0),"V"in q){if(q.V<1||q.V>53)return null;"w"in q||(q.w=1),"Z"in q?(re=cl(kn(q.y,0,1)),Se=re.getUTCDay(),re=Se>4||Se===0?$a.ceil(re):$a(re),re=So.offset(re,(q.V-1)*7),q.y=re.getUTCFullYear(),q.m=re.getUTCMonth(),q.d=re.getUTCDate()+(q.w+6)%7):(re=sl(kn(q.y,0,1)),Se=re.getDay(),re=Se>4||Se===0?Ca.ceil(re):Ca(re),re=Bi.offset(re,(q.V-1)*7),q.y=re.getFullYear(),q.m=re.getMonth(),q.d=re.getDate()+(q.w+6)%7)}else("W"in q||"U"in q)&&("w"in q||(q.w="u"in q?q.u%7:"W"in q?1:0),Se="Z"in q?cl(kn(q.y,0,1)).getUTCDay():sl(kn(q.y,0,1)).getDay(),q.m=0,q.d="W"in q?(q.w+6)%7+q.W*7-(Se+5)%7:q.w+q.U*7-(Se+6)%7);return"Z"in q?(q.H+=q.Z/100|0,q.M+=q.Z%100,cl(q)):sl(q)}}function A(W,Q,ee,q){for(var me=0,re=Q.length,Se=ee.length,Ae,Ue;me<re;){if(q>=Se)return-1;if(Ae=Q.charCodeAt(me++),Ae===37){if(Ae=Q.charAt(me++),Ue=m[Ae in Qm?Q.charAt(me++):Ae],!Ue||(q=Ue(W,ee,q))<0)return-1}else if(Ae!=ee.charCodeAt(q++))return-1}return q}function T(W,Q,ee){var q=c.exec(Q.slice(ee));return q?(W.p=f.get(q[0].toLowerCase()),ee+q[0].length):-1}function $(W,Q,ee){var q=p.exec(Q.slice(ee));return q?(W.w=y.get(q[0].toLowerCase()),ee+q[0].length):-1}function j(W,Q,ee){var q=l.exec(Q.slice(ee));return q?(W.w=d.get(q[0].toLowerCase()),ee+q[0].length):-1}function M(W,Q,ee){var q=g.exec(Q.slice(ee));return q?(W.m=x.get(q[0].toLowerCase()),ee+q[0].length):-1}function C(W,Q,ee){var q=v.exec(Q.slice(ee));return q?(W.m=h.get(q[0].toLowerCase()),ee+q[0].length):-1}function k(W,Q,ee){return A(W,t,Q,ee)}function E(W,Q,ee){return A(W,r,Q,ee)}function I(W,Q,ee){return A(W,n,Q,ee)}function R(W){return o[W.getDay()]}function B(W){return a[W.getDay()]}function F(W){return s[W.getMonth()]}function H(W){return u[W.getMonth()]}function Y(W){return i[+(W.getHours()>=12)]}function U(W){return 1+~~(W.getMonth()/3)}function X(W){return o[W.getUTCDay()]}function pe(W){return a[W.getUTCDay()]}function be(W){return s[W.getUTCMonth()]}function Ke(W){return u[W.getUTCMonth()]}function er(W){return i[+(W.getUTCHours()>=12)]}function We(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var Q=b(W+="",w);return Q.toString=function(){return W},Q},parse:function(W){var Q=_(W+="",!1);return Q.toString=function(){return W},Q},utcFormat:function(W){var Q=b(W+="",O);return Q.toString=function(){return W},Q},utcParse:function(W){var Q=_(W+="",!0);return Q.toString=function(){return W},Q}}}var Qm={"-":"",_:" ",0:"0"},ke=/^\s*\d+/,CM=/^%/,$M=/[\\^$*+?|[\]().{}]/g;function ne(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function kM(e){return e.replace($M,"\\$&")}function Nn(e){return new RegExp("^(?:"+e.map(kM).join("|")+")","i")}function In(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function NM(e,t,r){var n=ke.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function IM(e,t,r){var n=ke.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function DM(e,t,r){var n=ke.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function RM(e,t,r){var n=ke.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function qM(e,t,r){var n=ke.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Jm(e,t,r){var n=ke.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function eg(e,t,r){var n=ke.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function LM(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 BM(e,t,r){var n=ke.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function FM(e,t,r){var n=ke.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function tg(e,t,r){var n=ke.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function WM(e,t,r){var n=ke.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function rg(e,t,r){var n=ke.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function UM(e,t,r){var n=ke.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function zM(e,t,r){var n=ke.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function HM(e,t,r){var n=ke.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function GM(e,t,r){var n=ke.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function KM(e,t,r){var n=CM.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function YM(e,t,r){var n=ke.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function VM(e,t,r){var n=ke.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function ng(e,t){return ne(e.getDate(),t,2)}function XM(e,t){return ne(e.getHours(),t,2)}function ZM(e,t){return ne(e.getHours()%12||12,t,2)}function QM(e,t){return ne(1+Bi.count(Nt(e),e),t,3)}function vw(e,t){return ne(e.getMilliseconds(),t,3)}function JM(e,t){return vw(e,t)+"000"}function eC(e,t){return ne(e.getMonth()+1,t,2)}function tC(e,t){return ne(e.getMinutes(),t,2)}function rC(e,t){return ne(e.getSeconds(),t,2)}function nC(e){var t=e.getDay();return t===0?7:t}function iC(e,t){return ne(Ao.count(Nt(e)-1,e),t,2)}function yw(e){var t=e.getDay();return t>=4||t===0?Zr(e):Zr.ceil(e)}function aC(e,t){return e=yw(e),ne(Zr.count(Nt(e),e)+(Nt(e).getDay()===4),t,2)}function oC(e){return e.getDay()}function uC(e,t){return ne(Ca.count(Nt(e)-1,e),t,2)}function sC(e,t){return ne(e.getFullYear()%100,t,2)}function cC(e,t){return e=yw(e),ne(e.getFullYear()%100,t,2)}function lC(e,t){return ne(e.getFullYear()%1e4,t,4)}function fC(e,t){var r=e.getDay();return e=r>=4||r===0?Zr(e):Zr.ceil(e),ne(e.getFullYear()%1e4,t,4)}function dC(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ne(t/60|0,"0",2)+ne(t%60,"0",2)}function ig(e,t){return ne(e.getUTCDate(),t,2)}function hC(e,t){return ne(e.getUTCHours(),t,2)}function pC(e,t){return ne(e.getUTCHours()%12||12,t,2)}function vC(e,t){return ne(1+So.count(It(e),e),t,3)}function mw(e,t){return ne(e.getUTCMilliseconds(),t,3)}function yC(e,t){return mw(e,t)+"000"}function mC(e,t){return ne(e.getUTCMonth()+1,t,2)}function gC(e,t){return ne(e.getUTCMinutes(),t,2)}function bC(e,t){return ne(e.getUTCSeconds(),t,2)}function xC(e){var t=e.getUTCDay();return t===0?7:t}function wC(e,t){return ne(Po.count(It(e)-1,e),t,2)}function gw(e){var t=e.getUTCDay();return t>=4||t===0?Qr(e):Qr.ceil(e)}function OC(e,t){return e=gw(e),ne(Qr.count(It(e),e)+(It(e).getUTCDay()===4),t,2)}function _C(e){return e.getUTCDay()}function SC(e,t){return ne($a.count(It(e)-1,e),t,2)}function AC(e,t){return ne(e.getUTCFullYear()%100,t,2)}function PC(e,t){return e=gw(e),ne(e.getUTCFullYear()%100,t,2)}function jC(e,t){return ne(e.getUTCFullYear()%1e4,t,4)}function TC(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Qr(e):Qr.ceil(e),ne(e.getUTCFullYear()%1e4,t,4)}function EC(){return"+0000"}function ag(){return"%"}function og(e){return+e}function ug(e){return Math.floor(+e/1e3)}var kr,bw,xw;MC({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 MC(e){return kr=MM(e),bw=kr.format,kr.parse,xw=kr.utcFormat,kr.utcParse,kr}function CC(e){return new Date(e)}function $C(e){return e instanceof Date?+e:+new Date(+e)}function sh(e,t,r,n,i,a,o,u,s,c){var f=Yd(),l=f.invert,d=f.domain,p=c(".%L"),y=c(":%S"),v=c("%I:%M"),h=c("%I %p"),g=c("%a %d"),x=c("%b %d"),w=c("%B"),O=c("%Y");function m(b){return(s(b)<b?p:u(b)<b?y:o(b)<b?v:a(b)<b?h:n(b)<b?i(b)<b?g:x:r(b)<b?w:O)(b)}return f.invert=function(b){return new Date(l(b))},f.domain=function(b){return arguments.length?d(Array.from(b,$C)):d().map(CC)},f.ticks=function(b){var _=d();return e(_[0],_[_.length-1],b??10)},f.tickFormat=function(b,_){return _==null?m:c(_)},f.nice=function(b){var _=d();return(!b||typeof b.range!="function")&&(b=t(_[0],_[_.length-1],b??10)),b?d(ow(_,b)):f},f.copy=function(){return Li(f,sh(e,t,r,n,i,a,o,u,s,c))},f}function kC(){return st.apply(sh(TM,EM,Nt,oh,Ao,Bi,ih,rh,dr,bw).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function NC(){return st.apply(sh(PM,jM,It,uh,Po,So,ah,nh,dr,xw).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function jo(){var e=0,t=1,r,n,i,a,o=Fe,u=!1,s;function c(l){return l==null||isNaN(l=+l)?s:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}c.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(l){return arguments.length?(u=!!l,c):u},c.interpolator=function(l){return arguments.length?(o=l,c):o};function f(l){return function(d){var p,y;return arguments.length?([p,y]=d,o=l(p,y),c):[o(0),o(1)]}}return c.range=f(An),c.rangeRound=f(Kd),c.unknown=function(l){return arguments.length?(s=l,c):s},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),c}}function Qt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function ww(){var e=Zt(jo()(Fe));return e.copy=function(){return Qt(e,ww())},Lt.apply(e,arguments)}function Ow(){var e=Zd(jo()).domain([1,10]);return e.copy=function(){return Qt(e,Ow()).base(e.base())},Lt.apply(e,arguments)}function _w(){var e=Qd(jo());return e.copy=function(){return Qt(e,_w()).constant(e.constant())},Lt.apply(e,arguments)}function ch(){var e=Jd(jo());return e.copy=function(){return Qt(e,ch()).exponent(e.exponent())},Lt.apply(e,arguments)}function IC(){return ch.apply(null,arguments).exponent(.5)}function Sw(){var e=[],t=Fe;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ri(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Vt),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>wE(e,a/n))},r.copy=function(){return Sw(t).domain(e)},Lt.apply(r,arguments)}function To(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=Fe,f,l=!1,d;function p(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:s),c(l?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(v){return arguments.length?(l=!!v,p):l},p.interpolator=function(v){return arguments.length?(c=v,p):c};function y(v){return function(h){var g,x,w;return arguments.length?([g,x,w]=h,c=KE(v,[g,x,w]),p):[c(0),c(.5),c(1)]}}return p.range=y(An),p.rangeRound=y(Kd),p.unknown=function(v){return arguments.length?(d=v,p):d},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function Aw(){var e=Zt(To()(Fe));return e.copy=function(){return Qt(e,Aw())},Lt.apply(e,arguments)}function Pw(){var e=Zd(To()).domain([.1,1,10]);return e.copy=function(){return Qt(e,Pw()).base(e.base())},Lt.apply(e,arguments)}function jw(){var e=Qd(To());return e.copy=function(){return Qt(e,jw()).constant(e.constant())},Lt.apply(e,arguments)}function lh(){var e=Jd(To());return e.copy=function(){return Qt(e,lh()).exponent(e.exponent())},Lt.apply(e,arguments)}function DC(){return lh.apply(null,arguments).exponent(.5)}const sg=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ai,scaleDiverging:Aw,scaleDivergingLog:Pw,scaleDivergingPow:lh,scaleDivergingSqrt:DC,scaleDivergingSymlog:jw,scaleIdentity:aw,scaleImplicit:Sf,scaleLinear:Ea,scaleLog:uw,scaleOrdinal:zd,scalePoint:Gn,scalePow:eh,scaleQuantile:lw,scaleQuantize:fw,scaleRadial:cw,scaleSequential:ww,scaleSequentialLog:Ow,scaleSequentialPow:ch,scaleSequentialQuantile:Sw,scaleSequentialSqrt:IC,scaleSequentialSymlog:_w,scaleSqrt:yM,scaleSymlog:sw,scaleThreshold:dw,scaleTime:kC,scaleUtc:NC,tickFormat:iw},Symbol.toStringTag,{value:"Module"}));var ll,cg;function Eo(){if(cg)return ll;cg=1;var e=xn();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],s=n(u);if(s!=null&&(c===void 0?s===s&&!e(s):i(s,c)))var c=s,f=u}return f}return ll=t,ll}var fl,lg;function Tw(){if(lg)return fl;lg=1;function e(t,r){return t>r}return fl=e,fl}var dl,fg;function RC(){if(fg)return dl;fg=1;var e=Eo(),t=Tw(),r=Sn();function n(i){return i&&i.length?e(i,r,t):void 0}return dl=n,dl}var qC=RC();const Kt=ce(qC);var hl,dg;function Ew(){if(dg)return hl;dg=1;function e(t,r){return t<r}return hl=e,hl}var pl,hg;function LC(){if(hg)return pl;hg=1;var e=Eo(),t=Ew(),r=Sn();function n(i){return i&&i.length?e(i,r,t):void 0}return pl=n,pl}var BC=LC();const Mo=ce(BC);var vl,pg;function FC(){if(pg)return vl;pg=1;var e=Pd(),t=_t(),r=Dx(),n=Ge();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return vl=i,vl}var yl,vg;function WC(){if(vg)return yl;vg=1;var e=Nx(),t=FC();function r(n,i){return e(t(n,i),1)}return yl=r,yl}var UC=WC();const zC=ce(UC);var ml,yg;function HC(){if(yg)return ml;yg=1;var e=Ld();function t(r,n){return e(r,n)}return ml=t,ml}var GC=HC();const Jr=ce(GC);var Pn=1e9,KC={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},dh,ye=!0,ut="[DecimalError] ",yr=ut+"Invalid argument: ",fh=ut+"Exponent out of range: ",jn=Math.floor,sr=Math.pow,YC=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Xe,Ce=1e7,ve=7,Mw=9007199254740991,ka=jn(Mw/ve),z={};z.absoluteValue=z.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};z.comparedTo=z.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};z.decimalPlaces=z.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ve;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};z.dividedBy=z.div=function(e){return Ct(this,new this.constructor(e))};z.dividedToIntegerBy=z.idiv=function(e){var t=this,r=t.constructor;return le(Ct(t,new r(e),0,1),r.precision)};z.equals=z.eq=function(e){return!this.cmp(e)};z.exponent=function(){return Oe(this)};z.greaterThan=z.gt=function(e){return this.cmp(e)>0};z.greaterThanOrEqualTo=z.gte=function(e){return this.cmp(e)>=0};z.isInteger=z.isint=function(){return this.e>this.d.length-2};z.isNegative=z.isneg=function(){return this.s<0};z.isPositive=z.ispos=function(){return this.s>0};z.isZero=function(){return this.s===0};z.lessThan=z.lt=function(e){return this.cmp(e)<0};z.lessThanOrEqualTo=z.lte=function(e){return this.cmp(e)<1};z.logarithm=z.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(Xe))throw Error(ut+"NaN");if(r.s<1)throw Error(ut+(r.s?"NaN":"-Infinity"));return r.eq(Xe)?new n(0):(ye=!1,t=Ct(li(r,a),li(e,a),a),ye=!0,le(t,i))};z.minus=z.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?kw(t,e):Cw(t,(e.s=-e.s,e))};z.modulo=z.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(ut+"NaN");return r.s?(ye=!1,t=Ct(r,e,0,1).times(e),ye=!0,r.minus(t)):le(new n(r),i)};z.naturalExponential=z.exp=function(){return $w(this)};z.naturalLogarithm=z.ln=function(){return li(this)};z.negated=z.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};z.plus=z.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Cw(t,e):kw(t,(e.s=-e.s,e))};z.precision=z.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(yr+e);if(t=Oe(i)+1,n=i.d.length-1,r=n*ve+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};z.squareRoot=z.sqrt=function(){var e,t,r,n,i,a,o,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(ut+"NaN")}for(e=Oe(u),ye=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=vt(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=jn((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 s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(Ct(u,a,o+2)).times(.5),vt(a.d).slice(0,o)===(t=vt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(le(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return ye=!0,le(n,r)};z.times=z.mul=function(e){var t,r,n,i,a,o,u,s,c,f=this,l=f.constructor,d=f.d,p=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,s=d.length,c=p.length,s<c&&(a=d,d=p,p=a,o=s,s=c,c=o),a=[],o=s+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=s+n;i>n;)u=a[i]+p[n]*d[i-n-1]+t,a[i--]=u%Ce|0,t=u/Ce|0;a[i]=(a[i]+t)%Ce|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ye?le(e,l.precision):e};z.toDecimalPlaces=z.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(xt(e,0,Pn),t===void 0?t=n.rounding:xt(t,0,8),le(r,e+Oe(r)+1,t))};z.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=xr(n,!0):(xt(e,0,Pn),t===void 0?t=i.rounding:xt(t,0,8),n=le(new i(n),e+1,t),r=xr(n,!0,e+1)),r};z.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?xr(i):(xt(e,0,Pn),t===void 0?t=a.rounding:xt(t,0,8),n=le(new a(i),e+Oe(i)+1,t),r=xr(n.abs(),!1,e+Oe(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};z.toInteger=z.toint=function(){var e=this,t=e.constructor;return le(new t(e),Oe(e)+1,t.rounding)};z.toNumber=function(){return+this};z.toPower=z.pow=function(e){var t,r,n,i,a,o,u=this,s=u.constructor,c=12,f=+(e=new s(e));if(!e.s)return new s(Xe);if(u=new s(u),!u.s){if(e.s<1)throw Error(ut+"Infinity");return u}if(u.eq(Xe))return u;if(n=s.precision,e.eq(Xe))return le(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=Mw){for(i=new s(Xe),t=Math.ceil(n/ve+4),ye=!1;r%2&&(i=i.times(u),gg(i.d,t)),r=jn(r/2),r!==0;)u=u.times(u),gg(u.d,t);return ye=!0,e.s<0?new s(Xe).div(i):le(i,n)}}else if(a<0)throw Error(ut+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,ye=!1,i=e.times(li(u,n+c)),ye=!0,i=$w(i),i.s=a,i};z.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Oe(i),n=xr(i,r<=a.toExpNeg||r>=a.toExpPos)):(xt(e,1,Pn),t===void 0?t=a.rounding:xt(t,0,8),i=le(new a(i),e,t),r=Oe(i),n=xr(i,e<=r||r<=a.toExpNeg,e)),n};z.toSignificantDigits=z.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(xt(e,1,Pn),t===void 0?t=n.rounding:xt(t,0,8)),le(new n(r),e,t)};z.toString=z.valueOf=z.val=z.toJSON=z[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Oe(e),r=e.constructor;return xr(e,t<=r.toExpNeg||t>=r.toExpPos)};function Cw(e,t){var r,n,i,a,o,u,s,c,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),ye?le(t,l):t;if(s=e.d,c=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,u=c.length):(n=c,i=o,u=s.length),o=Math.ceil(l/ve),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=s.length,a=c.length,u-a<0&&(a=u,n=c,c=s,s=n),r=0;a;)r=(s[--a]=s[a]+c[a]+r)/Ce|0,s[a]%=Ce;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,ye?le(t,l):t}function xt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(yr+e)}function vt(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=ve-n.length,r&&(a+=Ht(r)),a+=n;o=e[t],n=o+"",r=ve-n.length,r&&(a+=Ht(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Ct=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%Ce|0,o=a/Ce|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,s;if(a!=o)s=a>o?1:-1;else for(u=s=0;u<a;u++)if(n[u]!=i[u]){s=n[u]>i[u]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Ce+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,c,f,l,d,p,y,v,h,g,x,w,O,m,b,_,A,T=n.constructor,$=n.s==i.s?1:-1,j=n.d,M=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(ut+"Division by zero");for(s=n.e-i.e,_=M.length,m=j.length,p=new T($),y=p.d=[],c=0;M[c]==(j[c]||0);)++c;if(M[c]>(j[c]||0)&&--s,a==null?x=a=T.precision:o?x=a+(Oe(n)-Oe(i))+1:x=a,x<0)return new T(0);if(x=x/ve+2|0,c=0,_==1)for(f=0,M=M[0],x++;(c<m||f)&&x--;c++)w=f*Ce+(j[c]||0),y[c]=w/M|0,f=w%M|0;else{for(f=Ce/(M[0]+1)|0,f>1&&(M=e(M,f),j=e(j,f),_=M.length,m=j.length),O=_,v=j.slice(0,_),h=v.length;h<_;)v[h++]=0;A=M.slice(),A.unshift(0),b=M[0],M[1]>=Ce/2&&++b;do f=0,u=t(M,v,_,h),u<0?(g=v[0],_!=h&&(g=g*Ce+(v[1]||0)),f=g/b|0,f>1?(f>=Ce&&(f=Ce-1),l=e(M,f),d=l.length,h=v.length,u=t(l,v,d,h),u==1&&(f--,r(l,_<d?A:M,d))):(f==0&&(u=f=1),l=M.slice()),d=l.length,d<h&&l.unshift(0),r(v,l,h),u==-1&&(h=v.length,u=t(M,v,_,h),u<1&&(f++,r(v,_<h?A:M,h))),h=v.length):u===0&&(f++,v=[0]),y[c++]=f,u&&v[0]?v[h++]=j[O]||0:(v=[j[O]],h=1);while((O++<m||v[0]!==void 0)&&x--)}return y[0]||y.shift(),p.e=s,le(p,o?a+Oe(p)+1:a)}})();function $w(e,t){var r,n,i,a,o,u,s=0,c=0,f=e.constructor,l=f.precision;if(Oe(e)>16)throw Error(fh+Oe(e));if(!e.s)return new f(Xe);for(ye=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(sr(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Xe),f.precision=u;;){if(i=le(i.times(e),u),r=r.times(++s),o=a.plus(Ct(i,r,u)),vt(o.d).slice(0,u)===vt(a.d).slice(0,u)){for(;c--;)a=le(a.times(a),u);return f.precision=l,t==null?(ye=!0,le(a,l)):a}a=o}}function Oe(e){for(var t=e.e*ve,r=e.d[0];r>=10;r/=10)t++;return t}function gl(e,t,r){if(t>e.LN10.sd())throw ye=!0,r&&(e.precision=r),Error(ut+"LN10 precision limit exceeded");return le(new e(e.LN10),t)}function Ht(e){for(var t="";e--;)t+="0";return t}function li(e,t){var r,n,i,a,o,u,s,c,f,l=1,d=10,p=e,y=p.d,v=p.constructor,h=v.precision;if(p.s<1)throw Error(ut+(p.s?"NaN":"-Infinity"));if(p.eq(Xe))return new v(0);if(t==null?(ye=!1,c=h):c=t,p.eq(10))return t==null&&(ye=!0),gl(v,c);if(c+=d,v.precision=c,r=vt(y),n=r.charAt(0),a=Oe(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=vt(p.d),n=r.charAt(0),l++;a=Oe(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return s=gl(v,c+2,h).times(a+""),p=li(new v(n+"."+r.slice(1)),c-d).plus(s),v.precision=h,t==null?(ye=!0,le(p,h)):p;for(u=o=p=Ct(p.minus(Xe),p.plus(Xe),c),f=le(p.times(p),c),i=3;;){if(o=le(o.times(f),c),s=u.plus(Ct(o,new v(i),c)),vt(s.d).slice(0,c)===vt(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(gl(v,c+2,h).times(a+""))),u=Ct(u,new v(l),c),v.precision=h,t==null?(ye=!0,le(u,h)):u;u=s,i+=2}}function mg(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=jn(r/ve),e.d=[],n=(r+1)%ve,r<0&&(n+=ve),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=ve;n<i;)e.d.push(+t.slice(n,n+=ve));t=t.slice(n),n=ve-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ye&&(e.e>ka||e.e<-ka))throw Error(fh+r)}else e.s=0,e.e=0,e.d=[0];return e}function le(e,t,r){var n,i,a,o,u,s,c,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=ve,i=t,c=l[f=0];else{if(f=Math.ceil((n+1)/ve),a=l.length,f>=a)return e;for(c=a=l[f],o=1;a>=10;a/=10)o++;n%=ve,i=n-ve+o}if(r!==void 0&&(a=sr(10,o-i-1),u=c/a%10|0,s=t<0||l[f+1]!==void 0||c%a,s=r<4?(u||s)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||s||r==6&&(n>0?i>0?c/sr(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return s?(a=Oe(e),l.length=1,t=t-a-1,l[0]=sr(10,(ve-t%ve)%ve),e.e=jn(-t/ve)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=sr(10,ve-n),l[f]=i>0?(c/sr(10,o-i)%sr(10,i)|0)*a:0),s)for(;;)if(f==0){(l[0]+=a)==Ce&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Ce)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(ye&&(e.e>ka||e.e<-ka))throw Error(fh+Oe(e));return e}function kw(e,t){var r,n,i,a,o,u,s,c,f,l,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),ye?le(t,p):t;if(s=e.d,l=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n,o){for(f=o<0,f?(r=s,o=-o,u=l.length):(r=l,n=c,u=s.length),i=Math.max(Math.ceil(p/ve),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(s[i]!=l[i]){f=s[i]<l[i];break}o=0}for(f&&(r=s,s=l,l=r,t.s=-t.s),u=s.length,i=l.length-u;i>0;--i)s[u++]=0;for(i=l.length;i>o;){if(s[--i]<l[i]){for(a=i;a&&s[--a]===0;)s[a]=Ce-1;--s[a],s[i]+=Ce}s[i]-=l[i]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,ye?le(t,p):t):new d(0)}function xr(e,t,r){var n,i=Oe(e),a=vt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Ht(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Ht(-i-1)+a,r&&(n=r-o)>0&&(a+=Ht(n))):i>=o?(a+=Ht(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Ht(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Ht(n))),e.s<0?"-"+a:a}function gg(e,t){if(e.length>t)return e.length=t,!0}function Nw(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(yr+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 mg(o,a.toString())}else if(typeof a!="string")throw Error(yr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,YC.test(a))mg(o,a);else throw Error(yr+a)}if(i.prototype=z,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=Nw,i.config=i.set=VC,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function VC(e){if(!e||typeof e!="object")throw Error(ut+"Object expected");var t,r,n,i=["precision",1,Pn,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(jn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(yr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(yr+r+": "+n);return this}var dh=Nw(KC);Xe=new dh(1);const se=dh;function XC(e){return e$(e)||JC(e)||QC(e)||ZC()}function ZC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QC(e,t){if(e){if(typeof e=="string")return Tf(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 Tf(e,t)}}function JC(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function e$(e){if(Array.isArray(e))return Tf(e)}function Tf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var t$=function(t){return t},Iw={},Dw=function(t){return t===Iw},bg=function(t){return function r(){return arguments.length===0||arguments.length===1&&Dw(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},r$=function e(t,r){return t===1?r:bg(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(u){return u!==Iw}).length;return o>=t?r.apply(void 0,i):e(t-o,bg(function(){for(var u=arguments.length,s=new Array(u),c=0;c<u;c++)s[c]=arguments[c];var f=i.map(function(l){return Dw(l)?s.shift():l});return r.apply(void 0,XC(f).concat(s))}))})},Co=function(t){return r$(t.length,t)},Ef=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},n$=Co(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),i$=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return t$;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,s){return s(u)},a.apply(void 0,arguments))}},Mf=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Rw=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,s){return u===r[s]})||(r=a,n=t.apply(void 0,a)),n}};function a$(e){var t;return e===0?t=1:t=Math.floor(new se(e).abs().log(10).toNumber())+1,t}function o$(e,t,r){for(var n=new se(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var u$=Co(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),s$=Co(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),c$=Co(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const $o={rangeStep:o$,getDigitCount:a$,interpolateNumber:u$,uninterpolateNumber:s$,uninterpolateTruncation:c$};function Cf(e){return d$(e)||f$(e)||qw(e)||l$()}function l$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f$(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function d$(e){if(Array.isArray(e))return $f(e)}function fi(e,t){return v$(e)||p$(e,t)||qw(e,t)||h$()}function h$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qw(e,t){if(e){if(typeof e=="string")return $f(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 $f(e,t)}}function $f(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p$(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(s){i=!0,a=s}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function v$(e){if(Array.isArray(e))return e}function Lw(e){var t=fi(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Bw(e,t,r){if(e.lte(0))return new se(0);var n=$o.getDigitCount(e.toNumber()),i=new se(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new se(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=u.mul(i);return t?s:new se(Math.ceil(s))}function y$(e,t,r){var n=1,i=new se(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new se(10).pow($o.getDigitCount(e)-1),i=new se(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new se(Math.floor(e)))}else e===0?i=new se(Math.floor((t-1)/2)):r||(i=new se(Math.floor(e)));var o=Math.floor((t-1)/2),u=i$(n$(function(s){return i.add(new se(s-o).mul(n)).toNumber()}),Ef);return u(0,t)}function Fw(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 se(0),tickMin:new se(0),tickMax:new se(0)};var a=Bw(new se(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new se(0):(o=new se(e).add(t).div(2),o=o.sub(new se(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new se(t).sub(o).div(a).toNumber()),c=u+s+1;return c>r?Fw(e,t,r,n,i+1):(c<r&&(s=t>0?s+(r-c):s,u=t>0?u:u+(r-c)),{step:a,tickMin:o.sub(new se(u).mul(a)),tickMax:o.add(new se(s).mul(a))})}function m$(e){var t=fi(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),u=Lw([r,n]),s=fi(u,2),c=s[0],f=s[1];if(c===-1/0||f===1/0){var l=f===1/0?[c].concat(Cf(Ef(0,i-1).map(function(){return 1/0}))):[].concat(Cf(Ef(0,i-1).map(function(){return-1/0})),[f]);return r>n?Mf(l):l}if(c===f)return y$(c,i,a);var d=Fw(c,f,o,a),p=d.step,y=d.tickMin,v=d.tickMax,h=$o.rangeStep(y,v.add(new se(.1).mul(p)),p);return r>n?Mf(h):h}function g$(e,t){var r=fi(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Lw([n,i]),u=fi(o,2),s=u[0],c=u[1];if(s===-1/0||c===1/0)return[n,i];if(s===c)return[s];var f=Math.max(t,2),l=Bw(new se(c).sub(s).div(f-1),a,0),d=[].concat(Cf($o.rangeStep(new se(s),new se(c).sub(new se(.99).mul(l)),l)),[c]);return n>i?Mf(d):d}var b$=Rw(m$),x$=Rw(g$),w$="Invariant failed";function wr(e,t){throw new Error(w$)}var O$=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function en(e){"@babel/helpers - typeof";return en=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},en(e)}function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Na.apply(this,arguments)}function _$(e,t){return j$(e)||P$(e,t)||A$(e,t)||S$()}function S$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A$(e,t){if(e){if(typeof e=="string")return xg(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 xg(e,t)}}function xg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function j$(e){if(Array.isArray(e))return e}function T$(e,t){if(e==null)return{};var r=E$(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function E$(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 M$(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C$(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zw(n.key),n)}}function $$(e,t,r){return t&&C$(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function k$(e,t,r){return t=Ia(t),N$(e,Ww()?Reflect.construct(t,r||[],Ia(e).constructor):t.apply(e,r))}function N$(e,t){if(t&&(en(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return I$(e)}function I$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ww(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ww=function(){return!!e})()}function Ia(e){return Ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ia(e)}function D$(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kf(e,t)}function kf(e,t){return kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kf(e,t)}function Uw(e,t,r){return t=zw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zw(e){var t=R$(e,"string");return en(t)=="symbol"?t:t+""}function R$(e,t){if(en(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(en(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ko=(function(e){function t(){return M$(this,t),k$(this,t,arguments)}return D$(t,e),$$(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,s=n.data,c=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,d=T$(n,O$),p=G(d,!1);this.props.direction==="x"&&f.type!=="number"&&wr();var y=s.map(function(v){var h=c(v,u),g=h.x,x=h.y,w=h.value,O=h.errorVal;if(!O)return null;var m=[],b,_;if(Array.isArray(O)){var A=_$(O,2);b=A[0],_=A[1]}else b=_=O;if(a==="vertical"){var T=f.scale,$=x+i,j=$+o,M=$-o,C=T(w-b),k=T(w+_);m.push({x1:k,y1:j,x2:k,y2:M}),m.push({x1:C,y1:$,x2:k,y2:$}),m.push({x1:C,y1:j,x2:C,y2:M})}else if(a==="horizontal"){var E=l.scale,I=g+i,R=I-o,B=I+o,F=E(w-b),H=E(w+_);m.push({x1:R,y1:H,x2:B,y2:H}),m.push({x1:I,y1:F,x2:I,y2:H}),m.push({x1:R,y1:F,x2:B,y2:F})}return P.createElement(te,Na({className:"recharts-errorBar",key:"bar-".concat(m.map(function(Y){return"".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)}))},p),m.map(function(Y){return P.createElement("line",Na({},Y,{key:"line-".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)}))}))});return P.createElement(te,{className:"recharts-errorBars"},y)}}])})(P.Component);Uw(ko,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Uw(ko,"displayName","ErrorBar");function di(e){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function wg(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 nr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wg(Object(r),!0).forEach(function(n){q$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q$(e,t,r){return t=L$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L$(e){var t=B$(e,"string");return di(t)=="symbol"?t:t+""}function B$(e,t){if(di(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(di(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hw=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Ve(r,Fr);if(!o)return null;var u=Fr.defaultProps,s=u!==void 0?nr(nr({},u),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(f,l){var d=l.item,p=l.props,y=p.sectors||p.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||d.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):c=(n||[]).map(function(f){var l=f.item,d=l.type.defaultProps,p=d!==void 0?nr(nr({},d),l.props):{},y=p.dataKey,v=p.name,h=p.legendType,g=p.hide;return{inactive:g,dataKey:y,type:s.iconType||h||"square",color:hh(l),value:v||y,payload:p}}),nr(nr(nr({},s),Fr.getWithHeight(o,i)),{},{payload:c,item:o})};function hi(e){"@babel/helpers - typeof";return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hi(e)}function Og(e){return z$(e)||U$(e)||W$(e)||F$()}function F$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W$(e,t){if(e){if(typeof e=="string")return Nf(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 Nf(e,t)}}function U$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function z$(e){if(Array.isArray(e))return Nf(e)}function Nf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _g(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 ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_g(Object(r),!0).forEach(function(n){Ur(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_g(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ur(e,t,r){return t=H$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H$(e){var t=G$(e,"string");return hi(t)=="symbol"?t:t+""}function G$(e,t){if(hi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Te(e,t,r){return Z(e)||Z(t)?r:Ee(t)?Je(e,t,r):V(t)?t(e):r}function Kn(e,t,r,n){var i=zC(e,function(u){return Te(u,t)});if(r==="number"){var a=i.filter(function(u){return L(u)||parseFloat(u)});return a.length?[Mo(a),Kt(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Z(u)}):i;return o.map(function(u){return Ee(u)||u instanceof Date?u:""})}var K$=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n?.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,c=0;c<u;c++){var f=c>0?i[c-1].coordinate:i[u-1].coordinate,l=i[c].coordinate,d=c>=u-1?i[0].coordinate:i[c+1].coordinate,p=void 0;if(Le(l-f)!==Le(d-l)){var y=[];if(Le(d-l)===Le(s[1]-s[0])){p=d;var v=l+s[1]-s[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{p=f;var h=d+s[1]-s[0];y[0]=Math.min(l,(h+l)/2),y[1]=Math.max(l,(h+l)/2)}var g=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(t>g[0]&&t<=g[1]||t>=y[0]&&t<=y[1]){o=i[c].index;break}}else{var x=Math.min(f,d),w=Math.max(f,d);if(t>(x+l)/2&&t<=(w+l)/2){o=i[c].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},hh=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ge(ge({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:u;break;default:s=u;break}return s},Y$=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),s=0,c=u.length;s<c;s++)for(var f=a[u[s]].stackGroups,l=Object.keys(f),d=0,p=l.length;d<p;d++){var y=f[l[d]],v=y.items,h=y.cateAxisId,g=v.filter(function(_){return Mt(_.type).indexOf("Bar")>=0});if(g&&g.length){var x=g[0].type.defaultProps,w=x!==void 0?ge(ge({},x),g[0].props):g[0].props,O=w.barSize,m=w[h];o[m]||(o[m]=[]);var b=Z(O)?r:O;o[m].push({item:g[0],stackList:g.slice(1),barSize:Z(b)?void 0:Be(b,n,0)})}}return o},V$=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,s=o.length;if(s<1)return null;var c=Be(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/s,y=o.reduce(function(O,m){return O+m.barSize||0},0);y+=(s-1)*c,y>=i&&(y-=(s-1)*c,c=0),y>=i&&p>0&&(d=!0,p*=.9,y=s*p);var v=(i-y)/2>>0,h={offset:v-c,size:0};f=o.reduce(function(O,m){var b={item:m.item,position:{offset:h.offset+h.size+c,size:d?p:m.barSize}},_=[].concat(Og(O),[b]);return h=_[_.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:h})}),_},l)}else{var g=Be(n,i,0,!0);i-2*g-(s-1)*c<=0&&(c=0);var x=(i-2*g-(s-1)*c)/s;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,m,b){var _=[].concat(Og(O),[{item:m.item,position:{offset:g+(x+c)*b+(x-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:_[_.length-1].position})}),_},l)}return f},X$=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),c=Hw({children:a,legendWidth:s});if(c){var f=i||{},l=f.width,d=f.height,p=c.align,y=c.verticalAlign,v=c.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&p!=="center"&&L(t[p]))return ge(ge({},t),{},Ur({},p,t[p]+(l||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&y!=="middle"&&L(t[y]))return ge(ge({},t),{},Ur({},y,t[y]+(d||0)))}return t},Z$=function(t,r,n){return Z(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Gw=function(t,r,n,i,a){var o=r.props.children,u=ot(o,ko).filter(function(c){return Z$(i,a,c.props.direction)});if(u&&u.length){var s=u.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var l=Te(f,n);if(Z(l))return c;var d=Array.isArray(l)?[Mo(l),Kt(l)]:[l,l],p=s.reduce(function(y,v){var h=Te(f,v,0),g=d[0]-Math.abs(Array.isArray(h)?h[0]:h),x=d[1]+Math.abs(Array.isArray(h)?h[1]:h);return[Math.min(g,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(p[0],c[0]),Math.max(p[1],c[1])]},[1/0,-1/0])}return null},Q$=function(t,r,n,i,a){var o=r.map(function(u){return Gw(t,u,n,a,i)}).filter(function(u){return!Z(u)});return o&&o.length?o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]):null},Kw=function(t,r,n,i,a){var o=r.map(function(s){var c=s.props.dataKey;return n==="number"&&c&&Gw(t,s,c,i)||Kn(t,c,n,a)});if(n==="number")return o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);var u={};return o.reduce(function(s,c){for(var f=0,l=c.length;f<l;f++)u[c[f]]||(u[c[f]]=!0,s.push(c[f]));return s},[])},Yw=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Vw=function(t,r,n,i){if(i)return t.map(function(s){return s.coordinate});var a,o,u=t.map(function(s){return s.coordinate===r&&(a=!0),s.coordinate===n&&(o=!0),s.coordinate});return a||u.push(r),o||u.push(n),u},Et=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(c=t.axisType==="angleAxis"&&u?.length>=2?Le(u[0]-u[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var d=a?a.indexOf(l):l;return{coordinate:i(d)+c,value:l,offset:c}});return f.filter(function(l){return!On(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,d){return{coordinate:i(l)+c,value:l,index:d,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+c,value:l,offset:c}}):i.domain().map(function(l,d){return{coordinate:i(l)+c,value:a?a[l]:l,index:d,offset:c}})},bl=new WeakMap,ea=function(t,r){if(typeof r!="function")return t;bl.has(t)||bl.set(t,new WeakMap);var n=bl.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},Xw=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:ai(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Ea(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Gn(),realScaleType:"point"}:a==="category"?{scale:ai(),realScaleType:"band"}:{scale:Ea(),realScaleType:"linear"};if(mr(i)){var s="scale".concat(vo(i));return{scale:(sg[s]||Gn)(),realScaleType:sg[s]?s:"point"}}return V(i)?{scale:i}:{scale:Gn(),realScaleType:"point"}},Sg=1e-4,Zw=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])-Sg,o=Math.max(i[0],i[1])+Sg,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},J$=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},ek=function(t,r){if(!r||r.length!==2||!L(r[0])||!L(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!L(t[0])||t[0]<n)&&(a[0]=n),(!L(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},tk=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var s=On(t[u][n][1])?t[u][n][0]:t[u][n][1];s>=0?(t[u][n][0]=a,t[u][n][1]=a+s,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+s,o=t[u][n][1])}},rk=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=On(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},nk={sign:tk,expand:zA,none:Hr,silhouette:HA,wiggle:GA,positive:rk},ik=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=nk[n],o=UA().keys(i).value(function(u,s){return+Te(u,s,0)}).order(lf).offset(a);return o(t)},ak=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,s={},c=u.reduce(function(l,d){var p,y=(p=d.type)!==null&&p!==void 0&&p.defaultProps?ge(ge({},d.type.defaultProps),d.props):d.props,v=y.stackId,h=y.hide;if(h)return l;var g=y[n],x=l[g]||{hasStack:!1,stackGroups:{}};if(Ee(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(d),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[_n("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return ge(ge({},l),{},Ur({},g,x))},s),f={};return Object.keys(c).reduce(function(l,d){var p=c[d];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,h){var g=p.stackGroups[h];return ge(ge({},v),{},Ur({},h,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:ik(t,g.items,a)}))},y)}return ge(ge({},l),{},Ur({},d,p))},f)},Qw=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var f=b$(c,a,u);return t.domain([Mo(f),Kt(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),d=x$(l,a,u);return{niceTicks:d}}return null};function Ag(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&&!Z(i[t.dataKey])){var u=fa(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var s=Te(i,Z(o)?t.dataKey:o);return Z(s)?null:t.scale(s)}var Pg=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var s=Te(o,r.dataKey,r.domain[u]);return Z(s)?null:r.scale(s)-a/2+i},ok=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]},uk=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ge(ge({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Ee(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},sk=function(t){return t.reduce(function(r,n){return[Mo(n.concat([r[0]]).filter(L)),Kt(n.concat([r[1]]).filter(L))]},[1/0,-1/0])},Jw=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,s=u.reduce(function(c,f){var l=sk(f.slice(r,n+1));return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},jg=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Tg=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,If=function(t,r,n){if(V(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(L(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(jg.test(t[0])){var a=+jg.exec(t[0])[1];i[0]=r[0]-a}else V(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(L(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(Tg.test(t[1])){var o=+Tg.exec(t[1])[1];i[1]=r[1]+o}else V(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Da=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=Fd(r,function(l){return l.coordinate}),o=1/0,u=1,s=a.length;u<s;u++){var c=a[u],f=a[u-1];o=Math.min((c.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Eg=function(t,r,n){return!t||!t.length||Jr(t,Je(n,"type.defaultProps.domain"))?r:t},e1=function(t,r){var n=t.type.defaultProps?ge(ge({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,s=n.tooltipType,c=n.chartType,f=n.hide;return ge(ge({},G(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:hh(t),value:Te(r,i),type:s,payload:r,chartType:c,hide:f})};function pi(e){"@babel/helpers - typeof";return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pi(e)}function Mg(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 At(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mg(Object(r),!0).forEach(function(n){t1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function t1(e,t,r){return t=ck(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ck(e){var t=lk(e,"string");return pi(t)=="symbol"?t:t+""}function lk(e,t){if(pi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fk(e,t){return vk(e)||pk(e,t)||hk(e,t)||dk()}function dk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
18
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hk(e,t){if(e){if(typeof e=="string")return Cg(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 Cg(e,t)}}function Cg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pk(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function vk(e){if(Array.isArray(e))return e}var Ra=Math.PI/180,yk=function(t){return t*180/Math.PI},he=function(t,r,n,i){return{x:t+Math.cos(-Ra*i)*n,y:r+Math.sin(-Ra*i)*n}},r1=function(t,r){var n=arguments.length>2&&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},mk=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.startAngle,c=t.endAngle,f=Be(t.cx,o,o/2),l=Be(t.cy,u,u/2),d=r1(o,u,n),p=Be(t.innerRadius,d,0),y=Be(t.outerRadius,d,d*.8),v=Object.keys(r);return v.reduce(function(h,g){var x=r[g],w=x.domain,O=x.reversed,m;if(Z(x.range))i==="angleAxis"?m=[s,c]:i==="radiusAxis"&&(m=[p,y]),O&&(m=[m[1],m[0]]);else{m=x.range;var b=m,_=fk(b,2);s=_[0],c=_[1]}var A=Xw(x,a),T=A.realScaleType,$=A.scale;$.domain(w).range(m),Zw($);var j=Qw($,At(At({},x),{},{realScaleType:T})),M=At(At(At({},x),j),{},{range:m,radius:y,realScaleType:T,scale:$,cx:f,cy:l,innerRadius:p,outerRadius:y,startAngle:s,endAngle:c});return At(At({},h),{},t1({},g,M))},{})},gk=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))},bk=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=gk({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var s=(n-a)/u,c=Math.acos(s);return i>o&&(c=2*Math.PI-c),{radius:u,angle:yk(c),angleInRadian:c}},xk=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}},wk=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},$g=function(t,r){var n=t.x,i=t.y,a=bk({x:n,y:i},r),o=a.radius,u=a.angle,s=r.innerRadius,c=r.outerRadius;if(o<s||o>c)return!1;if(o===0)return!0;var f=xk(r),l=f.startAngle,d=f.endAngle,p=u,y;if(l<=d){for(;p>d;)p-=360;for(;p<l;)p+=360;y=p>=l&&p<=d}else{for(;p>l;)p-=360;for(;p<d;)p+=360;y=p>=d&&p<=l}return y?At(At({},r),{},{radius:o,angle:wk(p,r)}):null},n1=function(t){return!D.isValidElement(t)&&!V(t)&&typeof t!="boolean"?t.className:""};function vi(e){"@babel/helpers - typeof";return vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vi(e)}var Ok=["offset"];function _k(e){return jk(e)||Pk(e)||Ak(e)||Sk()}function Sk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ak(e,t){if(e){if(typeof e=="string")return Df(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 Df(e,t)}}function Pk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jk(e){if(Array.isArray(e))return Df(e)}function Df(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Tk(e,t){if(e==null)return{};var r=Ek(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ek(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 kg(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 je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kg(Object(r),!0).forEach(function(n){Mk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mk(e,t,r){return t=Ck(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ck(e){var t=$k(e,"string");return vi(t)=="symbol"?t:t+""}function $k(e,t){if(vi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yi(){return yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yi.apply(this,arguments)}var kk=function(t){var r=t.value,n=t.formatter,i=Z(t.children)?r:t.children;return V(n)?n(i):i},Nk=function(t,r){var n=Le(r-t),i=Math.min(Math.abs(r-t),360);return n*i},Ik=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,s=a,c=s.cx,f=s.cy,l=s.innerRadius,d=s.outerRadius,p=s.startAngle,y=s.endAngle,v=s.clockWise,h=(l+d)/2,g=Nk(p,y),x=g>=0?1:-1,w,O;i==="insideStart"?(w=p+x*o,O=v):i==="insideEnd"?(w=y-x*o,O=!v):i==="end"&&(w=y+x*o,O=v),O=g<=0?O:!O;var m=he(c,f,h,w),b=he(c,f,h,w+(O?1:-1)*359),_="M".concat(m.x,",").concat(m.y,`
|
|
20
|
+
A`).concat(h,",").concat(h,",0,1,").concat(O?0:1,`,
|
|
21
|
+
`).concat(b.x,",").concat(b.y),A=Z(t.id)?_n("recharts-radial-line-"):t.id;return P.createElement("text",yi({},n,{dominantBaseline:"central",className:J("recharts-radial-bar-label",u)}),P.createElement("defs",null,P.createElement("path",{id:A,d:_})),P.createElement("textPath",{xlinkHref:"#".concat(A)},r))},Dk=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,s=a.innerRadius,c=a.outerRadius,f=a.startAngle,l=a.endAngle,d=(f+l)/2;if(i==="outside"){var p=he(o,u,c+n,d),y=p.x,v=p.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var h=(s+c)/2,g=he(o,u,h,d),x=g.x,w=g.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},Rk=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,s=o.y,c=o.width,f=o.height,l=f>=0?1:-1,d=l*i,p=l>0?"end":"start",y=l>0?"start":"end",v=c>=0?1:-1,h=v*i,g=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:u+c/2,y:s-l*i,textAnchor:"middle",verticalAnchor:p};return je(je({},w),n?{height:Math.max(s-n.y,0),width:c}:{})}if(a==="bottom"){var O={x:u+c/2,y:s+f+d,textAnchor:"middle",verticalAnchor:y};return je(je({},O),n?{height:Math.max(n.y+n.height-(s+f),0),width:c}:{})}if(a==="left"){var m={x:u-h,y:s+f/2,textAnchor:g,verticalAnchor:"middle"};return je(je({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var b={x:u+c+h,y:s+f/2,textAnchor:x,verticalAnchor:"middle"};return je(je({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:f}:{})}var _=n?{width:c,height:f}:{};return a==="insideLeft"?je({x:u+h,y:s+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideRight"?je({x:u+c-h,y:s+f/2,textAnchor:g,verticalAnchor:"middle"},_):a==="insideTop"?je({x:u+c/2,y:s+d,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?je({x:u+c/2,y:s+f-d,textAnchor:"middle",verticalAnchor:p},_):a==="insideTopLeft"?je({x:u+h,y:s+d,textAnchor:x,verticalAnchor:y},_):a==="insideTopRight"?je({x:u+c-h,y:s+d,textAnchor:g,verticalAnchor:y},_):a==="insideBottomLeft"?je({x:u+h,y:s+f-d,textAnchor:x,verticalAnchor:p},_):a==="insideBottomRight"?je({x:u+c-h,y:s+f-d,textAnchor:g,verticalAnchor:p},_):wn(a)&&(L(a.x)||lr(a.x))&&(L(a.y)||lr(a.y))?je({x:u+Be(a.x,c),y:s+Be(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):je({x:u+c/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},qk=function(t){return"cx"in t&&L(t.cx)};function $e(e){var t=e.offset,r=t===void 0?5:t,n=Tk(e,Ok),i=je({offset:r},n),a=i.viewBox,o=i.position,u=i.value,s=i.children,c=i.content,f=i.className,l=f===void 0?"":f,d=i.textBreakAll;if(!a||Z(u)&&Z(s)&&!D.isValidElement(c)&&!V(c))return null;if(D.isValidElement(c))return D.cloneElement(c,i);var p;if(V(c)){if(p=D.createElement(c,i),D.isValidElement(p))return p}else p=kk(i);var y=qk(a),v=G(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return Ik(i,p,v);var h=y?Dk(i):Rk(i);return P.createElement(br,yi({className:J("recharts-label",l)},v,h,{breakAll:d}),p)}$e.displayName="Label";var i1=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,s=t.radius,c=t.innerRadius,f=t.outerRadius,l=t.x,d=t.y,p=t.top,y=t.left,v=t.width,h=t.height,g=t.clockWise,x=t.labelViewBox;if(x)return x;if(L(v)&&L(h)){if(L(l)&&L(d))return{x:l,y:d,width:v,height:h};if(L(p)&&L(y))return{x:p,y,width:v,height:h}}return L(l)&&L(d)?{x:l,y:d,width:0,height:0}:L(r)&&L(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:f||s||u||0,clockWise:g}:t.viewBox?t.viewBox:{}},Lk=function(t,r){return t?t===!0?P.createElement($e,{key:"label-implicit",viewBox:r}):Ee(t)?P.createElement($e,{key:"label-implicit",viewBox:r,value:t}):D.isValidElement(t)?t.type===$e?D.cloneElement(t,{key:"label-implicit",viewBox:r}):P.createElement($e,{key:"label-implicit",content:t,viewBox:r}):V(t)?P.createElement($e,{key:"label-implicit",content:t,viewBox:r}):wn(t)?P.createElement($e,yi({viewBox:r},t,{key:"label-implicit"})):null:null},Bk=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=i1(t),o=ot(i,$e).map(function(s,c){return D.cloneElement(s,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var u=Lk(t.label,r||a);return[u].concat(_k(o))};$e.parseViewBox=i1;$e.renderCallByParent=Bk;var xl,Ng;function Fk(){if(Ng)return xl;Ng=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return xl=e,xl}var Wk=Fk();const Uk=ce(Wk);function mi(e){"@babel/helpers - typeof";return mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mi(e)}var zk=["valueAccessor"],Hk=["data","dataKey","clockWise","id","textBreakAll"];function Gk(e){return Xk(e)||Vk(e)||Yk(e)||Kk()}function Kk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
22
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yk(e,t){if(e){if(typeof e=="string")return Rf(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 Rf(e,t)}}function Vk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xk(e){if(Array.isArray(e))return Rf(e)}function Rf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qa(){return qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qa.apply(this,arguments)}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;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ig(Object(r),!0).forEach(function(n){Zk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ig(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zk(e,t,r){return t=Qk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qk(e){var t=Jk(e,"string");return mi(t)=="symbol"?t:t+""}function Jk(e,t){if(mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rg(e,t){if(e==null)return{};var r=eN(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function eN(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 tN=function(t){return Array.isArray(t.value)?Uk(t.value):t.value};function $t(e){var t=e.valueAccessor,r=t===void 0?tN:t,n=Rg(e,zk),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,c=Rg(n,Hk);return!i||!i.length?null:P.createElement(te,{className:"recharts-label-list"},i.map(function(f,l){var d=Z(a)?r(f,l):Te(f&&f.payload,a),p=Z(u)?{}:{id:"".concat(u,"-").concat(l)};return P.createElement($e,qa({},G(f,!0),c,p,{parentViewBox:f.parentViewBox,value:d,textBreakAll:s,viewBox:$e.parseViewBox(Z(o)?f:Dg(Dg({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}$t.displayName="LabelList";function rN(e,t){return e?e===!0?P.createElement($t,{key:"labelList-implicit",data:t}):P.isValidElement(e)||V(e)?P.createElement($t,{key:"labelList-implicit",data:t,content:e}):wn(e)?P.createElement($t,qa({data:t},e,{key:"labelList-implicit"})):null:null}function nN(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=ot(n,$t).map(function(o,u){return D.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=rN(e.label,t);return[a].concat(Gk(i))}$t.renderCallByParent=nN;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 qf(){return qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qf.apply(this,arguments)}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 Lg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qg(Object(r),!0).forEach(function(n){iN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iN(e,t,r){return t=aN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aN(e){var t=oN(e,"string");return gi(t)=="symbol"?t:t+""}function oN(e,t){if(gi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uN=function(t,r){var n=Le(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},ta=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,s=t.cornerRadius,c=t.cornerIsExternal,f=s*(u?1:-1)+i,l=Math.asin(s/f)/Ra,d=c?a:a+o*l,p=he(r,n,f,d),y=he(r,n,i,d),v=c?a-o*l:a,h=he(r,n,f*Math.cos(l*Ra),v);return{center:p,circleTangency:y,lineTangency:h,theta:l}},a1=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,s=uN(o,u),c=o+s,f=he(r,n,a,o),l=he(r,n,a,c),d="M ".concat(f.x,",").concat(f.y,`
|
|
23
|
+
A `).concat(a,",").concat(a,`,0,
|
|
24
|
+
`).concat(+(Math.abs(s)>180),",").concat(+(o>c),`,
|
|
25
|
+
`).concat(l.x,",").concat(l.y,`
|
|
26
|
+
`);if(i>0){var p=he(r,n,i,o),y=he(r,n,i,c);d+="L ".concat(y.x,",").concat(y.y,`
|
|
27
|
+
A `).concat(i,",").concat(i,`,0,
|
|
28
|
+
`).concat(+(Math.abs(s)>180),",").concat(+(o<=c),`,
|
|
29
|
+
`).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},sN=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,s=t.cornerIsExternal,c=t.startAngle,f=t.endAngle,l=Le(f-c),d=ta({cx:r,cy:n,radius:a,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),p=d.circleTangency,y=d.lineTangency,v=d.theta,h=ta({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:s}),g=h.circleTangency,x=h.lineTangency,w=h.theta,O=s?Math.abs(c-f):Math.abs(c-f)-v-w;if(O<0)return u?"M ".concat(y.x,",").concat(y.y,`
|
|
30
|
+
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
|
|
31
|
+
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
|
|
32
|
+
`):a1({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,`
|
|
33
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,`
|
|
34
|
+
A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(g.x,",").concat(g.y,`
|
|
35
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
|
|
36
|
+
`);if(i>0){var b=ta({cx:r,cy:n,radius:i,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=b.circleTangency,A=b.lineTangency,T=b.theta,$=ta({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),j=$.circleTangency,M=$.lineTangency,C=$.theta,k=s?Math.abs(c-f):Math.abs(c-f)-T-C;if(k<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(M.x,",").concat(M.y,`
|
|
37
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(j.x,",").concat(j.y,`
|
|
38
|
+
A`).concat(i,",").concat(i,",0,").concat(+(k>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,`
|
|
39
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(A.x,",").concat(A.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},cN={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},o1=function(t){var r=Lg(Lg({},cN),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,d=r.className;if(o<a||f===l)return null;var p=J("recharts-sector",d),y=o-a,v=Be(u,y,0,!0),h;return v>0&&Math.abs(f-l)<360?h=sN({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:f,endAngle:l}):h=a1({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),P.createElement("path",qf({},G(r,!0),{className:p,d:h,role:"img"}))};function bi(e){"@babel/helpers - typeof";return bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bi(e)}function Lf(){return Lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lf.apply(this,arguments)}function Bg(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 Fg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bg(Object(r),!0).forEach(function(n){lN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lN(e,t,r){return t=fN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fN(e){var t=dN(e,"string");return bi(t)=="symbol"?t:t+""}function dN(e,t){if(bi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wg={curveBasisClosed:$A,curveBasisOpen:kA,curveBasis:CA,curveBumpX:mA,curveBumpY:gA,curveLinearClosed:NA,curveLinear:mo,curveMonotoneX:IA,curveMonotoneY:DA,curveNatural:RA,curveStep:qA,curveStepAfter:BA,curveStepBefore:LA},ra=function(t){return t.x===+t.x&&t.y===+t.y},Dn=function(t){return t.x},Rn=function(t){return t.y},hN=function(t,r){if(V(t))return t;var n="curve".concat(vo(t));return(n==="curveMonotone"||n==="curveBump")&&r?Wg["".concat(n).concat(r==="vertical"?"Y":"X")]:Wg[n]||mo},pN=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,s=t.connectNulls,c=s===void 0?!1:s,f=hN(n,u),l=c?a.filter(function(v){return ra(v)}):a,d;if(Array.isArray(o)){var p=c?o.filter(function(v){return ra(v)}):o,y=l.map(function(v,h){return Fg(Fg({},v),{},{base:p[h]})});return u==="vertical"?d=Ki().y(Rn).x1(Dn).x0(function(v){return v.base.x}):d=Ki().x(Dn).y1(Rn).y0(function(v){return v.base.y}),d.defined(ra).curve(f),d(y)}return u==="vertical"&&L(o)?d=Ki().y(Rn).x1(Dn).x0(o):L(o)?d=Ki().x(Dn).y1(Rn).y0(o):d=nx().x(Dn).y(Rn),d.defined(ra).curve(f),d(l)},zr=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?pN(t):i;return D.createElement("path",Lf({},G(t,!1),da(t),{className:J("recharts-curve",r),d:o,ref:a}))},wl={exports:{}},Ol,Ug;function vN(){if(Ug)return Ol;Ug=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ol=e,Ol}var _l,zg;function yN(){if(zg)return _l;zg=1;var e=vN();function t(){}function r(){}return r.resetWarningCache=t,_l=function(){function n(o,u,s,c,f,l){if(l!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},_l}var Hg;function mN(){return Hg||(Hg=1,wl.exports=yN()()),wl.exports}var gN=mN();const ae=ce(gN);var bN=Object.getOwnPropertyNames,xN=Object.getOwnPropertySymbols,wN=Object.prototype.hasOwnProperty;function Gg(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function na(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);var s=e(r,n,i);return a.delete(r),a.delete(n),s}}function ON(e){return e?.[Symbol.toStringTag]}function Kg(e){return bN(e).concat(xN(e))}var _N=Object.hasOwn||(function(e,t){return wN.call(e,t)});function jr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var SN="__v",AN="__o",PN="_owner",Yg=Object.getOwnPropertyDescriptor,Vg=Object.keys;function jN(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function TN(e,t){return jr(e.getTime(),t.getTime())}function EN(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function MN(e,t){return e===t}function Xg(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,u,s=0;(o=a.next())&&!o.done;){for(var c=t.entries(),f=!1,l=0;(u=c.next())&&!u.done;){if(i[l]){l++;continue}var d=o.value,p=u.value;if(r.equals(d[0],p[0],s,l,e,t,r)&&r.equals(d[1],p[1],d[0],p[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;s++}return!0}var CN=jr;function $N(e,t,r){var n=Vg(e),i=n.length;if(Vg(t).length!==i)return!1;for(;i-- >0;)if(!u1(e,t,r,n[i]))return!1;return!0}function qn(e,t,r){var n=Kg(e),i=n.length;if(Kg(t).length!==i)return!1;for(var a,o,u;i-- >0;)if(a=n[i],!u1(e,t,r,a)||(o=Yg(e,a),u=Yg(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function kN(e,t){return jr(e.valueOf(),t.valueOf())}function NN(e,t){return e.source===t.source&&e.flags===t.flags}function Zg(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,u;(o=a.next())&&!o.done;){for(var s=t.values(),c=!1,f=0;(u=s.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1}return!0}function IN(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 DN(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 u1(e,t,r,n){return(n===PN||n===AN||n===SN)&&(e.$$typeof||t.$$typeof)?!0:_N(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var RN="[object Arguments]",qN="[object Boolean]",LN="[object Date]",BN="[object Error]",FN="[object Map]",WN="[object Number]",UN="[object Object]",zN="[object RegExp]",HN="[object Set]",GN="[object String]",KN="[object URL]",YN=Array.isArray,Qg=typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView:null,Jg=Object.assign,VN=Object.prototype.toString.call.bind(Object.prototype.toString);function XN(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,u=e.areObjectsEqual,s=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,f=e.areSetsEqual,l=e.areTypedArraysEqual,d=e.areUrlsEqual,p=e.unknownTagComparators;return function(v,h,g){if(v===h)return!0;if(v==null||h==null)return!1;var x=typeof v;if(x!==typeof h)return!1;if(x!=="object")return x==="number"?o(v,h,g):x==="function"?i(v,h,g):!1;var w=v.constructor;if(w!==h.constructor)return!1;if(w===Object)return u(v,h,g);if(YN(v))return t(v,h,g);if(Qg!=null&&Qg(v))return l(v,h,g);if(w===Date)return r(v,h,g);if(w===RegExp)return c(v,h,g);if(w===Map)return a(v,h,g);if(w===Set)return f(v,h,g);var O=VN(v);if(O===LN)return r(v,h,g);if(O===zN)return c(v,h,g);if(O===FN)return a(v,h,g);if(O===HN)return f(v,h,g);if(O===UN)return typeof v.then!="function"&&typeof h.then!="function"&&u(v,h,g);if(O===KN)return d(v,h,g);if(O===BN)return n(v,h,g);if(O===RN)return u(v,h,g);if(O===qN||O===WN||O===GN)return s(v,h,g);if(p){var m=p[O];if(!m){var b=ON(v);b&&(m=p[b])}if(m)return m(v,h,g)}return!1}}function ZN(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?qn:jN,areDatesEqual:TN,areErrorsEqual:EN,areFunctionsEqual:MN,areMapsEqual:n?Gg(Xg,qn):Xg,areNumbersEqual:CN,areObjectsEqual:n?qn:$N,arePrimitiveWrappersEqual:kN,areRegExpsEqual:NN,areSetsEqual:n?Gg(Zg,qn):Zg,areTypedArraysEqual:n?qn:IN,areUrlsEqual:DN,unknownTagComparators:void 0};if(r&&(i=Jg({},i,r(i))),t){var a=na(i.areArraysEqual),o=na(i.areMapsEqual),u=na(i.areObjectsEqual),s=na(i.areSetsEqual);i=Jg({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:s})}return i}function QN(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function JN(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(s,c){var f=n(),l=f.cache,d=l===void 0?t?new WeakMap:void 0:l,p=f.meta;return r(s,c,{cache:d,equals:i,meta:p,strict:a})};if(t)return function(s,c){return r(s,c,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(s,c){return r(s,c,o)}}var eI=Jt();Jt({strict:!0});Jt({circular:!0});Jt({circular:!0,strict:!0});Jt({createInternalComparator:function(){return jr}});Jt({strict:!0,createInternalComparator:function(){return jr}});Jt({circular:!0,createInternalComparator:function(){return jr}});Jt({circular:!0,createInternalComparator:function(){return jr},strict:!0});function Jt(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,u=ZN(e),s=XN(u),c=n?n(s):QN(s);return JN({circular:r,comparator:s,createState:i,equals:c,strict:o})}function tI(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function eb(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):tI(i)};requestAnimationFrame(n)}function Bf(e){"@babel/helpers - typeof";return Bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bf(e)}function rI(e){return oI(e)||aI(e)||iI(e)||nI()}function nI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
40
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iI(e,t){if(e){if(typeof e=="string")return tb(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 tb(e,t)}}function tb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function aI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oI(e){if(Array.isArray(e))return e}function uI(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=rI(o),s=u[0],c=u.slice(1);if(typeof s=="number"){eb(i.bind(null,c),s);return}i(s),eb(i.bind(null,c));return}Bf(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}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 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 nb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rb(Object(r),!0).forEach(function(n){s1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s1(e,t,r){return t=sI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sI(e){var t=cI(e,"string");return xi(t)==="symbol"?t:String(t)}function cI(e,t){if(xi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lI=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},fI=function(t){return t},dI=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Yn=function(t,r){return Object.keys(r).reduce(function(n,i){return nb(nb({},n),{},s1({},i,t(i,r[i])))},{})},ib=function(t,r,n){return t.map(function(i){return"".concat(dI(i)," ").concat(r,"ms ").concat(n)}).join(",")};function hI(e,t){return yI(e)||vI(e,t)||c1(e,t)||pI()}function pI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
41
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function yI(e){if(Array.isArray(e))return e}function mI(e){return xI(e)||bI(e)||c1(e)||gI()}function gI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
42
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c1(e,t){if(e){if(typeof e=="string")return Ff(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 Ff(e,t)}}function bI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xI(e){if(Array.isArray(e))return Ff(e)}function Ff(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var La=1e-4,l1=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},f1=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},ab=function(t,r){return function(n){var i=l1(t,r);return f1(i,n)}},wI=function(t,r){return function(n){var i=l1(t,r),a=[].concat(mI(i.map(function(o,u){return o*u}).slice(1)),[0]);return f1(a,n)}},ob=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var s=r[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var c=s[1].split(")")[0].split(",").map(function(h){return parseFloat(h)}),f=hI(c,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=ab(i,o),d=ab(a,u),p=wI(i,o),y=function(g){return g>1?1:g<0?0:g},v=function(g){for(var x=g>1?1:g,w=x,O=0;O<8;++O){var m=l(w)-x,b=p(w);if(Math.abs(m-x)<La||b<La)return d(w);w=y(w-m/b)}return d(w)};return v.isStepper=!1,v},OI=function(){var t=arguments.length>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,u=o===void 0?17:o,s=function(f,l,d){var p=-(f-l)*n,y=d*a,v=d+(p-y)*u/1e3,h=d*u/1e3+f;return Math.abs(h-l)<La&&Math.abs(v)<La?[l,0]:[h,v]};return s.isStepper=!0,s.dt=u,s},_I=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return ob(i);case"spring":return OI();default:if(i.split("(")[0]==="cubic-bezier")return ob(i)}return typeof i=="function"?i:null};function wi(e){"@babel/helpers - typeof";return wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wi(e)}function ub(e){return PI(e)||AI(e)||d1(e)||SI()}function SI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
43
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PI(e){if(Array.isArray(e))return Uf(e)}function sb(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 Ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sb(Object(r),!0).forEach(function(n){Wf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wf(e,t,r){return t=jI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jI(e){var t=TI(e,"string");return wi(t)==="symbol"?t:String(t)}function TI(e,t){if(wi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EI(e,t){return $I(e)||CI(e,t)||d1(e,t)||MI()}function MI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
44
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d1(e,t){if(e){if(typeof e=="string")return Uf(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 Uf(e,t)}}function Uf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function CI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function $I(e){if(Array.isArray(e))return e}var Ba=function(t,r,n){return t+(r-t)*n},zf=function(t){var r=t.from,n=t.to;return r!==n},kI=function e(t,r,n){var i=Yn(function(a,o){if(zf(o)){var u=t(o.from,o.to,o.velocity),s=EI(u,2),c=s[0],f=s[1];return Ne(Ne({},o),{},{from:c,velocity:f})}return o},r);return n<1?Yn(function(a,o){return zf(o)?Ne(Ne({},o),{},{velocity:Ba(o.velocity,i[a].velocity,n),from:Ba(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const NI=(function(e,t,r,n,i){var a=lI(e,t),o=a.reduce(function(h,g){return Ne(Ne({},h),{},Wf({},g,[e[g],t[g]]))},{}),u=a.reduce(function(h,g){return Ne(Ne({},h),{},Wf({},g,{from:e[g],velocity:0,to:t[g]}))},{}),s=-1,c,f,l=function(){return null},d=function(){return Yn(function(g,x){return x.from},u)},p=function(){return!Object.values(u).filter(zf).length},y=function(g){c||(c=g);var x=g-c,w=x/r.dt;u=kI(r,u,w),i(Ne(Ne(Ne({},e),t),d())),c=g,p()||(s=requestAnimationFrame(l))},v=function(g){f||(f=g);var x=(g-f)/n,w=Yn(function(m,b){return Ba.apply(void 0,ub(b).concat([r(x)]))},o);if(i(Ne(Ne(Ne({},e),t),w)),x<1)s=requestAnimationFrame(l);else{var O=Yn(function(m,b){return Ba.apply(void 0,ub(b).concat([r(1)]))},o);i(Ne(Ne(Ne({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(s)}}});function tn(e){"@babel/helpers - typeof";return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tn(e)}var II=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function DI(e,t){if(e==null)return{};var r=RI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RI(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Sl(e){return FI(e)||BI(e)||LI(e)||qI()}function qI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
45
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LI(e,t){if(e){if(typeof e=="string")return Hf(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 Hf(e,t)}}function BI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function FI(e){if(Array.isArray(e))return Hf(e)}function Hf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cb(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 ct(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cb(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wn(e,t,r){return t=h1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UI(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h1(n.key),n)}}function zI(e,t,r){return t&&UI(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function h1(e){var t=HI(e,"string");return tn(t)==="symbol"?t:String(t)}function HI(e,t){if(tn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GI(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gf(e,t)}function Gf(e,t){return Gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gf(e,t)}function KI(e){var t=YI();return function(){var n=Fa(e),i;if(t){var a=Fa(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Kf(this,i)}}function Kf(e,t){if(t&&(tn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yf(e)}function Yf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fa(e){return Fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fa(e)}var wt=(function(e){GI(r,e);var t=KI(r);function r(n,i){var a;WI(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,s=o.attributeName,c=o.from,f=o.to,l=o.steps,d=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Yf(a)),a.changeStyle=a.changeStyle.bind(Yf(a)),!u||p<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),Kf(a);if(l&&l.length)a.state={style:l[0].style};else if(c){if(typeof d=="function")return a.state={style:c},Kf(a);a.state={style:s?Wn({},s,c):c}}else a.state={style:{}};return a}return zI(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,u=a.canBegin,s=a.attributeName,c=a.shouldReAnimate,f=a.to,l=a.from,d=this.state.style;if(u){if(!o){var p={style:s?Wn({},s,f):f};this.state&&d&&(s&&d[s]!==f||!s&&d!==f)&&this.setState(p);return}if(!(eI(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||c?l:i.to;if(this.state&&d){var h={style:s?Wn({},s,v):v};(s&&d[s]!==v||!s&&d!==v)&&this.setState(h)}this.runAnimation(ct(ct({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,s=i.duration,c=i.easing,f=i.begin,l=i.onAnimationEnd,d=i.onAnimationStart,p=NI(o,u,_I(c),s,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([d,f,y,s,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,s=i.onAnimationStart,c=o[0],f=c.style,l=c.duration,d=l===void 0?0:l,p=function(v,h,g){if(g===0)return v;var x=h.duration,w=h.easing,O=w===void 0?"ease":w,m=h.style,b=h.properties,_=h.onAnimationEnd,A=g>0?o[g-1]:h,T=b||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(Sl(v),[a.runJSAnimation.bind(a,{from:A.style,to:m,duration:x,easing:O}),x]);var $=ib(T,x,O),j=ct(ct(ct({},A.style),m),{},{transition:$});return[].concat(Sl(v),[j,x,_]).filter(fI)};return this.manager.start([s].concat(Sl(o.reduce(p,[f,Math.max(d,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=uI());var a=i.begin,o=i.duration,u=i.attributeName,s=i.to,c=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,d=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=u?Wn({},u,s):s,h=ib(Object.keys(v),o,c);y.start([f,a,ct(ct({},v),{},{transition:h}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var s=DI(i,II),c=D.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||c===0||o<=0)return a;var l=function(p){var y=p.props,v=y.style,h=v===void 0?{}:v,g=y.className,x=D.cloneElement(p,ct(ct({},s),{},{style:ct(ct({},h),f),className:g}));return x};return c===1?l(D.Children.only(a)):P.createElement("div",null,D.Children.map(a,function(d){return l(d)}))}}]),r})(D.PureComponent);wt.displayName="Animate";wt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};wt.propTypes={from:ae.oneOfType([ae.object,ae.string]),to:ae.oneOfType([ae.object,ae.string]),attributeName:ae.string,duration:ae.number,begin:ae.number,easing:ae.oneOfType([ae.string,ae.func]),steps:ae.arrayOf(ae.shape({duration:ae.number.isRequired,style:ae.object.isRequired,easing:ae.oneOfType([ae.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ae.func]),properties:ae.arrayOf("string"),onAnimationEnd:ae.func})),children:ae.oneOfType([ae.node,ae.func]),isActive:ae.bool,canBegin:ae.bool,onAnimationEnd:ae.func,shouldReAnimate:ae.bool,onAnimationStart:ae.func,onAnimationReStart:ae.func};function Oi(e){"@babel/helpers - typeof";return Oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oi(e)}function Wa(){return Wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wa.apply(this,arguments)}function VI(e,t){return JI(e)||QI(e,t)||ZI(e,t)||XI()}function XI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
46
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZI(e,t){if(e){if(typeof e=="string")return lb(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 lb(e,t)}}function lb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function QI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function JI(e){if(Array.isArray(e))return e}function fb(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 db(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fb(Object(r),!0).forEach(function(n){eD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eD(e,t,r){return t=tD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tD(e){var t=rD(e,"string");return Oi(t)=="symbol"?t:t+""}function rD(e,t){if(Oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hb=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,s=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],d=0,p=4;d<p;d++)l[d]=a[d]>o?o:a[d];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(t+s*l[0],",").concat(r)),f+="L ".concat(t+n-s*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,`,
|
|
47
|
+
`).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,`,
|
|
48
|
+
`).concat(t+n-s*l[2],",").concat(r+i)),f+="L ".concat(t+s*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,`,
|
|
49
|
+
`).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+u*y,`
|
|
50
|
+
A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+s*y,",").concat(r,`
|
|
51
|
+
L `).concat(t+n-s*y,",").concat(r,`
|
|
52
|
+
A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n,",").concat(r+u*y,`
|
|
53
|
+
L `).concat(t+n,",").concat(r+i-u*y,`
|
|
54
|
+
A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n-s*y,",").concat(r+i,`
|
|
55
|
+
L `).concat(t+s*y,",").concat(r+i,`
|
|
56
|
+
A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},nD=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,s=r.height;if(Math.abs(u)>0&&Math.abs(s)>0){var c=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+s),d=Math.max(o,o+s);return n>=c&&n<=f&&i>=l&&i<=d}return!1},iD={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ph=function(t){var r=db(db({},iD),t),n=D.useRef(),i=D.useState(-1),a=VI(i,2),o=a[0],u=a[1];D.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var s=r.x,c=r.y,f=r.width,l=r.height,d=r.radius,p=r.className,y=r.animationEasing,v=r.animationDuration,h=r.animationBegin,g=r.isAnimationActive,x=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||f===0||l===0)return null;var w=J("recharts-rectangle",p);return x?P.createElement(wt,{canBegin:o>0,from:{width:f,height:l,x:s,y:c},to:{width:f,height:l,x:s,y:c},duration:v,animationEasing:y,isActive:x},function(O){var m=O.width,b=O.height,_=O.x,A=O.y;return P.createElement(wt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:v,isActive:g,easing:y},P.createElement("path",Wa({},G(r,!0),{className:w,d:hb(_,A,m,b,d),ref:n})))}):P.createElement("path",Wa({},G(r,!0),{className:w,d:hb(s,c,f,l,d)}))},aD=["points","className","baseLinePoints","connectNulls"];function Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dr.apply(this,arguments)}function oD(e,t){if(e==null)return{};var r=uD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uD(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 pb(e){return fD(e)||lD(e)||cD(e)||sD()}function sD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
57
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cD(e,t){if(e){if(typeof e=="string")return Vf(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 Vf(e,t)}}function lD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fD(e){if(Array.isArray(e))return Vf(e)}function Vf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var vb=function(t){return t&&t.x===+t.x&&t.y===+t.y},dD=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){vb(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),vb(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Vn=function(t,r){var n=dD(t);r&&(n=[n.reduce(function(a,o){return[].concat(pb(a),pb(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,u,s){return"".concat(o).concat(s===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},hD=function(t,r,n){var i=Vn(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Vn(r.reverse(),n).slice(1))},pD=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=oD(t,aD);if(!r||!r.length)return null;var u=J("recharts-polygon",n);if(i&&i.length){var s=o.stroke&&o.stroke!=="none",c=hD(r,i,a);return P.createElement("g",{className:u},P.createElement("path",Dr({},G(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),s?P.createElement("path",Dr({},G(o,!0),{fill:"none",d:Vn(r,a)})):null,s?P.createElement("path",Dr({},G(o,!0),{fill:"none",d:Vn(i,a)})):null)}var f=Vn(r,a);return P.createElement("path",Dr({},G(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};function Xf(){return Xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xf.apply(this,arguments)}var No=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=J("recharts-dot",a);return r===+r&&n===+n&&i===+i?D.createElement("circle",Xf({},G(t,!1),da(t),{className:o,cx:r,cy:n,r:i})):null};function _i(e){"@babel/helpers - typeof";return _i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_i(e)}var vD=["x","y","top","left","width","height","className"];function Zf(){return Zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zf.apply(this,arguments)}function yb(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 yD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yb(Object(r),!0).forEach(function(n){mD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mD(e,t,r){return t=gD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gD(e){var t=bD(e,"string");return _i(t)=="symbol"?t:t+""}function bD(e,t){if(_i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_i(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xD(e,t){if(e==null)return{};var r=wD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wD(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 OD=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},_D=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,s=t.left,c=s===void 0?0:s,f=t.width,l=f===void 0?0:f,d=t.height,p=d===void 0?0:d,y=t.className,v=xD(t,vD),h=yD({x:n,y:a,top:u,left:c,width:l,height:p},v);return!L(n)||!L(a)||!L(l)||!L(p)||!L(u)||!L(c)?null:P.createElement("path",Zf({},G(h,!0),{className:J("recharts-cross",y),d:OD(n,a,l,p,u,c)}))},Al,mb;function SD(){if(mb)return Al;mb=1;var e=Eo(),t=Tw(),r=_t();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return Al=n,Al}var AD=SD();const PD=ce(AD);var Pl,gb;function jD(){if(gb)return Pl;gb=1;var e=Eo(),t=_t(),r=Ew();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return Pl=n,Pl}var TD=jD();const ED=ce(TD);var MD=["cx","cy","angle","ticks","axisLine"],CD=["ticks","tick","angle","tickFormatter","stroke"];function rn(e){"@babel/helpers - typeof";return rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rn(e)}function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xn.apply(this,arguments)}function bb(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 ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bb(Object(r),!0).forEach(function(n){Io(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xb(e,t){if(e==null)return{};var r=$D(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $D(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 kD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v1(n.key),n)}}function ND(e,t,r){return t&&wb(e.prototype,t),r&&wb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ID(e,t,r){return t=Ua(t),DD(e,p1()?Reflect.construct(t,r||[],Ua(e).constructor):t.apply(e,r))}function DD(e,t){if(t&&(rn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RD(e)}function RD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(p1=function(){return!!e})()}function Ua(e){return Ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ua(e)}function qD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qf(e,t)}function Qf(e,t){return Qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qf(e,t)}function Io(e,t,r){return t=v1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v1(e){var t=LD(e,"string");return rn(t)=="symbol"?t:t+""}function LD(e,t){if(rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Do=(function(e){function t(){return kD(this,t),ID(this,t,arguments)}return qD(t,e),ND(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,s=a.cy;return he(u,s,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,s=PD(u,function(f){return f.coordinate||0}),c=ED(u,function(f){return f.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:c.coordinate||0,outerRadius:s.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,s=n.axisLine,c=xb(n,MD),f=u.reduce(function(y,v){return[Math.min(y[0],v.coordinate),Math.max(y[1],v.coordinate)]},[1/0,-1/0]),l=he(i,a,f[0],o),d=he(i,a,f[1],o),p=ir(ir(ir({},G(c,!1)),{},{fill:"none"},G(s,!1)),{},{x1:l.x,y1:l.y,x2:d.x,y2:d.y});return P.createElement("line",Xn({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.angle,s=i.tickFormatter,c=i.stroke,f=xb(i,CD),l=this.getTickTextAnchor(),d=G(f,!1),p=G(o,!1),y=a.map(function(v,h){var g=n.getTickValueCoord(v),x=ir(ir(ir(ir({textAnchor:l,transform:"rotate(".concat(90-u,", ").concat(g.x,", ").concat(g.y,")")},d),{},{stroke:"none",fill:c},p),{},{index:h},g),{},{payload:v});return P.createElement(te,Xn({className:J("recharts-polar-radius-axis-tick",n1(o)),key:"tick-".concat(v.coordinate)},gr(n.props,v,h)),t.renderTickItem(o,x,s?s(v.value,h):v.value))});return P.createElement(te,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:P.createElement(te,{className:J("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),$e.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):V(n)?o=n(i):o=P.createElement(br,Xn({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(D.PureComponent);Io(Do,"displayName","PolarRadiusAxis");Io(Do,"axisType","radiusAxis");Io(Do,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function nn(e){"@babel/helpers - typeof";return nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nn(e)}function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cr.apply(this,arguments)}function Ob(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 ar(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ob(Object(r),!0).forEach(function(n){Ro(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ob(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m1(n.key),n)}}function FD(e,t,r){return t&&_b(e.prototype,t),r&&_b(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function WD(e,t,r){return t=za(t),UD(e,y1()?Reflect.construct(t,r||[],za(e).constructor):t.apply(e,r))}function UD(e,t){if(t&&(nn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zD(e)}function zD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(y1=function(){return!!e})()}function za(e){return za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},za(e)}function HD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jf(e,t)}function Jf(e,t){return Jf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jf(e,t)}function Ro(e,t,r){return t=m1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m1(e){var t=GD(e,"string");return nn(t)=="symbol"?t:t+""}function GD(e,t){if(nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var KD=Math.PI/180,Sb=1e-5,qo=(function(e){function t(){return BD(this,t),WD(this,t,arguments)}return HD(t,e),FD(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,u=i.radius,s=i.orientation,c=i.tickSize,f=c||8,l=he(a,o,u,n.coordinate),d=he(a,o,u+(s==="inner"?-1:1)*f,n.coordinate);return{x1:l.x,y1:l.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*KD),o;return a>Sb?o=i==="outer"?"start":"end":a<-Sb?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,u=n.axisLine,s=n.axisLineType,c=ar(ar({},G(this.props,!1)),{},{fill:"none"},G(u,!1));if(s==="circle")return P.createElement(No,cr({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:o}));var f=this.props.ticks,l=f.map(function(d){return he(i,a,o,d.coordinate)});return P.createElement(pD,cr({className:"recharts-polar-angle-axis-line"},c,{points:l}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.tickLine,s=i.tickFormatter,c=i.stroke,f=G(this.props,!1),l=G(o,!1),d=ar(ar({},f),{},{fill:"none"},G(u,!1)),p=a.map(function(y,v){var h=n.getTickLineCoord(y),g=n.getTickTextAnchor(y),x=ar(ar(ar({textAnchor:g},f),{},{stroke:"none",fill:c},l),{},{index:v,payload:y,x:h.x2,y:h.y2});return P.createElement(te,cr({className:J("recharts-polar-angle-axis-tick",n1(o)),key:"tick-".concat(y.coordinate)},gr(n.props,y,v)),u&&P.createElement("line",cr({className:"recharts-polar-angle-axis-tick-line"},d,h)),o&&t.renderTickItem(o,x,s?s(y.value,v):y.value))});return P.createElement(te,{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:P.createElement(te,{className:J("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):V(n)?o=n(i):o=P.createElement(br,cr({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(D.PureComponent);Ro(qo,"displayName","PolarAngleAxis");Ro(qo,"axisType","angleAxis");Ro(qo,"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 jl,Ab;function YD(){if(Ab)return jl;Ab=1;var e=Px(),t=e(Object.getPrototypeOf,Object);return jl=t,jl}var Tl,Pb;function VD(){if(Pb)return Tl;Pb=1;var e=Rt(),t=YD(),r=qt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,s=o.call(Object);function c(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var d=u.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==s}return Tl=c,Tl}var XD=VD();const ZD=ce(XD);var El,jb;function QD(){if(jb)return El;jb=1;var e=Rt(),t=qt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return El=n,El}var JD=QD();const eR=ce(JD);function Si(e){"@babel/helpers - typeof";return Si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Si(e)}function Ha(){return Ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ha.apply(this,arguments)}function tR(e,t){return aR(e)||iR(e,t)||nR(e,t)||rR()}function rR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
58
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nR(e,t){if(e){if(typeof e=="string")return Tb(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 Tb(e,t)}}function Tb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function aR(e){if(Array.isArray(e))return 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 Mb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eb(Object(r),!0).forEach(function(n){oR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oR(e,t,r){return t=uR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uR(e){var t=sR(e,"string");return Si(t)=="symbol"?t:t+""}function sR(e,t){if(Si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cb=function(t,r,n,i,a){var o=n-i,u;return u="M ".concat(t,",").concat(r),u+="L ".concat(t+n,",").concat(r),u+="L ".concat(t+n-o/2,",").concat(r+a),u+="L ".concat(t+n-o/2-i,",").concat(r+a),u+="L ".concat(t,",").concat(r," Z"),u},cR={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},lR=function(t){var r=Mb(Mb({},cR),t),n=D.useRef(),i=D.useState(-1),a=tR(i,2),o=a[0],u=a[1];D.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var s=r.x,c=r.y,f=r.upperWidth,l=r.lowerWidth,d=r.height,p=r.className,y=r.animationEasing,v=r.animationDuration,h=r.animationBegin,g=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||d!==+d||f===0&&l===0||d===0)return null;var x=J("recharts-trapezoid",p);return g?P.createElement(wt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:c},to:{upperWidth:f,lowerWidth:l,height:d,x:s,y:c},duration:v,animationEasing:y,isActive:g},function(w){var O=w.upperWidth,m=w.lowerWidth,b=w.height,_=w.x,A=w.y;return P.createElement(wt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:v,easing:y},P.createElement("path",Ha({},G(r,!0),{className:x,d:Cb(_,A,O,m,b),ref:n})))}):P.createElement("g",null,P.createElement("path",Ha({},G(r,!0),{className:x,d:Cb(s,c,f,l,d)})))},fR=["option","shapeType","propTransformer","activeClassName","isActive"];function Ai(e){"@babel/helpers - typeof";return Ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ai(e)}function dR(e,t){if(e==null)return{};var r=hR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hR(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 $b(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 Ga(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$b(Object(r),!0).forEach(function(n){pR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$b(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pR(e,t,r){return t=vR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vR(e){var t=yR(e,"string");return Ai(t)=="symbol"?t:t+""}function yR(e,t){if(Ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mR(e,t){return Ga(Ga({},t),e)}function gR(e,t){return e==="symbols"}function kb(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return P.createElement(ph,r);case"trapezoid":return P.createElement(lR,r);case"sector":return P.createElement(o1,r);case"symbols":if(gR(t))return P.createElement(kd,r);break;default:return null}}function bR(e){return D.isValidElement(e)?e.props:e}function g1(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?mR:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=dR(e,fR),c;if(D.isValidElement(t))c=D.cloneElement(t,Ga(Ga({},s),bR(t)));else if(V(t))c=t(s);else if(ZD(t)&&!eR(t)){var f=i(t,s);c=P.createElement(kb,{shapeType:r,elementProps:f})}else{var l=s;c=P.createElement(kb,{shapeType:r,elementProps:l})}return u?P.createElement(te,{className:o},c):c}function Lo(e,t){return t!=null&&"trapezoids"in e.props}function Bo(e,t){return t!=null&&"sectors"in e.props}function Pi(e,t){return t!=null&&"points"in e.props}function xR(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function wR(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function OR(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function _R(e,t){var r;return Lo(e,t)?r=xR:Bo(e,t)?r=wR:Pi(e,t)&&(r=OR),r}function SR(e,t){var r;return Lo(e,t)?r="trapezoids":Bo(e,t)?r="sectors":Pi(e,t)&&(r="points"),r}function AR(e,t){if(Lo(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Bo(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Pi(e,t)?t.payload:{}}function PR(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=SR(r,t),a=AR(r,t),o=n.filter(function(s,c){var f=Jr(a,s),l=r.props[i].filter(function(y){var v=_R(r,t);return v(y,t)}),d=r.props[i].indexOf(l[l.length-1]),p=c===d;return f&&p}),u=n.indexOf(o[o.length-1]);return u}var sa;function an(e){"@babel/helpers - typeof";return an=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},an(e)}function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rr.apply(this,arguments)}function Nb(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<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nb(Object(r),!0).forEach(function(n){it(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ib(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,x1(n.key),n)}}function TR(e,t,r){return t&&Ib(e.prototype,t),r&&Ib(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ER(e,t,r){return t=Ka(t),MR(e,b1()?Reflect.construct(t,r||[],Ka(e).constructor):t.apply(e,r))}function MR(e,t){if(t&&(an(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CR(e)}function CR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b1=function(){return!!e})()}function Ka(e){return Ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ka(e)}function $R(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ed(e,t)}function ed(e,t){return ed=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ed(e,t)}function it(e,t,r){return t=x1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x1(e){var t=kR(e,"string");return an(t)=="symbol"?t:t+""}function kR(e,t){if(an(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(an(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Bt=(function(e){function t(r){var n;return jR(this,t),n=ER(this,t,[r]),it(n,"pieRef",null),it(n,"sectorRefs",[]),it(n,"id",_n("recharts-pie-")),it(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),V(i)&&i()}),it(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),V(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return $R(t,e),TR(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,u=a.labelLine,s=a.dataKey,c=a.valueKey,f=G(this.props,!1),l=G(o,!1),d=G(u,!1),p=o&&o.offsetRadius||20,y=n.map(function(v,h){var g=(v.startAngle+v.endAngle)/2,x=he(v.cx,v.cy,v.outerRadius+p,g),w=fe(fe(fe(fe({},f),v),{},{stroke:"none"},l),{},{index:h,textAnchor:t.getTextAnchor(x.x,v.cx)},x),O=fe(fe(fe(fe({},f),v),{},{fill:"none",stroke:v.fill},d),{},{index:h,points:[he(v.cx,v.cy,v.outerRadius,g),x]}),m=s;return Z(s)&&Z(c)?m="value":Z(s)&&(m=c),P.createElement(te,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(h)},u&&t.renderLabelLineItem(u,O,"line"),t.renderLabelItem(o,w,Te(v,m)))});return P.createElement(te,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,u=a.blendStroke,s=a.inactiveShape;return n.map(function(c,f){if(c?.startAngle===0&&c?.endAngle===0&&n.length!==1)return null;var l=i.isActiveIndex(f),d=s&&i.hasActiveIndex()?s:null,p=l?o:d,y=fe(fe({},c),{},{stroke:u?c.fill:c.stroke,tabIndex:-1});return P.createElement(te,Rr({ref:function(h){h&&!i.sectorRefs.includes(h)&&i.sectorRefs.push(h)},tabIndex:-1,className:"recharts-pie-sector"},gr(i.props,c,f),{key:"sector-".concat(c?.startAngle,"-").concat(c?.endAngle,"-").concat(c.midAngle,"-").concat(f)}),P.createElement(g1,Rr({option:p,isActive:l,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,u=i.animationBegin,s=i.animationDuration,c=i.animationEasing,f=i.animationId,l=this.state,d=l.prevSectors,p=l.prevIsAnimationActive;return P.createElement(wt,{begin:u,duration:s,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var v=y.t,h=[],g=a&&a[0],x=g.startAngle;return a.forEach(function(w,O){var m=d&&d[O],b=O>0?Je(w,"paddingAngle",0):0;if(m){var _=ze(m.endAngle-m.startAngle,w.endAngle-w.startAngle),A=fe(fe({},w),{},{startAngle:x+b,endAngle:x+_(v)+b});h.push(A),x=A.endAngle}else{var T=w.endAngle,$=w.startAngle,j=ze(0,T-$),M=j(v),C=fe(fe({},w),{},{startAngle:x+b,endAngle:x+M+b});h.push(C),x=C.endAngle}}),P.createElement(te,null,n.renderSectorsStatically(h))})}},{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 u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});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||!Jr(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,u=i.className,s=i.label,c=i.cx,f=i.cy,l=i.innerRadius,d=i.outerRadius,p=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!L(c)||!L(f)||!L(l)||!L(d))return null;var v=J("recharts-pie",u);return P.createElement(te,{tabIndex:this.props.rootTabIndex,className:v,ref:function(g){n.pieRef=g}},this.renderSectors(),s&&this.renderLabels(o),$e.renderCallByParent(this.props,null,!1),(!p||y)&&$t.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<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(P.isValidElement(n))return P.cloneElement(n,i);if(V(n))return n(i);var o=J("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return P.createElement(zr,Rr({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(P.isValidElement(n))return P.cloneElement(n,i);var o=a;if(V(n)&&(o=n(i),P.isValidElement(o)))return o;var u=J("recharts-pie-label-text",typeof n!="boolean"&&!V(n)?n.className:"");return P.createElement(br,Rr({},i,{alignmentBaseline:"middle",className:u}),o)}}])})(D.PureComponent);sa=Bt;it(Bt,"displayName","Pie");it(Bt,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Sr.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});it(Bt,"parseDeltaAngle",function(e,t){var r=Le(t-e),n=Math.min(Math.abs(t-e),360);return r*n});it(Bt,"getRealPieData",function(e){var t=e.data,r=e.children,n=G(e,!1),i=ot(r,Oo);return t&&t.length?t.map(function(a,o){return fe(fe(fe({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return fe(fe({},n),a.props)}):[]});it(Bt,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=r1(i,a),u=n+Be(e.cx,i,i/2),s=r+Be(e.cy,a,a/2),c=Be(e.innerRadius,o,0),f=Be(e.outerRadius,o,o*.8),l=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:s,innerRadius:c,outerRadius:f,maxRadius:l}});it(Bt,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?fe(fe({},t.type.defaultProps),t.props):t.props,i=sa.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,u=n.endAngle,s=n.paddingAngle,c=n.dataKey,f=n.nameKey,l=n.valueKey,d=n.tooltipType,p=Math.abs(n.minAngle),y=sa.parseCoordinateOfPie(n,r),v=sa.parseDeltaAngle(o,u),h=Math.abs(v),g=c;Z(c)&&Z(l)?(ht(!1,`Use "dataKey" to specify the value of pie,
|
|
59
|
+
the props "valueKey" will be deprecated in 1.1.0`),g="value"):Z(c)&&(ht(!1,`Use "dataKey" to specify the value of pie,
|
|
60
|
+
the props "valueKey" will be deprecated in 1.1.0`),g=l);var x=i.filter(function(A){return Te(A,g,0)!==0}).length,w=(h>=360?x:x-1)*s,O=h-x*p-w,m=i.reduce(function(A,T){var $=Te(T,g,0);return A+(L($)?$:0)},0),b;if(m>0){var _;b=i.map(function(A,T){var $=Te(A,g,0),j=Te(A,f,T),M=(L($)?$:0)/m,C;T?C=_.endAngle+Le(v)*s*($!==0?1:0):C=o;var k=C+Le(v)*(($!==0?p:0)+M*O),E=(C+k)/2,I=(y.innerRadius+y.outerRadius)/2,R=[{name:j,value:$,payload:A,dataKey:g,type:d}],B=he(y.cx,y.cy,I,E);return _=fe(fe(fe({percent:M,cornerRadius:a,name:j,tooltipPayload:R,midAngle:E,middleRadius:I,tooltipPosition:B},A),y),{},{value:Te(A,g),startAngle:C,endAngle:k,payload:A,paddingAngle:Le(v)*s}),_})}return fe(fe({},y),{},{sectors:b,data:i})});var Ml,Db;function NR(){if(Db)return Ml;Db=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,s=t(e((i-n)/(a||1)),0),c=Array(s);s--;)c[o?s:++u]=n,n+=a;return c}return Ml=r,Ml}var Cl,Rb;function w1(){if(Rb)return Cl;Rb=1;var e=Wx(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return Cl=n,Cl}var $l,qb;function IR(){if(qb)return $l;qb=1;var e=NR(),t=wo(),r=w1();function n(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),u=u===void 0?a<o?1:-1:r(u),e(a,o,u,i)}}return $l=n,$l}var kl,Lb;function DR(){if(Lb)return kl;Lb=1;var e=IR(),t=e();return kl=t,kl}var RR=DR();const Ya=ce(RR);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 Bb(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 Fb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bb(Object(r),!0).forEach(function(n){O1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O1(e,t,r){return t=qR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qR(e){var t=LR(e,"string");return ji(t)=="symbol"?t:t+""}function LR(e,t){if(ji(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ji(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var BR=["Webkit","Moz","O","ms"],FR=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=BR.reduce(function(a,o){return Fb(Fb({},a),{},O1({},o+n,r))},{});return i[t]=r,i};function on(e){"@babel/helpers - typeof";return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},on(e)}function Va(){return Va=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Va.apply(this,arguments)}function Wb(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 Nl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wb(Object(r),!0).forEach(function(n){Ye(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ub(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,S1(n.key),n)}}function UR(e,t,r){return t&&Ub(e.prototype,t),r&&Ub(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zR(e,t,r){return t=Xa(t),HR(e,_1()?Reflect.construct(t,r||[],Xa(e).constructor):t.apply(e,r))}function HR(e,t){if(t&&(on(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GR(e)}function GR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_1=function(){return!!e})()}function Xa(e){return Xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xa(e)}function KR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&td(e,t)}function td(e,t){return td=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},td(e,t)}function Ye(e,t,r){return t=S1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S1(e){var t=YR(e,"string");return on(t)=="symbol"?t:t+""}function YR(e,t){if(on(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(on(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var VR=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var s=r.length,c=Gn().domain(Ya(0,s)).range([a,a+o-u]),f=c.domain().map(function(l){return c(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:f}},zb=function(t){return t.changedTouches&&!!t.changedTouches.length},un=(function(e){function t(r){var n;return WR(this,t),n=zR(this,t,[r]),Ye(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Ye(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Ye(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o?.({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),Ye(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ye(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ye(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ye(n,"handleSlideDragStart",function(i){var a=zb(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 KR(t,e),UR(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,u=this.props,s=u.gap,c=u.data,f=c.length-1,l=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,l),y=t.getIndexInRange(o,d);return{startIndex:p-p%s,endIndex:y===f?f:y-y%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,s=Te(a[n],u,n);return V(o)?o(s,n):s}},{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,u=i.endX,s=this.props,c=s.x,f=s.width,l=s.travellerWidth,d=s.startIndex,p=s.endIndex,y=s.onChange,v=n.pageX-a;v>0?v=Math.min(v,c+f-l-u,c+f-l-o):v<0&&(v=Math.max(v,c-o,c-u));var h=this.getIndex({startX:o+v,endX:u+v});(h.startIndex!==d||h.endIndex!==p)&&y&&y(h),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=zb(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,u=i.endX,s=i.startX,c=this.state[o],f=this.props,l=f.x,d=f.width,p=f.travellerWidth,y=f.onChange,v=f.gap,h=f.data,g={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+d-p-c):x<0&&(x=Math.max(x,l-c)),g[o]=c+x;var w=this.getIndex(g),O=w.startIndex,m=w.endIndex,b=function(){var A=h.length-1;return o==="startX"&&(u>s?O%v===0:m%v===0)||u<s&&m===A||o==="endX"&&(u>s?m%v===0:O%v===0)||u>s&&m===A};this.setState(Ye(Ye({},o,c+x),"brushMoveStartX",n.pageX),function(){y&&b()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,s=o.startX,c=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var d=l+n;if(!(d===-1||d>=u.length)){var p=u[d];i==="startX"&&p>=c||i==="endX"&&p<=s||this.setState(Ye({},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,u=n.height,s=n.fill,c=n.stroke;return P.createElement("rect",{stroke:c,fill:s,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.data,c=n.children,f=n.padding,l=D.Children.only(c);return l?P.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,s=this.props,c=s.y,f=s.travellerWidth,l=s.height,d=s.traveller,p=s.ariaLabel,y=s.data,v=s.startIndex,h=s.endIndex,g=Math.max(n,this.props.x),x=Nl(Nl({},G(this.props,!1)),{},{x:g,y:c,width:f,height:l}),w=p||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[h])===null||o===void 0?void 0:o.name);return P.createElement(te,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,s=a.stroke,c=a.travellerWidth,f=Math.min(n,i)+c,l=Math.max(Math.abs(i-n)-c,0);return P.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,s=n.travellerWidth,c=n.stroke,f=this.state,l=f.startX,d=f.endX,p=5,y={pointerEvents:"none",fill:c};return P.createElement(te,{className:"recharts-brush-texts"},P.createElement(br,Va({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,d)-p,y:o+u/2},y),this.getTextOfTick(i)),P.createElement(br,Va({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,d)+s+p,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,s=n.y,c=n.width,f=n.height,l=n.alwaysShowText,d=this.state,p=d.startX,y=d.endX,v=d.isTextActive,h=d.isSlideMoving,g=d.isTravellerMoving,x=d.isTravellerFocused;if(!i||!i.length||!L(u)||!L(s)||!L(c)||!L(f)||c<=0||f<=0)return null;var w=J("recharts-brush",a),O=P.Children.count(o)===1,m=FR("userSelect","none");return P.createElement(te,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(v||h||g||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,s=n.stroke,c=Math.floor(a+u/2)-1;return P.createElement(P.Fragment,null,P.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),P.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),P.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return P.isValidElement(n)?a=P.cloneElement(n,i):V(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,s=n.travellerWidth,c=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return Nl({prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o},a&&a.length?VR({data:a,width:o,x:u,travellerWidth:s,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([u,u+o-s]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,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,u=a-1;u-o>1;){var s=Math.floor((o+u)/2);n[s]>i?u=s:o=s}return i>=n[u]?u:o}}])})(D.PureComponent);Ye(un,"displayName","Brush");Ye(un,"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 Il,Hb;function XR(){if(Hb)return Il;Hb=1;var e=Bd();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return Il=t,Il}var Dl,Gb;function ZR(){if(Gb)return Dl;Gb=1;var e=bx(),t=_t(),r=XR(),n=Ge(),i=wo();function a(o,u,s){var c=n(o)?e:r;return s&&i(o,u,s)&&(u=void 0),c(o,t(u,3))}return Dl=a,Dl}var QR=ZR();const JR=ce(QR);var gt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Rl,Kb;function e2(){if(Kb)return Rl;Kb=1;var e=Rx();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Rl=t,Rl}var ql,Yb;function t2(){if(Yb)return ql;Yb=1;var e=e2(),t=Ix(),r=_t();function n(i,a){var o={};return a=r(a,3),t(i,function(u,s,c){e(o,s,a(u,s,c))}),o}return ql=n,ql}var r2=t2();const n2=ce(r2);var Ll,Vb;function i2(){if(Vb)return Ll;Vb=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Ll=e,Ll}var Bl,Xb;function a2(){if(Xb)return Bl;Xb=1;var e=Bd();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return Bl=t,Bl}var Fl,Zb;function o2(){if(Zb)return Fl;Zb=1;var e=i2(),t=a2(),r=_t(),n=Ge(),i=wo();function a(o,u,s){var c=n(o)?e:t;return s&&i(o,u,s)&&(u=void 0),c(o,r(u,3))}return Fl=a,Fl}var u2=o2();const A1=ce(u2);var s2=["x","y"];function Ti(e){"@babel/helpers - typeof";return Ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ti(e)}function rd(){return rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rd.apply(this,arguments)}function Qb(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 Ln(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qb(Object(r),!0).forEach(function(n){c2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c2(e,t,r){return t=l2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l2(e){var t=f2(e,"string");return Ti(t)=="symbol"?t:t+""}function f2(e,t){if(Ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d2(e,t){if(e==null)return{};var r=h2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function h2(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 p2(e,t){var r=e.x,n=e.y,i=d2(e,s2),a="".concat(r),o=parseInt(a,10),u="".concat(n),s=parseInt(u,10),c="".concat(t.height||i.height),f=parseInt(c,10),l="".concat(t.width||i.width),d=parseInt(l,10);return Ln(Ln(Ln(Ln(Ln({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function Jb(e){return P.createElement(g1,rd({shapeType:"rectangle",propTransformer:p2,activeClassName:"recharts-active-bar"},e))}var v2=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=L(n)||qS(n);return a?t(n,i):(a||wr(),r)}},y2=["value","background"],P1;function sn(e){"@babel/helpers - typeof";return sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sn(e)}function m2(e,t){if(e==null)return{};var r=g2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function g2(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 Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Za.apply(this,arguments)}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 xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e0(Object(r),!0).forEach(function(n){Yt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,T1(n.key),n)}}function x2(e,t,r){return t&&t0(e.prototype,t),r&&t0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function w2(e,t,r){return t=Qa(t),O2(e,j1()?Reflect.construct(t,r||[],Qa(e).constructor):t.apply(e,r))}function O2(e,t){if(t&&(sn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _2(e)}function _2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j1=function(){return!!e})()}function Qa(e){return Qa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qa(e)}function S2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nd(e,t)}function nd(e,t){return nd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},nd(e,t)}function Yt(e,t,r){return t=T1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T1(e){var t=A2(e,"string");return sn(t)=="symbol"?t:t+""}function A2(e,t){if(sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fi=(function(e){function t(){var r;b2(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=w2(this,t,[].concat(i)),Yt(r,"state",{isAnimationFinished:!1}),Yt(r,"id",_n("recharts-bar-")),Yt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Yt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return S2(t,e),x2(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,s=a.activeIndex,c=a.activeBar,f=G(this.props,!1);return n&&n.map(function(l,d){var p=d===s,y=p?c:o,v=xe(xe(xe({},f),l),{},{isActive:p,option:y,index:d,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return P.createElement(te,Za({className:"recharts-bar-rectangle"},gr(i.props,l,d),{key:"rectangle-".concat(l?.x,"-").concat(l?.y,"-").concat(l?.value,"-").concat(d)}),P.createElement(Jb,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,f=i.animationEasing,l=i.animationId,d=this.state.prevData;return P.createElement(wt,{begin:s,duration:c,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,v=a.map(function(h,g){var x=d&&d[g];if(x){var w=ze(x.x,h.x),O=ze(x.y,h.y),m=ze(x.width,h.width),b=ze(x.height,h.height);return xe(xe({},h),{},{x:w(y),y:O(y),width:m(y),height:b(y)})}if(o==="horizontal"){var _=ze(0,h.height),A=_(y);return xe(xe({},h),{},{y:h.y+h.height-A,height:A})}var T=ze(0,h.width),$=T(y);return xe(xe({},h),{},{width:$})});return P.createElement(te,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Jr(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,s=G(this.props.background,!1);return a.map(function(c,f){c.value;var l=c.background,d=m2(c,y2);if(!l)return null;var p=xe(xe(xe(xe(xe({},d),{},{fill:"#eee"},l),s),gr(n.props,c,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return P.createElement(Jb,Za({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,s=a.yAxis,c=a.layout,f=a.children,l=ot(f,ko);if(!l)return null;var d=c==="vertical"?o[0].height/2:o[0].width/2,p=function(h,g){var x=Array.isArray(h.value)?h.value[1]:h.value;return{x:h.x,y:h.y,value:x,errorVal:Te(h,g)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(te,y,l.map(function(v){return P.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,offset:d,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,s=n.yAxis,c=n.left,f=n.top,l=n.width,d=n.height,p=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var h=this.state.isAnimationFinished,g=J("recharts-bar",o),x=u&&u.allowDataOverflow,w=s&&s.allowDataOverflow,O=x||w,m=Z(v)?this.id:v;return P.createElement(te,{className:g},x||w?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(m)},P.createElement("rect",{x:x?c:c-l/2,y:w?f:f-d/2,width:x?l:l*2,height:w?d:d*2}))):null,P.createElement(te,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!p||h)&&$t.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(D.PureComponent);P1=Fi;Yt(Fi,"displayName","Bar");Yt(Fi,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Sr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Yt(Fi,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,s=e.yAxisTicks,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,d=e.offset,p=J$(n,r);if(!p)return null;var y=t.layout,v=r.type.defaultProps,h=v!==void 0?xe(xe({},v),r.props):r.props,g=h.dataKey,x=h.children,w=h.minPointSize,O=y==="horizontal"?o:a,m=c?O.scale.domain():null,b=ok({numericAxis:O}),_=ot(x,Oo),A=l.map(function(T,$){var j,M,C,k,E,I;c?j=ek(c[f+$],m):(j=Te(T,g),Array.isArray(j)||(j=[b,j]));var R=v2(w,P1.defaultProps.minPointSize)(j[1],$);if(y==="horizontal"){var B,F=[o.scale(j[0]),o.scale(j[1])],H=F[0],Y=F[1];M=Pg({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:T,index:$}),C=(B=Y??H)!==null&&B!==void 0?B:void 0,k=p.size;var U=H-Y;if(E=Number.isNaN(U)?0:U,I={x:M,y:o.y,width:k,height:o.height},Math.abs(R)>0&&Math.abs(E)<Math.abs(R)){var X=Le(E||R)*(Math.abs(R)-Math.abs(E));C-=X,E+=X}}else{var pe=[a.scale(j[0]),a.scale(j[1])],be=pe[0],Ke=pe[1];if(M=be,C=Pg({axis:o,ticks:s,bandSize:i,offset:p.offset,entry:T,index:$}),k=Ke-be,E=p.size,I={x:a.x,y:C,width:a.width,height:E},Math.abs(R)>0&&Math.abs(k)<Math.abs(R)){var er=Le(k||R)*(Math.abs(R)-Math.abs(k));k+=er}}return xe(xe(xe({},T),{},{x:M,y:C,width:k,height:E,value:c?j:j[1],payload:T,background:I},_&&_[$]&&_[$].props),{},{tooltipPayload:[e1(r,T)],tooltipPosition:{x:M+k/2,y:C+E/2}})});return xe({data:A,layout:y},d)});function Ei(e){"@babel/helpers - typeof";return Ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ei(e)}function P2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,E1(n.key),n)}}function j2(e,t,r){return t&&r0(e.prototype,t),r&&r0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function n0(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 ft(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?n0(Object(r),!0).forEach(function(n){Fo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fo(e,t,r){return t=E1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E1(e){var t=T2(e,"string");return Ei(t)=="symbol"?t:t+""}function T2(e,t){if(Ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var E2=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.layout,c=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},d=!!Ve(c,Fi);return f.reduce(function(p,y){var v=r[y],h=v.orientation,g=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,m=v.reversed,b="".concat(h).concat(O?"Mirror":""),_,A,T,$,j;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var M=g[1]-g[0],C=1/0,k=v.categoricalDomain.sort(FS);if(k.forEach(function(pe,be){be>0&&(C=Math.min((pe||0)-(k[be-1]||0),C))}),Number.isFinite(C)){var E=C/M,I=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=E*I/2),v.padding==="no-gap"){var R=Be(t.barCategoryGap,E*I),B=E*I/2;_=B-R-(B-R)/I*R}}}i==="xAxis"?A=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?A=s==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:A=v.range,m&&(A=[A[1],A[0]]);var F=Xw(v,a,d),H=F.scale,Y=F.realScaleType;H.domain(g).range(A),Zw(H);var U=Qw(H,ft(ft({},v),{},{realScaleType:Y}));i==="xAxis"?(j=h==="top"&&!O||h==="bottom"&&O,T=n.left,$=l[b]-j*v.height):i==="yAxis"&&(j=h==="left"&&!O||h==="right"&&O,T=l[b]-j*v.width,$=n.top);var X=ft(ft(ft({},v),U),{},{realScaleType:Y,x:T,y:$,scale:H,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return X.bandSize=Da(X,U),!v.hide&&i==="xAxis"?l[b]+=(j?-1:1)*X.height:v.hide||(l[b]+=(j?-1:1)*X.width),ft(ft({},p),{},Fo({},y,X))},{})},M1=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)}},M2=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return M1({x:r,y:n},{x:i,y:a})},C1=(function(){function e(t){P2(this,e),this.scale=t}return j2(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 u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}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)}}])})();Fo(C1,"EPS",1e-4);var vh=function(t){var r=Object.keys(t).reduce(function(n,i){return ft(ft({},n),{},Fo({},i,C1.create(t[i])))},{});return ft(ft({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return n2(i,function(s,c){return r[c].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return A1(i,function(a,o){return r[o].isInRange(a)})}})};function C2(e){return(e%180+180)%180}var $2=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=C2(i),o=a*Math.PI/180,u=Math.atan(n/r),s=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},Wl,i0;function k2(){if(i0)return Wl;i0=1;var e=_t(),t=Di(),r=bo();function n(i){return function(a,o,u){var s=Object(a);if(!t(a)){var c=e(o,3);a=r(a),o=function(l){return c(s[l],l,s)}}var f=i(a,o,u);return f>-1?s[c?a[f]:f]:void 0}}return Wl=n,Wl}var Ul,a0;function N2(){if(a0)return Ul;a0=1;var e=w1();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Ul=t,Ul}var zl,o0;function I2(){if(o0)return zl;o0=1;var e=Mx(),t=_t(),r=N2(),n=Math.max;function i(a,o,u){var s=a==null?0:a.length;if(!s)return-1;var c=u==null?0:r(u);return c<0&&(c=n(s+c,0)),e(a,t(o,3),c)}return zl=i,zl}var Hl,u0;function D2(){if(u0)return Hl;u0=1;var e=k2(),t=I2(),r=e(t);return Hl=r,Hl}var R2=D2();const q2=ce(R2);var L2=G0();const B2=ce(L2);var F2=B2(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),yh=D.createContext(void 0),mh=D.createContext(void 0),$1=D.createContext(void 0),k1=D.createContext({}),N1=D.createContext(void 0),I1=D.createContext(0),D1=D.createContext(0),s0=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,s=t.width,c=t.height,f=F2(a);return P.createElement(yh.Provider,{value:n},P.createElement(mh.Provider,{value:i},P.createElement(k1.Provider,{value:a},P.createElement($1.Provider,{value:f},P.createElement(N1.Provider,{value:o},P.createElement(I1.Provider,{value:c},P.createElement(D1.Provider,{value:s},u)))))))},W2=function(){return D.useContext(N1)},R1=function(t){var r=D.useContext(yh);r==null&&wr();var n=r[t];return n==null&&wr(),n},U2=function(){var t=D.useContext(yh);return Gt(t)},z2=function(){var t=D.useContext(mh),r=q2(t,function(n){return A1(n.domain,Number.isFinite)});return r||Gt(t)},q1=function(t){var r=D.useContext(mh);r==null&&wr();var n=r[t];return n==null&&wr(),n},H2=function(){var t=D.useContext($1);return t},G2=function(){return D.useContext(k1)},gh=function(){return D.useContext(D1)},bh=function(){return D.useContext(I1)};function cn(e){"@babel/helpers - typeof";return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(e)}function K2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,B1(n.key),n)}}function V2(e,t,r){return t&&Y2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function X2(e,t,r){return t=Ja(t),Z2(e,L1()?Reflect.construct(t,r||[],Ja(e).constructor):t.apply(e,r))}function Z2(e,t){if(t&&(cn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q2(e)}function Q2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L1=function(){return!!e})()}function Ja(e){return Ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ja(e)}function J2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&id(e,t)}function id(e,t){return id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},id(e,t)}function c0(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 l0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?c0(Object(r),!0).forEach(function(n){xh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xh(e,t,r){return t=B1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B1(e){var t=eq(e,"string");return cn(t)=="symbol"?t:t+""}function eq(e,t){if(cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function tq(e,t){return aq(e)||iq(e,t)||nq(e,t)||rq()}function rq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
61
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nq(e,t){if(e){if(typeof e=="string")return f0(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 f0(e,t)}}function f0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function aq(e){if(Array.isArray(e))return e}function ad(){return ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ad.apply(this,arguments)}var oq=function(t,r){var n;return P.isValidElement(t)?n=P.cloneElement(t,r):V(t)?n=t(r):n=P.createElement("line",ad({},r,{className:"recharts-reference-line-line"})),n},uq=function(t,r,n,i,a,o,u,s,c){var f=a.x,l=a.y,d=a.width,p=a.height;if(n){var y=c.y,v=t.y.apply(y,{position:o});if(gt(c,"discard")&&!t.y.isInRange(v))return null;var h=[{x:f+d,y:v},{x:f,y:v}];return s==="left"?h.reverse():h}if(r){var g=c.x,x=t.x.apply(g,{position:o});if(gt(c,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+p},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=c.segment,m=O.map(function(b){return t.apply(b,{position:o})});return gt(c,"discard")&&JR(m,function(b){return!t.isInRange(b)})?null:m}return null};function sq(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,s=e.alwaysShow,c=W2(),f=R1(i),l=q1(a),d=H2();if(!c||!d)return null;ht(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=vh({x:f.scale,y:l.scale}),y=Ee(t),v=Ee(r),h=n&&n.length===2,g=uq(p,y,v,h,d,e.position,f.orientation,l.orientation,e);if(!g)return null;var x=tq(g,2),w=x[0],O=w.x,m=w.y,b=x[1],_=b.x,A=b.y,T=gt(e,"hidden")?"url(#".concat(c,")"):void 0,$=l0(l0({clipPath:T},G(e,!0)),{},{x1:O,y1:m,x2:_,y2:A});return P.createElement(te,{className:J("recharts-reference-line",u)},oq(o,$),$e.renderCallByParent(e,M2({x1:O,y1:m,x2:_,y2:A})))}var wh=(function(e){function t(){return K2(this,t),X2(this,t,arguments)}return J2(t,e),V2(t,[{key:"render",value:function(){return P.createElement(sq,this.props)}}])})(P.Component);xh(wh,"displayName","ReferenceLine");xh(wh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function od(){return od=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},od.apply(this,arguments)}function ln(e){"@babel/helpers - typeof";return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ln(e)}function d0(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 h0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d0(Object(r),!0).forEach(function(n){Wo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lq(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,W1(n.key),n)}}function fq(e,t,r){return t&&lq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dq(e,t,r){return t=eo(t),hq(e,F1()?Reflect.construct(t,r||[],eo(e).constructor):t.apply(e,r))}function hq(e,t){if(t&&(ln(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pq(e)}function pq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F1=function(){return!!e})()}function eo(e){return eo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},eo(e)}function vq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ud(e,t)}function ud(e,t){return ud=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ud(e,t)}function Wo(e,t,r){return t=W1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W1(e){var t=yq(e,"string");return ln(t)=="symbol"?t:t+""}function yq(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mq=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=vh({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return gt(t,"discard")&&!o.isInRange(u)?null:u},Uo=(function(e){function t(){return cq(this,t),dq(this,t,arguments)}return vq(t,e),fq(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,s=n.clipPathId,c=Ee(i),f=Ee(a);if(ht(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=mq(this.props);if(!l)return null;var d=l.x,p=l.y,y=this.props,v=y.shape,h=y.className,g=gt(this.props,"hidden")?"url(#".concat(s,")"):void 0,x=h0(h0({clipPath:g},G(this.props,!0)),{},{cx:d,cy:p});return P.createElement(te,{className:J("recharts-reference-dot",h)},t.renderDot(v,x),$e.renderCallByParent(this.props,{x:d-o,y:p-o,width:2*o,height:2*o}))}}])})(P.Component);Wo(Uo,"displayName","ReferenceDot");Wo(Uo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Wo(Uo,"renderDot",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):V(e)?r=e(t):r=P.createElement(No,od({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function sd(){return sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sd.apply(this,arguments)}function fn(e){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}function p0(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 v0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p0(Object(r),!0).forEach(function(n){zo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bq(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,z1(n.key),n)}}function xq(e,t,r){return t&&bq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wq(e,t,r){return t=to(t),Oq(e,U1()?Reflect.construct(t,r||[],to(e).constructor):t.apply(e,r))}function Oq(e,t){if(t&&(fn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _q(e)}function _q(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U1=function(){return!!e})()}function to(e){return to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},to(e)}function Sq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cd(e,t)}function cd(e,t){return cd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cd(e,t)}function zo(e,t,r){return t=z1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z1(e){var t=Aq(e,"string");return fn(t)=="symbol"?t:t+""}function Aq(e,t){if(fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pq=function(t,r,n,i,a){var o=a.x1,u=a.x2,s=a.y1,c=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var d=vh({x:f.scale,y:l.scale}),p={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},y={x:r?d.x.apply(u,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(c,{position:"end"}):d.y.rangeMax};return gt(a,"discard")&&(!d.isInRange(p)||!d.isInRange(y))?null:M1(p,y)},Ho=(function(e){function t(){return gq(this,t),wq(this,t,arguments)}return Sq(t,e),xq(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,s=n.className,c=n.alwaysShow,f=n.clipPathId;ht(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Ee(i),d=Ee(a),p=Ee(o),y=Ee(u),v=this.props.shape;if(!l&&!d&&!p&&!y&&!v)return null;var h=Pq(l,d,p,y,this.props);if(!h&&!v)return null;var g=gt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return P.createElement(te,{className:J("recharts-reference-area",s)},t.renderRect(v,v0(v0({clipPath:g},G(this.props,!0)),h)),$e.renderCallByParent(this.props,h))}}])})(P.Component);zo(Ho,"displayName","ReferenceArea");zo(Ho,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});zo(Ho,"renderRect",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):V(e)?r=e(t):r=P.createElement(ph,sd({},t,{className:"recharts-reference-area-rect"})),r});function H1(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function jq(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return $2(n,r)}function Tq(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,u=e.height;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function ro(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function Eq(e,t){return H1(e,t+1)}function Mq(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,s=0,c=1,f=o,l=function(){var y=n?.[s];if(y===void 0)return{v:H1(n,c)};var v=s,h,g=function(){return h===void 0&&(h=r(y,v)),h},x=y.coordinate,w=s===0||ro(e,x,g,f,u);w||(s=0,f=o,c+=1),w&&(f=x+e*(g()/2+i),s+=c)},d;c<=a.length;)if(d=l(),d)return d.v;return[]}function Mi(e){"@babel/helpers - typeof";return Mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mi(e)}function y0(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 Ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y0(Object(r),!0).forEach(function(n){Cq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cq(e,t,r){return t=$q(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $q(e){var t=kq(e,"string");return Mi(t)=="symbol"?t:t+""}function kq(e,t){if(Mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nq(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,s=t.end,c=function(d){var p=a[d],y,v=function(){return y===void 0&&(y=r(p,d)),y};if(d===o-1){var h=e*(p.coordinate+e*v()/2-s);a[d]=p=Ie(Ie({},p),{},{tickCoord:h>0?p.coordinate-h*e:p.coordinate})}else a[d]=p=Ie(Ie({},p),{},{tickCoord:p.coordinate});var g=ro(e,p.tickCoord,v,u,s);g&&(s=p.tickCoord-e*(v()/2+i),a[d]=Ie(Ie({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)c(f);return a}function Iq(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,s=t.start,c=t.end;if(a){var f=n[u-1],l=r(f,u-1),d=e*(f.coordinate+e*l/2-c);o[u-1]=f=Ie(Ie({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var p=ro(e,f.tickCoord,function(){return l},s,c);p&&(c=f.tickCoord-e*(l/2+i),o[u-1]=Ie(Ie({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(x){var w=o[x],O,m=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var b=e*(w.coordinate-e*m()/2-s);o[x]=w=Ie(Ie({},w),{},{tickCoord:b<0?w.coordinate-b*e:w.coordinate})}else o[x]=w=Ie(Ie({},w),{},{tickCoord:w.coordinate});var _=ro(e,w.tickCoord,m,s,c);_&&(s=w.tickCoord+e*(m()/2+i),o[x]=Ie(Ie({},w),{},{isShow:!0}))},h=0;h<y;h++)v(h);return o}function Oh(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,s=e.interval,c=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(L(s)||Sr.isSsr)return Eq(i,typeof s=="number"&&L(s)?s:0);var d=[],p=u==="top"||u==="bottom"?"width":"height",y=f&&p==="width"?Hn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var m=V(c)?c(w.value,O):w.value;return p==="width"?jq(Hn(m,{fontSize:t,letterSpacing:r}),y,l):Hn(m,{fontSize:t,letterSpacing:r})[p]},h=i.length>=2?Le(i[1].coordinate-i[0].coordinate):1,g=Tq(a,h,p);return s==="equidistantPreserveStart"?Mq(h,g,v,i,o):(s==="preserveStart"||s==="preserveStartEnd"?d=Iq(h,g,v,i,o,s==="preserveStartEnd"):d=Nq(h,g,v,i,o),d.filter(function(x){return x.isShow}))}var Dq=["viewBox"],Rq=["viewBox"],qq=["ticks"];function dn(e){"@babel/helpers - typeof";return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dn(e)}function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qr.apply(this,arguments)}function m0(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 Pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m0(Object(r),!0).forEach(function(n){_h(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gl(e,t){if(e==null)return{};var r=Lq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Lq(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 Bq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,K1(n.key),n)}}function Fq(e,t,r){return t&&g0(e.prototype,t),r&&g0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wq(e,t,r){return t=no(t),Uq(e,G1()?Reflect.construct(t,r||[],no(e).constructor):t.apply(e,r))}function Uq(e,t){if(t&&(dn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zq(e)}function zq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G1=function(){return!!e})()}function no(e){return no=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},no(e)}function Hq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ld(e,t)}function ld(e,t){return ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ld(e,t)}function _h(e,t,r){return t=K1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K1(e){var t=Gq(e,"string");return dn(t)=="symbol"?t:t+""}function Gq(e,t){if(dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Tn=(function(e){function t(r){var n;return Bq(this,t),n=Wq(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return Hq(t,e),Fq(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Gl(n,Dq),u=this.props,s=u.viewBox,c=Gl(u,Rq);return!Br(a,s)||!Br(o,c)||!Br(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,s=i.height,c=i.orientation,f=i.tickSize,l=i.mirror,d=i.tickMargin,p,y,v,h,g,x,w=l?-1:1,O=n.tickSize||f,m=L(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":p=y=n.coordinate,h=o+ +!l*s,v=h-w*O,x=v-w*d,g=m;break;case"left":v=h=n.coordinate,y=a+ +!l*u,p=y-w*O,g=p-w*d,x=m;break;case"right":v=h=n.coordinate,y=a+ +l*u,p=y+w*O,g=p+w*d,x=m;break;default:p=y=n.coordinate,h=o+ +l*s,v=h+w*O,x=v+w*d,g=m;break}return{line:{x1:p,y1:v,x2:y,y2:h},tick:{x:g,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.orientation,c=n.mirror,f=n.axisLine,l=Pe(Pe(Pe({},G(this.props,!1)),G(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var d=+(s==="top"&&!c||s==="bottom"&&c);l=Pe(Pe({},l),{},{x1:i,y1:a+d*u,x2:i+o,y2:a+d*u})}else{var p=+(s==="left"&&!c||s==="right"&&c);l=Pe(Pe({},l),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+u})}return P.createElement("line",qr({},l,{className:J("recharts-cartesian-axis-line",Je(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,s=u.tickLine,c=u.stroke,f=u.tick,l=u.tickFormatter,d=u.unit,p=Oh(Pe(Pe({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),h=G(this.props,!1),g=G(f,!1),x=Pe(Pe({},h),{},{fill:"none"},G(s,!1)),w=p.map(function(O,m){var b=o.getTickLineCoord(O),_=b.line,A=b.tick,T=Pe(Pe(Pe(Pe({textAnchor:y,verticalAnchor:v},h),{},{stroke:"none",fill:c},g),A),{},{index:m,payload:O,visibleTicksCount:p.length,tickFormatter:l});return P.createElement(te,qr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},gr(o.props,O,m)),s&&P.createElement("line",qr({},x,_,{className:J("recharts-cartesian-axis-tick-line",Je(s,"className"))})),f&&t.renderTickItem(f,T,"".concat(V(l)?l(O.value,m):O.value).concat(d||"")))});return P.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,s=i.ticksGenerator,c=i.className,f=i.hide;if(f)return null;var l=this.props,d=l.ticks,p=Gl(l,qq),y=d;return V(s)&&(y=d&&d.length>0?s(this.props):s(p)),o<=0||u<=0||!y||!y.length?null:P.createElement(te,{className:J("recharts-cartesian-axis",c),ref:function(h){n.layerReference=h}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),$e.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=J(i.className,"recharts-cartesian-axis-tick-value");return P.isValidElement(n)?o=P.cloneElement(n,Pe(Pe({},i),{},{className:u})):V(n)?o=n(Pe(Pe({},i),{},{className:u})):o=P.createElement(br,qr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(D.Component);_h(Tn,"displayName","CartesianAxis");_h(Tn,"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 Kq=["x1","y1","x2","y2","key"],Yq=["offset"];function Or(e){"@babel/helpers - typeof";return Or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Or(e)}function b0(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 De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b0(Object(r),!0).forEach(function(n){Vq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vq(e,t,r){return t=Xq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xq(e){var t=Zq(e,"string");return Or(t)=="symbol"?t:t+""}function Zq(e,t){if(Or(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Or(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hr.apply(this,arguments)}function x0(e,t){if(e==null)return{};var r=Qq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qq(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 Jq=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,s=t.ry;return P.createElement("rect",{x:i,y:a,ry:s,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Y1(e,t){var r;if(P.isValidElement(e))r=P.cloneElement(e,t);else if(V(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,s=x0(t,Kq),c=G(s,!1);c.offset;var f=x0(c,Yq);r=P.createElement("line",hr({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function eL(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var c=De(De({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(s),index:s});return Y1(i,c)});return P.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function tL(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var c=De(De({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(s),index:s});return Y1(i,c)});return P.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function rL(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,s=e.horizontal,c=s===void 0?!0:s;if(!c||!t||!t.length)return null;var f=u.map(function(d){return Math.round(d+i-i)}).sort(function(d,p){return d-p});i!==f[0]&&f.unshift(0);var l=f.map(function(d,p){var y=!f[p+1],v=y?i+o-d:f[p+1]-d;if(v<=0)return null;var h=p%t.length;return P.createElement("rect",{key:"react-".concat(p),y:d,x:n,height:v,width:a,stroke:"none",fill:t[h],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function nL(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,s=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var f=c.map(function(d){return Math.round(d+a-a)}).sort(function(d,p){return d-p});a!==f[0]&&f.unshift(0);var l=f.map(function(d,p){var y=!f[p+1],v=y?a+u-d:f[p+1]-d;if(v<=0)return null;var h=p%n.length;return P.createElement("rect",{key:"react-".concat(p),x:d,y:o,width:v,height:s,stroke:"none",fill:n[h],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var iL=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return Vw(Oh(De(De(De({},Tn.defaultProps),n),{},{ticks:Et(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},aL=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return Vw(Oh(De(De(De({},Tn.defaultProps),n),{},{ticks:Et(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Nr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function V1(e){var t,r,n,i,a,o,u=gh(),s=bh(),c=G2(),f=De(De({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Nr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Nr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Nr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Nr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Nr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Nr.verticalFill,x:L(e.x)?e.x:c.left,y:L(e.y)?e.y:c.top,width:L(e.width)?e.width:c.width,height:L(e.height)?e.height:c.height}),l=f.x,d=f.y,p=f.width,y=f.height,v=f.syncWithTicks,h=f.horizontalValues,g=f.verticalValues,x=U2(),w=z2();if(!L(p)||p<=0||!L(y)||y<=0||!L(l)||l!==+l||!L(d)||d!==+d)return null;var O=f.verticalCoordinatesGenerator||iL,m=f.horizontalCoordinatesGenerator||aL,b=f.horizontalPoints,_=f.verticalPoints;if((!b||!b.length)&&V(m)){var A=h&&h.length,T=m({yAxis:w?De(De({},w),{},{ticks:A?h:w.ticks}):void 0,width:u,height:s,offset:c},A?!0:v);ht(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Or(T),"]")),Array.isArray(T)&&(b=T)}if((!_||!_.length)&&V(O)){var $=g&&g.length,j=O({xAxis:x?De(De({},x),{},{ticks:$?g:x.ticks}):void 0,width:u,height:s,offset:c},$?!0:v);ht(Array.isArray(j),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Or(j),"]")),Array.isArray(j)&&(_=j)}return P.createElement("g",{className:"recharts-cartesian-grid"},P.createElement(Jq,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),P.createElement(eL,hr({},f,{offset:c,horizontalPoints:b,xAxis:x,yAxis:w})),P.createElement(tL,hr({},f,{offset:c,verticalPoints:_,xAxis:x,yAxis:w})),P.createElement(rL,hr({},f,{horizontalPoints:b})),P.createElement(nL,hr({},f,{verticalPoints:_})))}V1.displayName="CartesianGrid";var oL=["layout","type","stroke","connectNulls","isRange","ref"],uL=["key"],X1;function hn(e){"@babel/helpers - typeof";return hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hn(e)}function Z1(e,t){if(e==null)return{};var r=sL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sL(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 pr(){return pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pr.apply(this,arguments)}function w0(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 zt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w0(Object(r),!0).forEach(function(n){yt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,J1(n.key),n)}}function lL(e,t,r){return t&&O0(e.prototype,t),r&&O0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fL(e,t,r){return t=io(t),dL(e,Q1()?Reflect.construct(t,r||[],io(e).constructor):t.apply(e,r))}function dL(e,t){if(t&&(hn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hL(e)}function hL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q1=function(){return!!e})()}function io(e){return io=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},io(e)}function pL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fd(e,t)}function fd(e,t){return fd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fd(e,t)}function yt(e,t,r){return t=J1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J1(e){var t=vL(e,"string");return hn(t)=="symbol"?t:t+""}function vL(e,t){if(hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Dt=(function(e){function t(){var r;cL(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=fL(this,t,[].concat(i)),yt(r,"state",{isAnimationFinished:!0}),yt(r,"id",_n("recharts-area-")),yt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),V(o)&&o()}),yt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),V(o)&&o()}),r}return pL(t,e),lL(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var s=this.props,c=s.dot,f=s.points,l=s.dataKey,d=G(this.props,!1),p=G(c,!0),y=f.map(function(h,g){var x=zt(zt(zt({key:"dot-".concat(g),r:3},d),p),{},{index:g,cx:h.x,cy:h.y,dataKey:l,value:h.value,payload:h.payload,points:f});return t.renderDotItem(c,x)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return P.createElement(te,pr({className:"recharts-area-dots"},v),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].x,c=o[o.length-1].x,f=n*Math.abs(s-c),l=Kt(o.map(function(d){return d.y||0}));return L(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Kt(a.map(function(d){return d.y||0})),l)),L(l)?P.createElement("rect",{x:s<c?s:s-f,y:0,width:f,height:Math.floor(l+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].y,c=o[o.length-1].y,f=n*Math.abs(s-c),l=Kt(o.map(function(d){return d.x||0}));return L(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Kt(a.map(function(d){return d.x||0})),l)),L(l)?P.createElement("rect",{x:0,y:s<c?s:s-f,width:l+(u?parseInt("".concat(u),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var u=this.props,s=u.layout,c=u.type,f=u.stroke,l=u.connectNulls,d=u.isRange;u.ref;var p=Z1(u,oL);return P.createElement(te,{clipPath:a?"url(#clipPath-".concat(o,")"):null},P.createElement(zr,pr({},G(p,!0),{points:n,connectNulls:l,type:c,baseLine:i,layout:s,stroke:"none",className:"recharts-area-area"})),f!=="none"&&P.createElement(zr,pr({},G(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:n})),f!=="none"&&d&&P.createElement(zr,pr({},G(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.baseLine,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,d=o.animationEasing,p=o.animationId,y=this.state,v=y.prevPoints,h=y.prevBaseLine;return P.createElement(wt,{begin:f,duration:l,isActive:c,easing:d,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var x=g.t;if(v){var w=v.length/u.length,O=u.map(function(A,T){var $=Math.floor(T*w);if(v[$]){var j=v[$],M=ze(j.x,A.x),C=ze(j.y,A.y);return zt(zt({},A),{},{x:M(x),y:C(x)})}return A}),m;if(L(s)&&typeof s=="number"){var b=ze(h,s);m=b(x)}else if(Z(s)||On(s)){var _=ze(h,0);m=_(x)}else m=s.map(function(A,T){var $=Math.floor(T*w);if(h[$]){var j=h[$],M=ze(j.x,A.x),C=ze(j.y,A.y);return zt(zt({},A),{},{x:M(x),y:C(x)})}return A});return a.renderAreaStatically(O,m,n,i)}return P.createElement(te,null,P.createElement("defs",null,P.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(x))),P.createElement(te,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,s,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,s=a.isAnimationActive,c=this.state,f=c.prevPoints,l=c.prevBaseLine,d=c.totalLength;return s&&o&&o.length&&(!f&&d>0||!Jr(f,o)||!Jr(l,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,c=i.top,f=i.left,l=i.xAxis,d=i.yAxis,p=i.width,y=i.height,v=i.isAnimationActive,h=i.id;if(a||!u||!u.length)return null;var g=this.state.isAnimationFinished,x=u.length===1,w=J("recharts-area",s),O=l&&l.allowDataOverflow,m=d&&d.allowDataOverflow,b=O||m,_=Z(h)?this.id:h,A=(n=G(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,$=T===void 0?3:T,j=A.strokeWidth,M=j===void 0?2:j,C=XS(o)?o:{},k=C.clipDot,E=k===void 0?!0:k,I=$*2+M;return P.createElement(te,{className:w},O||m?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(_)},P.createElement("rect",{x:O?f:f-p/2,y:m?c:c-y/2,width:O?p:p*2,height:m?y:y*2})),!E&&P.createElement("clipPath",{id:"clipPath-dots-".concat(_)},P.createElement("rect",{x:f-I/2,y:c-I/2,width:p+I,height:y+I}))):null,x?null:this.renderArea(b,_),(o||x)&&this.renderDots(b,E,_),(!v||g)&&$t.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(D.PureComponent);X1=Dt;yt(Dt,"displayName","Area");yt(Dt,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Sr.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});yt(Dt,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(L(u)&&typeof u=="number")return u;var s=i==="horizontal"?n:r,c=s.scale.domain();if(s.type==="number"){var f=Math.max(c[0],c[1]),l=Math.min(c[0],c[1]);return u==="dataMin"?l:u==="dataMax"||f<0?f:Math.max(Math.min(c[0],c[1]),0)}return u==="dataMin"?c[0]:u==="dataMax"?c[1]:c[0]});yt(Dt,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,u=e.bandSize,s=e.dataKey,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,d=e.offset,p=t.layout,y=c&&c.length,v=X1.getBaseValue(t,r,n,i),h=p==="horizontal",g=!1,x=l.map(function(O,m){var b;y?b=c[f+m]:(b=Te(O,s),Array.isArray(b)?g=!0:b=[v,b]);var _=b[1]==null||y&&Te(O,s)==null;return h?{x:Ag({axis:n,ticks:a,bandSize:u,entry:O,index:m}),y:_?null:i.scale(b[1]),value:b,payload:O}:{x:_?null:n.scale(b[1]),y:Ag({axis:i,ticks:o,bandSize:u,entry:O,index:m}),value:b,payload:O}}),w;return y||g?w=x.map(function(O){var m=Array.isArray(O.value)?O.value[0]:null;return h?{x:O.x,y:m!=null&&O.y!=null?i.scale(m):null}:{x:m!=null?n.scale(m):null,y:O.y}}):w=h?i.scale(v):n.scale(v),zt({points:x,baseLine:w,layout:p,isRange:g},d)});yt(Dt,"renderDotItem",function(e,t){var r;if(P.isValidElement(e))r=P.cloneElement(e,t);else if(V(e))r=e(t);else{var n=J("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=Z1(t,uL);r=P.createElement(No,pr({},a,{key:i,className:n}))}return r});function pn(e){"@babel/helpers - typeof";return pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(e)}function yL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rO(n.key),n)}}function gL(e,t,r){return t&&mL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bL(e,t,r){return t=ao(t),xL(e,eO()?Reflect.construct(t,r||[],ao(e).constructor):t.apply(e,r))}function xL(e,t){if(t&&(pn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wL(e)}function wL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eO=function(){return!!e})()}function ao(e){return ao=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ao(e)}function OL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dd(e,t)}function dd(e,t){return dd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dd(e,t)}function tO(e,t,r){return t=rO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rO(e){var t=_L(e,"string");return pn(t)=="symbol"?t:t+""}function _L(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function hd(){return hd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hd.apply(this,arguments)}function SL(e){var t=e.xAxisId,r=gh(),n=bh(),i=R1(t);return i==null?null:D.createElement(Tn,hd({},i,{className:J("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Et(o,!0)}}))}var Go=(function(e){function t(){return yL(this,t),bL(this,t,arguments)}return OL(t,e),gL(t,[{key:"render",value:function(){return D.createElement(SL,this.props)}}])})(D.Component);tO(Go,"displayName","XAxis");tO(Go,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function vn(e){"@babel/helpers - typeof";return vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vn(e)}function AL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,aO(n.key),n)}}function jL(e,t,r){return t&&PL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TL(e,t,r){return t=oo(t),EL(e,nO()?Reflect.construct(t,r||[],oo(e).constructor):t.apply(e,r))}function EL(e,t){if(t&&(vn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ML(e)}function ML(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nO=function(){return!!e})()}function oo(e){return oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oo(e)}function CL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pd(e,t)}function pd(e,t){return pd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pd(e,t)}function iO(e,t,r){return t=aO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aO(e){var t=$L(e,"string");return vn(t)=="symbol"?t:t+""}function $L(e,t){if(vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function vd(){return vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vd.apply(this,arguments)}var kL=function(t){var r=t.yAxisId,n=gh(),i=bh(),a=q1(r);return a==null?null:D.createElement(Tn,vd({},a,{className:J("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return Et(u,!0)}}))},Ci=(function(e){function t(){return AL(this,t),TL(this,t,arguments)}return CL(t,e),jL(t,[{key:"render",value:function(){return D.createElement(kL,this.props)}}])})(D.Component);iO(Ci,"displayName","YAxis");iO(Ci,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function _0(e){return RL(e)||DL(e)||IL(e)||NL()}function NL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
62
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IL(e,t){if(e){if(typeof e=="string")return yd(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 yd(e,t)}}function DL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RL(e){if(Array.isArray(e))return yd(e)}function yd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var md=function(t,r,n,i,a){var o=ot(t,wh),u=ot(t,Uo),s=[].concat(_0(o),_0(u)),c=ot(t,Ho),f="".concat(i,"Id"),l=i[0],d=r;if(s.length&&(d=s.reduce(function(v,h){if(h.props[f]===n&>(h.props,"extendDomain")&&L(h.props[l])){var g=h.props[l];return[Math.min(v[0],g),Math.max(v[1],g)]}return v},d)),c.length){var p="".concat(l,"1"),y="".concat(l,"2");d=c.reduce(function(v,h){if(h.props[f]===n&>(h.props,"extendDomain")&&L(h.props[p])&&L(h.props[y])){var g=h.props[p],x=h.props[y];return[Math.min(v[0],g,x),Math.max(v[1],g,x)]}return v},d)}return a&&a.length&&(d=a.reduce(function(v,h){return L(h)?[Math.min(v[0],h),Math.max(v[1],h)]:v},d)),d},Kl={exports:{}},S0;function qL(){return S0||(S0=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,c,f){this.fn=s,this.context=c,this.once=f||!1}function a(s,c,f,l,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,l||s,d),y=r?r+c:c;return s._events[y]?s._events[y].fn?s._events[y]=[s._events[y],p]:s._events[y].push(p):(s._events[y]=p,s._eventsCount++),s}function o(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],f,l;if(this._eventsCount===0)return c;for(l in f=this._events)t.call(f,l)&&c.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},u.prototype.listeners=function(c){var f=r?r+c:c,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var d=0,p=l.length,y=new Array(p);d<p;d++)y[d]=l[d].fn;return y},u.prototype.listenerCount=function(c){var f=r?r+c:c,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(c,f,l,d,p,y){var v=r?r+c:c;if(!this._events[v])return!1;var h=this._events[v],g=arguments.length,x,w;if(h.fn){switch(h.once&&this.removeListener(c,h.fn,void 0,!0),g){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,f),!0;case 3:return h.fn.call(h.context,f,l),!0;case 4:return h.fn.call(h.context,f,l,d),!0;case 5:return h.fn.call(h.context,f,l,d,p),!0;case 6:return h.fn.call(h.context,f,l,d,p,y),!0}for(w=1,x=new Array(g-1);w<g;w++)x[w-1]=arguments[w];h.fn.apply(h.context,x)}else{var O=h.length,m;for(w=0;w<O;w++)switch(h[w].once&&this.removeListener(c,h[w].fn,void 0,!0),g){case 1:h[w].fn.call(h[w].context);break;case 2:h[w].fn.call(h[w].context,f);break;case 3:h[w].fn.call(h[w].context,f,l);break;case 4:h[w].fn.call(h[w].context,f,l,d);break;default:if(!x)for(m=1,x=new Array(g-1);m<g;m++)x[m-1]=arguments[m];h[w].fn.apply(h[w].context,x)}}return!0},u.prototype.on=function(c,f,l){return a(this,c,f,l,!1)},u.prototype.once=function(c,f,l){return a(this,c,f,l,!0)},u.prototype.removeListener=function(c,f,l,d){var p=r?r+c:c;if(!this._events[p])return this;if(!f)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===f&&(!d||y.once)&&(!l||y.context===l)&&o(this,p);else{for(var v=0,h=[],g=y.length;v<g;v++)(y[v].fn!==f||d&&!y[v].once||l&&y[v].context!==l)&&h.push(y[v]);h.length?this._events[p]=h.length===1?h[0]:h:o(this,p)}return this},u.prototype.removeAllListeners=function(c){var f;return c?(f=r?r+c:c,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(Kl)),Kl.exports}var LL=qL();const BL=ce(LL);var Yl=new BL,Vl="recharts.syncMouseEvents";function $i(e){"@babel/helpers - typeof";return $i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$i(e)}function FL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oO(n.key),n)}}function UL(e,t,r){return t&&WL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xl(e,t,r){return t=oO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oO(e){var t=zL(e,"string");return $i(t)=="symbol"?t:t+""}function zL(e,t){if($i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($i(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var HL=(function(){function e(){FL(this,e),Xl(this,"activeIndex",0),Xl(this,"coordinateList",[]),Xl(this,"layout","horizontal")}return UL(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,s=r.layout,c=s===void 0?null:s,f=r.offset,l=f===void 0?null:f,d=r.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=c??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,s=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+s+c,d=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:d})}}}])})();function GL(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&L(n)&&L(i))return!0}return!1}function KL(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function uO(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=he(t,r,n,i),u=he(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function YL(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,s=t.cy,c=t.innerRadius,f=t.outerRadius,l=t.angle,d=he(u,s,c,l),p=he(u,s,f,l);n=d.x,i=d.y,a=p.x,o=p.y}else return uO(t);return[{x:n,y:i},{x:a,y:o}]}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 A0(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 ia(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A0(Object(r),!0).forEach(function(n){VL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VL(e,t,r){return t=XL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XL(e){var t=ZL(e,"string");return ki(t)=="symbol"?t:t+""}function ZL(e,t){if(ki(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ki(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function QL(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,s=e.offset,c=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,d=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var y,v=zr;if(d==="ScatterChart")y=o,v=_D;else if(d==="BarChart")y=KL(l,o,s,f),v=ph;else if(l==="radial"){var h=uO(o),g=h.cx,x=h.cy,w=h.radius,O=h.startAngle,m=h.endAngle;y={cx:g,cy:x,startAngle:O,endAngle:m,innerRadius:w,outerRadius:w},v=o1}else y={points:YL(l,o,s)},v=zr;var b=ia(ia(ia(ia({stroke:"#ccc",pointerEvents:"none"},s),y),G(p,!1)),{},{payload:u,payloadIndex:c,className:J("recharts-tooltip-cursor",p.className)});return D.isValidElement(p)?D.cloneElement(p,b):D.createElement(v,b)}var JL=["item"],eB=["children","className","width","height","style","compact","title","desc"];function yn(e){"@babel/helpers - typeof";return yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yn(e)}function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lr.apply(this,arguments)}function P0(e,t){return nB(e)||rB(e,t)||cO(e,t)||tB()}function tB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
63
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rB(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function nB(e){if(Array.isArray(e))return e}function j0(e,t){if(e==null)return{};var r=iB(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iB(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 aB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lO(n.key),n)}}function uB(e,t,r){return t&&oB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sB(e,t,r){return t=uo(t),cB(e,sO()?Reflect.construct(t,r||[],uo(e).constructor):t.apply(e,r))}function cB(e,t){if(t&&(yn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lB(e)}function lB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sO=function(){return!!e})()}function uo(e){return uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},uo(e)}function fB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gd(e,t)}function gd(e,t){return gd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gd(e,t)}function mn(e){return pB(e)||hB(e)||cO(e)||dB()}function dB(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
64
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cO(e,t){if(e){if(typeof e=="string")return bd(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 bd(e,t)}}function hB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pB(e){if(Array.isArray(e))return bd(e)}function bd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function T0(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 N(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?T0(Object(r),!0).forEach(function(n){K(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K(e,t,r){return t=lO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lO(e){var t=vB(e,"string");return yn(t)=="symbol"?t:t+""}function vB(e,t){if(yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yB={xAxis:["bottom","top"],yAxis:["left","right"]},mB={width:"100%",height:"100%"},fO={x:0,y:0};function aa(e){return e}var gB=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},bB=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,u=i.radius;return N(N(N({},i),he(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return N(N(N({},i),he(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return fO},Ko=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,s){var c=s.props.data;return c&&c.length?[].concat(mn(u),mn(c)):u},[]);return o.length>0?o:t&&t.length&&L(i)&&L(a)?t.slice(i,a+1):[]};function dO(e){return e==="number"?[0,"auto"]:void 0}var xd=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Ko(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,c){var f,l=(f=c.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=l===void 0?u:l;d=fa(p,o.dataKey,i)}else d=l&&l[n]||u[n];return d?[].concat(mn(s),[e1(c,d)]):s},[])},E0=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=gB(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,f=K$(o,u,c,s);if(f>=0&&c){var l=c[f]&&c[f].value,d=xd(t,r,f,l),p=bB(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:d,activeCoordinate:p}}return null},xB=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=t.stackOffset,p=Yw(f,a);return n.reduce(function(y,v){var h,g=v.type.defaultProps!==void 0?N(N({},v.type.defaultProps),v.props):v.props,x=g.type,w=g.dataKey,O=g.allowDataOverflow,m=g.allowDuplicatedCategory,b=g.scale,_=g.ticks,A=g.includeHidden,T=g[o];if(y[T])return y;var $=Ko(t.data,{graphicalItems:i.filter(function(U){var X,pe=o in U.props?U.props[o]:(X=U.type.defaultProps)===null||X===void 0?void 0:X[o];return pe===T}),dataStartIndex:s,dataEndIndex:c}),j=$.length,M,C,k;GL(g.domain,O,x)&&(M=If(g.domain,null,O),p&&(x==="number"||b!=="auto")&&(k=Kn($,w,"category")));var E=dO(x);if(!M||M.length===0){var I,R=(I=g.domain)!==null&&I!==void 0?I:E;if(w){if(M=Kn($,w,x),x==="category"&&p){var B=BS(M);m&&B?(C=M,M=Ya(0,j)):m||(M=Eg(R,M,v).reduce(function(U,X){return U.indexOf(X)>=0?U:[].concat(mn(U),[X])},[]))}else if(x==="category")m?M=M.filter(function(U){return U!==""&&!Z(U)}):M=Eg(R,M,v).reduce(function(U,X){return U.indexOf(X)>=0||X===""||Z(X)?U:[].concat(mn(U),[X])},[]);else if(x==="number"){var F=Q$($,i.filter(function(U){var X,pe,be=o in U.props?U.props[o]:(X=U.type.defaultProps)===null||X===void 0?void 0:X[o],Ke="hide"in U.props?U.props.hide:(pe=U.type.defaultProps)===null||pe===void 0?void 0:pe.hide;return be===T&&(A||!Ke)}),w,a,f);F&&(M=F)}p&&(x==="number"||b!=="auto")&&(k=Kn($,w,"category"))}else p?M=Ya(0,j):u&&u[T]&&u[T].hasStack&&x==="number"?M=d==="expand"?[0,1]:Jw(u[T].stackGroups,s,c):M=Kw($,i.filter(function(U){var X=o in U.props?U.props[o]:U.type.defaultProps[o],pe="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return X===T&&(A||!pe)}),x,f,!0);if(x==="number")M=md(l,M,T,a,_),R&&(M=If(R,M,O));else if(x==="category"&&R){var H=R,Y=M.every(function(U){return H.indexOf(U)>=0});Y&&(M=H)}}return N(N({},y),{},K({},T,N(N({},g),{},{axisType:a,domain:M,categoricalDomain:k,duplicateDomain:C,originalDomain:(h=g.domain)!==null&&h!==void 0?h:E,isCategorical:p,layout:f})))},{})},wB=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=Ko(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=d.length,y=Yw(f,a),v=-1;return n.reduce(function(h,g){var x=g.type.defaultProps!==void 0?N(N({},g.type.defaultProps),g.props):g.props,w=x[o],O=dO("number");if(!h[w]){v++;var m;return y?m=Ya(0,p):u&&u[w]&&u[w].hasStack?(m=Jw(u[w].stackGroups,s,c),m=md(l,m,w,a)):(m=If(O,Kw(d,n.filter(function(b){var _,A,T=o in b.props?b.props[o]:(_=b.type.defaultProps)===null||_===void 0?void 0:_[o],$="hide"in b.props?b.props.hide:(A=b.type.defaultProps)===null||A===void 0?void 0:A.hide;return T===w&&!$}),"number",f),i.defaultProps.allowDataOverflow),m=md(l,m,w,a)),N(N({},h),{},K({},w,N(N({axisType:a},i.defaultProps),{},{hide:!0,orientation:Je(yB,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return h},{})},OB=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),d=ot(f,a),p={};return d&&d.length?p=xB(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(p=wB(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),p},_B=function(t){var r=Gt(t),n=Et(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Fd(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Da(r,n)}},M0=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ve(r,un),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}},SB=function(t){return!t||!t.length?!1:t.some(function(r){var n=Mt(r&&r.type);return n&&n.indexOf("Bar")>=0})},C0=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"}},AB=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,s=u===void 0?{}:u,c=n.width,f=n.height,l=n.children,d=n.margin||{},p=Ve(l,un),y=Ve(l,Fr),v=Object.keys(s).reduce(function(m,b){var _=s[b],A=_.orientation;return!_.mirror&&!_.hide?N(N({},m),{},K({},A,m[A]+_.width)):m},{left:d.left||0,right:d.right||0}),h=Object.keys(o).reduce(function(m,b){var _=o[b],A=_.orientation;return!_.mirror&&!_.hide?N(N({},m),{},K({},A,Je(m,"".concat(A))+_.height)):m},{top:d.top||0,bottom:d.bottom||0}),g=N(N({},h),v),x=g.bottom;p&&(g.bottom+=p.props.height||un.defaultProps.height),y&&r&&(g=X$(g,i,n,r));var w=c-g.left-g.right,O=f-g.top-g.bottom;return N(N({brushBottom:x},g),{},{width:Math.max(w,0),height:Math.max(O,0)})},PB=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},hO=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,s=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,d=function(g,x){var w=x.graphicalItems,O=x.stackGroups,m=x.offset,b=x.updateId,_=x.dataStartIndex,A=x.dataEndIndex,T=g.barSize,$=g.layout,j=g.barGap,M=g.barCategoryGap,C=g.maxBarSize,k=C0($),E=k.numericAxisName,I=k.cateAxisName,R=SB(w),B=[];return w.forEach(function(F,H){var Y=Ko(g.data,{graphicalItems:[F],dataStartIndex:_,dataEndIndex:A}),U=F.type.defaultProps!==void 0?N(N({},F.type.defaultProps),F.props):F.props,X=U.dataKey,pe=U.maxBarSize,be=U["".concat(E,"Id")],Ke=U["".concat(I,"Id")],er={},We=s.reduce(function(tr,rr){var Yo=x["".concat(rr.axisType,"Map")],Sh=U["".concat(rr.axisType,"Id")];Yo&&Yo[Sh]||rr.axisType==="zAxis"||wr();var Ah=Yo[Sh];return N(N({},tr),{},K(K({},rr.axisType,Ah),"".concat(rr.axisType,"Ticks"),Et(Ah)))},er),W=We[I],Q=We["".concat(I,"Ticks")],ee=O&&O[be]&&O[be].hasStack&&uk(F,O[be].stackGroups),q=Mt(F.type).indexOf("Bar")>=0,me=Da(W,Q),re=[],Se=R&&Y$({barSize:T,stackGroups:O,totalSize:PB(We,I)});if(q){var Ae,Ue,Ft=Z(pe)?C:pe,Er=(Ae=(Ue=Da(W,Q,!0))!==null&&Ue!==void 0?Ue:Ft)!==null&&Ae!==void 0?Ae:0;re=V$({barGap:j,barCategoryGap:M,bandSize:Er!==me?Er:me,sizeList:Se[Ke],maxBarSize:Ft}),Er!==me&&(re=re.map(function(tr){return N(N({},tr),{},{position:N(N({},tr.position),{},{offset:tr.position.offset-Er/2})})}))}var Wi=F&&F.type&&F.type.getComposedData;Wi&&B.push({props:N(N({},Wi(N(N({},We),{},{displayedData:Y,props:g,dataKey:X,item:F,bandSize:me,barPosition:re,offset:m,stackedData:ee,layout:$,dataStartIndex:_,dataEndIndex:A}))),{},K(K(K({key:F.key||"item-".concat(H)},E,We[E]),I,We[I]),"animationId",b)),childIndex:JS(F,g.children),item:F})}),B},p=function(g,x){var w=g.props,O=g.dataStartIndex,m=g.dataEndIndex,b=g.updateId;if(!Up({props:w}))return null;var _=w.children,A=w.layout,T=w.stackOffset,$=w.data,j=w.reverseStackOrder,M=C0(A),C=M.numericAxisName,k=M.cateAxisName,E=ot(_,n),I=ak($,E,"".concat(C,"Id"),"".concat(k,"Id"),T,j),R=s.reduce(function(U,X){var pe="".concat(X.axisType,"Map");return N(N({},U),{},K({},pe,OB(w,N(N({},X),{},{graphicalItems:E,stackGroups:X.axisType===C&&I,dataStartIndex:O,dataEndIndex:m}))))},{}),B=AB(N(N({},R),{},{props:w,graphicalItems:E}),x?.legendBBox);Object.keys(R).forEach(function(U){R[U]=f(w,R[U],B,U.replace("Map",""),r)});var F=R["".concat(k,"Map")],H=_B(F),Y=d(w,N(N({},R),{},{dataStartIndex:O,dataEndIndex:m,updateId:b,graphicalItems:E,stackGroups:I,offset:B}));return N(N({formattedGraphicalItems:Y,graphicalItems:E,offset:B,stackGroups:I},H),R)},y=(function(h){function g(x){var w,O,m;return aB(this,g),m=sB(this,g,[x]),K(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),K(m,"accessibilityManager",new HL),K(m,"handleLegendBBoxUpdate",function(b){if(b){var _=m.state,A=_.dataStartIndex,T=_.dataEndIndex,$=_.updateId;m.setState(N({legendBBox:b},p({props:m.props,dataStartIndex:A,dataEndIndex:T,updateId:$},N(N({},m.state),{},{legendBBox:b}))))}}),K(m,"handleReceiveSyncEvent",function(b,_,A){if(m.props.syncId===b){if(A===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(_)}}),K(m,"handleBrushChange",function(b){var _=b.startIndex,A=b.endIndex;if(_!==m.state.dataStartIndex||A!==m.state.dataEndIndex){var T=m.state.updateId;m.setState(function(){return N({dataStartIndex:_,dataEndIndex:A},p({props:m.props,dataStartIndex:_,dataEndIndex:A,updateId:T},m.state))}),m.triggerSyncEvent({dataStartIndex:_,dataEndIndex:A})}}),K(m,"handleMouseEnter",function(b){var _=m.getMouseInfo(b);if(_){var A=N(N({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var T=m.props.onMouseEnter;V(T)&&T(A,b)}}),K(m,"triggeredAfterMouseMove",function(b){var _=m.getMouseInfo(b),A=_?N(N({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A);var T=m.props.onMouseMove;V(T)&&T(A,b)}),K(m,"handleItemMouseEnter",function(b){m.setState(function(){return{isTooltipActive:!0,activeItem:b,activePayload:b.tooltipPayload,activeCoordinate:b.tooltipPosition||{x:b.cx,y:b.cy}}})}),K(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),K(m,"handleMouseMove",function(b){b.persist(),m.throttleTriggeredAfterMouseMove(b)}),K(m,"handleMouseLeave",function(b){m.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var A=m.props.onMouseLeave;V(A)&&A(_,b)}),K(m,"handleOuterEvent",function(b){var _=QS(b),A=Je(m.props,"".concat(_));if(_&&V(A)){var T,$;/.*touch.*/i.test(_)?$=m.getMouseInfo(b.changedTouches[0]):$=m.getMouseInfo(b),A((T=$)!==null&&T!==void 0?T:{},b)}}),K(m,"handleClick",function(b){var _=m.getMouseInfo(b);if(_){var A=N(N({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var T=m.props.onClick;V(T)&&T(A,b)}}),K(m,"handleMouseDown",function(b){var _=m.props.onMouseDown;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),K(m,"handleMouseUp",function(b){var _=m.props.onMouseUp;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),K(m,"handleTouchMove",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(b.changedTouches[0])}),K(m,"handleTouchStart",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseDown(b.changedTouches[0])}),K(m,"handleTouchEnd",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseUp(b.changedTouches[0])}),K(m,"handleDoubleClick",function(b){var _=m.props.onDoubleClick;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),K(m,"handleContextMenu",function(b){var _=m.props.onContextMenu;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),K(m,"triggerSyncEvent",function(b){m.props.syncId!==void 0&&Yl.emit(Vl,m.props.syncId,b,m.eventEmitterSymbol)}),K(m,"applySyncEvent",function(b){var _=m.props,A=_.layout,T=_.syncMethod,$=m.state.updateId,j=b.dataStartIndex,M=b.dataEndIndex;if(b.dataStartIndex!==void 0||b.dataEndIndex!==void 0)m.setState(N({dataStartIndex:j,dataEndIndex:M},p({props:m.props,dataStartIndex:j,dataEndIndex:M,updateId:$},m.state)));else if(b.activeTooltipIndex!==void 0){var C=b.chartX,k=b.chartY,E=b.activeTooltipIndex,I=m.state,R=I.offset,B=I.tooltipTicks;if(!R)return;if(typeof T=="function")E=T(B,b);else if(T==="value"){E=-1;for(var F=0;F<B.length;F++)if(B[F].value===b.activeLabel){E=F;break}}var H=N(N({},R),{},{x:R.left,y:R.top}),Y=Math.min(C,H.x+H.width),U=Math.min(k,H.y+H.height),X=B[E]&&B[E].value,pe=xd(m.state,m.props.data,E),be=B[E]?{x:A==="horizontal"?B[E].coordinate:Y,y:A==="horizontal"?U:B[E].coordinate}:fO;m.setState(N(N({},b),{},{activeLabel:X,activeCoordinate:be,activePayload:pe,activeTooltipIndex:E}))}else m.setState(b)}),K(m,"renderCursor",function(b){var _,A=m.state,T=A.isTooltipActive,$=A.activeCoordinate,j=A.activePayload,M=A.offset,C=A.activeTooltipIndex,k=A.tooltipAxisBandSize,E=m.getTooltipEventType(),I=(_=b.props.active)!==null&&_!==void 0?_:T,R=m.props.layout,B=b.key||"_recharts-cursor";return P.createElement(QL,{key:B,activeCoordinate:$,activePayload:j,activeTooltipIndex:C,chartName:r,element:b,isActive:I,layout:R,offset:M,tooltipAxisBandSize:k,tooltipEventType:E})}),K(m,"renderPolarAxis",function(b,_,A){var T=Je(b,"type.axisType"),$=Je(m.state,"".concat(T,"Map")),j=b.type.defaultProps,M=j!==void 0?N(N({},j),b.props):b.props,C=$&&$[M["".concat(T,"Id")]];return D.cloneElement(b,N(N({},C),{},{className:J(T,C.className),key:b.key||"".concat(_,"-").concat(A),ticks:Et(C,!0)}))}),K(m,"renderPolarGrid",function(b){var _=b.props,A=_.radialLines,T=_.polarAngles,$=_.polarRadius,j=m.state,M=j.radiusAxisMap,C=j.angleAxisMap,k=Gt(M),E=Gt(C),I=E.cx,R=E.cy,B=E.innerRadius,F=E.outerRadius;return D.cloneElement(b,{polarAngles:Array.isArray(T)?T:Et(E,!0).map(function(H){return H.coordinate}),polarRadius:Array.isArray($)?$:Et(k,!0).map(function(H){return H.coordinate}),cx:I,cy:R,innerRadius:B,outerRadius:F,key:b.key||"polar-grid",radialLines:A})}),K(m,"renderLegend",function(){var b=m.state.formattedGraphicalItems,_=m.props,A=_.children,T=_.width,$=_.height,j=m.props.margin||{},M=T-(j.left||0)-(j.right||0),C=Hw({children:A,formattedGraphicalItems:b,legendWidth:M,legendContent:c});if(!C)return null;var k=C.item,E=j0(C,JL);return D.cloneElement(k,N(N({},E),{},{chartWidth:T,chartHeight:$,margin:j,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),K(m,"renderTooltip",function(){var b,_=m.props,A=_.children,T=_.accessibilityLayer,$=Ve(A,lt);if(!$)return null;var j=m.state,M=j.isTooltipActive,C=j.activeCoordinate,k=j.activePayload,E=j.activeLabel,I=j.offset,R=(b=$.props.active)!==null&&b!==void 0?b:M;return D.cloneElement($,{viewBox:N(N({},I),{},{x:I.left,y:I.top}),active:R,label:E,payload:R?k:[],coordinate:C,accessibilityLayer:T})}),K(m,"renderBrush",function(b){var _=m.props,A=_.margin,T=_.data,$=m.state,j=$.offset,M=$.dataStartIndex,C=$.dataEndIndex,k=$.updateId;return D.cloneElement(b,{key:b.key||"_recharts-brush",onChange:ea(m.handleBrushChange,b.props.onChange),data:T,x:L(b.props.x)?b.props.x:j.left,y:L(b.props.y)?b.props.y:j.top+j.height+j.brushBottom-(A.bottom||0),width:L(b.props.width)?b.props.width:j.width,startIndex:M,endIndex:C,updateId:"brush-".concat(k)})}),K(m,"renderReferenceElement",function(b,_,A){if(!b)return null;var T=m,$=T.clipPathId,j=m.state,M=j.xAxisMap,C=j.yAxisMap,k=j.offset,E=b.type.defaultProps||{},I=b.props,R=I.xAxisId,B=R===void 0?E.xAxisId:R,F=I.yAxisId,H=F===void 0?E.yAxisId:F;return D.cloneElement(b,{key:b.key||"".concat(_,"-").concat(A),xAxis:M[B],yAxis:C[H],viewBox:{x:k.left,y:k.top,width:k.width,height:k.height},clipPathId:$})}),K(m,"renderActivePoints",function(b){var _=b.item,A=b.activePoint,T=b.basePoint,$=b.childIndex,j=b.isRange,M=[],C=_.props.key,k=_.item.type.defaultProps!==void 0?N(N({},_.item.type.defaultProps),_.item.props):_.item.props,E=k.activeDot,I=k.dataKey,R=N(N({index:$,dataKey:I,cx:A.x,cy:A.y,r:4,fill:hh(_.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},G(E,!1)),da(E));return M.push(g.renderActiveDot(E,R,"".concat(C,"-activePoint-").concat($))),T?M.push(g.renderActiveDot(E,N(N({},R),{},{cx:T.x,cy:T.y}),"".concat(C,"-basePoint-").concat($))):j&&M.push(null),M}),K(m,"renderGraphicChild",function(b,_,A){var T=m.filterFormatItem(b,_,A);if(!T)return null;var $=m.getTooltipEventType(),j=m.state,M=j.isTooltipActive,C=j.tooltipAxis,k=j.activeTooltipIndex,E=j.activeLabel,I=m.props.children,R=Ve(I,lt),B=T.props,F=B.points,H=B.isRange,Y=B.baseLine,U=T.item.type.defaultProps!==void 0?N(N({},T.item.type.defaultProps),T.item.props):T.item.props,X=U.activeDot,pe=U.hide,be=U.activeBar,Ke=U.activeShape,er=!!(!pe&&M&&R&&(X||be||Ke)),We={};$!=="axis"&&R&&R.props.trigger==="click"?We={onClick:ea(m.handleItemMouseEnter,b.props.onClick)}:$!=="axis"&&(We={onMouseLeave:ea(m.handleItemMouseLeave,b.props.onMouseLeave),onMouseEnter:ea(m.handleItemMouseEnter,b.props.onMouseEnter)});var W=D.cloneElement(b,N(N({},T.props),We));function Q(rr){return typeof C.dataKey=="function"?C.dataKey(rr.payload):null}if(er)if(k>=0){var ee,q;if(C.dataKey&&!C.allowDuplicatedCategory){var me=typeof C.dataKey=="function"?Q:"payload.".concat(C.dataKey.toString());ee=fa(F,me,E),q=H&&Y&&fa(Y,me,E)}else ee=F?.[k],q=H&&Y&&Y[k];if(Ke||be){var re=b.props.activeIndex!==void 0?b.props.activeIndex:k;return[D.cloneElement(b,N(N(N({},T.props),We),{},{activeIndex:re})),null,null]}if(!Z(ee))return[W].concat(mn(m.renderActivePoints({item:T,activePoint:ee,basePoint:q,childIndex:k,isRange:H})))}else{var Se,Ae=(Se=m.getItemByXY(m.state.activeCoordinate))!==null&&Se!==void 0?Se:{graphicalItem:W},Ue=Ae.graphicalItem,Ft=Ue.item,Er=Ft===void 0?b:Ft,Wi=Ue.childIndex,tr=N(N(N({},T.props),We),{},{activeIndex:Wi});return[D.cloneElement(Er,tr),null,null]}return H?[W,null,null]:[W,null]}),K(m,"renderCustomized",function(b,_,A){return D.cloneElement(b,N(N({key:"recharts-customized-".concat(A)},m.props),m.state))}),K(m,"renderMap",{CartesianGrid:{handler:aa,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:aa},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:aa},YAxis:{handler:aa},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:_n("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=Ux(m.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return fB(g,h),uB(g,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,m=w.data,b=w.height,_=w.layout,A=Ve(O,lt);if(A){var T=A.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var $=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,j=xd(this.state,m,T,$),M=this.state.tooltipTicks[T].coordinate,C=(this.state.offset.top+b)/2,k=_==="horizontal",E=k?{x:M,y:C}:{y:M,x:C},I=this.state.formattedGraphicalItems.find(function(B){var F=B.item;return F.type.name==="Scatter"});I&&(E=N(N({},E),I.props.points[T].tooltipPosition),j=I.props.points[T].tooltipPayload);var R={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:$,activePayload:j,activeCoordinate:E};this.setState(R),this.renderCursor(A),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var m,b;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(b=this.props.margin.top)!==null&&b!==void 0?b:0}})}return null}},{key:"componentDidUpdate",value:function(w){rf([Ve(w.children,lt)],[Ve(this.props.children,lt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Ve(this.props.children,lt);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,m=O.getBoundingClientRect(),b=LT(m),_={chartX:Math.round(w.pageX-b.left),chartY:Math.round(w.pageY-b.top)},A=m.width/O.offsetWidth||1,T=this.inRange(_.chartX,_.chartY,A);if(!T)return null;var $=this.state,j=$.xAxisMap,M=$.yAxisMap,C=this.getTooltipEventType(),k=E0(this.state,this.props.data,this.props.layout,T);if(C!=="axis"&&j&&M){var E=Gt(j).scale,I=Gt(M).scale,R=E&&E.invert?E.invert(_.chartX):null,B=I&&I.invert?I.invert(_.chartY):null;return N(N({},_),{},{xValue:R,yValue:B},k)}return k?N(N({},_),k):null}},{key:"inRange",value:function(w,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,b=this.props.layout,_=w/m,A=O/m;if(b==="horizontal"||b==="vertical"){var T=this.state.offset,$=_>=T.left&&_<=T.left+T.width&&A>=T.top&&A<=T.top+T.height;return $?{x:_,y:A}:null}var j=this.state,M=j.angleAxisMap,C=j.radiusAxisMap;if(M&&C){var k=Gt(M);return $g({x:_,y:A},k)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=Ve(w,lt),b={};m&&O==="axis"&&(m.props.trigger==="click"?b={onClick:this.handleClick}:b={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 _=da(this.props,this.handleOuterEvent);return N(N({},_),b)}},{key:"addListener",value:function(){Yl.on(Vl,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Yl.removeListener(Vl,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,m){for(var b=this.state.formattedGraphicalItems,_=0,A=b.length;_<A;_++){var T=b[_];if(T.item===w||T.props.key===w.key||O===Mt(T.item.type)&&m===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,m=O.left,b=O.top,_=O.height,A=O.width;return P.createElement("defs",null,P.createElement("clipPath",{id:w},P.createElement("rect",{x:m,y:b,height:_,width:A})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=P0(m,2),_=b[0],A=b[1];return N(N({},O),{},K({},_,A.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=P0(m,2),_=b[0],A=b[1];return N(N({},O),{},K({},_,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,m=O.formattedGraphicalItems,b=O.activeItem;if(m&&m.length)for(var _=0,A=m.length;_<A;_++){var T=m[_],$=T.props,j=T.item,M=j.type.defaultProps!==void 0?N(N({},j.type.defaultProps),j.props):j.props,C=Mt(j.type);if(C==="Bar"){var k=($.data||[]).find(function(B){return nD(w,B)});if(k)return{graphicalItem:T,payload:k}}else if(C==="RadialBar"){var E=($.data||[]).find(function(B){return $g(w,B)});if(E)return{graphicalItem:T,payload:E}}else if(Lo(T,b)||Bo(T,b)||Pi(T,b)){var I=PR({graphicalItem:T,activeTooltipItem:b,itemData:M.data}),R=M.activeIndex===void 0?I:M.activeIndex;return{graphicalItem:N(N({},T),{},{childIndex:R}),payload:Pi(T,b)?M.data[I]:T.props.data[I]}}}return null}},{key:"render",value:function(){var w=this;if(!Up(this))return null;var O=this.props,m=O.children,b=O.className,_=O.width,A=O.height,T=O.style,$=O.compact,j=O.title,M=O.desc,C=j0(O,eB),k=G(C,!1);if($)return P.createElement(s0,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement(af,Lr({},k,{width:_,height:A,title:j,desc:M}),this.renderClipPath(),Hp(m,this.renderMap)));if(this.props.accessibilityLayer){var E,I;k.tabIndex=(E=this.props.tabIndex)!==null&&E!==void 0?E:0,k.role=(I=this.props.role)!==null&&I!==void 0?I:"application",k.onKeyDown=function(B){w.accessibilityManager.keyboardEvent(B)},k.onFocus=function(){w.accessibilityManager.focus()}}var R=this.parseEventsOfWrapper();return P.createElement(s0,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement("div",Lr({className:J("recharts-wrapper",b),style:N({position:"relative",cursor:"default",width:_,height:A},T)},R,{ref:function(F){w.container=F}}),P.createElement(af,Lr({},k,{width:_,height:A,title:j,desc:M,style:mB}),this.renderClipPath(),Hp(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(D.Component);K(y,"displayName",r),K(y,"defaultProps",N({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),K(y,"getDerivedStateFromProps",function(h,g){var x=h.dataKey,w=h.data,O=h.children,m=h.width,b=h.height,_=h.layout,A=h.stackOffset,T=h.margin,$=g.dataStartIndex,j=g.dataEndIndex;if(g.updateId===void 0){var M=M0(h);return N(N(N({},M),{},{updateId:0},p(N(N({props:h},M),{},{updateId:0}),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:A,prevMargin:T,prevChildren:O})}if(x!==g.prevDataKey||w!==g.prevData||m!==g.prevWidth||b!==g.prevHeight||_!==g.prevLayout||A!==g.prevStackOffset||!Br(T,g.prevMargin)){var C=M0(h),k={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},E=N(N({},E0(g,w,_)),{},{updateId:g.updateId+1}),I=N(N(N({},C),k),E);return N(N(N({},I),p(N({props:h},I),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:A,prevMargin:T,prevChildren:O})}if(!rf(O,g.prevChildren)){var R,B,F,H,Y=Ve(O,un),U=Y&&(R=(B=Y.props)===null||B===void 0?void 0:B.startIndex)!==null&&R!==void 0?R:$,X=Y&&(F=(H=Y.props)===null||H===void 0?void 0:H.endIndex)!==null&&F!==void 0?F:j,pe=U!==$||X!==j,be=!Z(w),Ke=be&&!pe?g.updateId:g.updateId+1;return N(N({updateId:Ke},p(N(N({props:h},g),{},{updateId:Ke,dataStartIndex:U,dataEndIndex:X}),g)),{},{prevChildren:O,dataStartIndex:U,dataEndIndex:X})}return null}),K(y,"renderActiveDot",function(h,g,x){var w;return D.isValidElement(h)?w=D.cloneElement(h,g):V(h)?w=h(g):w=P.createElement(No,g),P.createElement(te,{className:"recharts-active-dot",key:x},w)});var v=D.forwardRef(function(g,x){return P.createElement(y,Lr({},g,{ref:x}))});return v.displayName=y.displayName,v},jB=hO({chartName:"PieChart",GraphicalChild:Bt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:qo},{axisType:"radiusAxis",AxisComp:Do}],formatAxisMap:mk,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),TB=hO({chartName:"AreaChart",GraphicalChild:Dt,axisComponents:[{axisType:"xAxis",AxisComp:Go},{axisType:"yAxis",AxisComp:Ci}],formatAxisMap:E2});function EB({data:e,isLoading:t,granularity:r="daily",className:n}){const{privacyMode:i}=gn(),a=D.useMemo(()=>!e||e.length===0?[]:(r==="hourly"?e:[...e].reverse()).map(s=>{const c="hour"in s?s.hour:s.date;return{...s,dateFormatted:MB(c,r),costRounded:Number(s.cost.toFixed(4))}}),[e,r]);if(t)return S.jsx(we,{className:oe("h-full w-full",n)});if(!e||e.length===0)return S.jsx("div",{className:oe("h-full flex items-center justify-center",n),children:S.jsx("p",{className:"text-muted-foreground",children:r==="hourly"?"No usage data for today":"No usage data available"})});const o=({x:u,y:s,payload:c,isRight:f})=>{const l=f?`$${c.value}`:$0(Number(c.value));return S.jsx("text",{x:u,y:s,dy:4,textAnchor:f?"start":"end",fontSize:12,fill:"currentColor",className:oe("fill-muted-foreground",i&&"blur-[4px]"),children:l})};return S.jsx("div",{className:oe("w-full h-full",n),children:S.jsx(zx,{width:"100%",height:"100%",children:S.jsxs(TB,{data:a,margin:{top:5,right:30,left:20,bottom:5},children:[S.jsxs("defs",{children:[S.jsxs("linearGradient",{id:"tokenGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[S.jsx("stop",{offset:"5%",stopColor:"#0080FF",stopOpacity:.8}),S.jsx("stop",{offset:"95%",stopColor:"#0080FF",stopOpacity:.1})]}),S.jsxs("linearGradient",{id:"costGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[S.jsx("stop",{offset:"5%",stopColor:"#00C49F",stopOpacity:.8}),S.jsx("stop",{offset:"95%",stopColor:"#00C49F",stopOpacity:.1})]})]}),S.jsx(V1,{strokeDasharray:"3 3",className:"stroke-muted"}),S.jsx(Go,{dataKey:"dateFormatted",tick:{fontSize:12},tickLine:!1,axisLine:{className:"stroke-muted"}}),S.jsx(Ci,{yAxisId:"left",orientation:"left",tick:u=>S.jsx(o,{...u,isRight:!1}),tickLine:!1,axisLine:{className:"stroke-muted"}}),S.jsx(Ci,{yAxisId:"right",orientation:"right",tick:u=>S.jsx(o,{...u,isRight:!0}),tickLine:!1,axisLine:{className:"stroke-muted"}}),S.jsx(lt,{content:({active:u,payload:s,label:c})=>{if(!u||!s||!s.length)return null;const f=s[0].payload;return S.jsxs("div",{className:"rounded-lg border bg-background p-3 shadow-lg",children:[S.jsx("p",{className:"font-medium mb-2",children:c}),s.map((l,d)=>S.jsxs("p",{className:oe("text-sm",i&&Qe),style:{color:l.color},children:[l.name,":"," ",l.name==="Tokens"?$0(Number(l.value)||0):`$${l.value}`]},d)),"requests"in f&&S.jsxs("p",{className:oe("text-sm text-muted-foreground mt-1",i&&Qe),children:["Requests: ",f.requests]})]})}}),S.jsx(Dt,{yAxisId:"left",type:"monotone",dataKey:"tokens",stroke:"#0080FF",strokeWidth:2,fillOpacity:1,fill:"url(#tokenGradient)",name:"Tokens"}),S.jsx(Dt,{yAxisId:"right",type:"monotone",dataKey:"costRounded",stroke:"#00C49F",strokeWidth:2,fillOpacity:1,fill:"url(#costGradient)",name:"Cost"})]})})})}function MB(e,t){if(t==="hourly"){const[n,i]=e.split(" ");if(n&&i){const a=new Date(`${n}T${i}:00Z`);return zn(a,"HH:mm")}return e}const r=new Date(e);return t==="monthly"?zn(r,"MMM yyyy"):zn(r,"MMM dd")}function $0(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toLocaleString()}function CB({data:e,isLoading:t,className:r}){const{privacyMode:n}=gn(),i=D.useMemo(()=>!e||e.length===0?[]:e.map(u=>({name:u.model,value:u.tokens,cost:u.cost,percentage:u.percentage,fill:N0(u.model)})),[e]);if(t)return S.jsx(we,{className:oe("h-[300px] w-full",r)});if(!e||e.length===0)return S.jsx("div",{className:oe("h-[300px] flex items-center justify-center",r),children:S.jsx("p",{className:"text-muted-foreground",children:"No model data available"})});const a=({active:u,payload:s})=>{if(!u||!s)return null;const c=s;if(!c.length)return null;const f=c[0].payload;return S.jsxs("div",{className:"rounded-lg border bg-background p-2 shadow-lg text-xs",children:[S.jsx("p",{className:"font-medium mb-1",children:f.name}),S.jsxs("p",{className:oe("text-muted-foreground",n&&Qe),children:[$B(f.value)," (",f.percentage.toFixed(1),"%)"]}),S.jsxs("p",{className:oe("text-muted-foreground",n&&Qe),children:["$",f.cost.toFixed(4)]})]})},o=u=>u.percentage>5?`${u.percentage.toFixed(1)}%`:"";return S.jsx("div",{className:oe("w-full",r),children:S.jsx(zx,{width:"100%",height:250,children:S.jsxs(jB,{children:[S.jsx(Bt,{data:i,cx:"50%",cy:"50%",labelLine:!1,label:o,innerRadius:50,outerRadius:70,paddingAngle:2,dataKey:"value",children:i.map((u,s)=>S.jsx(Oo,{fill:u.fill,strokeWidth:1},`cell-${s}`))}),S.jsx(lt,{content:a})]})})})}function $B(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toLocaleString()}function kB({model:e}){const{privacyMode:t}=gn(),r=NB(e.ioRatio);return S.jsxs("div",{className:"space-y-4",children:[S.jsxs("div",{className:"space-y-2",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(OO,{className:"h-4 w-4 text-primary shrink-0"}),S.jsx("h4",{className:"font-semibold leading-none truncate",title:e.model,children:e.model})]}),S.jsxs("div",{className:"flex flex-wrap gap-2",children:[S.jsxs(Un,{variant:"secondary",className:"text-[10px] h-5 px-1.5",children:[e.percentage.toFixed(1),"% usage"]}),S.jsxs(Un,{variant:r.variant,className:"text-[10px] h-5 px-1.5",children:[e.ioRatio.toFixed(0),":1 I/O"]})]})]}),S.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[S.jsxs("div",{className:"p-2 rounded-md bg-muted/50 border text-center",children:[S.jsxs("p",{className:oe("text-lg font-bold",t&&Qe),children:["$",e.cost.toFixed(2)]}),S.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-wider",children:"Total Cost"})]}),S.jsxs("div",{className:"p-2 rounded-md bg-muted/50 border text-center",children:[S.jsx("p",{className:oe("text-lg font-bold",t&&Qe),children:DB(e.tokens)}),S.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-wider",children:"Total Tokens"})]})]}),S.jsxs("div",{className:"space-y-2",children:[S.jsx("h5",{className:"text-[11px] font-medium text-muted-foreground uppercase tracking-wider",children:"Token Breakdown"}),S.jsxs("div",{className:oe("space-y-1",t&&Qe),children:[S.jsx(oa,{label:"Input",tokens:e.inputTokens,cost:e.costBreakdown.input.cost,color:"#335c67",icon:D0}),S.jsx(oa,{label:"Output",tokens:e.outputTokens,cost:e.costBreakdown.output.cost,color:"#fff3b0",icon:R0}),S.jsx(oa,{label:"Cache Write",tokens:e.cacheCreationTokens,cost:e.costBreakdown.cacheCreation.cost,color:"#e09f3e",icon:Ql}),S.jsx(oa,{label:"Cache Read",tokens:e.cacheReadTokens,cost:e.costBreakdown.cacheRead.cost,color:"#9e2a2b",icon:Ql})]})]}),S.jsxs("div",{className:"p-2.5 rounded-md border bg-muted/20 space-y-1.5",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(_O,{className:"h-3.5 w-3.5 text-muted-foreground"}),S.jsx("span",{className:"text-xs font-medium",children:"Input/Output Ratio"})]}),S.jsx("p",{className:"text-[11px] text-muted-foreground leading-snug",children:r.description})]})]})}function oa({label:e,tokens:t,cost:r,color:n,icon:i}){return t===0?null:S.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[S.jsx("div",{className:"w-1 h-6 rounded-full shrink-0",style:{backgroundColor:n}}),S.jsxs("div",{className:"flex-1 min-w-0",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx("span",{className:"font-medium truncate",children:e}),S.jsxs("span",{className:"font-mono text-muted-foreground",children:["$",r.toFixed(3)]})]}),S.jsxs("div",{className:"flex items-center gap-1.5 text-muted-foreground",children:[S.jsx(i,{className:"h-3 w-3 shrink-0"}),S.jsx("span",{children:IB(t)})]})]})]})}function NB(e){return e>=200?{variant:"destructive",description:"Extended thinking or large context loading. Expected for reasoning models."}:e>=50?{variant:"secondary",description:"More input than output. Typical for analysis tasks."}:e>=5?{variant:"outline",description:"Balanced input/output ratio for typical coding tasks."}:{variant:"default",description:"More output than input. Generation-heavy workload."}}function IB(e){return e.toLocaleString()}function DB(e){return e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toString()}function RB({data:e,isLoading:t,className:r}){const{privacyMode:n}=gn(),i=D.useMemo(()=>{if(!e?.sessions||e.sessions.length===0)return null;const a=e.sessions,o=e.total,u=a.reduce((p,y)=>p+(y.inputTokens+y.outputTokens),0),s=Math.round(u/a.length),f=a.reduce((p,y)=>p+y.cost,0)/a.length,l=a[0],d=l?Jl(new Date(l.lastActivity),{addSuffix:!0}):"N/A";return{totalSessions:o,avgTokens:s,avgCost:f,lastActive:d,recentSessions:a.slice(0,3)}},[e]);return t?S.jsxs(Re,{className:oe("flex flex-col h-full",r),children:[S.jsx(Ze,{className:"px-3 py-2",children:S.jsx(we,{className:"h-5 w-32"})}),S.jsx(qe,{className:"px-3 pb-3 pt-0 flex-1",children:S.jsx(we,{className:"h-full w-full"})})]}):i?S.jsxs(Re,{className:oe("flex flex-col h-full shadow-sm",r),children:[S.jsx(Ze,{className:"px-3 py-2",children:S.jsxs(Pt,{className:"text-base font-semibold flex items-center gap-2",children:[S.jsx(jh,{className:"w-4 h-4"}),"Session Stats"]})}),S.jsxs(qe,{className:"px-3 pb-3 pt-0 flex-1 flex flex-col gap-4",children:[S.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[S.jsxs("div",{className:"p-2 rounded-md bg-muted/50 border text-center",children:[S.jsxs("div",{className:"flex items-center justify-center gap-1.5 text-blue-600 dark:text-blue-400",children:[S.jsx(SO,{className:"w-4 h-4"}),S.jsx("span",{className:"text-xl font-bold",children:i.totalSessions})]}),S.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-wider mt-0.5",children:"Total Sessions"})]}),S.jsxs("div",{className:"p-2 rounded-md bg-muted/50 border text-center",children:[S.jsxs("div",{className:"flex items-center justify-center gap-1.5 text-green-600 dark:text-green-400",children:[S.jsx(q0,{className:"w-4 h-4"}),S.jsxs("span",{className:oe("text-xl font-bold",n&&Qe),children:["$",i.avgCost.toFixed(2)]})]}),S.jsx("p",{className:"text-[10px] text-muted-foreground uppercase tracking-wider mt-0.5",children:"Avg Cost/Session"})]})]}),S.jsxs("div",{className:"flex-1 space-y-2",children:[S.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground font-medium mb-1",children:[S.jsx(AO,{className:"w-3 h-3"}),"Recent Activity"]}),S.jsx("div",{className:"space-y-1.5",children:i.recentSessions.map(a=>S.jsxs("div",{className:"flex items-center justify-between text-xs p-1.5 rounded bg-muted/30 hover:bg-muted/50 transition-colors",children:[S.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[S.jsx("span",{className:"font-medium truncate",title:a.projectPath,children:a.projectPath.split("/").pop()}),S.jsx("span",{className:"text-[10px] text-muted-foreground",children:Jl(new Date(a.lastActivity),{addSuffix:!0})})]}),S.jsxs("div",{className:oe("text-right shrink-0 ml-2",n&&Qe),children:[S.jsxs("div",{className:"font-mono",children:["$",a.cost.toFixed(2)]}),S.jsxs("div",{className:"text-[10px] text-muted-foreground",children:[qB(a.inputTokens+a.outputTokens)," toks"]})]})]},a.sessionId))})]})]})]}):S.jsxs(Re,{className:oe("flex flex-col h-full",r),children:[S.jsx(Ze,{className:"px-3 py-2",children:S.jsxs(Pt,{className:"text-base font-semibold flex items-center gap-2",children:[S.jsx(jh,{className:"w-4 h-4"}),"Session Stats"]})}),S.jsx(qe,{className:"px-3 pb-3 pt-0 flex-1 flex items-center justify-center",children:S.jsx("p",{className:"text-sm text-muted-foreground text-center",children:"No session data available"})})]})}function qB(e){return e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toString()}function LB({className:e,isLoading:t}){const{data:r,isLoading:n}=pO(),{data:i,isLoading:a,error:o}=vO(r?.running);if(t||n||r?.running&&a)return S.jsxs(Re,{className:oe("flex flex-col h-full",e),children:[S.jsx(Ze,{className:"px-3 py-2",children:S.jsxs(Pt,{className:"text-base font-semibold flex items-center gap-2",children:[S.jsx(zi,{className:"h-4 w-4"}),"CLIProxy Stats"]})}),S.jsx(qe,{className:"px-3 pb-3 pt-0 flex-1",children:S.jsxs("div",{className:"space-y-3",children:[S.jsx(we,{className:"h-4 w-[100px]"}),S.jsx(we,{className:"h-16 w-full"})]})})]});if(!r?.running)return S.jsxs(Re,{className:oe("flex flex-col h-full border-dashed",e),children:[S.jsx(Ze,{className:"px-3 py-2",children:S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs(Pt,{className:"text-base font-semibold flex items-center gap-2",children:[S.jsx(zi,{className:"h-4 w-4 text-muted-foreground"}),"CLIProxy Stats"]}),S.jsx(Un,{variant:"secondary",className:"text-[10px] h-5",children:"Offline"})]})}),S.jsx(qe,{className:"px-3 pb-3 pt-0 flex-1 flex items-center justify-center",children:S.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"Start a CLIProxy session (gemini, codex, agy) to collect stats."})})]});if(o)return S.jsxs(Re,{className:oe("flex flex-col h-full border-destructive/50",e),children:[S.jsx(Ze,{className:"px-3 py-2",children:S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs(Pt,{className:"text-base font-semibold flex items-center gap-2",children:[S.jsx(zi,{className:"h-4 w-4"}),"CLIProxy Stats"]}),S.jsx(Un,{variant:"destructive",className:"text-[10px] h-5",children:"Error"})]})}),S.jsx(qe,{className:"px-3 pb-3 pt-0 flex-1",children:S.jsx("p",{className:"text-xs text-destructive",children:o.message})})]});const s=i?.totalRequests??0,c=i?.quotaExceededCount??0,f=s-c,l=s>0?Math.round(f/s*100):100,d=i?.tokens?.total??0,p=Object.entries(i?.requestsByModel??{}).sort((v,h)=>h[1]-v[1]).slice(0,4),y=p.length>0?p[0][1]:1;return S.jsxs(Re,{className:oe("flex flex-col h-full overflow-hidden",e),children:[S.jsx(Ze,{className:"px-3 py-2 border-b bg-muted/5",children:S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs(Pt,{className:"text-base font-semibold flex items-center gap-2",children:[S.jsx(zi,{className:"h-4 w-4"}),"CLIProxy Stats"]}),S.jsxs(Un,{variant:"outline",className:"text-[10px] h-5 text-green-600 border-green-200 bg-green-50 dark:bg-green-900/10 dark:border-green-800",children:[S.jsx(q0,{className:"h-3 w-3 mr-0.5"}),"Running"]})]})}),S.jsx(qe,{className:"p-0 flex-1 min-h-0",children:S.jsx(yO,{className:"h-full",children:S.jsxs("div",{className:"p-3 space-y-3",children:[S.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[S.jsxs("div",{className:"flex items-center gap-2 p-2 rounded-lg bg-muted/30",children:[S.jsxs("div",{className:"relative",children:[S.jsxs("svg",{className:"w-10 h-10 -rotate-90",viewBox:"0 0 36 36",children:[S.jsx("circle",{cx:"18",cy:"18",r:"14",fill:"none",stroke:"currentColor",strokeWidth:"3",className:"text-muted/30"}),S.jsx("circle",{cx:"18",cy:"18",r:"14",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeDasharray:`${l*.88} 88`,strokeLinecap:"round",className:l>=90?"text-green-500":"text-amber-500"})]}),S.jsxs("span",{className:"absolute inset-0 flex items-center justify-center text-[8px] font-bold",children:[l,"%"]})]}),S.jsxs("div",{className:"min-w-0",children:[S.jsx("div",{className:"text-lg font-bold leading-none",children:k0(s)}),S.jsx("div",{className:"text-[9px] text-muted-foreground mt-0.5",children:c>0?`${c} failed`:"All success"})]})]}),S.jsxs("div",{className:"flex items-center gap-2 p-2 rounded-lg bg-muted/30",children:[S.jsx("div",{className:"p-1.5 rounded-md bg-purple-100 dark:bg-purple-900/20",children:S.jsx(PO,{className:"h-4 w-4 text-purple-600"})}),S.jsxs("div",{className:"min-w-0",children:[S.jsx("div",{className:"text-lg font-bold leading-none",children:k0(d)}),S.jsx("div",{className:"text-[9px] text-muted-foreground mt-0.5",children:"Total tokens"})]})]})]}),p.length>0&&S.jsxs("div",{className:"space-y-1.5",children:[S.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] font-medium text-muted-foreground",children:[S.jsx(jO,{className:"h-3 w-3"}),"Models Used"]}),S.jsx("div",{className:"space-y-1",children:p.map(([v,h])=>{const g=Math.round(h/y*100),x=BB(v);return S.jsxs("div",{className:"group",children:[S.jsxs("div",{className:"flex items-center justify-between text-[10px] mb-0.5",children:[S.jsx("span",{className:"truncate font-medium",title:v,children:x}),S.jsx("span",{className:"text-muted-foreground shrink-0 ml-2",children:h})]}),S.jsx("div",{className:"h-1 bg-muted/50 rounded-full overflow-hidden",children:S.jsx("div",{className:"h-full bg-accent/70 rounded-full transition-all",style:{width:`${g}%`}})})]},v)})})]})]})})})]})}function k0(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toLocaleString()}function BB(e){let t=e.replace(/^gemini-claude-/,"").replace(/^gemini-/,"").replace(/^claude-/,"").replace(/^anthropic\./,"").replace(/-thinking$/," Thinking");return t=t.split(/[-_]/).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "),t.length>20&&(t=t.slice(0,18)+"..."),t}const FB="/api";function nt(e){const t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}${r}${n}`}const Tr={summary:e=>{const t=new URLSearchParams;return e?.startDate&&t.append("since",nt(e.startDate)),e?.endDate&&t.append("until",nt(e.endDate)),e?.profile&&t.append("profile",e.profile),Ut(`/usage/summary?${t}`)},trends:e=>{const t=new URLSearchParams;return e?.startDate&&t.append("since",nt(e.startDate)),e?.endDate&&t.append("until",nt(e.endDate)),e?.profile&&t.append("profile",e.profile),Ut(`/usage/daily?${t}`)},hourly:e=>{const t=new URLSearchParams;return e?.startDate&&t.append("since",nt(e.startDate)),e?.endDate&&t.append("until",nt(e.endDate)),Ut(`/usage/hourly?${t}`)},models:e=>{const t=new URLSearchParams;return e?.startDate&&t.append("since",nt(e.startDate)),e?.endDate&&t.append("until",nt(e.endDate)),e?.profile&&t.append("profile",e.profile),Ut(`/usage/models?${t}`)},sessions:e=>{const t=new URLSearchParams;return e?.startDate&&t.append("since",nt(e.startDate)),e?.endDate&&t.append("until",nt(e.endDate)),e?.profile&&t.append("profile",e.profile),e?.limit&&t.append("limit",e.limit.toString()),e?.offset&&t.append("offset",e.offset.toString()),Ut(`/usage/sessions?${t}`)},monthly:(e,t)=>{const r=new URLSearchParams;return e&&r.append("months",e.toString()),t&&r.append("profile",t),Ut(`/usage/monthly?${r}`)},refresh:async()=>{if(!(await fetch(`${FB}/usage/refresh`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok)throw new Error("Failed to refresh usage cache")},status:()=>Ut("/usage/status"),insights:e=>{const t=new URLSearchParams;return e?.startDate&&t.append("since",nt(e.startDate)),e?.endDate&&t.append("until",nt(e.endDate)),e?.profile&&t.append("profile",e.profile),Ut(`/usage/insights?${t}`)}};async function Ut(e){const r=await fetch(`/api${e}`,{headers:{"Content-Type":"application/json"}});if(!r.ok){const i=await r.json().catch(()=>({error:"Unknown error"}));throw new Error(i.error||r.statusText)}const n=await r.json();return n.data||n}function WB(e){return bn({queryKey:["usage","summary",e],queryFn:()=>Tr.summary(e),staleTime:60*1e3})}function UB(e){return bn({queryKey:["usage","trends",e],queryFn:()=>Tr.trends(e),staleTime:60*1e3})}function zB(e){return bn({queryKey:["usage","hourly",e],queryFn:()=>Tr.hourly(e),staleTime:60*1e3})}function HB(e){return bn({queryKey:["usage","models",e],queryFn:()=>Tr.models(e),staleTime:60*1e3})}function GB(){const e=$O();return D.useCallback(async()=>{await Tr.refresh(),await e.invalidateQueries({queryKey:["usage"]})},[e])}function KB(){return bn({queryKey:["usage","status"],queryFn:()=>Tr.status(),staleTime:10*1e3,refetchInterval:30*1e3})}function YB(e){return bn({queryKey:["usage","sessions",e],queryFn:()=>Tr.sessions(e),staleTime:60*1e3})}function VB(e){return e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(0)}K`:e.toString()}function nF(){const{privacyMode:e}=gn(),[t,r]=D.useState({from:Gi(new Date,30),to:new Date}),[n,i]=D.useState(!1),[a,o]=D.useState(null),[u,s]=D.useState(null),[c,f]=D.useState("daily"),l=D.useRef(null),d=GB(),p=async()=>{i(!0);try{await d()}finally{i(!1)}},y={startDate:t?.from,endDate:t?.to},{data:v,isLoading:h}=WB(y),{data:g,isLoading:x}=UB(y),{data:w,isLoading:O}=zB(y),{data:m,isLoading:b}=HB(y),{data:_,isLoading:A}=YB({...y,limit:3}),{data:T}=KB(),$=D.useCallback(()=>{const E=new Date;r({from:Gi(E,1),to:E}),f("hourly")},[]),j=D.useCallback(E=>{r(E),f("daily")},[]),M=D.useMemo(()=>T?.lastFetch?Jl(new Date(T.lastFetch),{addSuffix:!0}):null,[T?.lastFetch]),C=D.useCallback((E,I)=>{const R=I.currentTarget.getBoundingClientRect();s({x:R.left+R.width/2,y:R.top+R.height/2}),o(E)},[]),k=D.useCallback(()=>{o(null),s(null)},[]);return S.jsxs("div",{className:"flex flex-col h-full overflow-hidden px-4 pt-4 pb-50 gap-4",children:[S.jsxs("div",{className:"flex items-center justify-between shrink-0",children:[S.jsxs("div",{children:[S.jsx("h1",{className:"text-xl font-semibold",children:"Analytics"}),S.jsx("p",{className:"text-sm text-muted-foreground",children:"Track usage & insights"})]}),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(Zl,{variant:c==="hourly"?"default":"outline",size:"sm",className:"h-8",onClick:$,children:"24H"}),S.jsx(V_,{value:t,onChange:j,presets:[{label:"7D",range:{from:Gi(new Date,7),to:new Date}},{label:"30D",range:{from:Gi(new Date,30),to:new Date}},{label:"Month",range:{from:VO(new Date),to:new Date}},{label:"All Time",range:{from:void 0,to:new Date}}]}),M&&S.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:["Updated ",M]}),S.jsx(Zl,{variant:"outline",size:"sm",className:"gap-2 h-8",onClick:p,disabled:n,children:S.jsx(TO,{className:`w-3.5 h-3.5 ${n?"animate-spin":""}`})})]})]}),S.jsx(Z_,{data:v,isLoading:h}),S.jsxs("div",{className:"flex-1 flex flex-col min-h-0 gap-4",children:[S.jsxs(Re,{className:"flex flex-col flex-1 min-h-0 max-h-[500px] overflow-hidden shadow-sm",children:[S.jsx(Ze,{className:"px-3 py-2 shrink-0",children:S.jsxs(Pt,{className:"text-base font-semibold flex items-center gap-2",children:[S.jsx(EO,{className:"w-4 h-4"}),c==="hourly"?"Last 24 Hours":"Usage Trends"]})}),S.jsx(qe,{className:"px-3 pb-3 pt-0 flex-1 min-h-0",children:S.jsx(EB,{data:c==="hourly"?w||[]:g||[],isLoading:c==="hourly"?O:x,granularity:c==="hourly"?"hourly":"daily"})})]}),S.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-10 gap-4 h-auto lg:h-[180px] shrink-0",children:[S.jsxs(Re,{className:"flex flex-col h-full min-h-0 shadow-sm lg:col-span-4",children:[S.jsx(Ze,{className:"px-3 py-2",children:S.jsxs(Pt,{className:"text-base font-semibold flex items-center gap-2",children:[S.jsx(I0,{className:"w-4 h-4"}),"Cost by Model"]})}),S.jsx(qe,{className:"px-2 pb-2 pt-0 flex-1 min-h-0 overflow-y-auto",children:b?S.jsx(we,{className:"h-full w-full"}):S.jsxs("div",{className:"space-y-0.5",children:[[...m||[]].sort((E,I)=>I.cost-E.cost).map(E=>S.jsxs("button",{className:"group flex items-center text-xs w-full hover:bg-muted/50 rounded px-2 py-1.5 transition-colors cursor-pointer gap-3",onClick:I=>C(E,I),title:"Click for details",children:[S.jsxs("div",{className:"flex items-center gap-2 min-w-0 w-[180px] shrink-0",children:[S.jsx("div",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:N0(E.model)}}),S.jsx("span",{className:"font-medium truncate group-hover:underline underline-offset-2",children:E.model})]}),S.jsx("div",{className:"flex-1 flex items-center gap-1 min-w-0",children:S.jsxs("div",{className:"flex-1 h-2 bg-muted rounded-full overflow-hidden flex",children:[S.jsx("div",{className:"h-full",style:{backgroundColor:"#335c67",width:`${E.cost>0?E.costBreakdown.input.cost/E.cost*100:0}%`},title:`Input: $${E.costBreakdown.input.cost.toFixed(2)}`}),S.jsx("div",{className:"h-full",style:{backgroundColor:"#fff3b0",width:`${E.cost>0?E.costBreakdown.output.cost/E.cost*100:0}%`},title:`Output: $${E.costBreakdown.output.cost.toFixed(2)}`}),S.jsx("div",{className:"h-full",style:{backgroundColor:"#e09f3e",width:`${E.cost>0?E.costBreakdown.cacheCreation.cost/E.cost*100:0}%`},title:`Cache Write: $${E.costBreakdown.cacheCreation.cost.toFixed(2)}`}),S.jsx("div",{className:"h-full",style:{backgroundColor:"#9e2a2b",width:`${E.cost>0?E.costBreakdown.cacheRead.cost/E.cost*100:0}%`},title:`Cache Read: $${E.costBreakdown.cacheRead.cost.toFixed(2)}`})]})}),S.jsx("span",{className:oe("text-[10px] text-muted-foreground w-14 text-right shrink-0",e&&Qe),children:VB(E.tokens)}),S.jsxs("span",{className:oe("font-mono font-medium w-16 text-right shrink-0",e&&Qe),children:["$",E.cost.toFixed(2)]}),S.jsx(MO,{className:"w-3 h-3 opacity-0 group-hover:opacity-50 transition-opacity shrink-0"})]},E.model)),S.jsxs("div",{className:"flex items-center gap-3 pt-2 px-2 text-[10px] text-muted-foreground border-t mt-2",children:[S.jsxs("span",{className:"flex items-center gap-1",children:[S.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:"#335c67"}}),"Input"]}),S.jsxs("span",{className:"flex items-center gap-1",children:[S.jsx("div",{className:"w-2 h-2 rounded-full border border-muted-foreground/30",style:{backgroundColor:"#fff3b0"}}),"Output"]}),S.jsxs("span",{className:"flex items-center gap-1",children:[S.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:"#e09f3e"}}),"Cache Write"]}),S.jsxs("span",{className:"flex items-center gap-1",children:[S.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:"#9e2a2b"}}),"Cache Read"]})]})]})})]}),S.jsxs(Re,{className:"flex flex-col h-full min-h-0 shadow-sm lg:col-span-2",children:[S.jsx(Ze,{className:"px-3 py-2",children:S.jsxs(Pt,{className:"text-base font-semibold flex items-center gap-2",children:[S.jsx(CO,{className:"w-4 h-4"}),"Model Usage"]})}),S.jsx(qe,{className:"px-2 pb-2 pt-0 flex-1 min-h-0 flex items-center justify-center",children:S.jsx(CB,{data:m||[],isLoading:b,className:"h-full w-full"})})]}),S.jsx(RB,{data:_,isLoading:A,className:"lg:col-span-2"}),S.jsx(LB,{isLoading:h,className:"lg:col-span-2"})]}),S.jsxs(mO,{open:!!a,onOpenChange:E=>!E&&k(),children:[S.jsx(gO,{asChild:!0,children:S.jsx("div",{ref:l,className:"fixed pointer-events-none",style:{left:u?.x??0,top:u?.y??0,width:1,height:1}})}),S.jsx(bO,{className:"w-80 p-3",side:"top",align:"center",children:a&&S.jsx(kB,{model:a})})]})]})]})}function iF(){return S.jsxs("div",{className:"space-y-4 h-full overflow-hidden",children:[S.jsxs(Re,{className:"flex flex-col min-h-[300px]",children:[S.jsx(Ze,{className:"p-4 pb-2",children:S.jsx(we,{className:"h-4 w-32"})}),S.jsx(qe,{className:"p-4 pt-0 flex-1",children:S.jsx(we,{className:"h-full w-full"})})]}),S.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[S.jsxs(Re,{className:"flex flex-col min-h-[250px]",children:[S.jsx(Ze,{className:"p-4 pb-2",children:S.jsx(we,{className:"h-4 w-28"})}),S.jsx(qe,{className:"p-4 pt-2",children:S.jsx("div",{className:"space-y-3",children:[1,2,3,4,5].map(e=>S.jsxs("div",{className:"flex justify-between items-center",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(we,{className:"w-2.5 h-2.5 rounded-full"}),S.jsx(we,{className:"h-3 w-24"})]}),S.jsx(we,{className:"h-3 w-16"})]},e))})})]}),S.jsxs(Re,{className:"flex flex-col min-h-[250px]",children:[S.jsx(Ze,{className:"p-4 pb-2",children:S.jsx(we,{className:"h-4 w-28"})}),S.jsx(qe,{className:"p-4 pt-0 flex-1",children:S.jsxs("div",{className:"flex w-full h-full items-center",children:[S.jsx("div",{className:"flex-1 flex justify-center",children:S.jsx(we,{className:"h-[180px] w-[180px] rounded-full"})}),S.jsx("div",{className:"w-[140px] shrink-0 pl-2 space-y-2",children:[1,2,3,4].map(e=>S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(we,{className:"w-2 h-2 rounded-full"}),S.jsx(we,{className:"h-3 w-20"})]},e))})]})})]})]})]})}export{nF as AnalyticsPage,iF as AnalyticsSkeleton};
|