@cryptofi/core-ui 1.5.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ var fr={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,patte
28
28
  object-assign
29
29
  (c) Sindre Sorhus
30
30
  @license MIT
31
- */function pj(){if(JS)return ZS;JS=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return ZS=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},ZS}function dj(){if(tj)return QS;tj=1;return QS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function hj(){return rj?ej:(rj=1,ej=Function.call.bind(Object.prototype.hasOwnProperty))}function yj(){if(oj)return nj;oj=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=dj(),r={},n=hj();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={})},nj=o}function vj(){if(aj)return ij;aj=1;var t=fj(),e=pj(),r=dj(),n=hj(),o=yj(),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){}}),ij=function(c,u){var l="function"==typeof Symbol&&Symbol.iterator,s="@@iterator";var 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:y(a),arrayOf:function(t){return y((function(e,n,o,i,a){if("function"!=typeof t)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new h("Invalid "+i+" `"+a+"` of type `"+b(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:y((function(t,e,r,n,o){var i=t[e];return c(i)?null:new h("Invalid "+n+" `"+o+"` of type `"+b(i)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:y((function(e,r,n,o,i){var a=e[r];return t.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return y((function(e,r,n,o,i){if(!(e[r]instanceof t)){var a=t.name||f;return new h("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:y((function(t,e,r,n,o){return g(t[e])?null:new h("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return y((function(e,o,i,a,c){if("function"!=typeof t)return new h("Property `"+c+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var u=e[o],l=b(u);if("object"!==l)return new h("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){if(!Array.isArray(t))return"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;return y((function(e,r,n,o,i){for(var a=e[r],c=0;c<t.length;c++)if(d(a,t[c]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===w(e)?String(e):e}));return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+u+".")}))},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 "+x(o)+" at index "+e+"."),a}return y((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 h("Invalid "+a+" `"+c+"` supplied to `"+i+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(t){return y((function(e,n,o,i,a){var c=e[n],u=b(c);if("object"!==u)return new h("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,w(s));var f=s(c,l,o,i,a+"."+l,r);if(f)return f}return null}))},exact:function(t){return y((function(o,i,a,c,u){var l=o[i],s=b(l);if("object"!==s)return new h("Invalid "+c+" `"+u+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},o[i],t);for(var p in f){var d=t[p];if(n(t,p)&&"function"!=typeof d)return m(a,c,u,p,w(d));if(!d)return new h("Invalid "+c+" `"+u+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var y=d(l,p,a,c,u+"."+p,r);if(y)return y}return null}))}};function d(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function y(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function o(o,a,c,l,s,p,d){if(l=l||f,p=p||c,d!==r){if(u){var y=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 y.name="Invariant Violation",y}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 h("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `null`."):new h("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 y((function(e,r,n,o,i,a){var c=e[r];return b(c)!==t?new h("Invalid "+o+" `"+i+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function m(t,e,r,n,o){return new h((t||"React class")+": "+e+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function g(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(g);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(!g(r.value))return!1}else for(;!(r=n.next()).done;){var o=r.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function b(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 w(t){if(null==t)return""+t;var e=b(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function x(t){var e=w(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return h.prototype=Error.prototype,p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},ij}function mj(){if(uj)return cj;uj=1;var t=dj();function e(){}function r(){}return r.resetWarningCache=e,cj=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}}function gj(){if(lj)return qS.exports;if(lj=1,"production"!==process.env.NODE_ENV){var t=fj();qS.exports=vj()(t.isElement,true)}else qS.exports=mj()();return qS.exports}var bj=Ze(gj()),wj=Object.getOwnPropertyNames,xj=Object.getOwnPropertySymbols,Oj=Object.prototype.hasOwnProperty;function Sj(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function jj(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 Pj(t){return wj(t).concat(xj(t))}var Aj=Object.hasOwn||function(t,e){return Oj.call(t,e)};function Mj(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var kj="_owner",Ej=Object.getOwnPropertyDescriptor,Cj=Object.keys;function _j(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 Tj(t,e){return Mj(t.getTime(),e.getTime())}function Dj(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],d=f[1],h=o.value,y=h[0],v=h[1];l||i[s]||!(l=r.equals(p,y,c,s,t,e,r)&&r.equals(d,v,p,y,t,e,r))||(i[s]=!0),s++}if(!l)return!1;c++}return!0}function Ij(t,e,r){var n,o=Cj(t),i=o.length;if(Cj(e).length!==i)return!1;for(;i-- >0;){if((n=o[i])===kj&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!Aj(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function Nj(t,e,r){var n,o,i,a=Pj(t),c=a.length;if(Pj(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===kj&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!Aj(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(o=Ej(t,n),i=Ej(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function Lj(t,e){return Mj(t.valueOf(),e.valueOf())}function Bj(t,e){return t.source===e.source&&t.flags===e.flags}function Rj(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 $j(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 zj="[object Arguments]",Hj="[object Boolean]",Fj="[object Date]",Vj="[object Map]",Uj="[object Number]",Wj="[object Object]",qj="[object RegExp]",Yj="[object Set]",Xj="[object String]",Kj=Array.isArray,Gj="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,Zj=Object.assign,Jj=Object.prototype.toString.call.bind(Object.prototype.toString);var Qj=tP();function tP(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?Nj:_j,areDatesEqual:Tj,areMapsEqual:n?Sj(Dj,Nj):Dj,areObjectsEqual:n?Nj:Ij,arePrimitiveWrappersEqual:Lj,areRegExpsEqual:Bj,areSetsEqual:n?Sj(Rj,Nj):Rj,areTypedArraysEqual:n?Nj:$j};if(r&&(o=Zj({},o,r(o))),e){var i=jj(o.areArraysEqual),a=jj(o.areMapsEqual),c=jj(o.areObjectsEqual),u=jj(o.areSetsEqual);o=Zj({},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(Kj(t))return e(t,l,s);if(null!=Gj&&Gj(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=Jj(t);return p===Fj?r(t,l,s):p===qj?a(t,l,s):p===Vj?n(t,l,s):p===Yj?c(t,l,s):p===Wj?"function"!=typeof t.then&&"function"!=typeof l.then&&o(t,l,s):p===zj?o(t,l,s):(p===Hj||p===Uj||p===Xj)&&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 eP(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 rP(t){return rP="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},rP(t)}function nP(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 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)||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(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var o=nP(n),i=o[0],a=o.slice(1);return"number"==typeof i?void eP(r.bind(null,a),i):(r(i),void eP(r.bind(null,a)))}"object"===rP(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 aP(t){return aP="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},aP(t)}function cP(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 uP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cP(Object(r),!0).forEach((function(e){lP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==aP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==aP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===aP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}tP({strict:!0}),tP({circular:!0}),tP({circular:!0,strict:!0}),tP({createInternalComparator:function(){return Mj}}),tP({strict:!0,createInternalComparator:function(){return Mj}}),tP({circular:!0,createInternalComparator:function(){return Mj}}),tP({circular:!0,createInternalComparator:function(){return Mj},strict:!0});var sP=function(t){return t},fP=function(t,e){return Object.keys(e).reduce((function(r,n){return uP(uP({},r),{},lP({},n,t(n,e[n])))}),{})},pP=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(",")},dP="production"!==process.env.NODE_ENV,hP=function(t,e,r,n,o,i,a,c){if(dP&&"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 yP(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);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)||mP(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 vP(t){return function(t){if(Array.isArray(t))return gP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||mP(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 mP(t,e){if(t){if("string"==typeof t)return gP(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)?gP(t,e):void 0}}function gP(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 bP=1e-4,wP=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},xP=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},OP=function(t,e){return function(r){var n=wP(t,e);return xP(n,r)}},SP=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=yP(u,4);n=l[0],o=l[1],i=l[2],a=l[3]}else hP(!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)}hP([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=OP(n,i),d=OP(o,a),h=(s=n,f=i,function(t){var e=wP(s,f),r=[].concat(vP(e.map((function(t,e){return t*e})).slice(1)),[0]);return xP(r,t)}),y=function(t){for(var e,r=t>1?1:t,n=r,o=0;o<8;++o){var i=p(n)-r,a=h(n);if(Math.abs(i-r)<bP||a<bP)return d(n);n=(e=n-i/a)>1?1:e<0?0:e}return d(n)};return y.isStepper=!1,y},jP=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 SP(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)<bP&&Math.abs(i)<bP?[e,0]:[c,i]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return SP(n);hP(!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:(hP(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function PP(t){return PP="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},PP(t)}function AP(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)||_P(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 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 kP(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){EP(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 EP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==PP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==PP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===PP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function CP(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);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)||_P(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 _P(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 DP=function(t,e,r){return t+(e-t)*r},IP=function(t){return t.from!==t.to},NP=function t(e,r,n){var o=fP((function(t,r){if(IP(r)){var n=CP(e(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return kP(kP({},r),{},{from:o,velocity:i})}return r}),r);return n<1?fP((function(t,e){return IP(e)?kP(kP({},e),{},{velocity:DP(e.velocity,o[t].velocity,n),from:DP(e.from,o[t].from,n)}):e}),r):t(e,o,n-1)},LP=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 kP(kP({},r),{},EP({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return kP(kP({},r),{},EP({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,d=function(){return null};return d=r.isStepper?function(n){c||(c=n);var i=(n-c)/r.dt;f=NP(r,f,i),o(kP(kP(kP({},t),e),fP((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(IP).length&&(p=requestAnimationFrame(d))}:function(i){u||(u=i);var a=(i-u)/n,c=fP((function(t,e){return DP.apply(void 0,AP(e).concat([r(a)]))}),s);if(o(kP(kP(kP({},t),e),c)),a<1)p=requestAnimationFrame(d);else{var l=fP((function(t,e){return DP.apply(void 0,AP(e).concat([r(1)]))}),s);o(kP(kP(kP({},t),e),l))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(p)}}};function BP(t){return BP="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},BP(t)}var RP=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function $P(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 zP(t){return function(t){if(Array.isArray(t))return HP(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 HP(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 HP(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 HP(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 FP(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?FP(Object(r),!0).forEach((function(e){UP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):FP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function UP(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 WP(t,e,r){return e&&function(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)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function qP(t){var e=function(t,e){if("object"!==BP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==BP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===BP(e)?e:String(e)}function YP(t,e){return YP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},YP(t,e)}function XP(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 KP(this,r)}}function KP(t,e){if(e&&("object"===BP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return GP(t)}function GP(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ZP(t){return ZP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ZP(t)}var JP=function(t){!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)}(r,et);var e=XP(r);function r(t,n){var o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var i=(o=e.call(this,t,n)).props,a=i.isActive,c=i.attributeName,u=i.from,l=i.to,s=i.steps,f=i.children,p=i.duration;if(o.handleStyleChange=o.handleStyleChange.bind(GP(o)),o.changeStyle=o.changeStyle.bind(GP(o)),!a||p<=0)return o.state={style:{}},"function"==typeof f&&(o.state={style:l}),KP(o);if(s&&s.length)o.state={style:s[0].style};else if(u){if("function"==typeof f)return o.state={style:u},KP(o);o.state={style:c?UP({},c,u):u}}else o.state={style:{}};return o}return WP(r,[{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(!(Qj(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?UP({},o,s):s};(o&&u[o]!==s||!o&&u!==s)&&this.setState(f)}this.runAnimation(VP(VP({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?UP({},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=LP(r,n,jP(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(zP(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(zP(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:i,easing:c}),i]);var d=pP(p,i,c),h=VP(VP(VP({},f.style),u),{},{transition:d});return[].concat(zP(t),[h,i,s]).filter(sP)}),[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=iP());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?UP({},n,o):o,p=pP(Object.keys(f),r,i);s.start([a,e,VP(VP({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children;t.begin;var r=t.duration;t.attributeName,t.easing;var n=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var o=$P(t,RP),i=tt.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===i||r<=0)return e;var c=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,i=e.className;return lt(t,VP(VP({},o),{},{style:VP(VP({},n),a),className:i}))};return 1===i?c(tt.only(e)):J.createElement("div",null,tt.map(e,(function(t){return c(t)})))}}]),r}();function QP(t){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 tA(){return tA=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},tA.apply(this,arguments)}function eA(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);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 rA(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 rA(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 rA(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 nA(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 oA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nA(Object(r),!0).forEach((function(e){iA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function iA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=QP(t)||!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:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}JP.displayName="Animate",JP.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},JP.propTypes={from:bj.oneOfType([bj.object,bj.string]),to:bj.oneOfType([bj.object,bj.string]),attributeName:bj.string,duration:bj.number,begin:bj.number,easing:bj.oneOfType([bj.string,bj.func]),steps:bj.arrayOf(bj.shape({duration:bj.number.isRequired,style:bj.object.isRequired,easing:bj.oneOfType([bj.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),bj.func]),properties:bj.arrayOf("string"),onAnimationEnd:bj.func})),children:bj.oneOfType([bj.node,bj.func]),isActive:bj.bool,canBegin:bj.bool,onAnimationEnd:bj.func,shouldReAnimate:bj.bool,onAnimationStart:bj.func,onAnimationReStart:bj.func},bj.object,bj.object,bj.object,bj.element,bj.object,bj.object,bj.object,bj.oneOfType([bj.array,bj.element]),bj.any;var aA=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},cA=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},uA={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},lA=function(t){var e=oA(oA({},uA),t),r=nt(),n=eA(it(-1),2),o=n[0],i=n[1];ct((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&i(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.width,l=e.height,s=e.radius,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,y=e.isAnimationActive,v=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||0===u||0===l)return null;var m=mn("recharts-rectangle",f);return v?J.createElement(JP,{canBegin:o>0,from:{width:u,height:l,x:a,y:c},to:{width:u,height:l,x:a,y:c},duration:d,animationEasing:p,isActive:v},(function(t){var n=t.width,i=t.height,a=t.x,c=t.y;return J.createElement(JP,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,isActive:y,easing:p},J.createElement("path",tA({},Ya(e,!0),{className:m,d:aA(a,c,n,i,s),ref:r})))})):J.createElement("path",tA({},Ya(e,!0),{className:m,d:aA(a,c,u,l,s)}))};function sA(){return sA=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},sA.apply(this,arguments)}var fA=function(t){var e=t.cx,r=t.cy,n=t.r,o=mn("recharts-dot",t.className);return e===+e&&r===+r&&n===+n?J.createElement("circle",sA({},Ya(t,!1),_a(t),{className:o,cx:e,cy:r,r:n})):null};function pA(t){return pA="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},pA(t)}var dA=["x","y","top","left","width","height","className"];function hA(){return hA=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},hA.apply(this,arguments)}function yA(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 vA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=pA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=pA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mA(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(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 gA,bA,wA,xA,OA=function(t,e,r,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(e,"h").concat(r)},SA=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,o=void 0===n?0:n,i=t.top,a=void 0===i?0:i,c=t.left,u=void 0===c?0:c,l=t.width,s=void 0===l?0:l,f=t.height,p=void 0===f?0:f,d=t.className,h=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yA(Object(r),!0).forEach((function(e){vA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:o,top:a,left:u,width:s,height:p},mA(t,dA));return ma(r)&&ma(o)&&ma(s)&&ma(p)&&ma(a)&&ma(u)?J.createElement("path",hA({},Ya(h,!0),{className:mn("recharts-cross",d),d:OA(r,o,s,p,a,u)})):null};var jA,PA,AA=function(){if(xA)return wA;xA=1;var t=bi(),e=function(){if(bA)return gA;bA=1;var t=Qf()(Object.getPrototypeOf,Object);return gA=t}(),r=wi(),n=Function.prototype,o=Object.prototype,i=n.toString,a=o.hasOwnProperty,c=i.call(Object);return wA=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var o=e(n);if(null===o)return!0;var u=a.call(o,"constructor")&&o.constructor;return"function"==typeof u&&u instanceof u&&i.call(u)==c}}(),MA=Ze(AA);var kA=Ze(function(){if(PA)return jA;PA=1;var t=bi(),e=wi();return jA=function(r){return!0===r||!1===r||e(r)&&"[object Boolean]"==t(r)}}());function EA(t){return EA="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},EA(t)}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 _A(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);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 TA(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 TA(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 TA(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 DA(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 IA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?DA(Object(r),!0).forEach((function(e){NA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):DA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function NA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=EA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=EA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==EA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var LA,BA,RA,$A,zA,HA,FA,VA,UA=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")},WA={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},qA=function(t){var e=IA(IA({},WA),t),r=nt(),n=_A(it(-1),2),o=n[0],i=n[1];ct((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&i(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.upperWidth,l=e.lowerWidth,s=e.height,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,y=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||s!==+s||0===u&&0===l||0===s)return null;var v=mn("recharts-trapezoid",f);return y?J.createElement(JP,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:u,lowerWidth:l,height:s,x:a,y:c},duration:d,animationEasing:p,isActive:y},(function(t){var n=t.upperWidth,i=t.lowerWidth,a=t.height,c=t.x,u=t.y;return J.createElement(JP,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,easing:p},J.createElement("path",CA({},Ya(e,!0),{className:v,d:UA(c,u,n,i,a),ref:r})))})):J.createElement("g",null,J.createElement("path",CA({},Ya(e,!0),{className:v,d:UA(a,c,u,l,s)})))},YA=["option","shapeType","propTransformer","activeClassName","isActive"];function XA(t){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)}function KA(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(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 GA(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 ZA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?GA(Object(r),!0).forEach((function(e){JA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):GA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function JA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=XA(t)||!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:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function QA(t,e){return ZA(ZA({},e),t)}function tM(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return J.createElement(lA,r);case"trapezoid":return J.createElement(qA,r);case"sector":return J.createElement(DS,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return J.createElement(Hu,r);break;default:return null}}function eM(t){var e,r=t.option,n=t.shapeType,o=t.propTransformer,i=void 0===o?QA:o,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,u=t.isActive,l=KA(t,YA);if(Q(r))e=lt(r,ZA(ZA({},l),function(t){return Q(t)?t.props:t}(r)));else if(Qi(r))e=r(l);else if(MA(r)&&!kA(r)){var s=i(r,l);e=J.createElement(tM,{shapeType:n,elementProps:s})}else{var f=l;e=J.createElement(tM,{shapeType:n,elementProps:f})}return u?J.createElement(wc,{className:c},e):e}function rM(t,e){return null!=e&&"trapezoids"in t.props}function nM(t,e){return null!=e&&"sectors"in t.props}function oM(t,e){return null!=e&&"points"in t.props}function iM(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 aM(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function cM(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function uM(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,o=function(t,e){var r;return rM(t,e)?r="trapezoids":nM(t,e)?r="sectors":oM(t,e)&&(r="points"),r}(r,e),i=function(t,e){var r,n;return rM(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:nM(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:oM(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=$w(i,t),c=r.props[o].filter((function(t){var n=function(t,e){var r;return rM(t,e)?r=iM:nM(t,e)?r=aM:oM(t,e)&&(r=cM),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 lM(){if($A)return RA;$A=1;var t=Rh(),e=1/0;return RA=function(r){return r?(r=t(r))===e||r===-1/0?17976931348623157e292*(r<0?-1:1):r==r?r:0:0===r?r:0}}function sM(){if(HA)return zA;HA=1;var t=function(){if(BA)return LA;BA=1;var t=Math.ceil,e=Math.max;return LA=function(r,n,o,i){for(var a=-1,c=e(t((n-r)/(o||1)),0),u=Array(c);c--;)u[i?c:++a]=r,r+=o;return u}}(),e=Bd(),r=lM();return zA=function(n){return function(o,i,a){return a&&"number"!=typeof a&&e(o,i,a)&&(i=a=void 0),o=r(o),void 0===i?(i=o,o=0):i=r(i),a=void 0===a?o<i?1:-1:r(a),t(o,i,a,n)}}}var fM=function(){if(VA)return FA;VA=1;var t=sM()();return FA=t}(),pM=Ze(fM);function dM(t){return dM="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},dM(t)}function hM(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 yM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hM(Object(r),!0).forEach((function(e){vM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=dM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=dM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==dM(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var mM=["Webkit","Moz","O","ms"];function gM(t){return gM="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},gM(t)}function bM(){return bM=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},bM.apply(this,arguments)}function wM(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 xM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wM(Object(r),!0).forEach((function(e){MM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function OM(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,kM(n.key),n)}}function SM(t,e,r){return e=PM(e),function(t,e){if(e&&("object"===gM(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)}(t,jM()?Reflect.construct(e,r||[],PM(t).constructor):e.apply(t,r))}function jM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(jM=function(){return!!t})()}function PM(t){return PM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},PM(t)}function AM(t,e){return AM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},AM(t,e)}function MM(t,e,r){return(e=kM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kM(t){var e=function(t,e){if("object"!=gM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=gM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gM(e)?e:e+""}var EM,CM,_M,TM,DM=function(t){return t.changedTouches&&!!t.changedTouches.length},IM=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),MM(r=SM(this,e,[t]),"handleDrag",(function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)})),MM(r,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),MM(r,"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:e,startIndex:o})})),r.detachDragEndListener()})),MM(r,"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),MM(r,"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),MM(r,"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),MM(r,"handleSlideDragStart",(function(t){var e=DM(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return 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&&AM(t,e)}(e,et),r=e,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,o=this.state.scaleValues,i=this.props,a=i.gap,c=i.data.length-1,u=Math.min(r,n),l=Math.max(r,n),s=e.getIndexInRange(o,u),f=e.getIndexInRange(o,l);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=vO(r[t],o,t);return Qi(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 d=this.getIndex({startX:n+p,endX:o+p});d.startIndex===l&&d.endIndex===s||!f||f(d),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=DM(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=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,o=e.endX,i=e.startX,a=this.state[n],c=this.props,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,d=c.data,h={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,u+l-s-a):y<0&&(y=Math.max(y,u-a)),h[n]=a+y;var v=this.getIndex(h),m=v.startIndex,g=v.endIndex;this.setState(MM(MM({},n,a+y),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=d.length-1,("startX"===n&&(o>i?m%p==0:g%p==0)||o<i&&g===t||"endX"===n&&(o>i?g%p==0:m%p==0)||o>i&&g===t)&&f(v))}))}},{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(MM({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.fill,a=t.stroke;return J.createElement("rect",{stroke:a,fill:i,x:e,y:r,width:n,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.data,a=t.children,c=t.padding,u=tt.only(a);return u?J.cloneElement(u,{x:e,y:r,width:n,height:o,margin:c,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(t,r){var n,o,i=this,a=this.props,c=a.y,u=a.travellerWidth,l=a.height,s=a.traveller,f=a.ariaLabel,p=a.data,d=a.startIndex,h=a.endIndex,y=Math.max(t,this.props.x),v=xM(xM({},Ya(this.props,!1)),{},{x:y,y:c,width:u,height:l}),m=f||"Min value: ".concat(null===(n=p[d])||void 0===n?void 0:n.name,", Max value: ").concat(null===(o=p[h])||void 0===o?void 0:o.name);return J.createElement(wc,{tabIndex:0,role:"slider","aria-label":m,"aria-valuenow":t,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(),i.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){i.setState({isTravellerFocused:!0})},onBlur:function(){i.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(s,v))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,o=r.height,i=r.stroke,a=r.travellerWidth,c=Math.min(t,e)+a,u=Math.max(Math.abs(e-t)-a,0);return J.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:c,y:n,width:u,height:o})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,o=t.height,i=t.travellerWidth,a=t.stroke,c=this.state,u=c.startX,l=c.endX,s={pointerEvents:"none",fill:a};return J.createElement(wc,{className:"recharts-brush-texts"},J.createElement(Ty,bM({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:n+o/2},s),this.getTextOfTick(e)),J.createElement(Ty,bM({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+i+5,y:n+o/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,o=t.x,i=t.y,a=t.width,c=t.height,u=t.alwaysShowText,l=this.state,s=l.startX,f=l.endX,p=l.isTextActive,d=l.isSlideMoving,h=l.isTravellerMoving,y=l.isTravellerFocused;if(!e||!e.length||!ma(o)||!ma(i)||!ma(a)||!ma(c)||a<=0||c<=0)return null;var v,m,g,b,w=mn("recharts-brush",r),x=1===J.Children.count(n),O=(m="none",g=(v="userSelect").replace(/(\w)/,(function(t){return t.toUpperCase()})),(b=mM.reduce((function(t,e){return yM(yM({},t),{},vM({},e+g,m))}),{}))[v]=m,b);return J.createElement(wc,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(p||d||h||y||u)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,o=t.height,i=t.stroke,a=Math.floor(r+o/2)-1;return J.createElement(J.Fragment,null,J.createElement("rect",{x:e,y:r,width:n,height:o,fill:i,stroke:"none"}),J.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),J.createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return J.isValidElement(t)?J.cloneElement(t,r):Qi(t)?t(r):e.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 xM({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=cv().domain(pM(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}}],n&&OM(r.prototype,n),o&&OM(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();MM(IM,"displayName","Brush"),MM(IM,"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 NM,LM,BM,RM,$M=function(){if(TM)return _M;TM=1;var t=Gl(),e=hp(),r=function(){if(CM)return EM;CM=1;var t=Ed();return EM=function(e,r){var n;return t(e,(function(t,e,o){return!(n=r(t,e,o))})),!!n}}(),n=yi(),o=Bd();return _M=function(i,a,c){var u=n(i)?t:r;return c&&o(i,a,c)&&(a=void 0),u(i,e(a,3))}}(),zM=Ze($M),HM=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e};var FM,VM,UM,WM,qM,YM,XM=function(){if(RM)return BM;RM=1;var t=function(){if(LM)return NM;LM=1;var t=Id();return NM=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n},NM}(),e=kd(),r=hp();return BM=function(n,o){var i={};return o=r(o,3),e(n,(function(e,r,n){t(i,r,o(e,r,n))})),i},BM}(),KM=Ze(XM);var GM=function(){if(YM)return qM;YM=1;var t=(VM||(VM=1,FM=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}),FM),e=function(){if(WM)return UM;WM=1;var t=Ed();return UM=function(e,r){var n=!0;return t(e,(function(t,e,o){return n=!!r(t,e,o)})),n}}(),r=hp(),n=yi(),o=Bd();return qM=function(i,a,c){var u=n(i)?t:e;return c&&o(i,a,c)&&(a=void 0),u(i,r(a,3))}}(),ZM=Ze(GM),JM=["x","y"];function QM(t){return QM="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},QM(t)}function tk(){return tk=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},tk.apply(this,arguments)}function ek(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 rk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ek(Object(r),!0).forEach((function(e){nk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ek(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function nk(t,e,r){return e=function(t){var e=function(t,e){if("object"!=QM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=QM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==QM(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ok(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(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 ik(t,e){var r=t.x,n=t.y,o=ok(t,JM),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 rk(rk(rk(rk(rk({},e),o),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function ak(t){return J.createElement(eM,tk({shapeType:"rectangle",propTransformer:ik,activeClassName:"recharts-active-bar"},t))}var ck,uk=["value","background"];function lk(t){return lk="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},lk(t)}function sk(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(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 fk(){return fk=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},fk.apply(this,arguments)}function pk(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 dk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pk(Object(r),!0).forEach((function(e){bk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hk(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,wk(n.key),n)}}function yk(t,e,r){return e=mk(e),function(t,e){if(e&&("object"===lk(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)}(t,vk()?Reflect.construct(e,r||[],mk(t).constructor):e.apply(t,r))}function vk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(vk=function(){return!!t})()}function mk(t){return mk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mk(t)}function gk(t,e){return gk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gk(t,e)}function bk(t,e,r){return(e=wk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wk(t){var e=function(t,e){if("object"!=lk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==lk(e)?e:e+""}var xk=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return bk(t=yk(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),bk(t,"id",wa("recharts-bar-")),bk(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),bk(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return 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&&gk(t,e)}(e,et),r=e,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,o=r.dataKey,i=r.activeIndex,a=r.activeBar,c=Ya(this.props,!1);return t&&t.map((function(t,r){var u=r===i,l=u?a:n,s=dk(dk(dk({},c),t),{},{isActive:u,option:l,index:r,dataKey:o,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return J.createElement(wc,fk({className:"recharts-bar-rectangle"},Ta(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value)}),J.createElement(ak,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevData;return J.createElement(JP,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var o=e.t,i=r.map((function(t,e){var r=l&&l[e];if(r){var i=Sa(r.x,t.x),a=Sa(r.y,t.y),c=Sa(r.width,t.width),u=Sa(r.height,t.height);return dk(dk({},t),{},{x:i(o),y:a(o),width:c(o),height:u(o)})}if("horizontal"===n){var s=Sa(0,t.height)(o);return dk(dk({},t),{},{y:t.y+t.height-s,height:s})}var f=Sa(0,t.width)(o);return dk(dk({},t),{},{width:f})}));return J.createElement(wc,null,t.renderRectanglesStatically(i))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&$w(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,o=e.activeIndex,i=Ya(this.props.background,!1);return r.map((function(e,r){e.value;var a=e.background,c=sk(e,uk);if(!a)return null;var u=dk(dk(dk(dk(dk({},c),{},{fill:"#eee"},a),i),Ta(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return J.createElement(ak,fk({key:"background-bar-".concat(r),option:t.props.background,isActive:r===o},u))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,o=r.xAxis,i=r.yAxis,a=r.layout,c=Fa(r.children,oO);if(!c)return null;var u="vertical"===a?n[0].height/2:n[0].width/2,l=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:vO(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return J.createElement(wc,s,c.map((function(t){return J.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:o,yAxis:i,layout:a,offset:u,dataPointFormatter:l})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,o=t.xAxis,i=t.yAxis,a=t.left,c=t.top,u=t.width,l=t.height,s=t.isAnimationActive,f=t.background,p=t.id;if(e||!r||!r.length)return null;var d=this.state.isAnimationFinished,h=mn("recharts-bar",n),y=o&&o.allowDataOverflow,v=i&&i.allowDataOverflow,m=y||v,g=Ki(p)?this.id:p;return J.createElement(wc,{className:h},y||v?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(g)},J.createElement("rect",{x:y?a:a-u/2,y:v?c:c-l/2,width:y?u:2*u,height:v?l:2*l}))):null,J.createElement(wc,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(g,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,g),(!s||d)&&jS.renderCallByParent(this.props,r))}}],o=[{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}}],n&&hk(r.prototype,n),o&&hk(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();function Ok(t){return Ok="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},Ok(t)}function Sk(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,Mk(n.key),n)}}function jk(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 Pk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jk(Object(r),!0).forEach((function(e){Ak(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ak(t,e,r){return(e=Mk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mk(t){var e=function(t,e){if("object"!=Ok(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ok(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ok(e)?e:e+""}ck=xk,bk(xk,"displayName","Bar"),bk(xk,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ph.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),bk(xk,"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,d=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(!d)return null;var h=e.layout,y=r.type.defaultProps,v=void 0!==y?dk(dk({},y),r.props):r.props,m=v.dataKey,g=v.children,b=v.minPointSize,w="horizontal"===h?a:i,x=l?w.scale.domain():null,O=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:w}),S=Fa(g,Kh),j=f.map((function(t,e){var n,f,p,y,v,g;l?n=function(t,e){if(!e||2!==e.length||!ma(e[0])||!ma(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(!ma(t[0])||t[0]<r)&&(o[0]=r),(!ma(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=vO(t,m),Array.isArray(n)||(n=[O,n]));var w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var o="number"==typeof r;return o?t(r,n):(o||("production"!==process.env.NODE_ENV?Ux(0,"minPointSize callback function received a value with type of ".concat(QM(r),". Currently only numbers are supported.")):Ux()),e)}}(b,ck.defaultProps.minPointSize)(n[1],e);if("horizontal"===h){var j,P=[a.scale(n[0]),a.scale(n[1])],A=P[0],M=P[1];f=EO({axis:i,ticks:c,bandSize:o,offset:d.offset,entry:t,index:e}),p=null!==(j=null!=M?M:A)&&void 0!==j?j:void 0,y=d.size;var k=A-M;if(v=Number.isNaN(k)?0:k,g={x:f,y:a.y,width:y,height:a.height},Math.abs(w)>0&&Math.abs(v)<Math.abs(w)){var E=ya(v||w)*(Math.abs(w)-Math.abs(v));p-=E,v+=E}}else{var C=[i.scale(n[0]),i.scale(n[1])],_=C[0],T=C[1];if(f=_,p=EO({axis:a,ticks:u,bandSize:o,offset:d.offset,entry:t,index:e}),y=T-_,v=d.size,g={x:i.x,y:p,width:i.width,height:v},Math.abs(w)>0&&Math.abs(y)<Math.abs(w))y+=ya(y||w)*(Math.abs(w)-Math.abs(y))}return dk(dk(dk({},t),{},{x:f,y:p,width:y,height:v,value:l?n:n[1],payload:t,background:g},S&&S[e]&&S[e].props),{},{tooltipPayload:[LO(r,t)],tooltipPosition:{x:f+y/2,y:p+v/2}})}));return dk({data:j,layout:h},p)}));var kk=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=!!Va(u,xk);return l.reduce((function(i,a){var u,l,p,d,h,y=e[a],v=y.orientation,m=y.domain,g=y.padding,b=void 0===g?{}:g,w=y.mirror,x=y.reversed,O="".concat(v).concat(w?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var S=m[1]-m[0],j=1/0,P=y.categoricalDomain.sort();if(P.forEach((function(t,e){e>0&&(j=Math.min((t||0)-(P[e-1]||0),j))})),Number.isFinite(j)){var A=j/S,M="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(u=A*M/2),"no-gap"===y.padding){var k=xa(t.barCategoryGap,A*M),E=A*M/2;u=E-k-(E-k)/M*k}}}l="xAxis"===n?[r.left+(b.left||0)+(u||0),r.left+r.width-(b.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(u||0),r.top+r.height-(b.bottom||0)-(u||0)]:y.range,x&&(l=[l[1],l[0]]);var C=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:iv(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:Em(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:cv(),realScaleType:"point"}:"category"===o?{scale:iv(),realScaleType:"band"}:{scale:Em(),realScaleType:"linear"};if(Ji(n)){var c="scale".concat(Mc(n));return{scale:(ww[c]||cv)(),realScaleType:ww[c]?c:"point"}}return Qi(n)?{scale:n}:{scale:cv(),realScaleType:"point"}}(y,o,f),_=C.scale,T=C.realScaleType;_.domain(m).range(l),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])-PO,i=Math.max(n[0],n[1])+PO,a=t(e[0]),c=t(e[r-1]);(a<o||a>i||c<o||c>i)&&t.domain([e[0],e[r-1]])}}(_);var D=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=zx(u,o,a);return t.domain([Dw(l),Mw(l)]),{niceTicks:l}}if(o&&"number"===n){var s=t.domain();return{niceTicks:Hx(s,o,a)}}return null}(_,Pk(Pk({},y),{},{realScaleType:T}));"xAxis"===n?(h="top"===v&&!w||"bottom"===v&&w,p=r.left,d=s[O]-h*y.height):"yAxis"===n&&(h="left"===v&&!w||"right"===v&&w,p=s[O]-h*y.width,d=r.top);var I=Pk(Pk(Pk({},y),D),{},{realScaleType:T,x:p,y:d,scale:_,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return I.bandSize=IO(I,D),y.hide||"xAxis"!==n?y.hide||(s[O]+=(h?-1:1)*I.width):s[O]+=(h?-1:1)*I.height,Pk(Pk({},i),{},Ak({},a,I))}),{})},Ek=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)}},Ck=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}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&&Sk(e.prototype,r),n&&Sk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();Ak(Ck,"EPS",1e-4);var _k=function(t){var e=Object.keys(t).reduce((function(e,r){return Pk(Pk({},e),{},Ak({},r,Ck.create(t[r])))}),{});return Pk(Pk({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return KM(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:o})}))},isInRange:function(t){return ZM(t,(function(t,r){return e[r].isInRange(t)}))}})};var Tk,Dk,Ik,Nk,Lk,Bk,Rk,$k,zk=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 Hk(){if(Bk)return Lk;Bk=1;var t=yp(),e=hp(),r=function(){if(Nk)return Ik;Nk=1;var t=lM();return Ik=function(e){var r=t(e),n=r%1;return r==r?n?r-n:r:0}}(),n=Math.max;return Lk=function(o,i,a){var c=null==o?0:o.length;if(!c)return-1;var u=null==a?0:r(a);return u<0&&(u=n(c+u,0)),t(o,e(i,3),u)},Lk}!function(){if($k)return Rk;$k=1;var t=function(){if(Dk)return Tk;Dk=1;var t=hp(),e=ep(),r=rp();return Tk=function(n){return function(o,i,a){var c=Object(o);if(!e(o)){var u=t(i,3);o=r(o),i=function(t){return u(c[t],t,c)}}var l=n(o,i,a);return l>-1?c[u?o[l]:l]:void 0}}}(),e=t(Hk());Rk=e}();var Fk=Ze(Li())((function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}}),(function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}));function Vk(t){return Vk="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},Vk(t)}var Uk=pt(void 0),Wk=pt(void 0),qk=pt(void 0),Yk=pt({}),Xk=pt(void 0),Kk=pt(0),Gk=pt(0),Zk=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,o=e.offset,i=t.clipPathId,a=t.children,c=t.width,u=t.height,l=Fk(o);return J.createElement(Uk.Provider,{value:r},J.createElement(Wk.Provider,{value:n},J.createElement(Yk.Provider,{value:o},J.createElement(qk.Provider,{value:l},J.createElement(Xk.Provider,{value:i},J.createElement(Kk.Provider,{value:u},J.createElement(Gk.Provider,{value:c},a)))))))};function Jk(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var Qk=function(t){var e=ft(Uk);null==e&&("production"!==process.env.NODE_ENV?Ux(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Ux());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?Ux(0,'Could not find xAxis by id "'.concat(t,'" [').concat(Vk(t),"]. ").concat(Jk(e))):Ux()),r},tE=function(t){var e=ft(Wk);null==e&&("production"!==process.env.NODE_ENV?Ux(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Ux());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?Ux(0,'Could not find yAxis by id "'.concat(t,'" [').concat(Vk(t),"]. ").concat(Jk(e))):Ux()),r},eE=function(){return ft(Gk)},rE=function(){return ft(Kk)};function nE(t){return nE="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},nE(t)}function oE(t,e,r){return e&&function(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,pE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function iE(t,e,r){return e=cE(e),function(t,e){if(e&&("object"===nE(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)}(t,aE()?Reflect.construct(e,r||[],cE(t).constructor):e.apply(t,r))}function aE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(aE=function(){return!!t})()}function cE(t){return cE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cE(t)}function uE(t,e){return uE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},uE(t,e)}function lE(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 sE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lE(Object(r),!0).forEach((function(e){fE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fE(t,e,r){return(e=pE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pE(t){var e=function(t,e){if("object"!=nE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=nE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nE(e)?e:e+""}function dE(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);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 hE(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 hE(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 hE(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 yE(){return yE=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},yE.apply(this,arguments)}function vE(t){var e=t.x,r=t.y,n=t.segment,o=t.xAxisId,i=t.yAxisId,a=t.shape,c=t.className,u=t.alwaysShow,l=ft(Xk),s=Qk(o),f=tE(i),p=ft(qk);if(!l||!p)return null;Oc(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=function(t,e,r,n,o,i,a,c,u){var l=o.x,s=o.y,f=o.width,p=o.height;if(r){var d=u.y,h=t.y.apply(d,{position:i});if(HM(u,"discard")&&!t.y.isInRange(h))return null;var y=[{x:l+f,y:h},{x:l,y:h}];return"left"===c?y.reverse():y}if(e){var v=u.x,m=t.x.apply(v,{position:i});if(HM(u,"discard")&&!t.x.isInRange(m))return null;var g=[{x:m,y:s+p},{x:m,y:s}];return"top"===a?g.reverse():g}if(n){var b=u.segment.map((function(e){return t.apply(e,{position:i})}));return HM(u,"discard")&&zM(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(_k({x:s.scale,y:f.scale}),ga(e),ga(r),n&&2===n.length,p,t.position,s.orientation,f.orientation,t);if(!d)return null;var h=dE(d,2),y=h[0],v=y.x,m=y.y,g=h[1],b=g.x,w=g.y,x=sE(sE({clipPath:HM(t,"hidden")?"url(#".concat(l,")"):void 0},Ya(t,!0)),{},{x1:v,y1:m,x2:b,y2:w});return J.createElement(wc,{className:mn("recharts-reference-line",c)},function(t,e){return J.isValidElement(t)?J.cloneElement(t,e):Qi(t)?t(e):J.createElement("line",yE({},e,{className:"recharts-reference-line-line"}))}(a,x),cS.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,o=t.y2;return Ek({x:e,y:r},{x:n,y:o})}({x1:v,y1:m,x2:b,y2:w})))}var mE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),iE(this,e,arguments)}return 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&&uE(t,e)}(e,J.Component),oE(e,[{key:"render",value:function(){return J.createElement(vE,this.props)}}])}();function gE(){return gE=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},gE.apply(this,arguments)}function bE(t){return bE="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},bE(t)}function wE(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 xE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wE(Object(r),!0).forEach((function(e){ME(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function OE(t,e,r){return e&&function(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,kE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function SE(t,e,r){return e=PE(e),function(t,e){if(e&&("object"===bE(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)}(t,jE()?Reflect.construct(e,r||[],PE(t).constructor):e.apply(t,r))}function jE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(jE=function(){return!!t})()}function PE(t){return PE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},PE(t)}function AE(t,e){return AE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},AE(t,e)}function ME(t,e,r){return(e=kE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kE(t){var e=function(t,e){if("object"!=bE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=bE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bE(e)?e:e+""}fE(mE,"displayName","ReferenceLine"),fE(mE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var EE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),SE(this,e,arguments)}return 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&&AE(t,e)}(e,J.Component),OE(e,[{key:"render",value:function(){var t=this.props,r=t.x,n=t.y,o=t.r,i=t.alwaysShow,a=t.clipPathId,c=ga(r),u=ga(n);if(Oc(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=_k({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return HM(t,"discard")&&!i.isInRange(a)?null:a}(this.props);if(!l)return null;var s=l.x,f=l.y,p=this.props,d=p.shape,h=p.className,y=xE(xE({clipPath:HM(this.props,"hidden")?"url(#".concat(a,")"):void 0},Ya(this.props,!0)),{},{cx:s,cy:f});return J.createElement(wc,{className:mn("recharts-reference-dot",h)},e.renderDot(d,y),cS.renderCallByParent(this.props,{x:s-o,y:f-o,width:2*o,height:2*o}))}}])}();function CE(){return CE=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},CE.apply(this,arguments)}function _E(t){return _E="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},_E(t)}function TE(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 DE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?TE(Object(r),!0).forEach((function(e){$E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):TE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function IE(t,e,r){return e&&function(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,zE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function NE(t,e,r){return e=BE(e),function(t,e){if(e&&("object"===_E(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)}(t,LE()?Reflect.construct(e,r||[],BE(t).constructor):e.apply(t,r))}function LE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(LE=function(){return!!t})()}function BE(t){return BE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},BE(t)}function RE(t,e){return RE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},RE(t,e)}function $E(t,e,r){return(e=zE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zE(t){var e=function(t,e){if("object"!=_E(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_E(e)?e:e+""}ME(EE,"displayName","ReferenceDot"),ME(EE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),ME(EE,"renderDot",(function(t,e){return J.isValidElement(t)?J.cloneElement(t,e):Qi(t)?t(e):J.createElement(fA,gE({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))}));var HE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),NE(this,e,arguments)}return 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&&RE(t,e)}(e,J.Component),IE(e,[{key:"render",value:function(){var t=this.props,r=t.x1,n=t.x2,o=t.y1,i=t.y2,a=t.className,c=t.alwaysShow,u=t.clipPathId;Oc(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=ga(r),s=ga(n),f=ga(o),p=ga(i),d=this.props.shape;if(!(l||s||f||p||d))return null;var h=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=_k({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},d={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!HM(o,"discard")||f.isInRange(p)&&f.isInRange(d)?Ek(p,d):null}(l,s,f,p,this.props);if(!h&&!d)return null;var y=HM(this.props,"hidden")?"url(#".concat(u,")"):void 0;return J.createElement(wc,{className:mn("recharts-reference-area",a)},e.renderRect(d,DE(DE({clipPath:y},Ya(this.props,!0)),h)),cS.renderCallByParent(this.props,h))}}])}();function FE(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)n.push(t[o]);return n}function VE(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 UE(t){return UE="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},UE(t)}function WE(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 qE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?WE(Object(r),!0).forEach((function(e){YE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):WE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function YE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=UE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=UE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==UE(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XE(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(ma(u)||ph.isSsr)return function(t,e){return FE(t,e+1)}(o,"number"==typeof u&&ma(u)?u:0);var p=[],d="top"===c||"bottom"===c?"width":"height",h=s&&"width"===d?ny(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(t,n){var o=Qi(l)?l(t.value,n):t.value;return"width"===d?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return zk(n,r)}(ny(o,{fontSize:e,letterSpacing:r}),h,f):ny(o,{fontSize:e,letterSpacing:r})[d]},v=o.length>=2?ya(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,d);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:FE(n,s)};var i,a=l,p=function(){return void 0===i&&(i=r(e,a)),i},d=e.coordinate,h=0===l||VE(t,d,p,f,u);h||(l=0,f=c,s+=1),h&&(f=d+t*(p()/2+o),l+=s)};s<=a.length;)if(i=p())return i.v;return[]}(v,m,y,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=qE(qE({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),VE(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+o),a[c-1]=qE(qE({},s),{},{isShow:!0}))}for(var d=i?c-1:c,h=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=qE(qE({},i),{},{tickCoord:s<0?i.coordinate-s*t:i.coordinate})}else a[e]=i=qE(qE({},i),{},{tickCoord:i.coordinate});VE(t,i.tickCoord,c,u,l)&&(u=i.tickCoord+t*(c()/2+o),a[e]=qE(qE({},i),{},{isShow:!0}))},y=0;y<d;y++)h(y);return a}(v,m,y,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=qE(qE({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else i[e]=l=qE(qE({},l),{},{tickCoord:l.coordinate});VE(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+o),i[e]=qE(qE({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return i}(v,m,y,o,a),p.filter((function(t){return t.isShow})))}$E(HE,"displayName","ReferenceArea"),$E(HE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),$E(HE,"renderRect",(function(t,e){return J.isValidElement(t)?J.cloneElement(t,e):Qi(t)?t(e):J.createElement(lA,CE({},e,{className:"recharts-reference-area-rect"}))}));var KE=["viewBox"],GE=["viewBox"],ZE=["ticks"];function JE(t){return JE="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},JE(t)}function QE(){return QE=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},QE.apply(this,arguments)}function tC(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 eC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tC(Object(r),!0).forEach((function(e){uC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function rC(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(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 nC(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,lC(n.key),n)}}function oC(t,e,r){return e=aC(e),function(t,e){if(e&&("object"===JE(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)}(t,iC()?Reflect.construct(e,r||[],aC(t).constructor):e.apply(t,r))}function iC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(iC=function(){return!!t})()}function aC(t){return aC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},aC(t)}function cC(t,e){return cC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cC(t,e)}function uC(t,e,r){return(e=lC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lC(t){var e=function(t,e){if("object"!=JE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=JE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==JE(e)?e:e+""}var sC=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=oC(this,e,[t])).state={fontSize:"",letterSpacing:""},r}return 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&&cC(t,e)}(e,dt),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=rC(t,KE),o=this.props,i=o.viewBox,a=rC(o,GE);return!Pa(r,i)||!Pa(n,a)||!Pa(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,d=c.tickSize,h=c.mirror,y=c.tickMargin,v=h?-1:1,m=t.tickSize||d,g=ma(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(o=l+ +!h*f)-v*m)-v*y,i=g;break;case"left":n=o=t.coordinate,i=(e=(r=u+ +!h*s)-v*m)-v*y,a=g;break;case"right":n=o=t.coordinate,i=(e=(r=u+ +h*s)+v*m)+v*y,a=g;break;default:e=r=t.coordinate,a=(n=(o=l+ +h*f)+v*m)+v*y,i=g}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 t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.orientation,a=t.mirror,c=t.axisLine,u=eC(eC(eC({},Ya(this.props,!1)),Ya(c,!1)),{},{fill:"none"});if("top"===i||"bottom"===i){var l=+("top"===i&&!a||"bottom"===i&&a);u=eC(eC({},u),{},{x1:e,y1:r+l*o,x2:e+n,y2:r+l*o})}else{var s=+("left"===i&&!a||"right"===i&&a);u=eC(eC({},u),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+o})}return J.createElement("line",QE({},u,{className:mn("recharts-cartesian-axis-line",qi(c,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var o=this,i=this.props,a=i.tickLine,c=i.stroke,u=i.tick,l=i.tickFormatter,s=i.unit,f=XE(eC(eC({},this.props),{},{ticks:t}),r,n),p=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=Ya(this.props,!1),y=Ya(u,!1),v=eC(eC({},h),{},{fill:"none"},Ya(a,!1)),m=f.map((function(t,r){var n=o.getTickLineCoord(t),i=n.line,m=n.tick,g=eC(eC(eC(eC({textAnchor:p,verticalAnchor:d},h),{},{stroke:"none",fill:c},y),m),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:l});return J.createElement(wc,QE({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},Ta(o.props,t,r)),a&&J.createElement("line",QE({},v,i,{className:mn("recharts-cartesian-axis-tick-line",qi(a,"className"))})),u&&e.renderTickItem(u,g,"".concat(Qi(l)?l(t.value,r):t.value).concat(s||"")))}));return J.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,o=e.height,i=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,u=c.ticks,l=rC(c,ZE),s=u;return Qi(i)&&(s=u&&u.length>0?i(this.props):i(l)),n<=0||o<=0||!s||!s.length?null:J.createElement(wc,{className:mn("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),cS.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(t,e,r){return J.isValidElement(t)?J.cloneElement(t,e):Qi(t)?t(e):J.createElement(Ty,QE({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&nC(r.prototype,n),o&&nC(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();uC(sC,"displayName","CartesianAxis"),uC(sC,"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 fC=["type","layout","connectNulls","ref"],pC=["key"];function dC(t){return dC="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},dC(t)}function hC(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(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 yC(){return yC=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},yC.apply(this,arguments)}function vC(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 mC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vC(Object(r),!0).forEach((function(e){PC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gC(t){return function(t){if(Array.isArray(t))return bC(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 bC(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 bC(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 bC(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 wC(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,AC(n.key),n)}}function xC(t,e,r){return e=SC(e),function(t,e){if(e&&("object"===dC(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)}(t,OC()?Reflect.construct(e,r||[],SC(t).constructor):e.apply(t,r))}function OC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(OC=function(){return!!t})()}function SC(t){return SC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},SC(t)}function jC(t,e){return jC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jC(t,e)}function PC(t,e,r){return(e=AC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function AC(t){var e=function(t,e){if("object"!=dC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=dC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==dC(e)?e:e+""}var MC=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return PC(t=xC(this,e,[].concat(n)),"state",{isAnimationFinished:!0,totalLength:0}),PC(t,"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),PC(t,"getStrokeDasharray",(function(r,n,o){var i=o.reduce((function(t,e){return t+e}));if(!i)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/i),c=r%i,u=n-r,l=[],s=0,f=0;s<o.length;f+=o[s],++s)if(f+o[s]>c){l=[].concat(gC(o.slice(0,s)),[c-f]);break}var p=l.length%2==0?[0,u]:[u];return[].concat(gC(e.repeat(o,a)),gC(l),p).map((function(t){return"".concat(t,"px")})).join(", ")})),PC(t,"id",wa("recharts-line-")),PC(t,"pathRef",(function(e){t.mainCurve=e})),PC(t,"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),PC(t,"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}return 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&&jC(t,e)}(e,et),r=e,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.points,o=r.xAxis,i=r.yAxis,a=r.layout,c=Fa(r.children,oO);if(!c)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:vO(t.payload,e)}},l={clipPath:t?"url(#clipPath-".concat(e,")"):null};return J.createElement(wc,l,c.map((function(t){return J.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:o,yAxis:i,layout:a,dataPointFormatter:u})})))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,i=o.dot,a=o.points,c=o.dataKey,u=Ya(this.props,!1),l=Ya(i,!0),s=a.map((function(t,r){var n=mC(mC(mC({key:"dot-".concat(r),r:3},u),l),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:r,payload:t.payload});return e.renderDotItem(i,n)})),f={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return J.createElement(wc,yC({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,r,n){var o=this.props,i=o.type,a=o.layout,c=o.connectNulls;o.ref;var u=hC(o,fC),l=mC(mC(mC({},Ya(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:i,layout:a,connectNulls:c});return J.createElement(WS,yC({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,o=n.points,i=n.strokeDasharray,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=n.animateNewValues,p=n.width,d=n.height,h=this.state,y=h.prevPoints,v=h.totalLength;return J.createElement(JP,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(y){var c=y.length/o.length,u=o.map((function(t,e){var r=Math.floor(e*c);if(y[r]){var n=y[r],o=Sa(n.x,t.x),i=Sa(n.y,t.y);return mC(mC({},t),{},{x:o(a),y:i(a)})}if(f){var u=Sa(2*p,t.x),l=Sa(d/2,t.y);return mC(mC({},t),{},{x:u(a),y:l(a)})}return mC(mC({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(u,t,e)}var l,s=Sa(0,v)(a);if(i){var h="".concat(i).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=r.getStrokeDasharray(s,v,h)}else l=r.generateSimpleStrokeDasharray(v,s);return r.renderCurveStatically(o,t,e,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,o=r.isAnimationActive,i=this.state,a=i.prevPoints,c=i.totalLength;return o&&n&&n.length&&(!a&&c>0||!$w(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,o=e.points,i=e.className,a=e.xAxis,c=e.yAxis,u=e.top,l=e.left,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!o||!o.length)return null;var h=this.state.isAnimationFinished,y=1===o.length,v=mn("recharts-line",i),m=a&&a.allowDataOverflow,g=c&&c.allowDataOverflow,b=m||g,w=Ki(d)?this.id:d,x=null!==(t=Ya(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,P=void 0===j?2:j,A=(qa(n)?n:{}).clipDot,M=void 0===A||A,k=2*S+P;return J.createElement(wc,{className:v},m||g?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(w)},J.createElement("rect",{x:m?l:l-s/2,y:g?u:u-f/2,width:m?s:2*s,height:g?f:2*f})),!M&&J.createElement("clipPath",{id:"clipPath-dots-".concat(w)},J.createElement("rect",{x:l-k/2,y:u-k/2,width:s+k,height:f+k}))):null,!y&&this.renderCurve(b,w),this.renderErrorBar(b,w),(y||n)&&this.renderDots(b,M,w),(!p||h)&&jS.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var r=t.length%2!=0?[].concat(gC(t),[0]):t,n=[],o=0;o<e;++o)n=[].concat(gC(n),gC(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(J.isValidElement(t))r=J.cloneElement(t,e);else if(Qi(t))r=t(e);else{var n=e.key,o=hC(e,pC),i=mn("recharts-line-dot","boolean"!=typeof t?t.className:"");r=J.createElement(fA,yC({key:n},o,{className:i}))}return r}}],n&&wC(r.prototype,n),o&&wC(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();PC(MC,"displayName","Line"),PC(MC,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ph.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),PC(MC,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,o=t.xAxisTicks,i=t.yAxisTicks,a=t.dataKey,c=t.bandSize,u=t.displayedData,l=t.offset,s=e.layout;return mC({points:u.map((function(t,e){var u=vO(t,a);return"horizontal"===s?{x:kO({axis:r,ticks:o,bandSize:c,entry:t,index:e}),y:Ki(u)?null:n.scale(u),value:u,payload:t}:{x:Ki(u)?null:r.scale(u),y:kO({axis:n,ticks:i,bandSize:c,entry:t,index:e}),value:u,payload:t}})),layout:s},l)}));var kC,EC=["layout","type","stroke","connectNulls","isRange","ref"],CC=["key"];function _C(t){return _C="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},_C(t)}function TC(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(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 DC(){return DC=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},DC.apply(this,arguments)}function IC(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 NC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?IC(Object(r),!0).forEach((function(e){HC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):IC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function LC(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,FC(n.key),n)}}function BC(t,e,r){return e=$C(e),function(t,e){if(e&&("object"===_C(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)}(t,RC()?Reflect.construct(e,r||[],$C(t).constructor):e.apply(t,r))}function RC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(RC=function(){return!!t})()}function $C(t){return $C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$C(t)}function zC(t,e){return zC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zC(t,e)}function HC(t,e,r){return(e=FC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function FC(t){var e=function(t,e){if("object"!=_C(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_C(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_C(e)?e:e+""}var VC=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return HC(t=BC(this,e,[].concat(n)),"state",{isAnimationFinished:!0}),HC(t,"id",wa("recharts-area-")),HC(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Qi(e)&&e()})),HC(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Qi(e)&&e()})),t}return 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&&zC(t,e)}(e,et),r=e,n=[{key:"renderDots",value:function(t,r,n){var o=this.props.isAnimationActive,i=this.state.isAnimationFinished;if(o&&!i)return null;var a=this.props,c=a.dot,u=a.points,l=a.dataKey,s=Ya(this.props,!1),f=Ya(c,!0),p=u.map((function(t,r){var n=NC(NC(NC({key:"dot-".concat(r),r:3},s),f),{},{index:r,cx:t.x,cy:t.y,dataKey:l,value:t.value,payload:t.payload,points:u});return e.renderDotItem(c,n)})),d={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return J.createElement(wc,DC({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,o=e.strokeWidth,i=n[0].x,a=n[n.length-1].x,c=t*Math.abs(i-a),u=Mw(n.map((function(t){return t.y||0})));return ma(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(Mw(r.map((function(t){return t.y||0}))),u)),ma(u)?J.createElement("rect",{x:i<a?i:i-c,y:0,width:c,height:Math.floor(u+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,o=e.strokeWidth,i=n[0].y,a=n[n.length-1].y,c=t*Math.abs(i-a),u=Mw(n.map((function(t){return t.x||0})));return ma(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(Mw(r.map((function(t){return t.x||0}))),u)),ma(u)?J.createElement("rect",{x:0,y:i<a?i:i-c,width:u+(o?parseInt("".concat(o),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,r,n){var o=this.props,i=o.layout,a=o.type,c=o.stroke,u=o.connectNulls,l=o.isRange;o.ref;var s=TC(o,EC);return J.createElement(wc,{clipPath:r?"url(#clipPath-".concat(n,")"):null},J.createElement(WS,DC({},Ya(s,!0),{points:t,connectNulls:u,type:a,baseLine:e,layout:i,stroke:"none",className:"recharts-area-area"})),"none"!==c&&J.createElement(WS,DC({},Ya(this.props,!1),{className:"recharts-area-curve",layout:i,type:a,connectNulls:u,fill:"none",points:t})),"none"!==c&&l&&J.createElement(WS,DC({},Ya(this.props,!1),{className:"recharts-area-curve",layout:i,type:a,connectNulls:u,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,o=n.points,i=n.baseLine,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=this.state,p=f.prevPoints,d=f.prevBaseLine;return J.createElement(JP,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"area-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(p){var c,u=p.length/o.length,l=o.map((function(t,e){var r=Math.floor(e*u);if(p[r]){var n=p[r],o=Sa(n.x,t.x),i=Sa(n.y,t.y);return NC(NC({},t),{},{x:o(a),y:i(a)})}return t}));return c=ma(i)&&"number"==typeof i?Sa(d,i)(a):Ki(i)||da(i)?Sa(d,0)(a):i.map((function(t,e){var r=Math.floor(e*u);if(d[r]){var n=d[r],o=Sa(n.x,t.x),i=Sa(n.y,t.y);return NC(NC({},t),{},{x:o(a),y:i(a)})}return t})),r.renderAreaStatically(l,c,t,e)}return J.createElement(wc,null,J.createElement("defs",null,J.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),J.createElement(wc,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(o,i,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,o=r.baseLine,i=r.isAnimationActive,a=this.state,c=a.prevPoints,u=a.prevBaseLine,l=a.totalLength;return i&&n&&n.length&&(!c&&l>0||!$w(c,n)||!$w(u,o))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,o,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,o=e.points,i=e.className,a=e.top,c=e.left,u=e.xAxis,l=e.yAxis,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!o||!o.length)return null;var h=this.state.isAnimationFinished,y=1===o.length,v=mn("recharts-area",i),m=u&&u.allowDataOverflow,g=l&&l.allowDataOverflow,b=m||g,w=Ki(d)?this.id:d,x=null!==(t=Ya(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,P=void 0===j?2:j,A=(qa(n)?n:{}).clipDot,M=void 0===A||A,k=2*S+P;return J.createElement(wc,{className:v},m||g?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(w)},J.createElement("rect",{x:m?c:c-s/2,y:g?a:a-f/2,width:m?s:2*s,height:g?f:2*f})),!M&&J.createElement("clipPath",{id:"clipPath-dots-".concat(w)},J.createElement("rect",{x:c-k/2,y:a-k/2,width:s+k,height:f+k}))):null,y?null:this.renderArea(b,w),(n||y)&&this.renderDots(b,M,w),(!p||h)&&jS.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],n&&LC(r.prototype,n),o&&LC(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();function UC(t){return UC="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},UC(t)}function WC(t,e,r){return e&&function(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,ZC(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function qC(t,e,r){return e=XC(e),function(t,e){if(e&&("object"===UC(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)}(t,YC()?Reflect.construct(e,r||[],XC(t).constructor):e.apply(t,r))}function YC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(YC=function(){return!!t})()}function XC(t){return XC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},XC(t)}function KC(t,e){return KC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},KC(t,e)}function GC(t,e,r){return(e=ZC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ZC(t){var e=function(t,e){if("object"!=UC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=UC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==UC(e)?e:e+""}function JC(){return JC=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},JC.apply(this,arguments)}function QC(t){var e=t.xAxisId,r=eE(),n=rE(),o=Qk(e);return null==o?null:J.createElement(sC,JC({},o,{className:mn("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return OO(t,!0)}}))}kC=VC,HC(VC,"displayName","Area"),HC(VC,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ph.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),HC(VC,"getBaseValue",(function(t,e,r,n){var o=t.layout,i=t.baseValue,a=e.props.baseValue,c=null!=a?a:i;if(ma(c)&&"number"==typeof c)return c;var u="horizontal"===o?n:r,l=u.scale.domain();if("number"===u.type){var s=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===c?l[0]:"dataMax"===c?l[1]:l[0]})),HC(VC,"getComposedData",(function(t){var e,r=t.props,n=t.item,o=t.xAxis,i=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,u=t.bandSize,l=t.dataKey,s=t.stackedData,f=t.dataStartIndex,p=t.displayedData,d=t.offset,h=r.layout,y=s&&s.length,v=kC.getBaseValue(r,n,o,i),m="horizontal"===h,g=!1,b=p.map((function(t,e){var r;y?r=s[f+e]:(r=vO(t,l),Array.isArray(r)?g=!0:r=[v,r]);var n=null==r[1]||y&&null==vO(t,l);return m?{x:kO({axis:o,ticks:a,bandSize:u,entry:t,index:e}),y:n?null:i.scale(r[1]),value:r,payload:t}:{x:n?null:o.scale(r[1]),y:kO({axis:i,ticks:c,bandSize:u,entry:t,index:e}),value:r,payload:t}}));return e=y||g?b.map((function(t){var e=Array.isArray(t.value)?t.value[0]:null;return m?{x:t.x,y:null!=e&&null!=t.y?i.scale(e):null}:{x:null!=e?o.scale(e):null,y:t.y}})):m?i.scale(v):o.scale(v),NC({points:b,baseLine:e,layout:h,isRange:g},d)})),HC(VC,"renderDotItem",(function(t,e){var r;if(J.isValidElement(t))r=J.cloneElement(t,e);else if(Qi(t))r=t(e);else{var n=mn("recharts-area-dot","boolean"!=typeof t?t.className:""),o=e.key,i=TC(e,CC);r=J.createElement(fA,DC({},i,{key:o,className:n}))}return r}));var t_=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),qC(this,e,arguments)}return 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&&KC(t,e)}(e,J.Component),WC(e,[{key:"render",value:function(){return J.createElement(QC,this.props)}}])}();function e_(t){return e_="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},e_(t)}function r_(t,e,r){return e&&function(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,u_(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function n_(t,e,r){return e=i_(e),function(t,e){if(e&&("object"===e_(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)}(t,o_()?Reflect.construct(e,r||[],i_(t).constructor):e.apply(t,r))}function o_(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(o_=function(){return!!t})()}function i_(t){return i_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},i_(t)}function a_(t,e){return a_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a_(t,e)}function c_(t,e,r){return(e=u_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u_(t){var e=function(t,e){if("object"!=e_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=e_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==e_(e)?e:e+""}function l_(){return l_=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},l_.apply(this,arguments)}GC(t_,"displayName","XAxis"),GC(t_,"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 s_=function(t){var e=t.yAxisId,r=eE(),n=rE(),o=tE(e);return null==o?null:J.createElement(sC,l_({},o,{className:mn("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return OO(t,!0)}}))},f_=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n_(this,e,arguments)}return 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&&a_(t,e)}(e,J.Component),r_(e,[{key:"render",value:function(){return J.createElement(s_,this.props)}}])}();function p_(t){return function(t){if(Array.isArray(t))return d_(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 d_(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 d_(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 d_(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}c_(f_,"displayName","YAxis"),c_(f_,"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 h_,y_=function(t,e,r,n,o){var i=Fa(t,mE),a=Fa(t,EE),c=[].concat(p_(i),p_(a)),u=Fa(t,HE),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===r&&HM(e.props,"extendDomain")&&ma(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"),d="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===r&&HM(e.props,"extendDomain")&&ma(e.props[p])&&ma(e.props[d])){var n=e.props[p],o=e.props[d];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 ma(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},v_={exports:{}};var m_=(h_||(h_=1,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,d=s.length;for(l=0;l<d;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}(v_)),v_.exports),g_=new(Ze(m_)),b_="recharts.syncMouseEvents";function w_(t){return w_="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},w_(t)}function x_(t,e,r){return e&&function(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,S_(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function O_(t,e,r){return(e=S_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S_(t){var e=function(t,e){if("object"!=w_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=w_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==w_(e)?e:e+""}var j_=function(){return x_((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),O_(this,"activeIndex",0),O_(this,"coordinateList",[]),O_(this,"layout","horizontal")}),[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,o=t.container,i=void 0===o?null:o,a=t.layout,c=void 0===a?null:a,u=t.offset,l=void 0===u?null:u,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=i?i:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f: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:"setIndex",value:function(t){this.activeIndex=t}},{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})}}}])}();function P_(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[VO(e,r,n,o),VO(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}function A_(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 P_(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=VO(c,u,l,f),d=VO(c,u,s,f);n=p.x,o=p.y,i=d.x,a=d.y}return[{x:n,y:o},{x:i,y:a}]}function M_(t){return M_="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},M_(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 E_(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){C_(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 C_(t,e,r){return e=function(t){var e=function(t,e){if("object"!=M_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=M_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==M_(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function __(t){var e,r,n,o=t.element,i=t.tooltipEventType,a=t.isActive,c=t.activeCoordinate,u=t.activePayload,l=t.offset,s=t.activeTooltipIndex,f=t.tooltipAxisBandSize,p=t.layout,d=t.chartName,h=null!==(e=o.props.cursor)&&void 0!==e?e:null===(r=o.type.defaultProps)||void 0===r?void 0:r.cursor;if(!o||!h||!a||!c||"ScatterChart"!==d&&"axis"!==i)return null;var y=WS;if("ScatterChart"===d)n=c,y=SA;else if("BarChart"===d)n=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}}(p,c,l,f),y=lA;else if("radial"===p){var v=P_(c),m=v.cx,g=v.cy,b=v.radius;n={cx:m,cy:g,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:b,outerRadius:b},y=DS}else n={points:A_(p,c,l)},y=WS;var w=E_(E_(E_(E_({stroke:"#ccc",pointerEvents:"none"},l),n),Ya(h,!1)),{},{payload:u,payloadIndex:s,className:mn("recharts-tooltip-cursor",h.className)});return Q(h)?lt(h,w):st(y,w)}var T_=["item"],D_=["children","className","width","height","style","compact","title","desc"];function I_(t){return I_="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},I_(t)}function N_(){return N_=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},N_.apply(this,arguments)}function L_(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);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)||U_(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 B_(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(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 R_(t,e,r){return e&&function(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,K_(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function $_(t,e,r){return e=H_(e),function(t,e){if(e&&("object"===I_(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)}(t,z_()?Reflect.construct(e,r||[],H_(t).constructor):e.apply(t,r))}function z_(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(z_=function(){return!!t})()}function H_(t){return H_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},H_(t)}function F_(t,e){return F_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},F_(t,e)}function V_(t){return function(t){if(Array.isArray(t))return W_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||U_(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 U_(t,e){if(t){if("string"==typeof t)return W_(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)?W_(t,e):void 0}}function W_(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 q_(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 Y_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?q_(Object(r),!0).forEach((function(e){X_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):q_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function X_(t,e,r){return(e=K_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function K_(t){var e=function(t,e){if("object"!=I_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=I_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==I_(e)?e:e+""}var G_={xAxis:["bottom","top"],yAxis:["left","right"]},Z_={width:"100%",height:"100%"},J_={x:0,y:0};function Q_(t){return t}var tT=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(V_(t),V_(r)):t}),[]);return i.length>0?i:t&&t.length&&ma(n)&&ma(o)?t.slice(n,o+1):[]};function eT(t){return"number"===t?[0,"auto"]:void 0}var rT=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=tT(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce((function(o,c){var u,l,s=null!==(u=c.props.data)&&void 0!==u?u:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?l=ja(void 0===s?a:s,i.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(V_(o),[LO(c,l)]):o}),[])},nT=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(ya(s-l)!==ya(f-s)){var d=[];if(ya(f-s)===ya(c[1]-c[0])){p=f;var h=s+c[1]-c[0];d[0]=Math.min(h,(h+l)/2),d[1]=Math.max(h,(h+l)/2)}else{p=l;var y=f+c[1]-c[0];d[0]=Math.min(s,(y+s)/2),d[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=d[0]&&t<=d[1]){i=n[u].index;break}}else{var m=Math.min(l,f),g=Math.max(l,f);if(t>(m+s)/2&&t<=(g+s)/2){i=n[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){i=r[b].index;break}return i}(i,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=rT(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 Y_(Y_(Y_({},n),VO(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var c=o.coordinate,u=n.angle;return Y_(Y_(Y_({},n),VO(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return J_}(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},oT=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=xO(l,o);return r.reduce((function(e,r){var d,h=void 0!==r.type.defaultProps?Y_(Y_({},r.type.defaultProps),r.props):r.props,y=h.type,v=h.dataKey,m=h.allowDataOverflow,g=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,O=h[i];if(e[O])return e;var S,j,P,A=tT(t.data,{graphicalItems:n.filter((function(t){var e;return(i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i])===O})),dataStartIndex:c,dataEndIndex:u}),M=A.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&&ma(n)&&ma(o))return!0}return!1})(h.domain,m,y)&&(S=DO(h.domain,null,m),!p||"number"!==y&&"auto"===b||(P=mO(A,v,"category")));var k=eT(y);if(!S||0===S.length){var E,C=null!==(E=h.domain)&&void 0!==E?E:k;if(v){if(S=mO(A,v,y),"category"===y&&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);g&&_?(j=S,S=pM(0,M)):g||(S=NO(C,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(V_(t),[e])}),[]))}else if("category"===y)S=g?S.filter((function(t){return""!==t&&!Ki(t)})):NO(C,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||Ki(e)?t:[].concat(V_(t),[e])}),[]);else if("number"===y){var T=function(t,e,r,n,o){var i=e.map((function(e){return bO(t,e,r,o,n)})).filter((function(t){return!Ki(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}(A,n.filter((function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===O&&(x||!o)})),v,o,l);T&&(S=T)}!p||"number"!==y&&"auto"===b||(P=mO(A,v,"category"))}else S=p?pM(0,M):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:CO(a[O].stackGroups,c,u):wO(A,n.filter((function(t){var e=i in t.props?t.props[i]:t.type.defaultProps[i],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===O&&(x||!r)})),y,l,!0);if("number"===y)S=y_(s,S,O,o,w),C&&(S=DO(C,S,m));else if("category"===y&&C){var D=C;S.every((function(t){return D.indexOf(t)>=0}))&&(S=D)}}return Y_(Y_({},e),{},X_({},O,Y_(Y_({},h),{},{axisType:o,domain:S,categoricalDomain:P,duplicateDomain:j,originalDomain:null!==(d=h.domain)&&void 0!==d?d:k,isCategorical:p,layout:l})))}),{})},iT=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=Fa(l,o),p={};return f&&f.length?p=oT(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=tT(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,d=xO(l,o),h=-1;return r.reduce((function(t,e){var y,v=(void 0!==e.type.defaultProps?Y_(Y_({},e.type.defaultProps),e.props):e.props)[i],m=eT("number");return t[v]?t:(h++,d?y=pM(0,p):a&&a[v]&&a[v].hasStack?(y=CO(a[v].stackGroups,c,u),y=y_(s,y,v,o)):(y=DO(m,wO(f,r.filter((function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===v&&!o})),"number",l),n.defaultProps.allowDataOverflow),y=y_(s,y,v,o)),Y_(Y_({},t),{},X_({},v,Y_(Y_({axisType:o},n.defaultProps),{},{hide:!0,orientation:qi(G_,"".concat(o,".").concat(h%2),null),domain:y,originalDomain:m,isCategorical:d,layout:l}))))}),{})}(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},aT=function(t){var e=t.children,r=t.defaultShowTooltip,n=Va(e,IM),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)}},cT=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"}},uT=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=Va(l,IM),p=Va(l,Pd),d=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:Y_(Y_({},t),{},X_({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),h=Object.keys(o).reduce((function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:Y_(Y_({},t),{},X_({},n,qi(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=Y_(Y_({},h),d),v=y.bottom;f&&(y.bottom+=f.props.height||IM.defaultProps.height),p&&e&&(y=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,c=i-(a.left||0)-(a.right||0),u=lO({children:o,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,p=u.align,d=u.verticalAlign,h=u.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==p&&ma(t[p]))return hO(hO({},t),{},yO({},p,t[p]+(s||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&ma(t[d]))return hO(hO({},t),{},yO({},d,t[d]+(f||0)))}return t}(y,0,r,e));var m=c-y.left-y.right,g=u-y.top-y.bottom;return Y_(Y_({brushBottom:v},y),{},{width:Math.max(m,0),height:Math.max(g,0)})},lT=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},sT=function(t){var e=t.chartName,r=t.GraphicalChild,n=t.defaultTooltipEventType,o=void 0===n?"axis":n,i=t.validateTooltipEventTypes,a=void 0===i?["axis"]:i,c=t.axisComponents,u=t.legendContent,l=t.formatAxisMap,s=t.defaultProps,f=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,u=e.dataEndIndex,l=t.barSize,s=t.layout,f=t.barGap,p=t.barCategoryGap,d=t.maxBarSize,h=cT(s),y=h.numericAxisName,v=h.cateAxisName,m=function(t){return!(!t||!t.length)&&t.some((function(t){var e=Ra(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),g=[];return r.forEach((function(r,h){var b=tT(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:u}),w=void 0!==r.type.defaultProps?Y_(Y_({},r.type.defaultProps),r.props):r.props,x=w.dataKey,O=w.maxBarSize,S=w["".concat(y,"Id")],j=w["".concat(v,"Id")],P=c.reduce((function(t,n){var o,i,a=e["".concat(n.axisType,"Map")],c=w["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?Ux(0,"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:"")):Ux());var u=a[c];return Y_(Y_({},t),{},X_(X_({},n.axisType,u),"".concat(n.axisType,"Ticks"),OO(u)))}),{}),A=P[v],M=P["".concat(v,"Ticks")],k=n&&n[S]&&n[S].hasStack&&function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?hO(hO({},t.type.defaultProps),t.props):t.props).stackId;if(ga(n)){var o=e[n];if(o){var i=o.items.indexOf(t);return i>=0?o.stackedData[i]:null}}return null}(r,n[S].stackGroups),E=Ra(r.type).indexOf("Bar")>=0,C=IO(A,M),_=[],T=m&&function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),c=0,u=a.length;c<u;c++)for(var l=o[a[c]].stackGroups,s=Object.keys(l),f=0,p=s.length;f<p;f++){var d=l[s[f]],h=d.items,y=d.cateAxisId,v=h.filter((function(t){return Ra(t.type).indexOf("Bar")>=0}));if(v&&v.length){var m=v[0].type.defaultProps,g=void 0!==m?hO(hO({},m),v[0].props):v[0].props,b=g.barSize,w=g[y];i[w]||(i[w]=[]);var x=Ki(b)?e:b;i[w].push({item:v[0],stackList:v.slice(1),barSize:Ki(x)?void 0:xa(x,r,0)})}}return i}({barSize:l,stackGroups:n,totalSize:lT(P,v)});if(E){var D,I,N=Ki(O)?d:O,L=null!==(D=null!==(I=IO(A,M,!0))&&void 0!==I?I:N)&&void 0!==D?D:0;_=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=xa(e,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/c,d=i.reduce((function(t,e){return t+e.barSize||0}),0);(d+=(c-1)*l)>=n&&(d-=(c-1)*l,l=0),d>=n&&p>0&&(f=!0,d=c*(p*=.9));var h={offset:((n-d)/2|0)-l,size:0};u=i.reduce((function(t,e){var r={item:e.item,position:{offset:h.offset+h.size+l,size:f?p:e.barSize}},n=[].concat(fO(t),[r]);return h=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:h})})),n}),s)}else{var y=xa(r,n,0,!0);n-2*y-(c-1)*l<=0&&(l=0);var v=(n-2*y-(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(fO(t),[{item:e.item,position:{offset:y+(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:f,barCategoryGap:p,bandSize:L!==C?L:C,sizeList:T[j],maxBarSize:N}),L!==C&&(_=_.map((function(t){return Y_(Y_({},t),{},{position:Y_(Y_({},t.position),{},{offset:t.position.offset-L/2})})})))}var B,R,$=r&&r.type&&r.type.getComposedData;$&&g.push({props:Y_(Y_({},$(Y_(Y_({},P),{},{displayedData:b,props:t,dataKey:x,item:r,bandSize:C,barPosition:_,offset:o,stackedData:k,layout:s,dataStartIndex:a,dataEndIndex:u}))),{},X_(X_(X_({key:r.key||"item-".concat(h)},y,P[y]),v,P[v]),"animationId",i)),childIndex:(B=r,R=t.children,Ha(R).indexOf(B)),item:r})})),g},p=function(t,n){var o=t.props,i=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!Ua({props:o}))return null;var s=o.children,p=o.layout,d=o.stackOffset,h=o.data,y=o.reverseStackOrder,v=cT(p),m=v.numericAxisName,g=v.cateAxisName,b=Fa(s,r),w=function(t,e,r,n,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce((function(t,e){var o,i=null!==(o=e.type)&&void 0!==o&&o.defaultProps?hO(hO({},e.type.defaultProps),e.props):e.props,a=i.stackId;if(i.hide)return t;var c=i[r],u=t[c]||{hasStack:!1,stackGroups:{}};if(ga(a)){var l=u.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};l.items.push(e),u.hasStack=!0,u.stackGroups[a]=l}else u.stackGroups[wa("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return hO(hO({},t),{},yO({},c,u))}),{});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 hO(hO({},e),{},yO({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:MO(t,a.items,o)}))}),{})),hO(hO({},e),{},yO({},i,c))}),{})}(h,b,"".concat(m,"Id"),"".concat(g,"Id"),d,y),x=c.reduce((function(t,e){var r="".concat(e.axisType,"Map");return Y_(Y_({},t),{},X_({},r,iT(o,Y_(Y_({},e),{},{graphicalItems:b,stackGroups:e.axisType===m&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),O=uT(Y_(Y_({},x),{},{props:o,graphicalItems:b}),null==n?void 0:n.legendBBox);Object.keys(x).forEach((function(t){x[t]=l(o,x[t],O,t.replace("Map",""),e)}));var S,j,P=x["".concat(g,"Map")],A=(S=Oa(P),{tooltipTicks:j=OO(S,!1,!0),orderedTooltipTicks:$d(j,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:IO(S,j)}),M=f(o,Y_(Y_({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:u,graphicalItems:b,stackGroups:w,offset:O}));return Y_(Y_({formattedGraphicalItems:M,graphicalItems:b,offset:O,stackGroups:w},A),x)},d=function(t){function r(t){var n,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),X_(i=$_(this,r,[t]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),X_(i,"accessibilityManager",new j_),X_(i,"handleLegendBBoxUpdate",(function(t){if(t){var e=i.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;i.setState(Y_({legendBBox:t},p({props:i.props,dataStartIndex:r,dataEndIndex:n,updateId:o},Y_(Y_({},i.state),{},{legendBBox:t}))))}})),X_(i,"handleReceiveSyncEvent",(function(t,e,r){if(i.props.syncId===t){if(r===i.eventEmitterSymbol&&"function"!=typeof i.props.syncMethod)return;i.applySyncEvent(e)}})),X_(i,"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==i.state.dataStartIndex||r!==i.state.dataEndIndex){var n=i.state.updateId;i.setState((function(){return Y_({dataStartIndex:e,dataEndIndex:r},p({props:i.props,dataStartIndex:e,dataEndIndex:r,updateId:n},i.state))})),i.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),X_(i,"handleMouseEnter",(function(t){var e=i.getMouseInfo(t);if(e){var r=Y_(Y_({},e),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseEnter;Qi(n)&&n(r,t)}})),X_(i,"triggeredAfterMouseMove",(function(t){var e=i.getMouseInfo(t),r=e?Y_(Y_({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseMove;Qi(n)&&n(r,t)})),X_(i,"handleItemMouseEnter",(function(t){i.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),X_(i,"handleItemMouseLeave",(function(){i.setState((function(){return{isTooltipActive:!1}}))})),X_(i,"handleMouseMove",(function(t){t.persist(),i.throttleTriggeredAfterMouseMove(t)})),X_(i,"handleMouseLeave",(function(t){i.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};i.setState(e),i.triggerSyncEvent(e);var r=i.props.onMouseLeave;Qi(r)&&r(e,t)})),X_(i,"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&Ba[e]?Ba[e]:null}(t),n=qi(i.props,"".concat(r));r&&Qi(n)&&n(null!==(e=/.*touch.*/i.test(r)?i.getMouseInfo(t.changedTouches[0]):i.getMouseInfo(t))&&void 0!==e?e:{},t)})),X_(i,"handleClick",(function(t){var e=i.getMouseInfo(t);if(e){var r=Y_(Y_({},e),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onClick;Qi(n)&&n(r,t)}})),X_(i,"handleMouseDown",(function(t){var e=i.props.onMouseDown;Qi(e)&&e(i.getMouseInfo(t),t)})),X_(i,"handleMouseUp",(function(t){var e=i.props.onMouseUp;Qi(e)&&e(i.getMouseInfo(t),t)})),X_(i,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),X_(i,"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseDown(t.changedTouches[0])})),X_(i,"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseUp(t.changedTouches[0])})),X_(i,"triggerSyncEvent",(function(t){void 0!==i.props.syncId&&g_.emit(b_,i.props.syncId,t,i.eventEmitterSymbol)})),X_(i,"applySyncEvent",(function(t){var e=i.props,r=e.layout,n=e.syncMethod,o=i.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)i.setState(Y_({dataStartIndex:a,dataEndIndex:c},p({props:i.props,dataStartIndex:a,dataEndIndex:c,updateId:o},i.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=i.state,d=f.offset,h=f.tooltipTicks;if(!d)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 v=Y_(Y_({},d),{},{x:d.left,y:d.top}),m=Math.min(u,v.x+v.width),g=Math.min(l,v.y+v.height),b=h[s]&&h[s].value,w=rT(i.state,i.props.data,s),x=h[s]?{x:"horizontal"===r?h[s].coordinate:m,y:"horizontal"===r?g:h[s].coordinate}:J_;i.setState(Y_(Y_({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else i.setState(t)})),X_(i,"renderCursor",(function(t){var r,n=i.state,o=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,u=n.offset,l=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=i.getTooltipEventType(),p=null!==(r=t.props.active)&&void 0!==r?r:o,d=i.props.layout,h=t.key||"_recharts-cursor";return J.createElement(__,{key:h,activeCoordinate:a,activePayload:c,activeTooltipIndex:l,chartName:e,element:t,isActive:p,layout:d,offset:u,tooltipAxisBandSize:s,tooltipEventType:f})})),X_(i,"renderPolarAxis",(function(t,e,r){var n=qi(t,"type.axisType"),o=qi(i.state,"".concat(n,"Map")),a=t.type.defaultProps,c=void 0!==a?Y_(Y_({},a),t.props):t.props,u=o&&o[c["".concat(n,"Id")]];return lt(t,Y_(Y_({},u),{},{className:mn(n,u.className),key:t.key||"".concat(e,"-").concat(r),ticks:OO(u,!0)}))})),X_(i,"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,o=e.polarRadius,a=i.state,c=a.radiusAxisMap,u=a.angleAxisMap,l=Oa(c),s=Oa(u),f=s.cx,p=s.cy,d=s.innerRadius,h=s.outerRadius;return lt(t,{polarAngles:Array.isArray(n)?n:OO(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(o)?o:OO(l,!0).map((function(t){return t.coordinate})),cx:f,cy:p,innerRadius:d,outerRadius:h,key:t.key||"polar-grid",radialLines:r})})),X_(i,"renderLegend",(function(){var t=i.state.formattedGraphicalItems,e=i.props,r=e.children,n=e.width,o=e.height,a=i.props.margin||{},c=n-(a.left||0)-(a.right||0),l=lO({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:u});if(!l)return null;var s=l.item,f=B_(l,T_);return lt(s,Y_(Y_({},f),{},{chartWidth:n,chartHeight:o,margin:a,onBBoxUpdate:i.handleLegendBBoxUpdate}))})),X_(i,"renderTooltip",(function(){var t,e=i.props,r=e.children,n=e.accessibilityLayer,o=Va(r,Lh);if(!o)return null;var a=i.state,c=a.isTooltipActive,u=a.activeCoordinate,l=a.activePayload,s=a.activeLabel,f=a.offset,p=null!==(t=o.props.active)&&void 0!==t?t:c;return lt(o,{viewBox:Y_(Y_({},f),{},{x:f.left,y:f.top}),active:p,label:s,payload:p?l:[],coordinate:u,accessibilityLayer:n})})),X_(i,"renderBrush",(function(t){var e=i.props,r=e.margin,n=e.data,o=i.state,a=o.offset,c=o.dataStartIndex,u=o.dataEndIndex,l=o.updateId;return lt(t,{key:t.key||"_recharts-brush",onChange:jO(i.handleBrushChange,t.props.onChange),data:n,x:ma(t.props.x)?t.props.x:a.left,y:ma(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:ma(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),X_(i,"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=i.clipPathId,o=i.state,a=o.xAxisMap,c=o.yAxisMap,u=o.offset,l=t.type.defaultProps||{},s=t.props,f=s.xAxisId,p=void 0===f?l.xAxisId:f,d=s.yAxisId,h=void 0===d?l.yAxisId:d;return lt(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[p],yAxis:c[h],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:n})})),X_(i,"renderActivePoints",(function(t){var e=t.item,n=t.activePoint,o=t.basePoint,i=t.childIndex,a=t.isRange,c=[],u=e.props.key,l=void 0!==e.item.type.defaultProps?Y_(Y_({},e.item.type.defaultProps),e.item.props):e.item.props,s=l.activeDot,f=Y_(Y_({index:i,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:gO(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},Ya(s,!1)),_a(s));return c.push(r.renderActiveDot(s,f,"".concat(u,"-activePoint-").concat(i))),o?c.push(r.renderActiveDot(s,Y_(Y_({},f),{},{cx:o.x,cy:o.y}),"".concat(u,"-basePoint-").concat(i))):a&&c.push(null),c})),X_(i,"renderGraphicChild",(function(t,e,r){var n=i.filterFormatItem(t,e,r);if(!n)return null;var o=i.getTooltipEventType(),a=i.state,c=a.isTooltipActive,u=a.tooltipAxis,l=a.activeTooltipIndex,s=a.activeLabel,f=Va(i.props.children,Lh),p=n.props,d=p.points,h=p.isRange,y=p.baseLine,v=void 0!==n.item.type.defaultProps?Y_(Y_({},n.item.type.defaultProps),n.item.props):n.item.props,m=v.activeDot,g=v.hide,b=v.activeBar,w=v.activeShape,x=Boolean(!g&&c&&f&&(m||b||w)),O={};"axis"!==o&&f&&"click"===f.props.trigger?O={onClick:jO(i.handleItemMouseEnter,t.props.onClick)}:"axis"!==o&&(O={onMouseLeave:jO(i.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:jO(i.handleItemMouseEnter,t.props.onMouseEnter)});var S=lt(t,Y_(Y_({},n.props),O));if(x){if(!(l>=0)){var j,P=(null!==(j=i.getItemByXY(i.state.activeCoordinate))&&void 0!==j?j:{graphicalItem:S}).graphicalItem,A=P.item,M=void 0===A?t:A,k=P.childIndex,E=Y_(Y_(Y_({},n.props),O),{},{activeIndex:k});return[lt(M,E),null,null]}var C,_;if(u.dataKey&&!u.allowDuplicatedCategory){var T="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());C=ja(d,T,s),_=h&&y&&ja(y,T,s)}else C=null==d?void 0:d[l],_=h&&y&&y[l];if(w||b){var D=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[lt(t,Y_(Y_(Y_({},n.props),O),{},{activeIndex:D})),null,null]}if(!Ki(C))return[S].concat(V_(i.renderActivePoints({item:n,activePoint:C,basePoint:_,childIndex:l,isRange:h})))}return h?[S,null,null]:[S,null]})),X_(i,"renderCustomized",(function(t,e,r){return lt(t,Y_(Y_({key:"recharts-customized-".concat(r)},i.props),i.state))})),X_(i,"renderMap",{CartesianGrid:{handler:Q_,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:Q_},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:Q_},YAxis:{handler:Q_},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:wa("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=Hh(i.triggeredAfterMouseMove,null!==(o=t.throttleDelay)&&void 0!==o?o:1e3/60),i.state={},i}return 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&&F_(t,e)}(r,dt),R_(r,[{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}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,o=t.layout,i=Va(e,Lh);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length-1)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=rT(this.state,r,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===o?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=Y_(Y_({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(d),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;var r,n;(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}});return null}},{key:"componentDidUpdate",value:function(t){Xa([Va(t.children,Lh)],[Va(this.props.children,Lh)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=Va(this.props.children,Lh);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return a.indexOf(e)>=0?e:o}return o}},{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=Oa(l).scale,p=Oa(s).scale,d=f&&f.invert?f.invert(i.chartX):null,h=p&&p.invert?p.invert(i.chartY):null;return Y_(Y_({},i),{},{xValue:d,yValue:h})}var y=nT(this.state,this.props.data,this.props.layout,c);return y?Y_(Y_({},i),y):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=Oa(u);return qO({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=Va(t,Lh),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}),Y_(Y_({},_a(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){g_.on(b_,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){g_.removeListener(b_,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===Ra(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,o=e.height,i=e.width;return J.createElement("defs",null,J.createElement("clipPath",{id:t},J.createElement("rect",{x:r,y:n,height:o,width:i})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=L_(e,2),n=r[0],o=r[1];return Y_(Y_({},t),{},X_({},n,o.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=L_(e,2),n=r[0],o=r[1];return Y_(Y_({},t),{},X_({},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=void 0!==u.type.defaultProps?Y_(Y_({},u.type.defaultProps),u.props):u.props,s=Ra(u.type);if("Bar"===s){var f=(c.data||[]).find((function(e){return cA(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(c.data||[]).find((function(e){return qO(t,e)}));if(p)return{graphicalItem:a,payload:p}}else if(rM(a,n)||nM(a,n)||oM(a,n)){var d=uM({graphicalItem:a,activeTooltipItem:n,itemData:l.data}),h=void 0===l.activeIndex?d:l.activeIndex;return{graphicalItem:Y_(Y_({},a),{},{childIndex:h}),payload:oM(a,n)?l.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var t=this;if(!Ua(this))return null;var e,r,n=this.props,o=n.children,i=n.className,a=n.width,c=n.height,u=n.style,l=n.compact,s=n.title,f=n.desc,p=B_(n,D_),d=Ya(p,!1);if(l)return J.createElement(Zk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},J.createElement(tc,N_({},d,{width:a,height:c,title:s,desc:f}),this.renderClipPath(),Ga(o,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,d.role=null!==(r=this.props.role)&&void 0!==r?r:"application",d.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},d.onFocus=function(){t.accessibilityManager.focus()});var h=this.parseEventsOfWrapper();return J.createElement(Zk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},J.createElement("div",N_({className:mn("recharts-wrapper",i),style:Y_({position:"relative",cursor:"default",width:a,height:c},u)},h,{ref:function(e){t.container=e}}),J.createElement(tc,N_({},d,{width:a,height:c,title:s,desc:f,style:Z_}),this.renderClipPath(),Ga(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();return X_(d,"displayName",e),X_(d,"defaultProps",Y_({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},s)),X_(d,"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 d=aT(t);return Y_(Y_(Y_({},d),{},{updateId:0},p(Y_(Y_({props:t},d),{},{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||!Pa(l,e.prevMargin)){var h=aT(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=Y_(Y_({},nT(e,n,c)),{},{updateId:e.updateId+1}),m=Y_(Y_(Y_({},h),y),v);return Y_(Y_(Y_({},m),p(Y_({props:t},m),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(!Xa(o,e.prevChildren)){var g,b,w,x,O=Va(o,IM),S=O&&null!==(g=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==g?g:s,j=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,P=S!==s||j!==f,A=!Ki(n)&&!P?e.updateId:e.updateId+1;return Y_(Y_({updateId:A},p(Y_(Y_({props:t},e),{},{updateId:A,dataStartIndex:S,dataEndIndex:j}),e)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:j})}return null})),X_(d,"renderActiveDot",(function(t,e,r){var n;return n=Q(t)?lt(t,e):Qi(t)?t(e):J.createElement(fA,e),J.createElement(wc,{className:"recharts-active-dot",key:r},n)})),function(t){return J.createElement(d,t)}},fT=sT({chartName:"LineChart",GraphicalChild:MC,axisComponents:[{axisType:"xAxis",AxisComp:t_},{axisType:"yAxis",AxisComp:f_}],formatAxisMap:kk}),pT=sT({chartName:"AreaChart",GraphicalChild:VC,axisComponents:[{axisType:"xAxis",AxisComp:t_},{axisType:"yAxis",AxisComp:f_}],formatAxisMap:kk});const dT=({chartId:n,formatter:o,labelFormatter:i,payload:a,cx:c,cy:u})=>{const l=document.getElementById(n)?.clientWidth||0,s=100;return c<20||l-c<20?e(r,{}):t("svg",{x:c-50,y:u-60,width:s,height:68,viewBox:"0 0 100 68",xmlns:"http://www.w3.org/2000/svg",children:[i&&t(r,{children:[e("rect",{fill:"white",width:"98",height:"45",stroke:Pr.coolElegance(),strokeWidth:"1",rx:"7",ry:"7",className:"shadow"}),e("text",{y:"14",x:"50%",fontSize:10,dominantBaseline:"middle",textAnchor:"middle",children:i(0,[{payload:a}])}),e("text",{y:"30",x:"50%",fontSize:11,dominantBaseline:"middle",textAnchor:"middle",fontWeight:"bold",children:o?o(a.value):a.value}),e("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"30",opacity:"0.7",children:e("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:Pr.coolElegance(),transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})}),e("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"28",children:e("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:"white",transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})})]}),e("rect",{x:43,y:"52",width:14,height:14,rx:7,fill:"white",stroke:Pr.coolElegance(),strokeWidth:"2"})]})},hT=({data:r,dataKey:n,width:o="100%",height:i="100%",areaType:a="linear",isAnimated:c=!1,formatter:u,labelFormatter:l,sampleRate:s,style:f})=>{const{isNetGain:p}=br({data:r,dataKey:n}),d=yn(),h=yn(),y=s?Sr({arr:r||[],n:s}):r;let v,m;y?.length?(m=p?Pr.mint():Pr.coolElegance(),v=y?.map((t=>({...t,[n]:Number(t[n])||0})))):(m=Pr.coolElegance(),v=[{[n]:1},{[n]:1}]);const g={cursor:y?.length?"crosshair":"default",...f};return e(Xh,{width:o,minHeight:i,id:d,children:t(pT,{data:v,margin:{top:20,right:0,left:0,bottom:20},style:g,children:[e("defs",{children:t("linearGradient",{id:h,x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:m,stopOpacity:.8}),e("stop",{offset:"95%",stopColor:m,stopOpacity:0})]})}),e(f_,{domain:y?.length?["dataMin","dataMax"]:[0,2],hide:!0}),e(VC,{type:a,dataKey:n,stroke:m,fill:`url(#${h})`,isAnimationActive:c,activeDot:t=>dT({chartId:d,labelFormatter:l,formatter:u,...t}),dot:!1}),y?.length&&e(Lh,{cursor:!1,content:()=>null})]})})},yT=({isCloseable:t,onClick:r})=>{const n=l({ssr:!1});return e(s,{children:e(f,{label:t?"Click to dismiss":null,hasArrow:!0,fontFamily:"mono",fontSize:"12px",children:e(p,{onClick:r,cursor:t?"pointer":"default",bgColor:{base:"rgba(143, 163, 255, 0.9)",sm:"rgba(117, 143, 255, 0.9)",md:"rgba(77, 109, 255, 0.9)",lg:"rgba(24, 74, 201, 0.9)",xl:"rgba(19, 60, 164, 0.9)","2xl":"rgba(15, 47, 128, 0.9)"},color:{base:Pr.black(),md:"white"},position:"fixed",top:"0",right:"0",padding:"2",fontSize:"xs",zIndex:"5",width:"10rem",boxShadow:"dark-lg",fontFamily:"mono",children:n})})})},vT=({children:t,...r})=>e(d,{border:"solid 1px",borderColor:Pr.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:t}),mT=({isSelected:t,children:r,...n})=>e(h,{variant:"none",paddingX:"1",fontSize:"sm",color:t?"brand.500":Pr.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:t?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),gT=({children:t,...r})=>e(y,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:Pr.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:t}),bT=r=>{const{carouselContents:n,isNavVertical:o,...i}=r,[a,c]=it(0);return n.length>=1&&e(gT,{children:t(v,{gap:10,direction:o?"column":{base:"column",md:"row"},...i,children:[n[a],t(v,{alignItems:"flex-end",justifyContent:"center",gap:6,children:[e(m,{variant:"ghost",isDisabled:0===a,"aria-label":"Previous content",icon:e(jt,{}),onClick:()=>{a>0&&a<=n.length-1&&c((t=>t-1))}}),e(m,{variant:"ghost",isDisabled:a===n.length-1,"aria-label":"Next content",icon:e(Pt,{}),onClick:()=>{a<n.length-1&&c((t=>t+1))}})]})]})})},wT=r=>{const{size:n,isDisabled:o,isReadOnly:i,isRequired:a,isIndeterminate:c,name:u,register:l,errorMessage:s,label:f,labelPosition:p="left",spaceBetween:d,onClick:h,...y}=r;let m;c||(m=e(kt,{}));const O=l?l(u):void 0;return t(g,{as:v,flexDir:"column",isInvalid:Boolean(s),isDisabled:o,isReadOnly:i,isRequired:a,children:[t(v,{onClick:h,w:"full",justifyContent:d?"space-between":"auto",children:["left"===p&&e(b,{fontSize:n,m:"0",mr:"3",children:f}),e(w,{icon:m,isDisabled:o,isReadOnly:i,isRequired:a,isIndeterminate:c,isInvalid:Boolean(s),size:n,...O,...y}),"right"===p&&e(b,{fontSize:n,m:"0",ml:"3",children:f})]}),e(v,{w:"full",children:s&&e(x,{size:n,children:s})})]})},xT=({children:t,onSubmit:r,...n})=>e(v,{as:"form",onSubmit:t=>{t.preventDefault(),r&&r(t)},noValidate:!0,gap:"6",flexDir:"column",...n,children:t});var OT=function(){return OT=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},OT.apply(this,arguments)};function ST(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var jT=function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},PT={k:1e3,m:1e6,b:1e9},AT=function(t){var e=t.value,r=t.groupSeparator,n=void 0===r?",":r,o=t.decimalSeparator,i=void 0===o?".":o,a=t.allowDecimals,c=void 0===a||a,u=t.decimalsLimit,l=void 0===u?2:u,s=t.allowNegativeValue,f=void 0===s||s,p=t.disableAbbreviations,d=void 0!==p&&p,h=t.prefix,y=void 0===h?"":h,v=t.transformRawValue,m=(void 0===v?function(t){return t}:v)(e);if("-"===m)return m;var g=d?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(jT(y),")")).test(m),w=RegExp("(\\d+)-?".concat(jT(y))).exec(e)||[],x=w[0],O=w[1],S=function(t,e){void 0===e&&(e=",");var r=new RegExp(jT(e),"g");return t.replace(r,"")}(y?x?m.replace(x,"").concat(O):m.replace(y,""):m,n),j=function(t,e){var r=jT(e.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return t.replace(n,"")}(S,ST([n,i],g,!0)),P=j;if(!d){if(g.some((function(t){return t===j.toLowerCase().replace(i,"")})))return"";var A=function(t,e){void 0===e&&(e=".");var r=new RegExp("(\\d+(".concat(jT(e),"\\d*)?)([kmb])$"),"i"),n=t.match(r);if(n){var o=n[1],i=n[3],a=PT[i.toLowerCase()];return Number(o.replace(e,"."))*a}}(j,i);A&&(P=String(A))}var M=b&&f?"-":"";if(i&&P.includes(i)){var k=j.split(i),E=k[0],C=k[1],_=l&&C?C.slice(0,l):C,T=c?"".concat(i).concat(_):"";return"".concat(M).concat(E).concat(T)}return"".concat(M).concat(P)},MT=function(t,e){var r=e.groupSeparator,n=void 0===r?",":r,o=e.decimalSeparator,i=void 0===o?".":o,a=new RegExp("\\d([^".concat(jT(n)).concat(jT(i),"0-9]+)")),c=t.match(a);return c?c[1]:void 0},kT=function(t){var e=t.value,r=t.decimalSeparator,n=t.intlConfig,o=t.decimalScale,i=t.prefix,a=void 0===i?"":i,c=t.suffix,u=void 0===c?"":c;if(""===e||void 0===e)return"";if("-"===e)return"-";var l=new RegExp("^\\d?-".concat(a?"".concat(jT(a),"?"):"","\\d")).test(e),s="."!==r?ET(e,r,l):e;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f={minimumFractionDigits:o||0,maximumFractionDigits:20},p=(n?new Intl.NumberFormat(n.locale,n.currency?OT(OT({},f),{style:"currency",currency:n.currency}):f):new Intl.NumberFormat(void 0,f)).formatToParts(Number(s)),d=CT(p,t),h=MT(d,OT({},t)),y=e.slice(-1)===r?r:"",v=(s.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return void 0===o&&v&&r&&(d=d.includes(r)?d.replace(RegExp("(\\d+)(".concat(jT(r),")(\\d+)"),"g"),"$1$2".concat(v)):h&&!u?d.replace(h,"".concat(r).concat(v).concat(h)):"".concat(d).concat(r).concat(v)),u&&y?"".concat(d).concat(y).concat(u):h&&y?d.replace(h,"".concat(y).concat(h)):h&&u?d.replace(h,"".concat(y).concat(u)):[d,y,u].join("")},ET=function(t,e,r){var n=t;return e&&"."!==e&&(n=n.replace(RegExp(jT(e),"g"),"."),r&&"-"===e&&(n="-".concat(n.slice(1)))),n},CT=function(t,e){var r=e.prefix,n=e.groupSeparator,o=e.decimalSeparator,i=e.decimalScale,a=e.disableGroupSeparators,c=void 0!==a&&a;return t.reduce((function(t,e,a){var u=e.type,l=e.value;return 0===a&&r?"minusSign"===u?[l,r]:"currency"===u?ST(ST([],t,!0),[r],!1):[r,l]:"currency"===u?r?t:ST(ST([],t,!0),[l],!1):"group"===u?c?t:ST(ST([],t,!0),[void 0!==n?n:l],!1):"decimal"===u?void 0!==i&&0===i?t:ST(ST([],t,!0),[void 0!==o?o:l],!1):ST(ST([],t,!0),"fraction"===u?[void 0!==i?l.slice(0,i):l]:[l],!1)}),[""]).join("")},_T={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},TT=function(t){return RegExp(/\d/,"gi").test(t)},DT=rt((function(t,e){var r=t.allowDecimals,n=void 0===r||r,o=t.allowNegativeValue,i=void 0===o||o,a=t.id,c=t.name,u=t.className,l=t.customInput,s=t.decimalsLimit,f=t.defaultValue,p=t.disabled,d=void 0!==p&&p,h=t.maxLength,y=t.value,v=t.onValueChange,m=t.fixedDecimalLength,g=t.placeholder,b=t.decimalScale,w=t.prefix,x=t.suffix,O=t.intlConfig,S=t.step,j=t.min,P=t.max,A=t.disableGroupSeparators,M=void 0!==A&&A,k=t.disableAbbreviations,E=void 0!==k&&k,C=t.decimalSeparator,_=t.groupSeparator,T=t.onChange,D=t.onFocus,I=t.onBlur,N=t.onKeyDown,L=t.onKeyUp,B=t.transformRawValue,R=t.formatValueOnBlur,$=void 0===R||R,z=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue","formatValueOnBlur"]);if(C&&TT(C))throw new Error("decimalSeparator cannot be a number");if(_&&TT(_))throw new Error("groupSeparator cannot be a number");var H=ut((function(){return function(t){var e=t||{},r=e.locale,n=e.currency;return(r?new Intl.NumberFormat(r,n?{currency:n,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(t,e,r){return"currency"===e.type?OT(OT({},t),0===r?{currencySymbol:e.value,prefix:e.value}:{currencySymbol:e.value,suffix:e.value}):"group"===e.type?OT(OT({},t),{groupSeparator:e.value}):"decimal"===e.type?OT(OT({},t),{decimalSeparator:e.value}):t}),_T)}(O)}),[O]),F=C||H.decimalSeparator||"",V=_||H.groupSeparator||"";if(F&&V&&F===V&&!1===M)throw new Error("decimalSeparator cannot be the same as groupSeparator");var U={decimalSeparator:F,groupSeparator:V,disableGroupSeparators:M,intlConfig:O,prefix:w||H.prefix,suffix:x},W={decimalSeparator:F,groupSeparator:V,allowDecimals:n,decimalsLimit:s||m||2,allowNegativeValue:i,disableAbbreviations:E,prefix:w||H.prefix,transformRawValue:B},q=it((function(){return null!=f?kT(OT(OT({},U),{decimalScale:b,value:String(f)})):null!=y?kT(OT(OT({},U),{decimalScale:b,value:String(y)})):""})),Y=q[0],X=q[1],K=it(!1),G=K[0],Z=K[1],Q=it(0),tt=Q[0],et=Q[1],rt=it(0),at=rt[0],lt=rt[1],st=it(null),ft=st[0],pt=st[1],dt=nt(null);ot(e,(function(){return dt.current}));var ht=function(t,e){Z(!0);var r=function(t){var e=t.selectionStart,r=t.value,n=t.lastKeyStroke,o=t.stateValue,i=t.groupSeparator,a=e,c=r;if(o&&a){var u=r.split("");return"Backspace"===n&&o[a]===i&&(u.splice(a-1,1),a-=1),"Delete"===n&&o[a]===i&&(u.splice(a,1),a+=1),{modifiedValue:c=u.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:e}}({selectionStart:e,value:t,lastKeyStroke:ft,stateValue:Y,groupSeparator:V}),n=r.modifiedValue,o=r.cursorPosition,i=AT(OT({value:n},W));if(!(h&&i.replace(/-/g,"").length>h)){if(""===i||"-"===i||i===F)return v&&v(void 0,c,{float:null,formatted:"",value:""}),X(i),void et(1);var a=F?i.replace(F,"."):i,u=parseFloat(a),l=kT(OT({value:i},U));if(null!=o){var s=o+(l.length-t.length);s=s<=0?w?w.length:0:s,et(s),lt(at+1)}if(X(l),v)v(i,c,{float:u,formatted:l,value:i})}};ct((function(){null==y&&null==f&&X("")}),[f,y]),ct((function(){G&&"-"!==Y&&dt.current&&document.activeElement===dt.current&&dt.current.setSelectionRange(tt,tt)}),[Y,tt,dt,G,at]);var yt=OT({type:"text",inputMode:"decimal",id:a,name:c,className:u,onChange:function(t){var e=t.target,r=e.value,n=e.selectionStart;ht(r,n),T&&T(t)},onBlur:function(t){var e=t.target.value,r=AT(OT({value:e},W));if("-"===r||r===F||!r)return X(""),void(I&&I(t));var n=function(t,e,r){if(void 0!==r&&t.length>1){if(0===r)return t.replace(e,"");if(t.includes(e)){var n=t.split(e),o=n[0];if((c=n[1]).length===r)return t;if(c.length>r)return"".concat(o).concat(e).concat(c.slice(0,r))}var i=t.length>r?new RegExp("(\\d+)(\\d{".concat(r,"})")):new RegExp("(\\d)(\\d+)"),a=t.match(i);if(a){o=a[1];var c=a[2];return"".concat(o).concat(e).concat(c)}}return t}(r,F,m),o=function(t,e,r){if(void 0===e&&(e="."),void 0===r||""===t||void 0===t)return t;if(!t.match(/\d/g))return"";var n=t.split(e),o=n[0],i=n[1];if(0===r)return o;var a=i||"";if(a.length<r)for(;a.length<r;)a+="0";else a=a.slice(0,r);return"".concat(o).concat(e).concat(a)}(n,F,void 0!==b?b:m),i=parseFloat(o.replace(F,".")),a=kT(OT(OT({},U),{value:o}));v&&$&&v(o,c,{float:i,formatted:a,value:o}),X(a),I&&I(t)},onFocus:function(t){return D&&D(t),Y?Y.length:0},onKeyDown:function(t){var e=t.key;if(pt(e),S&&("ArrowUp"===e||"ArrowDown"===e)){t.preventDefault(),et(Y.length);var r=parseFloat(null!=y?String(y).replace(F,"."):AT(OT({value:Y},W)))||0,n="ArrowUp"===e?r+S:r-S;if(void 0!==j&&n<Number(j))return;if(void 0!==P&&n>Number(P))return;var o=String(S).includes(".")?Number(String(S).split(".")[1].length):void 0;ht(String(o?n.toFixed(o):n).replace(".",F))}N&&N(t)},onKeyUp:function(t){var e=t.key,r=t.currentTarget.selectionStart;if("ArrowUp"!==e&&"ArrowDown"!==e&&"-"!==Y){var n=MT(Y,{groupSeparator:V,decimalSeparator:F});if(n&&r&&r>Y.length-n.length&&dt.current){var o=Y.length-n.length;dt.current.setSelectionRange(o,o)}}L&&L(t)},placeholder:g,disabled:d,value:null==y||"-"===Y||F&&Y===F?Y:kT(OT(OT({},U),{decimalScale:G?void 0:b,value:String(y)})),ref:dt},z);if(l){var vt=l;return J.createElement(vt,OT({},yt))}return J.createElement("input",OT({},yt))}));DT.displayName="CurrencyInput";const IT=O(((r,n)=>{const{size:o,isDisabled:i,isReadOnly:a,isRequired:c,spellCheck:u=!1,name:l,label:s,register:f,errorMessage:p,helperText:d,leftAddon:h,leftElement:y,rightAddon:v,rightElement:m,type:w="text",containerCss:O,...C}=r,_=wr(o),T=f?f(l):void 0,D="currency"===w?{as:DT,placeholder:"$0.00",prefix:"$",allowNegative:!1,disableAbbreviations:!0}:{};return t(g,{isInvalid:Boolean(p),isDisabled:i,isReadOnly:a,isRequired:c,sx:O,children:[s&&e(b,{className:"cf-form-label",size:o,children:s}),t(S,{size:o,children:[h&&e(j,{children:h}),y&&e(P,{w:"auto",ml:"1em",children:y}),e(A,{size:o,spellCheck:u,paddingLeft:y&&"2.5em",paddingRight:m&&"2.5em",type:"currency"===w?"text":w,...T,...D,...C,ref:n||T?.ref}),m&&e(M,{w:"auto",mr:"1em",children:m}),v&&e(k,{children:v})]}),p&&e(x,{className:"cf-form-error",size:o,children:p}),d&&e(E,{className:"cf-form-helper-text",fontSize:_,children:d})]})}));var NT=t=>null==t;var LT=t=>!NT(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),BT=t=>{const e=t.constructor&&t.constructor.prototype;return LT(e)&&e.hasOwnProperty("isPrototypeOf")},RT="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function $T(t){let e;const r=Array.isArray(t);if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else{if(RT&&(t instanceof Blob||t instanceof FileList)||!r&&!LT(t))return t;if(e=r?[]:{},r||BT(t))for(const r in t)t.hasOwnProperty(r)&&(e[r]=$T(t[r]));else e=t}return e}var zT=t=>Array.isArray(t)?t.filter(Boolean):[],HT=t=>void 0===t,FT=(t,e,r)=>{if(!e||!LT(t))return r;const n=zT(e.split(/[,[\].]+?/)).reduce(((t,e)=>NT(t)?t:t[e]),t);return HT(n)||n===t?HT(t[e])?r:t[e]:n},VT=t=>"boolean"==typeof t,UT=t=>/^\w*$/.test(t),WT=t=>zT(t.replace(/["|']|\]/g,"").split(/\.|\[/)),qT=(t,e,r)=>{let n=-1;const o=UT(e)?[e]:WT(e),i=o.length,a=i-1;for(;++n<i;){const e=o[n];let i=r;if(n!==a){const r=t[e];i=LT(r)||Array.isArray(r)?r:isNaN(+o[n+1])?{}:[]}if("__proto__"===e)return;t[e]=i,t=t[e]}return t};const YT="onBlur",XT="onChange",KT="onSubmit",GT="onTouched",ZT="all",JT="max",QT="min",tD="maxLength",eD="minLength",rD="pattern",nD="required",oD="validate",iD=J.createContext(null);var aD=t=>LT(t)&&!Object.keys(t).length,cD=t=>Array.isArray(t)?t:[t];var uD=t=>"string"==typeof t,lD=(t,e,r,n,o)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:o||!0}}:{},sD=()=>{const t="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const r=(16*Math.random()+t)%16|0;return("x"==e?r:3&r|8).toString(16)}))},fD=(t,e,r={})=>r.shouldFocus||HT(r.shouldFocus)?r.focusName||`${t}.${HT(r.focusIndex)?e:r.focusIndex}.`:"",pD=t=>({isOnSubmit:!t||t===KT,isOnBlur:t===YT,isOnChange:t===XT,isOnAll:t===ZT,isOnTouch:t===GT});const dD=(t,e,r,n)=>{for(const r of Object.keys(t)){const o=FT(t,r);if(o){const{_f:t,...i}=o;if(t){if(t.refs&&t.refs[0]&&e(t.refs[0],r)&&!n)return!0;if(t.ref&&e(t.ref,t.name)&&!n)return!0;if(dD(i,e))break}else if(LT(i)&&dD(i,e))break}}};var hD=(t,e,r)=>{const n=cD(FT(t,r));return qT(n,"root",e[r]),qT(t,r,n),t},yD=t=>uD(t),vD=t=>t instanceof RegExp;function mD(t,e,r="validate"){if(yD(t)||Array.isArray(t)&&t.every(yD)||VT(t)&&!t)return{type:r,message:yD(t)?t:"",ref:e}}var gD=t=>LT(t)&&!vD(t)?t:{value:t,message:""},bD=async(t,e,r,n,o)=>{const{ref:i,refs:a,required:c,maxLength:u,minLength:l,min:s,max:f,pattern:p,validate:d,name:h,valueAsNumber:y,mount:v,disabled:m}=t._f,g=FT(e,h);if(!v||m)return{};const b=a?a[0]:i,w=t=>{n&&b.reportValidity&&(b.setCustomValidity(VT(t)?"":t||""),b.reportValidity())},x={};i.type,(t=>{t.type})(i);const O=(y||(t=>"file"===t.type)(i))&&HT(i.value)&&HT(g)||(t=>{if(!RT)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)})(i)&&""===i.value||""===g||Array.isArray(g)&&!g.length,S=lD.bind(null,h,r,x),j=(t,e,r,n=tD,o=eD)=>{const a=t?e:r;x[h]={type:t?n:o,message:a,ref:i,...S(t?n:o,a)}};if(!Array.isArray(g)||!g.length){const{value:t,message:e}=yD(c)?{value:!!c,message:c}:gD(c);if(t&&(x[h]={type:nD,message:e,ref:b,...S(nD,e)},!r))return w(e),x}if(!(O||NT(s)&&NT(f))){let t,e;const n=gD(f),o=gD(s);if(NT(g)||isNaN(g)){const r=i.valueAsDate||new Date(g),a=t=>new Date((new Date).toDateString()+" "+t),c="time"==i.type,u="week"==i.type;uD(n.value)&&g&&(t=c?a(g)>a(n.value):u?g>n.value:r>new Date(n.value)),uD(o.value)&&g&&(e=c?a(g)<a(o.value):u?g<o.value:r<new Date(o.value))}else{const r=i.valueAsNumber||(g?+g:g);NT(n.value)||(t=r>n.value),NT(o.value)||(e=r<o.value)}if((t||e)&&(j(!!t,n.message,o.message,JT,QT),!r))return w(x[h].message),x}if((u||l)&&!O&&(uD(g)||Array.isArray(g))){const t=gD(u),e=gD(l),n=!NT(t.value)&&g.length>+t.value,o=!NT(e.value)&&g.length<+e.value;if((n||o)&&(j(n,t.message,e.message),!r))return w(x[h].message),x}if(p&&!O&&uD(g)){const{value:t,message:e}=gD(p);if(vD(t)&&!g.match(t)&&(x[h]={type:rD,message:e,ref:i,...S(rD,e)},!r))return w(e),x}if(d)if("function"==typeof d){const t=mD(await d(g,e),b);if(t&&(x[h]={...t,...S(oD,t.message)},!r))return w(t.message),x}else if(LT(d)){let t={};for(const n in d){if(!aD(t)&&!r)break;const o=mD(await d[n](g,e),b,n);o&&(t={...o,...S(n,o.message)},w(o.message),r&&(x[h]=t))}if(!aD(t)&&(x[h]={ref:b,...t},!r))return x}return w(!0),x},wD=(t,e)=>[...t,...cD(e)],xD=t=>Array.isArray(t)?t.map((()=>{})):void 0;function OD(t,e,r){return[...t.slice(0,e),...cD(r),...t.slice(e)]}var SD=(t,e,r)=>Array.isArray(t)?(HT(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],jD=(t,e)=>[...cD(e),...cD(t)];var PD=(t,e)=>HT(e)?[]:function(t,e){let r=0;const n=[...t];for(const t of e)n.splice(t-r,1),r++;return zT(n).length?n:[]}(t,cD(e).sort(((t,e)=>t-e))),AD=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]};function MD(t,e){const r=Array.isArray(e)?e:UT(e)?[e]:WT(e),n=1===r.length?t:function(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=HT(t)?n++:t[e[n++]];return t}(t,r),o=r.length-1,i=r[o];return n&&delete n[i],0!==o&&(LT(n)&&aD(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!HT(t[e]))return!1;return!0}(n))&&MD(t,r.slice(0,-1)),t}var kD=(t,e,r)=>(t[e]=r,t);function ED(t){const e=J.useContext(iD),{control:r=e.control,name:n,keyName:o="id",shouldUnregister:i}=t,[a,c]=J.useState(r._getFieldArray(n)),u=J.useRef(r._getFieldArray(n).map(sD)),l=J.useRef(a),s=J.useRef(n),f=J.useRef(!1);s.current=n,l.current=a,r._names.array.add(n),t.rules&&r.register(n,t.rules),function(t){const e=J.useRef(t);e.current=t,J.useEffect((()=>{const r=!t.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{r&&r.unsubscribe()}}),[t.disabled])}({next:({values:t,name:e})=>{if(e===s.current||!e){const e=FT(t,s.current);Array.isArray(e)&&(c(e),u.current=e.map(sD))}},subject:r._subjects.array});const p=J.useCallback((t=>{f.current=!0,r._updateFieldArray(n,t)}),[r,n]);return J.useEffect((()=>{if(r._state.action=!1,((t,e,r)=>e.watchAll||e.watch.has(t)||[...e.watch].some((e=>t.startsWith(e)&&/^\.\w+/.test(t.slice(e.length)))))(n,r._names)&&r._subjects.state.next({...r._formState}),f.current&&(!pD(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then((t=>{const e=FT(t.errors,n),o=FT(r._formState.errors,n);(o?!e&&o.type||e&&(o.type!==e.type||o.message!==e.message):e&&e.type)&&(e?qT(r._formState.errors,n,e):MD(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=FT(r._fields,n);!t||!t._f||pD(r._options.reValidateMode).isOnSubmit&&pD(r._options.mode).isOnSubmit||bD(t,r._formValues,r._options.criteriaMode===ZT,r._options.shouldUseNativeValidation).then((t=>!aD(t)&&r._subjects.state.next({errors:hD(r._formState.errors,t,n)})))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&dD(r._fields,((t,e)=>{if(r._names.focus&&e.startsWith(r._names.focus)&&t.focus)return t.focus(),1})),r._names.focus="",r._updateValid(),f.current=!1}),[a,n,r]),J.useEffect((()=>(!FT(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||i)&&r.unregister(n)})),[n,r,o,i]),{swap:J.useCallback(((t,e)=>{const o=r._getFieldArray(n);AD(o,t,e),AD(u.current,t,e),p(o),c(o),r._updateFieldArray(n,o,AD,{argA:t,argB:e},!1)}),[p,n,r]),move:J.useCallback(((t,e)=>{const o=r._getFieldArray(n);SD(o,t,e),SD(u.current,t,e),p(o),c(o),r._updateFieldArray(n,o,SD,{argA:t,argB:e},!1)}),[p,n,r]),prepend:J.useCallback(((t,e)=>{const o=cD($T(t)),i=jD(r._getFieldArray(n),o);r._names.focus=fD(n,0,e),u.current=jD(u.current,o.map(sD)),p(i),c(i),r._updateFieldArray(n,i,jD,{argA:xD(t)})}),[p,n,r]),append:J.useCallback(((t,e)=>{const o=cD($T(t)),i=wD(r._getFieldArray(n),o);r._names.focus=fD(n,i.length-1,e),u.current=wD(u.current,o.map(sD)),p(i),c(i),r._updateFieldArray(n,i,wD,{argA:xD(t)})}),[p,n,r]),remove:J.useCallback((t=>{const e=PD(r._getFieldArray(n),t);u.current=PD(u.current,t),p(e),c(e),r._updateFieldArray(n,e,PD,{argA:t})}),[p,n,r]),insert:J.useCallback(((t,e,o)=>{const i=cD($T(e)),a=OD(r._getFieldArray(n),t,i);r._names.focus=fD(n,t,o),u.current=OD(u.current,t,i.map(sD)),p(a),c(a),r._updateFieldArray(n,a,OD,{argA:t,argB:xD(e)})}),[p,n,r]),update:J.useCallback(((t,e)=>{const o=$T(e),i=kD(r._getFieldArray(n),t,o);u.current=[...i].map(((e,r)=>e&&r!==t?u.current[r]:sD())),p(i),c([...i]),r._updateFieldArray(n,i,kD,{argA:t,argB:o},!0,!1)}),[p,n,r]),replace:J.useCallback((t=>{const e=cD($T(t));u.current=e.map(sD),p([...e]),c([...e]),r._updateFieldArray(n,[...e],(t=>t),{},!0,!1)}),[p,n,r]),fields:J.useMemo((()=>a.map(((t,e)=>({...t,[o]:u.current[e]||sD()})))),[a,o])}}const CD=({name:r,control:n,register:o,defaultValues:i,onArrayAppend:a,onArrayRemove:c})=>{const{fields:u,append:l,remove:s}=ED({control:n,name:r}),p=Object.keys(i).reduce(((t,e)=>({...t,[e]:i[e]})),{});return t(C,{children:[u.map(((n,i)=>e(C,{children:t(C,{pb:6,position:"relative",children:[Object.keys(n).filter((t=>"id"!==t)).map((t=>e(IT,{label:t,name:`${r}.${i}.${t}`,register:o},`${t}-${n.id}`))),e(f,{label:"Delete",children:e(v,{position:"absolute",top:"0",right:"0",children:e(h,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(i),c&&c(i)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),e(v,{children:e(h,{size:"sm",onClick:()=>{l(p),a&&a(p)},ml:"auto",children:"+"})})]})},_D=({data:r,dataKey:n,width:o="100%",height:i="100%",lineType:a="linear",isAnimated:c=!1,formatter:u,labelFormatter:l,sampleRate:s,style:f})=>{const{isNetGain:p}=br({data:r,dataKey:n}),d=yn(),h=s?Sr({arr:r||[],n:s}):r;let y,v;h?.length?(v=p?Pr.mint():Pr.heroicRed(),y=h?.map((t=>({...t,[n]:Number(t[n])||0})))):(v=Pr.coolElegance(),y=[{[n]:0},{[n]:0}]);const m={cursor:h?.length?"crosshair":"default",...f};return e(Xh,{width:o,minHeight:i,id:d,children:t(fT,{data:y,style:m,children:[e(f_,{domain:["dataMin","dataMax"],hide:!0}),e(MC,{isAnimationActive:c,type:a,dataKey:n,stroke:v,strokeWidth:"2",activeDot:t=>dT({chartId:d,labelFormatter:l,formatter:u,...t}),dot:!1,scale:"threshold"}),h?.length&&e(Lh,{cursor:!1,content:()=>null})]})})},TD=({isOpen:r,onClose:n,headerContent:o=null,footerContent:i=null,children:a,isCentered:c=!0,size:u={base:"md",md:"xl"},isDisabledCloseButton:l,bodyProps:s={},contentProps:f={},...p})=>{const d={maxHeight:"60vh",bg:"transparent",overflow:"scroll",...s},h={...{minWidth:kr},...f};return t(_,{blockScrollOnMount:!1,scrollBehavior:"inside",isOpen:r,onClose:n,isCentered:c,size:u,trapFocus:!xr(),...p,children:[e(T,{}),t(D,{...h,children:[e(I,{children:o}),e(N,{isDisabled:l}),e(L,{...d,children:a}),i&&e(B,{borderTop:"solid 1px",borderColor:Pr.coolElegance(),children:i})]})]})},DD=t=>{const{isActive:r,children:n,href:o,...i}=t;return e(R,{display:"flex",as:R,borderRadius:"md",border:"solid 1px",bg:r?"brand.50":"transparent",borderColor:r?"brand.200":"transparent",boxShadow:r?`0 8px 16px 0 ${Pr.black(.08)}`:"none",href:o,alignItems:"center",lineHeight:"1",position:"relative",padding:"2",zIndex:"3",transition:"border-color 0.25s",_hover:{borderColor:!r&&Pr.coolElegance(),textDecoration:"none"},...i,children:n},o)};var ID,ND={exports:{}};var LD,BD=(ID||(ID=1,LD=ND,function(t,e){LD.exports=e(J)}(0,(t=>(()=>{var e={703:(t,e,r)=>{var n=r(414);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){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 e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},697:(t,e,r)=>{t.exports=r(703)()},414:t=>{t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98:e=>{e.exports=t}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{n.r(o),n.d(o,{default:()=>w});var t=n(98),e=n.n(t),r=n(697),i=n.n(r);function a(){return a=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},a.apply(this,arguments)}var c=function(t){var r=t.pageClassName,n=t.pageLinkClassName,o=t.page,i=t.selected,c=t.activeClassName,u=t.activeLinkClassName,l=t.getEventListener,s=t.pageSelectedHandler,f=t.href,p=t.extraAriaContext,d=t.pageLabelBuilder,h=t.rel,y=t.ariaLabel||"Page "+o+(p?" "+p:""),v=null;return i&&(v="page",y=t.ariaLabel||"Page "+o+" is your current page",r=void 0!==r?r+" "+c:c,void 0!==n?void 0!==u&&(n=n+" "+u):n=u),e().createElement("li",{className:r},e().createElement("a",a({rel:h,role:f?void 0:"button",className:n,href:f,tabIndex:i?"-1":"0","aria-label":y,"aria-current":v,onKeyPress:s},l(s)),d(o)))};c.propTypes={pageSelectedHandler:i().func.isRequired,selected:i().bool.isRequired,pageClassName:i().string,pageLinkClassName:i().string,activeClassName:i().string,activeLinkClassName:i().string,extraAriaContext:i().string,href:i().string,ariaLabel:i().string,page:i().number.isRequired,getEventListener:i().func.isRequired,pageLabelBuilder:i().func.isRequired,rel:i().string};const u=c;function l(){return l=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},l.apply(this,arguments)}var s=function(t){var r=t.breakLabel,n=t.breakAriaLabel,o=t.breakClassName,i=t.breakLinkClassName,a=t.breakHandler,c=t.getEventListener,u=o||"break";return e().createElement("li",{className:u},e().createElement("a",l({className:i,role:"button",tabIndex:"0","aria-label":n,onKeyPress:a},c(a)),r))};s.propTypes={breakLabel:i().oneOfType([i().string,i().node]),breakAriaLabel:i().string,breakClassName:i().string,breakLinkClassName:i().string,breakHandler:i().func.isRequired,getEventListener:i().func.isRequired};const f=s;function p(t){return null!=t?t:arguments.length>1&&void 0!==arguments[1]?arguments[1]:""}function d(t){return d="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},d(t)}function h(){return h=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},h.apply(this,arguments)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function g(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=function(t){!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&&y(t,e)}(c,t);var r,n,o,i,a=(o=c,i=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}}(),function(){var t,e=m(o);if(i){var r=m(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(t)}(this,t)});function c(t){var r,n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),g(v(r=a.call(this,t)),"handlePreviousPage",(function(t){var e=r.state.selected;r.handleClick(t,null,e>0?e-1:void 0,{isPrevious:!0})})),g(v(r),"handleNextPage",(function(t){var e=r.state.selected,n=r.props.pageCount;r.handleClick(t,null,e<n-1?e+1:void 0,{isNext:!0})})),g(v(r),"handlePageSelected",(function(t,e){if(r.state.selected===t)return r.callActiveCallback(t),void r.handleClick(e,null,void 0,{isActive:!0});r.handleClick(e,null,t)})),g(v(r),"handlePageChange",(function(t){r.state.selected!==t&&(r.setState({selected:t}),r.callCallback(t))})),g(v(r),"getEventListener",(function(t){return g({},r.props.eventListener,t)})),g(v(r),"handleClick",(function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=o.isPrevious,a=void 0!==i&&i,c=o.isNext,u=void 0!==c&&c,l=o.isBreak,s=void 0!==l&&l,f=o.isActive,p=void 0!==f&&f;t.preventDefault?t.preventDefault():t.returnValue=!1;var d=r.state.selected,h=r.props.onClick,y=n;if(h){var v=h({index:e,selected:d,nextSelectedPage:n,event:t,isPrevious:a,isNext:u,isBreak:s,isActive:p});if(!1===v)return;Number.isInteger(v)&&(y=v)}void 0!==y&&r.handlePageChange(y)})),g(v(r),"handleBreakClick",(function(t,e){var n=r.state.selected;r.handleClick(e,t,n<t?r.getForwardJump():r.getBackwardJump(),{isBreak:!0})})),g(v(r),"callCallback",(function(t){void 0!==r.props.onPageChange&&"function"==typeof r.props.onPageChange&&r.props.onPageChange({selected:t})})),g(v(r),"callActiveCallback",(function(t){void 0!==r.props.onPageActive&&"function"==typeof r.props.onPageActive&&r.props.onPageActive({selected:t})})),g(v(r),"getElementPageRel",(function(t){var e=r.state.selected,n=r.props,o=n.nextPageRel,i=n.prevPageRel,a=n.selectedPageRel;return e-1===t?i:e===t?a:e+1===t?o:void 0})),g(v(r),"pagination",(function(){var t=[],n=r.props,o=n.pageRangeDisplayed,i=n.pageCount,a=n.marginPagesDisplayed,c=n.breakLabel,u=n.breakClassName,l=n.breakLinkClassName,s=n.breakAriaLabels,p=r.state.selected;if(i<=o)for(var d=0;d<i;d++)t.push(r.getPageElement(d));else{var h=o/2,y=o-h;p>i-o/2?h=o-(y=i-p):p<o/2&&(y=o-(h=p));var v,m,g=function(t){return r.getPageElement(t)},b=[];for(v=0;v<i;v++){var w=v+1;if(w<=a)b.push({type:"page",index:v,display:g(v)});else if(w>i-a)b.push({type:"page",index:v,display:g(v)});else if(v>=p-h&&v<=p+(0===p&&o>1?y-1:y))b.push({type:"page",index:v,display:g(v)});else if(c&&b.length>0&&b[b.length-1].display!==m&&(o>0||a>0)){var x=v<p?s.backward:s.forward;m=e().createElement(f,{key:v,breakAriaLabel:x,breakLabel:c,breakClassName:u,breakLinkClassName:l,breakHandler:r.handleBreakClick.bind(null,v),getEventListener:r.getEventListener}),b.push({type:"break",index:v,display:m})}}b.forEach((function(e,r){var n=e;"break"===e.type&&b[r-1]&&"page"===b[r-1].type&&b[r+1]&&"page"===b[r+1].type&&b[r+1].index-b[r-1].index<=2&&(n={type:"page",index:e.index,display:g(e.index)}),t.push(n.display)}))}return t})),void 0!==t.initialPage&&void 0!==t.forcePage&&console.warn("(react-paginate): Both initialPage (".concat(t.initialPage,") and forcePage (").concat(t.forcePage,") props are provided, which is discouraged.")+" Use exclusively forcePage prop for a controlled component.\nSee https://reactjs.org/docs/forms.html#controlled-components"),n=t.initialPage?t.initialPage:t.forcePage?t.forcePage:0,r.state={selected:n},r}return r=c,(n=[{key:"componentDidMount",value:function(){var t=this.props,e=t.initialPage,r=t.disableInitialCallback,n=t.extraAriaContext,o=t.pageCount,i=t.forcePage;void 0===e||r||this.callCallback(e),n&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(o)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(o,"). Did you forget a Math.ceil()?")),void 0!==e&&e>o-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(e," > ").concat(o-1,").")),void 0!==i&&i>o-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(i," > ").concat(o-1,")."))}},{key:"componentDidUpdate",value:function(t){void 0!==this.props.forcePage&&this.props.forcePage!==t.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(this.props.forcePage," > ").concat(this.props.pageCount-1,").")),this.setState({selected:this.props.forcePage})),Number.isInteger(t.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(this.props.pageCount,"). Did you forget a Math.ceil()?"))}},{key:"getForwardJump",value:function(){var t=this.state.selected,e=this.props,r=e.pageCount,n=t+e.pageRangeDisplayed;return n>=r?r-1:n}},{key:"getBackwardJump",value:function(){var t=this.state.selected-this.props.pageRangeDisplayed;return t<0?0:t}},{key:"getElementHref",value:function(t){var e=this.props,r=e.hrefBuilder,n=e.pageCount,o=e.hrefAllControls;if(r)return o||t>=0&&t<n?r(t+1,n,this.state.selected):void 0}},{key:"ariaLabelBuilder",value:function(t){var e=t===this.state.selected;if(this.props.ariaLabelBuilder&&t>=0&&t<this.props.pageCount){var r=this.props.ariaLabelBuilder(t+1,e);return this.props.extraAriaContext&&!e&&(r=r+" "+this.props.extraAriaContext),r}}},{key:"getPageElement",value:function(t){var r=this.state.selected,n=this.props,o=n.pageClassName,i=n.pageLinkClassName,a=n.activeClassName,c=n.activeLinkClassName,l=n.extraAriaContext,s=n.pageLabelBuilder;return e().createElement(u,{key:t,pageSelectedHandler:this.handlePageSelected.bind(null,t),selected:r===t,rel:this.getElementPageRel(t),pageClassName:o,pageLinkClassName:i,activeClassName:a,activeLinkClassName:c,extraAriaContext:l,href:this.getElementHref(t),ariaLabel:this.ariaLabelBuilder(t),page:t+1,pageLabelBuilder:s,getEventListener:this.getEventListener})}},{key:"render",value:function(){var t=this.props.renderOnZeroPageCount;if(0===this.props.pageCount&&void 0!==t)return t?t(this.props):t;var r=this.props,n=r.disabledClassName,o=r.disabledLinkClassName,i=r.pageCount,a=r.className,c=r.containerClassName,u=r.previousLabel,l=r.previousClassName,s=r.previousLinkClassName,f=r.previousAriaLabel,d=r.prevRel,y=r.nextLabel,v=r.nextClassName,m=r.nextLinkClassName,g=r.nextAriaLabel,b=r.nextRel,w=this.state.selected,x=0===w,O=w===i-1,S="".concat(p(l)).concat(x?" ".concat(p(n)):""),j="".concat(p(v)).concat(O?" ".concat(p(n)):""),P="".concat(p(s)).concat(x?" ".concat(p(o)):""),A="".concat(p(m)).concat(O?" ".concat(p(o)):""),M=x?"true":"false",k=O?"true":"false";return e().createElement("ul",{className:a||c,role:"navigation","aria-label":"Pagination"},e().createElement("li",{className:S},e().createElement("a",h({className:P,href:this.getElementHref(w-1),tabIndex:x?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":M,"aria-label":f,rel:d},this.getEventListener(this.handlePreviousPage)),u)),this.pagination(),e().createElement("li",{className:j},e().createElement("a",h({className:A,href:this.getElementHref(w+1),tabIndex:O?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":k,"aria-label":g,rel:b},this.getEventListener(this.handleNextPage)),y)))}}])&&function(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,n.key,n)}}(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(t.Component);g(b,"propTypes",{pageCount:i().number.isRequired,pageRangeDisplayed:i().number,marginPagesDisplayed:i().number,previousLabel:i().node,previousAriaLabel:i().string,prevPageRel:i().string,prevRel:i().string,nextLabel:i().node,nextAriaLabel:i().string,nextPageRel:i().string,nextRel:i().string,breakLabel:i().oneOfType([i().string,i().node]),breakAriaLabels:i().shape({forward:i().string,backward:i().string}),hrefBuilder:i().func,hrefAllControls:i().bool,onPageChange:i().func,onPageActive:i().func,onClick:i().func,initialPage:i().number,forcePage:i().number,disableInitialCallback:i().bool,containerClassName:i().string,className:i().string,pageClassName:i().string,pageLinkClassName:i().string,pageLabelBuilder:i().func,activeClassName:i().string,activeLinkClassName:i().string,previousClassName:i().string,nextClassName:i().string,previousLinkClassName:i().string,nextLinkClassName:i().string,disabledClassName:i().string,disabledLinkClassName:i().string,breakClassName:i().string,breakLinkClassName:i().string,extraAriaContext:i().string,ariaLabelBuilder:i().func,eventListener:i().string,renderOnZeroPageCount:i().func,selectedPageRel:i().string}),g(b,"defaultProps",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:"selected",previousLabel:"Previous",previousClassName:"previous",previousAriaLabel:"Previous page",prevPageRel:"prev",prevRel:"prev",nextLabel:"Next",nextClassName:"next",nextAriaLabel:"Next page",nextPageRel:"next",nextRel:"next",breakLabel:"...",breakAriaLabels:{forward:"Jump forward",backward:"Jump backward"},disabledClassName:"disabled",disableInitialCallback:!1,pageLabelBuilder:function(t){return t},eventListener:"onClick",renderOnZeroPageCount:void 0,selectedPageRel:"canonical",hrefAllControls:!1});const w=b})(),o})()))),ND.exports);const RD=n(Ze(BD)),$D=({totalRecords:t=0,recordsPerPage:r=10,pageRangeDisplayed:n=3,handlePageClick:o,forcePage:i,...a})=>{const c=Math.ceil(t/r);return e(v,{justifyContent:{base:"center",md:"flex-end"},fontSize:{base:14,md:18},gap:2,w:"full",...a,children:e(RD,{breakLabel:"...",previousLabel:"<",nextLabel:">",onPageChange:o,pageRangeDisplayed:n,pageCount:c,renderOnZeroPageCount:null,forcePage:i,display:{base:"flex"},alignItems:"center",gap:"inherit",disabledLinkClassName:"disabled-pagination",pageLinkClassName:"pagination-link",activeClassName:"active-page",previousClassName:"previous-page-button",nextClassName:"next-page-button",sx:{listStyleType:"none",".pagination-link:hover":{backgroundColor:"brand.700"},".previous-page-button a, .next-page-button a, .pagination-link":{backgroundColor:"brand.300",borderRadius:4,color:Pr.white()},".previous-page-button a, .next-page-button a":{minWidth:"2rem",display:"inline-block",textAlign:"center",paddingX:{base:2,lg:2.5}},".pagination-link":{minWidth:"2.5rem",display:"inline-block",textAlign:"center",paddingX:{base:2.5,lg:3}},".active-page a":{backgroundColor:"brand.500"},".disabled-pagination":{backgroundColor:"gray.300 !important",cursor:"not-allowed !important"}}})})},zD=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:o,lastEvaluatedKey:i,...a})=>{const[c,u]=it([]),[l,s]=it(1);return t(v,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[e(h,{onClick:()=>{if(2===l)return o(void 0),u([]),void s((t=>t-1));const t=c.length-1,e=c[t-1];o(e),u((t=>t.slice(0,-1))),s((t=>t-1))},isDisabled:r||1===l,children:"Previous"}),e(h,{onClick:()=>{if(i){const t={lastEvaluatedPKey:i.pKey,lastEvaluatedSKey:i.sKey};o(t),u((e=>[...e,t])),s((t=>t+1))}},isDisabled:r||!n,children:"Next"})]})},HD=({children:t,isEnabled:r=!0,...n})=>{const o=r?ht`
31
+ */function pj(){if(JS)return ZS;JS=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return ZS=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},ZS}function dj(){if(tj)return QS;tj=1;return QS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function hj(){return rj?ej:(rj=1,ej=Function.call.bind(Object.prototype.hasOwnProperty))}function yj(){if(oj)return nj;oj=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=dj(),r={},n=hj();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={})},nj=o}function vj(){if(aj)return ij;aj=1;var t=fj(),e=pj(),r=dj(),n=hj(),o=yj(),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){}}),ij=function(c,u){var l="function"==typeof Symbol&&Symbol.iterator,s="@@iterator";var 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:y(a),arrayOf:function(t){return y((function(e,n,o,i,a){if("function"!=typeof t)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new h("Invalid "+i+" `"+a+"` of type `"+b(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:y((function(t,e,r,n,o){var i=t[e];return c(i)?null:new h("Invalid "+n+" `"+o+"` of type `"+b(i)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:y((function(e,r,n,o,i){var a=e[r];return t.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return y((function(e,r,n,o,i){if(!(e[r]instanceof t)){var a=t.name||f;return new h("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:y((function(t,e,r,n,o){return g(t[e])?null:new h("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return y((function(e,o,i,a,c){if("function"!=typeof t)return new h("Property `"+c+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var u=e[o],l=b(u);if("object"!==l)return new h("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){if(!Array.isArray(t))return"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;return y((function(e,r,n,o,i){for(var a=e[r],c=0;c<t.length;c++)if(d(a,t[c]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===w(e)?String(e):e}));return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+u+".")}))},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 "+x(o)+" at index "+e+"."),a}return y((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 h("Invalid "+a+" `"+c+"` supplied to `"+i+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(t){return y((function(e,n,o,i,a){var c=e[n],u=b(c);if("object"!==u)return new h("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,w(s));var f=s(c,l,o,i,a+"."+l,r);if(f)return f}return null}))},exact:function(t){return y((function(o,i,a,c,u){var l=o[i],s=b(l);if("object"!==s)return new h("Invalid "+c+" `"+u+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},o[i],t);for(var p in f){var d=t[p];if(n(t,p)&&"function"!=typeof d)return m(a,c,u,p,w(d));if(!d)return new h("Invalid "+c+" `"+u+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var y=d(l,p,a,c,u+"."+p,r);if(y)return y}return null}))}};function d(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function y(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function o(o,a,c,l,s,p,d){if(l=l||f,p=p||c,d!==r){if(u){var y=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 y.name="Invariant Violation",y}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 h("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `null`."):new h("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 y((function(e,r,n,o,i,a){var c=e[r];return b(c)!==t?new h("Invalid "+o+" `"+i+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function m(t,e,r,n,o){return new h((t||"React class")+": "+e+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function g(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(g);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(!g(r.value))return!1}else for(;!(r=n.next()).done;){var o=r.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function b(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 w(t){if(null==t)return""+t;var e=b(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function x(t){var e=w(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return h.prototype=Error.prototype,p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},ij}function mj(){if(uj)return cj;uj=1;var t=dj();function e(){}function r(){}return r.resetWarningCache=e,cj=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}}function gj(){if(lj)return qS.exports;if(lj=1,"production"!==process.env.NODE_ENV){var t=fj();qS.exports=vj()(t.isElement,true)}else qS.exports=mj()();return qS.exports}var bj=Ze(gj()),wj=Object.getOwnPropertyNames,xj=Object.getOwnPropertySymbols,Oj=Object.prototype.hasOwnProperty;function Sj(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function jj(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 Pj(t){return wj(t).concat(xj(t))}var Aj=Object.hasOwn||function(t,e){return Oj.call(t,e)};function Mj(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var kj="_owner",Ej=Object.getOwnPropertyDescriptor,Cj=Object.keys;function _j(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 Tj(t,e){return Mj(t.getTime(),e.getTime())}function Dj(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],d=f[1],h=o.value,y=h[0],v=h[1];l||i[s]||!(l=r.equals(p,y,c,s,t,e,r)&&r.equals(d,v,p,y,t,e,r))||(i[s]=!0),s++}if(!l)return!1;c++}return!0}function Ij(t,e,r){var n,o=Cj(t),i=o.length;if(Cj(e).length!==i)return!1;for(;i-- >0;){if((n=o[i])===kj&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!Aj(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function Nj(t,e,r){var n,o,i,a=Pj(t),c=a.length;if(Pj(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===kj&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!Aj(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(o=Ej(t,n),i=Ej(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function Lj(t,e){return Mj(t.valueOf(),e.valueOf())}function Bj(t,e){return t.source===e.source&&t.flags===e.flags}function Rj(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 $j(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 zj="[object Arguments]",Hj="[object Boolean]",Fj="[object Date]",Vj="[object Map]",Uj="[object Number]",Wj="[object Object]",qj="[object RegExp]",Yj="[object Set]",Xj="[object String]",Kj=Array.isArray,Gj="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,Zj=Object.assign,Jj=Object.prototype.toString.call.bind(Object.prototype.toString);var Qj=tP();function tP(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?Nj:_j,areDatesEqual:Tj,areMapsEqual:n?Sj(Dj,Nj):Dj,areObjectsEqual:n?Nj:Ij,arePrimitiveWrappersEqual:Lj,areRegExpsEqual:Bj,areSetsEqual:n?Sj(Rj,Nj):Rj,areTypedArraysEqual:n?Nj:$j};if(r&&(o=Zj({},o,r(o))),e){var i=jj(o.areArraysEqual),a=jj(o.areMapsEqual),c=jj(o.areObjectsEqual),u=jj(o.areSetsEqual);o=Zj({},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(Kj(t))return e(t,l,s);if(null!=Gj&&Gj(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=Jj(t);return p===Fj?r(t,l,s):p===qj?a(t,l,s):p===Vj?n(t,l,s):p===Yj?c(t,l,s):p===Wj?"function"!=typeof t.then&&"function"!=typeof l.then&&o(t,l,s):p===zj?o(t,l,s):(p===Hj||p===Uj||p===Xj)&&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 eP(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 rP(t){return rP="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},rP(t)}function nP(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 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)||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(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var o=nP(n),i=o[0],a=o.slice(1);return"number"==typeof i?void eP(r.bind(null,a),i):(r(i),void eP(r.bind(null,a)))}"object"===rP(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 aP(t){return aP="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},aP(t)}function cP(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 uP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cP(Object(r),!0).forEach((function(e){lP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==aP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==aP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===aP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}tP({strict:!0}),tP({circular:!0}),tP({circular:!0,strict:!0}),tP({createInternalComparator:function(){return Mj}}),tP({strict:!0,createInternalComparator:function(){return Mj}}),tP({circular:!0,createInternalComparator:function(){return Mj}}),tP({circular:!0,createInternalComparator:function(){return Mj},strict:!0});var sP=function(t){return t},fP=function(t,e){return Object.keys(e).reduce((function(r,n){return uP(uP({},r),{},lP({},n,t(n,e[n])))}),{})},pP=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(",")},dP="production"!==process.env.NODE_ENV,hP=function(t,e,r,n,o,i,a,c){if(dP&&"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 yP(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);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)||mP(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 vP(t){return function(t){if(Array.isArray(t))return gP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||mP(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 mP(t,e){if(t){if("string"==typeof t)return gP(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)?gP(t,e):void 0}}function gP(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 bP=1e-4,wP=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},xP=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},OP=function(t,e){return function(r){var n=wP(t,e);return xP(n,r)}},SP=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=yP(u,4);n=l[0],o=l[1],i=l[2],a=l[3]}else hP(!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)}hP([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=OP(n,i),d=OP(o,a),h=(s=n,f=i,function(t){var e=wP(s,f),r=[].concat(vP(e.map((function(t,e){return t*e})).slice(1)),[0]);return xP(r,t)}),y=function(t){for(var e,r=t>1?1:t,n=r,o=0;o<8;++o){var i=p(n)-r,a=h(n);if(Math.abs(i-r)<bP||a<bP)return d(n);n=(e=n-i/a)>1?1:e<0?0:e}return d(n)};return y.isStepper=!1,y},jP=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 SP(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)<bP&&Math.abs(i)<bP?[e,0]:[c,i]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return SP(n);hP(!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:(hP(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function PP(t){return PP="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},PP(t)}function AP(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)||_P(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 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 kP(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){EP(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 EP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==PP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==PP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===PP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function CP(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);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)||_P(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 _P(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 DP=function(t,e,r){return t+(e-t)*r},IP=function(t){return t.from!==t.to},NP=function t(e,r,n){var o=fP((function(t,r){if(IP(r)){var n=CP(e(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return kP(kP({},r),{},{from:o,velocity:i})}return r}),r);return n<1?fP((function(t,e){return IP(e)?kP(kP({},e),{},{velocity:DP(e.velocity,o[t].velocity,n),from:DP(e.from,o[t].from,n)}):e}),r):t(e,o,n-1)},LP=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 kP(kP({},r),{},EP({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return kP(kP({},r),{},EP({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,d=function(){return null};return d=r.isStepper?function(n){c||(c=n);var i=(n-c)/r.dt;f=NP(r,f,i),o(kP(kP(kP({},t),e),fP((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(IP).length&&(p=requestAnimationFrame(d))}:function(i){u||(u=i);var a=(i-u)/n,c=fP((function(t,e){return DP.apply(void 0,AP(e).concat([r(a)]))}),s);if(o(kP(kP(kP({},t),e),c)),a<1)p=requestAnimationFrame(d);else{var l=fP((function(t,e){return DP.apply(void 0,AP(e).concat([r(1)]))}),s);o(kP(kP(kP({},t),e),l))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(p)}}};function BP(t){return BP="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},BP(t)}var RP=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function $P(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 zP(t){return function(t){if(Array.isArray(t))return HP(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 HP(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 HP(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 HP(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 FP(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?FP(Object(r),!0).forEach((function(e){UP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):FP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function UP(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 WP(t,e,r){return e&&function(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)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function qP(t){var e=function(t,e){if("object"!==BP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==BP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===BP(e)?e:String(e)}function YP(t,e){return YP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},YP(t,e)}function XP(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 KP(this,r)}}function KP(t,e){if(e&&("object"===BP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return GP(t)}function GP(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ZP(t){return ZP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ZP(t)}var JP=function(t){!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)}(r,et);var e=XP(r);function r(t,n){var o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var i=(o=e.call(this,t,n)).props,a=i.isActive,c=i.attributeName,u=i.from,l=i.to,s=i.steps,f=i.children,p=i.duration;if(o.handleStyleChange=o.handleStyleChange.bind(GP(o)),o.changeStyle=o.changeStyle.bind(GP(o)),!a||p<=0)return o.state={style:{}},"function"==typeof f&&(o.state={style:l}),KP(o);if(s&&s.length)o.state={style:s[0].style};else if(u){if("function"==typeof f)return o.state={style:u},KP(o);o.state={style:c?UP({},c,u):u}}else o.state={style:{}};return o}return WP(r,[{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(!(Qj(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?UP({},o,s):s};(o&&u[o]!==s||!o&&u!==s)&&this.setState(f)}this.runAnimation(VP(VP({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?UP({},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=LP(r,n,jP(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(zP(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(zP(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:i,easing:c}),i]);var d=pP(p,i,c),h=VP(VP(VP({},f.style),u),{},{transition:d});return[].concat(zP(t),[h,i,s]).filter(sP)}),[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=iP());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?UP({},n,o):o,p=pP(Object.keys(f),r,i);s.start([a,e,VP(VP({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children;t.begin;var r=t.duration;t.attributeName,t.easing;var n=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var o=$P(t,RP),i=tt.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===i||r<=0)return e;var c=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,i=e.className;return lt(t,VP(VP({},o),{},{style:VP(VP({},n),a),className:i}))};return 1===i?c(tt.only(e)):J.createElement("div",null,tt.map(e,(function(t){return c(t)})))}}]),r}();function QP(t){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 tA(){return tA=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},tA.apply(this,arguments)}function eA(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);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 rA(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 rA(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 rA(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 nA(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 oA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nA(Object(r),!0).forEach((function(e){iA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function iA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=QP(t)||!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:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}JP.displayName="Animate",JP.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},JP.propTypes={from:bj.oneOfType([bj.object,bj.string]),to:bj.oneOfType([bj.object,bj.string]),attributeName:bj.string,duration:bj.number,begin:bj.number,easing:bj.oneOfType([bj.string,bj.func]),steps:bj.arrayOf(bj.shape({duration:bj.number.isRequired,style:bj.object.isRequired,easing:bj.oneOfType([bj.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),bj.func]),properties:bj.arrayOf("string"),onAnimationEnd:bj.func})),children:bj.oneOfType([bj.node,bj.func]),isActive:bj.bool,canBegin:bj.bool,onAnimationEnd:bj.func,shouldReAnimate:bj.bool,onAnimationStart:bj.func,onAnimationReStart:bj.func},bj.object,bj.object,bj.object,bj.element,bj.object,bj.object,bj.object,bj.oneOfType([bj.array,bj.element]),bj.any;var aA=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},cA=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},uA={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},lA=function(t){var e=oA(oA({},uA),t),r=nt(),n=eA(it(-1),2),o=n[0],i=n[1];ct((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&i(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.width,l=e.height,s=e.radius,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,y=e.isAnimationActive,v=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||0===u||0===l)return null;var m=mn("recharts-rectangle",f);return v?J.createElement(JP,{canBegin:o>0,from:{width:u,height:l,x:a,y:c},to:{width:u,height:l,x:a,y:c},duration:d,animationEasing:p,isActive:v},(function(t){var n=t.width,i=t.height,a=t.x,c=t.y;return J.createElement(JP,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,isActive:y,easing:p},J.createElement("path",tA({},Ya(e,!0),{className:m,d:aA(a,c,n,i,s),ref:r})))})):J.createElement("path",tA({},Ya(e,!0),{className:m,d:aA(a,c,u,l,s)}))};function sA(){return sA=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},sA.apply(this,arguments)}var fA=function(t){var e=t.cx,r=t.cy,n=t.r,o=mn("recharts-dot",t.className);return e===+e&&r===+r&&n===+n?J.createElement("circle",sA({},Ya(t,!1),_a(t),{className:o,cx:e,cy:r,r:n})):null};function pA(t){return pA="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},pA(t)}var dA=["x","y","top","left","width","height","className"];function hA(){return hA=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},hA.apply(this,arguments)}function yA(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 vA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=pA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=pA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mA(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(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 gA,bA,wA,xA,OA=function(t,e,r,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(e,"h").concat(r)},SA=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,o=void 0===n?0:n,i=t.top,a=void 0===i?0:i,c=t.left,u=void 0===c?0:c,l=t.width,s=void 0===l?0:l,f=t.height,p=void 0===f?0:f,d=t.className,h=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yA(Object(r),!0).forEach((function(e){vA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:o,top:a,left:u,width:s,height:p},mA(t,dA));return ma(r)&&ma(o)&&ma(s)&&ma(p)&&ma(a)&&ma(u)?J.createElement("path",hA({},Ya(h,!0),{className:mn("recharts-cross",d),d:OA(r,o,s,p,a,u)})):null};var jA,PA,AA=function(){if(xA)return wA;xA=1;var t=bi(),e=function(){if(bA)return gA;bA=1;var t=Qf()(Object.getPrototypeOf,Object);return gA=t}(),r=wi(),n=Function.prototype,o=Object.prototype,i=n.toString,a=o.hasOwnProperty,c=i.call(Object);return wA=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var o=e(n);if(null===o)return!0;var u=a.call(o,"constructor")&&o.constructor;return"function"==typeof u&&u instanceof u&&i.call(u)==c}}(),MA=Ze(AA);var kA=Ze(function(){if(PA)return jA;PA=1;var t=bi(),e=wi();return jA=function(r){return!0===r||!1===r||e(r)&&"[object Boolean]"==t(r)}}());function EA(t){return EA="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},EA(t)}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 _A(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);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 TA(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 TA(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 TA(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 DA(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 IA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?DA(Object(r),!0).forEach((function(e){NA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):DA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function NA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=EA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=EA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==EA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var LA,BA,RA,$A,zA,HA,FA,VA,UA=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")},WA={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},qA=function(t){var e=IA(IA({},WA),t),r=nt(),n=_A(it(-1),2),o=n[0],i=n[1];ct((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&i(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.upperWidth,l=e.lowerWidth,s=e.height,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,y=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||s!==+s||0===u&&0===l||0===s)return null;var v=mn("recharts-trapezoid",f);return y?J.createElement(JP,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:u,lowerWidth:l,height:s,x:a,y:c},duration:d,animationEasing:p,isActive:y},(function(t){var n=t.upperWidth,i=t.lowerWidth,a=t.height,c=t.x,u=t.y;return J.createElement(JP,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,easing:p},J.createElement("path",CA({},Ya(e,!0),{className:v,d:UA(c,u,n,i,a),ref:r})))})):J.createElement("g",null,J.createElement("path",CA({},Ya(e,!0),{className:v,d:UA(a,c,u,l,s)})))},YA=["option","shapeType","propTransformer","activeClassName","isActive"];function XA(t){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)}function KA(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(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 GA(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 ZA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?GA(Object(r),!0).forEach((function(e){JA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):GA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function JA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=XA(t)||!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:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function QA(t,e){return ZA(ZA({},e),t)}function tM(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return J.createElement(lA,r);case"trapezoid":return J.createElement(qA,r);case"sector":return J.createElement(DS,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return J.createElement(Hu,r);break;default:return null}}function eM(t){var e,r=t.option,n=t.shapeType,o=t.propTransformer,i=void 0===o?QA:o,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,u=t.isActive,l=KA(t,YA);if(Q(r))e=lt(r,ZA(ZA({},l),function(t){return Q(t)?t.props:t}(r)));else if(Qi(r))e=r(l);else if(MA(r)&&!kA(r)){var s=i(r,l);e=J.createElement(tM,{shapeType:n,elementProps:s})}else{var f=l;e=J.createElement(tM,{shapeType:n,elementProps:f})}return u?J.createElement(wc,{className:c},e):e}function rM(t,e){return null!=e&&"trapezoids"in t.props}function nM(t,e){return null!=e&&"sectors"in t.props}function oM(t,e){return null!=e&&"points"in t.props}function iM(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 aM(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function cM(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function uM(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,o=function(t,e){var r;return rM(t,e)?r="trapezoids":nM(t,e)?r="sectors":oM(t,e)&&(r="points"),r}(r,e),i=function(t,e){var r,n;return rM(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:nM(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:oM(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=$w(i,t),c=r.props[o].filter((function(t){var n=function(t,e){var r;return rM(t,e)?r=iM:nM(t,e)?r=aM:oM(t,e)&&(r=cM),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 lM(){if($A)return RA;$A=1;var t=Rh(),e=1/0;return RA=function(r){return r?(r=t(r))===e||r===-1/0?17976931348623157e292*(r<0?-1:1):r==r?r:0:0===r?r:0}}function sM(){if(HA)return zA;HA=1;var t=function(){if(BA)return LA;BA=1;var t=Math.ceil,e=Math.max;return LA=function(r,n,o,i){for(var a=-1,c=e(t((n-r)/(o||1)),0),u=Array(c);c--;)u[i?c:++a]=r,r+=o;return u}}(),e=Bd(),r=lM();return zA=function(n){return function(o,i,a){return a&&"number"!=typeof a&&e(o,i,a)&&(i=a=void 0),o=r(o),void 0===i?(i=o,o=0):i=r(i),a=void 0===a?o<i?1:-1:r(a),t(o,i,a,n)}}}var fM=function(){if(VA)return FA;VA=1;var t=sM()();return FA=t}(),pM=Ze(fM);function dM(t){return dM="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},dM(t)}function hM(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 yM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hM(Object(r),!0).forEach((function(e){vM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=dM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=dM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==dM(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var mM=["Webkit","Moz","O","ms"];function gM(t){return gM="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},gM(t)}function bM(){return bM=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},bM.apply(this,arguments)}function wM(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 xM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wM(Object(r),!0).forEach((function(e){MM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function OM(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,kM(n.key),n)}}function SM(t,e,r){return e=PM(e),function(t,e){if(e&&("object"===gM(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)}(t,jM()?Reflect.construct(e,r||[],PM(t).constructor):e.apply(t,r))}function jM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(jM=function(){return!!t})()}function PM(t){return PM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},PM(t)}function AM(t,e){return AM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},AM(t,e)}function MM(t,e,r){return(e=kM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kM(t){var e=function(t,e){if("object"!=gM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=gM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gM(e)?e:e+""}var EM,CM,_M,TM,DM=function(t){return t.changedTouches&&!!t.changedTouches.length},IM=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),MM(r=SM(this,e,[t]),"handleDrag",(function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)})),MM(r,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),MM(r,"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:e,startIndex:o})})),r.detachDragEndListener()})),MM(r,"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),MM(r,"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),MM(r,"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),MM(r,"handleSlideDragStart",(function(t){var e=DM(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return 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&&AM(t,e)}(e,et),r=e,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,o=this.state.scaleValues,i=this.props,a=i.gap,c=i.data.length-1,u=Math.min(r,n),l=Math.max(r,n),s=e.getIndexInRange(o,u),f=e.getIndexInRange(o,l);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=vO(r[t],o,t);return Qi(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 d=this.getIndex({startX:n+p,endX:o+p});d.startIndex===l&&d.endIndex===s||!f||f(d),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=DM(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=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,o=e.endX,i=e.startX,a=this.state[n],c=this.props,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,d=c.data,h={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,u+l-s-a):y<0&&(y=Math.max(y,u-a)),h[n]=a+y;var v=this.getIndex(h),m=v.startIndex,g=v.endIndex;this.setState(MM(MM({},n,a+y),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=d.length-1,("startX"===n&&(o>i?m%p==0:g%p==0)||o<i&&g===t||"endX"===n&&(o>i?g%p==0:m%p==0)||o>i&&g===t)&&f(v))}))}},{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(MM({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.fill,a=t.stroke;return J.createElement("rect",{stroke:a,fill:i,x:e,y:r,width:n,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.data,a=t.children,c=t.padding,u=tt.only(a);return u?J.cloneElement(u,{x:e,y:r,width:n,height:o,margin:c,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(t,r){var n,o,i=this,a=this.props,c=a.y,u=a.travellerWidth,l=a.height,s=a.traveller,f=a.ariaLabel,p=a.data,d=a.startIndex,h=a.endIndex,y=Math.max(t,this.props.x),v=xM(xM({},Ya(this.props,!1)),{},{x:y,y:c,width:u,height:l}),m=f||"Min value: ".concat(null===(n=p[d])||void 0===n?void 0:n.name,", Max value: ").concat(null===(o=p[h])||void 0===o?void 0:o.name);return J.createElement(wc,{tabIndex:0,role:"slider","aria-label":m,"aria-valuenow":t,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(),i.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){i.setState({isTravellerFocused:!0})},onBlur:function(){i.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(s,v))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,o=r.height,i=r.stroke,a=r.travellerWidth,c=Math.min(t,e)+a,u=Math.max(Math.abs(e-t)-a,0);return J.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:c,y:n,width:u,height:o})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,o=t.height,i=t.travellerWidth,a=t.stroke,c=this.state,u=c.startX,l=c.endX,s={pointerEvents:"none",fill:a};return J.createElement(wc,{className:"recharts-brush-texts"},J.createElement(Ty,bM({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:n+o/2},s),this.getTextOfTick(e)),J.createElement(Ty,bM({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+i+5,y:n+o/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,o=t.x,i=t.y,a=t.width,c=t.height,u=t.alwaysShowText,l=this.state,s=l.startX,f=l.endX,p=l.isTextActive,d=l.isSlideMoving,h=l.isTravellerMoving,y=l.isTravellerFocused;if(!e||!e.length||!ma(o)||!ma(i)||!ma(a)||!ma(c)||a<=0||c<=0)return null;var v,m,g,b,w=mn("recharts-brush",r),x=1===J.Children.count(n),O=(m="none",g=(v="userSelect").replace(/(\w)/,(function(t){return t.toUpperCase()})),(b=mM.reduce((function(t,e){return yM(yM({},t),{},vM({},e+g,m))}),{}))[v]=m,b);return J.createElement(wc,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(p||d||h||y||u)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,o=t.height,i=t.stroke,a=Math.floor(r+o/2)-1;return J.createElement(J.Fragment,null,J.createElement("rect",{x:e,y:r,width:n,height:o,fill:i,stroke:"none"}),J.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),J.createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return J.isValidElement(t)?J.cloneElement(t,r):Qi(t)?t(r):e.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 xM({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=cv().domain(pM(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}}],n&&OM(r.prototype,n),o&&OM(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();MM(IM,"displayName","Brush"),MM(IM,"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 NM,LM,BM,RM,$M=function(){if(TM)return _M;TM=1;var t=Gl(),e=hp(),r=function(){if(CM)return EM;CM=1;var t=Ed();return EM=function(e,r){var n;return t(e,(function(t,e,o){return!(n=r(t,e,o))})),!!n}}(),n=yi(),o=Bd();return _M=function(i,a,c){var u=n(i)?t:r;return c&&o(i,a,c)&&(a=void 0),u(i,e(a,3))}}(),zM=Ze($M),HM=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e};var FM,VM,UM,WM,qM,YM,XM=function(){if(RM)return BM;RM=1;var t=function(){if(LM)return NM;LM=1;var t=Id();return NM=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n},NM}(),e=kd(),r=hp();return BM=function(n,o){var i={};return o=r(o,3),e(n,(function(e,r,n){t(i,r,o(e,r,n))})),i},BM}(),KM=Ze(XM);var GM=function(){if(YM)return qM;YM=1;var t=(VM||(VM=1,FM=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}),FM),e=function(){if(WM)return UM;WM=1;var t=Ed();return UM=function(e,r){var n=!0;return t(e,(function(t,e,o){return n=!!r(t,e,o)})),n}}(),r=hp(),n=yi(),o=Bd();return qM=function(i,a,c){var u=n(i)?t:e;return c&&o(i,a,c)&&(a=void 0),u(i,r(a,3))}}(),ZM=Ze(GM),JM=["x","y"];function QM(t){return QM="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},QM(t)}function tk(){return tk=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},tk.apply(this,arguments)}function ek(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 rk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ek(Object(r),!0).forEach((function(e){nk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ek(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function nk(t,e,r){return e=function(t){var e=function(t,e){if("object"!=QM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=QM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==QM(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ok(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(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 ik(t,e){var r=t.x,n=t.y,o=ok(t,JM),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 rk(rk(rk(rk(rk({},e),o),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function ak(t){return J.createElement(eM,tk({shapeType:"rectangle",propTransformer:ik,activeClassName:"recharts-active-bar"},t))}var ck,uk=["value","background"];function lk(t){return lk="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},lk(t)}function sk(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(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 fk(){return fk=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},fk.apply(this,arguments)}function pk(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 dk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pk(Object(r),!0).forEach((function(e){bk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hk(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,wk(n.key),n)}}function yk(t,e,r){return e=mk(e),function(t,e){if(e&&("object"===lk(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)}(t,vk()?Reflect.construct(e,r||[],mk(t).constructor):e.apply(t,r))}function vk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(vk=function(){return!!t})()}function mk(t){return mk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mk(t)}function gk(t,e){return gk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gk(t,e)}function bk(t,e,r){return(e=wk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wk(t){var e=function(t,e){if("object"!=lk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==lk(e)?e:e+""}var xk=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return bk(t=yk(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),bk(t,"id",wa("recharts-bar-")),bk(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),bk(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return 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&&gk(t,e)}(e,et),r=e,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,o=r.dataKey,i=r.activeIndex,a=r.activeBar,c=Ya(this.props,!1);return t&&t.map((function(t,r){var u=r===i,l=u?a:n,s=dk(dk(dk({},c),t),{},{isActive:u,option:l,index:r,dataKey:o,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return J.createElement(wc,fk({className:"recharts-bar-rectangle"},Ta(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value)}),J.createElement(ak,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevData;return J.createElement(JP,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var o=e.t,i=r.map((function(t,e){var r=l&&l[e];if(r){var i=Sa(r.x,t.x),a=Sa(r.y,t.y),c=Sa(r.width,t.width),u=Sa(r.height,t.height);return dk(dk({},t),{},{x:i(o),y:a(o),width:c(o),height:u(o)})}if("horizontal"===n){var s=Sa(0,t.height)(o);return dk(dk({},t),{},{y:t.y+t.height-s,height:s})}var f=Sa(0,t.width)(o);return dk(dk({},t),{},{width:f})}));return J.createElement(wc,null,t.renderRectanglesStatically(i))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&$w(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,o=e.activeIndex,i=Ya(this.props.background,!1);return r.map((function(e,r){e.value;var a=e.background,c=sk(e,uk);if(!a)return null;var u=dk(dk(dk(dk(dk({},c),{},{fill:"#eee"},a),i),Ta(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return J.createElement(ak,fk({key:"background-bar-".concat(r),option:t.props.background,isActive:r===o},u))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,o=r.xAxis,i=r.yAxis,a=r.layout,c=Fa(r.children,oO);if(!c)return null;var u="vertical"===a?n[0].height/2:n[0].width/2,l=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:vO(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return J.createElement(wc,s,c.map((function(t){return J.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:o,yAxis:i,layout:a,offset:u,dataPointFormatter:l})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,o=t.xAxis,i=t.yAxis,a=t.left,c=t.top,u=t.width,l=t.height,s=t.isAnimationActive,f=t.background,p=t.id;if(e||!r||!r.length)return null;var d=this.state.isAnimationFinished,h=mn("recharts-bar",n),y=o&&o.allowDataOverflow,v=i&&i.allowDataOverflow,m=y||v,g=Ki(p)?this.id:p;return J.createElement(wc,{className:h},y||v?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(g)},J.createElement("rect",{x:y?a:a-u/2,y:v?c:c-l/2,width:y?u:2*u,height:v?l:2*l}))):null,J.createElement(wc,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(g,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,g),(!s||d)&&jS.renderCallByParent(this.props,r))}}],o=[{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}}],n&&hk(r.prototype,n),o&&hk(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();function Ok(t){return Ok="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},Ok(t)}function Sk(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,Mk(n.key),n)}}function jk(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 Pk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jk(Object(r),!0).forEach((function(e){Ak(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ak(t,e,r){return(e=Mk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mk(t){var e=function(t,e){if("object"!=Ok(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ok(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ok(e)?e:e+""}ck=xk,bk(xk,"displayName","Bar"),bk(xk,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ph.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),bk(xk,"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,d=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(!d)return null;var h=e.layout,y=r.type.defaultProps,v=void 0!==y?dk(dk({},y),r.props):r.props,m=v.dataKey,g=v.children,b=v.minPointSize,w="horizontal"===h?a:i,x=l?w.scale.domain():null,O=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:w}),S=Fa(g,Kh),j=f.map((function(t,e){var n,f,p,y,v,g;l?n=function(t,e){if(!e||2!==e.length||!ma(e[0])||!ma(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(!ma(t[0])||t[0]<r)&&(o[0]=r),(!ma(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=vO(t,m),Array.isArray(n)||(n=[O,n]));var w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var o="number"==typeof r;return o?t(r,n):(o||("production"!==process.env.NODE_ENV?Ux(0,"minPointSize callback function received a value with type of ".concat(QM(r),". Currently only numbers are supported.")):Ux()),e)}}(b,ck.defaultProps.minPointSize)(n[1],e);if("horizontal"===h){var j,P=[a.scale(n[0]),a.scale(n[1])],A=P[0],M=P[1];f=EO({axis:i,ticks:c,bandSize:o,offset:d.offset,entry:t,index:e}),p=null!==(j=null!=M?M:A)&&void 0!==j?j:void 0,y=d.size;var k=A-M;if(v=Number.isNaN(k)?0:k,g={x:f,y:a.y,width:y,height:a.height},Math.abs(w)>0&&Math.abs(v)<Math.abs(w)){var E=ya(v||w)*(Math.abs(w)-Math.abs(v));p-=E,v+=E}}else{var C=[i.scale(n[0]),i.scale(n[1])],_=C[0],T=C[1];if(f=_,p=EO({axis:a,ticks:u,bandSize:o,offset:d.offset,entry:t,index:e}),y=T-_,v=d.size,g={x:i.x,y:p,width:i.width,height:v},Math.abs(w)>0&&Math.abs(y)<Math.abs(w))y+=ya(y||w)*(Math.abs(w)-Math.abs(y))}return dk(dk(dk({},t),{},{x:f,y:p,width:y,height:v,value:l?n:n[1],payload:t,background:g},S&&S[e]&&S[e].props),{},{tooltipPayload:[LO(r,t)],tooltipPosition:{x:f+y/2,y:p+v/2}})}));return dk({data:j,layout:h},p)}));var kk=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=!!Va(u,xk);return l.reduce((function(i,a){var u,l,p,d,h,y=e[a],v=y.orientation,m=y.domain,g=y.padding,b=void 0===g?{}:g,w=y.mirror,x=y.reversed,O="".concat(v).concat(w?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var S=m[1]-m[0],j=1/0,P=y.categoricalDomain.sort();if(P.forEach((function(t,e){e>0&&(j=Math.min((t||0)-(P[e-1]||0),j))})),Number.isFinite(j)){var A=j/S,M="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(u=A*M/2),"no-gap"===y.padding){var k=xa(t.barCategoryGap,A*M),E=A*M/2;u=E-k-(E-k)/M*k}}}l="xAxis"===n?[r.left+(b.left||0)+(u||0),r.left+r.width-(b.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(u||0),r.top+r.height-(b.bottom||0)-(u||0)]:y.range,x&&(l=[l[1],l[0]]);var C=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:iv(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:Em(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:cv(),realScaleType:"point"}:"category"===o?{scale:iv(),realScaleType:"band"}:{scale:Em(),realScaleType:"linear"};if(Ji(n)){var c="scale".concat(Mc(n));return{scale:(ww[c]||cv)(),realScaleType:ww[c]?c:"point"}}return Qi(n)?{scale:n}:{scale:cv(),realScaleType:"point"}}(y,o,f),_=C.scale,T=C.realScaleType;_.domain(m).range(l),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])-PO,i=Math.max(n[0],n[1])+PO,a=t(e[0]),c=t(e[r-1]);(a<o||a>i||c<o||c>i)&&t.domain([e[0],e[r-1]])}}(_);var D=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=zx(u,o,a);return t.domain([Dw(l),Mw(l)]),{niceTicks:l}}if(o&&"number"===n){var s=t.domain();return{niceTicks:Hx(s,o,a)}}return null}(_,Pk(Pk({},y),{},{realScaleType:T}));"xAxis"===n?(h="top"===v&&!w||"bottom"===v&&w,p=r.left,d=s[O]-h*y.height):"yAxis"===n&&(h="left"===v&&!w||"right"===v&&w,p=s[O]-h*y.width,d=r.top);var I=Pk(Pk(Pk({},y),D),{},{realScaleType:T,x:p,y:d,scale:_,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return I.bandSize=IO(I,D),y.hide||"xAxis"!==n?y.hide||(s[O]+=(h?-1:1)*I.width):s[O]+=(h?-1:1)*I.height,Pk(Pk({},i),{},Ak({},a,I))}),{})},Ek=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)}},Ck=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}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&&Sk(e.prototype,r),n&&Sk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();Ak(Ck,"EPS",1e-4);var _k=function(t){var e=Object.keys(t).reduce((function(e,r){return Pk(Pk({},e),{},Ak({},r,Ck.create(t[r])))}),{});return Pk(Pk({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return KM(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:o})}))},isInRange:function(t){return ZM(t,(function(t,r){return e[r].isInRange(t)}))}})};var Tk,Dk,Ik,Nk,Lk,Bk,Rk,$k,zk=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 Hk(){if(Bk)return Lk;Bk=1;var t=yp(),e=hp(),r=function(){if(Nk)return Ik;Nk=1;var t=lM();return Ik=function(e){var r=t(e),n=r%1;return r==r?n?r-n:r:0}}(),n=Math.max;return Lk=function(o,i,a){var c=null==o?0:o.length;if(!c)return-1;var u=null==a?0:r(a);return u<0&&(u=n(c+u,0)),t(o,e(i,3),u)},Lk}!function(){if($k)return Rk;$k=1;var t=function(){if(Dk)return Tk;Dk=1;var t=hp(),e=ep(),r=rp();return Tk=function(n){return function(o,i,a){var c=Object(o);if(!e(o)){var u=t(i,3);o=r(o),i=function(t){return u(c[t],t,c)}}var l=n(o,i,a);return l>-1?c[u?o[l]:l]:void 0}}}(),e=t(Hk());Rk=e}();var Fk=Ze(Li())((function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}}),(function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}));function Vk(t){return Vk="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},Vk(t)}var Uk=pt(void 0),Wk=pt(void 0),qk=pt(void 0),Yk=pt({}),Xk=pt(void 0),Kk=pt(0),Gk=pt(0),Zk=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,o=e.offset,i=t.clipPathId,a=t.children,c=t.width,u=t.height,l=Fk(o);return J.createElement(Uk.Provider,{value:r},J.createElement(Wk.Provider,{value:n},J.createElement(Yk.Provider,{value:o},J.createElement(qk.Provider,{value:l},J.createElement(Xk.Provider,{value:i},J.createElement(Kk.Provider,{value:u},J.createElement(Gk.Provider,{value:c},a)))))))};function Jk(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var Qk=function(t){var e=ft(Uk);null==e&&("production"!==process.env.NODE_ENV?Ux(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Ux());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?Ux(0,'Could not find xAxis by id "'.concat(t,'" [').concat(Vk(t),"]. ").concat(Jk(e))):Ux()),r},tE=function(t){var e=ft(Wk);null==e&&("production"!==process.env.NODE_ENV?Ux(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Ux());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?Ux(0,'Could not find yAxis by id "'.concat(t,'" [').concat(Vk(t),"]. ").concat(Jk(e))):Ux()),r},eE=function(){return ft(Gk)},rE=function(){return ft(Kk)};function nE(t){return nE="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},nE(t)}function oE(t,e,r){return e&&function(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,pE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function iE(t,e,r){return e=cE(e),function(t,e){if(e&&("object"===nE(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)}(t,aE()?Reflect.construct(e,r||[],cE(t).constructor):e.apply(t,r))}function aE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(aE=function(){return!!t})()}function cE(t){return cE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cE(t)}function uE(t,e){return uE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},uE(t,e)}function lE(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 sE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lE(Object(r),!0).forEach((function(e){fE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fE(t,e,r){return(e=pE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pE(t){var e=function(t,e){if("object"!=nE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=nE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nE(e)?e:e+""}function dE(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);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 hE(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 hE(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 hE(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 yE(){return yE=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},yE.apply(this,arguments)}function vE(t){var e=t.x,r=t.y,n=t.segment,o=t.xAxisId,i=t.yAxisId,a=t.shape,c=t.className,u=t.alwaysShow,l=ft(Xk),s=Qk(o),f=tE(i),p=ft(qk);if(!l||!p)return null;Oc(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=function(t,e,r,n,o,i,a,c,u){var l=o.x,s=o.y,f=o.width,p=o.height;if(r){var d=u.y,h=t.y.apply(d,{position:i});if(HM(u,"discard")&&!t.y.isInRange(h))return null;var y=[{x:l+f,y:h},{x:l,y:h}];return"left"===c?y.reverse():y}if(e){var v=u.x,m=t.x.apply(v,{position:i});if(HM(u,"discard")&&!t.x.isInRange(m))return null;var g=[{x:m,y:s+p},{x:m,y:s}];return"top"===a?g.reverse():g}if(n){var b=u.segment.map((function(e){return t.apply(e,{position:i})}));return HM(u,"discard")&&zM(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(_k({x:s.scale,y:f.scale}),ga(e),ga(r),n&&2===n.length,p,t.position,s.orientation,f.orientation,t);if(!d)return null;var h=dE(d,2),y=h[0],v=y.x,m=y.y,g=h[1],b=g.x,w=g.y,x=sE(sE({clipPath:HM(t,"hidden")?"url(#".concat(l,")"):void 0},Ya(t,!0)),{},{x1:v,y1:m,x2:b,y2:w});return J.createElement(wc,{className:mn("recharts-reference-line",c)},function(t,e){return J.isValidElement(t)?J.cloneElement(t,e):Qi(t)?t(e):J.createElement("line",yE({},e,{className:"recharts-reference-line-line"}))}(a,x),cS.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,o=t.y2;return Ek({x:e,y:r},{x:n,y:o})}({x1:v,y1:m,x2:b,y2:w})))}var mE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),iE(this,e,arguments)}return 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&&uE(t,e)}(e,J.Component),oE(e,[{key:"render",value:function(){return J.createElement(vE,this.props)}}])}();function gE(){return gE=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},gE.apply(this,arguments)}function bE(t){return bE="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},bE(t)}function wE(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 xE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wE(Object(r),!0).forEach((function(e){ME(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function OE(t,e,r){return e&&function(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,kE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function SE(t,e,r){return e=PE(e),function(t,e){if(e&&("object"===bE(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)}(t,jE()?Reflect.construct(e,r||[],PE(t).constructor):e.apply(t,r))}function jE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(jE=function(){return!!t})()}function PE(t){return PE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},PE(t)}function AE(t,e){return AE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},AE(t,e)}function ME(t,e,r){return(e=kE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kE(t){var e=function(t,e){if("object"!=bE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=bE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bE(e)?e:e+""}fE(mE,"displayName","ReferenceLine"),fE(mE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var EE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),SE(this,e,arguments)}return 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&&AE(t,e)}(e,J.Component),OE(e,[{key:"render",value:function(){var t=this.props,r=t.x,n=t.y,o=t.r,i=t.alwaysShow,a=t.clipPathId,c=ga(r),u=ga(n);if(Oc(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=_k({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return HM(t,"discard")&&!i.isInRange(a)?null:a}(this.props);if(!l)return null;var s=l.x,f=l.y,p=this.props,d=p.shape,h=p.className,y=xE(xE({clipPath:HM(this.props,"hidden")?"url(#".concat(a,")"):void 0},Ya(this.props,!0)),{},{cx:s,cy:f});return J.createElement(wc,{className:mn("recharts-reference-dot",h)},e.renderDot(d,y),cS.renderCallByParent(this.props,{x:s-o,y:f-o,width:2*o,height:2*o}))}}])}();function CE(){return CE=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},CE.apply(this,arguments)}function _E(t){return _E="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},_E(t)}function TE(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 DE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?TE(Object(r),!0).forEach((function(e){$E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):TE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function IE(t,e,r){return e&&function(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,zE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function NE(t,e,r){return e=BE(e),function(t,e){if(e&&("object"===_E(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)}(t,LE()?Reflect.construct(e,r||[],BE(t).constructor):e.apply(t,r))}function LE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(LE=function(){return!!t})()}function BE(t){return BE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},BE(t)}function RE(t,e){return RE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},RE(t,e)}function $E(t,e,r){return(e=zE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zE(t){var e=function(t,e){if("object"!=_E(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_E(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_E(e)?e:e+""}ME(EE,"displayName","ReferenceDot"),ME(EE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),ME(EE,"renderDot",(function(t,e){return J.isValidElement(t)?J.cloneElement(t,e):Qi(t)?t(e):J.createElement(fA,gE({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))}));var HE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),NE(this,e,arguments)}return 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&&RE(t,e)}(e,J.Component),IE(e,[{key:"render",value:function(){var t=this.props,r=t.x1,n=t.x2,o=t.y1,i=t.y2,a=t.className,c=t.alwaysShow,u=t.clipPathId;Oc(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=ga(r),s=ga(n),f=ga(o),p=ga(i),d=this.props.shape;if(!(l||s||f||p||d))return null;var h=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=_k({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},d={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!HM(o,"discard")||f.isInRange(p)&&f.isInRange(d)?Ek(p,d):null}(l,s,f,p,this.props);if(!h&&!d)return null;var y=HM(this.props,"hidden")?"url(#".concat(u,")"):void 0;return J.createElement(wc,{className:mn("recharts-reference-area",a)},e.renderRect(d,DE(DE({clipPath:y},Ya(this.props,!0)),h)),cS.renderCallByParent(this.props,h))}}])}();function FE(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)n.push(t[o]);return n}function VE(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 UE(t){return UE="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},UE(t)}function WE(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 qE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?WE(Object(r),!0).forEach((function(e){YE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):WE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function YE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=UE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=UE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==UE(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XE(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(ma(u)||ph.isSsr)return function(t,e){return FE(t,e+1)}(o,"number"==typeof u&&ma(u)?u:0);var p=[],d="top"===c||"bottom"===c?"width":"height",h=s&&"width"===d?ny(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(t,n){var o=Qi(l)?l(t.value,n):t.value;return"width"===d?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return zk(n,r)}(ny(o,{fontSize:e,letterSpacing:r}),h,f):ny(o,{fontSize:e,letterSpacing:r})[d]},v=o.length>=2?ya(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,d);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:FE(n,s)};var i,a=l,p=function(){return void 0===i&&(i=r(e,a)),i},d=e.coordinate,h=0===l||VE(t,d,p,f,u);h||(l=0,f=c,s+=1),h&&(f=d+t*(p()/2+o),l+=s)};s<=a.length;)if(i=p())return i.v;return[]}(v,m,y,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=qE(qE({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),VE(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+o),a[c-1]=qE(qE({},s),{},{isShow:!0}))}for(var d=i?c-1:c,h=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=qE(qE({},i),{},{tickCoord:s<0?i.coordinate-s*t:i.coordinate})}else a[e]=i=qE(qE({},i),{},{tickCoord:i.coordinate});VE(t,i.tickCoord,c,u,l)&&(u=i.tickCoord+t*(c()/2+o),a[e]=qE(qE({},i),{},{isShow:!0}))},y=0;y<d;y++)h(y);return a}(v,m,y,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=qE(qE({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else i[e]=l=qE(qE({},l),{},{tickCoord:l.coordinate});VE(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+o),i[e]=qE(qE({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return i}(v,m,y,o,a),p.filter((function(t){return t.isShow})))}$E(HE,"displayName","ReferenceArea"),$E(HE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),$E(HE,"renderRect",(function(t,e){return J.isValidElement(t)?J.cloneElement(t,e):Qi(t)?t(e):J.createElement(lA,CE({},e,{className:"recharts-reference-area-rect"}))}));var KE=["viewBox"],GE=["viewBox"],ZE=["ticks"];function JE(t){return JE="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},JE(t)}function QE(){return QE=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},QE.apply(this,arguments)}function tC(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 eC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tC(Object(r),!0).forEach((function(e){uC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function rC(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(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 nC(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,lC(n.key),n)}}function oC(t,e,r){return e=aC(e),function(t,e){if(e&&("object"===JE(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)}(t,iC()?Reflect.construct(e,r||[],aC(t).constructor):e.apply(t,r))}function iC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(iC=function(){return!!t})()}function aC(t){return aC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},aC(t)}function cC(t,e){return cC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cC(t,e)}function uC(t,e,r){return(e=lC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lC(t){var e=function(t,e){if("object"!=JE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=JE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==JE(e)?e:e+""}var sC=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=oC(this,e,[t])).state={fontSize:"",letterSpacing:""},r}return 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&&cC(t,e)}(e,dt),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=rC(t,KE),o=this.props,i=o.viewBox,a=rC(o,GE);return!Pa(r,i)||!Pa(n,a)||!Pa(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,d=c.tickSize,h=c.mirror,y=c.tickMargin,v=h?-1:1,m=t.tickSize||d,g=ma(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(o=l+ +!h*f)-v*m)-v*y,i=g;break;case"left":n=o=t.coordinate,i=(e=(r=u+ +!h*s)-v*m)-v*y,a=g;break;case"right":n=o=t.coordinate,i=(e=(r=u+ +h*s)+v*m)+v*y,a=g;break;default:e=r=t.coordinate,a=(n=(o=l+ +h*f)+v*m)+v*y,i=g}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 t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.orientation,a=t.mirror,c=t.axisLine,u=eC(eC(eC({},Ya(this.props,!1)),Ya(c,!1)),{},{fill:"none"});if("top"===i||"bottom"===i){var l=+("top"===i&&!a||"bottom"===i&&a);u=eC(eC({},u),{},{x1:e,y1:r+l*o,x2:e+n,y2:r+l*o})}else{var s=+("left"===i&&!a||"right"===i&&a);u=eC(eC({},u),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+o})}return J.createElement("line",QE({},u,{className:mn("recharts-cartesian-axis-line",qi(c,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var o=this,i=this.props,a=i.tickLine,c=i.stroke,u=i.tick,l=i.tickFormatter,s=i.unit,f=XE(eC(eC({},this.props),{},{ticks:t}),r,n),p=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=Ya(this.props,!1),y=Ya(u,!1),v=eC(eC({},h),{},{fill:"none"},Ya(a,!1)),m=f.map((function(t,r){var n=o.getTickLineCoord(t),i=n.line,m=n.tick,g=eC(eC(eC(eC({textAnchor:p,verticalAnchor:d},h),{},{stroke:"none",fill:c},y),m),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:l});return J.createElement(wc,QE({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},Ta(o.props,t,r)),a&&J.createElement("line",QE({},v,i,{className:mn("recharts-cartesian-axis-tick-line",qi(a,"className"))})),u&&e.renderTickItem(u,g,"".concat(Qi(l)?l(t.value,r):t.value).concat(s||"")))}));return J.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,o=e.height,i=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,u=c.ticks,l=rC(c,ZE),s=u;return Qi(i)&&(s=u&&u.length>0?i(this.props):i(l)),n<=0||o<=0||!s||!s.length?null:J.createElement(wc,{className:mn("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),cS.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(t,e,r){return J.isValidElement(t)?J.cloneElement(t,e):Qi(t)?t(e):J.createElement(Ty,QE({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&nC(r.prototype,n),o&&nC(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();uC(sC,"displayName","CartesianAxis"),uC(sC,"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 fC=["type","layout","connectNulls","ref"],pC=["key"];function dC(t){return dC="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},dC(t)}function hC(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(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 yC(){return yC=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},yC.apply(this,arguments)}function vC(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 mC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vC(Object(r),!0).forEach((function(e){PC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gC(t){return function(t){if(Array.isArray(t))return bC(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 bC(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 bC(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 bC(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 wC(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,AC(n.key),n)}}function xC(t,e,r){return e=SC(e),function(t,e){if(e&&("object"===dC(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)}(t,OC()?Reflect.construct(e,r||[],SC(t).constructor):e.apply(t,r))}function OC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(OC=function(){return!!t})()}function SC(t){return SC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},SC(t)}function jC(t,e){return jC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jC(t,e)}function PC(t,e,r){return(e=AC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function AC(t){var e=function(t,e){if("object"!=dC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=dC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==dC(e)?e:e+""}var MC=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return PC(t=xC(this,e,[].concat(n)),"state",{isAnimationFinished:!0,totalLength:0}),PC(t,"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),PC(t,"getStrokeDasharray",(function(r,n,o){var i=o.reduce((function(t,e){return t+e}));if(!i)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/i),c=r%i,u=n-r,l=[],s=0,f=0;s<o.length;f+=o[s],++s)if(f+o[s]>c){l=[].concat(gC(o.slice(0,s)),[c-f]);break}var p=l.length%2==0?[0,u]:[u];return[].concat(gC(e.repeat(o,a)),gC(l),p).map((function(t){return"".concat(t,"px")})).join(", ")})),PC(t,"id",wa("recharts-line-")),PC(t,"pathRef",(function(e){t.mainCurve=e})),PC(t,"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),PC(t,"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}return 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&&jC(t,e)}(e,et),r=e,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.points,o=r.xAxis,i=r.yAxis,a=r.layout,c=Fa(r.children,oO);if(!c)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:vO(t.payload,e)}},l={clipPath:t?"url(#clipPath-".concat(e,")"):null};return J.createElement(wc,l,c.map((function(t){return J.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:o,yAxis:i,layout:a,dataPointFormatter:u})})))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,i=o.dot,a=o.points,c=o.dataKey,u=Ya(this.props,!1),l=Ya(i,!0),s=a.map((function(t,r){var n=mC(mC(mC({key:"dot-".concat(r),r:3},u),l),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:r,payload:t.payload});return e.renderDotItem(i,n)})),f={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return J.createElement(wc,yC({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,r,n){var o=this.props,i=o.type,a=o.layout,c=o.connectNulls;o.ref;var u=hC(o,fC),l=mC(mC(mC({},Ya(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:i,layout:a,connectNulls:c});return J.createElement(WS,yC({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,o=n.points,i=n.strokeDasharray,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=n.animateNewValues,p=n.width,d=n.height,h=this.state,y=h.prevPoints,v=h.totalLength;return J.createElement(JP,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(y){var c=y.length/o.length,u=o.map((function(t,e){var r=Math.floor(e*c);if(y[r]){var n=y[r],o=Sa(n.x,t.x),i=Sa(n.y,t.y);return mC(mC({},t),{},{x:o(a),y:i(a)})}if(f){var u=Sa(2*p,t.x),l=Sa(d/2,t.y);return mC(mC({},t),{},{x:u(a),y:l(a)})}return mC(mC({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(u,t,e)}var l,s=Sa(0,v)(a);if(i){var h="".concat(i).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=r.getStrokeDasharray(s,v,h)}else l=r.generateSimpleStrokeDasharray(v,s);return r.renderCurveStatically(o,t,e,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,o=r.isAnimationActive,i=this.state,a=i.prevPoints,c=i.totalLength;return o&&n&&n.length&&(!a&&c>0||!$w(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,o=e.points,i=e.className,a=e.xAxis,c=e.yAxis,u=e.top,l=e.left,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!o||!o.length)return null;var h=this.state.isAnimationFinished,y=1===o.length,v=mn("recharts-line",i),m=a&&a.allowDataOverflow,g=c&&c.allowDataOverflow,b=m||g,w=Ki(d)?this.id:d,x=null!==(t=Ya(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,P=void 0===j?2:j,A=(qa(n)?n:{}).clipDot,M=void 0===A||A,k=2*S+P;return J.createElement(wc,{className:v},m||g?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(w)},J.createElement("rect",{x:m?l:l-s/2,y:g?u:u-f/2,width:m?s:2*s,height:g?f:2*f})),!M&&J.createElement("clipPath",{id:"clipPath-dots-".concat(w)},J.createElement("rect",{x:l-k/2,y:u-k/2,width:s+k,height:f+k}))):null,!y&&this.renderCurve(b,w),this.renderErrorBar(b,w),(y||n)&&this.renderDots(b,M,w),(!p||h)&&jS.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var r=t.length%2!=0?[].concat(gC(t),[0]):t,n=[],o=0;o<e;++o)n=[].concat(gC(n),gC(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(J.isValidElement(t))r=J.cloneElement(t,e);else if(Qi(t))r=t(e);else{var n=e.key,o=hC(e,pC),i=mn("recharts-line-dot","boolean"!=typeof t?t.className:"");r=J.createElement(fA,yC({key:n},o,{className:i}))}return r}}],n&&wC(r.prototype,n),o&&wC(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();PC(MC,"displayName","Line"),PC(MC,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ph.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),PC(MC,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,o=t.xAxisTicks,i=t.yAxisTicks,a=t.dataKey,c=t.bandSize,u=t.displayedData,l=t.offset,s=e.layout;return mC({points:u.map((function(t,e){var u=vO(t,a);return"horizontal"===s?{x:kO({axis:r,ticks:o,bandSize:c,entry:t,index:e}),y:Ki(u)?null:n.scale(u),value:u,payload:t}:{x:Ki(u)?null:r.scale(u),y:kO({axis:n,ticks:i,bandSize:c,entry:t,index:e}),value:u,payload:t}})),layout:s},l)}));var kC,EC=["layout","type","stroke","connectNulls","isRange","ref"],CC=["key"];function _C(t){return _C="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},_C(t)}function TC(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(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 DC(){return DC=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},DC.apply(this,arguments)}function IC(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 NC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?IC(Object(r),!0).forEach((function(e){HC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):IC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function LC(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,FC(n.key),n)}}function BC(t,e,r){return e=$C(e),function(t,e){if(e&&("object"===_C(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)}(t,RC()?Reflect.construct(e,r||[],$C(t).constructor):e.apply(t,r))}function RC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(RC=function(){return!!t})()}function $C(t){return $C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$C(t)}function zC(t,e){return zC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zC(t,e)}function HC(t,e,r){return(e=FC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function FC(t){var e=function(t,e){if("object"!=_C(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_C(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_C(e)?e:e+""}var VC=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return HC(t=BC(this,e,[].concat(n)),"state",{isAnimationFinished:!0}),HC(t,"id",wa("recharts-area-")),HC(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Qi(e)&&e()})),HC(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Qi(e)&&e()})),t}return 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&&zC(t,e)}(e,et),r=e,n=[{key:"renderDots",value:function(t,r,n){var o=this.props.isAnimationActive,i=this.state.isAnimationFinished;if(o&&!i)return null;var a=this.props,c=a.dot,u=a.points,l=a.dataKey,s=Ya(this.props,!1),f=Ya(c,!0),p=u.map((function(t,r){var n=NC(NC(NC({key:"dot-".concat(r),r:3},s),f),{},{index:r,cx:t.x,cy:t.y,dataKey:l,value:t.value,payload:t.payload,points:u});return e.renderDotItem(c,n)})),d={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return J.createElement(wc,DC({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,o=e.strokeWidth,i=n[0].x,a=n[n.length-1].x,c=t*Math.abs(i-a),u=Mw(n.map((function(t){return t.y||0})));return ma(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(Mw(r.map((function(t){return t.y||0}))),u)),ma(u)?J.createElement("rect",{x:i<a?i:i-c,y:0,width:c,height:Math.floor(u+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,o=e.strokeWidth,i=n[0].y,a=n[n.length-1].y,c=t*Math.abs(i-a),u=Mw(n.map((function(t){return t.x||0})));return ma(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(Mw(r.map((function(t){return t.x||0}))),u)),ma(u)?J.createElement("rect",{x:0,y:i<a?i:i-c,width:u+(o?parseInt("".concat(o),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,r,n){var o=this.props,i=o.layout,a=o.type,c=o.stroke,u=o.connectNulls,l=o.isRange;o.ref;var s=TC(o,EC);return J.createElement(wc,{clipPath:r?"url(#clipPath-".concat(n,")"):null},J.createElement(WS,DC({},Ya(s,!0),{points:t,connectNulls:u,type:a,baseLine:e,layout:i,stroke:"none",className:"recharts-area-area"})),"none"!==c&&J.createElement(WS,DC({},Ya(this.props,!1),{className:"recharts-area-curve",layout:i,type:a,connectNulls:u,fill:"none",points:t})),"none"!==c&&l&&J.createElement(WS,DC({},Ya(this.props,!1),{className:"recharts-area-curve",layout:i,type:a,connectNulls:u,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,o=n.points,i=n.baseLine,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=this.state,p=f.prevPoints,d=f.prevBaseLine;return J.createElement(JP,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"area-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(p){var c,u=p.length/o.length,l=o.map((function(t,e){var r=Math.floor(e*u);if(p[r]){var n=p[r],o=Sa(n.x,t.x),i=Sa(n.y,t.y);return NC(NC({},t),{},{x:o(a),y:i(a)})}return t}));return c=ma(i)&&"number"==typeof i?Sa(d,i)(a):Ki(i)||da(i)?Sa(d,0)(a):i.map((function(t,e){var r=Math.floor(e*u);if(d[r]){var n=d[r],o=Sa(n.x,t.x),i=Sa(n.y,t.y);return NC(NC({},t),{},{x:o(a),y:i(a)})}return t})),r.renderAreaStatically(l,c,t,e)}return J.createElement(wc,null,J.createElement("defs",null,J.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),J.createElement(wc,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(o,i,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,o=r.baseLine,i=r.isAnimationActive,a=this.state,c=a.prevPoints,u=a.prevBaseLine,l=a.totalLength;return i&&n&&n.length&&(!c&&l>0||!$w(c,n)||!$w(u,o))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,o,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,o=e.points,i=e.className,a=e.top,c=e.left,u=e.xAxis,l=e.yAxis,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!o||!o.length)return null;var h=this.state.isAnimationFinished,y=1===o.length,v=mn("recharts-area",i),m=u&&u.allowDataOverflow,g=l&&l.allowDataOverflow,b=m||g,w=Ki(d)?this.id:d,x=null!==(t=Ya(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,P=void 0===j?2:j,A=(qa(n)?n:{}).clipDot,M=void 0===A||A,k=2*S+P;return J.createElement(wc,{className:v},m||g?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(w)},J.createElement("rect",{x:m?c:c-s/2,y:g?a:a-f/2,width:m?s:2*s,height:g?f:2*f})),!M&&J.createElement("clipPath",{id:"clipPath-dots-".concat(w)},J.createElement("rect",{x:c-k/2,y:a-k/2,width:s+k,height:f+k}))):null,y?null:this.renderArea(b,w),(n||y)&&this.renderDots(b,M,w),(!p||h)&&jS.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],n&&LC(r.prototype,n),o&&LC(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();function UC(t){return UC="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},UC(t)}function WC(t,e,r){return e&&function(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,ZC(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function qC(t,e,r){return e=XC(e),function(t,e){if(e&&("object"===UC(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)}(t,YC()?Reflect.construct(e,r||[],XC(t).constructor):e.apply(t,r))}function YC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(YC=function(){return!!t})()}function XC(t){return XC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},XC(t)}function KC(t,e){return KC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},KC(t,e)}function GC(t,e,r){return(e=ZC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ZC(t){var e=function(t,e){if("object"!=UC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=UC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==UC(e)?e:e+""}function JC(){return JC=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},JC.apply(this,arguments)}function QC(t){var e=t.xAxisId,r=eE(),n=rE(),o=Qk(e);return null==o?null:J.createElement(sC,JC({},o,{className:mn("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return OO(t,!0)}}))}kC=VC,HC(VC,"displayName","Area"),HC(VC,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ph.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),HC(VC,"getBaseValue",(function(t,e,r,n){var o=t.layout,i=t.baseValue,a=e.props.baseValue,c=null!=a?a:i;if(ma(c)&&"number"==typeof c)return c;var u="horizontal"===o?n:r,l=u.scale.domain();if("number"===u.type){var s=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===c?l[0]:"dataMax"===c?l[1]:l[0]})),HC(VC,"getComposedData",(function(t){var e,r=t.props,n=t.item,o=t.xAxis,i=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,u=t.bandSize,l=t.dataKey,s=t.stackedData,f=t.dataStartIndex,p=t.displayedData,d=t.offset,h=r.layout,y=s&&s.length,v=kC.getBaseValue(r,n,o,i),m="horizontal"===h,g=!1,b=p.map((function(t,e){var r;y?r=s[f+e]:(r=vO(t,l),Array.isArray(r)?g=!0:r=[v,r]);var n=null==r[1]||y&&null==vO(t,l);return m?{x:kO({axis:o,ticks:a,bandSize:u,entry:t,index:e}),y:n?null:i.scale(r[1]),value:r,payload:t}:{x:n?null:o.scale(r[1]),y:kO({axis:i,ticks:c,bandSize:u,entry:t,index:e}),value:r,payload:t}}));return e=y||g?b.map((function(t){var e=Array.isArray(t.value)?t.value[0]:null;return m?{x:t.x,y:null!=e&&null!=t.y?i.scale(e):null}:{x:null!=e?o.scale(e):null,y:t.y}})):m?i.scale(v):o.scale(v),NC({points:b,baseLine:e,layout:h,isRange:g},d)})),HC(VC,"renderDotItem",(function(t,e){var r;if(J.isValidElement(t))r=J.cloneElement(t,e);else if(Qi(t))r=t(e);else{var n=mn("recharts-area-dot","boolean"!=typeof t?t.className:""),o=e.key,i=TC(e,CC);r=J.createElement(fA,DC({},i,{key:o,className:n}))}return r}));var t_=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),qC(this,e,arguments)}return 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&&KC(t,e)}(e,J.Component),WC(e,[{key:"render",value:function(){return J.createElement(QC,this.props)}}])}();function e_(t){return e_="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},e_(t)}function r_(t,e,r){return e&&function(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,u_(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function n_(t,e,r){return e=i_(e),function(t,e){if(e&&("object"===e_(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)}(t,o_()?Reflect.construct(e,r||[],i_(t).constructor):e.apply(t,r))}function o_(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(o_=function(){return!!t})()}function i_(t){return i_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},i_(t)}function a_(t,e){return a_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a_(t,e)}function c_(t,e,r){return(e=u_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function u_(t){var e=function(t,e){if("object"!=e_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=e_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==e_(e)?e:e+""}function l_(){return l_=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},l_.apply(this,arguments)}GC(t_,"displayName","XAxis"),GC(t_,"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 s_=function(t){var e=t.yAxisId,r=eE(),n=rE(),o=tE(e);return null==o?null:J.createElement(sC,l_({},o,{className:mn("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return OO(t,!0)}}))},f_=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n_(this,e,arguments)}return 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&&a_(t,e)}(e,J.Component),r_(e,[{key:"render",value:function(){return J.createElement(s_,this.props)}}])}();function p_(t){return function(t){if(Array.isArray(t))return d_(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 d_(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 d_(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 d_(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}c_(f_,"displayName","YAxis"),c_(f_,"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 h_,y_=function(t,e,r,n,o){var i=Fa(t,mE),a=Fa(t,EE),c=[].concat(p_(i),p_(a)),u=Fa(t,HE),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===r&&HM(e.props,"extendDomain")&&ma(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"),d="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===r&&HM(e.props,"extendDomain")&&ma(e.props[p])&&ma(e.props[d])){var n=e.props[p],o=e.props[d];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 ma(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},v_={exports:{}};var m_=(h_||(h_=1,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,d=s.length;for(l=0;l<d;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}(v_)),v_.exports),g_=new(Ze(m_)),b_="recharts.syncMouseEvents";function w_(t){return w_="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},w_(t)}function x_(t,e,r){return e&&function(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,S_(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function O_(t,e,r){return(e=S_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S_(t){var e=function(t,e){if("object"!=w_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=w_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==w_(e)?e:e+""}var j_=function(){return x_((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),O_(this,"activeIndex",0),O_(this,"coordinateList",[]),O_(this,"layout","horizontal")}),[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,o=t.container,i=void 0===o?null:o,a=t.layout,c=void 0===a?null:a,u=t.offset,l=void 0===u?null:u,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=i?i:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f: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:"setIndex",value:function(t){this.activeIndex=t}},{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})}}}])}();function P_(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[VO(e,r,n,o),VO(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}function A_(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 P_(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=VO(c,u,l,f),d=VO(c,u,s,f);n=p.x,o=p.y,i=d.x,a=d.y}return[{x:n,y:o},{x:i,y:a}]}function M_(t){return M_="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},M_(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 E_(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){C_(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 C_(t,e,r){return e=function(t){var e=function(t,e){if("object"!=M_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=M_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==M_(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function __(t){var e,r,n,o=t.element,i=t.tooltipEventType,a=t.isActive,c=t.activeCoordinate,u=t.activePayload,l=t.offset,s=t.activeTooltipIndex,f=t.tooltipAxisBandSize,p=t.layout,d=t.chartName,h=null!==(e=o.props.cursor)&&void 0!==e?e:null===(r=o.type.defaultProps)||void 0===r?void 0:r.cursor;if(!o||!h||!a||!c||"ScatterChart"!==d&&"axis"!==i)return null;var y=WS;if("ScatterChart"===d)n=c,y=SA;else if("BarChart"===d)n=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}}(p,c,l,f),y=lA;else if("radial"===p){var v=P_(c),m=v.cx,g=v.cy,b=v.radius;n={cx:m,cy:g,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:b,outerRadius:b},y=DS}else n={points:A_(p,c,l)},y=WS;var w=E_(E_(E_(E_({stroke:"#ccc",pointerEvents:"none"},l),n),Ya(h,!1)),{},{payload:u,payloadIndex:s,className:mn("recharts-tooltip-cursor",h.className)});return Q(h)?lt(h,w):st(y,w)}var T_=["item"],D_=["children","className","width","height","style","compact","title","desc"];function I_(t){return I_="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},I_(t)}function N_(){return N_=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},N_.apply(this,arguments)}function L_(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);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)||U_(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 B_(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(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 R_(t,e,r){return e&&function(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,K_(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function $_(t,e,r){return e=H_(e),function(t,e){if(e&&("object"===I_(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)}(t,z_()?Reflect.construct(e,r||[],H_(t).constructor):e.apply(t,r))}function z_(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(z_=function(){return!!t})()}function H_(t){return H_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},H_(t)}function F_(t,e){return F_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},F_(t,e)}function V_(t){return function(t){if(Array.isArray(t))return W_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||U_(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 U_(t,e){if(t){if("string"==typeof t)return W_(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)?W_(t,e):void 0}}function W_(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 q_(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 Y_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?q_(Object(r),!0).forEach((function(e){X_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):q_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function X_(t,e,r){return(e=K_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function K_(t){var e=function(t,e){if("object"!=I_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=I_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==I_(e)?e:e+""}var G_={xAxis:["bottom","top"],yAxis:["left","right"]},Z_={width:"100%",height:"100%"},J_={x:0,y:0};function Q_(t){return t}var tT=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(V_(t),V_(r)):t}),[]);return i.length>0?i:t&&t.length&&ma(n)&&ma(o)?t.slice(n,o+1):[]};function eT(t){return"number"===t?[0,"auto"]:void 0}var rT=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=tT(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce((function(o,c){var u,l,s=null!==(u=c.props.data)&&void 0!==u?u:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?l=ja(void 0===s?a:s,i.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(V_(o),[LO(c,l)]):o}),[])},nT=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(ya(s-l)!==ya(f-s)){var d=[];if(ya(f-s)===ya(c[1]-c[0])){p=f;var h=s+c[1]-c[0];d[0]=Math.min(h,(h+l)/2),d[1]=Math.max(h,(h+l)/2)}else{p=l;var y=f+c[1]-c[0];d[0]=Math.min(s,(y+s)/2),d[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=d[0]&&t<=d[1]){i=n[u].index;break}}else{var m=Math.min(l,f),g=Math.max(l,f);if(t>(m+s)/2&&t<=(g+s)/2){i=n[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){i=r[b].index;break}return i}(i,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=rT(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 Y_(Y_(Y_({},n),VO(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var c=o.coordinate,u=n.angle;return Y_(Y_(Y_({},n),VO(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return J_}(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},oT=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=xO(l,o);return r.reduce((function(e,r){var d,h=void 0!==r.type.defaultProps?Y_(Y_({},r.type.defaultProps),r.props):r.props,y=h.type,v=h.dataKey,m=h.allowDataOverflow,g=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,O=h[i];if(e[O])return e;var S,j,P,A=tT(t.data,{graphicalItems:n.filter((function(t){var e;return(i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i])===O})),dataStartIndex:c,dataEndIndex:u}),M=A.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&&ma(n)&&ma(o))return!0}return!1})(h.domain,m,y)&&(S=DO(h.domain,null,m),!p||"number"!==y&&"auto"===b||(P=mO(A,v,"category")));var k=eT(y);if(!S||0===S.length){var E,C=null!==(E=h.domain)&&void 0!==E?E:k;if(v){if(S=mO(A,v,y),"category"===y&&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);g&&_?(j=S,S=pM(0,M)):g||(S=NO(C,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(V_(t),[e])}),[]))}else if("category"===y)S=g?S.filter((function(t){return""!==t&&!Ki(t)})):NO(C,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||Ki(e)?t:[].concat(V_(t),[e])}),[]);else if("number"===y){var T=function(t,e,r,n,o){var i=e.map((function(e){return bO(t,e,r,o,n)})).filter((function(t){return!Ki(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}(A,n.filter((function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===O&&(x||!o)})),v,o,l);T&&(S=T)}!p||"number"!==y&&"auto"===b||(P=mO(A,v,"category"))}else S=p?pM(0,M):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:CO(a[O].stackGroups,c,u):wO(A,n.filter((function(t){var e=i in t.props?t.props[i]:t.type.defaultProps[i],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===O&&(x||!r)})),y,l,!0);if("number"===y)S=y_(s,S,O,o,w),C&&(S=DO(C,S,m));else if("category"===y&&C){var D=C;S.every((function(t){return D.indexOf(t)>=0}))&&(S=D)}}return Y_(Y_({},e),{},X_({},O,Y_(Y_({},h),{},{axisType:o,domain:S,categoricalDomain:P,duplicateDomain:j,originalDomain:null!==(d=h.domain)&&void 0!==d?d:k,isCategorical:p,layout:l})))}),{})},iT=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=Fa(l,o),p={};return f&&f.length?p=oT(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=tT(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,d=xO(l,o),h=-1;return r.reduce((function(t,e){var y,v=(void 0!==e.type.defaultProps?Y_(Y_({},e.type.defaultProps),e.props):e.props)[i],m=eT("number");return t[v]?t:(h++,d?y=pM(0,p):a&&a[v]&&a[v].hasStack?(y=CO(a[v].stackGroups,c,u),y=y_(s,y,v,o)):(y=DO(m,wO(f,r.filter((function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===v&&!o})),"number",l),n.defaultProps.allowDataOverflow),y=y_(s,y,v,o)),Y_(Y_({},t),{},X_({},v,Y_(Y_({axisType:o},n.defaultProps),{},{hide:!0,orientation:qi(G_,"".concat(o,".").concat(h%2),null),domain:y,originalDomain:m,isCategorical:d,layout:l}))))}),{})}(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},aT=function(t){var e=t.children,r=t.defaultShowTooltip,n=Va(e,IM),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)}},cT=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"}},uT=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=Va(l,IM),p=Va(l,Pd),d=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:Y_(Y_({},t),{},X_({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),h=Object.keys(o).reduce((function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:Y_(Y_({},t),{},X_({},n,qi(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=Y_(Y_({},h),d),v=y.bottom;f&&(y.bottom+=f.props.height||IM.defaultProps.height),p&&e&&(y=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,c=i-(a.left||0)-(a.right||0),u=lO({children:o,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,p=u.align,d=u.verticalAlign,h=u.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==p&&ma(t[p]))return hO(hO({},t),{},yO({},p,t[p]+(s||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&ma(t[d]))return hO(hO({},t),{},yO({},d,t[d]+(f||0)))}return t}(y,0,r,e));var m=c-y.left-y.right,g=u-y.top-y.bottom;return Y_(Y_({brushBottom:v},y),{},{width:Math.max(m,0),height:Math.max(g,0)})},lT=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},sT=function(t){var e=t.chartName,r=t.GraphicalChild,n=t.defaultTooltipEventType,o=void 0===n?"axis":n,i=t.validateTooltipEventTypes,a=void 0===i?["axis"]:i,c=t.axisComponents,u=t.legendContent,l=t.formatAxisMap,s=t.defaultProps,f=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,u=e.dataEndIndex,l=t.barSize,s=t.layout,f=t.barGap,p=t.barCategoryGap,d=t.maxBarSize,h=cT(s),y=h.numericAxisName,v=h.cateAxisName,m=function(t){return!(!t||!t.length)&&t.some((function(t){var e=Ra(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),g=[];return r.forEach((function(r,h){var b=tT(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:u}),w=void 0!==r.type.defaultProps?Y_(Y_({},r.type.defaultProps),r.props):r.props,x=w.dataKey,O=w.maxBarSize,S=w["".concat(y,"Id")],j=w["".concat(v,"Id")],P=c.reduce((function(t,n){var o,i,a=e["".concat(n.axisType,"Map")],c=w["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?Ux(0,"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:"")):Ux());var u=a[c];return Y_(Y_({},t),{},X_(X_({},n.axisType,u),"".concat(n.axisType,"Ticks"),OO(u)))}),{}),A=P[v],M=P["".concat(v,"Ticks")],k=n&&n[S]&&n[S].hasStack&&function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?hO(hO({},t.type.defaultProps),t.props):t.props).stackId;if(ga(n)){var o=e[n];if(o){var i=o.items.indexOf(t);return i>=0?o.stackedData[i]:null}}return null}(r,n[S].stackGroups),E=Ra(r.type).indexOf("Bar")>=0,C=IO(A,M),_=[],T=m&&function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),c=0,u=a.length;c<u;c++)for(var l=o[a[c]].stackGroups,s=Object.keys(l),f=0,p=s.length;f<p;f++){var d=l[s[f]],h=d.items,y=d.cateAxisId,v=h.filter((function(t){return Ra(t.type).indexOf("Bar")>=0}));if(v&&v.length){var m=v[0].type.defaultProps,g=void 0!==m?hO(hO({},m),v[0].props):v[0].props,b=g.barSize,w=g[y];i[w]||(i[w]=[]);var x=Ki(b)?e:b;i[w].push({item:v[0],stackList:v.slice(1),barSize:Ki(x)?void 0:xa(x,r,0)})}}return i}({barSize:l,stackGroups:n,totalSize:lT(P,v)});if(E){var D,I,N=Ki(O)?d:O,L=null!==(D=null!==(I=IO(A,M,!0))&&void 0!==I?I:N)&&void 0!==D?D:0;_=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=xa(e,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/c,d=i.reduce((function(t,e){return t+e.barSize||0}),0);(d+=(c-1)*l)>=n&&(d-=(c-1)*l,l=0),d>=n&&p>0&&(f=!0,d=c*(p*=.9));var h={offset:((n-d)/2|0)-l,size:0};u=i.reduce((function(t,e){var r={item:e.item,position:{offset:h.offset+h.size+l,size:f?p:e.barSize}},n=[].concat(fO(t),[r]);return h=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:h})})),n}),s)}else{var y=xa(r,n,0,!0);n-2*y-(c-1)*l<=0&&(l=0);var v=(n-2*y-(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(fO(t),[{item:e.item,position:{offset:y+(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:f,barCategoryGap:p,bandSize:L!==C?L:C,sizeList:T[j],maxBarSize:N}),L!==C&&(_=_.map((function(t){return Y_(Y_({},t),{},{position:Y_(Y_({},t.position),{},{offset:t.position.offset-L/2})})})))}var B,R,$=r&&r.type&&r.type.getComposedData;$&&g.push({props:Y_(Y_({},$(Y_(Y_({},P),{},{displayedData:b,props:t,dataKey:x,item:r,bandSize:C,barPosition:_,offset:o,stackedData:k,layout:s,dataStartIndex:a,dataEndIndex:u}))),{},X_(X_(X_({key:r.key||"item-".concat(h)},y,P[y]),v,P[v]),"animationId",i)),childIndex:(B=r,R=t.children,Ha(R).indexOf(B)),item:r})})),g},p=function(t,n){var o=t.props,i=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!Ua({props:o}))return null;var s=o.children,p=o.layout,d=o.stackOffset,h=o.data,y=o.reverseStackOrder,v=cT(p),m=v.numericAxisName,g=v.cateAxisName,b=Fa(s,r),w=function(t,e,r,n,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce((function(t,e){var o,i=null!==(o=e.type)&&void 0!==o&&o.defaultProps?hO(hO({},e.type.defaultProps),e.props):e.props,a=i.stackId;if(i.hide)return t;var c=i[r],u=t[c]||{hasStack:!1,stackGroups:{}};if(ga(a)){var l=u.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};l.items.push(e),u.hasStack=!0,u.stackGroups[a]=l}else u.stackGroups[wa("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return hO(hO({},t),{},yO({},c,u))}),{});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 hO(hO({},e),{},yO({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:MO(t,a.items,o)}))}),{})),hO(hO({},e),{},yO({},i,c))}),{})}(h,b,"".concat(m,"Id"),"".concat(g,"Id"),d,y),x=c.reduce((function(t,e){var r="".concat(e.axisType,"Map");return Y_(Y_({},t),{},X_({},r,iT(o,Y_(Y_({},e),{},{graphicalItems:b,stackGroups:e.axisType===m&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),O=uT(Y_(Y_({},x),{},{props:o,graphicalItems:b}),null==n?void 0:n.legendBBox);Object.keys(x).forEach((function(t){x[t]=l(o,x[t],O,t.replace("Map",""),e)}));var S,j,P=x["".concat(g,"Map")],A=(S=Oa(P),{tooltipTicks:j=OO(S,!1,!0),orderedTooltipTicks:$d(j,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:IO(S,j)}),M=f(o,Y_(Y_({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:u,graphicalItems:b,stackGroups:w,offset:O}));return Y_(Y_({formattedGraphicalItems:M,graphicalItems:b,offset:O,stackGroups:w},A),x)},d=function(t){function r(t){var n,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),X_(i=$_(this,r,[t]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),X_(i,"accessibilityManager",new j_),X_(i,"handleLegendBBoxUpdate",(function(t){if(t){var e=i.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;i.setState(Y_({legendBBox:t},p({props:i.props,dataStartIndex:r,dataEndIndex:n,updateId:o},Y_(Y_({},i.state),{},{legendBBox:t}))))}})),X_(i,"handleReceiveSyncEvent",(function(t,e,r){if(i.props.syncId===t){if(r===i.eventEmitterSymbol&&"function"!=typeof i.props.syncMethod)return;i.applySyncEvent(e)}})),X_(i,"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==i.state.dataStartIndex||r!==i.state.dataEndIndex){var n=i.state.updateId;i.setState((function(){return Y_({dataStartIndex:e,dataEndIndex:r},p({props:i.props,dataStartIndex:e,dataEndIndex:r,updateId:n},i.state))})),i.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),X_(i,"handleMouseEnter",(function(t){var e=i.getMouseInfo(t);if(e){var r=Y_(Y_({},e),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseEnter;Qi(n)&&n(r,t)}})),X_(i,"triggeredAfterMouseMove",(function(t){var e=i.getMouseInfo(t),r=e?Y_(Y_({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseMove;Qi(n)&&n(r,t)})),X_(i,"handleItemMouseEnter",(function(t){i.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),X_(i,"handleItemMouseLeave",(function(){i.setState((function(){return{isTooltipActive:!1}}))})),X_(i,"handleMouseMove",(function(t){t.persist(),i.throttleTriggeredAfterMouseMove(t)})),X_(i,"handleMouseLeave",(function(t){i.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};i.setState(e),i.triggerSyncEvent(e);var r=i.props.onMouseLeave;Qi(r)&&r(e,t)})),X_(i,"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&Ba[e]?Ba[e]:null}(t),n=qi(i.props,"".concat(r));r&&Qi(n)&&n(null!==(e=/.*touch.*/i.test(r)?i.getMouseInfo(t.changedTouches[0]):i.getMouseInfo(t))&&void 0!==e?e:{},t)})),X_(i,"handleClick",(function(t){var e=i.getMouseInfo(t);if(e){var r=Y_(Y_({},e),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onClick;Qi(n)&&n(r,t)}})),X_(i,"handleMouseDown",(function(t){var e=i.props.onMouseDown;Qi(e)&&e(i.getMouseInfo(t),t)})),X_(i,"handleMouseUp",(function(t){var e=i.props.onMouseUp;Qi(e)&&e(i.getMouseInfo(t),t)})),X_(i,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),X_(i,"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseDown(t.changedTouches[0])})),X_(i,"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseUp(t.changedTouches[0])})),X_(i,"triggerSyncEvent",(function(t){void 0!==i.props.syncId&&g_.emit(b_,i.props.syncId,t,i.eventEmitterSymbol)})),X_(i,"applySyncEvent",(function(t){var e=i.props,r=e.layout,n=e.syncMethod,o=i.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)i.setState(Y_({dataStartIndex:a,dataEndIndex:c},p({props:i.props,dataStartIndex:a,dataEndIndex:c,updateId:o},i.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=i.state,d=f.offset,h=f.tooltipTicks;if(!d)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 v=Y_(Y_({},d),{},{x:d.left,y:d.top}),m=Math.min(u,v.x+v.width),g=Math.min(l,v.y+v.height),b=h[s]&&h[s].value,w=rT(i.state,i.props.data,s),x=h[s]?{x:"horizontal"===r?h[s].coordinate:m,y:"horizontal"===r?g:h[s].coordinate}:J_;i.setState(Y_(Y_({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else i.setState(t)})),X_(i,"renderCursor",(function(t){var r,n=i.state,o=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,u=n.offset,l=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=i.getTooltipEventType(),p=null!==(r=t.props.active)&&void 0!==r?r:o,d=i.props.layout,h=t.key||"_recharts-cursor";return J.createElement(__,{key:h,activeCoordinate:a,activePayload:c,activeTooltipIndex:l,chartName:e,element:t,isActive:p,layout:d,offset:u,tooltipAxisBandSize:s,tooltipEventType:f})})),X_(i,"renderPolarAxis",(function(t,e,r){var n=qi(t,"type.axisType"),o=qi(i.state,"".concat(n,"Map")),a=t.type.defaultProps,c=void 0!==a?Y_(Y_({},a),t.props):t.props,u=o&&o[c["".concat(n,"Id")]];return lt(t,Y_(Y_({},u),{},{className:mn(n,u.className),key:t.key||"".concat(e,"-").concat(r),ticks:OO(u,!0)}))})),X_(i,"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,o=e.polarRadius,a=i.state,c=a.radiusAxisMap,u=a.angleAxisMap,l=Oa(c),s=Oa(u),f=s.cx,p=s.cy,d=s.innerRadius,h=s.outerRadius;return lt(t,{polarAngles:Array.isArray(n)?n:OO(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(o)?o:OO(l,!0).map((function(t){return t.coordinate})),cx:f,cy:p,innerRadius:d,outerRadius:h,key:t.key||"polar-grid",radialLines:r})})),X_(i,"renderLegend",(function(){var t=i.state.formattedGraphicalItems,e=i.props,r=e.children,n=e.width,o=e.height,a=i.props.margin||{},c=n-(a.left||0)-(a.right||0),l=lO({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:u});if(!l)return null;var s=l.item,f=B_(l,T_);return lt(s,Y_(Y_({},f),{},{chartWidth:n,chartHeight:o,margin:a,onBBoxUpdate:i.handleLegendBBoxUpdate}))})),X_(i,"renderTooltip",(function(){var t,e=i.props,r=e.children,n=e.accessibilityLayer,o=Va(r,Lh);if(!o)return null;var a=i.state,c=a.isTooltipActive,u=a.activeCoordinate,l=a.activePayload,s=a.activeLabel,f=a.offset,p=null!==(t=o.props.active)&&void 0!==t?t:c;return lt(o,{viewBox:Y_(Y_({},f),{},{x:f.left,y:f.top}),active:p,label:s,payload:p?l:[],coordinate:u,accessibilityLayer:n})})),X_(i,"renderBrush",(function(t){var e=i.props,r=e.margin,n=e.data,o=i.state,a=o.offset,c=o.dataStartIndex,u=o.dataEndIndex,l=o.updateId;return lt(t,{key:t.key||"_recharts-brush",onChange:jO(i.handleBrushChange,t.props.onChange),data:n,x:ma(t.props.x)?t.props.x:a.left,y:ma(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:ma(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),X_(i,"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=i.clipPathId,o=i.state,a=o.xAxisMap,c=o.yAxisMap,u=o.offset,l=t.type.defaultProps||{},s=t.props,f=s.xAxisId,p=void 0===f?l.xAxisId:f,d=s.yAxisId,h=void 0===d?l.yAxisId:d;return lt(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[p],yAxis:c[h],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:n})})),X_(i,"renderActivePoints",(function(t){var e=t.item,n=t.activePoint,o=t.basePoint,i=t.childIndex,a=t.isRange,c=[],u=e.props.key,l=void 0!==e.item.type.defaultProps?Y_(Y_({},e.item.type.defaultProps),e.item.props):e.item.props,s=l.activeDot,f=Y_(Y_({index:i,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:gO(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},Ya(s,!1)),_a(s));return c.push(r.renderActiveDot(s,f,"".concat(u,"-activePoint-").concat(i))),o?c.push(r.renderActiveDot(s,Y_(Y_({},f),{},{cx:o.x,cy:o.y}),"".concat(u,"-basePoint-").concat(i))):a&&c.push(null),c})),X_(i,"renderGraphicChild",(function(t,e,r){var n=i.filterFormatItem(t,e,r);if(!n)return null;var o=i.getTooltipEventType(),a=i.state,c=a.isTooltipActive,u=a.tooltipAxis,l=a.activeTooltipIndex,s=a.activeLabel,f=Va(i.props.children,Lh),p=n.props,d=p.points,h=p.isRange,y=p.baseLine,v=void 0!==n.item.type.defaultProps?Y_(Y_({},n.item.type.defaultProps),n.item.props):n.item.props,m=v.activeDot,g=v.hide,b=v.activeBar,w=v.activeShape,x=Boolean(!g&&c&&f&&(m||b||w)),O={};"axis"!==o&&f&&"click"===f.props.trigger?O={onClick:jO(i.handleItemMouseEnter,t.props.onClick)}:"axis"!==o&&(O={onMouseLeave:jO(i.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:jO(i.handleItemMouseEnter,t.props.onMouseEnter)});var S=lt(t,Y_(Y_({},n.props),O));if(x){if(!(l>=0)){var j,P=(null!==(j=i.getItemByXY(i.state.activeCoordinate))&&void 0!==j?j:{graphicalItem:S}).graphicalItem,A=P.item,M=void 0===A?t:A,k=P.childIndex,E=Y_(Y_(Y_({},n.props),O),{},{activeIndex:k});return[lt(M,E),null,null]}var C,_;if(u.dataKey&&!u.allowDuplicatedCategory){var T="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());C=ja(d,T,s),_=h&&y&&ja(y,T,s)}else C=null==d?void 0:d[l],_=h&&y&&y[l];if(w||b){var D=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[lt(t,Y_(Y_(Y_({},n.props),O),{},{activeIndex:D})),null,null]}if(!Ki(C))return[S].concat(V_(i.renderActivePoints({item:n,activePoint:C,basePoint:_,childIndex:l,isRange:h})))}return h?[S,null,null]:[S,null]})),X_(i,"renderCustomized",(function(t,e,r){return lt(t,Y_(Y_({key:"recharts-customized-".concat(r)},i.props),i.state))})),X_(i,"renderMap",{CartesianGrid:{handler:Q_,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:Q_},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:Q_},YAxis:{handler:Q_},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:wa("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=Hh(i.triggeredAfterMouseMove,null!==(o=t.throttleDelay)&&void 0!==o?o:1e3/60),i.state={},i}return 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&&F_(t,e)}(r,dt),R_(r,[{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}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,o=t.layout,i=Va(e,Lh);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length-1)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=rT(this.state,r,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===o?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=Y_(Y_({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(d),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;var r,n;(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}});return null}},{key:"componentDidUpdate",value:function(t){Xa([Va(t.children,Lh)],[Va(this.props.children,Lh)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=Va(this.props.children,Lh);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return a.indexOf(e)>=0?e:o}return o}},{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=Oa(l).scale,p=Oa(s).scale,d=f&&f.invert?f.invert(i.chartX):null,h=p&&p.invert?p.invert(i.chartY):null;return Y_(Y_({},i),{},{xValue:d,yValue:h})}var y=nT(this.state,this.props.data,this.props.layout,c);return y?Y_(Y_({},i),y):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=Oa(u);return qO({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=Va(t,Lh),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}),Y_(Y_({},_a(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){g_.on(b_,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){g_.removeListener(b_,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===Ra(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,o=e.height,i=e.width;return J.createElement("defs",null,J.createElement("clipPath",{id:t},J.createElement("rect",{x:r,y:n,height:o,width:i})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=L_(e,2),n=r[0],o=r[1];return Y_(Y_({},t),{},X_({},n,o.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=L_(e,2),n=r[0],o=r[1];return Y_(Y_({},t),{},X_({},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=void 0!==u.type.defaultProps?Y_(Y_({},u.type.defaultProps),u.props):u.props,s=Ra(u.type);if("Bar"===s){var f=(c.data||[]).find((function(e){return cA(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(c.data||[]).find((function(e){return qO(t,e)}));if(p)return{graphicalItem:a,payload:p}}else if(rM(a,n)||nM(a,n)||oM(a,n)){var d=uM({graphicalItem:a,activeTooltipItem:n,itemData:l.data}),h=void 0===l.activeIndex?d:l.activeIndex;return{graphicalItem:Y_(Y_({},a),{},{childIndex:h}),payload:oM(a,n)?l.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var t=this;if(!Ua(this))return null;var e,r,n=this.props,o=n.children,i=n.className,a=n.width,c=n.height,u=n.style,l=n.compact,s=n.title,f=n.desc,p=B_(n,D_),d=Ya(p,!1);if(l)return J.createElement(Zk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},J.createElement(tc,N_({},d,{width:a,height:c,title:s,desc:f}),this.renderClipPath(),Ga(o,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,d.role=null!==(r=this.props.role)&&void 0!==r?r:"application",d.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},d.onFocus=function(){t.accessibilityManager.focus()});var h=this.parseEventsOfWrapper();return J.createElement(Zk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},J.createElement("div",N_({className:mn("recharts-wrapper",i),style:Y_({position:"relative",cursor:"default",width:a,height:c},u)},h,{ref:function(e){t.container=e}}),J.createElement(tc,N_({},d,{width:a,height:c,title:s,desc:f,style:Z_}),this.renderClipPath(),Ga(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();return X_(d,"displayName",e),X_(d,"defaultProps",Y_({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},s)),X_(d,"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 d=aT(t);return Y_(Y_(Y_({},d),{},{updateId:0},p(Y_(Y_({props:t},d),{},{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||!Pa(l,e.prevMargin)){var h=aT(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=Y_(Y_({},nT(e,n,c)),{},{updateId:e.updateId+1}),m=Y_(Y_(Y_({},h),y),v);return Y_(Y_(Y_({},m),p(Y_({props:t},m),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(!Xa(o,e.prevChildren)){var g,b,w,x,O=Va(o,IM),S=O&&null!==(g=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==g?g:s,j=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,P=S!==s||j!==f,A=!Ki(n)&&!P?e.updateId:e.updateId+1;return Y_(Y_({updateId:A},p(Y_(Y_({props:t},e),{},{updateId:A,dataStartIndex:S,dataEndIndex:j}),e)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:j})}return null})),X_(d,"renderActiveDot",(function(t,e,r){var n;return n=Q(t)?lt(t,e):Qi(t)?t(e):J.createElement(fA,e),J.createElement(wc,{className:"recharts-active-dot",key:r},n)})),function(t){return J.createElement(d,t)}},fT=sT({chartName:"LineChart",GraphicalChild:MC,axisComponents:[{axisType:"xAxis",AxisComp:t_},{axisType:"yAxis",AxisComp:f_}],formatAxisMap:kk}),pT=sT({chartName:"AreaChart",GraphicalChild:VC,axisComponents:[{axisType:"xAxis",AxisComp:t_},{axisType:"yAxis",AxisComp:f_}],formatAxisMap:kk});const dT=({formatter:n,labelFormatter:o,payload:i,cx:a,cy:c})=>{const u=100;return Number.isFinite(i.value)?t("svg",{x:a-50,y:c-60,width:u,height:68,viewBox:"0 0 100 68",xmlns:"http://www.w3.org/2000/svg",children:[o&&t(r,{children:[e("rect",{fill:"white",width:"98",height:"45",stroke:Pr.coolElegance(),strokeWidth:"1",rx:"7",ry:"7",className:"shadow"}),e("text",{y:"14",x:"50%",fontSize:10,dominantBaseline:"middle",textAnchor:"middle",children:o(0,[{payload:i}])}),e("text",{y:"30",x:"50%",fontSize:11,dominantBaseline:"middle",textAnchor:"middle",fontWeight:"bold",children:n?n(i.value||0):i.value}),e("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"30",opacity:"0.7",children:e("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:Pr.coolElegance(),transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})}),e("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"28",children:e("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:"white",transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})})]}),e("rect",{x:43,y:"52",width:14,height:14,rx:7,fill:"white",stroke:Pr.coolElegance(),strokeWidth:"2"})]}):e(r,{})},hT=({data:r,dataKey:n,width:o="100%",height:i="100%",areaType:a="linear",isAnimated:c=!1,formatter:u,labelFormatter:l,sampleRate:s,style:f})=>{const p=r?r.filter((t=>null!==t[n])):[],{isNetGain:d}=br({data:p,dataKey:n}),h=yn(),y=yn(),v=s?Sr({arr:r||[],n:s}):r;let m,g;v?.length?(g=d?Pr.mint():Pr.coolElegance(),m=v?.map((t=>{const e=parseFloat(t[n]);return{...t,[n]:Number.isFinite(e)?e:null}}))):(g=Pr.coolElegance(),m=[{[n]:1},{[n]:1}]);const b={cursor:v?.length?"crosshair":"default",...f};return e(Xh,{width:o,minHeight:i,id:h,children:t(pT,{data:m,margin:{top:20,right:0,left:0,bottom:20},style:b,children:[e("defs",{children:t("linearGradient",{id:y,x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:g,stopOpacity:.8}),e("stop",{offset:"95%",stopColor:g,stopOpacity:0})]})}),e(f_,{domain:v?.length?["dataMin","dataMax"]:[0,2],hide:!0}),e(VC,{type:a,dataKey:n,stroke:g,fill:`url(#${y})`,isAnimationActive:c,activeDot:t=>dT({chartId:h,labelFormatter:l,formatter:u,...t}),dot:!1}),v?.length&&e(Lh,{cursor:!1,content:()=>null})]})})},yT=({isCloseable:t,onClick:r})=>{const n=l({ssr:!1});return e(s,{children:e(f,{label:t?"Click to dismiss":null,hasArrow:!0,fontFamily:"mono",fontSize:"12px",children:e(p,{onClick:r,cursor:t?"pointer":"default",bgColor:{base:"rgba(143, 163, 255, 0.9)",sm:"rgba(117, 143, 255, 0.9)",md:"rgba(77, 109, 255, 0.9)",lg:"rgba(24, 74, 201, 0.9)",xl:"rgba(19, 60, 164, 0.9)","2xl":"rgba(15, 47, 128, 0.9)"},color:{base:Pr.black(),md:"white"},position:"fixed",top:"0",right:"0",padding:"2",fontSize:"xs",zIndex:"5",width:"10rem",boxShadow:"dark-lg",fontFamily:"mono",children:n})})})},vT=({children:t,...r})=>e(d,{border:"solid 1px",borderColor:Pr.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:t}),mT=({isSelected:t,children:r,...n})=>e(h,{variant:"none",paddingX:"1",fontSize:"sm",color:t?"brand.500":Pr.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:t?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),gT=({children:t,...r})=>e(y,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:Pr.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:t}),bT=r=>{const{carouselContents:n,isNavVertical:o,...i}=r,[a,c]=it(0);return n.length>=1&&e(gT,{children:t(v,{gap:10,direction:o?"column":{base:"column",md:"row"},...i,children:[n[a],t(v,{alignItems:"flex-end",justifyContent:"center",gap:6,children:[e(m,{variant:"ghost",isDisabled:0===a,"aria-label":"Previous content",icon:e(jt,{}),onClick:()=>{a>0&&a<=n.length-1&&c((t=>t-1))}}),e(m,{variant:"ghost",isDisabled:a===n.length-1,"aria-label":"Next content",icon:e(Pt,{}),onClick:()=>{a<n.length-1&&c((t=>t+1))}})]})]})})},wT=r=>{const{size:n,isDisabled:o,isReadOnly:i,isRequired:a,isIndeterminate:c,name:u,register:l,errorMessage:s,label:f,labelPosition:p="left",spaceBetween:d,onClick:h,...y}=r;let m;c||(m=e(kt,{}));const O=l?l(u):void 0;return t(g,{as:v,flexDir:"column",isInvalid:Boolean(s),isDisabled:o,isReadOnly:i,isRequired:a,children:[t(v,{onClick:h,w:"full",justifyContent:d?"space-between":"auto",children:["left"===p&&e(b,{fontSize:n,m:"0",mr:"3",children:f}),e(w,{icon:m,isDisabled:o,isReadOnly:i,isRequired:a,isIndeterminate:c,isInvalid:Boolean(s),size:n,...O,...y}),"right"===p&&e(b,{fontSize:n,m:"0",ml:"3",children:f})]}),e(v,{w:"full",children:s&&e(x,{size:n,children:s})})]})},xT=({children:t,onSubmit:r,...n})=>e(v,{as:"form",onSubmit:t=>{t.preventDefault(),r&&r(t)},noValidate:!0,gap:"6",flexDir:"column",...n,children:t});var OT=function(){return OT=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},OT.apply(this,arguments)};function ST(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var jT=function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},PT={k:1e3,m:1e6,b:1e9},AT=function(t){var e=t.value,r=t.groupSeparator,n=void 0===r?",":r,o=t.decimalSeparator,i=void 0===o?".":o,a=t.allowDecimals,c=void 0===a||a,u=t.decimalsLimit,l=void 0===u?2:u,s=t.allowNegativeValue,f=void 0===s||s,p=t.disableAbbreviations,d=void 0!==p&&p,h=t.prefix,y=void 0===h?"":h,v=t.transformRawValue,m=(void 0===v?function(t){return t}:v)(e);if("-"===m)return m;var g=d?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(jT(y),")")).test(m),w=RegExp("(\\d+)-?".concat(jT(y))).exec(e)||[],x=w[0],O=w[1],S=function(t,e){void 0===e&&(e=",");var r=new RegExp(jT(e),"g");return t.replace(r,"")}(y?x?m.replace(x,"").concat(O):m.replace(y,""):m,n),j=function(t,e){var r=jT(e.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return t.replace(n,"")}(S,ST([n,i],g,!0)),P=j;if(!d){if(g.some((function(t){return t===j.toLowerCase().replace(i,"")})))return"";var A=function(t,e){void 0===e&&(e=".");var r=new RegExp("(\\d+(".concat(jT(e),"\\d*)?)([kmb])$"),"i"),n=t.match(r);if(n){var o=n[1],i=n[3],a=PT[i.toLowerCase()];return Number(o.replace(e,"."))*a}}(j,i);A&&(P=String(A))}var M=b&&f?"-":"";if(i&&P.includes(i)){var k=j.split(i),E=k[0],C=k[1],_=l&&C?C.slice(0,l):C,T=c?"".concat(i).concat(_):"";return"".concat(M).concat(E).concat(T)}return"".concat(M).concat(P)},MT=function(t,e){var r=e.groupSeparator,n=void 0===r?",":r,o=e.decimalSeparator,i=void 0===o?".":o,a=new RegExp("\\d([^".concat(jT(n)).concat(jT(i),"0-9]+)")),c=t.match(a);return c?c[1]:void 0},kT=function(t){var e=t.value,r=t.decimalSeparator,n=t.intlConfig,o=t.decimalScale,i=t.prefix,a=void 0===i?"":i,c=t.suffix,u=void 0===c?"":c;if(""===e||void 0===e)return"";if("-"===e)return"-";var l=new RegExp("^\\d?-".concat(a?"".concat(jT(a),"?"):"","\\d")).test(e),s="."!==r?ET(e,r,l):e;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f={minimumFractionDigits:o||0,maximumFractionDigits:20},p=(n?new Intl.NumberFormat(n.locale,n.currency?OT(OT({},f),{style:"currency",currency:n.currency}):f):new Intl.NumberFormat(void 0,f)).formatToParts(Number(s)),d=CT(p,t),h=MT(d,OT({},t)),y=e.slice(-1)===r?r:"",v=(s.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return void 0===o&&v&&r&&(d=d.includes(r)?d.replace(RegExp("(\\d+)(".concat(jT(r),")(\\d+)"),"g"),"$1$2".concat(v)):h&&!u?d.replace(h,"".concat(r).concat(v).concat(h)):"".concat(d).concat(r).concat(v)),u&&y?"".concat(d).concat(y).concat(u):h&&y?d.replace(h,"".concat(y).concat(h)):h&&u?d.replace(h,"".concat(y).concat(u)):[d,y,u].join("")},ET=function(t,e,r){var n=t;return e&&"."!==e&&(n=n.replace(RegExp(jT(e),"g"),"."),r&&"-"===e&&(n="-".concat(n.slice(1)))),n},CT=function(t,e){var r=e.prefix,n=e.groupSeparator,o=e.decimalSeparator,i=e.decimalScale,a=e.disableGroupSeparators,c=void 0!==a&&a;return t.reduce((function(t,e,a){var u=e.type,l=e.value;return 0===a&&r?"minusSign"===u?[l,r]:"currency"===u?ST(ST([],t,!0),[r],!1):[r,l]:"currency"===u?r?t:ST(ST([],t,!0),[l],!1):"group"===u?c?t:ST(ST([],t,!0),[void 0!==n?n:l],!1):"decimal"===u?void 0!==i&&0===i?t:ST(ST([],t,!0),[void 0!==o?o:l],!1):ST(ST([],t,!0),"fraction"===u?[void 0!==i?l.slice(0,i):l]:[l],!1)}),[""]).join("")},_T={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},TT=function(t){return RegExp(/\d/,"gi").test(t)},DT=rt((function(t,e){var r=t.allowDecimals,n=void 0===r||r,o=t.allowNegativeValue,i=void 0===o||o,a=t.id,c=t.name,u=t.className,l=t.customInput,s=t.decimalsLimit,f=t.defaultValue,p=t.disabled,d=void 0!==p&&p,h=t.maxLength,y=t.value,v=t.onValueChange,m=t.fixedDecimalLength,g=t.placeholder,b=t.decimalScale,w=t.prefix,x=t.suffix,O=t.intlConfig,S=t.step,j=t.min,P=t.max,A=t.disableGroupSeparators,M=void 0!==A&&A,k=t.disableAbbreviations,E=void 0!==k&&k,C=t.decimalSeparator,_=t.groupSeparator,T=t.onChange,D=t.onFocus,I=t.onBlur,N=t.onKeyDown,L=t.onKeyUp,B=t.transformRawValue,R=t.formatValueOnBlur,$=void 0===R||R,z=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue","formatValueOnBlur"]);if(C&&TT(C))throw new Error("decimalSeparator cannot be a number");if(_&&TT(_))throw new Error("groupSeparator cannot be a number");var H=ut((function(){return function(t){var e=t||{},r=e.locale,n=e.currency;return(r?new Intl.NumberFormat(r,n?{currency:n,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(t,e,r){return"currency"===e.type?OT(OT({},t),0===r?{currencySymbol:e.value,prefix:e.value}:{currencySymbol:e.value,suffix:e.value}):"group"===e.type?OT(OT({},t),{groupSeparator:e.value}):"decimal"===e.type?OT(OT({},t),{decimalSeparator:e.value}):t}),_T)}(O)}),[O]),F=C||H.decimalSeparator||"",V=_||H.groupSeparator||"";if(F&&V&&F===V&&!1===M)throw new Error("decimalSeparator cannot be the same as groupSeparator");var U={decimalSeparator:F,groupSeparator:V,disableGroupSeparators:M,intlConfig:O,prefix:w||H.prefix,suffix:x},W={decimalSeparator:F,groupSeparator:V,allowDecimals:n,decimalsLimit:s||m||2,allowNegativeValue:i,disableAbbreviations:E,prefix:w||H.prefix,transformRawValue:B},q=it((function(){return null!=f?kT(OT(OT({},U),{decimalScale:b,value:String(f)})):null!=y?kT(OT(OT({},U),{decimalScale:b,value:String(y)})):""})),Y=q[0],X=q[1],K=it(!1),G=K[0],Z=K[1],Q=it(0),tt=Q[0],et=Q[1],rt=it(0),at=rt[0],lt=rt[1],st=it(null),ft=st[0],pt=st[1],dt=nt(null);ot(e,(function(){return dt.current}));var ht=function(t,e){Z(!0);var r=function(t){var e=t.selectionStart,r=t.value,n=t.lastKeyStroke,o=t.stateValue,i=t.groupSeparator,a=e,c=r;if(o&&a){var u=r.split("");return"Backspace"===n&&o[a]===i&&(u.splice(a-1,1),a-=1),"Delete"===n&&o[a]===i&&(u.splice(a,1),a+=1),{modifiedValue:c=u.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:e}}({selectionStart:e,value:t,lastKeyStroke:ft,stateValue:Y,groupSeparator:V}),n=r.modifiedValue,o=r.cursorPosition,i=AT(OT({value:n},W));if(!(h&&i.replace(/-/g,"").length>h)){if(""===i||"-"===i||i===F)return v&&v(void 0,c,{float:null,formatted:"",value:""}),X(i),void et(1);var a=F?i.replace(F,"."):i,u=parseFloat(a),l=kT(OT({value:i},U));if(null!=o){var s=o+(l.length-t.length);s=s<=0?w?w.length:0:s,et(s),lt(at+1)}if(X(l),v)v(i,c,{float:u,formatted:l,value:i})}};ct((function(){null==y&&null==f&&X("")}),[f,y]),ct((function(){G&&"-"!==Y&&dt.current&&document.activeElement===dt.current&&dt.current.setSelectionRange(tt,tt)}),[Y,tt,dt,G,at]);var yt=OT({type:"text",inputMode:"decimal",id:a,name:c,className:u,onChange:function(t){var e=t.target,r=e.value,n=e.selectionStart;ht(r,n),T&&T(t)},onBlur:function(t){var e=t.target.value,r=AT(OT({value:e},W));if("-"===r||r===F||!r)return X(""),void(I&&I(t));var n=function(t,e,r){if(void 0!==r&&t.length>1){if(0===r)return t.replace(e,"");if(t.includes(e)){var n=t.split(e),o=n[0];if((c=n[1]).length===r)return t;if(c.length>r)return"".concat(o).concat(e).concat(c.slice(0,r))}var i=t.length>r?new RegExp("(\\d+)(\\d{".concat(r,"})")):new RegExp("(\\d)(\\d+)"),a=t.match(i);if(a){o=a[1];var c=a[2];return"".concat(o).concat(e).concat(c)}}return t}(r,F,m),o=function(t,e,r){if(void 0===e&&(e="."),void 0===r||""===t||void 0===t)return t;if(!t.match(/\d/g))return"";var n=t.split(e),o=n[0],i=n[1];if(0===r)return o;var a=i||"";if(a.length<r)for(;a.length<r;)a+="0";else a=a.slice(0,r);return"".concat(o).concat(e).concat(a)}(n,F,void 0!==b?b:m),i=parseFloat(o.replace(F,".")),a=kT(OT(OT({},U),{value:o}));v&&$&&v(o,c,{float:i,formatted:a,value:o}),X(a),I&&I(t)},onFocus:function(t){return D&&D(t),Y?Y.length:0},onKeyDown:function(t){var e=t.key;if(pt(e),S&&("ArrowUp"===e||"ArrowDown"===e)){t.preventDefault(),et(Y.length);var r=parseFloat(null!=y?String(y).replace(F,"."):AT(OT({value:Y},W)))||0,n="ArrowUp"===e?r+S:r-S;if(void 0!==j&&n<Number(j))return;if(void 0!==P&&n>Number(P))return;var o=String(S).includes(".")?Number(String(S).split(".")[1].length):void 0;ht(String(o?n.toFixed(o):n).replace(".",F))}N&&N(t)},onKeyUp:function(t){var e=t.key,r=t.currentTarget.selectionStart;if("ArrowUp"!==e&&"ArrowDown"!==e&&"-"!==Y){var n=MT(Y,{groupSeparator:V,decimalSeparator:F});if(n&&r&&r>Y.length-n.length&&dt.current){var o=Y.length-n.length;dt.current.setSelectionRange(o,o)}}L&&L(t)},placeholder:g,disabled:d,value:null==y||"-"===Y||F&&Y===F?Y:kT(OT(OT({},U),{decimalScale:G?void 0:b,value:String(y)})),ref:dt},z);if(l){var vt=l;return J.createElement(vt,OT({},yt))}return J.createElement("input",OT({},yt))}));DT.displayName="CurrencyInput";const IT=O(((r,n)=>{const{size:o,isDisabled:i,isReadOnly:a,isRequired:c,spellCheck:u=!1,name:l,label:s,register:f,errorMessage:p,helperText:d,leftAddon:h,leftElement:y,rightAddon:v,rightElement:m,type:w="text",containerCss:O,...C}=r,_=wr(o),T=f?f(l):void 0,D="currency"===w?{as:DT,placeholder:"$0.00",prefix:"$",allowNegative:!1,disableAbbreviations:!0}:{};return t(g,{isInvalid:Boolean(p),isDisabled:i,isReadOnly:a,isRequired:c,sx:O,children:[s&&e(b,{className:"cf-form-label",size:o,children:s}),t(S,{size:o,children:[h&&e(j,{children:h}),y&&e(P,{w:"auto",ml:"1em",children:y}),e(A,{size:o,spellCheck:u,paddingLeft:y&&"2.5em",paddingRight:m&&"2.5em",type:"currency"===w?"text":w,...T,...D,...C,ref:n||T?.ref}),m&&e(M,{w:"auto",mr:"1em",children:m}),v&&e(k,{children:v})]}),p&&e(x,{className:"cf-form-error",size:o,children:p}),d&&e(E,{className:"cf-form-helper-text",fontSize:_,children:d})]})}));var NT=t=>null==t;var LT=t=>!NT(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),BT=t=>{const e=t.constructor&&t.constructor.prototype;return LT(e)&&e.hasOwnProperty("isPrototypeOf")},RT="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function $T(t){let e;const r=Array.isArray(t);if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else{if(RT&&(t instanceof Blob||t instanceof FileList)||!r&&!LT(t))return t;if(e=r?[]:{},r||BT(t))for(const r in t)t.hasOwnProperty(r)&&(e[r]=$T(t[r]));else e=t}return e}var zT=t=>Array.isArray(t)?t.filter(Boolean):[],HT=t=>void 0===t,FT=(t,e,r)=>{if(!e||!LT(t))return r;const n=zT(e.split(/[,[\].]+?/)).reduce(((t,e)=>NT(t)?t:t[e]),t);return HT(n)||n===t?HT(t[e])?r:t[e]:n},VT=t=>"boolean"==typeof t,UT=t=>/^\w*$/.test(t),WT=t=>zT(t.replace(/["|']|\]/g,"").split(/\.|\[/)),qT=(t,e,r)=>{let n=-1;const o=UT(e)?[e]:WT(e),i=o.length,a=i-1;for(;++n<i;){const e=o[n];let i=r;if(n!==a){const r=t[e];i=LT(r)||Array.isArray(r)?r:isNaN(+o[n+1])?{}:[]}if("__proto__"===e)return;t[e]=i,t=t[e]}return t};const YT="onBlur",XT="onChange",KT="onSubmit",GT="onTouched",ZT="all",JT="max",QT="min",tD="maxLength",eD="minLength",rD="pattern",nD="required",oD="validate",iD=J.createContext(null);var aD=t=>LT(t)&&!Object.keys(t).length,cD=t=>Array.isArray(t)?t:[t];var uD=t=>"string"==typeof t,lD=(t,e,r,n,o)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:o||!0}}:{},sD=()=>{const t="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const r=(16*Math.random()+t)%16|0;return("x"==e?r:3&r|8).toString(16)}))},fD=(t,e,r={})=>r.shouldFocus||HT(r.shouldFocus)?r.focusName||`${t}.${HT(r.focusIndex)?e:r.focusIndex}.`:"",pD=t=>({isOnSubmit:!t||t===KT,isOnBlur:t===YT,isOnChange:t===XT,isOnAll:t===ZT,isOnTouch:t===GT});const dD=(t,e,r,n)=>{for(const r of Object.keys(t)){const o=FT(t,r);if(o){const{_f:t,...i}=o;if(t){if(t.refs&&t.refs[0]&&e(t.refs[0],r)&&!n)return!0;if(t.ref&&e(t.ref,t.name)&&!n)return!0;if(dD(i,e))break}else if(LT(i)&&dD(i,e))break}}};var hD=(t,e,r)=>{const n=cD(FT(t,r));return qT(n,"root",e[r]),qT(t,r,n),t},yD=t=>uD(t),vD=t=>t instanceof RegExp;function mD(t,e,r="validate"){if(yD(t)||Array.isArray(t)&&t.every(yD)||VT(t)&&!t)return{type:r,message:yD(t)?t:"",ref:e}}var gD=t=>LT(t)&&!vD(t)?t:{value:t,message:""},bD=async(t,e,r,n,o)=>{const{ref:i,refs:a,required:c,maxLength:u,minLength:l,min:s,max:f,pattern:p,validate:d,name:h,valueAsNumber:y,mount:v,disabled:m}=t._f,g=FT(e,h);if(!v||m)return{};const b=a?a[0]:i,w=t=>{n&&b.reportValidity&&(b.setCustomValidity(VT(t)?"":t||""),b.reportValidity())},x={};i.type,(t=>{t.type})(i);const O=(y||(t=>"file"===t.type)(i))&&HT(i.value)&&HT(g)||(t=>{if(!RT)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)})(i)&&""===i.value||""===g||Array.isArray(g)&&!g.length,S=lD.bind(null,h,r,x),j=(t,e,r,n=tD,o=eD)=>{const a=t?e:r;x[h]={type:t?n:o,message:a,ref:i,...S(t?n:o,a)}};if(!Array.isArray(g)||!g.length){const{value:t,message:e}=yD(c)?{value:!!c,message:c}:gD(c);if(t&&(x[h]={type:nD,message:e,ref:b,...S(nD,e)},!r))return w(e),x}if(!(O||NT(s)&&NT(f))){let t,e;const n=gD(f),o=gD(s);if(NT(g)||isNaN(g)){const r=i.valueAsDate||new Date(g),a=t=>new Date((new Date).toDateString()+" "+t),c="time"==i.type,u="week"==i.type;uD(n.value)&&g&&(t=c?a(g)>a(n.value):u?g>n.value:r>new Date(n.value)),uD(o.value)&&g&&(e=c?a(g)<a(o.value):u?g<o.value:r<new Date(o.value))}else{const r=i.valueAsNumber||(g?+g:g);NT(n.value)||(t=r>n.value),NT(o.value)||(e=r<o.value)}if((t||e)&&(j(!!t,n.message,o.message,JT,QT),!r))return w(x[h].message),x}if((u||l)&&!O&&(uD(g)||Array.isArray(g))){const t=gD(u),e=gD(l),n=!NT(t.value)&&g.length>+t.value,o=!NT(e.value)&&g.length<+e.value;if((n||o)&&(j(n,t.message,e.message),!r))return w(x[h].message),x}if(p&&!O&&uD(g)){const{value:t,message:e}=gD(p);if(vD(t)&&!g.match(t)&&(x[h]={type:rD,message:e,ref:i,...S(rD,e)},!r))return w(e),x}if(d)if("function"==typeof d){const t=mD(await d(g,e),b);if(t&&(x[h]={...t,...S(oD,t.message)},!r))return w(t.message),x}else if(LT(d)){let t={};for(const n in d){if(!aD(t)&&!r)break;const o=mD(await d[n](g,e),b,n);o&&(t={...o,...S(n,o.message)},w(o.message),r&&(x[h]=t))}if(!aD(t)&&(x[h]={ref:b,...t},!r))return x}return w(!0),x},wD=(t,e)=>[...t,...cD(e)],xD=t=>Array.isArray(t)?t.map((()=>{})):void 0;function OD(t,e,r){return[...t.slice(0,e),...cD(r),...t.slice(e)]}var SD=(t,e,r)=>Array.isArray(t)?(HT(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],jD=(t,e)=>[...cD(e),...cD(t)];var PD=(t,e)=>HT(e)?[]:function(t,e){let r=0;const n=[...t];for(const t of e)n.splice(t-r,1),r++;return zT(n).length?n:[]}(t,cD(e).sort(((t,e)=>t-e))),AD=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]};function MD(t,e){const r=Array.isArray(e)?e:UT(e)?[e]:WT(e),n=1===r.length?t:function(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=HT(t)?n++:t[e[n++]];return t}(t,r),o=r.length-1,i=r[o];return n&&delete n[i],0!==o&&(LT(n)&&aD(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!HT(t[e]))return!1;return!0}(n))&&MD(t,r.slice(0,-1)),t}var kD=(t,e,r)=>(t[e]=r,t);function ED(t){const e=J.useContext(iD),{control:r=e.control,name:n,keyName:o="id",shouldUnregister:i}=t,[a,c]=J.useState(r._getFieldArray(n)),u=J.useRef(r._getFieldArray(n).map(sD)),l=J.useRef(a),s=J.useRef(n),f=J.useRef(!1);s.current=n,l.current=a,r._names.array.add(n),t.rules&&r.register(n,t.rules),function(t){const e=J.useRef(t);e.current=t,J.useEffect((()=>{const r=!t.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{r&&r.unsubscribe()}}),[t.disabled])}({next:({values:t,name:e})=>{if(e===s.current||!e){const e=FT(t,s.current);Array.isArray(e)&&(c(e),u.current=e.map(sD))}},subject:r._subjects.array});const p=J.useCallback((t=>{f.current=!0,r._updateFieldArray(n,t)}),[r,n]);return J.useEffect((()=>{if(r._state.action=!1,((t,e,r)=>e.watchAll||e.watch.has(t)||[...e.watch].some((e=>t.startsWith(e)&&/^\.\w+/.test(t.slice(e.length)))))(n,r._names)&&r._subjects.state.next({...r._formState}),f.current&&(!pD(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then((t=>{const e=FT(t.errors,n),o=FT(r._formState.errors,n);(o?!e&&o.type||e&&(o.type!==e.type||o.message!==e.message):e&&e.type)&&(e?qT(r._formState.errors,n,e):MD(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=FT(r._fields,n);!t||!t._f||pD(r._options.reValidateMode).isOnSubmit&&pD(r._options.mode).isOnSubmit||bD(t,r._formValues,r._options.criteriaMode===ZT,r._options.shouldUseNativeValidation).then((t=>!aD(t)&&r._subjects.state.next({errors:hD(r._formState.errors,t,n)})))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&dD(r._fields,((t,e)=>{if(r._names.focus&&e.startsWith(r._names.focus)&&t.focus)return t.focus(),1})),r._names.focus="",r._updateValid(),f.current=!1}),[a,n,r]),J.useEffect((()=>(!FT(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||i)&&r.unregister(n)})),[n,r,o,i]),{swap:J.useCallback(((t,e)=>{const o=r._getFieldArray(n);AD(o,t,e),AD(u.current,t,e),p(o),c(o),r._updateFieldArray(n,o,AD,{argA:t,argB:e},!1)}),[p,n,r]),move:J.useCallback(((t,e)=>{const o=r._getFieldArray(n);SD(o,t,e),SD(u.current,t,e),p(o),c(o),r._updateFieldArray(n,o,SD,{argA:t,argB:e},!1)}),[p,n,r]),prepend:J.useCallback(((t,e)=>{const o=cD($T(t)),i=jD(r._getFieldArray(n),o);r._names.focus=fD(n,0,e),u.current=jD(u.current,o.map(sD)),p(i),c(i),r._updateFieldArray(n,i,jD,{argA:xD(t)})}),[p,n,r]),append:J.useCallback(((t,e)=>{const o=cD($T(t)),i=wD(r._getFieldArray(n),o);r._names.focus=fD(n,i.length-1,e),u.current=wD(u.current,o.map(sD)),p(i),c(i),r._updateFieldArray(n,i,wD,{argA:xD(t)})}),[p,n,r]),remove:J.useCallback((t=>{const e=PD(r._getFieldArray(n),t);u.current=PD(u.current,t),p(e),c(e),r._updateFieldArray(n,e,PD,{argA:t})}),[p,n,r]),insert:J.useCallback(((t,e,o)=>{const i=cD($T(e)),a=OD(r._getFieldArray(n),t,i);r._names.focus=fD(n,t,o),u.current=OD(u.current,t,i.map(sD)),p(a),c(a),r._updateFieldArray(n,a,OD,{argA:t,argB:xD(e)})}),[p,n,r]),update:J.useCallback(((t,e)=>{const o=$T(e),i=kD(r._getFieldArray(n),t,o);u.current=[...i].map(((e,r)=>e&&r!==t?u.current[r]:sD())),p(i),c([...i]),r._updateFieldArray(n,i,kD,{argA:t,argB:o},!0,!1)}),[p,n,r]),replace:J.useCallback((t=>{const e=cD($T(t));u.current=e.map(sD),p([...e]),c([...e]),r._updateFieldArray(n,[...e],(t=>t),{},!0,!1)}),[p,n,r]),fields:J.useMemo((()=>a.map(((t,e)=>({...t,[o]:u.current[e]||sD()})))),[a,o])}}const CD=({name:r,control:n,register:o,defaultValues:i,onArrayAppend:a,onArrayRemove:c})=>{const{fields:u,append:l,remove:s}=ED({control:n,name:r}),p=Object.keys(i).reduce(((t,e)=>({...t,[e]:i[e]})),{});return t(C,{children:[u.map(((n,i)=>e(C,{children:t(C,{pb:6,position:"relative",children:[Object.keys(n).filter((t=>"id"!==t)).map((t=>e(IT,{label:t,name:`${r}.${i}.${t}`,register:o},`${t}-${n.id}`))),e(f,{label:"Delete",children:e(v,{position:"absolute",top:"0",right:"0",children:e(h,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(i),c&&c(i)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),e(v,{children:e(h,{size:"sm",onClick:()=>{l(p),a&&a(p)},ml:"auto",children:"+"})})]})},_D=({data:r,dataKey:n,width:o="100%",height:i="100%",lineType:a="linear",isAnimated:c=!1,formatter:u,labelFormatter:l,sampleRate:s,style:f})=>{const{isNetGain:p}=br({data:r,dataKey:n}),d=yn(),h=s?Sr({arr:r||[],n:s}):r;let y,v;h?.length?(v=p?Pr.mint():Pr.heroicRed(),y=h?.map((t=>({...t,[n]:Number(t[n])||0})))):(v=Pr.coolElegance(),y=[{[n]:0},{[n]:0}]);const m={cursor:h?.length?"crosshair":"default",...f};return e(Xh,{width:o,minHeight:i,id:d,children:t(fT,{data:y,style:m,children:[e(f_,{domain:["dataMin","dataMax"],hide:!0}),e(MC,{isAnimationActive:c,type:a,dataKey:n,stroke:v,strokeWidth:"2",activeDot:t=>dT({chartId:d,labelFormatter:l,formatter:u,...t}),dot:!1,scale:"threshold"}),h?.length&&e(Lh,{cursor:!1,content:()=>null})]})})},TD=({isOpen:r,onClose:n,headerContent:o=null,footerContent:i=null,children:a,isCentered:c=!0,size:u={base:"md",md:"xl"},isDisabledCloseButton:l,bodyProps:s={},contentProps:f={},...p})=>{const d={maxHeight:"60vh",bg:"transparent",overflow:"scroll",...s},h={...{minWidth:kr},...f};return t(_,{blockScrollOnMount:!1,scrollBehavior:"inside",isOpen:r,onClose:n,isCentered:c,size:u,trapFocus:!xr(),...p,children:[e(T,{}),t(D,{...h,children:[e(I,{children:o}),e(N,{isDisabled:l}),e(L,{...d,children:a}),i&&e(B,{borderTop:"solid 1px",borderColor:Pr.coolElegance(),justifyContent:"flex-start",children:i})]})]})},DD=t=>{const{isActive:r,children:n,href:o,...i}=t;return e(R,{display:"flex",as:R,borderRadius:"md",border:"solid 1px",bg:r?"brand.50":"transparent",borderColor:r?"brand.200":"transparent",boxShadow:r?`0 8px 16px 0 ${Pr.black(.08)}`:"none",href:o,alignItems:"center",lineHeight:"1",position:"relative",padding:"2",zIndex:"3",transition:"border-color 0.25s",_hover:{borderColor:!r&&Pr.coolElegance(),textDecoration:"none"},...i,children:n},o)};var ID,ND={exports:{}};var LD,BD=(ID||(ID=1,LD=ND,function(t,e){LD.exports=e(J)}(0,(t=>(()=>{var e={703:(t,e,r)=>{var n=r(414);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){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 e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},697:(t,e,r)=>{t.exports=r(703)()},414:t=>{t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98:e=>{e.exports=t}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{n.r(o),n.d(o,{default:()=>w});var t=n(98),e=n.n(t),r=n(697),i=n.n(r);function a(){return a=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},a.apply(this,arguments)}var c=function(t){var r=t.pageClassName,n=t.pageLinkClassName,o=t.page,i=t.selected,c=t.activeClassName,u=t.activeLinkClassName,l=t.getEventListener,s=t.pageSelectedHandler,f=t.href,p=t.extraAriaContext,d=t.pageLabelBuilder,h=t.rel,y=t.ariaLabel||"Page "+o+(p?" "+p:""),v=null;return i&&(v="page",y=t.ariaLabel||"Page "+o+" is your current page",r=void 0!==r?r+" "+c:c,void 0!==n?void 0!==u&&(n=n+" "+u):n=u),e().createElement("li",{className:r},e().createElement("a",a({rel:h,role:f?void 0:"button",className:n,href:f,tabIndex:i?"-1":"0","aria-label":y,"aria-current":v,onKeyPress:s},l(s)),d(o)))};c.propTypes={pageSelectedHandler:i().func.isRequired,selected:i().bool.isRequired,pageClassName:i().string,pageLinkClassName:i().string,activeClassName:i().string,activeLinkClassName:i().string,extraAriaContext:i().string,href:i().string,ariaLabel:i().string,page:i().number.isRequired,getEventListener:i().func.isRequired,pageLabelBuilder:i().func.isRequired,rel:i().string};const u=c;function l(){return l=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},l.apply(this,arguments)}var s=function(t){var r=t.breakLabel,n=t.breakAriaLabel,o=t.breakClassName,i=t.breakLinkClassName,a=t.breakHandler,c=t.getEventListener,u=o||"break";return e().createElement("li",{className:u},e().createElement("a",l({className:i,role:"button",tabIndex:"0","aria-label":n,onKeyPress:a},c(a)),r))};s.propTypes={breakLabel:i().oneOfType([i().string,i().node]),breakAriaLabel:i().string,breakClassName:i().string,breakLinkClassName:i().string,breakHandler:i().func.isRequired,getEventListener:i().func.isRequired};const f=s;function p(t){return null!=t?t:arguments.length>1&&void 0!==arguments[1]?arguments[1]:""}function d(t){return d="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},d(t)}function h(){return h=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},h.apply(this,arguments)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function g(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=function(t){!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&&y(t,e)}(c,t);var r,n,o,i,a=(o=c,i=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}}(),function(){var t,e=m(o);if(i){var r=m(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(t)}(this,t)});function c(t){var r,n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),g(v(r=a.call(this,t)),"handlePreviousPage",(function(t){var e=r.state.selected;r.handleClick(t,null,e>0?e-1:void 0,{isPrevious:!0})})),g(v(r),"handleNextPage",(function(t){var e=r.state.selected,n=r.props.pageCount;r.handleClick(t,null,e<n-1?e+1:void 0,{isNext:!0})})),g(v(r),"handlePageSelected",(function(t,e){if(r.state.selected===t)return r.callActiveCallback(t),void r.handleClick(e,null,void 0,{isActive:!0});r.handleClick(e,null,t)})),g(v(r),"handlePageChange",(function(t){r.state.selected!==t&&(r.setState({selected:t}),r.callCallback(t))})),g(v(r),"getEventListener",(function(t){return g({},r.props.eventListener,t)})),g(v(r),"handleClick",(function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=o.isPrevious,a=void 0!==i&&i,c=o.isNext,u=void 0!==c&&c,l=o.isBreak,s=void 0!==l&&l,f=o.isActive,p=void 0!==f&&f;t.preventDefault?t.preventDefault():t.returnValue=!1;var d=r.state.selected,h=r.props.onClick,y=n;if(h){var v=h({index:e,selected:d,nextSelectedPage:n,event:t,isPrevious:a,isNext:u,isBreak:s,isActive:p});if(!1===v)return;Number.isInteger(v)&&(y=v)}void 0!==y&&r.handlePageChange(y)})),g(v(r),"handleBreakClick",(function(t,e){var n=r.state.selected;r.handleClick(e,t,n<t?r.getForwardJump():r.getBackwardJump(),{isBreak:!0})})),g(v(r),"callCallback",(function(t){void 0!==r.props.onPageChange&&"function"==typeof r.props.onPageChange&&r.props.onPageChange({selected:t})})),g(v(r),"callActiveCallback",(function(t){void 0!==r.props.onPageActive&&"function"==typeof r.props.onPageActive&&r.props.onPageActive({selected:t})})),g(v(r),"getElementPageRel",(function(t){var e=r.state.selected,n=r.props,o=n.nextPageRel,i=n.prevPageRel,a=n.selectedPageRel;return e-1===t?i:e===t?a:e+1===t?o:void 0})),g(v(r),"pagination",(function(){var t=[],n=r.props,o=n.pageRangeDisplayed,i=n.pageCount,a=n.marginPagesDisplayed,c=n.breakLabel,u=n.breakClassName,l=n.breakLinkClassName,s=n.breakAriaLabels,p=r.state.selected;if(i<=o)for(var d=0;d<i;d++)t.push(r.getPageElement(d));else{var h=o/2,y=o-h;p>i-o/2?h=o-(y=i-p):p<o/2&&(y=o-(h=p));var v,m,g=function(t){return r.getPageElement(t)},b=[];for(v=0;v<i;v++){var w=v+1;if(w<=a)b.push({type:"page",index:v,display:g(v)});else if(w>i-a)b.push({type:"page",index:v,display:g(v)});else if(v>=p-h&&v<=p+(0===p&&o>1?y-1:y))b.push({type:"page",index:v,display:g(v)});else if(c&&b.length>0&&b[b.length-1].display!==m&&(o>0||a>0)){var x=v<p?s.backward:s.forward;m=e().createElement(f,{key:v,breakAriaLabel:x,breakLabel:c,breakClassName:u,breakLinkClassName:l,breakHandler:r.handleBreakClick.bind(null,v),getEventListener:r.getEventListener}),b.push({type:"break",index:v,display:m})}}b.forEach((function(e,r){var n=e;"break"===e.type&&b[r-1]&&"page"===b[r-1].type&&b[r+1]&&"page"===b[r+1].type&&b[r+1].index-b[r-1].index<=2&&(n={type:"page",index:e.index,display:g(e.index)}),t.push(n.display)}))}return t})),void 0!==t.initialPage&&void 0!==t.forcePage&&console.warn("(react-paginate): Both initialPage (".concat(t.initialPage,") and forcePage (").concat(t.forcePage,") props are provided, which is discouraged.")+" Use exclusively forcePage prop for a controlled component.\nSee https://reactjs.org/docs/forms.html#controlled-components"),n=t.initialPage?t.initialPage:t.forcePage?t.forcePage:0,r.state={selected:n},r}return r=c,(n=[{key:"componentDidMount",value:function(){var t=this.props,e=t.initialPage,r=t.disableInitialCallback,n=t.extraAriaContext,o=t.pageCount,i=t.forcePage;void 0===e||r||this.callCallback(e),n&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(o)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(o,"). Did you forget a Math.ceil()?")),void 0!==e&&e>o-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(e," > ").concat(o-1,").")),void 0!==i&&i>o-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(i," > ").concat(o-1,")."))}},{key:"componentDidUpdate",value:function(t){void 0!==this.props.forcePage&&this.props.forcePage!==t.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(this.props.forcePage," > ").concat(this.props.pageCount-1,").")),this.setState({selected:this.props.forcePage})),Number.isInteger(t.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(this.props.pageCount,"). Did you forget a Math.ceil()?"))}},{key:"getForwardJump",value:function(){var t=this.state.selected,e=this.props,r=e.pageCount,n=t+e.pageRangeDisplayed;return n>=r?r-1:n}},{key:"getBackwardJump",value:function(){var t=this.state.selected-this.props.pageRangeDisplayed;return t<0?0:t}},{key:"getElementHref",value:function(t){var e=this.props,r=e.hrefBuilder,n=e.pageCount,o=e.hrefAllControls;if(r)return o||t>=0&&t<n?r(t+1,n,this.state.selected):void 0}},{key:"ariaLabelBuilder",value:function(t){var e=t===this.state.selected;if(this.props.ariaLabelBuilder&&t>=0&&t<this.props.pageCount){var r=this.props.ariaLabelBuilder(t+1,e);return this.props.extraAriaContext&&!e&&(r=r+" "+this.props.extraAriaContext),r}}},{key:"getPageElement",value:function(t){var r=this.state.selected,n=this.props,o=n.pageClassName,i=n.pageLinkClassName,a=n.activeClassName,c=n.activeLinkClassName,l=n.extraAriaContext,s=n.pageLabelBuilder;return e().createElement(u,{key:t,pageSelectedHandler:this.handlePageSelected.bind(null,t),selected:r===t,rel:this.getElementPageRel(t),pageClassName:o,pageLinkClassName:i,activeClassName:a,activeLinkClassName:c,extraAriaContext:l,href:this.getElementHref(t),ariaLabel:this.ariaLabelBuilder(t),page:t+1,pageLabelBuilder:s,getEventListener:this.getEventListener})}},{key:"render",value:function(){var t=this.props.renderOnZeroPageCount;if(0===this.props.pageCount&&void 0!==t)return t?t(this.props):t;var r=this.props,n=r.disabledClassName,o=r.disabledLinkClassName,i=r.pageCount,a=r.className,c=r.containerClassName,u=r.previousLabel,l=r.previousClassName,s=r.previousLinkClassName,f=r.previousAriaLabel,d=r.prevRel,y=r.nextLabel,v=r.nextClassName,m=r.nextLinkClassName,g=r.nextAriaLabel,b=r.nextRel,w=this.state.selected,x=0===w,O=w===i-1,S="".concat(p(l)).concat(x?" ".concat(p(n)):""),j="".concat(p(v)).concat(O?" ".concat(p(n)):""),P="".concat(p(s)).concat(x?" ".concat(p(o)):""),A="".concat(p(m)).concat(O?" ".concat(p(o)):""),M=x?"true":"false",k=O?"true":"false";return e().createElement("ul",{className:a||c,role:"navigation","aria-label":"Pagination"},e().createElement("li",{className:S},e().createElement("a",h({className:P,href:this.getElementHref(w-1),tabIndex:x?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":M,"aria-label":f,rel:d},this.getEventListener(this.handlePreviousPage)),u)),this.pagination(),e().createElement("li",{className:j},e().createElement("a",h({className:A,href:this.getElementHref(w+1),tabIndex:O?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":k,"aria-label":g,rel:b},this.getEventListener(this.handleNextPage)),y)))}}])&&function(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,n.key,n)}}(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(t.Component);g(b,"propTypes",{pageCount:i().number.isRequired,pageRangeDisplayed:i().number,marginPagesDisplayed:i().number,previousLabel:i().node,previousAriaLabel:i().string,prevPageRel:i().string,prevRel:i().string,nextLabel:i().node,nextAriaLabel:i().string,nextPageRel:i().string,nextRel:i().string,breakLabel:i().oneOfType([i().string,i().node]),breakAriaLabels:i().shape({forward:i().string,backward:i().string}),hrefBuilder:i().func,hrefAllControls:i().bool,onPageChange:i().func,onPageActive:i().func,onClick:i().func,initialPage:i().number,forcePage:i().number,disableInitialCallback:i().bool,containerClassName:i().string,className:i().string,pageClassName:i().string,pageLinkClassName:i().string,pageLabelBuilder:i().func,activeClassName:i().string,activeLinkClassName:i().string,previousClassName:i().string,nextClassName:i().string,previousLinkClassName:i().string,nextLinkClassName:i().string,disabledClassName:i().string,disabledLinkClassName:i().string,breakClassName:i().string,breakLinkClassName:i().string,extraAriaContext:i().string,ariaLabelBuilder:i().func,eventListener:i().string,renderOnZeroPageCount:i().func,selectedPageRel:i().string}),g(b,"defaultProps",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:"selected",previousLabel:"Previous",previousClassName:"previous",previousAriaLabel:"Previous page",prevPageRel:"prev",prevRel:"prev",nextLabel:"Next",nextClassName:"next",nextAriaLabel:"Next page",nextPageRel:"next",nextRel:"next",breakLabel:"...",breakAriaLabels:{forward:"Jump forward",backward:"Jump backward"},disabledClassName:"disabled",disableInitialCallback:!1,pageLabelBuilder:function(t){return t},eventListener:"onClick",renderOnZeroPageCount:void 0,selectedPageRel:"canonical",hrefAllControls:!1});const w=b})(),o})()))),ND.exports);const RD=n(Ze(BD)),$D=({totalRecords:t=0,recordsPerPage:r=10,pageRangeDisplayed:n=3,handlePageClick:o,forcePage:i,...a})=>{const c=Math.ceil(t/r);return e(v,{justifyContent:{base:"center",md:"flex-end"},fontSize:{base:14,md:18},gap:2,w:"full",...a,children:e(RD,{breakLabel:"...",previousLabel:"<",nextLabel:">",onPageChange:o,pageRangeDisplayed:n,pageCount:c,renderOnZeroPageCount:null,forcePage:i,display:{base:"flex"},alignItems:"center",gap:"inherit",disabledLinkClassName:"disabled-pagination",pageLinkClassName:"pagination-link",activeClassName:"active-page",previousClassName:"previous-page-button",nextClassName:"next-page-button",sx:{listStyleType:"none",".pagination-link:hover":{backgroundColor:"brand.700"},".previous-page-button a, .next-page-button a, .pagination-link":{backgroundColor:"brand.300",borderRadius:4,color:Pr.white()},".previous-page-button a, .next-page-button a":{minWidth:"2rem",display:"inline-block",textAlign:"center",paddingX:{base:2,lg:2.5}},".pagination-link":{minWidth:"2.5rem",display:"inline-block",textAlign:"center",paddingX:{base:2.5,lg:3}},".active-page a":{backgroundColor:"brand.500"},".disabled-pagination":{backgroundColor:"gray.300 !important",cursor:"not-allowed !important"}}})})},zD=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:o,lastEvaluatedKey:i,...a})=>{const[c,u]=it([]),[l,s]=it(1);return t(v,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[e(h,{onClick:()=>{if(2===l)return o(void 0),u([]),void s((t=>t-1));const t=c.length-1,e=c[t-1];o(e),u((t=>t.slice(0,-1))),s((t=>t-1))},isDisabled:r||1===l,children:"Previous"}),e(h,{onClick:()=>{if(i){const t={lastEvaluatedPKey:i.pKey,lastEvaluatedSKey:i.sKey};o(t),u((e=>[...e,t])),s((t=>t+1))}},isDisabled:r||!n,children:"Next"})]})},HD=({children:t,isEnabled:r=!0,...n})=>{const o=r?ht`
32
32
  text-wrap: balance;
33
33
  text-wrap: pretty;
34
34
  `:void 0;return e(C,{css:o,...n,children:t})},FD=r=>{const{children:n,size:o,isDisabled:i,isReadOnly:a,isRequired:c,name:u,register:l,errorMessage:s,helperText:f,label:p,...d}=r,h=wr(o),y=l?l(u):void 0;return t(g,{isInvalid:Boolean(s),isDisabled:i,isReadOnly:a,isRequired:c,children:[p&&e(b,{size:o,children:p}),e($,{icon:e(St,{}),size:o,...y,...d,children:n}),s&&e(x,{size:o,children:s}),f&&e(E,{fontSize:h,children:f})]})},VD=yt({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}),UD=({boxSize:t=8,color:r="brand",...n})=>{const o="neutral"===r?Pr.sonicSilver():"brand.500";return e(v,{width:"full",justifyContent:"center",alignItems:"center",minHeight:Number.isFinite(Number(t))?3*Number(t):`calc(${t} * 3)`,...n,children:e(v,{width:t,height:t,animation:`${VD} 2000ms infinite linear`,children:e(de,{boxSize:t,__css:{path:{fill:o}}})})})},WD=r=>{const{label:n,rightIcon:o,leftIcon:i,onClose:a,...c}=r,[u,l]=it(!0);return u?t(z,{className:"cf-tag",...c,children:[i&&e(H,{as:i}),e(F,{children:n}),o&&e(V,{as:o}),a&&e(U,{onClick:()=>{a(),l(!1)}})]}):null},qD=({description:r,title:n,onClose:o,isClosable:i,status:a})=>{let c,u;switch(a){case"error":u=vt;break;case"success":u=kt;break;case"warning":u=Yt,c="yellow";break;case"loading":c="brand",u=G;break;default:c="brand",u=Yt}return t(W,{as:v,colorScheme:c,justifyContent:"space-between",status:a,children:[t(v,{alignItems:"center",mr:"4",children:[e(q,{children:e(u,{size:"sm"})}),t(C,{children:[e(Y,{children:n}),e(X,{children:r})]})]}),i&&e(K,{onClick:o})]})},YD=({children:t,label:r})=>{const n=r?e(v,{padding:"1",flexDir:"column",gap:"2",lineHeight:"normal",fontSize:"sm",children:r}):null;return e(f,{label:n,hasArrow:!0,children:t})},XD=()=>{const t=l({ssr:!1}),e="base"===t||"sm"===t,r="md"===t,n="lg"===t||"xl"===t||"2xl"===t;return{breakpoint:t,isSmallBreakpoint:e,isMediumBreakpoint:r,isLargeBreakpoint:n,isAboveSmallBreakpoint:r||n,isBelowLargeBreakpoint:r||e}};export{hT as CfAreaChart,yT as CfBreakpointDebugger,vT as CfButtonGroup,mT as CfButtonGroupButton,gT as CfCard,bT as CfCarousel,wT as CfCheckbox,xT as CfForm,IT as CfInput,CD as CfInputArray,_D as CfLineChart,TD as CfModal,DD as CfNavLink,$D as CfOpenSearchPagination,zD as CfPagination,HD as CfPrettyWrap,FD as CfSelect,UD as CfSpinner,WD as CfTag,qD as CfToast,YD as CfTooltip,vt as IconAlert,be as IconAlgo,mt as IconArrowDown,gt as IconArrowUp,we as IconAvax,bt as IconBank,wt as IconBarChart,xe as IconBch,xt as IconBookCheck,Oe as IconBtc,Ot as IconCalendar,St as IconCaretDown,jt as IconCaretLeft,Pt as IconCaretRight,At as IconCaretUp,Mt as IconCent,kt as IconCheck,Et as IconChecking,Ct as IconCircleCheck,_t as IconClose,Tt as IconConnect,Dt as IconCopy,It as IconDollar,Nt as IconDollarBill,Lt as IconDownload,Bt as IconEdit,Rt as IconEnter,$t as IconEnterInverted,Se as IconEth,zt as IconExchange,Ht as IconFilter,Ft as IconHelp,Vt as IconHistory,Ut as IconHome,Wt as IconIndicatorDown,qt as IconIndicatorUp,Yt as IconInfo,je as IconLink,Xt as IconLock,Pe as IconLtc,Kt as IconMail,Gt as IconMenu,Zt as IconMinus,Ae as IconMkr,Jt as IconMore,Qt as IconNotification,te as IconOverview,ee as IconPercent,re as IconPieChart,ne as IconPlus,ge as IconRefresh,oe as IconReports,ie as IconReservesSuccess,ae as IconReservesWarning,ce as IconSearch,ue as IconSettings,le as IconSettlement,se as IconSignIn,fe as IconSignOut,pe as IconSort,de as IconSpinner,he as IconSupport,ye as IconTrash,ve as IconUpload,me as IconUser,Me as IconXlm,ke as IconXrp,Ke as aggregateAmounts,fn as coreTheme,Er as dateFormats,lr as dateToTimestamp,sr as formatPercentage,pn as formatPhoneNumber,gr as formatUsd,br as getDelta,xr as isIframe,kr as layoutMinWidth,Sr as pullFromEnd,jr as splitOnCapitals,Pr as uiColors,Mr as usdToNumber,XD as useCfBreakpoint,Cr as utcDateToLocal};