@cryptofi/core-ui 1.6.10 → 1.6.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import{jsxs as t,jsx as e,Fragment as r}from"react/jsx-runtime";import{chakra as
6
6
  * Copyright (c) 2021 Jason Wilson
7
7
  * Released under MIT license
8
8
  */
9
- var Ar={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(t,e){var r=e.pattern,n=e.negativePattern,o=e.symbol,i=e.separator,a=e.decimal,c=e.groups,u=(""+t).replace(/^-/,"").split("."),l=u[0],s=u[1];return(t.value>=0?r:n).replace("!",o).replace("#",l.replace(c,"$1"+i)+(s?a+s:""))},fromCents:!1},Mr=function(t){return Math.round(t)},kr=function(t){return Math.pow(10,t)},Er=/(\d)(?=(\d{3})+\b)/g,Cr=/(\d)(?=(\d\d)+\d\b)/g;function Tr(t,e){var r=this;if(!(r instanceof Tr))return new Tr(t,e);var n=Object.assign({},Ar,e),o=kr(n.precision),i=Dr(t,n);r.intValue=i,r.value=i/o,n.increment=n.increment||1/o,n.useVedic?n.groups=Cr:n.groups=Er,this.s=n,this.p=o}function Dr(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=0,o=e.decimal,i=e.errorOnInvalid,a=e.precision,c=e.fromCents,u=kr(a),l="number"==typeof t,s=t instanceof Tr;if(s&&c)return t.intValue;if(l||s)n=s?t.value:t;else if("string"==typeof t){var f=new RegExp("[^-\\d"+o+"]","g"),p=new RegExp("\\"+o,"g");n=(n=t.replace(/\((.*)\)/,"-$1").replace(f,"").replace(p,"."))||0}else{if(i)throw Error("Invalid Input");n=0}return c||(n=(n*=u).toFixed(4)),r?Mr(n):n}Tr.prototype={add:function(t){var e=this.intValue,r=this.s,n=this.p;return Tr((e+=Dr(t,r))/(r.fromCents?1:n),r)},subtract:function(t){var e=this.intValue,r=this.s,n=this.p;return Tr((e-=Dr(t,r))/(r.fromCents?1:n),r)},multiply:function(t){var e=this.intValue,r=this.s;return Tr((e*=t)/(r.fromCents?1:kr(r.precision)),r)},divide:function(t){var e=this.intValue,r=this.s;return Tr(e/=Dr(t,r,!1),r)},distribute:function(t){for(var e=this.intValue,r=this.p,n=this.s,o=[],i=Math[e>=0?"floor":"ceil"](e/t),a=Math.abs(e-i*t),c=n.fromCents?1:r;0!==t;t--){var u=Tr(i/c,n);a-- >0&&(u=u[e>=0?"add":"subtract"](1/c)),o.push(u)}return o},dollars:function(){return~~this.value},cents:function(){return~~(this.intValue%this.p)},format:function(t){var e=this.s;return"function"==typeof t?t(this,e):e.format(this,Object.assign({},e,t))},toString:function(){var t,e,r=this.intValue,n=this.p,o=this.s;return(t=r/n,e=o.increment,Mr(t/e)*e).toFixed(o.precision)},toJSON:function(){return this.value}};const Ir=({amount:t,autoPrecision:e,precision:r=2,signDisplay:n=!1})=>{const o=Number(t);if(!Number.isFinite(o))return console.log(`Amount is not a finite number. (amount: ${o}, method: formatUsd)`),t;const i=Tr(o,{precision:e&&o>-1&&o<1&&0!==o?5:r}).format();return n&&o>0?`+${i}`:i},Nr=({data:t,dataKey:e})=>{const r=t?t.filter((t=>Boolean(t[e]))):[],n=r?.length?Number(r[0][e]):0,o=r?.length?Number(r[r.length-1][e]):0;if(!t?.length)return{startingAmount:0,endingAmount:0,delta:0,percentChange:0,isNetGain:!0};if(!Number.isFinite(n)||!Number.isFinite(o))throw new Error(`Starting or ending amount is not a finite number. (startingAmount: ${n}, endingAmount: ${o}, method: getDelta)`);const i=new sr(n),a=new sr(o),c=a.minus(i);return{startingAmount:n,endingAmount:o,delta:c.toNumber(),percentChange:0===i.toNumber()?0:c.div(i).mul(100).toNumber(),isNetGain:a.gt(i)}},Rr=t=>{let e;return["sm","xs"].includes(t)&&(e="xs"),e},Lr=()=>{try{return window.self!==window.top}catch(t){return!0}},Br=t=>Array.from(t).reverse(),zr=({arr:t,n:e})=>{const r=Br(t);return Br(r.filter(((t,r)=>r%e==0)))},$r=t=>t.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z])([A-Z][a-z])/g,"$1 $2").trim(),Hr={redRemains:(t=1)=>Fr({rgb:"rgb(255, 223, 223)",alpha:t}),heroicRed:(t=1)=>Fr({rgb:"rgb(210, 25, 25)",alpha:t}),aijiroWhite:(t=1)=>Fr({rgb:"rgb(238, 248, 247)",alpha:t}),mint:(t=1)=>Fr({rgb:"rgb(64, 178, 136)",alpha:t}),white:(t=1)=>Fr({rgb:"rgb(255, 255, 255)",alpha:t,enabledAlphaValues:[.2]}),lighthouse:(t=1)=>Fr({rgb:"rgb(244, 244, 244)",alpha:t}),coolElegance:(t=1)=>Fr({rgb:"rgb(205, 207, 209)",alpha:t}),sonicSilver:(t=1)=>Fr({rgb:"rgb(117, 117, 117)",alpha:t}),black:(t=1)=>Fr({rgb:"rgb(0, 0, 0)",alpha:t,enabledAlphaValues:[.08]})},Fr=({rgb:t,alpha:e,enabledAlphaValues:r=[1]})=>{if(![...r,1].includes(e))throw`Unsupported alpha value: ${e}. Update the color function in uiColors.ts to enable additional values.`;const[n,o,i]=t.replace(/[^\d,]/g,"").split(",");return`rgba(${n}, ${o}, ${i}, ${e})`},Ur=({usd:t,precision:e=2,autoPrecision:r})=>{const n=Tr(t).value;return Tr(t,{precision:r&&n>-1&&n<1&&0!==n?5:e}).value},Vr="22rem",Wr={dateOnly:"MM/DD/YY",dateWithTime:"MM/DD/YYYY h:mm A",shortDateWithTime:"MMM D, h:mm A",shortDateWithYear:"MMM D, YYYY"};mr.extend(_r);const Zr=({dateFormat:t=Wr.dateOnly,timeString:e})=>mr.utc(e).local().format(t),{definePartsStyle:qr,defineMultiStyleConfig:Yr}=o(qe.keys),Xr=Yr({baseStyle:qr({root:{display:"flex",flexDirection:"column",gap:2},container:{borderRadius:"lg",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.300",bg:"gray.100",color:Hr.black(),overflow:"hidden",'&:has(button[aria-expanded="true"])':{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"}},button:{px:4,py:4,bg:Hr.white(),fontSize:"md",_hover:{bg:Hr.lighthouse()}},panel:{borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"gray.300",fontSize:"sm",bg:Hr.lighthouse(),py:"4",px:"4"}}),variants:{spacious:qr({container:{borderRadius:"lg"},button:{py:8,px:6,fontSize:"md"},panel:{fontSize:"sm",bg:Hr.lighthouse(),p:"8"}})}}),{definePartsStyle:Kr,defineMultiStyleConfig:Gr}=o(Ye.keys),Jr=Gr({baseStyle:Kr((t=>{const{colorScheme:e,theme:r}=t,n=r.colors[e];return{icon:{svg:{path:{fill:n[500]}}},container:{bg:n[100],borderColor:n[500],borderRadius:"lg",borderStyle:"solid",borderWidth:1,padding:4},description:{color:"blackAlpha.900"},title:{color:"blackAlpha.900"}}})),defaultProps:{variant:"subtle"}}),Qr=i({borderColor:"red.700",color:"red.700",border:"solid 2px",":hover, :focus":{backgroundColor:"gray.200"},svg:{path:{fill:"red.700"}}}),tn=i({":hover, :focus":{background:"brand.600"}}),en={color:"brand.700 !important",bg:"brand.50 !important",opacity:"0.6 !important",filter:"grayscale() !important"},rn=i({background:"brand.50",color:"brand.500",svg:{path:{fill:"brand.500"}},":hover, :focus":{bg:"brand.100",color:"brand.600",svg:{path:{fill:"brand.600"}}},_disabled:{...en},":hover[disabled], :focus[disabled]":{...en},_active:{bg:"brand.100",color:"brand.600",svg:{path:{fill:"brand.600"}}}}),nn=i({border:"solid 2px",borderColor:"brand.600",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),on=i({boxShadow:"none",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),an=a({baseStyle:{boxShadow:"0px 8px 16px 0px rgba(0,0,0,0.08)",svg:{width:"1em",height:"1em",path:{fill:"white"}}},sizes:{xs:i({lineHeight:1})},variants:{alert:Qr,outline:nn,ghost:on,secondary:rn,solid:tn}}),{definePartsStyle:cn,defineMultiStyleConfig:un}=o(Xe.keys),ln=un({baseStyle:cn({control:{borderRadius:"base",borderColor:"brand.500",svg:{path:{fill:"inherit"}},_checked:{svg:{path:{fill:"white"}}},_indeterminate:{svg:{path:{fill:"white"}}},_hover:{bg:"gray.50",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)",_indeterminate:{bg:"brand.600"},_disabled:{bg:"gray.100"}},_invalid:{_checked:{borderColor:"brand.500"}}}}),sizes:{lg:{control:{boxSize:7,svg:{width:"1.75em"}}},md:{control:{boxSize:6,svg:{width:"1.5em"}}},sm:{control:{boxSize:4,svg:{width:"1.5em"}}}}}),sn=a({baseStyle:{helperText:{fontSize:"sm"}}}),fn=a({sizes:{sm:{text:{fontSize:"xs"}},xs:{text:{fontSize:"xs"}}}}),pn=a({baseStyle:{display:"inline-block",color:Hr.sonicSilver(),fontFamily:"heading",fontSize:"sm",cursor:"pointer",_disabled:{opacity:1}},sizes:{sm:{fontSize:"sm"},xs:{fontSize:"xs"}}}),dn=a({sizes:{xl:i({fontSize:"4xl"}),lg:i({fontSize:"3xl"}),md:i({fontSize:"2xl"}),sm:i({fontSize:"xl"}),xs:i({fontSize:"md"})}}),{definePartsStyle:hn,defineMultiStyleConfig:yn}=o(Ke.keys),vn=yn({baseStyle:hn({group:{"svg:not(.asset-logo)":{width:"1em",height:"1em"}},field:{_readOnly:{pointerEvents:"none"}}}),sizes:{lg:hn({field:{fontSize:"md"}})},variants:{outline:{group:{"svg:not(.asset-logo)":{path:{fill:Hr.sonicSilver()}},_groupFocus:{"svg:not(.asset-logo)":{path:{fill:Hr.black()}}},_groupDisabled:{"svg:not(.asset-logo)":{path:{fill:Hr.coolElegance()}}}},field:{border:"solid 1px",borderRadius:"lg",borderColor:Hr.coolElegance(),color:Hr.sonicSilver(),":focus":{color:Hr.black(),borderColor:Hr.black()},":hover:not([disabled])":{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},_disabled:{color:Hr.sonicSilver(),opacity:1,bg:Hr.lighthouse(),":focus, :hover":{borderColor:Hr.coolElegance(),bg:Hr.lighthouse()}},_invalid:{":focus, :hover":{borderColor:"red.500"}}},addon:{bg:"white",border:"solid 1px",borderRadius:"lg",borderColor:Hr.coolElegance(),color:Hr.black(),":hover:not([disabled])":{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},":focus":{borderColor:Hr.black()},_disabled:{color:Hr.sonicSilver(),opacity:1,bg:Hr.lighthouse(),":focus, :hover":{borderColor:Hr.coolElegance(),bg:Hr.lighthouse()}},_invalid:{":focus, :hover":{borderColor:"red.500"}}}}},defaultProps:{size:"lg",variant:"outline"}}),{definePartsStyle:gn,defineMultiStyleConfig:mn}=o(Ge.keys),bn=mn({baseStyle:gn({field:{_readOnly:{pointerEvents:"none"}}}),sizes:{lg:gn({field:{fontSize:"md"}})},variants:{outline:{field:{border:"solid 1px",borderColor:Hr.coolElegance(),borderRadius:"lg",color:Hr.sonicSilver(),pr:10,_focus:{color:Hr.black(),borderColor:Hr.black(),"+.chakra-select__icon-wrapper":{svg:{color:Hr.black(),path:{fill:Hr.black()}}}},":hover:not([disabled])":{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},_disabled:{color:Hr.sonicSilver(),opacity:1,bg:Hr.lighthouse(),":focus, :hover":{borderColor:Hr.coolElegance(),bg:Hr.lighthouse()}},_invalid:{":focus, :hover":{borderColor:"red.500"}}},icon:{width:"1em",height:"1em",fontSize:"1em",mr:2,path:{fill:Hr.sonicSilver()},_disabled:{opacity:1,path:{fill:Hr.coolElegance()}}}}},defaultProps:{size:"lg",variant:"outline"}}),wn=a({variants:{simple:{th:{borderColor:Hr.coolElegance()},td:{borderColor:Hr.coolElegance()},tr:{_last:{td:{border:"none"}}}},grayHeader:{th:{background:Hr.lighthouse(),color:Hr.sonicSilver(),borderBottom:"1px solid",borderColor:Hr.coolElegance()},td:{borderBottom:"1px solid",borderColor:Hr.coolElegance()},tr:{_last:{td:{border:"none"}}}}}}),{definePartsStyle:xn,defineMultiStyleConfig:On}=o(Je.keys),Sn=xn({container:{color:"blackAlpha.900",fontWeight:"bold",borderRadius:"full",svg:{path:{fill:"blackAlpha.900"}}}}),_n=xn({container:{bg:"red.100",borderWidth:1,borderColor:"red.500"}}),jn=xn({container:{bg:"yellow.100",borderColor:"yellow.500",borderWidth:1}});var Pn=c({colors:{brand:{50:"#fcf2fe",100:"#f0c4f9",200:"#eaacf7",300:"#e495f4",400:"#de7ef2",500:"#d250ed",600:"#c622e8",700:"#b816da",800:"#a514c3",900:"#7e0f95"}},components:{Accordion:Xr,Alert:Jr,Button:an,Checkbox:ln,Input:vn,Heading:dn,Form:sn,FormLabel:pn,FormError:fn,Select:bn,Table:wn,Tag:On({baseStyle:Sn,defaultProps:{variant:"outline"},variants:{error:_n,success:xn({container:{bg:"green.100",borderColor:"green.500",borderWidth:1}}),warning:jn,outline:{container:{boxShadow:"none",borderColor:"brand.500",borderWidth:1}}},sizes:{sm:{container:{px:4,py:0}},md:{container:{px:6,py:1}},lg:{container:{px:6,py:1}}}})},styles:{global:{"[data-focus], :focus":{boxShadow:"none !important"},"::placeholder":{color:"gray.500"},"input[type=date]:invalid::-webkit-datetime-edit":{color:"gray.500"},"::-webkit-calendar-picker-indicator":{cursor:"pointer",filter:"opacity(40%)"},".recharts-surface":{overflow:"visible !important"},".recharts-surface .shadow":{filter:"drop-shadow(0 3px 5px rgba(0, 0, 0, 0.075))"}}}},u({colorScheme:"brand"}));const An={components:Pn.components,styles:Pn.styles},Mn=t=>{const e=String(t).replace(/\D/g,"").match(/^(\d{3})(\d{3})(\d{4})$/);return e?`(${e[1]}) ${e[2]}-${e[3]}`:t};let kn,En,Cn=(t=21)=>{var e;e=t|=0,!kn||kn.length<e?(kn=Buffer.allocUnsafe(128*e),lt.randomFillSync(kn),En=0):En+e>kn.length&&(lt.randomFillSync(kn),En=0),En+=e;let r="";for(let e=En-t;e<En;e++)r+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&kn[e]];return r};function Tn(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=Tn(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Dn(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=Tn(t))&&(n&&(n+=" "),n+=e);return n}var In,Nn,Rn,Ln,Bn,zn,$n,Hn,Fn,Un,Vn,Wn,Zn,qn,Yn,Xn,Kn,Gn,Jn,Qn,to,eo,ro,no,oo,io,ao,co,uo,lo,so,fo,po,ho,yo,vo,go,mo,bo,wo,xo,Oo,So,_o,jo,Po,Ao,Mo,ko,Eo,Co,To,Do,Io,No,Ro,Lo,Bo,zo,$o,Ho,Fo,Uo,Vo,Wo,Zo,qo,Yo,Xo,Ko,Go,Jo,Qo,ti,ei,ri,ni,oi,ii,ai,ci,ui,li,si,fi,pi,di,hi,yi,vi,gi,mi,bi,wi,xi,Oi,Si,_i,ji,Pi,Ai,Mi,ki,Ei;function Ci(){if(Nn)return In;Nn=1;var t=Array.isArray;return In=t}function Ti(){if(Ln)return Rn;Ln=1;var t="object"==typeof pr&&pr&&pr.Object===Object&&pr;return Rn=t}function Di(){if(zn)return Bn;zn=1;var t=Ti(),e="object"==typeof self&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return Bn=r}function Ii(){if(Hn)return $n;Hn=1;var t=Di().Symbol;return $n=t}function Ni(){if(qn)return Zn;qn=1;var t=Ii(),e=function(){if(Un)return Fn;Un=1;var t=Ii(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;return Fn=function(t){var e=r.call(t,o),i=t[o];try{t[o]=void 0;var a=!0}catch(t){}var c=n.call(t);return a&&(e?t[o]=i:delete t[o]),c}}(),r=function(){if(Wn)return Vn;Wn=1;var t=Object.prototype.toString;return Vn=function(e){return t.call(e)}}(),n=t?t.toStringTag:void 0;return Zn=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":n&&n in Object(t)?e(t):r(t)}}function Ri(){if(Xn)return Yn;return Xn=1,Yn=function(t){return null!=t&&"object"==typeof t}}function Li(){if(Gn)return Kn;Gn=1;var t=Ni(),e=Ri();return Kn=function(r){return"symbol"==typeof r||e(r)&&"[object Symbol]"==t(r)}}function Bi(){if(Qn)return Jn;Qn=1;var t=Ci(),e=Li(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return Jn=function(o,i){if(t(o))return!1;var a=typeof o;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=o&&!e(o))||(n.test(o)||!r.test(o)||null!=i&&o in Object(i))},Jn}function zi(){if(eo)return to;return eo=1,to=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}}function $i(){if(no)return ro;no=1;var t=Ni(),e=zi();return ro=function(r){if(!e(r))return!1;var n=t(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}}function Hi(){if(co)return ao;co=1;var t,e=function(){if(io)return oo;io=1;var t=Di()["__core-js_shared__"];return oo=t}(),r=(t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return ao=function(t){return!!r&&r in t}}function Fi(){if(lo)return uo;lo=1;var t=Function.prototype.toString;return uo=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function Ui(){if(vo)return yo;vo=1;var t=function(){if(fo)return so;fo=1;var t=$i(),e=Hi(),r=zi(),n=Fi(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,c=i.toString,u=a.hasOwnProperty,l=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return so=function(i){return!(!r(i)||e(i))&&(t(i)?l:o).test(n(i))}}(),e=(ho||(ho=1,po=function(t,e){return null==t?void 0:t[e]}),po);return yo=function(r,n){var o=e(r,n);return t(o)?o:void 0},yo}function Vi(){if(mo)return go;mo=1;var t=Ui()(Object,"create");return go=t}function Wi(){if(Eo)return ko;Eo=1;var t=function(){if(wo)return bo;wo=1;var t=Vi();return bo=function(){this.__data__=t?t(null):{},this.size=0}}(),e=Oo?xo:(Oo=1,xo=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),r=function(){if(_o)return So;_o=1;var t=Vi(),e=Object.prototype.hasOwnProperty;return So=function(r){var n=this.__data__;if(t){var o=n[r];return"__lodash_hash_undefined__"===o?void 0:o}return e.call(n,r)?n[r]:void 0}}(),n=function(){if(Po)return jo;Po=1;var t=Vi(),e=Object.prototype.hasOwnProperty;return jo=function(r){var n=this.__data__;return t?void 0!==n[r]:e.call(n,r)}}(),o=function(){if(Mo)return Ao;Mo=1;var t=Vi();return Ao=function(e,r){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=t&&void 0===r?"__lodash_hash_undefined__":r,this}}();function i(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])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,ko=i}function Zi(){if(Io)return Do;return Io=1,Do=function(t,e){return t===e||t!=t&&e!=e}}function qi(){if(Ro)return No;Ro=1;var t=Zi();return No=function(e,r){for(var n=e.length;n--;)if(t(e[n][0],r))return n;return-1},No}function Yi(){if(Zo)return Wo;Zo=1;var t=To?Co:(To=1,Co=function(){this.__data__=[],this.size=0}),e=function(){if(Bo)return Lo;Bo=1;var t=qi(),e=Array.prototype.splice;return Lo=function(r){var n=this.__data__,o=t(n,r);return!(o<0||(o==n.length-1?n.pop():e.call(n,o,1),--this.size,0))}}(),r=function(){if($o)return zo;$o=1;var t=qi();return zo=function(e){var r=this.__data__,n=t(r,e);return n<0?void 0:r[n][1]}}(),n=function(){if(Fo)return Ho;Fo=1;var t=qi();return Ho=function(e){return t(this.__data__,e)>-1}}(),o=function(){if(Vo)return Uo;Vo=1;var t=qi();return Uo=function(e,r){var n=this.__data__,o=t(n,e);return o<0?(++this.size,n.push([e,r])):n[o][1]=r,this}}();function i(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])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Wo=i}function Xi(){if(Yo)return qo;Yo=1;var t=Ui()(Di(),"Map");return qo=t}function Ki(){if(ti)return Qo;ti=1;var t=Jo?Go:(Jo=1,Go=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t});return Qo=function(e,r){var n=e.__data__;return t(r)?n["string"==typeof r?"string":"hash"]:n.map},Qo}function Gi(){if(si)return li;si=1;var t=function(){if(Ko)return Xo;Ko=1;var t=Wi(),e=Yi(),r=Xi();return Xo=function(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}}(),e=function(){if(ri)return ei;ri=1;var t=Ki();return ei=function(e){var r=t(this,e).delete(e);return this.size-=r?1:0,r}}(),r=function(){if(oi)return ni;oi=1;var t=Ki();return ni=function(e){return t(this,e).get(e)}}(),n=function(){if(ai)return ii;ai=1;var t=Ki();return ii=function(e){return t(this,e).has(e)}}(),o=function(){if(ui)return ci;ui=1;var t=Ki();return ci=function(e,r){var n=t(this,e),o=n.size;return n.set(e,r),this.size+=n.size==o?0:1,this}}();function i(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])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,li=i}function Ji(){if(pi)return fi;pi=1;var t=Gi();function e(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var o=function(){var t=arguments,e=n?n.apply(this,t):t[0],i=o.cache;if(i.has(e))return i.get(e);var a=r.apply(this,t);return o.cache=i.set(e,a)||i,a};return o.cache=new(e.Cache||t),o}return e.Cache=t,fi=e}function Qi(){if(vi)return yi;vi=1;var t=function(){if(hi)return di;hi=1;var t=Ji();return di=function(e){var r=t(e,(function(t){return 500===n.size&&n.clear(),t})),n=r.cache;return r}}(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(e,(function(t,e,o,i){n.push(o?i.replace(r,"$1"):e||t)})),n}));return yi=n}function ta(){if(mi)return gi;return mi=1,gi=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},gi}function ea(){if(Oi)return xi;Oi=1;var t=function(){if(wi)return bi;wi=1;var t=Ii(),e=ta(),r=Ci(),n=Li(),o=t?t.prototype:void 0,i=o?o.toString:void 0;return bi=function t(o){if("string"==typeof o)return o;if(r(o))return e(o,t)+"";if(n(o))return i?i.call(o):"";var a=o+"";return"0"==a&&1/o==-1/0?"-0":a},bi}();return xi=function(e){return null==e?"":t(e)}}function ra(){if(_i)return Si;_i=1;var t=Ci(),e=Bi(),r=Qi(),n=ea();return Si=function(o,i){return t(o)?o:e(o,i)?[o]:r(n(o))},Si}function na(){if(Pi)return ji;Pi=1;var t=Li();return ji=function(e){if("string"==typeof e||t(e))return e;var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}}function oa(){if(Mi)return Ai;Mi=1;var t=ra(),e=na();return Ai=function(r,n){for(var o=0,i=(n=t(n,r)).length;null!=r&&o<i;)r=r[e(n[o++])];return o&&o==i?r:void 0},Ai}function ia(){if(Ei)return ki;Ei=1;var t=oa();return ki=function(e,r,n){var o=null==e?void 0:t(e,r);return void 0===o?n:o},ki}var aa,ca,ua=dr(ia());var la,sa,fa=dr(ca?aa:(ca=1,aa=function(t){return null==t}));var pa,da=function(){if(sa)return la;sa=1;var t=Ni(),e=Ci(),r=Ri();return la=function(n){return"string"==typeof n||!e(n)&&r(n)&&"[object String]"==t(n)}}(),ha=dr(da),ya=dr($i()),va=dr(zi()),ga={exports:{}},ma={};var ba,wa,xa={};
9
+ var Ar={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(t,e){var r=e.pattern,n=e.negativePattern,o=e.symbol,i=e.separator,a=e.decimal,c=e.groups,u=(""+t).replace(/^-/,"").split("."),l=u[0],s=u[1];return(t.value>=0?r:n).replace("!",o).replace("#",l.replace(c,"$1"+i)+(s?a+s:""))},fromCents:!1},Mr=function(t){return Math.round(t)},kr=function(t){return Math.pow(10,t)},Er=/(\d)(?=(\d{3})+\b)/g,Cr=/(\d)(?=(\d\d)+\d\b)/g;function Tr(t,e){var r=this;if(!(r instanceof Tr))return new Tr(t,e);var n=Object.assign({},Ar,e),o=kr(n.precision),i=Dr(t,n);r.intValue=i,r.value=i/o,n.increment=n.increment||1/o,n.useVedic?n.groups=Cr:n.groups=Er,this.s=n,this.p=o}function Dr(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=0,o=e.decimal,i=e.errorOnInvalid,a=e.precision,c=e.fromCents,u=kr(a),l="number"==typeof t,s=t instanceof Tr;if(s&&c)return t.intValue;if(l||s)n=s?t.value:t;else if("string"==typeof t){var f=new RegExp("[^-\\d"+o+"]","g"),p=new RegExp("\\"+o,"g");n=(n=t.replace(/\((.*)\)/,"-$1").replace(f,"").replace(p,"."))||0}else{if(i)throw Error("Invalid Input");n=0}return c||(n=(n*=u).toFixed(4)),r?Mr(n):n}Tr.prototype={add:function(t){var e=this.intValue,r=this.s,n=this.p;return Tr((e+=Dr(t,r))/(r.fromCents?1:n),r)},subtract:function(t){var e=this.intValue,r=this.s,n=this.p;return Tr((e-=Dr(t,r))/(r.fromCents?1:n),r)},multiply:function(t){var e=this.intValue,r=this.s;return Tr((e*=t)/(r.fromCents?1:kr(r.precision)),r)},divide:function(t){var e=this.intValue,r=this.s;return Tr(e/=Dr(t,r,!1),r)},distribute:function(t){for(var e=this.intValue,r=this.p,n=this.s,o=[],i=Math[e>=0?"floor":"ceil"](e/t),a=Math.abs(e-i*t),c=n.fromCents?1:r;0!==t;t--){var u=Tr(i/c,n);a-- >0&&(u=u[e>=0?"add":"subtract"](1/c)),o.push(u)}return o},dollars:function(){return~~this.value},cents:function(){return~~(this.intValue%this.p)},format:function(t){var e=this.s;return"function"==typeof t?t(this,e):e.format(this,Object.assign({},e,t))},toString:function(){var t,e,r=this.intValue,n=this.p,o=this.s;return(t=r/n,e=o.increment,Mr(t/e)*e).toFixed(o.precision)},toJSON:function(){return this.value}};const Ir=({amount:t,autoPrecision:e,precision:r=2,signDisplay:n=!1})=>{const o=Number(t);if(!Number.isFinite(o))return console.log(`Amount is not a finite number. (amount: ${o}, method: formatUsd)`),t;const i=Tr(o,{precision:e&&o>-1&&o<1&&0!==o?5:r}).format();return n&&o>0?`+${i}`:i},Nr=({data:t,dataKey:e})=>{const r=t?t.filter((t=>Boolean(t[e]))):[],n=r?.length?Number(r[0][e]):0,o=r?.length?Number(r[r.length-1][e]):0;if(!t?.length)return{startingAmount:0,endingAmount:0,delta:0,percentChange:0,isNetGain:!0};if(!Number.isFinite(n)||!Number.isFinite(o))throw new Error(`Starting or ending amount is not a finite number. (startingAmount: ${n}, endingAmount: ${o}, method: getDelta)`);const i=new sr(n),a=new sr(o),c=a.minus(i);return{startingAmount:n,endingAmount:o,delta:c.toNumber(),percentChange:0===i.toNumber()?0:c.div(i).mul(100).toNumber(),isNetGain:a.gt(i)}},Rr=t=>{let e;return["sm","xs"].includes(t)&&(e="xs"),e},Lr=t=>{if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},Br=()=>{const t=mr().add(1,"day"),e=t.format("dddd"),r=t.date(),n=r>28?1:r;return{dayOfWeek:e,monthlyDay:`${n}${Lr(n)}`}},zr=()=>{try{return window.self!==window.top}catch(t){return!0}},$r=t=>Array.from(t).reverse(),Hr=({arr:t,n:e})=>{const r=$r(t);return $r(r.filter(((t,r)=>r%e==0)))},Fr=t=>t.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z])([A-Z][a-z])/g,"$1 $2").trim(),Ur={redRemains:(t=1)=>Vr({rgb:"rgb(255, 223, 223)",alpha:t}),heroicRed:(t=1)=>Vr({rgb:"rgb(210, 25, 25)",alpha:t}),aijiroWhite:(t=1)=>Vr({rgb:"rgb(238, 248, 247)",alpha:t}),mint:(t=1)=>Vr({rgb:"rgb(64, 178, 136)",alpha:t}),white:(t=1)=>Vr({rgb:"rgb(255, 255, 255)",alpha:t,enabledAlphaValues:[.2]}),lighthouse:(t=1)=>Vr({rgb:"rgb(244, 244, 244)",alpha:t}),coolElegance:(t=1)=>Vr({rgb:"rgb(205, 207, 209)",alpha:t}),sonicSilver:(t=1)=>Vr({rgb:"rgb(117, 117, 117)",alpha:t}),black:(t=1)=>Vr({rgb:"rgb(0, 0, 0)",alpha:t,enabledAlphaValues:[.08]})},Vr=({rgb:t,alpha:e,enabledAlphaValues:r=[1]})=>{if(![...r,1].includes(e))throw`Unsupported alpha value: ${e}. Update the color function in uiColors.ts to enable additional values.`;const[n,o,i]=t.replace(/[^\d,]/g,"").split(",");return`rgba(${n}, ${o}, ${i}, ${e})`},Wr=({usd:t,precision:e=2,autoPrecision:r})=>{const n=Tr(t).value;return Tr(t,{precision:r&&n>-1&&n<1&&0!==n?5:e}).value},Zr="22rem",qr={dateOnly:"MM/DD/YY",dateWithTime:"MM/DD/YYYY h:mm A",shortDateWithTime:"MMM D, h:mm A",shortDateWithYear:"MMM D, YYYY"};mr.extend(_r);const Yr=({dateFormat:t=qr.dateOnly,timeString:e})=>mr.utc(e).local().format(t),{definePartsStyle:Xr,defineMultiStyleConfig:Kr}=o(qe.keys),Gr=Kr({baseStyle:Xr({root:{display:"flex",flexDirection:"column",gap:2},container:{borderRadius:"lg",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.300",bg:"gray.100",color:Ur.black(),overflow:"hidden",'&:has(button[aria-expanded="true"])':{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"}},button:{px:4,py:4,bg:Ur.white(),fontSize:"md",_hover:{bg:Ur.lighthouse()}},panel:{borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"gray.300",fontSize:"sm",bg:Ur.lighthouse(),py:"4",px:"4"}}),variants:{spacious:Xr({container:{borderRadius:"lg"},button:{py:8,px:6,fontSize:"md"},panel:{fontSize:"sm",bg:Ur.lighthouse(),p:"8"}})}}),{definePartsStyle:Jr,defineMultiStyleConfig:Qr}=o(Ye.keys),tn=Qr({baseStyle:Jr((t=>{const{colorScheme:e,theme:r}=t,n=r.colors[e];return{icon:{svg:{path:{fill:n[500]}}},container:{bg:n[100],borderColor:n[500],borderRadius:"lg",borderStyle:"solid",borderWidth:1,padding:4},description:{color:"blackAlpha.900"},title:{color:"blackAlpha.900"}}})),defaultProps:{variant:"subtle"}}),en=i({borderColor:"red.700",color:"red.700",border:"solid 2px",":hover, :focus":{backgroundColor:"gray.200"},svg:{path:{fill:"red.700"}}}),rn=i({":hover, :focus":{background:"brand.600"}}),nn={color:"brand.700 !important",bg:"brand.50 !important",opacity:"0.6 !important",filter:"grayscale() !important"},on=i({background:"brand.50",color:"brand.500",svg:{path:{fill:"brand.500"}},":hover, :focus":{bg:"brand.100",color:"brand.600",svg:{path:{fill:"brand.600"}}},_disabled:{...nn},":hover[disabled], :focus[disabled]":{...nn},_active:{bg:"brand.100",color:"brand.600",svg:{path:{fill:"brand.600"}}}}),an=i({border:"solid 2px",borderColor:"brand.600",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),cn=i({boxShadow:"none",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),un=a({baseStyle:{boxShadow:"0px 8px 16px 0px rgba(0,0,0,0.08)",svg:{width:"1em",height:"1em",path:{fill:"white"}}},sizes:{xs:i({lineHeight:1})},variants:{alert:en,outline:an,ghost:cn,secondary:on,solid:rn}}),{definePartsStyle:ln,defineMultiStyleConfig:sn}=o(Xe.keys),fn=sn({baseStyle:ln({control:{borderRadius:"base",borderColor:"brand.500",svg:{path:{fill:"inherit"}},_checked:{svg:{path:{fill:"white"}}},_indeterminate:{svg:{path:{fill:"white"}}},_hover:{bg:"gray.50",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)",_indeterminate:{bg:"brand.600"},_disabled:{bg:"gray.100"}},_invalid:{_checked:{borderColor:"brand.500"}}}}),sizes:{lg:{control:{boxSize:7,svg:{width:"1.75em"}}},md:{control:{boxSize:6,svg:{width:"1.5em"}}},sm:{control:{boxSize:4,svg:{width:"1.5em"}}}}}),pn=a({baseStyle:{helperText:{fontSize:"sm"}}}),dn=a({sizes:{sm:{text:{fontSize:"xs"}},xs:{text:{fontSize:"xs"}}}}),hn=a({baseStyle:{display:"inline-block",color:Ur.sonicSilver(),fontFamily:"heading",fontSize:"sm",cursor:"pointer",_disabled:{opacity:1}},sizes:{sm:{fontSize:"sm"},xs:{fontSize:"xs"}}}),yn=a({sizes:{xl:i({fontSize:"4xl"}),lg:i({fontSize:"3xl"}),md:i({fontSize:"2xl"}),sm:i({fontSize:"xl"}),xs:i({fontSize:"md"})}}),{definePartsStyle:vn,defineMultiStyleConfig:gn}=o(Ke.keys),mn=gn({baseStyle:vn({group:{"svg:not(.asset-logo)":{width:"1em",height:"1em"}},field:{_readOnly:{pointerEvents:"none"}}}),sizes:{lg:vn({field:{fontSize:"md"}})},variants:{outline:{group:{"svg:not(.asset-logo)":{path:{fill:Ur.sonicSilver()}},_groupFocus:{"svg:not(.asset-logo)":{path:{fill:Ur.black()}}},_groupDisabled:{"svg:not(.asset-logo)":{path:{fill:Ur.coolElegance()}}}},field:{border:"solid 1px",borderRadius:"lg",borderColor:Ur.coolElegance(),color:Ur.sonicSilver(),":focus":{color:Ur.black(),borderColor:Ur.black()},":hover:not([disabled])":{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},_disabled:{color:Ur.sonicSilver(),opacity:1,bg:Ur.lighthouse(),":focus, :hover":{borderColor:Ur.coolElegance(),bg:Ur.lighthouse()}},_invalid:{":focus, :hover":{borderColor:"red.500"}}},addon:{bg:"white",border:"solid 1px",borderRadius:"lg",borderColor:Ur.coolElegance(),color:Ur.black(),":hover:not([disabled])":{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},":focus":{borderColor:Ur.black()},_disabled:{color:Ur.sonicSilver(),opacity:1,bg:Ur.lighthouse(),":focus, :hover":{borderColor:Ur.coolElegance(),bg:Ur.lighthouse()}},_invalid:{":focus, :hover":{borderColor:"red.500"}}}}},defaultProps:{size:"lg",variant:"outline"}}),{definePartsStyle:bn,defineMultiStyleConfig:wn}=o(Ge.keys),xn=wn({baseStyle:bn({field:{_readOnly:{pointerEvents:"none"}}}),sizes:{lg:bn({field:{fontSize:"md"}})},variants:{outline:{field:{border:"solid 1px",borderColor:Ur.coolElegance(),borderRadius:"lg",color:Ur.sonicSilver(),pr:10,_focus:{color:Ur.black(),borderColor:Ur.black(),"+.chakra-select__icon-wrapper":{svg:{color:Ur.black(),path:{fill:Ur.black()}}}},":hover:not([disabled])":{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},_disabled:{color:Ur.sonicSilver(),opacity:1,bg:Ur.lighthouse(),":focus, :hover":{borderColor:Ur.coolElegance(),bg:Ur.lighthouse()}},_invalid:{":focus, :hover":{borderColor:"red.500"}}},icon:{width:"1em",height:"1em",fontSize:"1em",mr:2,path:{fill:Ur.sonicSilver()},_disabled:{opacity:1,path:{fill:Ur.coolElegance()}}}}},defaultProps:{size:"lg",variant:"outline"}}),On=a({variants:{simple:{th:{borderColor:Ur.coolElegance()},td:{borderColor:Ur.coolElegance()},tr:{_last:{td:{border:"none"}}}},grayHeader:{th:{background:Ur.lighthouse(),color:Ur.sonicSilver(),borderBottom:"1px solid",borderColor:Ur.coolElegance()},td:{borderBottom:"1px solid",borderColor:Ur.coolElegance()},tr:{_last:{td:{border:"none"}}}}}}),{definePartsStyle:Sn,defineMultiStyleConfig:_n}=o(Je.keys),jn=Sn({container:{color:"blackAlpha.900",fontWeight:"bold",borderRadius:"full",svg:{path:{fill:"blackAlpha.900"}}}}),Pn=Sn({container:{bg:"red.100",borderWidth:1,borderColor:"red.500"}}),An=Sn({container:{bg:"yellow.100",borderColor:"yellow.500",borderWidth:1}});var Mn=c({colors:{brand:{50:"#fcf2fe",100:"#f0c4f9",200:"#eaacf7",300:"#e495f4",400:"#de7ef2",500:"#d250ed",600:"#c622e8",700:"#b816da",800:"#a514c3",900:"#7e0f95"}},components:{Accordion:Gr,Alert:tn,Button:un,Checkbox:fn,Input:mn,Heading:yn,Form:pn,FormLabel:hn,FormError:dn,Select:xn,Table:On,Tag:_n({baseStyle:jn,defaultProps:{variant:"outline"},variants:{error:Pn,success:Sn({container:{bg:"green.100",borderColor:"green.500",borderWidth:1}}),warning:An,outline:{container:{boxShadow:"none",borderColor:"brand.500",borderWidth:1}}},sizes:{sm:{container:{px:4,py:0}},md:{container:{px:6,py:1}},lg:{container:{px:6,py:1}}}})},styles:{global:{"[data-focus], :focus":{boxShadow:"none !important"},"::placeholder":{color:"gray.500"},"input[type=date]:invalid::-webkit-datetime-edit":{color:"gray.500"},"::-webkit-calendar-picker-indicator":{cursor:"pointer",filter:"opacity(40%)"},".recharts-surface":{overflow:"visible !important"},".recharts-surface .shadow":{filter:"drop-shadow(0 3px 5px rgba(0, 0, 0, 0.075))"}}}},u({colorScheme:"brand"}));const kn={components:Mn.components,styles:Mn.styles},En=t=>{const e=String(t).replace(/\D/g,"").match(/^(\d{3})(\d{3})(\d{4})$/);return e?`(${e[1]}) ${e[2]}-${e[3]}`:t};let Cn,Tn,Dn=(t=21)=>{var e;e=t|=0,!Cn||Cn.length<e?(Cn=Buffer.allocUnsafe(128*e),lt.randomFillSync(Cn),Tn=0):Tn+e>Cn.length&&(lt.randomFillSync(Cn),Tn=0),Tn+=e;let r="";for(let e=Tn-t;e<Tn;e++)r+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&Cn[e]];return r};function In(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=In(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Nn(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=In(t))&&(n&&(n+=" "),n+=e);return n}var Rn,Ln,Bn,zn,$n,Hn,Fn,Un,Vn,Wn,Zn,qn,Yn,Xn,Kn,Gn,Jn,Qn,to,eo,ro,no,oo,io,ao,co,uo,lo,so,fo,po,ho,yo,vo,go,mo,bo,wo,xo,Oo,So,_o,jo,Po,Ao,Mo,ko,Eo,Co,To,Do,Io,No,Ro,Lo,Bo,zo,$o,Ho,Fo,Uo,Vo,Wo,Zo,qo,Yo,Xo,Ko,Go,Jo,Qo,ti,ei,ri,ni,oi,ii,ai,ci,ui,li,si,fi,pi,di,hi,yi,vi,gi,mi,bi,wi,xi,Oi,Si,_i,ji,Pi,Ai,Mi,ki,Ei,Ci,Ti;function Di(){if(Ln)return Rn;Ln=1;var t=Array.isArray;return Rn=t}function Ii(){if(zn)return Bn;zn=1;var t="object"==typeof pr&&pr&&pr.Object===Object&&pr;return Bn=t}function Ni(){if(Hn)return $n;Hn=1;var t=Ii(),e="object"==typeof self&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return $n=r}function Ri(){if(Un)return Fn;Un=1;var t=Ni().Symbol;return Fn=t}function Li(){if(Xn)return Yn;Xn=1;var t=Ri(),e=function(){if(Wn)return Vn;Wn=1;var t=Ri(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,o=t?t.toStringTag:void 0;return Vn=function(t){var e=r.call(t,o),i=t[o];try{t[o]=void 0;var a=!0}catch(t){}var c=n.call(t);return a&&(e?t[o]=i:delete t[o]),c}}(),r=function(){if(qn)return Zn;qn=1;var t=Object.prototype.toString;return Zn=function(e){return t.call(e)}}(),n=t?t.toStringTag:void 0;return Yn=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":n&&n in Object(t)?e(t):r(t)}}function Bi(){if(Gn)return Kn;return Gn=1,Kn=function(t){return null!=t&&"object"==typeof t}}function zi(){if(Qn)return Jn;Qn=1;var t=Li(),e=Bi();return Jn=function(r){return"symbol"==typeof r||e(r)&&"[object Symbol]"==t(r)}}function $i(){if(eo)return to;eo=1;var t=Di(),e=zi(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return to=function(o,i){if(t(o))return!1;var a=typeof o;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=o&&!e(o))||(n.test(o)||!r.test(o)||null!=i&&o in Object(i))},to}function Hi(){if(no)return ro;return no=1,ro=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}}function Fi(){if(io)return oo;io=1;var t=Li(),e=Hi();return oo=function(r){if(!e(r))return!1;var n=t(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}}function Ui(){if(lo)return uo;lo=1;var t,e=function(){if(co)return ao;co=1;var t=Ni()["__core-js_shared__"];return ao=t}(),r=(t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return uo=function(t){return!!r&&r in t}}function Vi(){if(fo)return so;fo=1;var t=Function.prototype.toString;return so=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function Wi(){if(mo)return go;mo=1;var t=function(){if(ho)return po;ho=1;var t=Fi(),e=Ui(),r=Hi(),n=Vi(),o=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,c=i.toString,u=a.hasOwnProperty,l=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return po=function(i){return!(!r(i)||e(i))&&(t(i)?l:o).test(n(i))}}(),e=(vo||(vo=1,yo=function(t,e){return null==t?void 0:t[e]}),yo);return go=function(r,n){var o=e(r,n);return t(o)?o:void 0},go}function Zi(){if(wo)return bo;wo=1;var t=Wi()(Object,"create");return bo=t}function qi(){if(To)return Co;To=1;var t=function(){if(Oo)return xo;Oo=1;var t=Zi();return xo=function(){this.__data__=t?t(null):{},this.size=0}}(),e=_o?So:(_o=1,So=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),r=function(){if(Po)return jo;Po=1;var t=Zi(),e=Object.prototype.hasOwnProperty;return jo=function(r){var n=this.__data__;if(t){var o=n[r];return"__lodash_hash_undefined__"===o?void 0:o}return e.call(n,r)?n[r]:void 0}}(),n=function(){if(Mo)return Ao;Mo=1;var t=Zi(),e=Object.prototype.hasOwnProperty;return Ao=function(r){var n=this.__data__;return t?void 0!==n[r]:e.call(n,r)}}(),o=function(){if(Eo)return ko;Eo=1;var t=Zi();return ko=function(e,r){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=t&&void 0===r?"__lodash_hash_undefined__":r,this}}();function i(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])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,Co=i}function Yi(){if(Ro)return No;return Ro=1,No=function(t,e){return t===e||t!=t&&e!=e}}function Xi(){if(Bo)return Lo;Bo=1;var t=Yi();return Lo=function(e,r){for(var n=e.length;n--;)if(t(e[n][0],r))return n;return-1},Lo}function Ki(){if(Yo)return qo;Yo=1;var t=Io?Do:(Io=1,Do=function(){this.__data__=[],this.size=0}),e=function(){if($o)return zo;$o=1;var t=Xi(),e=Array.prototype.splice;return zo=function(r){var n=this.__data__,o=t(n,r);return!(o<0||(o==n.length-1?n.pop():e.call(n,o,1),--this.size,0))}}(),r=function(){if(Fo)return Ho;Fo=1;var t=Xi();return Ho=function(e){var r=this.__data__,n=t(r,e);return n<0?void 0:r[n][1]}}(),n=function(){if(Vo)return Uo;Vo=1;var t=Xi();return Uo=function(e){return t(this.__data__,e)>-1}}(),o=function(){if(Zo)return Wo;Zo=1;var t=Xi();return Wo=function(e,r){var n=this.__data__,o=t(n,e);return o<0?(++this.size,n.push([e,r])):n[o][1]=r,this}}();function i(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])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,qo=i}function Gi(){if(Ko)return Xo;Ko=1;var t=Wi()(Ni(),"Map");return Xo=t}function Ji(){if(ri)return ei;ri=1;var t=ti?Qo:(ti=1,Qo=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t});return ei=function(e,r){var n=e.__data__;return t(r)?n["string"==typeof r?"string":"hash"]:n.map},ei}function Qi(){if(pi)return fi;pi=1;var t=function(){if(Jo)return Go;Jo=1;var t=qi(),e=Ki(),r=Gi();return Go=function(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}}(),e=function(){if(oi)return ni;oi=1;var t=Ji();return ni=function(e){var r=t(this,e).delete(e);return this.size-=r?1:0,r}}(),r=function(){if(ai)return ii;ai=1;var t=Ji();return ii=function(e){return t(this,e).get(e)}}(),n=function(){if(ui)return ci;ui=1;var t=Ji();return ci=function(e){return t(this,e).has(e)}}(),o=function(){if(si)return li;si=1;var t=Ji();return li=function(e,r){var n=t(this,e),o=n.size;return n.set(e,r),this.size+=n.size==o?0:1,this}}();function i(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])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=r,i.prototype.has=n,i.prototype.set=o,fi=i}function ta(){if(hi)return di;hi=1;var t=Qi();function e(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var o=function(){var t=arguments,e=n?n.apply(this,t):t[0],i=o.cache;if(i.has(e))return i.get(e);var a=r.apply(this,t);return o.cache=i.set(e,a)||i,a};return o.cache=new(e.Cache||t),o}return e.Cache=t,di=e}function ea(){if(mi)return gi;mi=1;var t=function(){if(vi)return yi;vi=1;var t=ta();return yi=function(e){var r=t(e,(function(t){return 500===n.size&&n.clear(),t})),n=r.cache;return r}}(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(e,(function(t,e,o,i){n.push(o?i.replace(r,"$1"):e||t)})),n}));return gi=n}function ra(){if(wi)return bi;return wi=1,bi=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},bi}function na(){if(_i)return Si;_i=1;var t=function(){if(Oi)return xi;Oi=1;var t=Ri(),e=ra(),r=Di(),n=zi(),o=t?t.prototype:void 0,i=o?o.toString:void 0;return xi=function t(o){if("string"==typeof o)return o;if(r(o))return e(o,t)+"";if(n(o))return i?i.call(o):"";var a=o+"";return"0"==a&&1/o==-1/0?"-0":a},xi}();return Si=function(e){return null==e?"":t(e)}}function oa(){if(Pi)return ji;Pi=1;var t=Di(),e=$i(),r=ea(),n=na();return ji=function(o,i){return t(o)?o:e(o,i)?[o]:r(n(o))},ji}function ia(){if(Mi)return Ai;Mi=1;var t=zi();return Ai=function(e){if("string"==typeof e||t(e))return e;var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}}function aa(){if(Ei)return ki;Ei=1;var t=oa(),e=ia();return ki=function(r,n){for(var o=0,i=(n=t(n,r)).length;null!=r&&o<i;)r=r[e(n[o++])];return o&&o==i?r:void 0},ki}function ca(){if(Ti)return Ci;Ti=1;var t=aa();return Ci=function(e,r,n){var o=null==e?void 0:t(e,r);return void 0===o?n:o},Ci}var ua,la,sa=dr(ca());var fa,pa,da=dr(la?ua:(la=1,ua=function(t){return null==t}));var ha,ya=function(){if(pa)return fa;pa=1;var t=Li(),e=Di(),r=Bi();return fa=function(n){return"string"==typeof n||!e(n)&&r(n)&&"[object String]"==t(n)}}(),va=dr(ya),ga=dr(Fi()),ma=dr(Hi()),ba={exports:{}},wa={};var xa,Oa,Sa={};
10
10
  /**
11
11
  * @license React
12
12
  * react-is.development.js
@@ -15,7 +15,7 @@ var Ar={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,patte
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var Oa,Sa,_a,ja,Pa=(wa||(wa=1,"production"===process.env.NODE_ENV?ga.exports=function(){if(pa)return ma;pa=1;var t,e=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function y(t){if("object"==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:switch(t=t.type){case n:case i:case o:case s:case f:return t;default:switch(t=t&&t.$$typeof){case u:case c:case l:case d:case p:case a:return t;default:return h}}case r:return h}}}return t=Symbol.for("react.module.reference"),ma.ContextConsumer=c,ma.ContextProvider=a,ma.Element=e,ma.ForwardRef=l,ma.Fragment=n,ma.Lazy=d,ma.Memo=p,ma.Portal=r,ma.Profiler=i,ma.StrictMode=o,ma.Suspense=s,ma.SuspenseList=f,ma.isAsyncMode=function(){return!1},ma.isConcurrentMode=function(){return!1},ma.isContextConsumer=function(t){return y(t)===c},ma.isContextProvider=function(t){return y(t)===a},ma.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},ma.isForwardRef=function(t){return y(t)===l},ma.isFragment=function(t){return y(t)===n},ma.isLazy=function(t){return y(t)===d},ma.isMemo=function(t){return y(t)===p},ma.isPortal=function(t){return y(t)===r},ma.isProfiler=function(t){return y(t)===i},ma.isStrictMode=function(t){return y(t)===o},ma.isSuspense=function(t){return y(t)===s},ma.isSuspenseList=function(t){return y(t)===f},ma.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===i||e===o||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===l||e.$$typeof===t||void 0!==e.getModuleId)},ma.typeOf=y,ma}():ga.exports=(ba||(ba=1,"production"!==process.env.NODE_ENV&&function(){var t,e=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function y(t){if("object"==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:var y=t.type;switch(y){case n:case i:case o:case s:case f:return y;default:var v=y&&y.$$typeof;switch(v){case u:case c:case l:case d:case p:case a:return v;default:return h}}case r:return h}}}t=Symbol.for("react.module.reference");var v=c,g=a,m=e,b=l,w=n,x=d,O=p,S=r,_=i,j=o,P=s,A=f,M=!1,k=!1;xa.ContextConsumer=v,xa.ContextProvider=g,xa.Element=m,xa.ForwardRef=b,xa.Fragment=w,xa.Lazy=x,xa.Memo=O,xa.Portal=S,xa.Profiler=_,xa.StrictMode=j,xa.Suspense=P,xa.SuspenseList=A,xa.isAsyncMode=function(t){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},xa.isConcurrentMode=function(t){return k||(k=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},xa.isContextConsumer=function(t){return y(t)===c},xa.isContextProvider=function(t){return y(t)===a},xa.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},xa.isForwardRef=function(t){return y(t)===l},xa.isFragment=function(t){return y(t)===n},xa.isLazy=function(t){return y(t)===d},xa.isMemo=function(t){return y(t)===p},xa.isPortal=function(t){return y(t)===r},xa.isProfiler=function(t){return y(t)===i},xa.isStrictMode=function(t){return y(t)===o},xa.isSuspense=function(t){return y(t)===s},xa.isSuspenseList=function(t){return y(t)===f},xa.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===i||e===o||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===l||e.$$typeof===t||void 0!==e.getModuleId)},xa.typeOf=y}()),xa)),ga.exports);function Aa(){if(Sa)return Oa;Sa=1;var t=Ni(),e=Ri();return Oa=function(r){return"number"==typeof r||e(r)&&"[object Number]"==t(r)}}var Ma=function(){if(ja)return _a;ja=1;var t=Aa();return _a=function(e){return t(e)&&e!=+e}}(),ka=dr(Ma),Ea=dr(Aa()),Ca=function(t){return 0===t?0:t>0?1:-1},Ta=function(t){return ha(t)&&t.indexOf("%")===t.length-1},Da=function(t){return Ea(t)&&!ka(t)},Ia=function(t){return Da(t)||ha(t)},Na=0,Ra=function(t){var e=++Na;return"".concat(t||"").concat(e)},La=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(!Da(t)&&!ha(t))return n;if(Ta(t)){var i=t.indexOf("%");r=e*parseFloat(t.slice(0,i))/100}else r=+t;return ka(r)&&(r=n),o&&r>e&&(r=e),r},Ba=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},za=function(t,e){return Da(t)&&Da(e)?function(r){return t+r*(e-t)}:function(){return e}};function $a(t,e,r){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):ua(t,e))===r})):null}function Ha(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function Fa(t){return Fa="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},Fa(t)}var Ua=["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"],Va=["points","pathLength"],Wa={svg:["viewBox","children"],polygon:Va,polyline:Va},Za=["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"],qa=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if(ft(t)&&(r=t.props),!va(r))return null;var n={};return Object.keys(r).forEach((function(t){Za.includes(t)&&(n[t]=e||function(e){return r[t](r,e)})})),n},Ya=function(t,e,r){if(!va(t)||"object"!==Fa(t))return null;var n=null;return Object.keys(t).forEach((function(o){var i=t[o];Za.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},Xa=["children"],Ka=["children"];function Ga(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Ja(t){return Ja="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},Ja(t)}var Qa={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},tc=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},ec=null,rc=null,nc=function t(e){if(e===ec&&Array.isArray(rc))return rc;var r=[];return pt.forEach(e,(function(e){fa(e)||(Pa.isFragment(e)?r=r.concat(t(e.props.children)):r.push(e))})),rc=r,ec=e,r};function oc(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map((function(t){return tc(t)})):[tc(e)],nc(t).forEach((function(t){var e=ua(t,"type.displayName")||ua(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function ic(t,e){var r=oc(t,e);return r&&r[0]}var ac=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!Da(r)||r<=0||!Da(n)||n<=0)},cc=["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"],uc=function(t){return t&&"object"===Ja(t)&&"clipDot"in t},lc=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if(ft(t)&&(n=t.props),!va(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==Wa?void 0:Wa[n])&&void 0!==o?o:[];return!ya(t)&&(n&&i.includes(e)||Ua.includes(e))||r&&Za.includes(e)})(null===(i=n)||void 0===i?void 0:i[t],t,e,r)&&(o[t]=n[t])})),o},sc=function t(e,r){if(e===r)return!0;var n=pt.count(e);if(n!==pt.count(r))return!1;if(0===n)return!0;if(1===n)return fc(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var o=0;o<n;o++){var i=e[o],a=r[o];if(Array.isArray(i)||Array.isArray(a)){if(!t(i,a))return!1}else if(!fc(i,a))return!1}return!0},fc=function(t,e){if(fa(t)&&fa(e))return!0;if(!fa(t)&&!fa(e)){var r=t.props||{},n=r.children,o=Ga(r,Xa),i=e.props||{},a=i.children,c=Ga(i,Ka);return n&&a?Ha(o,c)&&sc(n,a):!n&&!a&&Ha(o,c)}return!1},pc=function(t,e){var r=[],n={};return nc(t).forEach((function(t,o){if(function(t){return t&&t.type&&ha(t.type)&&cc.indexOf(t.type)>=0}(t))r.push(t);else if(t){var i=tc(t.type),a=e[i]||{},c=a.handler,u=a.once;if(c&&(!u||!n[i])){var l=c(t,i,o);r.push(l),n[i]=!0}}})),r},dc=["children","width","height","viewBox","className","style","title","desc"];function hc(){return hc=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},hc.apply(this,arguments)}function yc(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function vc(t){var e=t.children,r=t.width,n=t.height,o=t.viewBox,i=t.className,a=t.style,c=t.title,u=t.desc,l=yc(t,dc),s=o||{width:r,height:n,x:0,y:0},f=Dn("recharts-surface",i);return st.createElement("svg",hc({},lc(l,!0,"svg"),{className:f,width:r,height:n,style:a,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),st.createElement("title",null,c),st.createElement("desc",null,u),e)}var gc=["children","className"];function mc(){return mc=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},mc.apply(this,arguments)}function bc(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var wc,xc,Oc,Sc,_c,jc,Pc,Ac,Mc,kc,Ec,Cc,Tc,Dc,Ic,Nc,Rc=st.forwardRef((function(t,e){var r=t.children,n=t.className,o=bc(t,gc),i=Dn("recharts-layer",n);return st.createElement("g",mc({className:i},lc(o,!0),{ref:e}),r)})),Lc="production"!==process.env.NODE_ENV,Bc=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];if(Lc&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(e.replace(/%s/g,(function(){return n[i++]})))}};function zc(){if(Sc)return Oc;Sc=1;var t=(xc||(xc=1,wc=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}),wc);return Oc=function(e,r,n){var o=e.length;return n=void 0===n?o:n,!r&&n>=o?e:t(e,r,n)},Oc}function $c(){if(jc)return _c;jc=1;var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return _c=function(e){return t.test(e)},_c}function Hc(){if(Cc)return Ec;Cc=1;var t=(Ac||(Ac=1,Pc=function(t){return t.split("")}),Pc),e=$c(),r=function(){if(kc)return Mc;kc=1;var t="\\ud800-\\udfff",e="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+n+")?",u="[\\ufe0e\\ufe0f]?",l=u+c+"(?:\\u200d(?:"+[o,i,a].join("|")+")"+u+c+")*",s="(?:"+[o+r+"?",r,i,a,e].join("|")+")",f=RegExp(n+"(?="+n+")|"+s+l,"g");return Mc=function(t){return t.match(f)||[]},Mc}();return Ec=function(n){return e(n)?r(n):t(n)},Ec}var Fc=function(){if(Nc)return Ic;Nc=1;var t=function(){if(Dc)return Tc;Dc=1;var t=zc(),e=$c(),r=Hc(),n=ea();return Tc=function(o){return function(i){i=n(i);var a=e(i)?r(i):void 0,c=a?a[0]:i.charAt(0),u=a?t(a,1).join(""):i.slice(1);return c[o]()+u}},Tc}(),e=t("toUpperCase");return Ic=e}(),Uc=dr(Fc);function Vc(t){return function(){return t}}const Wc=Math.cos,Zc=Math.sin,qc=Math.sqrt,Yc=Math.PI,Xc=2*Yc,Kc=Math.PI,Gc=2*Kc,Jc=1e-6,Qc=Gc-Jc;function tu(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class eu{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?tu:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return tu;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,o,i){this._append`C${+t},${+e},${+r},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(t,e,r,n,o){if(t=+t,e=+e,r=+r,n=+n,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,c=r-t,u=n-e,l=i-t,s=a-e,f=l*l+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>Jc)if(Math.abs(s*c-u*l)>Jc&&o){let p=r-i,d=n-a,h=c*c+u*u,y=p*p+d*d,v=Math.sqrt(h),g=Math.sqrt(f),m=o*Math.tan((Kc-Math.acos((h+f-y)/(2*v*g)))/2),b=m/g,w=m/v;Math.abs(b-1)>Jc&&this._append`L${t+b*l},${e+b*s}`,this._append`A${o},${o},0,0,${+(s*p>l*d)},${this._x1=t+w*c},${this._y1=e+w*u}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,r,n,o,i){if(t=+t,e=+e,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),u=t+a,l=e+c,s=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Jc||Math.abs(this._y1-l)>Jc)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%Gc+Gc),f>Qc?this._append`A${r},${r},0,1,${s},${t-a},${e-c}A${r},${r},0,1,${s},${this._x1=u},${this._y1=l}`:f>Jc&&this._append`A${r},${r},0,${+(f>=Kc)},${s},${this._x1=t+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function ru(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 eu(e)}function nu(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function ou(t){this._context=t}function iu(t){return new ou(t)}function au(t){return t[0]}function cu(t){return t[1]}function uu(t,e){var r=Vc(!0),n=null,o=iu,i=null,a=ru(c);function c(c){var u,l,s,f=(c=nu(c)).length,p=!1;for(null==n&&(i=o(s=a())),u=0;u<=f;++u)!(u<f&&r(l=c[u],u,c))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(l,u,c),+e(l,u,c));if(s)return i=null,s+""||null}return t="function"==typeof t?t:void 0===t?au:Vc(t),e="function"==typeof e?e:void 0===e?cu:Vc(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:Vc(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:Vc(+t),c):e},c.defined=function(t){return arguments.length?(r="function"==typeof t?t:Vc(!!t),c):r},c.curve=function(t){return arguments.length?(o=t,null!=n&&(i=o(n)),c):o},c.context=function(t){return arguments.length?(null==t?n=i=null:i=o(n=t),c):n},c}function lu(t,e,r){var n=null,o=Vc(!0),i=null,a=iu,c=null,u=ru(l);function l(l){var s,f,p,d,h,y=(l=nu(l)).length,v=!1,g=new Array(y),m=new Array(y);for(null==i&&(c=a(h=u())),s=0;s<=y;++s){if(!(s<y&&o(d=l[s],s,l))===v)if(v=!v)f=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),p=s-1;p>=f;--p)c.point(g[p],m[p]);c.lineEnd(),c.areaEnd()}v&&(g[s]=+t(d,s,l),m[s]=+e(d,s,l),c.point(n?+n(d,s,l):g[s],r?+r(d,s,l):m[s]))}if(h)return c=null,h+""||null}function s(){return uu().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?au:Vc(+t),e="function"==typeof e?e:Vc(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?cu:Vc(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:Vc(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:Vc(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Vc(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:Vc(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:Vc(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Vc(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:Vc(!!t),l):o},l.curve=function(t){return arguments.length?(a=t,null!=i&&(c=a(i)),l):a},l.context=function(t){return arguments.length?(null==t?i=c=null:c=a(i=t),l):i},l}ou.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)}}};class su{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}}var fu={draw(t,e){const r=qc(e/Yc);t.moveTo(r,0),t.arc(0,0,r,0,Xc)}},pu={draw(t,e){const r=qc(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()}};const du=qc(1/3),hu=2*du;var yu={draw(t,e){const r=qc(e/hu),n=r*du;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},vu={draw(t,e){const r=qc(e),n=-r/2;t.rect(n,n,r,r)}};const gu=Zc(Yc/10)/Zc(7*Yc/10),mu=Zc(Xc/10)*gu,bu=-Wc(Xc/10)*gu;var wu={draw(t,e){const r=qc(.8908130915292852*e),n=mu*r,o=bu*r;t.moveTo(0,-r),t.lineTo(n,o);for(let e=1;e<5;++e){const i=Xc*e/5,a=Wc(i),c=Zc(i);t.lineTo(c*r,-a*r),t.lineTo(a*n-c*o,c*n+a*o)}t.closePath()}};const xu=qc(3);var Ou={draw(t,e){const r=-qc(e/(3*xu));t.moveTo(0,2*r),t.lineTo(-xu*r,-r),t.lineTo(xu*r,-r),t.closePath()}};const Su=-.5,_u=qc(3)/2,ju=1/qc(12),Pu=3*(ju/2+1);var Au={draw(t,e){const r=qc(e/Pu),n=r/2,o=r*ju,i=n,a=r*ju+r,c=-i,u=a;t.moveTo(n,o),t.lineTo(i,a),t.lineTo(c,u),t.lineTo(Su*n-_u*o,_u*n+Su*o),t.lineTo(Su*i-_u*a,_u*i+Su*a),t.lineTo(Su*c-_u*u,_u*c+Su*u),t.lineTo(Su*n+_u*o,Su*o-_u*n),t.lineTo(Su*i+_u*a,Su*a-_u*i),t.lineTo(Su*c+_u*u,Su*u-_u*c),t.closePath()}};function Mu(){}function ku(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 Eu(t){this._context=t}function Cu(t){this._context=t}function Tu(t){this._context=t}function Du(t){this._context=t}function Iu(t){return t<0?-1:1}function Nu(t,e,r){var n=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0),c=(i*o+a*n)/(n+o);return(Iu(i)+Iu(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(c))||0}function Ru(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Lu(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,c=(i-n)/3;t._context.bezierCurveTo(n+c,o+c*e,i-c,a-c*r,i,a)}function Bu(t){this._context=t}function zu(t){this._context=new $u(t)}function $u(t){this._context=t}function Hu(t){this._context=t}function Fu(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 Uu(t,e){this._context=t,this._t=e}function Vu(t,e){if((o=t.length)>1)for(var r,n,o,i=1,a=t[e[0]],c=a.length;i<o;++i)for(n=a,a=t[e[i]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Wu(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function Zu(t,e){return t[e]}function qu(t){const e=[];return e.key=t,e}function Yu(t){return Yu="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},Yu(t)}Eu.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:ku(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:ku(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Cu.prototype={areaStart:Mu,areaEnd:Mu,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:ku(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Tu.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:ku(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Du.prototype={areaStart:Mu,areaEnd:Mu,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))}},Bu.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:Lu(this,this._t0,Ru(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,Lu(this,Ru(this,r=Nu(this,t,e)),r);break;default:Lu(this,this._t0,r=Nu(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(zu.prototype=Object.create(Bu.prototype)).point=function(t,e){Bu.prototype.point.call(this,e,t)},$u.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)}},Hu.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=Fu(t),o=Fu(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)}},Uu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var Xu=["type","size","sizeType"];function Ku(){return Ku=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},Ku.apply(this,arguments)}function Gu(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 Ju(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Gu(Object(r),!0).forEach((function(e){Qu(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gu(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Qu(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Yu(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Yu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Yu(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tl(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var el={symbolCircle:fu,symbolCross:pu,symbolDiamond:yu,symbolSquare:vu,symbolStar:wu,symbolTriangle:Ou,symbolWye:Au},rl=Math.PI/180,nl=function(t){var e,r,n=t.type,o=void 0===n?"circle":n,i=t.size,a=void 0===i?64:i,c=t.sizeType,u=void 0===c?"area":c,l=Ju(Ju({},tl(t,Xu)),{},{type:o,size:a,sizeType:u}),s=l.className,f=l.cx,p=l.cy,d=lc(l,!0);return f===+f&&p===+p&&a===+a?st.createElement("path",Ku({},d,{className:Dn("recharts-symbols",s),transform:"translate(".concat(f,", ").concat(p,")"),d:(e=function(t){var e="symbol".concat(Uc(t));return el[e]||fu}(o),r=function(t,e){let r=null,n=ru(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:Vc(t||fu),e="function"==typeof e?e:Vc(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:Vc(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:Vc(+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*rl;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,u,o)),r())})):null};function ol(t){return ol="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ol(t)}function il(){return il=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},il.apply(this,arguments)}function al(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 cl(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,dl(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ul(t,e,r){return e=sl(e),function(t,e){if(e&&("object"===ol(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ll()?Reflect.construct(e,r||[],sl(t).constructor):e.apply(t,r))}function ll(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ll=function(){return!!t})()}function sl(t){return sl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sl(t)}function fl(t,e){return fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fl(t,e)}function pl(t,e,r){return(e=dl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dl(t){var e=function(t,e){if("object"!=ol(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=ol(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==ol(e)?e:e+""}nl.registerSymbol=function(t,e){el["symbol".concat(Uc(t))]=e};var hl,yl,vl,gl,ml,bl,wl,xl,Ol,Sl,_l,jl,Pl,Al,Ml,kl,El,Cl,Tl,Dl,Il,Nl,Rl,Ll,Bl,zl,$l,Hl,Fl,Ul,Vl,Wl,Zl,ql,Yl,Xl,Kl,Gl,Jl,Ql,ts,es,rs,ns,os,is,as,cs,us=32,ls=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),ul(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fl(t,e)}(e,dt),cl(e,[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=16,n=us/6,o=us/3,i=t.inactive?e:t.color;if("plainline"===t.type)return st.createElement("line",{strokeWidth:4,fill:"none",stroke:i,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:r,x2:us,y2:r,className:"recharts-legend-icon"});if("line"===t.type)return st.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(us,"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 st.createElement("path",{stroke:"none",fill:i,d:"M0,".concat(4,"h").concat(us,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(st.isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?al(Object(r),!0).forEach((function(e){pl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):al(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return delete a.legendIcon,st.cloneElement(t.legendIcon,a)}return st.createElement(nl,{fill:i,cx:r,cy:r,size:us,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,c={x:0,y:0,width:us,height:us},u={display:"horizontal"===o?"inline-block":"block",marginRight:10},l={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(e,r){var o=e.formatter||i,s=Dn(pl(pl({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",e.inactive));if("none"===e.type)return null;var f=ya(e.value)?null:e.value;Bc(!ya(e.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var p=e.inactive?a:e.color;return st.createElement("li",il({className:s,style:u,key:"legend-item-".concat(r)},Ya(t.props,e,r)),st.createElement(vc,{width:n,height:n,viewBox:c,style:l},t.renderIcon(e)),st.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},o?o(f,e,r):f))}))}},{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 st.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}])}();function ss(){if(jl)return _l;jl=1;var t=Yi(),e=function(){if(yl)return hl;yl=1;var t=Yi();return hl=function(){this.__data__=new t,this.size=0}}(),r=gl?vl:(gl=1,vl=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}),n=bl?ml:(bl=1,ml=function(t){return this.__data__.get(t)}),o=xl?wl:(xl=1,wl=function(t){return this.__data__.has(t)}),i=function(){if(Sl)return Ol;Sl=1;var t=Yi(),e=Xi(),r=Gi();return Ol=function(n,o){var i=this.__data__;if(i instanceof t){var a=i.__data__;if(!e||a.length<199)return a.push([n,o]),this.size=++i.size,this;i=this.__data__=new r(a)}return i.set(n,o),this.size=i.size,this}}();function a(e){var r=this.__data__=new t(e);this.size=r.size}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=o,a.prototype.set=i,_l=a}function fs(){if(Cl)return El;Cl=1;var t=Gi(),e=Al?Pl:(Al=1,Pl=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),r=kl?Ml:(kl=1,Ml=function(t){return this.__data__.has(t)});function n(e){var r=-1,n=null==e?0:e.length;for(this.__data__=new t;++r<n;)this.add(e[r])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,El=n}function ps(){if(Dl)return Tl;return Dl=1,Tl=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},Tl}function ds(){if(Nl)return Il;return Nl=1,Il=function(t,e){return t.has(e)}}function hs(){if(Ll)return Rl;Ll=1;var t=fs(),e=ps(),r=ds();return Rl=function(n,o,i,a,c,u){var l=1&i,s=n.length,f=o.length;if(s!=f&&!(l&&f>s))return!1;var p=u.get(n),d=u.get(o);if(p&&d)return p==o&&d==n;var h=-1,y=!0,v=2&i?new t:void 0;for(u.set(n,o),u.set(o,n);++h<s;){var g=n[h],m=o[h];if(a)var b=l?a(m,g,h,o,n,u):a(g,m,h,n,o,u);if(void 0!==b){if(b)continue;y=!1;break}if(v){if(!e(o,(function(t,e){if(!r(v,e)&&(g===t||c(g,t,i,a,u)))return v.push(e)}))){y=!1;break}}else if(g!==m&&!c(g,m,i,a,u)){y=!1;break}}return u.delete(n),u.delete(o),y},Rl}function ys(){if(Ul)return Fl;return Ul=1,Fl=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r},Fl}function vs(){if(Wl)return Vl;Wl=1;var t=Ii(),e=function(){if(zl)return Bl;zl=1;var t=Di().Uint8Array;return Bl=t}(),r=Zi(),n=hs(),o=(Hl||(Hl=1,$l=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}),$l),i=ys(),a=t?t.prototype:void 0,c=a?a.valueOf:void 0;return Vl=function(t,a,u,l,s,f,p){switch(u){case"[object DataView]":if(t.byteLength!=a.byteLength||t.byteOffset!=a.byteOffset)return!1;t=t.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=a.byteLength||!f(new e(t),new e(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+t,+a);case"[object Error]":return t.name==a.name&&t.message==a.message;case"[object RegExp]":case"[object String]":return t==a+"";case"[object Map]":var d=o;case"[object Set]":var h=1&l;if(d||(d=i),t.size!=a.size&&!h)return!1;var y=p.get(t);if(y)return y==a;l|=2,p.set(t,a);var v=n(d(t),d(a),l,s,f,p);return p.delete(t),v;case"[object Symbol]":if(c)return c.call(t)==c.call(a)}return!1},Vl}function gs(){if(ql)return Zl;return ql=1,Zl=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t},Zl}function ms(){if(es)return ts;es=1;var t=(Gl||(Gl=1,Kl=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}),Kl),e=Ql?Jl:(Ql=1,Jl=function(){return[]}),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols,o=n?function(e){return null==e?[]:(e=Object(e),t(n(e),(function(t){return r.call(e,t)})))}:e;return ts=o}function bs(){if(cs)return as;cs=1;var t=function(){if(is)return os;is=1;var t=Ni(),e=Ri();return os=function(r){return e(r)&&"[object Arguments]"==t(r)}}(),e=Ri(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=t(function(){return arguments}())?t:function(t){return e(t)&&n.call(t,"callee")&&!o.call(t,"callee")};return as=i}pl(ls,"displayName","Legend"),pl(ls,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ws,xs,Os,Ss,_s,js,Ps,As,Ms,ks,Es,Cs={exports:{}};function Ts(){return Os||(Os=1,function(t,e){var r=Di(),n=xs?ws:(xs=1,ws=function(){return!1}),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;t.exports=c}(Cs,Cs.exports)),Cs.exports}function Ds(){if(_s)return Ss;_s=1;var t=/^(?:0|[1-9]\d*)$/;return Ss=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}}function Is(){if(Ps)return js;Ps=1;return js=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}function Ns(){if(Es)return ks;return Es=1,ks=function(t){return function(e){return t(e)}}}Cs.exports;var Rs,Ls,Bs,zs,$s,Hs,Fs,Us,Vs,Ws,Zs,qs,Ys,Xs,Ks,Gs,Js,Qs,tf,ef,rf,nf,of,af,cf,uf,lf,sf,ff,pf,df,hf,yf,vf,gf,mf,bf,wf,xf,Of,Sf,_f,jf,Pf,Af,Mf,kf,Ef,Cf,Tf,Df,If,Nf,Rf,Lf,Bf,zf,$f,Hf,Ff,Uf,Vf,Wf,Zf,qf,Yf,Xf,Kf,Gf,Jf,Qf,tp,ep,rp,np,op,ip,ap,cp,up,lp,sp,fp,pp={exports:{}};function dp(){if(Bs)return Ls;Bs=1;var t=function(){if(Ms)return As;Ms=1;var t=Ni(),e=Is(),r=Ri(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,As=function(o){return r(o)&&e(o.length)&&!!n[t(o)]}}(),e=Ns(),r=function(){return Rs||(Rs=1,t=pp,e=pp.exports,r=Ti(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}(),t.exports=a),pp.exports;var t,e,r,n,o,i,a}(),n=r&&r.isTypedArray,o=n?e(n):t;return Ls=o}function hp(){if($s)return zs;$s=1;var t=ns?rs:(ns=1,rs=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}),e=bs(),r=Ci(),n=Ts(),o=Ds(),i=dp(),a=Object.prototype.hasOwnProperty;return zs=function(c,u){var l=r(c),s=!l&&e(c),f=!l&&!s&&n(c),p=!l&&!s&&!f&&i(c),d=l||s||f||p,h=d?t(c.length,String):[],y=h.length;for(var v in c)!u&&!a.call(c,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||o(v,y))||h.push(v);return h}}function yp(){if(Vs)return Us;return Vs=1,Us=function(t,e){return function(r){return t(e(r))}}}function vp(){if(Ys)return qs;Ys=1;var t=function(){if(Fs)return Hs;Fs=1;var t=Object.prototype;return Hs=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}}(),e=function(){if(Zs)return Ws;Zs=1;var t=yp()(Object.keys,Object);return Ws=t}(),r=Object.prototype.hasOwnProperty;return qs=function(n){if(!t(n))return e(n);var o=[];for(var i in Object(n))r.call(n,i)&&"constructor"!=i&&o.push(i);return o},qs}function gp(){if(Ks)return Xs;Ks=1;var t=$i(),e=Is();return Xs=function(r){return null!=r&&e(r.length)&&!t(r)}}function mp(){if(Js)return Gs;Js=1;var t=hp(),e=vp(),r=gp();return Gs=function(n){return r(n)?t(n):e(n)},Gs}function bp(){if(tf)return Qs;tf=1;var t=function(){if(Xl)return Yl;Xl=1;var t=gs(),e=Ci();return Yl=function(r,n,o){var i=n(r);return e(r)?i:t(i,o(r))},Yl}(),e=ms(),r=mp();return Qs=function(n){return t(n,r,e)},Qs}function wp(){if(lf)return uf;lf=1;var t=Ui()(Di(),"Set");return uf=t}function xp(){if(df)return pf;df=1;var t=function(){if(of)return nf;of=1;var t=Ui()(Di(),"DataView");return nf=t}(),e=Xi(),r=function(){if(cf)return af;cf=1;var t=Ui()(Di(),"Promise");return af=t}(),n=wp(),o=function(){if(ff)return sf;ff=1;var t=Ui()(Di(),"WeakMap");return sf=t}(),i=Ni(),a=Fi(),c="[object Map]",u="[object Promise]",l="[object Set]",s="[object WeakMap]",f="[object DataView]",p=a(t),d=a(e),h=a(r),y=a(n),v=a(o),g=i;return(t&&g(new t(new ArrayBuffer(1)))!=f||e&&g(new e)!=c||r&&g(r.resolve())!=u||n&&g(new n)!=l||o&&g(new o)!=s)&&(g=function(t){var e=i(t),r="[object Object]"==e?t.constructor:void 0,n=r?a(r):"";if(n)switch(n){case p:return f;case d:return c;case h:return u;case y:return l;case v:return s}return e}),pf=g}function Op(){if(yf)return hf;yf=1;var t=ss(),e=hs(),r=vs(),n=function(){if(rf)return ef;rf=1;var t=bp(),e=Object.prototype.hasOwnProperty;return ef=function(r,n,o,i,a,c){var u=1&o,l=t(r),s=l.length;if(s!=t(n).length&&!u)return!1;for(var f=s;f--;){var p=l[f];if(!(u?p in n:e.call(n,p)))return!1}var d=c.get(r),h=c.get(n);if(d&&h)return d==n&&h==r;var y=!0;c.set(r,n),c.set(n,r);for(var v=u;++f<s;){var g=r[p=l[f]],m=n[p];if(i)var b=u?i(m,g,p,n,r,c):i(g,m,p,r,n,c);if(!(void 0===b?g===m||a(g,m,o,i,c):b)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var w=r.constructor,x=n.constructor;w==x||!("constructor"in r)||!("constructor"in n)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(y=!1)}return c.delete(r),c.delete(n),y},ef}(),o=xp(),i=Ci(),a=Ts(),c=dp(),u="[object Arguments]",l="[object Array]",s="[object Object]",f=Object.prototype.hasOwnProperty;return hf=function(p,d,h,y,v,g){var m=i(p),b=i(d),w=m?l:o(p),x=b?l:o(d),O=(w=w==u?s:w)==s,S=(x=x==u?s:x)==s,_=w==x;if(_&&a(p)){if(!a(d))return!1;m=!0,O=!1}if(_&&!O)return g||(g=new t),m||c(p)?e(p,d,h,y,v,g):r(p,d,w,h,y,v,g);if(!(1&h)){var j=O&&f.call(p,"__wrapped__"),P=S&&f.call(d,"__wrapped__");if(j||P){var A=j?p.value():p,M=P?d.value():d;return g||(g=new t),v(A,M,h,y,g)}}return!!_&&(g||(g=new t),n(p,d,h,y,v,g))},hf}function Sp(){if(gf)return vf;gf=1;var t=Op(),e=Ri();return vf=function r(n,o,i,a,c){return n===o||(null==n||null==o||!e(n)&&!e(o)?n!=n&&o!=o:t(n,o,i,a,r,c))},vf}function _p(){if(xf)return wf;xf=1;var t=zi();return wf=function(e){return e==e&&!t(e)}}function jp(){if(jf)return _f;return jf=1,_f=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}},_f}function Pp(){if(Af)return Pf;Af=1;var t=function(){if(bf)return mf;bf=1;var t=ss(),e=Sp();return mf=function(r,n,o,i){var a=o.length,c=a,u=!i;if(null==r)return!c;for(r=Object(r);a--;){var l=o[a];if(u&&l[2]?l[1]!==r[l[0]]:!(l[0]in r))return!1}for(;++a<c;){var s=(l=o[a])[0],f=r[s],p=l[1];if(u&&l[2]){if(void 0===f&&!(s in r))return!1}else{var d=new t;if(i)var h=i(f,p,s,r,n,d);if(!(void 0===h?e(p,f,3,i,d):h))return!1}}return!0},mf}(),e=function(){if(Sf)return Of;Sf=1;var t=_p(),e=mp();return Of=function(r){for(var n=e(r),o=n.length;o--;){var i=n[o],a=r[i];n[o]=[i,a,t(a)]}return n},Of}(),r=jp();return Pf=function(n){var o=e(n);return 1==o.length&&o[0][2]?r(o[0][0],o[0][1]):function(e){return e===n||t(e,n,o)}},Pf}function Ap(){if(Df)return Tf;Df=1;var t=(kf||(kf=1,Mf=function(t,e){return null!=t&&e in Object(t)}),Mf),e=function(){if(Cf)return Ef;Cf=1;var t=ra(),e=bs(),r=Ci(),n=Ds(),o=Is(),i=na();return Ef=function(a,c,u){for(var l=-1,s=(c=t(c,a)).length,f=!1;++l<s;){var p=i(c[l]);if(!(f=null!=a&&u(a,p)))break;a=a[p]}return f||++l!=s?f:!!(s=null==a?0:a.length)&&o(s)&&n(p,s)&&(r(a)||e(a))},Ef}();return Tf=function(r,n){return null!=r&&e(r,n,t)},Tf}function Mp(){if(Lf)return Rf;return Lf=1,Rf=function(t){return t}}function kp(){if(Uf)return Ff;Uf=1;var t=(zf||(zf=1,Bf=function(t){return function(e){return null==e?void 0:e[t]}}),Bf),e=function(){if(Hf)return $f;Hf=1;var t=oa();return $f=function(e){return function(r){return t(r,e)}},$f}(),r=Bi(),n=na();return Ff=function(o){return r(o)?t(n(o)):e(o)}}function Ep(){if(Wf)return Vf;Wf=1;var t=Pp(),e=function(){if(Nf)return If;Nf=1;var t=Sp(),e=ia(),r=Ap(),n=Bi(),o=_p(),i=jp(),a=na();return If=function(c,u){return n(c)&&o(u)?i(a(c),u):function(n){var o=e(n,c);return void 0===o&&o===u?r(n,c):t(u,o,3)}},If}(),r=Mp(),n=Ci(),o=kp();return Vf=function(i){return"function"==typeof i?i:null==i?r:"object"==typeof i?n(i)?e(i[0],i[1]):t(i):o(i)}}function Cp(){if(qf)return Zf;return qf=1,Zf=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},Zf}function Tp(){if(Qf)return Jf;Qf=1;var t=Cp(),e=Xf?Yf:(Xf=1,Yf=function(t){return t!=t}),r=(Gf||(Gf=1,Kf=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}),Kf);return Jf=function(n,o,i){return o==o?r(n,o,i):t(n,e,i)},Jf}function Dp(){if(cp)return ap;cp=1;var t=wp(),e=ip?op:(ip=1,op=function(){}),r=ys(),n=t&&1/r(new t([,-0]))[1]==1/0?function(e){return new t(e)}:e;return ap=n}function Ip(){if(lp)return up;lp=1;var t=fs(),e=function(){if(ep)return tp;ep=1;var t=Tp();return tp=function(e,r){return!(null==e||!e.length)&&t(e,r,0)>-1},tp}(),r=(np||(np=1,rp=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}),rp),n=ds(),o=Dp(),i=ys();return up=function(a,c,u){var l=-1,s=e,f=a.length,p=!0,d=[],h=d;if(u)p=!1,s=r;else if(f>=200){var y=c?null:o(a);if(y)return i(y);p=!1,s=n,h=new t}else h=c?[]:d;t:for(;++l<f;){var v=a[l],g=c?c(v):v;if(v=u||0!==v?v:0,p&&g==g){for(var m=h.length;m--;)if(h[m]===g)continue t;c&&h.push(g),d.push(v)}else s(h,g,u)||(h!==d&&h.push(g),d.push(v))}return d},up}pp.exports;var Np=function(){if(fp)return sp;fp=1;var t=Ep(),e=Ip();return sp=function(r,n){return r&&r.length?e(r,t(n,2)):[]},sp}(),Rp=dr(Np);function Lp(t,e,r){return!0===e?Rp(t,r):ya(e)?Rp(t,e):t}function Bp(t){return Bp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bp(t)}var zp=["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 Hp(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){qp(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 Fp(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,Yp(n.key),n)}}function Up(t,e,r){return e=Wp(e),function(t,e){if(e&&("object"===Bp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Vp()?Reflect.construct(e,r||[],Wp(t).constructor):e.apply(t,r))}function Vp(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Vp=function(){return!!t})()}function Wp(t){return Wp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wp(t)}function Zp(t,e){return Zp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Zp(t,e)}function qp(t,e,r){return(e=Yp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Yp(t){var e=function(t,e){if("object"!=Bp(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Bp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Bp(e)?e:e+""}function Xp(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Kp(t){return t.value}var Gp,Jp,Qp,td,ed,rd,nd,od,id,ad,cd,ud,ld,sd,fd,pd,dd,hd,yd,vd,gd,md,bd,wd,xd,Od,Sd,_d,jd,Pd,Ad,Md,kd,Ed,Cd,Td,Dd,Id,Nd,Rd,Ld,Bd,zd,$d,Hd=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return qp(t=Up(this,e,[].concat(n)),"lastBoundingBox",{width:-1,height:-1}),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Zp(t,e)}(e,dt),r=e,o=[{key:"getWithHeight",value:function(t,e){var r=Hp(Hp({},this.defaultProps),t.props).layout;return"vertical"===r&&Da(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();return t.height=this.wrapperNode.offsetHeight,t.width=this.wrapperNode.offsetWidth,t}return null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate,e=this.getBBox();e?(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Hp({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,c=n.margin,u=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),Hp(Hp({},e),r)}},{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,c=e.payload,u=Hp(Hp({position:"absolute",width:n||"auto",height:o||"auto"},this.getDefaultPosition(i)),i);return st.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(e){t.wrapperNode=e}},function(t,e){if(st.isValidElement(t))return st.cloneElement(t,e);if("function"==typeof t)return st.createElement(t,e);e.ref;var r=Xp(e,zp);return st.createElement(ls,r)}(r,Hp(Hp({},this.props),{},{payload:Lp(c,a,Kp)})))}}])&&Fp(r.prototype,n),o&&Fp(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();function Fd(){if(td)return Qp;td=1;var t=gs(),e=function(){if(Jp)return Gp;Jp=1;var t=Ii(),e=bs(),r=Ci(),n=t?t.isConcatSpreadable:void 0;return Gp=function(t){return r(t)||e(t)||!!(n&&t&&t[n])}}();return Qp=function r(n,o,i,a,c){var u=-1,l=n.length;for(i||(i=e),c||(c=[]);++u<l;){var s=n[u];o>0&&i(s)?o>1?r(s,o-1,i,a,c):t(c,s):a||(c[c.length]=s)}return c},Qp}function Ud(){if(od)return nd;od=1;var t=(rd||(rd=1,ed=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===r(i[u],u,i))break}return e}}),ed),e=t();return nd=e}function Vd(){if(ad)return id;ad=1;var t=Ud(),e=mp();return id=function(r,n){return r&&t(r,n,e)},id}function Wd(){if(sd)return ld;sd=1;var t=Vd(),e=function(){if(ud)return cd;ud=1;var t=gp();return cd=function(e,r){return function(n,o){if(null==n)return n;if(!t(n))return e(n,o);for(var i=n.length,a=r?i:-1,c=Object(n);(r?a--:++a<i)&&!1!==o(c[a],a,c););return n}}}()(t);return ld=e}function Zd(){if(pd)return fd;pd=1;var t=Wd(),e=gp();return fd=function(r,n){var o=-1,i=e(r)?Array(r.length):[];return t(r,(function(t,e,r){i[++o]=n(t,e,r)})),i}}function qd(){if(md)return gd;md=1;var t=function(){if(vd)return yd;vd=1;var t=Li();return yd=function(e,r){if(e!==r){var n=void 0!==e,o=null===e,i=e==e,a=t(e),c=void 0!==r,u=null===r,l=r==r,s=t(r);if(!u&&!s&&!a&&e>r||a&&c&&l&&!u&&!s||o&&c&&l||!n&&l||!i)return 1;if(!o&&!a&&!s&&e<r||s&&n&&i&&!o&&!a||u&&n&&i||!c&&i||!l)return-1}return 0}}();return gd=function(e,r,n){for(var o=-1,i=e.criteria,a=r.criteria,c=i.length,u=n.length;++o<c;){var l=t(i[o],a[o]);if(l)return o>=u?l:l*("desc"==n[o]?-1:1)}return e.index-r.index},gd}function Yd(){if(wd)return bd;wd=1;var t=ta(),e=oa(),r=Ep(),n=Zd(),o=(hd||(hd=1,dd=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}),dd),i=Ns(),a=qd(),c=Mp(),u=Ci();return bd=function(l,s,f){s=s.length?t(s,(function(t){return u(t)?function(r){return e(r,1===t.length?t[0]:t)}:t})):[c];var p=-1;s=t(s,i(r));var d=n(l,(function(e,r,n){return{criteria:t(s,(function(t){return t(e)})),index:++p,value:e}}));return o(d,(function(t,e){return a(t,e,f)}))},bd}function Xd(){if(_d)return Sd;_d=1;var t=Od?xd:(Od=1,xd=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)}),e=Math.max;return Sd=function(r,n,o){return n=e(void 0===n?r.length-1:n,0),function(){for(var i=arguments,a=-1,c=e(i.length-n,0),u=Array(c);++a<c;)u[a]=i[n+a];a=-1;for(var l=Array(n+1);++a<n;)l[a]=i[a];return l[n]=o(u),t(r,this,l)}},Sd}function Kd(){if(Md)return Ad;Md=1;var t=Ui(),e=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();return Ad=e}function Gd(){if(Ed)return kd;Ed=1;var t=Pd?jd:(Pd=1,jd=function(t){return function(){return t}}),e=Kd(),r=Mp(),n=e?function(r,n){return e(r,"toString",{configurable:!0,enumerable:!1,value:t(n),writable:!0})}:r;return kd=n}function Jd(){if(Id)return Dd;Id=1;var t=Gd(),e=function(){if(Td)return Cd;Td=1;var t=Date.now;return Cd=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}},Cd}(),r=e(t);return Dd=r}function Qd(){if(Bd)return Ld;Bd=1;var t=Zi(),e=gp(),r=Ds(),n=zi();return Ld=function(o,i,a){if(!n(a))return!1;var c=typeof i;return!!("number"==c?e(a)&&r(i,a.length):"string"==c&&i in a)&&t(a[i],o)},Ld}qp(Hd,"displayName","Legend"),qp(Hd,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var th=function(){if($d)return zd;$d=1;var t=Fd(),e=Yd(),r=function(){if(Rd)return Nd;Rd=1;var t=Mp(),e=Xd(),r=Jd();return Nd=function(n,o){return r(e(n,o,t),n+"")}}(),n=Qd(),o=r((function(r,o){if(null==r)return[];var i=o.length;return i>1&&n(r,o[0],o[1])?o=[]:i>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),e(r,t(o,1),[])}));return zd=o}(),eh=dr(th);function rh(t){return rh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rh(t)}function nh(){return nh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},nh.apply(this,arguments)}function oh(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ih(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 ih(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 ih(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 ah(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 ch(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ah(Object(r),!0).forEach((function(e){uh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ah(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function uh(t,e,r){return e=function(t){var e=function(t,e){if("object"!=rh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=rh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==rh(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lh(t){return Array.isArray(t)&&Ia(t[0])&&Ia(t[1])?t.join(" ~ "):t}var sh=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,c=t.labelStyle,u=void 0===c?{}:c,l=t.payload,s=t.formatter,f=t.itemSorter,p=t.wrapperClassName,d=t.labelClassName,h=t.label,y=t.labelFormatter,v=t.accessibilityLayer,g=void 0!==v&&v,m=ch({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),b=ch({margin:0},u),w=!fa(h),x=w?h:"",O=Dn("recharts-default-tooltip",p),S=Dn("recharts-tooltip-label",d);w&&y&&null!=l&&(x=y(h,l));var _=g?{role:"status","aria-live":"assertive"}:{};return st.createElement("div",nh({className:O,style:m},_),st.createElement("p",{className:S,style:b},st.isValidElement(x)?x:"".concat(x)),function(){if(l&&l.length){var t=(f?eh(l,f):l).map((function(t,e){if("none"===t.type)return null;var n=ch({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},a),o=t.formatter||s||lh,i=t.value,c=t.name,u=i,f=c;if(o&&null!=u&&null!=f){var p=o(i,c,t,e,l);if(Array.isArray(p)){var d=oh(p,2);u=d[0],f=d[1]}else u=p}return st.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:n},Ia(f)?st.createElement("span",{className:"recharts-tooltip-item-name"},f):null,Ia(f)?st.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,st.createElement("span",{className:"recharts-tooltip-item-value"},u),st.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return st.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function fh(t){return fh="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},fh(t)}function ph(t,e,r){return e=function(t){var e=function(t,e){if("object"!=fh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=fh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==fh(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var dh="recharts-tooltip-wrapper",hh={visibility:"hidden"};function yh(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return Dn(dh,ph(ph(ph(ph({},"".concat(dh,"-right"),Da(r)&&e&&Da(e.x)&&r>=e.x),"".concat(dh,"-left"),Da(r)&&e&&Da(e.x)&&r<e.x),"".concat(dh,"-bottom"),Da(n)&&e&&Da(e.y)&&n>=e.y),"".concat(dh,"-top"),Da(n)&&e&&Da(e.y)&&n<e.y))}function vh(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,c=t.tooltipDimension,u=t.viewBox,l=t.viewBoxDimension;if(i&&Da(i[n]))return i[n];var s=r[n]-c-o,f=r[n]+o;return e[n]?a[n]?s:f:a[n]?s<u[n]?Math.max(f,u[n]):Math.max(s,u[n]):f+c>u[n]+l?Math.max(s,u[n]):Math.max(f,u[n])}function gh(t){return gh="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},gh(t)}function mh(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 bh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mh(Object(r),!0).forEach((function(e){jh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wh(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ph(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function xh(t,e,r){return e=Sh(e),function(t,e){if(e&&("object"===gh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Oh()?Reflect.construct(e,r||[],Sh(t).constructor):e.apply(t,r))}function Oh(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Oh=function(){return!!t})()}function Sh(t){return Sh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Sh(t)}function _h(t,e){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_h(t,e)}function jh(t,e,r){return(e=Ph(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ph(t){var e=function(t,e){if("object"!=gh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=gh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==gh(e)?e:e+""}var Ah=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return jh(t=xh(this,e,[].concat(n)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),jh(t,"handleKeyDown",(function(e){var r,n,o,i;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=t.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(o=null===(i=t.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_h(t,e)}(e,dt),wh(e,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.state.lastBoundingBox.width)>1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,o=e.animationDuration,i=e.animationEasing,a=e.children,c=e.coordinate,u=e.hasPayload,l=e.isAnimationActive,s=e.offset,f=e.position,p=e.reverseDirection,d=e.useTranslate3d,h=e.viewBox,y=e.wrapperStyle,v=function(t){var e,r,n=t.allowEscapeViewBox,o=t.coordinate,i=t.offsetTopLeft,a=t.position,c=t.reverseDirection,u=t.tooltipBox,l=t.useTranslate3d,s=t.viewBox;return{cssProperties:u.height>0&&u.width>0&&o?function(t){var e=t.translateX,r=t.translateY;return{transform:t.useTranslate3d?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}({translateX:e=vh({allowEscapeViewBox:n,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=vh({allowEscapeViewBox:n,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:l}):hh,cssClasses:yh({translateX:e,translateY:r,coordinate:o})}}({allowEscapeViewBox:n,coordinate:c,offsetTopLeft:s,position:f,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:h}),g=v.cssClasses,m=v.cssProperties,b=bh(bh({transition:l&&r?"transform ".concat(o,"ms ").concat(i):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&u?"visible":"hidden",position:"absolute",top:0,left:0},y);return st.createElement("div",{tabIndex:-1,className:g,style:b,ref:function(e){t.wrapperNode=e}},a)}}])}(),Mh=!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout);function kh(t){return kh="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},kh(t)}function Eh(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 Ch(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Eh(Object(r),!0).forEach((function(e){Lh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Eh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Th(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Bh(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Dh(t,e,r){return e=Nh(e),function(t,e){if(e&&("object"===kh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ih()?Reflect.construct(e,r||[],Nh(t).constructor):e.apply(t,r))}function Ih(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ih=function(){return!!t})()}function Nh(t){return Nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Nh(t)}function Rh(t,e){return Rh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Rh(t,e)}function Lh(t,e,r){return(e=Bh(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Bh(t){var e=function(t,e){if("object"!=kh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=kh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==kh(e)?e:e+""}function zh(t){return t.dataKey}var $h,Hh,Fh,Uh,Vh,Wh,Zh,qh,Yh,Xh,Kh,Gh,Jh=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Dh(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rh(t,e)}(e,dt),Th(e,[{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,o=e.animationDuration,i=e.animationEasing,a=e.content,c=e.coordinate,u=e.filterNull,l=e.isAnimationActive,s=e.offset,f=e.payload,p=e.payloadUniqBy,d=e.position,h=e.reverseDirection,y=e.useTranslate3d,v=e.viewBox,g=e.wrapperStyle,m=null!=f?f:[];u&&m.length&&(m=Lp(f.filter((function(e){return null!=e.value&&(!0!==e.hide||t.props.includeHidden)})),p,zh));var b=m.length>0;return st.createElement(Ah,{allowEscapeViewBox:n,animationDuration:o,animationEasing:i,isAnimationActive:l,active:r,coordinate:c,hasPayload:b,offset:s,position:d,reverseDirection:h,useTranslate3d:y,viewBox:v,wrapperStyle:g},function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):"function"==typeof t?st.createElement(t,e):st.createElement(sh,e)}(a,Ch(Ch({},this.props),{},{payload:m})))}}])}();function Qh(){if(Wh)return Vh;Wh=1;var t=function(){if(Uh)return Fh;Uh=1;var t=/\s/;return Fh=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r},Fh}(),e=/^\s+/;return Vh=function(r){return r?r.slice(0,t(r)+1).replace(e,""):r},Vh}function ty(){if(qh)return Zh;qh=1;var t=Qh(),e=zi(),r=Li(),n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt;return Zh=function(c){if("number"==typeof c)return c;if(r(c))return NaN;if(e(c)){var u="function"==typeof c.valueOf?c.valueOf():c;c=e(u)?u+"":u}if("string"!=typeof c)return 0===c?c:+c;c=t(c);var l=o.test(c);return l||i.test(c)?a(c.slice(2),l?2:8):n.test(c)?NaN:+c}}function ey(){if(Xh)return Yh;Xh=1;var t=zi(),e=function(){if(Hh)return $h;Hh=1;var t=Di();return $h=function(){return t.Date.now()}}(),r=ty(),n=Math.max,o=Math.min;return Yh=function(i,a,c){var u,l,s,f,p,d,h=0,y=!1,v=!1,g=!0;if("function"!=typeof i)throw new TypeError("Expected a function");function m(t){var e=u,r=l;return u=l=void 0,h=t,f=i.apply(r,e)}function b(t){var e=t-d;return void 0===d||e>=a||e<0||v&&t-h>=s}function w(){var t=e();if(b(t))return x(t);p=setTimeout(w,function(t){var e=a-(t-d);return v?o(e,s-(t-h)):e}(t))}function x(t){return p=void 0,g&&u?m(t):(u=l=void 0,f)}function O(){var t=e(),r=b(t);if(u=arguments,l=this,d=t,r){if(void 0===p)return function(t){return h=t,p=setTimeout(w,a),y?m(t):f}(d);if(v)return clearTimeout(p),p=setTimeout(w,a),m(d)}return void 0===p&&(p=setTimeout(w,a)),f}return a=r(a)||0,t(c)&&(y=!!c.leading,s=(v="maxWait"in c)?n(r(c.maxWait)||0,a):s,g="trailing"in c?!!c.trailing:g),O.cancel=function(){void 0!==p&&clearTimeout(p),h=0,u=d=l=p=void 0},O.flush=function(){return void 0===p?f:x(e())},O},Yh}Lh(Jh,"displayName","Tooltip"),Lh(Jh,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Mh,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var ry=function(){if(Gh)return Kh;Gh=1;var t=ey(),e=zi();return Kh=function(r,n,o){var i=!0,a=!0;if("function"!=typeof r)throw new TypeError("Expected a function");return e(o)&&(i="leading"in o?!!o.leading:i,a="trailing"in o?!!o.trailing:a),t(r,n,{leading:i,maxWait:n,trailing:a})}}(),ny=dr(ry);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)}function iy(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 ay(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?iy(Object(r),!0).forEach((function(e){cy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cy(t,e,r){return e=function(t){var e=function(t,e){if("object"!=oy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);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:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function uy(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ly(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 ly(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 ly(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 sy=ht((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,c=t.height,u=void 0===c?"100%":c,l=t.minWidth,s=void 0===l?0:l,f=t.minHeight,p=t.maxHeight,d=t.children,h=t.debounce,y=void 0===h?0:h,v=t.id,g=t.className,m=t.onResize,b=t.style,w=void 0===b?{}:b,x=yt(null),O=yt();O.current=m,vt(e,(function(){return Object.defineProperty(x.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),x.current},configurable:!0})}));var S=uy(gt({containerWidth:o.width,containerHeight:o.height}),2),_=S[0],j=S[1],P=mt((function(t,e){j((function(r){var n=Math.round(t),o=Math.round(e);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}}))}),[]);bt((function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,o=r.height;P(n,o),null===(e=O.current)||void 0===e||e.call(O,n,o)};y>0&&(t=ny(t,y,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=x.current.getBoundingClientRect(),n=r.width,o=r.height;return P(n,o),e.observe(x.current),function(){e.disconnect()}}),[P,y]);var A=wt((function(){var t=_.containerWidth,e=_.containerHeight;if(t<0||e<0)return null;Bc(Ta(a)||Ta(u),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,u),Bc(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=Ta(a)?t:a,o=Ta(u)?e:u;r&&r>0&&(n?o=n/r:o&&(n=o*r),p&&o>p&&(o=p)),Bc(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,u,s,f,r);var i=!Array.isArray(d)&&tc(d.type).endsWith("Chart");return st.Children.map(d,(function(t){return st.isValidElement(t)?xt(t,ay({width:n,height:o},i?{style:ay({height:"100%",width:"100%",maxHeight:o,maxWidth:n},t.props.style)}:{})):t}))}),[r,d,u,p,f,s,_,a]);return st.createElement("div",{id:v?"".concat(v):void 0,className:Dn("recharts-responsive-container",g),style:ay(ay({},w),{},{width:a,height:u,minWidth:s,minHeight:f,maxHeight:p}),ref:x},A)})),fy=function(t){return null};function py(t){return py="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},py(t)}function dy(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 hy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?dy(Object(r),!0).forEach((function(e){yy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function yy(t,e,r){return e=function(t){var e=function(t,e){if("object"!=py(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=py(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==py(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}fy.displayName="Cell";var vy={widthCache:{},cacheCount:0},gy={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},my="recharts_measurement_span";var by=function(t){if(null==t||Mh)return{width:0,height:0};var e,r=(e=hy({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),Object.keys(e).forEach((function(t){e[t]||delete e[t]})),e),n=JSON.stringify({text:t,copyStyle:r});if(vy.widthCache[n])return vy.widthCache[n];try{var o=document.getElementById(my);o||((o=document.createElement("span")).setAttribute("id",my),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var i=hy(hy({},gy),r);Object.assign(o.style,i),o.textContent="".concat(t);var a=o.getBoundingClientRect(),c={width:a.width,height:a.height};return vy.widthCache[n]=c,++vy.cacheCount>2e3&&(vy.cacheCount=0,vy.widthCache={}),c}catch(t){return{width:0,height:0}}};function wy(t){return wy="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},wy(t)}function xy(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Oy(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 Oy(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 Oy(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 Sy(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_y(n.key),n)}}function _y(t){var e=function(t,e){if("object"!=wy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=wy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==wy(e)?e:e+""}var jy=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Py=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Ay=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,My=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,ky={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Ey=Object.keys(ky),Cy="NaN";var Ty=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),""===r||Ay.test(r)||(this.num=NaN,this.unit=""),Ey.includes(r)&&(this.num=function(t,e){return t*ky[e]}(e,r),this.unit="px")}return e=t,n=[{key:"parse",value:function(e){var r,n=xy(null!==(r=My.exec(e))&&void 0!==r?r:[],3),o=n[1],i=n[2];return new t(parseFloat(o),null!=i?i:"")}}],(r=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&Sy(e.prototype,r),n&&Sy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();function Dy(t){if(t.includes(Cy))return Cy;for(var e=t;e.includes("*")||e.includes("/");){var r,n=xy(null!==(r=jy.exec(e))&&void 0!==r?r:[],4),o=n[1],i=n[2],a=n[3],c=Ty.parse(null!=o?o:""),u=Ty.parse(null!=a?a:""),l="*"===i?c.multiply(u):c.divide(u);if(l.isNaN())return Cy;e=e.replace(jy,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=xy(null!==(s=Py.exec(e))&&void 0!==s?s:[],4),p=f[1],d=f[2],h=f[3],y=Ty.parse(null!=p?p:""),v=Ty.parse(null!=h?h:""),g="+"===d?y.add(v):y.subtract(v);if(g.isNaN())return Cy;e=e.replace(Py,g.toString())}return e}var Iy=/\(([^()]*)\)/;function Ny(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=xy(Iy.exec(e),2)[1];e=e.replace(Iy,Dy(r))}return e}(e),e=Dy(e)}function Ry(t){var e=function(t){try{return Ny(t)}catch(t){return Cy}}(t.slice(5,-1));return e===Cy?"":e}var Ly=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],By=["dx","dy","angle","className","breakAll"];function zy(){return zy=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},zy.apply(this,arguments)}function $y(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Hy(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Fy(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 Fy(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 Fy(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 Uy=/[ \f\n\r\t\v\u2028\u2029]+/,Vy=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var o=[];return fa(e)||(o=r?e.toString().split(""):e.toString().split(Uy)),{wordsWithComputedWidth:o.map((function(t){return{word:t,width:by(t,n).width}})),spaceWidth:r?0:by(" ",n).width}}catch(t){return null}},Wy=function(t){return[{words:fa(t)?[]:t.toString().split(Uy)}]},Zy=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!Mh){var c=Vy({breakAll:i,children:n,style:o});return c?function(t,e,r,n,o){var i=t.maxLines,a=t.children,c=t.style,u=t.breakAll,l=Da(i),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var i=e.word,a=e.width,c=t[t.length-1];if(c&&(null==n||o||c.width+a+r<Number(n)))c.words.push(i),c.width+=a+r;else{var u={words:[i],width:a};t.push(u)}return t}),[])},p=f(e);if(!l)return p;for(var d,h=function(t){var e=s.slice(0,t),r=Vy({breakAll:u,style:c,children:e+"…"}).wordsWithComputedWidth,o=f(r),a=o.length>i||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(o).width>Number(n);return[a,o]},y=0,v=s.length-1,g=0;y<=v&&g<=s.length-1;){var m=Math.floor((y+v)/2),b=Hy(h(m-1),2),w=b[0],x=b[1],O=Hy(h(m),1)[0];if(w||O||(y=m+1),w&&O&&(v=m-1),!w&&O){d=x;break}g++}return d||p}({breakAll:i,children:n,maxLines:a,style:o},c.wordsWithComputedWidth,c.spaceWidth,e,r):Wy(n)}return Wy(n)},qy="#808080",Yy=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,c=t.capHeight,u=void 0===c?"0.71em":c,l=t.scaleToFit,s=void 0!==l&&l,f=t.textAnchor,p=void 0===f?"start":f,d=t.verticalAnchor,h=void 0===d?"end":d,y=t.fill,v=void 0===y?qy:y,g=$y(t,Ly),m=wt((function(){return Zy({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:s,style:g.style,width:g.width})}),[g.breakAll,g.children,g.maxLines,s,g.style,g.width]),b=g.dx,w=g.dy,x=g.angle,O=g.className,S=g.breakAll,_=$y(g,By);if(!Ia(r)||!Ia(o))return null;var j,P=r+(Da(b)?b:0),A=o+(Da(w)?w:0);switch(h){case"start":j=Ry("calc(".concat(u,")"));break;case"middle":j=Ry("calc(".concat((m.length-1)/2," * -").concat(a," + (").concat(u," / 2))"));break;default:j=Ry("calc(".concat(m.length-1," * -").concat(a,")"))}var M=[];if(s){var k=m[0].width,E=g.width;M.push("scale(".concat((Da(E)?E/k:1)/k,")"))}return x&&M.push("rotate(".concat(x,", ").concat(P,", ").concat(A,")")),M.length&&(_.transform=M.join(" ")),st.createElement("text",zy({},lc(_,!0),{x:P,y:A,className:Dn("recharts-text",O),textAnchor:p,fill:v.includes("url")?qy:v}),m.map((function(t,e){var r=t.words.join(S?"":" ");return st.createElement("tspan",{x:P,dy:0===e?j:a,key:"".concat(r,"-").concat(e)},r)})))};function Xy(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ky(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Gy(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=Xy,r=(e,r)=>Xy(t(e),r),n=(e,r)=>t(e)-r):(e=t===Xy||t===Ky?t:Jy,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 Jy(){return 0}function Qy(t){return null===t?NaN:+t}const tv=Gy(Xy).right;Gy(Qy).center;class ev extends Map{constructor(t,e=nv){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(rv(this,t))}has(t){return super.has(rv(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){const n=e(r);t.has(n)&&(r=t.get(n),t.delete(n));return r}(this,t))}}function rv({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function nv(t){return null!==t&&"object"==typeof t?t.valueOf():t}function ov(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}const iv=Math.sqrt(50),av=Math.sqrt(10),cv=Math.sqrt(2);function uv(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>=iv?10:i>=av?5:i>=cv?2:1;let c,u,l;return o<0?(l=Math.pow(10,-o)/a,c=Math.round(t*l),u=Math.round(e*l),c/l<t&&++c,u/l>e&&--u,l=-l):(l=Math.pow(10,o)*a,c=Math.round(t/l),u=Math.round(e/l),c*l<t&&++c,u*l>e&&--u),u<c&&.5<=r&&r<2?uv(t,e,2*r):[c,u,l]}function lv(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[o,i,a]=n?uv(e,t,r):uv(t,e,r);if(!(i>=o))return[];const c=i-o+1,u=new Array(c);if(n)if(a<0)for(let t=0;t<c;++t)u[t]=(i-t)/-a;else for(let t=0;t<c;++t)u[t]=(i-t)*a;else if(a<0)for(let t=0;t<c;++t)u[t]=(o+t)/-a;else for(let t=0;t<c;++t)u[t]=(o+t)*a;return u}function sv(t,e,r){return uv(t=+t,e=+e,r=+r)[2]}function fv(t,e,r){r=+r;const n=(e=+e)<(t=+t),o=n?sv(e,t,r):sv(t,e,r);return(n?-1:1)*(o<0?1/-o:o)}function pv(t,e){let r;for(const e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);return r}function dv(t,e){let r;for(const e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);return r}function hv(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?ov:function(t=Xy){if(t===Xy)return ov;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))}}(o);n>r;){if(n-r>600){const i=n-r+1,a=e-r+1,c=Math.log(i),u=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*u*(i-u)/i)*(a-i/2<0?-1:1);hv(t,e,Math.max(r,Math.floor(e-a*u/i+l)),Math.min(n,Math.floor(e+(i-a)*u/i+l)),o)}const i=t[e];let a=r,c=n;for(yv(t,r,e),o(t[n],i)>0&&yv(t,r,n);a<c;){for(yv(t,a,c),++a,--c;o(t[a],i)<0;)++a;for(;o(t[c],i)>0;)--c}0===o(t[r],i)?yv(t,r,c):(++c,yv(t,c,n)),c<=e&&(r=c+1),e<=c&&(n=c-1)}return t}function yv(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function vv(t,e,r=Qy){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 gv(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function mv(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}const bv=Symbol("implicit");function wv(){var t=new ev,e=[],r=[],n=bv;function o(o){let i=t.get(o);if(void 0===i){if(n!==bv)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 ev;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 wv(e,r).unknown(n)},gv.apply(o,arguments),o}function xv(){var t,e,r=wv().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,c=!1,u=0,l=0,s=.5;function f(){var r=n().length,f=a<i,p=f?a:i,d=f?i:a;t=(d-p)/Math.max(1,r-u+2*l),c&&(t=Math.floor(t)),p+=(d-p-t*(r-u))*s,e=t*(1-u),c&&(p=Math.round(p),e=Math.round(e));var h=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?h.reverse():h)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},r.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,c=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(c=!!t,f()):c},r.padding=function(t){return arguments.length?(u=Math.min(1,l=+t),f()):u},r.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),f()):u},r.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return xv(n(),[i,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},gv.apply(f(),arguments)}function Ov(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Ov(e())},t}function Sv(){return Ov(xv.apply(null,arguments).paddingInner(1))}function _v(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function jv(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Pv(){}var Av=.7,Mv=1/Av,kv="\\s*([+-]?\\d+)\\s*",Ev="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Cv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Tv=/^#([0-9a-f]{3,8})$/,Dv=new RegExp(`^rgb\\(${kv},${kv},${kv}\\)$`),Iv=new RegExp(`^rgb\\(${Cv},${Cv},${Cv}\\)$`),Nv=new RegExp(`^rgba\\(${kv},${kv},${kv},${Ev}\\)$`),Rv=new RegExp(`^rgba\\(${Cv},${Cv},${Cv},${Ev}\\)$`),Lv=new RegExp(`^hsl\\(${Ev},${Cv},${Cv}\\)$`),Bv=new RegExp(`^hsla\\(${Ev},${Cv},${Cv},${Ev}\\)$`),zv={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 $v(){return this.rgb().formatHex()}function Hv(){return this.rgb().formatRgb()}function Fv(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Tv.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?Uv(e):3===r?new Zv(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?Vv(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?Vv(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=Dv.exec(t))?new Zv(e[1],e[2],e[3],1):(e=Iv.exec(t))?new Zv(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Nv.exec(t))?Vv(e[1],e[2],e[3],e[4]):(e=Rv.exec(t))?Vv(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Lv.exec(t))?Jv(e[1],e[2]/100,e[3]/100,1):(e=Bv.exec(t))?Jv(e[1],e[2]/100,e[3]/100,e[4]):zv.hasOwnProperty(t)?Uv(zv[t]):"transparent"===t?new Zv(NaN,NaN,NaN,0):null}function Uv(t){return new Zv(t>>16&255,t>>8&255,255&t,1)}function Vv(t,e,r,n){return n<=0&&(t=e=r=NaN),new Zv(t,e,r,n)}function Wv(t,e,r,n){return 1===arguments.length?((o=t)instanceof Pv||(o=Fv(o)),o?new Zv((o=o.rgb()).r,o.g,o.b,o.opacity):new Zv):new Zv(t,e,r,null==n?1:n);var o}function Zv(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function qv(){return`#${Gv(this.r)}${Gv(this.g)}${Gv(this.b)}`}function Yv(){const t=Xv(this.opacity);return`${1===t?"rgb(":"rgba("}${Kv(this.r)}, ${Kv(this.g)}, ${Kv(this.b)}${1===t?")":`, ${t})`}`}function Xv(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Kv(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Gv(t){return((t=Kv(t))<16?"0":"")+t.toString(16)}function Jv(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new tg(t,e,r,n)}function Qv(t){if(t instanceof tg)return new tg(t.h,t.s,t.l,t.opacity);if(t instanceof Pv||(t=Fv(t)),!t)return new tg;if(t instanceof tg)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,c=i-o,u=(i+o)/2;return c?(a=e===i?(r-n)/c+6*(r<n):r===i?(n-e)/c+2:(e-r)/c+4,c/=u<.5?i+o:2-i-o,a*=60):c=u>0&&u<1?0:a,new tg(a,c,u,t.opacity)}function tg(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function eg(t){return(t=(t||0)%360)<0?t+360:t}function rg(t){return Math.max(0,Math.min(1,t||0))}function ng(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}_v(Pv,Fv,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:$v,formatHex:$v,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Qv(this).formatHsl()},formatRgb:Hv,toString:Hv}),_v(Zv,Wv,jv(Pv,{brighter(t){return t=null==t?Mv:Math.pow(Mv,t),new Zv(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Av:Math.pow(Av,t),new Zv(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Zv(Kv(this.r),Kv(this.g),Kv(this.b),Xv(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:qv,formatHex:qv,formatHex8:function(){return`#${Gv(this.r)}${Gv(this.g)}${Gv(this.b)}${Gv(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Yv,toString:Yv})),_v(tg,(function(t,e,r,n){return 1===arguments.length?Qv(t):new tg(t,e,r,null==n?1:n)}),jv(Pv,{brighter(t){return t=null==t?Mv:Math.pow(Mv,t),new tg(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Av:Math.pow(Av,t),new tg(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new Zv(ng(t>=240?t-240:t+120,o,n),ng(t,o,n),ng(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new tg(eg(this.h),rg(this.s),rg(this.l),Xv(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Xv(this.opacity);return`${1===t?"hsl(":"hsla("}${eg(this.h)}, ${100*rg(this.s)}%, ${100*rg(this.l)}%${1===t?")":`, ${t})`}`}}));var og=t=>()=>t;function ig(t){return 1==(t=+t)?ag: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):og(isNaN(e)?r:e)}}function ag(t,e){var r=e-t;return r?function(t,e){return function(r){return t+r*e}}(t,r):og(isNaN(t)?e:t)}var cg=function t(e){var r=ig(e);function n(t,e){var n=r((t=Wv(t)).r,(e=Wv(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=ag(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 ug(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 lg(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]=vg(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 sg(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function fg(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function pg(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]=vg(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}var dg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hg=new RegExp(dg.source,"g");function yg(t,e){var r,n,o,i=dg.lastIndex=hg.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(r=dg.exec(t))&&(n=hg.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),c[a]?c[a]+=o:c[++a]=o),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,u.push({i:a,x:fg(r,n)})),i=hg.lastIndex;return i<e.length&&(o=e.slice(i),c[a]?c[a]+=o:c[++a]=o),c.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var r,n=0;n<e;++n)c[(r=u[n]).i]=r.x(t);return c.join("")})}function vg(t,e){var r,n=typeof e;return null==e||"boolean"===n?og(e):("number"===n?fg:"string"===n?(r=Fv(e))?(e=r,cg):yg:e instanceof Fv?cg:e instanceof Date?sg:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?ug:Array.isArray(e)?lg:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?pg:fg)(t,e)}function gg(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function mg(t,e){void 0===e&&(e=t,t=vg);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)}}function bg(t){return+t}var wg=[0,1];function xg(t){return t}function Og(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function Sg(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=Og(o,n),i=r(a,i)):(n=Og(n,o),i=r(i,a)),function(t){return i(n(t))}}function _g(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]=Og(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=tv(t,e,1,n)-1;return i[r](o[r](e))}}function jg(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Pg(){var t,e,r,n,o,i,a=wg,c=wg,u=vg,l=xg;function s(){var t=Math.min(a.length,c.length);return l!==xg&&(l=function(t,e){var r;return t>e&&(r=t,t=e,e=r),function(r){return Math.max(t,Math.min(e,r))}}(a[0],a[t-1])),n=t>2?_g:Sg,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),c,u)))(t(l(e)))}return f.invert=function(r){return l(e((i||(i=n(c,a.map(t),fg)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,bg),s()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),s()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),u=gg,s()},f.clamp=function(t){return arguments.length?(l=!!t||xg,s()):l!==xg},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function Ag(){return Pg()(xg,xg)}function Mg(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 kg(t){return(t=Mg(Math.abs(t)))?t[1]:NaN}var Eg,Cg=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Tg(t){if(!(e=Cg.exec(t)))throw new Error("invalid format: "+t);var e;return new Dg({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 Dg(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 Ig(t,e){var r=Mg(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")}Tg.prototype=Dg.prototype,Dg.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};var Ng={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Ig(100*t,e),r:Ig,s:function(t,e){var r=Mg(t,e);if(!r)return t+"";var n=r[0],o=r[1],i=o-(Eg=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")+Mg(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Rg(t){return t}var Lg,Bg,zg,$g=Array.prototype.map,Hg=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Fg(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?Rg:(e=$g.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,c=e[0],u=0;o>0&&c>0&&(u+c+1>n&&(c=Math.max(1,n-u)),i.push(t.substring(o-=c,o+c)),!((u+=c+1)>n));)c=e[a=(a+1)%e.length];return i.reverse().join(r)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?Rg:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}($g.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=Tg(t)).fill,r=t.align,f=t.sign,p=t.symbol,d=t.zero,h=t.width,y=t.comma,v=t.precision,g=t.trim,m=t.type;"n"===m?(y=!0,m="g"):Ng[m]||(void 0===v&&(v=12),g=!0,m="g"),(d||"0"===e&&"="===r)&&(d=!0,e="0",r="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===p?i:/[%p]/.test(m)?u:"",x=Ng[m],O=/[defgprs%]/.test(m);function S(t){var o,i,u,p=b,S=w;if("c"===m)S=x(t)+S,t="";else{var _=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:x(Math.abs(t),v),g&&(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)),_&&0==+t&&"+"!==f&&(_=!1),p=(_?"("===f?f:l:"-"===f||"("===f?"":f)+p,S=("s"===m?Hg[8+Eg/3]:"")+S+(_&&"("===f?")":""),O)for(o=-1,i=t.length;++o<i;)if(48>(u=t.charCodeAt(o))||u>57){S=(46===u?a+t.slice(o+1):t.slice(o))+S,t=t.slice(0,o);break}}y&&!d&&(t=n(t,1/0));var j=p.length+t.length+S.length,P=j<h?new Array(h-j+1).join(e):"";switch(y&&d&&(t=n(P+t,P.length?h-S.length:1/0),P=""),r){case"<":t=p+t+S+P;break;case"=":t=p+P+t+S;break;case"^":t=P.slice(0,j=P.length>>1)+p+t+S+P.slice(j);break;default:t=P+p+t+S}return c(t)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return t+""},S}return{format:f,formatPrefix:function(t,e){var r=f(((t=Tg(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(kg(e)/3))),o=Math.pow(10,-n),i=Hg[8+n/3];return function(t){return r(o*t)+i}}}}function Ug(t,e,r,n){var o,i=fv(t,e,r);switch((n=Tg(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(kg(e)/3)))-kg(Math.abs(t)))}(i,a))||(n.precision=o),zg(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,kg(e)-kg(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,-kg(Math.abs(t)))}(i))||(n.precision=o-2*("%"===n.type))}return Bg(n)}function Vg(t){var e=t.domain;return t.ticks=function(t){var r=e();return lv(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return Ug(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,c=i.length-1,u=i[a],l=i[c],s=10;for(l<u&&(o=u,u=l,l=o,o=a,a=c,c=o);s-- >0;){if((o=sv(u,l,r))===n)return i[a]=u,i[c]=l,e(i);if(o>0)u=Math.floor(u/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,l=Math.floor(l*o)/o}n=o}return t},t}function Wg(){var t=Ag();return t.copy=function(){return jg(t,Wg())},gv.apply(t,arguments),Vg(t)}function Zg(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 qg(t){return Math.log(t)}function Yg(t){return Math.exp(t)}function Xg(t){return-Math.log(-t)}function Kg(t){return-Math.exp(-t)}function Gg(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Jg(t){return(e,r)=>-t(-e,r)}function Qg(t){const e=t(qg,Yg),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?Gg:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),r()[0]<0?(n=Jg(n),o=Jg(o),t(Xg,Kg)):t(qg,Yg),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],c=e[e.length-1];const u=c<a;u&&([a,c]=[c,a]);let l,s,f=n(a),p=n(c);const d=null==t?10:+t;let h=[];if(!(i%1)&&p-f<d){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<i;++l)if(s=f<0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;h.push(s)}}else for(;f<=p;++f)for(l=i-1;l>=1;--l)if(s=f>0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;h.push(s)}2*h.length<d&&(h=lv(a,c,d))}else h=lv(f,p,Math.min(p-f,d)).map(o);return u?h.reverse():h},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===i?"s":","),"function"!=typeof r&&(i%1||null!=(r=Tg(r)).precision||(r.trim=!0),r=Bg(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(Zg(r(),{floor:t=>o(Math.floor(n(t))),ceil:t=>o(Math.ceil(n(t)))})),e}function tm(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function em(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function rm(t){var e=1,r=t(tm(e),em(e));return r.constant=function(r){return arguments.length?t(tm(e=+r),em(e)):e},Vg(r)}function nm(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function om(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function im(t){return t<0?-t*t:t*t}function am(t){var e=t(xg,xg),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(xg,xg):.5===r?t(om,im):t(nm(r),nm(1/r)):r},Vg(e)}function cm(){var t=am(Pg());return t.copy=function(){return jg(t,cm()).exponent(t.exponent())},gv.apply(t,arguments),t}function um(t){return Math.sign(t)*t*t}Lg=Fg({thousands:",",grouping:[3],currency:["$",""]}),Bg=Lg.format,zg=Lg.formatPrefix;const lm=new Date,sm=new Date;function fm(t,e,r,n){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{const e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{const a=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return a;let c;do{a.push(c=new Date(+r)),e(r,i),t(r)}while(c<r&&r<n);return a},o.filter=r=>fm((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)=>(lm.setTime(+e),sm.setTime(+n),t(lm),t(sm),Math.floor(r(lm,sm))),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 pm=fm((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));pm.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?fm((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):pm:null),pm.range;const dm=1e3,hm=6e4,ym=36e5,vm=864e5,gm=6048e5,mm=2592e6,bm=31536e6,wm=fm((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*dm)}),((t,e)=>(e-t)/dm),(t=>t.getUTCSeconds()));wm.range;const xm=fm((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*dm)}),((t,e)=>{t.setTime(+t+e*hm)}),((t,e)=>(e-t)/hm),(t=>t.getMinutes()));xm.range;const Om=fm((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*hm)}),((t,e)=>(e-t)/hm),(t=>t.getUTCMinutes()));Om.range;const Sm=fm((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*dm-t.getMinutes()*hm)}),((t,e)=>{t.setTime(+t+e*ym)}),((t,e)=>(e-t)/ym),(t=>t.getHours()));Sm.range;const _m=fm((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*ym)}),((t,e)=>(e-t)/ym),(t=>t.getUTCHours()));_m.range;const jm=fm((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*hm)/vm),(t=>t.getDate()-1));jm.range;const Pm=fm((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/vm),(t=>t.getUTCDate()-1));Pm.range;const Am=fm((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/vm),(t=>Math.floor(t/vm)));function Mm(t){return fm((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())*hm)/gm))}Am.range;const km=Mm(0),Em=Mm(1),Cm=Mm(2),Tm=Mm(3),Dm=Mm(4),Im=Mm(5),Nm=Mm(6);function Rm(t){return fm((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)/gm))}km.range,Em.range,Cm.range,Tm.range,Dm.range,Im.range,Nm.range;const Lm=Rm(0),Bm=Rm(1),zm=Rm(2),$m=Rm(3),Hm=Rm(4),Fm=Rm(5),Um=Rm(6);Lm.range,Bm.range,zm.range,$m.range,Hm.range,Fm.range,Um.range;const Vm=fm((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()));Vm.range;const Wm=fm((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()));Wm.range;const Zm=fm((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()));Zm.every=t=>isFinite(t=Math.floor(t))&&t>0?fm((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,Zm.range;const qm=fm((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()));function Ym(t,e,r,n,o,i){const a=[[wm,1,dm],[wm,5,5e3],[wm,15,15e3],[wm,30,3e4],[i,1,hm],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,ym],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,vm],[n,2,1728e5],[r,1,gm],[e,1,mm],[e,3,7776e6],[t,1,bm]];function c(e,r,n){const o=Math.abs(r-e)/n,i=Gy((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(fv(e/bm,r/bm,n));if(0===i)return pm.every(Math.max(fv(e,r,n),1));const[c,u]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return c.every(u)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const o=r&&"function"==typeof r.range?r:c(t,e,r),i=o?o.range(t,+e+1):[];return n?i.reverse():i},c]}qm.every=t=>isFinite(t=Math.floor(t))&&t>0?fm((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,qm.range;const[Xm,Km]=Ym(qm,Wm,Lm,Am,_m,Om),[Gm,Jm]=Ym(Zm,Vm,km,jm,Sm,xm);function Qm(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 tb(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 eb(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var rb,nb,ob,ib={"-":"",_:" ",0:"0"},ab=/^\s*\d+/,cb=/^%/,ub=/[\\^$*+?|[\]().{}]/g;function lb(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 sb(t){return t.replace(ub,"\\$&")}function fb(t){return new RegExp("^(?:"+t.map(sb).join("|")+")","i")}function pb(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function db(t,e,r){var n=ab.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function hb(t,e,r){var n=ab.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function yb(t,e,r){var n=ab.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function vb(t,e,r){var n=ab.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function gb(t,e,r){var n=ab.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function mb(t,e,r){var n=ab.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function bb(t,e,r){var n=ab.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function wb(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 xb(t,e,r){var n=ab.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function Ob(t,e,r){var n=ab.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Sb(t,e,r){var n=ab.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function _b(t,e,r){var n=ab.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function jb(t,e,r){var n=ab.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function Pb(t,e,r){var n=ab.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function Ab(t,e,r){var n=ab.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function Mb(t,e,r){var n=ab.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function kb(t,e,r){var n=ab.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Eb(t,e,r){var n=cb.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function Cb(t,e,r){var n=ab.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Tb(t,e,r){var n=ab.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function Db(t,e){return lb(t.getDate(),e,2)}function Ib(t,e){return lb(t.getHours(),e,2)}function Nb(t,e){return lb(t.getHours()%12||12,e,2)}function Rb(t,e){return lb(1+jm.count(Zm(t),t),e,3)}function Lb(t,e){return lb(t.getMilliseconds(),e,3)}function Bb(t,e){return Lb(t,e)+"000"}function zb(t,e){return lb(t.getMonth()+1,e,2)}function $b(t,e){return lb(t.getMinutes(),e,2)}function Hb(t,e){return lb(t.getSeconds(),e,2)}function Fb(t){var e=t.getDay();return 0===e?7:e}function Ub(t,e){return lb(km.count(Zm(t)-1,t),e,2)}function Vb(t){var e=t.getDay();return e>=4||0===e?Dm(t):Dm.ceil(t)}function Wb(t,e){return t=Vb(t),lb(Dm.count(Zm(t),t)+(4===Zm(t).getDay()),e,2)}function Zb(t){return t.getDay()}function qb(t,e){return lb(Em.count(Zm(t)-1,t),e,2)}function Yb(t,e){return lb(t.getFullYear()%100,e,2)}function Xb(t,e){return lb((t=Vb(t)).getFullYear()%100,e,2)}function Kb(t,e){return lb(t.getFullYear()%1e4,e,4)}function Gb(t,e){var r=t.getDay();return lb((t=r>=4||0===r?Dm(t):Dm.ceil(t)).getFullYear()%1e4,e,4)}function Jb(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+lb(e/60|0,"0",2)+lb(e%60,"0",2)}function Qb(t,e){return lb(t.getUTCDate(),e,2)}function tw(t,e){return lb(t.getUTCHours(),e,2)}function ew(t,e){return lb(t.getUTCHours()%12||12,e,2)}function rw(t,e){return lb(1+Pm.count(qm(t),t),e,3)}function nw(t,e){return lb(t.getUTCMilliseconds(),e,3)}function ow(t,e){return nw(t,e)+"000"}function iw(t,e){return lb(t.getUTCMonth()+1,e,2)}function aw(t,e){return lb(t.getUTCMinutes(),e,2)}function cw(t,e){return lb(t.getUTCSeconds(),e,2)}function uw(t){var e=t.getUTCDay();return 0===e?7:e}function lw(t,e){return lb(Lm.count(qm(t)-1,t),e,2)}function sw(t){var e=t.getUTCDay();return e>=4||0===e?Hm(t):Hm.ceil(t)}function fw(t,e){return t=sw(t),lb(Hm.count(qm(t),t)+(4===qm(t).getUTCDay()),e,2)}function pw(t){return t.getUTCDay()}function dw(t,e){return lb(Bm.count(qm(t)-1,t),e,2)}function hw(t,e){return lb(t.getUTCFullYear()%100,e,2)}function yw(t,e){return lb((t=sw(t)).getUTCFullYear()%100,e,2)}function vw(t,e){return lb(t.getUTCFullYear()%1e4,e,4)}function gw(t,e){var r=t.getUTCDay();return lb((t=r>=4||0===r?Hm(t):Hm.ceil(t)).getUTCFullYear()%1e4,e,4)}function mw(){return"+0000"}function bw(){return"%"}function ww(t){return+t}function xw(t){return Math.floor(+t/1e3)}function Ow(t){return new Date(t)}function Sw(t){return t instanceof Date?+t:+new Date(+t)}function _w(t,e,r,n,o,i,a,c,u,l){var s=Ag(),f=s.invert,p=s.domain,d=l(".%L"),h=l(":%S"),y=l("%I:%M"),v=l("%I %p"),g=l("%a %d"),m=l("%b %d"),b=l("%B"),w=l("%Y");function x(t){return(u(t)<t?d:c(t)<t?h:a(t)<t?y:i(t)<t?v:n(t)<t?o(t)<t?g:m:r(t)<t?b:w)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,Sw)):p().map(Ow)},s.ticks=function(e){var r=p();return t(r[0],r[r.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?x:l(e)},s.nice=function(t){var r=p();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?p(Zg(r,t)):s},s.copy=function(){return jg(s,_w(t,e,r,n,o,i,a,c,u,l))},s}function jw(){var t,e,r,n,o,i=0,a=1,c=xg,u=!1;function l(e){return null==e||isNaN(e=+e)?o:c(0===r?.5:(e=(n(e)-t)*r,u?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,c=t(r,n),l):[c(0),c(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=n(i=+i),e=n(a=+a),r=t===e?0:1/(e-t),l):[i,a]},l.clamp=function(t){return arguments.length?(u=!!t,l):u},l.interpolator=function(t){return arguments.length?(c=t,l):c},l.range=s(vg),l.rangeRound=s(gg),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return n=o,t=o(i),e=o(a),r=t===e?0:1/(e-t),l}}function Pw(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Aw(){var t=am(jw());return t.copy=function(){return Pw(t,Aw()).exponent(t.exponent())},mv.apply(t,arguments)}function Mw(){var t,e,r,n,o,i,a,c=0,u=.5,l=1,s=1,f=xg,p=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(s*t<s*e?n:o),f(p?Math.max(0,Math.min(1,t)):t))}function h(t){return function(e){var r,n,o;return arguments.length?([r,n,o]=e,f=mg(t,[r,n,o]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([c,u,l]=a,t=i(c=+c),e=i(u=+u),r=i(l=+l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,d):[c,u,l]},d.clamp=function(t){return arguments.length?(p=!!t,d):p},d.interpolator=function(t){return arguments.length?(f=t,d):f},d.range=h(vg),d.rangeRound=h(gg),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return i=a,t=a(c),e=a(u),r=a(l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,d}}function kw(){var t=am(Mw());return t.copy=function(){return Pw(t,kw()).exponent(t.exponent())},mv.apply(t,arguments)}!function(t){rb=function(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,l=fb(o),s=pb(o),f=fb(i),p=pb(i),d=fb(a),h=pb(a),y=fb(c),v=pb(c),g=fb(u),m=pb(u),b={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:Db,e:Db,f:Bb,g:Xb,G:Gb,H:Ib,I:Nb,j:Rb,L:Lb,m:zb,M:$b,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ww,s:xw,S:Hb,u:Fb,U:Ub,V:Wb,w:Zb,W:qb,x:null,X:null,y:Yb,Y:Kb,Z:Jb,"%":bw},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:Qb,e:Qb,f:ow,g:yw,G:gw,H:tw,I:ew,j:rw,L:nw,m:iw,M:aw,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ww,s:xw,S:cw,u:uw,U:lw,V:fw,w:pw,W:dw,x:null,X:null,y:hw,Y:vw,Z:mw,"%":bw},x={a:function(t,e,r){var n=d.exec(e.slice(r));return n?(t.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=g.exec(e.slice(r));return n?(t.m=m.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return _(t,e,r,n)},d:Sb,e:Sb,f:kb,g:bb,G:mb,H:jb,I:jb,j:_b,L:Mb,m:Ob,M:Pb,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:xb,Q:Cb,s:Tb,S:Ab,u:hb,U:yb,V:vb,w:db,W:gb,x:function(t,e,n){return _(t,r,e,n)},X:function(t,e,r){return _(t,n,e,r)},y:bb,Y:mb,Z:wb,"%":Eb};function O(t,e){return function(r){var n,o,i,a=[],c=-1,u=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++c<l;)37===t.charCodeAt(c)&&(a.push(t.slice(u,c)),null!=(o=ib[n=t.charAt(++c)])?n=t.charAt(++c):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),a.push(n),u=c+1);return a.push(t.slice(u,c)),a.join("")}}function S(t,e){return function(r){var n,o,i=eb(1900,void 0,1);if(_(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=tb(eb(i.y,0,1))).getUTCDay(),n=o>4||0===o?Bm.ceil(n):Bm(n),n=Pm.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=Qm(eb(i.y,0,1))).getDay(),n=o>4||0===o?Em.ceil(n):Em(n),n=jm.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?tb(eb(i.y,0,1)).getUTCDay():Qm(eb(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,tb(i)):Qm(i)}}function _(t,e,r,n){for(var o,i,a=0,c=e.length,u=r.length;a<c;){if(n>=u)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=x[o in ib?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),w.x=O(r,w),w.X=O(n,w),w.c=O(e,w),{format:function(t){var e=O(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}(t),nb=rb.format,rb.parse,ob=rb.utcFormat,rb.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 Ew,Cw,Tw,Dw,Iw,Nw,Rw=Object.freeze({__proto__:null,scaleBand:xv,scaleDiverging:function t(){var e=Vg(Mw()(xg));return e.copy=function(){return Pw(e,t())},mv.apply(e,arguments)},scaleDivergingLog:function t(){var e=Qg(Mw()).domain([.1,1,10]);return e.copy=function(){return Pw(e,t()).base(e.base())},mv.apply(e,arguments)},scaleDivergingPow:kw,scaleDivergingSqrt:function(){return kw.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=rm(Mw());return e.copy=function(){return Pw(e,t()).constant(e.constant())},mv.apply(e,arguments)},scaleIdentity:function t(e){var r;function n(t){return null==t||isNaN(t=+t)?r:t}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,bg),n):e.slice()},n.unknown=function(t){return arguments.length?(r=t,n):r},n.copy=function(){return t(e).unknown(r)},e=arguments.length?Array.from(e,bg):[0,1],Vg(n)},scaleImplicit:bv,scaleLinear:Wg,scaleLog:function t(){const e=Qg(Pg()).domain([1,10]);return e.copy=()=>jg(e,t()).base(e.base()),gv.apply(e,arguments),e},scaleOrdinal:wv,scalePoint:Sv,scalePow:cm,scaleQuantile:function t(){var e,r=[],n=[],o=[];function i(){var t=0,e=Math.max(1,n.length);for(o=new Array(e-1);++t<e;)o[t-1]=vv(r,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:n[tv(o,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?o[e-1]:r[0],e<o.length?o[e]:r[r.length-1]]},a.domain=function(t){if(!arguments.length)return r.slice();r=[];for(let e of t)null==e||isNaN(e=+e)||r.push(e);return r.sort(Xy),i()},a.range=function(t){return arguments.length?(n=Array.from(t),i()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return o.slice()},a.copy=function(){return t().domain(r).range(n).unknown(e)},gv.apply(a,arguments)},scaleQuantize:function t(){var e,r=0,n=1,o=1,i=[.5],a=[0,1];function c(t){return null!=t&&t<=t?a[tv(i,t,0,o)]:e}function u(){var t=-1;for(i=new Array(o);++t<o;)i[t]=((t+1)*n-(t-o)*r)/(o+1);return c}return c.domain=function(t){return arguments.length?([r,n]=t,r=+r,n=+n,u()):[r,n]},c.range=function(t){return arguments.length?(o=(a=Array.from(t)).length-1,u()):a.slice()},c.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,i[0]]:e>=o?[i[o-1],n]:[i[e-1],i[e]]},c.unknown=function(t){return arguments.length?(e=t,c):c},c.thresholds=function(){return i.slice()},c.copy=function(){return t().domain([r,n]).range(a).unknown(e)},gv.apply(Vg(c),arguments)},scaleRadial:function t(){var e,r=Ag(),n=[0,1],o=!1;function i(t){var n=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(r(t));return isNaN(n)?e:o?Math.round(n):n}return i.invert=function(t){return r.invert(um(t))},i.domain=function(t){return arguments.length?(r.domain(t),i):r.domain()},i.range=function(t){return arguments.length?(r.range((n=Array.from(t,bg)).map(um)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(o=!!t,i):o},i.clamp=function(t){return arguments.length?(r.clamp(t),i):r.clamp()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t(r.domain(),n).round(o).clamp(r.clamp()).unknown(e)},gv.apply(i,arguments),Vg(i)},scaleSequential:function t(){var e=Vg(jw()(xg));return e.copy=function(){return Pw(e,t())},mv.apply(e,arguments)},scaleSequentialLog:function t(){var e=Qg(jw()).domain([1,10]);return e.copy=function(){return Pw(e,t()).base(e.base())},mv.apply(e,arguments)},scaleSequentialPow:Aw,scaleSequentialQuantile:function t(){var e=[],r=xg;function n(t){if(null!=t&&!isNaN(t=+t))return r((tv(e,t,1)-1)/(e.length-1))}return n.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(Xy),n},n.interpolator=function(t){return arguments.length?(r=t,n):r},n.range=function(){return e.map(((t,n)=>r(n/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((r,n)=>function(t,e,r){if((n=(t=Float64Array.from(function*(t,e){for(let e of t)null!=e&&(e=+e)>=e&&(yield e)}(t))).length)&&!isNaN(e=+e)){if(e<=0||n<2)return dv(t);if(e>=1)return pv(t);var n,o=(n-1)*e,i=Math.floor(o),a=pv(hv(t,i).subarray(0,i+1));return a+(dv(t.subarray(i+1))-a)*(o-i)}}(e,n/t)))},n.copy=function(){return t(r).domain(e)},mv.apply(n,arguments)},scaleSequentialSqrt:function(){return Aw.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=rm(jw());return e.copy=function(){return Pw(e,t()).constant(e.constant())},mv.apply(e,arguments)},scaleSqrt:function(){return cm.apply(null,arguments).exponent(.5)},scaleSymlog:function t(){var e=rm(Pg());return e.copy=function(){return jg(e,t()).constant(e.constant())},gv.apply(e,arguments)},scaleThreshold:function t(){var e,r=[.5],n=[0,1],o=1;function i(t){return null!=t&&t<=t?n[tv(r,t,0,o)]:e}return i.domain=function(t){return arguments.length?(r=Array.from(t),o=Math.min(r.length,n.length-1),i):r.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),o=Math.min(r.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t().domain(r).range(n).unknown(e)},gv.apply(i,arguments)},scaleTime:function(){return gv.apply(_w(Gm,Jm,Zm,Vm,km,jm,Sm,xm,wm,nb).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return gv.apply(_w(Xm,Km,qm,Wm,Lm,Pm,_m,Om,wm,ob).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:Ug});function Lw(){if(Cw)return Ew;Cw=1;var t=Li();return Ew=function(e,r,n){for(var o=-1,i=e.length;++o<i;){var a=e[o],c=r(a);if(null!=c&&(void 0===u?c==c&&!t(c):n(c,u)))var u=c,l=a}return l},Ew}var Bw,zw,$w,Hw,Fw=function(){if(Nw)return Iw;Nw=1;var t=Lw(),e=Dw?Tw:(Dw=1,Tw=function(t,e){return t>e}),r=Mp();return Iw=function(n){return n&&n.length?t(n,r,e):void 0},Iw}(),Uw=dr(Fw);var Vw,Ww,Zw,qw,Yw=function(){if(Hw)return $w;Hw=1;var t=Lw(),e=zw?Bw:(zw=1,Bw=function(t,e){return t<e}),r=Mp();return $w=function(n){return n&&n.length?t(n,r,e):void 0},$w}(),Xw=dr(Yw);var Kw,Gw,Jw=function(){if(qw)return Zw;qw=1;var t=Fd(),e=function(){if(Ww)return Vw;Ww=1;var t=ta(),e=Ep(),r=Zd(),n=Ci();return Vw=function(o,i){return(n(o)?t:r)(o,e(i,3))}}();return Zw=function(r,n){return t(e(r,n),1)}}(),Qw=dr(Jw);var tx,ex=dr(function(){if(Gw)return Kw;Gw=1;var t=Sp();return Kw=function(e,r){return t(e,r)}}()),rx=1e9,nx=!0,ox="[DecimalError] ",ix=ox+"Invalid argument: ",ax=ox+"Exponent out of range: ",cx=Math.floor,ux=Math.pow,lx=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,sx=1e7,fx=7,px=9007199254740991,dx=cx(px/fx),hx={};function yx(t,e){var r,n,o,i,a,c,u,l,s=t.constructor,f=s.precision;if(!t.s||!e.s)return e.s||(e=new s(t)),nx?jx(e,f):e;if(u=t.d,l=e.d,a=t.e,o=e.e,u=u.slice(),i=a-o){for(i<0?(n=u,i=-i,c=l.length):(n=l,o=a,c=u.length),i>(c=(a=Math.ceil(f/fx))>c?a+1:c+1)&&(i=c,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((c=u.length)-(i=l.length)<0&&(i=c,n=l,l=u,u=n),r=0;i;)r=(u[--i]=u[i]+l[i]+r)/sx|0,u[i]%=sx;for(r&&(u.unshift(r),++o),c=u.length;0==u[--c];)u.pop();return e.d=u,e.e=o,nx?jx(e,f):e}function vx(t,e,r){if(t!==~~t||t<e||t>r)throw Error(ix+t)}function gx(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=fx-n.length)&&(i+=Ox(r)),i+=n;a=t[e],(r=fx-(n=a+"").length)&&(i+=Ox(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}hx.absoluteValue=hx.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},hx.comparedTo=hx.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},hx.decimalPlaces=hx.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*fx;if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},hx.dividedBy=hx.div=function(t){return mx(this,new this.constructor(t))},hx.dividedToIntegerBy=hx.idiv=function(t){var e=this.constructor;return jx(mx(this,new e(t),0,1),e.precision)},hx.equals=hx.eq=function(t){return!this.cmp(t)},hx.exponent=function(){return wx(this)},hx.greaterThan=hx.gt=function(t){return this.cmp(t)>0},hx.greaterThanOrEqualTo=hx.gte=function(t){return this.cmp(t)>=0},hx.isInteger=hx.isint=function(){return this.e>this.d.length-2},hx.isNegative=hx.isneg=function(){return this.s<0},hx.isPositive=hx.ispos=function(){return this.s>0},hx.isZero=function(){return 0===this.s},hx.lessThan=hx.lt=function(t){return this.cmp(t)<0},hx.lessThanOrEqualTo=hx.lte=function(t){return this.cmp(t)<1},hx.logarithm=hx.log=function(t){var e,r=this,n=r.constructor,o=n.precision,i=o+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(tx))throw Error(ox+"NaN");if(r.s<1)throw Error(ox+(r.s?"NaN":"-Infinity"));return r.eq(tx)?new n(0):(nx=!1,e=mx(Sx(r,i),Sx(t,i),i),nx=!0,jx(e,o))},hx.minus=hx.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?Px(e,t):yx(e,(t.s=-t.s,t))},hx.modulo=hx.mod=function(t){var e,r=this,n=r.constructor,o=n.precision;if(!(t=new n(t)).s)throw Error(ox+"NaN");return r.s?(nx=!1,e=mx(r,t,0,1).times(t),nx=!0,r.minus(e)):jx(new n(r),o)},hx.naturalExponential=hx.exp=function(){return bx(this)},hx.naturalLogarithm=hx.ln=function(){return Sx(this)},hx.negated=hx.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},hx.plus=hx.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?yx(e,t):Px(e,(t.s=-t.s,t))},hx.precision=hx.sd=function(t){var e,r,n,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(ix+t);if(e=wx(o)+1,r=(n=o.d.length-1)*fx+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},hx.squareRoot=hx.sqrt=function(){var t,e,r,n,o,i,a,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(ox+"NaN")}for(t=wx(c),nx=!1,0==(o=Math.sqrt(+c))||o==1/0?(((e=gx(c.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=cx((t+1)/2)-(t<0||t%2),n=new u(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new u(o.toString()),o=a=(r=u.precision)+3;;)if(n=(i=n).plus(mx(c,i,a+2)).times(.5),gx(i.d).slice(0,a)===(e=gx(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(jx(i,r+1,0),i.times(i).eq(c)){n=i;break}}else if("9999"!=e)break;a+=4}return nx=!0,jx(n,r)},hx.times=hx.mul=function(t){var e,r,n,o,i,a,c,u,l,s=this,f=s.constructor,p=s.d,d=(t=new f(t)).d;if(!s.s||!t.s)return new f(0);for(t.s*=s.s,r=s.e+t.e,(u=p.length)<(l=d.length)&&(i=p,p=d,d=i,a=u,u=l,l=a),i=[],n=a=u+l;n--;)i.push(0);for(n=l;--n>=0;){for(e=0,o=u+n;o>n;)c=i[o]+d[n]*p[o-n-1]+e,i[o--]=c%sx|0,e=c/sx|0;i[o]=(i[o]+e)%sx|0}for(;!i[--a];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,nx?jx(t,f.precision):t},hx.toDecimalPlaces=hx.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(vx(t,0,rx),void 0===e?e=n.rounding:vx(e,0,8),jx(r,t+wx(r)+1,e))},hx.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=Ax(n,!0):(vx(t,0,rx),void 0===e?e=o.rounding:vx(e,0,8),r=Ax(n=jx(new o(n),t+1,e),!0,t+1)),r},hx.toFixed=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?Ax(o):(vx(t,0,rx),void 0===e?e=i.rounding:vx(e,0,8),r=Ax((n=jx(new i(o),t+wx(o)+1,e)).abs(),!1,t+wx(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},hx.toInteger=hx.toint=function(){var t=this,e=t.constructor;return jx(new e(t),wx(t)+1,e.rounding)},hx.toNumber=function(){return+this},hx.toPower=hx.pow=function(t){var e,r,n,o,i,a,c=this,u=c.constructor,l=+(t=new u(t));if(!t.s)return new u(tx);if(!(c=new u(c)).s){if(t.s<1)throw Error(ox+"Infinity");return c}if(c.eq(tx))return c;if(n=u.precision,t.eq(tx))return jx(c,n);if(a=(e=t.e)>=(r=t.d.length-1),i=c.s,a){if((r=l<0?-l:l)<=px){for(o=new u(tx),e=Math.ceil(n/fx+4),nx=!1;r%2&&Mx((o=o.times(c)).d,e),0!==(r=cx(r/2));)Mx((c=c.times(c)).d,e);return nx=!0,t.s<0?new u(tx).div(o):jx(o,n)}}else if(i<0)throw Error(ox+"NaN");return i=i<0&&1&t.d[Math.max(e,r)]?-1:1,c.s=1,nx=!1,o=t.times(Sx(c,n+12)),nx=!0,(o=bx(o)).s=i,o},hx.toPrecision=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?n=Ax(o,(r=wx(o))<=i.toExpNeg||r>=i.toExpPos):(vx(t,1,rx),void 0===e?e=i.rounding:vx(e,0,8),n=Ax(o=jx(new i(o),t,e),t<=(r=wx(o))||r<=i.toExpNeg,t)),n},hx.toSignificantDigits=hx.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(vx(t,1,rx),void 0===e?e=r.rounding:vx(e,0,8)),jx(new r(this),t,e)},hx.toString=hx.valueOf=hx.val=hx.toJSON=hx[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=wx(t),r=t.constructor;return Ax(t,e<=r.toExpNeg||e>=r.toExpPos)};var mx=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%sx|0,n=r/sx|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*sx+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,o,i,a){var c,u,l,s,f,p,d,h,y,v,g,m,b,w,x,O,S,_,j=n.constructor,P=n.s==o.s?1:-1,A=n.d,M=o.d;if(!n.s)return new j(n);if(!o.s)throw Error(ox+"Division by zero");for(u=n.e-o.e,S=M.length,x=A.length,h=(d=new j(P)).d=[],l=0;M[l]==(A[l]||0);)++l;if(M[l]>(A[l]||0)&&--u,(m=null==i?i=j.precision:a?i+(wx(n)-wx(o))+1:i)<0)return new j(0);if(m=m/fx+2|0,l=0,1==S)for(s=0,M=M[0],m++;(l<x||s)&&m--;l++)b=s*sx+(A[l]||0),h[l]=b/M|0,s=b%M|0;else{for((s=sx/(M[0]+1)|0)>1&&(M=t(M,s),A=t(A,s),S=M.length,x=A.length),w=S,v=(y=A.slice(0,S)).length;v<S;)y[v++]=0;(_=M.slice()).unshift(0),O=M[0],M[1]>=sx/2&&++O;do{s=0,(c=e(M,y,S,v))<0?(g=y[0],S!=v&&(g=g*sx+(y[1]||0)),(s=g/O|0)>1?(s>=sx&&(s=sx-1),1==(c=e(f=t(M,s),y,p=f.length,v=y.length))&&(s--,r(f,S<p?_:M,p))):(0==s&&(c=s=1),f=M.slice()),(p=f.length)<v&&f.unshift(0),r(y,f,v),-1==c&&(c=e(M,y,S,v=y.length))<1&&(s++,r(y,S<v?_:M,v)),v=y.length):0===c&&(s++,y=[0]),h[l++]=s,c&&y[0]?y[v++]=A[w]||0:(y=[A[w]],v=1)}while((w++<x||void 0!==y[0])&&m--)}return h[0]||h.shift(),d.e=u,jx(d,a?i+wx(d)+1:i)}}();function bx(t,e){var r,n,o,i,a,c=0,u=0,l=t.constructor,s=l.precision;if(wx(t)>16)throw Error(ax+wx(t));if(!t.s)return new l(tx);for(nx=!1,a=s,i=new l(.03125);t.abs().gte(.1);)t=t.times(i),u+=5;for(a+=Math.log(ux(2,u))/Math.LN10*2+5|0,r=n=o=new l(tx),l.precision=a;;){if(n=jx(n.times(t),a),r=r.times(++c),gx((i=o.plus(mx(n,r,a))).d).slice(0,a)===gx(o.d).slice(0,a)){for(;u--;)o=jx(o.times(o),a);return l.precision=s,null==e?(nx=!0,jx(o,s)):o}o=i}}function wx(t){for(var e=t.e*fx,r=t.d[0];r>=10;r/=10)e++;return e}function xx(t,e,r){if(e>t.LN10.sd())throw nx=!0,r&&(t.precision=r),Error(ox+"LN10 precision limit exceeded");return jx(new t(t.LN10),e)}function Ox(t){for(var e="";t--;)e+="0";return e}function Sx(t,e){var r,n,o,i,a,c,u,l,s,f=1,p=t,d=p.d,h=p.constructor,y=h.precision;if(p.s<1)throw Error(ox+(p.s?"NaN":"-Infinity"));if(p.eq(tx))return new h(0);if(null==e?(nx=!1,l=y):l=e,p.eq(10))return null==e&&(nx=!0),xx(h,l);if(l+=10,h.precision=l,n=(r=gx(d)).charAt(0),i=wx(p),!(Math.abs(i)<15e14))return u=xx(h,l+2,y).times(i+""),p=Sx(new h(n+"."+r.slice(1)),l-10).plus(u),h.precision=y,null==e?(nx=!0,jx(p,y)):p;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=gx((p=p.times(t)).d)).charAt(0),f++;for(i=wx(p),n>1?(p=new h("0."+r),i++):p=new h(n+"."+r.slice(1)),c=a=p=mx(p.minus(tx),p.plus(tx),l),s=jx(p.times(p),l),o=3;;){if(a=jx(a.times(s),l),gx((u=c.plus(mx(a,new h(o),l))).d).slice(0,l)===gx(c.d).slice(0,l))return c=c.times(2),0!==i&&(c=c.plus(xx(h,l+2,y).times(i+""))),c=mx(c,new h(f),l),h.precision=y,null==e?(nx=!0,jx(c,y)):c;c=u,o+=2}}function _x(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=cx(r/fx),t.d=[],n=(r+1)%fx,r<0&&(n+=fx),n<o){for(n&&t.d.push(+e.slice(0,n)),o-=fx;n<o;)t.d.push(+e.slice(n,n+=fx));e=e.slice(n),n=fx-e.length}else n-=o;for(;n--;)e+="0";if(t.d.push(+e),nx&&(t.e>dx||t.e<-dx))throw Error(ax+r)}else t.s=0,t.e=0,t.d=[0];return t}function jx(t,e,r){var n,o,i,a,c,u,l,s,f=t.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((n=e-a)<0)n+=fx,o=e,l=f[s=0];else{if((s=Math.ceil((n+1)/fx))>=(i=f.length))return t;for(l=i=f[s],a=1;i>=10;i/=10)a++;o=(n%=fx)-fx+a}if(void 0!==r&&(c=l/(i=ux(10,a-o-1))%10|0,u=e<0||void 0!==f[s+1]||l%i,u=r<4?(c||u)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||u||6==r&&(n>0?o>0?l/ux(10,a-o):0:f[s-1])%10&1||r==(t.s<0?8:7))),e<1||!f[0])return u?(i=wx(t),f.length=1,e=e-i-1,f[0]=ux(10,(fx-e%fx)%fx),t.e=cx(-e/fx)||0):(f.length=1,f[0]=t.e=t.s=0),t;if(0==n?(f.length=s,i=1,s--):(f.length=s+1,i=ux(10,fx-n),f[s]=o>0?(l/ux(10,a-o)%ux(10,o)|0)*i:0),u)for(;;){if(0==s){(f[0]+=i)==sx&&(f[0]=1,++t.e);break}if(f[s]+=i,f[s]!=sx)break;f[s--]=0,i=1}for(n=f.length;0===f[--n];)f.pop();if(nx&&(t.e>dx||t.e<-dx))throw Error(ax+wx(t));return t}function Px(t,e){var r,n,o,i,a,c,u,l,s,f,p=t.constructor,d=p.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new p(t),nx?jx(e,d):e;if(u=t.d,f=e.d,n=e.e,l=t.e,u=u.slice(),a=l-n){for((s=a<0)?(r=u,a=-a,c=f.length):(r=f,n=l,c=u.length),a>(o=Math.max(Math.ceil(d/fx),c)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((s=(o=u.length)<(c=f.length))&&(c=o),o=0;o<c;o++)if(u[o]!=f[o]){s=u[o]<f[o];break}a=0}for(s&&(r=u,u=f,f=r,e.s=-e.s),c=u.length,o=f.length-c;o>0;--o)u[c++]=0;for(o=f.length;o>a;){if(u[--o]<f[o]){for(i=o;i&&0===u[--i];)u[i]=sx-1;--u[i],u[o]+=sx}u[o]-=f[o]}for(;0===u[--c];)u.pop();for(;0===u[0];u.shift())--n;return u[0]?(e.d=u,e.e=n,nx?jx(e,d):e):new p(0)}function Ax(t,e,r){var n,o=wx(t),i=gx(t.d),a=i.length;return e?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+Ox(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Ox(-o-1)+i,r&&(n=r-a)>0&&(i+=Ox(n))):o>=a?(i+=Ox(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+Ox(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=Ox(n))),t.s<0?"-"+i:i}function Mx(t,e){if(t.length>e)return t.length=e,!0}function kx(t){if(!t||"object"!=typeof t)throw Error(ox+"Object expected");var e,r,n,o=["precision",1,rx,"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(!(cx(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(ix+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(ix+r+": "+n);this[r]=new this(n)}return this}var Ex=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(ix+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])):_x(e,t.toString())}if("string"!=typeof t)throw Error(ix+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!lx.test(t))throw Error(ix+t);_x(e,t)}if(i.prototype=hx,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=kx,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}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});tx=new Ex(1);var Cx=Ex;function Tx(t){return function(t){if(Array.isArray(t))return Dx(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 Dx(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 Dx(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 Dx(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 Ix=function(t){return t},Nx={},Rx=function(t){return t===Nx},Lx=function(t){return function e(){return 0===arguments.length||1===arguments.length&&Rx(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},Bx=function t(e,r){return 1===e?r:Lx((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!==Nx})).length;return a>=e?r.apply(void 0,o):t(e-a,Lx((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 Rx(t)?e.shift():t}));return r.apply(void 0,Tx(i).concat(e))})))}))},zx=function(t){return Bx(t.length,t)},$x=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},Hx=zx((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),Fx=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return Ix;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))}},Ux=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Vx=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 Wx=zx((function(t,e,r){var n=+t;return n+r*(+e-n)})),Zx=zx((function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)})),qx=zx((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))})),Yx={rangeStep:function(t,e,r){for(var n=new Cx(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 Cx(t).abs().log(10).toNumber())+1},interpolateNumber:Wx,uninterpolateNumber:Zx,uninterpolateTruncation:qx};function Xx(t){return function(t){if(Array.isArray(t))return Jx(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Gx(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 Kx(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(t,e)||Gx(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 Gx(t,e){if(t){if("string"==typeof t)return Jx(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)?Jx(t,e):void 0}}function Jx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Qx(t){var e=Kx(t,2),r=e[0],n=e[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function tO(t,e,r){if(t.lte(0))return new Cx(0);var n=Yx.getDigitCount(t.toNumber()),o=new Cx(10).pow(n),i=t.div(o),a=1!==n?.05:.1,c=new Cx(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?c:new Cx(Math.ceil(c))}function eO(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 Cx(0),tickMin:new Cx(0),tickMax:new Cx(0)};var i,a=tO(new Cx(e).sub(t).div(r-1),n,o);i=t<=0&&e>=0?new Cx(0):(i=new Cx(t).add(e).div(2)).sub(new Cx(i).mod(a));var c=Math.ceil(i.sub(t).div(a).toNumber()),u=Math.ceil(new Cx(e).sub(i).div(a).toNumber()),l=c+u+1;return l>r?eO(t,e,r,n,o+1):(l<r&&(u=e>0?u+(r-l):u,c=e>0?c:c+(r-l)),{step:a,tickMin:i.sub(new Cx(c).mul(a)),tickMax:i.add(new Cx(u).mul(a))})}var rO=Vx((function(t){var e=Kx(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),c=Kx(Qx([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(Xx($x(0,o-1).map((function(){return 1/0})))):[].concat(Xx($x(0,o-1).map((function(){return-1/0}))),[l]);return r>n?Ux(s):s}if(u===l)return function(t,e,r){var n=1,o=new Cx(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new Cx(10).pow(Yx.getDigitCount(t)-1),o=new Cx(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new Cx(Math.floor(t)))}else 0===t?o=new Cx(Math.floor((e-1)/2)):r||(o=new Cx(Math.floor(t)));var a=Math.floor((e-1)/2);return Fx(Hx((function(t){return o.add(new Cx(t-a).mul(n)).toNumber()})),$x)(0,e)}(u,o,i);var f=eO(u,l,a,i),p=f.step,d=f.tickMin,h=f.tickMax,y=Yx.rangeStep(d,h.add(new Cx(.1).mul(p)),p);return r>n?Ux(y):y})),nO=Vx((function(t,e){var r=Kx(t,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Kx(Qx([n,o]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[n,o];if(c===u)return[c];var l=Math.max(e,2),s=tO(new Cx(u).sub(c).div(l-1),i,0),f=[].concat(Xx(Yx.rangeStep(new Cx(c),new Cx(u).sub(new Cx(.99).mul(s)),s)),[u]);return n>o?Ux(f):f})),oO="production"===process.env.NODE_ENV,iO="Invariant failed";function aO(t,e){if(oO)throw new Error(iO);var r="function"==typeof e?e():e,n=r?"".concat(iO,": ").concat(r):iO;throw new Error(n)}var cO=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function uO(t){return uO="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},uO(t)}function lO(){return lO=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},lO.apply(this,arguments)}function sO(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return 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,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 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 pO(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function dO(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,bO(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function hO(t,e,r){return e=vO(e),function(t,e){if(e&&("object"===uO(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,yO()?Reflect.construct(e,r||[],vO(t).constructor):e.apply(t,r))}function yO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(yO=function(){return!!t})()}function vO(t){return vO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vO(t)}function gO(t,e){return gO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gO(t,e)}function mO(t,e,r){return(e=bO(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bO(t){var e=function(t,e){if("object"!=uO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=uO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==uO(e)?e:e+""}var wO=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),hO(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gO(t,e)}(e,st.Component),dO(e,[{key:"render",value:function(){var t=this.props,e=t.offset,r=t.layout,n=t.width,o=t.dataKey,i=t.data,a=t.dataPointFormatter,c=t.xAxis,u=t.yAxis,l=pO(t,cO),s=lc(l,!1);"x"===this.props.direction&&"number"!==c.type&&("production"!==process.env.NODE_ENV?aO(0,'ErrorBar requires Axis type property to be "number".'):aO());var f=i.map((function(t){var i=a(t,o),l=i.x,f=i.y,p=i.value,d=i.errorVal;if(!d)return null;var h,y,v=[];if(Array.isArray(d)){var g=sO(d,2);h=g[0],y=g[1]}else h=y=d;if("vertical"===r){var m=c.scale,b=f+e,w=b+n,x=b-n,O=m(p-h),S=m(p+y);v.push({x1:S,y1:w,x2:S,y2:x}),v.push({x1:O,y1:b,x2:S,y2:b}),v.push({x1:O,y1:w,x2:O,y2:x})}else if("horizontal"===r){var _=u.scale,j=l+e,P=j-n,A=j+n,M=_(p-h),k=_(p+y);v.push({x1:P,y1:k,x2:A,y2:k}),v.push({x1:j,y1:M,x2:j,y2:k}),v.push({x1:P,y1:M,x2:A,y2:M})}return st.createElement(Rc,lO({className:"recharts-errorBar",key:"bar-".concat(v.map((function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)})))},s),v.map((function(t){return st.createElement("line",lO({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))})))}));return st.createElement(Rc,{className:"recharts-errorBars"},f)}}])}();function xO(t){return xO="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},xO(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 SO(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){_O(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 _O(t,e,r){return e=function(t){var e=function(t,e){if("object"!=xO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=xO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==xO(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}mO(wO,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),mO(wO,"displayName","ErrorBar");var jO=function(t){var e=t.children,r=t.formattedGraphicalItems,n=t.legendWidth,o=t.legendContent,i=ic(e,Hd);if(!i)return null;var a,c=Hd.defaultProps,u=void 0!==c?SO(SO({},c),i.props):{};return a=i.props&&i.props.payload?i.props&&i.props.payload:"children"===o?(r||[]).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:i.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(r||[]).map((function(t){var e=t.item,r=e.type.defaultProps,n=void 0!==r?SO(SO({},r),e.props):{},o=n.dataKey,i=n.name,a=n.legendType;return{inactive:n.hide,dataKey:o,type:u.iconType||a||"square",color:IO(e),value:i||o,payload:n}})),SO(SO(SO({},u),Hd.getWithHeight(i,n)),{},{payload:a,item:i})};function PO(t){return PO="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},PO(t)}function AO(t){return function(t){if(Array.isArray(t))return MO(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 MO(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 MO(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 MO(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 kO(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 EO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?kO(Object(r),!0).forEach((function(e){CO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function CO(t,e,r){return e=function(t){var e=function(t,e){if("object"!=PO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=PO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==PO(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function TO(t,e,r){return fa(t)||fa(e)?r:Ia(e)?ua(t,e,r):ya(e)?e(t):r}function DO(t,e,r,n){var o=Qw(t,(function(t){return TO(t,e)}));if("number"===r){var i=o.filter((function(t){return Da(t)||parseFloat(t)}));return i.length?[Xw(i),Uw(i)]:[1/0,-1/0]}return(n?o.filter((function(t){return!fa(t)})):o).map((function(t){return Ia(t)||t instanceof Date?t:""}))}var IO=function(t){var e,r,n=t.type.displayName,o=null!==(e=t.type)&&void 0!==e&&e.defaultProps?EO(EO({},t.type.defaultProps),t.props):t.props,i=o.stroke,a=o.fill;switch(n){case"Line":r=i;break;case"Area":case"Radar":r=i&&"none"!==i?i:a;break;default:r=a}return r},NO=function(t,e,r,n,o){var i=oc(e.props.children,wO).filter((function(t){return function(t,e,r){return!!fa(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=TO(e,r);if(fa(n))return t;var o=Array.isArray(n)?[Xw(n),Uw(n)]:[n,n],i=a.reduce((function(t,r){var n=TO(e,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]}),[1/0,-1/0])}return null},RO=function(t,e,r,n,o){var i=e.map((function(e){var i=e.props.dataKey;return"number"===r&&i&&NO(t,e,i,n)||DO(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}),[])},LO=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},BO=function(t,e,r){if(!t)return null;var n=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,c="scaleBand"===t.realScaleType?n.bandwidth()/2:2,u=(e||r)&&"category"===i&&n.bandwidth?n.bandwidth()/c:0;return u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*Ca(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=o?o.indexOf(t):t;return{coordinate:n(e)+u,value:t,offset:u}})).filter((function(t){return!ka(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:n(t)+u,value:t,index:e,offset:u}})):n.ticks&&!r?n.ticks(t.tickCount).map((function(t){return{coordinate:n(t)+u,value:t,offset:u}})):n.domain().map((function(t,e){return{coordinate:n(t)+u,value:o?o[t]:t,index:e,offset:u}}))},zO=new WeakMap,$O=function(t,e){if("function"!=typeof e)return t;zO.has(t)||zO.set(t,new WeakMap);var r=zO.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},HO=1e-4,FO={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0,a=0;a<e;++a){var c=ka(t[a][r][1])?t[a][r][0]:t[a][r][1];c>=0?(t[a][r][0]=o,t[a][r][1]=o+c,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+c,i=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}Vu(t,e)}},none:Vu,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,o=t[e[0]],i=o.length;n<i;++n){for(var a=0,c=0;a<r;++a)c+=t[a][n][1]||0;o[n][1]+=o[n][0]=-c/2}Vu(t,e)}},wiggle:function(t,e){if((o=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var c=0,u=0,l=0;c<o;++c){for(var s=t[e[c]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,d=0;d<c;++d){var h=t[e[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}u+=f,l+=p*f}r[a-1][1]+=r[a-1][0]=i,u&&(i-=l/u)}r[a-1][1]+=r[a-1][0]=i,Vu(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=ka(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)}}},UO=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),o=FO[r],i=function(){var t=Vc([]),e=Wu,r=Vu,n=Zu;function o(o){var i,a,c=Array.from(t.apply(this,arguments),qu),u=c.length,l=-1;for(const t of o)for(i=0,++l;i<u;++i)(c[i][l]=[0,+n(t,c[i].key,l,o)]).data=t;for(i=0,a=nu(e(c));i<u;++i)c[a[i]].index=i;return r(c,a),c}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:Vc(Array.from(e)),o):t},o.value=function(t){return arguments.length?(n="function"==typeof t?t:Vc(+t),o):n},o.order=function(t){return arguments.length?(e=null==t?Wu:"function"==typeof t?t:Vc(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?Vu:t,o):r},o}().keys(n).value((function(t,e){return+TO(t,e,0)})).order(Wu).offset(o);return i(t)};function VO(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&&!fa(o[e.dataKey])){var c=$a(r,"value",o[e.dataKey]);if(c)return c.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var u=TO(o,fa(a)?e.dataKey:a);return fa(u)?null:e.scale(u)}var WO=function(t){var e=t.axis,r=t.ticks,n=t.offset,o=t.bandSize,i=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var c=TO(i,e.dataKey,e.domain[a]);return fa(c)?null:e.scale(c)-o/2+n},ZO=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[Xw(e.concat([t[0]]).filter(Da)),Uw(e.concat([t[1]]).filter(Da))]}),[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}))},qO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,YO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,XO=function(t,e,r){if(ya(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(Da(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(qO.test(t[0])){var o=+qO.exec(t[0])[1];n[0]=e[0]-o}else ya(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(Da(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(YO.test(t[1])){var i=+YO.exec(t[1])[1];n[1]=e[1]+i}else ya(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},KO=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=eh(e,(function(t){return t.coordinate})),i=1/0,a=1,c=o.length;a<c;a++){var u=o[a],l=o[a-1];i=Math.min((u.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},GO=function(t,e,r){return t&&t.length?ex(t,ua(r,"type.defaultProps.domain"))?e:t:e},JO=function(t,e){var r=t.type.defaultProps?EO(EO({},t.type.defaultProps),t.props):t.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,c=r.tooltipType,u=r.chartType,l=r.hide;return EO(EO({},lc(t,!1)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:IO(t),value:TO(e,n),type:c,payload:e,chartType:u,hide:l})};function QO(t){return QO="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},QO(t)}function tS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function eS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tS(Object(r),!0).forEach((function(e){rS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function rS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=QO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=QO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==QO(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var nS=Math.PI/180,oS=function(t){return 180*t/Math.PI},iS=function(t,e,r,n){return{x:t+Math.cos(-nS*n)*r,y:e+Math.sin(-nS*n)*r}},aS=function(t,e){var r=t.x,n=t.y,o=e.cx,i=e.cy,a=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(n-i,2))}({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var c=(r-o)/a,u=Math.acos(c);return n>i&&(u=2*Math.PI-u),{radius:a,angle:oS(u),angleInRadian:u}},cS=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)},uS=function(t,e){var r=t.x,n=t.y,o=aS({x:r,y:n},e),i=o.radius,a=o.angle,c=e.innerRadius,u=e.outerRadius;if(i<c||i>u)return!1;if(0===i)return!0;var l,s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:e-360*i,endAngle:r-360*i}}(e),f=s.startAngle,p=s.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;l=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;l=d>=p&&d<=f}return l?eS(eS({},e),{},{radius:i,angle:cS(d,e)}):null};function lS(t){return lS="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},lS(t)}var sS=["offset"];function fS(t){return function(t){if(Array.isArray(t))return pS(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 pS(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 pS(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 pS(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 dS(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function hS(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 yS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hS(Object(r),!0).forEach((function(e){vS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=lS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=lS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==lS(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gS(){return gS=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},gS.apply(this,arguments)}var mS=function(t){var e=t.value,r=t.formatter,n=fa(t.children)?e:t.children;return ya(r)?r(n):n},bS=function(t,e,r){var n,o,i=t.position,a=t.viewBox,c=t.offset,u=t.className,l=a,s=l.cx,f=l.cy,p=l.innerRadius,d=l.outerRadius,h=l.startAngle,y=l.endAngle,v=l.clockWise,g=(p+d)/2,m=function(t,e){return Ca(e-t)*Math.min(Math.abs(e-t),360)}(h,y),b=m>=0?1:-1;"insideStart"===i?(n=h+b*c,o=v):"insideEnd"===i?(n=y-b*c,o=!v):"end"===i&&(n=y+b*c,o=v),o=m<=0?o:!o;var w=iS(s,f,g,n),x=iS(s,f,g,n+359*(o?1:-1)),O="M".concat(w.x,",").concat(w.y,"\n A").concat(g,",").concat(g,",0,1,").concat(o?0:1,",\n ").concat(x.x,",").concat(x.y),S=fa(t.id)?Ra("recharts-radial-line-"):t.id;return st.createElement("text",gS({},r,{dominantBaseline:"central",className:Dn("recharts-radial-bar-label",u)}),st.createElement("defs",null,st.createElement("path",{id:S,d:O})),st.createElement("textPath",{xlinkHref:"#".concat(S)},e))},wS=function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e,i=o.cx,a=o.cy,c=o.innerRadius,u=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===n){var s=iS(i,a,u+r,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=iS(i,a,(c+u)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},xS=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e,a=i.x,c=i.y,u=i.width,l=i.height,s=l>=0?1:-1,f=s*n,p=s>0?"end":"start",d=s>0?"start":"end",h=u>=0?1:-1,y=h*n,v=h>0?"end":"start",g=h>0?"start":"end";if("top"===o)return yS(yS({},{x:a+u/2,y:c-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(c-r.y,0),width:u}:{});if("bottom"===o)return yS(yS({},{x:a+u/2,y:c+l+f,textAnchor:"middle",verticalAnchor:d}),r?{height:Math.max(r.y+r.height-(c+l),0),width:u}:{});if("left"===o){var m={x:a-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return yS(yS({},m),r?{width:Math.max(m.x-r.x,0),height:l}:{})}if("right"===o){var b={x:a+u+y,y:c+l/2,textAnchor:g,verticalAnchor:"middle"};return yS(yS({},b),r?{width:Math.max(r.x+r.width-b.x,0),height:l}:{})}var w=r?{width:u,height:l}:{};return"insideLeft"===o?yS({x:a+y,y:c+l/2,textAnchor:g,verticalAnchor:"middle"},w):"insideRight"===o?yS({x:a+u-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===o?yS({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===o?yS({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?yS({x:a+y,y:c+f,textAnchor:g,verticalAnchor:d},w):"insideTopRight"===o?yS({x:a+u-y,y:c+f,textAnchor:v,verticalAnchor:d},w):"insideBottomLeft"===o?yS({x:a+y,y:c+l-f,textAnchor:g,verticalAnchor:p},w):"insideBottomRight"===o?yS({x:a+u-y,y:c+l-f,textAnchor:v,verticalAnchor:p},w):va(o)&&(Da(o.x)||Ta(o.x))&&(Da(o.y)||Ta(o.y))?yS({x:a+La(o.x,u),y:c+La(o.y,l),textAnchor:"end",verticalAnchor:"end"},w):yS({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)},OS=function(t){return"cx"in t&&Da(t.cx)};function SS(t){var e,r=t.offset,n=yS({offset:void 0===r?5:r},dS(t,sS)),o=n.viewBox,i=n.position,a=n.value,c=n.children,u=n.content,l=n.className,s=void 0===l?"":l,f=n.textBreakAll;if(!o||fa(a)&&fa(c)&&!ft(u)&&!ya(u))return null;if(ft(u))return xt(u,n);if(ya(u)){if(ft(e=Ot(u,n)))return e}else e=mS(n);var p=OS(o),d=lc(n,!0);if(p&&("insideStart"===i||"insideEnd"===i||"end"===i))return bS(n,e,d);var h=p?wS(n):xS(n);return st.createElement(Yy,gS({className:Dn("recharts-label",s)},d,h,{breakAll:f}),e)}SS.displayName="Label";var _S,jS,PS=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,d=t.left,h=t.width,y=t.height,v=t.clockWise,g=t.labelViewBox;if(g)return g;if(Da(h)&&Da(y)){if(Da(s)&&Da(f))return{x:s,y:f,width:h,height:y};if(Da(p)&&Da(d))return{x:p,y:d,width:h,height:y}}return Da(s)&&Da(f)?{x:s,y:f,width:0,height:0}:Da(e)&&Da(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};SS.parseViewBox=PS,SS.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=PS(t),i=oc(n,SS).map((function(t,r){return xt(t,{viewBox:e||o,key:"label-".concat(r)})}));if(!r)return i;var a=function(t,e){return t?!0===t?st.createElement(SS,{key:"label-implicit",viewBox:e}):Ia(t)?st.createElement(SS,{key:"label-implicit",viewBox:e,value:t}):ft(t)?t.type===SS?xt(t,{key:"label-implicit",viewBox:e}):st.createElement(SS,{key:"label-implicit",content:t,viewBox:e}):ya(t)?st.createElement(SS,{key:"label-implicit",content:t,viewBox:e}):va(t)?st.createElement(SS,gS({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||o);return[a].concat(fS(i))};var AS=(jS||(jS=1,_S=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}),_S),MS=dr(AS);function kS(t){return kS="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},kS(t)}var ES=["valueAccessor"],CS=["data","dataKey","clockWise","id","textBreakAll"];function TS(t){return function(t){if(Array.isArray(t))return DS(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 DS(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 DS(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 DS(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 IS(){return IS=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},IS.apply(this,arguments)}function NS(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 RS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?NS(Object(r),!0).forEach((function(e){LS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function LS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=kS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=kS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==kS(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function BS(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var zS=function(t){return Array.isArray(t.value)?MS(t.value):t.value};function $S(t){var e=t.valueAccessor,r=void 0===e?zS:e,n=BS(t,ES),o=n.data,i=n.dataKey,a=n.clockWise,c=n.id,u=n.textBreakAll,l=BS(n,CS);return o&&o.length?st.createElement(Rc,{className:"recharts-label-list"},o.map((function(t,e){var n=fa(i)?r(t,e):TO(t&&t.payload,i),o=fa(c)?{}:{id:"".concat(c,"-").concat(e)};return st.createElement(SS,IS({},lc(t,!0),l,o,{parentViewBox:t.parentViewBox,value:n,textBreakAll:u,viewBox:SS.parseViewBox(fa(a)?t:RS(RS({},t),{},{clockWise:a})),key:"label-".concat(e),index:e}))}))):null}function HS(t){return HS="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},HS(t)}function FS(){return FS=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},FS.apply(this,arguments)}function US(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function VS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?US(Object(r),!0).forEach((function(e){WS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):US(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function WS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=HS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=HS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==HS(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}$S.displayName="LabelList",$S.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=oc(t.children,$S).map((function(t,r){return xt(t,{data:e,key:"labelList-".concat(r)})}));return r?[function(t,e){return t?!0===t?st.createElement($S,{key:"labelList-implicit",data:e}):st.isValidElement(t)||ya(t)?st.createElement($S,{key:"labelList-implicit",data:e,content:t}):va(t)?st.createElement($S,IS({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(TS(n)):n};var ZS=function(t){var e=t.cx,r=t.cy,n=t.radius,o=t.angle,i=t.sign,a=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(a?1:-1)+n,s=Math.asin(c/l)/nS,f=u?o:o+i*s,p=u?o-i*s:o;return{center:iS(e,r,l,f),circleTangency:iS(e,r,n,f),lineTangency:iS(e,r,l*Math.cos(s*nS),p),theta:s}},qS=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return Ca(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),c=i+a,u=iS(e,r,o,i),l=iS(e,r,o,c),s="M ".concat(u.x,",").concat(u.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>c),",\n ").concat(l.x,",").concat(l.y,"\n ");if(n>0){var f=iS(e,r,n,i),p=iS(e,r,n,c);s+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},YS={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},XS=function(t){var e=VS(VS({},YS),t),r=e.cx,n=e.cy,o=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,c=e.forceCornerRadius,u=e.cornerIsExternal,l=e.startAngle,s=e.endAngle,f=e.className;if(i<o||l===s)return null;var p,d=Dn("recharts-sector",f),h=i-o,y=La(a,h,0,!0);return p=y>0&&Math.abs(l-s)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,s=Ca(l-u),f=ZS({cx:e,cy:r,radius:o,angle:u,sign:s,cornerRadius:i,cornerIsExternal:c}),p=f.circleTangency,d=f.lineTangency,h=f.theta,y=ZS({cx:e,cy:r,radius:o,angle:l,sign:-s,cornerRadius:i,cornerIsExternal:c}),v=y.circleTangency,g=y.lineTangency,m=y.theta,b=c?Math.abs(u-l):Math.abs(u-l)-h-m;if(b<0)return a?"M ".concat(d.x,",").concat(d.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 "):qS({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:u,endAngle:l});var w="M ".concat(d.x,",").concat(d.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(g.x,",").concat(g.y,"\n ");if(n>0){var x=ZS({cx:e,cy:r,radius:n,angle:u,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),O=x.circleTangency,S=x.lineTangency,_=x.theta,j=ZS({cx:e,cy:r,radius:n,angle:l,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),P=j.circleTangency,A=j.lineTangency,M=j.theta,k=c?Math.abs(u-l):Math.abs(u-l)-_-M;if(k<0&&0===i)return"".concat(w,"L").concat(e,",").concat(r,"Z");w+="L".concat(A.x,",").concat(A.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(P.x,",").concat(P.y,"\n A").concat(n,",").concat(n,",0,").concat(+(k>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(e,",").concat(r,"Z");return w}({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(y,h/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:l,endAngle:s}):qS({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:l,endAngle:s}),st.createElement("path",FS({},lc(e,!0),{className:d,d:p,role:"img"}))};function KS(t){return KS="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},KS(t)}function GS(){return GS=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},GS.apply(this,arguments)}function JS(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 QS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?JS(Object(r),!0).forEach((function(e){t_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):JS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function t_(t,e,r){return e=function(t){var e=function(t,e){if("object"!=KS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=KS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==KS(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var e_,r_={curveBasisClosed:function(t){return new Cu(t)},curveBasisOpen:function(t){return new Tu(t)},curveBasis:function(t){return new Eu(t)},curveBumpX:function(t){return new su(t,!0)},curveBumpY:function(t){return new su(t,!1)},curveLinearClosed:function(t){return new Du(t)},curveLinear:iu,curveMonotoneX:function(t){return new Bu(t)},curveMonotoneY:function(t){return new zu(t)},curveNatural:function(t){return new Hu(t)},curveStep:function(t){return new Uu(t,.5)},curveStepAfter:function(t){return new Uu(t,1)},curveStepBefore:function(t){return new Uu(t,0)}},n_=function(t){return t.x===+t.x&&t.y===+t.y},o_=function(t){return t.x},i_=function(t){return t.y},a_=function(t){var e,r=t.type,n=void 0===r?"linear":r,o=t.points,i=void 0===o?[]:o,a=t.baseLine,c=t.layout,u=t.connectNulls,l=void 0!==u&&u,s=function(t,e){if(ya(t))return t;var r="curve".concat(Uc(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?r_[r]||iu:r_["".concat(r).concat("vertical"===e?"Y":"X")]}(n,c),f=l?i.filter((function(t){return n_(t)})):i;if(Array.isArray(a)){var p=l?a.filter((function(t){return n_(t)})):a,d=f.map((function(t,e){return QS(QS({},t),{},{base:p[e]})}));return(e="vertical"===c?lu().y(i_).x1(o_).x0((function(t){return t.base.x})):lu().x(o_).y1(i_).y0((function(t){return t.base.y}))).defined(n_).curve(s),e(d)}return(e="vertical"===c&&Da(a)?lu().y(i_).x1(o_).x0(a):Da(a)?lu().x(o_).y1(i_).y0(a):uu().x(o_).y(i_)).defined(n_).curve(s),e(f)},c_=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?a_(t):n;return st.createElement("path",GS({},lc(t,!1),qa(t),{className:Dn("recharts-curve",e),d:i,ref:o}))},u_={exports:{}},l_={exports:{}},s_={};var f_,p_,d_,h_,y_,v_,g_,m_,b_,w_,x_,O_,S_,__,j_,P_={};
18
+ */var _a,ja,Pa,Aa,Ma=(Oa||(Oa=1,"production"===process.env.NODE_ENV?ba.exports=function(){if(ha)return wa;ha=1;var t,e=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function y(t){if("object"==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:switch(t=t.type){case n:case i:case o:case s:case f:return t;default:switch(t=t&&t.$$typeof){case u:case c:case l:case d:case p:case a:return t;default:return h}}case r:return h}}}return t=Symbol.for("react.module.reference"),wa.ContextConsumer=c,wa.ContextProvider=a,wa.Element=e,wa.ForwardRef=l,wa.Fragment=n,wa.Lazy=d,wa.Memo=p,wa.Portal=r,wa.Profiler=i,wa.StrictMode=o,wa.Suspense=s,wa.SuspenseList=f,wa.isAsyncMode=function(){return!1},wa.isConcurrentMode=function(){return!1},wa.isContextConsumer=function(t){return y(t)===c},wa.isContextProvider=function(t){return y(t)===a},wa.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},wa.isForwardRef=function(t){return y(t)===l},wa.isFragment=function(t){return y(t)===n},wa.isLazy=function(t){return y(t)===d},wa.isMemo=function(t){return y(t)===p},wa.isPortal=function(t){return y(t)===r},wa.isProfiler=function(t){return y(t)===i},wa.isStrictMode=function(t){return y(t)===o},wa.isSuspense=function(t){return y(t)===s},wa.isSuspenseList=function(t){return y(t)===f},wa.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===i||e===o||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===l||e.$$typeof===t||void 0!==e.getModuleId)},wa.typeOf=y,wa}():ba.exports=(xa||(xa=1,"production"!==process.env.NODE_ENV&&function(){var t,e=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function y(t){if("object"==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:var y=t.type;switch(y){case n:case i:case o:case s:case f:return y;default:var v=y&&y.$$typeof;switch(v){case u:case c:case l:case d:case p:case a:return v;default:return h}}case r:return h}}}t=Symbol.for("react.module.reference");var v=c,g=a,m=e,b=l,w=n,x=d,O=p,S=r,_=i,j=o,P=s,A=f,M=!1,k=!1;Sa.ContextConsumer=v,Sa.ContextProvider=g,Sa.Element=m,Sa.ForwardRef=b,Sa.Fragment=w,Sa.Lazy=x,Sa.Memo=O,Sa.Portal=S,Sa.Profiler=_,Sa.StrictMode=j,Sa.Suspense=P,Sa.SuspenseList=A,Sa.isAsyncMode=function(t){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Sa.isConcurrentMode=function(t){return k||(k=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Sa.isContextConsumer=function(t){return y(t)===c},Sa.isContextProvider=function(t){return y(t)===a},Sa.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Sa.isForwardRef=function(t){return y(t)===l},Sa.isFragment=function(t){return y(t)===n},Sa.isLazy=function(t){return y(t)===d},Sa.isMemo=function(t){return y(t)===p},Sa.isPortal=function(t){return y(t)===r},Sa.isProfiler=function(t){return y(t)===i},Sa.isStrictMode=function(t){return y(t)===o},Sa.isSuspense=function(t){return y(t)===s},Sa.isSuspenseList=function(t){return y(t)===f},Sa.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===i||e===o||e===s||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===l||e.$$typeof===t||void 0!==e.getModuleId)},Sa.typeOf=y}()),Sa)),ba.exports);function ka(){if(ja)return _a;ja=1;var t=Li(),e=Bi();return _a=function(r){return"number"==typeof r||e(r)&&"[object Number]"==t(r)}}var Ea=function(){if(Aa)return Pa;Aa=1;var t=ka();return Pa=function(e){return t(e)&&e!=+e}}(),Ca=dr(Ea),Ta=dr(ka()),Da=function(t){return 0===t?0:t>0?1:-1},Ia=function(t){return va(t)&&t.indexOf("%")===t.length-1},Na=function(t){return Ta(t)&&!Ca(t)},Ra=function(t){return Na(t)||va(t)},La=0,Ba=function(t){var e=++La;return"".concat(t||"").concat(e)},za=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(!Na(t)&&!va(t))return n;if(Ia(t)){var i=t.indexOf("%");r=e*parseFloat(t.slice(0,i))/100}else r=+t;return Ca(r)&&(r=n),o&&r>e&&(r=e),r},$a=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},Ha=function(t,e){return Na(t)&&Na(e)?function(r){return t+r*(e-t)}:function(){return e}};function Fa(t,e,r){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):sa(t,e))===r})):null}function Ua(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function Va(t){return Va="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},Va(t)}var Wa=["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"],Za=["points","pathLength"],qa={svg:["viewBox","children"],polygon:Za,polyline:Za},Ya=["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"],Xa=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if(ft(t)&&(r=t.props),!ma(r))return null;var n={};return Object.keys(r).forEach((function(t){Ya.includes(t)&&(n[t]=e||function(e){return r[t](r,e)})})),n},Ka=function(t,e,r){if(!ma(t)||"object"!==Va(t))return null;var n=null;return Object.keys(t).forEach((function(o){var i=t[o];Ya.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},Ga=["children"],Ja=["children"];function Qa(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function tc(t){return tc="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},tc(t)}var ec={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},rc=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},nc=null,oc=null,ic=function t(e){if(e===nc&&Array.isArray(oc))return oc;var r=[];return pt.forEach(e,(function(e){da(e)||(Ma.isFragment(e)?r=r.concat(t(e.props.children)):r.push(e))})),oc=r,nc=e,r};function ac(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map((function(t){return rc(t)})):[rc(e)],ic(t).forEach((function(t){var e=sa(t,"type.displayName")||sa(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function cc(t,e){var r=ac(t,e);return r&&r[0]}var uc=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!Na(r)||r<=0||!Na(n)||n<=0)},lc=["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"],sc=function(t){return t&&"object"===tc(t)&&"clipDot"in t},fc=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if(ft(t)&&(n=t.props),!ma(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==qa?void 0:qa[n])&&void 0!==o?o:[];return!ga(t)&&(n&&i.includes(e)||Wa.includes(e))||r&&Ya.includes(e)})(null===(i=n)||void 0===i?void 0:i[t],t,e,r)&&(o[t]=n[t])})),o},pc=function t(e,r){if(e===r)return!0;var n=pt.count(e);if(n!==pt.count(r))return!1;if(0===n)return!0;if(1===n)return dc(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var o=0;o<n;o++){var i=e[o],a=r[o];if(Array.isArray(i)||Array.isArray(a)){if(!t(i,a))return!1}else if(!dc(i,a))return!1}return!0},dc=function(t,e){if(da(t)&&da(e))return!0;if(!da(t)&&!da(e)){var r=t.props||{},n=r.children,o=Qa(r,Ga),i=e.props||{},a=i.children,c=Qa(i,Ja);return n&&a?Ua(o,c)&&pc(n,a):!n&&!a&&Ua(o,c)}return!1},hc=function(t,e){var r=[],n={};return ic(t).forEach((function(t,o){if(function(t){return t&&t.type&&va(t.type)&&lc.indexOf(t.type)>=0}(t))r.push(t);else if(t){var i=rc(t.type),a=e[i]||{},c=a.handler,u=a.once;if(c&&(!u||!n[i])){var l=c(t,i,o);r.push(l),n[i]=!0}}})),r},yc=["children","width","height","viewBox","className","style","title","desc"];function vc(){return vc=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},vc.apply(this,arguments)}function gc(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function mc(t){var e=t.children,r=t.width,n=t.height,o=t.viewBox,i=t.className,a=t.style,c=t.title,u=t.desc,l=gc(t,yc),s=o||{width:r,height:n,x:0,y:0},f=Nn("recharts-surface",i);return st.createElement("svg",vc({},fc(l,!0,"svg"),{className:f,width:r,height:n,style:a,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),st.createElement("title",null,c),st.createElement("desc",null,u),e)}var bc=["children","className"];function wc(){return wc=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},wc.apply(this,arguments)}function xc(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Oc,Sc,_c,jc,Pc,Ac,Mc,kc,Ec,Cc,Tc,Dc,Ic,Nc,Rc,Lc,Bc=st.forwardRef((function(t,e){var r=t.children,n=t.className,o=xc(t,bc),i=Nn("recharts-layer",n);return st.createElement("g",wc({className:i},fc(o,!0),{ref:e}),r)})),zc="production"!==process.env.NODE_ENV,$c=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];if(zc&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(e.replace(/%s/g,(function(){return n[i++]})))}};function Hc(){if(jc)return _c;jc=1;var t=(Sc||(Sc=1,Oc=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}),Oc);return _c=function(e,r,n){var o=e.length;return n=void 0===n?o:n,!r&&n>=o?e:t(e,r,n)},_c}function Fc(){if(Ac)return Pc;Ac=1;var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");return Pc=function(e){return t.test(e)},Pc}function Uc(){if(Dc)return Tc;Dc=1;var t=(kc||(kc=1,Mc=function(t){return t.split("")}),Mc),e=Fc(),r=function(){if(Cc)return Ec;Cc=1;var t="\\ud800-\\udfff",e="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+n+")?",u="[\\ufe0e\\ufe0f]?",l=u+c+"(?:\\u200d(?:"+[o,i,a].join("|")+")"+u+c+")*",s="(?:"+[o+r+"?",r,i,a,e].join("|")+")",f=RegExp(n+"(?="+n+")|"+s+l,"g");return Ec=function(t){return t.match(f)||[]},Ec}();return Tc=function(n){return e(n)?r(n):t(n)},Tc}var Vc=function(){if(Lc)return Rc;Lc=1;var t=function(){if(Nc)return Ic;Nc=1;var t=Hc(),e=Fc(),r=Uc(),n=na();return Ic=function(o){return function(i){i=n(i);var a=e(i)?r(i):void 0,c=a?a[0]:i.charAt(0),u=a?t(a,1).join(""):i.slice(1);return c[o]()+u}},Ic}(),e=t("toUpperCase");return Rc=e}(),Wc=dr(Vc);function Zc(t){return function(){return t}}const qc=Math.cos,Yc=Math.sin,Xc=Math.sqrt,Kc=Math.PI,Gc=2*Kc,Jc=Math.PI,Qc=2*Jc,tu=1e-6,eu=Qc-tu;function ru(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class nu{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?ru:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return ru;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,o,i){this._append`C${+t},${+e},${+r},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(t,e,r,n,o){if(t=+t,e=+e,r=+r,n=+n,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,c=r-t,u=n-e,l=i-t,s=a-e,f=l*l+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>tu)if(Math.abs(s*c-u*l)>tu&&o){let p=r-i,d=n-a,h=c*c+u*u,y=p*p+d*d,v=Math.sqrt(h),g=Math.sqrt(f),m=o*Math.tan((Jc-Math.acos((h+f-y)/(2*v*g)))/2),b=m/g,w=m/v;Math.abs(b-1)>tu&&this._append`L${t+b*l},${e+b*s}`,this._append`A${o},${o},0,0,${+(s*p>l*d)},${this._x1=t+w*c},${this._y1=e+w*u}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,r,n,o,i){if(t=+t,e=+e,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),u=t+a,l=e+c,s=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>tu||Math.abs(this._y1-l)>tu)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%Qc+Qc),f>eu?this._append`A${r},${r},0,1,${s},${t-a},${e-c}A${r},${r},0,1,${s},${this._x1=u},${this._y1=l}`:f>tu&&this._append`A${r},${r},0,${+(f>=Jc)},${s},${this._x1=t+r*Math.cos(o)},${this._y1=e+r*Math.sin(o)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function ou(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 nu(e)}function iu(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function au(t){this._context=t}function cu(t){return new au(t)}function uu(t){return t[0]}function lu(t){return t[1]}function su(t,e){var r=Zc(!0),n=null,o=cu,i=null,a=ou(c);function c(c){var u,l,s,f=(c=iu(c)).length,p=!1;for(null==n&&(i=o(s=a())),u=0;u<=f;++u)!(u<f&&r(l=c[u],u,c))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+t(l,u,c),+e(l,u,c));if(s)return i=null,s+""||null}return t="function"==typeof t?t:void 0===t?uu:Zc(t),e="function"==typeof e?e:void 0===e?lu:Zc(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:Zc(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:Zc(+t),c):e},c.defined=function(t){return arguments.length?(r="function"==typeof t?t:Zc(!!t),c):r},c.curve=function(t){return arguments.length?(o=t,null!=n&&(i=o(n)),c):o},c.context=function(t){return arguments.length?(null==t?n=i=null:i=o(n=t),c):n},c}function fu(t,e,r){var n=null,o=Zc(!0),i=null,a=cu,c=null,u=ou(l);function l(l){var s,f,p,d,h,y=(l=iu(l)).length,v=!1,g=new Array(y),m=new Array(y);for(null==i&&(c=a(h=u())),s=0;s<=y;++s){if(!(s<y&&o(d=l[s],s,l))===v)if(v=!v)f=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),p=s-1;p>=f;--p)c.point(g[p],m[p]);c.lineEnd(),c.areaEnd()}v&&(g[s]=+t(d,s,l),m[s]=+e(d,s,l),c.point(n?+n(d,s,l):g[s],r?+r(d,s,l):m[s]))}if(h)return c=null,h+""||null}function s(){return su().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?uu:Zc(+t),e="function"==typeof e?e:Zc(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?lu:Zc(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:Zc(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:Zc(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Zc(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:Zc(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:Zc(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Zc(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(o="function"==typeof t?t:Zc(!!t),l):o},l.curve=function(t){return arguments.length?(a=t,null!=i&&(c=a(i)),l):a},l.context=function(t){return arguments.length?(null==t?i=c=null:c=a(i=t),l):i},l}au.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)}}};class pu{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}}var du={draw(t,e){const r=Xc(e/Kc);t.moveTo(r,0),t.arc(0,0,r,0,Gc)}},hu={draw(t,e){const r=Xc(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()}};const yu=Xc(1/3),vu=2*yu;var gu={draw(t,e){const r=Xc(e/vu),n=r*yu;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},mu={draw(t,e){const r=Xc(e),n=-r/2;t.rect(n,n,r,r)}};const bu=Yc(Kc/10)/Yc(7*Kc/10),wu=Yc(Gc/10)*bu,xu=-qc(Gc/10)*bu;var Ou={draw(t,e){const r=Xc(.8908130915292852*e),n=wu*r,o=xu*r;t.moveTo(0,-r),t.lineTo(n,o);for(let e=1;e<5;++e){const i=Gc*e/5,a=qc(i),c=Yc(i);t.lineTo(c*r,-a*r),t.lineTo(a*n-c*o,c*n+a*o)}t.closePath()}};const Su=Xc(3);var _u={draw(t,e){const r=-Xc(e/(3*Su));t.moveTo(0,2*r),t.lineTo(-Su*r,-r),t.lineTo(Su*r,-r),t.closePath()}};const ju=-.5,Pu=Xc(3)/2,Au=1/Xc(12),Mu=3*(Au/2+1);var ku={draw(t,e){const r=Xc(e/Mu),n=r/2,o=r*Au,i=n,a=r*Au+r,c=-i,u=a;t.moveTo(n,o),t.lineTo(i,a),t.lineTo(c,u),t.lineTo(ju*n-Pu*o,Pu*n+ju*o),t.lineTo(ju*i-Pu*a,Pu*i+ju*a),t.lineTo(ju*c-Pu*u,Pu*c+ju*u),t.lineTo(ju*n+Pu*o,ju*o-Pu*n),t.lineTo(ju*i+Pu*a,ju*a-Pu*i),t.lineTo(ju*c+Pu*u,ju*u-Pu*c),t.closePath()}};function Eu(){}function Cu(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 Tu(t){this._context=t}function Du(t){this._context=t}function Iu(t){this._context=t}function Nu(t){this._context=t}function Ru(t){return t<0?-1:1}function Lu(t,e,r){var n=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(n||o<0&&-0),a=(r-t._y1)/(o||n<0&&-0),c=(i*o+a*n)/(n+o);return(Ru(i)+Ru(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(c))||0}function Bu(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function zu(t,e,r){var n=t._x0,o=t._y0,i=t._x1,a=t._y1,c=(i-n)/3;t._context.bezierCurveTo(n+c,o+c*e,i-c,a-c*r,i,a)}function $u(t){this._context=t}function Hu(t){this._context=new Fu(t)}function Fu(t){this._context=t}function Uu(t){this._context=t}function Vu(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 Wu(t,e){this._context=t,this._t=e}function Zu(t,e){if((o=t.length)>1)for(var r,n,o,i=1,a=t[e[0]],c=a.length;i<o;++i)for(n=a,a=t[e[i]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function qu(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function Yu(t,e){return t[e]}function Xu(t){const e=[];return e.key=t,e}function Ku(t){return Ku="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},Ku(t)}Tu.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:Cu(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:Cu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Du.prototype={areaStart:Eu,areaEnd:Eu,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:Cu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Iu.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:Cu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Nu.prototype={areaStart:Eu,areaEnd:Eu,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))}},$u.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:zu(this,this._t0,Bu(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,zu(this,Bu(this,r=Lu(this,t,e)),r);break;default:zu(this,this._t0,r=Lu(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Hu.prototype=Object.create($u.prototype)).point=function(t,e){$u.prototype.point.call(this,e,t)},Fu.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)}},Uu.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=Vu(t),o=Vu(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)}},Wu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var Gu=["type","size","sizeType"];function Ju(){return Ju=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},Ju.apply(this,arguments)}function Qu(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 tl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Qu(Object(r),!0).forEach((function(e){el(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qu(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function el(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Ku(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Ku(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ku(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rl(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var nl={symbolCircle:du,symbolCross:hu,symbolDiamond:gu,symbolSquare:mu,symbolStar:Ou,symbolTriangle:_u,symbolWye:ku},ol=Math.PI/180,il=function(t){var e,r,n=t.type,o=void 0===n?"circle":n,i=t.size,a=void 0===i?64:i,c=t.sizeType,u=void 0===c?"area":c,l=tl(tl({},rl(t,Gu)),{},{type:o,size:a,sizeType:u}),s=l.className,f=l.cx,p=l.cy,d=fc(l,!0);return f===+f&&p===+p&&a===+a?st.createElement("path",Ju({},d,{className:Nn("recharts-symbols",s),transform:"translate(".concat(f,", ").concat(p,")"),d:(e=function(t){var e="symbol".concat(Wc(t));return nl[e]||du}(o),r=function(t,e){let r=null,n=ou(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:Zc(t||du),e="function"==typeof e?e:Zc(void 0===e?64:+e),o.type=function(e){return arguments.length?(t="function"==typeof e?e:Zc(e),o):t},o.size=function(t){return arguments.length?(e="function"==typeof t?t:Zc(+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*ol;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,u,o)),r())})):null};function al(t){return al="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},al(t)}function cl(){return cl=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},cl.apply(this,arguments)}function ul(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 ll(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,yl(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function sl(t,e,r){return e=pl(e),function(t,e){if(e&&("object"===al(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,fl()?Reflect.construct(e,r||[],pl(t).constructor):e.apply(t,r))}function fl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(fl=function(){return!!t})()}function pl(t){return pl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pl(t)}function dl(t,e){return dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},dl(t,e)}function hl(t,e,r){return(e=yl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yl(t){var e=function(t,e){if("object"!=al(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=al(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==al(e)?e:e+""}il.registerSymbol=function(t,e){nl["symbol".concat(Wc(t))]=e};var vl,gl,ml,bl,wl,xl,Ol,Sl,_l,jl,Pl,Al,Ml,kl,El,Cl,Tl,Dl,Il,Nl,Rl,Ll,Bl,zl,$l,Hl,Fl,Ul,Vl,Wl,Zl,ql,Yl,Xl,Kl,Gl,Jl,Ql,ts,es,rs,ns,os,is,as,cs,us,ls,ss=32,fs=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),sl(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dl(t,e)}(e,dt),ll(e,[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=16,n=ss/6,o=ss/3,i=t.inactive?e:t.color;if("plainline"===t.type)return st.createElement("line",{strokeWidth:4,fill:"none",stroke:i,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:r,x2:ss,y2:r,className:"recharts-legend-icon"});if("line"===t.type)return st.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(ss,"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 st.createElement("path",{stroke:"none",fill:i,d:"M0,".concat(4,"h").concat(ss,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(st.isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ul(Object(r),!0).forEach((function(e){hl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ul(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return delete a.legendIcon,st.cloneElement(t.legendIcon,a)}return st.createElement(il,{fill:i,cx:r,cy:r,size:ss,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,c={x:0,y:0,width:ss,height:ss},u={display:"horizontal"===o?"inline-block":"block",marginRight:10},l={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(e,r){var o=e.formatter||i,s=Nn(hl(hl({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",e.inactive));if("none"===e.type)return null;var f=ga(e.value)?null:e.value;$c(!ga(e.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var p=e.inactive?a:e.color;return st.createElement("li",cl({className:s,style:u,key:"legend-item-".concat(r)},Ka(t.props,e,r)),st.createElement(mc,{width:n,height:n,viewBox:c,style:l},t.renderIcon(e)),st.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},o?o(f,e,r):f))}))}},{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 st.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}])}();function ps(){if(Al)return Pl;Al=1;var t=Ki(),e=function(){if(gl)return vl;gl=1;var t=Ki();return vl=function(){this.__data__=new t,this.size=0}}(),r=bl?ml:(bl=1,ml=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}),n=xl?wl:(xl=1,wl=function(t){return this.__data__.get(t)}),o=Sl?Ol:(Sl=1,Ol=function(t){return this.__data__.has(t)}),i=function(){if(jl)return _l;jl=1;var t=Ki(),e=Gi(),r=Qi();return _l=function(n,o){var i=this.__data__;if(i instanceof t){var a=i.__data__;if(!e||a.length<199)return a.push([n,o]),this.size=++i.size,this;i=this.__data__=new r(a)}return i.set(n,o),this.size=i.size,this}}();function a(e){var r=this.__data__=new t(e);this.size=r.size}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=o,a.prototype.set=i,Pl=a}function ds(){if(Dl)return Tl;Dl=1;var t=Qi(),e=kl?Ml:(kl=1,Ml=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}),r=Cl?El:(Cl=1,El=function(t){return this.__data__.has(t)});function n(e){var r=-1,n=null==e?0:e.length;for(this.__data__=new t;++r<n;)this.add(e[r])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,Tl=n}function hs(){if(Nl)return Il;return Nl=1,Il=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},Il}function ys(){if(Ll)return Rl;return Ll=1,Rl=function(t,e){return t.has(e)}}function vs(){if(zl)return Bl;zl=1;var t=ds(),e=hs(),r=ys();return Bl=function(n,o,i,a,c,u){var l=1&i,s=n.length,f=o.length;if(s!=f&&!(l&&f>s))return!1;var p=u.get(n),d=u.get(o);if(p&&d)return p==o&&d==n;var h=-1,y=!0,v=2&i?new t:void 0;for(u.set(n,o),u.set(o,n);++h<s;){var g=n[h],m=o[h];if(a)var b=l?a(m,g,h,o,n,u):a(g,m,h,n,o,u);if(void 0!==b){if(b)continue;y=!1;break}if(v){if(!e(o,(function(t,e){if(!r(v,e)&&(g===t||c(g,t,i,a,u)))return v.push(e)}))){y=!1;break}}else if(g!==m&&!c(g,m,i,a,u)){y=!1;break}}return u.delete(n),u.delete(o),y},Bl}function gs(){if(Wl)return Vl;return Wl=1,Vl=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r},Vl}function ms(){if(ql)return Zl;ql=1;var t=Ri(),e=function(){if(Hl)return $l;Hl=1;var t=Ni().Uint8Array;return $l=t}(),r=Yi(),n=vs(),o=(Ul||(Ul=1,Fl=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}),Fl),i=gs(),a=t?t.prototype:void 0,c=a?a.valueOf:void 0;return Zl=function(t,a,u,l,s,f,p){switch(u){case"[object DataView]":if(t.byteLength!=a.byteLength||t.byteOffset!=a.byteOffset)return!1;t=t.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=a.byteLength||!f(new e(t),new e(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+t,+a);case"[object Error]":return t.name==a.name&&t.message==a.message;case"[object RegExp]":case"[object String]":return t==a+"";case"[object Map]":var d=o;case"[object Set]":var h=1&l;if(d||(d=i),t.size!=a.size&&!h)return!1;var y=p.get(t);if(y)return y==a;l|=2,p.set(t,a);var v=n(d(t),d(a),l,s,f,p);return p.delete(t),v;case"[object Symbol]":if(c)return c.call(t)==c.call(a)}return!1},Zl}function bs(){if(Xl)return Yl;return Xl=1,Yl=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t},Yl}function ws(){if(ns)return rs;ns=1;var t=(Ql||(Ql=1,Jl=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}),Jl),e=es?ts:(es=1,ts=function(){return[]}),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols,o=n?function(e){return null==e?[]:(e=Object(e),t(n(e),(function(t){return r.call(e,t)})))}:e;return rs=o}function xs(){if(ls)return us;ls=1;var t=function(){if(cs)return as;cs=1;var t=Li(),e=Bi();return as=function(r){return e(r)&&"[object Arguments]"==t(r)}}(),e=Bi(),r=Object.prototype,n=r.hasOwnProperty,o=r.propertyIsEnumerable,i=t(function(){return arguments}())?t:function(t){return e(t)&&n.call(t,"callee")&&!o.call(t,"callee")};return us=i}hl(fs,"displayName","Legend"),hl(fs,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Os,Ss,_s,js,Ps,As,Ms,ks,Es,Cs,Ts,Ds={exports:{}};function Is(){return _s||(_s=1,function(t,e){var r=Ni(),n=Ss?Os:(Ss=1,Os=function(){return!1}),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;t.exports=c}(Ds,Ds.exports)),Ds.exports}function Ns(){if(Ps)return js;Ps=1;var t=/^(?:0|[1-9]\d*)$/;return js=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}}function Rs(){if(Ms)return As;Ms=1;return As=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}function Ls(){if(Ts)return Cs;return Ts=1,Cs=function(t){return function(e){return t(e)}}}Ds.exports;var Bs,zs,$s,Hs,Fs,Us,Vs,Ws,Zs,qs,Ys,Xs,Ks,Gs,Js,Qs,tf,ef,rf,nf,of,af,cf,uf,lf,sf,ff,pf,df,hf,yf,vf,gf,mf,bf,wf,xf,Of,Sf,_f,jf,Pf,Af,Mf,kf,Ef,Cf,Tf,Df,If,Nf,Rf,Lf,Bf,zf,$f,Hf,Ff,Uf,Vf,Wf,Zf,qf,Yf,Xf,Kf,Gf,Jf,Qf,tp,ep,rp,np,op,ip,ap,cp,up,lp,sp,fp,pp,dp,hp={exports:{}};function yp(){if($s)return zs;$s=1;var t=function(){if(Es)return ks;Es=1;var t=Li(),e=Rs(),r=Bi(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,ks=function(o){return r(o)&&e(o.length)&&!!n[t(o)]}}(),e=Ls(),r=function(){return Bs||(Bs=1,t=hp,e=hp.exports,r=Ii(),n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}(),t.exports=a),hp.exports;var t,e,r,n,o,i,a}(),n=r&&r.isTypedArray,o=n?e(n):t;return zs=o}function vp(){if(Fs)return Hs;Fs=1;var t=is?os:(is=1,os=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}),e=xs(),r=Di(),n=Is(),o=Ns(),i=yp(),a=Object.prototype.hasOwnProperty;return Hs=function(c,u){var l=r(c),s=!l&&e(c),f=!l&&!s&&n(c),p=!l&&!s&&!f&&i(c),d=l||s||f||p,h=d?t(c.length,String):[],y=h.length;for(var v in c)!u&&!a.call(c,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||o(v,y))||h.push(v);return h}}function gp(){if(Zs)return Ws;return Zs=1,Ws=function(t,e){return function(r){return t(e(r))}}}function mp(){if(Ks)return Xs;Ks=1;var t=function(){if(Vs)return Us;Vs=1;var t=Object.prototype;return Us=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}}(),e=function(){if(Ys)return qs;Ys=1;var t=gp()(Object.keys,Object);return qs=t}(),r=Object.prototype.hasOwnProperty;return Xs=function(n){if(!t(n))return e(n);var o=[];for(var i in Object(n))r.call(n,i)&&"constructor"!=i&&o.push(i);return o},Xs}function bp(){if(Js)return Gs;Js=1;var t=Fi(),e=Rs();return Gs=function(r){return null!=r&&e(r.length)&&!t(r)}}function wp(){if(tf)return Qs;tf=1;var t=vp(),e=mp(),r=bp();return Qs=function(n){return r(n)?t(n):e(n)},Qs}function xp(){if(rf)return ef;rf=1;var t=function(){if(Gl)return Kl;Gl=1;var t=bs(),e=Di();return Kl=function(r,n,o){var i=n(r);return e(r)?i:t(i,o(r))},Kl}(),e=ws(),r=wp();return ef=function(n){return t(n,r,e)},ef}function Op(){if(ff)return sf;ff=1;var t=Wi()(Ni(),"Set");return sf=t}function Sp(){if(yf)return hf;yf=1;var t=function(){if(cf)return af;cf=1;var t=Wi()(Ni(),"DataView");return af=t}(),e=Gi(),r=function(){if(lf)return uf;lf=1;var t=Wi()(Ni(),"Promise");return uf=t}(),n=Op(),o=function(){if(df)return pf;df=1;var t=Wi()(Ni(),"WeakMap");return pf=t}(),i=Li(),a=Vi(),c="[object Map]",u="[object Promise]",l="[object Set]",s="[object WeakMap]",f="[object DataView]",p=a(t),d=a(e),h=a(r),y=a(n),v=a(o),g=i;return(t&&g(new t(new ArrayBuffer(1)))!=f||e&&g(new e)!=c||r&&g(r.resolve())!=u||n&&g(new n)!=l||o&&g(new o)!=s)&&(g=function(t){var e=i(t),r="[object Object]"==e?t.constructor:void 0,n=r?a(r):"";if(n)switch(n){case p:return f;case d:return c;case h:return u;case y:return l;case v:return s}return e}),hf=g}function _p(){if(gf)return vf;gf=1;var t=ps(),e=vs(),r=ms(),n=function(){if(of)return nf;of=1;var t=xp(),e=Object.prototype.hasOwnProperty;return nf=function(r,n,o,i,a,c){var u=1&o,l=t(r),s=l.length;if(s!=t(n).length&&!u)return!1;for(var f=s;f--;){var p=l[f];if(!(u?p in n:e.call(n,p)))return!1}var d=c.get(r),h=c.get(n);if(d&&h)return d==n&&h==r;var y=!0;c.set(r,n),c.set(n,r);for(var v=u;++f<s;){var g=r[p=l[f]],m=n[p];if(i)var b=u?i(m,g,p,n,r,c):i(g,m,p,r,n,c);if(!(void 0===b?g===m||a(g,m,o,i,c):b)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var w=r.constructor,x=n.constructor;w==x||!("constructor"in r)||!("constructor"in n)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(y=!1)}return c.delete(r),c.delete(n),y},nf}(),o=Sp(),i=Di(),a=Is(),c=yp(),u="[object Arguments]",l="[object Array]",s="[object Object]",f=Object.prototype.hasOwnProperty;return vf=function(p,d,h,y,v,g){var m=i(p),b=i(d),w=m?l:o(p),x=b?l:o(d),O=(w=w==u?s:w)==s,S=(x=x==u?s:x)==s,_=w==x;if(_&&a(p)){if(!a(d))return!1;m=!0,O=!1}if(_&&!O)return g||(g=new t),m||c(p)?e(p,d,h,y,v,g):r(p,d,w,h,y,v,g);if(!(1&h)){var j=O&&f.call(p,"__wrapped__"),P=S&&f.call(d,"__wrapped__");if(j||P){var A=j?p.value():p,M=P?d.value():d;return g||(g=new t),v(A,M,h,y,g)}}return!!_&&(g||(g=new t),n(p,d,h,y,v,g))},vf}function jp(){if(bf)return mf;bf=1;var t=_p(),e=Bi();return mf=function r(n,o,i,a,c){return n===o||(null==n||null==o||!e(n)&&!e(o)?n!=n&&o!=o:t(n,o,i,a,r,c))},mf}function Pp(){if(Sf)return Of;Sf=1;var t=Hi();return Of=function(e){return e==e&&!t(e)}}function Ap(){if(Af)return Pf;return Af=1,Pf=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}},Pf}function Mp(){if(kf)return Mf;kf=1;var t=function(){if(xf)return wf;xf=1;var t=ps(),e=jp();return wf=function(r,n,o,i){var a=o.length,c=a,u=!i;if(null==r)return!c;for(r=Object(r);a--;){var l=o[a];if(u&&l[2]?l[1]!==r[l[0]]:!(l[0]in r))return!1}for(;++a<c;){var s=(l=o[a])[0],f=r[s],p=l[1];if(u&&l[2]){if(void 0===f&&!(s in r))return!1}else{var d=new t;if(i)var h=i(f,p,s,r,n,d);if(!(void 0===h?e(p,f,3,i,d):h))return!1}}return!0},wf}(),e=function(){if(jf)return _f;jf=1;var t=Pp(),e=wp();return _f=function(r){for(var n=e(r),o=n.length;o--;){var i=n[o],a=r[i];n[o]=[i,a,t(a)]}return n},_f}(),r=Ap();return Mf=function(n){var o=e(n);return 1==o.length&&o[0][2]?r(o[0][0],o[0][1]):function(e){return e===n||t(e,n,o)}},Mf}function kp(){if(Nf)return If;Nf=1;var t=(Cf||(Cf=1,Ef=function(t,e){return null!=t&&e in Object(t)}),Ef),e=function(){if(Df)return Tf;Df=1;var t=oa(),e=xs(),r=Di(),n=Ns(),o=Rs(),i=ia();return Tf=function(a,c,u){for(var l=-1,s=(c=t(c,a)).length,f=!1;++l<s;){var p=i(c[l]);if(!(f=null!=a&&u(a,p)))break;a=a[p]}return f||++l!=s?f:!!(s=null==a?0:a.length)&&o(s)&&n(p,s)&&(r(a)||e(a))},Tf}();return If=function(r,n){return null!=r&&e(r,n,t)},If}function Ep(){if(zf)return Bf;return zf=1,Bf=function(t){return t}}function Cp(){if(Wf)return Vf;Wf=1;var t=(Hf||(Hf=1,$f=function(t){return function(e){return null==e?void 0:e[t]}}),$f),e=function(){if(Uf)return Ff;Uf=1;var t=aa();return Ff=function(e){return function(r){return t(r,e)}},Ff}(),r=$i(),n=ia();return Vf=function(o){return r(o)?t(n(o)):e(o)}}function Tp(){if(qf)return Zf;qf=1;var t=Mp(),e=function(){if(Lf)return Rf;Lf=1;var t=jp(),e=ca(),r=kp(),n=$i(),o=Pp(),i=Ap(),a=ia();return Rf=function(c,u){return n(c)&&o(u)?i(a(c),u):function(n){var o=e(n,c);return void 0===o&&o===u?r(n,c):t(u,o,3)}},Rf}(),r=Ep(),n=Di(),o=Cp();return Zf=function(i){return"function"==typeof i?i:null==i?r:"object"==typeof i?n(i)?e(i[0],i[1]):t(i):o(i)}}function Dp(){if(Xf)return Yf;return Xf=1,Yf=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},Yf}function Ip(){if(ep)return tp;ep=1;var t=Dp(),e=Gf?Kf:(Gf=1,Kf=function(t){return t!=t}),r=(Qf||(Qf=1,Jf=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}),Jf);return tp=function(n,o,i){return o==o?r(n,o,i):t(n,e,i)},tp}function Np(){if(lp)return up;lp=1;var t=Op(),e=cp?ap:(cp=1,ap=function(){}),r=gs(),n=t&&1/r(new t([,-0]))[1]==1/0?function(e){return new t(e)}:e;return up=n}function Rp(){if(fp)return sp;fp=1;var t=ds(),e=function(){if(np)return rp;np=1;var t=Ip();return rp=function(e,r){return!(null==e||!e.length)&&t(e,r,0)>-1},rp}(),r=(ip||(ip=1,op=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}),op),n=ys(),o=Np(),i=gs();return sp=function(a,c,u){var l=-1,s=e,f=a.length,p=!0,d=[],h=d;if(u)p=!1,s=r;else if(f>=200){var y=c?null:o(a);if(y)return i(y);p=!1,s=n,h=new t}else h=c?[]:d;t:for(;++l<f;){var v=a[l],g=c?c(v):v;if(v=u||0!==v?v:0,p&&g==g){for(var m=h.length;m--;)if(h[m]===g)continue t;c&&h.push(g),d.push(v)}else s(h,g,u)||(h!==d&&h.push(g),d.push(v))}return d},sp}hp.exports;var Lp=function(){if(dp)return pp;dp=1;var t=Tp(),e=Rp();return pp=function(r,n){return r&&r.length?e(r,t(n,2)):[]},pp}(),Bp=dr(Lp);function zp(t,e,r){return!0===e?Bp(t,r):ga(e)?Bp(t,e):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)}var Hp=["ref"];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 Up(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){Xp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Vp(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,Kp(n.key),n)}}function Wp(t,e,r){return e=qp(e),function(t,e){if(e&&("object"===$p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Zp()?Reflect.construct(e,r||[],qp(t).constructor):e.apply(t,r))}function Zp(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Zp=function(){return!!t})()}function qp(t){return qp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qp(t)}function Yp(t,e){return Yp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Yp(t,e)}function Xp(t,e,r){return(e=Kp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kp(t){var e=function(t,e){if("object"!=$p(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=$p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==$p(e)?e:e+""}function Gp(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Jp(t){return t.value}var Qp,td,ed,rd,nd,od,id,ad,cd,ud,ld,sd,fd,pd,dd,hd,yd,vd,gd,md,bd,wd,xd,Od,Sd,_d,jd,Pd,Ad,Md,kd,Ed,Cd,Td,Dd,Id,Nd,Rd,Ld,Bd,zd,$d,Hd,Fd,Ud=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Xp(t=Wp(this,e,[].concat(n)),"lastBoundingBox",{width:-1,height:-1}),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yp(t,e)}(e,dt),r=e,o=[{key:"getWithHeight",value:function(t,e){var r=Up(Up({},this.defaultProps),t.props).layout;return"vertical"===r&&Na(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();return t.height=this.wrapperNode.offsetHeight,t.width=this.wrapperNode.offsetWidth,t}return null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate,e=this.getBBox();e?(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Up({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,c=n.margin,u=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),Up(Up({},e),r)}},{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,c=e.payload,u=Up(Up({position:"absolute",width:n||"auto",height:o||"auto"},this.getDefaultPosition(i)),i);return st.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(e){t.wrapperNode=e}},function(t,e){if(st.isValidElement(t))return st.cloneElement(t,e);if("function"==typeof t)return st.createElement(t,e);e.ref;var r=Gp(e,Hp);return st.createElement(fs,r)}(r,Up(Up({},this.props),{},{payload:zp(c,a,Jp)})))}}])&&Vp(r.prototype,n),o&&Vp(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();function Vd(){if(rd)return ed;rd=1;var t=bs(),e=function(){if(td)return Qp;td=1;var t=Ri(),e=xs(),r=Di(),n=t?t.isConcatSpreadable:void 0;return Qp=function(t){return r(t)||e(t)||!!(n&&t&&t[n])}}();return ed=function r(n,o,i,a,c){var u=-1,l=n.length;for(i||(i=e),c||(c=[]);++u<l;){var s=n[u];o>0&&i(s)?o>1?r(s,o-1,i,a,c):t(c,s):a||(c[c.length]=s)}return c},ed}function Wd(){if(ad)return id;ad=1;var t=(od||(od=1,nd=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===r(i[u],u,i))break}return e}}),nd),e=t();return id=e}function Zd(){if(ud)return cd;ud=1;var t=Wd(),e=wp();return cd=function(r,n){return r&&t(r,n,e)},cd}function qd(){if(pd)return fd;pd=1;var t=Zd(),e=function(){if(sd)return ld;sd=1;var t=bp();return ld=function(e,r){return function(n,o){if(null==n)return n;if(!t(n))return e(n,o);for(var i=n.length,a=r?i:-1,c=Object(n);(r?a--:++a<i)&&!1!==o(c[a],a,c););return n}}}()(t);return fd=e}function Yd(){if(hd)return dd;hd=1;var t=qd(),e=bp();return dd=function(r,n){var o=-1,i=e(r)?Array(r.length):[];return t(r,(function(t,e,r){i[++o]=n(t,e,r)})),i}}function Xd(){if(wd)return bd;wd=1;var t=function(){if(md)return gd;md=1;var t=zi();return gd=function(e,r){if(e!==r){var n=void 0!==e,o=null===e,i=e==e,a=t(e),c=void 0!==r,u=null===r,l=r==r,s=t(r);if(!u&&!s&&!a&&e>r||a&&c&&l&&!u&&!s||o&&c&&l||!n&&l||!i)return 1;if(!o&&!a&&!s&&e<r||s&&n&&i&&!o&&!a||u&&n&&i||!c&&i||!l)return-1}return 0}}();return bd=function(e,r,n){for(var o=-1,i=e.criteria,a=r.criteria,c=i.length,u=n.length;++o<c;){var l=t(i[o],a[o]);if(l)return o>=u?l:l*("desc"==n[o]?-1:1)}return e.index-r.index},bd}function Kd(){if(Od)return xd;Od=1;var t=ra(),e=aa(),r=Tp(),n=Yd(),o=(vd||(vd=1,yd=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}),yd),i=Ls(),a=Xd(),c=Ep(),u=Di();return xd=function(l,s,f){s=s.length?t(s,(function(t){return u(t)?function(r){return e(r,1===t.length?t[0]:t)}:t})):[c];var p=-1;s=t(s,i(r));var d=n(l,(function(e,r,n){return{criteria:t(s,(function(t){return t(e)})),index:++p,value:e}}));return o(d,(function(t,e){return a(t,e,f)}))},xd}function Gd(){if(Pd)return jd;Pd=1;var t=_d?Sd:(_d=1,Sd=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)}),e=Math.max;return jd=function(r,n,o){return n=e(void 0===n?r.length-1:n,0),function(){for(var i=arguments,a=-1,c=e(i.length-n,0),u=Array(c);++a<c;)u[a]=i[n+a];a=-1;for(var l=Array(n+1);++a<n;)l[a]=i[a];return l[n]=o(u),t(r,this,l)}},jd}function Jd(){if(Ed)return kd;Ed=1;var t=Wi(),e=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();return kd=e}function Qd(){if(Td)return Cd;Td=1;var t=Md?Ad:(Md=1,Ad=function(t){return function(){return t}}),e=Jd(),r=Ep(),n=e?function(r,n){return e(r,"toString",{configurable:!0,enumerable:!1,value:t(n),writable:!0})}:r;return Cd=n}function th(){if(Rd)return Nd;Rd=1;var t=Qd(),e=function(){if(Id)return Dd;Id=1;var t=Date.now;return Dd=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}},Dd}(),r=e(t);return Nd=r}function eh(){if($d)return zd;$d=1;var t=Yi(),e=bp(),r=Ns(),n=Hi();return zd=function(o,i,a){if(!n(a))return!1;var c=typeof i;return!!("number"==c?e(a)&&r(i,a.length):"string"==c&&i in a)&&t(a[i],o)},zd}Xp(Ud,"displayName","Legend"),Xp(Ud,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var rh=function(){if(Fd)return Hd;Fd=1;var t=Vd(),e=Kd(),r=function(){if(Bd)return Ld;Bd=1;var t=Ep(),e=Gd(),r=th();return Ld=function(n,o){return r(e(n,o,t),n+"")}}(),n=eh(),o=r((function(r,o){if(null==r)return[];var i=o.length;return i>1&&n(r,o[0],o[1])?o=[]:i>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),e(r,t(o,1),[])}));return Hd=o}(),nh=dr(rh);function oh(t){return oh="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},oh(t)}function ih(){return ih=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ih.apply(this,arguments)}function ah(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ch(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 ch(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 ch(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 uh(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 lh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?uh(Object(r),!0).forEach((function(e){sh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sh(t,e,r){return e=function(t){var e=function(t,e){if("object"!=oh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=oh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==oh(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fh(t){return Array.isArray(t)&&Ra(t[0])&&Ra(t[1])?t.join(" ~ "):t}var ph=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,c=t.labelStyle,u=void 0===c?{}:c,l=t.payload,s=t.formatter,f=t.itemSorter,p=t.wrapperClassName,d=t.labelClassName,h=t.label,y=t.labelFormatter,v=t.accessibilityLayer,g=void 0!==v&&v,m=lh({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),b=lh({margin:0},u),w=!da(h),x=w?h:"",O=Nn("recharts-default-tooltip",p),S=Nn("recharts-tooltip-label",d);w&&y&&null!=l&&(x=y(h,l));var _=g?{role:"status","aria-live":"assertive"}:{};return st.createElement("div",ih({className:O,style:m},_),st.createElement("p",{className:S,style:b},st.isValidElement(x)?x:"".concat(x)),function(){if(l&&l.length){var t=(f?nh(l,f):l).map((function(t,e){if("none"===t.type)return null;var n=lh({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},a),o=t.formatter||s||fh,i=t.value,c=t.name,u=i,f=c;if(o&&null!=u&&null!=f){var p=o(i,c,t,e,l);if(Array.isArray(p)){var d=ah(p,2);u=d[0],f=d[1]}else u=p}return st.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:n},Ra(f)?st.createElement("span",{className:"recharts-tooltip-item-name"},f):null,Ra(f)?st.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,st.createElement("span",{className:"recharts-tooltip-item-value"},u),st.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return st.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function dh(t){return dh="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},dh(t)}function hh(t,e,r){return e=function(t){var e=function(t,e){if("object"!=dh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=dh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==dh(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var yh="recharts-tooltip-wrapper",vh={visibility:"hidden"};function gh(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return Nn(yh,hh(hh(hh(hh({},"".concat(yh,"-right"),Na(r)&&e&&Na(e.x)&&r>=e.x),"".concat(yh,"-left"),Na(r)&&e&&Na(e.x)&&r<e.x),"".concat(yh,"-bottom"),Na(n)&&e&&Na(e.y)&&n>=e.y),"".concat(yh,"-top"),Na(n)&&e&&Na(e.y)&&n<e.y))}function mh(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,c=t.tooltipDimension,u=t.viewBox,l=t.viewBoxDimension;if(i&&Na(i[n]))return i[n];var s=r[n]-c-o,f=r[n]+o;return e[n]?a[n]?s:f:a[n]?s<u[n]?Math.max(f,u[n]):Math.max(s,u[n]):f+c>u[n]+l?Math.max(s,u[n]):Math.max(f,u[n])}function bh(t){return bh="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},bh(t)}function wh(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 xh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wh(Object(r),!0).forEach((function(e){Ah(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Oh(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Mh(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Sh(t,e,r){return e=jh(e),function(t,e){if(e&&("object"===bh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,_h()?Reflect.construct(e,r||[],jh(t).constructor):e.apply(t,r))}function _h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_h=function(){return!!t})()}function jh(t){return jh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jh(t)}function Ph(t,e){return Ph=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ph(t,e)}function Ah(t,e,r){return(e=Mh(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mh(t){var e=function(t,e){if("object"!=bh(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=bh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==bh(e)?e:e+""}var kh=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Ah(t=Sh(this,e,[].concat(n)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Ah(t,"handleKeyDown",(function(e){var r,n,o,i;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=t.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(o=null===(i=t.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ph(t,e)}(e,dt),Oh(e,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.state.lastBoundingBox.width)>1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,o=e.animationDuration,i=e.animationEasing,a=e.children,c=e.coordinate,u=e.hasPayload,l=e.isAnimationActive,s=e.offset,f=e.position,p=e.reverseDirection,d=e.useTranslate3d,h=e.viewBox,y=e.wrapperStyle,v=function(t){var e,r,n=t.allowEscapeViewBox,o=t.coordinate,i=t.offsetTopLeft,a=t.position,c=t.reverseDirection,u=t.tooltipBox,l=t.useTranslate3d,s=t.viewBox;return{cssProperties:u.height>0&&u.width>0&&o?function(t){var e=t.translateX,r=t.translateY;return{transform:t.useTranslate3d?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}({translateX:e=mh({allowEscapeViewBox:n,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=mh({allowEscapeViewBox:n,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:c,tooltipDimension:u.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:l}):vh,cssClasses:gh({translateX:e,translateY:r,coordinate:o})}}({allowEscapeViewBox:n,coordinate:c,offsetTopLeft:s,position:f,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:h}),g=v.cssClasses,m=v.cssProperties,b=xh(xh({transition:l&&r?"transform ".concat(o,"ms ").concat(i):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&u?"visible":"hidden",position:"absolute",top:0,left:0},y);return st.createElement("div",{tabIndex:-1,className:g,style:b,ref:function(e){t.wrapperNode=e}},a)}}])}(),Eh=!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout);function Ch(t){return Ch="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},Ch(t)}function Th(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Dh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Th(Object(r),!0).forEach((function(e){zh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Th(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ih(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,$h(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Nh(t,e,r){return e=Lh(e),function(t,e){if(e&&("object"===Ch(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Rh()?Reflect.construct(e,r||[],Lh(t).constructor):e.apply(t,r))}function Rh(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Rh=function(){return!!t})()}function Lh(t){return Lh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Lh(t)}function Bh(t,e){return Bh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Bh(t,e)}function zh(t,e,r){return(e=$h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $h(t){var e=function(t,e){if("object"!=Ch(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Ch(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Ch(e)?e:e+""}function Hh(t){return t.dataKey}var Fh,Uh,Vh,Wh,Zh,qh,Yh,Xh,Kh,Gh,Jh,Qh,ty=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Nh(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bh(t,e)}(e,dt),Ih(e,[{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,o=e.animationDuration,i=e.animationEasing,a=e.content,c=e.coordinate,u=e.filterNull,l=e.isAnimationActive,s=e.offset,f=e.payload,p=e.payloadUniqBy,d=e.position,h=e.reverseDirection,y=e.useTranslate3d,v=e.viewBox,g=e.wrapperStyle,m=null!=f?f:[];u&&m.length&&(m=zp(f.filter((function(e){return null!=e.value&&(!0!==e.hide||t.props.includeHidden)})),p,Hh));var b=m.length>0;return st.createElement(kh,{allowEscapeViewBox:n,animationDuration:o,animationEasing:i,isAnimationActive:l,active:r,coordinate:c,hasPayload:b,offset:s,position:d,reverseDirection:h,useTranslate3d:y,viewBox:v,wrapperStyle:g},function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):"function"==typeof t?st.createElement(t,e):st.createElement(ph,e)}(a,Dh(Dh({},this.props),{},{payload:m})))}}])}();function ey(){if(qh)return Zh;qh=1;var t=function(){if(Wh)return Vh;Wh=1;var t=/\s/;return Vh=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r},Vh}(),e=/^\s+/;return Zh=function(r){return r?r.slice(0,t(r)+1).replace(e,""):r},Zh}function ry(){if(Xh)return Yh;Xh=1;var t=ey(),e=Hi(),r=zi(),n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt;return Yh=function(c){if("number"==typeof c)return c;if(r(c))return NaN;if(e(c)){var u="function"==typeof c.valueOf?c.valueOf():c;c=e(u)?u+"":u}if("string"!=typeof c)return 0===c?c:+c;c=t(c);var l=o.test(c);return l||i.test(c)?a(c.slice(2),l?2:8):n.test(c)?NaN:+c}}function ny(){if(Gh)return Kh;Gh=1;var t=Hi(),e=function(){if(Uh)return Fh;Uh=1;var t=Ni();return Fh=function(){return t.Date.now()}}(),r=ry(),n=Math.max,o=Math.min;return Kh=function(i,a,c){var u,l,s,f,p,d,h=0,y=!1,v=!1,g=!0;if("function"!=typeof i)throw new TypeError("Expected a function");function m(t){var e=u,r=l;return u=l=void 0,h=t,f=i.apply(r,e)}function b(t){var e=t-d;return void 0===d||e>=a||e<0||v&&t-h>=s}function w(){var t=e();if(b(t))return x(t);p=setTimeout(w,function(t){var e=a-(t-d);return v?o(e,s-(t-h)):e}(t))}function x(t){return p=void 0,g&&u?m(t):(u=l=void 0,f)}function O(){var t=e(),r=b(t);if(u=arguments,l=this,d=t,r){if(void 0===p)return function(t){return h=t,p=setTimeout(w,a),y?m(t):f}(d);if(v)return clearTimeout(p),p=setTimeout(w,a),m(d)}return void 0===p&&(p=setTimeout(w,a)),f}return a=r(a)||0,t(c)&&(y=!!c.leading,s=(v="maxWait"in c)?n(r(c.maxWait)||0,a):s,g="trailing"in c?!!c.trailing:g),O.cancel=function(){void 0!==p&&clearTimeout(p),h=0,u=d=l=p=void 0},O.flush=function(){return void 0===p?f:x(e())},O},Kh}zh(ty,"displayName","Tooltip"),zh(ty,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Eh,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var oy=function(){if(Qh)return Jh;Qh=1;var t=ny(),e=Hi();return Jh=function(r,n,o){var i=!0,a=!0;if("function"!=typeof r)throw new TypeError("Expected a function");return e(o)&&(i="leading"in o?!!o.leading:i,a="trailing"in o?!!o.trailing:a),t(r,n,{leading:i,maxWait:n,trailing:a})}}(),iy=dr(oy);function ay(t){return ay="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ay(t)}function cy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function uy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cy(Object(r),!0).forEach((function(e){ly(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ly(t,e,r){return e=function(t){var e=function(t,e){if("object"!=ay(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=ay(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ay(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sy(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return fy(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 fy(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 fy(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 py=ht((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,c=t.height,u=void 0===c?"100%":c,l=t.minWidth,s=void 0===l?0:l,f=t.minHeight,p=t.maxHeight,d=t.children,h=t.debounce,y=void 0===h?0:h,v=t.id,g=t.className,m=t.onResize,b=t.style,w=void 0===b?{}:b,x=yt(null),O=yt();O.current=m,vt(e,(function(){return Object.defineProperty(x.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),x.current},configurable:!0})}));var S=sy(gt({containerWidth:o.width,containerHeight:o.height}),2),_=S[0],j=S[1],P=mt((function(t,e){j((function(r){var n=Math.round(t),o=Math.round(e);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}}))}),[]);bt((function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,o=r.height;P(n,o),null===(e=O.current)||void 0===e||e.call(O,n,o)};y>0&&(t=iy(t,y,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=x.current.getBoundingClientRect(),n=r.width,o=r.height;return P(n,o),e.observe(x.current),function(){e.disconnect()}}),[P,y]);var A=wt((function(){var t=_.containerWidth,e=_.containerHeight;if(t<0||e<0)return null;$c(Ia(a)||Ia(u),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,u),$c(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=Ia(a)?t:a,o=Ia(u)?e:u;r&&r>0&&(n?o=n/r:o&&(n=o*r),p&&o>p&&(o=p)),$c(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,u,s,f,r);var i=!Array.isArray(d)&&rc(d.type).endsWith("Chart");return st.Children.map(d,(function(t){return st.isValidElement(t)?xt(t,uy({width:n,height:o},i?{style:uy({height:"100%",width:"100%",maxHeight:o,maxWidth:n},t.props.style)}:{})):t}))}),[r,d,u,p,f,s,_,a]);return st.createElement("div",{id:v?"".concat(v):void 0,className:Nn("recharts-responsive-container",g),style:uy(uy({},w),{},{width:a,height:u,minWidth:s,minHeight:f,maxHeight:p}),ref:x},A)})),dy=function(t){return null};function hy(t){return hy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hy(t)}function yy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yy(Object(r),!0).forEach((function(e){gy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gy(t,e,r){return e=function(t){var e=function(t,e){if("object"!=hy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=hy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==hy(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}dy.displayName="Cell";var my={widthCache:{},cacheCount:0},by={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},wy="recharts_measurement_span";var xy=function(t){if(null==t||Eh)return{width:0,height:0};var e,r=(e=vy({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),Object.keys(e).forEach((function(t){e[t]||delete e[t]})),e),n=JSON.stringify({text:t,copyStyle:r});if(my.widthCache[n])return my.widthCache[n];try{var o=document.getElementById(wy);o||((o=document.createElement("span")).setAttribute("id",wy),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var i=vy(vy({},by),r);Object.assign(o.style,i),o.textContent="".concat(t);var a=o.getBoundingClientRect(),c={width:a.width,height:a.height};return my.widthCache[n]=c,++my.cacheCount>2e3&&(my.cacheCount=0,my.widthCache={}),c}catch(t){return{width:0,height:0}}};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)}function Sy(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return _y(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 _y(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 _y(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 jy(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,Py(n.key),n)}}function Py(t){var e=function(t,e){if("object"!=Oy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Oy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Oy(e)?e:e+""}var Ay=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,My=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ky=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Ey=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Cy={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Ty=Object.keys(Cy),Dy="NaN";var Iy=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),""===r||ky.test(r)||(this.num=NaN,this.unit=""),Ty.includes(r)&&(this.num=function(t,e){return t*Cy[e]}(e,r),this.unit="px")}return e=t,n=[{key:"parse",value:function(e){var r,n=Sy(null!==(r=Ey.exec(e))&&void 0!==r?r:[],3),o=n[1],i=n[2];return new t(parseFloat(o),null!=i?i:"")}}],(r=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&jy(e.prototype,r),n&&jy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();function Ny(t){if(t.includes(Dy))return Dy;for(var e=t;e.includes("*")||e.includes("/");){var r,n=Sy(null!==(r=Ay.exec(e))&&void 0!==r?r:[],4),o=n[1],i=n[2],a=n[3],c=Iy.parse(null!=o?o:""),u=Iy.parse(null!=a?a:""),l="*"===i?c.multiply(u):c.divide(u);if(l.isNaN())return Dy;e=e.replace(Ay,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=Sy(null!==(s=My.exec(e))&&void 0!==s?s:[],4),p=f[1],d=f[2],h=f[3],y=Iy.parse(null!=p?p:""),v=Iy.parse(null!=h?h:""),g="+"===d?y.add(v):y.subtract(v);if(g.isNaN())return Dy;e=e.replace(My,g.toString())}return e}var Ry=/\(([^()]*)\)/;function Ly(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=Sy(Ry.exec(e),2)[1];e=e.replace(Ry,Ny(r))}return e}(e),e=Ny(e)}function By(t){var e=function(t){try{return Ly(t)}catch(t){return Dy}}(t.slice(5,-1));return e===Dy?"":e}var zy=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],$y=["dx","dy","angle","className","breakAll"];function Hy(){return Hy=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},Hy.apply(this,arguments)}function Fy(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Uy(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Vy(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 Vy(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 Vy(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 Wy=/[ \f\n\r\t\v\u2028\u2029]+/,Zy=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var o=[];return da(e)||(o=r?e.toString().split(""):e.toString().split(Wy)),{wordsWithComputedWidth:o.map((function(t){return{word:t,width:xy(t,n).width}})),spaceWidth:r?0:xy(" ",n).width}}catch(t){return null}},qy=function(t){return[{words:da(t)?[]:t.toString().split(Wy)}]},Yy=function(t){var e=t.width,r=t.scaleToFit,n=t.children,o=t.style,i=t.breakAll,a=t.maxLines;if((e||r)&&!Eh){var c=Zy({breakAll:i,children:n,style:o});return c?function(t,e,r,n,o){var i=t.maxLines,a=t.children,c=t.style,u=t.breakAll,l=Na(i),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var i=e.word,a=e.width,c=t[t.length-1];if(c&&(null==n||o||c.width+a+r<Number(n)))c.words.push(i),c.width+=a+r;else{var u={words:[i],width:a};t.push(u)}return t}),[])},p=f(e);if(!l)return p;for(var d,h=function(t){var e=s.slice(0,t),r=Zy({breakAll:u,style:c,children:e+"…"}).wordsWithComputedWidth,o=f(r),a=o.length>i||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(o).width>Number(n);return[a,o]},y=0,v=s.length-1,g=0;y<=v&&g<=s.length-1;){var m=Math.floor((y+v)/2),b=Uy(h(m-1),2),w=b[0],x=b[1],O=Uy(h(m),1)[0];if(w||O||(y=m+1),w&&O&&(v=m-1),!w&&O){d=x;break}g++}return d||p}({breakAll:i,children:n,maxLines:a,style:o},c.wordsWithComputedWidth,c.spaceWidth,e,r):qy(n)}return qy(n)},Xy="#808080",Ky=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,c=t.capHeight,u=void 0===c?"0.71em":c,l=t.scaleToFit,s=void 0!==l&&l,f=t.textAnchor,p=void 0===f?"start":f,d=t.verticalAnchor,h=void 0===d?"end":d,y=t.fill,v=void 0===y?Xy:y,g=Fy(t,zy),m=wt((function(){return Yy({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:s,style:g.style,width:g.width})}),[g.breakAll,g.children,g.maxLines,s,g.style,g.width]),b=g.dx,w=g.dy,x=g.angle,O=g.className,S=g.breakAll,_=Fy(g,$y);if(!Ra(r)||!Ra(o))return null;var j,P=r+(Na(b)?b:0),A=o+(Na(w)?w:0);switch(h){case"start":j=By("calc(".concat(u,")"));break;case"middle":j=By("calc(".concat((m.length-1)/2," * -").concat(a," + (").concat(u," / 2))"));break;default:j=By("calc(".concat(m.length-1," * -").concat(a,")"))}var M=[];if(s){var k=m[0].width,E=g.width;M.push("scale(".concat((Na(E)?E/k:1)/k,")"))}return x&&M.push("rotate(".concat(x,", ").concat(P,", ").concat(A,")")),M.length&&(_.transform=M.join(" ")),st.createElement("text",Hy({},fc(_,!0),{x:P,y:A,className:Nn("recharts-text",O),textAnchor:p,fill:v.includes("url")?Xy:v}),m.map((function(t,e){var r=t.words.join(S?"":" ");return st.createElement("tspan",{x:P,dy:0===e?j:a,key:"".concat(r,"-").concat(e)},r)})))};function Gy(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Jy(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Qy(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=Gy,r=(e,r)=>Gy(t(e),r),n=(e,r)=>t(e)-r):(e=t===Gy||t===Jy?t:tv,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 tv(){return 0}function ev(t){return null===t?NaN:+t}const rv=Qy(Gy).right;Qy(ev).center;class nv extends Map{constructor(t,e=iv){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(ov(this,t))}has(t){return super.has(ov(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){const n=e(r);t.has(n)&&(r=t.get(n),t.delete(n));return r}(this,t))}}function ov({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function iv(t){return null!==t&&"object"==typeof t?t.valueOf():t}function av(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}const cv=Math.sqrt(50),uv=Math.sqrt(10),lv=Math.sqrt(2);function sv(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>=cv?10:i>=uv?5:i>=lv?2:1;let c,u,l;return o<0?(l=Math.pow(10,-o)/a,c=Math.round(t*l),u=Math.round(e*l),c/l<t&&++c,u/l>e&&--u,l=-l):(l=Math.pow(10,o)*a,c=Math.round(t/l),u=Math.round(e/l),c*l<t&&++c,u*l>e&&--u),u<c&&.5<=r&&r<2?sv(t,e,2*r):[c,u,l]}function fv(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[o,i,a]=n?sv(e,t,r):sv(t,e,r);if(!(i>=o))return[];const c=i-o+1,u=new Array(c);if(n)if(a<0)for(let t=0;t<c;++t)u[t]=(i-t)/-a;else for(let t=0;t<c;++t)u[t]=(i-t)*a;else if(a<0)for(let t=0;t<c;++t)u[t]=(o+t)/-a;else for(let t=0;t<c;++t)u[t]=(o+t)*a;return u}function pv(t,e,r){return sv(t=+t,e=+e,r=+r)[2]}function dv(t,e,r){r=+r;const n=(e=+e)<(t=+t),o=n?pv(e,t,r):pv(t,e,r);return(n?-1:1)*(o<0?1/-o:o)}function hv(t,e){let r;for(const e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);return r}function yv(t,e){let r;for(const e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);return r}function vv(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?av:function(t=Gy){if(t===Gy)return av;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))}}(o);n>r;){if(n-r>600){const i=n-r+1,a=e-r+1,c=Math.log(i),u=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*u*(i-u)/i)*(a-i/2<0?-1:1);vv(t,e,Math.max(r,Math.floor(e-a*u/i+l)),Math.min(n,Math.floor(e+(i-a)*u/i+l)),o)}const i=t[e];let a=r,c=n;for(gv(t,r,e),o(t[n],i)>0&&gv(t,r,n);a<c;){for(gv(t,a,c),++a,--c;o(t[a],i)<0;)++a;for(;o(t[c],i)>0;)--c}0===o(t[r],i)?gv(t,r,c):(++c,gv(t,c,n)),c<=e&&(r=c+1),e<=c&&(n=c-1)}return t}function gv(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function mv(t,e,r=ev){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 bv(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function wv(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}const xv=Symbol("implicit");function Ov(){var t=new nv,e=[],r=[],n=xv;function o(o){let i=t.get(o);if(void 0===i){if(n!==xv)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 nv;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 Ov(e,r).unknown(n)},bv.apply(o,arguments),o}function Sv(){var t,e,r=Ov().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,c=!1,u=0,l=0,s=.5;function f(){var r=n().length,f=a<i,p=f?a:i,d=f?i:a;t=(d-p)/Math.max(1,r-u+2*l),c&&(t=Math.floor(t)),p+=(d-p-t*(r-u))*s,e=t*(1-u),c&&(p=Math.round(p),e=Math.round(e));var h=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?h.reverse():h)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},r.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,c=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(c=!!t,f()):c},r.padding=function(t){return arguments.length?(u=Math.min(1,l=+t),f()):u},r.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),f()):u},r.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return Sv(n(),[i,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},bv.apply(f(),arguments)}function _v(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return _v(e())},t}function jv(){return _v(Sv.apply(null,arguments).paddingInner(1))}function Pv(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Av(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Mv(){}var kv=.7,Ev=1/kv,Cv="\\s*([+-]?\\d+)\\s*",Tv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Dv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Iv=/^#([0-9a-f]{3,8})$/,Nv=new RegExp(`^rgb\\(${Cv},${Cv},${Cv}\\)$`),Rv=new RegExp(`^rgb\\(${Dv},${Dv},${Dv}\\)$`),Lv=new RegExp(`^rgba\\(${Cv},${Cv},${Cv},${Tv}\\)$`),Bv=new RegExp(`^rgba\\(${Dv},${Dv},${Dv},${Tv}\\)$`),zv=new RegExp(`^hsl\\(${Tv},${Dv},${Dv}\\)$`),$v=new RegExp(`^hsla\\(${Tv},${Dv},${Dv},${Tv}\\)$`),Hv={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 Fv(){return this.rgb().formatHex()}function Uv(){return this.rgb().formatRgb()}function Vv(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Iv.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?Wv(e):3===r?new Yv(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?Zv(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?Zv(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=Nv.exec(t))?new Yv(e[1],e[2],e[3],1):(e=Rv.exec(t))?new Yv(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Lv.exec(t))?Zv(e[1],e[2],e[3],e[4]):(e=Bv.exec(t))?Zv(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=zv.exec(t))?tg(e[1],e[2]/100,e[3]/100,1):(e=$v.exec(t))?tg(e[1],e[2]/100,e[3]/100,e[4]):Hv.hasOwnProperty(t)?Wv(Hv[t]):"transparent"===t?new Yv(NaN,NaN,NaN,0):null}function Wv(t){return new Yv(t>>16&255,t>>8&255,255&t,1)}function Zv(t,e,r,n){return n<=0&&(t=e=r=NaN),new Yv(t,e,r,n)}function qv(t,e,r,n){return 1===arguments.length?((o=t)instanceof Mv||(o=Vv(o)),o?new Yv((o=o.rgb()).r,o.g,o.b,o.opacity):new Yv):new Yv(t,e,r,null==n?1:n);var o}function Yv(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function Xv(){return`#${Qv(this.r)}${Qv(this.g)}${Qv(this.b)}`}function Kv(){const t=Gv(this.opacity);return`${1===t?"rgb(":"rgba("}${Jv(this.r)}, ${Jv(this.g)}, ${Jv(this.b)}${1===t?")":`, ${t})`}`}function Gv(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Jv(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Qv(t){return((t=Jv(t))<16?"0":"")+t.toString(16)}function tg(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new rg(t,e,r,n)}function eg(t){if(t instanceof rg)return new rg(t.h,t.s,t.l,t.opacity);if(t instanceof Mv||(t=Vv(t)),!t)return new rg;if(t instanceof rg)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,o=Math.min(e,r,n),i=Math.max(e,r,n),a=NaN,c=i-o,u=(i+o)/2;return c?(a=e===i?(r-n)/c+6*(r<n):r===i?(n-e)/c+2:(e-r)/c+4,c/=u<.5?i+o:2-i-o,a*=60):c=u>0&&u<1?0:a,new rg(a,c,u,t.opacity)}function rg(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function ng(t){return(t=(t||0)%360)<0?t+360:t}function og(t){return Math.max(0,Math.min(1,t||0))}function ig(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Pv(Mv,Vv,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Fv,formatHex:Fv,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return eg(this).formatHsl()},formatRgb:Uv,toString:Uv}),Pv(Yv,qv,Av(Mv,{brighter(t){return t=null==t?Ev:Math.pow(Ev,t),new Yv(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?kv:Math.pow(kv,t),new Yv(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Yv(Jv(this.r),Jv(this.g),Jv(this.b),Gv(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Xv,formatHex:Xv,formatHex8:function(){return`#${Qv(this.r)}${Qv(this.g)}${Qv(this.b)}${Qv(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Kv,toString:Kv})),Pv(rg,(function(t,e,r,n){return 1===arguments.length?eg(t):new rg(t,e,r,null==n?1:n)}),Av(Mv,{brighter(t){return t=null==t?Ev:Math.pow(Ev,t),new rg(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?kv:Math.pow(kv,t),new rg(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,o=2*r-n;return new Yv(ig(t>=240?t-240:t+120,o,n),ig(t,o,n),ig(t<120?t+240:t-120,o,n),this.opacity)},clamp(){return new rg(ng(this.h),og(this.s),og(this.l),Gv(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Gv(this.opacity);return`${1===t?"hsl(":"hsla("}${ng(this.h)}, ${100*og(this.s)}%, ${100*og(this.l)}%${1===t?")":`, ${t})`}`}}));var ag=t=>()=>t;function cg(t){return 1==(t=+t)?ug: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):ag(isNaN(e)?r:e)}}function ug(t,e){var r=e-t;return r?function(t,e){return function(r){return t+r*e}}(t,r):ag(isNaN(t)?e:t)}var lg=function t(e){var r=cg(e);function n(t,e){var n=r((t=qv(t)).r,(e=qv(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),a=ug(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 sg(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 fg(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]=mg(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 pg(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function dg(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function hg(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]=mg(t[r],e[r]):o[r]=e[r];return function(t){for(r in n)o[r]=n[r](t);return o}}var yg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vg=new RegExp(yg.source,"g");function gg(t,e){var r,n,o,i=yg.lastIndex=vg.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(r=yg.exec(t))&&(n=vg.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),c[a]?c[a]+=o:c[++a]=o),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,u.push({i:a,x:dg(r,n)})),i=vg.lastIndex;return i<e.length&&(o=e.slice(i),c[a]?c[a]+=o:c[++a]=o),c.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var r,n=0;n<e;++n)c[(r=u[n]).i]=r.x(t);return c.join("")})}function mg(t,e){var r,n=typeof e;return null==e||"boolean"===n?ag(e):("number"===n?dg:"string"===n?(r=Vv(e))?(e=r,lg):gg:e instanceof Vv?lg:e instanceof Date?pg:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?sg:Array.isArray(e)?fg:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?hg:dg)(t,e)}function bg(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function wg(t,e){void 0===e&&(e=t,t=mg);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)}}function xg(t){return+t}var Og=[0,1];function Sg(t){return t}function _g(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function jg(t,e,r){var n=t[0],o=t[1],i=e[0],a=e[1];return o<n?(n=_g(o,n),i=r(a,i)):(n=_g(n,o),i=r(i,a)),function(t){return i(n(t))}}function Pg(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]=_g(t[a],t[a+1]),i[a]=r(e[a],e[a+1]);return function(e){var r=rv(t,e,1,n)-1;return i[r](o[r](e))}}function Ag(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Mg(){var t,e,r,n,o,i,a=Og,c=Og,u=mg,l=Sg;function s(){var t=Math.min(a.length,c.length);return l!==Sg&&(l=function(t,e){var r;return t>e&&(r=t,t=e,e=r),function(r){return Math.max(t,Math.min(e,r))}}(a[0],a[t-1])),n=t>2?Pg:jg,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?r:(o||(o=n(a.map(t),c,u)))(t(l(e)))}return f.invert=function(r){return l(e((i||(i=n(c,a.map(t),dg)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,xg),s()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),s()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),u=bg,s()},f.clamp=function(t){return arguments.length?(l=!!t||Sg,s()):l!==Sg},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function kg(){return Mg()(Sg,Sg)}function Eg(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 Cg(t){return(t=Eg(Math.abs(t)))?t[1]:NaN}var Tg,Dg=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ig(t){if(!(e=Dg.exec(t)))throw new Error("invalid format: "+t);var e;return new Ng({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 Ng(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 Rg(t,e){var r=Eg(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")}Ig.prototype=Ng.prototype,Ng.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};var Lg={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Rg(100*t,e),r:Rg,s:function(t,e){var r=Eg(t,e);if(!r)return t+"";var n=r[0],o=r[1],i=o-(Tg=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")+Eg(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Bg(t){return t}var zg,$g,Hg,Fg=Array.prototype.map,Ug=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Vg(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?Bg:(e=Fg.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var o=t.length,i=[],a=0,c=e[0],u=0;o>0&&c>0&&(u+c+1>n&&(c=Math.max(1,n-u)),i.push(t.substring(o-=c,o+c)),!((u+=c+1)>n));)c=e[a=(a+1)%e.length];return i.reverse().join(r)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?Bg:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Fg.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=Ig(t)).fill,r=t.align,f=t.sign,p=t.symbol,d=t.zero,h=t.width,y=t.comma,v=t.precision,g=t.trim,m=t.type;"n"===m?(y=!0,m="g"):Lg[m]||(void 0===v&&(v=12),g=!0,m="g"),(d||"0"===e&&"="===r)&&(d=!0,e="0",r="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===p?i:/[%p]/.test(m)?u:"",x=Lg[m],O=/[defgprs%]/.test(m);function S(t){var o,i,u,p=b,S=w;if("c"===m)S=x(t)+S,t="";else{var _=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:x(Math.abs(t),v),g&&(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)),_&&0==+t&&"+"!==f&&(_=!1),p=(_?"("===f?f:l:"-"===f||"("===f?"":f)+p,S=("s"===m?Ug[8+Tg/3]:"")+S+(_&&"("===f?")":""),O)for(o=-1,i=t.length;++o<i;)if(48>(u=t.charCodeAt(o))||u>57){S=(46===u?a+t.slice(o+1):t.slice(o))+S,t=t.slice(0,o);break}}y&&!d&&(t=n(t,1/0));var j=p.length+t.length+S.length,P=j<h?new Array(h-j+1).join(e):"";switch(y&&d&&(t=n(P+t,P.length?h-S.length:1/0),P=""),r){case"<":t=p+t+S+P;break;case"=":t=p+P+t+S;break;case"^":t=P.slice(0,j=P.length>>1)+p+t+S+P.slice(j);break;default:t=P+p+t+S}return c(t)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return t+""},S}return{format:f,formatPrefix:function(t,e){var r=f(((t=Ig(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(Cg(e)/3))),o=Math.pow(10,-n),i=Ug[8+n/3];return function(t){return r(o*t)+i}}}}function Wg(t,e,r,n){var o,i=dv(t,e,r);switch((n=Ig(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(Cg(e)/3)))-Cg(Math.abs(t)))}(i,a))||(n.precision=o),Hg(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,Cg(e)-Cg(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,-Cg(Math.abs(t)))}(i))||(n.precision=o-2*("%"===n.type))}return $g(n)}function Zg(t){var e=t.domain;return t.ticks=function(t){var r=e();return fv(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return Wg(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,o,i=e(),a=0,c=i.length-1,u=i[a],l=i[c],s=10;for(l<u&&(o=u,u=l,l=o,o=a,a=c,c=o);s-- >0;){if((o=pv(u,l,r))===n)return i[a]=u,i[c]=l,e(i);if(o>0)u=Math.floor(u/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,l=Math.floor(l*o)/o}n=o}return t},t}function qg(){var t=kg();return t.copy=function(){return Ag(t,qg())},bv.apply(t,arguments),Zg(t)}function Yg(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 Xg(t){return Math.log(t)}function Kg(t){return Math.exp(t)}function Gg(t){return-Math.log(-t)}function Jg(t){return-Math.exp(-t)}function Qg(t){return isFinite(t)?+("1e"+t):t<0?0:t}function tm(t){return(e,r)=>-t(-e,r)}function em(t){const e=t(Xg,Kg),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?Qg:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),r()[0]<0?(n=tm(n),o=tm(o),t(Gg,Jg)):t(Xg,Kg),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],c=e[e.length-1];const u=c<a;u&&([a,c]=[c,a]);let l,s,f=n(a),p=n(c);const d=null==t?10:+t;let h=[];if(!(i%1)&&p-f<d){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<i;++l)if(s=f<0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;h.push(s)}}else for(;f<=p;++f)for(l=i-1;l>=1;--l)if(s=f>0?l/o(-f):l*o(f),!(s<a)){if(s>c)break;h.push(s)}2*h.length<d&&(h=fv(a,c,d))}else h=fv(f,p,Math.min(p-f,d)).map(o);return u?h.reverse():h},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===i?"s":","),"function"!=typeof r&&(i%1||null!=(r=Ig(r)).precision||(r.trim=!0),r=$g(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(Yg(r(),{floor:t=>o(Math.floor(n(t))),ceil:t=>o(Math.ceil(n(t)))})),e}function rm(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function nm(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function om(t){var e=1,r=t(rm(e),nm(e));return r.constant=function(r){return arguments.length?t(rm(e=+r),nm(e)):e},Zg(r)}function im(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function am(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function cm(t){return t<0?-t*t:t*t}function um(t){var e=t(Sg,Sg),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(Sg,Sg):.5===r?t(am,cm):t(im(r),im(1/r)):r},Zg(e)}function lm(){var t=um(Mg());return t.copy=function(){return Ag(t,lm()).exponent(t.exponent())},bv.apply(t,arguments),t}function sm(t){return Math.sign(t)*t*t}zg=Vg({thousands:",",grouping:[3],currency:["$",""]}),$g=zg.format,Hg=zg.formatPrefix;const fm=new Date,pm=new Date;function dm(t,e,r,n){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=e=>(t(e=new Date(+e)),e),o.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),o.round=t=>{const e=o(t),r=o.ceil(t);return t-e<r-t?e:r},o.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),o.range=(r,n,i)=>{const a=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return a;let c;do{a.push(c=new Date(+r)),e(r,i),t(r)}while(c<r&&r<n);return a},o.filter=r=>dm((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)=>(fm.setTime(+e),pm.setTime(+n),t(fm),t(pm),Math.floor(r(fm,pm))),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 hm=dm((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));hm.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?dm((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):hm:null),hm.range;const ym=1e3,vm=6e4,gm=36e5,mm=864e5,bm=6048e5,wm=2592e6,xm=31536e6,Om=dm((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*ym)}),((t,e)=>(e-t)/ym),(t=>t.getUTCSeconds()));Om.range;const Sm=dm((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ym)}),((t,e)=>{t.setTime(+t+e*vm)}),((t,e)=>(e-t)/vm),(t=>t.getMinutes()));Sm.range;const _m=dm((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*vm)}),((t,e)=>(e-t)/vm),(t=>t.getUTCMinutes()));_m.range;const jm=dm((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ym-t.getMinutes()*vm)}),((t,e)=>{t.setTime(+t+e*gm)}),((t,e)=>(e-t)/gm),(t=>t.getHours()));jm.range;const Pm=dm((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*gm)}),((t,e)=>(e-t)/gm),(t=>t.getUTCHours()));Pm.range;const Am=dm((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*vm)/mm),(t=>t.getDate()-1));Am.range;const Mm=dm((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/mm),(t=>t.getUTCDate()-1));Mm.range;const km=dm((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/mm),(t=>Math.floor(t/mm)));function Em(t){return dm((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())*vm)/bm))}km.range;const Cm=Em(0),Tm=Em(1),Dm=Em(2),Im=Em(3),Nm=Em(4),Rm=Em(5),Lm=Em(6);function Bm(t){return dm((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)/bm))}Cm.range,Tm.range,Dm.range,Im.range,Nm.range,Rm.range,Lm.range;const zm=Bm(0),$m=Bm(1),Hm=Bm(2),Fm=Bm(3),Um=Bm(4),Vm=Bm(5),Wm=Bm(6);zm.range,$m.range,Hm.range,Fm.range,Um.range,Vm.range,Wm.range;const Zm=dm((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()));Zm.range;const qm=dm((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()));qm.range;const Ym=dm((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()));Ym.every=t=>isFinite(t=Math.floor(t))&&t>0?dm((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,Ym.range;const Xm=dm((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()));function Km(t,e,r,n,o,i){const a=[[Om,1,ym],[Om,5,5e3],[Om,15,15e3],[Om,30,3e4],[i,1,vm],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,gm],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,mm],[n,2,1728e5],[r,1,bm],[e,1,wm],[e,3,7776e6],[t,1,xm]];function c(e,r,n){const o=Math.abs(r-e)/n,i=Qy((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(dv(e/xm,r/xm,n));if(0===i)return hm.every(Math.max(dv(e,r,n),1));const[c,u]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return c.every(u)}return[function(t,e,r){const n=e<t;n&&([t,e]=[e,t]);const o=r&&"function"==typeof r.range?r:c(t,e,r),i=o?o.range(t,+e+1):[];return n?i.reverse():i},c]}Xm.every=t=>isFinite(t=Math.floor(t))&&t>0?dm((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,Xm.range;const[Gm,Jm]=Km(Xm,qm,zm,km,Pm,_m),[Qm,tb]=Km(Ym,Zm,Cm,Am,jm,Sm);function eb(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 rb(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 nb(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var ob,ib,ab,cb={"-":"",_:" ",0:"0"},ub=/^\s*\d+/,lb=/^%/,sb=/[\\^$*+?|[\]().{}]/g;function fb(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 pb(t){return t.replace(sb,"\\$&")}function db(t){return new RegExp("^(?:"+t.map(pb).join("|")+")","i")}function hb(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function yb(t,e,r){var n=ub.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function vb(t,e,r){var n=ub.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function gb(t,e,r){var n=ub.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function mb(t,e,r){var n=ub.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function bb(t,e,r){var n=ub.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function wb(t,e,r){var n=ub.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function xb(t,e,r){var n=ub.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Ob(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 Sb(t,e,r){var n=ub.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function _b(t,e,r){var n=ub.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function jb(t,e,r){var n=ub.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function Pb(t,e,r){var n=ub.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function Ab(t,e,r){var n=ub.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function Mb(t,e,r){var n=ub.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function kb(t,e,r){var n=ub.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function Eb(t,e,r){var n=ub.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function Cb(t,e,r){var n=ub.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Tb(t,e,r){var n=lb.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function Db(t,e,r){var n=ub.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Ib(t,e,r){var n=ub.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function Nb(t,e){return fb(t.getDate(),e,2)}function Rb(t,e){return fb(t.getHours(),e,2)}function Lb(t,e){return fb(t.getHours()%12||12,e,2)}function Bb(t,e){return fb(1+Am.count(Ym(t),t),e,3)}function zb(t,e){return fb(t.getMilliseconds(),e,3)}function $b(t,e){return zb(t,e)+"000"}function Hb(t,e){return fb(t.getMonth()+1,e,2)}function Fb(t,e){return fb(t.getMinutes(),e,2)}function Ub(t,e){return fb(t.getSeconds(),e,2)}function Vb(t){var e=t.getDay();return 0===e?7:e}function Wb(t,e){return fb(Cm.count(Ym(t)-1,t),e,2)}function Zb(t){var e=t.getDay();return e>=4||0===e?Nm(t):Nm.ceil(t)}function qb(t,e){return t=Zb(t),fb(Nm.count(Ym(t),t)+(4===Ym(t).getDay()),e,2)}function Yb(t){return t.getDay()}function Xb(t,e){return fb(Tm.count(Ym(t)-1,t),e,2)}function Kb(t,e){return fb(t.getFullYear()%100,e,2)}function Gb(t,e){return fb((t=Zb(t)).getFullYear()%100,e,2)}function Jb(t,e){return fb(t.getFullYear()%1e4,e,4)}function Qb(t,e){var r=t.getDay();return fb((t=r>=4||0===r?Nm(t):Nm.ceil(t)).getFullYear()%1e4,e,4)}function tw(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+fb(e/60|0,"0",2)+fb(e%60,"0",2)}function ew(t,e){return fb(t.getUTCDate(),e,2)}function rw(t,e){return fb(t.getUTCHours(),e,2)}function nw(t,e){return fb(t.getUTCHours()%12||12,e,2)}function ow(t,e){return fb(1+Mm.count(Xm(t),t),e,3)}function iw(t,e){return fb(t.getUTCMilliseconds(),e,3)}function aw(t,e){return iw(t,e)+"000"}function cw(t,e){return fb(t.getUTCMonth()+1,e,2)}function uw(t,e){return fb(t.getUTCMinutes(),e,2)}function lw(t,e){return fb(t.getUTCSeconds(),e,2)}function sw(t){var e=t.getUTCDay();return 0===e?7:e}function fw(t,e){return fb(zm.count(Xm(t)-1,t),e,2)}function pw(t){var e=t.getUTCDay();return e>=4||0===e?Um(t):Um.ceil(t)}function dw(t,e){return t=pw(t),fb(Um.count(Xm(t),t)+(4===Xm(t).getUTCDay()),e,2)}function hw(t){return t.getUTCDay()}function yw(t,e){return fb($m.count(Xm(t)-1,t),e,2)}function vw(t,e){return fb(t.getUTCFullYear()%100,e,2)}function gw(t,e){return fb((t=pw(t)).getUTCFullYear()%100,e,2)}function mw(t,e){return fb(t.getUTCFullYear()%1e4,e,4)}function bw(t,e){var r=t.getUTCDay();return fb((t=r>=4||0===r?Um(t):Um.ceil(t)).getUTCFullYear()%1e4,e,4)}function ww(){return"+0000"}function xw(){return"%"}function Ow(t){return+t}function Sw(t){return Math.floor(+t/1e3)}function _w(t){return new Date(t)}function jw(t){return t instanceof Date?+t:+new Date(+t)}function Pw(t,e,r,n,o,i,a,c,u,l){var s=kg(),f=s.invert,p=s.domain,d=l(".%L"),h=l(":%S"),y=l("%I:%M"),v=l("%I %p"),g=l("%a %d"),m=l("%b %d"),b=l("%B"),w=l("%Y");function x(t){return(u(t)<t?d:c(t)<t?h:a(t)<t?y:i(t)<t?v:n(t)<t?o(t)<t?g:m:r(t)<t?b:w)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,jw)):p().map(_w)},s.ticks=function(e){var r=p();return t(r[0],r[r.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?x:l(e)},s.nice=function(t){var r=p();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?p(Yg(r,t)):s},s.copy=function(){return Ag(s,Pw(t,e,r,n,o,i,a,c,u,l))},s}function Aw(){var t,e,r,n,o,i=0,a=1,c=Sg,u=!1;function l(e){return null==e||isNaN(e=+e)?o:c(0===r?.5:(e=(n(e)-t)*r,u?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,c=t(r,n),l):[c(0),c(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=n(i=+i),e=n(a=+a),r=t===e?0:1/(e-t),l):[i,a]},l.clamp=function(t){return arguments.length?(u=!!t,l):u},l.interpolator=function(t){return arguments.length?(c=t,l):c},l.range=s(mg),l.rangeRound=s(bg),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return n=o,t=o(i),e=o(a),r=t===e?0:1/(e-t),l}}function Mw(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function kw(){var t=um(Aw());return t.copy=function(){return Mw(t,kw()).exponent(t.exponent())},wv.apply(t,arguments)}function Ew(){var t,e,r,n,o,i,a,c=0,u=.5,l=1,s=1,f=Sg,p=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(s*t<s*e?n:o),f(p?Math.max(0,Math.min(1,t)):t))}function h(t){return function(e){var r,n,o;return arguments.length?([r,n,o]=e,f=wg(t,[r,n,o]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([c,u,l]=a,t=i(c=+c),e=i(u=+u),r=i(l=+l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,d):[c,u,l]},d.clamp=function(t){return arguments.length?(p=!!t,d):p},d.interpolator=function(t){return arguments.length?(f=t,d):f},d.range=h(mg),d.rangeRound=h(bg),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return i=a,t=a(c),e=a(u),r=a(l),n=t===e?0:.5/(e-t),o=e===r?0:.5/(r-e),s=e<t?-1:1,d}}function Cw(){var t=um(Ew());return t.copy=function(){return Mw(t,Cw()).exponent(t.exponent())},wv.apply(t,arguments)}!function(t){ob=function(t){var e=t.dateTime,r=t.date,n=t.time,o=t.periods,i=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,l=db(o),s=hb(o),f=db(i),p=hb(i),d=db(a),h=hb(a),y=db(c),v=hb(c),g=db(u),m=hb(u),b={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:Nb,e:Nb,f:$b,g:Gb,G:Qb,H:Rb,I:Lb,j:Bb,L:zb,m:Hb,M:Fb,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Ow,s:Sw,S:Ub,u:Vb,U:Wb,V:qb,w:Yb,W:Xb,x:null,X:null,y:Kb,Y:Jb,Z:tw,"%":xw},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:ew,e:ew,f:aw,g:gw,G:bw,H:rw,I:nw,j:ow,L:iw,m:cw,M:uw,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Ow,s:Sw,S:lw,u:sw,U:fw,V:dw,w:hw,W:yw,x:null,X:null,y:vw,Y:mw,Z:ww,"%":xw},x={a:function(t,e,r){var n=d.exec(e.slice(r));return n?(t.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=g.exec(e.slice(r));return n?(t.m=m.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return _(t,e,r,n)},d:jb,e:jb,f:Cb,g:xb,G:wb,H:Ab,I:Ab,j:Pb,L:Eb,m:_b,M:Mb,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:Sb,Q:Db,s:Ib,S:kb,u:vb,U:gb,V:mb,w:yb,W:bb,x:function(t,e,n){return _(t,r,e,n)},X:function(t,e,r){return _(t,n,e,r)},y:xb,Y:wb,Z:Ob,"%":Tb};function O(t,e){return function(r){var n,o,i,a=[],c=-1,u=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++c<l;)37===t.charCodeAt(c)&&(a.push(t.slice(u,c)),null!=(o=cb[n=t.charAt(++c)])?n=t.charAt(++c):o="e"===n?" ":"0",(i=e[n])&&(n=i(r,o)),a.push(n),u=c+1);return a.push(t.slice(u,c)),a.join("")}}function S(t,e){return function(r){var n,o,i=nb(1900,void 0,1);if(_(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=rb(nb(i.y,0,1))).getUTCDay(),n=o>4||0===o?$m.ceil(n):$m(n),n=Mm.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=eb(nb(i.y,0,1))).getDay(),n=o>4||0===o?Tm.ceil(n):Tm(n),n=Am.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?rb(nb(i.y,0,1)).getUTCDay():eb(nb(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,rb(i)):eb(i)}}function _(t,e,r,n){for(var o,i,a=0,c=e.length,u=r.length;a<c;){if(n>=u)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=x[o in cb?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),w.x=O(r,w),w.X=O(n,w),w.c=O(e,w),{format:function(t){var e=O(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}(t),ib=ob.format,ob.parse,ab=ob.utcFormat,ob.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 Tw,Dw,Iw,Nw,Rw,Lw,Bw=Object.freeze({__proto__:null,scaleBand:Sv,scaleDiverging:function t(){var e=Zg(Ew()(Sg));return e.copy=function(){return Mw(e,t())},wv.apply(e,arguments)},scaleDivergingLog:function t(){var e=em(Ew()).domain([.1,1,10]);return e.copy=function(){return Mw(e,t()).base(e.base())},wv.apply(e,arguments)},scaleDivergingPow:Cw,scaleDivergingSqrt:function(){return Cw.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=om(Ew());return e.copy=function(){return Mw(e,t()).constant(e.constant())},wv.apply(e,arguments)},scaleIdentity:function t(e){var r;function n(t){return null==t||isNaN(t=+t)?r:t}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,xg),n):e.slice()},n.unknown=function(t){return arguments.length?(r=t,n):r},n.copy=function(){return t(e).unknown(r)},e=arguments.length?Array.from(e,xg):[0,1],Zg(n)},scaleImplicit:xv,scaleLinear:qg,scaleLog:function t(){const e=em(Mg()).domain([1,10]);return e.copy=()=>Ag(e,t()).base(e.base()),bv.apply(e,arguments),e},scaleOrdinal:Ov,scalePoint:jv,scalePow:lm,scaleQuantile:function t(){var e,r=[],n=[],o=[];function i(){var t=0,e=Math.max(1,n.length);for(o=new Array(e-1);++t<e;)o[t-1]=mv(r,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:n[rv(o,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?o[e-1]:r[0],e<o.length?o[e]:r[r.length-1]]},a.domain=function(t){if(!arguments.length)return r.slice();r=[];for(let e of t)null==e||isNaN(e=+e)||r.push(e);return r.sort(Gy),i()},a.range=function(t){return arguments.length?(n=Array.from(t),i()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return o.slice()},a.copy=function(){return t().domain(r).range(n).unknown(e)},bv.apply(a,arguments)},scaleQuantize:function t(){var e,r=0,n=1,o=1,i=[.5],a=[0,1];function c(t){return null!=t&&t<=t?a[rv(i,t,0,o)]:e}function u(){var t=-1;for(i=new Array(o);++t<o;)i[t]=((t+1)*n-(t-o)*r)/(o+1);return c}return c.domain=function(t){return arguments.length?([r,n]=t,r=+r,n=+n,u()):[r,n]},c.range=function(t){return arguments.length?(o=(a=Array.from(t)).length-1,u()):a.slice()},c.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,i[0]]:e>=o?[i[o-1],n]:[i[e-1],i[e]]},c.unknown=function(t){return arguments.length?(e=t,c):c},c.thresholds=function(){return i.slice()},c.copy=function(){return t().domain([r,n]).range(a).unknown(e)},bv.apply(Zg(c),arguments)},scaleRadial:function t(){var e,r=kg(),n=[0,1],o=!1;function i(t){var n=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(r(t));return isNaN(n)?e:o?Math.round(n):n}return i.invert=function(t){return r.invert(sm(t))},i.domain=function(t){return arguments.length?(r.domain(t),i):r.domain()},i.range=function(t){return arguments.length?(r.range((n=Array.from(t,xg)).map(sm)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(o=!!t,i):o},i.clamp=function(t){return arguments.length?(r.clamp(t),i):r.clamp()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t(r.domain(),n).round(o).clamp(r.clamp()).unknown(e)},bv.apply(i,arguments),Zg(i)},scaleSequential:function t(){var e=Zg(Aw()(Sg));return e.copy=function(){return Mw(e,t())},wv.apply(e,arguments)},scaleSequentialLog:function t(){var e=em(Aw()).domain([1,10]);return e.copy=function(){return Mw(e,t()).base(e.base())},wv.apply(e,arguments)},scaleSequentialPow:kw,scaleSequentialQuantile:function t(){var e=[],r=Sg;function n(t){if(null!=t&&!isNaN(t=+t))return r((rv(e,t,1)-1)/(e.length-1))}return n.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(Gy),n},n.interpolator=function(t){return arguments.length?(r=t,n):r},n.range=function(){return e.map(((t,n)=>r(n/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((r,n)=>function(t,e,r){if((n=(t=Float64Array.from(function*(t,e){for(let e of t)null!=e&&(e=+e)>=e&&(yield e)}(t))).length)&&!isNaN(e=+e)){if(e<=0||n<2)return yv(t);if(e>=1)return hv(t);var n,o=(n-1)*e,i=Math.floor(o),a=hv(vv(t,i).subarray(0,i+1));return a+(yv(t.subarray(i+1))-a)*(o-i)}}(e,n/t)))},n.copy=function(){return t(r).domain(e)},wv.apply(n,arguments)},scaleSequentialSqrt:function(){return kw.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=om(Aw());return e.copy=function(){return Mw(e,t()).constant(e.constant())},wv.apply(e,arguments)},scaleSqrt:function(){return lm.apply(null,arguments).exponent(.5)},scaleSymlog:function t(){var e=om(Mg());return e.copy=function(){return Ag(e,t()).constant(e.constant())},bv.apply(e,arguments)},scaleThreshold:function t(){var e,r=[.5],n=[0,1],o=1;function i(t){return null!=t&&t<=t?n[rv(r,t,0,o)]:e}return i.domain=function(t){return arguments.length?(r=Array.from(t),o=Math.min(r.length,n.length-1),i):r.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),o=Math.min(r.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return t().domain(r).range(n).unknown(e)},bv.apply(i,arguments)},scaleTime:function(){return bv.apply(Pw(Qm,tb,Ym,Zm,Cm,Am,jm,Sm,Om,ib).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return bv.apply(Pw(Gm,Jm,Xm,qm,zm,Mm,Pm,_m,Om,ab).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:Wg});function zw(){if(Dw)return Tw;Dw=1;var t=zi();return Tw=function(e,r,n){for(var o=-1,i=e.length;++o<i;){var a=e[o],c=r(a);if(null!=c&&(void 0===u?c==c&&!t(c):n(c,u)))var u=c,l=a}return l},Tw}var $w,Hw,Fw,Uw,Vw=function(){if(Lw)return Rw;Lw=1;var t=zw(),e=Nw?Iw:(Nw=1,Iw=function(t,e){return t>e}),r=Ep();return Rw=function(n){return n&&n.length?t(n,r,e):void 0},Rw}(),Ww=dr(Vw);var Zw,qw,Yw,Xw,Kw=function(){if(Uw)return Fw;Uw=1;var t=zw(),e=Hw?$w:(Hw=1,$w=function(t,e){return t<e}),r=Ep();return Fw=function(n){return n&&n.length?t(n,r,e):void 0},Fw}(),Gw=dr(Kw);var Jw,Qw,tx=function(){if(Xw)return Yw;Xw=1;var t=Vd(),e=function(){if(qw)return Zw;qw=1;var t=ra(),e=Tp(),r=Yd(),n=Di();return Zw=function(o,i){return(n(o)?t:r)(o,e(i,3))}}();return Yw=function(r,n){return t(e(r,n),1)}}(),ex=dr(tx);var rx,nx=dr(function(){if(Qw)return Jw;Qw=1;var t=jp();return Jw=function(e,r){return t(e,r)}}()),ox=1e9,ix=!0,ax="[DecimalError] ",cx=ax+"Invalid argument: ",ux=ax+"Exponent out of range: ",lx=Math.floor,sx=Math.pow,fx=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,px=1e7,dx=7,hx=9007199254740991,yx=lx(hx/dx),vx={};function gx(t,e){var r,n,o,i,a,c,u,l,s=t.constructor,f=s.precision;if(!t.s||!e.s)return e.s||(e=new s(t)),ix?Ax(e,f):e;if(u=t.d,l=e.d,a=t.e,o=e.e,u=u.slice(),i=a-o){for(i<0?(n=u,i=-i,c=l.length):(n=l,o=a,c=u.length),i>(c=(a=Math.ceil(f/dx))>c?a+1:c+1)&&(i=c,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((c=u.length)-(i=l.length)<0&&(i=c,n=l,l=u,u=n),r=0;i;)r=(u[--i]=u[i]+l[i]+r)/px|0,u[i]%=px;for(r&&(u.unshift(r),++o),c=u.length;0==u[--c];)u.pop();return e.d=u,e.e=o,ix?Ax(e,f):e}function mx(t,e,r){if(t!==~~t||t<e||t>r)throw Error(cx+t)}function bx(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=dx-n.length)&&(i+=_x(r)),i+=n;a=t[e],(r=dx-(n=a+"").length)&&(i+=_x(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}vx.absoluteValue=vx.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},vx.comparedTo=vx.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},vx.decimalPlaces=vx.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*dx;if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},vx.dividedBy=vx.div=function(t){return wx(this,new this.constructor(t))},vx.dividedToIntegerBy=vx.idiv=function(t){var e=this.constructor;return Ax(wx(this,new e(t),0,1),e.precision)},vx.equals=vx.eq=function(t){return!this.cmp(t)},vx.exponent=function(){return Ox(this)},vx.greaterThan=vx.gt=function(t){return this.cmp(t)>0},vx.greaterThanOrEqualTo=vx.gte=function(t){return this.cmp(t)>=0},vx.isInteger=vx.isint=function(){return this.e>this.d.length-2},vx.isNegative=vx.isneg=function(){return this.s<0},vx.isPositive=vx.ispos=function(){return this.s>0},vx.isZero=function(){return 0===this.s},vx.lessThan=vx.lt=function(t){return this.cmp(t)<0},vx.lessThanOrEqualTo=vx.lte=function(t){return this.cmp(t)<1},vx.logarithm=vx.log=function(t){var e,r=this,n=r.constructor,o=n.precision,i=o+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(rx))throw Error(ax+"NaN");if(r.s<1)throw Error(ax+(r.s?"NaN":"-Infinity"));return r.eq(rx)?new n(0):(ix=!1,e=wx(jx(r,i),jx(t,i),i),ix=!0,Ax(e,o))},vx.minus=vx.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?Mx(e,t):gx(e,(t.s=-t.s,t))},vx.modulo=vx.mod=function(t){var e,r=this,n=r.constructor,o=n.precision;if(!(t=new n(t)).s)throw Error(ax+"NaN");return r.s?(ix=!1,e=wx(r,t,0,1).times(t),ix=!0,r.minus(e)):Ax(new n(r),o)},vx.naturalExponential=vx.exp=function(){return xx(this)},vx.naturalLogarithm=vx.ln=function(){return jx(this)},vx.negated=vx.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},vx.plus=vx.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?gx(e,t):Mx(e,(t.s=-t.s,t))},vx.precision=vx.sd=function(t){var e,r,n,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(cx+t);if(e=Ox(o)+1,r=(n=o.d.length-1)*dx+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},vx.squareRoot=vx.sqrt=function(){var t,e,r,n,o,i,a,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(ax+"NaN")}for(t=Ox(c),ix=!1,0==(o=Math.sqrt(+c))||o==1/0?(((e=bx(c.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=lx((t+1)/2)-(t<0||t%2),n=new u(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new u(o.toString()),o=a=(r=u.precision)+3;;)if(n=(i=n).plus(wx(c,i,a+2)).times(.5),bx(i.d).slice(0,a)===(e=bx(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(Ax(i,r+1,0),i.times(i).eq(c)){n=i;break}}else if("9999"!=e)break;a+=4}return ix=!0,Ax(n,r)},vx.times=vx.mul=function(t){var e,r,n,o,i,a,c,u,l,s=this,f=s.constructor,p=s.d,d=(t=new f(t)).d;if(!s.s||!t.s)return new f(0);for(t.s*=s.s,r=s.e+t.e,(u=p.length)<(l=d.length)&&(i=p,p=d,d=i,a=u,u=l,l=a),i=[],n=a=u+l;n--;)i.push(0);for(n=l;--n>=0;){for(e=0,o=u+n;o>n;)c=i[o]+d[n]*p[o-n-1]+e,i[o--]=c%px|0,e=c/px|0;i[o]=(i[o]+e)%px|0}for(;!i[--a];)i.pop();return e?++r:i.shift(),t.d=i,t.e=r,ix?Ax(t,f.precision):t},vx.toDecimalPlaces=vx.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(mx(t,0,ox),void 0===e?e=n.rounding:mx(e,0,8),Ax(r,t+Ox(r)+1,e))},vx.toExponential=function(t,e){var r,n=this,o=n.constructor;return void 0===t?r=kx(n,!0):(mx(t,0,ox),void 0===e?e=o.rounding:mx(e,0,8),r=kx(n=Ax(new o(n),t+1,e),!0,t+1)),r},vx.toFixed=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?kx(o):(mx(t,0,ox),void 0===e?e=i.rounding:mx(e,0,8),r=kx((n=Ax(new i(o),t+Ox(o)+1,e)).abs(),!1,t+Ox(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},vx.toInteger=vx.toint=function(){var t=this,e=t.constructor;return Ax(new e(t),Ox(t)+1,e.rounding)},vx.toNumber=function(){return+this},vx.toPower=vx.pow=function(t){var e,r,n,o,i,a,c=this,u=c.constructor,l=+(t=new u(t));if(!t.s)return new u(rx);if(!(c=new u(c)).s){if(t.s<1)throw Error(ax+"Infinity");return c}if(c.eq(rx))return c;if(n=u.precision,t.eq(rx))return Ax(c,n);if(a=(e=t.e)>=(r=t.d.length-1),i=c.s,a){if((r=l<0?-l:l)<=hx){for(o=new u(rx),e=Math.ceil(n/dx+4),ix=!1;r%2&&Ex((o=o.times(c)).d,e),0!==(r=lx(r/2));)Ex((c=c.times(c)).d,e);return ix=!0,t.s<0?new u(rx).div(o):Ax(o,n)}}else if(i<0)throw Error(ax+"NaN");return i=i<0&&1&t.d[Math.max(e,r)]?-1:1,c.s=1,ix=!1,o=t.times(jx(c,n+12)),ix=!0,(o=xx(o)).s=i,o},vx.toPrecision=function(t,e){var r,n,o=this,i=o.constructor;return void 0===t?n=kx(o,(r=Ox(o))<=i.toExpNeg||r>=i.toExpPos):(mx(t,1,ox),void 0===e?e=i.rounding:mx(e,0,8),n=kx(o=Ax(new i(o),t,e),t<=(r=Ox(o))||r<=i.toExpNeg,t)),n},vx.toSignificantDigits=vx.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(mx(t,1,ox),void 0===e?e=r.rounding:mx(e,0,8)),Ax(new r(this),t,e)},vx.toString=vx.valueOf=vx.val=vx.toJSON=vx[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=Ox(t),r=t.constructor;return kx(t,e<=r.toExpNeg||e>=r.toExpPos)};var wx=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%px|0,n=r/px|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*px+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,o,i,a){var c,u,l,s,f,p,d,h,y,v,g,m,b,w,x,O,S,_,j=n.constructor,P=n.s==o.s?1:-1,A=n.d,M=o.d;if(!n.s)return new j(n);if(!o.s)throw Error(ax+"Division by zero");for(u=n.e-o.e,S=M.length,x=A.length,h=(d=new j(P)).d=[],l=0;M[l]==(A[l]||0);)++l;if(M[l]>(A[l]||0)&&--u,(m=null==i?i=j.precision:a?i+(Ox(n)-Ox(o))+1:i)<0)return new j(0);if(m=m/dx+2|0,l=0,1==S)for(s=0,M=M[0],m++;(l<x||s)&&m--;l++)b=s*px+(A[l]||0),h[l]=b/M|0,s=b%M|0;else{for((s=px/(M[0]+1)|0)>1&&(M=t(M,s),A=t(A,s),S=M.length,x=A.length),w=S,v=(y=A.slice(0,S)).length;v<S;)y[v++]=0;(_=M.slice()).unshift(0),O=M[0],M[1]>=px/2&&++O;do{s=0,(c=e(M,y,S,v))<0?(g=y[0],S!=v&&(g=g*px+(y[1]||0)),(s=g/O|0)>1?(s>=px&&(s=px-1),1==(c=e(f=t(M,s),y,p=f.length,v=y.length))&&(s--,r(f,S<p?_:M,p))):(0==s&&(c=s=1),f=M.slice()),(p=f.length)<v&&f.unshift(0),r(y,f,v),-1==c&&(c=e(M,y,S,v=y.length))<1&&(s++,r(y,S<v?_:M,v)),v=y.length):0===c&&(s++,y=[0]),h[l++]=s,c&&y[0]?y[v++]=A[w]||0:(y=[A[w]],v=1)}while((w++<x||void 0!==y[0])&&m--)}return h[0]||h.shift(),d.e=u,Ax(d,a?i+Ox(d)+1:i)}}();function xx(t,e){var r,n,o,i,a,c=0,u=0,l=t.constructor,s=l.precision;if(Ox(t)>16)throw Error(ux+Ox(t));if(!t.s)return new l(rx);for(ix=!1,a=s,i=new l(.03125);t.abs().gte(.1);)t=t.times(i),u+=5;for(a+=Math.log(sx(2,u))/Math.LN10*2+5|0,r=n=o=new l(rx),l.precision=a;;){if(n=Ax(n.times(t),a),r=r.times(++c),bx((i=o.plus(wx(n,r,a))).d).slice(0,a)===bx(o.d).slice(0,a)){for(;u--;)o=Ax(o.times(o),a);return l.precision=s,null==e?(ix=!0,Ax(o,s)):o}o=i}}function Ox(t){for(var e=t.e*dx,r=t.d[0];r>=10;r/=10)e++;return e}function Sx(t,e,r){if(e>t.LN10.sd())throw ix=!0,r&&(t.precision=r),Error(ax+"LN10 precision limit exceeded");return Ax(new t(t.LN10),e)}function _x(t){for(var e="";t--;)e+="0";return e}function jx(t,e){var r,n,o,i,a,c,u,l,s,f=1,p=t,d=p.d,h=p.constructor,y=h.precision;if(p.s<1)throw Error(ax+(p.s?"NaN":"-Infinity"));if(p.eq(rx))return new h(0);if(null==e?(ix=!1,l=y):l=e,p.eq(10))return null==e&&(ix=!0),Sx(h,l);if(l+=10,h.precision=l,n=(r=bx(d)).charAt(0),i=Ox(p),!(Math.abs(i)<15e14))return u=Sx(h,l+2,y).times(i+""),p=jx(new h(n+"."+r.slice(1)),l-10).plus(u),h.precision=y,null==e?(ix=!0,Ax(p,y)):p;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=bx((p=p.times(t)).d)).charAt(0),f++;for(i=Ox(p),n>1?(p=new h("0."+r),i++):p=new h(n+"."+r.slice(1)),c=a=p=wx(p.minus(rx),p.plus(rx),l),s=Ax(p.times(p),l),o=3;;){if(a=Ax(a.times(s),l),bx((u=c.plus(wx(a,new h(o),l))).d).slice(0,l)===bx(c.d).slice(0,l))return c=c.times(2),0!==i&&(c=c.plus(Sx(h,l+2,y).times(i+""))),c=wx(c,new h(f),l),h.precision=y,null==e?(ix=!0,Ax(c,y)):c;c=u,o+=2}}function Px(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=lx(r/dx),t.d=[],n=(r+1)%dx,r<0&&(n+=dx),n<o){for(n&&t.d.push(+e.slice(0,n)),o-=dx;n<o;)t.d.push(+e.slice(n,n+=dx));e=e.slice(n),n=dx-e.length}else n-=o;for(;n--;)e+="0";if(t.d.push(+e),ix&&(t.e>yx||t.e<-yx))throw Error(ux+r)}else t.s=0,t.e=0,t.d=[0];return t}function Ax(t,e,r){var n,o,i,a,c,u,l,s,f=t.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((n=e-a)<0)n+=dx,o=e,l=f[s=0];else{if((s=Math.ceil((n+1)/dx))>=(i=f.length))return t;for(l=i=f[s],a=1;i>=10;i/=10)a++;o=(n%=dx)-dx+a}if(void 0!==r&&(c=l/(i=sx(10,a-o-1))%10|0,u=e<0||void 0!==f[s+1]||l%i,u=r<4?(c||u)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||u||6==r&&(n>0?o>0?l/sx(10,a-o):0:f[s-1])%10&1||r==(t.s<0?8:7))),e<1||!f[0])return u?(i=Ox(t),f.length=1,e=e-i-1,f[0]=sx(10,(dx-e%dx)%dx),t.e=lx(-e/dx)||0):(f.length=1,f[0]=t.e=t.s=0),t;if(0==n?(f.length=s,i=1,s--):(f.length=s+1,i=sx(10,dx-n),f[s]=o>0?(l/sx(10,a-o)%sx(10,o)|0)*i:0),u)for(;;){if(0==s){(f[0]+=i)==px&&(f[0]=1,++t.e);break}if(f[s]+=i,f[s]!=px)break;f[s--]=0,i=1}for(n=f.length;0===f[--n];)f.pop();if(ix&&(t.e>yx||t.e<-yx))throw Error(ux+Ox(t));return t}function Mx(t,e){var r,n,o,i,a,c,u,l,s,f,p=t.constructor,d=p.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new p(t),ix?Ax(e,d):e;if(u=t.d,f=e.d,n=e.e,l=t.e,u=u.slice(),a=l-n){for((s=a<0)?(r=u,a=-a,c=f.length):(r=f,n=l,c=u.length),a>(o=Math.max(Math.ceil(d/dx),c)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((s=(o=u.length)<(c=f.length))&&(c=o),o=0;o<c;o++)if(u[o]!=f[o]){s=u[o]<f[o];break}a=0}for(s&&(r=u,u=f,f=r,e.s=-e.s),c=u.length,o=f.length-c;o>0;--o)u[c++]=0;for(o=f.length;o>a;){if(u[--o]<f[o]){for(i=o;i&&0===u[--i];)u[i]=px-1;--u[i],u[o]+=px}u[o]-=f[o]}for(;0===u[--c];)u.pop();for(;0===u[0];u.shift())--n;return u[0]?(e.d=u,e.e=n,ix?Ax(e,d):e):new p(0)}function kx(t,e,r){var n,o=Ox(t),i=bx(t.d),a=i.length;return e?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+_x(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+_x(-o-1)+i,r&&(n=r-a)>0&&(i+=_x(n))):o>=a?(i+=_x(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+_x(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=_x(n))),t.s<0?"-"+i:i}function Ex(t,e){if(t.length>e)return t.length=e,!0}function Cx(t){if(!t||"object"!=typeof t)throw Error(ax+"Object expected");var e,r,n,o=["precision",1,ox,"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(!(lx(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(cx+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(cx+r+": "+n);this[r]=new this(n)}return this}var Tx=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(cx+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])):Px(e,t.toString())}if("string"!=typeof t)throw Error(cx+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!fx.test(t))throw Error(cx+t);Px(e,t)}if(i.prototype=vx,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=Cx,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}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});rx=new Tx(1);var Dx=Tx;function Ix(t){return function(t){if(Array.isArray(t))return Nx(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 Nx(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nx(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Rx=function(t){return t},Lx={},Bx=function(t){return t===Lx},zx=function(t){return function e(){return 0===arguments.length||1===arguments.length&&Bx(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},$x=function t(e,r){return 1===e?r:zx((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!==Lx})).length;return a>=e?r.apply(void 0,o):t(e-a,zx((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 Bx(t)?e.shift():t}));return r.apply(void 0,Ix(i).concat(e))})))}))},Hx=function(t){return $x(t.length,t)},Fx=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},Ux=Hx((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),Vx=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return Rx;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))}},Wx=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Zx=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 qx=Hx((function(t,e,r){var n=+t;return n+r*(+e-n)})),Yx=Hx((function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)})),Xx=Hx((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))})),Kx={rangeStep:function(t,e,r){for(var n=new Dx(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 Dx(t).abs().log(10).toNumber())+1},interpolateNumber:qx,uninterpolateNumber:Yx,uninterpolateTruncation:Xx};function Gx(t){return function(t){if(Array.isArray(t))return tO(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Qx(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jx(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}(t,e)||Qx(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 Qx(t,e){if(t){if("string"==typeof t)return tO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tO(t,e):void 0}}function tO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function eO(t){var e=Jx(t,2),r=e[0],n=e[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function rO(t,e,r){if(t.lte(0))return new Dx(0);var n=Kx.getDigitCount(t.toNumber()),o=new Dx(10).pow(n),i=t.div(o),a=1!==n?.05:.1,c=new Dx(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return e?c:new Dx(Math.ceil(c))}function nO(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 Dx(0),tickMin:new Dx(0),tickMax:new Dx(0)};var i,a=rO(new Dx(e).sub(t).div(r-1),n,o);i=t<=0&&e>=0?new Dx(0):(i=new Dx(t).add(e).div(2)).sub(new Dx(i).mod(a));var c=Math.ceil(i.sub(t).div(a).toNumber()),u=Math.ceil(new Dx(e).sub(i).div(a).toNumber()),l=c+u+1;return l>r?nO(t,e,r,n,o+1):(l<r&&(u=e>0?u+(r-l):u,c=e>0?c:c+(r-l)),{step:a,tickMin:i.sub(new Dx(c).mul(a)),tickMax:i.add(new Dx(u).mul(a))})}var oO=Zx((function(t){var e=Jx(t,2),r=e[0],n=e[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),c=Jx(eO([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(Gx(Fx(0,o-1).map((function(){return 1/0})))):[].concat(Gx(Fx(0,o-1).map((function(){return-1/0}))),[l]);return r>n?Wx(s):s}if(u===l)return function(t,e,r){var n=1,o=new Dx(t);if(!o.isint()&&r){var i=Math.abs(t);i<1?(n=new Dx(10).pow(Kx.getDigitCount(t)-1),o=new Dx(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new Dx(Math.floor(t)))}else 0===t?o=new Dx(Math.floor((e-1)/2)):r||(o=new Dx(Math.floor(t)));var a=Math.floor((e-1)/2);return Vx(Ux((function(t){return o.add(new Dx(t-a).mul(n)).toNumber()})),Fx)(0,e)}(u,o,i);var f=nO(u,l,a,i),p=f.step,d=f.tickMin,h=f.tickMax,y=Kx.rangeStep(d,h.add(new Dx(.1).mul(p)),p);return r>n?Wx(y):y})),iO=Zx((function(t,e){var r=Jx(t,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Jx(eO([n,o]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[n,o];if(c===u)return[c];var l=Math.max(e,2),s=rO(new Dx(u).sub(c).div(l-1),i,0),f=[].concat(Gx(Kx.rangeStep(new Dx(c),new Dx(u).sub(new Dx(.99).mul(s)),s)),[u]);return n>o?Wx(f):f})),aO="production"===process.env.NODE_ENV,cO="Invariant failed";function uO(t,e){if(aO)throw new Error(cO);var r="function"==typeof e?e():e,n=r?"".concat(cO,": ").concat(r):cO;throw new Error(n)}var lO=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function sO(t){return sO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sO(t)}function fO(){return fO=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},fO.apply(this,arguments)}function pO(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return dO(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 dO(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 dO(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 hO(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function yO(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xO(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function vO(t,e,r){return e=mO(e),function(t,e){if(e&&("object"===sO(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,gO()?Reflect.construct(e,r||[],mO(t).constructor):e.apply(t,r))}function gO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(gO=function(){return!!t})()}function mO(t){return mO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mO(t)}function bO(t,e){return bO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},bO(t,e)}function wO(t,e,r){return(e=xO(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xO(t){var e=function(t,e){if("object"!=sO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=sO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==sO(e)?e:e+""}var OO=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),vO(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bO(t,e)}(e,st.Component),yO(e,[{key:"render",value:function(){var t=this.props,e=t.offset,r=t.layout,n=t.width,o=t.dataKey,i=t.data,a=t.dataPointFormatter,c=t.xAxis,u=t.yAxis,l=hO(t,lO),s=fc(l,!1);"x"===this.props.direction&&"number"!==c.type&&("production"!==process.env.NODE_ENV?uO(0,'ErrorBar requires Axis type property to be "number".'):uO());var f=i.map((function(t){var i=a(t,o),l=i.x,f=i.y,p=i.value,d=i.errorVal;if(!d)return null;var h,y,v=[];if(Array.isArray(d)){var g=pO(d,2);h=g[0],y=g[1]}else h=y=d;if("vertical"===r){var m=c.scale,b=f+e,w=b+n,x=b-n,O=m(p-h),S=m(p+y);v.push({x1:S,y1:w,x2:S,y2:x}),v.push({x1:O,y1:b,x2:S,y2:b}),v.push({x1:O,y1:w,x2:O,y2:x})}else if("horizontal"===r){var _=u.scale,j=l+e,P=j-n,A=j+n,M=_(p-h),k=_(p+y);v.push({x1:P,y1:k,x2:A,y2:k}),v.push({x1:j,y1:M,x2:j,y2:k}),v.push({x1:P,y1:M,x2:A,y2:M})}return st.createElement(Bc,fO({className:"recharts-errorBar",key:"bar-".concat(v.map((function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)})))},s),v.map((function(t){return st.createElement("line",fO({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))})))}));return st.createElement(Bc,{className:"recharts-errorBars"},f)}}])}();function SO(t){return SO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},SO(t)}function _O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function jO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_O(Object(r),!0).forEach((function(e){PO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_O(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function PO(t,e,r){return e=function(t){var e=function(t,e){if("object"!=SO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=SO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==SO(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}wO(OO,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),wO(OO,"displayName","ErrorBar");var AO=function(t){var e=t.children,r=t.formattedGraphicalItems,n=t.legendWidth,o=t.legendContent,i=cc(e,Ud);if(!i)return null;var a,c=Ud.defaultProps,u=void 0!==c?jO(jO({},c),i.props):{};return a=i.props&&i.props.payload?i.props&&i.props.payload:"children"===o?(r||[]).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:i.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(r||[]).map((function(t){var e=t.item,r=e.type.defaultProps,n=void 0!==r?jO(jO({},r),e.props):{},o=n.dataKey,i=n.name,a=n.legendType;return{inactive:n.hide,dataKey:o,type:u.iconType||a||"square",color:RO(e),value:i||o,payload:n}})),jO(jO(jO({},u),Ud.getWithHeight(i,n)),{},{payload:a,item:i})};function MO(t){return MO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},MO(t)}function kO(t){return function(t){if(Array.isArray(t))return EO(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 EO(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 EO(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 EO(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 CO(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 TO(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?CO(Object(r),!0).forEach((function(e){DO(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):CO(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function DO(t,e,r){return e=function(t){var e=function(t,e){if("object"!=MO(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=MO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==MO(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function IO(t,e,r){return da(t)||da(e)?r:Ra(e)?sa(t,e,r):ga(e)?e(t):r}function NO(t,e,r,n){var o=ex(t,(function(t){return IO(t,e)}));if("number"===r){var i=o.filter((function(t){return Na(t)||parseFloat(t)}));return i.length?[Gw(i),Ww(i)]:[1/0,-1/0]}return(n?o.filter((function(t){return!da(t)})):o).map((function(t){return Ra(t)||t instanceof Date?t:""}))}var RO=function(t){var e,r,n=t.type.displayName,o=null!==(e=t.type)&&void 0!==e&&e.defaultProps?TO(TO({},t.type.defaultProps),t.props):t.props,i=o.stroke,a=o.fill;switch(n){case"Line":r=i;break;case"Area":case"Radar":r=i&&"none"!==i?i:a;break;default:r=a}return r},LO=function(t,e,r,n,o){var i=ac(e.props.children,OO).filter((function(t){return function(t,e,r){return!!da(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=IO(e,r);if(da(n))return t;var o=Array.isArray(n)?[Gw(n),Ww(n)]:[n,n],i=a.reduce((function(t,r){var n=IO(e,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]}),[1/0,-1/0])}return null},BO=function(t,e,r,n,o){var i=e.map((function(e){var i=e.props.dataKey;return"number"===r&&i&&LO(t,e,i,n)||NO(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}),[])},zO=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},$O=function(t,e,r){if(!t)return null;var n=t.scale,o=t.duplicateDomain,i=t.type,a=t.range,c="scaleBand"===t.realScaleType?n.bandwidth()/2:2,u=(e||r)&&"category"===i&&n.bandwidth?n.bandwidth()/c:0;return u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*Da(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=o?o.indexOf(t):t;return{coordinate:n(e)+u,value:t,offset:u}})).filter((function(t){return!Ca(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:n(t)+u,value:t,index:e,offset:u}})):n.ticks&&!r?n.ticks(t.tickCount).map((function(t){return{coordinate:n(t)+u,value:t,offset:u}})):n.domain().map((function(t,e){return{coordinate:n(t)+u,value:o?o[t]:t,index:e,offset:u}}))},HO=new WeakMap,FO=function(t,e){if("function"!=typeof e)return t;HO.has(t)||HO.set(t,new WeakMap);var r=HO.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},UO=1e-4,VO={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var o=0,i=0,a=0;a<e;++a){var c=Ca(t[a][r][1])?t[a][r][0]:t[a][r][1];c>=0?(t[a][r][0]=o,t[a][r][1]=o+c,o=t[a][r][1]):(t[a][r][0]=i,t[a][r][1]=i+c,i=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,o,i=0,a=t[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=t[r][i][1]||0;if(o)for(r=0;r<n;++r)t[r][i][1]/=o}Zu(t,e)}},none:Zu,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,o=t[e[0]],i=o.length;n<i;++n){for(var a=0,c=0;a<r;++a)c+=t[a][n][1]||0;o[n][1]+=o[n][0]=-c/2}Zu(t,e)}},wiggle:function(t,e){if((o=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var c=0,u=0,l=0;c<o;++c){for(var s=t[e[c]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,d=0;d<c;++d){var h=t[e[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}u+=f,l+=p*f}r[a-1][1]+=r[a-1][0]=i,u&&(i-=l/u)}r[a-1][1]+=r[a-1][0]=i,Zu(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=Ca(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)}}},WO=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),o=VO[r],i=function(){var t=Zc([]),e=qu,r=Zu,n=Yu;function o(o){var i,a,c=Array.from(t.apply(this,arguments),Xu),u=c.length,l=-1;for(const t of o)for(i=0,++l;i<u;++i)(c[i][l]=[0,+n(t,c[i].key,l,o)]).data=t;for(i=0,a=iu(e(c));i<u;++i)c[a[i]].index=i;return r(c,a),c}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:Zc(Array.from(e)),o):t},o.value=function(t){return arguments.length?(n="function"==typeof t?t:Zc(+t),o):n},o.order=function(t){return arguments.length?(e=null==t?qu:"function"==typeof t?t:Zc(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(r=null==t?Zu:t,o):r},o}().keys(n).value((function(t,e){return+IO(t,e,0)})).order(qu).offset(o);return i(t)};function ZO(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&&!da(o[e.dataKey])){var c=Fa(r,"value",o[e.dataKey]);if(c)return c.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var u=IO(o,da(a)?e.dataKey:a);return da(u)?null:e.scale(u)}var qO=function(t){var e=t.axis,r=t.ticks,n=t.offset,o=t.bandSize,i=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var c=IO(i,e.dataKey,e.domain[a]);return da(c)?null:e.scale(c)-o/2+n},YO=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[Gw(e.concat([t[0]]).filter(Na)),Ww(e.concat([t[1]]).filter(Na))]}),[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}))},XO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,KO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,GO=function(t,e,r){if(ga(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(Na(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(XO.test(t[0])){var o=+XO.exec(t[0])[1];n[0]=e[0]-o}else ga(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(Na(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(KO.test(t[1])){var i=+KO.exec(t[1])[1];n[1]=e[1]+i}else ga(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},JO=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=nh(e,(function(t){return t.coordinate})),i=1/0,a=1,c=o.length;a<c;a++){var u=o[a],l=o[a-1];i=Math.min((u.coordinate||0)-(l.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},QO=function(t,e,r){return t&&t.length?nx(t,sa(r,"type.defaultProps.domain"))?e:t:e},tS=function(t,e){var r=t.type.defaultProps?TO(TO({},t.type.defaultProps),t.props):t.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,c=r.tooltipType,u=r.chartType,l=r.hide;return TO(TO({},fc(t,!1)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:RO(t),value:IO(e,n),type:c,payload:e,chartType:u,hide:l})};function eS(t){return eS="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},eS(t)}function rS(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 nS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rS(Object(r),!0).forEach((function(e){oS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function oS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=eS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=eS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==eS(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var iS=Math.PI/180,aS=function(t){return 180*t/Math.PI},cS=function(t,e,r,n){return{x:t+Math.cos(-iS*n)*r,y:e+Math.sin(-iS*n)*r}},uS=function(t,e){var r=t.x,n=t.y,o=e.cx,i=e.cy,a=function(t,e){var r=t.x,n=t.y,o=e.x,i=e.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(n-i,2))}({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var c=(r-o)/a,u=Math.acos(c);return n>i&&(u=2*Math.PI-u),{radius:a,angle:aS(u),angleInRadian:u}},lS=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)},sS=function(t,e){var r=t.x,n=t.y,o=uS({x:r,y:n},e),i=o.radius,a=o.angle,c=e.innerRadius,u=e.outerRadius;if(i<c||i>u)return!1;if(0===i)return!0;var l,s=function(t){var e=t.startAngle,r=t.endAngle,n=Math.floor(e/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:e-360*i,endAngle:r-360*i}}(e),f=s.startAngle,p=s.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;l=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;l=d>=p&&d<=f}return l?nS(nS({},e),{},{radius:i,angle:lS(d,e)}):null};function fS(t){return fS="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},fS(t)}var pS=["offset"];function dS(t){return function(t){if(Array.isArray(t))return hS(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 hS(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 hS(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 hS(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 yS(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function vS(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 gS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vS(Object(r),!0).forEach((function(e){mS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=fS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=fS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==fS(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bS(){return bS=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},bS.apply(this,arguments)}var wS=function(t){var e=t.value,r=t.formatter,n=da(t.children)?e:t.children;return ga(r)?r(n):n},xS=function(t,e,r){var n,o,i=t.position,a=t.viewBox,c=t.offset,u=t.className,l=a,s=l.cx,f=l.cy,p=l.innerRadius,d=l.outerRadius,h=l.startAngle,y=l.endAngle,v=l.clockWise,g=(p+d)/2,m=function(t,e){return Da(e-t)*Math.min(Math.abs(e-t),360)}(h,y),b=m>=0?1:-1;"insideStart"===i?(n=h+b*c,o=v):"insideEnd"===i?(n=y-b*c,o=!v):"end"===i&&(n=y+b*c,o=v),o=m<=0?o:!o;var w=cS(s,f,g,n),x=cS(s,f,g,n+359*(o?1:-1)),O="M".concat(w.x,",").concat(w.y,"\n A").concat(g,",").concat(g,",0,1,").concat(o?0:1,",\n ").concat(x.x,",").concat(x.y),S=da(t.id)?Ba("recharts-radial-line-"):t.id;return st.createElement("text",bS({},r,{dominantBaseline:"central",className:Nn("recharts-radial-bar-label",u)}),st.createElement("defs",null,st.createElement("path",{id:S,d:O})),st.createElement("textPath",{xlinkHref:"#".concat(S)},e))},OS=function(t){var e=t.viewBox,r=t.offset,n=t.position,o=e,i=o.cx,a=o.cy,c=o.innerRadius,u=o.outerRadius,l=(o.startAngle+o.endAngle)/2;if("outside"===n){var s=cS(i,a,u+r,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=cS(i,a,(c+u)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},SS=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,i=e,a=i.x,c=i.y,u=i.width,l=i.height,s=l>=0?1:-1,f=s*n,p=s>0?"end":"start",d=s>0?"start":"end",h=u>=0?1:-1,y=h*n,v=h>0?"end":"start",g=h>0?"start":"end";if("top"===o)return gS(gS({},{x:a+u/2,y:c-s*n,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(c-r.y,0),width:u}:{});if("bottom"===o)return gS(gS({},{x:a+u/2,y:c+l+f,textAnchor:"middle",verticalAnchor:d}),r?{height:Math.max(r.y+r.height-(c+l),0),width:u}:{});if("left"===o){var m={x:a-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return gS(gS({},m),r?{width:Math.max(m.x-r.x,0),height:l}:{})}if("right"===o){var b={x:a+u+y,y:c+l/2,textAnchor:g,verticalAnchor:"middle"};return gS(gS({},b),r?{width:Math.max(r.x+r.width-b.x,0),height:l}:{})}var w=r?{width:u,height:l}:{};return"insideLeft"===o?gS({x:a+y,y:c+l/2,textAnchor:g,verticalAnchor:"middle"},w):"insideRight"===o?gS({x:a+u-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===o?gS({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===o?gS({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?gS({x:a+y,y:c+f,textAnchor:g,verticalAnchor:d},w):"insideTopRight"===o?gS({x:a+u-y,y:c+f,textAnchor:v,verticalAnchor:d},w):"insideBottomLeft"===o?gS({x:a+y,y:c+l-f,textAnchor:g,verticalAnchor:p},w):"insideBottomRight"===o?gS({x:a+u-y,y:c+l-f,textAnchor:v,verticalAnchor:p},w):ma(o)&&(Na(o.x)||Ia(o.x))&&(Na(o.y)||Ia(o.y))?gS({x:a+za(o.x,u),y:c+za(o.y,l),textAnchor:"end",verticalAnchor:"end"},w):gS({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)},_S=function(t){return"cx"in t&&Na(t.cx)};function jS(t){var e,r=t.offset,n=gS({offset:void 0===r?5:r},yS(t,pS)),o=n.viewBox,i=n.position,a=n.value,c=n.children,u=n.content,l=n.className,s=void 0===l?"":l,f=n.textBreakAll;if(!o||da(a)&&da(c)&&!ft(u)&&!ga(u))return null;if(ft(u))return xt(u,n);if(ga(u)){if(ft(e=Ot(u,n)))return e}else e=wS(n);var p=_S(o),d=fc(n,!0);if(p&&("insideStart"===i||"insideEnd"===i||"end"===i))return xS(n,e,d);var h=p?OS(n):SS(n);return st.createElement(Ky,bS({className:Nn("recharts-label",s)},d,h,{breakAll:f}),e)}jS.displayName="Label";var PS,AS,MS=function(t){var e=t.cx,r=t.cy,n=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,d=t.left,h=t.width,y=t.height,v=t.clockWise,g=t.labelViewBox;if(g)return g;if(Na(h)&&Na(y)){if(Na(s)&&Na(f))return{x:s,y:f,width:h,height:y};if(Na(p)&&Na(d))return{x:p,y:d,width:h,height:y}}return Na(s)&&Na(f)?{x:s,y:f,width:0,height:0}:Na(e)&&Na(r)?{cx:e,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};jS.parseViewBox=MS,jS.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=MS(t),i=ac(n,jS).map((function(t,r){return xt(t,{viewBox:e||o,key:"label-".concat(r)})}));if(!r)return i;var a=function(t,e){return t?!0===t?st.createElement(jS,{key:"label-implicit",viewBox:e}):Ra(t)?st.createElement(jS,{key:"label-implicit",viewBox:e,value:t}):ft(t)?t.type===jS?xt(t,{key:"label-implicit",viewBox:e}):st.createElement(jS,{key:"label-implicit",content:t,viewBox:e}):ga(t)?st.createElement(jS,{key:"label-implicit",content:t,viewBox:e}):ma(t)?st.createElement(jS,bS({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||o);return[a].concat(dS(i))};var kS=(AS||(AS=1,PS=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}),PS),ES=dr(kS);function CS(t){return CS="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},CS(t)}var TS=["valueAccessor"],DS=["data","dataKey","clockWise","id","textBreakAll"];function IS(t){return function(t){if(Array.isArray(t))return NS(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 NS(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 NS(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 NS(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 RS(){return RS=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},RS.apply(this,arguments)}function LS(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 BS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?LS(Object(r),!0).forEach((function(e){zS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):LS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=CS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=CS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==CS(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $S(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var HS=function(t){return Array.isArray(t.value)?ES(t.value):t.value};function FS(t){var e=t.valueAccessor,r=void 0===e?HS:e,n=$S(t,TS),o=n.data,i=n.dataKey,a=n.clockWise,c=n.id,u=n.textBreakAll,l=$S(n,DS);return o&&o.length?st.createElement(Bc,{className:"recharts-label-list"},o.map((function(t,e){var n=da(i)?r(t,e):IO(t&&t.payload,i),o=da(c)?{}:{id:"".concat(c,"-").concat(e)};return st.createElement(jS,RS({},fc(t,!0),l,o,{parentViewBox:t.parentViewBox,value:n,textBreakAll:u,viewBox:jS.parseViewBox(da(a)?t:BS(BS({},t),{},{clockWise:a})),key:"label-".concat(e),index:e}))}))):null}function US(t){return US="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},US(t)}function VS(){return VS=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},VS.apply(this,arguments)}function WS(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 ZS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?WS(Object(r),!0).forEach((function(e){qS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):WS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=US(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=US(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==US(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}FS.displayName="LabelList",FS.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=ac(t.children,FS).map((function(t,r){return xt(t,{data:e,key:"labelList-".concat(r)})}));return r?[function(t,e){return t?!0===t?st.createElement(FS,{key:"labelList-implicit",data:e}):st.isValidElement(t)||ga(t)?st.createElement(FS,{key:"labelList-implicit",data:e,content:t}):ma(t)?st.createElement(FS,RS({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(IS(n)):n};var YS=function(t){var e=t.cx,r=t.cy,n=t.radius,o=t.angle,i=t.sign,a=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(a?1:-1)+n,s=Math.asin(c/l)/iS,f=u?o:o+i*s,p=u?o-i*s:o;return{center:cS(e,r,l,f),circleTangency:cS(e,r,n,f),lineTangency:cS(e,r,l*Math.cos(s*iS),p),theta:s}},XS=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.startAngle,a=function(t,e){return Da(e-t)*Math.min(Math.abs(e-t),359.999)}(i,t.endAngle),c=i+a,u=cS(e,r,o,i),l=cS(e,r,o,c),s="M ".concat(u.x,",").concat(u.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>c),",\n ").concat(l.x,",").concat(l.y,"\n ");if(n>0){var f=cS(e,r,n,i),p=cS(e,r,n,c);s+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},KS={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},GS=function(t){var e=ZS(ZS({},KS),t),r=e.cx,n=e.cy,o=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,c=e.forceCornerRadius,u=e.cornerIsExternal,l=e.startAngle,s=e.endAngle,f=e.className;if(i<o||l===s)return null;var p,d=Nn("recharts-sector",f),h=i-o,y=za(a,h,0,!0);return p=y>0&&Math.abs(l-s)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,s=Da(l-u),f=YS({cx:e,cy:r,radius:o,angle:u,sign:s,cornerRadius:i,cornerIsExternal:c}),p=f.circleTangency,d=f.lineTangency,h=f.theta,y=YS({cx:e,cy:r,radius:o,angle:l,sign:-s,cornerRadius:i,cornerIsExternal:c}),v=y.circleTangency,g=y.lineTangency,m=y.theta,b=c?Math.abs(u-l):Math.abs(u-l)-h-m;if(b<0)return a?"M ".concat(d.x,",").concat(d.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 "):XS({cx:e,cy:r,innerRadius:n,outerRadius:o,startAngle:u,endAngle:l});var w="M ".concat(d.x,",").concat(d.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(g.x,",").concat(g.y,"\n ");if(n>0){var x=YS({cx:e,cy:r,radius:n,angle:u,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),O=x.circleTangency,S=x.lineTangency,_=x.theta,j=YS({cx:e,cy:r,radius:n,angle:l,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),P=j.circleTangency,A=j.lineTangency,M=j.theta,k=c?Math.abs(u-l):Math.abs(u-l)-_-M;if(k<0&&0===i)return"".concat(w,"L").concat(e,",").concat(r,"Z");w+="L".concat(A.x,",").concat(A.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(P.x,",").concat(P.y,"\n A").concat(n,",").concat(n,",0,").concat(+(k>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(e,",").concat(r,"Z");return w}({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(y,h/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:l,endAngle:s}):XS({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:l,endAngle:s}),st.createElement("path",VS({},fc(e,!0),{className:d,d:p,role:"img"}))};function JS(t){return JS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},JS(t)}function QS(){return QS=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},QS.apply(this,arguments)}function t_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function e_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?t_(Object(r),!0).forEach((function(e){r_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):t_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function r_(t,e,r){return e=function(t){var e=function(t,e){if("object"!=JS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=JS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==JS(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var n_,o_={curveBasisClosed:function(t){return new Du(t)},curveBasisOpen:function(t){return new Iu(t)},curveBasis:function(t){return new Tu(t)},curveBumpX:function(t){return new pu(t,!0)},curveBumpY:function(t){return new pu(t,!1)},curveLinearClosed:function(t){return new Nu(t)},curveLinear:cu,curveMonotoneX:function(t){return new $u(t)},curveMonotoneY:function(t){return new Hu(t)},curveNatural:function(t){return new Uu(t)},curveStep:function(t){return new Wu(t,.5)},curveStepAfter:function(t){return new Wu(t,1)},curveStepBefore:function(t){return new Wu(t,0)}},i_=function(t){return t.x===+t.x&&t.y===+t.y},a_=function(t){return t.x},c_=function(t){return t.y},u_=function(t){var e,r=t.type,n=void 0===r?"linear":r,o=t.points,i=void 0===o?[]:o,a=t.baseLine,c=t.layout,u=t.connectNulls,l=void 0!==u&&u,s=function(t,e){if(ga(t))return t;var r="curve".concat(Wc(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?o_[r]||cu:o_["".concat(r).concat("vertical"===e?"Y":"X")]}(n,c),f=l?i.filter((function(t){return i_(t)})):i;if(Array.isArray(a)){var p=l?a.filter((function(t){return i_(t)})):a,d=f.map((function(t,e){return e_(e_({},t),{},{base:p[e]})}));return(e="vertical"===c?fu().y(c_).x1(a_).x0((function(t){return t.base.x})):fu().x(a_).y1(c_).y0((function(t){return t.base.y}))).defined(i_).curve(s),e(d)}return(e="vertical"===c&&Na(a)?fu().y(c_).x1(a_).x0(a):Na(a)?fu().x(a_).y1(c_).y0(a):su().x(a_).y(c_)).defined(i_).curve(s),e(f)},l_=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?u_(t):n;return st.createElement("path",QS({},fc(t,!1),Xa(t),{className:Nn("recharts-curve",e),d:i,ref:o}))},s_={exports:{}},f_={exports:{}},p_={};var d_,h_,y_,v_,g_,m_,b_,w_,x_,O_,S_,__,j_,P_,A_,M_={};
19
19
  /** @license React v16.13.1
20
20
  * react-is.development.js
21
21
  *
@@ -23,15 +23,15 @@ var Ar={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,patte
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */function A_(){return p_||(p_=1,"production"===process.env.NODE_ENV?l_.exports=function(){if(e_)return s_;e_=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,m=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:switch(t=t.type){case u:case l:case n:case i:case o:case f:return t;default:switch(t=t&&t.$$typeof){case c:case s:case h:case d:case a:return t;default:return p}}case r:return p}}}function w(t){return b(t)===l}return s_.AsyncMode=u,s_.ConcurrentMode=l,s_.ContextConsumer=c,s_.ContextProvider=a,s_.Element=e,s_.ForwardRef=s,s_.Fragment=n,s_.Lazy=h,s_.Memo=d,s_.Portal=r,s_.Profiler=i,s_.StrictMode=o,s_.Suspense=f,s_.isAsyncMode=function(t){return w(t)||b(t)===u},s_.isConcurrentMode=w,s_.isContextConsumer=function(t){return b(t)===c},s_.isContextProvider=function(t){return b(t)===a},s_.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},s_.isForwardRef=function(t){return b(t)===s},s_.isFragment=function(t){return b(t)===n},s_.isLazy=function(t){return b(t)===h},s_.isMemo=function(t){return b(t)===d},s_.isPortal=function(t){return b(t)===r},s_.isProfiler=function(t){return b(t)===i},s_.isStrictMode=function(t){return b(t)===o},s_.isSuspense=function(t){return b(t)===f},s_.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===d||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===g||t.$$typeof===m||t.$$typeof===y)},s_.typeOf=b,s_}():l_.exports=(f_||(f_=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,m=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:var y=t.type;switch(y){case u:case l:case n:case i:case o:case f:return y;default:var v=y&&y.$$typeof;switch(v){case c:case s:case h:case d:case a:return v;default:return p}}case r:return p}}}var w=u,x=l,O=c,S=a,_=e,j=s,P=n,A=h,M=d,k=r,E=i,C=o,T=f,D=!1;function I(t){return b(t)===l}P_.AsyncMode=w,P_.ConcurrentMode=x,P_.ContextConsumer=O,P_.ContextProvider=S,P_.Element=_,P_.ForwardRef=j,P_.Fragment=P,P_.Lazy=A,P_.Memo=M,P_.Portal=k,P_.Profiler=E,P_.StrictMode=C,P_.Suspense=T,P_.isAsyncMode=function(t){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(t)||b(t)===u},P_.isConcurrentMode=I,P_.isContextConsumer=function(t){return b(t)===c},P_.isContextProvider=function(t){return b(t)===a},P_.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},P_.isForwardRef=function(t){return b(t)===s},P_.isFragment=function(t){return b(t)===n},P_.isLazy=function(t){return b(t)===h},P_.isMemo=function(t){return b(t)===d},P_.isPortal=function(t){return b(t)===r},P_.isProfiler=function(t){return b(t)===i},P_.isStrictMode=function(t){return b(t)===o},P_.isSuspense=function(t){return b(t)===f},P_.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===d||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===g||t.$$typeof===m||t.$$typeof===y)},P_.typeOf=b}()),P_)),l_.exports}
26
+ */function k_(){return h_||(h_=1,"production"===process.env.NODE_ENV?f_.exports=function(){if(n_)return p_;n_=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,m=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:switch(t=t.type){case u:case l:case n:case i:case o:case f:return t;default:switch(t=t&&t.$$typeof){case c:case s:case h:case d:case a:return t;default:return p}}case r:return p}}}function w(t){return b(t)===l}return p_.AsyncMode=u,p_.ConcurrentMode=l,p_.ContextConsumer=c,p_.ContextProvider=a,p_.Element=e,p_.ForwardRef=s,p_.Fragment=n,p_.Lazy=h,p_.Memo=d,p_.Portal=r,p_.Profiler=i,p_.StrictMode=o,p_.Suspense=f,p_.isAsyncMode=function(t){return w(t)||b(t)===u},p_.isConcurrentMode=w,p_.isContextConsumer=function(t){return b(t)===c},p_.isContextProvider=function(t){return b(t)===a},p_.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},p_.isForwardRef=function(t){return b(t)===s},p_.isFragment=function(t){return b(t)===n},p_.isLazy=function(t){return b(t)===h},p_.isMemo=function(t){return b(t)===d},p_.isPortal=function(t){return b(t)===r},p_.isProfiler=function(t){return b(t)===i},p_.isStrictMode=function(t){return b(t)===o},p_.isSuspense=function(t){return b(t)===f},p_.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===d||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===g||t.$$typeof===m||t.$$typeof===y)},p_.typeOf=b,p_}():f_.exports=(d_||(d_=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,m=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:var y=t.type;switch(y){case u:case l:case n:case i:case o:case f:return y;default:var v=y&&y.$$typeof;switch(v){case c:case s:case h:case d:case a:return v;default:return p}}case r:return p}}}var w=u,x=l,O=c,S=a,_=e,j=s,P=n,A=h,M=d,k=r,E=i,C=o,T=f,D=!1;function I(t){return b(t)===l}M_.AsyncMode=w,M_.ConcurrentMode=x,M_.ContextConsumer=O,M_.ContextProvider=S,M_.Element=_,M_.ForwardRef=j,M_.Fragment=P,M_.Lazy=A,M_.Memo=M,M_.Portal=k,M_.Profiler=E,M_.StrictMode=C,M_.Suspense=T,M_.isAsyncMode=function(t){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(t)||b(t)===u},M_.isConcurrentMode=I,M_.isContextConsumer=function(t){return b(t)===c},M_.isContextProvider=function(t){return b(t)===a},M_.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},M_.isForwardRef=function(t){return b(t)===s},M_.isFragment=function(t){return b(t)===n},M_.isLazy=function(t){return b(t)===h},M_.isMemo=function(t){return b(t)===d},M_.isPortal=function(t){return b(t)===r},M_.isProfiler=function(t){return b(t)===i},M_.isStrictMode=function(t){return b(t)===o},M_.isSuspense=function(t){return b(t)===f},M_.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===d||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===g||t.$$typeof===m||t.$$typeof===y)},M_.typeOf=b}()),M_)),f_.exports}
27
27
  /*
28
28
  object-assign
29
29
  (c) Sindre Sorhus
30
30
  @license MIT
31
- */function M_(){if(h_)return d_;h_=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return d_=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(n,o){for(var i,a,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(n),u=1;u<arguments.length;u++){for(var l in i=Object(arguments[u]))e.call(i,l)&&(c[l]=i[l]);if(t){a=t(i);for(var s=0;s<a.length;s++)r.call(i,a[s])&&(c[a[s]]=i[a[s]])}}return c},d_}function k_(){if(v_)return y_;v_=1;return y_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function E_(){return m_?g_:(m_=1,g_=Function.call.bind(Object.prototype.hasOwnProperty))}function C_(){if(w_)return b_;w_=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=k_(),r={},n=E_();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function o(o,i,a,c,u){if("production"!==process.env.NODE_ENV)for(var l in o)if(n(o,l)){var s;try{if("function"!=typeof o[l]){var f=Error((c||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=o[l](i,l,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in r)){r[s.message]=!0;var p=u?u():"";t("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},b_=o}function T_(){if(O_)return x_;O_=1;var t=A_(),e=M_(),r=k_(),n=E_(),o=C_(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),x_=function(c,u){var l="function"==typeof Symbol&&Symbol.iterator,s="@@iterator";var f="<<anonymous>>",p={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:y(a),arrayOf:function(t){return y((function(e,n,o,i,a){if("function"!=typeof t)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new h("Invalid "+i+" `"+a+"` of type `"+b(c)+"` supplied to `"+o+"`, expected an array.");for(var u=0;u<c.length;u++){var l=t(c,u,o,i,a+"["+u+"]",r);if(l instanceof Error)return l}return null}))},element:y((function(t,e,r,n,o){var i=t[e];return c(i)?null:new h("Invalid "+n+" `"+o+"` of type `"+b(i)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:y((function(e,r,n,o,i){var a=e[r];return t.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return y((function(e,r,n,o,i){if(!(e[r]instanceof t)){var a=t.name||f;return new h("Invalid "+o+" `"+i+"` of type `"+(((c=e[r]).constructor&&c.constructor.name?c.constructor.name:f)+"` supplied to `")+n+"`, expected instance of `"+a+"`.")}var c;return null}))},node:y((function(t,e,r,n,o){return m(t[e])?null:new h("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return y((function(e,o,i,a,c){if("function"!=typeof t)return new h("Property `"+c+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var u=e[o],l=b(u);if("object"!==l)return new h("Invalid "+a+" `"+c+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var s in u)if(n(u,s)){var f=t(u,s,i,a,c+"."+s,r);if(f instanceof Error)return f}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return y((function(e,r,n,o,i){for(var a=e[r],c=0;c<t.length;c++)if(d(a,t[c]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===w(e)?String(e):e}));return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+u+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var o=t[e];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+e+"."),a}return y((function(e,o,i,a,c){for(var u=[],l=0;l<t.length;l++){var s=(0,t[l])(e,o,i,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&u.push(s.data.expectedType)}return new h("Invalid "+a+" `"+c+"` supplied to `"+i+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(t){return y((function(e,n,o,i,a){var c=e[n],u=b(c);if("object"!==u)return new h("Invalid "+i+" `"+a+"` of type `"+u+"` supplied to `"+o+"`, expected `object`.");for(var l in t){var s=t[l];if("function"!=typeof s)return g(o,i,a,l,w(s));var f=s(c,l,o,i,a+"."+l,r);if(f)return f}return null}))},exact:function(t){return y((function(o,i,a,c,u){var l=o[i],s=b(l);if("object"!==s)return new h("Invalid "+c+" `"+u+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},o[i],t);for(var p in f){var d=t[p];if(n(t,p)&&"function"!=typeof d)return g(a,c,u,p,w(d));if(!d)return new h("Invalid "+c+" `"+u+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var y=d(l,p,a,c,u+"."+p,r);if(y)return y}return null}))}};function d(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function y(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function o(o,a,c,l,s,p,d){if(l=l||f,p=p||c,d!==r){if(u){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+c;!e[v]&&n<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[v]=!0,n++)}}return null==a[c]?o?null===a[c]?new h("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `null`."):new h("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,c,l,s,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function v(t){return y((function(e,r,n,o,i,a){var c=e[r];return b(c)!==t?new h("Invalid "+o+" `"+i+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,r,n,o){return new h((t||"React class")+": "+e+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function m(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(m);if(null===t||c(t))return!0;var e=function(t){var e=t&&(l&&t[l]||t[s]);if("function"==typeof e)return e}(t);if(!e)return!1;var r,n=e.call(t);if(e!==t.entries){for(;!(r=n.next()).done;)if(!m(r.value))return!1}else for(;!(r=n.next()).done;){var o=r.value;if(o&&!m(o[1]))return!1}return!0;default:return!1}}function b(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function w(t){if(null==t)return""+t;var e=b(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function x(t){var e=w(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return h.prototype=Error.prototype,p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},x_}function D_(){if(__)return S_;__=1;var t=k_();function e(){}function r(){}return r.resetWarningCache=e,S_=function(){function n(e,r,n,o,i,a){if(a!==t){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function o(){return n}n.isRequired=n;var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:e};return i.PropTypes=i,i}}function I_(){if(j_)return u_.exports;if(j_=1,"production"!==process.env.NODE_ENV){var t=A_();u_.exports=T_()(t.isElement,true)}else u_.exports=D_()();return u_.exports}var N_=dr(I_()),R_=Object.getOwnPropertyNames,L_=Object.getOwnPropertySymbols,B_=Object.prototype.hasOwnProperty;function z_(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function $_(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var o=n.cache,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);var c=t(e,r,n);return o.delete(e),o.delete(r),c}}function H_(t){return R_(t).concat(L_(t))}var F_=Object.hasOwn||function(t,e){return B_.call(t,e)};function U_(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var V_="_owner",W_=Object.getOwnPropertyDescriptor,Z_=Object.keys;function q_(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 Y_(t,e){return U_(t.getTime(),e.getTime())}function X_(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var u=e.entries(),l=!1,s=0;(o=u.next())&&!o.done;){var f=n.value,p=f[0],d=f[1],h=o.value,y=h[0],v=h[1];l||i[s]||!(l=r.equals(p,y,c,s,t,e,r)&&r.equals(d,v,p,y,t,e,r))||(i[s]=!0),s++}if(!l)return!1;c++}return!0}function K_(t,e,r){var n,o=Z_(t),i=o.length;if(Z_(e).length!==i)return!1;for(;i-- >0;){if((n=o[i])===V_&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!F_(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function G_(t,e,r){var n,o,i,a=H_(t),c=a.length;if(H_(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===V_&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!F_(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(o=W_(t,n),i=W_(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function J_(t,e){return U_(t.valueOf(),e.valueOf())}function Q_(t,e){return t.source===e.source&&t.flags===e.flags}function tj(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),u=!1,l=0;(o=c.next())&&!o.done;)u||i[l]||!(u=r.equals(n.value,o.value,n.value,o.value,t,e,r))||(i[l]=!0),l++;if(!u)return!1}return!0}function ej(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 rj="[object Arguments]",nj="[object Boolean]",oj="[object Date]",ij="[object Map]",aj="[object Number]",cj="[object Object]",uj="[object RegExp]",lj="[object Set]",sj="[object String]",fj=Array.isArray,pj="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,dj=Object.assign,hj=Object.prototype.toString.call.bind(Object.prototype.toString);var yj=vj();function vj(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,o=t.createInternalComparator,i=t.createState,a=t.strict,c=void 0!==a&&a,u=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,o={areArraysEqual:n?G_:q_,areDatesEqual:Y_,areMapsEqual:n?z_(X_,G_):X_,areObjectsEqual:n?G_:K_,arePrimitiveWrappersEqual:J_,areRegExpsEqual:Q_,areSetsEqual:n?z_(tj,G_):tj,areTypedArraysEqual:n?G_:ej};if(r&&(o=dj({},o,r(o))),e){var i=$_(o.areArraysEqual),a=$_(o.areMapsEqual),c=$_(o.areObjectsEqual),u=$_(o.areSetsEqual);o=dj({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return o}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,o=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,l,s){if(t===l)return!0;if(null==t||null==l||"object"!=typeof t||"object"!=typeof l)return t!=t&&l!=l;var f=t.constructor;if(f!==l.constructor)return!1;if(f===Object)return o(t,l,s);if(fj(t))return e(t,l,s);if(null!=pj&&pj(t))return u(t,l,s);if(f===Date)return r(t,l,s);if(f===RegExp)return a(t,l,s);if(f===Map)return n(t,l,s);if(f===Set)return c(t,l,s);var p=hj(t);return p===oj?r(t,l,s):p===uj?a(t,l,s):p===ij?n(t,l,s):p===lj?c(t,l,s):p===cj?"function"!=typeof t.then&&"function"!=typeof l.then&&o(t,l,s):p===rj?o(t,l,s):(p===nj||p===aj||p===sj)&&i(t,l,s)}}(u),s=o?o(l):(e=l,function(t,r,n,o,i,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,o=t.equals,i=t.strict;if(n)return function(t,a){var c=n(),u=c.cache,l=void 0===u?e?new WeakMap:void 0:u,s=c.meta;return r(t,a,{cache:l,equals:o,meta:s,strict:i})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return r(t,e,a)}}({circular:n,comparator:l,createState:i,equals:s,strict:c})}function gj(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(o){r<0&&(r=o),o-r>e?(t(o),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function mj(t){return mj="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},mj(t)}function bj(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 wj(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 wj(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 wj(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 xj(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var o=bj(n),i=o[0],a=o.slice(1);return"number"==typeof i?void gj(r.bind(null,a),i):(r(i),void gj(r.bind(null,a)))}"object"===mj(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 Oj(t){return Oj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oj(t)}function Sj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _j(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Sj(Object(r),!0).forEach((function(e){jj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Oj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Oj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Oj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}vj({strict:!0}),vj({circular:!0}),vj({circular:!0,strict:!0}),vj({createInternalComparator:function(){return U_}}),vj({strict:!0,createInternalComparator:function(){return U_}}),vj({circular:!0,createInternalComparator:function(){return U_}}),vj({circular:!0,createInternalComparator:function(){return U_},strict:!0});var Pj=function(t){return t},Aj=function(t,e){return Object.keys(e).reduce((function(r,n){return _j(_j({},r),{},jj({},n,t(n,e[n])))}),{})},Mj=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(",")},kj="production"!==process.env.NODE_ENV,Ej=function(t,e,r,n,o,i,a,c){if(kj&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,i,a,c],l=0;console.warn(e.replace(/%s/g,(function(){return u[l++]})))}};function Cj(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||Dj(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 Tj(t){return function(t){if(Array.isArray(t))return Ij(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Dj(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 Dj(t,e){if(t){if("string"==typeof t)return Ij(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)?Ij(t,e):void 0}}function Ij(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 Nj=1e-4,Rj=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Lj=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},Bj=function(t,e){return function(r){var n=Rj(t,e);return Lj(n,r)}},zj=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,o=0,i=1,a=1;break;case"ease":n=.25,o=.1,i=.25,a=1;break;case"ease-in":n=.42,o=0,i=1,a=1;break;case"ease-out":n=.42,o=0,i=.58,a=1;break;case"ease-in-out":n=0,o=0,i=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),l=Cj(u,4);n=l[0],o=l[1],i=l[2],a=l[3]}else Ej(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",e)}Ej([n,i,o,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",e);var s,f,p=Bj(n,i),d=Bj(o,a),h=(s=n,f=i,function(t){var e=Rj(s,f),r=[].concat(Tj(e.map((function(t,e){return t*e})).slice(1)),[0]);return Lj(r,t)}),y=function(t){for(var e,r=t>1?1:t,n=r,o=0;o<8;++o){var i=p(n)-r,a=h(n);if(Math.abs(i-r)<Nj||a<Nj)return d(n);n=(e=n-i/a)>1?1:e<0?0:e}return d(n)};return y.isStepper=!1,y},$j=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 zj(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,o=void 0===n?8:n,i=t.dt,a=void 0===i?17:i,c=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<Nj&&Math.abs(i)<Nj?[e,0]:[c,i]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return zj(n);Ej(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",e)}return"function"==typeof n?n:(Ej(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function Hj(t){return Hj="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},Hj(t)}function Fj(t){return function(t){if(Array.isArray(t))return Yj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||qj(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 Uj(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 Vj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Uj(Object(r),!0).forEach((function(e){Wj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Wj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Hj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Hj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Hj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zj(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||qj(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 qj(t,e){if(t){if("string"==typeof t)return Yj(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)?Yj(t,e):void 0}}function Yj(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 Xj=function(t,e,r){return t+(e-t)*r},Kj=function(t){return t.from!==t.to},Gj=function t(e,r,n){var o=Aj((function(t,r){if(Kj(r)){var n=Zj(e(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return Vj(Vj({},r),{},{from:o,velocity:i})}return r}),r);return n<1?Aj((function(t,e){return Kj(e)?Vj(Vj({},e),{},{velocity:Xj(e.velocity,o[t].velocity,n),from:Xj(e.from,o[t].from,n)}):e}),r):t(e,o,n-1)},Jj=function(t,e,r,n,o){var i,a,c,u,l=(i=t,a=e,[Object.keys(i),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=l.reduce((function(r,n){return Vj(Vj({},r),{},Wj({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return Vj(Vj({},r),{},Wj({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,d=function(){return null};return d=r.isStepper?function(n){c||(c=n);var i=(n-c)/r.dt;f=Gj(r,f,i),o(Vj(Vj(Vj({},t),e),Aj((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(Kj).length&&(p=requestAnimationFrame(d))}:function(i){u||(u=i);var a=(i-u)/n,c=Aj((function(t,e){return Xj.apply(void 0,Fj(e).concat([r(a)]))}),s);if(o(Vj(Vj(Vj({},t),e),c)),a<1)p=requestAnimationFrame(d);else{var l=Aj((function(t,e){return Xj.apply(void 0,Fj(e).concat([r(1)]))}),s);o(Vj(Vj(Vj({},t),e),l))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(p)}}};function Qj(t){return Qj="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},Qj(t)}var tP=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function eP(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 rP(t){return function(t){if(Array.isArray(t))return nP(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 nP(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 nP(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 nP(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 oP(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 iP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?oP(Object(r),!0).forEach((function(e){aP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function aP(t,e,r){return(e=uP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cP(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,uP(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function uP(t){var e=function(t,e){if("object"!==Qj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Qj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Qj(e)?e:String(e)}function lP(t,e){return lP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},lP(t,e)}function sP(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=dP(t);if(e){var o=dP(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return fP(this,r)}}function fP(t,e){if(e&&("object"===Qj(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return pP(t)}function pP(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dP(t){return dP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},dP(t)}var hP=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&&lP(t,e)}(r,dt);var e=sP(r);function r(t,n){var o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var i=(o=e.call(this,t,n)).props,a=i.isActive,c=i.attributeName,u=i.from,l=i.to,s=i.steps,f=i.children,p=i.duration;if(o.handleStyleChange=o.handleStyleChange.bind(pP(o)),o.changeStyle=o.changeStyle.bind(pP(o)),!a||p<=0)return o.state={style:{}},"function"==typeof f&&(o.state={style:l}),fP(o);if(s&&s.length)o.state={style:s[0].style};else if(u){if("function"==typeof f)return o.state={style:u},fP(o);o.state={style:c?aP({},c,u):u}}else o.state={style:{}};return o}return cP(r,[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,o=e.attributeName,i=e.shouldReAnimate,a=e.to,c=e.from,u=this.state.style;if(n)if(r){if(!(yj(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||i?c:t.to;if(this.state&&u){var f={style:o?aP({},o,s):s};(o&&u[o]!==s||!o&&u!==s)&&this.setState(f)}this.runAnimation(iP(iP({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?aP({},o,a):a};this.state&&u&&(o&&u[o]!==a||!o&&u!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,o=t.duration,i=t.easing,a=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,l=Jj(r,n,$j(i),o,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},o,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,o=t.onAnimationStart,i=r[0],a=i.style,c=i.duration,u=void 0===c?0:c;return this.manager.start([o].concat(rP(r.reduce((function(t,n,o){if(0===o)return t;var i=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,l=n.properties,s=n.onAnimationEnd,f=o>0?r[o-1]:n,p=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(rP(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:i,easing:c}),i]);var d=Mj(p,i,c),h=iP(iP(iP({},f.style),u),{},{transition:d});return[].concat(rP(t),[h,i,s]).filter(Pj)}),[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=xj());var e=t.begin,r=t.duration,n=t.attributeName,o=t.to,i=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof l&&"spring"!==i)if(u.length>1)this.runStepAnimation(t);else{var f=n?aP({},n,o):o,p=Mj(Object.keys(f),r,i);s.start([a,e,iP(iP({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children;t.begin;var r=t.duration;t.attributeName,t.easing;var n=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var o=eP(t,tP),i=pt.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===i||r<=0)return e;var c=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,i=e.className;return xt(t,iP(iP({},o),{},{style:iP(iP({},n),a),className:i}))};return 1===i?c(pt.only(e)):st.createElement("div",null,pt.map(e,(function(t){return c(t)})))}}]),r}();function yP(t){return yP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yP(t)}function vP(){return vP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},vP.apply(this,arguments)}function gP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return mP(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 mP(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 mP(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 bP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function wP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bP(Object(r),!0).forEach((function(e){xP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=yP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=yP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==yP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}hP.displayName="Animate",hP.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},hP.propTypes={from:N_.oneOfType([N_.object,N_.string]),to:N_.oneOfType([N_.object,N_.string]),attributeName:N_.string,duration:N_.number,begin:N_.number,easing:N_.oneOfType([N_.string,N_.func]),steps:N_.arrayOf(N_.shape({duration:N_.number.isRequired,style:N_.object.isRequired,easing:N_.oneOfType([N_.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),N_.func]),properties:N_.arrayOf("string"),onAnimationEnd:N_.func})),children:N_.oneOfType([N_.node,N_.func]),isActive:N_.bool,canBegin:N_.bool,onAnimationEnd:N_.func,shouldReAnimate:N_.bool,onAnimationStart:N_.func,onAnimationReStart:N_.func};var OP=function(t,e,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+u*s[0],",").concat(e)),i+="L ".concat(t+r-u*s[1],",").concat(e),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+c*s[1])),i+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-u*s[2],",").concat(e+n)),i+="L ".concat(t+u*s[3],",").concat(e+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-c*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+u*p,",").concat(e,"\n L ").concat(t+r-u*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+c*p,"\n L ").concat(t+r,",").concat(e+n-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-u*p,",").concat(e+n,"\n L ").concat(t+u*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-c*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},SP=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,o=e.x,i=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(o,o+a),l=Math.max(o,o+a),s=Math.min(i,i+c),f=Math.max(i,i+c);return r>=u&&r<=l&&n>=s&&n<=f}return!1},_P={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},jP=function(t){var e=wP(wP({},_P),t),r=yt(),n=gP(gt(-1),2),o=n[0],i=n[1];bt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&i(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.width,l=e.height,s=e.radius,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,y=e.isAnimationActive,v=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||0===u||0===l)return null;var g=Dn("recharts-rectangle",f);return v?st.createElement(hP,{canBegin:o>0,from:{width:u,height:l,x:a,y:c},to:{width:u,height:l,x:a,y:c},duration:d,animationEasing:p,isActive:v},(function(t){var n=t.width,i=t.height,a=t.x,c=t.y;return st.createElement(hP,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,isActive:y,easing:p},st.createElement("path",vP({},lc(e,!0),{className:g,d:OP(a,c,n,i,s),ref:r})))})):st.createElement("path",vP({},lc(e,!0),{className:g,d:OP(a,c,u,l,s)}))};function PP(){return PP=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},PP.apply(this,arguments)}var AP=function(t){var e=t.cx,r=t.cy,n=t.r,o=Dn("recharts-dot",t.className);return e===+e&&r===+r&&n===+n?st.createElement("circle",PP({},lc(t,!1),qa(t),{className:o,cx:e,cy:r,r:n})):null};function MP(t){return MP="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},MP(t)}var kP=["x","y","top","left","width","height","className"];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 CP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function TP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=MP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=MP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==MP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function DP(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var IP,NP,RP,LP,BP=function(t,e,r,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(e,"h").concat(r)},zP=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,o=void 0===n?0:n,i=t.top,a=void 0===i?0:i,c=t.left,u=void 0===c?0:c,l=t.width,s=void 0===l?0:l,f=t.height,p=void 0===f?0:f,d=t.className,h=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?CP(Object(r),!0).forEach((function(e){TP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):CP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:o,top:a,left:u,width:s,height:p},DP(t,kP));return Da(r)&&Da(o)&&Da(s)&&Da(p)&&Da(a)&&Da(u)?st.createElement("path",EP({},lc(h,!0),{className:Dn("recharts-cross",d),d:BP(r,o,s,p,a,u)})):null};var $P,HP,FP=function(){if(LP)return RP;LP=1;var t=Ni(),e=function(){if(NP)return IP;NP=1;var t=yp()(Object.getPrototypeOf,Object);return IP=t}(),r=Ri(),n=Function.prototype,o=Object.prototype,i=n.toString,a=o.hasOwnProperty,c=i.call(Object);return RP=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var o=e(n);if(null===o)return!0;var u=a.call(o,"constructor")&&o.constructor;return"function"==typeof u&&u instanceof u&&i.call(u)==c}}(),UP=dr(FP);var VP=dr(function(){if(HP)return $P;HP=1;var t=Ni(),e=Ri();return $P=function(r){return!0===r||!1===r||e(r)&&"[object Boolean]"==t(r)}}());function WP(t){return WP="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},WP(t)}function ZP(){return ZP=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},ZP.apply(this,arguments)}function qP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return YP(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 YP(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 YP(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 XP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function KP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?XP(Object(r),!0).forEach((function(e){GP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):XP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function GP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=WP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=WP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==WP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var JP,QP,tA,eA,rA,nA,oA,iA,aA=function(t,e,r,n,o){var i,a=r-n;return i="M ".concat(t,",").concat(e),i+="L ".concat(t+r,",").concat(e),i+="L ".concat(t+r-a/2,",").concat(e+o),i+="L ".concat(t+r-a/2-n,",").concat(e+o),i+="L ".concat(t,",").concat(e," Z")},cA={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},uA=function(t){var e=KP(KP({},cA),t),r=yt(),n=qP(gt(-1),2),o=n[0],i=n[1];bt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&i(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.upperWidth,l=e.lowerWidth,s=e.height,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,y=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||s!==+s||0===u&&0===l||0===s)return null;var v=Dn("recharts-trapezoid",f);return y?st.createElement(hP,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:u,lowerWidth:l,height:s,x:a,y:c},duration:d,animationEasing:p,isActive:y},(function(t){var n=t.upperWidth,i=t.lowerWidth,a=t.height,c=t.x,u=t.y;return st.createElement(hP,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,easing:p},st.createElement("path",ZP({},lc(e,!0),{className:v,d:aA(c,u,n,i,a),ref:r})))})):st.createElement("g",null,st.createElement("path",ZP({},lc(e,!0),{className:v,d:aA(a,c,u,l,s)})))},lA=["option","shapeType","propTransformer","activeClassName","isActive"];function sA(t){return sA="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},sA(t)}function fA(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function pA(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 dA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pA(Object(r),!0).forEach((function(e){hA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=sA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=sA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==sA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yA(t,e){return dA(dA({},e),t)}function vA(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return st.createElement(jP,r);case"trapezoid":return st.createElement(uA,r);case"sector":return st.createElement(XS,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return st.createElement(nl,r);break;default:return null}}function gA(t){var e,r=t.option,n=t.shapeType,o=t.propTransformer,i=void 0===o?yA:o,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,u=t.isActive,l=fA(t,lA);if(ft(r))e=xt(r,dA(dA({},l),function(t){return ft(t)?t.props:t}(r)));else if(ya(r))e=r(l);else if(UP(r)&&!VP(r)){var s=i(r,l);e=st.createElement(vA,{shapeType:n,elementProps:s})}else{var f=l;e=st.createElement(vA,{shapeType:n,elementProps:f})}return u?st.createElement(Rc,{className:c},e):e}function mA(t,e){return null!=e&&"trapezoids"in t.props}function bA(t,e){return null!=e&&"sectors"in t.props}function wA(t,e){return null!=e&&"points"in t.props}function xA(t,e){var r,n,o=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,i=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return o&&i}function OA(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function SA(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function _A(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,o=function(t,e){var r;return mA(t,e)?r="trapezoids":bA(t,e)?r="sectors":wA(t,e)&&(r="points"),r}(r,e),i=function(t,e){var r,n;return mA(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:bA(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:wA(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=ex(i,t),c=r.props[o].filter((function(t){var n=function(t,e){var r;return mA(t,e)?r=xA:bA(t,e)?r=OA:wA(t,e)&&(r=SA),r}(r,e);return n(t,e)})),u=r.props[o].indexOf(c[c.length-1]);return a&&n===u}));return n.indexOf(a[a.length-1])}function jA(){if(eA)return tA;eA=1;var t=ty(),e=1/0;return tA=function(r){return r?(r=t(r))===e||r===-1/0?17976931348623157e292*(r<0?-1:1):r==r?r:0:0===r?r:0}}function PA(){if(nA)return rA;nA=1;var t=function(){if(QP)return JP;QP=1;var t=Math.ceil,e=Math.max;return JP=function(r,n,o,i){for(var a=-1,c=e(t((n-r)/(o||1)),0),u=Array(c);c--;)u[i?c:++a]=r,r+=o;return u}}(),e=Qd(),r=jA();return rA=function(n){return function(o,i,a){return a&&"number"!=typeof a&&e(o,i,a)&&(i=a=void 0),o=r(o),void 0===i?(i=o,o=0):i=r(i),a=void 0===a?o<i?1:-1:r(a),t(o,i,a,n)}}}var AA=function(){if(iA)return oA;iA=1;var t=PA()();return oA=t}(),MA=dr(AA);function kA(t){return kA="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},kA(t)}function EA(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 CA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?EA(Object(r),!0).forEach((function(e){TA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):EA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function TA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=kA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=kA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==kA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var DA=["Webkit","Moz","O","ms"];function IA(t){return IA="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},IA(t)}function NA(){return NA=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},NA.apply(this,arguments)}function RA(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 LA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?RA(Object(r),!0).forEach((function(e){UA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):RA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function BA(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,VA(n.key),n)}}function zA(t,e,r){return e=HA(e),function(t,e){if(e&&("object"===IA(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,$A()?Reflect.construct(e,r||[],HA(t).constructor):e.apply(t,r))}function $A(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($A=function(){return!!t})()}function HA(t){return HA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},HA(t)}function FA(t,e){return FA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},FA(t,e)}function UA(t,e,r){return(e=VA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function VA(t){var e=function(t,e){if("object"!=IA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=IA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==IA(e)?e:e+""}var WA,ZA,qA,YA,XA=function(t){return t.changedTouches&&!!t.changedTouches.length},KA=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),UA(r=zA(this,e,[t]),"handleDrag",(function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)})),UA(r,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),UA(r,"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:e,startIndex:o})})),r.detachDragEndListener()})),UA(r,"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),UA(r,"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),UA(r,"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),UA(r,"handleSlideDragStart",(function(t){var e=XA(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&FA(t,e)}(e,dt),r=e,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,o=this.state.scaleValues,i=this.props,a=i.gap,c=i.data.length-1,u=Math.min(r,n),l=Math.max(r,n),s=e.getIndexInRange(o,u),f=e.getIndexInRange(o,l);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=TO(r[t],o,t);return ya(n)?n(i,t):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,o=e.endX,i=this.props,a=i.x,c=i.width,u=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-u-o,a+c-u-n):p<0&&(p=Math.max(p,a-n,a-o));var d=this.getIndex({startX:n+p,endX:o+p});d.startIndex===l&&d.endIndex===s||!f||f(d),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=XA(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,o=e.endX,i=e.startX,a=this.state[n],c=this.props,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,d=c.data,h={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,u+l-s-a):y<0&&(y=Math.max(y,u-a)),h[n]=a+y;var v=this.getIndex(h),g=v.startIndex,m=v.endIndex;this.setState(UA(UA({},n,a+y),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=d.length-1,("startX"===n&&(o>i?g%p==0:m%p==0)||o<i&&m===t||"endX"===n&&(o>i?m%p==0:g%p==0)||o>i&&m===t)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,c=this.state[e],u=o.indexOf(c);if(-1!==u){var l=u+t;if(!(-1===l||l>=o.length)){var s=o[l];"startX"===e&&s>=a||"endX"===e&&s<=i||this.setState(UA({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.fill,a=t.stroke;return st.createElement("rect",{stroke:a,fill:i,x:e,y:r,width:n,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.data,a=t.children,c=t.padding,u=pt.only(a);return u?st.cloneElement(u,{x:e,y:r,width:n,height:o,margin:c,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(t,r){var n,o,i=this,a=this.props,c=a.y,u=a.travellerWidth,l=a.height,s=a.traveller,f=a.ariaLabel,p=a.data,d=a.startIndex,h=a.endIndex,y=Math.max(t,this.props.x),v=LA(LA({},lc(this.props,!1)),{},{x:y,y:c,width:u,height:l}),g=f||"Min value: ".concat(null===(n=p[d])||void 0===n?void 0:n.name,", Max value: ").concat(null===(o=p[h])||void 0===o?void 0:o.name);return st.createElement(Rc,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),i.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){i.setState({isTravellerFocused:!0})},onBlur:function(){i.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(s,v))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,o=r.height,i=r.stroke,a=r.travellerWidth,c=Math.min(t,e)+a,u=Math.max(Math.abs(e-t)-a,0);return st.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:c,y:n,width:u,height:o})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,o=t.height,i=t.travellerWidth,a=t.stroke,c=this.state,u=c.startX,l=c.endX,s={pointerEvents:"none",fill:a};return st.createElement(Rc,{className:"recharts-brush-texts"},st.createElement(Yy,NA({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:n+o/2},s),this.getTextOfTick(e)),st.createElement(Yy,NA({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+i+5,y:n+o/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,o=t.x,i=t.y,a=t.width,c=t.height,u=t.alwaysShowText,l=this.state,s=l.startX,f=l.endX,p=l.isTextActive,d=l.isSlideMoving,h=l.isTravellerMoving,y=l.isTravellerFocused;if(!e||!e.length||!Da(o)||!Da(i)||!Da(a)||!Da(c)||a<=0||c<=0)return null;var v,g,m,b,w=Dn("recharts-brush",r),x=1===st.Children.count(n),O=(g="none",m=(v="userSelect").replace(/(\w)/,(function(t){return t.toUpperCase()})),(b=DA.reduce((function(t,e){return CA(CA({},t),{},TA({},e+m,g))}),{}))[v]=g,b);return st.createElement(Rc,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(p||d||h||y||u)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,o=t.height,i=t.stroke,a=Math.floor(r+o/2)-1;return st.createElement(st.Fragment,null,st.createElement("rect",{x:e,y:r,width:n,height:o,fill:i,stroke:"none"}),st.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),st.createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return st.isValidElement(t)?st.cloneElement(t,r):ya(t)?t(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return LA({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,o=t.x,i=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,u=Sv().domain(MA(0,c)).range([o,o+i-a]),l=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(n),scale:u,scaleValues:l}}({data:r,width:n,x:o,travellerWidth:i,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+n-i]);var l=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var o=Math.floor((r+n)/2);t[o]>e?n=o:r=o}return e>=t[n]?n:r}}],n&&BA(r.prototype,n),o&&BA(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();UA(KA,"displayName","Brush"),UA(KA,"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 GA,JA,QA,tM,eM=function(){if(YA)return qA;YA=1;var t=ps(),e=Ep(),r=function(){if(ZA)return WA;ZA=1;var t=Wd();return WA=function(e,r){var n;return t(e,(function(t,e,o){return!(n=r(t,e,o))})),!!n}}(),n=Ci(),o=Qd();return qA=function(i,a,c){var u=n(i)?t:r;return c&&o(i,a,c)&&(a=void 0),u(i,e(a,3))}}(),rM=dr(eM),nM=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e};var oM,iM,aM,cM,uM,lM,sM=function(){if(tM)return QA;tM=1;var t=function(){if(JA)return GA;JA=1;var t=Kd();return GA=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n},GA}(),e=Vd(),r=Ep();return QA=function(n,o){var i={};return o=r(o,3),e(n,(function(e,r,n){t(i,r,o(e,r,n))})),i},QA}(),fM=dr(sM);var pM=function(){if(lM)return uM;lM=1;var t=(iM||(iM=1,oM=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}),oM),e=function(){if(cM)return aM;cM=1;var t=Wd();return aM=function(e,r){var n=!0;return t(e,(function(t,e,o){return n=!!r(t,e,o)})),n}}(),r=Ep(),n=Ci(),o=Qd();return uM=function(i,a,c){var u=n(i)?t:e;return c&&o(i,a,c)&&(a=void 0),u(i,r(a,3))}}(),dM=dr(pM),hM=["x","y"];function yM(t){return yM="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},yM(t)}function vM(){return vM=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},vM.apply(this,arguments)}function gM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function mM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gM(Object(r),!0).forEach((function(e){bM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function bM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=yM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=yM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==yM(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wM(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function xM(t,e){var r=t.x,n=t.y,o=wM(t,hM),i="".concat(r),a=parseInt(i,10),c="".concat(n),u=parseInt(c,10),l="".concat(e.height||o.height),s=parseInt(l,10),f="".concat(e.width||o.width),p=parseInt(f,10);return mM(mM(mM(mM(mM({},e),o),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function OM(t){return st.createElement(gA,vM({shapeType:"rectangle",propTransformer:xM,activeClassName:"recharts-active-bar"},t))}var SM,_M=["value","background"];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)}function PM(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function AM(){return AM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},AM.apply(this,arguments)}function MM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function kM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?MM(Object(r),!0).forEach((function(e){NM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):MM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function EM(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,RM(n.key),n)}}function CM(t,e,r){return e=DM(e),function(t,e){if(e&&("object"===jM(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,TM()?Reflect.construct(e,r||[],DM(t).constructor):e.apply(t,r))}function TM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(TM=function(){return!!t})()}function DM(t){return DM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},DM(t)}function IM(t,e){return IM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},IM(t,e)}function NM(t,e,r){return(e=RM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function RM(t){var e=function(t,e){if("object"!=jM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=jM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==jM(e)?e:e+""}var LM=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return NM(t=CM(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),NM(t,"id",Ra("recharts-bar-")),NM(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),NM(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&IM(t,e)}(e,dt),r=e,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,o=r.dataKey,i=r.activeIndex,a=r.activeBar,c=lc(this.props,!1);return t&&t.map((function(t,r){var u=r===i,l=u?a:n,s=kM(kM(kM({},c),t),{},{isActive:u,option:l,index:r,dataKey:o,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return st.createElement(Rc,AM({className:"recharts-bar-rectangle"},Ya(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value)}),st.createElement(OM,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevData;return st.createElement(hP,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var o=e.t,i=r.map((function(t,e){var r=l&&l[e];if(r){var i=za(r.x,t.x),a=za(r.y,t.y),c=za(r.width,t.width),u=za(r.height,t.height);return kM(kM({},t),{},{x:i(o),y:a(o),width:c(o),height:u(o)})}if("horizontal"===n){var s=za(0,t.height)(o);return kM(kM({},t),{},{y:t.y+t.height-s,height:s})}var f=za(0,t.width)(o);return kM(kM({},t),{},{width:f})}));return st.createElement(Rc,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&&ex(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,o=e.activeIndex,i=lc(this.props.background,!1);return r.map((function(e,r){e.value;var a=e.background,c=PM(e,_M);if(!a)return null;var u=kM(kM(kM(kM(kM({},c),{},{fill:"#eee"},a),i),Ya(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return st.createElement(OM,AM({key:"background-bar-".concat(r),option:t.props.background,isActive:r===o},u))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,o=r.xAxis,i=r.yAxis,a=r.layout,c=oc(r.children,wO);if(!c)return null;var u="vertical"===a?n[0].height/2:n[0].width/2,l=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:TO(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return st.createElement(Rc,s,c.map((function(t){return st.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:o,yAxis:i,layout:a,offset:u,dataPointFormatter:l})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,o=t.xAxis,i=t.yAxis,a=t.left,c=t.top,u=t.width,l=t.height,s=t.isAnimationActive,f=t.background,p=t.id;if(e||!r||!r.length)return null;var d=this.state.isAnimationFinished,h=Dn("recharts-bar",n),y=o&&o.allowDataOverflow,v=i&&i.allowDataOverflow,g=y||v,m=fa(p)?this.id:p;return st.createElement(Rc,{className:h},y||v?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(m)},st.createElement("rect",{x:y?a:a-u/2,y:v?c:c-l/2,width:y?u:2*u,height:v?l:2*l}))):null,st.createElement(Rc,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(m,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,m),(!s||d)&&$S.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],n&&EM(r.prototype,n),o&&EM(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();function BM(t){return BM="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},BM(t)}function zM(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,UM(n.key),n)}}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 HM(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){FM(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 FM(t,e,r){return(e=UM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function UM(t){var e=function(t,e){if("object"!=BM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=BM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==BM(e)?e:e+""}SM=LM,NM(LM,"displayName","Bar"),NM(LM,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Mh,animationBegin:0,animationDuration:400,animationEasing:"ease"}),NM(LM,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,c=t.xAxisTicks,u=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,d=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!d)return null;var h=e.layout,y=r.type.defaultProps,v=void 0!==y?kM(kM({},y),r.props):r.props,g=v.dataKey,m=v.children,b=v.minPointSize,w="horizontal"===h?a:i,x=l?w.scale.domain():null,O=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]}({numericAxis:w}),S=oc(m,fy),_=f.map((function(t,e){var n,f,p,y,v,m;l?n=function(t,e){if(!e||2!==e.length||!Da(e[0])||!Da(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(!Da(t[0])||t[0]<r)&&(o[0]=r),(!Da(t[1])||t[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o}(l[s+e],x):(n=TO(t,g),Array.isArray(n)||(n=[O,n]));var w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var o="number"==typeof r;return o?t(r,n):(o||("production"!==process.env.NODE_ENV?aO(0,"minPointSize callback function received a value with type of ".concat(yM(r),". Currently only numbers are supported.")):aO()),e)}}(b,SM.defaultProps.minPointSize)(n[1],e);if("horizontal"===h){var _,j=[a.scale(n[0]),a.scale(n[1])],P=j[0],A=j[1];f=WO({axis:i,ticks:c,bandSize:o,offset:d.offset,entry:t,index:e}),p=null!==(_=null!=A?A:P)&&void 0!==_?_:void 0,y=d.size;var M=P-A;if(v=Number.isNaN(M)?0:M,m={x:f,y:a.y,width:y,height:a.height},Math.abs(w)>0&&Math.abs(v)<Math.abs(w)){var k=Ca(v||w)*(Math.abs(w)-Math.abs(v));p-=k,v+=k}}else{var E=[i.scale(n[0]),i.scale(n[1])],C=E[0],T=E[1];if(f=C,p=WO({axis:a,ticks:u,bandSize:o,offset:d.offset,entry:t,index:e}),y=T-C,v=d.size,m={x:i.x,y:p,width:i.width,height:v},Math.abs(w)>0&&Math.abs(y)<Math.abs(w))y+=Ca(y||w)*(Math.abs(w)-Math.abs(y))}return kM(kM(kM({},t),{},{x:f,y:p,width:y,height:v,value:l?n:n[1],payload:t,background:m},S&&S[e]&&S[e].props),{},{tooltipPayload:[JO(r,t)],tooltipPosition:{x:f+y/2,y:p+v/2}})}));return kM({data:_,layout:h},p)}));var VM=function(t,e,r,n,o){var i=t.width,a=t.height,c=t.layout,u=t.children,l=Object.keys(e),s={left:r.left,leftMirror:r.left,right:i-r.right,rightMirror:i-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!ic(u,LM);return l.reduce((function(i,a){var u,l,p,d,h,y=e[a],v=y.orientation,g=y.domain,m=y.padding,b=void 0===m?{}:m,w=y.mirror,x=y.reversed,O="".concat(v).concat(w?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var S=g[1]-g[0],_=1/0,j=y.categoricalDomain.sort();if(j.forEach((function(t,e){e>0&&(_=Math.min((t||0)-(j[e-1]||0),_))})),Number.isFinite(_)){var P=_/S,A="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(u=P*A/2),"no-gap"===y.padding){var M=La(t.barCategoryGap,P*A),k=P*A/2;u=k-M-(k-M)/A*M}}}l="xAxis"===n?[r.left+(b.left||0)+(u||0),r.left+r.width-(b.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(u||0),r.top+r.height-(b.bottom||0)-(u||0)]:y.range,x&&(l=[l[1],l[0]]);var E=function(t,e,r){var n=t.scale,o=t.type,i=t.layout,a=t.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:xv(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:Wg(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:Sv(),realScaleType:"point"}:"category"===o?{scale:xv(),realScaleType:"band"}:{scale:Wg(),realScaleType:"linear"};if(ha(n)){var c="scale".concat(Uc(n));return{scale:(Rw[c]||Sv)(),realScaleType:Rw[c]?c:"point"}}return ya(n)?{scale:n}:{scale:Sv(),realScaleType:"point"}}(y,o,f),C=E.scale,T=E.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])-HO,i=Math.max(n[0],n[1])+HO,a=t(e[0]),c=t(e[r-1]);(a<o||a>i||c<o||c>i)&&t.domain([e[0],e[r-1]])}}(C);var D=function(t,e){var r=e.realScaleType,n=e.type,o=e.tickCount,i=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var u=t.domain();if(!u.length)return null;var l=rO(u,o,a);return t.domain([Xw(l),Uw(l)]),{niceTicks:l}}if(o&&"number"===n){var s=t.domain();return{niceTicks:nO(s,o,a)}}return null}(C,HM(HM({},y),{},{realScaleType:T}));"xAxis"===n?(h="top"===v&&!w||"bottom"===v&&w,p=r.left,d=s[O]-h*y.height):"yAxis"===n&&(h="left"===v&&!w||"right"===v&&w,p=s[O]-h*y.width,d=r.top);var I=HM(HM(HM({},y),D),{},{realScaleType:T,x:p,y:d,scale:C,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return I.bandSize=KO(I,D),y.hide||"xAxis"!==n?y.hide||(s[O]+=(h?-1:1)*I.width):s[O]+=(h?-1:1)*I.height,HM(HM({},i),{},FM({},a,I))}),{})},WM=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)}},ZM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}return e=t,r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&zM(e.prototype,r),n&&zM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();FM(ZM,"EPS",1e-4);var qM=function(t){var e=Object.keys(t).reduce((function(e,r){return HM(HM({},e),{},FM({},r,ZM.create(t[r])))}),{});return HM(HM({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return fM(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:o})}))},isInRange:function(t){return dM(t,(function(t,r){return e[r].isInRange(t)}))}})};var YM,XM,KM,GM,JM,QM,tk,ek,rk=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 nk(){if(QM)return JM;QM=1;var t=Cp(),e=Ep(),r=function(){if(GM)return KM;GM=1;var t=jA();return KM=function(e){var r=t(e),n=r%1;return r==r?n?r-n:r:0}}(),n=Math.max;return JM=function(o,i,a){var c=null==o?0:o.length;if(!c)return-1;var u=null==a?0:r(a);return u<0&&(u=n(c+u,0)),t(o,e(i,3),u)},JM}!function(){if(ek)return tk;ek=1;var t=function(){if(XM)return YM;XM=1;var t=Ep(),e=gp(),r=mp();return YM=function(n){return function(o,i,a){var c=Object(o);if(!e(o)){var u=t(i,3);o=r(o),i=function(t){return u(c[t],t,c)}}var l=n(o,i,a);return l>-1?c[u?o[l]:l]:void 0}}}(),e=t(nk());tk=e}();var ok=dr(Ji())((function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}}),(function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}));function ik(t){return ik="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},ik(t)}var ak=_t(void 0),ck=_t(void 0),uk=_t(void 0),lk=_t({}),sk=_t(void 0),fk=_t(0),pk=_t(0),dk=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,o=e.offset,i=t.clipPathId,a=t.children,c=t.width,u=t.height,l=ok(o);return st.createElement(ak.Provider,{value:r},st.createElement(ck.Provider,{value:n},st.createElement(lk.Provider,{value:o},st.createElement(uk.Provider,{value:l},st.createElement(sk.Provider,{value:i},st.createElement(fk.Provider,{value:u},st.createElement(pk.Provider,{value:c},a)))))))};function hk(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var yk=function(t){var e=St(ak);null==e&&("production"!==process.env.NODE_ENV?aO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):aO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?aO(0,'Could not find xAxis by id "'.concat(t,'" [').concat(ik(t),"]. ").concat(hk(e))):aO()),r},vk=function(t){var e=St(ck);null==e&&("production"!==process.env.NODE_ENV?aO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):aO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?aO(0,'Could not find yAxis by id "'.concat(t,'" [').concat(ik(t),"]. ").concat(hk(e))):aO()),r},gk=function(){return St(pk)},mk=function(){return St(fk)};function bk(t){return bk="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},bk(t)}function wk(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Mk(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function xk(t,e,r){return e=Sk(e),function(t,e){if(e&&("object"===bk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ok()?Reflect.construct(e,r||[],Sk(t).constructor):e.apply(t,r))}function Ok(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ok=function(){return!!t})()}function Sk(t){return Sk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Sk(t)}function _k(t,e){return _k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_k(t,e)}function jk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Pk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jk(Object(r),!0).forEach((function(e){Ak(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ak(t,e,r){return(e=Mk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mk(t){var e=function(t,e){if("object"!=bk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=bk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==bk(e)?e:e+""}function kk(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ek(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 Ek(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 Ek(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 Ck(){return Ck=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},Ck.apply(this,arguments)}function Tk(t){var e=t.x,r=t.y,n=t.segment,o=t.xAxisId,i=t.yAxisId,a=t.shape,c=t.className,u=t.alwaysShow,l=St(sk),s=yk(o),f=vk(i),p=St(uk);if(!l||!p)return null;Bc(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=function(t,e,r,n,o,i,a,c,u){var l=o.x,s=o.y,f=o.width,p=o.height;if(r){var d=u.y,h=t.y.apply(d,{position:i});if(nM(u,"discard")&&!t.y.isInRange(h))return null;var y=[{x:l+f,y:h},{x:l,y:h}];return"left"===c?y.reverse():y}if(e){var v=u.x,g=t.x.apply(v,{position:i});if(nM(u,"discard")&&!t.x.isInRange(g))return null;var m=[{x:g,y:s+p},{x:g,y:s}];return"top"===a?m.reverse():m}if(n){var b=u.segment.map((function(e){return t.apply(e,{position:i})}));return nM(u,"discard")&&rM(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(qM({x:s.scale,y:f.scale}),Ia(e),Ia(r),n&&2===n.length,p,t.position,s.orientation,f.orientation,t);if(!d)return null;var h=kk(d,2),y=h[0],v=y.x,g=y.y,m=h[1],b=m.x,w=m.y,x=Pk(Pk({clipPath:nM(t,"hidden")?"url(#".concat(l,")"):void 0},lc(t,!0)),{},{x1:v,y1:g,x2:b,y2:w});return st.createElement(Rc,{className:Dn("recharts-reference-line",c)},function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):ya(t)?t(e):st.createElement("line",Ck({},e,{className:"recharts-reference-line-line"}))}(a,x),SS.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,o=t.y2;return WM({x:e,y:r},{x:n,y:o})}({x1:v,y1:g,x2:b,y2:w})))}var Dk=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),xk(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_k(t,e)}(e,st.Component),wk(e,[{key:"render",value:function(){return st.createElement(Tk,this.props)}}])}();function Ik(){return Ik=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},Ik.apply(this,arguments)}function Nk(t){return Nk="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},Nk(t)}function Rk(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 Lk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rk(Object(r),!0).forEach((function(e){Uk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Bk(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Vk(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function zk(t,e,r){return e=Hk(e),function(t,e){if(e&&("object"===Nk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,$k()?Reflect.construct(e,r||[],Hk(t).constructor):e.apply(t,r))}function $k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($k=function(){return!!t})()}function Hk(t){return Hk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Hk(t)}function Fk(t,e){return Fk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fk(t,e)}function Uk(t,e,r){return(e=Vk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vk(t){var e=function(t,e){if("object"!=Nk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Nk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Nk(e)?e:e+""}Ak(Dk,"displayName","ReferenceLine"),Ak(Dk,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var Wk=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),zk(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Fk(t,e)}(e,st.Component),Bk(e,[{key:"render",value:function(){var t=this.props,r=t.x,n=t.y,o=t.r,i=t.alwaysShow,a=t.clipPathId,c=Ia(r),u=Ia(n);if(Bc(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var l=function(t){var e=t.x,r=t.y,n=t.xAxis,o=t.yAxis,i=qM({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return nM(t,"discard")&&!i.isInRange(a)?null:a}(this.props);if(!l)return null;var s=l.x,f=l.y,p=this.props,d=p.shape,h=p.className,y=Lk(Lk({clipPath:nM(this.props,"hidden")?"url(#".concat(a,")"):void 0},lc(this.props,!0)),{},{cx:s,cy:f});return st.createElement(Rc,{className:Dn("recharts-reference-dot",h)},e.renderDot(d,y),SS.renderCallByParent(this.props,{x:s-o,y:f-o,width:2*o,height:2*o}))}}])}();function Zk(){return Zk=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},Zk.apply(this,arguments)}function qk(t){return qk="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},qk(t)}function Yk(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 Xk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yk(Object(r),!0).forEach((function(e){eE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Kk(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,rE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Gk(t,e,r){return e=Qk(e),function(t,e){if(e&&("object"===qk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Jk()?Reflect.construct(e,r||[],Qk(t).constructor):e.apply(t,r))}function Jk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Jk=function(){return!!t})()}function Qk(t){return Qk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qk(t)}function tE(t,e){return tE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},tE(t,e)}function eE(t,e,r){return(e=rE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rE(t){var e=function(t,e){if("object"!=qk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=qk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==qk(e)?e:e+""}Uk(Wk,"displayName","ReferenceDot"),Uk(Wk,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),Uk(Wk,"renderDot",(function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):ya(t)?t(e):st.createElement(AP,Ik({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))}));var nE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Gk(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tE(t,e)}(e,st.Component),Kk(e,[{key:"render",value:function(){var t=this.props,r=t.x1,n=t.x2,o=t.y1,i=t.y2,a=t.className,c=t.alwaysShow,u=t.clipPathId;Bc(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Ia(r),s=Ia(n),f=Ia(o),p=Ia(i),d=this.props.shape;if(!(l||s||f||p||d))return null;var h=function(t,e,r,n,o){var i=o.x1,a=o.x2,c=o.y1,u=o.y2,l=o.xAxis,s=o.yAxis;if(!l||!s)return null;var f=qM({x:l.scale,y:s.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},d={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!nM(o,"discard")||f.isInRange(p)&&f.isInRange(d)?WM(p,d):null}(l,s,f,p,this.props);if(!h&&!d)return null;var y=nM(this.props,"hidden")?"url(#".concat(u,")"):void 0;return st.createElement(Rc,{className:Dn("recharts-reference-area",a)},e.renderRect(d,Xk(Xk({clipPath:y},lc(this.props,!0)),h)),SS.renderCallByParent(this.props,h))}}])}();function oE(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],o=0;o<t.length;o+=e)n.push(t[o]);return n}function iE(t,e,r,n,o){if(t*e<t*n||t*e>t*o)return!1;var i=r();return t*(e-t*i/2-n)>=0&&t*(e+t*i/2-o)<=0}function aE(t){return aE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aE(t)}function cE(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 uE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cE(Object(r),!0).forEach((function(e){lE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=aE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=aE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==aE(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sE(t,e,r){var n=t.tick,o=t.ticks,i=t.viewBox,a=t.minTickGap,c=t.orientation,u=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!o||!o.length||!n)return[];if(Da(u)||Mh)return function(t,e){return oE(t,e+1)}(o,"number"==typeof u&&Da(u)?u:0);var p=[],d="top"===c||"bottom"===c?"width":"height",h=s&&"width"===d?by(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(t,n){var o=ya(l)?l(t.value,n):t.value;return"width"===d?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return rk(n,r)}(by(o,{fontSize:e,letterSpacing:r}),h,f):by(o,{fontSize:e,letterSpacing:r})[d]},v=o.length>=2?Ca(o[1].coordinate-o[0].coordinate):1,g=function(t,e,r){var n="width"===r,o=t.x,i=t.y,a=t.width,c=t.height;return 1===e?{start:n?o:i,end:n?o+a:i+c}:{start:n?o+a:i+c,end:n?o:i}}(i,v,d);return"equidistantPreserveStart"===u?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,p=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:oE(n,s)};var i,a=l,p=function(){return void 0===i&&(i=r(e,a)),i},d=e.coordinate,h=0===l||iE(t,d,p,f,u);h||(l=0,f=c,s+=1),h&&(f=d+t*(p()/2+o),l+=s)};s<=a.length;)if(i=p())return i.v;return[]}(v,g,y,o,a):(p="preserveStart"===u||"preserveStartEnd"===u?function(t,e,r,n,o,i){var a=(n||[]).slice(),c=a.length,u=e.start,l=e.end;if(i){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-l);a[c-1]=s=uE(uE({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),iE(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+o),a[c-1]=uE(uE({},s),{},{isShow:!0}))}for(var d=i?c-1:c,h=function(e){var n,i=a[e],c=function(){return void 0===n&&(n=r(i,e)),n};if(0===e){var s=t*(i.coordinate-t*c()/2-u);a[e]=i=uE(uE({},i),{},{tickCoord:s<0?i.coordinate-s*t:i.coordinate})}else a[e]=i=uE(uE({},i),{},{tickCoord:i.coordinate});iE(t,i.tickCoord,c,u,l)&&(u=i.tickCoord+t*(c()/2+o),a[e]=uE(uE({},i),{},{isShow:!0}))},y=0;y<d;y++)h(y);return a}(v,g,y,o,a,"preserveStartEnd"===u):function(t,e,r,n,o){for(var i=(n||[]).slice(),a=i.length,c=e.start,u=e.end,l=function(e){var n,l=i[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);i[e]=l=uE(uE({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else i[e]=l=uE(uE({},l),{},{tickCoord:l.coordinate});iE(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+o),i[e]=uE(uE({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return i}(v,g,y,o,a),p.filter((function(t){return t.isShow})))}eE(nE,"displayName","ReferenceArea"),eE(nE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),eE(nE,"renderRect",(function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):ya(t)?t(e):st.createElement(jP,Zk({},e,{className:"recharts-reference-area-rect"}))}));var fE=["viewBox"],pE=["viewBox"],dE=["ticks"];function hE(t){return hE="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},hE(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 vE(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 gE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vE(Object(r),!0).forEach((function(e){_E(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mE(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function bE(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,jE(n.key),n)}}function wE(t,e,r){return e=OE(e),function(t,e){if(e&&("object"===hE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,xE()?Reflect.construct(e,r||[],OE(t).constructor):e.apply(t,r))}function xE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(xE=function(){return!!t})()}function OE(t){return OE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},OE(t)}function SE(t,e){return SE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},SE(t,e)}function _E(t,e,r){return(e=jE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jE(t){var e=function(t,e){if("object"!=hE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=hE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==hE(e)?e:e+""}var PE=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=wE(this,e,[t])).state={fontSize:"",letterSpacing:""},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&SE(t,e)}(e,jt),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=mE(t,fE),o=this.props,i=o.viewBox,a=mE(o,pE);return!Ha(r,i)||!Ha(n,a)||!Ha(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,o,i,a,c=this.props,u=c.x,l=c.y,s=c.width,f=c.height,p=c.orientation,d=c.tickSize,h=c.mirror,y=c.tickMargin,v=h?-1:1,g=t.tickSize||d,m=Da(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(o=l+ +!h*f)-v*g)-v*y,i=m;break;case"left":n=o=t.coordinate,i=(e=(r=u+ +!h*s)-v*g)-v*y,a=m;break;case"right":n=o=t.coordinate,i=(e=(r=u+ +h*s)+v*g)+v*y,a=m;break;default:e=r=t.coordinate,a=(n=(o=l+ +h*f)+v*g)+v*y,i=m}return{line:{x1:e,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.orientation,a=t.mirror,c=t.axisLine,u=gE(gE(gE({},lc(this.props,!1)),lc(c,!1)),{},{fill:"none"});if("top"===i||"bottom"===i){var l=+("top"===i&&!a||"bottom"===i&&a);u=gE(gE({},u),{},{x1:e,y1:r+l*o,x2:e+n,y2:r+l*o})}else{var s=+("left"===i&&!a||"right"===i&&a);u=gE(gE({},u),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+o})}return st.createElement("line",yE({},u,{className:Dn("recharts-cartesian-axis-line",ua(c,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var o=this,i=this.props,a=i.tickLine,c=i.stroke,u=i.tick,l=i.tickFormatter,s=i.unit,f=sE(gE(gE({},this.props),{},{ticks:t}),r,n),p=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=lc(this.props,!1),y=lc(u,!1),v=gE(gE({},h),{},{fill:"none"},lc(a,!1)),g=f.map((function(t,r){var n=o.getTickLineCoord(t),i=n.line,g=n.tick,m=gE(gE(gE(gE({textAnchor:p,verticalAnchor:d},h),{},{stroke:"none",fill:c},y),g),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:l});return st.createElement(Rc,yE({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},Ya(o.props,t,r)),a&&st.createElement("line",yE({},v,i,{className:Dn("recharts-cartesian-axis-tick-line",ua(a,"className"))})),u&&e.renderTickItem(u,m,"".concat(ya(l)?l(t.value,r):t.value).concat(s||"")))}));return st.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,o=e.height,i=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,u=c.ticks,l=mE(c,dE),s=u;return ya(i)&&(s=u&&u.length>0?i(this.props):i(l)),n<=0||o<=0||!s||!s.length?null:st.createElement(Rc,{className:Dn("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),SS.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(t,e,r){return st.isValidElement(t)?st.cloneElement(t,e):ya(t)?t(e):st.createElement(Yy,yE({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&bE(r.prototype,n),o&&bE(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();_E(PE,"displayName","CartesianAxis"),_E(PE,"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 AE=["type","layout","connectNulls","ref"],ME=["key"];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 EE(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function CE(){return CE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},CE.apply(this,arguments)}function TE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function DE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?TE(Object(r),!0).forEach((function(e){HE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):TE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function IE(t){return function(t){if(Array.isArray(t))return NE(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 NE(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 NE(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 NE(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 RE(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,FE(n.key),n)}}function LE(t,e,r){return e=zE(e),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 function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,BE()?Reflect.construct(e,r||[],zE(t).constructor):e.apply(t,r))}function BE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(BE=function(){return!!t})()}function zE(t){return zE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zE(t)}function $E(t,e){return $E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$E(t,e)}function HE(t,e,r){return(e=FE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function FE(t){var e=function(t,e){if("object"!=kE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=kE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==kE(e)?e:e+""}var UE=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return HE(t=LE(this,e,[].concat(n)),"state",{isAnimationFinished:!0,totalLength:0}),HE(t,"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),HE(t,"getStrokeDasharray",(function(r,n,o){var i=o.reduce((function(t,e){return t+e}));if(!i)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/i),c=r%i,u=n-r,l=[],s=0,f=0;s<o.length;f+=o[s],++s)if(f+o[s]>c){l=[].concat(IE(o.slice(0,s)),[c-f]);break}var p=l.length%2==0?[0,u]:[u];return[].concat(IE(e.repeat(o,a)),IE(l),p).map((function(t){return"".concat(t,"px")})).join(", ")})),HE(t,"id",Ra("recharts-line-")),HE(t,"pathRef",(function(e){t.mainCurve=e})),HE(t,"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),HE(t,"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$E(t,e)}(e,dt),r=e,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.points,o=r.xAxis,i=r.yAxis,a=r.layout,c=oc(r.children,wO);if(!c)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:TO(t.payload,e)}},l={clipPath:t?"url(#clipPath-".concat(e,")"):null};return st.createElement(Rc,l,c.map((function(t){return st.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:o,yAxis:i,layout:a,dataPointFormatter:u})})))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,i=o.dot,a=o.points,c=o.dataKey,u=lc(this.props,!1),l=lc(i,!0),s=a.map((function(t,r){var n=DE(DE(DE({key:"dot-".concat(r),r:3},u),l),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:r,payload:t.payload});return e.renderDotItem(i,n)})),f={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return st.createElement(Rc,CE({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,r,n){var o=this.props,i=o.type,a=o.layout,c=o.connectNulls;o.ref;var u=EE(o,AE),l=DE(DE(DE({},lc(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:i,layout:a,connectNulls:c});return st.createElement(c_,CE({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,o=n.points,i=n.strokeDasharray,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=n.animateNewValues,p=n.width,d=n.height,h=this.state,y=h.prevPoints,v=h.totalLength;return st.createElement(hP,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(y){var c=y.length/o.length,u=o.map((function(t,e){var r=Math.floor(e*c);if(y[r]){var n=y[r],o=za(n.x,t.x),i=za(n.y,t.y);return DE(DE({},t),{},{x:o(a),y:i(a)})}if(f){var u=za(2*p,t.x),l=za(d/2,t.y);return DE(DE({},t),{},{x:u(a),y:l(a)})}return DE(DE({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(u,t,e)}var l,s=za(0,v)(a);if(i){var h="".concat(i).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=r.getStrokeDasharray(s,v,h)}else l=r.generateSimpleStrokeDasharray(v,s);return r.renderCurveStatically(o,t,e,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,o=r.isAnimationActive,i=this.state,a=i.prevPoints,c=i.totalLength;return o&&n&&n.length&&(!a&&c>0||!ex(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,o=e.points,i=e.className,a=e.xAxis,c=e.yAxis,u=e.top,l=e.left,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!o||!o.length)return null;var h=this.state.isAnimationFinished,y=1===o.length,v=Dn("recharts-line",i),g=a&&a.allowDataOverflow,m=c&&c.allowDataOverflow,b=g||m,w=fa(d)?this.id:d,x=null!==(t=lc(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,_=x.strokeWidth,j=void 0===_?2:_,P=(uc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return st.createElement(Rc,{className:v},g||m?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(w)},st.createElement("rect",{x:g?l:l-s/2,y:m?u:u-f/2,width:g?s:2*s,height:m?f:2*f})),!A&&st.createElement("clipPath",{id:"clipPath-dots-".concat(w)},st.createElement("rect",{x:l-M/2,y:u-M/2,width:s+M,height:f+M}))):null,!y&&this.renderCurve(b,w),this.renderErrorBar(b,w),(y||n)&&this.renderDots(b,A,w),(!p||h)&&$S.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var r=t.length%2!=0?[].concat(IE(t),[0]):t,n=[],o=0;o<e;++o)n=[].concat(IE(n),IE(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(st.isValidElement(t))r=st.cloneElement(t,e);else if(ya(t))r=t(e);else{var n=e.key,o=EE(e,ME),i=Dn("recharts-line-dot","boolean"!=typeof t?t.className:"");r=st.createElement(AP,CE({key:n},o,{className:i}))}return r}}],n&&RE(r.prototype,n),o&&RE(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();HE(UE,"displayName","Line"),HE(UE,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Mh,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),HE(UE,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,o=t.xAxisTicks,i=t.yAxisTicks,a=t.dataKey,c=t.bandSize,u=t.displayedData,l=t.offset,s=e.layout;return DE({points:u.map((function(t,e){var u=TO(t,a);return"horizontal"===s?{x:VO({axis:r,ticks:o,bandSize:c,entry:t,index:e}),y:fa(u)?null:n.scale(u),value:u,payload:t}:{x:fa(u)?null:r.scale(u),y:VO({axis:n,ticks:i,bandSize:c,entry:t,index:e}),value:u,payload:t}})),layout:s},l)}));var VE,WE=["layout","type","stroke","connectNulls","isRange","ref"],ZE=["key"];function qE(t){return qE="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},qE(t)}function YE(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function XE(){return XE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},XE.apply(this,arguments)}function KE(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 GE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?KE(Object(r),!0).forEach((function(e){nC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):KE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function JE(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,oC(n.key),n)}}function QE(t,e,r){return e=eC(e),function(t,e){if(e&&("object"===qE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,tC()?Reflect.construct(e,r||[],eC(t).constructor):e.apply(t,r))}function tC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(tC=function(){return!!t})()}function eC(t){return eC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},eC(t)}function rC(t,e){return rC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rC(t,e)}function nC(t,e,r){return(e=oC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oC(t){var e=function(t,e){if("object"!=qE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=qE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==qE(e)?e:e+""}var iC=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return nC(t=QE(this,e,[].concat(n)),"state",{isAnimationFinished:!0}),nC(t,"id",Ra("recharts-area-")),nC(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),ya(e)&&e()})),nC(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),ya(e)&&e()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rC(t,e)}(e,dt),r=e,n=[{key:"renderDots",value:function(t,r,n){var o=this.props.isAnimationActive,i=this.state.isAnimationFinished;if(o&&!i)return null;var a=this.props,c=a.dot,u=a.points,l=a.dataKey,s=lc(this.props,!1),f=lc(c,!0),p=u.map((function(t,r){var n=GE(GE(GE({key:"dot-".concat(r),r:3},s),f),{},{index:r,cx:t.x,cy:t.y,dataKey:l,value:t.value,payload:t.payload,points:u});return e.renderDotItem(c,n)})),d={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return st.createElement(Rc,XE({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,o=e.strokeWidth,i=n[0].x,a=n[n.length-1].x,c=t*Math.abs(i-a),u=Uw(n.map((function(t){return t.y||0})));return Da(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(Uw(r.map((function(t){return t.y||0}))),u)),Da(u)?st.createElement("rect",{x:i<a?i:i-c,y:0,width:c,height:Math.floor(u+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,o=e.strokeWidth,i=n[0].y,a=n[n.length-1].y,c=t*Math.abs(i-a),u=Uw(n.map((function(t){return t.x||0})));return Da(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(Uw(r.map((function(t){return t.x||0}))),u)),Da(u)?st.createElement("rect",{x:0,y:i<a?i:i-c,width:u+(o?parseInt("".concat(o),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,r,n){var o=this.props,i=o.layout,a=o.type,c=o.stroke,u=o.connectNulls,l=o.isRange;o.ref;var s=YE(o,WE);return st.createElement(Rc,{clipPath:r?"url(#clipPath-".concat(n,")"):null},st.createElement(c_,XE({},lc(s,!0),{points:t,connectNulls:u,type:a,baseLine:e,layout:i,stroke:"none",className:"recharts-area-area"})),"none"!==c&&st.createElement(c_,XE({},lc(this.props,!1),{className:"recharts-area-curve",layout:i,type:a,connectNulls:u,fill:"none",points:t})),"none"!==c&&l&&st.createElement(c_,XE({},lc(this.props,!1),{className:"recharts-area-curve",layout:i,type:a,connectNulls:u,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,o=n.points,i=n.baseLine,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=this.state,p=f.prevPoints,d=f.prevBaseLine;return st.createElement(hP,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"area-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(p){var c,u=p.length/o.length,l=o.map((function(t,e){var r=Math.floor(e*u);if(p[r]){var n=p[r],o=za(n.x,t.x),i=za(n.y,t.y);return GE(GE({},t),{},{x:o(a),y:i(a)})}return t}));return c=Da(i)&&"number"==typeof i?za(d,i)(a):fa(i)||ka(i)?za(d,0)(a):i.map((function(t,e){var r=Math.floor(e*u);if(d[r]){var n=d[r],o=za(n.x,t.x),i=za(n.y,t.y);return GE(GE({},t),{},{x:o(a),y:i(a)})}return t})),r.renderAreaStatically(l,c,t,e)}return st.createElement(Rc,null,st.createElement("defs",null,st.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),st.createElement(Rc,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(o,i,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,o=r.baseLine,i=r.isAnimationActive,a=this.state,c=a.prevPoints,u=a.prevBaseLine,l=a.totalLength;return i&&n&&n.length&&(!c&&l>0||!ex(c,n)||!ex(u,o))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,o,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,o=e.points,i=e.className,a=e.top,c=e.left,u=e.xAxis,l=e.yAxis,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!o||!o.length)return null;var h=this.state.isAnimationFinished,y=1===o.length,v=Dn("recharts-area",i),g=u&&u.allowDataOverflow,m=l&&l.allowDataOverflow,b=g||m,w=fa(d)?this.id:d,x=null!==(t=lc(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,_=x.strokeWidth,j=void 0===_?2:_,P=(uc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return st.createElement(Rc,{className:v},g||m?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(w)},st.createElement("rect",{x:g?c:c-s/2,y:m?a:a-f/2,width:g?s:2*s,height:m?f:2*f})),!A&&st.createElement("clipPath",{id:"clipPath-dots-".concat(w)},st.createElement("rect",{x:c-M/2,y:a-M/2,width:s+M,height:f+M}))):null,y?null:this.renderArea(b,w),(n||y)&&this.renderDots(b,A,w),(!p||h)&&$S.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],n&&JE(r.prototype,n),o&&JE(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();function aC(t){return aC="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},aC(t)}function cC(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,dC(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function uC(t,e,r){return e=sC(e),function(t,e){if(e&&("object"===aC(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,lC()?Reflect.construct(e,r||[],sC(t).constructor):e.apply(t,r))}function lC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(lC=function(){return!!t})()}function sC(t){return sC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sC(t)}function fC(t,e){return fC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fC(t,e)}function pC(t,e,r){return(e=dC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dC(t){var e=function(t,e){if("object"!=aC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=aC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==aC(e)?e:e+""}function hC(){return hC=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},hC.apply(this,arguments)}function yC(t){var e=t.xAxisId,r=gk(),n=mk(),o=yk(e);return null==o?null:st.createElement(PE,hC({},o,{className:Dn("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return BO(t,!0)}}))}VE=iC,nC(iC,"displayName","Area"),nC(iC,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Mh,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),nC(iC,"getBaseValue",(function(t,e,r,n){var o=t.layout,i=t.baseValue,a=e.props.baseValue,c=null!=a?a:i;if(Da(c)&&"number"==typeof c)return c;var u="horizontal"===o?n:r,l=u.scale.domain();if("number"===u.type){var s=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===c?l[0]:"dataMax"===c?l[1]:l[0]})),nC(iC,"getComposedData",(function(t){var e,r=t.props,n=t.item,o=t.xAxis,i=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,u=t.bandSize,l=t.dataKey,s=t.stackedData,f=t.dataStartIndex,p=t.displayedData,d=t.offset,h=r.layout,y=s&&s.length,v=VE.getBaseValue(r,n,o,i),g="horizontal"===h,m=!1,b=p.map((function(t,e){var r;y?r=s[f+e]:(r=TO(t,l),Array.isArray(r)?m=!0:r=[v,r]);var n=null==r[1]||y&&null==TO(t,l);return g?{x:VO({axis:o,ticks:a,bandSize:u,entry:t,index:e}),y:n?null:i.scale(r[1]),value:r,payload:t}:{x:n?null:o.scale(r[1]),y:VO({axis:i,ticks:c,bandSize:u,entry:t,index:e}),value:r,payload:t}}));return e=y||m?b.map((function(t){var e=Array.isArray(t.value)?t.value[0]:null;return g?{x:t.x,y:null!=e&&null!=t.y?i.scale(e):null}:{x:null!=e?o.scale(e):null,y:t.y}})):g?i.scale(v):o.scale(v),GE({points:b,baseLine:e,layout:h,isRange:m},d)})),nC(iC,"renderDotItem",(function(t,e){var r;if(st.isValidElement(t))r=st.cloneElement(t,e);else if(ya(t))r=t(e);else{var n=Dn("recharts-area-dot","boolean"!=typeof t?t.className:""),o=e.key,i=YE(e,ZE);r=st.createElement(AP,XE({},i,{key:o,className:n}))}return r}));var vC=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),uC(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fC(t,e)}(e,st.Component),cC(e,[{key:"render",value:function(){return st.createElement(yC,this.props)}}])}();function gC(t){return gC="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},gC(t)}function mC(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_C(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function bC(t,e,r){return e=xC(e),function(t,e){if(e&&("object"===gC(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,wC()?Reflect.construct(e,r||[],xC(t).constructor):e.apply(t,r))}function wC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(wC=function(){return!!t})()}function xC(t){return xC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xC(t)}function OC(t,e){return OC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},OC(t,e)}function SC(t,e,r){return(e=_C(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _C(t){var e=function(t,e){if("object"!=gC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=gC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==gC(e)?e:e+""}function jC(){return jC=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},jC.apply(this,arguments)}pC(vC,"displayName","XAxis"),pC(vC,"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 PC=function(t){var e=t.yAxisId,r=gk(),n=mk(),o=vk(e);return null==o?null:st.createElement(PE,jC({},o,{className:Dn("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return BO(t,!0)}}))},AC=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),bC(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&OC(t,e)}(e,st.Component),mC(e,[{key:"render",value:function(){return st.createElement(PC,this.props)}}])}();function MC(t){return function(t){if(Array.isArray(t))return kC(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 kC(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 kC(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 kC(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}SC(AC,"displayName","YAxis"),SC(AC,"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 EC,CC=function(t,e,r,n,o){var i=oc(t,Dk),a=oc(t,Wk),c=[].concat(MC(i),MC(a)),u=oc(t,nE),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===r&&nM(e.props,"extendDomain")&&Da(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),u.length){var p="".concat(s,"1"),d="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===r&&nM(e.props,"extendDomain")&&Da(e.props[p])&&Da(e.props[d])){var n=e.props[p],o=e.props[d];return[Math.min(t[0],n,o),Math.max(t[1],n,o)]}return t}),f)}return o&&o.length&&(f=o.reduce((function(t,e){return Da(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},TC={exports:{}};var DC=(EC||(EC=1,function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new o(n,i||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,o,i,a){var c=r?r+t:t;if(!this._events[c])return!1;var u,l,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,o),!0;case 5:return s.fn.call(s.context,e,n,o,i),!0;case 6:return s.fn.call(s.context,e,n,o,i,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var p,d=s.length;for(l=0;l<d;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,n);break;case 4:s[l].fn.call(s[l].context,e,n,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];s[l].fn.apply(s[l].context,u)}}return!0},c.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var c=this._events[i];if(c.fn)c.fn!==e||o&&!c.once||n&&c.context!==n||a(this,i);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||o&&!c[u].once||n&&c[u].context!==n)&&l.push(c[u]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c}(TC)),TC.exports),IC=new(dr(DC)),NC="recharts.syncMouseEvents";function RC(t){return RC="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},RC(t)}function LC(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,zC(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function BC(t,e,r){return(e=zC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zC(t){var e=function(t,e){if("object"!=RC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=RC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==RC(e)?e:e+""}var $C=function(){return LC((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),BC(this,"activeIndex",0),BC(this,"coordinateList",[]),BC(this,"layout","horizontal")}),[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,o=t.container,i=void 0===o?null:o,a=t.layout,c=void 0===a?null:a,u=t.offset,l=void 0===u?null:u,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=i?i:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,o=r.y,i=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=n+a+c,s=o+this.offset.top+i/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}])}();function HC(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[iS(e,r,n,o),iS(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}function FC(t,e,r){var n,o,i,a;if("horizontal"===t)i=n=e.x,o=r.top,a=r.top+r.height;else if("vertical"===t)a=o=e.y,n=r.left,i=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return HC(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=iS(c,u,l,f),d=iS(c,u,s,f);n=p.x,o=p.y,i=d.x,a=d.y}return[{x:n,y:o},{x:i,y:a}]}function UC(t){return UC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},UC(t)}function VC(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function WC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?VC(Object(r),!0).forEach((function(e){ZC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):VC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ZC(t,e,r){return e=function(t){var e=function(t,e){if("object"!=UC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=UC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==UC(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qC(t){var e,r,n,o=t.element,i=t.tooltipEventType,a=t.isActive,c=t.activeCoordinate,u=t.activePayload,l=t.offset,s=t.activeTooltipIndex,f=t.tooltipAxisBandSize,p=t.layout,d=t.chartName,h=null!==(e=o.props.cursor)&&void 0!==e?e:null===(r=o.type.defaultProps)||void 0===r?void 0:r.cursor;if(!o||!h||!a||!c||"ScatterChart"!==d&&"axis"!==i)return null;var y=c_;if("ScatterChart"===d)n=c,y=zP;else if("BarChart"===d)n=function(t,e,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-o:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-o,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(p,c,l,f),y=jP;else if("radial"===p){var v=HC(c),g=v.cx,m=v.cy,b=v.radius;n={cx:g,cy:m,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:b,outerRadius:b},y=XS}else n={points:FC(p,c,l)},y=c_;var w=WC(WC(WC(WC({stroke:"#ccc",pointerEvents:"none"},l),n),lc(h,!1)),{},{payload:u,payloadIndex:s,className:Dn("recharts-tooltip-cursor",h.className)});return ft(h)?xt(h,w):Ot(y,w)}var YC=["item"],XC=["children","className","width","height","style","compact","title","desc"];function KC(t){return KC="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},KC(t)}function GC(){return GC=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},GC.apply(this,arguments)}function JC(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||aT(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 QC(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function tT(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,fT(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function eT(t,e,r){return e=nT(e),function(t,e){if(e&&("object"===KC(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,rT()?Reflect.construct(e,r||[],nT(t).constructor):e.apply(t,r))}function rT(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(rT=function(){return!!t})()}function nT(t){return nT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nT(t)}function oT(t,e){return oT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},oT(t,e)}function iT(t){return function(t){if(Array.isArray(t))return cT(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||aT(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 aT(t,e){if(t){if("string"==typeof t)return cT(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)?cT(t,e):void 0}}function cT(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 uT(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 lT(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?uT(Object(r),!0).forEach((function(e){sT(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sT(t,e,r){return(e=fT(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fT(t){var e=function(t,e){if("object"!=KC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=KC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==KC(e)?e:e+""}var pT={xAxis:["bottom","top"],yAxis:["left","right"]},dT={width:"100%",height:"100%"},hT={x:0,y:0};function yT(t){return t}var vT=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,o=e.dataEndIndex,i=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(iT(t),iT(r)):t}),[]);return i.length>0?i:t&&t.length&&Da(n)&&Da(o)?t.slice(n,o+1):[]};function gT(t){return"number"===t?[0,"auto"]:void 0}var mT=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=vT(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce((function(o,c){var u,l,s=null!==(u=c.props.data)&&void 0!==u?u:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?l=$a(void 0===s?a:s,i.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(iT(o),[JO(c,l)]):o}),[])},bT=function(t,e,r,n){var o=n||{x:t.chartX,y:t.chartY},i=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(o,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,u=0;u<a;u++){var l=u>0?n[u-1].coordinate:n[a-1].coordinate,s=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,p=void 0;if(Ca(s-l)!==Ca(f-s)){var d=[];if(Ca(f-s)===Ca(c[1]-c[0])){p=f;var h=s+c[1]-c[0];d[0]=Math.min(h,(h+l)/2),d[1]=Math.max(h,(h+l)/2)}else{p=l;var y=f+c[1]-c[0];d[0]=Math.min(s,(y+s)/2),d[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=d[0]&&t<=d[1]){i=n[u].index;break}}else{var g=Math.min(l,f),m=Math.max(l,f);if(t>(g+s)/2&&t<=(m+s)/2){i=n[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){i=r[b].index;break}return i}(i,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=mT(t,e,l,s),p=function(t,e,r,n){var o=e.find((function(t){return t&&t.index===r}));if(o){if("horizontal"===t)return{x:o.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:o.coordinate};if("centric"===t){var i=o.coordinate,a=n.radius;return lT(lT(lT({},n),iS(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var c=o.coordinate,u=n.angle;return lT(lT(lT({},n),iS(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return hT}(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},wT=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=LO(l,o);return r.reduce((function(e,r){var d,h=void 0!==r.type.defaultProps?lT(lT({},r.type.defaultProps),r.props):r.props,y=h.type,v=h.dataKey,g=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,O=h[i];if(e[O])return e;var S,_,j,P=vT(t.data,{graphicalItems:n.filter((function(t){var e;return(i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i])===O})),dataStartIndex:c,dataEndIndex:u}),A=P.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&&Da(n)&&Da(o))return!0}return!1})(h.domain,g,y)&&(S=XO(h.domain,null,g),!p||"number"!==y&&"auto"===b||(j=DO(P,v,"category")));var M=gT(y);if(!S||0===S.length){var k,E=null!==(k=h.domain)&&void 0!==k?k:M;if(v){if(S=DO(P,v,y),"category"===y&&p){var C=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(S);m&&C?(_=S,S=MA(0,A)):m||(S=GO(E,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(iT(t),[e])}),[]))}else if("category"===y)S=m?S.filter((function(t){return""!==t&&!fa(t)})):GO(E,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||fa(e)?t:[].concat(iT(t),[e])}),[]);else if("number"===y){var T=function(t,e,r,n,o){var i=e.map((function(e){return NO(t,e,r,o,n)})).filter((function(t){return!fa(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}(P,n.filter((function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===O&&(x||!o)})),v,o,l);T&&(S=T)}!p||"number"!==y&&"auto"===b||(j=DO(P,v,"category"))}else S=p?MA(0,A):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:ZO(a[O].stackGroups,c,u):RO(P,n.filter((function(t){var e=i in t.props?t.props[i]:t.type.defaultProps[i],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===O&&(x||!r)})),y,l,!0);if("number"===y)S=CC(s,S,O,o,w),E&&(S=XO(E,S,g));else if("category"===y&&E){var D=E;S.every((function(t){return D.indexOf(t)>=0}))&&(S=D)}}return lT(lT({},e),{},sT({},O,lT(lT({},h),{},{axisType:o,domain:S,categoricalDomain:j,duplicateDomain:_,originalDomain:null!==(d=h.domain)&&void 0!==d?d:M,isCategorical:p,layout:l})))}),{})},xT=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=oc(l,o),p={};return f&&f.length?p=wT(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):i&&i.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=vT(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,d=LO(l,o),h=-1;return r.reduce((function(t,e){var y,v=(void 0!==e.type.defaultProps?lT(lT({},e.type.defaultProps),e.props):e.props)[i],g=gT("number");return t[v]?t:(h++,d?y=MA(0,p):a&&a[v]&&a[v].hasStack?(y=ZO(a[v].stackGroups,c,u),y=CC(s,y,v,o)):(y=XO(g,RO(f,r.filter((function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===v&&!o})),"number",l),n.defaultProps.allowDataOverflow),y=CC(s,y,v,o)),lT(lT({},t),{},sT({},v,lT(lT({axisType:o},n.defaultProps),{},{hide:!0,orientation:ua(pT,"".concat(o,".").concat(h%2),null),domain:y,originalDomain:g,isCategorical:d,layout:l}))))}),{})}(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},OT=function(t){var e=t.children,r=t.defaultShowTooltip,n=ic(e,KA),o=0,i=0;return t.data&&0!==t.data.length&&(i=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},ST=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"}},_T=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),o=void 0===n?{}:n,i=t.yAxisMap,a=void 0===i?{}:i,c=r.width,u=r.height,l=r.children,s=r.margin||{},f=ic(l,KA),p=ic(l,Hd),d=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:lT(lT({},t),{},sT({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),h=Object.keys(o).reduce((function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:lT(lT({},t),{},sT({},n,ua(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=lT(lT({},h),d),v=y.bottom;f&&(y.bottom+=f.props.height||KA.defaultProps.height),p&&e&&(y=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,c=i-(a.left||0)-(a.right||0),u=jO({children:o,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,p=u.align,d=u.verticalAlign,h=u.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==p&&Da(t[p]))return EO(EO({},t),{},CO({},p,t[p]+(s||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&Da(t[d]))return EO(EO({},t),{},CO({},d,t[d]+(f||0)))}return t}(y,0,r,e));var g=c-y.left-y.right,m=u-y.top-y.bottom;return lT(lT({brushBottom:v},y),{},{width:Math.max(g,0),height:Math.max(m,0)})},jT=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},PT=function(t){var e=t.chartName,r=t.GraphicalChild,n=t.defaultTooltipEventType,o=void 0===n?"axis":n,i=t.validateTooltipEventTypes,a=void 0===i?["axis"]:i,c=t.axisComponents,u=t.legendContent,l=t.formatAxisMap,s=t.defaultProps,f=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,u=e.dataEndIndex,l=t.barSize,s=t.layout,f=t.barGap,p=t.barCategoryGap,d=t.maxBarSize,h=ST(s),y=h.numericAxisName,v=h.cateAxisName,g=function(t){return!(!t||!t.length)&&t.some((function(t){var e=tc(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),m=[];return r.forEach((function(r,h){var b=vT(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:u}),w=void 0!==r.type.defaultProps?lT(lT({},r.type.defaultProps),r.props):r.props,x=w.dataKey,O=w.maxBarSize,S=w["".concat(y,"Id")],_=w["".concat(v,"Id")],j=c.reduce((function(t,n){var o,i,a=e["".concat(n.axisType,"Map")],c=w["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?aO(0,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(o=null==r||null===(i=r.type)||void 0===i?void 0:i.displayName)&&void 0!==o?o:"")):aO());var u=a[c];return lT(lT({},t),{},sT(sT({},n.axisType,u),"".concat(n.axisType,"Ticks"),BO(u)))}),{}),P=j[v],A=j["".concat(v,"Ticks")],M=n&&n[S]&&n[S].hasStack&&function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?EO(EO({},t.type.defaultProps),t.props):t.props).stackId;if(Ia(n)){var o=e[n];if(o){var i=o.items.indexOf(t);return i>=0?o.stackedData[i]:null}}return null}(r,n[S].stackGroups),k=tc(r.type).indexOf("Bar")>=0,E=KO(P,A),C=[],T=g&&function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),c=0,u=a.length;c<u;c++)for(var l=o[a[c]].stackGroups,s=Object.keys(l),f=0,p=s.length;f<p;f++){var d=l[s[f]],h=d.items,y=d.cateAxisId,v=h.filter((function(t){return tc(t.type).indexOf("Bar")>=0}));if(v&&v.length){var g=v[0].type.defaultProps,m=void 0!==g?EO(EO({},g),v[0].props):v[0].props,b=m.barSize,w=m[y];i[w]||(i[w]=[]);var x=fa(b)?e:b;i[w].push({item:v[0],stackList:v.slice(1),barSize:fa(x)?void 0:La(x,r,0)})}}return i}({barSize:l,stackGroups:n,totalSize:jT(j,v)});if(k){var D,I,N=fa(O)?d:O,R=null!==(D=null!==(I=KO(P,A,!0))&&void 0!==I?I:N)&&void 0!==D?D:0;C=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,o=t.sizeList,i=void 0===o?[]:o,a=t.maxBarSize,c=i.length;if(c<1)return null;var u,l=La(e,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/c,d=i.reduce((function(t,e){return t+e.barSize||0}),0);(d+=(c-1)*l)>=n&&(d-=(c-1)*l,l=0),d>=n&&p>0&&(f=!0,d=c*(p*=.9));var h={offset:((n-d)/2|0)-l,size:0};u=i.reduce((function(t,e){var r={item:e.item,position:{offset:h.offset+h.size+l,size:f?p:e.barSize}},n=[].concat(AO(t),[r]);return h=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:h})})),n}),s)}else{var y=La(r,n,0,!0);n-2*y-(c-1)*l<=0&&(l=0);var v=(n-2*y-(c-1)*l)/c;v>1&&(v>>=0);var g=a===+a?Math.min(v,a):v;u=i.reduce((function(t,e,r){var n=[].concat(AO(t),[{item:e.item,position:{offset:y+(v+l)*r+(v-g)/2,size:g}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:n[n.length-1].position})})),n}),s)}return u}({barGap:f,barCategoryGap:p,bandSize:R!==E?R:E,sizeList:T[_],maxBarSize:N}),R!==E&&(C=C.map((function(t){return lT(lT({},t),{},{position:lT(lT({},t.position),{},{offset:t.position.offset-R/2})})})))}var L,B,z=r&&r.type&&r.type.getComposedData;z&&m.push({props:lT(lT({},z(lT(lT({},j),{},{displayedData:b,props:t,dataKey:x,item:r,bandSize:E,barPosition:C,offset:o,stackedData:M,layout:s,dataStartIndex:a,dataEndIndex:u}))),{},sT(sT(sT({key:r.key||"item-".concat(h)},y,j[y]),v,j[v]),"animationId",i)),childIndex:(L=r,B=t.children,nc(B).indexOf(L)),item:r})})),m},p=function(t,n){var o=t.props,i=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!ac({props:o}))return null;var s=o.children,p=o.layout,d=o.stackOffset,h=o.data,y=o.reverseStackOrder,v=ST(p),g=v.numericAxisName,m=v.cateAxisName,b=oc(s,r),w=function(t,e,r,n,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce((function(t,e){var o,i=null!==(o=e.type)&&void 0!==o&&o.defaultProps?EO(EO({},e.type.defaultProps),e.props):e.props,a=i.stackId;if(i.hide)return t;var c=i[r],u=t[c]||{hasStack:!1,stackGroups:{}};if(Ia(a)){var l=u.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};l.items.push(e),u.hasStack=!0,u.stackGroups[a]=l}else u.stackGroups[Ra("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return EO(EO({},t),{},CO({},c,u))}),{});return Object.keys(a).reduce((function(e,i){var c=a[i];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,i){var a=c.stackGroups[i];return EO(EO({},e),{},CO({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:UO(t,a.items,o)}))}),{})),EO(EO({},e),{},CO({},i,c))}),{})}(h,b,"".concat(g,"Id"),"".concat(m,"Id"),d,y),x=c.reduce((function(t,e){var r="".concat(e.axisType,"Map");return lT(lT({},t),{},sT({},r,xT(o,lT(lT({},e),{},{graphicalItems:b,stackGroups:e.axisType===g&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),O=_T(lT(lT({},x),{},{props:o,graphicalItems:b}),null==n?void 0:n.legendBBox);Object.keys(x).forEach((function(t){x[t]=l(o,x[t],O,t.replace("Map",""),e)}));var S,_,j=x["".concat(m,"Map")],P=(S=Ba(j),{tooltipTicks:_=BO(S,!1,!0),orderedTooltipTicks:eh(_,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:KO(S,_)}),A=f(o,lT(lT({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:u,graphicalItems:b,stackGroups:w,offset:O}));return lT(lT({formattedGraphicalItems:A,graphicalItems:b,offset:O,stackGroups:w},P),x)},d=function(t){function r(t){var n,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),sT(i=eT(this,r,[t]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),sT(i,"accessibilityManager",new $C),sT(i,"handleLegendBBoxUpdate",(function(t){if(t){var e=i.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;i.setState(lT({legendBBox:t},p({props:i.props,dataStartIndex:r,dataEndIndex:n,updateId:o},lT(lT({},i.state),{},{legendBBox:t}))))}})),sT(i,"handleReceiveSyncEvent",(function(t,e,r){if(i.props.syncId===t){if(r===i.eventEmitterSymbol&&"function"!=typeof i.props.syncMethod)return;i.applySyncEvent(e)}})),sT(i,"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==i.state.dataStartIndex||r!==i.state.dataEndIndex){var n=i.state.updateId;i.setState((function(){return lT({dataStartIndex:e,dataEndIndex:r},p({props:i.props,dataStartIndex:e,dataEndIndex:r,updateId:n},i.state))})),i.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),sT(i,"handleMouseEnter",(function(t){var e=i.getMouseInfo(t);if(e){var r=lT(lT({},e),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseEnter;ya(n)&&n(r,t)}})),sT(i,"triggeredAfterMouseMove",(function(t){var e=i.getMouseInfo(t),r=e?lT(lT({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseMove;ya(n)&&n(r,t)})),sT(i,"handleItemMouseEnter",(function(t){i.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),sT(i,"handleItemMouseLeave",(function(){i.setState((function(){return{isTooltipActive:!1}}))})),sT(i,"handleMouseMove",(function(t){t.persist(),i.throttleTriggeredAfterMouseMove(t)})),sT(i,"handleMouseLeave",(function(t){i.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};i.setState(e),i.triggerSyncEvent(e);var r=i.props.onMouseLeave;ya(r)&&r(e,t)})),sT(i,"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&Qa[e]?Qa[e]:null}(t),n=ua(i.props,"".concat(r));r&&ya(n)&&n(null!==(e=/.*touch.*/i.test(r)?i.getMouseInfo(t.changedTouches[0]):i.getMouseInfo(t))&&void 0!==e?e:{},t)})),sT(i,"handleClick",(function(t){var e=i.getMouseInfo(t);if(e){var r=lT(lT({},e),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onClick;ya(n)&&n(r,t)}})),sT(i,"handleMouseDown",(function(t){var e=i.props.onMouseDown;ya(e)&&e(i.getMouseInfo(t),t)})),sT(i,"handleMouseUp",(function(t){var e=i.props.onMouseUp;ya(e)&&e(i.getMouseInfo(t),t)})),sT(i,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),sT(i,"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseDown(t.changedTouches[0])})),sT(i,"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseUp(t.changedTouches[0])})),sT(i,"handleDoubleClick",(function(t){var e=i.props.onDoubleClick;ya(e)&&e(i.getMouseInfo(t),t)})),sT(i,"handleContextMenu",(function(t){var e=i.props.onContextMenu;ya(e)&&e(i.getMouseInfo(t),t)})),sT(i,"triggerSyncEvent",(function(t){void 0!==i.props.syncId&&IC.emit(NC,i.props.syncId,t,i.eventEmitterSymbol)})),sT(i,"applySyncEvent",(function(t){var e=i.props,r=e.layout,n=e.syncMethod,o=i.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)i.setState(lT({dataStartIndex:a,dataEndIndex:c},p({props:i.props,dataStartIndex:a,dataEndIndex:c,updateId:o},i.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=i.state,d=f.offset,h=f.tooltipTicks;if(!d)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var y=0;y<h.length;y++)if(h[y].value===t.activeLabel){s=y;break}}var v=lT(lT({},d),{},{x:d.left,y:d.top}),g=Math.min(u,v.x+v.width),m=Math.min(l,v.y+v.height),b=h[s]&&h[s].value,w=mT(i.state,i.props.data,s),x=h[s]?{x:"horizontal"===r?h[s].coordinate:g,y:"horizontal"===r?m:h[s].coordinate}:hT;i.setState(lT(lT({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else i.setState(t)})),sT(i,"renderCursor",(function(t){var r,n=i.state,o=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,u=n.offset,l=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=i.getTooltipEventType(),p=null!==(r=t.props.active)&&void 0!==r?r:o,d=i.props.layout,h=t.key||"_recharts-cursor";return st.createElement(qC,{key:h,activeCoordinate:a,activePayload:c,activeTooltipIndex:l,chartName:e,element:t,isActive:p,layout:d,offset:u,tooltipAxisBandSize:s,tooltipEventType:f})})),sT(i,"renderPolarAxis",(function(t,e,r){var n=ua(t,"type.axisType"),o=ua(i.state,"".concat(n,"Map")),a=t.type.defaultProps,c=void 0!==a?lT(lT({},a),t.props):t.props,u=o&&o[c["".concat(n,"Id")]];return xt(t,lT(lT({},u),{},{className:Dn(n,u.className),key:t.key||"".concat(e,"-").concat(r),ticks:BO(u,!0)}))})),sT(i,"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,o=e.polarRadius,a=i.state,c=a.radiusAxisMap,u=a.angleAxisMap,l=Ba(c),s=Ba(u),f=s.cx,p=s.cy,d=s.innerRadius,h=s.outerRadius;return xt(t,{polarAngles:Array.isArray(n)?n:BO(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(o)?o:BO(l,!0).map((function(t){return t.coordinate})),cx:f,cy:p,innerRadius:d,outerRadius:h,key:t.key||"polar-grid",radialLines:r})})),sT(i,"renderLegend",(function(){var t=i.state.formattedGraphicalItems,e=i.props,r=e.children,n=e.width,o=e.height,a=i.props.margin||{},c=n-(a.left||0)-(a.right||0),l=jO({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:u});if(!l)return null;var s=l.item,f=QC(l,YC);return xt(s,lT(lT({},f),{},{chartWidth:n,chartHeight:o,margin:a,onBBoxUpdate:i.handleLegendBBoxUpdate}))})),sT(i,"renderTooltip",(function(){var t,e=i.props,r=e.children,n=e.accessibilityLayer,o=ic(r,Jh);if(!o)return null;var a=i.state,c=a.isTooltipActive,u=a.activeCoordinate,l=a.activePayload,s=a.activeLabel,f=a.offset,p=null!==(t=o.props.active)&&void 0!==t?t:c;return xt(o,{viewBox:lT(lT({},f),{},{x:f.left,y:f.top}),active:p,label:s,payload:p?l:[],coordinate:u,accessibilityLayer:n})})),sT(i,"renderBrush",(function(t){var e=i.props,r=e.margin,n=e.data,o=i.state,a=o.offset,c=o.dataStartIndex,u=o.dataEndIndex,l=o.updateId;return xt(t,{key:t.key||"_recharts-brush",onChange:$O(i.handleBrushChange,t.props.onChange),data:n,x:Da(t.props.x)?t.props.x:a.left,y:Da(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Da(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),sT(i,"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=i.clipPathId,o=i.state,a=o.xAxisMap,c=o.yAxisMap,u=o.offset,l=t.type.defaultProps||{},s=t.props,f=s.xAxisId,p=void 0===f?l.xAxisId:f,d=s.yAxisId,h=void 0===d?l.yAxisId:d;return xt(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[p],yAxis:c[h],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:n})})),sT(i,"renderActivePoints",(function(t){var e=t.item,n=t.activePoint,o=t.basePoint,i=t.childIndex,a=t.isRange,c=[],u=e.props.key,l=void 0!==e.item.type.defaultProps?lT(lT({},e.item.type.defaultProps),e.item.props):e.item.props,s=l.activeDot,f=lT(lT({index:i,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:IO(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},lc(s,!1)),qa(s));return c.push(r.renderActiveDot(s,f,"".concat(u,"-activePoint-").concat(i))),o?c.push(r.renderActiveDot(s,lT(lT({},f),{},{cx:o.x,cy:o.y}),"".concat(u,"-basePoint-").concat(i))):a&&c.push(null),c})),sT(i,"renderGraphicChild",(function(t,e,r){var n=i.filterFormatItem(t,e,r);if(!n)return null;var o=i.getTooltipEventType(),a=i.state,c=a.isTooltipActive,u=a.tooltipAxis,l=a.activeTooltipIndex,s=a.activeLabel,f=ic(i.props.children,Jh),p=n.props,d=p.points,h=p.isRange,y=p.baseLine,v=void 0!==n.item.type.defaultProps?lT(lT({},n.item.type.defaultProps),n.item.props):n.item.props,g=v.activeDot,m=v.hide,b=v.activeBar,w=v.activeShape,x=Boolean(!m&&c&&f&&(g||b||w)),O={};"axis"!==o&&f&&"click"===f.props.trigger?O={onClick:$O(i.handleItemMouseEnter,t.props.onClick)}:"axis"!==o&&(O={onMouseLeave:$O(i.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:$O(i.handleItemMouseEnter,t.props.onMouseEnter)});var S=xt(t,lT(lT({},n.props),O));if(x){if(!(l>=0)){var _,j=(null!==(_=i.getItemByXY(i.state.activeCoordinate))&&void 0!==_?_:{graphicalItem:S}).graphicalItem,P=j.item,A=void 0===P?t:P,M=j.childIndex,k=lT(lT(lT({},n.props),O),{},{activeIndex:M});return[xt(A,k),null,null]}var E,C;if(u.dataKey&&!u.allowDuplicatedCategory){var T="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());E=$a(d,T,s),C=h&&y&&$a(y,T,s)}else E=null==d?void 0:d[l],C=h&&y&&y[l];if(w||b){var D=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[xt(t,lT(lT(lT({},n.props),O),{},{activeIndex:D})),null,null]}if(!fa(E))return[S].concat(iT(i.renderActivePoints({item:n,activePoint:E,basePoint:C,childIndex:l,isRange:h})))}return h?[S,null,null]:[S,null]})),sT(i,"renderCustomized",(function(t,e,r){return xt(t,lT(lT({key:"recharts-customized-".concat(r)},i.props),i.state))})),sT(i,"renderMap",{CartesianGrid:{handler:yT,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:yT},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:yT},YAxis:{handler:yT},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:Ra("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=ny(i.triggeredAfterMouseMove,null!==(o=t.throttleDelay)&&void 0!==o?o:1e3/60),i.state={},i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&oT(t,e)}(r,jt),tT(r,[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,o=t.layout,i=ic(e,Jh);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length-1)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=mT(this.state,r,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===o?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=lT(lT({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(d),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;var r,n;(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin)&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}});return null}},{key:"componentDidUpdate",value:function(t){sc([ic(t.children,Jh)],[ic(this.props.children,Jh)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=ic(this.props.children,Jh);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return a.indexOf(e)>=0?e:o}return o}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),o={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(t.pageX-o.left),chartY:Math.round(t.pageY-o.top)},a=n.width/r.offsetWidth||1,c=this.inRange(i.chartX,i.chartY,a);if(!c)return null;var u=this.state,l=u.xAxisMap,s=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&s){var f=Ba(l).scale,p=Ba(s).scale,d=f&&f.invert?f.invert(i.chartX):null,h=p&&p.invert?p.invert(i.chartY):null;return lT(lT({},i),{},{xValue:d,yValue:h})}var y=bT(this.state,this.props.data,this.props.layout,c);return y?lT(lT({},i),y):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=t/r,i=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var c=this.state,u=c.angleAxisMap,l=c.radiusAxisMap;if(u&&l){var s=Ba(u);return uS({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=ic(t,Jh),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),lT(lT({},qa(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){IC.on(NC,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){IC.removeListener(NC,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o<i;o++){var a=n[o];if(a.item===t||a.props.key===t.key||e===tc(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,o=e.height,i=e.width;return st.createElement("defs",null,st.createElement("clipPath",{id:t},st.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=JC(e,2),n=r[0],o=r[1];return lT(lT({},t),{},sT({},n,o.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=JC(e,2),n=r[0],o=r[1];return lT(lT({},t),{},sT({},n,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var o=0,i=r.length;o<i;o++){var a=r[o],c=a.props,u=a.item,l=void 0!==u.type.defaultProps?lT(lT({},u.type.defaultProps),u.props):u.props,s=tc(u.type);if("Bar"===s){var f=(c.data||[]).find((function(e){return SP(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(c.data||[]).find((function(e){return uS(t,e)}));if(p)return{graphicalItem:a,payload:p}}else if(mA(a,n)||bA(a,n)||wA(a,n)){var d=_A({graphicalItem:a,activeTooltipItem:n,itemData:l.data}),h=void 0===l.activeIndex?d:l.activeIndex;return{graphicalItem:lT(lT({},a),{},{childIndex:h}),payload:wA(a,n)?l.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var t=this;if(!ac(this))return null;var e,r,n=this.props,o=n.children,i=n.className,a=n.width,c=n.height,u=n.style,l=n.compact,s=n.title,f=n.desc,p=QC(n,XC),d=lc(p,!1);if(l)return st.createElement(dk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},st.createElement(vc,GC({},d,{width:a,height:c,title:s,desc:f}),this.renderClipPath(),pc(o,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,d.role=null!==(r=this.props.role)&&void 0!==r?r:"application",d.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},d.onFocus=function(){t.accessibilityManager.focus()});var h=this.parseEventsOfWrapper();return st.createElement(dk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},st.createElement("div",GC({className:Dn("recharts-wrapper",i),style:lT({position:"relative",cursor:"default",width:a,height:c},u)},h,{ref:function(e){t.container=e}}),st.createElement(vc,GC({},d,{width:a,height:c,title:s,desc:f,style:dT}),this.renderClipPath(),pc(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();sT(d,"displayName",e),sT(d,"defaultProps",lT({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},s)),sT(d,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,o=t.children,i=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var d=OT(t);return lT(lT(lT({},d),{},{updateId:0},p(lT(lT({props:t},d),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(r!==e.prevDataKey||n!==e.prevData||i!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!Ha(l,e.prevMargin)){var h=OT(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=lT(lT({},bT(e,n,c)),{},{updateId:e.updateId+1}),g=lT(lT(lT({},h),y),v);return lT(lT(lT({},g),p(lT({props:t},g),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(!sc(o,e.prevChildren)){var m,b,w,x,O=ic(o,KA),S=O&&null!==(m=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==m?m:s,_=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,j=S!==s||_!==f,P=!fa(n)&&!j?e.updateId:e.updateId+1;return lT(lT({updateId:P},p(lT(lT({props:t},e),{},{updateId:P,dataStartIndex:S,dataEndIndex:_}),e)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:_})}return null})),sT(d,"renderActiveDot",(function(t,e,r){var n;return n=ft(t)?xt(t,e):ya(t)?t(e):st.createElement(AP,e),st.createElement(Rc,{className:"recharts-active-dot",key:r},n)}));var h=ht((function(t,e){return st.createElement(d,GC({},t,{ref:e}))}));return h.displayName=d.displayName,h},AT=PT({chartName:"LineChart",GraphicalChild:UE,axisComponents:[{axisType:"xAxis",AxisComp:vC},{axisType:"yAxis",AxisComp:AC}],formatAxisMap:VM}),MT=PT({chartName:"AreaChart",GraphicalChild:iC,axisComponents:[{axisType:"xAxis",AxisComp:vC},{axisType:"yAxis",AxisComp:AC}],formatAxisMap:VM});const kT=({formatter:n,labelFormatter:o,payload:i,cx:a,cy:c})=>{const u=100;return Number.isFinite(i.value)?t("svg",{x:a-50,y:c-60,width:u,height:68,viewBox:"0 0 100 68",xmlns:"http://www.w3.org/2000/svg",children:[o&&t(r,{children:[e("rect",{fill:"white",width:"98",height:"45",stroke:Hr.coolElegance(),strokeWidth:"1",rx:"7",ry:"7",className:"shadow"}),e("text",{y:"14",x:"50%",fontSize:10,dominantBaseline:"middle",textAnchor:"middle",children:o(0,[{payload:i}])}),e("text",{y:"30",x:"50%",fontSize:11,dominantBaseline:"middle",textAnchor:"middle",fontWeight:"bold",children:n?n(i.value||0):i.value}),e("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"30",opacity:"0.7",children:e("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:Hr.coolElegance(),transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})}),e("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"28",children:e("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:"white",transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})})]}),e("rect",{x:43,y:"52",width:14,height:14,rx:7,fill:"white",stroke:Hr.coolElegance(),strokeWidth:"2"})]}):e(r,{})},ET=({data:r,dataKey:n,width:o="100%",height:i="100%",areaType:a="linear",isAnimated:c=!1,formatter:u,labelFormatter:l,sampleRate:s,style:f})=>{const{isNetGain:p}=Nr({data:r,dataKey:n}),d=Cn(),h=Cn(),y=s?zr({arr:r||[],n:s}):r;let v,g;y?.length?(g=p?Hr.mint():Hr.coolElegance(),v=y?.map((t=>{const e=parseFloat(t[n]);return{...t,[n]:Number.isFinite(e)?e:null}}))):(g=Hr.coolElegance(),v=[{[n]:1},{[n]:1}]);const m={cursor:y?.length?"crosshair":"default",...f};return e(sy,{width:o,minHeight:i,id:d,children:t(MT,{data:v,margin:{top:20,right:0,left:0,bottom:20},style:m,children:[e("defs",{children:t("linearGradient",{id:h,x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:g,stopOpacity:.8}),e("stop",{offset:"95%",stopColor:g,stopOpacity:0})]})}),e(AC,{domain:y?.length?["dataMin","dataMax"]:[0,2],hide:!0}),e(iC,{type:a,dataKey:n,stroke:g,fill:`url(#${h})`,isAnimationActive:c,activeDot:t=>kT({labelFormatter:l,formatter:u,...t}),dot:!1}),y?.length&&e(Jh,{cursor:!1,content:()=>null})]})})},CT=({isCloseable:t,onClick:r})=>{const n=l({ssr:!1});return e(s,{children:e(f,{label:t?"Click to dismiss":null,hasArrow:!0,fontFamily:"mono",fontSize:"12px",children:e(p,{onClick:r,cursor:t?"pointer":"default",bgColor:{base:"rgba(143, 163, 255, 0.9)",sm:"rgba(117, 143, 255, 0.9)",md:"rgba(77, 109, 255, 0.9)",lg:"rgba(24, 74, 201, 0.9)",xl:"rgba(19, 60, 164, 0.9)","2xl":"rgba(15, 47, 128, 0.9)"},color:{base:Hr.black(),md:"white"},position:"fixed",top:"0",right:"0",padding:"2",fontSize:"xs",zIndex:"5",width:"10rem",boxShadow:"dark-lg",fontFamily:"mono",children:n})})})},TT=({children:t,...r})=>e(d,{border:"solid 1px",borderColor:Hr.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:t}),DT=({isSelected:t,children:r,...n})=>e(h,{variant:"none",paddingX:"1",fontSize:"sm",color:t?"brand.500":Hr.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:t?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),IT=({children:t,...r})=>e(y,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:Hr.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:t}),NT=r=>{const{carouselContents:n,isNavVertical:o,...i}=r,[a,c]=gt(0);return n.length>=1&&e(IT,{children:t(v,{gap:10,direction:o?"column":{base:"column",md:"row"},...i,children:[n[a],t(v,{alignItems:"flex-end",justifyContent:"center",gap:6,children:[e(g,{variant:"ghost",isDisabled:0===a,"aria-label":"Previous content",icon:e(Lt,{}),onClick:()=>{a>0&&a<=n.length-1&&c((t=>t-1))}}),e(g,{variant:"ghost",isDisabled:a===n.length-1,"aria-label":"Next content",icon:e(Bt,{}),onClick:()=>{a<n.length-1&&c((t=>t+1))}})]})]})})},RT=t=>{const{isIndeterminate:r,isChecked:n,...o}=t;return n?e(Ht,{...o}):r?e(ve,{...o}):null},LT=r=>{const{size:n,isDisabled:o,isReadOnly:i,isRequired:a,isIndeterminate:c,name:u,register:l,errorMessage:s,label:f,labelPosition:p="left",spaceBetween:d,onClick:h,...y}=r,g=l?l(u):void 0;return t(m,{as:v,flexDir:"column",isInvalid:Boolean(s),isDisabled:o,isReadOnly:i,isRequired:a,children:[t(v,{onClick:h,w:"full",alignItems:"center",justifyContent:d?"space-between":"auto",children:["left"===p&&e(b,{fontSize:n,m:"0",mr:"3",children:f}),e(w,{icon:e(RT,{}),isDisabled:o,isReadOnly:i,isRequired:a,isIndeterminate:c,isInvalid:Boolean(s),size:n,...g,...y}),"right"===p&&e(b,{fontSize:n,m:"0",ml:"3",children:f})]}),e(v,{w:"full",children:s&&e(x,{size:n,children:s})})]})},BT=O(((t,r)=>{const{children:n,uiColor:o,...i}=t;return e(h,{py:"1",px:"2",height:"auto",ref:r,size:"xs",bgColor:`${o}.500 !important`,color:"black",transition:"background-color 0.25s",sx:{"&:not(:disabled):hover, &:not(:disabled):focus, &:not(:disabled)[data-active]":{bgColor:`${o}.300 !important`}},fontSize:"12px",...i,children:n})})),zT=({uiColor:r,isLocalDev:n,enableRefetch:o,setEnableRefetch:i,setShowBreakpointDebugger:a,onDrawerClose:c})=>{const[u,l]=gt(!1),[s,f]=gt(!1),[p,d]=gt(!1);bt((()=>{document.body.classList.contains("show-outlines")&&l(!0),document.body.classList.contains("show-error-boundaries")&&f(!0);const t=document.querySelector(".tsqd-queries-container");d(Boolean(t))}),[i]);const h={width:{base:"full",md:"auto"},uiColor:r};return t(v,{flexDir:"column",children:[e(S,{as:"h3",fontSize:"md",borderBottom:"solid 1px",borderColor:`${r}.700`,mb:"2",fontFamily:"mono",children:"Actions"}),t(_,{children:[t(BT,{onClick:()=>{if(document.querySelector(".tsqd-queries-container")){const t=document.querySelector(".tsqd-minimize-btn");t?.click(),d(!1)}else{const t=document.querySelector(".tsqd-open-btn");t?.click(),d(!0)}},isDisabled:!n,...h,children:[p?"Hide":"Show"," React Query console"]}),t(BT,{onClick:()=>{o?localStorage.setItem("enableRefetch","false"):localStorage.removeItem("enableRefetch"),i(!o),window.location.reload()},position:"relative",...h,_after:o?{}:{bg:"purple.500",borderRadius:"full",width:"3",height:"3",position:"absolute",top:"-0.25rem",right:"-0.25rem",zIndex:"1",content:'""'},children:[o?"Disable":"Enable"," refetch intervals"]}),e(BT,{onClick:()=>{c(),a(!0)},...h,children:"Show breakpoint debugger"}),t(BT,{onClick:()=>{l(!u),document.body.classList.toggle("show-outlines")},...h,children:[u?"Hide":"Show"," outlines"]}),t(BT,{onClick:()=>{f(!s),document.body.classList.toggle("show-error-boundaries")},...h,children:[s?"Hide":"Show"," error boundaries"]})]})]})},$T=({data:r,heading:n,uiColor:o,buttons:i})=>t(v,{flexDir:"column",children:[t(v,{borderBottom:"solid 1px",borderColor:`${o}.700`,mb:"2",justifyContent:"flex-end",children:[n&&e(S,{as:"h3",fontSize:"md",fontFamily:"mono",children:n}),e(v,{ml:"auto",mb:"5px",gap:"2",flexWrap:"wrap",children:i})]}),e(j,{columns:2,gap:1,children:r.map((r=>t(Pt,{children:[e(p,{textTransform:"uppercase",children:r.label}),e(p,{children:r.value})]},r.label)))})]}),HT=({children:n,footer:o,consoleButton:i,isLocalDev:a})=>{const{isOpen:c,onOpen:u,onClose:l}=P(),[s,f]=gt(!1),p=a?"green":"yellow";return bt((()=>{const t=t=>{t.ctrlKey&&"d"===t.key&&(c?l():u())};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[c,l,u]),bt((()=>{const t=t=>{t.ctrlKey&&"j"===t.key&&f(!s)};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[s,f]),t(r,{children:[t(A,{isOpen:c,placement:"right",onClose:l,size:"lg",children:[e(M,{}),t(k,{bg:"blackAlpha.900",color:`${p}.500`,fontFamily:"monospace",className:"dev-console",children:[e(E,{}),e(C,{children:e(v,{gap:"4",alignItems:"center",children:e(S,{as:"h1",fontFamily:"monospace",fontSize:"xl",p:"0",children:"Dev Console"})})}),e(T,{fontSize:"11px",children:e(v,{gap:8,flexDir:"column",children:n({uiColor:p,onClose:l})})}),o({uiColor:p})]})]}),i({uiColor:p,onClose:l,isOpen:c,hideButton:s,onOpen:u})]})},FT=({hideButton:n,enableRefetch:o,onOpen:i,uiColor:a,hasSystemOverride:c,authBypassEnabled:u})=>{const l=!o||c||u;return e(s,{children:!n&&t(D,{position:"fixed",top:"4",right:"4",zIndex:"1000",bgColor:"blackAlpha.800",borderRadius:"md",transition:"background-color 0.25s",className:"dev-console",_hover:{bgColor:"blackAlpha.900"},children:[l&&e(D,{bg:"purple.500",borderRadius:"full",width:"3",height:"3",position:"absolute",top:"-0.25rem",right:"-0.25rem",zIndex:"1"}),e(f,{label:t(v,{flexDir:"column",gap:"0.5",padding:"1",fontFamily:"mono",fontSize:"12px",children:[u&&e(p,{children:"• Auth bypass enabled"}),c&&e(p,{children:"• System override applied"}),!o&&e(p,{children:"• Refetch intervals disabled"}),!l&&t(r,{children:[e(p,{children:"• Open console (ctrl+d)"}),e(p,{children:"• Hide button (ctrl+j)"})]})]}),hasArrow:!0,children:e(h,{"aria-label":"Open",size:"sm",onClick:i,fontSize:"lg",bg:"transparent !important",color:`${a}.500`,padding:"0",boxShadow:"dark-lg",children:"☆"})})]})})},UT=({uiColor:r})=>t(v,{flexDir:"column",children:[e(S,{as:"h3",fontSize:"md",borderBottom:"solid 1px",borderColor:`${r}.700`,mb:"2",fontFamily:"mono",children:"Links"}),t(I,{listStyleType:"disc",listStylePosition:"inside",children:[e(N,{children:e(R,{href:"https://api.cryptofi-dev.com/v2/docs",target:"api-docs",textTransform:"uppercase",children:"CWS API Documentation"})}),e(N,{children:e(R,{href:"https://cryptofi-core-ui.vercel.app/?path=/docs/intro--docs",target:"storybook",textTransform:"uppercase",children:"Core UI Storybook"})})]})]}),VT=({enableRefetch:t,status:r})=>e(f,{label:t?null:"Refetch disabled",hasArrow:!0,children:e(D,{width:"fit-content",as:"span",children:e(p,{as:"span",color:r&&t?"inherit":"gray.500",fontFamily:"body",children:r?"✔":"✘"})})}),WT=({children:t,onSubmit:r,...n})=>e(v,{as:"form",onSubmit:t=>{t.preventDefault(),r&&r(t)},noValidate:!0,gap:"6",flexDir:"column",...n,children:t});var ZT=function(){return ZT=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ZT.apply(this,arguments)};function qT(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var YT=function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},XT={k:1e3,m:1e6,b:1e9},KT=function(t){var e=t.value,r=t.groupSeparator,n=void 0===r?",":r,o=t.decimalSeparator,i=void 0===o?".":o,a=t.allowDecimals,c=void 0===a||a,u=t.decimalsLimit,l=void 0===u?2:u,s=t.allowNegativeValue,f=void 0===s||s,p=t.disableAbbreviations,d=void 0!==p&&p,h=t.prefix,y=void 0===h?"":h,v=t.transformRawValue,g=(void 0===v?function(t){return t}:v)(e);if("-"===g)return g;var m=d?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(YT(y),")")).test(g),w=RegExp("(\\d+)-?".concat(YT(y))).exec(e)||[],x=w[0],O=w[1],S=function(t,e){void 0===e&&(e=",");var r=new RegExp(YT(e),"g");return t.replace(r,"")}(y?x?g.replace(x,"").concat(O):g.replace(y,""):g,n),_=function(t,e){var r=YT(e.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return t.replace(n,"")}(S,qT([n,i],m,!0)),j=_;if(!d){if(m.some((function(t){return t===_.toLowerCase().replace(i,"")})))return"";var P=function(t,e){void 0===e&&(e=".");var r=new RegExp("(\\d+(".concat(YT(e),"\\d*)?)([kmb])$"),"i"),n=t.match(r);if(n){var o=n[1],i=n[3],a=XT[i.toLowerCase()];return Number(o.replace(e,"."))*a}}(_,i);P&&(j=String(P))}var A=b&&f?"-":"";if(i&&j.includes(i)){var M=_.split(i),k=M[0],E=M[1],C=l&&E?E.slice(0,l):E,T=c?"".concat(i).concat(C):"";return"".concat(A).concat(k).concat(T)}return"".concat(A).concat(j)},GT=function(t,e){var r=e.groupSeparator,n=void 0===r?",":r,o=e.decimalSeparator,i=void 0===o?".":o,a=new RegExp("\\d([^".concat(YT(n)).concat(YT(i),"0-9]+)")),c=t.match(a);return c?c[1]:void 0},JT=function(t){var e=t.value,r=t.decimalSeparator,n=t.intlConfig,o=t.decimalScale,i=t.prefix,a=void 0===i?"":i,c=t.suffix,u=void 0===c?"":c;if(""===e||void 0===e)return"";if("-"===e)return"-";var l=new RegExp("^\\d?-".concat(a?"".concat(YT(a),"?"):"","\\d")).test(e),s="."!==r?QT(e,r,l):e;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f={minimumFractionDigits:o||0,maximumFractionDigits:20},p=(n?new Intl.NumberFormat(n.locale,n.currency?ZT(ZT({},f),{style:"currency",currency:n.currency}):f):new Intl.NumberFormat(void 0,f)).formatToParts(Number(s)),d=tD(p,t),h=GT(d,ZT({},t)),y=e.slice(-1)===r?r:"",v=(s.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return void 0===o&&v&&r&&(d=d.includes(r)?d.replace(RegExp("(\\d+)(".concat(YT(r),")(\\d+)"),"g"),"$1$2".concat(v)):h&&!u?d.replace(h,"".concat(r).concat(v).concat(h)):"".concat(d).concat(r).concat(v)),u&&y?"".concat(d).concat(y).concat(u):h&&y?d.replace(h,"".concat(y).concat(h)):h&&u?d.replace(h,"".concat(y).concat(u)):[d,y,u].join("")},QT=function(t,e,r){var n=t;return e&&"."!==e&&(n=n.replace(RegExp(YT(e),"g"),"."),r&&"-"===e&&(n="-".concat(n.slice(1)))),n},tD=function(t,e){var r=e.prefix,n=e.groupSeparator,o=e.decimalSeparator,i=e.decimalScale,a=e.disableGroupSeparators,c=void 0!==a&&a;return t.reduce((function(t,e,a){var u=e.type,l=e.value;return 0===a&&r?"minusSign"===u?[l,r]:"currency"===u?qT(qT([],t,!0),[r],!1):[r,l]:"currency"===u?r?t:qT(qT([],t,!0),[l],!1):"group"===u?c?t:qT(qT([],t,!0),[void 0!==n?n:l],!1):"decimal"===u?void 0!==i&&0===i?t:qT(qT([],t,!0),[void 0!==o?o:l],!1):qT(qT([],t,!0),"fraction"===u?[void 0!==i?l.slice(0,i):l]:[l],!1)}),[""]).join("")},eD={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},rD=function(t){return RegExp(/\d/,"gi").test(t)},nD=ht((function(t,e){var r=t.allowDecimals,n=void 0===r||r,o=t.allowNegativeValue,i=void 0===o||o,a=t.id,c=t.name,u=t.className,l=t.customInput,s=t.decimalsLimit,f=t.defaultValue,p=t.disabled,d=void 0!==p&&p,h=t.maxLength,y=t.value,v=t.onValueChange,g=t.fixedDecimalLength,m=t.placeholder,b=t.decimalScale,w=t.prefix,x=t.suffix,O=t.intlConfig,S=t.step,_=t.min,j=t.max,P=t.disableGroupSeparators,A=void 0!==P&&P,M=t.disableAbbreviations,k=void 0!==M&&M,E=t.decimalSeparator,C=t.groupSeparator,T=t.onChange,D=t.onFocus,I=t.onBlur,N=t.onKeyDown,R=t.onKeyUp,L=t.transformRawValue,B=t.formatValueOnBlur,z=void 0===B||B,$=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue","formatValueOnBlur"]);if(E&&rD(E))throw new Error("decimalSeparator cannot be a number");if(C&&rD(C))throw new Error("groupSeparator cannot be a number");var H=wt((function(){return function(t){var e=t||{},r=e.locale,n=e.currency;return(r?new Intl.NumberFormat(r,n?{currency:n,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(t,e,r){return"currency"===e.type?ZT(ZT({},t),0===r?{currencySymbol:e.value,prefix:e.value}:{currencySymbol:e.value,suffix:e.value}):"group"===e.type?ZT(ZT({},t),{groupSeparator:e.value}):"decimal"===e.type?ZT(ZT({},t),{decimalSeparator:e.value}):t}),eD)}(O)}),[O]),F=E||H.decimalSeparator||"",U=C||H.groupSeparator||"";if(F&&U&&F===U&&!1===A)throw new Error("decimalSeparator cannot be the same as groupSeparator");var V={decimalSeparator:F,groupSeparator:U,disableGroupSeparators:A,intlConfig:O,prefix:w||H.prefix,suffix:x},W={decimalSeparator:F,groupSeparator:U,allowDecimals:n,decimalsLimit:s||g||2,allowNegativeValue:i,disableAbbreviations:k,prefix:w||H.prefix,transformRawValue:L},Z=gt((function(){return null!=f?JT(ZT(ZT({},V),{decimalScale:b,value:String(f)})):null!=y?JT(ZT(ZT({},V),{decimalScale:b,value:String(y)})):""})),q=Z[0],Y=Z[1],X=gt(!1),K=X[0],G=X[1],J=gt(0),Q=J[0],tt=J[1],et=gt(0),rt=et[0],nt=et[1],ot=gt(null),it=ot[0],at=ot[1],ct=yt(null);vt(e,(function(){return ct.current}));var ut=function(t,e){G(!0);var r=function(t){var e=t.selectionStart,r=t.value,n=t.lastKeyStroke,o=t.stateValue,i=t.groupSeparator,a=e,c=r;if(o&&a){var u=r.split("");return"Backspace"===n&&o[a]===i&&(u.splice(a-1,1),a-=1),"Delete"===n&&o[a]===i&&(u.splice(a,1),a+=1),{modifiedValue:c=u.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:e}}({selectionStart:e,value:t,lastKeyStroke:it,stateValue:q,groupSeparator:U}),n=r.modifiedValue,o=r.cursorPosition,i=KT(ZT({value:n},W));if(!(h&&i.replace(/-/g,"").length>h)){if(""===i||"-"===i||i===F)return v&&v(void 0,c,{float:null,formatted:"",value:""}),Y(i),void tt(1);var a=F?i.replace(F,"."):i,u=parseFloat(a),l=JT(ZT({value:i},V));if(null!=o){var s=o+(l.length-t.length);s=s<=0?w?w.length:0:s,tt(s),nt(rt+1)}if(Y(l),v)v(i,c,{float:u,formatted:l,value:i})}};bt((function(){null==y&&null==f&&Y("")}),[f,y]),bt((function(){K&&"-"!==q&&ct.current&&document.activeElement===ct.current&&ct.current.setSelectionRange(Q,Q)}),[q,Q,ct,K,rt]);var lt=ZT({type:"text",inputMode:"decimal",id:a,name:c,className:u,onChange:function(t){var e=t.target,r=e.value,n=e.selectionStart;ut(r,n),T&&T(t)},onBlur:function(t){var e=t.target.value,r=KT(ZT({value:e},W));if("-"===r||r===F||!r)return Y(""),void(I&&I(t));var n=function(t,e,r){if(void 0!==r&&t.length>1){if(0===r)return t.replace(e,"");if(t.includes(e)){var n=t.split(e),o=n[0];if((c=n[1]).length===r)return t;if(c.length>r)return"".concat(o).concat(e).concat(c.slice(0,r))}var i=t.length>r?new RegExp("(\\d+)(\\d{".concat(r,"})")):new RegExp("(\\d)(\\d+)"),a=t.match(i);if(a){o=a[1];var c=a[2];return"".concat(o).concat(e).concat(c)}}return t}(r,F,g),o=function(t,e,r){if(void 0===e&&(e="."),void 0===r||""===t||void 0===t)return t;if(!t.match(/\d/g))return"";var n=t.split(e),o=n[0],i=n[1];if(0===r)return o;var a=i||"";if(a.length<r)for(;a.length<r;)a+="0";else a=a.slice(0,r);return"".concat(o).concat(e).concat(a)}(n,F,void 0!==b?b:g),i=parseFloat(o.replace(F,".")),a=JT(ZT(ZT({},V),{value:o}));v&&z&&v(o,c,{float:i,formatted:a,value:o}),Y(a),I&&I(t)},onFocus:function(t){return D&&D(t),q?q.length:0},onKeyDown:function(t){var e=t.key;if(at(e),S&&("ArrowUp"===e||"ArrowDown"===e)){t.preventDefault(),tt(q.length);var r=parseFloat(null!=y?String(y).replace(F,"."):KT(ZT({value:q},W)))||0,n="ArrowUp"===e?r+S:r-S;if(void 0!==_&&n<Number(_))return;if(void 0!==j&&n>Number(j))return;var o=String(S).includes(".")?Number(String(S).split(".")[1].length):void 0;ut(String(o?n.toFixed(o):n).replace(".",F))}N&&N(t)},onKeyUp:function(t){var e=t.key,r=t.currentTarget.selectionStart;if("ArrowUp"!==e&&"ArrowDown"!==e&&"-"!==q){var n=GT(q,{groupSeparator:U,decimalSeparator:F});if(n&&r&&r>q.length-n.length&&ct.current){var o=q.length-n.length;ct.current.setSelectionRange(o,o)}}R&&R(t)},placeholder:m,disabled:d,value:null==y||"-"===q||F&&q===F?q:JT(ZT(ZT({},V),{decimalScale:K?void 0:b,value:String(y)})),ref:ct},$);if(l){var ft=l;return st.createElement(ft,ZT({},lt))}return st.createElement("input",ZT({},lt))}));nD.displayName="CurrencyInput";const oD=O(((r,n)=>{const{size:o,isDisabled:i,isReadOnly:a,isRequired:c,spellCheck:u=!1,name:l,label:s,register:f,errorMessage:p,helperText:d,leftAddon:h,leftElement:y,rightAddon:v,rightElement:g,type:w="text",containerCss:O,...S}=r,_=Rr(o),j=f?f(l):void 0,P="currency"===w?{as:nD,placeholder:"$0.00",prefix:"$",allowNegativeValue:!1,disableAbbreviations:!0}:{};return t(m,{isInvalid:Boolean(p),isDisabled:i,isReadOnly:a,isRequired:c,sx:O,children:[s&&e(b,{size:o,children:s}),t(L,{size:o,children:[h&&e(B,{children:h}),y&&e(z,{w:"auto",ml:"1em",children:y}),e($,{size:o,spellCheck:u,paddingLeft:y&&"2.5em",paddingRight:g&&"2.5em",type:"currency"===w?"text":w,...j,...P,...S,ref:n||j?.ref}),g&&e(H,{w:"auto",mr:"1em",children:g}),v&&e(F,{children:v})]}),p&&e(x,{size:o,children:p}),d&&e(U,{fontSize:_,children:d})]})}));var iD=t=>null==t;var aD=t=>!iD(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),cD=t=>{const e=t.constructor&&t.constructor.prototype;return aD(e)&&e.hasOwnProperty("isPrototypeOf")},uD="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function lD(t){let e;const r=Array.isArray(t),n="undefined"!=typeof FileList&&t instanceof FileList;if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else{if(uD&&(t instanceof Blob||n)||!r&&!aD(t))return t;if(e=r?[]:{},r||cD(t))for(const r in t)t.hasOwnProperty(r)&&(e[r]=lD(t[r]));else e=t}return e}var sD=t=>Array.isArray(t)?t.filter(Boolean):[],fD=t=>void 0===t,pD=(t,e,r)=>{if(!e||!aD(t))return r;const n=sD(e.split(/[,[\].]+?/)).reduce(((t,e)=>iD(t)?t:t[e]),t);return fD(n)||n===t?fD(t[e])?r:t[e]:n},dD=t=>"boolean"==typeof t,hD=t=>/^\w*$/.test(t),yD=t=>sD(t.replace(/["|']|\]/g,"").split(/\.|\[/)),vD=(t,e,r)=>{let n=-1;const o=hD(e)?[e]:yD(e),i=o.length,a=i-1;for(;++n<i;){const e=o[n];let i=r;if(n!==a){const r=t[e];i=aD(r)||Array.isArray(r)?r:isNaN(+o[n+1])?{}:[]}if("__proto__"===e||"constructor"===e||"prototype"===e)return;t[e]=i,t=t[e]}return t};const gD="onBlur",mD="onChange",bD="onSubmit",wD="onTouched",xD="all",OD="max",SD="min",_D="maxLength",jD="minLength",PD="pattern",AD="required",MD="validate",kD=st.createContext(null);var ED=t=>aD(t)&&!Object.keys(t).length,CD=t=>Array.isArray(t)?t:[t];var TD=t=>"string"==typeof t,DD=(t,e,r,n,o)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:o||!0}}:{},ID=()=>{const t="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const r=(16*Math.random()+t)%16|0;return("x"==e?r:3&r|8).toString(16)}))},ND=(t,e,r={})=>r.shouldFocus||fD(r.shouldFocus)?r.focusName||`${t}.${fD(r.focusIndex)?e:r.focusIndex}.`:"",RD=t=>({isOnSubmit:!t||t===bD,isOnBlur:t===gD,isOnChange:t===mD,isOnAll:t===xD,isOnTouch:t===wD});const LD=(t,e,r,n)=>{for(const r of Object.keys(t)){const n=pD(t,r);if(n){const{_f:t,...o}=n;if(t){if(t.refs&&t.refs[0]&&e(t.refs[0],r))return!0;if(t.ref&&e(t.ref,t.name))return!0;if(LD(o,e))break}else if(aD(o)&&LD(o,e))break}}};var BD=(t,e,r)=>{const n=CD(pD(t,r));return vD(n,"root",e[r]),vD(t,r,n),t},zD=t=>TD(t),$D=t=>t instanceof RegExp;function HD(t,e,r="validate"){if(zD(t)||Array.isArray(t)&&t.every(zD)||dD(t)&&!t)return{type:r,message:zD(t)?t:"",ref:e}}var FD=t=>aD(t)&&!$D(t)?t:{value:t,message:""},UD=async(t,e,r,n,o,i)=>{const{ref:a,refs:c,required:u,maxLength:l,minLength:s,min:f,max:p,pattern:d,validate:h,name:y,valueAsNumber:v,mount:g}=t._f,m=pD(r,y);if(!g||e.has(y))return{};const b=c?c[0]:a,w=t=>{o&&b.reportValidity&&(b.setCustomValidity(dD(t)?"":t||""),b.reportValidity())},x={};a.type,(t=>{t.type})(a);const O=(v||(t=>"file"===t.type)(a))&&fD(a.value)&&fD(m)||(t=>{if(!uD)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)})(a)&&""===a.value||""===m||Array.isArray(m)&&!m.length,S=DD.bind(null,y,n,x),_=(t,e,r,n=_D,o=jD)=>{const i=t?e:r;x[y]={type:t?n:o,message:i,ref:a,...S(t?n:o,i)}};if(!Array.isArray(m)||!m.length){const{value:t,message:e}=zD(u)?{value:!!u,message:u}:FD(u);if(t&&(x[y]={type:AD,message:e,ref:b,...S(AD,e)},!n))return w(e),x}if(!(O||iD(f)&&iD(p))){let t,e;const r=FD(p),o=FD(f);if(iD(m)||isNaN(m)){const n=a.valueAsDate||new Date(m),i=t=>new Date((new Date).toDateString()+" "+t),c="time"==a.type,u="week"==a.type;TD(r.value)&&m&&(t=c?i(m)>i(r.value):u?m>r.value:n>new Date(r.value)),TD(o.value)&&m&&(e=c?i(m)<i(o.value):u?m<o.value:n<new Date(o.value))}else{const n=a.valueAsNumber||(m?+m:m);iD(r.value)||(t=n>r.value),iD(o.value)||(e=n<o.value)}if((t||e)&&(_(!!t,r.message,o.message,OD,SD),!n))return w(x[y].message),x}if((l||s)&&!O&&(TD(m)||Array.isArray(m))){const t=FD(l),e=FD(s),r=!iD(t.value)&&m.length>+t.value,o=!iD(e.value)&&m.length<+e.value;if((r||o)&&(_(r,t.message,e.message),!n))return w(x[y].message),x}if(d&&!O&&TD(m)){const{value:t,message:e}=FD(d);if($D(t)&&!m.match(t)&&(x[y]={type:PD,message:e,ref:a,...S(PD,e)},!n))return w(e),x}if(h)if("function"==typeof h){const t=HD(await h(m,r),b);if(t&&(x[y]={...t,...S(MD,t.message)},!n))return w(t.message),x}else if(aD(h)){let t={};for(const e in h){if(!ED(t)&&!n)break;const o=HD(await h[e](m,r),b,e);o&&(t={...o,...S(e,o.message)},w(o.message),n&&(x[y]=t))}if(!ED(t)&&(x[y]={ref:b,...t},!n))return x}return w(!0),x},VD=(t,e)=>[...t,...CD(e)],WD=t=>Array.isArray(t)?t.map((()=>{})):void 0;function ZD(t,e,r){return[...t.slice(0,e),...CD(r),...t.slice(e)]}var qD=(t,e,r)=>Array.isArray(t)?(fD(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],YD=(t,e)=>[...CD(e),...CD(t)];var XD=(t,e)=>fD(e)?[]:function(t,e){let r=0;const n=[...t];for(const t of e)n.splice(t-r,1),r++;return sD(n).length?n:[]}(t,CD(e).sort(((t,e)=>t-e))),KD=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]};function GD(t,e){const r=Array.isArray(e)?e:hD(e)?[e]:yD(e),n=1===r.length?t:function(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=fD(t)?n++:t[e[n++]];return t}(t,r),o=r.length-1,i=r[o];return n&&delete n[i],0!==o&&(aD(n)&&ED(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!fD(t[e]))return!1;return!0}(n))&&GD(t,r.slice(0,-1)),t}var JD=(t,e,r)=>(t[e]=r,t);function QD(t){const e=st.useContext(kD),{control:r=e.control,name:n,keyName:o="id",shouldUnregister:i,rules:a}=t,[c,u]=st.useState(r._getFieldArray(n)),l=st.useRef(r._getFieldArray(n).map(ID)),s=st.useRef(c),f=st.useRef(n),p=st.useRef(!1);f.current=n,s.current=c,r._names.array.add(n),a&&r.register(n,a),function(t){const e=st.useRef(t);e.current=t,st.useEffect((()=>{const r=!t.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{r&&r.unsubscribe()}}),[t.disabled])}({next:({values:t,name:e})=>{if(e===f.current||!e){const e=pD(t,f.current);Array.isArray(e)&&(u(e),l.current=e.map(ID))}},subject:r._subjects.array});const d=st.useCallback((t=>{p.current=!0,r._updateFieldArray(n,t)}),[r,n]);return st.useEffect((()=>{if(r._state.action=!1,((t,e,r)=>e.watchAll||e.watch.has(t)||[...e.watch].some((e=>t.startsWith(e)&&/^\.\w+/.test(t.slice(e.length)))))(n,r._names)&&r._subjects.state.next({...r._formState}),p.current&&(!RD(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then((t=>{const e=pD(t.errors,n),o=pD(r._formState.errors,n);(o?!e&&o.type||e&&(o.type!==e.type||o.message!==e.message):e&&e.type)&&(e?vD(r._formState.errors,n,e):GD(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=pD(r._fields,n);!t||!t._f||RD(r._options.reValidateMode).isOnSubmit&&RD(r._options.mode).isOnSubmit||UD(t,r._names.disabled,r._formValues,r._options.criteriaMode===xD,r._options.shouldUseNativeValidation).then((t=>!ED(t)&&r._subjects.state.next({errors:BD(r._formState.errors,t,n)})))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&LD(r._fields,((t,e)=>{if(r._names.focus&&e.startsWith(r._names.focus)&&t.focus)return t.focus(),1})),r._names.focus="",r._updateValid(),p.current=!1}),[c,n,r]),st.useEffect((()=>(!pD(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||i)&&r.unregister(n)})),[n,r,o,i]),{swap:st.useCallback(((t,e)=>{const o=r._getFieldArray(n);KD(o,t,e),KD(l.current,t,e),d(o),u(o),r._updateFieldArray(n,o,KD,{argA:t,argB:e},!1)}),[d,n,r]),move:st.useCallback(((t,e)=>{const o=r._getFieldArray(n);qD(o,t,e),qD(l.current,t,e),d(o),u(o),r._updateFieldArray(n,o,qD,{argA:t,argB:e},!1)}),[d,n,r]),prepend:st.useCallback(((t,e)=>{const o=CD(lD(t)),i=YD(r._getFieldArray(n),o);r._names.focus=ND(n,0,e),l.current=YD(l.current,o.map(ID)),d(i),u(i),r._updateFieldArray(n,i,YD,{argA:WD(t)})}),[d,n,r]),append:st.useCallback(((t,e)=>{const o=CD(lD(t)),i=VD(r._getFieldArray(n),o);r._names.focus=ND(n,i.length-1,e),l.current=VD(l.current,o.map(ID)),d(i),u(i),r._updateFieldArray(n,i,VD,{argA:WD(t)})}),[d,n,r]),remove:st.useCallback((t=>{const e=XD(r._getFieldArray(n),t);l.current=XD(l.current,t),d(e),u(e),!Array.isArray(pD(r._fields,n))&&vD(r._fields,n,void 0),r._updateFieldArray(n,e,XD,{argA:t})}),[d,n,r]),insert:st.useCallback(((t,e,o)=>{const i=CD(lD(e)),a=ZD(r._getFieldArray(n),t,i);r._names.focus=ND(n,t,o),l.current=ZD(l.current,t,i.map(ID)),d(a),u(a),r._updateFieldArray(n,a,ZD,{argA:t,argB:WD(e)})}),[d,n,r]),update:st.useCallback(((t,e)=>{const o=lD(e),i=JD(r._getFieldArray(n),t,o);l.current=[...i].map(((e,r)=>e&&r!==t?l.current[r]:ID())),d(i),u([...i]),r._updateFieldArray(n,i,JD,{argA:t,argB:o},!0,!1)}),[d,n,r]),replace:st.useCallback((t=>{const e=CD(lD(t));l.current=e.map(ID),d([...e]),u([...e]),r._updateFieldArray(n,[...e],(t=>t),{},!0,!1)}),[d,n,r]),fields:st.useMemo((()=>c.map(((t,e)=>({...t,[o]:l.current[e]||ID()})))),[c,o])}}const tI=({name:r,control:n,register:o,defaultValues:i,onArrayAppend:a,onArrayRemove:c})=>{const{fields:u,append:l,remove:s}=QD({control:n,name:r}),p=Object.keys(i).reduce(((t,e)=>({...t,[e]:i[e]})),{});return t(D,{children:[u.map(((n,i)=>e(D,{children:t(D,{pb:6,position:"relative",children:[Object.keys(n).filter((t=>"id"!==t)).map((t=>e(oD,{label:t,name:`${r}.${i}.${t}`,register:o},`${t}-${n.id}`))),e(f,{label:"Delete",children:e(v,{position:"absolute",top:"0",right:"0",children:e(h,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(i),c&&c(i)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),e(v,{children:e(h,{size:"sm",onClick:()=>{l(p),a&&a(p)},ml:"auto",children:"+"})})]})},eI=({data:r,dataKey:n,width:o="100%",height:i="100%",lineType:a="linear",isAnimated:c=!1,formatter:u,labelFormatter:l,sampleRate:s,style:f})=>{const{isNetGain:p}=Nr({data:r,dataKey:n}),d=Cn(),h=s?zr({arr:r||[],n:s}):r;let y,v;h?.length?(v=p?Hr.mint():Hr.heroicRed(),y=h?.map((t=>({...t,[n]:Number(t[n])||0})))):(v=Hr.coolElegance(),y=[{[n]:0},{[n]:0}]);const g={cursor:h?.length?"crosshair":"default",...f};return e(sy,{width:o,minHeight:i,id:d,children:t(AT,{data:y,style:g,children:[e(AC,{domain:["dataMin","dataMax"],hide:!0}),e(UE,{isAnimationActive:c,type:a,dataKey:n,stroke:v,strokeWidth:"2",activeDot:t=>kT({labelFormatter:l,formatter:u,...t}),dot:!1,scale:"threshold"}),h?.length&&e(Jh,{cursor:!1,content:()=>null})]})})},rI=({isOpen:r,onClose:n,headerContent:o=null,footerContent:i=null,children:a,isCentered:c=!0,size:u={base:"md",md:"xl"},isDisabledCloseButton:l,bodyProps:s={},contentProps:f={},...p})=>{const d={maxHeight:"60vh",bg:"transparent",overflowX:"hidden",overflowY:"auto",...s},h={...{minWidth:Vr},...f};return t(V,{blockScrollOnMount:!1,scrollBehavior:"inside",isOpen:r,onClose:n,isCentered:c,size:u,trapFocus:!Lr(),...p,children:[e(W,{}),t(Z,{...h,children:[e(q,{children:o}),e(Y,{isDisabled:l}),e(X,{...d,children:a}),i&&e(K,{borderTop:"solid 1px",borderColor:Hr.coolElegance(),justifyContent:"flex-start",children:i})]})]})},nI=t=>{const{isActive:r,children:n,href:o,...i}=t;return e(R,{display:"flex",as:R,borderRadius:"md",border:"solid 1px",bg:r?"brand.50":"transparent",borderColor:r?"brand.200":"transparent",boxShadow:r?`0 8px 16px 0 ${Hr.black(.08)}`:"none",href:o,alignItems:"center",lineHeight:"1",position:"relative",padding:"2",zIndex:"3",transition:"border-color 0.25s",_hover:{borderColor:!r&&Hr.coolElegance(),textDecoration:"none"},...i,children:n},o)};var oI,iI={exports:{}};var aI,cI=(oI||(oI=1,aI=iI,function(t,e){aI.exports=e(st)}(0,(t=>(()=>{var e={703:(t,e,r)=>{var n=r(414);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},697:(t,e,r)=>{t.exports=r(703)()},414:t=>{t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98:e=>{e.exports=t}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{n.r(o),n.d(o,{default:()=>w});var t=n(98),e=n.n(t),r=n(697),i=n.n(r);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},a.apply(this,arguments)}var c=function(t){var r=t.pageClassName,n=t.pageLinkClassName,o=t.page,i=t.selected,c=t.activeClassName,u=t.activeLinkClassName,l=t.getEventListener,s=t.pageSelectedHandler,f=t.href,p=t.extraAriaContext,d=t.pageLabelBuilder,h=t.rel,y=t.ariaLabel||"Page "+o+(p?" "+p:""),v=null;return i&&(v="page",y=t.ariaLabel||"Page "+o+" is your current page",r=void 0!==r?r+" "+c:c,void 0!==n?void 0!==u&&(n=n+" "+u):n=u),e().createElement("li",{className:r},e().createElement("a",a({rel:h,role:f?void 0:"button",className:n,href:f,tabIndex:i?"-1":"0","aria-label":y,"aria-current":v,onKeyPress:s},l(s)),d(o)))};c.propTypes={pageSelectedHandler:i().func.isRequired,selected:i().bool.isRequired,pageClassName:i().string,pageLinkClassName:i().string,activeClassName:i().string,activeLinkClassName:i().string,extraAriaContext:i().string,href:i().string,ariaLabel:i().string,page:i().number.isRequired,getEventListener:i().func.isRequired,pageLabelBuilder:i().func.isRequired,rel:i().string};const u=c;function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l.apply(this,arguments)}var s=function(t){var r=t.breakLabel,n=t.breakAriaLabel,o=t.breakClassName,i=t.breakLinkClassName,a=t.breakHandler,c=t.getEventListener,u=o||"break";return e().createElement("li",{className:u},e().createElement("a",l({className:i,role:"button",tabIndex:"0","aria-label":n,onKeyPress:a},c(a)),r))};s.propTypes={breakLabel:i().oneOfType([i().string,i().node]),breakAriaLabel:i().string,breakClassName:i().string,breakLinkClassName:i().string,breakHandler:i().func.isRequired,getEventListener:i().func.isRequired};const f=s;function p(t){return null!=t?t:arguments.length>1&&void 0!==arguments[1]?arguments[1]:""}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},h.apply(this,arguments)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(c,t);var r,n,o,i,a=(o=c,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=g(o);if(i){var r=g(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(t)}(this,t)});function c(t){var r,n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),m(v(r=a.call(this,t)),"handlePreviousPage",(function(t){var e=r.state.selected;r.handleClick(t,null,e>0?e-1:void 0,{isPrevious:!0})})),m(v(r),"handleNextPage",(function(t){var e=r.state.selected,n=r.props.pageCount;r.handleClick(t,null,e<n-1?e+1:void 0,{isNext:!0})})),m(v(r),"handlePageSelected",(function(t,e){if(r.state.selected===t)return r.callActiveCallback(t),void r.handleClick(e,null,void 0,{isActive:!0});r.handleClick(e,null,t)})),m(v(r),"handlePageChange",(function(t){r.state.selected!==t&&(r.setState({selected:t}),r.callCallback(t))})),m(v(r),"getEventListener",(function(t){return m({},r.props.eventListener,t)})),m(v(r),"handleClick",(function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=o.isPrevious,a=void 0!==i&&i,c=o.isNext,u=void 0!==c&&c,l=o.isBreak,s=void 0!==l&&l,f=o.isActive,p=void 0!==f&&f;t.preventDefault?t.preventDefault():t.returnValue=!1;var d=r.state.selected,h=r.props.onClick,y=n;if(h){var v=h({index:e,selected:d,nextSelectedPage:n,event:t,isPrevious:a,isNext:u,isBreak:s,isActive:p});if(!1===v)return;Number.isInteger(v)&&(y=v)}void 0!==y&&r.handlePageChange(y)})),m(v(r),"handleBreakClick",(function(t,e){var n=r.state.selected;r.handleClick(e,t,n<t?r.getForwardJump():r.getBackwardJump(),{isBreak:!0})})),m(v(r),"callCallback",(function(t){void 0!==r.props.onPageChange&&"function"==typeof r.props.onPageChange&&r.props.onPageChange({selected:t})})),m(v(r),"callActiveCallback",(function(t){void 0!==r.props.onPageActive&&"function"==typeof r.props.onPageActive&&r.props.onPageActive({selected:t})})),m(v(r),"getElementPageRel",(function(t){var e=r.state.selected,n=r.props,o=n.nextPageRel,i=n.prevPageRel,a=n.selectedPageRel;return e-1===t?i:e===t?a:e+1===t?o:void 0})),m(v(r),"pagination",(function(){var t=[],n=r.props,o=n.pageRangeDisplayed,i=n.pageCount,a=n.marginPagesDisplayed,c=n.breakLabel,u=n.breakClassName,l=n.breakLinkClassName,s=n.breakAriaLabels,p=r.state.selected;if(i<=o)for(var d=0;d<i;d++)t.push(r.getPageElement(d));else{var h=o/2,y=o-h;p>i-o/2?h=o-(y=i-p):p<o/2&&(y=o-(h=p));var v,g,m=function(t){return r.getPageElement(t)},b=[];for(v=0;v<i;v++){var w=v+1;if(w<=a)b.push({type:"page",index:v,display:m(v)});else if(w>i-a)b.push({type:"page",index:v,display:m(v)});else if(v>=p-h&&v<=p+(0===p&&o>1?y-1:y))b.push({type:"page",index:v,display:m(v)});else if(c&&b.length>0&&b[b.length-1].display!==g&&(o>0||a>0)){var x=v<p?s.backward:s.forward;g=e().createElement(f,{key:v,breakAriaLabel:x,breakLabel:c,breakClassName:u,breakLinkClassName:l,breakHandler:r.handleBreakClick.bind(null,v),getEventListener:r.getEventListener}),b.push({type:"break",index:v,display:g})}}b.forEach((function(e,r){var n=e;"break"===e.type&&b[r-1]&&"page"===b[r-1].type&&b[r+1]&&"page"===b[r+1].type&&b[r+1].index-b[r-1].index<=2&&(n={type:"page",index:e.index,display:m(e.index)}),t.push(n.display)}))}return t})),void 0!==t.initialPage&&void 0!==t.forcePage&&console.warn("(react-paginate): Both initialPage (".concat(t.initialPage,") and forcePage (").concat(t.forcePage,") props are provided, which is discouraged.")+" Use exclusively forcePage prop for a controlled component.\nSee https://reactjs.org/docs/forms.html#controlled-components"),n=t.initialPage?t.initialPage:t.forcePage?t.forcePage:0,r.state={selected:n},r}return r=c,(n=[{key:"componentDidMount",value:function(){var t=this.props,e=t.initialPage,r=t.disableInitialCallback,n=t.extraAriaContext,o=t.pageCount,i=t.forcePage;void 0===e||r||this.callCallback(e),n&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(o)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(o,"). Did you forget a Math.ceil()?")),void 0!==e&&e>o-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(e," > ").concat(o-1,").")),void 0!==i&&i>o-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(i," > ").concat(o-1,")."))}},{key:"componentDidUpdate",value:function(t){void 0!==this.props.forcePage&&this.props.forcePage!==t.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(this.props.forcePage," > ").concat(this.props.pageCount-1,").")),this.setState({selected:this.props.forcePage})),Number.isInteger(t.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(this.props.pageCount,"). Did you forget a Math.ceil()?"))}},{key:"getForwardJump",value:function(){var t=this.state.selected,e=this.props,r=e.pageCount,n=t+e.pageRangeDisplayed;return n>=r?r-1:n}},{key:"getBackwardJump",value:function(){var t=this.state.selected-this.props.pageRangeDisplayed;return t<0?0:t}},{key:"getElementHref",value:function(t){var e=this.props,r=e.hrefBuilder,n=e.pageCount,o=e.hrefAllControls;if(r)return o||t>=0&&t<n?r(t+1,n,this.state.selected):void 0}},{key:"ariaLabelBuilder",value:function(t){var e=t===this.state.selected;if(this.props.ariaLabelBuilder&&t>=0&&t<this.props.pageCount){var r=this.props.ariaLabelBuilder(t+1,e);return this.props.extraAriaContext&&!e&&(r=r+" "+this.props.extraAriaContext),r}}},{key:"getPageElement",value:function(t){var r=this.state.selected,n=this.props,o=n.pageClassName,i=n.pageLinkClassName,a=n.activeClassName,c=n.activeLinkClassName,l=n.extraAriaContext,s=n.pageLabelBuilder;return e().createElement(u,{key:t,pageSelectedHandler:this.handlePageSelected.bind(null,t),selected:r===t,rel:this.getElementPageRel(t),pageClassName:o,pageLinkClassName:i,activeClassName:a,activeLinkClassName:c,extraAriaContext:l,href:this.getElementHref(t),ariaLabel:this.ariaLabelBuilder(t),page:t+1,pageLabelBuilder:s,getEventListener:this.getEventListener})}},{key:"render",value:function(){var t=this.props.renderOnZeroPageCount;if(0===this.props.pageCount&&void 0!==t)return t?t(this.props):t;var r=this.props,n=r.disabledClassName,o=r.disabledLinkClassName,i=r.pageCount,a=r.className,c=r.containerClassName,u=r.previousLabel,l=r.previousClassName,s=r.previousLinkClassName,f=r.previousAriaLabel,d=r.prevRel,y=r.nextLabel,v=r.nextClassName,g=r.nextLinkClassName,m=r.nextAriaLabel,b=r.nextRel,w=this.state.selected,x=0===w,O=w===i-1,S="".concat(p(l)).concat(x?" ".concat(p(n)):""),_="".concat(p(v)).concat(O?" ".concat(p(n)):""),j="".concat(p(s)).concat(x?" ".concat(p(o)):""),P="".concat(p(g)).concat(O?" ".concat(p(o)):""),A=x?"true":"false",M=O?"true":"false";return e().createElement("ul",{className:a||c,role:"navigation","aria-label":"Pagination"},e().createElement("li",{className:S},e().createElement("a",h({className:j,href:this.getElementHref(w-1),tabIndex:x?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":A,"aria-label":f,rel:d},this.getEventListener(this.handlePreviousPage)),u)),this.pagination(),e().createElement("li",{className:_},e().createElement("a",h({className:P,href:this.getElementHref(w+1),tabIndex:O?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":M,"aria-label":m,rel:b},this.getEventListener(this.handleNextPage)),y)))}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(t.Component);m(b,"propTypes",{pageCount:i().number.isRequired,pageRangeDisplayed:i().number,marginPagesDisplayed:i().number,previousLabel:i().node,previousAriaLabel:i().string,prevPageRel:i().string,prevRel:i().string,nextLabel:i().node,nextAriaLabel:i().string,nextPageRel:i().string,nextRel:i().string,breakLabel:i().oneOfType([i().string,i().node]),breakAriaLabels:i().shape({forward:i().string,backward:i().string}),hrefBuilder:i().func,hrefAllControls:i().bool,onPageChange:i().func,onPageActive:i().func,onClick:i().func,initialPage:i().number,forcePage:i().number,disableInitialCallback:i().bool,containerClassName:i().string,className:i().string,pageClassName:i().string,pageLinkClassName:i().string,pageLabelBuilder:i().func,activeClassName:i().string,activeLinkClassName:i().string,previousClassName:i().string,nextClassName:i().string,previousLinkClassName:i().string,nextLinkClassName:i().string,disabledClassName:i().string,disabledLinkClassName:i().string,breakClassName:i().string,breakLinkClassName:i().string,extraAriaContext:i().string,ariaLabelBuilder:i().func,eventListener:i().string,renderOnZeroPageCount:i().func,selectedPageRel:i().string}),m(b,"defaultProps",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:"selected",previousLabel:"Previous",previousClassName:"previous",previousAriaLabel:"Previous page",prevPageRel:"prev",prevRel:"prev",nextLabel:"Next",nextClassName:"next",nextAriaLabel:"Next page",nextPageRel:"next",nextRel:"next",breakLabel:"...",breakAriaLabels:{forward:"Jump forward",backward:"Jump backward"},disabledClassName:"disabled",disableInitialCallback:!1,pageLabelBuilder:function(t){return t},eventListener:"onClick",renderOnZeroPageCount:void 0,selectedPageRel:"canonical",hrefAllControls:!1});const w=b})(),o})()))),iI.exports);const uI=n(dr(cI)),lI=({totalRecords:t=0,recordsPerPage:r=10,pageRangeDisplayed:n=3,handlePageClick:o,forcePage:i,...a})=>{const c=Math.ceil(t/r);return e(v,{justifyContent:{base:"center",md:"flex-end"},fontSize:{base:14,md:18},gap:2,w:"full",...a,children:e(uI,{breakLabel:"...",previousLabel:"<",nextLabel:">",onPageChange:o,pageRangeDisplayed:n,pageCount:c,renderOnZeroPageCount:null,forcePage:i,display:{base:"flex"},alignItems:"center",gap:"inherit",disabledLinkClassName:"disabled-pagination",pageLinkClassName:"pagination-link",activeClassName:"active-page",previousClassName:"previous-page-button",nextClassName:"next-page-button",sx:{listStyleType:"none",".pagination-link:hover":{backgroundColor:"brand.700"},".previous-page-button a, .next-page-button a, .pagination-link":{backgroundColor:"brand.300",borderRadius:4,color:Hr.white()},".previous-page-button a, .next-page-button a":{minWidth:"2rem",display:"inline-block",textAlign:"center",paddingX:{base:2,lg:2.5}},".pagination-link":{minWidth:"2.5rem",display:"inline-block",textAlign:"center",paddingX:{base:2.5,lg:3}},".active-page a":{backgroundColor:"brand.500"},".disabled-pagination":{backgroundColor:"gray.300 !important",cursor:"not-allowed !important"}}})})},sI=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:o,lastEvaluatedKey:i,...a})=>{const[c,u]=gt([]),[l,s]=gt(1);return t(v,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[e(h,{onClick:()=>{if(2===l)return o(void 0),u([]),void s((t=>t-1));const t=c.length-1,e=c[t-1];o(e),u((t=>t.slice(0,-1))),s((t=>t-1))},isDisabled:r||1===l,children:"Previous"}),e(h,{onClick:()=>{if(i){const t={lastEvaluatedPKey:i.pKey,lastEvaluatedSKey:i.sKey};o(t),u((e=>[...e,t])),s((t=>t+1))}},isDisabled:r||!n,children:"Next"})]})},fI=({children:t,isEnabled:r=!0,...n})=>{const o=r?At`
31
+ */function E_(){if(v_)return y_;v_=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return y_=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(n,o){for(var i,a,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(n),u=1;u<arguments.length;u++){for(var l in i=Object(arguments[u]))e.call(i,l)&&(c[l]=i[l]);if(t){a=t(i);for(var s=0;s<a.length;s++)r.call(i,a[s])&&(c[a[s]]=i[a[s]])}}return c},y_}function C_(){if(m_)return g_;m_=1;return g_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function T_(){return w_?b_:(w_=1,b_=Function.call.bind(Object.prototype.hasOwnProperty))}function D_(){if(O_)return x_;O_=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=C_(),r={},n=T_();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function o(o,i,a,c,u){if("production"!==process.env.NODE_ENV)for(var l in o)if(n(o,l)){var s;try{if("function"!=typeof o[l]){var f=Error((c||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=o[l](i,l,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in r)){r[s.message]=!0;var p=u?u():"";t("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},x_=o}function I_(){if(__)return S_;__=1;var t=k_(),e=E_(),r=C_(),n=T_(),o=D_(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),S_=function(c,u){var l="function"==typeof Symbol&&Symbol.iterator,s="@@iterator";var f="<<anonymous>>",p={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:y(a),arrayOf:function(t){return y((function(e,n,o,i,a){if("function"!=typeof t)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new h("Invalid "+i+" `"+a+"` of type `"+b(c)+"` supplied to `"+o+"`, expected an array.");for(var u=0;u<c.length;u++){var l=t(c,u,o,i,a+"["+u+"]",r);if(l instanceof Error)return l}return null}))},element:y((function(t,e,r,n,o){var i=t[e];return c(i)?null:new h("Invalid "+n+" `"+o+"` of type `"+b(i)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:y((function(e,r,n,o,i){var a=e[r];return t.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return y((function(e,r,n,o,i){if(!(e[r]instanceof t)){var a=t.name||f;return new h("Invalid "+o+" `"+i+"` of type `"+(((c=e[r]).constructor&&c.constructor.name?c.constructor.name:f)+"` supplied to `")+n+"`, expected instance of `"+a+"`.")}var c;return null}))},node:y((function(t,e,r,n,o){return m(t[e])?null:new h("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return y((function(e,o,i,a,c){if("function"!=typeof t)return new h("Property `"+c+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var u=e[o],l=b(u);if("object"!==l)return new h("Invalid "+a+" `"+c+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var s in u)if(n(u,s)){var f=t(u,s,i,a,c+"."+s,r);if(f instanceof Error)return f}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a;return y((function(e,r,n,o,i){for(var a=e[r],c=0;c<t.length;c++)if(d(a,t[c]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===w(e)?String(e):e}));return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+u+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var o=t[e];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(o)+" at index "+e+"."),a}return y((function(e,o,i,a,c){for(var u=[],l=0;l<t.length;l++){var s=(0,t[l])(e,o,i,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&u.push(s.data.expectedType)}return new h("Invalid "+a+" `"+c+"` supplied to `"+i+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(t){return y((function(e,n,o,i,a){var c=e[n],u=b(c);if("object"!==u)return new h("Invalid "+i+" `"+a+"` of type `"+u+"` supplied to `"+o+"`, expected `object`.");for(var l in t){var s=t[l];if("function"!=typeof s)return g(o,i,a,l,w(s));var f=s(c,l,o,i,a+"."+l,r);if(f)return f}return null}))},exact:function(t){return y((function(o,i,a,c,u){var l=o[i],s=b(l);if("object"!==s)return new h("Invalid "+c+" `"+u+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},o[i],t);for(var p in f){var d=t[p];if(n(t,p)&&"function"!=typeof d)return g(a,c,u,p,w(d));if(!d)return new h("Invalid "+c+" `"+u+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var y=d(l,p,a,c,u+"."+p,r);if(y)return y}return null}))}};function d(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function y(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function o(o,a,c,l,s,p,d){if(l=l||f,p=p||c,d!==r){if(u){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+c;!e[v]&&n<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[v]=!0,n++)}}return null==a[c]?o?null===a[c]?new h("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `null`."):new h("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,c,l,s,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function v(t){return y((function(e,r,n,o,i,a){var c=e[r];return b(c)!==t?new h("Invalid "+o+" `"+i+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,r,n,o){return new h((t||"React class")+": "+e+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function m(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(m);if(null===t||c(t))return!0;var e=function(t){var e=t&&(l&&t[l]||t[s]);if("function"==typeof e)return e}(t);if(!e)return!1;var r,n=e.call(t);if(e!==t.entries){for(;!(r=n.next()).done;)if(!m(r.value))return!1}else for(;!(r=n.next()).done;){var o=r.value;if(o&&!m(o[1]))return!1}return!0;default:return!1}}function b(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function w(t){if(null==t)return""+t;var e=b(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function x(t){var e=w(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return h.prototype=Error.prototype,p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},S_}function N_(){if(P_)return j_;P_=1;var t=C_();function e(){}function r(){}return r.resetWarningCache=e,j_=function(){function n(e,r,n,o,i,a){if(a!==t){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function o(){return n}n.isRequired=n;var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:e};return i.PropTypes=i,i}}function R_(){if(A_)return s_.exports;if(A_=1,"production"!==process.env.NODE_ENV){var t=k_();s_.exports=I_()(t.isElement,true)}else s_.exports=N_()();return s_.exports}var L_=dr(R_()),B_=Object.getOwnPropertyNames,z_=Object.getOwnPropertySymbols,$_=Object.prototype.hasOwnProperty;function H_(t,e){return function(r,n,o){return t(r,n,o)&&e(r,n,o)}}function F_(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var o=n.cache,i=o.get(e),a=o.get(r);if(i&&a)return i===r&&a===e;o.set(e,r),o.set(r,e);var c=t(e,r,n);return o.delete(e),o.delete(r),c}}function U_(t){return B_(t).concat(z_(t))}var V_=Object.hasOwn||function(t,e){return $_.call(t,e)};function W_(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var Z_="_owner",q_=Object.getOwnPropertyDescriptor,Y_=Object.keys;function X_(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 K_(t,e){return W_(t.getTime(),e.getTime())}function G_(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var u=e.entries(),l=!1,s=0;(o=u.next())&&!o.done;){var f=n.value,p=f[0],d=f[1],h=o.value,y=h[0],v=h[1];l||i[s]||!(l=r.equals(p,y,c,s,t,e,r)&&r.equals(d,v,p,y,t,e,r))||(i[s]=!0),s++}if(!l)return!1;c++}return!0}function J_(t,e,r){var n,o=Y_(t),i=o.length;if(Y_(e).length!==i)return!1;for(;i-- >0;){if((n=o[i])===Z_&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!V_(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function Q_(t,e,r){var n,o,i,a=U_(t),c=a.length;if(U_(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===Z_&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!V_(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(o=q_(t,n),i=q_(e,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function tj(t,e){return W_(t.valueOf(),e.valueOf())}function ej(t,e){return t.source===e.source&&t.flags===e.flags}function rj(t,e,r){if(t.size!==e.size)return!1;for(var n,o,i={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),u=!1,l=0;(o=c.next())&&!o.done;)u||i[l]||!(u=r.equals(n.value,o.value,n.value,o.value,t,e,r))||(i[l]=!0),l++;if(!u)return!1}return!0}function nj(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 oj="[object Arguments]",ij="[object Boolean]",aj="[object Date]",cj="[object Map]",uj="[object Number]",lj="[object Object]",sj="[object RegExp]",fj="[object Set]",pj="[object String]",dj=Array.isArray,hj="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,yj=Object.assign,vj=Object.prototype.toString.call.bind(Object.prototype.toString);var gj=mj();function mj(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,o=t.createInternalComparator,i=t.createState,a=t.strict,c=void 0!==a&&a,u=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,o={areArraysEqual:n?Q_:X_,areDatesEqual:K_,areMapsEqual:n?H_(G_,Q_):G_,areObjectsEqual:n?Q_:J_,arePrimitiveWrappersEqual:tj,areRegExpsEqual:ej,areSetsEqual:n?H_(rj,Q_):rj,areTypedArraysEqual:n?Q_:nj};if(r&&(o=yj({},o,r(o))),e){var i=F_(o.areArraysEqual),a=F_(o.areMapsEqual),c=F_(o.areObjectsEqual),u=F_(o.areSetsEqual);o=yj({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return o}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,o=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,l,s){if(t===l)return!0;if(null==t||null==l||"object"!=typeof t||"object"!=typeof l)return t!=t&&l!=l;var f=t.constructor;if(f!==l.constructor)return!1;if(f===Object)return o(t,l,s);if(dj(t))return e(t,l,s);if(null!=hj&&hj(t))return u(t,l,s);if(f===Date)return r(t,l,s);if(f===RegExp)return a(t,l,s);if(f===Map)return n(t,l,s);if(f===Set)return c(t,l,s);var p=vj(t);return p===aj?r(t,l,s):p===sj?a(t,l,s):p===cj?n(t,l,s):p===fj?c(t,l,s):p===lj?"function"!=typeof t.then&&"function"!=typeof l.then&&o(t,l,s):p===oj?o(t,l,s):(p===ij||p===uj||p===pj)&&i(t,l,s)}}(u),s=o?o(l):(e=l,function(t,r,n,o,i,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,o=t.equals,i=t.strict;if(n)return function(t,a){var c=n(),u=c.cache,l=void 0===u?e?new WeakMap:void 0:u,s=c.meta;return r(t,a,{cache:l,equals:o,meta:s,strict:i})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return r(t,e,a)}}({circular:n,comparator:l,createState:i,equals:s,strict:c})}function bj(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(o){r<0&&(r=o),o-r>e?(t(o),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function wj(t){return wj="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},wj(t)}function xj(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 Oj(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 Oj(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 Oj(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 Sj(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var o=xj(n),i=o[0],a=o.slice(1);return"number"==typeof i?void bj(r.bind(null,a),i):(r(i),void bj(r.bind(null,a)))}"object"===wj(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 _j(t){return _j="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},_j(t)}function jj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Pj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jj(Object(r),!0).forEach((function(e){Aj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Aj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==_j(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==_j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===_j(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}mj({strict:!0}),mj({circular:!0}),mj({circular:!0,strict:!0}),mj({createInternalComparator:function(){return W_}}),mj({strict:!0,createInternalComparator:function(){return W_}}),mj({circular:!0,createInternalComparator:function(){return W_}}),mj({circular:!0,createInternalComparator:function(){return W_},strict:!0});var Mj=function(t){return t},kj=function(t,e){return Object.keys(e).reduce((function(r,n){return Pj(Pj({},r),{},Aj({},n,t(n,e[n])))}),{})},Ej=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(",")},Cj="production"!==process.env.NODE_ENV,Tj=function(t,e,r,n,o,i,a,c){if(Cj&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,i,a,c],l=0;console.warn(e.replace(/%s/g,(function(){return u[l++]})))}};function Dj(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||Nj(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ij(t){return function(t){if(Array.isArray(t))return Rj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Nj(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 Nj(t,e){if(t){if("string"==typeof t)return Rj(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)?Rj(t,e):void 0}}function Rj(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 Lj=1e-4,Bj=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},zj=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},$j=function(t,e){return function(r){var n=Bj(t,e);return zj(n,r)}},Hj=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,o=0,i=1,a=1;break;case"ease":n=.25,o=.1,i=.25,a=1;break;case"ease-in":n=.42,o=0,i=1,a=1;break;case"ease-out":n=.42,o=0,i=.58,a=1;break;case"ease-in-out":n=0,o=0,i=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),l=Dj(u,4);n=l[0],o=l[1],i=l[2],a=l[3]}else Tj(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",e)}Tj([n,i,o,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",e);var s,f,p=$j(n,i),d=$j(o,a),h=(s=n,f=i,function(t){var e=Bj(s,f),r=[].concat(Ij(e.map((function(t,e){return t*e})).slice(1)),[0]);return zj(r,t)}),y=function(t){for(var e,r=t>1?1:t,n=r,o=0;o<8;++o){var i=p(n)-r,a=h(n);if(Math.abs(i-r)<Lj||a<Lj)return d(n);n=(e=n-i/a)>1?1:e<0?0:e}return d(n)};return y.isStepper=!1,y},Fj=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 Hj(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,o=void 0===n?8:n,i=t.dt,a=void 0===i?17:i,c=function(t,e,n){var i=n+(-(t-e)*r-n*o)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<Lj&&Math.abs(i)<Lj?[e,0]:[c,i]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return Hj(n);Tj(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",e)}return"function"==typeof n?n:(Tj(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function Uj(t){return Uj="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},Uj(t)}function Vj(t){return function(t){if(Array.isArray(t))return Kj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Xj(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 Wj(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 Zj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Wj(Object(r),!0).forEach((function(e){qj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Uj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Uj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Uj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Yj(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||Xj(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xj(t,e){if(t){if("string"==typeof t)return Kj(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)?Kj(t,e):void 0}}function Kj(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 Gj=function(t,e,r){return t+(e-t)*r},Jj=function(t){return t.from!==t.to},Qj=function t(e,r,n){var o=kj((function(t,r){if(Jj(r)){var n=Yj(e(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return Zj(Zj({},r),{},{from:o,velocity:i})}return r}),r);return n<1?kj((function(t,e){return Jj(e)?Zj(Zj({},e),{},{velocity:Gj(e.velocity,o[t].velocity,n),from:Gj(e.from,o[t].from,n)}):e}),r):t(e,o,n-1)},tP=function(t,e,r,n,o){var i,a,c,u,l=(i=t,a=e,[Object.keys(i),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=l.reduce((function(r,n){return Zj(Zj({},r),{},qj({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return Zj(Zj({},r),{},qj({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),p=-1,d=function(){return null};return d=r.isStepper?function(n){c||(c=n);var i=(n-c)/r.dt;f=Qj(r,f,i),o(Zj(Zj(Zj({},t),e),kj((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(Jj).length&&(p=requestAnimationFrame(d))}:function(i){u||(u=i);var a=(i-u)/n,c=kj((function(t,e){return Gj.apply(void 0,Vj(e).concat([r(a)]))}),s);if(o(Zj(Zj(Zj({},t),e),c)),a<1)p=requestAnimationFrame(d);else{var l=kj((function(t,e){return Gj.apply(void 0,Vj(e).concat([r(1)]))}),s);o(Zj(Zj(Zj({},t),e),l))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(p)}}};function eP(t){return eP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eP(t)}var rP=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function nP(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 oP(t){return function(t){if(Array.isArray(t))return iP(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 iP(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 iP(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 iP(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 aP(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 cP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?aP(Object(r),!0).forEach((function(e){uP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function uP(t,e,r){return(e=sP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lP(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,sP(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function sP(t){var e=function(t,e){if("object"!==eP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==eP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===eP(e)?e:String(e)}function fP(t,e){return fP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fP(t,e)}function pP(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 dP(this,r)}}function dP(t,e){if(e&&("object"===eP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return hP(t)}function hP(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yP(t){return yP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yP(t)}var vP=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fP(t,e)}(r,dt);var e=pP(r);function r(t,n){var o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var i=(o=e.call(this,t,n)).props,a=i.isActive,c=i.attributeName,u=i.from,l=i.to,s=i.steps,f=i.children,p=i.duration;if(o.handleStyleChange=o.handleStyleChange.bind(hP(o)),o.changeStyle=o.changeStyle.bind(hP(o)),!a||p<=0)return o.state={style:{}},"function"==typeof f&&(o.state={style:l}),dP(o);if(s&&s.length)o.state={style:s[0].style};else if(u){if("function"==typeof f)return o.state={style:u},dP(o);o.state={style:c?uP({},c,u):u}}else o.state={style:{}};return o}return lP(r,[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,o=e.attributeName,i=e.shouldReAnimate,a=e.to,c=e.from,u=this.state.style;if(n)if(r){if(!(gj(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||i?c:t.to;if(this.state&&u){var f={style:o?uP({},o,s):s};(o&&u[o]!==s||!o&&u!==s)&&this.setState(f)}this.runAnimation(cP(cP({},this.props),{},{from:s,begin:0}))}}else{var p={style:o?uP({},o,a):a};this.state&&u&&(o&&u[o]!==a||!o&&u!==a)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,o=t.duration,i=t.easing,a=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,l=tP(r,n,Fj(i),o,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},o,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,o=t.onAnimationStart,i=r[0],a=i.style,c=i.duration,u=void 0===c?0:c;return this.manager.start([o].concat(oP(r.reduce((function(t,n,o){if(0===o)return t;var i=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,l=n.properties,s=n.onAnimationEnd,f=o>0?r[o-1]:n,p=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(oP(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:i,easing:c}),i]);var d=Ej(p,i,c),h=cP(cP(cP({},f.style),u),{},{transition:d});return[].concat(oP(t),[h,i,s]).filter(Mj)}),[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Sj());var e=t.begin,r=t.duration,n=t.attributeName,o=t.to,i=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof l&&"spring"!==i)if(u.length>1)this.runStepAnimation(t);else{var f=n?uP({},n,o):o,p=Ej(Object.keys(f),r,i);s.start([a,e,cP(cP({},f),{},{transition:p}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children;t.begin;var r=t.duration;t.attributeName,t.easing;var n=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var o=nP(t,rP),i=pt.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===i||r<=0)return e;var c=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,i=e.className;return xt(t,cP(cP({},o),{},{style:cP(cP({},n),a),className:i}))};return 1===i?c(pt.only(e)):st.createElement("div",null,pt.map(e,(function(t){return c(t)})))}}]),r}();function gP(t){return gP="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},gP(t)}function mP(){return mP=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},mP.apply(this,arguments)}function bP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return wP(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 wP(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 wP(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 xP(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 OP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xP(Object(r),!0).forEach((function(e){SP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function SP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=gP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=gP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}vP.displayName="Animate",vP.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},vP.propTypes={from:L_.oneOfType([L_.object,L_.string]),to:L_.oneOfType([L_.object,L_.string]),attributeName:L_.string,duration:L_.number,begin:L_.number,easing:L_.oneOfType([L_.string,L_.func]),steps:L_.arrayOf(L_.shape({duration:L_.number.isRequired,style:L_.object.isRequired,easing:L_.oneOfType([L_.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),L_.func]),properties:L_.arrayOf("string"),onAnimationEnd:L_.func})),children:L_.oneOfType([L_.node,L_.func]),isActive:L_.bool,canBegin:L_.bool,onAnimationEnd:L_.func,shouldReAnimate:L_.bool,onAnimationStart:L_.func,onAnimationReStart:L_.func};var _P=function(t,e,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&o instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+u*s[0],",").concat(e)),i+="L ".concat(t+r-u*s[1],",").concat(e),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+c*s[1])),i+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-u*s[2],",").concat(e+n)),i+="L ".concat(t+u*s[3],",").concat(e+n),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-c*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+u*p,",").concat(e,"\n L ").concat(t+r-u*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r,",").concat(e+c*p,"\n L ").concat(t+r,",").concat(e+n-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+r-u*p,",").concat(e+n,"\n L ").concat(t+u*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+n-c*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},jP=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,o=e.x,i=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(o,o+a),l=Math.max(o,o+a),s=Math.min(i,i+c),f=Math.max(i,i+c);return r>=u&&r<=l&&n>=s&&n<=f}return!1},PP={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},AP=function(t){var e=OP(OP({},PP),t),r=yt(),n=bP(gt(-1),2),o=n[0],i=n[1];bt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&i(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.width,l=e.height,s=e.radius,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,y=e.isAnimationActive,v=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||0===u||0===l)return null;var g=Nn("recharts-rectangle",f);return v?st.createElement(vP,{canBegin:o>0,from:{width:u,height:l,x:a,y:c},to:{width:u,height:l,x:a,y:c},duration:d,animationEasing:p,isActive:v},(function(t){var n=t.width,i=t.height,a=t.x,c=t.y;return st.createElement(vP,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,isActive:y,easing:p},st.createElement("path",mP({},fc(e,!0),{className:g,d:_P(a,c,n,i,s),ref:r})))})):st.createElement("path",mP({},fc(e,!0),{className:g,d:_P(a,c,u,l,s)}))};function MP(){return MP=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},MP.apply(this,arguments)}var kP=function(t){var e=t.cx,r=t.cy,n=t.r,o=Nn("recharts-dot",t.className);return e===+e&&r===+r&&n===+n?st.createElement("circle",MP({},fc(t,!1),Xa(t),{className:o,cx:e,cy:r,r:n})):null};function EP(t){return EP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},EP(t)}var CP=["x","y","top","left","width","height","className"];function TP(){return TP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},TP.apply(this,arguments)}function DP(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 IP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=EP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=EP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==EP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function NP(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var RP,LP,BP,zP,$P=function(t,e,r,n,o,i){return"M".concat(t,",").concat(o,"v").concat(n,"M").concat(i,",").concat(e,"h").concat(r)},HP=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,o=void 0===n?0:n,i=t.top,a=void 0===i?0:i,c=t.left,u=void 0===c?0:c,l=t.width,s=void 0===l?0:l,f=t.height,p=void 0===f?0:f,d=t.className,h=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?DP(Object(r),!0).forEach((function(e){IP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):DP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:o,top:a,left:u,width:s,height:p},NP(t,CP));return Na(r)&&Na(o)&&Na(s)&&Na(p)&&Na(a)&&Na(u)?st.createElement("path",TP({},fc(h,!0),{className:Nn("recharts-cross",d),d:$P(r,o,s,p,a,u)})):null};var FP,UP,VP=function(){if(zP)return BP;zP=1;var t=Li(),e=function(){if(LP)return RP;LP=1;var t=gp()(Object.getPrototypeOf,Object);return RP=t}(),r=Bi(),n=Function.prototype,o=Object.prototype,i=n.toString,a=o.hasOwnProperty,c=i.call(Object);return BP=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var o=e(n);if(null===o)return!0;var u=a.call(o,"constructor")&&o.constructor;return"function"==typeof u&&u instanceof u&&i.call(u)==c}}(),WP=dr(VP);var ZP=dr(function(){if(UP)return FP;UP=1;var t=Li(),e=Bi();return FP=function(r){return!0===r||!1===r||e(r)&&"[object Boolean]"==t(r)}}());function qP(t){return qP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qP(t)}function YP(){return YP=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},YP.apply(this,arguments)}function XP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return KP(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 KP(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 KP(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 GP(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 JP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?GP(Object(r),!0).forEach((function(e){QP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):GP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function QP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=qP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=qP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==qP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var tA,eA,rA,nA,oA,iA,aA,cA,uA=function(t,e,r,n,o){var i,a=r-n;return i="M ".concat(t,",").concat(e),i+="L ".concat(t+r,",").concat(e),i+="L ".concat(t+r-a/2,",").concat(e+o),i+="L ".concat(t+r-a/2-n,",").concat(e+o),i+="L ".concat(t,",").concat(e," Z")},lA={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},sA=function(t){var e=JP(JP({},lA),t),r=yt(),n=XP(gt(-1),2),o=n[0],i=n[1];bt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&i(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.upperWidth,l=e.lowerWidth,s=e.height,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,y=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||s!==+s||0===u&&0===l||0===s)return null;var v=Nn("recharts-trapezoid",f);return y?st.createElement(vP,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:u,lowerWidth:l,height:s,x:a,y:c},duration:d,animationEasing:p,isActive:y},(function(t){var n=t.upperWidth,i=t.lowerWidth,a=t.height,c=t.x,u=t.y;return st.createElement(vP,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,easing:p},st.createElement("path",YP({},fc(e,!0),{className:v,d:uA(c,u,n,i,a),ref:r})))})):st.createElement("g",null,st.createElement("path",YP({},fc(e,!0),{className:v,d:uA(a,c,u,l,s)})))},fA=["option","shapeType","propTransformer","activeClassName","isActive"];function pA(t){return pA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pA(t)}function dA(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function hA(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 yA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?hA(Object(r),!0).forEach((function(e){vA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=pA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=pA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gA(t,e){return yA(yA({},e),t)}function mA(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return st.createElement(AP,r);case"trapezoid":return st.createElement(sA,r);case"sector":return st.createElement(GS,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return st.createElement(il,r);break;default:return null}}function bA(t){var e,r=t.option,n=t.shapeType,o=t.propTransformer,i=void 0===o?gA:o,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,u=t.isActive,l=dA(t,fA);if(ft(r))e=xt(r,yA(yA({},l),function(t){return ft(t)?t.props:t}(r)));else if(ga(r))e=r(l);else if(WP(r)&&!ZP(r)){var s=i(r,l);e=st.createElement(mA,{shapeType:n,elementProps:s})}else{var f=l;e=st.createElement(mA,{shapeType:n,elementProps:f})}return u?st.createElement(Bc,{className:c},e):e}function wA(t,e){return null!=e&&"trapezoids"in t.props}function xA(t,e){return null!=e&&"sectors"in t.props}function OA(t,e){return null!=e&&"points"in t.props}function SA(t,e){var r,n,o=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,i=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return o&&i}function _A(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function jA(t,e){var r=t.x===e.x,n=t.y===e.y,o=t.z===e.z;return r&&n&&o}function PA(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,o=function(t,e){var r;return wA(t,e)?r="trapezoids":xA(t,e)?r="sectors":OA(t,e)&&(r="points"),r}(r,e),i=function(t,e){var r,n;return wA(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:xA(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:OA(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=nx(i,t),c=r.props[o].filter((function(t){var n=function(t,e){var r;return wA(t,e)?r=SA:xA(t,e)?r=_A:OA(t,e)&&(r=jA),r}(r,e);return n(t,e)})),u=r.props[o].indexOf(c[c.length-1]);return a&&n===u}));return n.indexOf(a[a.length-1])}function AA(){if(nA)return rA;nA=1;var t=ry(),e=1/0;return rA=function(r){return r?(r=t(r))===e||r===-1/0?17976931348623157e292*(r<0?-1:1):r==r?r:0:0===r?r:0}}function MA(){if(iA)return oA;iA=1;var t=function(){if(eA)return tA;eA=1;var t=Math.ceil,e=Math.max;return tA=function(r,n,o,i){for(var a=-1,c=e(t((n-r)/(o||1)),0),u=Array(c);c--;)u[i?c:++a]=r,r+=o;return u}}(),e=eh(),r=AA();return oA=function(n){return function(o,i,a){return a&&"number"!=typeof a&&e(o,i,a)&&(i=a=void 0),o=r(o),void 0===i?(i=o,o=0):i=r(i),a=void 0===a?o<i?1:-1:r(a),t(o,i,a,n)}}}var kA=function(){if(cA)return aA;cA=1;var t=MA()();return aA=t}(),EA=dr(kA);function CA(t){return CA="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},CA(t)}function TA(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 DA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?TA(Object(r),!0).forEach((function(e){IA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):TA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function IA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=CA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=CA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==CA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var NA=["Webkit","Moz","O","ms"];function RA(t){return RA="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},RA(t)}function LA(){return LA=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},LA.apply(this,arguments)}function BA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function zA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?BA(Object(r),!0).forEach((function(e){WA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):BA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $A(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,ZA(n.key),n)}}function HA(t,e,r){return e=UA(e),function(t,e){if(e&&("object"===RA(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,FA()?Reflect.construct(e,r||[],UA(t).constructor):e.apply(t,r))}function FA(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(FA=function(){return!!t})()}function UA(t){return UA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},UA(t)}function VA(t,e){return VA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},VA(t,e)}function WA(t,e,r){return(e=ZA(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ZA(t){var e=function(t,e){if("object"!=RA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=RA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==RA(e)?e:e+""}var qA,YA,XA,KA,GA=function(t){return t.changedTouches&&!!t.changedTouches.length},JA=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),WA(r=HA(this,e,[t]),"handleDrag",(function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)})),WA(r,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),WA(r,"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,o=t.startIndex;null==n||n({endIndex:e,startIndex:o})})),r.detachDragEndListener()})),WA(r,"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),WA(r,"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),WA(r,"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),WA(r,"handleSlideDragStart",(function(t){var e=GA(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&VA(t,e)}(e,dt),r=e,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,o=this.state.scaleValues,i=this.props,a=i.gap,c=i.data.length-1,u=Math.min(r,n),l=Math.max(r,n),s=e.getIndexInRange(o,u),f=e.getIndexInRange(o,l);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,i=IO(r[t],o,t);return ga(n)?n(i,t):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,o=e.endX,i=this.props,a=i.x,c=i.width,u=i.travellerWidth,l=i.startIndex,s=i.endIndex,f=i.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-u-o,a+c-u-n):p<0&&(p=Math.max(p,a-n,a-o));var d=this.getIndex({startX:n+p,endX:o+p});d.startIndex===l&&d.endIndex===s||!f||f(d),this.setState({startX:n+p,endX:o+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=GA(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,o=e.endX,i=e.startX,a=this.state[n],c=this.props,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,d=c.data,h={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,u+l-s-a):y<0&&(y=Math.max(y,u-a)),h[n]=a+y;var v=this.getIndex(h),g=v.startIndex,m=v.endIndex;this.setState(WA(WA({},n,a+y),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=d.length-1,("startX"===n&&(o>i?g%p==0:m%p==0)||o<i&&m===t||"endX"===n&&(o>i?m%p==0:g%p==0)||o>i&&m===t)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,c=this.state[e],u=o.indexOf(c);if(-1!==u){var l=u+t;if(!(-1===l||l>=o.length)){var s=o[l];"startX"===e&&s>=a||"endX"===e&&s<=i||this.setState(WA({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.fill,a=t.stroke;return st.createElement("rect",{stroke:a,fill:i,x:e,y:r,width:n,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.data,a=t.children,c=t.padding,u=pt.only(a);return u?st.cloneElement(u,{x:e,y:r,width:n,height:o,margin:c,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(t,r){var n,o,i=this,a=this.props,c=a.y,u=a.travellerWidth,l=a.height,s=a.traveller,f=a.ariaLabel,p=a.data,d=a.startIndex,h=a.endIndex,y=Math.max(t,this.props.x),v=zA(zA({},fc(this.props,!1)),{},{x:y,y:c,width:u,height:l}),g=f||"Min value: ".concat(null===(n=p[d])||void 0===n?void 0:n.name,", Max value: ").concat(null===(o=p[h])||void 0===o?void 0:o.name);return st.createElement(Bc,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),i.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){i.setState({isTravellerFocused:!0})},onBlur:function(){i.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(s,v))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,o=r.height,i=r.stroke,a=r.travellerWidth,c=Math.min(t,e)+a,u=Math.max(Math.abs(e-t)-a,0);return st.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:c,y:n,width:u,height:o})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,o=t.height,i=t.travellerWidth,a=t.stroke,c=this.state,u=c.startX,l=c.endX,s={pointerEvents:"none",fill:a};return st.createElement(Bc,{className:"recharts-brush-texts"},st.createElement(Ky,LA({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:n+o/2},s),this.getTextOfTick(e)),st.createElement(Ky,LA({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+i+5,y:n+o/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,o=t.x,i=t.y,a=t.width,c=t.height,u=t.alwaysShowText,l=this.state,s=l.startX,f=l.endX,p=l.isTextActive,d=l.isSlideMoving,h=l.isTravellerMoving,y=l.isTravellerFocused;if(!e||!e.length||!Na(o)||!Na(i)||!Na(a)||!Na(c)||a<=0||c<=0)return null;var v,g,m,b,w=Nn("recharts-brush",r),x=1===st.Children.count(n),O=(g="none",m=(v="userSelect").replace(/(\w)/,(function(t){return t.toUpperCase()})),(b=NA.reduce((function(t,e){return DA(DA({},t),{},IA({},e+m,g))}),{}))[v]=g,b);return st.createElement(Bc,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(p||d||h||y||u)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,o=t.height,i=t.stroke,a=Math.floor(r+o/2)-1;return st.createElement(st.Fragment,null,st.createElement("rect",{x:e,y:r,width:n,height:o,fill:i,stroke:"none"}),st.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),st.createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return st.isValidElement(t)?st.cloneElement(t,r):ga(t)?t(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return zA({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,o=t.x,i=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,u=jv().domain(EA(0,c)).range([o,o+i-a]),l=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(n),scale:u,scaleValues:l}}({data:r,width:n,x:o,travellerWidth:i,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+n-i]);var l=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var o=Math.floor((r+n)/2);t[o]>e?n=o:r=o}return e>=t[n]?n:r}}],n&&$A(r.prototype,n),o&&$A(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();WA(JA,"displayName","Brush"),WA(JA,"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 QA,tM,eM,rM,nM=function(){if(KA)return XA;KA=1;var t=hs(),e=Tp(),r=function(){if(YA)return qA;YA=1;var t=qd();return qA=function(e,r){var n;return t(e,(function(t,e,o){return!(n=r(t,e,o))})),!!n}}(),n=Di(),o=eh();return XA=function(i,a,c){var u=n(i)?t:r;return c&&o(i,a,c)&&(a=void 0),u(i,e(a,3))}}(),oM=dr(nM),iM=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e};var aM,cM,uM,lM,sM,fM,pM=function(){if(rM)return eM;rM=1;var t=function(){if(tM)return QA;tM=1;var t=Jd();return QA=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n},QA}(),e=Zd(),r=Tp();return eM=function(n,o){var i={};return o=r(o,3),e(n,(function(e,r,n){t(i,r,o(e,r,n))})),i},eM}(),dM=dr(pM);var hM=function(){if(fM)return sM;fM=1;var t=(cM||(cM=1,aM=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}),aM),e=function(){if(lM)return uM;lM=1;var t=qd();return uM=function(e,r){var n=!0;return t(e,(function(t,e,o){return n=!!r(t,e,o)})),n}}(),r=Tp(),n=Di(),o=eh();return sM=function(i,a,c){var u=n(i)?t:e;return c&&o(i,a,c)&&(a=void 0),u(i,r(a,3))}}(),yM=dr(hM),vM=["x","y"];function gM(t){return gM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gM(t)}function mM(){return mM=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},mM.apply(this,arguments)}function bM(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 wM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bM(Object(r),!0).forEach((function(e){xM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=gM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=gM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==gM(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function OM(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function SM(t,e){var r=t.x,n=t.y,o=OM(t,vM),i="".concat(r),a=parseInt(i,10),c="".concat(n),u=parseInt(c,10),l="".concat(e.height||o.height),s=parseInt(l,10),f="".concat(e.width||o.width),p=parseInt(f,10);return wM(wM(wM(wM(wM({},e),o),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function _M(t){return st.createElement(bA,mM({shapeType:"rectangle",propTransformer:SM,activeClassName:"recharts-active-bar"},t))}var jM,PM=["value","background"];function AM(t){return AM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},AM(t)}function MM(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function kM(){return kM=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},kM.apply(this,arguments)}function EM(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 CM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?EM(Object(r),!0).forEach((function(e){LM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):EM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function TM(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,BM(n.key),n)}}function DM(t,e,r){return e=NM(e),function(t,e){if(e&&("object"===AM(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,IM()?Reflect.construct(e,r||[],NM(t).constructor):e.apply(t,r))}function IM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(IM=function(){return!!t})()}function NM(t){return NM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},NM(t)}function RM(t,e){return RM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},RM(t,e)}function LM(t,e,r){return(e=BM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function BM(t){var e=function(t,e){if("object"!=AM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=AM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==AM(e)?e:e+""}var zM=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return LM(t=DM(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),LM(t,"id",Ba("recharts-bar-")),LM(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),LM(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&RM(t,e)}(e,dt),r=e,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,o=r.dataKey,i=r.activeIndex,a=r.activeBar,c=fc(this.props,!1);return t&&t.map((function(t,r){var u=r===i,l=u?a:n,s=CM(CM(CM({},c),t),{},{isActive:u,option:l,index:r,dataKey:o,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return st.createElement(Bc,kM({className:"recharts-bar-rectangle"},Ka(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value)}),st.createElement(_M,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,o=e.isAnimationActive,i=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevData;return st.createElement(vP,{begin:i,duration:a,isActive:o,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var o=e.t,i=r.map((function(t,e){var r=l&&l[e];if(r){var i=Ha(r.x,t.x),a=Ha(r.y,t.y),c=Ha(r.width,t.width),u=Ha(r.height,t.height);return CM(CM({},t),{},{x:i(o),y:a(o),width:c(o),height:u(o)})}if("horizontal"===n){var s=Ha(0,t.height)(o);return CM(CM({},t),{},{y:t.y+t.height-s,height:s})}var f=Ha(0,t.width)(o);return CM(CM({},t),{},{width:f})}));return st.createElement(Bc,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&&nx(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,o=e.activeIndex,i=fc(this.props.background,!1);return r.map((function(e,r){e.value;var a=e.background,c=MM(e,PM);if(!a)return null;var u=CM(CM(CM(CM(CM({},c),{},{fill:"#eee"},a),i),Ka(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return st.createElement(_M,kM({key:"background-bar-".concat(r),option:t.props.background,isActive:r===o},u))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,o=r.xAxis,i=r.yAxis,a=r.layout,c=ac(r.children,OO);if(!c)return null;var u="vertical"===a?n[0].height/2:n[0].width/2,l=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:IO(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return st.createElement(Bc,s,c.map((function(t){return st.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:o,yAxis:i,layout:a,offset:u,dataPointFormatter:l})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,o=t.xAxis,i=t.yAxis,a=t.left,c=t.top,u=t.width,l=t.height,s=t.isAnimationActive,f=t.background,p=t.id;if(e||!r||!r.length)return null;var d=this.state.isAnimationFinished,h=Nn("recharts-bar",n),y=o&&o.allowDataOverflow,v=i&&i.allowDataOverflow,g=y||v,m=da(p)?this.id:p;return st.createElement(Bc,{className:h},y||v?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(m)},st.createElement("rect",{x:y?a:a-u/2,y:v?c:c-l/2,width:y?u:2*u,height:v?l:2*l}))):null,st.createElement(Bc,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(m,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,m),(!s||d)&&FS.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],n&&TM(r.prototype,n),o&&TM(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();function $M(t){return $M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$M(t)}function HM(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,WM(n.key),n)}}function FM(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 UM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?FM(Object(r),!0).forEach((function(e){VM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):FM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function VM(t,e,r){return(e=WM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function WM(t){var e=function(t,e){if("object"!=$M(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=$M(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==$M(e)?e:e+""}jM=zM,LM(zM,"displayName","Bar"),LM(zM,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Eh,animationBegin:0,animationDuration:400,animationEasing:"ease"}),LM(zM,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,o=t.bandSize,i=t.xAxis,a=t.yAxis,c=t.xAxisTicks,u=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,d=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!d)return null;var h=e.layout,y=r.type.defaultProps,v=void 0!==y?CM(CM({},y),r.props):r.props,g=v.dataKey,m=v.children,b=v.minPointSize,w="horizontal"===h?a:i,x=l?w.scale.domain():null,O=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]}({numericAxis:w}),S=ac(m,dy),_=f.map((function(t,e){var n,f,p,y,v,m;l?n=function(t,e){if(!e||2!==e.length||!Na(e[0])||!Na(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(!Na(t[0])||t[0]<r)&&(o[0]=r),(!Na(t[1])||t[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o}(l[s+e],x):(n=IO(t,g),Array.isArray(n)||(n=[O,n]));var w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var o="number"==typeof r;return o?t(r,n):(o||("production"!==process.env.NODE_ENV?uO(0,"minPointSize callback function received a value with type of ".concat(gM(r),". Currently only numbers are supported.")):uO()),e)}}(b,jM.defaultProps.minPointSize)(n[1],e);if("horizontal"===h){var _,j=[a.scale(n[0]),a.scale(n[1])],P=j[0],A=j[1];f=qO({axis:i,ticks:c,bandSize:o,offset:d.offset,entry:t,index:e}),p=null!==(_=null!=A?A:P)&&void 0!==_?_:void 0,y=d.size;var M=P-A;if(v=Number.isNaN(M)?0:M,m={x:f,y:a.y,width:y,height:a.height},Math.abs(w)>0&&Math.abs(v)<Math.abs(w)){var k=Da(v||w)*(Math.abs(w)-Math.abs(v));p-=k,v+=k}}else{var E=[i.scale(n[0]),i.scale(n[1])],C=E[0],T=E[1];if(f=C,p=qO({axis:a,ticks:u,bandSize:o,offset:d.offset,entry:t,index:e}),y=T-C,v=d.size,m={x:i.x,y:p,width:i.width,height:v},Math.abs(w)>0&&Math.abs(y)<Math.abs(w))y+=Da(y||w)*(Math.abs(w)-Math.abs(y))}return CM(CM(CM({},t),{},{x:f,y:p,width:y,height:v,value:l?n:n[1],payload:t,background:m},S&&S[e]&&S[e].props),{},{tooltipPayload:[tS(r,t)],tooltipPosition:{x:f+y/2,y:p+v/2}})}));return CM({data:_,layout:h},p)}));var ZM=function(t,e,r,n,o){var i=t.width,a=t.height,c=t.layout,u=t.children,l=Object.keys(e),s={left:r.left,leftMirror:r.left,right:i-r.right,rightMirror:i-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!cc(u,zM);return l.reduce((function(i,a){var u,l,p,d,h,y=e[a],v=y.orientation,g=y.domain,m=y.padding,b=void 0===m?{}:m,w=y.mirror,x=y.reversed,O="".concat(v).concat(w?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var S=g[1]-g[0],_=1/0,j=y.categoricalDomain.sort();if(j.forEach((function(t,e){e>0&&(_=Math.min((t||0)-(j[e-1]||0),_))})),Number.isFinite(_)){var P=_/S,A="vertical"===y.layout?r.height:r.width;if("gap"===y.padding&&(u=P*A/2),"no-gap"===y.padding){var M=za(t.barCategoryGap,P*A),k=P*A/2;u=k-M-(k-M)/A*M}}}l="xAxis"===n?[r.left+(b.left||0)+(u||0),r.left+r.width-(b.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(u||0),r.top+r.height-(b.bottom||0)-(u||0)]:y.range,x&&(l=[l[1],l[0]]);var E=function(t,e,r){var n=t.scale,o=t.type,i=t.layout,a=t.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:Sv(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:qg(),realScaleType:"linear"}:"category"===o&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:jv(),realScaleType:"point"}:"category"===o?{scale:Sv(),realScaleType:"band"}:{scale:qg(),realScaleType:"linear"};if(va(n)){var c="scale".concat(Wc(n));return{scale:(Bw[c]||jv)(),realScaleType:Bw[c]?c:"point"}}return ga(n)?{scale:n}:{scale:jv(),realScaleType:"point"}}(y,o,f),C=E.scale,T=E.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])-UO,i=Math.max(n[0],n[1])+UO,a=t(e[0]),c=t(e[r-1]);(a<o||a>i||c<o||c>i)&&t.domain([e[0],e[r-1]])}}(C);var D=function(t,e){var r=e.realScaleType,n=e.type,o=e.tickCount,i=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var u=t.domain();if(!u.length)return null;var l=oO(u,o,a);return t.domain([Gw(l),Ww(l)]),{niceTicks:l}}if(o&&"number"===n){var s=t.domain();return{niceTicks:iO(s,o,a)}}return null}(C,UM(UM({},y),{},{realScaleType:T}));"xAxis"===n?(h="top"===v&&!w||"bottom"===v&&w,p=r.left,d=s[O]-h*y.height):"yAxis"===n&&(h="left"===v&&!w||"right"===v&&w,p=s[O]-h*y.width,d=r.top);var I=UM(UM(UM({},y),D),{},{realScaleType:T,x:p,y:d,scale:C,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return I.bandSize=JO(I,D),y.hide||"xAxis"!==n?y.hide||(s[O]+=(h?-1:1)*I.width):s[O]+=(h?-1:1)*I.height,UM(UM({},i),{},VM({},a,I))}),{})},qM=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)}},YM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}return e=t,r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&HM(e.prototype,r),n&&HM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();VM(YM,"EPS",1e-4);var XM=function(t){var e=Object.keys(t).reduce((function(e,r){return UM(UM({},e),{},VM({},r,YM.create(t[r])))}),{});return UM(UM({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return dM(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:o})}))},isInRange:function(t){return yM(t,(function(t,r){return e[r].isInRange(t)}))}})};var KM,GM,JM,QM,tk,ek,rk,nk,ok=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 ik(){if(ek)return tk;ek=1;var t=Dp(),e=Tp(),r=function(){if(QM)return JM;QM=1;var t=AA();return JM=function(e){var r=t(e),n=r%1;return r==r?n?r-n:r:0}}(),n=Math.max;return tk=function(o,i,a){var c=null==o?0:o.length;if(!c)return-1;var u=null==a?0:r(a);return u<0&&(u=n(c+u,0)),t(o,e(i,3),u)},tk}!function(){if(nk)return rk;nk=1;var t=function(){if(GM)return KM;GM=1;var t=Tp(),e=bp(),r=wp();return KM=function(n){return function(o,i,a){var c=Object(o);if(!e(o)){var u=t(i,3);o=r(o),i=function(t){return u(c[t],t,c)}}var l=n(o,i,a);return l>-1?c[u?o[l]:l]:void 0}}}(),e=t(ik());rk=e}();var ak=dr(ta())((function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}}),(function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}));function ck(t){return ck="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},ck(t)}var uk=_t(void 0),lk=_t(void 0),sk=_t(void 0),fk=_t({}),pk=_t(void 0),dk=_t(0),hk=_t(0),yk=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,o=e.offset,i=t.clipPathId,a=t.children,c=t.width,u=t.height,l=ak(o);return st.createElement(uk.Provider,{value:r},st.createElement(lk.Provider,{value:n},st.createElement(fk.Provider,{value:o},st.createElement(sk.Provider,{value:l},st.createElement(pk.Provider,{value:i},st.createElement(dk.Provider,{value:u},st.createElement(hk.Provider,{value:c},a)))))))};function vk(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var gk=function(t){var e=St(uk);null==e&&("production"!==process.env.NODE_ENV?uO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):uO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?uO(0,'Could not find xAxis by id "'.concat(t,'" [').concat(ck(t),"]. ").concat(vk(e))):uO()),r},mk=function(t){var e=St(lk);null==e&&("production"!==process.env.NODE_ENV?uO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):uO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?uO(0,'Could not find yAxis by id "'.concat(t,'" [').concat(ck(t),"]. ").concat(vk(e))):uO()),r},bk=function(){return St(hk)},wk=function(){return St(dk)};function xk(t){return xk="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},xk(t)}function Ok(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ek(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Sk(t,e,r){return e=jk(e),function(t,e){if(e&&("object"===xk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,_k()?Reflect.construct(e,r||[],jk(t).constructor):e.apply(t,r))}function _k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_k=function(){return!!t})()}function jk(t){return jk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jk(t)}function Pk(t,e){return Pk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Pk(t,e)}function Ak(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 Mk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ak(Object(r),!0).forEach((function(e){kk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ak(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function kk(t,e,r){return(e=Ek(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ek(t){var e=function(t,e){if("object"!=xk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=xk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==xk(e)?e:e+""}function Ck(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Tk(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 Tk(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 Tk(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 Dk(){return Dk=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},Dk.apply(this,arguments)}function Ik(t){var e=t.x,r=t.y,n=t.segment,o=t.xAxisId,i=t.yAxisId,a=t.shape,c=t.className,u=t.alwaysShow,l=St(pk),s=gk(o),f=mk(i),p=St(sk);if(!l||!p)return null;$c(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=function(t,e,r,n,o,i,a,c,u){var l=o.x,s=o.y,f=o.width,p=o.height;if(r){var d=u.y,h=t.y.apply(d,{position:i});if(iM(u,"discard")&&!t.y.isInRange(h))return null;var y=[{x:l+f,y:h},{x:l,y:h}];return"left"===c?y.reverse():y}if(e){var v=u.x,g=t.x.apply(v,{position:i});if(iM(u,"discard")&&!t.x.isInRange(g))return null;var m=[{x:g,y:s+p},{x:g,y:s}];return"top"===a?m.reverse():m}if(n){var b=u.segment.map((function(e){return t.apply(e,{position:i})}));return iM(u,"discard")&&oM(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(XM({x:s.scale,y:f.scale}),Ra(e),Ra(r),n&&2===n.length,p,t.position,s.orientation,f.orientation,t);if(!d)return null;var h=Ck(d,2),y=h[0],v=y.x,g=y.y,m=h[1],b=m.x,w=m.y,x=Mk(Mk({clipPath:iM(t,"hidden")?"url(#".concat(l,")"):void 0},fc(t,!0)),{},{x1:v,y1:g,x2:b,y2:w});return st.createElement(Bc,{className:Nn("recharts-reference-line",c)},function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):ga(t)?t(e):st.createElement("line",Dk({},e,{className:"recharts-reference-line-line"}))}(a,x),jS.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,o=t.y2;return qM({x:e,y:r},{x:n,y:o})}({x1:v,y1:g,x2:b,y2:w})))}var Nk=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Sk(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pk(t,e)}(e,st.Component),Ok(e,[{key:"render",value:function(){return st.createElement(Ik,this.props)}}])}();function Rk(){return Rk=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},Rk.apply(this,arguments)}function Lk(t){return Lk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lk(t)}function Bk(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 zk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Bk(Object(r),!0).forEach((function(e){Wk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $k(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Zk(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Hk(t,e,r){return e=Uk(e),function(t,e){if(e&&("object"===Lk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Fk()?Reflect.construct(e,r||[],Uk(t).constructor):e.apply(t,r))}function Fk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Fk=function(){return!!t})()}function Uk(t){return Uk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Uk(t)}function Vk(t,e){return Vk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Vk(t,e)}function Wk(t,e,r){return(e=Zk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zk(t){var e=function(t,e){if("object"!=Lk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Lk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Lk(e)?e:e+""}kk(Nk,"displayName","ReferenceLine"),kk(Nk,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var qk=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Hk(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vk(t,e)}(e,st.Component),$k(e,[{key:"render",value:function(){var t=this.props,r=t.x,n=t.y,o=t.r,i=t.alwaysShow,a=t.clipPathId,c=Ra(r),u=Ra(n);if($c(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var l=function(t){var e=t.x,r=t.y,n=t.xAxis,o=t.yAxis,i=XM({x:n.scale,y:o.scale}),a=i.apply({x:e,y:r},{bandAware:!0});return iM(t,"discard")&&!i.isInRange(a)?null:a}(this.props);if(!l)return null;var s=l.x,f=l.y,p=this.props,d=p.shape,h=p.className,y=zk(zk({clipPath:iM(this.props,"hidden")?"url(#".concat(a,")"):void 0},fc(this.props,!0)),{},{cx:s,cy:f});return st.createElement(Bc,{className:Nn("recharts-reference-dot",h)},e.renderDot(d,y),jS.renderCallByParent(this.props,{x:s-o,y:f-o,width:2*o,height:2*o}))}}])}();function Yk(){return Yk=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},Yk.apply(this,arguments)}function Xk(t){return Xk="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},Xk(t)}function Kk(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 Gk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Kk(Object(r),!0).forEach((function(e){nE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jk(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,oE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qk(t,e,r){return e=eE(e),function(t,e){if(e&&("object"===Xk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,tE()?Reflect.construct(e,r||[],eE(t).constructor):e.apply(t,r))}function tE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(tE=function(){return!!t})()}function eE(t){return eE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},eE(t)}function rE(t,e){return rE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rE(t,e)}function nE(t,e,r){return(e=oE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oE(t){var e=function(t,e){if("object"!=Xk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Xk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Xk(e)?e:e+""}Wk(qk,"displayName","ReferenceDot"),Wk(qk,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),Wk(qk,"renderDot",(function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):ga(t)?t(e):st.createElement(kP,Rk({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))}));var iE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Qk(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rE(t,e)}(e,st.Component),Jk(e,[{key:"render",value:function(){var t=this.props,r=t.x1,n=t.x2,o=t.y1,i=t.y2,a=t.className,c=t.alwaysShow,u=t.clipPathId;$c(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Ra(r),s=Ra(n),f=Ra(o),p=Ra(i),d=this.props.shape;if(!(l||s||f||p||d))return null;var h=function(t,e,r,n,o){var i=o.x1,a=o.x2,c=o.y1,u=o.y2,l=o.xAxis,s=o.yAxis;if(!l||!s)return null;var f=XM({x:l.scale,y:s.scale}),p={x:t?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},d={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!iM(o,"discard")||f.isInRange(p)&&f.isInRange(d)?qM(p,d):null}(l,s,f,p,this.props);if(!h&&!d)return null;var y=iM(this.props,"hidden")?"url(#".concat(u,")"):void 0;return st.createElement(Bc,{className:Nn("recharts-reference-area",a)},e.renderRect(d,Gk(Gk({clipPath:y},fc(this.props,!0)),h)),jS.renderCallByParent(this.props,h))}}])}();function aE(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],o=0;o<t.length;o+=e)n.push(t[o]);return n}function cE(t,e,r,n,o){if(t*e<t*n||t*e>t*o)return!1;var i=r();return t*(e-t*i/2-n)>=0&&t*(e+t*i/2-o)<=0}function uE(t){return uE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uE(t)}function lE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function sE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lE(Object(r),!0).forEach((function(e){fE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=uE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=uE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==uE(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pE(t,e,r){var n=t.tick,o=t.ticks,i=t.viewBox,a=t.minTickGap,c=t.orientation,u=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!o||!o.length||!n)return[];if(Na(u)||Eh)return function(t,e){return aE(t,e+1)}(o,"number"==typeof u&&Na(u)?u:0);var p=[],d="top"===c||"bottom"===c?"width":"height",h=s&&"width"===d?xy(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(t,n){var o=ga(l)?l(t.value,n):t.value;return"width"===d?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return ok(n,r)}(xy(o,{fontSize:e,letterSpacing:r}),h,f):xy(o,{fontSize:e,letterSpacing:r})[d]},v=o.length>=2?Da(o[1].coordinate-o[0].coordinate):1,g=function(t,e,r){var n="width"===r,o=t.x,i=t.y,a=t.width,c=t.height;return 1===e?{start:n?o:i,end:n?o+a:i+c}:{start:n?o+a:i+c,end:n?o:i}}(i,v,d);return"equidistantPreserveStart"===u?function(t,e,r,n,o){for(var i,a=(n||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,p=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:aE(n,s)};var i,a=l,p=function(){return void 0===i&&(i=r(e,a)),i},d=e.coordinate,h=0===l||cE(t,d,p,f,u);h||(l=0,f=c,s+=1),h&&(f=d+t*(p()/2+o),l+=s)};s<=a.length;)if(i=p())return i.v;return[]}(v,g,y,o,a):(p="preserveStart"===u||"preserveStartEnd"===u?function(t,e,r,n,o,i){var a=(n||[]).slice(),c=a.length,u=e.start,l=e.end;if(i){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-l);a[c-1]=s=sE(sE({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),cE(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+o),a[c-1]=sE(sE({},s),{},{isShow:!0}))}for(var d=i?c-1:c,h=function(e){var n,i=a[e],c=function(){return void 0===n&&(n=r(i,e)),n};if(0===e){var s=t*(i.coordinate-t*c()/2-u);a[e]=i=sE(sE({},i),{},{tickCoord:s<0?i.coordinate-s*t:i.coordinate})}else a[e]=i=sE(sE({},i),{},{tickCoord:i.coordinate});cE(t,i.tickCoord,c,u,l)&&(u=i.tickCoord+t*(c()/2+o),a[e]=sE(sE({},i),{},{isShow:!0}))},y=0;y<d;y++)h(y);return a}(v,g,y,o,a,"preserveStartEnd"===u):function(t,e,r,n,o){for(var i=(n||[]).slice(),a=i.length,c=e.start,u=e.end,l=function(e){var n,l=i[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);i[e]=l=sE(sE({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else i[e]=l=sE(sE({},l),{},{tickCoord:l.coordinate});cE(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+o),i[e]=sE(sE({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return i}(v,g,y,o,a),p.filter((function(t){return t.isShow})))}nE(iE,"displayName","ReferenceArea"),nE(iE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),nE(iE,"renderRect",(function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):ga(t)?t(e):st.createElement(AP,Yk({},e,{className:"recharts-reference-area-rect"}))}));var dE=["viewBox"],hE=["viewBox"],yE=["ticks"];function vE(t){return vE="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},vE(t)}function gE(){return gE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gE.apply(this,arguments)}function mE(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 bE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mE(Object(r),!0).forEach((function(e){PE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wE(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function xE(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,AE(n.key),n)}}function OE(t,e,r){return e=_E(e),function(t,e){if(e&&("object"===vE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,SE()?Reflect.construct(e,r||[],_E(t).constructor):e.apply(t,r))}function SE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(SE=function(){return!!t})()}function _E(t){return _E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_E(t)}function jE(t,e){return jE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jE(t,e)}function PE(t,e,r){return(e=AE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function AE(t){var e=function(t,e){if("object"!=vE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=vE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==vE(e)?e:e+""}var ME=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=OE(this,e,[t])).state={fontSize:"",letterSpacing:""},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jE(t,e)}(e,jt),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=wE(t,dE),o=this.props,i=o.viewBox,a=wE(o,hE);return!Ua(r,i)||!Ua(n,a)||!Ua(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,o,i,a,c=this.props,u=c.x,l=c.y,s=c.width,f=c.height,p=c.orientation,d=c.tickSize,h=c.mirror,y=c.tickMargin,v=h?-1:1,g=t.tickSize||d,m=Na(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(o=l+ +!h*f)-v*g)-v*y,i=m;break;case"left":n=o=t.coordinate,i=(e=(r=u+ +!h*s)-v*g)-v*y,a=m;break;case"right":n=o=t.coordinate,i=(e=(r=u+ +h*s)+v*g)+v*y,a=m;break;default:e=r=t.coordinate,a=(n=(o=l+ +h*f)+v*g)+v*y,i=m}return{line:{x1:e,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,o=t.height,i=t.orientation,a=t.mirror,c=t.axisLine,u=bE(bE(bE({},fc(this.props,!1)),fc(c,!1)),{},{fill:"none"});if("top"===i||"bottom"===i){var l=+("top"===i&&!a||"bottom"===i&&a);u=bE(bE({},u),{},{x1:e,y1:r+l*o,x2:e+n,y2:r+l*o})}else{var s=+("left"===i&&!a||"right"===i&&a);u=bE(bE({},u),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+o})}return st.createElement("line",gE({},u,{className:Nn("recharts-cartesian-axis-line",sa(c,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var o=this,i=this.props,a=i.tickLine,c=i.stroke,u=i.tick,l=i.tickFormatter,s=i.unit,f=pE(bE(bE({},this.props),{},{ticks:t}),r,n),p=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=fc(this.props,!1),y=fc(u,!1),v=bE(bE({},h),{},{fill:"none"},fc(a,!1)),g=f.map((function(t,r){var n=o.getTickLineCoord(t),i=n.line,g=n.tick,m=bE(bE(bE(bE({textAnchor:p,verticalAnchor:d},h),{},{stroke:"none",fill:c},y),g),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:l});return st.createElement(Bc,gE({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},Ka(o.props,t,r)),a&&st.createElement("line",gE({},v,i,{className:Nn("recharts-cartesian-axis-tick-line",sa(a,"className"))})),u&&e.renderTickItem(u,m,"".concat(ga(l)?l(t.value,r):t.value).concat(s||"")))}));return st.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,o=e.height,i=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,u=c.ticks,l=wE(c,yE),s=u;return ga(i)&&(s=u&&u.length>0?i(this.props):i(l)),n<=0||o<=0||!s||!s.length?null:st.createElement(Bc,{className:Nn("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),jS.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(t,e,r){return st.isValidElement(t)?st.cloneElement(t,e):ga(t)?t(e):st.createElement(Ky,gE({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&xE(r.prototype,n),o&&xE(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();PE(ME,"displayName","CartesianAxis"),PE(ME,"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 kE=["type","layout","connectNulls","ref"],EE=["key"];function CE(t){return CE="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},CE(t)}function TE(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function DE(){return DE=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},DE.apply(this,arguments)}function IE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function NE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?IE(Object(r),!0).forEach((function(e){UE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):IE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function RE(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)||function(t,e){if(!t)return;if("string"==typeof t)return LE(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return LE(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function LE(t,e){(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 BE(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,VE(n.key),n)}}function zE(t,e,r){return e=HE(e),function(t,e){if(e&&("object"===CE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,$E()?Reflect.construct(e,r||[],HE(t).constructor):e.apply(t,r))}function $E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($E=function(){return!!t})()}function HE(t){return HE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},HE(t)}function FE(t,e){return FE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},FE(t,e)}function UE(t,e,r){return(e=VE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function VE(t){var e=function(t,e){if("object"!=CE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=CE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==CE(e)?e:e+""}var WE=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return UE(t=zE(this,e,[].concat(n)),"state",{isAnimationFinished:!0,totalLength:0}),UE(t,"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),UE(t,"getStrokeDasharray",(function(r,n,o){var i=o.reduce((function(t,e){return t+e}));if(!i)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/i),c=r%i,u=n-r,l=[],s=0,f=0;s<o.length;f+=o[s],++s)if(f+o[s]>c){l=[].concat(RE(o.slice(0,s)),[c-f]);break}var p=l.length%2==0?[0,u]:[u];return[].concat(RE(e.repeat(o,a)),RE(l),p).map((function(t){return"".concat(t,"px")})).join(", ")})),UE(t,"id",Ba("recharts-line-")),UE(t,"pathRef",(function(e){t.mainCurve=e})),UE(t,"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),UE(t,"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&FE(t,e)}(e,dt),r=e,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.points,o=r.xAxis,i=r.yAxis,a=r.layout,c=ac(r.children,OO);if(!c)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:IO(t.payload,e)}},l={clipPath:t?"url(#clipPath-".concat(e,")"):null};return st.createElement(Bc,l,c.map((function(t){return st.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:o,yAxis:i,layout:a,dataPointFormatter:u})})))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,i=o.dot,a=o.points,c=o.dataKey,u=fc(this.props,!1),l=fc(i,!0),s=a.map((function(t,r){var n=NE(NE(NE({key:"dot-".concat(r),r:3},u),l),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:r,payload:t.payload});return e.renderDotItem(i,n)})),f={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return st.createElement(Bc,DE({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,r,n){var o=this.props,i=o.type,a=o.layout,c=o.connectNulls;o.ref;var u=TE(o,kE),l=NE(NE(NE({},fc(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:i,layout:a,connectNulls:c});return st.createElement(l_,DE({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,o=n.points,i=n.strokeDasharray,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=n.animateNewValues,p=n.width,d=n.height,h=this.state,y=h.prevPoints,v=h.totalLength;return st.createElement(vP,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(y){var c=y.length/o.length,u=o.map((function(t,e){var r=Math.floor(e*c);if(y[r]){var n=y[r],o=Ha(n.x,t.x),i=Ha(n.y,t.y);return NE(NE({},t),{},{x:o(a),y:i(a)})}if(f){var u=Ha(2*p,t.x),l=Ha(d/2,t.y);return NE(NE({},t),{},{x:u(a),y:l(a)})}return NE(NE({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(u,t,e)}var l,s=Ha(0,v)(a);if(i){var h="".concat(i).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=r.getStrokeDasharray(s,v,h)}else l=r.generateSimpleStrokeDasharray(v,s);return r.renderCurveStatically(o,t,e,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,o=r.isAnimationActive,i=this.state,a=i.prevPoints,c=i.totalLength;return o&&n&&n.length&&(!a&&c>0||!nx(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,o=e.points,i=e.className,a=e.xAxis,c=e.yAxis,u=e.top,l=e.left,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!o||!o.length)return null;var h=this.state.isAnimationFinished,y=1===o.length,v=Nn("recharts-line",i),g=a&&a.allowDataOverflow,m=c&&c.allowDataOverflow,b=g||m,w=da(d)?this.id:d,x=null!==(t=fc(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,_=x.strokeWidth,j=void 0===_?2:_,P=(sc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return st.createElement(Bc,{className:v},g||m?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(w)},st.createElement("rect",{x:g?l:l-s/2,y:m?u:u-f/2,width:g?s:2*s,height:m?f:2*f})),!A&&st.createElement("clipPath",{id:"clipPath-dots-".concat(w)},st.createElement("rect",{x:l-M/2,y:u-M/2,width:s+M,height:f+M}))):null,!y&&this.renderCurve(b,w),this.renderErrorBar(b,w),(y||n)&&this.renderDots(b,A,w),(!p||h)&&FS.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var r=t.length%2!=0?[].concat(RE(t),[0]):t,n=[],o=0;o<e;++o)n=[].concat(RE(n),RE(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(st.isValidElement(t))r=st.cloneElement(t,e);else if(ga(t))r=t(e);else{var n=e.key,o=TE(e,EE),i=Nn("recharts-line-dot","boolean"!=typeof t?t.className:"");r=st.createElement(kP,DE({key:n},o,{className:i}))}return r}}],n&&BE(r.prototype,n),o&&BE(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();UE(WE,"displayName","Line"),UE(WE,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Eh,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),UE(WE,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,o=t.xAxisTicks,i=t.yAxisTicks,a=t.dataKey,c=t.bandSize,u=t.displayedData,l=t.offset,s=e.layout;return NE({points:u.map((function(t,e){var u=IO(t,a);return"horizontal"===s?{x:ZO({axis:r,ticks:o,bandSize:c,entry:t,index:e}),y:da(u)?null:n.scale(u),value:u,payload:t}:{x:da(u)?null:r.scale(u),y:ZO({axis:n,ticks:i,bandSize:c,entry:t,index:e}),value:u,payload:t}})),layout:s},l)}));var ZE,qE=["layout","type","stroke","connectNulls","isRange","ref"],YE=["key"];function XE(t){return XE="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},XE(t)}function KE(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function GE(){return GE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},GE.apply(this,arguments)}function 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 QE(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){iC(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 tC(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,aC(n.key),n)}}function eC(t,e,r){return e=nC(e),function(t,e){if(e&&("object"===XE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,rC()?Reflect.construct(e,r||[],nC(t).constructor):e.apply(t,r))}function rC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(rC=function(){return!!t})()}function nC(t){return nC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nC(t)}function oC(t,e){return oC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},oC(t,e)}function iC(t,e,r){return(e=aC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aC(t){var e=function(t,e){if("object"!=XE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=XE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==XE(e)?e:e+""}var cC=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return iC(t=eC(this,e,[].concat(n)),"state",{isAnimationFinished:!0}),iC(t,"id",Ba("recharts-area-")),iC(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),ga(e)&&e()})),iC(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),ga(e)&&e()})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&oC(t,e)}(e,dt),r=e,n=[{key:"renderDots",value:function(t,r,n){var o=this.props.isAnimationActive,i=this.state.isAnimationFinished;if(o&&!i)return null;var a=this.props,c=a.dot,u=a.points,l=a.dataKey,s=fc(this.props,!1),f=fc(c,!0),p=u.map((function(t,r){var n=QE(QE(QE({key:"dot-".concat(r),r:3},s),f),{},{index:r,cx:t.x,cy:t.y,dataKey:l,value:t.value,payload:t.payload,points:u});return e.renderDotItem(c,n)})),d={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return st.createElement(Bc,GE({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,o=e.strokeWidth,i=n[0].x,a=n[n.length-1].x,c=t*Math.abs(i-a),u=Ww(n.map((function(t){return t.y||0})));return Na(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(Ww(r.map((function(t){return t.y||0}))),u)),Na(u)?st.createElement("rect",{x:i<a?i:i-c,y:0,width:c,height:Math.floor(u+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,o=e.strokeWidth,i=n[0].y,a=n[n.length-1].y,c=t*Math.abs(i-a),u=Ww(n.map((function(t){return t.x||0})));return Na(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(Ww(r.map((function(t){return t.x||0}))),u)),Na(u)?st.createElement("rect",{x:0,y:i<a?i:i-c,width:u+(o?parseInt("".concat(o),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,r,n){var o=this.props,i=o.layout,a=o.type,c=o.stroke,u=o.connectNulls,l=o.isRange;o.ref;var s=KE(o,qE);return st.createElement(Bc,{clipPath:r?"url(#clipPath-".concat(n,")"):null},st.createElement(l_,GE({},fc(s,!0),{points:t,connectNulls:u,type:a,baseLine:e,layout:i,stroke:"none",className:"recharts-area-area"})),"none"!==c&&st.createElement(l_,GE({},fc(this.props,!1),{className:"recharts-area-curve",layout:i,type:a,connectNulls:u,fill:"none",points:t})),"none"!==c&&l&&st.createElement(l_,GE({},fc(this.props,!1),{className:"recharts-area-curve",layout:i,type:a,connectNulls:u,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,o=n.points,i=n.baseLine,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=this.state,p=f.prevPoints,d=f.prevBaseLine;return st.createElement(vP,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"area-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(p){var c,u=p.length/o.length,l=o.map((function(t,e){var r=Math.floor(e*u);if(p[r]){var n=p[r],o=Ha(n.x,t.x),i=Ha(n.y,t.y);return QE(QE({},t),{},{x:o(a),y:i(a)})}return t}));return c=Na(i)&&"number"==typeof i?Ha(d,i)(a):da(i)||Ca(i)?Ha(d,0)(a):i.map((function(t,e){var r=Math.floor(e*u);if(d[r]){var n=d[r],o=Ha(n.x,t.x),i=Ha(n.y,t.y);return QE(QE({},t),{},{x:o(a),y:i(a)})}return t})),r.renderAreaStatically(l,c,t,e)}return st.createElement(Bc,null,st.createElement("defs",null,st.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),st.createElement(Bc,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(o,i,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,o=r.baseLine,i=r.isAnimationActive,a=this.state,c=a.prevPoints,u=a.prevBaseLine,l=a.totalLength;return i&&n&&n.length&&(!c&&l>0||!nx(c,n)||!nx(u,o))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,o,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,o=e.points,i=e.className,a=e.top,c=e.left,u=e.xAxis,l=e.yAxis,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!o||!o.length)return null;var h=this.state.isAnimationFinished,y=1===o.length,v=Nn("recharts-area",i),g=u&&u.allowDataOverflow,m=l&&l.allowDataOverflow,b=g||m,w=da(d)?this.id:d,x=null!==(t=fc(n,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,_=x.strokeWidth,j=void 0===_?2:_,P=(sc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return st.createElement(Bc,{className:v},g||m?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(w)},st.createElement("rect",{x:g?c:c-s/2,y:m?a:a-f/2,width:g?s:2*s,height:m?f:2*f})),!A&&st.createElement("clipPath",{id:"clipPath-dots-".concat(w)},st.createElement("rect",{x:c-M/2,y:a-M/2,width:s+M,height:f+M}))):null,y?null:this.renderArea(b,w),(n||y)&&this.renderDots(b,A,w),(!p||h)&&FS.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],n&&tC(r.prototype,n),o&&tC(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}();function uC(t){return uC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uC(t)}function lC(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,yC(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function sC(t,e,r){return e=pC(e),function(t,e){if(e&&("object"===uC(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,fC()?Reflect.construct(e,r||[],pC(t).constructor):e.apply(t,r))}function fC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(fC=function(){return!!t})()}function pC(t){return pC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pC(t)}function dC(t,e){return dC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},dC(t,e)}function hC(t,e,r){return(e=yC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yC(t){var e=function(t,e){if("object"!=uC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=uC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==uC(e)?e:e+""}function vC(){return vC=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},vC.apply(this,arguments)}function gC(t){var e=t.xAxisId,r=bk(),n=wk(),o=gk(e);return null==o?null:st.createElement(ME,vC({},o,{className:Nn("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return $O(t,!0)}}))}ZE=cC,iC(cC,"displayName","Area"),iC(cC,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Eh,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),iC(cC,"getBaseValue",(function(t,e,r,n){var o=t.layout,i=t.baseValue,a=e.props.baseValue,c=null!=a?a:i;if(Na(c)&&"number"==typeof c)return c;var u="horizontal"===o?n:r,l=u.scale.domain();if("number"===u.type){var s=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===c?l[0]:"dataMax"===c?l[1]:l[0]})),iC(cC,"getComposedData",(function(t){var e,r=t.props,n=t.item,o=t.xAxis,i=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,u=t.bandSize,l=t.dataKey,s=t.stackedData,f=t.dataStartIndex,p=t.displayedData,d=t.offset,h=r.layout,y=s&&s.length,v=ZE.getBaseValue(r,n,o,i),g="horizontal"===h,m=!1,b=p.map((function(t,e){var r;y?r=s[f+e]:(r=IO(t,l),Array.isArray(r)?m=!0:r=[v,r]);var n=null==r[1]||y&&null==IO(t,l);return g?{x:ZO({axis:o,ticks:a,bandSize:u,entry:t,index:e}),y:n?null:i.scale(r[1]),value:r,payload:t}:{x:n?null:o.scale(r[1]),y:ZO({axis:i,ticks:c,bandSize:u,entry:t,index:e}),value:r,payload:t}}));return e=y||m?b.map((function(t){var e=Array.isArray(t.value)?t.value[0]:null;return g?{x:t.x,y:null!=e&&null!=t.y?i.scale(e):null}:{x:null!=e?o.scale(e):null,y:t.y}})):g?i.scale(v):o.scale(v),QE({points:b,baseLine:e,layout:h,isRange:m},d)})),iC(cC,"renderDotItem",(function(t,e){var r;if(st.isValidElement(t))r=st.cloneElement(t,e);else if(ga(t))r=t(e);else{var n=Nn("recharts-area-dot","boolean"!=typeof t?t.className:""),o=e.key,i=KE(e,YE);r=st.createElement(kP,GE({},i,{key:o,className:n}))}return r}));var mC=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),sC(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dC(t,e)}(e,st.Component),lC(e,[{key:"render",value:function(){return st.createElement(gC,this.props)}}])}();function bC(t){return bC="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},bC(t)}function wC(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,PC(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function xC(t,e,r){return e=SC(e),function(t,e){if(e&&("object"===bC(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,OC()?Reflect.construct(e,r||[],SC(t).constructor):e.apply(t,r))}function OC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(OC=function(){return!!t})()}function SC(t){return SC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},SC(t)}function _C(t,e){return _C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_C(t,e)}function jC(t,e,r){return(e=PC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function PC(t){var e=function(t,e){if("object"!=bC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=bC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==bC(e)?e:e+""}function AC(){return AC=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},AC.apply(this,arguments)}hC(mC,"displayName","XAxis"),hC(mC,"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 MC=function(t){var e=t.yAxisId,r=bk(),n=wk(),o=mk(e);return null==o?null:st.createElement(ME,AC({},o,{className:Nn("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return $O(t,!0)}}))},kC=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),xC(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_C(t,e)}(e,st.Component),wC(e,[{key:"render",value:function(){return st.createElement(MC,this.props)}}])}();function EC(t){return function(t){if(Array.isArray(t))return CC(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 CC(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 CC(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 CC(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}jC(kC,"displayName","YAxis"),jC(kC,"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 TC,DC=function(t,e,r,n,o){var i=ac(t,Nk),a=ac(t,qk),c=[].concat(EC(i),EC(a)),u=ac(t,iE),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===r&&iM(e.props,"extendDomain")&&Na(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),u.length){var p="".concat(s,"1"),d="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===r&&iM(e.props,"extendDomain")&&Na(e.props[p])&&Na(e.props[d])){var n=e.props[p],o=e.props[d];return[Math.min(t[0],n,o),Math.max(t[1],n,o)]}return t}),f)}return o&&o.length&&(f=o.reduce((function(t,e){return Na(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},IC={exports:{}};var NC=(TC||(TC=1,function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new o(n,i||t,a),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,o,i,a){var c=r?r+t:t;if(!this._events[c])return!1;var u,l,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,n),!0;case 4:return s.fn.call(s.context,e,n,o),!0;case 5:return s.fn.call(s.context,e,n,o,i),!0;case 6:return s.fn.call(s.context,e,n,o,i,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var p,d=s.length;for(l=0;l<d;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,n);break;case 4:s[l].fn.call(s[l].context,e,n,o);break;default:if(!u)for(p=1,u=new Array(f-1);p<f;p++)u[p-1]=arguments[p];s[l].fn.apply(s[l].context,u)}}return!0},c.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var c=this._events[i];if(c.fn)c.fn!==e||o&&!c.once||n&&c.context!==n||a(this,i);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||o&&!c[u].once||n&&c[u].context!==n)&&l.push(c[u]);l.length?this._events[i]=1===l.length?l[0]:l:a(this,i)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c}(IC)),IC.exports),RC=new(dr(NC)),LC="recharts.syncMouseEvents";function BC(t){return BC="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},BC(t)}function zC(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,HC(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function $C(t,e,r){return(e=HC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function HC(t){var e=function(t,e){if("object"!=BC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=BC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==BC(e)?e:e+""}var FC=function(){return zC((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),$C(this,"activeIndex",0),$C(this,"coordinateList",[]),$C(this,"layout","horizontal")}),[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,o=t.container,i=void 0===o?null:o,a=t.layout,c=void 0===a?null:a,u=t.offset,l=void 0===u?null:u,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=i?i:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,o=r.y,i=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=n+a+c,s=o+this.offset.top+i/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}])}();function UC(t){var e=t.cx,r=t.cy,n=t.radius,o=t.startAngle,i=t.endAngle;return{points:[cS(e,r,n,o),cS(e,r,n,i)],cx:e,cy:r,radius:n,startAngle:o,endAngle:i}}function VC(t,e,r){var n,o,i,a;if("horizontal"===t)i=n=e.x,o=r.top,a=r.top+r.height;else if("vertical"===t)a=o=e.y,n=r.left,i=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return UC(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=cS(c,u,l,f),d=cS(c,u,s,f);n=p.x,o=p.y,i=d.x,a=d.y}return[{x:n,y:o},{x:i,y:a}]}function WC(t){return WC="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},WC(t)}function ZC(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 qC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ZC(Object(r),!0).forEach((function(e){YC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ZC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function YC(t,e,r){return e=function(t){var e=function(t,e){if("object"!=WC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=WC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==WC(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XC(t){var e,r,n,o=t.element,i=t.tooltipEventType,a=t.isActive,c=t.activeCoordinate,u=t.activePayload,l=t.offset,s=t.activeTooltipIndex,f=t.tooltipAxisBandSize,p=t.layout,d=t.chartName,h=null!==(e=o.props.cursor)&&void 0!==e?e:null===(r=o.type.defaultProps)||void 0===r?void 0:r.cursor;if(!o||!h||!a||!c||"ScatterChart"!==d&&"axis"!==i)return null;var y=l_;if("ScatterChart"===d)n=c,y=HP;else if("BarChart"===d)n=function(t,e,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-o:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-o,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(p,c,l,f),y=AP;else if("radial"===p){var v=UC(c),g=v.cx,m=v.cy,b=v.radius;n={cx:g,cy:m,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:b,outerRadius:b},y=GS}else n={points:VC(p,c,l)},y=l_;var w=qC(qC(qC(qC({stroke:"#ccc",pointerEvents:"none"},l),n),fc(h,!1)),{},{payload:u,payloadIndex:s,className:Nn("recharts-tooltip-cursor",h.className)});return ft(h)?xt(h,w):Ot(y,w)}var KC=["item"],GC=["children","className","width","height","style","compact","title","desc"];function JC(t){return JC="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},JC(t)}function QC(){return QC=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},QC.apply(this,arguments)}function tT(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e);else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||uT(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 eT(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function rT(t,e,r){return e&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,dT(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function nT(t,e,r){return e=iT(e),function(t,e){if(e&&("object"===JC(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,oT()?Reflect.construct(e,r||[],iT(t).constructor):e.apply(t,r))}function oT(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(oT=function(){return!!t})()}function iT(t){return iT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},iT(t)}function aT(t,e){return aT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},aT(t,e)}function cT(t){return function(t){if(Array.isArray(t))return lT(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||uT(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 uT(t,e){if(t){if("string"==typeof t)return lT(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)?lT(t,e):void 0}}function lT(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 sT(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 fT(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sT(Object(r),!0).forEach((function(e){pT(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function pT(t,e,r){return(e=dT(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dT(t){var e=function(t,e){if("object"!=JC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=JC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==JC(e)?e:e+""}var hT={xAxis:["bottom","top"],yAxis:["left","right"]},yT={width:"100%",height:"100%"},vT={x:0,y:0};function gT(t){return t}var mT=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,o=e.dataEndIndex,i=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(cT(t),cT(r)):t}),[]);return i.length>0?i:t&&t.length&&Na(n)&&Na(o)?t.slice(n,o+1):[]};function bT(t){return"number"===t?[0,"auto"]:void 0}var wT=function(t,e,r,n){var o=t.graphicalItems,i=t.tooltipAxis,a=mT(e,t);return r<0||!o||!o.length||r>=a.length?null:o.reduce((function(o,c){var u,l,s=null!==(u=c.props.data)&&void 0!==u?u:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?l=Fa(void 0===s?a:s,i.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(cT(o),[tS(c,l)]):o}),[])},xT=function(t,e,r,n){var o=n||{x:t.chartX,y:t.chartY},i=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(o,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,u=0;u<a;u++){var l=u>0?n[u-1].coordinate:n[a-1].coordinate,s=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,p=void 0;if(Da(s-l)!==Da(f-s)){var d=[];if(Da(f-s)===Da(c[1]-c[0])){p=f;var h=s+c[1]-c[0];d[0]=Math.min(h,(h+l)/2),d[1]=Math.max(h,(h+l)/2)}else{p=l;var y=f+c[1]-c[0];d[0]=Math.min(s,(y+s)/2),d[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=d[0]&&t<=d[1]){i=n[u].index;break}}else{var g=Math.min(l,f),m=Math.max(l,f);if(t>(g+s)/2&&t<=(m+s)/2){i=n[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){i=r[b].index;break}return i}(i,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=wT(t,e,l,s),p=function(t,e,r,n){var o=e.find((function(t){return t&&t.index===r}));if(o){if("horizontal"===t)return{x:o.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:o.coordinate};if("centric"===t){var i=o.coordinate,a=n.radius;return fT(fT(fT({},n),cS(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var c=o.coordinate,u=n.angle;return fT(fT(fT({},n),cS(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return vT}(r,a,l,o);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},OT=function(t,e){var r=e.axes,n=e.graphicalItems,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=zO(l,o);return r.reduce((function(e,r){var d,h=void 0!==r.type.defaultProps?fT(fT({},r.type.defaultProps),r.props):r.props,y=h.type,v=h.dataKey,g=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,O=h[i];if(e[O])return e;var S,_,j,P=mT(t.data,{graphicalItems:n.filter((function(t){var e;return(i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i])===O})),dataStartIndex:c,dataEndIndex:u}),A=P.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&&Na(n)&&Na(o))return!0}return!1})(h.domain,g,y)&&(S=GO(h.domain,null,g),!p||"number"!==y&&"auto"===b||(j=NO(P,v,"category")));var M=bT(y);if(!S||0===S.length){var k,E=null!==(k=h.domain)&&void 0!==k?k:M;if(v){if(S=NO(P,v,y),"category"===y&&p){var C=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(S);m&&C?(_=S,S=EA(0,A)):m||(S=QO(E,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(cT(t),[e])}),[]))}else if("category"===y)S=m?S.filter((function(t){return""!==t&&!da(t)})):QO(E,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||da(e)?t:[].concat(cT(t),[e])}),[]);else if("number"===y){var T=function(t,e,r,n,o){var i=e.map((function(e){return LO(t,e,r,o,n)})).filter((function(t){return!da(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}(P,n.filter((function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===O&&(x||!o)})),v,o,l);T&&(S=T)}!p||"number"!==y&&"auto"===b||(j=NO(P,v,"category"))}else S=p?EA(0,A):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:YO(a[O].stackGroups,c,u):BO(P,n.filter((function(t){var e=i in t.props?t.props[i]:t.type.defaultProps[i],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===O&&(x||!r)})),y,l,!0);if("number"===y)S=DC(s,S,O,o,w),E&&(S=GO(E,S,g));else if("category"===y&&E){var D=E;S.every((function(t){return D.indexOf(t)>=0}))&&(S=D)}}return fT(fT({},e),{},pT({},O,fT(fT({},h),{},{axisType:o,domain:S,categoricalDomain:j,duplicateDomain:_,originalDomain:null!==(d=h.domain)&&void 0!==d?d:M,isCategorical:p,layout:l})))}),{})},ST=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=ac(l,o),p={};return f&&f.length?p=OT(t,{axes:f,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):i&&i.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=mT(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),p=f.length,d=zO(l,o),h=-1;return r.reduce((function(t,e){var y,v=(void 0!==e.type.defaultProps?fT(fT({},e.type.defaultProps),e.props):e.props)[i],g=bT("number");return t[v]?t:(h++,d?y=EA(0,p):a&&a[v]&&a[v].hasStack?(y=YO(a[v].stackGroups,c,u),y=DC(s,y,v,o)):(y=GO(g,BO(f,r.filter((function(t){var e,r,n=i in t.props?t.props[i]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[i],o="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===v&&!o})),"number",l),n.defaultProps.allowDataOverflow),y=DC(s,y,v,o)),fT(fT({},t),{},pT({},v,fT(fT({axisType:o},n.defaultProps),{},{hide:!0,orientation:sa(hT,"".concat(o,".").concat(h%2),null),domain:y,originalDomain:g,isCategorical:d,layout:l}))))}),{})}(t,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},_T=function(t){var e=t.children,r=t.defaultShowTooltip,n=cc(e,JA),o=0,i=0;return t.data&&0!==t.data.length&&(i=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},jT=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"}},PT=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),o=void 0===n?{}:n,i=t.yAxisMap,a=void 0===i?{}:i,c=r.width,u=r.height,l=r.children,s=r.margin||{},f=cc(l,JA),p=cc(l,Ud),d=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:fT(fT({},t),{},pT({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),h=Object.keys(o).reduce((function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:fT(fT({},t),{},pT({},n,sa(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=fT(fT({},h),d),v=y.bottom;f&&(y.bottom+=f.props.height||JA.defaultProps.height),p&&e&&(y=function(t,e,r,n){var o=r.children,i=r.width,a=r.margin,c=i-(a.left||0)-(a.right||0),u=AO({children:o,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,p=u.align,d=u.verticalAlign,h=u.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==p&&Na(t[p]))return TO(TO({},t),{},DO({},p,t[p]+(s||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&Na(t[d]))return TO(TO({},t),{},DO({},d,t[d]+(f||0)))}return t}(y,0,r,e));var g=c-y.left-y.right,m=u-y.top-y.bottom;return fT(fT({brushBottom:v},y),{},{width:Math.max(g,0),height:Math.max(m,0)})},AT=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},MT=function(t){var e=t.chartName,r=t.GraphicalChild,n=t.defaultTooltipEventType,o=void 0===n?"axis":n,i=t.validateTooltipEventTypes,a=void 0===i?["axis"]:i,c=t.axisComponents,u=t.legendContent,l=t.formatAxisMap,s=t.defaultProps,f=function(t,e){var r=e.graphicalItems,n=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,u=e.dataEndIndex,l=t.barSize,s=t.layout,f=t.barGap,p=t.barCategoryGap,d=t.maxBarSize,h=jT(s),y=h.numericAxisName,v=h.cateAxisName,g=function(t){return!(!t||!t.length)&&t.some((function(t){var e=rc(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),m=[];return r.forEach((function(r,h){var b=mT(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:u}),w=void 0!==r.type.defaultProps?fT(fT({},r.type.defaultProps),r.props):r.props,x=w.dataKey,O=w.maxBarSize,S=w["".concat(y,"Id")],_=w["".concat(v,"Id")],j=c.reduce((function(t,n){var o,i,a=e["".concat(n.axisType,"Map")],c=w["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?uO(0,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(o=null==r||null===(i=r.type)||void 0===i?void 0:i.displayName)&&void 0!==o?o:"")):uO());var u=a[c];return fT(fT({},t),{},pT(pT({},n.axisType,u),"".concat(n.axisType,"Ticks"),$O(u)))}),{}),P=j[v],A=j["".concat(v,"Ticks")],M=n&&n[S]&&n[S].hasStack&&function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?TO(TO({},t.type.defaultProps),t.props):t.props).stackId;if(Ra(n)){var o=e[n];if(o){var i=o.items.indexOf(t);return i>=0?o.stackedData[i]:null}}return null}(r,n[S].stackGroups),k=rc(r.type).indexOf("Bar")>=0,E=JO(P,A),C=[],T=g&&function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),c=0,u=a.length;c<u;c++)for(var l=o[a[c]].stackGroups,s=Object.keys(l),f=0,p=s.length;f<p;f++){var d=l[s[f]],h=d.items,y=d.cateAxisId,v=h.filter((function(t){return rc(t.type).indexOf("Bar")>=0}));if(v&&v.length){var g=v[0].type.defaultProps,m=void 0!==g?TO(TO({},g),v[0].props):v[0].props,b=m.barSize,w=m[y];i[w]||(i[w]=[]);var x=da(b)?e:b;i[w].push({item:v[0],stackList:v.slice(1),barSize:da(x)?void 0:za(x,r,0)})}}return i}({barSize:l,stackGroups:n,totalSize:AT(j,v)});if(k){var D,I,N=da(O)?d:O,R=null!==(D=null!==(I=JO(P,A,!0))&&void 0!==I?I:N)&&void 0!==D?D:0;C=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,o=t.sizeList,i=void 0===o?[]:o,a=t.maxBarSize,c=i.length;if(c<1)return null;var u,l=za(e,n,0,!0),s=[];if(i[0].barSize===+i[0].barSize){var f=!1,p=n/c,d=i.reduce((function(t,e){return t+e.barSize||0}),0);(d+=(c-1)*l)>=n&&(d-=(c-1)*l,l=0),d>=n&&p>0&&(f=!0,d=c*(p*=.9));var h={offset:((n-d)/2|0)-l,size:0};u=i.reduce((function(t,e){var r={item:e.item,position:{offset:h.offset+h.size+l,size:f?p:e.barSize}},n=[].concat(kO(t),[r]);return h=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:h})})),n}),s)}else{var y=za(r,n,0,!0);n-2*y-(c-1)*l<=0&&(l=0);var v=(n-2*y-(c-1)*l)/c;v>1&&(v>>=0);var g=a===+a?Math.min(v,a):v;u=i.reduce((function(t,e,r){var n=[].concat(kO(t),[{item:e.item,position:{offset:y+(v+l)*r+(v-g)/2,size:g}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:n[n.length-1].position})})),n}),s)}return u}({barGap:f,barCategoryGap:p,bandSize:R!==E?R:E,sizeList:T[_],maxBarSize:N}),R!==E&&(C=C.map((function(t){return fT(fT({},t),{},{position:fT(fT({},t.position),{},{offset:t.position.offset-R/2})})})))}var L,B,z=r&&r.type&&r.type.getComposedData;z&&m.push({props:fT(fT({},z(fT(fT({},j),{},{displayedData:b,props:t,dataKey:x,item:r,bandSize:E,barPosition:C,offset:o,stackedData:M,layout:s,dataStartIndex:a,dataEndIndex:u}))),{},pT(pT(pT({key:r.key||"item-".concat(h)},y,j[y]),v,j[v]),"animationId",i)),childIndex:(L=r,B=t.children,ic(B).indexOf(L)),item:r})})),m},p=function(t,n){var o=t.props,i=t.dataStartIndex,a=t.dataEndIndex,u=t.updateId;if(!uc({props:o}))return null;var s=o.children,p=o.layout,d=o.stackOffset,h=o.data,y=o.reverseStackOrder,v=jT(p),g=v.numericAxisName,m=v.cateAxisName,b=ac(s,r),w=function(t,e,r,n,o,i){if(!t)return null;var a=(i?e.reverse():e).reduce((function(t,e){var o,i=null!==(o=e.type)&&void 0!==o&&o.defaultProps?TO(TO({},e.type.defaultProps),e.props):e.props,a=i.stackId;if(i.hide)return t;var c=i[r],u=t[c]||{hasStack:!1,stackGroups:{}};if(Ra(a)){var l=u.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};l.items.push(e),u.hasStack=!0,u.stackGroups[a]=l}else u.stackGroups[Ba("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return TO(TO({},t),{},DO({},c,u))}),{});return Object.keys(a).reduce((function(e,i){var c=a[i];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,i){var a=c.stackGroups[i];return TO(TO({},e),{},DO({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:WO(t,a.items,o)}))}),{})),TO(TO({},e),{},DO({},i,c))}),{})}(h,b,"".concat(g,"Id"),"".concat(m,"Id"),d,y),x=c.reduce((function(t,e){var r="".concat(e.axisType,"Map");return fT(fT({},t),{},pT({},r,ST(o,fT(fT({},e),{},{graphicalItems:b,stackGroups:e.axisType===g&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),O=PT(fT(fT({},x),{},{props:o,graphicalItems:b}),null==n?void 0:n.legendBBox);Object.keys(x).forEach((function(t){x[t]=l(o,x[t],O,t.replace("Map",""),e)}));var S,_,j=x["".concat(m,"Map")],P=(S=$a(j),{tooltipTicks:_=$O(S,!1,!0),orderedTooltipTicks:nh(_,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:JO(S,_)}),A=f(o,fT(fT({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:u,graphicalItems:b,stackGroups:w,offset:O}));return fT(fT({formattedGraphicalItems:A,graphicalItems:b,offset:O,stackGroups:w},P),x)},d=function(t){function r(t){var n,o,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),pT(i=nT(this,r,[t]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),pT(i,"accessibilityManager",new FC),pT(i,"handleLegendBBoxUpdate",(function(t){if(t){var e=i.state,r=e.dataStartIndex,n=e.dataEndIndex,o=e.updateId;i.setState(fT({legendBBox:t},p({props:i.props,dataStartIndex:r,dataEndIndex:n,updateId:o},fT(fT({},i.state),{},{legendBBox:t}))))}})),pT(i,"handleReceiveSyncEvent",(function(t,e,r){if(i.props.syncId===t){if(r===i.eventEmitterSymbol&&"function"!=typeof i.props.syncMethod)return;i.applySyncEvent(e)}})),pT(i,"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==i.state.dataStartIndex||r!==i.state.dataEndIndex){var n=i.state.updateId;i.setState((function(){return fT({dataStartIndex:e,dataEndIndex:r},p({props:i.props,dataStartIndex:e,dataEndIndex:r,updateId:n},i.state))})),i.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),pT(i,"handleMouseEnter",(function(t){var e=i.getMouseInfo(t);if(e){var r=fT(fT({},e),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseEnter;ga(n)&&n(r,t)}})),pT(i,"triggeredAfterMouseMove",(function(t){var e=i.getMouseInfo(t),r=e?fT(fT({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(r),i.triggerSyncEvent(r);var n=i.props.onMouseMove;ga(n)&&n(r,t)})),pT(i,"handleItemMouseEnter",(function(t){i.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),pT(i,"handleItemMouseLeave",(function(){i.setState((function(){return{isTooltipActive:!1}}))})),pT(i,"handleMouseMove",(function(t){t.persist(),i.throttleTriggeredAfterMouseMove(t)})),pT(i,"handleMouseLeave",(function(t){i.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};i.setState(e),i.triggerSyncEvent(e);var r=i.props.onMouseLeave;ga(r)&&r(e,t)})),pT(i,"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&ec[e]?ec[e]:null}(t),n=sa(i.props,"".concat(r));r&&ga(n)&&n(null!==(e=/.*touch.*/i.test(r)?i.getMouseInfo(t.changedTouches[0]):i.getMouseInfo(t))&&void 0!==e?e:{},t)})),pT(i,"handleClick",(function(t){var e=i.getMouseInfo(t);if(e){var r=fT(fT({},e),{},{isTooltipActive:!0});i.setState(r),i.triggerSyncEvent(r);var n=i.props.onClick;ga(n)&&n(r,t)}})),pT(i,"handleMouseDown",(function(t){var e=i.props.onMouseDown;ga(e)&&e(i.getMouseInfo(t),t)})),pT(i,"handleMouseUp",(function(t){var e=i.props.onMouseUp;ga(e)&&e(i.getMouseInfo(t),t)})),pT(i,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),pT(i,"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseDown(t.changedTouches[0])})),pT(i,"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseUp(t.changedTouches[0])})),pT(i,"handleDoubleClick",(function(t){var e=i.props.onDoubleClick;ga(e)&&e(i.getMouseInfo(t),t)})),pT(i,"handleContextMenu",(function(t){var e=i.props.onContextMenu;ga(e)&&e(i.getMouseInfo(t),t)})),pT(i,"triggerSyncEvent",(function(t){void 0!==i.props.syncId&&RC.emit(LC,i.props.syncId,t,i.eventEmitterSymbol)})),pT(i,"applySyncEvent",(function(t){var e=i.props,r=e.layout,n=e.syncMethod,o=i.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)i.setState(fT({dataStartIndex:a,dataEndIndex:c},p({props:i.props,dataStartIndex:a,dataEndIndex:c,updateId:o},i.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=i.state,d=f.offset,h=f.tooltipTicks;if(!d)return;if("function"==typeof n)s=n(h,t);else if("value"===n){s=-1;for(var y=0;y<h.length;y++)if(h[y].value===t.activeLabel){s=y;break}}var v=fT(fT({},d),{},{x:d.left,y:d.top}),g=Math.min(u,v.x+v.width),m=Math.min(l,v.y+v.height),b=h[s]&&h[s].value,w=wT(i.state,i.props.data,s),x=h[s]?{x:"horizontal"===r?h[s].coordinate:g,y:"horizontal"===r?m:h[s].coordinate}:vT;i.setState(fT(fT({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else i.setState(t)})),pT(i,"renderCursor",(function(t){var r,n=i.state,o=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,u=n.offset,l=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=i.getTooltipEventType(),p=null!==(r=t.props.active)&&void 0!==r?r:o,d=i.props.layout,h=t.key||"_recharts-cursor";return st.createElement(XC,{key:h,activeCoordinate:a,activePayload:c,activeTooltipIndex:l,chartName:e,element:t,isActive:p,layout:d,offset:u,tooltipAxisBandSize:s,tooltipEventType:f})})),pT(i,"renderPolarAxis",(function(t,e,r){var n=sa(t,"type.axisType"),o=sa(i.state,"".concat(n,"Map")),a=t.type.defaultProps,c=void 0!==a?fT(fT({},a),t.props):t.props,u=o&&o[c["".concat(n,"Id")]];return xt(t,fT(fT({},u),{},{className:Nn(n,u.className),key:t.key||"".concat(e,"-").concat(r),ticks:$O(u,!0)}))})),pT(i,"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,o=e.polarRadius,a=i.state,c=a.radiusAxisMap,u=a.angleAxisMap,l=$a(c),s=$a(u),f=s.cx,p=s.cy,d=s.innerRadius,h=s.outerRadius;return xt(t,{polarAngles:Array.isArray(n)?n:$O(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(o)?o:$O(l,!0).map((function(t){return t.coordinate})),cx:f,cy:p,innerRadius:d,outerRadius:h,key:t.key||"polar-grid",radialLines:r})})),pT(i,"renderLegend",(function(){var t=i.state.formattedGraphicalItems,e=i.props,r=e.children,n=e.width,o=e.height,a=i.props.margin||{},c=n-(a.left||0)-(a.right||0),l=AO({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:u});if(!l)return null;var s=l.item,f=eT(l,KC);return xt(s,fT(fT({},f),{},{chartWidth:n,chartHeight:o,margin:a,onBBoxUpdate:i.handleLegendBBoxUpdate}))})),pT(i,"renderTooltip",(function(){var t,e=i.props,r=e.children,n=e.accessibilityLayer,o=cc(r,ty);if(!o)return null;var a=i.state,c=a.isTooltipActive,u=a.activeCoordinate,l=a.activePayload,s=a.activeLabel,f=a.offset,p=null!==(t=o.props.active)&&void 0!==t?t:c;return xt(o,{viewBox:fT(fT({},f),{},{x:f.left,y:f.top}),active:p,label:s,payload:p?l:[],coordinate:u,accessibilityLayer:n})})),pT(i,"renderBrush",(function(t){var e=i.props,r=e.margin,n=e.data,o=i.state,a=o.offset,c=o.dataStartIndex,u=o.dataEndIndex,l=o.updateId;return xt(t,{key:t.key||"_recharts-brush",onChange:FO(i.handleBrushChange,t.props.onChange),data:n,x:Na(t.props.x)?t.props.x:a.left,y:Na(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Na(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),pT(i,"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=i.clipPathId,o=i.state,a=o.xAxisMap,c=o.yAxisMap,u=o.offset,l=t.type.defaultProps||{},s=t.props,f=s.xAxisId,p=void 0===f?l.xAxisId:f,d=s.yAxisId,h=void 0===d?l.yAxisId:d;return xt(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[p],yAxis:c[h],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:n})})),pT(i,"renderActivePoints",(function(t){var e=t.item,n=t.activePoint,o=t.basePoint,i=t.childIndex,a=t.isRange,c=[],u=e.props.key,l=void 0!==e.item.type.defaultProps?fT(fT({},e.item.type.defaultProps),e.item.props):e.item.props,s=l.activeDot,f=fT(fT({index:i,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:RO(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},fc(s,!1)),Xa(s));return c.push(r.renderActiveDot(s,f,"".concat(u,"-activePoint-").concat(i))),o?c.push(r.renderActiveDot(s,fT(fT({},f),{},{cx:o.x,cy:o.y}),"".concat(u,"-basePoint-").concat(i))):a&&c.push(null),c})),pT(i,"renderGraphicChild",(function(t,e,r){var n=i.filterFormatItem(t,e,r);if(!n)return null;var o=i.getTooltipEventType(),a=i.state,c=a.isTooltipActive,u=a.tooltipAxis,l=a.activeTooltipIndex,s=a.activeLabel,f=cc(i.props.children,ty),p=n.props,d=p.points,h=p.isRange,y=p.baseLine,v=void 0!==n.item.type.defaultProps?fT(fT({},n.item.type.defaultProps),n.item.props):n.item.props,g=v.activeDot,m=v.hide,b=v.activeBar,w=v.activeShape,x=Boolean(!m&&c&&f&&(g||b||w)),O={};"axis"!==o&&f&&"click"===f.props.trigger?O={onClick:FO(i.handleItemMouseEnter,t.props.onClick)}:"axis"!==o&&(O={onMouseLeave:FO(i.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:FO(i.handleItemMouseEnter,t.props.onMouseEnter)});var S=xt(t,fT(fT({},n.props),O));if(x){if(!(l>=0)){var _,j=(null!==(_=i.getItemByXY(i.state.activeCoordinate))&&void 0!==_?_:{graphicalItem:S}).graphicalItem,P=j.item,A=void 0===P?t:P,M=j.childIndex,k=fT(fT(fT({},n.props),O),{},{activeIndex:M});return[xt(A,k),null,null]}var E,C;if(u.dataKey&&!u.allowDuplicatedCategory){var T="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());E=Fa(d,T,s),C=h&&y&&Fa(y,T,s)}else E=null==d?void 0:d[l],C=h&&y&&y[l];if(w||b){var D=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[xt(t,fT(fT(fT({},n.props),O),{},{activeIndex:D})),null,null]}if(!da(E))return[S].concat(cT(i.renderActivePoints({item:n,activePoint:E,basePoint:C,childIndex:l,isRange:h})))}return h?[S,null,null]:[S,null]})),pT(i,"renderCustomized",(function(t,e,r){return xt(t,fT(fT({key:"recharts-customized-".concat(r)},i.props),i.state))})),pT(i,"renderMap",{CartesianGrid:{handler:gT,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:gT},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:gT},YAxis:{handler:gT},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:Ba("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=iy(i.triggeredAfterMouseMove,null!==(o=t.throttleDelay)&&void 0!==o?o:1e3/60),i.state={},i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&aT(t,e)}(r,jt),rT(r,[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,o=t.layout,i=cc(e,ty);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length-1)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=wT(this.state,r,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===o?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=fT(fT({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(d),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;var r,n;(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin)&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}});return null}},{key:"componentDidUpdate",value:function(t){pc([cc(t.children,ty)],[cc(this.props.children,ty)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=cc(this.props.children,ty);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return a.indexOf(e)>=0?e:o}return o}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),o={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(t.pageX-o.left),chartY:Math.round(t.pageY-o.top)},a=n.width/r.offsetWidth||1,c=this.inRange(i.chartX,i.chartY,a);if(!c)return null;var u=this.state,l=u.xAxisMap,s=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&s){var f=$a(l).scale,p=$a(s).scale,d=f&&f.invert?f.invert(i.chartX):null,h=p&&p.invert?p.invert(i.chartY):null;return fT(fT({},i),{},{xValue:d,yValue:h})}var y=xT(this.state,this.props.data,this.props.layout,c);return y?fT(fT({},i),y):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=t/r,i=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var c=this.state,u=c.angleAxisMap,l=c.radiusAxisMap;if(u&&l){var s=$a(u);return sS({x:o,y:i},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=cc(t,ty),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),fT(fT({},Xa(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){RC.on(LC,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){RC.removeListener(LC,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o<i;o++){var a=n[o];if(a.item===t||a.props.key===t.key||e===rc(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,o=e.height,i=e.width;return st.createElement("defs",null,st.createElement("clipPath",{id:t},st.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=tT(e,2),n=r[0],o=r[1];return fT(fT({},t),{},pT({},n,o.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=tT(e,2),n=r[0],o=r[1];return fT(fT({},t),{},pT({},n,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var o=0,i=r.length;o<i;o++){var a=r[o],c=a.props,u=a.item,l=void 0!==u.type.defaultProps?fT(fT({},u.type.defaultProps),u.props):u.props,s=rc(u.type);if("Bar"===s){var f=(c.data||[]).find((function(e){return jP(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(c.data||[]).find((function(e){return sS(t,e)}));if(p)return{graphicalItem:a,payload:p}}else if(wA(a,n)||xA(a,n)||OA(a,n)){var d=PA({graphicalItem:a,activeTooltipItem:n,itemData:l.data}),h=void 0===l.activeIndex?d:l.activeIndex;return{graphicalItem:fT(fT({},a),{},{childIndex:h}),payload:OA(a,n)?l.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var t=this;if(!uc(this))return null;var e,r,n=this.props,o=n.children,i=n.className,a=n.width,c=n.height,u=n.style,l=n.compact,s=n.title,f=n.desc,p=eT(n,GC),d=fc(p,!1);if(l)return st.createElement(yk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},st.createElement(mc,QC({},d,{width:a,height:c,title:s,desc:f}),this.renderClipPath(),hc(o,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,d.role=null!==(r=this.props.role)&&void 0!==r?r:"application",d.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},d.onFocus=function(){t.accessibilityManager.focus()});var h=this.parseEventsOfWrapper();return st.createElement(yk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},st.createElement("div",QC({className:Nn("recharts-wrapper",i),style:fT({position:"relative",cursor:"default",width:a,height:c},u)},h,{ref:function(e){t.container=e}}),st.createElement(mc,QC({},d,{width:a,height:c,title:s,desc:f,style:yT}),this.renderClipPath(),hc(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();pT(d,"displayName",e),pT(d,"defaultProps",fT({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},s)),pT(d,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,o=t.children,i=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var d=_T(t);return fT(fT(fT({},d),{},{updateId:0},p(fT(fT({props:t},d),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(r!==e.prevDataKey||n!==e.prevData||i!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!Ua(l,e.prevMargin)){var h=_T(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=fT(fT({},xT(e,n,c)),{},{updateId:e.updateId+1}),g=fT(fT(fT({},h),y),v);return fT(fT(fT({},g),p(fT({props:t},g),e)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:o})}if(!pc(o,e.prevChildren)){var m,b,w,x,O=cc(o,JA),S=O&&null!==(m=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==m?m:s,_=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,j=S!==s||_!==f,P=!da(n)&&!j?e.updateId:e.updateId+1;return fT(fT({updateId:P},p(fT(fT({props:t},e),{},{updateId:P,dataStartIndex:S,dataEndIndex:_}),e)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:_})}return null})),pT(d,"renderActiveDot",(function(t,e,r){var n;return n=ft(t)?xt(t,e):ga(t)?t(e):st.createElement(kP,e),st.createElement(Bc,{className:"recharts-active-dot",key:r},n)}));var h=ht((function(t,e){return st.createElement(d,QC({},t,{ref:e}))}));return h.displayName=d.displayName,h},kT=MT({chartName:"LineChart",GraphicalChild:WE,axisComponents:[{axisType:"xAxis",AxisComp:mC},{axisType:"yAxis",AxisComp:kC}],formatAxisMap:ZM}),ET=MT({chartName:"AreaChart",GraphicalChild:cC,axisComponents:[{axisType:"xAxis",AxisComp:mC},{axisType:"yAxis",AxisComp:kC}],formatAxisMap:ZM});const CT=({formatter:n,labelFormatter:o,payload:i,cx:a,cy:c})=>{const u=100;return Number.isFinite(i.value)?t("svg",{x:a-50,y:c-60,width:u,height:68,viewBox:"0 0 100 68",xmlns:"http://www.w3.org/2000/svg",children:[o&&t(r,{children:[e("rect",{fill:"white",width:"98",height:"45",stroke:Ur.coolElegance(),strokeWidth:"1",rx:"7",ry:"7",className:"shadow"}),e("text",{y:"14",x:"50%",fontSize:10,dominantBaseline:"middle",textAnchor:"middle",children:o(0,[{payload:i}])}),e("text",{y:"30",x:"50%",fontSize:11,dominantBaseline:"middle",textAnchor:"middle",fontWeight:"bold",children:n?n(i.value||0):i.value}),e("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"30",opacity:"0.7",children:e("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:Ur.coolElegance(),transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})}),e("svg",{viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",y:"28",children:e("path",{d:"M -14.041 -7.717 L -13.115 -6.975 L -14.952 -6.975 L -14.041 -7.717 Z",stroke:"white",transform:"matrix(-1, 0, 0, -1, 0, -2.220446049250313e-16)"})})]}),e("rect",{x:43,y:"52",width:14,height:14,rx:7,fill:"white",stroke:Ur.coolElegance(),strokeWidth:"2"})]}):e(r,{})},TT=({data:r,dataKey:n,width:o="100%",height:i="100%",areaType:a="linear",isAnimated:c=!1,formatter:u,labelFormatter:l,sampleRate:s,style:f})=>{const{isNetGain:p}=Nr({data:r,dataKey:n}),d=Dn(),h=Dn(),y=s?Hr({arr:r||[],n:s}):r;let v,g;y?.length?(g=p?Ur.mint():Ur.coolElegance(),v=y?.map((t=>{const e=parseFloat(t[n]);return{...t,[n]:Number.isFinite(e)?e:null}}))):(g=Ur.coolElegance(),v=[{[n]:1},{[n]:1}]);const m={cursor:y?.length?"crosshair":"default",...f};return e(py,{width:o,minHeight:i,id:d,children:t(ET,{data:v,margin:{top:20,right:0,left:0,bottom:20},style:m,children:[e("defs",{children:t("linearGradient",{id:h,x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:g,stopOpacity:.8}),e("stop",{offset:"95%",stopColor:g,stopOpacity:0})]})}),e(kC,{domain:y?.length?["dataMin","dataMax"]:[0,2],hide:!0}),e(cC,{type:a,dataKey:n,stroke:g,fill:`url(#${h})`,isAnimationActive:c,activeDot:t=>CT({labelFormatter:l,formatter:u,...t}),dot:!1}),y?.length&&e(ty,{cursor:!1,content:()=>null})]})})},DT=({isCloseable:t,onClick:r})=>{const n=l({ssr:!1});return e(s,{children:e(f,{label:t?"Click to dismiss":null,hasArrow:!0,fontFamily:"mono",fontSize:"12px",children:e(p,{onClick:r,cursor:t?"pointer":"default",bgColor:{base:"rgba(143, 163, 255, 0.9)",sm:"rgba(117, 143, 255, 0.9)",md:"rgba(77, 109, 255, 0.9)",lg:"rgba(24, 74, 201, 0.9)",xl:"rgba(19, 60, 164, 0.9)","2xl":"rgba(15, 47, 128, 0.9)"},color:{base:Ur.black(),md:"white"},position:"fixed",top:"0",right:"0",padding:"2",fontSize:"xs",zIndex:"5",width:"10rem",boxShadow:"dark-lg",fontFamily:"mono",children:n})})})},IT=({children:t,...r})=>e(d,{border:"solid 1px",borderColor:Ur.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:t}),NT=({isSelected:t,children:r,...n})=>e(h,{variant:"none",paddingX:"1",fontSize:"sm",color:t?"brand.500":Ur.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:t?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),RT=({children:t,...r})=>e(y,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:Ur.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:t}),LT=r=>{const{carouselContents:n,isNavVertical:o,...i}=r,[a,c]=gt(0);return n.length>=1&&e(RT,{children:t(v,{gap:10,direction:o?"column":{base:"column",md:"row"},...i,children:[n[a],t(v,{alignItems:"flex-end",justifyContent:"center",gap:6,children:[e(g,{variant:"ghost",isDisabled:0===a,"aria-label":"Previous content",icon:e(Lt,{}),onClick:()=>{a>0&&a<=n.length-1&&c((t=>t-1))}}),e(g,{variant:"ghost",isDisabled:a===n.length-1,"aria-label":"Next content",icon:e(Bt,{}),onClick:()=>{a<n.length-1&&c((t=>t+1))}})]})]})})},BT=t=>{const{isIndeterminate:r,isChecked:n,...o}=t;return n?e(Ht,{...o}):r?e(ve,{...o}):null},zT=r=>{const{size:n,isDisabled:o,isReadOnly:i,isRequired:a,isIndeterminate:c,name:u,register:l,errorMessage:s,label:f,labelPosition:p="left",spaceBetween:d,onClick:h,...y}=r,g=l?l(u):void 0;return t(m,{as:v,flexDir:"column",isInvalid:Boolean(s),isDisabled:o,isReadOnly:i,isRequired:a,children:[t(v,{onClick:h,w:"full",alignItems:"center",justifyContent:d?"space-between":"auto",children:["left"===p&&e(b,{fontSize:n,m:"0",mr:"3",children:f}),e(w,{icon:e(BT,{}),isDisabled:o,isReadOnly:i,isRequired:a,isIndeterminate:c,isInvalid:Boolean(s),size:n,...g,...y}),"right"===p&&e(b,{fontSize:n,m:"0",ml:"3",children:f})]}),e(v,{w:"full",children:s&&e(x,{size:n,children:s})})]})},$T=O(((t,r)=>{const{children:n,uiColor:o,...i}=t;return e(h,{py:"1",px:"2",height:"auto",ref:r,size:"xs",bgColor:`${o}.500 !important`,color:"black",transition:"background-color 0.25s",sx:{"&:not(:disabled):hover, &:not(:disabled):focus, &:not(:disabled)[data-active]":{bgColor:`${o}.300 !important`}},fontSize:"12px",...i,children:n})})),HT=({uiColor:r,isLocalDev:n,enableRefetch:o,setEnableRefetch:i,setShowBreakpointDebugger:a,onDrawerClose:c})=>{const[u,l]=gt(!1),[s,f]=gt(!1),[p,d]=gt(!1);bt((()=>{document.body.classList.contains("show-outlines")&&l(!0),document.body.classList.contains("show-error-boundaries")&&f(!0);const t=document.querySelector(".tsqd-queries-container");d(Boolean(t))}),[i]);const h={width:{base:"full",md:"auto"},uiColor:r};return t(v,{flexDir:"column",children:[e(S,{as:"h3",fontSize:"md",borderBottom:"solid 1px",borderColor:`${r}.700`,mb:"2",fontFamily:"mono",children:"Actions"}),t(_,{children:[t($T,{onClick:()=>{if(document.querySelector(".tsqd-queries-container")){const t=document.querySelector(".tsqd-minimize-btn");t?.click(),d(!1)}else{const t=document.querySelector(".tsqd-open-btn");t?.click(),d(!0)}},isDisabled:!n,...h,children:[p?"Hide":"Show"," React Query console"]}),t($T,{onClick:()=>{o?localStorage.setItem("enableRefetch","false"):localStorage.removeItem("enableRefetch"),i(!o),window.location.reload()},position:"relative",...h,_after:o?{}:{bg:"purple.500",borderRadius:"full",width:"3",height:"3",position:"absolute",top:"-0.25rem",right:"-0.25rem",zIndex:"1",content:'""'},children:[o?"Disable":"Enable"," refetch intervals"]}),e($T,{onClick:()=>{c(),a(!0)},...h,children:"Show breakpoint debugger"}),t($T,{onClick:()=>{l(!u),document.body.classList.toggle("show-outlines")},...h,children:[u?"Hide":"Show"," outlines"]}),t($T,{onClick:()=>{f(!s),document.body.classList.toggle("show-error-boundaries")},...h,children:[s?"Hide":"Show"," error boundaries"]})]})]})},FT=({data:r,heading:n,uiColor:o,buttons:i})=>t(v,{flexDir:"column",children:[t(v,{borderBottom:"solid 1px",borderColor:`${o}.700`,mb:"2",justifyContent:"flex-end",children:[n&&e(S,{as:"h3",fontSize:"md",fontFamily:"mono",children:n}),e(v,{ml:"auto",mb:"5px",gap:"2",flexWrap:"wrap",children:i})]}),e(j,{columns:2,gap:1,children:r.map((r=>t(Pt,{children:[e(p,{textTransform:"uppercase",children:r.label}),e(p,{children:r.value})]},r.label)))})]}),UT=({children:n,footer:o,consoleButton:i,isLocalDev:a})=>{const{isOpen:c,onOpen:u,onClose:l}=P(),[s,f]=gt(!1),p=a?"green":"yellow";return bt((()=>{const t=t=>{t.ctrlKey&&"d"===t.key&&(c?l():u())};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[c,l,u]),bt((()=>{const t=t=>{t.ctrlKey&&"j"===t.key&&f(!s)};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[s,f]),t(r,{children:[t(A,{isOpen:c,placement:"right",onClose:l,size:"lg",children:[e(M,{}),t(k,{bg:"blackAlpha.900",color:`${p}.500`,fontFamily:"monospace",className:"dev-console",children:[e(E,{}),e(C,{children:e(v,{gap:"4",alignItems:"center",children:e(S,{as:"h1",fontFamily:"monospace",fontSize:"xl",p:"0",children:"Dev Console"})})}),e(T,{fontSize:"11px",children:e(v,{gap:8,flexDir:"column",children:n({uiColor:p,onClose:l})})}),o({uiColor:p})]})]}),i({uiColor:p,onClose:l,isOpen:c,hideButton:s,onOpen:u})]})},VT=({hideButton:n,enableRefetch:o,onOpen:i,uiColor:a,hasSystemOverride:c,authBypassEnabled:u})=>{const l=!o||c||u;return e(s,{children:!n&&t(D,{position:"fixed",top:"4",right:"4",zIndex:"1000",bgColor:"blackAlpha.800",borderRadius:"md",transition:"background-color 0.25s",className:"dev-console",_hover:{bgColor:"blackAlpha.900"},children:[l&&e(D,{bg:"purple.500",borderRadius:"full",width:"3",height:"3",position:"absolute",top:"-0.25rem",right:"-0.25rem",zIndex:"1"}),e(f,{label:t(v,{flexDir:"column",gap:"0.5",padding:"1",fontFamily:"mono",fontSize:"12px",children:[u&&e(p,{children:"• Auth bypass enabled"}),c&&e(p,{children:"• System override applied"}),!o&&e(p,{children:"• Refetch intervals disabled"}),!l&&t(r,{children:[e(p,{children:"• Open console (ctrl+d)"}),e(p,{children:"• Hide button (ctrl+j)"})]})]}),hasArrow:!0,children:e(h,{"aria-label":"Open",size:"sm",onClick:i,fontSize:"lg",bg:"transparent !important",color:`${a}.500`,padding:"0",boxShadow:"dark-lg",children:"☆"})})]})})},WT=({uiColor:r})=>t(v,{flexDir:"column",children:[e(S,{as:"h3",fontSize:"md",borderBottom:"solid 1px",borderColor:`${r}.700`,mb:"2",fontFamily:"mono",children:"Links"}),t(I,{listStyleType:"disc",listStylePosition:"inside",children:[e(N,{children:e(R,{href:"https://api.cryptofi-dev.com/v2/docs",target:"api-docs",textTransform:"uppercase",children:"CWS API Documentation"})}),e(N,{children:e(R,{href:"https://cryptofi-core-ui.vercel.app/?path=/docs/intro--docs",target:"storybook",textTransform:"uppercase",children:"Core UI Storybook"})})]})]}),ZT=({enableRefetch:t,status:r})=>e(f,{label:t?null:"Refetch disabled",hasArrow:!0,children:e(D,{width:"fit-content",as:"span",children:e(p,{as:"span",color:r&&t?"inherit":"gray.500",fontFamily:"body",children:r?"✔":"✘"})})}),qT=({children:t,onSubmit:r,...n})=>e(v,{as:"form",onSubmit:t=>{t.preventDefault(),r&&r(t)},noValidate:!0,gap:"6",flexDir:"column",...n,children:t});var YT=function(){return YT=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},YT.apply(this,arguments)};function XT(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var KT=function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},GT={k:1e3,m:1e6,b:1e9},JT=function(t){var e=t.value,r=t.groupSeparator,n=void 0===r?",":r,o=t.decimalSeparator,i=void 0===o?".":o,a=t.allowDecimals,c=void 0===a||a,u=t.decimalsLimit,l=void 0===u?2:u,s=t.allowNegativeValue,f=void 0===s||s,p=t.disableAbbreviations,d=void 0!==p&&p,h=t.prefix,y=void 0===h?"":h,v=t.transformRawValue,g=(void 0===v?function(t){return t}:v)(e);if("-"===g)return g;var m=d?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(KT(y),")")).test(g),w=RegExp("(\\d+)-?".concat(KT(y))).exec(e)||[],x=w[0],O=w[1],S=function(t,e){void 0===e&&(e=",");var r=new RegExp(KT(e),"g");return t.replace(r,"")}(y?x?g.replace(x,"").concat(O):g.replace(y,""):g,n),_=function(t,e){var r=KT(e.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return t.replace(n,"")}(S,XT([n,i],m,!0)),j=_;if(!d){if(m.some((function(t){return t===_.toLowerCase().replace(i,"")})))return"";var P=function(t,e){void 0===e&&(e=".");var r=new RegExp("(\\d+(".concat(KT(e),"\\d*)?)([kmb])$"),"i"),n=t.match(r);if(n){var o=n[1],i=n[3],a=GT[i.toLowerCase()];return Number(o.replace(e,"."))*a}}(_,i);P&&(j=String(P))}var A=b&&f?"-":"";if(i&&j.includes(i)){var M=_.split(i),k=M[0],E=M[1],C=l&&E?E.slice(0,l):E,T=c?"".concat(i).concat(C):"";return"".concat(A).concat(k).concat(T)}return"".concat(A).concat(j)},QT=function(t,e){var r=e.groupSeparator,n=void 0===r?",":r,o=e.decimalSeparator,i=void 0===o?".":o,a=new RegExp("\\d([^".concat(KT(n)).concat(KT(i),"0-9]+)")),c=t.match(a);return c?c[1]:void 0},tD=function(t){var e=t.value,r=t.decimalSeparator,n=t.intlConfig,o=t.decimalScale,i=t.prefix,a=void 0===i?"":i,c=t.suffix,u=void 0===c?"":c;if(""===e||void 0===e)return"";if("-"===e)return"-";var l=new RegExp("^\\d?-".concat(a?"".concat(KT(a),"?"):"","\\d")).test(e),s="."!==r?eD(e,r,l):e;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f={minimumFractionDigits:o||0,maximumFractionDigits:20},p=(n?new Intl.NumberFormat(n.locale,n.currency?YT(YT({},f),{style:"currency",currency:n.currency}):f):new Intl.NumberFormat(void 0,f)).formatToParts(Number(s)),d=rD(p,t),h=QT(d,YT({},t)),y=e.slice(-1)===r?r:"",v=(s.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return void 0===o&&v&&r&&(d=d.includes(r)?d.replace(RegExp("(\\d+)(".concat(KT(r),")(\\d+)"),"g"),"$1$2".concat(v)):h&&!u?d.replace(h,"".concat(r).concat(v).concat(h)):"".concat(d).concat(r).concat(v)),u&&y?"".concat(d).concat(y).concat(u):h&&y?d.replace(h,"".concat(y).concat(h)):h&&u?d.replace(h,"".concat(y).concat(u)):[d,y,u].join("")},eD=function(t,e,r){var n=t;return e&&"."!==e&&(n=n.replace(RegExp(KT(e),"g"),"."),r&&"-"===e&&(n="-".concat(n.slice(1)))),n},rD=function(t,e){var r=e.prefix,n=e.groupSeparator,o=e.decimalSeparator,i=e.decimalScale,a=e.disableGroupSeparators,c=void 0!==a&&a;return t.reduce((function(t,e,a){var u=e.type,l=e.value;return 0===a&&r?"minusSign"===u?[l,r]:"currency"===u?XT(XT([],t,!0),[r],!1):[r,l]:"currency"===u?r?t:XT(XT([],t,!0),[l],!1):"group"===u?c?t:XT(XT([],t,!0),[void 0!==n?n:l],!1):"decimal"===u?void 0!==i&&0===i?t:XT(XT([],t,!0),[void 0!==o?o:l],!1):XT(XT([],t,!0),"fraction"===u?[void 0!==i?l.slice(0,i):l]:[l],!1)}),[""]).join("")},nD={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},oD=function(t){return RegExp(/\d/,"gi").test(t)},iD=ht((function(t,e){var r=t.allowDecimals,n=void 0===r||r,o=t.allowNegativeValue,i=void 0===o||o,a=t.id,c=t.name,u=t.className,l=t.customInput,s=t.decimalsLimit,f=t.defaultValue,p=t.disabled,d=void 0!==p&&p,h=t.maxLength,y=t.value,v=t.onValueChange,g=t.fixedDecimalLength,m=t.placeholder,b=t.decimalScale,w=t.prefix,x=t.suffix,O=t.intlConfig,S=t.step,_=t.min,j=t.max,P=t.disableGroupSeparators,A=void 0!==P&&P,M=t.disableAbbreviations,k=void 0!==M&&M,E=t.decimalSeparator,C=t.groupSeparator,T=t.onChange,D=t.onFocus,I=t.onBlur,N=t.onKeyDown,R=t.onKeyUp,L=t.transformRawValue,B=t.formatValueOnBlur,z=void 0===B||B,$=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue","formatValueOnBlur"]);if(E&&oD(E))throw new Error("decimalSeparator cannot be a number");if(C&&oD(C))throw new Error("groupSeparator cannot be a number");var H=wt((function(){return function(t){var e=t||{},r=e.locale,n=e.currency;return(r?new Intl.NumberFormat(r,n?{currency:n,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(t,e,r){return"currency"===e.type?YT(YT({},t),0===r?{currencySymbol:e.value,prefix:e.value}:{currencySymbol:e.value,suffix:e.value}):"group"===e.type?YT(YT({},t),{groupSeparator:e.value}):"decimal"===e.type?YT(YT({},t),{decimalSeparator:e.value}):t}),nD)}(O)}),[O]),F=E||H.decimalSeparator||"",U=C||H.groupSeparator||"";if(F&&U&&F===U&&!1===A)throw new Error("decimalSeparator cannot be the same as groupSeparator");var V={decimalSeparator:F,groupSeparator:U,disableGroupSeparators:A,intlConfig:O,prefix:w||H.prefix,suffix:x},W={decimalSeparator:F,groupSeparator:U,allowDecimals:n,decimalsLimit:s||g||2,allowNegativeValue:i,disableAbbreviations:k,prefix:w||H.prefix,transformRawValue:L},Z=gt((function(){return null!=f?tD(YT(YT({},V),{decimalScale:b,value:String(f)})):null!=y?tD(YT(YT({},V),{decimalScale:b,value:String(y)})):""})),q=Z[0],Y=Z[1],X=gt(!1),K=X[0],G=X[1],J=gt(0),Q=J[0],tt=J[1],et=gt(0),rt=et[0],nt=et[1],ot=gt(null),it=ot[0],at=ot[1],ct=yt(null);vt(e,(function(){return ct.current}));var ut=function(t,e){G(!0);var r=function(t){var e=t.selectionStart,r=t.value,n=t.lastKeyStroke,o=t.stateValue,i=t.groupSeparator,a=e,c=r;if(o&&a){var u=r.split("");return"Backspace"===n&&o[a]===i&&(u.splice(a-1,1),a-=1),"Delete"===n&&o[a]===i&&(u.splice(a,1),a+=1),{modifiedValue:c=u.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:e}}({selectionStart:e,value:t,lastKeyStroke:it,stateValue:q,groupSeparator:U}),n=r.modifiedValue,o=r.cursorPosition,i=JT(YT({value:n},W));if(!(h&&i.replace(/-/g,"").length>h)){if(""===i||"-"===i||i===F)return v&&v(void 0,c,{float:null,formatted:"",value:""}),Y(i),void tt(1);var a=F?i.replace(F,"."):i,u=parseFloat(a),l=tD(YT({value:i},V));if(null!=o){var s=o+(l.length-t.length);s=s<=0?w?w.length:0:s,tt(s),nt(rt+1)}if(Y(l),v)v(i,c,{float:u,formatted:l,value:i})}};bt((function(){null==y&&null==f&&Y("")}),[f,y]),bt((function(){K&&"-"!==q&&ct.current&&document.activeElement===ct.current&&ct.current.setSelectionRange(Q,Q)}),[q,Q,ct,K,rt]);var lt=YT({type:"text",inputMode:"decimal",id:a,name:c,className:u,onChange:function(t){var e=t.target,r=e.value,n=e.selectionStart;ut(r,n),T&&T(t)},onBlur:function(t){var e=t.target.value,r=JT(YT({value:e},W));if("-"===r||r===F||!r)return Y(""),void(I&&I(t));var n=function(t,e,r){if(void 0!==r&&t.length>1){if(0===r)return t.replace(e,"");if(t.includes(e)){var n=t.split(e),o=n[0];if((c=n[1]).length===r)return t;if(c.length>r)return"".concat(o).concat(e).concat(c.slice(0,r))}var i=t.length>r?new RegExp("(\\d+)(\\d{".concat(r,"})")):new RegExp("(\\d)(\\d+)"),a=t.match(i);if(a){o=a[1];var c=a[2];return"".concat(o).concat(e).concat(c)}}return t}(r,F,g),o=function(t,e,r){if(void 0===e&&(e="."),void 0===r||""===t||void 0===t)return t;if(!t.match(/\d/g))return"";var n=t.split(e),o=n[0],i=n[1];if(0===r)return o;var a=i||"";if(a.length<r)for(;a.length<r;)a+="0";else a=a.slice(0,r);return"".concat(o).concat(e).concat(a)}(n,F,void 0!==b?b:g),i=parseFloat(o.replace(F,".")),a=tD(YT(YT({},V),{value:o}));v&&z&&v(o,c,{float:i,formatted:a,value:o}),Y(a),I&&I(t)},onFocus:function(t){return D&&D(t),q?q.length:0},onKeyDown:function(t){var e=t.key;if(at(e),S&&("ArrowUp"===e||"ArrowDown"===e)){t.preventDefault(),tt(q.length);var r=parseFloat(null!=y?String(y).replace(F,"."):JT(YT({value:q},W)))||0,n="ArrowUp"===e?r+S:r-S;if(void 0!==_&&n<Number(_))return;if(void 0!==j&&n>Number(j))return;var o=String(S).includes(".")?Number(String(S).split(".")[1].length):void 0;ut(String(o?n.toFixed(o):n).replace(".",F))}N&&N(t)},onKeyUp:function(t){var e=t.key,r=t.currentTarget.selectionStart;if("ArrowUp"!==e&&"ArrowDown"!==e&&"-"!==q){var n=QT(q,{groupSeparator:U,decimalSeparator:F});if(n&&r&&r>q.length-n.length&&ct.current){var o=q.length-n.length;ct.current.setSelectionRange(o,o)}}R&&R(t)},placeholder:m,disabled:d,value:null==y||"-"===q||F&&q===F?q:tD(YT(YT({},V),{decimalScale:K?void 0:b,value:String(y)})),ref:ct},$);if(l){var ft=l;return st.createElement(ft,YT({},lt))}return st.createElement("input",YT({},lt))}));iD.displayName="CurrencyInput";const aD=O(((r,n)=>{const{size:o,isDisabled:i,isReadOnly:a,isRequired:c,spellCheck:u=!1,name:l,label:s,register:f,errorMessage:p,helperText:d,leftAddon:h,leftElement:y,rightAddon:v,rightElement:g,type:w="text",containerCss:O,...S}=r,_=Rr(o),j=f?f(l):void 0,P="currency"===w?{as:iD,placeholder:"$0.00",prefix:"$",allowNegativeValue:!1,disableAbbreviations:!0}:{};return t(m,{isInvalid:Boolean(p),isDisabled:i,isReadOnly:a,isRequired:c,sx:O,children:[s&&e(b,{size:o,children:s}),t(L,{size:o,children:[h&&e(B,{children:h}),y&&e(z,{w:"auto",ml:"1em",children:y}),e($,{size:o,spellCheck:u,paddingLeft:y&&"2.5em",paddingRight:g&&"2.5em",type:"currency"===w?"text":w,...j,...P,...S,ref:n||j?.ref}),g&&e(H,{w:"auto",mr:"1em",children:g}),v&&e(F,{children:v})]}),p&&e(x,{size:o,children:p}),d&&e(U,{fontSize:_,children:d})]})}));var cD=t=>null==t;var uD=t=>!cD(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),lD=t=>{const e=t.constructor&&t.constructor.prototype;return uD(e)&&e.hasOwnProperty("isPrototypeOf")},sD="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function fD(t){let e;const r=Array.isArray(t),n="undefined"!=typeof FileList&&t instanceof FileList;if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else{if(sD&&(t instanceof Blob||n)||!r&&!uD(t))return t;if(e=r?[]:{},r||lD(t))for(const r in t)t.hasOwnProperty(r)&&(e[r]=fD(t[r]));else e=t}return e}var pD=t=>Array.isArray(t)?t.filter(Boolean):[],dD=t=>void 0===t,hD=(t,e,r)=>{if(!e||!uD(t))return r;const n=pD(e.split(/[,[\].]+?/)).reduce(((t,e)=>cD(t)?t:t[e]),t);return dD(n)||n===t?dD(t[e])?r:t[e]:n},yD=t=>"boolean"==typeof t,vD=t=>/^\w*$/.test(t),gD=t=>pD(t.replace(/["|']|\]/g,"").split(/\.|\[/)),mD=(t,e,r)=>{let n=-1;const o=vD(e)?[e]:gD(e),i=o.length,a=i-1;for(;++n<i;){const e=o[n];let i=r;if(n!==a){const r=t[e];i=uD(r)||Array.isArray(r)?r:isNaN(+o[n+1])?{}:[]}if("__proto__"===e||"constructor"===e||"prototype"===e)return;t[e]=i,t=t[e]}return t};const bD="onBlur",wD="onChange",xD="onSubmit",OD="onTouched",SD="all",_D="max",jD="min",PD="maxLength",AD="minLength",MD="pattern",kD="required",ED="validate",CD=st.createContext(null);var TD=t=>uD(t)&&!Object.keys(t).length,DD=t=>Array.isArray(t)?t:[t];var ID=t=>"string"==typeof t,ND=(t,e,r,n,o)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:o||!0}}:{},RD=()=>{const t="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const r=(16*Math.random()+t)%16|0;return("x"==e?r:3&r|8).toString(16)}))},LD=(t,e,r={})=>r.shouldFocus||dD(r.shouldFocus)?r.focusName||`${t}.${dD(r.focusIndex)?e:r.focusIndex}.`:"",BD=t=>({isOnSubmit:!t||t===xD,isOnBlur:t===bD,isOnChange:t===wD,isOnAll:t===SD,isOnTouch:t===OD});const zD=(t,e,r,n)=>{for(const r of Object.keys(t)){const n=hD(t,r);if(n){const{_f:t,...o}=n;if(t){if(t.refs&&t.refs[0]&&e(t.refs[0],r))return!0;if(t.ref&&e(t.ref,t.name))return!0;if(zD(o,e))break}else if(uD(o)&&zD(o,e))break}}};var $D=(t,e,r)=>{const n=DD(hD(t,r));return mD(n,"root",e[r]),mD(t,r,n),t},HD=t=>ID(t),FD=t=>t instanceof RegExp;function UD(t,e,r="validate"){if(HD(t)||Array.isArray(t)&&t.every(HD)||yD(t)&&!t)return{type:r,message:HD(t)?t:"",ref:e}}var VD=t=>uD(t)&&!FD(t)?t:{value:t,message:""},WD=async(t,e,r,n,o,i)=>{const{ref:a,refs:c,required:u,maxLength:l,minLength:s,min:f,max:p,pattern:d,validate:h,name:y,valueAsNumber:v,mount:g}=t._f,m=hD(r,y);if(!g||e.has(y))return{};const b=c?c[0]:a,w=t=>{o&&b.reportValidity&&(b.setCustomValidity(yD(t)?"":t||""),b.reportValidity())},x={};a.type,(t=>{t.type})(a);const O=(v||(t=>"file"===t.type)(a))&&dD(a.value)&&dD(m)||(t=>{if(!sD)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)})(a)&&""===a.value||""===m||Array.isArray(m)&&!m.length,S=ND.bind(null,y,n,x),_=(t,e,r,n=PD,o=AD)=>{const i=t?e:r;x[y]={type:t?n:o,message:i,ref:a,...S(t?n:o,i)}};if(!Array.isArray(m)||!m.length){const{value:t,message:e}=HD(u)?{value:!!u,message:u}:VD(u);if(t&&(x[y]={type:kD,message:e,ref:b,...S(kD,e)},!n))return w(e),x}if(!(O||cD(f)&&cD(p))){let t,e;const r=VD(p),o=VD(f);if(cD(m)||isNaN(m)){const n=a.valueAsDate||new Date(m),i=t=>new Date((new Date).toDateString()+" "+t),c="time"==a.type,u="week"==a.type;ID(r.value)&&m&&(t=c?i(m)>i(r.value):u?m>r.value:n>new Date(r.value)),ID(o.value)&&m&&(e=c?i(m)<i(o.value):u?m<o.value:n<new Date(o.value))}else{const n=a.valueAsNumber||(m?+m:m);cD(r.value)||(t=n>r.value),cD(o.value)||(e=n<o.value)}if((t||e)&&(_(!!t,r.message,o.message,_D,jD),!n))return w(x[y].message),x}if((l||s)&&!O&&(ID(m)||Array.isArray(m))){const t=VD(l),e=VD(s),r=!cD(t.value)&&m.length>+t.value,o=!cD(e.value)&&m.length<+e.value;if((r||o)&&(_(r,t.message,e.message),!n))return w(x[y].message),x}if(d&&!O&&ID(m)){const{value:t,message:e}=VD(d);if(FD(t)&&!m.match(t)&&(x[y]={type:MD,message:e,ref:a,...S(MD,e)},!n))return w(e),x}if(h)if("function"==typeof h){const t=UD(await h(m,r),b);if(t&&(x[y]={...t,...S(ED,t.message)},!n))return w(t.message),x}else if(uD(h)){let t={};for(const e in h){if(!TD(t)&&!n)break;const o=UD(await h[e](m,r),b,e);o&&(t={...o,...S(e,o.message)},w(o.message),n&&(x[y]=t))}if(!TD(t)&&(x[y]={ref:b,...t},!n))return x}return w(!0),x},ZD=(t,e)=>[...t,...DD(e)],qD=t=>Array.isArray(t)?t.map((()=>{})):void 0;function YD(t,e,r){return[...t.slice(0,e),...DD(r),...t.slice(e)]}var XD=(t,e,r)=>Array.isArray(t)?(dD(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],KD=(t,e)=>[...DD(e),...DD(t)];var GD=(t,e)=>dD(e)?[]:function(t,e){let r=0;const n=[...t];for(const t of e)n.splice(t-r,1),r++;return pD(n).length?n:[]}(t,DD(e).sort(((t,e)=>t-e))),JD=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]};function QD(t,e){const r=Array.isArray(e)?e:vD(e)?[e]:gD(e),n=1===r.length?t:function(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=dD(t)?n++:t[e[n++]];return t}(t,r),o=r.length-1,i=r[o];return n&&delete n[i],0!==o&&(uD(n)&&TD(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!dD(t[e]))return!1;return!0}(n))&&QD(t,r.slice(0,-1)),t}var tI=(t,e,r)=>(t[e]=r,t);function eI(t){const e=st.useContext(CD),{control:r=e.control,name:n,keyName:o="id",shouldUnregister:i,rules:a}=t,[c,u]=st.useState(r._getFieldArray(n)),l=st.useRef(r._getFieldArray(n).map(RD)),s=st.useRef(c),f=st.useRef(n),p=st.useRef(!1);f.current=n,s.current=c,r._names.array.add(n),a&&r.register(n,a),function(t){const e=st.useRef(t);e.current=t,st.useEffect((()=>{const r=!t.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{r&&r.unsubscribe()}}),[t.disabled])}({next:({values:t,name:e})=>{if(e===f.current||!e){const e=hD(t,f.current);Array.isArray(e)&&(u(e),l.current=e.map(RD))}},subject:r._subjects.array});const d=st.useCallback((t=>{p.current=!0,r._updateFieldArray(n,t)}),[r,n]);return st.useEffect((()=>{if(r._state.action=!1,((t,e,r)=>e.watchAll||e.watch.has(t)||[...e.watch].some((e=>t.startsWith(e)&&/^\.\w+/.test(t.slice(e.length)))))(n,r._names)&&r._subjects.state.next({...r._formState}),p.current&&(!BD(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then((t=>{const e=hD(t.errors,n),o=hD(r._formState.errors,n);(o?!e&&o.type||e&&(o.type!==e.type||o.message!==e.message):e&&e.type)&&(e?mD(r._formState.errors,n,e):QD(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=hD(r._fields,n);!t||!t._f||BD(r._options.reValidateMode).isOnSubmit&&BD(r._options.mode).isOnSubmit||WD(t,r._names.disabled,r._formValues,r._options.criteriaMode===SD,r._options.shouldUseNativeValidation).then((t=>!TD(t)&&r._subjects.state.next({errors:$D(r._formState.errors,t,n)})))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&zD(r._fields,((t,e)=>{if(r._names.focus&&e.startsWith(r._names.focus)&&t.focus)return t.focus(),1})),r._names.focus="",r._updateValid(),p.current=!1}),[c,n,r]),st.useEffect((()=>(!hD(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||i)&&r.unregister(n)})),[n,r,o,i]),{swap:st.useCallback(((t,e)=>{const o=r._getFieldArray(n);JD(o,t,e),JD(l.current,t,e),d(o),u(o),r._updateFieldArray(n,o,JD,{argA:t,argB:e},!1)}),[d,n,r]),move:st.useCallback(((t,e)=>{const o=r._getFieldArray(n);XD(o,t,e),XD(l.current,t,e),d(o),u(o),r._updateFieldArray(n,o,XD,{argA:t,argB:e},!1)}),[d,n,r]),prepend:st.useCallback(((t,e)=>{const o=DD(fD(t)),i=KD(r._getFieldArray(n),o);r._names.focus=LD(n,0,e),l.current=KD(l.current,o.map(RD)),d(i),u(i),r._updateFieldArray(n,i,KD,{argA:qD(t)})}),[d,n,r]),append:st.useCallback(((t,e)=>{const o=DD(fD(t)),i=ZD(r._getFieldArray(n),o);r._names.focus=LD(n,i.length-1,e),l.current=ZD(l.current,o.map(RD)),d(i),u(i),r._updateFieldArray(n,i,ZD,{argA:qD(t)})}),[d,n,r]),remove:st.useCallback((t=>{const e=GD(r._getFieldArray(n),t);l.current=GD(l.current,t),d(e),u(e),!Array.isArray(hD(r._fields,n))&&mD(r._fields,n,void 0),r._updateFieldArray(n,e,GD,{argA:t})}),[d,n,r]),insert:st.useCallback(((t,e,o)=>{const i=DD(fD(e)),a=YD(r._getFieldArray(n),t,i);r._names.focus=LD(n,t,o),l.current=YD(l.current,t,i.map(RD)),d(a),u(a),r._updateFieldArray(n,a,YD,{argA:t,argB:qD(e)})}),[d,n,r]),update:st.useCallback(((t,e)=>{const o=fD(e),i=tI(r._getFieldArray(n),t,o);l.current=[...i].map(((e,r)=>e&&r!==t?l.current[r]:RD())),d(i),u([...i]),r._updateFieldArray(n,i,tI,{argA:t,argB:o},!0,!1)}),[d,n,r]),replace:st.useCallback((t=>{const e=DD(fD(t));l.current=e.map(RD),d([...e]),u([...e]),r._updateFieldArray(n,[...e],(t=>t),{},!0,!1)}),[d,n,r]),fields:st.useMemo((()=>c.map(((t,e)=>({...t,[o]:l.current[e]||RD()})))),[c,o])}}const rI=({name:r,control:n,register:o,defaultValues:i,onArrayAppend:a,onArrayRemove:c})=>{const{fields:u,append:l,remove:s}=eI({control:n,name:r}),p=Object.keys(i).reduce(((t,e)=>({...t,[e]:i[e]})),{});return t(D,{children:[u.map(((n,i)=>e(D,{children:t(D,{pb:6,position:"relative",children:[Object.keys(n).filter((t=>"id"!==t)).map((t=>e(aD,{label:t,name:`${r}.${i}.${t}`,register:o},`${t}-${n.id}`))),e(f,{label:"Delete",children:e(v,{position:"absolute",top:"0",right:"0",children:e(h,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(i),c&&c(i)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),e(v,{children:e(h,{size:"sm",onClick:()=>{l(p),a&&a(p)},ml:"auto",children:"+"})})]})},nI=({data:r,dataKey:n,width:o="100%",height:i="100%",lineType:a="linear",isAnimated:c=!1,formatter:u,labelFormatter:l,sampleRate:s,style:f})=>{const{isNetGain:p}=Nr({data:r,dataKey:n}),d=Dn(),h=s?Hr({arr:r||[],n:s}):r;let y,v;h?.length?(v=p?Ur.mint():Ur.heroicRed(),y=h?.map((t=>({...t,[n]:Number(t[n])||0})))):(v=Ur.coolElegance(),y=[{[n]:0},{[n]:0}]);const g={cursor:h?.length?"crosshair":"default",...f};return e(py,{width:o,minHeight:i,id:d,children:t(kT,{data:y,style:g,children:[e(kC,{domain:["dataMin","dataMax"],hide:!0}),e(WE,{isAnimationActive:c,type:a,dataKey:n,stroke:v,strokeWidth:"2",activeDot:t=>CT({labelFormatter:l,formatter:u,...t}),dot:!1,scale:"threshold"}),h?.length&&e(ty,{cursor:!1,content:()=>null})]})})},oI=({isOpen:r,onClose:n,headerContent:o=null,footerContent:i=null,children:a,isCentered:c=!0,size:u={base:"md",md:"xl"},isDisabledCloseButton:l,bodyProps:s={},contentProps:f={},...p})=>{const d={maxHeight:"60vh",bg:"transparent",overflowX:"hidden",overflowY:"auto",...s},h={...{minWidth:Zr},...f};return t(V,{blockScrollOnMount:!1,scrollBehavior:"inside",isOpen:r,onClose:n,isCentered:c,size:u,trapFocus:!zr(),...p,children:[e(W,{}),t(Z,{...h,children:[e(q,{children:o}),e(Y,{isDisabled:l}),e(X,{...d,children:a}),i&&e(K,{borderTop:"solid 1px",borderColor:Ur.coolElegance(),justifyContent:"flex-start",children:i})]})]})},iI=t=>{const{isActive:r,children:n,href:o,...i}=t;return e(R,{display:"flex",as:R,borderRadius:"md",border:"solid 1px",bg:r?"brand.50":"transparent",borderColor:r?"brand.200":"transparent",boxShadow:r?`0 8px 16px 0 ${Ur.black(.08)}`:"none",href:o,alignItems:"center",lineHeight:"1",position:"relative",padding:"2",zIndex:"3",transition:"border-color 0.25s",_hover:{borderColor:!r&&Ur.coolElegance(),textDecoration:"none"},...i,children:n},o)};var aI,cI={exports:{}};var uI,lI=(aI||(aI=1,uI=cI,function(t,e){uI.exports=e(st)}(0,(t=>(()=>{var e={703:(t,e,r)=>{var n=r(414);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,i,a){if(a!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},697:(t,e,r)=>{t.exports=r(703)()},414:t=>{t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98:e=>{e.exports=t}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return(()=>{n.r(o),n.d(o,{default:()=>w});var t=n(98),e=n.n(t),r=n(697),i=n.n(r);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},a.apply(this,arguments)}var c=function(t){var r=t.pageClassName,n=t.pageLinkClassName,o=t.page,i=t.selected,c=t.activeClassName,u=t.activeLinkClassName,l=t.getEventListener,s=t.pageSelectedHandler,f=t.href,p=t.extraAriaContext,d=t.pageLabelBuilder,h=t.rel,y=t.ariaLabel||"Page "+o+(p?" "+p:""),v=null;return i&&(v="page",y=t.ariaLabel||"Page "+o+" is your current page",r=void 0!==r?r+" "+c:c,void 0!==n?void 0!==u&&(n=n+" "+u):n=u),e().createElement("li",{className:r},e().createElement("a",a({rel:h,role:f?void 0:"button",className:n,href:f,tabIndex:i?"-1":"0","aria-label":y,"aria-current":v,onKeyPress:s},l(s)),d(o)))};c.propTypes={pageSelectedHandler:i().func.isRequired,selected:i().bool.isRequired,pageClassName:i().string,pageLinkClassName:i().string,activeClassName:i().string,activeLinkClassName:i().string,extraAriaContext:i().string,href:i().string,ariaLabel:i().string,page:i().number.isRequired,getEventListener:i().func.isRequired,pageLabelBuilder:i().func.isRequired,rel:i().string};const u=c;function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l.apply(this,arguments)}var s=function(t){var r=t.breakLabel,n=t.breakAriaLabel,o=t.breakClassName,i=t.breakLinkClassName,a=t.breakHandler,c=t.getEventListener,u=o||"break";return e().createElement("li",{className:u},e().createElement("a",l({className:i,role:"button",tabIndex:"0","aria-label":n,onKeyPress:a},c(a)),r))};s.propTypes={breakLabel:i().oneOfType([i().string,i().node]),breakAriaLabel:i().string,breakClassName:i().string,breakLinkClassName:i().string,breakHandler:i().func.isRequired,getEventListener:i().func.isRequired};const f=s;function p(t){return null!=t?t:arguments.length>1&&void 0!==arguments[1]?arguments[1]:""}function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},h.apply(this,arguments)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(c,t);var r,n,o,i,a=(o=c,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=g(o);if(i){var r=g(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(t)}(this,t)});function c(t){var r,n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),m(v(r=a.call(this,t)),"handlePreviousPage",(function(t){var e=r.state.selected;r.handleClick(t,null,e>0?e-1:void 0,{isPrevious:!0})})),m(v(r),"handleNextPage",(function(t){var e=r.state.selected,n=r.props.pageCount;r.handleClick(t,null,e<n-1?e+1:void 0,{isNext:!0})})),m(v(r),"handlePageSelected",(function(t,e){if(r.state.selected===t)return r.callActiveCallback(t),void r.handleClick(e,null,void 0,{isActive:!0});r.handleClick(e,null,t)})),m(v(r),"handlePageChange",(function(t){r.state.selected!==t&&(r.setState({selected:t}),r.callCallback(t))})),m(v(r),"getEventListener",(function(t){return m({},r.props.eventListener,t)})),m(v(r),"handleClick",(function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=o.isPrevious,a=void 0!==i&&i,c=o.isNext,u=void 0!==c&&c,l=o.isBreak,s=void 0!==l&&l,f=o.isActive,p=void 0!==f&&f;t.preventDefault?t.preventDefault():t.returnValue=!1;var d=r.state.selected,h=r.props.onClick,y=n;if(h){var v=h({index:e,selected:d,nextSelectedPage:n,event:t,isPrevious:a,isNext:u,isBreak:s,isActive:p});if(!1===v)return;Number.isInteger(v)&&(y=v)}void 0!==y&&r.handlePageChange(y)})),m(v(r),"handleBreakClick",(function(t,e){var n=r.state.selected;r.handleClick(e,t,n<t?r.getForwardJump():r.getBackwardJump(),{isBreak:!0})})),m(v(r),"callCallback",(function(t){void 0!==r.props.onPageChange&&"function"==typeof r.props.onPageChange&&r.props.onPageChange({selected:t})})),m(v(r),"callActiveCallback",(function(t){void 0!==r.props.onPageActive&&"function"==typeof r.props.onPageActive&&r.props.onPageActive({selected:t})})),m(v(r),"getElementPageRel",(function(t){var e=r.state.selected,n=r.props,o=n.nextPageRel,i=n.prevPageRel,a=n.selectedPageRel;return e-1===t?i:e===t?a:e+1===t?o:void 0})),m(v(r),"pagination",(function(){var t=[],n=r.props,o=n.pageRangeDisplayed,i=n.pageCount,a=n.marginPagesDisplayed,c=n.breakLabel,u=n.breakClassName,l=n.breakLinkClassName,s=n.breakAriaLabels,p=r.state.selected;if(i<=o)for(var d=0;d<i;d++)t.push(r.getPageElement(d));else{var h=o/2,y=o-h;p>i-o/2?h=o-(y=i-p):p<o/2&&(y=o-(h=p));var v,g,m=function(t){return r.getPageElement(t)},b=[];for(v=0;v<i;v++){var w=v+1;if(w<=a)b.push({type:"page",index:v,display:m(v)});else if(w>i-a)b.push({type:"page",index:v,display:m(v)});else if(v>=p-h&&v<=p+(0===p&&o>1?y-1:y))b.push({type:"page",index:v,display:m(v)});else if(c&&b.length>0&&b[b.length-1].display!==g&&(o>0||a>0)){var x=v<p?s.backward:s.forward;g=e().createElement(f,{key:v,breakAriaLabel:x,breakLabel:c,breakClassName:u,breakLinkClassName:l,breakHandler:r.handleBreakClick.bind(null,v),getEventListener:r.getEventListener}),b.push({type:"break",index:v,display:g})}}b.forEach((function(e,r){var n=e;"break"===e.type&&b[r-1]&&"page"===b[r-1].type&&b[r+1]&&"page"===b[r+1].type&&b[r+1].index-b[r-1].index<=2&&(n={type:"page",index:e.index,display:m(e.index)}),t.push(n.display)}))}return t})),void 0!==t.initialPage&&void 0!==t.forcePage&&console.warn("(react-paginate): Both initialPage (".concat(t.initialPage,") and forcePage (").concat(t.forcePage,") props are provided, which is discouraged.")+" Use exclusively forcePage prop for a controlled component.\nSee https://reactjs.org/docs/forms.html#controlled-components"),n=t.initialPage?t.initialPage:t.forcePage?t.forcePage:0,r.state={selected:n},r}return r=c,(n=[{key:"componentDidMount",value:function(){var t=this.props,e=t.initialPage,r=t.disableInitialCallback,n=t.extraAriaContext,o=t.pageCount,i=t.forcePage;void 0===e||r||this.callCallback(e),n&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(o)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(o,"). Did you forget a Math.ceil()?")),void 0!==e&&e>o-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(e," > ").concat(o-1,").")),void 0!==i&&i>o-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(i," > ").concat(o-1,")."))}},{key:"componentDidUpdate",value:function(t){void 0!==this.props.forcePage&&this.props.forcePage!==t.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(this.props.forcePage," > ").concat(this.props.pageCount-1,").")),this.setState({selected:this.props.forcePage})),Number.isInteger(t.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(this.props.pageCount,"). Did you forget a Math.ceil()?"))}},{key:"getForwardJump",value:function(){var t=this.state.selected,e=this.props,r=e.pageCount,n=t+e.pageRangeDisplayed;return n>=r?r-1:n}},{key:"getBackwardJump",value:function(){var t=this.state.selected-this.props.pageRangeDisplayed;return t<0?0:t}},{key:"getElementHref",value:function(t){var e=this.props,r=e.hrefBuilder,n=e.pageCount,o=e.hrefAllControls;if(r)return o||t>=0&&t<n?r(t+1,n,this.state.selected):void 0}},{key:"ariaLabelBuilder",value:function(t){var e=t===this.state.selected;if(this.props.ariaLabelBuilder&&t>=0&&t<this.props.pageCount){var r=this.props.ariaLabelBuilder(t+1,e);return this.props.extraAriaContext&&!e&&(r=r+" "+this.props.extraAriaContext),r}}},{key:"getPageElement",value:function(t){var r=this.state.selected,n=this.props,o=n.pageClassName,i=n.pageLinkClassName,a=n.activeClassName,c=n.activeLinkClassName,l=n.extraAriaContext,s=n.pageLabelBuilder;return e().createElement(u,{key:t,pageSelectedHandler:this.handlePageSelected.bind(null,t),selected:r===t,rel:this.getElementPageRel(t),pageClassName:o,pageLinkClassName:i,activeClassName:a,activeLinkClassName:c,extraAriaContext:l,href:this.getElementHref(t),ariaLabel:this.ariaLabelBuilder(t),page:t+1,pageLabelBuilder:s,getEventListener:this.getEventListener})}},{key:"render",value:function(){var t=this.props.renderOnZeroPageCount;if(0===this.props.pageCount&&void 0!==t)return t?t(this.props):t;var r=this.props,n=r.disabledClassName,o=r.disabledLinkClassName,i=r.pageCount,a=r.className,c=r.containerClassName,u=r.previousLabel,l=r.previousClassName,s=r.previousLinkClassName,f=r.previousAriaLabel,d=r.prevRel,y=r.nextLabel,v=r.nextClassName,g=r.nextLinkClassName,m=r.nextAriaLabel,b=r.nextRel,w=this.state.selected,x=0===w,O=w===i-1,S="".concat(p(l)).concat(x?" ".concat(p(n)):""),_="".concat(p(v)).concat(O?" ".concat(p(n)):""),j="".concat(p(s)).concat(x?" ".concat(p(o)):""),P="".concat(p(g)).concat(O?" ".concat(p(o)):""),A=x?"true":"false",M=O?"true":"false";return e().createElement("ul",{className:a||c,role:"navigation","aria-label":"Pagination"},e().createElement("li",{className:S},e().createElement("a",h({className:j,href:this.getElementHref(w-1),tabIndex:x?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":A,"aria-label":f,rel:d},this.getEventListener(this.handlePreviousPage)),u)),this.pagination(),e().createElement("li",{className:_},e().createElement("a",h({className:P,href:this.getElementHref(w+1),tabIndex:O?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":M,"aria-label":m,rel:b},this.getEventListener(this.handleNextPage)),y)))}}])&&function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),c}(t.Component);m(b,"propTypes",{pageCount:i().number.isRequired,pageRangeDisplayed:i().number,marginPagesDisplayed:i().number,previousLabel:i().node,previousAriaLabel:i().string,prevPageRel:i().string,prevRel:i().string,nextLabel:i().node,nextAriaLabel:i().string,nextPageRel:i().string,nextRel:i().string,breakLabel:i().oneOfType([i().string,i().node]),breakAriaLabels:i().shape({forward:i().string,backward:i().string}),hrefBuilder:i().func,hrefAllControls:i().bool,onPageChange:i().func,onPageActive:i().func,onClick:i().func,initialPage:i().number,forcePage:i().number,disableInitialCallback:i().bool,containerClassName:i().string,className:i().string,pageClassName:i().string,pageLinkClassName:i().string,pageLabelBuilder:i().func,activeClassName:i().string,activeLinkClassName:i().string,previousClassName:i().string,nextClassName:i().string,previousLinkClassName:i().string,nextLinkClassName:i().string,disabledClassName:i().string,disabledLinkClassName:i().string,breakClassName:i().string,breakLinkClassName:i().string,extraAriaContext:i().string,ariaLabelBuilder:i().func,eventListener:i().string,renderOnZeroPageCount:i().func,selectedPageRel:i().string}),m(b,"defaultProps",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:"selected",previousLabel:"Previous",previousClassName:"previous",previousAriaLabel:"Previous page",prevPageRel:"prev",prevRel:"prev",nextLabel:"Next",nextClassName:"next",nextAriaLabel:"Next page",nextPageRel:"next",nextRel:"next",breakLabel:"...",breakAriaLabels:{forward:"Jump forward",backward:"Jump backward"},disabledClassName:"disabled",disableInitialCallback:!1,pageLabelBuilder:function(t){return t},eventListener:"onClick",renderOnZeroPageCount:void 0,selectedPageRel:"canonical",hrefAllControls:!1});const w=b})(),o})()))),cI.exports);const sI=n(dr(lI)),fI=({totalRecords:t=0,recordsPerPage:r=10,pageRangeDisplayed:n=3,handlePageClick:o,forcePage:i,...a})=>{const c=Math.ceil(t/r);return e(v,{justifyContent:{base:"center",md:"flex-end"},fontSize:{base:14,md:18},gap:2,w:"full",...a,children:e(sI,{breakLabel:"...",previousLabel:"<",nextLabel:">",onPageChange:o,pageRangeDisplayed:n,pageCount:c,renderOnZeroPageCount:null,forcePage:i,display:{base:"flex"},alignItems:"center",gap:"inherit",disabledLinkClassName:"disabled-pagination",pageLinkClassName:"pagination-link",activeClassName:"active-page",previousClassName:"previous-page-button",nextClassName:"next-page-button",sx:{listStyleType:"none",".pagination-link:hover":{backgroundColor:"brand.700"},".previous-page-button a, .next-page-button a, .pagination-link":{backgroundColor:"brand.300",borderRadius:4,color:Ur.white()},".previous-page-button a, .next-page-button a":{minWidth:"2rem",display:"inline-block",textAlign:"center",paddingX:{base:2,lg:2.5}},".pagination-link":{minWidth:"2.5rem",display:"inline-block",textAlign:"center",paddingX:{base:2.5,lg:3}},".active-page a":{backgroundColor:"brand.500"},".disabled-pagination":{backgroundColor:"gray.300 !important",cursor:"not-allowed !important"}}})})},pI=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:o,lastEvaluatedKey:i,...a})=>{const[c,u]=gt([]),[l,s]=gt(1);return t(v,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[e(h,{onClick:()=>{if(2===l)return o(void 0),u([]),void s((t=>t-1));const t=c.length-1,e=c[t-1];o(e),u((t=>t.slice(0,-1))),s((t=>t-1))},isDisabled:r||1===l,children:"Previous"}),e(h,{onClick:()=>{if(i){const t={lastEvaluatedPKey:i.pKey,lastEvaluatedSKey:i.sKey};o(t),u((e=>[...e,t])),s((t=>t+1))}},isDisabled:r||!n,children:"Next"})]})},dI=({children:t,isEnabled:r=!0,...n})=>{const o=r?At`
32
32
  text-wrap: balance;
33
33
  text-wrap: pretty;
34
- `:void 0;return e(D,{css:o,...n,children:t})},pI=r=>{const{children:n,size:o,isDisabled:i,isReadOnly:a,isRequired:c,name:u,register:l,errorMessage:s,helperText:f,label:p,...d}=r,h=Rr(o),y=l?l(u):void 0;return t(m,{isInvalid:Boolean(s),isDisabled:i,isReadOnly:a,isRequired:c,children:[p&&e(b,{size:o,children:p}),e(G,{icon:e(Rt,{}),size:o,...y,...d,children:n}),s&&e(x,{size:o,children:s}),f&&e(U,{fontSize:h,children:f})]})},dI=Mt({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}),hI=({boxSize:t=8,color:r="brand",...n})=>{const o="neutral"===r?Hr.sonicSilver():"brand.500";return e(v,{width:"full",justifyContent:"center",alignItems:"center",minHeight:Number.isFinite(Number(t))?3*Number(t):`calc(${t} * 3)`,...n,children:e(v,{width:t,height:t,animation:`${dI} 2000ms infinite linear`,children:e(Pe,{boxSize:t,__css:{path:{fill:o}}})})})},yI=r=>{const{label:n,rightIcon:o,leftIcon:i,onClose:a,...c}=r,[u,l]=gt(!0);return u?t(J,{className:"cf-tag",...c,children:[i&&e(Q,{as:i}),e(tt,{children:n}),o&&e(et,{as:o}),a&&e(rt,{onClick:()=>{a(),l(!1)}})]}):null},vI=({description:r,title:n,onClose:o,isClosable:i,status:a})=>{let c,u;switch(a){case"error":u=kt;break;case"success":u=Ht;break;case"warning":u=ae,c="yellow";break;case"loading":c="brand",u=ut;break;default:c="brand",u=ae}return t(nt,{as:v,colorScheme:c,justifyContent:"space-between",status:a,children:[t(v,{alignItems:"center",mr:"4",children:[e(ot,{children:e(u,{size:"sm"})}),t(D,{children:[e(it,{children:n}),e(at,{children:r})]})]}),i&&e(ct,{onClick:o})]})},gI=({children:t,label:r})=>{const n=r?e(v,{padding:"1",flexDir:"column",gap:"2",lineHeight:"normal",fontSize:"sm",children:r}):null;return e(f,{label:n,hasArrow:!0,children:t})},mI=()=>{const t=l({ssr:!1}),e="base"===t||"sm"===t,r="md"===t,n="lg"===t||"xl"===t||"2xl"===t;return{breakpoint:t,isSmallBreakpoint:e,isMediumBreakpoint:r,isLargeBreakpoint:n,isAboveSmallBreakpoint:r||n,isBelowLargeBreakpoint:r||e}};var bI,wI={exports:{}},xI=wI.exports;
34
+ `:void 0;return e(D,{css:o,...n,children:t})},hI=r=>{const{children:n,size:o,isDisabled:i,isReadOnly:a,isRequired:c,name:u,register:l,errorMessage:s,helperText:f,label:p,...d}=r,h=Rr(o),y=l?l(u):void 0;return t(m,{isInvalid:Boolean(s),isDisabled:i,isReadOnly:a,isRequired:c,children:[p&&e(b,{size:o,children:p}),e(G,{icon:e(Rt,{}),size:o,...y,...d,children:n}),s&&e(x,{size:o,children:s}),f&&e(U,{fontSize:h,children:f})]})},yI=Mt({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}),vI=({boxSize:t=8,color:r="brand",...n})=>{const o="neutral"===r?Ur.sonicSilver():"brand.500";return e(v,{width:"full",justifyContent:"center",alignItems:"center",minHeight:Number.isFinite(Number(t))?3*Number(t):`calc(${t} * 3)`,...n,children:e(v,{width:t,height:t,animation:`${yI} 2000ms infinite linear`,children:e(Pe,{boxSize:t,__css:{path:{fill:o}}})})})},gI=r=>{const{label:n,rightIcon:o,leftIcon:i,onClose:a,...c}=r,[u,l]=gt(!0);return u?t(J,{className:"cf-tag",...c,children:[i&&e(Q,{as:i}),e(tt,{children:n}),o&&e(et,{as:o}),a&&e(rt,{onClick:()=>{a(),l(!1)}})]}):null},mI=({description:r,title:n,onClose:o,isClosable:i,status:a})=>{let c,u;switch(a){case"error":u=kt;break;case"success":u=Ht;break;case"warning":u=ae,c="yellow";break;case"loading":c="brand",u=ut;break;default:c="brand",u=ae}return t(nt,{as:v,colorScheme:c,justifyContent:"space-between",status:a,children:[t(v,{alignItems:"center",mr:"4",children:[e(ot,{children:e(u,{size:"sm"})}),t(D,{children:[e(it,{children:n}),e(at,{children:r})]})]}),i&&e(ct,{onClick:o})]})},bI=({children:t,label:r})=>{const n=r?e(v,{padding:"1",flexDir:"column",gap:"2",lineHeight:"normal",fontSize:"sm",children:r}):null;return e(f,{label:n,hasArrow:!0,children:t})},wI=()=>{const t=l({ssr:!1}),e="base"===t||"sm"===t,r="md"===t,n="lg"===t||"xl"===t||"2xl"===t;return{breakpoint:t,isSmallBreakpoint:e,isMediumBreakpoint:r,isLargeBreakpoint:n,isAboveSmallBreakpoint:r||n,isBelowLargeBreakpoint:r||e}};var xI,OI={exports:{}},SI=OI.exports;
35
35
  /**
36
36
  * @license
37
37
  * Lodash <https://lodash.com/>
@@ -39,5 +39,5 @@ object-assign
39
39
  * Released under MIT license <https://lodash.com/license>
40
40
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
41
41
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
42
- */var OI=(bI||(bI=1,function(t,e){(function(){var r,n="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=32,c=128,u=256,l=1/0,s=9007199254740991,f=NaN,p=4294967295,d=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",u]],h="[object Arguments]",y="[object Array]",v="[object Boolean]",g="[object Date]",m="[object Error]",b="[object Function]",w="[object GeneratorFunction]",x="[object Map]",O="[object Number]",S="[object Object]",_="[object Promise]",j="[object RegExp]",P="[object Set]",A="[object String]",M="[object Symbol]",k="[object WeakMap]",E="[object ArrayBuffer]",C="[object DataView]",T="[object Float32Array]",D="[object Float64Array]",I="[object Int8Array]",N="[object Int16Array]",R="[object Int32Array]",L="[object Uint8Array]",B="[object Uint8ClampedArray]",z="[object Uint16Array]",$="[object Uint32Array]",H=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,Z=RegExp(V.source),q=RegExp(W.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tt=/[\\^$.*+?()[\]{}|]/g,et=RegExp(tt.source),rt=/^\s+/,nt=/\s/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,it=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ct=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ut=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,st=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,ht=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,vt=/^(?:0|[1-9]\d*)$/,gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",xt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ot="\\u2700-\\u27bf",St="a-z\\xdf-\\xf6\\xf8-\\xff",_t="A-Z\\xc0-\\xd6\\xd8-\\xde",jt="\\ufe0e\\ufe0f",Pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",At="['’]",Mt="["+wt+"]",kt="["+Pt+"]",Et="["+xt+"]",Ct="\\d+",Tt="["+Ot+"]",Dt="["+St+"]",It="[^"+wt+Pt+Ct+Ot+St+_t+"]",Nt="\\ud83c[\\udffb-\\udfff]",Rt="[^"+wt+"]",Lt="(?:\\ud83c[\\udde6-\\uddff]){2}",Bt="[\\ud800-\\udbff][\\udc00-\\udfff]",zt="["+_t+"]",$t="\\u200d",Ht="(?:"+Dt+"|"+It+")",Ft="(?:"+zt+"|"+It+")",Ut="(?:['’](?:d|ll|m|re|s|t|ve))?",Vt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Wt="(?:"+Et+"|"+Nt+")?",Zt="["+jt+"]?",qt=Zt+Wt+"(?:"+$t+"(?:"+[Rt,Lt,Bt].join("|")+")"+Zt+Wt+")*",Yt="(?:"+[Tt,Lt,Bt].join("|")+")"+qt,Xt="(?:"+[Rt+Et+"?",Et,Lt,Bt,Mt].join("|")+")",Kt=RegExp(At,"g"),Gt=RegExp(Et,"g"),Jt=RegExp(Nt+"(?="+Nt+")|"+Xt+qt,"g"),Qt=RegExp([zt+"?"+Dt+"+"+Ut+"(?="+[kt,zt,"$"].join("|")+")",Ft+"+"+Vt+"(?="+[kt,zt+Ht,"$"].join("|")+")",zt+"?"+Ht+"+"+Ut,zt+"+"+Vt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ct,Yt].join("|"),"g"),te=RegExp("["+$t+wt+xt+jt+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ne=-1,oe={};oe[T]=oe[D]=oe[I]=oe[N]=oe[R]=oe[L]=oe[B]=oe[z]=oe[$]=!0,oe[h]=oe[y]=oe[E]=oe[v]=oe[C]=oe[g]=oe[m]=oe[b]=oe[x]=oe[O]=oe[S]=oe[j]=oe[P]=oe[A]=oe[k]=!1;var ie={};ie[h]=ie[y]=ie[E]=ie[C]=ie[v]=ie[g]=ie[T]=ie[D]=ie[I]=ie[N]=ie[R]=ie[x]=ie[O]=ie[S]=ie[j]=ie[P]=ie[A]=ie[M]=ie[L]=ie[B]=ie[z]=ie[$]=!0,ie[m]=ie[b]=ie[k]=!1;var ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ce=parseFloat,ue=parseInt,le="object"==typeof pr&&pr&&pr.Object===Object&&pr,se="object"==typeof self&&self&&self.Object===Object&&self,fe=le||se||Function("return this")(),pe=e&&!e.nodeType&&e,de=pe&&t&&!t.nodeType&&t,he=de&&de.exports===pe,ye=he&&le.process,ve=function(){try{var t=de&&de.require&&de.require("util").types;return t||ye&&ye.binding&&ye.binding("util")}catch(t){}}(),ge=ve&&ve.isArrayBuffer,me=ve&&ve.isDate,be=ve&&ve.isMap,we=ve&&ve.isRegExp,xe=ve&&ve.isSet,Oe=ve&&ve.isTypedArray;function Se(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)}function _e(t,e,r,n){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];e(n,a,r(a),t)}return n}function je(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}function Pe(t,e){for(var r=null==t?0:t.length;r--&&!1!==e(t[r],r,t););return t}function Ae(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}function Me(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}function ke(t,e){return!(null==t||!t.length)&&ze(t,e,0)>-1}function Ee(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}function Ce(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}function Te(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function De(t,e,r,n){var o=-1,i=null==t?0:t.length;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function Ie(t,e,r,n){var o=null==t?0:t.length;for(n&&o&&(r=t[--o]);o--;)r=e(r,t[o],o,t);return r}function Ne(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var Re=Ue("length");function Le(t,e,r){var n;return r(t,(function(t,r,o){if(e(t,r,o))return n=r,!1})),n}function Be(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}function ze(t,e,r){return e==e?function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}(t,e,r):Be(t,He,r)}function $e(t,e,r,n){for(var o=r-1,i=t.length;++o<i;)if(n(t[o],e))return o;return-1}function He(t){return t!=t}function Fe(t,e){var r=null==t?0:t.length;return r?Ze(t,e)/r:f}function Ue(t){return function(e){return null==e?r:e[t]}}function Ve(t){return function(e){return null==t?r:t[e]}}function We(t,e,r,n,o){return o(t,(function(t,o,i){r=n?(n=!1,t):e(r,t,o,i)})),r}function Ze(t,e){for(var n,o=-1,i=t.length;++o<i;){var a=e(t[o]);a!==r&&(n=n===r?a:n+a)}return n}function qe(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function Ye(t){return t?t.slice(0,fr(t)+1).replace(rt,""):t}function Xe(t){return function(e){return t(e)}}function Ke(t,e){return Ce(e,(function(e){return t[e]}))}function Ge(t,e){return t.has(e)}function Je(t,e){for(var r=-1,n=t.length;++r<n&&ze(e,t[r],0)>-1;);return r}function Qe(t,e){for(var r=t.length;r--&&ze(e,t[r],0)>-1;);return r}var tr=Ve({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),er=Ve({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rr(t){return"\\"+ae[t]}function nr(t){return te.test(t)}function or(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function ir(t,e){return function(r){return t(e(r))}}function ar(t,e){for(var r=-1,n=t.length,o=0,a=[];++r<n;){var c=t[r];c!==e&&c!==i||(t[r]=i,a[o++]=r)}return a}function cr(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}function ur(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=[t,t]})),r}function lr(t){return nr(t)?function(t){for(var e=Jt.lastIndex=0;Jt.test(t);)++e;return e}(t):Re(t)}function sr(t){return nr(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.split("")}(t)}function fr(t){for(var e=t.length;e--&&nt.test(t.charAt(e)););return e}var dr=Ve({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),hr=function t(e){var nt,wt=(e=null==e?fe:hr.defaults(fe.Object(),e,hr.pick(fe,re))).Array,xt=e.Date,Ot=e.Error,St=e.Function,_t=e.Math,jt=e.Object,Pt=e.RegExp,At=e.String,Mt=e.TypeError,kt=wt.prototype,Et=St.prototype,Ct=jt.prototype,Tt=e["__core-js_shared__"],Dt=Et.toString,It=Ct.hasOwnProperty,Nt=0,Rt=(nt=/[^.]+$/.exec(Tt&&Tt.keys&&Tt.keys.IE_PROTO||""))?"Symbol(src)_1."+nt:"",Lt=Ct.toString,Bt=Dt.call(jt),zt=fe._,$t=Pt("^"+Dt.call(It).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=he?e.Buffer:r,Ft=e.Symbol,Ut=e.Uint8Array,Vt=Ht?Ht.allocUnsafe:r,Wt=ir(jt.getPrototypeOf,jt),Zt=jt.create,qt=Ct.propertyIsEnumerable,Yt=kt.splice,Xt=Ft?Ft.isConcatSpreadable:r,Jt=Ft?Ft.iterator:r,te=Ft?Ft.toStringTag:r,ae=function(){try{var t=fi(jt,"defineProperty");return t({},"",{}),t}catch(t){}}(),le=e.clearTimeout!==fe.clearTimeout&&e.clearTimeout,se=xt&&xt.now!==fe.Date.now&&xt.now,pe=e.setTimeout!==fe.setTimeout&&e.setTimeout,de=_t.ceil,ye=_t.floor,ve=jt.getOwnPropertySymbols,Re=Ht?Ht.isBuffer:r,Ve=e.isFinite,pr=kt.join,yr=ir(jt.keys,jt),vr=_t.max,gr=_t.min,mr=xt.now,br=e.parseInt,wr=_t.random,xr=kt.reverse,Or=fi(e,"DataView"),Sr=fi(e,"Map"),_r=fi(e,"Promise"),jr=fi(e,"Set"),Pr=fi(e,"WeakMap"),Ar=fi(jt,"create"),Mr=Pr&&new Pr,kr={},Er=Li(Or),Cr=Li(Sr),Tr=Li(_r),Dr=Li(jr),Ir=Li(Pr),Nr=Ft?Ft.prototype:r,Rr=Nr?Nr.valueOf:r,Lr=Nr?Nr.toString:r;function Br(t){if(tc(t)&&!Ua(t)&&!(t instanceof Fr)){if(t instanceof Hr)return t;if(It.call(t,"__wrapped__"))return Bi(t)}return new Hr(t)}var zr=function(){function t(){}return function(e){if(!Qa(e))return{};if(Zt)return Zt(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function $r(){}function Hr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function Fr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Ur(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])}}function Vr(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])}}function Wr(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])}}function Zr(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Wr;++e<r;)this.add(t[e])}function qr(t){var e=this.__data__=new Vr(t);this.size=e.size}function Yr(t,e){var r=Ua(t),n=!r&&Fa(t),o=!r&&!n&&qa(t),i=!r&&!n&&!o&&uc(t),a=r||n||o||i,c=a?qe(t.length,At):[],u=c.length;for(var l in t)!e&&!It.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||mi(l,u))||c.push(l);return c}function Xr(t){var e=t.length;return e?t[qn(0,e-1)]:r}function Kr(t,e){return Ii(ko(t),an(e,0,t.length))}function Gr(t){return Ii(ko(t))}function Jr(t,e,n){(n!==r&&!za(t[e],n)||n===r&&!(e in t))&&nn(t,e,n)}function Qr(t,e,n){var o=t[e];It.call(t,e)&&za(o,n)&&(n!==r||e in t)||nn(t,e,n)}function tn(t,e){for(var r=t.length;r--;)if(za(t[r][0],e))return r;return-1}function en(t,e,r,n){return fn(t,(function(t,o,i){e(n,t,r(t),i)})),n}function rn(t,e){return t&&Eo(e,Ec(e),t)}function nn(t,e,r){"__proto__"==e&&ae?ae(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function on(t,e){for(var n=-1,o=e.length,i=wt(o),a=null==t;++n<o;)i[n]=a?r:jc(t,e[n]);return i}function an(t,e,n){return t==t&&(n!==r&&(t=t<=n?t:n),e!==r&&(t=t>=e?t:e)),t}function cn(t,e,n,o,i,a){var c,u=1&e,l=2&e,s=4&e;if(n&&(c=i?n(t,o,i,a):n(t)),c!==r)return c;if(!Qa(t))return t;var f=Ua(t);if(f){if(c=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&It.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!u)return ko(t,c)}else{var p=hi(t),d=p==b||p==w;if(qa(t))return So(t,u);if(p==S||p==h||d&&!i){if(c=l||d?{}:vi(t),!u)return l?function(t,e){return Eo(t,di(t),e)}(t,function(t,e){return t&&Eo(e,Cc(e),t)}(c,t)):function(t,e){return Eo(t,pi(t),e)}(t,rn(c,t))}else{if(!ie[p])return i?t:{};c=function(t,e,r){var n,o=t.constructor;switch(e){case E:return _o(t);case v:case g:return new o(+t);case C:return function(t,e){var r=e?_o(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case T:case D:case I:case N:case R:case L:case B:case z:case $:return jo(t,r);case x:return new o;case O:case A:return new o(t);case j:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case P:return new o;case M:return n=t,Rr?jt(Rr.call(n)):{}}}(t,p,u)}}a||(a=new qr);var y=a.get(t);if(y)return y;a.set(t,c),ic(t)?t.forEach((function(r){c.add(cn(r,e,n,r,t,a))})):ec(t)&&t.forEach((function(r,o){c.set(o,cn(r,e,n,o,t,a))}));var m=f?r:(s?l?oi:ni:l?Cc:Ec)(t);return je(m||t,(function(r,o){m&&(r=t[o=r]),Qr(c,o,cn(r,e,n,o,t,a))})),c}function un(t,e,n){var o=n.length;if(null==t)return!o;for(t=jt(t);o--;){var i=n[o],a=e[i],c=t[i];if(c===r&&!(i in t)||!a(c))return!1}return!0}function ln(t,e,o){if("function"!=typeof t)throw new Mt(n);return Ei((function(){t.apply(r,o)}),e)}function sn(t,e,r,n){var o=-1,i=ke,a=!0,c=t.length,u=[],l=e.length;if(!c)return u;r&&(e=Ce(e,Xe(r))),n?(i=Ee,a=!1):e.length>=200&&(i=Ge,a=!1,e=new Zr(e));t:for(;++o<c;){var s=t[o],f=null==r?s:r(s);if(s=n||0!==s?s:0,a&&f==f){for(var p=l;p--;)if(e[p]===f)continue t;u.push(s)}else i(e,f,n)||u.push(s)}return u}Br.templateSettings={escape:Y,evaluate:X,interpolate:K,variable:"",imports:{_:Br}},Br.prototype=$r.prototype,Br.prototype.constructor=Br,Hr.prototype=zr($r.prototype),Hr.prototype.constructor=Hr,Fr.prototype=zr($r.prototype),Fr.prototype.constructor=Fr,Ur.prototype.clear=function(){this.__data__=Ar?Ar(null):{},this.size=0},Ur.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ur.prototype.get=function(t){var e=this.__data__;if(Ar){var n=e[t];return n===o?r:n}return It.call(e,t)?e[t]:r},Ur.prototype.has=function(t){var e=this.__data__;return Ar?e[t]!==r:It.call(e,t)},Ur.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ar&&e===r?o:e,this},Vr.prototype.clear=function(){this.__data__=[],this.size=0},Vr.prototype.delete=function(t){var e=this.__data__,r=tn(e,t);return!(r<0||(r==e.length-1?e.pop():Yt.call(e,r,1),--this.size,0))},Vr.prototype.get=function(t){var e=this.__data__,n=tn(e,t);return n<0?r:e[n][1]},Vr.prototype.has=function(t){return tn(this.__data__,t)>-1},Vr.prototype.set=function(t,e){var r=this.__data__,n=tn(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},Wr.prototype.clear=function(){this.size=0,this.__data__={hash:new Ur,map:new(Sr||Vr),string:new Ur}},Wr.prototype.delete=function(t){var e=li(this,t).delete(t);return this.size-=e?1:0,e},Wr.prototype.get=function(t){return li(this,t).get(t)},Wr.prototype.has=function(t){return li(this,t).has(t)},Wr.prototype.set=function(t,e){var r=li(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Zr.prototype.add=Zr.prototype.push=function(t){return this.__data__.set(t,o),this},Zr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.clear=function(){this.__data__=new Vr,this.size=0},qr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},qr.prototype.get=function(t){return this.__data__.get(t)},qr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Vr){var n=r.__data__;if(!Sr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Wr(n)}return r.set(t,e),this.size=r.size,this};var fn=Do(bn),pn=Do(wn,!0);function dn(t,e){var r=!0;return fn(t,(function(t,n,o){return r=!!e(t,n,o)})),r}function hn(t,e,n){for(var o=-1,i=t.length;++o<i;){var a=t[o],c=e(a);if(null!=c&&(u===r?c==c&&!cc(c):n(c,u)))var u=c,l=a}return l}function yn(t,e){var r=[];return fn(t,(function(t,n,o){e(t,n,o)&&r.push(t)})),r}function vn(t,e,r,n,o){var i=-1,a=t.length;for(r||(r=gi),o||(o=[]);++i<a;){var c=t[i];e>0&&r(c)?e>1?vn(c,e-1,r,n,o):Te(o,c):n||(o[o.length]=c)}return o}var gn=Io(),mn=Io(!0);function bn(t,e){return t&&gn(t,e,Ec)}function wn(t,e){return t&&mn(t,e,Ec)}function xn(t,e){return Me(e,(function(e){return Ka(t[e])}))}function On(t,e){for(var n=0,o=(e=bo(e,t)).length;null!=t&&n<o;)t=t[Ri(e[n++])];return n&&n==o?t:r}function Sn(t,e,r){var n=e(t);return Ua(t)?n:Te(n,r(t))}function _n(t){return null==t?t===r?"[object Undefined]":"[object Null]":te&&te in jt(t)?function(t){var e=It.call(t,te),n=t[te];try{t[te]=r;var o=!0}catch(t){}var i=Lt.call(t);return o&&(e?t[te]=n:delete t[te]),i}(t):function(t){return Lt.call(t)}(t)}function jn(t,e){return t>e}function Pn(t,e){return null!=t&&It.call(t,e)}function An(t,e){return null!=t&&e in jt(t)}function Mn(t,e,n){for(var o=n?Ee:ke,i=t[0].length,a=t.length,c=a,u=wt(a),l=1/0,s=[];c--;){var f=t[c];c&&e&&(f=Ce(f,Xe(e))),l=gr(f.length,l),u[c]=!n&&(e||i>=120&&f.length>=120)?new Zr(c&&f):r}f=t[0];var p=-1,d=u[0];t:for(;++p<i&&s.length<l;){var h=f[p],y=e?e(h):h;if(h=n||0!==h?h:0,!(d?Ge(d,y):o(s,y,n))){for(c=a;--c;){var v=u[c];if(!(v?Ge(v,y):o(t[c],y,n)))continue t}d&&d.push(y),s.push(h)}}return s}function kn(t,e,n){var o=null==(t=Ai(t,e=bo(e,t)))?t:t[Ri(Xi(e))];return null==o?r:Se(o,t,n)}function En(t){return tc(t)&&_n(t)==h}function Cn(t,e,n,o,i){return t===e||(null==t||null==e||!tc(t)&&!tc(e)?t!=t&&e!=e:function(t,e,n,o,i,a){var c=Ua(t),u=Ua(e),l=c?y:hi(t),s=u?y:hi(e),f=(l=l==h?S:l)==S,p=(s=s==h?S:s)==S,d=l==s;if(d&&qa(t)){if(!qa(e))return!1;c=!0,f=!1}if(d&&!f)return a||(a=new qr),c||uc(t)?ei(t,e,n,o,i,a):function(t,e,r,n,o,i,a){switch(r){case C:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case E:return!(t.byteLength!=e.byteLength||!i(new Ut(t),new Ut(e)));case v:case g:case O:return za(+t,+e);case m:return t.name==e.name&&t.message==e.message;case j:case A:return t==e+"";case x:var c=or;case P:var u=1&n;if(c||(c=cr),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;n|=2,a.set(t,e);var s=ei(c(t),c(e),n,o,i,a);return a.delete(t),s;case M:if(Rr)return Rr.call(t)==Rr.call(e)}return!1}(t,e,l,n,o,i,a);if(!(1&n)){var b=f&&It.call(t,"__wrapped__"),w=p&&It.call(e,"__wrapped__");if(b||w){var _=b?t.value():t,k=w?e.value():e;return a||(a=new qr),i(_,k,n,o,a)}}return!!d&&(a||(a=new qr),function(t,e,n,o,i,a){var c=1&n,u=ni(t),l=u.length,s=ni(e),f=s.length;if(l!=f&&!c)return!1;for(var p=l;p--;){var d=u[p];if(!(c?d in e:It.call(e,d)))return!1}var h=a.get(t),y=a.get(e);if(h&&y)return h==e&&y==t;var v=!0;a.set(t,e),a.set(e,t);for(var g=c;++p<l;){var m=t[d=u[p]],b=e[d];if(o)var w=c?o(b,m,d,e,t,a):o(m,b,d,t,e,a);if(!(w===r?m===b||i(m,b,n,o,a):w)){v=!1;break}g||(g="constructor"==d)}if(v&&!g){var x=t.constructor,O=e.constructor;x==O||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof O&&O instanceof O||(v=!1)}return a.delete(t),a.delete(e),v}(t,e,n,o,i,a))}(t,e,n,o,Cn,i))}function Tn(t,e,n,o){var i=n.length,a=i,c=!o;if(null==t)return!a;for(t=jt(t);i--;){var u=n[i];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<a;){var l=(u=n[i])[0],s=t[l],f=u[1];if(c&&u[2]){if(s===r&&!(l in t))return!1}else{var p=new qr;if(o)var d=o(s,f,l,t,e,p);if(!(d===r?Cn(f,s,3,o,p):d))return!1}}return!0}function Dn(t){return!(!Qa(t)||(e=t,Rt&&Rt in e))&&(Ka(t)?$t:ht).test(Li(t));var e}function In(t){return"function"==typeof t?t:null==t?ru:"object"==typeof t?Ua(t)?$n(t[0],t[1]):zn(t):fu(t)}function Nn(t){if(!Si(t))return yr(t);var e=[];for(var r in jt(t))It.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Rn(t){if(!Qa(t))return function(t){var e=[];if(null!=t)for(var r in jt(t))e.push(r);return e}(t);var e=Si(t),r=[];for(var n in t)("constructor"!=n||!e&&It.call(t,n))&&r.push(n);return r}function Ln(t,e){return t<e}function Bn(t,e){var r=-1,n=Wa(t)?wt(t.length):[];return fn(t,(function(t,o,i){n[++r]=e(t,o,i)})),n}function zn(t){var e=si(t);return 1==e.length&&e[0][2]?ji(e[0][0],e[0][1]):function(r){return r===t||Tn(r,t,e)}}function $n(t,e){return wi(t)&&_i(e)?ji(Ri(t),e):function(n){var o=jc(n,t);return o===r&&o===e?Pc(n,t):Cn(e,o,3)}}function Hn(t,e,n,o,i){t!==e&&gn(e,(function(a,c){if(i||(i=new qr),Qa(a))!function(t,e,n,o,i,a,c){var u=Mi(t,n),l=Mi(e,n),s=c.get(l);if(s)Jr(t,n,s);else{var f=a?a(u,l,n+"",t,e,c):r,p=f===r;if(p){var d=Ua(l),h=!d&&qa(l),y=!d&&!h&&uc(l);f=l,d||h||y?Ua(u)?f=u:Za(u)?f=ko(u):h?(p=!1,f=So(l,!0)):y?(p=!1,f=jo(l,!0)):f=[]:nc(l)||Fa(l)?(f=u,Fa(u)?f=vc(u):Qa(u)&&!Ka(u)||(f=vi(l))):p=!1}p&&(c.set(l,f),i(f,l,o,a,c),c.delete(l)),Jr(t,n,f)}}(t,e,c,n,Hn,o,i);else{var u=o?o(Mi(t,c),a,c+"",t,e,i):r;u===r&&(u=a),Jr(t,c,u)}}),Cc)}function Fn(t,e){var n=t.length;if(n)return mi(e+=e<0?n:0,n)?t[e]:r}function Un(t,e,r){e=e.length?Ce(e,(function(t){return Ua(t)?function(e){return On(e,1===t.length?t[0]:t)}:t})):[ru];var n=-1;e=Ce(e,Xe(ui()));var o=Bn(t,(function(t,r,o){var i=Ce(e,(function(e){return e(t)}));return{criteria:i,index:++n,value:t}}));return function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}(o,(function(t,e){return function(t,e,r){for(var n=-1,o=t.criteria,i=e.criteria,a=o.length,c=r.length;++n<a;){var u=Po(o[n],i[n]);if(u)return n>=c?u:u*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}))}function Vn(t,e,r){for(var n=-1,o=e.length,i={};++n<o;){var a=e[n],c=On(t,a);r(c,a)&&Jn(i,bo(a,t),c)}return i}function Wn(t,e,r,n){var o=n?$e:ze,i=-1,a=e.length,c=t;for(t===e&&(e=ko(e)),r&&(c=Ce(t,Xe(r)));++i<a;)for(var u=0,l=e[i],s=r?r(l):l;(u=o(c,s,u,n))>-1;)c!==t&&Yt.call(c,u,1),Yt.call(t,u,1);return t}function Zn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var o=e[r];if(r==n||o!==i){var i=o;mi(o)?Yt.call(t,o,1):so(t,o)}}return t}function qn(t,e){return t+ye(wr()*(e-t+1))}function Yn(t,e){var r="";if(!t||e<1||e>s)return r;do{e%2&&(r+=t),(e=ye(e/2))&&(t+=t)}while(e);return r}function Xn(t,e){return Ci(Pi(t,e,ru),t+"")}function Kn(t){return Xr(zc(t))}function Gn(t,e){var r=zc(t);return Ii(r,an(e,0,r.length))}function Jn(t,e,n,o){if(!Qa(t))return t;for(var i=-1,a=(e=bo(e,t)).length,c=a-1,u=t;null!=u&&++i<a;){var l=Ri(e[i]),s=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(i!=c){var f=u[l];(s=o?o(f,l,u):r)===r&&(s=Qa(f)?f:mi(e[i+1])?[]:{})}Qr(u,l,s),u=u[l]}return t}var Qn=Mr?function(t,e){return Mr.set(t,e),t}:ru,to=ae?function(t,e){return ae(t,"toString",{configurable:!0,enumerable:!1,value:Qc(e),writable:!0})}:ru;function eo(t){return Ii(zc(t))}function ro(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=wt(o);++n<o;)i[n]=t[n+e];return i}function no(t,e){var r;return fn(t,(function(t,n,o){return!(r=e(t,n,o))})),!!r}function oo(t,e,r){var n=0,o=null==t?n:t.length;if("number"==typeof e&&e==e&&o<=2147483647){for(;n<o;){var i=n+o>>>1,a=t[i];null!==a&&!cc(a)&&(r?a<=e:a<e)?n=i+1:o=i}return o}return io(t,e,ru,r)}function io(t,e,n,o){var i=0,a=null==t?0:t.length;if(0===a)return 0;for(var c=(e=n(e))!=e,u=null===e,l=cc(e),s=e===r;i<a;){var f=ye((i+a)/2),p=n(t[f]),d=p!==r,h=null===p,y=p==p,v=cc(p);if(c)var g=o||y;else g=s?y&&(o||d):u?y&&d&&(o||!h):l?y&&d&&!h&&(o||!v):!h&&!v&&(o?p<=e:p<e);g?i=f+1:a=f}return gr(a,4294967294)}function ao(t,e){for(var r=-1,n=t.length,o=0,i=[];++r<n;){var a=t[r],c=e?e(a):a;if(!r||!za(c,u)){var u=c;i[o++]=0===a?0:a}}return i}function co(t){return"number"==typeof t?t:cc(t)?f:+t}function uo(t){if("string"==typeof t)return t;if(Ua(t))return Ce(t,uo)+"";if(cc(t))return Lr?Lr.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function lo(t,e,r){var n=-1,o=ke,i=t.length,a=!0,c=[],u=c;if(r)a=!1,o=Ee;else if(i>=200){var l=e?null:Xo(t);if(l)return cr(l);a=!1,o=Ge,u=new Zr}else u=e?[]:c;t:for(;++n<i;){var s=t[n],f=e?e(s):s;if(s=r||0!==s?s:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue t;e&&u.push(f),c.push(s)}else o(u,f,r)||(u!==c&&u.push(f),c.push(s))}return c}function so(t,e){return null==(t=Ai(t,e=bo(e,t)))||delete t[Ri(Xi(e))]}function fo(t,e,r,n){return Jn(t,e,r(On(t,e)),n)}function po(t,e,r,n){for(var o=t.length,i=n?o:-1;(n?i--:++i<o)&&e(t[i],i,t););return r?ro(t,n?0:i,n?i+1:o):ro(t,n?i+1:0,n?o:i)}function ho(t,e){var r=t;return r instanceof Fr&&(r=r.value()),De(e,(function(t,e){return e.func.apply(e.thisArg,Te([t],e.args))}),r)}function yo(t,e,r){var n=t.length;if(n<2)return n?lo(t[0]):[];for(var o=-1,i=wt(n);++o<n;)for(var a=t[o],c=-1;++c<n;)c!=o&&(i[o]=sn(i[o]||a,t[c],e,r));return lo(vn(i,1),e,r)}function vo(t,e,n){for(var o=-1,i=t.length,a=e.length,c={};++o<i;){var u=o<a?e[o]:r;n(c,t[o],u)}return c}function go(t){return Za(t)?t:[]}function mo(t){return"function"==typeof t?t:ru}function bo(t,e){return Ua(t)?t:wi(t,e)?[t]:Ni(gc(t))}var wo=Xn;function xo(t,e,n){var o=t.length;return n=n===r?o:n,!e&&n>=o?t:ro(t,e,n)}var Oo=le||function(t){return fe.clearTimeout(t)};function So(t,e){if(e)return t.slice();var r=t.length,n=Vt?Vt(r):new t.constructor(r);return t.copy(n),n}function _o(t){var e=new t.constructor(t.byteLength);return new Ut(e).set(new Ut(t)),e}function jo(t,e){var r=e?_o(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Po(t,e){if(t!==e){var n=t!==r,o=null===t,i=t==t,a=cc(t),c=e!==r,u=null===e,l=e==e,s=cc(e);if(!u&&!s&&!a&&t>e||a&&c&&l&&!u&&!s||o&&c&&l||!n&&l||!i)return 1;if(!o&&!a&&!s&&t<e||s&&n&&i&&!o&&!a||u&&n&&i||!c&&i||!l)return-1}return 0}function Ao(t,e,r,n){for(var o=-1,i=t.length,a=r.length,c=-1,u=e.length,l=vr(i-a,0),s=wt(u+l),f=!n;++c<u;)s[c]=e[c];for(;++o<a;)(f||o<i)&&(s[r[o]]=t[o]);for(;l--;)s[c++]=t[o++];return s}function Mo(t,e,r,n){for(var o=-1,i=t.length,a=-1,c=r.length,u=-1,l=e.length,s=vr(i-c,0),f=wt(s+l),p=!n;++o<s;)f[o]=t[o];for(var d=o;++u<l;)f[d+u]=e[u];for(;++a<c;)(p||o<i)&&(f[d+r[a]]=t[o++]);return f}function ko(t,e){var r=-1,n=t.length;for(e||(e=wt(n));++r<n;)e[r]=t[r];return e}function Eo(t,e,n,o){var i=!n;n||(n={});for(var a=-1,c=e.length;++a<c;){var u=e[a],l=o?o(n[u],t[u],u,n,t):r;l===r&&(l=t[u]),i?nn(n,u,l):Qr(n,u,l)}return n}function Co(t,e){return function(r,n){var o=Ua(r)?_e:en,i=e?e():{};return o(r,t,ui(n,2),i)}}function To(t){return Xn((function(e,n){var o=-1,i=n.length,a=i>1?n[i-1]:r,c=i>2?n[2]:r;for(a=t.length>3&&"function"==typeof a?(i--,a):r,c&&bi(n[0],n[1],c)&&(a=i<3?r:a,i=1),e=jt(e);++o<i;){var u=n[o];u&&t(e,u,o,a)}return e}))}function Do(t,e){return function(r,n){if(null==r)return r;if(!Wa(r))return t(r,n);for(var o=r.length,i=e?o:-1,a=jt(r);(e?i--:++i<o)&&!1!==n(a[i],i,a););return r}}function Io(t){return function(e,r,n){for(var o=-1,i=jt(e),a=n(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===r(i[u],u,i))break}return e}}function No(t){return function(e){var n=nr(e=gc(e))?sr(e):r,o=n?n[0]:e.charAt(0),i=n?xo(n,1).join(""):e.slice(1);return o[t]()+i}}function Ro(t){return function(e){return De(Kc(Fc(e).replace(Kt,"")),t,"")}}function Lo(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=zr(t.prototype),n=t.apply(r,e);return Qa(n)?n:r}}function Bo(t){return function(e,n,o){var i=jt(e);if(!Wa(e)){var a=ui(n,3);e=Ec(e),n=function(t){return a(i[t],t,i)}}var c=t(e,n,o);return c>-1?i[a?e[c]:c]:r}}function zo(t){return ri((function(e){var o=e.length,i=o,a=Hr.prototype.thru;for(t&&e.reverse();i--;){var c=e[i];if("function"!=typeof c)throw new Mt(n);if(a&&!u&&"wrapper"==ai(c))var u=new Hr([],!0)}for(i=u?i:o;++i<o;){var l=ai(c=e[i]),s="wrapper"==l?ii(c):r;u=s&&xi(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?u[ai(s[0])].apply(u,s[3]):1==c.length&&xi(c)?u[l]():u.thru(c)}return function(){var t=arguments,r=t[0];if(u&&1==t.length&&Ua(r))return u.plant(r).value();for(var n=0,i=o?e[n].apply(this,t):r;++n<o;)i=e[n].call(this,i);return i}}))}function $o(t,e,n,o,i,a,u,l,s,f){var p=e&c,d=1&e,h=2&e,y=24&e,v=512&e,g=h?r:Lo(t);return function c(){for(var m=arguments.length,b=wt(m),w=m;w--;)b[w]=arguments[w];if(y)var x=ci(c),O=function(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}(b,x);if(o&&(b=Ao(b,o,i,y)),a&&(b=Mo(b,a,u,y)),m-=O,y&&m<f){var S=ar(b,x);return qo(t,e,$o,c.placeholder,n,b,S,l,s,f-m)}var _=d?n:this,j=h?_[t]:t;return m=b.length,l?b=function(t,e){for(var n=t.length,o=gr(e.length,n),i=ko(t);o--;){var a=e[o];t[o]=mi(a,n)?i[a]:r}return t}(b,l):v&&m>1&&b.reverse(),p&&s<m&&(b.length=s),this&&this!==fe&&this instanceof c&&(j=g||Lo(j)),j.apply(_,b)}}function Ho(t,e){return function(r,n){return function(t,e,r,n){return bn(t,(function(t,o,i){e(n,r(t),o,i)})),n}(r,t,e(n),{})}}function Fo(t,e){return function(n,o){var i;if(n===r&&o===r)return e;if(n!==r&&(i=n),o!==r){if(i===r)return o;"string"==typeof n||"string"==typeof o?(n=uo(n),o=uo(o)):(n=co(n),o=co(o)),i=t(n,o)}return i}}function Uo(t){return ri((function(e){return e=Ce(e,Xe(ui())),Xn((function(r){var n=this;return t(e,(function(t){return Se(t,n,r)}))}))}))}function Vo(t,e){var n=(e=e===r?" ":uo(e)).length;if(n<2)return n?Yn(e,t):e;var o=Yn(e,de(t/lr(e)));return nr(e)?xo(sr(o),0,t).join(""):o.slice(0,t)}function Wo(t){return function(e,n,o){return o&&"number"!=typeof o&&bi(e,n,o)&&(n=o=r),e=pc(e),n===r?(n=e,e=0):n=pc(n),function(t,e,r,n){for(var o=-1,i=vr(de((e-t)/(r||1)),0),a=wt(i);i--;)a[n?i:++o]=t,t+=r;return a}(e,n,o=o===r?e<n?1:-1:pc(o),t)}}function Zo(t){return function(e,r){return"string"==typeof e&&"string"==typeof r||(e=yc(e),r=yc(r)),t(e,r)}}function qo(t,e,n,o,i,c,u,l,s,f){var p=8&e;e|=p?a:64,4&(e&=~(p?64:a))||(e&=-4);var d=[t,e,i,p?c:r,p?u:r,p?r:c,p?r:u,l,s,f],h=n.apply(r,d);return xi(t)&&ki(h,d),h.placeholder=o,Ti(h,t,e)}function Yo(t){var e=_t[t];return function(t,r){if(t=yc(t),(r=null==r?0:gr(dc(r),292))&&Ve(t)){var n=(gc(t)+"e").split("e");return+((n=(gc(e(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}var Xo=jr&&1/cr(new jr([,-0]))[1]==l?function(t){return new jr(t)}:cu;function Ko(t){return function(e){var r=hi(e);return r==x?or(e):r==P?ur(e):function(t,e){return Ce(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Go(t,e,o,l,s,f,p,d){var h=2&e;if(!h&&"function"!=typeof t)throw new Mt(n);var y=l?l.length:0;if(y||(e&=-97,l=s=r),p=p===r?p:vr(dc(p),0),d=d===r?d:dc(d),y-=s?s.length:0,64&e){var v=l,g=s;l=s=r}var m=h?r:ii(t),b=[t,e,o,l,s,v,g,f,p,d];if(m&&function(t,e){var r=t[1],n=e[1],o=r|n,a=o<131,l=n==c&&8==r||n==c&&r==u&&t[7].length<=e[8]||384==n&&e[7].length<=e[8]&&8==r;if(!a&&!l)return t;1&n&&(t[2]=e[2],o|=1&r?0:4);var s=e[3];if(s){var f=t[3];t[3]=f?Ao(f,s,e[4]):s,t[4]=f?ar(t[3],i):e[4]}(s=e[5])&&(f=t[5],t[5]=f?Mo(f,s,e[6]):s,t[6]=f?ar(t[5],i):e[6]),(s=e[7])&&(t[7]=s),n&c&&(t[8]=null==t[8]?e[8]:gr(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o}(b,m),t=b[0],e=b[1],o=b[2],l=b[3],s=b[4],!(d=b[9]=b[9]===r?h?0:t.length:vr(b[9]-y,0))&&24&e&&(e&=-25),e&&1!=e)w=8==e||16==e?function(t,e,n){var o=Lo(t);return function i(){for(var a=arguments.length,c=wt(a),u=a,l=ci(i);u--;)c[u]=arguments[u];var s=a<3&&c[0]!==l&&c[a-1]!==l?[]:ar(c,l);return(a-=s.length)<n?qo(t,e,$o,i.placeholder,r,c,s,r,r,n-a):Se(this&&this!==fe&&this instanceof i?o:t,this,c)}}(t,e,d):e!=a&&33!=e||s.length?$o.apply(r,b):function(t,e,r,n){var o=1&e,i=Lo(t);return function e(){for(var a=-1,c=arguments.length,u=-1,l=n.length,s=wt(l+c),f=this&&this!==fe&&this instanceof e?i:t;++u<l;)s[u]=n[u];for(;c--;)s[u++]=arguments[++a];return Se(f,o?r:this,s)}}(t,e,o,l);else var w=function(t,e,r){var n=1&e,o=Lo(t);return function e(){return(this&&this!==fe&&this instanceof e?o:t).apply(n?r:this,arguments)}}(t,e,o);return Ti((m?Qn:ki)(w,b),t,e)}function Jo(t,e,n,o){return t===r||za(t,Ct[n])&&!It.call(o,n)?e:t}function Qo(t,e,n,o,i,a){return Qa(t)&&Qa(e)&&(a.set(e,t),Hn(t,e,r,Qo,a),a.delete(e)),t}function ti(t){return nc(t)?r:t}function ei(t,e,n,o,i,a){var c=1&n,u=t.length,l=e.length;if(u!=l&&!(c&&l>u))return!1;var s=a.get(t),f=a.get(e);if(s&&f)return s==e&&f==t;var p=-1,d=!0,h=2&n?new Zr:r;for(a.set(t,e),a.set(e,t);++p<u;){var y=t[p],v=e[p];if(o)var g=c?o(v,y,p,e,t,a):o(y,v,p,t,e,a);if(g!==r){if(g)continue;d=!1;break}if(h){if(!Ne(e,(function(t,e){if(!Ge(h,e)&&(y===t||i(y,t,n,o,a)))return h.push(e)}))){d=!1;break}}else if(y!==v&&!i(y,v,n,o,a)){d=!1;break}}return a.delete(t),a.delete(e),d}function ri(t){return Ci(Pi(t,r,Vi),t+"")}function ni(t){return Sn(t,Ec,pi)}function oi(t){return Sn(t,Cc,di)}var ii=Mr?function(t){return Mr.get(t)}:cu;function ai(t){for(var e=t.name+"",r=kr[e],n=It.call(kr,e)?r.length:0;n--;){var o=r[n],i=o.func;if(null==i||i==t)return o.name}return e}function ci(t){return(It.call(Br,"placeholder")?Br:t).placeholder}function ui(){var t=Br.iteratee||nu;return t=t===nu?In:t,arguments.length?t(arguments[0],arguments[1]):t}function li(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function si(t){for(var e=Ec(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,_i(o)]}return e}function fi(t,e){var n=function(t,e){return null==t?r:t[e]}(t,e);return Dn(n)?n:r}var pi=ve?function(t){return null==t?[]:(t=jt(t),Me(ve(t),(function(e){return qt.call(t,e)})))}:hu,di=ve?function(t){for(var e=[];t;)Te(e,pi(t)),t=Wt(t);return e}:hu,hi=_n;function yi(t,e,r){for(var n=-1,o=(e=bo(e,t)).length,i=!1;++n<o;){var a=Ri(e[n]);if(!(i=null!=t&&r(t,a)))break;t=t[a]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&Ja(o)&&mi(a,o)&&(Ua(t)||Fa(t))}function vi(t){return"function"!=typeof t.constructor||Si(t)?{}:zr(Wt(t))}function gi(t){return Ua(t)||Fa(t)||!!(Xt&&t&&t[Xt])}function mi(t,e){var r=typeof t;return!!(e=null==e?s:e)&&("number"==r||"symbol"!=r&&vt.test(t))&&t>-1&&t%1==0&&t<e}function bi(t,e,r){if(!Qa(r))return!1;var n=typeof e;return!!("number"==n?Wa(r)&&mi(e,r.length):"string"==n&&e in r)&&za(r[e],t)}function wi(t,e){if(Ua(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!cc(t))||J.test(t)||!G.test(t)||null!=e&&t in jt(e)}function xi(t){var e=ai(t),r=Br[e];if("function"!=typeof r||!(e in Fr.prototype))return!1;if(t===r)return!0;var n=ii(r);return!!n&&t===n[0]}(Or&&hi(new Or(new ArrayBuffer(1)))!=C||Sr&&hi(new Sr)!=x||_r&&hi(_r.resolve())!=_||jr&&hi(new jr)!=P||Pr&&hi(new Pr)!=k)&&(hi=function(t){var e=_n(t),n=e==S?t.constructor:r,o=n?Li(n):"";if(o)switch(o){case Er:return C;case Cr:return x;case Tr:return _;case Dr:return P;case Ir:return k}return e});var Oi=Tt?Ka:yu;function Si(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ct)}function _i(t){return t==t&&!Qa(t)}function ji(t,e){return function(n){return null!=n&&n[t]===e&&(e!==r||t in jt(n))}}function Pi(t,e,n){return e=vr(e===r?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=vr(r.length-e,0),a=wt(i);++o<i;)a[o]=r[e+o];o=-1;for(var c=wt(e+1);++o<e;)c[o]=r[o];return c[e]=n(a),Se(t,this,c)}}function Ai(t,e){return e.length<2?t:On(t,ro(e,0,-1))}function Mi(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var ki=Di(Qn),Ei=pe||function(t,e){return fe.setTimeout(t,e)},Ci=Di(to);function Ti(t,e,r){var n=e+"";return Ci(t,function(t,e){var r=e.length;if(!r)return t;var n=r-1;return e[n]=(r>1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(ot,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return je(d,(function(r){var n="_."+r[0];e&r[1]&&!ke(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(it);return e?e[1].split(at):[]}(n),r)))}function Di(t){var e=0,n=0;return function(){var o=mr(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function Ii(t,e){var n=-1,o=t.length,i=o-1;for(e=e===r?o:e;++n<e;){var a=qn(n,i),c=t[a];t[a]=t[n],t[n]=c}return t.length=e,t}var Ni=function(t){var e=Da(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Q,(function(t,r,n,o){e.push(n?o.replace(lt,"$1"):r||t)})),e}));function Ri(t){if("string"==typeof t||cc(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Li(t){if(null!=t){try{return Dt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Bi(t){if(t instanceof Fr)return t.clone();var e=new Hr(t.__wrapped__,t.__chain__);return e.__actions__=ko(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var zi=Xn((function(t,e){return Za(t)?sn(t,vn(e,1,Za,!0)):[]})),$i=Xn((function(t,e){var n=Xi(e);return Za(n)&&(n=r),Za(t)?sn(t,vn(e,1,Za,!0),ui(n,2)):[]})),Hi=Xn((function(t,e){var n=Xi(e);return Za(n)&&(n=r),Za(t)?sn(t,vn(e,1,Za,!0),r,n):[]}));function Fi(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=null==r?0:dc(r);return o<0&&(o=vr(n+o,0)),Be(t,ui(e,3),o)}function Ui(t,e,n){var o=null==t?0:t.length;if(!o)return-1;var i=o-1;return n!==r&&(i=dc(n),i=n<0?vr(o+i,0):gr(i,o-1)),Be(t,ui(e,3),i,!0)}function Vi(t){return null!=t&&t.length?vn(t,1):[]}function Wi(t){return t&&t.length?t[0]:r}var Zi=Xn((function(t){var e=Ce(t,go);return e.length&&e[0]===t[0]?Mn(e):[]})),qi=Xn((function(t){var e=Xi(t),n=Ce(t,go);return e===Xi(n)?e=r:n.pop(),n.length&&n[0]===t[0]?Mn(n,ui(e,2)):[]})),Yi=Xn((function(t){var e=Xi(t),n=Ce(t,go);return(e="function"==typeof e?e:r)&&n.pop(),n.length&&n[0]===t[0]?Mn(n,r,e):[]}));function Xi(t){var e=null==t?0:t.length;return e?t[e-1]:r}var Ki=Xn(Gi);function Gi(t,e){return t&&t.length&&e&&e.length?Wn(t,e):t}var Ji=ri((function(t,e){var r=null==t?0:t.length,n=on(t,e);return Zn(t,Ce(e,(function(t){return mi(t,r)?+t:t})).sort(Po)),n}));function Qi(t){return null==t?t:xr.call(t)}var ta=Xn((function(t){return lo(vn(t,1,Za,!0))})),ea=Xn((function(t){var e=Xi(t);return Za(e)&&(e=r),lo(vn(t,1,Za,!0),ui(e,2))})),ra=Xn((function(t){var e=Xi(t);return e="function"==typeof e?e:r,lo(vn(t,1,Za,!0),r,e)}));function na(t){if(!t||!t.length)return[];var e=0;return t=Me(t,(function(t){if(Za(t))return e=vr(t.length,e),!0})),qe(e,(function(e){return Ce(t,Ue(e))}))}function oa(t,e){if(!t||!t.length)return[];var n=na(t);return null==e?n:Ce(n,(function(t){return Se(e,r,t)}))}var ia=Xn((function(t,e){return Za(t)?sn(t,e):[]})),aa=Xn((function(t){return yo(Me(t,Za))})),ca=Xn((function(t){var e=Xi(t);return Za(e)&&(e=r),yo(Me(t,Za),ui(e,2))})),ua=Xn((function(t){var e=Xi(t);return e="function"==typeof e?e:r,yo(Me(t,Za),r,e)})),la=Xn(na),sa=Xn((function(t){var e=t.length,n=e>1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,oa(t,n)}));function fa(t){var e=Br(t);return e.__chain__=!0,e}function pa(t,e){return e(t)}var da=ri((function(t){var e=t.length,n=e?t[0]:0,o=this.__wrapped__,i=function(e){return on(e,t)};return!(e>1||this.__actions__.length)&&o instanceof Fr&&mi(n)?((o=o.slice(n,+n+(e?1:0))).__actions__.push({func:pa,args:[i],thisArg:r}),new Hr(o,this.__chain__).thru((function(t){return e&&!t.length&&t.push(r),t}))):this.thru(i)})),ha=Co((function(t,e,r){It.call(t,r)?++t[r]:nn(t,r,1)})),ya=Bo(Fi),va=Bo(Ui);function ga(t,e){return(Ua(t)?je:fn)(t,ui(e,3))}function ma(t,e){return(Ua(t)?Pe:pn)(t,ui(e,3))}var ba=Co((function(t,e,r){It.call(t,r)?t[r].push(e):nn(t,r,[e])})),wa=Xn((function(t,e,r){var n=-1,o="function"==typeof e,i=Wa(t)?wt(t.length):[];return fn(t,(function(t){i[++n]=o?Se(e,t,r):kn(t,e,r)})),i})),xa=Co((function(t,e,r){nn(t,r,e)}));function Oa(t,e){return(Ua(t)?Ce:Bn)(t,ui(e,3))}var Sa=Co((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),_a=Xn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&bi(t,e[0],e[1])?e=[]:r>2&&bi(e[0],e[1],e[2])&&(e=[e[0]]),Un(t,vn(e,1),[])})),ja=se||function(){return fe.Date.now()};function Pa(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Go(t,c,r,r,r,r,e)}function Aa(t,e){var o;if("function"!=typeof e)throw new Mt(n);return t=dc(t),function(){return--t>0&&(o=e.apply(this,arguments)),t<=1&&(e=r),o}}var Ma=Xn((function(t,e,r){var n=1;if(r.length){var o=ar(r,ci(Ma));n|=a}return Go(t,n,e,r,o)})),ka=Xn((function(t,e,r){var n=3;if(r.length){var o=ar(r,ci(ka));n|=a}return Go(e,n,t,r,o)}));function Ea(t,e,o){var i,a,c,u,l,s,f=0,p=!1,d=!1,h=!0;if("function"!=typeof t)throw new Mt(n);function y(e){var n=i,o=a;return i=a=r,f=e,u=t.apply(o,n)}function v(t){var n=t-s;return s===r||n>=e||n<0||d&&t-f>=c}function g(){var t=ja();if(v(t))return m(t);l=Ei(g,function(t){var r=e-(t-s);return d?gr(r,c-(t-f)):r}(t))}function m(t){return l=r,h&&i?y(t):(i=a=r,u)}function b(){var t=ja(),n=v(t);if(i=arguments,a=this,s=t,n){if(l===r)return function(t){return f=t,l=Ei(g,e),p?y(t):u}(s);if(d)return Oo(l),l=Ei(g,e),y(s)}return l===r&&(l=Ei(g,e)),u}return e=yc(e)||0,Qa(o)&&(p=!!o.leading,c=(d="maxWait"in o)?vr(yc(o.maxWait)||0,e):c,h="trailing"in o?!!o.trailing:h),b.cancel=function(){l!==r&&Oo(l),f=0,i=s=a=l=r},b.flush=function(){return l===r?u:m(ja())},b}var Ca=Xn((function(t,e){return ln(t,1,e)})),Ta=Xn((function(t,e,r){return ln(t,yc(e)||0,r)}));function Da(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Mt(n);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(Da.Cache||Wr),r}function Ia(t){if("function"!=typeof t)throw new Mt(n);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Da.Cache=Wr;var Na=wo((function(t,e){var r=(e=1==e.length&&Ua(e[0])?Ce(e[0],Xe(ui())):Ce(vn(e,1),Xe(ui()))).length;return Xn((function(n){for(var o=-1,i=gr(n.length,r);++o<i;)n[o]=e[o].call(this,n[o]);return Se(t,this,n)}))})),Ra=Xn((function(t,e){var n=ar(e,ci(Ra));return Go(t,a,r,e,n)})),La=Xn((function(t,e){var n=ar(e,ci(La));return Go(t,64,r,e,n)})),Ba=ri((function(t,e){return Go(t,u,r,r,r,e)}));function za(t,e){return t===e||t!=t&&e!=e}var $a=Zo(jn),Ha=Zo((function(t,e){return t>=e})),Fa=En(function(){return arguments}())?En:function(t){return tc(t)&&It.call(t,"callee")&&!qt.call(t,"callee")},Ua=wt.isArray,Va=ge?Xe(ge):function(t){return tc(t)&&_n(t)==E};function Wa(t){return null!=t&&Ja(t.length)&&!Ka(t)}function Za(t){return tc(t)&&Wa(t)}var qa=Re||yu,Ya=me?Xe(me):function(t){return tc(t)&&_n(t)==g};function Xa(t){if(!tc(t))return!1;var e=_n(t);return e==m||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!nc(t)}function Ka(t){if(!Qa(t))return!1;var e=_n(t);return e==b||e==w||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ga(t){return"number"==typeof t&&t==dc(t)}function Ja(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function Qa(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function tc(t){return null!=t&&"object"==typeof t}var ec=be?Xe(be):function(t){return tc(t)&&hi(t)==x};function rc(t){return"number"==typeof t||tc(t)&&_n(t)==O}function nc(t){if(!tc(t)||_n(t)!=S)return!1;var e=Wt(t);if(null===e)return!0;var r=It.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Dt.call(r)==Bt}var oc=we?Xe(we):function(t){return tc(t)&&_n(t)==j},ic=xe?Xe(xe):function(t){return tc(t)&&hi(t)==P};function ac(t){return"string"==typeof t||!Ua(t)&&tc(t)&&_n(t)==A}function cc(t){return"symbol"==typeof t||tc(t)&&_n(t)==M}var uc=Oe?Xe(Oe):function(t){return tc(t)&&Ja(t.length)&&!!oe[_n(t)]},lc=Zo(Ln),sc=Zo((function(t,e){return t<=e}));function fc(t){if(!t)return[];if(Wa(t))return ac(t)?sr(t):ko(t);if(Jt&&t[Jt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Jt]());var e=hi(t);return(e==x?or:e==P?cr:zc)(t)}function pc(t){return t?(t=yc(t))===l||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function dc(t){var e=pc(t),r=e%1;return e==e?r?e-r:e:0}function hc(t){return t?an(dc(t),0,p):0}function yc(t){if("number"==typeof t)return t;if(cc(t))return f;if(Qa(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Qa(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ye(t);var r=dt.test(t);return r||yt.test(t)?ue(t.slice(2),r?2:8):pt.test(t)?f:+t}function vc(t){return Eo(t,Cc(t))}function gc(t){return null==t?"":uo(t)}var mc=To((function(t,e){if(Si(e)||Wa(e))Eo(e,Ec(e),t);else for(var r in e)It.call(e,r)&&Qr(t,r,e[r])})),bc=To((function(t,e){Eo(e,Cc(e),t)})),wc=To((function(t,e,r,n){Eo(e,Cc(e),t,n)})),xc=To((function(t,e,r,n){Eo(e,Ec(e),t,n)})),Oc=ri(on),Sc=Xn((function(t,e){t=jt(t);var n=-1,o=e.length,i=o>2?e[2]:r;for(i&&bi(e[0],e[1],i)&&(o=1);++n<o;)for(var a=e[n],c=Cc(a),u=-1,l=c.length;++u<l;){var s=c[u],f=t[s];(f===r||za(f,Ct[s])&&!It.call(t,s))&&(t[s]=a[s])}return t})),_c=Xn((function(t){return t.push(r,Qo),Se(Dc,r,t)}));function jc(t,e,n){var o=null==t?r:On(t,e);return o===r?n:o}function Pc(t,e){return null!=t&&yi(t,e,An)}var Ac=Ho((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),t[e]=r}),Qc(ru)),Mc=Ho((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),It.call(t,e)?t[e].push(r):t[e]=[r]}),ui),kc=Xn(kn);function Ec(t){return Wa(t)?Yr(t):Nn(t)}function Cc(t){return Wa(t)?Yr(t,!0):Rn(t)}var Tc=To((function(t,e,r){Hn(t,e,r)})),Dc=To((function(t,e,r,n){Hn(t,e,r,n)})),Ic=ri((function(t,e){var r={};if(null==t)return r;var n=!1;e=Ce(e,(function(e){return e=bo(e,t),n||(n=e.length>1),e})),Eo(t,oi(t),r),n&&(r=cn(r,7,ti));for(var o=e.length;o--;)so(r,e[o]);return r})),Nc=ri((function(t,e){return null==t?{}:function(t,e){return Vn(t,e,(function(e,r){return Pc(t,r)}))}(t,e)}));function Rc(t,e){if(null==t)return{};var r=Ce(oi(t),(function(t){return[t]}));return e=ui(e),Vn(t,r,(function(t,r){return e(t,r[0])}))}var Lc=Ko(Ec),Bc=Ko(Cc);function zc(t){return null==t?[]:Ke(t,Ec(t))}var $c=Ro((function(t,e,r){return e=e.toLowerCase(),t+(r?Hc(e):e)}));function Hc(t){return Xc(gc(t).toLowerCase())}function Fc(t){return(t=gc(t))&&t.replace(gt,tr).replace(Gt,"")}var Uc=Ro((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Vc=Ro((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),Wc=No("toLowerCase"),Zc=Ro((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),qc=Ro((function(t,e,r){return t+(r?" ":"")+Xc(e)})),Yc=Ro((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Xc=No("toUpperCase");function Kc(t,e,n){return t=gc(t),(e=n?r:e)===r?function(t){return ee.test(t)}(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.match(ct)||[]}(t):t.match(e)||[]}var Gc=Xn((function(t,e){try{return Se(t,r,e)}catch(t){return Xa(t)?t:new Ot(t)}})),Jc=ri((function(t,e){return je(e,(function(e){e=Ri(e),nn(t,e,Ma(t[e],t))})),t}));function Qc(t){return function(){return t}}var tu=zo(),eu=zo(!0);function ru(t){return t}function nu(t){return In("function"==typeof t?t:cn(t,1))}var ou=Xn((function(t,e){return function(r){return kn(r,t,e)}})),iu=Xn((function(t,e){return function(r){return kn(t,r,e)}}));function au(t,e,r){var n=Ec(e),o=xn(e,n);null!=r||Qa(e)&&(o.length||!n.length)||(r=e,e=t,t=this,o=xn(e,Ec(e)));var i=!(Qa(r)&&"chain"in r&&!r.chain),a=Ka(t);return je(o,(function(r){var n=e[r];t[r]=n,a&&(t.prototype[r]=function(){var e=this.__chain__;if(i||e){var r=t(this.__wrapped__);return(r.__actions__=ko(this.__actions__)).push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,Te([this.value()],arguments))})})),t}function cu(){}var uu=Uo(Ce),lu=Uo(Ae),su=Uo(Ne);function fu(t){return wi(t)?Ue(Ri(t)):function(t){return function(e){return On(e,t)}}(t)}var pu=Wo(),du=Wo(!0);function hu(){return[]}function yu(){return!1}var vu,gu=Fo((function(t,e){return t+e}),0),mu=Yo("ceil"),bu=Fo((function(t,e){return t/e}),1),wu=Yo("floor"),xu=Fo((function(t,e){return t*e}),1),Ou=Yo("round"),Su=Fo((function(t,e){return t-e}),0);return Br.after=function(t,e){if("function"!=typeof e)throw new Mt(n);return t=dc(t),function(){if(--t<1)return e.apply(this,arguments)}},Br.ary=Pa,Br.assign=mc,Br.assignIn=bc,Br.assignInWith=wc,Br.assignWith=xc,Br.at=Oc,Br.before=Aa,Br.bind=Ma,Br.bindAll=Jc,Br.bindKey=ka,Br.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ua(t)?t:[t]},Br.chain=fa,Br.chunk=function(t,e,n){e=(n?bi(t,e,n):e===r)?1:vr(dc(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var i=0,a=0,c=wt(de(o/e));i<o;)c[a++]=ro(t,i,i+=e);return c},Br.compact=function(t){for(var e=-1,r=null==t?0:t.length,n=0,o=[];++e<r;){var i=t[e];i&&(o[n++]=i)}return o},Br.concat=function(){var t=arguments.length;if(!t)return[];for(var e=wt(t-1),r=arguments[0],n=t;n--;)e[n-1]=arguments[n];return Te(Ua(r)?ko(r):[r],vn(e,1))},Br.cond=function(t){var e=null==t?0:t.length,r=ui();return t=e?Ce(t,(function(t){if("function"!=typeof t[1])throw new Mt(n);return[r(t[0]),t[1]]})):[],Xn((function(r){for(var n=-1;++n<e;){var o=t[n];if(Se(o[0],this,r))return Se(o[1],this,r)}}))},Br.conforms=function(t){return function(t){var e=Ec(t);return function(r){return un(r,t,e)}}(cn(t,1))},Br.constant=Qc,Br.countBy=ha,Br.create=function(t,e){var r=zr(t);return null==e?r:rn(r,e)},Br.curry=function t(e,n,o){var i=Go(e,8,r,r,r,r,r,n=o?r:n);return i.placeholder=t.placeholder,i},Br.curryRight=function t(e,n,o){var i=Go(e,16,r,r,r,r,r,n=o?r:n);return i.placeholder=t.placeholder,i},Br.debounce=Ea,Br.defaults=Sc,Br.defaultsDeep=_c,Br.defer=Ca,Br.delay=Ta,Br.difference=zi,Br.differenceBy=$i,Br.differenceWith=Hi,Br.drop=function(t,e,n){var o=null==t?0:t.length;return o?ro(t,(e=n||e===r?1:dc(e))<0?0:e,o):[]},Br.dropRight=function(t,e,n){var o=null==t?0:t.length;return o?ro(t,0,(e=o-(e=n||e===r?1:dc(e)))<0?0:e):[]},Br.dropRightWhile=function(t,e){return t&&t.length?po(t,ui(e,3),!0,!0):[]},Br.dropWhile=function(t,e){return t&&t.length?po(t,ui(e,3),!0):[]},Br.fill=function(t,e,n,o){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&bi(t,e,n)&&(n=0,o=i),function(t,e,n,o){var i=t.length;for((n=dc(n))<0&&(n=-n>i?0:i+n),(o=o===r||o>i?i:dc(o))<0&&(o+=i),o=n>o?0:hc(o);n<o;)t[n++]=e;return t}(t,e,n,o)):[]},Br.filter=function(t,e){return(Ua(t)?Me:yn)(t,ui(e,3))},Br.flatMap=function(t,e){return vn(Oa(t,e),1)},Br.flatMapDeep=function(t,e){return vn(Oa(t,e),l)},Br.flatMapDepth=function(t,e,n){return n=n===r?1:dc(n),vn(Oa(t,e),n)},Br.flatten=Vi,Br.flattenDeep=function(t){return null!=t&&t.length?vn(t,l):[]},Br.flattenDepth=function(t,e){return null!=t&&t.length?vn(t,e=e===r?1:dc(e)):[]},Br.flip=function(t){return Go(t,512)},Br.flow=tu,Br.flowRight=eu,Br.fromPairs=function(t){for(var e=-1,r=null==t?0:t.length,n={};++e<r;){var o=t[e];n[o[0]]=o[1]}return n},Br.functions=function(t){return null==t?[]:xn(t,Ec(t))},Br.functionsIn=function(t){return null==t?[]:xn(t,Cc(t))},Br.groupBy=ba,Br.initial=function(t){return null!=t&&t.length?ro(t,0,-1):[]},Br.intersection=Zi,Br.intersectionBy=qi,Br.intersectionWith=Yi,Br.invert=Ac,Br.invertBy=Mc,Br.invokeMap=wa,Br.iteratee=nu,Br.keyBy=xa,Br.keys=Ec,Br.keysIn=Cc,Br.map=Oa,Br.mapKeys=function(t,e){var r={};return e=ui(e,3),bn(t,(function(t,n,o){nn(r,e(t,n,o),t)})),r},Br.mapValues=function(t,e){var r={};return e=ui(e,3),bn(t,(function(t,n,o){nn(r,n,e(t,n,o))})),r},Br.matches=function(t){return zn(cn(t,1))},Br.matchesProperty=function(t,e){return $n(t,cn(e,1))},Br.memoize=Da,Br.merge=Tc,Br.mergeWith=Dc,Br.method=ou,Br.methodOf=iu,Br.mixin=au,Br.negate=Ia,Br.nthArg=function(t){return t=dc(t),Xn((function(e){return Fn(e,t)}))},Br.omit=Ic,Br.omitBy=function(t,e){return Rc(t,Ia(ui(e)))},Br.once=function(t){return Aa(2,t)},Br.orderBy=function(t,e,n,o){return null==t?[]:(Ua(e)||(e=null==e?[]:[e]),Ua(n=o?r:n)||(n=null==n?[]:[n]),Un(t,e,n))},Br.over=uu,Br.overArgs=Na,Br.overEvery=lu,Br.overSome=su,Br.partial=Ra,Br.partialRight=La,Br.partition=Sa,Br.pick=Nc,Br.pickBy=Rc,Br.property=fu,Br.propertyOf=function(t){return function(e){return null==t?r:On(t,e)}},Br.pull=Ki,Br.pullAll=Gi,Br.pullAllBy=function(t,e,r){return t&&t.length&&e&&e.length?Wn(t,e,ui(r,2)):t},Br.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Wn(t,e,r,n):t},Br.pullAt=Ji,Br.range=pu,Br.rangeRight=du,Br.rearg=Ba,Br.reject=function(t,e){return(Ua(t)?Me:yn)(t,Ia(ui(e,3)))},Br.remove=function(t,e){var r=[];if(!t||!t.length)return r;var n=-1,o=[],i=t.length;for(e=ui(e,3);++n<i;){var a=t[n];e(a,n,t)&&(r.push(a),o.push(n))}return Zn(t,o),r},Br.rest=function(t,e){if("function"!=typeof t)throw new Mt(n);return Xn(t,e=e===r?e:dc(e))},Br.reverse=Qi,Br.sampleSize=function(t,e,n){return e=(n?bi(t,e,n):e===r)?1:dc(e),(Ua(t)?Kr:Gn)(t,e)},Br.set=function(t,e,r){return null==t?t:Jn(t,e,r)},Br.setWith=function(t,e,n,o){return o="function"==typeof o?o:r,null==t?t:Jn(t,e,n,o)},Br.shuffle=function(t){return(Ua(t)?Gr:eo)(t)},Br.slice=function(t,e,n){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&bi(t,e,n)?(e=0,n=o):(e=null==e?0:dc(e),n=n===r?o:dc(n)),ro(t,e,n)):[]},Br.sortBy=_a,Br.sortedUniq=function(t){return t&&t.length?ao(t):[]},Br.sortedUniqBy=function(t,e){return t&&t.length?ao(t,ui(e,2)):[]},Br.split=function(t,e,n){return n&&"number"!=typeof n&&bi(t,e,n)&&(e=n=r),(n=n===r?p:n>>>0)?(t=gc(t))&&("string"==typeof e||null!=e&&!oc(e))&&!(e=uo(e))&&nr(t)?xo(sr(t),0,n):t.split(e,n):[]},Br.spread=function(t,e){if("function"!=typeof t)throw new Mt(n);return e=null==e?0:vr(dc(e),0),Xn((function(r){var n=r[e],o=xo(r,0,e);return n&&Te(o,n),Se(t,this,o)}))},Br.tail=function(t){var e=null==t?0:t.length;return e?ro(t,1,e):[]},Br.take=function(t,e,n){return t&&t.length?ro(t,0,(e=n||e===r?1:dc(e))<0?0:e):[]},Br.takeRight=function(t,e,n){var o=null==t?0:t.length;return o?ro(t,(e=o-(e=n||e===r?1:dc(e)))<0?0:e,o):[]},Br.takeRightWhile=function(t,e){return t&&t.length?po(t,ui(e,3),!1,!0):[]},Br.takeWhile=function(t,e){return t&&t.length?po(t,ui(e,3)):[]},Br.tap=function(t,e){return e(t),t},Br.throttle=function(t,e,r){var o=!0,i=!0;if("function"!=typeof t)throw new Mt(n);return Qa(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),Ea(t,e,{leading:o,maxWait:e,trailing:i})},Br.thru=pa,Br.toArray=fc,Br.toPairs=Lc,Br.toPairsIn=Bc,Br.toPath=function(t){return Ua(t)?Ce(t,Ri):cc(t)?[t]:ko(Ni(gc(t)))},Br.toPlainObject=vc,Br.transform=function(t,e,r){var n=Ua(t),o=n||qa(t)||uc(t);if(e=ui(e,4),null==r){var i=t&&t.constructor;r=o?n?new i:[]:Qa(t)&&Ka(i)?zr(Wt(t)):{}}return(o?je:bn)(t,(function(t,n,o){return e(r,t,n,o)})),r},Br.unary=function(t){return Pa(t,1)},Br.union=ta,Br.unionBy=ea,Br.unionWith=ra,Br.uniq=function(t){return t&&t.length?lo(t):[]},Br.uniqBy=function(t,e){return t&&t.length?lo(t,ui(e,2)):[]},Br.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?lo(t,r,e):[]},Br.unset=function(t,e){return null==t||so(t,e)},Br.unzip=na,Br.unzipWith=oa,Br.update=function(t,e,r){return null==t?t:fo(t,e,mo(r))},Br.updateWith=function(t,e,n,o){return o="function"==typeof o?o:r,null==t?t:fo(t,e,mo(n),o)},Br.values=zc,Br.valuesIn=function(t){return null==t?[]:Ke(t,Cc(t))},Br.without=ia,Br.words=Kc,Br.wrap=function(t,e){return Ra(mo(e),t)},Br.xor=aa,Br.xorBy=ca,Br.xorWith=ua,Br.zip=la,Br.zipObject=function(t,e){return vo(t||[],e||[],Qr)},Br.zipObjectDeep=function(t,e){return vo(t||[],e||[],Jn)},Br.zipWith=sa,Br.entries=Lc,Br.entriesIn=Bc,Br.extend=bc,Br.extendWith=wc,au(Br,Br),Br.add=gu,Br.attempt=Gc,Br.camelCase=$c,Br.capitalize=Hc,Br.ceil=mu,Br.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=yc(n))==n?n:0),e!==r&&(e=(e=yc(e))==e?e:0),an(yc(t),e,n)},Br.clone=function(t){return cn(t,4)},Br.cloneDeep=function(t){return cn(t,5)},Br.cloneDeepWith=function(t,e){return cn(t,5,e="function"==typeof e?e:r)},Br.cloneWith=function(t,e){return cn(t,4,e="function"==typeof e?e:r)},Br.conformsTo=function(t,e){return null==e||un(t,e,Ec(e))},Br.deburr=Fc,Br.defaultTo=function(t,e){return null==t||t!=t?e:t},Br.divide=bu,Br.endsWith=function(t,e,n){t=gc(t),e=uo(e);var o=t.length,i=n=n===r?o:an(dc(n),0,o);return(n-=e.length)>=0&&t.slice(n,i)==e},Br.eq=za,Br.escape=function(t){return(t=gc(t))&&q.test(t)?t.replace(W,er):t},Br.escapeRegExp=function(t){return(t=gc(t))&&et.test(t)?t.replace(tt,"\\$&"):t},Br.every=function(t,e,n){var o=Ua(t)?Ae:dn;return n&&bi(t,e,n)&&(e=r),o(t,ui(e,3))},Br.find=ya,Br.findIndex=Fi,Br.findKey=function(t,e){return Le(t,ui(e,3),bn)},Br.findLast=va,Br.findLastIndex=Ui,Br.findLastKey=function(t,e){return Le(t,ui(e,3),wn)},Br.floor=wu,Br.forEach=ga,Br.forEachRight=ma,Br.forIn=function(t,e){return null==t?t:gn(t,ui(e,3),Cc)},Br.forInRight=function(t,e){return null==t?t:mn(t,ui(e,3),Cc)},Br.forOwn=function(t,e){return t&&bn(t,ui(e,3))},Br.forOwnRight=function(t,e){return t&&wn(t,ui(e,3))},Br.get=jc,Br.gt=$a,Br.gte=Ha,Br.has=function(t,e){return null!=t&&yi(t,e,Pn)},Br.hasIn=Pc,Br.head=Wi,Br.identity=ru,Br.includes=function(t,e,r,n){t=Wa(t)?t:zc(t),r=r&&!n?dc(r):0;var o=t.length;return r<0&&(r=vr(o+r,0)),ac(t)?r<=o&&t.indexOf(e,r)>-1:!!o&&ze(t,e,r)>-1},Br.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=null==r?0:dc(r);return o<0&&(o=vr(n+o,0)),ze(t,e,o)},Br.inRange=function(t,e,n){return e=pc(e),n===r?(n=e,e=0):n=pc(n),function(t,e,r){return t>=gr(e,r)&&t<vr(e,r)}(t=yc(t),e,n)},Br.invoke=kc,Br.isArguments=Fa,Br.isArray=Ua,Br.isArrayBuffer=Va,Br.isArrayLike=Wa,Br.isArrayLikeObject=Za,Br.isBoolean=function(t){return!0===t||!1===t||tc(t)&&_n(t)==v},Br.isBuffer=qa,Br.isDate=Ya,Br.isElement=function(t){return tc(t)&&1===t.nodeType&&!nc(t)},Br.isEmpty=function(t){if(null==t)return!0;if(Wa(t)&&(Ua(t)||"string"==typeof t||"function"==typeof t.splice||qa(t)||uc(t)||Fa(t)))return!t.length;var e=hi(t);if(e==x||e==P)return!t.size;if(Si(t))return!Nn(t).length;for(var r in t)if(It.call(t,r))return!1;return!0},Br.isEqual=function(t,e){return Cn(t,e)},Br.isEqualWith=function(t,e,n){var o=(n="function"==typeof n?n:r)?n(t,e):r;return o===r?Cn(t,e,r,n):!!o},Br.isError=Xa,Br.isFinite=function(t){return"number"==typeof t&&Ve(t)},Br.isFunction=Ka,Br.isInteger=Ga,Br.isLength=Ja,Br.isMap=ec,Br.isMatch=function(t,e){return t===e||Tn(t,e,si(e))},Br.isMatchWith=function(t,e,n){return n="function"==typeof n?n:r,Tn(t,e,si(e),n)},Br.isNaN=function(t){return rc(t)&&t!=+t},Br.isNative=function(t){if(Oi(t))throw new Ot("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dn(t)},Br.isNil=function(t){return null==t},Br.isNull=function(t){return null===t},Br.isNumber=rc,Br.isObject=Qa,Br.isObjectLike=tc,Br.isPlainObject=nc,Br.isRegExp=oc,Br.isSafeInteger=function(t){return Ga(t)&&t>=-9007199254740991&&t<=s},Br.isSet=ic,Br.isString=ac,Br.isSymbol=cc,Br.isTypedArray=uc,Br.isUndefined=function(t){return t===r},Br.isWeakMap=function(t){return tc(t)&&hi(t)==k},Br.isWeakSet=function(t){return tc(t)&&"[object WeakSet]"==_n(t)},Br.join=function(t,e){return null==t?"":pr.call(t,e)},Br.kebabCase=Uc,Br.last=Xi,Br.lastIndexOf=function(t,e,n){var o=null==t?0:t.length;if(!o)return-1;var i=o;return n!==r&&(i=(i=dc(n))<0?vr(o+i,0):gr(i,o-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,i):Be(t,He,i,!0)},Br.lowerCase=Vc,Br.lowerFirst=Wc,Br.lt=lc,Br.lte=sc,Br.max=function(t){return t&&t.length?hn(t,ru,jn):r},Br.maxBy=function(t,e){return t&&t.length?hn(t,ui(e,2),jn):r},Br.mean=function(t){return Fe(t,ru)},Br.meanBy=function(t,e){return Fe(t,ui(e,2))},Br.min=function(t){return t&&t.length?hn(t,ru,Ln):r},Br.minBy=function(t,e){return t&&t.length?hn(t,ui(e,2),Ln):r},Br.stubArray=hu,Br.stubFalse=yu,Br.stubObject=function(){return{}},Br.stubString=function(){return""},Br.stubTrue=function(){return!0},Br.multiply=xu,Br.nth=function(t,e){return t&&t.length?Fn(t,dc(e)):r},Br.noConflict=function(){return fe._===this&&(fe._=zt),this},Br.noop=cu,Br.now=ja,Br.pad=function(t,e,r){t=gc(t);var n=(e=dc(e))?lr(t):0;if(!e||n>=e)return t;var o=(e-n)/2;return Vo(ye(o),r)+t+Vo(de(o),r)},Br.padEnd=function(t,e,r){t=gc(t);var n=(e=dc(e))?lr(t):0;return e&&n<e?t+Vo(e-n,r):t},Br.padStart=function(t,e,r){t=gc(t);var n=(e=dc(e))?lr(t):0;return e&&n<e?Vo(e-n,r)+t:t},Br.parseInt=function(t,e,r){return r||null==e?e=0:e&&(e=+e),br(gc(t).replace(rt,""),e||0)},Br.random=function(t,e,n){if(n&&"boolean"!=typeof n&&bi(t,e,n)&&(e=n=r),n===r&&("boolean"==typeof e?(n=e,e=r):"boolean"==typeof t&&(n=t,t=r)),t===r&&e===r?(t=0,e=1):(t=pc(t),e===r?(e=t,t=0):e=pc(e)),t>e){var o=t;t=e,e=o}if(n||t%1||e%1){var i=wr();return gr(t+i*(e-t+ce("1e-"+((i+"").length-1))),e)}return qn(t,e)},Br.reduce=function(t,e,r){var n=Ua(t)?De:We,o=arguments.length<3;return n(t,ui(e,4),r,o,fn)},Br.reduceRight=function(t,e,r){var n=Ua(t)?Ie:We,o=arguments.length<3;return n(t,ui(e,4),r,o,pn)},Br.repeat=function(t,e,n){return e=(n?bi(t,e,n):e===r)?1:dc(e),Yn(gc(t),e)},Br.replace=function(){var t=arguments,e=gc(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Br.result=function(t,e,n){var o=-1,i=(e=bo(e,t)).length;for(i||(i=1,t=r);++o<i;){var a=null==t?r:t[Ri(e[o])];a===r&&(o=i,a=n),t=Ka(a)?a.call(t):a}return t},Br.round=Ou,Br.runInContext=t,Br.sample=function(t){return(Ua(t)?Xr:Kn)(t)},Br.size=function(t){if(null==t)return 0;if(Wa(t))return ac(t)?lr(t):t.length;var e=hi(t);return e==x||e==P?t.size:Nn(t).length},Br.snakeCase=Zc,Br.some=function(t,e,n){var o=Ua(t)?Ne:no;return n&&bi(t,e,n)&&(e=r),o(t,ui(e,3))},Br.sortedIndex=function(t,e){return oo(t,e)},Br.sortedIndexBy=function(t,e,r){return io(t,e,ui(r,2))},Br.sortedIndexOf=function(t,e){var r=null==t?0:t.length;if(r){var n=oo(t,e);if(n<r&&za(t[n],e))return n}return-1},Br.sortedLastIndex=function(t,e){return oo(t,e,!0)},Br.sortedLastIndexBy=function(t,e,r){return io(t,e,ui(r,2),!0)},Br.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var r=oo(t,e,!0)-1;if(za(t[r],e))return r}return-1},Br.startCase=qc,Br.startsWith=function(t,e,r){return t=gc(t),r=null==r?0:an(dc(r),0,t.length),e=uo(e),t.slice(r,r+e.length)==e},Br.subtract=Su,Br.sum=function(t){return t&&t.length?Ze(t,ru):0},Br.sumBy=function(t,e){return t&&t.length?Ze(t,ui(e,2)):0},Br.template=function(t,e,n){var o=Br.templateSettings;n&&bi(t,e,n)&&(e=r),t=gc(t),e=wc({},e,o,Jo);var i,a,c=wc({},e.imports,o.imports,Jo),u=Ec(c),l=Ke(c,u),s=0,f=e.interpolate||mt,p="__p += '",d=Pt((e.escape||mt).source+"|"+f.source+"|"+(f===K?st:mt).source+"|"+(e.evaluate||mt).source+"|$","g"),h="//# sourceURL="+(It.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ne+"]")+"\n";t.replace(d,(function(e,r,n,o,c,u){return n||(n=o),p+=t.slice(s,u).replace(bt,rr),r&&(i=!0,p+="' +\n__e("+r+") +\n'"),c&&(a=!0,p+="';\n"+c+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),s=u+e.length,e})),p+="';\n";var y=It.call(e,"variable")&&e.variable;if(y){if(ut.test(y))throw new Ot("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(H,""):p).replace(F,"$1").replace(U,"$1;"),p="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=Gc((function(){return St(u,h+"return "+p).apply(r,l)}));if(v.source=p,Xa(v))throw v;return v},Br.times=function(t,e){if((t=dc(t))<1||t>s)return[];var r=p,n=gr(t,p);e=ui(e),t-=p;for(var o=qe(n,e);++r<t;)e(r);return o},Br.toFinite=pc,Br.toInteger=dc,Br.toLength=hc,Br.toLower=function(t){return gc(t).toLowerCase()},Br.toNumber=yc,Br.toSafeInteger=function(t){return t?an(dc(t),-9007199254740991,s):0===t?t:0},Br.toString=gc,Br.toUpper=function(t){return gc(t).toUpperCase()},Br.trim=function(t,e,n){if((t=gc(t))&&(n||e===r))return Ye(t);if(!t||!(e=uo(e)))return t;var o=sr(t),i=sr(e);return xo(o,Je(o,i),Qe(o,i)+1).join("")},Br.trimEnd=function(t,e,n){if((t=gc(t))&&(n||e===r))return t.slice(0,fr(t)+1);if(!t||!(e=uo(e)))return t;var o=sr(t);return xo(o,0,Qe(o,sr(e))+1).join("")},Br.trimStart=function(t,e,n){if((t=gc(t))&&(n||e===r))return t.replace(rt,"");if(!t||!(e=uo(e)))return t;var o=sr(t);return xo(o,Je(o,sr(e))).join("")},Br.truncate=function(t,e){var n=30,o="...";if(Qa(e)){var i="separator"in e?e.separator:i;n="length"in e?dc(e.length):n,o="omission"in e?uo(e.omission):o}var a=(t=gc(t)).length;if(nr(t)){var c=sr(t);a=c.length}if(n>=a)return t;var u=n-lr(o);if(u<1)return o;var l=c?xo(c,0,u).join(""):t.slice(0,u);if(i===r)return l+o;if(c&&(u+=l.length-u),oc(i)){if(t.slice(u).search(i)){var s,f=l;for(i.global||(i=Pt(i.source,gc(ft.exec(i))+"g")),i.lastIndex=0;s=i.exec(f);)var p=s.index;l=l.slice(0,p===r?u:p)}}else if(t.indexOf(uo(i),u)!=u){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+o},Br.unescape=function(t){return(t=gc(t))&&Z.test(t)?t.replace(V,dr):t},Br.uniqueId=function(t){var e=++Nt;return gc(t)+e},Br.upperCase=Yc,Br.upperFirst=Xc,Br.each=ga,Br.eachRight=ma,Br.first=Wi,au(Br,(vu={},bn(Br,(function(t,e){It.call(Br.prototype,e)||(vu[e]=t)})),vu),{chain:!1}),Br.VERSION="4.17.21",je(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Br[t].placeholder=Br})),je(["drop","take"],(function(t,e){Fr.prototype[t]=function(n){n=n===r?1:vr(dc(n),0);var o=this.__filtered__&&!e?new Fr(this):this.clone();return o.__filtered__?o.__takeCount__=gr(n,o.__takeCount__):o.__views__.push({size:gr(n,p),type:t+(o.__dir__<0?"Right":"")}),o},Fr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),je(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;Fr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ui(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),je(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Fr.prototype[t]=function(){return this[r](1).value()[0]}})),je(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Fr.prototype[t]=function(){return this.__filtered__?new Fr(this):this[r](1)}})),Fr.prototype.compact=function(){return this.filter(ru)},Fr.prototype.find=function(t){return this.filter(t).head()},Fr.prototype.findLast=function(t){return this.reverse().find(t)},Fr.prototype.invokeMap=Xn((function(t,e){return"function"==typeof t?new Fr(this):this.map((function(r){return kn(r,t,e)}))})),Fr.prototype.reject=function(t){return this.filter(Ia(ui(t)))},Fr.prototype.slice=function(t,e){t=dc(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Fr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=dc(e))<0?n.dropRight(-e):n.take(e-t)),n)},Fr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Fr.prototype.toArray=function(){return this.take(p)},bn(Fr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),o=/^(?:head|last)$/.test(e),i=Br[o?"take"+("last"==e?"Right":""):e],a=o||/^find/.test(e);i&&(Br.prototype[e]=function(){var e=this.__wrapped__,c=o?[1]:arguments,u=e instanceof Fr,l=c[0],s=u||Ua(e),f=function(t){var e=i.apply(Br,Te([t],c));return o&&p?e[0]:e};s&&n&&"function"==typeof l&&1!=l.length&&(u=s=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,y=u&&!d;if(!a&&s){e=y?e:new Fr(this);var v=t.apply(e,c);return v.__actions__.push({func:pa,args:[f],thisArg:r}),new Hr(v,p)}return h&&y?t.apply(this,c):(v=this.thru(f),h?o?v.value()[0]:v.value():v)})})),je(["pop","push","shift","sort","splice","unshift"],(function(t){var e=kt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Br.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var o=this.value();return e.apply(Ua(o)?o:[],t)}return this[r]((function(r){return e.apply(Ua(r)?r:[],t)}))}})),bn(Fr.prototype,(function(t,e){var r=Br[e];if(r){var n=r.name+"";It.call(kr,n)||(kr[n]=[]),kr[n].push({name:e,func:r})}})),kr[$o(r,2).name]=[{name:"wrapper",func:r}],Fr.prototype.clone=function(){var t=new Fr(this.__wrapped__);return t.__actions__=ko(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ko(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ko(this.__views__),t},Fr.prototype.reverse=function(){if(this.__filtered__){var t=new Fr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Fr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Ua(t),n=e<0,o=r?t.length:0,i=function(t,e,r){for(var n=-1,o=r.length;++n<o;){var i=r[n],a=i.size;switch(i.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=gr(e,t+a);break;case"takeRight":t=vr(t,e-a)}}return{start:t,end:e}}(0,o,this.__views__),a=i.start,c=i.end,u=c-a,l=n?c:a-1,s=this.__iteratees__,f=s.length,p=0,d=gr(u,this.__takeCount__);if(!r||!n&&o==u&&d==u)return ho(t,this.__actions__);var h=[];t:for(;u--&&p<d;){for(var y=-1,v=t[l+=e];++y<f;){var g=s[y],m=g.iteratee,b=g.type,w=m(v);if(2==b)v=w;else if(!w){if(1==b)continue t;break t}}h[p++]=v}return h},Br.prototype.at=da,Br.prototype.chain=function(){return fa(this)},Br.prototype.commit=function(){return new Hr(this.value(),this.__chain__)},Br.prototype.next=function(){this.__values__===r&&(this.__values__=fc(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},Br.prototype.plant=function(t){for(var e,n=this;n instanceof $r;){var o=Bi(n);o.__index__=0,o.__values__=r,e?i.__wrapped__=o:e=o;var i=o;n=n.__wrapped__}return i.__wrapped__=t,e},Br.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Fr){var e=t;return this.__actions__.length&&(e=new Fr(this)),(e=e.reverse()).__actions__.push({func:pa,args:[Qi],thisArg:r}),new Hr(e,this.__chain__)}return this.thru(Qi)},Br.prototype.toJSON=Br.prototype.valueOf=Br.prototype.value=function(){return ho(this.__wrapped__,this.__actions__)},Br.prototype.first=Br.prototype.head,Jt&&(Br.prototype[Jt]=function(){return this}),Br}();de?((de.exports=hr)._=hr,pe._=hr):fe._=hr}).call(xI)}(wI,wI.exports)),wI.exports);function SI(t){const e=yt(t);e.current=t,bt((()=>()=>{e.current()}),[])}function _I(t,e=500,r){const n=yt(null);SI((()=>{n.current&&n.current.cancel()}));const o=wt((()=>{const o=OI.debounce(t,e,r),i=(...t)=>o(...t);return i.cancel=()=>{o.cancel()},i.isPending=()=>!!n.current,i.flush=()=>o.flush(),i}),[t,e,r]);return bt((()=>{n.current=OI.debounce(t,e,r)}),[t,e,r]),o}function jI(t,e,r){const n=r?.equalityFn??((t,e)=>t===e),o=t instanceof Function?t():t,[i,a]=gt(o),c=yt(o),u=_I(a,e,r);return n(c.current,o)||(u(o),c.current=o),[i,u]}export{ET as CfAreaChart,CT as CfBreakpointDebugger,TT as CfButtonGroup,DT as CfButtonGroupButton,IT as CfCard,NT as CfCarousel,LT as CfCheckbox,HT as CfDevConsole,zT as CfDevConsoleActions,BT as CfDevConsoleButton,$T as CfDevConsoleDataGrid,FT as CfDevConsoleFloatingButton,UT as CfDevConsoleLinks,VT as CfDevConsoleSystemStatus,WT as CfForm,oD as CfInput,tI as CfInputArray,eI as CfLineChart,rI as CfModal,nI as CfNavLink,lI as CfOpenSearchPagination,sI as CfPagination,fI as CfPrettyWrap,pI as CfSelect,hI as CfSpinner,yI as CfTag,vI as CfToast,gI as CfTooltip,kt as IconAlert,Ie as IconAlgo,Et as IconArrowDown,Ct as IconArrowUp,Ne as IconAvax,Tt as IconBank,Dt as IconBarChart,Re as IconBch,It as IconBookCheck,Le as IconBtc,Nt as IconCalendar,Rt as IconCaretDown,Lt as IconCaretLeft,Bt as IconCaretRight,zt as IconCaretUp,$t as IconCent,Ht as IconCheck,Ft as IconChecking,Ut as IconCircleCheck,Vt as IconClose,Wt as IconConnect,Zt as IconCopy,Ce as IconDiamonds,Be as IconDoge,qt as IconDollar,Yt as IconDollarBill,Xt as IconDownload,Kt as IconEdit,Gt as IconEnter,Jt as IconEnterInverted,ze as IconEth,Qt as IconExchange,Te as IconExternalLink,te as IconFilter,ee as IconHelp,re as IconHistory,ne as IconHome,oe as IconIndicatorDown,ie as IconIndicatorUp,ae as IconInfo,$e as IconLink,ce as IconLock,He as IconLtc,ue as IconMail,le as IconMenu,se as IconMinus,Fe as IconMkr,fe as IconMore,pe as IconNotification,de as IconOverview,he as IconPercent,ye as IconPieChart,ve as IconPlus,De as IconRefresh,ge as IconReports,me as IconReservesSuccess,be as IconReservesWarning,we as IconSearch,xe as IconSettings,Oe as IconSettlement,Se as IconSignIn,_e as IconSignOut,Ue as IconSol,je as IconSort,Pe as IconSpinner,Ae as IconSupport,Me as IconTrash,ke as IconUpload,Ee as IconUser,Ve as IconXlm,We as IconXrp,fr as aggregateAmounts,An as coreTheme,Wr as dateFormats,jr as dateToTimestamp,Pr as formatPercentage,Mn as formatPhoneNumber,Ir as formatUsd,Nr as getDelta,Lr as isIframe,Vr as layoutMinWidth,zr as pullFromEnd,$r as splitOnCapitals,Hr as uiColors,Ur as usdToNumber,mI as useCfBreakpoint,_I as useDebounceCallback,jI as useDebounceValue,SI as useUnmount,Zr as utcDateToLocal};
42
+ */var _I=(xI||(xI=1,function(t,e){(function(){var r,n="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=32,c=128,u=256,l=1/0,s=9007199254740991,f=NaN,p=4294967295,d=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",u]],h="[object Arguments]",y="[object Array]",v="[object Boolean]",g="[object Date]",m="[object Error]",b="[object Function]",w="[object GeneratorFunction]",x="[object Map]",O="[object Number]",S="[object Object]",_="[object Promise]",j="[object RegExp]",P="[object Set]",A="[object String]",M="[object Symbol]",k="[object WeakMap]",E="[object ArrayBuffer]",C="[object DataView]",T="[object Float32Array]",D="[object Float64Array]",I="[object Int8Array]",N="[object Int16Array]",R="[object Int32Array]",L="[object Uint8Array]",B="[object Uint8ClampedArray]",z="[object Uint16Array]",$="[object Uint32Array]",H=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,Z=RegExp(V.source),q=RegExp(W.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tt=/[\\^$.*+?()[\]{}|]/g,et=RegExp(tt.source),rt=/^\s+/,nt=/\s/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,it=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ct=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ut=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,st=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,ht=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,vt=/^(?:0|[1-9]\d*)$/,gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",xt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ot="\\u2700-\\u27bf",St="a-z\\xdf-\\xf6\\xf8-\\xff",_t="A-Z\\xc0-\\xd6\\xd8-\\xde",jt="\\ufe0e\\ufe0f",Pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",At="['’]",Mt="["+wt+"]",kt="["+Pt+"]",Et="["+xt+"]",Ct="\\d+",Tt="["+Ot+"]",Dt="["+St+"]",It="[^"+wt+Pt+Ct+Ot+St+_t+"]",Nt="\\ud83c[\\udffb-\\udfff]",Rt="[^"+wt+"]",Lt="(?:\\ud83c[\\udde6-\\uddff]){2}",Bt="[\\ud800-\\udbff][\\udc00-\\udfff]",zt="["+_t+"]",$t="\\u200d",Ht="(?:"+Dt+"|"+It+")",Ft="(?:"+zt+"|"+It+")",Ut="(?:['’](?:d|ll|m|re|s|t|ve))?",Vt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Wt="(?:"+Et+"|"+Nt+")?",Zt="["+jt+"]?",qt=Zt+Wt+"(?:"+$t+"(?:"+[Rt,Lt,Bt].join("|")+")"+Zt+Wt+")*",Yt="(?:"+[Tt,Lt,Bt].join("|")+")"+qt,Xt="(?:"+[Rt+Et+"?",Et,Lt,Bt,Mt].join("|")+")",Kt=RegExp(At,"g"),Gt=RegExp(Et,"g"),Jt=RegExp(Nt+"(?="+Nt+")|"+Xt+qt,"g"),Qt=RegExp([zt+"?"+Dt+"+"+Ut+"(?="+[kt,zt,"$"].join("|")+")",Ft+"+"+Vt+"(?="+[kt,zt+Ht,"$"].join("|")+")",zt+"?"+Ht+"+"+Ut,zt+"+"+Vt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ct,Yt].join("|"),"g"),te=RegExp("["+$t+wt+xt+jt+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ne=-1,oe={};oe[T]=oe[D]=oe[I]=oe[N]=oe[R]=oe[L]=oe[B]=oe[z]=oe[$]=!0,oe[h]=oe[y]=oe[E]=oe[v]=oe[C]=oe[g]=oe[m]=oe[b]=oe[x]=oe[O]=oe[S]=oe[j]=oe[P]=oe[A]=oe[k]=!1;var ie={};ie[h]=ie[y]=ie[E]=ie[C]=ie[v]=ie[g]=ie[T]=ie[D]=ie[I]=ie[N]=ie[R]=ie[x]=ie[O]=ie[S]=ie[j]=ie[P]=ie[A]=ie[M]=ie[L]=ie[B]=ie[z]=ie[$]=!0,ie[m]=ie[b]=ie[k]=!1;var ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ce=parseFloat,ue=parseInt,le="object"==typeof pr&&pr&&pr.Object===Object&&pr,se="object"==typeof self&&self&&self.Object===Object&&self,fe=le||se||Function("return this")(),pe=e&&!e.nodeType&&e,de=pe&&t&&!t.nodeType&&t,he=de&&de.exports===pe,ye=he&&le.process,ve=function(){try{var t=de&&de.require&&de.require("util").types;return t||ye&&ye.binding&&ye.binding("util")}catch(t){}}(),ge=ve&&ve.isArrayBuffer,me=ve&&ve.isDate,be=ve&&ve.isMap,we=ve&&ve.isRegExp,xe=ve&&ve.isSet,Oe=ve&&ve.isTypedArray;function Se(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)}function _e(t,e,r,n){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];e(n,a,r(a),t)}return n}function je(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}function Pe(t,e){for(var r=null==t?0:t.length;r--&&!1!==e(t[r],r,t););return t}function Ae(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}function Me(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}function ke(t,e){return!(null==t||!t.length)&&ze(t,e,0)>-1}function Ee(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}function Ce(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}function Te(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}function De(t,e,r,n){var o=-1,i=null==t?0:t.length;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}function Ie(t,e,r,n){var o=null==t?0:t.length;for(n&&o&&(r=t[--o]);o--;)r=e(r,t[o],o,t);return r}function Ne(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var Re=Ue("length");function Le(t,e,r){var n;return r(t,(function(t,r,o){if(e(t,r,o))return n=r,!1})),n}function Be(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}function ze(t,e,r){return e==e?function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}(t,e,r):Be(t,He,r)}function $e(t,e,r,n){for(var o=r-1,i=t.length;++o<i;)if(n(t[o],e))return o;return-1}function He(t){return t!=t}function Fe(t,e){var r=null==t?0:t.length;return r?Ze(t,e)/r:f}function Ue(t){return function(e){return null==e?r:e[t]}}function Ve(t){return function(e){return null==t?r:t[e]}}function We(t,e,r,n,o){return o(t,(function(t,o,i){r=n?(n=!1,t):e(r,t,o,i)})),r}function Ze(t,e){for(var n,o=-1,i=t.length;++o<i;){var a=e(t[o]);a!==r&&(n=n===r?a:n+a)}return n}function qe(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function Ye(t){return t?t.slice(0,fr(t)+1).replace(rt,""):t}function Xe(t){return function(e){return t(e)}}function Ke(t,e){return Ce(e,(function(e){return t[e]}))}function Ge(t,e){return t.has(e)}function Je(t,e){for(var r=-1,n=t.length;++r<n&&ze(e,t[r],0)>-1;);return r}function Qe(t,e){for(var r=t.length;r--&&ze(e,t[r],0)>-1;);return r}var tr=Ve({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),er=Ve({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function rr(t){return"\\"+ae[t]}function nr(t){return te.test(t)}function or(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function ir(t,e){return function(r){return t(e(r))}}function ar(t,e){for(var r=-1,n=t.length,o=0,a=[];++r<n;){var c=t[r];c!==e&&c!==i||(t[r]=i,a[o++]=r)}return a}function cr(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}function ur(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=[t,t]})),r}function lr(t){return nr(t)?function(t){for(var e=Jt.lastIndex=0;Jt.test(t);)++e;return e}(t):Re(t)}function sr(t){return nr(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.split("")}(t)}function fr(t){for(var e=t.length;e--&&nt.test(t.charAt(e)););return e}var dr=Ve({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),hr=function t(e){var nt,wt=(e=null==e?fe:hr.defaults(fe.Object(),e,hr.pick(fe,re))).Array,xt=e.Date,Ot=e.Error,St=e.Function,_t=e.Math,jt=e.Object,Pt=e.RegExp,At=e.String,Mt=e.TypeError,kt=wt.prototype,Et=St.prototype,Ct=jt.prototype,Tt=e["__core-js_shared__"],Dt=Et.toString,It=Ct.hasOwnProperty,Nt=0,Rt=(nt=/[^.]+$/.exec(Tt&&Tt.keys&&Tt.keys.IE_PROTO||""))?"Symbol(src)_1."+nt:"",Lt=Ct.toString,Bt=Dt.call(jt),zt=fe._,$t=Pt("^"+Dt.call(It).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=he?e.Buffer:r,Ft=e.Symbol,Ut=e.Uint8Array,Vt=Ht?Ht.allocUnsafe:r,Wt=ir(jt.getPrototypeOf,jt),Zt=jt.create,qt=Ct.propertyIsEnumerable,Yt=kt.splice,Xt=Ft?Ft.isConcatSpreadable:r,Jt=Ft?Ft.iterator:r,te=Ft?Ft.toStringTag:r,ae=function(){try{var t=fi(jt,"defineProperty");return t({},"",{}),t}catch(t){}}(),le=e.clearTimeout!==fe.clearTimeout&&e.clearTimeout,se=xt&&xt.now!==fe.Date.now&&xt.now,pe=e.setTimeout!==fe.setTimeout&&e.setTimeout,de=_t.ceil,ye=_t.floor,ve=jt.getOwnPropertySymbols,Re=Ht?Ht.isBuffer:r,Ve=e.isFinite,pr=kt.join,yr=ir(jt.keys,jt),vr=_t.max,gr=_t.min,mr=xt.now,br=e.parseInt,wr=_t.random,xr=kt.reverse,Or=fi(e,"DataView"),Sr=fi(e,"Map"),_r=fi(e,"Promise"),jr=fi(e,"Set"),Pr=fi(e,"WeakMap"),Ar=fi(jt,"create"),Mr=Pr&&new Pr,kr={},Er=Li(Or),Cr=Li(Sr),Tr=Li(_r),Dr=Li(jr),Ir=Li(Pr),Nr=Ft?Ft.prototype:r,Rr=Nr?Nr.valueOf:r,Lr=Nr?Nr.toString:r;function Br(t){if(tc(t)&&!Ua(t)&&!(t instanceof Fr)){if(t instanceof Hr)return t;if(It.call(t,"__wrapped__"))return Bi(t)}return new Hr(t)}var zr=function(){function t(){}return function(e){if(!Qa(e))return{};if(Zt)return Zt(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function $r(){}function Hr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function Fr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Ur(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])}}function Vr(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])}}function Wr(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])}}function Zr(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Wr;++e<r;)this.add(t[e])}function qr(t){var e=this.__data__=new Vr(t);this.size=e.size}function Yr(t,e){var r=Ua(t),n=!r&&Fa(t),o=!r&&!n&&qa(t),i=!r&&!n&&!o&&uc(t),a=r||n||o||i,c=a?qe(t.length,At):[],u=c.length;for(var l in t)!e&&!It.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||mi(l,u))||c.push(l);return c}function Xr(t){var e=t.length;return e?t[qn(0,e-1)]:r}function Kr(t,e){return Ii(ko(t),an(e,0,t.length))}function Gr(t){return Ii(ko(t))}function Jr(t,e,n){(n!==r&&!za(t[e],n)||n===r&&!(e in t))&&nn(t,e,n)}function Qr(t,e,n){var o=t[e];It.call(t,e)&&za(o,n)&&(n!==r||e in t)||nn(t,e,n)}function tn(t,e){for(var r=t.length;r--;)if(za(t[r][0],e))return r;return-1}function en(t,e,r,n){return fn(t,(function(t,o,i){e(n,t,r(t),i)})),n}function rn(t,e){return t&&Eo(e,Ec(e),t)}function nn(t,e,r){"__proto__"==e&&ae?ae(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function on(t,e){for(var n=-1,o=e.length,i=wt(o),a=null==t;++n<o;)i[n]=a?r:jc(t,e[n]);return i}function an(t,e,n){return t==t&&(n!==r&&(t=t<=n?t:n),e!==r&&(t=t>=e?t:e)),t}function cn(t,e,n,o,i,a){var c,u=1&e,l=2&e,s=4&e;if(n&&(c=i?n(t,o,i,a):n(t)),c!==r)return c;if(!Qa(t))return t;var f=Ua(t);if(f){if(c=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&It.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!u)return ko(t,c)}else{var p=hi(t),d=p==b||p==w;if(qa(t))return So(t,u);if(p==S||p==h||d&&!i){if(c=l||d?{}:vi(t),!u)return l?function(t,e){return Eo(t,di(t),e)}(t,function(t,e){return t&&Eo(e,Cc(e),t)}(c,t)):function(t,e){return Eo(t,pi(t),e)}(t,rn(c,t))}else{if(!ie[p])return i?t:{};c=function(t,e,r){var n,o=t.constructor;switch(e){case E:return _o(t);case v:case g:return new o(+t);case C:return function(t,e){var r=e?_o(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case T:case D:case I:case N:case R:case L:case B:case z:case $:return jo(t,r);case x:return new o;case O:case A:return new o(t);case j:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case P:return new o;case M:return n=t,Rr?jt(Rr.call(n)):{}}}(t,p,u)}}a||(a=new qr);var y=a.get(t);if(y)return y;a.set(t,c),ic(t)?t.forEach((function(r){c.add(cn(r,e,n,r,t,a))})):ec(t)&&t.forEach((function(r,o){c.set(o,cn(r,e,n,o,t,a))}));var m=f?r:(s?l?oi:ni:l?Cc:Ec)(t);return je(m||t,(function(r,o){m&&(r=t[o=r]),Qr(c,o,cn(r,e,n,o,t,a))})),c}function un(t,e,n){var o=n.length;if(null==t)return!o;for(t=jt(t);o--;){var i=n[o],a=e[i],c=t[i];if(c===r&&!(i in t)||!a(c))return!1}return!0}function ln(t,e,o){if("function"!=typeof t)throw new Mt(n);return Ei((function(){t.apply(r,o)}),e)}function sn(t,e,r,n){var o=-1,i=ke,a=!0,c=t.length,u=[],l=e.length;if(!c)return u;r&&(e=Ce(e,Xe(r))),n?(i=Ee,a=!1):e.length>=200&&(i=Ge,a=!1,e=new Zr(e));t:for(;++o<c;){var s=t[o],f=null==r?s:r(s);if(s=n||0!==s?s:0,a&&f==f){for(var p=l;p--;)if(e[p]===f)continue t;u.push(s)}else i(e,f,n)||u.push(s)}return u}Br.templateSettings={escape:Y,evaluate:X,interpolate:K,variable:"",imports:{_:Br}},Br.prototype=$r.prototype,Br.prototype.constructor=Br,Hr.prototype=zr($r.prototype),Hr.prototype.constructor=Hr,Fr.prototype=zr($r.prototype),Fr.prototype.constructor=Fr,Ur.prototype.clear=function(){this.__data__=Ar?Ar(null):{},this.size=0},Ur.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ur.prototype.get=function(t){var e=this.__data__;if(Ar){var n=e[t];return n===o?r:n}return It.call(e,t)?e[t]:r},Ur.prototype.has=function(t){var e=this.__data__;return Ar?e[t]!==r:It.call(e,t)},Ur.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ar&&e===r?o:e,this},Vr.prototype.clear=function(){this.__data__=[],this.size=0},Vr.prototype.delete=function(t){var e=this.__data__,r=tn(e,t);return!(r<0||(r==e.length-1?e.pop():Yt.call(e,r,1),--this.size,0))},Vr.prototype.get=function(t){var e=this.__data__,n=tn(e,t);return n<0?r:e[n][1]},Vr.prototype.has=function(t){return tn(this.__data__,t)>-1},Vr.prototype.set=function(t,e){var r=this.__data__,n=tn(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},Wr.prototype.clear=function(){this.size=0,this.__data__={hash:new Ur,map:new(Sr||Vr),string:new Ur}},Wr.prototype.delete=function(t){var e=li(this,t).delete(t);return this.size-=e?1:0,e},Wr.prototype.get=function(t){return li(this,t).get(t)},Wr.prototype.has=function(t){return li(this,t).has(t)},Wr.prototype.set=function(t,e){var r=li(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Zr.prototype.add=Zr.prototype.push=function(t){return this.__data__.set(t,o),this},Zr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.clear=function(){this.__data__=new Vr,this.size=0},qr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},qr.prototype.get=function(t){return this.__data__.get(t)},qr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Vr){var n=r.__data__;if(!Sr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Wr(n)}return r.set(t,e),this.size=r.size,this};var fn=Do(bn),pn=Do(wn,!0);function dn(t,e){var r=!0;return fn(t,(function(t,n,o){return r=!!e(t,n,o)})),r}function hn(t,e,n){for(var o=-1,i=t.length;++o<i;){var a=t[o],c=e(a);if(null!=c&&(u===r?c==c&&!cc(c):n(c,u)))var u=c,l=a}return l}function yn(t,e){var r=[];return fn(t,(function(t,n,o){e(t,n,o)&&r.push(t)})),r}function vn(t,e,r,n,o){var i=-1,a=t.length;for(r||(r=gi),o||(o=[]);++i<a;){var c=t[i];e>0&&r(c)?e>1?vn(c,e-1,r,n,o):Te(o,c):n||(o[o.length]=c)}return o}var gn=Io(),mn=Io(!0);function bn(t,e){return t&&gn(t,e,Ec)}function wn(t,e){return t&&mn(t,e,Ec)}function xn(t,e){return Me(e,(function(e){return Ka(t[e])}))}function On(t,e){for(var n=0,o=(e=bo(e,t)).length;null!=t&&n<o;)t=t[Ri(e[n++])];return n&&n==o?t:r}function Sn(t,e,r){var n=e(t);return Ua(t)?n:Te(n,r(t))}function _n(t){return null==t?t===r?"[object Undefined]":"[object Null]":te&&te in jt(t)?function(t){var e=It.call(t,te),n=t[te];try{t[te]=r;var o=!0}catch(t){}var i=Lt.call(t);return o&&(e?t[te]=n:delete t[te]),i}(t):function(t){return Lt.call(t)}(t)}function jn(t,e){return t>e}function Pn(t,e){return null!=t&&It.call(t,e)}function An(t,e){return null!=t&&e in jt(t)}function Mn(t,e,n){for(var o=n?Ee:ke,i=t[0].length,a=t.length,c=a,u=wt(a),l=1/0,s=[];c--;){var f=t[c];c&&e&&(f=Ce(f,Xe(e))),l=gr(f.length,l),u[c]=!n&&(e||i>=120&&f.length>=120)?new Zr(c&&f):r}f=t[0];var p=-1,d=u[0];t:for(;++p<i&&s.length<l;){var h=f[p],y=e?e(h):h;if(h=n||0!==h?h:0,!(d?Ge(d,y):o(s,y,n))){for(c=a;--c;){var v=u[c];if(!(v?Ge(v,y):o(t[c],y,n)))continue t}d&&d.push(y),s.push(h)}}return s}function kn(t,e,n){var o=null==(t=Ai(t,e=bo(e,t)))?t:t[Ri(Xi(e))];return null==o?r:Se(o,t,n)}function En(t){return tc(t)&&_n(t)==h}function Cn(t,e,n,o,i){return t===e||(null==t||null==e||!tc(t)&&!tc(e)?t!=t&&e!=e:function(t,e,n,o,i,a){var c=Ua(t),u=Ua(e),l=c?y:hi(t),s=u?y:hi(e),f=(l=l==h?S:l)==S,p=(s=s==h?S:s)==S,d=l==s;if(d&&qa(t)){if(!qa(e))return!1;c=!0,f=!1}if(d&&!f)return a||(a=new qr),c||uc(t)?ei(t,e,n,o,i,a):function(t,e,r,n,o,i,a){switch(r){case C:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case E:return!(t.byteLength!=e.byteLength||!i(new Ut(t),new Ut(e)));case v:case g:case O:return za(+t,+e);case m:return t.name==e.name&&t.message==e.message;case j:case A:return t==e+"";case x:var c=or;case P:var u=1&n;if(c||(c=cr),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;n|=2,a.set(t,e);var s=ei(c(t),c(e),n,o,i,a);return a.delete(t),s;case M:if(Rr)return Rr.call(t)==Rr.call(e)}return!1}(t,e,l,n,o,i,a);if(!(1&n)){var b=f&&It.call(t,"__wrapped__"),w=p&&It.call(e,"__wrapped__");if(b||w){var _=b?t.value():t,k=w?e.value():e;return a||(a=new qr),i(_,k,n,o,a)}}return!!d&&(a||(a=new qr),function(t,e,n,o,i,a){var c=1&n,u=ni(t),l=u.length,s=ni(e),f=s.length;if(l!=f&&!c)return!1;for(var p=l;p--;){var d=u[p];if(!(c?d in e:It.call(e,d)))return!1}var h=a.get(t),y=a.get(e);if(h&&y)return h==e&&y==t;var v=!0;a.set(t,e),a.set(e,t);for(var g=c;++p<l;){var m=t[d=u[p]],b=e[d];if(o)var w=c?o(b,m,d,e,t,a):o(m,b,d,t,e,a);if(!(w===r?m===b||i(m,b,n,o,a):w)){v=!1;break}g||(g="constructor"==d)}if(v&&!g){var x=t.constructor,O=e.constructor;x==O||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof O&&O instanceof O||(v=!1)}return a.delete(t),a.delete(e),v}(t,e,n,o,i,a))}(t,e,n,o,Cn,i))}function Tn(t,e,n,o){var i=n.length,a=i,c=!o;if(null==t)return!a;for(t=jt(t);i--;){var u=n[i];if(c&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<a;){var l=(u=n[i])[0],s=t[l],f=u[1];if(c&&u[2]){if(s===r&&!(l in t))return!1}else{var p=new qr;if(o)var d=o(s,f,l,t,e,p);if(!(d===r?Cn(f,s,3,o,p):d))return!1}}return!0}function Dn(t){return!(!Qa(t)||(e=t,Rt&&Rt in e))&&(Ka(t)?$t:ht).test(Li(t));var e}function In(t){return"function"==typeof t?t:null==t?ru:"object"==typeof t?Ua(t)?$n(t[0],t[1]):zn(t):fu(t)}function Nn(t){if(!Si(t))return yr(t);var e=[];for(var r in jt(t))It.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Rn(t){if(!Qa(t))return function(t){var e=[];if(null!=t)for(var r in jt(t))e.push(r);return e}(t);var e=Si(t),r=[];for(var n in t)("constructor"!=n||!e&&It.call(t,n))&&r.push(n);return r}function Ln(t,e){return t<e}function Bn(t,e){var r=-1,n=Wa(t)?wt(t.length):[];return fn(t,(function(t,o,i){n[++r]=e(t,o,i)})),n}function zn(t){var e=si(t);return 1==e.length&&e[0][2]?ji(e[0][0],e[0][1]):function(r){return r===t||Tn(r,t,e)}}function $n(t,e){return wi(t)&&_i(e)?ji(Ri(t),e):function(n){var o=jc(n,t);return o===r&&o===e?Pc(n,t):Cn(e,o,3)}}function Hn(t,e,n,o,i){t!==e&&gn(e,(function(a,c){if(i||(i=new qr),Qa(a))!function(t,e,n,o,i,a,c){var u=Mi(t,n),l=Mi(e,n),s=c.get(l);if(s)Jr(t,n,s);else{var f=a?a(u,l,n+"",t,e,c):r,p=f===r;if(p){var d=Ua(l),h=!d&&qa(l),y=!d&&!h&&uc(l);f=l,d||h||y?Ua(u)?f=u:Za(u)?f=ko(u):h?(p=!1,f=So(l,!0)):y?(p=!1,f=jo(l,!0)):f=[]:nc(l)||Fa(l)?(f=u,Fa(u)?f=vc(u):Qa(u)&&!Ka(u)||(f=vi(l))):p=!1}p&&(c.set(l,f),i(f,l,o,a,c),c.delete(l)),Jr(t,n,f)}}(t,e,c,n,Hn,o,i);else{var u=o?o(Mi(t,c),a,c+"",t,e,i):r;u===r&&(u=a),Jr(t,c,u)}}),Cc)}function Fn(t,e){var n=t.length;if(n)return mi(e+=e<0?n:0,n)?t[e]:r}function Un(t,e,r){e=e.length?Ce(e,(function(t){return Ua(t)?function(e){return On(e,1===t.length?t[0]:t)}:t})):[ru];var n=-1;e=Ce(e,Xe(ui()));var o=Bn(t,(function(t,r,o){var i=Ce(e,(function(e){return e(t)}));return{criteria:i,index:++n,value:t}}));return function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}(o,(function(t,e){return function(t,e,r){for(var n=-1,o=t.criteria,i=e.criteria,a=o.length,c=r.length;++n<a;){var u=Po(o[n],i[n]);if(u)return n>=c?u:u*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}))}function Vn(t,e,r){for(var n=-1,o=e.length,i={};++n<o;){var a=e[n],c=On(t,a);r(c,a)&&Jn(i,bo(a,t),c)}return i}function Wn(t,e,r,n){var o=n?$e:ze,i=-1,a=e.length,c=t;for(t===e&&(e=ko(e)),r&&(c=Ce(t,Xe(r)));++i<a;)for(var u=0,l=e[i],s=r?r(l):l;(u=o(c,s,u,n))>-1;)c!==t&&Yt.call(c,u,1),Yt.call(t,u,1);return t}function Zn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var o=e[r];if(r==n||o!==i){var i=o;mi(o)?Yt.call(t,o,1):so(t,o)}}return t}function qn(t,e){return t+ye(wr()*(e-t+1))}function Yn(t,e){var r="";if(!t||e<1||e>s)return r;do{e%2&&(r+=t),(e=ye(e/2))&&(t+=t)}while(e);return r}function Xn(t,e){return Ci(Pi(t,e,ru),t+"")}function Kn(t){return Xr(zc(t))}function Gn(t,e){var r=zc(t);return Ii(r,an(e,0,r.length))}function Jn(t,e,n,o){if(!Qa(t))return t;for(var i=-1,a=(e=bo(e,t)).length,c=a-1,u=t;null!=u&&++i<a;){var l=Ri(e[i]),s=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(i!=c){var f=u[l];(s=o?o(f,l,u):r)===r&&(s=Qa(f)?f:mi(e[i+1])?[]:{})}Qr(u,l,s),u=u[l]}return t}var Qn=Mr?function(t,e){return Mr.set(t,e),t}:ru,to=ae?function(t,e){return ae(t,"toString",{configurable:!0,enumerable:!1,value:Qc(e),writable:!0})}:ru;function eo(t){return Ii(zc(t))}function ro(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=wt(o);++n<o;)i[n]=t[n+e];return i}function no(t,e){var r;return fn(t,(function(t,n,o){return!(r=e(t,n,o))})),!!r}function oo(t,e,r){var n=0,o=null==t?n:t.length;if("number"==typeof e&&e==e&&o<=2147483647){for(;n<o;){var i=n+o>>>1,a=t[i];null!==a&&!cc(a)&&(r?a<=e:a<e)?n=i+1:o=i}return o}return io(t,e,ru,r)}function io(t,e,n,o){var i=0,a=null==t?0:t.length;if(0===a)return 0;for(var c=(e=n(e))!=e,u=null===e,l=cc(e),s=e===r;i<a;){var f=ye((i+a)/2),p=n(t[f]),d=p!==r,h=null===p,y=p==p,v=cc(p);if(c)var g=o||y;else g=s?y&&(o||d):u?y&&d&&(o||!h):l?y&&d&&!h&&(o||!v):!h&&!v&&(o?p<=e:p<e);g?i=f+1:a=f}return gr(a,4294967294)}function ao(t,e){for(var r=-1,n=t.length,o=0,i=[];++r<n;){var a=t[r],c=e?e(a):a;if(!r||!za(c,u)){var u=c;i[o++]=0===a?0:a}}return i}function co(t){return"number"==typeof t?t:cc(t)?f:+t}function uo(t){if("string"==typeof t)return t;if(Ua(t))return Ce(t,uo)+"";if(cc(t))return Lr?Lr.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function lo(t,e,r){var n=-1,o=ke,i=t.length,a=!0,c=[],u=c;if(r)a=!1,o=Ee;else if(i>=200){var l=e?null:Xo(t);if(l)return cr(l);a=!1,o=Ge,u=new Zr}else u=e?[]:c;t:for(;++n<i;){var s=t[n],f=e?e(s):s;if(s=r||0!==s?s:0,a&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue t;e&&u.push(f),c.push(s)}else o(u,f,r)||(u!==c&&u.push(f),c.push(s))}return c}function so(t,e){return null==(t=Ai(t,e=bo(e,t)))||delete t[Ri(Xi(e))]}function fo(t,e,r,n){return Jn(t,e,r(On(t,e)),n)}function po(t,e,r,n){for(var o=t.length,i=n?o:-1;(n?i--:++i<o)&&e(t[i],i,t););return r?ro(t,n?0:i,n?i+1:o):ro(t,n?i+1:0,n?o:i)}function ho(t,e){var r=t;return r instanceof Fr&&(r=r.value()),De(e,(function(t,e){return e.func.apply(e.thisArg,Te([t],e.args))}),r)}function yo(t,e,r){var n=t.length;if(n<2)return n?lo(t[0]):[];for(var o=-1,i=wt(n);++o<n;)for(var a=t[o],c=-1;++c<n;)c!=o&&(i[o]=sn(i[o]||a,t[c],e,r));return lo(vn(i,1),e,r)}function vo(t,e,n){for(var o=-1,i=t.length,a=e.length,c={};++o<i;){var u=o<a?e[o]:r;n(c,t[o],u)}return c}function go(t){return Za(t)?t:[]}function mo(t){return"function"==typeof t?t:ru}function bo(t,e){return Ua(t)?t:wi(t,e)?[t]:Ni(gc(t))}var wo=Xn;function xo(t,e,n){var o=t.length;return n=n===r?o:n,!e&&n>=o?t:ro(t,e,n)}var Oo=le||function(t){return fe.clearTimeout(t)};function So(t,e){if(e)return t.slice();var r=t.length,n=Vt?Vt(r):new t.constructor(r);return t.copy(n),n}function _o(t){var e=new t.constructor(t.byteLength);return new Ut(e).set(new Ut(t)),e}function jo(t,e){var r=e?_o(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function Po(t,e){if(t!==e){var n=t!==r,o=null===t,i=t==t,a=cc(t),c=e!==r,u=null===e,l=e==e,s=cc(e);if(!u&&!s&&!a&&t>e||a&&c&&l&&!u&&!s||o&&c&&l||!n&&l||!i)return 1;if(!o&&!a&&!s&&t<e||s&&n&&i&&!o&&!a||u&&n&&i||!c&&i||!l)return-1}return 0}function Ao(t,e,r,n){for(var o=-1,i=t.length,a=r.length,c=-1,u=e.length,l=vr(i-a,0),s=wt(u+l),f=!n;++c<u;)s[c]=e[c];for(;++o<a;)(f||o<i)&&(s[r[o]]=t[o]);for(;l--;)s[c++]=t[o++];return s}function Mo(t,e,r,n){for(var o=-1,i=t.length,a=-1,c=r.length,u=-1,l=e.length,s=vr(i-c,0),f=wt(s+l),p=!n;++o<s;)f[o]=t[o];for(var d=o;++u<l;)f[d+u]=e[u];for(;++a<c;)(p||o<i)&&(f[d+r[a]]=t[o++]);return f}function ko(t,e){var r=-1,n=t.length;for(e||(e=wt(n));++r<n;)e[r]=t[r];return e}function Eo(t,e,n,o){var i=!n;n||(n={});for(var a=-1,c=e.length;++a<c;){var u=e[a],l=o?o(n[u],t[u],u,n,t):r;l===r&&(l=t[u]),i?nn(n,u,l):Qr(n,u,l)}return n}function Co(t,e){return function(r,n){var o=Ua(r)?_e:en,i=e?e():{};return o(r,t,ui(n,2),i)}}function To(t){return Xn((function(e,n){var o=-1,i=n.length,a=i>1?n[i-1]:r,c=i>2?n[2]:r;for(a=t.length>3&&"function"==typeof a?(i--,a):r,c&&bi(n[0],n[1],c)&&(a=i<3?r:a,i=1),e=jt(e);++o<i;){var u=n[o];u&&t(e,u,o,a)}return e}))}function Do(t,e){return function(r,n){if(null==r)return r;if(!Wa(r))return t(r,n);for(var o=r.length,i=e?o:-1,a=jt(r);(e?i--:++i<o)&&!1!==n(a[i],i,a););return r}}function Io(t){return function(e,r,n){for(var o=-1,i=jt(e),a=n(e),c=a.length;c--;){var u=a[t?c:++o];if(!1===r(i[u],u,i))break}return e}}function No(t){return function(e){var n=nr(e=gc(e))?sr(e):r,o=n?n[0]:e.charAt(0),i=n?xo(n,1).join(""):e.slice(1);return o[t]()+i}}function Ro(t){return function(e){return De(Kc(Fc(e).replace(Kt,"")),t,"")}}function Lo(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=zr(t.prototype),n=t.apply(r,e);return Qa(n)?n:r}}function Bo(t){return function(e,n,o){var i=jt(e);if(!Wa(e)){var a=ui(n,3);e=Ec(e),n=function(t){return a(i[t],t,i)}}var c=t(e,n,o);return c>-1?i[a?e[c]:c]:r}}function zo(t){return ri((function(e){var o=e.length,i=o,a=Hr.prototype.thru;for(t&&e.reverse();i--;){var c=e[i];if("function"!=typeof c)throw new Mt(n);if(a&&!u&&"wrapper"==ai(c))var u=new Hr([],!0)}for(i=u?i:o;++i<o;){var l=ai(c=e[i]),s="wrapper"==l?ii(c):r;u=s&&xi(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?u[ai(s[0])].apply(u,s[3]):1==c.length&&xi(c)?u[l]():u.thru(c)}return function(){var t=arguments,r=t[0];if(u&&1==t.length&&Ua(r))return u.plant(r).value();for(var n=0,i=o?e[n].apply(this,t):r;++n<o;)i=e[n].call(this,i);return i}}))}function $o(t,e,n,o,i,a,u,l,s,f){var p=e&c,d=1&e,h=2&e,y=24&e,v=512&e,g=h?r:Lo(t);return function c(){for(var m=arguments.length,b=wt(m),w=m;w--;)b[w]=arguments[w];if(y)var x=ci(c),O=function(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}(b,x);if(o&&(b=Ao(b,o,i,y)),a&&(b=Mo(b,a,u,y)),m-=O,y&&m<f){var S=ar(b,x);return qo(t,e,$o,c.placeholder,n,b,S,l,s,f-m)}var _=d?n:this,j=h?_[t]:t;return m=b.length,l?b=function(t,e){for(var n=t.length,o=gr(e.length,n),i=ko(t);o--;){var a=e[o];t[o]=mi(a,n)?i[a]:r}return t}(b,l):v&&m>1&&b.reverse(),p&&s<m&&(b.length=s),this&&this!==fe&&this instanceof c&&(j=g||Lo(j)),j.apply(_,b)}}function Ho(t,e){return function(r,n){return function(t,e,r,n){return bn(t,(function(t,o,i){e(n,r(t),o,i)})),n}(r,t,e(n),{})}}function Fo(t,e){return function(n,o){var i;if(n===r&&o===r)return e;if(n!==r&&(i=n),o!==r){if(i===r)return o;"string"==typeof n||"string"==typeof o?(n=uo(n),o=uo(o)):(n=co(n),o=co(o)),i=t(n,o)}return i}}function Uo(t){return ri((function(e){return e=Ce(e,Xe(ui())),Xn((function(r){var n=this;return t(e,(function(t){return Se(t,n,r)}))}))}))}function Vo(t,e){var n=(e=e===r?" ":uo(e)).length;if(n<2)return n?Yn(e,t):e;var o=Yn(e,de(t/lr(e)));return nr(e)?xo(sr(o),0,t).join(""):o.slice(0,t)}function Wo(t){return function(e,n,o){return o&&"number"!=typeof o&&bi(e,n,o)&&(n=o=r),e=pc(e),n===r?(n=e,e=0):n=pc(n),function(t,e,r,n){for(var o=-1,i=vr(de((e-t)/(r||1)),0),a=wt(i);i--;)a[n?i:++o]=t,t+=r;return a}(e,n,o=o===r?e<n?1:-1:pc(o),t)}}function Zo(t){return function(e,r){return"string"==typeof e&&"string"==typeof r||(e=yc(e),r=yc(r)),t(e,r)}}function qo(t,e,n,o,i,c,u,l,s,f){var p=8&e;e|=p?a:64,4&(e&=~(p?64:a))||(e&=-4);var d=[t,e,i,p?c:r,p?u:r,p?r:c,p?r:u,l,s,f],h=n.apply(r,d);return xi(t)&&ki(h,d),h.placeholder=o,Ti(h,t,e)}function Yo(t){var e=_t[t];return function(t,r){if(t=yc(t),(r=null==r?0:gr(dc(r),292))&&Ve(t)){var n=(gc(t)+"e").split("e");return+((n=(gc(e(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}var Xo=jr&&1/cr(new jr([,-0]))[1]==l?function(t){return new jr(t)}:cu;function Ko(t){return function(e){var r=hi(e);return r==x?or(e):r==P?ur(e):function(t,e){return Ce(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Go(t,e,o,l,s,f,p,d){var h=2&e;if(!h&&"function"!=typeof t)throw new Mt(n);var y=l?l.length:0;if(y||(e&=-97,l=s=r),p=p===r?p:vr(dc(p),0),d=d===r?d:dc(d),y-=s?s.length:0,64&e){var v=l,g=s;l=s=r}var m=h?r:ii(t),b=[t,e,o,l,s,v,g,f,p,d];if(m&&function(t,e){var r=t[1],n=e[1],o=r|n,a=o<131,l=n==c&&8==r||n==c&&r==u&&t[7].length<=e[8]||384==n&&e[7].length<=e[8]&&8==r;if(!a&&!l)return t;1&n&&(t[2]=e[2],o|=1&r?0:4);var s=e[3];if(s){var f=t[3];t[3]=f?Ao(f,s,e[4]):s,t[4]=f?ar(t[3],i):e[4]}(s=e[5])&&(f=t[5],t[5]=f?Mo(f,s,e[6]):s,t[6]=f?ar(t[5],i):e[6]),(s=e[7])&&(t[7]=s),n&c&&(t[8]=null==t[8]?e[8]:gr(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o}(b,m),t=b[0],e=b[1],o=b[2],l=b[3],s=b[4],!(d=b[9]=b[9]===r?h?0:t.length:vr(b[9]-y,0))&&24&e&&(e&=-25),e&&1!=e)w=8==e||16==e?function(t,e,n){var o=Lo(t);return function i(){for(var a=arguments.length,c=wt(a),u=a,l=ci(i);u--;)c[u]=arguments[u];var s=a<3&&c[0]!==l&&c[a-1]!==l?[]:ar(c,l);return(a-=s.length)<n?qo(t,e,$o,i.placeholder,r,c,s,r,r,n-a):Se(this&&this!==fe&&this instanceof i?o:t,this,c)}}(t,e,d):e!=a&&33!=e||s.length?$o.apply(r,b):function(t,e,r,n){var o=1&e,i=Lo(t);return function e(){for(var a=-1,c=arguments.length,u=-1,l=n.length,s=wt(l+c),f=this&&this!==fe&&this instanceof e?i:t;++u<l;)s[u]=n[u];for(;c--;)s[u++]=arguments[++a];return Se(f,o?r:this,s)}}(t,e,o,l);else var w=function(t,e,r){var n=1&e,o=Lo(t);return function e(){return(this&&this!==fe&&this instanceof e?o:t).apply(n?r:this,arguments)}}(t,e,o);return Ti((m?Qn:ki)(w,b),t,e)}function Jo(t,e,n,o){return t===r||za(t,Ct[n])&&!It.call(o,n)?e:t}function Qo(t,e,n,o,i,a){return Qa(t)&&Qa(e)&&(a.set(e,t),Hn(t,e,r,Qo,a),a.delete(e)),t}function ti(t){return nc(t)?r:t}function ei(t,e,n,o,i,a){var c=1&n,u=t.length,l=e.length;if(u!=l&&!(c&&l>u))return!1;var s=a.get(t),f=a.get(e);if(s&&f)return s==e&&f==t;var p=-1,d=!0,h=2&n?new Zr:r;for(a.set(t,e),a.set(e,t);++p<u;){var y=t[p],v=e[p];if(o)var g=c?o(v,y,p,e,t,a):o(y,v,p,t,e,a);if(g!==r){if(g)continue;d=!1;break}if(h){if(!Ne(e,(function(t,e){if(!Ge(h,e)&&(y===t||i(y,t,n,o,a)))return h.push(e)}))){d=!1;break}}else if(y!==v&&!i(y,v,n,o,a)){d=!1;break}}return a.delete(t),a.delete(e),d}function ri(t){return Ci(Pi(t,r,Vi),t+"")}function ni(t){return Sn(t,Ec,pi)}function oi(t){return Sn(t,Cc,di)}var ii=Mr?function(t){return Mr.get(t)}:cu;function ai(t){for(var e=t.name+"",r=kr[e],n=It.call(kr,e)?r.length:0;n--;){var o=r[n],i=o.func;if(null==i||i==t)return o.name}return e}function ci(t){return(It.call(Br,"placeholder")?Br:t).placeholder}function ui(){var t=Br.iteratee||nu;return t=t===nu?In:t,arguments.length?t(arguments[0],arguments[1]):t}function li(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function si(t){for(var e=Ec(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,_i(o)]}return e}function fi(t,e){var n=function(t,e){return null==t?r:t[e]}(t,e);return Dn(n)?n:r}var pi=ve?function(t){return null==t?[]:(t=jt(t),Me(ve(t),(function(e){return qt.call(t,e)})))}:hu,di=ve?function(t){for(var e=[];t;)Te(e,pi(t)),t=Wt(t);return e}:hu,hi=_n;function yi(t,e,r){for(var n=-1,o=(e=bo(e,t)).length,i=!1;++n<o;){var a=Ri(e[n]);if(!(i=null!=t&&r(t,a)))break;t=t[a]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&Ja(o)&&mi(a,o)&&(Ua(t)||Fa(t))}function vi(t){return"function"!=typeof t.constructor||Si(t)?{}:zr(Wt(t))}function gi(t){return Ua(t)||Fa(t)||!!(Xt&&t&&t[Xt])}function mi(t,e){var r=typeof t;return!!(e=null==e?s:e)&&("number"==r||"symbol"!=r&&vt.test(t))&&t>-1&&t%1==0&&t<e}function bi(t,e,r){if(!Qa(r))return!1;var n=typeof e;return!!("number"==n?Wa(r)&&mi(e,r.length):"string"==n&&e in r)&&za(r[e],t)}function wi(t,e){if(Ua(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!cc(t))||J.test(t)||!G.test(t)||null!=e&&t in jt(e)}function xi(t){var e=ai(t),r=Br[e];if("function"!=typeof r||!(e in Fr.prototype))return!1;if(t===r)return!0;var n=ii(r);return!!n&&t===n[0]}(Or&&hi(new Or(new ArrayBuffer(1)))!=C||Sr&&hi(new Sr)!=x||_r&&hi(_r.resolve())!=_||jr&&hi(new jr)!=P||Pr&&hi(new Pr)!=k)&&(hi=function(t){var e=_n(t),n=e==S?t.constructor:r,o=n?Li(n):"";if(o)switch(o){case Er:return C;case Cr:return x;case Tr:return _;case Dr:return P;case Ir:return k}return e});var Oi=Tt?Ka:yu;function Si(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ct)}function _i(t){return t==t&&!Qa(t)}function ji(t,e){return function(n){return null!=n&&n[t]===e&&(e!==r||t in jt(n))}}function Pi(t,e,n){return e=vr(e===r?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=vr(r.length-e,0),a=wt(i);++o<i;)a[o]=r[e+o];o=-1;for(var c=wt(e+1);++o<e;)c[o]=r[o];return c[e]=n(a),Se(t,this,c)}}function Ai(t,e){return e.length<2?t:On(t,ro(e,0,-1))}function Mi(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var ki=Di(Qn),Ei=pe||function(t,e){return fe.setTimeout(t,e)},Ci=Di(to);function Ti(t,e,r){var n=e+"";return Ci(t,function(t,e){var r=e.length;if(!r)return t;var n=r-1;return e[n]=(r>1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(ot,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return je(d,(function(r){var n="_."+r[0];e&r[1]&&!ke(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(it);return e?e[1].split(at):[]}(n),r)))}function Di(t){var e=0,n=0;return function(){var o=mr(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function Ii(t,e){var n=-1,o=t.length,i=o-1;for(e=e===r?o:e;++n<e;){var a=qn(n,i),c=t[a];t[a]=t[n],t[n]=c}return t.length=e,t}var Ni=function(t){var e=Da(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Q,(function(t,r,n,o){e.push(n?o.replace(lt,"$1"):r||t)})),e}));function Ri(t){if("string"==typeof t||cc(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Li(t){if(null!=t){try{return Dt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Bi(t){if(t instanceof Fr)return t.clone();var e=new Hr(t.__wrapped__,t.__chain__);return e.__actions__=ko(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var zi=Xn((function(t,e){return Za(t)?sn(t,vn(e,1,Za,!0)):[]})),$i=Xn((function(t,e){var n=Xi(e);return Za(n)&&(n=r),Za(t)?sn(t,vn(e,1,Za,!0),ui(n,2)):[]})),Hi=Xn((function(t,e){var n=Xi(e);return Za(n)&&(n=r),Za(t)?sn(t,vn(e,1,Za,!0),r,n):[]}));function Fi(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=null==r?0:dc(r);return o<0&&(o=vr(n+o,0)),Be(t,ui(e,3),o)}function Ui(t,e,n){var o=null==t?0:t.length;if(!o)return-1;var i=o-1;return n!==r&&(i=dc(n),i=n<0?vr(o+i,0):gr(i,o-1)),Be(t,ui(e,3),i,!0)}function Vi(t){return null!=t&&t.length?vn(t,1):[]}function Wi(t){return t&&t.length?t[0]:r}var Zi=Xn((function(t){var e=Ce(t,go);return e.length&&e[0]===t[0]?Mn(e):[]})),qi=Xn((function(t){var e=Xi(t),n=Ce(t,go);return e===Xi(n)?e=r:n.pop(),n.length&&n[0]===t[0]?Mn(n,ui(e,2)):[]})),Yi=Xn((function(t){var e=Xi(t),n=Ce(t,go);return(e="function"==typeof e?e:r)&&n.pop(),n.length&&n[0]===t[0]?Mn(n,r,e):[]}));function Xi(t){var e=null==t?0:t.length;return e?t[e-1]:r}var Ki=Xn(Gi);function Gi(t,e){return t&&t.length&&e&&e.length?Wn(t,e):t}var Ji=ri((function(t,e){var r=null==t?0:t.length,n=on(t,e);return Zn(t,Ce(e,(function(t){return mi(t,r)?+t:t})).sort(Po)),n}));function Qi(t){return null==t?t:xr.call(t)}var ta=Xn((function(t){return lo(vn(t,1,Za,!0))})),ea=Xn((function(t){var e=Xi(t);return Za(e)&&(e=r),lo(vn(t,1,Za,!0),ui(e,2))})),ra=Xn((function(t){var e=Xi(t);return e="function"==typeof e?e:r,lo(vn(t,1,Za,!0),r,e)}));function na(t){if(!t||!t.length)return[];var e=0;return t=Me(t,(function(t){if(Za(t))return e=vr(t.length,e),!0})),qe(e,(function(e){return Ce(t,Ue(e))}))}function oa(t,e){if(!t||!t.length)return[];var n=na(t);return null==e?n:Ce(n,(function(t){return Se(e,r,t)}))}var ia=Xn((function(t,e){return Za(t)?sn(t,e):[]})),aa=Xn((function(t){return yo(Me(t,Za))})),ca=Xn((function(t){var e=Xi(t);return Za(e)&&(e=r),yo(Me(t,Za),ui(e,2))})),ua=Xn((function(t){var e=Xi(t);return e="function"==typeof e?e:r,yo(Me(t,Za),r,e)})),la=Xn(na),sa=Xn((function(t){var e=t.length,n=e>1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,oa(t,n)}));function fa(t){var e=Br(t);return e.__chain__=!0,e}function pa(t,e){return e(t)}var da=ri((function(t){var e=t.length,n=e?t[0]:0,o=this.__wrapped__,i=function(e){return on(e,t)};return!(e>1||this.__actions__.length)&&o instanceof Fr&&mi(n)?((o=o.slice(n,+n+(e?1:0))).__actions__.push({func:pa,args:[i],thisArg:r}),new Hr(o,this.__chain__).thru((function(t){return e&&!t.length&&t.push(r),t}))):this.thru(i)})),ha=Co((function(t,e,r){It.call(t,r)?++t[r]:nn(t,r,1)})),ya=Bo(Fi),va=Bo(Ui);function ga(t,e){return(Ua(t)?je:fn)(t,ui(e,3))}function ma(t,e){return(Ua(t)?Pe:pn)(t,ui(e,3))}var ba=Co((function(t,e,r){It.call(t,r)?t[r].push(e):nn(t,r,[e])})),wa=Xn((function(t,e,r){var n=-1,o="function"==typeof e,i=Wa(t)?wt(t.length):[];return fn(t,(function(t){i[++n]=o?Se(e,t,r):kn(t,e,r)})),i})),xa=Co((function(t,e,r){nn(t,r,e)}));function Oa(t,e){return(Ua(t)?Ce:Bn)(t,ui(e,3))}var Sa=Co((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),_a=Xn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&bi(t,e[0],e[1])?e=[]:r>2&&bi(e[0],e[1],e[2])&&(e=[e[0]]),Un(t,vn(e,1),[])})),ja=se||function(){return fe.Date.now()};function Pa(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Go(t,c,r,r,r,r,e)}function Aa(t,e){var o;if("function"!=typeof e)throw new Mt(n);return t=dc(t),function(){return--t>0&&(o=e.apply(this,arguments)),t<=1&&(e=r),o}}var Ma=Xn((function(t,e,r){var n=1;if(r.length){var o=ar(r,ci(Ma));n|=a}return Go(t,n,e,r,o)})),ka=Xn((function(t,e,r){var n=3;if(r.length){var o=ar(r,ci(ka));n|=a}return Go(e,n,t,r,o)}));function Ea(t,e,o){var i,a,c,u,l,s,f=0,p=!1,d=!1,h=!0;if("function"!=typeof t)throw new Mt(n);function y(e){var n=i,o=a;return i=a=r,f=e,u=t.apply(o,n)}function v(t){var n=t-s;return s===r||n>=e||n<0||d&&t-f>=c}function g(){var t=ja();if(v(t))return m(t);l=Ei(g,function(t){var r=e-(t-s);return d?gr(r,c-(t-f)):r}(t))}function m(t){return l=r,h&&i?y(t):(i=a=r,u)}function b(){var t=ja(),n=v(t);if(i=arguments,a=this,s=t,n){if(l===r)return function(t){return f=t,l=Ei(g,e),p?y(t):u}(s);if(d)return Oo(l),l=Ei(g,e),y(s)}return l===r&&(l=Ei(g,e)),u}return e=yc(e)||0,Qa(o)&&(p=!!o.leading,c=(d="maxWait"in o)?vr(yc(o.maxWait)||0,e):c,h="trailing"in o?!!o.trailing:h),b.cancel=function(){l!==r&&Oo(l),f=0,i=s=a=l=r},b.flush=function(){return l===r?u:m(ja())},b}var Ca=Xn((function(t,e){return ln(t,1,e)})),Ta=Xn((function(t,e,r){return ln(t,yc(e)||0,r)}));function Da(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Mt(n);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(Da.Cache||Wr),r}function Ia(t){if("function"!=typeof t)throw new Mt(n);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Da.Cache=Wr;var Na=wo((function(t,e){var r=(e=1==e.length&&Ua(e[0])?Ce(e[0],Xe(ui())):Ce(vn(e,1),Xe(ui()))).length;return Xn((function(n){for(var o=-1,i=gr(n.length,r);++o<i;)n[o]=e[o].call(this,n[o]);return Se(t,this,n)}))})),Ra=Xn((function(t,e){var n=ar(e,ci(Ra));return Go(t,a,r,e,n)})),La=Xn((function(t,e){var n=ar(e,ci(La));return Go(t,64,r,e,n)})),Ba=ri((function(t,e){return Go(t,u,r,r,r,e)}));function za(t,e){return t===e||t!=t&&e!=e}var $a=Zo(jn),Ha=Zo((function(t,e){return t>=e})),Fa=En(function(){return arguments}())?En:function(t){return tc(t)&&It.call(t,"callee")&&!qt.call(t,"callee")},Ua=wt.isArray,Va=ge?Xe(ge):function(t){return tc(t)&&_n(t)==E};function Wa(t){return null!=t&&Ja(t.length)&&!Ka(t)}function Za(t){return tc(t)&&Wa(t)}var qa=Re||yu,Ya=me?Xe(me):function(t){return tc(t)&&_n(t)==g};function Xa(t){if(!tc(t))return!1;var e=_n(t);return e==m||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!nc(t)}function Ka(t){if(!Qa(t))return!1;var e=_n(t);return e==b||e==w||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ga(t){return"number"==typeof t&&t==dc(t)}function Ja(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function Qa(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function tc(t){return null!=t&&"object"==typeof t}var ec=be?Xe(be):function(t){return tc(t)&&hi(t)==x};function rc(t){return"number"==typeof t||tc(t)&&_n(t)==O}function nc(t){if(!tc(t)||_n(t)!=S)return!1;var e=Wt(t);if(null===e)return!0;var r=It.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Dt.call(r)==Bt}var oc=we?Xe(we):function(t){return tc(t)&&_n(t)==j},ic=xe?Xe(xe):function(t){return tc(t)&&hi(t)==P};function ac(t){return"string"==typeof t||!Ua(t)&&tc(t)&&_n(t)==A}function cc(t){return"symbol"==typeof t||tc(t)&&_n(t)==M}var uc=Oe?Xe(Oe):function(t){return tc(t)&&Ja(t.length)&&!!oe[_n(t)]},lc=Zo(Ln),sc=Zo((function(t,e){return t<=e}));function fc(t){if(!t)return[];if(Wa(t))return ac(t)?sr(t):ko(t);if(Jt&&t[Jt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Jt]());var e=hi(t);return(e==x?or:e==P?cr:zc)(t)}function pc(t){return t?(t=yc(t))===l||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function dc(t){var e=pc(t),r=e%1;return e==e?r?e-r:e:0}function hc(t){return t?an(dc(t),0,p):0}function yc(t){if("number"==typeof t)return t;if(cc(t))return f;if(Qa(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Qa(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ye(t);var r=dt.test(t);return r||yt.test(t)?ue(t.slice(2),r?2:8):pt.test(t)?f:+t}function vc(t){return Eo(t,Cc(t))}function gc(t){return null==t?"":uo(t)}var mc=To((function(t,e){if(Si(e)||Wa(e))Eo(e,Ec(e),t);else for(var r in e)It.call(e,r)&&Qr(t,r,e[r])})),bc=To((function(t,e){Eo(e,Cc(e),t)})),wc=To((function(t,e,r,n){Eo(e,Cc(e),t,n)})),xc=To((function(t,e,r,n){Eo(e,Ec(e),t,n)})),Oc=ri(on),Sc=Xn((function(t,e){t=jt(t);var n=-1,o=e.length,i=o>2?e[2]:r;for(i&&bi(e[0],e[1],i)&&(o=1);++n<o;)for(var a=e[n],c=Cc(a),u=-1,l=c.length;++u<l;){var s=c[u],f=t[s];(f===r||za(f,Ct[s])&&!It.call(t,s))&&(t[s]=a[s])}return t})),_c=Xn((function(t){return t.push(r,Qo),Se(Dc,r,t)}));function jc(t,e,n){var o=null==t?r:On(t,e);return o===r?n:o}function Pc(t,e){return null!=t&&yi(t,e,An)}var Ac=Ho((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),t[e]=r}),Qc(ru)),Mc=Ho((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),It.call(t,e)?t[e].push(r):t[e]=[r]}),ui),kc=Xn(kn);function Ec(t){return Wa(t)?Yr(t):Nn(t)}function Cc(t){return Wa(t)?Yr(t,!0):Rn(t)}var Tc=To((function(t,e,r){Hn(t,e,r)})),Dc=To((function(t,e,r,n){Hn(t,e,r,n)})),Ic=ri((function(t,e){var r={};if(null==t)return r;var n=!1;e=Ce(e,(function(e){return e=bo(e,t),n||(n=e.length>1),e})),Eo(t,oi(t),r),n&&(r=cn(r,7,ti));for(var o=e.length;o--;)so(r,e[o]);return r})),Nc=ri((function(t,e){return null==t?{}:function(t,e){return Vn(t,e,(function(e,r){return Pc(t,r)}))}(t,e)}));function Rc(t,e){if(null==t)return{};var r=Ce(oi(t),(function(t){return[t]}));return e=ui(e),Vn(t,r,(function(t,r){return e(t,r[0])}))}var Lc=Ko(Ec),Bc=Ko(Cc);function zc(t){return null==t?[]:Ke(t,Ec(t))}var $c=Ro((function(t,e,r){return e=e.toLowerCase(),t+(r?Hc(e):e)}));function Hc(t){return Xc(gc(t).toLowerCase())}function Fc(t){return(t=gc(t))&&t.replace(gt,tr).replace(Gt,"")}var Uc=Ro((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Vc=Ro((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),Wc=No("toLowerCase"),Zc=Ro((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),qc=Ro((function(t,e,r){return t+(r?" ":"")+Xc(e)})),Yc=Ro((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Xc=No("toUpperCase");function Kc(t,e,n){return t=gc(t),(e=n?r:e)===r?function(t){return ee.test(t)}(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.match(ct)||[]}(t):t.match(e)||[]}var Gc=Xn((function(t,e){try{return Se(t,r,e)}catch(t){return Xa(t)?t:new Ot(t)}})),Jc=ri((function(t,e){return je(e,(function(e){e=Ri(e),nn(t,e,Ma(t[e],t))})),t}));function Qc(t){return function(){return t}}var tu=zo(),eu=zo(!0);function ru(t){return t}function nu(t){return In("function"==typeof t?t:cn(t,1))}var ou=Xn((function(t,e){return function(r){return kn(r,t,e)}})),iu=Xn((function(t,e){return function(r){return kn(t,r,e)}}));function au(t,e,r){var n=Ec(e),o=xn(e,n);null!=r||Qa(e)&&(o.length||!n.length)||(r=e,e=t,t=this,o=xn(e,Ec(e)));var i=!(Qa(r)&&"chain"in r&&!r.chain),a=Ka(t);return je(o,(function(r){var n=e[r];t[r]=n,a&&(t.prototype[r]=function(){var e=this.__chain__;if(i||e){var r=t(this.__wrapped__);return(r.__actions__=ko(this.__actions__)).push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,Te([this.value()],arguments))})})),t}function cu(){}var uu=Uo(Ce),lu=Uo(Ae),su=Uo(Ne);function fu(t){return wi(t)?Ue(Ri(t)):function(t){return function(e){return On(e,t)}}(t)}var pu=Wo(),du=Wo(!0);function hu(){return[]}function yu(){return!1}var vu,gu=Fo((function(t,e){return t+e}),0),mu=Yo("ceil"),bu=Fo((function(t,e){return t/e}),1),wu=Yo("floor"),xu=Fo((function(t,e){return t*e}),1),Ou=Yo("round"),Su=Fo((function(t,e){return t-e}),0);return Br.after=function(t,e){if("function"!=typeof e)throw new Mt(n);return t=dc(t),function(){if(--t<1)return e.apply(this,arguments)}},Br.ary=Pa,Br.assign=mc,Br.assignIn=bc,Br.assignInWith=wc,Br.assignWith=xc,Br.at=Oc,Br.before=Aa,Br.bind=Ma,Br.bindAll=Jc,Br.bindKey=ka,Br.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ua(t)?t:[t]},Br.chain=fa,Br.chunk=function(t,e,n){e=(n?bi(t,e,n):e===r)?1:vr(dc(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var i=0,a=0,c=wt(de(o/e));i<o;)c[a++]=ro(t,i,i+=e);return c},Br.compact=function(t){for(var e=-1,r=null==t?0:t.length,n=0,o=[];++e<r;){var i=t[e];i&&(o[n++]=i)}return o},Br.concat=function(){var t=arguments.length;if(!t)return[];for(var e=wt(t-1),r=arguments[0],n=t;n--;)e[n-1]=arguments[n];return Te(Ua(r)?ko(r):[r],vn(e,1))},Br.cond=function(t){var e=null==t?0:t.length,r=ui();return t=e?Ce(t,(function(t){if("function"!=typeof t[1])throw new Mt(n);return[r(t[0]),t[1]]})):[],Xn((function(r){for(var n=-1;++n<e;){var o=t[n];if(Se(o[0],this,r))return Se(o[1],this,r)}}))},Br.conforms=function(t){return function(t){var e=Ec(t);return function(r){return un(r,t,e)}}(cn(t,1))},Br.constant=Qc,Br.countBy=ha,Br.create=function(t,e){var r=zr(t);return null==e?r:rn(r,e)},Br.curry=function t(e,n,o){var i=Go(e,8,r,r,r,r,r,n=o?r:n);return i.placeholder=t.placeholder,i},Br.curryRight=function t(e,n,o){var i=Go(e,16,r,r,r,r,r,n=o?r:n);return i.placeholder=t.placeholder,i},Br.debounce=Ea,Br.defaults=Sc,Br.defaultsDeep=_c,Br.defer=Ca,Br.delay=Ta,Br.difference=zi,Br.differenceBy=$i,Br.differenceWith=Hi,Br.drop=function(t,e,n){var o=null==t?0:t.length;return o?ro(t,(e=n||e===r?1:dc(e))<0?0:e,o):[]},Br.dropRight=function(t,e,n){var o=null==t?0:t.length;return o?ro(t,0,(e=o-(e=n||e===r?1:dc(e)))<0?0:e):[]},Br.dropRightWhile=function(t,e){return t&&t.length?po(t,ui(e,3),!0,!0):[]},Br.dropWhile=function(t,e){return t&&t.length?po(t,ui(e,3),!0):[]},Br.fill=function(t,e,n,o){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&bi(t,e,n)&&(n=0,o=i),function(t,e,n,o){var i=t.length;for((n=dc(n))<0&&(n=-n>i?0:i+n),(o=o===r||o>i?i:dc(o))<0&&(o+=i),o=n>o?0:hc(o);n<o;)t[n++]=e;return t}(t,e,n,o)):[]},Br.filter=function(t,e){return(Ua(t)?Me:yn)(t,ui(e,3))},Br.flatMap=function(t,e){return vn(Oa(t,e),1)},Br.flatMapDeep=function(t,e){return vn(Oa(t,e),l)},Br.flatMapDepth=function(t,e,n){return n=n===r?1:dc(n),vn(Oa(t,e),n)},Br.flatten=Vi,Br.flattenDeep=function(t){return null!=t&&t.length?vn(t,l):[]},Br.flattenDepth=function(t,e){return null!=t&&t.length?vn(t,e=e===r?1:dc(e)):[]},Br.flip=function(t){return Go(t,512)},Br.flow=tu,Br.flowRight=eu,Br.fromPairs=function(t){for(var e=-1,r=null==t?0:t.length,n={};++e<r;){var o=t[e];n[o[0]]=o[1]}return n},Br.functions=function(t){return null==t?[]:xn(t,Ec(t))},Br.functionsIn=function(t){return null==t?[]:xn(t,Cc(t))},Br.groupBy=ba,Br.initial=function(t){return null!=t&&t.length?ro(t,0,-1):[]},Br.intersection=Zi,Br.intersectionBy=qi,Br.intersectionWith=Yi,Br.invert=Ac,Br.invertBy=Mc,Br.invokeMap=wa,Br.iteratee=nu,Br.keyBy=xa,Br.keys=Ec,Br.keysIn=Cc,Br.map=Oa,Br.mapKeys=function(t,e){var r={};return e=ui(e,3),bn(t,(function(t,n,o){nn(r,e(t,n,o),t)})),r},Br.mapValues=function(t,e){var r={};return e=ui(e,3),bn(t,(function(t,n,o){nn(r,n,e(t,n,o))})),r},Br.matches=function(t){return zn(cn(t,1))},Br.matchesProperty=function(t,e){return $n(t,cn(e,1))},Br.memoize=Da,Br.merge=Tc,Br.mergeWith=Dc,Br.method=ou,Br.methodOf=iu,Br.mixin=au,Br.negate=Ia,Br.nthArg=function(t){return t=dc(t),Xn((function(e){return Fn(e,t)}))},Br.omit=Ic,Br.omitBy=function(t,e){return Rc(t,Ia(ui(e)))},Br.once=function(t){return Aa(2,t)},Br.orderBy=function(t,e,n,o){return null==t?[]:(Ua(e)||(e=null==e?[]:[e]),Ua(n=o?r:n)||(n=null==n?[]:[n]),Un(t,e,n))},Br.over=uu,Br.overArgs=Na,Br.overEvery=lu,Br.overSome=su,Br.partial=Ra,Br.partialRight=La,Br.partition=Sa,Br.pick=Nc,Br.pickBy=Rc,Br.property=fu,Br.propertyOf=function(t){return function(e){return null==t?r:On(t,e)}},Br.pull=Ki,Br.pullAll=Gi,Br.pullAllBy=function(t,e,r){return t&&t.length&&e&&e.length?Wn(t,e,ui(r,2)):t},Br.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Wn(t,e,r,n):t},Br.pullAt=Ji,Br.range=pu,Br.rangeRight=du,Br.rearg=Ba,Br.reject=function(t,e){return(Ua(t)?Me:yn)(t,Ia(ui(e,3)))},Br.remove=function(t,e){var r=[];if(!t||!t.length)return r;var n=-1,o=[],i=t.length;for(e=ui(e,3);++n<i;){var a=t[n];e(a,n,t)&&(r.push(a),o.push(n))}return Zn(t,o),r},Br.rest=function(t,e){if("function"!=typeof t)throw new Mt(n);return Xn(t,e=e===r?e:dc(e))},Br.reverse=Qi,Br.sampleSize=function(t,e,n){return e=(n?bi(t,e,n):e===r)?1:dc(e),(Ua(t)?Kr:Gn)(t,e)},Br.set=function(t,e,r){return null==t?t:Jn(t,e,r)},Br.setWith=function(t,e,n,o){return o="function"==typeof o?o:r,null==t?t:Jn(t,e,n,o)},Br.shuffle=function(t){return(Ua(t)?Gr:eo)(t)},Br.slice=function(t,e,n){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&bi(t,e,n)?(e=0,n=o):(e=null==e?0:dc(e),n=n===r?o:dc(n)),ro(t,e,n)):[]},Br.sortBy=_a,Br.sortedUniq=function(t){return t&&t.length?ao(t):[]},Br.sortedUniqBy=function(t,e){return t&&t.length?ao(t,ui(e,2)):[]},Br.split=function(t,e,n){return n&&"number"!=typeof n&&bi(t,e,n)&&(e=n=r),(n=n===r?p:n>>>0)?(t=gc(t))&&("string"==typeof e||null!=e&&!oc(e))&&!(e=uo(e))&&nr(t)?xo(sr(t),0,n):t.split(e,n):[]},Br.spread=function(t,e){if("function"!=typeof t)throw new Mt(n);return e=null==e?0:vr(dc(e),0),Xn((function(r){var n=r[e],o=xo(r,0,e);return n&&Te(o,n),Se(t,this,o)}))},Br.tail=function(t){var e=null==t?0:t.length;return e?ro(t,1,e):[]},Br.take=function(t,e,n){return t&&t.length?ro(t,0,(e=n||e===r?1:dc(e))<0?0:e):[]},Br.takeRight=function(t,e,n){var o=null==t?0:t.length;return o?ro(t,(e=o-(e=n||e===r?1:dc(e)))<0?0:e,o):[]},Br.takeRightWhile=function(t,e){return t&&t.length?po(t,ui(e,3),!1,!0):[]},Br.takeWhile=function(t,e){return t&&t.length?po(t,ui(e,3)):[]},Br.tap=function(t,e){return e(t),t},Br.throttle=function(t,e,r){var o=!0,i=!0;if("function"!=typeof t)throw new Mt(n);return Qa(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),Ea(t,e,{leading:o,maxWait:e,trailing:i})},Br.thru=pa,Br.toArray=fc,Br.toPairs=Lc,Br.toPairsIn=Bc,Br.toPath=function(t){return Ua(t)?Ce(t,Ri):cc(t)?[t]:ko(Ni(gc(t)))},Br.toPlainObject=vc,Br.transform=function(t,e,r){var n=Ua(t),o=n||qa(t)||uc(t);if(e=ui(e,4),null==r){var i=t&&t.constructor;r=o?n?new i:[]:Qa(t)&&Ka(i)?zr(Wt(t)):{}}return(o?je:bn)(t,(function(t,n,o){return e(r,t,n,o)})),r},Br.unary=function(t){return Pa(t,1)},Br.union=ta,Br.unionBy=ea,Br.unionWith=ra,Br.uniq=function(t){return t&&t.length?lo(t):[]},Br.uniqBy=function(t,e){return t&&t.length?lo(t,ui(e,2)):[]},Br.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?lo(t,r,e):[]},Br.unset=function(t,e){return null==t||so(t,e)},Br.unzip=na,Br.unzipWith=oa,Br.update=function(t,e,r){return null==t?t:fo(t,e,mo(r))},Br.updateWith=function(t,e,n,o){return o="function"==typeof o?o:r,null==t?t:fo(t,e,mo(n),o)},Br.values=zc,Br.valuesIn=function(t){return null==t?[]:Ke(t,Cc(t))},Br.without=ia,Br.words=Kc,Br.wrap=function(t,e){return Ra(mo(e),t)},Br.xor=aa,Br.xorBy=ca,Br.xorWith=ua,Br.zip=la,Br.zipObject=function(t,e){return vo(t||[],e||[],Qr)},Br.zipObjectDeep=function(t,e){return vo(t||[],e||[],Jn)},Br.zipWith=sa,Br.entries=Lc,Br.entriesIn=Bc,Br.extend=bc,Br.extendWith=wc,au(Br,Br),Br.add=gu,Br.attempt=Gc,Br.camelCase=$c,Br.capitalize=Hc,Br.ceil=mu,Br.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=yc(n))==n?n:0),e!==r&&(e=(e=yc(e))==e?e:0),an(yc(t),e,n)},Br.clone=function(t){return cn(t,4)},Br.cloneDeep=function(t){return cn(t,5)},Br.cloneDeepWith=function(t,e){return cn(t,5,e="function"==typeof e?e:r)},Br.cloneWith=function(t,e){return cn(t,4,e="function"==typeof e?e:r)},Br.conformsTo=function(t,e){return null==e||un(t,e,Ec(e))},Br.deburr=Fc,Br.defaultTo=function(t,e){return null==t||t!=t?e:t},Br.divide=bu,Br.endsWith=function(t,e,n){t=gc(t),e=uo(e);var o=t.length,i=n=n===r?o:an(dc(n),0,o);return(n-=e.length)>=0&&t.slice(n,i)==e},Br.eq=za,Br.escape=function(t){return(t=gc(t))&&q.test(t)?t.replace(W,er):t},Br.escapeRegExp=function(t){return(t=gc(t))&&et.test(t)?t.replace(tt,"\\$&"):t},Br.every=function(t,e,n){var o=Ua(t)?Ae:dn;return n&&bi(t,e,n)&&(e=r),o(t,ui(e,3))},Br.find=ya,Br.findIndex=Fi,Br.findKey=function(t,e){return Le(t,ui(e,3),bn)},Br.findLast=va,Br.findLastIndex=Ui,Br.findLastKey=function(t,e){return Le(t,ui(e,3),wn)},Br.floor=wu,Br.forEach=ga,Br.forEachRight=ma,Br.forIn=function(t,e){return null==t?t:gn(t,ui(e,3),Cc)},Br.forInRight=function(t,e){return null==t?t:mn(t,ui(e,3),Cc)},Br.forOwn=function(t,e){return t&&bn(t,ui(e,3))},Br.forOwnRight=function(t,e){return t&&wn(t,ui(e,3))},Br.get=jc,Br.gt=$a,Br.gte=Ha,Br.has=function(t,e){return null!=t&&yi(t,e,Pn)},Br.hasIn=Pc,Br.head=Wi,Br.identity=ru,Br.includes=function(t,e,r,n){t=Wa(t)?t:zc(t),r=r&&!n?dc(r):0;var o=t.length;return r<0&&(r=vr(o+r,0)),ac(t)?r<=o&&t.indexOf(e,r)>-1:!!o&&ze(t,e,r)>-1},Br.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=null==r?0:dc(r);return o<0&&(o=vr(n+o,0)),ze(t,e,o)},Br.inRange=function(t,e,n){return e=pc(e),n===r?(n=e,e=0):n=pc(n),function(t,e,r){return t>=gr(e,r)&&t<vr(e,r)}(t=yc(t),e,n)},Br.invoke=kc,Br.isArguments=Fa,Br.isArray=Ua,Br.isArrayBuffer=Va,Br.isArrayLike=Wa,Br.isArrayLikeObject=Za,Br.isBoolean=function(t){return!0===t||!1===t||tc(t)&&_n(t)==v},Br.isBuffer=qa,Br.isDate=Ya,Br.isElement=function(t){return tc(t)&&1===t.nodeType&&!nc(t)},Br.isEmpty=function(t){if(null==t)return!0;if(Wa(t)&&(Ua(t)||"string"==typeof t||"function"==typeof t.splice||qa(t)||uc(t)||Fa(t)))return!t.length;var e=hi(t);if(e==x||e==P)return!t.size;if(Si(t))return!Nn(t).length;for(var r in t)if(It.call(t,r))return!1;return!0},Br.isEqual=function(t,e){return Cn(t,e)},Br.isEqualWith=function(t,e,n){var o=(n="function"==typeof n?n:r)?n(t,e):r;return o===r?Cn(t,e,r,n):!!o},Br.isError=Xa,Br.isFinite=function(t){return"number"==typeof t&&Ve(t)},Br.isFunction=Ka,Br.isInteger=Ga,Br.isLength=Ja,Br.isMap=ec,Br.isMatch=function(t,e){return t===e||Tn(t,e,si(e))},Br.isMatchWith=function(t,e,n){return n="function"==typeof n?n:r,Tn(t,e,si(e),n)},Br.isNaN=function(t){return rc(t)&&t!=+t},Br.isNative=function(t){if(Oi(t))throw new Ot("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dn(t)},Br.isNil=function(t){return null==t},Br.isNull=function(t){return null===t},Br.isNumber=rc,Br.isObject=Qa,Br.isObjectLike=tc,Br.isPlainObject=nc,Br.isRegExp=oc,Br.isSafeInteger=function(t){return Ga(t)&&t>=-9007199254740991&&t<=s},Br.isSet=ic,Br.isString=ac,Br.isSymbol=cc,Br.isTypedArray=uc,Br.isUndefined=function(t){return t===r},Br.isWeakMap=function(t){return tc(t)&&hi(t)==k},Br.isWeakSet=function(t){return tc(t)&&"[object WeakSet]"==_n(t)},Br.join=function(t,e){return null==t?"":pr.call(t,e)},Br.kebabCase=Uc,Br.last=Xi,Br.lastIndexOf=function(t,e,n){var o=null==t?0:t.length;if(!o)return-1;var i=o;return n!==r&&(i=(i=dc(n))<0?vr(o+i,0):gr(i,o-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,i):Be(t,He,i,!0)},Br.lowerCase=Vc,Br.lowerFirst=Wc,Br.lt=lc,Br.lte=sc,Br.max=function(t){return t&&t.length?hn(t,ru,jn):r},Br.maxBy=function(t,e){return t&&t.length?hn(t,ui(e,2),jn):r},Br.mean=function(t){return Fe(t,ru)},Br.meanBy=function(t,e){return Fe(t,ui(e,2))},Br.min=function(t){return t&&t.length?hn(t,ru,Ln):r},Br.minBy=function(t,e){return t&&t.length?hn(t,ui(e,2),Ln):r},Br.stubArray=hu,Br.stubFalse=yu,Br.stubObject=function(){return{}},Br.stubString=function(){return""},Br.stubTrue=function(){return!0},Br.multiply=xu,Br.nth=function(t,e){return t&&t.length?Fn(t,dc(e)):r},Br.noConflict=function(){return fe._===this&&(fe._=zt),this},Br.noop=cu,Br.now=ja,Br.pad=function(t,e,r){t=gc(t);var n=(e=dc(e))?lr(t):0;if(!e||n>=e)return t;var o=(e-n)/2;return Vo(ye(o),r)+t+Vo(de(o),r)},Br.padEnd=function(t,e,r){t=gc(t);var n=(e=dc(e))?lr(t):0;return e&&n<e?t+Vo(e-n,r):t},Br.padStart=function(t,e,r){t=gc(t);var n=(e=dc(e))?lr(t):0;return e&&n<e?Vo(e-n,r)+t:t},Br.parseInt=function(t,e,r){return r||null==e?e=0:e&&(e=+e),br(gc(t).replace(rt,""),e||0)},Br.random=function(t,e,n){if(n&&"boolean"!=typeof n&&bi(t,e,n)&&(e=n=r),n===r&&("boolean"==typeof e?(n=e,e=r):"boolean"==typeof t&&(n=t,t=r)),t===r&&e===r?(t=0,e=1):(t=pc(t),e===r?(e=t,t=0):e=pc(e)),t>e){var o=t;t=e,e=o}if(n||t%1||e%1){var i=wr();return gr(t+i*(e-t+ce("1e-"+((i+"").length-1))),e)}return qn(t,e)},Br.reduce=function(t,e,r){var n=Ua(t)?De:We,o=arguments.length<3;return n(t,ui(e,4),r,o,fn)},Br.reduceRight=function(t,e,r){var n=Ua(t)?Ie:We,o=arguments.length<3;return n(t,ui(e,4),r,o,pn)},Br.repeat=function(t,e,n){return e=(n?bi(t,e,n):e===r)?1:dc(e),Yn(gc(t),e)},Br.replace=function(){var t=arguments,e=gc(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Br.result=function(t,e,n){var o=-1,i=(e=bo(e,t)).length;for(i||(i=1,t=r);++o<i;){var a=null==t?r:t[Ri(e[o])];a===r&&(o=i,a=n),t=Ka(a)?a.call(t):a}return t},Br.round=Ou,Br.runInContext=t,Br.sample=function(t){return(Ua(t)?Xr:Kn)(t)},Br.size=function(t){if(null==t)return 0;if(Wa(t))return ac(t)?lr(t):t.length;var e=hi(t);return e==x||e==P?t.size:Nn(t).length},Br.snakeCase=Zc,Br.some=function(t,e,n){var o=Ua(t)?Ne:no;return n&&bi(t,e,n)&&(e=r),o(t,ui(e,3))},Br.sortedIndex=function(t,e){return oo(t,e)},Br.sortedIndexBy=function(t,e,r){return io(t,e,ui(r,2))},Br.sortedIndexOf=function(t,e){var r=null==t?0:t.length;if(r){var n=oo(t,e);if(n<r&&za(t[n],e))return n}return-1},Br.sortedLastIndex=function(t,e){return oo(t,e,!0)},Br.sortedLastIndexBy=function(t,e,r){return io(t,e,ui(r,2),!0)},Br.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var r=oo(t,e,!0)-1;if(za(t[r],e))return r}return-1},Br.startCase=qc,Br.startsWith=function(t,e,r){return t=gc(t),r=null==r?0:an(dc(r),0,t.length),e=uo(e),t.slice(r,r+e.length)==e},Br.subtract=Su,Br.sum=function(t){return t&&t.length?Ze(t,ru):0},Br.sumBy=function(t,e){return t&&t.length?Ze(t,ui(e,2)):0},Br.template=function(t,e,n){var o=Br.templateSettings;n&&bi(t,e,n)&&(e=r),t=gc(t),e=wc({},e,o,Jo);var i,a,c=wc({},e.imports,o.imports,Jo),u=Ec(c),l=Ke(c,u),s=0,f=e.interpolate||mt,p="__p += '",d=Pt((e.escape||mt).source+"|"+f.source+"|"+(f===K?st:mt).source+"|"+(e.evaluate||mt).source+"|$","g"),h="//# sourceURL="+(It.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ne+"]")+"\n";t.replace(d,(function(e,r,n,o,c,u){return n||(n=o),p+=t.slice(s,u).replace(bt,rr),r&&(i=!0,p+="' +\n__e("+r+") +\n'"),c&&(a=!0,p+="';\n"+c+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),s=u+e.length,e})),p+="';\n";var y=It.call(e,"variable")&&e.variable;if(y){if(ut.test(y))throw new Ot("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(H,""):p).replace(F,"$1").replace(U,"$1;"),p="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=Gc((function(){return St(u,h+"return "+p).apply(r,l)}));if(v.source=p,Xa(v))throw v;return v},Br.times=function(t,e){if((t=dc(t))<1||t>s)return[];var r=p,n=gr(t,p);e=ui(e),t-=p;for(var o=qe(n,e);++r<t;)e(r);return o},Br.toFinite=pc,Br.toInteger=dc,Br.toLength=hc,Br.toLower=function(t){return gc(t).toLowerCase()},Br.toNumber=yc,Br.toSafeInteger=function(t){return t?an(dc(t),-9007199254740991,s):0===t?t:0},Br.toString=gc,Br.toUpper=function(t){return gc(t).toUpperCase()},Br.trim=function(t,e,n){if((t=gc(t))&&(n||e===r))return Ye(t);if(!t||!(e=uo(e)))return t;var o=sr(t),i=sr(e);return xo(o,Je(o,i),Qe(o,i)+1).join("")},Br.trimEnd=function(t,e,n){if((t=gc(t))&&(n||e===r))return t.slice(0,fr(t)+1);if(!t||!(e=uo(e)))return t;var o=sr(t);return xo(o,0,Qe(o,sr(e))+1).join("")},Br.trimStart=function(t,e,n){if((t=gc(t))&&(n||e===r))return t.replace(rt,"");if(!t||!(e=uo(e)))return t;var o=sr(t);return xo(o,Je(o,sr(e))).join("")},Br.truncate=function(t,e){var n=30,o="...";if(Qa(e)){var i="separator"in e?e.separator:i;n="length"in e?dc(e.length):n,o="omission"in e?uo(e.omission):o}var a=(t=gc(t)).length;if(nr(t)){var c=sr(t);a=c.length}if(n>=a)return t;var u=n-lr(o);if(u<1)return o;var l=c?xo(c,0,u).join(""):t.slice(0,u);if(i===r)return l+o;if(c&&(u+=l.length-u),oc(i)){if(t.slice(u).search(i)){var s,f=l;for(i.global||(i=Pt(i.source,gc(ft.exec(i))+"g")),i.lastIndex=0;s=i.exec(f);)var p=s.index;l=l.slice(0,p===r?u:p)}}else if(t.indexOf(uo(i),u)!=u){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+o},Br.unescape=function(t){return(t=gc(t))&&Z.test(t)?t.replace(V,dr):t},Br.uniqueId=function(t){var e=++Nt;return gc(t)+e},Br.upperCase=Yc,Br.upperFirst=Xc,Br.each=ga,Br.eachRight=ma,Br.first=Wi,au(Br,(vu={},bn(Br,(function(t,e){It.call(Br.prototype,e)||(vu[e]=t)})),vu),{chain:!1}),Br.VERSION="4.17.21",je(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Br[t].placeholder=Br})),je(["drop","take"],(function(t,e){Fr.prototype[t]=function(n){n=n===r?1:vr(dc(n),0);var o=this.__filtered__&&!e?new Fr(this):this.clone();return o.__filtered__?o.__takeCount__=gr(n,o.__takeCount__):o.__views__.push({size:gr(n,p),type:t+(o.__dir__<0?"Right":"")}),o},Fr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),je(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;Fr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ui(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),je(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Fr.prototype[t]=function(){return this[r](1).value()[0]}})),je(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Fr.prototype[t]=function(){return this.__filtered__?new Fr(this):this[r](1)}})),Fr.prototype.compact=function(){return this.filter(ru)},Fr.prototype.find=function(t){return this.filter(t).head()},Fr.prototype.findLast=function(t){return this.reverse().find(t)},Fr.prototype.invokeMap=Xn((function(t,e){return"function"==typeof t?new Fr(this):this.map((function(r){return kn(r,t,e)}))})),Fr.prototype.reject=function(t){return this.filter(Ia(ui(t)))},Fr.prototype.slice=function(t,e){t=dc(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Fr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=dc(e))<0?n.dropRight(-e):n.take(e-t)),n)},Fr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Fr.prototype.toArray=function(){return this.take(p)},bn(Fr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),o=/^(?:head|last)$/.test(e),i=Br[o?"take"+("last"==e?"Right":""):e],a=o||/^find/.test(e);i&&(Br.prototype[e]=function(){var e=this.__wrapped__,c=o?[1]:arguments,u=e instanceof Fr,l=c[0],s=u||Ua(e),f=function(t){var e=i.apply(Br,Te([t],c));return o&&p?e[0]:e};s&&n&&"function"==typeof l&&1!=l.length&&(u=s=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,y=u&&!d;if(!a&&s){e=y?e:new Fr(this);var v=t.apply(e,c);return v.__actions__.push({func:pa,args:[f],thisArg:r}),new Hr(v,p)}return h&&y?t.apply(this,c):(v=this.thru(f),h?o?v.value()[0]:v.value():v)})})),je(["pop","push","shift","sort","splice","unshift"],(function(t){var e=kt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Br.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var o=this.value();return e.apply(Ua(o)?o:[],t)}return this[r]((function(r){return e.apply(Ua(r)?r:[],t)}))}})),bn(Fr.prototype,(function(t,e){var r=Br[e];if(r){var n=r.name+"";It.call(kr,n)||(kr[n]=[]),kr[n].push({name:e,func:r})}})),kr[$o(r,2).name]=[{name:"wrapper",func:r}],Fr.prototype.clone=function(){var t=new Fr(this.__wrapped__);return t.__actions__=ko(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ko(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ko(this.__views__),t},Fr.prototype.reverse=function(){if(this.__filtered__){var t=new Fr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Fr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Ua(t),n=e<0,o=r?t.length:0,i=function(t,e,r){for(var n=-1,o=r.length;++n<o;){var i=r[n],a=i.size;switch(i.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=gr(e,t+a);break;case"takeRight":t=vr(t,e-a)}}return{start:t,end:e}}(0,o,this.__views__),a=i.start,c=i.end,u=c-a,l=n?c:a-1,s=this.__iteratees__,f=s.length,p=0,d=gr(u,this.__takeCount__);if(!r||!n&&o==u&&d==u)return ho(t,this.__actions__);var h=[];t:for(;u--&&p<d;){for(var y=-1,v=t[l+=e];++y<f;){var g=s[y],m=g.iteratee,b=g.type,w=m(v);if(2==b)v=w;else if(!w){if(1==b)continue t;break t}}h[p++]=v}return h},Br.prototype.at=da,Br.prototype.chain=function(){return fa(this)},Br.prototype.commit=function(){return new Hr(this.value(),this.__chain__)},Br.prototype.next=function(){this.__values__===r&&(this.__values__=fc(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},Br.prototype.plant=function(t){for(var e,n=this;n instanceof $r;){var o=Bi(n);o.__index__=0,o.__values__=r,e?i.__wrapped__=o:e=o;var i=o;n=n.__wrapped__}return i.__wrapped__=t,e},Br.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Fr){var e=t;return this.__actions__.length&&(e=new Fr(this)),(e=e.reverse()).__actions__.push({func:pa,args:[Qi],thisArg:r}),new Hr(e,this.__chain__)}return this.thru(Qi)},Br.prototype.toJSON=Br.prototype.valueOf=Br.prototype.value=function(){return ho(this.__wrapped__,this.__actions__)},Br.prototype.first=Br.prototype.head,Jt&&(Br.prototype[Jt]=function(){return this}),Br}();de?((de.exports=hr)._=hr,pe._=hr):fe._=hr}).call(SI)}(OI,OI.exports)),OI.exports);function jI(t){const e=yt(t);e.current=t,bt((()=>()=>{e.current()}),[])}function PI(t,e=500,r){const n=yt(null);jI((()=>{n.current&&n.current.cancel()}));const o=wt((()=>{const o=_I.debounce(t,e,r),i=(...t)=>o(...t);return i.cancel=()=>{o.cancel()},i.isPending=()=>!!n.current,i.flush=()=>o.flush(),i}),[t,e,r]);return bt((()=>{n.current=_I.debounce(t,e,r)}),[t,e,r]),o}function AI(t,e,r){const n=r?.equalityFn??((t,e)=>t===e),o=t instanceof Function?t():t,[i,a]=gt(o),c=yt(o),u=PI(a,e,r);return n(c.current,o)||(u(o),c.current=o),[i,u]}export{TT as CfAreaChart,DT as CfBreakpointDebugger,IT as CfButtonGroup,NT as CfButtonGroupButton,RT as CfCard,LT as CfCarousel,zT as CfCheckbox,UT as CfDevConsole,HT as CfDevConsoleActions,$T as CfDevConsoleButton,FT as CfDevConsoleDataGrid,VT as CfDevConsoleFloatingButton,WT as CfDevConsoleLinks,ZT as CfDevConsoleSystemStatus,qT as CfForm,aD as CfInput,rI as CfInputArray,nI as CfLineChart,oI as CfModal,iI as CfNavLink,fI as CfOpenSearchPagination,pI as CfPagination,dI as CfPrettyWrap,hI as CfSelect,vI as CfSpinner,gI as CfTag,mI as CfToast,bI as CfTooltip,kt as IconAlert,Ie as IconAlgo,Et as IconArrowDown,Ct as IconArrowUp,Ne as IconAvax,Tt as IconBank,Dt as IconBarChart,Re as IconBch,It as IconBookCheck,Le as IconBtc,Nt as IconCalendar,Rt as IconCaretDown,Lt as IconCaretLeft,Bt as IconCaretRight,zt as IconCaretUp,$t as IconCent,Ht as IconCheck,Ft as IconChecking,Ut as IconCircleCheck,Vt as IconClose,Wt as IconConnect,Zt as IconCopy,Ce as IconDiamonds,Be as IconDoge,qt as IconDollar,Yt as IconDollarBill,Xt as IconDownload,Kt as IconEdit,Gt as IconEnter,Jt as IconEnterInverted,ze as IconEth,Qt as IconExchange,Te as IconExternalLink,te as IconFilter,ee as IconHelp,re as IconHistory,ne as IconHome,oe as IconIndicatorDown,ie as IconIndicatorUp,ae as IconInfo,$e as IconLink,ce as IconLock,He as IconLtc,ue as IconMail,le as IconMenu,se as IconMinus,Fe as IconMkr,fe as IconMore,pe as IconNotification,de as IconOverview,he as IconPercent,ye as IconPieChart,ve as IconPlus,De as IconRefresh,ge as IconReports,me as IconReservesSuccess,be as IconReservesWarning,we as IconSearch,xe as IconSettings,Oe as IconSettlement,Se as IconSignIn,_e as IconSignOut,Ue as IconSol,je as IconSort,Pe as IconSpinner,Ae as IconSupport,Me as IconTrash,ke as IconUpload,Ee as IconUser,Ve as IconXlm,We as IconXrp,fr as aggregateAmounts,kn as coreTheme,qr as dateFormats,jr as dateToTimestamp,Pr as formatPercentage,En as formatPhoneNumber,Ir as formatUsd,Nr as getDelta,Br as getNextDayFormatted,Lr as getOrdinalSuffix,zr as isIframe,Zr as layoutMinWidth,Hr as pullFromEnd,Fr as splitOnCapitals,Ur as uiColors,Wr as usdToNumber,wI as useCfBreakpoint,PI as useDebounceCallback,AI as useDebounceValue,jI as useUnmount,Yr as utcDateToLocal};
43
43
  //# sourceMappingURL=index.js.map