@cryptofi/core-ui 2.1.2 → 2.1.4
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 +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +22 -22
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 $r={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(t,e){var r=e.pattern,n=e.negativePattern,i=e.symbol,o=e.separator,a=e.decimal,c=e.groups,l=(""+t).replace(/^-/,"").split("."),u=l[0],s=l[1];return(t.value>=0?r:n).replace("!",i).replace("#",u.replace(c,"$1"+o)+(s?a+s:""))},fromCents:!1},Hr=function(t){return Math.round(t)},Fr=function(t){return Math.pow(10,t)},Ur=/(\d)(?=(\d{3})+\b)/g,Vr=/(\d)(?=(\d\d)+\d\b)/g;function Wr(t,e){var r=this;if(!(r instanceof Wr))return new Wr(t,e);var n=Object.assign({},$r,e),i=Fr(n.precision),o=Zr(t,n);r.intValue=o,r.value=o/i,n.increment=n.increment||1/i,n.useVedic?n.groups=Vr:n.groups=Ur,this.s=n,this.p=i}function Zr(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=0,i=e.decimal,o=e.errorOnInvalid,a=e.precision,c=e.fromCents,l=Fr(a),u="number"==typeof t,s=t instanceof Wr;if(s&&c)return t.intValue;if(u||s)n=s?t.value:t;else if("string"==typeof t){var f=new RegExp("[^-\\d"+i+"]","g"),p=new RegExp("\\"+i,"g");n=(n=t.replace(/\((.*)\)/,"-$1").replace(f,"").replace(p,"."))||0}else{if(o)throw Error("Invalid Input");n=0}return c||(n=(n*=l).toFixed(4)),r?Hr(n):n}Wr.prototype={add:function(t){var e=this.intValue,r=this.s,n=this.p;return Wr((e+=Zr(t,r))/(r.fromCents?1:n),r)},subtract:function(t){var e=this.intValue,r=this.s,n=this.p;return Wr((e-=Zr(t,r))/(r.fromCents?1:n),r)},multiply:function(t){var e=this.intValue,r=this.s;return Wr((e*=t)/(r.fromCents?1:Fr(r.precision)),r)},divide:function(t){var e=this.intValue,r=this.s;return Wr(e/=Zr(t,r,!1),r)},distribute:function(t){for(var e=this.intValue,r=this.p,n=this.s,i=[],o=Math[e>=0?"floor":"ceil"](e/t),a=Math.abs(e-o*t),c=n.fromCents?1:r;0!==t;t--){var l=Wr(o/c,n);a-- >0&&(l=l[e>=0?"add":"subtract"](1/c)),i.push(l)}return i},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,i=this.s;return(t=r/n,e=i.increment,Hr(t/e)*e).toFixed(i.precision)},toJSON:function(){return this.value}};const qr=({amount:t,autoPrecision:e,precision:r=2,signDisplay:n=!1})=>{const i=Number(t);if(!Number.isFinite(i))return console.log(`Amount is not a finite number. (amount: ${i}, method: formatUsd)`),t;const o=Wr(i,{precision:e&&i>-1&&i<1&&0!==i?5:r}).format();return n&&i>0?`+${o}`:o},Yr=({data:t,dataKey:e})=>{const r=t?t.filter((t=>Boolean(t[e]))):[],n=r?.length?Number(r[0][e]):0,i=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(i))throw new Error(`Starting or ending amount is not a finite number. (startingAmount: ${n}, endingAmount: ${i}, method: getDelta)`);const o=new Sr(n),a=new Sr(i),c=a.minus(o);return{startingAmount:n,endingAmount:i,delta:c.toNumber(),percentChange:0===o.toNumber()?0:c.div(o).mul(100).toNumber(),isNetGain:a.gt(o)}},Gr=t=>{let e;return["sm","xs"].includes(t)&&(e="xs"),e},Xr=()=>{try{return window.self!==window.top}catch(t){return!0}},Kr=t=>Array.from(t).reverse(),Jr=({arr:t,n:e})=>{const r=Kr(t);return Kr(r.filter(((t,r)=>r%e==0)))},Qr=t=>t.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z])([A-Z][a-z])/g,"$1 $2").trim(),tn={redRemains:(t=1)=>en({rgb:"rgb(255, 223, 223)",alpha:t}),heroicRed:(t=1)=>en({rgb:"rgb(210, 25, 25)",alpha:t}),aijiroWhite:(t=1)=>en({rgb:"rgb(238, 248, 247)",alpha:t}),mint:(t=1)=>en({rgb:"rgb(64, 178, 136)",alpha:t}),white:(t=1)=>en({rgb:"rgb(255, 255, 255)",alpha:t,enabledAlphaValues:[.2]}),lighthouse:(t=1)=>en({rgb:"rgb(244, 244, 244)",alpha:t}),coolElegance:(t=1)=>en({rgb:"rgb(205, 207, 209)",alpha:t}),sonicSilver:(t=1)=>en({rgb:"rgb(117, 117, 117)",alpha:t}),black:(t=1)=>en({rgb:"rgb(0, 0, 0)",alpha:t,enabledAlphaValues:[.08]})},en=({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,i,o]=t.replace(/[^\d,]/g,"").split(",");return`rgba(${n}, ${i}, ${o}, ${e})`},rn=({usd:t,precision:e=2,autoPrecision:r})=>{const n=Wr(t).value;return Wr(t,{precision:r&&n>-1&&n<1&&0!==n?5:e}).value},nn="22rem",on={dateOnly:"MM/DD/YY",dateWithTime:"MM/DD/YYYY h:mm A",shortDateWithTime:"MMM D, h:mm A",shortDateWithYear:"MMM D, YYYY"};Er.extend(Lr);const an=({dateFormat:t=on.dateOnly,timeString:e})=>Er.utc(e).local().format(t),{definePartsStyle:cn,defineMultiStyleConfig:ln}=i(or.keys),un=ln({baseStyle:cn({root:{display:"flex",flexDirection:"column",gap:2},container:{borderRadius:"lg",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.300",bg:"gray.100",color:tn.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:tn.white(),fontSize:"md",_hover:{bg:tn.lighthouse()}},panel:{borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"gray.300",fontSize:"sm",bg:tn.lighthouse(),py:"4",px:"4"}}),variants:{spacious:cn({container:{borderRadius:"lg"},button:{py:8,px:6,fontSize:"md"},panel:{fontSize:"sm",bg:tn.lighthouse(),p:"8"}})}}),{definePartsStyle:sn,defineMultiStyleConfig:fn}=i(ar.keys),pn=fn({baseStyle:sn((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"}}),dn=o({borderColor:"red.700",color:"red.700",border:"solid 2px",":hover, :focus":{backgroundColor:"gray.200"},svg:{path:{fill:"red.700"}}}),hn=o({":hover, :focus":{background:"brand.600"}}),vn={color:"brand.700 !important",bg:"brand.50 !important",opacity:"0.6 !important",filter:"grayscale() !important"},yn=o({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:{...vn},":hover[disabled], :focus[disabled]":{...vn},_active:{bg:"brand.100",color:"brand.600",svg:{path:{fill:"brand.600"}}}}),gn=o({border:"solid 2px",borderColor:"brand.600",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),mn=o({boxShadow:"none",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),bn=a({baseStyle:{boxShadow:"0px 8px 16px 0px rgba(0,0,0,0.08)",svg:{width:"1em",height:"1em",path:{fill:"white"}}},sizes:{xs:o({lineHeight:1})},variants:{alert:dn,outline:gn,ghost:mn,secondary:yn,solid:hn}}),{definePartsStyle:wn,defineMultiStyleConfig:xn}=i(cr.keys),On=xn({baseStyle:wn({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"}}}),_n=a({sizes:{sm:{text:{fontSize:"xs"}},xs:{text:{fontSize:"xs"}}}}),jn=a({baseStyle:{display:"inline-block",color:tn.sonicSilver(),fontFamily:"heading",fontSize:"sm",cursor:"pointer",_disabled:{opacity:1}},sizes:{sm:{fontSize:"sm"},xs:{fontSize:"xs"}}}),Pn=a({sizes:{xl:o({fontSize:"4xl"}),lg:o({fontSize:"3xl"}),md:o({fontSize:"2xl"}),sm:o({fontSize:"xl"}),xs:o({fontSize:"md"})}}),{definePartsStyle:An,defineMultiStyleConfig:Mn}=i(lr.keys),kn=Mn({baseStyle:An({group:{"svg:not(.asset-logo)":{width:"1em",height:"1em"}},field:{_readOnly:{pointerEvents:"none"}}}),sizes:{lg:An({field:{fontSize:"md"}})},variants:{outline:{group:{"svg:not(.asset-logo)":{path:{fill:tn.sonicSilver()}},_groupFocus:{"svg:not(.asset-logo)":{path:{fill:tn.black()}}},_groupDisabled:{"svg:not(.asset-logo)":{path:{fill:tn.coolElegance()}}}},field:{border:"solid 1px",borderRadius:"lg",borderColor:tn.coolElegance(),color:tn.sonicSilver(),":focus":{color:tn.black(),borderColor:tn.black()},":hover:not([disabled])":{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},_disabled:{color:tn.sonicSilver(),opacity:1,bg:tn.lighthouse(),":focus, :hover":{borderColor:tn.coolElegance(),bg:tn.lighthouse()}},_invalid:{":focus, :hover":{borderColor:"red.500"}}},addon:{bg:"white",border:"solid 1px",borderRadius:"lg",borderColor:tn.coolElegance(),color:tn.black(),":hover:not([disabled])":{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},":focus":{borderColor:tn.black()},_disabled:{color:tn.sonicSilver(),opacity:1,bg:tn.lighthouse(),":focus, :hover":{borderColor:tn.coolElegance(),bg:tn.lighthouse()}},_invalid:{":focus, :hover":{borderColor:"red.500"}}}}},defaultProps:{size:"lg",variant:"outline"}}),{definePartsStyle:Cn,defineMultiStyleConfig:En}=i(ur.keys),Tn=En({baseStyle:Cn({field:{_readOnly:{pointerEvents:"none"}}}),sizes:{lg:Cn({field:{fontSize:"md"}})},variants:{outline:{field:{border:"solid 1px",borderColor:tn.coolElegance(),borderRadius:"lg",color:tn.sonicSilver(),pr:10,_focus:{color:tn.black(),borderColor:tn.black(),"+.chakra-select__icon-wrapper":{svg:{color:tn.black(),path:{fill:tn.black()}}}},":hover:not([disabled])":{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},_disabled:{color:tn.sonicSilver(),opacity:1,bg:tn.lighthouse(),":focus, :hover":{borderColor:tn.coolElegance(),bg:tn.lighthouse()}},_invalid:{":focus, :hover":{borderColor:"red.500"}}},icon:{width:"1em",height:"1em",fontSize:"1em",mr:2,path:{fill:tn.sonicSilver()},_disabled:{opacity:1,path:{fill:tn.coolElegance()}}}}},defaultProps:{size:"lg",variant:"outline"}}),Dn=a({variants:{simple:{th:{borderColor:tn.coolElegance()},td:{borderColor:tn.coolElegance()},tr:{_last:{td:{border:"none"}}}},grayHeader:{th:{background:tn.lighthouse(),color:tn.sonicSilver(),borderBottom:"1px solid",borderColor:tn.coolElegance()},td:{borderBottom:"1px solid",borderColor:tn.coolElegance()},tr:{_last:{td:{border:"none"}}}}}}),{definePartsStyle:In,defineMultiStyleConfig:Nn}=i(sr.keys),Rn=In({container:{color:"blackAlpha.900",fontWeight:"bold",borderRadius:"full",svg:{path:{fill:"blackAlpha.900"}}}}),Ln=In({container:{bg:"red.100",borderWidth:1,borderColor:"red.500"}}),Bn=In({container:{bg:"yellow.100",borderColor:"yellow.500",borderWidth:1}});var zn=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:un,Alert:pn,Button:bn,Checkbox:On,Input:kn,Heading:Pn,Form:Sn,FormLabel:jn,FormError:_n,Select:Tn,Table:Dn,Tag:Nn({baseStyle:Rn,defaultProps:{variant:"outline"},variants:{error:Ln,success:In({container:{bg:"green.100",borderColor:"green.500",borderWidth:1}}),warning:Bn,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))"}}}},l({colorScheme:"brand"}));const $n={components:zn.components,styles:zn.styles},Hn=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 Fn,Un,Vn=(t=21)=>{var e;e=t|=0,!Fn||Fn.length<e?(Fn=Buffer.allocUnsafe(128*e),ut.randomFillSync(Fn),Un=0):Un+e>Fn.length&&(ut.randomFillSync(Fn),Un=0),Un+=e;let r="";for(let e=Un-t;e<Un;e++)r+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&Fn[e]];return r};function Wn(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=Wn(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Zn(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=Wn(t))&&(n&&(n+=" "),n+=e);return n}var qn,Yn,Gn,Xn,Kn,Jn,Qn,ti,ei,ri,ni,ii,oi,ai,ci,li,ui,si,fi,pi,di,hi,vi,yi,gi,mi,bi,wi,xi,Oi,Si,_i,ji,Pi,Ai,Mi,ki,Ci,Ei,Ti,Di,Ii,Ni,Ri,Li,Bi,zi,$i,Hi,Fi,Ui,Vi,Wi,Zi,qi,Yi,Gi,Xi,Ki,Ji,Qi,to,eo,ro,no,io,oo,ao,co,lo,uo,so,fo,po,ho,vo,yo,go,mo,bo,wo,xo,Oo,So,_o,jo,Po,Ao,Mo,ko,Co,Eo,To,Do,Io,No,Ro,Lo,Bo,zo,$o,Ho,Fo,Uo;function Vo(){if(Yn)return qn;Yn=1;var t=Array.isArray;return qn=t}function Wo(){if(Xn)return Gn;Xn=1;var t="object"==typeof jr&&jr&&jr.Object===Object&&jr;return Gn=t}function Zo(){if(Jn)return Kn;Jn=1;var t=Wo(),e="object"==typeof self&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return Kn=r}function qo(){if(ti)return Qn;ti=1;var t=Zo().Symbol;return Qn=t}function Yo(){if(ai)return oi;ai=1;var t=qo(),e=function(){if(ri)return ei;ri=1;var t=qo(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,i=t?t.toStringTag:void 0;return ei=function(t){var e=r.call(t,i),o=t[i];try{t[i]=void 0;var a=!0}catch(t){}var c=n.call(t);return a&&(e?t[i]=o:delete t[i]),c}}(),r=function(){if(ii)return ni;ii=1;var t=Object.prototype.toString;return ni=function(e){return t.call(e)}}(),n=t?t.toStringTag:void 0;return oi=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":n&&n in Object(t)?e(t):r(t)}}function Go(){if(li)return ci;return li=1,ci=function(t){return null!=t&&"object"==typeof t}}function Xo(){if(si)return ui;si=1;var t=Yo(),e=Go();return ui=function(r){return"symbol"==typeof r||e(r)&&"[object Symbol]"==t(r)}}function Ko(){if(pi)return fi;pi=1;var t=Vo(),e=Xo(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return fi=function(i,o){if(t(i))return!1;var a=typeof i;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=i&&!e(i))||(n.test(i)||!r.test(i)||null!=o&&i in Object(o))},fi}function Jo(){if(hi)return di;return hi=1,di=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}}function Qo(){if(yi)return vi;yi=1;var t=Yo(),e=Jo();return vi=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 ta(){if(wi)return bi;wi=1;var t,e=function(){if(mi)return gi;mi=1;var t=Zo()["__core-js_shared__"];return gi=t}(),r=(t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return bi=function(t){return!!r&&r in t}}function ea(){if(Oi)return xi;Oi=1;var t=Function.prototype.toString;return xi=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function ra(){if(Mi)return Ai;Mi=1;var t=function(){if(_i)return Si;_i=1;var t=Qo(),e=ta(),r=Jo(),n=ea(),i=/^\[object .+?Constructor\]$/,o=Function.prototype,a=Object.prototype,c=o.toString,l=a.hasOwnProperty,u=RegExp("^"+c.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return Si=function(o){return!(!r(o)||e(o))&&(t(o)?u:i).test(n(o))}}(),e=(Pi||(Pi=1,ji=function(t,e){return null==t?void 0:t[e]}),ji);return Ai=function(r,n){var i=e(r,n);return t(i)?i:void 0},Ai}function na(){if(Ci)return ki;Ci=1;var t=ra()(Object,"create");return ki=t}function ia(){if(Fi)return Hi;Fi=1;var t=function(){if(Ti)return Ei;Ti=1;var t=na();return Ei=function(){this.__data__=t?t(null):{},this.size=0}}(),e=Ii?Di:(Ii=1,Di=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),r=function(){if(Ri)return Ni;Ri=1;var t=na(),e=Object.prototype.hasOwnProperty;return Ni=function(r){var n=this.__data__;if(t){var i=n[r];return"__lodash_hash_undefined__"===i?void 0:i}return e.call(n,r)?n[r]:void 0}}(),n=function(){if(Bi)return Li;Bi=1;var t=na(),e=Object.prototype.hasOwnProperty;return Li=function(r){var n=this.__data__;return t?void 0!==n[r]:e.call(n,r)}}(),i=function(){if($i)return zi;$i=1;var t=na();return zi=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 o(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 o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,Hi=o}function oa(){if(Zi)return Wi;return Zi=1,Wi=function(t,e){return t===e||t!=t&&e!=e}}function aa(){if(Yi)return qi;Yi=1;var t=oa();return qi=function(e,r){for(var n=e.length;n--;)if(t(e[n][0],r))return n;return-1},qi}function ca(){if(io)return no;io=1;var t=Vi?Ui:(Vi=1,Ui=function(){this.__data__=[],this.size=0}),e=function(){if(Xi)return Gi;Xi=1;var t=aa(),e=Array.prototype.splice;return Gi=function(r){var n=this.__data__,i=t(n,r);return!(i<0||(i==n.length-1?n.pop():e.call(n,i,1),--this.size,0))}}(),r=function(){if(Ji)return Ki;Ji=1;var t=aa();return Ki=function(e){var r=this.__data__,n=t(r,e);return n<0?void 0:r[n][1]}}(),n=function(){if(to)return Qi;to=1;var t=aa();return Qi=function(e){return t(this.__data__,e)>-1}}(),i=function(){if(ro)return eo;ro=1;var t=aa();return eo=function(e,r){var n=this.__data__,i=t(n,e);return i<0?(++this.size,n.push([e,r])):n[i][1]=r,this}}();function o(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 o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,no=o}function la(){if(ao)return oo;ao=1;var t=ra()(Zo(),"Map");return oo=t}function ua(){if(po)return fo;po=1;var t=so?uo:(so=1,uo=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t});return fo=function(e,r){var n=e.__data__;return t(r)?n["string"==typeof r?"string":"hash"]:n.map},fo}function sa(){if(So)return Oo;So=1;var t=function(){if(lo)return co;lo=1;var t=ia(),e=ca(),r=la();return co=function(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}}(),e=function(){if(vo)return ho;vo=1;var t=ua();return ho=function(e){var r=t(this,e).delete(e);return this.size-=r?1:0,r}}(),r=function(){if(go)return yo;go=1;var t=ua();return yo=function(e){return t(this,e).get(e)}}(),n=function(){if(bo)return mo;bo=1;var t=ua();return mo=function(e){return t(this,e).has(e)}}(),i=function(){if(xo)return wo;xo=1;var t=ua();return wo=function(e,r){var n=t(this,e),i=n.size;return n.set(e,r),this.size+=n.size==i?0:1,this}}();function o(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 o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,Oo=o}function fa(){if(jo)return _o;jo=1;var t=sa();function e(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var i=function(){var t=arguments,e=n?n.apply(this,t):t[0],o=i.cache;if(o.has(e))return o.get(e);var a=r.apply(this,t);return i.cache=o.set(e,a)||o,a};return i.cache=new(e.Cache||t),i}return e.Cache=t,_o=e}function pa(){if(ko)return Mo;ko=1;var t=function(){if(Ao)return Po;Ao=1;var t=fa();return Po=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,i,o){n.push(i?o.replace(r,"$1"):e||t)})),n}));return Mo=n}function da(){if(Eo)return Co;return Eo=1,Co=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i},Co}function ha(){if(No)return Io;No=1;var t=function(){if(Do)return To;Do=1;var t=qo(),e=da(),r=Vo(),n=Xo(),i=t?t.prototype:void 0,o=i?i.toString:void 0;return To=function t(i){if("string"==typeof i)return i;if(r(i))return e(i,t)+"";if(n(i))return o?o.call(i):"";var a=i+"";return"0"==a&&1/i==-1/0?"-0":a},To}();return Io=function(e){return null==e?"":t(e)}}function va(){if(Lo)return Ro;Lo=1;var t=Vo(),e=Ko(),r=pa(),n=ha();return Ro=function(i,o){return t(i)?i:e(i,o)?[i]:r(n(i))},Ro}function ya(){if(zo)return Bo;zo=1;var t=Xo();return Bo=function(e){if("string"==typeof e||t(e))return e;var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}}function ga(){if(Ho)return $o;Ho=1;var t=va(),e=ya();return $o=function(r,n){for(var i=0,o=(n=t(n,r)).length;null!=r&&i<o;)r=r[e(n[i++])];return i&&i==o?r:void 0},$o}function ma(){if(Uo)return Fo;Uo=1;var t=ga();return Fo=function(e,r,n){var i=null==e?void 0:t(e,r);return void 0===i?n:i},Fo}var ba,wa,xa=Pr(ma());var Oa,Sa,_a=Pr(wa?ba:(wa=1,ba=function(t){return null==t}));var ja,Pa=function(){if(Sa)return Oa;Sa=1;var t=Yo(),e=Vo(),r=Go();return Oa=function(n){return"string"==typeof n||!e(n)&&r(n)&&"[object String]"==t(n)}}(),Aa=Pr(Pa),Ma=Pr(Qo()),ka=Pr(Jo()),Ca={exports:{}},Ea={};var Ta,Da,Ia={};
|
|
9
|
+
var $r={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(t,e){var r=e.pattern,n=e.negativePattern,i=e.symbol,o=e.separator,a=e.decimal,c=e.groups,l=(""+t).replace(/^-/,"").split("."),u=l[0],s=l[1];return(t.value>=0?r:n).replace("!",i).replace("#",u.replace(c,"$1"+o)+(s?a+s:""))},fromCents:!1},Hr=function(t){return Math.round(t)},Fr=function(t){return Math.pow(10,t)},Ur=/(\d)(?=(\d{3})+\b)/g,Vr=/(\d)(?=(\d\d)+\d\b)/g;function Wr(t,e){var r=this;if(!(r instanceof Wr))return new Wr(t,e);var n=Object.assign({},$r,e),i=Fr(n.precision),o=Zr(t,n);r.intValue=o,r.value=o/i,n.increment=n.increment||1/i,n.useVedic?n.groups=Vr:n.groups=Ur,this.s=n,this.p=i}function Zr(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=0,i=e.decimal,o=e.errorOnInvalid,a=e.precision,c=e.fromCents,l=Fr(a),u="number"==typeof t,s=t instanceof Wr;if(s&&c)return t.intValue;if(u||s)n=s?t.value:t;else if("string"==typeof t){var f=new RegExp("[^-\\d"+i+"]","g"),p=new RegExp("\\"+i,"g");n=(n=t.replace(/\((.*)\)/,"-$1").replace(f,"").replace(p,"."))||0}else{if(o)throw Error("Invalid Input");n=0}return c||(n=(n*=l).toFixed(4)),r?Hr(n):n}Wr.prototype={add:function(t){var e=this.intValue,r=this.s,n=this.p;return Wr((e+=Zr(t,r))/(r.fromCents?1:n),r)},subtract:function(t){var e=this.intValue,r=this.s,n=this.p;return Wr((e-=Zr(t,r))/(r.fromCents?1:n),r)},multiply:function(t){var e=this.intValue,r=this.s;return Wr((e*=t)/(r.fromCents?1:Fr(r.precision)),r)},divide:function(t){var e=this.intValue,r=this.s;return Wr(e/=Zr(t,r,!1),r)},distribute:function(t){for(var e=this.intValue,r=this.p,n=this.s,i=[],o=Math[e>=0?"floor":"ceil"](e/t),a=Math.abs(e-o*t),c=n.fromCents?1:r;0!==t;t--){var l=Wr(o/c,n);a-- >0&&(l=l[e>=0?"add":"subtract"](1/c)),i.push(l)}return i},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,i=this.s;return(t=r/n,e=i.increment,Hr(t/e)*e).toFixed(i.precision)},toJSON:function(){return this.value}};const qr=({amount:t,autoPrecision:e,precision:r=2,signDisplay:n=!1})=>{const i=Number(t);if(!Number.isFinite(i))return console.log(`Amount is not a finite number. (amount: ${i}, method: formatUsd)`),t;const o=Wr(i,{precision:e&&i>-1&&i<1&&0!==i?5:r}).format();return n&&i>0?`+${o}`:o},Yr=({data:t,dataKey:e})=>{const r=t?t.filter((t=>Boolean(t[e]))):[],n=r?.length?Number(r[0][e]):0,i=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(i))throw new Error(`Starting or ending amount is not a finite number. (startingAmount: ${n}, endingAmount: ${i}, method: getDelta)`);const o=new Sr(n),a=new Sr(i),c=a.minus(o);return{startingAmount:n,endingAmount:i,delta:c.toNumber(),percentChange:0===o.toNumber()?0:c.div(o).mul(100).toNumber(),isNetGain:a.gt(o)}},Gr=t=>{let e;return["sm","xs"].includes(t)&&(e="xs"),e},Xr=()=>{try{return window.self!==window.top}catch(t){return!0}},Kr=t=>Array.from(t).reverse(),Jr=({arr:t,n:e})=>{const r=Kr(t);return Kr(r.filter(((t,r)=>r%e==0)))},Qr=t=>t.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z])([A-Z][a-z])/g,"$1 $2").trim(),tn={redRemains:(t=1)=>en({rgb:"rgb(255, 223, 223)",alpha:t}),heroicRed:(t=1)=>en({rgb:"rgb(210, 25, 25)",alpha:t}),aijiroWhite:(t=1)=>en({rgb:"rgb(238, 248, 247)",alpha:t}),mint:(t=1)=>en({rgb:"rgb(64, 178, 136)",alpha:t}),white:(t=1)=>en({rgb:"rgb(255, 255, 255)",alpha:t,enabledAlphaValues:[.2]}),lighthouse:(t=1)=>en({rgb:"rgb(244, 244, 244)",alpha:t}),coolElegance:(t=1)=>en({rgb:"rgb(205, 207, 209)",alpha:t}),sonicSilver:(t=1)=>en({rgb:"rgb(117, 117, 117)",alpha:t}),black:(t=1)=>en({rgb:"rgb(0, 0, 0)",alpha:t,enabledAlphaValues:[.08]})},en=({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,i,o]=t.replace(/[^\d,]/g,"").split(",");return`rgba(${n}, ${i}, ${o}, ${e})`},rn=({usd:t,precision:e=2,autoPrecision:r})=>{const n=Wr(t).value;return Wr(t,{precision:r&&n>-1&&n<1&&0!==n?5:e}).value},nn="22rem",on={dateOnly:"MM/DD/YY",dateWithTime:"MM/DD/YYYY h:mm A",shortDateWithTime:"MMM D, h:mm A",shortDateWithYear:"MMM D, YYYY"};Er.extend(Lr);const an=({dateFormat:t=on.dateOnly,timeString:e})=>Er.utc(e).local().format(t),{definePartsStyle:cn,defineMultiStyleConfig:ln}=i(or.keys),un=ln({baseStyle:cn({root:{display:"flex",flexDirection:"column",gap:2},container:{borderRadius:"lg",borderWidth:"1px",borderStyle:"solid",borderColor:"gray.300",bg:"gray.100",color:tn.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:tn.white(),fontSize:"md",_hover:{bg:tn.lighthouse()}},panel:{borderTopWidth:"1px",borderTopStyle:"solid",borderTopColor:"gray.300",fontSize:"sm",bg:tn.lighthouse(),py:"4",px:"4"}}),variants:{spacious:cn({container:{borderRadius:"lg"},button:{py:8,px:6,fontSize:"md"},panel:{fontSize:"sm",bg:tn.lighthouse(),p:"8"}})}}),{definePartsStyle:sn,defineMultiStyleConfig:fn}=i(ar.keys),pn=fn({baseStyle:sn((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"}}),dn=o({borderColor:"red.700",color:"red.700",border:"solid 2px",":hover, :focus":{backgroundColor:"gray.200"},svg:{path:{fill:"red.700"}}}),hn=o({":hover, :focus":{background:"brand.600"}}),vn={color:"brand.700 !important",bg:"brand.50 !important",opacity:"0.6 !important",filter:"grayscale() !important"},yn=o({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:{...vn},":hover[disabled], :focus[disabled]":{...vn},_active:{bg:"brand.100",color:"brand.600",svg:{path:{fill:"brand.600"}}}}),gn=o({border:"solid 2px",borderColor:"brand.600",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),mn=o({boxShadow:"none",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),bn=a({baseStyle:{boxShadow:"0px 8px 16px 0px rgba(0,0,0,0.08)",svg:{width:"1em",height:"1em",path:{fill:"white"}}},sizes:{xs:o({lineHeight:1})},variants:{alert:dn,outline:gn,ghost:mn,secondary:yn,solid:hn}}),{definePartsStyle:wn,defineMultiStyleConfig:xn}=i(cr.keys),On=xn({baseStyle:wn({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"}}}),_n=a({sizes:{sm:{text:{fontSize:"xs"}},xs:{text:{fontSize:"xs"}}}}),jn=a({baseStyle:{display:"inline-block",color:tn.sonicSilver(),fontFamily:"heading",fontSize:"sm",cursor:"pointer",_disabled:{opacity:1}},sizes:{sm:{fontSize:"sm"},xs:{fontSize:"xs"}}}),Pn=a({sizes:{xl:o({fontSize:"4xl"}),lg:o({fontSize:"3xl"}),md:o({fontSize:"2xl"}),sm:o({fontSize:"xl"}),xs:o({fontSize:"md"})}}),{definePartsStyle:An,defineMultiStyleConfig:Mn}=i(lr.keys),kn=Mn({baseStyle:An({group:{"svg:not(.asset-logo)":{width:"1em",height:"1em"}},field:{_readOnly:{pointerEvents:"none"}}}),sizes:{lg:An({field:{fontSize:"md"}})},variants:{outline:{group:{"svg:not(.asset-logo)":{path:{fill:tn.sonicSilver()}},_groupFocus:{"svg:not(.asset-logo)":{path:{fill:tn.black()}}},_groupDisabled:{"svg:not(.asset-logo)":{path:{fill:tn.coolElegance()}}}},field:{border:"solid 1px",borderRadius:"lg",borderColor:tn.coolElegance(),color:tn.sonicSilver(),":focus":{color:tn.black(),borderColor:tn.black()},":hover:not([disabled])":{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},_disabled:{color:tn.sonicSilver(),opacity:1,bg:tn.lighthouse(),":focus, :hover":{borderColor:tn.coolElegance(),bg:tn.lighthouse()}},_invalid:{":focus, :hover":{borderColor:"red.500"}}},addon:{bg:"white",border:"solid 1px",borderRadius:"lg",borderColor:tn.coolElegance(),color:tn.black(),":hover:not([disabled])":{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},":focus":{borderColor:tn.black()},_disabled:{color:tn.sonicSilver(),opacity:1,bg:tn.lighthouse(),":focus, :hover":{borderColor:tn.coolElegance(),bg:tn.lighthouse()}},_invalid:{":focus, :hover":{borderColor:"red.500"}}}}},defaultProps:{size:"lg",variant:"outline"}}),{definePartsStyle:Cn,defineMultiStyleConfig:En}=i(ur.keys),Tn=En({baseStyle:Cn({field:{_readOnly:{pointerEvents:"none"}}}),sizes:{lg:Cn({field:{fontSize:"md"}})},variants:{outline:{field:{border:"solid 1px",borderColor:tn.coolElegance(),borderRadius:"lg",color:tn.sonicSilver(),pr:10,_focus:{color:tn.black(),borderColor:tn.black(),"+.chakra-select__icon-wrapper":{svg:{color:tn.black(),path:{fill:tn.black()}}}},":hover:not([disabled])":{boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},_disabled:{color:tn.sonicSilver(),opacity:1,bg:tn.lighthouse(),":focus, :hover":{borderColor:tn.coolElegance(),bg:tn.lighthouse()}},_invalid:{":focus, :hover":{borderColor:"red.500"}}},icon:{width:"1em",height:"1em",fontSize:"1em",mr:2,path:{fill:tn.sonicSilver()},_disabled:{opacity:1,path:{fill:tn.coolElegance()}}}}},defaultProps:{size:"lg",variant:"outline"}}),Dn=a({variants:{simple:{th:{borderColor:tn.coolElegance()},td:{borderColor:tn.coolElegance()},tr:{_last:{td:{border:"none"}}}},grayHeader:{th:{background:tn.lighthouse(),color:tn.sonicSilver(),borderBottom:"1px solid",borderColor:tn.coolElegance()},td:{borderBottom:"1px solid",borderColor:tn.coolElegance()},tr:{_last:{td:{border:"none"}}}}}}),{definePartsStyle:In,defineMultiStyleConfig:Nn}=i(sr.keys),Rn=In({container:{color:"blackAlpha.900",fontWeight:"bold",borderRadius:"full",svg:{path:{fill:"blackAlpha.900"}}}}),Ln=In({container:{bg:"red.100",borderWidth:1,borderColor:"red.500"}}),Bn=In({container:{bg:"yellow.100",borderColor:"yellow.500",borderWidth:1}});var zn=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:un,Alert:pn,Button:bn,Checkbox:On,Input:kn,Heading:Pn,Form:Sn,FormLabel:jn,FormError:_n,Select:Tn,Table:Dn,Tag:Nn({baseStyle:Rn,defaultProps:{variant:"outline"},variants:{error:Ln,success:In({container:{bg:"green.100",borderColor:"green.500",borderWidth:1}}),warning:Bn,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:{"*:focus-visible":{outlineColor:"brand.500 !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))"}}}},l({colorScheme:"brand"}));const $n={components:zn.components,styles:zn.styles},Hn=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 Fn,Un,Vn=(t=21)=>{var e;e=t|=0,!Fn||Fn.length<e?(Fn=Buffer.allocUnsafe(128*e),ut.randomFillSync(Fn),Un=0):Un+e>Fn.length&&(ut.randomFillSync(Fn),Un=0),Un+=e;let r="";for(let e=Un-t;e<Un;e++)r+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&Fn[e]];return r};function Wn(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=Wn(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Zn(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=Wn(t))&&(n&&(n+=" "),n+=e);return n}var qn,Yn,Gn,Xn,Kn,Jn,Qn,ti,ei,ri,ni,ii,oi,ai,ci,li,ui,si,fi,pi,di,hi,vi,yi,gi,mi,bi,wi,xi,Oi,Si,_i,ji,Pi,Ai,Mi,ki,Ci,Ei,Ti,Di,Ii,Ni,Ri,Li,Bi,zi,$i,Hi,Fi,Ui,Vi,Wi,Zi,qi,Yi,Gi,Xi,Ki,Ji,Qi,to,eo,ro,no,io,oo,ao,co,lo,uo,so,fo,po,ho,vo,yo,go,mo,bo,wo,xo,Oo,So,_o,jo,Po,Ao,Mo,ko,Co,Eo,To,Do,Io,No,Ro,Lo,Bo,zo,$o,Ho,Fo,Uo;function Vo(){if(Yn)return qn;Yn=1;var t=Array.isArray;return qn=t}function Wo(){if(Xn)return Gn;Xn=1;var t="object"==typeof jr&&jr&&jr.Object===Object&&jr;return Gn=t}function Zo(){if(Jn)return Kn;Jn=1;var t=Wo(),e="object"==typeof self&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return Kn=r}function qo(){if(ti)return Qn;ti=1;var t=Zo().Symbol;return Qn=t}function Yo(){if(ai)return oi;ai=1;var t=qo(),e=function(){if(ri)return ei;ri=1;var t=qo(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,i=t?t.toStringTag:void 0;return ei=function(t){var e=r.call(t,i),o=t[i];try{t[i]=void 0;var a=!0}catch(t){}var c=n.call(t);return a&&(e?t[i]=o:delete t[i]),c}}(),r=function(){if(ii)return ni;ii=1;var t=Object.prototype.toString;return ni=function(e){return t.call(e)}}(),n=t?t.toStringTag:void 0;return oi=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":n&&n in Object(t)?e(t):r(t)}}function Go(){if(li)return ci;return li=1,ci=function(t){return null!=t&&"object"==typeof t}}function Xo(){if(si)return ui;si=1;var t=Yo(),e=Go();return ui=function(r){return"symbol"==typeof r||e(r)&&"[object Symbol]"==t(r)}}function Ko(){if(pi)return fi;pi=1;var t=Vo(),e=Xo(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return fi=function(i,o){if(t(i))return!1;var a=typeof i;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=i&&!e(i))||(n.test(i)||!r.test(i)||null!=o&&i in Object(o))},fi}function Jo(){if(hi)return di;return hi=1,di=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}}function Qo(){if(yi)return vi;yi=1;var t=Yo(),e=Jo();return vi=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 ta(){if(wi)return bi;wi=1;var t,e=function(){if(mi)return gi;mi=1;var t=Zo()["__core-js_shared__"];return gi=t}(),r=(t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return bi=function(t){return!!r&&r in t}}function ea(){if(Oi)return xi;Oi=1;var t=Function.prototype.toString;return xi=function(e){if(null!=e){try{return t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}}function ra(){if(Mi)return Ai;Mi=1;var t=function(){if(_i)return Si;_i=1;var t=Qo(),e=ta(),r=Jo(),n=ea(),i=/^\[object .+?Constructor\]$/,o=Function.prototype,a=Object.prototype,c=o.toString,l=a.hasOwnProperty,u=RegExp("^"+c.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return Si=function(o){return!(!r(o)||e(o))&&(t(o)?u:i).test(n(o))}}(),e=(Pi||(Pi=1,ji=function(t,e){return null==t?void 0:t[e]}),ji);return Ai=function(r,n){var i=e(r,n);return t(i)?i:void 0},Ai}function na(){if(Ci)return ki;Ci=1;var t=ra()(Object,"create");return ki=t}function ia(){if(Fi)return Hi;Fi=1;var t=function(){if(Ti)return Ei;Ti=1;var t=na();return Ei=function(){this.__data__=t?t(null):{},this.size=0}}(),e=Ii?Di:(Ii=1,Di=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}),r=function(){if(Ri)return Ni;Ri=1;var t=na(),e=Object.prototype.hasOwnProperty;return Ni=function(r){var n=this.__data__;if(t){var i=n[r];return"__lodash_hash_undefined__"===i?void 0:i}return e.call(n,r)?n[r]:void 0}}(),n=function(){if(Bi)return Li;Bi=1;var t=na(),e=Object.prototype.hasOwnProperty;return Li=function(r){var n=this.__data__;return t?void 0!==n[r]:e.call(n,r)}}(),i=function(){if($i)return zi;$i=1;var t=na();return zi=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 o(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 o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,Hi=o}function oa(){if(Zi)return Wi;return Zi=1,Wi=function(t,e){return t===e||t!=t&&e!=e}}function aa(){if(Yi)return qi;Yi=1;var t=oa();return qi=function(e,r){for(var n=e.length;n--;)if(t(e[n][0],r))return n;return-1},qi}function ca(){if(io)return no;io=1;var t=Vi?Ui:(Vi=1,Ui=function(){this.__data__=[],this.size=0}),e=function(){if(Xi)return Gi;Xi=1;var t=aa(),e=Array.prototype.splice;return Gi=function(r){var n=this.__data__,i=t(n,r);return!(i<0||(i==n.length-1?n.pop():e.call(n,i,1),--this.size,0))}}(),r=function(){if(Ji)return Ki;Ji=1;var t=aa();return Ki=function(e){var r=this.__data__,n=t(r,e);return n<0?void 0:r[n][1]}}(),n=function(){if(to)return Qi;to=1;var t=aa();return Qi=function(e){return t(this.__data__,e)>-1}}(),i=function(){if(ro)return eo;ro=1;var t=aa();return eo=function(e,r){var n=this.__data__,i=t(n,e);return i<0?(++this.size,n.push([e,r])):n[i][1]=r,this}}();function o(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 o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,no=o}function la(){if(ao)return oo;ao=1;var t=ra()(Zo(),"Map");return oo=t}function ua(){if(po)return fo;po=1;var t=so?uo:(so=1,uo=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t});return fo=function(e,r){var n=e.__data__;return t(r)?n["string"==typeof r?"string":"hash"]:n.map},fo}function sa(){if(So)return Oo;So=1;var t=function(){if(lo)return co;lo=1;var t=ia(),e=ca(),r=la();return co=function(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}}(),e=function(){if(vo)return ho;vo=1;var t=ua();return ho=function(e){var r=t(this,e).delete(e);return this.size-=r?1:0,r}}(),r=function(){if(go)return yo;go=1;var t=ua();return yo=function(e){return t(this,e).get(e)}}(),n=function(){if(bo)return mo;bo=1;var t=ua();return mo=function(e){return t(this,e).has(e)}}(),i=function(){if(xo)return wo;xo=1;var t=ua();return wo=function(e,r){var n=t(this,e),i=n.size;return n.set(e,r),this.size+=n.size==i?0:1,this}}();function o(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 o.prototype.clear=t,o.prototype.delete=e,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,Oo=o}function fa(){if(jo)return _o;jo=1;var t=sa();function e(r,n){if("function"!=typeof r||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var i=function(){var t=arguments,e=n?n.apply(this,t):t[0],o=i.cache;if(o.has(e))return o.get(e);var a=r.apply(this,t);return i.cache=o.set(e,a)||o,a};return i.cache=new(e.Cache||t),i}return e.Cache=t,_o=e}function pa(){if(ko)return Mo;ko=1;var t=function(){if(Ao)return Po;Ao=1;var t=fa();return Po=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,i,o){n.push(i?o.replace(r,"$1"):e||t)})),n}));return Mo=n}function da(){if(Eo)return Co;return Eo=1,Co=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i},Co}function ha(){if(No)return Io;No=1;var t=function(){if(Do)return To;Do=1;var t=qo(),e=da(),r=Vo(),n=Xo(),i=t?t.prototype:void 0,o=i?i.toString:void 0;return To=function t(i){if("string"==typeof i)return i;if(r(i))return e(i,t)+"";if(n(i))return o?o.call(i):"";var a=i+"";return"0"==a&&1/i==-1/0?"-0":a},To}();return Io=function(e){return null==e?"":t(e)}}function va(){if(Lo)return Ro;Lo=1;var t=Vo(),e=Ko(),r=pa(),n=ha();return Ro=function(i,o){return t(i)?i:e(i,o)?[i]:r(n(i))},Ro}function ya(){if(zo)return Bo;zo=1;var t=Xo();return Bo=function(e){if("string"==typeof e||t(e))return e;var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}}function ga(){if(Ho)return $o;Ho=1;var t=va(),e=ya();return $o=function(r,n){for(var i=0,o=(n=t(n,r)).length;null!=r&&i<o;)r=r[e(n[i++])];return i&&i==o?r:void 0},$o}function ma(){if(Uo)return Fo;Uo=1;var t=ga();return Fo=function(e,r,n){var i=null==e?void 0:t(e,r);return void 0===i?n:i},Fo}var ba,wa,xa=Pr(ma());var Oa,Sa,_a=Pr(wa?ba:(wa=1,ba=function(t){return null==t}));var ja,Pa=function(){if(Sa)return Oa;Sa=1;var t=Yo(),e=Vo(),r=Go();return Oa=function(n){return"string"==typeof n||!e(n)&&r(n)&&"[object String]"==t(n)}}(),Aa=Pr(Pa),Ma=Pr(Qo()),ka=Pr(Jo()),Ca={exports:{}},Ea={};var Ta,Da,Ia={};
|
|
10
10
|
/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-is.development.js
|
|
@@ -28,7 +28,7 @@ var $r={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,patte
|
|
|
28
28
|
object-assign
|
|
29
29
|
(c) Sindre Sorhus
|
|
30
30
|
@license MIT
|
|
31
|
-
*/function F_(){if(M_)return A_;M_=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return A_=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,i){for(var o,a,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(n),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))e.call(o,u)&&(c[u]=o[u]);if(t){a=t(o);for(var s=0;s<a.length;s++)r.call(o,a[s])&&(c[a[s]]=o[a[s]])}}return c},A_}function U_(){if(C_)return k_;C_=1;return k_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function V_(){return T_?E_:(T_=1,E_=Function.call.bind(Object.prototype.hasOwnProperty))}function W_(){if(I_)return D_;I_=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=U_(),r={},n=V_();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function i(i,o,a,c,l){if("production"!==process.env.NODE_ENV)for(var u in i)if(n(i,u)){var s;try{if("function"!=typeof i[u]){var f=Error((c||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=i[u](o,u,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+u+"` 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=l?l():"";t("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},D_=i}function Z_(){if(R_)return N_;R_=1;var t=H_(),e=F_(),r=U_(),n=V_(),i=W_(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),N_=function(c,l){var u="function"==typeof Symbol&&Symbol.iterator,s="@@iterator";var f="<<anonymous>>",p={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:v(a),arrayOf:function(t){return v((function(e,n,i,o,a){if("function"!=typeof t)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new h("Invalid "+o+" `"+a+"` of type `"+b(c)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<c.length;l++){var u=t(c,l,i,o,a+"["+l+"]",r);if(u instanceof Error)return u}return null}))},element:v((function(t,e,r,n,i){var o=t[e];return c(o)?null:new h("Invalid "+n+" `"+i+"` of type `"+b(o)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:v((function(e,r,n,i,o){var a=e[r];return t.isValidElementType(a)?null:new h("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return v((function(e,r,n,i,o){if(!(e[r]instanceof t)){var a=t.name||f;return new h("Invalid "+i+" `"+o+"` 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:v((function(t,e,r,n,i){return m(t[e])?null:new h("Invalid "+n+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return v((function(e,i,o,a,c){if("function"!=typeof t)return new h("Property `"+c+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var l=e[i],u=b(l);if("object"!==u)return new h("Invalid "+a+" `"+c+"` of type `"+u+"` supplied to `"+o+"`, expected an object.");for(var s in l)if(n(l,s)){var f=t(l,s,o,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&&o(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 v((function(e,r,n,i,o){for(var a=e[r],c=0;c<t.length;c++)if(d(a,t[c]))return null;var l=JSON.stringify(t,(function(t,e){return"symbol"===w(e)?String(e):e}));return new h("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+l+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var i=t[e];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(i)+" at index "+e+"."),a}return v((function(e,i,o,a,c){for(var l=[],u=0;u<t.length;u++){var s=(0,t[u])(e,i,o,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&l.push(s.data.expectedType)}return new h("Invalid "+a+" `"+c+"` supplied to `"+o+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(t){return v((function(e,n,i,o,a){var c=e[n],l=b(c);if("object"!==l)return new h("Invalid "+o+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var u in t){var s=t[u];if("function"!=typeof s)return g(i,o,a,u,w(s));var f=s(c,u,i,o,a+"."+u,r);if(f)return f}return null}))},exact:function(t){return v((function(i,o,a,c,l){var u=i[o],s=b(u);if("object"!==s)return new h("Invalid "+c+" `"+l+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},i[o],t);for(var p in f){var d=t[p];if(n(t,p)&&"function"!=typeof d)return g(a,c,l,p,w(d));if(!d)return new h("Invalid "+c+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var v=d(u,p,a,c,l+"."+p,r);if(v)return v}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 v(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function i(i,a,c,u,s,p,d){if(u=u||f,p=p||c,d!==r){if(l){var v=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 v.name="Invariant Violation",v}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var y=u+":"+c;!e[y]&&n<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+u+"`. 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[y]=!0,n++)}}return null==a[c]?i?null===a[c]?new h("The "+s+" `"+p+"` is marked as required in `"+u+"`, but its value is `null`."):new h("The "+s+" `"+p+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:t(a,c,u,s,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function y(t){return v((function(e,r,n,i,o,a){var c=e[r];return b(c)!==t?new h("Invalid "+i+" `"+o+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,r,n,i){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 `"+i+"`.")}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&&(u&&t[u]||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 i=r.value;if(i&&!m(i[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=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},N_}function q_(){if(B_)return L_;B_=1;var t=U_();function e(){}function r(){}return r.resetWarningCache=e,L_=function(){function n(e,r,n,i,o,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 i(){return n}n.isRequired=n;var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:e};return o.PropTypes=o,o}}function Y_(){if(z_)return O_.exports;if(z_=1,"production"!==process.env.NODE_ENV){var t=H_();O_.exports=Z_()(t.isElement,true)}else O_.exports=q_()();return O_.exports}var G_=Pr(Y_()),X_=Object.getOwnPropertyNames,K_=Object.getOwnPropertySymbols,J_=Object.prototype.hasOwnProperty;function Q_(t,e){return function(r,n,i){return t(r,n,i)&&e(r,n,i)}}function tj(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var i=n.cache,o=i.get(e),a=i.get(r);if(o&&a)return o===r&&a===e;i.set(e,r),i.set(r,e);var c=t(e,r,n);return i.delete(e),i.delete(r),c}}function ej(t){return X_(t).concat(K_(t))}var rj=Object.hasOwn||function(t,e){return J_.call(t,e)};function nj(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var ij="_owner",oj=Object.getOwnPropertyDescriptor,aj=Object.keys;function cj(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 lj(t,e){return nj(t.getTime(),e.getTime())}function uj(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var l=e.entries(),u=!1,s=0;(i=l.next())&&!i.done;){var f=n.value,p=f[0],d=f[1],h=i.value,v=h[0],y=h[1];u||o[s]||!(u=r.equals(p,v,c,s,t,e,r)&&r.equals(d,y,p,v,t,e,r))||(o[s]=!0),s++}if(!u)return!1;c++}return!0}function sj(t,e,r){var n,i=aj(t),o=i.length;if(aj(e).length!==o)return!1;for(;o-- >0;){if((n=i[o])===ij&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!rj(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function fj(t,e,r){var n,i,o,a=ej(t),c=a.length;if(ej(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===ij&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!rj(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(i=oj(t,n),o=oj(e,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function pj(t,e){return nj(t.valueOf(),e.valueOf())}function dj(t,e){return t.source===e.source&&t.flags===e.flags}function hj(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),l=!1,u=0;(i=c.next())&&!i.done;)l||o[u]||!(l=r.equals(n.value,i.value,n.value,i.value,t,e,r))||(o[u]=!0),u++;if(!l)return!1}return!0}function vj(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 yj="[object Arguments]",gj="[object Boolean]",mj="[object Date]",bj="[object Map]",wj="[object Number]",xj="[object Object]",Oj="[object RegExp]",Sj="[object Set]",_j="[object String]",jj=Array.isArray,Pj="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,Aj=Object.assign,Mj=Object.prototype.toString.call.bind(Object.prototype.toString);var kj=Cj();function Cj(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,i=t.createInternalComparator,o=t.createState,a=t.strict,c=void 0!==a&&a,l=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?fj:cj,areDatesEqual:lj,areMapsEqual:n?Q_(uj,fj):uj,areObjectsEqual:n?fj:sj,arePrimitiveWrappersEqual:pj,areRegExpsEqual:dj,areSetsEqual:n?Q_(hj,fj):hj,areTypedArraysEqual:n?fj:vj};if(r&&(i=Aj({},i,r(i))),e){var o=tj(i.areArraysEqual),a=tj(i.areMapsEqual),c=tj(i.areObjectsEqual),l=tj(i.areSetsEqual);i=Aj({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:l})}return i}(t),u=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,i=t.areObjectsEqual,o=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,l=t.areTypedArraysEqual;return function(t,u,s){if(t===u)return!0;if(null==t||null==u||"object"!=typeof t||"object"!=typeof u)return t!=t&&u!=u;var f=t.constructor;if(f!==u.constructor)return!1;if(f===Object)return i(t,u,s);if(jj(t))return e(t,u,s);if(null!=Pj&&Pj(t))return l(t,u,s);if(f===Date)return r(t,u,s);if(f===RegExp)return a(t,u,s);if(f===Map)return n(t,u,s);if(f===Set)return c(t,u,s);var p=Mj(t);return p===mj?r(t,u,s):p===Oj?a(t,u,s):p===bj?n(t,u,s):p===Sj?c(t,u,s):p===xj?"function"!=typeof t.then&&"function"!=typeof u.then&&i(t,u,s):p===yj?i(t,u,s):(p===gj||p===wj||p===_j)&&o(t,u,s)}}(l),s=i?i(u):(e=u,function(t,r,n,i,o,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,i=t.equals,o=t.strict;if(n)return function(t,a){var c=n(),l=c.cache,u=void 0===l?e?new WeakMap:void 0:l,s=c.meta;return r(t,a,{cache:u,equals:i,meta:s,strict:o})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return r(t,e,a)}}({circular:n,comparator:u,createState:o,equals:s,strict:c})}function Ej(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(i){r<0&&(r=i),i-r>e?(t(i),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function Tj(t){return Tj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tj(t)}function Dj(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 Ij(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 Ij(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 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}function Nj(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var i=Dj(n),o=i[0],a=i.slice(1);return"number"==typeof o?void Ej(r.bind(null,a),o):(r(o),void Ej(r.bind(null,a)))}"object"===Tj(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 Rj(t){return Rj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rj(t)}function Lj(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 Bj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Lj(Object(r),!0).forEach((function(e){zj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Rj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Rj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Rj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Cj({strict:!0}),Cj({circular:!0}),Cj({circular:!0,strict:!0}),Cj({createInternalComparator:function(){return nj}}),Cj({strict:!0,createInternalComparator:function(){return nj}}),Cj({circular:!0,createInternalComparator:function(){return nj}}),Cj({circular:!0,createInternalComparator:function(){return nj},strict:!0});var $j=function(t){return t},Hj=function(t,e){return Object.keys(e).reduce((function(r,n){return Bj(Bj({},r),{},zj({},n,t(n,e[n])))}),{})},Fj=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(",")},Uj="production"!==process.env.NODE_ENV,Vj=function(t,e,r,n,i,o,a,c){if(Uj&&"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 l=[r,n,i,o,a,c],u=0;console.warn(e.replace(/%s/g,(function(){return l[u++]})))}};function Wj(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}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 Zj(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 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 Gj=1e-4,Xj=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Kj=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},Jj=function(t,e){return function(r){var n=Xj(t,e);return Kj(n,r)}},Qj=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],i=e[1],o=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,i=0,o=1,a=1;break;case"ease":n=.25,i=.1,o=.25,a=1;break;case"ease-in":n=.42,i=0,o=1,a=1;break;case"ease-out":n=.42,i=0,o=.58,a=1;break;case"ease-in-out":n=0,i=0,o=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var l=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),u=Wj(l,4);n=u[0],i=u[1],o=u[2],a=u[3]}else Vj(!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)}Vj([n,o,i,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=Jj(n,o),d=Jj(i,a),h=(s=n,f=o,function(t){var e=Xj(s,f),r=[].concat(Zj(e.map((function(t,e){return t*e})).slice(1)),[0]);return Kj(r,t)}),v=function(t){for(var e,r=t>1?1:t,n=r,i=0;i<8;++i){var o=p(n)-r,a=h(n);if(Math.abs(o-r)<Gj||a<Gj)return d(n);n=(e=n-o/a)>1?1:e<0?0:e}return d(n)};return v.isStepper=!1,v},tP=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 Qj(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,i=void 0===n?8:n,o=t.dt,a=void 0===o?17:o,c=function(t,e,n){var o=n+(-(t-e)*r-n*i)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<Gj&&Math.abs(o)<Gj?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return Qj(n);Vj(!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:(Vj(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function eP(t){return eP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eP(t)}function rP(t){return function(t){if(Array.isArray(t))return lP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||cP(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){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?nP(Object(r),!0).forEach((function(e){oP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function oP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==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)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||cP(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 cP(t,e){if(t){if("string"==typeof t)return lP(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)?lP(t,e):void 0}}function lP(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 uP=function(t,e,r){return t+(e-t)*r},sP=function(t){return t.from!==t.to},fP=function t(e,r,n){var i=Hj((function(t,r){if(sP(r)){var n=aP(e(r.from,r.to,r.velocity),2),i=n[0],o=n[1];return iP(iP({},r),{},{from:i,velocity:o})}return r}),r);return n<1?Hj((function(t,e){return sP(e)?iP(iP({},e),{},{velocity:uP(e.velocity,i[t].velocity,n),from:uP(e.from,i[t].from,n)}):e}),r):t(e,i,n-1)},pP=function(t,e,r,n,i){var o,a,c,l,u=(o=t,a=e,[Object.keys(o),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=u.reduce((function(r,n){return iP(iP({},r),{},oP({},n,[t[n],e[n]]))}),{}),f=u.reduce((function(r,n){return iP(iP({},r),{},oP({},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 o=(n-c)/r.dt;f=fP(r,f,o),i(iP(iP(iP({},t),e),Hj((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(sP).length&&(p=requestAnimationFrame(d))}:function(o){l||(l=o);var a=(o-l)/n,c=Hj((function(t,e){return uP.apply(void 0,rP(e).concat([r(a)]))}),s);if(i(iP(iP(iP({},t),e),c)),a<1)p=requestAnimationFrame(d);else{var u=Hj((function(t,e){return uP.apply(void 0,rP(e).concat([r(1)]))}),s);i(iP(iP(iP({},t),e),u))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(p)}}};function dP(t){return dP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dP(t)}var hP=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function vP(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function yP(t){return function(t){if(Array.isArray(t))return gP(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 gP(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 gP(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 gP(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 mP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function bP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mP(Object(r),!0).forEach((function(e){wP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wP(t,e,r){return(e=OP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xP(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,OP(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function OP(t){var e=function(t,e){if("object"!==dP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==dP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===dP(e)?e:String(e)}function SP(t,e){return SP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},SP(t,e)}function _P(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=AP(t);if(e){var i=AP(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return jP(this,r)}}function jP(t,e){if(e&&("object"===dP(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 AP(t){return AP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},AP(t)}var MP=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&&SP(t,e)}(r,ht);var e=_P(r);function r(t,n){var i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var o=(i=e.call(this,t,n)).props,a=o.isActive,c=o.attributeName,l=o.from,u=o.to,s=o.steps,f=o.children,p=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(PP(i)),i.changeStyle=i.changeStyle.bind(PP(i)),!a||p<=0)return i.state={style:{}},"function"==typeof f&&(i.state={style:u}),jP(i);if(s&&s.length)i.state={style:s[0].style};else if(l){if("function"==typeof f)return i.state={style:l},jP(i);i.state={style:c?wP({},c,l):l}}else i.state={style:{}};return i}return xP(r,[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,i=e.attributeName,o=e.shouldReAnimate,a=e.to,c=e.from,l=this.state.style;if(n)if(r){if(!(kj(t.to,a)&&t.canBegin&&t.isActive)){var u=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=u||o?c:t.to;if(this.state&&l){var f={style:i?wP({},i,s):s};(i&&l[i]!==s||!i&&l!==s)&&this.setState(f)}this.runAnimation(bP(bP({},this.props),{},{from:s,begin:0}))}}else{var p={style:i?wP({},i,a):a};this.state&&l&&(i&&l[i]!==a||!i&&l!==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,i=t.duration,o=t.easing,a=t.begin,c=t.onAnimationEnd,l=t.onAnimationStart,u=pP(r,n,tP(o),i,this.changeStyle);this.manager.start([l,a,function(){e.stopJSAnimation=u()},i,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,i=t.onAnimationStart,o=r[0],a=o.style,c=o.duration,l=void 0===c?0:c;return this.manager.start([i].concat(yP(r.reduce((function(t,n,i){if(0===i)return t;var o=n.duration,a=n.easing,c=void 0===a?"ease":a,l=n.style,u=n.properties,s=n.onAnimationEnd,f=i>0?r[i-1]:n,p=u||Object.keys(l);if("function"==typeof c||"spring"===c)return[].concat(yP(t),[e.runJSAnimation.bind(e,{from:f.style,to:l,duration:o,easing:c}),o]);var d=Fj(p,o,c),h=bP(bP(bP({},f.style),l),{},{transition:d});return[].concat(yP(t),[h,o,s]).filter($j)}),[a,Math.max(l,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Nj());var e=t.begin,r=t.duration,n=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,l=t.steps,u=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof o&&"function"!=typeof u&&"spring"!==o)if(l.length>1)this.runStepAnimation(t);else{var f=n?wP({},n,i):i,p=Fj(Object.keys(f),r,o);s.start([a,e,bP(bP({},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 i=vP(t,hP),o=dt.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===o||r<=0)return e;var c=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,o=e.className;return Ot(t,bP(bP({},i),{},{style:bP(bP({},n),a),className:o}))};return 1===o?c(dt.only(e)):ft.createElement("div",null,dt.map(e,(function(t){return c(t)})))}}]),r}();function kP(t){return kP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kP(t)}function CP(){return CP=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},CP.apply(this,arguments)}function EP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return TP(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 TP(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 TP(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 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){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?DP(Object(r),!0).forEach((function(e){NP(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}function NP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=kP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=kP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==kP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}MP.displayName="Animate",MP.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},MP.propTypes={from:G_.oneOfType([G_.object,G_.string]),to:G_.oneOfType([G_.object,G_.string]),attributeName:G_.string,duration:G_.number,begin:G_.number,easing:G_.oneOfType([G_.string,G_.func]),steps:G_.arrayOf(G_.shape({duration:G_.number.isRequired,style:G_.object.isRequired,easing:G_.oneOfType([G_.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),G_.func]),properties:G_.arrayOf("string"),onAnimationEnd:G_.func})),children:G_.oneOfType([G_.node,G_.func]),isActive:G_.bool,canBegin:G_.bool,onAnimationEnd:G_.func,shouldReAnimate:G_.bool,onAnimationStart:G_.func,onAnimationReStart:G_.func};var RP=function(t,e,r,n,i){var o,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,l=r>=0?1:-1,u=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&i instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(o+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(u,",").concat(t+l*s[0],",").concat(e)),o+="L ".concat(t+r-l*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(u,",\n ").concat(t+r,",").concat(e+c*s[1])),o+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(u,",\n ").concat(t+r-l*s[2],",").concat(e+n)),o+="L ".concat(t+l*s[3],",").concat(e+n),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(u,",\n ").concat(t,",").concat(e+n-c*s[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+l*p,",").concat(e,"\n L ").concat(t+r-l*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").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(u,",").concat(t+r-l*p,",").concat(e+n,"\n L ").concat(t+l*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t,",").concat(e+n-c*p," Z")}else o="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return o},LP=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,i=e.x,o=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var l=Math.min(i,i+a),u=Math.max(i,i+a),s=Math.min(o,o+c),f=Math.max(o,o+c);return r>=l&&r<=u&&n>=s&&n<=f}return!1},BP={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},zP=function(t){var e=IP(IP({},BP),t),r=yt(),n=EP(mt(-1),2),i=n[0],o=n[1];wt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,l=e.width,u=e.height,s=e.radius,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,v=e.isAnimationActive,y=e.isUpdateAnimationActive;if(a!==+a||c!==+c||l!==+l||u!==+u||0===l||0===u)return null;var g=Zn("recharts-rectangle",f);return y?ft.createElement(MP,{canBegin:i>0,from:{width:l,height:u,x:a,y:c},to:{width:l,height:u,x:a,y:c},duration:d,animationEasing:p,isActive:y},(function(t){var n=t.width,o=t.height,a=t.x,c=t.y;return ft.createElement(MP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,isActive:v,easing:p},ft.createElement("path",CP({},Sc(e,!0),{className:g,d:RP(a,c,n,o,s),ref:r})))})):ft.createElement("path",CP({},Sc(e,!0),{className:g,d:RP(a,c,l,u,s)}))};function $P(){return $P=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},$P.apply(this,arguments)}var HP=function(t){var e=t.cx,r=t.cy,n=t.r,i=Zn("recharts-dot",t.className);return e===+e&&r===+r&&n===+n?ft.createElement("circle",$P({},Sc(t,!1),cc(t),{className:i,cx:e,cy:r,r:n})):null};function FP(t){return FP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},FP(t)}var UP=["x","y","top","left","width","height","className"];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 WP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ZP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=FP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=FP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==FP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qP(t,e){if(null==t)return{};var r,n,i=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 o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var YP,GP,XP,KP,JP=function(t,e,r,n,i,o){return"M".concat(t,",").concat(i,"v").concat(n,"M").concat(o,",").concat(e,"h").concat(r)},QP=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,i=void 0===n?0:n,o=t.top,a=void 0===o?0:o,c=t.left,l=void 0===c?0:c,u=t.width,s=void 0===u?0:u,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?WP(Object(r),!0).forEach((function(e){ZP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):WP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:i,top:a,left:l,width:s,height:p},qP(t,UP));return Za(r)&&Za(i)&&Za(s)&&Za(p)&&Za(a)&&Za(l)?ft.createElement("path",VP({},Sc(h,!0),{className:Zn("recharts-cross",d),d:JP(r,i,s,p,a,l)})):null};var tA,eA,rA=function(){if(KP)return XP;KP=1;var t=Yo(),e=function(){if(GP)return YP;GP=1;var t=kp()(Object.getPrototypeOf,Object);return YP=t}(),r=Go(),n=Function.prototype,i=Object.prototype,o=n.toString,a=i.hasOwnProperty,c=o.call(Object);return XP=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var i=e(n);if(null===i)return!0;var l=a.call(i,"constructor")&&i.constructor;return"function"==typeof l&&l instanceof l&&o.call(l)==c}}(),nA=Pr(rA);var iA=Pr(function(){if(eA)return tA;eA=1;var t=Yo(),e=Go();return tA=function(r){return!0===r||!1===r||e(r)&&"[object Boolean]"==t(r)}}());function oA(t){return oA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oA(t)}function aA(){return aA=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},aA.apply(this,arguments)}function cA(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return lA(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 lA(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 lA(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 uA(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 sA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?uA(Object(r),!0).forEach((function(e){fA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=oA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=oA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==oA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var pA,dA,hA,vA,yA,gA,mA,bA,wA=function(t,e,r,n,i){var o,a=r-n;return o="M ".concat(t,",").concat(e),o+="L ".concat(t+r,",").concat(e),o+="L ".concat(t+r-a/2,",").concat(e+i),o+="L ".concat(t+r-a/2-n,",").concat(e+i),o+="L ".concat(t,",").concat(e," Z")},xA={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},OA=function(t){var e=sA(sA({},xA),t),r=yt(),n=cA(mt(-1),2),i=n[0],o=n[1];wt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,l=e.upperWidth,u=e.lowerWidth,s=e.height,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,v=e.isUpdateAnimationActive;if(a!==+a||c!==+c||l!==+l||u!==+u||s!==+s||0===l&&0===u||0===s)return null;var y=Zn("recharts-trapezoid",f);return v?ft.createElement(MP,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:l,lowerWidth:u,height:s,x:a,y:c},duration:d,animationEasing:p,isActive:v},(function(t){var n=t.upperWidth,o=t.lowerWidth,a=t.height,c=t.x,l=t.y;return ft.createElement(MP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,easing:p},ft.createElement("path",aA({},Sc(e,!0),{className:y,d:wA(c,l,n,o,a),ref:r})))})):ft.createElement("g",null,ft.createElement("path",aA({},Sc(e,!0),{className:y,d:wA(a,c,l,u,s)})))},SA=["option","shapeType","propTransformer","activeClassName","isActive"];function _A(t){return _A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_A(t)}function jA(t,e){if(null==t)return{};var r,n,i=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 o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function 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 AA(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){MA(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 MA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=_A(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=_A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_A(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kA(t,e){return AA(AA({},e),t)}function CA(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return ft.createElement(zP,r);case"trapezoid":return ft.createElement(OA,r);case"sector":return ft.createElement(u_,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return ft.createElement(gu,r);break;default:return null}}function EA(t){var e,r=t.option,n=t.shapeType,i=t.propTransformer,o=void 0===i?kA:i,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,l=t.isActive,u=jA(t,SA);if(pt(r))e=Ot(r,AA(AA({},u),function(t){return pt(t)?t.props:t}(r)));else if(Ma(r))e=r(u);else if(nA(r)&&!iA(r)){var s=o(r,u);e=ft.createElement(CA,{shapeType:n,elementProps:s})}else{var f=u;e=ft.createElement(CA,{shapeType:n,elementProps:f})}return l?ft.createElement(Xc,{className:c},e):e}function TA(t,e){return null!=e&&"trapezoids"in t.props}function DA(t,e){return null!=e&&"sectors"in t.props}function IA(t,e){return null!=e&&"points"in t.props}function NA(t,e){var r,n,i=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,o=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return i&&o}function RA(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function LA(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function BA(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,i=function(t,e){var r;return TA(t,e)?r="trapezoids":DA(t,e)?r="sectors":IA(t,e)&&(r="points"),r}(r,e),o=function(t,e){var r,n;return TA(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:DA(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:IA(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=vx(o,t),c=r.props[i].filter((function(t){var n=function(t,e){var r;return TA(t,e)?r=NA:DA(t,e)?r=RA:IA(t,e)&&(r=LA),r}(r,e);return n(t,e)})),l=r.props[i].indexOf(c[c.length-1]);return a&&n===l}));return n.indexOf(a[a.length-1])}function zA(){if(vA)return hA;vA=1;var t=hv(),e=1/0;return hA=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 $A(){if(gA)return yA;gA=1;var t=function(){if(dA)return pA;dA=1;var t=Math.ceil,e=Math.max;return pA=function(r,n,i,o){for(var a=-1,c=e(t((n-r)/(i||1)),0),l=Array(c);c--;)l[o?c:++a]=r,r+=i;return l}}(),e=dh(),r=zA();return yA=function(n){return function(i,o,a){return a&&"number"!=typeof a&&e(i,o,a)&&(o=a=void 0),i=r(i),void 0===o?(o=i,i=0):o=r(o),a=void 0===a?i<o?1:-1:r(a),t(i,o,a,n)}}}var HA=function(){if(bA)return mA;bA=1;var t=$A()();return mA=t}(),FA=Pr(HA);function UA(t){return UA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},UA(t)}function VA(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 WA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?VA(Object(r),!0).forEach((function(e){ZA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):VA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ZA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=UA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=UA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==UA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var qA=["Webkit","Moz","O","ms"];function YA(t){return YA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},YA(t)}function GA(){return GA=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},GA.apply(this,arguments)}function XA(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 KA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?XA(Object(r),!0).forEach((function(e){nM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):XA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function JA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,iM(n.key),n)}}function QA(t,e,r){return e=eM(e),function(t,e){if(e&&("object"===YA(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||[],eM(t).constructor):e.apply(t,r))}function tM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(tM=function(){return!!t})()}function eM(t){return eM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},eM(t)}function rM(t,e){return rM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rM(t,e)}function nM(t,e,r){return(e=iM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iM(t){var e=function(t,e){if("object"!=YA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=YA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==YA(e)?e:e+""}var oM,aM,cM,lM,uM=function(t){return t.changedTouches&&!!t.changedTouches.length},sM=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),nM(r=QA(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)})),nM(r,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),nM(r,"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,i=t.startIndex;null==n||n({endIndex:e,startIndex:i})})),r.detachDragEndListener()})),nM(r,"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),nM(r,"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),nM(r,"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),nM(r,"handleSlideDragStart",(function(t){var e=uM(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&&rM(t,e)}(e,ht),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,i=this.state.scaleValues,o=this.props,a=o.gap,c=o.data.length-1,l=Math.min(r,n),u=Math.max(r,n),s=e.getIndexInRange(i,l),f=e.getIndexInRange(i,u);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,i=e.dataKey,o=ZO(r[t],i,t);return Ma(n)?n(o,t):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,i=e.endX,o=this.props,a=o.x,c=o.width,l=o.travellerWidth,u=o.startIndex,s=o.endIndex,f=o.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-l-i,a+c-l-n):p<0&&(p=Math.max(p,a-n,a-i));var d=this.getIndex({startX:n+p,endX:i+p});d.startIndex===u&&d.endIndex===s||!f||f(d),this.setState({startX:n+p,endX:i+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=uM(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,i=e.endX,o=e.startX,a=this.state[n],c=this.props,l=c.x,u=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,d=c.data,h={startX:this.state.startX,endX:this.state.endX},v=t.pageX-r;v>0?v=Math.min(v,l+u-s-a):v<0&&(v=Math.max(v,l-a)),h[n]=a+v;var y=this.getIndex(h),g=y.startIndex,m=y.endIndex;this.setState(nM(nM({},n,a+v),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=d.length-1,("startX"===n&&(i>o?g%p==0:m%p==0)||i<o&&m===t||"endX"===n&&(i>o?m%p==0:g%p==0)||i>o&&m===t)&&f(y))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,i=n.scaleValues,o=n.startX,a=n.endX,c=this.state[e],l=i.indexOf(c);if(-1!==l){var u=l+t;if(!(-1===u||u>=i.length)){var s=i[u];"startX"===e&&s>=a||"endX"===e&&s<=o||this.setState(nM({},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,i=t.height,o=t.fill,a=t.stroke;return ft.createElement("rect",{stroke:a,fill:o,x:e,y:r,width:n,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.data,a=t.children,c=t.padding,l=dt.only(a);return l?ft.cloneElement(l,{x:e,y:r,width:n,height:i,margin:c,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(t,r){var n,i,o=this,a=this.props,c=a.y,l=a.travellerWidth,u=a.height,s=a.traveller,f=a.ariaLabel,p=a.data,d=a.startIndex,h=a.endIndex,v=Math.max(t,this.props.x),y=KA(KA({},Sc(this.props,!1)),{},{x:v,y:c,width:l,height:u}),g=f||"Min value: ".concat(null===(n=p[d])||void 0===n?void 0:n.name,", Max value: ").concat(null===(i=p[h])||void 0===i?void 0:i.name);return ft.createElement(Xc,{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(),o.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(s,y))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,i=r.height,o=r.stroke,a=r.travellerWidth,c=Math.min(t,e)+a,l=Math.max(Math.abs(e-t)-a,0);return ft.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:c,y:n,width:l,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,i=t.height,o=t.travellerWidth,a=t.stroke,c=this.state,l=c.startX,u=c.endX,s={pointerEvents:"none",fill:a};return ft.createElement(Xc,{className:"recharts-brush-texts"},ft.createElement(ly,GA({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:n+i/2},s),this.getTextOfTick(e)),ft.createElement(ly,GA({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+o+5,y:n+i/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,i=t.x,o=t.y,a=t.width,c=t.height,l=t.alwaysShowText,u=this.state,s=u.startX,f=u.endX,p=u.isTextActive,d=u.isSlideMoving,h=u.isTravellerMoving,v=u.isTravellerFocused;if(!e||!e.length||!Za(i)||!Za(o)||!Za(a)||!Za(c)||a<=0||c<=0)return null;var y,g,m,b,w=Zn("recharts-brush",r),x=1===ft.Children.count(n),O=(g="none",m=(y="userSelect").replace(/(\w)/,(function(t){return t.toUpperCase()})),(b=qA.reduce((function(t,e){return WA(WA({},t),{},ZA({},e+m,g))}),{}))[y]=g,b);return ft.createElement(Xc,{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||v||l)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,i=t.height,o=t.stroke,a=Math.floor(r+i/2)-1;return ft.createElement(ft.Fragment,null,ft.createElement("rect",{x:e,y:r,width:n,height:i,fill:o,stroke:"none"}),ft.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),ft.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 ft.isValidElement(t)?ft.cloneElement(t,r):Ma(t)?t(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,c=t.startIndex,l=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return KA({prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,i=t.x,o=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,l=Ly().domain(FA(0,c)).range([i,i+o-a]),u=l.domain().map((function(t){return l(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(r),endX:l(n),scale:l,scaleValues:u}}({data:r,width:n,x:i,travellerWidth:o,startIndex:c,endIndex:l}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+n-o]);var u=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i}return e>=t[n]?n:r}}],n&&JA(r.prototype,n),i&&JA(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();nM(sM,"displayName","Brush"),nM(sM,"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 fM,pM,dM,hM,vM=function(){if(lM)return cM;lM=1;var t=Ps(),e=Vp(),r=function(){if(aM)return oM;aM=1;var t=oh();return oM=function(e,r){var n;return t(e,(function(t,e,i){return!(n=r(t,e,i))})),!!n}}(),n=Vo(),i=dh();return cM=function(o,a,c){var l=n(o)?t:r;return c&&i(o,a,c)&&(a=void 0),l(o,e(a,3))}}(),yM=Pr(vM),gM=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e};var mM,bM,wM,xM,OM,SM,_M=function(){if(hM)return dM;hM=1;var t=function(){if(pM)return fM;pM=1;var t=sh();return fM=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n},fM}(),e=ih(),r=Vp();return dM=function(n,i){var o={};return i=r(i,3),e(n,(function(e,r,n){t(o,r,i(e,r,n))})),o},dM}(),jM=Pr(_M);var PM=function(){if(SM)return OM;SM=1;var t=(bM||(bM=1,mM=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}),mM),e=function(){if(xM)return wM;xM=1;var t=oh();return wM=function(e,r){var n=!0;return t(e,(function(t,e,i){return n=!!r(t,e,i)})),n}}(),r=Vp(),n=Vo(),i=dh();return OM=function(o,a,c){var l=n(o)?t:e;return c&&i(o,a,c)&&(a=void 0),l(o,r(a,3))}}(),AM=Pr(PM),MM=["x","y"];function kM(t){return kM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kM(t)}function CM(){return CM=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},CM.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 TM(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){DM(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 DM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=kM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=kM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==kM(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function IM(t,e){if(null==t)return{};var r,n,i=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 o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function NM(t,e){var r=t.x,n=t.y,i=IM(t,MM),o="".concat(r),a=parseInt(o,10),c="".concat(n),l=parseInt(c,10),u="".concat(e.height||i.height),s=parseInt(u,10),f="".concat(e.width||i.width),p=parseInt(f,10);return TM(TM(TM(TM(TM({},e),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function RM(t){return ft.createElement(EA,CM({shapeType:"rectangle",propTransformer:NM,activeClassName:"recharts-active-bar"},t))}var LM,BM=["value","background"];function zM(t){return zM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zM(t)}function $M(t,e){if(null==t)return{};var r,n,i=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 o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function HM(){return HM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},HM.apply(this,arguments)}function 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){GM(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){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,XM(n.key),n)}}function WM(t,e,r){return e=qM(e),function(t,e){if(e&&("object"===zM(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,ZM()?Reflect.construct(e,r||[],qM(t).constructor):e.apply(t,r))}function ZM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ZM=function(){return!!t})()}function qM(t){return qM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qM(t)}function YM(t,e){return YM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},YM(t,e)}function GM(t,e,r){return(e=XM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XM(t){var e=function(t,e){if("object"!=zM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=zM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==zM(e)?e:e+""}var KM=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),i=0;i<r;i++)n[i]=arguments[i];return GM(t=WM(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),GM(t,"id",Ga("recharts-bar-")),GM(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),GM(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&&YM(t,e)}(e,ht),r=e,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,i=r.dataKey,o=r.activeIndex,a=r.activeBar,c=Sc(this.props,!1);return t&&t.map((function(t,r){var l=r===o,u=l?a:n,s=UM(UM(UM({},c),t),{},{isActive:l,option:u,index:r,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return ft.createElement(Xc,HM({className:"recharts-bar-rectangle"},lc(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,"-").concat(r)}),ft.createElement(RM,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,i=e.isAnimationActive,o=e.animationBegin,a=e.animationDuration,c=e.animationEasing,l=e.animationId,u=this.state.prevData;return ft.createElement(MP,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,o=r.map((function(t,e){var r=u&&u[e];if(r){var o=Ja(r.x,t.x),a=Ja(r.y,t.y),c=Ja(r.width,t.width),l=Ja(r.height,t.height);return UM(UM({},t),{},{x:o(i),y:a(i),width:c(i),height:l(i)})}if("horizontal"===n){var s=Ja(0,t.height)(i);return UM(UM({},t),{},{y:t.y+t.height-s,height:s})}var f=Ja(0,t.width)(i);return UM(UM({},t),{},{width:f})}));return ft.createElement(Xc,null,t.renderRectanglesStatically(o))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&vx(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,i=e.activeIndex,o=Sc(this.props.background,!1);return r.map((function(e,r){e.value;var a=e.background,c=$M(e,BM);if(!a)return null;var l=UM(UM(UM(UM(UM({},c),{},{fill:"#eee"},a),o),lc(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return ft.createElement(RM,HM({key:"background-bar-".concat(r),option:t.props.background,isActive:r===i},l))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,i=r.xAxis,o=r.yAxis,a=r.layout,c=mc(r.children,IO);if(!c)return null;var l="vertical"===a?n[0].height/2:n[0].width/2,u=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:ZO(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return ft.createElement(Xc,s,c.map((function(t){return ft.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,offset:l,dataPointFormatter:u})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,i=t.xAxis,o=t.yAxis,a=t.left,c=t.top,l=t.width,u=t.height,s=t.isAnimationActive,f=t.background,p=t.id;if(e||!r||!r.length)return null;var d=this.state.isAnimationFinished,h=Zn("recharts-bar",n),v=i&&i.allowDataOverflow,y=o&&o.allowDataOverflow,g=v||y,m=_a(p)?this.id:p;return ft.createElement(Xc,{className:h},v||y?ft.createElement("defs",null,ft.createElement("clipPath",{id:"clipPath-".concat(m)},ft.createElement("rect",{x:v?a:a-l/2,y:y?c:c-u/2,width:v?l:2*l,height:y?u:2*u}))):null,ft.createElement(Xc,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(m,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,m),(!s||d)&&t_.renderCallByParent(this.props,r))}}],i=[{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&&VM(r.prototype,n),i&&VM(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();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 QM(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,nk(n.key),n)}}function tk(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 ek(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tk(Object(r),!0).forEach((function(e){rk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function rk(t,e,r){return(e=nk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nk(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"===e?String:Number)(t)}(t,"string");return"symbol"==JM(e)?e:e+""}LM=KM,GM(KM,"displayName","Bar"),GM(KM,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Fh,animationBegin:0,animationDuration:400,animationEasing:"ease"}),GM(KM,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,c=t.xAxisTicks,l=t.yAxisTicks,u=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,v=r.type.defaultProps,y=void 0!==v?UM(UM({},v),r.props):r.props,g=y.dataKey,m=y.children,b=y.minPointSize,w="horizontal"===h?a:o,x=u?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]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]}({numericAxis:w}),S=mc(m,jv),_=f.map((function(t,e){var n,f,p,v,y,m;u?n=function(t,e){if(!e||2!==e.length||!Za(e[0])||!Za(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!Za(t[0])||t[0]<r)&&(i[0]=r),(!Za(t[1])||t[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i}(u[s+e],x):(n=ZO(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 i="number"==typeof r;return i?t(r,n):(i||("production"!==process.env.NODE_ENV?wO(0,"minPointSize callback function received a value with type of ".concat(kM(r),". Currently only numbers are supported.")):wO()),e)}}(b,LM.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=oS({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:t,index:e}),p=null!==(_=null!=A?A:P)&&void 0!==_?_:void 0,v=d.size;var M=P-A;if(y=Number.isNaN(M)?0:M,m={x:f,y:a.y,width:v,height:a.height},Math.abs(w)>0&&Math.abs(y)<Math.abs(w)){var k=Va(y||w)*(Math.abs(w)-Math.abs(y));p-=k,y+=k}}else{var C=[o.scale(n[0]),o.scale(n[1])],E=C[0],T=C[1];if(f=E,p=oS({axis:a,ticks:l,bandSize:i,offset:d.offset,entry:t,index:e}),v=T-E,y=d.size,m={x:o.x,y:p,width:o.width,height:y},Math.abs(w)>0&&Math.abs(v)<Math.abs(w))v+=Va(v||w)*(Math.abs(w)-Math.abs(v))}return UM(UM(UM({},t),{},{x:f,y:p,width:v,height:y,value:u?n:n[1],payload:t,background:m},S&&S[e]&&S[e].props),{},{tooltipPayload:[pS(r,t)],tooltipPosition:{x:f+v/2,y:p+y/2}})}));return UM({data:_,layout:h},p)}));var ik=function(t,e,r,n,i){var o=t.width,a=t.height,c=t.layout,l=t.children,u=Object.keys(e),s={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!bc(l,KM);return u.reduce((function(o,a){var l,u,p,d,h,v=e[a],y=v.orientation,g=v.domain,m=v.padding,b=void 0===m?{}:m,w=v.mirror,x=v.reversed,O="".concat(y).concat(w?"Mirror":"");if("number"===v.type&&("gap"===v.padding||"no-gap"===v.padding)){var S=g[1]-g[0],_=1/0,j=v.categoricalDomain.sort(tc);if(j.forEach((function(t,e){e>0&&(_=Math.min((t||0)-(j[e-1]||0),_))})),Number.isFinite(_)){var P=_/S,A="vertical"===v.layout?r.height:r.width;if("gap"===v.padding&&(l=P*A/2),"no-gap"===v.padding){var M=Xa(t.barCategoryGap,P*A),k=P*A/2;l=k-M-(k-M)/A*M}}}u="xAxis"===n?[r.left+(b.left||0)+(l||0),r.left+r.width-(b.right||0)-(l||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(l||0),r.top+r.height-(b.bottom||0)-(l||0)]:v.range,x&&(u=[u[1],u[0]]);var C=function(t,e,r){var n=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===n)return"radial"===o&&"radiusAxis"===a?{scale:Ny(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:om(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:Ly(),realScaleType:"point"}:"category"===i?{scale:Ny(),realScaleType:"band"}:{scale:om(),realScaleType:"linear"};if(Aa(n)){var c="scale".concat(nl(n));return{scale:(Xw[c]||Ly)(),realScaleType:Xw[c]?c:"point"}}return Ma(n)?{scale:n}:{scale:Ly(),realScaleType:"point"}}(v,i,f),E=C.scale,T=C.realScaleType;E.domain(g).range(u),function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),i=Math.min(n[0],n[1])-eS,o=Math.max(n[0],n[1])+eS,a=t(e[0]),c=t(e[r-1]);(a<i||a>o||c<i||c>o)&&t.domain([e[0],e[r-1]])}}(E);var D=function(t,e){var r=e.realScaleType,n=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===n&&o&&("auto"===o[0]||"auto"===o[1])){var l=t.domain();if(!l.length)return null;var u=yO(l,i,a);return t.domain([ux(u),nx(u)]),{niceTicks:u}}if(i&&"number"===n){var s=t.domain();return{niceTicks:gO(s,i,a)}}return null}(E,ek(ek({},v),{},{realScaleType:T}));"xAxis"===n?(h="top"===y&&!w||"bottom"===y&&w,p=r.left,d=s[O]-h*v.height):"yAxis"===n&&(h="left"===y&&!w||"right"===y&&w,p=s[O]-h*v.width,d=r.top);var I=ek(ek(ek({},v),D),{},{realScaleType:T,x:p,y:d,scale:E,width:"xAxis"===n?r.width:v.width,height:"yAxis"===n?r.height:v.height});return I.bandSize=sS(I,D),v.hide||"xAxis"!==n?v.hide||(s[O]+=(h?-1:1)*I.width):s[O]+=(h?-1:1)*I.height,ek(ek({},o),{},rk({},a,I))}),{})},ok=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return{x:Math.min(r,i),y:Math.min(n,o),width:Math.abs(i-r),height:Math.abs(o-n)}},ak=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 i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&QM(e.prototype,r),n&&QM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();rk(ak,"EPS",1e-4);var ck=function(t){var e=Object.keys(t).reduce((function(e,r){return ek(ek({},e),{},rk({},r,ak.create(t[r])))}),{});return ek(ek({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return jM(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:i})}))},isInRange:function(t){return AM(t,(function(t,r){return e[r].isInRange(t)}))}})};var lk,uk,sk,fk,pk,dk,hk,vk,yk=function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=n*Math.PI/180,o=Math.atan(r/e),a=i>o&&i<Math.PI-o?r/Math.sin(i):e/Math.cos(i);return Math.abs(a)};function gk(){if(dk)return pk;dk=1;var t=Wp(),e=Vp(),r=function(){if(fk)return sk;fk=1;var t=zA();return sk=function(e){var r=t(e),n=r%1;return r==r?n?r-n:r:0}}(),n=Math.max;return pk=function(i,o,a){var c=null==i?0:i.length;if(!c)return-1;var l=null==a?0:r(a);return l<0&&(l=n(c+l,0)),t(i,e(o,3),l)},pk}!function(){if(vk)return hk;vk=1;var t=function(){if(uk)return lk;uk=1;var t=Vp(),e=Ep(),r=Tp();return lk=function(n){return function(i,o,a){var c=Object(i);if(!e(i)){var l=t(o,3);i=r(i),o=function(t){return l(c[t],t,c)}}var u=n(i,o,a);return u>-1?c[l?i[u]:u]:void 0}}}(),e=t(gk());hk=e}();var mk=Pr(fa())((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 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)}var wk=jt(void 0),xk=jt(void 0),Ok=jt(void 0),Sk=jt({}),_k=jt(void 0),jk=jt(0),Pk=jt(0),Ak=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,i=e.offset,o=t.clipPathId,a=t.children,c=t.width,l=t.height,u=mk(i);return ft.createElement(wk.Provider,{value:r},ft.createElement(xk.Provider,{value:n},ft.createElement(Sk.Provider,{value:i},ft.createElement(Ok.Provider,{value:u},ft.createElement(_k.Provider,{value:o},ft.createElement(jk.Provider,{value:l},ft.createElement(Pk.Provider,{value:c},a)))))))};function Mk(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var kk=function(t){var e=_t(wk);null==e&&("production"!==process.env.NODE_ENV?wO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):wO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?wO(0,'Could not find xAxis by id "'.concat(t,'" [').concat(bk(t),"]. ").concat(Mk(e))):wO()),r},Ck=function(t){var e=_t(xk);null==e&&("production"!==process.env.NODE_ENV?wO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):wO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?wO(0,'Could not find yAxis by id "'.concat(t,'" [').concat(bk(t),"]. ").concat(Mk(e))):wO()),r},Ek=function(){return _t(Pk)},Tk=function(){return _t(jk)};function Dk(t){return Dk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dk(t)}function Ik(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,Fk(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Nk(t,e,r){return e=Lk(e),function(t,e){if(e&&("object"===Dk(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,Rk()?Reflect.construct(e,r||[],Lk(t).constructor):e.apply(t,r))}function Rk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Rk=function(){return!!t})()}function Lk(t){return Lk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Lk(t)}function Bk(t,e){return Bk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Bk(t,e)}function zk(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 $k(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zk(Object(r),!0).forEach((function(e){Hk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Hk(t,e,r){return(e=Fk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fk(t){var e=function(t,e){if("object"!=Dk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Dk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Dk(e)?e:e+""}function Uk(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Vk(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 Vk(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 Vk(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 Wk(){return Wk=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},Wk.apply(this,arguments)}function Zk(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,o=t.yAxisId,a=t.shape,c=t.className,l=t.alwaysShow,u=_t(_k),s=kk(i),f=Ck(o),p=_t(Ok);if(!u||!p)return null;Jc(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=function(t,e,r,n,i,o,a,c,l){var u=i.x,s=i.y,f=i.width,p=i.height;if(r){var d=l.y,h=t.y.apply(d,{position:o});if(gM(l,"discard")&&!t.y.isInRange(h))return null;var v=[{x:u+f,y:h},{x:u,y:h}];return"left"===c?v.reverse():v}if(e){var y=l.x,g=t.x.apply(y,{position:o});if(gM(l,"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=l.segment.map((function(e){return t.apply(e,{position:o})}));return gM(l,"discard")&&yM(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(ck({x:s.scale,y:f.scale}),qa(e),qa(r),n&&2===n.length,p,t.position,s.orientation,f.orientation,t);if(!d)return null;var h=Uk(d,2),v=h[0],y=v.x,g=v.y,m=h[1],b=m.x,w=m.y,x=$k($k({clipPath:gM(t,"hidden")?"url(#".concat(u,")"):void 0},Sc(t,!0)),{},{x1:y,y1:g,x2:b,y2:w});return ft.createElement(Xc,{className:Zn("recharts-reference-line",c)},function(t,e){return ft.isValidElement(t)?ft.cloneElement(t,e):Ma(t)?t(e):ft.createElement("line",Wk({},e,{className:"recharts-reference-line-line"}))}(a,x),LS.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;return ok({x:e,y:r},{x:n,y:i})}({x1:y,y1:g,x2:b,y2:w})))}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),Nk(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&&Bk(t,e)}(e,ft.Component),Ik(e,[{key:"render",value:function(){return ft.createElement(Zk,this.props)}}])}();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 Gk(t){return Gk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gk(t)}function Xk(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 Kk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Xk(Object(r),!0).forEach((function(e){nC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xk(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,iC(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qk(t,e,r){return e=eC(e),function(t,e){if(e&&("object"===Gk(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=iC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iC(t){var e=function(t,e){if("object"!=Gk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Gk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Gk(e)?e:e+""}Hk(qk,"displayName","ReferenceLine"),Hk(qk,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var oC=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&&rC(t,e)}(e,ft.Component),Jk(e,[{key:"render",value:function(){var t=this.props,r=t.x,n=t.y,i=t.r,o=t.alwaysShow,a=t.clipPathId,c=qa(r),l=qa(n);if(Jc(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!l)return null;var u=function(t){var e=t.x,r=t.y,n=t.xAxis,i=t.yAxis,o=ck({x:n.scale,y:i.scale}),a=o.apply({x:e,y:r},{bandAware:!0});return gM(t,"discard")&&!o.isInRange(a)?null:a}(this.props);if(!u)return null;var s=u.x,f=u.y,p=this.props,d=p.shape,h=p.className,v=Kk(Kk({clipPath:gM(this.props,"hidden")?"url(#".concat(a,")"):void 0},Sc(this.props,!0)),{},{cx:s,cy:f});return ft.createElement(Xc,{className:Zn("recharts-reference-dot",h)},e.renderDot(d,v),LS.renderCallByParent(this.props,{x:s-i,y:f-i,width:2*i,height:2*i}))}}])}();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)}function cC(t){return cC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cC(t)}function lC(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 uC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lC(Object(r),!0).forEach((function(e){vC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sC(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 fC(t,e,r){return e=dC(e),function(t,e){if(e&&("object"===cC(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,pC()?Reflect.construct(e,r||[],dC(t).constructor):e.apply(t,r))}function pC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(pC=function(){return!!t})()}function dC(t){return dC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},dC(t)}function hC(t,e){return hC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},hC(t,e)}function vC(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"!=cC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=cC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==cC(e)?e:e+""}nC(oC,"displayName","ReferenceDot"),nC(oC,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),nC(oC,"renderDot",(function(t,e){return ft.isValidElement(t)?ft.cloneElement(t,e):Ma(t)?t(e):ft.createElement(HP,Yk({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))}));var gC=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),fC(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&&hC(t,e)}(e,ft.Component),sC(e,[{key:"render",value:function(){var t=this.props,r=t.x1,n=t.x2,i=t.y1,o=t.y2,a=t.className,c=t.alwaysShow,l=t.clipPathId;Jc(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=qa(r),s=qa(n),f=qa(i),p=qa(o),d=this.props.shape;if(!(u||s||f||p||d))return null;var h=function(t,e,r,n,i){var o=i.x1,a=i.x2,c=i.y1,l=i.y2,u=i.xAxis,s=i.yAxis;if(!u||!s)return null;var f=ck({x:u.scale,y:s.scale}),p={x:t?f.x.apply(o,{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(l,{position:"end"}):f.y.rangeMax};return!gM(i,"discard")||f.isInRange(p)&&f.isInRange(d)?ok(p,d):null}(u,s,f,p,this.props);if(!h&&!d)return null;var v=gM(this.props,"hidden")?"url(#".concat(l,")"):void 0;return ft.createElement(Xc,{className:Zn("recharts-reference-area",a)},e.renderRect(d,uC(uC({clipPath:v},Sc(this.props,!0)),h)),LS.renderCallByParent(this.props,h))}}])}();function mC(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],i=0;i<t.length;i+=e)n.push(t[i]);return n}function bC(t,e,r,n,i){if(t*e<t*n||t*e>t*i)return!1;var o=r();return t*(e-t*o/2-n)>=0&&t*(e+t*o/2-i)<=0}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 xC(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 OC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xC(Object(r),!0).forEach((function(e){SC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function SC(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 _C(t,e,r){var n=t.tick,i=t.ticks,o=t.viewBox,a=t.minTickGap,c=t.orientation,l=t.interval,u=t.tickFormatter,s=t.unit,f=t.angle;if(!i||!i.length||!n)return[];if(Za(l)||Fh)return function(t,e){return mC(t,e+1)}(i,"number"==typeof l&&Za(l)?l:0);var p=[],d="top"===c||"bottom"===c?"width":"height",h=s&&"width"===d?Dv(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},v=function(t,n){var i=Ma(u)?u(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 yk(n,r)}(Dv(i,{fontSize:e,letterSpacing:r}),h,f):Dv(i,{fontSize:e,letterSpacing:r})[d]},y=i.length>=2?Va(i[1].coordinate-i[0].coordinate):1,g=function(t,e,r){var n="width"===r,i=t.x,o=t.y,a=t.width,c=t.height;return 1===e?{start:n?i:o,end:n?i+a:o+c}:{start:n?i+a:o+c,end:n?i:o}}(o,y,d);return"equidistantPreserveStart"===l?function(t,e,r,n,i){for(var o,a=(n||[]).slice(),c=e.start,l=e.end,u=0,s=1,f=c,p=function(){var e=null==n?void 0:n[u];if(void 0===e)return{v:mC(n,s)};var o,a=u,p=function(){return void 0===o&&(o=r(e,a)),o},d=e.coordinate,h=0===u||bC(t,d,p,f,l);h||(u=0,f=c,s+=1),h&&(f=d+t*(p()/2+i),u+=s)};s<=a.length;)if(o=p())return o.v;return[]}(y,g,v,i,a):(p="preserveStart"===l||"preserveStartEnd"===l?function(t,e,r,n,i,o){var a=(n||[]).slice(),c=a.length,l=e.start,u=e.end;if(o){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-u);a[c-1]=s=OC(OC({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),bC(t,s.tickCoord,(function(){return f}),l,u)&&(u=s.tickCoord-t*(f/2+i),a[c-1]=OC(OC({},s),{},{isShow:!0}))}for(var d=o?c-1:c,h=function(e){var n,o=a[e],c=function(){return void 0===n&&(n=r(o,e)),n};if(0===e){var s=t*(o.coordinate-t*c()/2-l);a[e]=o=OC(OC({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=OC(OC({},o),{},{tickCoord:o.coordinate});bC(t,o.tickCoord,c,l,u)&&(l=o.tickCoord+t*(c()/2+i),a[e]=OC(OC({},o),{},{isShow:!0}))},v=0;v<d;v++)h(v);return a}(y,g,v,i,a,"preserveStartEnd"===l):function(t,e,r,n,i){for(var o=(n||[]).slice(),a=o.length,c=e.start,l=e.end,u=function(e){var n,u=o[e],s=function(){return void 0===n&&(n=r(u,e)),n};if(e===a-1){var f=t*(u.coordinate+t*s()/2-l);o[e]=u=OC(OC({},u),{},{tickCoord:f>0?u.coordinate-f*t:u.coordinate})}else o[e]=u=OC(OC({},u),{},{tickCoord:u.coordinate});bC(t,u.tickCoord,s,c,l)&&(l=u.tickCoord-t*(s()/2+i),o[e]=OC(OC({},u),{},{isShow:!0}))},s=a-1;s>=0;s--)u(s);return o}(y,g,v,i,a),p.filter((function(t){return t.isShow})))}vC(gC,"displayName","ReferenceArea"),vC(gC,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),vC(gC,"renderRect",(function(t,e){return ft.isValidElement(t)?ft.cloneElement(t,e):Ma(t)?t(e):ft.createElement(zP,aC({},e,{className:"recharts-reference-area-rect"}))}));var jC=["viewBox"],PC=["viewBox"],AC=["ticks"];function MC(t){return MC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},MC(t)}function kC(){return kC=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},kC.apply(this,arguments)}function CC(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 EC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?CC(Object(r),!0).forEach((function(e){BC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):CC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function TC(t,e){if(null==t)return{};var r,n,i=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 o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function DC(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)}}function IC(t,e,r){return e=RC(e),function(t,e){if(e&&("object"===MC(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,NC()?Reflect.construct(e,r||[],RC(t).constructor):e.apply(t,r))}function NC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(NC=function(){return!!t})()}function RC(t){return RC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},RC(t)}function LC(t,e){return LC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},LC(t,e)}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"!=MC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=MC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==MC(e)?e:e+""}var $C=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=IC(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&&LC(t,e)}(e,Pt),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=TC(t,jC),i=this.props,o=i.viewBox,a=TC(i,PC);return!ec(r,o)||!ec(n,a)||!ec(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,i,o,a,c=this.props,l=c.x,u=c.y,s=c.width,f=c.height,p=c.orientation,d=c.tickSize,h=c.mirror,v=c.tickMargin,y=h?-1:1,g=t.tickSize||d,m=Za(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(i=u+ +!h*f)-y*g)-y*v,o=m;break;case"left":n=i=t.coordinate,o=(e=(r=l+ +!h*s)-y*g)-y*v,a=m;break;case"right":n=i=t.coordinate,o=(e=(r=l+ +h*s)+y*g)+y*v,a=m;break;default:e=r=t.coordinate,a=(n=(i=u+ +h*f)+y*g)+y*v,o=m}return{line:{x1:e,y1:n,x2:r,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.orientation,a=t.mirror,c=t.axisLine,l=EC(EC(EC({},Sc(this.props,!1)),Sc(c,!1)),{},{fill:"none"});if("top"===o||"bottom"===o){var u=+("top"===o&&!a||"bottom"===o&&a);l=EC(EC({},l),{},{x1:e,y1:r+u*i,x2:e+n,y2:r+u*i})}else{var s=+("left"===o&&!a||"right"===o&&a);l=EC(EC({},l),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+i})}return ft.createElement("line",kC({},l,{className:Zn("recharts-cartesian-axis-line",xa(c,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var i=this,o=this.props,a=o.tickLine,c=o.stroke,l=o.tick,u=o.tickFormatter,s=o.unit,f=_C(EC(EC({},this.props),{},{ticks:t}),r,n),p=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=Sc(this.props,!1),v=Sc(l,!1),y=EC(EC({},h),{},{fill:"none"},Sc(a,!1)),g=f.map((function(t,r){var n=i.getTickLineCoord(t),o=n.line,g=n.tick,m=EC(EC(EC(EC({textAnchor:p,verticalAnchor:d},h),{},{stroke:"none",fill:c},v),g),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:u});return ft.createElement(Xc,kC({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},lc(i.props,t,r)),a&&ft.createElement("line",kC({},y,o,{className:Zn("recharts-cartesian-axis-tick-line",xa(a,"className"))})),l&&e.renderTickItem(l,m,"".concat(Ma(u)?u(t.value,r):t.value).concat(s||"")))}));return ft.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,i=e.height,o=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,l=c.ticks,u=TC(c,AC),s=l;return Ma(o)&&(s=l&&l.length>0?o(this.props):o(u)),n<=0||i<=0||!s||!s.length?null:ft.createElement(Xc,{className:Zn("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),LS.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,e,r){return ft.isValidElement(t)?ft.cloneElement(t,e):Ma(t)?t(e):ft.createElement(ly,kC({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&DC(r.prototype,n),i&&DC(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();BC($C,"displayName","CartesianAxis"),BC($C,"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 HC=["type","layout","connectNulls","ref"],FC=["key"];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){if(null==t)return{};var r,n,i=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 o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function 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 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){eE(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){return function(t){if(Array.isArray(t))return GC(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 GC(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 GC(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 GC(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 XC(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)}}function KC(t,e,r){return e=QC(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,JC()?Reflect.construct(e,r||[],QC(t).constructor):e.apply(t,r))}function JC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(JC=function(){return!!t})()}function QC(t){return QC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},QC(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"!=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+""}var nE=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),i=0;i<r;i++)n[i]=arguments[i];return eE(t=KC(this,e,[].concat(n)),"state",{isAnimationFinished:!0,totalLength:0}),eE(t,"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),eE(t,"getStrokeDasharray",(function(r,n,i){var o=i.reduce((function(t,e){return t+e}));if(!o)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/o),c=r%o,l=n-r,u=[],s=0,f=0;s<i.length;f+=i[s],++s)if(f+i[s]>c){u=[].concat(YC(i.slice(0,s)),[c-f]);break}var p=u.length%2==0?[0,l]:[l];return[].concat(YC(e.repeat(i,a)),YC(u),p).map((function(t){return"".concat(t,"px")})).join(", ")})),eE(t,"id",Ga("recharts-line-")),eE(t,"pathRef",(function(e){t.mainCurve=e})),eE(t,"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),eE(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&&tE(t,e)}(e,ht),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,i=r.xAxis,o=r.yAxis,a=r.layout,c=mc(r.children,IO);if(!c)return null;var l=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:ZO(t.payload,e)}},u={clipPath:t?"url(#clipPath-".concat(e,")"):null};return ft.createElement(Xc,u,c.map((function(t){return ft.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,dataPointFormatter:l})})))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,a=i.points,c=i.dataKey,l=Sc(this.props,!1),u=Sc(o,!0),s=a.map((function(t,r){var n=qC(qC(qC({key:"dot-".concat(r),r:3},l),u),{},{index:r,cx:t.x,cy:t.y,value:t.value,dataKey:c,payload:t.payload,points:a});return e.renderDotItem(o,n)})),f={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return ft.createElement(Xc,WC({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,r,n){var i=this.props,o=i.type,a=i.layout,c=i.connectNulls;i.ref;var l=VC(i,HC),u=qC(qC(qC({},Sc(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:o,layout:a,connectNulls:c});return ft.createElement(x_,WC({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.strokeDasharray,a=n.isAnimationActive,c=n.animationBegin,l=n.animationDuration,u=n.animationEasing,s=n.animationId,f=n.animateNewValues,p=n.width,d=n.height,h=this.state,v=h.prevPoints,y=h.totalLength;return ft.createElement(MP,{begin:c,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(v){var c=v.length/i.length,l=i.map((function(t,e){var r=Math.floor(e*c);if(v[r]){var n=v[r],i=Ja(n.x,t.x),o=Ja(n.y,t.y);return qC(qC({},t),{},{x:i(a),y:o(a)})}if(f){var l=Ja(2*p,t.x),u=Ja(d/2,t.y);return qC(qC({},t),{},{x:l(a),y:u(a)})}return qC(qC({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(l,t,e)}var u,s=Ja(0,y)(a);if(o){var h="".concat(o).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));u=r.getStrokeDasharray(s,y,h)}else u=r.generateSimpleStrokeDasharray(y,s);return r.renderCurveStatically(i,t,e,{strokeDasharray:u})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,i=r.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&n&&n.length&&(!a&&c>0||!vx(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,i=e.points,o=e.className,a=e.xAxis,c=e.yAxis,l=e.top,u=e.left,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!i||!i.length)return null;var h=this.state.isAnimationFinished,v=1===i.length,y=Zn("recharts-line",o),g=a&&a.allowDataOverflow,m=c&&c.allowDataOverflow,b=g||m,w=_a(d)?this.id:d,x=null!==(t=Sc(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=(Oc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return ft.createElement(Xc,{className:y},g||m?ft.createElement("defs",null,ft.createElement("clipPath",{id:"clipPath-".concat(w)},ft.createElement("rect",{x:g?u:u-s/2,y:m?l:l-f/2,width:g?s:2*s,height:m?f:2*f})),!A&&ft.createElement("clipPath",{id:"clipPath-dots-".concat(w)},ft.createElement("rect",{x:u-M/2,y:l-M/2,width:s+M,height:f+M}))):null,!v&&this.renderCurve(b,w),this.renderErrorBar(b,w),(v||n)&&this.renderDots(b,A,w),(!p||h)&&t_.renderCallByParent(this.props,i))}}],i=[{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(YC(t),[0]):t,n=[],i=0;i<e;++i)n=[].concat(YC(n),YC(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(ft.isValidElement(t))r=ft.cloneElement(t,e);else if(Ma(t))r=t(e);else{var n=e.key,i=VC(e,FC),o=Zn("recharts-line-dot","boolean"!=typeof t?t.className:"");r=ft.createElement(HP,WC({key:n},i,{className:o}))}return r}}],n&&XC(r.prototype,n),i&&XC(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();eE(nE,"displayName","Line"),eE(nE,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Fh,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),eE(nE,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,a=t.dataKey,c=t.bandSize,l=t.displayedData,u=t.offset,s=e.layout;return qC({points:l.map((function(t,e){var l=ZO(t,a);return"horizontal"===s?{x:iS({axis:r,ticks:i,bandSize:c,entry:t,index:e}),y:_a(l)?null:n.scale(l),value:l,payload:t}:{x:_a(l)?null:r.scale(l),y:iS({axis:n,ticks:o,bandSize:c,entry:t,index:e}),value:l,payload:t}})),layout:s},u)}));var iE,oE=["layout","type","stroke","connectNulls","isRange","ref"],aE=["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 lE(t,e){if(null==t)return{};var r,n,i=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 o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function uE(){return uE=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},uE.apply(this,arguments)}function sE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sE(Object(r),!0).forEach((function(e){gE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function pE(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,mE(n.key),n)}}function dE(t,e,r){return e=vE(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,hE()?Reflect.construct(e,r||[],vE(t).constructor):e.apply(t,r))}function hE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(hE=function(){return!!t})()}function vE(t){return vE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vE(t)}function yE(t,e){return yE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yE(t,e)}function gE(t,e,r){return(e=mE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mE(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 bE=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),i=0;i<r;i++)n[i]=arguments[i];return gE(t=dE(this,e,[].concat(n)),"state",{isAnimationFinished:!0}),gE(t,"id",Ga("recharts-area-")),gE(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Ma(e)&&e()})),gE(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Ma(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&&yE(t,e)}(e,ht),r=e,n=[{key:"renderDots",value:function(t,r,n){var i=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(i&&!o)return null;var a=this.props,c=a.dot,l=a.points,u=a.dataKey,s=Sc(this.props,!1),f=Sc(c,!0),p=l.map((function(t,r){var n=fE(fE(fE({key:"dot-".concat(r),r:3},s),f),{},{index:r,cx:t.x,cy:t.y,dataKey:u,value:t.value,payload:t.payload,points:l});return e.renderDotItem(c,n)})),d={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return ft.createElement(Xc,uE({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].x,a=n[n.length-1].x,c=t*Math.abs(o-a),l=nx(n.map((function(t){return t.y||0})));return Za(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(nx(r.map((function(t){return t.y||0}))),l)),Za(l)?ft.createElement("rect",{x:o<a?o:o-c,y:0,width:c,height:Math.floor(l+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].y,a=n[n.length-1].y,c=t*Math.abs(o-a),l=nx(n.map((function(t){return t.x||0})));return Za(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(nx(r.map((function(t){return t.x||0}))),l)),Za(l)?ft.createElement("rect",{x:0,y:o<a?o:o-c,width:l+(i?parseInt("".concat(i),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 i=this.props,o=i.layout,a=i.type,c=i.stroke,l=i.connectNulls,u=i.isRange;i.ref;var s=lE(i,oE);return ft.createElement(Xc,{clipPath:r?"url(#clipPath-".concat(n,")"):null},ft.createElement(x_,uE({},Sc(s,!0),{points:t,connectNulls:l,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&ft.createElement(x_,uE({},Sc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:l,fill:"none",points:t})),"none"!==c&&u&&ft.createElement(x_,uE({},Sc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:l,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.baseLine,a=n.isAnimationActive,c=n.animationBegin,l=n.animationDuration,u=n.animationEasing,s=n.animationId,f=this.state,p=f.prevPoints,d=f.prevBaseLine;return ft.createElement(MP,{begin:c,duration:l,isActive:a,easing:u,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,l=p.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*l);if(p[r]){var n=p[r],i=Ja(n.x,t.x),o=Ja(n.y,t.y);return fE(fE({},t),{},{x:i(a),y:o(a)})}return t}));return c=Za(o)&&"number"==typeof o?Ja(d,o)(a):_a(o)||Fa(o)?Ja(d,0)(a):o.map((function(t,e){var r=Math.floor(e*l);if(d[r]){var n=d[r],i=Ja(n.x,t.x),o=Ja(n.y,t.y);return fE(fE({},t),{},{x:i(a),y:o(a)})}return t})),r.renderAreaStatically(u,c,t,e)}return ft.createElement(Xc,null,ft.createElement("defs",null,ft.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),ft.createElement(Xc,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(i,o,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,i=r.baseLine,o=r.isAnimationActive,a=this.state,c=a.prevPoints,l=a.prevBaseLine,u=a.totalLength;return o&&n&&n.length&&(!c&&u>0||!vx(c,n)||!vx(l,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,i,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,o=e.className,a=e.top,c=e.left,l=e.xAxis,u=e.yAxis,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!i||!i.length)return null;var h=this.state.isAnimationFinished,v=1===i.length,y=Zn("recharts-area",o),g=l&&l.allowDataOverflow,m=u&&u.allowDataOverflow,b=g||m,w=_a(d)?this.id:d,x=null!==(t=Sc(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=(Oc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return ft.createElement(Xc,{className:y},g||m?ft.createElement("defs",null,ft.createElement("clipPath",{id:"clipPath-".concat(w)},ft.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&&ft.createElement("clipPath",{id:"clipPath-dots-".concat(w)},ft.createElement("rect",{x:c-M/2,y:a-M/2,width:s+M,height:f+M}))):null,v?null:this.renderArea(b,w),(n||v)&&this.renderDots(b,A,w),(!p||h)&&t_.renderCallByParent(this.props,i))}}],i=[{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&&pE(r.prototype,n),i&&pE(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();function wE(t){return wE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wE(t)}function xE(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,AE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function OE(t,e,r){return e=_E(e),function(t,e){if(e&&("object"===wE(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"!=wE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=wE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==wE(e)?e:e+""}function ME(){return ME=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},ME.apply(this,arguments)}function kE(t){var e=t.xAxisId,r=Ek(),n=Tk(),i=kk(e);return null==i?null:ft.createElement($C,ME({},i,{className:Zn("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return JO(t,!0)}}))}iE=bE,gE(bE,"displayName","Area"),gE(bE,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Fh,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),gE(bE,"getBaseValue",(function(t,e,r,n){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if(Za(c)&&"number"==typeof c)return c;var l="horizontal"===i?n:r,u=l.scale.domain();if("number"===l.type){var s=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===c?u[0]:"dataMax"===c?u[1]:u[0]})),gE(bE,"getComposedData",(function(t){var e,r=t.props,n=t.item,i=t.xAxis,o=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,l=t.bandSize,u=t.dataKey,s=t.stackedData,f=t.dataStartIndex,p=t.displayedData,d=t.offset,h=r.layout,v=s&&s.length,y=iE.getBaseValue(r,n,i,o),g="horizontal"===h,m=!1,b=p.map((function(t,e){var r;v?r=s[f+e]:(r=ZO(t,u),Array.isArray(r)?m=!0:r=[y,r]);var n=null==r[1]||v&&null==ZO(t,u);return g?{x:iS({axis:i,ticks:a,bandSize:l,entry:t,index:e}),y:n?null:o.scale(r[1]),value:r,payload:t}:{x:n?null:i.scale(r[1]),y:iS({axis:o,ticks:c,bandSize:l,entry:t,index:e}),value:r,payload:t}}));return e=v||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?o.scale(e):null}:{x:null!=e?i.scale(e):null,y:t.y}})):g?o.scale(y):i.scale(y),fE({points:b,baseLine:e,layout:h,isRange:m},d)})),gE(bE,"renderDotItem",(function(t,e){var r;if(ft.isValidElement(t))r=ft.cloneElement(t,e);else if(Ma(t))r=t(e);else{var n=Zn("recharts-area-dot","boolean"!=typeof t?t.className:""),i=e.key,o=lE(e,aE);r=ft.createElement(HP,uE({},o,{key:i,className:n}))}return r}));var CE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),OE(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&&jE(t,e)}(e,ft.Component),xE(e,[{key:"render",value:function(){return ft.createElement(kE,this.props)}}])}();function EE(t){return EE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},EE(t)}function TE(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,BE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function DE(t,e,r){return e=NE(e),function(t,e){if(e&&("object"===EE(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,IE()?Reflect.construct(e,r||[],NE(t).constructor):e.apply(t,r))}function IE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(IE=function(){return!!t})()}function NE(t){return NE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},NE(t)}function RE(t,e){return RE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},RE(t,e)}function LE(t,e,r){return(e=BE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function BE(t){var e=function(t,e){if("object"!=EE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=EE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==EE(e)?e:e+""}function zE(){return zE=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},zE.apply(this,arguments)}PE(CE,"displayName","XAxis"),PE(CE,"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 $E=function(t){var e=t.yAxisId,r=Ek(),n=Tk(),i=Ck(e);return null==i?null:ft.createElement($C,zE({},i,{className:Zn("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return JO(t,!0)}}))},HE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),DE(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,ft.Component),TE(e,[{key:"render",value:function(){return ft.createElement($E,this.props)}}])}();function FE(t){return function(t){if(Array.isArray(t))return UE(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 UE(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 UE(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 UE(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}LE(HE,"displayName","YAxis"),LE(HE,"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 VE,WE=function(t,e,r,n,i){var o=mc(t,qk),a=mc(t,oC),c=[].concat(FE(o),FE(a)),l=mc(t,gC),u="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[u]===r&&gM(e.props,"extendDomain")&&Za(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),l.length){var p="".concat(s,"1"),d="".concat(s,"2");f=l.reduce((function(t,e){if(e.props[u]===r&&gM(e.props,"extendDomain")&&Za(e.props[p])&&Za(e.props[d])){var n=e.props[p],i=e.props[d];return[Math.min(t[0],n,i),Math.max(t[1],n,i)]}return t}),f)}return i&&i.length&&(f=i.reduce((function(t,e){return Za(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},ZE={exports:{}};var qE=(VE||(VE=1,function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new i(n,o||t,a),l=r?r+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],c]:t._events[l].push(c):(t._events[l]=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,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},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 i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].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,i,o,a){var c=r?r+t:t;if(!this._events[c])return!1;var l,u,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,i),!0;case 5:return s.fn.call(s.context,e,n,i,o),!0;case 6:return s.fn.call(s.context,e,n,i,o,a),!0}for(u=1,l=new Array(f-1);u<f;u++)l[u-1]=arguments[u];s.fn.apply(s.context,l)}else{var p,d=s.length;for(u=0;u<d;u++)switch(s[u].once&&this.removeListener(t,s[u].fn,void 0,!0),f){case 1:s[u].fn.call(s[u].context);break;case 2:s[u].fn.call(s[u].context,e);break;case 3:s[u].fn.call(s[u].context,e,n);break;case 4:s[u].fn.call(s[u].context,e,n,i);break;default:if(!l)for(p=1,l=new Array(f-1);p<f;p++)l[p-1]=arguments[p];s[u].fn.apply(s[u].context,l)}}return!0},c.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var c=this._events[o];if(c.fn)c.fn!==e||i&&!c.once||n&&c.context!==n||a(this,o);else{for(var l=0,u=[],s=c.length;l<s;l++)(c[l].fn!==e||i&&!c[l].once||n&&c[l].context!==n)&&u.push(c[l]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}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}(ZE)),ZE.exports),YE=new(Pr(qE)),GE="recharts.syncMouseEvents";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,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,QE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function JE(t,e,r){return(e=QE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function QE(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 tT=function(){return KE((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),JE(this,"activeIndex",0),JE(this,"coordinateList",[]),JE(this,"layout","horizontal")}),[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,i=t.container,o=void 0===i?null:i,a=t.layout,c=void 0===a?null:a,l=t.offset,u=void 0===l?null:l,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!=o?o:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=u?u: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,i=r.y,o=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,l=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,u=n+a+c,s=i+this.offset.top+o/2+l;this.mouseHandlerCallback({pageX:u,pageY:s})}}}])}();function eT(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,o=t.endAngle;return{points:[bS(e,r,n,i),bS(e,r,n,o)],cx:e,cy:r,radius:n,startAngle:i,endAngle:o}}function rT(t,e,r){var n,i,o,a;if("horizontal"===t)o=n=e.x,i=r.top,a=r.top+r.height;else if("vertical"===t)a=i=e.y,n=r.left,o=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return eT(e);var c=e.cx,l=e.cy,u=e.innerRadius,s=e.outerRadius,f=e.angle,p=bS(c,l,u,f),d=bS(c,l,s,f);n=p.x,i=p.y,o=d.x,a=d.y}return[{x:n,y:i},{x:o,y:a}]}function nT(t){return nT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nT(t)}function iT(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 oT(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?iT(Object(r),!0).forEach((function(e){aT(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function aT(t,e,r){return e=function(t){var e=function(t,e){if("object"!=nT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=nT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nT(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cT(t){var e,r,n,i=t.element,o=t.tooltipEventType,a=t.isActive,c=t.activeCoordinate,l=t.activePayload,u=t.offset,s=t.activeTooltipIndex,f=t.tooltipAxisBandSize,p=t.layout,d=t.chartName,h=null!==(e=i.props.cursor)&&void 0!==e?e:null===(r=i.type.defaultProps)||void 0===r?void 0:r.cursor;if(!i||!h||!a||!c||"ScatterChart"!==d&&"axis"!==o)return null;var v=x_;if("ScatterChart"===d)n=c,v=QP;else if("BarChart"===d)n=function(t,e,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-i:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-i,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(p,c,u,f),v=zP;else if("radial"===p){var y=eT(c),g=y.cx,m=y.cy,b=y.radius;n={cx:g,cy:m,startAngle:y.startAngle,endAngle:y.endAngle,innerRadius:b,outerRadius:b},v=u_}else n={points:rT(p,c,u)},v=x_;var w=oT(oT(oT(oT({stroke:"#ccc",pointerEvents:"none"},u),n),Sc(h,!1)),{},{payload:l,payloadIndex:s,className:Zn("recharts-tooltip-cursor",h.className)});return pt(h)?Ot(h,w):St(v,w)}var lT=["item"],uT=["children","className","width","height","style","compact","title","desc"];function sT(t){return sT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sT(t)}function fT(){return fT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},fT.apply(this,arguments)}function pT(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||wT(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 dT(t,e){if(null==t)return{};var r,n,i=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 o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function hT(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,jT(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function vT(t,e,r){return e=gT(e),function(t,e){if(e&&("object"===sT(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,yT()?Reflect.construct(e,r||[],gT(t).constructor):e.apply(t,r))}function yT(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(yT=function(){return!!t})()}function gT(t){return gT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gT(t)}function mT(t,e){return mT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mT(t,e)}function bT(t){return function(t){if(Array.isArray(t))return xT(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||wT(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 wT(t,e){if(t){if("string"==typeof t)return xT(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)?xT(t,e):void 0}}function xT(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 OT(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 ST(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?OT(Object(r),!0).forEach((function(e){_T(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):OT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _T(t,e,r){return(e=jT(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jT(t){var e=function(t,e){if("object"!=sT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=sT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==sT(e)?e:e+""}var PT={xAxis:["bottom","top"],yAxis:["left","right"]},AT={width:"100%",height:"100%"},MT={x:0,y:0};function kT(t){return t}var CT=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,i=e.dataEndIndex,o=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(bT(t),bT(r)):t}),[]);return o.length>0?o:t&&t.length&&Za(n)&&Za(i)?t.slice(n,i+1):[]};function ET(t){return"number"===t?[0,"auto"]:void 0}var TT=function(t,e,r,n){var i=t.graphicalItems,o=t.tooltipAxis,a=CT(e,t);return r<0||!i||!i.length||r>=a.length?null:i.reduce((function(i,c){var l,u,s=null!==(l=c.props.data)&&void 0!==l?l:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory)?u=Qa(void 0===s?a:s,o.dataKey,n):u=s&&s[r]||a[r];return u?[].concat(bT(i),[pS(c,u)]):i}),[])},DT=function(t,e,r,n){var i=n||{x:t.chartX,y:t.chartY},o=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(i,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,l=t.tooltipTicks,u=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,l=0;l<a;l++){var u=l>0?n[l-1].coordinate:n[a-1].coordinate,s=n[l].coordinate,f=l>=a-1?n[0].coordinate:n[l+1].coordinate,p=void 0;if(Va(s-u)!==Va(f-s)){var d=[];if(Va(f-s)===Va(c[1]-c[0])){p=f;var h=s+c[1]-c[0];d[0]=Math.min(h,(h+u)/2),d[1]=Math.max(h,(h+u)/2)}else{p=u;var v=f+c[1]-c[0];d[0]=Math.min(s,(v+s)/2),d[1]=Math.max(s,(v+s)/2)}var y=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>y[0]&&t<=y[1]||t>=d[0]&&t<=d[1]){o=n[l].index;break}}else{var g=Math.min(u,f),m=Math.max(u,f);if(t>(g+s)/2&&t<=(m+s)/2){o=n[l].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){o=r[b].index;break}return o}(o,a,l,c);if(u>=0&&l){var s=l[u]&&l[u].value,f=TT(t,e,u,s),p=function(t,e,r,n){var i=e.find((function(t){return t&&t.index===r}));if(i){if("horizontal"===t)return{x:i.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:i.coordinate};if("centric"===t){var o=i.coordinate,a=n.radius;return ST(ST(ST({},n),bS(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,l=n.angle;return ST(ST(ST({},n),bS(n.cx,n.cy,c,l)),{},{angle:l,radius:c})}return MT}(r,a,u,i);return{activeTooltipIndex:u,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},IT=function(t,e){var r=e.axes,n=e.graphicalItems,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,u=t.layout,s=t.children,f=t.stackOffset,p=KO(u,i);return r.reduce((function(e,r){var d,h=void 0!==r.type.defaultProps?ST(ST({},r.type.defaultProps),r.props):r.props,v=h.type,y=h.dataKey,g=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,O=h[o];if(e[O])return e;var S,_,j,P=CT(t.data,{graphicalItems:n.filter((function(t){var e;return(o in t.props?t.props[o]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[o])===O})),dataStartIndex:c,dataEndIndex:l}),A=P.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],i=null==t?void 0:t[1];if(n&&i&&Za(n)&&Za(i))return!0}return!1})(h.domain,g,v)&&(S=uS(h.domain,null,g),!p||"number"!==v&&"auto"===b||(j=qO(P,y,"category")));var M=ET(v);if(!S||0===S.length){var k,C=null!==(k=h.domain)&&void 0!==k?k:M;if(y){if(S=qO(P,y,v),"category"===v&&p){var E=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&&E?(_=S,S=FA(0,A)):m||(S=fS(C,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(bT(t),[e])}),[]))}else if("category"===v)S=m?S.filter((function(t){return""!==t&&!_a(t)})):fS(C,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||_a(e)?t:[].concat(bT(t),[e])}),[]);else if("number"===v){var T=function(t,e,r,n,i){var o=e.map((function(e){return GO(t,e,r,i,n)})).filter((function(t){return!_a(t)}));return o&&o.length?o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(P,n.filter((function(t){var e,r,n=o in t.props?t.props[o]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[o],i="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===O&&(x||!i)})),y,i,u);T&&(S=T)}!p||"number"!==v&&"auto"===b||(j=qO(P,y,"category"))}else S=p?FA(0,A):a&&a[O]&&a[O].hasStack&&"number"===v?"expand"===f?[0,1]:aS(a[O].stackGroups,c,l):XO(P,n.filter((function(t){var e=o in t.props?t.props[o]:t.type.defaultProps[o],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===O&&(x||!r)})),v,u,!0);if("number"===v)S=WE(s,S,O,i,w),C&&(S=uS(C,S,g));else if("category"===v&&C){var D=C;S.every((function(t){return D.indexOf(t)>=0}))&&(S=D)}}return ST(ST({},e),{},_T({},O,ST(ST({},h),{},{axisType:i,domain:S,categoricalDomain:j,duplicateDomain:_,originalDomain:null!==(d=h.domain)&&void 0!==d?d:M,isCategorical:p,layout:u})))}),{})},NT=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,u=t.children,s="".concat(n,"Id"),f=mc(u,i),p={};return f&&f.length?p=IT(t,{axes:f,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:l}):o&&o.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,u=t.layout,s=t.children,f=CT(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:l}),p=f.length,d=KO(u,i),h=-1;return r.reduce((function(t,e){var v,y=(void 0!==e.type.defaultProps?ST(ST({},e.type.defaultProps),e.props):e.props)[o],g=ET("number");return t[y]?t:(h++,d?v=FA(0,p):a&&a[y]&&a[y].hasStack?(v=aS(a[y].stackGroups,c,l),v=WE(s,v,y,i)):(v=uS(g,XO(f,r.filter((function(t){var e,r,n=o in t.props?t.props[o]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[o],i="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===y&&!i})),"number",u),n.defaultProps.allowDataOverflow),v=WE(s,v,y,i)),ST(ST({},t),{},_T({},y,ST(ST({axisType:i},n.defaultProps),{},{hide:!0,orientation:xa(PT,"".concat(i,".").concat(h%2),null),domain:v,originalDomain:g,isCategorical:d,layout:u}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:l})),p},RT=function(t){var e=t.children,r=t.defaultShowTooltip,n=bc(e,sM),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(i=n.props.startIndex),n.props.endIndex>=0&&(o=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},LT=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"}},BT=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),i=void 0===n?{}:n,o=t.yAxisMap,a=void 0===o?{}:o,c=r.width,l=r.height,u=r.children,s=r.margin||{},f=bc(u,sM),p=bc(u,eh),d=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:ST(ST({},t),{},_T({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),h=Object.keys(i).reduce((function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:ST(ST({},t),{},_T({},n,xa(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),v=ST(ST({},h),d),y=v.bottom;f&&(v.bottom+=f.props.height||sM.defaultProps.height),p&&e&&(v=function(t,e,r,n){var i=r.children,o=r.width,a=r.margin,c=o-(a.left||0)-(a.right||0),l=zO({children:i,legendWidth:c});if(l){var u=n||{},s=u.width,f=u.height,p=l.align,d=l.verticalAlign,h=l.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==p&&Za(t[p]))return VO(VO({},t),{},WO({},p,t[p]+(s||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&Za(t[d]))return VO(VO({},t),{},WO({},d,t[d]+(f||0)))}return t}(v,0,r,e));var g=c-v.left-v.right,m=l-v.top-v.bottom;return ST(ST({brushBottom:y},v),{},{width:Math.max(g,0),height:Math.max(m,0)})},zT=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},$T=function(t){var e=t.chartName,r=t.GraphicalChild,n=t.defaultTooltipEventType,i=void 0===n?"axis":n,o=t.validateTooltipEventTypes,a=void 0===o?["axis"]:o,c=t.axisComponents,l=t.legendContent,u=t.formatAxisMap,s=t.defaultProps,f=function(t,e){var r=e.graphicalItems,n=e.stackGroups,i=e.offset,o=e.updateId,a=e.dataStartIndex,l=e.dataEndIndex,u=t.barSize,s=t.layout,f=t.barGap,p=t.barCategoryGap,d=t.maxBarSize,h=LT(s),v=h.numericAxisName,y=h.cateAxisName,g=function(t){return!(!t||!t.length)&&t.some((function(t){var e=hc(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),m=[];return r.forEach((function(r,h){var b=CT(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:l}),w=void 0!==r.type.defaultProps?ST(ST({},r.type.defaultProps),r.props):r.props,x=w.dataKey,O=w.maxBarSize,S=w["".concat(v,"Id")],_=w["".concat(y,"Id")],j=c.reduce((function(t,n){var i,o,a=e["".concat(n.axisType,"Map")],c=w["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?wO(0,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(i=null==r||null===(o=r.type)||void 0===o?void 0:o.displayName)&&void 0!==i?i:"")):wO());var l=a[c];return ST(ST({},t),{},_T(_T({},n.axisType,l),"".concat(n.axisType,"Ticks"),JO(l)))}),{}),P=j[y],A=j["".concat(y,"Ticks")],M=n&&n[S]&&n[S].hasStack&&function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?VO(VO({},t.type.defaultProps),t.props):t.props).stackId;if(qa(n)){var i=e[n];if(i){var o=i.items.indexOf(t);return o>=0?i.stackedData[o]:null}}return null}(r,n[S].stackGroups),k=hc(r.type).indexOf("Bar")>=0,C=sS(P,A),E=[],T=g&&function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,i=void 0===n?{}:n;if(!i)return{};for(var o={},a=Object.keys(i),c=0,l=a.length;c<l;c++)for(var u=i[a[c]].stackGroups,s=Object.keys(u),f=0,p=s.length;f<p;f++){var d=u[s[f]],h=d.items,v=d.cateAxisId,y=h.filter((function(t){return hc(t.type).indexOf("Bar")>=0}));if(y&&y.length){var g=y[0].type.defaultProps,m=void 0!==g?VO(VO({},g),y[0].props):y[0].props,b=m.barSize,w=m[v];o[w]||(o[w]=[]);var x=_a(b)?e:b;o[w].push({item:y[0],stackList:y.slice(1),barSize:_a(x)?void 0:Xa(x,r,0)})}}return o}({barSize:u,stackGroups:n,totalSize:zT(j,y)});if(k){var D,I,N=_a(O)?d:O,R=null!==(D=null!==(I=sS(P,A,!0))&&void 0!==I?I:N)&&void 0!==D?D:0;E=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,c=o.length;if(c<1)return null;var l,u=Xa(e,n,0,!0),s=[];if(o[0].barSize===+o[0].barSize){var f=!1,p=n/c,d=o.reduce((function(t,e){return t+e.barSize||0}),0);(d+=(c-1)*u)>=n&&(d-=(c-1)*u,u=0),d>=n&&p>0&&(f=!0,d=c*(p*=.9));var h={offset:((n-d)/2|0)-u,size:0};l=o.reduce((function(t,e){var r={item:e.item,position:{offset:h.offset+h.size+u,size:f?p:e.barSize}},n=[].concat(HO(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 v=Xa(r,n,0,!0);n-2*v-(c-1)*u<=0&&(u=0);var y=(n-2*v-(c-1)*u)/c;y>1&&(y>>=0);var g=a===+a?Math.min(y,a):y;l=o.reduce((function(t,e,r){var n=[].concat(HO(t),[{item:e.item,position:{offset:v+(y+u)*r+(y-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 l}({barGap:f,barCategoryGap:p,bandSize:R!==C?R:C,sizeList:T[_],maxBarSize:N}),R!==C&&(E=E.map((function(t){return ST(ST({},t),{},{position:ST(ST({},t.position),{},{offset:t.position.offset-R/2})})})))}var L,B,z=r&&r.type&&r.type.getComposedData;z&&m.push({props:ST(ST({},z(ST(ST({},j),{},{displayedData:b,props:t,dataKey:x,item:r,bandSize:C,barPosition:E,offset:i,stackedData:M,layout:s,dataStartIndex:a,dataEndIndex:l}))),{},_T(_T(_T({key:r.key||"item-".concat(h)},v,j[v]),y,j[y]),"animationId",o)),childIndex:(L=r,B=t.children,gc(B).indexOf(L)),item:r})})),m},p=function(t,n){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,l=t.updateId;if(!wc({props:i}))return null;var s=i.children,p=i.layout,d=i.stackOffset,h=i.data,v=i.reverseStackOrder,y=LT(p),g=y.numericAxisName,m=y.cateAxisName,b=mc(s,r),w=function(t,e,r,n,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce((function(t,e){var i,o=null!==(i=e.type)&&void 0!==i&&i.defaultProps?VO(VO({},e.type.defaultProps),e.props):e.props,a=o.stackId;if(o.hide)return t;var c=o[r],l=t[c]||{hasStack:!1,stackGroups:{}};if(qa(a)){var u=l.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};u.items.push(e),l.hasStack=!0,l.stackGroups[a]=u}else l.stackGroups[Ga("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return VO(VO({},t),{},WO({},c,l))}),{});return Object.keys(a).reduce((function(e,o){var c=a[o];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,o){var a=c.stackGroups[o];return VO(VO({},e),{},WO({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:nS(t,a.items,i)}))}),{})),VO(VO({},e),{},WO({},o,c))}),{})}(h,b,"".concat(g,"Id"),"".concat(m,"Id"),d,v),x=c.reduce((function(t,e){var r="".concat(e.axisType,"Map");return ST(ST({},t),{},_T({},r,NT(i,ST(ST({},e),{},{graphicalItems:b,stackGroups:e.axisType===g&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=BT(ST(ST({},x),{},{props:i,graphicalItems:b}),null==n?void 0:n.legendBBox);Object.keys(x).forEach((function(t){x[t]=u(i,x[t],O,t.replace("Map",""),e)}));var S,_,j=x["".concat(m,"Map")],P=(S=Ka(j),{tooltipTicks:_=JO(S,!1,!0),orderedTooltipTicks:vh(_,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:sS(S,_)}),A=f(i,ST(ST({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:l,graphicalItems:b,stackGroups:w,offset:O}));return ST(ST({formattedGraphicalItems:A,graphicalItems:b,offset:O,stackGroups:w},P),x)},d=function(t){function r(t){var n,i,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),_T(o=vT(this,r,[t]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),_T(o,"accessibilityManager",new tT),_T(o,"handleLegendBBoxUpdate",(function(t){if(t){var e=o.state,r=e.dataStartIndex,n=e.dataEndIndex,i=e.updateId;o.setState(ST({legendBBox:t},p({props:o.props,dataStartIndex:r,dataEndIndex:n,updateId:i},ST(ST({},o.state),{},{legendBBox:t}))))}})),_T(o,"handleReceiveSyncEvent",(function(t,e,r){if(o.props.syncId===t){if(r===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(e)}})),_T(o,"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==o.state.dataStartIndex||r!==o.state.dataEndIndex){var n=o.state.updateId;o.setState((function(){return ST({dataStartIndex:e,dataEndIndex:r},p({props:o.props,dataStartIndex:e,dataEndIndex:r,updateId:n},o.state))})),o.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),_T(o,"handleMouseEnter",(function(t){var e=o.getMouseInfo(t);if(e){var r=ST(ST({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseEnter;Ma(n)&&n(r,t)}})),_T(o,"triggeredAfterMouseMove",(function(t){var e=o.getMouseInfo(t),r=e?ST(ST({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseMove;Ma(n)&&n(r,t)})),_T(o,"handleItemMouseEnter",(function(t){o.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),_T(o,"handleItemMouseLeave",(function(){o.setState((function(){return{isTooltipActive:!1}}))})),_T(o,"handleMouseMove",(function(t){t.persist(),o.throttleTriggeredAfterMouseMove(t)})),_T(o,"handleMouseLeave",(function(t){o.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};o.setState(e),o.triggerSyncEvent(e);var r=o.props.onMouseLeave;Ma(r)&&r(e,t)})),_T(o,"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&dc[e]?dc[e]:null}(t),n=xa(o.props,"".concat(r));r&&Ma(n)&&n(null!==(e=/.*touch.*/i.test(r)?o.getMouseInfo(t.changedTouches[0]):o.getMouseInfo(t))&&void 0!==e?e:{},t)})),_T(o,"handleClick",(function(t){var e=o.getMouseInfo(t);if(e){var r=ST(ST({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onClick;Ma(n)&&n(r,t)}})),_T(o,"handleMouseDown",(function(t){var e=o.props.onMouseDown;Ma(e)&&e(o.getMouseInfo(t),t)})),_T(o,"handleMouseUp",(function(t){var e=o.props.onMouseUp;Ma(e)&&e(o.getMouseInfo(t),t)})),_T(o,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),_T(o,"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseDown(t.changedTouches[0])})),_T(o,"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseUp(t.changedTouches[0])})),_T(o,"handleDoubleClick",(function(t){var e=o.props.onDoubleClick;Ma(e)&&e(o.getMouseInfo(t),t)})),_T(o,"handleContextMenu",(function(t){var e=o.props.onContextMenu;Ma(e)&&e(o.getMouseInfo(t),t)})),_T(o,"triggerSyncEvent",(function(t){void 0!==o.props.syncId&&YE.emit(GE,o.props.syncId,t,o.eventEmitterSymbol)})),_T(o,"applySyncEvent",(function(t){var e=o.props,r=e.layout,n=e.syncMethod,i=o.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)o.setState(ST({dataStartIndex:a,dataEndIndex:c},p({props:o.props,dataStartIndex:a,dataEndIndex:c,updateId:i},o.state)));else if(void 0!==t.activeTooltipIndex){var l=t.chartX,u=t.chartY,s=t.activeTooltipIndex,f=o.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 v=0;v<h.length;v++)if(h[v].value===t.activeLabel){s=v;break}}var y=ST(ST({},d),{},{x:d.left,y:d.top}),g=Math.min(l,y.x+y.width),m=Math.min(u,y.y+y.height),b=h[s]&&h[s].value,w=TT(o.state,o.props.data,s),x=h[s]?{x:"horizontal"===r?h[s].coordinate:g,y:"horizontal"===r?m:h[s].coordinate}:MT;o.setState(ST(ST({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else o.setState(t)})),_T(o,"renderCursor",(function(t){var r,n=o.state,i=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,l=n.offset,u=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=o.getTooltipEventType(),p=null!==(r=t.props.active)&&void 0!==r?r:i,d=o.props.layout,h=t.key||"_recharts-cursor";return ft.createElement(cT,{key:h,activeCoordinate:a,activePayload:c,activeTooltipIndex:u,chartName:e,element:t,isActive:p,layout:d,offset:l,tooltipAxisBandSize:s,tooltipEventType:f})})),_T(o,"renderPolarAxis",(function(t,e,r){var n=xa(t,"type.axisType"),i=xa(o.state,"".concat(n,"Map")),a=t.type.defaultProps,c=void 0!==a?ST(ST({},a),t.props):t.props,l=i&&i[c["".concat(n,"Id")]];return Ot(t,ST(ST({},l),{},{className:Zn(n,l.className),key:t.key||"".concat(e,"-").concat(r),ticks:JO(l,!0)}))})),_T(o,"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,i=e.polarRadius,a=o.state,c=a.radiusAxisMap,l=a.angleAxisMap,u=Ka(c),s=Ka(l),f=s.cx,p=s.cy,d=s.innerRadius,h=s.outerRadius;return Ot(t,{polarAngles:Array.isArray(n)?n:JO(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(i)?i:JO(u,!0).map((function(t){return t.coordinate})),cx:f,cy:p,innerRadius:d,outerRadius:h,key:t.key||"polar-grid",radialLines:r})})),_T(o,"renderLegend",(function(){var t=o.state.formattedGraphicalItems,e=o.props,r=e.children,n=e.width,i=e.height,a=o.props.margin||{},c=n-(a.left||0)-(a.right||0),u=zO({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:l});if(!u)return null;var s=u.item,f=dT(u,lT);return Ot(s,ST(ST({},f),{},{chartWidth:n,chartHeight:i,margin:a,onBBoxUpdate:o.handleLegendBBoxUpdate}))})),_T(o,"renderTooltip",(function(){var t,e=o.props,r=e.children,n=e.accessibilityLayer,i=bc(r,pv);if(!i)return null;var a=o.state,c=a.isTooltipActive,l=a.activeCoordinate,u=a.activePayload,s=a.activeLabel,f=a.offset,p=null!==(t=i.props.active)&&void 0!==t?t:c;return Ot(i,{viewBox:ST(ST({},f),{},{x:f.left,y:f.top}),active:p,label:s,payload:p?u:[],coordinate:l,accessibilityLayer:n})})),_T(o,"renderBrush",(function(t){var e=o.props,r=e.margin,n=e.data,i=o.state,a=i.offset,c=i.dataStartIndex,l=i.dataEndIndex,u=i.updateId;return Ot(t,{key:t.key||"_recharts-brush",onChange:tS(o.handleBrushChange,t.props.onChange),data:n,x:Za(t.props.x)?t.props.x:a.left,y:Za(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Za(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:l,updateId:"brush-".concat(u)})})),_T(o,"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=o.clipPathId,i=o.state,a=i.xAxisMap,c=i.yAxisMap,l=i.offset,u=t.type.defaultProps||{},s=t.props,f=s.xAxisId,p=void 0===f?u.xAxisId:f,d=s.yAxisId,h=void 0===d?u.yAxisId:d;return Ot(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[p],yAxis:c[h],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:n})})),_T(o,"renderActivePoints",(function(t){var e=t.item,n=t.activePoint,i=t.basePoint,o=t.childIndex,a=t.isRange,c=[],l=e.props.key,u=void 0!==e.item.type.defaultProps?ST(ST({},e.item.type.defaultProps),e.item.props):e.item.props,s=u.activeDot,f=ST(ST({index:o,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:YO(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},Sc(s,!1)),cc(s));return c.push(r.renderActiveDot(s,f,"".concat(l,"-activePoint-").concat(o))),i?c.push(r.renderActiveDot(s,ST(ST({},f),{},{cx:i.x,cy:i.y}),"".concat(l,"-basePoint-").concat(o))):a&&c.push(null),c})),_T(o,"renderGraphicChild",(function(t,e,r){var n=o.filterFormatItem(t,e,r);if(!n)return null;var i=o.getTooltipEventType(),a=o.state,c=a.isTooltipActive,l=a.tooltipAxis,u=a.activeTooltipIndex,s=a.activeLabel,f=bc(o.props.children,pv),p=n.props,d=p.points,h=p.isRange,v=p.baseLine,y=void 0!==n.item.type.defaultProps?ST(ST({},n.item.type.defaultProps),n.item.props):n.item.props,g=y.activeDot,m=y.hide,b=y.activeBar,w=y.activeShape,x=Boolean(!m&&c&&f&&(g||b||w)),O={};"axis"!==i&&f&&"click"===f.props.trigger?O={onClick:tS(o.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(O={onMouseLeave:tS(o.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:tS(o.handleItemMouseEnter,t.props.onMouseEnter)});var S=Ot(t,ST(ST({},n.props),O));if(x){if(!(u>=0)){var _,j=(null!==(_=o.getItemByXY(o.state.activeCoordinate))&&void 0!==_?_:{graphicalItem:S}).graphicalItem,P=j.item,A=void 0===P?t:P,M=j.childIndex,k=ST(ST(ST({},n.props),O),{},{activeIndex:M});return[Ot(A,k),null,null]}var C,E;if(l.dataKey&&!l.allowDuplicatedCategory){var T="function"==typeof l.dataKey?function(t){return"function"==typeof l.dataKey?l.dataKey(t.payload):null}:"payload.".concat(l.dataKey.toString());C=Qa(d,T,s),E=h&&v&&Qa(v,T,s)}else C=null==d?void 0:d[u],E=h&&v&&v[u];if(w||b){var D=void 0!==t.props.activeIndex?t.props.activeIndex:u;return[Ot(t,ST(ST(ST({},n.props),O),{},{activeIndex:D})),null,null]}if(!_a(C))return[S].concat(bT(o.renderActivePoints({item:n,activePoint:C,basePoint:E,childIndex:u,isRange:h})))}return h?[S,null,null]:[S,null]})),_T(o,"renderCustomized",(function(t,e,r){return Ot(t,ST(ST({key:"recharts-customized-".concat(r)},o.props),o.state))})),_T(o,"renderMap",{CartesianGrid:{handler:kT,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:kT},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:kT},YAxis:{handler:kT},Brush:{handler:o.renderBrush,once:!0},Bar:{handler:o.renderGraphicChild},Line:{handler:o.renderGraphicChild},Area:{handler:o.renderGraphicChild},Radar:{handler:o.renderGraphicChild},RadialBar:{handler:o.renderGraphicChild},Scatter:{handler:o.renderGraphicChild},Pie:{handler:o.renderGraphicChild},Funnel:{handler:o.renderGraphicChild},Tooltip:{handler:o.renderCursor,once:!0},PolarGrid:{handler:o.renderPolarGrid,once:!0},PolarAngleAxis:{handler:o.renderPolarAxis},PolarRadiusAxis:{handler:o.renderPolarAxis},Customized:{handler:o.renderCustomized}}),o.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:Ga("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=gv(o.triggeredAfterMouseMove,null!==(i=t.throttleDelay)&&void 0!==i?i:1e3/60),o.state={},o}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&&mT(t,e)}(r,Pt),hT(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,i=t.layout,o=bc(e,pv);if(o){var a=o.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,l=TT(this.state,r,a,c),u=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===i?{x:u,y:s}:{y:u,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=ST(ST({},f),p.props.points[a].tooltipPosition),l=p.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:l,activeCoordinate:f};this.setState(d),this.renderCursor(o),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){_c([bc(t.children,pv)],[bc(this.props.children,pv)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=bc(this.props.children,pv);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return a.indexOf(e)>=0?e:i}return i}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),i={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},o={chartX:Math.round(t.pageX-i.left),chartY:Math.round(t.pageY-i.top)},a=n.width/r.offsetWidth||1,c=this.inRange(o.chartX,o.chartY,a);if(!c)return null;var l=this.state,u=l.xAxisMap,s=l.yAxisMap,f=this.getTooltipEventType(),p=DT(this.state,this.props.data,this.props.layout,c);if("axis"!==f&&u&&s){var d=Ka(u).scale,h=Ka(s).scale,v=d&&d.invert?d.invert(o.chartX):null,y=h&&h.invert?h.invert(o.chartY):null;return ST(ST({},o),{},{xValue:v,yValue:y},p)}return p?ST(ST({},o),p):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,i=t/r,o=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return i>=a.left&&i<=a.left+a.width&&o>=a.top&&o<=a.top+a.height?{x:i,y:o}:null}var c=this.state,l=c.angleAxisMap,u=c.radiusAxisMap;if(l&&u){var s=Ka(l);return OS({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=bc(t,pv),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}),ST(ST({},cc(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){YE.on(GE,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){YE.removeListener(GE,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,i=0,o=n.length;i<o;i++){var a=n[i];if(a.item===t||a.props.key===t.key||e===hc(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,i=e.height,o=e.width;return ft.createElement("defs",null,ft.createElement("clipPath",{id:t},ft.createElement("rect",{x:r,y:n,height:i,width:o})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=pT(e,2),n=r[0],i=r[1];return ST(ST({},t),{},_T({},n,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=pT(e,2),n=r[0],i=r[1];return ST(ST({},t),{},_T({},n,i.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 i=0,o=r.length;i<o;i++){var a=r[i],c=a.props,l=a.item,u=void 0!==l.type.defaultProps?ST(ST({},l.type.defaultProps),l.props):l.props,s=hc(l.type);if("Bar"===s){var f=(c.data||[]).find((function(e){return LP(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(c.data||[]).find((function(e){return OS(t,e)}));if(p)return{graphicalItem:a,payload:p}}else if(TA(a,n)||DA(a,n)||IA(a,n)){var d=BA({graphicalItem:a,activeTooltipItem:n,itemData:u.data}),h=void 0===u.activeIndex?d:u.activeIndex;return{graphicalItem:ST(ST({},a),{},{childIndex:h}),payload:IA(a,n)?u.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var t=this;if(!wc(this))return null;var e,r,n=this.props,i=n.children,o=n.className,a=n.width,c=n.height,l=n.style,u=n.compact,s=n.title,f=n.desc,p=dT(n,uT),d=Sc(p,!1);if(u)return ft.createElement(Ak,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},ft.createElement(Cc,fT({},d,{width:a,height:c,title:s,desc:f}),this.renderClipPath(),Pc(i,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 ft.createElement(Ak,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},ft.createElement("div",fT({className:Zn("recharts-wrapper",o),style:ST({position:"relative",cursor:"default",width:a,height:c},l)},h,{ref:function(e){t.container=e}}),ft.createElement(Cc,fT({},d,{width:a,height:c,title:s,desc:f,style:AT}),this.renderClipPath(),Pc(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();_T(d,"displayName",e),_T(d,"defaultProps",ST({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},s)),_T(d,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,i=t.children,o=t.width,a=t.height,c=t.layout,l=t.stackOffset,u=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var d=RT(t);return ST(ST(ST({},d),{},{updateId:0},p(ST(ST({props:t},d),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:l,prevMargin:u,prevChildren:i})}if(r!==e.prevDataKey||n!==e.prevData||o!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||l!==e.prevStackOffset||!ec(u,e.prevMargin)){var h=RT(t),v={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},y=ST(ST({},DT(e,n,c)),{},{updateId:e.updateId+1}),g=ST(ST(ST({},h),v),y);return ST(ST(ST({},g),p(ST({props:t},g),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:l,prevMargin:u,prevChildren:i})}if(!_c(i,e.prevChildren)){var m,b,w,x,O=bc(i,sM),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=!_a(n)&&!j?e.updateId:e.updateId+1;return ST(ST({updateId:P},p(ST(ST({props:t},e),{},{updateId:P,dataStartIndex:S,dataEndIndex:_}),e)),{},{prevChildren:i,dataStartIndex:S,dataEndIndex:_})}return null})),_T(d,"renderActiveDot",(function(t,e,r){var n;return n=pt(t)?Ot(t,e):Ma(t)?t(e):ft.createElement(HP,e),ft.createElement(Xc,{className:"recharts-active-dot",key:r},n)}));var h=vt((function(t,e){return ft.createElement(d,fT({},t,{ref:e}))}));return h.displayName=d.displayName,h},HT=$T({chartName:"LineChart",GraphicalChild:nE,axisComponents:[{axisType:"xAxis",AxisComp:CE},{axisType:"yAxis",AxisComp:HE}],formatAxisMap:ik}),FT=$T({chartName:"AreaChart",GraphicalChild:bE,axisComponents:[{axisType:"xAxis",AxisComp:CE},{axisType:"yAxis",AxisComp:HE}],formatAxisMap:ik});const UT=({formatter:n,labelFormatter:i,payload:o,cx:a,cy:c})=>{const l=100;return Number.isFinite(o.value)?t("svg",{x:a-50,y:c-60,width:l,height:68,viewBox:"0 0 100 68",xmlns:"http://www.w3.org/2000/svg",children:[i&&t(r,{children:[e("rect",{fill:"white",width:"98",height:"45",stroke:tn.coolElegance(),strokeWidth:"1",rx:"7",ry:"7",className:"shadow"}),e("text",{y:"14",x:"50%",fontSize:10,dominantBaseline:"middle",textAnchor:"middle",children:i(0,[{payload:o}])}),e("text",{y:"30",x:"50%",fontSize:11,dominantBaseline:"middle",textAnchor:"middle",fontWeight:"bold",children:n?n(o.value||0):o.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:tn.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:tn.coolElegance(),strokeWidth:"2"})]}):e(r,{})},VT=({data:r,dataKey:n,width:i="100%",height:o="100%",areaType:a="linear",isAnimated:c=!1,formatter:l,labelFormatter:u,sampleRate:s,style:f})=>{const{isNetGain:p}=Yr({data:r,dataKey:n}),d=Vn(),h=Vn(),v=s?Jr({arr:r||[],n:s}):r;let y,g;v?.length?(g=p?tn.mint():tn.coolElegance(),y=v?.map((t=>{const e=parseFloat(t[n]);return{...t,[n]:Number.isFinite(e)?e:null}}))):(g=tn.coolElegance(),y=[{[n]:1},{[n]:1}]);const m={cursor:v?.length?"crosshair":"default",...f};return e(_v,{width:i,minHeight:o,id:d,children:t(FT,{data:y,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(HE,{domain:v?.length?["dataMin","dataMax"]:[0,2],hide:!0}),e(bE,{type:a,dataKey:n,stroke:g,fill:`url(#${h})`,isAnimationActive:c,activeDot:t=>UT({labelFormatter:u,formatter:l,...t}),dot:!1}),v?.length&&e(pv,{cursor:!1,content:()=>null})]})})},WT=({isCloseable:t,onClick:r})=>{const n=u({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:tn.black(),md:"white"},position:"fixed",top:"0",right:"0",padding:"2",fontSize:"xs",zIndex:"5",width:"10rem",boxShadow:"dark-lg",fontFamily:"mono",children:n})})})},ZT=({children:t,...r})=>e(d,{border:"solid 1px",borderColor:tn.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:t}),qT=({isSelected:t,children:r,...n})=>e(h,{variant:"none",paddingX:"1",fontSize:"sm",color:t?"brand.500":tn.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:t?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),YT=({children:t,...r})=>e(v,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:tn.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:t}),GT=r=>{const{carouselContents:n,isNavVertical:i,...o}=r,[a,c]=mt(0);return n.length>=1&&e(YT,{children:t(y,{gap:10,direction:i?"column":{base:"column",md:"row"},...o,children:[n[a],t(y,{alignItems:"flex-end",justifyContent:"center",gap:6,children:[e(g,{variant:"ghost",isDisabled:0===a,"aria-label":"Previous content",icon:e(Bt,{}),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(zt,{}),onClick:()=>{a<n.length-1&&c((t=>t+1))}})]})]})})},XT=t=>{const{isIndeterminate:r,isChecked:n,...i}=t;return n?e(Ft,{...i}):r?e(xe,{...i}):null},KT=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,name:l,register:u,errorMessage:s,label:f,labelPosition:p="left",spaceBetween:d,onClick:h,...v}=r,g=u?u(l):void 0;return t(m,{as:y,flexDir:"column",isInvalid:Boolean(s),isDisabled:i,isReadOnly:o,isRequired:a,children:[t(y,{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(XT,{}),isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,isInvalid:Boolean(s),size:n,...g,...v}),"right"===p&&e(b,{fontSize:n,m:"0",ml:"3",children:f})]}),e(y,{w:"full",children:s&&e(x,{size:n,children:s})})]})},JT=O(((t,r)=>{const{children:n,uiColor:i,...o}=t;return e(h,{py:"1",px:"2",height:"auto",ref:r,size:"xs",bgColor:`${i}.500 !important`,color:"black",transition:"background-color 0.25s",sx:{"&:not(:disabled):hover, &:not(:disabled):focus, &:not(:disabled)[data-active]":{bgColor:`${i}.300 !important`}},fontSize:"12px",...o,children:n})})),QT=({uiColor:r,isLocalDev:n,enableRefetch:i,setEnableRefetch:o,setShowBreakpointDebugger:a,onDrawerClose:c})=>{const[l,u]=mt(!1),[s,f]=mt(!1),[p,d]=mt(!1);wt((()=>{document.body.classList.contains("show-outlines")&&u(!0),document.body.classList.contains("show-error-boundaries")&&f(!0);const t=document.querySelector(".tsqd-queries-container");d(Boolean(t))}),[o]);const h={width:{base:"full",md:"auto"},uiColor:r};return t(y,{flexDir:"column",children:[e(S,{as:"h3",fontSize:"md",borderBottom:"solid 1px",borderColor:`${r}.700`,mb:"2",fontFamily:"mono",children:"Actions"}),t(_,{children:[t(JT,{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(JT,{onClick:()=>{i?localStorage.setItem("enableRefetch","false"):localStorage.removeItem("enableRefetch"),o(!i),window.location.reload()},position:"relative",...h,_after:i?{}:{bg:"purple.500",borderRadius:"full",width:"3",height:"3",position:"absolute",top:"-0.25rem",right:"-0.25rem",zIndex:"1",content:'""'},children:[i?"Disable":"Enable"," refetch intervals"]}),e(JT,{onClick:()=>{c(),a(!0)},...h,children:"Show breakpoint debugger"}),t(JT,{onClick:()=>{u(!l),document.body.classList.toggle("show-outlines")},...h,children:[l?"Hide":"Show"," outlines"]}),t(JT,{onClick:()=>{f(!s),document.body.classList.toggle("show-error-boundaries")},...h,children:[s?"Hide":"Show"," error boundaries"]})]})]})},tD=({data:r,heading:n,uiColor:i,buttons:o})=>t(y,{flexDir:"column",children:[t(y,{borderBottom:"solid 1px",borderColor:`${i}.700`,mb:"2",justifyContent:"flex-end",children:[n&&e(S,{as:"h3",fontSize:"md",fontFamily:"mono",children:n}),e(y,{ml:"auto",mb:"5px",gap:"2",flexWrap:"wrap",children:o})]}),0===r.length&&e(p,{w:"full",textAlign:"center",children:"No data"}),e(j,{columns:2,gap:1,children:r.map((r=>t(At,{children:[e(p,{textTransform:"uppercase",children:r.label}),e(p,{children:r.value})]},r.label)))})]}),eD=({children:n,footer:i,consoleButton:o,isLocalDev:a})=>{const{isOpen:c,onOpen:l,onClose:u}=P(),[s,f]=mt(!1),p=a?"green":"yellow";return wt((()=>{const t=t=>{t.ctrlKey&&"d"===t.key&&(c?u():l())};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[c,u,l]),wt((()=>{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:u,size:"lg",children:[e(M,{}),t(k,{bg:"blackAlpha.900",color:`${p}.500`,fontFamily:"monospace",className:"dev-console",children:[e(C,{}),e(E,{children:e(y,{gap:"4",alignItems:"center",children:e(S,{as:"h1",fontFamily:"monospace",fontSize:"xl",p:"0",children:"Dev Console"})})}),e(T,{fontSize:"xs",children:e(y,{gap:8,flexDir:"column",children:n({uiColor:p,onClose:u})})}),i({uiColor:p})]})]}),o({uiColor:p,onClose:u,isOpen:c,hideButton:s,onOpen:l})]})},rD=({hideButton:n,enableRefetch:i,onOpen:o,uiColor:a,hasSystemOverride:c,hasFiOverride:l,authBypassEnabled:u})=>{const d=!i||c||l||u,[v,g]=mt(!1);return wt((()=>{window.location.hostname.startsWith("sales-demo-dev.")&&g(!0)}),[]),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:[d&&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(y,{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"}),l&&e(p,{children:"• FI config override applied"}),!i&&e(p,{children:"• Refetch intervals disabled"}),!d&&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:o,fontSize:"lg",bg:"transparent !important",color:`${a}.500`,padding:"0",boxShadow:"dark-lg",children:v?"☆":"⚙"})})]})})},nD=({uiColor:r})=>t(y,{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"})})]})]}),iD=({enableRefetch:t,status:r})=>{let n="inherit";return!1===t&&r?n="gray.500":r||(n="red.600"),e(f,{label:t?null:"Refetch disabled",hasArrow:!0,children:e(D,{width:"fit-content",as:"span",children:e(p,{as:"span",color:n,fontFamily:"body",children:r?"✔":"✘"})})})},oD=({children:t,onSubmit:r,...n})=>e(y,{as:"form",onSubmit:t=>{t.preventDefault(),r&&r(t)},noValidate:!0,gap:"6",flexDir:"column",...n,children:t});var aD=function(){return aD=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},aD.apply(this,arguments)};function cD(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}function lD(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var uD=function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},sD={k:1e3,m:1e6,b:1e9},fD=function(t){var e=t.value,r=t.groupSeparator,n=void 0===r?",":r,i=t.decimalSeparator,o=void 0===i?".":i,a=t.allowDecimals,c=void 0===a||a,l=t.decimalsLimit,u=void 0===l?2:l,s=t.allowNegativeValue,f=void 0===s||s,p=t.disableAbbreviations,d=void 0!==p&&p,h=t.prefix,v=void 0===h?"":h,y=t.transformRawValue,g=(void 0===y?function(t){return t}:y)(e);if("-"===g)return g;var m=d?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(uD(v),")")).test(g),w=RegExp("(\\d+)-?".concat(uD(v))).exec(e)||[],x=w[0],O=w[1],S=function(t,e){void 0===e&&(e=",");var r=new RegExp(uD(e),"g");return t.replace(r,"")}(v?x?g.replace(x,"").concat(O):g.replace(v,""):g,n),_=function(t,e){var r=uD(e.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return t.replace(n,"")}(S,lD([n,o],m,!0)),j=_;if(!d){if(m.some((function(t){return t===_.toLowerCase().replace(o,"")})))return"";var P=function(t,e){void 0===e&&(e=".");var r=new RegExp("(\\d+(".concat(uD(e),"\\d*)?)([kmb])$"),"i"),n=t.match(r);if(n){var i=n[1],o=n[3],a=sD[o.toLowerCase()];return Number(i.replace(e,"."))*a}}(_,o);P&&(j=String(P))}var A=b&&f?"-":"";if(o&&j.includes(o)){var M=_.split(o),k=M[0],C=M[1],E=u&&C?C.slice(0,u):C,T=c?"".concat(o).concat(E):"";return"".concat(A).concat(k).concat(T)}return"".concat(A).concat(j)},pD=function(t,e){var r=e.groupSeparator,n=void 0===r?",":r,i=e.decimalSeparator,o=void 0===i?".":i,a=new RegExp("\\d([^".concat(uD(n)).concat(uD(o),"0-9]+)")),c=t.match(a);return c?c[1]:void 0},dD=function(t){var e=t.value,r=t.decimalSeparator,n=t.intlConfig,i=t.decimalScale,o=t.prefix,a=void 0===o?"":o,c=t.suffix,l=void 0===c?"":c;if(""===e||void 0===e)return"";if("-"===e)return"-";var u=new RegExp("^\\d?-".concat(a?"".concat(uD(a),"?"):"","\\d")).test(e),s="."!==r?hD(e,r,u):e;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f=n||{},p=f.locale,d=f.currency,h=cD(f,["locale","currency"]),v=aD(aD({},h),{minimumFractionDigits:i||0,maximumFractionDigits:20}),y=(n?new Intl.NumberFormat(p,aD(aD({},v),d&&{style:"currency",currency:d})):new Intl.NumberFormat(void 0,v)).formatToParts(Number(s)),g=vD(y,t),m=pD(g,aD({},t)),b=e.slice(-1)===r?r:"",w=(s.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return void 0===i&&w&&r&&(g=g.includes(r)?g.replace(RegExp("(\\d+)(".concat(uD(r),")(\\d+)"),"g"),"$1$2".concat(w)):m&&!l?g.replace(m,"".concat(r).concat(w).concat(m)):"".concat(g).concat(r).concat(w)),l&&b?"".concat(g).concat(b).concat(l):m&&b?g.replace(m,"".concat(b).concat(m)):m&&l?g.replace(m,"".concat(b).concat(l)):[g,b,l].join("")},hD=function(t,e,r){var n=t;return e&&"."!==e&&(n=n.replace(RegExp(uD(e),"g"),"."),r&&"-"===e&&(n="-".concat(n.slice(1)))),n},vD=function(t,e){var r=e.prefix,n=e.groupSeparator,i=e.decimalSeparator,o=e.decimalScale,a=e.disableGroupSeparators,c=void 0!==a&&a;return t.reduce((function(t,e,a){var l=e.type,u=e.value;return 0===a&&r?"minusSign"===l?[u,r]:"currency"===l?lD(lD([],t,!0),[r],!1):[r,u]:"currency"===l?r?t:lD(lD([],t,!0),[u],!1):"group"===l?c?t:lD(lD([],t,!0),[void 0!==n?n:u],!1):"decimal"===l?void 0!==o&&0===o?t:lD(lD([],t,!0),[void 0!==i?i:u],!1):lD(lD([],t,!0),"fraction"===l?[void 0!==o?u.slice(0,o):u]:[u],!1)}),[""]).join("")},yD={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},gD=function(t){return RegExp(/\d/,"gi").test(t)},mD=vt((function(t,e){var r=t.allowDecimals,n=void 0===r||r,i=t.allowNegativeValue,o=void 0===i||i,a=t.id,c=t.name,l=t.className,u=t.customInput,s=t.decimalsLimit,f=t.defaultValue,p=t.disabled,d=void 0!==p&&p,h=t.maxLength,v=t.value,y=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,C=t.decimalSeparator,E=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,$=cD(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(C&&gD(C))throw new Error("decimalSeparator cannot be a number");if(E&&gD(E))throw new Error("groupSeparator cannot be a number");var H=xt((function(){return function(t){var e=t||{},r=e.locale,n=e.currency,i=cD(e,["locale","currency"]);return(r?new Intl.NumberFormat(r,aD(aD({},i),n&&{currency:n,style:"currency"})):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(t,e,r){return"currency"===e.type?aD(aD({},t),0===r?{currencySymbol:e.value,prefix:e.value}:{currencySymbol:e.value,suffix:e.value}):"group"===e.type?aD(aD({},t),{groupSeparator:e.value}):"decimal"===e.type?aD(aD({},t),{decimalSeparator:e.value}):t}),yD)}(O)}),[O]),F=C||H.decimalSeparator||"",U=E||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:o,disableAbbreviations:k,prefix:w||H.prefix,transformRawValue:L},Z=mt((function(){return null!=f?dD(aD(aD({},V),{decimalScale:b,value:String(f)})):null!=v?dD(aD(aD({},V),{decimalScale:b,value:String(v)})):""})),q=Z[0],Y=Z[1],G=mt(!1),X=G[0],K=G[1],J=mt(0),Q=J[0],tt=J[1],et=mt(0),rt=et[0],nt=et[1],it=mt(null),ot=it[0],at=it[1],ct=yt(null);gt(e,(function(){return ct.current}));var lt=function(t,e){K(!0);var r=function(t){var e=t.selectionStart,r=t.value,n=t.lastKeyStroke,i=t.stateValue,o=t.groupSeparator,a=e,c=r;if(i&&a){var l=r.split("");return"Backspace"===n&&i[a]===o&&(l.splice(a-1,1),a-=1),"Delete"===n&&i[a]===o&&(l.splice(a,1),a+=1),{modifiedValue:c=l.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:e}}({selectionStart:e,value:t,lastKeyStroke:ot,stateValue:q,groupSeparator:U}),n=r.modifiedValue,i=r.cursorPosition,o=fD(aD({value:n},W));if(!(h&&o.replace(/-/g,"").length>h)){if(""===o||"-"===o||o===F)return y&&y(void 0,c,{float:null,formatted:"",value:""}),Y(o),void tt(1);var a=F?o.replace(F,"."):o,l=parseFloat(a),u=dD(aD({value:o},V));if(null!=i){var s=i+(u.length-t.length);s=s<=0?w?w.length:0:s,tt(s),nt(rt+1)}if(Y(u),y)y(o,c,{float:l,formatted:u,value:o})}};wt((function(){null==v&&null==f&&Y("")}),[f,v]),wt((function(){X&&"-"!==q&&ct.current&&document.activeElement===ct.current&&ct.current.setSelectionRange(Q,Q)}),[q,Q,ct,X,rt]);var ut=aD({type:"text",inputMode:"decimal",id:a,name:c,className:l,onChange:function(t){var e=t.target,r=e.value,n=e.selectionStart;lt(r,n),T&&T(t)},onBlur:function(t){var e=t.target.value,r=fD(aD({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),i=n[0];if((c=n[1]).length===r)return t;if(c.length>r)return"".concat(i).concat(e).concat(c.slice(0,r))}var o=t.length>r?new RegExp("(\\d+)(\\d{".concat(r,"})")):new RegExp("(\\d)(\\d+)"),a=t.match(o);if(a){i=a[1];var c=a[2];return"".concat(i).concat(e).concat(c)}}return t}(r,F,g),i=function(t,e,r){if(void 0===r||""===e||void 0===e||""===t||void 0===t)return t;if(!t.match(/\d/g))return"";var n=t.split(e),i=n[0],o=n[1];if(0===r)return i;var a=o||"";if(a.length<r)for(;a.length<r;)a+="0";else a=a.slice(0,r);return"".concat(i).concat(e).concat(a)}(n,F,void 0!==b?b:g),o=F?i.replace(F,"."):i,a=parseFloat(o),l=dD(aD(aD({},V),{value:i}));y&&z&&y(i,c,{float:a,formatted:l,value:i}),Y(l),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=null!=v?String(v):void 0,n=F&&r?r.replace(F,"."):r,i=parseFloat(null!=n?n:fD(aD({value:q},W)))||0,a="ArrowUp"===e?i+S:i-S;if(void 0!==_&&a<Number(_)||!o&&a<0)return;if(void 0!==j&&a>Number(j))return;var c=String(S).includes(".")?Number(String(S).split(".")[1].length):void 0;lt(String(c?a.toFixed(c):a).replace(".",F))}N&&N(t)},onKeyUp:function(t){var e=t.key,r=t.currentTarget.selectionStart;if("ArrowUp"!==e&&"ArrowDown"!==e&&"-"!==q){var n=pD(q,{groupSeparator:U,decimalSeparator:F});if(n&&r&&r>q.length-n.length&&ct.current){var i=q.length-n.length;ct.current.setSelectionRange(i,i)}}R&&R(t)},placeholder:m,disabled:d,value:null==v||"-"===q||F&&q===F?q:dD(aD(aD({},V),{decimalScale:X?void 0:b,value:String(v)})),ref:ct},$);if(u){var st=u;return ft.createElement(st,aD({},ut))}return ft.createElement("input",aD({},ut))}));mD.displayName="CurrencyInput";const bD=O(((r,n)=>{const{size:i,isDisabled:o,isReadOnly:a,isRequired:c,spellCheck:l=!1,name:u,label:s,register:f,errorMessage:p,helperText:d,leftAddon:h,leftElement:v,rightAddon:y,rightElement:g,type:w="text",containerCss:O,...S}=r,_=Gr(i),j=f?f(u):void 0,P="currency"===w?{as:mD,placeholder:"$0.00",prefix:"$",allowNegativeValue:!1,disableAbbreviations:!0}:{};return t(m,{isInvalid:Boolean(p),isDisabled:o,isReadOnly:a,isRequired:c,sx:O,children:[s&&e(b,{size:i,children:s}),t(L,{size:i,children:[h&&e(B,{children:h}),v&&e(z,{w:"auto",ml:"1em",children:v}),e($,{size:i,spellCheck:l,paddingLeft:v&&"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}),y&&e(F,{children:y})]}),p&&e(x,{size:i,children:p}),d&&e(U,{fontSize:_,children:d})]})}));var wD=t=>null==t;var xD=t=>!wD(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),OD=t=>{const e=t.constructor&&t.constructor.prototype;return xD(e)&&e.hasOwnProperty("isPrototypeOf")},SD="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function _D(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&&!xD(t))return t;if(e=r?[]:{},r||OD(t))for(const r in t)t.hasOwnProperty(r)&&(e[r]=_D(t[r]));else e=t}return e}var jD=t=>/^\w*$/.test(t),PD=t=>void 0===t,AD=t=>Array.isArray(t)?t.filter(Boolean):[],MD=t=>AD(t.replace(/["|']|\]/g,"").split(/\.|\[/)),kD=(t,e,r)=>{if(!e||!xD(t))return r;const n=(jD(e)?[e]:MD(e)).reduce(((t,e)=>wD(t)?t:t[e]),t);return PD(n)||n===t?PD(t[e])?r:t[e]:n},CD=t=>"boolean"==typeof t,ED=(t,e,r)=>{let n=-1;const i=jD(e)?[e]:MD(e),o=i.length,a=o-1;for(;++n<o;){const e=i[n];let o=r;if(n!==a){const r=t[e];o=xD(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}if("__proto__"===e||"constructor"===e||"prototype"===e)return;t[e]=o,t=t[e]}};const TD="onBlur",DD="onChange",ID="onSubmit",ND="onTouched",RD="all",LD="max",BD="min",zD="maxLength",$D="minLength",HD="pattern",FD="required",UD="validate",VD=ft.createContext(null);VD.displayName="HookFormContext";const WD="undefined"!=typeof window?st.useLayoutEffect:st.useEffect;var ZD=t=>"string"==typeof t,qD=(t,e,r,n,i)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:i||!0}}:{},YD=t=>Array.isArray(t)?t:[t],GD=t=>xD(t)&&!Object.keys(t).length;function XD(t,e){const r=Array.isArray(e)?e:jD(e)?[e]:MD(e),n=1===r.length?t:function(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=PD(t)?n++:t[e[n++]];return t}(t,r),i=r.length-1,o=r[i];return n&&delete n[o],0!==i&&(xD(n)&&GD(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!PD(t[e]))return!1;return!0}(n))&&XD(t,r.slice(0,-1)),t}var KD=t=>t instanceof RegExp,JD=t=>({isOnSubmit:!t||t===ID,isOnBlur:t===TD,isOnChange:t===DD,isOnAll:t===RD,isOnTouch:t===ND});const QD=(t,e,r,n)=>{for(const r of Object.keys(t)){const n=kD(t,r);if(n){const{_f:t,...i}=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(QD(i,e))break}else if(xD(i)&&QD(i,e))break}}};var tI=(t,e,r)=>{const n=YD(kD(t,r));return ED(n,"root",e[r]),ED(t,r,n),t},eI=t=>ZD(t);function rI(t,e,r="validate"){if(eI(t)||Array.isArray(t)&&t.every(eI)||CD(t)&&!t)return{type:r,message:eI(t)?t:"",ref:e}}var nI=t=>xD(t)&&!KD(t)?t:{value:t,message:""},iI=async(t,e,r,n,i,o)=>{const{ref:a,refs:c,required:l,maxLength:u,minLength:s,min:f,max:p,pattern:d,validate:h,name:v,valueAsNumber:y,mount:g}=t._f,m=kD(r,v);if(!g||e.has(v))return{};const b=c?c[0]:a,w=t=>{i&&b.reportValidity&&(b.setCustomValidity(CD(t)?"":t||""),b.reportValidity())},x={};a.type,(t=>{t.type})(a);const O=(y||(t=>"file"===t.type)(a))&&PD(a.value)&&PD(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=qD.bind(null,v,n,x),_=(t,e,r,n=zD,i=$D)=>{const o=t?e:r;x[v]={type:t?n:i,message:o,ref:a,...S(t?n:i,o)}};if(!Array.isArray(m)||!m.length){const{value:t,message:e}=eI(l)?{value:!!l,message:l}:nI(l);if(t&&(x[v]={type:FD,message:e,ref:b,...S(FD,e)},!n))return w(e),x}if(!(O||wD(f)&&wD(p))){let t,e;const r=nI(p),i=nI(f);if(wD(m)||isNaN(m)){const n=a.valueAsDate||new Date(m),o=t=>new Date((new Date).toDateString()+" "+t),c="time"==a.type,l="week"==a.type;ZD(r.value)&&m&&(t=c?o(m)>o(r.value):l?m>r.value:n>new Date(r.value)),ZD(i.value)&&m&&(e=c?o(m)<o(i.value):l?m<i.value:n<new Date(i.value))}else{const n=a.valueAsNumber||(m?+m:m);wD(r.value)||(t=n>r.value),wD(i.value)||(e=n<i.value)}if((t||e)&&(_(!!t,r.message,i.message,LD,BD),!n))return w(x[v].message),x}if((u||s)&&!O&&(ZD(m)||Array.isArray(m))){const t=nI(u),e=nI(s),r=!wD(t.value)&&m.length>+t.value,i=!wD(e.value)&&m.length<+e.value;if((r||i)&&(_(r,t.message,e.message),!n))return w(x[v].message),x}if(d&&!O&&ZD(m)){const{value:t,message:e}=nI(d);if(KD(t)&&!m.match(t)&&(x[v]={type:HD,message:e,ref:a,...S(HD,e)},!n))return w(e),x}if(h)if("function"==typeof h){const t=rI(await h(m,r),b);if(t&&(x[v]={...t,...S(UD,t.message)},!n))return w(t.message),x}else if(xD(h)){let t={};for(const e in h){if(!GD(t)&&!n)break;const i=rI(await h[e](m,r),b,e);i&&(t={...i,...S(e,i.message)},w(i.message),n&&(x[v]=t))}if(!GD(t)&&(x[v]={ref:b,...t},!n))return x}return w(!0),x},oI=()=>{if("undefined"!=typeof crypto&&crypto.randomUUID)return crypto.randomUUID();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)}))},aI=(t,e,r={})=>r.shouldFocus||PD(r.shouldFocus)?r.focusName||`${t}.${PD(r.focusIndex)?e:r.focusIndex}.`:"",cI=(t,e)=>[...t,...YD(e)],lI=t=>Array.isArray(t)?t.map((()=>{})):void 0;function uI(t,e,r){return[...t.slice(0,e),...YD(r),...t.slice(e)]}var sI=(t,e,r)=>Array.isArray(t)?(PD(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],fI=(t,e)=>[...YD(e),...YD(t)];var pI=(t,e)=>PD(e)?[]:function(t,e){let r=0;const n=[...t];for(const t of e)n.splice(t-r,1),r++;return AD(n).length?n:[]}(t,YD(e).sort(((t,e)=>t-e))),dI=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]},hI=(t,e,r)=>(t[e]=r,t);function vI(t){const e=ft.useContext(VD),{control:r=e.control,name:n,keyName:i="id",shouldUnregister:o,rules:a}=t,[c,l]=ft.useState(r._getFieldArray(n)),u=ft.useRef(r._getFieldArray(n).map(oI)),s=ft.useRef(c),f=ft.useRef(n),p=ft.useRef(!1);f.current=n,s.current=c,r._names.array.add(n),a&&r.register(n,a),WD((()=>r._subjects.array.subscribe({next:({values:t,name:e})=>{if(e===f.current||!e){const e=kD(t,f.current);Array.isArray(e)&&(l(e),u.current=e.map(oI))}}}).unsubscribe),[r]);const d=ft.useCallback((t=>{p.current=!0,r._setFieldArray(n,t)}),[r,n]);return ft.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&&(!JD(r._options.mode).isOnSubmit||r._formState.isSubmitted)&&!JD(r._options.reValidateMode).isOnSubmit)if(r._options.resolver)r._runSchema([n]).then((t=>{const e=kD(t.errors,n),i=kD(r._formState.errors,n);(i?!e&&i.type||e&&(i.type!==e.type||i.message!==e.message):e&&e.type)&&(e?ED(r._formState.errors,n,e):XD(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=kD(r._fields,n);!t||!t._f||JD(r._options.reValidateMode).isOnSubmit&&JD(r._options.mode).isOnSubmit||iI(t,r._names.disabled,r._formValues,r._options.criteriaMode===RD,r._options.shouldUseNativeValidation).then((t=>!GD(t)&&r._subjects.state.next({errors:tI(r._formState.errors,t,n)})))}r._subjects.state.next({name:n,values:_D(r._formValues)}),r._names.focus&&QD(r._fields,((t,e)=>{if(r._names.focus&&e.startsWith(r._names.focus)&&t.focus)return t.focus(),1})),r._names.focus="",r._setValid(),p.current=!1}),[c,n,r]),ft.useEffect((()=>(!kD(r._formValues,n)&&r._setFieldArray(n),()=>{r._options.shouldUnregister||o?r.unregister(n):((t,e)=>{const n=kD(r._fields,t);n&&n._f&&(n._f.mount=e)})(n,!1)})),[n,r,i,o]),{swap:ft.useCallback(((t,e)=>{const i=r._getFieldArray(n);dI(i,t,e),dI(u.current,t,e),d(i),l(i),r._setFieldArray(n,i,dI,{argA:t,argB:e},!1)}),[d,n,r]),move:ft.useCallback(((t,e)=>{const i=r._getFieldArray(n);sI(i,t,e),sI(u.current,t,e),d(i),l(i),r._setFieldArray(n,i,sI,{argA:t,argB:e},!1)}),[d,n,r]),prepend:ft.useCallback(((t,e)=>{const i=YD(_D(t)),o=fI(r._getFieldArray(n),i);r._names.focus=aI(n,0,e),u.current=fI(u.current,i.map(oI)),d(o),l(o),r._setFieldArray(n,o,fI,{argA:lI(t)})}),[d,n,r]),append:ft.useCallback(((t,e)=>{const i=YD(_D(t)),o=cI(r._getFieldArray(n),i);r._names.focus=aI(n,o.length-1,e),u.current=cI(u.current,i.map(oI)),d(o),l(o),r._setFieldArray(n,o,cI,{argA:lI(t)})}),[d,n,r]),remove:ft.useCallback((t=>{const e=pI(r._getFieldArray(n),t);u.current=pI(u.current,t),d(e),l(e),!Array.isArray(kD(r._fields,n))&&ED(r._fields,n,void 0),r._setFieldArray(n,e,pI,{argA:t})}),[d,n,r]),insert:ft.useCallback(((t,e,i)=>{const o=YD(_D(e)),a=uI(r._getFieldArray(n),t,o);r._names.focus=aI(n,t,i),u.current=uI(u.current,t,o.map(oI)),d(a),l(a),r._setFieldArray(n,a,uI,{argA:t,argB:lI(e)})}),[d,n,r]),update:ft.useCallback(((t,e)=>{const i=_D(e),o=hI(r._getFieldArray(n),t,i);u.current=[...o].map(((e,r)=>e&&r!==t?u.current[r]:oI())),d(o),l([...o]),r._setFieldArray(n,o,hI,{argA:t,argB:i},!0,!1)}),[d,n,r]),replace:ft.useCallback((t=>{const e=YD(_D(t));u.current=e.map(oI),d([...e]),l([...e]),r._setFieldArray(n,[...e],(t=>t),{},!0,!1)}),[d,n,r]),fields:ft.useMemo((()=>c.map(((t,e)=>({...t,[i]:u.current[e]||oI()})))),[c,i])}}const yI=({name:r,control:n,register:i,defaultValues:o,onArrayAppend:a,onArrayRemove:c})=>{const{fields:l,append:u,remove:s}=vI({control:n,name:r}),p=Object.keys(o).reduce(((t,e)=>({...t,[e]:o[e]})),{});return t(D,{children:[l.map(((n,o)=>e(D,{children:t(D,{pb:6,position:"relative",children:[Object.keys(n).filter((t=>"id"!==t)).map((t=>e(bD,{label:t,name:`${r}.${o}.${t}`,register:i},`${t}-${n.id}`))),e(f,{label:"Delete",children:e(y,{position:"absolute",top:"0",right:"0",children:e(h,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(o),c&&c(o)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),e(y,{children:e(h,{size:"sm",onClick:()=>{u(p),a&&a(p)},ml:"auto",children:"+"})})]})},gI=({data:r,dataKey:n,width:i="100%",height:o="100%",lineType:a="linear",isAnimated:c=!1,formatter:l,labelFormatter:u,sampleRate:s,style:f})=>{const{isNetGain:p}=Yr({data:r,dataKey:n}),d=Vn(),h=s?Jr({arr:r||[],n:s}):r;let v,y;h?.length?(y=p?tn.mint():tn.heroicRed(),v=h?.map((t=>({...t,[n]:Number(t[n])||0})))):(y=tn.coolElegance(),v=[{[n]:0},{[n]:0}]);const g={cursor:h?.length?"crosshair":"default",...f};return e(_v,{width:i,minHeight:o,id:d,children:t(HT,{data:v,style:g,children:[e(HE,{domain:["dataMin","dataMax"],hide:!0}),e(nE,{isAnimationActive:c,type:a,dataKey:n,stroke:y,strokeWidth:"2",activeDot:t=>UT({labelFormatter:u,formatter:l,...t}),dot:!1,scale:"threshold"}),h?.length&&e(pv,{cursor:!1,content:()=>null})]})})},mI=({isOpen:r,onClose:n,headerContent:i=null,footerContent:o=null,children:a,isCentered:c=!0,size:l={base:"md",md:"xl"},isDisabledCloseButton:u,bodyProps:s={},contentProps:f={},...p})=>{const d={maxHeight:"60vh",bg:"transparent",overflowX:"hidden",overflowY:"auto",...s},h={...{minWidth:nn},...f};return t(V,{blockScrollOnMount:!1,scrollBehavior:"inside",isOpen:r,onClose:n,isCentered:c,size:l,trapFocus:!Xr(),...p,children:[e(W,{}),t(Z,{...h,children:[e(q,{children:i}),e(Y,{isDisabled:u}),e(G,{...d,children:a}),o&&e(X,{borderTop:"solid 1px",borderColor:tn.coolElegance(),justifyContent:"flex-start",children:o})]})]})},bI=t=>{const{isActive:r,children:n,href:i,...o}=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 ${tn.black(.08)}`:"none",href:i,alignItems:"center",lineHeight:"1",position:"relative",padding:"2",zIndex:"3",transition:"border-color 0.25s",_hover:{borderColor:!r&&tn.coolElegance(),textDecoration:"none"},...o,children:n},i)};var wI,xI={exports:{}};var OI,SI=(wI||(wI=1,OI=xI,function(t,e){OI.exports=e(ft)}(0,(t=>(()=>{var e={703:(t,e,r)=>{var n=r(414);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,r,i,o,a){if(a!==n){var 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:o,resetWarningCache:i};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 i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}};return e[t](o,o.exports,n),o.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 i={};return(()=>{n.r(i),n.d(i,{default:()=>w});var t=n(98),e=n.n(t),r=n(697),o=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,i=t.page,o=t.selected,c=t.activeClassName,l=t.activeLinkClassName,u=t.getEventListener,s=t.pageSelectedHandler,f=t.href,p=t.extraAriaContext,d=t.pageLabelBuilder,h=t.rel,v=t.ariaLabel||"Page "+i+(p?" "+p:""),y=null;return o&&(y="page",v=t.ariaLabel||"Page "+i+" is your current page",r=void 0!==r?r+" "+c:c,void 0!==n?void 0!==l&&(n=n+" "+l):n=l),e().createElement("li",{className:r},e().createElement("a",a({rel:h,role:f?void 0:"button",className:n,href:f,tabIndex:o?"-1":"0","aria-label":v,"aria-current":y,onKeyPress:s},u(s)),d(i)))};c.propTypes={pageSelectedHandler:o().func.isRequired,selected:o().bool.isRequired,pageClassName:o().string,pageLinkClassName:o().string,activeClassName:o().string,activeLinkClassName:o().string,extraAriaContext:o().string,href:o().string,ariaLabel:o().string,page:o().number.isRequired,getEventListener:o().func.isRequired,pageLabelBuilder:o().func.isRequired,rel:o().string};const l=c;function u(){return u=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},u.apply(this,arguments)}var s=function(t){var r=t.breakLabel,n=t.breakAriaLabel,i=t.breakClassName,o=t.breakLinkClassName,a=t.breakHandler,c=t.getEventListener,l=i||"break";return e().createElement("li",{className:l},e().createElement("a",u({className:o,role:"button",tabIndex:"0","aria-label":n,onKeyPress:a},c(a)),r))};s.propTypes={breakLabel:o().oneOfType([o().string,o().node]),breakAriaLabel:o().string,breakClassName:o().string,breakLinkClassName:o().string,breakHandler:o().func.isRequired,getEventListener:o().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 v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function y(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&&v(t,e)}(c,t);var r,n,i,o,a=(i=c,o=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(i);if(o){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 y(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(y(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(y(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(y(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(y(r),"handlePageChange",(function(t){r.state.selected!==t&&(r.setState({selected:t}),r.callCallback(t))})),m(y(r),"getEventListener",(function(t){return m({},r.props.eventListener,t)})),m(y(r),"handleClick",(function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=i.isPrevious,a=void 0!==o&&o,c=i.isNext,l=void 0!==c&&c,u=i.isBreak,s=void 0!==u&&u,f=i.isActive,p=void 0!==f&&f;t.preventDefault?t.preventDefault():t.returnValue=!1;var d=r.state.selected,h=r.props.onClick,v=n;if(h){var y=h({index:e,selected:d,nextSelectedPage:n,event:t,isPrevious:a,isNext:l,isBreak:s,isActive:p});if(!1===y)return;Number.isInteger(y)&&(v=y)}void 0!==v&&r.handlePageChange(v)})),m(y(r),"handleBreakClick",(function(t,e){var n=r.state.selected;r.handleClick(e,t,n<t?r.getForwardJump():r.getBackwardJump(),{isBreak:!0})})),m(y(r),"callCallback",(function(t){void 0!==r.props.onPageChange&&"function"==typeof r.props.onPageChange&&r.props.onPageChange({selected:t})})),m(y(r),"callActiveCallback",(function(t){void 0!==r.props.onPageActive&&"function"==typeof r.props.onPageActive&&r.props.onPageActive({selected:t})})),m(y(r),"getElementPageRel",(function(t){var e=r.state.selected,n=r.props,i=n.nextPageRel,o=n.prevPageRel,a=n.selectedPageRel;return e-1===t?o:e===t?a:e+1===t?i:void 0})),m(y(r),"pagination",(function(){var t=[],n=r.props,i=n.pageRangeDisplayed,o=n.pageCount,a=n.marginPagesDisplayed,c=n.breakLabel,l=n.breakClassName,u=n.breakLinkClassName,s=n.breakAriaLabels,p=r.state.selected;if(o<=i)for(var d=0;d<o;d++)t.push(r.getPageElement(d));else{var h=i/2,v=i-h;p>o-i/2?h=i-(v=o-p):p<i/2&&(v=i-(h=p));var y,g,m=function(t){return r.getPageElement(t)},b=[];for(y=0;y<o;y++){var w=y+1;if(w<=a)b.push({type:"page",index:y,display:m(y)});else if(w>o-a)b.push({type:"page",index:y,display:m(y)});else if(y>=p-h&&y<=p+(0===p&&i>1?v-1:v))b.push({type:"page",index:y,display:m(y)});else if(c&&b.length>0&&b[b.length-1].display!==g&&(i>0||a>0)){var x=y<p?s.backward:s.forward;g=e().createElement(f,{key:y,breakAriaLabel:x,breakLabel:c,breakClassName:l,breakLinkClassName:u,breakHandler:r.handleBreakClick.bind(null,y),getEventListener:r.getEventListener}),b.push({type:"break",index:y,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,i=t.pageCount,o=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(i)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(i,"). Did you forget a Math.ceil()?")),void 0!==e&&e>i-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(e," > ").concat(i-1,").")),void 0!==o&&o>i-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(o," > ").concat(i-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,i=e.hrefAllControls;if(r)return i||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,i=n.pageClassName,o=n.pageLinkClassName,a=n.activeClassName,c=n.activeLinkClassName,u=n.extraAriaContext,s=n.pageLabelBuilder;return e().createElement(l,{key:t,pageSelectedHandler:this.handlePageSelected.bind(null,t),selected:r===t,rel:this.getElementPageRel(t),pageClassName:i,pageLinkClassName:o,activeClassName:a,activeLinkClassName:c,extraAriaContext:u,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,i=r.disabledLinkClassName,o=r.pageCount,a=r.className,c=r.containerClassName,l=r.previousLabel,u=r.previousClassName,s=r.previousLinkClassName,f=r.previousAriaLabel,d=r.prevRel,v=r.nextLabel,y=r.nextClassName,g=r.nextLinkClassName,m=r.nextAriaLabel,b=r.nextRel,w=this.state.selected,x=0===w,O=w===o-1,S="".concat(p(u)).concat(x?" ".concat(p(n)):""),_="".concat(p(y)).concat(O?" ".concat(p(n)):""),j="".concat(p(s)).concat(x?" ".concat(p(i)):""),P="".concat(p(g)).concat(O?" ".concat(p(i)):""),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)),l)),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)),v)))}}])&&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:o().number.isRequired,pageRangeDisplayed:o().number,marginPagesDisplayed:o().number,previousLabel:o().node,previousAriaLabel:o().string,prevPageRel:o().string,prevRel:o().string,nextLabel:o().node,nextAriaLabel:o().string,nextPageRel:o().string,nextRel:o().string,breakLabel:o().oneOfType([o().string,o().node]),breakAriaLabels:o().shape({forward:o().string,backward:o().string}),hrefBuilder:o().func,hrefAllControls:o().bool,onPageChange:o().func,onPageActive:o().func,onClick:o().func,initialPage:o().number,forcePage:o().number,disableInitialCallback:o().bool,containerClassName:o().string,className:o().string,pageClassName:o().string,pageLinkClassName:o().string,pageLabelBuilder:o().func,activeClassName:o().string,activeLinkClassName:o().string,previousClassName:o().string,nextClassName:o().string,previousLinkClassName:o().string,nextLinkClassName:o().string,disabledClassName:o().string,disabledLinkClassName:o().string,breakClassName:o().string,breakLinkClassName:o().string,extraAriaContext:o().string,ariaLabelBuilder:o().func,eventListener:o().string,renderOnZeroPageCount:o().func,selectedPageRel:o().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})(),i})()))),xI.exports);const _I=n(Pr(SI)),jI=({totalRecords:t=0,recordsPerPage:r=10,pageRangeDisplayed:n=3,handlePageClick:i,forcePage:o,...a})=>{const c=Math.ceil(t/r);return e(y,{justifyContent:{base:"center",md:"flex-end"},fontSize:{base:14,md:18},gap:2,w:"full",...a,children:e(_I,{breakLabel:"...",previousLabel:"<",nextLabel:">",onPageChange:i,pageRangeDisplayed:n,pageCount:c,renderOnZeroPageCount:null,forcePage:o,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:tn.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:i,lastEvaluatedKey:o,...a})=>{const[c,l]=mt([]),[u,s]=mt(1);return t(y,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[e(h,{onClick:()=>{if(2===u)return i(void 0),l([]),void s((t=>t-1));const t=c.length-1,e=c[t-1];i(e),l((t=>t.slice(0,-1))),s((t=>t-1))},isDisabled:r||1===u,children:"Previous"}),e(h,{onClick:()=>{if(o){const t={lastEvaluatedPKey:o.pKey,lastEvaluatedSKey:o.sKey};i(t),l((e=>[...e,t])),s((t=>t+1))}},isDisabled:r||!n,children:"Next"})]})},AI=({children:t,isEnabled:r=!0,...n})=>{const i=r?Mt`
|
|
31
|
+
*/function F_(){if(M_)return A_;M_=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return A_=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,i){for(var o,a,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(n),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))e.call(o,u)&&(c[u]=o[u]);if(t){a=t(o);for(var s=0;s<a.length;s++)r.call(o,a[s])&&(c[a[s]]=o[a[s]])}}return c},A_}function U_(){if(C_)return k_;C_=1;return k_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function V_(){return T_?E_:(T_=1,E_=Function.call.bind(Object.prototype.hasOwnProperty))}function W_(){if(I_)return D_;I_=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=U_(),r={},n=V_();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function i(i,o,a,c,l){if("production"!==process.env.NODE_ENV)for(var u in i)if(n(i,u)){var s;try{if("function"!=typeof i[u]){var f=Error((c||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=i[u](o,u,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+u+"` 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=l?l():"";t("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},D_=i}function Z_(){if(R_)return N_;R_=1;var t=H_(),e=F_(),r=U_(),n=V_(),i=W_(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),N_=function(c,l){var u="function"==typeof Symbol&&Symbol.iterator,s="@@iterator";var f="<<anonymous>>",p={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:v(a),arrayOf:function(t){return v((function(e,n,i,o,a){if("function"!=typeof t)return new h("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var c=e[n];if(!Array.isArray(c))return new h("Invalid "+o+" `"+a+"` of type `"+b(c)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<c.length;l++){var u=t(c,l,i,o,a+"["+l+"]",r);if(u instanceof Error)return u}return null}))},element:v((function(t,e,r,n,i){var o=t[e];return c(o)?null:new h("Invalid "+n+" `"+i+"` of type `"+b(o)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:v((function(e,r,n,i,o){var a=e[r];return t.isValidElementType(a)?null:new h("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return v((function(e,r,n,i,o){if(!(e[r]instanceof t)){var a=t.name||f;return new h("Invalid "+i+" `"+o+"` 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:v((function(t,e,r,n,i){return m(t[e])?null:new h("Invalid "+n+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return v((function(e,i,o,a,c){if("function"!=typeof t)return new h("Property `"+c+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var l=e[i],u=b(l);if("object"!==u)return new h("Invalid "+a+" `"+c+"` of type `"+u+"` supplied to `"+o+"`, expected an object.");for(var s in l)if(n(l,s)){var f=t(l,s,o,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&&o(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 v((function(e,r,n,i,o){for(var a=e[r],c=0;c<t.length;c++)if(d(a,t[c]))return null;var l=JSON.stringify(t,(function(t,e){return"symbol"===w(e)?String(e):e}));return new h("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+l+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var i=t[e];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(i)+" at index "+e+"."),a}return v((function(e,i,o,a,c){for(var l=[],u=0;u<t.length;u++){var s=(0,t[u])(e,i,o,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&l.push(s.data.expectedType)}return new h("Invalid "+a+" `"+c+"` supplied to `"+o+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(t){return v((function(e,n,i,o,a){var c=e[n],l=b(c);if("object"!==l)return new h("Invalid "+o+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var u in t){var s=t[u];if("function"!=typeof s)return g(i,o,a,u,w(s));var f=s(c,u,i,o,a+"."+u,r);if(f)return f}return null}))},exact:function(t){return v((function(i,o,a,c,l){var u=i[o],s=b(u);if("object"!==s)return new h("Invalid "+c+" `"+l+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},i[o],t);for(var p in f){var d=t[p];if(n(t,p)&&"function"!=typeof d)return g(a,c,l,p,w(d));if(!d)return new h("Invalid "+c+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var v=d(u,p,a,c,l+"."+p,r);if(v)return v}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 v(t){if("production"!==process.env.NODE_ENV)var e={},n=0;function i(i,a,c,u,s,p,d){if(u=u||f,p=p||c,d!==r){if(l){var v=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 v.name="Invariant Violation",v}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var y=u+":"+c;!e[y]&&n<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+u+"`. 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[y]=!0,n++)}}return null==a[c]?i?null===a[c]?new h("The "+s+" `"+p+"` is marked as required in `"+u+"`, but its value is `null`."):new h("The "+s+" `"+p+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:t(a,c,u,s,p)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function y(t){return v((function(e,r,n,i,o,a){var c=e[r];return b(c)!==t?new h("Invalid "+i+" `"+o+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,r,n,i){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 `"+i+"`.")}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&&(u&&t[u]||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 i=r.value;if(i&&!m(i[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=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},N_}function q_(){if(B_)return L_;B_=1;var t=U_();function e(){}function r(){}return r.resetWarningCache=e,L_=function(){function n(e,r,n,i,o,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 i(){return n}n.isRequired=n;var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:e};return o.PropTypes=o,o}}function Y_(){if(z_)return O_.exports;if(z_=1,"production"!==process.env.NODE_ENV){var t=H_();O_.exports=Z_()(t.isElement,true)}else O_.exports=q_()();return O_.exports}var G_=Pr(Y_()),X_=Object.getOwnPropertyNames,K_=Object.getOwnPropertySymbols,J_=Object.prototype.hasOwnProperty;function Q_(t,e){return function(r,n,i){return t(r,n,i)&&e(r,n,i)}}function tj(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var i=n.cache,o=i.get(e),a=i.get(r);if(o&&a)return o===r&&a===e;i.set(e,r),i.set(r,e);var c=t(e,r,n);return i.delete(e),i.delete(r),c}}function ej(t){return X_(t).concat(K_(t))}var rj=Object.hasOwn||function(t,e){return J_.call(t,e)};function nj(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var ij="_owner",oj=Object.getOwnPropertyDescriptor,aj=Object.keys;function cj(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 lj(t,e){return nj(t.getTime(),e.getTime())}function uj(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var l=e.entries(),u=!1,s=0;(i=l.next())&&!i.done;){var f=n.value,p=f[0],d=f[1],h=i.value,v=h[0],y=h[1];u||o[s]||!(u=r.equals(p,v,c,s,t,e,r)&&r.equals(d,y,p,v,t,e,r))||(o[s]=!0),s++}if(!u)return!1;c++}return!0}function sj(t,e,r){var n,i=aj(t),o=i.length;if(aj(e).length!==o)return!1;for(;o-- >0;){if((n=i[o])===ij&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!rj(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function fj(t,e,r){var n,i,o,a=ej(t),c=a.length;if(ej(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===ij&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!rj(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(i=oj(t,n),o=oj(e,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function pj(t,e){return nj(t.valueOf(),e.valueOf())}function dj(t,e){return t.source===e.source&&t.flags===e.flags}function hj(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),l=!1,u=0;(i=c.next())&&!i.done;)l||o[u]||!(l=r.equals(n.value,i.value,n.value,i.value,t,e,r))||(o[u]=!0),u++;if(!l)return!1}return!0}function vj(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 yj="[object Arguments]",gj="[object Boolean]",mj="[object Date]",bj="[object Map]",wj="[object Number]",xj="[object Object]",Oj="[object RegExp]",Sj="[object Set]",_j="[object String]",jj=Array.isArray,Pj="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,Aj=Object.assign,Mj=Object.prototype.toString.call.bind(Object.prototype.toString);var kj=Cj();function Cj(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,i=t.createInternalComparator,o=t.createState,a=t.strict,c=void 0!==a&&a,l=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?fj:cj,areDatesEqual:lj,areMapsEqual:n?Q_(uj,fj):uj,areObjectsEqual:n?fj:sj,arePrimitiveWrappersEqual:pj,areRegExpsEqual:dj,areSetsEqual:n?Q_(hj,fj):hj,areTypedArraysEqual:n?fj:vj};if(r&&(i=Aj({},i,r(i))),e){var o=tj(i.areArraysEqual),a=tj(i.areMapsEqual),c=tj(i.areObjectsEqual),l=tj(i.areSetsEqual);i=Aj({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:l})}return i}(t),u=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,i=t.areObjectsEqual,o=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,l=t.areTypedArraysEqual;return function(t,u,s){if(t===u)return!0;if(null==t||null==u||"object"!=typeof t||"object"!=typeof u)return t!=t&&u!=u;var f=t.constructor;if(f!==u.constructor)return!1;if(f===Object)return i(t,u,s);if(jj(t))return e(t,u,s);if(null!=Pj&&Pj(t))return l(t,u,s);if(f===Date)return r(t,u,s);if(f===RegExp)return a(t,u,s);if(f===Map)return n(t,u,s);if(f===Set)return c(t,u,s);var p=Mj(t);return p===mj?r(t,u,s):p===Oj?a(t,u,s):p===bj?n(t,u,s):p===Sj?c(t,u,s):p===xj?"function"!=typeof t.then&&"function"!=typeof u.then&&i(t,u,s):p===yj?i(t,u,s):(p===gj||p===wj||p===_j)&&o(t,u,s)}}(l),s=i?i(u):(e=u,function(t,r,n,i,o,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,i=t.equals,o=t.strict;if(n)return function(t,a){var c=n(),l=c.cache,u=void 0===l?e?new WeakMap:void 0:l,s=c.meta;return r(t,a,{cache:u,equals:i,meta:s,strict:o})};if(e)return function(t,e){return r(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return r(t,e,a)}}({circular:n,comparator:u,createState:o,equals:s,strict:c})}function Ej(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(i){r<0&&(r=i),i-r>e?(t(i),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function Tj(t){return Tj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tj(t)}function Dj(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 Ij(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 Ij(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 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}function Nj(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var i=Dj(n),o=i[0],a=i.slice(1);return"number"==typeof o?void Ej(r.bind(null,a),o):(r(o),void Ej(r.bind(null,a)))}"object"===Tj(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 Rj(t){return Rj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rj(t)}function Lj(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 Bj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Lj(Object(r),!0).forEach((function(e){zj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Lj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zj(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Rj(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==Rj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Rj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Cj({strict:!0}),Cj({circular:!0}),Cj({circular:!0,strict:!0}),Cj({createInternalComparator:function(){return nj}}),Cj({strict:!0,createInternalComparator:function(){return nj}}),Cj({circular:!0,createInternalComparator:function(){return nj}}),Cj({circular:!0,createInternalComparator:function(){return nj},strict:!0});var $j=function(t){return t},Hj=function(t,e){return Object.keys(e).reduce((function(r,n){return Bj(Bj({},r),{},zj({},n,t(n,e[n])))}),{})},Fj=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(",")},Uj="production"!==process.env.NODE_ENV,Vj=function(t,e,r,n,i,o,a,c){if(Uj&&"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 l=[r,n,i,o,a,c],u=0;console.warn(e.replace(/%s/g,(function(){return l[u++]})))}};function Wj(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}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 Zj(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 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 Gj=1e-4,Xj=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Kj=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},Jj=function(t,e){return function(r){var n=Xj(t,e);return Kj(n,r)}},Qj=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],i=e[1],o=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,i=0,o=1,a=1;break;case"ease":n=.25,i=.1,o=.25,a=1;break;case"ease-in":n=.42,i=0,o=1,a=1;break;case"ease-out":n=.42,i=0,o=.58,a=1;break;case"ease-in-out":n=0,i=0,o=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var l=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),u=Wj(l,4);n=u[0],i=u[1],o=u[2],a=u[3]}else Vj(!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)}Vj([n,o,i,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=Jj(n,o),d=Jj(i,a),h=(s=n,f=o,function(t){var e=Xj(s,f),r=[].concat(Zj(e.map((function(t,e){return t*e})).slice(1)),[0]);return Kj(r,t)}),v=function(t){for(var e,r=t>1?1:t,n=r,i=0;i<8;++i){var o=p(n)-r,a=h(n);if(Math.abs(o-r)<Gj||a<Gj)return d(n);n=(e=n-o/a)>1?1:e<0?0:e}return d(n)};return v.isStepper=!1,v},tP=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 Qj(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,i=void 0===n?8:n,o=t.dt,a=void 0===o?17:o,c=function(t,e,n){var o=n+(-(t-e)*r-n*i)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<Gj&&Math.abs(o)<Gj?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return Qj(n);Vj(!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:(Vj(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function eP(t){return eP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eP(t)}function rP(t){return function(t){if(Array.isArray(t))return lP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||cP(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){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?nP(Object(r),!0).forEach((function(e){oP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function oP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==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)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function aP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||cP(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 cP(t,e){if(t){if("string"==typeof t)return lP(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)?lP(t,e):void 0}}function lP(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 uP=function(t,e,r){return t+(e-t)*r},sP=function(t){return t.from!==t.to},fP=function t(e,r,n){var i=Hj((function(t,r){if(sP(r)){var n=aP(e(r.from,r.to,r.velocity),2),i=n[0],o=n[1];return iP(iP({},r),{},{from:i,velocity:o})}return r}),r);return n<1?Hj((function(t,e){return sP(e)?iP(iP({},e),{},{velocity:uP(e.velocity,i[t].velocity,n),from:uP(e.from,i[t].from,n)}):e}),r):t(e,i,n-1)},pP=function(t,e,r,n,i){var o,a,c,l,u=(o=t,a=e,[Object.keys(o),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=u.reduce((function(r,n){return iP(iP({},r),{},oP({},n,[t[n],e[n]]))}),{}),f=u.reduce((function(r,n){return iP(iP({},r),{},oP({},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 o=(n-c)/r.dt;f=fP(r,f,o),i(iP(iP(iP({},t),e),Hj((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(sP).length&&(p=requestAnimationFrame(d))}:function(o){l||(l=o);var a=(o-l)/n,c=Hj((function(t,e){return uP.apply(void 0,rP(e).concat([r(a)]))}),s);if(i(iP(iP(iP({},t),e),c)),a<1)p=requestAnimationFrame(d);else{var u=Hj((function(t,e){return uP.apply(void 0,rP(e).concat([r(1)]))}),s);i(iP(iP(iP({},t),e),u))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(p)}}};function dP(t){return dP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dP(t)}var hP=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function vP(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function yP(t){return function(t){if(Array.isArray(t))return gP(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 gP(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 gP(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 gP(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 mP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function bP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mP(Object(r),!0).forEach((function(e){wP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wP(t,e,r){return(e=OP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xP(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,OP(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function OP(t){var e=function(t,e){if("object"!==dP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!==dP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===dP(e)?e:String(e)}function SP(t,e){return SP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},SP(t,e)}function _P(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=AP(t);if(e){var i=AP(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return jP(this,r)}}function jP(t,e){if(e&&("object"===dP(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 AP(t){return AP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},AP(t)}var MP=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&&SP(t,e)}(r,ht);var e=_P(r);function r(t,n){var i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var o=(i=e.call(this,t,n)).props,a=o.isActive,c=o.attributeName,l=o.from,u=o.to,s=o.steps,f=o.children,p=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(PP(i)),i.changeStyle=i.changeStyle.bind(PP(i)),!a||p<=0)return i.state={style:{}},"function"==typeof f&&(i.state={style:u}),jP(i);if(s&&s.length)i.state={style:s[0].style};else if(l){if("function"==typeof f)return i.state={style:l},jP(i);i.state={style:c?wP({},c,l):l}}else i.state={style:{}};return i}return xP(r,[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,i=e.attributeName,o=e.shouldReAnimate,a=e.to,c=e.from,l=this.state.style;if(n)if(r){if(!(kj(t.to,a)&&t.canBegin&&t.isActive)){var u=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=u||o?c:t.to;if(this.state&&l){var f={style:i?wP({},i,s):s};(i&&l[i]!==s||!i&&l!==s)&&this.setState(f)}this.runAnimation(bP(bP({},this.props),{},{from:s,begin:0}))}}else{var p={style:i?wP({},i,a):a};this.state&&l&&(i&&l[i]!==a||!i&&l!==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,i=t.duration,o=t.easing,a=t.begin,c=t.onAnimationEnd,l=t.onAnimationStart,u=pP(r,n,tP(o),i,this.changeStyle);this.manager.start([l,a,function(){e.stopJSAnimation=u()},i,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,i=t.onAnimationStart,o=r[0],a=o.style,c=o.duration,l=void 0===c?0:c;return this.manager.start([i].concat(yP(r.reduce((function(t,n,i){if(0===i)return t;var o=n.duration,a=n.easing,c=void 0===a?"ease":a,l=n.style,u=n.properties,s=n.onAnimationEnd,f=i>0?r[i-1]:n,p=u||Object.keys(l);if("function"==typeof c||"spring"===c)return[].concat(yP(t),[e.runJSAnimation.bind(e,{from:f.style,to:l,duration:o,easing:c}),o]);var d=Fj(p,o,c),h=bP(bP(bP({},f.style),l),{},{transition:d});return[].concat(yP(t),[h,o,s]).filter($j)}),[a,Math.max(l,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Nj());var e=t.begin,r=t.duration,n=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,l=t.steps,u=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof o&&"function"!=typeof u&&"spring"!==o)if(l.length>1)this.runStepAnimation(t);else{var f=n?wP({},n,i):i,p=Fj(Object.keys(f),r,o);s.start([a,e,bP(bP({},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 i=vP(t,hP),o=dt.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===o||r<=0)return e;var c=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,o=e.className;return Ot(t,bP(bP({},i),{},{style:bP(bP({},n),a),className:o}))};return 1===o?c(dt.only(e)):ft.createElement("div",null,dt.map(e,(function(t){return c(t)})))}}]),r}();function kP(t){return kP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kP(t)}function CP(){return CP=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},CP.apply(this,arguments)}function EP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return TP(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 TP(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 TP(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 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){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?DP(Object(r),!0).forEach((function(e){NP(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}function NP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=kP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=kP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==kP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}MP.displayName="Animate",MP.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},MP.propTypes={from:G_.oneOfType([G_.object,G_.string]),to:G_.oneOfType([G_.object,G_.string]),attributeName:G_.string,duration:G_.number,begin:G_.number,easing:G_.oneOfType([G_.string,G_.func]),steps:G_.arrayOf(G_.shape({duration:G_.number.isRequired,style:G_.object.isRequired,easing:G_.oneOfType([G_.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),G_.func]),properties:G_.arrayOf("string"),onAnimationEnd:G_.func})),children:G_.oneOfType([G_.node,G_.func]),isActive:G_.bool,canBegin:G_.bool,onAnimationEnd:G_.func,shouldReAnimate:G_.bool,onAnimationStart:G_.func,onAnimationReStart:G_.func};var RP=function(t,e,r,n,i){var o,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,l=r>=0?1:-1,u=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&i instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(o+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(u,",").concat(t+l*s[0],",").concat(e)),o+="L ".concat(t+r-l*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(u,",\n ").concat(t+r,",").concat(e+c*s[1])),o+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(u,",\n ").concat(t+r-l*s[2],",").concat(e+n)),o+="L ".concat(t+l*s[3],",").concat(e+n),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(u,",\n ").concat(t,",").concat(e+n-c*s[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+l*p,",").concat(e,"\n L ").concat(t+r-l*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").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(u,",").concat(t+r-l*p,",").concat(e+n,"\n L ").concat(t+l*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(t,",").concat(e+n-c*p," Z")}else o="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return o},LP=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,i=e.x,o=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var l=Math.min(i,i+a),u=Math.max(i,i+a),s=Math.min(o,o+c),f=Math.max(o,o+c);return r>=l&&r<=u&&n>=s&&n<=f}return!1},BP={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},zP=function(t){var e=IP(IP({},BP),t),r=yt(),n=EP(mt(-1),2),i=n[0],o=n[1];wt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,l=e.width,u=e.height,s=e.radius,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,v=e.isAnimationActive,y=e.isUpdateAnimationActive;if(a!==+a||c!==+c||l!==+l||u!==+u||0===l||0===u)return null;var g=Zn("recharts-rectangle",f);return y?ft.createElement(MP,{canBegin:i>0,from:{width:l,height:u,x:a,y:c},to:{width:l,height:u,x:a,y:c},duration:d,animationEasing:p,isActive:y},(function(t){var n=t.width,o=t.height,a=t.x,c=t.y;return ft.createElement(MP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,isActive:v,easing:p},ft.createElement("path",CP({},Sc(e,!0),{className:g,d:RP(a,c,n,o,s),ref:r})))})):ft.createElement("path",CP({},Sc(e,!0),{className:g,d:RP(a,c,l,u,s)}))};function $P(){return $P=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},$P.apply(this,arguments)}var HP=function(t){var e=t.cx,r=t.cy,n=t.r,i=Zn("recharts-dot",t.className);return e===+e&&r===+r&&n===+n?ft.createElement("circle",$P({},Sc(t,!1),cc(t),{className:i,cx:e,cy:r,r:n})):null};function FP(t){return FP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},FP(t)}var UP=["x","y","top","left","width","height","className"];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 WP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ZP(t,e,r){return e=function(t){var e=function(t,e){if("object"!=FP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=FP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==FP(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qP(t,e){if(null==t)return{};var r,n,i=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 o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var YP,GP,XP,KP,JP=function(t,e,r,n,i,o){return"M".concat(t,",").concat(i,"v").concat(n,"M").concat(o,",").concat(e,"h").concat(r)},QP=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,i=void 0===n?0:n,o=t.top,a=void 0===o?0:o,c=t.left,l=void 0===c?0:c,u=t.width,s=void 0===u?0:u,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?WP(Object(r),!0).forEach((function(e){ZP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):WP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:i,top:a,left:l,width:s,height:p},qP(t,UP));return Za(r)&&Za(i)&&Za(s)&&Za(p)&&Za(a)&&Za(l)?ft.createElement("path",VP({},Sc(h,!0),{className:Zn("recharts-cross",d),d:JP(r,i,s,p,a,l)})):null};var tA,eA,rA=function(){if(KP)return XP;KP=1;var t=Yo(),e=function(){if(GP)return YP;GP=1;var t=kp()(Object.getPrototypeOf,Object);return YP=t}(),r=Go(),n=Function.prototype,i=Object.prototype,o=n.toString,a=i.hasOwnProperty,c=o.call(Object);return XP=function(n){if(!r(n)||"[object Object]"!=t(n))return!1;var i=e(n);if(null===i)return!0;var l=a.call(i,"constructor")&&i.constructor;return"function"==typeof l&&l instanceof l&&o.call(l)==c}}(),nA=Pr(rA);var iA=Pr(function(){if(eA)return tA;eA=1;var t=Yo(),e=Go();return tA=function(r){return!0===r||!1===r||e(r)&&"[object Boolean]"==t(r)}}());function oA(t){return oA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oA(t)}function aA(){return aA=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},aA.apply(this,arguments)}function cA(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return lA(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 lA(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 lA(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 uA(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 sA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?uA(Object(r),!0).forEach((function(e){fA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=oA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=oA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==oA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var pA,dA,hA,vA,yA,gA,mA,bA,wA=function(t,e,r,n,i){var o,a=r-n;return o="M ".concat(t,",").concat(e),o+="L ".concat(t+r,",").concat(e),o+="L ".concat(t+r-a/2,",").concat(e+i),o+="L ".concat(t+r-a/2-n,",").concat(e+i),o+="L ".concat(t,",").concat(e," Z")},xA={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},OA=function(t){var e=sA(sA({},xA),t),r=yt(),n=cA(mt(-1),2),i=n[0],o=n[1];wt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,l=e.upperWidth,u=e.lowerWidth,s=e.height,f=e.className,p=e.animationEasing,d=e.animationDuration,h=e.animationBegin,v=e.isUpdateAnimationActive;if(a!==+a||c!==+c||l!==+l||u!==+u||s!==+s||0===l&&0===u||0===s)return null;var y=Zn("recharts-trapezoid",f);return v?ft.createElement(MP,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:l,lowerWidth:u,height:s,x:a,y:c},duration:d,animationEasing:p,isActive:v},(function(t){var n=t.upperWidth,o=t.lowerWidth,a=t.height,c=t.x,l=t.y;return ft.createElement(MP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,easing:p},ft.createElement("path",aA({},Sc(e,!0),{className:y,d:wA(c,l,n,o,a),ref:r})))})):ft.createElement("g",null,ft.createElement("path",aA({},Sc(e,!0),{className:y,d:wA(a,c,l,u,s)})))},SA=["option","shapeType","propTransformer","activeClassName","isActive"];function _A(t){return _A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_A(t)}function jA(t,e){if(null==t)return{};var r,n,i=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 o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function 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 AA(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){MA(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 MA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=_A(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=_A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_A(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kA(t,e){return AA(AA({},e),t)}function CA(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return ft.createElement(zP,r);case"trapezoid":return ft.createElement(OA,r);case"sector":return ft.createElement(u_,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return ft.createElement(gu,r);break;default:return null}}function EA(t){var e,r=t.option,n=t.shapeType,i=t.propTransformer,o=void 0===i?kA:i,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,l=t.isActive,u=jA(t,SA);if(pt(r))e=Ot(r,AA(AA({},u),function(t){return pt(t)?t.props:t}(r)));else if(Ma(r))e=r(u);else if(nA(r)&&!iA(r)){var s=o(r,u);e=ft.createElement(CA,{shapeType:n,elementProps:s})}else{var f=u;e=ft.createElement(CA,{shapeType:n,elementProps:f})}return l?ft.createElement(Xc,{className:c},e):e}function TA(t,e){return null!=e&&"trapezoids"in t.props}function DA(t,e){return null!=e&&"sectors"in t.props}function IA(t,e){return null!=e&&"points"in t.props}function NA(t,e){var r,n,i=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,o=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return i&&o}function RA(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function LA(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function BA(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,i=function(t,e){var r;return TA(t,e)?r="trapezoids":DA(t,e)?r="sectors":IA(t,e)&&(r="points"),r}(r,e),o=function(t,e){var r,n;return TA(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:DA(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:IA(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=vx(o,t),c=r.props[i].filter((function(t){var n=function(t,e){var r;return TA(t,e)?r=NA:DA(t,e)?r=RA:IA(t,e)&&(r=LA),r}(r,e);return n(t,e)})),l=r.props[i].indexOf(c[c.length-1]);return a&&n===l}));return n.indexOf(a[a.length-1])}function zA(){if(vA)return hA;vA=1;var t=hv(),e=1/0;return hA=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 $A(){if(gA)return yA;gA=1;var t=function(){if(dA)return pA;dA=1;var t=Math.ceil,e=Math.max;return pA=function(r,n,i,o){for(var a=-1,c=e(t((n-r)/(i||1)),0),l=Array(c);c--;)l[o?c:++a]=r,r+=i;return l}}(),e=dh(),r=zA();return yA=function(n){return function(i,o,a){return a&&"number"!=typeof a&&e(i,o,a)&&(o=a=void 0),i=r(i),void 0===o?(o=i,i=0):o=r(o),a=void 0===a?i<o?1:-1:r(a),t(i,o,a,n)}}}var HA=function(){if(bA)return mA;bA=1;var t=$A()();return mA=t}(),FA=Pr(HA);function UA(t){return UA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},UA(t)}function VA(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 WA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?VA(Object(r),!0).forEach((function(e){ZA(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):VA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ZA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=UA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=UA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==UA(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var qA=["Webkit","Moz","O","ms"];function YA(t){return YA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},YA(t)}function GA(){return GA=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},GA.apply(this,arguments)}function XA(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 KA(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?XA(Object(r),!0).forEach((function(e){nM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):XA(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function JA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,iM(n.key),n)}}function QA(t,e,r){return e=eM(e),function(t,e){if(e&&("object"===YA(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||[],eM(t).constructor):e.apply(t,r))}function tM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(tM=function(){return!!t})()}function eM(t){return eM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},eM(t)}function rM(t,e){return rM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rM(t,e)}function nM(t,e,r){return(e=iM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iM(t){var e=function(t,e){if("object"!=YA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=YA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==YA(e)?e:e+""}var oM,aM,cM,lM,uM=function(t){return t.changedTouches&&!!t.changedTouches.length},sM=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),nM(r=QA(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)})),nM(r,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),nM(r,"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,i=t.startIndex;null==n||n({endIndex:e,startIndex:i})})),r.detachDragEndListener()})),nM(r,"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),nM(r,"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),nM(r,"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),nM(r,"handleSlideDragStart",(function(t){var e=uM(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&&rM(t,e)}(e,ht),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,i=this.state.scaleValues,o=this.props,a=o.gap,c=o.data.length-1,l=Math.min(r,n),u=Math.max(r,n),s=e.getIndexInRange(i,l),f=e.getIndexInRange(i,u);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,i=e.dataKey,o=ZO(r[t],i,t);return Ma(n)?n(o,t):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,i=e.endX,o=this.props,a=o.x,c=o.width,l=o.travellerWidth,u=o.startIndex,s=o.endIndex,f=o.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+c-l-i,a+c-l-n):p<0&&(p=Math.max(p,a-n,a-i));var d=this.getIndex({startX:n+p,endX:i+p});d.startIndex===u&&d.endIndex===s||!f||f(d),this.setState({startX:n+p,endX:i+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=uM(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,i=e.endX,o=e.startX,a=this.state[n],c=this.props,l=c.x,u=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,d=c.data,h={startX:this.state.startX,endX:this.state.endX},v=t.pageX-r;v>0?v=Math.min(v,l+u-s-a):v<0&&(v=Math.max(v,l-a)),h[n]=a+v;var y=this.getIndex(h),g=y.startIndex,m=y.endIndex;this.setState(nM(nM({},n,a+v),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=d.length-1,("startX"===n&&(i>o?g%p==0:m%p==0)||i<o&&m===t||"endX"===n&&(i>o?m%p==0:g%p==0)||i>o&&m===t)&&f(y))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,i=n.scaleValues,o=n.startX,a=n.endX,c=this.state[e],l=i.indexOf(c);if(-1!==l){var u=l+t;if(!(-1===u||u>=i.length)){var s=i[u];"startX"===e&&s>=a||"endX"===e&&s<=o||this.setState(nM({},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,i=t.height,o=t.fill,a=t.stroke;return ft.createElement("rect",{stroke:a,fill:o,x:e,y:r,width:n,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.data,a=t.children,c=t.padding,l=dt.only(a);return l?ft.cloneElement(l,{x:e,y:r,width:n,height:i,margin:c,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(t,r){var n,i,o=this,a=this.props,c=a.y,l=a.travellerWidth,u=a.height,s=a.traveller,f=a.ariaLabel,p=a.data,d=a.startIndex,h=a.endIndex,v=Math.max(t,this.props.x),y=KA(KA({},Sc(this.props,!1)),{},{x:v,y:c,width:l,height:u}),g=f||"Min value: ".concat(null===(n=p[d])||void 0===n?void 0:n.name,", Max value: ").concat(null===(i=p[h])||void 0===i?void 0:i.name);return ft.createElement(Xc,{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(),o.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(s,y))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,i=r.height,o=r.stroke,a=r.travellerWidth,c=Math.min(t,e)+a,l=Math.max(Math.abs(e-t)-a,0);return ft.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:c,y:n,width:l,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,i=t.height,o=t.travellerWidth,a=t.stroke,c=this.state,l=c.startX,u=c.endX,s={pointerEvents:"none",fill:a};return ft.createElement(Xc,{className:"recharts-brush-texts"},ft.createElement(ly,GA({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:n+i/2},s),this.getTextOfTick(e)),ft.createElement(ly,GA({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+o+5,y:n+i/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,i=t.x,o=t.y,a=t.width,c=t.height,l=t.alwaysShowText,u=this.state,s=u.startX,f=u.endX,p=u.isTextActive,d=u.isSlideMoving,h=u.isTravellerMoving,v=u.isTravellerFocused;if(!e||!e.length||!Za(i)||!Za(o)||!Za(a)||!Za(c)||a<=0||c<=0)return null;var y,g,m,b,w=Zn("recharts-brush",r),x=1===ft.Children.count(n),O=(g="none",m=(y="userSelect").replace(/(\w)/,(function(t){return t.toUpperCase()})),(b=qA.reduce((function(t,e){return WA(WA({},t),{},ZA({},e+m,g))}),{}))[y]=g,b);return ft.createElement(Xc,{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||v||l)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,i=t.height,o=t.stroke,a=Math.floor(r+i/2)-1;return ft.createElement(ft.Fragment,null,ft.createElement("rect",{x:e,y:r,width:n,height:i,fill:o,stroke:"none"}),ft.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),ft.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 ft.isValidElement(t)?ft.cloneElement(t,r):Ma(t)?t(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,c=t.startIndex,l=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return KA({prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,i=t.x,o=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,l=Ly().domain(FA(0,c)).range([i,i+o-a]),u=l.domain().map((function(t){return l(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(r),endX:l(n),scale:l,scaleValues:u}}({data:r,width:n,x:i,travellerWidth:o,startIndex:c,endIndex:l}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+n-o]);var u=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i}return e>=t[n]?n:r}}],n&&JA(r.prototype,n),i&&JA(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();nM(sM,"displayName","Brush"),nM(sM,"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 fM,pM,dM,hM,vM=function(){if(lM)return cM;lM=1;var t=Ps(),e=Vp(),r=function(){if(aM)return oM;aM=1;var t=oh();return oM=function(e,r){var n;return t(e,(function(t,e,i){return!(n=r(t,e,i))})),!!n}}(),n=Vo(),i=dh();return cM=function(o,a,c){var l=n(o)?t:r;return c&&i(o,a,c)&&(a=void 0),l(o,e(a,3))}}(),yM=Pr(vM),gM=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e};var mM,bM,wM,xM,OM,SM,_M=function(){if(hM)return dM;hM=1;var t=function(){if(pM)return fM;pM=1;var t=sh();return fM=function(e,r,n){"__proto__"==r&&t?t(e,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[r]=n},fM}(),e=ih(),r=Vp();return dM=function(n,i){var o={};return i=r(i,3),e(n,(function(e,r,n){t(o,r,i(e,r,n))})),o},dM}(),jM=Pr(_M);var PM=function(){if(SM)return OM;SM=1;var t=(bM||(bM=1,mM=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}),mM),e=function(){if(xM)return wM;xM=1;var t=oh();return wM=function(e,r){var n=!0;return t(e,(function(t,e,i){return n=!!r(t,e,i)})),n}}(),r=Vp(),n=Vo(),i=dh();return OM=function(o,a,c){var l=n(o)?t:e;return c&&i(o,a,c)&&(a=void 0),l(o,r(a,3))}}(),AM=Pr(PM),MM=["x","y"];function kM(t){return kM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kM(t)}function CM(){return CM=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},CM.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 TM(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){DM(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 DM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=kM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=kM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==kM(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function IM(t,e){if(null==t)return{};var r,n,i=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 o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function NM(t,e){var r=t.x,n=t.y,i=IM(t,MM),o="".concat(r),a=parseInt(o,10),c="".concat(n),l=parseInt(c,10),u="".concat(e.height||i.height),s=parseInt(u,10),f="".concat(e.width||i.width),p=parseInt(f,10);return TM(TM(TM(TM(TM({},e),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function RM(t){return ft.createElement(EA,CM({shapeType:"rectangle",propTransformer:NM,activeClassName:"recharts-active-bar"},t))}var LM,BM=["value","background"];function zM(t){return zM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zM(t)}function $M(t,e){if(null==t)return{};var r,n,i=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 o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function HM(){return HM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},HM.apply(this,arguments)}function 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){GM(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){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,XM(n.key),n)}}function WM(t,e,r){return e=qM(e),function(t,e){if(e&&("object"===zM(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,ZM()?Reflect.construct(e,r||[],qM(t).constructor):e.apply(t,r))}function ZM(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ZM=function(){return!!t})()}function qM(t){return qM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qM(t)}function YM(t,e){return YM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},YM(t,e)}function GM(t,e,r){return(e=XM(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XM(t){var e=function(t,e){if("object"!=zM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=zM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==zM(e)?e:e+""}var KM=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),i=0;i<r;i++)n[i]=arguments[i];return GM(t=WM(this,e,[].concat(n)),"state",{isAnimationFinished:!1}),GM(t,"id",Ga("recharts-bar-")),GM(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),GM(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&&YM(t,e)}(e,ht),r=e,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,i=r.dataKey,o=r.activeIndex,a=r.activeBar,c=Sc(this.props,!1);return t&&t.map((function(t,r){var l=r===o,u=l?a:n,s=UM(UM(UM({},c),t),{},{isActive:l,option:u,index:r,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return ft.createElement(Xc,HM({className:"recharts-bar-rectangle"},lc(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,"-").concat(r)}),ft.createElement(RM,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,i=e.isAnimationActive,o=e.animationBegin,a=e.animationDuration,c=e.animationEasing,l=e.animationId,u=this.state.prevData;return ft.createElement(MP,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,o=r.map((function(t,e){var r=u&&u[e];if(r){var o=Ja(r.x,t.x),a=Ja(r.y,t.y),c=Ja(r.width,t.width),l=Ja(r.height,t.height);return UM(UM({},t),{},{x:o(i),y:a(i),width:c(i),height:l(i)})}if("horizontal"===n){var s=Ja(0,t.height)(i);return UM(UM({},t),{},{y:t.y+t.height-s,height:s})}var f=Ja(0,t.width)(i);return UM(UM({},t),{},{width:f})}));return ft.createElement(Xc,null,t.renderRectanglesStatically(o))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&vx(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,i=e.activeIndex,o=Sc(this.props.background,!1);return r.map((function(e,r){e.value;var a=e.background,c=$M(e,BM);if(!a)return null;var l=UM(UM(UM(UM(UM({},c),{},{fill:"#eee"},a),o),lc(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return ft.createElement(RM,HM({key:"background-bar-".concat(r),option:t.props.background,isActive:r===i},l))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,i=r.xAxis,o=r.yAxis,a=r.layout,c=mc(r.children,IO);if(!c)return null;var l="vertical"===a?n[0].height/2:n[0].width/2,u=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:ZO(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return ft.createElement(Xc,s,c.map((function(t){return ft.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,offset:l,dataPointFormatter:u})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=t.className,i=t.xAxis,o=t.yAxis,a=t.left,c=t.top,l=t.width,u=t.height,s=t.isAnimationActive,f=t.background,p=t.id;if(e||!r||!r.length)return null;var d=this.state.isAnimationFinished,h=Zn("recharts-bar",n),v=i&&i.allowDataOverflow,y=o&&o.allowDataOverflow,g=v||y,m=_a(p)?this.id:p;return ft.createElement(Xc,{className:h},v||y?ft.createElement("defs",null,ft.createElement("clipPath",{id:"clipPath-".concat(m)},ft.createElement("rect",{x:v?a:a-l/2,y:y?c:c-u/2,width:v?l:2*l,height:y?u:2*u}))):null,ft.createElement(Xc,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(m,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,m),(!s||d)&&t_.renderCallByParent(this.props,r))}}],i=[{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&&VM(r.prototype,n),i&&VM(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();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 QM(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,nk(n.key),n)}}function tk(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 ek(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tk(Object(r),!0).forEach((function(e){rk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function rk(t,e,r){return(e=nk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nk(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"===e?String:Number)(t)}(t,"string");return"symbol"==JM(e)?e:e+""}LM=KM,GM(KM,"displayName","Bar"),GM(KM,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Fh,animationBegin:0,animationDuration:400,animationEasing:"ease"}),GM(KM,"getComposedData",(function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,c=t.xAxisTicks,l=t.yAxisTicks,u=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,v=r.type.defaultProps,y=void 0!==v?UM(UM({},v),r.props):r.props,g=y.dataKey,m=y.children,b=y.minPointSize,w="horizontal"===h?a:o,x=u?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]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]}({numericAxis:w}),S=mc(m,jv),_=f.map((function(t,e){var n,f,p,v,y,m;u?n=function(t,e){if(!e||2!==e.length||!Za(e[0])||!Za(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!Za(t[0])||t[0]<r)&&(i[0]=r),(!Za(t[1])||t[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i}(u[s+e],x):(n=ZO(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 i="number"==typeof r;return i?t(r,n):(i||("production"!==process.env.NODE_ENV?wO(0,"minPointSize callback function received a value with type of ".concat(kM(r),". Currently only numbers are supported.")):wO()),e)}}(b,LM.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=oS({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:t,index:e}),p=null!==(_=null!=A?A:P)&&void 0!==_?_:void 0,v=d.size;var M=P-A;if(y=Number.isNaN(M)?0:M,m={x:f,y:a.y,width:v,height:a.height},Math.abs(w)>0&&Math.abs(y)<Math.abs(w)){var k=Va(y||w)*(Math.abs(w)-Math.abs(y));p-=k,y+=k}}else{var C=[o.scale(n[0]),o.scale(n[1])],E=C[0],T=C[1];if(f=E,p=oS({axis:a,ticks:l,bandSize:i,offset:d.offset,entry:t,index:e}),v=T-E,y=d.size,m={x:o.x,y:p,width:o.width,height:y},Math.abs(w)>0&&Math.abs(v)<Math.abs(w))v+=Va(v||w)*(Math.abs(w)-Math.abs(v))}return UM(UM(UM({},t),{},{x:f,y:p,width:v,height:y,value:u?n:n[1],payload:t,background:m},S&&S[e]&&S[e].props),{},{tooltipPayload:[pS(r,t)],tooltipPosition:{x:f+v/2,y:p+y/2}})}));return UM({data:_,layout:h},p)}));var ik=function(t,e,r,n,i){var o=t.width,a=t.height,c=t.layout,l=t.children,u=Object.keys(e),s={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!bc(l,KM);return u.reduce((function(o,a){var l,u,p,d,h,v=e[a],y=v.orientation,g=v.domain,m=v.padding,b=void 0===m?{}:m,w=v.mirror,x=v.reversed,O="".concat(y).concat(w?"Mirror":"");if("number"===v.type&&("gap"===v.padding||"no-gap"===v.padding)){var S=g[1]-g[0],_=1/0,j=v.categoricalDomain.sort(tc);if(j.forEach((function(t,e){e>0&&(_=Math.min((t||0)-(j[e-1]||0),_))})),Number.isFinite(_)){var P=_/S,A="vertical"===v.layout?r.height:r.width;if("gap"===v.padding&&(l=P*A/2),"no-gap"===v.padding){var M=Xa(t.barCategoryGap,P*A),k=P*A/2;l=k-M-(k-M)/A*M}}}u="xAxis"===n?[r.left+(b.left||0)+(l||0),r.left+r.width-(b.right||0)-(l||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(l||0),r.top+r.height-(b.bottom||0)-(l||0)]:v.range,x&&(u=[u[1],u[0]]);var C=function(t,e,r){var n=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===n)return"radial"===o&&"radiusAxis"===a?{scale:Ny(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:om(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:Ly(),realScaleType:"point"}:"category"===i?{scale:Ny(),realScaleType:"band"}:{scale:om(),realScaleType:"linear"};if(Aa(n)){var c="scale".concat(nl(n));return{scale:(Xw[c]||Ly)(),realScaleType:Xw[c]?c:"point"}}return Ma(n)?{scale:n}:{scale:Ly(),realScaleType:"point"}}(v,i,f),E=C.scale,T=C.realScaleType;E.domain(g).range(u),function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),i=Math.min(n[0],n[1])-eS,o=Math.max(n[0],n[1])+eS,a=t(e[0]),c=t(e[r-1]);(a<i||a>o||c<i||c>o)&&t.domain([e[0],e[r-1]])}}(E);var D=function(t,e){var r=e.realScaleType,n=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===n&&o&&("auto"===o[0]||"auto"===o[1])){var l=t.domain();if(!l.length)return null;var u=yO(l,i,a);return t.domain([ux(u),nx(u)]),{niceTicks:u}}if(i&&"number"===n){var s=t.domain();return{niceTicks:gO(s,i,a)}}return null}(E,ek(ek({},v),{},{realScaleType:T}));"xAxis"===n?(h="top"===y&&!w||"bottom"===y&&w,p=r.left,d=s[O]-h*v.height):"yAxis"===n&&(h="left"===y&&!w||"right"===y&&w,p=s[O]-h*v.width,d=r.top);var I=ek(ek(ek({},v),D),{},{realScaleType:T,x:p,y:d,scale:E,width:"xAxis"===n?r.width:v.width,height:"yAxis"===n?r.height:v.height});return I.bandSize=sS(I,D),v.hide||"xAxis"!==n?v.hide||(s[O]+=(h?-1:1)*I.width):s[O]+=(h?-1:1)*I.height,ek(ek({},o),{},rk({},a,I))}),{})},ok=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return{x:Math.min(r,i),y:Math.min(n,o),width:Math.abs(i-r),height:Math.abs(o-n)}},ak=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 i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&QM(e.prototype,r),n&&QM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();rk(ak,"EPS",1e-4);var ck=function(t){var e=Object.keys(t).reduce((function(e,r){return ek(ek({},e),{},rk({},r,ak.create(t[r])))}),{});return ek(ek({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return jM(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:i})}))},isInRange:function(t){return AM(t,(function(t,r){return e[r].isInRange(t)}))}})};var lk,uk,sk,fk,pk,dk,hk,vk,yk=function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=n*Math.PI/180,o=Math.atan(r/e),a=i>o&&i<Math.PI-o?r/Math.sin(i):e/Math.cos(i);return Math.abs(a)};function gk(){if(dk)return pk;dk=1;var t=Wp(),e=Vp(),r=function(){if(fk)return sk;fk=1;var t=zA();return sk=function(e){var r=t(e),n=r%1;return r==r?n?r-n:r:0}}(),n=Math.max;return pk=function(i,o,a){var c=null==i?0:i.length;if(!c)return-1;var l=null==a?0:r(a);return l<0&&(l=n(c+l,0)),t(i,e(o,3),l)},pk}!function(){if(vk)return hk;vk=1;var t=function(){if(uk)return lk;uk=1;var t=Vp(),e=Ep(),r=Tp();return lk=function(n){return function(i,o,a){var c=Object(i);if(!e(i)){var l=t(o,3);i=r(i),o=function(t){return l(c[t],t,c)}}var u=n(i,o,a);return u>-1?c[l?i[u]:u]:void 0}}}(),e=t(gk());hk=e}();var mk=Pr(fa())((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 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)}var wk=jt(void 0),xk=jt(void 0),Ok=jt(void 0),Sk=jt({}),_k=jt(void 0),jk=jt(0),Pk=jt(0),Ak=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,i=e.offset,o=t.clipPathId,a=t.children,c=t.width,l=t.height,u=mk(i);return ft.createElement(wk.Provider,{value:r},ft.createElement(xk.Provider,{value:n},ft.createElement(Sk.Provider,{value:i},ft.createElement(Ok.Provider,{value:u},ft.createElement(_k.Provider,{value:o},ft.createElement(jk.Provider,{value:l},ft.createElement(Pk.Provider,{value:c},a)))))))};function Mk(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var kk=function(t){var e=_t(wk);null==e&&("production"!==process.env.NODE_ENV?wO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):wO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?wO(0,'Could not find xAxis by id "'.concat(t,'" [').concat(bk(t),"]. ").concat(Mk(e))):wO()),r},Ck=function(t){var e=_t(xk);null==e&&("production"!==process.env.NODE_ENV?wO(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):wO());var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?wO(0,'Could not find yAxis by id "'.concat(t,'" [').concat(bk(t),"]. ").concat(Mk(e))):wO()),r},Ek=function(){return _t(Pk)},Tk=function(){return _t(jk)};function Dk(t){return Dk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dk(t)}function Ik(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,Fk(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Nk(t,e,r){return e=Lk(e),function(t,e){if(e&&("object"===Dk(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,Rk()?Reflect.construct(e,r||[],Lk(t).constructor):e.apply(t,r))}function Rk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Rk=function(){return!!t})()}function Lk(t){return Lk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Lk(t)}function Bk(t,e){return Bk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Bk(t,e)}function zk(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 $k(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zk(Object(r),!0).forEach((function(e){Hk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Hk(t,e,r){return(e=Fk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fk(t){var e=function(t,e){if("object"!=Dk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Dk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Dk(e)?e:e+""}function Uk(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Vk(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 Vk(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 Vk(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 Wk(){return Wk=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},Wk.apply(this,arguments)}function Zk(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,o=t.yAxisId,a=t.shape,c=t.className,l=t.alwaysShow,u=_t(_k),s=kk(i),f=Ck(o),p=_t(Ok);if(!u||!p)return null;Jc(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=function(t,e,r,n,i,o,a,c,l){var u=i.x,s=i.y,f=i.width,p=i.height;if(r){var d=l.y,h=t.y.apply(d,{position:o});if(gM(l,"discard")&&!t.y.isInRange(h))return null;var v=[{x:u+f,y:h},{x:u,y:h}];return"left"===c?v.reverse():v}if(e){var y=l.x,g=t.x.apply(y,{position:o});if(gM(l,"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=l.segment.map((function(e){return t.apply(e,{position:o})}));return gM(l,"discard")&&yM(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(ck({x:s.scale,y:f.scale}),qa(e),qa(r),n&&2===n.length,p,t.position,s.orientation,f.orientation,t);if(!d)return null;var h=Uk(d,2),v=h[0],y=v.x,g=v.y,m=h[1],b=m.x,w=m.y,x=$k($k({clipPath:gM(t,"hidden")?"url(#".concat(u,")"):void 0},Sc(t,!0)),{},{x1:y,y1:g,x2:b,y2:w});return ft.createElement(Xc,{className:Zn("recharts-reference-line",c)},function(t,e){return ft.isValidElement(t)?ft.cloneElement(t,e):Ma(t)?t(e):ft.createElement("line",Wk({},e,{className:"recharts-reference-line-line"}))}(a,x),LS.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;return ok({x:e,y:r},{x:n,y:i})}({x1:y,y1:g,x2:b,y2:w})))}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),Nk(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&&Bk(t,e)}(e,ft.Component),Ik(e,[{key:"render",value:function(){return ft.createElement(Zk,this.props)}}])}();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 Gk(t){return Gk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gk(t)}function Xk(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 Kk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Xk(Object(r),!0).forEach((function(e){nC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xk(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,iC(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qk(t,e,r){return e=eC(e),function(t,e){if(e&&("object"===Gk(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=iC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iC(t){var e=function(t,e){if("object"!=Gk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=Gk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==Gk(e)?e:e+""}Hk(qk,"displayName","ReferenceLine"),Hk(qk,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var oC=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&&rC(t,e)}(e,ft.Component),Jk(e,[{key:"render",value:function(){var t=this.props,r=t.x,n=t.y,i=t.r,o=t.alwaysShow,a=t.clipPathId,c=qa(r),l=qa(n);if(Jc(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!l)return null;var u=function(t){var e=t.x,r=t.y,n=t.xAxis,i=t.yAxis,o=ck({x:n.scale,y:i.scale}),a=o.apply({x:e,y:r},{bandAware:!0});return gM(t,"discard")&&!o.isInRange(a)?null:a}(this.props);if(!u)return null;var s=u.x,f=u.y,p=this.props,d=p.shape,h=p.className,v=Kk(Kk({clipPath:gM(this.props,"hidden")?"url(#".concat(a,")"):void 0},Sc(this.props,!0)),{},{cx:s,cy:f});return ft.createElement(Xc,{className:Zn("recharts-reference-dot",h)},e.renderDot(d,v),LS.renderCallByParent(this.props,{x:s-i,y:f-i,width:2*i,height:2*i}))}}])}();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)}function cC(t){return cC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cC(t)}function lC(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 uC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lC(Object(r),!0).forEach((function(e){vC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sC(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 fC(t,e,r){return e=dC(e),function(t,e){if(e&&("object"===cC(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,pC()?Reflect.construct(e,r||[],dC(t).constructor):e.apply(t,r))}function pC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(pC=function(){return!!t})()}function dC(t){return dC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},dC(t)}function hC(t,e){return hC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},hC(t,e)}function vC(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"!=cC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=cC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==cC(e)?e:e+""}nC(oC,"displayName","ReferenceDot"),nC(oC,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),nC(oC,"renderDot",(function(t,e){return ft.isValidElement(t)?ft.cloneElement(t,e):Ma(t)?t(e):ft.createElement(HP,Yk({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))}));var gC=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),fC(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&&hC(t,e)}(e,ft.Component),sC(e,[{key:"render",value:function(){var t=this.props,r=t.x1,n=t.x2,i=t.y1,o=t.y2,a=t.className,c=t.alwaysShow,l=t.clipPathId;Jc(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=qa(r),s=qa(n),f=qa(i),p=qa(o),d=this.props.shape;if(!(u||s||f||p||d))return null;var h=function(t,e,r,n,i){var o=i.x1,a=i.x2,c=i.y1,l=i.y2,u=i.xAxis,s=i.yAxis;if(!u||!s)return null;var f=ck({x:u.scale,y:s.scale}),p={x:t?f.x.apply(o,{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(l,{position:"end"}):f.y.rangeMax};return!gM(i,"discard")||f.isInRange(p)&&f.isInRange(d)?ok(p,d):null}(u,s,f,p,this.props);if(!h&&!d)return null;var v=gM(this.props,"hidden")?"url(#".concat(l,")"):void 0;return ft.createElement(Xc,{className:Zn("recharts-reference-area",a)},e.renderRect(d,uC(uC({clipPath:v},Sc(this.props,!0)),h)),LS.renderCallByParent(this.props,h))}}])}();function mC(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],i=0;i<t.length;i+=e)n.push(t[i]);return n}function bC(t,e,r,n,i){if(t*e<t*n||t*e>t*i)return!1;var o=r();return t*(e-t*o/2-n)>=0&&t*(e+t*o/2-i)<=0}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 xC(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 OC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?xC(Object(r),!0).forEach((function(e){SC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function SC(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 _C(t,e,r){var n=t.tick,i=t.ticks,o=t.viewBox,a=t.minTickGap,c=t.orientation,l=t.interval,u=t.tickFormatter,s=t.unit,f=t.angle;if(!i||!i.length||!n)return[];if(Za(l)||Fh)return function(t,e){return mC(t,e+1)}(i,"number"==typeof l&&Za(l)?l:0);var p=[],d="top"===c||"bottom"===c?"width":"height",h=s&&"width"===d?Dv(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},v=function(t,n){var i=Ma(u)?u(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 yk(n,r)}(Dv(i,{fontSize:e,letterSpacing:r}),h,f):Dv(i,{fontSize:e,letterSpacing:r})[d]},y=i.length>=2?Va(i[1].coordinate-i[0].coordinate):1,g=function(t,e,r){var n="width"===r,i=t.x,o=t.y,a=t.width,c=t.height;return 1===e?{start:n?i:o,end:n?i+a:o+c}:{start:n?i+a:o+c,end:n?i:o}}(o,y,d);return"equidistantPreserveStart"===l?function(t,e,r,n,i){for(var o,a=(n||[]).slice(),c=e.start,l=e.end,u=0,s=1,f=c,p=function(){var e=null==n?void 0:n[u];if(void 0===e)return{v:mC(n,s)};var o,a=u,p=function(){return void 0===o&&(o=r(e,a)),o},d=e.coordinate,h=0===u||bC(t,d,p,f,l);h||(u=0,f=c,s+=1),h&&(f=d+t*(p()/2+i),u+=s)};s<=a.length;)if(o=p())return o.v;return[]}(y,g,v,i,a):(p="preserveStart"===l||"preserveStartEnd"===l?function(t,e,r,n,i,o){var a=(n||[]).slice(),c=a.length,l=e.start,u=e.end;if(o){var s=n[c-1],f=r(s,c-1),p=t*(s.coordinate+t*f/2-u);a[c-1]=s=OC(OC({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),bC(t,s.tickCoord,(function(){return f}),l,u)&&(u=s.tickCoord-t*(f/2+i),a[c-1]=OC(OC({},s),{},{isShow:!0}))}for(var d=o?c-1:c,h=function(e){var n,o=a[e],c=function(){return void 0===n&&(n=r(o,e)),n};if(0===e){var s=t*(o.coordinate-t*c()/2-l);a[e]=o=OC(OC({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=OC(OC({},o),{},{tickCoord:o.coordinate});bC(t,o.tickCoord,c,l,u)&&(l=o.tickCoord+t*(c()/2+i),a[e]=OC(OC({},o),{},{isShow:!0}))},v=0;v<d;v++)h(v);return a}(y,g,v,i,a,"preserveStartEnd"===l):function(t,e,r,n,i){for(var o=(n||[]).slice(),a=o.length,c=e.start,l=e.end,u=function(e){var n,u=o[e],s=function(){return void 0===n&&(n=r(u,e)),n};if(e===a-1){var f=t*(u.coordinate+t*s()/2-l);o[e]=u=OC(OC({},u),{},{tickCoord:f>0?u.coordinate-f*t:u.coordinate})}else o[e]=u=OC(OC({},u),{},{tickCoord:u.coordinate});bC(t,u.tickCoord,s,c,l)&&(l=u.tickCoord-t*(s()/2+i),o[e]=OC(OC({},u),{},{isShow:!0}))},s=a-1;s>=0;s--)u(s);return o}(y,g,v,i,a),p.filter((function(t){return t.isShow})))}vC(gC,"displayName","ReferenceArea"),vC(gC,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),vC(gC,"renderRect",(function(t,e){return ft.isValidElement(t)?ft.cloneElement(t,e):Ma(t)?t(e):ft.createElement(zP,aC({},e,{className:"recharts-reference-area-rect"}))}));var jC=["viewBox"],PC=["viewBox"],AC=["ticks"];function MC(t){return MC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},MC(t)}function kC(){return kC=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},kC.apply(this,arguments)}function CC(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 EC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?CC(Object(r),!0).forEach((function(e){BC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):CC(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function TC(t,e){if(null==t)return{};var r,n,i=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 o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function DC(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)}}function IC(t,e,r){return e=RC(e),function(t,e){if(e&&("object"===MC(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,NC()?Reflect.construct(e,r||[],RC(t).constructor):e.apply(t,r))}function NC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(NC=function(){return!!t})()}function RC(t){return RC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},RC(t)}function LC(t,e){return LC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},LC(t,e)}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"!=MC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=MC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==MC(e)?e:e+""}var $C=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=IC(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&&LC(t,e)}(e,Pt),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=TC(t,jC),i=this.props,o=i.viewBox,a=TC(i,PC);return!ec(r,o)||!ec(n,a)||!ec(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,r,n,i,o,a,c=this.props,l=c.x,u=c.y,s=c.width,f=c.height,p=c.orientation,d=c.tickSize,h=c.mirror,v=c.tickMargin,y=h?-1:1,g=t.tickSize||d,m=Za(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=r=t.coordinate,a=(n=(i=u+ +!h*f)-y*g)-y*v,o=m;break;case"left":n=i=t.coordinate,o=(e=(r=l+ +!h*s)-y*g)-y*v,a=m;break;case"right":n=i=t.coordinate,o=(e=(r=l+ +h*s)+y*g)+y*v,a=m;break;default:e=r=t.coordinate,a=(n=(i=u+ +h*f)+y*g)+y*v,o=m}return{line:{x1:e,y1:n,x2:r,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.orientation,a=t.mirror,c=t.axisLine,l=EC(EC(EC({},Sc(this.props,!1)),Sc(c,!1)),{},{fill:"none"});if("top"===o||"bottom"===o){var u=+("top"===o&&!a||"bottom"===o&&a);l=EC(EC({},l),{},{x1:e,y1:r+u*i,x2:e+n,y2:r+u*i})}else{var s=+("left"===o&&!a||"right"===o&&a);l=EC(EC({},l),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+i})}return ft.createElement("line",kC({},l,{className:Zn("recharts-cartesian-axis-line",xa(c,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var i=this,o=this.props,a=o.tickLine,c=o.stroke,l=o.tick,u=o.tickFormatter,s=o.unit,f=_C(EC(EC({},this.props),{},{ticks:t}),r,n),p=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=Sc(this.props,!1),v=Sc(l,!1),y=EC(EC({},h),{},{fill:"none"},Sc(a,!1)),g=f.map((function(t,r){var n=i.getTickLineCoord(t),o=n.line,g=n.tick,m=EC(EC(EC(EC({textAnchor:p,verticalAnchor:d},h),{},{stroke:"none",fill:c},v),g),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:u});return ft.createElement(Xc,kC({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},lc(i.props,t,r)),a&&ft.createElement("line",kC({},y,o,{className:Zn("recharts-cartesian-axis-tick-line",xa(a,"className"))})),l&&e.renderTickItem(l,m,"".concat(Ma(u)?u(t.value,r):t.value).concat(s||"")))}));return ft.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,i=e.height,o=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,l=c.ticks,u=TC(c,AC),s=l;return Ma(o)&&(s=l&&l.length>0?o(this.props):o(u)),n<=0||i<=0||!s||!s.length?null:ft.createElement(Xc,{className:Zn("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),LS.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,e,r){return ft.isValidElement(t)?ft.cloneElement(t,e):Ma(t)?t(e):ft.createElement(ly,kC({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&DC(r.prototype,n),i&&DC(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();BC($C,"displayName","CartesianAxis"),BC($C,"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 HC=["type","layout","connectNulls","ref"],FC=["key"];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){if(null==t)return{};var r,n,i=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 o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function 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 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){eE(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){return function(t){if(Array.isArray(t))return GC(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 GC(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 GC(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 GC(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 XC(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)}}function KC(t,e,r){return e=QC(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,JC()?Reflect.construct(e,r||[],QC(t).constructor):e.apply(t,r))}function JC(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(JC=function(){return!!t})()}function QC(t){return QC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},QC(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"!=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+""}var nE=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),i=0;i<r;i++)n[i]=arguments[i];return eE(t=KC(this,e,[].concat(n)),"state",{isAnimationFinished:!0,totalLength:0}),eE(t,"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),eE(t,"getStrokeDasharray",(function(r,n,i){var o=i.reduce((function(t,e){return t+e}));if(!o)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/o),c=r%o,l=n-r,u=[],s=0,f=0;s<i.length;f+=i[s],++s)if(f+i[s]>c){u=[].concat(YC(i.slice(0,s)),[c-f]);break}var p=u.length%2==0?[0,l]:[l];return[].concat(YC(e.repeat(i,a)),YC(u),p).map((function(t){return"".concat(t,"px")})).join(", ")})),eE(t,"id",Ga("recharts-line-")),eE(t,"pathRef",(function(e){t.mainCurve=e})),eE(t,"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),eE(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&&tE(t,e)}(e,ht),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,i=r.xAxis,o=r.yAxis,a=r.layout,c=mc(r.children,IO);if(!c)return null;var l=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:ZO(t.payload,e)}},u={clipPath:t?"url(#clipPath-".concat(e,")"):null};return ft.createElement(Xc,u,c.map((function(t){return ft.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,dataPointFormatter:l})})))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,a=i.points,c=i.dataKey,l=Sc(this.props,!1),u=Sc(o,!0),s=a.map((function(t,r){var n=qC(qC(qC({key:"dot-".concat(r),r:3},l),u),{},{index:r,cx:t.x,cy:t.y,value:t.value,dataKey:c,payload:t.payload,points:a});return e.renderDotItem(o,n)})),f={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return ft.createElement(Xc,WC({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,r,n){var i=this.props,o=i.type,a=i.layout,c=i.connectNulls;i.ref;var l=VC(i,HC),u=qC(qC(qC({},Sc(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:o,layout:a,connectNulls:c});return ft.createElement(x_,WC({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.strokeDasharray,a=n.isAnimationActive,c=n.animationBegin,l=n.animationDuration,u=n.animationEasing,s=n.animationId,f=n.animateNewValues,p=n.width,d=n.height,h=this.state,v=h.prevPoints,y=h.totalLength;return ft.createElement(MP,{begin:c,duration:l,isActive:a,easing:u,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var a=n.t;if(v){var c=v.length/i.length,l=i.map((function(t,e){var r=Math.floor(e*c);if(v[r]){var n=v[r],i=Ja(n.x,t.x),o=Ja(n.y,t.y);return qC(qC({},t),{},{x:i(a),y:o(a)})}if(f){var l=Ja(2*p,t.x),u=Ja(d/2,t.y);return qC(qC({},t),{},{x:l(a),y:u(a)})}return qC(qC({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(l,t,e)}var u,s=Ja(0,y)(a);if(o){var h="".concat(o).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));u=r.getStrokeDasharray(s,y,h)}else u=r.generateSimpleStrokeDasharray(y,s);return r.renderCurveStatically(i,t,e,{strokeDasharray:u})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,i=r.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&n&&n.length&&(!a&&c>0||!vx(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,i=e.points,o=e.className,a=e.xAxis,c=e.yAxis,l=e.top,u=e.left,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!i||!i.length)return null;var h=this.state.isAnimationFinished,v=1===i.length,y=Zn("recharts-line",o),g=a&&a.allowDataOverflow,m=c&&c.allowDataOverflow,b=g||m,w=_a(d)?this.id:d,x=null!==(t=Sc(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=(Oc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return ft.createElement(Xc,{className:y},g||m?ft.createElement("defs",null,ft.createElement("clipPath",{id:"clipPath-".concat(w)},ft.createElement("rect",{x:g?u:u-s/2,y:m?l:l-f/2,width:g?s:2*s,height:m?f:2*f})),!A&&ft.createElement("clipPath",{id:"clipPath-dots-".concat(w)},ft.createElement("rect",{x:u-M/2,y:l-M/2,width:s+M,height:f+M}))):null,!v&&this.renderCurve(b,w),this.renderErrorBar(b,w),(v||n)&&this.renderDots(b,A,w),(!p||h)&&t_.renderCallByParent(this.props,i))}}],i=[{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(YC(t),[0]):t,n=[],i=0;i<e;++i)n=[].concat(YC(n),YC(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(ft.isValidElement(t))r=ft.cloneElement(t,e);else if(Ma(t))r=t(e);else{var n=e.key,i=VC(e,FC),o=Zn("recharts-line-dot","boolean"!=typeof t?t.className:"");r=ft.createElement(HP,WC({key:n},i,{className:o}))}return r}}],n&&XC(r.prototype,n),i&&XC(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();eE(nE,"displayName","Line"),eE(nE,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Fh,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),eE(nE,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,a=t.dataKey,c=t.bandSize,l=t.displayedData,u=t.offset,s=e.layout;return qC({points:l.map((function(t,e){var l=ZO(t,a);return"horizontal"===s?{x:iS({axis:r,ticks:i,bandSize:c,entry:t,index:e}),y:_a(l)?null:n.scale(l),value:l,payload:t}:{x:_a(l)?null:r.scale(l),y:iS({axis:n,ticks:o,bandSize:c,entry:t,index:e}),value:l,payload:t}})),layout:s},u)}));var iE,oE=["layout","type","stroke","connectNulls","isRange","ref"],aE=["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 lE(t,e){if(null==t)return{};var r,n,i=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 o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function uE(){return uE=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},uE.apply(this,arguments)}function sE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sE(Object(r),!0).forEach((function(e){gE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function pE(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,mE(n.key),n)}}function dE(t,e,r){return e=vE(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,hE()?Reflect.construct(e,r||[],vE(t).constructor):e.apply(t,r))}function hE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(hE=function(){return!!t})()}function vE(t){return vE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vE(t)}function yE(t,e){return yE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yE(t,e)}function gE(t,e,r){return(e=mE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mE(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 bE=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),i=0;i<r;i++)n[i]=arguments[i];return gE(t=dE(this,e,[].concat(n)),"state",{isAnimationFinished:!0}),gE(t,"id",Ga("recharts-area-")),gE(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Ma(e)&&e()})),gE(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Ma(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&&yE(t,e)}(e,ht),r=e,n=[{key:"renderDots",value:function(t,r,n){var i=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(i&&!o)return null;var a=this.props,c=a.dot,l=a.points,u=a.dataKey,s=Sc(this.props,!1),f=Sc(c,!0),p=l.map((function(t,r){var n=fE(fE(fE({key:"dot-".concat(r),r:3},s),f),{},{index:r,cx:t.x,cy:t.y,dataKey:u,value:t.value,payload:t.payload,points:l});return e.renderDotItem(c,n)})),d={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return ft.createElement(Xc,uE({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].x,a=n[n.length-1].x,c=t*Math.abs(o-a),l=nx(n.map((function(t){return t.y||0})));return Za(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(nx(r.map((function(t){return t.y||0}))),l)),Za(l)?ft.createElement("rect",{x:o<a?o:o-c,y:0,width:c,height:Math.floor(l+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].y,a=n[n.length-1].y,c=t*Math.abs(o-a),l=nx(n.map((function(t){return t.x||0})));return Za(r)&&"number"==typeof r?l=Math.max(r,l):r&&Array.isArray(r)&&r.length&&(l=Math.max(nx(r.map((function(t){return t.x||0}))),l)),Za(l)?ft.createElement("rect",{x:0,y:o<a?o:o-c,width:l+(i?parseInt("".concat(i),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 i=this.props,o=i.layout,a=i.type,c=i.stroke,l=i.connectNulls,u=i.isRange;i.ref;var s=lE(i,oE);return ft.createElement(Xc,{clipPath:r?"url(#clipPath-".concat(n,")"):null},ft.createElement(x_,uE({},Sc(s,!0),{points:t,connectNulls:l,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&ft.createElement(x_,uE({},Sc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:l,fill:"none",points:t})),"none"!==c&&u&&ft.createElement(x_,uE({},Sc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:l,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.baseLine,a=n.isAnimationActive,c=n.animationBegin,l=n.animationDuration,u=n.animationEasing,s=n.animationId,f=this.state,p=f.prevPoints,d=f.prevBaseLine;return ft.createElement(MP,{begin:c,duration:l,isActive:a,easing:u,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,l=p.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*l);if(p[r]){var n=p[r],i=Ja(n.x,t.x),o=Ja(n.y,t.y);return fE(fE({},t),{},{x:i(a),y:o(a)})}return t}));return c=Za(o)&&"number"==typeof o?Ja(d,o)(a):_a(o)||Fa(o)?Ja(d,0)(a):o.map((function(t,e){var r=Math.floor(e*l);if(d[r]){var n=d[r],i=Ja(n.x,t.x),o=Ja(n.y,t.y);return fE(fE({},t),{},{x:i(a),y:o(a)})}return t})),r.renderAreaStatically(u,c,t,e)}return ft.createElement(Xc,null,ft.createElement("defs",null,ft.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),ft.createElement(Xc,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(i,o,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,i=r.baseLine,o=r.isAnimationActive,a=this.state,c=a.prevPoints,l=a.prevBaseLine,u=a.totalLength;return o&&n&&n.length&&(!c&&u>0||!vx(c,n)||!vx(l,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,i,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=e.dot,i=e.points,o=e.className,a=e.top,c=e.left,l=e.xAxis,u=e.yAxis,s=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(r||!i||!i.length)return null;var h=this.state.isAnimationFinished,v=1===i.length,y=Zn("recharts-area",o),g=l&&l.allowDataOverflow,m=u&&u.allowDataOverflow,b=g||m,w=_a(d)?this.id:d,x=null!==(t=Sc(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=(Oc(n)?n:{}).clipDot,A=void 0===P||P,M=2*S+j;return ft.createElement(Xc,{className:y},g||m?ft.createElement("defs",null,ft.createElement("clipPath",{id:"clipPath-".concat(w)},ft.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&&ft.createElement("clipPath",{id:"clipPath-dots-".concat(w)},ft.createElement("rect",{x:c-M/2,y:a-M/2,width:s+M,height:f+M}))):null,v?null:this.renderArea(b,w),(n||v)&&this.renderDots(b,A,w),(!p||h)&&t_.renderCallByParent(this.props,i))}}],i=[{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&&pE(r.prototype,n),i&&pE(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,i}();function wE(t){return wE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wE(t)}function xE(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,AE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function OE(t,e,r){return e=_E(e),function(t,e){if(e&&("object"===wE(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"!=wE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=wE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==wE(e)?e:e+""}function ME(){return ME=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},ME.apply(this,arguments)}function kE(t){var e=t.xAxisId,r=Ek(),n=Tk(),i=kk(e);return null==i?null:ft.createElement($C,ME({},i,{className:Zn("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return JO(t,!0)}}))}iE=bE,gE(bE,"displayName","Area"),gE(bE,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Fh,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),gE(bE,"getBaseValue",(function(t,e,r,n){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if(Za(c)&&"number"==typeof c)return c;var l="horizontal"===i?n:r,u=l.scale.domain();if("number"===l.type){var s=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===c?u[0]:"dataMax"===c?u[1]:u[0]})),gE(bE,"getComposedData",(function(t){var e,r=t.props,n=t.item,i=t.xAxis,o=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,l=t.bandSize,u=t.dataKey,s=t.stackedData,f=t.dataStartIndex,p=t.displayedData,d=t.offset,h=r.layout,v=s&&s.length,y=iE.getBaseValue(r,n,i,o),g="horizontal"===h,m=!1,b=p.map((function(t,e){var r;v?r=s[f+e]:(r=ZO(t,u),Array.isArray(r)?m=!0:r=[y,r]);var n=null==r[1]||v&&null==ZO(t,u);return g?{x:iS({axis:i,ticks:a,bandSize:l,entry:t,index:e}),y:n?null:o.scale(r[1]),value:r,payload:t}:{x:n?null:i.scale(r[1]),y:iS({axis:o,ticks:c,bandSize:l,entry:t,index:e}),value:r,payload:t}}));return e=v||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?o.scale(e):null}:{x:null!=e?i.scale(e):null,y:t.y}})):g?o.scale(y):i.scale(y),fE({points:b,baseLine:e,layout:h,isRange:m},d)})),gE(bE,"renderDotItem",(function(t,e){var r;if(ft.isValidElement(t))r=ft.cloneElement(t,e);else if(Ma(t))r=t(e);else{var n=Zn("recharts-area-dot","boolean"!=typeof t?t.className:""),i=e.key,o=lE(e,aE);r=ft.createElement(HP,uE({},o,{key:i,className:n}))}return r}));var CE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),OE(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&&jE(t,e)}(e,ft.Component),xE(e,[{key:"render",value:function(){return ft.createElement(kE,this.props)}}])}();function EE(t){return EE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},EE(t)}function TE(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,BE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function DE(t,e,r){return e=NE(e),function(t,e){if(e&&("object"===EE(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,IE()?Reflect.construct(e,r||[],NE(t).constructor):e.apply(t,r))}function IE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(IE=function(){return!!t})()}function NE(t){return NE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},NE(t)}function RE(t,e){return RE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},RE(t,e)}function LE(t,e,r){return(e=BE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function BE(t){var e=function(t,e){if("object"!=EE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=EE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==EE(e)?e:e+""}function zE(){return zE=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},zE.apply(this,arguments)}PE(CE,"displayName","XAxis"),PE(CE,"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 $E=function(t){var e=t.yAxisId,r=Ek(),n=Tk(),i=Ck(e);return null==i?null:ft.createElement($C,zE({},i,{className:Zn("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return JO(t,!0)}}))},HE=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),DE(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,ft.Component),TE(e,[{key:"render",value:function(){return ft.createElement($E,this.props)}}])}();function FE(t){return function(t){if(Array.isArray(t))return UE(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 UE(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 UE(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 UE(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}LE(HE,"displayName","YAxis"),LE(HE,"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 VE,WE=function(t,e,r,n,i){var o=mc(t,qk),a=mc(t,oC),c=[].concat(FE(o),FE(a)),l=mc(t,gC),u="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[u]===r&&gM(e.props,"extendDomain")&&Za(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),l.length){var p="".concat(s,"1"),d="".concat(s,"2");f=l.reduce((function(t,e){if(e.props[u]===r&&gM(e.props,"extendDomain")&&Za(e.props[p])&&Za(e.props[d])){var n=e.props[p],i=e.props[d];return[Math.min(t[0],n,i),Math.max(t[1],n,i)]}return t}),f)}return i&&i.length&&(f=i.reduce((function(t,e){return Za(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},ZE={exports:{}};var qE=(VE||(VE=1,function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new i(n,o||t,a),l=r?r+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],c]:t._events[l].push(c):(t._events[l]=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,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},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 i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].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,i,o,a){var c=r?r+t:t;if(!this._events[c])return!1;var l,u,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,i),!0;case 5:return s.fn.call(s.context,e,n,i,o),!0;case 6:return s.fn.call(s.context,e,n,i,o,a),!0}for(u=1,l=new Array(f-1);u<f;u++)l[u-1]=arguments[u];s.fn.apply(s.context,l)}else{var p,d=s.length;for(u=0;u<d;u++)switch(s[u].once&&this.removeListener(t,s[u].fn,void 0,!0),f){case 1:s[u].fn.call(s[u].context);break;case 2:s[u].fn.call(s[u].context,e);break;case 3:s[u].fn.call(s[u].context,e,n);break;case 4:s[u].fn.call(s[u].context,e,n,i);break;default:if(!l)for(p=1,l=new Array(f-1);p<f;p++)l[p-1]=arguments[p];s[u].fn.apply(s[u].context,l)}}return!0},c.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var c=this._events[o];if(c.fn)c.fn!==e||i&&!c.once||n&&c.context!==n||a(this,o);else{for(var l=0,u=[],s=c.length;l<s;l++)(c[l].fn!==e||i&&!c[l].once||n&&c[l].context!==n)&&u.push(c[l]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}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}(ZE)),ZE.exports),YE=new(Pr(qE)),GE="recharts.syncMouseEvents";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,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,QE(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function JE(t,e,r){return(e=QE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function QE(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 tT=function(){return KE((function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),JE(this,"activeIndex",0),JE(this,"coordinateList",[]),JE(this,"layout","horizontal")}),[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,i=t.container,o=void 0===i?null:i,a=t.layout,c=void 0===a?null:a,l=t.offset,u=void 0===l?null:l,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!=o?o:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=u?u: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,i=r.y,o=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,l=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,u=n+a+c,s=i+this.offset.top+o/2+l;this.mouseHandlerCallback({pageX:u,pageY:s})}}}])}();function eT(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,o=t.endAngle;return{points:[bS(e,r,n,i),bS(e,r,n,o)],cx:e,cy:r,radius:n,startAngle:i,endAngle:o}}function rT(t,e,r){var n,i,o,a;if("horizontal"===t)o=n=e.x,i=r.top,a=r.top+r.height;else if("vertical"===t)a=i=e.y,n=r.left,o=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return eT(e);var c=e.cx,l=e.cy,u=e.innerRadius,s=e.outerRadius,f=e.angle,p=bS(c,l,u,f),d=bS(c,l,s,f);n=p.x,i=p.y,o=d.x,a=d.y}return[{x:n,y:i},{x:o,y:a}]}function nT(t){return nT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nT(t)}function iT(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 oT(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?iT(Object(r),!0).forEach((function(e){aT(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function aT(t,e,r){return e=function(t){var e=function(t,e){if("object"!=nT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=nT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==nT(e)?e:e+""}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cT(t){var e,r,n,i=t.element,o=t.tooltipEventType,a=t.isActive,c=t.activeCoordinate,l=t.activePayload,u=t.offset,s=t.activeTooltipIndex,f=t.tooltipAxisBandSize,p=t.layout,d=t.chartName,h=null!==(e=i.props.cursor)&&void 0!==e?e:null===(r=i.type.defaultProps)||void 0===r?void 0:r.cursor;if(!i||!h||!a||!c||"ScatterChart"!==d&&"axis"!==o)return null;var v=x_;if("ScatterChart"===d)n=c,v=QP;else if("BarChart"===d)n=function(t,e,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-i:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-i,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(p,c,u,f),v=zP;else if("radial"===p){var y=eT(c),g=y.cx,m=y.cy,b=y.radius;n={cx:g,cy:m,startAngle:y.startAngle,endAngle:y.endAngle,innerRadius:b,outerRadius:b},v=u_}else n={points:rT(p,c,u)},v=x_;var w=oT(oT(oT(oT({stroke:"#ccc",pointerEvents:"none"},u),n),Sc(h,!1)),{},{payload:l,payloadIndex:s,className:Zn("recharts-tooltip-cursor",h.className)});return pt(h)?Ot(h,w):St(v,w)}var lT=["item"],uT=["children","className","width","height","style","compact","title","desc"];function sT(t){return sT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sT(t)}function fT(){return fT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},fT.apply(this,arguments)}function pT(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e);else for(;!(l=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return c}}(t,e)||wT(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 dT(t,e){if(null==t)return{};var r,n,i=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 o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function hT(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,jT(n.key),n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function vT(t,e,r){return e=gT(e),function(t,e){if(e&&("object"===sT(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,yT()?Reflect.construct(e,r||[],gT(t).constructor):e.apply(t,r))}function yT(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(yT=function(){return!!t})()}function gT(t){return gT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gT(t)}function mT(t,e){return mT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mT(t,e)}function bT(t){return function(t){if(Array.isArray(t))return xT(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||wT(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 wT(t,e){if(t){if("string"==typeof t)return xT(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)?xT(t,e):void 0}}function xT(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 OT(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 ST(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?OT(Object(r),!0).forEach((function(e){_T(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):OT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _T(t,e,r){return(e=jT(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jT(t){var e=function(t,e){if("object"!=sT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=sT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==sT(e)?e:e+""}var PT={xAxis:["bottom","top"],yAxis:["left","right"]},AT={width:"100%",height:"100%"},MT={x:0,y:0};function kT(t){return t}var CT=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,i=e.dataEndIndex,o=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(bT(t),bT(r)):t}),[]);return o.length>0?o:t&&t.length&&Za(n)&&Za(i)?t.slice(n,i+1):[]};function ET(t){return"number"===t?[0,"auto"]:void 0}var TT=function(t,e,r,n){var i=t.graphicalItems,o=t.tooltipAxis,a=CT(e,t);return r<0||!i||!i.length||r>=a.length?null:i.reduce((function(i,c){var l,u,s=null!==(l=c.props.data)&&void 0!==l?l:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory)?u=Qa(void 0===s?a:s,o.dataKey,n):u=s&&s[r]||a[r];return u?[].concat(bT(i),[pS(c,u)]):i}),[])},DT=function(t,e,r,n){var i=n||{x:t.chartX,y:t.chartY},o=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(i,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,l=t.tooltipTicks,u=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==r?void 0:r.length)&&void 0!==e?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,l=0;l<a;l++){var u=l>0?n[l-1].coordinate:n[a-1].coordinate,s=n[l].coordinate,f=l>=a-1?n[0].coordinate:n[l+1].coordinate,p=void 0;if(Va(s-u)!==Va(f-s)){var d=[];if(Va(f-s)===Va(c[1]-c[0])){p=f;var h=s+c[1]-c[0];d[0]=Math.min(h,(h+u)/2),d[1]=Math.max(h,(h+u)/2)}else{p=u;var v=f+c[1]-c[0];d[0]=Math.min(s,(v+s)/2),d[1]=Math.max(s,(v+s)/2)}var y=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>y[0]&&t<=y[1]||t>=d[0]&&t<=d[1]){o=n[l].index;break}}else{var g=Math.min(u,f),m=Math.max(u,f);if(t>(g+s)/2&&t<=(m+s)/2){o=n[l].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){o=r[b].index;break}return o}(o,a,l,c);if(u>=0&&l){var s=l[u]&&l[u].value,f=TT(t,e,u,s),p=function(t,e,r,n){var i=e.find((function(t){return t&&t.index===r}));if(i){if("horizontal"===t)return{x:i.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:i.coordinate};if("centric"===t){var o=i.coordinate,a=n.radius;return ST(ST(ST({},n),bS(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,l=n.angle;return ST(ST(ST({},n),bS(n.cx,n.cy,c,l)),{},{angle:l,radius:c})}return MT}(r,a,u,i);return{activeTooltipIndex:u,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},IT=function(t,e){var r=e.axes,n=e.graphicalItems,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,u=t.layout,s=t.children,f=t.stackOffset,p=KO(u,i);return r.reduce((function(e,r){var d,h=void 0!==r.type.defaultProps?ST(ST({},r.type.defaultProps),r.props):r.props,v=h.type,y=h.dataKey,g=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,O=h[o];if(e[O])return e;var S,_,j,P=CT(t.data,{graphicalItems:n.filter((function(t){var e;return(o in t.props?t.props[o]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[o])===O})),dataStartIndex:c,dataEndIndex:l}),A=P.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],i=null==t?void 0:t[1];if(n&&i&&Za(n)&&Za(i))return!0}return!1})(h.domain,g,v)&&(S=uS(h.domain,null,g),!p||"number"!==v&&"auto"===b||(j=qO(P,y,"category")));var M=ET(v);if(!S||0===S.length){var k,C=null!==(k=h.domain)&&void 0!==k?k:M;if(y){if(S=qO(P,y,v),"category"===v&&p){var E=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&&E?(_=S,S=FA(0,A)):m||(S=fS(C,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(bT(t),[e])}),[]))}else if("category"===v)S=m?S.filter((function(t){return""!==t&&!_a(t)})):fS(C,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||_a(e)?t:[].concat(bT(t),[e])}),[]);else if("number"===v){var T=function(t,e,r,n,i){var o=e.map((function(e){return GO(t,e,r,i,n)})).filter((function(t){return!_a(t)}));return o&&o.length?o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(P,n.filter((function(t){var e,r,n=o in t.props?t.props[o]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[o],i="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===O&&(x||!i)})),y,i,u);T&&(S=T)}!p||"number"!==v&&"auto"===b||(j=qO(P,y,"category"))}else S=p?FA(0,A):a&&a[O]&&a[O].hasStack&&"number"===v?"expand"===f?[0,1]:aS(a[O].stackGroups,c,l):XO(P,n.filter((function(t){var e=o in t.props?t.props[o]:t.type.defaultProps[o],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===O&&(x||!r)})),v,u,!0);if("number"===v)S=WE(s,S,O,i,w),C&&(S=uS(C,S,g));else if("category"===v&&C){var D=C;S.every((function(t){return D.indexOf(t)>=0}))&&(S=D)}}return ST(ST({},e),{},_T({},O,ST(ST({},h),{},{axisType:i,domain:S,categoricalDomain:j,duplicateDomain:_,originalDomain:null!==(d=h.domain)&&void 0!==d?d:M,isCategorical:p,layout:u})))}),{})},NT=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,u=t.children,s="".concat(n,"Id"),f=mc(u,i),p={};return f&&f.length?p=IT(t,{axes:f,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:l}):o&&o.length&&(p=function(t,e){var r=e.graphicalItems,n=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,l=e.dataEndIndex,u=t.layout,s=t.children,f=CT(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:l}),p=f.length,d=KO(u,i),h=-1;return r.reduce((function(t,e){var v,y=(void 0!==e.type.defaultProps?ST(ST({},e.type.defaultProps),e.props):e.props)[o],g=ET("number");return t[y]?t:(h++,d?v=FA(0,p):a&&a[y]&&a[y].hasStack?(v=aS(a[y].stackGroups,c,l),v=WE(s,v,y,i)):(v=uS(g,XO(f,r.filter((function(t){var e,r,n=o in t.props?t.props[o]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[o],i="hide"in t.props?t.props.hide:null===(r=t.type.defaultProps)||void 0===r?void 0:r.hide;return n===y&&!i})),"number",u),n.defaultProps.allowDataOverflow),v=WE(s,v,y,i)),ST(ST({},t),{},_T({},y,ST(ST({axisType:i},n.defaultProps),{},{hide:!0,orientation:xa(PT,"".concat(i,".").concat(h%2),null),domain:v,originalDomain:g,isCategorical:d,layout:u}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:l})),p},RT=function(t){var e=t.children,r=t.defaultShowTooltip,n=bc(e,sM),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(i=n.props.startIndex),n.props.endIndex>=0&&(o=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},LT=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"}},BT=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),i=void 0===n?{}:n,o=t.yAxisMap,a=void 0===o?{}:o,c=r.width,l=r.height,u=r.children,s=r.margin||{},f=bc(u,sM),p=bc(u,eh),d=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:ST(ST({},t),{},_T({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),h=Object.keys(i).reduce((function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:ST(ST({},t),{},_T({},n,xa(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),v=ST(ST({},h),d),y=v.bottom;f&&(v.bottom+=f.props.height||sM.defaultProps.height),p&&e&&(v=function(t,e,r,n){var i=r.children,o=r.width,a=r.margin,c=o-(a.left||0)-(a.right||0),l=zO({children:i,legendWidth:c});if(l){var u=n||{},s=u.width,f=u.height,p=l.align,d=l.verticalAlign,h=l.layout;if(("vertical"===h||"horizontal"===h&&"middle"===d)&&"center"!==p&&Za(t[p]))return VO(VO({},t),{},WO({},p,t[p]+(s||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&Za(t[d]))return VO(VO({},t),{},WO({},d,t[d]+(f||0)))}return t}(v,0,r,e));var g=c-v.left-v.right,m=l-v.top-v.bottom;return ST(ST({brushBottom:y},v),{},{width:Math.max(g,0),height:Math.max(m,0)})},zT=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0},$T=function(t){var e=t.chartName,r=t.GraphicalChild,n=t.defaultTooltipEventType,i=void 0===n?"axis":n,o=t.validateTooltipEventTypes,a=void 0===o?["axis"]:o,c=t.axisComponents,l=t.legendContent,u=t.formatAxisMap,s=t.defaultProps,f=function(t,e){var r=e.graphicalItems,n=e.stackGroups,i=e.offset,o=e.updateId,a=e.dataStartIndex,l=e.dataEndIndex,u=t.barSize,s=t.layout,f=t.barGap,p=t.barCategoryGap,d=t.maxBarSize,h=LT(s),v=h.numericAxisName,y=h.cateAxisName,g=function(t){return!(!t||!t.length)&&t.some((function(t){var e=hc(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),m=[];return r.forEach((function(r,h){var b=CT(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:l}),w=void 0!==r.type.defaultProps?ST(ST({},r.type.defaultProps),r.props):r.props,x=w.dataKey,O=w.maxBarSize,S=w["".concat(v,"Id")],_=w["".concat(y,"Id")],j=c.reduce((function(t,n){var i,o,a=e["".concat(n.axisType,"Map")],c=w["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?wO(0,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(i=null==r||null===(o=r.type)||void 0===o?void 0:o.displayName)&&void 0!==i?i:"")):wO());var l=a[c];return ST(ST({},t),{},_T(_T({},n.axisType,l),"".concat(n.axisType,"Ticks"),JO(l)))}),{}),P=j[y],A=j["".concat(y,"Ticks")],M=n&&n[S]&&n[S].hasStack&&function(t,e){var r,n=(null!==(r=t.type)&&void 0!==r&&r.defaultProps?VO(VO({},t.type.defaultProps),t.props):t.props).stackId;if(qa(n)){var i=e[n];if(i){var o=i.items.indexOf(t);return o>=0?i.stackedData[o]:null}}return null}(r,n[S].stackGroups),k=hc(r.type).indexOf("Bar")>=0,C=sS(P,A),E=[],T=g&&function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,i=void 0===n?{}:n;if(!i)return{};for(var o={},a=Object.keys(i),c=0,l=a.length;c<l;c++)for(var u=i[a[c]].stackGroups,s=Object.keys(u),f=0,p=s.length;f<p;f++){var d=u[s[f]],h=d.items,v=d.cateAxisId,y=h.filter((function(t){return hc(t.type).indexOf("Bar")>=0}));if(y&&y.length){var g=y[0].type.defaultProps,m=void 0!==g?VO(VO({},g),y[0].props):y[0].props,b=m.barSize,w=m[v];o[w]||(o[w]=[]);var x=_a(b)?e:b;o[w].push({item:y[0],stackList:y.slice(1),barSize:_a(x)?void 0:Xa(x,r,0)})}}return o}({barSize:u,stackGroups:n,totalSize:zT(j,y)});if(k){var D,I,N=_a(O)?d:O,R=null!==(D=null!==(I=sS(P,A,!0))&&void 0!==I?I:N)&&void 0!==D?D:0;E=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,c=o.length;if(c<1)return null;var l,u=Xa(e,n,0,!0),s=[];if(o[0].barSize===+o[0].barSize){var f=!1,p=n/c,d=o.reduce((function(t,e){return t+e.barSize||0}),0);(d+=(c-1)*u)>=n&&(d-=(c-1)*u,u=0),d>=n&&p>0&&(f=!0,d=c*(p*=.9));var h={offset:((n-d)/2|0)-u,size:0};l=o.reduce((function(t,e){var r={item:e.item,position:{offset:h.offset+h.size+u,size:f?p:e.barSize}},n=[].concat(HO(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 v=Xa(r,n,0,!0);n-2*v-(c-1)*u<=0&&(u=0);var y=(n-2*v-(c-1)*u)/c;y>1&&(y>>=0);var g=a===+a?Math.min(y,a):y;l=o.reduce((function(t,e,r){var n=[].concat(HO(t),[{item:e.item,position:{offset:v+(y+u)*r+(y-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 l}({barGap:f,barCategoryGap:p,bandSize:R!==C?R:C,sizeList:T[_],maxBarSize:N}),R!==C&&(E=E.map((function(t){return ST(ST({},t),{},{position:ST(ST({},t.position),{},{offset:t.position.offset-R/2})})})))}var L,B,z=r&&r.type&&r.type.getComposedData;z&&m.push({props:ST(ST({},z(ST(ST({},j),{},{displayedData:b,props:t,dataKey:x,item:r,bandSize:C,barPosition:E,offset:i,stackedData:M,layout:s,dataStartIndex:a,dataEndIndex:l}))),{},_T(_T(_T({key:r.key||"item-".concat(h)},v,j[v]),y,j[y]),"animationId",o)),childIndex:(L=r,B=t.children,gc(B).indexOf(L)),item:r})})),m},p=function(t,n){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,l=t.updateId;if(!wc({props:i}))return null;var s=i.children,p=i.layout,d=i.stackOffset,h=i.data,v=i.reverseStackOrder,y=LT(p),g=y.numericAxisName,m=y.cateAxisName,b=mc(s,r),w=function(t,e,r,n,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce((function(t,e){var i,o=null!==(i=e.type)&&void 0!==i&&i.defaultProps?VO(VO({},e.type.defaultProps),e.props):e.props,a=o.stackId;if(o.hide)return t;var c=o[r],l=t[c]||{hasStack:!1,stackGroups:{}};if(qa(a)){var u=l.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};u.items.push(e),l.hasStack=!0,l.stackGroups[a]=u}else l.stackGroups[Ga("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return VO(VO({},t),{},WO({},c,l))}),{});return Object.keys(a).reduce((function(e,o){var c=a[o];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,o){var a=c.stackGroups[o];return VO(VO({},e),{},WO({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:nS(t,a.items,i)}))}),{})),VO(VO({},e),{},WO({},o,c))}),{})}(h,b,"".concat(g,"Id"),"".concat(m,"Id"),d,v),x=c.reduce((function(t,e){var r="".concat(e.axisType,"Map");return ST(ST({},t),{},_T({},r,NT(i,ST(ST({},e),{},{graphicalItems:b,stackGroups:e.axisType===g&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=BT(ST(ST({},x),{},{props:i,graphicalItems:b}),null==n?void 0:n.legendBBox);Object.keys(x).forEach((function(t){x[t]=u(i,x[t],O,t.replace("Map",""),e)}));var S,_,j=x["".concat(m,"Map")],P=(S=Ka(j),{tooltipTicks:_=JO(S,!1,!0),orderedTooltipTicks:vh(_,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:sS(S,_)}),A=f(i,ST(ST({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:l,graphicalItems:b,stackGroups:w,offset:O}));return ST(ST({formattedGraphicalItems:A,graphicalItems:b,offset:O,stackGroups:w},P),x)},d=function(t){function r(t){var n,i,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),_T(o=vT(this,r,[t]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),_T(o,"accessibilityManager",new tT),_T(o,"handleLegendBBoxUpdate",(function(t){if(t){var e=o.state,r=e.dataStartIndex,n=e.dataEndIndex,i=e.updateId;o.setState(ST({legendBBox:t},p({props:o.props,dataStartIndex:r,dataEndIndex:n,updateId:i},ST(ST({},o.state),{},{legendBBox:t}))))}})),_T(o,"handleReceiveSyncEvent",(function(t,e,r){if(o.props.syncId===t){if(r===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(e)}})),_T(o,"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==o.state.dataStartIndex||r!==o.state.dataEndIndex){var n=o.state.updateId;o.setState((function(){return ST({dataStartIndex:e,dataEndIndex:r},p({props:o.props,dataStartIndex:e,dataEndIndex:r,updateId:n},o.state))})),o.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),_T(o,"handleMouseEnter",(function(t){var e=o.getMouseInfo(t);if(e){var r=ST(ST({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseEnter;Ma(n)&&n(r,t)}})),_T(o,"triggeredAfterMouseMove",(function(t){var e=o.getMouseInfo(t),r=e?ST(ST({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseMove;Ma(n)&&n(r,t)})),_T(o,"handleItemMouseEnter",(function(t){o.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),_T(o,"handleItemMouseLeave",(function(){o.setState((function(){return{isTooltipActive:!1}}))})),_T(o,"handleMouseMove",(function(t){t.persist(),o.throttleTriggeredAfterMouseMove(t)})),_T(o,"handleMouseLeave",(function(t){o.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};o.setState(e),o.triggerSyncEvent(e);var r=o.props.onMouseLeave;Ma(r)&&r(e,t)})),_T(o,"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&dc[e]?dc[e]:null}(t),n=xa(o.props,"".concat(r));r&&Ma(n)&&n(null!==(e=/.*touch.*/i.test(r)?o.getMouseInfo(t.changedTouches[0]):o.getMouseInfo(t))&&void 0!==e?e:{},t)})),_T(o,"handleClick",(function(t){var e=o.getMouseInfo(t);if(e){var r=ST(ST({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onClick;Ma(n)&&n(r,t)}})),_T(o,"handleMouseDown",(function(t){var e=o.props.onMouseDown;Ma(e)&&e(o.getMouseInfo(t),t)})),_T(o,"handleMouseUp",(function(t){var e=o.props.onMouseUp;Ma(e)&&e(o.getMouseInfo(t),t)})),_T(o,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),_T(o,"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseDown(t.changedTouches[0])})),_T(o,"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseUp(t.changedTouches[0])})),_T(o,"handleDoubleClick",(function(t){var e=o.props.onDoubleClick;Ma(e)&&e(o.getMouseInfo(t),t)})),_T(o,"handleContextMenu",(function(t){var e=o.props.onContextMenu;Ma(e)&&e(o.getMouseInfo(t),t)})),_T(o,"triggerSyncEvent",(function(t){void 0!==o.props.syncId&&YE.emit(GE,o.props.syncId,t,o.eventEmitterSymbol)})),_T(o,"applySyncEvent",(function(t){var e=o.props,r=e.layout,n=e.syncMethod,i=o.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)o.setState(ST({dataStartIndex:a,dataEndIndex:c},p({props:o.props,dataStartIndex:a,dataEndIndex:c,updateId:i},o.state)));else if(void 0!==t.activeTooltipIndex){var l=t.chartX,u=t.chartY,s=t.activeTooltipIndex,f=o.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 v=0;v<h.length;v++)if(h[v].value===t.activeLabel){s=v;break}}var y=ST(ST({},d),{},{x:d.left,y:d.top}),g=Math.min(l,y.x+y.width),m=Math.min(u,y.y+y.height),b=h[s]&&h[s].value,w=TT(o.state,o.props.data,s),x=h[s]?{x:"horizontal"===r?h[s].coordinate:g,y:"horizontal"===r?m:h[s].coordinate}:MT;o.setState(ST(ST({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else o.setState(t)})),_T(o,"renderCursor",(function(t){var r,n=o.state,i=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,l=n.offset,u=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=o.getTooltipEventType(),p=null!==(r=t.props.active)&&void 0!==r?r:i,d=o.props.layout,h=t.key||"_recharts-cursor";return ft.createElement(cT,{key:h,activeCoordinate:a,activePayload:c,activeTooltipIndex:u,chartName:e,element:t,isActive:p,layout:d,offset:l,tooltipAxisBandSize:s,tooltipEventType:f})})),_T(o,"renderPolarAxis",(function(t,e,r){var n=xa(t,"type.axisType"),i=xa(o.state,"".concat(n,"Map")),a=t.type.defaultProps,c=void 0!==a?ST(ST({},a),t.props):t.props,l=i&&i[c["".concat(n,"Id")]];return Ot(t,ST(ST({},l),{},{className:Zn(n,l.className),key:t.key||"".concat(e,"-").concat(r),ticks:JO(l,!0)}))})),_T(o,"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,i=e.polarRadius,a=o.state,c=a.radiusAxisMap,l=a.angleAxisMap,u=Ka(c),s=Ka(l),f=s.cx,p=s.cy,d=s.innerRadius,h=s.outerRadius;return Ot(t,{polarAngles:Array.isArray(n)?n:JO(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(i)?i:JO(u,!0).map((function(t){return t.coordinate})),cx:f,cy:p,innerRadius:d,outerRadius:h,key:t.key||"polar-grid",radialLines:r})})),_T(o,"renderLegend",(function(){var t=o.state.formattedGraphicalItems,e=o.props,r=e.children,n=e.width,i=e.height,a=o.props.margin||{},c=n-(a.left||0)-(a.right||0),u=zO({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:l});if(!u)return null;var s=u.item,f=dT(u,lT);return Ot(s,ST(ST({},f),{},{chartWidth:n,chartHeight:i,margin:a,onBBoxUpdate:o.handleLegendBBoxUpdate}))})),_T(o,"renderTooltip",(function(){var t,e=o.props,r=e.children,n=e.accessibilityLayer,i=bc(r,pv);if(!i)return null;var a=o.state,c=a.isTooltipActive,l=a.activeCoordinate,u=a.activePayload,s=a.activeLabel,f=a.offset,p=null!==(t=i.props.active)&&void 0!==t?t:c;return Ot(i,{viewBox:ST(ST({},f),{},{x:f.left,y:f.top}),active:p,label:s,payload:p?u:[],coordinate:l,accessibilityLayer:n})})),_T(o,"renderBrush",(function(t){var e=o.props,r=e.margin,n=e.data,i=o.state,a=i.offset,c=i.dataStartIndex,l=i.dataEndIndex,u=i.updateId;return Ot(t,{key:t.key||"_recharts-brush",onChange:tS(o.handleBrushChange,t.props.onChange),data:n,x:Za(t.props.x)?t.props.x:a.left,y:Za(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Za(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:l,updateId:"brush-".concat(u)})})),_T(o,"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=o.clipPathId,i=o.state,a=i.xAxisMap,c=i.yAxisMap,l=i.offset,u=t.type.defaultProps||{},s=t.props,f=s.xAxisId,p=void 0===f?u.xAxisId:f,d=s.yAxisId,h=void 0===d?u.yAxisId:d;return Ot(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[p],yAxis:c[h],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:n})})),_T(o,"renderActivePoints",(function(t){var e=t.item,n=t.activePoint,i=t.basePoint,o=t.childIndex,a=t.isRange,c=[],l=e.props.key,u=void 0!==e.item.type.defaultProps?ST(ST({},e.item.type.defaultProps),e.item.props):e.item.props,s=u.activeDot,f=ST(ST({index:o,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:YO(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value},Sc(s,!1)),cc(s));return c.push(r.renderActiveDot(s,f,"".concat(l,"-activePoint-").concat(o))),i?c.push(r.renderActiveDot(s,ST(ST({},f),{},{cx:i.x,cy:i.y}),"".concat(l,"-basePoint-").concat(o))):a&&c.push(null),c})),_T(o,"renderGraphicChild",(function(t,e,r){var n=o.filterFormatItem(t,e,r);if(!n)return null;var i=o.getTooltipEventType(),a=o.state,c=a.isTooltipActive,l=a.tooltipAxis,u=a.activeTooltipIndex,s=a.activeLabel,f=bc(o.props.children,pv),p=n.props,d=p.points,h=p.isRange,v=p.baseLine,y=void 0!==n.item.type.defaultProps?ST(ST({},n.item.type.defaultProps),n.item.props):n.item.props,g=y.activeDot,m=y.hide,b=y.activeBar,w=y.activeShape,x=Boolean(!m&&c&&f&&(g||b||w)),O={};"axis"!==i&&f&&"click"===f.props.trigger?O={onClick:tS(o.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(O={onMouseLeave:tS(o.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:tS(o.handleItemMouseEnter,t.props.onMouseEnter)});var S=Ot(t,ST(ST({},n.props),O));if(x){if(!(u>=0)){var _,j=(null!==(_=o.getItemByXY(o.state.activeCoordinate))&&void 0!==_?_:{graphicalItem:S}).graphicalItem,P=j.item,A=void 0===P?t:P,M=j.childIndex,k=ST(ST(ST({},n.props),O),{},{activeIndex:M});return[Ot(A,k),null,null]}var C,E;if(l.dataKey&&!l.allowDuplicatedCategory){var T="function"==typeof l.dataKey?function(t){return"function"==typeof l.dataKey?l.dataKey(t.payload):null}:"payload.".concat(l.dataKey.toString());C=Qa(d,T,s),E=h&&v&&Qa(v,T,s)}else C=null==d?void 0:d[u],E=h&&v&&v[u];if(w||b){var D=void 0!==t.props.activeIndex?t.props.activeIndex:u;return[Ot(t,ST(ST(ST({},n.props),O),{},{activeIndex:D})),null,null]}if(!_a(C))return[S].concat(bT(o.renderActivePoints({item:n,activePoint:C,basePoint:E,childIndex:u,isRange:h})))}return h?[S,null,null]:[S,null]})),_T(o,"renderCustomized",(function(t,e,r){return Ot(t,ST(ST({key:"recharts-customized-".concat(r)},o.props),o.state))})),_T(o,"renderMap",{CartesianGrid:{handler:kT,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:kT},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:kT},YAxis:{handler:kT},Brush:{handler:o.renderBrush,once:!0},Bar:{handler:o.renderGraphicChild},Line:{handler:o.renderGraphicChild},Area:{handler:o.renderGraphicChild},Radar:{handler:o.renderGraphicChild},RadialBar:{handler:o.renderGraphicChild},Scatter:{handler:o.renderGraphicChild},Pie:{handler:o.renderGraphicChild},Funnel:{handler:o.renderGraphicChild},Tooltip:{handler:o.renderCursor,once:!0},PolarGrid:{handler:o.renderPolarGrid,once:!0},PolarAngleAxis:{handler:o.renderPolarAxis},PolarRadiusAxis:{handler:o.renderPolarAxis},Customized:{handler:o.renderCustomized}}),o.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:Ga("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=gv(o.triggeredAfterMouseMove,null!==(i=t.throttleDelay)&&void 0!==i?i:1e3/60),o.state={},o}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&&mT(t,e)}(r,Pt),hT(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,i=t.layout,o=bc(e,pv);if(o){var a=o.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,l=TT(this.state,r,a,c),u=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===i?{x:u,y:s}:{y:u,x:s},p=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));p&&(f=ST(ST({},f),p.props.points[a].tooltipPosition),l=p.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:l,activeCoordinate:f};this.setState(d),this.renderCursor(o),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){_c([bc(t.children,pv)],[bc(this.props.children,pv)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=bc(this.props.children,pv);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return a.indexOf(e)>=0?e:i}return i}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,r=this.container,n=r.getBoundingClientRect(),i={top:(e=n).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},o={chartX:Math.round(t.pageX-i.left),chartY:Math.round(t.pageY-i.top)},a=n.width/r.offsetWidth||1,c=this.inRange(o.chartX,o.chartY,a);if(!c)return null;var l=this.state,u=l.xAxisMap,s=l.yAxisMap,f=this.getTooltipEventType(),p=DT(this.state,this.props.data,this.props.layout,c);if("axis"!==f&&u&&s){var d=Ka(u).scale,h=Ka(s).scale,v=d&&d.invert?d.invert(o.chartX):null,y=h&&h.invert?h.invert(o.chartY):null;return ST(ST({},o),{},{xValue:v,yValue:y},p)}return p?ST(ST({},o),p):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,i=t/r,o=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return i>=a.left&&i<=a.left+a.width&&o>=a.top&&o<=a.top+a.height?{x:i,y:o}:null}var c=this.state,l=c.angleAxisMap,u=c.radiusAxisMap;if(l&&u){var s=Ka(l);return OS({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=bc(t,pv),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}),ST(ST({},cc(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){YE.on(GE,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){YE.removeListener(GE,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,i=0,o=n.length;i<o;i++){var a=n[i];if(a.item===t||a.props.key===t.key||e===hc(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,i=e.height,o=e.width;return ft.createElement("defs",null,ft.createElement("clipPath",{id:t},ft.createElement("rect",{x:r,y:n,height:i,width:o})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=pT(e,2),n=r[0],i=r[1];return ST(ST({},t),{},_T({},n,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=pT(e,2),n=r[0],i=r[1];return ST(ST({},t),{},_T({},n,i.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 i=0,o=r.length;i<o;i++){var a=r[i],c=a.props,l=a.item,u=void 0!==l.type.defaultProps?ST(ST({},l.type.defaultProps),l.props):l.props,s=hc(l.type);if("Bar"===s){var f=(c.data||[]).find((function(e){return LP(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(c.data||[]).find((function(e){return OS(t,e)}));if(p)return{graphicalItem:a,payload:p}}else if(TA(a,n)||DA(a,n)||IA(a,n)){var d=BA({graphicalItem:a,activeTooltipItem:n,itemData:u.data}),h=void 0===u.activeIndex?d:u.activeIndex;return{graphicalItem:ST(ST({},a),{},{childIndex:h}),payload:IA(a,n)?u.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var t=this;if(!wc(this))return null;var e,r,n=this.props,i=n.children,o=n.className,a=n.width,c=n.height,l=n.style,u=n.compact,s=n.title,f=n.desc,p=dT(n,uT),d=Sc(p,!1);if(u)return ft.createElement(Ak,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},ft.createElement(Cc,fT({},d,{width:a,height:c,title:s,desc:f}),this.renderClipPath(),Pc(i,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 ft.createElement(Ak,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},ft.createElement("div",fT({className:Zn("recharts-wrapper",o),style:ST({position:"relative",cursor:"default",width:a,height:c},l)},h,{ref:function(e){t.container=e}}),ft.createElement(Cc,fT({},d,{width:a,height:c,title:s,desc:f,style:AT}),this.renderClipPath(),Pc(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();_T(d,"displayName",e),_T(d,"defaultProps",ST({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},s)),_T(d,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,i=t.children,o=t.width,a=t.height,c=t.layout,l=t.stackOffset,u=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var d=RT(t);return ST(ST(ST({},d),{},{updateId:0},p(ST(ST({props:t},d),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:l,prevMargin:u,prevChildren:i})}if(r!==e.prevDataKey||n!==e.prevData||o!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||l!==e.prevStackOffset||!ec(u,e.prevMargin)){var h=RT(t),v={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},y=ST(ST({},DT(e,n,c)),{},{updateId:e.updateId+1}),g=ST(ST(ST({},h),v),y);return ST(ST(ST({},g),p(ST({props:t},g),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:l,prevMargin:u,prevChildren:i})}if(!_c(i,e.prevChildren)){var m,b,w,x,O=bc(i,sM),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=!_a(n)&&!j?e.updateId:e.updateId+1;return ST(ST({updateId:P},p(ST(ST({props:t},e),{},{updateId:P,dataStartIndex:S,dataEndIndex:_}),e)),{},{prevChildren:i,dataStartIndex:S,dataEndIndex:_})}return null})),_T(d,"renderActiveDot",(function(t,e,r){var n;return n=pt(t)?Ot(t,e):Ma(t)?t(e):ft.createElement(HP,e),ft.createElement(Xc,{className:"recharts-active-dot",key:r},n)}));var h=vt((function(t,e){return ft.createElement(d,fT({},t,{ref:e}))}));return h.displayName=d.displayName,h},HT=$T({chartName:"LineChart",GraphicalChild:nE,axisComponents:[{axisType:"xAxis",AxisComp:CE},{axisType:"yAxis",AxisComp:HE}],formatAxisMap:ik}),FT=$T({chartName:"AreaChart",GraphicalChild:bE,axisComponents:[{axisType:"xAxis",AxisComp:CE},{axisType:"yAxis",AxisComp:HE}],formatAxisMap:ik});const UT=({formatter:n,labelFormatter:i,payload:o,cx:a,cy:c})=>{const l=100;return Number.isFinite(o.value)?t("svg",{x:a-50,y:c-60,width:l,height:68,viewBox:"0 0 100 68",xmlns:"http://www.w3.org/2000/svg",children:[i&&t(r,{children:[e("rect",{fill:"white",width:"98",height:"45",stroke:tn.coolElegance(),strokeWidth:"1",rx:"7",ry:"7",className:"shadow"}),e("text",{y:"14",x:"50%",fontSize:10,dominantBaseline:"middle",textAnchor:"middle",children:i(0,[{payload:o}])}),e("text",{y:"30",x:"50%",fontSize:11,dominantBaseline:"middle",textAnchor:"middle",fontWeight:"bold",children:n?n(o.value||0):o.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:tn.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:tn.coolElegance(),strokeWidth:"2"})]}):e(r,{})},VT=({data:r,dataKey:n,width:i="100%",height:o="100%",areaType:a="linear",isAnimated:c=!1,formatter:l,labelFormatter:u,sampleRate:s,style:f})=>{const{isNetGain:p}=Yr({data:r,dataKey:n}),d=Vn(),h=Vn(),v=s?Jr({arr:r||[],n:s}):r;let y,g;v?.length?(g=p?tn.mint():tn.coolElegance(),y=v?.map((t=>{const e=parseFloat(t[n]);return{...t,[n]:Number.isFinite(e)?e:null}}))):(g=tn.coolElegance(),y=[{[n]:1},{[n]:1}]);const m={cursor:v?.length?"crosshair":"default",...f};return e(_v,{width:i,minHeight:o,id:d,children:t(FT,{data:y,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(HE,{domain:v?.length?["dataMin","dataMax"]:[0,2],hide:!0}),e(bE,{type:a,dataKey:n,stroke:g,fill:`url(#${h})`,isAnimationActive:c,activeDot:t=>UT({labelFormatter:u,formatter:l,...t}),dot:!1}),v?.length&&e(pv,{cursor:!1,content:()=>null})]})})},WT=({isCloseable:t,onClick:r})=>{const n=u({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:tn.black(),md:"white"},position:"fixed",top:"0",right:"0",padding:"2",fontSize:"xs",zIndex:"5",width:"10rem",boxShadow:"dark-lg",fontFamily:"mono",children:n})})})},ZT=({children:t,...r})=>e(d,{border:"solid 1px",borderColor:tn.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:t}),qT=({isSelected:t,children:r,...n})=>e(h,{variant:"none",paddingX:"1",fontSize:"sm",color:t?"brand.500":tn.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:t?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),YT=({children:t,...r})=>e(v,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:tn.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:t}),GT=r=>{const{carouselContents:n,isNavVertical:i,...o}=r,[a,c]=mt(0);return n.length>=1&&e(YT,{children:t(y,{gap:10,direction:i?"column":{base:"column",md:"row"},...o,children:[n[a],t(y,{alignItems:"flex-end",justifyContent:"center",gap:6,children:[e(g,{variant:"ghost",isDisabled:0===a,"aria-label":"Previous content",icon:e(Bt,{}),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(zt,{}),onClick:()=>{a<n.length-1&&c((t=>t+1))}})]})]})})},XT=t=>{const{isIndeterminate:r,isChecked:n,...i}=t;return n?e(Ft,{...i}):r?e(xe,{...i}):null},KT=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,name:l,register:u,errorMessage:s,label:f,labelPosition:p="left",spaceBetween:d,onClick:h,...v}=r,g=u?u(l):void 0;return t(m,{as:y,flexDir:"column",isInvalid:Boolean(s),isDisabled:i,isReadOnly:o,isRequired:a,children:[t(y,{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(XT,{}),isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,isInvalid:Boolean(s),size:n,...g,...v}),"right"===p&&e(b,{fontSize:n,m:"0",ml:"3",children:f})]}),e(y,{w:"full",children:s&&e(x,{size:n,children:s})})]})},JT=O(((t,r)=>{const{children:n,uiColor:i,...o}=t;return e(h,{py:"1",px:"2",height:"auto",ref:r,size:"xs",bgColor:`${i}.500 !important`,color:"black",transition:"background-color 0.25s",sx:{"&:not(:disabled):hover, &:not(:disabled):focus, &:not(:disabled)[data-active]":{bgColor:`${i}.300 !important`}},fontSize:"12px",...o,children:n})})),QT=({uiColor:r,isLocalDev:n,enableRefetch:i,setEnableRefetch:o,setShowBreakpointDebugger:a,onDrawerClose:c})=>{const[l,u]=mt(!1),[s,f]=mt(!1),[p,d]=mt(!1);wt((()=>{document.body.classList.contains("show-outlines")&&u(!0),document.body.classList.contains("show-error-boundaries")&&f(!0);const t=document.querySelector(".tsqd-queries-container");d(Boolean(t))}),[o]);const h={width:{base:"full",md:"auto"},uiColor:r};return t(y,{flexDir:"column",children:[e(S,{as:"h3",fontSize:"md",borderBottom:"solid 1px",borderColor:`${r}.700`,mb:"2",fontFamily:"mono",children:"Actions"}),t(_,{children:[t(JT,{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(JT,{onClick:()=>{i?localStorage.setItem("enableRefetch","false"):localStorage.removeItem("enableRefetch"),o(!i),window.location.reload()},position:"relative",...h,_after:i?{}:{bg:"purple.500",borderRadius:"full",width:"3",height:"3",position:"absolute",top:"-0.25rem",right:"-0.25rem",zIndex:"1",content:'""'},children:[i?"Disable":"Enable"," refetch intervals"]}),e(JT,{onClick:()=>{c(),a(!0)},...h,children:"Show breakpoint debugger"}),t(JT,{onClick:()=>{u(!l),document.body.classList.toggle("show-outlines")},...h,children:[l?"Hide":"Show"," outlines"]}),t(JT,{onClick:()=>{f(!s),document.body.classList.toggle("show-error-boundaries")},...h,children:[s?"Hide":"Show"," error boundaries"]})]})]})},tD=({data:r,heading:n,uiColor:i,buttons:o})=>t(y,{flexDir:"column",children:[t(y,{borderBottom:"solid 1px",borderColor:`${i}.700`,mb:"2",justifyContent:"flex-end",children:[n&&e(S,{as:"h3",fontSize:"md",fontFamily:"mono",children:n}),e(y,{ml:"auto",mb:"5px",gap:"2",flexWrap:"wrap",children:o})]}),0===r.length&&e(p,{w:"full",textAlign:"center",children:"No data"}),e(j,{columns:2,gap:1,children:r.map((r=>t(At,{children:[e(p,{textTransform:"uppercase",children:r.label}),e(p,{children:r.value})]},r.label)))})]}),eD=({children:n,footer:i,consoleButton:o,isLocalDev:a})=>{const{isOpen:c,onOpen:l,onClose:u}=P(),[s,f]=mt(!1),p=a?"green":"yellow";return wt((()=>{const t=t=>{t.ctrlKey&&"d"===t.key&&(c?u():l())};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[c,u,l]),wt((()=>{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:u,size:"lg",children:[e(M,{}),t(k,{bg:"blackAlpha.900",color:`${p}.500`,fontFamily:"monospace",className:"dev-console",children:[e(C,{}),e(E,{children:e(y,{gap:"4",alignItems:"center",children:e(S,{as:"h1",fontFamily:"monospace",fontSize:"xl",p:"0",children:"Dev Console"})})}),e(T,{fontSize:"xs",children:e(y,{gap:8,flexDir:"column",children:n({uiColor:p,onClose:u})})}),i({uiColor:p})]})]}),o({uiColor:p,onClose:u,isOpen:c,hideButton:s,onOpen:l})]})},rD=({hideButton:n,enableRefetch:i,onOpen:o,uiColor:a,hasSystemOverride:c,hasFiOverride:l,authBypassEnabled:u})=>{const d=!i||c||l||u,[v,g]=mt(!1);return wt((()=>{window.location.hostname.startsWith("sales-demo-dev.")&&g(!0)}),[]),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:[d&&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(y,{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"}),l&&e(p,{children:"• FI config override applied"}),!i&&e(p,{children:"• Refetch intervals disabled"}),!d&&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:o,fontSize:"lg",bg:"transparent !important",color:`${a}.500`,padding:"0",boxShadow:"dark-lg",children:v?"☆":"⚙"})})]})})},nD=({uiColor:r})=>t(y,{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"})})]})]}),iD=({enableRefetch:t,status:r})=>{let n="inherit";return!1===t&&r?n="gray.500":r||(n="red.600"),e(f,{label:t?null:"Refetch disabled",hasArrow:!0,children:e(D,{width:"fit-content",as:"span",children:e(p,{as:"span",color:n,fontFamily:"body",children:r?"✔":"✘"})})})},oD=({children:t,onSubmit:r,...n})=>e(y,{as:"form",onSubmit:t=>{t.preventDefault(),r&&r(t)},noValidate:!0,gap:"6",flexDir:"column",...n,children:t});var aD=function(){return aD=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},aD.apply(this,arguments)};function cD(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}function lD(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var uD=function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},sD={k:1e3,m:1e6,b:1e9},fD=function(t){var e=t.value,r=t.groupSeparator,n=void 0===r?",":r,i=t.decimalSeparator,o=void 0===i?".":i,a=t.allowDecimals,c=void 0===a||a,l=t.decimalsLimit,u=void 0===l?2:l,s=t.allowNegativeValue,f=void 0===s||s,p=t.disableAbbreviations,d=void 0!==p&&p,h=t.prefix,v=void 0===h?"":h,y=t.transformRawValue,g=(void 0===y?function(t){return t}:y)(e);if("-"===g)return g;var m=d?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(uD(v),")")).test(g),w=RegExp("(\\d+)-?".concat(uD(v))).exec(e)||[],x=w[0],O=w[1],S=function(t,e){void 0===e&&(e=",");var r=new RegExp(uD(e),"g");return t.replace(r,"")}(v?x?g.replace(x,"").concat(O):g.replace(v,""):g,n),_=function(t,e){var r=uD(e.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return t.replace(n,"")}(S,lD([n,o],m,!0)),j=_;if(!d){if(m.some((function(t){return t===_.toLowerCase().replace(o,"")})))return"";var P=function(t,e){void 0===e&&(e=".");var r=new RegExp("(\\d+(".concat(uD(e),"\\d*)?)([kmb])$"),"i"),n=t.match(r);if(n){var i=n[1],o=n[3],a=sD[o.toLowerCase()];return Number(i.replace(e,"."))*a}}(_,o);P&&(j=String(P))}var A=b&&f?"-":"";if(o&&j.includes(o)){var M=_.split(o),k=M[0],C=M[1],E=u&&C?C.slice(0,u):C,T=c?"".concat(o).concat(E):"";return"".concat(A).concat(k).concat(T)}return"".concat(A).concat(j)},pD=function(t,e){var r=e.groupSeparator,n=void 0===r?",":r,i=e.decimalSeparator,o=void 0===i?".":i,a=new RegExp("\\d([^".concat(uD(n)).concat(uD(o),"0-9]+)")),c=t.match(a);return c?c[1]:void 0},dD=function(t){var e=t.value,r=t.decimalSeparator,n=t.intlConfig,i=t.decimalScale,o=t.prefix,a=void 0===o?"":o,c=t.suffix,l=void 0===c?"":c;if(""===e||void 0===e)return"";if("-"===e)return"-";var u=new RegExp("^\\d?-".concat(a?"".concat(uD(a),"?"):"","\\d")).test(e),s="."!==r?hD(e,r,u):e;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f=n||{},p=f.locale,d=f.currency,h=cD(f,["locale","currency"]),v=aD(aD({},h),{minimumFractionDigits:i||0,maximumFractionDigits:20}),y=(n?new Intl.NumberFormat(p,aD(aD({},v),d&&{style:"currency",currency:d})):new Intl.NumberFormat(void 0,v)).formatToParts(Number(s)),g=vD(y,t),m=pD(g,aD({},t)),b=e.slice(-1)===r?r:"",w=(s.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return void 0===i&&w&&r&&(g=g.includes(r)?g.replace(RegExp("(\\d+)(".concat(uD(r),")(\\d+)"),"g"),"$1$2".concat(w)):m&&!l?g.replace(m,"".concat(r).concat(w).concat(m)):"".concat(g).concat(r).concat(w)),l&&b?"".concat(g).concat(b).concat(l):m&&b?g.replace(m,"".concat(b).concat(m)):m&&l?g.replace(m,"".concat(b).concat(l)):[g,b,l].join("")},hD=function(t,e,r){var n=t;return e&&"."!==e&&(n=n.replace(RegExp(uD(e),"g"),"."),r&&"-"===e&&(n="-".concat(n.slice(1)))),n},vD=function(t,e){var r=e.prefix,n=e.groupSeparator,i=e.decimalSeparator,o=e.decimalScale,a=e.disableGroupSeparators,c=void 0!==a&&a;return t.reduce((function(t,e,a){var l=e.type,u=e.value;return 0===a&&r?"minusSign"===l?[u,r]:"currency"===l?lD(lD([],t,!0),[r],!1):[r,u]:"currency"===l?r?t:lD(lD([],t,!0),[u],!1):"group"===l?c?t:lD(lD([],t,!0),[void 0!==n?n:u],!1):"decimal"===l?void 0!==o&&0===o?t:lD(lD([],t,!0),[void 0!==i?i:u],!1):lD(lD([],t,!0),"fraction"===l?[void 0!==o?u.slice(0,o):u]:[u],!1)}),[""]).join("")},yD={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},gD=function(t){return RegExp(/\d/,"gi").test(t)},mD=vt((function(t,e){var r=t.allowDecimals,n=void 0===r||r,i=t.allowNegativeValue,o=void 0===i||i,a=t.id,c=t.name,l=t.className,u=t.customInput,s=t.decimalsLimit,f=t.defaultValue,p=t.disabled,d=void 0!==p&&p,h=t.maxLength,v=t.value,y=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,C=t.decimalSeparator,E=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,$=cD(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(C&&gD(C))throw new Error("decimalSeparator cannot be a number");if(E&&gD(E))throw new Error("groupSeparator cannot be a number");var H=xt((function(){return function(t){var e=t||{},r=e.locale,n=e.currency,i=cD(e,["locale","currency"]);return(r?new Intl.NumberFormat(r,aD(aD({},i),n&&{currency:n,style:"currency"})):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(t,e,r){return"currency"===e.type?aD(aD({},t),0===r?{currencySymbol:e.value,prefix:e.value}:{currencySymbol:e.value,suffix:e.value}):"group"===e.type?aD(aD({},t),{groupSeparator:e.value}):"decimal"===e.type?aD(aD({},t),{decimalSeparator:e.value}):t}),yD)}(O)}),[O]),F=C||H.decimalSeparator||"",U=E||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:o,disableAbbreviations:k,prefix:w||H.prefix,transformRawValue:L},Z=mt((function(){return null!=f?dD(aD(aD({},V),{decimalScale:b,value:String(f)})):null!=v?dD(aD(aD({},V),{decimalScale:b,value:String(v)})):""})),q=Z[0],Y=Z[1],G=mt(!1),X=G[0],K=G[1],J=mt(0),Q=J[0],tt=J[1],et=mt(0),rt=et[0],nt=et[1],it=mt(null),ot=it[0],at=it[1],ct=yt(null);gt(e,(function(){return ct.current}));var lt=function(t,e){K(!0);var r=function(t){var e=t.selectionStart,r=t.value,n=t.lastKeyStroke,i=t.stateValue,o=t.groupSeparator,a=e,c=r;if(i&&a){var l=r.split("");return"Backspace"===n&&i[a]===o&&(l.splice(a-1,1),a-=1),"Delete"===n&&i[a]===o&&(l.splice(a,1),a+=1),{modifiedValue:c=l.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:e}}({selectionStart:e,value:t,lastKeyStroke:ot,stateValue:q,groupSeparator:U}),n=r.modifiedValue,i=r.cursorPosition,o=fD(aD({value:n},W));if(!(h&&o.replace(/-/g,"").length>h)){if(""===o||"-"===o||o===F)return y&&y(void 0,c,{float:null,formatted:"",value:""}),Y(o),void tt(1);var a=F?o.replace(F,"."):o,l=parseFloat(a),u=dD(aD({value:o},V));if(null!=i){var s=i+(u.length-t.length);s=s<=0?w?w.length:0:s,tt(s),nt(rt+1)}if(Y(u),y)y(o,c,{float:l,formatted:u,value:o})}};wt((function(){null==v&&null==f&&Y("")}),[f,v]),wt((function(){X&&"-"!==q&&ct.current&&document.activeElement===ct.current&&ct.current.setSelectionRange(Q,Q)}),[q,Q,ct,X,rt]);var ut=aD({type:"text",inputMode:"decimal",id:a,name:c,className:l,onChange:function(t){var e=t.target,r=e.value,n=e.selectionStart;lt(r,n),T&&T(t)},onBlur:function(t){var e=t.target.value,r=fD(aD({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),i=n[0];if((c=n[1]).length===r)return t;if(c.length>r)return"".concat(i).concat(e).concat(c.slice(0,r))}var o=t.length>r?new RegExp("(\\d+)(\\d{".concat(r,"})")):new RegExp("(\\d)(\\d+)"),a=t.match(o);if(a){i=a[1];var c=a[2];return"".concat(i).concat(e).concat(c)}}return t}(r,F,g),i=function(t,e,r){if(void 0===r||""===e||void 0===e||""===t||void 0===t)return t;if(!t.match(/\d/g))return"";var n=t.split(e),i=n[0],o=n[1];if(0===r)return i;var a=o||"";if(a.length<r)for(;a.length<r;)a+="0";else a=a.slice(0,r);return"".concat(i).concat(e).concat(a)}(n,F,void 0!==b?b:g),o=F?i.replace(F,"."):i,a=parseFloat(o),l=dD(aD(aD({},V),{value:i}));y&&z&&y(i,c,{float:a,formatted:l,value:i}),Y(l),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=null!=v?String(v):void 0,n=F&&r?r.replace(F,"."):r,i=parseFloat(null!=n?n:fD(aD({value:q},W)))||0,a="ArrowUp"===e?i+S:i-S;if(void 0!==_&&a<Number(_)||!o&&a<0)return;if(void 0!==j&&a>Number(j))return;var c=String(S).includes(".")?Number(String(S).split(".")[1].length):void 0;lt(String(c?a.toFixed(c):a).replace(".",F))}N&&N(t)},onKeyUp:function(t){var e=t.key,r=t.currentTarget.selectionStart;if("ArrowUp"!==e&&"ArrowDown"!==e&&"-"!==q){var n=pD(q,{groupSeparator:U,decimalSeparator:F});if(n&&r&&r>q.length-n.length&&ct.current){var i=q.length-n.length;ct.current.setSelectionRange(i,i)}}R&&R(t)},placeholder:m,disabled:d,value:null==v||"-"===q||F&&q===F?q:dD(aD(aD({},V),{decimalScale:X?void 0:b,value:String(v)})),ref:ct},$);if(u){var st=u;return ft.createElement(st,aD({},ut))}return ft.createElement("input",aD({},ut))}));mD.displayName="CurrencyInput";const bD=O(((r,n)=>{const{size:i,isDisabled:o,isReadOnly:a,isRequired:c,spellCheck:l=!1,name:u,label:s,register:f,errorMessage:p,helperText:d,leftAddon:h,leftElement:v,rightAddon:y,rightElement:g,type:w="text",containerCss:O,...S}=r,_=Gr(i),j=f?f(u):void 0,P="currency"===w?{as:mD,placeholder:"$0.00",prefix:"$",allowNegativeValue:!1,disableAbbreviations:!0}:{};return t(m,{isInvalid:Boolean(p),isDisabled:o,isReadOnly:a,isRequired:c,sx:O,children:[s&&e(b,{size:i,children:s}),t(L,{size:i,children:[h&&e(B,{children:h}),v&&e(z,{w:"auto",ml:"1em",children:v}),e($,{size:i,spellCheck:l,paddingLeft:v&&"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}),y&&e(F,{children:y})]}),p&&e(x,{size:i,children:p}),d&&e(U,{fontSize:_,children:d})]})}));var wD=t=>null==t;var xD=t=>!wD(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),OD=t=>{const e=t.constructor&&t.constructor.prototype;return xD(e)&&e.hasOwnProperty("isPrototypeOf")},SD="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function _D(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(SD&&(t instanceof Blob||n)||!r&&!xD(t))return t;if(e=r?[]:{},r||OD(t))for(const r in t)t.hasOwnProperty(r)&&(e[r]=_D(t[r]));else e=t}return e}var jD=t=>/^\w*$/.test(t),PD=t=>void 0===t,AD=t=>Array.isArray(t)?t.filter(Boolean):[],MD=t=>AD(t.replace(/["|']|\]/g,"").split(/\.|\[/)),kD=(t,e,r)=>{if(!e||!xD(t))return r;const n=(jD(e)?[e]:MD(e)).reduce(((t,e)=>wD(t)?t:t[e]),t);return PD(n)||n===t?PD(t[e])?r:t[e]:n},CD=t=>"boolean"==typeof t,ED=(t,e,r)=>{let n=-1;const i=jD(e)?[e]:MD(e),o=i.length,a=o-1;for(;++n<o;){const e=i[n];let o=r;if(n!==a){const r=t[e];o=xD(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}if("__proto__"===e||"constructor"===e||"prototype"===e)return;t[e]=o,t=t[e]}};const TD="onBlur",DD="onChange",ID="onSubmit",ND="onTouched",RD="all",LD="max",BD="min",zD="maxLength",$D="minLength",HD="pattern",FD="required",UD="validate",VD=ft.createContext(null);VD.displayName="HookFormContext";const WD="undefined"!=typeof window?st.useLayoutEffect:st.useEffect;var ZD=t=>"string"==typeof t,qD=(t,e,r,n,i)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:i||!0}}:{},YD=t=>Array.isArray(t)?t:[t],GD=t=>xD(t)&&!Object.keys(t).length;function XD(t,e){const r=Array.isArray(e)?e:jD(e)?[e]:MD(e),n=1===r.length?t:function(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=PD(t)?n++:t[e[n++]];return t}(t,r),i=r.length-1,o=r[i];return n&&delete n[o],0!==i&&(xD(n)&&GD(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!PD(t[e]))return!1;return!0}(n))&&XD(t,r.slice(0,-1)),t}var KD=t=>t instanceof RegExp,JD=t=>({isOnSubmit:!t||t===ID,isOnBlur:t===TD,isOnChange:t===DD,isOnAll:t===RD,isOnTouch:t===ND});const QD=(t,e,r,n)=>{for(const r of Object.keys(t)){const n=kD(t,r);if(n){const{_f:t,...i}=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(QD(i,e))break}else if(xD(i)&&QD(i,e))break}}};var tI=(t,e,r)=>{const n=YD(kD(t,r));return ED(n,"root",e[r]),ED(t,r,n),t},eI=t=>ZD(t);function rI(t,e,r="validate"){if(eI(t)||Array.isArray(t)&&t.every(eI)||CD(t)&&!t)return{type:r,message:eI(t)?t:"",ref:e}}var nI=t=>xD(t)&&!KD(t)?t:{value:t,message:""},iI=async(t,e,r,n,i,o)=>{const{ref:a,refs:c,required:l,maxLength:u,minLength:s,min:f,max:p,pattern:d,validate:h,name:v,valueAsNumber:y,mount:g}=t._f,m=kD(r,v);if(!g||e.has(v))return{};const b=c?c[0]:a,w=t=>{i&&b.reportValidity&&(b.setCustomValidity(CD(t)?"":t||""),b.reportValidity())},x={};a.type,(t=>{t.type})(a);const O=(y||(t=>"file"===t.type)(a))&&PD(a.value)&&PD(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=qD.bind(null,v,n,x),_=(t,e,r,n=zD,i=$D)=>{const o=t?e:r;x[v]={type:t?n:i,message:o,ref:a,...S(t?n:i,o)}};if(!Array.isArray(m)||!m.length){const{value:t,message:e}=eI(l)?{value:!!l,message:l}:nI(l);if(t&&(x[v]={type:FD,message:e,ref:b,...S(FD,e)},!n))return w(e),x}if(!(O||wD(f)&&wD(p))){let t,e;const r=nI(p),i=nI(f);if(wD(m)||isNaN(m)){const n=a.valueAsDate||new Date(m),o=t=>new Date((new Date).toDateString()+" "+t),c="time"==a.type,l="week"==a.type;ZD(r.value)&&m&&(t=c?o(m)>o(r.value):l?m>r.value:n>new Date(r.value)),ZD(i.value)&&m&&(e=c?o(m)<o(i.value):l?m<i.value:n<new Date(i.value))}else{const n=a.valueAsNumber||(m?+m:m);wD(r.value)||(t=n>r.value),wD(i.value)||(e=n<i.value)}if((t||e)&&(_(!!t,r.message,i.message,LD,BD),!n))return w(x[v].message),x}if((u||s)&&!O&&(ZD(m)||Array.isArray(m))){const t=nI(u),e=nI(s),r=!wD(t.value)&&m.length>+t.value,i=!wD(e.value)&&m.length<+e.value;if((r||i)&&(_(r,t.message,e.message),!n))return w(x[v].message),x}if(d&&!O&&ZD(m)){const{value:t,message:e}=nI(d);if(KD(t)&&!m.match(t)&&(x[v]={type:HD,message:e,ref:a,...S(HD,e)},!n))return w(e),x}if(h)if("function"==typeof h){const t=rI(await h(m,r),b);if(t&&(x[v]={...t,...S(UD,t.message)},!n))return w(t.message),x}else if(xD(h)){let t={};for(const e in h){if(!GD(t)&&!n)break;const i=rI(await h[e](m,r),b,e);i&&(t={...i,...S(e,i.message)},w(i.message),n&&(x[v]=t))}if(!GD(t)&&(x[v]={ref:b,...t},!n))return x}return w(!0),x},oI=()=>{if("undefined"!=typeof crypto&&crypto.randomUUID)return crypto.randomUUID();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)}))},aI=(t,e,r={})=>r.shouldFocus||PD(r.shouldFocus)?r.focusName||`${t}.${PD(r.focusIndex)?e:r.focusIndex}.`:"",cI=(t,e)=>[...t,...YD(e)],lI=t=>Array.isArray(t)?t.map((()=>{})):void 0;function uI(t,e,r){return[...t.slice(0,e),...YD(r),...t.slice(e)]}var sI=(t,e,r)=>Array.isArray(t)?(PD(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],fI=(t,e)=>[...YD(e),...YD(t)];var pI=(t,e)=>PD(e)?[]:function(t,e){let r=0;const n=[...t];for(const t of e)n.splice(t-r,1),r++;return AD(n).length?n:[]}(t,YD(e).sort(((t,e)=>t-e))),dI=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]},hI=(t,e,r)=>(t[e]=r,t);function vI(t){const e=ft.useContext(VD),{control:r=e.control,name:n,keyName:i="id",shouldUnregister:o,rules:a}=t,[c,l]=ft.useState(r._getFieldArray(n)),u=ft.useRef(r._getFieldArray(n).map(oI)),s=ft.useRef(c),f=ft.useRef(n),p=ft.useRef(!1);f.current=n,s.current=c,r._names.array.add(n),a&&r.register(n,a),WD((()=>r._subjects.array.subscribe({next:({values:t,name:e})=>{if(e===f.current||!e){const e=kD(t,f.current);Array.isArray(e)&&(l(e),u.current=e.map(oI))}}}).unsubscribe),[r]);const d=ft.useCallback((t=>{p.current=!0,r._setFieldArray(n,t)}),[r,n]);return ft.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&&(!JD(r._options.mode).isOnSubmit||r._formState.isSubmitted)&&!JD(r._options.reValidateMode).isOnSubmit)if(r._options.resolver)r._runSchema([n]).then((t=>{const e=kD(t.errors,n),i=kD(r._formState.errors,n);(i?!e&&i.type||e&&(i.type!==e.type||i.message!==e.message):e&&e.type)&&(e?ED(r._formState.errors,n,e):XD(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=kD(r._fields,n);!t||!t._f||JD(r._options.reValidateMode).isOnSubmit&&JD(r._options.mode).isOnSubmit||iI(t,r._names.disabled,r._formValues,r._options.criteriaMode===RD,r._options.shouldUseNativeValidation).then((t=>!GD(t)&&r._subjects.state.next({errors:tI(r._formState.errors,t,n)})))}r._subjects.state.next({name:n,values:_D(r._formValues)}),r._names.focus&&QD(r._fields,((t,e)=>{if(r._names.focus&&e.startsWith(r._names.focus)&&t.focus)return t.focus(),1})),r._names.focus="",r._setValid(),p.current=!1}),[c,n,r]),ft.useEffect((()=>(!kD(r._formValues,n)&&r._setFieldArray(n),()=>{r._options.shouldUnregister||o?r.unregister(n):((t,e)=>{const n=kD(r._fields,t);n&&n._f&&(n._f.mount=e)})(n,!1)})),[n,r,i,o]),{swap:ft.useCallback(((t,e)=>{const i=r._getFieldArray(n);dI(i,t,e),dI(u.current,t,e),d(i),l(i),r._setFieldArray(n,i,dI,{argA:t,argB:e},!1)}),[d,n,r]),move:ft.useCallback(((t,e)=>{const i=r._getFieldArray(n);sI(i,t,e),sI(u.current,t,e),d(i),l(i),r._setFieldArray(n,i,sI,{argA:t,argB:e},!1)}),[d,n,r]),prepend:ft.useCallback(((t,e)=>{const i=YD(_D(t)),o=fI(r._getFieldArray(n),i);r._names.focus=aI(n,0,e),u.current=fI(u.current,i.map(oI)),d(o),l(o),r._setFieldArray(n,o,fI,{argA:lI(t)})}),[d,n,r]),append:ft.useCallback(((t,e)=>{const i=YD(_D(t)),o=cI(r._getFieldArray(n),i);r._names.focus=aI(n,o.length-1,e),u.current=cI(u.current,i.map(oI)),d(o),l(o),r._setFieldArray(n,o,cI,{argA:lI(t)})}),[d,n,r]),remove:ft.useCallback((t=>{const e=pI(r._getFieldArray(n),t);u.current=pI(u.current,t),d(e),l(e),!Array.isArray(kD(r._fields,n))&&ED(r._fields,n,void 0),r._setFieldArray(n,e,pI,{argA:t})}),[d,n,r]),insert:ft.useCallback(((t,e,i)=>{const o=YD(_D(e)),a=uI(r._getFieldArray(n),t,o);r._names.focus=aI(n,t,i),u.current=uI(u.current,t,o.map(oI)),d(a),l(a),r._setFieldArray(n,a,uI,{argA:t,argB:lI(e)})}),[d,n,r]),update:ft.useCallback(((t,e)=>{const i=_D(e),o=hI(r._getFieldArray(n),t,i);u.current=[...o].map(((e,r)=>e&&r!==t?u.current[r]:oI())),d(o),l([...o]),r._setFieldArray(n,o,hI,{argA:t,argB:i},!0,!1)}),[d,n,r]),replace:ft.useCallback((t=>{const e=YD(_D(t));u.current=e.map(oI),d([...e]),l([...e]),r._setFieldArray(n,[...e],(t=>t),{},!0,!1)}),[d,n,r]),fields:ft.useMemo((()=>c.map(((t,e)=>({...t,[i]:u.current[e]||oI()})))),[c,i])}}const yI=({name:r,control:n,register:i,defaultValues:o,onArrayAppend:a,onArrayRemove:c})=>{const{fields:l,append:u,remove:s}=vI({control:n,name:r}),p=Object.keys(o).reduce(((t,e)=>({...t,[e]:o[e]})),{});return t(D,{children:[l.map(((n,o)=>e(D,{children:t(D,{pb:6,position:"relative",children:[Object.keys(n).filter((t=>"id"!==t)).map((t=>e(bD,{label:t,name:`${r}.${o}.${t}`,register:i},`${t}-${n.id}`))),e(f,{label:"Delete",children:e(y,{position:"absolute",top:"0",right:"0",children:e(h,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(o),c&&c(o)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),e(y,{children:e(h,{size:"sm",onClick:()=>{u(p),a&&a(p)},ml:"auto",children:"+"})})]})},gI=({data:r,dataKey:n,width:i="100%",height:o="100%",lineType:a="linear",isAnimated:c=!1,formatter:l,labelFormatter:u,sampleRate:s,style:f})=>{const{isNetGain:p}=Yr({data:r,dataKey:n}),d=Vn(),h=s?Jr({arr:r||[],n:s}):r;let v,y;h?.length?(y=p?tn.mint():tn.heroicRed(),v=h?.map((t=>({...t,[n]:Number(t[n])||0})))):(y=tn.coolElegance(),v=[{[n]:0},{[n]:0}]);const g={cursor:h?.length?"crosshair":"default",...f};return e(_v,{width:i,minHeight:o,id:d,children:t(HT,{data:v,style:g,children:[e(HE,{domain:["dataMin","dataMax"],hide:!0}),e(nE,{isAnimationActive:c,type:a,dataKey:n,stroke:y,strokeWidth:"2",activeDot:t=>UT({labelFormatter:u,formatter:l,...t}),dot:!1,scale:"threshold"}),h?.length&&e(pv,{cursor:!1,content:()=>null})]})})},mI=({isOpen:r,onClose:n,headerContent:i=null,footerContent:o=null,children:a,isCentered:c=!0,size:l={base:"md",md:"xl"},isDisabledCloseButton:u,bodyProps:s={},contentProps:f={},...p})=>{const d={maxHeight:"60vh",bg:"transparent",overflowX:"hidden",overflowY:"auto",...s},h={...{minWidth:nn},...f};return t(V,{blockScrollOnMount:!1,scrollBehavior:"inside",isOpen:r,onClose:n,isCentered:c,size:l,trapFocus:!Xr(),...p,children:[e(W,{}),t(Z,{...h,children:[e(q,{children:i}),e(Y,{isDisabled:u}),e(G,{...d,children:a}),o&&e(X,{borderTop:"solid 1px",borderColor:tn.coolElegance(),justifyContent:"flex-start",children:o})]})]})},bI=t=>{const{isActive:r,children:n,href:i,...o}=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 ${tn.black(.08)}`:"none",href:i,alignItems:"center",lineHeight:"1",position:"relative",padding:"2",zIndex:"3",transition:"border-color 0.25s",_hover:{borderColor:!r&&tn.coolElegance(),textDecoration:"none"},...o,children:n},i)};var wI,xI={exports:{}};var OI,SI=(wI||(wI=1,OI=xI,function(t,e){OI.exports=e(ft)}(0,(t=>(()=>{var e={703:(t,e,r)=>{var n=r(414);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,r,i,o,a){if(a!==n){var 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:o,resetWarningCache:i};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 i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}};return e[t](o,o.exports,n),o.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 i={};return(()=>{n.r(i),n.d(i,{default:()=>w});var t=n(98),e=n.n(t),r=n(697),o=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,i=t.page,o=t.selected,c=t.activeClassName,l=t.activeLinkClassName,u=t.getEventListener,s=t.pageSelectedHandler,f=t.href,p=t.extraAriaContext,d=t.pageLabelBuilder,h=t.rel,v=t.ariaLabel||"Page "+i+(p?" "+p:""),y=null;return o&&(y="page",v=t.ariaLabel||"Page "+i+" is your current page",r=void 0!==r?r+" "+c:c,void 0!==n?void 0!==l&&(n=n+" "+l):n=l),e().createElement("li",{className:r},e().createElement("a",a({rel:h,role:f?void 0:"button",className:n,href:f,tabIndex:o?"-1":"0","aria-label":v,"aria-current":y,onKeyPress:s},u(s)),d(i)))};c.propTypes={pageSelectedHandler:o().func.isRequired,selected:o().bool.isRequired,pageClassName:o().string,pageLinkClassName:o().string,activeClassName:o().string,activeLinkClassName:o().string,extraAriaContext:o().string,href:o().string,ariaLabel:o().string,page:o().number.isRequired,getEventListener:o().func.isRequired,pageLabelBuilder:o().func.isRequired,rel:o().string};const l=c;function u(){return u=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},u.apply(this,arguments)}var s=function(t){var r=t.breakLabel,n=t.breakAriaLabel,i=t.breakClassName,o=t.breakLinkClassName,a=t.breakHandler,c=t.getEventListener,l=i||"break";return e().createElement("li",{className:l},e().createElement("a",u({className:o,role:"button",tabIndex:"0","aria-label":n,onKeyPress:a},c(a)),r))};s.propTypes={breakLabel:o().oneOfType([o().string,o().node]),breakAriaLabel:o().string,breakClassName:o().string,breakLinkClassName:o().string,breakHandler:o().func.isRequired,getEventListener:o().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 v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function y(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&&v(t,e)}(c,t);var r,n,i,o,a=(i=c,o=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(i);if(o){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 y(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(y(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(y(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(y(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(y(r),"handlePageChange",(function(t){r.state.selected!==t&&(r.setState({selected:t}),r.callCallback(t))})),m(y(r),"getEventListener",(function(t){return m({},r.props.eventListener,t)})),m(y(r),"handleClick",(function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=i.isPrevious,a=void 0!==o&&o,c=i.isNext,l=void 0!==c&&c,u=i.isBreak,s=void 0!==u&&u,f=i.isActive,p=void 0!==f&&f;t.preventDefault?t.preventDefault():t.returnValue=!1;var d=r.state.selected,h=r.props.onClick,v=n;if(h){var y=h({index:e,selected:d,nextSelectedPage:n,event:t,isPrevious:a,isNext:l,isBreak:s,isActive:p});if(!1===y)return;Number.isInteger(y)&&(v=y)}void 0!==v&&r.handlePageChange(v)})),m(y(r),"handleBreakClick",(function(t,e){var n=r.state.selected;r.handleClick(e,t,n<t?r.getForwardJump():r.getBackwardJump(),{isBreak:!0})})),m(y(r),"callCallback",(function(t){void 0!==r.props.onPageChange&&"function"==typeof r.props.onPageChange&&r.props.onPageChange({selected:t})})),m(y(r),"callActiveCallback",(function(t){void 0!==r.props.onPageActive&&"function"==typeof r.props.onPageActive&&r.props.onPageActive({selected:t})})),m(y(r),"getElementPageRel",(function(t){var e=r.state.selected,n=r.props,i=n.nextPageRel,o=n.prevPageRel,a=n.selectedPageRel;return e-1===t?o:e===t?a:e+1===t?i:void 0})),m(y(r),"pagination",(function(){var t=[],n=r.props,i=n.pageRangeDisplayed,o=n.pageCount,a=n.marginPagesDisplayed,c=n.breakLabel,l=n.breakClassName,u=n.breakLinkClassName,s=n.breakAriaLabels,p=r.state.selected;if(o<=i)for(var d=0;d<o;d++)t.push(r.getPageElement(d));else{var h=i/2,v=i-h;p>o-i/2?h=i-(v=o-p):p<i/2&&(v=i-(h=p));var y,g,m=function(t){return r.getPageElement(t)},b=[];for(y=0;y<o;y++){var w=y+1;if(w<=a)b.push({type:"page",index:y,display:m(y)});else if(w>o-a)b.push({type:"page",index:y,display:m(y)});else if(y>=p-h&&y<=p+(0===p&&i>1?v-1:v))b.push({type:"page",index:y,display:m(y)});else if(c&&b.length>0&&b[b.length-1].display!==g&&(i>0||a>0)){var x=y<p?s.backward:s.forward;g=e().createElement(f,{key:y,breakAriaLabel:x,breakLabel:c,breakClassName:l,breakLinkClassName:u,breakHandler:r.handleBreakClick.bind(null,y),getEventListener:r.getEventListener}),b.push({type:"break",index:y,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,i=t.pageCount,o=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(i)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(i,"). Did you forget a Math.ceil()?")),void 0!==e&&e>i-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(e," > ").concat(i-1,").")),void 0!==o&&o>i-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(o," > ").concat(i-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,i=e.hrefAllControls;if(r)return i||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,i=n.pageClassName,o=n.pageLinkClassName,a=n.activeClassName,c=n.activeLinkClassName,u=n.extraAriaContext,s=n.pageLabelBuilder;return e().createElement(l,{key:t,pageSelectedHandler:this.handlePageSelected.bind(null,t),selected:r===t,rel:this.getElementPageRel(t),pageClassName:i,pageLinkClassName:o,activeClassName:a,activeLinkClassName:c,extraAriaContext:u,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,i=r.disabledLinkClassName,o=r.pageCount,a=r.className,c=r.containerClassName,l=r.previousLabel,u=r.previousClassName,s=r.previousLinkClassName,f=r.previousAriaLabel,d=r.prevRel,v=r.nextLabel,y=r.nextClassName,g=r.nextLinkClassName,m=r.nextAriaLabel,b=r.nextRel,w=this.state.selected,x=0===w,O=w===o-1,S="".concat(p(u)).concat(x?" ".concat(p(n)):""),_="".concat(p(y)).concat(O?" ".concat(p(n)):""),j="".concat(p(s)).concat(x?" ".concat(p(i)):""),P="".concat(p(g)).concat(O?" ".concat(p(i)):""),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)),l)),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)),v)))}}])&&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:o().number.isRequired,pageRangeDisplayed:o().number,marginPagesDisplayed:o().number,previousLabel:o().node,previousAriaLabel:o().string,prevPageRel:o().string,prevRel:o().string,nextLabel:o().node,nextAriaLabel:o().string,nextPageRel:o().string,nextRel:o().string,breakLabel:o().oneOfType([o().string,o().node]),breakAriaLabels:o().shape({forward:o().string,backward:o().string}),hrefBuilder:o().func,hrefAllControls:o().bool,onPageChange:o().func,onPageActive:o().func,onClick:o().func,initialPage:o().number,forcePage:o().number,disableInitialCallback:o().bool,containerClassName:o().string,className:o().string,pageClassName:o().string,pageLinkClassName:o().string,pageLabelBuilder:o().func,activeClassName:o().string,activeLinkClassName:o().string,previousClassName:o().string,nextClassName:o().string,previousLinkClassName:o().string,nextLinkClassName:o().string,disabledClassName:o().string,disabledLinkClassName:o().string,breakClassName:o().string,breakLinkClassName:o().string,extraAriaContext:o().string,ariaLabelBuilder:o().func,eventListener:o().string,renderOnZeroPageCount:o().func,selectedPageRel:o().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})(),i})()))),xI.exports);const _I=n(Pr(SI)),jI=({totalRecords:t=0,recordsPerPage:r=10,pageRangeDisplayed:n=3,handlePageClick:i,forcePage:o,...a})=>{const c=Math.ceil(t/r);return e(y,{justifyContent:{base:"center",md:"flex-end"},fontSize:{base:14,md:18},gap:2,w:"full",...a,children:e(_I,{breakLabel:"...",previousLabel:"<",nextLabel:">",onPageChange:i,pageRangeDisplayed:n,pageCount:c,renderOnZeroPageCount:null,forcePage:o,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:tn.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:i,lastEvaluatedKey:o,...a})=>{const[c,l]=mt([]),[u,s]=mt(1);return t(y,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[e(h,{onClick:()=>{if(2===u)return i(void 0),l([]),void s((t=>t-1));const t=c.length-1,e=c[t-1];i(e),l((t=>t.slice(0,-1))),s((t=>t-1))},isDisabled:r||1===u,children:"Previous"}),e(h,{onClick:()=>{if(o){const t={lastEvaluatedPKey:o.pKey,lastEvaluatedSKey:o.sKey};i(t),l((e=>[...e,t])),s((t=>t+1))}},isDisabled:r||!n,children:"Next"})]})},AI=({children:t,isEnabled:r=!0,...n})=>{const i=r?Mt`
|
|
32
32
|
text-wrap: balance;
|
|
33
33
|
text-wrap: pretty;
|
|
34
34
|
`:void 0;return e(D,{css:i,...n,children:t})},MI=r=>{const{children:n,size:i,isDisabled:o,isReadOnly:a,isRequired:c,name:l,register:u,errorMessage:s,helperText:f,label:p,...d}=r,h=Gr(i),v=u?u(l):void 0;return t(m,{isInvalid:Boolean(s),isDisabled:o,isReadOnly:a,isRequired:c,children:[p&&e(b,{size:i,children:p}),e(K,{icon:e(Lt,{}),size:i,...v,...d,children:n}),s&&e(x,{size:i,children:s}),f&&e(U,{fontSize:h,children:f})]})},kI=kt({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}),CI=({boxSize:t=8,color:r="brand",...n})=>{const i="neutral"===r?tn.sonicSilver():"brand.500";return e(y,{width:"full",justifyContent:"center",alignItems:"center",minHeight:Number.isFinite(Number(t))?3*Number(t):`calc(${t} * 3)`,...n,children:e(y,{width:t,height:t,animation:`${kI} 2000ms infinite linear`,children:e(Te,{boxSize:t,__css:{path:{fill:i}}})})})},EI=r=>{const{label:n,rightIcon:i,leftIcon:o,onClose:a,...c}=r,[l,u]=mt(!0);return l?t(J,{className:"cf-tag",...c,children:[o&&e(Q,{as:o}),e(tt,{children:n}),i&&e(et,{as:i}),a&&e(rt,{onClick:()=>{a(),u(!1)}})]}):null},TI=({description:r,title:n,onClose:i,isClosable:o,status:a})=>{let c,l;switch(a){case"error":l=Ct;break;case"success":l=Ft;break;case"warning":l=se,c="yellow";break;case"loading":c="brand",l=lt;break;default:c="brand",l=se}return t(nt,{as:y,colorScheme:c,justifyContent:"space-between",status:a,children:[t(y,{alignItems:"center",mr:"4",children:[e(it,{children:e(l,{size:"sm"})}),t(D,{children:[e(ot,{children:n}),e(at,{children:r})]})]}),o&&e(ct,{onClick:i})]})},DI=({icon:r,header:n,coloredText:i,values:o,children:a,useCard:c=!0})=>{const l=t(y,{gap:4,alignItems:"flex-start",justifyContent:"space-between",children:[t(y,{gap:4,alignItems:"flex-start",children:[r&&e(y,{backgroundColor:tn.lighthouse(),borderRadius:"md",padding:2,alignItems:"center",justifyContent:"center",height:"fit-content",children:e(r,{boxSize:3})}),t(y,{direction:"column",flex:"1",children:[t(y,{alignItems:"center",marginY:1,children:[e(p,{fontWeight:"500",fontSize:"sm",marginRight:2,children:n}),i&&e(p,{fontSize:"sm",children:i})]}),e(y,{gap:4,children:o.map(((r,n)=>t(y,{direction:"column",children:[e(p,{fontSize:"lg",fontWeight:"600",children:r.value}),r.description&&e(p,{fontSize:"xs",color:"#6e6e6e",children:r.description})]},n)))})]})]}),a]});return c?e(YT,{padding:3,children:l}):l},II=({children:t,label:r})=>{const n=r?e(y,{padding:"1",flexDir:"column",gap:"2",lineHeight:"normal",fontSize:"sm",children:r}):null;return e(f,{label:n,hasArrow:!0,children:t})},NI=()=>{const t=u({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 RI,LI={exports:{}},BI=LI.exports;
|