@gyramais/gyra-design 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/package.json +85 -85
  2. package/readme.md +31 -31
  3. package/dist/components/Avatar/Avatar.d.ts +0 -10
  4. package/dist/components/Avatar/index.d.ts +0 -1
  5. package/dist/components/Avatar/index.js +0 -7
  6. package/dist/components/Avatar/index.js.map +0 -1
  7. package/dist/components/Button/Button.d.ts +0 -18
  8. package/dist/components/Button/index.d.ts +0 -1
  9. package/dist/components/Button/index.js +0 -7
  10. package/dist/components/Button/index.js.map +0 -1
  11. package/dist/components/Card/Card.d.ts +0 -17
  12. package/dist/components/Card/index.d.ts +0 -1
  13. package/dist/components/Card/index.js +0 -37
  14. package/dist/components/Card/index.js.map +0 -1
  15. package/dist/components/Chart/Chart.d.ts +0 -26
  16. package/dist/components/Chart/index.d.ts +0 -1
  17. package/dist/components/Chart/index.js +0 -28
  18. package/dist/components/Chart/index.js.map +0 -1
  19. package/dist/components/Checkbox/Checkbox.d.ts +0 -12
  20. package/dist/components/Checkbox/index.d.ts +0 -1
  21. package/dist/components/Checkbox/index.js +0 -37
  22. package/dist/components/Checkbox/index.js.map +0 -1
  23. package/dist/components/Col/Col.d.ts +0 -17
  24. package/dist/components/Col/index.d.ts +0 -1
  25. package/dist/components/Col/index.js +0 -7
  26. package/dist/components/Col/index.js.map +0 -1
  27. package/dist/components/Collapse/Collapse.d.ts +0 -10
  28. package/dist/components/Collapse/CollapseIcon.d.ts +0 -10
  29. package/dist/components/Collapse/index.d.ts +0 -2
  30. package/dist/components/Collapse/index.js +0 -37
  31. package/dist/components/Collapse/index.js.map +0 -1
  32. package/dist/components/Divider/Divider.d.ts +0 -10
  33. package/dist/components/Divider/index.d.ts +0 -1
  34. package/dist/components/Divider/index.js +0 -7
  35. package/dist/components/Divider/index.js.map +0 -1
  36. package/dist/components/Drawer/Drawer.d.ts +0 -11
  37. package/dist/components/Drawer/index.d.ts +0 -1
  38. package/dist/components/Drawer/index.js +0 -7
  39. package/dist/components/Drawer/index.js.map +0 -1
  40. package/dist/components/DropdownMenu/DropdownMenu.d.ts +0 -21
  41. package/dist/components/DropdownMenu/index.d.ts +0 -1
  42. package/dist/components/DropdownMenu/index.js +0 -7
  43. package/dist/components/DropdownMenu/index.js.map +0 -1
  44. package/dist/components/Filter/Filter.d.ts +0 -22
  45. package/dist/components/Filter/index.d.ts +0 -1
  46. package/dist/components/Filter/index.js +0 -37
  47. package/dist/components/Filter/index.js.map +0 -1
  48. package/dist/components/Form/Form.d.ts +0 -3
  49. package/dist/components/Form/Item.d.ts +0 -11
  50. package/dist/components/Form/index.d.ts +0 -1
  51. package/dist/components/Form/index.js +0 -2
  52. package/dist/components/Form/index.js.map +0 -1
  53. package/dist/components/HoverCard/HoverCard.d.ts +0 -14
  54. package/dist/components/HoverCard/index.d.ts +0 -1
  55. package/dist/components/HoverCard/index.js +0 -7
  56. package/dist/components/HoverCard/index.js.map +0 -1
  57. package/dist/components/Icon/Icon.d.ts +0 -10
  58. package/dist/components/Icon/index.d.ts +0 -1
  59. package/dist/components/Icon/index.js +0 -7
  60. package/dist/components/Icon/index.js.map +0 -1
  61. package/dist/components/IconDisplay/IconDisplay.d.ts +0 -9
  62. package/dist/components/IconDisplay/index.d.ts +0 -1
  63. package/dist/components/IconDisplay/index.js +0 -7
  64. package/dist/components/IconDisplay/index.js.map +0 -1
  65. package/dist/components/Information/Information.d.ts +0 -10
  66. package/dist/components/Information/index.d.ts +0 -1
  67. package/dist/components/Information/index.js +0 -7
  68. package/dist/components/Information/index.js.map +0 -1
  69. package/dist/components/Input/Input.d.ts +0 -17
  70. package/dist/components/Input/index.d.ts +0 -1
  71. package/dist/components/Input/index.js +0 -7
  72. package/dist/components/Input/index.js.map +0 -1
  73. package/dist/components/Label/Label.d.ts +0 -5
  74. package/dist/components/Label/index.d.ts +0 -1
  75. package/dist/components/Label/index.js +0 -2
  76. package/dist/components/Label/index.js.map +0 -1
  77. package/dist/components/Layout/Content.d.ts +0 -9
  78. package/dist/components/Layout/Header.d.ts +0 -9
  79. package/dist/components/Layout/Layout.d.ts +0 -10
  80. package/dist/components/Layout/Sider.d.ts +0 -9
  81. package/dist/components/Layout/index.d.ts +0 -4
  82. package/dist/components/Layout/index.js +0 -7
  83. package/dist/components/Layout/index.js.map +0 -1
  84. package/dist/components/List/List.d.ts +0 -14
  85. package/dist/components/List/index.d.ts +0 -1
  86. package/dist/components/List/index.js +0 -8
  87. package/dist/components/List/index.js.map +0 -1
  88. package/dist/components/Loading/Loading.d.ts +0 -10
  89. package/dist/components/Loading/index.d.ts +0 -1
  90. package/dist/components/Loading/index.js +0 -7
  91. package/dist/components/Loading/index.js.map +0 -1
  92. package/dist/components/Logo/Logo.d.ts +0 -11
  93. package/dist/components/Logo/index.d.ts +0 -1
  94. package/dist/components/Logo/index.js +0 -7
  95. package/dist/components/Logo/index.js.map +0 -1
  96. package/dist/components/Menubar/Menubar.d.ts +0 -24
  97. package/dist/components/Menubar/index.d.ts +0 -1
  98. package/dist/components/Menubar/index.js +0 -7
  99. package/dist/components/Menubar/index.js.map +0 -1
  100. package/dist/components/Row/Row.d.ts +0 -18
  101. package/dist/components/Row/index.d.ts +0 -1
  102. package/dist/components/Row/index.js +0 -7
  103. package/dist/components/Row/index.js.map +0 -1
  104. package/dist/components/Switch/Switch.d.ts +0 -11
  105. package/dist/components/Switch/index.d.ts +0 -1
  106. package/dist/components/Switch/index.js +0 -7
  107. package/dist/components/Switch/index.js.map +0 -1
  108. package/dist/components/Table/Table.d.ts +0 -20
  109. package/dist/components/Table/index.d.ts +0 -1
  110. package/dist/components/Table/index.js +0 -37
  111. package/dist/components/Table/index.js.map +0 -1
  112. package/dist/components/Tabs/Tabs.d.ts +0 -15
  113. package/dist/components/Tabs/index.d.ts +0 -1
  114. package/dist/components/Tabs/index.js +0 -7
  115. package/dist/components/Tabs/index.js.map +0 -1
  116. package/dist/components/Tag/Tag.d.ts +0 -10
  117. package/dist/components/Tag/index.d.ts +0 -1
  118. package/dist/components/Tag/index.js +0 -7
  119. package/dist/components/Tag/index.js.map +0 -1
  120. package/dist/components/Toast/Toast.d.ts +0 -4
  121. package/dist/components/Toast/index.d.ts +0 -1
  122. package/dist/components/Toast/index.js +0 -2
  123. package/dist/components/Toast/index.js.map +0 -1
  124. package/dist/components/Tooltip/Tooltip.d.ts +0 -14
  125. package/dist/components/Tooltip/index.d.ts +0 -1
  126. package/dist/components/Tooltip/index.js +0 -7
  127. package/dist/components/Tooltip/index.js.map +0 -1
  128. package/dist/index.css +0 -3778
  129. package/dist/index.d.ts +0 -19
  130. package/dist/index.js +0 -2
  131. package/dist/index.js.map +0 -1
  132. package/dist/shadcn/checkbox.d.ts +0 -4
  133. package/dist/shadcn/dropdown-menu.d.ts +0 -27
  134. package/dist/shadcn/form.d.ts +0 -22
  135. package/dist/shadcn/hover-card.d.ts +0 -6
  136. package/dist/shadcn/label.d.ts +0 -5
  137. package/dist/shadcn/lib/utils.d.ts +0 -2
  138. package/dist/shadcn/menubar.d.ts +0 -31
  139. package/dist/shadcn/switch.d.ts +0 -4
  140. package/dist/shadcn/table.d.ts +0 -10
  141. package/dist/shadcn/tabs.d.ts +0 -7
  142. package/dist/shadcn/tooltip.d.ts +0 -7
  143. package/dist/theme.d.ts +0 -18
