/
www
/
wwwroot
/
alo88.autos
/
wp-content
/
plugins
/
seo-by-rank-math-pro
/
assets
/
admin
/
js
/
Upload File
HOME
(()=>{var t={3004:function(t){var e,r;e=function(){var t,e=0,r={},n={},o=(t=window.MutationObserver||window.WebKitMutationObserver,function(e,r){e&&1===e.nodeType&&(t?new t((function(t,e){r(t)})).observe(e,{childList:!0,subtree:!1}):window.addEventListener&&e.addEventListener("DOMNodeInserted",r,!1))});function i(t,e){if(!t)return this;e=e||{},this.parentElm=t,this.uid=e.uid,this.settings={selector:"*",callbacks:{}},Object.assign(this.settings,e),this.setup(),o(this.parentElm,this.setup.bind(this)),this.bindEvents()}return i.prototype={namespace:"dragsort",setup(){[...this.parentElm.childNodes].forEach((t=>{if(1!=t.nodeType)return t.parentNode.removeChild(t);t.matches(this.settings.selector)&&(t.draggable=!0)})),this.gap=this.getItemsGap(this.parentElm.firstElementChild)},throttle(t,e){var r=!1,n=this;return function(o){r||(t.call(n,o),r=!0,setTimeout((()=>r=!1),e))}},getDraggableElm(t){if(!t.closest)return null;var e=t.closest('[draggable="true"]');return this.uid==r.uid?e:null},dragstart(t,e){r=this;var n,o=this.getDraggableElm(e);o?(this.source=this.getInitialState(),this.target=this.getInitialState(),n=o.getBoundingClientRect(),this.source.elm=o,this.source.idx=this.getNodeIndex(o),this.source.size.width=n.width,this.source.size.height=n.height,t.dataTransfer.effectAllowed="move",this.settings.callbacks.dragStart&&this.settings.callbacks.dragStart(this.source.elm,t),setTimeout(this.afterDragStart.bind(this))):r={}},afterDragStart(){var t="vertical"==this.settings.mode?"height":"width";this.parentElm.classList.add(`${this.namespace}--dragStart`),this.source.elm.style[t]=this.source.size[t]+"px",this.source.elm.classList.add(`${this.namespace}--dragElem`)},dragover(t){t.preventDefault(),t.stopPropagation();var e=t.target;if((e=this.getDraggableElm(e))&&this.target){var r=this.target.elm,n=this.target.hoverDirection;t.dataTransfer.dropEffect="move",this.target.hoverDirection=this.getTargetDirection(t),r==e&&n==this.target.hoverDirection||this.directionAwareDragEnter(t,e)}},dragenter(t,e){(e=this.getDraggableElm(e))&&this.target&&this.isValidElm(e)&&this.source.elm!=e&&this.source.elm&&(this.target.bounding=e.getBoundingClientRect())},directionAwareDragEnter(t,e){var r;t.preventDefault(),t.stopPropagation(),t.dataTransfer.dropEffect="none",this.isValidElm(e)&&this.source.elm!=e&&this.source.elm&&(t.dataTransfer.dropEffect="move",this.cleanupLastTarget(),this.target.elm=e,this.target.idx=this.getNodeIndex(e),e.classList.add("over"),r=Math.abs(this.target.idx-this.source.idx),this.source.elm.classList.toggle(`${this.namespace}--hide`,r>0),"vertical"==this.settings.mode?this.target.elm.style[this.target.hoverDirection?"marginBottom":"marginTop"]=this.source.size.height+this.gap+"px":this.target.elm.style[this.target.hoverDirection?"marginRight":"marginLeft"]=this.source.size.width+this.gap+"px")},dragend(t){if(clearTimeout(this.dragoverTimeout),this.dragoverTimeout=null,this.parentElm.classList.remove(`${this.namespace}--dragStart`),!this.isValidElm(this.target.elm))return this.cleanup();var e=this.target.hoverDirection?this.target.elm.nextElementSibling:this.target.elm;return this.source.elm!=this.target.elm&&this.target.elm&&(this.target.elm.classList.add(`${this.namespace}--noAnim`),this.cleanup(),this.parentElm.insertBefore(this.source.elm,e)),this.source.elm&&this.source.elm.classList.remove(`${this.namespace}--dragElem`,`${this.namespace}--hide`),this.settings.callbacks.dragEnd&&this.settings.callbacks.dragEnd(this.source.elm),this},isTargetLastChild(){return this.parentElm.lastElementChild==this.target.elm},getTargetDirection(t){if(this.target.bounding)return"vertical"==this.settings.mode?t.pageY>this.target.bounding.top+this.target.bounding.height/2?1:0:t.pageX>this.target.bounding.left+this.target.bounding.width/2?1:0},getNodeIndex(t){for(var e=0;t=t.previousSibling;)3==t.nodeType&&/^\s*$/.test(t.data)||e++;return e},isValidElm(t){return t&&t.nodeType&&t.parentNode==this.parentElm},cleanup(){r={},[...this.parentElm.children].forEach((t=>{t.removeAttribute("style"),setTimeout((()=>{t.classList.remove(`${this.namespace}--over`,`${this.namespace}--noAnim`,`${this.namespace}--dragElem`)}),50)}))},cleanupLastTarget(){this.target.elm&&(this.target.elm.classList.remove(`${this.namespace}--hide`,`${this.namespace}--over`),this.target.elm.removeAttribute("style"))},getInitialState:()=>({elm:null,size:{}}),getItemsGap(t){var e=getComputedStyle(t),r=getComputedStyle(t.parentNode),n="vertical"==this.settings.mode,o=parseInt(r.gap)||0;return parseInt(e["margin"+(n?"Top":"Left")])+parseInt(e["margin"+(n?"Bottom":"Right")])+o},bindEvents(t){for(var e in this.listeners=this.listeners||{dragstart:t=>this.dragstart(t,t.target),dragenter:t=>this.dragenter(t,t.target),dragend:t=>this.dragend(t,t.target),dragover:this.throttle(this.dragover,350)},this.listeners)this.parentElm[t?"removeEventListener":"addEventListener"](e,this.listeners[e])},destroy(){this.cleanup(),this.bindEvents(!0),delete n[this.uid]}},function(t,r){return n[++e]=t.DragSort?n[t.DragSort]:new i(t,{...r,uid:e}),t.DragSort=e,n[e]}},"function"==typeof(r=r||{})&&r.amd?r([],e):t.exports=e()},4184:(t,e)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var i=typeof r;if("string"===i||"number"===i)t.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&t.push(a)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){t.push(r.toString());continue}for(var u in r)n.call(r,u)&&r[u]&&t.push(u)}}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},9887:function(t,e,r){var n;!function(o){"use strict";var i,a=1e9,u={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},c=!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,g=p(m/v),b={};function x(t,e){var r,n,o,i,a,u,l,s,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),c?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,u=s.length):(n=s,o=a,u=l.length),i>(u=(a=Math.ceil(p/v))>u?a+1:u+1)&&(i=u,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((u=l.length)-(i=s.length)<0&&(i=u,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),u=l.length;0==l[--u];)l.pop();return e.d=l,e.e=o,c?M(e,p):e}function w(t,e,r){if(t!==~~t||t<e||t>r)throw Error(s+t)}function O(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+=P(r)),i+=n;a=t[e],(r=v-(n=a+"").length)&&(i+=P(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}b.absoluteValue=b.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},b.comparedTo=b.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},b.decimalPlaces=b.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},b.dividedBy=b.div=function(t){return S(this,new this.constructor(t))},b.dividedToIntegerBy=b.idiv=function(t){var e=this.constructor;return M(S(this,new e(t),0,1),e.precision)},b.equals=b.eq=function(t){return!this.cmp(t)},b.exponent=function(){return E(this)},b.greaterThan=b.gt=function(t){return this.cmp(t)>0},b.greaterThanOrEqualTo=b.gte=function(t){return this.cmp(t)>=0},b.isInteger=b.isint=function(){return this.e>this.d.length-2},b.isNegative=b.isneg=function(){return this.s<0},b.isPositive=b.ispos=function(){return this.s>0},b.isZero=function(){return 0===this.s},b.lessThan=b.lt=function(t){return this.cmp(t)<0},b.lessThanOrEqualTo=b.lte=function(t){return this.cmp(t)<1},b.logarithm=b.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):(c=!1,e=S(_(r,a),_(t,a),a),c=!0,M(e,o))},b.minus=b.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?T(e,t):x(e,(t.s=-t.s,t))},b.modulo=b.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?(c=!1,e=S(r,t,0,1).times(t),c=!0,r.minus(e)):M(new n(r),o)},b.naturalExponential=b.exp=function(){return j(this)},b.naturalLogarithm=b.ln=function(){return _(this)},b.negated=b.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},b.plus=b.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?x(e,t):T(e,(t.s=-t.s,t))},b.precision=b.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=E(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},b.squareRoot=b.sqrt=function(){var t,e,r,n,o,i,a,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(l+"NaN")}for(t=E(u),c=!1,0==(o=Math.sqrt(+u))||o==1/0?(((e=O(u.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(S(u,i,a+2)).times(.5),O(i.d).slice(0,a)===(e=O(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(u)){n=i;break}}else if("9999"!=e)break;a+=4}return c=!0,M(n,r)},b.times=b.mul=function(t){var e,r,n,o,i,a,u,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;)u=i[o]+d[n]*h[o-n-1]+e,i[o--]=u%y|0,e=u/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,c?M(t,p.precision):t},b.toDecimalPlaces=b.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(w(t,0,a),void 0===e?e=n.rounding:w(e,0,8),M(r,t+E(r)+1,e))},b.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=C(n,!0):(w(t,0,a),void 0===e?e=o.rounding:w(e,0,8),r=C(n=M(new o(n),t+1,e),!0,t+1)),r},b.toFixed=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?C(o):(w(t,0,a),void 0===e?e=i.rounding:w(e,0,8),r=C((n=M(new i(o),t+E(o)+1,e)).abs(),!1,t+E(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},b.toInteger=b.toint=function(){var t=this,e=t.constructor;return M(new e(t),E(t)+1,e.rounding)},b.toNumber=function(){return+this},b.toPower=b.pow=function(t){var e,r,n,o,a,u,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(u=(e=t.e)>=(r=t.d.length-1),a=s.s,u){if((r=h<0?-h:h)<=m){for(o=new f(i),e=Math.ceil(n/v+4),c=!1;r%2&&D((o=o.times(s)).d,e),0!==(r=p(r/2));)D((s=s.times(s)).d,e);return c=!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,c=!1,o=t.times(_(s,n+12)),c=!0,(o=j(o)).s=a,o},b.toPrecision=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?n=C(o,(r=E(o))<=i.toExpNeg||r>=i.toExpPos):(w(t,1,a),void 0===e?e=i.rounding:w(e,0,8),n=C(o=M(new i(o),t,e),t<=(r=E(o))||r<=i.toExpNeg,t)),n},b.toSignificantDigits=b.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(w(t,1,a),void 0===e?e=r.rounding:w(e,0,8)),M(new r(this),t,e)},b.toString=b.valueOf=b.val=b.toJSON=function(){var t=this,e=E(t),r=t.constructor;return C(t,e<=r.toExpNeg||e>=r.toExpPos)};var S=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 u,c,s,f,p,h,d,m,g,b,x,w,O,S,j,k,P,_,A=n.constructor,T=n.s==o.s?1:-1,C=n.d,D=o.d;if(!n.s)return new A(n);if(!o.s)throw Error(l+"Division by zero");for(c=n.e-o.e,P=D.length,j=C.length,m=(d=new A(T)).d=[],s=0;D[s]==(C[s]||0);)++s;if(D[s]>(C[s]||0)&&--c,(w=null==i?i=A.precision:a?i+(E(n)-E(o))+1:i)<0)return new A(0);if(w=w/v+2|0,s=0,1==P)for(f=0,D=D[0],w++;(s<j||f)&&w--;s++)O=f*y+(C[s]||0),m[s]=O/D|0,f=O%D|0;else{for((f=y/(D[0]+1)|0)>1&&(D=t(D,f),C=t(C,f),P=D.length,j=C.length),S=P,b=(g=C.slice(0,P)).length;b<P;)g[b++]=0;(_=D.slice()).unshift(0),k=D[0],D[1]>=y/2&&++k;do{f=0,(u=e(D,g,P,b))<0?(x=g[0],P!=b&&(x=x*y+(g[1]||0)),(f=x/k|0)>1?(f>=y&&(f=y-1),1==(u=e(p=t(D,f),g,h=p.length,b=g.length))&&(f--,r(p,P<h?_:D,h))):(0==f&&(u=f=1),p=D.slice()),(h=p.length)<b&&p.unshift(0),r(g,p,b),-1==u&&(u=e(D,g,P,b=g.length))<1&&(f++,r(g,P<b?_:D,b)),b=g.length):0===u&&(f++,g=[0]),m[s++]=f,u&&g[0]?g[b++]=C[S]||0:(g=[C[S]],b=1)}while((S++<j||void 0!==g[0])&&w--)}return m[0]||m.shift(),d.e=c,M(d,a?i+E(d)+1:i)}}();function j(t,e){var r,n,o,a,u,l=0,s=0,p=t.constructor,d=p.precision;if(E(t)>16)throw Error(f+E(t));if(!t.s)return new p(i);for(null==e?(c=!1,u=d):u=e,a=new p(.03125);t.abs().gte(.1);)t=t.times(a),s+=5;for(u+=Math.log(h(2,s))/Math.LN10*2+5|0,r=n=o=new p(i),p.precision=u;;){if(n=M(n.times(t),u),r=r.times(++l),O((a=o.plus(S(n,r,u))).d).slice(0,u)===O(o.d).slice(0,u)){for(;s--;)o=M(o.times(o),u);return p.precision=d,null==e?(c=!0,M(o,d)):o}o=a}}function E(t){for(var e=t.e*v,r=t.d[0];r>=10;r/=10)e++;return e}function k(t,e,r){if(e>t.LN10.sd())throw c=!0,r&&(t.precision=r),Error(l+"LN10 precision limit exceeded");return M(new t(t.LN10),e)}function P(t){for(var e="";t--;)e+="0";return e}function _(t,e){var r,n,o,a,u,s,f,p,h,d=1,y=t,v=y.d,m=y.constructor,g=m.precision;if(y.s<1)throw Error(l+(y.s?"NaN":"-Infinity"));if(y.eq(i))return new m(0);if(null==e?(c=!1,p=g):p=e,y.eq(10))return null==e&&(c=!0),k(m,p);if(p+=10,m.precision=p,n=(r=O(v)).charAt(0),a=E(y),!(Math.abs(a)<15e14))return f=k(m,p+2,g).times(a+""),y=_(new m(n+"."+r.slice(1)),p-10).plus(f),m.precision=g,null==e?(c=!0,M(y,g)):y;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=O((y=y.times(t)).d)).charAt(0),d++;for(a=E(y),n>1?(y=new m("0."+r),a++):y=new m(n+"."+r.slice(1)),s=u=y=S(y.minus(i),y.plus(i),p),h=M(y.times(y),p),o=3;;){if(u=M(u.times(h),p),O((f=s.plus(S(u,new m(o),p))).d).slice(0,p)===O(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(k(m,p+2,g).times(a+""))),s=S(s,new m(d),p),m.precision=g,null==e?(c=!0,M(s,g)):s;s=f,o+=2}}function A(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),c&&(t.e>g||t.e<-g))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,u,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&&(u=s/(i=h(10,a-o-1))%10|0,l=e<0||void 0!==m[d+1]||s%i,l=r<4?(u||l)&&(0==r||r==(t.s<0?3:2)):u>5||5==u&&(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=E(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(c&&(t.e>g||t.e<-g))throw Error(f+E(t));return t}function T(t,e){var r,n,o,i,a,u,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),c?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,u=p.length):(r=p,n=s,u=l.length),a>(o=Math.max(Math.ceil(d/v),u)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((f=(o=l.length)<(u=p.length))&&(u=o),o=0;o<u;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),u=l.length,o=p.length-u;o>0;--o)l[u++]=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[--u];)l.pop();for(;0===l[0];l.shift())--n;return l[0]?(e.d=l,e.e=n,c?M(e,d):e):new h(0)}function C(t,e,r){var n,o=E(t),i=O(t.d),a=i.length;return e?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+P(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+P(-o-1)+i,r&&(n=r-a)>0&&(i+=P(n))):o>=a?(i+=P(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+P(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=P(n))),t.s<0?"-"+i:i}function D(t,e){if(t.length>e)return t.length=e,!0}function N(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}u=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])):A(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);A(e,t)}if(i.prototype=b,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=N,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}(u),u.default=u.Decimal=u,i=new u(1),void 0===(n=function(){return u}.call(e,r,e,t))||(t.exports=n)}()},6729: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 u=new o(n,i||t,a),c=r?r+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],u]:t._events[c].push(u):(t._events[c]=u,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function u(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),u.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},u.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},u.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},u.prototype.emit=function(t,e,n,o,i,a){var u=r?r+t:t;if(!this._events[u])return!1;var c,l,s=this._events[u],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,c=new Array(f-1);l<f;l++)c[l-1]=arguments[l];s.fn.apply(s.context,c)}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(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];s[l].fn.apply(s[l].context,c)}}return!0},u.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},u.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},u.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 u=this._events[i];if(u.fn)u.fn!==e||o&&!u.once||n&&u.context!==n||a(this,i);else{for(var c=0,l=[],s=u.length;c<s;c++)(u[c].fn!==e||o&&!u[c].once||n&&u[c].context!==n)&&l.push(u[c]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},u.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},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,t.exports=u},8552:(t,e,r)=>{var n=r(852)(r(5639),"DataView");t.exports=n},1989:(t,e,r)=>{var n=r(1789),o=r(401),i=r(7667),a=r(1327),u=r(1866);function c(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])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},8407:(t,e,r)=>{var n=r(7040),o=r(4125),i=r(2117),a=r(7518),u=r(4705);function c(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])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},7071:(t,e,r)=>{var n=r(852)(r(5639),"Map");t.exports=n},3369:(t,e,r)=>{var n=r(4785),o=r(1285),i=r(6e3),a=r(9916),u=r(5265);function c(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])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},3818:(t,e,r)=>{var n=r(852)(r(5639),"Promise");t.exports=n},8525:(t,e,r)=>{var n=r(852)(r(5639),"Set");t.exports=n},8668:(t,e,r)=>{var n=r(3369),o=r(619),i=r(2385);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},6384:(t,e,r)=>{var n=r(8407),o=r(7465),i=r(3779),a=r(7599),u=r(4758),c=r(4309);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=u,l.prototype.set=c,t.exports=l},2705:(t,e,r)=>{var n=r(5639).Symbol;t.exports=n},1149:(t,e,r)=>{var n=r(5639).Uint8Array;t.exports=n},577:(t,e,r)=>{var n=r(852)(r(5639),"WeakMap");t.exports=n},6874: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)}},6193: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}},4963: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}},7443:(t,e,r)=>{var n=r(2118);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},1196: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}},4636:(t,e,r)=>{var n=r(2545),o=r(5694),i=r(1469),a=r(4144),u=r(5776),c=r(6719),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&&c(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)||u(v,y))||d.push(v);return d}},9932: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}},2488: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}},2908: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}},4286:t=>{t.exports=function(t){return t.split("")}},8470:(t,e,r)=>{var n=r(7813);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},9465:(t,e,r)=>{var n=r(8777);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},9881:(t,e,r)=>{var n=r(7816),o=r(9291)(n);t.exports=o},3239:(t,e,r)=>{var n=r(9881);t.exports=function(t,e){var r=!0;return n(t,(function(t,n,o){return r=!!e(t,n,o)})),r}},6029:(t,e,r)=>{var n=r(3448);t.exports=function(t,e,r){for(var o=-1,i=t.length;++o<i;){var a=t[o],u=e(a);if(null!=u&&(void 0===c?u==u&&!n(u):r(u,c)))var c=u,l=a}return l}},1848: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}},1078:(t,e,r)=>{var n=r(2488),o=r(7285);t.exports=function t(e,r,i,a,u){var c=-1,l=e.length;for(i||(i=o),u||(u=[]);++c<l;){var s=e[c];r>0&&i(s)?r>1?t(s,r-1,i,a,u):n(u,s):a||(u[u.length]=s)}return u}},8483:(t,e,r)=>{var n=r(5063)();t.exports=n},7816:(t,e,r)=>{var n=r(8483),o=r(3674);t.exports=function(t,e){return t&&n(t,e,o)}},7786:(t,e,r)=>{var n=r(1811),o=r(327);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}},8866:(t,e,r)=>{var n=r(2488),o=r(1469);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},4239:(t,e,r)=>{var n=r(2705),o=r(9607),i=r(2333),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)}},3325:t=>{t.exports=function(t,e){return t>e}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},2118:(t,e,r)=>{var n=r(1848),o=r(2722),i=r(2351);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},9454:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},939:(t,e,r)=>{var n=r(2492),o=r(7005);t.exports=function t(e,r,i,a,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,u))}},2492:(t,e,r)=>{var n=r(6384),o=r(7114),i=r(8351),a=r(6096),u=r(4160),c=r(1469),l=r(4144),s=r(6719),f="[object Arguments]",p="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,y,v,m){var g=c(t),b=c(e),x=g?p:u(t),w=b?p:u(e),O=(x=x==f?h:x)==h,S=(w=w==f?h:w)==h,j=x==w;if(j&&l(t)){if(!l(e))return!1;g=!0,O=!1}if(j&&!O)return m||(m=new n),g||s(t)?o(t,e,r,y,v,m):i(t,e,x,r,y,v,m);if(!(1&r)){var E=O&&d.call(t,"__wrapped__"),k=S&&d.call(e,"__wrapped__");if(E||k){var P=E?t.value():t,_=k?e.value():e;return m||(m=new n),v(P,_,r,y,m)}}return!!j&&(m||(m=new n),a(t,e,r,y,v,m))}},2958:(t,e,r)=>{var n=r(6384),o=r(939);t.exports=function(t,e,r,i){var a=r.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=r[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var s=(l=r[a])[0],f=t[s],p=l[1];if(c&&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}},2722:t=>{t.exports=function(t){return t!=t}},8458:(t,e,r)=>{var n=r(3560),o=r(5346),i=r(3218),a=r(346),u=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,s=c.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:u).test(a(t))}},8749:(t,e,r)=>{var n=r(4239),o=r(1780),i=r(7005),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)]}},7206:(t,e,r)=>{var n=r(1573),o=r(6432),i=r(6557),a=r(1469),u=r(9601);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},280:(t,e,r)=>{var n=r(5726),o=r(6916),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}},433:t=>{t.exports=function(t,e){return t<e}},9199:(t,e,r)=>{var n=r(9881),o=r(8612);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}},1573:(t,e,r)=>{var n=r(2958),o=r(1499),i=r(2634);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)}}},6432:(t,e,r)=>{var n=r(939),o=r(7361),i=r(9095),a=r(5403),u=r(9162),c=r(2634),l=r(327);t.exports=function(t,e){return a(t)&&u(e)?c(l(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},9556:(t,e,r)=>{var n=r(9932),o=r(7786),i=r(7206),a=r(9199),u=r(1131),c=r(1717),l=r(5022),s=r(6557),f=r(1469);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,c(i));var h=a(t,(function(t,r,o){return{criteria:n(e,(function(e){return e(t)})),index:++p,value:t}}));return u(h,(function(t,e){return l(t,e,r)}))}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,r)=>{var n=r(7786);t.exports=function(t){return function(e){return n(e,t)}}},98:t=>{var e=Math.ceil,r=Math.max;t.exports=function(t,n,o,i){for(var a=-1,u=r(e((n-t)/(o||1)),0),c=Array(u);u--;)c[i?u:++a]=t,t+=o;return c}},5976:(t,e,r)=>{var n=r(6557),o=r(5357),i=r(61);t.exports=function(t,e){return i(o(t,e,n),t+"")}},6560:(t,e,r)=>{var n=r(5703),o=r(8777),i=r(6557),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},4259: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}},5076:(t,e,r)=>{var n=r(9881);t.exports=function(t,e){var r;return n(t,(function(t,n,o){return!(r=e(t,n,o))})),!!r}},1131:t=>{t.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}},2545:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},531:(t,e,r)=>{var n=r(2705),o=r(9932),i=r(1469),a=r(3448),u=n?n.prototype:void 0,c=u?u.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 c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r}},7561:(t,e,r)=>{var n=r(7990),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},1717:t=>{t.exports=function(t){return function(e){return t(e)}}},5652:(t,e,r)=>{var n=r(8668),o=r(7443),i=r(1196),a=r(4757),u=r(3593),c=r(1814);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:u(t);if(y)return c(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 g=d.length;g--;)if(d[g]===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}},4757:t=>{t.exports=function(t,e){return t.has(e)}},1811:(t,e,r)=>{var n=r(1469),o=r(5403),i=r(5514),a=r(9833);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},180:(t,e,r)=>{var n=r(4259);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)}},6393:(t,e,r)=>{var n=r(3448);t.exports=function(t,e){if(t!==e){var r=void 0!==t,o=null===t,i=t==t,a=n(t),u=void 0!==e,c=null===e,l=e==e,s=n(e);if(!c&&!s&&!a&&t>e||a&&u&&l&&!c&&!s||o&&u&&l||!r&&l||!i)return 1;if(!o&&!a&&!s&&t<e||s&&r&&i&&!o&&!a||c&&r&&i||!u&&i||!l)return-1}return 0}},5022:(t,e,r)=>{var n=r(6393);t.exports=function(t,e,r){for(var o=-1,i=t.criteria,a=e.criteria,u=i.length,c=r.length;++o<u;){var l=n(i[o],a[o]);if(l)return o>=c?l:l*("desc"==r[o]?-1:1)}return t.index-e.index}},4429:(t,e,r)=>{var n=r(5639)["__core-js_shared__"];t.exports=n},9291:(t,e,r)=>{var n=r(8612);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,u=Object(r);(e?a--:++a<i)&&!1!==o(u[a],a,u););return r}}},5063:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===r(i[c],c,i))break}return e}}},8805:(t,e,r)=>{var n=r(180),o=r(2689),i=r(3140),a=r(9833);t.exports=function(t){return function(e){e=a(e);var r=o(e)?i(e):void 0,u=r?r[0]:e.charAt(0),c=r?n(r,1).join(""):e.slice(1);return u[t]()+c}}},7740:(t,e,r)=>{var n=r(7206),o=r(8612),i=r(3674);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var c=n(r,3);e=i(e),r=function(t){return c(u[t],t,u)}}var l=t(e,r,a);return l>-1?u[c?e[l]:l]:void 0}}},7445:(t,e,r)=>{var n=r(98),o=r(6612),i=r(8601);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)}}},3593:(t,e,r)=>{var n=r(8525),o=r(308),i=r(1814),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},8777:(t,e,r)=>{var n=r(852),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},7114:(t,e,r)=>{var n=r(8668),o=r(2908),i=r(4757);t.exports=function(t,e,r,a,u,c){var l=1&r,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),h=c.get(e);if(p&&h)return p==e&&h==t;var d=-1,y=!0,v=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++d<s;){var m=t[d],g=e[d];if(a)var b=l?a(g,m,d,e,t,c):a(m,g,d,t,e,c);if(void 0!==b){if(b)continue;y=!1;break}if(v){if(!o(e,(function(t,e){if(!i(v,e)&&(m===t||u(m,t,r,a,c)))return v.push(e)}))){y=!1;break}}else if(m!==g&&!u(m,g,r,a,c)){y=!1;break}}return c.delete(t),c.delete(e),y}},8351:(t,e,r)=>{var n=r(2705),o=r(1149),i=r(7813),a=r(7114),u=r(8776),c=r(1814),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=u;case"[object Set]":var d=1&n;if(h||(h=c),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}},6096:(t,e,r)=>{var n=r(8234),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var c=1&r,l=n(t),s=l.length;if(s!=n(e).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in e:o.call(e,p)))return!1}var h=u.get(t),d=u.get(e);if(h&&d)return h==e&&d==t;var y=!0;u.set(t,e),u.set(e,t);for(var v=c;++f<s;){var m=t[p=l[f]],g=e[p];if(i)var b=c?i(g,m,p,e,t,u):i(m,g,p,t,e,u);if(!(void 0===b?m===g||a(m,g,r,i,u):b)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var x=t.constructor,w=e.constructor;x==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(y=!1)}return u.delete(t),u.delete(e),y}},1957:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},8234:(t,e,r)=>{var n=r(8866),o=r(9551),i=r(3674);t.exports=function(t){return n(t,i,o)}},5050:(t,e,r)=>{var n=r(7019);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},1499:(t,e,r)=>{var n=r(9162),o=r(3674);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}},852:(t,e,r)=>{var n=r(8458),o=r(7801);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},5924:(t,e,r)=>{var n=r(5569)(Object.getPrototypeOf,Object);t.exports=n},9607:(t,e,r)=>{var n=r(2705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[u]=r:delete t[u]),o}},9551:(t,e,r)=>{var n=r(4963),o=r(479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=u},4160:(t,e,r)=>{var n=r(8552),o=r(7071),i=r(3818),a=r(8525),u=r(577),c=r(4239),l=r(346),s="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",d="[object DataView]",y=l(n),v=l(o),m=l(i),g=l(a),b=l(u),x=c;(n&&x(new n(new ArrayBuffer(1)))!=d||o&&x(new o)!=s||i&&x(i.resolve())!=f||a&&x(new a)!=p||u&&x(new u)!=h)&&(x=function(t){var e=c(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 g:return p;case b:return h}return e}),t.exports=x},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,r)=>{var n=r(1811),o=r(5694),i=r(1469),a=r(5776),u=r(1780),c=r(327);t.exports=function(t,e,r){for(var l=-1,s=(e=n(e,t)).length,f=!1;++l<s;){var p=c(e[l]);if(!(f=null!=t&&r(t,p)))break;t=t[p]}return f||++l!=s?f:!!(s=null==t?0:t.length)&&u(s)&&a(p,s)&&(i(t)||o(t))}},2689:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},1789:(t,e,r)=>{var n=r(4536);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,r)=>{var n=r(4536),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}},1327:(t,e,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},1866:(t,e,r)=>{var n=r(4536);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}},7285:(t,e,r)=>{var n=r(2705),o=r(5694),i=r(1469),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},5776: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}},6612:(t,e,r)=>{var n=r(7813),o=r(8612),i=r(5776),a=r(3218);t.exports=function(t,e,r){if(!a(r))return!1;var u=typeof e;return!!("number"==u?o(r)&&i(e,r.length):"string"==u&&e in r)&&n(r[e],t)}},5403:(t,e,r)=>{var n=r(1469),o=r(3448),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))}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,r)=>{var n,o=r(4429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},9162:(t,e,r)=>{var n=r(3218);t.exports=function(t){return t==t&&!n(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,r)=>{var n=r(8470),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)}},2117:(t,e,r)=>{var n=r(8470);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},7518:(t,e,r)=>{var n=r(8470);t.exports=function(t){return n(this.__data__,t)>-1}},4705:(t,e,r)=>{var n=r(8470);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}},4785:(t,e,r)=>{var n=r(1989),o=r(8407),i=r(7071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},1285:(t,e,r)=>{var n=r(5050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).get(t)}},9916:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).has(t)}},5265:(t,e,r)=>{var n=r(5050);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}},8776:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},2634:t=>{t.exports=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}},4523:(t,e,r)=>{var n=r(8306);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},4536:(t,e,r)=>{var n=r(852)(Object,"create");t.exports=n},6916:(t,e,r)=>{var n=r(5569)(Object.keys,Object);t.exports=n},1167:(t,e,r)=>{t=r.nmd(t);var n=r(1957),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},5357:(t,e,r)=>{var n=r(6874),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,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=i[a];return l[e]=r(c),n(t,this,l)}}},5639:(t,e,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},61:(t,e,r)=>{var n=r(6560),o=r(1275)(n);t.exports=o},1275: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)}}},7465:(t,e,r)=>{var n=r(8407);t.exports=function(){this.__data__=new n,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,r)=>{var n=r(8407),o=r(7071),i=r(3369);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}},2351: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}},3140:(t,e,r)=>{var n=r(4286),o=r(2689),i=r(676);t.exports=function(t){return o(t)?i(t):n(t)}},5514:(t,e,r)=>{var n=r(4523),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},327:(t,e,r)=>{var n=r(3448);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},346: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""}},7990:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},676: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}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+n+"|"+o+")"+"?",l="[\\ufe0e\\ufe0f]?",s=l+c+("(?:\\u200d(?:"+[i,a,u].join("|")+")"+l+c+")*"),f="(?:"+[i+n+"?",n,a,u,r].join("|")+")",p=RegExp(o+"(?="+o+")|"+f+s,"g");t.exports=function(t){return t.match(p)||[]}},5703:t=>{t.exports=function(t){return function(){return t}}},3279:(t,e,r)=>{var n=r(3218),o=r(7771),i=r(4841),a=Math.max,u=Math.min;t.exports=function(t,e,r){var c,l,s,f,p,h,d=0,y=!1,v=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var r=c,n=l;return c=l=void 0,d=e,f=t.apply(n,r)}function b(t){var r=t-h;return void 0===h||r>=e||r<0||v&&t-d>=s}function x(){var t=o();if(b(t))return w(t);p=setTimeout(x,function(t){var r=e-(t-h);return v?u(r,s-(t-d)):r}(t))}function w(t){return p=void 0,m&&c?g(t):(c=l=void 0,f)}function O(){var t=o(),r=b(t);if(c=arguments,l=this,h=t,r){if(void 0===p)return function(t){return d=t,p=setTimeout(x,e),y?g(t):f}(h);if(v)return clearTimeout(p),p=setTimeout(x,e),g(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),O.cancel=function(){void 0!==p&&clearTimeout(p),d=0,c=h=l=p=void 0},O.flush=function(){return void 0===p?f:w(o())},O}},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},711:(t,e,r)=>{var n=r(6193),o=r(3239),i=r(7206),a=r(1469),u=r(6612);t.exports=function(t,e,r){var c=a(t)?n:o;return r&&u(t,e,r)&&(e=void 0),c(t,i(e,3))}},3311:(t,e,r)=>{var n=r(7740)(r(998));t.exports=n},998:(t,e,r)=>{var n=r(1848),o=r(7206),i=r(554),a=Math.max;t.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return-1;var c=null==r?0:i(r);return c<0&&(c=a(u+c,0)),n(t,o(e,3),c)}},4654:(t,e,r)=>{var n=r(1078),o=r(5161);t.exports=function(t,e){return n(o(t,e),1)}},7361:(t,e,r)=>{var n=r(7786);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},9095:(t,e,r)=>{var n=r(13),o=r(222);t.exports=function(t,e){return null!=t&&o(t,e,n)}},6557:t=>{t.exports=function(t){return t}},5694:(t,e,r)=>{var n=r(9454),o=r(7005),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,r)=>{var n=r(3560),o=r(1780);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},1584:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==n(t)}},4144:(t,e,r)=>{t=r.nmd(t);var n=r(5639),o=r(5062),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,u=a&&a.exports===i?n.Buffer:void 0,c=(u?u.isBuffer:void 0)||o;t.exports=c},8446:(t,e,r)=>{var n=r(939);t.exports=function(t,e){return n(t,e)}},3560:(t,e,r)=>{var n=r(4239),o=r(3218);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}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7654:(t,e,r)=>{var n=r(1763);t.exports=function(t){return n(t)&&t!=+t}},4293:t=>{t.exports=function(t){return null==t}},1763:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},8630:(t,e,r)=>{var n=r(4239),o=r(5924),i=r(7005),a=Function.prototype,u=Object.prototype,c=a.toString,l=u.hasOwnProperty,s=c.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&&c.call(r)==s}},7037:(t,e,r)=>{var n=r(4239),o=r(1469),i=r(7005);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},3448:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},6719:(t,e,r)=>{var n=r(8749),o=r(1717),i=r(1167),a=i&&i.isTypedArray,u=a?o(a):n;t.exports=u},3674:(t,e,r)=>{var n=r(4636),o=r(280),i=r(8612);t.exports=function(t){return i(t)?n(t):o(t)}},928:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},5161:(t,e,r)=>{var n=r(9932),o=r(7206),i=r(9199),a=r(1469);t.exports=function(t,e){return(a(t)?n:i)(t,o(e,3))}},6604:(t,e,r)=>{var n=r(9465),o=r(7816),i=r(7206);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}},6162:(t,e,r)=>{var n=r(6029),o=r(3325),i=r(6557);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},8306:(t,e,r)=>{var n=r(3369);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},3632:(t,e,r)=>{var n=r(6029),o=r(433),i=r(6557);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},308:t=>{t.exports=function(){}},7771:(t,e,r)=>{var n=r(5639);t.exports=function(){return n.Date.now()}},9601:(t,e,r)=>{var n=r(371),o=r(9152),i=r(5403),a=r(327);t.exports=function(t){return i(t)?n(a(t)):o(t)}},6026:(t,e,r)=>{var n=r(7445)();t.exports=n},9704:(t,e,r)=>{var n=r(2908),o=r(7206),i=r(5076),a=r(1469),u=r(6612);t.exports=function(t,e,r){var c=a(t)?n:i;return r&&u(t,e,r)&&(e=void 0),c(t,o(e,3))}},9734:(t,e,r)=>{var n=r(1078),o=r(9556),i=r(5976),a=r(6612),u=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=u},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},3493:(t,e,r)=>{var n=r(3279),o=r(3218);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})}},8601:(t,e,r)=>{var n=r(4841),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}},554:(t,e,r)=>{var n=r(8601);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},4841:(t,e,r)=>{var n=r(7561),o=r(3218),i=r(3448),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^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=u.test(t);return r||c.test(t)?l(t.slice(2),r?2:8):a.test(t)?NaN:+t}},9833:(t,e,r)=>{var n=r(531);t.exports=function(t){return null==t?"":n(t)}},5578:(t,e,r)=>{var n=r(7206),o=r(5652);t.exports=function(t,e){return t&&t.length?o(t,n(e,2)):[]}},1700:(t,e,r)=>{var n=r(8805)("toUpperCase");t.exports=n},2703:(t,e,r)=>{"use strict";var n=r(414);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},5697:(t,e,r)=>{t.exports=r(2703)()},414:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9921:(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,u=r?Symbol.for("react.profiler"):60114,c=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,g=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(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 u:case a:case h:return t;default:switch(t=t&&t.$$typeof){case l:case p:case v:case y:case c:return t;default:return e}}case o:return e}}}function O(t){return w(t)===f}e.isFragment=function(t){return w(t)===i}},9864:(t,e,r)=>{"use strict";t.exports=r(9921)},6871:(t,e,r)=>{"use strict";function n(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function o(t){this.setState(function(e){var r=this.constructor.getDerivedStateFromProps(t,e);return null!=r?r:null}.bind(this))}function i(t,e){try{var r=this.props,n=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}function a(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return t;var r=null,a=null,u=null;if("function"==typeof e.componentWillMount?r="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?u="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(u="UNSAFE_componentWillUpdate"),null!==r||null!==a||null!==u){var c=t.displayName||t.name,l="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==a?"\n "+a:"")+(null!==u?"\n "+u:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=n,e.componentWillReceiveProps=o),"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=i;var s=e.componentDidUpdate;e.componentDidUpdate=function(t,e,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;s.call(this,t,e,n)}}return t}r.r(e),r.d(e,{polyfill:()=>a}),n.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},8292:(t,e,r)=>{"use strict";var n=r(4836);e.__esModule=!0,e.default=function(t,e){t.classList?t.classList.add(e):(0,o.default)(t,e)||("string"==typeof t.className?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))};var o=n(r(5312));t.exports=e.default},5312:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")},t.exports=e.default},294:t=>{"use strict";function e(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}t.exports=function(t,r){t.classList?t.classList.remove(r):"string"==typeof t.className?t.className=e(t.className,r):t.setAttribute("class",e(t.className&&t.className.baseVal||"",r))}},2810:(t,e,r)=>{"use strict";e.__esModule=!0,e.default=void 0;!function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};n.get||n.set?Object.defineProperty(e,r,n):e[r]=t[r]}e.default=t}(r(5697));var n=u(r(8292)),o=u(r(294)),i=u(r(7363)),a=u(r(2096));r(9806);function u(t){return t&&t.__esModule?t:{default:t}}function c(){return c=Object.assign||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},c.apply(this,arguments)}var l=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,n.default)(t,e)}))},s=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,o.default)(t,e)}))},f=function(t){var e,r;function n(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=t.call.apply(t,[this].concat(n))||this).onEnter=function(t,r){var n=e.getClassNames(r?"appear":"enter").className;e.removeClasses(t,"exit"),l(t,n),e.props.onEnter&&e.props.onEnter(t,r)},e.onEntering=function(t,r){var n=e.getClassNames(r?"appear":"enter").activeClassName;e.reflowAndAddClass(t,n),e.props.onEntering&&e.props.onEntering(t,r)},e.onEntered=function(t,r){var n=e.getClassNames("appear").doneClassName,o=e.getClassNames("enter").doneClassName,i=r?n+" "+o:o;e.removeClasses(t,r?"appear":"enter"),l(t,i),e.props.onEntered&&e.props.onEntered(t,r)},e.onExit=function(t){var r=e.getClassNames("exit").className;e.removeClasses(t,"appear"),e.removeClasses(t,"enter"),l(t,r),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var r=e.getClassNames("exit").activeClassName;e.reflowAndAddClass(t,r),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var r=e.getClassNames("exit").doneClassName;e.removeClasses(t,"exit"),l(t,r),e.props.onExited&&e.props.onExited(t)},e.getClassNames=function(t){var r=e.props.classNames,n="string"==typeof r,o=n?(n&&r?r+"-":"")+t:r[t];return{className:o,activeClassName:n?o+"-active":r[t+"Active"],doneClassName:n?o+"-done":r[t+"Done"]}},e}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o=n.prototype;return o.removeClasses=function(t,e){var r=this.getClassNames(e),n=r.className,o=r.activeClassName,i=r.doneClassName;n&&s(t,n),o&&s(t,o),i&&s(t,i)},o.reflowAndAddClass=function(t,e){e&&(t&&t.scrollTop,l(t,e))},o.render=function(){var t=c({},this.props);return delete t.classNames,i.default.createElement(a.default,c({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(i.default.Component);f.defaultProps={classNames:""},f.propTypes={};var p=f;e.default=p,t.exports=e.default},7557:(t,e,r)=>{"use strict";e.__esModule=!0,e.default=void 0;a(r(5697));var n=a(r(7363)),o=r(1533),i=a(r(6165));function a(t){return t&&t.__esModule?t:{default:t}}var u=function(t){var e,r;function a(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=t.call.apply(t,[this].concat(n))||this).handleEnter=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.handleLifecycle("onEnter",0,r)},e.handleEntering=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.handleLifecycle("onEntering",0,r)},e.handleEntered=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.handleLifecycle("onEntered",0,r)},e.handleExit=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.handleLifecycle("onExit",1,r)},e.handleExiting=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.handleLifecycle("onExiting",1,r)},e.handleExited=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.handleLifecycle("onExited",1,r)},e}r=t,(e=a).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var u=a.prototype;return u.handleLifecycle=function(t,e,r){var i,a=this.props.children,u=n.default.Children.toArray(a)[e];u.props[t]&&(i=u.props)[t].apply(i,r),this.props[t]&&this.props[t]((0,o.findDOMNode)(this))},u.render=function(){var t=this.props,e=t.children,r=t.in,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,["children","in"]),a=n.default.Children.toArray(e),u=a[0],c=a[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,n.default.createElement(i.default,o,r?n.default.cloneElement(u,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):n.default.cloneElement(c,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(n.default.Component);u.propTypes={};var c=u;e.default=c,t.exports=e.default},2096:(t,e,r)=>{"use strict";e.__esModule=!0,e.default=e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};n.get||n.set?Object.defineProperty(e,r,n):e[r]=t[r]}return e.default=t,e}(r(5697)),o=u(r(7363)),i=u(r(1533)),a=r(6871);r(9806);function u(t){return t&&t.__esModule?t:{default:t}}var c="unmounted";e.UNMOUNTED=c;var l="exited";e.EXITED=l;var s="entering";e.ENTERING=s;var f="entered";e.ENTERED=f;var p="exiting";e.EXITING=p;var h=function(t){var e,r;function n(e,r){var n;n=t.call(this,e,r)||this;var o,i=r.transitionGroup,a=i&&!i.isMounting?e.enter:e.appear;return n.appearStatus=null,e.in?a?(o=l,n.appearStatus=s):o=f:o=e.unmountOnExit||e.mountOnEnter?c:l,n.state={status:o},n.nextCallback=null,n}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var a=n.prototype;return a.getChildContext=function(){return{transitionGroup:null}},n.getDerivedStateFromProps=function(t,e){return t.in&&e.status===c?{status:l}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(t){var e=null;if(t!==this.props){var r=this.state.status;this.props.in?r!==s&&r!==f&&(e=s):r!==s&&r!==f||(e=p)}this.updateStatus(!1,e)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.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}},a.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){this.cancelNextCallback();var r=i.default.findDOMNode(this);e===s?this.performEnter(r,t):this.performExit(r)}else this.props.unmountOnExit&&this.state.status===l&&this.setState({status:c})},a.performEnter=function(t,e){var r=this,n=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,i=this.getTimeouts(),a=o?i.appear:i.enter;e||n?(this.props.onEnter(t,o),this.safeSetState({status:s},(function(){r.props.onEntering(t,o),r.onTransitionEnd(t,a,(function(){r.safeSetState({status:f},(function(){r.props.onEntered(t,o)}))}))}))):this.safeSetState({status:f},(function(){r.props.onEntered(t)}))},a.performExit=function(t){var e=this,r=this.props.exit,n=this.getTimeouts();r?(this.props.onExit(t),this.safeSetState({status:p},(function(){e.props.onExiting(t),e.onTransitionEnd(t,n.exit,(function(){e.safeSetState({status:l},(function(){e.props.onExited(t)}))}))}))):this.safeSetState({status:l},(function(){e.props.onExited(t)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},a.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},a.onTransitionEnd=function(t,e,r){this.setNextCallback(r);var n=null==e&&!this.props.addEndListener;t&&!n?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},a.render=function(){var t=this.state.status;if(t===c)return null;var e=this.props,r=e.children,n=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}(e,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof r)return r(t,n);var i=o.default.Children.only(r);return o.default.cloneElement(i,n)},n}(o.default.Component);function d(){}h.contextTypes={transitionGroup:n.object},h.childContextTypes={transitionGroup:function(){}},h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d},h.UNMOUNTED=0,h.EXITED=1,h.ENTERING=2,h.ENTERED=3,h.EXITING=4;var y=(0,a.polyfill)(h);e.default=y},6165:(t,e,r)=>{"use strict";e.__esModule=!0,e.default=void 0;var n=u(r(5697)),o=u(r(7363)),i=r(6871),a=r(4474);function u(t){return t&&t.__esModule?t:{default:t}}function c(){return c=Object.assign||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},c.apply(this,arguments)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var s=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},f=function(t){var e,r;function n(e,r){var n,o=(n=t.call(this,e,r)||this).handleExited.bind(l(l(n)));return n.state={handleExited:o,firstRender:!0},n}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i=n.prototype;return i.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},i.componentDidMount=function(){this.appeared=!0,this.mounted=!0},i.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,e){var r=e.children,n=e.handleExited;return{children:e.firstRender?(0,a.getInitialChildMapping)(t,n):(0,a.getNextChildMapping)(t,r,n),firstRender:!1}},i.handleExited=function(t,e){var r=(0,a.getChildMapping)(this.props.children);t.key in r||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var r=c({},e.children);return delete r[t.key],{children:r}})))},i.render=function(){var t=this.props,e=t.component,r=t.childFactory,n=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,["component","childFactory"]),i=s(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===e?i:o.default.createElement(e,n,i)},n}(o.default.Component);f.childContextTypes={transitionGroup:n.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(t){return t}};var p=(0,i.polyfill)(f);e.default=p,t.exports=e.default},9469:(t,e,r)=>{"use strict";var n=u(r(2810)),o=u(r(7557)),i=u(r(6165)),a=u(r(2096));function u(t){return t&&t.__esModule?t:{default:t}}t.exports={Transition:a.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:n.default}},4474:(t,e,r)=>{"use strict";e.__esModule=!0,e.getChildMapping=o,e.mergeChildMappings=i,e.getInitialChildMapping=function(t,e){return o(t.children,(function(r){return(0,n.cloneElement)(r,{onExited:e.bind(null,r),in:!0,appear:a(r,"appear",t),enter:a(r,"enter",t),exit:a(r,"exit",t)})}))},e.getNextChildMapping=function(t,e,r){var u=o(t.children),c=i(e,u);return Object.keys(c).forEach((function(o){var i=c[o];if((0,n.isValidElement)(i)){var l=o in e,s=o in u,f=e[o],p=(0,n.isValidElement)(f)&&!f.props.in;!s||l&&!p?s||!l||p?s&&l&&(0,n.isValidElement)(f)&&(c[o]=(0,n.cloneElement)(i,{onExited:r.bind(null,i),in:f.props.in,exit:a(i,"exit",t),enter:a(i,"enter",t)})):c[o]=(0,n.cloneElement)(i,{in:!1}):c[o]=(0,n.cloneElement)(i,{onExited:r.bind(null,i),in:!0,exit:a(i,"exit",t),enter:a(i,"enter",t)})}})),c};var n=r(7363);function o(t,e){var r=Object.create(null);return t&&n.Children.map(t,(function(t){return t})).forEach((function(t){r[t.key]=function(t){return e&&(0,n.isValidElement)(t)?e(t):t}(t)})),r}function i(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 u={};for(var c in e){if(o[c])for(n=0;n<o[c].length;n++){var l=o[c][n];u[o[c][n]]=r(l)}u[c]=r(c)}for(n=0;n<i.length;n++)u[i[n]]=r(i[n]);return u}function a(t,e,r){return null!=r[e]?r[e]:t.props[e]}},9806:(t,e,r)=>{"use strict";e.__esModule=!0,e.classNamesShape=e.timeoutsShape=void 0;var n;(n=r(5697))&&n.__esModule;e.timeoutsShape=null;e.classNamesShape=null},7363:t=>{"use strict";t.exports=React},1533:t=>{"use strict";t.exports=ReactDOM},4836:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";var t={};r.r(t),r.d(t,{addTrendKeyword:()=>s,clearTrendKeywords:()=>h,deleteActiveTemplate:()=>b,refreshTrendKeywords:()=>l,removeTrendKeyword:()=>f,toggleTrendKeyword:()=>p,updateCoordinates:()=>w,updateNewsRobots:()=>d,updatePrimary:()=>x});var e={};r.r(e),r.d(e,{appData:()=>_,appUi:()=>N});var n={};r.r(n),r.d(n,{getNewsRobots:()=>R,getTrendKeywords:()=>I,isRefreshingTrendKeywords:()=>L});var o={};r.r(o),r.d(o,{scaleBand:()=>Ai,scaleDiverging:()=>Ys,scaleDivergingLog:()=>Xs,scaleDivergingPow:()=>Zs,scaleDivergingSqrt:()=>Js,scaleDivergingSymlog:()=>Vs,scaleIdentity:()=>hu,scaleImplicit:()=>Pi,scaleLinear:()=>pu,scaleLog:()=>Ou,scaleOrdinal:()=>_i,scalePoint:()=>Ti,scalePow:()=>Tu,scaleQuantile:()=>$u,scaleQuantize:()=>Hu,scaleRadial:()=>Nu,scaleSequential:()=>Fs,scaleSequentialLog:()=>Ws,scaleSequentialPow:()=>Hs,scaleSequentialQuantile:()=>qs,scaleSequentialSqrt:()=>Ks,scaleSequentialSymlog:()=>$s,scaleSqrt:()=>Cu,scaleSymlog:()=>ku,scaleThreshold:()=>Ku,scaleTime:()=>Ls,scaleUtc:()=>Bs,tickFormat:()=>su});const i=wp.data,a=wp.hooks,u=lodash;function c(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,i.dispatch)("rank-math").updateAppData(t,e,r,n),{type:"RANK_MATH_APP_DATA",key:t,value:e}}function l(){return function(t,e){return{type:"RANK_MATH_APP_UI",key:t,value:e}}("refreshTrendKeywords",Date.now())}function s(t){var e=(0,i.select)("rank-math-pro").getTrendKeywords();return""===t||(0,u.isUndefined)(e[t])&&Object.keys(e).length<5&&(e[t]=!0),c("trendKeywords",e)}function f(t){var e=(0,i.select)("rank-math-pro").getTrendKeywords();return(0,u.isUndefined)(e[t])||delete e[t],c("trendKeywords",e)}function p(t){var e=(0,i.select)("rank-math-pro").getTrendKeywords();return(0,u.isUndefined)(e[t])||(e[t]=!e[t]),c("trendKeywords",e)}function h(){return c("trendKeywords",!1)}function d(t){return c("newsRobots",t,"rank_math_news_sitemap_robots")}function y(t){return y="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},y(t)}function v(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 m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){g(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function g(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==y(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===y(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(t){var e=m({},(0,i.select)("rank-math").getSchemas());return delete e[t],delete rankMath.activeTemplates[t],c("schemas",e,"rank_math_exclude_template_"+t,"")}function x(t,e){var r=m({},e);return r[(0,u.findKey)(e,"metadata.isPrimary")].metadata.isPrimary=!1,r[t].metadata.isPrimary=!0,(0,i.dispatch)("rank-math").schemaUpdated(!0),(0,i.dispatch)("rank-math").updateSchemas(r)}function w(t){return c("local_latitude",t[0],"rank_math_local_business_latitide"),c("local_longitude",t[1],"rank_math_local_business_longitude")}function O(t){return O="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},O(t)}function S(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 j(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?S(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function E(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==O(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==O(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===O(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var k=(0,u.get)(rankMath,"newsSitemap",{}),P={trendKeywords:!1,newsRobots:k.robots,newsKeywords:k.keywords};function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P,e=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_DATA"===e.type?j(j({},t),{},E({},e.key,e.value)):t}function A(t){return A="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},A(t)}function M(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 T(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?M(Object(r),!0).forEach((function(e){C(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function C(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==A(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===A(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var D={trendKeywordsStatus:""};function N(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:D,e=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===e.type?T(T({},t),{},C({},e.key,e.value)):t}function I(t){if(!1===t.appData.trendKeywords){var e={},r=function(){var t=[],e=(0,u.get)(rankMathEditor,"components.focusKeywords",!1);return e&&(t=e.getFocusKeywords()),(0,u.isEmpty)(t)?(t=(0,i.select)("rank-math").getKeywords(),(0,u.isEmpty)(t)?[]:t.split(",")):t}();return(0,u.forEach)(r,(function(t){e[t]=!0})),e}return t.appData.trendKeywords}function R(t){return t.appData.newsRobots}function L(t){return t.appUi.refreshTrendKeywords}const B=wp.i18n,U=wp.components;const z=function(){return rankMath.canUser.analytics&&(0,u.includes)(rankMath.modules,"analytics")&&rankMath.isAnalyticsConnected?"publish"!==((0,u.isUndefined)(rankMathEditor.assessor.dataCollector.getPostAttribute)?rankMath.postStatus:rankMathEditor.assessor.dataCollector.getPostAttribute("status"))?null:wp.element.createElement(U.Button,{className:"button-secondary rank-math-single-analytics-report",target:"_blank",href:rankMath.adminurl+"?page=rank-math-analytics#/single/"+rankMathEditor.assessor.dataCollector.getPostID()},(0,B.__)("Analytics","rank-math-pro")):null},F=wp.element,W=moment;var $=r.n(W),H=r(8446),K=r.n(H),q=r(7654),G=r.n(q),Y=r(6162),X=r.n(Y),V=r(3560),Z=r.n(V),J=r(7361),Q=r.n(J),tt=r(4293),et=r.n(tt),rt=r(1469),nt=r.n(rt),ot=r(7363),it=r.n(ot),at=r(4184),ut=r.n(at),ct=r(5697),lt=r.n(ct),st=Object.getOwnPropertyNames,ft=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty;function ht(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function dt(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 u=t(e,r,n);return o.delete(e),o.delete(r),u}}function yt(t){return st(t).concat(ft(t))}var vt=Object.hasOwn||function(t,e){return pt.call(t,e)};function mt(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var gt="_owner",bt=Object.getOwnPropertyDescriptor,xt=Object.keys;function wt(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 Ot(t,e){return mt(t.getTime(),e.getTime())}function St(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.entries(),u=0;(n=a.next())&&!n.done;){for(var c=e.entries(),l=!1,s=0;(o=c.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,u,s,t,e,r)&&r.equals(h,v,p,y,t,e,r))||(i[s]=!0),s++}if(!l)return!1;u++}return!0}function jt(t,e,r){var n,o=xt(t),i=o.length;if(xt(e).length!==i)return!1;for(;i-- >0;){if((n=o[i])===gt&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!vt(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function Et(t,e,r){var n,o,i,a=yt(t),u=a.length;if(yt(e).length!==u)return!1;for(;u-- >0;){if((n=a[u])===gt&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!vt(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(o=bt(t,n),i=bt(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function kt(t,e){return mt(t.valueOf(),e.valueOf())}function Pt(t,e){return t.source===e.source&&t.flags===e.flags}function _t(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 u=e.values(),c=!1,l=0;(o=u.next())&&!o.done;)c||i[l]||!(c=r.equals(n.value,o.value,n.value,o.value,t,e,r))||(i[l]=!0),l++;if(!c)return!1}return!0}function At(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 Mt="[object Arguments]",Tt="[object Boolean]",Ct="[object Date]",Dt="[object Map]",Nt="[object Number]",It="[object Object]",Rt="[object RegExp]",Lt="[object Set]",Bt="[object String]",Ut=Array.isArray,zt="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,Ft=Object.assign,Wt=Object.prototype.toString.call.bind(Object.prototype.toString);var $t=Ht();Ht({strict:!0}),Ht({circular:!0}),Ht({circular:!0,strict:!0}),Ht({createInternalComparator:function(){return mt}}),Ht({strict:!0,createInternalComparator:function(){return mt}}),Ht({circular:!0,createInternalComparator:function(){return mt}}),Ht({circular:!0,createInternalComparator:function(){return mt},strict:!0});function Ht(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,o=t.createInternalComparator,i=t.createState,a=t.strict,u=void 0!==a&&a,c=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,o={areArraysEqual:n?Et:wt,areDatesEqual:Ot,areMapsEqual:n?ht(St,Et):St,areObjectsEqual:n?Et:jt,arePrimitiveWrappersEqual:kt,areRegExpsEqual:Pt,areSetsEqual:n?ht(_t,Et):_t,areTypedArraysEqual:n?Et:At};if(r&&(o=Ft({},o,r(o))),e){var i=dt(o.areArraysEqual),a=dt(o.areMapsEqual),u=dt(o.areObjectsEqual),c=dt(o.areSetsEqual);o=Ft({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:u,areSetsEqual:c})}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,u=t.areSetsEqual,c=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(Ut(t))return e(t,l,s);if(null!=zt&&zt(t))return c(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 u(t,l,s);var p=Wt(t);return p===Ct?r(t,l,s):p===Rt?a(t,l,s):p===Dt?n(t,l,s):p===Lt?u(t,l,s):p===It?"function"!=typeof t.then&&"function"!=typeof l.then&&o(t,l,s):p===Mt?o(t,l,s):(p===Tt||p===Nt||p===Bt)&&i(t,l,s)}}(c),s=o?o(l):(e=l,function(t,r,n,o,i,a,u){return e(t,r,u)});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 u=n(),c=u.cache,l=void 0===c?e?new WeakMap:void 0:c,s=u.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:u})}function Kt(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 qt(t){return qt="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},qt(t)}function Gt(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 Yt(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 Yt(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 Yt(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 Xt(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var o=Gt(n),i=o[0],a=o.slice(1);return"number"==typeof i?void Kt(r.bind(null,a),i):(r(i),void Kt(r.bind(null,a)))}"object"===qt(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 Vt(t){return Vt="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},Vt(t)}function Zt(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 Jt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zt(Object(r),!0).forEach((function(e){Qt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Qt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Vt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Vt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Vt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var te=["Webkit","Moz","O","ms"],ee=["-webkit-","-moz-","-o-","-ms-"],re=["transform","transformOrigin","transition"],ne=function(t){return t},oe=function(t,e){return Object.keys(e).reduce((function(r,n){return Jt(Jt({},r),{},Qt({},n,t(n,e[n])))}),{})},ie=function(t){return Object.keys(t).reduce((function(t,e){return Jt(Jt({},t),function(t,e){if(-1===re.indexOf(t))return Qt({},t,Number.isNaN(e)?0:e);var r="transition"===t,n=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),o=e;return te.reduce((function(t,i,a){return r&&(o=e.replace(/(transform|transform-origin)/gim,"".concat(ee[a],"$1"))),Jt(Jt({},t),{},Qt({},i+n,o))}),{})}(e,t[e]))}),t)},ae=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 ue(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||le(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 ce(t){return function(t){if(Array.isArray(t))return se(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||le(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 le(t,e){if(t){if("string"==typeof t)return se(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)?se(t,e):void 0}}function se(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 fe=1e-4,pe=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},he=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},de=function(t,e){return function(r){var n=pe(t,e);return he(n,r)}},ye=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 u=e[0].split("(");if("cubic-bezier"===u[0]&&4===u[1].split(")")[0].split(",").length){var c=ue(u[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),4);n=c[0],o=c[1],i=c[2],a=c[3]}}[n,i,o,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1}));var l,s,f=de(n,i),p=de(o,a),h=(l=n,s=i,function(t){var e=pe(l,s),r=[].concat(ce(e.map((function(t,e){return t*e})).slice(1)),[0]);return he(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)<fe||i<fe)return p(r);r=d(r-o/i)}return p(r)};return y.isStepper=!1,y},ve=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 ye(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,u=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,u=n*a/1e3+t;return Math.abs(u-e)<fe&&Math.abs(i)<fe?[e,0]:[u,i]};return u.isStepper=!0,u.dt=a,u}();default:if("cubic-bezier"===n.split("(")[0])return ye(n)}return"function"==typeof n?n:null};function me(t){return me="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},me(t)}function ge(t){return function(t){if(Array.isArray(t))return je(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Se(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 be(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?be(Object(r),!0).forEach((function(e){we(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):be(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function we(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==me(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==me(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===me(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Oe(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||Se(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 Se(t,e){if(t){if("string"==typeof t)return je(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)?je(t,e):void 0}}function je(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 Ee=function(t,e,r){return t+(e-t)*r},ke=function(t){return t.from!==t.to},Pe=function t(e,r,n){var o=oe((function(t,r){if(ke(r)){var n=Oe(e(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return xe(xe({},r),{},{from:o,velocity:i})}return r}),r);return n<1?oe((function(t,e){return ke(e)?xe(xe({},e),{},{velocity:Ee(e.velocity,o[t].velocity,n),from:Ee(e.from,o[t].from,n)}):e}),r):t(e,o,n-1)};const _e=function(t,e,r,n,o){var i,a,u,c,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 xe(xe({},r),{},we({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return xe(xe({},r),{},we({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,h=function(){return null};return h=r.isStepper?function(n){u||(u=n);var i=(n-u)/r.dt;f=Pe(r,f,i),o(xe(xe(xe({},t),e),oe((function(t,e){return e.from}),f))),u=n,Object.values(f).filter(ke).length&&(p=requestAnimationFrame(h))}:function(i){c||(c=i);var a=(i-c)/n,u=oe((function(t,e){return Ee.apply(void 0,ge(e).concat([r(a)]))}),s);if(o(xe(xe(xe({},t),e),u)),a<1)p=requestAnimationFrame(h);else{var l=oe((function(t,e){return Ee.apply(void 0,ge(e).concat([r(1)]))}),s);o(xe(xe(xe({},t),e),l))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}};function Ae(t){return Ae="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},Ae(t)}var Me=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Te(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 Ce(t){return function(t){if(Array.isArray(t))return De(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 De(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 De(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 De(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 Ne(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 Ie(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ne(Object(r),!0).forEach((function(e){Re(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Re(t,e,r){return(e=Be(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Le(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,Be(n.key),n)}}function Be(t){var e=function(t,e){if("object"!==Ae(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ae(e)?e:String(e)}function Ue(t,e){return Ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ue(t,e)}function ze(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=$e(t);if(e){var o=$e(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Fe(this,r)}}function Fe(t,e){if(e&&("object"===Ae(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return We(t)}function We(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $e(t){return $e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$e(t)}var He=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&&Ue(t,e)}(i,t);var e,r,n,o=ze(i);function i(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);var n=(r=o.call(this,t,e)).props,a=n.isActive,u=n.attributeName,c=n.from,l=n.to,s=n.steps,f=n.children,p=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(We(r)),r.changeStyle=r.changeStyle.bind(We(r)),!a||p<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:l}),Fe(r);if(s&&s.length)r.state={style:s[0].style};else if(c){if("function"==typeof f)return r.state={style:c},Fe(r);r.state={style:u?Re({},u,c):c}}else r.state={style:{}};return r}return e=i,(r=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,o=e.attributeName,i=e.shouldReAnimate,a=e.to,u=e.from,c=this.state.style;if(n)if(r){if(!($t(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?u:t.to;if(this.state&&c){var f={style:o?Re({},o,s):s};(o&&[o]!==s||!o&&c!==s)&&this.setState(f)}this.runAnimation(Ie(Ie({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?Re({},o,a):a};this.state&&c&&(o&&c[o]!==a||!o&&c!==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,u=t.onAnimationEnd,c=t.onAnimationStart,l=_e(r,n,ve(i),o,this.changeStyle);this.manager.start([c,a,function(){e.stopJSAnimation=l()},o,u])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,o=t.onAnimationStart,i=r[0],a=i.style,u=i.duration,c=void 0===u?0:u;return this.manager.start([o].concat(Ce(r.reduce((function(t,n,o){if(0===o)return t;var i=n.duration,a=n.easing,u=void 0===a?"ease":a,c=n.style,l=n.properties,s=n.onAnimationEnd,f=o>0?r[o-1]:n,p=l||Object.keys(c);if("function"==typeof u||"spring"===u)return[].concat(Ce(t),[e.runJSAnimation.bind(e,{from:f.style,to:c,duration:i,easing:u}),i]);var h=ae(p,i,u),d=Ie(Ie(Ie({},f.style),c),{},{transition:h});return[].concat(Ce(t),[d,i,s]).filter(ne)}),[a,Math.max(c,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Xt());var e=t.begin,r=t.duration,n=t.attributeName,o=t.to,i=t.easing,a=t.onAnimationStart,u=t.onAnimationEnd,c=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof l&&"spring"!==i)if(c.length>1)this.runStepAnimation(t);else{var f=n?Re({},n,o):o,p=ae(Object.keys(f),r,i);s.start([a,e,Ie(Ie({},f),{},{transition:p}),r,u])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children,r=(t.begin,t.duration),n=(t.attributeName,t.easing,t.isActive),o=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,Te(t,Me)),i=ot.Children.count(e),a=ie(this.state.style);if("function"==typeof e)return e(a);if(!n||0===i||r<=0)return e;var u=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,i=e.className;return(0,ot.cloneElement)(t,Ie(Ie({},o),{},{style:Ie(Ie({},n),a),className:i}))};return 1===i?u(ot.Children.only(e)):it().createElement("div",null,ot.Children.map(e,(function(t){return u(t)})))}}])&&Le(e.prototype,r),n&&Le(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.PureComponent);He.displayName="Animate",He.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},He.propTypes={from:lt().oneOfType([lt().object,lt().string]),to:lt().oneOfType([lt().object,lt().string]),attributeName:lt().string,duration:lt().number,begin:lt().number,easing:lt().oneOfType([lt().string,lt().func]),steps:lt().arrayOf(lt().shape({duration:lt().number.isRequired,style:lt().object.isRequired,easing:lt().oneOfType([lt().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),lt().func]),properties:lt().arrayOf("string"),onAnimationEnd:lt().func})),children:lt().oneOfType([lt().node,lt().func]),isActive:lt().bool,canBegin:lt().bool,onAnimationEnd:lt().func,shouldReAnimate:lt().bool,onAnimationStart:lt().func,onAnimationReStart:lt().func};const Ke=He;var qe=r(9469),Ge=["children","appearOptions","enterOptions","leaveOptions"];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 Xe(){return Xe=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},Xe.apply(this,arguments)}function Ve(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 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){or(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,ir(n.key),n)}}function tr(t,e){return tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},tr(t,e)}function er(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=nr(t);if(e){var o=nr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return 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 rr(t)}(this,r)}}function rr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nr(t){return nr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nr(t)}function or(t,e,r){return(e=ir(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ir(t){var e=function(t,e){if("object"!==Ye(t)||null===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)}void 0===Number.isFinite&&(Number.isFinite=function(t){return"number"==typeof t&&isFinite(t)});var ar=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},ur=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&&tr(t,e)}(i,t);var e,r,n,o=er(i);function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),or(rr(t=o.call(this)),"handleEnter",(function(e,r){var n=t.props,o=n.appearOptions,i=n.enterOptions;t.handleStyleActive(r?o:i)})),or(rr(t),"handleExit",(function(){var e=t.props.leaveOptions;t.handleStyleActive(e)})),t.state={isActive:!1},t}return e=i,(r=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(Je(Je({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,r=t.enterOptions,n=t.leaveOptions;return ar(e)+ar(r)+ar(n)}},{key:"render",value:function(){var t=this,e=this.props,r=e.children,n=(e.appearOptions,e.enterOptions,e.leaveOptions,Ve(e,Ge));return it().createElement(qe.Transition,Xe({},n,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return it().createElement(Ke,t.state,ot.Children.only(r))}))}}])&&Qe(e.prototype,r),n&&Qe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.Component);ur.propTypes={appearOptions:lt().object,enterOptions:lt().object,leaveOptions:lt().object,children:lt().element};const cr=ur;function lr(t){var e=t.component,r=t.children,n=t.appear,o=t.enter,i=t.leave;return it().createElement(qe.TransitionGroup,{component:e},ot.Children.map(r,(function(t,e){return it().createElement(cr,{appearOptions:n,enterOptions:o,leaveOptions:i,key:"child-".concat(e)},t)})))}lr.propTypes={appear:lt().object,enter:lt().object,leave:lt().object,children:lt().oneOfType([lt().array,lt().element]),component:lt().any},lr.defaultProps={component:"span"};const sr=Ke;var fr=r(1700),pr=r.n(fr);function hr(){}function dr(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 yr(t){this._context=t}function vr(t){this._context=t}function mr(t){this._context=t}yr.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:dr(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:dr(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},vr.prototype={areaStart:hr,areaEnd:hr,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:dr(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},mr.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:dr(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class gr{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 br(t){this._context=t}function xr(t){this._context=t}function wr(t){return new xr(t)}function Or(t){return t<0?-1:1}function Sr(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),u=(i*o+a*n)/(n+o);return(Or(i)+Or(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(u))||0}function jr(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Er(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,u=(i-n)/3;t._context.bezierCurveTo(n+u,o+u*e,i-u,a-u*r,i,a)}function kr(t){this._context=t}function Pr(t){this._context=new _r(t)}function _r(t){this._context=t}function Ar(t){this._context=t}function Mr(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 Tr(t,e){this._context=t,this._t=e}br.prototype={areaStart:hr,areaEnd:hr,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))}},xr.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)}}},kr.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:Er(this,this._t0,jr(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,Er(this,jr(this,r=Sr(this,t,e)),r);break;default:Er(this,this._t0,r=Sr(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Pr.prototype=Object.create(kr.prototype)).point=function(t,e){kr.prototype.point.call(this,e,t)},_r.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)}},Ar.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=Mr(t),o=Mr(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)}},Tr.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}};Array.prototype.slice;function Cr(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Dr(t){return function(){return t}}const Nr=Math.PI,Ir=2*Nr,Rr=1e-6,Lr=Ir-Rr;function Br(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class Ur{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Br:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Br;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,u=r-t,c=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>Rr)if(Math.abs(s*u-c*l)>Rr&&o){let p=r-i,h=n-a,d=u*u+c*c,y=p*p+h*h,v=Math.sqrt(d),m=Math.sqrt(f),g=o*Math.tan((Nr-Math.acos((d+f-y)/(2*v*m)))/2),b=g/m,x=g/v;Math.abs(b-1)>Rr&&this._append`L${t+b*l},${e+b*s}`,this._append`A${o},${o},0,0,${+(s*p>l*h)},${this._x1=t+x*u},${this._y1=e+x*c}`}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),u=r*Math.sin(n),c=t+a,l=e+u,s=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Rr||Math.abs(this._y1-l)>Rr)&&this._append`L${c},${l}`,r&&(f<0&&(f=f%Ir+Ir),f>Lr?this._append`A${r},${r},0,1,${s},${t-a},${e-u}A${r},${r},0,1,${s},${this._x1=c},${this._y1=l}`:f>Rr&&this._append`A${r},${r},0,${+(f>=Nr)},${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 zr(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 Ur(e)}function Fr(t){return t[0]}function Wr(t){return t[1]}function $r(t,e){var r=Dr(!0),n=null,o=wr,i=null,a=zr(u);function u(u){var c,l,s,f=(u=Cr(u)).length,p=!1;for(null==n&&(i=o(s=a())),c=0;c<=f;++c)!(c<f&&r(l=u[c],c,u))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(l,c,u),+e(l,c,u));if(s)return i=null,s+""||null}return t="function"==typeof t?t:void 0===t?Fr:Dr(t),e="function"==typeof e?e:void 0===e?Wr:Dr(e),u.x=function(e){return arguments.length?(t="function"==typeof e?e:Dr(+e),u):t},u.y=function(t){return arguments.length?(e="function"==typeof t?t:Dr(+t),u):e},u.defined=function(t){return arguments.length?(r="function"==typeof t?t:Dr(!!t),u):r},u.curve=function(t){return arguments.length?(o=t,null!=n&&(i=o(n)),u):o},u.context=function(t){return arguments.length?(null==t?n=i=null:i=o(n=t),u):n},u}function Hr(t,e,r){var n=null,o=Dr(!0),i=null,a=wr,u=null,c=zr(l);function l(l){var s,f,p,h,d,y=(l=Cr(l)).length,v=!1,m=new Array(y),g=new Array(y);for(null==i&&(u=a(d=c())),s=0;s<=y;++s){if(!(s<y&&o(h=l[s],s,l))===v)if(v=!v)f=s,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),p=s-1;p>=f;--p)u.point(m[p],g[p]);u.lineEnd(),u.areaEnd()}v&&(m[s]=+t(h,s,l),g[s]=+e(h,s,l),u.point(n?+n(h,s,l):m[s],r?+r(h,s,l):g[s]))}if(d)return u=null,d+""||null}function s(){return $r().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?Fr:Dr(+t),e="function"==typeof e?e:Dr(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?Wr:Dr(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:Dr(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:Dr(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Dr(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:Dr(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:Dr(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Dr(+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:Dr(!!t),l):o},l.curve=function(t){return arguments.length?(a=t,null!=i&&(u=a(i)),l):a},l.context=function(t){return arguments.length?(null==t?i=u=null:u=a(i=t),l):i},l}Ur.prototype;var Kr=r(3218),qr=r.n(Kr);function Gr(t){return Gr="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},Gr(t)}var Yr=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Xr=["points","pathLength"],Vr={svg:["viewBox","children"],polygon:Xr,polyline:Xr},Zr=["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"],Jr=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,ot.isValidElement)(t)&&(r=t.props),!qr()(r))return null;var n={};return Object.keys(r).forEach((function(t){Zr.includes(t)&&(n[t]=e||function(e){return r[t](r,e)})})),n},Qr=function(t,e,r){if(!qr()(t)||"object"!==Gr(t))return null;var n=null;return Object.keys(t).forEach((function(o){var i=t[o];Zr.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},tn=r(7037),en=r.n(tn),rn=r(9864),nn=r(1763),on=r.n(nn),an=function(t){return 0===t?0:t>0?1:-1},un=function(t){return en()(t)&&t.indexOf("%")===t.length-1},cn=function(t){return on()(t)&&!G()(t)},ln=function(t){return cn(t)||en()(t)},sn=0,fn=function(t){var e=++sn;return"".concat(t||"").concat(e)},pn=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(!cn(t)&&!en()(t))return n;if(un(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},hn=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},dn=function(t,e){return cn(t)&&cn(e)?function(r){return t+r*(e-t)}:function(){return e}};function yn(t,e,r){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):Q()(t,e))===r})):null}function vn(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}var mn=["children"],gn=["children"];function bn(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 xn(t){return xn="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},xn(t)}var wn={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},On=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},Sn=null,jn=null,En=function t(e){if(e===Sn&&nt()(jn))return jn;var r=[];return ot.Children.forEach(e,(function(e){et()(e)||((0,rn.isFragment)(e)?r=r.concat(t(e.props.children)):r.push(e))})),jn=r,Sn=e,r};function kn(t,e){var r=[],n=[];return n=nt()(e)?e.map((function(t){return On(t)})):[On(e)],En(t).forEach((function(t){var e=Q()(t,"type.displayName")||Q()(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function Pn(t,e){var r=kn(t,e);return r&&r[0]}var _n=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!cn(r)||r<=0||!cn(n)||n<=0)},An=["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"],Mn=function(t){return t&&t.type&&en()(t.type)&&An.indexOf(t.type)>=0},Tn=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,ot.isValidElement)(t)&&(n=t.props),!qr()(n))return null;var o={};return Object.keys(n).forEach((function(t){var i;(function(t,e,r,n){var o,i=null!==(o=null==Vr?void 0:Vr[n])&&void 0!==o?o:[];return!Z()(t)&&(n&&i.includes(e)||Yr.includes(e))||r&&Zr.includes(e)})(null===(i=n)||void 0===i?void 0:i[t],t,e,r)&&(o[t]=n[t])})),o},Cn=function t(e,r){if(e===r)return!0;var n=ot.Children.count(e);if(n!==ot.Children.count(r))return!1;if(0===n)return!0;if(1===n)return Dn(nt()(e)?e[0]:e,nt()(r)?r[0]:r);for(var o=0;o<n;o++){var i=e[o],a=r[o];if(nt()(i)||nt()(a)){if(!t(i,a))return!1}else if(!Dn(i,a))return!1}return!0},Dn=function(t,e){if(et()(t)&&et()(e))return!0;if(!et()(t)&&!et()(e)){var r=t.props||{},n=r.children,o=bn(r,mn),i=e.props||{},a=i.children,u=bn(i,gn);return n&&a?vn(o,u)&&Cn(n,a):!n&&!a&&vn(o,u)}return!1},Nn=function(t,e){var r=[],n={};return En(t).forEach((function(t,o){if(Mn(t))r.push(t);else if(t){var i=On(t.type),a=e[i]||{},u=a.handler,c=a.once;if(u&&(!c||!n[i])){var l=u(t,i,o);r.push(l),n[i]=!0}}})),r};function In(t){return In="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},In(t)}function Rn(){return Rn=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},Rn.apply(this,arguments)}function Ln(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 Bn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ln(Object(r),!0).forEach((function(e){Un(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ln(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Un(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==In(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==In(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===In(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var zn={curveBasisClosed:function(t){return new vr(t)},curveBasisOpen:function(t){return new mr(t)},curveBasis:function(t){return new yr(t)},curveBumpX:function(t){return new gr(t,!0)},curveBumpY:function(t){return new gr(t,!1)},curveLinearClosed:function(t){return new br(t)},curveLinear:wr,curveMonotoneX:function(t){return new kr(t)},curveMonotoneY:function(t){return new Pr(t)},curveNatural:function(t){return new Ar(t)},curveStep:function(t){return new Tr(t,.5)},curveStepAfter:function(t){return new Tr(t,1)},curveStepBefore:function(t){return new Tr(t,0)}},Fn=function(t){return t.x===+t.x&&t.y===+t.y},Wn=function(t){return t.x},$n=function(t){return t.y},Hn=function(t){var e,r=t.type,n=void 0===r?"linear":r,o=t.points,i=void 0===o?[]:o,a=t.baseLine,u=t.layout,c=t.connectNulls,l=void 0!==c&&c,s=function(t,e){if(Z()(t))return t;var r="curve".concat(pr()(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?zn[r]||wr:zn["".concat(r).concat("vertical"===e?"Y":"X")]}(n,u),f=l?i.filter((function(t){return Fn(t)})):i;if(nt()(a)){var p=l?a.filter((function(t){return Fn(t)})):a,h=f.map((function(t,e){return Bn(Bn({},t),{},{base:p[e]})}));return(e="vertical"===u?Hr().y($n).x1(Wn).x0((function(t){return t.base.x})):Hr().x(Wn).y1($n).y0((function(t){return t.base.y}))).defined(Fn).curve(s),e(h)}return(e="vertical"===u&&cn(a)?Hr().y($n).x1(Wn).x0(a):cn(a)?Hr().x(Wn).y1($n).y0(a):$r().x(Wn).y($n)).defined(Fn).curve(s),e(f)},Kn=function(t){var e=t.className,r=t.points,n=t.path,o=t.pathRef;if(!(r&&r.length||n))return null;var i=r&&r.length?Hn(t):n;return it().createElement("path",Rn({},Tn(t),Jr(t),{className:ut()("recharts-curve",e),d:i,ref:o}))};function qn(){return qn=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},qn.apply(this,arguments)}var Gn=function(t){var e=t.cx,r=t.cy,n=t.r,o=t.className,i=ut()("recharts-dot",o);return e===+e&&r===+r&&n===+n?it().createElement("circle",qn({},Tn(t),Jr(t),{className:i,cx:e,cy:r,r:n})):null},Yn=["children","className"];function Xn(){return Xn=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},Xn.apply(this,arguments)}function Vn(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 Zn=it().forwardRef((function(t,e){var r=t.children,n=t.className,o=Vn(t,Yn),i=ut()("recharts-layer",n);return it().createElement("g",Xn({className:i},Tn(o,!0),{ref:e}),r)})),Jn=r(928),Qn=r.n(Jn),to={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return to[t]},set:function(t,e){if("string"==typeof t)to[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach((function(e){to[e]=t[e]}))}}};function eo(t){return eo="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},eo(t)}function ro(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 no(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ro(Object(r),!0).forEach((function(e){oo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ro(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function oo(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==eo(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==eo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===eo(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function io(t){return function(t){if(Array.isArray(t))return ao(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 ao(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 ao(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 ao(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 uo={widthCache:{},cacheCount:0},co={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},lo=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],so="recharts_measurement_span";var fo=function(t){return Object.keys(t).reduce((function(e,r){return"".concat(e).concat((n=r,n.split("").reduce((function(t,e){return e===e.toUpperCase()?[].concat(io(t),["-",e.toLowerCase()]):[].concat(io(t),[e])}),[]).join("")),":").concat(function(t,e){return lo.indexOf(t)>=0&&e===+e?"".concat(e,"px"):e}(r,t[r]),";");var n}),"")},po=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||to.isSsr)return{width:0,height:0};var r="".concat(t),n=fo(e),o="".concat(r,"-").concat(n);if(uo.widthCache[o])return uo.widthCache[o];try{var i=document.getElementById(so);i||((i=document.createElement("span")).setAttribute("id",so),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=no(no({},co),e);Object.keys(a).map((function(t){return i.style[t]=a[t],t})),i.textContent=r;var u=i.getBoundingClientRect(),c={width:u.width,height:u.height};return uo.widthCache[o]=c,++uo.cacheCount>2e3&&(uo.cacheCount=0,uo.widthCache={}),c}catch(t){return{width:0,height:0}}};function ho(t){return ho="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},ho(t)}function yo(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return vo(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 vo(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 vo(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){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==ho(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ho(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===ho(i)?i:String(i)),n)}var o,i}var go=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,bo=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,xo=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,wo=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Oo={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},So=Object.keys(Oo),jo="NaN";var Eo=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||xo.test(r)||(this.num=NaN,this.unit=""),So.includes(r)&&(this.num=function(t,e){return t*Oo[e]}(e,r),this.unit="px")}var e,r,n;return e=t,n=[{key:"parse",value:function(e){var r,n=yo(null!==(r=wo.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)}}])&&mo(e.prototype,r),n&&mo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function ko(t){if(t.includes(jo))return jo;for(var e=t;e.includes("*")||e.includes("/");){var r,n=yo(null!==(r=go.exec(e))&&void 0!==r?r:[],4),o=n[1],i=n[2],a=n[3],u=Eo.parse(null!=o?o:""),c=Eo.parse(null!=a?a:""),l="*"===i?u.multiply(c):u.divide(c);if(l.isNaN())return jo;e=e.replace(go,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=yo(null!==(s=bo.exec(e))&&void 0!==s?s:[],4),p=f[1],h=f[2],d=f[3],y=Eo.parse(null!=p?p:""),v=Eo.parse(null!=d?d:""),m="+"===h?y.add(v):y.subtract(v);if(m.isNaN())return jo;e=e.replace(bo,m.toString())}return e}var Po=/\(([^()]*)\)/;function _o(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=yo(Po.exec(e),2)[1];e=e.replace(Po,ko(r))}return e}(e),e=ko(e)}function Ao(t){var e=function(t){try{return _o(t)}catch(t){return jo}}(t.slice(5,-1));return e===jo?"":e}var Mo=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],To=["dx","dy","angle","className","breakAll"];function Co(){return Co=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},Co.apply(this,arguments)}function Do(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 No(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Io(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 Io(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 Io(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 Ro=/[ \f\n\r\t\v\u2028\u2029]+/,Lo=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var o=[];return et()(e)||(o=r?e.toString().split(""):e.toString().split(Ro)),{wordsWithComputedWidth:o.map((function(t){return{word:t,width:po(t,n).width}})),spaceWidth:r?0:po(" ",n).width}}catch(t){return null}},Bo=function(t){return[{words:et()(t)?[]:t.toString().split(Ro)}]},Uo=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!to.isSsr){var u=Lo({breakAll:i,children:n,style:o});return u?function(t,e,r,n,o){var i=t.maxLines,a=t.children,u=t.style,c=t.breakAll,l=cn(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,u=t[t.length-1];if(u&&(null==n||o||u.width+a+r<Number(n)))u.words.push(i),u.width+=a+r;else{var c={words:[i],width:a};t.push(c)}return t}),[])},p=f(e);if(!l)return p;for(var h,d=function(t){var e=s.slice(0,t),r=Lo({breakAll:c,style:u,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 g=Math.floor((y+v)/2),b=No(d(g-1),2),x=b[0],w=b[1],O=No(d(g),1)[0];if(x||O||(y=g+1),x&&O&&(v=g-1),!x&&O){h=w;break}m++}return h||p}({breakAll:i,children:n,maxLines:a,style:o},u.wordsWithComputedWidth,u.spaceWidth,e,r):Bo(n)}return Bo(n)},zo="#808080",Fo=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,o=void 0===n?0:n,i=t.lineHeight,a=void 0===i?"1em":i,u=t.capHeight,c=void 0===u?"0.71em":u,l=t.scaleToFit,s=void 0!==l&&l,f=t.textAnchor,p=void 0===f?"start":f,h=t.verticalAnchor,d=void 0===h?"end":h,y=t.fill,v=void 0===y?zo:y,m=Do(t,Mo),g=(0,ot.useMemo)((function(){return Uo({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:s,style:m.style,width:m.width})}),[m.breakAll,m.children,m.maxLines,s,m.style,m.width]),b=m.dx,x=m.dy,w=m.angle,O=m.className,S=m.breakAll,j=Do(m,To);if(!ln(r)||!ln(o))return null;var E,k=r+(cn(b)?b:0),P=o+(cn(x)?x:0);switch(d){case"start":E=Ao("calc(".concat(c,")"));break;case"middle":E=Ao("calc(".concat((g.length-1)/2," * -").concat(a," + (").concat(c," / 2))"));break;default:E=Ao("calc(".concat(g.length-1," * -").concat(a,")"))}var _=[];if(s){var A=g[0].width,M=m.width;_.push("scale(".concat((cn(M)?M/A:1)/A,")"))}return w&&_.push("rotate(".concat(w,", ").concat(k,", ").concat(P,")")),_.length&&(j.transform=_.join(" ")),it().createElement("text",Co({},Tn(j,!0),{x:k,y:P,className:ut()("recharts-text",O),textAnchor:p,fill:v.includes("url")?zo:v}),g.map((function(t,e){return it().createElement("tspan",{x:k,dy:0===e?E:a,key:e},t.words.join(S?"":" "))})))};function Wo(t){return Wo="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},Wo(t)}function $o(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 Ho(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$o(Object(r),!0).forEach((function(e){Ko(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ko(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Wo(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Wo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Wo(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var qo=Math.PI/180,Go=function(t){return 180*t/Math.PI},Yo=function(t,e,r,n){return{x:t+Math.cos(-qo*n)*r,y:e+Math.sin(-qo*n)*r}},Xo=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 u=(r-o)/a,c=Math.acos(u);return n>i&&(c=2*Math.PI-c),{radius:a,angle:Go(c),angleInRadian:c}},Vo=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)},Zo=function(t,e){var r=t.x,n=t.y,o=Xo({x:r,y:n},e),i=o.radius,a=o.angle,u=e.innerRadius,c=e.outerRadius;if(i<u||i>c)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?Ho(Ho({},e),{},{radius:i,angle:Vo(h,e)}):null};function Jo(t){return Jo="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},Jo(t)}var Qo=["offset"];function ti(t){return function(t){if(Array.isArray(t))return ei(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 ei(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 ei(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 ei(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 ri(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 ni(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 oi(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ni(Object(r),!0).forEach((function(e){ii(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ni(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ii(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Jo(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Jo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Jo(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ai(){return ai=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},ai.apply(this,arguments)}var ui=function(t){var e=t.value,r=t.formatter,n=et()(t.children)?e:t.children;return Z()(r)?r(n):n},ci=function(t,e,r){var n,o,i=t.position,a=t.viewBox,u=t.offset,c=t.className,l=a,s=l.cx,f=l.cy,p=l.innerRadius,h=l.outerRadius,d=l.startAngle,y=l.endAngle,v=l.clockWise,m=(p+h)/2,g=function(t,e){return an(e-t)*Math.min(Math.abs(e-t),360)}(d,y),b=g>=0?1:-1;"insideStart"===i?(n=d+b*u,o=v):"insideEnd"===i?(n=y-b*u,o=!v):"end"===i&&(n=y+b*u,o=v),o=g<=0?o:!o;var x=Yo(s,f,m,n),w=Yo(s,f,m,n+359*(o?1:-1)),O="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(o?0:1,",\n ").concat(w.x,",").concat(w.y),S=et()(t.id)?fn("recharts-radial-line-"):t.id;return it().createElement("text",ai({},r,{dominantBaseline:"central",className:ut()("recharts-radial-bar-label",c)}),it().createElement("defs",null,it().createElement("path",{id:S,d:O})),it().createElement("textPath",{xlinkHref:"#".concat(S)},e))},li=function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e,i=o.cx,a=o.cy,u=o.innerRadius,c=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===n){var s=Yo(i,a,c+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=Yo(i,a,(u+c)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},si=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e,a=i.x,u=i.y,c=i.width,l=i.height,s=l>=0?1:-1,f=s*n,p=s>0?"end":"start",h=s>0?"start":"end",d=c>=0?1:-1,y=d*n,v=d>0?"end":"start",m=d>0?"start":"end";if("top"===o)return oi(oi({},{x:a+c/2,y:u-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(u-r.y,0),width:c}:{});if("bottom"===o)return oi(oi({},{x:a+c/2,y:u+l+f,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(r.y+r.height-(u+l),0),width:c}:{});if("left"===o){var g={x:a-y,y:u+l/2,textAnchor:v,verticalAnchor:"middle"};return oi(oi({},g),r?{width:Math.max(g.x-r.x,0),height:l}:{})}if("right"===o){var b={x:a+c+y,y:u+l/2,textAnchor:m,verticalAnchor:"middle"};return oi(oi({},b),r?{width:Math.max(r.x+r.width-b.x,0),height:l}:{})}var x=r?{width:c,height:l}:{};return"insideLeft"===o?oi({x:a+y,y:u+l/2,textAnchor:m,verticalAnchor:"middle"},x):"insideRight"===o?oi({x:a+c-y,y:u+l/2,textAnchor:v,verticalAnchor:"middle"},x):"insideTop"===o?oi({x:a+c/2,y:u+f,textAnchor:"middle",verticalAnchor:h},x):"insideBottom"===o?oi({x:a+c/2,y:u+l-f,textAnchor:"middle",verticalAnchor:p},x):"insideTopLeft"===o?oi({x:a+y,y:u+f,textAnchor:m,verticalAnchor:h},x):"insideTopRight"===o?oi({x:a+c-y,y:u+f,textAnchor:v,verticalAnchor:h},x):"insideBottomLeft"===o?oi({x:a+y,y:u+l-f,textAnchor:m,verticalAnchor:p},x):"insideBottomRight"===o?oi({x:a+c-y,y:u+l-f,textAnchor:v,verticalAnchor:p},x):qr()(o)&&(cn(o.x)||un(o.x))&&(cn(o.y)||un(o.y))?oi({x:a+pn(o.x,c),y:u+pn(o.y,l),textAnchor:"end",verticalAnchor:"end"},x):oi({x:a+c/2,y:u+l/2,textAnchor:"middle",verticalAnchor:"middle"},x)},fi=function(t){return"cx"in t&&cn(t.cx)};function pi(t){var e,r=t.offset,n=oi({offset:void 0===r?5:r},ri(t,Qo)),o=n.viewBox,i=n.position,a=n.value,u=n.children,c=n.content,l=n.className,s=void 0===l?"":l,f=n.textBreakAll;if(!o||et()(a)&&et()(u)&&!(0,ot.isValidElement)(c)&&!Z()(c))return null;if((0,ot.isValidElement)(c))return(0,ot.cloneElement)(c,n);if(Z()(c)){if(e=(0,ot.createElement)(c,n),(0,ot.isValidElement)(e))return e}else e=ui(n);var p=fi(o),h=Tn(n,!0);if(p&&("insideStart"===i||"insideEnd"===i||"end"===i))return ci(n,e,h);var d=p?li(n):si(n);return it().createElement(Fo,ai({className:ut()("recharts-label",s)},h,d,{breakAll:f}),e)}pi.displayName="Label";var hi=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,u=t.radius,c=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(cn(d)&&cn(y)){if(cn(s)&&cn(f))return{x:s,y:f,width:d,height:y};if(cn(p)&&cn(h))return{x:p,y:h,width:d,height:y}}return cn(s)&&cn(f)?{x:s,y:f,width:0,height:0}:cn(e)&&cn(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:c||0,outerRadius:l||u||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};pi.parseViewBox=hi,pi.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=t.children,o=hi(t),i=kn(n,pi).map((function(t,r){return(0,ot.cloneElement)(t,{viewBox:e||o,key:"label-".concat(r)})}));if(!r)return i;var a=function(t,e){return t?!0===t?it().createElement(pi,{key:"label-implicit",viewBox:e}):ln(t)?it().createElement(pi,{key:"label-implicit",viewBox:e,value:t}):(0,ot.isValidElement)(t)?t.type===pi?(0,ot.cloneElement)(t,{key:"label-implicit",viewBox:e}):it().createElement(pi,{key:"label-implicit",content:t,viewBox:e}):Z()(t)?it().createElement(pi,{key:"label-implicit",content:t,viewBox:e}):qr()(t)?it().createElement(pi,ai({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||o);return[a].concat(ti(i))};var di=r(9734),yi=r.n(di),vi=r(3632),mi=r.n(vi),gi=r(4654),bi=r.n(gi);function xi(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function wi(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 Oi extends Map{constructor(t,e=ki){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(Si(this,t))}has(t){return super.has(Si(this,t))}set(t,e){return super.set(ji(this,t),e)}delete(t){return super.delete(Ei(this,t))}}function Si({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function ji({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function Ei({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function ki(t){return null!==t&&"object"==typeof t?t.valueOf():t}const Pi=Symbol("implicit");function _i(){var t=new Oi,e=[],r=[],n=Pi;function o(o){let i=t.get(o);if(void 0===i){if(n!==Pi)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 Oi;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 _i(e,r).unknown(n)},xi.apply(o,arguments),o}function Ai(){var t,e,r=_i().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,u=!1,c=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-c+2*l),u&&(t=Math.floor(t)),p+=(h-p-t*(r-c))*s,e=t*(1-c),u&&(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,u=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(u=!!t,f()):u},r.padding=function(t){return arguments.length?(c=Math.min(1,l=+t),f()):c},r.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),f()):c},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 Ai(n(),[i,a]).round(u).paddingInner(c).paddingOuter(l).align(s)},xi.apply(f(),arguments)}function Mi(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Mi(e())},t}function Ti(){return Mi(Ai.apply(null,arguments).paddingInner(1))}const Ci=Math.sqrt(50),Di=Math.sqrt(10),Ni=Math.sqrt(2);function Ii(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>=Ci?10:i>=Di?5:i>=Ni?2:1;let u,c,l;return o<0?(l=Math.pow(10,-o)/a,u=Math.round(t*l),c=Math.round(e*l),u/l<t&&++u,c/l>e&&--c,l=-l):(l=Math.pow(10,o)*a,u=Math.round(t/l),c=Math.round(e/l),u*l<t&&++u,c*l>e&&--c),c<u&&.5<=r&&r<2?Ii(t,e,2*r):[u,c,l]}function Ri(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[o,i,a]=n?Ii(e,t,r):Ii(t,e,r);if(!(i>=o))return[];const u=i-o+1,c=new Array(u);if(n)if(a<0)for(let t=0;t<u;++t)c[t]=(i-t)/-a;else for(let t=0;t<u;++t)c[t]=(i-t)*a;else if(a<0)for(let t=0;t<u;++t)c[t]=(o+t)/-a;else for(let t=0;t<u;++t)c[t]=(o+t)*a;return c}function Li(t,e,r){return Ii(t=+t,e=+e,r=+r)[2]}function Bi(t,e,r){r=+r;const n=(e=+e)<(t=+t),o=n?Li(e,t,r):Li(t,e,r);return(n?-1:1)*(o<0?1/-o:o)}function Ui(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function zi(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Fi(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=Ui,r=(e,r)=>Ui(t(e),r),n=(e,r)=>t(e)-r):(e=t===Ui||t===zi?t:Wi,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 Wi(){return 0}function $i(t){return null===t?NaN:+t}const Hi=Fi(Ui),Ki=Hi.right,qi=(Hi.left,Fi($i).center,Ki);function Gi(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Yi(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Xi(){}var Vi=.7,Zi=1/Vi,Ji="\\s*([+-]?\\d+)\\s*",Qi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ta="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ea=/^#([0-9a-f]{3,8})$/,ra=new RegExp("^rgb\\("+[Ji,Ji,Ji]+"\\)$"),na=new RegExp("^rgb\\("+[ta,ta,ta]+"\\)$"),oa=new RegExp("^rgba\\("+[Ji,Ji,Ji,Qi]+"\\)$"),ia=new RegExp("^rgba\\("+[ta,ta,ta,Qi]+"\\)$"),aa=new RegExp("^hsl\\("+[Qi,ta,ta]+"\\)$"),ua=new RegExp("^hsla\\("+[Qi,ta,ta,Qi]+"\\)$"),ca={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 la(){return this.rgb().formatHex()}function sa(){return this.rgb().formatRgb()}function fa(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=ea.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?pa(e):3===r?new ya(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?ha(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?ha(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=ra.exec(t))?new ya(e[1],e[2],e[3],1):(e=na.exec(t))?new ya(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=oa.exec(t))?ha(e[1],e[2],e[3],e[4]):(e=ia.exec(t))?ha(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=aa.exec(t))?ba(e[1],e[2]/100,e[3]/100,1):(e=ua.exec(t))?ba(e[1],e[2]/100,e[3]/100,e[4]):ca.hasOwnProperty(t)?pa(ca[t]):"transparent"===t?new ya(NaN,NaN,NaN,0):null}function pa(t){return new ya(t>>16&255,t>>8&255,255&t,1)}function ha(t,e,r,n){return n<=0&&(t=e=r=NaN),new ya(t,e,r,n)}function da(t,e,r,n){return 1===arguments.length?((o=t)instanceof Xi||(o=fa(o)),o?new ya((o=o.rgb()).r,o.g,o.b,o.opacity):new ya):new ya(t,e,r,null==n?1:n);var o}function ya(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function va(){return"#"+ga(this.r)+ga(this.g)+ga(this.b)}function ma(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function ga(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ba(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new wa(t,e,r,n)}function xa(t){if(t instanceof wa)return new wa(t.h,t.s,t.l,t.opacity);if(t instanceof Xi||(t=fa(t)),!t)return new wa;if(t instanceof wa)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,u=i-o,c=(i+o)/2;return u?(a=e===i?(r-n)/u+6*(r<n):r===i?(n-e)/u+2:(e-r)/u+4,u/=c<.5?i+o:2-i-o,a*=60):u=c>0&&c<1?0:a,new wa(a,u,c,t.opacity)}function wa(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function Oa(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 Sa(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}Gi(Xi,fa,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:la,formatHex:la,formatHsl:function(){return xa(this).formatHsl()},formatRgb:sa,toString:sa}),Gi(ya,da,Yi(Xi,{brighter:function(t){return t=null==t?Zi:Math.pow(Zi,t),new ya(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Vi:Math.pow(Vi,t),new ya(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){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:va,formatHex:va,formatRgb:ma,toString:ma})),Gi(wa,(function(t,e,r,n){return 1===arguments.length?xa(t):new wa(t,e,r,null==n?1:n)}),Yi(Xi,{brighter:function(t){return t=null==t?Zi:Math.pow(Zi,t),new wa(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Vi:Math.pow(Vi,t),new wa(this.h,this.s,this.l*t,this.opacity)},rgb:function(){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 ya(Oa(t>=240?t-240:t+120,o,n),Oa(t,o,n),Oa(t<120?t+240:t-120,o,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const ja=t=>()=>t;function Ea(t,e){return function(r){return t+r*e}}function ka(t){return 1==(t=+t)?Pa: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):ja(isNaN(e)?r:e)}}function Pa(t,e){var r=e-t;return r?Ea(t,r):ja(isNaN(t)?e:t)}const _a=function t(e){var r=ka(e);function n(t,e){var n=r((t=da(t)).r,(e=da(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=Pa(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 Aa(t){return function(e){var r,n,o=e.length,i=new Array(o),a=new Array(o),u=new Array(o);for(r=0;r<o;++r)n=da(e[r]),i[r]=n.r||0,a[r]=n.g||0,u[r]=n.b||0;return i=t(i),a=t(a),u=t(u),n.opacity=1,function(t){return n.r=i(t),n.g=a(t),n.b=u(t),n+""}}}Aa((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,u=n<e-1?t[n+2]:2*i-o;return Sa((r-n/e)*e,a,o,i,u)}})),Aa((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],u=t[(n+2)%e];return Sa((r-n/e)*e,o,i,a,u)}}));function Ma(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]=Ba(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 Ta(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function Ca(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Da(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]=Ba(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}var Na=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ia=new RegExp(Na.source,"g");function Ra(t,e){var r,n,o,i=Na.lastIndex=Ia.lastIndex=0,a=-1,u=[],c=[];for(t+="",e+="";(r=Na.exec(t))&&(n=Ia.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(r=r[0])===(n=n[0])?u[a]?u[a]+=n:u[++a]=n:(u[++a]=null,c.push({i:a,x:Ca(r,n)})),i=Ia.lastIndex;return i<e.length&&(o=e.slice(i),u[a]?u[a]+=o:u[++a]=o),u.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var r,n=0;n<e;++n)u[(r=c[n]).i]=r.x(t);return u.join("")})}function La(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 Ba(t,e){var r,n,o=typeof e;return null==e||"boolean"===o?ja(e):("number"===o?Ca:"string"===o?(r=fa(e))?(e=r,_a):Ra:e instanceof fa?_a:e instanceof Date?Ta:(n=e,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(e)?Ma:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Da:Ca:La))(t,e)}function Ua(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function za(t){return+t}var Fa=[0,1];function Wa(t){return t}function $a(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function Ha(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=$a(o,n),i=r(a,i)):(n=$a(n,o),i=r(i,a)),function(t){return i(n(t))}}function Ka(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]=$a(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=qi(t,e,1,n)-1;return i[r](o[r](e))}}function qa(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ga(){var t,e,r,n,o,i,a=Fa,u=Fa,c=Ba,l=Wa;function s(){var t=Math.min(a.length,u.length);return l!==Wa&&(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?Ka:Ha,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),u,c)))(t(l(e)))}return f.invert=function(r){return l(e((i||(i=n(u,a.map(t),Ca)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,za),s()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),c=Ua,s()},f.clamp=function(t){return arguments.length?(l=!!t||Wa,s()):l!==Wa},f.interpolate=function(t){return arguments.length?(c=t,s()):c},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function Ya(){return Ga()(Wa,Wa)}var Xa,Va=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Za(t){if(!(e=Va.exec(t)))throw new Error("invalid format: "+t);var e;return new Ja({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 Ja(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 Qa(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 tu(t){return(t=Qa(Math.abs(t)))?t[1]:NaN}function eu(t,e){var r=Qa(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")}Za.prototype=Ja.prototype,Ja.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 ru={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return eu(100*t,e)},r:eu,s:function(t,e){var r=Qa(t,e);if(!r)return t+"";var n=r[0],o=r[1],i=o-(Xa=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")+Qa(t,Math.max(0,e+i-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function nu(t){return t}var ou,iu,au,uu=Array.prototype.map,cu=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function lu(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?nu:(e=uu.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,u=e[0],c=0;o>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),i.push(t.substring(o-=u,o+u)),!((c+=u+1)>n));)u=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+"",u=void 0===t.numerals?nu:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(uu.call(t.numerals,String)),c=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=Za(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,g=t.type;"n"===g?(y=!0,g="g"):ru[g]||(void 0===v&&(v=12),m=!0,g="g"),(h||"0"===e&&"="===r)&&(h=!0,e="0",r="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===p?i:/[%p]/.test(g)?c:"",w=ru[g],O=/[defgprs%]/.test(g);function S(t){var o,i,c,p=b,S=x;if("c"===g)S=w(t)+S,t="";else{var j=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:w(Math.abs(t),v),m&&(t=function(t){t:for(var e,r=t.length,n=1,o=-1;n<r;++n)switch(t[n]){case".":o=e=n;break;case"0":0===o&&(o=n),e=n;break;default:if(!+t[n])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),j&&0==+t&&"+"!==f&&(j=!1),p=(j?"("===f?f:l:"-"===f||"("===f?"":f)+p,S=("s"===g?cu[8+Xa/3]:"")+S+(j&&"("===f?")":""),O)for(o=-1,i=t.length;++o<i;)if(48>(c=t.charCodeAt(o))||c>57){S=(46===c?a+t.slice(o+1):t.slice(o))+S,t=t.slice(0,o);break}}y&&!h&&(t=n(t,1/0));var E=p.length+t.length+S.length,k=E<d?new Array(d-E+1).join(e):"";switch(y&&h&&(t=n(k+t,k.length?d-S.length:1/0),k=""),r){case"<":t=p+t+S+k;break;case"=":t=p+k+t+S;break;case"^":t=k.slice(0,E=k.length>>1)+p+t+S+k.slice(E);break;default:t=k+p+t+S}return u(t)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return t+""},S}return{format:f,formatPrefix:function(t,e){var r=f(((t=Za(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(tu(e)/3))),o=Math.pow(10,-n),i=cu[8+n/3];return function(t){return r(o*t)+i}}}}function su(t,e,r,n){var o,i=Bi(t,e,r);switch((n=Za(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(tu(e)/3)))-tu(Math.abs(t)))}(i,a))||(n.precision=o),au(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,tu(e)-tu(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,-tu(Math.abs(t)))}(i))||(n.precision=o-2*("%"===n.type))}return iu(n)}function fu(t){var e=t.domain;return t.ticks=function(t){var r=e();return Ri(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return su(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,u=i.length-1,c=i[a],l=i[u],s=10;for(l<c&&(o=c,c=l,l=o,o=a,a=u,u=o);s-- >0;){if((o=Li(c,l,r))===n)return i[a]=c,i[u]=l,e(i);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o}n=o}return t},t}function pu(){var t=Ya();return t.copy=function(){return qa(t,pu())},xi.apply(t,arguments),fu(t)}function hu(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,za),r):t.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return hu(t).unknown(e)},t=arguments.length?Array.from(t,za):[0,1],fu(r)}function du(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 yu(t){return Math.log(t)}function vu(t){return Math.exp(t)}function mu(t){return-Math.log(-t)}function gu(t){return-Math.exp(-t)}function bu(t){return isFinite(t)?+("1e"+t):t<0?0:t}function xu(t){return(e,r)=>-t(-e,r)}function wu(t){const e=t(yu,vu),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?bu:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),r()[0]<0?(n=xu(n),o=xu(o),t(mu,gu)):t(yu,vu),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],u=e[e.length-1];const c=u<a;c&&([a,u]=[u,a]);let l,s,f=n(a),p=n(u);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>u)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>u)break;d.push(s)}2*d.length<h&&(d=Ri(a,u,h))}else d=Ri(f,p,Math.min(p-f,h)).map(o);return c?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=Za(r)).precision||(r.trim=!0),r=iu(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(du(r(),{floor:t=>o(Math.floor(n(t))),ceil:t=>o(Math.ceil(n(t)))})),e}function Ou(){const t=wu(Ga()).domain([1,10]);return t.copy=()=>qa(t,Ou()).base(t.base()),xi.apply(t,arguments),t}function Su(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function ju(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Eu(t){var e=1,r=t(Su(e),ju(e));return r.constant=function(r){return arguments.length?t(Su(e=+r),ju(e)):e},fu(r)}function ku(){var t=Eu(Ga());return t.copy=function(){return qa(t,ku()).constant(t.constant())},xi.apply(t,arguments)}function Pu(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function _u(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Au(t){return t<0?-t*t:t*t}function Mu(t){var e=t(Wa,Wa),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(Wa,Wa):.5===r?t(_u,Au):t(Pu(r),Pu(1/r)):r},fu(e)}function Tu(){var t=Mu(Ga());return t.copy=function(){return qa(t,Tu()).exponent(t.exponent())},xi.apply(t,arguments),t}function Cu(){return Tu.apply(null,arguments).exponent(.5)}function Du(t){return Math.sign(t)*t*t}function Nu(){var t,e=Ya(),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(Du(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,za)).map(Du)),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 Nu(e.domain(),r).round(n).clamp(e.clamp()).unknown(t)},xi.apply(o,arguments),fu(o)}function Iu(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 Ru(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 Lu(t=Ui){if(t===Ui)return Bu;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 Bu(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function Uu(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?Bu:Lu(o);n>r;){if(n-r>600){const i=n-r+1,a=e-r+1,u=Math.log(i),c=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*c*(i-c)/i)*(a-i/2<0?-1:1);Uu(t,e,Math.max(r,Math.floor(e-a*c/i+l)),Math.min(n,Math.floor(e+(i-a)*c/i+l)),o)}const i=t[e];let a=r,u=n;for(zu(t,r,e),o(t[n],i)>0&&zu(t,r,n);a<u;){for(zu(t,a,u),++a,--u;o(t[a],i)<0;)++a;for(;o(t[u],i)>0;)--u}0===o(t[r],i)?zu(t,r,u):(++u,zu(t,u,n)),u<=e&&(r=u+1),e<=u&&(n=u-1)}return t}function zu(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function Fu(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 Ru(t);if(e>=1)return Iu(t);var n,o=(n-1)*e,i=Math.floor(o),a=Iu(Uu(t,i).subarray(0,i+1));return a+(Ru(t.subarray(i+1))-a)*(o-i)}}function Wu(t,e,r=$i){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 $u(){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]=Wu(e,t/o);return i}function i(e){return null==e||isNaN(e=+e)?t:r[qi(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(Ui),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 $u().domain(e).range(r).unknown(t)},xi.apply(i,arguments)}function Hu(){var t,e=0,r=1,n=1,o=[.5],i=[0,1];function a(e){return null!=e&&e<=e?i[qi(o,e,0,n)]:t}function u(){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,u()):[e,r]},a.range=function(t){return arguments.length?(n=(i=Array.from(t)).length-1,u()):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 Hu().domain([e,r]).range(i).unknown(t)},xi.apply(fu(a),arguments)}function Ku(){var t,e=[.5],r=[0,1],n=1;function o(o){return null!=o&&o<=o?r[qi(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 Ku().domain(e).range(r).unknown(t)},xi.apply(o,arguments)}ou=lu({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),iu=ou.format,au=ou.formatPrefix;const qu=1e3,Gu=6e4,Yu=36e5,Xu=864e5,Vu=6048e5,Zu=2592e6,Ju=31536e6,Qu=new Date,tc=new Date;function ec(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 u;do{a.push(u=new Date(+r)),e(r,i),t(r)}while(u<r&&r<n);return a},o.filter=r=>ec((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)=>(Qu.setTime(+e),tc.setTime(+n),t(Qu),t(tc),Math.floor(r(Qu,tc))),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 rc=ec((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));rc.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?ec((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):rc:null);rc.range;const nc=ec((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*qu)}),((t,e)=>(e-t)/qu),(t=>t.getUTCSeconds())),oc=(nc.range,ec((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*qu)}),((t,e)=>{t.setTime(+t+e*Gu)}),((t,e)=>(e-t)/Gu),(t=>t.getMinutes()))),ic=(oc.range,ec((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*Gu)}),((t,e)=>(e-t)/Gu),(t=>t.getUTCMinutes()))),ac=(ic.range,ec((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*qu-t.getMinutes()*Gu)}),((t,e)=>{t.setTime(+t+e*Yu)}),((t,e)=>(e-t)/Yu),(t=>t.getHours()))),uc=(ac.range,ec((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*Yu)}),((t,e)=>(e-t)/Yu),(t=>t.getUTCHours()))),cc=(uc.range,ec((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Gu)/Xu),(t=>t.getDate()-1))),lc=(cc.range,ec((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Xu),(t=>t.getUTCDate()-1))),sc=(lc.range,ec((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Xu),(t=>Math.floor(t/Xu))));sc.range;function fc(t){return ec((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())*Gu)/Vu))}const pc=fc(0),hc=fc(1),dc=fc(2),yc=fc(3),vc=fc(4),mc=fc(5),gc=fc(6);pc.range,hc.range,dc.range,yc.range,vc.range,mc.range,gc.range;function bc(t){return ec((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)/Vu))}const xc=bc(0),wc=bc(1),Oc=bc(2),Sc=bc(3),jc=bc(4),Ec=bc(5),kc=bc(6),Pc=(xc.range,wc.range,Oc.range,Sc.range,jc.range,Ec.range,kc.range,ec((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()))),_c=(Pc.range,ec((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()))),Ac=(_c.range,ec((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())));Ac.every=t=>isFinite(t=Math.floor(t))&&t>0?ec((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;Ac.range;const Mc=ec((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()));Mc.every=t=>isFinite(t=Math.floor(t))&&t>0?ec((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;Mc.range;function Tc(t,e,r,n,o,i){const a=[[nc,1,qu],[nc,5,5e3],[nc,15,15e3],[nc,30,3e4],[i,1,Gu],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Yu],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,Xu],[n,2,1728e5],[r,1,Vu],[e,1,Zu],[e,3,7776e6],[t,1,Ju]];function u(e,r,n){const o=Math.abs(r-e)/n,i=Fi((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(Bi(e/Ju,r/Ju,n));if(0===i)return rc.every(Math.max(Bi(e,r,n),1));const[u,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return u.every(c)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const o=r&&"function"==typeof r.range?r:u(t,e,r),i=o?o.range(t,+e+1):[];return n?i.reverse():i},u]}const[Cc,Dc]=Tc(Mc,_c,xc,sc,uc,ic),[Nc,Ic]=Tc(Ac,Pc,pc,cc,ac,oc);var Rc=new Date,Lc=new Date;function Bc(t,e,r,n){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=function(e){return t(e=new Date(+e)),e},o.ceil=function(r){return t(r=new Date(r-1)),e(r,1),t(r),r},o.round=function(t){var e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=function(t,r){return e(t=new Date(+t),null==r?1:Math.floor(r)),t},o.range=function(r,n,i){var a,u=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return u;do{u.push(a=new Date(+r)),e(r,i),t(r)}while(a<r&&r<n);return u},o.filter=function(r){return Bc((function(e){if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),(function(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=function(e,n){return Rc.setTime(+e),Lc.setTime(+n),t(Rc),t(Lc),Math.floor(r(Rc,Lc))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(n?function(e){return n(e)%t==0}:function(e){return o.count(0,e)%t==0}):o:null}),o}var Uc=864e5,zc=6048e5;function Fc(t){return Bc((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/zc}))}var Wc=Fc(0),$c=Fc(1),Hc=Fc(2),Kc=Fc(3),qc=Fc(4),Gc=Fc(5),Yc=Fc(6),Xc=(Wc.range,$c.range,Hc.range,Kc.range,qc.range,Gc.range,Yc.range,Bc((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Uc}),(function(t){return t.getUTCDate()-1})));const Vc=Xc;Xc.range;function Zc(t){return Bc((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/zc}))}var Jc=Zc(0),Qc=Zc(1),tl=Zc(2),el=Zc(3),rl=Zc(4),nl=Zc(5),ol=Zc(6),il=(Jc.range,Qc.range,tl.range,el.range,rl.range,nl.range,ol.range,Bc((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/Uc}),(function(t){return t.getDate()-1})));const al=il;il.range;var ul=Bc((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));ul.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Bc((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,r){e.setFullYear(e.getFullYear()+r*t)})):null};const cl=ul;ul.range;var ll=Bc((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));ll.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Bc((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null};const sl=ll;ll.range;function fl(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 pl(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 hl(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var dl,yl,vl,ml={"-":"",_:" ",0:"0"},gl=/^\s*\d+/,bl=/^%/,xl=/[\\^$*+?|[\]().{}]/g;function wl(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 Ol(t){return t.replace(xl,"\\$&")}function Sl(t){return new RegExp("^(?:"+t.map(Ol).join("|")+")","i")}function jl(t){for(var e={},r=-1,n=t.length;++r<n;)e[t[r].toLowerCase()]=r;return e}function El(t,e,r){var n=gl.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function kl(t,e,r){var n=gl.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function Pl(t,e,r){var n=gl.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function _l(t,e,r){var n=gl.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function Al(t,e,r){var n=gl.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function Ml(t,e,r){var n=gl.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Tl(t,e,r){var n=gl.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Cl(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 Dl(t,e,r){var n=gl.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function Nl(t,e,r){var n=gl.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Il(t,e,r){var n=gl.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function Rl(t,e,r){var n=gl.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function Ll(t,e,r){var n=gl.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function Bl(t,e,r){var n=gl.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function Ul(t,e,r){var n=gl.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function zl(t,e,r){var n=gl.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function Fl(t,e,r){var n=gl.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Wl(t,e,r){var n=bl.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function $l(t,e,r){var n=gl.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Hl(t,e,r){var n=gl.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function Kl(t,e){return wl(t.getDate(),e,2)}function ql(t,e){return wl(t.getHours(),e,2)}function Gl(t,e){return wl(t.getHours()%12||12,e,2)}function Yl(t,e){return wl(1+al.count(cl(t),t),e,3)}function Xl(t,e){return wl(t.getMilliseconds(),e,3)}function Vl(t,e){return Xl(t,e)+"000"}function Zl(t,e){return wl(t.getMonth()+1,e,2)}function Jl(t,e){return wl(t.getMinutes(),e,2)}function Ql(t,e){return wl(t.getSeconds(),e,2)}function ts(t){var e=t.getDay();return 0===e?7:e}function es(t,e){return wl(Jc.count(cl(t)-1,t),e,2)}function rs(t){var e=t.getDay();return e>=4||0===e?rl(t):rl.ceil(t)}function ns(t,e){return t=rs(t),wl(rl.count(cl(t),t)+(4===cl(t).getDay()),e,2)}function os(t){return t.getDay()}function is(t,e){return wl(Qc.count(cl(t)-1,t),e,2)}function as(t,e){return wl(t.getFullYear()%100,e,2)}function us(t,e){return wl((t=rs(t)).getFullYear()%100,e,2)}function cs(t,e){return wl(t.getFullYear()%1e4,e,4)}function ls(t,e){var r=t.getDay();return wl((t=r>=4||0===r?rl(t):rl.ceil(t)).getFullYear()%1e4,e,4)}function ss(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+wl(e/60|0,"0",2)+wl(e%60,"0",2)}function fs(t,e){return wl(t.getUTCDate(),e,2)}function ps(t,e){return wl(t.getUTCHours(),e,2)}function hs(t,e){return wl(t.getUTCHours()%12||12,e,2)}function ds(t,e){return wl(1+Vc.count(sl(t),t),e,3)}function ys(t,e){return wl(t.getUTCMilliseconds(),e,3)}function vs(t,e){return ys(t,e)+"000"}function ms(t,e){return wl(t.getUTCMonth()+1,e,2)}function gs(t,e){return wl(t.getUTCMinutes(),e,2)}function bs(t,e){return wl(t.getUTCSeconds(),e,2)}function xs(t){var e=t.getUTCDay();return 0===e?7:e}function ws(t,e){return wl(Wc.count(sl(t)-1,t),e,2)}function Os(t){var e=t.getUTCDay();return e>=4||0===e?qc(t):qc.ceil(t)}function Ss(t,e){return t=Os(t),wl(qc.count(sl(t),t)+(4===sl(t).getUTCDay()),e,2)}function js(t){return t.getUTCDay()}function Es(t,e){return wl($c.count(sl(t)-1,t),e,2)}function ks(t,e){return wl(t.getUTCFullYear()%100,e,2)}function Ps(t,e){return wl((t=Os(t)).getUTCFullYear()%100,e,2)}function _s(t,e){return wl(t.getUTCFullYear()%1e4,e,4)}function As(t,e){var r=t.getUTCDay();return wl((t=r>=4||0===r?qc(t):qc.ceil(t)).getUTCFullYear()%1e4,e,4)}function Ms(){return"+0000"}function Ts(){return"%"}function Cs(t){return+t}function Ds(t){return Math.floor(+t/1e3)}function Ns(t){return new Date(t)}function Is(t){return t instanceof Date?+t:+new Date(+t)}function Rs(t,e,r,n,o,i,a,u,c,l){var s=Ya(),f=s.invert,p=s.domain,h=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),g=l("%b %d"),b=l("%B"),x=l("%Y");function w(t){return(c(t)<t?h:u(t)<t?d:a(t)<t?y:i(t)<t?v:n(t)<t?o(t)<t?m:g:r(t)<t?b:x)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,Is)):p().map(Ns)},s.ticks=function(e){var r=p();return t(r[0],r[r.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?w:l(e)},s.nice=function(t){var r=p();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?p(du(r,t)):s},s.copy=function(){return qa(s,Rs(t,e,r,n,o,i,a,u,c,l))},s}function Ls(){return xi.apply(Rs(Nc,Ic,Ac,Pc,pc,cc,ac,oc,nc,yl).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Bs(){return xi.apply(Rs(Cc,Dc,Mc,_c,xc,lc,uc,ic,nc,vl).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Us(){var t,e,r,n,o,i=0,a=1,u=Wa,c=!1;function l(e){return null==e||isNaN(e=+e)?o:u(0===r?.5:(e=(n(e)-t)*r,c?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,u=t(r,n),l):[u(0),u(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?(c=!!t,l):c},l.interpolator=function(t){return arguments.length?(u=t,l):u},l.range=s(Ba),l.rangeRound=s(Ua),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 zs(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Fs(){var t=fu(Us()(Wa));return t.copy=function(){return zs(t,Fs())},wi.apply(t,arguments)}function Ws(){var t=wu(Us()).domain([1,10]);return t.copy=function(){return zs(t,Ws()).base(t.base())},wi.apply(t,arguments)}function $s(){var t=Eu(Us());return t.copy=function(){return zs(t,$s()).constant(t.constant())},wi.apply(t,arguments)}function Hs(){var t=Mu(Us());return t.copy=function(){return zs(t,Hs()).exponent(t.exponent())},wi.apply(t,arguments)}function Ks(){return Hs.apply(null,arguments).exponent(.5)}function qs(){var t=[],e=Wa;function r(r){if(null!=r&&!isNaN(r=+r))return e((qi(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(Ui),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)=>Fu(t,n/e)))},r.copy=function(){return qs(e).domain(t)},wi.apply(r,arguments)}function Gs(){var t,e,r,n,o,i,a,u=0,c=.5,l=1,s=1,f=Wa,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=Ba);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?([u,c,l]=a,t=i(u=+u),e=i(c=+c),r=i(l=+l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h):[u,c,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(Ba),h.rangeRound=d(Ua),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return i=a,t=a(u),e=a(c),r=a(l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,h}}function Ys(){var t=fu(Gs()(Wa));return t.copy=function(){return zs(t,Ys())},wi.apply(t,arguments)}function Xs(){var t=wu(Gs()).domain([.1,1,10]);return t.copy=function(){return zs(t,Xs()).base(t.base())},wi.apply(t,arguments)}function Vs(){var t=Eu(Gs());return t.copy=function(){return zs(t,Vs()).constant(t.constant())},wi.apply(t,arguments)}function Zs(){var t=Mu(Gs());return t.copy=function(){return zs(t,Zs()).exponent(t.exponent())},wi.apply(t,arguments)}function Js(){return Zs.apply(null,arguments).exponent(.5)}function Qs(t,e){if((o=t.length)>1)for(var r,n,o,i=1,a=t[e[0]],u=a.length;i<o;++i)for(n=a,a=t[e[i]],r=0;r<u;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function tf(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function ef(t,e){return t[e]}function rf(t){const e=[];return e.key=t,e}!function(t){dl=function(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,l=Sl(o),s=jl(o),f=Sl(i),p=jl(i),h=Sl(a),d=jl(a),y=Sl(u),v=jl(u),m=Sl(c),g=jl(c),b={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:Kl,e:Kl,f:Vl,g:us,G:ls,H:ql,I:Gl,j:Yl,L:Xl,m:Zl,M:Jl,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Cs,s:Ds,S:Ql,u:ts,U:es,V:ns,w:os,W:is,x:null,X:null,y:as,Y:cs,Z:ss,"%":Ts},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:fs,e:fs,f:vs,g:Ps,G:As,H:ps,I:hs,j:ds,L:ys,m:ms,M:gs,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Cs,s:Ds,S:bs,u:xs,U:ws,V:Ss,w:js,W:Es,x:null,X:null,y:ks,Y:_s,Z:Ms,"%":Ts},w={a:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=d[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[n[0].toLowerCase()],r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=g[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[n[0].toLowerCase()],r+n[0].length):-1},c:function(t,r,n){return j(t,e,r,n)},d:Il,e:Il,f:Fl,g:Tl,G:Ml,H:Ll,I:Ll,j:Rl,L:zl,m:Nl,M:Bl,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s[n[0].toLowerCase()],r+n[0].length):-1},q:Dl,Q:$l,s:Hl,S:Ul,u:kl,U:Pl,V:_l,w:El,W:Al,x:function(t,e,n){return j(t,r,e,n)},X:function(t,e,r){return j(t,n,e,r)},y:Tl,Y:Ml,Z:Cl,"%":Wl};function O(t,e){return function(r){var n,o,i,a=[],u=-1,c=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(o=ml[n=t.charAt(++u)])?n=t.charAt(++u):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),a.push(n),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function S(t,e){return function(r){var n,o,i=hl(1900,void 0,1);if(j(i,t,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(n=pl(hl(i.y,0,1))).getUTCDay(),n=o>4||0===o?$c.ceil(n):$c(n),n=Vc.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=fl(hl(i.y,0,1))).getDay(),n=o>4||0===o?Qc.ceil(n):Qc(n),n=al.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?pl(hl(i.y,0,1)).getUTCDay():fl(hl(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,pl(i)):fl(i)}}function j(t,e,r,n){for(var o,i,a=0,u=e.length,c=r.length;a<u;){if(n>=c)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=w[o in ml?e.charAt(a++):o])||(n=i(t,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return b.x=O(r,b),b.X=O(n,b),b.c=O(e,b),x.x=O(r,x),x.X=O(n,x),x.c=O(e,x),{format:function(t){var e=O(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}(t),yl=dl.format,dl.parse,vl=dl.utcFormat,dl.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var nf=r(9887),of=r.n(nf);function af(t){return function(t){if(Array.isArray(t))return uf(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 uf(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 uf(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 uf(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 cf=function(t){return t},lf={"@@functional/placeholder":!0},sf=function(t){return t===lf},ff=function(t){return function e(){return 0===arguments.length||1===arguments.length&&sf(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},pf=function t(e,r){return 1===e?r:ff((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!==lf})).length;return a>=e?r.apply(void 0,o):t(e-a,ff((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 sf(t)?e.shift():t}));return r.apply(void 0,af(i).concat(e))})))}))},hf=function(t){return pf(t.length,t)},df=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},yf=hf((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),vf=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return cf;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))}},mf=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},gf=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 bf=hf((function(t,e,r){var n=+t;return n+r*(+e-n)})),xf=hf((function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)})),wf=hf((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))}));const Of={rangeStep:function(t,e,r){for(var n=new(of())(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(of())(t).abs().log(10).toNumber())+1},interpolateNumber:bf,uninterpolateNumber:xf,uninterpolateTruncation:wf};function Sf(t){return function(t){if(Array.isArray(t))return kf(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Ef(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 jf(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,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(t,e)||Ef(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 Ef(t,e){if(t){if("string"==typeof t)return kf(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)?kf(t,e):void 0}}function kf(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 Pf(t){var e=jf(t,2),r=e[0],n=e[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function _f(t,e,r){if(t.lte(0))return new(of())(0);var n=Of.getDigitCount(t.toNumber()),o=new(of())(10).pow(n),i=t.div(o),a=1!==n?.05:.1,u=new(of())(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?u:new(of())(Math.ceil(u))}function Af(t,e,r){var n=1,o=new(of())(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new(of())(10).pow(Of.getDigitCount(t)-1),o=new(of())(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new(of())(Math.floor(t)))}else 0===t?o=new(of())(Math.floor((e-1)/2)):r||(o=new(of())(Math.floor(t)));var a=Math.floor((e-1)/2);return vf(yf((function(t){return o.add(new(of())(t-a).mul(n)).toNumber()})),df)(0,e)}function Mf(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(of())(0),tickMin:new(of())(0),tickMax:new(of())(0)};var i,a=_f(new(of())(e).sub(t).div(r-1),n,o);i=t<=0&&e>=0?new(of())(0):(i=new(of())(t).add(e).div(2)).sub(new(of())(i).mod(a));var u=Math.ceil(i.sub(t).div(a).toNumber()),c=Math.ceil(new(of())(e).sub(i).div(a).toNumber()),l=u+c+1;return l>r?Mf(t,e,r,n,o+1):(l<r&&(c=e>0?c+(r-l):c,u=e>0?u:u+(r-l)),{step:a,tickMin:i.sub(new(of())(u).mul(a)),tickMax:i.add(new(of())(c).mul(a))})}var Tf=gf((function(t){var e=jf(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),u=jf(Pf([r,n]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0){var s=l===1/0?[c].concat(Sf(df(0,o-1).map((function(){return 1/0})))):[].concat(Sf(df(0,o-1).map((function(){return-1/0}))),[l]);return r>n?mf(s):s}if(c===l)return Af(c,o,i);var f=Mf(c,l,a,i),p=f.step,h=f.tickMin,d=f.tickMax,y=Of.rangeStep(h,d.add(new(of())(.1).mul(p)),p);return r>n?mf(y):y})),Cf=(gf((function(t){var e=jf(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),u=jf(Pf([r,n]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0)return[r,n];if(c===l)return Af(c,o,i);var s=_f(new(of())(l).sub(c).div(a-1),i,0),f=vf(yf((function(t){return new(of())(c).add(new(of())(t).mul(s)).toNumber()})),df)(0,a).filter((function(t){return t>=c&&t<=l}));return r>n?mf(f):f})),gf((function(t,e){var r=jf(t,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=jf(Pf([n,o]),2),u=a[0],c=a[1];if(u===-1/0||c===1/0)return[n,o];if(u===c)return[u];var l=Math.max(e,2),s=_f(new(of())(c).sub(u).div(l-1),i,0),f=[].concat(Sf(Of.rangeStep(new(of())(u),new(of())(c).sub(new(of())(.99).mul(s)),s)),[c]);return n>o?mf(f):f}))),Df=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 If(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Rf(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 Rf(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 Rf(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 Lf(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 Bf(t){var e=t.offset,r=t.layout,n=t.width,o=t.dataKey,i=t.data,a=t.dataPointFormatter,u=t.xAxis,c=t.yAxis,l=Lf(t,Df),s=Tn(l),f=i.map((function(t,i){var l=a(t,o),f=l.x,p=l.y,h=l.value,d=l.errorVal;if(!d)return null;var y,v,m=[];if(Array.isArray(d)){var g=If(d,2);y=g[0],v=g[1]}else y=v=d;if("vertical"===r){var b=u.scale,x=p+e,w=x+n,O=x-n,S=b(h-y),j=b(h+v);m.push({x1:j,y1:w,x2:j,y2:O}),m.push({x1:S,y1:x,x2:j,y2:x}),m.push({x1:S,y1:w,x2:S,y2:O})}else if("horizontal"===r){var E=c.scale,k=f+e,P=k-n,_=k+n,A=E(h-y),M=E(h+v);m.push({x1:P,y1:M,x2:_,y2:M}),m.push({x1:k,y1:A,x2:k,y2:M}),m.push({x1:P,y1:A,x2:_,y2:A})}return it().createElement(Zn,Nf({className:"recharts-errorBar",key:"bar-".concat(i)},s),m.map((function(t,e){return it().createElement("line",Nf({},t,{key:"line-".concat(e)}))})))}));return it().createElement(Zn,{className:"recharts-errorBars"},f)}Bf.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},Bf.displayName="ErrorBar";var Uf=r(5578),zf=r.n(Uf),Ff=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]},Wf=["children","width","height","viewBox","className","style"];function $f(){return $f=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},$f.apply(this,arguments)}function Hf(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 Kf(t){var e=t.children,r=t.width,n=t.height,o=t.viewBox,i=t.className,a=t.style,u=Hf(t,Wf),c=o||{width:r,height:n,x:0,y:0},l=ut()("recharts-surface",i);return it().createElement("svg",$f({},Tn(u,!0,"svg"),{className:l,width:r,height:n,style:a,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),it().createElement("title",null,t.title),it().createElement("desc",null,t.desc),e)}Math.abs,Math.atan2;const qf=Math.cos,Gf=(Math.max,Math.min,Math.sin),Yf=Math.sqrt,Xf=Math.PI,Vf=2*Xf;const Zf={draw(t,e){const r=Yf(e/Xf);t.moveTo(r,0),t.arc(0,0,r,0,Vf)}},Jf={draw(t,e){const r=Yf(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()}},Qf=Yf(1/3),tp=2*Qf,ep={draw(t,e){const r=Yf(e/tp),n=r*Qf;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},rp={draw(t,e){const r=Yf(e),n=-r/2;t.rect(n,n,r,r)}},np=Gf(Xf/10)/Gf(7*Xf/10),op=Gf(Vf/10)*np,ip=-qf(Vf/10)*np,ap={draw(t,e){const r=Yf(.8908130915292852*e),n=op*r,o=ip*r;t.moveTo(0,-r),t.lineTo(n,o);for(let e=1;e<5;++e){const i=Vf*e/5,a=qf(i),u=Gf(i);t.lineTo(u*r,-a*r),t.lineTo(a*n-u*o,u*n+a*o)}t.closePath()}},up=Yf(3),cp={draw(t,e){const r=-Yf(e/(3*up));t.moveTo(0,2*r),t.lineTo(-up*r,-r),t.lineTo(up*r,-r),t.closePath()}},lp=-.5,sp=Yf(3)/2,fp=1/Yf(12),pp=3*(fp/2+1),hp={draw(t,e){const r=Yf(e/pp),n=r/2,o=r*fp,i=n,a=r*fp+r,u=-i,c=a;t.moveTo(n,o),t.lineTo(i,a),t.lineTo(u,c),t.lineTo(lp*n-sp*o,sp*n+lp*o),t.lineTo(lp*i-sp*a,sp*i+lp*a),t.lineTo(lp*u-sp*c,sp*u+lp*c),t.lineTo(lp*n+sp*o,lp*o-sp*n),t.lineTo(lp*i+sp*a,lp*a-sp*i),t.lineTo(lp*u+sp*c,lp*c-sp*u),t.closePath()}};Yf(3),Yf(3);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)}var yp=["type","size","sizeType"];function vp(){return vp=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},vp.apply(this,arguments)}function mp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function gp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mp(Object(r),!0).forEach((function(e){bp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function bp(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}function xp(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 Op={symbolCircle:Zf,symbolCross:Jf,symbolDiamond:ep,symbolSquare:rp,symbolStar:ap,symbolTriangle:cp,symbolWye:hp},Sp=Math.PI/180,jp=function(t){var e,r,n=t.type,o=void 0===n?"circle":n,i=t.size,a=void 0===i?64:i,u=t.sizeType,c=void 0===u?"area":u,l=gp(gp({},xp(t,yp)),{},{type:o,size:a,sizeType:c}),s=l.className,f=l.cx,p=l.cy,h=Tn(l,!0);return f===+f&&p===+p&&a===+a?it().createElement("path",vp({},h,{className:ut()("recharts-symbols",s),transform:"translate(".concat(f,", ").concat(p,")"),d:(e=function(t){var e="symbol".concat(pr()(t));return Op[e]||Zf}(o),r=function(t,e){let r=null,n=zr(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:Dr(t||Zf),e="function"==typeof e?e:Dr(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:Dr(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:Dr(+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*Sp;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}}(a,c,o)),r())})):null};function Ep(t){return Ep="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ep(t)}function kp(){return kp=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},kp.apply(this,arguments)}function Pp(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 _p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Dp(n.key),n)}}function Ap(t,e){return Ap=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ap(t,e)}function Mp(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=Tp(t);if(e){var o=Tp(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Ep(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function Tp(t){return Tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Tp(t)}function Cp(t,e,r){return(e=Dp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Dp(t){var e=function(t,e){if("object"!==Ep(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ep(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ep(e)?e:String(e)}jp.registerSymbol=function(t,e){Op["symbol".concat(pr()(t))]=e};var Np=32,Ip=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&&Ap(t,e)}(i,t);var e,r,n,o=Mp(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return e=i,r=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=16,n=Np/6,o=Np/3,i=t.inactive?e:t.color;if("plainline"===t.type)return it().createElement("line",{strokeWidth:4,fill:"none",stroke:i,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:r,x2:Np,y2:r,className:"recharts-legend-icon"});if("line"===t.type)return it().createElement("path",{strokeWidth:4,fill:"none",stroke:i,d:"M0,".concat(r,"h").concat(o,"\n A").concat(n,",").concat(n,",0,1,1,").concat(2*o,",").concat(r,"\n H").concat(Np,"M").concat(2*o,",").concat(r,"\n A").concat(n,",").concat(n,",0,1,1,").concat(o,",").concat(r),className:"recharts-legend-icon"});if("rect"===t.type)return it().createElement("path",{stroke:"none",fill:i,d:"M0,".concat(4,"h").concat(Np,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(it().isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Pp(Object(r),!0).forEach((function(e){Cp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return delete a.legendIcon,it().cloneElement(t.legendIcon,a)}return it().createElement(jp,{fill:i,cx:r,cy:r,size:Np,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,r=e.payload,n=e.iconSize,o=e.layout,i=e.formatter,a=e.inactiveColor,u={x:0,y:0,width:Np,height:Np},c={display:"horizontal"===o?"inline-block":"block",marginRight:10},l={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(e,r){var o,s=e.formatter||i,f=ut()((Cp(o={"recharts-legend-item":!0},"legend-item-".concat(r),!0),Cp(o,"inactive",e.inactive),o));if("none"===e.type)return null;var p=Z()(e.value)?null:e.value;Ff(!Z()(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 h=e.inactive?a:e.color;return it().createElement("li",kp({className:f,style:c,key:"legend-item-".concat(r)},Qr(t.props,e,r)),it().createElement(Kf,{width:n,height:n,viewBox:u,style:l},t.renderIcon(e)),it().createElement("span",{className:"recharts-legend-item-text",style:{color:h}},s?s(p,e,r):p))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,n=t.align;if(!e||!e.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return it().createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}],r&&_p(e.prototype,r),n&&_p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.PureComponent);function Rp(t){return Rp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rp(t)}Cp(Ip,"displayName","Legend"),Cp(Ip,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Lp=["ref"];function Bp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Up(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Bp(Object(r),!0).forEach((function(e){Kp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zp(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,qp(n.key),n)}}function Fp(t,e){return Fp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fp(t,e)}function Wp(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=Hp(t);if(e){var o=Hp(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Rp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return $p(t)}(this,r)}}function $p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hp(t){return Hp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Hp(t)}function Kp(t,e,r){return(e=qp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qp(t){var e=function(t,e){if("object"!==Rp(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Rp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Rp(e)?e:String(e)}function Gp(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 Yp(t){return t.value}function Xp(t,e){return!0===t?zf()(e,Yp):Z()(t)?zf()(e,t):e}var Vp=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&&Fp(t,e)}(i,t);var e,r,n,o=Wp(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Kp($p(t=o.call.apply(o,[this].concat(r))),"state",{boxWidth:-1,boxHeight:-1}),t}return e=i,n=[{key:"getWithHeight",value:function(t,e){var r=t.props.layout;return"vertical"===r&&cn(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"getBBoxSnapshot",value:function(){var t=this.state,e=t.boxWidth,r=t.boxHeight;return e>=0&&r>=0?{width:e,height:r}:null}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,u=n.margin,c=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:((c||0)-(this.getBBoxSnapshot()||{width:0}).width)/2}:"right"===i?{right:u&&u.right||0}:{left:u&&u.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:0}).height)/2}:"bottom"===a?{bottom:u&&u.bottom||0}:{top:u&&u.top||0}),Up(Up({},e),r)}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,r=t.boxHeight,n=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-e)>1||Math.abs(o.height-r)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},(function(){n&&n(o)}))}else-1===e&&-1===r||this.setState({boxWidth:-1,boxHeight:-1},(function(){n&&n(null)}))}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,n=e.width,o=e.height,i=e.wrapperStyle,a=e.payloadUniqBy,u=e.payload,c=Up(Up({position:"absolute",width:n||"auto",height:o||"auto"},this.getDefaultPosition(i)),i);return it().createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(e){t.wrapperNode=e}},function(t,e){if(it().isValidElement(t))return it().cloneElement(t,e);if(Z()(t))return it().createElement(t,e);e.ref;var r=Gp(e,Lp);return it().createElement(Ip,r)}(r,Up(Up({},this.props),{},{payload:Xp(a,u)})))}}])&&zp(e.prototype,r),n&&zp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.PureComponent);function Zp(t){return Zp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zp(t)}function 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"!==Zp(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Zp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Zp(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Kp(Vp,"displayName","Legend"),Kp(Vp,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var eh=function(t){var e,r=t.children,n=t.formattedGraphicalItems,o=t.legendWidth,i=t.legendContent,a=Pn(r,Vp);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:sh(e),value:o||n,payload:e.props}})),Qp(Qp(Qp({},a.props),Vp.getWithHeight(a,o)),{},{payload:e,item:a})):null};function rh(t){return rh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rh(t)}function nh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function oh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nh(Object(r),!0).forEach((function(e){ih(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ih(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==rh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==rh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===rh(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ah(t){return function(t){if(Array.isArray(t))return uh(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 uh(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 uh(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 uh(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 ch(t,e,r){return et()(t)||et()(e)?r:ln(e)?Q()(t,e,r):Z()(e)?e(t):r}function lh(t,e,r,n){var o=bi()(t,(function(t){return ch(t,e)}));if("number"===r){var i=o.filter((function(t){return cn(t)||parseFloat(t)}));return i.length?[mi()(i),X()(i)]:[1/0,-1/0]}return(n?o.filter((function(t){return!et()(t)})):o).map((function(t){return ln(t)||t instanceof Date?t:""}))}var sh=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},fh=function(t,e,r,n,o){var i=kn(e.props.children,Bf).filter((function(t){return function(t,e,r){return!!et()(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=ch(e,r,0),o=nt()(n)?[mi()(n),X()(n)]:[n,n],i=a.reduce((function(t,r){var n=ch(e,r,0),i=o[0]-Math.abs(nt()(n)?n[0]:n),a=o[1]+Math.abs(nt()(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},ph=function(t,e,r,n,o){var i=e.map((function(e){var i=e.props.dataKey;return"number"===r&&i&&fh(t,e,i,n)||lh(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}),[])},hh=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},dh=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},yh=function(t,e,r){if(!t)return null;var n=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,u="scaleBand"===t.realScaleType?n.bandwidth()/2:2,c=(e||r)&&"category"===i&&n.bandwidth?n.bandwidth()/u:0;return c="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*an(a[0]-a[1])*c:c,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=o?o.indexOf(t):t;return{coordinate:n(e)+c,value:t,offset:c}})).filter((function(t){return!G()(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:n(t)+c,value:t,index:e,offset:c}})):n.ticks&&!r?n.ticks(t.tickCount).map((function(t){return{coordinate:n(t)+c,value:t,offset:c}})):n.domain().map((function(t,e){return{coordinate:n(t)+c,value:o?o[t]:t,index:e,offset:c}}))},vh=function(t,e,r){var n;return Z()(r)?n=r:Z()(e)&&(n=e),Z()(t)||n?function(e,r,o,i){Z()(t)&&t(e,r,o,i),Z()(n)&&n(e,r,o,i)}:null},mh=1e-4,gh={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 u=G()(t[a][r][1])?t[a][r][0]:t[a][r][1];u>=0?(t[a][r][0]=o,t[a][r][1]=o+u,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+u,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}Qs(t,e)}},none:Qs,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,u=0;a<r;++a)u+=t[a][n][1]||0;o[n][1]+=o[n][0]=-u/2}Qs(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 u=0,c=0,l=0;u<o;++u){for(var s=t[e[u]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,h=0;h<u;++h){var d=t[e[h]];p+=(d[a][1]||0)-(d[a-1][1]||0)}c+=f,l+=p*f}r[a-1][1]+=r[a-1][0]=i,c&&(i-=l/c)}r[a-1][1]+=r[a-1][0]=i,Qs(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)}}},bh=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),o=gh[r],i=function(){var t=Dr([]),e=tf,r=Qs,n=ef;function o(o){var i,a,u=Array.from(t.apply(this,arguments),rf),c=u.length,l=-1;for(const t of o)for(i=0,++l;i<c;++i)(u[i][l]=[0,+n(t,u[i].key,l,o)]).data=t;for(i=0,a=Cr(e(u));i<c;++i)u[a[i]].index=i;return r(u,a),u}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:Dr(Array.from(e)),o):t},o.value=function(t){return arguments.length?(n="function"==typeof t?t:Dr(+t),o):n},o.order=function(t){return arguments.length?(e=null==t?tf:"function"==typeof t?t:Dr(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?Qs:t,o):r},o}().keys(n).value((function(t,e){return+ch(t,e,0)})).order(tf).offset(o);return i(t)},xh=function(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&&!et()(o[e.dataKey])){var u=yn(r,"value",o[e.dataKey]);if(u)return u.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var c=ch(o,et()(a)?e.dataKey:a);return et()(c)?null:e.scale(c)},wh=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 u=ch(i,e.dataKey,e.domain[a]);return et()(u)?null:e.scale(u)-o/2+n},Oh=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[mi()(e.concat([t[0]]).filter(cn)),X()(e.concat([t[1]]).filter(cn))]}),[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}))},Sh=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,jh=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Eh=function(t,e,r){if(Z()(t))return t(e,r);if(!nt()(t))return e;var n=[];if(cn(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(Sh.test(t[0])){var o=+Sh.exec(t[0])[1];n[0]=e[0]-o}else Z()(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(cn(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(jh.test(t[1])){var i=+jh.exec(t[1])[1];n[1]=e[1]+i}else Z()(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},kh=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=yi()(e,(function(t){return t.coordinate})),i=1/0,a=1,u=o.length;a<u;a++){var c=o[a],l=o[a-1];i=Math.min((c.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},Ph=function(t,e,r){return t&&t.length?K()(t,Q()(r,"type.defaultProps.domain"))?e:t:e},_h=function(t,e){var r=t.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,u=r.tooltipType,c=r.chartType;return oh(oh({},Tn(t)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:sh(t),value:ch(e,n),type:u,payload:e,chartType:c})};function Ah(t){return Ah="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},Ah(t)}var Mh=["valueAccessor"],Th=["data","dataKey","clockWise","id","textBreakAll"];function Ch(t){return function(t){if(Array.isArray(t))return Dh(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 Dh(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 Dh(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 Dh(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 Nh(){return Nh=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},Nh.apply(this,arguments)}function Ih(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 Rh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ih(Object(r),!0).forEach((function(e){Lh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ih(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Lh(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ah(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ah(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ah(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bh(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 Uh=function(t){return nt()(t.value)?Qn()(t.value):t.value};function zh(t){var e=t.valueAccessor,r=void 0===e?Uh:e,n=Bh(t,Mh),o=n.data,i=n.dataKey,a=n.clockWise,u=n.id,c=n.textBreakAll,l=Bh(n,Th);return o&&o.length?it().createElement(Zn,{className:"recharts-label-list"},o.map((function(t,e){var n=et()(i)?r(t,e):ch(t&&t.payload,i),o=et()(u)?{}:{id:"".concat(u,"-").concat(e)};return it().createElement(pi,Nh({},Tn(t,!0),l,o,{parentViewBox:t.parentViewBox,index:e,value:n,textBreakAll:c,viewBox:pi.parseViewBox(et()(a)?t:Rh(Rh({},t),{},{clockWise:a})),key:"label-".concat(e)}))}))):null}zh.displayName="LabelList",zh.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=kn(t.children,zh).map((function(t,r){return(0,ot.cloneElement)(t,{data:e,key:"labelList-".concat(r)})}));return r?[function(t,e){return t?!0===t?it().createElement(zh,{key:"labelList-implicit",data:e}):it().isValidElement(t)||Z()(t)?it().createElement(zh,{key:"labelList-implicit",data:e,content:t}):qr()(t)?it().createElement(zh,Nh({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(Ch(n)):n};var Fh,Wh=["layout","type","stroke","connectNulls","isRange","ref"];function $h(t){return $h="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},$h(t)}function Hh(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 Kh(){return Kh=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},Kh.apply(this,arguments)}function qh(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 Gh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qh(Object(r),!0).forEach((function(e){Qh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Yh(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,td(n.key),n)}}function Xh(t,e){return Xh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xh(t,e)}function Vh(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=Jh(t);if(e){var o=Jh(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===$h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Zh(t)}(this,r)}}function Zh(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jh(t){return Jh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Jh(t)}function Qh(t,e,r){return(e=td(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function td(t){var e=function(t,e){if("object"!==$h(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==$h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===$h(e)?e:String(e)}var ed=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&&Xh(t,e)}(i,t);var e,r,n,o=Vh(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Qh(Zh(t=o.call.apply(o,[this].concat(r))),"state",{isAnimationFinished:!0}),Qh(Zh(t),"id",fn("recharts-area-")),Qh(Zh(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Z()(e)&&e()})),Qh(Zh(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Z()(e)&&e()})),t}return e=i,r=[{key:"renderDots",value:function(t,e,r){var n=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(n&&!o)return null;var a=this.props,u=a.dot,c=a.points,l=a.dataKey,s=Tn(this.props),f=Tn(u,!0),p=c.map((function(t,e){var r=Gh(Gh(Gh({key:"dot-".concat(e),r:3},s),f),{},{dataKey:l,cx:t.x,cy:t.y,index:e,value:t.value,payload:t.payload});return i.renderDotItem(u,r)})),h={clipPath:t?"url(#clipPath-".concat(e?"":"dots-").concat(r,")"):null};return it().createElement(Zn,Kh({className:"recharts-area-dots"},h),p)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,o=e.strokeWidth,i=n[0].x,a=n[n.length-1].x,u=t*Math.abs(i-a),c=X()(n.map((function(t){return t.y||0})));return cn(r)&&"number"==typeof r?c=Math.max(r,c):r&&nt()(r)&&r.length&&(c=Math.max(X()(r.map((function(t){return t.y||0}))),c)),cn(c)?it().createElement("rect",{x:i<a?i:i-u,y:0,width:u,height:Math.floor(c+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,o=e.strokeWidth,i=n[0].y,a=n[n.length-1].y,u=t*Math.abs(i-a),c=X()(n.map((function(t){return t.x||0})));return cn(r)&&"number"==typeof r?c=Math.max(r,c):r&&nt()(r)&&r.length&&(c=Math.max(X()(r.map((function(t){return t.x||0}))),c)),cn(c)?it().createElement("rect",{x:0,y:i<a?i:i-u,width:c+(o?parseInt("".concat(o),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,r,n){var o=this.props,i=o.layout,a=o.type,u=o.stroke,c=o.connectNulls,l=o.isRange,s=(o.ref,Hh(o,Wh));return it().createElement(Zn,{clipPath:r?"url(#clipPath-".concat(n,")"):null},it().createElement(Kn,Kh({},Tn(s,!0),{points:t,connectNulls:c,type:a,baseLine:e,layout:i,stroke:"none",className:"recharts-area-area"})),"none"!==u&&it().createElement(Kn,Kh({},Tn(this.props),{className:"recharts-area-curve",layout:i,type:a,connectNulls:c,fill:"none",points:t})),"none"!==u&&l&&it().createElement(Kn,Kh({},Tn(this.props),{className:"recharts-area-curve",layout:i,type:a,connectNulls:c,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,o=n.points,i=n.baseLine,a=n.isAnimationActive,u=n.animationBegin,c=n.animationDuration,l=n.animationEasing,s=n.animationId,f=this.state,p=f.prevPoints,h=f.prevBaseLine;return it().createElement(sr,{begin:u,duration:c,isActive:a,easing:l,from:{t:0},to:{t:1},key:"area-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(p){var u,c=p.length/o.length,l=o.map((function(t,e){var r=Math.floor(e*c);if(p[r]){var n=p[r],o=dn(n.x,t.x),i=dn(n.y,t.y);return Gh(Gh({},t),{},{x:o(a),y:i(a)})}return t}));return u=cn(i)&&"number"==typeof i?dn(h,i)(a):et()(i)||G()(i)?dn(h,0)(a):i.map((function(t,e){var r=Math.floor(e*c);if(h[r]){var n=h[r],o=dn(n.x,t.x),i=dn(n.y,t.y);return Gh(Gh({},t),{},{x:o(a),y:i(a)})}return t})),r.renderAreaStatically(l,u,t,e)}return it().createElement(Zn,null,it().createElement("defs",null,it().createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),it().createElement(Zn,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(o,i,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,o=r.baseLine,i=r.isAnimationActive,a=this.state,u=a.prevPoints,c=a.prevBaseLine,l=a.totalLength;return i&&n&&n.length&&(!u&&l>0||!K()(u,n)||!K()(c,o))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,o,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,o=e.points,i=e.className,a=e.top,u=e.left,c=e.xAxis,l=e.yAxis,s=e.width,f=e.height,p=e.isAnimationActive,h=e.id;if(r||!o||!o.length)return null;var d=this.state.isAnimationFinished,y=1===o.length,v=ut()("recharts-area",i),m=c&&c.allowDataOverflow,g=l&&l.allowDataOverflow,b=m||g,x=et()(h)?this.id:h,w=null!==(t=Tn(n))&&void 0!==t?t:{r:3,strokeWidth:2},O=w.r,S=void 0===O?3:O,j=w.strokeWidth,E=void 0===j?2:j,k=(function(t){return t&&"object"===xn(t)&&"cx"in t&&"cy"in t&&"r"in t}(n)?n:{}).clipDot,P=void 0===k||k,_=2*S+E;return it().createElement(Zn,{className:v},m||g?it().createElement("defs",null,it().createElement("clipPath",{id:"clipPath-".concat(x)},it().createElement("rect",{x:m?u:u-s/2,y:g?a:a-f/2,width:m?s:2*s,height:g?f:2*f})),!P&&it().createElement("clipPath",{id:"clipPath-dots-".concat(x)},it().createElement("rect",{x:u-_/2,y:a-_/2,width:s+_,height:f+_}))):null,y?null:this.renderArea(b,x),(n||y)&&this.renderDots(b,P,x),(!p||d)&&zh.renderCallByParent(this.props,o))}}],n=[{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}}],r&&Yh(e.prototype,r),n&&Yh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.PureComponent);Fh=ed,Qh(ed,"displayName","Area"),Qh(ed,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!to.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),Qh(ed,"getBaseValue",(function(t,e,r,n){var o=t.layout,i=t.baseValue,a=e.props.baseValue,u=null!=a?a:i;if(cn(u)&&"number"==typeof u)return u;var c="horizontal"===o?n:r,l=c.scale.domain();if("number"===c.type){var s=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===u?f:"dataMax"===u||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===u?l[0]:"dataMax"===u?l[1]:l[0]})),Qh(ed,"getComposedData",(function(t){var e,r=t.props,n=t.item,o=t.xAxis,i=t.yAxis,a=t.xAxisTicks,u=t.yAxisTicks,c=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=Fh.getBaseValue(r,n,o,i),m=!1,g=p.map((function(t,e){var r,n=ch(t,l);y?r=s[f+e]:(r=n,nt()(r)?m=!0:r=[v,r]);var p=et()(r[1])||y&&et()(n);return"horizontal"===d?{x:xh({axis:o,ticks:a,bandSize:c,entry:t,index:e}),y:p?null:i.scale(r[1]),value:r,payload:t}:{x:p?null:o.scale(r[1]),y:xh({axis:i,ticks:u,bandSize:c,entry:t,index:e}),value:r,payload:t}}));return e=y||m?g.map((function(t){return"horizontal"===d?{x:t.x,y:et()(Q()(t,"value[0]"))||et()(Q()(t,"y"))?null:i.scale(Q()(t,"value[0]"))}:{x:et()(Q()(t,"value[0]"))?null:o.scale(Q()(t,"value[0]")),y:t.y}})):"horizontal"===d?i.scale(v):o.scale(v),Gh({points:g,baseLine:e,layout:d,isRange:m},h)})),Qh(ed,"renderDotItem",(function(t,e){return it().isValidElement(t)?it().cloneElement(t,e):Z()(t)?t(e):it().createElement(Gn,Kh({},e,{className:"recharts-area-dot"}))}));var rd=r(1533),nd=r(3279),od=r.n(nd),id=r(3493),ad=r.n(id),ud=function(t,e){return ud=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},ud(t,e)};function cd(t,e){function r(){this.constructor=t}ud(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function ld(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}var sd=function(t,e,r,n){switch(e){case"debounce":return od()(t,r,n);case"throttle":return ad()(t,r,n);default:return t}},fd=function(t){return"function"==typeof t},pd=function(){return"undefined"==typeof window},hd=function(t){return t instanceof Element||t instanceof HTMLDocument},dd=function(t,e,r){return function(n){var o=n.width,i=n.height;t((function(t){return t.width===o&&t.height===i||t.width===o&&!r||t.height===i&&!e?t:{width:o,height:i}}))}},yd=function(t){function e(e){var r=t.call(this,e)||this;r.cancelHandler=function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)},r.attachObserver=function(){var t=r.props,e=t.targetRef,n=t.observerOptions;if(!pd()){e&&e.current&&(r.targetRef.current=e.current);var o=r.getElement();o&&(r.observableElement&&r.observableElement===o||(r.observableElement=o,r.resizeObserver.observe(o,n)))}},r.getElement=function(){var t=r.props,e=t.querySelector,n=t.targetDomEl;if(pd())return null;if(e)return document.querySelector(e);if(n&&hd(n))return n;if(r.targetRef&&hd(r.targetRef.current))return r.targetRef.current;var o=(0,rd.findDOMNode)(r);if(!o)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return o;default:return o.parentElement}},r.createResizeHandler=function(t){var e=r.props,n=e.handleWidth,o=void 0===n||n,i=e.handleHeight,a=void 0===i||i,u=e.onResize;if(o||a){var c=dd((function(t){return r.setState(t,(function(){return null==u?void 0:u(r.state.width,r.state.height)}))}),o,a);t.forEach((function(t){var e=t&&t.contentRect||{},n=e.width,o=e.height;!r.skipOnMount&&!pd()&&c({width:n,height:o}),r.skipOnMount=!1}))}},r.getRenderType=function(){var t=r.props,e=t.render,n=t.children;return fd(e)?"renderProp":fd(n)?"childFunction":(0,ot.isValidElement)(n)?"child":Array.isArray(n)?"childArray":"parent"};var n=e.skipOnMount,o=e.refreshMode,i=e.refreshRate,a=void 0===i?1e3:i,u=e.refreshOptions;return r.state={width:void 0,height:void 0},r.skipOnMount=n,r.targetRef=(0,ot.createRef)(),r.observableElement=null,pd()||(r.resizeHandler=sd(r.createResizeHandler,o,a,u),r.resizeObserver=new window.ResizeObserver(r.resizeHandler)),r}return cd(e,t),e.prototype.componentDidMount=function(){this.attachObserver()},e.prototype.componentDidUpdate=function(){this.attachObserver()},e.prototype.componentWillUnmount=function(){pd()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},e.prototype.render=function(){var t=this.props,e=t.render,r=t.children,n=t.nodeType,o=void 0===n?"div":n,i=this.state,a={width:i.width,height:i.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return null==e?void 0:e(a);case"childFunction":var u=r;return null==u?void 0:u(a);case"child":var c=r;if(c.type&&"string"==typeof c.type){var l=ld(a,["targetRef"]);return(0,ot.cloneElement)(c,l)}return(0,ot.cloneElement)(c,a);case"childArray":return r.map((function(t){return!!t&&(0,ot.cloneElement)(t,a)}));default:return it().createElement(o,null)}},e}(ot.PureComponent);pd()?ot.useEffect:ot.useLayoutEffect;function vd(t){return vd="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},vd(t)}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)}function gd(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 bd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gd(Object(r),!0).forEach((function(e){xd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xd(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==vd(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==vd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===vd(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wd(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Od(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 Od(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 Od(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 Sd=(0,ot.forwardRef)((function(t,e){var r=t.aspect,n=t.initialDimension,o=void 0===n?{width:-1,height:-1}:n,i=t.width,a=void 0===i?"100%":i,u=t.height,c=void 0===u?"100%":u,l=t.minWidth,s=void 0===l?0:l,f=t.minHeight,p=t.maxHeight,h=t.children,d=t.debounce,y=void 0===d?0:d,v=t.id,m=t.className,g=t.onResize,b=t.style,x=void 0===b?{}:b,w=wd((0,ot.useState)({containerWidth:o.width,containerHeight:o.height}),2),O=w[0],S=w[1],j=(0,ot.useRef)(null);(0,ot.useImperativeHandle)(e,(function(){return j}),[j]);var E=(0,ot.useCallback)((function(){return j.current?{containerWidth:j.current.clientWidth,containerHeight:j.current.clientHeight}:null}),[]),k=(0,ot.useCallback)((function(){var t=E();if(t){var e=t.containerWidth,r=t.containerHeight;g&&g(e,r),S((function(t){var n=t.containerWidth,o=t.containerHeight;return e!==n||r!==o?{containerWidth:e,containerHeight:r}:t}))}}),[E,g]),P=(0,ot.useMemo)((function(){var t=O.containerWidth,e=O.containerHeight;if(t<0||e<0)return null;Ff(un(a)||un(c),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,c),Ff(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=un(a)?t:a,o=un(c)?e:c;return r&&r>0&&(n?o=n/r:o&&(n=o*r),p&&o>p&&(o=p)),Ff(n>0||o>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.",n,o,a,c,s,f,r),(0,ot.cloneElement)(h,{width:n,height:o})}),[r,h,c,p,f,s,O,a]);(0,ot.useEffect)((function(){var t=E();t&&S(t)}),[E]);var _=bd(bd({},x),{},{width:a,height:c,minWidth:s,minHeight:f,maxHeight:p});return it().createElement(yd,{handleWidth:!0,handleHeight:!0,onResize:k,targetRef:j,refreshMode:y>0?"debounce":void 0,refreshRate:y},it().createElement("div",md({},null!=v?{id:"".concat(v)}:{},{className:ut()("recharts-responsive-container",m),style:_,ref:j}),P))})),jd=r(711),Ed=r.n(jd),kd=r(3311),Pd=r.n(kd),_d=r(6026),Ad=r.n(_d),Md=r(1584),Td=r.n(Md),Cd="Invariant failed";function Dd(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[Yo(e,r,n,o),Yo(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}var Nd=r(6604),Id=r.n(Nd),Rd=function(t){return null};Rd.displayName="Cell";var Ld=r(8630),Bd=r.n(Ld);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 zd(){return zd=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},zd.apply(this,arguments)}function Fd(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Wd(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 Wd(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 Wd(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 $d(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 Hd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$d(Object(r),!0).forEach((function(e){Kd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Kd(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ud(t)||null===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)}(t,"string");return"symbol"===Ud(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var qd=function(t,e,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),u=n>=0?1:-1,c=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+u*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+c*s[0],",").concat(e)),i+="L ".concat(t+r-c*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+u*s[1])),i+="L ".concat(t+r,",").concat(e+n-u*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-c*s[2],",").concat(e+n)),i+="L ".concat(t+c*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-u*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+c*p,",").concat(e,"\n L ").concat(t+r-c*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+u*p,"\n L ").concat(t+r,",").concat(e+n-u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-c*p,",").concat(e+n,"\n L ").concat(t+c*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-u*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,u=e.height;if(Math.abs(a)>0&&Math.abs(u)>0){var c=Math.min(o,o+a),l=Math.max(o,o+a),s=Math.min(i,i+u),f=Math.max(i,i+u);return r>=c&&r<=l&&n>=s&&n<=f}return!1},Yd={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Xd=function(t){var e=Hd(Hd({},Yd),t),r=(0,ot.useRef)(),n=Fd((0,ot.useState)(-1),2),o=n[0],i=n[1];(0,ot.useEffect)((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&i(t)}catch(t){}}),[]);var a=e.x,u=e.y,c=e.width,l=e.height,s=e.radius,f=e.className,p=e.animationEasing,h=e.animationDuration,d=e.animationBegin,y=e.isAnimationActive,v=e.isUpdateAnimationActive;if(a!==+a||u!==+u||c!==+c||l!==+l||0===c||0===l)return null;var m=ut()("recharts-rectangle",f);return v?it().createElement(sr,{canBegin:o>0,from:{width:c,height:l,x:a,y:u},to:{width:c,height:l,x:a,y:u},duration:h,animationEasing:p,isActive:v},(function(t){var n=t.width,i=t.height,a=t.x,u=t.y;return it().createElement(sr,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:h,isActive:y,easing:p},it().createElement("path",zd({},Tn(e,!0),{className:m,d:qd(a,u,n,i,s),ref:r})))})):it().createElement("path",zd({},Tn(e,!0),{className:m,d:qd(a,u,c,l,s)}))};function Vd(t){return Vd="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},Vd(t)}function Zd(){return Zd=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},Zd.apply(this,arguments)}function Jd(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Qd(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 Qd(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 Qd(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 ty(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 ey(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ty(Object(r),!0).forEach((function(e){ry(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ty(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ry(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Vd(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Vd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Vd(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ny=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")},oy={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},iy=function(t){var e=ey(ey({},oy),t),r=(0,ot.useRef)(),n=Jd((0,ot.useState)(-1),2),o=n[0],i=n[1];(0,ot.useEffect)((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&i(t)}catch(t){}}),[]);var a=e.x,u=e.y,c=e.upperWidth,l=e.lowerWidth,s=e.height,f=e.className,p=e.animationEasing,h=e.animationDuration,d=e.animationBegin,y=e.isUpdateAnimationActive;if(a!==+a||u!==+u||c!==+c||l!==+l||s!==+s||0===c&&0===l||0===s)return null;var v=ut()("recharts-trapezoid",f);return y?it().createElement(sr,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:u},to:{upperWidth:c,lowerWidth:l,height:s,x:a,y:u},duration:h,animationEasing:p,isActive:y},(function(t){var n=t.upperWidth,i=t.lowerWidth,a=t.height,u=t.x,c=t.y;return it().createElement(sr,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:h,easing:p},it().createElement("path",Zd({},Tn(e,!0),{className:v,d:ny(u,c,n,i,a),ref:r})))})):it().createElement("g",null,it().createElement("path",Zd({},Tn(e,!0),{className:v,d:ny(a,u,c,l,s)})))};function ay(t){return ay="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},ay(t)}function uy(){return uy=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},uy.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 ly(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){sy(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 sy(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==ay(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ay(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ay(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fy=function(t){var e=t.cx,r=t.cy,n=t.radius,o=t.angle,i=t.sign,a=t.isExternal,u=t.cornerRadius,c=t.cornerIsExternal,l=u*(a?1:-1)+n,s=Math.asin(u/l)/qo,f=c?o:o+i*s,p=c?o-i*s:o;return{center:Yo(e,r,l,f),circleTangency:Yo(e,r,n,f),lineTangency:Yo(e,r,l*Math.cos(s*qo),p),theta:s}},py=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return an(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),u=i+a,c=Yo(e,r,o,i),l=Yo(e,r,o,u),s="M ".concat(c.x,",").concat(c.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>u),",\n ").concat(l.x,",").concat(l.y,"\n ");if(n>0){var f=Yo(e,r,n,i),p=Yo(e,r,n,u);s+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=u),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},hy={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},dy=function(t){var e=ly(ly({},hy),t),r=e.cx,n=e.cy,o=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,u=e.forceCornerRadius,c=e.cornerIsExternal,l=e.startAngle,s=e.endAngle,f=e.className;if(i<o||l===s)return null;var p,h=ut()("recharts-sector",f),d=i-o,y=pn(a,d,0,!0);return p=y>0&&Math.abs(l-s)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,u=t.cornerIsExternal,c=t.startAngle,l=t.endAngle,s=an(l-c),f=fy({cx:e,cy:r,radius:o,angle:c,sign:s,cornerRadius:i,cornerIsExternal:u}),p=f.circleTangency,h=f.lineTangency,d=f.theta,y=fy({cx:e,cy:r,radius:o,angle:l,sign:-s,cornerRadius:i,cornerIsExternal:u}),v=y.circleTangency,m=y.lineTangency,g=y.theta,b=u?Math.abs(c-l):Math.abs(c-l)-d-g;if(b<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 "):py({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:c,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(+(b>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(n>0){var w=fy({cx:e,cy:r,radius:n,angle:c,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),O=w.circleTangency,S=w.lineTangency,j=w.theta,E=fy({cx:e,cy:r,radius:n,angle:l,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),k=E.circleTangency,P=E.lineTangency,_=E.theta,A=u?Math.abs(c-l):Math.abs(c-l)-j-_;if(A<0&&0===i)return"".concat(x,"L").concat(e,",").concat(r,"Z");x+="L".concat(P.x,",").concat(P.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(k.x,",").concat(k.y,"\n A").concat(n,",").concat(n,",0,").concat(+(A>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else x+="L".concat(e,",").concat(r,"Z");return x}({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(y,d/2),forceCornerRadius:u,cornerIsExternal:c,startAngle:l,endAngle:s}):py({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:l,endAngle:s}),it().createElement("path",uy({},Tn(e,!0),{className:h,d:p,role:"img"}))},yy=["option","shapeType","propTransformer","activeClassName","isActive"];function vy(t){return vy="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},vy(t)}function my(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 gy(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 by(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gy(Object(r),!0).forEach((function(e){xy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xy(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==vy(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==vy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===vy(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wy(t,e){return by(by({},e),t)}function Oy(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return it().createElement(Xd,r);case"trapezoid":return it().createElement(iy,r);case"sector":return it().createElement(dy,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return it().createElement(jp,r);break;default:return null}}function Sy(t){var e,r=t.option,n=t.shapeType,o=t.propTransformer,i=void 0===o?wy:o,a=t.activeClassName,u=void 0===a?"recharts-active-shape":a,c=t.isActive,l=my(t,yy);if((0,ot.isValidElement)(r))e=(0,ot.cloneElement)(r,l);else if(Z()(r))e=r(l);else if(Bd()(r)&&!Td()(r)){var s=i(r,l);e=it().createElement(Oy,{shapeType:n,elementProps:s})}else{var f=l;e=it().createElement(Oy,{shapeType:n,elementProps:f})}return c?it().createElement(Zn,{className:u},e):e}function jy(t,e){return"trapezoids"in t.props}function Ey(t,e){return"sectors"in t.props}function ky(t,e){return"points"in t.props}function Py(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 _y(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function Ay(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function My(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,o=function(t,e){var r;return jy(t)?r="trapezoids":Ey(t)?r="sectors":ky(t)&&(r="points"),r}(r),i=function(t,e){var r,n;return jy(t)?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:Ey(t)?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:ky(t)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=K()(i,t),u=r.props[o].filter((function(t){var n=function(t,e){var r;return jy(t)?r=Py:Ey(t)?r=_y:ky(t)&&(r=Ay),r}(r);return n(t,e)})),c=r.props[o].indexOf(u[u.length-1]);return a&&n===c}));return n.indexOf(a[a.length-1])}function Ty(t){return Ty="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},Ty(t)}var Cy=["x","y"];function Dy(){return Dy=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},Dy.apply(this,arguments)}function Ny(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 Iy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ny(Object(r),!0).forEach((function(e){Ry(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ny(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ry(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ty(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ty(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ty(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,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 By(t,e){var r=t.x,n=t.y,o=Ly(t,Cy),i="".concat(r),a=parseInt(i,10),u="".concat(n),c=parseInt(u,10),l="".concat(e.height||o.height),s=parseInt(l,10),f="".concat(e.width||o.width),p=parseInt(f,10);return Iy(Iy(Iy(Iy(Iy({},e),o),a?{x:a}:{}),c?{y:c}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function Uy(t){return it().createElement(Sy,Dy({shapeType:"rectangle",propTransformer:By,activeClassName:"recharts-active-bar"},t))}var zy=["value","background"];function Fy(t){return Fy="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},Fy(t)}function Wy(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 $y(){return $y=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},$y.apply(this,arguments)}function Hy(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 Ky(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Hy(Object(r),!0).forEach((function(e){Zy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qy(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,Jy(n.key),n)}}function Gy(t,e){return Gy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Gy(t,e)}function Yy(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=Vy(t);if(e){var o=Vy(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Fy(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Xy(t)}(this,r)}}function Xy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Vy(t){return Vy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vy(t)}function Zy(t,e,r){return(e=Jy(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jy(t){var e=function(t,e){if("object"!==Fy(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Fy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Fy(e)?e:String(e)}var Qy=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&&Gy(t,e)}(i,t);var e,r,n,o=Yy(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Zy(Xy(t=o.call.apply(o,[this].concat(r))),"state",{isAnimationFinished:!1}),Zy(Xy(t),"id",fn("recharts-bar-")),Zy(Xy(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),Zy(Xy(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return e=i,r=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,o=r.dataKey,i=r.activeIndex,a=r.activeBar,u=Tn(this.props);return t&&t.map((function(t,r){var c=r===i,l=c?a:n,s=Ky(Ky(Ky({},u),t),{},{isActive:c,option:l,index:r,dataKey:o,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return it().createElement(Zn,$y({className:"recharts-bar-rectangle"},Qr(e.props,t,r),{key:"rectangle-".concat(r)}),it().createElement(Uy,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,u=e.animationEasing,c=e.animationId,l=this.state.prevData;return it().createElement(sr,{begin:i,duration:a,isActive:o,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var o=e.t,i=r.map((function(t,e){var r=l&&l[e];if(r){var i=dn(r.x,t.x),a=dn(r.y,t.y),u=dn(r.width,t.width),c=dn(r.height,t.height);return Ky(Ky({},t),{},{x:i(o),y:a(o),width:u(o),height:c(o)})}if("horizontal"===n){var s=dn(0,t.height)(o);return Ky(Ky({},t),{},{y:t.y+t.height-s,height:s})}var f=dn(0,t.width)(o);return Ky(Ky({},t),{},{width:f})}));return it().createElement(Zn,null,t.renderRectanglesStatically(i))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&K()(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,o=e.activeIndex,i=Tn(this.props.background);return r.map((function(e,r){e.value;var a=e.background,u=Wy(e,zy);if(!a)return null;var c=Ky(Ky(Ky(Ky(Ky({},u),{},{fill:"#eee"},a),i),Qr(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return it().createElement(Uy,$y({option:t.props.background,isActive:r===o},c))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,o=r.xAxis,i=r.yAxis,a=r.layout,u=kn(r.children,Bf);if(!u)return null;var c="vertical"===a?n[0].height/2:n[0].width/2,l=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:ch(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return it().createElement(Zn,s,u.map((function(t,e){return it().cloneElement(t,{key:"error-bar-".concat(e),data:n,xAxis:o,yAxis:i,layout:a,offset:c,dataPointFormatter:l})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,o=t.xAxis,i=t.yAxis,a=t.left,u=t.top,c=t.width,l=t.height,s=t.isAnimationActive,f=t.background,p=t.id;if(e||!r||!r.length)return null;var h=this.state.isAnimationFinished,d=ut()("recharts-bar",n),y=o&&o.allowDataOverflow,v=i&&i.allowDataOverflow,m=y||v,g=et()(p)?this.id:p;return it().createElement(Zn,{className:d},y||v?it().createElement("defs",null,it().createElement("clipPath",{id:"clipPath-".concat(g)},it().createElement("rect",{x:y?a:a-c/2,y:v?u:u-l/2,width:y?c:2*c,height:v?l:2*l}))):null,it().createElement(Zn,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(g,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,g),(!s||h)&&zh.renderCallByParent(this.props,r))}}],n=[{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}}],r&&qy(e.prototype,r),n&&qy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.PureComponent);function tv(t){return tv="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},tv(t)}function ev(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,iv(n.key),n)}}function rv(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 nv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rv(Object(r),!0).forEach((function(e){ov(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ov(t,e,r){return(e=iv(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iv(t){var e=function(t,e){if("object"!==tv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==tv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===tv(e)?e:String(e)}Zy(Qy,"displayName","Bar"),Zy(Qy,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!0,isAnimationActive:!to.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),Zy(Qy,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,u=t.xAxisTicks,c=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,h=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!h)return null;var d=e.layout,y=r.props,v=y.dataKey,m=y.children,g=y.minPointSize,b="horizontal"===d?a:i,x=l?b.scale.domain():null,w=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]}({numericAxis:b}),O=kn(m,Rd),S=f.map((function(t,e){var n,f,p,y,m,b;if(l?n=function(t,e){if(!e||2!==e.length||!cn(e[0])||!cn(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(!cn(t[0])||t[0]<r)&&(o[0]=r),(!cn(t[1])||t[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o}(l[s+e],x):(n=ch(t,v),nt()(n)||(n=[w,n])),"horizontal"===d){var S,j=[a.scale(n[0]),a.scale(n[1])],E=j[0],k=j[1];f=wh({axis:i,ticks:u,bandSize:o,offset:h.offset,entry:t,index:e}),p=null!==(S=null!=k?k:E)&&void 0!==S?S:void 0,y=h.size;var P=E-k;if(m=Number.isNaN(P)?0:P,b={x:f,y:a.y,width:y,height:a.height},Math.abs(g)>0&&Math.abs(m)<Math.abs(g)){var _=an(m||g)*(Math.abs(g)-Math.abs(m));p-=_,m+=_}}else{var A=[i.scale(n[0]),i.scale(n[1])],M=A[0],T=A[1];if(f=M,p=wh({axis:a,ticks:c,bandSize:o,offset:h.offset,entry:t,index:e}),y=T-M,m=h.size,b={x:i.x,y:p,width:i.width,height:m},Math.abs(g)>0&&Math.abs(y)<Math.abs(g))y+=an(y||g)*(Math.abs(g)-Math.abs(y))}return Ky(Ky(Ky({},t),{},{x:f,y:p,width:y,height:m,value:l?n:n[1],payload:t,background:b},O&&O[e]&&O[e].props),{},{tooltipPayload:[_h(r,t)],tooltipPosition:{x:f+y/2,y:p+m/2}})}));return Ky({data:S,layout:d},p)}));var av=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)}},uv=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&&ev(e.prototype,r),n&&ev(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();ov(uv,"EPS",1e-4);var cv=function(t){var e=Object.keys(t).reduce((function(e,r){return nv(nv({},e),{},ov({},r,uv.create(t[r])))}),{});return nv(nv({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return Id()(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:o})}))},isInRange:function(t){return Ed()(t,(function(t,r){return e[r].isInRange(t)}))}})};var lv=function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=n*Math.PI/180,i=Math.atan(r/e),a=o>i&&o<Math.PI-i?r/Math.sin(o):e/Math.cos(o);return Math.abs(a)};function sv(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 fv(t,e,r,n,o){return t*(e-t*r/2-n)>=0&&t*(e+t*r/2-o)<=0}function pv(t){return pv="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},pv(t)}function hv(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 dv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hv(Object(r),!0).forEach((function(e){yv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function yv(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==pv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==pv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===pv(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vv(t,e,r){var n=t.tick,o=t.ticks,i=t.viewBox,a=t.minTickGap,u=t.orientation,c=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!o||!o.length||!n)return[];if(cn(c)||to.isSsr)return function(t,e){return sv(t,e+1)}(o,"number"==typeof c&&cn(c)?c:0);var p=[],h="top"===u||"bottom"===u?"width":"height",d=s&&"width"===h?po(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(t,n){var o=Z()(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 lv(n,r)}(po(o,{fontSize:e,letterSpacing:r}),d,f):po(o,{fontSize:e,letterSpacing:r})[h]},v=o.length>=2?an(o[1].coordinate-o[0].coordinate):1,m=function(t,e,r){var n="width"===r,o=t.x,i=t.y,a=t.width,u=t.height;return 1===e?{start:n?o:i,end:n?o+a:i+u}:{start:n?o+a:i+u,end:n?o:i}}(i,v,h);return"equidistantPreserveStart"===c?function(t,e,r,n,o){for(var i=(n||[]).slice(),a=e.start,u=e.end,c=0,l=1,s=a;l<=i.length;){var f=null==n?void 0:n[c];if(void 0===f)return sv(n,l);var p=r(f,c),h=f.coordinate,d=0===c||fv(t,h,p,s,u);d||(c=0,s=a,l+=1),d&&(s=h+t*(p/2+o),c+=l)}return[]}(v,m,y,o,a):(p="preserveStart"===c||"preserveStartEnd"===c?function(t,e,r,n,o,i){var a=(n||[]).slice(),u=a.length,c=e.start,l=e.end;if(i){var s=n[u-1],f=r(s,u-1),p=t*(s.coordinate+t*f/2-l);a[u-1]=s=dv(dv({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),fv(t,s.tickCoord,f,c,l)&&(l=s.tickCoord-t*(f/2+o),a[u-1]=dv(dv({},s),{},{isShow:!0}))}for(var h=i?u-1:u,d=0;d<h;d++){var y=a[d],v=r(y,d);if(0===d){var m=t*(y.coordinate-t*v/2-c);a[d]=y=dv(dv({},y),{},{tickCoord:m<0?y.coordinate-m*t:y.coordinate})}else a[d]=y=dv(dv({},y),{},{tickCoord:y.coordinate});fv(t,y.tickCoord,v,c,l)&&(c=y.tickCoord+t*(v/2+o),a[d]=dv(dv({},y),{},{isShow:!0}))}return a}(v,m,y,o,a,"preserveStartEnd"===c):function(t,e,r,n,o){for(var i=(n||[]).slice(),a=i.length,u=e.start,c=e.end,l=a-1;l>=0;l--){var s=i[l],f=r(s,l);if(l===a-1){var p=t*(s.coordinate+t*f/2-c);i[l]=s=dv(dv({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate})}else i[l]=s=dv(dv({},s),{},{tickCoord:s.coordinate});fv(t,s.tickCoord,f,u,c)&&(c=s.tickCoord-t*(f/2+o),i[l]=dv(dv({},s),{},{isShow:!0}))}return i}(v,m,y,o,a),p.filter((function(t){return t.isShow})))}function mv(t){return mv="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},mv(t)}function gv(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return bv(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 bv(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 bv(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 xv(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 wv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xv(Object(r),!0).forEach((function(e){Ov(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ov(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==mv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==mv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===mv(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sv(t){return nt()(t)&&ln(t[0])&&ln(t[1])?t.join(" ~ "):t}var jv=function(t){var e=t.separator,r=void 0===e?" : ":e,n=t.contentStyle,o=void 0===n?{}:n,i=t.itemStyle,a=void 0===i?{}:i,u=t.labelStyle,c=void 0===u?{}:u,l=t.payload,s=t.formatter,f=t.itemSorter,p=t.wrapperClassName,h=t.labelClassName,d=t.label,y=t.labelFormatter,v=wv({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),m=wv({margin:0},c),g=!et()(d),b=g?d:"",x=ut()("recharts-default-tooltip",p),w=ut()("recharts-tooltip-label",h);return g&&y&&null!=l&&(b=y(d,l)),it().createElement("div",{className:x,style:v},it().createElement("p",{className:w,style:m},it().isValidElement(b)?b:"".concat(b)),function(){if(l&&l.length){var t=(f?yi()(l,f):l).map((function(t,e){if("none"===t.type)return null;var n=wv({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},a),o=t.formatter||s||Sv,i=t.value,u=t.name,c=i,f=u;if(o&&null!=c&&null!=f){var p=o(i,u,t,e,l);if(Array.isArray(p)){var h=gv(p,2);c=h[0],f=h[1]}else c=p}return it().createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:n},ln(f)?it().createElement("span",{className:"recharts-tooltip-item-name"},f):null,ln(f)?it().createElement("span",{className:"recharts-tooltip-item-separator"},r):null,it().createElement("span",{className:"recharts-tooltip-item-value"},c),it().createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return it().createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function Ev(t){return Ev="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},Ev(t)}function kv(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 Pv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kv(Object(r),!0).forEach((function(e){Dv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _v(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,Nv(n.key),n)}}function Av(t,e){return Av=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Av(t,e)}function Mv(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=Cv(t);if(e){var o=Cv(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Ev(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Tv(t)}(this,r)}}function Tv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");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,e,r){return(e=Nv(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Nv(t){var e=function(t,e){if("object"!==Ev(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ev(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ev(e)?e:String(e)}var Iv="recharts-tooltip-wrapper";function Rv(t){return t.dataKey}var Lv=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&&Av(t,e)}(i,t);var e,r,n,o=Mv(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Dv(Tv(t=o.call.apply(o,[this].concat(r))),"state",{boxWidth:-1,boxHeight:-1,dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Dv(Tv(t),"handleKeyDown",(function(e){"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:Pv(Pv({},t.state.dismissedAtCoordinate),{},{x:t.props.coordinate.x,y:t.props.coordinate.y})})})),Dv(Tv(t),"getTranslate",(function(e){var r=e.key,n=e.tooltipDimension,o=e.viewBoxDimension,i=t.props,a=i.allowEscapeViewBox,u=i.reverseDirection,c=i.coordinate,l=i.offset,s=i.position,f=i.viewBox;if(s&&cn(s[r]))return s[r];var p=c[r]-n-l,h=c[r]+l;return a[r]?u[r]?p:h:u[r]?p<f[r]?Math.max(h,f[r]):Math.max(p,f[r]):h+n>f[r]+o?Math.max(p,f[r]):Math.max(h,f[r])})),t}return e=i,(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,r=t.boxHeight;if(t.dismissed?(document.removeEventListener("keydown",this.handleKeyDown),this.props.coordinate.x===this.state.dismissedAtCoordinate.x&&this.props.coordinate.y===this.state.dismissedAtCoordinate.y||this.setState({dismissed:!1})):document.addEventListener("keydown",this.handleKeyDown),this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-e)>1||Math.abs(n.height-r)>1)&&this.setState({boxWidth:n.width,boxHeight:n.height})}else-1===e&&-1===r||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var t,e,r,n=this,o=this.props,i=o.payload,a=o.isAnimationActive,u=o.animationDuration,c=o.animationEasing,l=o.filterNull,s=function(t,e){return!0===t?zf()(e,Rv):Z()(t)?zf()(e,t):e}(o.payloadUniqBy,l&&i&&i.length?i.filter((function(t){return!et()(t.value)})):i),f=s&&s.length,p=this.props,h=p.content,d=p.viewBox,y=p.coordinate,v=p.position,m=p.active,g=p.wrapperStyle,b=Pv({pointerEvents:"none",visibility:!this.state.dismissed&&m&&f?"visible":"hidden",position:"absolute",top:0,left:0},g);if(v&&cn(v.x)&&cn(v.y))e=v.x,r=v.y;else{var x=this.state,w=x.boxWidth,O=x.boxHeight;w>0&&O>0&&y?(e=this.getTranslate({key:"x",tooltipDimension:w,viewBoxDimension:d.width}),r=this.getTranslate({key:"y",tooltipDimension:O,viewBoxDimension:d.height})):b.visibility="hidden"}b=Pv(Pv({},ie({transform:this.props.useTranslate3d?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")})),b),a&&m&&(b=Pv(Pv({},ie({transition:"transform ".concat(u,"ms ").concat(c)})),b));var S=ut()(Iv,(Dv(t={},"".concat(Iv,"-right"),cn(e)&&y&&cn(y.x)&&e>=y.x),Dv(t,"".concat(Iv,"-left"),cn(e)&&y&&cn(y.x)&&e<y.x),Dv(t,"".concat(Iv,"-bottom"),cn(r)&&y&&cn(y.y)&&r>=y.y),Dv(t,"".concat(Iv,"-top"),cn(r)&&y&&cn(y.y)&&r<y.y),t));return it().createElement("div",{tabIndex:-1,role:"dialog",className:S,style:b,ref:function(t){n.wrapperNode=t}},function(t,e){return it().isValidElement(t)?it().cloneElement(t,e):Z()(t)?it().createElement(t,e):it().createElement(jv,e)}(h,Pv(Pv({},this.props),{},{payload:s})))}}])&&_v(e.prototype,r),n&&_v(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.PureComponent);function Bv(t){return Bv="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},Bv(t)}Dv(Lv,"displayName","Tooltip"),Dv(Lv,"defaultProps",{active:!1,allowEscapeViewBox:{x:!1,y:!1},reverseDirection:{x:!1,y:!1},offset:10,viewBox:{x:0,y:0,height:0,width:0},coordinate:{x:0,y:0},cursorStyle:{},separator:" : ",wrapperStyle:{},contentStyle:{},itemStyle:{},labelStyle:{},cursor:!0,trigger:"hover",isAnimationActive:!to.isSsr,animationEasing:"ease",animationDuration:400,filterNull:!0,useTranslate3d:!1});var Uv=["x","y","top","left","width","height","className"];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 Wv(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Bv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Bv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Bv(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $v(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 Hv=function(t,e,r,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(e,"h").concat(r)},Kv=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,o=void 0===n?0:n,i=t.top,a=void 0===i?0:i,u=t.left,c=void 0===u?0:u,l=t.width,s=void 0===l?0:l,f=t.height,p=void 0===f?0:f,h=t.className,d=function(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}({x:r,y:o,top:a,left:c,width:s,height:p},$v(t,Uv));return cn(r)&&cn(o)&&cn(s)&&cn(p)&&cn(a)&&cn(c)?it().createElement("path",zv({},Tn(d,!0),{className:ut()("recharts-cross",h),d:Hv(r,o,s,p,a,c)})):null},qv=["viewBox"],Gv=["viewBox"],Yv=["ticks"];function Xv(t){return Xv="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},Xv(t)}function Vv(){return Vv=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},Vv.apply(this,arguments)}function Zv(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 Jv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zv(Object(r),!0).forEach((function(e){om(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Qv(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 tm(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 em(t,e){return em=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},em(t,e)}function rm(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=nm(t);if(e){var o=nm(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Xv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function nm(t){return nm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nm(t)}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"!==Xv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Xv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Xv(e)?e:String(e)}var am=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&&em(t,e)}(i,t);var e,r,n,o=rm(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this,t)).state={fontSize:"",letterSpacing:""},e}return e=i,r=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=Qv(t,qv),o=this.props,i=o.viewBox,a=Qv(o,Gv);return!vn(r,i)||!vn(n,a)||!vn(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,u=this.props,c=u.x,l=u.y,s=u.width,f=u.height,p=u.orientation,h=u.tickSize,d=u.mirror,y=u.tickMargin,v=d?-1:1,m=t.tickSize||h,g=cn(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=g;break;case"left":n=o=t.coordinate,i=(e=(r=c+ +!d*s)-v*m)-v*y,a=g;break;case"right":n=o=t.coordinate,i=(e=(r=c+ +d*s)+v*m)+v*y,a=g;break;default:e=r=t.coordinate,a=(n=(o=l+ +d*f)+v*m)+v*y,i=g}return{line:{x1:e,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.orientation,a=t.mirror,u=t.axisLine,c=Jv(Jv(Jv({},Tn(this.props)),Tn(u)),{},{fill:"none"});if("top"===i||"bottom"===i){var l=+("top"===i&&!a||"bottom"===i&&a);c=Jv(Jv({},c),{},{x1:e,y1:r+l*o,x2:e+n,y2:r+l*o})}else{var s=+("left"===i&&!a||"right"===i&&a);c=Jv(Jv({},c),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+o})}return it().createElement("line",Vv({},c,{className:ut()("recharts-cartesian-axis-line",Q()(u,"className"))}))}},{key:"renderTicks",value:function(t,e,r){var n=this,o=this.props,a=o.tickLine,u=o.stroke,c=o.tick,l=o.tickFormatter,s=o.unit,f=vv(Jv(Jv({},this.props),{},{ticks:t}),e,r),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),d=Tn(this.props),y=Tn(c),v=Jv(Jv({},d),{},{fill:"none"},Tn(a)),m=f.map((function(t,e){var r=n.getTickLineCoord(t),o=r.line,m=r.tick,g=Jv(Jv(Jv(Jv({textAnchor:p,verticalAnchor:h},d),{},{stroke:"none",fill:u},y),m),{},{index:e,payload:t,visibleTicksCount:f.length,tickFormatter:l});return it().createElement(Zn,Vv({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e)},Qr(n.props,t,e)),a&&it().createElement("line",Vv({},v,o,{className:ut()("recharts-cartesian-axis-tick-line",Q()(a,"className"))})),c&&i.renderTickItem(c,g,"".concat(Z()(l)?l(t.value,e):t.value).concat(s||"")))}));return it().createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,o=e.height,i=e.ticksGenerator,a=e.className;if(e.hide)return null;var u=this.props,c=u.ticks,l=Qv(u,Yv),s=c;return Z()(i)&&(s=c&&c.length>0?i(this.props):i(l)),n<=0||o<=0||!s||!s.length?null:it().createElement(Zn,{className:ut()("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),pi.renderCallByParent(this.props))}}],n=[{key:"renderTickItem",value:function(t,e,r){return it().isValidElement(t)?it().cloneElement(t,e):Z()(t)?t(e):it().createElement(Fo,Vv({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&tm(e.prototype,r),n&&tm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.Component);function um(t){return um="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},um(t)}function cm(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 lm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cm(Object(r),!0).forEach((function(e){sm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sm(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==um(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==um(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===um(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}om(am,"displayName","CartesianAxis"),om(am,"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 fm=["Webkit","Moz","O","ms"];function pm(t){return pm="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},pm(t)}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 dm(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?dm(Object(r),!0).forEach((function(e){wm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vm(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,Om(n.key),n)}}function mm(t,e){return mm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mm(t,e)}function gm(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=xm(t);if(e){var o=xm(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===pm(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return bm(t)}(this,r)}}function bm(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xm(t){return xm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xm(t)}function wm(t,e,r){return(e=Om(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Om(t){var e=function(t,e){if("object"!==pm(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==pm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===pm(e)?e:String(e)}var Sm=function(t){return t.changedTouches&&!!t.changedTouches.length},jm=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&&mm(t,e)}(i,t);var e,r,n,o=gm(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),wm(bm(e=o.call(this,t)),"handleDrag",(function(t){e.leaveTimer&&(clearTimeout(e.leaveTimer),e.leaveTimer=null),e.state.isTravellerMoving?e.handleTravellerMove(t):e.state.isSlideMoving&&e.handleSlideDrag(t)})),wm(bm(e),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])})),wm(bm(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()})),wm(bm(e),"handleLeaveWrapper",(function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))})),wm(bm(e),"handleEnterSlideOrTraveller",(function(){e.setState({isTextActive:!0})})),wm(bm(e),"handleLeaveSlideOrTraveller",(function(){e.setState({isTextActive:!1})})),wm(bm(e),"handleSlideDragStart",(function(t){var r=Sm(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),e.attachDragEndListener()})),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(bm(e),"startX"),endX:e.handleTravellerDragStart.bind(bm(e),"endX")},e.state={},e}return e=i,r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,r=t.endX,n=this.state.scaleValues,o=this.props,a=o.gap,u=o.data.length-1,c=Math.min(e,r),l=Math.max(e,r),s=i.getIndexInRange(n,c),f=i.getIndexInRange(n,l);return{startIndex:s-s%a,endIndex:f===u?u:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=ch(r[t],o,t);return Z()(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,u=i.width,c=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+u-c-o,a+u-c-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=Sm(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e,r=this.state,n=r.brushMoveStartX,o=r.movingTravellerId,i=r.endX,a=r.startX,u=this.state[o],c=this.props,l=c.x,s=c.width,f=c.travellerWidth,p=c.onChange,h=c.gap,d=c.data,y={startX:this.state.startX,endX:this.state.endX},v=t.pageX-n;v>0?v=Math.min(v,l+s-f-u):v<0&&(v=Math.max(v,l-u)),y[o]=u+v;var m=this.getIndex(y),g=m.startIndex,b=m.endIndex;this.setState((wm(e={},o,u+v),wm(e,"brushMoveStartX",t.pageX),e),(function(){var t;p&&(t=d.length-1,("startX"===o&&(i>a?g%h==0:b%h==0)||i<a&&b===t||"endX"===o&&(i>a?b%h==0:g%h==0)||i>a&&b===t)&&p(m))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,u=this.state[e],c=o.indexOf(u);if(-1!==c){var l=c+t;if(!(-1===l||l>=o.length)){var s=o[l];"startX"===e&&s>=a||"endX"===e&&s<=i||this.setState(wm({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.fill,a=t.stroke;return it().createElement("rect",{stroke:a,fill:i,x:e,y:r,width:n,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.data,a=t.children,u=t.padding,c=ot.Children.only(a);return c?it().cloneElement(c,{x:e,y:r,width:n,height:o,margin:u,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(t,e){var r=this,n=this.props,o=n.y,a=n.travellerWidth,u=n.height,c=n.traveller,l=Math.max(t,this.props.x),s=ym(ym({},Tn(this.props)),{},{x:l,y:o,width:a,height:u});return it().createElement(Zn,{tabIndex:0,role:"slider",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(),r.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){r.setState({isTravellerFocused:!0})},onBlur:function(){r.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},i.renderTraveller(c,s))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,o=r.height,i=r.stroke,a=r.travellerWidth,u=Math.min(t,e)+a,c=Math.max(Math.abs(e-t)-a,0);return it().createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:u,y:n,width:c,height:o})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,o=t.height,i=t.travellerWidth,a=t.stroke,u=this.state,c=u.startX,l=u.endX,s={pointerEvents:"none",fill:a};return it().createElement(Zn,{className:"recharts-brush-texts"},it().createElement(Fo,hm({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,l)-5,y:n+o/2},s),this.getTextOfTick(e)),it().createElement(Fo,hm({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,l)+i+5,y:n+o/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,o=t.x,i=t.y,a=t.width,u=t.height,c=t.alwaysShowText,l=this.state,s=l.startX,f=l.endX,p=l.isTextActive,h=l.isSlideMoving,d=l.isTravellerMoving,y=l.isTravellerFocused;if(!e||!e.length||!cn(o)||!cn(i)||!cn(a)||!cn(u)||a<=0||u<=0)return null;var v=ut()("recharts-brush",r),m=1===it().Children.count(n),g=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),n=fm.reduce((function(t,n){return lm(lm({},t),{},sm({},n+r,e))}),{});return n[t]=e,n}("userSelect","none");return it().createElement(Zn,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(p||h||d||y||c)&&this.renderText())}}],n=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,o=t.height,i=t.stroke,a=Math.floor(r+o/2)-1;return it().createElement(it().Fragment,null,it().createElement("rect",{x:e,y:r,width:n,height:o,fill:i,stroke:"none"}),it().createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),it().createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return it().isValidElement(t)?it().cloneElement(t,e):Z()(t)?t(e):i.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,u=t.startIndex,c=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return ym({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 u=e.length,c=Ti().domain(Ad()(0,u)).range([o,o+i-a]),l=c.domain().map((function(t){return c(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(r),endX:c(n),scale:c,scaleValues:l}}({data:r,width:n,x:o,travellerWidth:i,startIndex:u,endIndex:c}):{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}}],r&&vm(e.prototype,r),n&&vm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.PureComponent);wm(jm,"displayName","Brush"),wm(jm,"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 Em=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e};function km(t){return km="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},km(t)}function Pm(){return Pm=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},Pm.apply(this,arguments)}function _m(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 Am(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_m(Object(r),!0).forEach((function(e){Mm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_m(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Mm(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==km(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==km(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===km(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Tm(t){var e=t.x,r=t.y,n=t.r,o=t.alwaysShow,i=t.clipPathId,a=ln(e),u=ln(r);if(Ff(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!a||!u)return null;var c=function(t){var e=t.x,r=t.y,n=t.xAxis,o=t.yAxis,i=cv({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return Em(t,"discard")&&!i.isInRange(a)?null:a}(t);if(!c)return null;var l=c.x,s=c.y,f=t.shape,p=t.className,h=Am(Am({clipPath:Em(t,"hidden")?"url(#".concat(i,")"):void 0},Tn(t,!0)),{},{cx:l,cy:s});return it().createElement(Zn,{className:ut()("recharts-reference-dot",p)},Tm.renderDot(f,h),pi.renderCallByParent(t,{x:l-n,y:s-n,width:2*n,height:2*n}))}Tm.displayName="ReferenceDot",Tm.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},Tm.renderDot=function(t,e){return it().isValidElement(t)?it().cloneElement(t,e):Z()(t)?t(e):it().createElement(Gn,Pm({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};var Cm=r(9704),Dm=r.n(Cm);function Nm(t){return Nm="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},Nm(t)}function Im(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 Rm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Im(Object(r),!0).forEach((function(e){Lm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Im(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Lm(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Nm(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Nm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Nm(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bm(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Um(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 Um(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 Um(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 zm(){return zm=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},zm.apply(this,arguments)}function Fm(t){var e=t.x,r=t.y,n=t.segment,o=t.xAxis,i=t.yAxis,a=t.shape,u=t.className,c=t.alwaysShow,l=t.clipPathId;Ff(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var s=function(t,e,r,n,o){var i=o.viewBox,a=i.x,u=i.y,c=i.width,l=i.height,s=o.position;if(r){var f=o.y,p=o.yAxis.orientation,h=t.y.apply(f,{position:s});if(Em(o,"discard")&&!t.y.isInRange(h))return null;var d=[{x:a+c,y:h},{x:a,y:h}];return"left"===p?d.reverse():d}if(e){var y=o.x,v=o.xAxis.orientation,m=t.x.apply(y,{position:s});if(Em(o,"discard")&&!t.x.isInRange(m))return null;var g=[{x:m,y:u+l},{x:m,y:u}];return"top"===v?g.reverse():g}if(n){var b=o.segment.map((function(e){return t.apply(e,{position:s})}));return Em(o,"discard")&&Dm()(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(cv({x:o.scale,y:i.scale}),ln(e),ln(r),n&&2===n.length,t);if(!s)return null;var f=Bm(s,2),p=f[0],h=p.x,d=p.y,y=f[1],v=y.x,m=y.y,g=Rm(Rm({clipPath:Em(t,"hidden")?"url(#".concat(l,")"):void 0},Tn(t,!0)),{},{x1:h,y1:d,x2:v,y2:m});return it().createElement(Zn,{className:ut()("recharts-reference-line",u)},function(t,e){return it().isValidElement(t)?it().cloneElement(t,e):Z()(t)?t(e):it().createElement("line",zm({},e,{className:"recharts-reference-line-line"}))}(a,g),pi.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,o=t.y2;return av({x:e,y:r},{x:n,y:o})}({x1:h,y1:d,x2:v,y2:m})))}function Wm(t){return Wm="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},Wm(t)}function $m(){return $m=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},$m.apply(this,arguments)}function Hm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Km(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Hm(Object(r),!0).forEach((function(e){qm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qm(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Wm(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Wm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Wm(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Fm.displayName="ReferenceLine",Fm.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function Gm(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.className,a=t.alwaysShow,u=t.clipPathId;Ff(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=ln(e),l=ln(r),s=ln(n),f=ln(o),p=t.shape;if(!(c||l||s||f||p))return null;var h=function(t,e,r,n,o){var i=o.x1,a=o.x2,u=o.y1,c=o.y2,l=o.xAxis,s=o.yAxis;if(!l||!s)return null;var f=cv({x:l.scale,y:s.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(u,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!Em(o,"discard")||f.isInRange(p)&&f.isInRange(h)?av(p,h):null}(c,l,s,f,t);if(!h&&!p)return null;var d=Em(t,"hidden")?"url(#".concat(u,")"):void 0;return it().createElement(Zn,{className:ut()("recharts-reference-area",i)},Gm.renderRect(p,Km(Km({clipPath:d},Tn(t,!0)),h)),pi.renderCallByParent(t,h))}function Ym(t){return function(t){if(Array.isArray(t))return Xm(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 Xm(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 Xm(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 Xm(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}Gm.displayName="ReferenceArea",Gm.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},Gm.renderRect=function(t,e){return it().isValidElement(t)?it().cloneElement(t,e):Z()(t)?t(e):it().createElement(Xd,$m({},e,{className:"recharts-reference-area-rect"}))};var Vm=function(t,e,r,n,o){var i=kn(t,Fm),a=kn(t,Tm),u=[].concat(Ym(i),Ym(a)),c=kn(t,Gm),l="".concat(n,"Id"),s=n[0],f=e;if(u.length&&(f=u.reduce((function(t,e){if(e.props[l]===r&&Em(e.props,"extendDomain")&&cn(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),c.length){var p="".concat(s,"1"),h="".concat(s,"2");f=c.reduce((function(t,e){if(e.props[l]===r&&Em(e.props,"extendDomain")&&cn(e.props[p])&&cn(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 cn(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},Zm=r(6729),Jm=new(r.n(Zm)());Jm.setMaxListeners&&Jm.setMaxListeners(10);var Qm="recharts.syncMouseEvents";function tg(t){return tg="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},tg(t)}function eg(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,ng(n.key),n)}}function rg(t,e,r){return(e=ng(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ng(t){var e=function(t,e){if("object"!==tg(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==tg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===tg(e)?e:String(e)}var og=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),rg(this,"activeIndex",0),rg(this,"coordinateList",[]),rg(this,"layout","horizontal")}var e,r,n;return e=t,(r=[{key:"setDetails",value:function(t){var e=t.coordinateList,r=void 0===e?[]:e,n=t.container,o=void 0===n?null:n,i=t.layout,a=void 0===i?null:i,u=t.offset,c=void 0===u?null:u,l=t.mouseHandlerCallback,s=void 0===l?null:l;this.coordinateList=null!=r?r:this.coordinateList,this.container=null!=o?o:this.container,this.layout=null!=a?a:this.layout,this.offset=null!=c?c:this.offset,this.mouseHandlerCallback=null!=s?s:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"spoofMouse",value:function(){if("horizontal"===this.layout&&0!==this.coordinateList.length){var t=this.container.getBoundingClientRect(),e=t.x,r=t.y,n=t.height,o=e+this.coordinateList[this.activeIndex].coordinate,i=r+this.offset.top+n/2;this.mouseHandlerCallback({pageX:o,pageY:i})}}}])&&eg(e.prototype,r),n&&eg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function ig(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 Dd(e);var u=e.cx,c=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=Yo(u,c,l,f),h=Yo(u,c,s,f);n=p.x,o=p.y,i=h.x,a=h.y}return[{x:n,y:o},{x:i,y:a}]}var ag=["item"],ug=["children","className","width","height","style","compact","title","desc"];function cg(t){return cg="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},cg(t)}function lg(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||gg(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 sg(){return sg=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},sg.apply(this,arguments)}function fg(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 pg(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,Sg(n.key),n)}}function hg(t,e){return hg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},hg(t,e)}function dg(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=vg(t);if(e){var o=vg(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===cg(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return yg(t)}(this,r)}}function yg(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vg(t){return vg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vg(t)}function mg(t){return function(t){if(Array.isArray(t))return bg(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||gg(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 gg(t,e){if(t){if("string"==typeof t)return bg(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)?bg(t,e):void 0}}function bg(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 xg(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?xg(Object(r),!0).forEach((function(e){Og(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Og(t,e,r){return(e=Sg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sg(t){var e=function(t,e){if("object"!==cg(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==cg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===cg(e)?e:String(e)}var jg={xAxis:["bottom","top"],yAxis:["left","right"]},Eg={x:0,y:0},kg=Number.isFinite?Number.isFinite:isFinite,Pg=function(t,e,r){var n=e.graphicalItems,o=e.dataStartIndex,i=e.dataEndIndex,a=(n||[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(mg(t),mg(r)):t}),[]);return a&&a.length>0?a:r&&r.props&&r.props.data&&r.props.data.length>0?r.props.data:t&&t.length&&cn(o)&&cn(i)?t.slice(o,i+1):[]};function _g(t){return"number"===t?[0,"auto"]:void 0}var Ag=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=Pg(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce((function(t,o){if(o.props.hide)return t;var u,c=o.props.data,l=void 0===c?e:c;i.dataKey&&!i.allowDuplicatedCategory?u=yn(void 0===l?a:l,i.dataKey,n):u=l&&l[r]||a[r];return u?[].concat(mg(t),[_h(o,u)]):t}),[])},Mg=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,u=t.tooltipAxis,c=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 u=o.range,c=0;c<a;c++){var l=c>0?n[c-1].coordinate:n[a-1].coordinate,s=n[c].coordinate,f=c>=a-1?n[0].coordinate:n[c+1].coordinate,p=void 0;if(an(s-l)!==an(f-s)){var h=[];if(an(f-s)===an(u[1]-u[0])){p=f;var d=s+u[1]-u[0];h[0]=Math.min(d,(d+l)/2),h[1]=Math.max(d,(d+l)/2)}else{p=l;var y=f+u[1]-u[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[c].index;break}}else{var m=Math.min(l,f),g=Math.max(l,f);if(t>(m+s)/2&&t<=(g+s)/2){i=n[c].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){i=r[b].index;break}return i}(i,a,c,u);if(l>=0&&c){var s=c[l]&&c[l].value,f=Ag(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 wg(wg(wg({},n),Yo(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var u=o.coordinate,c=n.angle;return wg(wg(wg({},n),Yo(n.cx,n.cy,u,c)),{},{angle:c,radius:u})}return Eg}(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},Tg=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=hh(l,o),h=r.reduce((function(e,r){var h,d=r.props,y=d.type,v=d.dataKey,m=d.allowDataOverflow,g=d.allowDuplicatedCategory,b=d.scale,x=d.ticks,w=d.includeHidden,O=r.props[i];if(e[O])return e;var S,j,E,k=Pg(t.data,{graphicalItems:n.filter((function(t){return t.props[i]===O})),dataStartIndex:u,dataEndIndex:c}),P=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&&cn(n)&&cn(o))return!0}return!1})(r.props.domain,m,y)&&(S=Eh(r.props.domain,null,m),!p||"number"!==y&&"auto"===b||(E=lh(k,v,"category")));var _=_g(y);if(!S||0===S.length){var A,M=null!==(A=r.props.domain)&&void 0!==A?A:_;if(v){if(S=lh(k,v,y),"category"===y&&p){var T=function(t){if(!nt()(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(S);g&&T?(j=S,S=Ad()(0,P)):g||(S=Ph(M,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(mg(t),[e])}),[]))}else if("category"===y)S=g?S.filter((function(t){return""!==t&&!et()(t)})):Ph(M,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||et()(e)?t:[].concat(mg(t),[e])}),[]);else if("number"===y){var C=function(t,e,r,n,o){var i=e.map((function(e){return fh(t,e,r,o,n)})).filter((function(t){return!et()(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]===O&&(w||!t.props.hide)})),v,o,l);C&&(S=C)}!p||"number"!==y&&"auto"===b||(E=lh(k,v,"category"))}else S=p?Ad()(0,P):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:Oh(a[O].stackGroups,u,c):ph(k,n.filter((function(t){return t.props[i]===O&&(w||!t.props.hide)})),y,l,!0);if("number"===y)S=Vm(s,S,O,o,x),M&&(S=Eh(M,S,m));else if("category"===y&&M){var D=M;S.every((function(t){return D.indexOf(t)>=0}))&&(S=D)}}return wg(wg({},e),{},Og({},O,wg(wg({},r.props),{},{axisType:o,domain:S,categoricalDomain:E,duplicateDomain:j,originalDomain:null!==(h=r.props.domain)&&void 0!==h?h:_,isCategorical:p,layout:l})))}),{});return h},Cg=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=kn(l,o),p={};return f&&f.length?p=Tg(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c}):i&&i.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.layout,s=t.children,f=Pg(t.data,{graphicalItems:r,dataStartIndex:u,dataEndIndex:c}),p=f.length,h=hh(l,o),d=-1;return r.reduce((function(t,e){var y,v=e.props[i],m=_g("number");return t[v]?t:(d++,h?y=Ad()(0,p):a&&a[v]&&a[v].hasStack?(y=Oh(a[v].stackGroups,u,c),y=Vm(s,y,v,o)):(y=Eh(m,ph(f,r.filter((function(t){return t.props[i]===v&&!t.props.hide})),"number",l),n.defaultProps.allowDataOverflow),y=Vm(s,y,v,o)),wg(wg({},t),{},Og({},v,wg(wg({axisType:o},n.defaultProps),{},{hide:!0,orientation:Q()(jg,"".concat(o,".").concat(d%2),null),domain:y,originalDomain:m,isCategorical:h,layout:l}))))}),{})}(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c})),p},Dg=function(t){var e,r,n=t.children,o=t.defaultShowTooltip,i=Pn(n,jm);return{chartX:0,chartY:0,dataStartIndex:i&&i.props&&i.props.startIndex||0,dataEndIndex:void 0!==(null==i||null===(e=i.props)||void 0===e?void 0:e.endIndex)?null==i||null===(r=i.props)||void 0===r?void 0:r.endIndex:t.data&&t.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!et()(o)&&o}},Ng=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"}},Ig=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,u=r.width,c=r.height,l=r.children,s=r.margin||{},f=Pn(l,jm),p=Pn(l,Vp),h=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:wg(wg({},t),{},Og({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),d=Object.keys(o).reduce((function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:wg(wg({},t),{},Og({},n,Q()(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=wg(wg({},d),h),v=y.bottom;return f&&(y.bottom+=f.props.height||jm.defaultProps.height),p&&e&&(y=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,u=i-(a.left||0)-(a.right||0),c=eh({children:o,legendWidth:u});if(c){var l=n||{},s=l.width,f=l.height,p=c.align,h=c.verticalAlign,d=c.layout;if(("vertical"===d||"horizontal"===d&&"middle"===h)&&"center"!==p&&cn(t[p]))return oh(oh({},t),{},ih({},p,t[p]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===p)&&"middle"!==h&&cn(t[h]))return oh(oh({},t),{},ih({},h,t[h]+(f||0)))}return t}(y,0,r,e)),wg(wg({brushBottom:v},y),{},{width:u-y.left-y.right,height:c-y.top-y.bottom})},Rg=function(){return null};Rg.displayName="XAxis",Rg.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 Lg=function(){return null};Lg.displayName="YAxis",Lg.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 Bg=function(t){var e,r=t.chartName,n=t.GraphicalChild,o=t.defaultTooltipEventType,i=void 0===o?"axis":o,a=t.validateTooltipEventTypes,u=void 0===a?["axis"]:a,c=t.axisComponents,l=t.legendContent,s=t.formatAxisMap,f=t.defaultProps,p=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,u=e.dataEndIndex,l=t.barSize,s=t.layout,f=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,d=Ng(s),y=d.numericAxisName,v=d.cateAxisName,m=function(t){return!(!t||!t.length)&&t.some((function(t){var e=On(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),g=m&&function(t){var e=t.barSize,r=t.stackGroups,n=void 0===r?{}:r;if(!n)return{};for(var o={},i=Object.keys(n),a=0,u=i.length;a<u;a++)for(var c=n[i[a]].stackGroups,l=Object.keys(c),s=0,f=l.length;s<f;s++){var p=c[l[s]],h=p.items,d=p.cateAxisId,y=h.filter((function(t){return On(t.type).indexOf("Bar")>=0}));if(y&&y.length){var v=y[0].props.barSize,m=y[0].props[d];o[m]||(o[m]=[]),o[m].push({item:y[0],stackList:y.slice(1),barSize:et()(v)?e:v})}}return o}({barSize:l,stackGroups:n}),b=[];return r.forEach((function(r,l){var d=Pg(t.data,{dataStartIndex:a,dataEndIndex:u},r),m=r.props,x=m.dataKey,w=m.maxBarSize,O=r.props["".concat(y,"Id")],S=r.props["".concat(v,"Id")],j=c.reduce((function(t,n){var o,i=e["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")];i&&i[a]||"zAxis"===n.axisType||function(t,e){if(!t)throw new Error(Cd)}(!1);var u=i[a];return wg(wg({},t),{},(Og(o={},n.axisType,u),Og(o,"".concat(n.axisType,"Ticks"),yh(u)),o))}),{}),E=j[v],k=j["".concat(v,"Ticks")],P=n&&n[O]&&n[O].hasStack&&function(t,e){var r=t.props.stackId;if(ln(r)){var n=e[r];if(n){var o=n.items.indexOf(t);return o>=0?n.stackedData[o]:null}}return null}(r,n[O].stackGroups),_=On(r.type).indexOf("Bar")>=0,A=kh(E,k),M=[];if(_){var T,C,D=et()(w)?h:w,N=null!==(T=null!==(C=kh(E,k,!0))&&void 0!==C?C:D)&&void 0!==T?T:0;M=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,o=t.sizeList,i=void 0===o?[]:o,a=t.maxBarSize,u=i.length;if(u<1)return null;var c,l=pn(e,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/u,h=i.reduce((function(t,e){return t+e.barSize||0}),0);(h+=(u-1)*l)>=n&&(h-=(u-1)*l,l=0),h>=n&&p>0&&(f=!0,h=u*(p*=.9));var d={offset:((n-h)/2>>0)-l,size:0};c=i.reduce((function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+l,size:f?p:e.barSize}},n=[].concat(ah(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=pn(r,n,0,!0);n-2*y-(u-1)*l<=0&&(l=0);var v=(n-2*y-(u-1)*l)/u;v>1&&(v>>=0);var m=a===+a?Math.min(v,a):v;c=i.reduce((function(t,e,r){var n=[].concat(ah(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 c}({barGap:f,barCategoryGap:p,bandSize:N!==A?N:A,sizeList:g[S],maxBarSize:D}),N!==A&&(M=M.map((function(t){return wg(wg({},t),{},{position:wg(wg({},t.position),{},{offset:t.position.offset-N/2})})})))}var I,R,L,B=r&&r.type&&r.type.getComposedData;B&&b.push({props:wg(wg({},B(wg(wg({},j),{},{displayedData:d,props:t,dataKey:x,item:r,bandSize:A,barPosition:M,offset:o,stackedData:P,layout:s,dataStartIndex:a,dataEndIndex:u}))),{},(I={key:r.key||"item-".concat(l)},Og(I,y,j[y]),Og(I,v,j[v]),Og(I,"animationId",i),I)),childIndex:(R=r,L=t.children,En(L).indexOf(R)),item:r})})),b},h=function(t,e){var o=t.props,i=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!_n({props:o}))return null;var l=o.children,f=o.layout,h=o.stackOffset,d=o.data,y=o.reverseStackOrder,v=Ng(f),m=v.numericAxisName,g=v.cateAxisName,b=kn(l,n),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],u=t[a]||{hasStack:!1,stackGroups:{}};if(ln(i)){var c=u.stackGroups[i]||{numericAxisId:r,cateAxisId:n,items:[]};c.items.push(e),u.hasStack=!0,u.stackGroups[i]=c}else u.stackGroups[fn("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return oh(oh({},t),{},ih({},a,u))}),{});return Object.keys(a).reduce((function(e,i){var u=a[i];return u.hasStack&&(u.stackGroups=Object.keys(u.stackGroups).reduce((function(e,i){var a=u.stackGroups[i];return oh(oh({},e),{},ih({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:bh(t,a.items,o)}))}),{})),oh(oh({},e),{},ih({},i,u))}),{})}(d,b,"".concat(m,"Id"),"".concat(g,"Id"),h,y),w=c.reduce((function(t,e){var r="".concat(e.axisType,"Map");return wg(wg({},t),{},Og({},r,Cg(o,wg(wg({},e),{},{graphicalItems:b,stackGroups:e.axisType===m&&x,dataStartIndex:i,dataEndIndex:a}))))}),{}),O=Ig(wg(wg({},w),{},{props:o,graphicalItems:b}),null==e?void 0:e.legendBBox);Object.keys(w).forEach((function(t){w[t]=s(o,w[t],O,t.replace("Map",""),r)}));var S,j,E=w["".concat(g,"Map")],k=(S=hn(E),{tooltipTicks:j=yh(S,!1,!0),orderedTooltipTicks:yi()(j,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:kh(S,j)}),P=p(o,wg(wg({},w),{},{dataStartIndex:i,dataEndIndex:a,updateId:u,graphicalItems:b,stackGroups:x,offset:O}));return wg(wg({formattedGraphicalItems:P,graphicalItems:b,offset:O,stackGroups:x},k),w)};return e=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&&hg(t,e)}(c,t);var e,n,o,a=dg(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),Og(yg(e=a.call(this,t)),"accessibilityManager",new og),Og(yg(e),"clearDefer",(function(){e.cancelDefer&&(e.cancelDefer(),e.cancelDefer=null)})),Og(yg(e),"handleLegendBBoxUpdate",(function(t){if(t){var r=e.state,n=r.dataStartIndex,o=r.dataEndIndex,i=r.updateId;e.setState(wg({legendBBox:t},h({props:e.props,dataStartIndex:n,dataEndIndex:o,updateId:i},wg(wg({},e.state),{},{legendBBox:t}))))}})),Og(yg(e),"handleReceiveSyncEvent",(function(t,r,n){e.props.syncId===t&&r!==e.uniqueChartId&&(e.clearDefer(),e.cancelDefer=function(t){if("function"==typeof requestAnimationFrame){var e=requestAnimationFrame(t);return function(){return cancelAnimationFrame(e)}}if("function"==typeof setImmediate){var r=setImmediate(t);return function(){return clearImmediate(r)}}var n=setTimeout(t);return function(){return clearTimeout(n)}}(e.applySyncEvent.bind(yg(e),n)))})),Og(yg(e),"handleBrushChange",(function(t){var r=t.startIndex,n=t.endIndex;if(r!==e.state.dataStartIndex||n!==e.state.dataEndIndex){var o=e.state.updateId;e.setState((function(){return wg({dataStartIndex:r,dataEndIndex:n},h({props:e.props,dataStartIndex:r,dataEndIndex:n,updateId:o},e.state))})),e.triggerSyncEvent({dataStartIndex:r,dataEndIndex:n})}})),Og(yg(e),"handleMouseEnter",(function(t){var r=e.props.onMouseEnter,n=e.getMouseInfo(t);if(n){var o=wg(wg({},n),{},{isTooltipActive:!0});e.setState(o),e.triggerSyncEvent(o),Z()(r)&&r(o,t)}})),Og(yg(e),"triggeredAfterMouseMove",(function(t){var r=e.props.onMouseMove,n=e.getMouseInfo(t),o=n?wg(wg({},n),{},{isTooltipActive:!0}):{isTooltipActive:!1};e.setState(o),e.triggerSyncEvent(o),Z()(r)&&r(o,t)})),Og(yg(e),"handleItemMouseEnter",(function(t){e.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),Og(yg(e),"handleItemMouseLeave",(function(){e.setState((function(){return{isTooltipActive:!1}}))})),Og(yg(e),"handleMouseMove",(function(t){t&&Z()(t.persist)&&t.persist(),e.triggeredAfterMouseMove(t)})),Og(yg(e),"handleMouseLeave",(function(t){var r=e.props.onMouseLeave,n={isTooltipActive:!1};e.setState(n),e.triggerSyncEvent(n),Z()(r)&&r(n,t),e.cancelThrottledTriggerAfterMouseMove()})),Og(yg(e),"handleOuterEvent",(function(t){var r=function(t){var e=t&&t.type;return e&&wn[e]?wn[e]:null}(t),n=Q()(e.props,"".concat(r));r&&Z()(n)&&n(/.*touch.*/i.test(r)?e.getMouseInfo(t.changedTouches[0]):e.getMouseInfo(t),t)})),Og(yg(e),"handleClick",(function(t){var r=e.props.onClick,n=e.getMouseInfo(t);if(n){var o=wg(wg({},n),{},{isTooltipActive:!0});e.setState(o),e.triggerSyncEvent(o),Z()(r)&&r(o,t)}})),Og(yg(e),"handleMouseDown",(function(t){var r=e.props.onMouseDown;Z()(r)&&r(e.getMouseInfo(t),t)})),Og(yg(e),"handleMouseUp",(function(t){var r=e.props.onMouseUp;Z()(r)&&r(e.getMouseInfo(t),t)})),Og(yg(e),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleMouseMove(t.changedTouches[0])})),Og(yg(e),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleMouseDown(t.changedTouches[0])})),Og(yg(e),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleMouseUp(t.changedTouches[0])})),Og(yg(e),"verticalCoordinatesGenerator",(function(t,e){var r=t.xAxis,n=t.width,o=t.height,i=t.offset;return dh(vv(wg(wg(wg({},am.defaultProps),r),{},{ticks:yh(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,e)})),Og(yg(e),"horizontalCoordinatesGenerator",(function(t,e){var r=t.yAxis,n=t.width,o=t.height,i=t.offset;return dh(vv(wg(wg(wg({},am.defaultProps),r),{},{ticks:yh(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,e)})),Og(yg(e),"axesTicksGenerator",(function(t){return yh(t,!0)})),Og(yg(e),"renderCursor",(function(t){var n=e.state,o=n.isTooltipActive,i=n.activeCoordinate,a=n.activePayload,u=n.offset,c=n.activeTooltipIndex,l=n.tooltipAxisBandSize,s=e.getTooltipEventType();if(!t||!t.props.cursor||!o||!i||"ScatterChart"!==r&&"axis"!==s)return null;var f,p=e.props.layout,h=Kn;if("ScatterChart"===r)f=i,h=Kv;else if("BarChart"===r)f=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,i,u,l),h=Xd;else if("radial"===p){var d=Dd(i),y=d.cx,v=d.cy,m=d.radius;f={cx:y,cy:v,startAngle:d.startAngle,endAngle:d.endAngle,innerRadius:m,outerRadius:m},h=dy}else f={points:ig(p,i,u)},h=Kn;var g=t.key||"_recharts-cursor",b=wg(wg(wg(wg({stroke:"#ccc",pointerEvents:"none"},u),f),Tn(t.props.cursor)),{},{payload:a,payloadIndex:c,key:g,className:"recharts-tooltip-cursor"});return(0,ot.isValidElement)(t.props.cursor)?(0,ot.cloneElement)(t.props.cursor,b):(0,ot.createElement)(h,b)})),Og(yg(e),"renderPolarAxis",(function(t,r,n){var o=Q()(t,"type.axisType"),i=Q()(e.state,"".concat(o,"Map")),a=i&&i[t.props["".concat(o,"Id")]];return(0,ot.cloneElement)(t,wg(wg({},a),{},{className:o,key:t.key||"".concat(r,"-").concat(n),ticks:yh(a,!0)}))})),Og(yg(e),"renderXAxis",(function(t,r,n){var o=e.state.xAxisMap[t.props.xAxisId];return e.renderAxis(o,t,r,n)})),Og(yg(e),"renderYAxis",(function(t,r,n){var o=e.state.yAxisMap[t.props.yAxisId];return e.renderAxis(o,t,r,n)})),Og(yg(e),"renderGrid",(function(t){var r=e.state,n=r.xAxisMap,o=r.yAxisMap,i=r.offset,a=e.props,u=a.width,c=a.height,l=hn(n),s=Pd()(o,(function(t){return Ed()(t.domain,kg)}))||hn(o),f=t.props||{};return(0,ot.cloneElement)(t,{key:t.key||"grid",x:cn(f.x)?f.x:i.left,y:cn(f.y)?f.y:i.top,width:cn(f.width)?f.width:i.width,height:cn(f.height)?f.height:i.height,xAxis:l,yAxis:s,offset:i,chartWidth:u,chartHeight:c,verticalCoordinatesGenerator:f.verticalCoordinatesGenerator||e.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:f.horizontalCoordinatesGenerator||e.horizontalCoordinatesGenerator})})),Og(yg(e),"renderPolarGrid",(function(t){var r=t.props,n=r.radialLines,o=r.polarAngles,i=r.polarRadius,a=e.state,u=a.radiusAxisMap,c=a.angleAxisMap,l=hn(u),s=hn(c),f=s.cx,p=s.cy,h=s.innerRadius,d=s.outerRadius;return(0,ot.cloneElement)(t,{polarAngles:nt()(o)?o:yh(s,!0).map((function(t){return t.coordinate})),polarRadius:nt()(i)?i:yh(l,!0).map((function(t){return t.coordinate})),cx:f,cy:p,innerRadius:h,outerRadius:d,key:t.key||"polar-grid",radialLines:n})})),Og(yg(e),"renderLegend",(function(){var t=e.state.formattedGraphicalItems,r=e.props,n=r.children,o=r.width,i=r.height,a=e.props.margin||{},u=o-(a.left||0)-(a.right||0),c=eh({children:n,formattedGraphicalItems:t,legendWidth:u,legendContent:l});if(!c)return null;var s=c.item,f=fg(c,ag);return(0,ot.cloneElement)(s,wg(wg({},f),{},{chartWidth:o,chartHeight:i,margin:a,onBBoxUpdate:e.handleLegendBBoxUpdate}))})),Og(yg(e),"renderTooltip",(function(){var t=Pn(e.props.children,Lv);if(!t)return null;var r=e.state,n=r.isTooltipActive,o=r.activeCoordinate,i=r.activePayload,a=r.activeLabel,u=r.offset;return(0,ot.cloneElement)(t,{viewBox:wg(wg({},u),{},{x:u.left,y:u.top}),active:n,label:a,payload:n?i:[],coordinate:o})})),Og(yg(e),"renderBrush",(function(t){var r=e.props,n=r.margin,o=r.data,i=e.state,a=i.offset,u=i.dataStartIndex,c=i.dataEndIndex,l=i.updateId;return(0,ot.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:vh(e.handleBrushChange,null,t.props.onChange),data:o,x:cn(t.props.x)?t.props.x:a.left,y:cn(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(n.bottom||0),width:cn(t.props.width)?t.props.width:a.width,startIndex:u,endIndex:c,updateId:"brush-".concat(l)})})),Og(yg(e),"renderReferenceElement",(function(t,r,n){if(!t)return null;var o=yg(e).clipPathId,i=e.state,a=i.xAxisMap,u=i.yAxisMap,c=i.offset,l=t.props,s=l.xAxisId,f=l.yAxisId;return(0,ot.cloneElement)(t,{key:t.key||"".concat(r,"-").concat(n),xAxis:a[s],yAxis:u[f],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:o})})),Og(yg(e),"renderActivePoints",(function(t){var e=t.item,r=t.activePoint,n=t.basePoint,o=t.childIndex,i=t.isRange,a=[],u=e.props.key,l=e.item.props,s=l.activeDot,f=wg(wg({index:o,dataKey:l.dataKey,cx:r.x,cy:r.y,r:4,fill:sh(e.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(u,"-activePoint-").concat(o)},Tn(s)),Jr(s));return a.push(c.renderActiveDot(s,f)),n?a.push(c.renderActiveDot(s,wg(wg({},f),{},{cx:n.x,cy:n.y,key:"".concat(u,"-basePoint-").concat(o)}))):i&&a.push(null),a})),Og(yg(e),"renderGraphicChild",(function(t,r,n){var o=e.filterFormatItem(t,r,n);if(!o)return null;var i=e.getTooltipEventType(),a=e.state,u=a.isTooltipActive,c=a.tooltipAxis,l=a.activeTooltipIndex,s=a.activeLabel,f=Pn(e.props.children,Lv),p=o.props,h=p.points,d=p.isRange,y=p.baseLine,v=o.item.props,m=v.activeDot,g=v.hide,b=v.activeBar,x=v.activeShape,w=Boolean(!g&&u&&f&&(m||b||x)),O={};"axis"!==i&&f&&"click"===f.props.trigger?O={onClick:vh(e.handleItemMouseEnter,null,t.props.onCLick)}:"axis"!==i&&(O={onMouseLeave:vh(e.handleItemMouseLeave,null,t.props.onMouseLeave),onMouseEnter:vh(e.handleItemMouseEnter,null,t.props.onMouseEnter)});var S=(0,ot.cloneElement)(t,wg(wg({},o.props),O));if(w){if(!(l>=0)){var j,E=(null!==(j=e.getItemByXY(e.state.activeCoordinate))&&void 0!==j?j:{graphicalItem:S}).graphicalItem,k=E.item,P=void 0===k?t:k,_=E.childIndex,A=wg(wg(wg({},o.props),O),{},{activeIndex:_});return[(0,ot.cloneElement)(P,A),null,null]}var M,T;if(c.dataKey&&!c.allowDuplicatedCategory){var C="function"==typeof c.dataKey?function(t){return"function"==typeof c.dataKey?c.dataKey(t.payload):null}:"payload.".concat(c.dataKey.toString());M=yn(h,C,s),T=d&&y&&yn(y,C,s)}else M=null==h?void 0:h[l],T=d&&y&&y[l];if(x||b){var D=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[(0,ot.cloneElement)(t,wg(wg(wg({},o.props),O),{},{activeIndex:D})),null,null]}if(!et()(M))return[S].concat(mg(e.renderActivePoints({item:o,activePoint:M,basePoint:T,childIndex:l,isRange:d})))}return d?[S,null,null]:[S,null]})),Og(yg(e),"renderCustomized",(function(t,r,n){return(0,ot.cloneElement)(t,wg(wg({key:"recharts-customized-".concat(n)},e.props),e.state))})),e.uniqueChartId=et()(t.id)?fn("recharts"):t.id,e.clipPathId="".concat(e.uniqueChartId,"-clip"),t.throttleDelay&&(e.triggeredAfterMouseMove=ad()(e.triggeredAfterMouseMove,t.throttleDelay)),e.state={},e}return e=c,n=[{key:"componentDidMount",value:function(){var t,e;et()(this.props.syncId)||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.handleMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(t,e){return this.props.accessibilityLayer?(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}}),null):null;var r,n}},{key:"componentDidUpdate",value:function(t){et()(t.syncId)&&!et()(this.props.syncId)&&this.addListener(),!et()(t.syncId)&&et()(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDefer(),et()(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=Pn(this.props.children,Lv);if(t&&Td()(t.props.shared)){var e=t.props.shared?"axis":"item";return u.indexOf(e)>=0?e:i}return i}},{key:"getMouseInfo",value:function(t){var e;if(!this.container)return null;var r,n,o,i=function(t,e){return{chartX:Math.round(t.pageX-e.left),chartY:Math.round(t.pageY-e.top)}}(t,(r=this.container,n=r.ownerDocument.documentElement,o={top:0,left:0},void 0!==r.getBoundingClientRect&&(o=r.getBoundingClientRect()),{top:o.top+window.pageYOffset-n.clientTop,left:o.left+window.pageXOffset-n.clientLeft})),a=this.container,u=(null==a||null===(e=a.getBoundingClientRect())||void 0===e?void 0:e.width)/a.offsetWidth||1,c=this.inRange(i.chartX,i.chartY,u);if(!c)return null;var l=this.state,s=l.xAxisMap,f=l.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&f){var p=hn(s).scale,h=hn(f).scale,d=p&&p.invert?p.invert(i.chartX):null,y=h&&h.invert?h.invert(i.chartY):null;return wg(wg({},i),{},{xValue:d,yValue:y})}var v=Mg(this.state,this.props.data,this.props.layout,c);return v?wg(wg({},i),v):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 u=this.state,c=u.angleAxisMap,l=u.radiusAxisMap;if(c&&l){var s=hn(c);return Zo({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=Pn(t,Lv),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}),wg(wg({},Jr(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){Jm.on(Qm,this.handleReceiveSyncEvent),Jm.setMaxListeners&&Jm._maxListeners&&Jm.setMaxListeners(Jm._maxListeners+1)}},{key:"removeListener",value:function(){Jm.removeListener(Qm,this.handleReceiveSyncEvent),Jm.setMaxListeners&&Jm._maxListeners&&Jm.setMaxListeners(Jm._maxListeners-1)}},{key:"triggerSyncEvent",value:function(t){var e=this.props.syncId;et()(e)||Jm.emit(Qm,e,this.uniqueChartId,t)}},{key:"applySyncEvent",value:function(t){var e=this.props,r=e.layout,n=e.syncMethod,o=this.state.updateId,i=t.dataStartIndex,a=t.dataEndIndex;if(et()(t.dataStartIndex)&&et()(t.dataEndIndex))if(et()(t.activeTooltipIndex))this.setState(t);else{var u=t.chartX,c=t.chartY,l=t.activeTooltipIndex,s=this.state,f=s.offset,p=s.tooltipTicks;if(!f)return;if("function"==typeof n)l=n(p,t);else if("value"===n){l=-1;for(var d=0;d<p.length;d++)if(p[d].value===t.activeLabel){l=d;break}}var y=wg(wg({},f),{},{x:f.left,y:f.top}),v=Math.min(u,y.x+y.width),m=Math.min(c,y.y+y.height),g=p[l]&&p[l].value,b=Ag(this.state,this.props.data,l),x=p[l]?{x:"horizontal"===r?p[l].coordinate:v,y:"horizontal"===r?m:p[l].coordinate}:Eg;this.setState(wg(wg({},t),{},{activeLabel:g,activeCoordinate:x,activePayload:b,activeTooltipIndex:l}))}else this.setState(wg({dataStartIndex:i,dataEndIndex:a},h({props:this.props,dataStartIndex:i,dataEndIndex:a,updateId:o},this.state)))}},{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===On(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderAxis",value:function(t,e,r,n){var o=this.props,i=o.width,a=o.height;return it().createElement(am,sg({},t,{className:ut()("recharts-".concat(t.axisType," ").concat(t.axisType),t.className),key:e.key||"".concat(r,"-").concat(n),viewBox:{x:0,y:0,width:i,height:a},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,o=e.height,i=e.width;return it().createElement("defs",null,it().createElement("clipPath",{id:t},it().createElement("rect",{x:r,y:n,height:o,width:i})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=lg(e,2),n=r[0],o=r[1];return wg(wg({},t),{},Og({},n,o.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=lg(e,2),n=r[0],o=r[1];return wg(wg({},t),{},Og({},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],u=a.props,c=a.item,l=On(c.type);if("Bar"===l){var s=(u.data||[]).find((function(e){return Gd(t,e)}));if(s)return{graphicalItem:a,payload:s}}else if("RadialBar"===l){var f=(u.data||[]).find((function(e){return Zo(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if(jy(a)||Ey(a)||ky(a)){var p=My({graphicalItem:a,activeTooltipItem:n,itemData:c.props.data}),h=void 0===c.props.activeIndex?p:c.props.activeIndex;return{graphicalItem:wg(wg({},a),{},{childIndex:h}),payload:ky(a)?c.props.data[p]:a.props.data[p]}}}return null}},{key:"render",value:function(){var t=this;if(!_n(this))return null;var e=this.props,r=e.children,n=e.className,o=e.width,i=e.height,a=e.style,u=e.compact,c=e.title,l=e.desc,s=fg(e,ug),f=Tn(s),p={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(u)return it().createElement(Kf,sg({},f,{width:o,height:i,title:c,desc:l}),this.renderClipPath(),Nn(r,p));this.props.accessibilityLayer&&(f.tabIndex=0,f.role="img",f.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},f.onFocus=function(){t.accessibilityManager.focus()});var h=this.parseEventsOfWrapper();return it().createElement("div",sg({className:ut()("recharts-wrapper",n),style:wg({position:"relative",cursor:"default",width:o,height:i},a)},h,{ref:function(e){t.container=e},role:"region"}),it().createElement(Kf,sg({},f,{width:o,height:i,title:c,desc:l}),this.renderClipPath(),Nn(r,p)),this.renderLegend(),this.renderTooltip())}}],n&&pg(e.prototype,n),o&&pg(e,o),Object.defineProperty(e,"prototype",{writable:!1}),c}(ot.Component),Og(e,"displayName",r),Og(e,"defaultProps",wg({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),Og(e,"getDerivedStateFromProps",(function(t,e){var r=t.data,n=t.children,o=t.width,i=t.height,a=t.layout,u=t.stackOffset,c=t.margin;if(et()(e.updateId)){var l=Dg(t);return wg(wg(wg({},l),{},{updateId:0},h(wg(wg({props:t},l),{},{updateId:0}),e)),{},{prevData:r,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:u,prevMargin:c,prevChildren:n})}if(r!==e.prevData||o!==e.prevWidth||i!==e.prevHeight||a!==e.prevLayout||u!==e.prevStackOffset||!vn(c,e.prevMargin)){var s=Dg(t),f={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},p=wg(wg({},Mg(e,r,a)),{},{updateId:e.updateId+1}),d=wg(wg(wg({},s),f),p);return wg(wg(wg({},d),h(wg({props:t},d),e)),{},{prevData:r,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:u,prevMargin:c,prevChildren:n})}if(!Cn(n,e.prevChildren)){var y=!et()(r)?e.updateId:e.updateId+1;return wg(wg({updateId:y},h(wg(wg({props:t},e),{},{updateId:y}),e)),{},{prevChildren:n})}return null})),Og(e,"renderActiveDot",(function(t,e){var r;return r=(0,ot.isValidElement)(t)?(0,ot.cloneElement)(t,e):Z()(t)?t(e):it().createElement(Gn,e),it().createElement(Zn,{className:"recharts-active-dot",key:e.key},r)})),e}({chartName:"AreaChart",GraphicalChild:ed,axisComponents:[{axisType:"xAxis",AxisComp:Rg},{axisType:"yAxis",AxisComp:Lg}],formatAxisMap:function(t,e,r,n,i){var a=t.width,u=t.height,c=t.layout,l=t.children,s=Object.keys(e),f={left:r.left,leftMirror:r.left,right:a-r.right,rightMirror:a-r.right,top:r.top,topMirror:r.top,bottom:u-r.bottom,bottomMirror:u-r.bottom},p=!!Pn(l,Qy);return s.reduce((function(a,u){var l,s,h,d,y,v=e[u],m=v.orientation,g=v.domain,b=v.padding,x=void 0===b?{}:b,w=v.mirror,O=v.reversed,S="".concat(m).concat(w?"Mirror":"");if("number"===v.type&&("gap"===v.padding||"no-gap"===v.padding)){var j=g[1]-g[0],E=1/0,k=v.categoricalDomain.sort();k.forEach((function(t,e){e>0&&(E=Math.min((t||0)-(k[e-1]||0),E))}));var P=E/j,_="vertical"===v.layout?r.height:r.width;if("gap"===v.padding&&(l=P*_/2),"no-gap"===v.padding){var A=pn(t.barCategoryGap,P*_),M=P*_/2;l=M-A-(M-A)/_*A}}s="xAxis"===n?[r.left+(x.left||0)+(l||0),r.left+r.width-(x.right||0)-(l||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(x.bottom||0),r.top+(x.top||0)]:[r.top+(x.top||0)+(l||0),r.top+r.height-(x.bottom||0)-(l||0)]:v.range,O&&(s=[s[1],s[0]]);var T=function(t,e,r){var n=t.scale,i=t.type,a=t.layout,u=t.axisType;if("auto"===n)return"radial"===a&&"radiusAxis"===u?{scale:Ai(),realScaleType:"band"}:"radial"===a&&"angleAxis"===u?{scale:pu(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:Ti(),realScaleType:"point"}:"category"===i?{scale:Ai(),realScaleType:"band"}:{scale:pu(),realScaleType:"linear"};if(en()(n)){var c="scale".concat(pr()(n));return{scale:(o[c]||Ti)(),realScaleType:o[c]?c:"point"}}return Z()(n)?{scale:n}:{scale:Ti(),realScaleType:"point"}}(v,i,p),C=T.scale,D=T.realScaleType;C.domain(g).range(s),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])-mh,i=Math.max(n[0],n[1])+mh,a=t(e[0]),u=t(e[r-1]);(a<o||a>i||u<o||u>i)&&t.domain([e[0],e[r-1]])}}(C);var N=function(t,e){var r=e.realScaleType,n=e.type,o=e.tickCount,i=e.originalDomain,a=e.allowDecimals,u=r||e.scale;if("auto"!==u&&"linear"!==u)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var c=t.domain();if(!c.length)return null;var l=Tf(c,o,a);return t.domain([mi()(l),X()(l)]),{niceTicks:l}}if(o&&"number"===n){var s=t.domain();return{niceTicks:Cf(s,o,a)}}return null}(C,nv(nv({},v),{},{realScaleType:D}));"xAxis"===n?(y="top"===m&&!w||"bottom"===m&&w,h=r.left,d=f[S]-y*v.height):"yAxis"===n&&(y="left"===m&&!w||"right"===m&&w,h=f[S]-y*v.width,d=r.top);var I=nv(nv(nv({},v),N),{},{realScaleType:D,x:h,y:d,scale:C,width:"xAxis"===n?r.width:v.width,height:"yAxis"===n?r.height:v.height});return I.bandSize=kh(I,N),v.hide||"xAxis"!==n?v.hide||(f[S]+=(y?-1:1)*I.width):f[S]+=(y?-1:1)*I.height,nv(nv({},a),{},ov({},u,I))}),{})}}),Ug=["x1","y1","x2","y2","key"],zg=["offset"];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 Wg(){return Wg=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},Wg.apply(this,arguments)}function $g(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 Hg(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 Kg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Hg(Object(r),!0).forEach((function(e){Vg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qg(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,Zg(n.key),n)}}function Gg(t,e){return Gg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Gg(t,e)}function Yg(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=Xg(t);if(e){var o=Xg(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Fg(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function Xg(t){return Xg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xg(t)}function Vg(t,e,r){return(e=Zg(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zg(t){var e=function(t,e){if("object"!==Fg(t)||null===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)}(t,"string");return"symbol"===Fg(e)?e:String(e)}var Jg=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&&Gg(t,e)}(i,t);var e,r,n,o=Yg(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return e=i,r=[{key:"renderHorizontal",value:function(t){var e=this,r=this.props,n=r.x,o=r.width,a=r.horizontal;if(!t||!t.length)return null;var u=t.map((function(t,r){var u=Kg(Kg({},e.props),{},{x1:n,y1:t,x2:n+o,y2:t,key:"line-".concat(r),index:r});return i.renderLineItem(a,u)}));return it().createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}},{key:"renderVertical",value:function(t){var e=this,r=this.props,n=r.y,o=r.height,a=r.vertical;if(!t||!t.length)return null;var u=t.map((function(t,r){var u=Kg(Kg({},e.props),{},{x1:t,y1:n,x2:t,y2:n+o,key:"line-".concat(r),index:r});return i.renderLineItem(a,u)}));return it().createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}},{key:"renderVerticalStripes",value:function(t){var e=this.props.verticalFill;if(!e||!e.length)return null;var r=this.props,n=r.fillOpacity,o=r.x,i=r.y,a=r.width,u=r.height,c=t.map((function(t){return Math.round(t+o-o)})).sort((function(t,e){return t-e}));o!==c[0]&&c.unshift(0);var l=c.map((function(t,r){var l=c[r+1]?c[r+1]-t:o+a-t;if(l<=0)return null;var s=r%e.length;return it().createElement("rect",{key:"react-".concat(r),x:t,y:i,width:l,height:u,stroke:"none",fill:e[s],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return it().createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(t){var e=this.props.horizontalFill;if(!e||!e.length)return null;var r=this.props,n=r.fillOpacity,o=r.x,i=r.y,a=r.width,u=r.height,c=t.map((function(t){return Math.round(t+i-i)})).sort((function(t,e){return t-e}));i!==c[0]&&c.unshift(0);var l=c.map((function(t,r){var l=c[r+1]?c[r+1]-t:i+u-t;if(l<=0)return null;var s=r%e.length;return it().createElement("rect",{key:"react-".concat(r),y:t,x:o,height:l,width:a,stroke:"none",fill:e[s],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return it().createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var t=this.props.fill;if(!t||"none"===t)return null;var e=this.props,r=e.fillOpacity,n=e.x,o=e.y,i=e.width,a=e.height;return it().createElement("rect",{x:n,y:o,width:i,height:a,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.horizontal,a=t.vertical,u=t.horizontalCoordinatesGenerator,c=t.verticalCoordinatesGenerator,l=t.xAxis,s=t.yAxis,f=t.offset,p=t.chartWidth,h=t.chartHeight,d=t.syncWithTicks,y=t.horizontalValues,v=t.verticalValues;if(!cn(n)||n<=0||!cn(o)||o<=0||!cn(e)||e!==+e||!cn(r)||r!==+r)return null;var m=this.props,g=m.horizontalPoints,b=m.verticalPoints;if((!g||!g.length)&&Z()(u)){var x=y&&y.length;g=u({yAxis:Kg(Kg({},s),{},{ticks:x?y:s.ticks}),width:p,height:h,offset:f},!!x||d)}if((!b||!b.length)&&Z()(c)){var w=v&&v.length;b=c({xAxis:Kg(Kg({},l),{},{ticks:w?v:l.ticks}),width:p,height:h,offset:f},!!w||d)}return it().createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),i&&this.renderHorizontal(g),a&&this.renderVertical(b),i&&this.renderHorizontalStripes(g),a&&this.renderVerticalStripes(b))}}],n=[{key:"renderLineItem",value:function(t,e){var r;if(it().isValidElement(t))r=it().cloneElement(t,e);else if(Z()(t))r=t(e);else{var n=e.x1,o=e.y1,i=e.x2,a=e.y2,u=e.key,c=$g(e,Ug),l=Tn(c),s=(l.offset,$g(l,zg));r=it().createElement("line",Wg({},s,{x1:n,y1:o,x2:i,y2:a,fill:"none",key:u}))}return r}}],r&&qg(e.prototype,r),n&&qg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.PureComponent);Vg(Jg,"displayName","CartesianGrid"),Vg(Jg,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var Qg=[{value:"",label:(0,B.__)("Worldwide","rank-math-pro")},{value:"AR",label:(0,B.__)("Argentina","rank-math-pro")},{value:"AU",label:(0,B.__)("Australia","rank-math-pro")},{value:"AT",label:(0,B.__)("Austria","rank-math-pro")},{value:"BE",label:(0,B.__)("Belgium","rank-math-pro")},{value:"BR",label:(0,B.__)("Brazil","rank-math-pro")},{value:"CA",label:(0,B.__)("Canada","rank-math-pro")},{value:"CL",label:(0,B.__)("Chile","rank-math-pro")},{value:"CO",label:(0,B.__)("Colombia","rank-math-pro")},{value:"CZ",label:(0,B.__)("Czechia","rank-math-pro")},{value:"DK",label:(0,B.__)("Denmark","rank-math-pro")},{value:"EG",label:(0,B.__)("Egypt","rank-math-pro")},{value:"FI",label:(0,B.__)("Finland","rank-math-pro")},{value:"FR",label:(0,B.__)("France","rank-math-pro")},{value:"DE",label:(0,B.__)("Germany","rank-math-pro")},{value:"GR",label:(0,B.__)("Greece","rank-math-pro")},{value:"HK",label:(0,B.__)("Hong Kong","rank-math-pro")},{value:"HU",label:(0,B.__)("Hungary","rank-math-pro")},{value:"IN",label:(0,B.__)("India","rank-math-pro")},{value:"ID",label:(0,B.__)("Indonesia","rank-math-pro")},{value:"IE",label:(0,B.__)("Ireland","rank-math-pro")},{value:"IL",label:(0,B.__)("Israel","rank-math-pro")},{value:"IT",label:(0,B.__)("Italy","rank-math-pro")},{value:"JP",label:(0,B.__)("Japan","rank-math-pro")},{value:"KE",label:(0,B.__)("Kenya","rank-math-pro")},{value:"MY",label:(0,B.__)("Malaysia","rank-math-pro")},{value:"MX",label:(0,B.__)("Mexico","rank-math-pro")},{value:"NL",label:(0,B.__)("Netherlands","rank-math-pro")},{value:"NZ",label:(0,B.__)("New Zealand","rank-math-pro")},{value:"NG",label:(0,B.__)("Nigeria","rank-math-pro")},{value:"NO",label:(0,B.__)("Norway","rank-math-pro")},{value:"PH",label:(0,B.__)("Philippines","rank-math-pro")},{value:"PL",label:(0,B.__)("Poland","rank-math-pro")},{value:"PT",label:(0,B.__)("Portugal","rank-math-pro")},{value:"RO",label:(0,B.__)("Romania","rank-math-pro")},{value:"RU",label:(0,B.__)("Russia","rank-math-pro")},{value:"SA",label:(0,B.__)("Saudi Arabia","rank-math-pro")},{value:"SG",label:(0,B.__)("Singapore","rank-math-pro")},{value:"ZA",label:(0,B.__)("South Africa","rank-math-pro")},{value:"KR",label:(0,B.__)("South Korea","rank-math-pro")},{value:"SE",label:(0,B.__)("Sweden","rank-math-pro")},{value:"CH",label:(0,B.__)("Switzerland","rank-math-pro")},{value:"TW",label:(0,B.__)("Taiwan","rank-math-pro")},{value:"TH",label:(0,B.__)("Thailand","rank-math-pro")},{value:"TR",label:(0,B.__)("Turkey","rank-math-pro")},{value:"UA",label:(0,B.__)("Ukraine","rank-math-pro")},{value:"GB",label:(0,B.__)("United Kingdom","rank-math-pro")},{value:"US",label:(0,B.__)("United States","rank-math-pro")},{value:"VN",label:(0,B.__)("Vietnam","rank-math-pro")}],tb=[{value:"7d",label:(0,B.__)("Past 7 days","rank-math-pro")},{value:"1m",label:(0,B.__)("Past 30 days","rank-math-pro")},{value:"3m",label:(0,B.__)("Past 90 days","rank-math-pro")},{value:"12m",label:(0,B.__)("Past 12 months","rank-math-pro")}];const eb=function(t){var e=t.width,r=t.height,n=t.x,o=t.y,i=t.dy,a=t.payload,u=t.index,c=t.visibleTicksCount,l=t.isFormat,s=void 0===l||l,f="middle";return 0===u&&(f="start"),u===c-1&&(f="end"),wp.element.createElement("g",{className:"recharts-layer recharts-cartesian-axis-tick"},wp.element.createElement("text",{width:e,height:r,x:n,y:o,stroke:"none",fill:"#7f868d",fontSize:"14",textAnchor:f},wp.element.createElement("tspan",{x:n,dy:i},s?$()(a.value).format("D MMM, YYYY"):a.value)))};function rb(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return nb(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 nb(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 nb(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 ob(t){return ob="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},ob(t)}var ib=["#2196f3","#f44336","#ffca28","#43a047","#9c27b0"];const ab=(0,i.withSelect)((function(t){return{isRefreshing:t("rank-math-pro").isRefreshingTrendKeywords(),keywords:t("rank-math-pro").getTrendKeywords()}}))((function(t){var e=t.isRefreshing,r=t.keywords,n=rb((0,F.useState)(""),2),o=n[0],i=n[1],a=rb((0,F.useState)("1m"),2),c=a[0],l=a[1],s=rb((0,F.useState)(!1),2),f=s[0],p=s[1],h=function(t){var e=$()().format("YYYY-MM-DD"),r=parseInt(t),n=$()();return t.includes("d")?n=n.subtract(r,"days").format("YYYY-MM-DD"):t.includes("m")&&(n=n.subtract(r,"months").format("YYYY-MM-DD")),[e,n]}(c),d=rb(h,2),y=d[0],v=d[1],m=(0,B.__)("Please set the Focus Keyword for this page.","rank-math");(0,u.isEmpty)(r)||(m=(0,B.__)("Loading…","rank-math")),(0,F.useEffect)((function(){if((0,u.isEmpty)(r))p(!1);else{var t=[],e=[];(0,u.map)(r,(function(r,n){r&&(t.push(n),e.push(encodeURIComponent(n)))}));var n=(0,B.sprintf)("https://api.rankmath.com/trends/v1/?%1$s&date_start=%3$s&date_end=%4$s&country=%2$s","keyword[]="+e.join("&keyword[]="),o,v,y);p(!1),fetch(n,{method:"GET"}).then((function(t){return t.json()})).then((function(e){var r=(0,u.get)(e,"default.timelineData",!1);if(m="",(0,u.isEmpty)(r))return m=(0,B.__)("No data found.","rank-math"),void p([]);p(function(t,e){return(0,u.map)(t,(function(t){var r=t.formattedTime;-1!==r.indexOf("–")&&(r=t.formattedAxisTime);var n={formattedTime:r};return(0,u.map)(e,(function(e,r){n[e]=t.value[r]})),n}))}(r,t))}))}}),[e,c,o]);var g=[];if(!(0,u.isEmpty)(f)){var b=f.length;g=[f[0].formattedTime,f[Math.round(b/2-b/25)].formattedTime,f[b-1].formattedTime]}return wp.element.createElement(F.Fragment,null,wp.element.createElement("div",{className:"trend-graph-attribute-row"},wp.element.createElement(U.SelectControl,{value:o,onChange:i,options:Qg}),wp.element.createElement(U.SelectControl,{value:c,onChange:l,options:tb})),function(t,e,r){return(0,u.isEmpty)(e)?"object"!==ob(e)||e.length||r!==(0,B.__)("Loading…","rank-math")?""!==r?wp.element.createElement("div",{className:"trends-error"},r):null:wp.element.createElement("div",{className:"trends-error"},(0,B.__)("No data found.","rank-math")):null}(0,f,m),wp.element.createElement("div",{className:"rank-math-graph main-graph single-stats-graph"},!(0,u.isEmpty)(f)&&wp.element.createElement(Sd,null,wp.element.createElement(Bg,{data:f,margin:{top:5,right:30,left:0,bottom:5}},wp.element.createElement(Jg,{stroke:"#f2f2f2",vertical:!1}),wp.element.createElement(Rg,{dy:15,dataKey:"formattedTime",textAnchor:"middle",interval:"preserveStartEnd",tickLine:!1,axisLine:{stroke:"rgba(0, 0, 0, 0.15)"},ticks:g,tick:wp.element.createElement(eb,{isFormat:!1})}),wp.element.createElement(Lg,{dx:-10,axisLine:!1,tickLine:!1,tick:{fill:"#7f868d",fontSize:14}}),wp.element.createElement(Lv,{wrapperStyle:{zIndex:10},wrapperClassName:"rank-math-graph-tooltip",labelFormatter:function(t){return $()(t).format("D MMM, YYYY")},formatter:function(t){return[t,(0,B.__)("Interest","rank-math-pro")]}}),function(t){var e=-1;return(0,u.map)(t,(function(t,r){return e++,wp.element.createElement("defs",{key:r+"Def"},wp.element.createElement("linearGradient",{id:"colorValue".concat(e),x1:"0",y1:"0",x2:"0",y2:"1"},wp.element.createElement("stop",{offset:"5%",stopColor:ib[e],stopOpacity:.3}),wp.element.createElement("stop",{offset:"95%",stopColor:ib[e],stopOpacity:0})))}))}(r),function(t){var e=-1;return(0,u.map)(t,(function(t,r){return e++,t?wp.element.createElement(ed,{key:r+"Area",type:"monotone",dataKey:r,strokeWidth:2,stroke:ib[e],fill:"url(#colorValue".concat(e,")"),fillOpacity:.9}):null}))}(r)))))}));const ub=(0,wp.compose.compose)((0,i.withSelect)((function(t){return{refresh:Date.now(),keywords:t("rank-math-pro").getTrendKeywords()}})),(0,i.withDispatch)((function(t){return{toggleKeyword:function(e){t("rank-math-pro").toggleTrendKeyword(e),t("rank-math-pro").refreshTrendKeywords()},removeKeyword:function(e){t("rank-math-pro").removeTrendKeyword(e),t("rank-math-pro").refreshTrendKeywords()}}})))((function(t){var e=t.keywords,r=t.removeKeyword,n=t.toggleKeyword;if((0,u.isEmpty)(e))return(0,B.__)("No Keywords Selected","rank-math");for(var o=(0,u.keys)(e).slice(0,5),i={},a=0;a<o.length;a++)i[o[a]]=e[o[a]];return wp.element.createElement("ul",{className:"trends-tool-keywords-list"},(0,u.map)(i,(function(t,e){var o="compare-keyword-bar";return t&&(o+=" selected"),wp.element.createElement("li",{key:e,className:o},wp.element.createElement(U.CheckboxControl,{className:"compare-keyword-checkbox",checked:t,onChange:function(){return n(e)}}),wp.element.createElement("span",{className:"compare-keyword"},e),wp.element.createElement("button",{className:"remove-keyword",onClick:function(){return r(e)}},wp.element.createElement(U.Dashicon,{icon:"no",size:"16"})))})))})),cb=jQuery;var lb=r.n(cb);function sb(t){return sb="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},sb(t)}function fb(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==sb(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==sb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===sb(i)?i:String(i)),n)}var o,i}function pb(t,e){return pb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},pb(t,e)}function hb(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=db(t);if(e){var o=db(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===sb(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function db(t){return db=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},db(t)}var yb=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&&pb(t,e)}(a,t);var e,r,n,o=hb(a);function a(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(t=o.call.apply(o,[this].concat(r))).keyword="",t.input=null,t.addKeyword=function(){""!==t.keyword&&((0,i.dispatch)("rank-math-pro").addTrendKeyword(t.keyword),(0,i.dispatch)("rank-math-pro").refreshTrendKeywords(),t.keyword="",t.input.value="")},t}return e=a,r=[{key:"componentDidMount",value:function(){rankMath.isUserRegistered&&(this.input=this.node.querySelector(".components-text-control__input"),lb()(this.input).autocomplete(this.getAutocompleteOptions()))}},{key:"componentWillUnmount",value:function(){rankMath.isUserRegistered&&lb()(this.input).autocomplete("destroy")}},{key:"getAutocompleteOptions",value:function(){var t=this;return{classes:{"ui-autocomplete":"ui-autocomplete rank-math-ui-autocomplete"},minLength:2,source:function(t,e){lb().ajax({url:rankMath.keywordsApi.url,data:{keyword:t.term,locale:rankMath.locale},success:function(t){e(lb().map(t,(function(t){return{value:lb()("<span>").html(t).text()}})))}})},select:function(e,r){return t.keyword=r.item.value,t.addKeyword(),t.closeSuggestionsDropdown(),!1}}}},{key:"closeSuggestionsDropdown",value:function(){var t=this.node.querySelector(".components-text-control__input");lb()(t).autocomplete("close")}},{key:"render",value:function(){var t=this;return wp.element.createElement("div",{className:"keyword-field-wrapper",ref:function(e){return t.node=e}},wp.element.createElement(U.TextControl,{label:(0,B.__)("Keywords","rank-math"),placeholder:(0,B.__)("Enter Keyword","rank-math"),className:"keyword-field",onChange:function(e){return t.keyword=e},onKeyPress:function(e){13===e.charCode&&(t.addKeyword(),t.closeSuggestionsDropdown())},disabled:this.props.disabled}),wp.element.createElement(U.Button,{isPrimary:!0,className:"add-keyword",onClick:this.addKeyword,disabled:this.props.disabled},wp.element.createElement(U.Dashicon,{icon:"plus",size:"14"}),(0,B.__)("Add","rank-math")))}}],r&&fb(e.prototype,r),n&&fb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(F.Component);const vb=yb;function mb(t){return mb="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},mb(t)}function gb(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 bb(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gb(Object(r),!0).forEach((function(e){xb(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gb(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xb(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==mb(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==mb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===mb(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const wb=(0,i.withSelect)((function(t,e){return bb(bb({},e),{},{refresh:Date.now(),keywords:t("rank-math-pro").getTrendKeywords()})}))((function(t){var e=t.toggleModal,r=t.keywords;return wp.element.createElement("div",{className:"trends-tool-frame-sidebar-inner"},wp.element.createElement(vb,{disabled:Object.keys(r).length>=5}),wp.element.createElement("div",{className:"trends-tool-keywords clear"},wp.element.createElement(ub,null)),wp.element.createElement(U.Button,{className:"button use-these-keywords",isPrimary:!0,onClick:function(){var t=[];(0,u.map)(r,(function(e,r){e&&t.push(r)})),t=t.join(",");var n=(0,u.get)(window.rankMathEditor,"focusKeywordField.tagifyField.current.tagify",(0,u.get)(rankMathEditor,"components.focusKeywords.tagify",!1));!1!==n&&(n.removeAllTags(),n.addTags(t)),(0,i.dispatch)("rank-math").updateKeywords(t),e(!1),(0,i.dispatch)("rank-math-pro").clearTrendKeywords()}},(0,B.__)("Close & use selected keywords","rank-math")),wp.element.createElement(U.Button,{className:"button-link close-popup",isSecondary:!0,onClick:function(){e(!1),(0,i.dispatch)("rank-math-pro").clearTrendKeywords()}},(0,B.__)("Cancel","rank-math")))}));function Ob(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,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Sb(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 Sb(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 Sb(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}const jb=function(){var t=Ob((0,F.useState)(!1),2),e=t[0],r=t[1];return wp.element.createElement(F.Fragment,null,wp.element.createElement(U.Button,{id:"rank-math-compare-keywords-trigger",isSecondary:!0,className:"button rank-math-trends-tool-button rank-math-compare-keywords-trigger",onClick:function(){return r(!0)}},wp.element.createElement("span",{className:"button-icon",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon}})),e&&wp.element.createElement(U.Modal,{title:(0,B.__)("Google Trends","rank-math-pro"),closeButtonLabel:(0,B.__)("Close","rank-math-pro"),shouldCloseOnClickOutside:!1,onRequestClose:function(){r(!1),(0,i.dispatch)("rank-math-pro").clearTrendKeywords()},className:"rank-math-modal rank-math-modal-trends-tool",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement("div",{className:"rank-math-grid"},wp.element.createElement("div",{className:"trends-tool-frame-sidebar"},wp.element.createElement(wb,{toggleModal:r})),wp.element.createElement("div",{className:"trends-tool-frame-content"},wp.element.createElement(ab,null)))))};var Eb=r(3004),kb=r.n(Eb);(0,a.addAction)("rank_math_loaded","rank-math-pro",(function(){void 0!==(0,i.select)("rank-math-pro")||(0,i.registerStore)("rank-math-pro",{reducer:(0,i.combineReducers)(e),selectors:n,actions:t}),(0,i.dispatch)("rank-math").setVersion(),rankMath.isUserRegistered&&(0,a.addFilter)("rankMath.focusKeywords.Trends","rank-math-pro",(function(){return jb})),(0,a.addFilter)("rankMath.analytics.reportButton","rank-math-pro",(function(){return z})),(0,a.addAction)("rank_math_tagify_init","rank-math-pro",(function(t){return new(kb())(t.tagify.DOM.scope,{selector:".tagify__tag",callbacks:{dragEnd:t.props.settings.callbacks.dragEnd}})})),(0,a.addFilter)("rank_math_focus_keyword_settings","rank-math-pro",(function(t,e){return t.callbacks.dragEnd=function(){e.tagifyField.current.tagify.updateValueByDOMTags(),e.updateKeywords(),e.selectFirstKeyword()},t}))}))})()})();