Files
Basilosaurusrex f027651f9b main repo
2025-11-24 18:09:40 +01:00

3 lines
487 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*! For license information please see Recharts.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("prop-types"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","prop-types","react-dom"],e):"object"==typeof exports?exports.Recharts=e(require("react"),require("prop-types"),require("react-dom")):t.Recharts=e(t.React,t.PropTypes,t.ReactDOM)}(this,((t,e,r)=>(()=>{var n={7996:function(t,e,r){var n;!function(o){"use strict";var i,a=1e9,c={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},u=!0,l="[DecimalError] ",s=l+"Invalid argument: ",f=l+"Exponent out of range: ",p=Math.floor,h=Math.pow,d=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,y=1e7,v=7,m=9007199254740991,b=p(m/v),g={};function x(t,e){var r,n,o,i,a,c,l,s,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),u?M(e,p):e;if(l=t.d,s=e.d,a=t.e,o=e.e,l=l.slice(),i=a-o){for(i<0?(n=l,i=-i,c=s.length):(n=s,o=a,c=l.length),i>(c=(a=Math.ceil(p/v))>c?a+1:c+1)&&(i=c,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((c=l.length)-(i=s.length)<0&&(i=c,n=s,s=l,l=n),r=0;i;)r=(l[--i]=l[i]+s[i]+r)/y|0,l[i]%=y;for(r&&(l.unshift(r),++o),c=l.length;0==l[--c];)l.pop();return e.d=l,e.e=o,u?M(e,p):e}function O(t,e,r){if(t!==~~t||t<e||t>r)throw Error(s+t)}function w(t){var e,r,n,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;e<o;e++)n=t[e]+"",(r=v-n.length)&&(i+=E(r)),i+=n;a=t[e],(r=v-(n=a+"").length)&&(i+=E(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}g.absoluteValue=g.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},g.comparedTo=g.cmp=function(t){var e,r,n,o,i=this;if(t=new i.constructor(t),i.s!==t.s)return i.s||-t.s;if(i.e!==t.e)return i.e>t.e^i.s<0?1:-1;for(e=0,r=(n=i.d.length)<(o=t.d.length)?n:o;e<r;++e)if(i.d[e]!==t.d[e])return i.d[e]>t.d[e]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1},g.decimalPlaces=g.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*v;if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},g.dividedBy=g.div=function(t){return j(this,new this.constructor(t))},g.dividedToIntegerBy=g.idiv=function(t){var e=this.constructor;return M(j(this,new e(t),0,1),e.precision)},g.equals=g.eq=function(t){return!this.cmp(t)},g.exponent=function(){return A(this)},g.greaterThan=g.gt=function(t){return this.cmp(t)>0},g.greaterThanOrEqualTo=g.gte=function(t){return this.cmp(t)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return 0===this.s},g.lessThan=g.lt=function(t){return this.cmp(t)<0},g.lessThanOrEqualTo=g.lte=function(t){return this.cmp(t)<1},g.logarithm=g.log=function(t){var e,r=this,n=r.constructor,o=n.precision,a=o+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(i))throw Error(l+"NaN");if(r.s<1)throw Error(l+(r.s?"NaN":"-Infinity"));return r.eq(i)?new n(0):(u=!1,e=j(k(r,a),k(t,a),a),u=!0,M(e,o))},g.minus=g.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?_(e,t):x(e,(t.s=-t.s,t))},g.modulo=g.mod=function(t){var e,r=this,n=r.constructor,o=n.precision;if(!(t=new n(t)).s)throw Error(l+"NaN");return r.s?(u=!1,e=j(r,t,0,1).times(t),u=!0,r.minus(e)):M(new n(r),o)},g.naturalExponential=g.exp=function(){return S(this)},g.naturalLogarithm=g.ln=function(){return k(this)},g.negated=g.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},g.plus=g.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?x(e,t):_(e,(t.s=-t.s,t))},g.precision=g.sd=function(t){var e,r,n,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(s+t);if(e=A(o)+1,r=(n=o.d.length-1)*v+1,n=o.d[n]){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},g.squareRoot=g.sqrt=function(){var t,e,r,n,o,i,a,c=this,s=c.constructor;if(c.s<1){if(!c.s)return new s(0);throw Error(l+"NaN")}for(t=A(c),u=!1,0==(o=Math.sqrt(+c))||o==1/0?(((e=w(c.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=p((t+1)/2)-(t<0||t%2),n=new s(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new s(o.toString()),o=a=(r=s.precision)+3;;)if(n=(i=n).plus(j(c,i,a+2)).times(.5),w(i.d).slice(0,a)===(e=w(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(M(i,r+1,0),i.times(i).eq(c)){n=i;break}}else if("9999"!=e)break;a+=4}return u=!0,M(n,r)},g.times=g.mul=function(t){var e,r,n,o,i,a,c,l,s,f=this,p=f.constructor,h=f.d,d=(t=new p(t)).d;if(!f.s||!t.s)return new p(0);for(t.s*=f.s,r=f.e+t.e,(l=h.length)<(s=d.length)&&(i=h,h=d,d=i,a=l,l=s,s=a),i=[],n=a=l+s;n--;)i.push(0);for(n=s;--n>=0;){for(e=0,o=l+n;o>n;)c=i[o]+d[n]*h[o-n-1]+e,i[o--]=c%y|0,e=c/y|0;i[o]=(i[o]+e)%y|0}for(;!i[--a];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,u?M(t,p.precision):t},g.toDecimalPlaces=g.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(O(t,0,a),void 0===e?e=n.rounding:O(e,0,8),M(r,t+A(r)+1,e))},g.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=C(n,!0):(O(t,0,a),void 0===e?e=o.rounding:O(e,0,8),r=C(n=M(new o(n),t+1,e),!0,t+1)),r},g.toFixed=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?C(o):(O(t,0,a),void 0===e?e=i.rounding:O(e,0,8),r=C((n=M(new i(o),t+A(o)+1,e)).abs(),!1,t+A(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},g.toInteger=g.toint=function(){var t=this,e=t.constructor;return M(new e(t),A(t)+1,e.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(t){var e,r,n,o,a,c,s=this,f=s.constructor,h=+(t=new f(t));if(!t.s)return new f(i);if(!(s=new f(s)).s){if(t.s<1)throw Error(l+"Infinity");return s}if(s.eq(i))return s;if(n=f.precision,t.eq(i))return M(s,n);if(c=(e=t.e)>=(r=t.d.length-1),a=s.s,c){if((r=h<0?-h:h)<=m){for(o=new f(i),e=Math.ceil(n/v+4),u=!1;r%2&&D((o=o.times(s)).d,e),0!==(r=p(r/2));)D((s=s.times(s)).d,e);return u=!0,t.s<0?new f(i).div(o):M(o,n)}}else if(a<0)throw Error(l+"NaN");return a=a<0&&1&t.d[Math.max(e,r)]?-1:1,s.s=1,u=!1,o=t.times(k(s,n+12)),u=!0,(o=S(o)).s=a,o},g.toPrecision=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?n=C(o,(r=A(o))<=i.toExpNeg||r>=i.toExpPos):(O(t,1,a),void 0===e?e=i.rounding:O(e,0,8),n=C(o=M(new i(o),t,e),t<=(r=A(o))||r<=i.toExpNeg,t)),n},g.toSignificantDigits=g.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(O(t,1,a),void 0===e?e=r.rounding:O(e,0,8)),M(new r(this),t,e)},g.toString=g.valueOf=g.val=g.toJSON=function(){var t=this,e=A(t),r=t.constructor;return C(t,e<=r.toExpNeg||e>=r.toExpPos)};var j=function(){function t(t,e){var r,n=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+n,t[o]=r%y|0,n=r/y|0;return n&&t.unshift(n),t}function e(t,e,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]<e[r]?1:0,t[r]=n*y+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,o,i,a){var c,u,s,f,p,h,d,m,b,g,x,O,w,j,S,P,E,k,T=n.constructor,_=n.s==o.s?1:-1,C=n.d,D=o.d;if(!n.s)return new T(n);if(!o.s)throw Error(l+"Division by zero");for(u=n.e-o.e,E=D.length,S=C.length,m=(d=new T(_)).d=[],s=0;D[s]==(C[s]||0);)++s;if(D[s]>(C[s]||0)&&--u,(O=null==i?i=T.precision:a?i+(A(n)-A(o))+1:i)<0)return new T(0);if(O=O/v+2|0,s=0,1==E)for(f=0,D=D[0],O++;(s<S||f)&&O--;s++)w=f*y+(C[s]||0),m[s]=w/D|0,f=w%D|0;else{for((f=y/(D[0]+1)|0)>1&&(D=t(D,f),C=t(C,f),E=D.length,S=C.length),j=E,g=(b=C.slice(0,E)).length;g<E;)b[g++]=0;(k=D.slice()).unshift(0),P=D[0],D[1]>=y/2&&++P;do{f=0,(c=e(D,b,E,g))<0?(x=b[0],E!=g&&(x=x*y+(b[1]||0)),(f=x/P|0)>1?(f>=y&&(f=y-1),1==(c=e(p=t(D,f),b,h=p.length,g=b.length))&&(f--,r(p,E<h?k:D,h))):(0==f&&(c=f=1),p=D.slice()),(h=p.length)<g&&p.unshift(0),r(b,p,g),-1==c&&(c=e(D,b,E,g=b.length))<1&&(f++,r(b,E<g?k:D,g)),g=b.length):0===c&&(f++,b=[0]),m[s++]=f,c&&b[0]?b[g++]=C[j]||0:(b=[C[j]],g=1)}while((j++<S||void 0!==b[0])&&O--)}return m[0]||m.shift(),d.e=u,M(d,a?i+A(d)+1:i)}}();function S(t,e){var r,n,o,a,c,l=0,s=0,p=t.constructor,d=p.precision;if(A(t)>16)throw Error(f+A(t));if(!t.s)return new p(i);for(null==e?(u=!1,c=d):c=e,a=new p(.03125);t.abs().gte(.1);)t=t.times(a),s+=5;for(c+=Math.log(h(2,s))/Math.LN10*2+5|0,r=n=o=new p(i),p.precision=c;;){if(n=M(n.times(t),c),r=r.times(++l),w((a=o.plus(j(n,r,c))).d).slice(0,c)===w(o.d).slice(0,c)){for(;s--;)o=M(o.times(o),c);return p.precision=d,null==e?(u=!0,M(o,d)):o}o=a}}function A(t){for(var e=t.e*v,r=t.d[0];r>=10;r/=10)e++;return e}function P(t,e,r){if(e>t.LN10.sd())throw u=!0,r&&(t.precision=r),Error(l+"LN10 precision limit exceeded");return M(new t(t.LN10),e)}function E(t){for(var e="";t--;)e+="0";return e}function k(t,e){var r,n,o,a,c,s,f,p,h,d=1,y=t,v=y.d,m=y.constructor,b=m.precision;if(y.s<1)throw Error(l+(y.s?"NaN":"-Infinity"));if(y.eq(i))return new m(0);if(null==e?(u=!1,p=b):p=e,y.eq(10))return null==e&&(u=!0),P(m,p);if(p+=10,m.precision=p,n=(r=w(v)).charAt(0),a=A(y),!(Math.abs(a)<15e14))return f=P(m,p+2,b).times(a+""),y=k(new m(n+"."+r.slice(1)),p-10).plus(f),m.precision=b,null==e?(u=!0,M(y,b)):y;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=w((y=y.times(t)).d)).charAt(0),d++;for(a=A(y),n>1?(y=new m("0."+r),a++):y=new m(n+"."+r.slice(1)),s=c=y=j(y.minus(i),y.plus(i),p),h=M(y.times(y),p),o=3;;){if(c=M(c.times(h),p),w((f=s.plus(j(c,new m(o),p))).d).slice(0,p)===w(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(P(m,p+2,b).times(a+""))),s=j(s,new m(d),p),m.precision=b,null==e?(u=!0,M(s,b)):s;s=f,o+=2}}function T(t,e){var r,n,o;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(n,o)){if(o-=n,r=r-n-1,t.e=p(r/v),t.d=[],n=(r+1)%v,r<0&&(n+=v),n<o){for(n&&t.d.push(+e.slice(0,n)),o-=v;n<o;)t.d.push(+e.slice(n,n+=v));e=e.slice(n),n=v-e.length}else n-=o;for(;n--;)e+="0";if(t.d.push(+e),u&&(t.e>b||t.e<-b))throw Error(f+r)}else t.s=0,t.e=0,t.d=[0];return t}function M(t,e,r){var n,o,i,a,c,l,s,d,m=t.d;for(a=1,i=m[0];i>=10;i/=10)a++;if((n=e-a)<0)n+=v,o=e,s=m[d=0];else{if((d=Math.ceil((n+1)/v))>=(i=m.length))return t;for(s=i=m[d],a=1;i>=10;i/=10)a++;o=(n%=v)-v+a}if(void 0!==r&&(c=s/(i=h(10,a-o-1))%10|0,l=e<0||void 0!==m[d+1]||s%i,l=r<4?(c||l)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||l||6==r&&(n>0?o>0?s/h(10,a-o):0:m[d-1])%10&1||r==(t.s<0?8:7))),e<1||!m[0])return l?(i=A(t),m.length=1,e=e-i-1,m[0]=h(10,(v-e%v)%v),t.e=p(-e/v)||0):(m.length=1,m[0]=t.e=t.s=0),t;if(0==n?(m.length=d,i=1,d--):(m.length=d+1,i=h(10,v-n),m[d]=o>0?(s/h(10,a-o)%h(10,o)|0)*i:0),l)for(;;){if(0==d){(m[0]+=i)==y&&(m[0]=1,++t.e);break}if(m[d]+=i,m[d]!=y)break;m[d--]=0,i=1}for(n=m.length;0===m[--n];)m.pop();if(u&&(t.e>b||t.e<-b))throw Error(f+A(t));return t}function _(t,e){var r,n,o,i,a,c,l,s,f,p,h=t.constructor,d=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),u?M(e,d):e;if(l=t.d,p=e.d,n=e.e,s=t.e,l=l.slice(),a=s-n){for((f=a<0)?(r=l,a=-a,c=p.length):(r=p,n=s,c=l.length),a>(o=Math.max(Math.ceil(d/v),c)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((f=(o=l.length)<(c=p.length))&&(c=o),o=0;o<c;o++)if(l[o]!=p[o]){f=l[o]<p[o];break}a=0}for(f&&(r=l,l=p,p=r,e.s=-e.s),c=l.length,o=p.length-c;o>0;--o)l[c++]=0;for(o=p.length;o>a;){if(l[--o]<p[o]){for(i=o;i&&0===l[--i];)l[i]=y-1;--l[i],l[o]+=y}l[o]-=p[o]}for(;0===l[--c];)l.pop();for(;0===l[0];l.shift())--n;return l[0]?(e.d=l,e.e=n,u?M(e,d):e):new h(0)}function C(t,e,r){var n,o=A(t),i=w(t.d),a=i.length;return e?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+E(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+E(-o-1)+i,r&&(n=r-a)>0&&(i+=E(n))):o>=a?(i+=E(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+E(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=E(n))),t.s<0?"-"+i:i}function D(t,e){if(t.length>e)return t.length=e,!0}function I(t){if(!t||"object"!=typeof t)throw Error(l+"Object expected");var e,r,n,o=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<o.length;e+=3)if(void 0!==(n=t[r=o[e]])){if(!(p(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(s+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(s+r+": "+n);this[r]=new this(n)}return this}c=function t(e){var r,n,o;function i(t){var e=this;if(!(e instanceof i))return new i(t);if(e.constructor=i,t instanceof i)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(s+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):T(e,t.toString())}if("string"!=typeof t)throw Error(s+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!d.test(t))throw Error(s+t);T(e,t)}if(i.prototype=g,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t,i.config=i.set=I,void 0===e&&(e={}),e)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<o.length;)e.hasOwnProperty(n=o[r++])||(e[n]=this[n]);return i.config(e),i}(c),c.default=c.Decimal=c,i=new c(1),void 0===(n=function(){return c}.call(e,r,e,t))||(t.exports=n)}()},9328:t=>{"use strict";var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new o(n,i||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,o,i,a){var c=r?r+t:t;if(!this._events[c])return!1;var u,l,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,o),!0;case 5:return s.fn.call(s.context,e,n,o,i),!0;case 6:return s.fn.call(s.context,e,n,o,i,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var p,h=s.length;for(l=0;l<h;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,n);break;case 4:s[l].fn.call(s[l].context,e,n,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];s[l].fn.apply(s[l].context,u)}}return!0},c.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var c=this._events[i];if(c.fn)c.fn!==e||o&&!c.once||n&&c.context!==n||a(this,i);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||o&&!c[u].once||n&&c[u].context!==n)&&l.push(c[u]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c},6032:(t,e,r)=>{var n=r(7892)(r(7188),"DataView");t.exports=n},1276:(t,e,r)=>{var n=r(4212),o=r(2688),i=r(3916),a=r(6952),c=r(1016);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},3040:(t,e,r)=>{var n=r(5968),o=r(3740),i=r(4996),a=r(2600),c=r(7336);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},420:(t,e,r)=>{var n=r(7892)(r(7188),"Map");t.exports=n},1476:(t,e,r)=>{var n=r(8720),o=r(4760),i=r(88),a=r(9776),c=r(8619);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=c,t.exports=u},404:(t,e,r)=>{var n=r(7892)(r(7188),"Promise");t.exports=n},6920:(t,e,r)=>{var n=r(7892)(r(7188),"Set");t.exports=n},6152:(t,e,r)=>{var n=r(1476),o=r(9516),i=r(3504);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},520:(t,e,r)=>{var n=r(3040),o=r(5643),i=r(3368),a=r(636),c=r(3012),u=r(3388);function l(t){var e=this.__data__=new n(t);this.size=e.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=c,l.prototype.set=u,t.exports=l},7128:(t,e,r)=>{var n=r(7188).Symbol;t.exports=n},9704:(t,e,r)=>{var n=r(7188).Uint8Array;t.exports=n},5200:(t,e,r)=>{var n=r(7892)(r(7188),"WeakMap");t.exports=n},2253:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},6064:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},3908:t=>{t.exports=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}},8640:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}},8688:(t,e,r)=>{var n=r(3992);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},5336:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},7640:(t,e,r)=>{var n=r(736),o=r(348),i=r(2488),a=r(7684),c=r(1188),u=r(6700),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),s=!r&&o(t),f=!r&&!s&&a(t),p=!r&&!s&&!f&&u(t),h=r||s||f||p,d=h?n(t.length,String):[],y=d.length;for(var v in t)!e&&!l.call(t,v)||h&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||c(v,y))||d.push(v);return d}},2040:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},1168:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},5600:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},1120:t=>{t.exports=function(t){return t.split("")}},8288:(t,e,r)=>{var n=r(6139),o=r(864),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},6600:(t,e,r)=>{var n=r(864);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},8040:(t,e,r)=>{var n=r(7612),o=r(5160);t.exports=function(t,e){return t&&n(e,o(e),t)}},4244:(t,e,r)=>{var n=r(7612),o=r(2756);t.exports=function(t,e){return t&&n(e,o(e),t)}},6139:(t,e,r)=>{var n=r(7792);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},5620:(t,e,r)=>{var n=r(520),o=r(6064),i=r(8288),a=r(8040),c=r(4244),u=r(1328),l=r(8416),s=r(8219),f=r(792),p=r(1096),h=r(8856),d=r(3871),y=r(4636),v=r(7576),m=r(6224),b=r(2488),g=r(7684),x=r(8544),O=r(8940),w=r(9504),j=r(5160),S=r(2756),A="[object Arguments]",P="[object Function]",E="[object Object]",k={};k[A]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[E]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[P]=k["[object WeakMap]"]=!1,t.exports=function t(e,r,T,M,_,C){var D,I=1&r,N=2&r,R=4&r;if(T&&(D=_?T(e,M,_,C):T(e)),void 0!==D)return D;if(!O(e))return e;var B=b(e);if(B){if(D=y(e),!I)return l(e,D)}else{var L=d(e),z=L==P||"[object GeneratorFunction]"==L;if(g(e))return u(e,I);if(L==E||L==A||z&&!_){if(D=N||z?{}:m(e),!I)return N?f(e,c(D,e)):s(e,a(D,e))}else{if(!k[L])return _?e:{};D=v(e,L,I)}}C||(C=new n);var F=C.get(e);if(F)return F;C.set(e,D),w(e)?e.forEach((function(n){D.add(t(n,r,T,n,e,C))})):x(e)&&e.forEach((function(n,o){D.set(o,t(n,r,T,o,e,C))}));var U=B?void 0:(R?N?h:p:N?S:j)(e);return o(U||e,(function(n,o){U&&(n=e[o=n]),i(D,o,t(n,r,T,o,e,C))})),D}},2471:(t,e,r)=>{var n=r(8940),o=Object.create,i=function(){function t(){}return function(e){if(!n(e))return{};if(o)return o(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=i},3651:(t,e,r)=>{var n=r(316),o=r(9236)(n);t.exports=o},6608:(t,e,r)=>{var n=r(3651);t.exports=function(t,e){var r=!0;return n(t,(function(t,n,o){return r=!!e(t,n,o)})),r}},9208:(t,e,r)=>{var n=r(7712);t.exports=function(t,e,r){for(var o=-1,i=t.length;++o<i;){var a=t[o],c=e(a);if(null!=c&&(void 0===u?c==c&&!n(c):r(c,u)))var u=c,l=a}return l}},4832:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},8108:(t,e,r)=>{var n=r(1168),o=r(6552);t.exports=function t(e,r,i,a,c){var u=-1,l=e.length;for(i||(i=o),c||(c=[]);++u<l;){var s=e[u];r>0&&i(s)?r>1?t(s,r-1,i,a,c):n(c,s):a||(c[c.length]=s)}return c}},4596:(t,e,r)=>{var n=r(8168)();t.exports=n},316:(t,e,r)=>{var n=r(4596),o=r(5160);t.exports=function(t,e){return t&&n(t,e,o)}},4240:(t,e,r)=>{var n=r(7736),o=r(7668);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},4668:(t,e,r)=>{var n=r(1168),o=r(2488);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},6944:(t,e,r)=>{var n=r(7128),o=r(5664),i=r(3168),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},1412:t=>{t.exports=function(t,e){return t>e}},7732:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},3992:(t,e,r)=>{var n=r(4832),o=r(1624),i=r(4568);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},3432:(t,e,r)=>{var n=r(6944),o=r(2892);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},9184:(t,e,r)=>{var n=r(4840),o=r(2892);t.exports=function t(e,r,i,a,c){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,c))}},4840:(t,e,r)=>{var n=r(520),o=r(9124),i=r(2352),a=r(8608),c=r(3871),u=r(2488),l=r(7684),s=r(6700),f="[object Arguments]",p="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,y,v,m){var b=u(t),g=u(e),x=b?p:c(t),O=g?p:c(e),w=(x=x==f?h:x)==h,j=(O=O==f?h:O)==h,S=x==O;if(S&&l(t)){if(!l(e))return!1;b=!0,w=!1}if(S&&!w)return m||(m=new n),b||s(t)?o(t,e,r,y,v,m):i(t,e,x,r,y,v,m);if(!(1&r)){var A=w&&d.call(t,"__wrapped__"),P=j&&d.call(e,"__wrapped__");if(A||P){var E=A?t.value():t,k=P?e.value():e;return m||(m=new n),v(E,k,r,y,m)}}return!!S&&(m||(m=new n),a(t,e,r,y,v,m))}},1360:(t,e,r)=>{var n=r(3871),o=r(2892);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},4939:(t,e,r)=>{var n=r(520),o=r(9184);t.exports=function(t,e,r,i){var a=r.length,c=a,u=!i;if(null==t)return!c;for(t=Object(t);a--;){var l=r[a];if(u&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<c;){var s=(l=r[a])[0],f=t[s],p=l[1];if(u&&l[2]){if(void 0===f&&!(s in t))return!1}else{var h=new n;if(i)var d=i(f,p,s,t,e,h);if(!(void 0===d?o(p,f,3,i,h):d))return!1}}return!0}},1624:t=>{t.exports=function(t){return t!=t}},7200:(t,e,r)=>{var n=r(7920),o=r(6084),i=r(8940),a=r(7456),c=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,s=u.toString,f=l.hasOwnProperty,p=RegExp("^"+s.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?p:c).test(a(t))}},156:(t,e,r)=>{var n=r(3871),o=r(2892);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},7160:(t,e,r)=>{var n=r(6944),o=r(9024),i=r(2892),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},3968:(t,e,r)=>{var n=r(4493),o=r(8056),i=r(552),a=r(2488),c=r(4860);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):c(t)}},5552:(t,e,r)=>{var n=r(1004),o=r(3320),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},3632:(t,e,r)=>{var n=r(8940),o=r(1004),i=r(8512),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=o(t),r=[];for(var c in t)("constructor"!=c||!e&&a.call(t,c))&&r.push(c);return r}},4432:t=>{t.exports=function(t,e){return t<e}},4320:(t,e,r)=>{var n=r(3651),o=r(4900);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}},4493:(t,e,r)=>{var n=r(4939),o=r(3640),i=r(2584);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},8056:(t,e,r)=>{var n=r(9184),o=r(9448),i=r(1256),a=r(9640),c=r(3960),u=r(2584),l=r(7668);t.exports=function(t,e){return a(t)&&c(e)?u(l(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},6223:(t,e,r)=>{var n=r(2040),o=r(4240),i=r(3968),a=r(4320),c=r(3416),u=r(9165),l=r(2044),s=r(552),f=r(2488);t.exports=function(t,e,r){e=e.length?n(e,(function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t})):[s];var p=-1;e=n(e,u(i));var h=a(t,(function(t,r,o){return{criteria:n(e,(function(e){return e(t)})),index:++p,value:t}}));return c(h,(function(t,e){return l(t,e,r)}))}},7112:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},4184:(t,e,r)=>{var n=r(4240);t.exports=function(t){return function(e){return n(e,t)}}},848:t=>{var e=Math.ceil,r=Math.max;t.exports=function(t,n,o,i){for(var a=-1,c=r(e((n-t)/(o||1)),0),u=Array(c);c--;)u[i?c:++a]=t,t+=o;return u}},8292:(t,e,r)=>{var n=r(552),o=r(8840),i=r(7360);t.exports=function(t,e){return i(o(t,e,n),t+"")}},3120:(t,e,r)=>{var n=r(6347),o=r(7792),i=r(552),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},4732:t=>{t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}},3748:(t,e,r)=>{var n=r(3651);t.exports=function(t,e){var r;return n(t,(function(t,n,o){return!(r=e(t,n,o))})),!!r}},3416:t=>{t.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}},1448:t=>{t.exports=function(t,e){for(var r,n=-1,o=t.length;++n<o;){var i=e(t[n]);void 0!==i&&(r=void 0===r?i:r+i)}return r}},736:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},6524:(t,e,r)=>{var n=r(7128),o=r(2040),i=r(2488),a=r(7712),c=n?n.prototype:void 0,u=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r}},4428:(t,e,r)=>{var n=r(5608),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},9165:t=>{t.exports=function(t){return function(e){return t(e)}}},3756:(t,e,r)=>{var n=r(6152),o=r(8688),i=r(5336),a=r(968),c=r(6840),u=r(2060);t.exports=function(t,e,r){var l=-1,s=o,f=t.length,p=!0,h=[],d=h;if(r)p=!1,s=i;else if(f>=200){var y=e?null:c(t);if(y)return u(y);p=!1,s=a,d=new n}else d=e?[]:h;t:for(;++l<f;){var v=t[l],m=e?e(v):v;if(v=r||0!==v?v:0,p&&m==m){for(var b=d.length;b--;)if(d[b]===m)continue t;e&&d.push(m),h.push(v)}else s(d,m,r)||(d!==h&&d.push(m),h.push(v))}return h}},5840:(t,e,r)=>{var n=r(7736),o=r(2008),i=r(5088),a=r(7668);t.exports=function(t,e){return e=n(e,t),null==(t=i(t,e))||delete t[a(o(e))]}},968:t=>{t.exports=function(t,e){return t.has(e)}},7736:(t,e,r)=>{var n=r(2488),o=r(9640),i=r(976),a=r(1972);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},7320:(t,e,r)=>{var n=r(4732);t.exports=function(t,e,r){var o=t.length;return r=void 0===r?o:r,!e&&r>=o?t:n(t,e,r)}},5987:(t,e,r)=>{var n=r(9704);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},1328:(t,e,r)=>{t=r.nmd(t);var n=r(7188),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?n.Buffer:void 0,c=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=c?c(r):new t.constructor(r);return t.copy(n),n}},9488:(t,e,r)=>{var n=r(5987);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},2640:t=>{var e=/\w*$/;t.exports=function(t){var r=new t.constructor(t.source,e.exec(t));return r.lastIndex=t.lastIndex,r}},2656:(t,e,r)=>{var n=r(7128),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},2100:(t,e,r)=>{var n=r(5987);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},3228:(t,e,r)=>{var n=r(7712);t.exports=function(t,e){if(t!==e){var r=void 0!==t,o=null===t,i=t==t,a=n(t),c=void 0!==e,u=null===e,l=e==e,s=n(e);if(!u&&!s&&!a&&t>e||a&&c&&l&&!u&&!s||o&&c&&l||!r&&l||!i)return 1;if(!o&&!a&&!s&&t<e||s&&r&&i&&!o&&!a||u&&r&&i||!c&&i||!l)return-1}return 0}},2044:(t,e,r)=>{var n=r(3228);t.exports=function(t,e,r){for(var o=-1,i=t.criteria,a=e.criteria,c=i.length,u=r.length;++o<c;){var l=n(i[o],a[o]);if(l)return o>=u?l:l*("desc"==r[o]?-1:1)}return t.index-e.index}},8416:t=>{t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},7612:(t,e,r)=>{var n=r(8288),o=r(6139);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var c=-1,u=e.length;++c<u;){var l=e[c],s=i?i(r[l],t[l],l,r,t):void 0;void 0===s&&(s=t[l]),a?o(r,l,s):n(r,l,s)}return r}},8219:(t,e,r)=>{var n=r(7612),o=r(3520);t.exports=function(t,e){return n(t,o(t),e)}},792:(t,e,r)=>{var n=r(7612),o=r(1216);t.exports=function(t,e){return n(t,o(t),e)}},5280:(t,e,r)=>{var n=r(7188)["__core-js_shared__"];t.exports=n},9236:(t,e,r)=>{var n=r(4900);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,a=e?i:-1,c=Object(r);(e?a--:++a<i)&&!1!==o(c[a],a,c););return r}}},8168:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===r(i[u],u,i))break}return e}}},7288:(t,e,r)=>{var n=r(7320),o=r(9240),i=r(8595),a=r(1972);t.exports=function(t){return function(e){e=a(e);var r=o(e)?i(e):void 0,c=r?r[0]:e.charAt(0),u=r?n(r,1).join(""):e.slice(1);return c[t]()+u}}},100:(t,e,r)=>{var n=r(3968),o=r(4900),i=r(5160);t.exports=function(t){return function(e,r,a){var c=Object(e);if(!o(e)){var u=n(r,3);e=i(e),r=function(t){return u(c[t],t,c)}}var l=t(e,r,a);return l>-1?c[u?e[l]:l]:void 0}}},7836:(t,e,r)=>{var n=r(848),o=r(4221),i=r(7556);t.exports=function(t){return function(e,r,a){return a&&"number"!=typeof a&&o(e,r,a)&&(r=a=void 0),e=i(e),void 0===r?(r=e,e=0):r=i(r),a=void 0===a?e<r?1:-1:i(a),n(e,r,a,t)}}},6840:(t,e,r)=>{var n=r(6920),o=r(2648),i=r(2060),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},3104:(t,e,r)=>{var n=r(308);t.exports=function(t){return n(t)?void 0:t}},7792:(t,e,r)=>{var n=r(7892),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},9124:(t,e,r)=>{var n=r(6152),o=r(5600),i=r(968);t.exports=function(t,e,r,a,c,u){var l=1&r,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=u.get(t),h=u.get(e);if(p&&h)return p==e&&h==t;var d=-1,y=!0,v=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++d<s;){var m=t[d],b=e[d];if(a)var g=l?a(b,m,d,e,t,u):a(m,b,d,t,e,u);if(void 0!==g){if(g)continue;y=!1;break}if(v){if(!o(e,(function(t,e){if(!i(v,e)&&(m===t||c(m,t,r,a,u)))return v.push(e)}))){y=!1;break}}else if(m!==b&&!c(m,b,r,a,u)){y=!1;break}}return u.delete(t),u.delete(e),y}},2352:(t,e,r)=>{var n=r(7128),o=r(9704),i=r(864),a=r(9124),c=r(3152),u=r(2060),l=n?n.prototype:void 0,s=l?l.valueOf:void 0;t.exports=function(t,e,r,n,l,f,p){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=c;case"[object Set]":var d=1&n;if(h||(h=u),t.size!=e.size&&!d)return!1;var y=p.get(t);if(y)return y==e;n|=2,p.set(t,e);var v=a(h(t),h(e),n,l,f,p);return p.delete(t),v;case"[object Symbol]":if(s)return s.call(t)==s.call(e)}return!1}},8608:(t,e,r)=>{var n=r(1096),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,c){var u=1&r,l=n(t),s=l.length;if(s!=n(e).length&&!u)return!1;for(var f=s;f--;){var p=l[f];if(!(u?p in e:o.call(e,p)))return!1}var h=c.get(t),d=c.get(e);if(h&&d)return h==e&&d==t;var y=!0;c.set(t,e),c.set(e,t);for(var v=u;++f<s;){var m=t[p=l[f]],b=e[p];if(i)var g=u?i(b,m,p,e,t,c):i(m,b,p,t,e,c);if(!(void 0===g?m===b||a(m,b,r,i,c):g)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var x=t.constructor,O=e.constructor;x==O||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof O&&O instanceof O||(y=!1)}return c.delete(t),c.delete(e),y}},7452:(t,e,r)=>{var n=r(4576),o=r(8840),i=r(7360);t.exports=function(t){return i(o(t,void 0,n),t+"")}},4848:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},1096:(t,e,r)=>{var n=r(4668),o=r(3520),i=r(5160);t.exports=function(t){return n(t,i,o)}},8856:(t,e,r)=>{var n=r(4668),o=r(1216),i=r(2756);t.exports=function(t){return n(t,i,o)}},6068:(t,e,r)=>{var n=r(6096);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},3640:(t,e,r)=>{var n=r(3960),o=r(5160);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},7892:(t,e,r)=>{var n=r(7200),o=r(5692);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},476:(t,e,r)=>{var n=r(1304)(Object.getPrototypeOf,Object);t.exports=n},5664:(t,e,r)=>{var n=r(7128),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[c]=r:delete t[c]),o}},3520:(t,e,r)=>{var n=r(8640),o=r(872),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=c},1216:(t,e,r)=>{var n=r(1168),o=r(476),i=r(3520),a=r(872),c=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,i(t)),t=o(t);return e}:a;t.exports=c},3871:(t,e,r)=>{var n=r(6032),o=r(420),i=r(404),a=r(6920),c=r(5200),u=r(6944),l=r(7456),s="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",d="[object DataView]",y=l(n),v=l(o),m=l(i),b=l(a),g=l(c),x=u;(n&&x(new n(new ArrayBuffer(1)))!=d||o&&x(new o)!=s||i&&x(i.resolve())!=f||a&&x(new a)!=p||c&&x(new c)!=h)&&(x=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?l(r):"";if(n)switch(n){case y:return d;case v:return s;case m:return f;case b:return p;case g:return h}return e}),t.exports=x},5692:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},2828:(t,e,r)=>{var n=r(7736),o=r(348),i=r(2488),a=r(1188),c=r(9024),u=r(7668);t.exports=function(t,e,r){for(var l=-1,s=(e=n(e,t)).length,f=!1;++l<s;){var p=u(e[l]);if(!(f=null!=t&&r(t,p)))break;t=t[p]}return f||++l!=s?f:!!(s=null==t?0:t.length)&&c(s)&&a(p,s)&&(i(t)||o(t))}},9240:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},4212:(t,e,r)=>{var n=r(5604);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},2688:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},3916:(t,e,r)=>{var n=r(5604),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},6952:(t,e,r)=>{var n=r(5604),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},1016:(t,e,r)=>{var n=r(5604);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},4636:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&e.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},7576:(t,e,r)=>{var n=r(5987),o=r(9488),i=r(2640),a=r(2656),c=r(2100);t.exports=function(t,e,r){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return o(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return c(t,r);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return i(t);case"[object Symbol]":return a(t)}}},6224:(t,e,r)=>{var n=r(2471),o=r(476),i=r(1004);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},6552:(t,e,r)=>{var n=r(7128),o=r(348),i=r(2488),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},1188:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},4221:(t,e,r)=>{var n=r(864),o=r(4900),i=r(1188),a=r(8940);t.exports=function(t,e,r){if(!a(r))return!1;var c=typeof e;return!!("number"==c?o(r)&&i(e,r.length):"string"==c&&e in r)&&n(r[e],t)}},9640:(t,e,r)=>{var n=r(2488),o=r(7712),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=e&&t in Object(e))}},6096:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},6084:(t,e,r)=>{var n,o=r(5280),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},1004:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},3960:(t,e,r)=>{var n=r(8940);t.exports=function(t){return t==t&&!n(t)}},5968:t=>{t.exports=function(){this.__data__=[],this.size=0}},3740:(t,e,r)=>{var n=r(6600),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},4996:(t,e,r)=>{var n=r(6600);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},2600:(t,e,r)=>{var n=r(6600);t.exports=function(t){return n(this.__data__,t)>-1}},7336:(t,e,r)=>{var n=r(6600);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},8720:(t,e,r)=>{var n=r(1276),o=r(3040),i=r(420);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},4760:(t,e,r)=>{var n=r(6068);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},88:(t,e,r)=>{var n=r(6068);t.exports=function(t){return n(this,t).get(t)}},9776:(t,e,r)=>{var n=r(6068);t.exports=function(t){return n(this,t).has(t)}},8619:(t,e,r)=>{var n=r(6068);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},3152:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},2584:t=>{t.exports=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}},9032:(t,e,r)=>{var n=r(1576);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},5604:(t,e,r)=>{var n=r(7892)(Object,"create");t.exports=n},3320:(t,e,r)=>{var n=r(1304)(Object.keys,Object);t.exports=n},8512:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},9180:(t,e,r)=>{t=r.nmd(t);var n=r(4848),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,c=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c},3168:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},1304:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},8840:(t,e,r)=>{var n=r(2253),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,c=o(i.length-e,0),u=Array(c);++a<c;)u[a]=i[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=i[a];return l[e]=r(u),n(t,this,l)}}},5088:(t,e,r)=>{var n=r(4240),o=r(4732);t.exports=function(t,e){return e.length<2?t:n(t,o(e,0,-1))}},7188:(t,e,r)=>{var n=r(4848),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},9516:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},3504:t=>{t.exports=function(t){return this.__data__.has(t)}},2060:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},7360:(t,e,r)=>{var n=r(3120),o=r(4208)(n);t.exports=o},4208:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},5643:(t,e,r)=>{var n=r(3040);t.exports=function(){this.__data__=new n,this.size=0}},3368:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},636:t=>{t.exports=function(t){return this.__data__.get(t)}},3012:t=>{t.exports=function(t){return this.__data__.has(t)}},3388:(t,e,r)=>{var n=r(3040),o=r(420),i=r(1476);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},4568:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},8595:(t,e,r)=>{var n=r(1120),o=r(9240),i=r(6448);t.exports=function(t){return o(t)?i(t):n(t)}},976:(t,e,r)=>{var n=r(9032),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},7668:(t,e,r)=>{var n=r(7712);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},7456:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},5608:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},6448:t=>{var e="\\ud800-\\udfff",r="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+e+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+n+"|"+o+")"+"?",l="[\\ufe0e\\ufe0f]?",s=l+u+("(?:\\u200d(?:"+[i,a,c].join("|")+")"+l+u+")*"),f="(?:"+[i+n+"?",n,a,c,r].join("|")+")",p=RegExp(o+"(?="+o+")|"+f+s,"g");t.exports=function(t){return t.match(p)||[]}},6347:t=>{t.exports=function(t){return function(){return t}}},3336:(t,e,r)=>{var n=r(8940),o=r(9868),i=r(8472),a=Math.max,c=Math.min;t.exports=function(t,e,r){var u,l,s,f,p,h,d=0,y=!1,v=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(e){var r=u,n=l;return u=l=void 0,d=e,f=t.apply(n,r)}function g(t){var r=t-h;return void 0===h||r>=e||r<0||v&&t-d>=s}function x(){var t=o();if(g(t))return O(t);p=setTimeout(x,function(t){var r=e-(t-h);return v?c(r,s-(t-d)):r}(t))}function O(t){return p=void 0,m&&u?b(t):(u=l=void 0,f)}function w(){var t=o(),r=g(t);if(u=arguments,l=this,h=t,r){if(void 0===p)return function(t){return d=t,p=setTimeout(x,e),y?b(t):f}(h);if(v)return clearTimeout(p),p=setTimeout(x,e),b(h)}return void 0===p&&(p=setTimeout(x,e)),f}return e=i(e)||0,n(r)&&(y=!!r.leading,s=(v="maxWait"in r)?a(i(r.maxWait)||0,e):s,m="trailing"in r?!!r.trailing:m),w.cancel=function(){void 0!==p&&clearTimeout(p),d=0,u=h=l=p=void 0},w.flush=function(){return void 0===p?f:O(o())},w}},864:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},164:(t,e,r)=>{var n=r(3908),o=r(6608),i=r(3968),a=r(2488),c=r(4221);t.exports=function(t,e,r){var u=a(t)?n:o;return r&&c(t,e,r)&&(e=void 0),u(t,i(e,3))}},7120:(t,e,r)=>{var n=r(100)(r(2988));t.exports=n},2988:(t,e,r)=>{var n=r(4832),o=r(3968),i=r(4400),a=Math.max;t.exports=function(t,e,r){var c=null==t?0:t.length;if(!c)return-1;var u=null==r?0:i(r);return u<0&&(u=a(c+u,0)),n(t,o(e,3),u)}},9540:(t,e,r)=>{t.exports=r(7580)},7440:(t,e,r)=>{var n=r(8108),o=r(7096);t.exports=function(t,e){return n(o(t,e),1)}},4576:(t,e,r)=>{var n=r(8108);t.exports=function(t){return(null==t?0:t.length)?n(t,1):[]}},9448:(t,e,r)=>{var n=r(4240);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},1256:(t,e,r)=>{var n=r(7732),o=r(2828);t.exports=function(t,e){return null!=t&&o(t,e,n)}},7580:t=>{t.exports=function(t){return t&&t.length?t[0]:void 0}},552:t=>{t.exports=function(t){return t}},348:(t,e,r)=>{var n=r(3432),o=r(2892),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},2488:t=>{var e=Array.isArray;t.exports=e},4900:(t,e,r)=>{var n=r(7920),o=r(9024);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},7e3:(t,e,r)=>{var n=r(6944),o=r(2892);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==n(t)}},7684:(t,e,r)=>{t=r.nmd(t);var n=r(7188),o=r(4068),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,c=a&&a.exports===i?n.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;t.exports=u},948:(t,e,r)=>{var n=r(9184);t.exports=function(t,e){return n(t,e)}},7920:(t,e,r)=>{var n=r(6944),o=r(8940);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},9024:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},8544:(t,e,r)=>{var n=r(1360),o=r(9165),i=r(9180),a=i&&i.isMap,c=a?o(a):n;t.exports=c},8880:(t,e,r)=>{var n=r(568);t.exports=function(t){return n(t)&&t!=+t}},4764:t=>{t.exports=function(t){return null==t}},568:(t,e,r)=>{var n=r(6944),o=r(2892);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},8940:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},2892:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},308:(t,e,r)=>{var n=r(6944),o=r(476),i=r(2892),a=Function.prototype,c=Object.prototype,u=a.toString,l=c.hasOwnProperty,s=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==s}},9504:(t,e,r)=>{var n=r(156),o=r(9165),i=r(9180),a=i&&i.isSet,c=a?o(a):n;t.exports=c},6384:(t,e,r)=>{var n=r(6944),o=r(2488),i=r(2892);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},7712:(t,e,r)=>{var n=r(6944),o=r(2892);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},6700:(t,e,r)=>{var n=r(7160),o=r(9165),i=r(9180),a=i&&i.isTypedArray,c=a?o(a):n;t.exports=c},5160:(t,e,r)=>{var n=r(7640),o=r(5552),i=r(4900);t.exports=function(t){return i(t)?n(t):o(t)}},2756:(t,e,r)=>{var n=r(7640),o=r(3632),i=r(4900);t.exports=function(t){return i(t)?n(t,!0):o(t)}},2008:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},7096:(t,e,r)=>{var n=r(2040),o=r(3968),i=r(4320),a=r(2488);t.exports=function(t,e){return(a(t)?n:i)(t,o(e,3))}},6452:(t,e,r)=>{var n=r(6139),o=r(316),i=r(3968);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},4464:(t,e,r)=>{var n=r(9208),o=r(1412),i=r(552);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},6564:(t,e,r)=>{var n=r(9208),o=r(1412),i=r(3968);t.exports=function(t,e){return t&&t.length?n(t,i(e,2),o):void 0}},1576:(t,e,r)=>{var n=r(1476);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},4044:(t,e,r)=>{var n=r(9208),o=r(4432),i=r(552);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},908:(t,e,r)=>{var n=r(9208),o=r(3968),i=r(4432);t.exports=function(t,e){return t&&t.length?n(t,o(e,2),i):void 0}},2648:t=>{t.exports=function(){}},9868:(t,e,r)=>{var n=r(7188);t.exports=function(){return n.Date.now()}},1860:(t,e,r)=>{var n=r(2040),o=r(5620),i=r(5840),a=r(7736),c=r(7612),u=r(3104),l=r(7452),s=r(8856),f=l((function(t,e){var r={};if(null==t)return r;var l=!1;e=n(e,(function(e){return e=a(e,t),l||(l=e.length>1),e})),c(t,s(t),r),l&&(r=o(r,7,u));for(var f=e.length;f--;)i(r,e[f]);return r}));t.exports=f},4860:(t,e,r)=>{var n=r(7112),o=r(4184),i=r(9640),a=r(7668);t.exports=function(t){return i(t)?n(a(t)):o(t)}},9136:(t,e,r)=>{var n=r(7836)();t.exports=n},9500:(t,e,r)=>{var n=r(5600),o=r(3968),i=r(3748),a=r(2488),c=r(4221);t.exports=function(t,e,r){var u=a(t)?n:i;return r&&c(t,e,r)&&(e=void 0),u(t,o(e,3))}},1232:(t,e,r)=>{var n=r(8108),o=r(6223),i=r(8292),a=r(4221),c=i((function(t,e){if(null==t)return[];var r=e.length;return r>1&&a(t,e[0],e[1])?e=[]:r>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,n(e,1),[])}));t.exports=c},872:t=>{t.exports=function(){return[]}},4068:t=>{t.exports=function(){return!1}},6356:(t,e,r)=>{var n=r(3968),o=r(1448);t.exports=function(t,e){return t&&t.length?o(t,n(e,2)):0}},9212:(t,e,r)=>{var n=r(3336),o=r(8940);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},7556:(t,e,r)=>{var n=r(8472),o=1/0;t.exports=function(t){return t?(t=n(t))===o||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},4400:(t,e,r)=>{var n=r(7556);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},8472:(t,e,r)=>{var n=r(4428),o=r(8940),i=r(7712),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=c.test(t);return r||u.test(t)?l(t.slice(2),r?2:8):a.test(t)?NaN:+t}},1972:(t,e,r)=>{var n=r(6524);t.exports=function(t){return null==t?"":n(t)}},6424:(t,e,r)=>{var n=r(3968),o=r(3756);t.exports=function(t,e){return t&&t.length?o(t,n(e,2)):[]}},4704:(t,e,r)=>{var n=r(7288)("toUpperCase");t.exports=n},9764:(t,e)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,s=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function O(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case s:case f:case i:case c:case a:case h:return t;default:switch(t=t&&t.$$typeof){case l:case p:case v:case y:case u:return t;default:return e}}case o:return e}}}function w(t){return O(t)===f}e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isFragment=function(t){return O(t)===i}},2168:(t,e,r)=>{"use strict";t.exports=r(9764)},9660:t=>{"use strict";t.exports=e},741:e=>{"use strict";e.exports=t},4020:t=>{"use strict";t.exports=r}},o={};function i(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={id:t,loaded:!1,exports:{}};return n[t].call(r.exports,r,r.exports,i),r.loaded=!0,r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var a={};return(()=>{"use strict";i.r(a),i.d(a,{Area:()=>kx,AreaChart:()=>tj,Bar:()=>ib,BarChart:()=>YO,Brush:()=>Em,CartesianAxis:()=>_g,CartesianGrid:()=>Gg,Cell:()=>Mr,ComposedChart:()=>rj,Cross:()=>zd,Curve:()=>Kf,Customized:()=>tf,DefaultLegendContent:()=>de,DefaultTooltipContent:()=>$e,Dot:()=>_d,ErrorBar:()=>xl,Funnel:()=>Dj,FunnelChart:()=>Ij,Global:()=>ur,Label:()=>Ns,LabelList:()=>Ys,Layer:()=>ht,Legend:()=>Ce,Line:()=>px,LineChart:()=>GO,Pie:()=>wv,PieChart:()=>ZO,PolarAngleAxis:()=>_y,PolarGrid:()=>Jd,PolarRadiusAxis:()=>my,Polygon:()=>Td,Radar:()=>Bv,RadarChart:()=>Jw,RadialBar:()=>am,RadialBarChart:()=>ej,Rectangle:()=>Od,ReferenceArea:()=>ug,ReferenceDot:()=>eg,ReferenceLine:()=>Hb,ResponsiveContainer:()=>Tr,Sankey:()=>Zw,Scatter:()=>Vx,ScatterChart:()=>Qw,Sector:()=>sf,SunburstChart:()=>fj,Surface:()=>lt,Symbols:()=>re,Text:()=>dn,Tooltip:()=>xr,Trapezoid:()=>Vy,Treemap:()=>Ow,XAxis:()=>Hx,YAxis:()=>Yx,ZAxis:()=>Tx});var t={};i.r(t),i.d(t,{scaleBand:()=>Sn,scaleDiverging:()=>gu,scaleDivergingLog:()=>xu,scaleDivergingPow:()=>wu,scaleDivergingSqrt:()=>ju,scaleDivergingSymlog:()=>Ou,scaleIdentity:()=>hi,scaleImplicit:()=>wn,scaleLinear:()=>pi,scaleLog:()=>wi,scaleOrdinal:()=>jn,scalePoint:()=>Pn,scalePow:()=>_i,scaleQuantile:()=>$i,scaleQuantize:()=>Ki,scaleRadial:()=>Ii,scaleSequential:()=>pu,scaleSequentialLog:()=>hu,scaleSequentialPow:()=>yu,scaleSequentialQuantile:()=>mu,scaleSequentialSqrt:()=>vu,scaleSequentialSymlog:()=>du,scaleSqrt:()=>Ci,scaleSymlog:()=>Pi,scaleThreshold:()=>qi,scaleTime:()=>uu,scaleUtc:()=>lu,tickFormat:()=>si});var e=i(741),r=i.n(e);function n(t){var e,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=n(t[e]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}const o=function(){for(var t,e,r=0,o="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=n(t))&&(o&&(o+=" "),o+=e);return o};var c=i(9448),u=i.n(c),l=i(4764),s=i.n(l),f=i(6384),p=i.n(f),h=i(7920),d=i.n(h),y=i(8940),v=i.n(y),m=i(2168),b=i(8880),g=i.n(b),x=i(568),O=i.n(x),w=function(t){return 0===t?0:t>0?1:-1},j=function(t){return p()(t)&&t.indexOf("%")===t.length-1},S=function(t){return O()(t)&&!g()(t)},A=function(t){return S(t)||p()(t)},P=0,E=function(t){var e=++P;return"".concat(t||"").concat(e)},k=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!S(t)&&!p()(t))return n;if(j(t)){var i=t.indexOf("%");r=e*parseFloat(t.slice(0,i))/100}else r=+t;return g()(r)&&(r=n),o&&r>e&&(r=e),r},T=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},M=function(t,e){return S(t)&&S(e)?function(r){return t+r*(e-t)}:function(){return e}};function _(t,e,r){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):u()(t,e))===r})):null}function C(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function 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)}var I=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],N=["points","pathLength"],R={svg:["viewBox","children"],polygon:N,polyline:N},B=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],L=function(t,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,e.isValidElement)(t)&&(n=t.props),!v()(n))return null;var o={};return Object.keys(n).forEach((function(t){B.includes(t)&&(o[t]=r||function(e){return n[t](n,e)})})),o},z=function(t,e,r){if(!v()(t)||"object"!==D(t))return null;var n=null;return Object.keys(t).forEach((function(o){var i=t[o];B.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(t,e,r){return function(n){return t(e,r,n),null}}(i,e,r))})),n},F=["children"],U=["children"];function W(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 $(t){return $="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},$(t)}var K={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},q=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},V=null,X=null,H=function t(r){if(r===V&&Array.isArray(X))return X;var n=[];return e.Children.forEach(r,(function(e){s()(e)||((0,m.isFragment)(e)?n=n.concat(t(e.props.children)):n.push(e))})),X=n,V=r,n};function G(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map((function(t){return q(t)})):[q(e)],H(t).forEach((function(t){var e=u()(t,"type.displayName")||u()(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function Y(t,e){var r=G(t,e);return r&&r[0]}var Z=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!S(r)||r<=0||!S(n)||n<=0)},J=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Q=function(t){return t&&t.type&&p()(t.type)&&J.indexOf(t.type)>=0},tt=function(t){return t&&"object"===$(t)&&"cx"in t&&"cy"in t&&"r"in t},et=function(t){var e=[];return H(t).forEach((function(t){Q(t)&&e.push(t)})),e},rt=function(t,r,n){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var o=t;if((0,e.isValidElement)(t)&&(o=t.props),!v()(o))return null;var i={};return Object.keys(o).forEach((function(t){var e;(function(t,e,r,n){var o,i=null!==(o=null==R?void 0:R[n])&&void 0!==o?o:[];return!d()(t)&&(n&&i.includes(e)||I.includes(e))||r&&B.includes(e)})(null===(e=o)||void 0===e?void 0:e[t],t,r,n)&&(i[t]=o[t])})),i},nt=function t(r,n){if(r===n)return!0;var o=e.Children.count(r);if(o!==e.Children.count(n))return!1;if(0===o)return!0;if(1===o)return ot(Array.isArray(r)?r[0]:r,Array.isArray(n)?n[0]:n);for(var i=0;i<o;i++){var a=r[i],c=n[i];if(Array.isArray(a)||Array.isArray(c)){if(!t(a,c))return!1}else if(!ot(a,c))return!1}return!0},ot=function(t,e){if(s()(t)&&s()(e))return!0;if(!s()(t)&&!s()(e)){var r=t.props||{},n=r.children,o=W(r,F),i=e.props||{},a=i.children,c=W(i,U);return n&&a?C(o,c)&&nt(n,a):!n&&!a&&C(o,c)}return!1},it=function(t,e){var r=[],n={};return H(t).forEach((function(t,o){if(Q(t))r.push(t);else if(t){var i=q(t.type),a=e[i]||{},c=a.handler,u=a.once;if(c&&(!u||!n[i])){var l=c(t,i,o);r.push(l),n[i]=!0}}})),r},at=["children","width","height","viewBox","className","style","title","desc"];function ct(){return ct=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},ct.apply(this,arguments)}function ut(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 lt(t){var e=t.children,n=t.width,i=t.height,a=t.viewBox,c=t.className,u=t.style,l=t.title,s=t.desc,f=ut(t,at),p=a||{width:n,height:i,x:0,y:0},h=o("recharts-surface",c);return r().createElement("svg",ct({},rt(f,!0,"svg"),{className:h,width:n,height:i,style:u,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height)}),r().createElement("title",null,l),r().createElement("desc",null,s),e)}var st=["children","className"];function ft(){return ft=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},ft.apply(this,arguments)}function pt(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var ht=r().forwardRef((function(t,e){var n=t.children,i=t.className,a=pt(t,st),c=o("recharts-layer",i);return r().createElement("g",ft({className:c},rt(a,!0),{ref:e}),n)})),dt=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o]},yt=i(4704),vt=i.n(yt);Math.abs,Math.atan2;const mt=Math.cos,bt=(Math.max,Math.min,Math.sin),gt=Math.sqrt,xt=Math.PI,Ot=2*xt;const wt={draw(t,e){const r=gt(e/xt);t.moveTo(r,0),t.arc(0,0,r,0,Ot)}},jt={draw(t,e){const r=gt(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},St=gt(1/3),At=2*St,Pt={draw(t,e){const r=gt(e/At),n=r*St;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Et={draw(t,e){const r=gt(e),n=-r/2;t.rect(n,n,r,r)}},kt=bt(xt/10)/bt(7*xt/10),Tt=bt(Ot/10)*kt,Mt=-mt(Ot/10)*kt,_t={draw(t,e){const r=gt(.8908130915292852*e),n=Tt*r,o=Mt*r;t.moveTo(0,-r),t.lineTo(n,o);for(let e=1;e<5;++e){const i=Ot*e/5,a=mt(i),c=bt(i);t.lineTo(c*r,-a*r),t.lineTo(a*n-c*o,c*n+a*o)}t.closePath()}},Ct=gt(3),Dt={draw(t,e){const r=-gt(e/(3*Ct));t.moveTo(0,2*r),t.lineTo(-Ct*r,-r),t.lineTo(Ct*r,-r),t.closePath()}},It=-.5,Nt=gt(3)/2,Rt=1/gt(12),Bt=3*(Rt/2+1),Lt={draw(t,e){const r=gt(e/Bt),n=r/2,o=r*Rt,i=n,a=r*Rt+r,c=-i,u=a;t.moveTo(n,o),t.lineTo(i,a),t.lineTo(c,u),t.lineTo(It*n-Nt*o,Nt*n+It*o),t.lineTo(It*i-Nt*a,Nt*i+It*a),t.lineTo(It*c-Nt*u,Nt*c+It*u),t.lineTo(It*n+Nt*o,It*o-Nt*n),t.lineTo(It*i+Nt*a,It*a-Nt*i),t.lineTo(It*c+Nt*u,It*u-Nt*c),t.closePath()}};function zt(t){return function(){return t}}const Ft=Math.PI,Ut=2*Ft,Wt=1e-6,$t=Ut-Wt;function Kt(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class qt{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Kt:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Kt;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,o,i){this._append`C${+t},${+e},${+r},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(t,e,r,n,o){if(t=+t,e=+e,r=+r,n=+n,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,c=r-t,u=n-e,l=i-t,s=a-e,f=l*l+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>Wt)if(Math.abs(s*c-u*l)>Wt&&o){let p=r-i,h=n-a,d=c*c+u*u,y=p*p+h*h,v=Math.sqrt(d),m=Math.sqrt(f),b=o*Math.tan((Ft-Math.acos((d+f-y)/(2*v*m)))/2),g=b/m,x=b/v;Math.abs(g-1)>Wt&&this._append`L${t+g*l},${e+g*s}`,this._append`A${o},${o},0,0,${+(s*p>l*h)},${this._x1=t+x*c},${this._y1=e+x*u}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,r,n,o,i){if(t=+t,e=+e,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),u=t+a,l=e+c,s=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Wt||Math.abs(this._y1-l)>Wt)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%Ut+Ut),f>$t?this._append`A${r},${r},0,1,${s},${t-a},${e-c}A${r},${r},0,1,${s},${this._x1=u},${this._y1=l}`:f>Wt&&this._append`A${r},${r},0,${+(f>=Ft)},${s},${this._x1=t+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function Vt(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);e=t}return t},()=>new qt(e)}qt.prototype;gt(3),gt(3);function Xt(t){return Xt="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},Xt(t)}var Ht=["type","size","sizeType"];function Gt(){return Gt=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},Gt.apply(this,arguments)}function Yt(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 Zt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yt(Object(r),!0).forEach((function(e){Jt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jt(t,e,r){var n;return n=function(t,e){if("object"!=Xt(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Xt(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qt(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var te={symbolCircle:wt,symbolCross:jt,symbolDiamond:Pt,symbolSquare:Et,symbolStar:_t,symbolTriangle:Dt,symbolWye:Lt},ee=Math.PI/180,re=function(t){var e,n,i=t.type,a=void 0===i?"circle":i,c=t.size,u=void 0===c?64:c,l=t.sizeType,s=void 0===l?"area":l,f=Zt(Zt({},Qt(t,Ht)),{},{type:a,size:u,sizeType:s}),p=f.className,h=f.cx,d=f.cy,y=rt(f,!0);return h===+h&&d===+d&&u===+u?r().createElement("path",Gt({},y,{className:o("recharts-symbols",p),transform:"translate(".concat(h,", ").concat(d,")"),d:(e=function(t){var e="symbol".concat(vt()(t));return te[e]||wt}(a),n=function(t,e){let r=null,n=Vt(o);function o(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t="function"==typeof t?t:zt(t||wt),e="function"==typeof e?e:zt(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:zt(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:zt(+t),o):e},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o}().type(e).size(function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*ee;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(u,s,a)),n())})):null};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(){return oe=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},oe.apply(this,arguments)}function ie(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 ae(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)}}function ce(t,e,r){return e=le(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,ue()?Reflect.construct(e,r||[],le(t).constructor):e.apply(t,r))}function ue(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ue=function(){return!!t})()}function le(t){return le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},le(t)}function se(t,e){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},se(t,e)}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:String(e)}re.registerSymbol=function(t,e){te["symbol".concat(vt()(t))]=e};var he=32,de=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ce(this,e,arguments)}var n,i,a;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&&se(t,e)}(e,t),n=e,i=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,n=16,o=he/6,i=he/3,a=t.inactive?e:t.color;if("plainline"===t.type)return r().createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:n,x2:he,y2:n,className:"recharts-legend-icon"});if("line"===t.type)return r().createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(n,"h").concat(i,"\n A").concat(o,",").concat(o,",0,1,1,").concat(2*i,",").concat(n,"\n H").concat(he,"M").concat(2*i,",").concat(n,"\n A").concat(o,",").concat(o,",0,1,1,").concat(i,",").concat(n),className:"recharts-legend-icon"});if("rect"===t.type)return r().createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(he,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(r().isValidElement(t.legendIcon)){var c=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ie(Object(r),!0).forEach((function(e){fe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return delete c.legendIcon,r().cloneElement(t.legendIcon,c)}return r().createElement(re,{fill:a,cx:n,cy:n,size:he,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,n=e.payload,i=e.iconSize,a=e.layout,c=e.formatter,u=e.inactiveColor,l={x:0,y:0,width:he,height:he},s={display:"horizontal"===a?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(e,n){var a=e.formatter||c,p=o(fe(fe({"recharts-legend-item":!0},"legend-item-".concat(n),!0),"inactive",e.inactive));if("none"===e.type)return null;var h=d()(e.value)?null:e.value;dt(!d()(e.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var y=e.inactive?u:e.color;return r().createElement("li",oe({className:p,style:s,key:"legend-item-".concat(n)},z(t.props,e,n)),r().createElement(lt,{width:i,height:i,viewBox:l,style:f},t.renderIcon(e)),r().createElement("span",{className:"recharts-legend-item-text",style:{color:y}},a?a(h,e,n):h))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,n=t.layout,o=t.align;if(!e||!e.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?o:"left"};return r().createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],i&&ae(n.prototype,i),a&&ae(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(e.PureComponent);fe(de,"displayName","Legend"),fe(de,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ye=i(6424),ve=i.n(ye);function me(t,e,r){return!0===e?ve()(t,r):d()(e)?ve()(t,e):t}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)}var ge=["ref"];function xe(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 Oe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xe(Object(r),!0).forEach((function(e){ke(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function we(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,Te(n.key),n)}}function je(t,e,r){return e=Ae(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 Pe(t)}(t,Se()?Reflect.construct(e,r||[],Ae(t).constructor):e.apply(t,r))}function Se(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Se=function(){return!!t})()}function Ae(t){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ae(t)}function Pe(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ee(t,e){return Ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ee(t,e)}function ke(t,e,r){return(e=Te(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Te(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:String(e)}function Me(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 _e(t){return t.value}var Ce=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 ke(Pe(t=je(this,e,[].concat(n))),"lastBoundingBox",{width:-1,height:-1}),t}var n,o,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&&Ee(t,e)}(e,t),n=e,i=[{key:"getWithHeight",value:function(t,e){var r=t.props.layout;return"vertical"===r&&S(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(o=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();return t.height=this.wrapperNode.offsetHeight,t.width=this.wrapperNode.offsetWidth,t}return null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate,e=this.getBBox();e?(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Oe({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,c=n.margin,u=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),Oe(Oe({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,o=e.width,i=e.height,a=e.wrapperStyle,c=e.payloadUniqBy,u=e.payload,l=Oe(Oe({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return r().createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(r().isValidElement(t))return r().cloneElement(t,e);if("function"==typeof t)return r().createElement(t,e);e.ref;var n=Me(e,ge);return r().createElement(de,n)}(n,Oe(Oe({},this.props),{},{payload:me(u,c,_e)})))}}])&&we(n.prototype,o),i&&we(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}(e.PureComponent);ke(Ce,"displayName","Legend"),ke(Ce,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var De=i(1232),Ie=i.n(De);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 Re(){return Re=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},Re.apply(this,arguments)}function Be(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Le(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 Le(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 Le(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 ze(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 Fe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ze(Object(r),!0).forEach((function(e){Ue(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ze(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ue(t,e,r){var n;return n=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)}(e,"string"),(e="symbol"==Ne(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function We(t){return Array.isArray(t)&&A(t[0])&&A(t[1])?t.join(" ~ "):t}var $e=function(t){var e=t.separator,n=void 0===e?" : ":e,i=t.contentStyle,a=void 0===i?{}:i,c=t.itemStyle,u=void 0===c?{}:c,l=t.labelStyle,f=void 0===l?{}:l,p=t.payload,h=t.formatter,d=t.itemSorter,y=t.wrapperClassName,v=t.labelClassName,m=t.label,b=t.labelFormatter,g=t.accessibilityLayer,x=void 0!==g&&g,O=Fe({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),w=Fe({margin:0},f),j=!s()(m),S=j?m:"",P=o("recharts-default-tooltip",y),E=o("recharts-tooltip-label",v);j&&b&&null!=p&&(S=b(m,p));var k=x?{role:"status","aria-live":"assertive"}:{};return r().createElement("div",Re({className:P,style:O},k),r().createElement("p",{className:E,style:w},r().isValidElement(S)?S:"".concat(S)),function(){if(p&&p.length){var t=(d?Ie()(p,d):p).map((function(t,e){if("none"===t.type)return null;var o=Fe({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},u),i=t.formatter||h||We,a=t.value,c=t.name,l=a,s=c;if(i&&null!=l&&null!=s){var f=i(a,c,t,e,p);if(Array.isArray(f)){var d=Be(f,2);l=d[0],s=d[1]}else l=f}return r().createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:o},A(s)?r().createElement("span",{className:"recharts-tooltip-item-name"},s):null,A(s)?r().createElement("span",{className:"recharts-tooltip-item-separator"},n):null,r().createElement("span",{className:"recharts-tooltip-item-value"},l),r().createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return r().createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function Ke(t){return Ke="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},Ke(t)}function qe(t,e,r){var n;return n=function(t,e){if("object"!=Ke(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ke(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Ke(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ve="recharts-tooltip-wrapper",Xe={visibility:"hidden"};function He(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return o(Ve,qe(qe(qe(qe({},"".concat(Ve,"-right"),S(r)&&e&&S(e.x)&&r>=e.x),"".concat(Ve,"-left"),S(r)&&e&&S(e.x)&&r<e.x),"".concat(Ve,"-bottom"),S(n)&&e&&S(e.y)&&n>=e.y),"".concat(Ve,"-top"),S(n)&&e&&S(e.y)&&n<e.y))}function Ge(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,c=t.tooltipDimension,u=t.viewBox,l=t.viewBoxDimension;if(i&&S(i[n]))return i[n];var s=r[n]-c-o,f=r[n]+o;return e[n]?a[n]?s:f:a[n]?s<u[n]?Math.max(f,u[n]):Math.max(s,u[n]):f+c>u[n]+l?Math.max(s,u[n]):Math.max(f,u[n])}function Ye(t){return Ye="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},Ye(t)}function Ze(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 Je(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ze(Object(r),!0).forEach((function(e){ir(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ze(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Qe(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,ar(n.key),n)}}function tr(t,e,r){return e=rr(e),function(t,e){if(e&&("object"===Ye(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return nr(t)}(t,er()?Reflect.construct(e,r||[],rr(t).constructor):e.apply(t,r))}function er(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(er=function(){return!!t})()}function rr(t){return rr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rr(t)}function nr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function or(t,e){return or=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},or(t,e)}function ir(t,e,r){return(e=ar(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ar(t){var e=function(t,e){if("object"!=Ye(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ye(e)?e:String(e)}var cr=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 ir(nr(t=tr(this,e,[].concat(n))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),ir(nr(t),"handleKeyDown",(function(e){var r,n,o,i;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=t.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(o=null===(i=t.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),t}var n,o,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&&or(t,e)}(e,t),n=e,o=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.state.lastBoundingBox.width)>1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var t=this,e=this.props,n=e.active,o=e.allowEscapeViewBox,i=e.animationDuration,a=e.animationEasing,c=e.children,u=e.coordinate,l=e.hasPayload,s=e.isAnimationActive,f=e.offset,p=e.position,h=e.reverseDirection,d=e.useTranslate3d,y=e.viewBox,v=e.wrapperStyle,m=function(t){var e,r,n=t.allowEscapeViewBox,o=t.coordinate,i=t.offsetTopLeft,a=t.position,c=t.reverseDirection,u=t.tooltipBox,l=t.useTranslate3d,s=t.viewBox;return{cssProperties:u.height>0&&u.width>0&&o?function(t){var e=t.translateX,r=t.translateY;return{transform:t.useTranslate3d?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}({translateX:e=Ge({allowEscapeViewBox:n,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=Ge({allowEscapeViewBox:n,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:l}):Xe,cssClasses:He({translateX:e,translateY:r,coordinate:o})}}({allowEscapeViewBox:o,coordinate:u,offsetTopLeft:f,position:p,reverseDirection:h,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:y}),b=m.cssClasses,g=m.cssProperties,x=Je(Je({transition:s&&n?"transform ".concat(i,"ms ").concat(a):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&l?"visible":"hidden",position:"absolute",top:0,left:0},v);return r().createElement("div",{tabIndex:-1,className:b,style:x,ref:function(e){t.wrapperNode=e}},c)}}],o&&Qe(n.prototype,o),i&&Qe(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}(e.PureComponent),ur={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return ur[t]},set:function(t,e){if("string"==typeof t)ur[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach((function(e){ur[e]=t[e]}))}}};function lr(t){return lr="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},lr(t)}function sr(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 fr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sr(Object(r),!0).forEach((function(e){mr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function pr(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,br(n.key),n)}}function hr(t,e,r){return e=yr(e),function(t,e){if(e&&("object"===lr(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,dr()?Reflect.construct(e,r||[],yr(t).constructor):e.apply(t,r))}function dr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(dr=function(){return!!t})()}function yr(t){return yr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yr(t)}function vr(t,e){return vr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vr(t,e)}function mr(t,e,r){return(e=br(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function br(t){var e=function(t,e){if("object"!=lr(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==lr(e)?e:String(e)}function gr(t){return t.dataKey}var xr=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),hr(this,e,arguments)}var n,o,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&&vr(t,e)}(e,t),n=e,o=[{key:"render",value:function(){var t=this,e=this.props,n=e.active,o=e.allowEscapeViewBox,i=e.animationDuration,a=e.animationEasing,c=e.content,u=e.coordinate,l=e.filterNull,s=e.isAnimationActive,f=e.offset,p=e.payload,h=e.payloadUniqBy,d=e.position,y=e.reverseDirection,v=e.useTranslate3d,m=e.viewBox,b=e.wrapperStyle,g=null!=p?p:[];l&&g.length&&(g=me(p.filter((function(e){return null!=e.value&&(!0!==e.hide||t.props.includeHidden)})),h,gr));var x=g.length>0;return r().createElement(cr,{allowEscapeViewBox:o,animationDuration:i,animationEasing:a,isAnimationActive:s,active:n,coordinate:u,hasPayload:x,offset:f,position:d,reverseDirection:y,useTranslate3d:v,viewBox:m,wrapperStyle:b},function(t,e){return r().isValidElement(t)?r().cloneElement(t,e):"function"==typeof t?r().createElement(t,e):r().createElement($e,e)}(c,fr(fr({},this.props),{},{payload:g})))}}],o&&pr(n.prototype,o),i&&pr(n,i),Object.defineProperty(n,"prototype",{writable:!1}),e}(e.PureComponent);mr(xr,"displayName","Tooltip"),mr(xr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ur.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Or=i(9212),wr=i.n(Or);function jr(t){return jr="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},jr(t)}function Sr(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 Ar(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Sr(Object(r),!0).forEach((function(e){Pr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Pr(t,e,r){var n;return n=function(t,e){if("object"!=jr(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=jr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==jr(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Er(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return kr(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 kr(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 kr(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 Tr=(0,e.forwardRef)((function(t,n){var i=t.aspect,a=t.initialDimension,c=void 0===a?{width:-1,height:-1}:a,u=t.width,l=void 0===u?"100%":u,s=t.height,f=void 0===s?"100%":s,p=t.minWidth,h=void 0===p?0:p,d=t.minHeight,y=t.maxHeight,v=t.children,b=t.debounce,g=void 0===b?0:b,x=t.id,O=t.className,w=t.onResize,S=t.style,A=void 0===S?{}:S,P=(0,e.useRef)(null),E=(0,e.useRef)();E.current=w,(0,e.useImperativeHandle)(n,(function(){return Object.defineProperty(P.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),P.current},configurable:!0})}));var k=Er((0,e.useState)({containerWidth:c.width,containerHeight:c.height}),2),T=k[0],M=k[1],_=(0,e.useCallback)((function(t,e){M((function(r){var n=Math.round(t),o=Math.round(e);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}}))}),[]);(0,e.useEffect)((function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,o=r.height;_(n,o),null===(e=E.current)||void 0===e||e.call(E,n,o)};g>0&&(t=wr()(t,g,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=P.current.getBoundingClientRect(),n=r.width,o=r.height;return _(n,o),e.observe(P.current),function(){e.disconnect()}}),[_,g]);var C=(0,e.useMemo)((function(){var t=T.containerWidth,n=T.containerHeight;if(t<0||n<0)return null;dt(j(l)||j(f),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",l,f),dt(!i||i>0,"The aspect(%s) must be greater than zero.",i);var o=j(l)?t:l,a=j(f)?n:f;i&&i>0&&(o?a=o/i:a&&(o=a*i),y&&a>y&&(a=y)),dt(o>0||a>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",o,a,l,f,h,d,i);var c=!Array.isArray(v)&&(0,m.isElement)(v)&&q(v.type).endsWith("Chart");return r().Children.map(v,(function(t){return(0,m.isElement)(t)?(0,e.cloneElement)(t,Ar({width:o,height:a},c?{style:Ar({height:"100%",width:"100%",maxHeight:a,maxWidth:o},t.props.style)}:{})):t}))}),[i,v,f,y,d,h,T,l]);return r().createElement("div",{id:x?"".concat(x):void 0,className:o("recharts-responsive-container",O),style:Ar(Ar({},A),{},{width:l,height:f,minWidth:h,minHeight:d,maxHeight:y}),ref:P},C)})),Mr=function(t){return null};function _r(t){return _r="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},_r(t)}function Cr(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 Dr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cr(Object(r),!0).forEach((function(e){Ir(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ir(t,e,r){var n;return n=function(t,e){if("object"!=_r(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==_r(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Mr.displayName="Cell";var Nr={widthCache:{},cacheCount:0},Rr={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Br="recharts_measurement_span";var Lr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||ur.isSsr)return{width:0,height:0};var r,n=(r=Dr({},e),Object.keys(r).forEach((function(t){r[t]||delete r[t]})),r),o=JSON.stringify({text:t,copyStyle:n});if(Nr.widthCache[o])return Nr.widthCache[o];try{var i=document.getElementById(Br);i||((i=document.createElement("span")).setAttribute("id",Br),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=Dr(Dr({},Rr),n);Object.assign(i.style,a),i.textContent="".concat(t);var c=i.getBoundingClientRect(),u={width:c.width,height:c.height};return Nr.widthCache[o]=u,++Nr.cacheCount>2e3&&(Nr.cacheCount=0,Nr.widthCache={}),u}catch(t){return{width:0,height:0}}};function zr(t){return zr="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},zr(t)}function Fr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ur(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 Ur(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 Ur(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 Wr(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,$r(n.key),n)}}function $r(t){var e=function(t,e){if("object"!=zr(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=zr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==zr(e)?e:String(e)}var Kr=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,qr=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Vr=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Xr=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Hr={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Gr=Object.keys(Hr),Yr="NaN";var Zr=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),""===r||Vr.test(r)||(this.num=NaN,this.unit=""),Gr.includes(r)&&(this.num=function(t,e){return t*Hr[e]}(e,r),this.unit="px")}var e,r,n;return e=t,n=[{key:"parse",value:function(e){var r,n=Fr(null!==(r=Xr.exec(e))&&void 0!==r?r:[],3),o=n[1],i=n[2];return new t(parseFloat(o),null!=i?i:"")}}],(r=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&Wr(e.prototype,r),n&&Wr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Jr(t){if(t.includes(Yr))return Yr;for(var e=t;e.includes("*")||e.includes("/");){var r,n=Fr(null!==(r=Kr.exec(e))&&void 0!==r?r:[],4),o=n[1],i=n[2],a=n[3],c=Zr.parse(null!=o?o:""),u=Zr.parse(null!=a?a:""),l="*"===i?c.multiply(u):c.divide(u);if(l.isNaN())return Yr;e=e.replace(Kr,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=Fr(null!==(s=qr.exec(e))&&void 0!==s?s:[],4),p=f[1],h=f[2],d=f[3],y=Zr.parse(null!=p?p:""),v=Zr.parse(null!=d?d:""),m="+"===h?y.add(v):y.subtract(v);if(m.isNaN())return Yr;e=e.replace(qr,m.toString())}return e}var Qr=/\(([^()]*)\)/;function tn(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=Fr(Qr.exec(e),2)[1];e=e.replace(Qr,Jr(r))}return e}(e),e=Jr(e)}function en(t){var e=function(t){try{return tn(t)}catch(t){return Yr}}(t.slice(5,-1));return e===Yr?"":e}var rn=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],nn=["dx","dy","angle","className","breakAll"];function on(){return on=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},on.apply(this,arguments)}function an(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 cn(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return un(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 un(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 un(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 ln=/[ \f\n\r\t\v\u2028\u2029]+/,sn=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var o=[];return s()(e)||(o=r?e.toString().split(""):e.toString().split(ln)),{wordsWithComputedWidth:o.map((function(t){return{word:t,width:Lr(t,n).width}})),spaceWidth:r?0:Lr(" ",n).width}}catch(t){return null}},fn=function(t){return[{words:s()(t)?[]:t.toString().split(ln)}]},pn=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!ur.isSsr){var c=sn({breakAll:i,children:n,style:o});return c?function(t,e,r,n,o){var i=t.maxLines,a=t.children,c=t.style,u=t.breakAll,l=S(i),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var i=e.word,a=e.width,c=t[t.length-1];if(c&&(null==n||o||c.width+a+r<Number(n)))c.words.push(i),c.width+=a+r;else{var u={words:[i],width:a};t.push(u)}return t}),[])},p=f(e);if(!l)return p;for(var h,d=function(t){var e=s.slice(0,t),r=sn({breakAll:u,style:c,children:e+"…"}).wordsWithComputedWidth,o=f(r),a=o.length>i||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(o).width>Number(n);return[a,o]},y=0,v=s.length-1,m=0;y<=v&&m<=s.length-1;){var b=Math.floor((y+v)/2),g=cn(d(b-1),2),x=g[0],O=g[1],w=cn(d(b),1)[0];if(x||w||(y=b+1),x&&w&&(v=b-1),!x&&w){h=O;break}m++}return h||p}({breakAll:i,children:n,maxLines:a,style:o},c.wordsWithComputedWidth,c.spaceWidth,e,r):fn(n)}return fn(n)},hn="#808080",dn=function(t){var n=t.x,i=void 0===n?0:n,a=t.y,c=void 0===a?0:a,u=t.lineHeight,l=void 0===u?"1em":u,s=t.capHeight,f=void 0===s?"0.71em":s,p=t.scaleToFit,h=void 0!==p&&p,d=t.textAnchor,y=void 0===d?"start":d,v=t.verticalAnchor,m=void 0===v?"end":v,b=t.fill,g=void 0===b?hn:b,x=an(t,rn),O=(0,e.useMemo)((function(){return pn({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:h,style:x.style,width:x.width})}),[x.breakAll,x.children,x.maxLines,h,x.style,x.width]),w=x.dx,j=x.dy,P=x.angle,E=x.className,k=x.breakAll,T=an(x,nn);if(!A(i)||!A(c))return null;var M,_=i+(S(w)?w:0),C=c+(S(j)?j:0);switch(m){case"start":M=en("calc(".concat(f,")"));break;case"middle":M=en("calc(".concat((O.length-1)/2," * -").concat(l," + (").concat(f," / 2))"));break;default:M=en("calc(".concat(O.length-1," * -").concat(l,")"))}var D=[];if(h){var I=O[0].width,N=x.width;D.push("scale(".concat((S(N)?N/I:1)/I,")"))}return P&&D.push("rotate(".concat(P,", ").concat(_,", ").concat(C,")")),D.length&&(T.transform=D.join(" ")),r().createElement("text",on({},rt(T,!0),{x:_,y:C,className:o("recharts-text",E),textAnchor:y,fill:g.includes("url")?hn:g}),O.map((function(t,e){var n=t.words.join(k?"":" ");return r().createElement("tspan",{x:_,dy:0===e?M:l,key:n},n)})))};function yn(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function vn(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}class mn extends Map{constructor(t,e=On){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(bn(this,t))}has(t){return super.has(bn(this,t))}set(t,e){return super.set(gn(this,t),e)}delete(t){return super.delete(xn(this,t))}}Set;function bn({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function gn({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function xn({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function On(t){return null!==t&&"object"==typeof t?t.valueOf():t}const wn=Symbol("implicit");function jn(){var t=new mn,e=[],r=[],n=wn;function o(o){let i=t.get(o);if(void 0===i){if(n!==wn)return n;t.set(o,i=e.push(o)-1)}return r[i%r.length]}return o.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new mn;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return o},o.range=function(t){return arguments.length?(r=Array.from(t),o):r.slice()},o.unknown=function(t){return arguments.length?(n=t,o):n},o.copy=function(){return jn(e,r).unknown(n)},yn.apply(o,arguments),o}function Sn(){var t,e,r=jn().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,c=!1,u=0,l=0,s=.5;function f(){var r=n().length,f=a<i,p=f?a:i,h=f?i:a;t=(h-p)/Math.max(1,r-u+2*l),c&&(t=Math.floor(t)),p+=(h-p-t*(r-u))*s,e=t*(1-u),c&&(p=Math.round(p),e=Math.round(e));var d=function(t,e,r){t=+t,e=+e,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var n=-1,o=0|Math.max(0,Math.ceil((e-t)/r)),i=new Array(o);++n<o;)i[n]=t+n*r;return i}(r).map((function(e){return p+t*e}));return o(f?d.reverse():d)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},r.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,c=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(c=!!t,f()):c},r.padding=function(t){return arguments.length?(u=Math.min(1,l=+t),f()):u},r.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),f()):u},r.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return Sn(n(),[i,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},yn.apply(f(),arguments)}function An(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return An(e())},t}function Pn(){return An(Sn.apply(null,arguments).paddingInner(1))}const En=Math.sqrt(50),kn=Math.sqrt(10),Tn=Math.sqrt(2);function Mn(t,e,r){const n=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=En?10:i>=kn?5:i>=Tn?2:1;let c,u,l;return o<0?(l=Math.pow(10,-o)/a,c=Math.round(t*l),u=Math.round(e*l),c/l<t&&++c,u/l>e&&--u,l=-l):(l=Math.pow(10,o)*a,c=Math.round(t/l),u=Math.round(e/l),c*l<t&&++c,u*l>e&&--u),u<c&&.5<=r&&r<2?Mn(t,e,2*r):[c,u,l]}function _n(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[o,i,a]=n?Mn(e,t,r):Mn(t,e,r);if(!(i>=o))return[];const c=i-o+1,u=new Array(c);if(n)if(a<0)for(let t=0;t<c;++t)u[t]=(i-t)/-a;else for(let t=0;t<c;++t)u[t]=(i-t)*a;else if(a<0)for(let t=0;t<c;++t)u[t]=(o+t)/-a;else for(let t=0;t<c;++t)u[t]=(o+t)*a;return u}function Cn(t,e,r){return Mn(t=+t,e=+e,r=+r)[2]}function Dn(t,e,r){r=+r;const n=(e=+e)<(t=+t),o=n?Cn(e,t,r):Cn(t,e,r);return(n?-1:1)*(o<0?1/-o:o)}function In(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Nn(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Rn(t){let e,r,n;function o(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=In,r=(e,r)=>In(t(e),r),n=(e,r)=>t(e)-r):(e=t===In||t===Nn?t:Bn,r=t,n=t),{left:o,center:function(t,e,r=0,i=t.length){const a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<=0?o=e+1:i=e}while(o<i)}return o}}}function Bn(){return 0}function Ln(t){return null===t?NaN:+t}const zn=Rn(In),Fn=zn.right,Un=(zn.left,Rn(Ln).center,Fn);function Wn(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function $n(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Kn(){}var qn=.7,Vn=1/qn,Xn="\\s*([+-]?\\d+)\\s*",Hn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Yn=/^#([0-9a-f]{3,8})$/,Zn=new RegExp(`^rgb\\(${Xn},${Xn},${Xn}\\)$`),Jn=new RegExp(`^rgb\\(${Gn},${Gn},${Gn}\\)$`),Qn=new RegExp(`^rgba\\(${Xn},${Xn},${Xn},${Hn}\\)$`),to=new RegExp(`^rgba\\(${Gn},${Gn},${Gn},${Hn}\\)$`),eo=new RegExp(`^hsl\\(${Hn},${Gn},${Gn}\\)$`),ro=new RegExp(`^hsla\\(${Hn},${Gn},${Gn},${Hn}\\)$`),no={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function oo(){return this.rgb().formatHex()}function io(){return this.rgb().formatRgb()}function ao(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Yn.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?co(e):3===r?new so(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?uo(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?uo(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Zn.exec(t))?new so(e[1],e[2],e[3],1):(e=Jn.exec(t))?new so(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Qn.exec(t))?uo(e[1],e[2],e[3],e[4]):(e=to.exec(t))?uo(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=eo.exec(t))?mo(e[1],e[2]/100,e[3]/100,1):(e=ro.exec(t))?mo(e[1],e[2]/100,e[3]/100,e[4]):no.hasOwnProperty(t)?co(no[t]):"transparent"===t?new so(NaN,NaN,NaN,0):null}function co(t){return new so(t>>16&255,t>>8&255,255&t,1)}function uo(t,e,r,n){return n<=0&&(t=e=r=NaN),new so(t,e,r,n)}function lo(t,e,r,n){return 1===arguments.length?((o=t)instanceof Kn||(o=ao(o)),o?new so((o=o.rgb()).r,o.g,o.b,o.opacity):new so):new so(t,e,r,null==n?1:n);var o}function so(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function fo(){return`#${vo(this.r)}${vo(this.g)}${vo(this.b)}`}function po(){const t=ho(this.opacity);return`${1===t?"rgb(":"rgba("}${yo(this.r)}, ${yo(this.g)}, ${yo(this.b)}${1===t?")":`, ${t})`}`}function ho(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function yo(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function vo(t){return((t=yo(t))<16?"0":"")+t.toString(16)}function mo(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new go(t,e,r,n)}function bo(t){if(t instanceof go)return new go(t.h,t.s,t.l,t.opacity);if(t instanceof Kn||(t=ao(t)),!t)return new go;if(t instanceof go)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,c=i-o,u=(i+o)/2;return c?(a=e===i?(r-n)/c+6*(r<n):r===i?(n-e)/c+2:(e-r)/c+4,c/=u<.5?i+o:2-i-o,a*=60):c=u>0&&u<1?0:a,new go(a,c,u,t.opacity)}function go(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function xo(t){return(t=(t||0)%360)<0?t+360:t}function Oo(t){return Math.max(0,Math.min(1,t||0))}function wo(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}function jo(t,e,r,n,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*r+(1+3*t+3*i-3*a)*n+a*o)/6}Wn(Kn,ao,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:oo,formatHex:oo,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return bo(this).formatHsl()},formatRgb:io,toString:io}),Wn(so,lo,$n(Kn,{brighter(t){return t=null==t?Vn:Math.pow(Vn,t),new so(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?qn:Math.pow(qn,t),new so(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new so(yo(this.r),yo(this.g),yo(this.b),ho(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:fo,formatHex:fo,formatHex8:function(){return`#${vo(this.r)}${vo(this.g)}${vo(this.b)}${vo(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:po,toString:po})),Wn(go,(function(t,e,r,n){return 1===arguments.length?bo(t):new go(t,e,r,null==n?1:n)}),$n(Kn,{brighter(t){return t=null==t?Vn:Math.pow(Vn,t),new go(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?qn:Math.pow(qn,t),new go(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new so(wo(t>=240?t-240:t+120,o,n),wo(t,o,n),wo(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new go(xo(this.h),Oo(this.s),Oo(this.l),ho(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=ho(this.opacity);return`${1===t?"hsl(":"hsla("}${xo(this.h)}, ${100*Oo(this.s)}%, ${100*Oo(this.l)}%${1===t?")":`, ${t})`}`}}));const So=t=>()=>t;function Ao(t,e){return function(r){return t+r*e}}function Po(t){return 1==(t=+t)?Eo:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):So(isNaN(e)?r:e)}}function Eo(t,e){var r=e-t;return r?Ao(t,r):So(isNaN(t)?e:t)}const ko=function t(e){var r=Po(e);function n(t,e){var n=r((t=lo(t)).r,(e=lo(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=Eo(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function To(t){return function(e){var r,n,o=e.length,i=new Array(o),a=new Array(o),c=new Array(o);for(r=0;r<o;++r)n=lo(e[r]),i[r]=n.r||0,a[r]=n.g||0,c[r]=n.b||0;return i=t(i),a=t(a),c=t(c),n.opacity=1,function(t){return n.r=i(t),n.g=a(t),n.b=c(t),n+""}}}To((function(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[n],i=t[n+1],a=n>0?t[n-1]:2*o-i,c=n<e-1?t[n+2]:2*i-o;return jo((r-n/e)*e,a,o,i,c)}})),To((function(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),o=t[(n+e-1)%e],i=t[n%e],a=t[(n+1)%e],c=t[(n+2)%e];return jo((r-n/e)*e,o,i,a,c)}}));function Mo(t,e){var r,n=e?e.length:0,o=t?Math.min(n,t.length):0,i=new Array(o),a=new Array(n);for(r=0;r<o;++r)i[r]=Lo(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<o;++r)a[r]=i[r](t);return a}}function _o(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function Co(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Do(t,e){var r,n={},o={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=Lo(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}var Io=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,No=new RegExp(Io.source,"g");function Ro(t,e){var r,n,o,i=Io.lastIndex=No.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(r=Io.exec(t))&&(n=No.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),c[a]?c[a]+=o:c[++a]=o),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,u.push({i:a,x:Co(r,n)})),i=No.lastIndex;return i<e.length&&(o=e.slice(i),c[a]?c[a]+=o:c[++a]=o),c.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var r,n=0;n<e;++n)c[(r=u[n]).i]=r.x(t);return c.join("")})}function Bo(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(r=0;r<n;++r)o[r]=t[r]*(1-i)+e[r]*i;return o}}function Lo(t,e){var r,n,o=typeof e;return null==e||"boolean"===o?So(e):("number"===o?Co:"string"===o?(r=ao(e))?(e=r,ko):Ro:e instanceof ao?ko:e instanceof Date?_o:(n=e,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(e)?Mo:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Do:Co:Bo))(t,e)}function zo(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function Fo(t){return+t}var Uo=[0,1];function Wo(t){return t}function $o(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function Ko(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=$o(o,n),i=r(a,i)):(n=$o(n,o),i=r(i,a)),function(t){return i(n(t))}}function qo(t,e,r){var n=Math.min(t.length,e.length)-1,o=new Array(n),i=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)o[a]=$o(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=Un(t,e,1,n)-1;return i[r](o[r](e))}}function Vo(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Xo(){var t,e,r,n,o,i,a=Uo,c=Uo,u=Lo,l=Wo;function s(){var t=Math.min(a.length,c.length);return l!==Wo&&(l=function(t,e){var r;return t>e&&(r=t,t=e,e=r),function(r){return Math.max(t,Math.min(e,r))}}(a[0],a[t-1])),n=t>2?qo:Ko,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),c,u)))(t(l(e)))}return f.invert=function(r){return l(e((i||(i=n(c,a.map(t),Co)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Fo),s()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),s()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),u=zo,s()},f.clamp=function(t){return arguments.length?(l=!!t||Wo,s()):l!==Wo},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function Ho(){return Xo()(Wo,Wo)}var Go,Yo=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Zo(t){if(!(e=Yo.exec(t)))throw new Error("invalid format: "+t);var e;return new Jo({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Jo(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Qo(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function ti(t){return(t=Qo(Math.abs(t)))?t[1]:NaN}function ei(t,e){var r=Qo(t,e);if(!r)return t+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}Zo.prototype=Jo.prototype,Jo.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const ri={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>ei(100*t,e),r:ei,s:function(t,e){var r=Qo(t,e);if(!r)return t+"";var n=r[0],o=r[1],i=o-(Go=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+Qo(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function ni(t){return t}var oi,ii,ai,ci=Array.prototype.map,ui=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function li(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?ni:(e=ci.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,c=e[0],u=0;o>0&&c>0&&(u+c+1>n&&(c=Math.max(1,n-u)),i.push(t.substring(o-=c,o+c)),!((u+=c+1)>n));)c=e[a=(a+1)%e.length];return i.reverse().join(r)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?ni:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(ci.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=Zo(t)).fill,r=t.align,f=t.sign,p=t.symbol,h=t.zero,d=t.width,y=t.comma,v=t.precision,m=t.trim,b=t.type;"n"===b?(y=!0,b="g"):ri[b]||(void 0===v&&(v=12),m=!0,b="g"),(h||"0"===e&&"="===r)&&(h=!0,e="0",r="=");var g="$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===p?i:/[%p]/.test(b)?u:"",O=ri[b],w=/[defgprs%]/.test(b);function j(t){var o,i,u,p=g,j=x;if("c"===b)j=O(t)+j,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:O(Math.abs(t),v),m&&(t=function(t){t:for(var e,r=t.length,n=1,o=-1;n<r;++n)switch(t[n]){case".":o=e=n;break;case"0":0===o&&(o=n),e=n;break;default:if(!+t[n])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==f&&(S=!1),p=(S?"("===f?f:l:"-"===f||"("===f?"":f)+p,j=("s"===b?ui[8+Go/3]:"")+j+(S&&"("===f?")":""),w)for(o=-1,i=t.length;++o<i;)if(48>(u=t.charCodeAt(o))||u>57){j=(46===u?a+t.slice(o+1):t.slice(o))+j,t=t.slice(0,o);break}}y&&!h&&(t=n(t,1/0));var A=p.length+t.length+j.length,P=A<d?new Array(d-A+1).join(e):"";switch(y&&h&&(t=n(P+t,P.length?d-j.length:1/0),P=""),r){case"<":t=p+t+j+P;break;case"=":t=p+P+t+j;break;case"^":t=P.slice(0,A=P.length>>1)+p+t+j+P.slice(A);break;default:t=P+p+t+j}return c(t)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),j.toString=function(){return t+""},j}return{format:f,formatPrefix:function(t,e){var r=f(((t=Zo(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(ti(e)/3))),o=Math.pow(10,-n),i=ui[8+n/3];return function(t){return r(o*t)+i}}}}function si(t,e,r,n){var o,i=Dn(t,e,r);switch((n=Zo(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ti(e)/3)))-ti(Math.abs(t)))}(i,a))||(n.precision=o),ai(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ti(e)-ti(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=function(t){return Math.max(0,-ti(Math.abs(t)))}(i))||(n.precision=o-2*("%"===n.type))}return ii(n)}function fi(t){var e=t.domain;return t.ticks=function(t){var r=e();return _n(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return si(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,c=i.length-1,u=i[a],l=i[c],s=10;for(l<u&&(o=u,u=l,l=o,o=a,a=c,c=o);s-- >0;){if((o=Cn(u,l,r))===n)return i[a]=u,i[c]=l,e(i);if(o>0)u=Math.floor(u/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,l=Math.floor(l*o)/o}n=o}return t},t}function pi(){var t=Ho();return t.copy=function(){return Vo(t,pi())},yn.apply(t,arguments),fi(t)}function hi(t){var e;function r(t){return null==t||isNaN(t=+t)?e:t}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,Fo),r):t.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return hi(t).unknown(e)},t=arguments.length?Array.from(t,Fo):[0,1],fi(r)}function di(t,e){var r,n=0,o=(t=t.slice()).length-1,i=t[n],a=t[o];return a<i&&(r=n,n=o,o=r,r=i,i=a,a=r),t[n]=e.floor(i),t[o]=e.ceil(a),t}function yi(t){return Math.log(t)}function vi(t){return Math.exp(t)}function mi(t){return-Math.log(-t)}function bi(t){return-Math.exp(-t)}function gi(t){return isFinite(t)?+("1e"+t):t<0?0:t}function xi(t){return(e,r)=>-t(-e,r)}function Oi(t){const e=t(yi,vi),r=e.domain;let n,o,i=10;function a(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(i),o=function(t){return 10===t?gi:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),r()[0]<0?(n=xi(n),o=xi(o),t(mi,bi)):t(yi,vi),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],c=e[e.length-1];const u=c<a;u&&([a,c]=[c,a]);let l,s,f=n(a),p=n(c);const h=null==t?10:+t;let d=[];if(!(i%1)&&p-f<h){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<i;++l)if(s=f<0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;d.push(s)}}else for(;f<=p;++f)for(l=i-1;l>=1;--l)if(s=f>0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;d.push(s)}2*d.length<h&&(d=_n(a,c,h))}else d=_n(f,p,Math.min(p-f,h)).map(o);return u?d.reverse():d},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===i?"s":","),"function"!=typeof r&&(i%1||null!=(r=Zo(r)).precision||(r.trim=!0),r=ii(r)),t===1/0)return r;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(n(t)));return e*i<i-.5&&(e*=i),e<=a?r(t):""}},e.nice=()=>r(di(r(),{floor:t=>o(Math.floor(n(t))),ceil:t=>o(Math.ceil(n(t)))})),e}function wi(){const t=Oi(Xo()).domain([1,10]);return t.copy=()=>Vo(t,wi()).base(t.base()),yn.apply(t,arguments),t}function ji(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Si(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Ai(t){var e=1,r=t(ji(e),Si(e));return r.constant=function(r){return arguments.length?t(ji(e=+r),Si(e)):e},fi(r)}function Pi(){var t=Ai(Xo());return t.copy=function(){return Vo(t,Pi()).constant(t.constant())},yn.apply(t,arguments)}function Ei(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function ki(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Ti(t){return t<0?-t*t:t*t}function Mi(t){var e=t(Wo,Wo),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(Wo,Wo):.5===r?t(ki,Ti):t(Ei(r),Ei(1/r)):r},fi(e)}function _i(){var t=Mi(Xo());return t.copy=function(){return Vo(t,_i()).exponent(t.exponent())},yn.apply(t,arguments),t}function Ci(){return _i.apply(null,arguments).exponent(.5)}function Di(t){return Math.sign(t)*t*t}function Ii(){var t,e=Ho(),r=[0,1],n=!1;function o(r){var o=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(e(r));return isNaN(o)?t:n?Math.round(o):o}return o.invert=function(t){return e.invert(Di(t))},o.domain=function(t){return arguments.length?(e.domain(t),o):e.domain()},o.range=function(t){return arguments.length?(e.range((r=Array.from(t,Fo)).map(Di)),o):r.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(n=!!t,o):n},o.clamp=function(t){return arguments.length?(e.clamp(t),o):e.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return Ii(e.domain(),r).round(n).clamp(e.clamp()).unknown(t)},yn.apply(o,arguments),fi(o)}function Ni(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r<o||void 0===r&&o>=o)&&(r=o)}return r}function Ri(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function Bi(t=In){if(t===In)return Li;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}function Li(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function zi(t,e,r=0,n=1/0,o){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(o=void 0===o?Li:Bi(o);n>r;){if(n-r>600){const i=n-r+1,a=e-r+1,c=Math.log(i),u=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*u*(i-u)/i)*(a-i/2<0?-1:1);zi(t,e,Math.max(r,Math.floor(e-a*u/i+l)),Math.min(n,Math.floor(e+(i-a)*u/i+l)),o)}const i=t[e];let a=r,c=n;for(Fi(t,r,e),o(t[n],i)>0&&Fi(t,r,n);a<c;){for(Fi(t,a,c),++a,--c;o(t[a],i)<0;)++a;for(;o(t[c],i)>0;)--c}0===o(t[r],i)?Fi(t,r,c):(++c,Fi(t,c,n)),c<=e&&(r=c+1),e<=c&&(n=c-1)}return t}function Fi(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function Ui(t,e,r){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n=+n)>=n&&(yield n)}}(t,r)),(n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return Ri(t);if(e>=1)return Ni(t);var n,o=(n-1)*e,i=Math.floor(o),a=Ni(zi(t,i).subarray(0,i+1));return a+(Ri(t.subarray(i+1))-a)*(o-i)}}function Wi(t,e,r=Ln){if((n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,i=Math.floor(o),a=+r(t[i],i,t);return a+(+r(t[i+1],i+1,t)-a)*(o-i)}}function $i(){var t,e=[],r=[],n=[];function o(){var t=0,o=Math.max(1,r.length);for(n=new Array(o-1);++t<o;)n[t-1]=Wi(e,t/o);return i}function i(e){return null==e||isNaN(e=+e)?t:r[Un(n,e)]}return i.invertExtent=function(t){var o=r.indexOf(t);return o<0?[NaN,NaN]:[o>0?n[o-1]:e[0],o<n.length?n[o]:e[e.length-1]]},i.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(In),o()},i.range=function(t){return arguments.length?(r=Array.from(t),o()):r.slice()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.quantiles=function(){return n.slice()},i.copy=function(){return $i().domain(e).range(r).unknown(t)},yn.apply(i,arguments)}function Ki(){var t,e=0,r=1,n=1,o=[.5],i=[0,1];function a(e){return null!=e&&e<=e?i[Un(o,e,0,n)]:t}function c(){var t=-1;for(o=new Array(n);++t<n;)o[t]=((t+1)*r-(t-n)*e)/(n+1);return a}return a.domain=function(t){return arguments.length?([e,r]=t,e=+e,r=+r,c()):[e,r]},a.range=function(t){return arguments.length?(n=(i=Array.from(t)).length-1,c()):i.slice()},a.invertExtent=function(t){var a=i.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,o[0]]:a>=n?[o[n-1],r]:[o[a-1],o[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return Ki().domain([e,r]).range(i).unknown(t)},yn.apply(fi(a),arguments)}function qi(){var t,e=[.5],r=[0,1],n=1;function o(o){return null!=o&&o<=o?r[Un(e,o,0,n)]:t}return o.domain=function(t){return arguments.length?(e=Array.from(t),n=Math.min(e.length,r.length-1),o):e.slice()},o.range=function(t){return arguments.length?(r=Array.from(t),n=Math.min(e.length,r.length-1),o):r.slice()},o.invertExtent=function(t){var n=r.indexOf(t);return[e[n-1],e[n]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return qi().domain(e).range(r).unknown(t)},yn.apply(o,arguments)}oi=li({thousands:",",grouping:[3],currency:["$",""]}),ii=oi.format,ai=oi.formatPrefix;const Vi=1e3,Xi=6e4,Hi=36e5,Gi=864e5,Yi=6048e5,Zi=2592e6,Ji=31536e6,Qi=new Date,ta=new Date;function ea(t,e,r,n){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{const e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{const a=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return a;let c;do{a.push(c=new Date(+r)),e(r,i),t(r)}while(c<r&&r<n);return a},o.filter=r=>ea((e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),((t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););})),r&&(o.count=(e,n)=>(Qi.setTime(+e),ta.setTime(+n),t(Qi),t(ta),Math.floor(r(Qi,ta))),o.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(n?e=>n(e)%t==0:e=>o.count(0,e)%t==0):o:null)),o}const ra=ea((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));ra.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?ea((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):ra:null);ra.range;const na=ea((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Vi)}),((t,e)=>(e-t)/Vi),(t=>t.getUTCSeconds())),oa=(na.range,ea((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Vi)}),((t,e)=>{t.setTime(+t+e*Xi)}),((t,e)=>(e-t)/Xi),(t=>t.getMinutes()))),ia=(oa.range,ea((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*Xi)}),((t,e)=>(e-t)/Xi),(t=>t.getUTCMinutes()))),aa=(ia.range,ea((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Vi-t.getMinutes()*Xi)}),((t,e)=>{t.setTime(+t+e*Hi)}),((t,e)=>(e-t)/Hi),(t=>t.getHours()))),ca=(aa.range,ea((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*Hi)}),((t,e)=>(e-t)/Hi),(t=>t.getUTCHours()))),ua=(ca.range,ea((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Xi)/Gi),(t=>t.getDate()-1))),la=(ua.range,ea((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Gi),(t=>t.getUTCDate()-1))),sa=(la.range,ea((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Gi),(t=>Math.floor(t/Gi))));sa.range;function fa(t){return ea((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Xi)/Yi))}const pa=fa(0),ha=fa(1),da=fa(2),ya=fa(3),va=fa(4),ma=fa(5),ba=fa(6);pa.range,ha.range,da.range,ya.range,va.range,ma.range,ba.range;function ga(t){return ea((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Yi))}const xa=ga(0),Oa=ga(1),wa=ga(2),ja=ga(3),Sa=ga(4),Aa=ga(5),Pa=ga(6),Ea=(xa.range,Oa.range,wa.range,ja.range,Sa.range,Aa.range,Pa.range,ea((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),ka=(Ea.range,ea((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),Ta=(ka.range,ea((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear())));Ta.every=t=>isFinite(t=Math.floor(t))&&t>0?ea((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,r)=>{e.setFullYear(e.getFullYear()+r*t)})):null;Ta.range;const Ma=ea((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));Ma.every=t=>isFinite(t=Math.floor(t))&&t>0?ea((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null;Ma.range;function _a(t,e,r,n,o,i){const a=[[na,1,Vi],[na,5,5e3],[na,15,15e3],[na,30,3e4],[i,1,Xi],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Hi],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,Gi],[n,2,1728e5],[r,1,Yi],[e,1,Zi],[e,3,7776e6],[t,1,Ji]];function c(e,r,n){const o=Math.abs(r-e)/n,i=Rn((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(Dn(e/Ji,r/Ji,n));if(0===i)return ra.every(Math.max(Dn(e,r,n),1));const[c,u]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return c.every(u)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const o=r&&"function"==typeof r.range?r:c(t,e,r),i=o?o.range(t,+e+1):[];return n?i.reverse():i},c]}const[Ca,Da]=_a(Ma,ka,xa,sa,ca,ia),[Ia,Na]=_a(Ta,Ea,pa,ua,aa,oa);function Ra(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ba(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function La(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var za,Fa,Ua,Wa={"-":"",_:" ",0:"0"},$a=/^\s*\d+/,Ka=/^%/,qa=/[\\^$*+?|[\]().{}]/g;function Va(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(e)+o:o)}function Xa(t){return t.replace(qa,"\\$&")}function Ha(t){return new RegExp("^(?:"+t.map(Xa).join("|")+")","i")}function Ga(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Ya(t,e,r){var n=$a.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Za(t,e,r){var n=$a.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function Ja(t,e,r){var n=$a.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function Qa(t,e,r){var n=$a.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function tc(t,e,r){var n=$a.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function ec(t,e,r){var n=$a.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function rc(t,e,r){var n=$a.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function nc(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function oc(t,e,r){var n=$a.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function ic(t,e,r){var n=$a.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function ac(t,e,r){var n=$a.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function cc(t,e,r){var n=$a.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function uc(t,e,r){var n=$a.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function lc(t,e,r){var n=$a.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function sc(t,e,r){var n=$a.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function fc(t,e,r){var n=$a.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function pc(t,e,r){var n=$a.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function hc(t,e,r){var n=Ka.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function dc(t,e,r){var n=$a.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function yc(t,e,r){var n=$a.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function vc(t,e){return Va(t.getDate(),e,2)}function mc(t,e){return Va(t.getHours(),e,2)}function bc(t,e){return Va(t.getHours()%12||12,e,2)}function gc(t,e){return Va(1+ua.count(Ta(t),t),e,3)}function xc(t,e){return Va(t.getMilliseconds(),e,3)}function Oc(t,e){return xc(t,e)+"000"}function wc(t,e){return Va(t.getMonth()+1,e,2)}function jc(t,e){return Va(t.getMinutes(),e,2)}function Sc(t,e){return Va(t.getSeconds(),e,2)}function Ac(t){var e=t.getDay();return 0===e?7:e}function Pc(t,e){return Va(pa.count(Ta(t)-1,t),e,2)}function Ec(t){var e=t.getDay();return e>=4||0===e?va(t):va.ceil(t)}function kc(t,e){return t=Ec(t),Va(va.count(Ta(t),t)+(4===Ta(t).getDay()),e,2)}function Tc(t){return t.getDay()}function Mc(t,e){return Va(ha.count(Ta(t)-1,t),e,2)}function _c(t,e){return Va(t.getFullYear()%100,e,2)}function Cc(t,e){return Va((t=Ec(t)).getFullYear()%100,e,2)}function Dc(t,e){return Va(t.getFullYear()%1e4,e,4)}function Ic(t,e){var r=t.getDay();return Va((t=r>=4||0===r?va(t):va.ceil(t)).getFullYear()%1e4,e,4)}function Nc(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Va(e/60|0,"0",2)+Va(e%60,"0",2)}function Rc(t,e){return Va(t.getUTCDate(),e,2)}function Bc(t,e){return Va(t.getUTCHours(),e,2)}function Lc(t,e){return Va(t.getUTCHours()%12||12,e,2)}function zc(t,e){return Va(1+la.count(Ma(t),t),e,3)}function Fc(t,e){return Va(t.getUTCMilliseconds(),e,3)}function Uc(t,e){return Fc(t,e)+"000"}function Wc(t,e){return Va(t.getUTCMonth()+1,e,2)}function $c(t,e){return Va(t.getUTCMinutes(),e,2)}function Kc(t,e){return Va(t.getUTCSeconds(),e,2)}function qc(t){var e=t.getUTCDay();return 0===e?7:e}function Vc(t,e){return Va(xa.count(Ma(t)-1,t),e,2)}function Xc(t){var e=t.getUTCDay();return e>=4||0===e?Sa(t):Sa.ceil(t)}function Hc(t,e){return t=Xc(t),Va(Sa.count(Ma(t),t)+(4===Ma(t).getUTCDay()),e,2)}function Gc(t){return t.getUTCDay()}function Yc(t,e){return Va(Oa.count(Ma(t)-1,t),e,2)}function Zc(t,e){return Va(t.getUTCFullYear()%100,e,2)}function Jc(t,e){return Va((t=Xc(t)).getUTCFullYear()%100,e,2)}function Qc(t,e){return Va(t.getUTCFullYear()%1e4,e,4)}function tu(t,e){var r=t.getUTCDay();return Va((t=r>=4||0===r?Sa(t):Sa.ceil(t)).getUTCFullYear()%1e4,e,4)}function eu(){return"+0000"}function ru(){return"%"}function nu(t){return+t}function ou(t){return Math.floor(+t/1e3)}function iu(t){return new Date(t)}function au(t){return t instanceof Date?+t:+new Date(+t)}function cu(t,e,r,n,o,i,a,c,u,l){var s=Ho(),f=s.invert,p=s.domain,h=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),b=l("%b %d"),g=l("%B"),x=l("%Y");function O(t){return(u(t)<t?h:c(t)<t?d:a(t)<t?y:i(t)<t?v:n(t)<t?o(t)<t?m:b:r(t)<t?g:x)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,au)):p().map(iu)},s.ticks=function(e){var r=p();return t(r[0],r[r.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?O:l(e)},s.nice=function(t){var r=p();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?p(di(r,t)):s},s.copy=function(){return Vo(s,cu(t,e,r,n,o,i,a,c,u,l))},s}function uu(){return yn.apply(cu(Ia,Na,Ta,Ea,pa,ua,aa,oa,na,Fa).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function lu(){return yn.apply(cu(Ca,Da,Ma,ka,xa,la,ca,ia,na,Ua).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function su(){var t,e,r,n,o,i=0,a=1,c=Wo,u=!1;function l(e){return null==e||isNaN(e=+e)?o:c(0===r?.5:(e=(n(e)-t)*r,u?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,c=t(r,n),l):[c(0),c(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=n(i=+i),e=n(a=+a),r=t===e?0:1/(e-t),l):[i,a]},l.clamp=function(t){return arguments.length?(u=!!t,l):u},l.interpolator=function(t){return arguments.length?(c=t,l):c},l.range=s(Lo),l.rangeRound=s(zo),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return n=o,t=o(i),e=o(a),r=t===e?0:1/(e-t),l}}function fu(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function pu(){var t=fi(su()(Wo));return t.copy=function(){return fu(t,pu())},vn.apply(t,arguments)}function hu(){var t=Oi(su()).domain([1,10]);return t.copy=function(){return fu(t,hu()).base(t.base())},vn.apply(t,arguments)}function du(){var t=Ai(su());return t.copy=function(){return fu(t,du()).constant(t.constant())},vn.apply(t,arguments)}function yu(){var t=Mi(su());return t.copy=function(){return fu(t,yu()).exponent(t.exponent())},vn.apply(t,arguments)}function vu(){return yu.apply(null,arguments).exponent(.5)}function mu(){var t=[],e=Wo;function r(r){if(null!=r&&!isNaN(r=+r))return e((Un(t,r,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let r of e)null==r||isNaN(r=+r)||t.push(r);return t.sort(In),r},r.interpolator=function(t){return arguments.length?(e=t,r):e},r.range=function(){return t.map(((r,n)=>e(n/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((r,n)=>Ui(t,n/e)))},r.copy=function(){return mu(e).domain(t)},vn.apply(r,arguments)}function bu(){var t,e,r,n,o,i,a,c=0,u=.5,l=1,s=1,f=Wo,p=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(s*t<s*e?n:o),f(p?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var r,n,o;return arguments.length?([r,n,o]=e,f=function(t,e){void 0===e&&(e=t,t=Lo);for(var r=0,n=e.length-1,o=e[0],i=new Array(n<0?0:n);r<n;)i[r]=t(o,o=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return i[e](t-e)}}(t,[r,n,o]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([c,u,l]=a,t=i(c=+c),e=i(u=+u),r=i(l=+l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h):[c,u,l]},h.clamp=function(t){return arguments.length?(p=!!t,h):p},h.interpolator=function(t){return arguments.length?(f=t,h):f},h.range=d(Lo),h.rangeRound=d(zo),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return i=a,t=a(c),e=a(u),r=a(l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h}}function gu(){var t=fi(bu()(Wo));return t.copy=function(){return fu(t,gu())},vn.apply(t,arguments)}function xu(){var t=Oi(bu()).domain([.1,1,10]);return t.copy=function(){return fu(t,xu()).base(t.base())},vn.apply(t,arguments)}function Ou(){var t=Ai(bu());return t.copy=function(){return fu(t,Ou()).constant(t.constant())},vn.apply(t,arguments)}function wu(){var t=Mi(bu());return t.copy=function(){return fu(t,wu()).exponent(t.exponent())},vn.apply(t,arguments)}function ju(){return wu.apply(null,arguments).exponent(.5)}function Su(t,e){if((o=t.length)>1)for(var r,n,o,i=1,a=t[e[0]],c=a.length;i<o;++i)for(n=a,a=t[e[i]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}!function(t){za=function(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,l=Ha(o),s=Ga(o),f=Ha(i),p=Ga(i),h=Ha(a),d=Ga(a),y=Ha(c),v=Ga(c),m=Ha(u),b=Ga(u),g={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:vc,e:vc,f:Oc,g:Cc,G:Ic,H:mc,I:bc,j:gc,L:xc,m:wc,M:jc,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:nu,s:ou,S:Sc,u:Ac,U:Pc,V:kc,w:Tc,W:Mc,x:null,X:null,y:_c,Y:Dc,Z:Nc,"%":ru},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:Rc,e:Rc,f:Uc,g:Jc,G:tu,H:Bc,I:Lc,j:zc,L:Fc,m:Wc,M:$c,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:nu,s:ou,S:Kc,u:qc,U:Vc,V:Hc,w:Gc,W:Yc,x:null,X:null,y:Zc,Y:Qc,Z:eu,"%":ru},O={a:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return S(t,e,r,n)},d:ac,e:ac,f:pc,g:rc,G:ec,H:uc,I:uc,j:cc,L:fc,m:ic,M:lc,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:oc,Q:dc,s:yc,S:sc,u:Za,U:Ja,V:Qa,w:Ya,W:tc,x:function(t,e,n){return S(t,r,e,n)},X:function(t,e,r){return S(t,n,e,r)},y:rc,Y:ec,Z:nc,"%":hc};function w(t,e){return function(r){var n,o,i,a=[],c=-1,u=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++c<l;)37===t.charCodeAt(c)&&(a.push(t.slice(u,c)),null!=(o=Wa[n=t.charAt(++c)])?n=t.charAt(++c):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),a.push(n),u=c+1);return a.push(t.slice(u,c)),a.join("")}}function j(t,e){return function(r){var n,o,i=La(1900,void 0,1);if(S(i,t,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(n=Ba(La(i.y,0,1))).getUTCDay(),n=o>4||0===o?Oa.ceil(n):Oa(n),n=la.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=Ra(La(i.y,0,1))).getDay(),n=o>4||0===o?ha.ceil(n):ha(n),n=ua.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Ba(La(i.y,0,1)).getUTCDay():Ra(La(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Ba(i)):Ra(i)}}function S(t,e,r,n){for(var o,i,a=0,c=e.length,u=r.length;a<c;){if(n>=u)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=O[o in Wa?e.charAt(a++):o])||(n=i(t,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return g.x=w(r,g),g.X=w(n,g),g.c=w(e,g),x.x=w(r,x),x.X=w(n,x),x.c=w(e,x),{format:function(t){var e=w(t+="",g);return e.toString=function(){return t},e},parse:function(t){var e=j(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=j(t+="",!0);return e.toString=function(){return t},e}}}(t),Fa=za.format,za.parse,Ua=za.utcFormat,za.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});Array.prototype.slice;function Au(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Pu(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function Eu(t,e){return t[e]}function ku(t){const e=[];return e.key=t,e}var Tu=i(4464),Mu=i.n(Tu),_u=i(4044),Cu=i.n(_u),Du=i(7440),Iu=i.n(Du),Nu=i(948),Ru=i.n(Nu),Bu=i(7996),Lu=i.n(Bu);function zu(t){return function(t){if(Array.isArray(t))return Fu(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Fu(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 Fu(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 Fu(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 Uu=function(t){return t},Wu={"@@functional/placeholder":!0},$u=function(t){return t===Wu},Ku=function(t){return function e(){return 0===arguments.length||1===arguments.length&&$u(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},qu=function t(e,r){return 1===e?r:Ku((function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o.filter((function(t){return t!==Wu})).length;return a>=e?r.apply(void 0,o):t(e-a,Ku((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=o.map((function(t){return $u(t)?e.shift():t}));return r.apply(void 0,zu(i).concat(e))})))}))},Vu=function(t){return qu(t.length,t)},Xu=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},Hu=Vu((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),Gu=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return Uu;var n=e.reverse(),o=n[0],i=n.slice(1);return function(){return i.reduce((function(t,e){return e(t)}),o.apply(void 0,arguments))}},Yu=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Zu=function(t){var e=null,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e&&o.every((function(t,r){return t===e[r]}))?r:(e=o,r=t.apply(void 0,o))}};var Ju=Vu((function(t,e,r){var n=+t;return n+r*(+e-n)})),Qu=Vu((function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)})),tl=Vu((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))}));const el={rangeStep:function(t,e,r){for(var n=new(Lu())(t),o=0,i=[];n.lt(e)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i},getDigitCount:function(t){return 0===t?1:Math.floor(new(Lu())(t).abs().log(10).toNumber())+1},interpolateNumber:Ju,uninterpolateNumber:Qu,uninterpolateTruncation:tl};function rl(t){return function(t){if(Array.isArray(t))return il(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||ol(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 nl(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(t,e)||ol(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 ol(t,e){if(t){if("string"==typeof t)return il(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)?il(t,e):void 0}}function il(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 al(t){var e=nl(t,2),r=e[0],n=e[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function cl(t,e,r){if(t.lte(0))return new(Lu())(0);var n=el.getDigitCount(t.toNumber()),o=new(Lu())(10).pow(n),i=t.div(o),a=1!==n?.05:.1,c=new(Lu())(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?c:new(Lu())(Math.ceil(c))}function ul(t,e,r){var n=1,o=new(Lu())(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new(Lu())(10).pow(el.getDigitCount(t)-1),o=new(Lu())(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new(Lu())(Math.floor(t)))}else 0===t?o=new(Lu())(Math.floor((e-1)/2)):r||(o=new(Lu())(Math.floor(t)));var a=Math.floor((e-1)/2);return Gu(Hu((function(t){return o.add(new(Lu())(t-a).mul(n)).toNumber()})),Xu)(0,e)}function ll(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new(Lu())(0),tickMin:new(Lu())(0),tickMax:new(Lu())(0)};var i,a=cl(new(Lu())(e).sub(t).div(r-1),n,o);i=t<=0&&e>=0?new(Lu())(0):(i=new(Lu())(t).add(e).div(2)).sub(new(Lu())(i).mod(a));var c=Math.ceil(i.sub(t).div(a).toNumber()),u=Math.ceil(new(Lu())(e).sub(i).div(a).toNumber()),l=c+u+1;return l>r?ll(t,e,r,n,o+1):(l<r&&(u=e>0?u+(r-l):u,c=e>0?c:c+(r-l)),{step:a,tickMin:i.sub(new(Lu())(c).mul(a)),tickMax:i.add(new(Lu())(u).mul(a))})}var sl=Zu((function(t){var e=nl(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),c=nl(al([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(rl(Xu(0,o-1).map((function(){return 1/0})))):[].concat(rl(Xu(0,o-1).map((function(){return-1/0}))),[l]);return r>n?Yu(s):s}if(u===l)return ul(u,o,i);var f=ll(u,l,a,i),p=f.step,h=f.tickMin,d=f.tickMax,y=el.rangeStep(h,d.add(new(Lu())(.1).mul(p)),p);return r>n?Yu(y):y})),fl=(Zu((function(t){var e=nl(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),c=nl(al([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0)return[r,n];if(u===l)return ul(u,o,i);var s=cl(new(Lu())(l).sub(u).div(a-1),i,0),f=Gu(Hu((function(t){return new(Lu())(u).add(new(Lu())(t).mul(s)).toNumber()})),Xu)(0,a).filter((function(t){return t>=u&&t<=l}));return r>n?Yu(f):f})),Zu((function(t,e){var r=nl(t,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=nl(al([n,o]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[n,o];if(c===u)return[c];var l=Math.max(e,2),s=cl(new(Lu())(u).sub(c).div(l-1),i,0),f=[].concat(rl(el.rangeStep(new(Lu())(c),new(Lu())(u).sub(new(Lu())(.99).mul(s)),s)),[u]);return n>o?Yu(f):f}))),pl=!0,hl="Invariant failed";function dl(t,e){if(!t){if(pl)throw new Error(hl);var r="function"==typeof e?e():e,n=r?"".concat(hl,": ").concat(r):hl;throw new Error(n)}}var yl=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function vl(){return vl=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},vl.apply(this,arguments)}function ml(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return bl(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 bl(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 bl(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 gl(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 xl(t){var e=t.offset,n=t.layout,o=t.width,i=t.dataKey,a=t.data,c=t.dataPointFormatter,u=t.xAxis,l=t.yAxis,s=gl(t,yl),f=rt(s,!1);"x"===t.direction&&"number"!==u.type&&dl(!1);var p=a.map((function(t){var a=c(t,i),s=a.x,p=a.y,h=a.value,d=a.errorVal;if(!d)return null;var y,v,m=[];if(Array.isArray(d)){var b=ml(d,2);y=b[0],v=b[1]}else y=v=d;if("vertical"===n){var g=u.scale,x=p+e,O=x+o,w=x-o,j=g(h-y),S=g(h+v);m.push({x1:S,y1:O,x2:S,y2:w}),m.push({x1:j,y1:x,x2:S,y2:x}),m.push({x1:j,y1:O,x2:j,y2:w})}else if("horizontal"===n){var A=l.scale,P=s+e,E=P-o,k=P+o,T=A(h-y),M=A(h+v);m.push({x1:E,y1:M,x2:k,y2:M}),m.push({x1:P,y1:T,x2:P,y2:M}),m.push({x1:E,y1:T,x2:k,y2:T})}return r().createElement(ht,vl({className:"recharts-errorBar",key:"bar-".concat(m.map((function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)})))},f),m.map((function(t){return r().createElement("line",vl({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))})))}));return r().createElement(ht,{className:"recharts-errorBars"},p)}function Ol(t){return Ol="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},Ol(t)}function wl(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 jl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wl(Object(r),!0).forEach((function(e){Sl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wl(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Sl(t,e,r){var n;return n=function(t,e){if("object"!=Ol(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ol(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Ol(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}xl.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},xl.displayName="ErrorBar";var Al=function(t){var e,r=t.children,n=t.formattedGraphicalItems,o=t.legendWidth,i=t.legendContent,a=Y(r,Ce);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(n||[]).reduce((function(t,e){var r=e.item,n=e.props,o=n.sectors||n.data||[];return t.concat(o.map((function(t){return{type:a.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(n||[]).map((function(t){var e=t.item,r=e.props,n=r.dataKey,o=r.name,i=r.legendType;return{inactive:r.hide,dataKey:n,type:a.props.iconType||i||"square",color:Il(e),value:o||n,payload:e.props}})),jl(jl(jl({},a.props),Ce.getWithHeight(a,o)),{},{payload:e,item:a})):null};function Pl(t){return Pl="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},Pl(t)}function El(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 kl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?El(Object(r),!0).forEach((function(e){Tl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):El(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Tl(t,e,r){var n;return n=function(t,e){if("object"!=Pl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Pl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Pl(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ml(t){return function(t){if(Array.isArray(t))return _l(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 _l(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 _l(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 _l(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 Cl(t,e,r){return s()(t)||s()(e)?r:A(e)?u()(t,e,r):d()(e)?e(t):r}function Dl(t,e,r,n){var o=Iu()(t,(function(t){return Cl(t,e)}));if("number"===r){var i=o.filter((function(t){return S(t)||parseFloat(t)}));return i.length?[Cu()(i),Mu()(i)]:[1/0,-1/0]}return(n?o.filter((function(t){return!s()(t)})):o).map((function(t){return A(t)||t instanceof Date?t:""}))}var Il=function(t){var e,r=t.type.displayName,n=t.props,o=n.stroke,i=n.fill;switch(r){case"Line":e=o;break;case"Area":case"Radar":e=o&&"none"!==o?o:i;break;default:e=i}return e},Nl=function(t,e,r,n,o){var i=G(e.props.children,xl).filter((function(t){return function(t,e,r){return!!s()(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===r?"xAxis"===e:"y"!==r||"yAxis"===e)}(n,o,t.props.direction)}));if(i&&i.length){var a=i.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var n=Cl(e,r);if(s()(n))return t;var o=Array.isArray(n)?[Cu()(n),Mu()(n)]:[n,n],i=a.reduce((function(t,r){var n=Cl(e,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]}),[1/0,-1/0])}return null},Rl=function(t,e,r,n,o){var i=e.map((function(e){var i=e.props.dataKey;return"number"===r&&i&&Nl(t,e,i,n)||Dl(t,i,r,o)}));if("number"===r)return i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(t,e){for(var r=0,n=e.length;r<n;r++)a[e[r]]||(a[e[r]]=!0,t.push(e[r]));return t}),[])},Bl=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},Ll=function(t,e,r,n){if(n)return t.map((function(t){return t.coordinate}));var o,i,a=t.map((function(t){return t.coordinate===e&&(o=!0),t.coordinate===r&&(i=!0),t.coordinate}));return o||a.push(e),i||a.push(r),a},zl=function(t,e,r){if(!t)return null;var n=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,c="scaleBand"===t.realScaleType?n.bandwidth()/2:2,u=(e||r)&&"category"===i&&n.bandwidth?n.bandwidth()/c:0;return u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*w(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=o?o.indexOf(t):t;return{coordinate:n(e)+u,value:t,offset:u}})).filter((function(t){return!g()(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:n(t)+u,value:t,index:e,offset:u}})):n.ticks&&!r?n.ticks(t.tickCount).map((function(t){return{coordinate:n(t)+u,value:t,offset:u}})):n.domain().map((function(t,e){return{coordinate:n(t)+u,value:o?o[t]:t,index:e,offset:u}}))},Fl=new WeakMap,Ul=function(t,e){if("function"!=typeof e)return t;Fl.has(t)||Fl.set(t,new WeakMap);var r=Fl.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},Wl=function(e,r,n){var o=e.scale,i=e.type,a=e.layout,c=e.axisType;if("auto"===o)return"radial"===a&&"radiusAxis"===c?{scale:Sn(),realScaleType:"band"}:"radial"===a&&"angleAxis"===c?{scale:pi(),realScaleType:"linear"}:"category"===i&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Pn(),realScaleType:"point"}:"category"===i?{scale:Sn(),realScaleType:"band"}:{scale:pi(),realScaleType:"linear"};if(p()(o)){var u="scale".concat(vt()(o));return{scale:(t[u]||Pn)(),realScaleType:t[u]?u:"point"}}return d()(o)?{scale:o}:{scale:Pn(),realScaleType:"point"}},$l=1e-4,Kl=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])-$l,i=Math.max(n[0],n[1])+$l,a=t(e[0]),c=t(e[r-1]);(a<o||a>i||c<o||c>i)&&t.domain([e[0],e[r-1]])}},ql=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},Vl=function(t,e){if(!e||2!==e.length||!S(e[0])||!S(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(!S(t[0])||t[0]<r)&&(o[0]=r),(!S(t[1])||t[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o},Xl={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0,a=0;a<e;++a){var c=g()(t[a][r][1])?t[a][r][0]:t[a][r][1];c>=0?(t[a][r][0]=o,t[a][r][1]=o+c,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+c,i=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}Su(t,e)}},none:Su,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,o=t[e[0]],i=o.length;n<i;++n){for(var a=0,c=0;a<r;++a)c+=t[a][n][1]||0;o[n][1]+=o[n][0]=-c/2}Su(t,e)}},wiggle:function(t,e){if((o=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var c=0,u=0,l=0;c<o;++c){for(var s=t[e[c]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,h=0;h<c;++h){var d=t[e[h]];p+=(d[a][1]||0)-(d[a-1][1]||0)}u+=f,l+=p*f}r[a-1][1]+=r[a-1][0]=i,u&&(i-=l/u)}r[a-1][1]+=r[a-1][0]=i,Su(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0;i<e;++i){var a=g()(t[i][r][1])?t[i][r][0]:t[i][r][1];a>=0?(t[i][r][0]=o,t[i][r][1]=o+a,o=t[i][r][1]):(t[i][r][0]=0,t[i][r][1]=0)}}},Hl=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),o=Xl[r],i=function(){var t=zt([]),e=Pu,r=Su,n=Eu;function o(o){var i,a,c=Array.from(t.apply(this,arguments),ku),u=c.length,l=-1;for(const t of o)for(i=0,++l;i<u;++i)(c[i][l]=[0,+n(t,c[i].key,l,o)]).data=t;for(i=0,a=Au(e(c));i<u;++i)c[a[i]].index=i;return r(c,a),c}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:zt(Array.from(e)),o):t},o.value=function(t){return arguments.length?(n="function"==typeof t?t:zt(+t),o):n},o.order=function(t){return arguments.length?(e=null==t?Pu:"function"==typeof t?t:zt(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?Su:t,o):r},o}().keys(n).value((function(t,e){return+Cl(t,e,0)})).order(Pu).offset(o);return i(t)},Gl=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=sl(u,o,a);return t.domain([Cu()(l),Mu()(l)]),{niceTicks:l}}if(o&&"number"===n){var s=t.domain();return{niceTicks:fl(s,o,a)}}return null};function Yl(t){var e=t.axis,r=t.ticks,n=t.bandSize,o=t.entry,i=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!s()(o[e.dataKey])){var c=_(r,"value",o[e.dataKey]);if(c)return c.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var u=Cl(o,s()(a)?e.dataKey:a);return s()(u)?null:e.scale(u)}var Zl=function(t){var e=t.axis,r=t.ticks,n=t.offset,o=t.bandSize,i=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var c=Cl(i,e.dataKey,e.domain[a]);return s()(c)?null:e.scale(c)-o/2+n},Jl=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]},Ql=function(t,e,r){return Object.keys(t).reduce((function(n,o){var i=t[o].stackedData.reduce((function(t,n){var o=n.slice(e,r+1).reduce((function(t,e){return[Cu()(e.concat([t[0]]).filter(S)),Mu()(e.concat([t[1]]).filter(S))]}),[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},ts=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,es=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,rs=function(t,e,r){if(d()(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(S(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(ts.test(t[0])){var o=+ts.exec(t[0])[1];n[0]=e[0]-o}else d()(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(S(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(es.test(t[1])){var i=+es.exec(t[1])[1];n[1]=e[1]+i}else d()(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},ns=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var o=Ie()(e,(function(t){return t.coordinate})),i=1/0,a=1,c=o.length;a<c;a++){var u=o[a],l=o[a-1];i=Math.min((u.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},os=function(t,e,r){return t&&t.length?Ru()(t,u()(r,"type.defaultProps.domain"))?e:t:e},is=function(t,e){var r=t.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,c=r.tooltipType,u=r.chartType,l=r.hide;return kl(kl({},rt(t,!1)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:Il(t),value:Cl(e,n),type:c,payload:e,chartType:u,hide:l})};function as(t){return as="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},as(t)}function cs(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function us(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cs(Object(r),!0).forEach((function(e){ls(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cs(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ls(t,e,r){var n;return n=function(t,e){if("object"!=as(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=as(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==as(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ss(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return fs(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fs(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fs(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ps=Math.PI/180,hs=function(t){return 180*t/Math.PI},ds=function(t,e,r,n){return{x:t+Math.cos(-ps*n)*r,y:e+Math.sin(-ps*n)*r}},ys=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(e-(r.top||0)-(r.bottom||0)))/2},vs=function(t,e,r,n,o){var i=t.width,a=t.height,c=t.startAngle,u=t.endAngle,l=k(t.cx,i,i/2),f=k(t.cy,a,a/2),p=ys(i,a,r),h=k(t.innerRadius,p,0),d=k(t.outerRadius,p,.8*p);return Object.keys(e).reduce((function(t,r){var i,a=e[r],p=a.domain,y=a.reversed;if(s()(a.range))"angleAxis"===n?i=[c,u]:"radiusAxis"===n&&(i=[h,d]),y&&(i=[i[1],i[0]]);else{var v=ss(i=a.range,2);c=v[0],u=v[1]}var m=Wl(a,o),b=m.realScaleType,g=m.scale;g.domain(p).range(i),Kl(g);var x=Gl(g,us(us({},a),{},{realScaleType:b})),O=us(us(us({},a),x),{},{range:i,radius:d,realScaleType:b,scale:g,cx:l,cy:f,innerRadius:h,outerRadius:d,startAngle:c,endAngle:u});return us(us({},t),{},ls({},r,O))}),{})},ms=function(t,e){var r=t.x,n=t.y,o=e.cx,i=e.cy,a=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(n-i,2))}({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var c=(r-o)/a,u=Math.acos(c);return n>i&&(u=2*Math.PI-u),{radius:a,angle:hs(u),angleInRadian:u}},bs=function(t,e){var r=e.startAngle,n=e.endAngle,o=Math.floor(r/360),i=Math.floor(n/360);return t+360*Math.min(o,i)},gs=function(t,e){var r=t.x,n=t.y,o=ms({x:r,y:n},e),i=o.radius,a=o.angle,c=e.innerRadius,u=e.outerRadius;if(i<c||i>u)return!1;if(0===i)return!0;var l,s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:e-360*i,endAngle:r-360*i}}(e),f=s.startAngle,p=s.endAngle,h=a;if(f<=p){for(;h>p;)h-=360;for(;h<f;)h+=360;l=h>=f&&h<=p}else{for(;h>f;)h-=360;for(;h<p;)h+=360;l=h>=p&&h<=f}return l?us(us({},e),{},{radius:i,angle:bs(h,e)}):null},xs=function(t){return(0,e.isValidElement)(t)||d()(t)||"boolean"==typeof t?"":t.className};function Os(t){return Os="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Os(t)}var ws=["offset"];function js(t){return function(t){if(Array.isArray(t))return Ss(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 Ss(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 Ss(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 Ss(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 As(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 Ps(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 Es(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ps(Object(r),!0).forEach((function(e){ks(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ps(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ks(t,e,r){var n;return n=function(t,e){if("object"!=Os(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Os(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Os(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ts(){return Ts=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},Ts.apply(this,arguments)}var Ms=function(t){var e=t.value,r=t.formatter,n=s()(t.children)?e:t.children;return d()(r)?r(n):n},_s=function(t,e,n){var i,a,c=t.position,u=t.viewBox,l=t.offset,f=t.className,p=u,h=p.cx,d=p.cy,y=p.innerRadius,v=p.outerRadius,m=p.startAngle,b=p.endAngle,g=p.clockWise,x=(y+v)/2,O=function(t,e){return w(e-t)*Math.min(Math.abs(e-t),360)}(m,b),j=O>=0?1:-1;"insideStart"===c?(i=m+j*l,a=g):"insideEnd"===c?(i=b-j*l,a=!g):"end"===c&&(i=b+j*l,a=g),a=O<=0?a:!a;var S=ds(h,d,x,i),A=ds(h,d,x,i+359*(a?1:-1)),P="M".concat(S.x,",").concat(S.y,"\n A").concat(x,",").concat(x,",0,1,").concat(a?0:1,",\n ").concat(A.x,",").concat(A.y),k=s()(t.id)?E("recharts-radial-line-"):t.id;return r().createElement("text",Ts({},n,{dominantBaseline:"central",className:o("recharts-radial-bar-label",f)}),r().createElement("defs",null,r().createElement("path",{id:k,d:P})),r().createElement("textPath",{xlinkHref:"#".concat(k)},e))},Cs=function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e,i=o.cx,a=o.cy,c=o.innerRadius,u=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===n){var s=ds(i,a,u+r,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=ds(i,a,(c+u)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},Ds=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e,a=i.x,c=i.y,u=i.width,l=i.height,s=l>=0?1:-1,f=s*n,p=s>0?"end":"start",h=s>0?"start":"end",d=u>=0?1:-1,y=d*n,m=d>0?"end":"start",b=d>0?"start":"end";if("top"===o)return Es(Es({},{x:a+u/2,y:c-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(c-r.y,0),width:u}:{});if("bottom"===o)return Es(Es({},{x:a+u/2,y:c+l+f,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(r.y+r.height-(c+l),0),width:u}:{});if("left"===o){var g={x:a-y,y:c+l/2,textAnchor:m,verticalAnchor:"middle"};return Es(Es({},g),r?{width:Math.max(g.x-r.x,0),height:l}:{})}if("right"===o){var x={x:a+u+y,y:c+l/2,textAnchor:b,verticalAnchor:"middle"};return Es(Es({},x),r?{width:Math.max(r.x+r.width-x.x,0),height:l}:{})}var O=r?{width:u,height:l}:{};return"insideLeft"===o?Es({x:a+y,y:c+l/2,textAnchor:b,verticalAnchor:"middle"},O):"insideRight"===o?Es({x:a+u-y,y:c+l/2,textAnchor:m,verticalAnchor:"middle"},O):"insideTop"===o?Es({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:h},O):"insideBottom"===o?Es({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:p},O):"insideTopLeft"===o?Es({x:a+y,y:c+f,textAnchor:b,verticalAnchor:h},O):"insideTopRight"===o?Es({x:a+u-y,y:c+f,textAnchor:m,verticalAnchor:h},O):"insideBottomLeft"===o?Es({x:a+y,y:c+l-f,textAnchor:b,verticalAnchor:p},O):"insideBottomRight"===o?Es({x:a+u-y,y:c+l-f,textAnchor:m,verticalAnchor:p},O):v()(o)&&(S(o.x)||j(o.x))&&(S(o.y)||j(o.y))?Es({x:a+k(o.x,u),y:c+k(o.y,l),textAnchor:"end",verticalAnchor:"end"},O):Es({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},O)},Is=function(t){return"cx"in t&&S(t.cx)};function Ns(t){var n,i=t.offset,a=Es({offset:void 0===i?5:i},As(t,ws)),c=a.viewBox,u=a.position,l=a.value,f=a.children,p=a.content,h=a.className,y=void 0===h?"":h,v=a.textBreakAll;if(!c||s()(l)&&s()(f)&&!(0,e.isValidElement)(p)&&!d()(p))return null;if((0,e.isValidElement)(p))return(0,e.cloneElement)(p,a);if(d()(p)){if(n=(0,e.createElement)(p,a),(0,e.isValidElement)(n))return n}else n=Ms(a);var m=Is(c),b=rt(a,!0);if(m&&("insideStart"===u||"insideEnd"===u||"end"===u))return _s(a,n,b);var g=m?Cs(a):Ds(a);return r().createElement(dn,Ts({className:o("recharts-label",y)},b,g,{breakAll:v}),n)}Ns.displayName="Label";var Rs=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,h=t.left,d=t.width,y=t.height,v=t.clockWise,m=t.labelViewBox;if(m)return m;if(S(d)&&S(y)){if(S(s)&&S(f))return{x:s,y:f,width:d,height:y};if(S(p)&&S(h))return{x:p,y:h,width:d,height:y}}return S(s)&&S(f)?{x:s,y:f,width:0,height:0}:S(e)&&S(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};Ns.parseViewBox=Rs,Ns.renderCallByParent=function(t,n){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&o&&!t.label)return null;var i=t.children,a=Rs(t),c=G(i,Ns).map((function(t,r){return(0,e.cloneElement)(t,{viewBox:n||a,key:"label-".concat(r)})}));if(!o)return c;var u=function(t,n){return t?!0===t?r().createElement(Ns,{key:"label-implicit",viewBox:n}):A(t)?r().createElement(Ns,{key:"label-implicit",viewBox:n,value:t}):(0,e.isValidElement)(t)?t.type===Ns?(0,e.cloneElement)(t,{key:"label-implicit",viewBox:n}):r().createElement(Ns,{key:"label-implicit",content:t,viewBox:n}):d()(t)?r().createElement(Ns,{key:"label-implicit",content:t,viewBox:n}):v()(t)?r().createElement(Ns,Ts({viewBox:n},t,{key:"label-implicit"})):null:null}(t.label,n||a);return[u].concat(js(c))};var Bs=i(2008),Ls=i.n(Bs);function zs(t){return zs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zs(t)}var Fs=["valueAccessor"],Us=["data","dataKey","clockWise","id","textBreakAll"];function Ws(t){return function(t){if(Array.isArray(t))return $s(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 $s(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 $s(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 $s(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 Ks(){return Ks=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},Ks.apply(this,arguments)}function qs(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qs(Object(r),!0).forEach((function(e){Xs(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qs(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Xs(t,e,r){var n;return n=function(t,e){if("object"!=zs(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=zs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==zs(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hs(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Gs=function(t){return Array.isArray(t.value)?Ls()(t.value):t.value};function Ys(t){var e=t.valueAccessor,n=void 0===e?Gs:e,o=Hs(t,Fs),i=o.data,a=o.dataKey,c=o.clockWise,u=o.id,l=o.textBreakAll,f=Hs(o,Us);return i&&i.length?r().createElement(ht,{className:"recharts-label-list"},i.map((function(t,e){var o=s()(a)?n(t,e):Cl(t&&t.payload,a),i=s()(u)?{}:{id:"".concat(u,"-").concat(e)};return r().createElement(Ns,Ks({},rt(t,!0),f,i,{parentViewBox:t.parentViewBox,value:o,textBreakAll:l,viewBox:Ns.parseViewBox(s()(c)?t:Vs(Vs({},t),{},{clockWise:c})),key:"label-".concat(e),index:e}))}))):null}Ys.displayName="LabelList",Ys.renderCallByParent=function(t,n){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&o&&!t.label)return null;var i=G(t.children,Ys).map((function(t,r){return(0,e.cloneElement)(t,{data:n,key:"labelList-".concat(r)})}));return o?[function(t,e){return t?!0===t?r().createElement(Ys,{key:"labelList-implicit",data:e}):r().isValidElement(t)||d()(t)?r().createElement(Ys,{key:"labelList-implicit",data:e,content:t}):v()(t)?r().createElement(Ys,Ks({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,n)].concat(Ws(i)):i};var Zs=["component"];function Js(t){return Js="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},Js(t)}function Qs(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 tf(t){var n,o=t.component,i=Qs(t,Zs);return(0,e.isValidElement)(o)?n=(0,e.cloneElement)(o,i):d()(o)?n=(0,e.createElement)(o,i):dt(!1,"Customized's props `component` must be React.element or Function, but got %s.",Js(o)),r().createElement(ht,{className:"recharts-customized-wrapper"},n)}function ef(t){return ef="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},ef(t)}function rf(){return rf=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},rf.apply(this,arguments)}function nf(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 of(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nf(Object(r),!0).forEach((function(e){af(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function af(t,e,r){var n;return n=function(t,e){if("object"!=ef(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ef(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==ef(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}tf.displayName="Customized";var cf=function(t){var e=t.cx,r=t.cy,n=t.radius,o=t.angle,i=t.sign,a=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(a?1:-1)+n,s=Math.asin(c/l)/ps,f=u?o:o+i*s,p=u?o-i*s:o;return{center:ds(e,r,l,f),circleTangency:ds(e,r,n,f),lineTangency:ds(e,r,l*Math.cos(s*ps),p),theta:s}},uf=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return w(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),c=i+a,u=ds(e,r,o,i),l=ds(e,r,o,c),s="M ".concat(u.x,",").concat(u.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>c),",\n ").concat(l.x,",").concat(l.y,"\n ");if(n>0){var f=ds(e,r,n,i),p=ds(e,r,n,c);s+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},lf={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},sf=function(t){var e=of(of({},lf),t),n=e.cx,i=e.cy,a=e.innerRadius,c=e.outerRadius,u=e.cornerRadius,l=e.forceCornerRadius,s=e.cornerIsExternal,f=e.startAngle,p=e.endAngle,h=e.className;if(c<a||f===p)return null;var d,y=o("recharts-sector",h),v=c-a,m=k(u,v,0,!0);return d=m>0&&Math.abs(f-p)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,s=w(l-u),f=cf({cx:e,cy:r,radius:o,angle:u,sign:s,cornerRadius:i,cornerIsExternal:c}),p=f.circleTangency,h=f.lineTangency,d=f.theta,y=cf({cx:e,cy:r,radius:o,angle:l,sign:-s,cornerRadius:i,cornerIsExternal:c}),v=y.circleTangency,m=y.lineTangency,b=y.theta,g=c?Math.abs(u-l):Math.abs(u-l)-d-b;if(g<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):uf({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:u,endAngle:l});var x="M ".concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(g>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(n>0){var O=cf({cx:e,cy:r,radius:n,angle:u,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),j=O.circleTangency,S=O.lineTangency,A=O.theta,P=cf({cx:e,cy:r,radius:n,angle:l,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),E=P.circleTangency,k=P.lineTangency,T=P.theta,M=c?Math.abs(u-l):Math.abs(u-l)-A-T;if(M<0&&0===i)return"".concat(x,"L").concat(e,",").concat(r,"Z");x+="L".concat(k.x,",").concat(k.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(E.x,",").concat(E.y,"\n A").concat(n,",").concat(n,",0,").concat(+(M>180),",").concat(+(s>0),",").concat(j.x,",").concat(j.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else x+="L".concat(e,",").concat(r,"Z");return x}({cx:n,cy:i,innerRadius:a,outerRadius:c,cornerRadius:Math.min(m,v/2),forceCornerRadius:l,cornerIsExternal:s,startAngle:f,endAngle:p}):uf({cx:n,cy:i,innerRadius:a,outerRadius:c,startAngle:f,endAngle:p}),r().createElement("path",rf({},rt(e,!0),{className:y,d,role:"img"}))};function ff(){}function pf(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function hf(t){this._context=t}function df(t){this._context=t}function yf(t){this._context=t}hf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:pf(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:pf(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},df.prototype={areaStart:ff,areaEnd:ff,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:pf(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},yf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:pf(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class vf{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function mf(t){this._context=t}function bf(t){this._context=t}function gf(t){return new bf(t)}function xf(t){return t<0?-1:1}function Of(t,e,r){var n=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0),c=(i*o+a*n)/(n+o);return(xf(i)+xf(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(c))||0}function wf(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function jf(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,c=(i-n)/3;t._context.bezierCurveTo(n+c,o+c*e,i-c,a-c*r,i,a)}function Sf(t){this._context=t}function Af(t){this._context=new Pf(t)}function Pf(t){this._context=t}function Ef(t){this._context=t}function kf(t){var e,r,n=t.length-1,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=o[e]/i[e-1],i[e]-=r,a[e]-=r*a[e-1];for(o[n-1]=a[n-1]/i[n-1],e=n-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[n-1]=(t[n]+o[n-1])/2,e=0;e<n-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function Tf(t,e){this._context=t,this._t=e}function Mf(t){return t[0]}function _f(t){return t[1]}function Cf(t,e){var r=zt(!0),n=null,o=gf,i=null,a=Vt(c);function c(c){var u,l,s,f=(c=Au(c)).length,p=!1;for(null==n&&(i=o(s=a())),u=0;u<=f;++u)!(u<f&&r(l=c[u],u,c))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(l,u,c),+e(l,u,c));if(s)return i=null,s+""||null}return t="function"==typeof t?t:void 0===t?Mf:zt(t),e="function"==typeof e?e:void 0===e?_f:zt(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:zt(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:zt(+t),c):e},c.defined=function(t){return arguments.length?(r="function"==typeof t?t:zt(!!t),c):r},c.curve=function(t){return arguments.length?(o=t,null!=n&&(i=o(n)),c):o},c.context=function(t){return arguments.length?(null==t?n=i=null:i=o(n=t),c):n},c}function Df(t,e,r){var n=null,o=zt(!0),i=null,a=gf,c=null,u=Vt(l);function l(l){var s,f,p,h,d,y=(l=Au(l)).length,v=!1,m=new Array(y),b=new Array(y);for(null==i&&(c=a(d=u())),s=0;s<=y;++s){if(!(s<y&&o(h=l[s],s,l))===v)if(v=!v)f=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),p=s-1;p>=f;--p)c.point(m[p],b[p]);c.lineEnd(),c.areaEnd()}v&&(m[s]=+t(h,s,l),b[s]=+e(h,s,l),c.point(n?+n(h,s,l):m[s],r?+r(h,s,l):b[s]))}if(d)return c=null,d+""||null}function s(){return Cf().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?Mf:zt(+t),e="function"==typeof e?e:zt(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?_f:zt(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:zt(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:zt(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:zt(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:zt(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:zt(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:zt(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:zt(!!t),l):o},l.curve=function(t){return arguments.length?(a=t,null!=i&&(c=a(i)),l):a},l.context=function(t){return arguments.length?(null==t?i=c=null:c=a(i=t),l):i},l}function If(t){return If="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},If(t)}function Nf(){return Nf=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},Nf.apply(this,arguments)}function Rf(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 Bf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rf(Object(r),!0).forEach((function(e){Lf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Lf(t,e,r){var n;return n=function(t,e){if("object"!=If(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=If(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==If(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}mf.prototype={areaStart:ff,areaEnd:ff,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},bf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},Sf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:jf(this,this._t0,wf(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,jf(this,wf(this,r=Of(this,t,e)),r);break;default:jf(this,this._t0,r=Of(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Af.prototype=Object.create(Sf.prototype)).point=function(t,e){Sf.prototype.point.call(this,e,t)},Pf.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,o,i){this._context.bezierCurveTo(e,t,n,r,i,o)}},Ef.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=kf(t),o=kf(e),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Tf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var zf={curveBasisClosed:function(t){return new df(t)},curveBasisOpen:function(t){return new yf(t)},curveBasis:function(t){return new hf(t)},curveBumpX:function(t){return new vf(t,!0)},curveBumpY:function(t){return new vf(t,!1)},curveLinearClosed:function(t){return new mf(t)},curveLinear:gf,curveMonotoneX:function(t){return new Sf(t)},curveMonotoneY:function(t){return new Af(t)},curveNatural:function(t){return new Ef(t)},curveStep:function(t){return new Tf(t,.5)},curveStepAfter:function(t){return new Tf(t,1)},curveStepBefore:function(t){return new Tf(t,0)}},Ff=function(t){return t.x===+t.x&&t.y===+t.y},Uf=function(t){return t.x},Wf=function(t){return t.y},$f=function(t){var e,r=t.type,n=void 0===r?"linear":r,o=t.points,i=void 0===o?[]:o,a=t.baseLine,c=t.layout,u=t.connectNulls,l=void 0!==u&&u,s=function(t,e){if(d()(t))return t;var r="curve".concat(vt()(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?zf[r]||gf:zf["".concat(r).concat("vertical"===e?"Y":"X")]}(n,c),f=l?i.filter((function(t){return Ff(t)})):i;if(Array.isArray(a)){var p=l?a.filter((function(t){return Ff(t)})):a,h=f.map((function(t,e){return Bf(Bf({},t),{},{base:p[e]})}));return(e="vertical"===c?Df().y(Wf).x1(Uf).x0((function(t){return t.base.x})):Df().x(Uf).y1(Wf).y0((function(t){return t.base.y}))).defined(Ff).curve(s),e(h)}return(e="vertical"===c&&S(a)?Df().y(Wf).x1(Uf).x0(a):S(a)?Df().x(Uf).y1(Wf).y0(a):Cf().x(Uf).y(Wf)).defined(Ff).curve(s),e(f)},Kf=function(t){var e=t.className,n=t.points,i=t.path,a=t.pathRef;if(!(n&&n.length||i))return null;var c=n&&n.length?$f(t):i;return r().createElement("path",Nf({},rt(t,!1),L(t),{className:o("recharts-curve",e),d:c,ref:a}))},qf=i(9660),Vf=i.n(qf),Xf=Object.getOwnPropertyNames,Hf=Object.getOwnPropertySymbols,Gf=Object.prototype.hasOwnProperty;function Yf(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function Zf(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 Jf(t){return Xf(t).concat(Hf(t))}var Qf=Object.hasOwn||function(t,e){return Gf.call(t,e)};function tp(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var ep="_owner",rp=Object.getOwnPropertyDescriptor,np=Object.keys;function op(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 ip(t,e){return tp(t.getTime(),e.getTime())}function ap(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var u=e.entries(),l=!1,s=0;(o=u.next())&&!o.done;){var f=n.value,p=f[0],h=f[1],d=o.value,y=d[0],v=d[1];l||i[s]||!(l=r.equals(p,y,c,s,t,e,r)&&r.equals(h,v,p,y,t,e,r))||(i[s]=!0),s++}if(!l)return!1;c++}return!0}function cp(t,e,r){var n,o=np(t),i=o.length;if(np(e).length!==i)return!1;for(;i-- >0;){if((n=o[i])===ep&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!Qf(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function up(t,e,r){var n,o,i,a=Jf(t),c=a.length;if(Jf(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===ep&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!Qf(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(o=rp(t,n),i=rp(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function lp(t,e){return tp(t.valueOf(),e.valueOf())}function sp(t,e){return t.source===e.source&&t.flags===e.flags}function fp(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 pp(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 hp="[object Arguments]",dp="[object Boolean]",yp="[object Date]",vp="[object Map]",mp="[object Number]",bp="[object Object]",gp="[object RegExp]",xp="[object Set]",Op="[object String]",wp=Array.isArray,jp="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,Sp=Object.assign,Ap=Object.prototype.toString.call.bind(Object.prototype.toString);var Pp=Ep();Ep({strict:!0}),Ep({circular:!0}),Ep({circular:!0,strict:!0}),Ep({createInternalComparator:function(){return tp}}),Ep({strict:!0,createInternalComparator:function(){return tp}}),Ep({circular:!0,createInternalComparator:function(){return tp}}),Ep({circular:!0,createInternalComparator:function(){return tp},strict:!0});function Ep(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?up:op,areDatesEqual:ip,areMapsEqual:n?Yf(ap,up):ap,areObjectsEqual:n?up:cp,arePrimitiveWrappersEqual:lp,areRegExpsEqual:sp,areSetsEqual:n?Yf(fp,up):fp,areTypedArraysEqual:n?up:pp};if(r&&(o=Sp({},o,r(o))),e){var i=Zf(o.areArraysEqual),a=Zf(o.areMapsEqual),c=Zf(o.areObjectsEqual),u=Zf(o.areSetsEqual);o=Sp({},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(wp(t))return e(t,l,s);if(null!=jp&&jp(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=Ap(t);return p===yp?r(t,l,s):p===gp?a(t,l,s):p===vp?n(t,l,s):p===xp?c(t,l,s):p===bp?"function"!=typeof t.then&&"function"!=typeof l.then&&o(t,l,s):p===hp?o(t,l,s):(p===dp||p===mp||p===Op)&&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 kp(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 Tp(t){return Tp="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},Tp(t)}function Mp(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 _p(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 _p(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 _p(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 Cp(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var o=Mp(n),i=o[0],a=o.slice(1);return"number"==typeof i?void kp(r.bind(null,a),i):(r(i),void kp(r.bind(null,a)))}"object"===Tp(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 Dp(t){return Dp="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},Dp(t)}function Ip(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 Np(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ip(Object(r),!0).forEach((function(e){Rp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ip(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Rp(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Dp(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Dp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Dp(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Bp=function(t){return t},Lp=function(t,e){return Object.keys(e).reduce((function(r,n){return Np(Np({},r),{},Rp({},n,t(n,e[n])))}),{})},zp=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(",")};function Fp(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||Wp(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 Up(t){return function(t){if(Array.isArray(t))return $p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Wp(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 Wp(t,e){if(t){if("string"==typeof t)return $p(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)?$p(t,e):void 0}}function $p(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 Kp=1e-4,qp=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Vp=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},Xp=function(t,e){return function(r){var n=qp(t,e);return Vp(n,r)}},Hp=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=Fp(c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),4);n=u[0],o=u[1],i=u[2],a=u[3]}}[n,i,o,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1}));var l,s,f=Xp(n,i),p=Xp(o,a),h=(l=n,s=i,function(t){var e=qp(l,s),r=[].concat(Up(e.map((function(t,e){return t*e})).slice(1)),[0]);return Vp(r,t)}),d=function(t){return t>1?1:t<0?0:t},y=function(t){for(var e=t>1?1:t,r=e,n=0;n<8;++n){var o=f(r)-e,i=h(r);if(Math.abs(o-e)<Kp||i<Kp)return p(r);r=d(r-o/i)}return p(r)};return y.isStepper=!1,y},Gp=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 Hp(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)<Kp&&Math.abs(i)<Kp?[e,0]:[c,i]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return Hp(n)}return"function"==typeof n?n:null};function Yp(t){return Yp="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},Yp(t)}function Zp(t){return function(t){if(Array.isArray(t))return nh(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||rh(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 Jp(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 Qp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jp(Object(r),!0).forEach((function(e){th(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function th(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Yp(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Yp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Yp(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eh(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||rh(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 rh(t,e){if(t){if("string"==typeof t)return nh(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)?nh(t,e):void 0}}function nh(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 oh=function(t,e,r){return t+(e-t)*r},ih=function(t){return t.from!==t.to},ah=function t(e,r,n){var o=Lp((function(t,r){if(ih(r)){var n=eh(e(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return Qp(Qp({},r),{},{from:o,velocity:i})}return r}),r);return n<1?Lp((function(t,e){return ih(e)?Qp(Qp({},e),{},{velocity:oh(e.velocity,o[t].velocity,n),from:oh(e.from,o[t].from,n)}):e}),r):t(e,o,n-1)};const ch=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 Qp(Qp({},r),{},th({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return Qp(Qp({},r),{},th({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,h=function(){return null};return h=r.isStepper?function(n){c||(c=n);var i=(n-c)/r.dt;f=ah(r,f,i),o(Qp(Qp(Qp({},t),e),Lp((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(ih).length&&(p=requestAnimationFrame(h))}:function(i){u||(u=i);var a=(i-u)/n,c=Lp((function(t,e){return oh.apply(void 0,Zp(e).concat([r(a)]))}),s);if(o(Qp(Qp(Qp({},t),e),c)),a<1)p=requestAnimationFrame(h);else{var l=Lp((function(t,e){return oh.apply(void 0,Zp(e).concat([r(1)]))}),s);o(Qp(Qp(Qp({},t),e),l))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}};function uh(t){return uh="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},uh(t)}var lh=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function sh(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 fh(t){return function(t){if(Array.isArray(t))return ph(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 ph(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 ph(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 ph(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 hh(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 dh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hh(Object(r),!0).forEach((function(e){yh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function yh(t,e,r){return(e=mh(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vh(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,mh(n.key),n)}}function mh(t){var e=function(t,e){if("object"!==uh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==uh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===uh(e)?e:String(e)}function bh(t,e){return bh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},bh(t,e)}function gh(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=wh(t);if(e){var o=wh(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return xh(this,r)}}function xh(t,e){if(e&&("object"===uh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Oh(t)}function Oh(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wh(t){return wh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wh(t)}var jh=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&&bh(t,e)}(c,t);var n,o,i,a=gh(c);function c(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);var n=(r=a.call(this,t,e)).props,o=n.isActive,i=n.attributeName,u=n.from,l=n.to,s=n.steps,f=n.children,p=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(Oh(r)),r.changeStyle=r.changeStyle.bind(Oh(r)),!o||p<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:l}),xh(r);if(s&&s.length)r.state={style:s[0].style};else if(u){if("function"==typeof f)return r.state={style:u},xh(r);r.state={style:i?yh({},i,u):u}}else r.state={style:{}};return r}return n=c,(o=[{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(!(Pp(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?yh({},o,s):s};(o&&[o]!==s||!o&&u!==s)&&this.setState(f)}this.runAnimation(dh(dh({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?yh({},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=ch(r,n,Gp(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(fh(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(fh(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:i,easing:c}),i]);var h=zp(p,i,c),d=dh(dh(dh({},f.style),u),{},{transition:h});return[].concat(fh(t),[d,i,s]).filter(Bp)}),[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Cp());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?yh({},n,o):o,p=zp(Object.keys(f),r,i);s.start([a,e,dh(dh({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,n=t.children,o=(t.begin,t.duration),i=(t.attributeName,t.easing,t.isActive),a=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,sh(t,lh)),c=e.Children.count(n),u=this.state.style;if("function"==typeof n)return n(u);if(!i||0===c||o<=0)return n;var l=function(t){var r=t.props,n=r.style,o=void 0===n?{}:n,i=r.className;return(0,e.cloneElement)(t,dh(dh({},a),{},{style:dh(dh({},o),u),className:i}))};return 1===c?l(e.Children.only(n)):r().createElement("div",null,e.Children.map(n,(function(t){return l(t)})))}}])&&vh(n.prototype,o),i&&vh(n,i),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.PureComponent);jh.displayName="Animate",jh.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},jh.propTypes={from:Vf().oneOfType([Vf().object,Vf().string]),to:Vf().oneOfType([Vf().object,Vf().string]),attributeName:Vf().string,duration:Vf().number,begin:Vf().number,easing:Vf().oneOfType([Vf().string,Vf().func]),steps:Vf().arrayOf(Vf().shape({duration:Vf().number.isRequired,style:Vf().object.isRequired,easing:Vf().oneOfType([Vf().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Vf().func]),properties:Vf().arrayOf("string"),onAnimationEnd:Vf().func})),children:Vf().oneOfType([Vf().node,Vf().func]),isActive:Vf().bool,canBegin:Vf().bool,onAnimationEnd:Vf().func,shouldReAnimate:Vf().bool,onAnimationStart:Vf().func,onAnimationReStart:Vf().func};const Sh=jh;function Ah(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}function Ph(){return Ph=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},Ph.apply(this,arguments)}function Eh(t,e){return Eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Eh(t,e)}function kh(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Eh(t,e)}const Th=r().createContext(null);function Mh(t,r){var n=Object.create(null);return t&&e.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return r&&(0,e.isValidElement)(t)?r(t):t}(t)})),n}function _h(t,e,r){return null!=r[e]?r[e]:t.props[e]}function Ch(t,r,n){var o=Mh(t.children),i=function(t,e){function r(r){return r in e?e[r]:t[r]}t=t||{},e=e||{};var n,o=Object.create(null),i=[];for(var a in t)a in e?i.length&&(o[a]=i,i=[]):i.push(a);var c={};for(var u in e){if(o[u])for(n=0;n<o[u].length;n++){var l=o[u][n];c[o[u][n]]=r(l)}c[u]=r(u)}for(n=0;n<i.length;n++)c[i[n]]=r(i[n]);return c}(r,o);return Object.keys(i).forEach((function(a){var c=i[a];if((0,e.isValidElement)(c)){var u=a in r,l=a in o,s=r[a],f=(0,e.isValidElement)(s)&&!s.props.in;!l||u&&!f?l||!u||f?l&&u&&(0,e.isValidElement)(s)&&(i[a]=(0,e.cloneElement)(c,{onExited:n.bind(null,c),in:s.props.in,exit:_h(c,"exit",t),enter:_h(c,"enter",t)})):i[a]=(0,e.cloneElement)(c,{in:!1}):i[a]=(0,e.cloneElement)(c,{onExited:n.bind(null,c),in:!0,exit:_h(c,"exit",t),enter:_h(c,"enter",t)})}})),i}var Dh=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},Ih=function(t){function n(e,r){var n,o=(n=t.call(this,e,r)||this).handleExited.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}kh(n,t);var o=n.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,r){var n,o,i=r.children,a=r.handleExited;return{children:r.firstRender?(n=t,o=a,Mh(n.children,(function(t){return(0,e.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:_h(t,"appear",n),enter:_h(t,"enter",n),exit:_h(t,"exit",n)})}))):Ch(t,i,a),firstRender:!1}},o.handleExited=function(t,e){var r=Mh(this.props.children);t.key in r||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var r=Ph({},e.children);return delete r[t.key],{children:r}})))},o.render=function(){var t=this.props,e=t.component,n=t.childFactory,o=Ah(t,["component","childFactory"]),i=this.state.contextValue,a=Dh(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===e?r().createElement(Th.Provider,{value:i},a):r().createElement(Th.Provider,{value:i},r().createElement(e,o,a))},n}(r().Component);Ih.propTypes={},Ih.defaultProps={component:"div",childFactory:function(t){return t}};const Nh=Ih;var Rh=i(4020),Bh=i.n(Rh);const Lh=!1;var zh="unmounted",Fh="exited",Uh="entering",Wh="entered",$h="exiting",Kh=function(t){function e(e,r){var n;n=t.call(this,e,r)||this;var o,i=r&&!r.isMounting?e.enter:e.appear;return n.appearStatus=null,e.in?i?(o=Fh,n.appearStatus=Uh):o=Wh:o=e.unmountOnExit||e.mountOnEnter?zh:Fh,n.state={status:o},n.nextCallback=null,n}kh(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===zh?{status:Fh}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var r=this.state.status;this.props.in?r!==Uh&&r!==Wh&&(e=Uh):r!==Uh&&r!==Wh||(e=$h)}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,r,n=this.props.timeout;return t=e=r=n,null!=n&&"number"!=typeof n&&(t=n.exit,e=n.enter,r=void 0!==n.appear?n.appear:e),{exit:t,enter:e,appear:r}},n.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),e===Uh){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:Bh().findDOMNode(this);r&&function(t){t.scrollTop}(r)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fh&&this.setState({status:zh})},n.performEnter=function(t){var e=this,r=this.props.enter,n=this.context?this.context.isMounting:t,o=this.props.nodeRef?[n]:[Bh().findDOMNode(this),n],i=o[0],a=o[1],c=this.getTimeouts(),u=n?c.appear:c.enter;!t&&!r||Lh?this.safeSetState({status:Wh},(function(){e.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Uh},(function(){e.props.onEntering(i,a),e.onTransitionEnd(u,(function(){e.safeSetState({status:Wh},(function(){e.props.onEntered(i,a)}))}))})))},n.performExit=function(){var t=this,e=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:Bh().findDOMNode(this);e&&!Lh?(this.props.onExit(n),this.safeSetState({status:$h},(function(){t.props.onExiting(n),t.onTransitionEnd(r.exit,(function(){t.safeSetState({status:Fh},(function(){t.props.onExited(n)}))}))}))):this.safeSetState({status:Fh},(function(){t.props.onExited(n)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,e.nextCallback=null,t(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var r=this.props.nodeRef?this.props.nodeRef.current:Bh().findDOMNode(this),n=null==t&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if(t===zh)return null;var e=this.props,n=e.children,o=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,Ah(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r().createElement(Th.Provider,{value:null},"function"==typeof n?n(t,o):r().cloneElement(r().Children.only(n),o))},e}(r().Component);function qh(){}Kh.contextType=Th,Kh.propTypes={},Kh.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qh,onEntering:qh,onEntered:qh,onExit:qh,onExiting:qh,onExited:qh},Kh.UNMOUNTED=zh,Kh.EXITED=Fh,Kh.ENTERING=Uh,Kh.ENTERED=Wh,Kh.EXITING=$h;const Vh=Kh;var Xh=["children","appearOptions","enterOptions","leaveOptions"];function Hh(t){return Hh="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},Hh(t)}function Gh(){return Gh=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},Gh.apply(this,arguments)}function Yh(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 Zh(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 Jh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zh(Object(r),!0).forEach((function(e){od(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Qh(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,id(n.key),n)}}function td(t,e){return td=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},td(t,e)}function ed(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=nd(t);if(e){var o=nd(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Hh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return rd(t)}(this,r)}}function rd(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nd(t){return nd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nd(t)}function od(t,e,r){return(e=id(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function id(t){var e=function(t,e){if("object"!==Hh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Hh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Hh(e)?e:String(e)}var ad=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,r=t.duration;return e&&e.length?e.reduce((function(t,e){return t+(Number.isFinite(e.duration)&&e.duration>0?e.duration:0)}),0):Number.isFinite(r)?r:0},cd=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&&td(t,e)}(c,t);var n,o,i,a=ed(c);function c(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),od(rd(t=a.call(this)),"handleEnter",(function(e,r){var n=t.props,o=n.appearOptions,i=n.enterOptions;t.handleStyleActive(r?o:i)})),od(rd(t),"handleExit",(function(){var e=t.props.leaveOptions;t.handleStyleActive(e)})),t.state={isActive:!1},t}return n=c,(o=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(Jh(Jh({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,r=t.enterOptions,n=t.leaveOptions;return ad(e)+ad(r)+ad(n)}},{key:"render",value:function(){var t=this,n=this.props,o=n.children,i=(n.appearOptions,n.enterOptions,n.leaveOptions,Yh(n,Xh));return r().createElement(Vh,Gh({},i,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return r().createElement(Sh,t.state,e.Children.only(o))}))}}])&&Qh(n.prototype,o),i&&Qh(n,i),Object.defineProperty(n,"prototype",{writable:!1}),c}(e.Component);cd.propTypes={appearOptions:Vf().object,enterOptions:Vf().object,leaveOptions:Vf().object,children:Vf().element};const ud=cd;function ld(t){var n=t.component,o=t.children,i=t.appear,a=t.enter,c=t.leave;return r().createElement(Nh,{component:n},e.Children.map(o,(function(t,e){return r().createElement(ud,{appearOptions:i,enterOptions:a,leaveOptions:c,key:"child-".concat(e)},t)})))}ld.propTypes={appear:Vf().object,enter:Vf().object,leave:Vf().object,children:Vf().oneOfType([Vf().array,Vf().element]),component:Vf().any},ld.defaultProps={component:"span"};const sd=Sh;function fd(t){return fd="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},fd(t)}function pd(){return pd=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},pd.apply(this,arguments)}function hd(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return dd(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 dd(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 dd(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 yd(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 vd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yd(Object(r),!0).forEach((function(e){md(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function md(t,e,r){var n;return n=function(t,e){if("object"!=fd(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=fd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==fd(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var bd=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},gd=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},xd={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Od=function(t){var n=vd(vd({},xd),t),i=(0,e.useRef)(),a=hd((0,e.useState)(-1),2),c=a[0],u=a[1];(0,e.useEffect)((function(){if(i.current&&i.current.getTotalLength)try{var t=i.current.getTotalLength();t&&u(t)}catch(t){}}),[]);var l=n.x,s=n.y,f=n.width,p=n.height,h=n.radius,d=n.className,y=n.animationEasing,v=n.animationDuration,m=n.animationBegin,b=n.isAnimationActive,g=n.isUpdateAnimationActive;if(l!==+l||s!==+s||f!==+f||p!==+p||0===f||0===p)return null;var x=o("recharts-rectangle",d);return g?r().createElement(sd,{canBegin:c>0,from:{width:f,height:p,x:l,y:s},to:{width:f,height:p,x:l,y:s},duration:v,animationEasing:y,isActive:g},(function(t){var e=t.width,o=t.height,a=t.x,u=t.y;return r().createElement(sd,{canBegin:c>0,from:"0px ".concat(-1===c?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:v,isActive:b,easing:y},r().createElement("path",pd({},rt(n,!0),{className:x,d:bd(a,u,e,o,h),ref:i})))})):r().createElement("path",pd({},rt(n,!0),{className:x,d:bd(l,s,f,p,h)}))},wd=["points","className","baseLinePoints","connectNulls"];function jd(){return jd=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},jd.apply(this,arguments)}function Sd(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 Ad(t){return function(t){if(Array.isArray(t))return Pd(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 Pd(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 Pd(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 Pd(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 Ed=function(t){return t&&t.x===+t.x&&t.y===+t.y},kd=function(t,e){var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=[[]];return t.forEach((function(t){Ed(t)?e[e.length-1].push(t):e[e.length-1].length>0&&e.push([])})),Ed(t[0])&&e[e.length-1].push(t[0]),e[e.length-1].length<=0&&(e=e.slice(0,-1)),e}(t);e&&(r=[r.reduce((function(t,e){return[].concat(Ad(t),Ad(e))}),[])]);var n=r.map((function(t){return t.reduce((function(t,e,r){return"".concat(t).concat(0===r?"M":"L").concat(e.x,",").concat(e.y)}),"")})).join("");return 1===r.length?"".concat(n,"Z"):n},Td=function(t){var e=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,c=Sd(t,wd);if(!e||!e.length)return null;var u=o("recharts-polygon",n);if(i&&i.length){var l=c.stroke&&"none"!==c.stroke,s=function(t,e,r){var n=kd(t,r);return"".concat("Z"===n.slice(-1)?n.slice(0,-1):n,"L").concat(kd(e.reverse(),r).slice(1))}(e,i,a);return r().createElement("g",{className:u},r().createElement("path",jd({},rt(c,!0),{fill:"Z"===s.slice(-1)?c.fill:"none",stroke:"none",d:s})),l?r().createElement("path",jd({},rt(c,!0),{fill:"none",d:kd(e,a)})):null,l?r().createElement("path",jd({},rt(c,!0),{fill:"none",d:kd(i,a)})):null)}var f=kd(e,a);return r().createElement("path",jd({},rt(c,!0),{fill:"Z"===f.slice(-1)?c.fill:"none",className:u,d:f}))};function Md(){return Md=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},Md.apply(this,arguments)}var _d=function(t){var e=t.cx,n=t.cy,i=t.r,a=t.className,c=o("recharts-dot",a);return e===+e&&n===+n&&i===+i?r().createElement("circle",Md({},rt(t,!1),L(t),{className:c,cx:e,cy:n,r:i})):null};function Cd(t){return Cd="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},Cd(t)}var Dd=["x","y","top","left","width","height","className"];function Id(){return Id=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},Id.apply(this,arguments)}function Nd(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 Rd(t,e,r){var n;return n=function(t,e){if("object"!=Cd(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Cd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Cd(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bd(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Ld=function(t,e,r,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(e,"h").concat(r)},zd=function(t){var e=t.x,n=void 0===e?0:e,i=t.y,a=void 0===i?0:i,c=t.top,u=void 0===c?0:c,l=t.left,s=void 0===l?0:l,f=t.width,p=void 0===f?0:f,h=t.height,d=void 0===h?0:h,y=t.className,v=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Nd(Object(r),!0).forEach((function(e){Rd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:n,y:a,top:u,left:s,width:p,height:d},Bd(t,Dd));return S(n)&&S(a)&&S(p)&&S(d)&&S(u)&&S(s)?r().createElement("path",Id({},rt(v,!0),{className:o("recharts-cross",y),d:Ld(n,a,p,d,u,s)})):null},Fd=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function Ud(t){return Ud="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},Ud(t)}function Wd(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 $d(){return $d=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},$d.apply(this,arguments)}function Kd(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 qd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Kd(Object(r),!0).forEach((function(e){Vd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Vd(t,e,r){var n;return n=function(t,e){if("object"!=Ud(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ud(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Ud(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Xd=function(t,e,r,n){var o="";return n.forEach((function(n,i){var a=ds(e,r,t,n);o+=i?"L ".concat(a.x,",").concat(a.y):"M ".concat(a.x,",").concat(a.y)})),o+="Z"},Hd=function(t){var e=t.cx,n=t.cy,o=t.innerRadius,i=t.outerRadius,a=t.polarAngles,c=t.radialLines;if(!a||!a.length||!c)return null;var u=qd({stroke:"#ccc"},rt(t,!1));return r().createElement("g",{className:"recharts-polar-grid-angle"},a.map((function(t){var a=ds(e,n,o,t),c=ds(e,n,i,t);return r().createElement("line",$d({},u,{key:"line-".concat(t),x1:a.x,y1:a.y,x2:c.x,y2:c.y}))})))},Gd=function(t){var e=t.cx,n=t.cy,i=t.radius,a=t.index,c=qd(qd({stroke:"#ccc"},rt(t,!1)),{},{fill:"none"});return r().createElement("circle",$d({},c,{className:o("recharts-polar-grid-concentric-circle",t.className),key:"circle-".concat(a),cx:e,cy:n,r:i}))},Yd=function(t){var e=t.radius,n=t.index,i=qd(qd({stroke:"#ccc"},rt(t,!1)),{},{fill:"none"});return r().createElement("path",$d({},i,{className:o("recharts-polar-grid-concentric-polygon",t.className),key:"path-".concat(n),d:Xd(e,t.cx,t.cy,t.polarAngles)}))},Zd=function(t){var e=t.polarRadius,n=t.gridType;return e&&e.length?r().createElement("g",{className:"recharts-polar-grid-concentric"},e.map((function(e,o){var i=o;return"circle"===n?r().createElement(Gd,$d({key:i},t,{radius:e,index:o})):r().createElement(Yd,$d({key:i},t,{radius:e,index:o}))}))):null},Jd=function(t){var e=t.cx,n=void 0===e?0:e,o=t.cy,i=void 0===o?0:o,a=t.innerRadius,c=void 0===a?0:a,u=t.outerRadius,l=void 0===u?0:u,s=t.gridType,f=void 0===s?"polygon":s,p=t.radialLines,h=void 0===p||p,d=Wd(t,Fd);return l<=0?null:r().createElement("g",{className:"recharts-polar-grid"},r().createElement(Hd,$d({cx:n,cy:i,innerRadius:c,outerRadius:l,gridType:f,radialLines:h},d)),r().createElement(Zd,$d({cx:n,cy:i,innerRadius:c,outerRadius:l,gridType:f,radialLines:h},d)))};Jd.displayName="PolarGrid";var Qd=i(6564),ty=i.n(Qd),ey=i(908),ry=i.n(ey),ny=["cx","cy","angle","ticks","axisLine"],oy=["ticks","tick","angle","tickFormatter","stroke"];function iy(t){return iy="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},iy(t)}function ay(){return ay=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},ay.apply(this,arguments)}function cy(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 uy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cy(Object(r),!0).forEach((function(e){yy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ly(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 sy(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,vy(n.key),n)}}function fy(t,e,r){return e=hy(e),function(t,e){if(e&&("object"===iy(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,py()?Reflect.construct(e,r||[],hy(t).constructor):e.apply(t,r))}function py(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(py=function(){return!!t})()}function hy(t){return hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hy(t)}function dy(t,e){return dy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},dy(t,e)}function yy(t,e,r){return(e=vy(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vy(t){var e=function(t,e){if("object"!=iy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=iy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==iy(e)?e:String(e)}var my=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),fy(this,e,arguments)}var n,i,a;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&&dy(t,e)}(e,t),n=e,i=[{key:"getTickValueCoord",value:function(t){var e=t.coordinate,r=this.props,n=r.angle,o=r.cx,i=r.cy;return ds(o,i,e,n)}},{key:"getTickTextAnchor",value:function(){var t;switch(this.props.orientation){case"left":t="end";break;case"right":t="start";break;default:t="middle"}return t}},{key:"getViewBox",value:function(){var t=this.props,e=t.cx,r=t.cy,n=t.angle,o=t.ticks,i=ty()(o,(function(t){return t.coordinate||0}));return{cx:e,cy:r,startAngle:n,endAngle:n,innerRadius:ry()(o,(function(t){return t.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.cx,n=t.cy,o=t.angle,i=t.ticks,a=t.axisLine,c=ly(t,ny),u=i.reduce((function(t,e){return[Math.min(t[0],e.coordinate),Math.max(t[1],e.coordinate)]}),[1/0,-1/0]),l=ds(e,n,u[0],o),s=ds(e,n,u[1],o),f=uy(uy(uy({},rt(c,!1)),{},{fill:"none"},rt(a,!1)),{},{x1:l.x,y1:l.y,x2:s.x,y2:s.y});return r().createElement("line",ay({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var t=this,n=this.props,i=n.ticks,a=n.tick,c=n.angle,u=n.tickFormatter,l=n.stroke,s=ly(n,oy),f=this.getTickTextAnchor(),p=rt(s,!1),h=rt(a,!1),d=i.map((function(n,i){var s=t.getTickValueCoord(n),d=uy(uy(uy(uy({textAnchor:f,transform:"rotate(".concat(90-c,", ").concat(s.x,", ").concat(s.y,")")},p),{},{stroke:"none",fill:l},h),{},{index:i},s),{},{payload:n});return r().createElement(ht,ay({className:o("recharts-polar-radius-axis-tick",xs(a)),key:"tick-".concat(n.coordinate)},z(t.props,n,i)),e.renderTickItem(a,d,u?u(n.value,i):n.value))}));return r().createElement(ht,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var t=this.props,e=t.ticks,n=t.axisLine,i=t.tick;return e&&e.length?r().createElement(ht,{className:o("recharts-polar-radius-axis",this.props.className)},n&&this.renderAxisLine(),i&&this.renderTicks(),Ns.renderCallByParent(this.props,this.getViewBox())):null}}],a=[{key:"renderTickItem",value:function(t,e,n){return r().isValidElement(t)?r().cloneElement(t,e):d()(t)?t(e):r().createElement(dn,ay({},e,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],i&&sy(n.prototype,i),a&&sy(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(e.PureComponent);function by(t){return by="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},by(t)}function gy(){return gy=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},gy.apply(this,arguments)}function xy(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 Oy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xy(Object(r),!0).forEach((function(e){Ey(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wy(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,ky(n.key),n)}}function jy(t,e,r){return e=Ay(e),function(t,e){if(e&&("object"===by(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,Sy()?Reflect.construct(e,r||[],Ay(t).constructor):e.apply(t,r))}function Sy(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Sy=function(){return!!t})()}function Ay(t){return Ay=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ay(t)}function Py(t,e){return Py=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Py(t,e)}function Ey(t,e,r){return(e=ky(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ky(t){var e=function(t,e){if("object"!=by(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=by(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==by(e)?e:String(e)}yy(my,"displayName","PolarRadiusAxis"),yy(my,"axisType","radiusAxis"),yy(my,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var Ty=Math.PI/180,My=1e-5,_y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),jy(this,e,arguments)}var n,i,a;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&&Py(t,e)}(e,t),n=e,i=[{key:"getTickLineCoord",value:function(t){var e=this.props,r=e.cx,n=e.cy,o=e.radius,i=e.orientation,a=e.tickSize||8,c=ds(r,n,o,t.coordinate),u=ds(r,n,o+("inner"===i?-1:1)*a,t.coordinate);return{x1:c.x,y1:c.y,x2:u.x,y2:u.y}}},{key:"getTickTextAnchor",value:function(t){var e=this.props.orientation,r=Math.cos(-t.coordinate*Ty);return r>My?"outer"===e?"start":"end":r<-My?"outer"===e?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.cx,n=t.cy,o=t.radius,i=t.axisLine,a=t.axisLineType,c=Oy(Oy({},rt(this.props,!1)),{},{fill:"none"},rt(i,!1));if("circle"===a)return r().createElement(_d,gy({className:"recharts-polar-angle-axis-line"},c,{cx:e,cy:n,r:o}));var u=this.props.ticks.map((function(t){return ds(e,n,o,t.coordinate)}));return r().createElement(Td,gy({className:"recharts-polar-angle-axis-line"},c,{points:u}))}},{key:"renderTicks",value:function(){var t=this,n=this.props,i=n.ticks,a=n.tick,c=n.tickLine,u=n.tickFormatter,l=n.stroke,s=rt(this.props,!1),f=rt(a,!1),p=Oy(Oy({},s),{},{fill:"none"},rt(c,!1)),h=i.map((function(n,i){var h=t.getTickLineCoord(n),d=Oy(Oy(Oy({textAnchor:t.getTickTextAnchor(n)},s),{},{stroke:"none",fill:l},f),{},{index:i,payload:n,x:h.x2,y:h.y2});return r().createElement(ht,gy({className:o("recharts-polar-angle-axis-tick",xs(a)),key:"tick-".concat(n.coordinate)},z(t.props,n,i)),c&&r().createElement("line",gy({className:"recharts-polar-angle-axis-tick-line"},p,h)),a&&e.renderTickItem(a,d,u?u(n.value,i):n.value))}));return r().createElement(ht,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var t=this.props,e=t.ticks,n=t.radius,i=t.axisLine;return n<=0||!e||!e.length?null:r().createElement(ht,{className:o("recharts-polar-angle-axis",this.props.className)},i&&this.renderAxisLine(),this.renderTicks())}}],a=[{key:"renderTickItem",value:function(t,e,n){return r().isValidElement(t)?r().cloneElement(t,e):d()(t)?t(e):r().createElement(dn,gy({},e,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],i&&wy(n.prototype,i),a&&wy(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(e.PureComponent);Ey(_y,"displayName","PolarAngleAxis"),Ey(_y,"axisType","angleAxis"),Ey(_y,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Cy=i(308),Dy=i.n(Cy),Iy=i(7e3),Ny=i.n(Iy);function Ry(t){return Ry="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},Ry(t)}function By(){return By=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},By.apply(this,arguments)}function Ly(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return zy(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 zy(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 zy(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 Fy(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 Uy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fy(Object(r),!0).forEach((function(e){Wy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wy(t,e,r){var n;return n=function(t,e){if("object"!=Ry(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ry(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Ry(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var $y,Ky=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")},qy={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Vy=function(t){var n=Uy(Uy({},qy),t),i=(0,e.useRef)(),a=Ly((0,e.useState)(-1),2),c=a[0],u=a[1];(0,e.useEffect)((function(){if(i.current&&i.current.getTotalLength)try{var t=i.current.getTotalLength();t&&u(t)}catch(t){}}),[]);var l=n.x,s=n.y,f=n.upperWidth,p=n.lowerWidth,h=n.height,d=n.className,y=n.animationEasing,v=n.animationDuration,m=n.animationBegin,b=n.isUpdateAnimationActive;if(l!==+l||s!==+s||f!==+f||p!==+p||h!==+h||0===f&&0===p||0===h)return null;var g=o("recharts-trapezoid",d);return b?r().createElement(sd,{canBegin:c>0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:s},to:{upperWidth:f,lowerWidth:p,height:h,x:l,y:s},duration:v,animationEasing:y,isActive:b},(function(t){var e=t.upperWidth,o=t.lowerWidth,a=t.height,u=t.x,l=t.y;return r().createElement(sd,{canBegin:c>0,from:"0px ".concat(-1===c?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:v,easing:y},r().createElement("path",By({},rt(n,!0),{className:g,d:Ky(u,l,e,o,a),ref:i})))})):r().createElement("g",null,r().createElement("path",By({},rt(n,!0),{className:g,d:Ky(l,s,f,p,h)})))},Xy=["option","shapeType","propTransformer","activeClassName","isActive"];function Hy(t){return Hy="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},Hy(t)}function Gy(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 Yy(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 Zy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yy(Object(r),!0).forEach((function(e){Jy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jy(t,e,r){var n;return n=function(t,e){if("object"!=Hy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Hy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Hy(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qy(t,e){return Zy(Zy({},e),t)}function tv(t){var e=t.shapeType,n=t.elementProps;switch(e){case"rectangle":return r().createElement(Od,n);case"trapezoid":return r().createElement(Vy,n);case"sector":return r().createElement(sf,n);case"symbols":if(function(t,e){return"symbols"===t}(e))return r().createElement(re,n);break;default:return null}}function ev(t){return(0,e.isValidElement)(t)?t.props:t}function rv(t){var n,o=t.option,i=t.shapeType,a=t.propTransformer,c=void 0===a?Qy:a,u=t.activeClassName,l=void 0===u?"recharts-active-shape":u,s=t.isActive,f=Gy(t,Xy);if((0,e.isValidElement)(o))n=(0,e.cloneElement)(o,Zy(Zy({},f),ev(o)));else if(d()(o))n=o(f);else if(Dy()(o)&&!Ny()(o)){var p=c(o,f);n=r().createElement(tv,{shapeType:i,elementProps:p})}else{var h=f;n=r().createElement(tv,{shapeType:i,elementProps:h})}return s?r().createElement(ht,{className:l},n):n}function nv(t,e){return null!=e&&"trapezoids"in t.props}function ov(t,e){return null!=e&&"sectors"in t.props}function iv(t,e){return null!=e&&"points"in t.props}function av(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 cv(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function uv(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function lv(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,o=function(t,e){var r;return nv(t,e)?r="trapezoids":ov(t,e)?r="sectors":iv(t,e)&&(r="points"),r}(r,e),i=function(t,e){var r,n;return nv(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:ov(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:iv(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=Ru()(i,t),c=r.props[o].filter((function(t){var n=function(t,e){var r;return nv(t,e)?r=av:ov(t,e)?r=cv:iv(t,e)&&(r=uv),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 sv(t){return sv="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},sv(t)}function fv(){return fv=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},fv.apply(this,arguments)}function pv(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 hv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pv(Object(r),!0).forEach((function(e){xv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function dv(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,Ov(n.key),n)}}function yv(t,e,r){return e=mv(e),function(t,e){if(e&&("object"===sv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return bv(t)}(t,vv()?Reflect.construct(e,r||[],mv(t).constructor):e.apply(t,r))}function vv(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(vv=function(){return!!t})()}function mv(t){return mv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mv(t)}function bv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gv(t,e){return gv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gv(t,e)}function xv(t,e,r){return(e=Ov(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ov(t){var e=function(t,e){if("object"!=sv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=sv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==sv(e)?e:String(e)}var wv=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),xv(bv(r=yv(this,e,[t])),"pieRef",null),xv(bv(r),"sectorRefs",[]),xv(bv(r),"id",E("recharts-pie-")),xv(bv(r),"handleAnimationEnd",(function(){var t=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),d()(t)&&t()})),xv(bv(r),"handleAnimationStart",(function(){var t=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),d()(t)&&t()})),r.state={isAnimationFinished:!t.isAnimationActive,prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,sectorToFocus:0},r}var n,i,a;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&&gv(t,e)}(e,t),n=e,a=[{key:"getDerivedStateFromProps",value:function(t,e){return e.prevIsAnimationActive!==t.isAnimationActive?{prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:[],isAnimationFinished:!0}:t.isAnimationActive&&t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:e.curSectors,isAnimationFinished:!0}:t.sectors!==e.curSectors?{curSectors:t.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(t,e){return t>e?"start":t<e?"end":"middle"}},{key:"renderLabelLineItem",value:function(t,e){if(r().isValidElement(t))return r().cloneElement(t,e);if(d()(t))return t(e);var n=o("recharts-pie-label-line","boolean"!=typeof t?t.className:"");return r().createElement(Kf,fv({},e,{type:"linear",className:n}))}},{key:"renderLabelItem",value:function(t,e,n){if(r().isValidElement(t))return r().cloneElement(t,e);var i=n;if(d()(t)&&(i=t(e),r().isValidElement(i)))return i;var a=o("recharts-pie-label-text","boolean"==typeof t||d()(t)?"":t.className);return r().createElement(dn,fv({},e,{alignmentBaseline:"middle",className:a}),i)}}],(i=[{key:"isActiveIndex",value:function(t){var e=this.props.activeIndex;return Array.isArray(e)?-1!==e.indexOf(t):t===e}},{key:"hasActiveIndex",value:function(){var t=this.props.activeIndex;return Array.isArray(t)?0!==t.length:t||0===t}},{key:"renderLabels",value:function(t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.label,i=n.labelLine,a=n.dataKey,c=n.valueKey,u=rt(this.props,!1),l=rt(o,!1),f=rt(i,!1),p=o&&o.offsetRadius||20,h=t.map((function(t,n){var h=(t.startAngle+t.endAngle)/2,d=ds(t.cx,t.cy,t.outerRadius+p,h),y=hv(hv(hv(hv({},u),t),{},{stroke:"none"},l),{},{index:n,textAnchor:e.getTextAnchor(d.x,t.cx)},d),v=hv(hv(hv(hv({},u),t),{},{fill:"none",stroke:t.fill},f),{},{index:n,points:[ds(t.cx,t.cy,t.outerRadius,h),d],key:"line"}),m=a;return s()(a)&&s()(c)?m="value":s()(a)&&(m=c),r().createElement(ht,{key:"label-".concat(t.startAngle,"-").concat(t.endAngle,"-").concat(t.midAngle,"-").concat(n)},i&&e.renderLabelLineItem(i,v),e.renderLabelItem(o,y,Cl(t,m)))}));return r().createElement(ht,{className:"recharts-pie-labels"},h)}},{key:"renderSectorsStatically",value:function(t){var e=this,n=this.props,o=n.activeShape,i=n.blendStroke,a=n.inactiveShape;return t.map((function(n,c){if(0===(null==n?void 0:n.startAngle)&&0===(null==n?void 0:n.endAngle)&&1!==t.length)return null;var u=e.isActiveIndex(c),l=a&&e.hasActiveIndex()?a:null,s=u?o:l,f=hv(hv({},n),{},{stroke:i?n.fill:n.stroke,tabIndex:-1});return r().createElement(ht,fv({ref:function(t){t&&!e.sectorRefs.includes(t)&&e.sectorRefs.push(t)},tabIndex:-1,className:"recharts-pie-sector"},z(e.props,n,c),{key:"sector-".concat(null==n?void 0:n.startAngle,"-").concat(null==n?void 0:n.endAngle,"-").concat(n.midAngle,"-").concat(c)}),r().createElement(rv,fv({option:s,isActive:u,shapeType:"sector"},f)))}))}},{key:"renderSectorsWithAnimation",value:function(){var t=this,e=this.props,n=e.sectors,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,c=e.animationEasing,l=e.animationId,s=this.state,f=s.prevSectors,p=s.prevIsAnimationActive;return r().createElement(sd,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(l,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(e){var o=e.t,i=[],a=(n&&n[0]).startAngle;return n.forEach((function(t,e){var r=f&&f[e],n=e>0?u()(t,"paddingAngle",0):0;if(r){var c=M(r.endAngle-r.startAngle,t.endAngle-t.startAngle),l=hv(hv({},t),{},{startAngle:a+n,endAngle:a+c(o)+n});i.push(l),a=l.endAngle}else{var s=t.endAngle,p=t.startAngle,h=M(0,s-p)(o),d=hv(hv({},t),{},{startAngle:a+n,endAngle:a+h+n});i.push(d),a=d.endAngle}})),r().createElement(ht,null,t.renderSectorsStatically(i))}))}},{key:"attachKeyboardHandlers",value:function(t){var e=this;t.onkeydown=function(t){if(!t.altKey)switch(t.key){case"ArrowLeft":var r=++e.state.sectorToFocus%e.sectorRefs.length;e.sectorRefs[r].focus(),e.setState({sectorToFocus:r});break;case"ArrowRight":var n=--e.state.sectorToFocus<0?e.sectorRefs.length-1:e.state.sectorToFocus%e.sectorRefs.length;e.sectorRefs[n].focus(),e.setState({sectorToFocus:n});break;case"Escape":e.sectorRefs[e.state.sectorToFocus].blur(),e.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var t=this.props,e=t.sectors,r=t.isAnimationActive,n=this.state.prevSectors;return!(r&&e&&e.length)||n&&Ru()(n,e)?this.renderSectorsStatically(e):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var t=this,e=this.props,n=e.hide,i=e.sectors,a=e.className,c=e.label,u=e.cx,l=e.cy,s=e.innerRadius,f=e.outerRadius,p=e.isAnimationActive,h=this.state.isAnimationFinished;if(n||!i||!i.length||!S(u)||!S(l)||!S(s)||!S(f))return null;var d=o("recharts-pie",a);return r().createElement(ht,{tabIndex:this.props.rootTabIndex,className:d,ref:function(e){t.pieRef=e}},this.renderSectors(),c&&this.renderLabels(i),Ns.renderCallByParent(this.props,null,!1),(!p||h)&&Ys.renderCallByParent(this.props,i,!1))}}])&&dv(n.prototype,i),a&&dv(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(e.PureComponent);$y=wv,xv(wv,"displayName","Pie"),xv(wv,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!ur.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),xv(wv,"parseDeltaAngle",(function(t,e){return w(e-t)*Math.min(Math.abs(e-t),360)})),xv(wv,"getRealPieData",(function(t){var e=t.props,r=e.data,n=e.children,o=rt(t.props,!1),i=G(n,Mr);return r&&r.length?r.map((function(t,e){return hv(hv(hv({payload:t},o),t),i&&i[e]&&i[e].props)})):i&&i.length?i.map((function(t){return hv(hv({},o),t.props)})):[]})),xv(wv,"parseCoordinateOfPie",(function(t,e){var r=e.top,n=e.left,o=e.width,i=e.height,a=ys(o,i);return{cx:n+k(t.props.cx,o,o/2),cy:r+k(t.props.cy,i,i/2),innerRadius:k(t.props.innerRadius,a,0),outerRadius:k(t.props.outerRadius,a,.8*a),maxRadius:t.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),xv(wv,"getComposedData",(function(t){var e=t.item,r=t.offset,n=$y.getRealPieData(e);if(!n||!n.length)return null;var o=e.props,i=o.cornerRadius,a=o.startAngle,c=o.endAngle,u=o.paddingAngle,l=o.dataKey,f=o.nameKey,p=o.valueKey,h=o.tooltipType,d=Math.abs(e.props.minAngle),y=$y.parseCoordinateOfPie(e,r),v=$y.parseDeltaAngle(a,c),m=Math.abs(v),b=l;s()(l)&&s()(p)?(dt(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),b="value"):s()(l)&&(dt(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),b=p);var g,x,O=n.filter((function(t){return 0!==Cl(t,b,0)})).length,j=m-O*d-(m>=360?O:O-1)*u,A=n.reduce((function(t,e){var r=Cl(e,b,0);return t+(S(r)?r:0)}),0);A>0&&(g=n.map((function(t,e){var r,n=Cl(t,b,0),o=Cl(t,f,e),c=(S(n)?n:0)/A,l=(r=e?x.endAngle+w(v)*u*(0!==n?1:0):a)+w(v)*((0!==n?d:0)+c*j),s=(r+l)/2,p=(y.innerRadius+y.outerRadius)/2,m=[{name:o,value:n,payload:t,dataKey:b,type:h}],g=ds(y.cx,y.cy,p,s);return x=hv(hv(hv({percent:c,cornerRadius:i,name:o,tooltipPayload:m,midAngle:s,middleRadius:p,tooltipPosition:g},t),y),{},{value:Cl(t,b),startAngle:r,endAngle:l,payload:t,paddingAngle:w(v)*u})})));return hv(hv({},y),{},{sectors:g,data:n})}));var jv=i(9540),Sv=i.n(jv);function Av(t){return Av="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},Av(t)}function Pv(){return Pv=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},Pv.apply(this,arguments)}function Ev(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 kv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ev(Object(r),!0).forEach((function(e){Nv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ev(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Tv(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,Rv(n.key),n)}}function Mv(t,e,r){return e=Cv(e),function(t,e){if(e&&("object"===Av(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Dv(t)}(t,_v()?Reflect.construct(e,r||[],Cv(t).constructor):e.apply(t,r))}function _v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_v=function(){return!!t})()}function Cv(t){return Cv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Cv(t)}function Dv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Iv(t,e){return Iv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Iv(t,e)}function Nv(t,e,r){return(e=Rv(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rv(t){var e=function(t,e){if("object"!=Av(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Av(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Av(e)?e:String(e)}var Bv=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 Nv(Dv(t=Mv(this,e,[].concat(n))),"state",{isAnimationFinished:!1}),Nv(Dv(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),d()(e)&&e()})),Nv(Dv(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),d()(e)&&e()})),Nv(Dv(t),"handleMouseEnter",(function(e){var r=t.props.onMouseEnter;r&&r(t.props,e)})),Nv(Dv(t),"handleMouseLeave",(function(e){var r=t.props.onMouseLeave;r&&r(t.props,e)})),t}var n,i,a;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&&Iv(t,e)}(e,t),n=e,a=[{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:"renderDotItem",value:function(t,e){return r().isValidElement(t)?r().cloneElement(t,e):d()(t)?t(e):r().createElement(_d,Pv({},e,{className:o("recharts-radar-dot","boolean"!=typeof t?t.className:"")}))}}],(i=[{key:"renderDots",value:function(t){var n=this.props,o=n.dot,i=n.dataKey,a=rt(this.props,!1),c=rt(o,!0),u=t.map((function(t,r){var n=kv(kv(kv({key:"dot-".concat(r),r:3},a),c),{},{dataKey:i,cx:t.x,cy:t.y,index:r,payload:t});return e.renderDotItem(o,n)}));return r().createElement(ht,{className:"recharts-radar-dots"},u)}},{key:"renderPolygonStatically",value:function(t){var e,n=this.props,o=n.shape,i=n.dot,a=n.isRange,c=n.baseLinePoints,u=n.connectNulls;return e=r().isValidElement(o)?r().cloneElement(o,kv(kv({},this.props),{},{points:t})):d()(o)?o(kv(kv({},this.props),{},{points:t})):r().createElement(Td,Pv({},rt(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:t,baseLinePoints:a?c:null,connectNulls:u})),r().createElement(ht,{className:"recharts-radar-polygon"},e,i?this.renderDots(t):null)}},{key:"renderPolygonWithAnimation",value:function(){var t=this,e=this.props,n=e.points,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevPoints;return r().createElement(sd,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"radar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var r=e.t,o=l&&l.length/n.length,i=n.map((function(t,e){var n=l&&l[Math.floor(e*o)];if(n){var i=M(n.x,t.x),a=M(n.y,t.y);return kv(kv({},t),{},{x:i(r),y:a(r)})}var c=M(t.cx,t.x),u=M(t.cy,t.y);return kv(kv({},t),{},{x:c(r),y:u(r)})}));return t.renderPolygonStatically(i)}))}},{key:"renderPolygon",value:function(){var t=this.props,e=t.points,r=t.isAnimationActive,n=t.isRange,o=this.state.prevPoints;return!(r&&e&&e.length)||n||o&&Ru()(o,e)?this.renderPolygonStatically(e):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.className,i=t.points,a=t.isAnimationActive;if(e||!i||!i.length)return null;var c=this.state.isAnimationFinished,u=o("recharts-radar",n);return r().createElement(ht,{className:u},this.renderPolygon(),(!a||c)&&Ys.renderCallByParent(this.props,i))}}])&&Tv(n.prototype,i),a&&Tv(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(e.PureComponent);function Lv(t){return Lv="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},Lv(t)}function zv(){return zv=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},zv.apply(this,arguments)}function Fv(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 Uv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fv(Object(r),!0).forEach((function(e){Wv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wv(t,e,r){var n;return n=function(t,e){if("object"!=Lv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Lv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Lv(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $v(t){return"string"==typeof t?parseInt(t,10):t}function Kv(t,e){var r="".concat(e.cx||t.cx),n=Number(r),o="".concat(e.cy||t.cy),i=Number(o);return Uv(Uv(Uv({},e),t),{},{cx:n,cy:i})}function qv(t){return r().createElement(rv,zv({shapeType:"sector",propTransformer:Kv},t))}Nv(Bv,"displayName","Radar"),Nv(Bv,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!ur.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),Nv(Bv,"getComposedData",(function(t){var e=t.radiusAxis,r=t.angleAxis,n=t.displayedData,o=t.dataKey,i=t.bandSize,a=r.cx,c=r.cy,u=!1,l=[],f="number"!==r.type&&null!=i?i:0;n.forEach((function(t,n){var i=Cl(t,r.dataKey,n),p=Cl(t,o),h=r.scale(i)+f,d=Array.isArray(p)?Ls()(p):p,y=s()(d)?void 0:e.scale(d);Array.isArray(p)&&p.length>=2&&(u=!0),l.push(kv(kv({},ds(a,c,y,h)),{},{name:i,value:p,cx:a,cy:c,radius:y,angle:h,payload:t}))}));var p=[];return u&&l.forEach((function(t){if(Array.isArray(t.value)){var r=Sv()(t.value),n=s()(r)?void 0:e.scale(r);p.push(kv(kv({},t),{},{radius:n},ds(a,c,n,t.angle)))}else p.push(t)})),{points:l,isRange:u,baseLinePoints:p}}));var Vv=["shape","activeShape","activeIndex","cornerRadius"],Xv=["value","background"];function Hv(t){return Hv="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},Hv(t)}function Gv(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 Yv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Gv(Object(r),!0).forEach((function(e){om(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zv(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 Jv(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,im(n.key),n)}}function Qv(t,e,r){return e=em(e),function(t,e){if(e&&("object"===Hv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return rm(t)}(t,tm()?Reflect.construct(e,r||[],em(t).constructor):e.apply(t,r))}function tm(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(tm=function(){return!!t})()}function em(t){return em=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},em(t)}function rm(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nm(t,e){return nm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},nm(t,e)}function om(t,e,r){return(e=im(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function im(t){var e=function(t,e){if("object"!=Hv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Hv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Hv(e)?e:String(e)}var am=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 om(rm(t=Qv(this,e,[].concat(n))),"state",{isAnimationFinished:!1}),om(rm(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),d()(e)&&e()})),om(rm(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),d()(e)&&e()})),t}var n,i,a;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&&nm(t,e)}(e,t),n=e,a=[{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}}],(i=[{key:"getDeltaAngle",value:function(){var t=this.props,e=t.startAngle,r=t.endAngle;return w(r-e)*Math.min(Math.abs(r-e),360)}},{key:"renderSectorsStatically",value:function(t){var e=this,n=this.props,o=n.shape,i=n.activeShape,a=n.activeIndex,c=n.cornerRadius,u=Zv(n,Vv),l=rt(u,!1);return t.map((function(t,n){var s=n===a,f=Yv(Yv(Yv(Yv({},l),{},{cornerRadius:$v(c)},t),z(e.props,t,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector ".concat(t.className),forceCornerRadius:u.forceCornerRadius,cornerIsExternal:u.cornerIsExternal,isActive:s,option:s?i:o});return r().createElement(qv,f)}))}},{key:"renderSectorsWithAnimation",value:function(){var t=this,e=this.props,n=e.data,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevData;return r().createElement(sd,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"radialBar-".concat(u),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(e){var o=e.t,i=n.map((function(t,e){var r=l&&l[e];if(r){var n=M(r.startAngle,t.startAngle),i=M(r.endAngle,t.endAngle);return Yv(Yv({},t),{},{startAngle:n(o),endAngle:i(o)})}var a=t.endAngle,c=t.startAngle,u=M(c,a);return Yv(Yv({},t),{},{endAngle:u(o)})}));return r().createElement(ht,null,t.renderSectorsStatically(i))}))}},{key:"renderSectors",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&Ru()(n,e)?this.renderSectorsStatically(e):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(t){var e=this,n=this.props.cornerRadius,i=rt(this.props.background,!1);return t.map((function(t,a){t.value;var c=t.background,u=Zv(t,Xv);if(!c)return null;var l=Yv(Yv(Yv(Yv(Yv({cornerRadius:$v(n)},u),{},{fill:"#eee"},c),i),z(e.props,t,a)),{},{index:a,key:"sector-".concat(a),className:o("recharts-radial-bar-background-sector",null==i?void 0:i.className),option:c,isActive:!1});return r().createElement(qv,l)}))}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,i=t.className,a=t.background,c=t.isAnimationActive;if(e||!n||!n.length)return null;var u=this.state.isAnimationFinished,l=o("recharts-area",i);return r().createElement(ht,{className:l},a&&r().createElement(ht,{className:"recharts-radial-bar-background"},this.renderBackground(n)),r().createElement(ht,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!c||u)&&Ys.renderCallByParent(Yv({},this.props),n))}}])&&Jv(n.prototype,i),a&&Jv(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(e.PureComponent);om(am,"displayName","RadialBar"),om(am,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!ur.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1}),om(am,"getComposedData",(function(t){var e=t.item,r=t.props,n=t.radiusAxis,o=t.radiusAxisTicks,i=t.angleAxis,a=t.angleAxisTicks,c=t.displayedData,u=t.dataKey,l=t.stackedData,s=t.barPosition,f=t.bandSize,p=t.dataStartIndex,h=ql(s,e);if(!h)return null;var d=i.cx,y=i.cy,v=r.layout,m=e.props,b=m.children,g=m.minPointSize,x="radial"===v?i:n,O=l?x.scale.domain():null,j=Jl({numericAxis:x}),S=G(b,Mr),A=c.map((function(t,c){var s,m,b,x,A,P;if(l?s=Vl(l[p+c],O):(s=Cl(t,u),Array.isArray(s)||(s=[j,s])),"radial"===v){m=Zl({axis:n,ticks:o,bandSize:f,offset:h.offset,entry:t,index:c}),A=i.scale(s[1]),x=i.scale(s[0]),b=m+h.size;var E=A-x;if(Math.abs(g)>0&&Math.abs(E)<Math.abs(g))A+=w(E||g)*(Math.abs(g)-Math.abs(E));P={background:{cx:d,cy:y,innerRadius:m,outerRadius:b,startAngle:r.startAngle,endAngle:r.endAngle}}}else{m=n.scale(s[0]),b=n.scale(s[1]),A=(x=Zl({axis:i,ticks:a,bandSize:f,offset:h.offset,entry:t,index:c}))+h.size;var k=b-m;if(Math.abs(g)>0&&Math.abs(k)<Math.abs(g))b+=w(k||g)*(Math.abs(g)-Math.abs(k))}return Yv(Yv(Yv(Yv({},t),P),{},{payload:t,value:l?s:s[1],cx:d,cy:y,innerRadius:m,outerRadius:b,startAngle:x,endAngle:A},S&&S[c]&&S[c].props),{},{tooltipPayload:[is(e,t)],tooltipPosition:ds(d,y,(m+b)/2,(x+A)/2)})}));return{data:A,layout:v}}));var cm=i(9136),um=i.n(cm);function lm(t){return lm="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},lm(t)}function sm(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 fm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sm(Object(r),!0).forEach((function(e){pm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function pm(t,e,r){var n;return n=function(t,e){if("object"!=lm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==lm(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var hm=["Webkit","Moz","O","ms"];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 ym(){return ym=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},ym.apply(this,arguments)}function vm(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 mm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vm(Object(r),!0).forEach((function(e){Sm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function bm(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,Am(n.key),n)}}function gm(t,e,r){return e=Om(e),function(t,e){if(e&&("object"===dm(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return wm(t)}(t,xm()?Reflect.construct(e,r||[],Om(t).constructor):e.apply(t,r))}function xm(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(xm=function(){return!!t})()}function Om(t){return Om=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Om(t)}function wm(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jm(t,e){return jm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jm(t,e)}function Sm(t,e,r){return(e=Am(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Am(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:String(e)}var Pm=function(t){return t.changedTouches&&!!t.changedTouches.length},Em=function(t){function n(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),Sm(wm(e=gm(this,n,[t])),"handleDrag",(function(t){e.leaveTimer&&(clearTimeout(e.leaveTimer),e.leaveTimer=null),e.state.isTravellerMoving?e.handleTravellerMove(t):e.state.isSlideMoving&&e.handleSlideDrag(t)})),Sm(wm(e),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])})),Sm(wm(e),"handleDragEnd",(function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=e.props,r=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:r,startIndex:o})})),e.detachDragEndListener()})),Sm(wm(e),"handleLeaveWrapper",(function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))})),Sm(wm(e),"handleEnterSlideOrTraveller",(function(){e.setState({isTextActive:!0})})),Sm(wm(e),"handleLeaveSlideOrTraveller",(function(){e.setState({isTextActive:!1})})),Sm(wm(e),"handleSlideDragStart",(function(t){var r=Pm(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),e.attachDragEndListener()})),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(wm(e),"startX"),endX:e.handleTravellerDragStart.bind(wm(e),"endX")},e.state={},e}var i,a,c;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&&jm(t,e)}(n,t),i=n,a=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,r=t.endX,o=this.state.scaleValues,i=this.props,a=i.gap,c=i.data.length-1,u=Math.min(e,r),l=Math.max(e,r),s=n.getIndexInRange(o,u),f=n.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=Cl(r[t],o,t);return d()(n)?n(i,t):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,o=e.endX,i=this.props,a=i.x,c=i.width,u=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-u-o,a+c-u-n):p<0&&(p=Math.max(p,a-n,a-o));var h=this.getIndex({startX:n+p,endX:o+p});h.startIndex===l&&h.endIndex===s||!f||f(h),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=Pm(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,h=c.data,d={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)),d[n]=a+y;var v=this.getIndex(d),m=v.startIndex,b=v.endIndex;this.setState(Sm(Sm({},n,a+y),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=h.length-1,("startX"===n&&(o>i?m%p==0:b%p==0)||o<i&&b===t||"endX"===n&&(o>i?b%p==0:m%p==0)||o>i&&b===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(Sm({},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,n=t.y,o=t.width,i=t.height,a=t.fill,c=t.stroke;return r().createElement("rect",{stroke:c,fill:a,x:e,y:n,width:o,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,n=t.x,o=t.y,i=t.width,a=t.height,c=t.data,u=t.children,l=t.padding,s=e.Children.only(u);return s?r().cloneElement(s,{x:n,y:o,width:i,height:a,margin:l,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(t,e){var o,i,a=this,c=this.props,u=c.y,l=c.travellerWidth,s=c.height,f=c.traveller,p=c.ariaLabel,h=c.data,d=c.startIndex,y=c.endIndex,v=Math.max(t,this.props.x),m=mm(mm({},rt(this.props,!1)),{},{x:v,y:u,width:l,height:s}),b=p||"Min value: ".concat(null===(o=h[d])||void 0===o?void 0:o.name,", Max value: ").concat(null===(i=h[y])||void 0===i?void 0:i.name);return r().createElement(ht,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(f,m))}},{key:"renderSlide",value:function(t,e){var n=this.props,o=n.y,i=n.height,a=n.stroke,c=n.travellerWidth,u=Math.min(t,e)+c,l=Math.max(Math.abs(e-t)-c,0);return r().createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:u,y:o,width:l,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,n=t.endIndex,o=t.y,i=t.height,a=t.travellerWidth,c=t.stroke,u=this.state,l=u.startX,s=u.endX,f={pointerEvents:"none",fill:c};return r().createElement(ht,{className:"recharts-brush-texts"},r().createElement(dn,ym({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,s)-5,y:o+i/2},f),this.getTextOfTick(e)),r().createElement(dn,ym({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,s)+a+5,y:o+i/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.className,i=t.children,a=t.x,c=t.y,u=t.width,l=t.height,s=t.alwaysShowText,f=this.state,p=f.startX,h=f.endX,d=f.isTextActive,y=f.isSlideMoving,v=f.isTravellerMoving,m=f.isTravellerFocused;if(!e||!e.length||!S(a)||!S(c)||!S(u)||!S(l)||u<=0||l<=0)return null;var b=o("recharts-brush",n),g=1===r().Children.count(i),x=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),n=hm.reduce((function(t,n){return fm(fm({},t),{},pm({},n+r,e))}),{});return n[t]=e,n}("userSelect","none");return r().createElement(ht,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(p,h),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(h,"endX"),(d||y||v||m||s)&&this.renderText())}}],c=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,n=t.y,o=t.width,i=t.height,a=t.stroke,c=Math.floor(n+i/2)-1;return r().createElement(r().Fragment,null,r().createElement("rect",{x:e,y:n,width:o,height:i,fill:a,stroke:"none"}),r().createElement("line",{x1:e+1,y1:c,x2:e+o-1,y2:c,fill:"none",stroke:"#fff"}),r().createElement("line",{x1:e+1,y1:c+2,x2:e+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return r().isValidElement(t)?r().cloneElement(t,e):d()(t)?t(e):n.renderDefaultTraveller(e)}},{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 mm({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=Pn().domain(um()(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}}],a&&bm(i.prototype,a),c&&bm(i,c),Object.defineProperty(i,"prototype",{writable:!1}),n}(e.PureComponent);Sm(Em,"displayName","Brush"),Sm(Em,"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 km=i(9500),Tm=i.n(km),Mm=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},_m=i(6452),Cm=i.n(_m),Dm=i(164),Im=i.n(Dm),Nm=["x","y"];function Rm(t){return Rm="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},Rm(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 Lm(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 zm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Lm(Object(r),!0).forEach((function(e){Fm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Fm(t,e,r){var n;return n=function(t,e){if("object"!=Rm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Rm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Rm(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Um(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 Wm(t,e){var r=t.x,n=t.y,o=Um(t,Nm),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 zm(zm(zm(zm(zm({},e),o),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function $m(t){return r().createElement(rv,Bm({shapeType:"rectangle",propTransformer:Wm,activeClassName:"recharts-active-bar"},t))}var Km,qm=["value","background"];function Vm(t){return Vm="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},Vm(t)}function Xm(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 Hm(){return Hm=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},Hm.apply(this,arguments)}function Gm(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?Gm(Object(r),!0).forEach((function(e){nb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zm(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,ob(n.key),n)}}function Jm(t,e,r){return e=tb(e),function(t,e){if(e&&("object"===Vm(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return eb(t)}(t,Qm()?Reflect.construct(e,r||[],tb(t).constructor):e.apply(t,r))}function Qm(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Qm=function(){return!!t})()}function tb(t){return tb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tb(t)}function eb(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rb(t,e){return rb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rb(t,e)}function nb(t,e,r){return(e=ob(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ob(t){var e=function(t,e){if("object"!=Vm(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Vm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Vm(e)?e:String(e)}var ib=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 nb(eb(t=Jm(this,e,[].concat(n))),"state",{isAnimationFinished:!1}),nb(eb(t),"id",E("recharts-bar-")),nb(eb(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),nb(eb(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}var n,i,a;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&&rb(t,e)}(e,t),n=e,i=[{key:"renderRectanglesStatically",value:function(t){var e=this,n=this.props,o=n.shape,i=n.dataKey,a=n.activeIndex,c=n.activeBar,u=rt(this.props,!1);return t&&t.map((function(t,n){var l=n===a,s=l?c:o,f=Ym(Ym(Ym({},u),t),{},{isActive:l,option:s,index:n,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return r().createElement(ht,Hm({className:"recharts-bar-rectangle"},z(e.props,t,n),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value)}),r().createElement($m,f))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,n=e.data,o=e.layout,i=e.isAnimationActive,a=e.animationBegin,c=e.animationDuration,u=e.animationEasing,l=e.animationId,s=this.state.prevData;return r().createElement(sd,{begin:a,duration:c,isActive:i,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,a=n.map((function(t,e){var r=s&&s[e];if(r){var n=M(r.x,t.x),a=M(r.y,t.y),c=M(r.width,t.width),u=M(r.height,t.height);return Ym(Ym({},t),{},{x:n(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===o){var l=M(0,t.height)(i);return Ym(Ym({},t),{},{y:t.y+t.height-l,height:l})}var f=M(0,t.width)(i);return Ym(Ym({},t),{},{width:f})}));return r().createElement(ht,null,t.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&Ru()(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,n=e.data,o=e.dataKey,i=e.activeIndex,a=rt(this.props.background,!1);return n.map((function(e,n){e.value;var c=e.background,u=Xm(e,qm);if(!c)return null;var l=Ym(Ym(Ym(Ym(Ym({},u),{},{fill:"#eee"},c),a),z(t.props,e,n)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:o,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return r().createElement($m,Hm({option:t.props.background,isActive:n===i},l))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.data,i=n.xAxis,a=n.yAxis,c=n.layout,u=G(n.children,xl);if(!u)return null;var l="vertical"===c?o[0].height/2:o[0].width/2,s=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:Cl(t,e)}},f={clipPath:t?"url(#clipPath-".concat(e,")"):null};return r().createElement(ht,f,u.map((function(t){return r().cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:o,xAxis:i,yAxis:a,layout:c,offset:l,dataPointFormatter:s})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,i=t.className,a=t.xAxis,c=t.yAxis,u=t.left,l=t.top,f=t.width,p=t.height,h=t.isAnimationActive,d=t.background,y=t.id;if(e||!n||!n.length)return null;var v=this.state.isAnimationFinished,m=o("recharts-bar",i),b=a&&a.allowDataOverflow,g=c&&c.allowDataOverflow,x=b||g,O=s()(y)?this.id:y;return r().createElement(ht,{className:m},b||g?r().createElement("defs",null,r().createElement("clipPath",{id:"clipPath-".concat(O)},r().createElement("rect",{x:b?u:u-f/2,y:g?l:l-p/2,width:b?f:2*f,height:g?p:2*p}))):null,r().createElement(ht,{className:"recharts-bar-rectangles",clipPath:x?"url(#clipPath-".concat(O,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(x,O),(!h||v)&&Ys.renderCallByParent(this.props,n))}}],a=[{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}}],i&&Zm(n.prototype,i),a&&Zm(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(e.PureComponent);function ab(t){return ab="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},ab(t)}function cb(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,fb(n.key),n)}}function ub(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 lb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ub(Object(r),!0).forEach((function(e){sb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ub(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sb(t,e,r){return(e=fb(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fb(t){var e=function(t,e){if("object"!=ab(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ab(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ab(e)?e:String(e)}Km=ib,nb(ib,"displayName","Bar"),nb(ib,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ur.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),nb(ib,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,c=t.xAxisTicks,u=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,h=ql(n,r);if(!h)return null;var d=e.layout,y=r.props,v=y.dataKey,m=y.children,b=y.minPointSize,g="horizontal"===d?a:i,x=l?g.scale.domain():null,O=Jl({numericAxis:g}),j=G(m,Mr),S=f.map((function(t,e){var n,f,p,y,m,g;l?n=Vl(l[s+e],x):(n=Cl(t,v),Array.isArray(n)||(n=[O,n]));var S=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||dl(!1),e)}}(b,Km.defaultProps.minPointSize)(n[1],e);if("horizontal"===d){var A,P=[a.scale(n[0]),a.scale(n[1])],E=P[0],k=P[1];f=Zl({axis:i,ticks:c,bandSize:o,offset:h.offset,entry:t,index:e}),p=null!==(A=null!=k?k:E)&&void 0!==A?A:void 0,y=h.size;var T=E-k;if(m=Number.isNaN(T)?0:T,g={x:f,y:a.y,width:y,height:a.height},Math.abs(S)>0&&Math.abs(m)<Math.abs(S)){var M=w(m||S)*(Math.abs(S)-Math.abs(m));p-=M,m+=M}}else{var _=[i.scale(n[0]),i.scale(n[1])],C=_[0],D=_[1];if(f=C,p=Zl({axis:a,ticks:u,bandSize:o,offset:h.offset,entry:t,index:e}),y=D-C,m=h.size,g={x:i.x,y:p,width:i.width,height:m},Math.abs(S)>0&&Math.abs(y)<Math.abs(S))y+=w(y||S)*(Math.abs(S)-Math.abs(y))}return Ym(Ym(Ym({},t),{},{x:f,y:p,width:y,height:m,value:l?n:n[1],payload:t,background:g},j&&j[e]&&j[e].props),{},{tooltipPayload:[is(r,t)],tooltipPosition:{x:f+y/2,y:p+m/2}})}));return Ym({data:S,layout:d},p)}));var pb=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=!!Y(u,ib);return l.reduce((function(i,a){var u,l,p,h,d,y=e[a],v=y.orientation,m=y.domain,b=y.padding,g=void 0===b?{}:b,x=y.mirror,O=y.reversed,w="".concat(v).concat(x?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var j=m[1]-m[0],S=1/0,A=y.categoricalDomain.sort();if(A.forEach((function(t,e){e>0&&(S=Math.min((t||0)-(A[e-1]||0),S))})),Number.isFinite(S)){var P=S/j,E="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(u=P*E/2),"no-gap"===y.padding){var T=k(t.barCategoryGap,P*E),M=P*E/2;u=M-T-(M-T)/E*T}}}l="xAxis"===n?[r.left+(g.left||0)+(u||0),r.left+r.width-(g.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(g.bottom||0),r.top+(g.top||0)]:[r.top+(g.top||0)+(u||0),r.top+r.height-(g.bottom||0)-(u||0)]:y.range,O&&(l=[l[1],l[0]]);var _=Wl(y,o,f),C=_.scale,D=_.realScaleType;C.domain(m).range(l),Kl(C);var I=Gl(C,lb(lb({},y),{},{realScaleType:D}));"xAxis"===n?(d="top"===v&&!x||"bottom"===v&&x,p=r.left,h=s[w]-d*y.height):"yAxis"===n&&(d="left"===v&&!x||"right"===v&&x,p=s[w]-d*y.width,h=r.top);var N=lb(lb(lb({},y),I),{},{realScaleType:D,x:p,y:h,scale:C,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return N.bandSize=ns(N,I),y.hide||"xAxis"!==n?y.hide||(s[w]+=(d?-1:1)*N.width):s[w]+=(d?-1:1)*N.height,lb(lb({},i),{},sb({},a,N))}),{})},hb=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)}},db=function(t){var e=t.x1,r=t.y1,n=t.x2,o=t.y2;return hb({x:e,y:r},{x:n,y:o})},yb=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}var e,r,n;return e=t,r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&cb(e.prototype,r),n&&cb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();sb(yb,"EPS",1e-4);var vb=function(t){var e=Object.keys(t).reduce((function(e,r){return lb(lb({},e),{},sb({},r,yb.create(t[r])))}),{});return lb(lb({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return Cm()(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:o})}))},isInRange:function(t){return Im()(t,(function(t,r){return e[r].isInRange(t)}))}})};var mb=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)},bb=i(7120),gb=i.n(bb),xb=i(1576),Ob=i.n(xb)()((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("")}));var wb=(0,e.createContext)(void 0),jb=(0,e.createContext)(void 0),Sb=(0,e.createContext)(void 0),Ab=(0,e.createContext)({}),Pb=(0,e.createContext)(void 0),Eb=(0,e.createContext)(0),kb=(0,e.createContext)(0),Tb=function(t){var e=t.state,n=e.xAxisMap,o=e.yAxisMap,i=e.offset,a=t.clipPathId,c=t.children,u=t.width,l=t.height,s=Ob(i);return r().createElement(wb.Provider,{value:n},r().createElement(jb.Provider,{value:o},r().createElement(Ab.Provider,{value:i},r().createElement(Sb.Provider,{value:s},r().createElement(Pb.Provider,{value:a},r().createElement(Eb.Provider,{value:l},r().createElement(kb.Provider,{value:u},c)))))))},Mb=function(){return(0,e.useContext)(Pb)};var _b=function(t){var r=(0,e.useContext)(wb);null==r&&dl(!1);var n=r[t];return null==n&&dl(!1),n},Cb=function(){var t=(0,e.useContext)(wb);return T(t)},Db=function(){var t=(0,e.useContext)(jb);return gb()(t,(function(t){return Im()(t.domain,Number.isFinite)}))||T(t)},Ib=function(t){var r=(0,e.useContext)(jb);null==r&&dl(!1);var n=r[t];return null==n&&dl(!1),n},Nb=function(){return(0,e.useContext)(Sb)},Rb=function(){return(0,e.useContext)(Ab)},Bb=function(){return(0,e.useContext)(kb)},Lb=function(){return(0,e.useContext)(Eb)};function zb(t){return zb="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},zb(t)}function Fb(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 Ub(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fb(Object(r),!0).forEach((function(e){Wb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wb(t,e,r){var n;return n=function(t,e){if("object"!=zb(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=zb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==zb(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Kb(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 Kb(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 Kb(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 qb(){return qb=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},qb.apply(this,arguments)}var Vb=function(t,e){return r().isValidElement(t)?r().cloneElement(t,e):d()(t)?t(e):r().createElement("line",qb({},e,{className:"recharts-reference-line-line"}))},Xb=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 h=u.y,d=t.y.apply(h,{position:i});if(Mm(u,"discard")&&!t.y.isInRange(d))return null;var y=[{x:l+f,y:d},{x:l,y:d}];return"left"===c?y.reverse():y}if(e){var v=u.x,m=t.x.apply(v,{position:i});if(Mm(u,"discard")&&!t.x.isInRange(m))return null;var b=[{x:m,y:s+p},{x:m,y:s}];return"top"===a?b.reverse():b}if(n){var g=u.segment.map((function(e){return t.apply(e,{position:i})}));return Mm(u,"discard")&&Tm()(g,(function(e){return!t.isInRange(e)}))?null:g}return null};function Hb(t){var e=t.x,n=t.y,i=t.segment,a=t.xAxisId,c=t.yAxisId,u=t.shape,l=t.className,s=t.alwaysShow,f=Mb(),p=_b(a),h=Ib(c),d=Nb();if(!f||!d)return null;dt(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var y=vb({x:p.scale,y:h.scale}),v=A(e),m=A(n),b=i&&2===i.length,g=Xb(y,v,m,b,d,t.position,p.orientation,h.orientation,t);if(!g)return null;var x=$b(g,2),O=x[0],w=O.x,j=O.y,S=x[1],P=S.x,E=S.y,k=Ub(Ub({clipPath:Mm(t,"hidden")?"url(#".concat(f,")"):void 0},rt(t,!0)),{},{x1:w,y1:j,x2:P,y2:E});return r().createElement(ht,{className:o("recharts-reference-line",l)},Vb(u,k),Ns.renderCallByParent(t,db({x1:w,y1:j,x2:P,y2:E})))}function Gb(t){return Gb="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},Gb(t)}function Yb(){return Yb=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},Yb.apply(this,arguments)}function Zb(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 Jb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zb(Object(r),!0).forEach((function(e){Qb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Qb(t,e,r){var n;return n=function(t,e){if("object"!=Gb(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Gb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Gb(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Hb.displayName="ReferenceLine",Hb.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};var tg=function(t){var e=t.x,r=t.y,n=t.xAxis,o=t.yAxis,i=vb({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return Mm(t,"discard")&&!i.isInRange(a)?null:a};function eg(t){var e=t.x,n=t.y,i=t.r,a=t.alwaysShow,c=t.clipPathId,u=A(e),l=A(n);if(dt(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!l)return null;var s=tg(t);if(!s)return null;var f=s.x,p=s.y,h=t.shape,d=t.className,y=Jb(Jb({clipPath:Mm(t,"hidden")?"url(#".concat(c,")"):void 0},rt(t,!0)),{},{cx:f,cy:p});return r().createElement(ht,{className:o("recharts-reference-dot",d)},eg.renderDot(h,y),Ns.renderCallByParent(t,{x:f-i,y:p-i,width:2*i,height:2*i}))}function rg(t){return rg="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},rg(t)}function ng(){return ng=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},ng.apply(this,arguments)}function og(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 ig(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?og(Object(r),!0).forEach((function(e){ag(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):og(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ag(t,e,r){var n;return n=function(t,e){if("object"!=rg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=rg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==rg(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}eg.displayName="ReferenceDot",eg.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},eg.renderDot=function(t,e){return r().isValidElement(t)?r().cloneElement(t,e):d()(t)?t(e):r().createElement(_d,Yb({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};var cg=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=vb({x:l.scale,y:s.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!Mm(o,"discard")||f.isInRange(p)&&f.isInRange(h)?hb(p,h):null};function ug(t){var e=t.x1,n=t.x2,i=t.y1,a=t.y2,c=t.className,u=t.alwaysShow,l=t.clipPathId;dt(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var s=A(e),f=A(n),p=A(i),h=A(a),d=t.shape;if(!(s||f||p||h||d))return null;var y=cg(s,f,p,h,t);if(!y&&!d)return null;var v=Mm(t,"hidden")?"url(#".concat(l,")"):void 0;return r().createElement(ht,{className:o("recharts-reference-area",c)},ug.renderRect(d,ig(ig({clipPath:v},rt(t,!0)),y)),Ns.renderCallByParent(t,y))}function lg(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],o=0;o<t.length;o+=e){if(void 0!==r&&!0!==r(t[o]))return;n.push(t[o])}return n}function sg(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 fg(t){return fg="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},fg(t)}function pg(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 hg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pg(Object(r),!0).forEach((function(e){dg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function dg(t,e,r){var n;return n=function(t,e){if("object"!=fg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=fg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==fg(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yg(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(S(u)||ur.isSsr)return function(t,e){return lg(t,e+1)}(o,"number"==typeof u&&S(u)?u:0);var p=[],h="top"===c||"bottom"===c?"width":"height",y=s&&"width"===h?Lr(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},v=function(t,n){var o=d()(l)?l(t.value,n):t.value;return"width"===h?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return mb(n,r)}(Lr(o,{fontSize:e,letterSpacing:r}),y,f):Lr(o,{fontSize:e,letterSpacing:r})[h]},m=o.length>=2?w(o[1].coordinate-o[0].coordinate):1,b=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,m,h);return"equidistantPreserveStart"===u?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,p=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:lg(n,s)};var i,a=l,p=function(){return void 0===i&&(i=r(e,a)),i},h=e.coordinate,d=0===l||sg(t,h,p,f,u);d||(l=0,f=c,s+=1),d&&(f=h+t*(p()/2+o),l+=s)};s<=a.length;)if(i=p())return i.v;return[]}(m,b,v,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=hg(hg({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),sg(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+o),a[c-1]=hg(hg({},s),{},{isShow:!0}))}for(var h=i?c-1:c,d=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=hg(hg({},i),{},{tickCoord:s<0?i.coordinate-s*t:i.coordinate})}else a[e]=i=hg(hg({},i),{},{tickCoord:i.coordinate});sg(t,i.tickCoord,c,u,l)&&(u=i.tickCoord+t*(c()/2+o),a[e]=hg(hg({},i),{},{isShow:!0}))},y=0;y<h;y++)d(y);return a}(m,b,v,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=hg(hg({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else i[e]=l=hg(hg({},l),{},{tickCoord:l.coordinate});sg(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+o),i[e]=hg(hg({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return i}(m,b,v,o,a),p.filter((function(t){return t.isShow})))}ug.displayName="ReferenceArea",ug.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},ug.renderRect=function(t,e){return r().isValidElement(t)?r().cloneElement(t,e):d()(t)?t(e):r().createElement(Od,ng({},e,{className:"recharts-reference-area-rect"}))};var vg=["viewBox"],mg=["viewBox"],bg=["ticks"];function gg(t){return gg="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},gg(t)}function xg(){return xg=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},xg.apply(this,arguments)}function Og(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 wg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Og(Object(r),!0).forEach((function(e){Tg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Og(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jg(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 Sg(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,Mg(n.key),n)}}function Ag(t,e,r){return e=Eg(e),function(t,e){if(e&&("object"===gg(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,Pg()?Reflect.construct(e,r||[],Eg(t).constructor):e.apply(t,r))}function Pg(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Pg=function(){return!!t})()}function Eg(t){return Eg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Eg(t)}function kg(t,e){return kg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},kg(t,e)}function Tg(t,e,r){return(e=Mg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mg(t){var e=function(t,e){if("object"!=gg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=gg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gg(e)?e:String(e)}var _g=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=Ag(this,e,[t])).state={fontSize:"",letterSpacing:""},r}var n,i,a;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&&kg(t,e)}(e,t),n=e,i=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=jg(t,vg),o=this.props,i=o.viewBox,a=jg(o,mg);return!C(r,i)||!C(n,a)||!C(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,o,i,a,c=this.props,u=c.x,l=c.y,s=c.width,f=c.height,p=c.orientation,h=c.tickSize,d=c.mirror,y=c.tickMargin,v=d?-1:1,m=t.tickSize||h,b=S(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(o=l+ +!d*f)-v*m)-v*y,i=b;break;case"left":n=o=t.coordinate,i=(e=(r=u+ +!d*s)-v*m)-v*y,a=b;break;case"right":n=o=t.coordinate,i=(e=(r=u+ +d*s)+v*m)+v*y,a=b;break;default:e=r=t.coordinate,a=(n=(o=l+ +d*f)+v*m)+v*y,i=b}return{line:{x1:e,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,n=t.y,i=t.width,a=t.height,c=t.orientation,l=t.mirror,s=t.axisLine,f=wg(wg(wg({},rt(this.props,!1)),rt(s,!1)),{},{fill:"none"});if("top"===c||"bottom"===c){var p=+("top"===c&&!l||"bottom"===c&&l);f=wg(wg({},f),{},{x1:e,y1:n+p*a,x2:e+i,y2:n+p*a})}else{var h=+("left"===c&&!l||"right"===c&&l);f=wg(wg({},f),{},{x1:e+h*i,y1:n,x2:e+h*i,y2:n+a})}return r().createElement("line",xg({},f,{className:o("recharts-cartesian-axis-line",u()(s,"className"))}))}},{key:"renderTicks",value:function(t,n,i){var a=this,c=this.props,l=c.tickLine,s=c.stroke,f=c.tick,p=c.tickFormatter,h=c.unit,y=yg(wg(wg({},this.props),{},{ticks:t}),n,i),v=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),b=rt(this.props,!1),g=rt(f,!1),x=wg(wg({},b),{},{fill:"none"},rt(l,!1)),O=y.map((function(t,n){var i=a.getTickLineCoord(t),c=i.line,O=i.tick,w=wg(wg(wg(wg({textAnchor:v,verticalAnchor:m},b),{},{stroke:"none",fill:s},g),O),{},{index:n,payload:t,visibleTicksCount:y.length,tickFormatter:p});return r().createElement(ht,xg({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},z(a.props,t,n)),l&&r().createElement("line",xg({},x,c,{className:o("recharts-cartesian-axis-tick-line",u()(l,"className"))})),f&&e.renderTickItem(f,w,"".concat(d()(p)?p(t.value,n):t.value).concat(h||"")))}));return r().createElement("g",{className:"recharts-cartesian-axis-ticks"},O)}},{key:"render",value:function(){var t=this,e=this.props,n=e.axisLine,i=e.width,a=e.height,c=e.ticksGenerator,u=e.className;if(e.hide)return null;var l=this.props,s=l.ticks,f=jg(l,bg),p=s;return d()(c)&&(p=s&&s.length>0?c(this.props):c(f)),i<=0||a<=0||!p||!p.length?null:r().createElement(ht,{className:o("recharts-cartesian-axis",u),ref:function(e){t.layerReference=e}},n&&this.renderAxisLine(),this.renderTicks(p,this.state.fontSize,this.state.letterSpacing),Ns.renderCallByParent(this.props))}}],a=[{key:"renderTickItem",value:function(t,e,n){return r().isValidElement(t)?r().cloneElement(t,e):d()(t)?t(e):r().createElement(dn,xg({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],i&&Sg(n.prototype,i),a&&Sg(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(e.Component);Tg(_g,"displayName","CartesianAxis"),Tg(_g,"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 Cg=["x1","y1","x2","y2","key"],Dg=["offset"];function Ig(t){return Ig="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},Ig(t)}function Ng(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 Rg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ng(Object(r),!0).forEach((function(e){Bg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ng(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Bg(t,e,r){var n;return n=function(t,e){if("object"!=Ig(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ig(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==Ig(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lg(){return Lg=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},Lg.apply(this,arguments)}function zg(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Fg=function(t){var e=t.fill;if(!e||"none"===e)return null;var n=t.fillOpacity,o=t.x,i=t.y,a=t.width,c=t.height;return r().createElement("rect",{x:o,y:i,width:a,height:c,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Ug(t,e){var n;if(r().isValidElement(t))n=r().cloneElement(t,e);else if(d()(t))n=t(e);else{var o=e.x1,i=e.y1,a=e.x2,c=e.y2,u=e.key,l=zg(e,Cg),s=rt(l,!1),f=(s.offset,zg(s,Dg));n=r().createElement("line",Lg({},f,{x1:o,y1:i,x2:a,y2:c,fill:"none",key:u}))}return n}function Wg(t){var e=t.x,n=t.width,o=t.horizontal,i=void 0===o||o,a=t.horizontalPoints;if(!i||!a||!a.length)return null;var c=a.map((function(r,o){var a=Rg(Rg({},t),{},{x1:e,y1:r,x2:e+n,y2:r,key:"line-".concat(o),index:o});return Ug(i,a)}));return r().createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function $g(t){var e=t.y,n=t.height,o=t.vertical,i=void 0===o||o,a=t.verticalPoints;if(!i||!a||!a.length)return null;var c=a.map((function(r,o){var a=Rg(Rg({},t),{},{x1:r,y1:e,x2:r,y2:e+n,key:"line-".concat(o),index:o});return Ug(i,a)}));return r().createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function Kg(t){var e=t.horizontalFill,n=t.fillOpacity,o=t.x,i=t.y,a=t.width,c=t.height,u=t.horizontalPoints,l=t.horizontal;if(!(void 0===l||l)||!e||!e.length)return null;var s=u.map((function(t){return Math.round(t+i-i)})).sort((function(t,e){return t-e}));i!==s[0]&&s.unshift(0);var f=s.map((function(t,u){var l=!s[u+1]?i+c-t:s[u+1]-t;if(l<=0)return null;var f=u%e.length;return r().createElement("rect",{key:"react-".concat(u),y:t,x:o,height:l,width:a,stroke:"none",fill:e[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return r().createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function qg(t){var e=t.vertical,n=void 0===e||e,o=t.verticalFill,i=t.fillOpacity,a=t.x,c=t.y,u=t.width,l=t.height,s=t.verticalPoints;if(!n||!o||!o.length)return null;var f=s.map((function(t){return Math.round(t+a-a)})).sort((function(t,e){return t-e}));a!==f[0]&&f.unshift(0);var p=f.map((function(t,e){var n=!f[e+1]?a+u-t:f[e+1]-t;if(n<=0)return null;var s=e%o.length;return r().createElement("rect",{key:"react-".concat(e),x:t,y:c,width:n,height:l,stroke:"none",fill:o[s],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return r().createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var Vg=function(t,e){var r=t.xAxis,n=t.width,o=t.height,i=t.offset;return Ll(yg(Rg(Rg(Rg({},_g.defaultProps),r),{},{ticks:zl(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,e)},Xg=function(t,e){var r=t.yAxis,n=t.width,o=t.height,i=t.offset;return Ll(yg(Rg(Rg(Rg({},_g.defaultProps),r),{},{ticks:zl(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,e)},Hg={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Gg(t){var e,n,o,i,a,c,u=Bb(),l=Lb(),s=Rb(),f=Rg(Rg({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:Hg.stroke,fill:null!==(n=t.fill)&&void 0!==n?n:Hg.fill,horizontal:null!==(o=t.horizontal)&&void 0!==o?o:Hg.horizontal,horizontalFill:null!==(i=t.horizontalFill)&&void 0!==i?i:Hg.horizontalFill,vertical:null!==(a=t.vertical)&&void 0!==a?a:Hg.vertical,verticalFill:null!==(c=t.verticalFill)&&void 0!==c?c:Hg.verticalFill,x:S(t.x)?t.x:s.left,y:S(t.y)?t.y:s.top,width:S(t.width)?t.width:s.width,height:S(t.height)?t.height:s.height}),p=f.x,h=f.y,y=f.width,v=f.height,m=f.syncWithTicks,b=f.horizontalValues,g=f.verticalValues,x=Cb(),O=Db();if(!S(y)||y<=0||!S(v)||v<=0||!S(p)||p!==+p||!S(h)||h!==+h)return null;var w=f.verticalCoordinatesGenerator||Vg,j=f.horizontalCoordinatesGenerator||Xg,A=f.horizontalPoints,P=f.verticalPoints;if((!A||!A.length)&&d()(j)){var E=b&&b.length,k=j({yAxis:O?Rg(Rg({},O),{},{ticks:E?b:O.ticks}):void 0,width:u,height:l,offset:s},!!E||m);dt(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Ig(k),"]")),Array.isArray(k)&&(A=k)}if((!P||!P.length)&&d()(w)){var T=g&&g.length,M=w({xAxis:x?Rg(Rg({},x),{},{ticks:T?g:x.ticks}):void 0,width:u,height:l,offset:s},!!T||m);dt(Array.isArray(M),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Ig(M),"]")),Array.isArray(M)&&(P=M)}return r().createElement("g",{className:"recharts-cartesian-grid"},r().createElement(Fg,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height}),r().createElement(Wg,Lg({},f,{offset:s,horizontalPoints:A,xAxis:x,yAxis:O})),r().createElement($g,Lg({},f,{offset:s,verticalPoints:P,xAxis:x,yAxis:O})),r().createElement(Kg,Lg({},f,{horizontalPoints:A})),r().createElement(qg,Lg({},f,{verticalPoints:P})))}Gg.displayName="CartesianGrid";var Yg=["type","layout","connectNulls","ref"];function Zg(t){return Zg="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},Zg(t)}function Jg(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 Qg(){return Qg=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},Qg.apply(this,arguments)}function tx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ex(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tx(Object(r),!0).forEach((function(e){sx(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tx(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function rx(t){return function(t){if(Array.isArray(t))return nx(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 nx(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 nx(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 nx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ox(t,e){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,fx(n.key),n)}}function ix(t,e,r){return e=cx(e),function(t,e){if(e&&("object"===Zg(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ux(t)}(t,ax()?Reflect.construct(e,r||[],cx(t).constructor):e.apply(t,r))}function ax(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ax=function(){return!!t})()}function cx(t){return cx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cx(t)}function ux(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lx(t,e){return lx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},lx(t,e)}function sx(t,e,r){return(e=fx(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fx(t){var e=function(t,e){if("object"!=Zg(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Zg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Zg(e)?e:String(e)}var px=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 sx(ux(t=ix(this,e,[].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),sx(ux(t),"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),sx(ux(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(rx(o.slice(0,s)),[c-f]);break}var p=l.length%2==0?[0,u]:[u];return[].concat(rx(e.repeat(o,a)),rx(l),p).map((function(t){return"".concat(t,"px")})).join(", ")})),sx(ux(t),"id",E("recharts-line-")),sx(ux(t),"pathRef",(function(e){t.mainCurve=e})),sx(ux(t),"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),sx(ux(t),"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}var n,i,a;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&&lx(t,e)}(e,t),n=e,i=[{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 n=this.props,o=n.points,i=n.xAxis,a=n.yAxis,c=n.layout,u=G(n.children,xl);if(!u)return null;var l=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:Cl(t.payload,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return r().createElement(ht,s,u.map((function(t){return r().cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:o,xAxis:i,yAxis:a,layout:c,dataPointFormatter:l})})))}},{key:"renderDots",value:function(t,n,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,c=i.points,u=i.dataKey,l=rt(this.props,!1),s=rt(a,!0),f=c.map((function(t,r){var n=ex(ex(ex({key:"dot-".concat(r),r:3},l),s),{},{value:t.value,dataKey:u,cx:t.x,cy:t.y,index:r,payload:t.payload});return e.renderDotItem(a,n)})),p={clipPath:t?"url(#clipPath-".concat(n?"":"dots-").concat(o,")"):null};return r().createElement(ht,Qg({className:"recharts-line-dots",key:"dots"},p),f)}},{key:"renderCurveStatically",value:function(t,e,n,o){var i=this.props,a=i.type,c=i.layout,u=i.connectNulls,l=(i.ref,Jg(i,Yg)),s=ex(ex(ex({},rt(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(n,")"):null,points:t},o),{},{type:a,layout:c,connectNulls:u});return r().createElement(Kf,Qg({},s,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var n=this,o=this.props,i=o.points,a=o.strokeDasharray,c=o.isAnimationActive,u=o.animationBegin,l=o.animationDuration,s=o.animationEasing,f=o.animationId,p=o.animateNewValues,h=o.width,d=o.height,y=this.state,v=y.prevPoints,m=y.totalLength;return r().createElement(sd,{begin:u,duration:l,isActive:c,easing:s,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var o=r.t;if(v){var c=v.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*c);if(v[r]){var n=v[r],i=M(n.x,t.x),a=M(n.y,t.y);return ex(ex({},t),{},{x:i(o),y:a(o)})}if(p){var u=M(2*h,t.x),l=M(d/2,t.y);return ex(ex({},t),{},{x:u(o),y:l(o)})}return ex(ex({},t),{},{x:t.x,y:t.y})}));return n.renderCurveStatically(u,t,e)}var l,s=M(0,m)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=n.getStrokeDasharray(s,m,f)}else l=n.generateSimpleStrokeDasharray(m,s);return n.renderCurveStatically(i,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||!Ru()(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,i=e.dot,a=e.points,c=e.className,u=e.xAxis,l=e.yAxis,f=e.top,p=e.left,h=e.width,d=e.height,y=e.isAnimationActive,v=e.id;if(n||!a||!a.length)return null;var m=this.state.isAnimationFinished,b=1===a.length,g=o("recharts-line",c),x=u&&u.allowDataOverflow,O=l&&l.allowDataOverflow,w=x||O,j=s()(v)?this.id:v,S=null!==(t=rt(i,!1))&&void 0!==t?t:{r:3,strokeWidth:2},A=S.r,P=void 0===A?3:A,E=S.strokeWidth,k=void 0===E?2:E,T=(tt(i)?i:{}).clipDot,M=void 0===T||T,_=2*P+k;return r().createElement(ht,{className:g},x||O?r().createElement("defs",null,r().createElement("clipPath",{id:"clipPath-".concat(j)},r().createElement("rect",{x:x?p:p-h/2,y:O?f:f-d/2,width:x?h:2*h,height:O?d:2*d})),!M&&r().createElement("clipPath",{id:"clipPath-dots-".concat(j)},r().createElement("rect",{x:p-_/2,y:f-_/2,width:h+_,height:d+_}))):null,!b&&this.renderCurve(w,j),this.renderErrorBar(w,j),(b||i)&&this.renderDots(w,M,j),(!y||m)&&Ys.renderCallByParent(this.props,a))}}],a=[{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(rx(t),[0]):t,n=[],o=0;o<e;++o)n=[].concat(rx(n),rx(r));return n}},{key:"renderDotItem",value:function(t,e){var n;if(r().isValidElement(t))n=r().cloneElement(t,e);else if(d()(t))n=t(e);else{var i=o("recharts-line-dot","boolean"!=typeof t?t.className:"");n=r().createElement(_d,Qg({},e,{className:i}))}return n}}],i&&ox(n.prototype,i),a&&ox(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(e.PureComponent);sx(px,"displayName","Line"),sx(px,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ur.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),sx(px,"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,f=e.layout,p=u.map((function(t,e){var u=Cl(t,a);return"horizontal"===f?{x:Yl({axis:r,ticks:o,bandSize:c,entry:t,index:e}),y:s()(u)?null:n.scale(u),value:u,payload:t}:{x:s()(u)?null:r.scale(u),y:Yl({axis:n,ticks:i,bandSize:c,entry:t,index:e}),value:u,payload:t}}));return ex({points:p,layout:f},l)}));var hx,dx=["layout","type","stroke","connectNulls","isRange","ref"];function yx(t){return yx="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},yx(t)}function vx(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 mx(){return mx=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},mx.apply(this,arguments)}function bx(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 gx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bx(Object(r),!0).forEach((function(e){Px(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bx(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xx(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,Ex(n.key),n)}}function Ox(t,e,r){return e=jx(e),function(t,e){if(e&&("object"===yx(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Sx(t)}(t,wx()?Reflect.construct(e,r||[],jx(t).constructor):e.apply(t,r))}function wx(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(wx=function(){return!!t})()}function jx(t){return jx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jx(t)}function Sx(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ax(t,e){return Ax=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ax(t,e)}function Px(t,e,r){return(e=Ex(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ex(t){var e=function(t,e){if("object"!=yx(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=yx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==yx(e)?e:String(e)}var kx=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 Px(Sx(t=Ox(this,e,[].concat(n))),"state",{isAnimationFinished:!0}),Px(Sx(t),"id",E("recharts-area-")),Px(Sx(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),d()(e)&&e()})),Px(Sx(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),d()(e)&&e()})),t}var n,i,a;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&&Ax(t,e)}(e,t),n=e,i=[{key:"renderDots",value:function(t,n,o){var i=this.props.isAnimationActive,a=this.state.isAnimationFinished;if(i&&!a)return null;var c=this.props,u=c.dot,l=c.points,s=c.dataKey,f=rt(this.props,!1),p=rt(u,!0),h=l.map((function(t,r){var n=gx(gx(gx({key:"dot-".concat(r),r:3},f),p),{},{index:r,cx:t.x,cy:t.y,dataKey:s,value:t.value,payload:t.payload,points:l});return e.renderDotItem(u,n)})),d={clipPath:t?"url(#clipPath-".concat(n?"":"dots-").concat(o,")"):null};return r().createElement(ht,mx({className:"recharts-area-dots"},d),h)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,n=e.baseLine,o=e.points,i=e.strokeWidth,a=o[0].x,c=o[o.length-1].x,u=t*Math.abs(a-c),l=Mu()(o.map((function(t){return t.y||0})));return S(n)&&"number"==typeof n?l=Math.max(n,l):n&&Array.isArray(n)&&n.length&&(l=Math.max(Mu()(n.map((function(t){return t.y||0}))),l)),S(l)?r().createElement("rect",{x:a<c?a:a-u,y:0,width:u,height:Math.floor(l+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,n=e.baseLine,o=e.points,i=e.strokeWidth,a=o[0].y,c=o[o.length-1].y,u=t*Math.abs(a-c),l=Mu()(o.map((function(t){return t.x||0})));return S(n)&&"number"==typeof n?l=Math.max(n,l):n&&Array.isArray(n)&&n.length&&(l=Math.max(Mu()(n.map((function(t){return t.x||0}))),l)),S(l)?r().createElement("rect",{x:0,y:a<c?a:a-u,width:l+(i?parseInt("".concat(i),10):1),height:Math.floor(u)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,n,o){var i=this.props,a=i.layout,c=i.type,u=i.stroke,l=i.connectNulls,s=i.isRange,f=(i.ref,vx(i,dx));return r().createElement(ht,{clipPath:n?"url(#clipPath-".concat(o,")"):null},r().createElement(Kf,mx({},rt(f,!0),{points:t,connectNulls:l,type:c,baseLine:e,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==u&&r().createElement(Kf,mx({},rt(this.props,!1),{className:"recharts-area-curve",layout:a,type:c,connectNulls:l,fill:"none",points:t})),"none"!==u&&s&&r().createElement(Kf,mx({},rt(this.props,!1),{className:"recharts-area-curve",layout:a,type:c,connectNulls:l,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var n=this,o=this.props,i=o.points,a=o.baseLine,c=o.isAnimationActive,u=o.animationBegin,l=o.animationDuration,f=o.animationEasing,p=o.animationId,h=this.state,d=h.prevPoints,y=h.prevBaseLine;return r().createElement(sd,{begin:u,duration:l,isActive:c,easing:f,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(o){var c=o.t;if(d){var u,l=d.length/i.length,f=i.map((function(t,e){var r=Math.floor(e*l);if(d[r]){var n=d[r],o=M(n.x,t.x),i=M(n.y,t.y);return gx(gx({},t),{},{x:o(c),y:i(c)})}return t}));return u=S(a)&&"number"==typeof a?M(y,a)(c):s()(a)||g()(a)?M(y,0)(c):a.map((function(t,e){var r=Math.floor(e*l);if(y[r]){var n=y[r],o=M(n.x,t.x),i=M(n.y,t.y);return gx(gx({},t),{},{x:o(c),y:i(c)})}return t})),n.renderAreaStatically(f,u,t,e)}return r().createElement(ht,null,r().createElement("defs",null,r().createElement("clipPath",{id:"animationClipPath-".concat(e)},n.renderClipRect(c))),r().createElement(ht,{clipPath:"url(#animationClipPath-".concat(e,")")},n.renderAreaStatically(i,a,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||!Ru()(c,n)||!Ru()(u,o))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,o,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,i=e.dot,a=e.points,c=e.className,u=e.top,l=e.left,f=e.xAxis,p=e.yAxis,h=e.width,d=e.height,y=e.isAnimationActive,v=e.id;if(n||!a||!a.length)return null;var m=this.state.isAnimationFinished,b=1===a.length,g=o("recharts-area",c),x=f&&f.allowDataOverflow,O=p&&p.allowDataOverflow,w=x||O,j=s()(v)?this.id:v,S=null!==(t=rt(i,!1))&&void 0!==t?t:{r:3,strokeWidth:2},A=S.r,P=void 0===A?3:A,E=S.strokeWidth,k=void 0===E?2:E,T=(tt(i)?i:{}).clipDot,M=void 0===T||T,_=2*P+k;return r().createElement(ht,{className:g},x||O?r().createElement("defs",null,r().createElement("clipPath",{id:"clipPath-".concat(j)},r().createElement("rect",{x:x?l:l-h/2,y:O?u:u-d/2,width:x?h:2*h,height:O?d:2*d})),!M&&r().createElement("clipPath",{id:"clipPath-dots-".concat(j)},r().createElement("rect",{x:l-_/2,y:u-_/2,width:h+_,height:d+_}))):null,b?null:this.renderArea(w,j),(i||b)&&this.renderDots(w,M,j),(!y||m)&&Ys.renderCallByParent(this.props,a))}}],a=[{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}}],i&&xx(n.prototype,i),a&&xx(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(e.PureComponent);hx=kx,Px(kx,"displayName","Area"),Px(kx,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ur.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),Px(kx,"getBaseValue",(function(t,e,r,n){var o=t.layout,i=t.baseValue,a=e.props.baseValue,c=null!=a?a:i;if(S(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]})),Px(kx,"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,h=t.offset,d=r.layout,y=s&&s.length,v=hx.getBaseValue(r,n,o,i),m="horizontal"===d,b=!1,g=p.map((function(t,e){var r;y?r=s[f+e]:(r=Cl(t,l),Array.isArray(r)?b=!0:r=[v,r]);var n=null==r[1]||y&&null==Cl(t,l);return m?{x:Yl({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:Yl({axis:i,ticks:c,bandSize:u,entry:t,index:e}),value:r,payload:t}}));return e=y||b?g.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),gx({points:g,baseLine:e,layout:d,isRange:b},h)})),Px(kx,"renderDotItem",(function(t,e){var n;if(r().isValidElement(t))n=r().cloneElement(t,e);else if(d()(t))n=t(e);else{var i=o("recharts-area-dot","boolean"!=typeof t?t.className:"");n=r().createElement(_d,mx({},e,{className:i}))}return n}));var Tx=function(){return null};Tx.displayName="ZAxis",Tx.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var Mx=["option","isActive"];function _x(){return _x=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},_x.apply(this,arguments)}function Cx(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 Dx(t){var e=t.option,n=t.isActive,o=Cx(t,Mx);return"string"==typeof e?r().createElement(rv,_x({option:r().createElement(re,_x({type:e},o)),isActive:n,shapeType:"symbols"},o)):r().createElement(rv,_x({option:e,isActive:n,shapeType:"symbols"},o))}function Ix(t){return Ix="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},Ix(t)}function Nx(){return Nx=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},Nx.apply(this,arguments)}function Rx(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 Bx(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rx(Object(r),!0).forEach((function(e){Kx(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rx(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Lx(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,qx(n.key),n)}}function zx(t,e,r){return e=Ux(e),function(t,e){if(e&&("object"===Ix(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Wx(t)}(t,Fx()?Reflect.construct(e,r||[],Ux(t).constructor):e.apply(t,r))}function Fx(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Fx=function(){return!!t})()}function Ux(t){return Ux=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ux(t)}function Wx(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $x(t,e){return $x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$x(t,e)}function Kx(t,e,r){return(e=qx(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qx(t){var e=function(t,e){if("object"!=Ix(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ix(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ix(e)?e:String(e)}var Vx=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 Kx(Wx(t=zx(this,e,[].concat(n))),"state",{isAnimationFinished:!1}),Kx(Wx(t),"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0})})),Kx(Wx(t),"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1})})),Kx(Wx(t),"id",E("recharts-scatter-")),t}var n,i,a;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&&$x(t,e)}(e,t),n=e,i=[{key:"renderSymbolsStatically",value:function(t){var e=this,n=this.props,o=n.shape,i=n.activeShape,a=n.activeIndex,c=rt(this.props,!1);return t.map((function(t,n){var u=a===n,l=u?i:o,s=Bx(Bx({key:"symbol-".concat(n)},c),t);return r().createElement(ht,Nx({className:"recharts-scatter-symbol"},z(e.props,t,n),{key:"symbol-".concat(null==t?void 0:t.cx,"-").concat(null==t?void 0:t.cy,"-").concat(null==t?void 0:t.size,"-").concat(n),role:"img"}),r().createElement(Dx,Nx({option:l,isActive:u},s)))}))}},{key:"renderSymbolsWithAnimation",value:function(){var t=this,e=this.props,n=e.points,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevPoints;return r().createElement(sd,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var o=e.t,i=n.map((function(t,e){var r=l&&l[e];if(r){var n=M(r.cx,t.cx),i=M(r.cy,t.cy),a=M(r.size,t.size);return Bx(Bx({},t),{},{cx:n(o),cy:i(o),size:a(o)})}var c=M(0,t.size);return Bx(Bx({},t),{},{size:c(o)})}));return r().createElement(ht,null,t.renderSymbolsStatically(i))}))}},{key:"renderSymbols",value:function(){var t=this.props,e=t.points,r=t.isAnimationActive,n=this.state.prevPoints;return!(r&&e&&e.length)||n&&Ru()(n,e)?this.renderSymbolsStatically(e):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,e=t.points,n=t.xAxis,o=t.yAxis,i=G(t.children,xl);return i?i.map((function(t,i){var a=t.props,c=a.direction,u=a.dataKey;return r().cloneElement(t,{key:"".concat(c,"-").concat(u,"-").concat(e[i]),data:e,xAxis:n,yAxis:o,layout:"x"===c?"vertical":"horizontal",dataPointFormatter:function(t,e){return{x:t.cx,y:t.cy,value:"x"===c?+t.node.x:+t.node.y,errorVal:Cl(t,e)}}})})):null}},{key:"renderLine",value:function(){var t,e,n=this.props,o=n.points,i=n.line,a=n.lineType,c=n.lineJointType,u=rt(this.props,!1),l=rt(i,!1);if("joint"===a)t=o.map((function(t){return{x:t.cx,y:t.cy}}));else if("fitting"===a){var s=function(t){if(!t||!t.length)return null;for(var e=t.length,r=0,n=0,o=0,i=0,a=1/0,c=-1/0,u=0,l=0,s=0;s<e;s++)r+=u=t[s].cx||0,n+=l=t[s].cy||0,o+=u*l,i+=u*u,a=Math.min(a,u),c=Math.max(c,u);var f=e*i!=r*r?(e*o-r*n)/(e*i-r*r):0;return{xmin:a,xmax:c,a:f,b:(n-f*r)/e}}(o),f=s.xmin,p=s.xmax,h=s.a,y=s.b,v=function(t){return h*t+y};t=[{x:f,y:v(f)},{x:p,y:v(p)}]}var m=Bx(Bx(Bx({},u),{},{fill:"none",stroke:u&&u.fill},l),{},{points:t});return e=r().isValidElement(i)?r().cloneElement(i,m):d()(i)?i(m):r().createElement(Kf,Nx({},m,{type:c})),r().createElement(ht,{className:"recharts-scatter-line",key:"recharts-scatter-line"},e)}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.points,i=t.line,a=t.className,c=t.xAxis,u=t.yAxis,l=t.left,f=t.top,p=t.width,h=t.height,d=t.id,y=t.isAnimationActive;if(e||!n||!n.length)return null;var v=this.state.isAnimationFinished,m=o("recharts-scatter",a),b=c&&c.allowDataOverflow,g=u&&u.allowDataOverflow,x=b||g,O=s()(d)?this.id:d;return r().createElement(ht,{className:m,clipPath:x?"url(#clipPath-".concat(O,")"):null},b||g?r().createElement("defs",null,r().createElement("clipPath",{id:"clipPath-".concat(O)},r().createElement("rect",{x:b?l:l-p/2,y:g?f:f-h/2,width:b?p:2*p,height:g?h:2*h}))):null,i&&this.renderLine(),this.renderErrorBar(),r().createElement(ht,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!y||v)&&Ys.renderCallByParent(this.props,n))}}],a=[{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}}],i&&Lx(n.prototype,i),a&&Lx(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(e.PureComponent);function Xx(){return Xx=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},Xx.apply(this,arguments)}Kx(Vx,"displayName","Scatter"),Kx(Vx,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!ur.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),Kx(Vx,"getComposedData",(function(t){var e=t.xAxis,r=t.yAxis,n=t.zAxis,o=t.item,i=t.displayedData,a=t.xAxisTicks,c=t.yAxisTicks,u=t.offset,l=o.props.tooltipType,f=G(o.props.children,Mr),p=s()(e.dataKey)?o.props.dataKey:e.dataKey,h=s()(r.dataKey)?o.props.dataKey:r.dataKey,d=n&&n.dataKey,y=n?n.range:Tx.defaultProps.range,v=y&&y[0],m=e.scale.bandwidth?e.scale.bandwidth():0,b=r.scale.bandwidth?r.scale.bandwidth():0,g=i.map((function(t,i){var u=Cl(t,p),y=Cl(t,h),g=!s()(d)&&Cl(t,d)||"-",x=[{name:s()(e.dataKey)?o.props.name:e.name||e.dataKey,unit:e.unit||"",value:u,payload:t,dataKey:p,type:l},{name:s()(r.dataKey)?o.props.name:r.name||r.dataKey,unit:r.unit||"",value:y,payload:t,dataKey:h,type:l}];"-"!==g&&x.push({name:n.name||n.dataKey,unit:n.unit||"",value:g,payload:t,dataKey:d,type:l});var O=Yl({axis:e,ticks:a,bandSize:m,entry:t,index:i,dataKey:p}),w=Yl({axis:r,ticks:c,bandSize:b,entry:t,index:i,dataKey:h}),j="-"!==g?n.scale(g):v,S=Math.sqrt(Math.max(j,0)/Math.PI);return Bx(Bx({},t),{},{cx:O,cy:w,x:O-S,y:w-S,xAxis:e,yAxis:r,zAxis:n,width:2*S,height:2*S,size:j,node:{x:u,y,z:g},tooltipPayload:x,tooltipPosition:{x:O,y:w},payload:t},f&&f[i]&&f[i].props)}));return Bx({points:g},u)}));var Hx=function(t){var e=t.xAxisId,n=Bb(),i=Lb(),a=_b(e);return null==a?null:r().createElement(_g,Xx({},a,{className:o("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(t){return zl(t,!0)}}))};function Gx(){return Gx=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Gx.apply(this,arguments)}Hx.displayName="XAxis",Hx.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 Yx=function(t){var e=t.yAxisId,n=Bb(),i=Lb(),a=Ib(e);return null==a?null:r().createElement(_g,Gx({},a,{className:o("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(t){return zl(t,!0)}}))};function Zx(t){return function(t){if(Array.isArray(t))return Jx(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 Jx(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 Jx(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 Jx(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}Yx.displayName="YAxis",Yx.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 Qx=function(t,e,r,n,o){var i=G(t,Hb),a=G(t,eg),c=[].concat(Zx(i),Zx(a)),u=G(t,ug),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===r&&Mm(e.props,"extendDomain")&&S(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),u.length){var p="".concat(s,"1"),h="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===r&&Mm(e.props,"extendDomain")&&S(e.props[p])&&S(e.props[h])){var n=e.props[p],o=e.props[h];return[Math.min(t[0],n,o),Math.max(t[1],n,o)]}return t}),f)}return o&&o.length&&(f=o.reduce((function(t,e){return S(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},tO=i(9328),eO=new(i.n(tO)()),rO="recharts.syncMouseEvents";function nO(t){return nO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nO(t)}function oO(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,aO(n.key),n)}}function iO(t,e,r){return(e=aO(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aO(t){var e=function(t,e){if("object"!=nO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=nO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nO(e)?e:String(e)}var cO=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),iO(this,"activeIndex",0),iO(this,"coordinateList",[]),iO(this,"layout","horizontal")}var e,r,n;return e=t,(r=[{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})}}}])&&oO(e.prototype,r),n&&oO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function uO(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[ds(e,r,n,o),ds(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}function lO(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 uO(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=ds(c,u,l,f),h=ds(c,u,s,f);n=p.x,o=p.y,i=h.x,a=h.y}return[{x:n,y:o},{x:i,y:a}]}function sO(t){return sO="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},sO(t)}function fO(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 pO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fO(Object(r),!0).forEach((function(e){hO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hO(t,e,r){var n;return n=function(t,e){if("object"!=sO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=sO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==sO(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dO(t){var r,n=t.element,i=t.tooltipEventType,a=t.isActive,c=t.activeCoordinate,u=t.activePayload,l=t.offset,s=t.activeTooltipIndex,f=t.tooltipAxisBandSize,p=t.layout,h=t.chartName;if(!n||!n.props.cursor||!a||!c||"ScatterChart"!==h&&"axis"!==i)return null;var d=Kf;if("ScatterChart"===h)r=c,d=zd;else if("BarChart"===h)r=function(t,e,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-o:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-o,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(p,c,l,f),d=Od;else if("radial"===p){var y=uO(c),v=y.cx,m=y.cy,b=y.radius;r={cx:v,cy:m,startAngle:y.startAngle,endAngle:y.endAngle,innerRadius:b,outerRadius:b},d=sf}else r={points:lO(p,c,l)},d=Kf;var g=pO(pO(pO(pO({stroke:"#ccc",pointerEvents:"none"},l),r),rt(n.props.cursor,!1)),{},{payload:u,payloadIndex:s,className:o("recharts-tooltip-cursor",n.props.cursor.className)});return(0,e.isValidElement)(n.props.cursor)?(0,e.cloneElement)(n.props.cursor,g):(0,e.createElement)(d,g)}var yO=["item"],vO=["children","className","width","height","style","compact","title","desc"];function mO(t){return mO="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},mO(t)}function bO(){return bO=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},bO.apply(this,arguments)}function gO(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||kO(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 xO(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 OO(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,DO(n.key),n)}}function wO(t,e,r){return e=SO(e),function(t,e){if(e&&("object"===mO(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return AO(t)}(t,jO()?Reflect.construct(e,r||[],SO(t).constructor):e.apply(t,r))}function jO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(jO=function(){return!!t})()}function SO(t){return SO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},SO(t)}function AO(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function PO(t,e){return PO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},PO(t,e)}function EO(t){return function(t){if(Array.isArray(t))return TO(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||kO(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 kO(t,e){if(t){if("string"==typeof t)return TO(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)?TO(t,e):void 0}}function TO(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 MO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _O(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?MO(Object(r),!0).forEach((function(e){CO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):MO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function CO(t,e,r){return(e=DO(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function DO(t){var e=function(t,e){if("object"!=mO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=mO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==mO(e)?e:String(e)}var IO={xAxis:["bottom","top"],yAxis:["left","right"]},NO={width:"100%",height:"100%"},RO={x:0,y:0};function BO(t){return t}var LO=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(EO(t),EO(r)):t}),[]);return i.length>0?i:t&&t.length&&S(n)&&S(o)?t.slice(n,o+1):[]};function zO(t){return"number"===t?[0,"auto"]:void 0}var FO=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=LO(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&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?l=_(void 0===s?a:s,i.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(EO(o),[is(c,l)]):o}),[])},UO=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(w(s-l)!==w(f-s)){var h=[];if(w(f-s)===w(c[1]-c[0])){p=f;var d=s+c[1]-c[0];h[0]=Math.min(d,(d+l)/2),h[1]=Math.max(d,(d+l)/2)}else{p=l;var y=f+c[1]-c[0];h[0]=Math.min(s,(y+s)/2),h[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>=h[0]&&t<=h[1]){i=n[u].index;break}}else{var m=Math.min(l,f),b=Math.max(l,f);if(t>(m+s)/2&&t<=(b+s)/2){i=n[u].index;break}}}else for(var g=0;g<a;g++)if(0===g&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g>0&&g<a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2&&t<=(r[g].coordinate+r[g+1].coordinate)/2||g===a-1&&t>(r[g].coordinate+r[g-1].coordinate)/2){i=r[g].index;break}return i}(i,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=FO(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 _O(_O(_O({},n),ds(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var c=o.coordinate,u=n.angle;return _O(_O(_O({},n),ds(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return RO}(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},WO=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,f=t.children,p=t.stackOffset,h=Bl(l,o);return r.reduce((function(e,r){var d,y=r.props,v=y.type,m=y.dataKey,b=y.allowDataOverflow,g=y.allowDuplicatedCategory,x=y.scale,O=y.ticks,w=y.includeHidden,j=r.props[i];if(e[j])return e;var A,P,E,k=LO(t.data,{graphicalItems:n.filter((function(t){return t.props[i]===j})),dataStartIndex:c,dataEndIndex:u}),T=k.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&&S(n)&&S(o))return!0}return!1})(r.props.domain,b,v)&&(A=rs(r.props.domain,null,b),!h||"number"!==v&&"auto"===x||(E=Dl(k,m,"category")));var M=zO(v);if(!A||0===A.length){var _,C=null!==(_=r.props.domain)&&void 0!==_?_:M;if(m){if(A=Dl(k,m,v),"category"===v&&h){var D=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}(A);g&&D?(P=A,A=um()(0,T)):g||(A=os(C,A,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(EO(t),[e])}),[]))}else if("category"===v)A=g?A.filter((function(t){return""!==t&&!s()(t)})):os(C,A,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||s()(e)?t:[].concat(EO(t),[e])}),[]);else if("number"===v){var I=function(t,e,r,n,o){var i=e.map((function(e){return Nl(t,e,r,o,n)})).filter((function(t){return!s()(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}(k,n.filter((function(t){return t.props[i]===j&&(w||!t.props.hide)})),m,o,l);I&&(A=I)}!h||"number"!==v&&"auto"===x||(E=Dl(k,m,"category"))}else A=h?um()(0,T):a&&a[j]&&a[j].hasStack&&"number"===v?"expand"===p?[0,1]:Ql(a[j].stackGroups,c,u):Rl(k,n.filter((function(t){return t.props[i]===j&&(w||!t.props.hide)})),v,l,!0);if("number"===v)A=Qx(f,A,j,o,O),C&&(A=rs(C,A,b));else if("category"===v&&C){var N=C;A.every((function(t){return N.indexOf(t)>=0}))&&(A=N)}}return _O(_O({},e),{},CO({},j,_O(_O({},r.props),{},{axisType:o,domain:A,categoricalDomain:E,duplicateDomain:P,originalDomain:null!==(d=r.props.domain)&&void 0!==d?d:M,isCategorical:h,layout:l})))}),{})},$O=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,l=e.dataEndIndex,s=t.children,f="".concat(n,"Id"),p=G(s,o),h={};return p&&p.length?h=WO(t,{axes:p,graphicalItems:i,axisType:n,axisIdKey:f,stackGroups:a,dataStartIndex:c,dataEndIndex:l}):i&&i.length&&(h=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,s=t.layout,f=t.children,p=LO(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:l}),h=p.length,d=Bl(s,o),y=-1;return r.reduce((function(t,e){var v,m=e.props[i],b=zO("number");return t[m]?t:(y++,d?v=um()(0,h):a&&a[m]&&a[m].hasStack?(v=Ql(a[m].stackGroups,c,l),v=Qx(f,v,m,o)):(v=rs(b,Rl(p,r.filter((function(t){return t.props[i]===m&&!t.props.hide})),"number",s),n.defaultProps.allowDataOverflow),v=Qx(f,v,m,o)),_O(_O({},t),{},CO({},m,_O(_O({axisType:o},n.defaultProps),{},{hide:!0,orientation:u()(IO,"".concat(o,".").concat(y%2),null),domain:v,originalDomain:b,isCategorical:d,layout:s}))))}),{})}(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:f,stackGroups:a,dataStartIndex:c,dataEndIndex:l})),h},KO=function(t){var e=t.children,r=t.defaultShowTooltip,n=Y(e,Em),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)}},qO=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"}},VO=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,l=r.height,s=r.children,f=r.margin||{},p=Y(s,Em),h=Y(s,Ce),d=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:_O(_O({},t),{},CO({},n,t[n]+r.width))}),{left:f.left||0,right:f.right||0}),y=Object.keys(o).reduce((function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:_O(_O({},t),{},CO({},n,u()(t,"".concat(n))+r.height))}),{top:f.top||0,bottom:f.bottom||0}),v=_O(_O({},y),d),m=v.bottom;p&&(v.bottom+=p.props.height||Em.defaultProps.height),h&&e&&(v=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,c=i-(a.left||0)-(a.right||0),u=Al({children:o,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,p=u.align,h=u.verticalAlign,d=u.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&S(t[p]))return kl(kl({},t),{},Tl({},p,t[p]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&S(t[h]))return kl(kl({},t),{},Tl({},h,t[h]+(f||0)))}return t}(v,0,r,e));var b=c-v.left-v.right,g=l-v.top-v.bottom;return _O(_O({brushBottom:m},v),{},{width:Math.max(b,0),height:Math.max(g,0)})},XO=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},HO=function(t){var n,i=t.chartName,a=t.GraphicalChild,c=t.defaultTooltipEventType,l=void 0===c?"axis":c,f=t.validateTooltipEventTypes,p=void 0===f?["axis"]:f,h=t.axisComponents,y=t.legendContent,v=t.formatAxisMap,m=t.defaultProps,b=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,u=t.barSize,l=t.layout,f=t.barGap,p=t.barCategoryGap,d=t.maxBarSize,y=qO(l),v=y.numericAxisName,m=y.cateAxisName,b=function(t){return!(!t||!t.length)&&t.some((function(t){var e=q(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),g=[];return r.forEach((function(r,y){var x=LO(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:c}),O=r.props,w=O.dataKey,j=O.maxBarSize,S=r.props["".concat(v,"Id")],P=r.props["".concat(m,"Id")],E=h.reduce((function(t,n){var o=e["".concat(n.axisType,"Map")],i=r.props["".concat(n.axisType,"Id")];o&&o[i]||"zAxis"===n.axisType||dl(!1);var a=o[i];return _O(_O({},t),{},CO(CO({},n.axisType,a),"".concat(n.axisType,"Ticks"),zl(a)))}),{}),T=E[m],M=E["".concat(m,"Ticks")],_=n&&n[S]&&n[S].hasStack&&function(t,e){var r=t.props.stackId;if(A(r)){var n=e[r];if(n){var o=n.items.indexOf(t);return o>=0?n.stackedData[o]:null}}return null}(r,n[S].stackGroups),C=q(r.type).indexOf("Bar")>=0,D=ns(T,M),I=[],N=b&&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,f=Object.keys(l),p=0,h=f.length;p<h;p++){var d=l[f[p]],y=d.items,v=d.cateAxisId,m=y.filter((function(t){return q(t.type).indexOf("Bar")>=0}));if(m&&m.length){var b=m[0].props.barSize,g=m[0].props[v];i[g]||(i[g]=[]);var x=s()(b)?e:b;i[g].push({item:m[0],stackList:m.slice(1),barSize:s()(x)?void 0:k(x,r,0)})}}return i}({barSize:u,stackGroups:n,totalSize:XO(E,m)});if(C){var R,B,L=s()(j)?d:j,z=null!==(R=null!==(B=ns(T,M,!0))&&void 0!==B?B:L)&&void 0!==R?R:0;I=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=k(e,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/c,h=i.reduce((function(t,e){return t+e.barSize||0}),0);(h+=(c-1)*l)>=n&&(h-=(c-1)*l,l=0),h>=n&&p>0&&(f=!0,h=c*(p*=.9));var d={offset:((n-h)/2>>0)-l,size:0};u=i.reduce((function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+l,size:f?p:e.barSize}},n=[].concat(Ml(t),[r]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:d})})),n}),s)}else{var y=k(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(Ml(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:z!==D?z:D,sizeList:N[P],maxBarSize:L}),z!==D&&(I=I.map((function(t){return _O(_O({},t),{},{position:_O(_O({},t.position),{},{offset:t.position.offset-z/2})})})))}var F,U,W=r&&r.type&&r.type.getComposedData;W&&g.push({props:_O(_O({},W(_O(_O({},E),{},{displayedData:x,props:t,dataKey:w,item:r,bandSize:D,barPosition:I,offset:o,stackedData:_,layout:l,dataStartIndex:a,dataEndIndex:c}))),{},CO(CO(CO({key:r.key||"item-".concat(y)},v,E[v]),m,E[m]),"animationId",i)),childIndex:(F=r,U=t.children,H(U).indexOf(F)),item:r})})),g},g=function(t,e){var r=t.props,n=t.dataStartIndex,o=t.dataEndIndex,c=t.updateId;if(!Z({props:r}))return null;var u=r.children,l=r.layout,s=r.stackOffset,f=r.data,p=r.reverseStackOrder,d=qO(l),y=d.numericAxisName,m=d.cateAxisName,g=G(u,a),x=function(t,e,r,n,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce((function(t,e){var o=e.props,i=o.stackId;if(o.hide)return t;var a=e.props[r],c=t[a]||{hasStack:!1,stackGroups:{}};if(A(i)){var u=c.stackGroups[i]||{numericAxisId:r,cateAxisId:n,items:[]};u.items.push(e),c.hasStack=!0,c.stackGroups[i]=u}else c.stackGroups[E("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return kl(kl({},t),{},Tl({},a,c))}),{});return Object.keys(a).reduce((function(e,i){var c=a[i];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,i){var a=c.stackGroups[i];return kl(kl({},e),{},Tl({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:Hl(t,a.items,o)}))}),{})),kl(kl({},e),{},Tl({},i,c))}),{})}(f,g,"".concat(y,"Id"),"".concat(m,"Id"),s,p),O=h.reduce((function(t,e){var i="".concat(e.axisType,"Map");return _O(_O({},t),{},CO({},i,$O(r,_O(_O({},e),{},{graphicalItems:g,stackGroups:e.axisType===y&&x,dataStartIndex:n,dataEndIndex:o}))))}),{}),w=VO(_O(_O({},O),{},{props:r,graphicalItems:g}),null==e?void 0:e.legendBBox);Object.keys(O).forEach((function(t){O[t]=v(r,O[t],w,t.replace("Map",""),i)}));var j,S,P=O["".concat(m,"Map")],k=(j=T(P),{tooltipTicks:S=zl(j,!1,!0),orderedTooltipTicks:Ie()(S,(function(t){return t.coordinate})),tooltipAxis:j,tooltipAxisBandSize:ns(j,S)}),M=b(r,_O(_O({},O),{},{dataStartIndex:n,dataEndIndex:o,updateId:c,graphicalItems:g,stackGroups:x,offset:w}));return _O(_O({formattedGraphicalItems:M,graphicalItems:g,offset:w,stackGroups:x},k),O)};return n=function(t){function n(t){var a,c,l;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),CO(AO(l=wO(this,n,[t])),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),CO(AO(l),"accessibilityManager",new cO),CO(AO(l),"handleLegendBBoxUpdate",(function(t){if(t){var e=l.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;l.setState(_O({legendBBox:t},g({props:l.props,dataStartIndex:r,dataEndIndex:n,updateId:o},_O(_O({},l.state),{},{legendBBox:t}))))}})),CO(AO(l),"handleReceiveSyncEvent",(function(t,e,r){if(l.props.syncId===t){if(r===l.eventEmitterSymbol&&"function"!=typeof l.props.syncMethod)return;l.applySyncEvent(e)}})),CO(AO(l),"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==l.state.dataStartIndex||r!==l.state.dataEndIndex){var n=l.state.updateId;l.setState((function(){return _O({dataStartIndex:e,dataEndIndex:r},g({props:l.props,dataStartIndex:e,dataEndIndex:r,updateId:n},l.state))})),l.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),CO(AO(l),"handleMouseEnter",(function(t){var e=l.getMouseInfo(t);if(e){var r=_O(_O({},e),{},{isTooltipActive:!0});l.setState(r),l.triggerSyncEvent(r);var n=l.props.onMouseEnter;d()(n)&&n(r,t)}})),CO(AO(l),"triggeredAfterMouseMove",(function(t){var e=l.getMouseInfo(t),r=e?_O(_O({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};l.setState(r),l.triggerSyncEvent(r);var n=l.props.onMouseMove;d()(n)&&n(r,t)})),CO(AO(l),"handleItemMouseEnter",(function(t){l.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),CO(AO(l),"handleItemMouseLeave",(function(){l.setState((function(){return{isTooltipActive:!1}}))})),CO(AO(l),"handleMouseMove",(function(t){t.persist(),l.throttleTriggeredAfterMouseMove(t)})),CO(AO(l),"handleMouseLeave",(function(t){l.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};l.setState(e),l.triggerSyncEvent(e);var r=l.props.onMouseLeave;d()(r)&&r(e,t)})),CO(AO(l),"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&K[e]?K[e]:null}(t),n=u()(l.props,"".concat(r));r&&d()(n)&&n(null!==(e=/.*touch.*/i.test(r)?l.getMouseInfo(t.changedTouches[0]):l.getMouseInfo(t))&&void 0!==e?e:{},t)})),CO(AO(l),"handleClick",(function(t){var e=l.getMouseInfo(t);if(e){var r=_O(_O({},e),{},{isTooltipActive:!0});l.setState(r),l.triggerSyncEvent(r);var n=l.props.onClick;d()(n)&&n(r,t)}})),CO(AO(l),"handleMouseDown",(function(t){var e=l.props.onMouseDown;d()(e)&&e(l.getMouseInfo(t),t)})),CO(AO(l),"handleMouseUp",(function(t){var e=l.props.onMouseUp;d()(e)&&e(l.getMouseInfo(t),t)})),CO(AO(l),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&l.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),CO(AO(l),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&l.handleMouseDown(t.changedTouches[0])})),CO(AO(l),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&l.handleMouseUp(t.changedTouches[0])})),CO(AO(l),"triggerSyncEvent",(function(t){void 0!==l.props.syncId&&eO.emit(rO,l.props.syncId,t,l.eventEmitterSymbol)})),CO(AO(l),"applySyncEvent",(function(t){var e=l.props,r=e.layout,n=e.syncMethod,o=l.state.updateId,i=t.dataStartIndex,a=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)l.setState(_O({dataStartIndex:i,dataEndIndex:a},g({props:l.props,dataStartIndex:i,dataEndIndex:a,updateId:o},l.state)));else if(void 0!==t.activeTooltipIndex){var c=t.chartX,u=t.chartY,s=t.activeTooltipIndex,f=l.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var d=0;d<h.length;d++)if(h[d].value===t.activeLabel){s=d;break}}var y=_O(_O({},p),{},{x:p.left,y:p.top}),v=Math.min(c,y.x+y.width),m=Math.min(u,y.y+y.height),b=h[s]&&h[s].value,x=FO(l.state,l.props.data,s),O=h[s]?{x:"horizontal"===r?h[s].coordinate:v,y:"horizontal"===r?m:h[s].coordinate}:RO;l.setState(_O(_O({},t),{},{activeLabel:b,activeCoordinate:O,activePayload:x,activeTooltipIndex:s}))}else l.setState(t)})),CO(AO(l),"renderCursor",(function(t){var e,n=l.state,o=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,u=n.offset,s=n.activeTooltipIndex,f=n.tooltipAxisBandSize,p=l.getTooltipEventType(),h=null!==(e=t.props.active)&&void 0!==e?e:o,d=l.props.layout,y=t.key||"_recharts-cursor";return r().createElement(dO,{key:y,activeCoordinate:a,activePayload:c,activeTooltipIndex:s,chartName:i,element:t,isActive:h,layout:d,offset:u,tooltipAxisBandSize:f,tooltipEventType:p})})),CO(AO(l),"renderPolarAxis",(function(t,r,n){var i=u()(t,"type.axisType"),a=u()(l.state,"".concat(i,"Map")),c=a&&a[t.props["".concat(i,"Id")]];return(0,e.cloneElement)(t,_O(_O({},c),{},{className:o(i,c.className),key:t.key||"".concat(r,"-").concat(n),ticks:zl(c,!0)}))})),CO(AO(l),"renderPolarGrid",(function(t){var r=t.props,n=r.radialLines,o=r.polarAngles,i=r.polarRadius,a=l.state,c=a.radiusAxisMap,u=a.angleAxisMap,s=T(c),f=T(u),p=f.cx,h=f.cy,d=f.innerRadius,y=f.outerRadius;return(0,e.cloneElement)(t,{polarAngles:Array.isArray(o)?o:zl(f,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(i)?i:zl(s,!0).map((function(t){return t.coordinate})),cx:p,cy:h,innerRadius:d,outerRadius:y,key:t.key||"polar-grid",radialLines:n})})),CO(AO(l),"renderLegend",(function(){var t=l.state.formattedGraphicalItems,r=l.props,n=r.children,o=r.width,i=r.height,a=l.props.margin||{},c=o-(a.left||0)-(a.right||0),u=Al({children:n,formattedGraphicalItems:t,legendWidth:c,legendContent:y});if(!u)return null;var s=u.item,f=xO(u,yO);return(0,e.cloneElement)(s,_O(_O({},f),{},{chartWidth:o,chartHeight:i,margin:a,onBBoxUpdate:l.handleLegendBBoxUpdate}))})),CO(AO(l),"renderTooltip",(function(){var t,r=l.props,n=r.children,o=r.accessibilityLayer,i=Y(n,xr);if(!i)return null;var a=l.state,c=a.isTooltipActive,u=a.activeCoordinate,s=a.activePayload,f=a.activeLabel,p=a.offset,h=null!==(t=i.props.active)&&void 0!==t?t:c;return(0,e.cloneElement)(i,{viewBox:_O(_O({},p),{},{x:p.left,y:p.top}),active:h,label:f,payload:h?s:[],coordinate:u,accessibilityLayer:o})})),CO(AO(l),"renderBrush",(function(t){var r=l.props,n=r.margin,o=r.data,i=l.state,a=i.offset,c=i.dataStartIndex,u=i.dataEndIndex,s=i.updateId;return(0,e.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:Ul(l.handleBrushChange,t.props.onChange),data:o,x:S(t.props.x)?t.props.x:a.left,y:S(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(n.bottom||0),width:S(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(s)})})),CO(AO(l),"renderReferenceElement",(function(t,r,n){if(!t)return null;var o=AO(l).clipPathId,i=l.state,a=i.xAxisMap,c=i.yAxisMap,u=i.offset,s=t.props,f=s.xAxisId,p=s.yAxisId;return(0,e.cloneElement)(t,{key:t.key||"".concat(r,"-").concat(n),xAxis:a[f],yAxis:c[p],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:o})})),CO(AO(l),"renderActivePoints",(function(t){var e=t.item,r=t.activePoint,o=t.basePoint,i=t.childIndex,a=t.isRange,c=[],u=e.props.key,l=e.item.props,s=l.activeDot,f=_O(_O({index:i,dataKey:l.dataKey,cx:r.x,cy:r.y,r:4,fill:Il(e.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(u,"-activePoint-").concat(i)},rt(s,!1)),L(s));return c.push(n.renderActiveDot(s,f)),o?c.push(n.renderActiveDot(s,_O(_O({},f),{},{cx:o.x,cy:o.y,key:"".concat(u,"-basePoint-").concat(i)}))):a&&c.push(null),c})),CO(AO(l),"renderGraphicChild",(function(t,r,n){var o=l.filterFormatItem(t,r,n);if(!o)return null;var i=l.getTooltipEventType(),a=l.state,c=a.isTooltipActive,u=a.tooltipAxis,f=a.activeTooltipIndex,p=a.activeLabel,h=Y(l.props.children,xr),d=o.props,y=d.points,v=d.isRange,m=d.baseLine,b=o.item.props,g=b.activeDot,x=b.hide,O=b.activeBar,w=b.activeShape,j=Boolean(!x&&c&&h&&(g||O||w)),S={};"axis"!==i&&h&&"click"===h.props.trigger?S={onClick:Ul(l.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(S={onMouseLeave:Ul(l.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:Ul(l.handleItemMouseEnter,t.props.onMouseEnter)});var A=(0,e.cloneElement)(t,_O(_O({},o.props),S));if(j){if(!(f>=0)){var P,E=(null!==(P=l.getItemByXY(l.state.activeCoordinate))&&void 0!==P?P:{graphicalItem:A}).graphicalItem,k=E.item,T=void 0===k?t:k,M=E.childIndex,C=_O(_O(_O({},o.props),S),{},{activeIndex:M});return[(0,e.cloneElement)(T,C),null,null]}var D,I;if(u.dataKey&&!u.allowDuplicatedCategory){var N="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());D=_(y,N,p),I=v&&m&&_(m,N,p)}else D=null==y?void 0:y[f],I=v&&m&&m[f];if(w||O){var R=void 0!==t.props.activeIndex?t.props.activeIndex:f;return[(0,e.cloneElement)(t,_O(_O(_O({},o.props),S),{},{activeIndex:R})),null,null]}if(!s()(D))return[A].concat(EO(l.renderActivePoints({item:o,activePoint:D,basePoint:I,childIndex:f,isRange:v})))}return v?[A,null,null]:[A,null]})),CO(AO(l),"renderCustomized",(function(t,r,n){return(0,e.cloneElement)(t,_O(_O({key:"recharts-customized-".concat(n)},l.props),l.state))})),CO(AO(l),"renderMap",{CartesianGrid:{handler:BO,once:!0},ReferenceArea:{handler:l.renderReferenceElement},ReferenceLine:{handler:BO},ReferenceDot:{handler:l.renderReferenceElement},XAxis:{handler:BO},YAxis:{handler:BO},Brush:{handler:l.renderBrush,once:!0},Bar:{handler:l.renderGraphicChild},Line:{handler:l.renderGraphicChild},Area:{handler:l.renderGraphicChild},Radar:{handler:l.renderGraphicChild},RadialBar:{handler:l.renderGraphicChild},Scatter:{handler:l.renderGraphicChild},Pie:{handler:l.renderGraphicChild},Funnel:{handler:l.renderGraphicChild},Tooltip:{handler:l.renderCursor,once:!0},PolarGrid:{handler:l.renderPolarGrid,once:!0},PolarAngleAxis:{handler:l.renderPolarAxis},PolarRadiusAxis:{handler:l.renderPolarAxis},Customized:{handler:l.renderCustomized}}),l.clipPathId="".concat(null!==(a=t.id)&&void 0!==a?a:E("recharts"),"-clip"),l.throttleTriggeredAfterMouseMove=wr()(l.triggeredAfterMouseMove,null!==(c=t.throttleDelay)&&void 0!==c?c:1e3/60),l.state={},l}var a,c,f;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&&PO(t,e)}(n,t),a=n,c=[{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=Y(e,xr);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=FO(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=_O(_O({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(h),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){return this.props.accessibilityLayer?(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}}),null):null;var r,n}},{key:"componentDidUpdate",value:function(t){nt([Y(t.children,xr)],[Y(this.props.children,xr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=Y(this.props.children,xr);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return p.indexOf(e)>=0?e:l}return l}},{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=T(l).scale,p=T(s).scale,h=f&&f.invert?f.invert(i.chartX):null,d=p&&p.invert?p.invert(i.chartY):null;return _O(_O({},i),{},{xValue:h,yValue:d})}var y=UO(this.state,this.props.data,this.props.layout,c);return y?_O(_O({},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=T(u);return gs({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=Y(t,xr),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}),_O(_O({},L(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){eO.on(rO,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){eO.removeListener(rO,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===q(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,n=e.left,o=e.top,i=e.height,a=e.width;return r().createElement("defs",null,r().createElement("clipPath",{id:t},r().createElement("rect",{x:n,y:o,height:i,width:a})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=gO(e,2),n=r[0],o=r[1];return _O(_O({},t),{},CO({},n,o.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=gO(e,2),n=r[0],o=r[1];return _O(_O({},t),{},CO({},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=q(u.type);if("Bar"===l){var s=(c.data||[]).find((function(e){return gd(t,e)}));if(s)return{graphicalItem:a,payload:s}}else if("RadialBar"===l){var f=(c.data||[]).find((function(e){return gs(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if(nv(a,n)||ov(a,n)||iv(a,n)){var p=lv({graphicalItem:a,activeTooltipItem:n,itemData:u.props.data}),h=void 0===u.props.activeIndex?p:u.props.activeIndex;return{graphicalItem:_O(_O({},a),{},{childIndex:h}),payload:iv(a,n)?u.props.data[p]:a.props.data[p]}}}return null}},{key:"render",value:function(){var t=this;if(!Z(this))return null;var e,n,i=this.props,a=i.children,c=i.className,u=i.width,l=i.height,s=i.style,f=i.compact,p=i.title,h=i.desc,d=xO(i,vO),y=rt(d,!1);if(f)return r().createElement(Tb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},r().createElement(lt,bO({},y,{width:u,height:l,title:p,desc:h}),this.renderClipPath(),it(a,this.renderMap)));this.props.accessibilityLayer&&(y.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,y.role=null!==(n=this.props.role)&&void 0!==n?n:"application",y.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},y.onFocus=function(){t.accessibilityManager.focus()});var v=this.parseEventsOfWrapper();return r().createElement(Tb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},r().createElement("div",bO({className:o("recharts-wrapper",c),style:_O({position:"relative",cursor:"default",width:u,height:l},s)},v,{ref:function(e){t.container=e}}),r().createElement(lt,bO({},y,{width:u,height:l,title:p,desc:h,style:NO}),this.renderClipPath(),it(a,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],c&&OO(a.prototype,c),f&&OO(a,f),Object.defineProperty(a,"prototype",{writable:!1}),n}(e.Component),CO(n,"displayName",i),CO(n,"defaultProps",_O({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},m)),CO(n,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,o=t.children,i=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin,f=e.dataStartIndex,p=e.dataEndIndex;if(void 0===e.updateId){var h=KO(t);return _O(_O(_O({},h),{},{updateId:0},g(_O(_O({props:t},h),{},{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||!C(l,e.prevMargin)){var d=KO(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=_O(_O({},UO(e,n,c)),{},{updateId:e.updateId+1}),m=_O(_O(_O({},d),y),v);return _O(_O(_O({},m),g(_O({props:t},m),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(!nt(o,e.prevChildren)){var b,x,O,w,j=Y(o,Em),S=j&&null!==(b=null===(x=j.props)||void 0===x?void 0:x.startIndex)&&void 0!==b?b:f,A=j&&null!==(O=null===(w=j.props)||void 0===w?void 0:w.endIndex)&&void 0!==O?O:p,P=S!==f||A!==p,E=!s()(n)&&!P?e.updateId:e.updateId+1;return _O(_O({updateId:E},g(_O(_O({props:t},e),{},{updateId:E,dataStartIndex:S,dataEndIndex:A}),e)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:A})}return null})),CO(n,"renderActiveDot",(function(t,n){var o;return o=(0,e.isValidElement)(t)?(0,e.cloneElement)(t,n):d()(t)?t(n):r().createElement(_d,n),r().createElement(ht,{className:"recharts-active-dot",key:n.key},o)})),n},GO=HO({chartName:"LineChart",GraphicalChild:px,axisComponents:[{axisType:"xAxis",AxisComp:Hx},{axisType:"yAxis",AxisComp:Yx}],formatAxisMap:pb}),YO=HO({chartName:"BarChart",GraphicalChild:ib,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Hx},{axisType:"yAxis",AxisComp:Yx}],formatAxisMap:pb}),ZO=HO({chartName:"PieChart",GraphicalChild:wv,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:_y},{axisType:"radiusAxis",AxisComp:my}],formatAxisMap:vs,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),JO=i(1860),QO=i.n(JO),tw=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],ew=["width","height","className","style","children","type"];function rw(t){return rw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rw(t)}function nw(){return nw=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},nw.apply(this,arguments)}function ow(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function iw(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,dw(n.key),n)}}function aw(t,e,r){return e=uw(e),function(t,e){if(e&&("object"===rw(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return lw(t)}(t,cw()?Reflect.construct(e,r||[],uw(t).constructor):e.apply(t,r))}function cw(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(cw=function(){return!!t})()}function uw(t){return uw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},uw(t)}function lw(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sw(t,e){return sw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},sw(t,e)}function fw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fw(Object(r),!0).forEach((function(e){hw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hw(t,e,r){return(e=dw(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dw(t){var e=function(t,e){if("object"!=rw(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=rw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==rw(e)?e:String(e)}var yw="value",vw=function t(e){var r,n=e.depth,o=e.node,i=e.index,a=e.valueKey,c=o.children,u=n+1,l=c&&c.length?c.map((function(e,r){return t({depth:u,node:e,index:r,valueKey:a})})):null;return r=c&&c.length?l.reduce((function(t,e){return t+e[yw]}),0):g()(o[a])||o[a]<=0?0:o[a],pw(pw({},o),{},hw(hw(hw({children:l},yw,r),"depth",n),"index",i))},mw=function(t,e,r){var n=e*e,o=t.area*t.area,i=t.reduce((function(t,e){return{min:Math.min(t.min,e.area),max:Math.max(t.max,e.area)}}),{min:1/0,max:0}),a=i.min,c=i.max;return o?Math.max(n*c*r/o,o/(n*a*r)):1/0},bw=function(t,e,r,n){return e===r.width?function(t,e,r,n){var o=e?Math.round(t.area/e):0;(n||o>r.height)&&(o=r.height);for(var i,a=r.x,c=0,u=t.length;c<u;c++)(i=t[c]).x=a,i.y=r.y,i.height=o,i.width=Math.min(o?Math.round(i.area/o):0,r.x+r.width-a),a+=i.width;return i.width+=r.x+r.width-a,pw(pw({},r),{},{y:r.y+o,height:r.height-o})}(t,e,r,n):function(t,e,r,n){var o=e?Math.round(t.area/e):0;(n||o>r.width)&&(o=r.width);for(var i,a=r.y,c=0,u=t.length;c<u;c++)(i=t[c]).x=r.x,i.y=a,i.width=o,i.height=Math.min(o?Math.round(i.area/o):0,r.y+r.height-a),a+=i.height;return i&&(i.height+=r.y+r.height-a),pw(pw({},r),{},{x:r.x+o,width:r.width-o})}(t,e,r,n)},gw=function t(e,r){var n=e.children;if(n&&n.length){var o,i,a=function(t){return{x:t.x,y:t.y,width:t.width,height:t.height}}(e),c=[],u=1/0,l=Math.min(a.width,a.height),s=function(t,e){var r=e<0?0:e;return t.map((function(t){var e=t[yw]*r;return pw(pw({},t),{},{area:g()(e)||e<=0?0:e})}))}(n,a.width*a.height/e[yw]),f=s.slice();for(c.area=0;f.length>0;)c.push(o=f[0]),c.area+=o.area,(i=mw(c,l,r))<=u?(f.shift(),u=i):(c.area-=c.pop().area,a=bw(c,l,a,!1),l=Math.min(a.width,a.height),c.length=c.area=0,u=1/0);return c.length&&(a=bw(c,l,a,!0),c.length=c.area=0),pw(pw({},e),{},{children:s.map((function(e){return t(e,r)}))})}return e},xw={isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,formatRoot:null,currentRoot:null,nestIndex:[]},Ow=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 hw(lw(t=aw(this,e,[].concat(n))),"state",pw({},xw)),hw(lw(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),d()(e)&&e()})),hw(lw(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),d()(e)&&e()})),t}var n,i,a;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&&sw(t,e)}(e,t),n=e,a=[{key:"getDerivedStateFromProps",value:function(t,e){if(t.data!==e.prevData||t.type!==e.prevType||t.width!==e.prevWidth||t.height!==e.prevHeight||t.dataKey!==e.prevDataKey||t.aspectRatio!==e.prevAspectRatio){var r=vw({depth:0,node:{children:t.data,x:0,y:0,width:t.width,height:t.height},index:0,valueKey:t.dataKey}),n=gw(r,t.aspectRatio);return pw(pw({},e),{},{formatRoot:n,currentRoot:r,nestIndex:[r],prevAspectRatio:t.aspectRatio,prevData:t.data,prevWidth:t.width,prevHeight:t.height,prevDataKey:t.dataKey,prevType:t.type})}return null}},{key:"renderContentItem",value:function(t,e,n,o){if(r().isValidElement(t))return r().cloneElement(t,e);if(d()(t))return t(e);var i=e.x,a=e.y,c=e.width,u=e.height,l=e.index,s=null;c>10&&u>10&&e.children&&"nest"===n&&(s=r().createElement(Td,{points:[{x:i+2,y:a+u/2},{x:i+6,y:a+u/2+3},{x:i+2,y:a+u/2+6}]}));var f=null,p=Lr(e.name);c>20&&u>20&&p.width<c&&p.height<u&&(f=r().createElement("text",{x:i+8,y:a+u/2+7,fontSize:14},e.name));var h=o||tw;return r().createElement("g",null,r().createElement(Od,nw({fill:e.depth<2?h[l%h.length]:"rgba(255,255,255,0)",stroke:"#fff"},QO()(e,"children"),{role:"img"})),s,f)}}],(i=[{key:"handleMouseEnter",value:function(t,e){e.persist();var r=this.props,n=r.onMouseEnter;Y(r.children,xr)?this.setState({isTooltipActive:!0,activeNode:t},(function(){n&&n(t,e)})):n&&n(t,e)}},{key:"handleMouseLeave",value:function(t,e){e.persist();var r=this.props,n=r.onMouseLeave;Y(r.children,xr)?this.setState({isTooltipActive:!1,activeNode:null},(function(){n&&n(t,e)})):n&&n(t,e)}},{key:"handleClick",value:function(t){var e=this.props,r=e.onClick;if("nest"===e.type&&t.children){var n=this.props,o=n.width,i=n.height,a=n.dataKey,c=n.aspectRatio,u=vw({depth:0,node:pw(pw({},t),{},{x:0,y:0,width:o,height:i}),index:0,valueKey:a}),l=gw(u,c),s=this.state.nestIndex;s.push(t),this.setState({formatRoot:l,currentRoot:u,nestIndex:s})}r&&r(t)}},{key:"handleNestIndex",value:function(t,e){var r=this.state.nestIndex,n=this.props,o=n.width,i=n.height,a=n.dataKey,c=n.aspectRatio,u=vw({depth:0,node:pw(pw({},t),{},{x:0,y:0,width:o,height:i}),index:0,valueKey:a}),l=gw(u,c);r=r.slice(0,e+1),this.setState({formatRoot:l,currentRoot:t,nestIndex:r})}},{key:"renderItem",value:function(t,e,n){var o=this,i=this.props,a=i.isAnimationActive,c=i.animationBegin,u=i.animationDuration,l=i.animationEasing,s=i.isUpdateAnimationActive,f=i.type,p=i.animationId,h=i.colorPanel,d=this.state.isAnimationFinished,y=e.width,v=e.height,m=e.x,b=e.y,g=e.depth,x=parseInt("".concat((2*Math.random()-1)*y),10),O={};return(n||"nest"===f)&&(O={onMouseEnter:this.handleMouseEnter.bind(this,e),onMouseLeave:this.handleMouseLeave.bind(this,e),onClick:this.handleClick.bind(this,e)}),a?r().createElement(sd,{begin:c,duration:u,isActive:a,easing:l,key:"treemap-".concat(p),from:{x:m,y:b,width:y,height:v},to:{x:m,y:b,width:y,height:v},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var i=n.x,p=n.y,y=n.width,v=n.height;return r().createElement(sd,{from:"translate(".concat(x,"px, ").concat(x,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:c,easing:l,isActive:a,duration:u},r().createElement(ht,O,g>2&&!d?null:o.constructor.renderContentItem(t,pw(pw({},e),{},{isAnimationActive:a,isUpdateAnimationActive:!s,width:y,height:v,x:i,y:p}),f,h)))})):r().createElement(ht,O,this.constructor.renderContentItem(t,pw(pw({},e),{},{isAnimationActive:!1,isUpdateAnimationActive:!1,width:y,height:v,x:m,y:b}),f,h))}},{key:"renderNode",value:function(t,e){var n=this,o=this.props,i=o.content,a=o.type,c=pw(pw(pw({},rt(this.props,!1)),e),{},{root:t}),u=!e.children||!e.children.length;return!(this.state.currentRoot.children||[]).filter((function(t){return t.depth===e.depth&&t.name===e.name})).length&&t.depth&&"nest"===a?null:r().createElement(ht,{key:"recharts-treemap-node-".concat(c.x,"-").concat(c.y,"-").concat(c.name),className:"recharts-treemap-depth-".concat(e.depth)},this.renderItem(i,c,u),e.children&&e.children.length?e.children.map((function(t){return n.renderNode(e,t)})):null)}},{key:"renderAllNodes",value:function(){var t=this.state.formatRoot;return t?this.renderNode(t,t):null}},{key:"renderTooltip",value:function(){var t=this.props,e=t.children,n=t.nameKey,o=Y(e,xr);if(!o)return null;var i=this.props,a=i.width,c=i.height,u=this.state,l=u.isTooltipActive,s=u.activeNode,f={x:0,y:0,width:a,height:c},p=s?{x:s.x+s.width/2,y:s.y+s.height/2}:null,h=l&&s?[{payload:s,name:Cl(s,n,""),value:Cl(s,yw)}]:[];return r().cloneElement(o,{viewBox:f,active:l,coordinate:p,label:"",payload:h})}},{key:"renderNestIndex",value:function(){var t=this,e=this.props,n=e.nameKey,o=e.nestIndexContent,i=this.state.nestIndex;return r().createElement("div",{className:"recharts-treemap-nest-index-wrapper",style:{marginTop:"8px",textAlign:"center"}},i.map((function(e,i){var a=u()(e,n,"root"),c=null;return r().isValidElement(o)&&(c=r().cloneElement(o,e,i)),c=d()(o)?o(e,i):a,r().createElement("div",{onClick:t.handleNestIndex.bind(t,e,i),key:"nest-index-".concat(E()),className:"recharts-treemap-nest-index-box",style:{cursor:"pointer",display:"inline-block",padding:"0 7px",background:"#000",color:"#fff",marginRight:"3px"}},c)})))}},{key:"render",value:function(){if(!Z(this))return null;var t=this.props,e=t.width,n=t.height,i=t.className,a=t.style,c=t.children,u=t.type,l=ow(t,ew),s=rt(l,!1);return r().createElement("div",{className:o("recharts-wrapper",i),style:pw(pw({},a),{},{position:"relative",cursor:"default",width:e,height:n}),role:"region"},r().createElement(lt,nw({},s,{width:e,height:"nest"===u?n-30:n}),this.renderAllNodes(),et(c)),this.renderTooltip(),"nest"===u&&this.renderNestIndex())}}])&&iw(n.prototype,i),a&&iw(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(e.PureComponent);hw(Ow,"displayName","Treemap"),hw(Ow,"defaultProps",{aspectRatio:.5*(1+Math.sqrt(5)),dataKey:"value",type:"flat",isAnimationActive:!ur.isSsr,isUpdateAnimationActive:!ur.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"linear"});var ww=i(6356),jw=i.n(ww),Sw=["width","height","className","style","children"],Aw=["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"];function Pw(t){return Pw="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},Pw(t)}function Ew(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 kw(){return kw=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},kw.apply(this,arguments)}function Tw(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,Lw(n.key),n)}}function Mw(t,e,r){return e=Cw(e),function(t,e){if(e&&("object"===Pw(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Dw(t)}(t,_w()?Reflect.construct(e,r||[],Cw(t).constructor):e.apply(t,r))}function _w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_w=function(){return!!t})()}function Cw(t){return Cw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Cw(t)}function Dw(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Iw(t,e){return Iw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Iw(t,e)}function Nw(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 Rw(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Nw(Object(r),!0).forEach((function(e){Bw(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nw(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Bw(t,e,r){return(e=Lw(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lw(t){var e=function(t,e){if("object"!=Pw(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Pw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Pw(e)?e:String(e)}var zw={x:0,y:0},Fw=function(t){return t.y+t.dy/2},Uw=function(t){return t&&t.value||0},Ww=function(t,e){return e.reduce((function(e,r){return e+Uw(t[r])}),0)},$w=function(t,e,r){return r.reduce((function(r,n){var o=e[n],i=t[o.source];return r+Fw(i)*Uw(e[n])}),0)},Kw=function(t,e,r){return r.reduce((function(r,n){var o=e[n],i=t[o.target];return r+Fw(i)*Uw(e[n])}),0)},qw=function(t,e){return t.y-e.y},Vw=function t(e,r){for(var n=r.targetNodes,o=0,i=n.length;o<i;o++){var a=e[n[o]];a&&(a.depth=Math.max(r.depth+1,a.depth),t(e,a))}},Xw=function(t,e,r){for(var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=0,i=t.length;o<i;o++){var a=t[o],c=a.length;n&&a.sort(qw);for(var u=0,l=0;l<c;l++){var s=a[l],f=u-s.y;f>0&&(s.y+=f),u=s.y+s.dy+r}u=e+r;for(var p=c-1;p>=0;p--){var h=a[p],d=h.y+h.dy+r-u;if(!(d>0))break;h.y-=d,u=h.y}}},Hw=function(t,e,r,n){for(var o=0,i=e.length;o<i;o++)for(var a=e[o],c=0,u=a.length;c<u;c++){var l=a[c];if(l.sourceLinks.length){var s=Ww(r,l.sourceLinks),f=$w(t,r,l.sourceLinks)/s;l.y+=(f-Fw(l))*n}}},Gw=function(t,e,r,n){for(var o=e.length-1;o>=0;o--)for(var i=e[o],a=0,c=i.length;a<c;a++){var u=i[a];if(u.targetLinks.length){var l=Ww(r,u.targetLinks),s=Kw(t,r,u.targetLinks)/l;u.y+=(s-Fw(u))*n}}},Yw=function(t){var e=t.data,r=t.width,n=t.height,o=t.iterations,i=t.nodeWidth,a=t.nodePadding,c=t.sort,u=e.links,l=function(t,e,r){for(var n=t.nodes,o=t.links,i=n.map((function(t,e){var r=function(t,e){for(var r=[],n=[],o=[],i=[],a=0,c=t.length;a<c;a++){var u=t[a];u.source===e&&(o.push(u.target),i.push(a)),u.target===e&&(r.push(u.source),n.push(a))}return{sourceNodes:r,sourceLinks:n,targetLinks:i,targetNodes:o}}(o,e);return Rw(Rw(Rw({},t),r),{},{value:Math.max(Ww(o,r.sourceLinks),Ww(o,r.targetLinks)),depth:0})})),a=0,c=i.length;a<c;a++){var u=i[a];u.sourceNodes.length||Vw(i,u)}var l=ty()(i,(function(t){return t.depth})).depth;if(l>=1)for(var s=(e-r)/l,f=0,p=i.length;f<p;f++){var h=i[f];h.targetNodes.length||(h.depth=l),h.x=h.depth*s,h.dx=r}return{tree:i,maxDepth:l}}(e,r,i),s=l.tree,f=function(t){for(var e=[],r=0,n=t.length;r<n;r++){var o=t[r];e[o.depth]||(e[o.depth]=[]),e[o.depth].push(o)}return e}(s),p=function(t,e,r,n){for(var o=Cu()(t.map((function(t){return(e-(t.length-1)*r)/jw()(t,Uw)}))),i=0,a=t.length;i<a;i++)for(var c=0,u=t[i].length;c<u;c++){var l=t[i][c];l.y=c,l.dy=l.value*o}return n.map((function(t){return Rw(Rw({},t),{},{dy:Uw(t)*o})}))}(f,n,a,u);Xw(f,n,a,c);for(var h=1,d=1;d<=o;d++)Gw(s,f,p,h*=.99),Xw(f,n,a,c),Hw(s,f,p,h),Xw(f,n,a,c);return function(t,e){for(var r=0,n=t.length;r<n;r++){var o=t[r],i=0,a=0;o.targetLinks.sort((function(r,n){return t[e[r].target].y-t[e[n].target].y})),o.sourceLinks.sort((function(r,n){return t[e[r].source].y-t[e[n].source].y}));for(var c=0,u=o.targetLinks.length;c<u;c++){var l=e[o.targetLinks[c]];l&&(l.sy=i,i+=l.dy)}for(var s=0,f=o.sourceLinks.length;s<f;s++){var p=e[o.sourceLinks[s]];p&&(p.ty=a,a+=p.dy)}}}(s,p),{nodes:s,links:p}},Zw=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 Bw(Dw(t=Mw(this,e,[].concat(n))),"state",{activeElement:null,activeElementType:null,isTooltipActive:!1,nodes:[],links:[]}),t}var n,i,a;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&&Iw(t,e)}(e,t),n=e,i=[{key:"handleMouseEnter",value:function(t,e,r){var n=this.props,o=n.onMouseEnter,i=Y(n.children,xr);i?this.setState((function(r){return"hover"===i.props.trigger?Rw(Rw({},r),{},{activeElement:t,activeElementType:e,isTooltipActive:!0}):r}),(function(){o&&o(t,e,r)})):o&&o(t,e,r)}},{key:"handleMouseLeave",value:function(t,e,r){var n=this.props,o=n.onMouseLeave,i=Y(n.children,xr);i?this.setState((function(t){return"hover"===i.props.trigger?Rw(Rw({},t),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1}):t}),(function(){o&&o(t,e,r)})):o&&o(t,e,r)}},{key:"handleClick",value:function(t,e,r){var n=this.props,o=n.onClick,i=Y(n.children,xr);i&&"click"===i.props.trigger&&(this.state.isTooltipActive?this.setState((function(t){return Rw(Rw({},t),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1})})):this.setState((function(r){return Rw(Rw({},r),{},{activeElement:t,activeElementType:e,isTooltipActive:!0})}))),o&&o(t,e,r)}},{key:"renderLinks",value:function(t,e){var n=this,o=this.props,i=o.linkCurvature,a=o.link,c=o.margin,l=u()(c,"top")||0,s=u()(c,"left")||0;return r().createElement(ht,{className:"recharts-sankey-links",key:"recharts-sankey-links"},t.map((function(t,o){var c=t.sy,u=t.ty,f=t.dy,p=e[t.source],h=e[t.target],d=p.x+p.dx+s,y=h.x+s,v=function(t,e){var r=+t,n=e-r;return function(t){return r+n*t}}(d,y),m=v(i),b=v(1-i),g=Rw({sourceX:d,targetX:y,sourceY:p.y+c+f/2+l,targetY:h.y+u+f/2+l,sourceControlX:m,targetControlX:b,sourceRelativeY:c,targetRelativeY:u,linkWidth:f,index:o,payload:Rw(Rw({},t),{},{source:p,target:h})},rt(a,!1)),x={onMouseEnter:n.handleMouseEnter.bind(n,g,"link"),onMouseLeave:n.handleMouseLeave.bind(n,g,"link"),onClick:n.handleClick.bind(n,g,"link")};return r().createElement(ht,kw({key:"link-".concat(t.source,"-").concat(t.target,"-").concat(t.value)},x),n.constructor.renderLinkItem(a,g))})))}},{key:"renderNodes",value:function(t){var e=this,n=this.props,o=n.node,i=n.margin,a=u()(i,"top")||0,c=u()(i,"left")||0;return r().createElement(ht,{className:"recharts-sankey-nodes",key:"recharts-sankey-nodes"},t.map((function(t,n){var i=t.x,u=t.y,l=t.dx,s=t.dy,f=Rw(Rw({},rt(o,!1)),{},{x:i+c,y:u+a,width:l,height:s,index:n,payload:t}),p={onMouseEnter:e.handleMouseEnter.bind(e,f,"node"),onMouseLeave:e.handleMouseLeave.bind(e,f,"node"),onClick:e.handleClick.bind(e,f,"node")};return r().createElement(ht,kw({key:"node-".concat(t.x,"-").concat(t.y,"-").concat(t.value)},p),e.constructor.renderNodeItem(o,f))})))}},{key:"renderTooltip",value:function(){var t=this.props,e=t.children,n=t.width,o=t.height,i=t.nameKey,a=Y(e,xr);if(!a)return null;var c,u=this.state,l=u.isTooltipActive,s=u.activeElement,f=u.activeElementType,p={x:0,y:0,width:n,height:o},h=s?(c=s,"node"===f?{x:c.x+c.width/2,y:c.y+c.height/2}:{x:(c.sourceX+c.targetX)/2,y:(c.sourceY+c.targetY)/2}):zw,d=s?function(t,e,r){var n=t.payload;if("node"===e)return[{payload:t,name:Cl(n,r,""),value:Cl(n,"value")}];if(n.source&&n.target){var o=Cl(n.source,r,""),i=Cl(n.target,r,"");return[{payload:t,name:"".concat(o," - ").concat(i),value:Cl(n,"value")}]}return[]}(s,f,i):[];return r().cloneElement(a,{viewBox:p,active:l,coordinate:h,label:"",payload:d})}},{key:"render",value:function(){if(!Z(this))return null;var t=this.props,e=t.width,n=t.height,i=t.className,a=t.style,c=t.children,u=Ew(t,Sw),l=this.state,s=l.links,f=l.nodes,p=rt(u,!1);return r().createElement("div",{className:o("recharts-wrapper",i),style:Rw(Rw({},a),{},{position:"relative",cursor:"default",width:e,height:n}),role:"region"},r().createElement(lt,kw({},p,{width:e,height:n}),et(c),this.renderLinks(s,f),this.renderNodes(f)),this.renderTooltip())}}],a=[{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.height,i=t.margin,a=t.iterations,c=t.nodeWidth,u=t.nodePadding,l=t.sort;if(r!==e.prevData||n!==e.prevWidth||o!==e.prevHeight||!C(i,e.prevMargin)||a!==e.prevIterations||c!==e.prevNodeWidth||u!==e.prevNodePadding||l!==e.sort){var s=n-(i&&i.left||0)-(i&&i.right||0),f=o-(i&&i.top||0)-(i&&i.bottom||0),p=Yw({data:r,width:s,height:f,iterations:a,nodeWidth:c,nodePadding:u,sort:l}),h=p.links,d=p.nodes;return Rw(Rw({},e),{},{nodes:d,links:h,prevData:r,prevWidth:a,prevHeight:o,prevMargin:i,prevNodePadding:u,prevNodeWidth:c,prevIterations:a,prevSort:l})}return null}},{key:"renderLinkItem",value:function(t,e){if(r().isValidElement(t))return r().cloneElement(t,e);if(d()(t))return t(e);var n=e.sourceX,o=e.sourceY,i=e.sourceControlX,a=e.targetX,c=e.targetY,u=e.targetControlX,l=e.linkWidth,s=Ew(e,Aw);return r().createElement("path",kw({className:"recharts-sankey-link",d:"\n M".concat(n,",").concat(o,"\n C").concat(i,",").concat(o," ").concat(u,",").concat(c," ").concat(a,",").concat(c,"\n "),fill:"none",stroke:"#333",strokeWidth:l,strokeOpacity:"0.2"},rt(s,!1)))}},{key:"renderNodeItem",value:function(t,e){return r().isValidElement(t)?r().cloneElement(t,e):d()(t)?t(e):r().createElement(Od,kw({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},rt(e,!1),{role:"img"}))}}],i&&Tw(n.prototype,i),a&&Tw(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(e.PureComponent);Bw(Zw,"displayName","Sankey"),Bw(Zw,"defaultProps",{nameKey:"name",dataKey:"value",nodePadding:10,nodeWidth:10,linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5},sort:!0});var Jw=HO({chartName:"RadarChart",GraphicalChild:Bv,axisComponents:[{axisType:"angleAxis",AxisComp:_y},{axisType:"radiusAxis",AxisComp:my}],formatAxisMap:vs,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),Qw=HO({chartName:"ScatterChart",GraphicalChild:Vx,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:Hx},{axisType:"yAxis",AxisComp:Yx},{axisType:"zAxis",AxisComp:Tx}],formatAxisMap:pb}),tj=HO({chartName:"AreaChart",GraphicalChild:kx,axisComponents:[{axisType:"xAxis",AxisComp:Hx},{axisType:"yAxis",AxisComp:Yx}],formatAxisMap:pb}),ej=HO({chartName:"RadialBarChart",GraphicalChild:am,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:_y},{axisType:"radiusAxis",AxisComp:my}],formatAxisMap:vs,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),rj=HO({chartName:"ComposedChart",GraphicalChild:[px,kx,ib,Vx],axisComponents:[{axisType:"xAxis",AxisComp:Hx},{axisType:"yAxis",AxisComp:Yx},{axisType:"zAxis",AxisComp:Tx}],formatAxisMap:pb});function nj(){return nj=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},nj.apply(this,arguments)}function oj(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||aj(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 ij(t){return function(t){if(Array.isArray(t))return cj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||aj(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 aj(t,e){if(t){if("string"==typeof t)return cj(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)?cj(t,e):void 0}}function cj(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 uj={fontWeight:"bold",paintOrder:"stroke fill",fontSize:".75rem",stroke:"#FFF",fill:"black",pointerEvents:"none"};function lj(t){if(!t.children||0===t.children.length)return 1;var e=t.children.map((function(t){return lj(t)}));return 1+Math.max.apply(Math,ij(e))}var sj,fj=function(t){var n=t.className,i=t.data,a=t.children,c=t.width,u=t.height,l=t.padding,s=void 0===l?2:l,f=t.dataKey,p=void 0===f?"value":f,h=t.ringPadding,d=void 0===h?2:h,y=t.innerRadius,v=void 0===y?50:y,m=t.fill,b=void 0===m?"#333":m,g=t.stroke,x=void 0===g?"#FFF":g,O=t.textOptions,w=void 0===O?uj:O,j=t.outerRadius,S=void 0===j?Math.min(c,u)/2:j,A=t.cx,P=void 0===A?c/2:A,E=t.cy,k=void 0===E?u/2:E,T=t.startAngle,M=void 0===T?0:T,_=t.endAngle,C=void 0===_?360:_,D=t.onClick,I=t.onMouseEnter,N=t.onMouseLeave,R=oj((0,e.useState)(!1),2),B=R[0],L=R[1],z=oj((0,e.useState)(null),2),F=z[0],U=z[1],W=pi([0,i[p]],[0,C]),$=(S-v)/lj(i),K=[],q=new Map([]);function V(t,e){I&&I(t,e),U(t),L(!0)}function X(t,e){N&&N(t,e),U(null),L(!1)}function H(t){D&&D(t)}!function t(e,n){var o=n.radius,i=n.innerR,a=n.initialAngle,c=n.childColor,u=a;e&&e.forEach((function(e){var n,a,l=W(e[p]),f=u,h=null!==(n=null!==(a=null==e?void 0:e.fill)&&void 0!==a?a:c)&&void 0!==n?n:b,y=ds(0,0,i+o/2,-(f+l-l/2)),v=y.x,m=y.y;u+=l,K.push(r().createElement("g",{"aria-label":e.name,tabIndex:0},r().createElement(sf,{onClick:function(){return H(e)},onMouseEnter:function(t){return V(e,t)},onMouseLeave:function(t){return X(e,t)},fill:h,stroke:x,strokeWidth:s,startAngle:f,endAngle:f+l,innerRadius:i,outerRadius:i+o,cx:P,cy:k}),r().createElement(dn,nj({},w,{alignmentBaseline:"middle",textAnchor:"middle",x:v+P,y:k-m}),e[p])));var g=ds(P,k,i+o/2,f),O=g.x,j=g.y;return q.set(e.name,{x:O,y:j}),t(e.children,{radius:o,innerR:i+o+d,initialAngle:f,childColor:h})}))}(i.children,{radius:$,innerR:v,initialAngle:M});var G=o("recharts-sunburst",n);return r().createElement("div",{className:o("recharts-wrapper",n),style:{position:"relative",width:c,height:u},role:"region"},r().createElement(lt,{width:c,height:u},a,r().createElement(ht,{className:G},K)),function(){var t=Y([a],xr);if(!t||!F)return null;var e={x:0,y:0,width:c,height:u};return r().cloneElement(t,{viewBox:e,coordinate:q.get(F.name),payload:[F],active:B})}())};function pj(t){return pj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pj(t)}function hj(){return hj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},hj.apply(this,arguments)}function dj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?dj(Object(r),!0).forEach((function(e){vj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vj(t,e,r){var n;return n=function(t,e){if("object"!=pj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=pj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==pj(n)?n:String(n))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mj(t,e){var r="".concat(e.x||t.x),n=parseInt(r,10),o="".concat(e.y||t.y),i=parseInt(o,10),a="".concat((null==e?void 0:e.height)||(null==t?void 0:t.height)),c=parseInt(a,10);return yj(yj(yj({},e),ev(t)),{},{height:c,x:n,y:i})}function bj(t){return r().createElement(rv,hj({shapeType:"trapezoid",propTransformer:mj},t))}function gj(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return xj(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 xj(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 xj(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 Oj(t){return Oj="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},Oj(t)}function wj(){return wj=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},wj.apply(this,arguments)}function jj(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 Sj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jj(Object(r),!0).forEach((function(e){_j(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Aj(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,Cj(n.key),n)}}function Pj(t,e,r){return e=kj(e),function(t,e){if(e&&("object"===Oj(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Tj(t)}(t,Ej()?Reflect.construct(e,r||[],kj(t).constructor):e.apply(t,r))}function Ej(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ej=function(){return!!t})()}function kj(t){return kj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},kj(t)}function Tj(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mj(t,e){return Mj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Mj(t,e)}function _j(t,e,r){return(e=Cj(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Cj(t){var e=function(t,e){if("object"!=Oj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Oj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Oj(e)?e:String(e)}var Dj=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 _j(Tj(t=Pj(this,e,[].concat(n))),"state",{isAnimationFinished:!1}),_j(Tj(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),d()(e)&&e()})),_j(Tj(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),d()(e)&&e()})),t}var n,i,a;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&&Mj(t,e)}(e,t),n=e,a=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curTrapezoids:t.trapezoids,prevTrapezoids:e.curTrapezoids}:t.trapezoids!==e.curTrapezoids?{curTrapezoids:t.trapezoids}:null}}],(i=[{key:"isActiveIndex",value:function(t){var e=this.props.activeIndex;return Array.isArray(e)?-1!==e.indexOf(t):t===e}},{key:"renderTrapezoidsStatically",value:function(t){var e=this,n=this.props,o=n.shape,i=n.activeShape;return t.map((function(t,n){var a=e.isActiveIndex(n)?i:o,c=Sj(Sj({},t),{},{isActive:e.isActiveIndex(n),stroke:t.stroke});return r().createElement(ht,wj({className:"recharts-funnel-trapezoid"},z(e.props,t,n),{key:"trapezoid-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.name,"-").concat(null==t?void 0:t.value),role:"img"}),r().createElement(bj,wj({option:a},c)))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var t=this,e=this.props,n=e.trapezoids,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevTrapezoids;return r().createElement(sd,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"funnel-".concat(u),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(e){var o=e.t,i=n.map((function(t,e){var r=l&&l[e];if(r){var n=M(r.x,t.x),i=M(r.y,t.y),a=M(r.upperWidth,t.upperWidth),c=M(r.lowerWidth,t.lowerWidth),u=M(r.height,t.height);return Sj(Sj({},t),{},{x:n(o),y:i(o),upperWidth:a(o),lowerWidth:c(o),height:u(o)})}var s=M(t.x+t.upperWidth/2,t.x),f=M(t.y+t.height/2,t.y),p=M(0,t.upperWidth),h=M(0,t.lowerWidth),d=M(0,t.height);return Sj(Sj({},t),{},{x:s(o),y:f(o),upperWidth:p(o),lowerWidth:h(o),height:d(o)})}));return r().createElement(ht,null,t.renderTrapezoidsStatically(i))}))}},{key:"renderTrapezoids",value:function(){var t=this.props,e=t.trapezoids,r=t.isAnimationActive,n=this.state.prevTrapezoids;return!(r&&e&&e.length)||n&&Ru()(n,e)?this.renderTrapezoidsStatically(e):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.trapezoids,i=t.className,a=t.isAnimationActive,c=this.state.isAnimationFinished;if(e||!n||!n.length)return null;var u=o("recharts-trapezoids",i);return r().createElement(ht,{className:u},this.renderTrapezoids(),(!a||c)&&Ys.renderCallByParent(this.props,n))}}])&&Aj(n.prototype,i),a&&Aj(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(e.PureComponent);sj=Dj,_j(Dj,"displayName","Funnel"),_j(Dj,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!ur.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"}),_j(Dj,"getRealFunnelData",(function(t){var e=t.props,r=e.data,n=e.children,o=rt(t.props,!1),i=G(n,Mr);return r&&r.length?r.map((function(t,e){return Sj(Sj(Sj({payload:t},o),t),i&&i[e]&&i[e].props)})):i&&i.length?i.map((function(t){return Sj(Sj({},o),t.props)})):[]})),_j(Dj,"getRealWidthHeight",(function(t,e){var r=t.props.width,n=e.width,o=e.height,i=e.left,a=e.right,c=e.top,u=e.bottom,l=o,s=n;return O()(r)?s=r:p()(r)&&(s=s*parseFloat(r)/100),{realWidth:s-i-a-50,realHeight:l-u-c,offsetX:(n-s)/2,offsetY:(o-l)/2}})),_j(Dj,"getComposedData",(function(t){var e=t.item,r=t.offset,n=sj.getRealFunnelData(e),o=e.props,i=o.dataKey,a=o.nameKey,c=o.tooltipType,u=o.lastShapeType,l=o.reversed,s=r.left,f=r.top,p=sj.getRealWidthHeight(e,r),h=p.realHeight,d=p.realWidth,y=p.offsetX,v=p.offsetY,m=Math.max.apply(null,n.map((function(t){return Cl(t,i,0)}))),b=n.length,g=h/b,x={x:r.left,y:r.top,width:r.width,height:r.height},O=n.map((function(t,e){var r,o=Cl(t,i,0),l=Cl(t,a,e),p=o;if(e!==b-1)(r=Cl(n[e+1],i,0))instanceof Array&&(r=gj(r,1)[0]);else if(o instanceof Array&&2===o.length){var h=gj(o,2);p=h[0],r=h[1]}else r="rectangle"===u?p:0;var O=(m-p)*d/(2*m)+f+25+y,w=g*e+s+v,j=p/m*d,S=r/m*d,A=[{name:l,value:p,payload:t,dataKey:i,type:c}],P={x:O+j/2,y:w+g/2};return Sj(Sj({x:O,y:w,width:Math.max(j,S),upperWidth:j,lowerWidth:S,height:g,name:l,val:p,tooltipPayload:A,tooltipPosition:P},QO()(t,"width")),{},{payload:t,parentViewBox:x,labelViewBox:{x:O+(j-S)/4,y:w,width:Math.abs(j-S)/2+Math.min(j,S),height:g}})}));return l&&(O=O.map((function(t,e){var r=t.y-e*g+(b-1-e)*g;return Sj(Sj({},t),{},{upperWidth:t.lowerWidth,lowerWidth:t.upperWidth,x:t.x-(t.lowerWidth-t.upperWidth)/2,y:t.y-e*g+(b-1-e)*g,tooltipPosition:Sj(Sj({},t.tooltipPosition),{},{y:r+g/2}),labelViewBox:Sj(Sj({},t.labelViewBox),{},{y:r})})}))),{trapezoids:O,data:n}}));var Ij=HO({chartName:"FunnelChart",GraphicalChild:Dj,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}})})(),a})()));
//# sourceMappingURL=Recharts.js.map