@bigduu/lotus 2026.4.2 → 2026.4.12

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.
Files changed (64) hide show
  1. package/dist/assets/App-Ct4Iqvsg.css +1 -0
  2. package/dist/assets/App-Lp1tMttv.js +247 -0
  3. package/dist/assets/{_basePickBy-BspK35sI.js → _basePickBy-CSQjZOEH.js} +1 -1
  4. package/dist/assets/{_baseUniq-yd3d-av8.js → _baseUniq-DQHUo2wZ.js} +1 -1
  5. package/dist/assets/{architectureDiagram-VXUJARFQ-CQvKJy3I.js → architectureDiagram-VXUJARFQ-BMUh92dd.js} +1 -1
  6. package/dist/assets/{blockDiagram-VD42YOAC-DyFWUqNO.js → blockDiagram-VD42YOAC-Brh3I75m.js} +1 -1
  7. package/dist/assets/{c4Diagram-YG6GDRKO-CznZpCeX.js → c4Diagram-YG6GDRKO-DnxCjxA8.js} +1 -1
  8. package/dist/assets/{chunk-4BX2VUAB-CT4-fTmw.js → chunk-4BX2VUAB-CixM-C1K.js} +1 -1
  9. package/dist/assets/{chunk-55IACEB6-DPoGFWVp.js → chunk-55IACEB6-5l3X1dpI.js} +1 -1
  10. package/dist/assets/{chunk-B4BG7PRW-zd34bnG8.js → chunk-B4BG7PRW-B-EJypcR.js} +1 -1
  11. package/dist/assets/{chunk-DI55MBZ5-DjYfBoqF.js → chunk-DI55MBZ5-BLxvkRT3.js} +1 -1
  12. package/dist/assets/{chunk-FMBD7UC4-BDz1nBzO.js → chunk-FMBD7UC4-xvk636Pj.js} +1 -1
  13. package/dist/assets/{chunk-QN33PNHL-ByHoXcdI.js → chunk-QN33PNHL-C9CiZFt0.js} +1 -1
  14. package/dist/assets/{chunk-QZHKN3VN-B58DhLEz.js → chunk-QZHKN3VN-CV7tOA_V.js} +1 -1
  15. package/dist/assets/{chunk-TZMSLE5B-CE3fOJae.js → chunk-TZMSLE5B-Dj7AmZTG.js} +1 -1
  16. package/dist/assets/classDiagram-2ON5EDUG-BmRlHYcJ.js +1 -0
  17. package/dist/assets/classDiagram-v2-WZHVMYZB-BmRlHYcJ.js +1 -0
  18. package/dist/assets/clone-LotimydJ.js +1 -0
  19. package/dist/assets/{cose-bilkent-S5V4N54A-CQMexX_7.js → cose-bilkent-S5V4N54A-BglMwVVo.js} +1 -1
  20. package/dist/assets/{dagre-6UL2VRFP-Nr0JTfw1.js → dagre-6UL2VRFP-B_pUYMrn.js} +1 -1
  21. package/dist/assets/{diagram-PSM6KHXK-2zflANlw.js → diagram-PSM6KHXK-DcFX0GIa.js} +1 -1
  22. package/dist/assets/{diagram-QEK2KX5R-VyZmBtmD.js → diagram-QEK2KX5R-Bf0mJKZv.js} +1 -1
  23. package/dist/assets/{diagram-S2PKOQOG-B2faf1Ft.js → diagram-S2PKOQOG-BRd51uCk.js} +1 -1
  24. package/dist/assets/{erDiagram-Q2GNP2WA-DTAG75D2.js → erDiagram-Q2GNP2WA-DtMpD_dp.js} +1 -1
  25. package/dist/assets/{flowDiagram-NV44I4VS-Bl2QKbsY.js → flowDiagram-NV44I4VS-T-HBCsOg.js} +1 -1
  26. package/dist/assets/{ganttDiagram-JELNMOA3-aVmOIbJd.js → ganttDiagram-JELNMOA3-CU32XhNJ.js} +1 -1
  27. package/dist/assets/{gitGraphDiagram-V2S2FVAM-B0eXnYux.js → gitGraphDiagram-V2S2FVAM-BJJ4R_BN.js} +1 -1
  28. package/dist/assets/{graph-D0JBNw5a.js → graph-DvuzdqtS.js} +1 -1
  29. package/dist/assets/{index-CYzkseBh.js → index-BpZHxkza.js} +1 -1
  30. package/dist/assets/{index-CMK42DTl.js → index-CF-KXsGH.js} +1 -1
  31. package/dist/assets/{index-Cd0gm8C7.js → index-ClgJQKFk.js} +1 -1
  32. package/dist/assets/{index-BOUR4S6d.js → index-DVh3FZtR.js} +1 -1
  33. package/dist/assets/{index-oVXhS3BO.js → index-wEBx2_Bp.js} +1 -1
  34. package/dist/assets/{index.es-CAbTTDez.js → index.es-DusLI-hl.js} +1 -1
  35. package/dist/assets/{infoDiagram-HS3SLOUP-Cii6S1my.js → infoDiagram-HS3SLOUP-CPENGo9H.js} +1 -1
  36. package/dist/assets/{journeyDiagram-XKPGCS4Q-C_iPmuQZ.js → journeyDiagram-XKPGCS4Q-CNU_B7N1.js} +1 -1
  37. package/dist/assets/{kanban-definition-3W4ZIXB7-Cczg6lpg.js → kanban-definition-3W4ZIXB7-sy_U8c_F.js} +1 -1
  38. package/dist/assets/{layout-DNfKd0n6.js → layout-BMsjut2n.js} +1 -1
  39. package/dist/assets/{main-BTCes_R0.js → main-DJkIVk5G.js} +5 -5
  40. package/dist/assets/{mindmap-definition-VGOIOE7T-qYnf--6q.js → mindmap-definition-VGOIOE7T-B36pEDlU.js} +1 -1
  41. package/dist/assets/{pieDiagram-ADFJNKIX-CKiWkeBJ.js → pieDiagram-ADFJNKIX-BbT86i-D.js} +1 -1
  42. package/dist/assets/{quadrantDiagram-AYHSOK5B-CWwC8LhP.js → quadrantDiagram-AYHSOK5B-L5k2W8mA.js} +1 -1
  43. package/dist/assets/{requirementDiagram-UZGBJVZJ--E3kDOu5.js → requirementDiagram-UZGBJVZJ-Bnucoakg.js} +1 -1
  44. package/dist/assets/{sankeyDiagram-TZEHDZUN-DjNk0_tw.js → sankeyDiagram-TZEHDZUN-DkMx4gl3.js} +1 -1
  45. package/dist/assets/{sequenceDiagram-WL72ISMW-CP99d7Wl.js → sequenceDiagram-WL72ISMW-IOZUrf8o.js} +1 -1
  46. package/dist/assets/{stateDiagram-FKZM4ZOC-BpDaflbT.js → stateDiagram-FKZM4ZOC-CHPy6pjS.js} +1 -1
  47. package/dist/assets/stateDiagram-v2-4FDKWEC3-BlNgA_DM.js +1 -0
  48. package/dist/assets/{timeline-definition-IT6M3QCI-JLPdh86G.js → timeline-definition-IT6M3QCI-CHJ0Uu-N.js} +1 -1
  49. package/dist/assets/{treemap-GDKQZRPO-D7fekm60.js → treemap-GDKQZRPO-DUA2WI2l.js} +1 -1
  50. package/dist/assets/vendor-antd-BSy6VeYJ.js +502 -0
  51. package/dist/assets/{vendor-charts-B5wo7wyK.js → vendor-charts-DLRDG2Rl.js} +2 -2
  52. package/dist/assets/{vendor-markdown-BtOz1kLl.js → vendor-markdown-CxEpKeyh.js} +1 -1
  53. package/dist/assets/{vendor-mermaid-CuzF-D1I.js → vendor-mermaid-BIhXK1bF.js} +4 -4
  54. package/dist/assets/{vendor-pdf-DKSPuLa9.js → vendor-pdf-D0-oBWsD.js} +4 -4
  55. package/dist/assets/{xychartDiagram-PRI3JC2R-DFMu-kfv.js → xychartDiagram-PRI3JC2R-DwBzmyeu.js} +1 -1
  56. package/dist/index.html +3 -3
  57. package/package.json +2 -1
  58. package/dist/assets/App-BHPFe35o.js +0 -247
  59. package/dist/assets/App-CWKFDTQi.css +0 -1
  60. package/dist/assets/classDiagram-2ON5EDUG-BrIAA29n.js +0 -1
  61. package/dist/assets/classDiagram-v2-WZHVMYZB-BrIAA29n.js +0 -1
  62. package/dist/assets/clone-UExS44xq.js +0 -1
  63. package/dist/assets/stateDiagram-v2-4FDKWEC3-C4ikui-V.js +0 -1
  64. package/dist/assets/vendor-antd-BlMATH2j.js +0 -502