@@ -1,28 +0,0 @@
1
- "use client";import t,{isValidElement as e,Children as r,PureComponent as n,cloneElement as o,forwardRef as i,useRef as a,useImperativeHandle as c,useState as u,useCallback as l,useEffect as s,useMemo as f,createElement as p,Component as h}from"react";var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var v,m={exports:{}};
2
- /*!
3
- Copyright (c) 2018 Jed Watson.
4
- Licensed under the MIT License (MIT), see
5
- http://jedwatson.github.io/classnames
6
- */v=m,function(){var t={}.hasOwnProperty;function e(){for(var t="",e=0;e<arguments.length;e++){var o=arguments[e];o&&(t=n(t,r(o)))}return t}function r(r){if("string"==typeof r||"number"==typeof r)return r;if("object"!=typeof r)return"";if(Array.isArray(r))return e.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var i in r)t.call(r,i)&&r[i]&&(o=n(o,i));return o}function n(t,e){return e?t?t+" "+e:t+e:t}v.exports?(e.default=e,v.exports=e):window.classNames=e}();var b=d(m.exports);function g(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=g(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function x(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=g(t))&&(n&&(n+=" "),n+=e);return n}var w=Array.isArray,O="object"==typeof y&&y&&y.Object===Object&&y,S=O,j="object"==typeof self&&self&&self.Object===Object&&self,A=S||j||Function("return this")(),P=A.Symbol,k=P,E=Object.prototype,M=E.hasOwnProperty,T=E.toString,_=k?k.toStringTag:void 0;var C=function(t){var e=M.call(t,_),r=t[_];try{t[_]=void 0;var n=!0}catch(t){}var o=T.call(t);return n&&(e?t[_]=r:delete t[_]),o},I=Object.prototype.toString;var D=C,N=function(t){return I.call(t)},R=P?P.toStringTag:void 0;var B=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":R&&R in Object(t)?D(t):N(t)};var L=function(t){return null!=t&&"object"==typeof t},$=B,z=L;var U=function(t){return"symbol"==typeof t||z(t)&&"[object Symbol]"==$(t)},F=w,q=U,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/;var X=function(t,e){if(F(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!q(t))||(V.test(t)||!W.test(t)||null!=e&&t in Object(e))};var H=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},G=d(H),Y=B,K=H;var Z,J=function(t){if(!K(t))return!1;var e=Y(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Q=d(J),tt=A["__core-js_shared__"],et=(Z=/[^.]+$/.exec(tt&&tt.keys&&tt.keys.IE_PROTO||""))?"Symbol(src)_1."+Z:"";var rt=function(t){return!!et&&et in t},nt=Function.prototype.toString;var ot=function(t){if(null!=t){try{return nt.call(t)}catch(t){}try{return t+""}catch(t){}}return""},it=J,at=rt,ct=H,ut=ot,lt=/^\[object .+?Constructor\]$/,st=Function.prototype,ft=Object.prototype,pt=st.toString,ht=ft.hasOwnProperty,yt=RegExp("^"+pt.call(ht).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var dt=function(t,e){return null==t?void 0:t[e]},vt=function(t){return!(!ct(t)||at(t))&&(it(t)?yt:lt).test(ut(t))},mt=dt;var bt=function(t,e){var r=mt(t,e);return vt(r)?r:void 0},gt=bt(Object,"create"),xt=gt;var wt=function(){this.__data__=xt?xt(null):{},this.size=0};var Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},St=gt,jt=Object.prototype.hasOwnProperty;var At=function(t){var e=this.__data__;if(St){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return jt.call(e,t)?e[t]:void 0},Pt=gt,kt=Object.prototype.hasOwnProperty;var Et=gt;var Mt=wt,Tt=Ot,_t=At,Ct=function(t){var e=this.__data__;return Pt?void 0!==e[t]:kt.call(e,t)},It=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Et&&void 0===e?"__lodash_hash_undefined__":e,this};function Dt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Dt.prototype.clear=Mt,Dt.prototype.delete=Tt,Dt.prototype.get=_t,Dt.prototype.has=Ct,Dt.prototype.set=It;var Nt=Dt;var Rt=function(){this.__data__=[],this.size=0};var Bt=function(t,e){return t===e||t!=t&&e!=e},Lt=Bt;var $t=function(t,e){for(var r=t.length;r--;)if(Lt(t[r][0],e))return r;return-1},zt=$t,Ut=Array.prototype.splice;var Ft=$t;var qt=$t;var Wt=$t;var Vt=Rt,Xt=function(t){var e=this.__data__,r=zt(e,t);return!(r<0)&&(r==e.length-1?e.pop():Ut.call(e,r,1),--this.size,!0)},Ht=function(t){var e=this.__data__,r=Ft(e,t);return r<0?void 0:e[r][1]},Gt=function(t){return qt(this.__data__,t)>-1},Yt=function(t,e){var r=this.__data__,n=Wt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function Kt(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Kt.prototype.clear=Vt,Kt.prototype.delete=Xt,Kt.prototype.get=Ht,Kt.prototype.has=Gt,Kt.prototype.set=Yt;var Zt=Kt,Jt=bt(A,"Map"),Qt=Nt,te=Zt,ee=Jt;var re=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var ne=function(t,e){var r=t.__data__;return re(e)?r["string"==typeof e?"string":"hash"]:r.map},oe=ne;var ie=ne;var ae=ne;var ce=ne;var ue=function(){this.size=0,this.__data__={hash:new Qt,map:new(ee||te),string:new Qt}},le=function(t){var e=oe(this,t).delete(t);return this.size-=e?1:0,e},se=function(t){return ie(this,t).get(t)},fe=function(t){return ae(this,t).has(t)},pe=function(t,e){var r=ce(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function he(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}he.prototype.clear=ue,he.prototype.delete=le,he.prototype.get=se,he.prototype.has=fe,he.prototype.set=pe;var ye=he,de=ye;function ve(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(ve.Cache||de),r}ve.Cache=de;var me=ve;var be=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ge=/\\(\\)?/g,xe=function(t){var e=me(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(be,(function(t,r,n,o){e.push(n?o.replace(ge,"$1"):r||t)})),e})),we=xe;var Oe=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},Se=Oe,je=w,Ae=U,Pe=P?P.prototype:void 0,ke=Pe?Pe.toString:void 0;var Ee=function t(e){if("string"==typeof e)return e;if(je(e))return Se(e,t)+"";if(Ae(e))return ke?ke.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r},Me=Ee;var Te=function(t){return null==t?"":Me(t)},_e=w,Ce=X,Ie=we,De=Te;var Ne=function(t,e){return _e(t)?t:Ce(t,e)?[t]:Ie(De(t))},Re=U;var Be=function(t){if("string"==typeof t||Re(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e},Le=Ne,$e=Be;var ze=function(t,e){for(var r=0,n=(e=Le(e,t)).length;null!=t&&r<n;)t=t[$e(e[r++])];return r&&r==n?t:void 0},Ue=ze;var Fe=function(t,e,r){var n=null==t?void 0:Ue(t,e);return void 0===n?r:n},qe=d(Fe);var We=d((function(t){return null==t})),Ve=B,Xe=w,He=L;var Ge,Ye=d((function(t){return"string"==typeof t||!Xe(t)&&He(t)&&"[object String]"==Ve(t)})),Ke={exports:{}},Ze={};var Je,Qe={};
7
- /** @license React v16.13.1
8
- * react-is.development.js
9
- *
10
- * Copyright (c) Facebook, Inc. and its affiliates.
11
- *
12
- * This source code is licensed under the MIT license found in the
13
- * LICENSE file in the root directory of this source tree.
14
- */"production"===process.env.NODE_ENV?Ke.exports=function(){if(Ge)return Ze;Ge=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,d=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,m=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function g(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:switch(t=t.type){case u:case l:case n:case i:case o:case f:return t;default:switch(t=t&&t.$$typeof){case c:case s:case y:case h:case a:return t;default:return p}}case r:return p}}}function x(t){return g(t)===l}return Ze.AsyncMode=u,Ze.ConcurrentMode=l,Ze.ContextConsumer=c,Ze.ContextProvider=a,Ze.Element=e,Ze.ForwardRef=s,Ze.Fragment=n,Ze.Lazy=y,Ze.Memo=h,Ze.Portal=r,Ze.Profiler=i,Ze.StrictMode=o,Ze.Suspense=f,Ze.isAsyncMode=function(t){return x(t)||g(t)===u},Ze.isConcurrentMode=x,Ze.isContextConsumer=function(t){return g(t)===c},Ze.isContextProvider=function(t){return g(t)===a},Ze.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ze.isForwardRef=function(t){return g(t)===s},Ze.isFragment=function(t){return g(t)===n},Ze.isLazy=function(t){return g(t)===y},Ze.isMemo=function(t){return g(t)===h},Ze.isPortal=function(t){return g(t)===r},Ze.isProfiler=function(t){return g(t)===i},Ze.isStrictMode=function(t){return g(t)===o},Ze.isSuspense=function(t){return g(t)===f},Ze.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===h||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===m||t.$$typeof===b||t.$$typeof===d)},Ze.typeOf=g,Ze}():Ke.exports=(Je||(Je=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,d=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,m=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function g(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:var d=t.type;switch(d){case u:case l:case n:case i:case o:case f:return d;default:var v=d&&d.$$typeof;switch(v){case c:case s:case y:case h:case a:return v;default:return p}}case r:return p}}}var x=u,w=l,O=c,S=a,j=e,A=s,P=n,k=y,E=h,M=r,T=i,_=o,C=f,I=!1;function D(t){return g(t)===l}Qe.AsyncMode=x,Qe.ConcurrentMode=w,Qe.ContextConsumer=O,Qe.ContextProvider=S,Qe.Element=j,Qe.ForwardRef=A,Qe.Fragment=P,Qe.Lazy=k,Qe.Memo=E,Qe.Portal=M,Qe.Profiler=T,Qe.StrictMode=_,Qe.Suspense=C,Qe.isAsyncMode=function(t){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(t)||g(t)===u},Qe.isConcurrentMode=D,Qe.isContextConsumer=function(t){return g(t)===c},Qe.isContextProvider=function(t){return g(t)===a},Qe.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Qe.isForwardRef=function(t){return g(t)===s},Qe.isFragment=function(t){return g(t)===n},Qe.isLazy=function(t){return g(t)===y},Qe.isMemo=function(t){return g(t)===h},Qe.isPortal=function(t){return g(t)===r},Qe.isProfiler=function(t){return g(t)===i},Qe.isStrictMode=function(t){return g(t)===o},Qe.isSuspense=function(t){return g(t)===f},Qe.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===h||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===m||t.$$typeof===b||t.$$typeof===d)},Qe.typeOf=g}()),Qe);var tr=Ke.exports,er=B,rr=L;var nr=function(t){return"number"==typeof t||rr(t)&&"[object Number]"==er(t)},or=d(nr),ir=nr;var ar=d((function(t){return ir(t)&&t!=+t})),cr=function(t){return 0===t?0:t>0?1:-1},ur=function(t){return Ye(t)&&t.indexOf("%")===t.length-1},lr=function(t){return or(t)&&!ar(t)},sr=function(t){return lr(t)||Ye(t)},fr=0,pr=function(t){var e=++fr;return"".concat(t||"").concat(e)},hr=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!lr(t)&&!Ye(t))return n;if(ur(t)){var i=t.indexOf("%");r=e*parseFloat(t.slice(0,i))/100}else r=+t;return ar(r)&&(r=n),o&&r>e&&(r=e),r},yr=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},dr=function(t,e){return lr(t)&&lr(e)?function(r){return t+r*(e-t)}:function(){return e}};function vr(t,e,r){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):qe(t,e))===r})):null}function mr(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function br(t){"@babel/helpers - typeof";return br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},br(t)}var gr=["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"],xr=["points","pathLength"],wr={svg:["viewBox","children"],polygon:xr,polyline:xr},Or=["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"],Sr=function(t,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if(e(t)&&(n=t.props),!G(n))return null;var o={};return Object.keys(n).forEach((function(t){Or.includes(t)&&(o[t]=r||function(e){return n[t](n,e)})})),o},jr=function(t,e,r){if(!G(t)||"object"!==br(t))return null;var n=null;return Object.keys(t).forEach((function(o){var i=t[o];Or.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(t,e,r){return function(n){return t(e,r,n),null}}(i,e,r))})),n},Ar=["children"],Pr=["children"];function kr(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Er={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Mr=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},Tr=null,_r=null,Cr=function t(e){if(e===Tr&&Array.isArray(_r))return _r;var n=[];return r.forEach(e,(function(e){We(e)||(tr.isFragment(e)?n=n.concat(t(e.props.children)):n.push(e))})),_r=n,Tr=e,n};function Ir(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map((function(t){return Mr(t)})):[Mr(e)],Cr(t).forEach((function(t){var e=qe(t,"type.displayName")||qe(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function Dr(t,e){var r=Ir(t,e);return r&&r[0]}var Nr=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!lr(r)||r<=0||!lr(n)||n<=0)},Rr=["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"],Br=function(t,r,n){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var o=t;if(e(t)&&(o=t.props),!G(o))return null;var i={};return Object.keys(o).forEach((function(t){var e;(function(t,e,r,n){var o,i=null!==(o=null==wr?void 0:wr[n])&&void 0!==o?o:[];return!Q(t)&&(n&&i.includes(e)||gr.includes(e))||r&&Or.includes(e)})(null===(e=o)||void 0===e?void 0:e[t],t,r,n)&&(i[t]=o[t])})),i},Lr=function t(e,n){if(e===n)return!0;var o=r.count(e);if(o!==r.count(n))return!1;if(0===o)return!0;if(1===o)return $r(Array.isArray(e)?e[0]:e,Array.isArray(n)?n[0]:n);for(var i=0;i<o;i++){var a=e[i],c=n[i];if(Array.isArray(a)||Array.isArray(c)){if(!t(a,c))return!1}else if(!$r(a,c))return!1}return!0},$r=function(t,e){if(We(t)&&We(e))return!0;if(!We(t)&&!We(e)){var r=t.props||{},n=r.children,o=kr(r,Ar),i=e.props||{},a=i.children,c=kr(i,Pr);return n&&a?mr(o,c)&&Lr(n,a):!n&&!a&&mr(o,c)}return!1},zr=function(t,e){var r=[],n={};return Cr(t).forEach((function(t,o){if(function(t){return t&&t.type&&Ye(t.type)&&Rr.indexOf(t.type)>=0}(t))r.push(t);else if(t){var i=Mr(t.type),a=e[i]||{},c=a.handler,u=a.once;if(c&&(!u||!n[i])){var l=c(t,i,o);r.push(l),n[i]=!0}}})),r},Ur=["children","width","height","viewBox","className","style","title","desc"];function Fr(){return Fr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Fr.apply(this,arguments)}function qr(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Wr(e){var r=e.children,n=e.width,o=e.height,i=e.viewBox,a=e.className,c=e.style,u=e.title,l=e.desc,s=qr(e,Ur),f=i||{width:n,height:o,x:0,y:0},p=x("recharts-surface",a);return t.createElement("svg",Fr({},Br(s,!0,"svg"),{className:p,width:n,height:o,style:c,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),t.createElement("title",null,u),t.createElement("desc",null,l),r)}var Vr=["children","className"];function Xr(){return Xr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Xr.apply(this,arguments)}function Hr(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Gr=t.forwardRef((function(e,r){var n=e.children,o=e.className,i=Hr(e,Vr),a=x("recharts-layer",o);return t.createElement("g",Xr({className:a},Br(i,!0),{ref:r}),n)})),Yr="production"!==process.env.NODE_ENV,Kr=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(Yr&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(e.replace(/%s/g,(function(){return n[i++]})))}};var Zr=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i},Jr=Zr;var Qr=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:Jr(t,e,r)},tn=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var en=function(t){return tn.test(t)};var rn=function(t){return t.split("")},nn="\\ud800-\\udfff",on="["+nn+"]",an="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",cn="\\ud83c[\\udffb-\\udfff]",un="[^"+nn+"]",ln="(?:\\ud83c[\\udde6-\\uddff]){2}",sn="[\\ud800-\\udbff][\\udc00-\\udfff]",fn="(?:"+an+"|"+cn+")"+"?",pn="[\\ufe0e\\ufe0f]?",hn=pn+fn+("(?:\\u200d(?:"+[un,ln,sn].join("|")+")"+pn+fn+")*"),yn="(?:"+[un+an+"?",an,ln,sn,on].join("|")+")",dn=RegExp(cn+"(?="+cn+")|"+yn+hn,"g");var vn=function(t){return t.match(dn)||[]},mn=rn,bn=en,gn=vn;var xn=function(t){return bn(t)?gn(t):mn(t)},wn=Qr,On=en,Sn=xn,jn=Te;var An=function(t){return function(e){e=jn(e);var r=On(e)?Sn(e):void 0,n=r?r[0]:e.charAt(0),o=r?wn(r,1).join(""):e.slice(1);return n[t]()+o}},Pn=d(An("toUpperCase"));function kn(t){return function(){return t}}const En=Math.cos,Mn=Math.sin,Tn=Math.sqrt,_n=Math.PI,Cn=2*_n,In=Math.PI,Dn=2*In,Nn=1e-6,Rn=Dn-Nn;function Bn(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class Ln{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Bn:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Bn;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,o,i){this._append`C${+t},${+e},${+r},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(t,e,r,n,o){if(t=+t,e=+e,r=+r,n=+n,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,c=r-t,u=n-e,l=i-t,s=a-e,f=l*l+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>Nn)if(Math.abs(s*c-u*l)>Nn&&o){let p=r-i,h=n-a,y=c*c+u*u,d=p*p+h*h,v=Math.sqrt(y),m=Math.sqrt(f),b=o*Math.tan((In-Math.acos((y+f-d)/(2*v*m)))/2),g=b/m,x=b/v;Math.abs(g-1)>Nn&&this._append`L${t+g*l},${e+g*s}`,this._append`A${o},${o},0,0,${+(s*p>l*h)},${this._x1=t+x*c},${this._y1=e+x*u}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,r,n,o,i){if(t=+t,e=+e,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),u=t+a,l=e+c,s=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Nn||Math.abs(this._y1-l)>Nn)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%Dn+Dn),f>Rn?this._append`A${r},${r},0,1,${s},${t-a},${e-c}A${r},${r},0,1,${s},${this._x1=u},${this._y1=l}`:f>Nn&&this._append`A${r},${r},0,${+(f>=In)},${s},${this._x1=t+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function $n(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);e=t}return t},()=>new Ln(e)}function zn(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Un(t){this._context=t}function Fn(t){return new Un(t)}function qn(t){return t[0]}function Wn(t){return t[1]}function Vn(t,e){var r=kn(!0),n=null,o=Fn,i=null,a=$n(c);function c(c){var u,l,s,f=(c=zn(c)).length,p=!1;for(null==n&&(i=o(s=a())),u=0;u<=f;++u)!(u<f&&r(l=c[u],u,c))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(l,u,c),+e(l,u,c));if(s)return i=null,s+""||null}return t="function"==typeof t?t:void 0===t?qn:kn(t),e="function"==typeof e?e:void 0===e?Wn:kn(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:kn(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:kn(+t),c):e},c.defined=function(t){return arguments.length?(r="function"==typeof t?t:kn(!!t),c):r},c.curve=function(t){return arguments.length?(o=t,null!=n&&(i=o(n)),c):o},c.context=function(t){return arguments.length?(null==t?n=i=null:i=o(n=t),c):n},c}function Xn(t,e,r){var n=null,o=kn(!0),i=null,a=Fn,c=null,u=$n(l);function l(l){var s,f,p,h,y,d=(l=zn(l)).length,v=!1,m=new Array(d),b=new Array(d);for(null==i&&(c=a(y=u())),s=0;s<=d;++s){if(!(s<d&&o(h=l[s],s,l))===v)if(v=!v)f=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),p=s-1;p>=f;--p)c.point(m[p],b[p]);c.lineEnd(),c.areaEnd()}v&&(m[s]=+t(h,s,l),b[s]=+e(h,s,l),c.point(n?+n(h,s,l):m[s],r?+r(h,s,l):b[s]))}if(y)return c=null,y+""||null}function s(){return Vn().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?qn:kn(+t),e="function"==typeof e?e:kn(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?Wn:kn(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:kn(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:kn(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:kn(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:kn(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:kn(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:kn(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:kn(!!t),l):o},l.curve=function(t){return arguments.length?(a=t,null!=i&&(c=a(i)),l):a},l.context=function(t){return arguments.length?(null==t?i=c=null:c=a(i=t),l):i},l}Un.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};class Hn{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}var Gn={draw(t,e){const r=Tn(e/_n);t.moveTo(r,0),t.arc(0,0,r,0,Cn)}},Yn={draw(t,e){const r=Tn(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}};const Kn=Tn(1/3),Zn=2*Kn;var Jn={draw(t,e){const r=Tn(e/Zn),n=r*Kn;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Qn={draw(t,e){const r=Tn(e),n=-r/2;t.rect(n,n,r,r)}};const to=Mn(_n/10)/Mn(7*_n/10),eo=Mn(Cn/10)*to,ro=-En(Cn/10)*to;var no={draw(t,e){const r=Tn(.8908130915292852*e),n=eo*r,o=ro*r;t.moveTo(0,-r),t.lineTo(n,o);for(let e=1;e<5;++e){const i=Cn*e/5,a=En(i),c=Mn(i);t.lineTo(c*r,-a*r),t.lineTo(a*n-c*o,c*n+a*o)}t.closePath()}};const oo=Tn(3);var io={draw(t,e){const r=-Tn(e/(3*oo));t.moveTo(0,2*r),t.lineTo(-oo*r,-r),t.lineTo(oo*r,-r),t.closePath()}};const ao=-.5,co=Tn(3)/2,uo=1/Tn(12),lo=3*(uo/2+1);var so={draw(t,e){const r=Tn(e/lo),n=r/2,o=r*uo,i=n,a=r*uo+r,c=-i,u=a;t.moveTo(n,o),t.lineTo(i,a),t.lineTo(c,u),t.lineTo(ao*n-co*o,co*n+ao*o),t.lineTo(ao*i-co*a,co*i+ao*a),t.lineTo(ao*c-co*u,co*c+ao*u),t.lineTo(ao*n+co*o,ao*o-co*n),t.lineTo(ao*i+co*a,ao*a-co*i),t.lineTo(ao*c+co*u,ao*u-co*c),t.closePath()}};function fo(){}function po(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function ho(t){this._context=t}function yo(t){this._context=t}function vo(t){this._context=t}function mo(t){this._context=t}function bo(t){return t<0?-1:1}function go(t,e,r){var n=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0),c=(i*o+a*n)/(n+o);return(bo(i)+bo(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(c))||0}function xo(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function wo(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,c=(i-n)/3;t._context.bezierCurveTo(n+c,o+c*e,i-c,a-c*r,i,a)}function Oo(t){this._context=t}function So(t){this._context=new jo(t)}function jo(t){this._context=t}function Ao(t){this._context=t}function Po(t){var e,r,n=t.length-1,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=o[e]/i[e-1],i[e]-=r,a[e]-=r*a[e-1];for(o[n-1]=a[n-1]/i[n-1],e=n-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[n-1]=(t[n]+o[n-1])/2,e=0;e<n-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function ko(t,e){this._context=t,this._t=e}function Eo(t,e){if((o=t.length)>1)for(var r,n,o,i=1,a=t[e[0]],c=a.length;i<o;++i)for(n=a,a=t[e[i]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Mo(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function To(t,e){return t[e]}function _o(t){const e=[];return e.key=t,e}function Co(t){"@babel/helpers - typeof";return Co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Co(t)}ho.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:po(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:po(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},yo.prototype={areaStart:fo,areaEnd:fo,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)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:po(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},vo.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,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+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:po(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},mo.prototype={areaStart:fo,areaEnd:fo,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Oo.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:wo(this,this._t0,xo(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,wo(this,xo(this,r=go(this,t,e)),r);break;default:wo(this,this._t0,r=go(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(So.prototype=Object.create(Oo.prototype)).point=function(t,e){Oo.prototype.point.call(this,e,t)},jo.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,o,i){this._context.bezierCurveTo(e,t,n,r,i,o)}},Ao.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=Po(t),o=Po(e),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},ko.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&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var Io=["type","size","sizeType"];function Do(){return Do=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Do.apply(this,arguments)}function No(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ro(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?No(Object(r),!0).forEach((function(e){Bo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):No(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Bo(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Co(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Co(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Co(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lo(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var $o={symbolCircle:Gn,symbolCross:Yn,symbolDiamond:Jn,symbolSquare:Qn,symbolStar:no,symbolTriangle:io,symbolWye:so},zo=Math.PI/180,Uo=function(e){var r,n,o=e.type,i=void 0===o?"circle":o,a=e.size,c=void 0===a?64:a,u=e.sizeType,l=void 0===u?"area":u,s=Ro(Ro({},Lo(e,Io)),{},{type:i,size:c,sizeType:l}),f=s.className,p=s.cx,h=s.cy,y=Br(s,!0);return p===+p&&h===+h&&c===+c?t.createElement("path",Do({},y,{className:x("recharts-symbols",f),transform:"translate(".concat(p,", ").concat(h,")"),d:(r=function(t){var e="symbol".concat(Pn(t));return $o[e]||Gn}(i),n=function(t,e){let r=null,n=$n(o);function o(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t="function"==typeof t?t:kn(t||Gn),e="function"==typeof e?e:kn(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:kn(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:kn(+t),o):e},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o}().type(r).size(function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*zo;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),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}}(c,l,i)),n())})):null};function Fo(t){"@babel/helpers - typeof";return Fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fo(t)}function qo(){return qo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qo.apply(this,arguments)}function Wo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vo(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ko(n.key),n)}}function Xo(t,e){return Xo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xo(t,e)}function Ho(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Go(t);if(e){var o=Go(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Fo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function Go(t){return Go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Go(t)}function Yo(t,e,r){return(e=Ko(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ko(t){var e=function(t,e){if("object"!==Fo(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Fo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Fo(e)?e:String(e)}Uo.registerSymbol=function(t,e){$o["symbol".concat(Pn(t))]=e};var Zo=32,Jo=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xo(t,e)}(c,n);var r,o,i,a=Ho(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return r=c,o=[{key:"renderIcon",value:function(e){var r=this.props.inactiveColor,n=16,o=Zo/6,i=Zo/3,a=e.inactive?r:e.color;if("plainline"===e.type)return t.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:Zo,y2:n,className:"recharts-legend-icon"});if("line"===e.type)return t.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(n,"h").concat(i,"\n A").concat(o,",").concat(o,",0,1,1,").concat(2*i,",").concat(n,"\n H").concat(Zo,"M").concat(2*i,",").concat(n,"\n A").concat(o,",").concat(o,",0,1,1,").concat(i,",").concat(n),className:"recharts-legend-icon"});if("rect"===e.type)return t.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(Zo,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(t.isValidElement(e.legendIcon)){var c=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wo(Object(r),!0).forEach((function(e){Yo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wo(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e);return delete c.legendIcon,t.cloneElement(e.legendIcon,c)}return t.createElement(Uo,{fill:a,cx:n,cy:n,size:Zo,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,r=this.props,n=r.payload,o=r.iconSize,i=r.layout,a=r.formatter,c=r.inactiveColor,u={x:0,y:0,width:Zo,height:Zo},l={display:"horizontal"===i?"inline-block":"block",marginRight:10},s={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(r,n){var i,f=r.formatter||a,p=x((Yo(i={"recharts-legend-item":!0},"legend-item-".concat(n),!0),Yo(i,"inactive",r.inactive),i));if("none"===r.type)return null;var h=Q(r.value)?null:r.value;Kr(!Q(r.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 y=r.inactive?c:r.color;return t.createElement("li",qo({className:p,style:l,key:"legend-item-".concat(n)},jr(e.props,r,n)),t.createElement(Wr,{width:o,height:o,viewBox:u,style:s},e.renderIcon(r)),t.createElement("span",{className:"recharts-legend-item-text",style:{color:y}},f?f(h,r,n):h))}))}},{key:"render",value:function(){var e=this.props,r=e.payload,n=e.layout,o=e.align;if(!r||!r.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?o:"left"};return t.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],o&&Vo(r.prototype,o),i&&Vo(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}();Yo(Jo,"displayName","Legend"),Yo(Jo,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Qo=Zt;var ti=Zt,ei=Jt,ri=ye;var ni=Zt,oi=function(){this.__data__=new Qo,this.size=0},ii=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},ai=function(t){return this.__data__.get(t)},ci=function(t){return this.__data__.has(t)},ui=function(t,e){var r=this.__data__;if(r instanceof ti){var n=r.__data__;if(!ei||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new ri(n)}return r.set(t,e),this.size=r.size,this};function li(t){var e=this.__data__=new ni(t);this.size=e.size}li.prototype.clear=oi,li.prototype.delete=ii,li.prototype.get=ai,li.prototype.has=ci,li.prototype.set=ui;var si=li;var fi=ye,pi=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},hi=function(t){return this.__data__.has(t)};function yi(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new fi;++e<r;)this.add(t[e])}yi.prototype.add=yi.prototype.push=pi,yi.prototype.has=hi;var di=yi;var vi=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1};var mi=function(t,e){return t.has(e)},bi=di,gi=vi,xi=mi;var wi=function(t,e,r,n,o,i){var a=1&r,c=t.length,u=e.length;if(c!=u&&!(a&&u>c))return!1;var l=i.get(t),s=i.get(e);if(l&&s)return l==e&&s==t;var f=-1,p=!0,h=2&r?new bi:void 0;for(i.set(t,e),i.set(e,t);++f<c;){var y=t[f],d=e[f];if(n)var v=a?n(d,y,f,e,t,i):n(y,d,f,t,e,i);if(void 0!==v){if(v)continue;p=!1;break}if(h){if(!gi(e,(function(t,e){if(!xi(h,e)&&(y===t||o(y,t,r,n,i)))return h.push(e)}))){p=!1;break}}else if(y!==d&&!o(y,d,r,n,i)){p=!1;break}}return i.delete(t),i.delete(e),p};var Oi=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r};var Si=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r},ji=A.Uint8Array,Ai=Bt,Pi=wi,ki=Oi,Ei=Si,Mi=P?P.prototype:void 0,Ti=Mi?Mi.valueOf:void 0;var _i=function(t,e,r,n,o,i,a){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new ji(t),new ji(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ai(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var c=ki;case"[object Set]":var u=1&n;if(c||(c=Ei),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;n|=2,a.set(t,e);var s=Pi(c(t),c(e),n,o,i,a);return a.delete(t),s;case"[object Symbol]":if(Ti)return Ti.call(t)==Ti.call(e)}return!1};var Ci=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t},Ii=Ci,Di=w;var Ni=function(t,e,r){var n=e(t);return Di(t)?n:Ii(n,r(t))};var Ri=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i};var Bi=Ri,Li=function(){return[]},$i=Object.prototype.propertyIsEnumerable,zi=Object.getOwnPropertySymbols,Ui=zi?function(t){return null==t?[]:(t=Object(t),Bi(zi(t),(function(e){return $i.call(t,e)})))}:Li,Fi=Ui;var qi=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n},Wi=B,Vi=L;var Xi=function(t){return Vi(t)&&"[object Arguments]"==Wi(t)},Hi=L,Gi=Object.prototype,Yi=Gi.hasOwnProperty,Ki=Gi.propertyIsEnumerable,Zi=Xi(function(){return arguments}())?Xi:function(t){return Hi(t)&&Yi.call(t,"callee")&&!Ki.call(t,"callee")},Ji={exports:{}};var Qi=function(){return!1};!function(t,e){var r=A,n=Qi,o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;t.exports=c}(Ji,Ji.exports);var ta=Ji.exports,ea=/^(?:0|[1-9]\d*)$/;var ra=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&ea.test(t))&&t>-1&&t%1==0&&t<e};var na=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},oa=B,ia=na,aa=L,ca={};ca["[object Float32Array]"]=ca["[object Float64Array]"]=ca["[object Int8Array]"]=ca["[object Int16Array]"]=ca["[object Int32Array]"]=ca["[object Uint8Array]"]=ca["[object Uint8ClampedArray]"]=ca["[object Uint16Array]"]=ca["[object Uint32Array]"]=!0,ca["[object Arguments]"]=ca["[object Array]"]=ca["[object ArrayBuffer]"]=ca["[object Boolean]"]=ca["[object DataView]"]=ca["[object Date]"]=ca["[object Error]"]=ca["[object Function]"]=ca["[object Map]"]=ca["[object Number]"]=ca["[object Object]"]=ca["[object RegExp]"]=ca["[object Set]"]=ca["[object String]"]=ca["[object WeakMap]"]=!1;var ua=function(t){return aa(t)&&ia(t.length)&&!!ca[oa(t)]};var la=function(t){return function(e){return t(e)}},sa={exports:{}};!function(t,e){var r=O,n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=a}(sa,sa.exports);var fa=sa.exports,pa=ua,ha=la,ya=fa&&fa.isTypedArray,da=ya?ha(ya):pa,va=qi,ma=Zi,ba=w,ga=ta,xa=ra,wa=da,Oa=Object.prototype.hasOwnProperty;var Sa=function(t,e){var r=ba(t),n=!r&&ma(t),o=!r&&!n&&ga(t),i=!r&&!n&&!o&&wa(t),a=r||n||o||i,c=a?va(t.length,String):[],u=c.length;for(var l in t)!e&&!Oa.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||xa(l,u))||c.push(l);return c},ja=Object.prototype;var Aa=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ja)};var Pa=function(t,e){return function(r){return t(e(r))}},ka=Pa(Object.keys,Object),Ea=Aa,Ma=ka,Ta=Object.prototype.hasOwnProperty;var _a=function(t){if(!Ea(t))return Ma(t);var e=[];for(var r in Object(t))Ta.call(t,r)&&"constructor"!=r&&e.push(r);return e},Ca=J,Ia=na;var Da=function(t){return null!=t&&Ia(t.length)&&!Ca(t)},Na=Sa,Ra=_a,Ba=Da;var La=function(t){return Ba(t)?Na(t):Ra(t)},$a=Ni,za=Fi,Ua=La;var Fa=function(t){return $a(t,Ua,za)},qa=Fa,Wa=Object.prototype.hasOwnProperty;var Va=function(t,e,r,n,o,i){var a=1&r,c=qa(t),u=c.length;if(u!=qa(e).length&&!a)return!1;for(var l=u;l--;){var s=c[l];if(!(a?s in e:Wa.call(e,s)))return!1}var f=i.get(t),p=i.get(e);if(f&&p)return f==e&&p==t;var h=!0;i.set(t,e),i.set(e,t);for(var y=a;++l<u;){var d=t[s=c[l]],v=e[s];if(n)var m=a?n(v,d,s,e,t,i):n(d,v,s,t,e,i);if(!(void 0===m?d===v||o(d,v,r,n,i):m)){h=!1;break}y||(y="constructor"==s)}if(h&&!y){var b=t.constructor,g=e.constructor;b==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof g&&g instanceof g||(h=!1)}return i.delete(t),i.delete(e),h},Xa=bt(A,"DataView"),Ha=bt(A,"Promise"),Ga=bt(A,"Set"),Ya=Xa,Ka=Jt,Za=Ha,Ja=Ga,Qa=bt(A,"WeakMap"),tc=B,ec=ot,rc="[object Map]",nc="[object Promise]",oc="[object Set]",ic="[object WeakMap]",ac="[object DataView]",cc=ec(Ya),uc=ec(Ka),lc=ec(Za),sc=ec(Ja),fc=ec(Qa),pc=tc;(Ya&&pc(new Ya(new ArrayBuffer(1)))!=ac||Ka&&pc(new Ka)!=rc||Za&&pc(Za.resolve())!=nc||Ja&&pc(new Ja)!=oc||Qa&&pc(new Qa)!=ic)&&(pc=function(t){var e=tc(t),r="[object Object]"==e?t.constructor:void 0,n=r?ec(r):"";if(n)switch(n){case cc:return ac;case uc:return rc;case lc:return nc;case sc:return oc;case fc:return ic}return e});var hc=si,yc=wi,dc=_i,vc=Va,mc=pc,bc=w,gc=ta,xc=da,wc="[object Arguments]",Oc="[object Array]",Sc="[object Object]",jc=Object.prototype.hasOwnProperty;var Ac=function(t,e,r,n,o,i){var a=bc(t),c=bc(e),u=a?Oc:mc(t),l=c?Oc:mc(e),s=(u=u==wc?Sc:u)==Sc,f=(l=l==wc?Sc:l)==Sc,p=u==l;if(p&&gc(t)){if(!gc(e))return!1;a=!0,s=!1}if(p&&!s)return i||(i=new hc),a||xc(t)?yc(t,e,r,n,o,i):dc(t,e,u,r,n,o,i);if(!(1&r)){var h=s&&jc.call(t,"__wrapped__"),y=f&&jc.call(e,"__wrapped__");if(h||y){var d=h?t.value():t,v=y?e.value():e;return i||(i=new hc),o(d,v,r,n,i)}}return!!p&&(i||(i=new hc),vc(t,e,r,n,o,i))},Pc=Ac,kc=L;var Ec=function t(e,r,n,o,i){return e===r||(null==e||null==r||!kc(e)&&!kc(r)?e!=e&&r!=r:Pc(e,r,n,o,t,i))},Mc=si,Tc=Ec;var _c=function(t,e,r,n){var o=r.length,i=o,a=!n;if(null==t)return!i;for(t=Object(t);o--;){var c=r[o];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<i;){var u=(c=r[o])[0],l=t[u],s=c[1];if(a&&c[2]){if(void 0===l&&!(u in t))return!1}else{var f=new Mc;if(n)var p=n(l,s,u,t,e,f);if(!(void 0===p?Tc(s,l,3,n,f):p))return!1}}return!0},Cc=H;var Ic=function(t){return t==t&&!Cc(t)},Dc=Ic,Nc=La;var Rc=function(t){for(var e=Nc(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,Dc(o)]}return e};var Bc=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}},Lc=_c,$c=Rc,zc=Bc;var Uc=function(t){var e=$c(t);return 1==e.length&&e[0][2]?zc(e[0][0],e[0][1]):function(r){return r===t||Lc(r,t,e)}};var Fc=function(t,e){return null!=t&&e in Object(t)},qc=Ne,Wc=Zi,Vc=w,Xc=ra,Hc=na,Gc=Be;var Yc=function(t,e,r){for(var n=-1,o=(e=qc(e,t)).length,i=!1;++n<o;){var a=Gc(e[n]);if(!(i=null!=t&&r(t,a)))break;t=t[a]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&Hc(o)&&Xc(a,o)&&(Vc(t)||Wc(t))},Kc=Fc,Zc=Yc;var Jc=function(t,e){return null!=t&&Zc(t,e,Kc)},Qc=Ec,tu=Fe,eu=Jc,ru=X,nu=Ic,ou=Bc,iu=Be;var au=function(t,e){return ru(t)&&nu(e)?ou(iu(t),e):function(r){var n=tu(r,t);return void 0===n&&n===e?eu(r,t):Qc(e,n,3)}};var cu=function(t){return t};var uu=function(t){return function(e){return null==e?void 0:e[t]}},lu=ze;var su=function(t){return function(e){return lu(e,t)}},fu=uu,pu=su,hu=X,yu=Be;var du=Uc,vu=au,mu=cu,bu=w,gu=function(t){return hu(t)?fu(yu(t)):pu(t)};var xu=function(t){return"function"==typeof t?t:null==t?mu:"object"==typeof t?bu(t)?vu(t[0],t[1]):du(t):gu(t)};var wu=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1};var Ou=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1},Su=wu,ju=function(t){return t!=t},Au=Ou;var Pu=function(t,e,r){return e==e?Au(t,e,r):Su(t,ju,r)},ku=Pu;var Eu=function(t,e){return!!(null==t?0:t.length)&&ku(t,e,0)>-1};var Mu=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1};var Tu=Ga,_u=function(){},Cu=Tu&&1/Si(new Tu([,-0]))[1]==1/0?function(t){return new Tu(t)}:_u,Iu=di,Du=Eu,Nu=Mu,Ru=mi,Bu=Cu,Lu=Si;var $u=function(t,e,r){var n=-1,o=Du,i=t.length,a=!0,c=[],u=c;if(r)a=!1,o=Nu;else if(i>=200){var l=e?null:Bu(t);if(l)return Lu(l);a=!1,o=Ru,u=new Iu}else u=e?[]:c;t:for(;++n<i;){var s=t[n],f=e?e(s):s;if(s=r||0!==s?s:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue t;e&&u.push(f),c.push(s)}else o(u,f,r)||(u!==c&&u.push(f),c.push(s))}return c},zu=xu,Uu=$u;var Fu=function(t,e){return t&&t.length?Uu(t,zu(e)):[]},qu=d(Fu);function Wu(t,e,r){return!0===e?qu(t,r):Q(e)?qu(t,e):t}function Vu(t){"@babel/helpers - typeof";return Vu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vu(t)}var Xu=["ref"];function Hu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Gu(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Hu(Object(r),!0).forEach((function(e){tl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hu(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Yu(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,el(n.key),n)}}function Ku(t,e){return Ku=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ku(t,e)}function Zu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Qu(t);if(e){var o=Qu(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Vu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ju(t)}(this,r)}}function Ju(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qu(t){return Qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qu(t)}function tl(t,e,r){return(e=el(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function el(t){var e=function(t,e){if("object"!==Vu(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Vu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Vu(e)?e:String(e)}function rl(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function nl(t){return t.value}var ol=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ku(t,e)}(c,n);var r,o,i,a=Zu(c);function c(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return tl(Ju(t=a.call.apply(a,[this].concat(r))),"lastBoundingBox",{width:-1,height:-1}),t}return r=c,i=[{key:"getWithHeight",value:function(t,e){var r=t.props.layout;return"vertical"===r&&lr(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(o=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e))}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Gu({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,c=n.margin,u=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),Gu(Gu({},e),r)}},{key:"render",value:function(){var e=this,r=this.props,n=r.content,o=r.width,i=r.height,a=r.wrapperStyle,c=r.payloadUniqBy,u=r.payload,l=Gu(Gu({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return t.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,r){if(t.isValidElement(e))return t.cloneElement(e,r);if("function"==typeof e)return t.createElement(e,r);r.ref;var n=rl(r,Xu);return t.createElement(Jo,n)}(n,Gu(Gu({},this.props),{},{payload:Wu(u,c,nl)})))}}])&&Yu(r.prototype,o),i&&Yu(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}();tl(ol,"displayName","Legend"),tl(ol,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var il=Zi,al=w,cl=P?P.isConcatSpreadable:void 0;var ul=Ci,ll=function(t){return al(t)||il(t)||!!(cl&&t&&t[cl])};var sl=function t(e,r,n,o,i){var a=-1,c=e.length;for(n||(n=ll),i||(i=[]);++a<c;){var u=e[a];r>0&&n(u)?r>1?t(u,r-1,n,o,i):ul(i,u):o||(i[i.length]=u)}return i};var fl=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===r(i[u],u,i))break}return e}},pl=fl(),hl=La;var yl=function(t,e){return t&&pl(t,e,hl)},dl=Da;var vl=function(t,e){return function(r,n){if(null==r)return r;if(!dl(r))return t(r,n);for(var o=r.length,i=e?o:-1,a=Object(r);(e?i--:++i<o)&&!1!==n(a[i],i,a););return r}}(yl),ml=vl,bl=Da;var gl=function(t,e){var r=-1,n=bl(t)?Array(t.length):[];return ml(t,(function(t,o,i){n[++r]=e(t,o,i)})),n};var xl=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t},wl=U;var Ol=function(t,e){if(t!==e){var r=void 0!==t,n=null===t,o=t==t,i=wl(t),a=void 0!==e,c=null===e,u=e==e,l=wl(e);if(!c&&!l&&!i&&t>e||i&&a&&u&&!c&&!l||n&&a&&u||!r&&u||!o)return 1;if(!n&&!i&&!l&&t<e||l&&r&&o&&!n&&!i||c&&r&&o||!a&&o||!u)return-1}return 0};var Sl=function(t,e,r){for(var n=-1,o=t.criteria,i=e.criteria,a=o.length,c=r.length;++n<a;){var u=Ol(o[n],i[n]);if(u)return n>=c?u:u*("desc"==r[n]?-1:1)}return t.index-e.index},jl=Oe,Al=ze,Pl=xu,kl=gl,El=xl,Ml=la,Tl=Sl,_l=cu,Cl=w;var Il=function(t,e,r){e=e.length?jl(e,(function(t){return Cl(t)?function(e){return Al(e,1===t.length?t[0]:t)}:t})):[_l];var n=-1;e=jl(e,Ml(Pl));var o=kl(t,(function(t,r,o){return{criteria:jl(e,(function(e){return e(t)})),index:++n,value:t}}));return El(o,(function(t,e){return Tl(t,e,r)}))};var Dl=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)},Nl=Math.max;var Rl=function(t,e,r){return e=Nl(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=Nl(n.length-e,0),a=Array(i);++o<i;)a[o]=n[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=n[o];return c[e]=r(a),Dl(t,this,c)}};var Bl=function(t){return function(){return t}},Ll=bt,$l=function(){try{var t=Ll(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),zl=Bl,Ul=$l,Fl=Ul?function(t,e){return Ul(t,"toString",{configurable:!0,enumerable:!1,value:zl(e),writable:!0})}:cu,ql=Fl,Wl=Date.now;var Vl=function(t){var e=0,r=0;return function(){var n=Wl(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(ql),Xl=cu,Hl=Rl,Gl=Vl;var Yl=Bt,Kl=Da,Zl=ra,Jl=H;var Ql=function(t,e,r){if(!Jl(r))return!1;var n=typeof e;return!!("number"==n?Kl(r)&&Zl(e,r.length):"string"==n&&e in r)&&Yl(r[e],t)},ts=sl,es=Il,rs=Ql,ns=d(function(t,e){return Gl(Hl(t,e,Xl),t+"")}((function(t,e){if(null==t)return[];var r=e.length;return r>1&&rs(t,e[0],e[1])?e=[]:r>2&&rs(e[0],e[1],e[2])&&(e=[e[0]]),es(t,ts(e,1),[])})));function os(t){"@babel/helpers - typeof";return os="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},os(t)}function is(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return as(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return as(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function as(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function cs(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function us(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cs(Object(r),!0).forEach((function(e){ls(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cs(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ls(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==os(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==os(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===os(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ss(t){return Array.isArray(t)&&sr(t[0])&&sr(t[1])?t.join(" ~ "):t}var fs,ps=function(e){var r=e.separator,n=void 0===r?" : ":r,o=e.contentStyle,i=void 0===o?{}:o,a=e.itemStyle,c=void 0===a?{}:a,u=e.labelStyle,l=void 0===u?{}:u,s=e.payload,f=e.formatter,p=e.itemSorter,h=e.wrapperClassName,y=e.labelClassName,d=e.label,v=e.labelFormatter,m=us({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),b=us({margin:0},l),g=!We(d),w=g?d:"",O=x("recharts-default-tooltip",h),S=x("recharts-tooltip-label",y);return g&&v&&null!=s&&(w=v(d,s)),t.createElement("div",{className:O,style:m},t.createElement("p",{className:S,style:b},t.isValidElement(w)?w:"".concat(w)),function(){if(s&&s.length){var e=(p?ns(s,p):s).map((function(e,r){if("none"===e.type)return null;var o=us({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},c),i=e.formatter||f||ss,a=e.value,u=e.name,l=a,p=u;if(i&&null!=l&&null!=p){var h=i(a,u,e,r,s);if(Array.isArray(h)){var y=is(h,2);l=y[0],p=y[1]}else l=h}return t.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(r),style:o},sr(p)?t.createElement("span",{className:"recharts-tooltip-item-name"},p):null,sr(p)?t.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,t.createElement("span",{className:"recharts-tooltip-item-value"},l),t.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return t.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())},hs={exports:{}},ys={exports:{}},ds={};var vs,ms,bs,gs,xs,ws,Os,Ss,js,As,Ps,ks,Es,Ms,Ts={};
15
- /** @license React v16.13.1
16
- * react-is.development.js
17
- *
18
- * Copyright (c) Facebook, Inc. and its affiliates.
19
- *
20
- * This source code is licensed under the MIT license found in the
21
- * LICENSE file in the root directory of this source tree.
22
- */function _s(){return ms||(ms=1,"production"===process.env.NODE_ENV?ys.exports=function(){if(fs)return ds;fs=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,d=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,m=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function g(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:switch(t=t.type){case u:case l:case n:case i:case o:case f:return t;default:switch(t=t&&t.$$typeof){case c:case s:case y:case h:case a:return t;default:return p}}case r:return p}}}function x(t){return g(t)===l}return ds.AsyncMode=u,ds.ConcurrentMode=l,ds.ContextConsumer=c,ds.ContextProvider=a,ds.Element=e,ds.ForwardRef=s,ds.Fragment=n,ds.Lazy=y,ds.Memo=h,ds.Portal=r,ds.Profiler=i,ds.StrictMode=o,ds.Suspense=f,ds.isAsyncMode=function(t){return x(t)||g(t)===u},ds.isConcurrentMode=x,ds.isContextConsumer=function(t){return g(t)===c},ds.isContextProvider=function(t){return g(t)===a},ds.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},ds.isForwardRef=function(t){return g(t)===s},ds.isFragment=function(t){return g(t)===n},ds.isLazy=function(t){return g(t)===y},ds.isMemo=function(t){return g(t)===h},ds.isPortal=function(t){return g(t)===r},ds.isProfiler=function(t){return g(t)===i},ds.isStrictMode=function(t){return g(t)===o},ds.isSuspense=function(t){return g(t)===f},ds.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===h||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===m||t.$$typeof===b||t.$$typeof===d)},ds.typeOf=g,ds}():ys.exports=(vs||(vs=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,d=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,m=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function g(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:var d=t.type;switch(d){case u:case l:case n:case i:case o:case f:return d;default:var v=d&&d.$$typeof;switch(v){case c:case s:case y:case h:case a:return v;default:return p}}case r:return p}}}var x=u,w=l,O=c,S=a,j=e,A=s,P=n,k=y,E=h,M=r,T=i,_=o,C=f,I=!1;function D(t){return g(t)===l}Ts.AsyncMode=x,Ts.ConcurrentMode=w,Ts.ContextConsumer=O,Ts.ContextProvider=S,Ts.Element=j,Ts.ForwardRef=A,Ts.Fragment=P,Ts.Lazy=k,Ts.Memo=E,Ts.Portal=M,Ts.Profiler=T,Ts.StrictMode=_,Ts.Suspense=C,Ts.isAsyncMode=function(t){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(t)||g(t)===u},Ts.isConcurrentMode=D,Ts.isContextConsumer=function(t){return g(t)===c},Ts.isContextProvider=function(t){return g(t)===a},Ts.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ts.isForwardRef=function(t){return g(t)===s},Ts.isFragment=function(t){return g(t)===n},Ts.isLazy=function(t){return g(t)===y},Ts.isMemo=function(t){return g(t)===h},Ts.isPortal=function(t){return g(t)===r},Ts.isProfiler=function(t){return g(t)===i},Ts.isStrictMode=function(t){return g(t)===o},Ts.isSuspense=function(t){return g(t)===f},Ts.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===h||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===m||t.$$typeof===b||t.$$typeof===d)},Ts.typeOf=g}()),Ts)),ys.exports}
23
- /*
24
- object-assign
25
- (c) Sindre Sorhus
26
- @license MIT
27
- */function Cs(){if(gs)return bs;gs=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return bs=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(n,o){for(var i,a,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(n),u=1;u<arguments.length;u++){for(var l in i=Object(arguments[u]))e.call(i,l)&&(c[l]=i[l]);if(t){a=t(i);for(var s=0;s<a.length;s++)r.call(i,a[s])&&(c[a[s]]=i[a[s]])}}return c},bs}function Is(){if(ws)return xs;ws=1;return xs="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ds(){return Ss?Os:(Ss=1,Os=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Ns=_s();hs.exports=function(){if(ks)return Ps;ks=1;var t=_s(),e=Cs(),r=Is(),n=Ds(),o=function(){if(As)return js;As=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=Is(),r={},n=Ds();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function o(o,i,a,c,u){if("production"!==process.env.NODE_ENV)for(var l in o)if(n(o,l)){var s;try{if("function"!=typeof o[l]){var f=Error((c||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=o[l](i,l,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in r)){r[s.message]=!0;var p=u?u():"";t("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},js=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),Ps=function(c,u){var l="function"==typeof Symbol&&Symbol.iterator,s="@@iterator",f="<<anonymous>>",p={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:d(a),arrayOf:function(t){return d((function(e,n,o,i,a){if("function"!=typeof t)return new y("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new y("Invalid "+i+" `"+a+"` of type `"+g(c)+"` supplied to `"+o+"`, expected an array.");for(var u=0;u<c.length;u++){var l=t(c,u,o,i,a+"["+u+"]",r);if(l instanceof Error)return l}return null}))},element:d((function(t,e,r,n,o){var i=t[e];return c(i)?null:new y("Invalid "+n+" `"+o+"` of type `"+g(i)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:d((function(e,r,n,o,i){var a=e[r];return t.isValidElementType(a)?null:new y("Invalid "+o+" `"+i+"` of type `"+g(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return d((function(e,r,n,o,i){if(!(e[r]instanceof t)){var a=t.name||f;return new y("Invalid "+o+" `"+i+"` of type `"+((c=e[r]).constructor&&c.constructor.name?c.constructor.name:f)+"` supplied to `"+n+"`, expected instance of `"+a+"`.")}var c;return null}))},node:d((function(t,e,r,n,o){return b(t[e])?null:new y("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return d((function(e,o,i,a,c){if("function"!=typeof t)return new y("Property `"+c+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var u=e[o],l=g(u);if("object"!==l)return new y("Invalid "+a+" `"+c+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var s in u)if(n(u,s)){var f=t(u,s,i,a,c+"."+s,r);if(f instanceof Error)return f}return null}))},oneOf:function(t){return Array.isArray(t)?d((function(e,r,n,o,i){for(var a=e[r],c=0;c<t.length;c++)if(h(a,t[c]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===x(e)?String(e):e}));return new y("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+u+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var o=t[e];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(o)+" at index "+e+"."),a}return d((function(e,o,i,a,c){for(var u=[],l=0;l<t.length;l++){var s=(0,t[l])(e,o,i,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&u.push(s.data.expectedType)}return new y("Invalid "+a+" `"+c+"` supplied to `"+i+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(t){return d((function(e,n,o,i,a){var c=e[n],u=g(c);if("object"!==u)return new y("Invalid "+i+" `"+a+"` of type `"+u+"` supplied to `"+o+"`, expected `object`.");for(var l in t){var s=t[l];if("function"!=typeof s)return m(o,i,a,l,x(s));var f=s(c,l,o,i,a+"."+l,r);if(f)return f}return null}))},exact:function(t){return d((function(o,i,a,c,u){var l=o[i],s=g(l);if("object"!==s)return new y("Invalid "+c+" `"+u+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},o[i],t);for(var p in f){var h=t[p];if(n(t,p)&&"function"!=typeof h)return m(a,c,u,p,x(h));if(!h)return new y("Invalid "+c+" `"+u+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var d=h(l,p,a,c,u+"."+p,r);if(d)return d}return null}))}};function h(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function y(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function d(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function o(o,a,c,l,s,p,h){if(l=l||f,p=p||c,h!==r){if(u){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+c;!e[v]&&n<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[v]=!0,n++)}}return null==a[c]?o?null===a[c]?new y("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `null`."):new y("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,c,l,s,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function v(t){return d((function(e,r,n,o,i,a){var c=e[r];return g(c)!==t?new y("Invalid "+o+" `"+i+"` of type `"+x(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function m(t,e,r,n,o){return new y((t||"React class")+": "+e+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function b(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(b);if(null===t||c(t))return!0;var e=function(t){var e=t&&(l&&t[l]||t[s]);if("function"==typeof e)return e}(t);if(!e)return!1;var r,n=e.call(t);if(e!==t.entries){for(;!(r=n.next()).done;)if(!b(r.value))return!1}else for(;!(r=n.next()).done;){var o=r.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function g(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function x(t){if(null==t)return""+t;var e=g(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function w(t){var e=x(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return y.prototype=Error.prototype,p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},Ps}()(Ns.isElement,!0)}else hs.exports=function(){if(Ms)return Es;Ms=1;var t=Is();function e(){}function r(){}return r.resetWarningCache=e,Es=function(){function n(e,r,n,o,i,a){if(a!==t){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function o(){return n}n.isRequired=n;var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:e};return i.PropTypes=i,i}}()();var Rs=d(hs.exports),Bs=Object.getOwnPropertyNames,Ls=Object.getOwnPropertySymbols,$s=Object.prototype.hasOwnProperty;function zs(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function Us(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var o=n.cache,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);var c=t(e,r,n);return o.delete(e),o.delete(r),c}}function Fs(t){return Bs(t).concat(Ls(t))}var qs=Object.hasOwn||function(t,e){return $s.call(t,e)};function Ws(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var Vs="_owner",Xs=Object.getOwnPropertyDescriptor,Hs=Object.keys;function Gs(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function Ys(t,e){return Ws(t.getTime(),e.getTime())}function Ks(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var u=e.entries(),l=!1,s=0;(o=u.next())&&!o.done;){var f=n.value,p=f[0],h=f[1],y=o.value,d=y[0],v=y[1];l||i[s]||!(l=r.equals(p,d,c,s,t,e,r)&&r.equals(h,v,p,d,t,e,r))||(i[s]=!0),s++}if(!l)return!1;c++}return!0}function Zs(t,e,r){var n,o=Hs(t),i=o.length;if(Hs(e).length!==i)return!1;for(;i-- >0;){if((n=o[i])===Vs&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!qs(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function Js(t,e,r){var n,o,i,a=Fs(t),c=a.length;if(Fs(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===Vs&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!qs(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(o=Xs(t,n),i=Xs(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function Qs(t,e){return Ws(t.valueOf(),e.valueOf())}function tf(t,e){return t.source===e.source&&t.flags===e.flags}function ef(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),u=!1,l=0;(o=c.next())&&!o.done;)u||i[l]||!(u=r.equals(n.value,o.value,n.value,o.value,t,e,r))||(i[l]=!0),l++;if(!u)return!1}return!0}function rf(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var nf="[object Arguments]",of="[object Boolean]",af="[object Date]",cf="[object Map]",uf="[object Number]",lf="[object Object]",sf="[object RegExp]",ff="[object Set]",pf="[object String]",hf=Array.isArray,yf="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,df=Object.assign,vf=Object.prototype.toString.call.bind(Object.prototype.toString);var mf=bf();function bf(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,o=t.createInternalComparator,i=t.createState,a=t.strict,c=void 0!==a&&a,u=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,o={areArraysEqual:n?Js:Gs,areDatesEqual:Ys,areMapsEqual:n?zs(Ks,Js):Ks,areObjectsEqual:n?Js:Zs,arePrimitiveWrappersEqual:Qs,areRegExpsEqual:tf,areSetsEqual:n?zs(ef,Js):ef,areTypedArraysEqual:n?Js:rf};if(r&&(o=df({},o,r(o))),e){var i=Us(o.areArraysEqual),a=Us(o.areMapsEqual),c=Us(o.areObjectsEqual),u=Us(o.areSetsEqual);o=df({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return o}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,o=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,l,s){if(t===l)return!0;if(null==t||null==l||"object"!=typeof t||"object"!=typeof l)return t!=t&&l!=l;var f=t.constructor;if(f!==l.constructor)return!1;if(f===Object)return o(t,l,s);if(hf(t))return e(t,l,s);if(null!=yf&&yf(t))return u(t,l,s);if(f===Date)return r(t,l,s);if(f===RegExp)return a(t,l,s);if(f===Map)return n(t,l,s);if(f===Set)return c(t,l,s);var p=vf(t);return p===af?r(t,l,s):p===sf?a(t,l,s):p===cf?n(t,l,s):p===ff?c(t,l,s):p===lf?"function"!=typeof t.then&&"function"!=typeof l.then&&o(t,l,s):p===nf?o(t,l,s):(p===of||p===uf||p===pf)&&i(t,l,s)}}(u),s=o?o(l):(e=l,function(t,r,n,o,i,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,o=t.equals,i=t.strict;if(n)return function(t,a){var c=n(),u=c.cache,l=void 0===u?e?new WeakMap:void 0:u,s=c.meta;return r(t,a,{cache:l,equals:o,meta:s,strict:i})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return r(t,e,a)}}({circular:n,comparator:l,createState:i,equals:s,strict:c})}function gf(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(o){r<0&&(r=o),o-r>e?(t(o),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function xf(t){"@babel/helpers - typeof";return xf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xf(t)}function wf(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Of(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Of(t,e)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Of(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Sf(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var o=wf(n),i=o[0],a=o.slice(1);return"number"==typeof i?void gf(r.bind(null,a),i):(r(i),void gf(r.bind(null,a)))}"object"===xf(n)&&t(n),"function"==typeof n&&n()}};return{stop:function(){e=!0},start:function(t){e=!1,r(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function jf(t){"@babel/helpers - typeof";return jf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jf(t)}function Af(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Pf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Af(Object(r),!0).forEach((function(e){kf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Af(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function kf(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==jf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==jf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===jf(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}bf({strict:!0}),bf({circular:!0}),bf({circular:!0,strict:!0}),bf({createInternalComparator:function(){return Ws}}),bf({strict:!0,createInternalComparator:function(){return Ws}}),bf({circular:!0,createInternalComparator:function(){return Ws}}),bf({circular:!0,createInternalComparator:function(){return Ws},strict:!0});var Ef=["Webkit","Moz","O","ms"],Mf=["-webkit-","-moz-","-o-","-ms-"],Tf=["transform","transformOrigin","transition"],_f=function(t){return t},Cf=function(t,e){return Object.keys(e).reduce((function(r,n){return Pf(Pf({},r),{},kf({},n,t(n,e[n])))}),{})},If=function(t){return Object.keys(t).reduce((function(t,e){return Pf(Pf({},t),function(t,e){if(-1===Tf.indexOf(t))return kf({},t,Number.isNaN(e)?0:e);var r="transition"===t,n=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),o=e;return Ef.reduce((function(t,i,a){return r&&(o=e.replace(/(transform|transform-origin)/gim,"".concat(Mf[a],"$1"))),Pf(Pf({},t),{},kf({},i+n,o))}),{})}(e,t[e]))}),t)},Df=function(t,e,r){return t.map((function(t){return"".concat((n=t,n.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(r);var n})).join(",")},Nf="production"!==process.env.NODE_ENV,Rf=function(t,e,r,n,o,i,a,c){if(Nf&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,i,a,c],l=0;console.warn(e.replace(/%s/g,(function(){return u[l++]})))}};function Bf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||$f(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lf(t){return function(t){if(Array.isArray(t))return zf(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||$f(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $f(t,e){if(t){if("string"==typeof t)return zf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zf(t,e):void 0}}function zf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Uf=1e-4,Ff=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},qf=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},Wf=function(t,e){return function(r){var n=Ff(t,e);return qf(n,r)}},Vf=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,o=0,i=1,a=1;break;case"ease":n=.25,o=.1,i=.25,a=1;break;case"ease-in":n=.42,o=0,i=1,a=1;break;case"ease-out":n=.42,o=0,i=.58,a=1;break;case"ease-in-out":n=0,o=0,i=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),l=Bf(u,4);n=l[0],o=l[1],i=l[2],a=l[3]}else Rf(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",e)}Rf([n,i,o,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",e);var s,f,p=Wf(n,i),h=Wf(o,a),y=(s=n,f=i,function(t){var e=Ff(s,f),r=[].concat(Lf(e.map((function(t,e){return t*e})).slice(1)),[0]);return qf(r,t)}),d=function(t){for(var e,r=t>1?1:t,n=r,o=0;o<8;++o){var i=p(n)-r,a=y(n);if(Math.abs(i-r)<Uf||a<Uf)return h(n);n=(e=n-i/a)>1?1:e<0?0:e}return h(n)};return d.isStepper=!1,d},Xf=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Vf(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,o=void 0===n?8:n,i=t.dt,a=void 0===i?17:i,c=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<Uf&&Math.abs(i)<Uf?[e,0]:[c,i]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return Vf(n);Rf(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",e)}return"function"==typeof n?n:(Rf(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function Hf(t){"@babel/helpers - typeof";return Hf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hf(t)}function Gf(t){return function(t){if(Array.isArray(t))return tp(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Qf(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Kf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yf(Object(r),!0).forEach((function(e){Zf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zf(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Hf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Hf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Hf(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||Qf(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qf(t,e){if(t){if("string"==typeof t)return tp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tp(t,e):void 0}}function tp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ep=function(t,e,r){return t+(e-t)*r},rp=function(t){return t.from!==t.to},np=function t(e,r,n){var o=Cf((function(t,r){if(rp(r)){var n=Jf(e(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return Kf(Kf({},r),{},{from:o,velocity:i})}return r}),r);return n<1?Cf((function(t,e){return rp(e)?Kf(Kf({},e),{},{velocity:ep(e.velocity,o[t].velocity,n),from:ep(e.from,o[t].from,n)}):e}),r):t(e,o,n-1)},op=function(t,e,r,n,o){var i,a,c,u,l=(i=t,a=e,[Object.keys(i),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=l.reduce((function(r,n){return Kf(Kf({},r),{},Zf({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return Kf(Kf({},r),{},Zf({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,h=function(){return null};return h=r.isStepper?function(n){c||(c=n);var i=(n-c)/r.dt;f=np(r,f,i),o(Kf(Kf(Kf({},t),e),Cf((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(rp).length&&(p=requestAnimationFrame(h))}:function(i){u||(u=i);var a=(i-u)/n,c=Cf((function(t,e){return ep.apply(void 0,Gf(e).concat([r(a)]))}),s);if(o(Kf(Kf(Kf({},t),e),c)),a<1)p=requestAnimationFrame(h);else{var l=Cf((function(t,e){return ep.apply(void 0,Gf(e).concat([r(1)]))}),s);o(Kf(Kf(Kf({},t),e),l))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}};function ip(t){"@babel/helpers - typeof";return ip="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ip(t)}var ap=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function cp(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function up(t){return function(t){if(Array.isArray(t))return lp(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return lp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lp(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function sp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sp(Object(r),!0).forEach((function(e){pp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function pp(t,e,r){return(e=yp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hp(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,yp(n.key),n)}}function yp(t){var e=function(t,e){if("object"!==ip(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ip(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ip(e)?e:String(e)}function dp(t,e){return dp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},dp(t,e)}function vp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=gp(t);if(e){var o=gp(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return mp(this,r)}}function mp(t,e){if(e&&("object"===ip(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return bp(t)}function bp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gp(t){return gp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gp(t)}var xp=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dp(t,e)}(l,n);var i,a,c,u=vp(l);function l(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l);var n=(r=u.call(this,t,e)).props,o=n.isActive,i=n.attributeName,a=n.from,c=n.to,s=n.steps,f=n.children,p=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(bp(r)),r.changeStyle=r.changeStyle.bind(bp(r)),!o||p<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:c}),mp(r);if(s&&s.length)r.state={style:s[0].style};else if(a){if("function"==typeof f)return r.state={style:a},mp(r);r.state={style:i?pp({},i,a):a}}else r.state={style:{}};return r}return i=l,(a=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,o=e.attributeName,i=e.shouldReAnimate,a=e.to,c=e.from,u=this.state.style;if(n)if(r){if(!(mf(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||i?c:t.to;if(this.state&&u){var f={style:o?pp({},o,s):s};(o&&[o]!==s||!o&&u!==s)&&this.setState(f)}this.runAnimation(fp(fp({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?pp({},o,a):a};this.state&&u&&(o&&u[o]!==a||!o&&u!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,o=t.duration,i=t.easing,a=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,l=op(r,n,Xf(i),o,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},o,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,o=t.onAnimationStart,i=r[0],a=i.style,c=i.duration,u=void 0===c?0:c;return this.manager.start([o].concat(up(r.reduce((function(t,n,o){if(0===o)return t;var i=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,l=n.properties,s=n.onAnimationEnd,f=o>0?r[o-1]:n,p=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(up(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:i,easing:c}),i]);var h=Df(p,i,c),y=fp(fp(fp({},f.style),u),{},{transition:h});return[].concat(up(t),[y,i,s]).filter(_f)}),[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Sf());var e=t.begin,r=t.duration,n=t.attributeName,o=t.to,i=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof l&&"spring"!==i)if(u.length>1)this.runStepAnimation(t);else{var f=n?pp({},n,o):o,p=Df(Object.keys(f),r,i);s.start([a,e,fp(fp({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var e=this.props,n=e.children;e.begin;var i=e.duration;e.attributeName,e.easing;var a=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var c=cp(e,ap),u=r.count(n),l=If(this.state.style);if("function"==typeof n)return n(l);if(!a||0===u||i<=0)return n;var s=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,i=e.className;return o(t,fp(fp({},c),{},{style:fp(fp({},n),l),className:i}))};return 1===u?s(r.only(n)):t.createElement("div",null,r.map(n,(function(t){return s(t)})))}}])&&hp(i.prototype,a),c&&hp(i,c),Object.defineProperty(i,"prototype",{writable:!1}),l}();function wp(t){"@babel/helpers - typeof";return wp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wp(t)}function Op(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==wp(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==wp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===wp(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}xp.displayName="Animate",xp.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},xp.propTypes={from:Rs.oneOfType([Rs.object,Rs.string]),to:Rs.oneOfType([Rs.object,Rs.string]),attributeName:Rs.string,duration:Rs.number,begin:Rs.number,easing:Rs.oneOfType([Rs.string,Rs.func]),steps:Rs.arrayOf(Rs.shape({duration:Rs.number.isRequired,style:Rs.object.isRequired,easing:Rs.oneOfType([Rs.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Rs.func]),properties:Rs.arrayOf("string"),onAnimationEnd:Rs.func})),children:Rs.oneOfType([Rs.node,Rs.func]),isActive:Rs.bool,canBegin:Rs.bool,onAnimationEnd:Rs.func,shouldReAnimate:Rs.bool,onAnimationStart:Rs.func,onAnimationReStart:Rs.func},void 0===Number.isFinite&&(Number.isFinite=function(t){return"number"==typeof t&&isFinite(t)}),Rs.object,Rs.object,Rs.object,Rs.element,Rs.object,Rs.object,Rs.object,Rs.oneOfType([Rs.array,Rs.element]),Rs.any;var Sp="recharts-tooltip-wrapper",jp={visibility:"hidden"};function Ap(t){var e,r=t.coordinate,n=t.translateX,o=t.translateY;return x(Sp,(Op(e={},"".concat(Sp,"-right"),lr(n)&&r&&lr(r.x)&&n>=r.x),Op(e,"".concat(Sp,"-left"),lr(n)&&r&&lr(r.x)&&n<r.x),Op(e,"".concat(Sp,"-bottom"),lr(o)&&r&&lr(r.y)&&o>=r.y),Op(e,"".concat(Sp,"-top"),lr(o)&&r&&lr(r.y)&&o<r.y),e))}function Pp(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,c=t.tooltipDimension,u=t.viewBox,l=t.viewBoxDimension;if(i&&lr(i[n]))return i[n];var s=r[n]-c-o,f=r[n]+o;return e[n]?a[n]?s:f:a[n]?s<u[n]?Math.max(f,u[n]):Math.max(s,u[n]):f+c>u[n]+l?Math.max(s,u[n]):Math.max(f,u[n])}function kp(t){var e,r,n,o=t.allowEscapeViewBox,i=t.coordinate,a=t.offsetTopLeft,c=t.position,u=t.reverseDirection,l=t.tooltipBox,s=t.useTranslate3d,f=t.viewBox;return e=l.height>0&&l.width>0&&i?function(t){var e=t.translateX,r=t.translateY,n=t.useTranslate3d;return If({transform:n?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")})}({translateX:r=Pp({allowEscapeViewBox:o,coordinate:i,key:"x",offsetTopLeft:a,position:c,reverseDirection:u,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),translateY:n=Pp({allowEscapeViewBox:o,coordinate:i,key:"y",offsetTopLeft:a,position:c,reverseDirection:u,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),useTranslate3d:s}):jp,{cssProperties:e,cssClasses:Ap({translateX:r,translateY:n,coordinate:i})}}function Ep(t){"@babel/helpers - typeof";return Ep="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ep(t)}function Mp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Tp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mp(Object(r),!0).forEach((function(e){Rp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Bp(n.key),n)}}function Cp(t,e){return Cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Cp(t,e)}function Ip(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Np(t);if(e){var o=Np(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Ep(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Dp(t)}(this,r)}}function Dp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Np(t){return Np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Np(t)}function Rp(t,e,r){return(e=Bp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bp(t){var e=function(t,e){if("object"!==Ep(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ep(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ep(e)?e:String(e)}var Lp=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Cp(t,e)}(c,n);var r,o,i,a=Ip(c);function c(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Rp(Dp(t=a.call.apply(a,[this].concat(r))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Rp(Dp(t),"lastBoundingBox",{width:-1,height:-1}),Rp(Dp(t),"handleKeyDown",(function(e){var r,n,o,i;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=t.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(o=null===(i=t.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),t}return r=c,(o=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height)}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var e=this,r=this.props,n=r.active,o=r.allowEscapeViewBox,i=r.animationDuration,a=r.animationEasing,c=r.children,u=r.coordinate,l=r.hasPayload,s=r.isAnimationActive,f=r.offset,p=r.position,h=r.reverseDirection,y=r.useTranslate3d,d=r.viewBox,v=r.wrapperStyle,m=kp({allowEscapeViewBox:o,coordinate:u,offsetTopLeft:f,position:p,reverseDirection:h,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:y,viewBox:d}),b=m.cssClasses,g=m.cssProperties,x=Tp(Tp(Tp({},s&&n&&If({transition:"transform ".concat(i,"ms ").concat(a)})),g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&l?"visible":"hidden",position:"absolute",top:0,left:0},v);return t.createElement("div",{tabIndex:-1,role:"dialog",className:b,style:x,ref:function(t){e.wrapperNode=t}},c)}}])&&_p(r.prototype,o),i&&_p(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}(),$p={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return $p[t]},set:function(t,e){if("string"==typeof t)$p[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach((function(e){$p[e]=t[e]}))}}};function zp(t){"@babel/helpers - typeof";return zp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zp(t)}function Up(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Fp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Up(Object(r),!0).forEach((function(e){Hp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Up(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qp(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Gp(n.key),n)}}function Wp(t,e){return Wp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Wp(t,e)}function Vp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Xp(t);if(e){var o=Xp(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===zp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function Xp(t){return Xp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xp(t)}function Hp(t,e,r){return(e=Gp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gp(t){var e=function(t,e){if("object"!==zp(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==zp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===zp(e)?e:String(e)}function Yp(t){return t.dataKey}var Kp=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wp(t,e)}(c,n);var r,o,i,a=Vp(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return r=c,(o=[{key:"render",value:function(){var e=this.props,r=e.active,n=e.allowEscapeViewBox,o=e.animationDuration,i=e.animationEasing,a=e.content,c=e.coordinate,u=e.filterNull,l=e.isAnimationActive,s=e.offset,f=e.payload,p=e.payloadUniqBy,h=e.position,y=e.reverseDirection,d=e.useTranslate3d,v=e.viewBox,m=e.wrapperStyle,b=null!=f?f:[];u&&b.length&&(b=Wu(f.filter((function(t){return null!=t.value})),p,Yp));var g=b.length>0;return t.createElement(Lp,{allowEscapeViewBox:n,animationDuration:o,animationEasing:i,isAnimationActive:l,active:r,coordinate:c,hasPayload:g,offset:s,position:h,reverseDirection:y,useTranslate3d:d,viewBox:v,wrapperStyle:m},function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):"function"==typeof e?t.createElement(e,r):t.createElement(ps,r)}(a,Fp(Fp({},this.props),{},{payload:b})))}}])&&qp(r.prototype,o),i&&qp(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}();Hp(Kp,"displayName","Tooltip"),Hp(Kp,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!$p.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Zp=A,Jp=/\s/;var Qp=function(t){for(var e=t.length;e--&&Jp.test(t.charAt(e)););return e},th=Qp,eh=/^\s+/;var rh=function(t){return t?t.slice(0,th(t)+1).replace(eh,""):t},nh=rh,oh=H,ih=U,ah=/^[-+]0x[0-9a-f]+$/i,ch=/^0b[01]+$/i,uh=/^0o[0-7]+$/i,lh=parseInt;var sh=function(t){if("number"==typeof t)return t;if(ih(t))return NaN;if(oh(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=oh(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=nh(t);var r=ch.test(t);return r||uh.test(t)?lh(t.slice(2),r?2:8):ah.test(t)?NaN:+t},fh=H,ph=function(){return Zp.Date.now()},hh=sh,yh=Math.max,dh=Math.min;var vh=function(t,e,r){var n,o,i,a,c,u,l=0,s=!1,f=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function h(e){var r=n,i=o;return n=o=void 0,l=e,a=t.apply(i,r)}function y(t){var r=t-u;return void 0===u||r>=e||r<0||f&&t-l>=i}function d(){var t=ph();if(y(t))return v(t);c=setTimeout(d,function(t){var r=e-(t-u);return f?dh(r,i-(t-l)):r}(t))}function v(t){return c=void 0,p&&n?h(t):(n=o=void 0,a)}function m(){var t=ph(),r=y(t);if(n=arguments,o=this,u=t,r){if(void 0===c)return function(t){return l=t,c=setTimeout(d,e),s?h(t):a}(u);if(f)return clearTimeout(c),c=setTimeout(d,e),h(u)}return void 0===c&&(c=setTimeout(d,e)),a}return e=hh(e)||0,fh(r)&&(s=!!r.leading,i=(f="maxWait"in r)?yh(hh(r.maxWait)||0,e):i,p="trailing"in r?!!r.trailing:p),m.cancel=function(){void 0!==c&&clearTimeout(c),l=0,n=u=o=c=void 0},m.flush=function(){return void 0===c?a:v(ph())},m},mh=vh,bh=H;var gh=d((function(t,e,r){var n=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return bh(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),mh(t,e,{leading:n,maxWait:e,trailing:o})}));function xh(t){"@babel/helpers - typeof";return xh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xh(t)}function wh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Oh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wh(Object(r),!0).forEach((function(e){Sh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Sh(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==xh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==xh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===xh(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jh(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ah(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ah(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ah(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ph=i((function(e,r){var n=e.aspect,i=e.initialDimension,p=void 0===i?{width:-1,height:-1}:i,h=e.width,y=void 0===h?"100%":h,d=e.height,v=void 0===d?"100%":d,m=e.minWidth,b=void 0===m?0:m,g=e.minHeight,w=e.maxHeight,O=e.children,S=e.debounce,j=void 0===S?0:S,A=e.id,P=e.className,k=e.onResize,E=e.style,M=void 0===E?{}:E,T=a(null),_=a();_.current=k,c(r,(function(){return Object.assign(T.current,{get current(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),T.current}})}));var C=jh(u({containerWidth:p.width,containerHeight:p.height}),2),I=C[0],D=C[1],N=l((function(t,e){D((function(r){var n=Math.round(t),o=Math.round(e);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}}))}),[]);s((function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,o=r.height;N(n,o),null===(e=_.current)||void 0===e||e.call(_,n,o)};j>0&&(t=gh(t,j,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=T.current.getBoundingClientRect(),n=r.width,o=r.height;return N(n,o),e.observe(T.current),function(){e.disconnect()}}),[N,j]);var R=f((function(){var e=I.containerWidth,r=I.containerHeight;if(e<0||r<0)return null;Kr(ur(y)||ur(v),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",y,v),Kr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var i=ur(y)?e:y,a=ur(v)?r:v;n&&n>0&&(i?a=i/n:a&&(i=a*n),w&&a>w&&(a=w)),Kr(i>0||a>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",i,a,y,v,b,g,n);var c=!Array.isArray(O)&&tr.isElement(O)&&Mr(O.type).endsWith("Chart");return t.Children.map(O,(function(t){return tr.isElement(t)?o(t,Oh({width:i,height:a},c?{style:Oh({height:"100%",width:"100%",maxHeight:a,maxWidth:i},t.props.style)}:{})):t}))}),[n,O,v,w,g,b,I,y]);return t.createElement("div",{id:A?"".concat(A):void 0,className:x("recharts-responsive-container",P),style:Oh(Oh({},M),{},{width:y,height:v,minWidth:b,minHeight:g,maxHeight:w}),ref:T},R)})),kh=function(t){return null};function Eh(t){"@babel/helpers - typeof";return Eh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eh(t)}function Mh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Th(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mh(Object(r),!0).forEach((function(e){_h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Eh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Eh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Eh(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}kh.displayName="Cell";var Ch={widthCache:{},cacheCount:0},Ih={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Dh="recharts_measurement_span";var Nh=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||$p.isSsr)return{width:0,height:0};var r,n=(r=Th({},e),Object.keys(r).forEach((function(t){r[t]||delete r[t]})),r),o=JSON.stringify({text:t,copyStyle:n});if(Ch.widthCache[o])return Ch.widthCache[o];try{var i=document.getElementById(Dh);i||((i=document.createElement("span")).setAttribute("id",Dh),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=Th(Th({},Ih),n);Object.assign(i.style,a),i.textContent="".concat(t);var c=i.getBoundingClientRect(),u={width:c.width,height:c.height};return Ch.widthCache[o]=u,++Ch.cacheCount>2e3&&(Ch.cacheCount=0,Ch.widthCache={}),u}catch(t){return{width:0,height:0}}};function Rh(t){"@babel/helpers - typeof";return Rh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rh(t)}function Bh(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Lh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lh(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function $h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==Rh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Rh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===Rh(i)?i:String(i)),n)}var o,i}var zh=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Uh=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Fh=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,qh=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Wh={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Vh=Object.keys(Wh),Xh="NaN";var Hh=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),""===r||Fh.test(r)||(this.num=NaN,this.unit=""),Vh.includes(r)&&(this.num=function(t,e){return t*Wh[e]}(e,r),this.unit="px")}var e,r,n;return e=t,n=[{key:"parse",value:function(e){var r,n=Bh(null!==(r=qh.exec(e))&&void 0!==r?r:[],3),o=n[1],i=n[2];return new t(parseFloat(o),null!=i?i:"")}}],(r=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&$h(e.prototype,r),n&&$h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Gh(t){if(t.includes(Xh))return Xh;for(var e=t;e.includes("*")||e.includes("/");){var r,n=Bh(null!==(r=zh.exec(e))&&void 0!==r?r:[],4),o=n[1],i=n[2],a=n[3],c=Hh.parse(null!=o?o:""),u=Hh.parse(null!=a?a:""),l="*"===i?c.multiply(u):c.divide(u);if(l.isNaN())return Xh;e=e.replace(zh,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=Bh(null!==(s=Uh.exec(e))&&void 0!==s?s:[],4),p=f[1],h=f[2],y=f[3],d=Hh.parse(null!=p?p:""),v=Hh.parse(null!=y?y:""),m="+"===h?d.add(v):d.subtract(v);if(m.isNaN())return Xh;e=e.replace(Uh,m.toString())}return e}var Yh=/\(([^()]*)\)/;function Kh(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=Bh(Yh.exec(e),2)[1];e=e.replace(Yh,Gh(r))}return e}(e),e=Gh(e)}function Zh(t){var e=function(t){try{return Kh(t)}catch(t){return Xh}}(t.slice(5,-1));return e===Xh?"":e}var Jh=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Qh=["dx","dy","angle","className","breakAll"];function ty(){return ty=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ty.apply(this,arguments)}function ey(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function ry(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ny(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ny(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ny(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var oy=/[ \f\n\r\t\v\u2028\u2029]+/,iy=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var o=[];return We(e)||(o=r?e.toString().split(""):e.toString().split(oy)),{wordsWithComputedWidth:o.map((function(t){return{word:t,width:Nh(t,n).width}})),spaceWidth:r?0:Nh(" ",n).width}}catch(t){return null}},ay=function(t){return[{words:We(t)?[]:t.toString().split(oy)}]},cy=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!$p.isSsr){var c=iy({breakAll:i,children:n,style:o});return c?function(t,e,r,n,o){var i=t.maxLines,a=t.children,c=t.style,u=t.breakAll,l=lr(i),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var i=e.word,a=e.width,c=t[t.length-1];if(c&&(null==n||o||c.width+a+r<Number(n)))c.words.push(i),c.width+=a+r;else{var u={words:[i],width:a};t.push(u)}return t}),[])},p=f(e);if(!l)return p;for(var h,y=function(t){var e=s.slice(0,t),r=iy({breakAll:u,style:c,children:e+"…"}).wordsWithComputedWidth,o=f(r),a=o.length>i||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(o).width>Number(n);return[a,o]},d=0,v=s.length-1,m=0;d<=v&&m<=s.length-1;){var b=Math.floor((d+v)/2),g=ry(y(b-1),2),x=g[0],w=g[1],O=ry(y(b),1)[0];if(x||O||(d=b+1),x&&O&&(v=b-1),!x&&O){h=w;break}m++}return h||p}({breakAll:i,children:n,maxLines:a,style:o},c.wordsWithComputedWidth,c.spaceWidth,e,r):ay(n)}return ay(n)},uy="#808080",ly=function(e){var r=e.x,n=void 0===r?0:r,o=e.y,i=void 0===o?0:o,a=e.lineHeight,c=void 0===a?"1em":a,u=e.capHeight,l=void 0===u?"0.71em":u,s=e.scaleToFit,p=void 0!==s&&s,h=e.textAnchor,y=void 0===h?"start":h,d=e.verticalAnchor,v=void 0===d?"end":d,m=e.fill,b=void 0===m?uy:m,g=ey(e,Jh),w=f((function(){return cy({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:p,style:g.style,width:g.width})}),[g.breakAll,g.children,g.maxLines,p,g.style,g.width]),O=g.dx,S=g.dy,j=g.angle,A=g.className,P=g.breakAll,k=ey(g,Qh);if(!sr(n)||!sr(i))return null;var E,M=n+(lr(O)?O:0),T=i+(lr(S)?S:0);switch(v){case"start":E=Zh("calc(".concat(l,")"));break;case"middle":E=Zh("calc(".concat((w.length-1)/2," * -").concat(c," + (").concat(l," / 2))"));break;default:E=Zh("calc(".concat(w.length-1," * -").concat(c,")"))}var _=[];if(p){var C=w[0].width,I=g.width;_.push("scale(".concat((lr(I)?I/C:1)/C,")"))}return j&&_.push("rotate(".concat(j,", ").concat(M,", ").concat(T,")")),_.length&&(k.transform=_.join(" ")),t.createElement("text",ty({},Br(k,!0),{x:M,y:T,className:x("recharts-text",A),textAnchor:y,fill:b.includes("url")?uy:b}),w.map((function(e,r){var n=e.words.join(P?"":" ");return t.createElement("tspan",{x:M,dy:0===r?E:c,key:n},n)})))};function sy(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function fy(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function py(t){let e,r,n;function o(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=sy,r=(e,r)=>sy(t(e),r),n=(e,r)=>t(e)-r):(e=t===sy||t===fy?t:hy,r=t,n=t),{left:o,center:function(t,e,r=0,i=t.length){const a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<=0?o=e+1:i=e}while(o<i)}return o}}}function hy(){return 0}function yy(t){return null===t?NaN:+t}const dy=py(sy).right;py(yy).center;class vy extends Map{constructor(t,e=by){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(my(this,t))}has(t){return super.has(my(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){const n=e(r);t.has(n)&&(r=t.get(n),t.delete(n));return r}(this,t))}}function my({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function by(t){return null!==t&&"object"==typeof t?t.valueOf():t}function gy(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}const xy=Math.sqrt(50),wy=Math.sqrt(10),Oy=Math.sqrt(2);function Sy(t,e,r){const n=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=xy?10:i>=wy?5:i>=Oy?2:1;let c,u,l;return o<0?(l=Math.pow(10,-o)/a,c=Math.round(t*l),u=Math.round(e*l),c/l<t&&++c,u/l>e&&--u,l=-l):(l=Math.pow(10,o)*a,c=Math.round(t/l),u=Math.round(e/l),c*l<t&&++c,u*l>e&&--u),u<c&&.5<=r&&r<2?Sy(t,e,2*r):[c,u,l]}function jy(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[o,i,a]=n?Sy(e,t,r):Sy(t,e,r);if(!(i>=o))return[];const c=i-o+1,u=new Array(c);if(n)if(a<0)for(let t=0;t<c;++t)u[t]=(i-t)/-a;else for(let t=0;t<c;++t)u[t]=(i-t)*a;else if(a<0)for(let t=0;t<c;++t)u[t]=(o+t)/-a;else for(let t=0;t<c;++t)u[t]=(o+t)*a;return u}function Ay(t,e,r){return Sy(t=+t,e=+e,r=+r)[2]}function Py(t,e,r){r=+r;const n=(e=+e)<(t=+t),o=n?Ay(e,t,r):Ay(t,e,r);return(n?-1:1)*(o<0?1/-o:o)}function ky(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r<o||void 0===r&&o>=o)&&(r=o)}return r}function Ey(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function My(t,e,r=0,n=1/0,o){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(o=void 0===o?gy:function(t=sy){if(t===sy)return gy;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(o);n>r;){if(n-r>600){const i=n-r+1,a=e-r+1,c=Math.log(i),u=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*u*(i-u)/i)*(a-i/2<0?-1:1);My(t,e,Math.max(r,Math.floor(e-a*u/i+l)),Math.min(n,Math.floor(e+(i-a)*u/i+l)),o)}const i=t[e];let a=r,c=n;for(Ty(t,r,e),o(t[n],i)>0&&Ty(t,r,n);a<c;){for(Ty(t,a,c),++a,--c;o(t[a],i)<0;)++a;for(;o(t[c],i)>0;)--c}0===o(t[r],i)?Ty(t,r,c):(++c,Ty(t,c,n)),c<=e&&(r=c+1),e<=c&&(n=c-1)}return t}function Ty(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function _y(t,e,r=yy){if((n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,i=Math.floor(o),a=+r(t[i],i,t);return a+(+r(t[i+1],i+1,t)-a)*(o-i)}}function Cy(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Iy(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}const Dy=Symbol("implicit");function Ny(){var t=new vy,e=[],r=[],n=Dy;function o(o){let i=t.get(o);if(void 0===i){if(n!==Dy)return n;t.set(o,i=e.push(o)-1)}return r[i%r.length]}return o.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new vy;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return o},o.range=function(t){return arguments.length?(r=Array.from(t),o):r.slice()},o.unknown=function(t){return arguments.length?(n=t,o):n},o.copy=function(){return Ny(e,r).unknown(n)},Cy.apply(o,arguments),o}function Ry(){var t,e,r=Ny().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,c=!1,u=0,l=0,s=.5;function f(){var r=n().length,f=a<i,p=f?a:i,h=f?i:a;t=(h-p)/Math.max(1,r-u+2*l),c&&(t=Math.floor(t)),p+=(h-p-t*(r-u))*s,e=t*(1-u),c&&(p=Math.round(p),e=Math.round(e));var y=function(t,e,r){t=+t,e=+e,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var n=-1,o=0|Math.max(0,Math.ceil((e-t)/r)),i=new Array(o);++n<o;)i[n]=t+n*r;return i}(r).map((function(e){return p+t*e}));return o(f?y.reverse():y)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},r.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,c=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(c=!!t,f()):c},r.padding=function(t){return arguments.length?(u=Math.min(1,l=+t),f()):u},r.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),f()):u},r.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return Ry(n(),[i,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},Cy.apply(f(),arguments)}function By(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return By(e())},t}function Ly(){return By(Ry.apply(null,arguments).paddingInner(1))}function $y(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function zy(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Uy(){}var Fy=.7,qy=1/Fy,Wy="\\s*([+-]?\\d+)\\s*",Vy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hy=/^#([0-9a-f]{3,8})$/,Gy=new RegExp(`^rgb\\(${Wy},${Wy},${Wy}\\)$`),Yy=new RegExp(`^rgb\\(${Xy},${Xy},${Xy}\\)$`),Ky=new RegExp(`^rgba\\(${Wy},${Wy},${Wy},${Vy}\\)$`),Zy=new RegExp(`^rgba\\(${Xy},${Xy},${Xy},${Vy}\\)$`),Jy=new RegExp(`^hsl\\(${Vy},${Xy},${Xy}\\)$`),Qy=new RegExp(`^hsla\\(${Vy},${Xy},${Xy},${Vy}\\)$`),td={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ed(){return this.rgb().formatHex()}function rd(){return this.rgb().formatRgb()}function nd(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Hy.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?od(e):3===r?new cd(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?id(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?id(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Gy.exec(t))?new cd(e[1],e[2],e[3],1):(e=Yy.exec(t))?new cd(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ky.exec(t))?id(e[1],e[2],e[3],e[4]):(e=Zy.exec(t))?id(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Jy.exec(t))?hd(e[1],e[2]/100,e[3]/100,1):(e=Qy.exec(t))?hd(e[1],e[2]/100,e[3]/100,e[4]):td.hasOwnProperty(t)?od(td[t]):"transparent"===t?new cd(NaN,NaN,NaN,0):null}function od(t){return new cd(t>>16&255,t>>8&255,255&t,1)}function id(t,e,r,n){return n<=0&&(t=e=r=NaN),new cd(t,e,r,n)}function ad(t,e,r,n){return 1===arguments.length?((o=t)instanceof Uy||(o=nd(o)),o?new cd((o=o.rgb()).r,o.g,o.b,o.opacity):new cd):new cd(t,e,r,null==n?1:n);var o}function cd(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function ud(){return`#${pd(this.r)}${pd(this.g)}${pd(this.b)}`}function ld(){const t=sd(this.opacity);return`${1===t?"rgb(":"rgba("}${fd(this.r)}, ${fd(this.g)}, ${fd(this.b)}${1===t?")":`, ${t})`}`}function sd(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function fd(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function pd(t){return((t=fd(t))<16?"0":"")+t.toString(16)}function hd(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new dd(t,e,r,n)}function yd(t){if(t instanceof dd)return new dd(t.h,t.s,t.l,t.opacity);if(t instanceof Uy||(t=nd(t)),!t)return new dd;if(t instanceof dd)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,c=i-o,u=(i+o)/2;return c?(a=e===i?(r-n)/c+6*(r<n):r===i?(n-e)/c+2:(e-r)/c+4,c/=u<.5?i+o:2-i-o,a*=60):c=u>0&&u<1?0:a,new dd(a,c,u,t.opacity)}function dd(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function vd(t){return(t=(t||0)%360)<0?t+360:t}function md(t){return Math.max(0,Math.min(1,t||0))}function bd(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}$y(Uy,nd,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ed,formatHex:ed,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return yd(this).formatHsl()},formatRgb:rd,toString:rd}),$y(cd,ad,zy(Uy,{brighter(t){return t=null==t?qy:Math.pow(qy,t),new cd(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Fy:Math.pow(Fy,t),new cd(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new cd(fd(this.r),fd(this.g),fd(this.b),sd(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ud,formatHex:ud,formatHex8:function(){return`#${pd(this.r)}${pd(this.g)}${pd(this.b)}${pd(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ld,toString:ld})),$y(dd,(function(t,e,r,n){return 1===arguments.length?yd(t):new dd(t,e,r,null==n?1:n)}),zy(Uy,{brighter(t){return t=null==t?qy:Math.pow(qy,t),new dd(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Fy:Math.pow(Fy,t),new dd(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new cd(bd(t>=240?t-240:t+120,o,n),bd(t,o,n),bd(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new dd(vd(this.h),md(this.s),md(this.l),sd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=sd(this.opacity);return`${1===t?"hsl(":"hsla("}${vd(this.h)}, ${100*md(this.s)}%, ${100*md(this.l)}%${1===t?")":`, ${t})`}`}}));var gd=t=>()=>t;function xd(t){return 1==(t=+t)?wd:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):gd(isNaN(e)?r:e)}}function wd(t,e){var r=e-t;return r?function(t,e){return function(r){return t+r*e}}(t,r):gd(isNaN(t)?e:t)}var Od=function t(e){var r=xd(e);function n(t,e){var n=r((t=ad(t)).r,(e=ad(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=wd(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function Sd(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(r=0;r<n;++r)o[r]=t[r]*(1-i)+e[r]*i;return o}}function jd(t,e){var r,n=e?e.length:0,o=t?Math.min(n,t.length):0,i=new Array(o),a=new Array(n);for(r=0;r<o;++r)i[r]=_d(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<o;++r)a[r]=i[r](t);return a}}function Ad(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function Pd(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function kd(t,e){var r,n={},o={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=_d(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}var Ed=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Md=new RegExp(Ed.source,"g");function Td(t,e){var r,n,o,i=Ed.lastIndex=Md.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(r=Ed.exec(t))&&(n=Md.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),c[a]?c[a]+=o:c[++a]=o),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,u.push({i:a,x:Pd(r,n)})),i=Md.lastIndex;return i<e.length&&(o=e.slice(i),c[a]?c[a]+=o:c[++a]=o),c.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var r,n=0;n<e;++n)c[(r=u[n]).i]=r.x(t);return c.join("")})}function _d(t,e){var r,n=typeof e;return null==e||"boolean"===n?gd(e):("number"===n?Pd:"string"===n?(r=nd(e))?(e=r,Od):Td:e instanceof nd?Od:e instanceof Date?Ad:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?Sd:Array.isArray(e)?jd:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?kd:Pd)(t,e)}function Cd(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function Id(t,e){void 0===e&&(e=t,t=_d);for(var r=0,n=e.length-1,o=e[0],i=new Array(n<0?0:n);r<n;)i[r]=t(o,o=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return i[e](t-e)}}function Dd(t){return+t}var Nd=[0,1];function Rd(t){return t}function Bd(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function Ld(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=Bd(o,n),i=r(a,i)):(n=Bd(n,o),i=r(i,a)),function(t){return i(n(t))}}function $d(t,e,r){var n=Math.min(t.length,e.length)-1,o=new Array(n),i=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)o[a]=Bd(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=dy(t,e,1,n)-1;return i[r](o[r](e))}}function zd(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ud(){var t,e,r,n,o,i,a=Nd,c=Nd,u=_d,l=Rd;function s(){var t=Math.min(a.length,c.length);return l!==Rd&&(l=function(t,e){var r;return t>e&&(r=t,t=e,e=r),function(r){return Math.max(t,Math.min(e,r))}}(a[0],a[t-1])),n=t>2?$d:Ld,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),c,u)))(t(l(e)))}return f.invert=function(r){return l(e((i||(i=n(c,a.map(t),Pd)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Dd),s()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),s()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),u=Cd,s()},f.clamp=function(t){return arguments.length?(l=!!t||Rd,s()):l!==Rd},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function Fd(){return Ud()(Rd,Rd)}function qd(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function Wd(t){return(t=qd(Math.abs(t)))?t[1]:NaN}var Vd,Xd=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Hd(t){if(!(e=Xd.exec(t)))throw new Error("invalid format: "+t);var e;return new Gd({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Gd(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Yd(t,e){var r=qd(t,e);if(!r)return t+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}Hd.prototype=Gd.prototype,Gd.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Kd={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Yd(100*t,e),r:Yd,s:function(t,e){var r=qd(t,e);if(!r)return t+"";var n=r[0],o=r[1],i=o-(Vd=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+qd(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Zd(t){return t}var Jd,Qd,tv,ev=Array.prototype.map,rv=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function nv(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?Zd:(e=ev.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,c=e[0],u=0;o>0&&c>0&&(u+c+1>n&&(c=Math.max(1,n-u)),i.push(t.substring(o-=c,o+c)),!((u+=c+1)>n));)c=e[a=(a+1)%e.length];return i.reverse().join(r)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?Zd:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(ev.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=Hd(t)).fill,r=t.align,f=t.sign,p=t.symbol,h=t.zero,y=t.width,d=t.comma,v=t.precision,m=t.trim,b=t.type;"n"===b?(d=!0,b="g"):Kd[b]||(void 0===v&&(v=12),m=!0,b="g"),(h||"0"===e&&"="===r)&&(h=!0,e="0",r="=");var g="$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===p?i:/[%p]/.test(b)?u:"",w=Kd[b],O=/[defgprs%]/.test(b);function S(t){var o,i,u,p=g,S=x;if("c"===b)S=w(t)+S,t="";else{var j=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:w(Math.abs(t),v),m&&(t=function(t){t:for(var e,r=t.length,n=1,o=-1;n<r;++n)switch(t[n]){case".":o=e=n;break;case"0":0===o&&(o=n),e=n;break;default:if(!+t[n])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),j&&0==+t&&"+"!==f&&(j=!1),p=(j?"("===f?f:l:"-"===f||"("===f?"":f)+p,S=("s"===b?rv[8+Vd/3]:"")+S+(j&&"("===f?")":""),O)for(o=-1,i=t.length;++o<i;)if(48>(u=t.charCodeAt(o))||u>57){S=(46===u?a+t.slice(o+1):t.slice(o))+S,t=t.slice(0,o);break}}d&&!h&&(t=n(t,1/0));var A=p.length+t.length+S.length,P=A<y?new Array(y-A+1).join(e):"";switch(d&&h&&(t=n(P+t,P.length?y-S.length:1/0),P=""),r){case"<":t=p+t+S+P;break;case"=":t=p+P+t+S;break;case"^":t=P.slice(0,A=P.length>>1)+p+t+S+P.slice(A);break;default:t=P+p+t+S}return c(t)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return t+""},S}return{format:f,formatPrefix:function(t,e){var r=f(((t=Hd(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(Wd(e)/3))),o=Math.pow(10,-n),i=rv[8+n/3];return function(t){return r(o*t)+i}}}}function ov(t,e,r,n){var o,i=Py(t,e,r);switch((n=Hd(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Wd(e)/3)))-Wd(Math.abs(t)))}(i,a))||(n.precision=o),tv(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Wd(e)-Wd(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=function(t){return Math.max(0,-Wd(Math.abs(t)))}(i))||(n.precision=o-2*("%"===n.type))}return Qd(n)}function iv(t){var e=t.domain;return t.ticks=function(t){var r=e();return jy(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return ov(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,c=i.length-1,u=i[a],l=i[c],s=10;for(l<u&&(o=u,u=l,l=o,o=a,a=c,c=o);s-- >0;){if((o=Ay(u,l,r))===n)return i[a]=u,i[c]=l,e(i);if(o>0)u=Math.floor(u/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,l=Math.floor(l*o)/o}n=o}return t},t}function av(){var t=Fd();return t.copy=function(){return zd(t,av())},Cy.apply(t,arguments),iv(t)}function cv(t,e){var r,n=0,o=(t=t.slice()).length-1,i=t[n],a=t[o];return a<i&&(r=n,n=o,o=r,r=i,i=a,a=r),t[n]=e.floor(i),t[o]=e.ceil(a),t}function uv(t){return Math.log(t)}function lv(t){return Math.exp(t)}function sv(t){return-Math.log(-t)}function fv(t){return-Math.exp(-t)}function pv(t){return isFinite(t)?+("1e"+t):t<0?0:t}function hv(t){return(e,r)=>-t(-e,r)}function yv(t){const e=t(uv,lv),r=e.domain;let n,o,i=10;function a(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(i),o=function(t){return 10===t?pv:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),r()[0]<0?(n=hv(n),o=hv(o),t(sv,fv)):t(uv,lv),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],c=e[e.length-1];const u=c<a;u&&([a,c]=[c,a]);let l,s,f=n(a),p=n(c);const h=null==t?10:+t;let y=[];if(!(i%1)&&p-f<h){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<i;++l)if(s=f<0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;y.push(s)}}else for(;f<=p;++f)for(l=i-1;l>=1;--l)if(s=f>0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;y.push(s)}2*y.length<h&&(y=jy(a,c,h))}else y=jy(f,p,Math.min(p-f,h)).map(o);return u?y.reverse():y},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===i?"s":","),"function"!=typeof r&&(i%1||null!=(r=Hd(r)).precision||(r.trim=!0),r=Qd(r)),t===1/0)return r;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(n(t)));return e*i<i-.5&&(e*=i),e<=a?r(t):""}},e.nice=()=>r(cv(r(),{floor:t=>o(Math.floor(n(t))),ceil:t=>o(Math.ceil(n(t)))})),e}function dv(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function vv(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function mv(t){var e=1,r=t(dv(e),vv(e));return r.constant=function(r){return arguments.length?t(dv(e=+r),vv(e)):e},iv(r)}function bv(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function gv(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function xv(t){return t<0?-t*t:t*t}function wv(t){var e=t(Rd,Rd),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(Rd,Rd):.5===r?t(gv,xv):t(bv(r),bv(1/r)):r},iv(e)}function Ov(){var t=wv(Ud());return t.copy=function(){return zd(t,Ov()).exponent(t.exponent())},Cy.apply(t,arguments),t}function Sv(t){return Math.sign(t)*t*t}Jd=nv({thousands:",",grouping:[3],currency:["$",""]}),Qd=Jd.format,tv=Jd.formatPrefix;const jv=new Date,Av=new Date;function Pv(t,e,r,n){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{const e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{const a=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return a;let c;do{a.push(c=new Date(+r)),e(r,i),t(r)}while(c<r&&r<n);return a},o.filter=r=>Pv((e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),((t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););})),r&&(o.count=(e,n)=>(jv.setTime(+e),Av.setTime(+n),t(jv),t(Av),Math.floor(r(jv,Av))),o.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(n?e=>n(e)%t==0:e=>o.count(0,e)%t==0):o:null)),o}const kv=Pv((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));kv.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Pv((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):kv:null),kv.range;const Ev=1e3,Mv=6e4,Tv=36e5,_v=864e5,Cv=6048e5,Iv=2592e6,Dv=31536e6,Nv=Pv((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Ev)}),((t,e)=>(e-t)/Ev),(t=>t.getUTCSeconds()));Nv.range;const Rv=Pv((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ev)}),((t,e)=>{t.setTime(+t+e*Mv)}),((t,e)=>(e-t)/Mv),(t=>t.getMinutes()));Rv.range;const Bv=Pv((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*Mv)}),((t,e)=>(e-t)/Mv),(t=>t.getUTCMinutes()));Bv.range;const Lv=Pv((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ev-t.getMinutes()*Mv)}),((t,e)=>{t.setTime(+t+e*Tv)}),((t,e)=>(e-t)/Tv),(t=>t.getHours()));Lv.range;const $v=Pv((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*Tv)}),((t,e)=>(e-t)/Tv),(t=>t.getUTCHours()));$v.range;const zv=Pv((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Mv)/_v),(t=>t.getDate()-1));zv.range;const Uv=Pv((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/_v),(t=>t.getUTCDate()-1));Uv.range;const Fv=Pv((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/_v),(t=>Math.floor(t/_v)));function qv(t){return Pv((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Mv)/Cv))}Fv.range;const Wv=qv(0),Vv=qv(1),Xv=qv(2),Hv=qv(3),Gv=qv(4),Yv=qv(5),Kv=qv(6);function Zv(t){return Pv((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Cv))}Wv.range,Vv.range,Xv.range,Hv.range,Gv.range,Yv.range,Kv.range;const Jv=Zv(0),Qv=Zv(1),tm=Zv(2),em=Zv(3),rm=Zv(4),nm=Zv(5),om=Zv(6);Jv.range,Qv.range,tm.range,em.range,rm.range,nm.range,om.range;const im=Pv((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()));im.range;const am=Pv((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()));am.range;const cm=Pv((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear()));cm.every=t=>isFinite(t=Math.floor(t))&&t>0?Pv((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,r)=>{e.setFullYear(e.getFullYear()+r*t)})):null,cm.range;const um=Pv((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));function lm(t,e,r,n,o,i){const a=[[Nv,1,Ev],[Nv,5,5e3],[Nv,15,15e3],[Nv,30,3e4],[i,1,Mv],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Tv],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,_v],[n,2,1728e5],[r,1,Cv],[e,1,Iv],[e,3,7776e6],[t,1,Dv]];function c(e,r,n){const o=Math.abs(r-e)/n,i=py((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(Py(e/Dv,r/Dv,n));if(0===i)return kv.every(Math.max(Py(e,r,n),1));const[c,u]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return c.every(u)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const o=r&&"function"==typeof r.range?r:c(t,e,r),i=o?o.range(t,+e+1):[];return n?i.reverse():i},c]}um.every=t=>isFinite(t=Math.floor(t))&&t>0?Pv((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null,um.range;const[sm,fm]=lm(um,am,Jv,Fv,$v,Bv),[pm,hm]=lm(cm,im,Wv,zv,Lv,Rv);function ym(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function dm(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function vm(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var mm,bm,gm,xm={"-":"",_:" ",0:"0"},wm=/^\s*\d+/,Om=/^%/,Sm=/[\\^$*+?|[\]().{}]/g;function jm(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(e)+o:o)}function Am(t){return t.replace(Sm,"\\$&")}function Pm(t){return new RegExp("^(?:"+t.map(Am).join("|")+")","i")}function km(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Em(t,e,r){var n=wm.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Mm(t,e,r){var n=wm.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function Tm(t,e,r){var n=wm.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function _m(t,e,r){var n=wm.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function Cm(t,e,r){var n=wm.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function Im(t,e,r){var n=wm.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Dm(t,e,r){var n=wm.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Nm(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Rm(t,e,r){var n=wm.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function Bm(t,e,r){var n=wm.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Lm(t,e,r){var n=wm.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function $m(t,e,r){var n=wm.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function zm(t,e,r){var n=wm.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function Um(t,e,r){var n=wm.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function Fm(t,e,r){var n=wm.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function qm(t,e,r){var n=wm.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function Wm(t,e,r){var n=wm.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Vm(t,e,r){var n=Om.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function Xm(t,e,r){var n=wm.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Hm(t,e,r){var n=wm.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function Gm(t,e){return jm(t.getDate(),e,2)}function Ym(t,e){return jm(t.getHours(),e,2)}function Km(t,e){return jm(t.getHours()%12||12,e,2)}function Zm(t,e){return jm(1+zv.count(cm(t),t),e,3)}function Jm(t,e){return jm(t.getMilliseconds(),e,3)}function Qm(t,e){return Jm(t,e)+"000"}function tb(t,e){return jm(t.getMonth()+1,e,2)}function eb(t,e){return jm(t.getMinutes(),e,2)}function rb(t,e){return jm(t.getSeconds(),e,2)}function nb(t){var e=t.getDay();return 0===e?7:e}function ob(t,e){return jm(Wv.count(cm(t)-1,t),e,2)}function ib(t){var e=t.getDay();return e>=4||0===e?Gv(t):Gv.ceil(t)}function ab(t,e){return t=ib(t),jm(Gv.count(cm(t),t)+(4===cm(t).getDay()),e,2)}function cb(t){return t.getDay()}function ub(t,e){return jm(Vv.count(cm(t)-1,t),e,2)}function lb(t,e){return jm(t.getFullYear()%100,e,2)}function sb(t,e){return jm((t=ib(t)).getFullYear()%100,e,2)}function fb(t,e){return jm(t.getFullYear()%1e4,e,4)}function pb(t,e){var r=t.getDay();return jm((t=r>=4||0===r?Gv(t):Gv.ceil(t)).getFullYear()%1e4,e,4)}function hb(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+jm(e/60|0,"0",2)+jm(e%60,"0",2)}function yb(t,e){return jm(t.getUTCDate(),e,2)}function db(t,e){return jm(t.getUTCHours(),e,2)}function vb(t,e){return jm(t.getUTCHours()%12||12,e,2)}function mb(t,e){return jm(1+Uv.count(um(t),t),e,3)}function bb(t,e){return jm(t.getUTCMilliseconds(),e,3)}function gb(t,e){return bb(t,e)+"000"}function xb(t,e){return jm(t.getUTCMonth()+1,e,2)}function wb(t,e){return jm(t.getUTCMinutes(),e,2)}function Ob(t,e){return jm(t.getUTCSeconds(),e,2)}function Sb(t){var e=t.getUTCDay();return 0===e?7:e}function jb(t,e){return jm(Jv.count(um(t)-1,t),e,2)}function Ab(t){var e=t.getUTCDay();return e>=4||0===e?rm(t):rm.ceil(t)}function Pb(t,e){return t=Ab(t),jm(rm.count(um(t),t)+(4===um(t).getUTCDay()),e,2)}function kb(t){return t.getUTCDay()}function Eb(t,e){return jm(Qv.count(um(t)-1,t),e,2)}function Mb(t,e){return jm(t.getUTCFullYear()%100,e,2)}function Tb(t,e){return jm((t=Ab(t)).getUTCFullYear()%100,e,2)}function _b(t,e){return jm(t.getUTCFullYear()%1e4,e,4)}function Cb(t,e){var r=t.getUTCDay();return jm((t=r>=4||0===r?rm(t):rm.ceil(t)).getUTCFullYear()%1e4,e,4)}function Ib(){return"+0000"}function Db(){return"%"}function Nb(t){return+t}function Rb(t){return Math.floor(+t/1e3)}function Bb(t){return new Date(t)}function Lb(t){return t instanceof Date?+t:+new Date(+t)}function $b(t,e,r,n,o,i,a,c,u,l){var s=Fd(),f=s.invert,p=s.domain,h=l(".%L"),y=l(":%S"),d=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),b=l("%b %d"),g=l("%B"),x=l("%Y");function w(t){return(u(t)<t?h:c(t)<t?y:a(t)<t?d:i(t)<t?v:n(t)<t?o(t)<t?m:b:r(t)<t?g:x)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,Lb)):p().map(Bb)},s.ticks=function(e){var r=p();return t(r[0],r[r.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?w:l(e)},s.nice=function(t){var r=p();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?p(cv(r,t)):s},s.copy=function(){return zd(s,$b(t,e,r,n,o,i,a,c,u,l))},s}function zb(){var t,e,r,n,o,i=0,a=1,c=Rd,u=!1;function l(e){return null==e||isNaN(e=+e)?o:c(0===r?.5:(e=(n(e)-t)*r,u?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,c=t(r,n),l):[c(0),c(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=n(i=+i),e=n(a=+a),r=t===e?0:1/(e-t),l):[i,a]},l.clamp=function(t){return arguments.length?(u=!!t,l):u},l.interpolator=function(t){return arguments.length?(c=t,l):c},l.range=s(_d),l.rangeRound=s(Cd),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return n=o,t=o(i),e=o(a),r=t===e?0:1/(e-t),l}}function Ub(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Fb(){var t=wv(zb());return t.copy=function(){return Ub(t,Fb()).exponent(t.exponent())},Iy.apply(t,arguments)}function qb(){var t,e,r,n,o,i,a,c=0,u=.5,l=1,s=1,f=Rd,p=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(s*t<s*e?n:o),f(p?Math.max(0,Math.min(1,t)):t))}function y(t){return function(e){var r,n,o;return arguments.length?([r,n,o]=e,f=Id(t,[r,n,o]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([c,u,l]=a,t=i(c=+c),e=i(u=+u),r=i(l=+l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h):[c,u,l]},h.clamp=function(t){return arguments.length?(p=!!t,h):p},h.interpolator=function(t){return arguments.length?(f=t,h):f},h.range=y(_d),h.rangeRound=y(Cd),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return i=a,t=a(c),e=a(u),r=a(l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h}}function Wb(){var t=wv(qb());return t.copy=function(){return Ub(t,Wb()).exponent(t.exponent())},Iy.apply(t,arguments)}!function(t){mm=function(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,l=Pm(o),s=km(o),f=Pm(i),p=km(i),h=Pm(a),y=km(a),d=Pm(c),v=km(c),m=Pm(u),b=km(u),g={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:Gm,e:Gm,f:Qm,g:sb,G:pb,H:Ym,I:Km,j:Zm,L:Jm,m:tb,M:eb,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Nb,s:Rb,S:rb,u:nb,U:ob,V:ab,w:cb,W:ub,x:null,X:null,y:lb,Y:fb,Z:hb,"%":Db},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:yb,e:yb,f:gb,g:Tb,G:Cb,H:db,I:vb,j:mb,L:bb,m:xb,M:wb,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Nb,s:Rb,S:Ob,u:Sb,U:jb,V:Pb,w:kb,W:Eb,x:null,X:null,y:Mb,Y:_b,Z:Ib,"%":Db},w={a:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=y.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=d.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return j(t,e,r,n)},d:Lm,e:Lm,f:Wm,g:Dm,G:Im,H:zm,I:zm,j:$m,L:qm,m:Bm,M:Um,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:Rm,Q:Xm,s:Hm,S:Fm,u:Mm,U:Tm,V:_m,w:Em,W:Cm,x:function(t,e,n){return j(t,r,e,n)},X:function(t,e,r){return j(t,n,e,r)},y:Dm,Y:Im,Z:Nm,"%":Vm};function O(t,e){return function(r){var n,o,i,a=[],c=-1,u=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++c<l;)37===t.charCodeAt(c)&&(a.push(t.slice(u,c)),null!=(o=xm[n=t.charAt(++c)])?n=t.charAt(++c):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),a.push(n),u=c+1);return a.push(t.slice(u,c)),a.join("")}}function S(t,e){return function(r){var n,o,i=vm(1900,void 0,1);if(j(i,t,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(n=dm(vm(i.y,0,1))).getUTCDay(),n=o>4||0===o?Qv.ceil(n):Qv(n),n=Uv.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=ym(vm(i.y,0,1))).getDay(),n=o>4||0===o?Vv.ceil(n):Vv(n),n=zv.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?dm(vm(i.y,0,1)).getUTCDay():ym(vm(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,dm(i)):ym(i)}}function j(t,e,r,n){for(var o,i,a=0,c=e.length,u=r.length;a<c;){if(n>=u)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=w[o in xm?e.charAt(a++):o])||(n=i(t,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return g.x=O(r,g),g.X=O(n,g),g.c=O(e,g),x.x=O(r,x),x.X=O(n,x),x.c=O(e,x),{format:function(t){var e=O(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}(t),bm=mm.format,mm.parse,gm=mm.utcFormat,mm.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Vb=Object.freeze({__proto__:null,scaleBand:Ry,scaleDiverging:function t(){var e=iv(qb()(Rd));return e.copy=function(){return Ub(e,t())},Iy.apply(e,arguments)},scaleDivergingLog:function t(){var e=yv(qb()).domain([.1,1,10]);return e.copy=function(){return Ub(e,t()).base(e.base())},Iy.apply(e,arguments)},scaleDivergingPow:Wb,scaleDivergingSqrt:function(){return Wb.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=mv(qb());return e.copy=function(){return Ub(e,t()).constant(e.constant())},Iy.apply(e,arguments)},scaleIdentity:function t(e){var r;function n(t){return null==t||isNaN(t=+t)?r:t}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,Dd),n):e.slice()},n.unknown=function(t){return arguments.length?(r=t,n):r},n.copy=function(){return t(e).unknown(r)},e=arguments.length?Array.from(e,Dd):[0,1],iv(n)},scaleImplicit:Dy,scaleLinear:av,scaleLog:function t(){const e=yv(Ud()).domain([1,10]);return e.copy=()=>zd(e,t()).base(e.base()),Cy.apply(e,arguments),e},scaleOrdinal:Ny,scalePoint:Ly,scalePow:Ov,scaleQuantile:function t(){var e,r=[],n=[],o=[];function i(){var t=0,e=Math.max(1,n.length);for(o=new Array(e-1);++t<e;)o[t-1]=_y(r,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:n[dy(o,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?o[e-1]:r[0],e<o.length?o[e]:r[r.length-1]]},a.domain=function(t){if(!arguments.length)return r.slice();r=[];for(let e of t)null==e||isNaN(e=+e)||r.push(e);return r.sort(sy),i()},a.range=function(t){return arguments.length?(n=Array.from(t),i()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return o.slice()},a.copy=function(){return t().domain(r).range(n).unknown(e)},Cy.apply(a,arguments)},scaleQuantize:function t(){var e,r=0,n=1,o=1,i=[.5],a=[0,1];function c(t){return null!=t&&t<=t?a[dy(i,t,0,o)]:e}function u(){var t=-1;for(i=new Array(o);++t<o;)i[t]=((t+1)*n-(t-o)*r)/(o+1);return c}return c.domain=function(t){return arguments.length?([r,n]=t,r=+r,n=+n,u()):[r,n]},c.range=function(t){return arguments.length?(o=(a=Array.from(t)).length-1,u()):a.slice()},c.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,i[0]]:e>=o?[i[o-1],n]:[i[e-1],i[e]]},c.unknown=function(t){return arguments.length?(e=t,c):c},c.thresholds=function(){return i.slice()},c.copy=function(){return t().domain([r,n]).range(a).unknown(e)},Cy.apply(iv(c),arguments)},scaleRadial:function t(){var e,r=Fd(),n=[0,1],o=!1;function i(t){var n=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(r(t));return isNaN(n)?e:o?Math.round(n):n}return i.invert=function(t){return r.invert(Sv(t))},i.domain=function(t){return arguments.length?(r.domain(t),i):r.domain()},i.range=function(t){return arguments.length?(r.range((n=Array.from(t,Dd)).map(Sv)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(o=!!t,i):o},i.clamp=function(t){return arguments.length?(r.clamp(t),i):r.clamp()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t(r.domain(),n).round(o).clamp(r.clamp()).unknown(e)},Cy.apply(i,arguments),iv(i)},scaleSequential:function t(){var e=iv(zb()(Rd));return e.copy=function(){return Ub(e,t())},Iy.apply(e,arguments)},scaleSequentialLog:function t(){var e=yv(zb()).domain([1,10]);return e.copy=function(){return Ub(e,t()).base(e.base())},Iy.apply(e,arguments)},scaleSequentialPow:Fb,scaleSequentialQuantile:function t(){var e=[],r=Rd;function n(t){if(null!=t&&!isNaN(t=+t))return r((dy(e,t,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(sy),n},n.interpolator=function(t){return arguments.length?(r=t,n):r},n.range=function(){return e.map(((t,n)=>r(n/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((r,n)=>function(t,e,r){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n=+n)>=n&&(yield n)}}(t,r)),(n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return Ey(t);if(e>=1)return ky(t);var n,o=(n-1)*e,i=Math.floor(o),a=ky(My(t,i).subarray(0,i+1));return a+(Ey(t.subarray(i+1))-a)*(o-i)}}(e,n/t)))},n.copy=function(){return t(r).domain(e)},Iy.apply(n,arguments)},scaleSequentialSqrt:function(){return Fb.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=mv(zb());return e.copy=function(){return Ub(e,t()).constant(e.constant())},Iy.apply(e,arguments)},scaleSqrt:function(){return Ov.apply(null,arguments).exponent(.5)},scaleSymlog:function t(){var e=mv(Ud());return e.copy=function(){return zd(e,t()).constant(e.constant())},Cy.apply(e,arguments)},scaleThreshold:function t(){var e,r=[.5],n=[0,1],o=1;function i(t){return null!=t&&t<=t?n[dy(r,t,0,o)]:e}return i.domain=function(t){return arguments.length?(r=Array.from(t),o=Math.min(r.length,n.length-1),i):r.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),o=Math.min(r.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t().domain(r).range(n).unknown(e)},Cy.apply(i,arguments)},scaleTime:function(){return Cy.apply($b(pm,hm,cm,im,Wv,zv,Lv,Rv,Nv,bm).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return Cy.apply($b(sm,fm,um,am,Jv,Uv,$v,Bv,Nv,gm).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:ov}),Xb=U;var Hb=function(t,e,r){for(var n=-1,o=t.length;++n<o;){var i=t[n],a=e(i);if(null!=a&&(void 0===c?a==a&&!Xb(a):r(a,c)))var c=a,u=i}return u};var Gb=function(t,e){return t>e},Yb=Hb,Kb=Gb,Zb=cu;var Jb=function(t){return t&&t.length?Yb(t,Zb,Kb):void 0},Qb=d(Jb);var tg=function(t,e){return t<e},eg=Hb,rg=tg,ng=cu;var og=function(t){return t&&t.length?eg(t,ng,rg):void 0},ig=d(og),ag=Oe,cg=xu,ug=gl,lg=w;var sg=sl,fg=function(t,e){return(lg(t)?ag:ug)(t,cg(e))};var pg=d((function(t,e){return sg(fg(t,e),1)})),hg=Ec;var yg,dg=d((function(t,e){return hg(t,e)})),vg=1e9,mg=!0,bg="[DecimalError] ",gg=bg+"Invalid argument: ",xg=bg+"Exponent out of range: ",wg=Math.floor,Og=Math.pow,Sg=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,jg=1e7,Ag=7,Pg=9007199254740991,kg=wg(Pg/Ag),Eg={};function Mg(t,e){var r,n,o,i,a,c,u,l,s=t.constructor,f=s.precision;if(!t.s||!e.s)return e.s||(e=new s(t)),mg?$g(e,f):e;if(u=t.d,l=e.d,a=t.e,o=e.e,u=u.slice(),i=a-o){for(i<0?(n=u,i=-i,c=l.length):(n=l,o=a,c=u.length),i>(c=(a=Math.ceil(f/Ag))>c?a+1:c+1)&&(i=c,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((c=u.length)-(i=l.length)<0&&(i=c,n=l,l=u,u=n),r=0;i;)r=(u[--i]=u[i]+l[i]+r)/jg|0,u[i]%=jg;for(r&&(u.unshift(r),++o),c=u.length;0==u[--c];)u.pop();return e.d=u,e.e=o,mg?$g(e,f):e}function Tg(t,e,r){if(t!==~~t||t<e||t>r)throw Error(gg+t)}function _g(t){var e,r,n,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;e<o;e++)n=t[e]+"",(r=Ag-n.length)&&(i+=Rg(r)),i+=n;a=t[e],(r=Ag-(n=a+"").length)&&(i+=Rg(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}Eg.absoluteValue=Eg.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},Eg.comparedTo=Eg.cmp=function(t){var e,r,n,o,i=this;if(t=new i.constructor(t),i.s!==t.s)return i.s||-t.s;if(i.e!==t.e)return i.e>t.e^i.s<0?1:-1;for(e=0,r=(n=i.d.length)<(o=t.d.length)?n:o;e<r;++e)if(i.d[e]!==t.d[e])return i.d[e]>t.d[e]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1},Eg.decimalPlaces=Eg.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*Ag;if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},Eg.dividedBy=Eg.div=function(t){return Cg(this,new this.constructor(t))},Eg.dividedToIntegerBy=Eg.idiv=function(t){var e=this.constructor;return $g(Cg(this,new e(t),0,1),e.precision)},Eg.equals=Eg.eq=function(t){return!this.cmp(t)},Eg.exponent=function(){return Dg(this)},Eg.greaterThan=Eg.gt=function(t){return this.cmp(t)>0},Eg.greaterThanOrEqualTo=Eg.gte=function(t){return this.cmp(t)>=0},Eg.isInteger=Eg.isint=function(){return this.e>this.d.length-2},Eg.isNegative=Eg.isneg=function(){return this.s<0},Eg.isPositive=Eg.ispos=function(){return this.s>0},Eg.isZero=function(){return 0===this.s},Eg.lessThan=Eg.lt=function(t){return this.cmp(t)<0},Eg.lessThanOrEqualTo=Eg.lte=function(t){return this.cmp(t)<1},Eg.logarithm=Eg.log=function(t){var e,r=this,n=r.constructor,o=n.precision,i=o+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(yg))throw Error(bg+"NaN");if(r.s<1)throw Error(bg+(r.s?"NaN":"-Infinity"));return r.eq(yg)?new n(0):(mg=!1,e=Cg(Bg(r,i),Bg(t,i),i),mg=!0,$g(e,o))},Eg.minus=Eg.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?zg(e,t):Mg(e,(t.s=-t.s,t))},Eg.modulo=Eg.mod=function(t){var e,r=this,n=r.constructor,o=n.precision;if(!(t=new n(t)).s)throw Error(bg+"NaN");return r.s?(mg=!1,e=Cg(r,t,0,1).times(t),mg=!0,r.minus(e)):$g(new n(r),o)},Eg.naturalExponential=Eg.exp=function(){return Ig(this)},Eg.naturalLogarithm=Eg.ln=function(){return Bg(this)},Eg.negated=Eg.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},Eg.plus=Eg.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?Mg(e,t):zg(e,(t.s=-t.s,t))},Eg.precision=Eg.sd=function(t){var e,r,n,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(gg+t);if(e=Dg(o)+1,r=(n=o.d.length-1)*Ag+1,n=o.d[n]){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},Eg.squareRoot=Eg.sqrt=function(){var t,e,r,n,o,i,a,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(bg+"NaN")}for(t=Dg(c),mg=!1,0==(o=Math.sqrt(+c))||o==1/0?(((e=_g(c.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=wg((t+1)/2)-(t<0||t%2),n=new u(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new u(o.toString()),o=a=(r=u.precision)+3;;)if(n=(i=n).plus(Cg(c,i,a+2)).times(.5),_g(i.d).slice(0,a)===(e=_g(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if($g(i,r+1,0),i.times(i).eq(c)){n=i;break}}else if("9999"!=e)break;a+=4}return mg=!0,$g(n,r)},Eg.times=Eg.mul=function(t){var e,r,n,o,i,a,c,u,l,s=this,f=s.constructor,p=s.d,h=(t=new f(t)).d;if(!s.s||!t.s)return new f(0);for(t.s*=s.s,r=s.e+t.e,(u=p.length)<(l=h.length)&&(i=p,p=h,h=i,a=u,u=l,l=a),i=[],n=a=u+l;n--;)i.push(0);for(n=l;--n>=0;){for(e=0,o=u+n;o>n;)c=i[o]+h[n]*p[o-n-1]+e,i[o--]=c%jg|0,e=c/jg|0;i[o]=(i[o]+e)%jg|0}for(;!i[--a];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,mg?$g(t,f.precision):t},Eg.toDecimalPlaces=Eg.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(Tg(t,0,vg),void 0===e?e=n.rounding:Tg(e,0,8),$g(r,t+Dg(r)+1,e))},Eg.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=Ug(n,!0):(Tg(t,0,vg),void 0===e?e=o.rounding:Tg(e,0,8),r=Ug(n=$g(new o(n),t+1,e),!0,t+1)),r},Eg.toFixed=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?Ug(o):(Tg(t,0,vg),void 0===e?e=i.rounding:Tg(e,0,8),r=Ug((n=$g(new i(o),t+Dg(o)+1,e)).abs(),!1,t+Dg(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},Eg.toInteger=Eg.toint=function(){var t=this,e=t.constructor;return $g(new e(t),Dg(t)+1,e.rounding)},Eg.toNumber=function(){return+this},Eg.toPower=Eg.pow=function(t){var e,r,n,o,i,a,c=this,u=c.constructor,l=+(t=new u(t));if(!t.s)return new u(yg);if(!(c=new u(c)).s){if(t.s<1)throw Error(bg+"Infinity");return c}if(c.eq(yg))return c;if(n=u.precision,t.eq(yg))return $g(c,n);if(a=(e=t.e)>=(r=t.d.length-1),i=c.s,a){if((r=l<0?-l:l)<=Pg){for(o=new u(yg),e=Math.ceil(n/Ag+4),mg=!1;r%2&&Fg((o=o.times(c)).d,e),0!==(r=wg(r/2));)Fg((c=c.times(c)).d,e);return mg=!0,t.s<0?new u(yg).div(o):$g(o,n)}}else if(i<0)throw Error(bg+"NaN");return i=i<0&&1&t.d[Math.max(e,r)]?-1:1,c.s=1,mg=!1,o=t.times(Bg(c,n+12)),mg=!0,(o=Ig(o)).s=i,o},Eg.toPrecision=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?n=Ug(o,(r=Dg(o))<=i.toExpNeg||r>=i.toExpPos):(Tg(t,1,vg),void 0===e?e=i.rounding:Tg(e,0,8),n=Ug(o=$g(new i(o),t,e),t<=(r=Dg(o))||r<=i.toExpNeg,t)),n},Eg.toSignificantDigits=Eg.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(Tg(t,1,vg),void 0===e?e=r.rounding:Tg(e,0,8)),$g(new r(this),t,e)},Eg.toString=Eg.valueOf=Eg.val=Eg.toJSON=Eg[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=Dg(t),r=t.constructor;return Ug(t,e<=r.toExpNeg||e>=r.toExpPos)};var Cg=function(){function t(t,e){var r,n=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+n,t[o]=r%jg|0,n=r/jg|0;return n&&t.unshift(n),t}function e(t,e,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]<e[r]?1:0,t[r]=n*jg+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,o,i,a){var c,u,l,s,f,p,h,y,d,v,m,b,g,x,w,O,S,j,A=n.constructor,P=n.s==o.s?1:-1,k=n.d,E=o.d;if(!n.s)return new A(n);if(!o.s)throw Error(bg+"Division by zero");for(u=n.e-o.e,S=E.length,w=k.length,y=(h=new A(P)).d=[],l=0;E[l]==(k[l]||0);)++l;if(E[l]>(k[l]||0)&&--u,(b=null==i?i=A.precision:a?i+(Dg(n)-Dg(o))+1:i)<0)return new A(0);if(b=b/Ag+2|0,l=0,1==S)for(s=0,E=E[0],b++;(l<w||s)&&b--;l++)g=s*jg+(k[l]||0),y[l]=g/E|0,s=g%E|0;else{for((s=jg/(E[0]+1)|0)>1&&(E=t(E,s),k=t(k,s),S=E.length,w=k.length),x=S,v=(d=k.slice(0,S)).length;v<S;)d[v++]=0;(j=E.slice()).unshift(0),O=E[0],E[1]>=jg/2&&++O;do{s=0,(c=e(E,d,S,v))<0?(m=d[0],S!=v&&(m=m*jg+(d[1]||0)),(s=m/O|0)>1?(s>=jg&&(s=jg-1),1==(c=e(f=t(E,s),d,p=f.length,v=d.length))&&(s--,r(f,S<p?j:E,p))):(0==s&&(c=s=1),f=E.slice()),(p=f.length)<v&&f.unshift(0),r(d,f,v),-1==c&&(c=e(E,d,S,v=d.length))<1&&(s++,r(d,S<v?j:E,v)),v=d.length):0===c&&(s++,d=[0]),y[l++]=s,c&&d[0]?d[v++]=k[x]||0:(d=[k[x]],v=1)}while((x++<w||void 0!==d[0])&&b--)}return y[0]||y.shift(),h.e=u,$g(h,a?i+Dg(h)+1:i)}}();function Ig(t,e){var r,n,o,i,a,c=0,u=0,l=t.constructor,s=l.precision;if(Dg(t)>16)throw Error(xg+Dg(t));if(!t.s)return new l(yg);for(null==e?(mg=!1,a=s):a=e,i=new l(.03125);t.abs().gte(.1);)t=t.times(i),u+=5;for(a+=Math.log(Og(2,u))/Math.LN10*2+5|0,r=n=o=new l(yg),l.precision=a;;){if(n=$g(n.times(t),a),r=r.times(++c),_g((i=o.plus(Cg(n,r,a))).d).slice(0,a)===_g(o.d).slice(0,a)){for(;u--;)o=$g(o.times(o),a);return l.precision=s,null==e?(mg=!0,$g(o,s)):o}o=i}}function Dg(t){for(var e=t.e*Ag,r=t.d[0];r>=10;r/=10)e++;return e}function Ng(t,e,r){if(e>t.LN10.sd())throw mg=!0,r&&(t.precision=r),Error(bg+"LN10 precision limit exceeded");return $g(new t(t.LN10),e)}function Rg(t){for(var e="";t--;)e+="0";return e}function Bg(t,e){var r,n,o,i,a,c,u,l,s,f=1,p=t,h=p.d,y=p.constructor,d=y.precision;if(p.s<1)throw Error(bg+(p.s?"NaN":"-Infinity"));if(p.eq(yg))return new y(0);if(null==e?(mg=!1,l=d):l=e,p.eq(10))return null==e&&(mg=!0),Ng(y,l);if(l+=10,y.precision=l,n=(r=_g(h)).charAt(0),i=Dg(p),!(Math.abs(i)<15e14))return u=Ng(y,l+2,d).times(i+""),p=Bg(new y(n+"."+r.slice(1)),l-10).plus(u),y.precision=d,null==e?(mg=!0,$g(p,d)):p;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=_g((p=p.times(t)).d)).charAt(0),f++;for(i=Dg(p),n>1?(p=new y("0."+r),i++):p=new y(n+"."+r.slice(1)),c=a=p=Cg(p.minus(yg),p.plus(yg),l),s=$g(p.times(p),l),o=3;;){if(a=$g(a.times(s),l),_g((u=c.plus(Cg(a,new y(o),l))).d).slice(0,l)===_g(c.d).slice(0,l))return c=c.times(2),0!==i&&(c=c.plus(Ng(y,l+2,d).times(i+""))),c=Cg(c,new y(f),l),y.precision=d,null==e?(mg=!0,$g(c,d)):c;c=u,o+=2}}function Lg(t,e){var r,n,o;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(n,o)){if(o-=n,r=r-n-1,t.e=wg(r/Ag),t.d=[],n=(r+1)%Ag,r<0&&(n+=Ag),n<o){for(n&&t.d.push(+e.slice(0,n)),o-=Ag;n<o;)t.d.push(+e.slice(n,n+=Ag));e=e.slice(n),n=Ag-e.length}else n-=o;for(;n--;)e+="0";if(t.d.push(+e),mg&&(t.e>kg||t.e<-kg))throw Error(xg+r)}else t.s=0,t.e=0,t.d=[0];return t}function $g(t,e,r){var n,o,i,a,c,u,l,s,f=t.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((n=e-a)<0)n+=Ag,o=e,l=f[s=0];else{if((s=Math.ceil((n+1)/Ag))>=(i=f.length))return t;for(l=i=f[s],a=1;i>=10;i/=10)a++;o=(n%=Ag)-Ag+a}if(void 0!==r&&(c=l/(i=Og(10,a-o-1))%10|0,u=e<0||void 0!==f[s+1]||l%i,u=r<4?(c||u)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||u||6==r&&(n>0?o>0?l/Og(10,a-o):0:f[s-1])%10&1||r==(t.s<0?8:7))),e<1||!f[0])return u?(i=Dg(t),f.length=1,e=e-i-1,f[0]=Og(10,(Ag-e%Ag)%Ag),t.e=wg(-e/Ag)||0):(f.length=1,f[0]=t.e=t.s=0),t;if(0==n?(f.length=s,i=1,s--):(f.length=s+1,i=Og(10,Ag-n),f[s]=o>0?(l/Og(10,a-o)%Og(10,o)|0)*i:0),u)for(;;){if(0==s){(f[0]+=i)==jg&&(f[0]=1,++t.e);break}if(f[s]+=i,f[s]!=jg)break;f[s--]=0,i=1}for(n=f.length;0===f[--n];)f.pop();if(mg&&(t.e>kg||t.e<-kg))throw Error(xg+Dg(t));return t}function zg(t,e){var r,n,o,i,a,c,u,l,s,f,p=t.constructor,h=p.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new p(t),mg?$g(e,h):e;if(u=t.d,f=e.d,n=e.e,l=t.e,u=u.slice(),a=l-n){for((s=a<0)?(r=u,a=-a,c=f.length):(r=f,n=l,c=u.length),a>(o=Math.max(Math.ceil(h/Ag),c)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((s=(o=u.length)<(c=f.length))&&(c=o),o=0;o<c;o++)if(u[o]!=f[o]){s=u[o]<f[o];break}a=0}for(s&&(r=u,u=f,f=r,e.s=-e.s),c=u.length,o=f.length-c;o>0;--o)u[c++]=0;for(o=f.length;o>a;){if(u[--o]<f[o]){for(i=o;i&&0===u[--i];)u[i]=jg-1;--u[i],u[o]+=jg}u[o]-=f[o]}for(;0===u[--c];)u.pop();for(;0===u[0];u.shift())--n;return u[0]?(e.d=u,e.e=n,mg?$g(e,h):e):new p(0)}function Ug(t,e,r){var n,o=Dg(t),i=_g(t.d),a=i.length;return e?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+Rg(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Rg(-o-1)+i,r&&(n=r-a)>0&&(i+=Rg(n))):o>=a?(i+=Rg(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+Rg(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=Rg(n))),t.s<0?"-"+i:i}function Fg(t,e){if(t.length>e)return t.length=e,!0}function qg(t){if(!t||"object"!=typeof t)throw Error(bg+"Object expected");var e,r,n,o=["precision",1,vg,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<o.length;e+=3)if(void 0!==(n=t[r=o[e]])){if(!(wg(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(gg+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(gg+r+": "+n);this[r]=new this(n)}return this}var Wg=function t(e){var r,n,o;function i(t){var e=this;if(!(e instanceof i))return new i(t);if(e.constructor=i,t instanceof i)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(gg+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):Lg(e,t.toString())}if("string"!=typeof t)throw Error(gg+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!Sg.test(t))throw Error(gg+t);Lg(e,t)}if(i.prototype=Eg,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t,i.config=i.set=qg,void 0===e&&(e={}),e)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<o.length;)e.hasOwnProperty(n=o[r++])||(e[n]=this[n]);return i.config(e),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});yg=new Wg(1);var Vg=Wg;function Xg(t){return function(t){if(Array.isArray(t))return Hg(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Hg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hg(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Gg=function(t){return t},Yg={"@@functional/placeholder":!0},Kg=function(t){return t===Yg},Zg=function(t){return function e(){return 0===arguments.length||1===arguments.length&&Kg(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},Jg=function t(e,r){return 1===e?r:Zg((function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o.filter((function(t){return t!==Yg})).length;return a>=e?r.apply(void 0,o):t(e-a,Zg((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=o.map((function(t){return Kg(t)?e.shift():t}));return r.apply(void 0,Xg(i).concat(e))})))}))},Qg=function(t){return Jg(t.length,t)},tx=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},ex=Qg((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),rx=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return Gg;var n=e.reverse(),o=n[0],i=n.slice(1);return function(){return i.reduce((function(t,e){return e(t)}),o.apply(void 0,arguments))}},nx=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},ox=function(t){var e=null,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e&&o.every((function(t,r){return t===e[r]}))?r:(e=o,r=t.apply(void 0,o))}};var ix=Qg((function(t,e,r){var n=+t;return n+r*(+e-n)})),ax=Qg((function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)})),cx=Qg((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))})),ux={rangeStep:function(t,e,r){for(var n=new Vg(t),o=0,i=[];n.lt(e)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i},getDigitCount:function(t){return 0===t?1:Math.floor(new Vg(t).abs().log(10).toNumber())+1},interpolateNumber:ix,uninterpolateNumber:ax,uninterpolateTruncation:cx};function lx(t){return function(t){if(Array.isArray(t))return px(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||fx(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sx(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(t,e)||fx(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fx(t,e){if(t){if("string"==typeof t)return px(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?px(t,e):void 0}}function px(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function hx(t){var e=sx(t,2),r=e[0],n=e[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function yx(t,e,r){if(t.lte(0))return new Vg(0);var n=ux.getDigitCount(t.toNumber()),o=new Vg(10).pow(n),i=t.div(o),a=1!==n?.05:.1,c=new Vg(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?c:new Vg(Math.ceil(c))}function dx(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new Vg(0),tickMin:new Vg(0),tickMax:new Vg(0)};var i,a=yx(new Vg(e).sub(t).div(r-1),n,o);i=t<=0&&e>=0?new Vg(0):(i=new Vg(t).add(e).div(2)).sub(new Vg(i).mod(a));var c=Math.ceil(i.sub(t).div(a).toNumber()),u=Math.ceil(new Vg(e).sub(i).div(a).toNumber()),l=c+u+1;return l>r?dx(t,e,r,n,o+1):(l<r&&(u=e>0?u+(r-l):u,c=e>0?c:c+(r-l)),{step:a,tickMin:i.sub(new Vg(c).mul(a)),tickMax:i.add(new Vg(u).mul(a))})}var vx=ox((function(t){var e=sx(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),c=sx(hx([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(lx(tx(0,o-1).map((function(){return 1/0})))):[].concat(lx(tx(0,o-1).map((function(){return-1/0}))),[l]);return r>n?nx(s):s}if(u===l)return function(t,e,r){var n=1,o=new Vg(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new Vg(10).pow(ux.getDigitCount(t)-1),o=new Vg(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new Vg(Math.floor(t)))}else 0===t?o=new Vg(Math.floor((e-1)/2)):r||(o=new Vg(Math.floor(t)));var a=Math.floor((e-1)/2);return rx(ex((function(t){return o.add(new Vg(t-a).mul(n)).toNumber()})),tx)(0,e)}(u,o,i);var f=dx(u,l,a,i),p=f.step,h=f.tickMin,y=f.tickMax,d=ux.rangeStep(h,y.add(new Vg(.1).mul(p)),p);return r>n?nx(d):d})),mx=ox((function(t,e){var r=sx(t,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=sx(hx([n,o]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[n,o];if(c===u)return[c];var l=Math.max(e,2),s=yx(new Vg(u).sub(c).div(l-1),i,0),f=[].concat(lx(ux.rangeStep(new Vg(c),new Vg(u).sub(new Vg(.99).mul(s)),s)),[u]);return n>o?nx(f):f})),bx=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function gx(){return gx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gx.apply(this,arguments)}function xx(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return wx(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wx(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ox(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Sx(e){var r=e.offset,n=e.layout,o=e.width,i=e.dataKey,a=e.data,c=e.dataPointFormatter,u=e.xAxis,l=e.yAxis,s=Ox(e,bx),f=Br(s),p=a.map((function(e){var a=c(e,i),s=a.x,p=a.y,h=a.value,y=a.errorVal;if(!y)return null;var d,v,m=[];if(Array.isArray(y)){var b=xx(y,2);d=b[0],v=b[1]}else d=v=y;if("vertical"===n){var g=u.scale,x=p+r,w=x+o,O=x-o,S=g(h-d),j=g(h+v);m.push({x1:j,y1:w,x2:j,y2:O}),m.push({x1:S,y1:x,x2:j,y2:x}),m.push({x1:S,y1:w,x2:S,y2:O})}else if("horizontal"===n){var A=l.scale,P=s+r,k=P-o,E=P+o,M=A(h-d),T=A(h+v);m.push({x1:k,y1:T,x2:E,y2:T}),m.push({x1:P,y1:M,x2:P,y2:T}),m.push({x1:k,y1:M,x2:E,y2:M})}return t.createElement(Gr,gx({className:"recharts-errorBar",key:"bar-".concat(m.map((function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)})))},f),m.map((function(e){return t.createElement("line",gx({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return t.createElement(Gr,{className:"recharts-errorBars"},p)}function jx(t){"@babel/helpers - typeof";return jx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jx(t)}function Ax(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Px(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ax(Object(r),!0).forEach((function(e){kx(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ax(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function kx(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==jx(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==jx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===jx(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Sx.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},Sx.displayName="ErrorBar";var Ex=function(t){var e,r=t.children,n=t.formattedGraphicalItems,o=t.legendWidth,i=t.legendContent,a=Dr(r,ol);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(n||[]).reduce((function(t,e){var r=e.item,n=e.props,o=n.sectors||n.data||[];return t.concat(o.map((function(t){return{type:a.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(n||[]).map((function(t){var e=t.item,r=e.props,n=r.dataKey,o=r.name,i=r.legendType;return{inactive:r.hide,dataKey:n,type:a.props.iconType||i||"square",color:Bx(e),value:o||n,payload:e.props}})),Px(Px(Px({},a.props),ol.getWithHeight(a,o)),{},{payload:e,item:a})):null};function Mx(t){"@babel/helpers - typeof";return Mx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mx(t)}function Tx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _x(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Tx(Object(r),!0).forEach((function(e){Cx(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tx(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Cx(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Mx(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Mx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Mx(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ix(t){return function(t){if(Array.isArray(t))return Dx(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Dx(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dx(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Nx(t,e,r){return We(t)||We(e)?r:sr(e)?qe(t,e,r):Q(e)?e(t):r}function Rx(t,e,r,n){var o=pg(t,(function(t){return Nx(t,e)}));if("number"===r){var i=o.filter((function(t){return lr(t)||parseFloat(t)}));return i.length?[ig(i),Qb(i)]:[1/0,-1/0]}return(n?o.filter((function(t){return!We(t)})):o).map((function(t){return sr(t)||t instanceof Date?t:""}))}var Bx=function(t){var e,r=t.type.displayName,n=t.props,o=n.stroke,i=n.fill;switch(r){case"Line":e=o;break;case"Area":case"Radar":e=o&&"none"!==o?o:i;break;default:e=i}return e},Lx=function(t,e,r,n,o){var i=Ir(e.props.children,Sx).filter((function(t){return function(t,e,r){return!!We(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===r?"xAxis"===e:"y"!==r||"yAxis"===e)}(n,o,t.props.direction)}));if(i&&i.length){var a=i.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var n=Nx(e,r,0),o=Array.isArray(n)?[ig(n),Qb(n)]:[n,n],i=a.reduce((function(t,r){var n=Nx(e,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]}),[1/0,-1/0])}return null},$x=function(t,e,r,n,o){var i=e.map((function(e){var i=e.props.dataKey;return"number"===r&&i&&Lx(t,e,i,n)||Rx(t,i,r,o)}));if("number"===r)return i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(t,e){for(var r=0,n=e.length;r<n;r++)a[e[r]]||(a[e[r]]=!0,t.push(e[r]));return t}),[])},zx=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},Ux=function(t,e,r,n){if(n)return t.map((function(t){return t.coordinate}));var o,i,a=t.map((function(t){return t.coordinate===e&&(o=!0),t.coordinate===r&&(i=!0),t.coordinate}));return o||a.push(e),i||a.push(r),a},Fx=function(t,e,r){if(!t)return null;var n=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,c="scaleBand"===t.realScaleType?n.bandwidth()/2:2,u=(e||r)&&"category"===i&&n.bandwidth?n.bandwidth()/c:0;return u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*cr(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=o?o.indexOf(t):t;return{coordinate:n(e)+u,value:t,offset:u}})).filter((function(t){return!ar(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:n(t)+u,value:t,index:e,offset:u}})):n.ticks&&!r?n.ticks(t.tickCount).map((function(t){return{coordinate:n(t)+u,value:t,offset:u}})):n.domain().map((function(t,e){return{coordinate:n(t)+u,value:o?o[t]:t,index:e,offset:u}}))},qx=new WeakMap,Wx=function(t,e){if("function"!=typeof e)return t;qx.has(t)||qx.set(t,new WeakMap);var r=qx.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},Vx=function(t,e,r){var n=t.scale,o=t.type,i=t.layout,a=t.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:Ry(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:av(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:Ly(),realScaleType:"point"}:"category"===o?{scale:Ry(),realScaleType:"band"}:{scale:av(),realScaleType:"linear"};if(Ye(n)){var c="scale".concat(Pn(n));return{scale:(Vb[c]||Ly)(),realScaleType:Vb[c]?c:"point"}}return Q(n)?{scale:n}:{scale:Ly(),realScaleType:"point"}},Xx=1e-4,Hx=function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),o=Math.min(n[0],n[1])-Xx,i=Math.max(n[0],n[1])+Xx,a=t(e[0]),c=t(e[r-1]);(a<o||a>i||c<o||c>i)&&t.domain([e[0],e[r-1]])}},Gx={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0,a=0;a<e;++a){var c=ar(t[a][r][1])?t[a][r][0]:t[a][r][1];c>=0?(t[a][r][0]=o,t[a][r][1]=o+c,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+c,i=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}Eo(t,e)}},none:Eo,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,o=t[e[0]],i=o.length;n<i;++n){for(var a=0,c=0;a<r;++a)c+=t[a][n][1]||0;o[n][1]+=o[n][0]=-c/2}Eo(t,e)}},wiggle:function(t,e){if((o=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var c=0,u=0,l=0;c<o;++c){for(var s=t[e[c]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,h=0;h<c;++h){var y=t[e[h]];p+=(y[a][1]||0)-(y[a-1][1]||0)}u+=f,l+=p*f}r[a-1][1]+=r[a-1][0]=i,u&&(i-=l/u)}r[a-1][1]+=r[a-1][0]=i,Eo(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0;i<e;++i){var a=ar(t[i][r][1])?t[i][r][0]:t[i][r][1];a>=0?(t[i][r][0]=o,t[i][r][1]=o+a,o=t[i][r][1]):(t[i][r][0]=0,t[i][r][1]=0)}}},Yx=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),o=Gx[r],i=function(){var t=kn([]),e=Mo,r=Eo,n=To;function o(o){var i,a,c=Array.from(t.apply(this,arguments),_o),u=c.length,l=-1;for(const t of o)for(i=0,++l;i<u;++i)(c[i][l]=[0,+n(t,c[i].key,l,o)]).data=t;for(i=0,a=zn(e(c));i<u;++i)c[a[i]].index=i;return r(c,a),c}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:kn(Array.from(e)),o):t},o.value=function(t){return arguments.length?(n="function"==typeof t?t:kn(+t),o):n},o.order=function(t){return arguments.length?(e=null==t?Mo:"function"==typeof t?t:kn(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?Eo:t,o):r},o}().keys(n).value((function(t,e){return+Nx(t,e,0)})).order(Mo).offset(o);return i(t)},Kx=function(t,e){var r=e.realScaleType,n=e.type,o=e.tickCount,i=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var u=t.domain();if(!u.length)return null;var l=vx(u,o,a);return t.domain([ig(l),Qb(l)]),{niceTicks:l}}if(o&&"number"===n){var s=t.domain();return{niceTicks:mx(s,o,a)}}return null},Zx=function(t){var e=t.axis,r=t.ticks,n=t.offset,o=t.bandSize,i=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var c=Nx(i,e.dataKey,e.domain[a]);return We(c)?null:e.scale(c)-o/2+n},Jx=function(t,e,r){return Object.keys(t).reduce((function(n,o){var i=t[o].stackedData.reduce((function(t,n){var o=n.slice(e,r+1).reduce((function(t,e){return[ig(e.concat([t[0]]).filter(lr)),Qb(e.concat([t[1]]).filter(lr))]}),[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},Qx=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,tw=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ew=function(t,e,r){if(Q(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(lr(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(Qx.test(t[0])){var o=+Qx.exec(t[0])[1];n[0]=e[0]-o}else Q(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(lr(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(tw.test(t[1])){var i=+tw.exec(t[1])[1];n[1]=e[1]+i}else Q(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},rw=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var o=ns(e,(function(t){return t.coordinate})),i=1/0,a=1,c=o.length;a<c;a++){var u=o[a],l=o[a-1];i=Math.min((u.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},nw=function(t,e,r){return t&&t.length?dg(t,qe(r,"type.defaultProps.domain"))?e:t:e},ow=function(t,e){var r=t.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,c=r.tooltipType,u=r.chartType;return _x(_x({},Br(t)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:Bx(t),value:Nx(e,n),type:c,payload:e,chartType:u})};function iw(t){"@babel/helpers - typeof";return iw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iw(t)}function aw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function cw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?aw(Object(r),!0).forEach((function(e){uw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function uw(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==iw(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==iw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===iw(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lw(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return sw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sw(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var fw=Math.PI/180,pw=function(t){return 180*t/Math.PI},hw=function(t,e,r,n){return{x:t+Math.cos(-fw*n)*r,y:e+Math.sin(-fw*n)*r}},yw=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(e-(r.top||0)-(r.bottom||0)))/2},dw=function(t,e){var r=t.x,n=t.y,o=e.cx,i=e.cy,a=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(n-i,2))}({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var c=(r-o)/a,u=Math.acos(c);return n>i&&(u=2*Math.PI-u),{radius:a,angle:pw(u),angleInRadian:u}},vw=function(t,e){var r=e.startAngle,n=e.endAngle,o=Math.floor(r/360),i=Math.floor(n/360);return t+360*Math.min(o,i)},mw=function(t,e){var r=t.x,n=t.y,o=dw({x:r,y:n},e),i=o.radius,a=o.angle,c=e.innerRadius,u=e.outerRadius;if(i<c||i>u)return!1;if(0===i)return!0;var l,s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:e-360*i,endAngle:r-360*i}}(e),f=s.startAngle,p=s.endAngle,h=a;if(f<=p){for(;h>p;)h-=360;for(;h<f;)h+=360;l=h>=f&&h<=p}else{for(;h>f;)h-=360;for(;h<p;)h+=360;l=h>=p&&h<=f}return l?cw(cw({},e),{},{radius:i,angle:vw(h,e)}):null};function bw(t){"@babel/helpers - typeof";return bw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bw(t)}var gw=["offset"];function xw(t){return function(t){if(Array.isArray(t))return ww(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return ww(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ww(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ww(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ow(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Sw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function jw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Sw(Object(r),!0).forEach((function(e){Aw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Aw(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==bw(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==bw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===bw(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pw(){return Pw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Pw.apply(this,arguments)}var kw=function(t){var e=t.value,r=t.formatter,n=We(t.children)?e:t.children;return Q(r)?r(n):n},Ew=function(e,r,n){var o,i,a=e.position,c=e.viewBox,u=e.offset,l=e.className,s=c,f=s.cx,p=s.cy,h=s.innerRadius,y=s.outerRadius,d=s.startAngle,v=s.endAngle,m=s.clockWise,b=(h+y)/2,g=function(t,e){return cr(e-t)*Math.min(Math.abs(e-t),360)}(d,v),w=g>=0?1:-1;"insideStart"===a?(o=d+w*u,i=m):"insideEnd"===a?(o=v-w*u,i=!m):"end"===a&&(o=v+w*u,i=m),i=g<=0?i:!i;var O=hw(f,p,b,o),S=hw(f,p,b,o+359*(i?1:-1)),j="M".concat(O.x,",").concat(O.y,"\n A").concat(b,",").concat(b,",0,1,").concat(i?0:1,",\n ").concat(S.x,",").concat(S.y),A=We(e.id)?pr("recharts-radial-line-"):e.id;return t.createElement("text",Pw({},n,{dominantBaseline:"central",className:x("recharts-radial-bar-label",l)}),t.createElement("defs",null,t.createElement("path",{id:A,d:j})),t.createElement("textPath",{xlinkHref:"#".concat(A)},r))},Mw=function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e,i=o.cx,a=o.cy,c=o.innerRadius,u=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===n){var s=hw(i,a,u+r,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=hw(i,a,(c+u)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},Tw=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e,a=i.x,c=i.y,u=i.width,l=i.height,s=l>=0?1:-1,f=s*n,p=s>0?"end":"start",h=s>0?"start":"end",y=u>=0?1:-1,d=y*n,v=y>0?"end":"start",m=y>0?"start":"end";if("top"===o)return jw(jw({},{x:a+u/2,y:c-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(c-r.y,0),width:u}:{});if("bottom"===o)return jw(jw({},{x:a+u/2,y:c+l+f,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(r.y+r.height-(c+l),0),width:u}:{});if("left"===o){var b={x:a-d,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return jw(jw({},b),r?{width:Math.max(b.x-r.x,0),height:l}:{})}if("right"===o){var g={x:a+u+d,y:c+l/2,textAnchor:m,verticalAnchor:"middle"};return jw(jw({},g),r?{width:Math.max(r.x+r.width-g.x,0),height:l}:{})}var x=r?{width:u,height:l}:{};return"insideLeft"===o?jw({x:a+d,y:c+l/2,textAnchor:m,verticalAnchor:"middle"},x):"insideRight"===o?jw({x:a+u-d,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},x):"insideTop"===o?jw({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:h},x):"insideBottom"===o?jw({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:p},x):"insideTopLeft"===o?jw({x:a+d,y:c+f,textAnchor:m,verticalAnchor:h},x):"insideTopRight"===o?jw({x:a+u-d,y:c+f,textAnchor:v,verticalAnchor:h},x):"insideBottomLeft"===o?jw({x:a+d,y:c+l-f,textAnchor:m,verticalAnchor:p},x):"insideBottomRight"===o?jw({x:a+u-d,y:c+l-f,textAnchor:v,verticalAnchor:p},x):G(o)&&(lr(o.x)||ur(o.x))&&(lr(o.y)||ur(o.y))?jw({x:a+hr(o.x,u),y:c+hr(o.y,l),textAnchor:"end",verticalAnchor:"end"},x):jw({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},x)},_w=function(t){return"cx"in t&&lr(t.cx)};function Cw(r){var n,i=r.offset,a=jw({offset:void 0===i?5:i},Ow(r,gw)),c=a.viewBox,u=a.position,l=a.value,s=a.children,f=a.content,h=a.className,y=void 0===h?"":h,d=a.textBreakAll;if(!c||We(l)&&We(s)&&!e(f)&&!Q(f))return null;if(e(f))return o(f,a);if(Q(f)){if(e(n=p(f,a)))return n}else n=kw(a);var v=_w(c),m=Br(a,!0);if(v&&("insideStart"===u||"insideEnd"===u||"end"===u))return Ew(a,n,m);var b=v?Mw(a):Tw(a);return t.createElement(ly,Pw({className:x("recharts-label",y)},m,b,{breakAll:d}),n)}Cw.displayName="Label";var Iw=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,h=t.left,y=t.width,d=t.height,v=t.clockWise,m=t.labelViewBox;if(m)return m;if(lr(y)&&lr(d)){if(lr(s)&&lr(f))return{x:s,y:f,width:y,height:d};if(lr(p)&&lr(h))return{x:p,y:h,width:y,height:d}}return lr(s)&&lr(f)?{x:s,y:f,width:0,height:0}:lr(e)&&lr(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};Cw.parseViewBox=Iw,Cw.renderCallByParent=function(r,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!r||!r.children&&i&&!r.label)return null;var a=r.children,c=Iw(r),u=Ir(a,Cw).map((function(t,e){return o(t,{viewBox:n||c,key:"label-".concat(e)})}));if(!i)return u;var l=function(r,n){return r?!0===r?t.createElement(Cw,{key:"label-implicit",viewBox:n}):sr(r)?t.createElement(Cw,{key:"label-implicit",viewBox:n,value:r}):e(r)?r.type===Cw?o(r,{key:"label-implicit",viewBox:n}):t.createElement(Cw,{key:"label-implicit",content:r,viewBox:n}):Q(r)?t.createElement(Cw,{key:"label-implicit",content:r,viewBox:n}):G(r)?t.createElement(Cw,Pw({viewBox:n},r,{key:"label-implicit"})):null:null}(r.label,n||c);return[l].concat(xw(u))};var Dw=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},Nw=d(Dw);function Rw(t){"@babel/helpers - typeof";return Rw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rw(t)}var Bw=["valueAccessor"],Lw=["data","dataKey","clockWise","id","textBreakAll"];function $w(t){return function(t){if(Array.isArray(t))return zw(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return zw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zw(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Uw(){return Uw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Uw.apply(this,arguments)}function Fw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function qw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fw(Object(r),!0).forEach((function(e){Ww(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ww(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Rw(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Rw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Rw(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vw(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Xw=function(t){return Array.isArray(t.value)?Nw(t.value):t.value};function Hw(e){var r=e.valueAccessor,n=void 0===r?Xw:r,o=Vw(e,Bw),i=o.data,a=o.dataKey,c=o.clockWise,u=o.id,l=o.textBreakAll,s=Vw(o,Lw);return i&&i.length?t.createElement(Gr,{className:"recharts-label-list"},i.map((function(e,r){var o=We(a)?n(e,r):Nx(e&&e.payload,a),i=We(u)?{}:{id:"".concat(u,"-").concat(r)};return t.createElement(Cw,Uw({},Br(e,!0),s,i,{parentViewBox:e.parentViewBox,value:o,textBreakAll:l,viewBox:Cw.parseViewBox(We(c)?e:qw(qw({},e),{},{clockWise:c})),key:"label-".concat(r),index:r}))}))):null}function Gw(t){"@babel/helpers - typeof";return Gw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gw(t)}function Yw(){return Yw=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Yw.apply(this,arguments)}function Kw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Kw(Object(r),!0).forEach((function(e){Jw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jw(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Gw(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Gw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Gw(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Hw.displayName="LabelList",Hw.renderCallByParent=function(e,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var i=Ir(e.children,Hw).map((function(t,e){return o(t,{data:r,key:"labelList-".concat(e)})}));return n?[function(e,r){return e?!0===e?t.createElement(Hw,{key:"labelList-implicit",data:r}):t.isValidElement(e)||Q(e)?t.createElement(Hw,{key:"labelList-implicit",data:r,content:e}):G(e)?t.createElement(Hw,Uw({data:r},e,{key:"labelList-implicit"})):null:null}(e.label,r)].concat($w(i)):i};var Qw=function(t){var e=t.cx,r=t.cy,n=t.radius,o=t.angle,i=t.sign,a=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(a?1:-1)+n,s=Math.asin(c/l)/fw,f=u?o:o+i*s,p=u?o-i*s:o;return{center:hw(e,r,l,f),circleTangency:hw(e,r,n,f),lineTangency:hw(e,r,l*Math.cos(s*fw),p),theta:s}},tO=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return cr(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),c=i+a,u=hw(e,r,o,i),l=hw(e,r,o,c),s="M ".concat(u.x,",").concat(u.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>c),",\n ").concat(l.x,",").concat(l.y,"\n ");if(n>0){var f=hw(e,r,n,i),p=hw(e,r,n,c);s+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},eO={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},rO=function(e){var r=Zw(Zw({},eO),e),n=r.cx,o=r.cy,i=r.innerRadius,a=r.outerRadius,c=r.cornerRadius,u=r.forceCornerRadius,l=r.cornerIsExternal,s=r.startAngle,f=r.endAngle,p=r.className;if(a<i||s===f)return null;var h,y=x("recharts-sector",p),d=a-i,v=hr(c,d,0,!0);return h=v>0&&Math.abs(s-f)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,s=cr(l-u),f=Qw({cx:e,cy:r,radius:o,angle:u,sign:s,cornerRadius:i,cornerIsExternal:c}),p=f.circleTangency,h=f.lineTangency,y=f.theta,d=Qw({cx:e,cy:r,radius:o,angle:l,sign:-s,cornerRadius:i,cornerIsExternal:c}),v=d.circleTangency,m=d.lineTangency,b=d.theta,g=c?Math.abs(u-l):Math.abs(u-l)-y-b;if(g<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):tO({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:u,endAngle:l});var x="M ".concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(g>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(n>0){var w=Qw({cx:e,cy:r,radius:n,angle:u,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),O=w.circleTangency,S=w.lineTangency,j=w.theta,A=Qw({cx:e,cy:r,radius:n,angle:l,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),P=A.circleTangency,k=A.lineTangency,E=A.theta,M=c?Math.abs(u-l):Math.abs(u-l)-j-E;if(M<0&&0===i)return"".concat(x,"L").concat(e,",").concat(r,"Z");x+="L".concat(k.x,",").concat(k.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(P.x,",").concat(P.y,"\n A").concat(n,",").concat(n,",0,").concat(+(M>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else x+="L".concat(e,",").concat(r,"Z");return x}({cx:n,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(v,d/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:f}):tO({cx:n,cy:o,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f}),t.createElement("path",Yw({},Br(r,!0),{className:y,d:h,role:"img"}))};function nO(t){"@babel/helpers - typeof";return nO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nO(t)}function oO(){return oO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},oO.apply(this,arguments)}function iO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function aO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?iO(Object(r),!0).forEach((function(e){cO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cO(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==nO(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==nO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===nO(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var uO={curveBasisClosed:function(t){return new yo(t)},curveBasisOpen:function(t){return new vo(t)},curveBasis:function(t){return new ho(t)},curveBumpX:function(t){return new Hn(t,!0)},curveBumpY:function(t){return new Hn(t,!1)},curveLinearClosed:function(t){return new mo(t)},curveLinear:Fn,curveMonotoneX:function(t){return new Oo(t)},curveMonotoneY:function(t){return new So(t)},curveNatural:function(t){return new Ao(t)},curveStep:function(t){return new ko(t,.5)},curveStepAfter:function(t){return new ko(t,1)},curveStepBefore:function(t){return new ko(t,0)}},lO=function(t){return t.x===+t.x&&t.y===+t.y},sO=function(t){return t.x},fO=function(t){return t.y},pO=function(t){var e,r=t.type,n=void 0===r?"linear":r,o=t.points,i=void 0===o?[]:o,a=t.baseLine,c=t.layout,u=t.connectNulls,l=void 0!==u&&u,s=function(t,e){if(Q(t))return t;var r="curve".concat(Pn(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?uO[r]||Fn:uO["".concat(r).concat("vertical"===e?"Y":"X")]}(n,c),f=l?i.filter((function(t){return lO(t)})):i;if(Array.isArray(a)){var p=l?a.filter((function(t){return lO(t)})):a,h=f.map((function(t,e){return aO(aO({},t),{},{base:p[e]})}));return(e="vertical"===c?Xn().y(fO).x1(sO).x0((function(t){return t.base.x})):Xn().x(sO).y1(fO).y0((function(t){return t.base.y}))).defined(lO).curve(s),e(h)}return(e="vertical"===c&&lr(a)?Xn().y(fO).x1(sO).x0(a):lr(a)?Xn().x(sO).y1(fO).y0(a):Vn().x(sO).y(fO)).defined(lO).curve(s),e(f)},hO=function(e){var r=e.className,n=e.points,o=e.path,i=e.pathRef;if(!(n&&n.length||o))return null;var a=n&&n.length?pO(e):o;return t.createElement("path",oO({},Br(e),Sr(e),{className:x("recharts-curve",r),d:a,ref:i}))};function yO(t){"@babel/helpers - typeof";return yO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yO(t)}function dO(){return dO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},dO.apply(this,arguments)}function vO(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return mO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mO(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function bO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function gO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bO(Object(r),!0).forEach((function(e){xO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xO(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==yO(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==yO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===yO(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var wO=function(t,e,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+u*s[0],",").concat(e)),i+="L ".concat(t+r-u*s[1],",").concat(e),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+c*s[1])),i+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-u*s[2],",").concat(e+n)),i+="L ".concat(t+u*s[3],",").concat(e+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-c*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+u*p,",").concat(e,"\n L ").concat(t+r-u*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+c*p,"\n L ").concat(t+r,",").concat(e+n-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-u*p,",").concat(e+n,"\n L ").concat(t+u*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-c*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},OO=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,o=e.x,i=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(o,o+a),l=Math.max(o,o+a),s=Math.min(i,i+c),f=Math.max(i,i+c);return r>=u&&r<=l&&n>=s&&n<=f}return!1},SO={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},jO=function(e){var r=gO(gO({},SO),e),n=a(),o=vO(u(-1),2),i=o[0],c=o[1];s((function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&c(t)}catch(t){}}),[]);var l=r.x,f=r.y,p=r.width,h=r.height,y=r.radius,d=r.className,v=r.animationEasing,m=r.animationDuration,b=r.animationBegin,g=r.isAnimationActive,w=r.isUpdateAnimationActive;if(l!==+l||f!==+f||p!==+p||h!==+h||0===p||0===h)return null;var O=x("recharts-rectangle",d);return w?t.createElement(xp,{canBegin:i>0,from:{width:p,height:h,x:l,y:f},to:{width:p,height:h,x:l,y:f},duration:m,animationEasing:v,isActive:w},(function(e){var o=e.width,a=e.height,c=e.x,u=e.y;return t.createElement(xp,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:m,isActive:g,easing:v},t.createElement("path",dO({},Br(r,!0),{className:O,d:wO(c,u,o,a,y),ref:n})))})):t.createElement("path",dO({},Br(r,!0),{className:O,d:wO(l,f,p,h,y)}))},AO=["points","className","baseLinePoints","connectNulls"];function PO(){return PO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},PO.apply(this,arguments)}function kO(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function EO(t){return function(t){if(Array.isArray(t))return MO(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return MO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return MO(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var TO=function(t){return t&&t.x===+t.x&&t.y===+t.y},_O=function(t,e){var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[[]];return t.forEach((function(t){TO(t)?e[e.length-1].push(t):e[e.length-1].length>0&&e.push([])})),TO(t[0])&&e[e.length-1].push(t[0]),e[e.length-1].length<=0&&(e=e.slice(0,-1)),e}(t);e&&(r=[r.reduce((function(t,e){return[].concat(EO(t),EO(e))}),[])]);var n=r.map((function(t){return t.reduce((function(t,e,r){return"".concat(t).concat(0===r?"M":"L").concat(e.x,",").concat(e.y)}),"")})).join("");return 1===r.length?"".concat(n,"Z"):n},CO=function(e){var r=e.points,n=e.className,o=e.baseLinePoints,i=e.connectNulls,a=kO(e,AO);if(!r||!r.length)return null;var c=x("recharts-polygon",n);if(o&&o.length){var u=a.stroke&&"none"!==a.stroke,l=function(t,e,r){var n=_O(t,r);return"".concat("Z"===n.slice(-1)?n.slice(0,-1):n,"L").concat(_O(e.reverse(),r).slice(1))}(r,o,i);return t.createElement("g",{className:c},t.createElement("path",PO({},Br(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",stroke:"none",d:l})),u?t.createElement("path",PO({},Br(a,!0),{fill:"none",d:_O(r,i)})):null,u?t.createElement("path",PO({},Br(a,!0),{fill:"none",d:_O(o,i)})):null)}var s=_O(r,i);return t.createElement("path",PO({},Br(a,!0),{fill:"Z"===s.slice(-1)?a.fill:"none",className:c,d:s}))};function IO(){return IO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},IO.apply(this,arguments)}var DO=function(e){var r=e.cx,n=e.cy,o=e.r,i=x("recharts-dot",e.className);return r===+r&&n===+n&&o===+o?t.createElement("circle",IO({},Br(e),Sr(e),{className:i,cx:r,cy:n,r:o})):null};function NO(t){"@babel/helpers - typeof";return NO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},NO(t)}var RO=["x","y","top","left","width","height","className"];function BO(){return BO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},BO.apply(this,arguments)}function LO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $O(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==NO(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==NO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===NO(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zO(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var UO=function(t,e,r,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(e,"h").concat(r)},FO=function(e){var r=e.x,n=void 0===r?0:r,o=e.y,i=void 0===o?0:o,a=e.top,c=void 0===a?0:a,u=e.left,l=void 0===u?0:u,s=e.width,f=void 0===s?0:s,p=e.height,h=void 0===p?0:p,y=e.className,d=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?LO(Object(r),!0).forEach((function(e){$O(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):LO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:n,y:i,top:c,left:l,width:f,height:h},zO(e,RO));return lr(n)&&lr(i)&&lr(f)&&lr(h)&&lr(c)&&lr(l)?t.createElement("path",BO({},Br(d,!0),{className:x("recharts-cross",y),d:UO(n,i,f,h,c,l)})):null},qO=Hb,WO=Gb,VO=xu;var XO=function(t,e){return t&&t.length?qO(t,VO(e),WO):void 0},HO=d(XO),GO=Hb,YO=xu,KO=tg;var ZO=function(t,e){return t&&t.length?GO(t,YO(e),KO):void 0},JO=d(ZO),QO=["cx","cy","angle","ticks","axisLine"],tS=["ticks","tick","angle","tickFormatter","stroke"];function eS(t){"@babel/helpers - typeof";return eS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eS(t)}function rS(){return rS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},rS.apply(this,arguments)}function nS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function oS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nS(Object(r),!0).forEach((function(e){sS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function iS(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function aS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,fS(n.key),n)}}function cS(t,e){return cS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cS(t,e)}function uS(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=lS(t);if(e){var o=lS(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===eS(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function lS(t){return lS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},lS(t)}function sS(t,e,r){return(e=fS(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fS(t){var e=function(t,e){if("object"!==eS(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==eS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===eS(e)?e:String(e)}var pS=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cS(t,e)}(c,n);var r,o,i,a=uS(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return r=c,o=[{key:"getTickValueCoord",value:function(t){var e=t.coordinate,r=this.props,n=r.angle,o=r.cx,i=r.cy;return hw(o,i,e,n)}},{key:"getTickTextAnchor",value:function(){var t;switch(this.props.orientation){case"left":t="end";break;case"right":t="start";break;default:t="middle"}return t}},{key:"getViewBox",value:function(){var t=this.props,e=t.cx,r=t.cy,n=t.angle,o=t.ticks,i=HO(o,(function(t){return t.coordinate||0}));return{cx:e,cy:r,startAngle:n,endAngle:n,innerRadius:JO(o,(function(t){return t.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,r=e.cx,n=e.cy,o=e.angle,i=e.ticks,a=e.axisLine,c=iS(e,QO),u=i.reduce((function(t,e){return[Math.min(t[0],e.coordinate),Math.max(t[1],e.coordinate)]}),[1/0,-1/0]),l=hw(r,n,u[0],o),s=hw(r,n,u[1],o),f=oS(oS(oS({},Br(c)),{},{fill:"none"},Br(a)),{},{x1:l.x,y1:l.y,x2:s.x,y2:s.y});return t.createElement("line",rS({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,r=this.props,n=r.ticks,o=r.tick,i=r.angle,a=r.tickFormatter,u=r.stroke,l=iS(r,tS),s=this.getTickTextAnchor(),f=Br(l),p=Br(o),h=n.map((function(r,n){var l=e.getTickValueCoord(r),h=oS(oS(oS(oS({textAnchor:s,transform:"rotate(".concat(90-i,", ").concat(l.x,", ").concat(l.y,")")},f),{},{stroke:"none",fill:u},p),{},{index:n},l),{},{payload:r});return t.createElement(Gr,rS({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r.coordinate)},jr(e.props,r,n)),c.renderTickItem(o,h,a?a(r.value,n):r.value))}));return t.createElement(Gr,{className:"recharts-polar-radius-axis-ticks"},h)}},{key:"render",value:function(){var e=this.props,r=e.ticks,n=e.axisLine,o=e.tick;return r&&r.length?t.createElement(Gr,{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),o&&this.renderTicks(),Cw.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(e,r,n){return t.isValidElement(e)?t.cloneElement(e,r):Q(e)?e(r):t.createElement(ly,rS({},r,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],o&&aS(r.prototype,o),i&&aS(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}();function hS(t){"@babel/helpers - typeof";return hS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hS(t)}function yS(){return yS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yS.apply(this,arguments)}function dS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?dS(Object(r),!0).forEach((function(e){wS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,OS(n.key),n)}}function bS(t,e){return bS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},bS(t,e)}function gS(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=xS(t);if(e){var o=xS(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===hS(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function xS(t){return xS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xS(t)}function wS(t,e,r){return(e=OS(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function OS(t){var e=function(t,e){if("object"!==hS(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==hS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===hS(e)?e:String(e)}sS(pS,"displayName","PolarRadiusAxis"),sS(pS,"axisType","radiusAxis"),sS(pS,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var SS=Math.PI/180,jS=1e-5,AS=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bS(t,e)}(c,n);var r,o,i,a=gS(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return r=c,o=[{key:"getTickLineCoord",value:function(t){var e=this.props,r=e.cx,n=e.cy,o=e.radius,i=e.orientation,a=e.tickSize||8,c=hw(r,n,o,t.coordinate),u=hw(r,n,o+("inner"===i?-1:1)*a,t.coordinate);return{x1:c.x,y1:c.y,x2:u.x,y2:u.y}}},{key:"getTickTextAnchor",value:function(t){var e=this.props.orientation,r=Math.cos(-t.coordinate*SS);return r>jS?"outer"===e?"start":"end":r<-jS?"outer"===e?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,r=e.cx,n=e.cy,o=e.radius,i=e.axisLine,a=e.axisLineType,c=vS(vS({},Br(this.props)),{},{fill:"none"},Br(i));if("circle"===a)return t.createElement(DO,yS({className:"recharts-polar-angle-axis-line"},c,{cx:r,cy:n,r:o}));var u=this.props.ticks.map((function(t){return hw(r,n,o,t.coordinate)}));return t.createElement(CO,yS({className:"recharts-polar-angle-axis-line"},c,{points:u}))}},{key:"renderTicks",value:function(){var e=this,r=this.props,n=r.ticks,o=r.tick,i=r.tickLine,a=r.tickFormatter,u=r.stroke,l=Br(this.props),s=Br(o),f=vS(vS({},l),{},{fill:"none"},Br(i)),p=n.map((function(r,n){var p=e.getTickLineCoord(r),h=vS(vS(vS({textAnchor:e.getTickTextAnchor(r)},l),{},{stroke:"none",fill:u},s),{},{index:n,payload:r,x:p.x2,y:p.y2});return t.createElement(Gr,yS({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r.coordinate)},jr(e.props,r,n)),i&&t.createElement("line",yS({className:"recharts-polar-angle-axis-tick-line"},f,p)),o&&c.renderTickItem(o,h,a?a(r.value,n):r.value))}));return t.createElement(Gr,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,r=e.ticks,n=e.radius,o=e.axisLine;return n<=0||!r||!r.length?null:t.createElement(Gr,{className:"recharts-polar-angle-axis"},o&&this.renderAxisLine(),this.renderTicks())}}],i=[{key:"renderTickItem",value:function(e,r,n){return t.isValidElement(e)?t.cloneElement(e,r):Q(e)?e(r):t.createElement(ly,yS({},r,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],o&&mS(r.prototype,o),i&&mS(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}();wS(AS,"displayName","PolarAngleAxis"),wS(AS,"axisType","angleAxis"),wS(AS,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var PS=Pa(Object.getPrototypeOf,Object),kS=B,ES=PS,MS=L,TS=Function.prototype,_S=Object.prototype,CS=TS.toString,IS=_S.hasOwnProperty,DS=CS.call(Object);var NS=d((function(t){if(!MS(t)||"[object Object]"!=kS(t))return!1;var e=ES(t);if(null===e)return!0;var r=IS.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&CS.call(r)==DS})),RS=B,BS=L;var LS=d((function(t){return!0===t||!1===t||BS(t)&&"[object Boolean]"==RS(t)}));function $S(t){"@babel/helpers - typeof";return $S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$S(t)}function zS(){return zS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},zS.apply(this,arguments)}function US(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return FS(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return FS(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function FS(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function qS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function WS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qS(Object(r),!0).forEach((function(e){VS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function VS(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==$S(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==$S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===$S(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var XS,HS=function(t,e,r,n,o){var i,a=r-n;return i="M ".concat(t,",").concat(e),i+="L ".concat(t+r,",").concat(e),i+="L ".concat(t+r-a/2,",").concat(e+o),i+="L ".concat(t+r-a/2-n,",").concat(e+o),i+="L ".concat(t,",").concat(e," Z")},GS={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},YS=function(e){var r=WS(WS({},GS),e),n=a(),o=US(u(-1),2),i=o[0],c=o[1];s((function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&c(t)}catch(t){}}),[]);var l=r.x,f=r.y,p=r.upperWidth,h=r.lowerWidth,y=r.height,d=r.className,v=r.animationEasing,m=r.animationDuration,b=r.animationBegin,g=r.isUpdateAnimationActive;if(l!==+l||f!==+f||p!==+p||h!==+h||y!==+y||0===p&&0===h||0===y)return null;var w=x("recharts-trapezoid",d);return g?t.createElement(xp,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:y,x:l,y:f},to:{upperWidth:p,lowerWidth:h,height:y,x:l,y:f},duration:m,animationEasing:v,isActive:g},(function(e){var o=e.upperWidth,a=e.lowerWidth,c=e.height,u=e.x,l=e.y;return t.createElement(xp,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:m,easing:v},t.createElement("path",zS({},Br(r,!0),{className:w,d:HS(u,l,o,a,c),ref:n})))})):t.createElement("g",null,t.createElement("path",zS({},Br(r,!0),{className:w,d:HS(l,f,p,h,y)})))},KS=["option","shapeType","propTransformer","activeClassName","isActive"];function ZS(t){"@babel/helpers - typeof";return ZS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ZS(t)}function JS(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function QS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?QS(Object(r),!0).forEach((function(e){ej(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):QS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ej(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==ZS(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ZS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ZS(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rj(t,e){return tj(tj({},e),t)}function nj(e){var r=e.shapeType,n=e.elementProps;switch(r){case"rectangle":return t.createElement(jO,n);case"trapezoid":return t.createElement(YS,n);case"sector":return t.createElement(rO,n);case"symbols":if(function(t,e){return"symbols"===t}(r))return t.createElement(Uo,n);break;default:return null}}function oj(r){var n,i=r.option,a=r.shapeType,c=r.propTransformer,u=void 0===c?rj:c,l=r.activeClassName,s=void 0===l?"recharts-active-shape":l,f=r.isActive,p=JS(r,KS);if(e(i))n=o(i,tj(tj({},p),function(t){return e(t)?t.props:t}(i)));else if(Q(i))n=i(p);else if(NS(i)&&!LS(i)){var h=u(i,p);n=t.createElement(nj,{shapeType:a,elementProps:h})}else{var y=p;n=t.createElement(nj,{shapeType:a,elementProps:y})}return f?t.createElement(Gr,{className:s},n):n}function ij(t,e){return null!=e&&"trapezoids"in t.props}function aj(t,e){return null!=e&&"sectors"in t.props}function cj(t,e){return null!=e&&"points"in t.props}function uj(t,e){var r,n,o=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,i=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return o&&i}function lj(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function sj(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function fj(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,o=function(t,e){var r;return ij(t,e)?r="trapezoids":aj(t,e)?r="sectors":cj(t,e)&&(r="points"),r}(r,e),i=function(t,e){var r,n;return ij(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:aj(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:cj(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=dg(i,t),c=r.props[o].filter((function(t){var n=function(t,e){var r;return ij(t,e)?r=uj:aj(t,e)?r=lj:cj(t,e)&&(r=sj),r}(r,e);return n(t,e)})),u=r.props[o].indexOf(c[c.length-1]);return a&&n===u}));return n.indexOf(a[a.length-1])}function pj(t){"@babel/helpers - typeof";return pj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pj(t)}function hj(){return hj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},hj.apply(this,arguments)}function yj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function dj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yj(Object(r),!0).forEach((function(e){wj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vj(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Oj(n.key),n)}}function mj(t,e){return mj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mj(t,e)}function bj(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=xj(t);if(e){var o=xj(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===pj(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return gj(t)}(this,r)}}function gj(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xj(t){return xj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xj(t)}function wj(t,e,r){return(e=Oj(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Oj(t){var e=function(t,e){if("object"!==pj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==pj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===pj(e)?e:String(e)}var Sj=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mj(t,e)}(c,n);var r,o,i,a=bj(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),wj(gj(e=a.call(this,t)),"pieRef",null),wj(gj(e),"sectorRefs",[]),wj(gj(e),"id",pr("recharts-pie-")),wj(gj(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Q(t)&&t()})),wj(gj(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Q(t)&&t()})),e.state={isAnimationFinished:!t.isAnimationActive,prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,sectorToFocus:0},e}return r=c,i=[{key:"getDerivedStateFromProps",value:function(t,e){return e.prevIsAnimationActive!==t.isAnimationActive?{prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:[],isAnimationFinished:!0}:t.isAnimationActive&&t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:e.curSectors,isAnimationFinished:!0}:t.sectors!==e.curSectors?{curSectors:t.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(t,e){return t>e?"start":t<e?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):Q(e)?e(r):t.createElement(hO,hj({},r,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,r,n){if(t.isValidElement(e))return t.cloneElement(e,r);var o=n;return Q(e)&&(o=e(r),t.isValidElement(o))?o:t.createElement(ly,hj({},r,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),o)}}],(o=[{key:"isActiveIndex",value:function(t){var e=this.props.activeIndex;return Array.isArray(e)?-1!==e.indexOf(t):t===e}},{key:"hasActiveIndex",value:function(){var t=this.props.activeIndex;return Array.isArray(t)?0!==t.length:t||0===t}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.label,o=r.labelLine,i=r.dataKey,a=r.valueKey,u=Br(this.props),l=Br(n),s=Br(o),f=n&&n.offsetRadius||20,p=e.map((function(e,r){var p=(e.startAngle+e.endAngle)/2,h=hw(e.cx,e.cy,e.outerRadius+f,p),y=dj(dj(dj(dj({},u),e),{},{stroke:"none"},l),{},{index:r,textAnchor:c.getTextAnchor(h.x,e.cx)},h),d=dj(dj(dj(dj({},u),e),{},{fill:"none",stroke:e.fill},s),{},{index:r,points:[hw(e.cx,e.cy,e.outerRadius,p),h],key:"line"}),v=i;return We(i)&&We(a)?v="value":We(i)&&(v=a),t.createElement(Gr,{key:"label-".concat(e.startAngle,"-").concat(e.endAngle)},o&&c.renderLabelLineItem(o,d),c.renderLabelItem(n,y,Nx(e,v)))}));return t.createElement(Gr,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(e){var r=this,n=this.props,o=n.activeShape,i=n.blendStroke,a=n.inactiveShape;return e.map((function(n,c){if(0===(null==n?void 0:n.startAngle)&&0===(null==n?void 0:n.endAngle)&&1!==e.length)return null;var u=r.isActiveIndex(c),l=a&&r.hasActiveIndex()?a:null,s=u?o:l,f=dj(dj({},n),{},{stroke:i?n.fill:n.stroke,tabIndex:-1});return t.createElement(Gr,hj({ref:function(t){t&&!r.sectorRefs.includes(t)&&r.sectorRefs.push(t)},tabIndex:-1,className:"recharts-pie-sector"},jr(r.props,n,c),{key:"sector-".concat(null==n?void 0:n.startAngle,"-").concat(null==n?void 0:n.endAngle,"-").concat(n.midAngle)}),t.createElement(oj,hj({option:s,isActive:u,shapeType:"sector"},f)))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,r=this.props,n=r.sectors,o=r.isAnimationActive,i=r.animationBegin,a=r.animationDuration,c=r.animationEasing,u=r.animationId,l=this.state,s=l.prevSectors,f=l.prevIsAnimationActive;return t.createElement(xp,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(u,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(r){var o=r.t,i=[],a=(n&&n[0]).startAngle;return n.forEach((function(t,e){var r=s&&s[e],n=e>0?qe(t,"paddingAngle",0):0;if(r){var c=dr(r.endAngle-r.startAngle,t.endAngle-t.startAngle),u=dj(dj({},t),{},{startAngle:a+n,endAngle:a+c(o)+n});i.push(u),a=u.endAngle}else{var l=t.endAngle,f=t.startAngle,p=dr(0,l-f)(o),h=dj(dj({},t),{},{startAngle:a+n,endAngle:a+p+n});i.push(h),a=h.endAngle}})),t.createElement(Gr,null,e.renderSectorsStatically(i))}))}},{key:"attachKeyboardHandlers",value:function(t){var e=this;t.onkeydown=function(t){if(!t.altKey)switch(t.key){case"ArrowLeft":var r=++e.state.sectorToFocus%e.sectorRefs.length;e.sectorRefs[r].focus(),e.setState({sectorToFocus:r});break;case"ArrowRight":var n=--e.state.sectorToFocus<0?e.sectorRefs.length-1:e.state.sectorToFocus%e.sectorRefs.length;e.sectorRefs[n].focus(),e.setState({sectorToFocus:n});break;case"Escape":e.sectorRefs[e.state.sectorToFocus].blur(),e.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var t=this.props,e=t.sectors,r=t.isAnimationActive,n=this.state.prevSectors;return!(r&&e&&e.length)||n&&dg(n,e)?this.renderSectorsStatically(e):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,r=this.props,n=r.hide,o=r.sectors,i=r.className,a=r.label,c=r.cx,u=r.cy,l=r.innerRadius,s=r.outerRadius,f=r.isAnimationActive,p=this.state.isAnimationFinished;if(n||!o||!o.length||!lr(c)||!lr(u)||!lr(l)||!lr(s))return null;var h=x("recharts-pie",i);return t.createElement(Gr,{tabIndex:this.props.rootTabIndex,className:h,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(o),Cw.renderCallByParent(this.props,null,!1),(!f||p)&&Hw.renderCallByParent(this.props,o,!1))}}])&&vj(r.prototype,o),i&&vj(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}();XS=Sj,wj(Sj,"displayName","Pie"),wj(Sj,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!$p.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),wj(Sj,"parseDeltaAngle",(function(t,e){return cr(e-t)*Math.min(Math.abs(e-t),360)})),wj(Sj,"getRealPieData",(function(t){var e=t.props,r=e.data,n=e.children,o=Br(t.props),i=Ir(n,kh);return r&&r.length?r.map((function(t,e){return dj(dj(dj({payload:t},o),t),i&&i[e]&&i[e].props)})):i&&i.length?i.map((function(t){return dj(dj({},o),t.props)})):[]})),wj(Sj,"parseCoordinateOfPie",(function(t,e){var r=e.top,n=e.left,o=e.width,i=e.height,a=yw(o,i);return{cx:n+hr(t.props.cx,o,o/2),cy:r+hr(t.props.cy,i,i/2),innerRadius:hr(t.props.innerRadius,a,0),outerRadius:hr(t.props.outerRadius,a,.8*a),maxRadius:t.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),wj(Sj,"getComposedData",(function(t){var e=t.item,r=t.offset,n=XS.getRealPieData(e);if(!n||!n.length)return null;var o=e.props,i=o.cornerRadius,a=o.startAngle,c=o.endAngle,u=o.paddingAngle,l=o.dataKey,s=o.nameKey,f=o.valueKey,p=o.tooltipType,h=Math.abs(e.props.minAngle),y=XS.parseCoordinateOfPie(e,r),d=XS.parseDeltaAngle(a,c),v=Math.abs(d),m=l;We(l)&&We(f)?(Kr(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),m="value"):We(l)&&(Kr(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),m=f);var b,g,x=n.filter((function(t){return 0!==Nx(t,m,0)})).length,w=v-x*h-(v>=360?x:x-1)*u,O=n.reduce((function(t,e){var r=Nx(e,m,0);return t+(lr(r)?r:0)}),0);O>0&&(b=n.map((function(t,e){var r,n=Nx(t,m,0),o=Nx(t,s,e),c=(lr(n)?n:0)/O,l=(r=e?g.endAngle+cr(d)*u*(0!==n?1:0):a)+cr(d)*((0!==n?h:0)+c*w),f=(r+l)/2,v=(y.innerRadius+y.outerRadius)/2,b=[{name:o,value:n,payload:t,dataKey:m,type:p}],x=hw(y.cx,y.cy,v,f);return g=dj(dj(dj({percent:c,cornerRadius:i,name:o,tooltipPayload:b,midAngle:f,middleRadius:v,tooltipPosition:x},t),y),{},{value:Nx(t,m),startAngle:r,endAngle:l,payload:t,paddingAngle:cr(d)*u})})));return dj(dj({},y),{},{sectors:b,data:n})}));var jj=Math.ceil,Aj=Math.max;var Pj=sh,kj=1/0;var Ej=function(t){return t?(t=Pj(t))===kj||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},Mj=function(t,e,r,n){for(var o=-1,i=Aj(jj((e-t)/(r||1)),0),a=Array(i);i--;)a[n?i:++o]=t,t+=r;return a},Tj=Ql,_j=Ej;var Cj=d(function(t){return function(e,r,n){return n&&"number"!=typeof n&&Tj(e,r,n)&&(r=n=void 0),e=_j(e),void 0===r?(r=e,e=0):r=_j(r),n=void 0===n?e<r?1:-1:_j(n),Mj(e,r,n,t)}}());function Ij(t){"@babel/helpers - typeof";return Ij="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ij(t)}function Dj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Nj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Dj(Object(r),!0).forEach((function(e){Rj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Rj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ij(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ij(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ij(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Bj=["Webkit","Moz","O","ms"];function Lj(t){"@babel/helpers - typeof";return Lj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lj(t)}function $j(){return $j=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$j.apply(this,arguments)}function zj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Uj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zj(Object(r),!0).forEach((function(e){Hj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Fj(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Gj(n.key),n)}}function qj(t,e){return qj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},qj(t,e)}function Wj(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Xj(t);if(e){var o=Xj(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Lj(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Vj(t)}(this,r)}}function Vj(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xj(t){return Xj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xj(t)}function Hj(t,e,r){return(e=Gj(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gj(t){var e=function(t,e){if("object"!==Lj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Lj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Lj(e)?e:String(e)}var Yj=function(t){return t.changedTouches&&!!t.changedTouches.length},Kj=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qj(t,e)}(u,n);var o,i,a,c=Wj(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),Hj(Vj(e=c.call(this,t)),"handleDrag",(function(t){e.leaveTimer&&(clearTimeout(e.leaveTimer),e.leaveTimer=null),e.state.isTravellerMoving?e.handleTravellerMove(t):e.state.isSlideMoving&&e.handleSlideDrag(t)})),Hj(Vj(e),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])})),Hj(Vj(e),"handleDragEnd",(function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=e.props,r=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:r,startIndex:o})})),e.detachDragEndListener()})),Hj(Vj(e),"handleLeaveWrapper",(function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))})),Hj(Vj(e),"handleEnterSlideOrTraveller",(function(){e.setState({isTextActive:!0})})),Hj(Vj(e),"handleLeaveSlideOrTraveller",(function(){e.setState({isTextActive:!1})})),Hj(Vj(e),"handleSlideDragStart",(function(t){var r=Yj(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),e.attachDragEndListener()})),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(Vj(e),"startX"),endX:e.handleTravellerDragStart.bind(Vj(e),"endX")},e.state={},e}return o=u,i=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,r=t.endX,n=this.state.scaleValues,o=this.props,i=o.gap,a=o.data.length-1,c=Math.min(e,r),l=Math.max(e,r),s=u.getIndexInRange(n,c),f=u.getIndexInRange(n,l);return{startIndex:s-s%i,endIndex:f===a?a:f-f%i}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=Nx(r[t],o,t);return Q(n)?n(i,t):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,o=e.endX,i=this.props,a=i.x,c=i.width,u=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-u-o,a+c-u-n):p<0&&(p=Math.max(p,a-n,a-o));var h=this.getIndex({startX:n+p,endX:o+p});h.startIndex===l&&h.endIndex===s||!f||f(h),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=Yj(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e,r=this.state,n=r.brushMoveStartX,o=r.movingTravellerId,i=r.endX,a=r.startX,c=this.state[o],u=this.props,l=u.x,s=u.width,f=u.travellerWidth,p=u.onChange,h=u.gap,y=u.data,d={startX:this.state.startX,endX:this.state.endX},v=t.pageX-n;v>0?v=Math.min(v,l+s-f-c):v<0&&(v=Math.max(v,l-c)),d[o]=c+v;var m=this.getIndex(d),b=m.startIndex,g=m.endIndex;this.setState((Hj(e={},o,c+v),Hj(e,"brushMoveStartX",t.pageX),e),(function(){var t;p&&(t=y.length-1,("startX"===o&&(i>a?b%h==0:g%h==0)||i<a&&g===t||"endX"===o&&(i>a?g%h==0:b%h==0)||i>a&&g===t)&&p(m))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,c=this.state[e],u=o.indexOf(c);if(-1!==u){var l=u+t;if(!(-1===l||l>=o.length)){var s=o[l];"startX"===e&&s>=a||"endX"===e&&s<=i||this.setState(Hj({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var e=this.props,r=e.x,n=e.y,o=e.width,i=e.height,a=e.fill,c=e.stroke;return t.createElement("rect",{stroke:c,fill:a,x:r,y:n,width:o,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,n=e.x,o=e.y,i=e.width,a=e.height,c=e.data,u=e.children,l=e.padding,s=r.only(u);return s?t.cloneElement(s,{x:n,y:o,width:i,height:a,margin:l,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(e,r){var n=this,o=this.props,i=o.y,a=o.travellerWidth,c=o.height,l=o.traveller,s=o.ariaLabel,f=o.data,p=o.startIndex,h=o.endIndex,y=Math.max(e,this.props.x),d=Uj(Uj({},Br(this.props)),{},{x:y,y:i,width:a,height:c}),v=s||"Min value: ".concat(f[p].name,", Max value: ").concat(f[h].name);return t.createElement(Gr,{tabIndex:0,role:"slider","aria-label":v,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},u.renderTraveller(l,d))}},{key:"renderSlide",value:function(e,r){var n=this.props,o=n.y,i=n.height,a=n.stroke,c=n.travellerWidth,u=Math.min(e,r)+c,l=Math.max(Math.abs(r-e)-c,0);return t.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:u,y:o,width:l,height:i})}},{key:"renderText",value:function(){var e=this.props,r=e.startIndex,n=e.endIndex,o=e.y,i=e.height,a=e.travellerWidth,c=e.stroke,u=this.state,l=u.startX,s=u.endX,f={pointerEvents:"none",fill:c};return t.createElement(Gr,{className:"recharts-brush-texts"},t.createElement(ly,$j({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,s)-5,y:o+i/2},f),this.getTextOfTick(r)),t.createElement(ly,$j({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,s)+a+5,y:o+i/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,r=e.data,n=e.className,o=e.children,i=e.x,a=e.y,c=e.width,u=e.height,l=e.alwaysShowText,s=this.state,f=s.startX,p=s.endX,h=s.isTextActive,y=s.isSlideMoving,d=s.isTravellerMoving,v=s.isTravellerFocused;if(!r||!r.length||!lr(i)||!lr(a)||!lr(c)||!lr(u)||c<=0||u<=0)return null;var m=x("recharts-brush",n),b=1===t.Children.count(o),g=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),n=Bj.reduce((function(t,n){return Nj(Nj({},t),{},Rj({},n+r,e))}),{});return n[t]=e,n}("userSelect","none");return t.createElement(Gr,{className:m,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),b&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(h||y||d||v||l)&&this.renderText())}}],a=[{key:"renderDefaultTraveller",value:function(e){var r=e.x,n=e.y,o=e.width,i=e.height,a=e.stroke,c=Math.floor(n+i/2)-1;return t.createElement(t.Fragment,null,t.createElement("rect",{x:r,y:n,width:o,height:i,fill:a,stroke:"none"}),t.createElement("line",{x1:r+1,y1:c,x2:r+o-1,y2:c,fill:"none",stroke:"#fff"}),t.createElement("line",{x1:r+1,y1:c+2,x2:r+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):Q(e)?e(r):u.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return Uj({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,o=t.x,i=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,u=Ly().domain(Cj(0,c)).range([o,o+i-a]),l=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(n),scale:u,scaleValues:l}}({data:r,width:n,x:o,travellerWidth:i,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+n-i]);var l=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var o=Math.floor((r+n)/2);t[o]>e?n=o:r=o}return e>=t[n]?n:r}}],i&&Fj(o.prototype,i),a&&Fj(o,a),Object.defineProperty(o,"prototype",{writable:!1}),u}();Hj(Kj,"displayName","Brush"),Hj(Kj,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Zj=vl;var Jj=vi,Qj=xu,tA=function(t,e){var r;return Zj(t,(function(t,n,o){return!(r=e(t,n,o))})),!!r},eA=w,rA=Ql;var nA=d((function(t,e,r){var n=eA(t)?Jj:tA;return r&&rA(t,e,r)&&(e=void 0),n(t,Qj(e))})),oA=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},iA=$l;var aA=function(t,e,r){"__proto__"==e&&iA?iA(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r},cA=aA,uA=yl,lA=xu;var sA=function(t,e){var r={};return e=lA(e),uA(t,(function(t,n,o){cA(r,n,e(t,n,o))})),r},fA=d(sA);var pA=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0},hA=vl;var yA=pA,dA=function(t,e){var r=!0;return hA(t,(function(t,n,o){return r=!!e(t,n,o)})),r},vA=xu,mA=w,bA=Ql;var gA=d((function(t,e,r){var n=mA(t)?yA:dA;return r&&bA(t,e,r)&&(e=void 0),n(t,vA(e))}));function xA(t){"@babel/helpers - typeof";return xA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xA(t)}var wA=["x","y"];function OA(){return OA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},OA.apply(this,arguments)}function SA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function jA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?SA(Object(r),!0).forEach((function(e){AA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):SA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function AA(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==xA(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==xA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===xA(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function PA(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function kA(t,e){var r=t.x,n=t.y,o=PA(t,wA),i="".concat(r),a=parseInt(i,10),c="".concat(n),u=parseInt(c,10),l="".concat(e.height||o.height),s=parseInt(l,10),f="".concat(e.width||o.width),p=parseInt(f,10);return jA(jA(jA(jA(jA({},e),o),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function EA(e){return t.createElement(oj,OA({shapeType:"rectangle",propTransformer:kA,activeClassName:"recharts-active-bar"},e))}var MA=["value","background"];function TA(t){"@babel/helpers - typeof";return TA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},TA(t)}function _A(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function CA(){return CA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},CA.apply(this,arguments)}function IA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function DA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?IA(Object(r),!0).forEach((function(e){zA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):IA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function NA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,UA(n.key),n)}}function RA(t,e){return RA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},RA(t,e)}function BA(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=$A(t);if(e){var o=$A(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===TA(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return LA(t)}(this,r)}}function LA(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $A(t){return $A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$A(t)}function zA(t,e,r){return(e=UA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function UA(t){var e=function(t,e){if("object"!==TA(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==TA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===TA(e)?e:String(e)}var FA=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&RA(t,e)}(c,n);var r,o,i,a=BA(c);function c(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return zA(LA(t=a.call.apply(a,[this].concat(r))),"state",{isAnimationFinished:!1}),zA(LA(t),"id",pr("recharts-bar-")),zA(LA(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),zA(LA(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return r=c,i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],(o=[{key:"renderRectanglesStatically",value:function(e){var r=this,n=this.props,o=n.shape,i=n.dataKey,a=n.activeIndex,c=n.activeBar,u=Br(this.props);return e&&e.map((function(e,n){var l=n===a,s=l?c:o,f=DA(DA(DA({},u),e),{},{isActive:l,option:s,index:n,dataKey:i,onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd});return t.createElement(Gr,CA({className:"recharts-bar-rectangle"},jr(r.props,e,n),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value)}),t.createElement(EA,f))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,r=this.props,n=r.data,o=r.layout,i=r.isAnimationActive,a=r.animationBegin,c=r.animationDuration,u=r.animationEasing,l=r.animationId,s=this.state.prevData;return t.createElement(xp,{begin:a,duration:c,isActive:i,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var i=r.t,a=n.map((function(t,e){var r=s&&s[e];if(r){var n=dr(r.x,t.x),a=dr(r.y,t.y),c=dr(r.width,t.width),u=dr(r.height,t.height);return DA(DA({},t),{},{x:n(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===o){var l=dr(0,t.height)(i);return DA(DA({},t),{},{y:t.y+t.height-l,height:l})}var f=dr(0,t.width)(i);return DA(DA({},t),{},{width:f})}));return t.createElement(Gr,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&dg(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,r=this.props,n=r.data,o=r.dataKey,i=r.activeIndex,a=Br(this.props.background);return n.map((function(r,n){r.value;var c=r.background,u=_A(r,MA);if(!c)return null;var l=DA(DA(DA(DA(DA({},u),{},{fill:"#eee"},c),a),jr(e.props,r,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:o,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return t.createElement(EA,CA({option:e.props.background,isActive:n===i},l))}))}},{key:"renderErrorBar",value:function(e,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.data,i=n.xAxis,a=n.yAxis,c=n.layout,u=Ir(n.children,Sx);if(!u)return null;var l="vertical"===c?o[0].height/2:o[0].width/2,s=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:Nx(t,e)}},f={clipPath:e?"url(#clipPath-".concat(r,")"):null};return t.createElement(Gr,f,u.map((function(e){return t.cloneElement(e,{key:"error-bar-".concat(r,"-").concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:c,offset:l,dataPointFormatter:s})})))}},{key:"render",value:function(){var e=this.props,r=e.hide,n=e.data,o=e.className,i=e.xAxis,a=e.yAxis,c=e.left,u=e.top,l=e.width,s=e.height,f=e.isAnimationActive,p=e.background,h=e.id;if(r||!n||!n.length)return null;var y=this.state.isAnimationFinished,d=x("recharts-bar",o),v=i&&i.allowDataOverflow,m=a&&a.allowDataOverflow,b=v||m,g=We(h)?this.id:h;return t.createElement(Gr,{className:d},v||m?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(g)},t.createElement("rect",{x:v?c:c-l/2,y:m?u:u-s/2,width:v?l:2*l,height:m?s:2*s}))):null,t.createElement(Gr,{className:"recharts-bar-rectangles",clipPath:b?"url(#clipPath-".concat(g,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(b,g),(!f||y)&&Hw.renderCallByParent(this.props,n))}}])&&NA(r.prototype,o),i&&NA(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}();function qA(t){"@babel/helpers - typeof";return qA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qA(t)}function WA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,GA(n.key),n)}}function VA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function XA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?VA(Object(r),!0).forEach((function(e){HA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):VA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function HA(t,e,r){return(e=GA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function GA(t){var e=function(t,e){if("object"!==qA(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==qA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===qA(e)?e:String(e)}zA(FA,"displayName","Bar"),zA(FA,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!0,isAnimationActive:!$p.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),zA(FA,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,c=t.xAxisTicks,u=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,h=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!h)return null;var y=e.layout,d=r.props,v=d.dataKey,m=d.children,b=d.minPointSize,g="horizontal"===y?a:i,x=l?g.scale.domain():null,w=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]}({numericAxis:g}),O=Ir(m,kh),S=f.map((function(t,e){var n,f,p,d,m,g;if(l?n=function(t,e){if(!e||2!==e.length||!lr(e[0])||!lr(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),o=[t[0],t[1]];return(!lr(t[0])||t[0]<r)&&(o[0]=r),(!lr(t[1])||t[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o}(l[s+e],x):(n=Nx(t,v),Array.isArray(n)||(n=[w,n])),"horizontal"===y){var S,j=[a.scale(n[0]),a.scale(n[1])],A=j[0],P=j[1];f=Zx({axis:i,ticks:c,bandSize:o,offset:h.offset,entry:t,index:e}),p=null!==(S=null!=P?P:A)&&void 0!==S?S:void 0,d=h.size;var k=A-P;if(m=Number.isNaN(k)?0:k,g={x:f,y:a.y,width:d,height:a.height},Math.abs(b)>0&&Math.abs(m)<Math.abs(b)){var E=cr(m||b)*(Math.abs(b)-Math.abs(m));p-=E,m+=E}}else{var M=[i.scale(n[0]),i.scale(n[1])],T=M[0],_=M[1];if(f=T,p=Zx({axis:a,ticks:u,bandSize:o,offset:h.offset,entry:t,index:e}),d=_-T,m=h.size,g={x:i.x,y:p,width:i.width,height:m},Math.abs(b)>0&&Math.abs(d)<Math.abs(b))d+=cr(d||b)*(Math.abs(b)-Math.abs(d))}return DA(DA(DA({},t),{},{x:f,y:p,width:d,height:m,value:l?n:n[1],payload:t,background:g},O&&O[e]&&O[e].props),{},{tooltipPayload:[ow(r,t)],tooltipPosition:{x:f+d/2,y:p+m/2}})}));return DA({data:S,layout:y},p)}));var YA=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},KA=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}var e,r,n;return e=t,r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&WA(e.prototype,r),n&&WA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();HA(KA,"EPS",1e-4);var ZA=function(t){var e=Object.keys(t).reduce((function(e,r){return XA(XA({},e),{},HA({},r,KA.create(t[r])))}),{});return XA(XA({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return fA(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:o})}))},isInRange:function(t){return gA(t,(function(t,r){return e[r].isInRange(t)}))}})};var JA=function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=n*Math.PI/180,i=Math.atan(r/e),a=o>i&&o<Math.PI-i?r/Math.sin(o):e/Math.cos(o);return Math.abs(a)};function QA(t){"@babel/helpers - typeof";return QA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},QA(t)}function tP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function eP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tP(Object(r),!0).forEach((function(e){rP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function rP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==QA(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==QA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===QA(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return oP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oP(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function iP(){return iP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},iP.apply(this,arguments)}function aP(e){var r=e.x,n=e.y,o=e.segment,i=e.xAxis,a=e.yAxis,c=e.shape,u=e.className,l=e.alwaysShow,s=e.clipPathId;Kr(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=function(t,e,r,n,o){var i=o.viewBox,a=i.x,c=i.y,u=i.width,l=i.height,s=o.position;if(r){var f=o.y,p=o.yAxis.orientation,h=t.y.apply(f,{position:s});if(oA(o,"discard")&&!t.y.isInRange(h))return null;var y=[{x:a+u,y:h},{x:a,y:h}];return"left"===p?y.reverse():y}if(e){var d=o.x,v=o.xAxis.orientation,m=t.x.apply(d,{position:s});if(oA(o,"discard")&&!t.x.isInRange(m))return null;var b=[{x:m,y:c+l},{x:m,y:c}];return"top"===v?b.reverse():b}if(n){var g=o.segment.map((function(e){return t.apply(e,{position:s})}));return oA(o,"discard")&&nA(g,(function(e){return!t.isInRange(e)}))?null:g}return null}(ZA({x:i.scale,y:a.scale}),sr(r),sr(n),o&&2===o.length,e);if(!f)return null;var p=nP(f,2),h=p[0],y=h.x,d=h.y,v=p[1],m=v.x,b=v.y,g=eP(eP({clipPath:oA(e,"hidden")?"url(#".concat(s,")"):void 0},Br(e,!0)),{},{x1:y,y1:d,x2:m,y2:b});return t.createElement(Gr,{className:x("recharts-reference-line",u)},function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):Q(e)?e(r):t.createElement("line",iP({},r,{className:"recharts-reference-line-line"}))}(c,g),Cw.renderCallByParent(e,function(t){var e=t.x1,r=t.y1,n=t.x2,o=t.y2;return YA({x:e,y:r},{x:n,y:o})}({x1:y,y1:d,x2:m,y2:b})))}function cP(t){"@babel/helpers - typeof";return cP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cP(t)}function uP(){return uP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},uP.apply(this,arguments)}function lP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function sP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lP(Object(r),!0).forEach((function(e){fP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==cP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==cP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===cP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}aP.displayName="ReferenceLine",aP.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function pP(e){var r=e.x,n=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,c=sr(r),u=sr(n);if(Kr(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var l=function(t){var e=t.x,r=t.y,n=t.xAxis,o=t.yAxis,i=ZA({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return oA(t,"discard")&&!i.isInRange(a)?null:a}(e);if(!l)return null;var s=l.x,f=l.y,p=e.shape,h=e.className,y=sP(sP({clipPath:oA(e,"hidden")?"url(#".concat(a,")"):void 0},Br(e,!0)),{},{cx:s,cy:f});return t.createElement(Gr,{className:x("recharts-reference-dot",h)},pP.renderDot(p,y),Cw.renderCallByParent(e,{x:s-o,y:f-o,width:2*o,height:2*o}))}function hP(t){"@babel/helpers - typeof";return hP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hP(t)}function yP(){return yP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yP.apply(this,arguments)}function dP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?dP(Object(r),!0).forEach((function(e){mP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==hP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==hP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===hP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}pP.displayName="ReferenceDot",pP.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},pP.renderDot=function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):Q(e)?e(r):t.createElement(DO,uP({},r,{cx:r.cx,cy:r.cy,className:"recharts-reference-dot-dot"}))};function bP(e){var r=e.x1,n=e.x2,o=e.y1,i=e.y2,a=e.className,c=e.alwaysShow,u=e.clipPathId;Kr(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=sr(r),s=sr(n),f=sr(o),p=sr(i),h=e.shape;if(!(l||s||f||p||h))return null;var y=function(t,e,r,n,o){var i=o.x1,a=o.x2,c=o.y1,u=o.y2,l=o.xAxis,s=o.yAxis;if(!l||!s)return null;var f=ZA({x:l.scale,y:s.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!oA(o,"discard")||f.isInRange(p)&&f.isInRange(h)?YA(p,h):null}(l,s,f,p,e);if(!y&&!h)return null;var d=oA(e,"hidden")?"url(#".concat(u,")"):void 0;return t.createElement(Gr,{className:x("recharts-reference-area",a)},bP.renderRect(h,vP(vP({clipPath:d},Br(e,!0)),y)),Cw.renderCallByParent(e,y))}function gP(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],o=0;o<t.length;o+=e){if(void 0!==r&&!0!==r(t[o]))return;n.push(t[o])}return n}function xP(t,e,r,n,o){if(t*e<t*n||t*e>t*o)return!1;var i=r();return t*(e-t*i/2-n)>=0&&t*(e+t*i/2-o)<=0}function wP(t){"@babel/helpers - typeof";return wP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wP(t)}function OP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function SP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?OP(Object(r),!0).forEach((function(e){jP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):OP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==wP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==wP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===wP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function AP(t,e,r){var n=t.tick,o=t.ticks,i=t.viewBox,a=t.minTickGap,c=t.orientation,u=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!o||!o.length||!n)return[];if(lr(u)||$p.isSsr)return function(t,e){return gP(t,e+1)}(o,"number"==typeof u&&lr(u)?u:0);var p=[],h="top"===c||"bottom"===c?"width":"height",y=s&&"width"===h?Nh(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},d=function(t,n){var o=Q(l)?l(t.value,n):t.value;return"width"===h?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return JA(n,r)}(Nh(o,{fontSize:e,letterSpacing:r}),y,f):Nh(o,{fontSize:e,letterSpacing:r})[h]},v=o.length>=2?cr(o[1].coordinate-o[0].coordinate):1,m=function(t,e,r){var n="width"===r,o=t.x,i=t.y,a=t.width,c=t.height;return 1===e?{start:n?o:i,end:n?o+a:i+c}:{start:n?o+a:i+c,end:n?o:i}}(i,v,h);return"equidistantPreserveStart"===u?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,p=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:gP(n,s)};var i,a=l,p=function(){return void 0===i&&(i=r(e,a)),i},h=e.coordinate,y=0===l||xP(t,h,p,f,u);y||(l=0,f=c,s+=1),y&&(f=h+t*(p()/2+o),l+=s)};s<=a.length;)if(i=p())return i.v;return[]}(v,m,d,o,a):(p="preserveStart"===u||"preserveStartEnd"===u?function(t,e,r,n,o,i){var a=(n||[]).slice(),c=a.length,u=e.start,l=e.end;if(i){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-l);a[c-1]=s=SP(SP({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),xP(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+o),a[c-1]=SP(SP({},s),{},{isShow:!0}))}for(var h=i?c-1:c,y=function(e){var n,i=a[e],c=function(){return void 0===n&&(n=r(i,e)),n};if(0===e){var s=t*(i.coordinate-t*c()/2-u);a[e]=i=SP(SP({},i),{},{tickCoord:s<0?i.coordinate-s*t:i.coordinate})}else a[e]=i=SP(SP({},i),{},{tickCoord:i.coordinate});xP(t,i.tickCoord,c,u,l)&&(u=i.tickCoord+t*(c()/2+o),a[e]=SP(SP({},i),{},{isShow:!0}))},d=0;d<h;d++)y(d);return a}(v,m,d,o,a,"preserveStartEnd"===u):function(t,e,r,n,o){for(var i=(n||[]).slice(),a=i.length,c=e.start,u=e.end,l=function(e){var n,l=i[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);i[e]=l=SP(SP({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else i[e]=l=SP(SP({},l),{},{tickCoord:l.coordinate});xP(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+o),i[e]=SP(SP({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return i}(v,m,d,o,a),p.filter((function(t){return t.isShow})))}bP.displayName="ReferenceArea",bP.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},bP.renderRect=function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):Q(e)?e(r):t.createElement(jO,yP({},r,{className:"recharts-reference-area-rect"}))};var PP=["viewBox"],kP=["viewBox"],EP=["ticks"];function MP(t){"@babel/helpers - typeof";return MP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},MP(t)}function TP(){return TP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},TP.apply(this,arguments)}function _P(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function CP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_P(Object(r),!0).forEach((function(e){LP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_P(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function IP(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function DP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,$P(n.key),n)}}function NP(t,e){return NP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},NP(t,e)}function RP(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=BP(t);if(e){var o=BP(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===MP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function BP(t){return BP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},BP(t)}function LP(t,e,r){return(e=$P(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $P(t){var e=function(t,e){if("object"!==MP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==MP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===MP(e)?e:String(e)}var zP=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&NP(t,e)}(a,h);var r,n,o,i=RP(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).state={fontSize:"",letterSpacing:""},e}return r=a,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=IP(t,PP),o=this.props,i=o.viewBox,a=IP(o,kP);return!mr(r,i)||!mr(n,a)||!mr(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,o,i,a,c=this.props,u=c.x,l=c.y,s=c.width,f=c.height,p=c.orientation,h=c.tickSize,y=c.mirror,d=c.tickMargin,v=y?-1:1,m=t.tickSize||h,b=lr(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(o=l+ +!y*f)-v*m)-v*d,i=b;break;case"left":n=o=t.coordinate,i=(e=(r=u+ +!y*s)-v*m)-v*d,a=b;break;case"right":n=o=t.coordinate,i=(e=(r=u+ +y*s)+v*m)+v*d,a=b;break;default:e=r=t.coordinate,a=(n=(o=l+ +y*f)+v*m)+v*d,i=b}return{line:{x1:e,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var e=this.props,r=e.x,n=e.y,o=e.width,i=e.height,a=e.orientation,c=e.mirror,u=e.axisLine,l=CP(CP(CP({},Br(this.props)),Br(u)),{},{fill:"none"});if("top"===a||"bottom"===a){var s=+("top"===a&&!c||"bottom"===a&&c);l=CP(CP({},l),{},{x1:r,y1:n+s*i,x2:r+o,y2:n+s*i})}else{var f=+("left"===a&&!c||"right"===a&&c);l=CP(CP({},l),{},{x1:r+f*o,y1:n,x2:r+f*o,y2:n+i})}return t.createElement("line",TP({},l,{className:x("recharts-cartesian-axis-line",qe(u,"className"))}))}},{key:"renderTicks",value:function(e,r,n){var o=this,i=this.props,c=i.tickLine,u=i.stroke,l=i.tick,s=i.tickFormatter,f=i.unit,p=AP(CP(CP({},this.props),{},{ticks:e}),r,n),h=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),d=Br(this.props),v=Br(l),m=CP(CP({},d),{},{fill:"none"},Br(c)),b=p.map((function(e,r){var n=o.getTickLineCoord(e),i=n.line,b=n.tick,g=CP(CP(CP(CP({textAnchor:h,verticalAnchor:y},d),{},{stroke:"none",fill:u},v),b),{},{index:r,payload:e,visibleTicksCount:p.length,tickFormatter:s});return t.createElement(Gr,TP({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},jr(o.props,e,r)),c&&t.createElement("line",TP({},m,i,{className:x("recharts-cartesian-axis-tick-line",qe(c,"className"))})),l&&a.renderTickItem(l,g,"".concat(Q(s)?s(e.value,r):e.value).concat(f||"")))}));return t.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var e=this,r=this.props,n=r.axisLine,o=r.width,i=r.height,a=r.ticksGenerator,c=r.className;if(r.hide)return null;var u=this.props,l=u.ticks,s=IP(u,EP),f=l;return Q(a)&&(f=l&&l.length>0?a(this.props):a(s)),o<=0||i<=0||!f||!f.length?null:t.createElement(Gr,{className:x("recharts-cartesian-axis",c),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),Cw.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(e,r,n){return t.isValidElement(e)?t.cloneElement(e,r):Q(e)?e(r):t.createElement(ly,TP({},r,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&DP(r.prototype,n),o&&DP(r,o),Object.defineProperty(r,"prototype",{writable:!1}),a}();LP(zP,"displayName","CartesianAxis"),LP(zP,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var UP=["x1","y1","x2","y2","key"],FP=["offset"];function qP(t){"@babel/helpers - typeof";return qP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qP(t)}function WP(){return WP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},WP.apply(this,arguments)}function VP(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function XP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function HP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?XP(Object(r),!0).forEach((function(e){JP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):XP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function GP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,QP(n.key),n)}}function YP(t,e){return YP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},YP(t,e)}function KP(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=ZP(t);if(e){var o=ZP(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===qP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function ZP(t){return ZP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ZP(t)}function JP(t,e,r){return(e=QP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function QP(t){var e=function(t,e){if("object"!==qP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==qP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===qP(e)?e:String(e)}var tk=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&YP(t,e)}(c,n);var r,o,i,a=KP(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.apply(this,arguments)}return r=c,o=[{key:"renderHorizontal",value:function(e){var r=this,n=this.props,o=n.x,i=n.width,a=n.horizontal;if(!e||!e.length)return null;var u=e.map((function(t,e){var n=HP(HP({},r.props),{},{x1:o,y1:t,x2:o+i,y2:t,key:"line-".concat(e),index:e});return c.renderLineItem(a,n)}));return t.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}},{key:"renderVertical",value:function(e){var r=this,n=this.props,o=n.y,i=n.height,a=n.vertical;if(!e||!e.length)return null;var u=e.map((function(t,e){var n=HP(HP({},r.props),{},{x1:t,y1:o,x2:t,y2:o+i,key:"line-".concat(e),index:e});return c.renderLineItem(a,n)}));return t.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}},{key:"renderVerticalStripes",value:function(e){var r=this.props.verticalFill;if(!r||!r.length)return null;var n=this.props,o=n.fillOpacity,i=n.x,a=n.y,c=n.width,u=n.height,l=e.map((function(t){return Math.round(t+i-i)})).sort((function(t,e){return t-e}));i!==l[0]&&l.unshift(0);var s=l.map((function(e,n){var s=l[n+1]?l[n+1]-e:i+c-e;if(s<=0)return null;var f=n%r.length;return t.createElement("rect",{key:"react-".concat(n),x:e,y:a,width:s,height:u,stroke:"none",fill:r[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},s)}},{key:"renderHorizontalStripes",value:function(e){var r=this.props.horizontalFill;if(!r||!r.length)return null;var n=this.props,o=n.fillOpacity,i=n.x,a=n.y,c=n.width,u=n.height,l=e.map((function(t){return Math.round(t+a-a)})).sort((function(t,e){return t-e}));a!==l[0]&&l.unshift(0);var s=l.map((function(e,n){var s=l[n+1]?l[n+1]-e:a+u-e;if(s<=0)return null;var f=n%r.length;return t.createElement("rect",{key:"react-".concat(n),y:e,x:i,height:s,width:c,stroke:"none",fill:r[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},s)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var r=this.props,n=r.fillOpacity,o=r.x,i=r.y,a=r.width,c=r.height;return t.createElement("rect",{x:o,y:i,width:a,height:c,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,r=e.x,n=e.y,o=e.width,i=e.height,a=e.horizontal,c=e.vertical,u=e.horizontalCoordinatesGenerator,l=e.verticalCoordinatesGenerator,s=e.xAxis,f=e.yAxis,p=e.offset,h=e.chartWidth,y=e.chartHeight,d=e.syncWithTicks,v=e.horizontalValues,m=e.verticalValues;if(!lr(o)||o<=0||!lr(i)||i<=0||!lr(r)||r!==+r||!lr(n)||n!==+n)return null;var b=this.props,g=b.horizontalPoints,x=b.verticalPoints;if((!g||!g.length)&&Q(u)){var w=v&&v.length;g=u({yAxis:f?HP(HP({},f),{},{ticks:w?v:f.ticks}):void 0,width:h,height:y,offset:p},!!w||d)}if((!x||!x.length)&&Q(l)){var O=m&&m.length;x=l({xAxis:s?HP(HP({},s),{},{ticks:O?m:s.ticks}):void 0,width:h,height:y,offset:p},!!O||d)}return t.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(g),c&&this.renderVertical(x),a&&this.renderHorizontalStripes(g),c&&this.renderVerticalStripes(x))}}],i=[{key:"renderLineItem",value:function(e,r){var n;if(t.isValidElement(e))n=t.cloneElement(e,r);else if(Q(e))n=e(r);else{var o=r.x1,i=r.y1,a=r.x2,c=r.y2,u=r.key,l=VP(r,UP),s=Br(l);s.offset;var f=VP(s,FP);n=t.createElement("line",WP({},f,{x1:o,y1:i,x2:a,y2:c,fill:"none",key:u}))}return n}}],o&&GP(r.prototype,o),i&&GP(r,i),Object.defineProperty(r,"prototype",{writable:!1}),c}();JP(tk,"displayName","CartesianGrid"),JP(tk,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var ek=function(){return null};ek.displayName="XAxis",ek.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};var rk=function(){return null};rk.displayName="YAxis",rk.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};var nk=xu,ok=Da,ik=La;var ak=function(t){return function(e,r,n){var o=Object(e);if(!ok(e)){var i=nk(r);e=ik(e),r=function(t){return i(o[t],t,o)}}var a=t(e,r,n);return a>-1?o[i?e[a]:a]:void 0}},ck=Ej;var uk=wu,lk=xu,sk=function(t){var e=ck(t),r=e%1;return e==e?r?e-r:e:0},fk=Math.max;var pk=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=null==r?0:sk(r);return o<0&&(o=fk(n+o,0)),uk(t,lk(e),o)},hk=d(ak(pk)),yk="production"===process.env.NODE_ENV,dk="Invariant failed";function vk(t,e){if(!t){if(yk)throw new Error(dk);var r="function"==typeof e?e():e,n=r?"".concat(dk,": ").concat(r):dk;throw new Error(n)}}function mk(t){return function(t){if(Array.isArray(t))return bk(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return bk(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bk(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bk(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var gk=function(t,e,r,n,o){var i=Ir(t,aP),a=Ir(t,pP),c=[].concat(mk(i),mk(a)),u=Ir(t,bP),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===r&&oA(e.props,"extendDomain")&&lr(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),u.length){var p="".concat(s,"1"),h="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===r&&oA(e.props,"extendDomain")&&lr(e.props[p])&&lr(e.props[h])){var n=e.props[p],o=e.props[h];return[Math.min(t[0],n,o),Math.max(t[1],n,o)]}return t}),f)}return o&&o.length&&(f=o.reduce((function(t,e){return lr(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},xk={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new o(n,i||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,o,i,a){var c=r?r+t:t;if(!this._events[c])return!1;var u,l,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,o),!0;case 5:return s.fn.call(s.context,e,n,o,i),!0;case 6:return s.fn.call(s.context,e,n,o,i,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var p,h=s.length;for(l=0;l<h;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,n);break;case 4:s[l].fn.call(s[l].context,e,n,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];s[l].fn.apply(s[l].context,u)}}return!0},c.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var c=this._events[i];if(c.fn)c.fn!==e||o&&!c.once||n&&c.context!==n||a(this,i);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||o&&!c[u].once||n&&c[u].context!==n)&&l.push(c[u]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c}(xk);var wk=new(d(xk.exports)),Ok="recharts.syncMouseEvents";function Sk(t){"@babel/helpers - typeof";return Sk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sk(t)}function jk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Pk(n.key),n)}}function Ak(t,e,r){return(e=Pk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pk(t){var e=function(t,e){if("object"!==Sk(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Sk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Sk(e)?e:String(e)}var kk=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Ak(this,"activeIndex",0),Ak(this,"coordinateList",[]),Ak(this,"layout","horizontal")}var e,r,n;return e=t,r=[{key:"setDetails",value:function(t){var e=t.coordinateList,r=void 0===e?[]:e,n=t.container,o=void 0===n?null:n,i=t.layout,a=void 0===i?null:i,c=t.offset,u=void 0===c?null:c,l=t.mouseHandlerCallback,s=void 0===l?null:l;this.coordinateList=null!=r?r:this.coordinateList,this.container=null!=o?o:this.container,this.layout=null!=a?a:this.layout,this.offset=null!=u?u:this.offset,this.mouseHandlerCallback=null!=s?s:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,o=r.y,i=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=n+a+c,s=o+this.offset.top+i/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}],r&&jk(e.prototype,r),n&&jk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Ek(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[hw(e,r,n,o),hw(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}function Mk(t,e,r){var n,o,i,a;if("horizontal"===t)i=n=e.x,o=r.top,a=r.top+r.height;else if("vertical"===t)a=o=e.y,n=r.left,i=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return Ek(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=hw(c,u,l,f),h=hw(c,u,s,f);n=p.x,o=p.y,i=h.x,a=h.y}return[{x:n,y:o},{x:i,y:a}]}function Tk(t){"@babel/helpers - typeof";return Tk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tk(t)}function _k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ck(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_k(Object(r),!0).forEach((function(e){Ik(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_k(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ik(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Tk(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Tk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Tk(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Dk(t){var r,n=t.element,i=t.tooltipEventType,a=t.isActive,c=t.activeCoordinate,u=t.activePayload,l=t.offset,s=t.activeTooltipIndex,f=t.tooltipAxisBandSize,h=t.layout,y=t.chartName;if(!n||!n.props.cursor||!a||!c||"ScatterChart"!==y&&"axis"!==i)return null;var d=hO;if("ScatterChart"===y)r=c,d=FO;else if("BarChart"===y)r=function(t,e,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-o:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-o,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(h,c,l,f),d=jO;else if("radial"===h){var v=Ek(c),m=v.cx,b=v.cy,g=v.radius;r={cx:m,cy:b,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:g,outerRadius:g},d=rO}else r={points:Mk(h,c,l)},d=hO;var x=Ck(Ck(Ck(Ck({stroke:"#ccc",pointerEvents:"none"},l),r),Br(n.props.cursor)),{},{payload:u,payloadIndex:s,className:"recharts-tooltip-cursor"});return e(n.props.cursor)?o(n.props.cursor,x):p(d,x)}var Nk=["item"],Rk=["children","className","width","height","style","compact","title","desc"];function Bk(t){"@babel/helpers - typeof";return Bk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bk(t)}function Lk(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||Hk(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $k(){return $k=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$k.apply(this,arguments)}function zk(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Uk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Jk(n.key),n)}}function Fk(t,e){return Fk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fk(t,e)}function qk(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Vk(t);if(e){var o=Vk(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Bk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Wk(t)}(this,r)}}function Wk(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Vk(t){return Vk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vk(t)}function Xk(t){return function(t){if(Array.isArray(t))return Gk(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Hk(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hk(t,e){if(t){if("string"==typeof t)return Gk(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gk(t,e):void 0}}function Gk(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Yk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Kk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yk(Object(r),!0).forEach((function(e){Zk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zk(t,e,r){return(e=Jk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jk(t){var e=function(t,e){if("object"!==Bk(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Bk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Bk(e)?e:String(e)}var Qk={xAxis:["bottom","top"],yAxis:["left","right"]},tE={width:"100%",height:"100%"},eE={x:0,y:0},rE=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,o=e.dataEndIndex,i=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(Xk(t),Xk(r)):t}),[]);return i.length>0?i:t&&t.length&&lr(n)&&lr(o)?t.slice(n,o+1):[]};function nE(t){return"number"===t?[0,"auto"]:void 0}var oE=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=rE(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce((function(o,c){var u;if(c.props.hide)return o;var l,s=null!==(u=c.props.data)&&void 0!==u?u:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?l=vr(void 0===s?a:s,i.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(Xk(o),[ow(c,l)]):o}),[])},iE=function(t,e,r,n){var o=n||{x:t.chartX,y:t.chartY},i=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(o,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,u=0;u<a;u++){var l=u>0?n[u-1].coordinate:n[a-1].coordinate,s=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,p=void 0;if(cr(s-l)!==cr(f-s)){var h=[];if(cr(f-s)===cr(c[1]-c[0])){p=f;var y=s+c[1]-c[0];h[0]=Math.min(y,(y+l)/2),h[1]=Math.max(y,(y+l)/2)}else{p=l;var d=f+c[1]-c[0];h[0]=Math.min(s,(d+s)/2),h[1]=Math.max(s,(d+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){i=n[u].index;break}}else{var m=Math.min(l,f),b=Math.max(l,f);if(t>(m+s)/2&&t<=(b+s)/2){i=n[u].index;break}}}else for(var g=0;g<a;g++)if(0===g&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g>0&&g<a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g===a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2){i=r[g].index;break}return i}(i,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=oE(t,e,l,s),p=function(t,e,r,n){var o=e.find((function(t){return t&&t.index===r}));if(o){if("horizontal"===t)return{x:o.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:o.coordinate};if("centric"===t){var i=o.coordinate,a=n.radius;return Kk(Kk(Kk({},n),hw(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var c=o.coordinate,u=n.angle;return Kk(Kk(Kk({},n),hw(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return eE}(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},aE=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=zx(l,o);return r.reduce((function(e,r){var h,y=r.props,d=y.type,v=y.dataKey,m=y.allowDataOverflow,b=y.allowDuplicatedCategory,g=y.scale,x=y.ticks,w=y.includeHidden,O=r.props[i];if(e[O])return e;var S,j,A,P=rE(t.data,{graphicalItems:n.filter((function(t){return t.props[i]===O})),dataStartIndex:c,dataEndIndex:u}),k=P.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],o=null==t?void 0:t[1];if(n&&o&&lr(n)&&lr(o))return!0}return!1})(r.props.domain,m,d)&&(S=ew(r.props.domain,null,m),!p||"number"!==d&&"auto"===g||(A=Rx(P,v,"category")));var E=nE(d);if(!S||0===S.length){var M,T=null!==(M=r.props.domain)&&void 0!==M?M:E;if(v){if(S=Rx(P,v,d),"category"===d&&p){var _=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(S);b&&_?(j=S,S=Cj(0,k)):b||(S=nw(T,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(Xk(t),[e])}),[]))}else if("category"===d)S=b?S.filter((function(t){return""!==t&&!We(t)})):nw(T,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||We(e)?t:[].concat(Xk(t),[e])}),[]);else if("number"===d){var C=function(t,e,r,n,o){var i=e.map((function(e){return Lx(t,e,r,o,n)})).filter((function(t){return!We(t)}));return i&&i.length?i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(P,n.filter((function(t){return t.props[i]===O&&(w||!t.props.hide)})),v,o,l);C&&(S=C)}!p||"number"!==d&&"auto"===g||(A=Rx(P,v,"category"))}else S=p?Cj(0,k):a&&a[O]&&a[O].hasStack&&"number"===d?"expand"===f?[0,1]:Jx(a[O].stackGroups,c,u):$x(P,n.filter((function(t){return t.props[i]===O&&(w||!t.props.hide)})),d,l,!0);if("number"===d)S=gk(s,S,O,o,x),T&&(S=ew(T,S,m));else if("category"===d&&T){var I=T;S.every((function(t){return I.indexOf(t)>=0}))&&(S=I)}}return Kk(Kk({},e),{},Zk({},O,Kk(Kk({},r.props),{},{axisType:o,domain:S,categoricalDomain:A,duplicateDomain:j,originalDomain:null!==(h=r.props.domain)&&void 0!==h?h:E,isCategorical:p,layout:l})))}),{})},cE=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=Ir(l,o),p={};return f&&f.length?p=aE(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):i&&i.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=rE(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,h=zx(l,o),y=-1;return r.reduce((function(t,e){var d,v=e.props[i],m=nE("number");return t[v]?t:(y++,h?d=Cj(0,p):a&&a[v]&&a[v].hasStack?(d=Jx(a[v].stackGroups,c,u),d=gk(s,d,v,o)):(d=ew(m,$x(f,r.filter((function(t){return t.props[i]===v&&!t.props.hide})),"number",l),n.defaultProps.allowDataOverflow),d=gk(s,d,v,o)),Kk(Kk({},t),{},Zk({},v,Kk(Kk({axisType:o},n.defaultProps),{},{hide:!0,orientation:qe(Qk,"".concat(o,".").concat(y%2),null),domain:d,originalDomain:m,isCategorical:h,layout:l}))))}),{})}(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},uE=function(t){var e=t.children,r=t.defaultShowTooltip,n=Dr(e,Kj),o=0,i=0;return t.data&&0!==t.data.length&&(i=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},lE=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},sE=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),o=void 0===n?{}:n,i=t.yAxisMap,a=void 0===i?{}:i,c=r.width,u=r.height,l=r.children,s=r.margin||{},f=Dr(l,Kj),p=Dr(l,ol),h=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:Kk(Kk({},t),{},Zk({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),y=Object.keys(o).reduce((function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:Kk(Kk({},t),{},Zk({},n,qe(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),d=Kk(Kk({},y),h),v=d.bottom;f&&(d.bottom+=f.props.height||Kj.defaultProps.height),p&&e&&(d=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,c=i-(a.left||0)-(a.right||0),u=Ex({children:o,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,p=u.align,h=u.verticalAlign,y=u.layout;if(("vertical"===y||"horizontal"===y&&"middle"===h)&&"center"!==p&&lr(t[p]))return _x(_x({},t),{},Cx({},p,t[p]+(s||0)));if(("horizontal"===y||"vertical"===y&&"center"===p)&&"middle"!==h&&lr(t[h]))return _x(_x({},t),{},Cx({},h,t[h]+(f||0)))}return t}(d,0,r,e));var m=c-d.left-d.right,b=u-d.top-d.bottom;return Kk(Kk({brushBottom:v},d),{},{width:Math.max(m,0),height:Math.max(b,0)})},fE=function(r){var n,i=r.chartName,a=r.GraphicalChild,c=r.defaultTooltipEventType,u=void 0===c?"axis":c,l=r.validateTooltipEventTypes,s=void 0===l?["axis"]:l,f=r.axisComponents,p=r.legendContent,y=r.formatAxisMap,d=r.defaultProps,v=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,u=t.barSize,l=t.layout,s=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,y=lE(l),d=y.numericAxisName,v=y.cateAxisName,m=function(t){return!(!t||!t.length)&&t.some((function(t){var e=Mr(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),b=m&&function(t){var e=t.barSize,r=t.stackGroups,n=void 0===r?{}:r;if(!n)return{};for(var o={},i=Object.keys(n),a=0,c=i.length;a<c;a++)for(var u=n[i[a]].stackGroups,l=Object.keys(u),s=0,f=l.length;s<f;s++){var p=u[l[s]],h=p.items,y=p.cateAxisId,d=h.filter((function(t){return Mr(t.type).indexOf("Bar")>=0}));if(d&&d.length){var v=d[0].props.barSize,m=d[0].props[y];o[m]||(o[m]=[]),o[m].push({item:d[0],stackList:d.slice(1),barSize:We(v)?e:v})}}return o}({barSize:u,stackGroups:n}),g=[];return r.forEach((function(r,u){var y=rE(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:c}),m=r.props,x=m.dataKey,w=m.maxBarSize,O=r.props["".concat(d,"Id")],S=r.props["".concat(v,"Id")],j=f.reduce((function(t,n){var o,i,a,c=e["".concat(n.axisType,"Map")],u=r.props["".concat(n.axisType,"Id")];c&&c[u]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?vk(!1,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(o=null==r||null===(i=r.type)||void 0===i?void 0:i.displayName)&&void 0!==o?o:"")):vk(!1));var l=c[u];return Kk(Kk({},t),{},(Zk(a={},n.axisType,l),Zk(a,"".concat(n.axisType,"Ticks"),Fx(l)),a))}),{}),A=j[v],P=j["".concat(v,"Ticks")],k=n&&n[O]&&n[O].hasStack&&function(t,e){var r=t.props.stackId;if(sr(r)){var n=e[r];if(n){var o=n.items.indexOf(t);return o>=0?n.stackedData[o]:null}}return null}(r,n[O].stackGroups),E=Mr(r.type).indexOf("Bar")>=0,M=rw(A,P),T=[];if(E){var _,C,I=We(w)?h:w,D=null!==(_=null!==(C=rw(A,P,!0))&&void 0!==C?C:I)&&void 0!==_?_:0;T=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,o=t.sizeList,i=void 0===o?[]:o,a=t.maxBarSize,c=i.length;if(c<1)return null;var u,l=hr(e,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/c,h=i.reduce((function(t,e){return t+e.barSize||0}),0);(h+=(c-1)*l)>=n&&(h-=(c-1)*l,l=0),h>=n&&p>0&&(f=!0,h=c*(p*=.9));var y={offset:((n-h)/2>>0)-l,size:0};u=i.reduce((function(t,e){var r={item:e.item,position:{offset:y.offset+y.size+l,size:f?p:e.barSize}},n=[].concat(Ix(t),[r]);return y=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:y})})),n}),s)}else{var d=hr(r,n,0,!0);n-2*d-(c-1)*l<=0&&(l=0);var v=(n-2*d-(c-1)*l)/c;v>1&&(v>>=0);var m=a===+a?Math.min(v,a):v;u=i.reduce((function(t,e,r){var n=[].concat(Ix(t),[{item:e.item,position:{offset:d+(v+l)*r+(v-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:n[n.length-1].position})})),n}),s)}return u}({barGap:s,barCategoryGap:p,bandSize:D!==M?D:M,sizeList:b[S],maxBarSize:I}),D!==M&&(T=T.map((function(t){return Kk(Kk({},t),{},{position:Kk(Kk({},t.position),{},{offset:t.position.offset-D/2})})})))}var N,R,B,L=r&&r.type&&r.type.getComposedData;L&&g.push({props:Kk(Kk({},L(Kk(Kk({},j),{},{displayedData:y,props:t,dataKey:x,item:r,bandSize:M,barPosition:T,offset:o,stackedData:k,layout:l,dataStartIndex:a,dataEndIndex:c}))),{},(N={key:r.key||"item-".concat(u)},Zk(N,d,j[d]),Zk(N,v,j[v]),Zk(N,"animationId",i),N)),childIndex:(R=r,B=t.children,Cr(B).indexOf(R)),item:r})})),g},m=function(t,e){var r=t.props,n=t.dataStartIndex,o=t.dataEndIndex,c=t.updateId;if(!Nr({props:r}))return null;var u=r.children,l=r.layout,s=r.stackOffset,p=r.data,h=r.reverseStackOrder,d=lE(l),m=d.numericAxisName,b=d.cateAxisName,g=Ir(u,a),x=function(t,e,r,n,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce((function(t,e){var o=e.props,i=o.stackId;if(o.hide)return t;var a=e.props[r],c=t[a]||{hasStack:!1,stackGroups:{}};if(sr(i)){var u=c.stackGroups[i]||{numericAxisId:r,cateAxisId:n,items:[]};u.items.push(e),c.hasStack=!0,c.stackGroups[i]=u}else c.stackGroups[pr("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return _x(_x({},t),{},Cx({},a,c))}),{});return Object.keys(a).reduce((function(e,i){var c=a[i];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,i){var a=c.stackGroups[i];return _x(_x({},e),{},Cx({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:Yx(t,a.items,o)}))}),{})),_x(_x({},e),{},Cx({},i,c))}),{})}(p,g,"".concat(m,"Id"),"".concat(b,"Id"),s,h),w=f.reduce((function(t,e){var i="".concat(e.axisType,"Map");return Kk(Kk({},t),{},Zk({},i,cE(r,Kk(Kk({},e),{},{graphicalItems:g,stackGroups:e.axisType===m&&x,dataStartIndex:n,dataEndIndex:o}))))}),{}),O=sE(Kk(Kk({},w),{},{props:r,graphicalItems:g}),null==e?void 0:e.legendBBox);Object.keys(w).forEach((function(t){w[t]=y(r,w[t],O,t.replace("Map",""),i)}));var S,j,A=w["".concat(b,"Map")],P=(S=yr(A),{tooltipTicks:j=Fx(S,!1,!0),orderedTooltipTicks:ns(j,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:rw(S,j)}),k=v(r,Kk(Kk({},w),{},{dataStartIndex:n,dataEndIndex:o,updateId:c,graphicalItems:g,stackGroups:x,offset:O}));return Kk(Kk({formattedGraphicalItems:k,graphicalItems:g,offset:O,stackGroups:x},P),w)};return n=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Fk(t,e)}(l,h);var r,n,a,c=qk(l);function l(e){var r,n,a;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),Zk(Wk(a=c.call(this,e)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Zk(Wk(a),"accessibilityManager",new kk),Zk(Wk(a),"handleLegendBBoxUpdate",(function(t){if(t){var e=a.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;a.setState(Kk({legendBBox:t},m({props:a.props,dataStartIndex:r,dataEndIndex:n,updateId:o},Kk(Kk({},a.state),{},{legendBBox:t}))))}})),Zk(Wk(a),"handleReceiveSyncEvent",(function(t,e,r){if(a.props.syncId===t){if(r===a.eventEmitterSymbol&&"function"!=typeof a.props.syncMethod)return;a.applySyncEvent(e)}})),Zk(Wk(a),"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==a.state.dataStartIndex||r!==a.state.dataEndIndex){var n=a.state.updateId;a.setState((function(){return Kk({dataStartIndex:e,dataEndIndex:r},m({props:a.props,dataStartIndex:e,dataEndIndex:r,updateId:n},a.state))})),a.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),Zk(Wk(a),"handleMouseEnter",(function(t){var e=a.getMouseInfo(t);if(e){var r=Kk(Kk({},e),{},{isTooltipActive:!0});a.setState(r),a.triggerSyncEvent(r);var n=a.props.onMouseEnter;Q(n)&&n(r,t)}})),Zk(Wk(a),"triggeredAfterMouseMove",(function(t){var e=a.getMouseInfo(t),r=e?Kk(Kk({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(r),a.triggerSyncEvent(r);var n=a.props.onMouseMove;Q(n)&&n(r,t)})),Zk(Wk(a),"handleItemMouseEnter",(function(t){a.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),Zk(Wk(a),"handleItemMouseLeave",(function(){a.setState((function(){return{isTooltipActive:!1}}))})),Zk(Wk(a),"handleMouseMove",(function(t){t.persist(),a.throttleTriggeredAfterMouseMove(t)})),Zk(Wk(a),"handleMouseLeave",(function(t){var e={isTooltipActive:!1};a.setState(e),a.triggerSyncEvent(e);var r=a.props.onMouseLeave;Q(r)&&r(e,t)})),Zk(Wk(a),"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&Er[e]?Er[e]:null}(t),n=qe(a.props,"".concat(r));r&&Q(n)&&n(null!==(e=/.*touch.*/i.test(r)?a.getMouseInfo(t.changedTouches[0]):a.getMouseInfo(t))&&void 0!==e?e:{},t)})),Zk(Wk(a),"handleClick",(function(t){var e=a.getMouseInfo(t);if(e){var r=Kk(Kk({},e),{},{isTooltipActive:!0});a.setState(r),a.triggerSyncEvent(r);var n=a.props.onClick;Q(n)&&n(r,t)}})),Zk(Wk(a),"handleMouseDown",(function(t){var e=a.props.onMouseDown;Q(e)&&e(a.getMouseInfo(t),t)})),Zk(Wk(a),"handleMouseUp",(function(t){var e=a.props.onMouseUp;Q(e)&&e(a.getMouseInfo(t),t)})),Zk(Wk(a),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),Zk(Wk(a),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&a.handleMouseDown(t.changedTouches[0])})),Zk(Wk(a),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&a.handleMouseUp(t.changedTouches[0])})),Zk(Wk(a),"triggerSyncEvent",(function(t){void 0!==a.props.syncId&&wk.emit(Ok,a.props.syncId,t,a.eventEmitterSymbol)})),Zk(Wk(a),"applySyncEvent",(function(t){var e=a.props,r=e.layout,n=e.syncMethod,o=a.state.updateId,i=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)a.setState(Kk({dataStartIndex:i,dataEndIndex:c},m({props:a.props,dataStartIndex:i,dataEndIndex:c,updateId:o},a.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=a.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var y=0;y<h.length;y++)if(h[y].value===t.activeLabel){s=y;break}}var d=Kk(Kk({},p),{},{x:p.left,y:p.top}),v=Math.min(u,d.x+d.width),b=Math.min(l,d.y+d.height),g=h[s]&&h[s].value,x=oE(a.state,a.props.data,s),w=h[s]?{x:"horizontal"===r?h[s].coordinate:v,y:"horizontal"===r?b:h[s].coordinate}:eE;a.setState(Kk(Kk({},t),{},{activeLabel:g,activeCoordinate:w,activePayload:x,activeTooltipIndex:s}))}else a.setState(t)})),Zk(Wk(a),"verticalCoordinatesGenerator",(function(t,e){var r=t.xAxis,n=t.width,o=t.height,i=t.offset;return Ux(AP(Kk(Kk(Kk({},zP.defaultProps),r),{},{ticks:Fx(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,e)})),Zk(Wk(a),"horizontalCoordinatesGenerator",(function(t,e){var r=t.yAxis,n=t.width,o=t.height,i=t.offset;return Ux(AP(Kk(Kk(Kk({},zP.defaultProps),r),{},{ticks:Fx(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,e)})),Zk(Wk(a),"axesTicksGenerator",(function(t){return Fx(t,!0)})),Zk(Wk(a),"renderCursor",(function(e){var r,n=a.state,o=n.isTooltipActive,c=n.activeCoordinate,u=n.activePayload,l=n.offset,s=n.activeTooltipIndex,f=n.tooltipAxisBandSize,p=a.getTooltipEventType(),h=null!==(r=e.props.active)&&void 0!==r?r:o,y=a.props.layout,d=e.key||"_recharts-cursor";return t.createElement(Dk,{key:d,activeCoordinate:c,activePayload:u,activeTooltipIndex:s,chartName:i,element:e,isActive:h,layout:y,offset:l,tooltipAxisBandSize:f,tooltipEventType:p})})),Zk(Wk(a),"renderPolarAxis",(function(t,e,r){var n=qe(t,"type.axisType"),i=qe(a.state,"".concat(n,"Map")),c=i&&i[t.props["".concat(n,"Id")]];return o(t,Kk(Kk({},c),{},{className:n,key:t.key||"".concat(e,"-").concat(r),ticks:Fx(c,!0)}))})),Zk(Wk(a),"renderXAxis",(function(t,e,r){var n=a.state.xAxisMap[t.props.xAxisId];return a.renderAxis(n,t,e,r)})),Zk(Wk(a),"renderYAxis",(function(t,e,r){var n=a.state.yAxisMap[t.props.yAxisId];return a.renderAxis(n,t,e,r)})),Zk(Wk(a),"renderGrid",(function(t){var e=a.state,r=e.xAxisMap,n=e.yAxisMap,i=e.offset,c=a.props,u=c.width,l=c.height,s=yr(r),f=hk(n,(function(t){return gA(t.domain,Number.isFinite)}))||yr(n),p=t.props||{};return o(t,{key:t.key||"grid",x:lr(p.x)?p.x:i.left,y:lr(p.y)?p.y:i.top,width:lr(p.width)?p.width:i.width,height:lr(p.height)?p.height:i.height,xAxis:s,yAxis:f,offset:i,chartWidth:u,chartHeight:l,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||a.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||a.horizontalCoordinatesGenerator})})),Zk(Wk(a),"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,i=e.polarRadius,c=a.state,u=c.radiusAxisMap,l=c.angleAxisMap,s=yr(u),f=yr(l),p=f.cx,h=f.cy,y=f.innerRadius,d=f.outerRadius;return o(t,{polarAngles:Array.isArray(n)?n:Fx(f,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(i)?i:Fx(s,!0).map((function(t){return t.coordinate})),cx:p,cy:h,innerRadius:y,outerRadius:d,key:t.key||"polar-grid",radialLines:r})})),Zk(Wk(a),"renderLegend",(function(){var t=a.state.formattedGraphicalItems,e=a.props,r=e.children,n=e.width,i=e.height,c=a.props.margin||{},u=n-(c.left||0)-(c.right||0),l=Ex({children:r,formattedGraphicalItems:t,legendWidth:u,legendContent:p});if(!l)return null;var s=l.item,f=zk(l,Nk);return o(s,Kk(Kk({},f),{},{chartWidth:n,chartHeight:i,margin:c,onBBoxUpdate:a.handleLegendBBoxUpdate}))})),Zk(Wk(a),"renderTooltip",(function(){var t,e=Dr(a.props.children,Kp);if(!e)return null;var r=a.state,n=r.isTooltipActive,i=r.activeCoordinate,c=r.activePayload,u=r.activeLabel,l=r.offset,s=null!==(t=e.props.active)&&void 0!==t?t:n;return o(e,{viewBox:Kk(Kk({},l),{},{x:l.left,y:l.top}),active:s,label:u,payload:s?c:[],coordinate:i})})),Zk(Wk(a),"renderBrush",(function(t){var e=a.props,r=e.margin,n=e.data,i=a.state,c=i.offset,u=i.dataStartIndex,l=i.dataEndIndex,s=i.updateId;return o(t,{key:t.key||"_recharts-brush",onChange:Wx(a.handleBrushChange,t.props.onChange),data:n,x:lr(t.props.x)?t.props.x:c.left,y:lr(t.props.y)?t.props.y:c.top+c.height+c.brushBottom-(r.bottom||0),width:lr(t.props.width)?t.props.width:c.width,startIndex:u,endIndex:l,updateId:"brush-".concat(s)})})),Zk(Wk(a),"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=Wk(a).clipPathId,i=a.state,c=i.xAxisMap,u=i.yAxisMap,l=i.offset,s=t.props,f=s.xAxisId,p=s.yAxisId;return o(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:c[f],yAxis:u[p],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:n})})),Zk(Wk(a),"renderActivePoints",(function(t){var e=t.item,r=t.activePoint,n=t.basePoint,o=t.childIndex,i=t.isRange,a=[],c=e.props.key,u=e.item.props,s=u.activeDot,f=Kk(Kk({index:o,dataKey:u.dataKey,cx:r.x,cy:r.y,r:4,fill:Bx(e.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(c,"-activePoint-").concat(o)},Br(s)),Sr(s));return a.push(l.renderActiveDot(s,f)),n?a.push(l.renderActiveDot(s,Kk(Kk({},f),{},{cx:n.x,cy:n.y,key:"".concat(c,"-basePoint-").concat(o)}))):i&&a.push(null),a})),Zk(Wk(a),"renderGraphicChild",(function(t,e,r){var n=a.filterFormatItem(t,e,r);if(!n)return null;var i=a.getTooltipEventType(),c=a.state,u=c.isTooltipActive,l=c.tooltipAxis,s=c.activeTooltipIndex,f=c.activeLabel,p=Dr(a.props.children,Kp),h=n.props,y=h.points,d=h.isRange,v=h.baseLine,m=n.item.props,b=m.activeDot,g=m.hide,x=m.activeBar,w=m.activeShape,O=Boolean(!g&&u&&p&&(b||x||w)),S={};"axis"!==i&&p&&"click"===p.props.trigger?S={onClick:Wx(a.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(S={onMouseLeave:Wx(a.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:Wx(a.handleItemMouseEnter,t.props.onMouseEnter)});var j=o(t,Kk(Kk({},n.props),S));if(O){if(!(s>=0)){var A,P=(null!==(A=a.getItemByXY(a.state.activeCoordinate))&&void 0!==A?A:{graphicalItem:j}).graphicalItem,k=P.item,E=void 0===k?t:k,M=P.childIndex,T=Kk(Kk(Kk({},n.props),S),{},{activeIndex:M});return[o(E,T),null,null]}var _,C;if(l.dataKey&&!l.allowDuplicatedCategory){var I="function"==typeof l.dataKey?function(t){return"function"==typeof l.dataKey?l.dataKey(t.payload):null}:"payload.".concat(l.dataKey.toString());_=vr(y,I,f),C=d&&v&&vr(v,I,f)}else _=null==y?void 0:y[s],C=d&&v&&v[s];if(w||x){var D=void 0!==t.props.activeIndex?t.props.activeIndex:s;return[o(t,Kk(Kk(Kk({},n.props),S),{},{activeIndex:D})),null,null]}if(!We(_))return[j].concat(Xk(a.renderActivePoints({item:n,activePoint:_,basePoint:C,childIndex:s,isRange:d})))}return d?[j,null,null]:[j,null]})),Zk(Wk(a),"renderCustomized",(function(t,e,r){return o(t,Kk(Kk({key:"recharts-customized-".concat(r)},a.props),a.state))})),Zk(Wk(a),"renderMap",{CartesianGrid:{handler:a.renderGrid,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:a.renderReferenceElement},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:a.renderXAxis},YAxis:{handler:a.renderYAxis},Brush:{handler:a.renderBrush,once:!0},Bar:{handler:a.renderGraphicChild},Line:{handler:a.renderGraphicChild},Area:{handler:a.renderGraphicChild},Radar:{handler:a.renderGraphicChild},RadialBar:{handler:a.renderGraphicChild},Scatter:{handler:a.renderGraphicChild},Pie:{handler:a.renderGraphicChild},Funnel:{handler:a.renderGraphicChild},Tooltip:{handler:a.renderCursor,once:!0},PolarGrid:{handler:a.renderPolarGrid,once:!0},PolarAngleAxis:{handler:a.renderPolarAxis},PolarRadiusAxis:{handler:a.renderPolarAxis},Customized:{handler:a.renderCustomized}}),a.clipPathId="".concat(null!==(r=e.id)&&void 0!==r?r:pr("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=gh(a.triggeredAfterMouseMove,null!==(n=e.throttleDelay)&&void 0!==n?n:1e3/60),a.state={},a}return r=l,n=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(t,e){return this.props.accessibilityLayer?(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}}),null):null;var r,n}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=Dr(this.props.children,Kp);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return s.indexOf(e)>=0?e:u}return u}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),o={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(t.pageX-o.left),chartY:Math.round(t.pageY-o.top)},a=n.width/r.offsetWidth||1,c=this.inRange(i.chartX,i.chartY,a);if(!c)return null;var u=this.state,l=u.xAxisMap,s=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&s){var f=yr(l).scale,p=yr(s).scale,h=f&&f.invert?f.invert(i.chartX):null,y=p&&p.invert?p.invert(i.chartY):null;return Kk(Kk({},i),{},{xValue:h,yValue:y})}var d=iE(this.state,this.props.data,this.props.layout,c);return d?Kk(Kk({},i),d):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=t/r,i=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var c=this.state,u=c.angleAxisMap,l=c.radiusAxisMap;if(u&&l){var s=yr(u);return mw({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=Dr(t,Kp),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),Kk(Kk({},Sr(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){wk.on(Ok,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){wk.removeListener(Ok,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o<i;o++){var a=n[o];if(a.item===t||a.props.key===t.key||e===Mr(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,r,n,o){var i=this.props,a=i.width,c=i.height;return t.createElement(zP,$k({},e,{className:x("recharts-".concat(e.axisType," ").concat(e.axisType),e.className),key:r.key||"".concat(n,"-").concat(o),viewBox:{x:0,y:0,width:a,height:c},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,r=this.state.offset,n=r.left,o=r.top,i=r.height,a=r.width;return t.createElement("defs",null,t.createElement("clipPath",{id:e},t.createElement("rect",{x:n,y:o,height:i,width:a})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=Lk(e,2),n=r[0],o=r[1];return Kk(Kk({},t),{},Zk({},n,o.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=Lk(e,2),n=r[0],o=r[1];return Kk(Kk({},t),{},Zk({},n,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var o=0,i=r.length;o<i;o++){var a=r[o],c=a.props,u=a.item,l=Mr(u.type);if("Bar"===l){var s=(c.data||[]).find((function(e){return OO(t,e)}));if(s)return{graphicalItem:a,payload:s}}else if("RadialBar"===l){var f=(c.data||[]).find((function(e){return mw(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if(ij(a,n)||aj(a,n)||cj(a,n)){var p=fj({graphicalItem:a,activeTooltipItem:n,itemData:u.props.data}),h=void 0===u.props.activeIndex?p:u.props.activeIndex;return{graphicalItem:Kk(Kk({},a),{},{childIndex:h}),payload:cj(a,n)?u.props.data[p]:a.props.data[p]}}}return null}},{key:"render",value:function(){var e=this;if(!Nr(this))return null;var r,n,o=this.props,i=o.children,a=o.className,c=o.width,u=o.height,l=o.style,s=o.compact,f=o.title,p=o.desc,h=zk(o,Rk),y=Br(h);if(s)return t.createElement(Wr,$k({},y,{width:c,height:u,title:f,desc:p}),this.renderClipPath(),zr(i,this.renderMap));this.props.accessibilityLayer&&(y.tabIndex=null!==(r=this.props.tabIndex)&&void 0!==r?r:0,y.role=null!==(n=this.props.role)&&void 0!==n?n:"img",y.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},y.onFocus=function(){e.accessibilityManager.focus()});var d=this.parseEventsOfWrapper();return t.createElement("div",$k({className:x("recharts-wrapper",a),style:Kk({position:"relative",cursor:"default",width:c,height:u},l)},d,{ref:function(t){e.container=t},role:"region"}),t.createElement(Wr,$k({},y,{width:c,height:u,title:f,desc:p,style:tE}),this.renderClipPath(),zr(i,this.renderMap)),this.renderLegend(),this.renderTooltip())}}],n&&Uk(r.prototype,n),a&&Uk(r,a),Object.defineProperty(r,"prototype",{writable:!1}),l}(),Zk(n,"displayName",i),Zk(n,"defaultProps",Kk({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),Zk(n,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,o=t.children,i=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var p=uE(t);return Kk(Kk(Kk({},p),{},{updateId:0},m(Kk(Kk({props:t},p),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(r!==e.prevDataKey||n!==e.prevData||i!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!mr(l,e.prevMargin)){var h=uE(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},d=Kk(Kk({},iE(e,n,c)),{},{updateId:e.updateId+1}),v=Kk(Kk(Kk({},h),y),d);return Kk(Kk(Kk({},v),m(Kk({props:t},v),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(!Lr(o,e.prevChildren)){var b,g,x,w,O=Dr(o,Kj),S=O&&null!==(b=null===(g=O.props)||void 0===g?void 0:g.startIndex)&&void 0!==b?b:s,j=O&&null!==(x=null===(w=O.props)||void 0===w?void 0:w.endIndex)&&void 0!==x?x:f,A=S!==s||j!==f,P=!We(n)&&!A?e.updateId:e.updateId+1;return Kk(Kk({updateId:P},m(Kk(Kk({props:t},e),{},{updateId:P,dataStartIndex:S,dataEndIndex:j}),e)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:j})}return null})),Zk(n,"renderActiveDot",(function(r,n){var i;return i=e(r)?o(r,n):Q(r)?r(n):t.createElement(DO,n),t.createElement(Gr,{className:"recharts-active-dot",key:n.key},i)})),n},pE=fE({chartName:"BarChart",GraphicalChild:FA,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:ek},{axisType:"yAxis",AxisComp:rk}],formatAxisMap:function(t,e,r,n,o){var i=t.width,a=t.height,c=t.layout,u=t.children,l=Object.keys(e),s={left:r.left,leftMirror:r.left,right:i-r.right,rightMirror:i-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!Dr(u,FA);return l.reduce((function(i,a){var u,l,p,h,y,d=e[a],v=d.orientation,m=d.domain,b=d.padding,g=void 0===b?{}:b,x=d.mirror,w=d.reversed,O="".concat(v).concat(x?"Mirror":"");if("number"===d.type&&("gap"===d.padding||"no-gap"===d.padding)){var S=m[1]-m[0],j=1/0,A=d.categoricalDomain.sort();A.forEach((function(t,e){e>0&&(j=Math.min((t||0)-(A[e-1]||0),j))}));var P=j/S,k="vertical"===d.layout?r.height:r.width;if("gap"===d.padding&&(u=P*k/2),"no-gap"===d.padding){var E=hr(t.barCategoryGap,P*k),M=P*k/2;u=M-E-(M-E)/k*E}}l="xAxis"===n?[r.left+(g.left||0)+(u||0),r.left+r.width-(g.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(g.bottom||0),r.top+(g.top||0)]:[r.top+(g.top||0)+(u||0),r.top+r.height-(g.bottom||0)-(u||0)]:d.range,w&&(l=[l[1],l[0]]);var T=Vx(d,o,f),_=T.scale,C=T.realScaleType;_.domain(m).range(l),Hx(_);var I=Kx(_,XA(XA({},d),{},{realScaleType:C}));"xAxis"===n?(y="top"===v&&!x||"bottom"===v&&x,p=r.left,h=s[O]-y*d.height):"yAxis"===n&&(y="left"===v&&!x||"right"===v&&x,p=s[O]-y*d.width,h=r.top);var D=XA(XA(XA({},d),I),{},{realScaleType:C,x:p,y:h,scale:_,width:"xAxis"===n?r.width:d.width,height:"yAxis"===n?r.height:d.height});return D.bandSize=rw(D,I),d.hide||"xAxis"!==n?d.hide||(s[O]+=(y?-1:1)*D.width):s[O]+=(y?-1:1)*D.height,XA(XA({},i),{},HA({},a,D))}),{})}}),hE=fE({chartName:"PieChart",GraphicalChild:Sj,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:AS},{axisType:"radiusAxis",AxisComp:pS}],formatAxisMap:function(t,e,r,n,o){var i=t.width,a=t.height,c=t.startAngle,u=t.endAngle,l=hr(t.cx,i,i/2),s=hr(t.cy,a,a/2),f=yw(i,a,r),p=hr(t.innerRadius,f,0),h=hr(t.outerRadius,f,.8*f);return Object.keys(e).reduce((function(t,r){var i,a=e[r],f=a.domain,y=a.reversed;if(We(a.range))"angleAxis"===n?i=[c,u]:"radiusAxis"===n&&(i=[p,h]),y&&(i=[i[1],i[0]]);else{var d=lw(i=a.range,2);c=d[0],u=d[1]}var v=Vx(a,o),m=v.realScaleType,b=v.scale;b.domain(f).range(i),Hx(b);var g=Kx(b,cw(cw({},a),{},{realScaleType:m})),x=cw(cw(cw({},a),g),{},{range:i,radius:h,realScaleType:m,scale:b,cx:l,cy:s,innerRadius:p,outerRadius:h,startAngle:c,endAngle:u});return cw(cw({},t),{},uw({},r,x))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),yE=function(e){var r=Math.PI/180,n=e.cx,o=e.cy,i=e.midAngle,a=e.innerRadius,c=e.outerRadius,u=e.startAngle,l=e.endAngle,s=e.fill,f=e.payload,p=e.percent,h=e.value,y=Math.sin(-r*i),d=Math.cos(-r*i),v=n+(c+10)*d,m=o+(c+10)*y,b=n+(c+30)*d,g=o+(c+30)*y,x=b+22*(d>=0?1:-1),w=g,O=d>=0?"start":"end";return t.createElement("g",null,t.createElement("text",{x:n,y:o,dy:8,textAnchor:"middle",fill:s},f.name),t.createElement(rO,{cx:n,cy:o,innerRadius:a,outerRadius:c,startAngle:u,endAngle:l,fill:s}),t.createElement(rO,{cx:n,cy:o,startAngle:u,endAngle:l,innerRadius:c+6,outerRadius:c+10,fill:s}),t.createElement("path",{d:"M".concat(v,",").concat(m,"L").concat(b,",").concat(g,"L").concat(x,",").concat(w),stroke:s,fill:"none"}),t.createElement("circle",{cx:x,cy:w,r:2,fill:s,stroke:"none"}),t.createElement("text",{x:x+12*(d>=0?1:-1),y:w,textAnchor:O,fill:"#333"},"".concat(h)),t.createElement("text",{x:x+12*(d>=0?1:-1),y:w,dy:18,textAnchor:O,fill:"var(--dark-button-color)"},"(".concat((100*p).toFixed(2),"%)")))},dE=function(e){var r=e.id,n=e.className,o=e.type,i=void 0===o?"bar":o,a=e.layout,c=void 0===a?"vertical":a,l=e.barSize,s=void 0===l?24:l,f=e.barGap,p=void 0===f?16:f,h=e.indexes,y=void 0===h?[]:h,d=e.data,v=void 0===d?[]:d,m=u(0),g=m[0],x=m[1];return t.createElement(Ph,{id:r,className:b("gyramais-chart","gyramais-chart-".concat(i),n),width:"100%",height:"100%"},"bar"===i?t.createElement(pE,{barSize:s,barGap:p,layout:c,data:v},t.createElement(tk,null),t.createElement(ek,{hide:"horizontal"===c,type:"horizontal"===c?"category":"number"}),t.createElement(rk,{hide:"vertical"===c,type:"vertical"===c?"category":"number"}),t.createElement(Kp,{contentStyle:{borderRadius:12},labelStyle:{display:"none"},cursor:{fill:"#00000011"}}),t.createElement(ol,{align:"vertical"===c?"left":"right",verticalAlign:"top",iconType:"square",iconSize:12,wrapperStyle:{paddingBottom:16}}),y.map((function(e,r){return t.createElement(FA,{key:"".concat(e,"-").concat(r),name:e.name,dataKey:e.key,stackId:e.stackId,fill:"var(--primary-button-color-".concat(r,"00)"),radius:"vertical"===c?[0,4,4,0]:[4,4,0,0]})}))):"pie"===i?t.createElement(hE,{width:300,height:300},t.createElement(Sj,{activeIndex:g,activeShape:yE,onMouseEnter:function(t,e){return x(e)},data:v,dataKey:"value",cx:"50%",cy:"50%",outerRadius:90,innerRadius:70,fill:"var(--primary-button-color)"})):t.createElement("div",null))};export{dE as Chart};
28
- //# sourceMappingURL=index.js.map