You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
423 KiB
JavaScript

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(()=>{var t={3004:function(t){var e,r;e=function(){var t,e=0,r={},n={},i=(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 o(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(),i(this.parentElm,this.setup.bind(this)),this.bindEvents()}return o.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(i){r||(t.call(n,i),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,i=this.getDraggableElm(e);i?(this.source=this.getInitialState(),this.target=this.getInitialState(),n=i.getBoundingClientRect(),this.source.elm=i,this.source.idx=this.getNodeIndex(i),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,i=parseInt(r.gap)||0;return parseInt(e["margin"+(n?"Top":"Left")])+parseInt(e["margin"+(n?"Bottom":"Right")])+i},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 o(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 i(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)){if(r.length){var a=i.apply(null,r);a&&t.push(a)}}else if("object"===o){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?(i.default=i,t.exports=i):void 0===(r=function(){return i}.apply(e,[]))||(t.exports=r)}()},3258:t=>{var e={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};t.exports=function(t,r,n,i){if(!e.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!e[n].hasOwnProperty(r))throw new Error("Cannot convert from "+r+" to "+n);var o=e[n][r]*t;return!1!==i?(i=Math.pow(10,parseInt(i)||5),Math.round(o*i)/i):o}},9887:function(t,e,r){var n;!function(i){"use strict";var o,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,i,o,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,i=e.e,l=l.slice(),o=a-i){for(o<0?(n=l,o=-o,u=s.length):(n=s,i=a,u=l.length),o>(u=(a=Math.ceil(p/v))>u?a+1:u+1)&&(o=u,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((u=l.length)-(o=s.length)<0&&(o=u,n=s,s=l,l=n),r=0;o;)r=(l[--o]=l[o]+s[o]+r)/y|0,l[o]%=y;for(r&&(l.unshift(r),++i),u=l.length;0==l[--u];)l.pop();return e.d=l,e.e=i,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,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)n=t[e]+"",(r=v-n.length)&&(o+=j(r)),o+=n;a=t[e],(r=v-(n=a+"").length)&&(o+=j(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+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,i,o=this;if(t=new o.constructor(t),o.s!==t.s)return o.s||-t.s;if(o.e!==t.e)return o.e>t.e^o.s<0?1:-1;for(e=0,r=(n=o.d.length)<(i=t.d.length)?n:i;e<r;++e)if(o.d[e]!==t.d[e])return o.d[e]>t.d[e]^o.s<0?1:-1;return n===i?0:n>i^o.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 _(this,new this.constructor(t))},b.dividedToIntegerBy=b.idiv=function(t){var e=this.constructor;return M(_(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,i=n.precision,a=i+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(o))throw Error(l+"NaN");if(r.s<1)throw Error(l+(r.s?"NaN":"-Infinity"));return r.eq(o)?new n(0):(c=!1,e=_(A(r,a),A(t,a),a),c=!0,M(e,i))},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,i=n.precision;if(!(t=new n(t)).s)throw Error(l+"NaN");return r.s?(c=!1,e=_(r,t,0,1).times(t),c=!0,r.minus(e)):M(new n(r),i)},b.naturalExponential=b.exp=function(){return S(this)},b.naturalLogarithm=b.ln=function(){return A(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,i=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(s+t);if(e=E(i)+1,r=(n=i.d.length-1)*v+1,n=i.d[n]){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},b.squareRoot=b.sqrt=function(){var t,e,r,n,i,o,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==(i=Math.sqrt(+u))||i==1/0?(((e=O(u.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=p((t+1)/2)-(t<0||t%2),n=new s(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new s(i.toString()),i=a=(r=s.precision)+3;;)if(n=(o=n).plus(_(u,o,a+2)).times(.5),O(o.d).slice(0,a)===(e=O(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(M(o,r+1,0),o.times(o).eq(u)){n=o;break}}else if("9999"!=e)break;a+=4}return c=!0,M(n,r)},b.times=b.mul=function(t){var e,r,n,i,o,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)&&(o=h,h=d,d=o,a=l,l=s,s=a),o=[],n=a=l+s;n--;)o.push(0);for(n=s;--n>=0;){for(e=0,i=l+n;i>n;)u=o[i]+d[n]*h[i-n-1]+e,o[i--]=u%y|0,e=u/y|0;o[i]=(o[i]+e)%y|0}for(;!o[--a];)o.pop();return e?++r:o.shift(),t.d=o,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,i=n.constructor;return void 0===t?r=C(n,!0):(w(t,0,a),void 0===e?e=i.rounding:w(e,0,8),r=C(n=M(new i(n),t+1,e),!0,t+1)),r},b.toFixed=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?C(i):(w(t,0,a),void 0===e?e=o.rounding:w(e,0,8),r=C((n=M(new o(i),t+E(i)+1,e)).abs(),!1,t+E(n)+1),i.isneg()&&!i.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,i,a,u,s=this,f=s.constructor,h=+(t=new f(t));if(!t.s)return new f(o);if(!(s=new f(s)).s){if(t.s<1)throw Error(l+"Infinity");return s}if(s.eq(o))return s;if(n=f.precision,t.eq(o))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(i=new f(o),e=Math.ceil(n/v+4),c=!1;r%2&&D((i=i.times(s)).d,e),0!==(r=p(r/2));)D((s=s.times(s)).d,e);return c=!0,t.s<0?new f(o).div(i):M(i,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,i=t.times(A(s,n+12)),c=!0,(i=S(i)).s=a,i},b.toPrecision=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?n=C(i,(r=E(i))<=o.toExpNeg||r>=o.toExpPos):(w(t,1,a),void 0===e?e=o.rounding:w(e,0,8),n=C(i=M(new o(i),t,e),t<=(r=E(i))||r<=o.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 _=function(){function t(t,e){var r,n=0,i=t.length;for(t=t.slice();i--;)r=t[i]*e+n,t[i]=r%y|0,n=r/y|0;return n&&t.unshift(n),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}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,i,o,a){var u,c,s,f,p,h,d,m,g,b,x,w,O,_,S,k,j,A,P=n.constructor,T=n.s==i.s?1:-1,C=n.d,D=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(l+"Division by zero");for(c=n.e-i.e,j=D.length,S=C.length,m=(d=new P(T)).d=[],s=0;D[s]==(C[s]||0);)++s;if(D[s]>(C[s]||0)&&--c,(w=null==o?o=P.precision:a?o+(E(n)-E(i))+1:o)<0)return new P(0);if(w=w/v+2|0,s=0,1==j)for(f=0,D=D[0],w++;(s<S||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),j=D.length,S=C.length),_=j,b=(g=C.slice(0,j)).length;b<j;)g[b++]=0;(A=D.slice()).unshift(0),k=D[0],D[1]>=y/2&&++k;do{f=0,(u=e(D,g,j,b))<0?(x=g[0],j!=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,j<h?A: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,j,b=g.length))<1&&(f++,r(g,j<b?A:D,b)),b=g.length):0===u&&(f++,g=[0]),m[s++]=f,u&&g[0]?g[b++]=C[_]||0:(g=[C[_]],b=1)}while((_++<S||void 0!==g[0])&&w--)}return m[0]||m.shift(),d.e=c,M(d,a?o+E(d)+1:o)}}();function S(t,e){var r,n,i,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(o);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=i=new p(o),p.precision=u;;){if(n=M(n.times(t),u),r=r.times(++l),O((a=i.plus(_(n,r,u))).d).slice(0,u)===O(i.d).slice(0,u)){for(;s--;)i=M(i.times(i),u);return p.precision=d,null==e?(c=!0,M(i,d)):i}i=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 j(t){for(var e="";t--;)e+="0";return e}function A(t,e){var r,n,i,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(o))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=A(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=_(y.minus(o),y.plus(o),p),h=M(y.times(y),p),i=3;;){if(u=M(u.times(h),p),O((f=s.plus(_(u,new m(i),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,new m(d),p),m.precision=g,null==e?(c=!0,M(s,g)):s;s=f,i+=2}}function P(t,e){var r,n,i;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(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(n,i)){if(i-=n,r=r-n-1,t.e=p(r/v),t.d=[],n=(r+1)%v,r<0&&(n+=v),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=v;n<i;)t.d.push(+e.slice(n,n+=v));e=e.slice(n),n=v-e.length}else n-=i;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,i,o,a,u,l,s,d,m=t.d;for(a=1,o=m[0];o>=10;o/=10)a++;if((n=e-a)<0)n+=v,i=e,s=m[d=0];else{if((d=Math.ceil((n+1)/v))>=(o=m.length))return t;for(s=o=m[d],a=1;o>=10;o/=10)a++;i=(n%=v)-v+a}if(void 0!==r&&(u=s/(o=h(10,a-i-1))%10|0,l=e<0||void 0!==m[d+1]||s%o,l=r<4?(u||l)&&(0==r||r==(t.s<0?3:2)):u>5||5==u&&(4==r||l||6==r&&(n>0?i>0?s/h(10,a-i):0:m[d-1])%10&1||r==(t.s<0?8:7))),e<1||!m[0])return l?(o=E(t),m.length=1,e=e-o-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,o=1,d--):(m.length=d+1,o=h(10,v-n),m[d]=i>0?(s/h(10,a-i)%h(10,i)|0)*o:0),l)for(;;){if(0==d){(m[0]+=o)==y&&(m[0]=1,++t.e);break}if(m[d]+=o,m[d]!=y)break;m[d--]=0,o=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,i,o,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>(i=Math.max(Math.ceil(d/v),u)+2)&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for((f=(i=l.length)<(u=p.length))&&(u=i),i=0;i<u;i++)if(l[i]!=p[i]){f=l[i]<p[i];break}a=0}for(f&&(r=l,l=p,p=r,e.s=-e.s),u=l.length,i=p.length-u;i>0;--i)l[u++]=0;for(i=p.length;i>a;){if(l[--i]<p[i]){for(o=i;o&&0===l[--o];)l[o]=y-1;--l[o],l[i]+=y}l[i]-=p[i]}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,i=E(t),o=O(t.d),a=o.length;return e?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+j(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+j(-i-1)+o,r&&(n=r-a)>0&&(o+=j(n))):i>=a?(o+=j(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+j(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=j(n))),t.s<0?"-"+o:o}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,i=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if(void 0!==(n=t[r=i[e]])){if(!(p(n)===n&&n>=i[e+1]&&n<=i[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,i;function o(t){var e=this;if(!(e instanceof o))return new o(t);if(e.constructor=o,t instanceof o)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])):P(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);P(e,t)}if(o.prototype=b,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=N,void 0===e&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<i.length;)e.hasOwnProperty(n=i[r++])||(e[n]=this[n]);return o.config(e),o}(u),u.default=u.Decimal=u,o=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 i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var u=new i(n,o||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,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},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 i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].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,i,o,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,i),!0;case 5:return s.fn.call(s.context,e,n,i,o),!0;case 6:return s.fn.call(s.context,e,n,i,o,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,i);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 o(this,t,e,r,!1)},u.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},u.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var u=this._events[o];if(u.fn)u.fn!==e||i&&!u.once||n&&u.context!==n||a(this,o);else{for(var c=0,l=[],s=u.length;c<s;c++)(u[c].fn!==e||i&&!u[c].once||n&&u[c].context!==n)&&l.push(u[c]);l.length?this._events[o]=1===l.length?l[0]:l:a(this,o)}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),i=r(401),o=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=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=u,t.exports=c},8407:(t,e,r)=>{var n=r(7040),i=r(4125),o=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=i,c.prototype.get=o,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),i=r(1285),o=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=i,c.prototype.get=o,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),i=r(619),o=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=i,a.prototype.has=o,t.exports=a},6384:(t,e,r)=>{var n=r(8407),i=r(7465),o=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=i,l.prototype.delete=o,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,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o}},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,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}},4636:(t,e,r)=>{var n=r(2545),i=r(5694),o=r(1469),a=r(4144),u=r(5776),c=r(6719),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=o(t),s=!r&&i(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,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},2488:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+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),i=r(9291)(n);t.exports=i},3239:(t,e,r)=>{var n=r(9881);t.exports=function(t,e){var r=!0;return n(t,(function(t,n,i){return r=!!e(t,n,i)})),r}},6029:(t,e,r)=>{var n=r(3448);t.exports=function(t,e,r){for(var i=-1,o=t.length;++i<o;){var a=t[i],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 i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},1078:(t,e,r)=>{var n=r(2488),i=r(7285);t.exports=function t(e,r,o,a,u){var c=-1,l=e.length;for(o||(o=i),u||(u=[]);++c<l;){var s=e[c];r>0&&o(s)?r>1?t(s,r-1,o,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),i=r(3674);t.exports=function(t,e){return t&&n(t,e,i)}},7786:(t,e,r)=>{var n=r(1811),i=r(327);t.exports=function(t,e){for(var r=0,o=(e=n(e,t)).length;null!=t&&r<o;)t=t[i(e[r++])];return r&&r==o?t:void 0}},8866:(t,e,r)=>{var n=r(2488),i=r(1469);t.exports=function(t,e,r){var o=e(t);return i(t)?o:n(o,r(t))}},4239:(t,e,r)=>{var n=r(2705),i=r(9607),o=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)?i(t):o(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),i=r(2722),o=r(2351);t.exports=function(t,e,r){return e==e?o(t,e,r):n(t,i,r)}},9454:(t,e,r)=>{var n=r(4239),i=r(7005);t.exports=function(t){return i(t)&&"[object Arguments]"==n(t)}},939:(t,e,r)=>{var n=r(2492),i=r(7005);t.exports=function t(e,r,o,a,u){return e===r||(null==e||null==r||!i(e)&&!i(r)?e!=e&&r!=r:n(e,r,o,a,t,u))}},2492:(t,e,r)=>{var n=r(6384),i=r(7114),o=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,_=(w=w==f?h:w)==h,S=x==w;if(S&&l(t)){if(!l(e))return!1;g=!0,O=!1}if(S&&!O)return m||(m=new n),g||s(t)?i(t,e,r,y,v,m):o(t,e,x,r,y,v,m);if(!(1&r)){var E=O&&d.call(t,"__wrapped__"),k=_&&d.call(e,"__wrapped__");if(E||k){var j=E?t.value():t,A=k?e.value():e;return m||(m=new n),v(j,A,r,y,m)}}return!!S&&(m||(m=new n),a(t,e,r,y,v,m))}},2958:(t,e,r)=>{var n=r(6384),i=r(939);t.exports=function(t,e,r,o){var a=r.length,u=a,c=!o;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(o)var d=o(f,p,s,t,e,h);if(!(void 0===d?i(p,f,3,o,h):d))return!1}}return!0}},2722:t=>{t.exports=function(t){return t!=t}},8458:(t,e,r)=>{var n=r(3560),i=r(5346),o=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!(!o(t)||i(t))&&(n(t)?p:u).test(a(t))}},8749:(t,e,r)=>{var n=r(4239),i=r(1780),o=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 o(t)&&i(t.length)&&!!a[n(t)]}},7206:(t,e,r)=>{var n=r(1573),i=r(6432),o=r(6557),a=r(1469),u=r(9601);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):n(t):u(t)}},280:(t,e,r)=>{var n=r(5726),i=r(6916),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=[];for(var r in Object(t))o.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),i=r(8612);t.exports=function(t,e){var r=-1,o=i(t)?Array(t.length):[];return n(t,(function(t,n,i){o[++r]=e(t,n,i)})),o}},1573:(t,e,r)=>{var n=r(2958),i=r(1499),o=r(2634);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},6432:(t,e,r)=>{var n=r(939),i=r(7361),o=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=i(r,t);return void 0===a&&a===e?o(r,t):n(e,a,3)}}},9556:(t,e,r)=>{var n=r(9932),i=r(7786),o=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 i(e,1===t.length?t[0]:t)}:t})):[s];var p=-1;e=n(e,c(o));var h=a(t,(function(t,r,i){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,i,o){for(var a=-1,u=r(e((n-t)/(i||1)),0),c=Array(u);u--;)c[o?u:++a]=t,t+=i;return c}},5976:(t,e,r)=>{var n=r(6557),i=r(5357),o=r(61);t.exports=function(t,e){return o(i(t,e,n),t+"")}},6560:(t,e,r)=>{var n=r(5703),i=r(8777),o=r(6557),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:o;t.exports=a},4259:t=>{t.exports=function(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o}},5076:(t,e,r)=>{var n=r(9881);t.exports=function(t,e){var r;return n(t,(function(t,n,i){return!(r=e(t,n,i))})),!!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),i=r(9932),o=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(o(e))return i(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),i=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(i,""):t}},1717:t=>{t.exports=function(t){return function(e){return t(e)}}},5652:(t,e,r)=>{var n=r(8668),i=r(7443),o=r(1196),a=r(4757),u=r(3593),c=r(1814);t.exports=function(t,e,r){var l=-1,s=i,f=t.length,p=!0,h=[],d=h;if(r)p=!1,s=o;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),i=r(5403),o=r(5514),a=r(9833);t.exports=function(t,e){return n(t)?t:i(t,e)?[t]:o(a(t))}},180:(t,e,r)=>{var n=r(4259);t.exports=function(t,e,r){var i=t.length;return r=void 0===r?i:r,!e&&r>=i?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,i=null===t,o=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||i&&u&&l||!r&&l||!o)return 1;if(!i&&!a&&!s&&t<e||s&&r&&o&&!i&&!a||c&&r&&o||!u&&o||!l)return-1}return 0}},5022:(t,e,r)=>{var n=r(6393);t.exports=function(t,e,r){for(var i=-1,o=t.criteria,a=e.criteria,u=o.length,c=r.length;++i<u;){var l=n(o[i],a[i]);if(l)return i>=c?l:l*("desc"==r[i]?-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,i){if(null==r)return r;if(!n(r))return t(r,i);for(var o=r.length,a=e?o:-1,u=Object(r);(e?a--:++a<o)&&!1!==i(u[a],a,u););return r}}},5063:t=>{t.exports=function(t){return function(e,r,n){for(var i=-1,o=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++i];if(!1===r(o[c],c,o))break}return e}}},8805:(t,e,r)=>{var n=r(180),i=r(2689),o=r(3140),a=r(9833);t.exports=function(t){return function(e){e=a(e);var r=i(e)?o(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),i=r(8612),o=r(3674);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!i(e)){var c=n(r,3);e=o(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),i=r(6612),o=r(8601);t.exports=function(t){return function(e,r,a){return a&&"number"!=typeof a&&i(e,r,a)&&(r=a=void 0),e=o(e),void 0===r?(r=e,e=0):r=o(r),a=void 0===a?e<r?1:-1:o(a),n(e,r,a,t)}}},3593:(t,e,r)=>{var n=r(8525),i=r(308),o=r(1814),a=n&&1/o(new n([,-0]))[1]==1/0?function(t){return new n(t)}:i;t.exports=a},8777:(t,e,r)=>{var n=r(852),i=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},7114:(t,e,r)=>{var n=r(8668),i=r(2908),o=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(!i(e,(function(t,e){if(!o(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),i=r(1149),o=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 i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+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),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,o,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:i.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(o)var b=c?o(g,m,p,e,t,u):o(m,g,p,t,e,u);if(!(void 0===b?m===g||a(m,g,r,o,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),i=r(9551),o=r(3674);t.exports=function(t){return n(t,o,i)}},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),i=r(3674);t.exports=function(t){for(var e=i(t),r=e.length;r--;){var o=e[r],a=t[o];e[r]=[o,a,n(a)]}return e}},852:(t,e,r)=>{var n=r(8458),i=r(7801);t.exports=function(t,e){var r=i(t,e);return n(r)?r:void 0}},9607:(t,e,r)=>{var n=r(2705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var i=a.call(t);return n&&(e?t[u]=r:delete t[u]),i}},9551:(t,e,r)=>{var n=r(4963),i=r(479),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return o.call(t,e)})))}:i;t.exports=u},4160:(t,e,r)=>{var n=r(8552),i=r(7071),o=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(i),m=l(o),g=l(a),b=l(u),x=c;(n&&x(new n(new ArrayBuffer(1)))!=d||i&&x(new i)!=s||o&&x(o.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),i=r(5694),o=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)&&(o(t)||i(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),i=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 i.call(e,t)?e[t]:void 0}},1327:(t,e,r)=>{var n=r(4536),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:i.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),i=r(5694),o=r(1469),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(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),i=r(8612),o=r(5776),a=r(3218);t.exports=function(t,e,r){if(!a(r))return!1;var u=typeof e;return!!("number"==u?i(r)&&o(e,r.length):"string"==u&&e in r)&&n(r[e],t)}},5403:(t,e,r)=>{var n=r(1469),i=r(3448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\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&&!i(t))||(a.test(t)||!o.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,i=r(4429),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!o&&o 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),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():i.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__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},4785:(t,e,r)=>{var n=r(1989),i=r(8407),o=r(7071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),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),i=r.size;return r.set(t,e),this.size+=r.size==i?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),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&n.process,u=function(){try{var t=o&&o.require&&o.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),i=Math.max;t.exports=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,u=i(o.length-e,0),c=Array(u);++a<u;)c[a]=o[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=o[a];return l[e]=r(c),n(t,this,l)}}},5639:(t,e,r)=>{var n=r(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},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),i=r(1275)(n);t.exports=i},1275:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var i=e(),o=16-(i-n);if(n=i,o>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),i=r(7071),o=r(3369);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(t,e),this.size=r.size,this}},2351:t=>{t.exports=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}},3140:(t,e,r)=>{var n=r(4286),i=r(2689),o=r(676);t.exports=function(t){return i(t)?o(t):n(t)}},5514:(t,e,r)=>{var n=r(4523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,r,n,i){e.push(n?i.replace(o,"$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]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+e+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+n+"|"+i+")"+"?",l="[\\ufe0e\\ufe0f]?",s=l+c+("(?:\\u200d(?:"+[o,a,u].join("|")+")"+l+c+")*"),f="(?:"+[o+n+"?",n,a,u,r].join("|")+")",p=RegExp(i+"(?="+i+")|"+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),i=r(7771),o=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=i();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=i(),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=o(e)||0,n(r)&&(y=!!r.leading,s=(v="maxWait"in r)?a(o(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(i())},O}},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},711:(t,e,r)=>{var n=r(6193),i=r(3239),o=r(7206),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))}},3311:(t,e,r)=>{var n=r(7740)(r(998));t.exports=n},998:(t,e,r)=>{var n=r(1848),i=r(7206),o=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:o(r);return c<0&&(c=a(u+c,0)),n(t,i(e,3),c)}},4654:(t,e,r)=>{var n=r(1078),i=r(5161);t.exports=function(t,e){return n(i(t,e),1)}},7361:(t,e,r)=>{var n=r(7786);t.exports=function(t,e,r){var i=null==t?void 0:n(t,e);return void 0===i?r:i}},9095:(t,e,r)=>{var n=r(13),i=r(222);t.exports=function(t,e){return null!=t&&i(t,e,n)}},6557:t=>{t.exports=function(t){return t}},5694:(t,e,r)=>{var n=r(9454),i=r(7005),o=Object.prototype,a=o.hasOwnProperty,u=o.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return i(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),i=r(1780);t.exports=function(t){return null!=t&&i(t.length)&&!n(t)}},1584:(t,e,r)=>{var n=r(4239),i=r(7005);t.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==n(t)}},4144:(t,e,r)=>{t=r.nmd(t);var n=r(5639),i=r(5062),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,u=a&&a.exports===o?n.Buffer:void 0,c=(u?u.isBuffer:void 0)||i;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),i=r(3218);t.exports=function(t){if(!i(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),i=r(7005);t.exports=function(t){return"number"==typeof t||i(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}},7037:(t,e,r)=>{var n=r(4239),i=r(1469),o=r(7005);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==n(t)}},3448:(t,e,r)=>{var n=r(4239),i=r(7005);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==n(t)}},6719:(t,e,r)=>{var n=r(8749),i=r(1717),o=r(1167),a=o&&o.isTypedArray,u=a?i(a):n;t.exports=u},3674:(t,e,r)=>{var n=r(4636),i=r(280),o=r(8612);t.exports=function(t){return o(t)?n(t):i(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),i=r(7206),o=r(9199),a=r(1469);t.exports=function(t,e){return(a(t)?n:o)(t,i(e,3))}},6604:(t,e,r)=>{var n=r(9465),i=r(7816),o=r(7206);t.exports=function(t,e){var r={};return e=o(e,3),i(t,(function(t,i,o){n(r,i,e(t,i,o))})),r}},6162:(t,e,r)=>{var n=r(6029),i=r(3325),o=r(6557);t.exports=function(t){return t&&t.length?n(t,o,i):void 0}},8306:(t,e,r)=>{var n=r(3369);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,t.exports=i},3632:(t,e,r)=>{var n=r(6029),i=r(433),o=r(6557);t.exports=function(t){return t&&t.length?n(t,o,i):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),i=r(9152),o=r(5403),a=r(327);t.exports=function(t){return o(t)?n(a(t)):i(t)}},6026:(t,e,r)=>{var n=r(7445)();t.exports=n},9704:(t,e,r)=>{var n=r(2908),i=r(7206),o=r(5076),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))}},9734:(t,e,r)=>{var n=r(1078),i=r(9556),o=r(5976),a=r(6612),u=o((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]]),i(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),i=r(3218);t.exports=function(t,e,r){var o=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return i(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:o,maxWait:e,trailing:a})}},8601:(t,e,r)=>{var n=r(4841),i=1/0;t.exports=function(t){return t?(t=n(t))===i||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),i=r(3218),o=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(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(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),i=r(5652);t.exports=function(t,e){return t&&t.length?i(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 i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,r,i,o,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:o,resetWarningCache:i};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"},6871:(t,e,r)=>{"use strict";function n(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function i(t){this.setState(function(e){var r=this.constructor.getDerivedStateFromProps(t,e);return null!=r?r:null}.bind(this))}function o(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=i),"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=o;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,i.__suppressDeprecationWarning=!0,o.__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,i.default)(t,e)||("string"==typeof t.className?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))};var i=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)),i=u(r(294)),o=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,i.default)(t,e)}))},f=function(t){var e,r;function n(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];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,i=e.getClassNames("enter").doneClassName,o=r?n+" "+i:i;e.removeClasses(t,r?"appear":"enter"),l(t,o),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,i=n?(n&&r?r+"-":"")+t:r[t];return{className:i,activeClassName:n?i+"-active":r[t+"Active"],doneClassName:n?i+"-done":r[t+"Done"]}},e}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i=n.prototype;return i.removeClasses=function(t,e){var r=this.getClassNames(e),n=r.className,i=r.activeClassName,o=r.doneClassName;n&&s(t,n),i&&s(t,i),o&&s(t,o)},i.reflowAndAddClass=function(t,e){e&&(t&&t.scrollTop,l(t,e))},i.render=function(){var t=c({},this.props);return delete t.classNames,o.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}(o.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)),i=r(1533),o=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),i=0;i<r;i++)n[i]=arguments[i];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 o,a=this.props.children,u=n.default.Children.toArray(a)[e];u.props[t]&&(o=u.props)[t].apply(o,r),this.props[t]&&this.props[t]((0,i.findDOMNode)(this))},u.render=function(){var t=this.props,e=t.children,r=t.in,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,["children","in"]),a=n.default.Children.toArray(e),u=a[0],c=a[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,n.default.createElement(o.default,i,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)),i=u(r(7363)),o=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 i,o=r.transitionGroup,a=o&&!o.isMounting?e.enter:e.appear;return n.appearStatus=null,e.in?a?(i=l,n.appearStatus=s):i=f:i=e.unmountOnExit||e.mountOnEnter?c:l,n.state={status:i},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=o.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,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,o=this.getTimeouts(),a=i?o.appear:o.enter;e||n?(this.props.onEnter(t,i),this.safeSetState({status:s},(function(){r.props.onEntering(t,i),r.onTransitionEnd(t,a,(function(){r.safeSetState({status:f},(function(){r.props.onEntered(t,i)}))}))}))):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,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(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 o=i.default.Children.only(r);return i.default.cloneElement(o,n)},n}(i.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)),i=u(r(7363)),o=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,i=(n=t.call(this,e,r)||this).handleExited.bind(l(l(n)));return n.state={handleExited:i,firstRender:!0},n}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o=n.prototype;return o.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},o.componentDidMount=function(){this.appeared=!0,this.mounted=!0},o.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}},o.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}})))},o.render=function(){var t=this.props,e=t.component,r=t.childFactory,n=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,["component","childFactory"]),o=s(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===e?o:i.default.createElement(e,n,o)},n}(i.default.Component);f.childContextTypes={transitionGroup:n.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(t){return t}};var p=(0,o.polyfill)(f);e.default=p,t.exports=e.default},9469:(t,e,r)=>{"use strict";var n=u(r(2810)),i=u(r(7557)),o=u(r(6165)),a=u(r(2096));function u(t){return t&&t.__esModule?t:{default:t}}t.exports={Transition:a.default,TransitionGroup:o.default,ReplaceTransition:i.default,CSSTransition:n.default}},4474:(t,e,r)=>{"use strict";e.__esModule=!0,e.getChildMapping=i,e.mergeChildMappings=o,e.getInitialChildMapping=function(t,e){return i(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=i(t.children),c=o(e,u);return Object.keys(c).forEach((function(i){var o=c[i];if((0,n.isValidElement)(o)){var l=i in e,s=i in u,f=e[i],p=(0,n.isValidElement)(f)&&!f.props.in;!s||l&&!p?s||!l||p?s&&l&&(0,n.isValidElement)(f)&&(c[i]=(0,n.cloneElement)(o,{onExited:r.bind(null,o),in:f.props.in,exit:a(o,"exit",t),enter:a(o,"enter",t)})):c[i]=(0,n.cloneElement)(o,{in:!1}):c[i]=(0,n.cloneElement)(o,{onExited:r.bind(null,o),in:!0,exit:a(o,"exit",t),enter:a(o,"enter",t)})}})),c};var n=r(7363);function i(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 o(t,e){function r(r){return r in e?e[r]:t[r]}t=t||{},e=e||{};var n,i=Object.create(null),o=[];for(var a in t)a in e?o.length&&(i[a]=o,o=[]):o.push(a);var u={};for(var c in e){if(i[c])for(n=0;n<i[c].length;n++){var l=i[c][n];u[i[c][n]]=r(l)}u[c]=r(c)}for(n=0;n<o.length;n++)u[o[n]]=r(o[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},2894:(t,e)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=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 o: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 i:return e}}}function O(t){return w(t)===f}e.isFragment=function(t){return w(t)===o}},8508:(t,e,r)=>{"use strict";t.exports=r(2894)},4275:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=u(r(8336)),i=r(210),o=u(r(174)),a=u(r(3697));function u(t){return t&&t.__esModule?t:{default:t}}var c=/((?:\-[a-z]+\-)?calc)/;e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,n.default)(t).walk((function(t){if("function"===t.type&&c.test(t.value)){var r=n.default.stringify(t.nodes);if(!(r.indexOf("constant")>=0||r.indexOf("env")>=0)){var u=i.parser.parse(r),l=(0,o.default)(u,e);t.type="word",t.value=(0,a.default)(t.value,l,e)}}}),!0).toString()},t.exports=e.default},460:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,i=r(3258),o=(n=i)&&n.__esModule?n:{default:n};e.default=function(t,e,r){switch(t.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(t,e,r){e.type===t.type&&(e={type:t.type,value:(0,o.default)(e.value,e.unit,t.unit,r),unit:t.unit});return{left:t,right:e}}(t,e,r);default:return{left:t,right:e}}},t.exports=e.default},174:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.flip=l;var n,i=r(460),o=(n=i)&&n.__esModule?n:{default:n};function a(t,e){return"MathExpression"===t.type?function(t,e){switch(t=function(t,e){var r=(0,o.default)(t.left,t.right,e),n=a(r.left,e),i=a(r.right,e);"MathExpression"===n.type&&"MathExpression"===i.type&&("/"===n.operator&&"*"===i.operator||"-"===n.operator&&"+"===i.operator||"*"===n.operator&&"/"===i.operator||"+"===n.operator&&"-"===i.operator)&&(u(n.right,i.right)?r=(0,o.default)(n.left,i.left,e):u(n.right,i.left)&&(r=(0,o.default)(n.left,i.right,e)),n=a(r.left,e),i=a(r.right,e));return t.left=n,t.right=i,t}(t,e),t.operator){case"+":case"-":return function(t,e){var r=t,n=r.left,i=r.right,o=r.operator;if("CssVariable"===n.type||"CssVariable"===i.type)return t;if(0===i.value)return n;if(0===n.value&&"+"===o)return i;if(0===n.value&&"-"===o)return s(i);n.type===i.type&&c(n.type)&&((t=Object.assign({},n)).value="+"===o?n.value+i.value:n.value-i.value);if(c(n.type)&&("+"===i.operator||"-"===i.operator)&&"MathExpression"===i.type){if(n.type===i.left.type)return(t=Object.assign({},t)).left=a({type:"MathExpression",operator:o,left:n,right:i.left},e),t.right=i.right,t.operator="-"===o?l(i.operator):i.operator,a(t,e);if(n.type===i.right.type)return(t=Object.assign({},t)).left=a({type:"MathExpression",operator:"-"===o?l(i.operator):i.operator,left:n,right:i.right},e),t.right=i.left,a(t,e)}if("MathExpression"===n.type&&("+"===n.operator||"-"===n.operator)&&c(i.type)){if(i.type===n.left.type)return(t=Object.assign({},n)).left=a({type:"MathExpression",operator:o,left:n.left,right:i},e),a(t,e);if(i.type===n.right.type)return t=Object.assign({},n),"-"===n.operator?(t.right=a({type:"MathExpression",operator:"-"===o?"+":"-",left:i,right:n.right},e),t.operator="-"===o?"-":"+"):t.right=a({type:"MathExpression",operator:o,left:n.right,right:i},e),t.right.value<0&&(t.right.value*=-1,t.operator="-"===t.operator?"+":"-"),a(t,e)}return t}(t,e);case"/":return function(t,e){if(!c(t.right.type))return t;if("Value"!==t.right.type)throw new Error('Cannot divide by "'+t.right.unit+'", number expected');if(0===t.right.value)throw new Error("Cannot divide by zero");if("MathExpression"===t.left.type)return c(t.left.left.type)&&c(t.left.right.type)?(t.left.left.value/=t.right.value,t.left.right.value/=t.right.value,a(t.left,e)):t;if(c(t.left.type))return t.left.value/=t.right.value,t.left;return t}(t,e);case"*":return function(t){if("MathExpression"===t.left.type&&"Value"===t.right.type){if(c(t.left.left.type)&&c(t.left.right.type))return t.left.left.value*=t.right.value,t.left.right.value*=t.right.value,t.left}else{if(c(t.left.type)&&"Value"===t.right.type)return t.left.value*=t.right.value,t.left;if("Value"===t.left.type&&"MathExpression"===t.right.type){if(c(t.right.left.type)&&c(t.right.right.type))return t.right.left.value*=t.left.value,t.right.right.value*=t.left.value,t.right}else if("Value"===t.left.type&&c(t.right.type))return t.right.value*=t.left.value,t.right}return t}(t)}return t}(t,e):"Calc"===t.type?a(t.value,e):t}function u(t,e){return t.type===e.type&&t.value===e.value}function c(t){switch(t){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function l(t){return"+"===t?"-":"+"}function s(t){return c(t.type)?t.value=-t.value:"MathExpression"==t.type&&(t.left=s(t.left),t.right=s(t.right)),t}e.default=a},3697:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){var n=a(e,r);return"MathExpression"===e.type&&(n=t+"("+n+")"),n};var n=r(174),i={"*":0,"/":0,"+":1,"-":1};function o(t,e){if(!1!==e){var r=Math.pow(10,e);return Math.round(t*r)/r}return t}function a(t,e){switch(t.type){case"MathExpression":var r=t.left,u=t.right,c=t.operator,l="";return"MathExpression"===r.type&&i[c]<i[r.operator]?l+="("+a(r,e)+")":l+=a(r,e),l+=" "+t.operator+" ","MathExpression"===u.type&&i[c]<i[u.operator]?l+="("+a(u,e)+")":"MathExpression"===u.type&&"-"===c&&["+","-"].includes(u.operator)?(u.operator=(0,n.flip)(u.operator),l+=a(u,e)):l+=a(u,e),l;case"Value":return o(t.value,e);case"CssVariable":return t.fallback?"var("+t.value+", "+a(t.fallback,e)+")":"var("+t.value+")";case"Calc":return t.prefix?"-"+t.prefix+"-calc("+a(t.value,e)+")":"calc("+a(t.value,e)+")";default:return o(t.value,e)+t.unit}}t.exports=e.default},210:(t,e)=>{var r=function(){function t(t,e){var r;if(Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonParserError"}),null==t&&(t="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:t}),this.hash=e,e&&e.exception instanceof Error){var n=e.exception;this.message=n.message||t,r=n.stack}r||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):r=new Error(t).stack),r&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:r})}function e(t,e,r){r=r||0;for(var n=0;n<e;n++)this.push(t),t+=r}function r(t,e){for(e+=t=this.length-t;t<e;t++)this.push(this[t])}function n(t){for(var e=[],r=0,n=t.length;r<n;r++){var i=t[r];"function"==typeof i?(r++,i.apply(e,t[r])):e.push(i)}return e}"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(t.prototype,Error.prototype):t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.name="JisonParserError";var i={trace:function(){},JisonParserError:t,yy:{},options:{type:"lalr",hasPartialLrUpgradeOnConflict:!0,errorRecoveryTokenDiscardCount:3},symbols_:{$accept:0,$end:1,ADD:3,ANGLE:16,CHS:22,COMMA:14,CSS_CPROP:13,CSS_VAR:12,DIV:6,EMS:20,EOF:1,EXS:21,FREQ:18,LENGTH:15,LPAREN:7,MUL:5,NESTED_CALC:9,NUMBER:11,PERCENTAGE:28,PREFIX:10,REMS:23,RES:19,RPAREN:8,SUB:4,TIME:17,VHS:24,VMAXS:27,VMINS:26,VWS:25,css_value:33,css_variable:32,error:2,expression:29,math_expression:30,value:31},terminals_:{1:"EOF",2:"error",3:"ADD",4:"SUB",5:"MUL",6:"DIV",7:"LPAREN",8:"RPAREN",9:"NESTED_CALC",10:"PREFIX",11:"NUMBER",12:"CSS_VAR",13:"CSS_CPROP",14:"COMMA",15:"LENGTH",16:"ANGLE",17:"TIME",18:"FREQ",19:"RES",20:"EMS",21:"EXS",22:"CHS",23:"REMS",24:"VHS",25:"VWS",26:"VMINS",27:"VMAXS",28:"PERCENTAGE"},TERROR:2,EOF:1,originalQuoteName:null,originalParseError:null,cleanupAfterParse:null,constructParseErrorInfo:null,yyMergeLocationInfo:null,__reentrant_call_depth:0,__error_infos:[],__error_recovery_infos:[],quoteName:function(t){return'"'+t+'"'},getSymbolName:function(t){if(this.terminals_[t])return this.terminals_[t];var e=this.symbols_;for(var r in e)if(e[r]===t)return r;return null},describeSymbol:function(t){if(t!==this.EOF&&this.terminal_descriptions_&&this.terminal_descriptions_[t])return this.terminal_descriptions_[t];if(t===this.EOF)return"end of input";var e=this.getSymbolName(t);return e?this.quoteName(e):null},collect_expected_token_set:function(t,e){var r=this.TERROR,n=[],i={};if(!e&&this.state_descriptions_&&this.state_descriptions_[t])return[this.state_descriptions_[t]];for(var o in this.table[t])if((o=+o)!==r){var a=e?o:this.describeSymbol(o);a&&!i[a]&&(n.push(a),i[a]=!0)}return n},productions_:function(t){for(var e=[],r=t.pop,n=t.rule,i=0,o=r.length;i<o;i++)e.push([r[i],n[i]]);return e}({pop:n([29,e,[30,10],31,31,32,32,e,[33,15]]),rule:n([2,e,[3,5],4,7,e,[1,4],2,4,6,e,[1,14],2])}),performAction:function(t,e,r){var n=this.yy;n.parser,n.lexer;switch(t){case 0:case 6:this.$=r[e-1];break;case 1:return this.$=r[e-1],r[e-1];case 2:case 3:case 4:case 5:this.$={type:"MathExpression",operator:r[e-1],left:r[e-2],right:r[e]};break;case 7:this.$={type:"Calc",value:r[e-1]};break;case 8:this.$={type:"Calc",value:r[e-1],prefix:r[e-5]};break;case 9:case 10:case 11:this.$=r[e];break;case 12:this.$={type:"Value",value:parseFloat(r[e])};break;case 13:this.$={type:"Value",value:-1*parseFloat(r[e])};break;case 14:this.$={type:"CssVariable",value:r[e-1]};break;case 15:this.$={type:"CssVariable",value:r[e-3],fallback:r[e-1]};break;case 16:this.$={type:"LengthValue",value:parseFloat(r[e]),unit:/[a-z]+/.exec(r[e])[0]};break;case 17:this.$={type:"AngleValue",value:parseFloat(r[e]),unit:/[a-z]+/.exec(r[e])[0]};break;case 18:this.$={type:"TimeValue",value:parseFloat(r[e]),unit:/[a-z]+/.exec(r[e])[0]};break;case 19:this.$={type:"FrequencyValue",value:parseFloat(r[e]),unit:/[a-z]+/.exec(r[e])[0]};break;case 20:this.$={type:"ResolutionValue",value:parseFloat(r[e]),unit:/[a-z]+/.exec(r[e])[0]};break;case 21:this.$={type:"EmValue",value:parseFloat(r[e]),unit:"em"};break;case 22:this.$={type:"ExValue",value:parseFloat(r[e]),unit:"ex"};break;case 23:this.$={type:"ChValue",value:parseFloat(r[e]),unit:"ch"};break;case 24:this.$={type:"RemValue",value:parseFloat(r[e]),unit:"rem"};break;case 25:this.$={type:"VhValue",value:parseFloat(r[e]),unit:"vh"};break;case 26:this.$={type:"VwValue",value:parseFloat(r[e]),unit:"vw"};break;case 27:this.$={type:"VminValue",value:parseFloat(r[e]),unit:"vmin"};break;case 28:this.$={type:"VmaxValue",value:parseFloat(r[e]),unit:"vmax"};break;case 29:this.$={type:"PercentageValue",value:parseFloat(r[e]),unit:"%"};break;case 30:var i=r[e];i.value*=-1,this.$=i}},table:function(t){for(var e=[],r=t.len,n=t.symbol,i=t.type,o=t.state,a=t.mode,u=t.goto,c=0,l=r.length;c<l;c++){for(var s=r[c],f={},p=0;p<s;p++){var h=n.shift();switch(i.shift()){case 2:f[h]=[a.shift(),u.shift()];break;case 0:f[h]=o.shift();break;default:f[h]=[3]}}e.push(f)}return e}({len:n([24,1,5,23,1,18,e,[0,3],1,e,[0,16],e,[23,4],r,[28,3],0,0,16,1,6,6,e,[0,3],5,1,2,r,[37,3],r,[20,3],5,0,0]),symbol:n([4,7,9,11,12,e,[15,19,1],1,1,e,[3,4,1],r,[30,19],r,[29,4],7,4,10,11,r,[22,14],r,[19,3],r,[43,22],r,[23,69],r,[139,4],8,r,[51,24],4,r,[138,15],13,r,[186,5],8,r,[6,6],r,[5,5],9,8,14,r,[159,47],r,[60,10]]),type:n([e,[2,19],e,[0,5],1,e,[2,24],e,[0,4],r,[22,19],r,[43,42],r,[23,70],r,[28,25],r,[45,25],r,[113,54]]),state:n([1,2,8,6,7,30,r,[4,3],33,37,r,[5,3],38,r,[4,3],39,r,[4,3],40,r,[4,3],42,r,[21,4],50,r,[5,3],51,r,[4,3]]),mode:n([e,[1,179],e,[2,3],r,[5,5],r,[6,4],e,[1,57]]),goto:n([5,3,4,24,e,[9,15,1],e,[25,5,1],r,[24,19],31,35,32,34,r,[18,14],36,r,[38,19],r,[19,57],r,[118,4],41,r,[24,19],43,35,r,[16,14],44,e,[2,3],28,29,2,e,[3,3],28,29,3,r,[53,4],e,[45,5,1],r,[100,42],52,r,[5,4],53])}),defaultActions:function(t){for(var e={},r=t.idx,n=t.goto,i=0,o=r.length;i<o;i++){e[r[i]]=n[i]}return e}({idx:n([6,7,8,e,[10,16,1],33,34,39,40,41,45,47,52,53]),goto:n([9,10,11,e,[16,14,1],12,1,30,13,e,[4,4,1],14,15,8])}),parseError:function(t,e,r){if(!e.recoverable)throw"function"==typeof this.trace&&this.trace(t),r||(r=this.JisonParserError),new r(t,e);"function"==typeof this.trace&&this.trace(t),e.destroy()},parse:function(t){var e,r=this,n=new Array(128),i=new Array(128),o=new Array(128),a=this.table,u=0,c=0,l=(this.TERROR,this.EOF),s=(this.options.errorRecoveryTokenDiscardCount,[0,54]);e=this.__lexer__?this.__lexer__:this.__lexer__=Object.create(this.lexer);var f={parseError:void 0,quoteName:void 0,lexer:void 0,parser:void 0,pre_parse:void 0,post_parse:void 0,pre_lex:void 0,post_lex:void 0};function p(){var t=e.fastLex();return"number"!=typeof t&&(t=r.symbols_[t]||t),t||l}"function"!=typeof assert||assert,this.yyGetSharedState=function(){return f},function(t,e){for(var r in e)void 0===t[r]&&Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}(f,this.yy),f.lexer=e,f.parser=this,"function"==typeof f.parseError?this.parseError=function(t,e,r){return r||(r=this.JisonParserError),f.parseError.call(this,t,e,r)}:this.parseError=this.originalParseError,"function"==typeof f.quoteName?this.quoteName=function(t){return f.quoteName.call(this,t)}:this.quoteName=this.originalQuoteName,this.cleanupAfterParse=function(t,r,a){var c,l;r&&((f.post_parse||this.post_parse)&&(l=this.constructParseErrorInfo(null,null,null,!1)),f.post_parse&&void 0!==(c=f.post_parse.call(this,f,t,l))&&(t=c),this.post_parse&&void 0!==(c=this.post_parse.call(this,f,t,l))&&(t=c),l&&l.destroy&&l.destroy());if(this.__reentrant_call_depth>1)return t;if(e.cleanupAfterLex&&e.cleanupAfterLex(a),f&&(f.lexer=void 0,f.parser=void 0,e.yy===f&&(e.yy=void 0)),f=void 0,this.parseError=this.originalParseError,this.quoteName=this.originalQuoteName,n.length=0,i.length=0,o.length=0,u=0,!a){for(var s=this.__error_infos.length-1;s>=0;s--){var p=this.__error_infos[s];p&&"function"==typeof p.destroy&&p.destroy()}this.__error_infos.length=0}return t},this.constructParseErrorInfo=function(t,r,a,l){var s={errStr:t,exception:r,text:e.match,value:e.yytext,token:this.describeSymbol(c)||c,token_id:c,line:e.yylineno,expected:a,recoverable:l,state:h,action:d,new_state:x,symbol_stack:n,state_stack:i,value_stack:o,stack_pointer:u,yy:f,lexer:e,parser:this,destroy:function(){var t=!!this.recoverable;for(var e in this)this.hasOwnProperty(e)&&"object"==typeof e&&(this[e]=void 0);this.recoverable=t}};return this.__error_infos.push(s),s};var h,d,y,v,m,g,b,x,w=function(){var t=e.lex();return"number"!=typeof t&&(t=r.symbols_[t]||t),t||l},O={$:!0,_$:void 0,yy:f},_=!1;try{if(this.__reentrant_call_depth++,e.setInput(t,f),"function"==typeof e.canIUse)e.canIUse().fastLex&&(w=p);for(o[u]=null,i[u]=0,n[u]=0,++u,this.pre_parse&&this.pre_parse.call(this,f),f.pre_parse&&f.pre_parse.call(this,f),x=i[u-1];;){if(h=x,this.defaultActions[h])d=2,x=this.defaultActions[h];else if(c||(c=w()),v=a[h]&&a[h][c]||s,x=v[1],!(d=v[0])){var S,E=this.describeSymbol(c)||c,k=this.collect_expected_token_set(h);S="number"==typeof e.yylineno?"Parse error on line "+(e.yylineno+1)+": ":"Parse error: ","function"==typeof e.showPosition&&(S+="\n"+e.showPosition(69,10)+"\n"),k.length?S+="Expecting "+k.join(", ")+", got unexpected "+E:S+="Unexpected "+E,m=this.constructParseErrorInfo(S,null,k,!1),void 0!==(y=this.parseError(m.errStr,m,this.JisonParserError))&&(_=y);break}switch(d){default:if(d instanceof Array){m=this.constructParseErrorInfo("Parse Error: multiple actions possible at state: "+h+", token: "+c,null,null,!1),void 0!==(y=this.parseError(m.errStr,m,this.JisonParserError))&&(_=y);break}m=this.constructParseErrorInfo("Parsing halted. No viable error recovery approach available due to internal system failure.",null,null,!1),void 0!==(y=this.parseError(m.errStr,m,this.JisonParserError))&&(_=y);break;case 1:n[u]=c,o[u]=e.yytext,i[u]=x,++u,c=0;continue;case 2:if(g=(b=this.productions_[x-1])[1],void 0!==(y=this.performAction.call(O,x,u-1,o))){_=y;break}u-=g;var j=b[0];n[u]=j,o[u]=O.$,x=a[i[u-1]][j],i[u]=x,++u;continue;case 3:-2!==u&&(_=!0,u--,void 0!==o[u]&&(_=o[u]))}break}}catch(t){if(t instanceof this.JisonParserError)throw t;if(e&&"function"==typeof e.JisonLexerError&&t instanceof e.JisonLexerError)throw t;m=this.constructParseErrorInfo("Parsing aborted due to exception.",t,null,!1),_=!1,void 0!==(y=this.parseError(m.errStr,m,this.JisonParserError))&&(_=y)}finally{_=this.cleanupAfterParse(_,!0,!0),this.__reentrant_call_depth--}return _}};i.originalParseError=i.parseError,i.originalQuoteName=i.quoteName;var o=function(){function t(t,e){var r;if(Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonLexerError"}),null==t&&(t="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:t}),this.hash=e,e&&e.exception instanceof Error){var n=e.exception;this.message=n.message||t,r=n.stack}r||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):r=new Error(t).stack),r&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:r})}"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(t.prototype,Error.prototype):t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.name="JisonLexerError";var e={EOF:1,ERROR:2,__currentRuleSet__:null,__error_infos:[],__decompressed:!1,done:!1,_backtrack:!1,_input:"",_more:!1,_signaled_error_token:!1,conditionStack:[],match:"",matched:"",matches:!1,yytext:"",offset:0,yyleng:0,yylineno:0,yylloc:null,constructLexErrorInfo:function(t,e,r){if(t=""+t,null==r&&(r=!(t.indexOf("\n")>0&&t.indexOf("^")>0)),this.yylloc&&r)if("function"==typeof this.prettyPrintRange){this.prettyPrintRange(this.yylloc);/\n\s*$/.test(t)||(t+="\n"),t+="\n Erroneous area:\n"+this.prettyPrintRange(this.yylloc)}else if("function"==typeof this.showPosition){var n=this.showPosition();n&&(t.length&&"\n"!==t[t.length-1]&&"\n"!==n[0]?t+="\n"+n:t+=n)}var i={errStr:t,recoverable:!!e,text:this.match,token:null,line:this.yylineno,loc:this.yylloc,yy:this.yy,lexer:this,destroy:function(){var t=!!this.recoverable;for(var e in this)this.hasOwnProperty(e)&&"object"==typeof e&&(this[e]=void 0);this.recoverable=t}};return this.__error_infos.push(i),i},parseError:function(t,e,r){if(r||(r=this.JisonLexerError),this.yy){if(this.yy.parser&&"function"==typeof this.yy.parser.parseError)return this.yy.parser.parseError.call(this,t,e,r)||this.ERROR;if("function"==typeof this.yy.parseError)return this.yy.parseError.call(this,t,e,r)||this.ERROR}throw new r(t,e)},yyerror:function(t){var e="";this.yylloc&&(e=" on line "+(this.yylineno+1));var r=this.constructLexErrorInfo("Lexical error"+e+": "+t,this.options.lexerErrorsAreRecoverable),n=Array.prototype.slice.call(arguments,1);return n.length&&(r.extra_error_attributes=n),this.parseError(r.errStr,r,this.JisonLexerError)||this.ERROR},cleanupAfterLex:function(t){if(this.setInput("",{}),!t){for(var e=this.__error_infos.length-1;e>=0;e--){var r=this.__error_infos[e];r&&"function"==typeof r.destroy&&r.destroy()}this.__error_infos.length=0}return this},clear:function(){this.yytext="",this.yyleng=0,this.match="",this.matches=!1,this._more=!1,this._backtrack=!1;var t=this.yylloc?this.yylloc.last_column:0;this.yylloc={first_line:this.yylineno+1,first_column:t,last_line:this.yylineno+1,last_column:t,range:[this.offset,this.offset]}},setInput:function(t,e){if(this.yy=e||this.yy||{},!this.__decompressed){for(var r=this.rules,n=0,i=r.length;n<i;n++){"number"==typeof(p=r[n])&&(r[n]=r[p])}var o=this.conditions;for(var a in o){var u=o[a],c=u.rules,l=(i=c.length,new Array(i+1)),s=new Array(i+1);for(n=0;n<i;n++){var f=c[n],p=r[f];l[n+1]=p,s[n+1]=f}u.rules=s,u.__rule_regexes=l,u.__rule_count=i}this.__decompressed=!0}return this._input=t||"",this.clear(),this._signaled_error_token=!1,this.done=!1,this.yylineno=0,this.matched="",this.conditionStack=["INITIAL"],this.__currentRuleSet__=null,this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]},this.offset=0,this},editRemainingInput:function(t,e){var r=t.call(this,this._input,e);return"string"!=typeof r?r&&(this._input=""+r):this._input=r,this},input:function(){if(!this._input)return null;var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=1,r=!1;if("\n"===t)r=!0;else if("\r"===t){r=!0;var n=this._input[1];"\n"===n&&(e++,t+=n,this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n,this.yylloc.range[1]++)}return r?(this.yylineno++,this.yylloc.last_line++,this.yylloc.last_column=0):this.yylloc.last_column++,this.yylloc.range[1]++,this._input=this._input.slice(e),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);if(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.yyleng=this.yytext.length,this.offset-=e,this.match=this.match.substr(0,this.match.length-e),this.matched=this.matched.substr(0,this.matched.length-e),r.length>1){this.yylineno-=r.length-1,this.yylloc.last_line=this.yylineno+1;var n=this.match,i=n.split(/(?:\r\n?|\n)/g);1===i.length&&(i=(n=this.matched).split(/(?:\r\n?|\n)/g)),this.yylloc.last_column=i[i.length-1].length}else this.yylloc.last_column-=e;return this.yylloc.range[1]=this.yylloc.range[0]+this.yyleng,this.done=!1,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else{var t="";this.yylloc&&(t=" on line "+(this.yylineno+1));var e=this.constructLexErrorInfo("Lexical error"+t+": You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).",!1);this._signaled_error_token=this.parseError(e.errStr,e,this.JisonLexerError)||this.ERROR}return this},less:function(t){return this.unput(this.match.slice(t))},pastInput:function(t,e){var r=this.matched.substring(0,this.matched.length-this.match.length);t<0?t=r.length:t||(t=20),e<0?e=r.length:e||(e=1);var n=(r=r.substr(2*-t-2)).replace(/\r\n|\r/g,"\n").split("\n");return(r=(n=n.slice(-e)).join("\n")).length>t&&(r="..."+r.substr(-t)),r},upcomingInput:function(t,e){var r=this.match;t<0?t=r.length+this._input.length:t||(t=20),e<0?e=t:e||(e=1),r.length<2*t+2&&(r+=this._input.substring(0,2*t+2));var n=r.replace(/\r\n|\r/g,"\n").split("\n");return(r=(n=n.slice(0,e)).join("\n")).length>t&&(r=r.substring(0,t)+"..."),r},showPosition:function(t,e){var r=this.pastInput(t).replace(/\s/g," "),n=new Array(r.length+1).join("-");return r+this.upcomingInput(e).replace(/\s/g," ")+"\n"+n+"^"},deriveLocationInfo:function(t,e,r,n){var i={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]};return t&&(i.first_line=0|t.first_line,i.last_line=0|t.last_line,i.first_column=0|t.first_column,i.last_column=0|t.last_column,t.range&&(i.range[0]=0|t.range[0],i.range[1]=0|t.range[1])),(i.first_line<=0||i.last_line<i.first_line)&&(i.first_line<=0&&e&&(i.first_line=0|e.last_line,i.first_column=0|e.last_column,e.range&&(i.range[0]=0|t.range[1])),(i.last_line<=0||i.last_line<i.first_line)&&r&&(i.last_line=0|r.first_line,i.last_column=0|r.first_column,r.range&&(i.range[1]=0|t.range[0])),i.first_line<=0&&n&&(i.last_line<=0||n.last_line<=i.last_line)&&(i.first_line=0|n.first_line,i.first_column=0|n.first_column,n.range&&(i.range[0]=0|n.range[0])),i.last_line<=0&&n&&(i.first_line<=0||n.first_line>=i.first_line)&&(i.last_line=0|n.last_line,i.last_column=0|n.last_column,n.range&&(i.range[1]=0|n.range[1]))),i.last_line<=0&&(i.first_line<=0?(i.first_line=this.yylloc.first_line,i.last_line=this.yylloc.last_line,i.first_column=this.yylloc.first_column,i.last_column=this.yylloc.last_column,i.range[0]=this.yylloc.range[0],i.range[1]=this.yylloc.range[1]):(i.last_line=this.yylloc.last_line,i.last_column=this.yylloc.last_column,i.range[1]=this.yylloc.range[1])),i.first_line<=0&&(i.first_line=i.last_line,i.first_column=0,i.range[1]=i.range[0]),i.first_column<0&&(i.first_column=0),i.last_column<0&&(i.last_column=i.first_column>0?i.first_column:80),i},prettyPrintRange:function(t,e,r){t=this.deriveLocationInfo(t,e,r);var n=(this.matched+this._input).split("\n"),i=Math.max(1,e?e.first_line:t.first_line-3),o=Math.max(1,r?r.last_line:t.last_line+1),a=1+Math.log10(1|o)|0,u=new Array(a).join(" "),c=[],l=n.slice(i-1,o+1).map((function(e,r){var n=r+i,o=(u+n).substr(-a)+": "+e,l=new Array(a+1).join("^"),s=3,f=0;(n===t.first_line?(s+=t.first_column,f=Math.max(2,(n===t.last_line?t.last_column:e.length)-t.first_column+1)):n===t.last_line?f=Math.max(2,t.last_column+1):n>t.first_line&&n<t.last_line&&(f=Math.max(2,e.length+1)),f)&&(o+="\n"+l+new Array(s).join(".")+new Array(f).join("^"),e.trim().length>0&&c.push(r));return o=o.replace(/\t/g," ")}));if(c.length>4){var s=c[1]+1,f=c[c.length-2]-1,p=new Array(a+1).join(" ")+" (...continued...)";p+="\n"+new Array(a+1).join("-")+" (---------------)",l.splice(s,f-s+1,p)}return l.join("\n")},describeYYLLOC:function(t,e){var r,n=t.first_line,i=t.last_line,o=t.first_column,a=t.last_column;if(0===i-n?(r="line "+n+", ",r+=a-o<=1?"column "+o:"columns "+o+" .. "+a):r="lines "+n+"(column "+o+") .. "+i+"(column "+a+")",t.range&&e){var u=t.range[0],c=t.range[1]-1;r+=c<=u?" {String Offset: "+u+"}":" {String Offset range: "+u+" .. "+c+"}"}return r},test_match:function(t,e){var r,n,i,o,a;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.yylloc.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column,range:this.yylloc.range.slice(0)},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done}),a=(o=t[0]).length,(n=o.split(/(?:\r\n?|\n)/g)).length>1?(this.yylineno+=n.length-1,this.yylloc.last_line=this.yylineno+1,this.yylloc.last_column=n[n.length-1].length):this.yylloc.last_column+=a,this.yytext+=o,this.match+=o,this.matched+=o,this.matches=t,this.yyleng=this.yytext.length,this.yylloc.range[1]+=a,this.offset+=a,this._more=!1,this._backtrack=!1,this._input=this._input.slice(a),r=this.performAction.call(this,this.yy,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var u in i)this[u]=i[u];return this.__currentRuleSet__=null,!1}return!!this._signaled_error_token&&(r=this._signaled_error_token,this._signaled_error_token=!1,r)},next:function(){if(this.done)return this.clear(),this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||this.clear();var i=this.__currentRuleSet__;if(!(i||(i=this.__currentRuleSet__=this._currentRules())&&i.rules)){var o="";this.options.trackPosition&&(o=" on line "+(this.yylineno+1));var a=this.constructLexErrorInfo("Internal lexer engine error"+o+': The lex grammar programmer pushed a non-existing condition name "'+this.topState()+'"; this is a fatal error and should be reported to the application programmer team!',!1);return this.parseError(a.errStr,a,this.JisonLexerError)||this.ERROR}for(var u=i.rules,c=i.__rule_regexes,l=i.__rule_count,s=1;s<=l;s++)if((r=this._input.match(c[s]))&&(!e||r[0].length>e[0].length)){if(e=r,n=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,u[s])))return t;if(this._backtrack){e=void 0;continue}return!1}if(!this.options.flex)break}if(e)return!1!==(t=this.test_match(e,u[n]))&&t;if(this._input){o="";this.options.trackPosition&&(o=" on line "+(this.yylineno+1));a=this.constructLexErrorInfo("Lexical error"+o+": Unrecognized text.",this.options.lexerErrorsAreRecoverable);var f=this._input,p=this.topState(),h=this.conditionStack.length;return(t=this.parseError(a.errStr,a,this.JisonLexerError)||this.ERROR)===this.ERROR&&(this.matches||f!==this._input||p!==this.topState()||h!==this.conditionStack.length||this.input()),t}return this.done=!0,this.clear(),this.EOF},lex:function(){var t;for("function"==typeof this.pre_lex&&(t=this.pre_lex.call(this,0)),"function"==typeof this.options.pre_lex&&(t=this.options.pre_lex.call(this,t)||t),this.yy&&"function"==typeof this.yy.pre_lex&&(t=this.yy.pre_lex.call(this,t)||t);!t;)t=this.next();return this.yy&&"function"==typeof this.yy.post_lex&&(t=this.yy.post_lex.call(this,t)||t),"function"==typeof this.options.post_lex&&(t=this.options.post_lex.call(this,t)||t),"function"==typeof this.post_lex&&(t=this.post_lex.call(this,t)||t),t},fastLex:function(){for(var t;!t;)t=this.next();return t},canIUse:function(){return{fastLex:!("function"==typeof this.pre_lex||"function"==typeof this.options.pre_lex||this.yy&&"function"==typeof this.yy.pre_lex||this.yy&&"function"==typeof this.yy.post_lex||"function"==typeof this.options.post_lex||"function"==typeof this.post_lex)&&"function"==typeof this.fastLex}},begin:function(t){return this.pushState(t)},pushState:function(t){return this.conditionStack.push(t),this.__currentRuleSet__=null,this},popState:function(){return this.conditionStack.length-1>0?(this.__currentRuleSet__=null,this.conditionStack.pop()):this.conditionStack[0]},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL},stateStackSize:function(){return this.conditionStack.length},options:{trackPosition:!0},JisonLexerError:t,performAction:function(t,e,r){if(1!==e)return this.simpleCaseActionClusters[e]},simpleCaseActionClusters:{0:13,2:5,3:6,4:3,5:4,6:15,7:15,8:15,9:15,10:15,11:15,12:16,13:16,14:16,15:16,16:17,17:17,18:18,19:18,20:19,21:19,22:19,23:20,24:21,25:22,26:23,27:25,28:24,29:26,30:27,31:28,32:11,33:9,34:12,35:10,36:7,37:8,38:14,39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return e}();function a(){this.yy={}}return i.lexer=o,a.prototype=i,i.Parser=a,new a}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)}},8336:(t,e,r)=>{var n=r(8219),i=r(6461),o=r(1088);function a(t){return this instanceof a?(this.nodes=n(t),this):new a(t)}a.prototype.toString=function(){return Array.isArray(this.nodes)?o(this.nodes):""},a.prototype.walk=function(t,e){return i(this.nodes,t,e),this},a.unit=r(4386),a.walk=i,a.stringify=o,t.exports=a},8219:t=>{var e="(".charCodeAt(0),r=")".charCodeAt(0),n="'".charCodeAt(0),i='"'.charCodeAt(0),o="\\".charCodeAt(0),a="/".charCodeAt(0),u=",".charCodeAt(0),c=":".charCodeAt(0),l="*".charCodeAt(0);t.exports=function(t){for(var s,f,p,h,d,y,v,m,g=[],b=t,x=0,w=b.charCodeAt(x),O=b.length,_=[{nodes:g}],S=0,E="",k="",j="";x<O;)if(w<=32){s=x;do{s+=1,w=b.charCodeAt(s)}while(w<=32);h=b.slice(x,s),p=g[g.length-1],w===r&&S?j=h:p&&"div"===p.type?p.after=h:w===u||w===c||w===a&&b.charCodeAt(s+1)!==l?k=h:g.push({type:"space",sourceIndex:x,value:h}),x=s}else if(w===n||w===i){s=x,h={type:"string",sourceIndex:x,quote:f=w===n?"'":'"'};do{if(d=!1,~(s=b.indexOf(f,s+1)))for(y=s;b.charCodeAt(y-1)===o;)y-=1,d=!d;else s=(b+=f).length-1,h.unclosed=!0}while(d);h.value=b.slice(x+1,s),g.push(h),x=s+1,w=b.charCodeAt(x)}else if(w===a&&b.charCodeAt(x+1)===l)h={type:"comment",sourceIndex:x},-1===(s=b.indexOf("*/",x))&&(h.unclosed=!0,s=b.length),h.value=b.slice(x+2,s),g.push(h),x=s+2,w=b.charCodeAt(x);else if(w===a||w===u||w===c)h=b[x],g.push({type:"div",sourceIndex:x-k.length,value:h,before:k,after:""}),k="",x+=1,w=b.charCodeAt(x);else if(e===w){s=x;do{s+=1,w=b.charCodeAt(s)}while(w<=32);if(h={type:"function",sourceIndex:x-E.length,value:E,before:b.slice(x+1,s)},x=s,"url"===E&&w!==n&&w!==i){s-=1;do{if(d=!1,~(s=b.indexOf(")",s+1)))for(y=s;b.charCodeAt(y-1)===o;)y-=1,d=!d;else s=(b+=")").length-1,h.unclosed=!0}while(d);v=s;do{v-=1,w=b.charCodeAt(v)}while(w<=32);h.nodes=x!==v+1?[{type:"word",sourceIndex:x,value:b.slice(x,v+1)}]:[],h.unclosed&&v+1!==s?(h.after="",h.nodes.push({type:"space",sourceIndex:v+1,value:b.slice(v+1,s)})):h.after=b.slice(v+1,s),x=s+1,w=b.charCodeAt(x),g.push(h)}else S+=1,h.after="",g.push(h),_.push(h),g=h.nodes=[],m=h;E=""}else if(r===w&&S)x+=1,w=b.charCodeAt(x),m.after=j,j="",S-=1,_.pop(),g=(m=_[S]).nodes;else{s=x;do{w===o&&(s+=1),s+=1,w=b.charCodeAt(s)}while(s<O&&!(w<=32||w===n||w===i||w===u||w===c||w===a||w===e||w===r&&S));h=b.slice(x,s),e===w?E=h:g.push({type:"word",sourceIndex:x,value:h}),x=s}for(x=_.length-1;x;x-=1)_[x].unclosed=!0;return _[0].nodes}},1088:t=>{function e(t,e){var n,i,o=t.type,a=t.value;return e&&void 0!==(i=e(t))?i:"word"===o||"space"===o?a:"string"===o?(n=t.quote||"")+a+(t.unclosed?"":n):"comment"===o?"/*"+a+(t.unclosed?"":"*/"):"div"===o?(t.before||"")+a+(t.after||""):Array.isArray(t.nodes)?(n=r(t.nodes),"function"!==o?n:a+"("+(t.before||"")+n+(t.after||"")+(t.unclosed?"":")")):a}function r(t,r){var n,i;if(Array.isArray(t)){for(n="",i=t.length-1;~i;i-=1)n=e(t[i],r)+n;return n}return e(t,r)}t.exports=r},4386:t=>{var e="-".charCodeAt(0),r="+".charCodeAt(0),n=".".charCodeAt(0),i="e".charCodeAt(0),o="E".charCodeAt(0);t.exports=function(t){for(var a,u=0,c=t.length,l=!1,s=-1,f=!1;u<c;){if((a=t.charCodeAt(u))>=48&&a<=57)f=!0;else if(a===i||a===o){if(s>-1)break;s=u}else if(a===n){if(l)break;l=!0}else{if(a!==r&&a!==e)break;if(0!==u)break}u+=1}return s+1===u&&u--,!!f&&{number:t.slice(0,u),unit:t.slice(u)}}},6461:t=>{t.exports=function t(e,r,n){var i,o,a,u;for(i=0,o=e.length;i<o;i+=1)a=e[i],n||(u=r(a,i,e)),!1!==u&&"function"===a.type&&Array.isArray(a.nodes)&&t(a.nodes,r,n),n&&r(a,i,e)}},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 i=e[n];if(void 0!==i)return i.exports;var o=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.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:()=>A,appUi:()=>N});var n={};r.r(n),r.d(n,{getNewsRobots:()=>R,getTrendKeywords:()=>I,isRefreshingTrendKeywords:()=>L});var i={};r.r(i),r.d(i,{scaleBand:()=>so,scaleDiverging:()=>Ms,scaleDivergingLog:()=>Ts,scaleDivergingPow:()=>Ds,scaleDivergingSqrt:()=>Ns,scaleDivergingSymlog:()=>Cs,scaleIdentity:()=>Ya,scaleImplicit:()=>co,scaleLinear:()=>Ka,scaleLog:()=>iu,scaleOrdinal:()=>lo,scalePoint:()=>po,scalePow:()=>hu,scaleQuantile:()=>Eu,scaleQuantize:()=>ku,scaleRadial:()=>vu,scaleSequential:()=>_s,scaleSequentialLog:()=>Ss,scaleSequentialPow:()=>ks,scaleSequentialQuantile:()=>As,scaleSequentialSqrt:()=>js,scaleSequentialSymlog:()=>Es,scaleSqrt:()=>du,scaleSymlog:()=>cu,scaleThreshold:()=>ju,scaleTime:()=>bs,scaleUtc:()=>xs,tickFormat:()=>qa});const o=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,o.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,o.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,o.select)("rank-math-pro").getTrendKeywords();return(0,u.isUndefined)(e[t])||delete e[t],c("trendKeywords",e)}function p(t){var e=(0,o.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,o.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,o.dispatch)("rank-math").schemaUpdated(!0),(0,o.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 _(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 S(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_(Object(r),!0).forEach((function(e){E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_(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",{}),j={trendKeywords:!1,newsRobots:k.robots,newsKeywords:k.keywords};function A(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,e=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_DATA"===e.type?S(S({},t),{},E({},e.key,e.value)):t}function P(t){return P="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},P(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"!==P(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===P(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,o.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}(0,o.registerStore)("rank-math-pro",{reducer:(0,o.combineReducers)(e),selectors:n,actions:t});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,$=moment;var V=r.n($),H=r(8446),W=r.n(H),q=r(7654),G=r.n(q),K=r(6162),Y=r.n(K),X=r(3560),J=r.n(X),Z=r(7361),Q=r.n(Z),tt=r(4293),et=r.n(tt),rt=r(1469),nt=r.n(rt),it=r(7363),ot=r.n(it),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,i){return t(r,n,i)&&e(r,n,i)}}function dt(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var i=n.cache,o=i.get(e),a=i.get(r);if(o&&a)return o===r&&a===e;i.set(e,r),i.set(r,e);var u=t(e,r,n);return i.delete(e),i.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 _t(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.entries(),u=0;(n=a.next())&&!n.done;){for(var c=e.entries(),l=!1,s=0;(i=c.next())&&!i.done;){var f=n.value,p=f[0],h=f[1],d=i.value,y=d[0],v=d[1];l||o[s]||!(l=r.equals(p,y,u,s,t,e,r)&&r.equals(h,v,p,y,t,e,r))||(o[s]=!0),s++}if(!l)return!1;u++}return!0}function St(t,e,r){var n,i=xt(t),o=i.length;if(xt(e).length!==o)return!1;for(;o-- >0;){if((n=i[o])===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,i,o,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(i=bt(t,n),o=bt(e,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function kt(t,e){return mt(t.valueOf(),e.valueOf())}function jt(t,e){return t.source===e.source&&t.flags===e.flags}function At(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.values();(n=a.next())&&!n.done;){for(var u=e.values(),c=!1,l=0;(i=u.next())&&!i.done;)c||o[l]||!(c=r.equals(n.value,i.value,n.value,i.value,t,e,r))||(o[l]=!0),l++;if(!c)return!1}return!0}function Pt(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,$t=Object.prototype.toString.call.bind(Object.prototype.toString);var Vt=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,i=t.createInternalComparator,o=t.createState,a=t.strict,u=void 0!==a&&a,c=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?Et:wt,areDatesEqual:Ot,areMapsEqual:n?ht(_t,Et):_t,areObjectsEqual:n?Et:St,arePrimitiveWrappersEqual:kt,areRegExpsEqual:jt,areSetsEqual:n?ht(At,Et):At,areTypedArraysEqual:n?Et:Pt};if(r&&(i=Ft({},i,r(i))),e){var o=dt(i.areArraysEqual),a=dt(i.areMapsEqual),u=dt(i.areObjectsEqual),c=dt(i.areSetsEqual);i=Ft({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:u,areSetsEqual:c})}return i}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,i=t.areObjectsEqual,o=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 i(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=$t(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&&i(t,l,s):p===Mt?i(t,l,s):(p===Tt||p===Nt||p===Bt)&&o(t,l,s)}}(c),s=i?i(l):(e=l,function(t,r,n,i,o,a,u){return e(t,r,u)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,i=t.equals,o=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:i,meta:s,strict:o})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return r(t,e,a)}}({circular:n,comparator:l,createState:o,equals:s,strict:u})}function Wt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(i){r<0&&(r=i),i-r>e?(t(i),r=-1):requestAnimationFrame(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 Kt(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 Kt(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 Kt(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 Yt(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var i=Gt(n),o=i[0],a=i.slice(1);return"number"==typeof o?void Wt(r.bind(null,a),o):(r(o),void Wt(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 Xt(t){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xt(t)}function Jt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jt(Object(r),!0).forEach((function(e){Qt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jt(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"!==Xt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Xt(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},ie=function(t,e){return Object.keys(e).reduce((function(r,n){return Zt(Zt({},r),{},Qt({},n,t(n,e[n])))}),{})},oe=function(t){return Object.keys(t).reduce((function(t,e){return Zt(Zt({},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()})),i=e;return te.reduce((function(t,o,a){return r&&(i=e.replace(/(transform|transform-origin)/gim,"".concat(ee[a],"$1"))),Zt(Zt({},t),{},Qt({},o+n,i))}),{})}(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,i,o,a,u=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}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],i=e[1],o=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,i=0,o=1,a=1;break;case"ease":n=.25,i=.1,o=.25,a=1;break;case"ease-in":n=.42,i=0,o=1,a=1;break;case"ease-out":n=.42,i=0,o=.58,a=1;break;case"ease-in-out":n=0,i=0,o=.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],i=c[1],o=c[2],a=c[3]}}[n,o,i,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1}));var l,s,f=de(n,o),p=de(i,a),h=(l=n,s=o,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 i=f(r)-e,o=h(r);if(Math.abs(i-e)<fe||o<fe)return p(r);r=d(r-i/o)}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,i=void 0===n?8:n,o=t.dt,a=void 0===o?17:o,u=function(t,e,n){var o=n+(-(t-e)*r-n*i)*a/1e3,u=n*a/1e3+t;return Math.abs(u-e)<fe&&Math.abs(o)<fe?[e,0]:[u,o]};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 Se(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(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 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,i,o,a,u=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,e)||_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 _e(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 Ee=function(t,e,r){return t+(e-t)*r},ke=function(t){return t.from!==t.to},je=function t(e,r,n){var i=ie((function(t,r){if(ke(r)){var n=Oe(e(r.from,r.to,r.velocity),2),i=n[0],o=n[1];return xe(xe({},r),{},{from:i,velocity:o})}return r}),r);return n<1?ie((function(t,e){return ke(e)?xe(xe({},e),{},{velocity:Ee(e.velocity,i[t].velocity,n),from:Ee(e.from,i[t].from,n)}):e}),r):t(e,i,n-1)};const Ae=function(t,e,r,n,i){var o,a,u,c,l=(o=t,a=e,[Object.keys(o),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 o=(n-u)/r.dt;f=je(r,f,o),i(xe(xe(xe({},t),e),ie((function(t,e){return e.from}),f))),u=n,Object.values(f).filter(ke).length&&(p=requestAnimationFrame(h))}:function(o){c||(c=o);var a=(o-c)/n,u=ie((function(t,e){return Ee.apply(void 0,ge(e).concat([r(a)]))}),s);if(i(xe(xe(xe({},t),e),u)),a<1)p=requestAnimationFrame(h);else{var l=ie((function(t,e){return Ee.apply(void 0,ge(e).concat([r(1)]))}),s);i(xe(xe(xe({},t),e),l))}},function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(p)}}};function Pe(t){return Pe="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},Pe(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,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}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"!==Pe(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Pe(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=Ve(t);if(e){var i=Ve(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Fe(this,r)}}function Fe(t,e){if(e&&("object"===Pe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return $e(t)}function $e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ve(t){return Ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ve(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)}(o,t);var e,r,n,i=ze(o);function o(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var n=(r=i.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($e(r)),r.changeStyle=r.changeStyle.bind($e(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=o,(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,i=e.attributeName,o=e.shouldReAnimate,a=e.to,u=e.from,c=this.state.style;if(n)if(r){if(!(Vt(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||o?u:t.to;if(this.state&&c){var f={style:i?Re({},i,s):s};(i&&[i]!==s||!i&&c!==s)&&this.setState(f)}this.runAnimation(Ie(Ie({},this.props),{},{from:s,begin:0}))}}else{var p={style:i?Re({},i,a):a};this.state&&c&&(i&&c[i]!==a||!i&&c!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation()}},{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,i=t.duration,o=t.easing,a=t.begin,u=t.onAnimationEnd,c=t.onAnimationStart,l=Ae(r,n,ve(o),i,this.changeStyle);this.manager.start([c,a,function(){e.stopJSAnimation=l()},i,u])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,i=t.onAnimationStart,o=r[0],a=o.style,u=o.duration,c=void 0===u?0:u;return this.manager.start([i].concat(Ce(r.reduce((function(t,n,i){if(0===i)return t;var o=n.duration,a=n.easing,u=void 0===a?"ease":a,c=n.style,l=n.properties,s=n.onAnimationEnd,f=i>0?r[i-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:o,easing:u}),o]);var h=ae(p,o,u),d=Ie(Ie(Ie({},f.style),c),{},{transition:h});return[].concat(Ce(t),[d,o,s]).filter(ne)}),[a,Math.max(c,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Yt());var e=t.begin,r=t.duration,n=t.attributeName,i=t.to,o=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 o&&"function"!=typeof l&&"spring"!==o)if(c.length>1)this.runStepAnimation(t);else{var f=n?Re({},n,i):i,p=ae(Object.keys(f),r,o);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),i=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,Te(t,Me)),o=it.Children.count(e),a=oe(this.state.style);if("function"==typeof e)return e(a);if(!n||0===o||r<=0)return e;var u=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,o=e.className;return(0,it.cloneElement)(t,Ie(Ie({},i),{},{style:Ie(Ie({},n),a),className:o}))};return 1===o?u(it.Children.only(e)):ot().createElement("div",null,it.Children.map(e,(function(t){return u(t)})))}}])&&Le(e.prototype,r),n&&Le(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(it.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 We=He;var qe=r(9469),Ge=["children","appearOptions","enterOptions","leaveOptions"];function Ke(t){return Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ke(t)}function Ye(){return Ye=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ye.apply(this,arguments)}function Xe(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Je(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 Ze(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Je(Object(r),!0).forEach((function(e){ir(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Je(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,or(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 i=nr(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Ke(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 ir(t,e,r){return(e=or(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function or(t){var e=function(t,e){if("object"!==Ke(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ke(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ke(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)}(o,t);var e,r,n,i=er(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),ir(rr(t=i.call(this)),"handleEnter",(function(e,r){var n=t.props,i=n.appearOptions,o=n.enterOptions;t.handleStyleActive(r?i:o)})),ir(rr(t),"handleExit",(function(){var e=t.props.leaveOptions;t.handleStyleActive(e)})),t.state={isActive:!1},t}return e=o,(r=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(Ze(Ze({},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,Xe(e,Ge));return ot().createElement(qe.Transition,Ye({},n,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return ot().createElement(We,t.state,it.Children.only(r))}))}}])&&Qe(e.prototype,r),n&&Qe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(it.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,i=t.enter,o=t.leave;return ot().createElement(qe.TransitionGroup,{component:e},it.Children.map(r,(function(t,e){return ot().createElement(cr,{appearOptions:n,enterOptions:i,leaveOptions:o,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=We;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 _r(t,e,r){var n=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(n||i<0&&-0),a=(r-t._y1)/(i||n<0&&-0),u=(o*i+a*n)/(n+i);return(Or(o)+Or(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function Sr(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,i=t._y0,o=t._x1,a=t._y1,u=(o-n)/3;t._context.bezierCurveTo(n+u,i+u*e,o-u,a-u*r,o,a)}function kr(t){this._context=t}function jr(t){this._context=new Ar(t)}function Ar(t){this._context=t}function Pr(t){this._context=t}function Mr(t){var e,r,n=t.length-1,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/o[e-1],o[e]-=r,a[e]-=r*a[e-1];for(i[n-1]=a[n-1]/o[n-1],e=n-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}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,Sr(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,Sr(this,r=_r(this,t,e)),r);break;default:Er(this,this._t0,r=_r(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(jr.prototype=Object.create(kr.prototype)).point=function(t,e){kr.prototype.point.call(this,e,t)},Ar.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,i,o){this._context.bezierCurveTo(e,t,n,r,o,i)}},Pr.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),i=Mr(e),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],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,i,o){this._append`C${+t},${+e},${+r},${+n},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,r,n,i){if(t=+t,e=+e,r=+r,n=+n,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,u=r-t,c=n-e,l=o-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&&i){let p=r-o,h=n-a,d=u*u+c*c,y=p*p+h*h,v=Math.sqrt(d),m=Math.sqrt(f),g=i*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${i},${i},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,i,o){if(t=+t,e=+e,o=!!o,(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^o,f=o?n-i:i-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(i)},${this._y1=e+r*Math.sin(i)}`)}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 $r(t){return t[1]}function Vr(t,e){var r=Dr(!0),n=null,i=wr,o=null,a=zr(u);function u(u){var c,l,s,f=(u=Cr(u)).length,p=!1;for(null==n&&(o=i(s=a())),c=0;c<=f;++c)!(c<f&&r(l=u[c],c,u))===p&&((p=!p)?o.lineStart():o.lineEnd()),p&&o.point(+t(l,c,u),+e(l,c,u));if(s)return o=null,s+""||null}return t="function"==typeof t?t:void 0===t?Fr:Dr(t),e="function"==typeof e?e:void 0===e?$r: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?(i=t,null!=n&&(o=i(n)),u):i},u.context=function(t){return arguments.length?(null==t?n=o=null:o=i(n=t),u):n},u}function Hr(t,e,r){var n=null,i=Dr(!0),o=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==o&&(u=a(d=c())),s=0;s<=y;++s){if(!(s<y&&i(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 Vr().defined(i).curve(a).context(o)}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?$r: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?(i="function"==typeof t?t:Dr(!!t),l):i},l.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),l):o},l}Ur.prototype;var Wr=r(3218),qr=r.n(Wr);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 Kr=["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"],Yr=["points","pathLength"],Xr={svg:["viewBox","children"],polygon:Yr,polyline:Yr},Jr=["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"],Zr=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,it.isValidElement)(t)&&(r=t.props),!qr()(r))return null;var n={};return Object.keys(r).forEach((function(t){Jr.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(i){var o=t[i];Jr.includes(i)&&"function"==typeof o&&(n||(n={}),n[i]=function(t,e,r){return function(n){return t(e,r,n),null}}(o,e,r))})),n},tn=r(7037),en=r.n(tn),rn=r(8508),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,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!cn(t)&&!en()(t))return n;if(un(t)){var o=t.indexOf("%");r=e*parseFloat(t.slice(0,o))/100}else r=+t;return G()(r)&&(r=n),i&&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,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var xn={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},wn=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},On=null,_n=null,Sn=function t(e){if(e===On&&nt()(_n))return _n;var r=[];return it.Children.forEach(e,(function(e){et()(e)||((0,rn.isFragment)(e)?r=r.concat(t(e.props.children)):r.push(e))})),_n=r,On=e,r};function En(t,e){var r=[],n=[];return n=nt()(e)?e.map((function(t){return wn(t)})):[wn(e)],Sn(t).forEach((function(t){var e=Q()(t,"type.displayName")||Q()(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function kn(t,e){var r=En(t,e);return r&&r[0]}var jn=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"],Pn=function(t){return t&&t.type&&en()(t.type)&&An.indexOf(t.type)>=0},Mn=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,it.isValidElement)(t)&&(n=t.props),!qr()(n))return null;var i={};return Object.keys(n).forEach((function(t){var o;(function(t,e,r,n){var i,o=null!==(i=null==Xr?void 0:Xr[n])&&void 0!==i?i:[];return!J()(t)&&(n&&o.includes(e)||Kr.includes(e))||r&&Jr.includes(e)})(null===(o=n)||void 0===o?void 0:o[t],t,e,r)&&(i[t]=n[t])})),i},Tn=function t(e,r){if(e===r)return!0;var n=it.Children.count(e);if(n!==it.Children.count(r))return!1;if(0===n)return!0;if(1===n)return Cn(nt()(e)?e[0]:e,nt()(r)?r[0]:r);for(var i=0;i<n;i++){var o=e[i],a=r[i];if(nt()(o)||nt()(a)){if(!t(o,a))return!1}else if(!Cn(o,a))return!1}return!0},Cn=function(t,e){if(et()(t)&&et()(e))return!0;if(!et()(t)&&!et()(e)){var r=t.props||{},n=r.children,i=bn(r,mn),o=e.props||{},a=o.children,u=bn(o,gn);return n&&a?vn(i,u)&&Tn(n,a):!n&&!a&&vn(i,u)}return!1},Dn=function(t,e){var r=[],n={};return Sn(t).forEach((function(t,i){if(Pn(t))r.push(t);else if(t){var o=wn(t.type),a=e[o]||{},u=a.handler,c=a.once;if(u&&(!c||!n[o])){var l=u(t,o,i);r.push(l),n[o]=!0}}})),r};function Nn(t){return Nn="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},Nn(t)}function In(){return In=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},In.apply(this,arguments)}function Rn(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 Ln(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rn(Object(r),!0).forEach((function(e){Bn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Bn(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Nn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Nn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Nn(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Un={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 jr(t)},curveNatural:function(t){return new Pr(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)}},zn=function(t){return t.x===+t.x&&t.y===+t.y},Fn=function(t){return t.x},$n=function(t){return t.y},Vn=function(t){var e,r=t.type,n=t.points,i=t.baseLine,o=t.layout,a=t.connectNulls,u=function(t,e){if(J()(t))return t;var r="curve".concat(pr()(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?Un[r]||wr:Un["".concat(r).concat("vertical"===e?"Y":"X")]}(r,o),c=a?n.filter((function(t){return zn(t)})):n;if(nt()(i)){var l=a?i.filter((function(t){return zn(t)})):i,s=c.map((function(t,e){return Ln(Ln({},t),{},{base:l[e]})}));return(e="vertical"===o?Hr().y($n).x1(Fn).x0((function(t){return t.base.x})):Hr().x(Fn).y1($n).y0((function(t){return t.base.y}))).defined(zn).curve(u),e(s)}return(e="vertical"===o&&cn(i)?Hr().y($n).x1(Fn).x0(i):cn(i)?Hr().x(Fn).y1($n).y0(i):Vr().x(Fn).y($n)).defined(zn).curve(u),e(c)},Hn=function(t){var e=t.className,r=t.points,n=t.path,i=t.pathRef;if(!(r&&r.length||n))return null;var o=r&&r.length?Vn(t):n;return ot().createElement("path",In({},Mn(t),Zr(t),{className:ut()("recharts-curve",e),d:o,ref:i}))};function Wn(){return Wn=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},Wn.apply(this,arguments)}Hn.defaultProps={type:"linear",points:[],connectNulls:!1};var qn=function(t){var e=t.cx,r=t.cy,n=t.r,i=t.className,o=ut()("recharts-dot",i);return e===+e&&r===+r&&n===+n?ot().createElement("circle",Wn({},Mn(t),Zr(t),{className:o,cx:e,cy:r,r:n})):null},Gn=["children","className"];function Kn(){return Kn=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},Kn.apply(this,arguments)}function Yn(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var Xn=ot().forwardRef((function(t,e){var r=t.children,n=t.className,i=Yn(t,Gn),o=ut()("recharts-layer",n);return ot().createElement("g",Kn({className:o},Mn(i,!0),{ref:e}),r)})),Jn=r(928),Zn=r.n(Jn),Qn=r(4275),ti=r.n(Qn),ei={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return ei[t]},set:function(t,e){if("string"==typeof t)ei[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach((function(e){ei[e]=t[e]}))}}};function ri(t){return ri="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},ri(t)}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 ii(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){oi(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 oi(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==ri(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ri(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ri(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(t){return function(t){if(Array.isArray(t))return ui(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 ui(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 ui(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 ui(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 ci={widthCache:{},cacheCount:0},li={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},si=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],fi="recharts_measurement_span";var pi=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(ai(t),["-",e.toLowerCase()]):[].concat(ai(t),[e])}),[]).join("")),":").concat(function(t,e){return si.indexOf(t)>=0&&e===+e?"".concat(e,"px"):e}(r,t[r]),";");var n}),"")},hi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||ei.isSsr)return{width:0,height:0};var r="".concat(t),n=pi(e),i="".concat(r,"-").concat(n);if(ci.widthCache[i])return ci.widthCache[i];try{var o=document.getElementById(fi);o||((o=document.createElement("span")).setAttribute("id",fi),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=ii(ii({},li),e);Object.keys(a).map((function(t){return o.style[t]=a[t],t})),o.textContent=r;var u=o.getBoundingClientRect(),c={width:u.width,height:u.height};return ci.widthCache[i]=c,++ci.cacheCount>2e3&&(ci.cacheCount=0,ci.widthCache={}),c}catch(t){return{width:0,height:0}}},di=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function yi(){return yi=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},yi.apply(this,arguments)}function vi(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function mi(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,i,o,a,u=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return gi(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 gi(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 gi(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 bi=/[ \f\n\r\t\v\u2028\u2029]+/,xi=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var i=[];return et()(e)||(i=r?e.toString().split(""):e.toString().split(bi)),{wordsWithComputedWidth:i.map((function(t){return{word:t,width:hi(t,n).width}})),spaceWidth:r?0:hi(" ",n).width}}catch(t){return null}},wi=function(t){return[{words:et()(t)?[]:t.toString().split(bi)}]},Oi=function(t){var e=t.width,r=t.scaleToFit,n=t.children,i=t.style,o=t.breakAll,a=t.maxLines;if((e||r)&&!ei.isSsr){var u=xi({breakAll:o,children:n,style:i});return u?function(t,e,r,n,i){var o=t.maxLines,a=t.children,u=t.style,c=t.breakAll,l=cn(o),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var o=e.word,a=e.width,u=t[t.length-1];if(u&&(null==n||i||u.width+a+r<Number(n)))u.words.push(o),u.width+=a+r;else{var c={words:[o],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=xi({breakAll:c,style:u,children:e+"…"}).wordsWithComputedWidth,i=f(r),a=i.length>o||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(i).width>Number(n);return[a,i]},y=0,v=s.length-1,m=0;y<=v&&m<=s.length-1;){var g=Math.floor((y+v)/2),b=mi(d(g-1),2),x=b[0],w=b[1],O=mi(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:o,children:n,maxLines:a,style:i},u.wordsWithComputedWidth,u.spaceWidth,e,r):wi(n)}return wi(n)},_i={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"},Si=function(t){var e=(0,it.useMemo)((function(){return Oi({breakAll:t.breakAll,children:t.children,maxLines:t.maxLines,scaleToFit:t.scaleToFit,style:t.style,width:t.width})}),[t.breakAll,t.children,t.maxLines,t.scaleToFit,t.style,t.width]),r=t.dx,n=t.dy,i=t.textAnchor,o=t.verticalAnchor,a=t.scaleToFit,u=t.angle,c=t.lineHeight,l=t.capHeight,s=t.className,f=t.breakAll,p=vi(t,di);if(!ln(p.x)||!ln(p.y))return null;var h,d=p.x+(cn(r)?r:0),y=p.y+(cn(n)?n:0);switch(o){case"start":h=ti()("calc(".concat(l,")"));break;case"middle":h=ti()("calc(".concat((e.length-1)/2," * -").concat(c," + (").concat(l," / 2))"));break;default:h=ti()("calc(".concat(e.length-1," * -").concat(c,")"))}var v=[];if(a){var m=e[0].width,g=t.width;v.push("scale(".concat((cn(g)?g/m:1)/m,")"))}return u&&v.push("rotate(".concat(u,", ").concat(d,", ").concat(y,")")),v.length&&(p.transform=v.join(" ")),ot().createElement("text",yi({},Mn(p,!0),{x:d,y,className:ut()("recharts-text",s),textAnchor:i,fill:p.fill.includes("url")?_i.fill:p.fill}),e.map((function(t,e){return ot().createElement("tspan",{x:d,dy:0===e?h:c,key:e},t.words.join(f?"":" "))})))};function Ei(t){return Ei="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},Ei(t)}function ki(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 ji(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ki(Object(r),!0).forEach((function(e){Ai(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ki(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ai(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ei(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ei(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ei(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Si.defaultProps=_i;var Pi=Math.PI/180,Mi=function(t){return 180*t/Math.PI},Ti=function(t,e,r,n){return{x:t+Math.cos(-Pi*n)*r,y:e+Math.sin(-Pi*n)*r}},Ci=function(t,e){var r=t.x,n=t.y,i=e.cx,o=e.cy,a=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(n-o,2))}({x:r,y:n},{x:i,y:o});if(a<=0)return{radius:a};var u=(r-i)/a,c=Math.acos(u);return n>o&&(c=2*Math.PI-c),{radius:a,angle:Mi(c),angleInRadian:c}},Di=function(t,e){var r=e.startAngle,n=e.endAngle,i=Math.floor(r/360),o=Math.floor(n/360);return t+360*Math.min(i,o)},Ni=function(t,e){var r=t.x,n=t.y,i=Ci({x:r,y:n},e),o=i.radius,a=i.angle,u=e.innerRadius,c=e.outerRadius;if(o<u||o>c)return!1;if(0===o)return!0;var l,s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),i=Math.floor(r/360),o=Math.min(n,i);return{startAngle:e-360*o,endAngle:r-360*o}}(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?ji(ji({},e),{},{radius:o,angle:Di(h,e)}):null};function Ii(t){return Ii="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},Ii(t)}function Ri(t){return function(t){if(Array.isArray(t))return Li(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 Li(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 Li(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 Li(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 Bi(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 Ui(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Bi(Object(r),!0).forEach((function(e){zi(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bi(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zi(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ii(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ii(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ii(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fi(){return Fi=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},Fi.apply(this,arguments)}var $i=function(t){var e=t.value,r=t.formatter,n=et()(t.children)?e:t.children;return J()(r)?r(n):n},Vi=function(t,e,r){var n,i,o=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"===o?(n=d+b*u,i=v):"insideEnd"===o?(n=y-b*u,i=!v):"end"===o&&(n=y+b*u,i=v),i=g<=0?i:!i;var x=Ti(s,f,m,n),w=Ti(s,f,m,n+359*(i?1:-1)),O="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(w.x,",").concat(w.y),_=et()(t.id)?fn("recharts-radial-line-"):t.id;return ot().createElement("text",Fi({},r,{dominantBaseline:"central",className:ut()("recharts-radial-bar-label",c)}),ot().createElement("defs",null,ot().createElement("path",{id:_,d:O})),ot().createElement("textPath",{xlinkHref:"#".concat(_)},e))},Hi=function(t){var e=t.viewBox,r=t.offset,n=t.position,i=e,o=i.cx,a=i.cy,u=i.innerRadius,c=i.outerRadius,l=(i.startAngle+i.endAngle)/2;if("outside"===n){var s=Ti(o,a,c+r,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=Ti(o,a,(u+c)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},Wi=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,i=t.position,o=e,a=o.x,u=o.y,c=o.width,l=o.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"===i)return Ui(Ui({},{x:a+c/2,y:u-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(u-r.y,0),width:c}:{});if("bottom"===i)return Ui(Ui({},{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"===i){var g={x:a-y,y:u+l/2,textAnchor:v,verticalAnchor:"middle"};return Ui(Ui({},g),r?{width:Math.max(g.x-r.x,0),height:l}:{})}if("right"===i){var b={x:a+c+y,y:u+l/2,textAnchor:m,verticalAnchor:"middle"};return Ui(Ui({},b),r?{width:Math.max(r.x+r.width-b.x,0),height:l}:{})}var x=r?{width:c,height:l}:{};return"insideLeft"===i?Ui({x:a+y,y:u+l/2,textAnchor:m,verticalAnchor:"middle"},x):"insideRight"===i?Ui({x:a+c-y,y:u+l/2,textAnchor:v,verticalAnchor:"middle"},x):"insideTop"===i?Ui({x:a+c/2,y:u+f,textAnchor:"middle",verticalAnchor:h},x):"insideBottom"===i?Ui({x:a+c/2,y:u+l-f,textAnchor:"middle",verticalAnchor:p},x):"insideTopLeft"===i?Ui({x:a+y,y:u+f,textAnchor:m,verticalAnchor:h},x):"insideTopRight"===i?Ui({x:a+c-y,y:u+f,textAnchor:v,verticalAnchor:h},x):"insideBottomLeft"===i?Ui({x:a+y,y:u+l-f,textAnchor:m,verticalAnchor:p},x):"insideBottomRight"===i?Ui({x:a+c-y,y:u+l-f,textAnchor:v,verticalAnchor:p},x):qr()(i)&&(cn(i.x)||un(i.x))&&(cn(i.y)||un(i.y))?Ui({x:a+pn(i.x,c),y:u+pn(i.y,l),textAnchor:"end",verticalAnchor:"end"},x):Ui({x:a+c/2,y:u+l/2,textAnchor:"middle",verticalAnchor:"middle"},x)},qi=function(t){return"cx"in t&&cn(t.cx)};function Gi(t){var e,r=t.viewBox,n=t.position,i=t.value,o=t.children,a=t.content,u=t.className,c=void 0===u?"":u,l=t.textBreakAll;if(!r||et()(i)&&et()(o)&&!(0,it.isValidElement)(a)&&!J()(a))return null;if((0,it.isValidElement)(a))return(0,it.cloneElement)(a,t);if(J()(a)){if(e=(0,it.createElement)(a,t),(0,it.isValidElement)(e))return e}else e=$i(t);var s=qi(r),f=Mn(t,!0);if(s&&("insideStart"===n||"insideEnd"===n||"end"===n))return Vi(t,e,f);var p=s?Hi(t):Wi(t);return ot().createElement(Si,Fi({className:ut()("recharts-label",c)},f,p,{breakAll:l}),e)}Gi.displayName="Label",Gi.defaultProps={offset:5};var Ki=function(t){var e=t.cx,r=t.cy,n=t.angle,i=t.startAngle,o=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:i||n||0,endAngle:o||n||0,innerRadius:c||0,outerRadius:l||u||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};Gi.parseViewBox=Ki,Gi.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,i=Ki(t),o=En(n,Gi).map((function(t,r){return(0,it.cloneElement)(t,{viewBox:e||i,key:"label-".concat(r)})}));if(!r)return o;var a=function(t,e){return t?!0===t?ot().createElement(Gi,{key:"label-implicit",viewBox:e}):ln(t)?ot().createElement(Gi,{key:"label-implicit",viewBox:e,value:t}):(0,it.isValidElement)(t)?t.type===Gi?(0,it.cloneElement)(t,{key:"label-implicit",viewBox:e}):ot().createElement(Gi,{key:"label-implicit",content:t,viewBox:e}):J()(t)?ot().createElement(Gi,{key:"label-implicit",content:t,viewBox:e}):qr()(t)?ot().createElement(Gi,Fi({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||i);return[a].concat(Ri(o))};var Yi=r(9734),Xi=r.n(Yi),Ji=r(3632),Zi=r.n(Ji),Qi=r(4654),to=r.n(Qi);function eo(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function ro(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 no extends Map{constructor(t,e=uo){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(io(this,t))}has(t){return super.has(io(this,t))}set(t,e){return super.set(oo(this,t),e)}delete(t){return super.delete(ao(this,t))}}function io({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function oo({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function ao({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function uo(t){return null!==t&&"object"==typeof t?t.valueOf():t}const co=Symbol("implicit");function lo(){var t=new no,e=[],r=[],n=co;function i(i){let o=t.get(i);if(void 0===o){if(n!==co)return n;t.set(i,o=e.push(i)-1)}return r[o%r.length]}return i.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new no;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return i},i.range=function(t){return arguments.length?(r=Array.from(t),i):r.slice()},i.unknown=function(t){return arguments.length?(n=t,i):n},i.copy=function(){return lo(e,r).unknown(n)},eo.apply(i,arguments),i}function so(){var t,e,r=lo().unknown(void 0),n=r.domain,i=r.range,o=0,a=1,u=!1,c=0,l=0,s=.5;function f(){var r=n().length,f=a<o,p=f?a:o,h=f?o: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=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),o=new Array(i);++n<i;)o[n]=t+n*r;return o}(r).map((function(e){return p+t*e}));return i(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?([o,a]=t,o=+o,a=+a,f()):[o,a]},r.rangeRound=function(t){return[o,a]=t,o=+o,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 so(n(),[o,a]).round(u).paddingInner(c).paddingOuter(l).align(s)},eo.apply(f(),arguments)}function fo(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return fo(e())},t}function po(){return fo(so.apply(null,arguments).paddingInner(1))}const ho=Math.sqrt(50),yo=Math.sqrt(10),vo=Math.sqrt(2);function mo(t,e,r){const n=(e-t)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),a=o>=ho?10:o>=yo?5:o>=vo?2:1;let u,c,l;return i<0?(l=Math.pow(10,-i)/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,i)*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?mo(t,e,2*r):[u,c,l]}function go(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[i,o,a]=n?mo(e,t,r):mo(t,e,r);if(!(o>=i))return[];const u=o-i+1,c=new Array(u);if(n)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;else 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;return c}function bo(t,e,r){return mo(t=+t,e=+e,r=+r)[2]}function xo(t,e,r){r=+r;const n=(e=+e)<(t=+t),i=n?bo(e,t,r):bo(t,e,r);return(n?-1:1)*(i<0?1/-i:i)}function wo(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Oo(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function _o(t){let e,r,n;function i(t,n,i=0,o=t.length){if(i<o){if(0!==e(n,n))return o;do{const e=i+o>>>1;r(t[e],n)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=wo,r=(e,r)=>wo(t(e),r),n=(e,r)=>t(e)-r):(e=t===wo||t===Oo?t:So,r=t,n=t),{left:i,center:function(t,e,r=0,o=t.length){const a=i(t,e,r,o-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,i=0,o=t.length){if(i<o){if(0!==e(n,n))return o;do{const e=i+o>>>1;r(t[e],n)<=0?i=e+1:o=e}while(i<o)}return i}}}function So(){return 0}function Eo(t){return null===t?NaN:+t}const ko=_o(wo),jo=ko.right,Ao=(ko.left,_o(Eo).center,jo);function Po(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Mo(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function To(){}var Co=.7,Do=1/Co,No="\\s*([+-]?\\d+)\\s*",Io="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ro="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Lo=/^#([0-9a-f]{3,8})$/,Bo=new RegExp("^rgb\\("+[No,No,No]+"\\)$"),Uo=new RegExp("^rgb\\("+[Ro,Ro,Ro]+"\\)$"),zo=new RegExp("^rgba\\("+[No,No,No,Io]+"\\)$"),Fo=new RegExp("^rgba\\("+[Ro,Ro,Ro,Io]+"\\)$"),$o=new RegExp("^hsl\\("+[Io,Ro,Ro]+"\\)$"),Vo=new RegExp("^hsla\\("+[Io,Ro,Ro,Io]+"\\)$"),Ho={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 Wo(){return this.rgb().formatHex()}function qo(){return this.rgb().formatRgb()}function Go(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Lo.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?Ko(e):3===r?new Jo(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?Yo(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?Yo(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=Bo.exec(t))?new Jo(e[1],e[2],e[3],1):(e=Uo.exec(t))?new Jo(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=zo.exec(t))?Yo(e[1],e[2],e[3],e[4]):(e=Fo.exec(t))?Yo(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=$o.exec(t))?ea(e[1],e[2]/100,e[3]/100,1):(e=Vo.exec(t))?ea(e[1],e[2]/100,e[3]/100,e[4]):Ho.hasOwnProperty(t)?Ko(Ho[t]):"transparent"===t?new Jo(NaN,NaN,NaN,0):null}function Ko(t){return new Jo(t>>16&255,t>>8&255,255&t,1)}function Yo(t,e,r,n){return n<=0&&(t=e=r=NaN),new Jo(t,e,r,n)}function Xo(t,e,r,n){return 1===arguments.length?((i=t)instanceof To||(i=Go(i)),i?new Jo((i=i.rgb()).r,i.g,i.b,i.opacity):new Jo):new Jo(t,e,r,null==n?1:n);var i}function Jo(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function Zo(){return"#"+ta(this.r)+ta(this.g)+ta(this.b)}function Qo(){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 ta(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ea(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new na(t,e,r,n)}function ra(t){if(t instanceof na)return new na(t.h,t.s,t.l,t.opacity);if(t instanceof To||(t=Go(t)),!t)return new na;if(t instanceof na)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),o=Math.max(e,r,n),a=NaN,u=o-i,c=(o+i)/2;return u?(a=e===o?(r-n)/u+6*(r<n):r===o?(n-e)/u+2:(e-r)/u+4,u/=c<.5?o+i:2-o-i,a*=60):u=c>0&&c<1?0:a,new na(a,u,c,t.opacity)}function na(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function ia(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 oa(t,e,r,n,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*r+(1+3*t+3*o-3*a)*n+a*i)/6}Po(To,Go,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Wo,formatHex:Wo,formatHsl:function(){return ra(this).formatHsl()},formatRgb:qo,toString:qo}),Po(Jo,Xo,Mo(To,{brighter:function(t){return t=null==t?Do:Math.pow(Do,t),new Jo(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Co:Math.pow(Co,t),new Jo(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:Zo,formatHex:Zo,formatRgb:Qo,toString:Qo})),Po(na,(function(t,e,r,n){return 1===arguments.length?ra(t):new na(t,e,r,null==n?1:n)}),Mo(To,{brighter:function(t){return t=null==t?Do:Math.pow(Do,t),new na(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Co:Math.pow(Co,t),new na(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,i=2*r-n;return new Jo(ia(t>=240?t-240:t+120,i,n),ia(t,i,n),ia(t<120?t+240:t-120,i,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 aa=t=>()=>t;function ua(t,e){return function(r){return t+r*e}}function ca(t){return 1==(t=+t)?la: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):aa(isNaN(e)?r:e)}}function la(t,e){var r=e-t;return r?ua(t,r):aa(isNaN(t)?e:t)}const sa=function t(e){var r=ca(e);function n(t,e){var n=r((t=Xo(t)).r,(e=Xo(e)).r),i=r(t.g,e.g),o=r(t.b,e.b),a=la(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function fa(t){return function(e){var r,n,i=e.length,o=new Array(i),a=new Array(i),u=new Array(i);for(r=0;r<i;++r)n=Xo(e[r]),o[r]=n.r||0,a[r]=n.g||0,u[r]=n.b||0;return o=t(o),a=t(a),u=t(u),n.opacity=1,function(t){return n.r=o(t),n.g=a(t),n.b=u(t),n+""}}}fa((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),i=t[n],o=t[n+1],a=n>0?t[n-1]:2*i-o,u=n<e-1?t[n+2]:2*o-i;return oa((r-n/e)*e,a,i,o,u)}})),fa((function(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),i=t[(n+e-1)%e],o=t[n%e],a=t[(n+1)%e],u=t[(n+2)%e];return oa((r-n/e)*e,i,o,a,u)}}));function pa(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,o=new Array(i),a=new Array(n);for(r=0;r<i;++r)o[r]=xa(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<i;++r)a[r]=o[r](t);return a}}function ha(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function da(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function ya(t,e){var r,n={},i={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=xa(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var va=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ma=new RegExp(va.source,"g");function ga(t,e){var r,n,i,o=va.lastIndex=ma.lastIndex=0,a=-1,u=[],c=[];for(t+="",e+="";(r=va.exec(t))&&(n=ma.exec(e));)(i=n.index)>o&&(i=e.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(r=r[0])===(n=n[0])?u[a]?u[a]+=n:u[++a]=n:(u[++a]=null,c.push({i:a,x:da(r,n)})),o=ma.lastIndex;return o<e.length&&(i=e.slice(o),u[a]?u[a]+=i:u[++a]=i),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 ba(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(r=0;r<n;++r)i[r]=t[r]*(1-o)+e[r]*o;return i}}function xa(t,e){var r,n,i=typeof e;return null==e||"boolean"===i?aa(e):("number"===i?da:"string"===i?(r=Go(e))?(e=r,sa):ga:e instanceof Go?sa:e instanceof Date?ha:(n=e,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(e)?pa:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?ya:da:ba))(t,e)}function wa(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function Oa(t){return+t}var _a=[0,1];function Sa(t){return t}function Ea(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function ka(t,e,r){var n=t[0],i=t[1],o=e[0],a=e[1];return i<n?(n=Ea(i,n),o=r(a,o)):(n=Ea(n,i),o=r(o,a)),function(t){return o(n(t))}}function ja(t,e,r){var n=Math.min(t.length,e.length)-1,i=new Array(n),o=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)i[a]=Ea(t[a],t[a+1]),o[a]=r(e[a],e[a+1]);return function(e){var r=Ao(t,e,1,n)-1;return o[r](i[r](e))}}function Aa(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Pa(){var t,e,r,n,i,o,a=_a,u=_a,c=xa,l=Sa;function s(){var t=Math.min(a.length,u.length);return l!==Sa&&(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?ja:ka,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?r:(i||(i=n(a.map(t),u,c)))(t(l(e)))}return f.invert=function(r){return l(e((o||(o=n(u,a.map(t),da)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Oa),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=wa,s()},f.clamp=function(t){return arguments.length?(l=!!t||Sa,s()):l!==Sa},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 Ma(){return Pa()(Sa,Sa)}var Ta,Ca=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Da(t){if(!(e=Ca.exec(t)))throw new Error("invalid format: "+t);var e;return new Na({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 Na(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 Ia(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 Ra(t){return(t=Ia(Math.abs(t)))?t[1]:NaN}function La(t,e){var r=Ia(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}Da.prototype=Na.prototype,Na.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 Ba={"%":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 La(100*t,e)},r:La,s:function(t,e){var r=Ia(t,e);if(!r)return t+"";var n=r[0],i=r[1],o=i-(Ta=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Ia(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function Ua(t){return t}var za,Fa,$a,Va=Array.prototype.map,Ha=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Wa(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?Ua:(e=Va.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var i=t.length,o=[],a=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),o.push(t.substring(i-=u,i+u)),!((c+=u+1)>n));)u=e[a=(a+1)%e.length];return o.reverse().join(r)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Ua:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Va.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=Da(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"):Ba[g]||(void 0===v&&(v=12),m=!0,g="g"),(h||"0"===e&&"="===r)&&(h=!0,e="0",r="=");var b="$"===p?i:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===p?o:/[%p]/.test(g)?c:"",w=Ba[g],O=/[defgprs%]/.test(g);function _(t){var i,o,c,p=b,_=x;if("c"===g)_=w(t)+_,t="";else{var S=(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,i=-1;n<r;++n)switch(t[n]){case".":i=e=n;break;case"0":0===i&&(i=n),e=n;break;default:if(!+t[n])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==f&&(S=!1),p=(S?"("===f?f:l:"-"===f||"("===f?"":f)+p,_=("s"===g?Ha[8+Ta/3]:"")+_+(S&&"("===f?")":""),O)for(i=-1,o=t.length;++i<o;)if(48>(c=t.charCodeAt(i))||c>57){_=(46===c?a+t.slice(i+1):t.slice(i))+_,t=t.slice(0,i);break}}y&&!h&&(t=n(t,1/0));var E=p.length+t.length+_.length,k=E<d?new Array(d-E+1).join(e):"";switch(y&&h&&(t=n(k+t,k.length?d-_.length:1/0),k=""),r){case"<":t=p+t+_+k;break;case"=":t=p+k+t+_;break;case"^":t=k.slice(0,E=k.length>>1)+p+t+_+k.slice(E);break;default:t=k+p+t+_}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)),_.toString=function(){return t+""},_}return{format:f,formatPrefix:function(t,e){var r=f(((t=Da(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(Ra(e)/3))),i=Math.pow(10,-n),o=Ha[8+n/3];return function(t){return r(i*t)+o}}}}function qa(t,e,r,n){var i,o=xo(t,e,r);switch((n=Da(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ra(e)/3)))-Ra(Math.abs(t)))}(o,a))||(n.precision=i),$a(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ra(e)-Ra(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(t){return Math.max(0,-Ra(Math.abs(t)))}(o))||(n.precision=i-2*("%"===n.type))}return Fa(n)}function Ga(t){var e=t.domain;return t.ticks=function(t){var r=e();return go(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return qa(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,i,o=e(),a=0,u=o.length-1,c=o[a],l=o[u],s=10;for(l<c&&(i=c,c=l,l=i,i=a,a=u,u=i);s-- >0;){if((i=bo(c,l,r))===n)return o[a]=c,o[u]=l,e(o);if(i>0)c=Math.floor(c/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,l=Math.floor(l*i)/i}n=i}return t},t}function Ka(){var t=Ma();return t.copy=function(){return Aa(t,Ka())},eo.apply(t,arguments),Ga(t)}function Ya(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,Oa),r):t.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return Ya(t).unknown(e)},t=arguments.length?Array.from(t,Oa):[0,1],Ga(r)}function Xa(t,e){var r,n=0,i=(t=t.slice()).length-1,o=t[n],a=t[i];return a<o&&(r=n,n=i,i=r,r=o,o=a,a=r),t[n]=e.floor(o),t[i]=e.ceil(a),t}function Ja(t){return Math.log(t)}function Za(t){return Math.exp(t)}function Qa(t){return-Math.log(-t)}function tu(t){return-Math.exp(-t)}function eu(t){return isFinite(t)?+("1e"+t):t<0?0:t}function ru(t){return(e,r)=>-t(-e,r)}function nu(t){const e=t(Ja,Za),r=e.domain;let n,i,o=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)}(o),i=function(t){return 10===t?eu:t===Math.E?Math.exp:e=>Math.pow(t,e)}(o),r()[0]<0?(n=ru(n),i=ru(i),t(Qa,tu)):t(Ja,Za),e}return e.base=function(t){return arguments.length?(o=+t,a()):o},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(!(o%1)&&p-f<h){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<o;++l)if(s=f<0?l/i(-f):l*i(f),!(s<a)){if(s>u)break;d.push(s)}}else for(;f<=p;++f)for(l=o-1;l>=1;--l)if(s=f>0?l/i(-f):l*i(f),!(s<a)){if(s>u)break;d.push(s)}2*d.length<h&&(d=go(a,u,h))}else d=go(f,p,Math.min(p-f,h)).map(i);return c?d.reverse():d},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===o?"s":","),"function"!=typeof r&&(o%1||null!=(r=Da(r)).precision||(r.trim=!0),r=Fa(r)),t===1/0)return r;const a=Math.max(1,o*t/e.ticks().length);return t=>{let e=t/i(Math.round(n(t)));return e*o<o-.5&&(e*=o),e<=a?r(t):""}},e.nice=()=>r(Xa(r(),{floor:t=>i(Math.floor(n(t))),ceil:t=>i(Math.ceil(n(t)))})),e}function iu(){const t=nu(Pa()).domain([1,10]);return t.copy=()=>Aa(t,iu()).base(t.base()),eo.apply(t,arguments),t}function ou(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function au(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function uu(t){var e=1,r=t(ou(e),au(e));return r.constant=function(r){return arguments.length?t(ou(e=+r),au(e)):e},Ga(r)}function cu(){var t=uu(Pa());return t.copy=function(){return Aa(t,cu()).constant(t.constant())},eo.apply(t,arguments)}function lu(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function su(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function fu(t){return t<0?-t*t:t*t}function pu(t){var e=t(Sa,Sa),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(Sa,Sa):.5===r?t(su,fu):t(lu(r),lu(1/r)):r},Ga(e)}function hu(){var t=pu(Pa());return t.copy=function(){return Aa(t,hu()).exponent(t.exponent())},eo.apply(t,arguments),t}function du(){return hu.apply(null,arguments).exponent(.5)}function yu(t){return Math.sign(t)*t*t}function vu(){var t,e=Ma(),r=[0,1],n=!1;function i(r){var i=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(e(r));return isNaN(i)?t:n?Math.round(i):i}return i.invert=function(t){return e.invert(yu(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(t){return arguments.length?(e.range((r=Array.from(t,Oa)).map(yu)),i):r.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(n=!!t,i):n},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return vu(e.domain(),r).round(n).clamp(e.clamp()).unknown(t)},eo.apply(i,arguments),Ga(i)}function mu(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 i of t)null!=(i=e(i,++n,t))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function gu(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 i of t)null!=(i=e(i,++n,t))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function bu(t=wo){if(t===wo)return xu;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 xu(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function wu(t,e,r=0,n=1/0,i){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(i=void 0===i?xu:bu(i);n>r;){if(n-r>600){const o=n-r+1,a=e-r+1,u=Math.log(o),c=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*c*(o-c)/o)*(a-o/2<0?-1:1);wu(t,e,Math.max(r,Math.floor(e-a*c/o+l)),Math.min(n,Math.floor(e+(o-a)*c/o+l)),i)}const o=t[e];let a=r,u=n;for(Ou(t,r,e),i(t[n],o)>0&&Ou(t,r,n);a<u;){for(Ou(t,a,u),++a,--u;i(t[a],o)<0;)++a;for(;i(t[u],o)>0;)--u}0===i(t[r],o)?Ou(t,r,u):(++u,Ou(t,u,n)),u<=e&&(r=u+1),e<=u&&(n=u-1)}return t}function Ou(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function _u(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 gu(t);if(e>=1)return mu(t);var n,i=(n-1)*e,o=Math.floor(i),a=mu(wu(t,o).subarray(0,o+1));return a+(gu(t.subarray(o+1))-a)*(i-o)}}function Su(t,e,r=Eo){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,i=(n-1)*e,o=Math.floor(i),a=+r(t[o],o,t);return a+(+r(t[o+1],o+1,t)-a)*(i-o)}}function Eu(){var t,e=[],r=[],n=[];function i(){var t=0,i=Math.max(1,r.length);for(n=new Array(i-1);++t<i;)n[t-1]=Su(e,t/i);return o}function o(e){return null==e||isNaN(e=+e)?t:r[Ao(n,e)]}return o.invertExtent=function(t){var i=r.indexOf(t);return i<0?[NaN,NaN]:[i>0?n[i-1]:e[0],i<n.length?n[i]:e[e.length-1]]},o.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(wo),i()},o.range=function(t){return arguments.length?(r=Array.from(t),i()):r.slice()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.quantiles=function(){return n.slice()},o.copy=function(){return Eu().domain(e).range(r).unknown(t)},eo.apply(o,arguments)}function ku(){var t,e=0,r=1,n=1,i=[.5],o=[0,1];function a(e){return null!=e&&e<=e?o[Ao(i,e,0,n)]:t}function u(){var t=-1;for(i=new Array(n);++t<n;)i[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=(o=Array.from(t)).length-1,u()):o.slice()},a.invertExtent=function(t){var a=o.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,i[0]]:a>=n?[i[n-1],r]:[i[a-1],i[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return ku().domain([e,r]).range(o).unknown(t)},eo.apply(Ga(a),arguments)}function ju(){var t,e=[.5],r=[0,1],n=1;function i(i){return null!=i&&i<=i?r[Ao(e,i,0,n)]:t}return i.domain=function(t){return arguments.length?(e=Array.from(t),n=Math.min(e.length,r.length-1),i):e.slice()},i.range=function(t){return arguments.length?(r=Array.from(t),n=Math.min(e.length,r.length-1),i):r.slice()},i.invertExtent=function(t){var n=r.indexOf(t);return[e[n-1],e[n]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return ju().domain(e).range(r).unknown(t)},eo.apply(i,arguments)}za=Wa({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Fa=za.format,$a=za.formatPrefix;const Au=1e3,Pu=6e4,Mu=36e5,Tu=864e5,Cu=6048e5,Du=2592e6,Nu=31536e6,Iu=new Date,Ru=new Date;function Lu(t,e,r,n){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),i.round=t=>{const e=i(t),r=i.ceil(t);return t-e<r-t?e:r},i.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),i.range=(r,n,o)=>{const a=[];if(r=i.ceil(r),o=null==o?1:Math.floor(o),!(r<n&&o>0))return a;let u;do{a.push(u=new Date(+r)),e(r,o),t(r)}while(u<r&&r<n);return a},i.filter=r=>Lu((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&&(i.count=(e,n)=>(Iu.setTime(+e),Ru.setTime(+n),t(Iu),t(Ru),Math.floor(r(Iu,Ru))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(n?e=>n(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const Bu=Lu((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));Bu.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Lu((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):Bu:null);Bu.range;const Uu=Lu((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Au)}),((t,e)=>(e-t)/Au),(t=>t.getUTCSeconds())),zu=(Uu.range,Lu((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Au)}),((t,e)=>{t.setTime(+t+e*Pu)}),((t,e)=>(e-t)/Pu),(t=>t.getMinutes()))),Fu=(zu.range,Lu((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*Pu)}),((t,e)=>(e-t)/Pu),(t=>t.getUTCMinutes()))),$u=(Fu.range,Lu((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Au-t.getMinutes()*Pu)}),((t,e)=>{t.setTime(+t+e*Mu)}),((t,e)=>(e-t)/Mu),(t=>t.getHours()))),Vu=($u.range,Lu((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*Mu)}),((t,e)=>(e-t)/Mu),(t=>t.getUTCHours()))),Hu=(Vu.range,Lu((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Pu)/Tu),(t=>t.getDate()-1))),Wu=(Hu.range,Lu((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Tu),(t=>t.getUTCDate()-1))),qu=(Wu.range,Lu((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Tu),(t=>Math.floor(t/Tu))));qu.range;function Gu(t){return Lu((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())*Pu)/Cu))}const Ku=Gu(0),Yu=Gu(1),Xu=Gu(2),Ju=Gu(3),Zu=Gu(4),Qu=Gu(5),tc=Gu(6);Ku.range,Yu.range,Xu.range,Ju.range,Zu.range,Qu.range,tc.range;function ec(t){return Lu((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)/Cu))}const rc=ec(0),nc=ec(1),ic=ec(2),oc=ec(3),ac=ec(4),uc=ec(5),cc=ec(6),lc=(rc.range,nc.range,ic.range,oc.range,ac.range,uc.range,cc.range,Lu((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()))),sc=(lc.range,Lu((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()))),fc=(sc.range,Lu((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())));fc.every=t=>isFinite(t=Math.floor(t))&&t>0?Lu((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;fc.range;const pc=Lu((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()));pc.every=t=>isFinite(t=Math.floor(t))&&t>0?Lu((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;pc.range;function hc(t,e,r,n,i,o){const a=[[Uu,1,Au],[Uu,5,5e3],[Uu,15,15e3],[Uu,30,3e4],[o,1,Pu],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,Mu],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,Tu],[n,2,1728e5],[r,1,Cu],[e,1,Du],[e,3,7776e6],[t,1,Nu]];function u(e,r,n){const i=Math.abs(r-e)/n,o=_o((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(xo(e/Nu,r/Nu,n));if(0===o)return Bu.every(Math.max(xo(e,r,n),1));const[u,c]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return u.every(c)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const i=r&&"function"==typeof r.range?r:u(t,e,r),o=i?i.range(t,+e+1):[];return n?o.reverse():o},u]}const[dc,yc]=hc(pc,sc,rc,qu,Vu,Fu),[vc,mc]=hc(fc,lc,Ku,Hu,$u,zu);var gc=new Date,bc=new Date;function xc(t,e,r,n){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(r){return t(r=new Date(r-1)),e(r,1),t(r),r},i.round=function(t){var e=i(t),r=i.ceil(t);return t-e<r-t?e:r},i.offset=function(t,r){return e(t=new Date(+t),null==r?1:Math.floor(r)),t},i.range=function(r,n,o){var a,u=[];if(r=i.ceil(r),o=null==o?1:Math.floor(o),!(r<n&&o>0))return u;do{u.push(a=new Date(+r)),e(r,o),t(r)}while(a<r&&r<n);return u},i.filter=function(r){return xc((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&&(i.count=function(e,n){return gc.setTime(+e),bc.setTime(+n),t(gc),t(bc),Math.floor(r(gc,bc))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(n?function(e){return n(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var wc=864e5,Oc=6048e5;function _c(t){return xc((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)/Oc}))}var Sc=_c(0),Ec=_c(1),kc=_c(2),jc=_c(3),Ac=_c(4),Pc=_c(5),Mc=_c(6),Tc=(Sc.range,Ec.range,kc.range,jc.range,Ac.range,Pc.range,Mc.range,xc((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/wc}),(function(t){return t.getUTCDate()-1})));const Cc=Tc;Tc.range;function Dc(t){return xc((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()))/Oc}))}var Nc=Dc(0),Ic=Dc(1),Rc=Dc(2),Lc=Dc(3),Bc=Dc(4),Uc=Dc(5),zc=Dc(6),Fc=(Nc.range,Ic.range,Rc.range,Lc.range,Bc.range,Uc.range,zc.range,xc((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()))/wc}),(function(t){return t.getDate()-1})));const $c=Fc;Fc.range;var Vc=xc((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()}));Vc.every=function(t){return isFinite(t=Math.floor(t))&&t>0?xc((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 Hc=Vc;Vc.range;var Wc=xc((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()}));Wc.every=function(t){return isFinite(t=Math.floor(t))&&t>0?xc((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 qc=Wc;Wc.range;function Gc(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 Kc(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 Yc(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var Xc,Jc,Zc,Qc={"-":"",_:" ",0:"0"},tl=/^\s*\d+/,el=/^%/,rl=/[\\^$*+?|[\]().{}]/g;function nl(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(e)+i:i)}function il(t){return t.replace(rl,"\\$&")}function ol(t){return new RegExp("^(?:"+t.map(il).join("|")+")","i")}function al(t){for(var e={},r=-1,n=t.length;++r<n;)e[t[r].toLowerCase()]=r;return e}function ul(t,e,r){var n=tl.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function cl(t,e,r){var n=tl.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function ll(t,e,r){var n=tl.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function sl(t,e,r){var n=tl.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function fl(t,e,r){var n=tl.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function pl(t,e,r){var n=tl.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function hl(t,e,r){var n=tl.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function dl(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 yl(t,e,r){var n=tl.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function vl(t,e,r){var n=tl.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function ml(t,e,r){var n=tl.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function gl(t,e,r){var n=tl.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function bl(t,e,r){var n=tl.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function xl(t,e,r){var n=tl.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function wl(t,e,r){var n=tl.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function Ol(t,e,r){var n=tl.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function _l(t,e,r){var n=tl.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Sl(t,e,r){var n=el.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function El(t,e,r){var n=tl.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function kl(t,e,r){var n=tl.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function jl(t,e){return nl(t.getDate(),e,2)}function Al(t,e){return nl(t.getHours(),e,2)}function Pl(t,e){return nl(t.getHours()%12||12,e,2)}function Ml(t,e){return nl(1+$c.count(Hc(t),t),e,3)}function Tl(t,e){return nl(t.getMilliseconds(),e,3)}function Cl(t,e){return Tl(t,e)+"000"}function Dl(t,e){return nl(t.getMonth()+1,e,2)}function Nl(t,e){return nl(t.getMinutes(),e,2)}function Il(t,e){return nl(t.getSeconds(),e,2)}function Rl(t){var e=t.getDay();return 0===e?7:e}function Ll(t,e){return nl(Nc.count(Hc(t)-1,t),e,2)}function Bl(t){var e=t.getDay();return e>=4||0===e?Bc(t):Bc.ceil(t)}function Ul(t,e){return t=Bl(t),nl(Bc.count(Hc(t),t)+(4===Hc(t).getDay()),e,2)}function zl(t){return t.getDay()}function Fl(t,e){return nl(Ic.count(Hc(t)-1,t),e,2)}function $l(t,e){return nl(t.getFullYear()%100,e,2)}function Vl(t,e){return nl((t=Bl(t)).getFullYear()%100,e,2)}function Hl(t,e){return nl(t.getFullYear()%1e4,e,4)}function Wl(t,e){var r=t.getDay();return nl((t=r>=4||0===r?Bc(t):Bc.ceil(t)).getFullYear()%1e4,e,4)}function ql(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+nl(e/60|0,"0",2)+nl(e%60,"0",2)}function Gl(t,e){return nl(t.getUTCDate(),e,2)}function Kl(t,e){return nl(t.getUTCHours(),e,2)}function Yl(t,e){return nl(t.getUTCHours()%12||12,e,2)}function Xl(t,e){return nl(1+Cc.count(qc(t),t),e,3)}function Jl(t,e){return nl(t.getUTCMilliseconds(),e,3)}function Zl(t,e){return Jl(t,e)+"000"}function Ql(t,e){return nl(t.getUTCMonth()+1,e,2)}function ts(t,e){return nl(t.getUTCMinutes(),e,2)}function es(t,e){return nl(t.getUTCSeconds(),e,2)}function rs(t){var e=t.getUTCDay();return 0===e?7:e}function ns(t,e){return nl(Sc.count(qc(t)-1,t),e,2)}function is(t){var e=t.getUTCDay();return e>=4||0===e?Ac(t):Ac.ceil(t)}function os(t,e){return t=is(t),nl(Ac.count(qc(t),t)+(4===qc(t).getUTCDay()),e,2)}function as(t){return t.getUTCDay()}function us(t,e){return nl(Ec.count(qc(t)-1,t),e,2)}function cs(t,e){return nl(t.getUTCFullYear()%100,e,2)}function ls(t,e){return nl((t=is(t)).getUTCFullYear()%100,e,2)}function ss(t,e){return nl(t.getUTCFullYear()%1e4,e,4)}function fs(t,e){var r=t.getUTCDay();return nl((t=r>=4||0===r?Ac(t):Ac.ceil(t)).getUTCFullYear()%1e4,e,4)}function ps(){return"+0000"}function hs(){return"%"}function ds(t){return+t}function ys(t){return Math.floor(+t/1e3)}function vs(t){return new Date(t)}function ms(t){return t instanceof Date?+t:+new Date(+t)}function gs(t,e,r,n,i,o,a,u,c,l){var s=Ma(),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:o(t)<t?v:n(t)<t?i(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,ms)):p().map(vs)},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(Xa(r,t)):s},s.copy=function(){return Aa(s,gs(t,e,r,n,i,o,a,u,c,l))},s}function bs(){return eo.apply(gs(vc,mc,fc,lc,Ku,Hu,$u,zu,Uu,Jc).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function xs(){return eo.apply(gs(dc,yc,pc,sc,rc,Wu,Vu,Fu,Uu,Zc).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ws(){var t,e,r,n,i,o=0,a=1,u=Sa,c=!1;function l(e){return null==e||isNaN(e=+e)?i: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(i){return arguments.length?([o,a]=i,t=n(o=+o),e=n(a=+a),r=t===e?0:1/(e-t),l):[o,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(xa),l.rangeRound=s(wa),l.unknown=function(t){return arguments.length?(i=t,l):i},function(i){return n=i,t=i(o),e=i(a),r=t===e?0:1/(e-t),l}}function Os(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function _s(){var t=Ga(ws()(Sa));return t.copy=function(){return Os(t,_s())},ro.apply(t,arguments)}function Ss(){var t=nu(ws()).domain([1,10]);return t.copy=function(){return Os(t,Ss()).base(t.base())},ro.apply(t,arguments)}function Es(){var t=uu(ws());return t.copy=function(){return Os(t,Es()).constant(t.constant())},ro.apply(t,arguments)}function ks(){var t=pu(ws());return t.copy=function(){return Os(t,ks()).exponent(t.exponent())},ro.apply(t,arguments)}function js(){return ks.apply(null,arguments).exponent(.5)}function As(){var t=[],e=Sa;function r(r){if(null!=r&&!isNaN(r=+r))return e((Ao(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(wo),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)=>_u(t,n/e)))},r.copy=function(){return As(e).domain(t)},ro.apply(r,arguments)}function Ps(){var t,e,r,n,i,o,a,u=0,c=.5,l=1,s=1,f=Sa,p=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-e)*(s*t<s*e?n:i),f(p?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var r,n,i;return arguments.length?([r,n,i]=e,f=function(t,e){void 0===e&&(e=t,t=xa);for(var r=0,n=e.length-1,i=e[0],o=new Array(n<0?0:n);r<n;)o[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return o[e](t-e)}}(t,[r,n,i]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([u,c,l]=a,t=o(u=+u),e=o(c=+c),r=o(l=+l),n=t===e?0:.5/(e-t),i=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(xa),h.rangeRound=d(wa),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return o=a,t=a(u),e=a(c),r=a(l),n=t===e?0:.5/(e-t),i=e===r?0:.5/(r-e),s=e<t?-1:1,h}}function Ms(){var t=Ga(Ps()(Sa));return t.copy=function(){return Os(t,Ms())},ro.apply(t,arguments)}function Ts(){var t=nu(Ps()).domain([.1,1,10]);return t.copy=function(){return Os(t,Ts()).base(t.base())},ro.apply(t,arguments)}function Cs(){var t=uu(Ps());return t.copy=function(){return Os(t,Cs()).constant(t.constant())},ro.apply(t,arguments)}function Ds(){var t=pu(Ps());return t.copy=function(){return Os(t,Ds()).exponent(t.exponent())},ro.apply(t,arguments)}function Ns(){return Ds.apply(null,arguments).exponent(.5)}function Is(t,e){if((i=t.length)>1)for(var r,n,i,o=1,a=t[e[0]],u=a.length;o<i;++o)for(n=a,a=t[e[o]],r=0;r<u;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Rs(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function Ls(t,e){return t[e]}function Bs(t){const e=[];return e.key=t,e}!function(t){Xc=function(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,l=ol(i),s=al(i),f=ol(o),p=al(o),h=ol(a),d=al(a),y=ol(u),v=al(u),m=ol(c),g=al(c),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:jl,e:jl,f:Cl,g:Vl,G:Wl,H:Al,I:Pl,j:Ml,L:Tl,m:Dl,M:Nl,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ds,s:ys,S:Il,u:Rl,U:Ll,V:Ul,w:zl,W:Fl,x:null,X:null,y:$l,Y:Hl,Z:ql,"%":hs},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:Gl,e:Gl,f:Zl,g:ls,G:fs,H:Kl,I:Yl,j:Xl,L:Jl,m:Ql,M:ts,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ds,s:ys,S:es,u:rs,U:ns,V:os,w:as,W:us,x:null,X:null,y:cs,Y:ss,Z:ps,"%":hs},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 S(t,e,r,n)},d:ml,e:ml,f:_l,g:hl,G:pl,H:bl,I:bl,j:gl,L:Ol,m:vl,M:xl,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:yl,Q:El,s:kl,S:wl,u:cl,U:ll,V:sl,w:ul,W:fl,x:function(t,e,n){return S(t,r,e,n)},X:function(t,e,r){return S(t,n,e,r)},y:hl,Y:pl,Z:dl,"%":Sl};function O(t,e){return function(r){var n,i,o,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!=(i=Qc[n=t.charAt(++u)])?n=t.charAt(++u):i="e"===n?" ":"0",(o=e[n])&&(n=o(r,i)),a.push(n),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function _(t,e){return function(r){var n,i,o=Yc(1900,void 0,1);if(S(o,t,r+="",0)!=r.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(n=Kc(Yc(o.y,0,1))).getUTCDay(),n=i>4||0===i?Ec.ceil(n):Ec(n),n=Cc.offset(n,7*(o.V-1)),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(i=(n=Gc(Yc(o.y,0,1))).getDay(),n=i>4||0===i?Ic.ceil(n):Ic(n),n=$c.offset(n,7*(o.V-1)),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Kc(Yc(o.y,0,1)).getUTCDay():Gc(Yc(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Kc(o)):Gc(o)}}function S(t,e,r,n){for(var i,o,a=0,u=e.length,c=r.length;a<u;){if(n>=c)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=w[i in Qc?e.charAt(a++):i])||(n=o(t,r,n))<0)return-1}else if(i!=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=_(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=_(t+="",!0);return e.toString=function(){return t},e}}}(t),Jc=Xc.format,Xc.parse,Zc=Xc.utcFormat,Xc.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 Us=r(9887),zs=r.n(Us);function Fs(t){return function(t){if(Array.isArray(t))return $s(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 $s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Vs=function(t){return t},Hs={"@@functional/placeholder":!0},Ws=function(t){return t===Hs},qs=function(t){return function e(){return 0===arguments.length||1===arguments.length&&Ws(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},Gs=function t(e,r){return 1===e?r:qs((function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.filter((function(t){return t!==Hs})).length;return a>=e?r.apply(void 0,i):t(e-a,qs((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=i.map((function(t){return Ws(t)?e.shift():t}));return r.apply(void 0,Fs(o).concat(e))})))}))},Ks=function(t){return Gs(t.length,t)},Ys=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},Xs=Ks((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),Js=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return Vs;var n=e.reverse(),i=n[0],o=n.slice(1);return function(){return o.reduce((function(t,e){return e(t)}),i.apply(void 0,arguments))}},Zs=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Qs=function(t){var e=null,r=null;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return e&&i.every((function(t,r){return t===e[r]}))?r:(e=i,r=t.apply(void 0,i))}};var tf=Ks((function(t,e,r){var n=+t;return n+r*(+e-n)})),ef=Ks((function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)})),rf=Ks((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))}));const nf={rangeStep:function(t,e,r){for(var n=new(zs())(t),i=0,o=[];n.lt(e)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o},getDigitCount:function(t){return 0===t?1:Math.floor(new(zs())(t).abs().log(10).toNumber())+1},interpolateNumber:tf,uninterpolateNumber:ef,uninterpolateTruncation:rf};function of(t){return function(t){if(Array.isArray(t))return cf(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||uf(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 af(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,i=!1,o=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){i=!0,o=t}finally{try{n||null==u.return||u.return()}finally{if(i)throw o}}return r}(t,e)||uf(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 uf(t,e){if(t){if("string"==typeof t)return cf(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)?cf(t,e):void 0}}function cf(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){var e=af(t,2),r=e[0],n=e[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function sf(t,e,r){if(t.lte(0))return new(zs())(0);var n=nf.getDigitCount(t.toNumber()),i=new(zs())(10).pow(n),o=t.div(i),a=1!==n?.05:.1,u=new(zs())(Math.ceil(o.div(a).toNumber())).add(r).mul(a).mul(i);return e?u:new(zs())(Math.ceil(u))}function ff(t,e,r){var n=1,i=new(zs())(t);if(!i.isint()&&r){var o=Math.abs(t);o<1?(n=new(zs())(10).pow(nf.getDigitCount(t)-1),i=new(zs())(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new(zs())(Math.floor(t)))}else 0===t?i=new(zs())(Math.floor((e-1)/2)):r||(i=new(zs())(Math.floor(t)));var a=Math.floor((e-1)/2);return Js(Xs((function(t){return i.add(new(zs())(t-a).mul(n)).toNumber()})),Ys)(0,e)}function pf(t,e,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new(zs())(0),tickMin:new(zs())(0),tickMax:new(zs())(0)};var o,a=sf(new(zs())(e).sub(t).div(r-1),n,i);o=t<=0&&e>=0?new(zs())(0):(o=new(zs())(t).add(e).div(2)).sub(new(zs())(o).mod(a));var u=Math.ceil(o.sub(t).div(a).toNumber()),c=Math.ceil(new(zs())(e).sub(o).div(a).toNumber()),l=u+c+1;return l>r?pf(t,e,r,n,i+1):(l<r&&(c=e>0?c+(r-l):c,u=e>0?u:u+(r-l)),{step:a,tickMin:o.sub(new(zs())(u).mul(a)),tickMax:o.add(new(zs())(c).mul(a))})}var hf=Qs((function(t){var e=af(t,2),r=e[0],n=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),u=af(lf([r,n]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0){var s=l===1/0?[c].concat(of(Ys(0,i-1).map((function(){return 1/0})))):[].concat(of(Ys(0,i-1).map((function(){return-1/0}))),[l]);return r>n?Zs(s):s}if(c===l)return ff(c,i,o);var f=pf(c,l,a,o),p=f.step,h=f.tickMin,d=f.tickMax,y=nf.rangeStep(h,d.add(new(zs())(.1).mul(p)),p);return r>n?Zs(y):y})),df=(Qs((function(t){var e=af(t,2),r=e[0],n=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),u=af(lf([r,n]),2),c=u[0],l=u[1];if(c===-1/0||l===1/0)return[r,n];if(c===l)return ff(c,i,o);var s=sf(new(zs())(l).sub(c).div(a-1),o,0),f=Js(Xs((function(t){return new(zs())(c).add(new(zs())(t).mul(s)).toNumber()})),Ys)(0,a).filter((function(t){return t>=c&&t<=l}));return r>n?Zs(f):f})),Qs((function(t,e){var r=af(t,2),n=r[0],i=r[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=af(lf([n,i]),2),u=a[0],c=a[1];if(u===-1/0||c===1/0)return[n,i];if(u===c)return[u];var l=Math.max(e,2),s=sf(new(zs())(c).sub(u).div(l-1),o,0),f=[].concat(of(nf.rangeStep(new(zs())(u),new(zs())(c).sub(new(zs())(.99).mul(s)),s)),[c]);return n>i?Zs(f):f}))),yf=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function vf(){return vf=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},vf.apply(this,arguments)}function mf(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,i,o,a,u=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return gf(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 gf(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 gf(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 bf(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function xf(t){var e=t.offset,r=t.layout,n=t.width,i=t.dataKey,o=t.data,a=t.dataPointFormatter,u=t.xAxis,c=t.yAxis,l=bf(t,yf),s=Mn(l),f=o.map((function(t,o){var l=a(t,i),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=mf(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,_=b(h-y),S=b(h+v);m.push({x1:S,y1:w,x2:S,y2:O}),m.push({x1:_,y1:x,x2:S,y2:x}),m.push({x1:_,y1:w,x2:_,y2:O})}else if("horizontal"===r){var E=c.scale,k=f+e,j=k-n,A=k+n,P=E(h-y),M=E(h+v);m.push({x1:j,y1:M,x2:A,y2:M}),m.push({x1:k,y1:P,x2:k,y2:M}),m.push({x1:j,y1:P,x2:A,y2:P})}return ot().createElement(Xn,vf({className:"recharts-errorBar",key:"bar-".concat(o)},s),m.map((function(t,e){return ot().createElement("line",vf({},t,{key:"line-".concat(e)}))})))}));return ot().createElement(Xn,{className:"recharts-errorBars"},f)}xf.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},xf.displayName="ErrorBar";var wf=r(5578),Of=r.n(wf),_f=["children","width","height","viewBox","className","style"];function Sf(){return Sf=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},Sf.apply(this,arguments)}function Ef(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function kf(t){var e=t.children,r=t.width,n=t.height,i=t.viewBox,o=t.className,a=t.style,u=Ef(t,_f),c=i||{width:r,height:n,x:0,y:0},l=ut()("recharts-surface",o);return ot().createElement("svg",Sf({},Mn(u,!0,"svg"),{className:l,width:r,height:n,style:a,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),ot().createElement("title",null,t.title),ot().createElement("desc",null,t.desc),e)}Math.abs,Math.atan2;const jf=Math.cos,Af=(Math.max,Math.min,Math.sin),Pf=Math.sqrt,Mf=Math.PI,Tf=2*Mf;const Cf={draw(t,e){const r=Pf(e/Mf);t.moveTo(r,0),t.arc(0,0,r,0,Tf)}},Df={draw(t,e){const r=Pf(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()}},Nf=Pf(1/3),If=2*Nf,Rf={draw(t,e){const r=Pf(e/If),n=r*Nf;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Lf={draw(t,e){const r=Pf(e),n=-r/2;t.rect(n,n,r,r)}},Bf=Af(Mf/10)/Af(7*Mf/10),Uf=Af(Tf/10)*Bf,zf=-jf(Tf/10)*Bf,Ff={draw(t,e){const r=Pf(.8908130915292852*e),n=Uf*r,i=zf*r;t.moveTo(0,-r),t.lineTo(n,i);for(let e=1;e<5;++e){const o=Tf*e/5,a=jf(o),u=Af(o);t.lineTo(u*r,-a*r),t.lineTo(a*n-u*i,u*n+a*i)}t.closePath()}},$f=Pf(3),Vf={draw(t,e){const r=-Pf(e/(3*$f));t.moveTo(0,2*r),t.lineTo(-$f*r,-r),t.lineTo($f*r,-r),t.closePath()}},Hf=-.5,Wf=Pf(3)/2,qf=1/Pf(12),Gf=3*(qf/2+1),Kf={draw(t,e){const r=Pf(e/Gf),n=r/2,i=r*qf,o=n,a=r*qf+r,u=-o,c=a;t.moveTo(n,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo(Hf*n-Wf*i,Wf*n+Hf*i),t.lineTo(Hf*o-Wf*a,Wf*o+Hf*a),t.lineTo(Hf*u-Wf*c,Wf*u+Hf*c),t.lineTo(Hf*n+Wf*i,Hf*i-Wf*n),t.lineTo(Hf*o+Wf*a,Hf*a-Wf*o),t.lineTo(Hf*u+Wf*c,Hf*c-Wf*u),t.closePath()}};Pf(3),Pf(3);function Yf(){return Yf=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},Yf.apply(this,arguments)}var Xf={symbolCircle:Cf,symbolCross:Df,symbolDiamond:Rf,symbolSquare:Lf,symbolStar:Ff,symbolTriangle:Vf,symbolWye:Kf},Jf=Math.PI/180,Zf=function(t){var e=t.className,r=t.cx,n=t.cy,i=t.size,o=Mn(t,!0);return r===+r&&n===+n&&i===+i?ot().createElement("path",Yf({},o,{className:ut()("recharts-symbols",e),transform:"translate(".concat(r,", ").concat(n,")"),d:function(){var e=t.size,r=t.sizeType,n=t.type,i=function(t){var e="symbol".concat(pr()(t));return Xf[e]||Cf}(n),o=function(t,e){let r=null,n=zr(i);function i(){let i;if(r||(r=i=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),i)return r=null,i+""||null}return t="function"==typeof t?t:Dr(t||Cf),e="function"==typeof e?e:Dr(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:Dr(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:Dr(+t),i):e},i.context=function(t){return arguments.length?(r=null==t?null:t,i):r},i}().type(i).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*Jf;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}}(e,r,n));return o()}()})):null};function Qf(t){return Qf="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},Qf(t)}function tp(){return tp=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},tp.apply(this,arguments)}function ep(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 rp(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,up(n.key),n)}}function np(t,e){return np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},np(t,e)}function ip(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=op(t);if(e){var i=op(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Qf(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 op(t){return op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},op(t)}function ap(t,e,r){return(e=up(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function up(t){var e=function(t,e){if("object"!==Qf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Qf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Qf(e)?e:String(e)}Zf.defaultProps={type:"circle",size:64,sizeType:"area"},Zf.registerSymbol=function(t,e){Xf["symbol".concat(pr()(t))]=e};var cp=32,lp=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&&np(t,e)}(o,t);var e,r,n,i=ip(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,r=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=16,n=cp/6,i=cp/3,o=t.inactive?e:t.color;if("plainline"===t.type)return ot().createElement("line",{strokeWidth:4,fill:"none",stroke:o,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:r,x2:cp,y2:r,className:"recharts-legend-icon"});if("line"===t.type)return ot().createElement("path",{strokeWidth:4,fill:"none",stroke:o,d:"M0,".concat(r,"h").concat(i,"\n A").concat(n,",").concat(n,",0,1,1,").concat(2*i,",").concat(r,"\n H").concat(cp,"M").concat(2*i,",").concat(r,"\n A").concat(n,",").concat(n,",0,1,1,").concat(i,",").concat(r),className:"recharts-legend-icon"});if("rect"===t.type)return ot().createElement("path",{stroke:"none",fill:o,d:"M0,".concat(4,"h").concat(cp,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(ot().isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ep(Object(r),!0).forEach((function(e){ap(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ep(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return delete a.legendIcon,ot().cloneElement(t.legendIcon,a)}return ot().createElement(Zf,{fill:o,cx:r,cy:r,size:cp,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,r=e.payload,n=e.iconSize,i=e.layout,o=e.formatter,a=e.inactiveColor,u={x:0,y:0,width:cp,height:cp},c={display:"horizontal"===i?"inline-block":"block",marginRight:10},l={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(e,r){var i,s=e.formatter||o,f=ut()((ap(i={"recharts-legend-item":!0},"legend-item-".concat(r),!0),ap(i,"inactive",e.inactive),i));if("none"===e.type)return null;var p=e.inactive?a:e.color;return ot().createElement("li",tp({className:f,style:c,key:"legend-item-".concat(r)},Qr(t.props,e,r)),ot().createElement(kf,{width:n,height:n,viewBox:u,style:l},t.renderIcon(e)),ot().createElement("span",{className:"recharts-legend-item-text",style:{color:p}},s?s(e.value,e,r):e.value))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,n=t.align;if(!e||!e.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return ot().createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],r&&rp(e.prototype,r),n&&rp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(it.PureComponent);function sp(t){return sp="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},sp(t)}ap(lp,"displayName","Legend"),ap(lp,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var fp=["ref"];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 hp(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){bp(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}function dp(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xp(n.key),n)}}function yp(t,e){return yp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yp(t,e)}function vp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=gp(t);if(e){var i=gp(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===sp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return mp(t)}(this,r)}}function mp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gp(t){return gp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gp(t)}function bp(t,e,r){return(e=xp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xp(t){var e=function(t,e){if("object"!==sp(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==sp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===sp(e)?e:String(e)}function Op(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function _p(t){return t.value}function Sp(t,e){return!0===t?Of()(e,_p):J()(t)?Of()(e,t):e}var Ep=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yp(t,e)}(o,t);var e,r,n,i=vp(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return bp(mp(t=i.call.apply(i,[this].concat(r))),"state",{boxWidth:-1,boxHeight:-1}),t}return e=o,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,i=n.layout,o=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"===o&&"vertical"===i?{left:((c||0)-(this.getBBoxSnapshot()||{width:0}).width)/2}:"right"===o?{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}),hp(hp({},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 i=this.wrapperNode.getBoundingClientRect();(Math.abs(i.width-e)>1||Math.abs(i.height-r)>1)&&this.setState({boxWidth:i.width,boxHeight:i.height},(function(){n&&n(i)}))}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,i=e.height,o=e.wrapperStyle,a=e.payloadUniqBy,u=e.payload,c=hp(hp({position:"absolute",width:n||"auto",height:i||"auto"},this.getDefaultPosition(o)),o);return ot().createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(e){t.wrapperNode=e}},function(t,e){if(ot().isValidElement(t))return ot().cloneElement(t,e);if(J()(t))return ot().createElement(t,e);e.ref;var r=Op(e,fp);return ot().createElement(lp,r)}(r,hp(hp({},this.props),{},{payload:Sp(a,u)})))}}])&&dp(e.prototype,r),n&&dp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(it.PureComponent);function kp(t){return kp="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},kp(t)}function jp(t){return function(t){if(Array.isArray(t))return Ap(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 Ap(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 Ap(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 Ap(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 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 Mp(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){Tp(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}function Tp(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==kp(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==kp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===kp(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Cp(t,e,r){return et()(t)||et()(e)?r:ln(e)?Q()(t,e,r):J()(e)?e(t):r}function Dp(t,e,r,n){var i=to()(t,(function(t){return Cp(t,e)}));if("number"===r){var o=i.filter((function(t){return cn(t)||parseFloat(t)}));return o.length?[Zi()(o),Y()(o)]:[1/0,-1/0]}return(n?i.filter((function(t){return!et()(t)})):i).map((function(t){return ln(t)||t instanceof Date?t:""}))}bp(Ep,"displayName","Legend"),bp(Ep,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Np=function(t){var e,r=t.type.displayName,n=t.props,i=n.stroke,o=n.fill;switch(r){case"Line":e=i;break;case"Area":case"Radar":e=i&&"none"!==i?i:o;break;default:e=o}return e},Ip=function(t){var e,r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=kn(r,Ep);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(n||[]).reduce((function(t,e){var r=e.item,n=e.props,i=n.sectors||n.data||[];return t.concat(i.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,i=r.name,o=r.legendType;return{inactive:r.hide,dataKey:n,type:a.props.iconType||o||"square",color:Np(e),value:i||n,payload:e.props}})),Mp(Mp(Mp({},a.props),Ep.getWithHeight(a,i)),{},{payload:e,item:a})):null},Rp=function(t,e,r,n,i){var o=En(e.props.children,xf).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,i,t.props.direction)}));if(o&&o.length){var a=o.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var n=Cp(e,r,0),i=nt()(n)?[Zi()(n),Y()(n)]:[n,n],o=a.reduce((function(t,r){var n=Cp(e,r,0),o=i[0]-Math.abs(nt()(n)?n[0]:n),a=i[1]+Math.abs(nt()(n)?n[1]:n);return[Math.min(o,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]}),[1/0,-1/0])}return null},Lp=function(t,e,r,n,i){var o=e.map((function(e){var o=e.props.dataKey;return"number"===r&&o&&Rp(t,e,o,n)||Dp(t,o,r,i)}));if("number"===r)return o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return o.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}),[])},Bp=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},Up=function(t,e,r){var n,i,o=t.map((function(t){return t.coordinate===e&&(n=!0),t.coordinate===r&&(i=!0),t.coordinate}));return n||o.push(e),i||o.push(r),o},zp=function(t,e,r){if(!t)return null;var n=t.scale,i=t.duplicateDomain,o=t.type,a=t.range,u="scaleBand"===t.realScaleType?n.bandwidth()/2:2,c=(e||r)&&"category"===o&&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=i?i.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:i?i[t]:t,index:e,offset:c}}))},Fp=function(t,e,r){var n;return J()(r)?n=r:J()(e)&&(n=e),J()(t)||n?function(e,r,i,o){J()(t)&&t(e,r,i,o),J()(n)&&n(e,r,i,o)}:null},$p=1e-4,Vp={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var i=0,o=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]=i,t[a][r][1]=i+u,i=t[a][r][1]):(t[a][r][0]=o,t[a][r][1]=o+u,o=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,i,o=0,a=t[0].length;o<a;++o){for(i=r=0;r<n;++r)i+=t[r][o][1]||0;if(i)for(r=0;r<n;++r)t[r][o][1]/=i}Is(t,e)}},none:Is,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,i=t[e[0]],o=i.length;n<o;++n){for(var a=0,u=0;a<r;++a)u+=t[a][n][1]||0;i[n][1]+=i[n][0]=-u/2}Is(t,e)}},wiggle:function(t,e){if((i=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,i,o=0,a=1;a<n;++a){for(var u=0,c=0,l=0;u<i;++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]=o,c&&(o-=l/c)}r[a-1][1]+=r[a-1][0]=o,Is(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 i=0,o=0;o<e;++o){var a=G()(t[o][r][1])?t[o][r][0]:t[o][r][1];a>=0?(t[o][r][0]=i,t[o][r][1]=i+a,i=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}}},Hp=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),i=function(){var t=Dr([]),e=Rs,r=Is,n=Ls;function i(i){var o,a,u=Array.from(t.apply(this,arguments),Bs),c=u.length,l=-1;for(const t of i)for(o=0,++l;o<c;++o)(u[o][l]=[0,+n(t,u[o].key,l,i)]).data=t;for(o=0,a=Cr(e(u));o<c;++o)u[a[o]].index=o;return r(u,a),u}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:Dr(Array.from(e)),i):t},i.value=function(t){return arguments.length?(n="function"==typeof t?t:Dr(+t),i):n},i.order=function(t){return arguments.length?(e=null==t?Rs:"function"==typeof t?t:Dr(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(r=null==t?Is:t,i):r},i}().keys(n).value((function(t,e){return+Cp(t,e,0)})).order(Rs).offset(Vp[r]);return i(t)},Wp=function(t){var e=t.axis,r=t.ticks,n=t.bandSize,i=t.entry,o=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!et()(i[e.dataKey])){var u=yn(r,"value",i[e.dataKey]);if(u)return u.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var c=Cp(i,et()(a)?e.dataKey:a);return et()(c)?null:e.scale(c)},qp=function(t){var e=t.axis,r=t.ticks,n=t.offset,i=t.bandSize,o=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var u=Cp(o,e.dataKey,e.domain[a]);return et()(u)?null:e.scale(u)-i/2+n},Gp=function(t,e,r){return Object.keys(t).reduce((function(n,i){var o=t[i].stackedData.reduce((function(t,n){var i=n.slice(e,r+1).reduce((function(t,e){return[Zi()(e.concat([t[0]]).filter(cn)),Y()(e.concat([t[1]]).filter(cn))]}),[1/0,-1/0]);return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],n[0]),Math.max(o[1],n[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},Kp=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Yp=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Xp=function(t,e,r){if(J()(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(Kp.test(t[0])){var i=+Kp.exec(t[0])[1];n[0]=e[0]-i}else J()(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(Yp.test(t[1])){var o=+Yp.exec(t[1])[1];n[1]=e[1]+o}else J()(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},Jp=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 i=Xi()(e,(function(t){return t.coordinate})),o=1/0,a=1,u=i.length;a<u;a++){var c=i[a],l=i[a-1];o=Math.min((c.coordinate||0)-(l.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},Zp=function(t,e,r){return t&&t.length?W()(t,Q()(r,"type.defaultProps.domain"))?e:t:e},Qp=function(t,e){var r=t.props,n=r.dataKey,i=r.name,o=r.unit,a=r.formatter,u=r.tooltipType,c=r.chartType;return Mp(Mp({},Mn(t)),{},{dataKey:n,unit:o,formatter:a,name:i||n,color:Np(t),value:Cp(e,n),type:u,payload:e,chartType:c})};function th(t){return th="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},th(t)}var eh=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function rh(t){return function(t){if(Array.isArray(t))return nh(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return nh(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 nh(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 nh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ih(){return ih=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},ih.apply(this,arguments)}function oh(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 ah(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?oh(Object(r),!0).forEach((function(e){uh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function uh(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==th(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==th(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===th(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ch(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var lh={valueAccessor:function(t){return nt()(t.value)?Zn()(t.value):t.value}};function sh(t){var e=t.data,r=t.valueAccessor,n=t.dataKey,i=t.clockWise,o=t.id,a=t.textBreakAll,u=ch(t,eh);return e&&e.length?ot().createElement(Xn,{className:"recharts-label-list"},e.map((function(t,e){var c=et()(n)?r(t,e):Cp(t&&t.payload,n),l=et()(o)?{}:{id:"".concat(o,"-").concat(e)};return ot().createElement(Gi,ih({},Mn(t,!0),u,l,{parentViewBox:t.parentViewBox,index:e,value:c,textBreakAll:a,viewBox:Gi.parseViewBox(et()(i)?t:ah(ah({},t),{},{clockWise:i})),key:"label-".concat(e)}))}))):null}sh.displayName="LabelList",sh.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=En(t.children,sh).map((function(t,r){return(0,it.cloneElement)(t,{data:e,key:"labelList-".concat(r)})}));return r?[function(t,e){return t?!0===t?ot().createElement(sh,{key:"labelList-implicit",data:e}):ot().isValidElement(t)||J()(t)?ot().createElement(sh,{key:"labelList-implicit",data:e,content:t}):qr()(t)?ot().createElement(sh,ih({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(rh(n)):n},sh.defaultProps=lh;var fh=["layout","type","stroke","connectNulls","isRange","ref"];function ph(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function hh(){return hh=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},hh.apply(this,arguments)}function dh(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 yh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?dh(Object(r),!0).forEach((function(e){wh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vh(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Oh(n.key),n)}}function mh(t,e){return mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mh(t,e)}function gh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=xh(t);if(e){var i=xh(this).constructor;r=Reflect.construct(n,arguments,i)}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 bh(t)}(this,r)}}function bh(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xh(t){return xh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xh(t)}function wh(t,e,r){return(e=Oh(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Oh(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)}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)}var Sh=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&&mh(t,e)}(o,t);var e,r,n,i=gh(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return wh(bh(t=i.call.apply(i,[this].concat(r))),"state",{isAnimationFinished:!0}),wh(bh(t),"id",fn("recharts-area-")),wh(bh(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),J()(e)&&e()})),wh(bh(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),J()(e)&&e()})),t}return e=o,r=[{key:"renderDots",value:function(t,e,r){var n=this.props.isAnimationActive,i=this.state.isAnimationFinished;if(n&&!i)return null;var a=this.props,u=a.dot,c=a.points,l=a.dataKey,s=Mn(this.props),f=Mn(u,!0),p=c.map((function(t,e){var r=yh(yh(yh({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 o.renderDotItem(u,r)})),h={clipPath:t?"url(#clipPath-".concat(e?"":"dots-").concat(r,")"):null};return ot().createElement(Xn,hh({className:"recharts-area-dots"},h),p)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].x,a=n[n.length-1].x,u=t*Math.abs(o-a),c=Y()(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(Y()(r.map((function(t){return t.y||0}))),c)),cn(c)?ot().createElement("rect",{x:o<a?o:o-u,y:0,width:u,height:Math.floor(c+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].y,a=n[n.length-1].y,u=t*Math.abs(o-a),c=Y()(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(Y()(r.map((function(t){return t.x||0}))),c)),cn(c)?ot().createElement("rect",{x:0,y:o<a?o:o-u,width:c+(i?parseInt("".concat(i),10):1),height:Math.floor(u)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,r,n){var i=this.props,o=i.layout,a=i.type,u=i.stroke,c=i.connectNulls,l=i.isRange,s=(i.ref,ph(i,fh));return ot().createElement(Xn,{clipPath:r?"url(#clipPath-".concat(n,")"):null},ot().createElement(Hn,hh({},Mn(s,!0),{points:t,connectNulls:c,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==u&&ot().createElement(Hn,hh({},Mn(this.props),{className:"recharts-area-curve",layout:o,type:a,connectNulls:c,fill:"none",points:t})),"none"!==u&&l&&ot().createElement(Hn,hh({},Mn(this.props),{className:"recharts-area-curve",layout:o,type:a,connectNulls:c,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=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 ot().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/i.length,l=i.map((function(t,e){var r=Math.floor(e*c);if(p[r]){var n=p[r],i=dn(n.x,t.x),o=dn(n.y,t.y);return yh(yh({},t),{},{x:i(a),y:o(a)})}return t}));return u=cn(o)&&"number"==typeof o?dn(h,o)(a):et()(o)||G()(o)?dn(h,0)(a):o.map((function(t,e){var r=Math.floor(e*c);if(h[r]){var n=h[r],i=dn(n.x,t.x),o=dn(n.y,t.y);return yh(yh({},t),{},{x:i(a),y:o(a)})}return t})),r.renderAreaStatically(l,u,t,e)}return ot().createElement(Xn,null,ot().createElement("defs",null,ot().createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),ot().createElement(Xn,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(i,o,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,i=r.baseLine,o=r.isAnimationActive,a=this.state,u=a.prevPoints,c=a.prevBaseLine,l=a.totalLength;return o&&n&&n.length&&(!u&&l>0||!W()(u,n)||!W()(c,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,i,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,o=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||!i||!i.length)return null;var d=this.state.isAnimationFinished,y=1===i.length,v=ut()("recharts-area",o),m=c&&c.allowDataOverflow,g=l&&l.allowDataOverflow,b=m||g,x=et()(h)?this.id:h,w=null!==(t=Mn(n))&&void 0!==t?t:{r:3,strokeWidth:2},O=w.r,_=void 0===O?3:O,S=w.strokeWidth,E=void 0===S?2:S,k=(function(t){return"object"===_h(t)&&"cx"in t&&"cy"in t&&"r"in t}(n)?n:{}).clipDot,j=void 0===k||k,A=2*_+E;return ot().createElement(Xn,{className:v},m||g?ot().createElement("defs",null,ot().createElement("clipPath",{id:"clipPath-".concat(x)},ot().createElement("rect",{x:m?u:u-s/2,y:g?a:a-f/2,width:m?s:2*s,height:g?f:2*f})),!j&&ot().createElement("clipPath",{id:"clipPath-dots-".concat(x)},ot().createElement("rect",{x:u-A/2,y:a-A/2,width:s+A,height:f+A}))):null,y?null:this.renderArea(b,x),(n||y)&&this.renderDots(b,j,x),(!p||d)&&sh.renderCallByParent(this.props,i))}}],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&&vh(e.prototype,r),n&&vh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(it.PureComponent);wh(Sh,"displayName","Area"),wh(Sh,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ei.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),wh(Sh,"getBaseValue",(function(t,e,r,n){var i=t.layout,o=t.baseValue,a=e.props.baseValue,u=null!=a?a:o;if(cn(u)&&"number"==typeof u)return u;var c="horizontal"===i?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]})),wh(Sh,"getComposedData",(function(t){var e,r=t.props,n=t.item,i=t.xAxis,o=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=Sh.getBaseValue(r,n,i,o),m=!1,g=p.map((function(t,e){var r,n=Cp(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:Wp({axis:i,ticks:a,bandSize:c,entry:t,index:e}),y:p?null:o.scale(r[1]),value:r,payload:t}:{x:p?null:i.scale(r[1]),y:Wp({axis:o,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:o.scale(Q()(t,"value[0]"))}:{x:et()(Q()(t,"value[0]"))?null:i.scale(Q()(t,"value[0]")),y:t.y}})):"horizontal"===d?o.scale(v):i.scale(v),yh({points:g,baseLine:e,layout:d,isRange:m},h)})),wh(Sh,"renderDotItem",(function(t,e){return ot().isValidElement(t)?ot().cloneElement(t,e):J()(t)?t(e):ot().createElement(qn,hh({},e,{className:"recharts-area-dot"}))}));var Eh=r(1533),kh=r(3279),jh=r.n(kh),Ah=r(3493),Ph=r.n(Ah),Mh=function(t,e){return Mh=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])},Mh(t,e)};function Th(t,e){function r(){this.constructor=t}Mh(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Ch(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 i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}var Dh=function(t,e,r,n){switch(e){case"debounce":return jh()(t,r,n);case"throttle":return Ph()(t,r,n);default:return t}},Nh=function(t){return"function"==typeof t},Ih=function(){return"undefined"==typeof window},Rh=function(t){return t instanceof Element||t instanceof HTMLDocument},Lh=function(t,e,r){return function(n){var i=n.width,o=n.height;t((function(t){return t.width===i&&t.height===o||t.width===i&&!r||t.height===o&&!e?t:{width:i,height:o}}))}},Bh=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(!Ih()){e&&e.current&&(r.targetRef.current=e.current);var i=r.getElement();i&&(r.observableElement&&r.observableElement===i||(r.observableElement=i,r.resizeObserver.observe(i,n)))}},r.getElement=function(){var t=r.props,e=t.querySelector,n=t.targetDomEl;if(Ih())return null;if(e)return document.querySelector(e);if(n&&Rh(n))return n;if(r.targetRef&&Rh(r.targetRef.current))return r.targetRef.current;var i=(0,Eh.findDOMNode)(r);if(!i)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},r.createResizeHandler=function(t){var e=r.props,n=e.handleWidth,i=void 0===n||n,o=e.handleHeight,a=void 0===o||o,u=e.onResize;if(i||a){var c=Lh((function(t){return r.setState(t,(function(){return null==u?void 0:u(r.state.width,r.state.height)}))}),i,a);t.forEach((function(t){var e=t&&t.contentRect||{},n=e.width,i=e.height;!r.skipOnMount&&!Ih()&&c({width:n,height:i}),r.skipOnMount=!1}))}},r.getRenderType=function(){var t=r.props,e=t.render,n=t.children;return Nh(e)?"renderProp":Nh(n)?"childFunction":(0,it.isValidElement)(n)?"child":Array.isArray(n)?"childArray":"parent"};var n=e.skipOnMount,i=e.refreshMode,o=e.refreshRate,a=void 0===o?1e3:o,u=e.refreshOptions;return r.state={width:void 0,height:void 0},r.skipOnMount=n,r.targetRef=(0,it.createRef)(),r.observableElement=null,Ih()||(r.resizeHandler=Dh(r.createResizeHandler,i,a,u),r.resizeObserver=new window.ResizeObserver(r.resizeHandler)),r}return Th(e,t),e.prototype.componentDidMount=function(){this.attachObserver()},e.prototype.componentDidUpdate=function(){this.attachObserver()},e.prototype.componentWillUnmount=function(){Ih()||(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,i=void 0===n?"div":n,o=this.state,a={width:o.width,height:o.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=Ch(a,["targetRef"]);return(0,it.cloneElement)(c,l)}return(0,it.cloneElement)(c,a);case"childArray":return r.map((function(t){return!!t&&(0,it.cloneElement)(t,a)}));default:return ot().createElement(i,null)}},e}(it.PureComponent);Ih()?it.useEffect:it.useLayoutEffect;var Uh=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i]};function zh(){return zh=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},zh.apply(this,arguments)}function Fh(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,i,o,a,u=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return $h(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 $h(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 $h(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 Vh=(0,it.forwardRef)((function(t,e){var r=t.aspect,n=t.initialDimension,i=void 0===n?{width:-1,height:-1}:n,o=t.width,a=void 0===o?"100%":o,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=Fh((0,it.useState)({containerWidth:i.width,containerHeight:i.height}),2),x=b[0],w=b[1],O=(0,it.useRef)(null);(0,it.useImperativeHandle)(e,(function(){return O}),[O]);var _=(0,it.useCallback)((function(){return O.current?{containerWidth:O.current.clientWidth,containerHeight:O.current.clientHeight}:null}),[]),S=(0,it.useCallback)((function(){var t=_();if(t){var e=t.containerWidth,r=t.containerHeight;g&&g(e,r),w((function(t){var n=t.containerWidth,i=t.containerHeight;return e!==n||r!==i?{containerWidth:e,containerHeight:r}:t}))}}),[_,g]),E=(0,it.useMemo)((function(){var t=x.containerWidth,e=x.containerHeight;if(t<0||e<0)return null;Uh(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),Uh(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=un(a)?t:a,i=un(c)?e:c;return r&&r>0&&(n?i=n/r:i&&(n=i*r),p&&i>p&&(i=p)),Uh(n>0||i>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,i,a,c,s,f,r),(0,it.cloneElement)(h,{width:n,height:i})}),[r,h,c,p,f,s,x,a]);(0,it.useEffect)((function(){var t=_();t&&w(t)}),[_]);var k={width:a,height:c,minWidth:s,minHeight:f,maxHeight:p};return ot().createElement(Bh,{handleWidth:!0,handleHeight:!0,onResize:S,targetRef:O,refreshMode:y>0?"debounce":void 0,refreshRate:y},ot().createElement("div",zh({},null!=v?{id:"".concat(v)}:{},{className:ut()("recharts-responsive-container",m),style:k,ref:O}),E))})),Hh=r(711),Wh=r.n(Hh),qh=r(3311),Gh=r.n(qh),Kh=r(6026),Yh=r.n(Kh),Xh=r(1584),Jh=r.n(Xh);function Zh(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],i=0;i<t.length;i+=e){if(void 0!==r&&!0!==r(t[i]))return;n.push(t[i])}return n}var Qh=r(6604),td=r.n(Qh);function ed(){return ed=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},ed.apply(this,arguments)}function rd(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,i,o,a,u=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return nd(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 nd(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 nd(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 id=function(t,e,r,n,i){var o,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&&i instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+u*s[0]),s[0]>0&&(o+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+c*s[0],",").concat(e)),o+="L ".concat(t+r-c*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+u*s[1])),o+="L ".concat(t+r,",").concat(e+n-u*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-c*s[2],",").concat(e+n)),o+="L ".concat(t+c*s[3],",").concat(e+n),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-u*s[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="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 o="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return o},od=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,i=e.x,o=e.y,a=e.width,u=e.height;if(Math.abs(a)>0&&Math.abs(u)>0){var c=Math.min(i,i+a),l=Math.max(i,i+a),s=Math.min(o,o+u),f=Math.max(o,o+u);return r>=c&&r<=l&&n>=s&&n<=f}return!1},ad=function(t){var e=(0,it.useRef)(),r=rd((0,it.useState)(-1),2),n=r[0],i=r[1];(0,it.useLayoutEffect)((function(){if(e.current&&e.current.getTotalLength)try{var t=e.current.getTotalLength();t&&i(t)}catch(t){}}),[]);var o=t.x,a=t.y,u=t.width,c=t.height,l=t.radius,s=t.className,f=t.animationEasing,p=t.animationDuration,h=t.animationBegin,d=t.isAnimationActive,y=t.isUpdateAnimationActive;if(o!==+o||a!==+a||u!==+u||c!==+c||0===u||0===c)return null;var v=ut()("recharts-rectangle",s);return y?ot().createElement(sr,{canBegin:n>0,from:{width:u,height:c,x:o,y:a},to:{width:u,height:c,x:o,y:a},duration:p,animationEasing:f,isActive:y},(function(r){var i=r.width,o=r.height,a=r.x,u=r.y;return ot().createElement(sr,{canBegin:n>0,from:"0px ".concat(-1===n?1:n,"px"),to:"".concat(n,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:p,isActive:d,easing:f},ot().createElement("path",ed({},Mn(t,!0),{className:v,d:id(a,u,i,o,l),ref:e})))})):ot().createElement("path",ed({},Mn(t,!0),{className:v,d:id(o,a,u,c,l)}))};ad.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var ud=function(t){return null};ud.displayName="Cell";var cd=["value","background"];function ld(t){return ld="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},ld(t)}function sd(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function fd(){return fd=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},fd.apply(this,arguments)}function pd(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?pd(Object(r),!0).forEach((function(e){bd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function dd(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,xd(n.key),n)}}function yd(t,e){return yd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yd(t,e)}function vd(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=gd(t);if(e){var i=gd(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===ld(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return md(t)}(this,r)}}function md(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gd(t){return gd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gd(t)}function bd(t,e,r){return(e=xd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xd(t){var e=function(t,e){if("object"!==ld(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ld(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ld(e)?e:String(e)}var wd=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&&yd(t,e)}(o,t);var e,r,n,i=vd(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return bd(md(t=i.call.apply(i,[this].concat(r))),"state",{isAnimationFinished:!1}),bd(md(t),"id",fn("recharts-bar-")),bd(md(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),bd(md(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return e=o,r=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props.shape,n=Mn(this.props);return t&&t.map((function(t,i){var a=hd(hd(hd({},n),t),{},{index:i});return ot().createElement(Xn,fd({className:"recharts-bar-rectangle"},Qr(e.props,t,i),{key:"rectangle-".concat(i)}),o.renderRectangle(r,a))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,i=e.isAnimationActive,o=e.animationBegin,a=e.animationDuration,u=e.animationEasing,c=e.animationId,l=this.state.prevData;return ot().createElement(sr,{begin:o,duration:a,isActive:i,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,o=r.map((function(t,e){var r=l&&l[e];if(r){var o=dn(r.x,t.x),a=dn(r.y,t.y),u=dn(r.width,t.width),c=dn(r.height,t.height);return hd(hd({},t),{},{x:o(i),y:a(i),width:u(i),height:c(i)})}if("horizontal"===n){var s=dn(0,t.height)(i);return hd(hd({},t),{},{y:t.y+t.height-s,height:s})}var f=dn(0,t.width)(i);return hd(hd({},t),{},{width:f})}));return ot().createElement(Xn,null,t.renderRectanglesStatically(o))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&W()(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props.data,r=Mn(this.props.background);return e.map((function(e,n){e.value;var i=e.background,a=sd(e,cd);if(!i)return null;var u=hd(hd(hd(hd(hd({},a),{},{fill:"#eee"},i),r),Qr(t.props,e,n)),{},{index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return o.renderRectangle(t.props.background,u)}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,i=r.xAxis,o=r.yAxis,a=r.layout,u=En(r.children,xf);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:Cp(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return ot().createElement(Xn,s,u.map((function(t,e){return ot().cloneElement(t,{key:"error-bar-".concat(e),data:n,xAxis:i,yAxis:o,layout:a,offset:c,dataPointFormatter:l})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,i=t.xAxis,o=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=i&&i.allowDataOverflow,v=o&&o.allowDataOverflow,m=y||v,g=et()(p)?this.id:p;return ot().createElement(Xn,{className:d},y||v?ot().createElement("defs",null,ot().createElement("clipPath",{id:"clipPath-".concat(g)},ot().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,ot().createElement(Xn,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(g,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,g),(!s||h)&&sh.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}},{key:"renderRectangle",value:function(t,e){return ot().isValidElement(t)?ot().cloneElement(t,e):J()(t)?t(e):ot().createElement(ad,e)}}],r&&dd(e.prototype,r),n&&dd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(it.PureComponent);function Od(t){return Od="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},Od(t)}function _d(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,jd(n.key),n)}}function Sd(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 Ed(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Sd(Object(r),!0).forEach((function(e){kd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function kd(t,e,r){return(e=jd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jd(t){var e=function(t,e){if("object"!==Od(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Od(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Od(e)?e:String(e)}bd(wd,"displayName","Bar"),bd(wd,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!ei.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),bd(wd,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,o=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:o,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]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]}({numericAxis:b}),O=En(m,ud),_=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]),i=[t[0],t[1]];return(!cn(t[0])||t[0]<r)&&(i[0]=r),(!cn(t[1])||t[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i}(l[s+e],x):(n=Cp(t,v),nt()(n)||(n=[w,n])),"horizontal"===d){var _,S=[a.scale(n[0]),a.scale(n[1])],E=S[0],k=S[1];f=qp({axis:o,ticks:u,bandSize:i,offset:h.offset,entry:t,index:e}),p=null!==(_=null!=k?k:E)&&void 0!==_?_:void 0,y=h.size;var j=E-k;if(m=Number.isNaN(j)?0:j,b={x:f,y:a.y,width:y,height:a.height},Math.abs(g)>0&&Math.abs(m)<Math.abs(g)){var A=an(m||g)*(Math.abs(g)-Math.abs(m));p-=A,m+=A}}else{var P=[o.scale(n[0]),o.scale(n[1])],M=P[0],T=P[1];if(f=M,p=qp({axis:a,ticks:c,bandSize:i,offset:h.offset,entry:t,index:e}),y=T-M,m=h.size,b={x:o.x,y:p,width:o.width,height:m},Math.abs(g)>0&&Math.abs(y)<Math.abs(g))y+=an(y||g)*(Math.abs(g)-Math.abs(y))}return hd(hd(hd({},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:[Qp(r,t)],tooltipPosition:{x:f+y/2,y:p+m/2}})}));return hd({data:_,layout:d},p)}));var Ad=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return{x:Math.min(r,i),y:Math.min(n,o),width:Math.abs(i-r),height:Math.abs(o-n)}},Pd=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 i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}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&&_d(e.prototype,r),n&&_d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();kd(Pd,"EPS",1e-4);var Md=function(t){var e=Object.keys(t).reduce((function(e,r){return Ed(Ed({},e),{},kd({},r,Pd.create(t[r])))}),{});return Ed(Ed({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return td()(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:i})}))},isInRange:function(t){return Wh()(t,(function(t,r){return e[r].isInRange(t)}))}})};var Td=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),i=n*Math.PI/180,o=Math.atan(r/e),a=i>o&&i<Math.PI-o?r/Math.sin(i):e/Math.cos(i);return Math.abs(a)};function Cd(t){return Cd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cd(t)}function Dd(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 Nd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Dd(Object(r),!0).forEach((function(e){Id(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Id(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Cd(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Cd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Cd(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rd(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return Td(n,r)}function Ld(t,e){var r,n,i=t.angle,o=t.ticks,a=t.tickFormatter,u=t.viewBox,c=t.orientation,l=t.minTickGap,s=t.unit,f=t.fontSize,p=t.letterSpacing,h=u.x,d=u.y,y=u.width,v=u.height,m="top"===c||"bottom"===c?"width":"height",g=(o||[]).slice(),b=s&&"width"===m?hi(s,{fontSize:f,letterSpacing:p}):{width:0,height:0},x=g.length,w=x>=2?an(g[1].coordinate-g[0].coordinate):1;if(1===w?(r="width"===m?h:d,n="width"===m?h+y:d+v):(r="width"===m?h+y:d+v,n="width"===m?h:d),e){var O=o[x-1],_=J()(a)?a(O.value,x-1):O.value,S="width"===m?Rd(hi(_,{fontSize:f,letterSpacing:p}),b,i):hi(_,{fontSize:f,letterSpacing:p})[m],E=w*(O.coordinate+w*S/2-n);g[x-1]=O=Nd(Nd({},O),{},{tickCoord:E>0?O.coordinate-E*w:O.coordinate}),w*(O.tickCoord-w*S/2-r)>=0&&w*(O.tickCoord+w*S/2-n)<=0&&(n=O.tickCoord-w*(S/2+l),g[x-1]=Nd(Nd({},O),{},{isShow:!0}))}for(var k=e?x-1:x,j=0;j<k;j++){var A=g[j],P=J()(a)?a(A.value,j):A.value,M="width"===m?Rd(hi(P,{fontSize:f,letterSpacing:p}),b,i):hi(P,{fontSize:f,letterSpacing:p})[m];if(0===j){var T=w*(A.coordinate-w*M/2-r);g[j]=A=Nd(Nd({},A),{},{tickCoord:T<0?A.coordinate-T*w:A.coordinate})}else g[j]=A=Nd(Nd({},A),{},{tickCoord:A.coordinate});w*(A.tickCoord-w*M/2-r)>=0&&w*(A.tickCoord+w*M/2-n)<=0&&(r=A.tickCoord+w*(M/2+l),g[j]=Nd(Nd({},A),{},{isShow:!0}))}return g}function Bd(t,e,r){var n=t.tick,i=t.ticks,o=t.viewBox,a=t.minTickGap,u=t.orientation,c=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!i||!i.length||!n)return[];if(cn(c)||ei.isSsr)return function(t,e){return Zh(t,e+1)}(i,"number"==typeof c&&cn(c)?c:0);var p=[];return"equidistantPreserveStart"===c?function(t){for(var e=1,r=Zh(t,e,(function(t){return t.isShow}));e<=t.length;){if(void 0!==r)return r;r=Zh(t,++e,(function(t){return t.isShow}))}return t.slice(0,1)}(p=Ld({angle:f,ticks:i,tickFormatter:l,viewBox:o,orientation:u,minTickGap:a,unit:s,fontSize:e,letterSpacing:r})):(p="preserveStart"===c||"preserveStartEnd"===c?Ld({angle:f,ticks:i,tickFormatter:l,viewBox:o,orientation:u,minTickGap:a,unit:s,fontSize:e,letterSpacing:r},"preserveStartEnd"===c):function(t){var e,r,n=t.angle,i=t.ticks,o=t.tickFormatter,a=t.viewBox,u=t.orientation,c=t.minTickGap,l=t.unit,s=t.fontSize,f=t.letterSpacing,p=a.x,h=a.y,d=a.width,y=a.height,v="top"===u||"bottom"===u?"width":"height",m=l&&"width"===v?hi(l,{fontSize:s,letterSpacing:f}):{width:0,height:0},g=(i||[]).slice(),b=g.length,x=b>=2?an(g[1].coordinate-g[0].coordinate):1;1===x?(e="width"===v?p:h,r="width"===v?p+d:h+y):(e="width"===v?p+d:h+y,r="width"===v?p:h);for(var w=b-1;w>=0;w--){var O=g[w],_=J()(o)?o(O.value,b-w-1):O.value,S="width"===v?Rd(hi(_,{fontSize:s,letterSpacing:f}),m,n):hi(_,{fontSize:s,letterSpacing:f})[v];if(w===b-1){var E=x*(O.coordinate+x*S/2-r);g[w]=O=Nd(Nd({},O),{},{tickCoord:E>0?O.coordinate-E*x:O.coordinate})}else g[w]=O=Nd(Nd({},O),{},{tickCoord:O.coordinate});x*(O.tickCoord-x*S/2-e)>=0&&x*(O.tickCoord+x*S/2-r)<=0&&(r=O.tickCoord-x*(S/2+c),g[w]=Nd(Nd({},O),{},{isShow:!0}))}return g}({angle:f,ticks:i,tickFormatter:l,viewBox:o,orientation:u,minTickGap:a,unit:s,fontSize:e,letterSpacing:r}),p.filter((function(t){return t.isShow})))}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(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,i,o,a,u=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Fd(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 Fd(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 Fd(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 Vd(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){Hd(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 Hd(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}function Wd(t){return nt()(t)&&ln(t[0])&&ln(t[1])?t.join(" ~ "):t}var qd=function(t){var e=t.separator,r=void 0===e?" : ":e,n=t.contentStyle,i=void 0===n?{}:n,o=t.itemStyle,a=void 0===o?{}:o,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=Vd({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),m=Vd({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)),ot().createElement("div",{className:x,style:v},ot().createElement("p",{className:w,style:m},ot().isValidElement(b)?b:"".concat(b)),function(){if(l&&l.length){var t=(f?Xi()(l,f):l).map((function(t,e){if("none"===t.type)return null;var n=Vd({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},a),i=t.formatter||s||Wd,o=t.value,u=t.name,c=o,f=u;if(i&&null!=c&&null!=f){var p=i(o,u,t,e,l);if(Array.isArray(p)){var h=zd(p,2);c=h[0],f=h[1]}else c=p}return ot().createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:n},ln(f)?ot().createElement("span",{className:"recharts-tooltip-item-name"},f):null,ln(f)?ot().createElement("span",{className:"recharts-tooltip-item-separator"},r):null,ot().createElement("span",{className:"recharts-tooltip-item-value"},c),ot().createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return ot().createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function Gd(t){return Gd="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},Gd(t)}function Kd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Yd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Kd(Object(r),!0).forEach((function(e){Xd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Xd(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Gd(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Gd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Gd(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}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,i,o,a,u=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Zd(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 Zd(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 Zd(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 Qd="recharts-tooltip-wrapper";function ty(t){return t.dataKey}var ey={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:!ei.isSsr,animationEasing:"ease",animationDuration:400,filterNull:!0,useTranslate3d:!1},ry=function(t){var e,r=Jd((0,it.useState)(-1),2),n=r[0],i=r[1],o=Jd((0,it.useState)(-1),2),a=o[0],u=o[1],c=Jd((0,it.useState)(!1),2),l=c[0],s=c[1],f=Jd((0,it.useState)({x:0,y:0}),2),p=f[0],h=f[1],d=(0,it.useRef)(),y=t.allowEscapeViewBox,v=t.reverseDirection,m=t.coordinate,g=t.offset,b=t.position,x=t.viewBox,w=(0,it.useCallback)((function(t){"Escape"===t.key&&(s(!0),h((function(t){return Yd(Yd({},t),{},{x:null==m?void 0:m.x,y:null==m?void 0:m.y})})))}),[null==m?void 0:m.x,null==m?void 0:m.y]);(0,it.useEffect)((function(){return function(){if(l?(document.removeEventListener("keydown",w),(null==m?void 0:m.x)===p.x&&(null==m?void 0:m.y)===p.y||s(!1)):document.addEventListener("keydown",w),d.current&&d.current.getBoundingClientRect){var t=d.current.getBoundingClientRect();(Math.abs(t.width-n)>1||Math.abs(t.height-a)>1)&&(i(t.width),u(t.height))}else-1===n&&-1===a||(i(-1),u(-1))}(),function(){document.removeEventListener("keydown",w)}}),[a,n,m,l,p.x,p.y,w]);var O,_,S=function(t){var e=t.key,r=t.tooltipDimension,n=t.viewBoxDimension;if(b&&cn(b[e]))return b[e];var i=m[e]-r-g,o=m[e]+g;return null!=y&&y[e]?v[e]?i:o:null!=v&&v[e]?i<x[e]?Math.max(o,x[e]):Math.max(i,x[e]):o+r>x[e]+n?Math.max(i,x[e]):Math.max(o,x[e])},E=t.payload,k=t.payloadUniqBy,j=t.filterNull,A=t.active,P=t.wrapperStyle,M=t.useTranslate3d,T=t.isAnimationActive,C=t.animationDuration,D=t.animationEasing,N=function(t,e){return!0===t?Of()(e,ty):J()(t)?Of()(e,t):e}(k,j&&E&&E.length?E.filter((function(t){return!et()(t.value)})):E),I=N&&N.length,R=t.content,L=Yd({pointerEvents:"none",visibility:!l&&A&&I?"visible":"hidden",position:"absolute",top:0,left:0},P);b&&cn(b.x)&&cn(b.y)?(O=b.x,_=b.y):n>0&&a>0&&m?(O=S({key:"x",tooltipDimension:n,viewBoxDimension:x.width}),_=S({key:"y",tooltipDimension:a,viewBoxDimension:x.height})):L.visibility="hidden",L=Yd(Yd({},oe({transform:M?"translate3d(".concat(O,"px, ").concat(_,"px, 0)"):"translate(".concat(O,"px, ").concat(_,"px)")})),L),T&&A&&(L=Yd(Yd({},oe({transition:"transform ".concat(C,"ms ").concat(D)})),L));var B=ut()(Qd,(Xd(e={},"".concat(Qd,"-right"),cn(O)&&m&&cn(m.x)&&O>=m.x),Xd(e,"".concat(Qd,"-left"),cn(O)&&m&&cn(m.x)&&O<m.x),Xd(e,"".concat(Qd,"-bottom"),cn(_)&&m&&cn(m.y)&&_>=m.y),Xd(e,"".concat(Qd,"-top"),cn(_)&&m&&cn(m.y)&&_<m.y),e));return ot().createElement("div",{tabIndex:-1,role:"dialog",className:B,style:L,ref:d},function(t,e){return ot().isValidElement(t)?ot().cloneElement(t,e):J()(t)?ot().createElement(t,e):ot().createElement(qd,e)}(R,Yd(Yd({},t),{},{payload:N})))};function ny(){return ny=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},ny.apply(this,arguments)}ry.displayName="Tooltip",ry.defaultProps=ey;var iy=function(t,e,r,n,i,o){return"M".concat(t,",").concat(i,"v").concat(n,"M").concat(o,",").concat(e,"h").concat(r)},oy=function(t){var e=t.x,r=t.y,n=t.width,i=t.height,o=t.top,a=t.left,u=t.className;return cn(e)&&cn(r)&&cn(n)&&cn(i)&&cn(o)&&cn(a)?ot().createElement("path",ny({},Mn(t,!0),{className:ut()("recharts-cross",u),d:iy(e,r,n,i,o,a)})):null};function ay(){return ay=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ay.apply(this,arguments)}oy.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};var uy=function(t){var e=t.cx,r=t.cy,n=t.radius,i=t.angle,o=t.sign,a=t.isExternal,u=t.cornerRadius,c=t.cornerIsExternal,l=u*(a?1:-1)+n,s=Math.asin(u/l)/Pi,f=c?i:i+o*s,p=c?i-o*s:i;return{center:Ti(e,r,l,f),circleTangency:Ti(e,r,n,f),lineTangency:Ti(e,r,l*Math.cos(s*Pi),p),theta:s}},cy=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.startAngle,a=function(t,e){return an(e-t)*Math.min(Math.abs(e-t),359.999)}(o,t.endAngle),u=o+a,c=Ti(e,r,i,o),l=Ti(e,r,i,u),s="M ".concat(c.x,",").concat(c.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>u),",\n ").concat(l.x,",").concat(l.y,"\n ");if(n>0){var f=Ti(e,r,n,o),p=Ti(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(+(o<=u),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},ly=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,u=t.cornerIsExternal,c=t.startAngle,l=t.endAngle,s=t.className;if(i<n||c===l)return null;var f,p=ut()("recharts-sector",s),h=i-n,d=pn(o,h,0,!0);return f=d>0&&Math.abs(c-l)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,u=t.cornerIsExternal,c=t.startAngle,l=t.endAngle,s=an(l-c),f=uy({cx:e,cy:r,radius:i,angle:c,sign:s,cornerRadius:o,cornerIsExternal:u}),p=f.circleTangency,h=f.lineTangency,d=f.theta,y=uy({cx:e,cy:r,radius:i,angle:l,sign:-s,cornerRadius:o,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(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):cy({cx:e,cy:r,innerRadius:n,outerRadius:i,startAngle:c,endAngle:l});var x="M ".concat(h.x,",").concat(h.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(n>0){var w=uy({cx:e,cy:r,radius:n,angle:c,sign:s,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),O=w.circleTangency,_=w.lineTangency,S=w.theta,E=uy({cx:e,cy:r,radius:n,angle:l,sign:-s,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),k=E.circleTangency,j=E.lineTangency,A=E.theta,P=u?Math.abs(c-l):Math.abs(c-l)-S-A;if(P<0&&0===o)return"".concat(x,"L").concat(e,",").concat(r,"Z");x+="L".concat(j.x,",").concat(j.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(k.x,",").concat(k.y,"\n A").concat(n,",").concat(n,",0,").concat(+(P>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(_.x,",").concat(_.y,"Z")}else x+="L".concat(e,",").concat(r,"Z");return x}({cx:e,cy:r,innerRadius:n,outerRadius:i,cornerRadius:Math.min(d,h/2),forceCornerRadius:a,cornerIsExternal:u,startAngle:c,endAngle:l}):cy({cx:e,cy:r,innerRadius:n,outerRadius:i,startAngle:c,endAngle:l}),ot().createElement("path",ay({},Mn(t,!0),{className:p,d:f,role:"img"}))};ly.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};var sy=["viewBox"],fy=["viewBox"],py=["ticks"];function hy(t){return hy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hy(t)}function 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 yy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yy(Object(r),!0).forEach((function(e){Oy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function my(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function gy(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,_y(n.key),n)}}function by(t,e){return by=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},by(t,e)}function xy(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=wy(t);if(e){var i=wy(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===hy(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 wy(t){return wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wy(t)}function Oy(t,e,r){return(e=_y(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _y(t){var e=function(t,e){if("object"!==hy(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==hy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===hy(e)?e:String(e)}var Sy=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&&by(t,e)}(o,t);var e,r,n,i=xy(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this,t)).state={fontSize:"",letterSpacing:""},e}return e=o,r=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=my(t,sy),i=this.props,o=i.viewBox,a=my(i,fy);return!vn(r,o)||!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,i,o,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=(i=l+ +!d*f)-v*m)-v*y,o=g;break;case"left":n=i=t.coordinate,o=(e=(r=c+ +!d*s)-v*m)-v*y,a=g;break;case"right":n=i=t.coordinate,o=(e=(r=c+ +d*s)+v*m)+v*y,a=g;break;default:e=r=t.coordinate,a=(n=(i=l+ +d*f)+v*m)+v*y,o=g}return{line:{x1:e,y1:n,x2:r,y2:i},tick:{x:o,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,i=t.height,o=t.orientation,a=t.mirror,u=t.axisLine,c=vy(vy(vy({},Mn(this.props)),Mn(u)),{},{fill:"none"});if("top"===o||"bottom"===o){var l=+("top"===o&&!a||"bottom"===o&&a);c=vy(vy({},c),{},{x1:e,y1:r+l*i,x2:e+n,y2:r+l*i})}else{var s=+("left"===o&&!a||"right"===o&&a);c=vy(vy({},c),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+i})}return ot().createElement("line",dy({},c,{className:ut()("recharts-cartesian-axis-line",Q()(u,"className"))}))}},{key:"renderTicks",value:function(t,e,r){var n=this,i=this.props,a=i.tickLine,u=i.stroke,c=i.tick,l=i.tickFormatter,s=i.unit,f=Bd(vy(vy({},this.props),{},{ticks:t}),e,r),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),d=Mn(this.props),y=Mn(c),v=vy(vy({},d),{},{fill:"none"},Mn(a)),m=f.map((function(t,e){var r=n.getTickLineCoord(t),i=r.line,m=r.tick,g=vy(vy(vy(vy({textAnchor:p,verticalAnchor:h},d),{},{stroke:"none",fill:u},y),m),{},{index:e,payload:t,visibleTicksCount:f.length,tickFormatter:l});return ot().createElement(Xn,dy({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e)},Qr(n.props,t,e)),a&&ot().createElement("line",dy({},v,i,{className:ut()("recharts-cartesian-axis-tick-line",Q()(a,"className"))})),c&&o.renderTickItem(c,g,"".concat(J()(l)?l(t.value,e):t.value).concat(s||"")))}));return ot().createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,i=e.height,o=e.ticksGenerator,a=e.className;if(e.hide)return null;var u=this.props,c=u.ticks,l=my(u,py),s=c;return J()(o)&&(s=c&&c.length>0?o(this.props):o(l)),n<=0||i<=0||!s||!s.length?null:ot().createElement(Xn,{className:ut()("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),Gi.renderCallByParent(this.props))}}],n=[{key:"renderTickItem",value:function(t,e,r){return ot().isValidElement(t)?ot().cloneElement(t,e):J()(t)?t(e):ot().createElement(Si,dy({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&gy(e.prototype,r),n&&gy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(it.Component);function Ey(t){return Ey="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},Ey(t)}function ky(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 jy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ky(Object(r),!0).forEach((function(e){Ay(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ky(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ay(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ey(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ey(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ey(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Oy(Sy,"displayName","CartesianAxis"),Oy(Sy,"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 Py=["Webkit","Moz","O","ms"];function My(t){return My="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},My(t)}function Ty(){return Ty=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ty.apply(this,arguments)}function 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 Dy(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){Uy(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 Ny(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,zy(n.key),n)}}function Iy(t,e){return Iy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Iy(t,e)}function Ry(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=By(t);if(e){var i=By(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===My(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ly(t)}(this,r)}}function Ly(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function By(t){return By=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},By(t)}function Uy(t,e,r){return(e=zy(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zy(t){var e=function(t,e){if("object"!==My(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==My(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===My(e)?e:String(e)}var Fy=function(t){return t.changedTouches&&!!t.changedTouches.length},$y=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&&Iy(t,e)}(o,t);var e,r,n,i=Ry(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),Uy(Ly(e=i.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)})),Uy(Ly(e),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])})),Uy(Ly(e),"handleDragEnd",(function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1}),e.detachDragEndListener()})),Uy(Ly(e),"handleLeaveWrapper",(function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))})),Uy(Ly(e),"handleEnterSlideOrTraveller",(function(){e.setState({isTextActive:!0})})),Uy(Ly(e),"handleLeaveSlideOrTraveller",(function(){e.setState({isTextActive:!1})})),Uy(Ly(e),"handleSlideDragStart",(function(t){var r=Fy(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),e.attachDragEndListener()})),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(Ly(e),"startX"),endX:e.handleTravellerDragStart.bind(Ly(e),"endX")},e.state={},e}return e=o,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,i=this.props,a=i.gap,u=i.data.length-1,c=Math.min(e,r),l=Math.max(e,r),s=o.getIndexInRange(n,c),f=o.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,i=e.dataKey,o=Cp(r[t],i,t);return J()(n)?n(o,t):o}},{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,i=e.endX,o=this.props,a=o.x,u=o.width,c=o.travellerWidth,l=o.startIndex,s=o.endIndex,f=o.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+u-c-i,a+u-c-n):p<0&&(p=Math.max(p,a-n,a-i));var h=this.getIndex({startX:n+p,endX:i+p});h.startIndex===l&&h.endIndex===s||!f||f(h),this.setState({startX:n+p,endX:i+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=Fy(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,i=r.movingTravellerId,o=r.endX,a=r.startX,u=this.state[i],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[i]=u+v;var m=this.getIndex(y),g=m.startIndex,b=m.endIndex;this.setState((Uy(e={},i,u+v),Uy(e,"brushMoveStartX",t.pageX),e),(function(){var t;p&&(t=d.length-1,("startX"===i&&(o>a?g%h==0:b%h==0)||o<a&&b===t||"endX"===i&&(o>a?b%h==0:g%h==0)||o>a&&b===t)&&p(m))}))}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.fill,a=t.stroke;return ot().createElement("rect",{stroke:a,fill:o,x:e,y:r,width:n,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.data,a=t.children,u=t.padding,c=it.Children.only(a);return c?ot().cloneElement(c,{x:e,y:r,width:n,height:i,margin:u,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(t,e){var r=this.props,n=r.y,i=r.travellerWidth,a=r.height,u=r.traveller,c=Math.max(t,this.props.x),l=Dy(Dy({},Mn(this.props)),{},{x:c,y:n,width:i,height:a});return ot().createElement(Xn,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],style:{cursor:"col-resize"}},o.renderTraveller(u,l))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,i=r.height,o=r.stroke,a=r.travellerWidth,u=Math.min(t,e)+a,c=Math.max(Math.abs(e-t)-a,0);return ot().createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:u,y:n,width:c,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,i=t.height,o=t.travellerWidth,a=t.stroke,u=this.state,c=u.startX,l=u.endX,s={pointerEvents:"none",fill:a};return ot().createElement(Xn,{className:"recharts-brush-texts"},ot().createElement(Si,Ty({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,l)-5,y:n+i/2},s),this.getTextOfTick(e)),ot().createElement(Si,Ty({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,l)+o+5,y:n+i/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,i=t.x,o=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;if(!e||!e.length||!cn(i)||!cn(o)||!cn(a)||!cn(u)||a<=0||u<=0)return null;var y=ut()("recharts-brush",r),v=1===ot().Children.count(n),m=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),n=Py.reduce((function(t,n){return jy(jy({},t),{},Ay({},n+r,e))}),{});return n[t]=e,n}("userSelect","none");return ot().createElement(Xn,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(p||h||d||c)&&this.renderText())}}],n=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,i=t.height,o=t.stroke,a=Math.floor(r+i/2)-1;return ot().createElement(ot().Fragment,null,ot().createElement("rect",{x:e,y:r,width:n,height:i,fill:o,stroke:"none"}),ot().createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),ot().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 ot().isValidElement(t)?ot().cloneElement(t,e):J()(t)?t(e):o.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,u=t.startIndex,c=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return Dy({prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,i=t.x,o=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var u=e.length,c=po().domain(Yh()(0,u)).range([i,i+o-a]),l=c.domain().map((function(t){return c(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:c(r),endX:c(n),scale:c,scaleValues:l}}({data:r,width:n,x:i,travellerWidth:o,startIndex:u,endIndex:c}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+n-o]);var l=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,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 i=Math.floor((r+n)/2);t[i]>e?n=i:r=i}return e>=t[n]?n:r}}],r&&Ny(e.prototype,r),n&&Ny(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(it.PureComponent);Uy($y,"displayName","Brush"),Uy($y,"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 Vy=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e};function Hy(t){return Hy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hy(t)}function Wy(){return Wy=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},Wy.apply(this,arguments)}function qy(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 Gy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qy(Object(r),!0).forEach((function(e){Ky(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ky(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Hy(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Hy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Hy(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Yy(t){var e=t.x,r=t.y,n=t.r,i=t.alwaysShow,o=t.clipPathId,a=ln(e),u=ln(r);if(Uh(void 0===i,'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,i=t.yAxis,o=Md({x:n.scale,y:i.scale}),a=o.apply({x:e,y:r},{bandAware:!0});return Vy(t,"discard")&&!o.isInRange(a)?null:a}(t);if(!c)return null;var l=c.x,s=c.y,f=t.shape,p=t.className,h=Gy(Gy({clipPath:Vy(t,"hidden")?"url(#".concat(o,")"):void 0},Mn(t,!0)),{},{cx:l,cy:s});return ot().createElement(Xn,{className:ut()("recharts-reference-dot",p)},Yy.renderDot(f,h),Gi.renderCallByParent(t,{x:l-n,y:s-n,width:2*n,height:2*n}))}Yy.displayName="ReferenceDot",Yy.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},Yy.renderDot=function(t,e){return ot().isValidElement(t)?ot().cloneElement(t,e):J()(t)?t(e):ot().createElement(qn,Wy({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};var Xy=r(9704),Jy=r.n(Xy);function Zy(t){return Zy="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},Zy(t)}function Qy(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 tv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Qy(Object(r),!0).forEach((function(e){ev(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ev(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Zy(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Zy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Zy(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rv(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,i,o,a,u=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return nv(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 nv(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 nv(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 iv(){return iv=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},iv.apply(this,arguments)}function ov(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxis,o=t.yAxis,a=t.shape,u=t.className,c=t.alwaysShow,l=t.clipPathId;Uh(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var s=function(t,e,r,n,i){var o=i.viewBox,a=o.x,u=o.y,c=o.width,l=o.height,s=i.position;if(r){var f=i.y,p=i.yAxis.orientation,h=t.y.apply(f,{position:s});if(Vy(i,"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=i.x,v=i.xAxis.orientation,m=t.x.apply(y,{position:s});if(Vy(i,"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=i.segment.map((function(e){return t.apply(e,{position:s})}));return Vy(i,"discard")&&Jy()(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(Md({x:i.scale,y:o.scale}),ln(e),ln(r),n&&2===n.length,t);if(!s)return null;var f=rv(s,2),p=f[0],h=p.x,d=p.y,y=f[1],v=y.x,m=y.y,g=tv(tv({clipPath:Vy(t,"hidden")?"url(#".concat(l,")"):void 0},Mn(t,!0)),{},{x1:h,y1:d,x2:v,y2:m});return ot().createElement(Xn,{className:ut()("recharts-reference-line",u)},function(t,e){return ot().isValidElement(t)?ot().cloneElement(t,e):J()(t)?t(e):ot().createElement("line",iv({},e,{className:"recharts-reference-line-line"}))}(a,g),Gi.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;return Ad({x:e,y:r},{x:n,y:i})}({x1:h,y1:d,x2:v,y2:m})))}function av(t){return av="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},av(t)}function uv(){return uv=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},uv.apply(this,arguments)}function cv(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 lv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cv(Object(r),!0).forEach((function(e){sv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sv(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==av(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==av(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===av(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}ov.displayName="ReferenceLine",ov.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function fv(t){var e=t.x1,r=t.x2,n=t.y1,i=t.y2,o=t.className,a=t.alwaysShow,u=t.clipPathId;Uh(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(i),p=t.shape;if(!(c||l||s||f||p))return null;var h=function(t,e,r,n,i){var o=i.x1,a=i.x2,u=i.y1,c=i.y2,l=i.xAxis,s=i.yAxis;if(!l||!s)return null;var f=Md({x:l.scale,y:s.scale}),p={x:t?f.x.apply(o,{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!Vy(i,"discard")||f.isInRange(p)&&f.isInRange(h)?Ad(p,h):null}(c,l,s,f,t);if(!h&&!p)return null;var d=Vy(t,"hidden")?"url(#".concat(u,")"):void 0;return ot().createElement(Xn,{className:ut()("recharts-reference-area",o)},fv.renderRect(p,lv(lv({clipPath:d},Mn(t,!0)),h)),Gi.renderCallByParent(t,h))}function pv(t){return function(t){if(Array.isArray(t))return hv(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 hv(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 hv(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 hv(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}fv.displayName="ReferenceArea",fv.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},fv.renderRect=function(t,e){return ot().isValidElement(t)?ot().cloneElement(t,e):J()(t)?t(e):ot().createElement(ad,uv({},e,{className:"recharts-reference-area-rect"}))};var dv=function(t,e,r,n,i){var o=En(t,ov),a=En(t,Yy),u=[].concat(pv(o),pv(a)),c=En(t,fv),l="".concat(n,"Id"),s=n[0],f=e;if(u.length&&(f=u.reduce((function(t,e){if(e.props[l]===r&&Vy(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&&Vy(e.props,"extendDomain")&&cn(e.props[p])&&cn(e.props[h])){var n=e.props[p],i=e.props[h];return[Math.min(t[0],n,i),Math.max(t[1],n,i)]}return t}),f)}return i&&i.length&&(f=i.reduce((function(t,e){return cn(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},yv=r(6729),vv=new(r.n(yv)());vv.setMaxListeners&&vv.setMaxListeners(10);var mv="recharts.syncMouseEvents";function gv(t){return gv="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},gv(t)}function bv(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,wv(n.key),n)}}function xv(t,e,r){return(e=wv(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wv(t){var e=function(t,e){if("object"!==gv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==gv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===gv(e)?e:String(e)}var Ov=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),xv(this,"activeIndex",0),xv(this,"coordinateList",[]),xv(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,i=void 0===n?null:n,o=t.layout,a=void 0===o?null:o,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!=i?i: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>=this.coordinateList.length&&(this.activeIndex=this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){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){var t=this.container.getBoundingClientRect(),e=t.x,r=t.y,n=e+this.coordinateList[this.activeIndex].coordinate,i=r+this.offset.top;this.mouseHandlerCallback({pageX:n,pageY:i})}}}])&&bv(e.prototype,r),n&&bv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),_v=["item"],Sv=["children","className","width","height","style","compact","title","desc"];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){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,i,o,a,u=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,e)||Iv(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 jv(){return jv=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},jv.apply(this,arguments)}function Av(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Pv(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,zv(n.key),n)}}function Mv(t,e){return Mv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Mv(t,e)}function Tv(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=Dv(t);if(e){var i=Dv(this).constructor;r=Reflect.construct(n,arguments,i)}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 Cv(t)}(this,r)}}function Cv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Dv(t){return Dv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Dv(t)}function Nv(t){return function(t){if(Array.isArray(t))return Rv(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Iv(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 Iv(t,e){if(t){if("string"==typeof t)return Rv(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)?Rv(t,e):void 0}}function Rv(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 Lv(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 Bv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Lv(Object(r),!0).forEach((function(e){Uv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Uv(t,e,r){return(e=zv(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zv(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 Fv={xAxis:["bottom","top"],yAxis:["left","right"]},$v={x:0,y:0},Vv=Number.isFinite?Number.isFinite:isFinite,Hv="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,Wv="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,qv=function(t,e,r){var n=e.graphicalItems,i=e.dataStartIndex,o=e.dataEndIndex,a=(n||[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(Nv(t),Nv(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(i)&&cn(o)?t.slice(i,o+1):[]};function Gv(t){return"number"===t?[0,"auto"]:void 0}var Kv=function(t,e,r,n){var i=t.graphicalItems,o=t.tooltipAxis,a=qv(e,t);return r<0||!i||!i.length||r>=a.length?null:i.reduce((function(t,e){if(e.props.hide)return t;var i,u=e.props.data;o.dataKey&&!o.allowDuplicatedCategory?i=yn(void 0===u?a:u,o.dataKey,n):i=u&&u[r]||a[r];return i?[].concat(Nv(t),[Qp(e,i)]):t}),[])},Yv=function(t,e,r,n){var i=n||{x:t.chartX,y:t.chartY},o=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(i,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,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var u=i.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]){o=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){o=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){o=r[b].index;break}return o}(o,a,c,u);if(l>=0&&c){var s=c[l]&&c[l].value,f=Kv(t,e,l,s),p=function(t,e,r,n){var i=e.find((function(t){return t&&t.index===r}));if(i){if("horizontal"===t)return{x:i.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:i.coordinate};if("centric"===t){var o=i.coordinate,a=n.radius;return Bv(Bv(Bv({},n),Ti(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var u=i.coordinate,c=n.angle;return Bv(Bv(Bv({},n),Ti(n.cx,n.cy,u,c)),{},{angle:c,radius:u})}return $v}(r,a,l,i);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},Xv=function(t,e){var r=e.axes,n=e.graphicalItems,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=Bp(l,i),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[o];if(e[O])return e;var _,S,E,k=qv(t.data,{graphicalItems:n.filter((function(t){return t.props[o]===O})),dataStartIndex:u,dataEndIndex:c}),j=k.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],i=null==t?void 0:t[1];if(n&&i&&cn(n)&&cn(i))return!0}return!1})(r.props.domain,m,y)&&(_=Xp(r.props.domain,null,m),!p||"number"!==y&&"auto"===b||(E=Dp(k,v,"category")));var A=Gv(y);if(!_||0===_.length){var P,M=null!==(P=r.props.domain)&&void 0!==P?P:A;if(v){if(_=Dp(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}(_);g&&T?(S=_,_=Yh()(0,j)):g||(_=Zp(M,_,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(Nv(t),[e])}),[]))}else if("category"===y)_=g?_.filter((function(t){return""!==t&&!et()(t)})):Zp(M,_,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||et()(e)?t:[].concat(Nv(t),[e])}),[]);else if("number"===y){var C=function(t,e,r,n,i){var o=e.map((function(e){return Rp(t,e,r,i,n)})).filter((function(t){return!et()(t)}));return o&&o.length?o.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[o]===O&&(w||!t.props.hide)})),v,i,l);C&&(_=C)}!p||"number"!==y&&"auto"===b||(E=Dp(k,v,"category"))}else _=p?Yh()(0,j):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:Gp(a[O].stackGroups,u,c):Lp(k,n.filter((function(t){return t.props[o]===O&&(w||!t.props.hide)})),y,l,!0);if("number"===y)_=dv(s,_,O,i,x),M&&(_=Xp(M,_,m));else if("category"===y&&M){var D=M;_.every((function(t){return D.indexOf(t)>=0}))&&(_=D)}}return Bv(Bv({},e),{},Uv({},O,Bv(Bv({},r.props),{},{axisType:i,domain:_,categoricalDomain:E,duplicateDomain:S,originalDomain:null!==(h=r.props.domain)&&void 0!==h?h:A,isCategorical:p,layout:l})))}),{});return h},Jv=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=En(l,i),p={};return f&&f.length?p=Xv(t,{axes:f,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c}):o&&o.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,l=t.layout,s=t.children,f=qv(t.data,{graphicalItems:r,dataStartIndex:u,dataEndIndex:c}),p=f.length,h=Bp(l,i),d=-1;return r.reduce((function(t,e){var y,v=e.props[o],m=Gv("number");return t[v]?t:(d++,h?y=Yh()(0,p):a&&a[v]&&a[v].hasStack?(y=Gp(a[v].stackGroups,u,c),y=dv(s,y,v,i)):(y=Xp(m,Lp(f,r.filter((function(t){return t.props[o]===v&&!t.props.hide})),"number",l),n.defaultProps.allowDataOverflow),y=dv(s,y,v,i)),Bv(Bv({},t),{},Uv({},v,Bv(Bv({axisType:i},n.defaultProps),{},{hide:!0,orientation:Q()(Fv,"".concat(i,".").concat(d%2),null),domain:y,originalDomain:m,isCategorical:h,layout:l}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:c})),p},Zv=function(t){var e,r,n=t.children,i=t.defaultShowTooltip,o=kn(n,$y);return{chartX:0,chartY:0,dataStartIndex:o&&o.props&&o.props.startIndex||0,dataEndIndex:void 0!==(null==o||null===(e=o.props)||void 0===e?void 0:e.endIndex)?null==o||null===(r=o.props)||void 0===r?void 0:r.endIndex:t.data&&t.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!et()(i)&&i}},Qv=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"}},tm=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),i=void 0===n?{}:n,o=t.yAxisMap,a=void 0===o?{}:o,u=r.width,c=r.height,l=r.children,s=r.margin||{},f=kn(l,$y),p=kn(l,Ep),h=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:Bv(Bv({},t),{},Uv({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),d=Object.keys(i).reduce((function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:Bv(Bv({},t),{},Uv({},n,Q()(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=Bv(Bv({},d),h),v=y.bottom;return f&&(y.bottom+=f.props.height||$y.defaultProps.height),p&&e&&(y=function(t,e,r,n){var i=r.children,o=r.width,a=r.margin,u=o-(a.left||0)-(a.right||0),c=Ip({children:i,legendWidth:u}),l=t;if(c){var s=n||{},f=c.align,p=c.verticalAlign,h=c.layout;("vertical"===h||"horizontal"===h&&"middle"===p)&&cn(t[f])&&(l=Mp(Mp({},t),{},Tp({},f,l[f]+(s.width||0)))),("horizontal"===h||"vertical"===h&&"center"===f)&&cn(t[p])&&(l=Mp(Mp({},t),{},Tp({},p,l[p]+(s.height||0))))}return l}(y,0,r,e)),Bv(Bv({brushBottom:v},y),{},{width:u-y.left-y.right,height:c-y.top-y.bottom})},em=function(){return null};em.displayName="XAxis",em.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 rm=function(){return null};rm.displayName="YAxis",rm.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 nm=function(t){var e,r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,o=void 0===i?"axis":i,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,i=e.offset,o=e.updateId,a=e.dataStartIndex,u=e.dataEndIndex,l=t.barSize,s=t.layout,f=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,d=Qv(s),y=d.numericAxisName,v=d.cateAxisName,m=function(t){return!(!t||!t.length)&&t.some((function(t){var e=wn(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 i={},o=Object.keys(n),a=0,u=o.length;a<u;a++)for(var c=n[o[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 wn(t.type).indexOf("Bar")>=0}));if(y&&y.length){var v=y[0].props.barSize,m=y[0].props[d];i[m]||(i[m]=[]),i[m].push({item:y[0],stackList:y.slice(1),barSize:et()(v)?e:v})}}return i}({barSize:l,stackGroups:n}),b=[];return r.forEach((function(r,l){var d=qv(t.data,{dataStartIndex:a,dataEndIndex:u},r),m=r.props,x=m.dataKey,w=m.maxBarSize,O=r.props["".concat(y,"Id")],_=r.props["".concat(v,"Id")],S=c.reduce((function(t,n){var i,o=e["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],u=o&&o[a];return Bv(Bv({},t),{},(Uv(i={},n.axisType,u),Uv(i,"".concat(n.axisType,"Ticks"),zp(u)),i))}),{}),E=S[v],k=S["".concat(v,"Ticks")],j=n&&n[O]&&n[O].hasStack&&function(t,e){var r=t.props.stackId;if(ln(r)){var n=e[r];if(n&&n.items.length){for(var i=-1,o=0,a=n.items.length;o<a;o++)if(n.items[o]===t){i=o;break}return i>=0?n.stackedData[i]:null}}return null}(r,n[O].stackGroups),A=wn(r.type).indexOf("Bar")>=0,P=Jp(E,k),M=[];if(A){var T,C,D=et()(w)?h:w,N=null!==(T=null!==(C=Jp(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,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,u=o.length;if(u<1)return null;var c,l=pn(e,n,0,!0);if(o[0].barSize===+o[0].barSize){var s=!1,f=n/u,p=o.reduce((function(t,e){return t+e.barSize||0}),0);(p+=(u-1)*l)>=n&&(p-=(u-1)*l,l=0),p>=n&&f>0&&(s=!0,p=u*(f*=.9));var h={offset:((n-p)/2>>0)-l,size:0};c=o.reduce((function(t,e){var r=[].concat(jp(t),[{item:e.item,position:{offset:h.offset+h.size+l,size:s?f:e.barSize}}]);return h=r[r.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){r.push({item:t,position:h})})),r}),[])}else{var d=pn(r,n,0,!0);n-2*d-(u-1)*l<=0&&(l=0);var y=(n-2*d-(u-1)*l)/u;y>1&&(y>>=0);var v=a===+a?Math.min(y,a):y;c=o.reduce((function(t,e,r){var n=[].concat(jp(t),[{item:e.item,position:{offset:d+(y+l)*r+(y-v)/2,size:v}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:n[n.length-1].position})})),n}),[])}return c}({barGap:f,barCategoryGap:p,bandSize:N!==P?N:P,sizeList:g[_],maxBarSize:D}),N!==P&&(M=M.map((function(t){return Bv(Bv({},t),{},{position:Bv(Bv({},t.position),{},{offset:t.position.offset-N/2})})})))}var I,R,L,B=r&&r.type&&r.type.getComposedData;B&&b.push({props:Bv(Bv({},B(Bv(Bv({},S),{},{displayedData:d,props:t,dataKey:x,item:r,bandSize:P,barPosition:M,offset:i,stackedData:j,layout:s,dataStartIndex:a,dataEndIndex:u}))),{},(I={key:r.key||"item-".concat(l)},Uv(I,y,S[y]),Uv(I,v,S[v]),Uv(I,"animationId",o),I)),childIndex:(R=r,L=t.children,Sn(L).indexOf(R)),item:r})})),b},h=function(t,e){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!jn({props:i}))return null;var l=i.children,f=i.layout,h=i.stackOffset,d=i.data,y=i.reverseStackOrder,v=Qv(f),m=v.numericAxisName,g=v.cateAxisName,b=En(l,n),x=function(t,e,r,n,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce((function(t,e){var i=e.props,o=i.stackId;if(i.hide)return t;var a=e.props[r],u=t[a]||{hasStack:!1,stackGroups:{}};if(ln(o)){var c=u.stackGroups[o]||{numericAxisId:r,cateAxisId:n,items:[]};c.items.push(e),u.hasStack=!0,u.stackGroups[o]=c}else u.stackGroups[fn("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return Mp(Mp({},t),{},Tp({},a,u))}),{});return Object.keys(a).reduce((function(e,o){var u=a[o];return u.hasStack&&(u.stackGroups=Object.keys(u.stackGroups).reduce((function(e,o){var a=u.stackGroups[o];return Mp(Mp({},e),{},Tp({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:Hp(t,a.items,i)}))}),{})),Mp(Mp({},e),{},Tp({},o,u))}),{})}(d,b,"".concat(m,"Id"),"".concat(g,"Id"),h,y),w=c.reduce((function(t,e){var r="".concat(e.axisType,"Map");return Bv(Bv({},t),{},Uv({},r,Jv(i,Bv(Bv({},e),{},{graphicalItems:b,stackGroups:e.axisType===m&&x,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=tm(Bv(Bv({},w),{},{props:i,graphicalItems:b}),null==e?void 0:e.legendBBox);Object.keys(w).forEach((function(t){w[t]=s(i,w[t],O,t.replace("Map",""),r)}));var _,S,E=w["".concat(g,"Map")],k=(_=hn(E),{tooltipTicks:S=zp(_,!1,!0),orderedTooltipTicks:Xi()(S,(function(t){return t.coordinate})),tooltipAxis:_,tooltipAxisBandSize:Jp(_,S)}),j=p(i,Bv(Bv({},w),{},{dataStartIndex:o,dataEndIndex:a,updateId:u,graphicalItems:b,stackGroups:x,offset:O}));return Bv(Bv({formattedGraphicalItems:j,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&&Mv(t,e)}(c,t);var e,n,i,a=Tv(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),Uv(Cv(e=a.call(this,t)),"accessibilityManager",new Ov),Uv(Cv(e),"clearDeferId",(function(){!et()(e.deferId)&&Wv&&Wv(e.deferId),e.deferId=null})),Uv(Cv(e),"handleLegendBBoxUpdate",(function(t){if(t){var r=e.state,n=r.dataStartIndex,i=r.dataEndIndex,o=r.updateId;e.setState(Bv({legendBBox:t},h({props:e.props,dataStartIndex:n,dataEndIndex:i,updateId:o},Bv(Bv({},e.state),{},{legendBBox:t}))))}})),Uv(Cv(e),"handleReceiveSyncEvent",(function(t,r,n){e.props.syncId===t&&r!==e.uniqueChartId&&(e.clearDeferId(),e.deferId=Hv&&Hv(e.applySyncEvent.bind(Cv(e),n)))})),Uv(Cv(e),"handleBrushChange",(function(t){var r=t.startIndex,n=t.endIndex;if(r!==e.state.dataStartIndex||n!==e.state.dataEndIndex){var i=e.state.updateId;e.setState((function(){return Bv({dataStartIndex:r,dataEndIndex:n},h({props:e.props,dataStartIndex:r,dataEndIndex:n,updateId:i},e.state))})),e.triggerSyncEvent({dataStartIndex:r,dataEndIndex:n})}})),Uv(Cv(e),"handleMouseEnter",(function(t){var r=e.props.onMouseEnter,n=e.getMouseInfo(t);if(n){var i=Bv(Bv({},n),{},{isTooltipActive:!0});e.setState(i),e.triggerSyncEvent(i),J()(r)&&r(i,t)}})),Uv(Cv(e),"triggeredAfterMouseMove",(function(t){var r=e.props.onMouseMove,n=e.getMouseInfo(t),i=n?Bv(Bv({},n),{},{isTooltipActive:!0}):{isTooltipActive:!1};e.setState(i),e.triggerSyncEvent(i),J()(r)&&r(i,t)})),Uv(Cv(e),"handleItemMouseEnter",(function(t){e.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),Uv(Cv(e),"handleItemMouseLeave",(function(){e.setState((function(){return{isTooltipActive:!1}}))})),Uv(Cv(e),"handleMouseMove",(function(t){t&&J()(t.persist)&&t.persist(),e.triggeredAfterMouseMove(t)})),Uv(Cv(e),"handleMouseLeave",(function(t){var r=e.props.onMouseLeave,n={isTooltipActive:!1};e.setState(n),e.triggerSyncEvent(n),J()(r)&&r(n,t),e.cancelThrottledTriggerAfterMouseMove()})),Uv(Cv(e),"handleOuterEvent",(function(t){var r=function(t){var e=t&&t.type;return e&&xn[e]?xn[e]:null}(t),n=Q()(e.props,"".concat(r));r&&J()(n)&&n(/.*touch.*/i.test(r)?e.getMouseInfo(t.changedTouches[0]):e.getMouseInfo(t),t)})),Uv(Cv(e),"handleClick",(function(t){var r=e.props.onClick,n=e.getMouseInfo(t);if(n){var i=Bv(Bv({},n),{},{isTooltipActive:!0});e.setState(i),e.triggerSyncEvent(i),J()(r)&&r(i,t)}})),Uv(Cv(e),"handleMouseDown",(function(t){var r=e.props.onMouseDown;J()(r)&&r(e.getMouseInfo(t),t)})),Uv(Cv(e),"handleMouseUp",(function(t){var r=e.props.onMouseUp;J()(r)&&r(e.getMouseInfo(t),t)})),Uv(Cv(e),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleMouseMove(t.changedTouches[0])})),Uv(Cv(e),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleMouseDown(t.changedTouches[0])})),Uv(Cv(e),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleMouseUp(t.changedTouches[0])})),Uv(Cv(e),"verticalCoordinatesGenerator",(function(t){var e=t.xAxis,r=t.width,n=t.height,i=t.offset;return Up(Bd(Bv(Bv(Bv({},Sy.defaultProps),e),{},{ticks:zp(e,!0),viewBox:{x:0,y:0,width:r,height:n}})),i.left,i.left+i.width)})),Uv(Cv(e),"horizontalCoordinatesGenerator",(function(t){var e=t.yAxis,r=t.width,n=t.height,i=t.offset;return Up(Bd(Bv(Bv(Bv({},Sy.defaultProps),e),{},{ticks:zp(e,!0),viewBox:{x:0,y:0,width:r,height:n}})),i.top,i.top+i.height)})),Uv(Cv(e),"axesTicksGenerator",(function(t){return zp(t,!0)})),Uv(Cv(e),"renderCursor",(function(t){var n=e.state,i=n.isTooltipActive,o=n.activeCoordinate,a=n.activePayload,u=n.offset,c=n.activeTooltipIndex,l=e.getTooltipEventType();if(!t||!t.props.cursor||!i||!o||"ScatterChart"!==r&&"axis"!==l)return null;var s,f=e.props.layout,p=Hn;if("ScatterChart"===r)s=o,p=oy;else if("BarChart"===r)s=e.getCursorRectangle(),p=ad;else if("radial"===f){var h=e.getCursorPoints(),d=h.cx,y=h.cy,v=h.radius;s={cx:d,cy:y,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:v,outerRadius:v},p=ly}else s={points:e.getCursorPoints()},p=Hn;var m=t.key||"_recharts-cursor",g=Bv(Bv(Bv(Bv({stroke:"#ccc",pointerEvents:"none"},u),s),Mn(t.props.cursor)),{},{payload:a,payloadIndex:c,key:m,className:"recharts-tooltip-cursor"});return(0,it.isValidElement)(t.props.cursor)?(0,it.cloneElement)(t.props.cursor,g):(0,it.createElement)(p,g)})),Uv(Cv(e),"renderPolarAxis",(function(t,r,n){var i=Q()(t,"type.axisType"),o=Q()(e.state,"".concat(i,"Map")),a=o&&o[t.props["".concat(i,"Id")]];return(0,it.cloneElement)(t,Bv(Bv({},a),{},{className:i,key:t.key||"".concat(r,"-").concat(n),ticks:zp(a,!0)}))})),Uv(Cv(e),"renderXAxis",(function(t,r,n){var i=e.state.xAxisMap[t.props.xAxisId];return e.renderAxis(i,t,r,n)})),Uv(Cv(e),"renderYAxis",(function(t,r,n){var i=e.state.yAxisMap[t.props.yAxisId];return e.renderAxis(i,t,r,n)})),Uv(Cv(e),"renderGrid",(function(t){var r=e.state,n=r.xAxisMap,i=r.yAxisMap,o=r.offset,a=e.props,u=a.width,c=a.height,l=hn(n),s=Gh()(i,(function(t){return Wh()(t.domain,Vv)}))||hn(i),f=t.props||{};return(0,it.cloneElement)(t,{key:t.key||"grid",x:cn(f.x)?f.x:o.left,y:cn(f.y)?f.y:o.top,width:cn(f.width)?f.width:o.width,height:cn(f.height)?f.height:o.height,xAxis:l,yAxis:s,offset:o,chartWidth:u,chartHeight:c,verticalCoordinatesGenerator:f.verticalCoordinatesGenerator||e.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:f.horizontalCoordinatesGenerator||e.horizontalCoordinatesGenerator})})),Uv(Cv(e),"renderPolarGrid",(function(t){var r=t.props,n=r.radialLines,i=r.polarAngles,o=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,it.cloneElement)(t,{polarAngles:nt()(i)?i:zp(s,!0).map((function(t){return t.coordinate})),polarRadius:nt()(o)?o:zp(l,!0).map((function(t){return t.coordinate})),cx:f,cy:p,innerRadius:h,outerRadius:d,key:t.key||"polar-grid",radialLines:n})})),Uv(Cv(e),"renderLegend",(function(){var t=e.state.formattedGraphicalItems,r=e.props,n=r.children,i=r.width,o=r.height,a=e.props.margin||{},u=i-(a.left||0)-(a.right||0),c=Ip({children:n,formattedGraphicalItems:t,legendWidth:u,legendContent:l});if(!c)return null;var s=c.item,f=Av(c,_v);return(0,it.cloneElement)(s,Bv(Bv({},f),{},{chartWidth:i,chartHeight:o,margin:a,ref:function(t){e.legendInstance=t},onBBoxUpdate:e.handleLegendBBoxUpdate}))})),Uv(Cv(e),"renderTooltip",(function(){var t=kn(e.props.children,ry);if(!t)return null;var r=e.state,n=r.isTooltipActive,i=r.activeCoordinate,o=r.activePayload,a=r.activeLabel,u=r.offset;return(0,it.cloneElement)(t,{viewBox:Bv(Bv({},u),{},{x:u.left,y:u.top}),active:n,label:a,payload:n?o:[],coordinate:i})})),Uv(Cv(e),"renderBrush",(function(t){var r=e.props,n=r.margin,i=r.data,o=e.state,a=o.offset,u=o.dataStartIndex,c=o.dataEndIndex,l=o.updateId;return(0,it.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:Fp(e.handleBrushChange,null,t.props.onChange),data:i,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)})})),Uv(Cv(e),"renderReferenceElement",(function(t,r,n){if(!t)return null;var i=Cv(e).clipPathId,o=e.state,a=o.xAxisMap,u=o.yAxisMap,c=o.offset,l=t.props,s=l.xAxisId,f=l.yAxisId;return(0,it.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:i})})),Uv(Cv(e),"renderActivePoints",(function(t){var e=t.item,r=t.activePoint,n=t.basePoint,i=t.childIndex,o=t.isRange,a=[],u=e.props.key,l=e.item.props,s=l.activeDot,f=Bv(Bv({index:i,dataKey:l.dataKey,cx:r.x,cy:r.y,r:4,fill:Np(e.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(u,"-activePoint-").concat(i)},Mn(s)),Zr(s));return a.push(c.renderActiveDot(s,f)),n?a.push(c.renderActiveDot(s,Bv(Bv({},f),{},{cx:n.x,cy:n.y,key:"".concat(u,"-basePoint-").concat(i)}))):o&&a.push(null),a})),Uv(Cv(e),"renderGraphicChild",(function(t,r,n){var i=e.filterFormatItem(t,r,n);if(!i)return null;var o=e.getTooltipEventType(),a=e.state,u=a.isTooltipActive,c=a.tooltipAxis,l=a.activeTooltipIndex,s=a.activeLabel,f=kn(e.props.children,ry),p=i.props,h=p.points,d=p.isRange,y=p.baseLine,v=i.item.props,m=v.activeDot,g=!v.hide&&u&&f&&m&&l>=0,b={};"axis"!==o&&f&&"click"===f.props.trigger?b={onClick:Fp(e.handleItemMouseEnter,null,t.props.onCLick)}:"axis"!==o&&(b={onMouseLeave:Fp(e.handleItemMouseLeave,null,t.props.onMouseLeave),onMouseEnter:Fp(e.handleItemMouseEnter,null,t.props.onMouseEnter)});var x=(0,it.cloneElement)(t,Bv(Bv({},i.props),b));if(g){var w,O;if(c.dataKey&&!c.allowDuplicatedCategory){var _="function"==typeof c.dataKey?function(t){return"function"==typeof c.dataKey?c.dataKey(t.payload):null}:"payload.".concat(c.dataKey.toString());w=yn(h,_,s),O=d&&y&&yn(y,_,s)}else w=h[l],O=d&&y&&y[l];if(!et()(w))return[x].concat(Nv(e.renderActivePoints({item:i,activePoint:w,basePoint:O,childIndex:l,isRange:d})))}return d?[x,null,null]:[x,null]})),Uv(Cv(e),"renderCustomized",(function(t,r,n){return(0,it.cloneElement)(t,Bv(Bv({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=Ph()(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.clearDeferId(),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=kn(this.props.children,ry);if(t&&Jh()(t.props.shared)){var e=t.props.shared?"axis":"item";return u.indexOf(e)>=0?e:o}return o}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r,n,i=function(t,e){return{chartX:Math.round(t.pageX-e.left),chartY:Math.round(t.pageY-e.top)}}(t,(e=this.container,r=e.ownerDocument.documentElement,n={top:0,left:0},void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-r.clientTop,left:n.left+window.pageXOffset-r.clientLeft})),o=this.inRange(i.chartX,i.chartY);if(!o)return null;var a=this.state,u=a.xAxisMap,c=a.yAxisMap;if("axis"!==this.getTooltipEventType()&&u&&c){var l=hn(u).scale,s=hn(c).scale,f=l&&l.invert?l.invert(i.chartX):null,p=s&&s.invert?s.invert(i.chartY):null;return Bv(Bv({},i),{},{xValue:f,yValue:p})}var h=Yv(this.state,this.props.data,this.props.layout,o);return h?Bv(Bv({},i),h):null}},{key:"getCursorRectangle",value:function(){var t=this.props.layout,e=this.state,r=e.activeCoordinate,n=e.offset,i=e.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?r.x-o:n.left+.5,y:"horizontal"===t?n.top+.5:r.y-o,width:"horizontal"===t?i:n.width-1,height:"horizontal"===t?n.height-1:i}}},{key:"getCursorPoints",value:function(){var t,e,r,n,i=this.props.layout,o=this.state,a=o.activeCoordinate,u=o.offset;if("horizontal"===i)r=t=a.x,e=u.top,n=u.top+u.height;else if("vertical"===i)n=e=a.y,t=u.left,r=u.left+u.width;else if(!et()(a.cx)||!et()(a.cy)){if("centric"!==i){var c=a.cx,l=a.cy,s=a.radius,f=a.startAngle,p=a.endAngle;return{points:[Ti(c,l,s,f),Ti(c,l,s,p)],cx:c,cy:l,radius:s,startAngle:f,endAngle:p}}var h=a.cx,d=a.cy,y=a.innerRadius,v=a.outerRadius,m=a.angle,g=Ti(h,d,y,m),b=Ti(h,d,v,m);t=g.x,e=g.y,r=b.x,n=b.y}return[{x:t,y:e},{x:r,y:n}]}},{key:"inRange",value:function(t,e){var r=this.props.layout;if("horizontal"===r||"vertical"===r){var n=this.state.offset;return t>=n.left&&t<=n.left+n.width&&e>=n.top&&e<=n.top+n.height?{x:t,y:e}:null}var i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var u=hn(o);return Ni({x:t,y:e},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=kn(t,ry),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}),Bv(Bv({},Zr(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){vv.on(mv,this.handleReceiveSyncEvent),vv.setMaxListeners&&vv._maxListeners&&vv.setMaxListeners(vv._maxListeners+1)}},{key:"removeListener",value:function(){vv.removeListener(mv,this.handleReceiveSyncEvent),vv.setMaxListeners&&vv._maxListeners&&vv.setMaxListeners(vv._maxListeners-1)}},{key:"triggerSyncEvent",value:function(t){var e=this.props.syncId;et()(e)||vv.emit(mv,e,this.uniqueChartId,t)}},{key:"applySyncEvent",value:function(t){var e=this.props,r=e.layout,n=e.syncMethod,i=this.state.updateId,o=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=Bv(Bv({},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=Kv(this.state,this.props.data,l),x=p[l]?{x:"horizontal"===r?p[l].coordinate:v,y:"horizontal"===r?m:p[l].coordinate}:$v;this.setState(Bv(Bv({},t),{},{activeLabel:g,activeCoordinate:x,activePayload:b,activeTooltipIndex:l}))}else this.setState(Bv({dataStartIndex:o,dataEndIndex:a},h({props:this.props,dataStartIndex:o,dataEndIndex:a,updateId:i},this.state)))}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,i=0,o=n.length;i<o;i++){var a=n[i];if(a.item===t||a.props.key===t.key||e===wn(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderAxis",value:function(t,e,r,n){var i=this.props,o=i.width,a=i.height;return ot().createElement(Sy,jv({},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:o,height:a},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,i=e.height,o=e.width;return ot().createElement("defs",null,ot().createElement("clipPath",{id:t},ot().createElement("rect",{x:r,y:n,height:i,width:o})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=kv(e,2),n=r[0],i=r[1];return Bv(Bv({},t),{},Uv({},n,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=kv(e,2),n=r[0],i=r[1];return Bv(Bv({},t),{},Uv({},n,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e,r;return null===(e=this.state.xAxisMap)||void 0===e||null===(r=e[t])||void 0===r?void 0:r.scale}},{key:"getYScaleByAxisId",value:function(t){var e,r;return null===(e=this.state.yAxisMap)||void 0===e||null===(r=e[t])||void 0===r?void 0:r.scale}},{key:"getItemByXY",value:function(t){var e=this.state.formattedGraphicalItems;if(e&&e.length)for(var r=0,n=e.length;r<n;r++){var i=e[r],o=i.props,a=i.item,u=wn(a.type);if("Bar"===u){var c=(o.data||[]).find((function(e){return od(t,e)}));if(c)return{graphicalItem:i,payload:c}}else if("RadialBar"===u){var l=(o.data||[]).find((function(e){return Ni(t,e)}));if(l)return{graphicalItem:i,payload:l}}}return null}},{key:"render",value:function(){var t=this;if(!jn(this))return null;var e=this.props,r=e.children,n=e.className,i=e.width,o=e.height,a=e.style,u=e.compact,c=e.title,l=e.desc,s=Av(e,Sv),f=Mn(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 ot().createElement(kf,jv({},f,{width:i,height:o,title:c,desc:l}),this.renderClipPath(),Dn(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 ot().createElement("div",jv({className:ut()("recharts-wrapper",n),style:Bv({position:"relative",cursor:"default",width:i,height:o},a)},h,{ref:function(e){t.container=e},role:"region"}),ot().createElement(kf,jv({},f,{width:i,height:o,title:c,desc:l}),this.renderClipPath(),Dn(r,p)),this.renderLegend(),this.renderTooltip())}}],n&&Pv(e.prototype,n),i&&Pv(e,i),Object.defineProperty(e,"prototype",{writable:!1}),c}(it.Component),Uv(e,"displayName",r),Uv(e,"defaultProps",Bv({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),Uv(e,"getDerivedStateFromProps",(function(t,e){var r=t.data,n=t.children,i=t.width,o=t.height,a=t.layout,u=t.stackOffset,c=t.margin;if(et()(e.updateId)){var l=Zv(t);return Bv(Bv(Bv({},l),{},{updateId:0},h(Bv(Bv({props:t},l),{},{updateId:0}),e)),{},{prevData:r,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:u,prevMargin:c,prevChildren:n})}if(r!==e.prevData||i!==e.prevWidth||o!==e.prevHeight||a!==e.prevLayout||u!==e.prevStackOffset||!vn(c,e.prevMargin)){var s=Zv(t),f={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},p=Bv(Bv({},Yv(e,r,a)),{},{updateId:e.updateId+1}),d=Bv(Bv(Bv({},s),f),p);return Bv(Bv(Bv({},d),h(Bv({props:t},d),e)),{},{prevData:r,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:u,prevMargin:c,prevChildren:n})}if(!Tn(n,e.prevChildren)){var y=!et()(r)?e.updateId:e.updateId+1;return Bv(Bv({updateId:y},h(Bv(Bv({props:t},e),{},{updateId:y}),e)),{},{prevChildren:n})}return null})),Uv(e,"renderActiveDot",(function(t,e){var r;return r=(0,it.isValidElement)(t)?(0,it.cloneElement)(t,e):J()(t)?t(e):ot().createElement(qn,e),ot().createElement(Xn,{className:"recharts-active-dot",key:e.key},r)})),e}({chartName:"AreaChart",GraphicalChild:Sh,axisComponents:[{axisType:"xAxis",AxisComp:em},{axisType:"yAxis",AxisComp:rm}],formatAxisMap:function(t,e,r,n,o){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=!!kn(l,wd);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,_="".concat(m).concat(w?"Mirror":"");if("number"===v.type&&("gap"===v.padding||"no-gap"===v.padding)){var S=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 j=E/S,A="vertical"===v.layout?r.height:r.width;if("gap"===v.padding&&(l=j*A/2),"no-gap"===v.padding){var P=pn(t.barCategoryGap,j*A),M=j*A/2;l=M-P-(M-P)/A*P}}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,o=t.type,a=t.layout,u=t.axisType;if("auto"===n)return"radial"===a&&"radiusAxis"===u?{scale:so(),realScaleType:"band"}:"radial"===a&&"angleAxis"===u?{scale:Ka(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:po(),realScaleType:"point"}:"category"===o?{scale:so(),realScaleType:"band"}:{scale:Ka(),realScaleType:"linear"};if(en()(n)){var c="scale".concat(pr()(n));return{scale:(i[c]||po)(),realScaleType:i[c]?c:"point"}}return J()(n)?{scale:n}:{scale:po(),realScaleType:"point"}}(v,o,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(),i=Math.min(n[0],n[1])-$p,o=Math.max(n[0],n[1])+$p,a=t(e[0]),u=t(e[r-1]);(a<i||a>o||u<i||u>o)&&t.domain([e[0],e[r-1]])}}(C);var N=function(t,e){var r=e.realScaleType,n=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,u=r||e.scale;if("auto"!==u&&"linear"!==u)return null;if(i&&"number"===n&&o&&("auto"===o[0]||"auto"===o[1])){var c=t.domain();if(!c.length)return null;var l=hf(c,i,a);return t.domain([Zi()(l),Y()(l)]),{niceTicks:l}}if(i&&"number"===n){var s=t.domain();return{niceTicks:df(s,i,a)}}return null}(C,Ed(Ed({},v),{},{realScaleType:D}));"xAxis"===n?(y="top"===m&&!w||"bottom"===m&&w,h=r.left,d=f[_]-y*v.height):"yAxis"===n&&(y="left"===m&&!w||"right"===m&&w,h=f[_]-y*v.width,d=r.top);var I=Ed(Ed(Ed({},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=Jp(I,N),v.hide||"xAxis"!==n?v.hide||(f[_]+=(y?-1:1)*I.width):f[_]+=(y?-1:1)*I.height,Ed(Ed({},a),{},kd({},u,I))}),{})}}),im=["x1","y1","x2","y2","key"];function om(t){return om="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},om(t)}function am(){return am=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},am.apply(this,arguments)}function um(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}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){dm(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){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,ym(n.key),n)}}function fm(t,e){return fm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fm(t,e)}function pm(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=hm(t);if(e){var i=hm(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===om(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 hm(t){return hm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hm(t)}function dm(t,e,r){return(e=ym(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ym(t){var e=function(t,e){if("object"!==om(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==om(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===om(e)?e:String(e)}var vm=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&&fm(t,e)}(o,t);var e,r,n,i=pm(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,r=[{key:"renderHorizontal",value:function(t){var e=this,r=this.props,n=r.x,i=r.width,a=r.horizontal;if(!t||!t.length)return null;var u=t.map((function(t,r){var u=lm(lm({},e.props),{},{x1:n,y1:t,x2:n+i,y2:t,key:"line-".concat(r),index:r});return o.renderLineItem(a,u)}));return ot().createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}},{key:"renderVertical",value:function(t){var e=this,r=this.props,n=r.y,i=r.height,a=r.vertical;if(!t||!t.length)return null;var u=t.map((function(t,r){var u=lm(lm({},e.props),{},{x1:t,y1:n,x2:t,y2:n+i,key:"line-".concat(r),index:r});return o.renderLineItem(a,u)}));return ot().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,i=r.x,o=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+a-t;if(l<=0)return null;var s=r%e.length;return ot().createElement("rect",{key:"react-".concat(r),x:t,y:o,width:l,height:u,stroke:"none",fill:e[s],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return ot().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,i=r.x,o=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+u-t;if(l<=0)return null;var s=r%e.length;return ot().createElement("rect",{key:"react-".concat(r),y:t,x:i,height:l,width:a,stroke:"none",fill:e[s],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return ot().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,i=e.y,o=e.width,a=e.height;return ot().createElement("rect",{x:n,y:i,width:o,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,i=t.height,o=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;if(!cn(n)||n<=0||!cn(i)||i<=0||!cn(e)||e!==+e||!cn(r)||r!==+r)return null;var d=this.props,y=d.horizontalPoints,v=d.verticalPoints;return y&&y.length||!J()(u)||(y=u({yAxis:s,width:p,height:h,offset:f})),v&&v.length||!J()(c)||(v=c({xAxis:l,width:p,height:h,offset:f})),ot().createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),o&&this.renderHorizontal(y),a&&this.renderVertical(v),o&&this.renderHorizontalStripes(y),a&&this.renderVerticalStripes(v))}}],n=[{key:"renderLineItem",value:function(t,e){var r;if(ot().isValidElement(t))r=ot().cloneElement(t,e);else if(J()(t))r=t(e);else{var n=e.x1,i=e.y1,o=e.x2,a=e.y2,u=e.key,c=um(e,im);r=ot().createElement("line",am({},Mn(c),{x1:n,y1:i,x2:o,y2:a,fill:"none",key:u}))}return r}}],r&&sm(e.prototype,r),n&&sm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}(it.PureComponent);dm(vm,"displayName","CartesianGrid"),dm(vm,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var mm=[{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")}],gm=[{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 bm=function(t){var e=t.width,r=t.height,n=t.x,i=t.y,o=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:i,stroke:"none",fill:"#7f868d",fontSize:"14",textAnchor:f},wp.element.createElement("tspan",{x:n,dy:o},s?V()(a.value).format("D MMM, YYYY"):a.value)))};function xm(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,i,o,a,u=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return wm(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 wm(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 wm(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 Om(t){return Om="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},Om(t)}var _m=["#2196f3","#f44336","#ffca28","#43a047","#9c27b0"];const Sm=(0,o.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=xm((0,F.useState)(""),2),i=n[0],o=n[1],a=xm((0,F.useState)("1m"),2),c=a[0],l=a[1],s=xm((0,F.useState)(!1),2),f=s[0],p=s[1],h=function(t){var e=V()().format("YYYY-MM-DD"),r=parseInt(t),n=V()();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=xm(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[]="),i,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,i]);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:i,onChange:o,options:mm}),wp.element.createElement(U.SelectControl,{value:c,onChange:l,options:gm})),function(t,e,r){return(0,u.isEmpty)(e)?"object"!==Om(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(Vh,null,wp.element.createElement(nm,{data:f,margin:{top:5,right:30,left:0,bottom:5}},wp.element.createElement(vm,{stroke:"#f2f2f2",vertical:!1}),wp.element.createElement(em,{dy:15,dataKey:"formattedTime",textAnchor:"middle",interval:"preserveStartEnd",tickLine:!1,axisLine:{stroke:"rgba(0, 0, 0, 0.15)"},ticks:g,tick:wp.element.createElement(bm,{isFormat:!1})}),wp.element.createElement(rm,{dx:-10,axisLine:!1,tickLine:!1,tick:{fill:"#7f868d",fontSize:14}}),wp.element.createElement(ry,{wrapperStyle:{zIndex:10},wrapperClassName:"rank-math-graph-tooltip",labelFormatter:function(t){return V()(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:_m[e],stopOpacity:.3}),wp.element.createElement("stop",{offset:"95%",stopColor:_m[e],stopOpacity:0})))}))}(r),function(t){var e=-1;return(0,u.map)(t,(function(t,r){return e++,t?wp.element.createElement(Sh,{key:r+"Area",type:"monotone",dataKey:r,strokeWidth:2,stroke:_m[e],fill:"url(#colorValue".concat(e,")"),fillOpacity:.9}):null}))}(r)))))}));const Em=(0,wp.compose.compose)((0,o.withSelect)((function(t){return{refresh:Date.now(),keywords:t("rank-math-pro").getTrendKeywords()}})),(0,o.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 i=(0,u.keys)(e).slice(0,5),o={},a=0;a<i.length;a++)o[i[a]]=e[i[a]];return wp.element.createElement("ul",{className:"trends-tool-keywords-list"},(0,u.map)(o,(function(t,e){var i="compare-keyword-bar";return t&&(i+=" selected"),wp.element.createElement("li",{key:e,className:i},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"})))})))})),km=jQuery;var jm=r.n(km);function Am(t){return Am="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},Am(t)}function Pm(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,(i=n.key,o=void 0,o=function(t,e){if("object"!==Am(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Am(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===Am(o)?o:String(o)),n)}var i,o}function Mm(t,e){return Mm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Mm(t,e)}function Tm(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=Cm(t);if(e){var i=Cm(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Am(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 Cm(t){return Cm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Cm(t)}var Dm=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)}(a,t);var e,r,n,i=Tm(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=i.call.apply(i,[this].concat(r))).keyword="",t.input=null,t.addKeyword=function(){""!==t.keyword&&((0,o.dispatch)("rank-math-pro").addTrendKeyword(t.keyword),(0,o.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"),jm()(this.input).autocomplete(this.getAutocompleteOptions()))}},{key:"componentWillUnmount",value:function(){rankMath.isUserRegistered&&jm()(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){jm().ajax({url:rankMath.keywordsApi.url,data:{keyword:t.term,locale:rankMath.locale},success:function(t){e(jm().map(t,(function(t){return{value:jm()("<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");jm()(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&&Pm(e.prototype,r),n&&Pm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(F.Component);const Nm=Dm;function Im(t){return Im="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},Im(t)}function Rm(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?Rm(Object(r),!0).forEach((function(e){Bm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Bm(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Im(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Im(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Im(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const Um=(0,o.withSelect)((function(t,e){return Lm(Lm({},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(Nm,{disabled:Object.keys(r).length>=5}),wp.element.createElement("div",{className:"trends-tool-keywords clear"},wp.element.createElement(Em,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,o.dispatch)("rank-math").updateKeywords(t),e(!1),(0,o.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,o.dispatch)("rank-math-pro").clearTrendKeywords()}},(0,B.__)("Cancel","rank-math")))}));function zm(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,i,o,a,u=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Fm(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 Fm(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 Fm(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 $m=function(){var t=zm((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,o.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(Um,{toggleModal:r})),wp.element.createElement("div",{className:"trends-tool-frame-content"},wp.element.createElement(Sm,null)))))};var Vm=r(3004),Hm=r.n(Vm);(0,a.addAction)("rank_math_loaded","rank-math-pro",(function(){if((0,o.dispatch)("rank-math").setVersion(),rankMath.isUserRegistered){var t=rankMathEditor.slots.AfterFocusKeyword;(0,a.addFilter)("rankMath.diviAppModal","rank-math-pro",(function(e){return function(r){return wp.element.createElement(React.Fragment,null,wp.element.createElement(t,{className:"trends-tool-button"},wp.element.createElement($m,null)),wp.element.createElement(e,r))}}))}(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(Hm())(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}))}))})()})();