@@ -1,4 +1,4 @@
1
- import{c as Ti,g as se,a as D,R as S}from"./vendor-i18n-BNURlJ23.js";import{r as Uw}from"./vendor-antd-BlMATH2j.js";function h0(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=h0(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ee(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=h0(e))&&(n&&(n+=" "),n+=t);return n}var Io,yp;function We(){if(yp)return Io;yp=1;var e=Array.isArray;return Io=e,Io}var ko,mp;function p0(){if(mp)return ko;mp=1;var e=typeof Ti=="object"&&Ti&&Ti.Object===Object&&Ti;return ko=e,ko}var Ro,gp;function yt(){if(gp)return Ro;gp=1;var e=p0(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Ro=r,Ro}var No,bp;function mi(){if(bp)return No;bp=1;var e=yt(),t=e.Symbol;return No=t,No}var Do,_p;function Hw(){if(_p)return Do;_p=1;var e=mi(),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 l=n.call(o);return c&&(u?o[i]=s:delete o[i]),l}return Do=a,Do}var qo,xp;function Kw(){if(xp)return qo;xp=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return qo=r,qo}var Lo,wp;function Ct(){if(wp)return Lo;wp=1;var e=mi(),t=Hw(),r=Kw(),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 Lo=o,Lo}var Bo,Op;function It(){if(Op)return Bo;Op=1;function e(t){return t!=null&&typeof t=="object"}return Bo=e,Bo}var Fo,Ap;function un(){if(Ap)return Fo;Ap=1;var e=Ct(),t=It(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Fo=n,Fo}var Wo,Sp;function ch(){if(Sp)return Wo;Sp=1;var e=We(),t=un(),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 Wo=i,Wo}var zo,Pp;function zt(){if(Pp)return zo;Pp=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return zo=e,zo}var Uo,Tp;function lh(){if(Tp)return Uo;Tp=1;var e=Ct(),t=zt(),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 Uo=o,Uo}var Ho,Ep;function Gw(){if(Ep)return Ho;Ep=1;var e=yt(),t=e["__core-js_shared__"];return Ho=t,Ho}var Ko,jp;function Xw(){if(jp)return Ko;jp=1;var e=Gw(),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 Ko=r,Ko}var Go,Mp;function d0(){if(Mp)return Go;Mp=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 Go=r,Go}var Xo,$p;function Vw(){if($p)return Xo;$p=1;var e=lh(),t=Xw(),r=zt(),n=d0(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,l=RegExp("^"+s.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!r(h)||t(h))return!1;var p=e(h)?l:a;return p.test(n(h))}return Xo=f,Xo}var Vo,Cp;function Yw(){if(Cp)return Vo;Cp=1;function e(t,r){return t==null?void 0:t[r]}return Vo=e,Vo}var Yo,Ip;function dr(){if(Ip)return Yo;Ip=1;var e=Vw(),t=Yw();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Yo=r,Yo}var Zo,kp;function Wa(){if(kp)return Zo;kp=1;var e=dr(),t=e(Object,"create");return Zo=t,Zo}var Jo,Rp;function Zw(){if(Rp)return Jo;Rp=1;var e=Wa();function t(){this.__data__=e?e(null):{},this.size=0}return Jo=t,Jo}var Qo,Np;function Jw(){if(Np)return Qo;Np=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Qo=e,Qo}var eu,Dp;function Qw(){if(Dp)return eu;Dp=1;var e=Wa(),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 eu=i,eu}var tu,qp;function e1(){if(qp)return tu;qp=1;var e=Wa(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return tu=n,tu}var ru,Lp;function t1(){if(Lp)return ru;Lp=1;var e=Wa(),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 ru=r,ru}var nu,Bp;function r1(){if(Bp)return nu;Bp=1;var e=Zw(),t=Jw(),r=Qw(),n=e1(),i=t1();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,nu=a,nu}var iu,Fp;function n1(){if(Fp)return iu;Fp=1;function e(){this.__data__=[],this.size=0}return iu=e,iu}var au,Wp;function fh(){if(Wp)return au;Wp=1;function e(t,r){return t===r||t!==t&&r!==r}return au=e,au}var ou,zp;function za(){if(zp)return ou;zp=1;var e=fh();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return ou=t,ou}var uu,Up;function i1(){if(Up)return uu;Up=1;var e=za(),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 uu=n,uu}var su,Hp;function a1(){if(Hp)return su;Hp=1;var e=za();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return su=t,su}var cu,Kp;function o1(){if(Kp)return cu;Kp=1;var e=za();function t(r){return e(this.__data__,r)>-1}return cu=t,cu}var lu,Gp;function u1(){if(Gp)return lu;Gp=1;var e=za();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 lu=t,lu}var fu,Xp;function Ua(){if(Xp)return fu;Xp=1;var e=n1(),t=i1(),r=a1(),n=o1(),i=u1();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,fu=a,fu}var hu,Vp;function hh(){if(Vp)return hu;Vp=1;var e=dr(),t=yt(),r=e(t,"Map");return hu=r,hu}var pu,Yp;function s1(){if(Yp)return pu;Yp=1;var e=r1(),t=Ua(),r=hh();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return pu=n,pu}var du,Zp;function c1(){if(Zp)return du;Zp=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return du=e,du}var vu,Jp;function Ha(){if(Jp)return vu;Jp=1;var e=c1();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return vu=t,vu}var yu,Qp;function l1(){if(Qp)return yu;Qp=1;var e=Ha();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return yu=t,yu}var mu,ed;function f1(){if(ed)return mu;ed=1;var e=Ha();function t(r){return e(this,r).get(r)}return mu=t,mu}var gu,td;function h1(){if(td)return gu;td=1;var e=Ha();function t(r){return e(this,r).has(r)}return gu=t,gu}var bu,rd;function p1(){if(rd)return bu;rd=1;var e=Ha();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 bu=t,bu}var _u,nd;function ph(){if(nd)return _u;nd=1;var e=s1(),t=l1(),r=f1(),n=h1(),i=p1();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,_u=a,_u}var xu,id;function v0(){if(id)return xu;id=1;var e=ph(),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,xu=r,xu}var wu,ad;function d1(){if(ad)return wu;ad=1;var e=v0(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return wu=r,wu}var Ou,od;function v1(){if(od)return Ou;od=1;var e=d1(),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 Ou=n,Ou}var Au,ud;function dh(){if(ud)return Au;ud=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 Au=e,Au}var Su,sd;function y1(){if(sd)return Su;sd=1;var e=mi(),t=dh(),r=We(),n=un(),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 Su=o,Su}var Pu,cd;function y0(){if(cd)return Pu;cd=1;var e=y1();function t(r){return r==null?"":e(r)}return Pu=t,Pu}var Tu,ld;function m0(){if(ld)return Tu;ld=1;var e=We(),t=ch(),r=v1(),n=y0();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Tu=i,Tu}var Eu,fd;function Ka(){if(fd)return Eu;fd=1;var e=un();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Eu=t,Eu}var ju,hd;function vh(){if(hd)return ju;hd=1;var e=m0(),t=Ka();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 ju=r,ju}var Mu,pd;function g0(){if(pd)return Mu;pd=1;var e=vh();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Mu=t,Mu}var m1=g0();const Xe=se(m1);var $u,dd;function g1(){if(dd)return $u;dd=1;function e(t){return t==null}return $u=e,$u}var b1=g1();const Z=se(b1);var Cu,vd;function _1(){if(vd)return Cu;vd=1;var e=Ct(),t=We(),r=It(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Cu=i,Cu}var x1=_1();const sr=se(x1);var w1=lh();const V=se(w1);var O1=zt();const sn=se(O1);var Iu,yd;function b0(){if(yd)return Iu;yd=1;var e=Ct(),t=It(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Iu=n,Iu}var ku,md;function A1(){if(md)return ku;md=1;var e=b0();function t(r){return e(r)&&r!=+r}return ku=t,ku}var S1=A1();const gi=se(S1);var P1=b0();const T1=se(P1);var De=function(t){return t===0?0:t>0?1:-1},rr=function(t){return sr(t)&&t.indexOf("%")===t.length-1},L=function(t){return T1(t)&&!gi(t)},E1=function(t){return Z(t)},Oe=function(t){return L(t)||sr(t)},j1=0,cn=function(t){var r=++j1;return"".concat(t||"").concat(r)},qe=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)&&!sr(t))return n;var a;if(rr(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return gi(a)&&(a=n),i&&a>r&&(a=r),a},Dt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},M1=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},Ke=function(t,r){return L(t)&&L(r)?function(n){return t+n*(r-t)}:function(){return r}};function Ui(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Xe(n,t))===r})}var $1=function(t,r){return L(t)&&L(r)?t-r:sr(t)&&sr(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Mr(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 Ll(e){"@babel/helpers - typeof";return Ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ll(e)}var C1=["viewBox","children"],I1=["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"],gd=["points","pathLength"],Ru={svg:C1,polygon:gd,polyline:gd},yh=["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"],Hi=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(D.isValidElement(t)&&(n=t.props),!sn(n))return null;var i={};return Object.keys(n).forEach(function(a){yh.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},k1=function(t,r,n){return function(i){return t(r,n,i),null}},cr=function(t,r,n){if(!sn(t)||Ll(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];yh.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=k1(o,r,n))}),i},R1=["children"],N1=["children"];function bd(e,t){if(e==null)return{};var r=D1(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 D1(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 Bl(e){"@babel/helpers - typeof";return Bl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bl(e)}var _d={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"},Pt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},xd=null,Nu=null,mh=function e(t){if(t===xd&&Array.isArray(Nu))return Nu;var r=[];return D.Children.forEach(t,function(n){Z(n)||(Uw.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Nu=r,xd=t,r};function Ve(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Pt(i)}):n=[Pt(t)],mh(e).forEach(function(i){var a=Xe(i,"type.displayName")||Xe(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function He(e,t){var r=Ve(e,t);return r&&r[0]}var wd=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)},q1=["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"],L1=function(t){return t&&t.type&&sr(t.type)&&q1.indexOf(t.type)>=0},B1=function(t){return t&&Bl(t)==="object"&&"clipDot"in t},F1=function(t,r,n,i){var a,o=(a=Ru==null?void 0:Ru[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!V(t)&&(i&&o.includes(r)||I1.includes(r))||n&&yh.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),!sn(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;F1((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Fl=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 Od(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(!Od(a,o))return!1}return!0},Od=function(t,r){if(Z(t)&&Z(r))return!0;if(!Z(t)&&!Z(r)){var n=t.props||{},i=n.children,a=bd(n,R1),o=r.props||{},u=o.children,s=bd(o,N1);return i&&u?Mr(a,s)&&Fl(i,u):!i&&!u?Mr(a,s):!1}return!1},Ad=function(t,r){var n=[],i={};return mh(t).forEach(function(a,o){if(L1(a))n.push(a);else if(a){var u=Pt(a.type),s=r[u]||{},c=s.handler,l=s.once;if(c&&(!l||!i[u])){var f=c(a,u,o);n.push(f),i[u]=!0}}}),n},W1=function(t){var r=t&&t.type;return r&&_d[r]?_d[r]:null},z1=function(t,r){return mh(r).indexOf(t)},U1=["children","width","height","viewBox","className","style","title","desc"];function Wl(){return Wl=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},Wl.apply(this,arguments)}function H1(e,t){if(e==null)return{};var r=K1(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 K1(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 zl(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=H1(e,U1),l=i||{width:r,height:n,x:0,y:0},f=ee("recharts-surface",a);return S.createElement("svg",Wl({},G(c,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(l.x," ").concat(l.y," ").concat(l.width," ").concat(l.height)}),S.createElement("title",null,u),S.createElement("desc",null,s),t)}var G1=["children","className"];function Ul(){return Ul=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},Ul.apply(this,arguments)}function X1(e,t){if(e==null)return{};var r=V1(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 V1(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 re=S.forwardRef(function(e,t){var r=e.children,n=e.className,i=X1(e,G1),a=ee("recharts-layer",n);return S.createElement("g",Ul({className:a},G(i,!0),{ref:t}),r)}),st=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]},Du,Sd;function Y1(){if(Sd)return Du;Sd=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 Du=e,Du}var qu,Pd;function Z1(){if(Pd)return qu;Pd=1;var e=Y1();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 qu=t,qu}var Lu,Td;function _0(){if(Td)return Lu;Td=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 Lu=s,Lu}var Bu,Ed;function J1(){if(Ed)return Bu;Ed=1;function e(t){return t.split("")}return Bu=e,Bu}var Fu,jd;function Q1(){if(jd)return Fu;jd=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+")",l="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=c+"?",d="["+a+"]?",v="(?:"+p+"(?:"+[l,f,h].join("|")+")"+d+y+")*",g=d+y+v,b="(?:"+[l+u+"?",u,f,h,o].join("|")+")",x=RegExp(s+"(?="+s+")|"+b+g,"g");function w(m){return m.match(x)||[]}return Fu=w,Fu}var Wu,Md;function eO(){if(Md)return Wu;Md=1;var e=J1(),t=_0(),r=Q1();function n(i){return t(i)?r(i):e(i)}return Wu=n,Wu}var zu,$d;function tO(){if($d)return zu;$d=1;var e=Z1(),t=_0(),r=eO(),n=y0();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 zu=i,zu}var Uu,Cd;function rO(){if(Cd)return Uu;Cd=1;var e=tO(),t=e("toUpperCase");return Uu=t,Uu}var nO=rO();const Ga=se(nO);function Q(e){return function(){return e}}const Id=Math.abs,Ce=Math.atan2,bt=Math.cos,iO=Math.max,Hu=Math.min,Fe=Math.sin,$e=Math.sqrt,Ie=1e-12,Ft=Math.PI,Ki=Ft/2,Lt=2*Ft;function aO(e){return e>1?0:e<-1?Ft:Math.acos(e)}function kd(e){return e>=1?Ki:e<=-1?-Ki:Math.asin(e)}const Hl=Math.PI,Kl=2*Hl,Qt=1e-6,oO=Kl-Qt;function x0(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function uO(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return x0;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 sO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?x0:uO(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,l=o-t,f=u-r,h=l*l+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Qt)if(!(Math.abs(f*s-c*l)>Qt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-u,d=s*s+c*c,v=p*p+y*y,g=Math.sqrt(d),b=Math.sqrt(h),x=a*Math.tan((Hl-Math.acos((d+h-v)/(2*g*b)))/2),w=x/b,m=x/g;Math.abs(w-1)>Qt&&this._append`L${t+w*l},${r+w*f}`,this._append`A${a},${a},0,0,${+(f*p>l*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,l=r+s,f=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Qt||Math.abs(this._y1-l)>Qt)&&this._append`L${c},${l}`,n&&(h<0&&(h=h%Kl+Kl),h>oO?this._append`A${n},${n},0,1,${f},${t-u},${r-s}A${n},${n},0,1,${f},${this._x1=c},${this._y1=l}`:h>Qt&&this._append`A${n},${n},0,${+(h>=Hl)},${f},${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 Xa(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 sO(t)}function cO(e){return e.innerRadius}function lO(e){return e.outerRadius}function fO(e){return e.startAngle}function hO(e){return e.endAngle}function pO(e){return e&&e.padAngle}function dO(e,t,r,n,i,a,o,u){var s=r-e,c=n-t,l=o-i,f=u-a,h=f*s-l*c;if(!(h*h<Ie))return h=(l*(t-a)-f*(e-i))/h,[e+h*s,t+h*c]}function Ei(e,t,r,n,i,a,o){var u=e-r,s=t-n,c=(o?a:-a)/$e(u*u+s*s),l=c*s,f=-c*u,h=e+l,p=t+f,y=r+l,d=n+f,v=(h+y)/2,g=(p+d)/2,b=y-h,x=d-p,w=b*b+x*x,m=i-a,_=h*d-y*p,O=(x<0?-1:1)*$e(iO(0,m*m*w-_*_)),A=(_*x-b*O)/w,T=(-_*b-x*O)/w,M=(_*x+b*O)/w,P=(-_*b+x*O)/w,j=A-v,E=T-g,$=M-v,C=P-g;return j*j+E*E>$*$+C*C&&(A=M,T=P),{cx:A,cy:T,x01:-l,y01:-f,x11:A*(i/m-1),y11:T*(i/m-1)}}function zq(){var e=cO,t=lO,r=Q(0),n=null,i=fO,a=hO,o=pO,u=null,s=Xa(c);function c(){var l,f,h=+e.apply(this,arguments),p=+t.apply(this,arguments),y=i.apply(this,arguments)-Ki,d=a.apply(this,arguments)-Ki,v=Id(d-y),g=d>y;if(u||(u=l=s()),p<h&&(f=p,p=h,h=f),!(p>Ie))u.moveTo(0,0);else if(v>Lt-Ie)u.moveTo(p*bt(y),p*Fe(y)),u.arc(0,0,p,y,d,!g),h>Ie&&(u.moveTo(h*bt(d),h*Fe(d)),u.arc(0,0,h,d,y,g));else{var b=y,x=d,w=y,m=d,_=v,O=v,A=o.apply(this,arguments)/2,T=A>Ie&&(n?+n.apply(this,arguments):$e(h*h+p*p)),M=Hu(Id(p-h)/2,+r.apply(this,arguments)),P=M,j=M,E,$;if(T>Ie){var C=kd(T/h*Fe(A)),k=kd(T/p*Fe(A));(_-=C*2)>Ie?(C*=g?1:-1,w+=C,m-=C):(_=0,w=m=(y+d)/2),(O-=k*2)>Ie?(k*=g?1:-1,b+=k,x-=k):(O=0,b=x=(y+d)/2)}var R=p*bt(b),q=p*Fe(b),B=h*bt(m),U=h*Fe(m);if(M>Ie){var H=p*bt(x),W=p*Fe(x),K=h*bt(w),oe=h*Fe(w),ie;if(v<Ft)if(ie=dO(R,q,K,oe,H,W,B,U)){var je=R-ie[0],nt=q-ie[1],Se=H-ie[0],F=W-ie[1],Y=1/Fe(aO((je*Se+nt*F)/($e(je*je+nt*nt)*$e(Se*Se+F*F)))/2),J=$e(ie[0]*ie[0]+ie[1]*ie[1]);P=Hu(M,(h-J)/(Y-1)),j=Hu(M,(p-J)/(Y+1))}else P=j=0}O>Ie?j>Ie?(E=Ei(K,oe,R,q,p,j,g),$=Ei(H,W,B,U,p,j,g),u.moveTo(E.cx+E.x01,E.cy+E.y01),j<M?u.arc(E.cx,E.cy,j,Ce(E.y01,E.x01),Ce($.y01,$.x01),!g):(u.arc(E.cx,E.cy,j,Ce(E.y01,E.x01),Ce(E.y11,E.x11),!g),u.arc(0,0,p,Ce(E.cy+E.y11,E.cx+E.x11),Ce($.cy+$.y11,$.cx+$.x11),!g),u.arc($.cx,$.cy,j,Ce($.y11,$.x11),Ce($.y01,$.x01),!g))):(u.moveTo(R,q),u.arc(0,0,p,b,x,!g)):u.moveTo(R,q),!(h>Ie)||!(_>Ie)?u.lineTo(B,U):P>Ie?(E=Ei(B,U,H,W,h,-P,g),$=Ei(R,q,K,oe,h,-P,g),u.lineTo(E.cx+E.x01,E.cy+E.y01),P<M?u.arc(E.cx,E.cy,P,Ce(E.y01,E.x01),Ce($.y01,$.x01),!g):(u.arc(E.cx,E.cy,P,Ce(E.y01,E.x01),Ce(E.y11,E.x11),!g),u.arc(0,0,h,Ce(E.cy+E.y11,E.cx+E.x11),Ce($.cy+$.y11,$.cx+$.x11),g),u.arc($.cx,$.cy,P,Ce($.y11,$.x11),Ce($.y01,$.x01),!g))):u.arc(0,0,h,m,w,g)}if(u.closePath(),l)return u=null,l+""||null}return c.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,f=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Ft/2;return[bt(f)*l,Fe(f)*l]},c.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:Q(+l),c):e},c.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:Q(+l),c):t},c.cornerRadius=function(l){return arguments.length?(r=typeof l=="function"?l:Q(+l),c):r},c.padRadius=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:Q(+l),c):n},c.startAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Q(+l),c):i},c.endAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Q(+l),c):a},c.padAngle=function(l){return arguments.length?(o=typeof l=="function"?l:Q(+l),c):o},c.context=function(l){return arguments.length?(u=l??null,c):u},c}function Va(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function w0(e){this._context=e}w0.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 Ya(e){return new w0(e)}function O0(e){return e[0]}function A0(e){return e[1]}function S0(e,t){var r=Q(!0),n=null,i=Ya,a=null,o=Xa(u);e=typeof e=="function"?e:e===void 0?O0:Q(e),t=typeof t=="function"?t:t===void 0?A0:Q(t);function u(s){var c,l=(s=Va(s)).length,f,h=!1,p;for(n==null&&(a=i(p=o())),c=0;c<=l;++c)!(c<l&&r(f=s[c],c,s))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(f,c,s),+t(f,c,s));if(p)return a=null,p+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:Q(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:Q(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:Q(!!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 ji(e,t,r){var n=null,i=Q(!0),a=null,o=Ya,u=null,s=Xa(c);e=typeof e=="function"?e:e===void 0?O0:Q(+e),t=typeof t=="function"?t:Q(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?A0:Q(+r);function c(f){var h,p,y,d=(f=Va(f)).length,v,g=!1,b,x=new Array(d),w=new Array(d);for(a==null&&(u=o(b=s())),h=0;h<=d;++h){if(!(h<d&&i(v=f[h],h,f))===g)if(g=!g)p=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=h-1;y>=p;--y)u.point(x[y],w[y]);u.lineEnd(),u.areaEnd()}g&&(x[h]=+e(v,h,f),w[h]=+t(v,h,f),u.point(n?+n(v,h,f):x[h],r?+r(v,h,f):w[h]))}if(b)return u=null,b+""||null}function l(){return S0().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Q(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Q(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Q(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Q(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Q(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Q(+f),c):r},c.lineX0=c.lineY0=function(){return l().x(e).y(t)},c.lineY1=function(){return l().x(e).y(r)},c.lineX1=function(){return l().x(n).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Q(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),c):a},c}function vO(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function yO(e){return e}function Uq(){var e=yO,t=vO,r=null,n=Q(0),i=Q(Lt),a=Q(0);function o(u){var s,c=(u=Va(u)).length,l,f,h=0,p=new Array(c),y=new Array(c),d=+n.apply(this,arguments),v=Math.min(Lt,Math.max(-Lt,i.apply(this,arguments)-d)),g,b=Math.min(Math.abs(v)/c,a.apply(this,arguments)),x=b*(v<0?-1:1),w;for(s=0;s<c;++s)(w=y[p[s]=s]=+e(u[s],s,u))>0&&(h+=w);for(t!=null?p.sort(function(m,_){return t(y[m],y[_])}):r!=null&&p.sort(function(m,_){return r(u[m],u[_])}),s=0,f=h?(v-c*x)/h:0;s<c;++s,d=g)l=p[s],w=y[l],g=d+(w>0?w*f:0)+x,y[l]={data:u[l],index:s,value:w,startAngle:d,endAngle:g,padAngle:b};return y}return o.value=function(u){return arguments.length?(e=typeof u=="function"?u:Q(+u),o):e},o.sortValues=function(u){return arguments.length?(t=u,r=null,o):t},o.sort=function(u){return arguments.length?(r=u,t=null,o):r},o.startAngle=function(u){return arguments.length?(n=typeof u=="function"?u:Q(+u),o):n},o.endAngle=function(u){return arguments.length?(i=typeof u=="function"?u:Q(+u),o):i},o.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:Q(+u),o):a},o}class P0{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 mO(e){return new P0(e,!0)}function gO(e){return new P0(e,!1)}const gh={draw(e,t){const r=$e(t/Ft);e.moveTo(r,0),e.arc(0,0,r,0,Lt)}},bO={draw(e,t){const r=$e(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()}},T0=$e(1/3),_O=T0*2,xO={draw(e,t){const r=$e(t/_O),n=r*T0;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},wO={draw(e,t){const r=$e(t),n=-r/2;e.rect(n,n,r,r)}},OO=.8908130915292852,E0=Fe(Ft/10)/Fe(7*Ft/10),AO=Fe(Lt/10)*E0,SO=-bt(Lt/10)*E0,PO={draw(e,t){const r=$e(t*OO),n=AO*r,i=SO*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Lt*a/5,u=bt(o),s=Fe(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},Ku=$e(3),TO={draw(e,t){const r=-$e(t/(Ku*3));e.moveTo(0,r*2),e.lineTo(-Ku*r,-r),e.lineTo(Ku*r,-r),e.closePath()}},Ye=-.5,Ze=$e(3)/2,Gl=1/$e(12),EO=(Gl/2+1)*3,jO={draw(e,t){const r=$e(t/EO),n=r/2,i=r*Gl,a=n,o=r*Gl+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Ye*n-Ze*i,Ze*n+Ye*i),e.lineTo(Ye*a-Ze*o,Ze*a+Ye*o),e.lineTo(Ye*u-Ze*s,Ze*u+Ye*s),e.lineTo(Ye*n+Ze*i,Ye*i-Ze*n),e.lineTo(Ye*a+Ze*o,Ye*o-Ze*a),e.lineTo(Ye*u+Ze*s,Ye*s-Ze*u),e.closePath()}};function MO(e,t){let r=null,n=Xa(i);e=typeof e=="function"?e:Q(e||gh),t=typeof t=="function"?t:Q(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:Q(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Q(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Wt(){}function Gi(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 Za(e){this._context=e}Za.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:Gi(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:Gi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $O(e){return new Za(e)}function j0(e){this._context=e}j0.prototype={areaStart:Wt,areaEnd:Wt,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:Gi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CO(e){return new j0(e)}function M0(e){this._context=e}M0.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:Gi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function IO(e){return new M0(e)}function $0(e,t){this._basis=new Za(e),this._beta=t}$0.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var n=e[0],i=t[0],a=e[r]-n,o=t[r]-i,u=-1,s;++u<=r;)s=u/r,this._basis.point(this._beta*e[u]+(1-this._beta)*(n+s*a),this._beta*t[u]+(1-this._beta)*(i+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Hq=function e(t){function r(n){return t===1?new Za(n):new $0(n,t)}return r.beta=function(n){return e(+n)},r}(.85);function Xi(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function bh(e,t){this._context=e,this._k=(1-t)/6}bh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Xi(this,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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Xi(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Kq=function e(t){function r(n){return new bh(n,t)}return r.tension=function(n){return e(+n)},r}(0);function _h(e,t){this._context=e,this._k=(1-t)/6}_h.prototype={areaStart:Wt,areaEnd:Wt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Xi(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Gq=function e(t){function r(n){return new _h(n,t)}return r.tension=function(n){return e(+n)},r}(0);function xh(e,t){this._context=e,this._k=(1-t)/6}xh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Xi(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Xq=function e(t){function r(n){return new xh(n,t)}return r.tension=function(n){return e(+n)},r}(0);function wh(e,t,r){var n=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Ie){var u=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*u-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,i=(i*u-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>Ie){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/l,o=(o*c+e._y1*e._l23_2a-r*e._l12_2a)/l}e._context.bezierCurveTo(n,i,a,o,e._x2,e._y2)}function C0(e,t){this._context=e,this._alpha=t}C0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}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;default:wh(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Vq=function e(t){function r(n){return t?new C0(n,t):new bh(n,0)}return r.alpha=function(n){return e(+n)},r}(.5);function I0(e,t){this._context=e,this._alpha=t}I0.prototype={areaStart:Wt,areaEnd:Wt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:wh(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Yq=function e(t){function r(n){return t?new I0(n,t):new _h(n,0)}return r.alpha=function(n){return e(+n)},r}(.5);function k0(e,t){this._context=e,this._alpha=t}k0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=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){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wh(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Zq=function e(t){function r(n){return t?new k0(n,t):new xh(n,0)}return r.alpha=function(n){return e(+n)},r}(.5);function R0(e){this._context=e}R0.prototype={areaStart:Wt,areaEnd:Wt,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 kO(e){return new R0(e)}function Rd(e){return e<0?-1:1}function Nd(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(Rd(a)+Rd(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Dd(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Gu(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 Vi(e){this._context=e}Vi.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:Gu(this,this._t0,Dd(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,Gu(this,Dd(this,r=Nd(this,e,t)),r);break;default:Gu(this,this._t0,r=Nd(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function N0(e){this._context=new D0(e)}(N0.prototype=Object.create(Vi.prototype)).point=function(e,t){Vi.prototype.point.call(this,t,e)};function D0(e){this._context=e}D0.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 RO(e){return new Vi(e)}function NO(e){return new N0(e)}function q0(e){this._context=e}q0.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=qd(e),i=qd(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 qd(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 DO(e){return new q0(e)}function Ja(e,t){this._context=e,this._t=t}Ja.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 qO(e){return new Ja(e,.5)}function LO(e){return new Ja(e,0)}function BO(e){return new Ja(e,1)}function Rr(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 Xl(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function FO(e,t){return e[t]}function WO(e){const t=[];return t.key=e,t}function zO(){var e=Q([]),t=Xl,r=Rr,n=FO;function i(a){var o=Array.from(e.apply(this,arguments),WO),u,s=o.length,c=-1,l;for(const f of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(f,o[u].key,c,a)]).data=f;for(u=0,l=Va(t(o));u<s;++u)o[l[u]].index=u;return r(o,l),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Q(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Q(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Xl:typeof a=="function"?a:Q(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Rr,i):r},i}function UO(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}Rr(e,t)}}function HO(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}Rr(e,t)}}function KO(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 l=e[t[u]],f=l[n][1]||0,h=l[n-1][1]||0,p=(f-h)/2,y=0;y<u;++y){var d=e[t[y]],v=d[n][1]||0,g=d[n-1][1]||0;p+=v-g}s+=f,c+=p*f}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,Rr(e,t)}}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)}var GO=["type","size","sizeType"];function Vl(){return Vl=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},Vl.apply(this,arguments)}function Ld(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 Bd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ld(Object(r),!0).forEach(function(n){XO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ld(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XO(e,t,r){return t=VO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VO(e){var t=YO(e,"string");return Nn(t)=="symbol"?t:t+""}function YO(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(t==="string"?String:Number)(e)}function ZO(e,t){if(e==null)return{};var r=JO(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 JO(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 L0={symbolCircle:gh,symbolCross:bO,symbolDiamond:xO,symbolSquare:wO,symbolStar:PO,symbolTriangle:TO,symbolWye:jO},QO=Math.PI/180,eA=function(t){var r="symbol".concat(Ga(t));return L0[r]||gh},tA=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*QO;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}},rA=function(t,r){L0["symbol".concat(Ga(t))]=r},Oh=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=ZO(t,GO),c=Bd(Bd({},s),{},{type:n,size:a,sizeType:u}),l=function(){var v=eA(n),g=MO().type(v).size(tA(a,u,n));return g()},f=c.className,h=c.cx,p=c.cy,y=G(c,!0);return h===+h&&p===+p&&a===+a?S.createElement("path",Vl({},y,{className:ee("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:l()})):null};Oh.registerSymbol=rA;function Nr(e){"@babel/helpers - typeof";return Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nr(e)}function Yl(){return Yl=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},Yl.apply(this,arguments)}function Fd(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 nA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fd(Object(r),!0).forEach(function(n){Dn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aA(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,F0(n.key),n)}}function oA(e,t,r){return t&&aA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uA(e,t,r){return t=Yi(t),sA(e,B0()?Reflect.construct(t,r||[],Yi(e).constructor):t.apply(e,r))}function sA(e,t){if(t&&(Nr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cA(e)}function cA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B0=function(){return!!e})()}function Yi(e){return Yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yi(e)}function lA(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&&Zl(e,t)}function Zl(e,t){return Zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zl(e,t)}function Dn(e,t,r){return t=F0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F0(e){var t=fA(e,"string");return Nr(t)=="symbol"?t:t+""}function fA(e,t){if(Nr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Je=32,Ah=function(e){function t(){return iA(this,t),uA(this,t,arguments)}return lA(t,e),oA(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Je/2,o=Je/6,u=Je/3,s=n.inactive?i:n.color;if(n.type==="plainline")return S.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Je,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return S.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,`
1
+ import{c as Ti,g as se,a as D,R as S}from"./vendor-i18n-BNURlJ23.js";import{r as Uw}from"./vendor-antd-BSy6VeYJ.js";function h0(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=h0(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ee(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=h0(e))&&(n&&(n+=" "),n+=t);return n}var Io,yp;function We(){if(yp)return Io;yp=1;var e=Array.isArray;return Io=e,Io}var ko,mp;function p0(){if(mp)return ko;mp=1;var e=typeof Ti=="object"&&Ti&&Ti.Object===Object&&Ti;return ko=e,ko}var Ro,gp;function yt(){if(gp)return Ro;gp=1;var e=p0(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Ro=r,Ro}var No,bp;function mi(){if(bp)return No;bp=1;var e=yt(),t=e.Symbol;return No=t,No}var Do,_p;function Hw(){if(_p)return Do;_p=1;var e=mi(),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 l=n.call(o);return c&&(u?o[i]=s:delete o[i]),l}return Do=a,Do}var qo,xp;function Kw(){if(xp)return qo;xp=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return qo=r,qo}var Lo,wp;function Ct(){if(wp)return Lo;wp=1;var e=mi(),t=Hw(),r=Kw(),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 Lo=o,Lo}var Bo,Op;function It(){if(Op)return Bo;Op=1;function e(t){return t!=null&&typeof t=="object"}return Bo=e,Bo}var Fo,Ap;function un(){if(Ap)return Fo;Ap=1;var e=Ct(),t=It(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Fo=n,Fo}var Wo,Sp;function ch(){if(Sp)return Wo;Sp=1;var e=We(),t=un(),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 Wo=i,Wo}var zo,Pp;function zt(){if(Pp)return zo;Pp=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return zo=e,zo}var Uo,Tp;function lh(){if(Tp)return Uo;Tp=1;var e=Ct(),t=zt(),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 Uo=o,Uo}var Ho,Ep;function Gw(){if(Ep)return Ho;Ep=1;var e=yt(),t=e["__core-js_shared__"];return Ho=t,Ho}var Ko,jp;function Xw(){if(jp)return Ko;jp=1;var e=Gw(),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 Ko=r,Ko}var Go,Mp;function d0(){if(Mp)return Go;Mp=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 Go=r,Go}var Xo,$p;function Vw(){if($p)return Xo;$p=1;var e=lh(),t=Xw(),r=zt(),n=d0(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,l=RegExp("^"+s.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!r(h)||t(h))return!1;var p=e(h)?l:a;return p.test(n(h))}return Xo=f,Xo}var Vo,Cp;function Yw(){if(Cp)return Vo;Cp=1;function e(t,r){return t==null?void 0:t[r]}return Vo=e,Vo}var Yo,Ip;function dr(){if(Ip)return Yo;Ip=1;var e=Vw(),t=Yw();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Yo=r,Yo}var Zo,kp;function Wa(){if(kp)return Zo;kp=1;var e=dr(),t=e(Object,"create");return Zo=t,Zo}var Jo,Rp;function Zw(){if(Rp)return Jo;Rp=1;var e=Wa();function t(){this.__data__=e?e(null):{},this.size=0}return Jo=t,Jo}var Qo,Np;function Jw(){if(Np)return Qo;Np=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Qo=e,Qo}var eu,Dp;function Qw(){if(Dp)return eu;Dp=1;var e=Wa(),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 eu=i,eu}var tu,qp;function e1(){if(qp)return tu;qp=1;var e=Wa(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return tu=n,tu}var ru,Lp;function t1(){if(Lp)return ru;Lp=1;var e=Wa(),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 ru=r,ru}var nu,Bp;function r1(){if(Bp)return nu;Bp=1;var e=Zw(),t=Jw(),r=Qw(),n=e1(),i=t1();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,nu=a,nu}var iu,Fp;function n1(){if(Fp)return iu;Fp=1;function e(){this.__data__=[],this.size=0}return iu=e,iu}var au,Wp;function fh(){if(Wp)return au;Wp=1;function e(t,r){return t===r||t!==t&&r!==r}return au=e,au}var ou,zp;function za(){if(zp)return ou;zp=1;var e=fh();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return ou=t,ou}var uu,Up;function i1(){if(Up)return uu;Up=1;var e=za(),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 uu=n,uu}var su,Hp;function a1(){if(Hp)return su;Hp=1;var e=za();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return su=t,su}var cu,Kp;function o1(){if(Kp)return cu;Kp=1;var e=za();function t(r){return e(this.__data__,r)>-1}return cu=t,cu}var lu,Gp;function u1(){if(Gp)return lu;Gp=1;var e=za();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 lu=t,lu}var fu,Xp;function Ua(){if(Xp)return fu;Xp=1;var e=n1(),t=i1(),r=a1(),n=o1(),i=u1();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,fu=a,fu}var hu,Vp;function hh(){if(Vp)return hu;Vp=1;var e=dr(),t=yt(),r=e(t,"Map");return hu=r,hu}var pu,Yp;function s1(){if(Yp)return pu;Yp=1;var e=r1(),t=Ua(),r=hh();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return pu=n,pu}var du,Zp;function c1(){if(Zp)return du;Zp=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return du=e,du}var vu,Jp;function Ha(){if(Jp)return vu;Jp=1;var e=c1();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return vu=t,vu}var yu,Qp;function l1(){if(Qp)return yu;Qp=1;var e=Ha();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return yu=t,yu}var mu,ed;function f1(){if(ed)return mu;ed=1;var e=Ha();function t(r){return e(this,r).get(r)}return mu=t,mu}var gu,td;function h1(){if(td)return gu;td=1;var e=Ha();function t(r){return e(this,r).has(r)}return gu=t,gu}var bu,rd;function p1(){if(rd)return bu;rd=1;var e=Ha();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 bu=t,bu}var _u,nd;function ph(){if(nd)return _u;nd=1;var e=s1(),t=l1(),r=f1(),n=h1(),i=p1();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,_u=a,_u}var xu,id;function v0(){if(id)return xu;id=1;var e=ph(),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,xu=r,xu}var wu,ad;function d1(){if(ad)return wu;ad=1;var e=v0(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return wu=r,wu}var Ou,od;function v1(){if(od)return Ou;od=1;var e=d1(),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 Ou=n,Ou}var Au,ud;function dh(){if(ud)return Au;ud=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 Au=e,Au}var Su,sd;function y1(){if(sd)return Su;sd=1;var e=mi(),t=dh(),r=We(),n=un(),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 Su=o,Su}var Pu,cd;function y0(){if(cd)return Pu;cd=1;var e=y1();function t(r){return r==null?"":e(r)}return Pu=t,Pu}var Tu,ld;function m0(){if(ld)return Tu;ld=1;var e=We(),t=ch(),r=v1(),n=y0();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Tu=i,Tu}var Eu,fd;function Ka(){if(fd)return Eu;fd=1;var e=un();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Eu=t,Eu}var ju,hd;function vh(){if(hd)return ju;hd=1;var e=m0(),t=Ka();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 ju=r,ju}var Mu,pd;function g0(){if(pd)return Mu;pd=1;var e=vh();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Mu=t,Mu}var m1=g0();const Xe=se(m1);var $u,dd;function g1(){if(dd)return $u;dd=1;function e(t){return t==null}return $u=e,$u}var b1=g1();const Z=se(b1);var Cu,vd;function _1(){if(vd)return Cu;vd=1;var e=Ct(),t=We(),r=It(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Cu=i,Cu}var x1=_1();const sr=se(x1);var w1=lh();const V=se(w1);var O1=zt();const sn=se(O1);var Iu,yd;function b0(){if(yd)return Iu;yd=1;var e=Ct(),t=It(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Iu=n,Iu}var ku,md;function A1(){if(md)return ku;md=1;var e=b0();function t(r){return e(r)&&r!=+r}return ku=t,ku}var S1=A1();const gi=se(S1);var P1=b0();const T1=se(P1);var De=function(t){return t===0?0:t>0?1:-1},rr=function(t){return sr(t)&&t.indexOf("%")===t.length-1},L=function(t){return T1(t)&&!gi(t)},E1=function(t){return Z(t)},Oe=function(t){return L(t)||sr(t)},j1=0,cn=function(t){var r=++j1;return"".concat(t||"").concat(r)},qe=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)&&!sr(t))return n;var a;if(rr(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return gi(a)&&(a=n),i&&a>r&&(a=r),a},Dt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},M1=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},Ke=function(t,r){return L(t)&&L(r)?function(n){return t+n*(r-t)}:function(){return r}};function Ui(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Xe(n,t))===r})}var $1=function(t,r){return L(t)&&L(r)?t-r:sr(t)&&sr(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Mr(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 Ll(e){"@babel/helpers - typeof";return Ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ll(e)}var C1=["viewBox","children"],I1=["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"],gd=["points","pathLength"],Ru={svg:C1,polygon:gd,polyline:gd},yh=["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"],Hi=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(D.isValidElement(t)&&(n=t.props),!sn(n))return null;var i={};return Object.keys(n).forEach(function(a){yh.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},k1=function(t,r,n){return function(i){return t(r,n,i),null}},cr=function(t,r,n){if(!sn(t)||Ll(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];yh.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=k1(o,r,n))}),i},R1=["children"],N1=["children"];function bd(e,t){if(e==null)return{};var r=D1(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 D1(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 Bl(e){"@babel/helpers - typeof";return Bl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bl(e)}var _d={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"},Pt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},xd=null,Nu=null,mh=function e(t){if(t===xd&&Array.isArray(Nu))return Nu;var r=[];return D.Children.forEach(t,function(n){Z(n)||(Uw.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Nu=r,xd=t,r};function Ve(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Pt(i)}):n=[Pt(t)],mh(e).forEach(function(i){var a=Xe(i,"type.displayName")||Xe(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function He(e,t){var r=Ve(e,t);return r&&r[0]}var wd=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)},q1=["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"],L1=function(t){return t&&t.type&&sr(t.type)&&q1.indexOf(t.type)>=0},B1=function(t){return t&&Bl(t)==="object"&&"clipDot"in t},F1=function(t,r,n,i){var a,o=(a=Ru==null?void 0:Ru[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!V(t)&&(i&&o.includes(r)||I1.includes(r))||n&&yh.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),!sn(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;F1((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Fl=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 Od(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(!Od(a,o))return!1}return!0},Od=function(t,r){if(Z(t)&&Z(r))return!0;if(!Z(t)&&!Z(r)){var n=t.props||{},i=n.children,a=bd(n,R1),o=r.props||{},u=o.children,s=bd(o,N1);return i&&u?Mr(a,s)&&Fl(i,u):!i&&!u?Mr(a,s):!1}return!1},Ad=function(t,r){var n=[],i={};return mh(t).forEach(function(a,o){if(L1(a))n.push(a);else if(a){var u=Pt(a.type),s=r[u]||{},c=s.handler,l=s.once;if(c&&(!l||!i[u])){var f=c(a,u,o);n.push(f),i[u]=!0}}}),n},W1=function(t){var r=t&&t.type;return r&&_d[r]?_d[r]:null},z1=function(t,r){return mh(r).indexOf(t)},U1=["children","width","height","viewBox","className","style","title","desc"];function Wl(){return Wl=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},Wl.apply(this,arguments)}function H1(e,t){if(e==null)return{};var r=K1(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 K1(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 zl(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=H1(e,U1),l=i||{width:r,height:n,x:0,y:0},f=ee("recharts-surface",a);return S.createElement("svg",Wl({},G(c,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(l.x," ").concat(l.y," ").concat(l.width," ").concat(l.height)}),S.createElement("title",null,u),S.createElement("desc",null,s),t)}var G1=["children","className"];function Ul(){return Ul=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},Ul.apply(this,arguments)}function X1(e,t){if(e==null)return{};var r=V1(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 V1(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 re=S.forwardRef(function(e,t){var r=e.children,n=e.className,i=X1(e,G1),a=ee("recharts-layer",n);return S.createElement("g",Ul({className:a},G(i,!0),{ref:t}),r)}),st=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]},Du,Sd;function Y1(){if(Sd)return Du;Sd=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 Du=e,Du}var qu,Pd;function Z1(){if(Pd)return qu;Pd=1;var e=Y1();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 qu=t,qu}var Lu,Td;function _0(){if(Td)return Lu;Td=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 Lu=s,Lu}var Bu,Ed;function J1(){if(Ed)return Bu;Ed=1;function e(t){return t.split("")}return Bu=e,Bu}var Fu,jd;function Q1(){if(jd)return Fu;jd=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+")",l="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=c+"?",d="["+a+"]?",v="(?:"+p+"(?:"+[l,f,h].join("|")+")"+d+y+")*",g=d+y+v,b="(?:"+[l+u+"?",u,f,h,o].join("|")+")",x=RegExp(s+"(?="+s+")|"+b+g,"g");function w(m){return m.match(x)||[]}return Fu=w,Fu}var Wu,Md;function eO(){if(Md)return Wu;Md=1;var e=J1(),t=_0(),r=Q1();function n(i){return t(i)?r(i):e(i)}return Wu=n,Wu}var zu,$d;function tO(){if($d)return zu;$d=1;var e=Z1(),t=_0(),r=eO(),n=y0();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 zu=i,zu}var Uu,Cd;function rO(){if(Cd)return Uu;Cd=1;var e=tO(),t=e("toUpperCase");return Uu=t,Uu}var nO=rO();const Ga=se(nO);function Q(e){return function(){return e}}const Id=Math.abs,Ce=Math.atan2,bt=Math.cos,iO=Math.max,Hu=Math.min,Fe=Math.sin,$e=Math.sqrt,Ie=1e-12,Ft=Math.PI,Ki=Ft/2,Lt=2*Ft;function aO(e){return e>1?0:e<-1?Ft:Math.acos(e)}function kd(e){return e>=1?Ki:e<=-1?-Ki:Math.asin(e)}const Hl=Math.PI,Kl=2*Hl,Qt=1e-6,oO=Kl-Qt;function x0(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function uO(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return x0;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 sO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?x0:uO(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,l=o-t,f=u-r,h=l*l+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Qt)if(!(Math.abs(f*s-c*l)>Qt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-u,d=s*s+c*c,v=p*p+y*y,g=Math.sqrt(d),b=Math.sqrt(h),x=a*Math.tan((Hl-Math.acos((d+h-v)/(2*g*b)))/2),w=x/b,m=x/g;Math.abs(w-1)>Qt&&this._append`L${t+w*l},${r+w*f}`,this._append`A${a},${a},0,0,${+(f*p>l*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,l=r+s,f=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Qt||Math.abs(this._y1-l)>Qt)&&this._append`L${c},${l}`,n&&(h<0&&(h=h%Kl+Kl),h>oO?this._append`A${n},${n},0,1,${f},${t-u},${r-s}A${n},${n},0,1,${f},${this._x1=c},${this._y1=l}`:h>Qt&&this._append`A${n},${n},0,${+(h>=Hl)},${f},${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 Xa(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 sO(t)}function cO(e){return e.innerRadius}function lO(e){return e.outerRadius}function fO(e){return e.startAngle}function hO(e){return e.endAngle}function pO(e){return e&&e.padAngle}function dO(e,t,r,n,i,a,o,u){var s=r-e,c=n-t,l=o-i,f=u-a,h=f*s-l*c;if(!(h*h<Ie))return h=(l*(t-a)-f*(e-i))/h,[e+h*s,t+h*c]}function Ei(e,t,r,n,i,a,o){var u=e-r,s=t-n,c=(o?a:-a)/$e(u*u+s*s),l=c*s,f=-c*u,h=e+l,p=t+f,y=r+l,d=n+f,v=(h+y)/2,g=(p+d)/2,b=y-h,x=d-p,w=b*b+x*x,m=i-a,_=h*d-y*p,O=(x<0?-1:1)*$e(iO(0,m*m*w-_*_)),A=(_*x-b*O)/w,T=(-_*b-x*O)/w,M=(_*x+b*O)/w,P=(-_*b+x*O)/w,j=A-v,E=T-g,$=M-v,C=P-g;return j*j+E*E>$*$+C*C&&(A=M,T=P),{cx:A,cy:T,x01:-l,y01:-f,x11:A*(i/m-1),y11:T*(i/m-1)}}function zq(){var e=cO,t=lO,r=Q(0),n=null,i=fO,a=hO,o=pO,u=null,s=Xa(c);function c(){var l,f,h=+e.apply(this,arguments),p=+t.apply(this,arguments),y=i.apply(this,arguments)-Ki,d=a.apply(this,arguments)-Ki,v=Id(d-y),g=d>y;if(u||(u=l=s()),p<h&&(f=p,p=h,h=f),!(p>Ie))u.moveTo(0,0);else if(v>Lt-Ie)u.moveTo(p*bt(y),p*Fe(y)),u.arc(0,0,p,y,d,!g),h>Ie&&(u.moveTo(h*bt(d),h*Fe(d)),u.arc(0,0,h,d,y,g));else{var b=y,x=d,w=y,m=d,_=v,O=v,A=o.apply(this,arguments)/2,T=A>Ie&&(n?+n.apply(this,arguments):$e(h*h+p*p)),M=Hu(Id(p-h)/2,+r.apply(this,arguments)),P=M,j=M,E,$;if(T>Ie){var C=kd(T/h*Fe(A)),k=kd(T/p*Fe(A));(_-=C*2)>Ie?(C*=g?1:-1,w+=C,m-=C):(_=0,w=m=(y+d)/2),(O-=k*2)>Ie?(k*=g?1:-1,b+=k,x-=k):(O=0,b=x=(y+d)/2)}var R=p*bt(b),q=p*Fe(b),B=h*bt(m),U=h*Fe(m);if(M>Ie){var H=p*bt(x),W=p*Fe(x),K=h*bt(w),oe=h*Fe(w),ie;if(v<Ft)if(ie=dO(R,q,K,oe,H,W,B,U)){var je=R-ie[0],nt=q-ie[1],Se=H-ie[0],F=W-ie[1],Y=1/Fe(aO((je*Se+nt*F)/($e(je*je+nt*nt)*$e(Se*Se+F*F)))/2),J=$e(ie[0]*ie[0]+ie[1]*ie[1]);P=Hu(M,(h-J)/(Y-1)),j=Hu(M,(p-J)/(Y+1))}else P=j=0}O>Ie?j>Ie?(E=Ei(K,oe,R,q,p,j,g),$=Ei(H,W,B,U,p,j,g),u.moveTo(E.cx+E.x01,E.cy+E.y01),j<M?u.arc(E.cx,E.cy,j,Ce(E.y01,E.x01),Ce($.y01,$.x01),!g):(u.arc(E.cx,E.cy,j,Ce(E.y01,E.x01),Ce(E.y11,E.x11),!g),u.arc(0,0,p,Ce(E.cy+E.y11,E.cx+E.x11),Ce($.cy+$.y11,$.cx+$.x11),!g),u.arc($.cx,$.cy,j,Ce($.y11,$.x11),Ce($.y01,$.x01),!g))):(u.moveTo(R,q),u.arc(0,0,p,b,x,!g)):u.moveTo(R,q),!(h>Ie)||!(_>Ie)?u.lineTo(B,U):P>Ie?(E=Ei(B,U,H,W,h,-P,g),$=Ei(R,q,K,oe,h,-P,g),u.lineTo(E.cx+E.x01,E.cy+E.y01),P<M?u.arc(E.cx,E.cy,P,Ce(E.y01,E.x01),Ce($.y01,$.x01),!g):(u.arc(E.cx,E.cy,P,Ce(E.y01,E.x01),Ce(E.y11,E.x11),!g),u.arc(0,0,h,Ce(E.cy+E.y11,E.cx+E.x11),Ce($.cy+$.y11,$.cx+$.x11),g),u.arc($.cx,$.cy,P,Ce($.y11,$.x11),Ce($.y01,$.x01),!g))):u.arc(0,0,h,m,w,g)}if(u.closePath(),l)return u=null,l+""||null}return c.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,f=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Ft/2;return[bt(f)*l,Fe(f)*l]},c.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:Q(+l),c):e},c.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:Q(+l),c):t},c.cornerRadius=function(l){return arguments.length?(r=typeof l=="function"?l:Q(+l),c):r},c.padRadius=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:Q(+l),c):n},c.startAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Q(+l),c):i},c.endAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Q(+l),c):a},c.padAngle=function(l){return arguments.length?(o=typeof l=="function"?l:Q(+l),c):o},c.context=function(l){return arguments.length?(u=l??null,c):u},c}function Va(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function w0(e){this._context=e}w0.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 Ya(e){return new w0(e)}function O0(e){return e[0]}function A0(e){return e[1]}function S0(e,t){var r=Q(!0),n=null,i=Ya,a=null,o=Xa(u);e=typeof e=="function"?e:e===void 0?O0:Q(e),t=typeof t=="function"?t:t===void 0?A0:Q(t);function u(s){var c,l=(s=Va(s)).length,f,h=!1,p;for(n==null&&(a=i(p=o())),c=0;c<=l;++c)!(c<l&&r(f=s[c],c,s))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(f,c,s),+t(f,c,s));if(p)return a=null,p+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:Q(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:Q(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:Q(!!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 ji(e,t,r){var n=null,i=Q(!0),a=null,o=Ya,u=null,s=Xa(c);e=typeof e=="function"?e:e===void 0?O0:Q(+e),t=typeof t=="function"?t:Q(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?A0:Q(+r);function c(f){var h,p,y,d=(f=Va(f)).length,v,g=!1,b,x=new Array(d),w=new Array(d);for(a==null&&(u=o(b=s())),h=0;h<=d;++h){if(!(h<d&&i(v=f[h],h,f))===g)if(g=!g)p=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=h-1;y>=p;--y)u.point(x[y],w[y]);u.lineEnd(),u.areaEnd()}g&&(x[h]=+e(v,h,f),w[h]=+t(v,h,f),u.point(n?+n(v,h,f):x[h],r?+r(v,h,f):w[h]))}if(b)return u=null,b+""||null}function l(){return S0().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Q(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Q(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Q(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Q(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Q(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Q(+f),c):r},c.lineX0=c.lineY0=function(){return l().x(e).y(t)},c.lineY1=function(){return l().x(e).y(r)},c.lineX1=function(){return l().x(n).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Q(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),c):a},c}function vO(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function yO(e){return e}function Uq(){var e=yO,t=vO,r=null,n=Q(0),i=Q(Lt),a=Q(0);function o(u){var s,c=(u=Va(u)).length,l,f,h=0,p=new Array(c),y=new Array(c),d=+n.apply(this,arguments),v=Math.min(Lt,Math.max(-Lt,i.apply(this,arguments)-d)),g,b=Math.min(Math.abs(v)/c,a.apply(this,arguments)),x=b*(v<0?-1:1),w;for(s=0;s<c;++s)(w=y[p[s]=s]=+e(u[s],s,u))>0&&(h+=w);for(t!=null?p.sort(function(m,_){return t(y[m],y[_])}):r!=null&&p.sort(function(m,_){return r(u[m],u[_])}),s=0,f=h?(v-c*x)/h:0;s<c;++s,d=g)l=p[s],w=y[l],g=d+(w>0?w*f:0)+x,y[l]={data:u[l],index:s,value:w,startAngle:d,endAngle:g,padAngle:b};return y}return o.value=function(u){return arguments.length?(e=typeof u=="function"?u:Q(+u),o):e},o.sortValues=function(u){return arguments.length?(t=u,r=null,o):t},o.sort=function(u){return arguments.length?(r=u,t=null,o):r},o.startAngle=function(u){return arguments.length?(n=typeof u=="function"?u:Q(+u),o):n},o.endAngle=function(u){return arguments.length?(i=typeof u=="function"?u:Q(+u),o):i},o.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:Q(+u),o):a},o}class P0{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 mO(e){return new P0(e,!0)}function gO(e){return new P0(e,!1)}const gh={draw(e,t){const r=$e(t/Ft);e.moveTo(r,0),e.arc(0,0,r,0,Lt)}},bO={draw(e,t){const r=$e(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()}},T0=$e(1/3),_O=T0*2,xO={draw(e,t){const r=$e(t/_O),n=r*T0;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},wO={draw(e,t){const r=$e(t),n=-r/2;e.rect(n,n,r,r)}},OO=.8908130915292852,E0=Fe(Ft/10)/Fe(7*Ft/10),AO=Fe(Lt/10)*E0,SO=-bt(Lt/10)*E0,PO={draw(e,t){const r=$e(t*OO),n=AO*r,i=SO*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Lt*a/5,u=bt(o),s=Fe(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},Ku=$e(3),TO={draw(e,t){const r=-$e(t/(Ku*3));e.moveTo(0,r*2),e.lineTo(-Ku*r,-r),e.lineTo(Ku*r,-r),e.closePath()}},Ye=-.5,Ze=$e(3)/2,Gl=1/$e(12),EO=(Gl/2+1)*3,jO={draw(e,t){const r=$e(t/EO),n=r/2,i=r*Gl,a=n,o=r*Gl+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Ye*n-Ze*i,Ze*n+Ye*i),e.lineTo(Ye*a-Ze*o,Ze*a+Ye*o),e.lineTo(Ye*u-Ze*s,Ze*u+Ye*s),e.lineTo(Ye*n+Ze*i,Ye*i-Ze*n),e.lineTo(Ye*a+Ze*o,Ye*o-Ze*a),e.lineTo(Ye*u+Ze*s,Ye*s-Ze*u),e.closePath()}};function MO(e,t){let r=null,n=Xa(i);e=typeof e=="function"?e:Q(e||gh),t=typeof t=="function"?t:Q(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:Q(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Q(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Wt(){}function Gi(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 Za(e){this._context=e}Za.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:Gi(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:Gi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $O(e){return new Za(e)}function j0(e){this._context=e}j0.prototype={areaStart:Wt,areaEnd:Wt,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:Gi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CO(e){return new j0(e)}function M0(e){this._context=e}M0.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:Gi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function IO(e){return new M0(e)}function $0(e,t){this._basis=new Za(e),this._beta=t}$0.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var n=e[0],i=t[0],a=e[r]-n,o=t[r]-i,u=-1,s;++u<=r;)s=u/r,this._basis.point(this._beta*e[u]+(1-this._beta)*(n+s*a),this._beta*t[u]+(1-this._beta)*(i+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Hq=function e(t){function r(n){return t===1?new Za(n):new $0(n,t)}return r.beta=function(n){return e(+n)},r}(.85);function Xi(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function bh(e,t){this._context=e,this._k=(1-t)/6}bh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Xi(this,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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Xi(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Kq=function e(t){function r(n){return new bh(n,t)}return r.tension=function(n){return e(+n)},r}(0);function _h(e,t){this._context=e,this._k=(1-t)/6}_h.prototype={areaStart:Wt,areaEnd:Wt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Xi(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Gq=function e(t){function r(n){return new _h(n,t)}return r.tension=function(n){return e(+n)},r}(0);function xh(e,t){this._context=e,this._k=(1-t)/6}xh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Xi(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Xq=function e(t){function r(n){return new xh(n,t)}return r.tension=function(n){return e(+n)},r}(0);function wh(e,t,r){var n=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Ie){var u=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*u-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,i=(i*u-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>Ie){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/l,o=(o*c+e._y1*e._l23_2a-r*e._l12_2a)/l}e._context.bezierCurveTo(n,i,a,o,e._x2,e._y2)}function C0(e,t){this._context=e,this._alpha=t}C0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}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;default:wh(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Vq=function e(t){function r(n){return t?new C0(n,t):new bh(n,0)}return r.alpha=function(n){return e(+n)},r}(.5);function I0(e,t){this._context=e,this._alpha=t}I0.prototype={areaStart:Wt,areaEnd:Wt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:wh(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Yq=function e(t){function r(n){return t?new I0(n,t):new _h(n,0)}return r.alpha=function(n){return e(+n)},r}(.5);function k0(e,t){this._context=e,this._alpha=t}k0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=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){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wh(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Zq=function e(t){function r(n){return t?new k0(n,t):new xh(n,0)}return r.alpha=function(n){return e(+n)},r}(.5);function R0(e){this._context=e}R0.prototype={areaStart:Wt,areaEnd:Wt,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 kO(e){return new R0(e)}function Rd(e){return e<0?-1:1}function Nd(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(Rd(a)+Rd(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Dd(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Gu(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 Vi(e){this._context=e}Vi.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:Gu(this,this._t0,Dd(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,Gu(this,Dd(this,r=Nd(this,e,t)),r);break;default:Gu(this,this._t0,r=Nd(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function N0(e){this._context=new D0(e)}(N0.prototype=Object.create(Vi.prototype)).point=function(e,t){Vi.prototype.point.call(this,t,e)};function D0(e){this._context=e}D0.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 RO(e){return new Vi(e)}function NO(e){return new N0(e)}function q0(e){this._context=e}q0.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=qd(e),i=qd(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 qd(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 DO(e){return new q0(e)}function Ja(e,t){this._context=e,this._t=t}Ja.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 qO(e){return new Ja(e,.5)}function LO(e){return new Ja(e,0)}function BO(e){return new Ja(e,1)}function Rr(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 Xl(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function FO(e,t){return e[t]}function WO(e){const t=[];return t.key=e,t}function zO(){var e=Q([]),t=Xl,r=Rr,n=FO;function i(a){var o=Array.from(e.apply(this,arguments),WO),u,s=o.length,c=-1,l;for(const f of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(f,o[u].key,c,a)]).data=f;for(u=0,l=Va(t(o));u<s;++u)o[l[u]].index=u;return r(o,l),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Q(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Q(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Xl:typeof a=="function"?a:Q(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Rr,i):r},i}function UO(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}Rr(e,t)}}function HO(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}Rr(e,t)}}function KO(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 l=e[t[u]],f=l[n][1]||0,h=l[n-1][1]||0,p=(f-h)/2,y=0;y<u;++y){var d=e[t[y]],v=d[n][1]||0,g=d[n-1][1]||0;p+=v-g}s+=f,c+=p*f}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,Rr(e,t)}}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)}var GO=["type","size","sizeType"];function Vl(){return Vl=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},Vl.apply(this,arguments)}function Ld(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 Bd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ld(Object(r),!0).forEach(function(n){XO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ld(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XO(e,t,r){return t=VO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VO(e){var t=YO(e,"string");return Nn(t)=="symbol"?t:t+""}function YO(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(t==="string"?String:Number)(e)}function ZO(e,t){if(e==null)return{};var r=JO(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 JO(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 L0={symbolCircle:gh,symbolCross:bO,symbolDiamond:xO,symbolSquare:wO,symbolStar:PO,symbolTriangle:TO,symbolWye:jO},QO=Math.PI/180,eA=function(t){var r="symbol".concat(Ga(t));return L0[r]||gh},tA=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*QO;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}},rA=function(t,r){L0["symbol".concat(Ga(t))]=r},Oh=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=ZO(t,GO),c=Bd(Bd({},s),{},{type:n,size:a,sizeType:u}),l=function(){var v=eA(n),g=MO().type(v).size(tA(a,u,n));return g()},f=c.className,h=c.cx,p=c.cy,y=G(c,!0);return h===+h&&p===+p&&a===+a?S.createElement("path",Vl({},y,{className:ee("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:l()})):null};Oh.registerSymbol=rA;function Nr(e){"@babel/helpers - typeof";return Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nr(e)}function Yl(){return Yl=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},Yl.apply(this,arguments)}function Fd(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 nA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fd(Object(r),!0).forEach(function(n){Dn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aA(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,F0(n.key),n)}}function oA(e,t,r){return t&&aA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uA(e,t,r){return t=Yi(t),sA(e,B0()?Reflect.construct(t,r||[],Yi(e).constructor):t.apply(e,r))}function sA(e,t){if(t&&(Nr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cA(e)}function cA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B0=function(){return!!e})()}function Yi(e){return Yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yi(e)}function lA(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&&Zl(e,t)}function Zl(e,t){return Zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zl(e,t)}function Dn(e,t,r){return t=F0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F0(e){var t=fA(e,"string");return Nr(t)=="symbol"?t:t+""}function fA(e,t){if(Nr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Je=32,Ah=function(e){function t(){return iA(this,t),uA(this,t,arguments)}return lA(t,e),oA(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Je/2,o=Je/6,u=Je/3,s=n.inactive?i:n.color;if(n.type==="plainline")return S.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Je,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return S.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,`
2
2
  A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
3
3
  H`).concat(Je,"M").concat(2*u,",").concat(a,`
4
4
  A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return S.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Je/8,"h").concat(Je,"v").concat(Je*3/4,"h").concat(-Je,"z"),className:"recharts-legend-icon"});if(S.isValidElement(n.legendIcon)){var c=nA({},n);return delete c.legendIcon,S.cloneElement(n.legendIcon,c)}return S.createElement(Oh,{fill:s,cx:a,cy:a,size:Je,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,l={x:0,y:0,width:Je,height:Je},f={display:u==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var d=p.formatter||s,v=ee(Dn(Dn({"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;st(!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 b=p.inactive?c:p.color;return S.createElement("li",Yl({className:v,style:f,key:"legend-item-".concat(y)},cr(n.props,p,y)),S.createElement(zl,{width:o,height:o,viewBox:l,style:h},n.renderIcon(p)),S.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},d?d(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 S.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])}(D.PureComponent);Dn(Ah,"displayName","Legend");Dn(Ah,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Xu,Wd;function hA(){if(Wd)return Xu;Wd=1;var e=Ua();function t(){this.__data__=new e,this.size=0}return Xu=t,Xu}var Vu,zd;function pA(){if(zd)return Vu;zd=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Vu=e,Vu}var Yu,Ud;function dA(){if(Ud)return Yu;Ud=1;function e(t){return this.__data__.get(t)}return Yu=e,Yu}var Zu,Hd;function vA(){if(Hd)return Zu;Hd=1;function e(t){return this.__data__.has(t)}return Zu=e,Zu}var Ju,Kd;function yA(){if(Kd)return Ju;Kd=1;var e=Ua(),t=hh(),r=ph(),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 Ju=i,Ju}var Qu,Gd;function W0(){if(Gd)return Qu;Gd=1;var e=Ua(),t=hA(),r=pA(),n=dA(),i=vA(),a=yA();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,Qu=o,Qu}var es,Xd;function mA(){if(Xd)return es;Xd=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return es=t,es}var ts,Vd;function gA(){if(Vd)return ts;Vd=1;function e(t){return this.__data__.has(t)}return ts=e,ts}var rs,Yd;function z0(){if(Yd)return rs;Yd=1;var e=ph(),t=mA(),r=gA();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,rs=n,rs}var ns,Zd;function U0(){if(Zd)return ns;Zd=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 ns=e,ns}var is,Jd;function H0(){if(Jd)return is;Jd=1;function e(t,r){return t.has(r)}return is=e,is}var as,Qd;function K0(){if(Qd)return as;Qd=1;var e=z0(),t=U0(),r=H0(),n=1,i=2;function a(o,u,s,c,l,f){var h=s&n,p=o.length,y=u.length;if(p!=y&&!(h&&y>p))return!1;var d=f.get(o),v=f.get(u);if(d&&v)return d==u&&v==o;var g=-1,b=!0,x=s&i?new e:void 0;for(f.set(o,u),f.set(u,o);++g<p;){var w=o[g],m=u[g];if(c)var _=h?c(m,w,g,u,o,f):c(w,m,g,o,u,f);if(_!==void 0){if(_)continue;b=!1;break}if(x){if(!t(u,function(O,A){if(!r(x,A)&&(w===O||l(w,O,s,c,f)))return x.push(A)})){b=!1;break}}else if(!(w===m||l(w,m,s,c,f))){b=!1;break}}return f.delete(o),f.delete(u),b}return as=a,as}var os,ev;function bA(){if(ev)return os;ev=1;var e=yt(),t=e.Uint8Array;return os=t,os}var us,tv;function _A(){if(tv)return us;tv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return us=e,us}var ss,rv;function Sh(){if(rv)return ss;rv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return ss=e,ss}var cs,nv;function xA(){if(nv)return cs;nv=1;var e=mi(),t=bA(),r=fh(),n=K0(),i=_A(),a=Sh(),o=1,u=2,s="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Map]",h="[object Number]",p="[object RegExp]",y="[object Set]",d="[object String]",v="[object Symbol]",g="[object ArrayBuffer]",b="[object DataView]",x=e?e.prototype:void 0,w=x?x.valueOf:void 0;function m(_,O,A,T,M,P,j){switch(A){case b:if(_.byteLength!=O.byteLength||_.byteOffset!=O.byteOffset)return!1;_=_.buffer,O=O.buffer;case g:return!(_.byteLength!=O.byteLength||!P(new t(_),new t(O)));case s:case c:case h:return r(+_,+O);case l:return _.name==O.name&&_.message==O.message;case p:case d:return _==O+"";case f:var E=i;case y:var $=T&o;if(E||(E=a),_.size!=O.size&&!$)return!1;var C=j.get(_);if(C)return C==O;T|=u,j.set(_,O);var k=n(E(_),E(O),T,M,P,j);return j.delete(_),k;case v:if(w)return w.call(_)==w.call(O)}return!1}return cs=m,cs}var ls,iv;function G0(){if(iv)return ls;iv=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 ls=e,ls}var fs,av;function wA(){if(av)return fs;av=1;var e=G0(),t=We();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return fs=r,fs}var hs,ov;function OA(){if(ov)return hs;ov=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 hs=e,hs}var ps,uv;function AA(){if(uv)return ps;uv=1;function e(){return[]}return ps=e,ps}var ds,sv;function SA(){if(sv)return ds;sv=1;var e=OA(),t=AA(),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 ds=a,ds}var vs,cv;function PA(){if(cv)return vs;cv=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return vs=e,vs}var ys,lv;function TA(){if(lv)return ys;lv=1;var e=Ct(),t=It(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return ys=n,ys}var ms,fv;function Ph(){if(fv)return ms;fv=1;var e=TA(),t=It(),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 ms=a,ms}var Sn={exports:{}},gs,hv;function EA(){if(hv)return gs;hv=1;function e(){return!1}return gs=e,gs}Sn.exports;var pv;function X0(){return pv||(pv=1,function(e,t){var r=yt(),n=EA(),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}(Sn,Sn.exports)),Sn.exports}var bs,dv;function Th(){if(dv)return bs;dv=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 bs=r,bs}var _s,vv;function Eh(){if(vv)return _s;vv=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return _s=t,_s}var xs,yv;function jA(){if(yv)return xs;yv=1;var e=Ct(),t=Eh(),r=It(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",l="[object Number]",f="[object Object]",h="[object RegExp]",p="[object Set]",y="[object String]",d="[object WeakMap]",v="[object ArrayBuffer]",g="[object DataView]",b="[object Float32Array]",x="[object Float64Array]",w="[object Int8Array]",m="[object Int16Array]",_="[object Int32Array]",O="[object Uint8Array]",A="[object Uint8ClampedArray]",T="[object Uint16Array]",M="[object Uint32Array]",P={};P[b]=P[x]=P[w]=P[m]=P[_]=P[O]=P[A]=P[T]=P[M]=!0,P[n]=P[i]=P[v]=P[a]=P[g]=P[o]=P[u]=P[s]=P[c]=P[l]=P[f]=P[h]=P[p]=P[y]=P[d]=!1;function j(E){return r(E)&&t(E.length)&&!!P[e(E)]}return xs=j,xs}var ws,mv;function V0(){if(mv)return ws;mv=1;function e(t){return function(r){return t(r)}}return ws=e,ws}var Pn={exports:{}};Pn.exports;var gv;function MA(){return gv||(gv=1,function(e,t){var r=p0(),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}(Pn,Pn.exports)),Pn.exports}var Os,bv;function Y0(){if(bv)return Os;bv=1;var e=jA(),t=V0(),r=MA(),n=r&&r.isTypedArray,i=n?t(n):e;return Os=i,Os}var As,_v;function $A(){if(_v)return As;_v=1;var e=PA(),t=Ph(),r=We(),n=X0(),i=Th(),a=Y0(),o=Object.prototype,u=o.hasOwnProperty;function s(c,l){var f=r(c),h=!f&&t(c),p=!f&&!h&&n(c),y=!f&&!h&&!p&&a(c),d=f||h||p||y,v=d?e(c.length,String):[],g=v.length;for(var b in c)(l||u.call(c,b))&&!(d&&(b=="length"||p&&(b=="offset"||b=="parent")||y&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,g)))&&v.push(b);return v}return As=s,As}var Ss,xv;function CA(){if(xv)return Ss;xv=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Ss=t,Ss}var Ps,wv;function Z0(){if(wv)return Ps;wv=1;function e(t,r){return function(n){return t(r(n))}}return Ps=e,Ps}var Ts,Ov;function IA(){if(Ov)return Ts;Ov=1;var e=Z0(),t=e(Object.keys,Object);return Ts=t,Ts}var Es,Av;function kA(){if(Av)return Es;Av=1;var e=CA(),t=IA(),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 Es=i,Es}var js,Sv;function bi(){if(Sv)return js;Sv=1;var e=lh(),t=Eh();function r(n){return n!=null&&t(n.length)&&!e(n)}return js=r,js}var Ms,Pv;function Qa(){if(Pv)return Ms;Pv=1;var e=$A(),t=kA(),r=bi();function n(i){return r(i)?e(i):t(i)}return Ms=n,Ms}var $s,Tv;function RA(){if(Tv)return $s;Tv=1;var e=wA(),t=SA(),r=Qa();function n(i){return e(i,r,t)}return $s=n,$s}var Cs,Ev;function NA(){if(Ev)return Cs;Ev=1;var e=RA(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,c,l){var f=u&t,h=e(a),p=h.length,y=e(o),d=y.length;if(p!=d&&!f)return!1;for(var v=p;v--;){var g=h[v];if(!(f?g in o:n.call(o,g)))return!1}var b=l.get(a),x=l.get(o);if(b&&x)return b==o&&x==a;var w=!0;l.set(a,o),l.set(o,a);for(var m=f;++v<p;){g=h[v];var _=a[g],O=o[g];if(s)var A=f?s(O,_,g,o,a,l):s(_,O,g,a,o,l);if(!(A===void 0?_===O||c(_,O,u,s,l):A)){w=!1;break}m||(m=g=="constructor")}if(w&&!m){var T=a.constructor,M=o.constructor;T!=M&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof M=="function"&&M instanceof M)&&(w=!1)}return l.delete(a),l.delete(o),w}return Cs=i,Cs}var Is,jv;function DA(){if(jv)return Is;jv=1;var e=dr(),t=yt(),r=e(t,"DataView");return Is=r,Is}var ks,Mv;function qA(){if(Mv)return ks;Mv=1;var e=dr(),t=yt(),r=e(t,"Promise");return ks=r,ks}var Rs,$v;function J0(){if($v)return Rs;$v=1;var e=dr(),t=yt(),r=e(t,"Set");return Rs=r,Rs}var Ns,Cv;function LA(){if(Cv)return Ns;Cv=1;var e=dr(),t=yt(),r=e(t,"WeakMap");return Ns=r,Ns}var Ds,Iv;function BA(){if(Iv)return Ds;Iv=1;var e=DA(),t=hh(),r=qA(),n=J0(),i=LA(),a=Ct(),o=d0(),u="[object Map]",s="[object Object]",c="[object Promise]",l="[object Set]",f="[object WeakMap]",h="[object DataView]",p=o(e),y=o(t),d=o(r),v=o(n),g=o(i),b=a;return(e&&b(new e(new ArrayBuffer(1)))!=h||t&&b(new t)!=u||r&&b(r.resolve())!=c||n&&b(new n)!=l||i&&b(new i)!=f)&&(b=function(x){var w=a(x),m=w==s?x.constructor:void 0,_=m?o(m):"";if(_)switch(_){case p:return h;case y:return u;case d:return c;case v:return l;case g:return f}return w}),Ds=b,Ds}var qs,kv;function FA(){if(kv)return qs;kv=1;var e=W0(),t=K0(),r=xA(),n=NA(),i=BA(),a=We(),o=X0(),u=Y0(),s=1,c="[object Arguments]",l="[object Array]",f="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(d,v,g,b,x,w){var m=a(d),_=a(v),O=m?l:i(d),A=_?l:i(v);O=O==c?f:O,A=A==c?f:A;var T=O==f,M=A==f,P=O==A;if(P&&o(d)){if(!o(v))return!1;m=!0,T=!1}if(P&&!T)return w||(w=new e),m||u(d)?t(d,v,g,b,x,w):r(d,v,O,g,b,x,w);if(!(g&s)){var j=T&&p.call(d,"__wrapped__"),E=M&&p.call(v,"__wrapped__");if(j||E){var $=j?d.value():d,C=E?v.value():v;return w||(w=new e),x($,C,g,b,w)}}return P?(w||(w=new e),n(d,v,g,b,x,w)):!1}return qs=y,qs}var Ls,Rv;function jh(){if(Rv)return Ls;Rv=1;var e=FA(),t=It();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 Ls=r,Ls}var Bs,Nv;function WA(){if(Nv)return Bs;Nv=1;var e=W0(),t=jh(),r=1,n=2;function i(a,o,u,s){var c=u.length,l=c,f=!s;if(a==null)return!l;for(a=Object(a);c--;){var h=u[c];if(f&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++c<l;){h=u[c];var p=h[0],y=a[p],d=h[1];if(f&&h[2]){if(y===void 0&&!(p in a))return!1}else{var v=new e;if(s)var g=s(y,d,p,a,o,v);if(!(g===void 0?t(d,y,r|n,s,v):g))return!1}}return!0}return Bs=i,Bs}var Fs,Dv;function Q0(){if(Dv)return Fs;Dv=1;var e=zt();function t(r){return r===r&&!e(r)}return Fs=t,Fs}var Ws,qv;function zA(){if(qv)return Ws;qv=1;var e=Q0(),t=Qa();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 Ws=r,Ws}var zs,Lv;function e_(){if(Lv)return zs;Lv=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return zs=e,zs}var Us,Bv;function UA(){if(Bv)return Us;Bv=1;var e=WA(),t=zA(),r=e_();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 Us=n,Us}var Hs,Fv;function HA(){if(Fv)return Hs;Fv=1;function e(t,r){return t!=null&&r in Object(t)}return Hs=e,Hs}var Ks,Wv;function KA(){if(Wv)return Ks;Wv=1;var e=m0(),t=Ph(),r=We(),n=Th(),i=Eh(),a=Ka();function o(u,s,c){s=e(s,u);for(var l=-1,f=s.length,h=!1;++l<f;){var p=a(s[l]);if(!(h=u!=null&&c(u,p)))break;u=u[p]}return h||++l!=f?h:(f=u==null?0:u.length,!!f&&i(f)&&n(p,f)&&(r(u)||t(u)))}return Ks=o,Ks}var Gs,zv;function GA(){if(zv)return Gs;zv=1;var e=HA(),t=KA();function r(n,i){return n!=null&&t(n,i,e)}return Gs=r,Gs}var Xs,Uv;function XA(){if(Uv)return Xs;Uv=1;var e=jh(),t=g0(),r=GA(),n=ch(),i=Q0(),a=e_(),o=Ka(),u=1,s=2;function c(l,f){return n(l)&&i(f)?a(o(l),f):function(h){var p=t(h,l);return p===void 0&&p===f?r(h,l):e(f,p,u|s)}}return Xs=c,Xs}var Vs,Hv;function ln(){if(Hv)return Vs;Hv=1;function e(t){return t}return Vs=e,Vs}var Ys,Kv;function VA(){if(Kv)return Ys;Kv=1;function e(t){return function(r){return r==null?void 0:r[t]}}return Ys=e,Ys}var Zs,Gv;function YA(){if(Gv)return Zs;Gv=1;var e=vh();function t(r){return function(n){return e(n,r)}}return Zs=t,Zs}var Js,Xv;function ZA(){if(Xv)return Js;Xv=1;var e=VA(),t=YA(),r=ch(),n=Ka();function i(a){return r(a)?e(n(a)):t(a)}return Js=i,Js}var Qs,Vv;function mt(){if(Vv)return Qs;Vv=1;var e=UA(),t=XA(),r=ln(),n=We(),i=ZA();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 Qs=a,Qs}var ec,Yv;function t_(){if(Yv)return ec;Yv=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 ec=e,ec}var tc,Zv;function JA(){if(Zv)return tc;Zv=1;function e(t){return t!==t}return tc=e,tc}var rc,Jv;function QA(){if(Jv)return rc;Jv=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 rc=e,rc}var nc,Qv;function eS(){if(Qv)return nc;Qv=1;var e=t_(),t=JA(),r=QA();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return nc=n,nc}var ic,ey;function tS(){if(ey)return ic;ey=1;var e=eS();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return ic=t,ic}var ac,ty;function rS(){if(ty)return ac;ty=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 ac=e,ac}var oc,ry;function nS(){if(ry)return oc;ry=1;function e(){}return oc=e,oc}var uc,ny;function iS(){if(ny)return uc;ny=1;var e=J0(),t=nS(),r=Sh(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return uc=i,uc}var sc,iy;function aS(){if(iy)return sc;iy=1;var e=z0(),t=tS(),r=rS(),n=H0(),i=iS(),a=Sh(),o=200;function u(s,c,l){var f=-1,h=t,p=s.length,y=!0,d=[],v=d;if(l)y=!1,h=r;else if(p>=o){var g=c?null:i(s);if(g)return a(g);y=!1,h=n,v=new e}else v=c?[]:d;e:for(;++f<p;){var b=s[f],x=c?c(b):b;if(b=l||b!==0?b:0,y&&x===x){for(var w=v.length;w--;)if(v[w]===x)continue e;c&&v.push(x),d.push(b)}else h(v,x,l)||(v!==d&&v.push(x),d.push(b))}return d}return sc=u,sc}var cc,ay;function oS(){if(ay)return cc;ay=1;var e=mt(),t=aS();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return cc=r,cc}var uS=oS();const oy=se(uS);function r_(e,t,r){return t===!0?oy(e,r):V(t)?oy(e,t):e}function Dr(e){"@babel/helpers - typeof";return Dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dr(e)}var sS=["ref"];function uy(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 gt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uy(Object(r),!0).forEach(function(n){eo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sy(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,i_(n.key),n)}}function lS(e,t,r){return t&&sy(e.prototype,t),r&&sy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fS(e,t,r){return t=Zi(t),hS(e,n_()?Reflect.construct(t,r||[],Zi(e).constructor):t.apply(e,r))}function hS(e,t){if(t&&(Dr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pS(e)}function pS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(n_=function(){return!!e})()}function Zi(e){return Zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zi(e)}function dS(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&&Jl(e,t)}function Jl(e,t){return Jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jl(e,t)}function eo(e,t,r){return t=i_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i_(e){var t=vS(e,"string");return Dr(t)=="symbol"?t:t+""}function vS(e,t){if(Dr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function yS(e,t){if(e==null)return{};var r=mS(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 mS(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 gS(e){return e.value}function bS(e,t){if(S.isValidElement(e))return S.cloneElement(e,t);if(typeof e=="function")return S.createElement(e,t);t.ref;var r=yS(t,sS);return S.createElement(Ah,r)}var cy=1,$r=function(e){function t(){var r;cS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=fS(this,t,[].concat(i)),eo(r,"lastBoundingBox",{width:-1,height:-1}),r}return dS(t,e),lS(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)>cy||Math.abs(i.height-this.lastBoundingBox.height)>cy)&&(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?gt({},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,l=i.chartHeight,f,h;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();f={left:((c||0)-p.width)/2}}else f=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();h={top:((l||0)-y.height)/2}}else h=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return gt(gt({},f),h)}},{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,l=i.payload,f=gt(gt({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return S.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){n.wrapperNode=p}},bS(a,gt(gt({},this.props),{},{payload:r_(l,c,gS)})))}}],[{key:"getWithHeight",value:function(n,i){var a=gt(gt({},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);eo($r,"displayName","Legend");eo($r,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var lc,ly;function _S(){if(ly)return lc;ly=1;var e=mi(),t=Ph(),r=We(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return lc=i,lc}var fc,fy;function a_(){if(fy)return fc;fy=1;var e=G0(),t=_S();function r(n,i,a,o,u){var s=-1,c=n.length;for(a||(a=t),u||(u=[]);++s<c;){var l=n[s];i>0&&a(l)?i>1?r(l,i-1,a,o,u):e(u,l):o||(u[u.length]=l)}return u}return fc=r,fc}var hc,hy;function xS(){if(hy)return hc;hy=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 hc=e,hc}var pc,py;function wS(){if(py)return pc;py=1;var e=xS(),t=e();return pc=t,pc}var dc,dy;function o_(){if(dy)return dc;dy=1;var e=wS(),t=Qa();function r(n,i){return n&&e(n,i,t)}return dc=r,dc}var vc,vy;function OS(){if(vy)return vc;vy=1;var e=bi();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 vc=t,vc}var yc,yy;function Mh(){if(yy)return yc;yy=1;var e=o_(),t=OS(),r=t(e);return yc=r,yc}var mc,my;function u_(){if(my)return mc;my=1;var e=Mh(),t=bi();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 mc=r,mc}var gc,gy;function AS(){if(gy)return gc;gy=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return gc=e,gc}var bc,by;function SS(){if(by)return bc;by=1;var e=un();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,l=n===n,f=e(n);if(!c&&!f&&!u&&r>n||u&&s&&l&&!c&&!f||a&&s&&l||!i&&l||!o)return 1;if(!a&&!u&&!f&&r<n||f&&i&&o&&!a&&!u||c&&i&&o||!s&&o||!l)return-1}return 0}return bc=t,bc}var _c,_y;function PS(){if(_y)return _c;_y=1;var e=SS();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,s=o.length,c=i.length;++a<s;){var l=e(o[a],u[a]);if(l){if(a>=c)return l;var f=i[a];return l*(f=="desc"?-1:1)}}return r.index-n.index}return _c=t,_c}var xc,xy;function TS(){if(xy)return xc;xy=1;var e=dh(),t=vh(),r=mt(),n=u_(),i=AS(),a=V0(),o=PS(),u=ln(),s=We();function c(l,f,h){f.length?f=e(f,function(d){return s(d)?function(v){return t(v,d.length===1?d[0]:d)}:d}):f=[u];var p=-1;f=e(f,a(r));var y=n(l,function(d,v,g){var b=e(f,function(x){return x(d)});return{criteria:b,index:++p,value:d}});return i(y,function(d,v){return o(d,v,h)})}return xc=c,xc}var wc,wy;function ES(){if(wy)return wc;wy=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 wc=e,wc}var Oc,Oy;function jS(){if(Oy)return Oc;Oy=1;var e=ES(),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 l=Array(i+1);++u<i;)l[u]=o[u];return l[i]=a(c),e(n,this,l)}}return Oc=r,Oc}var Ac,Ay;function MS(){if(Ay)return Ac;Ay=1;function e(t){return function(){return t}}return Ac=e,Ac}var Sc,Sy;function s_(){if(Sy)return Sc;Sy=1;var e=dr(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return Sc=t,Sc}var Pc,Py;function $S(){if(Py)return Pc;Py=1;var e=MS(),t=s_(),r=ln(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Pc=n,Pc}var Tc,Ty;function CS(){if(Ty)return Tc;Ty=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 Tc=n,Tc}var Ec,Ey;function IS(){if(Ey)return Ec;Ey=1;var e=$S(),t=CS(),r=t(e);return Ec=r,Ec}var jc,jy;function kS(){if(jy)return jc;jy=1;var e=ln(),t=jS(),r=IS();function n(i,a){return r(t(i,a,e),i+"")}return jc=n,jc}var Mc,My;function to(){if(My)return Mc;My=1;var e=fh(),t=bi(),r=Th(),n=zt();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 Mc=i,Mc}var $c,$y;function RS(){if($y)return $c;$y=1;var e=a_(),t=TS(),r=kS(),n=to(),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 $c=i,$c}var NS=RS();const $h=se(NS);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)}function Ql(){return Ql=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},Ql.apply(this,arguments)}function DS(e,t){return FS(e)||BS(e,t)||LS(e,t)||qS()}function qS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -62,4 +62,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
62
62
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _D(e,t){if(e){if(typeof e=="string")return Jf(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 Jf(e,t)}}function xD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wD(e){if(Array.isArray(e))return Jf(e)}function Jf(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 OD(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,Mw(n.key),n)}}function AD(e,t,r){return t&&r0(e.prototype,t),r&&r0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function SD(e,t,r){return t=qa(t),PD(e,jw()?Reflect.construct(t,r||[],qa(e).constructor):t.apply(e,r))}function PD(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 TD(e)}function TD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jw=function(){return!!e})()}function qa(e){return qa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qa(e)}function ED(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 ot(e,t,r){return t=Mw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mw(e){var t=jD(e,"string");return tn(t)=="symbol"?t:t+""}function jD(e,t){if(tn(e)!="object"||!e)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 String(e)}var Eo=function(e){function t(){var r;OD(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=SD(this,t,[].concat(i)),ot(r,"state",{isAnimationFinished:!0,totalLength:0}),ot(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),ot(r,"getStrokeDasharray",function(o,u,s){var c=s.reduce(function(g,b){return g+b});if(!c)return r.generateSimpleStrokeDasharray(u,o);for(var l=Math.floor(o/c),f=o%c,h=u-o,p=[],y=0,d=0;y<s.length;d+=s[y],++y)if(d+s[y]>f){p=[].concat(Ar(s.slice(0,y)),[f-d]);break}var v=p.length%2===0?[0,h]:[h];return[].concat(Ar(t.repeat(s,l)),Ar(p),v).map(function(g){return"".concat(g,"px")}).join(", ")}),ot(r,"id",cn("recharts-line-")),ot(r,"pathRef",function(o){r.mainCurve=o}),ot(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),ot(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return ED(t,e),AD(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,u=a.xAxis,s=a.yAxis,c=a.layout,l=a.children,f=Ve(l,Si);if(!f)return null;var h=function(d,v){return{x:d.x,y:d.y,value:d.value,errorVal:we(d.payload,v)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(re,p,f.map(function(y){return S.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,dataPointFormatter:h})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var u=this.props,s=u.dot,c=u.points,l=u.dataKey,f=G(this.props,!1),h=G(s,!0),p=c.map(function(d,v){var g=ze(ze(ze({key:"dot-".concat(v),r:3},f),h),{},{index:v,cx:d.x,cy:d.y,value:d.value,dataKey:l,payload:d.payload,points:c});return t.renderDotItem(s,g)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return S.createElement(re,Rn({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,s=u.type,c=u.layout,l=u.connectNulls;u.ref;var f=e0(u,yD),h=ze(ze(ze({},G(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:s,layout:c,connectNulls:l});return S.createElement(ma,Rn({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.strokeDasharray,c=o.isAnimationActive,l=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=o.animateNewValues,d=o.width,v=o.height,g=this.state,b=g.prevPoints,x=g.totalLength;return S.createElement(vt,{begin:l,duration:f,isActive:c,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(w){var m=w.t;if(b){var _=b.length/u.length,O=u.map(function(j,E){var $=Math.floor(E*_);if(b[$]){var C=b[$],k=Ke(C.x,j.x),R=Ke(C.y,j.y);return ze(ze({},j),{},{x:k(m),y:R(m)})}if(y){var q=Ke(d*2,j.x),B=Ke(v/2,j.y);return ze(ze({},j),{},{x:q(m),y:B(m)})}return ze(ze({},j),{},{x:j.x,y:j.y})});return a.renderCurveStatically(O,n,i)}var A=Ke(0,x),T=A(m),M;if(s){var P="".concat(s).split(/[,\s]+/gim).map(function(j){return parseFloat(j)});M=a.getStrokeDasharray(T,x,P)}else M=a.generateSimpleStrokeDasharray(x,T);return a.renderCurveStatically(u,n,i,{strokeDasharray:M})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,s=this.state,c=s.prevPoints,l=s.totalLength;return u&&o&&o.length&&(!c&&l>0||!Ai(c,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,c=i.xAxis,l=i.yAxis,f=i.top,h=i.left,p=i.width,y=i.height,d=i.isAnimationActive,v=i.id;if(a||!u||!u.length)return null;var g=this.state.isAnimationFinished,b=u.length===1,x=ee("recharts-line",s),w=c&&c.allowDataOverflow,m=l&&l.allowDataOverflow,_=w||m,O=Z(v)?this.id:v,A=(n=G(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,M=T===void 0?3:T,P=A.strokeWidth,j=P===void 0?2:P,E=B1(o)?o:{},$=E.clipDot,C=$===void 0?!0:$,k=M*2+j;return S.createElement(re,{className:x},w||m?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(O)},S.createElement("rect",{x:w?h:h-p/2,y:m?f:f-y/2,width:w?p:p*2,height:m?y:y*2})),!C&&S.createElement("clipPath",{id:"clipPath-dots-".concat(O)},S.createElement("rect",{x:h-k/2,y:f-k/2,width:p+k,height:y+k}))):null,!b&&this.renderCurve(_,O),this.renderErrorBar(_,O),(b||o)&&this.renderDots(_,C,O),(!d||g)&&Et.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(Ar(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(Ar(o),Ar(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(S.isValidElement(n))a=S.cloneElement(n,i);else if(V(n))a=n(i);else{var o=i.key,u=e0(i,mD),s=ee("recharts-line-dot",typeof n!="boolean"?n.className:"");a=S.createElement(yo,Rn({key:o},u,{className:s}))}return a}}])}(D.PureComponent);ot(Eo,"displayName","Line");ot(Eo,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!vr.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});ot(Eo,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,u=e.bandSize,s=e.displayedData,c=e.offset,l=t.layout,f=s.map(function(h,p){var y=we(h,o);return l==="horizontal"?{x:ug({axis:r,ticks:i,bandSize:u,entry:h,index:p}),y:Z(y)?null:n.scale(y),value:y,payload:h}:{x:Z(y)?null:r.scale(y),y:ug({axis:n,ticks:a,bandSize:u,entry:h,index:p}),value:y,payload:h}});return ze({points:f,layout:l},c)});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 MD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $D(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,Iw(n.key),n)}}function CD(e,t,r){return t&&$D(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ID(e,t,r){return t=La(t),kD(e,$w()?Reflect.construct(t,r||[],La(e).constructor):t.apply(e,r))}function kD(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 $w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($w=function(){return!!e})()}function La(e){return La=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},La(e)}function ND(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&&eh(e,t)}function eh(e,t){return eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},eh(e,t)}function Cw(e,t,r){return t=Iw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Iw(e){var t=DD(e,"string");return rn(t)=="symbol"?t:t+""}function DD(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)}function th(){return th=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},th.apply(this,arguments)}function qD(e){var t=e.xAxisId,r=up(),n=sp(),i=mw(t);return i==null?null:D.createElement(vn,th({},i,{className:ee("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return St(o,!0)}}))}var jo=function(e){function t(){return MD(this,t),ID(this,t,arguments)}return ND(t,e),CD(t,[{key:"render",value:function(){return D.createElement(qD,this.props)}}])}(D.Component);Cw(jo,"displayName","XAxis");Cw(jo,"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 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 LD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BD(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,Nw(n.key),n)}}function FD(e,t,r){return t&&BD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WD(e,t,r){return t=Ba(t),zD(e,kw()?Reflect.construct(t,r||[],Ba(e).constructor):t.apply(e,r))}function zD(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 UD(e)}function UD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kw=function(){return!!e})()}function Ba(e){return Ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ba(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&&rh(e,t)}function rh(e,t){return rh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rh(e,t)}function Rw(e,t,r){return t=Nw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nw(e){var t=KD(e,"string");return nn(t)=="symbol"?t:t+""}function KD(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)}function nh(){return nh=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},nh.apply(this,arguments)}var GD=function(t){var r=t.yAxisId,n=up(),i=sp(),a=gw(r);return a==null?null:D.createElement(vn,nh({},a,{className:ee("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return St(u,!0)}}))},Mo=function(e){function t(){return LD(this,t),WD(this,t,arguments)}return HD(t,e),FD(t,[{key:"render",value:function(){return D.createElement(GD,this.props)}}])}(D.Component);Rw(Mo,"displayName","YAxis");Rw(Mo,"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 n0(e){return ZD(e)||YD(e)||VD(e)||XD()}function XD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
63
63
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VD(e,t){if(e){if(typeof e=="string")return ih(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 ih(e,t)}}function YD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZD(e){if(Array.isArray(e))return ih(e)}function ih(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 ah=function(t,r,n,i,a){var o=Ve(t,lp),u=Ve(t,So),s=[].concat(n0(o),n0(u)),c=Ve(t,To),l="".concat(i,"Id"),f=i[0],h=r;if(s.length&&(h=s.reduce(function(d,v){if(v.props[l]===n&&pt(v.props,"extendDomain")&&L(v.props[f])){var g=v.props[f];return[Math.min(d[0],g),Math.max(d[1],g)]}return d},h)),c.length){var p="".concat(f,"1"),y="".concat(f,"2");h=c.reduce(function(d,v){if(v.props[l]===n&&pt(v.props,"extendDomain")&&L(v.props[p])&&L(v.props[y])){var g=v.props[p],b=v.props[y];return[Math.min(d[0],g,b),Math.max(d[1],g,b)]}return d},h)}return a&&a.length&&(h=a.reduce(function(d,v){return L(v)?[Math.min(d[0],v),Math.max(d[1],v)]:d},h)),h},Rl={exports:{}},i0;function JD(){return i0||(i0=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,l){this.fn=s,this.context=c,this.once=l||!1}function a(s,c,l,f,h){if(typeof l!="function")throw new TypeError("The listener must be a function");var p=new i(l,f||s,h),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=[],l,f;if(this._eventsCount===0)return c;for(f in l=this._events)t.call(l,f)&&c.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(l)):c},u.prototype.listeners=function(c){var l=r?r+c:c,f=this._events[l];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,p=f.length,y=new Array(p);h<p;h++)y[h]=f[h].fn;return y},u.prototype.listenerCount=function(c){var l=r?r+c:c,f=this._events[l];return f?f.fn?1:f.length:0},u.prototype.emit=function(c,l,f,h,p,y){var d=r?r+c:c;if(!this._events[d])return!1;var v=this._events[d],g=arguments.length,b,x;if(v.fn){switch(v.once&&this.removeListener(c,v.fn,void 0,!0),g){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,l),!0;case 3:return v.fn.call(v.context,l,f),!0;case 4:return v.fn.call(v.context,l,f,h),!0;case 5:return v.fn.call(v.context,l,f,h,p),!0;case 6:return v.fn.call(v.context,l,f,h,p,y),!0}for(x=1,b=new Array(g-1);x<g;x++)b[x-1]=arguments[x];v.fn.apply(v.context,b)}else{var w=v.length,m;for(x=0;x<w;x++)switch(v[x].once&&this.removeListener(c,v[x].fn,void 0,!0),g){case 1:v[x].fn.call(v[x].context);break;case 2:v[x].fn.call(v[x].context,l);break;case 3:v[x].fn.call(v[x].context,l,f);break;case 4:v[x].fn.call(v[x].context,l,f,h);break;default:if(!b)for(m=1,b=new Array(g-1);m<g;m++)b[m-1]=arguments[m];v[x].fn.apply(v[x].context,b)}}return!0},u.prototype.on=function(c,l,f){return a(this,c,l,f,!1)},u.prototype.once=function(c,l,f){return a(this,c,l,f,!0)},u.prototype.removeListener=function(c,l,f,h){var p=r?r+c:c;if(!this._events[p])return this;if(!l)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===l&&(!h||y.once)&&(!f||y.context===f)&&o(this,p);else{for(var d=0,v=[],g=y.length;d<g;d++)(y[d].fn!==l||h&&!y[d].once||f&&y[d].context!==f)&&v.push(y[d]);v.length?this._events[p]=v.length===1?v[0]:v:o(this,p)}return this},u.prototype.removeAllListeners=function(c){var l;return c?(l=r?r+c:c,this._events[l]&&o(this,l)):(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}(Rl)),Rl.exports}var QD=JD();const eq=se(QD);var Nl=new eq,Dl="recharts.syncMouseEvents";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)}function tq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rq(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,Dw(n.key),n)}}function nq(e,t,r){return t&&rq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ql(e,t,r){return t=Dw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dw(e){var t=iq(e,"string");return vi(t)=="symbol"?t:t+""}function iq(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 String(e)}var aq=function(){function e(){tq(this,e),ql(this,"activeIndex",0),ql(this,"coordinateList",[]),ql(this,"layout","horizontal")}return nq(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,l=r.offset,f=l===void 0?null:l,h=r.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=c??this.layout,this.offset=f??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,l=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+s+c,h=o+this.offset.top+u/2+l;this.mouseHandlerCallback({pageX:f,pageY:h})}}}])}();function oq(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&L(n)&&L(i))return!0}return!1}function uq(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 qw(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=fe(t,r,n,i),u=fe(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function sq(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,l=t.outerRadius,f=t.angle,h=fe(u,s,c,f),p=fe(u,s,l,f);n=h.x,i=h.y,a=p.x,o=p.y}else return qw(t);return[{x:n,y:i},{x:a,y:o}]}function yi(e){"@babel/helpers - typeof";return yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yi(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 Fi(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){cq(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 cq(e,t,r){return t=lq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lq(e){var t=fq(e,"string");return yi(t)=="symbol"?t:t+""}function fq(e,t){if(yi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hq(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,l=e.tooltipAxisBandSize,f=e.layout,h=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||h!=="ScatterChart"&&i!=="axis")return null;var y,d=ma;if(h==="ScatterChart")y=o,d=I2;else if(h==="BarChart")y=uq(f,o,s,l),d=np;else if(f==="radial"){var v=qw(o),g=v.cx,b=v.cy,x=v.radius,w=v.startAngle,m=v.endAngle;y={cx:g,cy:b,startAngle:w,endAngle:m,innerRadius:x,outerRadius:x},d=Lx}else y={points:sq(f,o,s)},d=ma;var _=Fi(Fi(Fi(Fi({stroke:"#ccc",pointerEvents:"none"},s),y),G(p,!1)),{},{payload:u,payloadIndex:c,className:ee("recharts-tooltip-cursor",p.className)});return D.isValidElement(p)?D.cloneElement(p,_):D.createElement(d,_)}var pq=["item"],dq=["children","className","width","height","style","compact","title","desc"];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 jr(){return jr=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},jr.apply(this,arguments)}function o0(e,t){return mq(e)||yq(e,t)||Bw(e,t)||vq()}function vq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
64
64
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yq(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(l){c=!0,i=l}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function mq(e){if(Array.isArray(e))return e}function u0(e,t){if(e==null)return{};var r=gq(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 gq(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 _q(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,Fw(n.key),n)}}function xq(e,t,r){return t&&_q(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wq(e,t,r){return t=Fa(t),Oq(e,Lw()?Reflect.construct(t,r||[],Fa(e).constructor):t.apply(e,r))}function Oq(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 Aq(e)}function Aq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lw=function(){return!!e})()}function Fa(e){return Fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fa(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&&oh(e,t)}function oh(e,t){return oh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},oh(e,t)}function on(e){return Eq(e)||Tq(e)||Bw(e)||Pq()}function Pq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
65
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bw(e,t){if(e){if(typeof e=="string")return uh(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 uh(e,t)}}function Tq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Eq(e){if(Array.isArray(e))return uh(e)}function uh(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 s0(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 I(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s0(Object(r),!0).forEach(function(n){X(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X(e,t,r){return t=Fw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fw(e){var t=jq(e,"string");return an(t)=="symbol"?t:t+""}function jq(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(t==="string"?String:Number)(e)}var Mq={xAxis:["bottom","top"],yAxis:["left","right"]},$q={width:"100%",height:"100%"},Ww={x:0,y:0};function Wi(e){return e}var Cq=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},Iq=function(t,r,n,i){var a=r.find(function(l){return l&&l.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 I(I(I({},i),fe(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return I(I(I({},i),fe(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return Ww},$o=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(on(u),on(c)):u},[]);return o.length>0?o:t&&t.length&&L(i)&&L(a)?t.slice(i,a+1):[]};function zw(e){return e==="number"?[0,"auto"]:void 0}var sh=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=$o(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,c){var l,f=(l=c.props.data)!==null&&l!==void 0?l:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?u:f;h=Ui(p,o.dataKey,i)}else h=f&&f[n]||u[n];return h?[].concat(on(s),[Ix(c,h)]):s},[])},c0=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=Cq(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,l=e$(o,u,c,s);if(l>=0&&c){var f=c[l]&&c[l].value,h=sh(t,r,l,f),p=Iq(n,u,l,a);return{activeTooltipIndex:l,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},kq=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,l=t.layout,f=t.children,h=t.stackOffset,p=Tx(l,a);return n.reduce(function(y,d){var v,g=d.type.defaultProps!==void 0?I(I({},d.type.defaultProps),d.props):d.props,b=g.type,x=g.dataKey,w=g.allowDataOverflow,m=g.allowDuplicatedCategory,_=g.scale,O=g.ticks,A=g.includeHidden,T=g[o];if(y[T])return y;var M=$o(t.data,{graphicalItems:i.filter(function(W){var K,oe=o in W.props?W.props[o]:(K=W.type.defaultProps)===null||K===void 0?void 0:K[o];return oe===T}),dataStartIndex:s,dataEndIndex:c}),P=M.length,j,E,$;oq(g.domain,w,b)&&(j=wf(g.domain,null,w),p&&(b==="number"||_!=="auto")&&($=$n(M,x,"category")));var C=zw(b);if(!j||j.length===0){var k,R=(k=g.domain)!==null&&k!==void 0?k:C;if(x){if(j=$n(M,x,b),b==="category"&&p){var q=M1(j);m&&q?(E=j,j=Ea(0,P)):m||(j=fg(R,j,d).reduce(function(W,K){return W.indexOf(K)>=0?W:[].concat(on(W),[K])},[]))}else if(b==="category")m?j=j.filter(function(W){return W!==""&&!Z(W)}):j=fg(R,j,d).reduce(function(W,K){return W.indexOf(K)>=0||K===""||Z(K)?W:[].concat(on(W),[K])},[]);else if(b==="number"){var B=a$(M,i.filter(function(W){var K,oe,ie=o in W.props?W.props[o]:(K=W.type.defaultProps)===null||K===void 0?void 0:K[o],je="hide"in W.props?W.props.hide:(oe=W.type.defaultProps)===null||oe===void 0?void 0:oe.hide;return ie===T&&(A||!je)}),x,a,l);B&&(j=B)}p&&(b==="number"||_!=="auto")&&($=$n(M,x,"category"))}else p?j=Ea(0,P):u&&u[T]&&u[T].hasStack&&b==="number"?j=h==="expand"?[0,1]:Cx(u[T].stackGroups,s,c):j=Px(M,i.filter(function(W){var K=o in W.props?W.props[o]:W.type.defaultProps[o],oe="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return K===T&&(A||!oe)}),b,l,!0);if(b==="number")j=ah(f,j,T,a,O),R&&(j=wf(R,j,w));else if(b==="category"&&R){var U=R,H=j.every(function(W){return U.indexOf(W)>=0});H&&(j=U)}}return I(I({},y),{},X({},T,I(I({},g),{},{axisType:a,domain:j,categoricalDomain:$,duplicateDomain:E,originalDomain:(v=g.domain)!==null&&v!==void 0?v:C,isCategorical:p,layout:l})))},{})},Rq=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,l=t.layout,f=t.children,h=$o(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=h.length,y=Tx(l,a),d=-1;return n.reduce(function(v,g){var b=g.type.defaultProps!==void 0?I(I({},g.type.defaultProps),g.props):g.props,x=b[o],w=zw("number");if(!v[x]){d++;var m;return y?m=Ea(0,p):u&&u[x]&&u[x].hasStack?(m=Cx(u[x].stackGroups,s,c),m=ah(f,m,x,a)):(m=wf(w,Px(h,n.filter(function(_){var O,A,T=o in _.props?_.props[o]:(O=_.type.defaultProps)===null||O===void 0?void 0:O[o],M="hide"in _.props?_.props.hide:(A=_.type.defaultProps)===null||A===void 0?void 0:A.hide;return T===x&&!M}),"number",l),i.defaultProps.allowDataOverflow),m=ah(f,m,x,a)),I(I({},v),{},X({},x,I(I({axisType:a},i.defaultProps),{},{hide:!0,orientation:Xe(Mq,"".concat(a,".").concat(d%2),null),domain:m,originalDomain:w,isCategorical:y,layout:l})))}return v},{})},Nq=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,l=t.children,f="".concat(i,"Id"),h=Ve(l,a),p={};return h&&h.length?p=kq(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(p=Rq(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),p},Dq=function(t){var r=Dt(t),n=St(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:$h(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:da(r,n)}},l0=function(t){var r=t.children,n=t.defaultShowTooltip,i=He(r,Vr),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}},qq=function(t){return!t||!t.length?!1:t.some(function(r){var n=Pt(r&&r.type);return n&&n.indexOf("Bar")>=0})},f0=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"}},Lq=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,l=n.height,f=n.children,h=n.margin||{},p=He(f,Vr),y=He(f,$r),d=Object.keys(s).reduce(function(m,_){var O=s[_],A=O.orientation;return!O.mirror&&!O.hide?I(I({},m),{},X({},A,m[A]+O.width)):m},{left:h.left||0,right:h.right||0}),v=Object.keys(o).reduce(function(m,_){var O=o[_],A=O.orientation;return!O.mirror&&!O.hide?I(I({},m),{},X({},A,Xe(m,"".concat(A))+O.height)):m},{top:h.top||0,bottom:h.bottom||0}),g=I(I({},v),d),b=g.bottom;p&&(g.bottom+=p.props.height||Vr.defaultProps.height),y&&r&&(g=n$(g,i,n,r));var x=c-g.left-g.right,w=l-g.top-g.bottom;return I(I({brushBottom:b},g),{},{width:Math.max(x,0),height:Math.max(w,0)})},Bq=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},pp=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,l=t.formatAxisMap,f=t.defaultProps,h=function(g,b){var x=b.graphicalItems,w=b.stackGroups,m=b.offset,_=b.updateId,O=b.dataStartIndex,A=b.dataEndIndex,T=g.barSize,M=g.layout,P=g.barGap,j=g.barCategoryGap,E=g.maxBarSize,$=f0(M),C=$.numericAxisName,k=$.cateAxisName,R=qq(x),q=[];return x.forEach(function(B,U){var H=$o(g.data,{graphicalItems:[B],dataStartIndex:O,dataEndIndex:A}),W=B.type.defaultProps!==void 0?I(I({},B.type.defaultProps),B.props):B.props,K=W.dataKey,oe=W.maxBarSize,ie=W["".concat(C,"Id")],je=W["".concat(k,"Id")],nt={},Se=s.reduce(function(Xt,Vt){var Co=b["".concat(Vt.axisType,"Map")],dp=W["".concat(Vt.axisType,"Id")];Co&&Co[dp]||Vt.axisType==="zAxis"||hr();var vp=Co[dp];return I(I({},Xt),{},X(X({},Vt.axisType,vp),"".concat(Vt.axisType,"Ticks"),St(vp)))},nt),F=Se[k],Y=Se["".concat(k,"Ticks")],J=w&&w[ie]&&w[ie].hasStack&&d$(B,w[ie].stackGroups),N=Pt(B.type).indexOf("Bar")>=0,de=da(F,Y),te=[],ge=R&&t$({barSize:T,stackGroups:w,totalSize:Bq(Se,k)});if(N){var be,Be,Rt=Z(oe)?E:oe,_r=(be=(Be=da(F,Y,!0))!==null&&Be!==void 0?Be:Rt)!==null&&be!==void 0?be:0;te=r$({barGap:P,barCategoryGap:j,bandSize:_r!==de?_r:de,sizeList:ge[je],maxBarSize:Rt}),_r!==de&&(te=te.map(function(Xt){return I(I({},Xt),{},{position:I(I({},Xt.position),{},{offset:Xt.position.offset-_r/2})})}))}var Pi=B&&B.type&&B.type.getComposedData;Pi&&q.push({props:I(I({},Pi(I(I({},Se),{},{displayedData:H,props:g,dataKey:K,item:B,bandSize:de,barPosition:te,offset:m,stackedData:J,layout:M,dataStartIndex:O,dataEndIndex:A}))),{},X(X(X({key:B.key||"item-".concat(U)},C,Se[C]),k,Se[k]),"animationId",_)),childIndex:z1(B,g.children),item:B})}),q},p=function(g,b){var x=g.props,w=g.dataStartIndex,m=g.dataEndIndex,_=g.updateId;if(!wd({props:x}))return null;var O=x.children,A=x.layout,T=x.stackOffset,M=x.data,P=x.reverseStackOrder,j=f0(A),E=j.numericAxisName,$=j.cateAxisName,C=Ve(O,n),k=h$(M,C,"".concat(E,"Id"),"".concat($,"Id"),T,P),R=s.reduce(function(W,K){var oe="".concat(K.axisType,"Map");return I(I({},W),{},X({},oe,Nq(x,I(I({},K),{},{graphicalItems:C,stackGroups:K.axisType===E&&k,dataStartIndex:w,dataEndIndex:m}))))},{}),q=Lq(I(I({},R),{},{props:x,graphicalItems:C}),b==null?void 0:b.legendBBox);Object.keys(R).forEach(function(W){R[W]=l(x,R[W],q,W.replace("Map",""),r)});var B=R["".concat($,"Map")],U=Dq(B),H=h(x,I(I({},R),{},{dataStartIndex:w,dataEndIndex:m,updateId:_,graphicalItems:C,stackGroups:k,offset:q}));return I(I({formattedGraphicalItems:H,graphicalItems:C,offset:q,stackGroups:k},U),R)},y=function(v){function g(b){var x,w,m;return bq(this,g),m=wq(this,g,[b]),X(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),X(m,"accessibilityManager",new aq),X(m,"handleLegendBBoxUpdate",function(_){if(_){var O=m.state,A=O.dataStartIndex,T=O.dataEndIndex,M=O.updateId;m.setState(I({legendBBox:_},p({props:m.props,dataStartIndex:A,dataEndIndex:T,updateId:M},I(I({},m.state),{},{legendBBox:_}))))}}),X(m,"handleReceiveSyncEvent",function(_,O,A){if(m.props.syncId===_){if(A===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(O)}}),X(m,"handleBrushChange",function(_){var O=_.startIndex,A=_.endIndex;if(O!==m.state.dataStartIndex||A!==m.state.dataEndIndex){var T=m.state.updateId;m.setState(function(){return I({dataStartIndex:O,dataEndIndex:A},p({props:m.props,dataStartIndex:O,dataEndIndex:A,updateId:T},m.state))}),m.triggerSyncEvent({dataStartIndex:O,dataEndIndex:A})}}),X(m,"handleMouseEnter",function(_){var O=m.getMouseInfo(_);if(O){var A=I(I({},O),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var T=m.props.onMouseEnter;V(T)&&T(A,_)}}),X(m,"triggeredAfterMouseMove",function(_){var O=m.getMouseInfo(_),A=O?I(I({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A);var T=m.props.onMouseMove;V(T)&&T(A,_)}),X(m,"handleItemMouseEnter",function(_){m.setState(function(){return{isTooltipActive:!0,activeItem:_,activePayload:_.tooltipPayload,activeCoordinate:_.tooltipPosition||{x:_.cx,y:_.cy}}})}),X(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),X(m,"handleMouseMove",function(_){_.persist(),m.throttleTriggeredAfterMouseMove(_)}),X(m,"handleMouseLeave",function(_){m.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};m.setState(O),m.triggerSyncEvent(O);var A=m.props.onMouseLeave;V(A)&&A(O,_)}),X(m,"handleOuterEvent",function(_){var O=W1(_),A=Xe(m.props,"".concat(O));if(O&&V(A)){var T,M;/.*touch.*/i.test(O)?M=m.getMouseInfo(_.changedTouches[0]):M=m.getMouseInfo(_),A((T=M)!==null&&T!==void 0?T:{},_)}}),X(m,"handleClick",function(_){var O=m.getMouseInfo(_);if(O){var A=I(I({},O),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var T=m.props.onClick;V(T)&&T(A,_)}}),X(m,"handleMouseDown",function(_){var O=m.props.onMouseDown;if(V(O)){var A=m.getMouseInfo(_);O(A,_)}}),X(m,"handleMouseUp",function(_){var O=m.props.onMouseUp;if(V(O)){var A=m.getMouseInfo(_);O(A,_)}}),X(m,"handleTouchMove",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(_.changedTouches[0])}),X(m,"handleTouchStart",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&m.handleMouseDown(_.changedTouches[0])}),X(m,"handleTouchEnd",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&m.handleMouseUp(_.changedTouches[0])}),X(m,"handleDoubleClick",function(_){var O=m.props.onDoubleClick;if(V(O)){var A=m.getMouseInfo(_);O(A,_)}}),X(m,"handleContextMenu",function(_){var O=m.props.onContextMenu;if(V(O)){var A=m.getMouseInfo(_);O(A,_)}}),X(m,"triggerSyncEvent",function(_){m.props.syncId!==void 0&&Nl.emit(Dl,m.props.syncId,_,m.eventEmitterSymbol)}),X(m,"applySyncEvent",function(_){var O=m.props,A=O.layout,T=O.syncMethod,M=m.state.updateId,P=_.dataStartIndex,j=_.dataEndIndex;if(_.dataStartIndex!==void 0||_.dataEndIndex!==void 0)m.setState(I({dataStartIndex:P,dataEndIndex:j},p({props:m.props,dataStartIndex:P,dataEndIndex:j,updateId:M},m.state)));else if(_.activeTooltipIndex!==void 0){var E=_.chartX,$=_.chartY,C=_.activeTooltipIndex,k=m.state,R=k.offset,q=k.tooltipTicks;if(!R)return;if(typeof T=="function")C=T(q,_);else if(T==="value"){C=-1;for(var B=0;B<q.length;B++)if(q[B].value===_.activeLabel){C=B;break}}var U=I(I({},R),{},{x:R.left,y:R.top}),H=Math.min(E,U.x+U.width),W=Math.min($,U.y+U.height),K=q[C]&&q[C].value,oe=sh(m.state,m.props.data,C),ie=q[C]?{x:A==="horizontal"?q[C].coordinate:H,y:A==="horizontal"?W:q[C].coordinate}:Ww;m.setState(I(I({},_),{},{activeLabel:K,activeCoordinate:ie,activePayload:oe,activeTooltipIndex:C}))}else m.setState(_)}),X(m,"renderCursor",function(_){var O,A=m.state,T=A.isTooltipActive,M=A.activeCoordinate,P=A.activePayload,j=A.offset,E=A.activeTooltipIndex,$=A.tooltipAxisBandSize,C=m.getTooltipEventType(),k=(O=_.props.active)!==null&&O!==void 0?O:T,R=m.props.layout,q=_.key||"_recharts-cursor";return S.createElement(hq,{key:q,activeCoordinate:M,activePayload:P,activeTooltipIndex:E,chartName:r,element:_,isActive:k,layout:R,offset:j,tooltipAxisBandSize:$,tooltipEventType:C})}),X(m,"renderPolarAxis",function(_,O,A){var T=Xe(_,"type.axisType"),M=Xe(m.state,"".concat(T,"Map")),P=_.type.defaultProps,j=P!==void 0?I(I({},P),_.props):_.props,E=M&&M[j["".concat(T,"Id")]];return D.cloneElement(_,I(I({},E),{},{className:ee(T,E.className),key:_.key||"".concat(O,"-").concat(A),ticks:St(E,!0)}))}),X(m,"renderPolarGrid",function(_){var O=_.props,A=O.radialLines,T=O.polarAngles,M=O.polarRadius,P=m.state,j=P.radiusAxisMap,E=P.angleAxisMap,$=Dt(j),C=Dt(E),k=C.cx,R=C.cy,q=C.innerRadius,B=C.outerRadius;return D.cloneElement(_,{polarAngles:Array.isArray(T)?T:St(C,!0).map(function(U){return U.coordinate}),polarRadius:Array.isArray(M)?M:St($,!0).map(function(U){return U.coordinate}),cx:k,cy:R,innerRadius:q,outerRadius:B,key:_.key||"polar-grid",radialLines:A})}),X(m,"renderLegend",function(){var _=m.state.formattedGraphicalItems,O=m.props,A=O.children,T=O.width,M=O.height,P=m.props.margin||{},j=T-(P.left||0)-(P.right||0),E=Ax({children:A,formattedGraphicalItems:_,legendWidth:j,legendContent:c});if(!E)return null;var $=E.item,C=u0(E,pq);return D.cloneElement($,I(I({},C),{},{chartWidth:T,chartHeight:M,margin:P,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),X(m,"renderTooltip",function(){var _,O=m.props,A=O.children,T=O.accessibilityLayer,M=He(A,_t);if(!M)return null;var P=m.state,j=P.isTooltipActive,E=P.activeCoordinate,$=P.activePayload,C=P.activeLabel,k=P.offset,R=(_=M.props.active)!==null&&_!==void 0?_:j;return D.cloneElement(M,{viewBox:I(I({},k),{},{x:k.left,y:k.top}),active:R,label:C,payload:R?$:[],coordinate:E,accessibilityLayer:T})}),X(m,"renderBrush",function(_){var O=m.props,A=O.margin,T=O.data,M=m.state,P=M.offset,j=M.dataStartIndex,E=M.dataEndIndex,$=M.updateId;return D.cloneElement(_,{key:_.key||"_recharts-brush",onChange:Di(m.handleBrushChange,_.props.onChange),data:T,x:L(_.props.x)?_.props.x:P.left,y:L(_.props.y)?_.props.y:P.top+P.height+P.brushBottom-(A.bottom||0),width:L(_.props.width)?_.props.width:P.width,startIndex:j,endIndex:E,updateId:"brush-".concat($)})}),X(m,"renderReferenceElement",function(_,O,A){if(!_)return null;var T=m,M=T.clipPathId,P=m.state,j=P.xAxisMap,E=P.yAxisMap,$=P.offset,C=_.type.defaultProps||{},k=_.props,R=k.xAxisId,q=R===void 0?C.xAxisId:R,B=k.yAxisId,U=B===void 0?C.yAxisId:B;return D.cloneElement(_,{key:_.key||"".concat(O,"-").concat(A),xAxis:j[q],yAxis:E[U],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:M})}),X(m,"renderActivePoints",function(_){var O=_.item,A=_.activePoint,T=_.basePoint,M=_.childIndex,P=_.isRange,j=[],E=O.props.key,$=O.item.type.defaultProps!==void 0?I(I({},O.item.type.defaultProps),O.item.props):O.item.props,C=$.activeDot,k=$.dataKey,R=I(I({index:M,dataKey:k,cx:A.x,cy:A.y,r:4,fill:rp(O.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},G(C,!1)),Hi(C));return j.push(g.renderActiveDot(C,R,"".concat(E,"-activePoint-").concat(M))),T?j.push(g.renderActiveDot(C,I(I({},R),{},{cx:T.x,cy:T.y}),"".concat(E,"-basePoint-").concat(M))):P&&j.push(null),j}),X(m,"renderGraphicChild",function(_,O,A){var T=m.filterFormatItem(_,O,A);if(!T)return null;var M=m.getTooltipEventType(),P=m.state,j=P.isTooltipActive,E=P.tooltipAxis,$=P.activeTooltipIndex,C=P.activeLabel,k=m.props.children,R=He(k,_t),q=T.props,B=q.points,U=q.isRange,H=q.baseLine,W=T.item.type.defaultProps!==void 0?I(I({},T.item.type.defaultProps),T.item.props):T.item.props,K=W.activeDot,oe=W.hide,ie=W.activeBar,je=W.activeShape,nt=!!(!oe&&j&&R&&(K||ie||je)),Se={};M!=="axis"&&R&&R.props.trigger==="click"?Se={onClick:Di(m.handleItemMouseEnter,_.props.onClick)}:M!=="axis"&&(Se={onMouseLeave:Di(m.handleItemMouseLeave,_.props.onMouseLeave),onMouseEnter:Di(m.handleItemMouseEnter,_.props.onMouseEnter)});var F=D.cloneElement(_,I(I({},T.props),Se));function Y(Vt){return typeof E.dataKey=="function"?E.dataKey(Vt.payload):null}if(nt)if($>=0){var J,N;if(E.dataKey&&!E.allowDuplicatedCategory){var de=typeof E.dataKey=="function"?Y:"payload.".concat(E.dataKey.toString());J=Ui(B,de,C),N=U&&H&&Ui(H,de,C)}else J=B==null?void 0:B[$],N=U&&H&&H[$];if(je||ie){var te=_.props.activeIndex!==void 0?_.props.activeIndex:$;return[D.cloneElement(_,I(I(I({},T.props),Se),{},{activeIndex:te})),null,null]}if(!Z(J))return[F].concat(on(m.renderActivePoints({item:T,activePoint:J,basePoint:N,childIndex:$,isRange:U})))}else{var ge,be=(ge=m.getItemByXY(m.state.activeCoordinate))!==null&&ge!==void 0?ge:{graphicalItem:F},Be=be.graphicalItem,Rt=Be.item,_r=Rt===void 0?_:Rt,Pi=Be.childIndex,Xt=I(I(I({},T.props),Se),{},{activeIndex:Pi});return[D.cloneElement(_r,Xt),null,null]}return U?[F,null,null]:[F,null]}),X(m,"renderCustomized",function(_,O,A){return D.cloneElement(_,I(I({key:"recharts-customized-".concat(A)},m.props),m.state))}),X(m,"renderMap",{CartesianGrid:{handler:Wi,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:Wi},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:Wi},YAxis:{handler:Wi},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((x=b.id)!==null&&x!==void 0?x:cn("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=d_(m.triggeredAfterMouseMove,(w=b.throttleDelay)!==null&&w!==void 0?w:1e3/60),m.state={},m}return Sq(g,v),xq(g,[{key:"componentDidMount",value:function(){var x,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,w=x.children,m=x.data,_=x.height,O=x.layout,A=He(w,_t);if(A){var T=A.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,P=sh(this.state,m,T,M),j=this.state.tooltipTicks[T].coordinate,E=(this.state.offset.top+_)/2,$=O==="horizontal",C=$?{x:j,y:E}:{y:j,x:E},k=this.state.formattedGraphicalItems.find(function(q){var B=q.item;return B.type.name==="Scatter"});k&&(C=I(I({},C),k.props.points[T].tooltipPosition),P=k.props.points[T].tooltipPayload);var R={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:M,activePayload:P,activeCoordinate:C};this.setState(R),this.renderCursor(A),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var m,_;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0}})}return null}},{key:"componentDidUpdate",value:function(x){Fl([He(x.children,_t)],[He(this.props.children,_t)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=He(this.props.children,_t);if(x&&typeof x.props.shared=="boolean"){var w=x.props.shared?"axis":"item";return u.indexOf(w)>=0?w:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var w=this.container,m=w.getBoundingClientRect(),_=LP(m),O={chartX:Math.round(x.pageX-_.left),chartY:Math.round(x.pageY-_.top)},A=m.width/w.offsetWidth||1,T=this.inRange(O.chartX,O.chartY,A);if(!T)return null;var M=this.state,P=M.xAxisMap,j=M.yAxisMap,E=this.getTooltipEventType(),$=c0(this.state,this.props.data,this.props.layout,T);if(E!=="axis"&&P&&j){var C=Dt(P).scale,k=Dt(j).scale,R=C&&C.invert?C.invert(O.chartX):null,q=k&&k.invert?k.invert(O.chartY):null;return I(I({},O),{},{xValue:R,yValue:q},$)}return $?I(I({},O),$):null}},{key:"inRange",value:function(x,w){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,_=this.props.layout,O=x/m,A=w/m;if(_==="horizontal"||_==="vertical"){var T=this.state.offset,M=O>=T.left&&O<=T.left+T.width&&A>=T.top&&A<=T.top+T.height;return M?{x:O,y:A}:null}var P=this.state,j=P.angleAxisMap,E=P.radiusAxisMap;if(j&&E){var $=Dt(j);return dg({x:O,y:A},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,w=this.getTooltipEventType(),m=He(x,_t),_={};m&&w==="axis"&&(m.props.trigger==="click"?_={onClick:this.handleClick}:_={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var O=Hi(this.props,this.handleOuterEvent);return I(I({},O),_)}},{key:"addListener",value:function(){Nl.on(Dl,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Nl.removeListener(Dl,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,w,m){for(var _=this.state.formattedGraphicalItems,O=0,A=_.length;O<A;O++){var T=_[O];if(T.item===x||T.props.key===x.key||w===Pt(T.item.type)&&m===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,w=this.state.offset,m=w.left,_=w.top,O=w.height,A=w.width;return S.createElement("defs",null,S.createElement("clipPath",{id:x},S.createElement("rect",{x:m,y:_,height:O,width:A})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(w,m){var _=o0(m,2),O=_[0],A=_[1];return I(I({},w),{},X({},O,A.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(w,m){var _=o0(m,2),O=_[0],A=_[1];return I(I({},w),{},X({},O,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(x){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(x){var w=this.state,m=w.formattedGraphicalItems,_=w.activeItem;if(m&&m.length)for(var O=0,A=m.length;O<A;O++){var T=m[O],M=T.props,P=T.item,j=P.type.defaultProps!==void 0?I(I({},P.type.defaultProps),P.props):P.props,E=Pt(P.type);if(E==="Bar"){var $=(M.data||[]).find(function(q){return p2(x,q)});if($)return{graphicalItem:T,payload:$}}else if(E==="RadialBar"){var C=(M.data||[]).find(function(q){return dg(x,q)});if(C)return{graphicalItem:T,payload:C}}else if(xo(T,_)||wo(T,_)||li(T,_)){var k=Nk({graphicalItem:T,activeTooltipItem:_,itemData:j.data}),R=j.activeIndex===void 0?k:j.activeIndex;return{graphicalItem:I(I({},T),{},{childIndex:R}),payload:li(T,_)?j.data[k]:T.props.data[k]}}}return null}},{key:"render",value:function(){var x=this;if(!wd(this))return null;var w=this.props,m=w.children,_=w.className,O=w.width,A=w.height,T=w.style,M=w.compact,P=w.title,j=w.desc,E=u0(w,dq),$=G(E,!1);if(M)return S.createElement(Fb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement(zl,jr({},$,{width:O,height:A,title:P,desc:j}),this.renderClipPath(),Ad(m,this.renderMap)));if(this.props.accessibilityLayer){var C,k;$.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,$.role=(k=this.props.role)!==null&&k!==void 0?k:"application",$.onKeyDown=function(q){x.accessibilityManager.keyboardEvent(q)},$.onFocus=function(){x.accessibilityManager.focus()}}var R=this.parseEventsOfWrapper();return S.createElement(Fb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement("div",jr({className:ee("recharts-wrapper",_),style:I({position:"relative",cursor:"default",width:O,height:A},T)},R,{ref:function(B){x.container=B}}),S.createElement(zl,jr({},$,{width:O,height:A,title:P,desc:j,style:$q}),this.renderClipPath(),Ad(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(D.Component);X(y,"displayName",r),X(y,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),X(y,"getDerivedStateFromProps",function(v,g){var b=v.dataKey,x=v.data,w=v.children,m=v.width,_=v.height,O=v.layout,A=v.stackOffset,T=v.margin,M=g.dataStartIndex,P=g.dataEndIndex;if(g.updateId===void 0){var j=l0(v);return I(I(I({},j),{},{updateId:0},p(I(I({props:v},j),{},{updateId:0}),g)),{},{prevDataKey:b,prevData:x,prevWidth:m,prevHeight:_,prevLayout:O,prevStackOffset:A,prevMargin:T,prevChildren:w})}if(b!==g.prevDataKey||x!==g.prevData||m!==g.prevWidth||_!==g.prevHeight||O!==g.prevLayout||A!==g.prevStackOffset||!Mr(T,g.prevMargin)){var E=l0(v),$={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},C=I(I({},c0(g,x,O)),{},{updateId:g.updateId+1}),k=I(I(I({},E),$),C);return I(I(I({},k),p(I({props:v},k),g)),{},{prevDataKey:b,prevData:x,prevWidth:m,prevHeight:_,prevLayout:O,prevStackOffset:A,prevMargin:T,prevChildren:w})}if(!Fl(w,g.prevChildren)){var R,q,B,U,H=He(w,Vr),W=H&&(R=(q=H.props)===null||q===void 0?void 0:q.startIndex)!==null&&R!==void 0?R:M,K=H&&(B=(U=H.props)===null||U===void 0?void 0:U.endIndex)!==null&&B!==void 0?B:P,oe=W!==M||K!==P,ie=!Z(x),je=ie&&!oe?g.updateId:g.updateId+1;return I(I({updateId:je},p(I(I({props:v},g),{},{updateId:je,dataStartIndex:W,dataEndIndex:K}),g)),{},{prevChildren:w,dataStartIndex:W,dataEndIndex:K})}return null}),X(y,"renderActiveDot",function(v,g,b){var x;return D.isValidElement(v)?x=D.cloneElement(v,g):V(v)?x=v(g):x=S.createElement(yo,g),S.createElement(re,{className:"recharts-active-dot",key:b},x)});var d=D.forwardRef(function(g,b){return S.createElement(y,jr({},g,{ref:b}))});return d.displayName=y.displayName,d},rL=pp({chartName:"LineChart",GraphicalChild:Eo,axisComponents:[{axisType:"xAxis",AxisComp:jo},{axisType:"yAxis",AxisComp:Mo}],formatAxisMap:cw}),nL=pp({chartName:"BarChart",GraphicalChild:dn,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:jo},{axisType:"yAxis",AxisComp:Mo}],formatAxisMap:cw}),iL=pp({chartName:"PieChart",GraphicalChild:Gt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:_o},{axisType:"radiusAxis",AxisComp:go}],formatAxisMap:A$,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});export{Gt as $,S0 as A,zq as B,Rh as C,Uq as D,ua as E,zn as F,Lh as G,Bj as H,cm as I,sm as J,tL as K,J_ as L,Vh as M,oo as N,EE as O,TE as P,Fr as Q,PE as R,SE as S,ca as T,Oi as U,Gh as V,Hh as W,ir as X,sa as Y,Jq as Z,iL as _,gm as a,Ih as a0,_t as a1,rL as a2,vD as a3,jo as a4,Mo as a5,$r as a6,Eo as a7,nL as a8,dn as a9,YT as b,Kn as c,eL as d,Qq as e,BO as f,qO as g,DO as h,ct as i,RO as j,kO as k,Ya as l,NO as m,Vq as n,Zq as o,Yq as p,Kq as q,Xq as r,LO as s,Gq as t,Hq as u,gO as v,mO as w,IO as x,CO as y,$O as z};
65
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bw(e,t){if(e){if(typeof e=="string")return uh(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 uh(e,t)}}function Tq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Eq(e){if(Array.isArray(e))return uh(e)}function uh(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 s0(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 I(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s0(Object(r),!0).forEach(function(n){X(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X(e,t,r){return t=Fw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fw(e){var t=jq(e,"string");return an(t)=="symbol"?t:t+""}function jq(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(t==="string"?String:Number)(e)}var Mq={xAxis:["bottom","top"],yAxis:["left","right"]},$q={width:"100%",height:"100%"},Ww={x:0,y:0};function Wi(e){return e}var Cq=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},Iq=function(t,r,n,i){var a=r.find(function(l){return l&&l.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 I(I(I({},i),fe(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return I(I(I({},i),fe(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return Ww},$o=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(on(u),on(c)):u},[]);return o.length>0?o:t&&t.length&&L(i)&&L(a)?t.slice(i,a+1):[]};function zw(e){return e==="number"?[0,"auto"]:void 0}var sh=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=$o(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,c){var l,f=(l=c.props.data)!==null&&l!==void 0?l:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?u:f;h=Ui(p,o.dataKey,i)}else h=f&&f[n]||u[n];return h?[].concat(on(s),[Ix(c,h)]):s},[])},c0=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=Cq(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,l=e$(o,u,c,s);if(l>=0&&c){var f=c[l]&&c[l].value,h=sh(t,r,l,f),p=Iq(n,u,l,a);return{activeTooltipIndex:l,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},kq=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,l=t.layout,f=t.children,h=t.stackOffset,p=Tx(l,a);return n.reduce(function(y,d){var v,g=d.type.defaultProps!==void 0?I(I({},d.type.defaultProps),d.props):d.props,b=g.type,x=g.dataKey,w=g.allowDataOverflow,m=g.allowDuplicatedCategory,_=g.scale,O=g.ticks,A=g.includeHidden,T=g[o];if(y[T])return y;var M=$o(t.data,{graphicalItems:i.filter(function(W){var K,oe=o in W.props?W.props[o]:(K=W.type.defaultProps)===null||K===void 0?void 0:K[o];return oe===T}),dataStartIndex:s,dataEndIndex:c}),P=M.length,j,E,$;oq(g.domain,w,b)&&(j=wf(g.domain,null,w),p&&(b==="number"||_!=="auto")&&($=$n(M,x,"category")));var C=zw(b);if(!j||j.length===0){var k,R=(k=g.domain)!==null&&k!==void 0?k:C;if(x){if(j=$n(M,x,b),b==="category"&&p){var q=M1(j);m&&q?(E=j,j=Ea(0,P)):m||(j=fg(R,j,d).reduce(function(W,K){return W.indexOf(K)>=0?W:[].concat(on(W),[K])},[]))}else if(b==="category")m?j=j.filter(function(W){return W!==""&&!Z(W)}):j=fg(R,j,d).reduce(function(W,K){return W.indexOf(K)>=0||K===""||Z(K)?W:[].concat(on(W),[K])},[]);else if(b==="number"){var B=a$(M,i.filter(function(W){var K,oe,ie=o in W.props?W.props[o]:(K=W.type.defaultProps)===null||K===void 0?void 0:K[o],je="hide"in W.props?W.props.hide:(oe=W.type.defaultProps)===null||oe===void 0?void 0:oe.hide;return ie===T&&(A||!je)}),x,a,l);B&&(j=B)}p&&(b==="number"||_!=="auto")&&($=$n(M,x,"category"))}else p?j=Ea(0,P):u&&u[T]&&u[T].hasStack&&b==="number"?j=h==="expand"?[0,1]:Cx(u[T].stackGroups,s,c):j=Px(M,i.filter(function(W){var K=o in W.props?W.props[o]:W.type.defaultProps[o],oe="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return K===T&&(A||!oe)}),b,l,!0);if(b==="number")j=ah(f,j,T,a,O),R&&(j=wf(R,j,w));else if(b==="category"&&R){var U=R,H=j.every(function(W){return U.indexOf(W)>=0});H&&(j=U)}}return I(I({},y),{},X({},T,I(I({},g),{},{axisType:a,domain:j,categoricalDomain:$,duplicateDomain:E,originalDomain:(v=g.domain)!==null&&v!==void 0?v:C,isCategorical:p,layout:l})))},{})},Rq=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,l=t.layout,f=t.children,h=$o(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=h.length,y=Tx(l,a),d=-1;return n.reduce(function(v,g){var b=g.type.defaultProps!==void 0?I(I({},g.type.defaultProps),g.props):g.props,x=b[o],w=zw("number");if(!v[x]){d++;var m;return y?m=Ea(0,p):u&&u[x]&&u[x].hasStack?(m=Cx(u[x].stackGroups,s,c),m=ah(f,m,x,a)):(m=wf(w,Px(h,n.filter(function(_){var O,A,T=o in _.props?_.props[o]:(O=_.type.defaultProps)===null||O===void 0?void 0:O[o],M="hide"in _.props?_.props.hide:(A=_.type.defaultProps)===null||A===void 0?void 0:A.hide;return T===x&&!M}),"number",l),i.defaultProps.allowDataOverflow),m=ah(f,m,x,a)),I(I({},v),{},X({},x,I(I({axisType:a},i.defaultProps),{},{hide:!0,orientation:Xe(Mq,"".concat(a,".").concat(d%2),null),domain:m,originalDomain:w,isCategorical:y,layout:l})))}return v},{})},Nq=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,l=t.children,f="".concat(i,"Id"),h=Ve(l,a),p={};return h&&h.length?p=kq(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(p=Rq(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),p},Dq=function(t){var r=Dt(t),n=St(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:$h(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:da(r,n)}},l0=function(t){var r=t.children,n=t.defaultShowTooltip,i=He(r,Vr),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}},qq=function(t){return!t||!t.length?!1:t.some(function(r){var n=Pt(r&&r.type);return n&&n.indexOf("Bar")>=0})},f0=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"}},Lq=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,l=n.height,f=n.children,h=n.margin||{},p=He(f,Vr),y=He(f,$r),d=Object.keys(s).reduce(function(m,_){var O=s[_],A=O.orientation;return!O.mirror&&!O.hide?I(I({},m),{},X({},A,m[A]+O.width)):m},{left:h.left||0,right:h.right||0}),v=Object.keys(o).reduce(function(m,_){var O=o[_],A=O.orientation;return!O.mirror&&!O.hide?I(I({},m),{},X({},A,Xe(m,"".concat(A))+O.height)):m},{top:h.top||0,bottom:h.bottom||0}),g=I(I({},v),d),b=g.bottom;p&&(g.bottom+=p.props.height||Vr.defaultProps.height),y&&r&&(g=n$(g,i,n,r));var x=c-g.left-g.right,w=l-g.top-g.bottom;return I(I({brushBottom:b},g),{},{width:Math.max(x,0),height:Math.max(w,0)})},Bq=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},pp=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,l=t.formatAxisMap,f=t.defaultProps,h=function(g,b){var x=b.graphicalItems,w=b.stackGroups,m=b.offset,_=b.updateId,O=b.dataStartIndex,A=b.dataEndIndex,T=g.barSize,M=g.layout,P=g.barGap,j=g.barCategoryGap,E=g.maxBarSize,$=f0(M),C=$.numericAxisName,k=$.cateAxisName,R=qq(x),q=[];return x.forEach(function(B,U){var H=$o(g.data,{graphicalItems:[B],dataStartIndex:O,dataEndIndex:A}),W=B.type.defaultProps!==void 0?I(I({},B.type.defaultProps),B.props):B.props,K=W.dataKey,oe=W.maxBarSize,ie=W["".concat(C,"Id")],je=W["".concat(k,"Id")],nt={},Se=s.reduce(function(Xt,Vt){var Co=b["".concat(Vt.axisType,"Map")],dp=W["".concat(Vt.axisType,"Id")];Co&&Co[dp]||Vt.axisType==="zAxis"||hr();var vp=Co[dp];return I(I({},Xt),{},X(X({},Vt.axisType,vp),"".concat(Vt.axisType,"Ticks"),St(vp)))},nt),F=Se[k],Y=Se["".concat(k,"Ticks")],J=w&&w[ie]&&w[ie].hasStack&&d$(B,w[ie].stackGroups),N=Pt(B.type).indexOf("Bar")>=0,de=da(F,Y),te=[],ge=R&&t$({barSize:T,stackGroups:w,totalSize:Bq(Se,k)});if(N){var be,Be,Rt=Z(oe)?E:oe,_r=(be=(Be=da(F,Y,!0))!==null&&Be!==void 0?Be:Rt)!==null&&be!==void 0?be:0;te=r$({barGap:P,barCategoryGap:j,bandSize:_r!==de?_r:de,sizeList:ge[je],maxBarSize:Rt}),_r!==de&&(te=te.map(function(Xt){return I(I({},Xt),{},{position:I(I({},Xt.position),{},{offset:Xt.position.offset-_r/2})})}))}var Pi=B&&B.type&&B.type.getComposedData;Pi&&q.push({props:I(I({},Pi(I(I({},Se),{},{displayedData:H,props:g,dataKey:K,item:B,bandSize:de,barPosition:te,offset:m,stackedData:J,layout:M,dataStartIndex:O,dataEndIndex:A}))),{},X(X(X({key:B.key||"item-".concat(U)},C,Se[C]),k,Se[k]),"animationId",_)),childIndex:z1(B,g.children),item:B})}),q},p=function(g,b){var x=g.props,w=g.dataStartIndex,m=g.dataEndIndex,_=g.updateId;if(!wd({props:x}))return null;var O=x.children,A=x.layout,T=x.stackOffset,M=x.data,P=x.reverseStackOrder,j=f0(A),E=j.numericAxisName,$=j.cateAxisName,C=Ve(O,n),k=h$(M,C,"".concat(E,"Id"),"".concat($,"Id"),T,P),R=s.reduce(function(W,K){var oe="".concat(K.axisType,"Map");return I(I({},W),{},X({},oe,Nq(x,I(I({},K),{},{graphicalItems:C,stackGroups:K.axisType===E&&k,dataStartIndex:w,dataEndIndex:m}))))},{}),q=Lq(I(I({},R),{},{props:x,graphicalItems:C}),b==null?void 0:b.legendBBox);Object.keys(R).forEach(function(W){R[W]=l(x,R[W],q,W.replace("Map",""),r)});var B=R["".concat($,"Map")],U=Dq(B),H=h(x,I(I({},R),{},{dataStartIndex:w,dataEndIndex:m,updateId:_,graphicalItems:C,stackGroups:k,offset:q}));return I(I({formattedGraphicalItems:H,graphicalItems:C,offset:q,stackGroups:k},U),R)},y=function(v){function g(b){var x,w,m;return bq(this,g),m=wq(this,g,[b]),X(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),X(m,"accessibilityManager",new aq),X(m,"handleLegendBBoxUpdate",function(_){if(_){var O=m.state,A=O.dataStartIndex,T=O.dataEndIndex,M=O.updateId;m.setState(I({legendBBox:_},p({props:m.props,dataStartIndex:A,dataEndIndex:T,updateId:M},I(I({},m.state),{},{legendBBox:_}))))}}),X(m,"handleReceiveSyncEvent",function(_,O,A){if(m.props.syncId===_){if(A===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(O)}}),X(m,"handleBrushChange",function(_){var O=_.startIndex,A=_.endIndex;if(O!==m.state.dataStartIndex||A!==m.state.dataEndIndex){var T=m.state.updateId;m.setState(function(){return I({dataStartIndex:O,dataEndIndex:A},p({props:m.props,dataStartIndex:O,dataEndIndex:A,updateId:T},m.state))}),m.triggerSyncEvent({dataStartIndex:O,dataEndIndex:A})}}),X(m,"handleMouseEnter",function(_){var O=m.getMouseInfo(_);if(O){var A=I(I({},O),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var T=m.props.onMouseEnter;V(T)&&T(A,_)}}),X(m,"triggeredAfterMouseMove",function(_){var O=m.getMouseInfo(_),A=O?I(I({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A);var T=m.props.onMouseMove;V(T)&&T(A,_)}),X(m,"handleItemMouseEnter",function(_){m.setState(function(){return{isTooltipActive:!0,activeItem:_,activePayload:_.tooltipPayload,activeCoordinate:_.tooltipPosition||{x:_.cx,y:_.cy}}})}),X(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),X(m,"handleMouseMove",function(_){_.persist(),m.throttleTriggeredAfterMouseMove(_)}),X(m,"handleMouseLeave",function(_){m.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};m.setState(O),m.triggerSyncEvent(O);var A=m.props.onMouseLeave;V(A)&&A(O,_)}),X(m,"handleOuterEvent",function(_){var O=W1(_),A=Xe(m.props,"".concat(O));if(O&&V(A)){var T,M;/.*touch.*/i.test(O)?M=m.getMouseInfo(_.changedTouches[0]):M=m.getMouseInfo(_),A((T=M)!==null&&T!==void 0?T:{},_)}}),X(m,"handleClick",function(_){var O=m.getMouseInfo(_);if(O){var A=I(I({},O),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var T=m.props.onClick;V(T)&&T(A,_)}}),X(m,"handleMouseDown",function(_){var O=m.props.onMouseDown;if(V(O)){var A=m.getMouseInfo(_);O(A,_)}}),X(m,"handleMouseUp",function(_){var O=m.props.onMouseUp;if(V(O)){var A=m.getMouseInfo(_);O(A,_)}}),X(m,"handleTouchMove",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(_.changedTouches[0])}),X(m,"handleTouchStart",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&m.handleMouseDown(_.changedTouches[0])}),X(m,"handleTouchEnd",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&m.handleMouseUp(_.changedTouches[0])}),X(m,"handleDoubleClick",function(_){var O=m.props.onDoubleClick;if(V(O)){var A=m.getMouseInfo(_);O(A,_)}}),X(m,"handleContextMenu",function(_){var O=m.props.onContextMenu;if(V(O)){var A=m.getMouseInfo(_);O(A,_)}}),X(m,"triggerSyncEvent",function(_){m.props.syncId!==void 0&&Nl.emit(Dl,m.props.syncId,_,m.eventEmitterSymbol)}),X(m,"applySyncEvent",function(_){var O=m.props,A=O.layout,T=O.syncMethod,M=m.state.updateId,P=_.dataStartIndex,j=_.dataEndIndex;if(_.dataStartIndex!==void 0||_.dataEndIndex!==void 0)m.setState(I({dataStartIndex:P,dataEndIndex:j},p({props:m.props,dataStartIndex:P,dataEndIndex:j,updateId:M},m.state)));else if(_.activeTooltipIndex!==void 0){var E=_.chartX,$=_.chartY,C=_.activeTooltipIndex,k=m.state,R=k.offset,q=k.tooltipTicks;if(!R)return;if(typeof T=="function")C=T(q,_);else if(T==="value"){C=-1;for(var B=0;B<q.length;B++)if(q[B].value===_.activeLabel){C=B;break}}var U=I(I({},R),{},{x:R.left,y:R.top}),H=Math.min(E,U.x+U.width),W=Math.min($,U.y+U.height),K=q[C]&&q[C].value,oe=sh(m.state,m.props.data,C),ie=q[C]?{x:A==="horizontal"?q[C].coordinate:H,y:A==="horizontal"?W:q[C].coordinate}:Ww;m.setState(I(I({},_),{},{activeLabel:K,activeCoordinate:ie,activePayload:oe,activeTooltipIndex:C}))}else m.setState(_)}),X(m,"renderCursor",function(_){var O,A=m.state,T=A.isTooltipActive,M=A.activeCoordinate,P=A.activePayload,j=A.offset,E=A.activeTooltipIndex,$=A.tooltipAxisBandSize,C=m.getTooltipEventType(),k=(O=_.props.active)!==null&&O!==void 0?O:T,R=m.props.layout,q=_.key||"_recharts-cursor";return S.createElement(hq,{key:q,activeCoordinate:M,activePayload:P,activeTooltipIndex:E,chartName:r,element:_,isActive:k,layout:R,offset:j,tooltipAxisBandSize:$,tooltipEventType:C})}),X(m,"renderPolarAxis",function(_,O,A){var T=Xe(_,"type.axisType"),M=Xe(m.state,"".concat(T,"Map")),P=_.type.defaultProps,j=P!==void 0?I(I({},P),_.props):_.props,E=M&&M[j["".concat(T,"Id")]];return D.cloneElement(_,I(I({},E),{},{className:ee(T,E.className),key:_.key||"".concat(O,"-").concat(A),ticks:St(E,!0)}))}),X(m,"renderPolarGrid",function(_){var O=_.props,A=O.radialLines,T=O.polarAngles,M=O.polarRadius,P=m.state,j=P.radiusAxisMap,E=P.angleAxisMap,$=Dt(j),C=Dt(E),k=C.cx,R=C.cy,q=C.innerRadius,B=C.outerRadius;return D.cloneElement(_,{polarAngles:Array.isArray(T)?T:St(C,!0).map(function(U){return U.coordinate}),polarRadius:Array.isArray(M)?M:St($,!0).map(function(U){return U.coordinate}),cx:k,cy:R,innerRadius:q,outerRadius:B,key:_.key||"polar-grid",radialLines:A})}),X(m,"renderLegend",function(){var _=m.state.formattedGraphicalItems,O=m.props,A=O.children,T=O.width,M=O.height,P=m.props.margin||{},j=T-(P.left||0)-(P.right||0),E=Ax({children:A,formattedGraphicalItems:_,legendWidth:j,legendContent:c});if(!E)return null;var $=E.item,C=u0(E,pq);return D.cloneElement($,I(I({},C),{},{chartWidth:T,chartHeight:M,margin:P,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),X(m,"renderTooltip",function(){var _,O=m.props,A=O.children,T=O.accessibilityLayer,M=He(A,_t);if(!M)return null;var P=m.state,j=P.isTooltipActive,E=P.activeCoordinate,$=P.activePayload,C=P.activeLabel,k=P.offset,R=(_=M.props.active)!==null&&_!==void 0?_:j;return D.cloneElement(M,{viewBox:I(I({},k),{},{x:k.left,y:k.top}),active:R,label:C,payload:R?$:[],coordinate:E,accessibilityLayer:T})}),X(m,"renderBrush",function(_){var O=m.props,A=O.margin,T=O.data,M=m.state,P=M.offset,j=M.dataStartIndex,E=M.dataEndIndex,$=M.updateId;return D.cloneElement(_,{key:_.key||"_recharts-brush",onChange:Di(m.handleBrushChange,_.props.onChange),data:T,x:L(_.props.x)?_.props.x:P.left,y:L(_.props.y)?_.props.y:P.top+P.height+P.brushBottom-(A.bottom||0),width:L(_.props.width)?_.props.width:P.width,startIndex:j,endIndex:E,updateId:"brush-".concat($)})}),X(m,"renderReferenceElement",function(_,O,A){if(!_)return null;var T=m,M=T.clipPathId,P=m.state,j=P.xAxisMap,E=P.yAxisMap,$=P.offset,C=_.type.defaultProps||{},k=_.props,R=k.xAxisId,q=R===void 0?C.xAxisId:R,B=k.yAxisId,U=B===void 0?C.yAxisId:B;return D.cloneElement(_,{key:_.key||"".concat(O,"-").concat(A),xAxis:j[q],yAxis:E[U],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:M})}),X(m,"renderActivePoints",function(_){var O=_.item,A=_.activePoint,T=_.basePoint,M=_.childIndex,P=_.isRange,j=[],E=O.props.key,$=O.item.type.defaultProps!==void 0?I(I({},O.item.type.defaultProps),O.item.props):O.item.props,C=$.activeDot,k=$.dataKey,R=I(I({index:M,dataKey:k,cx:A.x,cy:A.y,r:4,fill:rp(O.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},G(C,!1)),Hi(C));return j.push(g.renderActiveDot(C,R,"".concat(E,"-activePoint-").concat(M))),T?j.push(g.renderActiveDot(C,I(I({},R),{},{cx:T.x,cy:T.y}),"".concat(E,"-basePoint-").concat(M))):P&&j.push(null),j}),X(m,"renderGraphicChild",function(_,O,A){var T=m.filterFormatItem(_,O,A);if(!T)return null;var M=m.getTooltipEventType(),P=m.state,j=P.isTooltipActive,E=P.tooltipAxis,$=P.activeTooltipIndex,C=P.activeLabel,k=m.props.children,R=He(k,_t),q=T.props,B=q.points,U=q.isRange,H=q.baseLine,W=T.item.type.defaultProps!==void 0?I(I({},T.item.type.defaultProps),T.item.props):T.item.props,K=W.activeDot,oe=W.hide,ie=W.activeBar,je=W.activeShape,nt=!!(!oe&&j&&R&&(K||ie||je)),Se={};M!=="axis"&&R&&R.props.trigger==="click"?Se={onClick:Di(m.handleItemMouseEnter,_.props.onClick)}:M!=="axis"&&(Se={onMouseLeave:Di(m.handleItemMouseLeave,_.props.onMouseLeave),onMouseEnter:Di(m.handleItemMouseEnter,_.props.onMouseEnter)});var F=D.cloneElement(_,I(I({},T.props),Se));function Y(Vt){return typeof E.dataKey=="function"?E.dataKey(Vt.payload):null}if(nt)if($>=0){var J,N;if(E.dataKey&&!E.allowDuplicatedCategory){var de=typeof E.dataKey=="function"?Y:"payload.".concat(E.dataKey.toString());J=Ui(B,de,C),N=U&&H&&Ui(H,de,C)}else J=B==null?void 0:B[$],N=U&&H&&H[$];if(je||ie){var te=_.props.activeIndex!==void 0?_.props.activeIndex:$;return[D.cloneElement(_,I(I(I({},T.props),Se),{},{activeIndex:te})),null,null]}if(!Z(J))return[F].concat(on(m.renderActivePoints({item:T,activePoint:J,basePoint:N,childIndex:$,isRange:U})))}else{var ge,be=(ge=m.getItemByXY(m.state.activeCoordinate))!==null&&ge!==void 0?ge:{graphicalItem:F},Be=be.graphicalItem,Rt=Be.item,_r=Rt===void 0?_:Rt,Pi=Be.childIndex,Xt=I(I(I({},T.props),Se),{},{activeIndex:Pi});return[D.cloneElement(_r,Xt),null,null]}return U?[F,null,null]:[F,null]}),X(m,"renderCustomized",function(_,O,A){return D.cloneElement(_,I(I({key:"recharts-customized-".concat(A)},m.props),m.state))}),X(m,"renderMap",{CartesianGrid:{handler:Wi,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:Wi},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:Wi},YAxis:{handler:Wi},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((x=b.id)!==null&&x!==void 0?x:cn("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=d_(m.triggeredAfterMouseMove,(w=b.throttleDelay)!==null&&w!==void 0?w:1e3/60),m.state={},m}return Sq(g,v),xq(g,[{key:"componentDidMount",value:function(){var x,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,w=x.children,m=x.data,_=x.height,O=x.layout,A=He(w,_t);if(A){var T=A.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,P=sh(this.state,m,T,M),j=this.state.tooltipTicks[T].coordinate,E=(this.state.offset.top+_)/2,$=O==="horizontal",C=$?{x:j,y:E}:{y:j,x:E},k=this.state.formattedGraphicalItems.find(function(q){var B=q.item;return B.type.name==="Scatter"});k&&(C=I(I({},C),k.props.points[T].tooltipPosition),P=k.props.points[T].tooltipPayload);var R={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:M,activePayload:P,activeCoordinate:C};this.setState(R),this.renderCursor(A),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var m,_;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0}})}return null}},{key:"componentDidUpdate",value:function(x){Fl([He(x.children,_t)],[He(this.props.children,_t)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=He(this.props.children,_t);if(x&&typeof x.props.shared=="boolean"){var w=x.props.shared?"axis":"item";return u.indexOf(w)>=0?w:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var w=this.container,m=w.getBoundingClientRect(),_=LP(m),O={chartX:Math.round(x.pageX-_.left),chartY:Math.round(x.pageY-_.top)},A=m.width/w.offsetWidth||1,T=this.inRange(O.chartX,O.chartY,A);if(!T)return null;var M=this.state,P=M.xAxisMap,j=M.yAxisMap,E=this.getTooltipEventType(),$=c0(this.state,this.props.data,this.props.layout,T);if(E!=="axis"&&P&&j){var C=Dt(P).scale,k=Dt(j).scale,R=C&&C.invert?C.invert(O.chartX):null,q=k&&k.invert?k.invert(O.chartY):null;return I(I({},O),{},{xValue:R,yValue:q},$)}return $?I(I({},O),$):null}},{key:"inRange",value:function(x,w){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,_=this.props.layout,O=x/m,A=w/m;if(_==="horizontal"||_==="vertical"){var T=this.state.offset,M=O>=T.left&&O<=T.left+T.width&&A>=T.top&&A<=T.top+T.height;return M?{x:O,y:A}:null}var P=this.state,j=P.angleAxisMap,E=P.radiusAxisMap;if(j&&E){var $=Dt(j);return dg({x:O,y:A},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,w=this.getTooltipEventType(),m=He(x,_t),_={};m&&w==="axis"&&(m.props.trigger==="click"?_={onClick:this.handleClick}:_={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var O=Hi(this.props,this.handleOuterEvent);return I(I({},O),_)}},{key:"addListener",value:function(){Nl.on(Dl,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Nl.removeListener(Dl,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,w,m){for(var _=this.state.formattedGraphicalItems,O=0,A=_.length;O<A;O++){var T=_[O];if(T.item===x||T.props.key===x.key||w===Pt(T.item.type)&&m===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,w=this.state.offset,m=w.left,_=w.top,O=w.height,A=w.width;return S.createElement("defs",null,S.createElement("clipPath",{id:x},S.createElement("rect",{x:m,y:_,height:O,width:A})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(w,m){var _=o0(m,2),O=_[0],A=_[1];return I(I({},w),{},X({},O,A.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(w,m){var _=o0(m,2),O=_[0],A=_[1];return I(I({},w),{},X({},O,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(x){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(x){var w=this.state,m=w.formattedGraphicalItems,_=w.activeItem;if(m&&m.length)for(var O=0,A=m.length;O<A;O++){var T=m[O],M=T.props,P=T.item,j=P.type.defaultProps!==void 0?I(I({},P.type.defaultProps),P.props):P.props,E=Pt(P.type);if(E==="Bar"){var $=(M.data||[]).find(function(q){return p2(x,q)});if($)return{graphicalItem:T,payload:$}}else if(E==="RadialBar"){var C=(M.data||[]).find(function(q){return dg(x,q)});if(C)return{graphicalItem:T,payload:C}}else if(xo(T,_)||wo(T,_)||li(T,_)){var k=Nk({graphicalItem:T,activeTooltipItem:_,itemData:j.data}),R=j.activeIndex===void 0?k:j.activeIndex;return{graphicalItem:I(I({},T),{},{childIndex:R}),payload:li(T,_)?j.data[k]:T.props.data[k]}}}return null}},{key:"render",value:function(){var x=this;if(!wd(this))return null;var w=this.props,m=w.children,_=w.className,O=w.width,A=w.height,T=w.style,M=w.compact,P=w.title,j=w.desc,E=u0(w,dq),$=G(E,!1);if(M)return S.createElement(Fb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement(zl,jr({},$,{width:O,height:A,title:P,desc:j}),this.renderClipPath(),Ad(m,this.renderMap)));if(this.props.accessibilityLayer){var C,k;$.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,$.role=(k=this.props.role)!==null&&k!==void 0?k:"application",$.onKeyDown=function(q){x.accessibilityManager.keyboardEvent(q)},$.onFocus=function(){x.accessibilityManager.focus()}}var R=this.parseEventsOfWrapper();return S.createElement(Fb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement("div",jr({className:ee("recharts-wrapper",_),style:I({position:"relative",cursor:"default",width:O,height:A},T)},R,{ref:function(B){x.container=B}}),S.createElement(zl,jr({},$,{width:O,height:A,title:P,desc:j,style:$q}),this.renderClipPath(),Ad(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(D.Component);X(y,"displayName",r),X(y,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),X(y,"getDerivedStateFromProps",function(v,g){var b=v.dataKey,x=v.data,w=v.children,m=v.width,_=v.height,O=v.layout,A=v.stackOffset,T=v.margin,M=g.dataStartIndex,P=g.dataEndIndex;if(g.updateId===void 0){var j=l0(v);return I(I(I({},j),{},{updateId:0},p(I(I({props:v},j),{},{updateId:0}),g)),{},{prevDataKey:b,prevData:x,prevWidth:m,prevHeight:_,prevLayout:O,prevStackOffset:A,prevMargin:T,prevChildren:w})}if(b!==g.prevDataKey||x!==g.prevData||m!==g.prevWidth||_!==g.prevHeight||O!==g.prevLayout||A!==g.prevStackOffset||!Mr(T,g.prevMargin)){var E=l0(v),$={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},C=I(I({},c0(g,x,O)),{},{updateId:g.updateId+1}),k=I(I(I({},E),$),C);return I(I(I({},k),p(I({props:v},k),g)),{},{prevDataKey:b,prevData:x,prevWidth:m,prevHeight:_,prevLayout:O,prevStackOffset:A,prevMargin:T,prevChildren:w})}if(!Fl(w,g.prevChildren)){var R,q,B,U,H=He(w,Vr),W=H&&(R=(q=H.props)===null||q===void 0?void 0:q.startIndex)!==null&&R!==void 0?R:M,K=H&&(B=(U=H.props)===null||U===void 0?void 0:U.endIndex)!==null&&B!==void 0?B:P,oe=W!==M||K!==P,ie=!Z(x),je=ie&&!oe?g.updateId:g.updateId+1;return I(I({updateId:je},p(I(I({props:v},g),{},{updateId:je,dataStartIndex:W,dataEndIndex:K}),g)),{},{prevChildren:w,dataStartIndex:W,dataEndIndex:K})}return null}),X(y,"renderActiveDot",function(v,g,b){var x;return D.isValidElement(v)?x=D.cloneElement(v,g):V(v)?x=v(g):x=S.createElement(yo,g),S.createElement(re,{className:"recharts-active-dot",key:b},x)});var d=D.forwardRef(function(g,b){return S.createElement(y,jr({},g,{ref:b}))});return d.displayName=y.displayName,d},rL=pp({chartName:"LineChart",GraphicalChild:Eo,axisComponents:[{axisType:"xAxis",AxisComp:jo},{axisType:"yAxis",AxisComp:Mo}],formatAxisMap:cw}),nL=pp({chartName:"BarChart",GraphicalChild:dn,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:jo},{axisType:"yAxis",AxisComp:Mo}],formatAxisMap:cw}),iL=pp({chartName:"PieChart",GraphicalChild:Gt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:_o},{axisType:"radiusAxis",AxisComp:go}],formatAxisMap:A$,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});export{vD as $,S0 as A,zq as B,Rh as C,Uq as D,ua as E,zn as F,Lh as G,Bj as H,cm as I,sm as J,tL as K,J_ as L,Vh as M,oo as N,EE as O,TE as P,Fr as Q,PE as R,SE as S,ca as T,Oi as U,Gh as V,Hh as W,ir as X,sa as Y,Jq as Z,nL as _,gm as a,jo as a0,Mo as a1,_t as a2,$r as a3,dn as a4,rL as a5,Eo as a6,iL as a7,Gt as a8,Ih as a9,YT as b,Kn as c,eL as d,Qq as e,BO as f,qO as g,DO as h,ct as i,RO as j,kO as k,Ya as l,NO as m,Vq as n,Zq as o,Yq as p,Kq as q,Xq as r,LO as s,Gq as t,Hq as u,gO as v,mO as w,IO as x,CO as y,$O as z};