Files
roi-theme/wp-content/plugins/seo-by-rank-math-pro/assets/admin/js/divi.js
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

1 line
431 KiB
JavaScript
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(()=>{var t={3004:function(t){var e,r;e=function(){var t,e=0,r={},n={},o=(t=window.MutationObserver||window.WebKitMutationObserver,function(e,r){e&&1===e.nodeType&&(t?new t((function(t,e){r(t)})).observe(e,{childList:!0,subtree:!1}):window.addEventListener&&e.addEventListener("DOMNodeInserted",r,!1))});function i(t,e){if(!t)return this;e=e||{},this.parentElm=t,this.uid=e.uid,this.settings={selector:"*",callbacks:{}},Object.assign(this.settings,e),this.setup(),o(this.parentElm,this.setup.bind(this)),this.bindEvents()}return i.prototype={namespace:"dragsort",setup(){[...this.parentElm.childNodes].forEach((t=>{if(1!=t.nodeType)return t.parentNode.removeChild(t);t.matches(this.settings.selector)&&(t.draggable=!0)})),this.gap=this.getItemsGap(this.parentElm.firstElementChild)},throttle(t,e){var r=!1,n=this;return function(o){r||(t.call(n,o),r=!0,setTimeout((()=>r=!1),e))}},getDraggableElm(t){if(!t.closest)return null;var e=t.closest('[draggable="true"]');return this.uid==r.uid?e:null},dragstart(t,e){r=this;var n,o=this.getDraggableElm(e);o?(this.source=this.getInitialState(),this.target=this.getInitialState(),n=o.getBoundingClientRect(),this.source.elm=o,this.source.idx=this.getNodeIndex(o),this.source.size.width=n.width,this.source.size.height=n.height,t.dataTransfer.effectAllowed="move",this.settings.callbacks.dragStart&&this.settings.callbacks.dragStart(this.source.elm,t),setTimeout(this.afterDragStart.bind(this))):r={}},afterDragStart(){var t="vertical"==this.settings.mode?"height":"width";this.parentElm.classList.add(`${this.namespace}--dragStart`),this.source.elm.style[t]=this.source.size[t]+"px",this.source.elm.classList.add(`${this.namespace}--dragElem`)},dragover(t){t.preventDefault(),t.stopPropagation();var e=t.target;if((e=this.getDraggableElm(e))&&this.target){var r=this.target.elm,n=this.target.hoverDirection;t.dataTransfer.dropEffect="move",this.target.hoverDirection=this.getTargetDirection(t),r==e&&n==this.target.hoverDirection||this.directionAwareDragEnter(t,e)}},dragenter(t,e){(e=this.getDraggableElm(e))&&this.target&&this.isValidElm(e)&&this.source.elm!=e&&this.source.elm&&(this.target.bounding=e.getBoundingClientRect())},directionAwareDragEnter(t,e){var r;t.preventDefault(),t.stopPropagation(),t.dataTransfer.dropEffect="none",this.isValidElm(e)&&this.source.elm!=e&&this.source.elm&&(t.dataTransfer.dropEffect="move",this.cleanupLastTarget(),this.target.elm=e,this.target.idx=this.getNodeIndex(e),e.classList.add("over"),r=Math.abs(this.target.idx-this.source.idx),this.source.elm.classList.toggle(`${this.namespace}--hide`,r>0),"vertical"==this.settings.mode?this.target.elm.style[this.target.hoverDirection?"marginBottom":"marginTop"]=this.source.size.height+this.gap+"px":this.target.elm.style[this.target.hoverDirection?"marginRight":"marginLeft"]=this.source.size.width+this.gap+"px")},dragend(t){if(clearTimeout(this.dragoverTimeout),this.dragoverTimeout=null,this.parentElm.classList.remove(`${this.namespace}--dragStart`),!this.isValidElm(this.target.elm))return this.cleanup();var e=this.target.hoverDirection?this.target.elm.nextElementSibling:this.target.elm;return this.source.elm!=this.target.elm&&this.target.elm&&(this.target.elm.classList.add(`${this.namespace}--noAnim`),this.cleanup(),this.parentElm.insertBefore(this.source.elm,e)),this.source.elm&&this.source.elm.classList.remove(`${this.namespace}--dragElem`,`${this.namespace}--hide`),this.settings.callbacks.dragEnd&&this.settings.callbacks.dragEnd(this.source.elm),this},isTargetLastChild(){return this.parentElm.lastElementChild==this.target.elm},getTargetDirection(t){if(this.target.bounding)return"vertical"==this.settings.mode?t.pageY>this.target.bounding.top+this.target.bounding.height/2?1:0:t.pageX>this.target.bounding.left+this.target.bounding.width/2?1:0},getNodeIndex(t){for(var e=0;t=t.previousSibling;)3==t.nodeType&&/^\s*$/.test(t.data)||e++;return e},isValidElm(t){return t&&t.nodeType&&t.parentNode==this.parentElm},cleanup(){r={},[...this.parentElm.children].forEach((t=>{t.removeAttribute("style"),setTimeout((()=>{t.classList.remove(`${this.namespace}--over`,`${this.namespace}--noAnim`,`${this.namespace}--dragElem`)}),50)}))},cleanupLastTarget(){this.target.elm&&(this.target.elm.classList.remove(`${this.namespace}--hide`,`${this.namespace}--over`),this.target.elm.removeAttribute("style"))},getInitialState:()=>({elm:null,size:{}}),getItemsGap(t){var e=getComputedStyle(t),r=getComputedStyle(t.parentNode),n="vertical"==this.settings.mode,o=parseInt(r.gap)||0;return parseInt(e["margin"+(n?"Top":"Left")])+parseInt(e["margin"+(n?"Bottom":"Right")])+o},bindEvents(t){for(var e in this.listeners=this.listeners||{dragstart:t=>this.dragstart(t,t.target),dragenter:t=>this.dragenter(t,t.target),dragend:t=>this.dragend(t,t.target),dragover:this.throttle(this.dragover,350)},this.listeners)this.parentElm[t?"removeEventListener":"addEventListener"](e,this.listeners[e])},destroy(){this.cleanup(),this.bindEvents(!0),delete n[this.uid]}},function(t,r){return n[++e]=t.DragSort?n[t.DragSort]:new i(t,{...r,uid:e}),t.DragSort=e,n[e]}},"function"==typeof(r=r||{})&&r.amd?r([],e):t.exports=e()},4184:(t,e)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var i=typeof r;if("string"===i||"number"===i)t.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&t.push(a)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){t.push(r.toString());continue}for(var u in r)n.call(r,u)&&r[u]&&t.push(u)}}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},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,o){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 i=e[n][r]*t;return!1!==o?(o=Math.pow(10,parseInt(o)||5),Math.round(i*o)/o):i}},9887:function(t,e,r){var n;!function(o){"use strict";var i,a=1e9,u={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},c=!0,s="[DecimalError] ",l=s+"Invalid argument: ",f=s+"Exponent out of range: ",p=Math.floor,h=Math.pow,d=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,y=1e7,v=7,m=9007199254740991,g=p(m/v),b={};function x(t,e){var r,n,o,i,a,u,s,l,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),c?M(e,p):e;if(s=t.d,l=e.d,a=t.e,o=e.e,s=s.slice(),i=a-o){for(i<0?(n=s,i=-i,u=l.length):(n=l,o=a,u=s.length),i>(u=(a=Math.ceil(p/v))>u?a+1:u+1)&&(i=u,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((u=s.length)-(i=l.length)<0&&(i=u,n=l,l=s,s=n),r=0;i;)r=(s[--i]=s[i]+l[i]+r)/y|0,s[i]%=y;for(r&&(s.unshift(r),++o),u=s.length;0==s[--u];)s.pop();return e.d=s,e.e=o,c?M(e,p):e}function w(t,e,r){if(t!==~~t||t<e||t>r)throw Error(l+t)}function O(t){var e,r,n,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;e<o;e++)n=t[e]+"",(r=v-n.length)&&(i+=j(r)),i+=n;a=t[e],(r=v-(n=a+"").length)&&(i+=j(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}b.absoluteValue=b.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},b.comparedTo=b.cmp=function(t){var e,r,n,o,i=this;if(t=new i.constructor(t),i.s!==t.s)return i.s||-t.s;if(i.e!==t.e)return i.e>t.e^i.s<0?1:-1;for(e=0,r=(n=i.d.length)<(o=t.d.length)?n:o;e<r;++e)if(i.d[e]!==t.d[e])return i.d[e]>t.d[e]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1},b.decimalPlaces=b.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*v;if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},b.dividedBy=b.div=function(t){return _(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,o=n.precision,a=o+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(i))throw Error(s+"NaN");if(r.s<1)throw Error(s+(r.s?"NaN":"-Infinity"));return r.eq(i)?new n(0):(c=!1,e=_(A(r,a),A(t,a),a),c=!0,M(e,o))},b.minus=b.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?T(e,t):x(e,(t.s=-t.s,t))},b.modulo=b.mod=function(t){var e,r=this,n=r.constructor,o=n.precision;if(!(t=new n(t)).s)throw Error(s+"NaN");return r.s?(c=!1,e=_(r,t,0,1).times(t),c=!0,r.minus(e)):M(new n(r),o)},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,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(l+t);if(e=E(o)+1,r=(n=o.d.length-1)*v+1,n=o.d[n]){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},b.squareRoot=b.sqrt=function(){var t,e,r,n,o,i,a,u=this,l=u.constructor;if(u.s<1){if(!u.s)return new l(0);throw Error(s+"NaN")}for(t=E(u),c=!1,0==(o=Math.sqrt(+u))||o==1/0?(((e=O(u.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=p((t+1)/2)-(t<0||t%2),n=new l(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new l(o.toString()),o=a=(r=l.precision)+3;;)if(n=(i=n).plus(_(u,i,a+2)).times(.5),O(i.d).slice(0,a)===(e=O(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(M(i,r+1,0),i.times(i).eq(u)){n=i;break}}else if("9999"!=e)break;a+=4}return c=!0,M(n,r)},b.times=b.mul=function(t){var e,r,n,o,i,a,u,s,l,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,(s=h.length)<(l=d.length)&&(i=h,h=d,d=i,a=s,s=l,l=a),i=[],n=a=s+l;n--;)i.push(0);for(n=l;--n>=0;){for(e=0,o=s+n;o>n;)u=i[o]+d[n]*h[o-n-1]+e,i[o--]=u%y|0,e=u/y|0;i[o]=(i[o]+e)%y|0}for(;!i[--a];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,c?M(t,p.precision):t},b.toDecimalPlaces=b.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(w(t,0,a),void 0===e?e=n.rounding:w(e,0,8),M(r,t+E(r)+1,e))},b.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=C(n,!0):(w(t,0,a),void 0===e?e=o.rounding:w(e,0,8),r=C(n=M(new o(n),t+1,e),!0,t+1)),r},b.toFixed=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?C(o):(w(t,0,a),void 0===e?e=i.rounding:w(e,0,8),r=C((n=M(new i(o),t+E(o)+1,e)).abs(),!1,t+E(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},b.toInteger=b.toint=function(){var t=this,e=t.constructor;return M(new e(t),E(t)+1,e.rounding)},b.toNumber=function(){return+this},b.toPower=b.pow=function(t){var e,r,n,o,a,u,l=this,f=l.constructor,h=+(t=new f(t));if(!t.s)return new f(i);if(!(l=new f(l)).s){if(t.s<1)throw Error(s+"Infinity");return l}if(l.eq(i))return l;if(n=f.precision,t.eq(i))return M(l,n);if(u=(e=t.e)>=(r=t.d.length-1),a=l.s,u){if((r=h<0?-h:h)<=m){for(o=new f(i),e=Math.ceil(n/v+4),c=!1;r%2&&D((o=o.times(l)).d,e),0!==(r=p(r/2));)D((l=l.times(l)).d,e);return c=!0,t.s<0?new f(i).div(o):M(o,n)}}else if(a<0)throw Error(s+"NaN");return a=a<0&&1&t.d[Math.max(e,r)]?-1:1,l.s=1,c=!1,o=t.times(A(l,n+12)),c=!0,(o=S(o)).s=a,o},b.toPrecision=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?n=C(o,(r=E(o))<=i.toExpNeg||r>=i.toExpPos):(w(t,1,a),void 0===e?e=i.rounding:w(e,0,8),n=C(o=M(new i(o),t,e),t<=(r=E(o))||r<=i.toExpNeg,t)),n},b.toSignificantDigits=b.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(w(t,1,a),void 0===e?e=r.rounding:w(e,0,8)),M(new r(this),t,e)},b.toString=b.valueOf=b.val=b.toJSON=function(){var t=this,e=E(t),r=t.constructor;return C(t,e<=r.toExpNeg||e>=r.toExpPos)};var _=function(){function t(t,e){var r,n=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+n,t[o]=r%y|0,n=r/y|0;return n&&t.unshift(n),t}function e(t,e,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]<e[r]?1:0,t[r]=n*y+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,o,i,a){var u,c,l,f,p,h,d,m,g,b,x,w,O,_,S,k,j,A,P=n.constructor,T=n.s==o.s?1:-1,C=n.d,D=o.d;if(!n.s)return new P(n);if(!o.s)throw Error(s+"Division by zero");for(c=n.e-o.e,j=D.length,S=C.length,m=(d=new P(T)).d=[],l=0;D[l]==(C[l]||0);)++l;if(D[l]>(C[l]||0)&&--c,(w=null==i?i=P.precision:a?i+(E(n)-E(o))+1:i)<0)return new P(0);if(w=w/v+2|0,l=0,1==j)for(f=0,D=D[0],w++;(l<S||f)&&w--;l++)O=f*y+(C[l]||0),m[l]=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[l++]=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?i+E(d)+1:i)}}();function S(t,e){var r,n,o,a,u,s=0,l=0,p=t.constructor,d=p.precision;if(E(t)>16)throw Error(f+E(t));if(!t.s)return new p(i);for(null==e?(c=!1,u=d):u=e,a=new p(.03125);t.abs().gte(.1);)t=t.times(a),l+=5;for(u+=Math.log(h(2,l))/Math.LN10*2+5|0,r=n=o=new p(i),p.precision=u;;){if(n=M(n.times(t),u),r=r.times(++s),O((a=o.plus(_(n,r,u))).d).slice(0,u)===O(o.d).slice(0,u)){for(;l--;)o=M(o.times(o),u);return p.precision=d,null==e?(c=!0,M(o,d)):o}o=a}}function E(t){for(var e=t.e*v,r=t.d[0];r>=10;r/=10)e++;return e}function k(t,e,r){if(e>t.LN10.sd())throw c=!0,r&&(t.precision=r),Error(s+"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,o,a,u,l,f,p,h,d=1,y=t,v=y.d,m=y.constructor,g=m.precision;if(y.s<1)throw Error(s+(y.s?"NaN":"-Infinity"));if(y.eq(i))return new m(0);if(null==e?(c=!1,p=g):p=e,y.eq(10))return null==e&&(c=!0),k(m,p);if(p+=10,m.precision=p,n=(r=O(v)).charAt(0),a=E(y),!(Math.abs(a)<15e14))return f=k(m,p+2,g).times(a+""),y=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)),l=u=y=_(y.minus(i),y.plus(i),p),h=M(y.times(y),p),o=3;;){if(u=M(u.times(h),p),O((f=l.plus(_(u,new m(o),p))).d).slice(0,p)===O(l.d).slice(0,p))return l=l.times(2),0!==a&&(l=l.plus(k(m,p+2,g).times(a+""))),l=_(l,new m(d),p),m.precision=g,null==e?(c=!0,M(l,g)):l;l=f,o+=2}}function P(t,e){var r,n,o;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(n,o)){if(o-=n,r=r-n-1,t.e=p(r/v),t.d=[],n=(r+1)%v,r<0&&(n+=v),n<o){for(n&&t.d.push(+e.slice(0,n)),o-=v;n<o;)t.d.push(+e.slice(n,n+=v));e=e.slice(n),n=v-e.length}else n-=o;for(;n--;)e+="0";if(t.d.push(+e),c&&(t.e>g||t.e<-g))throw Error(f+r)}else t.s=0,t.e=0,t.d=[0];return t}function M(t,e,r){var n,o,i,a,u,s,l,d,m=t.d;for(a=1,i=m[0];i>=10;i/=10)a++;if((n=e-a)<0)n+=v,o=e,l=m[d=0];else{if((d=Math.ceil((n+1)/v))>=(i=m.length))return t;for(l=i=m[d],a=1;i>=10;i/=10)a++;o=(n%=v)-v+a}if(void 0!==r&&(u=l/(i=h(10,a-o-1))%10|0,s=e<0||void 0!==m[d+1]||l%i,s=r<4?(u||s)&&(0==r||r==(t.s<0?3:2)):u>5||5==u&&(4==r||s||6==r&&(n>0?o>0?l/h(10,a-o):0:m[d-1])%10&1||r==(t.s<0?8:7))),e<1||!m[0])return s?(i=E(t),m.length=1,e=e-i-1,m[0]=h(10,(v-e%v)%v),t.e=p(-e/v)||0):(m.length=1,m[0]=t.e=t.s=0),t;if(0==n?(m.length=d,i=1,d--):(m.length=d+1,i=h(10,v-n),m[d]=o>0?(l/h(10,a-o)%h(10,o)|0)*i:0),s)for(;;){if(0==d){(m[0]+=i)==y&&(m[0]=1,++t.e);break}if(m[d]+=i,m[d]!=y)break;m[d--]=0,i=1}for(n=m.length;0===m[--n];)m.pop();if(c&&(t.e>g||t.e<-g))throw Error(f+E(t));return t}function T(t,e){var r,n,o,i,a,u,s,l,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(s=t.d,p=e.d,n=e.e,l=t.e,s=s.slice(),a=l-n){for((f=a<0)?(r=s,a=-a,u=p.length):(r=p,n=l,u=s.length),a>(o=Math.max(Math.ceil(d/v),u)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((f=(o=s.length)<(u=p.length))&&(u=o),o=0;o<u;o++)if(s[o]!=p[o]){f=s[o]<p[o];break}a=0}for(f&&(r=s,s=p,p=r,e.s=-e.s),u=s.length,o=p.length-u;o>0;--o)s[u++]=0;for(o=p.length;o>a;){if(s[--o]<p[o]){for(i=o;i&&0===s[--i];)s[i]=y-1;--s[i],s[o]+=y}s[o]-=p[o]}for(;0===s[--u];)s.pop();for(;0===s[0];s.shift())--n;return s[0]?(e.d=s,e.e=n,c?M(e,d):e):new h(0)}function C(t,e,r){var n,o=E(t),i=O(t.d),a=i.length;return e?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+j(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+j(-o-1)+i,r&&(n=r-a)>0&&(i+=j(n))):o>=a?(i+=j(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+j(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=j(n))),t.s<0?"-"+i:i}function D(t,e){if(t.length>e)return t.length=e,!0}function N(t){if(!t||"object"!=typeof t)throw Error(s+"Object expected");var e,r,n,o=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<o.length;e+=3)if(void 0!==(n=t[r=o[e]])){if(!(p(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(l+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(l+r+": "+n);this[r]=new this(n)}return this}u=function t(e){var r,n,o;function i(t){var e=this;if(!(e instanceof i))return new i(t);if(e.constructor=i,t instanceof i)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(l+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(l+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!d.test(t))throw Error(l+t);P(e,t)}if(i.prototype=b,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=t,i.config=i.set=N,void 0===e&&(e={}),e)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<o.length;)e.hasOwnProperty(n=o[r++])||(e[n]=this[n]);return i.config(e),i}(u),u.default=u.Decimal=u,i=new u(1),void 0===(n=function(){return u}.call(e,r,e,t))||(t.exports=n)}()},6729:t=>{"use strict";var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var u=new o(n,i||t,a),c=r?r+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],u]:t._events[c].push(u):(t._events[c]=u,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function u(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),u.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},u.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},u.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},u.prototype.emit=function(t,e,n,o,i,a){var u=r?r+t:t;if(!this._events[u])return!1;var c,s,l=this._events[u],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,o),!0;case 5:return l.fn.call(l.context,e,n,o,i),!0;case 6:return l.fn.call(l.context,e,n,o,i,a),!0}for(s=1,c=new Array(f-1);s<f;s++)c[s-1]=arguments[s];l.fn.apply(l.context,c)}else{var p,h=l.length;for(s=0;s<h;s++)switch(l[s].once&&this.removeListener(t,l[s].fn,void 0,!0),f){case 1:l[s].fn.call(l[s].context);break;case 2:l[s].fn.call(l[s].context,e);break;case 3:l[s].fn.call(l[s].context,e,n);break;case 4:l[s].fn.call(l[s].context,e,n,o);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];l[s].fn.apply(l[s].context,c)}}return!0},u.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},u.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},u.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var u=this._events[i];if(u.fn)u.fn!==e||o&&!u.once||n&&u.context!==n||a(this,i);else{for(var c=0,s=[],l=u.length;c<l;c++)(u[c].fn!==e||o&&!u[c].once||n&&u[c].context!==n)&&s.push(u[c]);s.length?this._events[i]=1===s.length?s[0]:s:a(this,i)}return this},u.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,t.exports=u},8552:(t,e,r)=>{var n=r(852)(r(5639),"DataView");t.exports=n},1989:(t,e,r)=>{var n=r(1789),o=r(401),i=r(7667),a=r(1327),u=r(1866);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},8407:(t,e,r)=>{var n=r(7040),o=r(4125),i=r(2117),a=r(7518),u=r(4705);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},7071:(t,e,r)=>{var n=r(852)(r(5639),"Map");t.exports=n},3369:(t,e,r)=>{var n=r(4785),o=r(1285),i=r(6e3),a=r(9916),u=r(5265);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},3818:(t,e,r)=>{var n=r(852)(r(5639),"Promise");t.exports=n},8525:(t,e,r)=>{var n=r(852)(r(5639),"Set");t.exports=n},8668:(t,e,r)=>{var n=r(3369),o=r(619),i=r(2385);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},6384:(t,e,r)=>{var n=r(8407),o=r(7465),i=r(3779),a=r(7599),u=r(4758),c=r(4309);function s(t){var e=this.__data__=new n(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=u,s.prototype.set=c,t.exports=s},2705:(t,e,r)=>{var n=r(5639).Symbol;t.exports=n},1149:(t,e,r)=>{var n=r(5639).Uint8Array;t.exports=n},577:(t,e,r)=>{var n=r(852)(r(5639),"WeakMap");t.exports=n},6874:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},6193:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}},4963:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}},7443:(t,e,r)=>{var n=r(2118);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},1196:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},4636:(t,e,r)=>{var n=r(2545),o=r(5694),i=r(1469),a=r(4144),u=r(5776),c=r(6719),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&o(t),f=!r&&!l&&a(t),p=!r&&!l&&!f&&c(t),h=r||l||f||p,d=h?n(t.length,String):[],y=d.length;for(var v in t)!e&&!s.call(t,v)||h&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,y))||d.push(v);return d}},9932:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},2488:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},2908:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},4286:t=>{t.exports=function(t){return t.split("")}},8470:(t,e,r)=>{var n=r(7813);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},9465:(t,e,r)=>{var n=r(8777);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},9881:(t,e,r)=>{var n=r(7816),o=r(9291)(n);t.exports=o},3239:(t,e,r)=>{var n=r(9881);t.exports=function(t,e){var r=!0;return n(t,(function(t,n,o){return r=!!e(t,n,o)})),r}},6029:(t,e,r)=>{var n=r(3448);t.exports=function(t,e,r){for(var o=-1,i=t.length;++o<i;){var a=t[o],u=e(a);if(null!=u&&(void 0===c?u==u&&!n(u):r(u,c)))var c=u,s=a}return s}},1848:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},1078:(t,e,r)=>{var n=r(2488),o=r(7285);t.exports=function t(e,r,i,a,u){var c=-1,s=e.length;for(i||(i=o),u||(u=[]);++c<s;){var l=e[c];r>0&&i(l)?r>1?t(l,r-1,i,a,u):n(u,l):a||(u[u.length]=l)}return u}},8483:(t,e,r)=>{var n=r(5063)();t.exports=n},7816:(t,e,r)=>{var n=r(8483),o=r(3674);t.exports=function(t,e){return t&&n(t,e,o)}},7786:(t,e,r)=>{var n=r(1811),o=r(327);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},8866:(t,e,r)=>{var n=r(2488),o=r(1469);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},4239:(t,e,r)=>{var n=r(2705),o=r(9607),i=r(2333),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},3325:t=>{t.exports=function(t,e){return t>e}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},2118:(t,e,r)=>{var n=r(1848),o=r(2722),i=r(2351);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},9454:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},939:(t,e,r)=>{var n=r(2492),o=r(7005);t.exports=function t(e,r,i,a,u){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,u))}},2492:(t,e,r)=>{var n=r(6384),o=r(7114),i=r(8351),a=r(6096),u=r(4160),c=r(1469),s=r(4144),l=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&&s(t)){if(!s(e))return!1;g=!0,O=!1}if(S&&!O)return m||(m=new n),g||l(t)?o(t,e,r,y,v,m):i(t,e,x,r,y,v,m);if(!(1&r)){var E=O&&d.call(t,"__wrapped__"),k=_&&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),o=r(939);t.exports=function(t,e,r,i){var a=r.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var s=r[a];if(c&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++a<u;){var l=(s=r[a])[0],f=t[l],p=s[1];if(c&&s[2]){if(void 0===f&&!(l in t))return!1}else{var h=new n;if(i)var d=i(f,p,l,t,e,h);if(!(void 0===d?o(p,f,3,i,h):d))return!1}}return!0}},2722:t=>{t.exports=function(t){return t!=t}},8458:(t,e,r)=>{var n=r(3560),o=r(5346),i=r(3218),a=r(346),u=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,l=c.toString,f=s.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?p:u).test(a(t))}},8749:(t,e,r)=>{var n=r(4239),o=r(1780),i=r(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},7206:(t,e,r)=>{var n=r(1573),o=r(6432),i=r(6557),a=r(1469),u=r(9601);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):u(t)}},280:(t,e,r)=>{var n=r(5726),o=r(6916),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},433:t=>{t.exports=function(t,e){return t<e}},9199:(t,e,r)=>{var n=r(9881),o=r(8612);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}},1573:(t,e,r)=>{var n=r(2958),o=r(1499),i=r(2634);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},6432:(t,e,r)=>{var n=r(939),o=r(7361),i=r(9095),a=r(5403),u=r(9162),c=r(2634),s=r(327);t.exports=function(t,e){return a(t)&&u(e)?c(s(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},9556:(t,e,r)=>{var n=r(9932),o=r(7786),i=r(7206),a=r(9199),u=r(1131),c=r(1717),s=r(5022),l=r(6557),f=r(1469);t.exports=function(t,e,r){e=e.length?n(e,(function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t})):[l];var p=-1;e=n(e,c(i));var h=a(t,(function(t,r,o){return{criteria:n(e,(function(e){return e(t)})),index:++p,value:t}}));return u(h,(function(t,e){return s(t,e,r)}))}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,r)=>{var n=r(7786);t.exports=function(t){return function(e){return n(e,t)}}},98:t=>{var e=Math.ceil,r=Math.max;t.exports=function(t,n,o,i){for(var a=-1,u=r(e((n-t)/(o||1)),0),c=Array(u);u--;)c[i?u:++a]=t,t+=o;return c}},5976:(t,e,r)=>{var n=r(6557),o=r(5357),i=r(61);t.exports=function(t,e){return i(o(t,e,n),t+"")}},6560:(t,e,r)=>{var n=r(5703),o=r(8777),i=r(6557),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},4259:t=>{t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}},5076:(t,e,r)=>{var n=r(9881);t.exports=function(t,e){var r;return n(t,(function(t,n,o){return!(r=e(t,n,o))})),!!r}},1131:t=>{t.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}},2545:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},531:(t,e,r)=>{var n=r(2705),o=r(9932),i=r(1469),a=r(3448),u=n?n.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r}},7561:(t,e,r)=>{var n=r(7990),o=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(o,""):t}},1717:t=>{t.exports=function(t){return function(e){return t(e)}}},5652:(t,e,r)=>{var n=r(8668),o=r(7443),i=r(1196),a=r(4757),u=r(3593),c=r(1814);t.exports=function(t,e,r){var s=-1,l=o,f=t.length,p=!0,h=[],d=h;if(r)p=!1,l=i;else if(f>=200){var y=e?null:u(t);if(y)return c(y);p=!1,l=a,d=new n}else d=e?[]:h;t:for(;++s<f;){var v=t[s],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 l(d,m,r)||(d!==h&&d.push(m),h.push(v))}return h}},4757:t=>{t.exports=function(t,e){return t.has(e)}},1811:(t,e,r)=>{var n=r(1469),o=r(5403),i=r(5514),a=r(9833);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},180:(t,e,r)=>{var n=r(4259);t.exports=function(t,e,r){var o=t.length;return r=void 0===r?o:r,!e&&r>=o?t:n(t,e,r)}},6393:(t,e,r)=>{var n=r(3448);t.exports=function(t,e){if(t!==e){var r=void 0!==t,o=null===t,i=t==t,a=n(t),u=void 0!==e,c=null===e,s=e==e,l=n(e);if(!c&&!l&&!a&&t>e||a&&u&&s&&!c&&!l||o&&u&&s||!r&&s||!i)return 1;if(!o&&!a&&!l&&t<e||l&&r&&i&&!o&&!a||c&&r&&i||!u&&i||!s)return-1}return 0}},5022:(t,e,r)=>{var n=r(6393);t.exports=function(t,e,r){for(var o=-1,i=t.criteria,a=e.criteria,u=i.length,c=r.length;++o<u;){var s=n(i[o],a[o]);if(s)return o>=c?s:s*("desc"==r[o]?-1:1)}return t.index-e.index}},4429:(t,e,r)=>{var n=r(5639)["__core-js_shared__"];t.exports=n},9291:(t,e,r)=>{var n=r(8612);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,a=e?i:-1,u=Object(r);(e?a--:++a<i)&&!1!==o(u[a],a,u););return r}}},5063:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===r(i[c],c,i))break}return e}}},8805:(t,e,r)=>{var n=r(180),o=r(2689),i=r(3140),a=r(9833);t.exports=function(t){return function(e){e=a(e);var r=o(e)?i(e):void 0,u=r?r[0]:e.charAt(0),c=r?n(r,1).join(""):e.slice(1);return u[t]()+c}}},7740:(t,e,r)=>{var n=r(7206),o=r(8612),i=r(3674);t.exports=function(t){return function(e,r,a){var u=Object(e);if(!o(e)){var c=n(r,3);e=i(e),r=function(t){return c(u[t],t,u)}}var s=t(e,r,a);return s>-1?u[c?e[s]:s]:void 0}}},7445:(t,e,r)=>{var n=r(98),o=r(6612),i=r(8601);t.exports=function(t){return function(e,r,a){return a&&"number"!=typeof a&&o(e,r,a)&&(r=a=void 0),e=i(e),void 0===r?(r=e,e=0):r=i(r),a=void 0===a?e<r?1:-1:i(a),n(e,r,a,t)}}},3593:(t,e,r)=>{var n=r(8525),o=r(308),i=r(1814),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},8777:(t,e,r)=>{var n=r(852),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},7114:(t,e,r)=>{var n=r(8668),o=r(2908),i=r(4757);t.exports=function(t,e,r,a,u,c){var s=1&r,l=t.length,f=e.length;if(l!=f&&!(s&&f>l))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<l;){var m=t[d],g=e[d];if(a)var b=s?a(g,m,d,e,t,c):a(m,g,d,t,e,c);if(void 0!==b){if(b)continue;y=!1;break}if(v){if(!o(e,(function(t,e){if(!i(v,e)&&(m===t||u(m,t,r,a,c)))return v.push(e)}))){y=!1;break}}else if(m!==g&&!u(m,g,r,a,c)){y=!1;break}}return c.delete(t),c.delete(e),y}},8351:(t,e,r)=>{var n=r(2705),o=r(1149),i=r(7813),a=r(7114),u=r(8776),c=r(1814),s=n?n.prototype:void 0,l=s?s.valueOf:void 0;t.exports=function(t,e,r,n,s,f,p){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=u;case"[object Set]":var d=1&n;if(h||(h=c),t.size!=e.size&&!d)return!1;var y=p.get(t);if(y)return y==e;n|=2,p.set(t,e);var v=a(h(t),h(e),n,s,f,p);return p.delete(t),v;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},6096:(t,e,r)=>{var n=r(8234),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var c=1&r,s=n(t),l=s.length;if(l!=n(e).length&&!c)return!1;for(var f=l;f--;){var p=s[f];if(!(c?p in e:o.call(e,p)))return!1}var h=u.get(t),d=u.get(e);if(h&&d)return h==e&&d==t;var y=!0;u.set(t,e),u.set(e,t);for(var v=c;++f<l;){var m=t[p=s[f]],g=e[p];if(i)var b=c?i(g,m,p,e,t,u):i(m,g,p,t,e,u);if(!(void 0===b?m===g||a(m,g,r,i,u):b)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var x=t.constructor,w=e.constructor;x==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(y=!1)}return u.delete(t),u.delete(e),y}},1957:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},8234:(t,e,r)=>{var n=r(8866),o=r(9551),i=r(3674);t.exports=function(t){return n(t,i,o)}},5050:(t,e,r)=>{var n=r(7019);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},1499:(t,e,r)=>{var n=r(9162),o=r(3674);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},852:(t,e,r)=>{var n=r(8458),o=r(7801);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},9607:(t,e,r)=>{var n=r(2705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[u]=r:delete t[u]),o}},9551:(t,e,r)=>{var n=r(4963),o=r(479),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=u},4160:(t,e,r)=>{var n=r(8552),o=r(7071),i=r(3818),a=r(8525),u=r(577),c=r(4239),s=r(346),l="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",d="[object DataView]",y=s(n),v=s(o),m=s(i),g=s(a),b=s(u),x=c;(n&&x(new n(new ArrayBuffer(1)))!=d||o&&x(new o)!=l||i&&x(i.resolve())!=f||a&&x(new a)!=p||u&&x(new u)!=h)&&(x=function(t){var e=c(t),r="[object Object]"==e?t.constructor:void 0,n=r?s(r):"";if(n)switch(n){case y:return d;case v:return l;case m:return f;case g:return p;case b:return h}return e}),t.exports=x},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,r)=>{var n=r(1811),o=r(5694),i=r(1469),a=r(5776),u=r(1780),c=r(327);t.exports=function(t,e,r){for(var s=-1,l=(e=n(e,t)).length,f=!1;++s<l;){var p=c(e[s]);if(!(f=null!=t&&r(t,p)))break;t=t[p]}return f||++s!=l?f:!!(l=null==t?0:t.length)&&u(l)&&a(p,l)&&(i(t)||o(t))}},2689:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},1789:(t,e,r)=>{var n=r(4536);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},1327:(t,e,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},1866:(t,e,r)=>{var n=r(4536);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},7285:(t,e,r)=>{var n=r(2705),o=r(5694),i=r(1469),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},6612:(t,e,r)=>{var n=r(7813),o=r(8612),i=r(5776),a=r(3218);t.exports=function(t,e,r){if(!a(r))return!1;var u=typeof e;return!!("number"==u?o(r)&&i(e,r.length):"string"==u&&e in r)&&n(r[e],t)}},5403:(t,e,r)=>{var n=r(1469),o=r(3448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=e&&t in Object(e))}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,r)=>{var n,o=r(4429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},9162:(t,e,r)=>{var n=r(3218);t.exports=function(t){return t==t&&!n(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,r)=>{var n=r(8470),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},2117:(t,e,r)=>{var n=r(8470);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},7518:(t,e,r)=>{var n=r(8470);t.exports=function(t){return n(this.__data__,t)>-1}},4705:(t,e,r)=>{var n=r(8470);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},4785:(t,e,r)=>{var n=r(1989),o=r(8407),i=r(7071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},1285:(t,e,r)=>{var n=r(5050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).get(t)}},9916:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).has(t)}},5265:(t,e,r)=>{var n=r(5050);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},2634:t=>{t.exports=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}},4523:(t,e,r)=>{var n=r(8306);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},4536:(t,e,r)=>{var n=r(852)(Object,"create");t.exports=n},6916:(t,e,r)=>{var n=r(5569)(Object.keys,Object);t.exports=n},1167:(t,e,r)=>{t=r.nmd(t);var n=r(1957),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,u=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},5357:(t,e,r)=>{var n=r(6874),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var s=Array(e+1);++a<e;)s[a]=i[a];return s[e]=r(c),n(t,this,s)}}},5639:(t,e,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},61:(t,e,r)=>{var n=r(6560),o=r(1275)(n);t.exports=o},1275:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},7465:(t,e,r)=>{var n=r(8407);t.exports=function(){this.__data__=new n,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,r)=>{var n=r(8407),o=r(7071),i=r(3369);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},2351:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},3140:(t,e,r)=>{var n=r(4286),o=r(2689),i=r(676);t.exports=function(t){return o(t)?i(t):n(t)}},5514:(t,e,r)=>{var n=r(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},327:(t,e,r)=>{var n=r(3448);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7990:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},676:t=>{var e="\\ud800-\\udfff",r="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+e+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+n+"|"+o+")"+"?",s="[\\ufe0e\\ufe0f]?",l=s+c+("(?:\\u200d(?:"+[i,a,u].join("|")+")"+s+c+")*"),f="(?:"+[i+n+"?",n,a,u,r].join("|")+")",p=RegExp(o+"(?="+o+")|"+f+l,"g");t.exports=function(t){return t.match(p)||[]}},5703:t=>{t.exports=function(t){return function(){return t}}},3279:(t,e,r)=>{var n=r(3218),o=r(7771),i=r(4841),a=Math.max,u=Math.min;t.exports=function(t,e,r){var c,s,l,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=s;return c=s=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>=l}function x(){var t=o();if(b(t))return w(t);p=setTimeout(x,function(t){var r=e-(t-h);return v?u(r,l-(t-d)):r}(t))}function w(t){return p=void 0,m&&c?g(t):(c=s=void 0,f)}function O(){var t=o(),r=b(t);if(c=arguments,s=this,h=t,r){if(void 0===p)return function(t){return d=t,p=setTimeout(x,e),y?g(t):f}(h);if(v)return clearTimeout(p),p=setTimeout(x,e),g(h)}return void 0===p&&(p=setTimeout(x,e)),f}return e=i(e)||0,n(r)&&(y=!!r.leading,l=(v="maxWait"in r)?a(i(r.maxWait)||0,e):l,m="trailing"in r?!!r.trailing:m),O.cancel=function(){void 0!==p&&clearTimeout(p),d=0,c=h=s=p=void 0},O.flush=function(){return void 0===p?f:w(o())},O}},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},711:(t,e,r)=>{var n=r(6193),o=r(3239),i=r(7206),a=r(1469),u=r(6612);t.exports=function(t,e,r){var c=a(t)?n:o;return r&&u(t,e,r)&&(e=void 0),c(t,i(e,3))}},3311:(t,e,r)=>{var n=r(7740)(r(998));t.exports=n},998:(t,e,r)=>{var n=r(1848),o=r(7206),i=r(554),a=Math.max;t.exports=function(t,e,r){var u=null==t?0:t.length;if(!u)return-1;var c=null==r?0:i(r);return c<0&&(c=a(u+c,0)),n(t,o(e,3),c)}},4654:(t,e,r)=>{var n=r(1078),o=r(5161);t.exports=function(t,e){return n(o(t,e),1)}},7361:(t,e,r)=>{var n=r(7786);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},9095:(t,e,r)=>{var n=r(13),o=r(222);t.exports=function(t,e){return null!=t&&o(t,e,n)}},6557:t=>{t.exports=function(t){return t}},5694:(t,e,r)=>{var n=r(9454),o=r(7005),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,r)=>{var n=r(3560),o=r(1780);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},1584:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==n(t)}},4144:(t,e,r)=>{t=r.nmd(t);var n=r(5639),o=r(5062),i=e&&!e.nodeType&&e,a=i&&t&&!t.nodeType&&t,u=a&&a.exports===i?n.Buffer:void 0,c=(u?u.isBuffer:void 0)||o;t.exports=c},8446:(t,e,r)=>{var n=r(939);t.exports=function(t,e){return n(t,e)}},3560:(t,e,r)=>{var n=r(4239),o=r(3218);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7654:(t,e,r)=>{var n=r(1763);t.exports=function(t){return n(t)&&t!=+t}},4293:t=>{t.exports=function(t){return null==t}},1763:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==n(t)}},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},7037:(t,e,r)=>{var n=r(4239),o=r(1469),i=r(7005);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==n(t)}},3448:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},6719:(t,e,r)=>{var n=r(8749),o=r(1717),i=r(1167),a=i&&i.isTypedArray,u=a?o(a):n;t.exports=u},3674:(t,e,r)=>{var n=r(4636),o=r(280),i=r(8612);t.exports=function(t){return i(t)?n(t):o(t)}},928:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},5161:(t,e,r)=>{var n=r(9932),o=r(7206),i=r(9199),a=r(1469);t.exports=function(t,e){return(a(t)?n:i)(t,o(e,3))}},6604:(t,e,r)=>{var n=r(9465),o=r(7816),i=r(7206);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},6162:(t,e,r)=>{var n=r(6029),o=r(3325),i=r(6557);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},8306:(t,e,r)=>{var n=r(3369);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},3632:(t,e,r)=>{var n=r(6029),o=r(433),i=r(6557);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},308:t=>{t.exports=function(){}},7771:(t,e,r)=>{var n=r(5639);t.exports=function(){return n.Date.now()}},9601:(t,e,r)=>{var n=r(371),o=r(9152),i=r(5403),a=r(327);t.exports=function(t){return i(t)?n(a(t)):o(t)}},6026:(t,e,r)=>{var n=r(7445)();t.exports=n},9704:(t,e,r)=>{var n=r(2908),o=r(7206),i=r(5076),a=r(1469),u=r(6612);t.exports=function(t,e,r){var c=a(t)?n:i;return r&&u(t,e,r)&&(e=void 0),c(t,o(e,3))}},9734:(t,e,r)=>{var n=r(1078),o=r(9556),i=r(5976),a=r(6612),u=i((function(t,e){if(null==t)return[];var r=e.length;return r>1&&a(t,e[0],e[1])?e=[]:r>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,n(e,1),[])}));t.exports=u},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},3493:(t,e,r)=>{var n=r(3279),o=r(3218);t.exports=function(t,e,r){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:i,maxWait:e,trailing:a})}},8601:(t,e,r)=>{var n=r(4841),o=1/0;t.exports=function(t){return t?(t=n(t))===o||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},554:(t,e,r)=>{var n=r(8601);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},4841:(t,e,r)=>{var n=r(7561),o=r(3218),i=r(3448),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=u.test(t);return r||c.test(t)?s(t.slice(2),r?2:8):a.test(t)?NaN:+t}},9833:(t,e,r)=>{var n=r(531);t.exports=function(t){return null==t?"":n(t)}},5578:(t,e,r)=>{var n=r(7206),o=r(5652);t.exports=function(t,e){return t&&t.length?o(t,n(e,2)):[]}},1700:(t,e,r)=>{var n=r(8805)("toUpperCase");t.exports=n},2703:(t,e,r)=>{"use strict";var n=r(414);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},5697:(t,e,r)=>{t.exports=r(2703)()},414:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9921:(t,e)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,l=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 l:case f:case i:case u:case a:case h:return t;default:switch(t=t&&t.$$typeof){case s:case p:case v:case y:case c:return t;default:return e}}case o:return e}}}function O(t){return w(t)===f}e.isFragment=function(t){return w(t)===i}},9864:(t,e,r)=>{"use strict";t.exports=r(9921)},6871:(t,e,r)=>{"use strict";function n(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=t&&this.setState(t)}function o(t){this.setState(function(e){var r=this.constructor.getDerivedStateFromProps(t,e);return null!=r?r:null}.bind(this))}function i(t,e){try{var r=this.props,n=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}function a(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate)return t;var r=null,a=null,u=null;if("function"==typeof e.componentWillMount?r="componentWillMount":"function"==typeof e.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof e.componentWillUpdate?u="componentWillUpdate":"function"==typeof e.UNSAFE_componentWillUpdate&&(u="UNSAFE_componentWillUpdate"),null!==r||null!==a||null!==u){var c=t.displayName||t.name,s="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 "+s+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==a?"\n "+a:"")+(null!==u?"\n "+u:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof t.getDerivedStateFromProps&&(e.componentWillMount=n,e.componentWillReceiveProps=o),"function"==typeof e.getSnapshotBeforeUpdate){if("function"!=typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=i;var l=e.componentDidUpdate;e.componentDidUpdate=function(t,e,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;l.call(this,t,e,n)}}return t}r.r(e),r.d(e,{polyfill:()=>a}),n.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},8292:(t,e,r)=>{"use strict";var n=r(4836);e.__esModule=!0,e.default=function(t,e){t.classList?t.classList.add(e):(0,o.default)(t,e)||("string"==typeof t.className?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))};var o=n(r(5312));t.exports=e.default},5312:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")},t.exports=e.default},294:t=>{"use strict";function e(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}t.exports=function(t,r){t.classList?t.classList.remove(r):"string"==typeof t.className?t.className=e(t.className,r):t.setAttribute("class",e(t.className&&t.className.baseVal||"",r))}},2810:(t,e,r)=>{"use strict";e.__esModule=!0,e.default=void 0;!function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};n.get||n.set?Object.defineProperty(e,r,n):e[r]=t[r]}e.default=t}(r(5697));var n=u(r(8292)),o=u(r(294)),i=u(r(7363)),a=u(r(2096));r(9806);function u(t){return t&&t.__esModule?t:{default:t}}function c(){return c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},c.apply(this,arguments)}var s=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,n.default)(t,e)}))},l=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return(0,o.default)(t,e)}))},f=function(t){var e,r;function n(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=t.call.apply(t,[this].concat(n))||this).onEnter=function(t,r){var n=e.getClassNames(r?"appear":"enter").className;e.removeClasses(t,"exit"),s(t,n),e.props.onEnter&&e.props.onEnter(t,r)},e.onEntering=function(t,r){var n=e.getClassNames(r?"appear":"enter").activeClassName;e.reflowAndAddClass(t,n),e.props.onEntering&&e.props.onEntering(t,r)},e.onEntered=function(t,r){var n=e.getClassNames("appear").doneClassName,o=e.getClassNames("enter").doneClassName,i=r?n+" "+o:o;e.removeClasses(t,r?"appear":"enter"),s(t,i),e.props.onEntered&&e.props.onEntered(t,r)},e.onExit=function(t){var r=e.getClassNames("exit").className;e.removeClasses(t,"appear"),e.removeClasses(t,"enter"),s(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"),s(t,r),e.props.onExited&&e.props.onExited(t)},e.getClassNames=function(t){var r=e.props.classNames,n="string"==typeof r,o=n?(n&&r?r+"-":"")+t:r[t];return{className:o,activeClassName:n?o+"-active":r[t+"Active"],doneClassName:n?o+"-done":r[t+"Done"]}},e}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var o=n.prototype;return o.removeClasses=function(t,e){var r=this.getClassNames(e),n=r.className,o=r.activeClassName,i=r.doneClassName;n&&l(t,n),o&&l(t,o),i&&l(t,i)},o.reflowAndAddClass=function(t,e){e&&(t&&t.scrollTop,s(t,e))},o.render=function(){var t=c({},this.props);return delete t.classNames,i.default.createElement(a.default,c({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(i.default.Component);f.defaultProps={classNames:""},f.propTypes={};var p=f;e.default=p,t.exports=e.default},7557:(t,e,r)=>{"use strict";e.__esModule=!0,e.default=void 0;a(r(5697));var n=a(r(7363)),o=r(1533),i=a(r(6165));function a(t){return t&&t.__esModule?t:{default:t}}var u=function(t){var e,r;function a(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=t.call.apply(t,[this].concat(n))||this).handleEnter=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.handleLifecycle("onEnter",0,r)},e.handleEntering=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.handleLifecycle("onEntering",0,r)},e.handleEntered=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.handleLifecycle("onEntered",0,r)},e.handleExit=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.handleLifecycle("onExit",1,r)},e.handleExiting=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.handleLifecycle("onExiting",1,r)},e.handleExited=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.handleLifecycle("onExited",1,r)},e}r=t,(e=a).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var u=a.prototype;return u.handleLifecycle=function(t,e,r){var i,a=this.props.children,u=n.default.Children.toArray(a)[e];u.props[t]&&(i=u.props)[t].apply(i,r),this.props[t]&&this.props[t]((0,o.findDOMNode)(this))},u.render=function(){var t=this.props,e=t.children,r=t.in,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,["children","in"]),a=n.default.Children.toArray(e),u=a[0],c=a[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,n.default.createElement(i.default,o,r?n.default.cloneElement(u,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):n.default.cloneElement(c,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(n.default.Component);u.propTypes={};var c=u;e.default=c,t.exports=e.default},2096:(t,e,r)=>{"use strict";e.__esModule=!0,e.default=e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var n=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};n.get||n.set?Object.defineProperty(e,r,n):e[r]=t[r]}return e.default=t,e}(r(5697)),o=u(r(7363)),i=u(r(1533)),a=r(6871);r(9806);function u(t){return t&&t.__esModule?t:{default:t}}var c="unmounted";e.UNMOUNTED=c;var s="exited";e.EXITED=s;var l="entering";e.ENTERING=l;var f="entered";e.ENTERED=f;var p="exiting";e.EXITING=p;var h=function(t){var e,r;function n(e,r){var n;n=t.call(this,e,r)||this;var o,i=r.transitionGroup,a=i&&!i.isMounting?e.enter:e.appear;return n.appearStatus=null,e.in?a?(o=s,n.appearStatus=l):o=f:o=e.unmountOnExit||e.mountOnEnter?c:s,n.state={status:o},n.nextCallback=null,n}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var a=n.prototype;return a.getChildContext=function(){return{transitionGroup:null}},n.getDerivedStateFromProps=function(t,e){return t.in&&e.status===c?{status:s}: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!==l&&r!==f&&(e=l):r!==l&&r!==f||(e=p)}this.updateStatus(!1,e)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var t,e,r,n=this.props.timeout;return t=e=r=n,null!=n&&"number"!=typeof n&&(t=n.exit,e=n.enter,r=void 0!==n.appear?n.appear:e),{exit:t,enter:e,appear:r}},a.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){this.cancelNextCallback();var r=i.default.findDOMNode(this);e===l?this.performEnter(r,t):this.performExit(r)}else this.props.unmountOnExit&&this.state.status===s&&this.setState({status:c})},a.performEnter=function(t,e){var r=this,n=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,i=this.getTimeouts(),a=o?i.appear:i.enter;e||n?(this.props.onEnter(t,o),this.safeSetState({status:l},(function(){r.props.onEntering(t,o),r.onTransitionEnd(t,a,(function(){r.safeSetState({status:f},(function(){r.props.onEntered(t,o)}))}))}))):this.safeSetState({status:f},(function(){r.props.onEntered(t)}))},a.performExit=function(t){var e=this,r=this.props.exit,n=this.getTimeouts();r?(this.props.onExit(t),this.safeSetState({status:p},(function(){e.props.onExiting(t),e.onTransitionEnd(t,n.exit,(function(){e.safeSetState({status:s},(function(){e.props.onExited(t)}))}))}))):this.safeSetState({status:s},(function(){e.props.onExited(t)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},a.setNextCallback=function(t){var e=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,e.nextCallback=null,t(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},a.onTransitionEnd=function(t,e,r){this.setNextCallback(r);var n=null==e&&!this.props.addEndListener;t&&!n?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},a.render=function(){var t=this.state.status;if(t===c)return null;var e=this.props,r=e.children,n=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(e,["children"]);if(delete n.in,delete n.mountOnEnter,delete n.unmountOnExit,delete n.appear,delete n.enter,delete n.exit,delete n.timeout,delete n.addEndListener,delete n.onEnter,delete n.onEntering,delete n.onEntered,delete n.onExit,delete n.onExiting,delete n.onExited,"function"==typeof r)return r(t,n);var i=o.default.Children.only(r);return o.default.cloneElement(i,n)},n}(o.default.Component);function d(){}h.contextTypes={transitionGroup:n.object},h.childContextTypes={transitionGroup:function(){}},h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d},h.UNMOUNTED=0,h.EXITED=1,h.ENTERING=2,h.ENTERED=3,h.EXITING=4;var y=(0,a.polyfill)(h);e.default=y},6165:(t,e,r)=>{"use strict";e.__esModule=!0,e.default=void 0;var n=u(r(5697)),o=u(r(7363)),i=r(6871),a=r(4474);function u(t){return t&&t.__esModule?t:{default:t}}function c(){return c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},c.apply(this,arguments)}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var l=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},f=function(t){var e,r;function n(e,r){var n,o=(n=t.call(this,e,r)||this).handleExited.bind(s(s(n)));return n.state={handleExited:o,firstRender:!0},n}r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r;var i=n.prototype;return i.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},i.componentDidMount=function(){this.appeared=!0,this.mounted=!0},i.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,e){var r=e.children,n=e.handleExited;return{children:e.firstRender?(0,a.getInitialChildMapping)(t,n):(0,a.getNextChildMapping)(t,r,n),firstRender:!1}},i.handleExited=function(t,e){var r=(0,a.getChildMapping)(this.props.children);t.key in r||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var r=c({},e.children);return delete r[t.key],{children:r}})))},i.render=function(){var t=this.props,e=t.component,r=t.childFactory,n=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,["component","childFactory"]),i=l(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===e?i:o.default.createElement(e,n,i)},n}(o.default.Component);f.childContextTypes={transitionGroup:n.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(t){return t}};var p=(0,i.polyfill)(f);e.default=p,t.exports=e.default},9469:(t,e,r)=>{"use strict";var n=u(r(2810)),o=u(r(7557)),i=u(r(6165)),a=u(r(2096));function u(t){return t&&t.__esModule?t:{default:t}}t.exports={Transition:a.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:n.default}},4474:(t,e,r)=>{"use strict";e.__esModule=!0,e.getChildMapping=o,e.mergeChildMappings=i,e.getInitialChildMapping=function(t,e){return o(t.children,(function(r){return(0,n.cloneElement)(r,{onExited:e.bind(null,r),in:!0,appear:a(r,"appear",t),enter:a(r,"enter",t),exit:a(r,"exit",t)})}))},e.getNextChildMapping=function(t,e,r){var u=o(t.children),c=i(e,u);return Object.keys(c).forEach((function(o){var i=c[o];if((0,n.isValidElement)(i)){var s=o in e,l=o in u,f=e[o],p=(0,n.isValidElement)(f)&&!f.props.in;!l||s&&!p?l||!s||p?l&&s&&(0,n.isValidElement)(f)&&(c[o]=(0,n.cloneElement)(i,{onExited:r.bind(null,i),in:f.props.in,exit:a(i,"exit",t),enter:a(i,"enter",t)})):c[o]=(0,n.cloneElement)(i,{in:!1}):c[o]=(0,n.cloneElement)(i,{onExited:r.bind(null,i),in:!0,exit:a(i,"exit",t),enter:a(i,"enter",t)})}})),c};var n=r(7363);function o(t,e){var r=Object.create(null);return t&&n.Children.map(t,(function(t){return t})).forEach((function(t){r[t.key]=function(t){return e&&(0,n.isValidElement)(t)?e(t):t}(t)})),r}function i(t,e){function r(r){return r in e?e[r]:t[r]}t=t||{},e=e||{};var n,o=Object.create(null),i=[];for(var a in t)a in e?i.length&&(o[a]=i,i=[]):i.push(a);var u={};for(var c in e){if(o[c])for(n=0;n<o[c].length;n++){var s=o[c][n];u[o[c][n]]=r(s)}u[c]=r(c)}for(n=0;n<i.length;n++)u[i[n]]=r(i[n]);return u}function a(t,e,r){return null!=r[e]?r[e]:t.props[e]}},9806:(t,e,r)=>{"use strict";e.__esModule=!0,e.classNamesShape=e.timeoutsShape=void 0;var n;(n=r(5697))&&n.__esModule;e.timeoutsShape=null;e.classNamesShape=null},4275:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=u(r(8336)),o=r(210),i=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=o.parser.parse(r),s=(0,i.default)(u,e);t.type="word",t.value=(0,a.default)(t.value,s,e)}}}),!0).toString()},t.exports=e.default},460:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=r(3258),i=(n=o)&&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,i.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=s;var n,o=r(460),i=(n=o)&&n.__esModule?n:{default:n};function a(t,e){return"MathExpression"===t.type?function(t,e){switch(t=function(t,e){var r=(0,i.default)(t.left,t.right,e),n=a(r.left,e),o=a(r.right,e);"MathExpression"===n.type&&"MathExpression"===o.type&&("/"===n.operator&&"*"===o.operator||"-"===n.operator&&"+"===o.operator||"*"===n.operator&&"/"===o.operator||"+"===n.operator&&"-"===o.operator)&&(u(n.right,o.right)?r=(0,i.default)(n.left,o.left,e):u(n.right,o.left)&&(r=(0,i.default)(n.left,o.right,e)),n=a(r.left,e),o=a(r.right,e));return t.left=n,t.right=o,t}(t,e),t.operator){case"+":case"-":return function(t,e){var r=t,n=r.left,o=r.right,i=r.operator;if("CssVariable"===n.type||"CssVariable"===o.type)return t;if(0===o.value)return n;if(0===n.value&&"+"===i)return o;if(0===n.value&&"-"===i)return l(o);n.type===o.type&&c(n.type)&&((t=Object.assign({},n)).value="+"===i?n.value+o.value:n.value-o.value);if(c(n.type)&&("+"===o.operator||"-"===o.operator)&&"MathExpression"===o.type){if(n.type===o.left.type)return(t=Object.assign({},t)).left=a({type:"MathExpression",operator:i,left:n,right:o.left},e),t.right=o.right,t.operator="-"===i?s(o.operator):o.operator,a(t,e);if(n.type===o.right.type)return(t=Object.assign({},t)).left=a({type:"MathExpression",operator:"-"===i?s(o.operator):o.operator,left:n,right:o.right},e),t.right=o.left,a(t,e)}if("MathExpression"===n.type&&("+"===n.operator||"-"===n.operator)&&c(o.type)){if(o.type===n.left.type)return(t=Object.assign({},n)).left=a({type:"MathExpression",operator:i,left:n.left,right:o},e),a(t,e);if(o.type===n.right.type)return t=Object.assign({},n),"-"===n.operator?(t.right=a({type:"MathExpression",operator:"-"===i?"+":"-",left:o,right:n.right},e),t.operator="-"===i?"-":"+"):t.right=a({type:"MathExpression",operator:i,left:n.right,right:o},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 s(t){return"+"===t?"-":"+"}function l(t){return c(t.type)?t.value=-t.value:"MathExpression"==t.type&&(t.left=l(t.left),t.right=l(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),o={"*":0,"/":0,"+":1,"-":1};function i(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,s="";return"MathExpression"===r.type&&o[c]<o[r.operator]?s+="("+a(r,e)+")":s+=a(r,e),s+=" "+t.operator+" ","MathExpression"===u.type&&o[c]<o[u.operator]?s+="("+a(u,e)+")":"MathExpression"===u.type&&"-"===c&&["+","-"].includes(u.operator)?(u.operator=(0,n.flip)(u.operator),s+=a(u,e)):s+=a(u,e),s;case"Value":return i(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 i(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 o=t[r];"function"==typeof o?(r++,o.apply(e,t[r])):e.push(o)}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 o={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=[],o={};if(!e&&this.state_descriptions_&&this.state_descriptions_[t])return[this.state_descriptions_[t]];for(var i in this.table[t])if((i=+i)!==r){var a=e?i:this.describeSymbol(i);a&&!o[a]&&(n.push(a),o[a]=!0)}return n},productions_:function(t){for(var e=[],r=t.pop,n=t.rule,o=0,i=r.length;o<i;o++)e.push([r[o],n[o]]);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 o=r[e];o.value*=-1,this.$=o}},table:function(t){for(var e=[],r=t.len,n=t.symbol,o=t.type,i=t.state,a=t.mode,u=t.goto,c=0,s=r.length;c<s;c++){for(var l=r[c],f={},p=0;p<l;p++){var h=n.shift();switch(o.shift()){case 2:f[h]=[a.shift(),u.shift()];break;case 0:f[h]=i.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,o=0,i=r.length;o<i;o++){e[r[o]]=n[o]}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),o=new Array(128),i=new Array(128),a=this.table,u=0,c=0,s=(this.TERROR,this.EOF),l=(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||s}"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,s;r&&((f.post_parse||this.post_parse)&&(s=this.constructParseErrorInfo(null,null,null,!1)),f.post_parse&&void 0!==(c=f.post_parse.call(this,f,t,s))&&(t=c),this.post_parse&&void 0!==(c=this.post_parse.call(this,f,t,s))&&(t=c),s&&s.destroy&&s.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,o.length=0,i.length=0,u=0,!a){for(var l=this.__error_infos.length-1;l>=0;l--){var p=this.__error_infos[l];p&&"function"==typeof p.destroy&&p.destroy()}this.__error_infos.length=0}return t},this.constructParseErrorInfo=function(t,r,a,s){var l={errStr:t,exception:r,text:e.match,value:e.yytext,token:this.describeSymbol(c)||c,token_id:c,line:e.yylineno,expected:a,recoverable:s,state:h,action:d,new_state:x,symbol_stack:n,state_stack:o,value_stack:i,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(l),l};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||s},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(i[u]=null,o[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=o[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]||l,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,i[u]=e.yytext,o[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,i))){_=y;break}u-=g;var j=b[0];n[u]=j,i[u]=O.$,x=a[o[u-1]][j],o[u]=x,++u;continue;case 3:-2!==u&&(_=!0,u--,void 0!==i[u]&&(_=i[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 _}};o.originalParseError=o.parseError,o.originalQuoteName=o.quoteName;var i=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 o={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(o),o},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,o=r.length;n<o;n++){"number"==typeof(p=r[n])&&(r[n]=r[p])}var i=this.conditions;for(var a in i){var u=i[a],c=u.rules,s=(o=c.length,new Array(o+1)),l=new Array(o+1);for(n=0;n<o;n++){var f=c[n],p=r[f];s[n+1]=p,l[n+1]=f}u.rules=l,u.__rule_regexes=s,u.__rule_count=o}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,o=n.split(/(?:\r\n?|\n)/g);1===o.length&&(o=(n=this.matched).split(/(?:\r\n?|\n)/g)),this.yylloc.last_column=o[o.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 o={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]};return t&&(o.first_line=0|t.first_line,o.last_line=0|t.last_line,o.first_column=0|t.first_column,o.last_column=0|t.last_column,t.range&&(o.range[0]=0|t.range[0],o.range[1]=0|t.range[1])),(o.first_line<=0||o.last_line<o.first_line)&&(o.first_line<=0&&e&&(o.first_line=0|e.last_line,o.first_column=0|e.last_column,e.range&&(o.range[0]=0|t.range[1])),(o.last_line<=0||o.last_line<o.first_line)&&r&&(o.last_line=0|r.first_line,o.last_column=0|r.first_column,r.range&&(o.range[1]=0|t.range[0])),o.first_line<=0&&n&&(o.last_line<=0||n.last_line<=o.last_line)&&(o.first_line=0|n.first_line,o.first_column=0|n.first_column,n.range&&(o.range[0]=0|n.range[0])),o.last_line<=0&&n&&(o.first_line<=0||n.first_line>=o.first_line)&&(o.last_line=0|n.last_line,o.last_column=0|n.last_column,n.range&&(o.range[1]=0|n.range[1]))),o.last_line<=0&&(o.first_line<=0?(o.first_line=this.yylloc.first_line,o.last_line=this.yylloc.last_line,o.first_column=this.yylloc.first_column,o.last_column=this.yylloc.last_column,o.range[0]=this.yylloc.range[0],o.range[1]=this.yylloc.range[1]):(o.last_line=this.yylloc.last_line,o.last_column=this.yylloc.last_column,o.range[1]=this.yylloc.range[1])),o.first_line<=0&&(o.first_line=o.last_line,o.first_column=0,o.range[1]=o.range[0]),o.first_column<0&&(o.first_column=0),o.last_column<0&&(o.last_column=o.first_column>0?o.first_column:80),o},prettyPrintRange:function(t,e,r){t=this.deriveLocationInfo(t,e,r);var n=(this.matched+this._input).split("\n"),o=Math.max(1,e?e.first_line:t.first_line-3),i=Math.max(1,r?r.last_line:t.last_line+1),a=1+Math.log10(1|i)|0,u=new Array(a).join(" "),c=[],s=n.slice(o-1,i+1).map((function(e,r){var n=r+o,i=(u+n).substr(-a)+": "+e,s=new Array(a+1).join("^"),l=3,f=0;(n===t.first_line?(l+=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)&&(i+="\n"+s+new Array(l).join(".")+new Array(f).join("^"),e.trim().length>0&&c.push(r));return i=i.replace(/\t/g," ")}));if(c.length>4){var l=c[1]+1,f=c[c.length-2]-1,p=new Array(a+1).join(" ")+" (...continued...)";p+="\n"+new Array(a+1).join("-")+" (---------------)",s.splice(l,f-l+1,p)}return s.join("\n")},describeYYLLOC:function(t,e){var r,n=t.first_line,o=t.last_line,i=t.first_column,a=t.last_column;if(0===o-n?(r="line "+n+", ",r+=a-i<=1?"column "+i:"columns "+i+" .. "+a):r="lines "+n+"(column "+i+") .. "+o+"(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,o,i,a;if(this.options.backtrack_lexer&&(o={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=(i=t[0]).length,(n=i.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+=i,this.match+=i,this.matched+=i,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 o)this[u]=o[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 o=this.__currentRuleSet__;if(!(o||(o=this.__currentRuleSet__=this._currentRules())&&o.rules)){var i="";this.options.trackPosition&&(i=" on line "+(this.yylineno+1));var a=this.constructLexErrorInfo("Internal lexer engine error"+i+': 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=o.rules,c=o.__rule_regexes,s=o.__rule_count,l=1;l<=s;l++)if((r=this._input.match(c[l]))&&(!e||r[0].length>e[0].length)){if(e=r,n=l,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,u[l])))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){i="";this.options.trackPosition&&(i=" on line "+(this.yylineno+1));a=this.constructLexErrorInfo("Lexical error"+i+": 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 o.lexer=i,a.prototype=o,o.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),o=r(6461),i=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)?i(this.nodes):""},a.prototype.walk=function(t,e){return o(this.nodes,t,e),this},a.unit=r(4386),a.walk=o,a.stringify=i,t.exports=a},8219:t=>{var e="(".charCodeAt(0),r=")".charCodeAt(0),n="'".charCodeAt(0),o='"'.charCodeAt(0),i="\\".charCodeAt(0),a="/".charCodeAt(0),u=",".charCodeAt(0),c=":".charCodeAt(0),s="*".charCodeAt(0);t.exports=function(t){for(var l,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){l=x;do{l+=1,w=b.charCodeAt(l)}while(w<=32);h=b.slice(x,l),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(l+1)!==s?k=h:g.push({type:"space",sourceIndex:x,value:h}),x=l}else if(w===n||w===o){l=x,h={type:"string",sourceIndex:x,quote:f=w===n?"'":'"'};do{if(d=!1,~(l=b.indexOf(f,l+1)))for(y=l;b.charCodeAt(y-1)===i;)y-=1,d=!d;else l=(b+=f).length-1,h.unclosed=!0}while(d);h.value=b.slice(x+1,l),g.push(h),x=l+1,w=b.charCodeAt(x)}else if(w===a&&b.charCodeAt(x+1)===s)h={type:"comment",sourceIndex:x},-1===(l=b.indexOf("*/",x))&&(h.unclosed=!0,l=b.length),h.value=b.slice(x+2,l),g.push(h),x=l+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){l=x;do{l+=1,w=b.charCodeAt(l)}while(w<=32);if(h={type:"function",sourceIndex:x-E.length,value:E,before:b.slice(x+1,l)},x=l,"url"===E&&w!==n&&w!==o){l-=1;do{if(d=!1,~(l=b.indexOf(")",l+1)))for(y=l;b.charCodeAt(y-1)===i;)y-=1,d=!d;else l=(b+=")").length-1,h.unclosed=!0}while(d);v=l;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!==l?(h.after="",h.nodes.push({type:"space",sourceIndex:v+1,value:b.slice(v+1,l)})):h.after=b.slice(v+1,l),x=l+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{l=x;do{w===i&&(l+=1),l+=1,w=b.charCodeAt(l)}while(l<O&&!(w<=32||w===n||w===o||w===u||w===c||w===a||w===e||w===r&&S));h=b.slice(x,l),e===w?E=h:g.push({type:"word",sourceIndex:x,value:h}),x=l}for(x=_.length-1;x;x-=1)_[x].unclosed=!0;return _[0].nodes}},1088:t=>{function e(t,e){var n,o,i=t.type,a=t.value;return e&&void 0!==(o=e(t))?o:"word"===i||"space"===i?a:"string"===i?(n=t.quote||"")+a+(t.unclosed?"":n):"comment"===i?"/*"+a+(t.unclosed?"":"*/"):"div"===i?(t.before||"")+a+(t.after||""):Array.isArray(t.nodes)?(n=r(t.nodes),"function"!==i?n:a+"("+(t.before||"")+n+(t.after||"")+(t.unclosed?"":")")):a}function r(t,r){var n,o;if(Array.isArray(t)){for(n="",o=t.length-1;~o;o-=1)n=e(t[o],r)+n;return n}return e(t,r)}t.exports=r},4386:t=>{var e="-".charCodeAt(0),r="+".charCodeAt(0),n=".".charCodeAt(0),o="e".charCodeAt(0),i="E".charCodeAt(0);t.exports=function(t){for(var a,u=0,c=t.length,s=!1,l=-1,f=!1;u<c;){if((a=t.charCodeAt(u))>=48&&a<=57)f=!0;else if(a===o||a===i){if(l>-1)break;l=u}else if(a===n){if(s)break;s=!0}else{if(a!==r&&a!==e)break;if(0!==u)break}u+=1}return l+1===u&&u--,!!f&&{number:t.slice(0,u),unit:t.slice(u)}}},6461:t=>{t.exports=function t(e,r,n){var o,i,a,u;for(o=0,i=e.length;o<i;o+=1)a=e[o],n||(u=r(a,o,e)),!1!==u&&"function"===a.type&&Array.isArray(a.nodes)&&t(a.nodes,r,n),n&&r(a,o,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 o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";var t={};r.r(t),r.d(t,{addTrendKeyword:()=>l,clearTrendKeywords:()=>h,deleteActiveTemplate:()=>b,refreshTrendKeywords:()=>s,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 o={};r.r(o),r.d(o,{scaleBand:()=>yi,scaleDiverging:()=>Nl,scaleDivergingLog:()=>Il,scaleDivergingPow:()=>Ll,scaleDivergingSqrt:()=>Bl,scaleDivergingSymlog:()=>Rl,scaleIdentity:()=>Qa,scaleImplicit:()=>hi,scaleLinear:()=>Za,scaleLog:()=>cu,scaleOrdinal:()=>di,scalePoint:()=>mi,scalePow:()=>mu,scaleQuantile:()=>Pu,scaleQuantize:()=>Mu,scaleRadial:()=>xu,scaleSequential:()=>jl,scaleSequentialLog:()=>Al,scaleSequentialPow:()=>Ml,scaleSequentialQuantile:()=>Cl,scaleSequentialSqrt:()=>Tl,scaleSequentialSymlog:()=>Pl,scaleSqrt:()=>gu,scaleSymlog:()=>pu,scaleThreshold:()=>Tu,scaleTime:()=>_l,scaleUtc:()=>Sl,tickFormat:()=>Xa});const i=wp.data,a=wp.hooks,u=lodash;function c(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,i.dispatch)("rank-math").updateAppData(t,e,r,n),{type:"RANK_MATH_APP_DATA",key:t,value:e}}function s(){return function(t,e){return{type:"RANK_MATH_APP_UI",key:t,value:e}}("refreshTrendKeywords",Date.now())}function l(t){var e=(0,i.select)("rank-math-pro").getTrendKeywords();return""===t||(0,u.isUndefined)(e[t])&&Object.keys(e).length<5&&(e[t]=!0),c("trendKeywords",e)}function f(t){var e=(0,i.select)("rank-math-pro").getTrendKeywords();return(0,u.isUndefined)(e[t])||delete e[t],c("trendKeywords",e)}function p(t){var e=(0,i.select)("rank-math-pro").getTrendKeywords();return(0,u.isUndefined)(e[t])||(e[t]=!e[t]),c("trendKeywords",e)}function h(){return c("trendKeywords",!1)}function d(t){return c("newsRobots",t,"rank_math_news_sitemap_robots")}function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){g(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function g(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==y(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===y(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(t){var e=m({},(0,i.select)("rank-math").getSchemas());return delete e[t],delete rankMath.activeTemplates[t],c("schemas",e,"rank_math_exclude_template_"+t,"")}function x(t,e){var r=m({},e);return r[(0,u.findKey)(e,"metadata.isPrimary")].metadata.isPrimary=!1,r[t].metadata.isPrimary=!0,(0,i.dispatch)("rank-math").schemaUpdated(!0),(0,i.dispatch)("rank-math").updateSchemas(r)}function w(t){return c("local_latitude",t[0],"rank_math_local_business_latitide"),c("local_longitude",t[1],"rank_math_local_business_longitude")}function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}function _(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,i.select)("rank-math").getKeywords(),(0,u.isEmpty)(t)?[]:t.split(",")):t}();return(0,u.forEach)(r,(function(t){e[t]=!0})),e}return t.appData.trendKeywords}function R(t){return t.appData.newsRobots}function L(t){return t.appUi.refreshTrendKeywords}const B=wp.i18n,U=wp.components;const z=function(){return rankMath.canUser.analytics&&(0,u.includes)(rankMath.modules,"analytics")&&rankMath.isAnalyticsConnected?"publish"!==((0,u.isUndefined)(rankMathEditor.assessor.dataCollector.getPostAttribute)?rankMath.postStatus:rankMathEditor.assessor.dataCollector.getPostAttribute("status"))?null:wp.element.createElement(U.Button,{className:"button-secondary rank-math-single-analytics-report",target:"_blank",href:rankMath.adminurl+"?page=rank-math-analytics#/single/"+rankMathEditor.assessor.dataCollector.getPostID()},(0,B.__)("Analytics","rank-math-pro")):null},F=wp.element,$=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),ot=r(7363),it=r.n(ot),at=r(4184),ut=r.n(at),ct=r(5697),st=r.n(ct),lt=Object.getOwnPropertyNames,ft=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty;function ht(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function dt(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var o=n.cache,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);var u=t(e,r,n);return o.delete(e),o.delete(r),u}}function yt(t){return lt(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,o,i={},a=t.entries(),u=0;(n=a.next())&&!n.done;){for(var c=e.entries(),s=!1,l=0;(o=c.next())&&!o.done;){var f=n.value,p=f[0],h=f[1],d=o.value,y=d[0],v=d[1];s||i[l]||!(s=r.equals(p,y,u,l,t,e,r)&&r.equals(h,v,p,y,t,e,r))||(i[l]=!0),l++}if(!s)return!1;u++}return!0}function St(t,e,r){var n,o=xt(t),i=o.length;if(xt(e).length!==i)return!1;for(;i-- >0;){if((n=o[i])===gt&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!vt(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function Et(t,e,r){var n,o,i,a=yt(t),u=a.length;if(yt(e).length!==u)return!1;for(;u-- >0;){if((n=a[u])===gt&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!vt(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(o=bt(t,n),i=bt(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function kt(t,e){return mt(t.valueOf(),e.valueOf())}function 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,o,i={},a=t.values();(n=a.next())&&!n.done;){for(var u=e.values(),c=!1,s=0;(o=u.next())&&!o.done;)c||i[s]||!(c=r.equals(n.value,o.value,n.value,o.value,t,e,r))||(i[s]=!0),s++;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,o=t.createInternalComparator,i=t.createState,a=t.strict,u=void 0!==a&&a,c=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,o={areArraysEqual:n?Et:wt,areDatesEqual:Ot,areMapsEqual:n?ht(_t,Et):_t,areObjectsEqual:n?Et:St,arePrimitiveWrappersEqual:kt,areRegExpsEqual:jt,areSetsEqual:n?ht(At,Et):At,areTypedArraysEqual:n?Et:Pt};if(r&&(o=Ft({},o,r(o))),e){var i=dt(o.areArraysEqual),a=dt(o.areMapsEqual),u=dt(o.areObjectsEqual),c=dt(o.areSetsEqual);o=Ft({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:u,areSetsEqual:c})}return o}(t),s=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,o=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,u=t.areSetsEqual,c=t.areTypedArraysEqual;return function(t,s,l){if(t===s)return!0;if(null==t||null==s||"object"!=typeof t||"object"!=typeof s)return t!=t&&s!=s;var f=t.constructor;if(f!==s.constructor)return!1;if(f===Object)return o(t,s,l);if(Ut(t))return e(t,s,l);if(null!=zt&&zt(t))return c(t,s,l);if(f===Date)return r(t,s,l);if(f===RegExp)return a(t,s,l);if(f===Map)return n(t,s,l);if(f===Set)return u(t,s,l);var p=$t(t);return p===Ct?r(t,s,l):p===Rt?a(t,s,l):p===Dt?n(t,s,l):p===Lt?u(t,s,l):p===It?"function"!=typeof t.then&&"function"!=typeof s.then&&o(t,s,l):p===Mt?o(t,s,l):(p===Tt||p===Nt||p===Bt)&&i(t,s,l)}}(c),l=o?o(s):(e=s,function(t,r,n,o,i,a,u){return e(t,r,u)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,o=t.equals,i=t.strict;if(n)return function(t,a){var u=n(),c=u.cache,s=void 0===c?e?new WeakMap:void 0:c,l=u.meta;return r(t,a,{cache:s,equals:o,meta:l,strict:i})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return r(t,e,a)}}({circular:n,comparator:s,createState:i,equals:l,strict:u})}function Wt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(o){r<0&&(r=o),o-r>e?(t(o),r=-1):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 o=Gt(n),i=o[0],a=o.slice(1);return"number"==typeof i?void Wt(r.bind(null,a),i):(r(i),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},oe=function(t,e){return Object.keys(e).reduce((function(r,n){return Zt(Zt({},r),{},Qt({},n,t(n,e[n])))}),{})},ie=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()})),o=e;return te.reduce((function(t,i,a){return r&&(o=e.replace(/(transform|transform-origin)/gim,"".concat(ee[a],"$1"))),Zt(Zt({},t),{},Qt({},i+n,o))}),{})}(e,t[e]))}),t)},ae=function(t,e,r){return t.map((function(t){return"".concat((n=t,n.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(r);var n})).join(",")};function ue(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||se(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(t){return function(t){if(Array.isArray(t))return le(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||se(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function se(t,e){if(t){if("string"==typeof t)return le(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)?le(t,e):void 0}}function le(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var fe=1e-4,pe=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},he=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},de=function(t,e){return function(r){var n=pe(t,e);return he(n,r)}},ye=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,o=0,i=1,a=1;break;case"ease":n=.25,o=.1,i=.25,a=1;break;case"ease-in":n=.42,o=0,i=1,a=1;break;case"ease-out":n=.42,o=0,i=.58,a=1;break;case"ease-in-out":n=0,o=0,i=.58,a=1;break;default:var u=e[0].split("(");if("cubic-bezier"===u[0]&&4===u[1].split(")")[0].split(",").length){var c=ue(u[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),4);n=c[0],o=c[1],i=c[2],a=c[3]}}[n,i,o,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1}));var s,l,f=de(n,i),p=de(o,a),h=(s=n,l=i,function(t){var e=pe(s,l),r=[].concat(ce(e.map((function(t,e){return t*e})).slice(1)),[0]);return he(r,t)}),d=function(t){return t>1?1:t<0?0:t},y=function(t){for(var e=t>1?1:t,r=e,n=0;n<8;++n){var o=f(r)-e,i=h(r);if(Math.abs(o-e)<fe||i<fe)return p(r);r=d(r-o/i)}return p(r)};return y.isStepper=!1,y},ve=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return ye(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,o=void 0===n?8:n,i=t.dt,a=void 0===i?17:i,u=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,u=n*a/1e3+t;return Math.abs(u-e)<fe&&Math.abs(i)<fe?[e,0]:[u,i]};return u.isStepper=!0,u.dt=a,u}();default:if("cubic-bezier"===n.split("(")[0])return ye(n)}return"function"==typeof n?n:null};function me(t){return me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},me(t)}function ge(t){return function(t){if(Array.isArray(t))return 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,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}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 o=oe((function(t,r){if(ke(r)){var n=Oe(e(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return xe(xe({},r),{},{from:o,velocity:i})}return r}),r);return n<1?oe((function(t,e){return ke(e)?xe(xe({},e),{},{velocity:Ee(e.velocity,o[t].velocity,n),from:Ee(e.from,o[t].from,n)}):e}),r):t(e,o,n-1)};const Ae=function(t,e,r,n,o){var i,a,u,c,s=(i=t,a=e,[Object.keys(i),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),l=s.reduce((function(r,n){return xe(xe({},r),{},we({},n,[t[n],e[n]]))}),{}),f=s.reduce((function(r,n){return xe(xe({},r),{},we({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,h=function(){return null};return h=r.isStepper?function(n){u||(u=n);var i=(n-u)/r.dt;f=je(r,f,i),o(xe(xe(xe({},t),e),oe((function(t,e){return e.from}),f))),u=n,Object.values(f).filter(ke).length&&(p=requestAnimationFrame(h))}:function(i){c||(c=i);var a=(i-c)/n,u=oe((function(t,e){return Ee.apply(void 0,ge(e).concat([r(a)]))}),l);if(o(xe(xe(xe({},t),e),u)),a<1)p=requestAnimationFrame(h);else{var s=oe((function(t,e){return Ee.apply(void 0,ge(e).concat([r(1)]))}),l);o(xe(xe(xe({},t),e),s))}},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,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Ce(t){return function(t){if(Array.isArray(t))return De(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return De(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return De(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function De(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ne(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ie(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ne(Object(r),!0).forEach((function(e){Re(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Re(t,e,r){return(e=Be(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Le(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Be(n.key),n)}}function Be(t){var e=function(t,e){if("object"!==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 o=Ve(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Fe(this,r)}}function Fe(t,e){if(e&&("object"===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)}(i,t);var e,r,n,o=ze(i);function i(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);var n=(r=o.call(this,t,e)).props,a=n.isActive,u=n.attributeName,c=n.from,s=n.to,l=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:s}),Fe(r);if(l&&l.length)r.state={style:l[0].style};else if(c){if("function"==typeof f)return r.state={style:c},Fe(r);r.state={style:u?Re({},u,c):c}}else r.state={style:{}};return r}return e=i,(r=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,o=e.attributeName,i=e.shouldReAnimate,a=e.to,u=e.from,c=this.state.style;if(n)if(r){if(!(Vt(t.to,a)&&t.canBegin&&t.isActive)){var s=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var l=s||i?u:t.to;if(this.state&&c){var f={style:o?Re({},o,l):l};(o&&[o]!==l||!o&&c!==l)&&this.setState(f)}this.runAnimation(Ie(Ie({},this.props),{},{from:l,begin:0}))}}else{var p={style:o?Re({},o,a):a};this.state&&c&&(o&&c[o]!==a||!o&&c!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1,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,o=t.duration,i=t.easing,a=t.begin,u=t.onAnimationEnd,c=t.onAnimationStart,s=Ae(r,n,ve(i),o,this.changeStyle);this.manager.start([c,a,function(){e.stopJSAnimation=s()},o,u])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,o=t.onAnimationStart,i=r[0],a=i.style,u=i.duration,c=void 0===u?0:u;return this.manager.start([o].concat(Ce(r.reduce((function(t,n,o){if(0===o)return t;var i=n.duration,a=n.easing,u=void 0===a?"ease":a,c=n.style,s=n.properties,l=n.onAnimationEnd,f=o>0?r[o-1]:n,p=s||Object.keys(c);if("function"==typeof u||"spring"===u)return[].concat(Ce(t),[e.runJSAnimation.bind(e,{from:f.style,to:c,duration:i,easing:u}),i]);var h=ae(p,i,u),d=Ie(Ie(Ie({},f.style),c),{},{transition:h});return[].concat(Ce(t),[d,i,l]).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,o=t.to,i=t.easing,a=t.onAnimationStart,u=t.onAnimationEnd,c=t.steps,s=t.children,l=this.manager;if(this.unSubscribe=l.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof s&&"spring"!==i)if(c.length>1)this.runStepAnimation(t);else{var f=n?Re({},n,o):o,p=ae(Object.keys(f),r,i);l.start([a,e,Ie(Ie({},f),{},{transition:p}),r,u])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children,r=(t.begin,t.duration),n=(t.attributeName,t.easing,t.isActive),o=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,Te(t,Me)),i=ot.Children.count(e),a=ie(this.state.style);if("function"==typeof e)return e(a);if(!n||0===i||r<=0)return e;var u=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,i=e.className;return(0,ot.cloneElement)(t,Ie(Ie({},o),{},{style:Ie(Ie({},n),a),className:i}))};return 1===i?u(ot.Children.only(e)):it().createElement("div",null,ot.Children.map(e,(function(t){return u(t)})))}}])&&Le(e.prototype,r),n&&Le(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.PureComponent);He.displayName="Animate",He.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},He.propTypes={from:st().oneOfType([st().object,st().string]),to:st().oneOfType([st().object,st().string]),attributeName:st().string,duration:st().number,begin:st().number,easing:st().oneOfType([st().string,st().func]),steps:st().arrayOf(st().shape({duration:st().number.isRequired,style:st().object.isRequired,easing:st().oneOfType([st().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),st().func]),properties:st().arrayOf("string"),onAnimationEnd:st().func})),children:st().oneOfType([st().node,st().func]),isActive:st().bool,canBegin:st().bool,onAnimationEnd:st().func,shouldReAnimate:st().bool,onAnimationStart:st().func,onAnimationReStart:st().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,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function 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){or(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,ir(n.key),n)}}function tr(t,e){return tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},tr(t,e)}function er(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=nr(t);if(e){var o=nr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===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 or(t,e,r){return(e=ir(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ir(t){var e=function(t,e){if("object"!==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)}(i,t);var e,r,n,o=er(i);function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),or(rr(t=o.call(this)),"handleEnter",(function(e,r){var n=t.props,o=n.appearOptions,i=n.enterOptions;t.handleStyleActive(r?o:i)})),or(rr(t),"handleExit",(function(){var e=t.props.leaveOptions;t.handleStyleActive(e)})),t.state={isActive:!1},t}return e=i,(r=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(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 it().createElement(qe.Transition,Ye({},n,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return it().createElement(We,t.state,ot.Children.only(r))}))}}])&&Qe(e.prototype,r),n&&Qe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.Component);ur.propTypes={appearOptions:st().object,enterOptions:st().object,leaveOptions:st().object,children:st().element};const cr=ur;function sr(t){var e=t.component,r=t.children,n=t.appear,o=t.enter,i=t.leave;return it().createElement(qe.TransitionGroup,{component:e},ot.Children.map(r,(function(t,e){return it().createElement(cr,{appearOptions:n,enterOptions:o,leaveOptions:i,key:"child-".concat(e)},t)})))}sr.propTypes={appear:st().object,enter:st().object,leave:st().object,children:st().oneOfType([st().array,st().element]),component:st().any},sr.defaultProps={component:"span"};const lr=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,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0),u=(i*o+a*n)/(n+o);return(Or(i)+Or(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(u))||0}function 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,o=t._y0,i=t._x1,a=t._y1,u=(i-n)/3;t._context.bezierCurveTo(n+u,o+u*e,i-u,a-u*r,i,a)}function kr(t){this._context=t}function 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,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=o[e]/i[e-1],i[e]-=r,a[e]-=r*a[e-1];for(o[n-1]=a[n-1]/i[n-1],e=n-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[n-1]=(t[n]+o[n-1])/2,e=0;e<n-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function Tr(t,e){this._context=t,this._t=e}br.prototype={areaStart:hr,areaEnd:hr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},xr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},kr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Er(this,this._t0,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,o,i){this._context.bezierCurveTo(e,t,n,r,i,o)}},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),o=Mr(e),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Tr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};Array.prototype.slice;function Cr(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Dr(t){return function(){return t}}const Nr=Math.PI,Ir=2*Nr,Rr=1e-6,Lr=Ir-Rr;function Br(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class Ur{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Br:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Br;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,o,i){this._append`C${+t},${+e},${+r},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(t,e,r,n,o){if(t=+t,e=+e,r=+r,n=+n,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,u=r-t,c=n-e,s=i-t,l=a-e,f=s*s+l*l;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>Rr)if(Math.abs(l*u-c*s)>Rr&&o){let p=r-i,h=n-a,d=u*u+c*c,y=p*p+h*h,v=Math.sqrt(d),m=Math.sqrt(f),g=o*Math.tan((Nr-Math.acos((d+f-y)/(2*v*m)))/2),b=g/m,x=g/v;Math.abs(b-1)>Rr&&this._append`L${t+b*s},${e+b*l}`,this._append`A${o},${o},0,0,${+(l*p>s*h)},${this._x1=t+x*u},${this._y1=e+x*c}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,r,n,o,i){if(t=+t,e=+e,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),u=r*Math.sin(n),c=t+a,s=e+u,l=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${c},${s}`:(Math.abs(this._x1-c)>Rr||Math.abs(this._y1-s)>Rr)&&this._append`L${c},${s}`,r&&(f<0&&(f=f%Ir+Ir),f>Lr?this._append`A${r},${r},0,1,${l},${t-a},${e-u}A${r},${r},0,1,${l},${this._x1=c},${this._y1=s}`:f>Rr&&this._append`A${r},${r},0,${+(f>=Nr)},${l},${this._x1=t+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function zr(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);e=t}return t},()=>new Ur(e)}function Fr(t){return t[0]}function $r(t){return t[1]}function Vr(t,e){var r=Dr(!0),n=null,o=wr,i=null,a=zr(u);function u(u){var c,s,l,f=(u=Cr(u)).length,p=!1;for(null==n&&(i=o(l=a())),c=0;c<=f;++c)!(c<f&&r(s=u[c],c,u))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(s,c,u),+e(s,c,u));if(l)return i=null,l+""||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?(o=t,null!=n&&(i=o(n)),u):o},u.context=function(t){return arguments.length?(null==t?n=i=null:i=o(n=t),u):n},u}function Hr(t,e,r){var n=null,o=Dr(!0),i=null,a=wr,u=null,c=zr(s);function s(s){var l,f,p,h,d,y=(s=Cr(s)).length,v=!1,m=new Array(y),g=new Array(y);for(null==i&&(u=a(d=c())),l=0;l<=y;++l){if(!(l<y&&o(h=s[l],l,s))===v)if(v=!v)f=l,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),p=l-1;p>=f;--p)u.point(m[p],g[p]);u.lineEnd(),u.areaEnd()}v&&(m[l]=+t(h,l,s),g[l]=+e(h,l,s),u.point(n?+n(h,l,s):m[l],r?+r(h,l,s):g[l]))}if(d)return u=null,d+""||null}function l(){return Vr().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?Fr:Dr(+t),e="function"==typeof e?e:Dr(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?$r:Dr(+r),s.x=function(e){return arguments.length?(t="function"==typeof e?e:Dr(+e),n=null,s):t},s.x0=function(e){return arguments.length?(t="function"==typeof e?e:Dr(+e),s):t},s.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Dr(+t),s):n},s.y=function(t){return arguments.length?(e="function"==typeof t?t:Dr(+t),r=null,s):e},s.y0=function(t){return arguments.length?(e="function"==typeof t?t:Dr(+t),s):e},s.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Dr(+t),s):r},s.lineX0=s.lineY0=function(){return l().x(t).y(e)},s.lineY1=function(){return l().x(t).y(r)},s.lineX1=function(){return l().x(n).y(e)},s.defined=function(t){return arguments.length?(o="function"==typeof t?t:Dr(!!t),s):o},s.curve=function(t){return arguments.length?(a=t,null!=i&&(u=a(i)),s):a},s.context=function(t){return arguments.length?(null==t?i=u=null:u=a(i=t),s):i},s}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,ot.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(o){var i=t[o];Jr.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(t,e,r){return function(n){return t(e,r,n),null}}(i,e,r))})),n},tn=r(7037),en=r.n(tn),rn=r(9864),nn=r(1763),on=r.n(nn),an=function(t){return 0===t?0:t>0?1:-1},un=function(t){return en()(t)&&t.indexOf("%")===t.length-1},cn=function(t){return on()(t)&&!G()(t)},sn=function(t){return cn(t)||en()(t)},ln=0,fn=function(t){var e=++ln;return"".concat(t||"").concat(e)},pn=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!cn(t)&&!en()(t))return n;if(un(t)){var i=t.indexOf("%");r=e*parseFloat(t.slice(0,i))/100}else r=+t;return G()(r)&&(r=n),o&&r>e&&(r=e),r},hn=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},dn=function(t,e){return cn(t)&&cn(e)?function(r){return t+r*(e-t)}:function(){return e}};function yn(t,e,r){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):Q()(t,e))===r})):null}function vn(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}var mn=["children"],gn=["children"];function bn(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function xn(t){return xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xn(t)}var wn={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},On=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},_n=null,Sn=null,En=function t(e){if(e===_n&&nt()(Sn))return Sn;var r=[];return ot.Children.forEach(e,(function(e){et()(e)||((0,rn.isFragment)(e)?r=r.concat(t(e.props.children)):r.push(e))})),Sn=r,_n=e,r};function kn(t,e){var r=[],n=[];return n=nt()(e)?e.map((function(t){return On(t)})):[On(e)],En(t).forEach((function(t){var e=Q()(t,"type.displayName")||Q()(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function jn(t,e){var r=kn(t,e);return r&&r[0]}var An=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)},Pn=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Mn=function(t){return t&&t.type&&en()(t.type)&&Pn.indexOf(t.type)>=0},Tn=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,ot.isValidElement)(t)&&(n=t.props),!qr()(n))return null;var o={};return Object.keys(n).forEach((function(t){var i;(function(t,e,r,n){var o,i=null!==(o=null==Xr?void 0:Xr[n])&&void 0!==o?o:[];return!J()(t)&&(n&&i.includes(e)||Kr.includes(e))||r&&Jr.includes(e)})(null===(i=n)||void 0===i?void 0:i[t],t,e,r)&&(o[t]=n[t])})),o},Cn=function t(e,r){if(e===r)return!0;var n=ot.Children.count(e);if(n!==ot.Children.count(r))return!1;if(0===n)return!0;if(1===n)return Dn(nt()(e)?e[0]:e,nt()(r)?r[0]:r);for(var o=0;o<n;o++){var i=e[o],a=r[o];if(nt()(i)||nt()(a)){if(!t(i,a))return!1}else if(!Dn(i,a))return!1}return!0},Dn=function(t,e){if(et()(t)&&et()(e))return!0;if(!et()(t)&&!et()(e)){var r=t.props||{},n=r.children,o=bn(r,mn),i=e.props||{},a=i.children,u=bn(i,gn);return n&&a?vn(o,u)&&Cn(n,a):!n&&!a&&vn(o,u)}return!1},Nn=function(t,e){var r=[],n={};return En(t).forEach((function(t,o){if(Mn(t))r.push(t);else if(t){var i=On(t.type),a=e[i]||{},u=a.handler,c=a.once;if(u&&(!c||!n[i])){var s=u(t,i,o);r.push(s),n[i]=!0}}})),r};function In(t){return In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},In(t)}function Rn(){return Rn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Rn.apply(this,arguments)}function Ln(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ln(Object(r),!0).forEach((function(e){Un(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ln(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Un(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==In(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==In(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===In(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var zn={curveBasisClosed:function(t){return new vr(t)},curveBasisOpen:function(t){return new mr(t)},curveBasis:function(t){return new yr(t)},curveBumpX:function(t){return new gr(t,!0)},curveBumpY:function(t){return new gr(t,!1)},curveLinearClosed:function(t){return new br(t)},curveLinear:wr,curveMonotoneX:function(t){return new kr(t)},curveMonotoneY:function(t){return new 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)}},Fn=function(t){return t.x===+t.x&&t.y===+t.y},$n=function(t){return t.x},Vn=function(t){return t.y},Hn=function(t){var e,r=t.type,n=void 0===r?"linear":r,o=t.points,i=void 0===o?[]:o,a=t.baseLine,u=t.layout,c=t.connectNulls,s=void 0!==c&&c,l=function(t,e){if(J()(t))return t;var r="curve".concat(pr()(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?zn[r]||wr:zn["".concat(r).concat("vertical"===e?"Y":"X")]}(n,u),f=s?i.filter((function(t){return Fn(t)})):i;if(nt()(a)){var p=s?a.filter((function(t){return Fn(t)})):a,h=f.map((function(t,e){return Bn(Bn({},t),{},{base:p[e]})}));return(e="vertical"===u?Hr().y(Vn).x1($n).x0((function(t){return t.base.x})):Hr().x($n).y1(Vn).y0((function(t){return t.base.y}))).defined(Fn).curve(l),e(h)}return(e="vertical"===u&&cn(a)?Hr().y(Vn).x1($n).x0(a):cn(a)?Hr().x($n).y1(Vn).y0(a):Vr().x($n).y(Vn)).defined(Fn).curve(l),e(f)},Wn=function(t){var e=t.className,r=t.points,n=t.path,o=t.pathRef;if(!(r&&r.length||n))return null;var i=r&&r.length?Hn(t):n;return it().createElement("path",Rn({},Tn(t),Zr(t),{className:ut()("recharts-curve",e),d:i,ref:o}))};function qn(){return qn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qn.apply(this,arguments)}var Gn=function(t){var e=t.cx,r=t.cy,n=t.r,o=t.className,i=ut()("recharts-dot",o);return e===+e&&r===+r&&n===+n?it().createElement("circle",qn({},Tn(t),Zr(t),{className:i,cx:e,cy:r,r:n})):null},Kn=["children","className"];function Yn(){return Yn=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},Yn.apply(this,arguments)}function Xn(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Jn=it().forwardRef((function(t,e){var r=t.children,n=t.className,o=Xn(t,Kn),i=ut()("recharts-layer",n);return it().createElement("g",Yn({className:i},Tn(o,!0),{ref:e}),r)})),Zn=r(928),Qn=r.n(Zn),to=r(4275),eo=r.n(to),ro={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return ro[t]},set:function(t,e){if("string"==typeof t)ro[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach((function(e){ro[e]=t[e]}))}}};function no(t){return no="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},no(t)}function oo(t,e){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 io(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?oo(Object(r),!0).forEach((function(e){ao(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oo(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ao(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==no(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==no(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===no(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function uo(t){return function(t){if(Array.isArray(t))return co(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 co(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 co(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 co(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 so={widthCache:{},cacheCount:0},lo={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},fo=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],po="recharts_measurement_span";var ho=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(uo(t),["-",e.toLowerCase()]):[].concat(uo(t),[e])}),[]).join("")),":").concat(function(t,e){return fo.indexOf(t)>=0&&e===+e?"".concat(e,"px"):e}(r,t[r]),";");var n}),"")},yo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||ro.isSsr)return{width:0,height:0};var r="".concat(t),n=ho(e),o="".concat(r,"-").concat(n);if(so.widthCache[o])return so.widthCache[o];try{var i=document.getElementById(po);i||((i=document.createElement("span")).setAttribute("id",po),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=io(io({},lo),e);Object.keys(a).map((function(t){return i.style[t]=a[t],t})),i.textContent=r;var u=i.getBoundingClientRect(),c={width:u.width,height:u.height};return so.widthCache[o]=c,++so.cacheCount>2e3&&(so.cacheCount=0,so.widthCache={}),c}catch(t){return{width:0,height:0}}},vo=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],mo=["dx","dy","angle","className","breakAll"];function go(){return go=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},go.apply(this,arguments)}function bo(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function xo(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return wo(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 wo(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 wo(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 Oo=/[ \f\n\r\t\v\u2028\u2029]+/,_o=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var o=[];return et()(e)||(o=r?e.toString().split(""):e.toString().split(Oo)),{wordsWithComputedWidth:o.map((function(t){return{word:t,width:yo(t,n).width}})),spaceWidth:r?0:yo(" ",n).width}}catch(t){return null}},So=function(t){return[{words:et()(t)?[]:t.toString().split(Oo)}]},Eo=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!ro.isSsr){var u=_o({breakAll:i,children:n,style:o});return u?function(t,e,r,n,o){var i=t.maxLines,a=t.children,u=t.style,c=t.breakAll,s=cn(i),l=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var i=e.word,a=e.width,u=t[t.length-1];if(u&&(null==n||o||u.width+a+r<Number(n)))u.words.push(i),u.width+=a+r;else{var c={words:[i],width:a};t.push(c)}return t}),[])},p=f(e);if(!s)return p;for(var h,d=function(t){var e=l.slice(0,t),r=_o({breakAll:c,style:u,children:e+"…"}).wordsWithComputedWidth,o=f(r),a=o.length>i||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(o).width>Number(n);return[a,o]},y=0,v=l.length-1,m=0;y<=v&&m<=l.length-1;){var g=Math.floor((y+v)/2),b=xo(d(g-1),2),x=b[0],w=b[1],O=xo(d(g),1)[0];if(x||O||(y=g+1),x&&O&&(v=g-1),!x&&O){h=w;break}m++}return h||p}({breakAll:i,children:n,maxLines:a,style:o},u.wordsWithComputedWidth,u.spaceWidth,e,r):So(n)}return So(n)},ko="#808080",jo=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,o=void 0===n?0:n,i=t.lineHeight,a=void 0===i?"1em":i,u=t.capHeight,c=void 0===u?"0.71em":u,s=t.scaleToFit,l=void 0!==s&&s,f=t.textAnchor,p=void 0===f?"start":f,h=t.verticalAnchor,d=void 0===h?"end":h,y=t.fill,v=void 0===y?ko:y,m=bo(t,vo),g=(0,ot.useMemo)((function(){return Eo({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:l,style:m.style,width:m.width})}),[m.breakAll,m.children,m.maxLines,l,m.style,m.width]),b=m.dx,x=m.dy,w=m.angle,O=m.className,_=m.breakAll,S=bo(m,mo);if(!sn(r)||!sn(o))return null;var E,k=r+(cn(b)?b:0),j=o+(cn(x)?x:0);switch(d){case"start":E=eo()("calc(".concat(c,")"));break;case"middle":E=eo()("calc(".concat((g.length-1)/2," * -").concat(a," + (").concat(c," / 2))"));break;default:E=eo()("calc(".concat(g.length-1," * -").concat(a,")"))}var A=[];if(l){var P=g[0].width,M=m.width;A.push("scale(".concat((cn(M)?M/P:1)/P,")"))}return w&&A.push("rotate(".concat(w,", ").concat(k,", ").concat(j,")")),A.length&&(S.transform=A.join(" ")),it().createElement("text",go({},Tn(S,!0),{x:k,y:j,className:ut()("recharts-text",O),textAnchor:p,fill:v.includes("url")?ko:v}),g.map((function(t,e){return it().createElement("tspan",{x:k,dy:0===e?E:a,key:e},t.words.join(_?"":" "))})))};function Ao(t){return Ao="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},Ao(t)}function Po(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 Mo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Po(Object(r),!0).forEach((function(e){To(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Po(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function To(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Ao(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ao(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ao(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Co=Math.PI/180,Do=function(t){return 180*t/Math.PI},No=function(t,e,r,n){return{x:t+Math.cos(-Co*n)*r,y:e+Math.sin(-Co*n)*r}},Io=function(t,e){var r=t.x,n=t.y,o=e.cx,i=e.cy,a=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(n-i,2))}({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var u=(r-o)/a,c=Math.acos(u);return n>i&&(c=2*Math.PI-c),{radius:a,angle:Do(c),angleInRadian:c}},Ro=function(t,e){var r=e.startAngle,n=e.endAngle,o=Math.floor(r/360),i=Math.floor(n/360);return t+360*Math.min(o,i)},Lo=function(t,e){var r=t.x,n=t.y,o=Io({x:r,y:n},e),i=o.radius,a=o.angle,u=e.innerRadius,c=e.outerRadius;if(i<u||i>c)return!1;if(0===i)return!0;var s,l=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:e-360*i,endAngle:r-360*i}}(e),f=l.startAngle,p=l.endAngle,h=a;if(f<=p){for(;h>p;)h-=360;for(;h<f;)h+=360;s=h>=f&&h<=p}else{for(;h>f;)h-=360;for(;h<p;)h+=360;s=h>=p&&h<=f}return s?Mo(Mo({},e),{},{radius:i,angle:Ro(h,e)}):null};function Bo(t){return Bo="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},Bo(t)}var Uo=["offset"];function zo(t){return function(t){if(Array.isArray(t))return Fo(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 Fo(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 Fo(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 Fo(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 $o(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Vo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ho(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Vo(Object(r),!0).forEach((function(e){Wo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vo(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wo(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Bo(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Bo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Bo(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qo(){return qo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qo.apply(this,arguments)}var Go=function(t){var e=t.value,r=t.formatter,n=et()(t.children)?e:t.children;return J()(r)?r(n):n},Ko=function(t,e,r){var n,o,i=t.position,a=t.viewBox,u=t.offset,c=t.className,s=a,l=s.cx,f=s.cy,p=s.innerRadius,h=s.outerRadius,d=s.startAngle,y=s.endAngle,v=s.clockWise,m=(p+h)/2,g=function(t,e){return an(e-t)*Math.min(Math.abs(e-t),360)}(d,y),b=g>=0?1:-1;"insideStart"===i?(n=d+b*u,o=v):"insideEnd"===i?(n=y-b*u,o=!v):"end"===i&&(n=y+b*u,o=v),o=g<=0?o:!o;var x=No(l,f,m,n),w=No(l,f,m,n+359*(o?1:-1)),O="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(o?0:1,",\n ").concat(w.x,",").concat(w.y),_=et()(t.id)?fn("recharts-radial-line-"):t.id;return it().createElement("text",qo({},r,{dominantBaseline:"central",className:ut()("recharts-radial-bar-label",c)}),it().createElement("defs",null,it().createElement("path",{id:_,d:O})),it().createElement("textPath",{xlinkHref:"#".concat(_)},e))},Yo=function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e,i=o.cx,a=o.cy,u=o.innerRadius,c=o.outerRadius,s=(o.startAngle+o.endAngle)/2;if("outside"===n){var l=No(i,a,c+r,s),f=l.x;return{x:f,y:l.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=No(i,a,(u+c)/2,s);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},Xo=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e,a=i.x,u=i.y,c=i.width,s=i.height,l=s>=0?1:-1,f=l*n,p=l>0?"end":"start",h=l>0?"start":"end",d=c>=0?1:-1,y=d*n,v=d>0?"end":"start",m=d>0?"start":"end";if("top"===o)return Ho(Ho({},{x:a+c/2,y:u-l*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(u-r.y,0),width:c}:{});if("bottom"===o)return Ho(Ho({},{x:a+c/2,y:u+s+f,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(r.y+r.height-(u+s),0),width:c}:{});if("left"===o){var g={x:a-y,y:u+s/2,textAnchor:v,verticalAnchor:"middle"};return Ho(Ho({},g),r?{width:Math.max(g.x-r.x,0),height:s}:{})}if("right"===o){var b={x:a+c+y,y:u+s/2,textAnchor:m,verticalAnchor:"middle"};return Ho(Ho({},b),r?{width:Math.max(r.x+r.width-b.x,0),height:s}:{})}var x=r?{width:c,height:s}:{};return"insideLeft"===o?Ho({x:a+y,y:u+s/2,textAnchor:m,verticalAnchor:"middle"},x):"insideRight"===o?Ho({x:a+c-y,y:u+s/2,textAnchor:v,verticalAnchor:"middle"},x):"insideTop"===o?Ho({x:a+c/2,y:u+f,textAnchor:"middle",verticalAnchor:h},x):"insideBottom"===o?Ho({x:a+c/2,y:u+s-f,textAnchor:"middle",verticalAnchor:p},x):"insideTopLeft"===o?Ho({x:a+y,y:u+f,textAnchor:m,verticalAnchor:h},x):"insideTopRight"===o?Ho({x:a+c-y,y:u+f,textAnchor:v,verticalAnchor:h},x):"insideBottomLeft"===o?Ho({x:a+y,y:u+s-f,textAnchor:m,verticalAnchor:p},x):"insideBottomRight"===o?Ho({x:a+c-y,y:u+s-f,textAnchor:v,verticalAnchor:p},x):qr()(o)&&(cn(o.x)||un(o.x))&&(cn(o.y)||un(o.y))?Ho({x:a+pn(o.x,c),y:u+pn(o.y,s),textAnchor:"end",verticalAnchor:"end"},x):Ho({x:a+c/2,y:u+s/2,textAnchor:"middle",verticalAnchor:"middle"},x)},Jo=function(t){return"cx"in t&&cn(t.cx)};function Zo(t){var e,r=t.offset,n=Ho({offset:void 0===r?5:r},$o(t,Uo)),o=n.viewBox,i=n.position,a=n.value,u=n.children,c=n.content,s=n.className,l=void 0===s?"":s,f=n.textBreakAll;if(!o||et()(a)&&et()(u)&&!(0,ot.isValidElement)(c)&&!J()(c))return null;if((0,ot.isValidElement)(c))return(0,ot.cloneElement)(c,n);if(J()(c)){if(e=(0,ot.createElement)(c,n),(0,ot.isValidElement)(e))return e}else e=Go(n);var p=Jo(o),h=Tn(n,!0);if(p&&("insideStart"===i||"insideEnd"===i||"end"===i))return Ko(n,e,h);var d=p?Yo(n):Xo(n);return it().createElement(jo,qo({className:ut()("recharts-label",l)},h,d,{breakAll:f}),e)}Zo.displayName="Label";var Qo=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,u=t.radius,c=t.innerRadius,s=t.outerRadius,l=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(l)&&cn(f))return{x:l,y:f,width:d,height:y};if(cn(p)&&cn(h))return{x:p,y:h,width:d,height:y}}return cn(l)&&cn(f)?{x:l,y:f,width:0,height:0}:cn(e)&&cn(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:c||0,outerRadius:s||u||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};Zo.parseViewBox=Qo,Zo.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=t.children,o=Qo(t),i=kn(n,Zo).map((function(t,r){return(0,ot.cloneElement)(t,{viewBox:e||o,key:"label-".concat(r)})}));if(!r)return i;var a=function(t,e){return t?!0===t?it().createElement(Zo,{key:"label-implicit",viewBox:e}):sn(t)?it().createElement(Zo,{key:"label-implicit",viewBox:e,value:t}):(0,ot.isValidElement)(t)?t.type===Zo?(0,ot.cloneElement)(t,{key:"label-implicit",viewBox:e}):it().createElement(Zo,{key:"label-implicit",content:t,viewBox:e}):J()(t)?it().createElement(Zo,{key:"label-implicit",content:t,viewBox:e}):qr()(t)?it().createElement(Zo,qo({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||o);return[a].concat(zo(i))};var ti=r(9734),ei=r.n(ti),ri=r(3632),ni=r.n(ri),oi=r(4654),ii=r.n(oi);function ai(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function ui(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 ci extends Map{constructor(t,e=pi){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(si(this,t))}has(t){return super.has(si(this,t))}set(t,e){return super.set(li(this,t),e)}delete(t){return super.delete(fi(this,t))}}function si({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function li({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}function fi({_intern:t,_key:e},r){const n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}function pi(t){return null!==t&&"object"==typeof t?t.valueOf():t}const hi=Symbol("implicit");function di(){var t=new ci,e=[],r=[],n=hi;function o(o){let i=t.get(o);if(void 0===i){if(n!==hi)return n;t.set(o,i=e.push(o)-1)}return r[i%r.length]}return o.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new ci;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return o},o.range=function(t){return arguments.length?(r=Array.from(t),o):r.slice()},o.unknown=function(t){return arguments.length?(n=t,o):n},o.copy=function(){return di(e,r).unknown(n)},ai.apply(o,arguments),o}function yi(){var t,e,r=di().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,u=!1,c=0,s=0,l=.5;function f(){var r=n().length,f=a<i,p=f?a:i,h=f?i:a;t=(h-p)/Math.max(1,r-c+2*s),u&&(t=Math.floor(t)),p+=(h-p-t*(r-c))*l,e=t*(1-c),u&&(p=Math.round(p),e=Math.round(e));var d=function(t,e,r){t=+t,e=+e,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var n=-1,o=0|Math.max(0,Math.ceil((e-t)/r)),i=new Array(o);++n<o;)i[n]=t+n*r;return i}(r).map((function(e){return p+t*e}));return o(f?d.reverse():d)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},r.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,u=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(u=!!t,f()):u},r.padding=function(t){return arguments.length?(c=Math.min(1,s=+t),f()):c},r.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),f()):c},r.paddingOuter=function(t){return arguments.length?(s=+t,f()):s},r.align=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),f()):l},r.copy=function(){return yi(n(),[i,a]).round(u).paddingInner(c).paddingOuter(s).align(l)},ai.apply(f(),arguments)}function vi(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return vi(e())},t}function mi(){return vi(yi.apply(null,arguments).paddingInner(1))}const gi=Math.sqrt(50),bi=Math.sqrt(10),xi=Math.sqrt(2);function wi(t,e,r){const n=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=gi?10:i>=bi?5:i>=xi?2:1;let u,c,s;return o<0?(s=Math.pow(10,-o)/a,u=Math.round(t*s),c=Math.round(e*s),u/s<t&&++u,c/s>e&&--c,s=-s):(s=Math.pow(10,o)*a,u=Math.round(t/s),c=Math.round(e/s),u*s<t&&++u,c*s>e&&--c),c<u&&.5<=r&&r<2?wi(t,e,2*r):[u,c,s]}function Oi(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[o,i,a]=n?wi(e,t,r):wi(t,e,r);if(!(i>=o))return[];const u=i-o+1,c=new Array(u);if(n)if(a<0)for(let t=0;t<u;++t)c[t]=(i-t)/-a;else for(let t=0;t<u;++t)c[t]=(i-t)*a;else if(a<0)for(let t=0;t<u;++t)c[t]=(o+t)/-a;else for(let t=0;t<u;++t)c[t]=(o+t)*a;return c}function _i(t,e,r){return wi(t=+t,e=+e,r=+r)[2]}function Si(t,e,r){r=+r;const n=(e=+e)<(t=+t),o=n?_i(e,t,r):_i(t,e,r);return(n?-1:1)*(o<0?1/-o:o)}function Ei(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ki(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ji(t){let e,r,n;function o(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=Ei,r=(e,r)=>Ei(t(e),r),n=(e,r)=>t(e)-r):(e=t===Ei||t===ki?t:Ai,r=t,n=t),{left:o,center:function(t,e,r=0,i=t.length){const a=o(t,e,r,i-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,o=0,i=t.length){if(o<i){if(0!==e(n,n))return i;do{const e=o+i>>>1;r(t[e],n)<=0?o=e+1:i=e}while(o<i)}return o}}}function Ai(){return 0}function Pi(t){return null===t?NaN:+t}const Mi=ji(Ei),Ti=Mi.right,Ci=(Mi.left,ji(Pi).center,Ti);function Di(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Ni(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Ii(){}var Ri=.7,Li=1/Ri,Bi="\\s*([+-]?\\d+)\\s*",Ui="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",zi="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fi=/^#([0-9a-f]{3,8})$/,$i=new RegExp("^rgb\\("+[Bi,Bi,Bi]+"\\)$"),Vi=new RegExp("^rgb\\("+[zi,zi,zi]+"\\)$"),Hi=new RegExp("^rgba\\("+[Bi,Bi,Bi,Ui]+"\\)$"),Wi=new RegExp("^rgba\\("+[zi,zi,zi,Ui]+"\\)$"),qi=new RegExp("^hsl\\("+[Ui,zi,zi]+"\\)$"),Gi=new RegExp("^hsla\\("+[Ui,zi,zi,Ui]+"\\)$"),Ki={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 Yi(){return this.rgb().formatHex()}function Xi(){return this.rgb().formatRgb()}function Ji(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Fi.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?Zi(e):3===r?new ea(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?Qi(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?Qi(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=$i.exec(t))?new ea(e[1],e[2],e[3],1):(e=Vi.exec(t))?new ea(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Hi.exec(t))?Qi(e[1],e[2],e[3],e[4]):(e=Wi.exec(t))?Qi(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=qi.exec(t))?ia(e[1],e[2]/100,e[3]/100,1):(e=Gi.exec(t))?ia(e[1],e[2]/100,e[3]/100,e[4]):Ki.hasOwnProperty(t)?Zi(Ki[t]):"transparent"===t?new ea(NaN,NaN,NaN,0):null}function Zi(t){return new ea(t>>16&255,t>>8&255,255&t,1)}function Qi(t,e,r,n){return n<=0&&(t=e=r=NaN),new ea(t,e,r,n)}function ta(t,e,r,n){return 1===arguments.length?((o=t)instanceof Ii||(o=Ji(o)),o?new ea((o=o.rgb()).r,o.g,o.b,o.opacity):new ea):new ea(t,e,r,null==n?1:n);var o}function ea(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function ra(){return"#"+oa(this.r)+oa(this.g)+oa(this.b)}function na(){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 oa(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ia(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new ua(t,e,r,n)}function aa(t){if(t instanceof ua)return new ua(t.h,t.s,t.l,t.opacity);if(t instanceof Ii||(t=Ji(t)),!t)return new ua;if(t instanceof ua)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,u=i-o,c=(i+o)/2;return u?(a=e===i?(r-n)/u+6*(r<n):r===i?(n-e)/u+2:(e-r)/u+4,u/=c<.5?i+o:2-i-o,a*=60):u=c>0&&c<1?0:a,new ua(a,u,c,t.opacity)}function ua(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function ca(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}function sa(t,e,r,n,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*r+(1+3*t+3*i-3*a)*n+a*o)/6}Di(Ii,Ji,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Yi,formatHex:Yi,formatHsl:function(){return aa(this).formatHsl()},formatRgb:Xi,toString:Xi}),Di(ea,ta,Ni(Ii,{brighter:function(t){return t=null==t?Li:Math.pow(Li,t),new ea(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Ri:Math.pow(Ri,t),new ea(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:ra,formatHex:ra,formatRgb:na,toString:na})),Di(ua,(function(t,e,r,n){return 1===arguments.length?aa(t):new ua(t,e,r,null==n?1:n)}),Ni(Ii,{brighter:function(t){return t=null==t?Li:Math.pow(Li,t),new ua(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Ri:Math.pow(Ri,t),new ua(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new ea(ca(t>=240?t-240:t+120,o,n),ca(t,o,n),ca(t<120?t+240:t-120,o,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));const la=t=>()=>t;function fa(t,e){return function(r){return t+r*e}}function pa(t){return 1==(t=+t)?ha: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):la(isNaN(e)?r:e)}}function ha(t,e){var r=e-t;return r?fa(t,r):la(isNaN(t)?e:t)}const da=function t(e){var r=pa(e);function n(t,e){var n=r((t=ta(t)).r,(e=ta(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=ha(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function ya(t){return function(e){var r,n,o=e.length,i=new Array(o),a=new Array(o),u=new Array(o);for(r=0;r<o;++r)n=ta(e[r]),i[r]=n.r||0,a[r]=n.g||0,u[r]=n.b||0;return i=t(i),a=t(a),u=t(u),n.opacity=1,function(t){return n.r=i(t),n.g=a(t),n.b=u(t),n+""}}}ya((function(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[n],i=t[n+1],a=n>0?t[n-1]:2*o-i,u=n<e-1?t[n+2]:2*i-o;return sa((r-n/e)*e,a,o,i,u)}})),ya((function(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),o=t[(n+e-1)%e],i=t[n%e],a=t[(n+1)%e],u=t[(n+2)%e];return sa((r-n/e)*e,o,i,a,u)}}));function va(t,e){var r,n=e?e.length:0,o=t?Math.min(n,t.length):0,i=new Array(o),a=new Array(n);for(r=0;r<o;++r)i[r]=Sa(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<o;++r)a[r]=i[r](t);return a}}function ma(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function ga(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function ba(t,e){var r,n={},o={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=Sa(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}var xa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,wa=new RegExp(xa.source,"g");function Oa(t,e){var r,n,o,i=xa.lastIndex=wa.lastIndex=0,a=-1,u=[],c=[];for(t+="",e+="";(r=xa.exec(t))&&(n=wa.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(r=r[0])===(n=n[0])?u[a]?u[a]+=n:u[++a]=n:(u[++a]=null,c.push({i:a,x:ga(r,n)})),i=wa.lastIndex;return i<e.length&&(o=e.slice(i),u[a]?u[a]+=o:u[++a]=o),u.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var r,n=0;n<e;++n)u[(r=c[n]).i]=r.x(t);return u.join("")})}function _a(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(r=0;r<n;++r)o[r]=t[r]*(1-i)+e[r]*i;return o}}function Sa(t,e){var r,n,o=typeof e;return null==e||"boolean"===o?la(e):("number"===o?ga:"string"===o?(r=Ji(e))?(e=r,da):Oa:e instanceof Ji?da:e instanceof Date?ma:(n=e,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(e)?va:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?ba:ga:_a))(t,e)}function Ea(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function ka(t){return+t}var ja=[0,1];function Aa(t){return t}function Pa(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r});var r}function Ma(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=Pa(o,n),i=r(a,i)):(n=Pa(n,o),i=r(i,a)),function(t){return i(n(t))}}function Ta(t,e,r){var n=Math.min(t.length,e.length)-1,o=new Array(n),i=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)o[a]=Pa(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=Ci(t,e,1,n)-1;return i[r](o[r](e))}}function Ca(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Da(){var t,e,r,n,o,i,a=ja,u=ja,c=Sa,s=Aa;function l(){var t=Math.min(a.length,u.length);return s!==Aa&&(s=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?Ta:Ma,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),u,c)))(t(s(e)))}return f.invert=function(r){return s(e((i||(i=n(u,a.map(t),ga)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,ka),l()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),l()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),c=Ea,l()},f.clamp=function(t){return arguments.length?(s=!!t||Aa,l()):s!==Aa},f.interpolate=function(t){return arguments.length?(c=t,l()):c},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,l()}}function Na(){return Da()(Aa,Aa)}var Ia,Ra=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function La(t){if(!(e=Ra.exec(t)))throw new Error("invalid format: "+t);var e;return new Ba({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 Ba(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 Ua(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 za(t){return(t=Ua(Math.abs(t)))?t[1]:NaN}function Fa(t,e){var r=Ua(t,e);if(!r)return t+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}La.prototype=Ba.prototype,Ba.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 $a={"%":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 Fa(100*t,e)},r:Fa,s:function(t,e){var r=Ua(t,e);if(!r)return t+"";var n=r[0],o=r[1],i=o-(Ia=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+Ua(t,Math.max(0,e+i-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function Va(t){return t}var Ha,Wa,qa,Ga=Array.prototype.map,Ka=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ya(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?Va:(e=Ga.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,u=e[0],c=0;o>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),i.push(t.substring(o-=u,o+u)),!((c+=u+1)>n));)u=e[a=(a+1)%e.length];return i.reverse().join(r)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Va:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Ga.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"-":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=La(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"):$a[g]||(void 0===v&&(v=12),m=!0,g="g"),(h||"0"===e&&"="===r)&&(h=!0,e="0",r="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===p?i:/[%p]/.test(g)?c:"",w=$a[g],O=/[defgprs%]/.test(g);function _(t){var o,i,c,p=b,_=x;if("c"===g)_=w(t)+_,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:w(Math.abs(t),v),m&&(t=function(t){t:for(var e,r=t.length,n=1,o=-1;n<r;++n)switch(t[n]){case".":o=e=n;break;case"0":0===o&&(o=n),e=n;break;default:if(!+t[n])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==f&&(S=!1),p=(S?"("===f?f:s:"-"===f||"("===f?"":f)+p,_=("s"===g?Ka[8+Ia/3]:"")+_+(S&&"("===f?")":""),O)for(o=-1,i=t.length;++o<i;)if(48>(c=t.charCodeAt(o))||c>57){_=(46===c?a+t.slice(o+1):t.slice(o))+_,t=t.slice(0,o);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=La(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(za(e)/3))),o=Math.pow(10,-n),i=Ka[8+n/3];return function(t){return r(o*t)+i}}}}function Xa(t,e,r,n){var o,i=Si(t,e,r);switch((n=La(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(za(e)/3)))-za(Math.abs(t)))}(i,a))||(n.precision=o),qa(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,za(e)-za(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=function(t){return Math.max(0,-za(Math.abs(t)))}(i))||(n.precision=o-2*("%"===n.type))}return Wa(n)}function Ja(t){var e=t.domain;return t.ticks=function(t){var r=e();return Oi(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return Xa(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,u=i.length-1,c=i[a],s=i[u],l=10;for(s<c&&(o=c,c=s,s=o,o=a,a=u,u=o);l-- >0;){if((o=_i(c,s,r))===n)return i[a]=c,i[u]=s,e(i);if(o>0)c=Math.floor(c/o)*o,s=Math.ceil(s/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,s=Math.floor(s*o)/o}n=o}return t},t}function Za(){var t=Na();return t.copy=function(){return Ca(t,Za())},ai.apply(t,arguments),Ja(t)}function Qa(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,ka),r):t.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return Qa(t).unknown(e)},t=arguments.length?Array.from(t,ka):[0,1],Ja(r)}function tu(t,e){var r,n=0,o=(t=t.slice()).length-1,i=t[n],a=t[o];return a<i&&(r=n,n=o,o=r,r=i,i=a,a=r),t[n]=e.floor(i),t[o]=e.ceil(a),t}function eu(t){return Math.log(t)}function ru(t){return Math.exp(t)}function nu(t){return-Math.log(-t)}function ou(t){return-Math.exp(-t)}function iu(t){return isFinite(t)?+("1e"+t):t<0?0:t}function au(t){return(e,r)=>-t(-e,r)}function uu(t){const e=t(eu,ru),r=e.domain;let n,o,i=10;function a(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(i),o=function(t){return 10===t?iu:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),r()[0]<0?(n=au(n),o=au(o),t(nu,ou)):t(eu,ru),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],u=e[e.length-1];const c=u<a;c&&([a,u]=[u,a]);let s,l,f=n(a),p=n(u);const h=null==t?10:+t;let d=[];if(!(i%1)&&p-f<h){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(s=1;s<i;++s)if(l=f<0?s/o(-f):s*o(f),!(l<a)){if(l>u)break;d.push(l)}}else for(;f<=p;++f)for(s=i-1;s>=1;--s)if(l=f>0?s/o(-f):s*o(f),!(l<a)){if(l>u)break;d.push(l)}2*d.length<h&&(d=Oi(a,u,h))}else d=Oi(f,p,Math.min(p-f,h)).map(o);return c?d.reverse():d},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===i?"s":","),"function"!=typeof r&&(i%1||null!=(r=La(r)).precision||(r.trim=!0),r=Wa(r)),t===1/0)return r;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(n(t)));return e*i<i-.5&&(e*=i),e<=a?r(t):""}},e.nice=()=>r(tu(r(),{floor:t=>o(Math.floor(n(t))),ceil:t=>o(Math.ceil(n(t)))})),e}function cu(){const t=uu(Da()).domain([1,10]);return t.copy=()=>Ca(t,cu()).base(t.base()),ai.apply(t,arguments),t}function su(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function lu(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function fu(t){var e=1,r=t(su(e),lu(e));return r.constant=function(r){return arguments.length?t(su(e=+r),lu(e)):e},Ja(r)}function pu(){var t=fu(Da());return t.copy=function(){return Ca(t,pu()).constant(t.constant())},ai.apply(t,arguments)}function hu(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function du(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function yu(t){return t<0?-t*t:t*t}function vu(t){var e=t(Aa,Aa),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(Aa,Aa):.5===r?t(du,yu):t(hu(r),hu(1/r)):r},Ja(e)}function mu(){var t=vu(Da());return t.copy=function(){return Ca(t,mu()).exponent(t.exponent())},ai.apply(t,arguments),t}function gu(){return mu.apply(null,arguments).exponent(.5)}function bu(t){return Math.sign(t)*t*t}function xu(){var t,e=Na(),r=[0,1],n=!1;function o(r){var o=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(e(r));return isNaN(o)?t:n?Math.round(o):o}return o.invert=function(t){return e.invert(bu(t))},o.domain=function(t){return arguments.length?(e.domain(t),o):e.domain()},o.range=function(t){return arguments.length?(e.range((r=Array.from(t,ka)).map(bu)),o):r.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(n=!!t,o):n},o.clamp=function(t){return arguments.length?(e.clamp(t),o):e.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return xu(e.domain(),r).round(n).clamp(e.clamp()).unknown(t)},ai.apply(o,arguments),Ja(o)}function wu(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r<o||void 0===r&&o>=o)&&(r=o)}return r}function Ou(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let o of t)null!=(o=e(o,++n,t))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function _u(t=Ei){if(t===Ei)return Su;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 Su(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function Eu(t,e,r=0,n=1/0,o){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(o=void 0===o?Su:_u(o);n>r;){if(n-r>600){const i=n-r+1,a=e-r+1,u=Math.log(i),c=.5*Math.exp(2*u/3),s=.5*Math.sqrt(u*c*(i-c)/i)*(a-i/2<0?-1:1);Eu(t,e,Math.max(r,Math.floor(e-a*c/i+s)),Math.min(n,Math.floor(e+(i-a)*c/i+s)),o)}const i=t[e];let a=r,u=n;for(ku(t,r,e),o(t[n],i)>0&&ku(t,r,n);a<u;){for(ku(t,a,u),++a,--u;o(t[a],i)<0;)++a;for(;o(t[u],i)>0;)--u}0===o(t[r],i)?ku(t,r,u):(++u,ku(t,u,n)),u<=e&&(r=u+1),e<=u&&(n=u-1)}return t}function ku(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function ju(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 Ou(t);if(e>=1)return wu(t);var n,o=(n-1)*e,i=Math.floor(o),a=wu(Eu(t,i).subarray(0,i+1));return a+(Ou(t.subarray(i+1))-a)*(o-i)}}function Au(t,e,r=Pi){if((n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,o=(n-1)*e,i=Math.floor(o),a=+r(t[i],i,t);return a+(+r(t[i+1],i+1,t)-a)*(o-i)}}function Pu(){var t,e=[],r=[],n=[];function o(){var t=0,o=Math.max(1,r.length);for(n=new Array(o-1);++t<o;)n[t-1]=Au(e,t/o);return i}function i(e){return null==e||isNaN(e=+e)?t:r[Ci(n,e)]}return i.invertExtent=function(t){var o=r.indexOf(t);return o<0?[NaN,NaN]:[o>0?n[o-1]:e[0],o<n.length?n[o]:e[e.length-1]]},i.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(Ei),o()},i.range=function(t){return arguments.length?(r=Array.from(t),o()):r.slice()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.quantiles=function(){return n.slice()},i.copy=function(){return Pu().domain(e).range(r).unknown(t)},ai.apply(i,arguments)}function Mu(){var t,e=0,r=1,n=1,o=[.5],i=[0,1];function a(e){return null!=e&&e<=e?i[Ci(o,e,0,n)]:t}function u(){var t=-1;for(o=new Array(n);++t<n;)o[t]=((t+1)*r-(t-n)*e)/(n+1);return a}return a.domain=function(t){return arguments.length?([e,r]=t,e=+e,r=+r,u()):[e,r]},a.range=function(t){return arguments.length?(n=(i=Array.from(t)).length-1,u()):i.slice()},a.invertExtent=function(t){var a=i.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,o[0]]:a>=n?[o[n-1],r]:[o[a-1],o[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return Mu().domain([e,r]).range(i).unknown(t)},ai.apply(Ja(a),arguments)}function Tu(){var t,e=[.5],r=[0,1],n=1;function o(o){return null!=o&&o<=o?r[Ci(e,o,0,n)]:t}return o.domain=function(t){return arguments.length?(e=Array.from(t),n=Math.min(e.length,r.length-1),o):e.slice()},o.range=function(t){return arguments.length?(r=Array.from(t),n=Math.min(e.length,r.length-1),o):r.slice()},o.invertExtent=function(t){var n=r.indexOf(t);return[e[n-1],e[n]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return Tu().domain(e).range(r).unknown(t)},ai.apply(o,arguments)}Ha=Ya({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Wa=Ha.format,qa=Ha.formatPrefix;const Cu=1e3,Du=6e4,Nu=36e5,Iu=864e5,Ru=6048e5,Lu=2592e6,Bu=31536e6,Uu=new Date,zu=new Date;function Fu(t,e,r,n){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{const e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{const a=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return a;let u;do{a.push(u=new Date(+r)),e(r,i),t(r)}while(u<r&&r<n);return a},o.filter=r=>Fu((e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),((t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););})),r&&(o.count=(e,n)=>(Uu.setTime(+e),zu.setTime(+n),t(Uu),t(zu),Math.floor(r(Uu,zu))),o.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(n?e=>n(e)%t==0:e=>o.count(0,e)%t==0):o:null)),o}const $u=Fu((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));$u.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Fu((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):$u:null);$u.range;const Vu=Fu((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Cu)}),((t,e)=>(e-t)/Cu),(t=>t.getUTCSeconds())),Hu=(Vu.range,Fu((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Cu)}),((t,e)=>{t.setTime(+t+e*Du)}),((t,e)=>(e-t)/Du),(t=>t.getMinutes()))),Wu=(Hu.range,Fu((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*Du)}),((t,e)=>(e-t)/Du),(t=>t.getUTCMinutes()))),qu=(Wu.range,Fu((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Cu-t.getMinutes()*Du)}),((t,e)=>{t.setTime(+t+e*Nu)}),((t,e)=>(e-t)/Nu),(t=>t.getHours()))),Gu=(qu.range,Fu((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*Nu)}),((t,e)=>(e-t)/Nu),(t=>t.getUTCHours()))),Ku=(Gu.range,Fu((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Du)/Iu),(t=>t.getDate()-1))),Yu=(Ku.range,Fu((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Iu),(t=>t.getUTCDate()-1))),Xu=(Yu.range,Fu((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Iu),(t=>Math.floor(t/Iu))));Xu.range;function Ju(t){return Fu((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())*Du)/Ru))}const Zu=Ju(0),Qu=Ju(1),tc=Ju(2),ec=Ju(3),rc=Ju(4),nc=Ju(5),oc=Ju(6);Zu.range,Qu.range,tc.range,ec.range,rc.range,nc.range,oc.range;function ic(t){return Fu((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)/Ru))}const ac=ic(0),uc=ic(1),cc=ic(2),sc=ic(3),lc=ic(4),fc=ic(5),pc=ic(6),hc=(ac.range,uc.range,cc.range,sc.range,lc.range,fc.range,pc.range,Fu((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()))),dc=(hc.range,Fu((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()))),yc=(dc.range,Fu((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())));yc.every=t=>isFinite(t=Math.floor(t))&&t>0?Fu((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;yc.range;const vc=Fu((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()));vc.every=t=>isFinite(t=Math.floor(t))&&t>0?Fu((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;vc.range;function mc(t,e,r,n,o,i){const a=[[Vu,1,Cu],[Vu,5,5e3],[Vu,15,15e3],[Vu,30,3e4],[i,1,Du],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,Nu],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,Iu],[n,2,1728e5],[r,1,Ru],[e,1,Lu],[e,3,7776e6],[t,1,Bu]];function u(e,r,n){const o=Math.abs(r-e)/n,i=ji((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(Si(e/Bu,r/Bu,n));if(0===i)return $u.every(Math.max(Si(e,r,n),1));const[u,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return u.every(c)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const o=r&&"function"==typeof r.range?r:u(t,e,r),i=o?o.range(t,+e+1):[];return n?i.reverse():i},u]}const[gc,bc]=mc(vc,dc,ac,Xu,Gu,Wu),[xc,wc]=mc(yc,hc,Zu,Ku,qu,Hu);var Oc=new Date,_c=new Date;function Sc(t,e,r,n){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=function(e){return t(e=new Date(+e)),e},o.ceil=function(r){return t(r=new Date(r-1)),e(r,1),t(r),r},o.round=function(t){var e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=function(t,r){return e(t=new Date(+t),null==r?1:Math.floor(r)),t},o.range=function(r,n,i){var a,u=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return u;do{u.push(a=new Date(+r)),e(r,i),t(r)}while(a<r&&r<n);return u},o.filter=function(r){return Sc((function(e){if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),(function(t,n){if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}))},r&&(o.count=function(e,n){return Oc.setTime(+e),_c.setTime(+n),t(Oc),t(_c),Math.floor(r(Oc,_c))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(n?function(e){return n(e)%t==0}:function(e){return o.count(0,e)%t==0}):o:null}),o}var Ec=864e5,kc=6048e5;function jc(t){return Sc((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)/kc}))}var Ac=jc(0),Pc=jc(1),Mc=jc(2),Tc=jc(3),Cc=jc(4),Dc=jc(5),Nc=jc(6),Ic=(Ac.range,Pc.range,Mc.range,Tc.range,Cc.range,Dc.range,Nc.range,Sc((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Ec}),(function(t){return t.getUTCDate()-1})));const Rc=Ic;Ic.range;function Lc(t){return Sc((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()))/kc}))}var Bc=Lc(0),Uc=Lc(1),zc=Lc(2),Fc=Lc(3),$c=Lc(4),Vc=Lc(5),Hc=Lc(6),Wc=(Bc.range,Uc.range,zc.range,Fc.range,$c.range,Vc.range,Hc.range,Sc((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()))/Ec}),(function(t){return t.getDate()-1})));const qc=Wc;Wc.range;var Gc=Sc((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()}));Gc.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Sc((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 Kc=Gc;Gc.range;var Yc=Sc((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()}));Yc.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Sc((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 Xc=Yc;Yc.range;function Jc(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 Zc(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 Qc(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var ts,es,rs,ns={"-":"",_:" ",0:"0"},os=/^\s*\d+/,is=/^%/,as=/[\\^$*+?|[\]().{}]/g;function us(t,e,r){var n=t<0?"-":"",o=(n?-t:t)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(e)+o:o)}function cs(t){return t.replace(as,"\\$&")}function ss(t){return new RegExp("^(?:"+t.map(cs).join("|")+")","i")}function ls(t){for(var e={},r=-1,n=t.length;++r<n;)e[t[r].toLowerCase()]=r;return e}function fs(t,e,r){var n=os.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function ps(t,e,r){var n=os.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function hs(t,e,r){var n=os.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function ds(t,e,r){var n=os.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function ys(t,e,r){var n=os.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function vs(t,e,r){var n=os.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function ms(t,e,r){var n=os.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function gs(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 bs(t,e,r){var n=os.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function xs(t,e,r){var n=os.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function ws(t,e,r){var n=os.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function Os(t,e,r){var n=os.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function _s(t,e,r){var n=os.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function Ss(t,e,r){var n=os.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function Es(t,e,r){var n=os.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function ks(t,e,r){var n=os.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function js(t,e,r){var n=os.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function As(t,e,r){var n=is.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function Ps(t,e,r){var n=os.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Ms(t,e,r){var n=os.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function Ts(t,e){return us(t.getDate(),e,2)}function Cs(t,e){return us(t.getHours(),e,2)}function Ds(t,e){return us(t.getHours()%12||12,e,2)}function Ns(t,e){return us(1+qc.count(Kc(t),t),e,3)}function Is(t,e){return us(t.getMilliseconds(),e,3)}function Rs(t,e){return Is(t,e)+"000"}function Ls(t,e){return us(t.getMonth()+1,e,2)}function Bs(t,e){return us(t.getMinutes(),e,2)}function Us(t,e){return us(t.getSeconds(),e,2)}function zs(t){var e=t.getDay();return 0===e?7:e}function Fs(t,e){return us(Bc.count(Kc(t)-1,t),e,2)}function $s(t){var e=t.getDay();return e>=4||0===e?$c(t):$c.ceil(t)}function Vs(t,e){return t=$s(t),us($c.count(Kc(t),t)+(4===Kc(t).getDay()),e,2)}function Hs(t){return t.getDay()}function Ws(t,e){return us(Uc.count(Kc(t)-1,t),e,2)}function qs(t,e){return us(t.getFullYear()%100,e,2)}function Gs(t,e){return us((t=$s(t)).getFullYear()%100,e,2)}function Ks(t,e){return us(t.getFullYear()%1e4,e,4)}function Ys(t,e){var r=t.getDay();return us((t=r>=4||0===r?$c(t):$c.ceil(t)).getFullYear()%1e4,e,4)}function Xs(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+us(e/60|0,"0",2)+us(e%60,"0",2)}function Js(t,e){return us(t.getUTCDate(),e,2)}function Zs(t,e){return us(t.getUTCHours(),e,2)}function Qs(t,e){return us(t.getUTCHours()%12||12,e,2)}function tl(t,e){return us(1+Rc.count(Xc(t),t),e,3)}function el(t,e){return us(t.getUTCMilliseconds(),e,3)}function rl(t,e){return el(t,e)+"000"}function nl(t,e){return us(t.getUTCMonth()+1,e,2)}function ol(t,e){return us(t.getUTCMinutes(),e,2)}function il(t,e){return us(t.getUTCSeconds(),e,2)}function al(t){var e=t.getUTCDay();return 0===e?7:e}function ul(t,e){return us(Ac.count(Xc(t)-1,t),e,2)}function cl(t){var e=t.getUTCDay();return e>=4||0===e?Cc(t):Cc.ceil(t)}function sl(t,e){return t=cl(t),us(Cc.count(Xc(t),t)+(4===Xc(t).getUTCDay()),e,2)}function ll(t){return t.getUTCDay()}function fl(t,e){return us(Pc.count(Xc(t)-1,t),e,2)}function pl(t,e){return us(t.getUTCFullYear()%100,e,2)}function hl(t,e){return us((t=cl(t)).getUTCFullYear()%100,e,2)}function dl(t,e){return us(t.getUTCFullYear()%1e4,e,4)}function yl(t,e){var r=t.getUTCDay();return us((t=r>=4||0===r?Cc(t):Cc.ceil(t)).getUTCFullYear()%1e4,e,4)}function vl(){return"+0000"}function ml(){return"%"}function gl(t){return+t}function bl(t){return Math.floor(+t/1e3)}function xl(t){return new Date(t)}function wl(t){return t instanceof Date?+t:+new Date(+t)}function Ol(t,e,r,n,o,i,a,u,c,s){var l=Na(),f=l.invert,p=l.domain,h=s(".%L"),d=s(":%S"),y=s("%I:%M"),v=s("%I %p"),m=s("%a %d"),g=s("%b %d"),b=s("%B"),x=s("%Y");function w(t){return(c(t)<t?h:u(t)<t?d:a(t)<t?y:i(t)<t?v:n(t)<t?o(t)<t?m:g:r(t)<t?b:x)(t)}return l.invert=function(t){return new Date(f(t))},l.domain=function(t){return arguments.length?p(Array.from(t,wl)):p().map(xl)},l.ticks=function(e){var r=p();return t(r[0],r[r.length-1],null==e?10:e)},l.tickFormat=function(t,e){return null==e?w:s(e)},l.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(tu(r,t)):l},l.copy=function(){return Ca(l,Ol(t,e,r,n,o,i,a,u,c,s))},l}function _l(){return ai.apply(Ol(xc,wc,yc,hc,Zu,Ku,qu,Hu,Vu,es).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Sl(){return ai.apply(Ol(gc,bc,vc,dc,ac,Yu,Gu,Wu,Vu,rs).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function El(){var t,e,r,n,o,i=0,a=1,u=Aa,c=!1;function s(e){return null==e||isNaN(e=+e)?o:u(0===r?.5:(e=(n(e)-t)*r,c?Math.max(0,Math.min(1,e)):e))}function l(t){return function(e){var r,n;return arguments.length?([r,n]=e,u=t(r,n),s):[u(0),u(1)]}}return s.domain=function(o){return arguments.length?([i,a]=o,t=n(i=+i),e=n(a=+a),r=t===e?0:1/(e-t),s):[i,a]},s.clamp=function(t){return arguments.length?(c=!!t,s):c},s.interpolator=function(t){return arguments.length?(u=t,s):u},s.range=l(Sa),s.rangeRound=l(Ea),s.unknown=function(t){return arguments.length?(o=t,s):o},function(o){return n=o,t=o(i),e=o(a),r=t===e?0:1/(e-t),s}}function kl(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function jl(){var t=Ja(El()(Aa));return t.copy=function(){return kl(t,jl())},ui.apply(t,arguments)}function Al(){var t=uu(El()).domain([1,10]);return t.copy=function(){return kl(t,Al()).base(t.base())},ui.apply(t,arguments)}function Pl(){var t=fu(El());return t.copy=function(){return kl(t,Pl()).constant(t.constant())},ui.apply(t,arguments)}function Ml(){var t=vu(El());return t.copy=function(){return kl(t,Ml()).exponent(t.exponent())},ui.apply(t,arguments)}function Tl(){return Ml.apply(null,arguments).exponent(.5)}function Cl(){var t=[],e=Aa;function r(r){if(null!=r&&!isNaN(r=+r))return e((Ci(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(Ei),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)=>ju(t,n/e)))},r.copy=function(){return Cl(e).domain(t)},ui.apply(r,arguments)}function Dl(){var t,e,r,n,o,i,a,u=0,c=.5,s=1,l=1,f=Aa,p=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(l*t<l*e?n:o),f(p?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var r,n,o;return arguments.length?([r,n,o]=e,f=function(t,e){void 0===e&&(e=t,t=Sa);for(var r=0,n=e.length-1,o=e[0],i=new Array(n<0?0:n);r<n;)i[r]=t(o,o=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return i[e](t-e)}}(t,[r,n,o]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([u,c,s]=a,t=i(u=+u),e=i(c=+c),r=i(s=+s),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),l=e<t?-1:1,h):[u,c,s]},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(Sa),h.rangeRound=d(Ea),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return i=a,t=a(u),e=a(c),r=a(s),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),l=e<t?-1:1,h}}function Nl(){var t=Ja(Dl()(Aa));return t.copy=function(){return kl(t,Nl())},ui.apply(t,arguments)}function Il(){var t=uu(Dl()).domain([.1,1,10]);return t.copy=function(){return kl(t,Il()).base(t.base())},ui.apply(t,arguments)}function Rl(){var t=fu(Dl());return t.copy=function(){return kl(t,Rl()).constant(t.constant())},ui.apply(t,arguments)}function Ll(){var t=vu(Dl());return t.copy=function(){return kl(t,Ll()).exponent(t.exponent())},ui.apply(t,arguments)}function Bl(){return Ll.apply(null,arguments).exponent(.5)}function Ul(t,e){if((o=t.length)>1)for(var r,n,o,i=1,a=t[e[0]],u=a.length;i<o;++i)for(n=a,a=t[e[i]],r=0;r<u;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function zl(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function Fl(t,e){return t[e]}function $l(t){const e=[];return e.key=t,e}!function(t){ts=function(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,s=ss(o),l=ls(o),f=ss(i),p=ls(i),h=ss(a),d=ls(a),y=ss(u),v=ls(u),m=ss(c),g=ls(c),b={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:Ts,e:Ts,f:Rs,g:Gs,G:Ys,H:Cs,I:Ds,j:Ns,L:Is,m:Ls,M:Bs,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:gl,s:bl,S:Us,u:zs,U:Fs,V:Vs,w:Hs,W:Ws,x:null,X:null,y:qs,Y:Ks,Z:Xs,"%":ml},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:Js,e:Js,f:rl,g:hl,G:yl,H:Zs,I:Qs,j:tl,L:el,m:nl,M:ol,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:gl,s:bl,S:il,u:al,U:ul,V:sl,w:ll,W:fl,x:null,X:null,y:pl,Y:dl,Z:vl,"%":ml},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:ws,e:ws,f:js,g:ms,G:vs,H:_s,I:_s,j:Os,L:ks,m:xs,M:Ss,p:function(t,e,r){var n=s.exec(e.slice(r));return n?(t.p=l[n[0].toLowerCase()],r+n[0].length):-1},q:bs,Q:Ps,s:Ms,S:Es,u:ps,U:hs,V:ds,w:fs,W:ys,x:function(t,e,n){return S(t,r,e,n)},X:function(t,e,r){return S(t,n,e,r)},y:ms,Y:vs,Z:gs,"%":As};function O(t,e){return function(r){var n,o,i,a=[],u=-1,c=0,s=t.length;for(r instanceof Date||(r=new Date(+r));++u<s;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(o=ns[n=t.charAt(++u)])?n=t.charAt(++u):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),a.push(n),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function _(t,e){return function(r){var n,o,i=Qc(1900,void 0,1);if(S(i,t,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(n=Zc(Qc(i.y,0,1))).getUTCDay(),n=o>4||0===o?Pc.ceil(n):Pc(n),n=Rc.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=Jc(Qc(i.y,0,1))).getDay(),n=o>4||0===o?Uc.ceil(n):Uc(n),n=qc.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Zc(Qc(i.y,0,1)).getUTCDay():Jc(Qc(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Zc(i)):Jc(i)}}function S(t,e,r,n){for(var o,i,a=0,u=e.length,c=r.length;a<u;){if(n>=c)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=w[o in ns?e.charAt(a++):o])||(n=i(t,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return b.x=O(r,b),b.X=O(n,b),b.c=O(e,b),x.x=O(r,x),x.X=O(n,x),x.c=O(e,x),{format:function(t){var e=O(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=_(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),es=ts.format,ts.parse,rs=ts.utcFormat,ts.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 Vl=r(9887),Hl=r.n(Vl);function Wl(t){return function(t){if(Array.isArray(t))return ql(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 ql(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 ql(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 ql(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 Gl=function(t){return t},Kl={"@@functional/placeholder":!0},Yl=function(t){return t===Kl},Xl=function(t){return function e(){return 0===arguments.length||1===arguments.length&&Yl(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},Jl=function t(e,r){return 1===e?r:Xl((function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o.filter((function(t){return t!==Kl})).length;return a>=e?r.apply(void 0,o):t(e-a,Xl((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=o.map((function(t){return Yl(t)?e.shift():t}));return r.apply(void 0,Wl(i).concat(e))})))}))},Zl=function(t){return Jl(t.length,t)},Ql=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},tf=Zl((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),ef=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return Gl;var n=e.reverse(),o=n[0],i=n.slice(1);return function(){return i.reduce((function(t,e){return e(t)}),o.apply(void 0,arguments))}},rf=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},nf=function(t){var e=null,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e&&o.every((function(t,r){return t===e[r]}))?r:(e=o,r=t.apply(void 0,o))}};var of=Zl((function(t,e,r){var n=+t;return n+r*(+e-n)})),af=Zl((function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)})),uf=Zl((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))}));const cf={rangeStep:function(t,e,r){for(var n=new(Hl())(t),o=0,i=[];n.lt(e)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i},getDigitCount:function(t){return 0===t?1:Math.floor(new(Hl())(t).abs().log(10).toNumber())+1},interpolateNumber:of,uninterpolateNumber:af,uninterpolateTruncation:uf};function sf(t){return function(t){if(Array.isArray(t))return pf(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||ff(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 lf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(t,e)||ff(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 ff(t,e){if(t){if("string"==typeof t)return pf(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)?pf(t,e):void 0}}function pf(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 hf(t){var e=lf(t,2),r=e[0],n=e[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function df(t,e,r){if(t.lte(0))return new(Hl())(0);var n=cf.getDigitCount(t.toNumber()),o=new(Hl())(10).pow(n),i=t.div(o),a=1!==n?.05:.1,u=new(Hl())(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?u:new(Hl())(Math.ceil(u))}function yf(t,e,r){var n=1,o=new(Hl())(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new(Hl())(10).pow(cf.getDigitCount(t)-1),o=new(Hl())(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new(Hl())(Math.floor(t)))}else 0===t?o=new(Hl())(Math.floor((e-1)/2)):r||(o=new(Hl())(Math.floor(t)));var a=Math.floor((e-1)/2);return ef(tf((function(t){return o.add(new(Hl())(t-a).mul(n)).toNumber()})),Ql)(0,e)}function vf(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new(Hl())(0),tickMin:new(Hl())(0),tickMax:new(Hl())(0)};var i,a=df(new(Hl())(e).sub(t).div(r-1),n,o);i=t<=0&&e>=0?new(Hl())(0):(i=new(Hl())(t).add(e).div(2)).sub(new(Hl())(i).mod(a));var u=Math.ceil(i.sub(t).div(a).toNumber()),c=Math.ceil(new(Hl())(e).sub(i).div(a).toNumber()),s=u+c+1;return s>r?vf(t,e,r,n,o+1):(s<r&&(c=e>0?c+(r-s):c,u=e>0?u:u+(r-s)),{step:a,tickMin:i.sub(new(Hl())(u).mul(a)),tickMax:i.add(new(Hl())(c).mul(a))})}var mf=nf((function(t){var e=lf(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),u=lf(hf([r,n]),2),c=u[0],s=u[1];if(c===-1/0||s===1/0){var l=s===1/0?[c].concat(sf(Ql(0,o-1).map((function(){return 1/0})))):[].concat(sf(Ql(0,o-1).map((function(){return-1/0}))),[s]);return r>n?rf(l):l}if(c===s)return yf(c,o,i);var f=vf(c,s,a,i),p=f.step,h=f.tickMin,d=f.tickMax,y=cf.rangeStep(h,d.add(new(Hl())(.1).mul(p)),p);return r>n?rf(y):y})),gf=(nf((function(t){var e=lf(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),u=lf(hf([r,n]),2),c=u[0],s=u[1];if(c===-1/0||s===1/0)return[r,n];if(c===s)return yf(c,o,i);var l=df(new(Hl())(s).sub(c).div(a-1),i,0),f=ef(tf((function(t){return new(Hl())(c).add(new(Hl())(t).mul(l)).toNumber()})),Ql)(0,a).filter((function(t){return t>=c&&t<=s}));return r>n?rf(f):f})),nf((function(t,e){var r=lf(t,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=lf(hf([n,o]),2),u=a[0],c=a[1];if(u===-1/0||c===1/0)return[n,o];if(u===c)return[u];var s=Math.max(e,2),l=df(new(Hl())(c).sub(u).div(s-1),i,0),f=[].concat(sf(cf.rangeStep(new(Hl())(u),new(Hl())(c).sub(new(Hl())(.99).mul(l)),l)),[c]);return n>o?rf(f):f}))),bf=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function xf(){return xf=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},xf.apply(this,arguments)}function wf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Of(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Of(t,e)}(t,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 Of(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _f(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Sf(t){var e=t.offset,r=t.layout,n=t.width,o=t.dataKey,i=t.data,a=t.dataPointFormatter,u=t.xAxis,c=t.yAxis,s=_f(t,bf),l=Tn(s),f=i.map((function(t,i){var s=a(t,o),f=s.x,p=s.y,h=s.value,d=s.errorVal;if(!d)return null;var y,v,m=[];if(Array.isArray(d)){var g=wf(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 it().createElement(Jn,xf({className:"recharts-errorBar",key:"bar-".concat(i)},l),m.map((function(t,e){return it().createElement("line",xf({},t,{key:"line-".concat(e)}))})))}));return it().createElement(Jn,{className:"recharts-errorBars"},f)}Sf.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},Sf.displayName="ErrorBar";var Ef=r(5578),kf=r.n(Ef),jf=["children","width","height","viewBox","className","style"];function Af(){return Af=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},Af.apply(this,arguments)}function Pf(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Mf(t){var e=t.children,r=t.width,n=t.height,o=t.viewBox,i=t.className,a=t.style,u=Pf(t,jf),c=o||{width:r,height:n,x:0,y:0},s=ut()("recharts-surface",i);return it().createElement("svg",Af({},Tn(u,!0,"svg"),{className:s,width:r,height:n,style:a,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),it().createElement("title",null,t.title),it().createElement("desc",null,t.desc),e)}Math.abs,Math.atan2;const Tf=Math.cos,Cf=(Math.max,Math.min,Math.sin),Df=Math.sqrt,Nf=Math.PI,If=2*Nf;const Rf={draw(t,e){const r=Df(e/Nf);t.moveTo(r,0),t.arc(0,0,r,0,If)}},Lf={draw(t,e){const r=Df(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()}},Bf=Df(1/3),Uf=2*Bf,zf={draw(t,e){const r=Df(e/Uf),n=r*Bf;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Ff={draw(t,e){const r=Df(e),n=-r/2;t.rect(n,n,r,r)}},$f=Cf(Nf/10)/Cf(7*Nf/10),Vf=Cf(If/10)*$f,Hf=-Tf(If/10)*$f,Wf={draw(t,e){const r=Df(.8908130915292852*e),n=Vf*r,o=Hf*r;t.moveTo(0,-r),t.lineTo(n,o);for(let e=1;e<5;++e){const i=If*e/5,a=Tf(i),u=Cf(i);t.lineTo(u*r,-a*r),t.lineTo(a*n-u*o,u*n+a*o)}t.closePath()}},qf=Df(3),Gf={draw(t,e){const r=-Df(e/(3*qf));t.moveTo(0,2*r),t.lineTo(-qf*r,-r),t.lineTo(qf*r,-r),t.closePath()}},Kf=-.5,Yf=Df(3)/2,Xf=1/Df(12),Jf=3*(Xf/2+1),Zf={draw(t,e){const r=Df(e/Jf),n=r/2,o=r*Xf,i=n,a=r*Xf+r,u=-i,c=a;t.moveTo(n,o),t.lineTo(i,a),t.lineTo(u,c),t.lineTo(Kf*n-Yf*o,Yf*n+Kf*o),t.lineTo(Kf*i-Yf*a,Yf*i+Kf*a),t.lineTo(Kf*u-Yf*c,Yf*u+Kf*c),t.lineTo(Kf*n+Yf*o,Kf*o-Yf*n),t.lineTo(Kf*i+Yf*a,Kf*a-Yf*i),t.lineTo(Kf*u+Yf*c,Kf*c-Yf*u),t.closePath()}};Df(3),Df(3);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)}var tp=["type","size","sizeType"];function ep(){return ep=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},ep.apply(this,arguments)}function rp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function np(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rp(Object(r),!0).forEach((function(e){op(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function op(t,e,r){return(e=function(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)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ip(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var ap={symbolCircle:Rf,symbolCross:Lf,symbolDiamond:zf,symbolSquare:Ff,symbolStar:Wf,symbolTriangle:Gf,symbolWye:Zf},up=Math.PI/180,cp=function(t){var e,r,n=t.type,o=void 0===n?"circle":n,i=t.size,a=void 0===i?64:i,u=t.sizeType,c=void 0===u?"area":u,s=np(np({},ip(t,tp)),{},{type:o,size:a,sizeType:c}),l=s.className,f=s.cx,p=s.cy,h=Tn(s,!0);return f===+f&&p===+p&&a===+a?it().createElement("path",ep({},h,{className:ut()("recharts-symbols",l),transform:"translate(".concat(f,", ").concat(p,")"),d:(e=function(t){var e="symbol".concat(pr()(t));return ap[e]||Rf}(o),r=function(t,e){let r=null,n=zr(o);function o(){let o;if(r||(r=o=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),o)return r=null,o+""||null}return t="function"==typeof t?t:Dr(t||Rf),e="function"==typeof e?e:Dr(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:Dr(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:Dr(+t),o):e},o.context=function(t){return arguments.length?(r=null==t?null:t,o):r},o}().type(e).size(function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*up;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(a,c,o)),r())})):null};function 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)}function lp(){return lp=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},lp.apply(this,arguments)}function fp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pp(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,mp(n.key),n)}}function hp(t,e){return hp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},hp(t,e)}function dp(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=yp(t);if(e){var o=yp(this).constructor;r=Reflect.construct(n,arguments,o)}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 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 yp(t){return yp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yp(t)}function vp(t,e,r){return(e=mp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mp(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)}cp.registerSymbol=function(t,e){ap["symbol".concat(pr()(t))]=e};var gp=32,bp=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&&hp(t,e)}(i,t);var e,r,n,o=dp(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return e=i,r=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=16,n=gp/6,o=gp/3,i=t.inactive?e:t.color;if("plainline"===t.type)return it().createElement("line",{strokeWidth:4,fill:"none",stroke:i,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:r,x2:gp,y2:r,className:"recharts-legend-icon"});if("line"===t.type)return it().createElement("path",{strokeWidth:4,fill:"none",stroke:i,d:"M0,".concat(r,"h").concat(o,"\n A").concat(n,",").concat(n,",0,1,1,").concat(2*o,",").concat(r,"\n H").concat(gp,"M").concat(2*o,",").concat(r,"\n A").concat(n,",").concat(n,",0,1,1,").concat(o,",").concat(r),className:"recharts-legend-icon"});if("rect"===t.type)return it().createElement("path",{stroke:"none",fill:i,d:"M0,".concat(4,"h").concat(gp,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(it().isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fp(Object(r),!0).forEach((function(e){vp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return delete a.legendIcon,it().cloneElement(t.legendIcon,a)}return it().createElement(cp,{fill:i,cx:r,cy:r,size:gp,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,r=e.payload,n=e.iconSize,o=e.layout,i=e.formatter,a=e.inactiveColor,u={x:0,y:0,width:gp,height:gp},c={display:"horizontal"===o?"inline-block":"block",marginRight:10},s={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(e,r){var o,l=e.formatter||i,f=ut()((vp(o={"recharts-legend-item":!0},"legend-item-".concat(r),!0),vp(o,"inactive",e.inactive),o));if("none"===e.type)return null;var p=e.inactive?a:e.color;return it().createElement("li",lp({className:f,style:c,key:"legend-item-".concat(r)},Qr(t.props,e,r)),it().createElement(Mf,{width:n,height:n,viewBox:u,style:s},t.renderIcon(e)),it().createElement("span",{className:"recharts-legend-item-text",style:{color:p}},l?l(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 o={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return it().createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}],r&&pp(e.prototype,r),n&&pp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.PureComponent);function xp(t){return xp="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},xp(t)}vp(bp,"displayName","Legend"),vp(bp,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Op=["ref"];function _p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Sp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_p(Object(r),!0).forEach((function(e){Mp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_p(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ep(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,Tp(n.key),n)}}function kp(t,e){return kp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},kp(t,e)}function jp(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=Pp(t);if(e){var o=Pp(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===xp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ap(t)}(this,r)}}function Ap(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pp(t){return Pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pp(t)}function Mp(t,e,r){return(e=Tp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Tp(t){var e=function(t,e){if("object"!==xp(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==xp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===xp(e)?e:String(e)}function Cp(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Dp(t){return t.value}function Np(t,e){return!0===t?kf()(e,Dp):J()(t)?kf()(e,t):e}var Ip=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kp(t,e)}(i,t);var e,r,n,o=jp(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Mp(Ap(t=o.call.apply(o,[this].concat(r))),"state",{boxWidth:-1,boxHeight:-1}),t}return e=i,n=[{key:"getWithHeight",value:function(t,e){var r=t.props.layout;return"vertical"===r&&cn(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"getBBoxSnapshot",value:function(){var t=this.state,e=t.boxWidth,r=t.boxHeight;return e>=0&&r>=0?{width:e,height:r}:null}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,u=n.margin,c=n.chartWidth,s=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((c||0)-(this.getBBoxSnapshot()||{width:0}).width)/2}:"right"===i?{right:u&&u.right||0}:{left:u&&u.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((s||0)-(this.getBBoxSnapshot()||{height:0}).height)/2}:"bottom"===a?{bottom:u&&u.bottom||0}:{top:u&&u.top||0}),Sp(Sp({},e),r)}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,r=t.boxHeight,n=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-e)>1||Math.abs(o.height-r)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},(function(){n&&n(o)}))}else-1===e&&-1===r||this.setState({boxWidth:-1,boxHeight:-1},(function(){n&&n(null)}))}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,n=e.width,o=e.height,i=e.wrapperStyle,a=e.payloadUniqBy,u=e.payload,c=Sp(Sp({position:"absolute",width:n||"auto",height:o||"auto"},this.getDefaultPosition(i)),i);return it().createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(e){t.wrapperNode=e}},function(t,e){if(it().isValidElement(t))return it().cloneElement(t,e);if(J()(t))return it().createElement(t,e);e.ref;var r=Cp(e,Op);return it().createElement(bp,r)}(r,Sp(Sp({},this.props),{},{payload:Np(a,u)})))}}])&&Ep(e.prototype,r),n&&Ep(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.PureComponent);function Rp(t){return Rp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rp(t)}function Lp(t){return function(t){if(Array.isArray(t))return Bp(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 Bp(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 Bp(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 Bp(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 Up(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function zp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Up(Object(r),!0).forEach((function(e){Fp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Up(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Fp(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Rp(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Rp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Rp(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $p(t,e,r){return et()(t)||et()(e)?r:sn(e)?Q()(t,e,r):J()(e)?e(t):r}function Vp(t,e,r,n){var o=ii()(t,(function(t){return $p(t,e)}));if("number"===r){var i=o.filter((function(t){return cn(t)||parseFloat(t)}));return i.length?[ni()(i),Y()(i)]:[1/0,-1/0]}return(n?o.filter((function(t){return!et()(t)})):o).map((function(t){return sn(t)||t instanceof Date?t:""}))}Mp(Ip,"displayName","Legend"),Mp(Ip,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Hp=function(t){var e,r=t.type.displayName,n=t.props,o=n.stroke,i=n.fill;switch(r){case"Line":e=o;break;case"Area":case"Radar":e=o&&"none"!==o?o:i;break;default:e=i}return e},Wp=function(t){var e,r=t.children,n=t.formattedGraphicalItems,o=t.legendWidth,i=t.legendContent,a=jn(r,Ip);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(n||[]).reduce((function(t,e){var r=e.item,n=e.props,o=n.sectors||n.data||[];return t.concat(o.map((function(t){return{type:a.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(n||[]).map((function(t){var e=t.item,r=e.props,n=r.dataKey,o=r.name,i=r.legendType;return{inactive:r.hide,dataKey:n,type:a.props.iconType||i||"square",color:Hp(e),value:o||n,payload:e.props}})),zp(zp(zp({},a.props),Ip.getWithHeight(a,o)),{},{payload:e,item:a})):null},qp=function(t,e,r,n,o){var i=kn(e.props.children,Sf).filter((function(t){return function(t,e,r){return!!et()(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===r?"xAxis"===e:"y"!==r||"yAxis"===e)}(n,o,t.props.direction)}));if(i&&i.length){var a=i.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var n=$p(e,r,0),o=nt()(n)?[ni()(n),Y()(n)]:[n,n],i=a.reduce((function(t,r){var n=$p(e,r,0),i=o[0]-Math.abs(nt()(n)?n[0]:n),a=o[1]+Math.abs(nt()(n)?n[1]:n);return[Math.min(i,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]}),[1/0,-1/0])}return null},Gp=function(t,e,r,n,o){var i=e.map((function(e){var i=e.props.dataKey;return"number"===r&&i&&qp(t,e,i,n)||Vp(t,i,r,o)}));if("number"===r)return i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(t,e){for(var r=0,n=e.length;r<n;r++)a[e[r]]||(a[e[r]]=!0,t.push(e[r]));return t}),[])},Kp=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},Yp=function(t,e,r){var n,o,i=t.map((function(t){return t.coordinate===e&&(n=!0),t.coordinate===r&&(o=!0),t.coordinate}));return n||i.push(e),o||i.push(r),i},Xp=function(t,e,r){if(!t)return null;var n=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,u="scaleBand"===t.realScaleType?n.bandwidth()/2:2,c=(e||r)&&"category"===i&&n.bandwidth?n.bandwidth()/u:0;return c="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*an(a[0]-a[1])*c:c,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=o?o.indexOf(t):t;return{coordinate:n(e)+c,value:t,offset:c}})).filter((function(t){return!G()(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:n(t)+c,value:t,index:e,offset:c}})):n.ticks&&!r?n.ticks(t.tickCount).map((function(t){return{coordinate:n(t)+c,value:t,offset:c}})):n.domain().map((function(t,e){return{coordinate:n(t)+c,value:o?o[t]:t,index:e,offset:c}}))},Jp=function(t,e,r){var n;return J()(r)?n=r:J()(e)&&(n=e),J()(t)||n?function(e,r,o,i){J()(t)&&t(e,r,o,i),J()(n)&&n(e,r,o,i)}:null},Zp=1e-4,Qp={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0,a=0;a<e;++a){var u=G()(t[a][r][1])?t[a][r][0]:t[a][r][1];u>=0?(t[a][r][0]=o,t[a][r][1]=o+u,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+u,i=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}Ul(t,e)}},none:Ul,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,o=t[e[0]],i=o.length;n<i;++n){for(var a=0,u=0;a<r;++a)u+=t[a][n][1]||0;o[n][1]+=o[n][0]=-u/2}Ul(t,e)}},wiggle:function(t,e){if((o=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var u=0,c=0,s=0;u<o;++u){for(var l=t[e[u]],f=l[a][1]||0,p=(f-(l[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,s+=p*f}r[a-1][1]+=r[a-1][0]=i,c&&(i-=s/c)}r[a-1][1]+=r[a-1][0]=i,Ul(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0;i<e;++i){var a=G()(t[i][r][1])?t[i][r][0]:t[i][r][1];a>=0?(t[i][r][0]=o,t[i][r][1]=o+a,o=t[i][r][1]):(t[i][r][0]=0,t[i][r][1]=0)}}},th=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),o=function(){var t=Dr([]),e=zl,r=Ul,n=Fl;function o(o){var i,a,u=Array.from(t.apply(this,arguments),$l),c=u.length,s=-1;for(const t of o)for(i=0,++s;i<c;++i)(u[i][s]=[0,+n(t,u[i].key,s,o)]).data=t;for(i=0,a=Cr(e(u));i<c;++i)u[a[i]].index=i;return r(u,a),u}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:Dr(Array.from(e)),o):t},o.value=function(t){return arguments.length?(n="function"==typeof t?t:Dr(+t),o):n},o.order=function(t){return arguments.length?(e=null==t?zl:"function"==typeof t?t:Dr(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?Ul:t,o):r},o}().keys(n).value((function(t,e){return+$p(t,e,0)})).order(zl).offset(Qp[r]);return o(t)},eh=function(t){var e=t.axis,r=t.ticks,n=t.bandSize,o=t.entry,i=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!et()(o[e.dataKey])){var u=yn(r,"value",o[e.dataKey]);if(u)return u.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var c=$p(o,et()(a)?e.dataKey:a);return et()(c)?null:e.scale(c)},rh=function(t){var e=t.axis,r=t.ticks,n=t.offset,o=t.bandSize,i=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var u=$p(i,e.dataKey,e.domain[a]);return et()(u)?null:e.scale(u)-o/2+n},nh=function(t,e,r){return Object.keys(t).reduce((function(n,o){var i=t[o].stackedData.reduce((function(t,n){var o=n.slice(e,r+1).reduce((function(t,e){return[ni()(e.concat([t[0]]).filter(cn)),Y()(e.concat([t[1]]).filter(cn))]}),[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},oh=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ih=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ah=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(oh.test(t[0])){var o=+oh.exec(t[0])[1];n[0]=e[0]-o}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(ih.test(t[1])){var i=+ih.exec(t[1])[1];n[1]=e[1]+i}else J()(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},uh=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var o=ei()(e,(function(t){return t.coordinate})),i=1/0,a=1,u=o.length;a<u;a++){var c=o[a],s=o[a-1];i=Math.min((c.coordinate||0)-(s.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},ch=function(t,e,r){return t&&t.length?W()(t,Q()(r,"type.defaultProps.domain"))?e:t:e},sh=function(t,e){var r=t.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,u=r.tooltipType,c=r.chartType;return zp(zp({},Tn(t)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:Hp(t),value:$p(e,n),type:u,payload:e,chartType:c})};function lh(t){return lh="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},lh(t)}var fh=["valueAccessor"],ph=["data","dataKey","clockWise","id","textBreakAll"];function hh(t){return function(t){if(Array.isArray(t))return dh(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return dh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dh(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function yh(){return yh=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},yh.apply(this,arguments)}function vh(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 mh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vh(Object(r),!0).forEach((function(e){gh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gh(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==lh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==lh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===lh(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bh(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var xh=function(t){return nt()(t.value)?Qn()(t.value):t.value};function wh(t){var e=t.valueAccessor,r=void 0===e?xh:e,n=bh(t,fh),o=n.data,i=n.dataKey,a=n.clockWise,u=n.id,c=n.textBreakAll,s=bh(n,ph);return o&&o.length?it().createElement(Jn,{className:"recharts-label-list"},o.map((function(t,e){var n=et()(i)?r(t,e):$p(t&&t.payload,i),o=et()(u)?{}:{id:"".concat(u,"-").concat(e)};return it().createElement(Zo,yh({},Tn(t,!0),s,o,{parentViewBox:t.parentViewBox,index:e,value:n,textBreakAll:c,viewBox:Zo.parseViewBox(et()(a)?t:mh(mh({},t),{},{clockWise:a})),key:"label-".concat(e)}))}))):null}wh.displayName="LabelList",wh.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=kn(t.children,wh).map((function(t,r){return(0,ot.cloneElement)(t,{data:e,key:"labelList-".concat(r)})}));return r?[function(t,e){return t?!0===t?it().createElement(wh,{key:"labelList-implicit",data:e}):it().isValidElement(t)||J()(t)?it().createElement(wh,{key:"labelList-implicit",data:e,content:t}):qr()(t)?it().createElement(wh,yh({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(hh(n)):n};var Oh=["layout","type","stroke","connectNulls","isRange","ref"];function _h(t){return _h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_h(t)}function Sh(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Eh(){return Eh=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},Eh.apply(this,arguments)}function kh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function jh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kh(Object(r),!0).forEach((function(e){Dh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ah(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,Nh(n.key),n)}}function Ph(t,e){return Ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ph(t,e)}function Mh(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=Ch(t);if(e){var o=Ch(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===_h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Th(t)}(this,r)}}function Th(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ch(t){return Ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ch(t)}function Dh(t,e,r){return(e=Nh(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Nh(t){var e=function(t,e){if("object"!==_h(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==_h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===_h(e)?e:String(e)}var Ih=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&&Ph(t,e)}(i,t);var e,r,n,o=Mh(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Dh(Th(t=o.call.apply(o,[this].concat(r))),"state",{isAnimationFinished:!0}),Dh(Th(t),"id",fn("recharts-area-")),Dh(Th(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),J()(e)&&e()})),Dh(Th(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),J()(e)&&e()})),t}return e=i,r=[{key:"renderDots",value:function(t,e,r){var n=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(n&&!o)return null;var a=this.props,u=a.dot,c=a.points,s=a.dataKey,l=Tn(this.props),f=Tn(u,!0),p=c.map((function(t,e){var r=jh(jh(jh({key:"dot-".concat(e),r:3},l),f),{},{dataKey:s,cx:t.x,cy:t.y,index:e,value:t.value,payload:t.payload});return i.renderDotItem(u,r)})),h={clipPath:t?"url(#clipPath-".concat(e?"":"dots-").concat(r,")"):null};return it().createElement(Jn,Eh({className:"recharts-area-dots"},h),p)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,o=e.strokeWidth,i=n[0].x,a=n[n.length-1].x,u=t*Math.abs(i-a),c=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)?it().createElement("rect",{x:i<a?i:i-u,y:0,width:u,height:Math.floor(c+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,o=e.strokeWidth,i=n[0].y,a=n[n.length-1].y,u=t*Math.abs(i-a),c=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)?it().createElement("rect",{x:0,y:i<a?i:i-u,width:c+(o?parseInt("".concat(o),10):1),height:Math.floor(u)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,r,n){var o=this.props,i=o.layout,a=o.type,u=o.stroke,c=o.connectNulls,s=o.isRange,l=(o.ref,Sh(o,Oh));return it().createElement(Jn,{clipPath:r?"url(#clipPath-".concat(n,")"):null},it().createElement(Wn,Eh({},Tn(l,!0),{points:t,connectNulls:c,type:a,baseLine:e,layout:i,stroke:"none",className:"recharts-area-area"})),"none"!==u&&it().createElement(Wn,Eh({},Tn(this.props),{className:"recharts-area-curve",layout:i,type:a,connectNulls:c,fill:"none",points:t})),"none"!==u&&s&&it().createElement(Wn,Eh({},Tn(this.props),{className:"recharts-area-curve",layout:i,type:a,connectNulls:c,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,o=n.points,i=n.baseLine,a=n.isAnimationActive,u=n.animationBegin,c=n.animationDuration,s=n.animationEasing,l=n.animationId,f=this.state,p=f.prevPoints,h=f.prevBaseLine;return it().createElement(lr,{begin:u,duration:c,isActive:a,easing:s,from:{t:0},to:{t:1},key:"area-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(p){var u,c=p.length/o.length,s=o.map((function(t,e){var r=Math.floor(e*c);if(p[r]){var n=p[r],o=dn(n.x,t.x),i=dn(n.y,t.y);return jh(jh({},t),{},{x:o(a),y:i(a)})}return t}));return u=cn(i)&&"number"==typeof i?dn(h,i)(a):et()(i)||G()(i)?dn(h,0)(a):i.map((function(t,e){var r=Math.floor(e*c);if(h[r]){var n=h[r],o=dn(n.x,t.x),i=dn(n.y,t.y);return jh(jh({},t),{},{x:o(a),y:i(a)})}return t})),r.renderAreaStatically(s,u,t,e)}return it().createElement(Jn,null,it().createElement("defs",null,it().createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),it().createElement(Jn,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(o,i,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,o=r.baseLine,i=r.isAnimationActive,a=this.state,u=a.prevPoints,c=a.prevBaseLine,s=a.totalLength;return i&&n&&n.length&&(!u&&s>0||!W()(u,n)||!W()(c,o))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,o,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,o=e.points,i=e.className,a=e.top,u=e.left,c=e.xAxis,s=e.yAxis,l=e.width,f=e.height,p=e.isAnimationActive,h=e.id;if(r||!o||!o.length)return null;var d=this.state.isAnimationFinished,y=1===o.length,v=ut()("recharts-area",i),m=c&&c.allowDataOverflow,g=s&&s.allowDataOverflow,b=m||g,x=et()(h)?this.id:h,w=null!==(t=Tn(n))&&void 0!==t?t:{r:3,strokeWidth:2},O=w.r,_=void 0===O?3:O,S=w.strokeWidth,E=void 0===S?2:S,k=(function(t){return t&&"object"===xn(t)&&"cx"in t&&"cy"in t&&"r"in t}(n)?n:{}).clipDot,j=void 0===k||k,A=2*_+E;return it().createElement(Jn,{className:v},m||g?it().createElement("defs",null,it().createElement("clipPath",{id:"clipPath-".concat(x)},it().createElement("rect",{x:m?u:u-l/2,y:g?a:a-f/2,width:m?l:2*l,height:g?f:2*f})),!j&&it().createElement("clipPath",{id:"clipPath-dots-".concat(x)},it().createElement("rect",{x:u-A/2,y:a-A/2,width:l+A,height:f+A}))):null,y?null:this.renderArea(b,x),(n||y)&&this.renderDots(b,j,x),(!p||d)&&wh.renderCallByParent(this.props,o))}}],n=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],r&&Ah(e.prototype,r),n&&Ah(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.PureComponent);Dh(Ih,"displayName","Area"),Dh(Ih,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ro.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),Dh(Ih,"getBaseValue",(function(t,e,r,n){var o=t.layout,i=t.baseValue,a=e.props.baseValue,u=null!=a?a:i;if(cn(u)&&"number"==typeof u)return u;var c="horizontal"===o?n:r,s=c.scale.domain();if("number"===c.type){var l=Math.max(s[0],s[1]),f=Math.min(s[0],s[1]);return"dataMin"===u?f:"dataMax"===u||l<0?l:Math.max(Math.min(s[0],s[1]),0)}return"dataMin"===u?s[0]:"dataMax"===u?s[1]:s[0]})),Dh(Ih,"getComposedData",(function(t){var e,r=t.props,n=t.item,o=t.xAxis,i=t.yAxis,a=t.xAxisTicks,u=t.yAxisTicks,c=t.bandSize,s=t.dataKey,l=t.stackedData,f=t.dataStartIndex,p=t.displayedData,h=t.offset,d=r.layout,y=l&&l.length,v=Ih.getBaseValue(r,n,o,i),m=!1,g=p.map((function(t,e){var r,n=$p(t,s);y?r=l[f+e]:(r=n,nt()(r)?m=!0:r=[v,r]);var p=et()(r[1])||y&&et()(n);return"horizontal"===d?{x:eh({axis:o,ticks:a,bandSize:c,entry:t,index:e}),y:p?null:i.scale(r[1]),value:r,payload:t}:{x:p?null:o.scale(r[1]),y:eh({axis:i,ticks:u,bandSize:c,entry:t,index:e}),value:r,payload:t}}));return e=y||m?g.map((function(t){return"horizontal"===d?{x:t.x,y:et()(Q()(t,"value[0]"))||et()(Q()(t,"y"))?null:i.scale(Q()(t,"value[0]"))}:{x:et()(Q()(t,"value[0]"))?null:o.scale(Q()(t,"value[0]")),y:t.y}})):"horizontal"===d?i.scale(v):o.scale(v),jh({points:g,baseLine:e,layout:d,isRange:m},h)})),Dh(Ih,"renderDotItem",(function(t,e){return it().isValidElement(t)?it().cloneElement(t,e):J()(t)?t(e):it().createElement(Gn,Eh({},e,{className:"recharts-area-dot"}))}));var Rh=r(1533),Lh=r(3279),Bh=r.n(Lh),Uh=r(3493),zh=r.n(Uh),Fh=function(t,e){return Fh=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])},Fh(t,e)};function $h(t,e){function r(){this.constructor=t}Fh(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Vh(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}var Hh=function(t,e,r,n){switch(e){case"debounce":return Bh()(t,r,n);case"throttle":return zh()(t,r,n);default:return t}},Wh=function(t){return"function"==typeof t},qh=function(){return"undefined"==typeof window},Gh=function(t){return t instanceof Element||t instanceof HTMLDocument},Kh=function(t,e,r){return function(n){var o=n.width,i=n.height;t((function(t){return t.width===o&&t.height===i||t.width===o&&!r||t.height===i&&!e?t:{width:o,height:i}}))}},Yh=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(!qh()){e&&e.current&&(r.targetRef.current=e.current);var o=r.getElement();o&&(r.observableElement&&r.observableElement===o||(r.observableElement=o,r.resizeObserver.observe(o,n)))}},r.getElement=function(){var t=r.props,e=t.querySelector,n=t.targetDomEl;if(qh())return null;if(e)return document.querySelector(e);if(n&&Gh(n))return n;if(r.targetRef&&Gh(r.targetRef.current))return r.targetRef.current;var o=(0,Rh.findDOMNode)(r);if(!o)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return o;default:return o.parentElement}},r.createResizeHandler=function(t){var e=r.props,n=e.handleWidth,o=void 0===n||n,i=e.handleHeight,a=void 0===i||i,u=e.onResize;if(o||a){var c=Kh((function(t){return r.setState(t,(function(){return null==u?void 0:u(r.state.width,r.state.height)}))}),o,a);t.forEach((function(t){var e=t&&t.contentRect||{},n=e.width,o=e.height;!r.skipOnMount&&!qh()&&c({width:n,height:o}),r.skipOnMount=!1}))}},r.getRenderType=function(){var t=r.props,e=t.render,n=t.children;return Wh(e)?"renderProp":Wh(n)?"childFunction":(0,ot.isValidElement)(n)?"child":Array.isArray(n)?"childArray":"parent"};var n=e.skipOnMount,o=e.refreshMode,i=e.refreshRate,a=void 0===i?1e3:i,u=e.refreshOptions;return r.state={width:void 0,height:void 0},r.skipOnMount=n,r.targetRef=(0,ot.createRef)(),r.observableElement=null,qh()||(r.resizeHandler=Hh(r.createResizeHandler,o,a,u),r.resizeObserver=new window.ResizeObserver(r.resizeHandler)),r}return $h(e,t),e.prototype.componentDidMount=function(){this.attachObserver()},e.prototype.componentDidUpdate=function(){this.attachObserver()},e.prototype.componentWillUnmount=function(){qh()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},e.prototype.render=function(){var t=this.props,e=t.render,r=t.children,n=t.nodeType,o=void 0===n?"div":n,i=this.state,a={width:i.width,height:i.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return null==e?void 0:e(a);case"childFunction":var u=r;return null==u?void 0:u(a);case"child":var c=r;if(c.type&&"string"==typeof c.type){var s=Vh(a,["targetRef"]);return(0,ot.cloneElement)(c,s)}return(0,ot.cloneElement)(c,a);case"childArray":return r.map((function(t){return!!t&&(0,ot.cloneElement)(t,a)}));default:return it().createElement(o,null)}},e}(ot.PureComponent);qh()?ot.useEffect:ot.useLayoutEffect;var Xh=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o]};function Jh(){return Jh=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},Jh.apply(this,arguments)}function Zh(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Qh(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 Qh(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 Qh(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 td=(0,ot.forwardRef)((function(t,e){var r=t.aspect,n=t.initialDimension,o=void 0===n?{width:-1,height:-1}:n,i=t.width,a=void 0===i?"100%":i,u=t.height,c=void 0===u?"100%":u,s=t.minWidth,l=void 0===s?0:s,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=Zh((0,ot.useState)({containerWidth:o.width,containerHeight:o.height}),2),x=b[0],w=b[1],O=(0,ot.useRef)(null);(0,ot.useImperativeHandle)(e,(function(){return O}),[O]);var _=(0,ot.useCallback)((function(){return O.current?{containerWidth:O.current.clientWidth,containerHeight:O.current.clientHeight}:null}),[]),S=(0,ot.useCallback)((function(){var t=_();if(t){var e=t.containerWidth,r=t.containerHeight;g&&g(e,r),w((function(t){var n=t.containerWidth,o=t.containerHeight;return e!==n||r!==o?{containerWidth:e,containerHeight:r}:t}))}}),[_,g]),E=(0,ot.useMemo)((function(){var t=x.containerWidth,e=x.containerHeight;if(t<0||e<0)return null;Xh(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),Xh(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=un(a)?t:a,o=un(c)?e:c;return r&&r>0&&(n?o=n/r:o&&(n=o*r),p&&o>p&&(o=p)),Xh(n>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,o,a,c,l,f,r),(0,ot.cloneElement)(h,{width:n,height:o})}),[r,h,c,p,f,l,x,a]);(0,ot.useEffect)((function(){var t=_();t&&w(t)}),[_]);var k={width:a,height:c,minWidth:l,minHeight:f,maxHeight:p};return it().createElement(Yh,{handleWidth:!0,handleHeight:!0,onResize:S,targetRef:O,refreshMode:y>0?"debounce":void 0,refreshRate:y},it().createElement("div",Jh({},null!=v?{id:"".concat(v)}:{},{className:ut()("recharts-responsive-container",m),style:k,ref:O}),E))})),ed=r(711),rd=r.n(ed),nd=r(3311),od=r.n(nd),id=r(6026),ad=r.n(id),ud=r(1584),cd=r.n(ud);function sd(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],o=0;o<t.length;o+=e){if(void 0!==r&&!0!==r(t[o]))return;n.push(t[o])}return n}var ld=r(6604),fd=r.n(ld);function pd(t){return pd="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},pd(t)}function hd(){return hd=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},hd.apply(this,arguments)}function dd(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return yd(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 yd(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 yd(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 vd(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 md(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vd(Object(r),!0).forEach((function(e){gd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gd(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==pd(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==pd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===pd(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var bd=function(t,e,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),u=n>=0?1:-1,c=r>=0?1:-1,s=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&o instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+u*l[0]),l[0]>0&&(i+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(t+c*l[0],",").concat(e)),i+="L ".concat(t+r-c*l[1],",").concat(e),l[1]>0&&(i+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,",\n ").concat(t+r,",").concat(e+u*l[1])),i+="L ".concat(t+r,",").concat(e+n-u*l[2]),l[2]>0&&(i+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,",\n ").concat(t+r-c*l[2],",").concat(e+n)),i+="L ".concat(t+c*l[3],",").concat(e+n),l[3]>0&&(i+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,",\n ").concat(t,",").concat(e+n-u*l[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(t+c*p,",").concat(e,"\n L ").concat(t+r-c*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").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(s,",").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(s,",").concat(t,",").concat(e+n-u*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},xd=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,o=e.x,i=e.y,a=e.width,u=e.height;if(Math.abs(a)>0&&Math.abs(u)>0){var c=Math.min(o,o+a),s=Math.max(o,o+a),l=Math.min(i,i+u),f=Math.max(i,i+u);return r>=c&&r<=s&&n>=l&&n<=f}return!1},wd={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Od=function(t){var e=md(md({},wd),t),r=(0,ot.useRef)(),n=dd((0,ot.useState)(-1),2),o=n[0],i=n[1];(0,ot.useEffect)((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&i(t)}catch(t){}}),[]);var a=e.x,u=e.y,c=e.width,s=e.height,l=e.radius,f=e.className,p=e.animationEasing,h=e.animationDuration,d=e.animationBegin,y=e.isAnimationActive,v=e.isUpdateAnimationActive;if(a!==+a||u!==+u||c!==+c||s!==+s||0===c||0===s)return null;var m=ut()("recharts-rectangle",f);return v?it().createElement(lr,{canBegin:o>0,from:{width:c,height:s,x:a,y:u},to:{width:c,height:s,x:a,y:u},duration:h,animationEasing:p,isActive:v},(function(t){var n=t.width,i=t.height,a=t.x,u=t.y;return it().createElement(lr,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:h,isActive:y,easing:p},it().createElement("path",hd({},Tn(e,!0),{className:m,d:bd(a,u,n,i,l),ref:r})))})):it().createElement("path",hd({},Tn(e,!0),{className:m,d:bd(a,u,c,s,l)}))},_d=function(t){return null};_d.displayName="Cell";var Sd=["value","background"];function Ed(t){return Ed="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},Ed(t)}function kd(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function jd(){return jd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},jd.apply(this,arguments)}function Ad(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 Pd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ad(Object(r),!0).forEach((function(e){Id(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ad(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Md(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,Rd(n.key),n)}}function Td(t,e){return Td=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Td(t,e)}function Cd(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Nd(t);if(e){var o=Nd(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Ed(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Dd(t)}(this,r)}}function Dd(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Nd(t){return Nd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Nd(t)}function Id(t,e,r){return(e=Rd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rd(t){var e=function(t,e){if("object"!==Ed(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ed(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ed(e)?e:String(e)}var Ld=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Td(t,e)}(i,t);var e,r,n,o=Cd(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return Id(Dd(t=o.call.apply(o,[this].concat(r))),"state",{isAnimationFinished:!1}),Id(Dd(t),"id",fn("recharts-bar-")),Id(Dd(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),Id(Dd(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return e=i,r=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props.shape,n=Tn(this.props);return t&&t.map((function(t,o){var a=Pd(Pd(Pd({},n),t),{},{index:o});return it().createElement(Jn,jd({className:"recharts-bar-rectangle"},Qr(e.props,t,o),{key:"rectangle-".concat(o)}),i.renderRectangle(r,a))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,u=e.animationEasing,c=e.animationId,s=this.state.prevData;return it().createElement(lr,{begin:i,duration:a,isActive:o,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var o=e.t,i=r.map((function(t,e){var r=s&&s[e];if(r){var i=dn(r.x,t.x),a=dn(r.y,t.y),u=dn(r.width,t.width),c=dn(r.height,t.height);return Pd(Pd({},t),{},{x:i(o),y:a(o),width:u(o),height:c(o)})}if("horizontal"===n){var l=dn(0,t.height)(o);return Pd(Pd({},t),{},{y:t.y+t.height-l,height:l})}var f=dn(0,t.width)(o);return Pd(Pd({},t),{},{width:f})}));return it().createElement(Jn,null,t.renderRectanglesStatically(i))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&W()(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props.data,r=Tn(this.props.background);return e.map((function(e,n){e.value;var o=e.background,a=kd(e,Sd);if(!o)return null;var u=Pd(Pd(Pd(Pd(Pd({},a),{},{fill:"#eee"},o),r),Qr(t.props,e,n)),{},{index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return i.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,o=r.xAxis,i=r.yAxis,a=r.layout,u=kn(r.children,Sf);if(!u)return null;var c="vertical"===a?n[0].height/2:n[0].width/2,s=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:$p(t,e)}},l={clipPath:t?"url(#clipPath-".concat(e,")"):null};return it().createElement(Jn,l,u.map((function(t,e){return it().cloneElement(t,{key:"error-bar-".concat(e),data:n,xAxis:o,yAxis:i,layout:a,offset:c,dataPointFormatter:s})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,o=t.xAxis,i=t.yAxis,a=t.left,u=t.top,c=t.width,s=t.height,l=t.isAnimationActive,f=t.background,p=t.id;if(e||!r||!r.length)return null;var h=this.state.isAnimationFinished,d=ut()("recharts-bar",n),y=o&&o.allowDataOverflow,v=i&&i.allowDataOverflow,m=y||v,g=et()(p)?this.id:p;return it().createElement(Jn,{className:d},y||v?it().createElement("defs",null,it().createElement("clipPath",{id:"clipPath-".concat(g)},it().createElement("rect",{x:y?a:a-c/2,y:v?u:u-s/2,width:y?c:2*c,height:v?s:2*s}))):null,it().createElement(Jn,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(g,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,g),(!l||h)&&wh.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 it().isValidElement(t)?it().cloneElement(t,e):J()(t)?t(e):it().createElement(Od,e)}}],r&&Md(e.prototype,r),n&&Md(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.PureComponent);function Bd(t){return Bd="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},Bd(t)}function Ud(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,Vd(n.key),n)}}function zd(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 Fd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zd(Object(r),!0).forEach((function(e){$d(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $d(t,e,r){return(e=Vd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vd(t){var e=function(t,e){if("object"!==Bd(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Bd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Bd(e)?e:String(e)}Id(Ld,"displayName","Bar"),Id(Ld,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!ro.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),Id(Ld,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,u=t.xAxisTicks,c=t.yAxisTicks,s=t.stackedData,l=t.dataStartIndex,f=t.displayedData,p=t.offset,h=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!h)return null;var d=e.layout,y=r.props,v=y.dataKey,m=y.children,g=y.minPointSize,b="horizontal"===d?a:i,x=s?b.scale.domain():null,w=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]}({numericAxis:b}),O=kn(m,_d),_=f.map((function(t,e){var n,f,p,y,m,b;if(s?n=function(t,e){if(!e||2!==e.length||!cn(e[0])||!cn(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),o=[t[0],t[1]];return(!cn(t[0])||t[0]<r)&&(o[0]=r),(!cn(t[1])||t[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o}(s[l+e],x):(n=$p(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=rh({axis:i,ticks:u,bandSize:o,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=[i.scale(n[0]),i.scale(n[1])],M=P[0],T=P[1];if(f=M,p=rh({axis:a,ticks:c,bandSize:o,offset:h.offset,entry:t,index:e}),y=T-M,m=h.size,b={x:i.x,y:p,width:i.width,height:m},Math.abs(g)>0&&Math.abs(y)<Math.abs(g))y+=an(y||g)*(Math.abs(g)-Math.abs(y))}return Pd(Pd(Pd({},t),{},{x:f,y:p,width:y,height:m,value:s?n:n[1],payload:t,background:b},O&&O[e]&&O[e].props),{},{tooltipPayload:[sh(r,t)],tooltipPosition:{x:f+y/2,y:p+m/2}})}));return Pd({data:_,layout:d},p)}));var Hd=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},Wd=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}var e,r,n;return e=t,r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&Ud(e.prototype,r),n&&Ud(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();$d(Wd,"EPS",1e-4);var qd=function(t){var e=Object.keys(t).reduce((function(e,r){return Fd(Fd({},e),{},$d({},r,Wd.create(t[r])))}),{});return Fd(Fd({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return fd()(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:o})}))},isInRange:function(t){return rd()(t,(function(t,r){return e[r].isInRange(t)}))}})};var Gd=function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=n*Math.PI/180,i=Math.atan(r/e),a=o>i&&o<Math.PI-i?r/Math.sin(o):e/Math.cos(o);return Math.abs(a)};function Kd(t){return Kd="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},Kd(t)}function Yd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xd(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yd(Object(r),!0).forEach((function(e){Jd(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yd(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jd(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Kd(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Kd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Kd(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zd(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return Gd(n,r)}function Qd(t,e){var r,n,o=t.angle,i=t.ticks,a=t.tickFormatter,u=t.viewBox,c=t.orientation,s=t.minTickGap,l=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=(i||[]).slice(),b=l&&"width"===m?yo(l,{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=i[x-1],_=J()(a)?a(O.value,x-1):O.value,S="width"===m?Zd(yo(_,{fontSize:f,letterSpacing:p}),b,o):yo(_,{fontSize:f,letterSpacing:p})[m],E=w*(O.coordinate+w*S/2-n);g[x-1]=O=Xd(Xd({},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+s),g[x-1]=Xd(Xd({},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?Zd(yo(P,{fontSize:f,letterSpacing:p}),b,o):yo(P,{fontSize:f,letterSpacing:p})[m];if(0===j){var T=w*(A.coordinate-w*M/2-r);g[j]=A=Xd(Xd({},A),{},{tickCoord:T<0?A.coordinate-T*w:A.coordinate})}else g[j]=A=Xd(Xd({},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+s),g[j]=Xd(Xd({},A),{},{isShow:!0}))}return g}function ty(t,e,r){var n=t.tick,o=t.ticks,i=t.viewBox,a=t.minTickGap,u=t.orientation,c=t.interval,s=t.tickFormatter,l=t.unit,f=t.angle;if(!o||!o.length||!n)return[];if(cn(c)||ro.isSsr)return function(t,e){return sd(t,e+1)}(o,"number"==typeof c&&cn(c)?c:0);var p=[];return"equidistantPreserveStart"===c?function(t){for(var e=1,r=sd(t,e,(function(t){return t.isShow}));e<=t.length;){if(void 0!==r)return r;r=sd(t,++e,(function(t){return t.isShow}))}return t.slice(0,1)}(p=Qd({angle:f,ticks:o,tickFormatter:s,viewBox:i,orientation:u,minTickGap:a,unit:l,fontSize:e,letterSpacing:r})):(p="preserveStart"===c||"preserveStartEnd"===c?Qd({angle:f,ticks:o,tickFormatter:s,viewBox:i,orientation:u,minTickGap:a,unit:l,fontSize:e,letterSpacing:r},"preserveStartEnd"===c):function(t){var e,r,n=t.angle,o=t.ticks,i=t.tickFormatter,a=t.viewBox,u=t.orientation,c=t.minTickGap,s=t.unit,l=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=s&&"width"===v?yo(s,{fontSize:l,letterSpacing:f}):{width:0,height:0},g=(o||[]).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()(i)?i(O.value,b-w-1):O.value,S="width"===v?Zd(yo(_,{fontSize:l,letterSpacing:f}),m,n):yo(_,{fontSize:l,letterSpacing:f})[v];if(w===b-1){var E=x*(O.coordinate+x*S/2-r);g[w]=O=Xd(Xd({},O),{},{tickCoord:E>0?O.coordinate-E*x:O.coordinate})}else g[w]=O=Xd(Xd({},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]=Xd(Xd({},O),{},{isShow:!0}))}return g}({angle:f,ticks:o,tickFormatter:s,viewBox:i,orientation:u,minTickGap:a,unit:l,fontSize:e,letterSpacing:r}),p.filter((function(t){return t.isShow})))}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 ry(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ny(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ny(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ny(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function oy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function iy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?oy(Object(r),!0).forEach((function(e){ay(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oy(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}function uy(t){return nt()(t)&&sn(t[0])&&sn(t[1])?t.join(" ~ "):t}var cy=function(t){var e=t.separator,r=void 0===e?" : ":e,n=t.contentStyle,o=void 0===n?{}:n,i=t.itemStyle,a=void 0===i?{}:i,u=t.labelStyle,c=void 0===u?{}:u,s=t.payload,l=t.formatter,f=t.itemSorter,p=t.wrapperClassName,h=t.labelClassName,d=t.label,y=t.labelFormatter,v=iy({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),m=iy({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!=s&&(b=y(d,s)),it().createElement("div",{className:x,style:v},it().createElement("p",{className:w,style:m},it().isValidElement(b)?b:"".concat(b)),function(){if(s&&s.length){var t=(f?ei()(s,f):s).map((function(t,e){if("none"===t.type)return null;var n=iy({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},a),o=t.formatter||l||uy,i=t.value,u=t.name,c=i,f=u;if(o&&null!=c&&null!=f){var p=o(i,u,t,e,s);if(Array.isArray(p)){var h=ry(p,2);c=h[0],f=h[1]}else c=p}return it().createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:n},sn(f)?it().createElement("span",{className:"recharts-tooltip-item-name"},f):null,sn(f)?it().createElement("span",{className:"recharts-tooltip-item-separator"},r):null,it().createElement("span",{className:"recharts-tooltip-item-value"},c),it().createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return it().createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function sy(t){return sy="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},sy(t)}function ly(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 fy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ly(Object(r),!0).forEach((function(e){my(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ly(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function py(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,gy(n.key),n)}}function hy(t,e){return hy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},hy(t,e)}function dy(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=vy(t);if(e){var o=vy(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===sy(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return yy(t)}(this,r)}}function yy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vy(t){return vy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vy(t)}function my(t,e,r){return(e=gy(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gy(t){var e=function(t,e){if("object"!==sy(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==sy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===sy(e)?e:String(e)}var by="recharts-tooltip-wrapper";function xy(t){return t.dataKey}var wy=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&&hy(t,e)}(i,t);var e,r,n,o=dy(i);function i(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return my(yy(t=o.call.apply(o,[this].concat(r))),"state",{boxWidth:-1,boxHeight:-1,dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),my(yy(t),"handleKeyDown",(function(e){"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:fy(fy({},t.state.dismissedAtCoordinate),{},{x:t.props.coordinate.x,y:t.props.coordinate.y})})})),my(yy(t),"getTranslate",(function(e){var r=e.key,n=e.tooltipDimension,o=e.viewBoxDimension,i=t.props,a=i.allowEscapeViewBox,u=i.reverseDirection,c=i.coordinate,s=i.offset,l=i.position,f=i.viewBox;if(l&&cn(l[r]))return l[r];var p=c[r]-n-s,h=c[r]+s;return a[r]?u[r]?p:h:u[r]?p<f[r]?Math.max(h,f[r]):Math.max(p,f[r]):h+n>f[r]+o?Math.max(p,f[r]):Math.max(h,f[r])})),t}return e=i,(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,r=t.boxHeight;if(t.dismissed?(document.removeEventListener("keydown",this.handleKeyDown),this.props.coordinate.x===this.state.dismissedAtCoordinate.x&&this.props.coordinate.y===this.state.dismissedAtCoordinate.y||this.setState({dismissed:!1})):document.addEventListener("keydown",this.handleKeyDown),this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-e)>1||Math.abs(n.height-r)>1)&&this.setState({boxWidth:n.width,boxHeight:n.height})}else-1===e&&-1===r||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var t,e,r,n=this,o=this.props,i=o.payload,a=o.isAnimationActive,u=o.animationDuration,c=o.animationEasing,s=o.filterNull,l=function(t,e){return!0===t?kf()(e,xy):J()(t)?kf()(e,t):e}(o.payloadUniqBy,s&&i&&i.length?i.filter((function(t){return!et()(t.value)})):i),f=l&&l.length,p=this.props,h=p.content,d=p.viewBox,y=p.coordinate,v=p.position,m=p.active,g=p.wrapperStyle,b=fy({pointerEvents:"none",visibility:!this.state.dismissed&&m&&f?"visible":"hidden",position:"absolute",top:0,left:0},g);if(v&&cn(v.x)&&cn(v.y))e=v.x,r=v.y;else{var x=this.state,w=x.boxWidth,O=x.boxHeight;w>0&&O>0&&y?(e=this.getTranslate({key:"x",tooltipDimension:w,viewBoxDimension:d.width}),r=this.getTranslate({key:"y",tooltipDimension:O,viewBoxDimension:d.height})):b.visibility="hidden"}b=fy(fy({},ie({transform:this.props.useTranslate3d?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")})),b),a&&m&&(b=fy(fy({},ie({transition:"transform ".concat(u,"ms ").concat(c)})),b));var _=ut()(by,(my(t={},"".concat(by,"-right"),cn(e)&&y&&cn(y.x)&&e>=y.x),my(t,"".concat(by,"-left"),cn(e)&&y&&cn(y.x)&&e<y.x),my(t,"".concat(by,"-bottom"),cn(r)&&y&&cn(y.y)&&r>=y.y),my(t,"".concat(by,"-top"),cn(r)&&y&&cn(y.y)&&r<y.y),t));return it().createElement("div",{tabIndex:-1,role:"dialog",className:_,style:b,ref:function(t){n.wrapperNode=t}},function(t,e){return it().isValidElement(t)?it().cloneElement(t,e):J()(t)?it().createElement(t,e):it().createElement(cy,e)}(h,fy(fy({},this.props),{},{payload:l})))}}])&&py(e.prototype,r),n&&py(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.PureComponent);function Oy(t){return Oy="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},Oy(t)}my(wy,"displayName","Tooltip"),my(wy,"defaultProps",{active:!1,allowEscapeViewBox:{x:!1,y:!1},reverseDirection:{x:!1,y:!1},offset:10,viewBox:{x:0,y:0,height:0,width:0},coordinate:{x:0,y:0},cursorStyle:{},separator:" : ",wrapperStyle:{},contentStyle:{},itemStyle:{},labelStyle:{},cursor:!0,trigger:"hover",isAnimationActive:!ro.isSsr,animationEasing:"ease",animationDuration:400,filterNull:!0,useTranslate3d:!1});var _y=["x","y","top","left","width","height","className"];function Sy(){return Sy=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},Sy.apply(this,arguments)}function Ey(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ky(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Oy(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Oy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Oy(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jy(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Ay=function(t,e,r,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(e,"h").concat(r)},Py=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,o=void 0===n?0:n,i=t.top,a=void 0===i?0:i,u=t.left,c=void 0===u?0:u,s=t.width,l=void 0===s?0:s,f=t.height,p=void 0===f?0:f,h=t.className,d=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ey(Object(r),!0).forEach((function(e){ky(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ey(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:o,top:a,left:c,width:l,height:p},jy(t,_y));return cn(r)&&cn(o)&&cn(l)&&cn(p)&&cn(a)&&cn(c)?it().createElement("path",Sy({},Tn(d,!0),{className:ut()("recharts-cross",h),d:Ay(r,o,l,p,a,c)})):null};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){Ny(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,r){return(e=function(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)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Iy=function(t){var e=t.cx,r=t.cy,n=t.radius,o=t.angle,i=t.sign,a=t.isExternal,u=t.cornerRadius,c=t.cornerIsExternal,s=u*(a?1:-1)+n,l=Math.asin(u/s)/Co,f=c?o:o+i*l,p=c?o-i*l:o;return{center:No(e,r,s,f),circleTangency:No(e,r,n,f),lineTangency:No(e,r,s*Math.cos(l*Co),p),theta:l}},Ry=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return an(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),u=i+a,c=No(e,r,o,i),s=No(e,r,o,u),l="M ".concat(c.x,",").concat(c.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>u),",\n ").concat(s.x,",").concat(s.y,"\n ");if(n>0){var f=No(e,r,n,i),p=No(e,r,n,u);l+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=u),",\n ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(e,",").concat(r," Z");return l},Ly={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},By=function(t){var e=Dy(Dy({},Ly),t),r=e.cx,n=e.cy,o=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,u=e.forceCornerRadius,c=e.cornerIsExternal,s=e.startAngle,l=e.endAngle,f=e.className;if(i<o||s===l)return null;var p,h=ut()("recharts-sector",f),d=i-o,y=pn(a,d,0,!0);return p=y>0&&Math.abs(s-l)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,u=t.cornerIsExternal,c=t.startAngle,s=t.endAngle,l=an(s-c),f=Iy({cx:e,cy:r,radius:o,angle:c,sign:l,cornerRadius:i,cornerIsExternal:u}),p=f.circleTangency,h=f.lineTangency,d=f.theta,y=Iy({cx:e,cy:r,radius:o,angle:s,sign:-l,cornerRadius:i,cornerIsExternal:u}),v=y.circleTangency,m=y.lineTangency,g=y.theta,b=u?Math.abs(c-s):Math.abs(c-s)-d-g;if(b<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):Ry({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:c,endAngle:s});var x="M ".concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(m.x,",").concat(m.y,"\n ");if(n>0){var w=Iy({cx:e,cy:r,radius:n,angle:c,sign:l,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),O=w.circleTangency,_=w.lineTangency,S=w.theta,E=Iy({cx:e,cy:r,radius:n,angle:s,sign:-l,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),k=E.circleTangency,j=E.lineTangency,A=E.theta,P=u?Math.abs(c-s):Math.abs(c-s)-S-A;if(P<0&&0===i)return"".concat(x,"L").concat(e,",").concat(r,"Z");x+="L".concat(j.x,",").concat(j.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(k.x,",").concat(k.y,"\n A").concat(n,",").concat(n,",0,").concat(+(P>180),",").concat(+(l>0),",").concat(O.x,",").concat(O.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(_.x,",").concat(_.y,"Z")}else x+="L".concat(e,",").concat(r,"Z");return x}({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(y,d/2),forceCornerRadius:u,cornerIsExternal:c,startAngle:s,endAngle:l}):Ry({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:s,endAngle:l}),it().createElement("path",Ty({},Tn(e,!0),{className:h,d:p,role:"img"}))},Uy=["viewBox"],zy=["viewBox"],Fy=["ticks"];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 Vy(){return Vy=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},Vy.apply(this,arguments)}function Hy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Wy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Hy(Object(r),!0).forEach((function(e){Jy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qy(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Gy(t,e){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 Ky(t,e){return Ky=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ky(t,e)}function Yy(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Xy(t);if(e){var o=Xy(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===$y(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 Xy(t){return Xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xy(t)}function Jy(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"!==$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)}var Qy=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ky(t,e)}(i,t);var e,r,n,o=Yy(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this,t)).state={fontSize:"",letterSpacing:""},e}return e=i,r=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=qy(t,Uy),o=this.props,i=o.viewBox,a=qy(o,zy);return!vn(r,i)||!vn(n,a)||!vn(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,o,i,a,u=this.props,c=u.x,s=u.y,l=u.width,f=u.height,p=u.orientation,h=u.tickSize,d=u.mirror,y=u.tickMargin,v=d?-1:1,m=t.tickSize||h,g=cn(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(o=s+ +!d*f)-v*m)-v*y,i=g;break;case"left":n=o=t.coordinate,i=(e=(r=c+ +!d*l)-v*m)-v*y,a=g;break;case"right":n=o=t.coordinate,i=(e=(r=c+ +d*l)+v*m)+v*y,a=g;break;default:e=r=t.coordinate,a=(n=(o=s+ +d*f)+v*m)+v*y,i=g}return{line:{x1:e,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.orientation,a=t.mirror,u=t.axisLine,c=Wy(Wy(Wy({},Tn(this.props)),Tn(u)),{},{fill:"none"});if("top"===i||"bottom"===i){var s=+("top"===i&&!a||"bottom"===i&&a);c=Wy(Wy({},c),{},{x1:e,y1:r+s*o,x2:e+n,y2:r+s*o})}else{var l=+("left"===i&&!a||"right"===i&&a);c=Wy(Wy({},c),{},{x1:e+l*n,y1:r,x2:e+l*n,y2:r+o})}return it().createElement("line",Vy({},c,{className:ut()("recharts-cartesian-axis-line",Q()(u,"className"))}))}},{key:"renderTicks",value:function(t,e,r){var n=this,o=this.props,a=o.tickLine,u=o.stroke,c=o.tick,s=o.tickFormatter,l=o.unit,f=ty(Wy(Wy({},this.props),{},{ticks:t}),e,r),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),d=Tn(this.props),y=Tn(c),v=Wy(Wy({},d),{},{fill:"none"},Tn(a)),m=f.map((function(t,e){var r=n.getTickLineCoord(t),o=r.line,m=r.tick,g=Wy(Wy(Wy(Wy({textAnchor:p,verticalAnchor:h},d),{},{stroke:"none",fill:u},y),m),{},{index:e,payload:t,visibleTicksCount:f.length,tickFormatter:s});return it().createElement(Jn,Vy({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e)},Qr(n.props,t,e)),a&&it().createElement("line",Vy({},v,o,{className:ut()("recharts-cartesian-axis-tick-line",Q()(a,"className"))})),c&&i.renderTickItem(c,g,"".concat(J()(s)?s(t.value,e):t.value).concat(l||"")))}));return it().createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,o=e.height,i=e.ticksGenerator,a=e.className;if(e.hide)return null;var u=this.props,c=u.ticks,s=qy(u,Fy),l=c;return J()(i)&&(l=c&&c.length>0?i(this.props):i(s)),n<=0||o<=0||!l||!l.length?null:it().createElement(Jn,{className:ut()("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(l,this.state.fontSize,this.state.letterSpacing),Zo.renderCallByParent(this.props))}}],n=[{key:"renderTickItem",value:function(t,e,r){return it().isValidElement(t)?it().cloneElement(t,e):J()(t)?t(e):it().createElement(jo,Vy({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&Gy(e.prototype,r),n&&Gy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.Component);function tv(t){return tv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tv(t)}function ev(t,e){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 rv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ev(Object(r),!0).forEach((function(e){nv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ev(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function nv(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==tv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==tv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===tv(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Jy(Qy,"displayName","CartesianAxis"),Jy(Qy,"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 ov=["Webkit","Moz","O","ms"];function iv(t){return iv="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},iv(t)}function av(){return av=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},av.apply(this,arguments)}function uv(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 cv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?uv(Object(r),!0).forEach((function(e){dv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sv(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,yv(n.key),n)}}function lv(t,e){return lv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},lv(t,e)}function fv(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=hv(t);if(e){var o=hv(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===iv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return pv(t)}(this,r)}}function pv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hv(t){return hv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hv(t)}function dv(t,e,r){return(e=yv(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yv(t){var e=function(t,e){if("object"!==iv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==iv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===iv(e)?e:String(e)}var vv=function(t){return t.changedTouches&&!!t.changedTouches.length},mv=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&&lv(t,e)}(i,t);var e,r,n,o=fv(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),dv(pv(e=o.call(this,t)),"handleDrag",(function(t){e.leaveTimer&&(clearTimeout(e.leaveTimer),e.leaveTimer=null),e.state.isTravellerMoving?e.handleTravellerMove(t):e.state.isSlideMoving&&e.handleSlideDrag(t)})),dv(pv(e),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])})),dv(pv(e),"handleDragEnd",(function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1}),e.detachDragEndListener()})),dv(pv(e),"handleLeaveWrapper",(function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))})),dv(pv(e),"handleEnterSlideOrTraveller",(function(){e.setState({isTextActive:!0})})),dv(pv(e),"handleLeaveSlideOrTraveller",(function(){e.setState({isTextActive:!1})})),dv(pv(e),"handleSlideDragStart",(function(t){var r=vv(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),e.attachDragEndListener()})),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(pv(e),"startX"),endX:e.handleTravellerDragStart.bind(pv(e),"endX")},e.state={},e}return e=i,r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,r=t.endX,n=this.state.scaleValues,o=this.props,a=o.gap,u=o.data.length-1,c=Math.min(e,r),s=Math.max(e,r),l=i.getIndexInRange(n,c),f=i.getIndexInRange(n,s);return{startIndex:l-l%a,endIndex:f===u?u:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=$p(r[t],o,t);return J()(n)?n(i,t):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,o=e.endX,i=this.props,a=i.x,u=i.width,c=i.travellerWidth,s=i.startIndex,l=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+u-c-o,a+u-c-n):p<0&&(p=Math.max(p,a-n,a-o));var h=this.getIndex({startX:n+p,endX:o+p});h.startIndex===s&&h.endIndex===l||!f||f(h),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=vv(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e,r=this.state,n=r.brushMoveStartX,o=r.movingTravellerId,i=r.endX,a=r.startX,u=this.state[o],c=this.props,s=c.x,l=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,s+l-f-u):v<0&&(v=Math.max(v,s-u)),y[o]=u+v;var m=this.getIndex(y),g=m.startIndex,b=m.endIndex;this.setState((dv(e={},o,u+v),dv(e,"brushMoveStartX",t.pageX),e),(function(){var t;p&&(t=d.length-1,("startX"===o&&(i>a?g%h==0:b%h==0)||i<a&&b===t||"endX"===o&&(i>a?b%h==0:g%h==0)||i>a&&b===t)&&p(m))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,u=this.state[e],c=o.indexOf(u);if(-1!==c){var s=c+t;if(!(-1===s||s>=o.length)){var l=o[s];"startX"===e&&l>=a||"endX"===e&&l<=i||this.setState(dv({},e,l),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.fill,a=t.stroke;return it().createElement("rect",{stroke:a,fill:i,x:e,y:r,width:n,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.data,a=t.children,u=t.padding,c=ot.Children.only(a);return c?it().cloneElement(c,{x:e,y:r,width:n,height:o,margin:u,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(t,e){var r=this,n=this.props,o=n.y,a=n.travellerWidth,u=n.height,c=n.traveller,s=Math.max(t,this.props.x),l=cv(cv({},Tn(this.props)),{},{x:s,y:o,width:a,height:u});return it().createElement(Jn,{tabIndex:0,role:"slider",className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),r.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){r.setState({isTravellerFocused:!0})},onBlur:function(){r.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},i.renderTraveller(c,l))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,o=r.height,i=r.stroke,a=r.travellerWidth,u=Math.min(t,e)+a,c=Math.max(Math.abs(e-t)-a,0);return it().createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:u,y:n,width:c,height:o})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,o=t.height,i=t.travellerWidth,a=t.stroke,u=this.state,c=u.startX,s=u.endX,l={pointerEvents:"none",fill:a};return it().createElement(Jn,{className:"recharts-brush-texts"},it().createElement(jo,av({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,s)-5,y:n+o/2},l),this.getTextOfTick(e)),it().createElement(jo,av({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,s)+i+5,y:n+o/2},l),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,o=t.x,i=t.y,a=t.width,u=t.height,c=t.alwaysShowText,s=this.state,l=s.startX,f=s.endX,p=s.isTextActive,h=s.isSlideMoving,d=s.isTravellerMoving,y=s.isTravellerFocused;if(!e||!e.length||!cn(o)||!cn(i)||!cn(a)||!cn(u)||a<=0||u<=0)return null;var v=ut()("recharts-brush",r),m=1===it().Children.count(n),g=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),n=ov.reduce((function(t,n){return rv(rv({},t),{},nv({},n+r,e))}),{});return n[t]=e,n}("userSelect","none");return it().createElement(Jn,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(l,f),this.renderTravellerLayer(l,"startX"),this.renderTravellerLayer(f,"endX"),(p||h||d||y||c)&&this.renderText())}}],n=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,o=t.height,i=t.stroke,a=Math.floor(r+o/2)-1;return it().createElement(it().Fragment,null,it().createElement("rect",{x:e,y:r,width:n,height:o,fill:i,stroke:"none"}),it().createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),it().createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return it().isValidElement(t)?it().cloneElement(t,e):J()(t)?t(e):i.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,u=t.startIndex,c=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return cv({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,o=t.x,i=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var u=e.length,c=mi().domain(ad()(0,u)).range([o,o+i-a]),s=c.domain().map((function(t){return c(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(r),endX:c(n),scale:c,scaleValues:s}}({data:r,width:n,x:o,travellerWidth:i,startIndex:u,endIndex:c}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+n-i]);var s=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:s}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var o=Math.floor((r+n)/2);t[o]>e?n=o:r=o}return e>=t[n]?n:r}}],r&&sv(e.prototype,r),n&&sv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.PureComponent);dv(mv,"displayName","Brush"),dv(mv,"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 gv=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e};function bv(t){return bv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bv(t)}function xv(){return xv=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},xv.apply(this,arguments)}function wv(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 Ov(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wv(Object(r),!0).forEach((function(e){_v(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _v(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==bv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==bv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===bv(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sv(t){var e=t.x,r=t.y,n=t.r,o=t.alwaysShow,i=t.clipPathId,a=sn(e),u=sn(r);if(Xh(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!a||!u)return null;var c=function(t){var e=t.x,r=t.y,n=t.xAxis,o=t.yAxis,i=qd({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return gv(t,"discard")&&!i.isInRange(a)?null:a}(t);if(!c)return null;var s=c.x,l=c.y,f=t.shape,p=t.className,h=Ov(Ov({clipPath:gv(t,"hidden")?"url(#".concat(i,")"):void 0},Tn(t,!0)),{},{cx:s,cy:l});return it().createElement(Jn,{className:ut()("recharts-reference-dot",p)},Sv.renderDot(f,h),Zo.renderCallByParent(t,{x:s-n,y:l-n,width:2*n,height:2*n}))}Sv.displayName="ReferenceDot",Sv.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},Sv.renderDot=function(t,e){return it().isValidElement(t)?it().cloneElement(t,e):J()(t)?t(e):it().createElement(Gn,xv({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};var Ev=r(9704),kv=r.n(Ev);function jv(t){return jv="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},jv(t)}function Av(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Pv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Av(Object(r),!0).forEach((function(e){Mv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Av(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Mv(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==jv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==jv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===jv(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Tv(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Cv(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 Cv(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 Cv(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 Dv(){return Dv=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},Dv.apply(this,arguments)}function Nv(t){var e=t.x,r=t.y,n=t.segment,o=t.xAxis,i=t.yAxis,a=t.shape,u=t.className,c=t.alwaysShow,s=t.clipPathId;Xh(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=function(t,e,r,n,o){var i=o.viewBox,a=i.x,u=i.y,c=i.width,s=i.height,l=o.position;if(r){var f=o.y,p=o.yAxis.orientation,h=t.y.apply(f,{position:l});if(gv(o,"discard")&&!t.y.isInRange(h))return null;var d=[{x:a+c,y:h},{x:a,y:h}];return"left"===p?d.reverse():d}if(e){var y=o.x,v=o.xAxis.orientation,m=t.x.apply(y,{position:l});if(gv(o,"discard")&&!t.x.isInRange(m))return null;var g=[{x:m,y:u+s},{x:m,y:u}];return"top"===v?g.reverse():g}if(n){var b=o.segment.map((function(e){return t.apply(e,{position:l})}));return gv(o,"discard")&&kv()(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(qd({x:o.scale,y:i.scale}),sn(e),sn(r),n&&2===n.length,t);if(!l)return null;var f=Tv(l,2),p=f[0],h=p.x,d=p.y,y=f[1],v=y.x,m=y.y,g=Pv(Pv({clipPath:gv(t,"hidden")?"url(#".concat(s,")"):void 0},Tn(t,!0)),{},{x1:h,y1:d,x2:v,y2:m});return it().createElement(Jn,{className:ut()("recharts-reference-line",u)},function(t,e){return it().isValidElement(t)?it().cloneElement(t,e):J()(t)?t(e):it().createElement("line",Dv({},e,{className:"recharts-reference-line-line"}))}(a,g),Zo.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,o=t.y2;return Hd({x:e,y:r},{x:n,y:o})}({x1:h,y1:d,x2:v,y2:m})))}function Iv(t){return Iv="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},Iv(t)}function Rv(){return Rv=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},Rv.apply(this,arguments)}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=function(t){var e=function(t,e){if("object"!==Iv(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Iv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Iv(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Nv.displayName="ReferenceLine",Nv.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function zv(t){var e=t.x1,r=t.x2,n=t.y1,o=t.y2,i=t.className,a=t.alwaysShow,u=t.clipPathId;Xh(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=sn(e),s=sn(r),l=sn(n),f=sn(o),p=t.shape;if(!(c||s||l||f||p))return null;var h=function(t,e,r,n,o){var i=o.x1,a=o.x2,u=o.y1,c=o.y2,s=o.xAxis,l=o.yAxis;if(!s||!l)return null;var f=qd({x:s.scale,y:l.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(u,{position:"start"}):f.y.rangeMin},h={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!gv(o,"discard")||f.isInRange(p)&&f.isInRange(h)?Hd(p,h):null}(c,s,l,f,t);if(!h&&!p)return null;var d=gv(t,"hidden")?"url(#".concat(u,")"):void 0;return it().createElement(Jn,{className:ut()("recharts-reference-area",i)},zv.renderRect(p,Bv(Bv({clipPath:d},Tn(t,!0)),h)),Zo.renderCallByParent(t,h))}function Fv(t){return function(t){if(Array.isArray(t))return $v(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 $v(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 $v(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 $v(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}zv.displayName="ReferenceArea",zv.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},zv.renderRect=function(t,e){return it().isValidElement(t)?it().cloneElement(t,e):J()(t)?t(e):it().createElement(Od,Rv({},e,{className:"recharts-reference-area-rect"}))};var Vv=function(t,e,r,n,o){var i=kn(t,Nv),a=kn(t,Sv),u=[].concat(Fv(i),Fv(a)),c=kn(t,zv),s="".concat(n,"Id"),l=n[0],f=e;if(u.length&&(f=u.reduce((function(t,e){if(e.props[s]===r&&gv(e.props,"extendDomain")&&cn(e.props[l])){var n=e.props[l];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),c.length){var p="".concat(l,"1"),h="".concat(l,"2");f=c.reduce((function(t,e){if(e.props[s]===r&&gv(e.props,"extendDomain")&&cn(e.props[p])&&cn(e.props[h])){var n=e.props[p],o=e.props[h];return[Math.min(t[0],n,o),Math.max(t[1],n,o)]}return t}),f)}return o&&o.length&&(f=o.reduce((function(t,e){return cn(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},Hv=r(6729),Wv=new(r.n(Hv)());Wv.setMaxListeners&&Wv.setMaxListeners(10);var qv="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 Kv(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,Xv(n.key),n)}}function Yv(t,e,r){return(e=Xv(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xv(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 Jv=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Yv(this,"activeIndex",0),Yv(this,"coordinateList",[]),Yv(this,"layout","horizontal")}var e,r,n;return e=t,(r=[{key:"setDetails",value:function(t){var e=t.coordinateList,r=void 0===e?[]:e,n=t.container,o=void 0===n?null:n,i=t.layout,a=void 0===i?null:i,u=t.offset,c=void 0===u?null:u,s=t.mouseHandlerCallback,l=void 0===s?null:s;this.coordinateList=null!=r?r:this.coordinateList,this.container=null!=o?o:this.container,this.layout=null!=a?a:this.layout,this.offset=null!=c?c:this.offset,this.mouseHandlerCallback=null!=l?l:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"spoofMouse",value:function(){if("horizontal"===this.layout&&0!==this.coordinateList.length){var t=this.container.getBoundingClientRect(),e=t.x,r=t.y,n=t.height,o=e+this.coordinateList[this.activeIndex].coordinate,i=r+this.offset.top+n/2;this.mouseHandlerCallback({pageX:o,pageY:i})}}}])&&Kv(e.prototype,r),n&&Kv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Zv=["item"],Qv=["children","className","width","height","style","compact","title","desc"];function tm(t){return tm="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},tm(t)}function em(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||lm(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 rm(){return rm=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},rm.apply(this,arguments)}function nm(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function om(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ym(n.key),n)}}function im(t,e){return im=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},im(t,e)}function am(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 o=cm(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===tm(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return um(t)}(this,r)}}function um(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function cm(t){return cm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cm(t)}function sm(t){return function(t){if(Array.isArray(t))return fm(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||lm(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 lm(t,e){if(t){if("string"==typeof t)return fm(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)?fm(t,e):void 0}}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}function pm(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 hm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pm(Object(r),!0).forEach((function(e){dm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return 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"!==tm(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==tm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===tm(e)?e:String(e)}var vm={xAxis:["bottom","top"],yAxis:["left","right"]},mm={x:0,y:0},gm=Number.isFinite?Number.isFinite:isFinite,bm="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,xm="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,wm=function(t,e,r){var n=e.graphicalItems,o=e.dataStartIndex,i=e.dataEndIndex,a=(n||[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(sm(t),sm(r)):t}),[]);return a&&a.length>0?a:r&&r.props&&r.props.data&&r.props.data.length>0?r.props.data:t&&t.length&&cn(o)&&cn(i)?t.slice(o,i+1):[]};function Om(t){return"number"===t?[0,"auto"]:void 0}var _m=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=wm(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce((function(t,e){if(e.props.hide)return t;var o,u=e.props.data;i.dataKey&&!i.allowDuplicatedCategory?o=yn(void 0===u?a:u,i.dataKey,n):o=u&&u[r]||a[r];return o?[].concat(sm(t),[sh(e,o)]):t}),[])},Sm=function(t,e,r,n){var o=n||{x:t.chartX,y:t.chartY},i=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(o,r),a=t.orderedTooltipTicks,u=t.tooltipAxis,c=t.tooltipTicks,s=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var u=o.range,c=0;c<a;c++){var s=c>0?n[c-1].coordinate:n[a-1].coordinate,l=n[c].coordinate,f=c>=a-1?n[0].coordinate:n[c+1].coordinate,p=void 0;if(an(l-s)!==an(f-l)){var h=[];if(an(f-l)===an(u[1]-u[0])){p=f;var d=l+u[1]-u[0];h[0]=Math.min(d,(d+s)/2),h[1]=Math.max(d,(d+s)/2)}else{p=s;var y=f+u[1]-u[0];h[0]=Math.min(l,(y+l)/2),h[1]=Math.max(l,(y+l)/2)}var v=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){i=n[c].index;break}}else{var m=Math.min(s,f),g=Math.max(s,f);if(t>(m+l)/2&&t<=(g+l)/2){i=n[c].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){i=r[b].index;break}return i}(i,a,c,u);if(s>=0&&c){var l=c[s]&&c[s].value,f=_m(t,e,s,l),p=function(t,e,r,n){var o=e.find((function(t){return t&&t.index===r}));if(o){if("horizontal"===t)return{x:o.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:o.coordinate};if("centric"===t){var i=o.coordinate,a=n.radius;return hm(hm(hm({},n),No(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var u=o.coordinate,c=n.angle;return hm(hm(hm({},n),No(n.cx,n.cy,u,c)),{},{angle:c,radius:u})}return mm}(r,a,s,o);return{activeTooltipIndex:s,activeLabel:l,activePayload:f,activeCoordinate:p}}return null},Em=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,s=t.layout,l=t.children,f=t.stackOffset,p=Kp(s,o),h=r.reduce((function(e,r){var h,d=r.props,y=d.type,v=d.dataKey,m=d.allowDataOverflow,g=d.allowDuplicatedCategory,b=d.scale,x=d.ticks,w=d.includeHidden,O=r.props[i];if(e[O])return e;var _,S,E,k=wm(t.data,{graphicalItems:n.filter((function(t){return t.props[i]===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],o=null==t?void 0:t[1];if(n&&o&&cn(n)&&cn(o))return!0}return!1})(r.props.domain,m,y)&&(_=ah(r.props.domain,null,m),!p||"number"!==y&&"auto"===b||(E=Vp(k,v,"category")));var A=Om(y);if(!_||0===_.length){var P,M=null!==(P=r.props.domain)&&void 0!==P?P:A;if(v){if(_=Vp(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=_,_=ad()(0,j)):g||(_=ch(M,_,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(sm(t),[e])}),[]))}else if("category"===y)_=g?_.filter((function(t){return""!==t&&!et()(t)})):ch(M,_,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||et()(e)?t:[].concat(sm(t),[e])}),[]);else if("number"===y){var C=function(t,e,r,n,o){var i=e.map((function(e){return qp(t,e,r,o,n)})).filter((function(t){return!et()(t)}));return i&&i.length?i.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(k,n.filter((function(t){return t.props[i]===O&&(w||!t.props.hide)})),v,o,s);C&&(_=C)}!p||"number"!==y&&"auto"===b||(E=Vp(k,v,"category"))}else _=p?ad()(0,j):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:nh(a[O].stackGroups,u,c):Gp(k,n.filter((function(t){return t.props[i]===O&&(w||!t.props.hide)})),y,s,!0);if("number"===y)_=Vv(l,_,O,o,x),M&&(_=ah(M,_,m));else if("category"===y&&M){var D=M;_.every((function(t){return D.indexOf(t)>=0}))&&(_=D)}}return hm(hm({},e),{},dm({},O,hm(hm({},r.props),{},{axisType:o,domain:_,categoricalDomain:E,duplicateDomain:S,originalDomain:null!==(h=r.props.domain)&&void 0!==h?h:A,isCategorical:p,layout:s})))}),{});return h},km=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,s=t.children,l="".concat(n,"Id"),f=kn(s,o),p={};return f&&f.length?p=Em(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:l,stackGroups:a,dataStartIndex:u,dataEndIndex:c}):i&&i.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,c=e.dataEndIndex,s=t.layout,l=t.children,f=wm(t.data,{graphicalItems:r,dataStartIndex:u,dataEndIndex:c}),p=f.length,h=Kp(s,o),d=-1;return r.reduce((function(t,e){var y,v=e.props[i],m=Om("number");return t[v]?t:(d++,h?y=ad()(0,p):a&&a[v]&&a[v].hasStack?(y=nh(a[v].stackGroups,u,c),y=Vv(l,y,v,o)):(y=ah(m,Gp(f,r.filter((function(t){return t.props[i]===v&&!t.props.hide})),"number",s),n.defaultProps.allowDataOverflow),y=Vv(l,y,v,o)),hm(hm({},t),{},dm({},v,hm(hm({axisType:o},n.defaultProps),{},{hide:!0,orientation:Q()(vm,"".concat(o,".").concat(d%2),null),domain:y,originalDomain:m,isCategorical:h,layout:s}))))}),{})}(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:l,stackGroups:a,dataStartIndex:u,dataEndIndex:c})),p},jm=function(t){var e,r,n=t.children,o=t.defaultShowTooltip,i=jn(n,mv);return{chartX:0,chartY:0,dataStartIndex:i&&i.props&&i.props.startIndex||0,dataEndIndex:void 0!==(null==i||null===(e=i.props)||void 0===e?void 0:e.endIndex)?null==i||null===(r=i.props)||void 0===r?void 0:r.endIndex:t.data&&t.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!et()(o)&&o}},Am=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"}},Pm=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),o=void 0===n?{}:n,i=t.yAxisMap,a=void 0===i?{}:i,u=r.width,c=r.height,s=r.children,l=r.margin||{},f=jn(s,mv),p=jn(s,Ip),h=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:hm(hm({},t),{},dm({},n,t[n]+r.width))}),{left:l.left||0,right:l.right||0}),d=Object.keys(o).reduce((function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:hm(hm({},t),{},dm({},n,Q()(t,"".concat(n))+r.height))}),{top:l.top||0,bottom:l.bottom||0}),y=hm(hm({},d),h),v=y.bottom;return f&&(y.bottom+=f.props.height||mv.defaultProps.height),p&&e&&(y=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,u=i-(a.left||0)-(a.right||0),c=Wp({children:o,legendWidth:u}),s=t;if(c){var l=n||{},f=c.align,p=c.verticalAlign,h=c.layout;("vertical"===h||"horizontal"===h&&"middle"===p)&&cn(t[f])&&(s=zp(zp({},t),{},Fp({},f,s[f]+(l.width||0)))),("horizontal"===h||"vertical"===h&&"center"===f)&&cn(t[p])&&(s=zp(zp({},t),{},Fp({},p,s[p]+(l.height||0))))}return s}(y,0,r,e)),hm(hm({brushBottom:v},y),{},{width:u-y.left-y.right,height:c-y.top-y.bottom})},Mm=function(){return null};Mm.displayName="XAxis",Mm.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 Tm=function(){return null};Tm.displayName="YAxis",Tm.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 Cm=function(t){var e,r=t.chartName,n=t.GraphicalChild,o=t.defaultTooltipEventType,i=void 0===o?"axis":o,a=t.validateTooltipEventTypes,u=void 0===a?["axis"]:a,c=t.axisComponents,s=t.legendContent,l=t.formatAxisMap,f=t.defaultProps,p=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,u=e.dataEndIndex,s=t.barSize,l=t.layout,f=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,d=Am(l),y=d.numericAxisName,v=d.cateAxisName,m=function(t){return!(!t||!t.length)&&t.some((function(t){var e=On(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),g=m&&function(t){var e=t.barSize,r=t.stackGroups,n=void 0===r?{}:r;if(!n)return{};for(var o={},i=Object.keys(n),a=0,u=i.length;a<u;a++)for(var c=n[i[a]].stackGroups,s=Object.keys(c),l=0,f=s.length;l<f;l++){var p=c[s[l]],h=p.items,d=p.cateAxisId,y=h.filter((function(t){return On(t.type).indexOf("Bar")>=0}));if(y&&y.length){var v=y[0].props.barSize,m=y[0].props[d];o[m]||(o[m]=[]),o[m].push({item:y[0],stackList:y.slice(1),barSize:et()(v)?e:v})}}return o}({barSize:s,stackGroups:n}),b=[];return r.forEach((function(r,s){var d=wm(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 o,i=e["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],u=i&&i[a];return hm(hm({},t),{},(dm(o={},n.axisType,u),dm(o,"".concat(n.axisType,"Ticks"),Xp(u)),o))}),{}),E=S[v],k=S["".concat(v,"Ticks")],j=n&&n[O]&&n[O].hasStack&&function(t,e){var r=t.props.stackId;if(sn(r)){var n=e[r];if(n&&n.items.length){for(var o=-1,i=0,a=n.items.length;i<a;i++)if(n.items[i]===t){o=i;break}return o>=0?n.stackedData[o]:null}}return null}(r,n[O].stackGroups),A=On(r.type).indexOf("Bar")>=0,P=uh(E,k),M=[];if(A){var T,C,D=et()(w)?h:w,N=null!==(T=null!==(C=uh(E,k,!0))&&void 0!==C?C:D)&&void 0!==T?T:0;M=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,o=t.sizeList,i=void 0===o?[]:o,a=t.maxBarSize,u=i.length;if(u<1)return null;var c,s=pn(e,n,0,!0);if(i[0].barSize===+i[0].barSize){var l=!1,f=n/u,p=i.reduce((function(t,e){return t+e.barSize||0}),0);(p+=(u-1)*s)>=n&&(p-=(u-1)*s,s=0),p>=n&&f>0&&(l=!0,p=u*(f*=.9));var h={offset:((n-p)/2>>0)-s,size:0};c=i.reduce((function(t,e){var r=[].concat(Lp(t),[{item:e.item,position:{offset:h.offset+h.size+s,size:l?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)*s<=0&&(s=0);var y=(n-2*d-(u-1)*s)/u;y>1&&(y>>=0);var v=a===+a?Math.min(y,a):y;c=i.reduce((function(t,e,r){var n=[].concat(Lp(t),[{item:e.item,position:{offset:d+(y+s)*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 hm(hm({},t),{},{position:hm(hm({},t.position),{},{offset:t.position.offset-N/2})})})))}var I,R,L,B=r&&r.type&&r.type.getComposedData;B&&b.push({props:hm(hm({},B(hm(hm({},S),{},{displayedData:d,props:t,dataKey:x,item:r,bandSize:P,barPosition:M,offset:o,stackedData:j,layout:l,dataStartIndex:a,dataEndIndex:u}))),{},(I={key:r.key||"item-".concat(s)},dm(I,y,S[y]),dm(I,v,S[v]),dm(I,"animationId",i),I)),childIndex:(R=r,L=t.children,En(L).indexOf(R)),item:r})})),b},h=function(t,e){var o=t.props,i=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!An({props:o}))return null;var s=o.children,f=o.layout,h=o.stackOffset,d=o.data,y=o.reverseStackOrder,v=Am(f),m=v.numericAxisName,g=v.cateAxisName,b=kn(s,n),x=function(t,e,r,n,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce((function(t,e){var o=e.props,i=o.stackId;if(o.hide)return t;var a=e.props[r],u=t[a]||{hasStack:!1,stackGroups:{}};if(sn(i)){var c=u.stackGroups[i]||{numericAxisId:r,cateAxisId:n,items:[]};c.items.push(e),u.hasStack=!0,u.stackGroups[i]=c}else u.stackGroups[fn("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return zp(zp({},t),{},Fp({},a,u))}),{});return Object.keys(a).reduce((function(e,i){var u=a[i];return u.hasStack&&(u.stackGroups=Object.keys(u.stackGroups).reduce((function(e,i){var a=u.stackGroups[i];return zp(zp({},e),{},Fp({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:th(t,a.items,o)}))}),{})),zp(zp({},e),{},Fp({},i,u))}),{})}(d,b,"".concat(m,"Id"),"".concat(g,"Id"),h,y),w=c.reduce((function(t,e){var r="".concat(e.axisType,"Map");return hm(hm({},t),{},dm({},r,km(o,hm(hm({},e),{},{graphicalItems:b,stackGroups:e.axisType===m&&x,dataStartIndex:i,dataEndIndex:a}))))}),{}),O=Pm(hm(hm({},w),{},{props:o,graphicalItems:b}),null==e?void 0:e.legendBBox);Object.keys(w).forEach((function(t){w[t]=l(o,w[t],O,t.replace("Map",""),r)}));var _,S,E=w["".concat(g,"Map")],k=(_=hn(E),{tooltipTicks:S=Xp(_,!1,!0),orderedTooltipTicks:ei()(S,(function(t){return t.coordinate})),tooltipAxis:_,tooltipAxisBandSize:uh(_,S)}),j=p(o,hm(hm({},w),{},{dataStartIndex:i,dataEndIndex:a,updateId:u,graphicalItems:b,stackGroups:x,offset:O}));return hm(hm({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&&im(t,e)}(c,t);var e,n,o,a=am(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),dm(um(e=a.call(this,t)),"accessibilityManager",new Jv),dm(um(e),"clearDeferId",(function(){!et()(e.deferId)&&xm&&xm(e.deferId),e.deferId=null})),dm(um(e),"handleLegendBBoxUpdate",(function(t){if(t){var r=e.state,n=r.dataStartIndex,o=r.dataEndIndex,i=r.updateId;e.setState(hm({legendBBox:t},h({props:e.props,dataStartIndex:n,dataEndIndex:o,updateId:i},hm(hm({},e.state),{},{legendBBox:t}))))}})),dm(um(e),"handleReceiveSyncEvent",(function(t,r,n){e.props.syncId===t&&r!==e.uniqueChartId&&(e.clearDeferId(),e.deferId=bm&&bm(e.applySyncEvent.bind(um(e),n)))})),dm(um(e),"handleBrushChange",(function(t){var r=t.startIndex,n=t.endIndex;if(r!==e.state.dataStartIndex||n!==e.state.dataEndIndex){var o=e.state.updateId;e.setState((function(){return hm({dataStartIndex:r,dataEndIndex:n},h({props:e.props,dataStartIndex:r,dataEndIndex:n,updateId:o},e.state))})),e.triggerSyncEvent({dataStartIndex:r,dataEndIndex:n})}})),dm(um(e),"handleMouseEnter",(function(t){var r=e.props.onMouseEnter,n=e.getMouseInfo(t);if(n){var o=hm(hm({},n),{},{isTooltipActive:!0});e.setState(o),e.triggerSyncEvent(o),J()(r)&&r(o,t)}})),dm(um(e),"triggeredAfterMouseMove",(function(t){var r=e.props.onMouseMove,n=e.getMouseInfo(t),o=n?hm(hm({},n),{},{isTooltipActive:!0}):{isTooltipActive:!1};e.setState(o),e.triggerSyncEvent(o),J()(r)&&r(o,t)})),dm(um(e),"handleItemMouseEnter",(function(t){e.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),dm(um(e),"handleItemMouseLeave",(function(){e.setState((function(){return{isTooltipActive:!1}}))})),dm(um(e),"handleMouseMove",(function(t){t&&J()(t.persist)&&t.persist(),e.triggeredAfterMouseMove(t)})),dm(um(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()})),dm(um(e),"handleOuterEvent",(function(t){var r=function(t){var e=t&&t.type;return e&&wn[e]?wn[e]:null}(t),n=Q()(e.props,"".concat(r));r&&J()(n)&&n(/.*touch.*/i.test(r)?e.getMouseInfo(t.changedTouches[0]):e.getMouseInfo(t),t)})),dm(um(e),"handleClick",(function(t){var r=e.props.onClick,n=e.getMouseInfo(t);if(n){var o=hm(hm({},n),{},{isTooltipActive:!0});e.setState(o),e.triggerSyncEvent(o),J()(r)&&r(o,t)}})),dm(um(e),"handleMouseDown",(function(t){var r=e.props.onMouseDown;J()(r)&&r(e.getMouseInfo(t),t)})),dm(um(e),"handleMouseUp",(function(t){var r=e.props.onMouseUp;J()(r)&&r(e.getMouseInfo(t),t)})),dm(um(e),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleMouseMove(t.changedTouches[0])})),dm(um(e),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleMouseDown(t.changedTouches[0])})),dm(um(e),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleMouseUp(t.changedTouches[0])})),dm(um(e),"verticalCoordinatesGenerator",(function(t){var e=t.xAxis,r=t.width,n=t.height,o=t.offset;return Yp(ty(hm(hm(hm({},Qy.defaultProps),e),{},{ticks:Xp(e,!0),viewBox:{x:0,y:0,width:r,height:n}})),o.left,o.left+o.width)})),dm(um(e),"horizontalCoordinatesGenerator",(function(t){var e=t.yAxis,r=t.width,n=t.height,o=t.offset;return Yp(ty(hm(hm(hm({},Qy.defaultProps),e),{},{ticks:Xp(e,!0),viewBox:{x:0,y:0,width:r,height:n}})),o.top,o.top+o.height)})),dm(um(e),"axesTicksGenerator",(function(t){return Xp(t,!0)})),dm(um(e),"renderCursor",(function(t){var n=e.state,o=n.isTooltipActive,i=n.activeCoordinate,a=n.activePayload,u=n.offset,c=n.activeTooltipIndex,s=e.getTooltipEventType();if(!t||!t.props.cursor||!o||!i||"ScatterChart"!==r&&"axis"!==s)return null;var l,f=e.props.layout,p=Wn;if("ScatterChart"===r)l=i,p=Py;else if("BarChart"===r)l=e.getCursorRectangle(),p=Od;else if("radial"===f){var h=e.getCursorPoints(),d=h.cx,y=h.cy,v=h.radius;l={cx:d,cy:y,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:v,outerRadius:v},p=By}else l={points:e.getCursorPoints()},p=Wn;var m=t.key||"_recharts-cursor",g=hm(hm(hm(hm({stroke:"#ccc",pointerEvents:"none"},u),l),Tn(t.props.cursor)),{},{payload:a,payloadIndex:c,key:m,className:"recharts-tooltip-cursor"});return(0,ot.isValidElement)(t.props.cursor)?(0,ot.cloneElement)(t.props.cursor,g):(0,ot.createElement)(p,g)})),dm(um(e),"renderPolarAxis",(function(t,r,n){var o=Q()(t,"type.axisType"),i=Q()(e.state,"".concat(o,"Map")),a=i&&i[t.props["".concat(o,"Id")]];return(0,ot.cloneElement)(t,hm(hm({},a),{},{className:o,key:t.key||"".concat(r,"-").concat(n),ticks:Xp(a,!0)}))})),dm(um(e),"renderXAxis",(function(t,r,n){var o=e.state.xAxisMap[t.props.xAxisId];return e.renderAxis(o,t,r,n)})),dm(um(e),"renderYAxis",(function(t,r,n){var o=e.state.yAxisMap[t.props.yAxisId];return e.renderAxis(o,t,r,n)})),dm(um(e),"renderGrid",(function(t){var r=e.state,n=r.xAxisMap,o=r.yAxisMap,i=r.offset,a=e.props,u=a.width,c=a.height,s=hn(n),l=od()(o,(function(t){return rd()(t.domain,gm)}))||hn(o),f=t.props||{};return(0,ot.cloneElement)(t,{key:t.key||"grid",x:cn(f.x)?f.x:i.left,y:cn(f.y)?f.y:i.top,width:cn(f.width)?f.width:i.width,height:cn(f.height)?f.height:i.height,xAxis:s,yAxis:l,offset:i,chartWidth:u,chartHeight:c,verticalCoordinatesGenerator:f.verticalCoordinatesGenerator||e.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:f.horizontalCoordinatesGenerator||e.horizontalCoordinatesGenerator})})),dm(um(e),"renderPolarGrid",(function(t){var r=t.props,n=r.radialLines,o=r.polarAngles,i=r.polarRadius,a=e.state,u=a.radiusAxisMap,c=a.angleAxisMap,s=hn(u),l=hn(c),f=l.cx,p=l.cy,h=l.innerRadius,d=l.outerRadius;return(0,ot.cloneElement)(t,{polarAngles:nt()(o)?o:Xp(l,!0).map((function(t){return t.coordinate})),polarRadius:nt()(i)?i:Xp(s,!0).map((function(t){return t.coordinate})),cx:f,cy:p,innerRadius:h,outerRadius:d,key:t.key||"polar-grid",radialLines:n})})),dm(um(e),"renderLegend",(function(){var t=e.state.formattedGraphicalItems,r=e.props,n=r.children,o=r.width,i=r.height,a=e.props.margin||{},u=o-(a.left||0)-(a.right||0),c=Wp({children:n,formattedGraphicalItems:t,legendWidth:u,legendContent:s});if(!c)return null;var l=c.item,f=nm(c,Zv);return(0,ot.cloneElement)(l,hm(hm({},f),{},{chartWidth:o,chartHeight:i,margin:a,ref:function(t){e.legendInstance=t},onBBoxUpdate:e.handleLegendBBoxUpdate}))})),dm(um(e),"renderTooltip",(function(){var t=jn(e.props.children,wy);if(!t)return null;var r=e.state,n=r.isTooltipActive,o=r.activeCoordinate,i=r.activePayload,a=r.activeLabel,u=r.offset;return(0,ot.cloneElement)(t,{viewBox:hm(hm({},u),{},{x:u.left,y:u.top}),active:n,label:a,payload:n?i:[],coordinate:o})})),dm(um(e),"renderBrush",(function(t){var r=e.props,n=r.margin,o=r.data,i=e.state,a=i.offset,u=i.dataStartIndex,c=i.dataEndIndex,s=i.updateId;return(0,ot.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:Jp(e.handleBrushChange,null,t.props.onChange),data:o,x:cn(t.props.x)?t.props.x:a.left,y:cn(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(n.bottom||0),width:cn(t.props.width)?t.props.width:a.width,startIndex:u,endIndex:c,updateId:"brush-".concat(s)})})),dm(um(e),"renderReferenceElement",(function(t,r,n){if(!t)return null;var o=um(e).clipPathId,i=e.state,a=i.xAxisMap,u=i.yAxisMap,c=i.offset,s=t.props,l=s.xAxisId,f=s.yAxisId;return(0,ot.cloneElement)(t,{key:t.key||"".concat(r,"-").concat(n),xAxis:a[l],yAxis:u[f],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:o})})),dm(um(e),"renderActivePoints",(function(t){var e=t.item,r=t.activePoint,n=t.basePoint,o=t.childIndex,i=t.isRange,a=[],u=e.props.key,s=e.item.props,l=s.activeDot,f=hm(hm({index:o,dataKey:s.dataKey,cx:r.x,cy:r.y,r:4,fill:Hp(e.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(u,"-activePoint-").concat(o)},Tn(l)),Zr(l));return a.push(c.renderActiveDot(l,f)),n?a.push(c.renderActiveDot(l,hm(hm({},f),{},{cx:n.x,cy:n.y,key:"".concat(u,"-basePoint-").concat(o)}))):i&&a.push(null),a})),dm(um(e),"renderGraphicChild",(function(t,r,n){var o=e.filterFormatItem(t,r,n);if(!o)return null;var i=e.getTooltipEventType(),a=e.state,u=a.isTooltipActive,c=a.tooltipAxis,s=a.activeTooltipIndex,l=a.activeLabel,f=jn(e.props.children,wy),p=o.props,h=p.points,d=p.isRange,y=p.baseLine,v=o.item.props,m=v.activeDot,g=!v.hide&&u&&f&&m&&s>=0,b={};"axis"!==i&&f&&"click"===f.props.trigger?b={onClick:Jp(e.handleItemMouseEnter,null,t.props.onCLick)}:"axis"!==i&&(b={onMouseLeave:Jp(e.handleItemMouseLeave,null,t.props.onMouseLeave),onMouseEnter:Jp(e.handleItemMouseEnter,null,t.props.onMouseEnter)});var x=(0,ot.cloneElement)(t,hm(hm({},o.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,_,l),O=d&&y&&yn(y,_,l)}else w=h[s],O=d&&y&&y[s];if(!et()(w))return[x].concat(sm(e.renderActivePoints({item:o,activePoint:w,basePoint:O,childIndex:s,isRange:d})))}return d?[x,null,null]:[x,null]})),dm(um(e),"renderCustomized",(function(t,r,n){return(0,ot.cloneElement)(t,hm(hm({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=zh()(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=jn(this.props.children,wy);if(t&&cd()(t.props.shared)){var e=t.props.shared?"axis":"item";return u.indexOf(e)>=0?e:i}return i}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r,n,o=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})),i=this.inRange(o.chartX,o.chartY);if(!i)return null;var a=this.state,u=a.xAxisMap,c=a.yAxisMap;if("axis"!==this.getTooltipEventType()&&u&&c){var s=hn(u).scale,l=hn(c).scale,f=s&&s.invert?s.invert(o.chartX):null,p=l&&l.invert?l.invert(o.chartY):null;return hm(hm({},o),{},{xValue:f,yValue:p})}var h=Sm(this.state,this.props.data,this.props.layout,i);return h?hm(hm({},o),h):null}},{key:"getCursorRectangle",value:function(){var t=this.props.layout,e=this.state,r=e.activeCoordinate,n=e.offset,o=e.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?r.x-i:n.left+.5,y:"horizontal"===t?n.top+.5:r.y-i,width:"horizontal"===t?o:n.width-1,height:"horizontal"===t?n.height-1:o}}},{key:"getCursorPoints",value:function(){var t,e,r,n,o=this.props.layout,i=this.state,a=i.activeCoordinate,u=i.offset;if("horizontal"===o)r=t=a.x,e=u.top,n=u.top+u.height;else if("vertical"===o)n=e=a.y,t=u.left,r=u.left+u.width;else if(!et()(a.cx)||!et()(a.cy)){if("centric"!==o){var c=a.cx,s=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle;return{points:[No(c,s,l,f),No(c,s,l,p)],cx:c,cy:s,radius:l,startAngle:f,endAngle:p}}var h=a.cx,d=a.cy,y=a.innerRadius,v=a.outerRadius,m=a.angle,g=No(h,d,y,m),b=No(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 o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var u=hn(i);return Lo({x:t,y:e},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=jn(t,wy),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}),hm(hm({},Zr(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){Wv.on(qv,this.handleReceiveSyncEvent),Wv.setMaxListeners&&Wv._maxListeners&&Wv.setMaxListeners(Wv._maxListeners+1)}},{key:"removeListener",value:function(){Wv.removeListener(qv,this.handleReceiveSyncEvent),Wv.setMaxListeners&&Wv._maxListeners&&Wv.setMaxListeners(Wv._maxListeners-1)}},{key:"triggerSyncEvent",value:function(t){var e=this.props.syncId;et()(e)||Wv.emit(qv,e,this.uniqueChartId,t)}},{key:"applySyncEvent",value:function(t){var e=this.props,r=e.layout,n=e.syncMethod,o=this.state.updateId,i=t.dataStartIndex,a=t.dataEndIndex;if(et()(t.dataStartIndex)&&et()(t.dataEndIndex))if(et()(t.activeTooltipIndex))this.setState(t);else{var u=t.chartX,c=t.chartY,s=t.activeTooltipIndex,l=this.state,f=l.offset,p=l.tooltipTicks;if(!f)return;if("function"==typeof n)s=n(p,t);else if("value"===n){s=-1;for(var d=0;d<p.length;d++)if(p[d].value===t.activeLabel){s=d;break}}var y=hm(hm({},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[s]&&p[s].value,b=_m(this.state,this.props.data,s),x=p[s]?{x:"horizontal"===r?p[s].coordinate:v,y:"horizontal"===r?m:p[s].coordinate}:mm;this.setState(hm(hm({},t),{},{activeLabel:g,activeCoordinate:x,activePayload:b,activeTooltipIndex:s}))}else this.setState(hm({dataStartIndex:i,dataEndIndex:a},h({props:this.props,dataStartIndex:i,dataEndIndex:a,updateId:o},this.state)))}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o<i;o++){var a=n[o];if(a.item===t||a.props.key===t.key||e===On(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderAxis",value:function(t,e,r,n){var o=this.props,i=o.width,a=o.height;return it().createElement(Qy,rm({},t,{className:ut()("recharts-".concat(t.axisType," ").concat(t.axisType),t.className),key:e.key||"".concat(r,"-").concat(n),viewBox:{x:0,y:0,width:i,height:a},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,o=e.height,i=e.width;return it().createElement("defs",null,it().createElement("clipPath",{id:t},it().createElement("rect",{x:r,y:n,height:o,width:i})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=em(e,2),n=r[0],o=r[1];return hm(hm({},t),{},dm({},n,o.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=em(e,2),n=r[0],o=r[1];return hm(hm({},t),{},dm({},n,o.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 o=e[r],i=o.props,a=o.item,u=On(a.type);if("Bar"===u){var c=(i.data||[]).find((function(e){return xd(t,e)}));if(c)return{graphicalItem:o,payload:c}}else if("RadialBar"===u){var s=(i.data||[]).find((function(e){return Lo(t,e)}));if(s)return{graphicalItem:o,payload:s}}}return null}},{key:"render",value:function(){var t=this;if(!An(this))return null;var e=this.props,r=e.children,n=e.className,o=e.width,i=e.height,a=e.style,u=e.compact,c=e.title,s=e.desc,l=nm(e,Qv),f=Tn(l),p={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(u)return it().createElement(Mf,rm({},f,{width:o,height:i,title:c,desc:s}),this.renderClipPath(),Nn(r,p));this.props.accessibilityLayer&&(f.tabIndex=0,f.role="img",f.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},f.onFocus=function(){t.accessibilityManager.focus()});var h=this.parseEventsOfWrapper();return it().createElement("div",rm({className:ut()("recharts-wrapper",n),style:hm({position:"relative",cursor:"default",width:o,height:i},a)},h,{ref:function(e){t.container=e},role:"region"}),it().createElement(Mf,rm({},f,{width:o,height:i,title:c,desc:s}),this.renderClipPath(),Nn(r,p)),this.renderLegend(),this.renderTooltip())}}],n&&om(e.prototype,n),o&&om(e,o),Object.defineProperty(e,"prototype",{writable:!1}),c}(ot.Component),dm(e,"displayName",r),dm(e,"defaultProps",hm({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),dm(e,"getDerivedStateFromProps",(function(t,e){var r=t.data,n=t.children,o=t.width,i=t.height,a=t.layout,u=t.stackOffset,c=t.margin;if(et()(e.updateId)){var s=jm(t);return hm(hm(hm({},s),{},{updateId:0},h(hm(hm({props:t},s),{},{updateId:0}),e)),{},{prevData:r,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:u,prevMargin:c,prevChildren:n})}if(r!==e.prevData||o!==e.prevWidth||i!==e.prevHeight||a!==e.prevLayout||u!==e.prevStackOffset||!vn(c,e.prevMargin)){var l=jm(t),f={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},p=hm(hm({},Sm(e,r,a)),{},{updateId:e.updateId+1}),d=hm(hm(hm({},l),f),p);return hm(hm(hm({},d),h(hm({props:t},d),e)),{},{prevData:r,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:u,prevMargin:c,prevChildren:n})}if(!Cn(n,e.prevChildren)){var y=!et()(r)?e.updateId:e.updateId+1;return hm(hm({updateId:y},h(hm(hm({props:t},e),{},{updateId:y}),e)),{},{prevChildren:n})}return null})),dm(e,"renderActiveDot",(function(t,e){var r;return r=(0,ot.isValidElement)(t)?(0,ot.cloneElement)(t,e):J()(t)?t(e):it().createElement(Gn,e),it().createElement(Jn,{className:"recharts-active-dot",key:e.key},r)})),e}({chartName:"AreaChart",GraphicalChild:Ih,axisComponents:[{axisType:"xAxis",AxisComp:Mm},{axisType:"yAxis",AxisComp:Tm}],formatAxisMap:function(t,e,r,n,i){var a=t.width,u=t.height,c=t.layout,s=t.children,l=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=!!jn(s,Ld);return l.reduce((function(a,u){var s,l,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&&(s=j*A/2),"no-gap"===v.padding){var P=pn(t.barCategoryGap,j*A),M=j*A/2;s=M-P-(M-P)/A*P}}l="xAxis"===n?[r.left+(x.left||0)+(s||0),r.left+r.width-(x.right||0)-(s||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(x.bottom||0),r.top+(x.top||0)]:[r.top+(x.top||0)+(s||0),r.top+r.height-(x.bottom||0)-(s||0)]:v.range,O&&(l=[l[1],l[0]]);var T=function(t,e,r){var n=t.scale,i=t.type,a=t.layout,u=t.axisType;if("auto"===n)return"radial"===a&&"radiusAxis"===u?{scale:yi(),realScaleType:"band"}:"radial"===a&&"angleAxis"===u?{scale:Za(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:mi(),realScaleType:"point"}:"category"===i?{scale:yi(),realScaleType:"band"}:{scale:Za(),realScaleType:"linear"};if(en()(n)){var c="scale".concat(pr()(n));return{scale:(o[c]||mi)(),realScaleType:o[c]?c:"point"}}return J()(n)?{scale:n}:{scale:mi(),realScaleType:"point"}}(v,i,p),C=T.scale,D=T.realScaleType;C.domain(g).range(l),function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),o=Math.min(n[0],n[1])-Zp,i=Math.max(n[0],n[1])+Zp,a=t(e[0]),u=t(e[r-1]);(a<o||a>i||u<o||u>i)&&t.domain([e[0],e[r-1]])}}(C);var N=function(t,e){var r=e.realScaleType,n=e.type,o=e.tickCount,i=e.originalDomain,a=e.allowDecimals,u=r||e.scale;if("auto"!==u&&"linear"!==u)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var c=t.domain();if(!c.length)return null;var s=mf(c,o,a);return t.domain([ni()(s),Y()(s)]),{niceTicks:s}}if(o&&"number"===n){var l=t.domain();return{niceTicks:gf(l,o,a)}}return null}(C,Fd(Fd({},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=Fd(Fd(Fd({},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=uh(I,N),v.hide||"xAxis"!==n?v.hide||(f[_]+=(y?-1:1)*I.width):f[_]+=(y?-1:1)*I.height,Fd(Fd({},a),{},$d({},u,I))}),{})}}),Dm=["x1","y1","x2","y2","key"];function Nm(t){return Nm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nm(t)}function Im(){return Im=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},Im.apply(this,arguments)}function Rm(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Lm(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bm(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Lm(Object(r),!0).forEach((function(e){Vm(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lm(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Um(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,Hm(n.key),n)}}function zm(t,e){return zm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zm(t,e)}function Fm(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=$m(t);if(e){var o=$m(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Nm(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 $m(t){return $m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$m(t)}function Vm(t,e,r){return(e=Hm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hm(t){var e=function(t,e){if("object"!==Nm(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Nm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Nm(e)?e:String(e)}var Wm=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&&zm(t,e)}(i,t);var e,r,n,o=Fm(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.apply(this,arguments)}return e=i,r=[{key:"renderHorizontal",value:function(t){var e=this,r=this.props,n=r.x,o=r.width,a=r.horizontal;if(!t||!t.length)return null;var u=t.map((function(t,r){var u=Bm(Bm({},e.props),{},{x1:n,y1:t,x2:n+o,y2:t,key:"line-".concat(r),index:r});return i.renderLineItem(a,u)}));return it().createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}},{key:"renderVertical",value:function(t){var e=this,r=this.props,n=r.y,o=r.height,a=r.vertical;if(!t||!t.length)return null;var u=t.map((function(t,r){var u=Bm(Bm({},e.props),{},{x1:t,y1:n,x2:t,y2:n+o,key:"line-".concat(r),index:r});return i.renderLineItem(a,u)}));return it().createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}},{key:"renderVerticalStripes",value:function(t){var e=this.props.verticalFill;if(!e||!e.length)return null;var r=this.props,n=r.fillOpacity,o=r.x,i=r.y,a=r.width,u=r.height,c=t.map((function(t){return Math.round(t+o-o)})).sort((function(t,e){return t-e}));o!==c[0]&&c.unshift(0);var s=c.map((function(t,r){var s=c[r+1]?c[r+1]-t:o+a-t;if(s<=0)return null;var l=r%e.length;return it().createElement("rect",{key:"react-".concat(r),x:t,y:i,width:s,height:u,stroke:"none",fill:e[l],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return it().createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},s)}},{key:"renderHorizontalStripes",value:function(t){var e=this.props.horizontalFill;if(!e||!e.length)return null;var r=this.props,n=r.fillOpacity,o=r.x,i=r.y,a=r.width,u=r.height,c=t.map((function(t){return Math.round(t+i-i)})).sort((function(t,e){return t-e}));i!==c[0]&&c.unshift(0);var s=c.map((function(t,r){var s=c[r+1]?c[r+1]-t:i+u-t;if(s<=0)return null;var l=r%e.length;return it().createElement("rect",{key:"react-".concat(r),y:t,x:o,height:s,width:a,stroke:"none",fill:e[l],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return it().createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},s)}},{key:"renderBackground",value:function(){var t=this.props.fill;if(!t||"none"===t)return null;var e=this.props,r=e.fillOpacity,n=e.x,o=e.y,i=e.width,a=e.height;return it().createElement("rect",{x:n,y:o,width:i,height:a,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.horizontal,a=t.vertical,u=t.horizontalCoordinatesGenerator,c=t.verticalCoordinatesGenerator,s=t.xAxis,l=t.yAxis,f=t.offset,p=t.chartWidth,h=t.chartHeight;if(!cn(n)||n<=0||!cn(o)||o<=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:l,width:p,height:h,offset:f})),v&&v.length||!J()(c)||(v=c({xAxis:s,width:p,height:h,offset:f})),it().createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),i&&this.renderHorizontal(y),a&&this.renderVertical(v),i&&this.renderHorizontalStripes(y),a&&this.renderVerticalStripes(v))}}],n=[{key:"renderLineItem",value:function(t,e){var r;if(it().isValidElement(t))r=it().cloneElement(t,e);else if(J()(t))r=t(e);else{var n=e.x1,o=e.y1,i=e.x2,a=e.y2,u=e.key,c=Rm(e,Dm);r=it().createElement("line",Im({},Tn(c),{x1:n,y1:o,x2:i,y2:a,fill:"none",key:u}))}return r}}],r&&Um(e.prototype,r),n&&Um(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(ot.PureComponent);Vm(Wm,"displayName","CartesianGrid"),Vm(Wm,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var qm=[{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 Km=function(t){var e=t.width,r=t.height,n=t.x,o=t.y,i=t.dy,a=t.payload,u=t.index,c=t.visibleTicksCount,s=t.isFormat,l=void 0===s||s,f="middle";return 0===u&&(f="start"),u===c-1&&(f="end"),wp.element.createElement("g",{className:"recharts-layer recharts-cartesian-axis-tick"},wp.element.createElement("text",{width:e,height:r,x:n,y:o,stroke:"none",fill:"#7f868d",fontSize:"14",textAnchor:f},wp.element.createElement("tspan",{x:n,dy:i},l?V()(a.value).format("D MMM, YYYY"):a.value)))};function Ym(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Xm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xm(t,e)}(t,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 Xm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Jm(t){return Jm="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},Jm(t)}var Zm=["#2196f3","#f44336","#ffca28","#43a047","#9c27b0"];const Qm=(0,i.withSelect)((function(t){return{isRefreshing:t("rank-math-pro").isRefreshingTrendKeywords(),keywords:t("rank-math-pro").getTrendKeywords()}}))((function(t){var e=t.isRefreshing,r=t.keywords,n=Ym((0,F.useState)(""),2),o=n[0],i=n[1],a=Ym((0,F.useState)("1m"),2),c=a[0],s=a[1],l=Ym((0,F.useState)(!1),2),f=l[0],p=l[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=Ym(h,2),y=d[0],v=d[1],m=(0,B.__)("Please set the Focus Keyword for this page.","rank-math");(0,u.isEmpty)(r)||(m=(0,B.__)("Loading…","rank-math")),(0,F.useEffect)((function(){if((0,u.isEmpty)(r))p(!1);else{var t=[],e=[];(0,u.map)(r,(function(r,n){r&&(t.push(n),e.push(encodeURIComponent(n)))}));var n=(0,B.sprintf)("https://api.rankmath.com/trends/v1/?%1$s&date_start=%3$s&date_end=%4$s&country=%2$s","keyword[]="+e.join("&keyword[]="),o,v,y);p(!1),fetch(n,{method:"GET"}).then((function(t){return t.json()})).then((function(e){var r=(0,u.get)(e,"default.timelineData",!1);if(m="",(0,u.isEmpty)(r))return m=(0,B.__)("No data found.","rank-math"),void p([]);p(function(t,e){return(0,u.map)(t,(function(t){var r=t.formattedTime;-1!==r.indexOf("")&&(r=t.formattedAxisTime);var n={formattedTime:r};return(0,u.map)(e,(function(e,r){n[e]=t.value[r]})),n}))}(r,t))}))}}),[e,c,o]);var g=[];if(!(0,u.isEmpty)(f)){var b=f.length;g=[f[0].formattedTime,f[Math.round(b/2-b/25)].formattedTime,f[b-1].formattedTime]}return wp.element.createElement(F.Fragment,null,wp.element.createElement("div",{className:"trend-graph-attribute-row"},wp.element.createElement(U.SelectControl,{value:o,onChange:i,options:qm}),wp.element.createElement(U.SelectControl,{value:c,onChange:s,options:Gm})),function(t,e,r){return(0,u.isEmpty)(e)?"object"!==Jm(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(td,null,wp.element.createElement(Cm,{data:f,margin:{top:5,right:30,left:0,bottom:5}},wp.element.createElement(Wm,{stroke:"#f2f2f2",vertical:!1}),wp.element.createElement(Mm,{dy:15,dataKey:"formattedTime",textAnchor:"middle",interval:"preserveStartEnd",tickLine:!1,axisLine:{stroke:"rgba(0, 0, 0, 0.15)"},ticks:g,tick:wp.element.createElement(Km,{isFormat:!1})}),wp.element.createElement(Tm,{dx:-10,axisLine:!1,tickLine:!1,tick:{fill:"#7f868d",fontSize:14}}),wp.element.createElement(wy,{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:Zm[e],stopOpacity:.3}),wp.element.createElement("stop",{offset:"95%",stopColor:Zm[e],stopOpacity:0})))}))}(r),function(t){var e=-1;return(0,u.map)(t,(function(t,r){return e++,t?wp.element.createElement(Ih,{key:r+"Area",type:"monotone",dataKey:r,strokeWidth:2,stroke:Zm[e],fill:"url(#colorValue".concat(e,")"),fillOpacity:.9}):null}))}(r)))))}));const tg=(0,wp.compose.compose)((0,i.withSelect)((function(t){return{refresh:Date.now(),keywords:t("rank-math-pro").getTrendKeywords()}})),(0,i.withDispatch)((function(t){return{toggleKeyword:function(e){t("rank-math-pro").toggleTrendKeyword(e),t("rank-math-pro").refreshTrendKeywords()},removeKeyword:function(e){t("rank-math-pro").removeTrendKeyword(e),t("rank-math-pro").refreshTrendKeywords()}}})))((function(t){var e=t.keywords,r=t.removeKeyword,n=t.toggleKeyword;if((0,u.isEmpty)(e))return(0,B.__)("No Keywords Selected","rank-math");for(var o=(0,u.keys)(e).slice(0,5),i={},a=0;a<o.length;a++)i[o[a]]=e[o[a]];return wp.element.createElement("ul",{className:"trends-tool-keywords-list"},(0,u.map)(i,(function(t,e){var o="compare-keyword-bar";return t&&(o+=" selected"),wp.element.createElement("li",{key:e,className:o},wp.element.createElement(U.CheckboxControl,{className:"compare-keyword-checkbox",checked:t,onChange:function(){return n(e)}}),wp.element.createElement("span",{className:"compare-keyword"},e),wp.element.createElement("button",{className:"remove-keyword",onClick:function(){return r(e)}},wp.element.createElement(U.Dashicon,{icon:"no",size:"16"})))})))})),eg=jQuery;var rg=r.n(eg);function ng(t){return ng="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},ng(t)}function og(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(o=n.key,i=void 0,i=function(t,e){if("object"!==ng(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ng(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===ng(i)?i:String(i)),n)}var o,i}function ig(t,e){return ig=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ig(t,e)}function ag(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=ug(t);if(e){var o=ug(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===ng(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 ug(t){return ug=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ug(t)}var cg=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&&ig(t,e)}(a,t);var e,r,n,o=ag(a);function a(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(t=o.call.apply(o,[this].concat(r))).keyword="",t.input=null,t.addKeyword=function(){""!==t.keyword&&((0,i.dispatch)("rank-math-pro").addTrendKeyword(t.keyword),(0,i.dispatch)("rank-math-pro").refreshTrendKeywords(),t.keyword="",t.input.value="")},t}return e=a,r=[{key:"componentDidMount",value:function(){rankMath.isUserRegistered&&(this.input=this.node.querySelector(".components-text-control__input"),rg()(this.input).autocomplete(this.getAutocompleteOptions()))}},{key:"componentWillUnmount",value:function(){rankMath.isUserRegistered&&rg()(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){rg().ajax({url:rankMath.keywordsApi.url,data:{keyword:t.term,locale:rankMath.locale},success:function(t){e(rg().map(t,(function(t){return{value:rg()("<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");rg()(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&&og(e.prototype,r),n&&og(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(F.Component);const sg=cg;function lg(t){return lg="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},lg(t)}function fg(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 pg(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fg(Object(r),!0).forEach((function(e){hg(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fg(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hg(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==lg(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==lg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===lg(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const dg=(0,i.withSelect)((function(t,e){return pg(pg({},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(sg,{disabled:Object.keys(r).length>=5}),wp.element.createElement("div",{className:"trends-tool-keywords clear"},wp.element.createElement(tg,null)),wp.element.createElement(U.Button,{className:"button use-these-keywords",isPrimary:!0,onClick:function(){var t=[];(0,u.map)(r,(function(e,r){e&&t.push(r)})),t=t.join(",");var n=(0,u.get)(window.rankMathEditor,"focusKeywordField.tagifyField.current.tagify",(0,u.get)(rankMathEditor,"components.focusKeywords.tagify",!1));!1!==n&&(n.removeAllTags(),n.addTags(t)),(0,i.dispatch)("rank-math").updateKeywords(t),e(!1),(0,i.dispatch)("rank-math-pro").clearTrendKeywords()}},(0,B.__)("Close & use selected keywords","rank-math")),wp.element.createElement(U.Button,{className:"button-link close-popup",isSecondary:!0,onClick:function(){e(!1),(0,i.dispatch)("rank-math-pro").clearTrendKeywords()}},(0,B.__)("Cancel","rank-math")))}));function yg(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return vg(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 vg(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 vg(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 mg=function(){var t=yg((0,F.useState)(!1),2),e=t[0],r=t[1];return wp.element.createElement(F.Fragment,null,wp.element.createElement(U.Button,{id:"rank-math-compare-keywords-trigger",isSecondary:!0,className:"button rank-math-trends-tool-button rank-math-compare-keywords-trigger",onClick:function(){return r(!0)}},wp.element.createElement("span",{className:"button-icon",dangerouslySetInnerHTML:{__html:rankMath.trendsIcon}})),e&&wp.element.createElement(U.Modal,{title:(0,B.__)("Google Trends","rank-math-pro"),closeButtonLabel:(0,B.__)("Close","rank-math-pro"),shouldCloseOnClickOutside:!1,onRequestClose:function(){r(!1),(0,i.dispatch)("rank-math-pro").clearTrendKeywords()},className:"rank-math-modal rank-math-modal-trends-tool",overlayClassName:"rank-math-modal-overlay"},wp.element.createElement("div",{className:"rank-math-grid"},wp.element.createElement("div",{className:"trends-tool-frame-sidebar"},wp.element.createElement(dg,{toggleModal:r})),wp.element.createElement("div",{className:"trends-tool-frame-content"},wp.element.createElement(Qm,null)))))};var gg=r(3004),bg=r.n(gg);(0,a.addAction)("rank_math_loaded","rank-math-pro",(function(){if(void 0!==(0,i.select)("rank-math-pro")||(0,i.registerStore)("rank-math-pro",{reducer:(0,i.combineReducers)(e),selectors:n,actions:t}),(0,i.dispatch)("rank-math").setVersion(),rankMath.isUserRegistered){var r=rankMathEditor.slots.AfterFocusKeyword;(0,a.addFilter)("rankMath.diviAppModal","rank-math-pro",(function(t){return function(e){return wp.element.createElement(React.Fragment,null,wp.element.createElement(r,{className:"trends-tool-button"},wp.element.createElement(mg,null)),wp.element.createElement(t,e))}}))}(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(bg())(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}))}))})()})();