@cryptofi/core-ui 2.1.0 → 2.1.1
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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +7 -4
- package/package.json +5 -5
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 zr={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},$r=function(t){return Math.round(t)},Hr=function(t){return Math.pow(10,t)},Fr=/(\d)(?=(\d{3})+\b)/g,Vr=/(\d)(?=(\d\d)+\d\b)/g;function Ur(t,e){var r=this;if(!(r instanceof Ur))return new Ur(t,e);var n=Object.assign({},zr,e),i=Hr(n.precision),o=Wr(t,n);r.intValue=o,r.value=o/i,n.increment=n.increment||1/i,n.useVedic?n.groups=Vr:n.groups=Fr,this.s=n,this.p=i}function Wr(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=Hr(a),u="number"==typeof t,s=t instanceof Ur;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?$r(n):n}Ur.prototype={add:function(t){var e=this.intValue,r=this.s,n=this.p;return Ur((e+=Wr(t,r))/(r.fromCents?1:n),r)},subtract:function(t){var e=this.intValue,r=this.s,n=this.p;return Ur((e-=Wr(t,r))/(r.fromCents?1:n),r)},multiply:function(t){var e=this.intValue,r=this.s;return Ur((e*=t)/(r.fromCents?1:Hr(r.precision)),r)},divide:function(t){var e=this.intValue,r=this.s;return Ur(e/=Wr(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=Ur(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,$r(t/e)*e).toFixed(i.precision)},toJSON:function(){return this.value}};const Zr=({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=Ur(i,{precision:e&&i>-1&&i<1&&0!==i?5:r}).format();return n&&i>0?`+${o}`:o},qr=({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 Or(n),a=new Or(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)}},Yr=t=>{let e;return["sm","xs"].includes(t)&&(e="xs"),e},Gr=()=>{try{return window.self!==window.top}catch(t){return!0}},Xr=t=>"EQS"===t,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=Ur(t).value;return Ur(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"};Cr.extend(Rr);const an=({dateFormat:t=on.dateOnly,timeString:e})=>Cr.utc(e).local().format(t),{definePartsStyle:cn,defineMultiStyleConfig:ln}=i(ir.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(or.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(ar.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(cr.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(lr.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(ur.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,Vn,Un=(t=21)=>{var e;e=t|=0,!Fn||Fn.length<e?(Fn=Buffer.allocUnsafe(128*e),ut.randomFillSync(Fn),Vn=0):Vn+e>Fn.length&&(ut.randomFillSync(Fn),Vn=0),Vn+=e;let r="";for(let e=Vn-t;e<Vn;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,Vi,Ui,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,Vo;function Uo(){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 _r&&_r&&_r.Object===Object&&_r;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=Uo(),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=Ui?Vi:(Ui=1,Vi=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=Uo(),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=Uo(),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(Vo)return Fo;Vo=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=jr(ma());var Oa,Sa,_a=jr(wa?ba:(wa=1,ba=function(t){return null==t}));var ja,Pa=function(){if(Sa)return Oa;Sa=1;var t=Yo(),e=Uo(),r=Go();return Oa=function(n){return"string"==typeof n||!e(n)&&r(n)&&"[object String]"==t(n)}}(),Aa=jr(Pa),Ma=jr(Qo()),ka=jr(Jo()),Ca={exports:{}},Ea={};var Ta,Da,Ia={};
|
|
9
|
+
var zr={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},$r=function(t){return Math.round(t)},Hr=function(t){return Math.pow(10,t)},Fr=/(\d)(?=(\d{3})+\b)/g,Vr=/(\d)(?=(\d\d)+\d\b)/g;function Ur(t,e){var r=this;if(!(r instanceof Ur))return new Ur(t,e);var n=Object.assign({},zr,e),i=Hr(n.precision),o=Wr(t,n);r.intValue=o,r.value=o/i,n.increment=n.increment||1/i,n.useVedic?n.groups=Vr:n.groups=Fr,this.s=n,this.p=i}function Wr(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=Hr(a),u="number"==typeof t,s=t instanceof Ur;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?$r(n):n}Ur.prototype={add:function(t){var e=this.intValue,r=this.s,n=this.p;return Ur((e+=Wr(t,r))/(r.fromCents?1:n),r)},subtract:function(t){var e=this.intValue,r=this.s,n=this.p;return Ur((e-=Wr(t,r))/(r.fromCents?1:n),r)},multiply:function(t){var e=this.intValue,r=this.s;return Ur((e*=t)/(r.fromCents?1:Hr(r.precision)),r)},divide:function(t){var e=this.intValue,r=this.s;return Ur(e/=Wr(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=Ur(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,$r(t/e)*e).toFixed(i.precision)},toJSON:function(){return this.value}};const Zr=({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=Ur(i,{precision:e&&i>-1&&i<1&&0!==i?5:r}).format();return n&&i>0?`+${o}`:o},qr=({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 Or(n),a=new Or(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)}},Yr=t=>{let e;return["sm","xs"].includes(t)&&(e="xs"),e},Gr=t=>t&&"EQS"===t,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=Ur(t).value;return Ur(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"};Cr.extend(Rr);const an=({dateFormat:t=on.dateOnly,timeString:e})=>Cr.utc(e).local().format(t),{definePartsStyle:cn,defineMultiStyleConfig:ln}=i(ir.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(or.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(ar.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(cr.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(lr.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(ur.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,Vn,Un=(t=21)=>{var e;e=t|=0,!Fn||Fn.length<e?(Fn=Buffer.allocUnsafe(128*e),ut.randomFillSync(Fn),Vn=0):Vn+e>Fn.length&&(ut.randomFillSync(Fn),Vn=0),Vn+=e;let r="";for(let e=Vn-t;e<Vn;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,Vi,Ui,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,Vo;function Uo(){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 _r&&_r&&_r.Object===Object&&_r;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=Uo(),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=Ui?Vi:(Ui=1,Vi=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=Uo(),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=Uo(),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(Vo)return Fo;Vo=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=jr(ma());var Oa,Sa,_a=jr(wa?ba:(wa=1,ba=function(t){return null==t}));var ja,Pa=function(){if(Sa)return Oa;Sa=1;var t=Yo(),e=Uo(),r=Go();return Oa=function(n){return"string"==typeof n||!e(n)&&r(n)&&"[object String]"==t(n)}}(),Aa=jr(Pa),Ma=jr(Qo()),ka=jr(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 zr={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 V_(){if(C_)return k_;C_=1;return k_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function U_(){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=V_(),r={},n=U_();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=V_(),n=U_(),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=V_();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_=jr(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(",")},Vj="production"!==process.env.NODE_ENV,Uj=function(t,e,r,n,i,o,a,c){if(Vj&&"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 Uj(!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)}Uj([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);Uj(!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:(Uj(!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,dt);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=pt.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 xt(t,bP(bP({},i),{},{style:bP(bP({},n),a),className:o}))};return 1===o?c(pt.only(e)):st.createElement("div",null,pt.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=vt(),n=EP(gt(-1),2),i=n[0],o=n[1];bt((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?st.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 st.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},st.createElement("path",CP({},Sc(e,!0),{className:g,d:RP(a,c,n,o,s),ref:r})))})):st.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?st.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 VP=["x","y","top","left","width","height","className"];function UP(){return UP=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},UP.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,VP));return Za(r)&&Za(i)&&Za(s)&&Za(p)&&Za(a)&&Za(l)?st.createElement("path",UP({},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=jr(rA);var iA=jr(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=vt(),n=cA(gt(-1),2),i=n[0],o=n[1];bt((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?st.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 st.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},st.createElement("path",aA({},Sc(e,!0),{className:y,d:wA(c,l,n,o,a),ref:r})))})):st.createElement("g",null,st.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 st.createElement(zP,r);case"trapezoid":return st.createElement(OA,r);case"sector":return st.createElement(u_,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return st.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(ft(r))e=xt(r,AA(AA({},u),function(t){return ft(t)?t.props:t}(r)));else if(Ma(r))e=r(u);else if(nA(r)&&!iA(r)){var s=o(r,u);e=st.createElement(CA,{shapeType:n,elementProps:s})}else{var f=u;e=st.createElement(CA,{shapeType:n,elementProps:f})}return l?st.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=jr(HA);function VA(t){return VA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},VA(t)}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 WA(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){ZA(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 ZA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=VA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=VA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==VA(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,dt),r=e,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,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 st.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=pt.only(a);return l?st.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 st.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 st.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill: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 st.createElement(Xc,{className:"recharts-brush-texts"},st.createElement(ly,GA({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:n+i/2},s),this.getTextOfTick(e)),st.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===st.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 st.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 st.createElement(st.Fragment,null,st.createElement("rect",{x:e,y:r,width:n,height:i,fill:o,stroke:"none"}),st.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),st.createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return st.isValidElement(t)?st.cloneElement(t,r):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=Up(),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=Uo(),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=jr(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=Up();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=jr(_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=Up(),n=Uo(),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=jr(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 st.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 VM(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 UM(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,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,dt),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=VM(VM(VM({},c),t),{},{isActive:l,option:u,index:r,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return st.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)}),st.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 st.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 VM(VM({},t),{},{x:o(i),y:a(i),width:c(i),height:l(i)})}if("horizontal"===n){var s=Ja(0,t.height)(i);return VM(VM({},t),{},{y:t.y+t.height-s,height:s})}var f=Ja(0,t.width)(i);return VM(VM({},t),{},{width:f})}));return st.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=VM(VM(VM(VM(VM({},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 st.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 st.createElement(Xc,s,c.map((function(t){return st.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 st.createElement(Xc,{className:h},v||y?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(m)},st.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,st.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&&UM(r.prototype,n),i&&UM(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?VM(VM({},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=Ua(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+=Ua(v||w)*(Math.abs(w)-Math.abs(v))}return VM(VM(VM({},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 VM({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=Up(),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=Up(),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=jr(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=_t(void 0),xk=_t(void 0),Ok=_t(void 0),Sk=_t({}),_k=_t(void 0),jk=_t(0),Pk=_t(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 st.createElement(wk.Provider,{value:r},st.createElement(xk.Provider,{value:n},st.createElement(Sk.Provider,{value:i},st.createElement(Ok.Provider,{value:u},st.createElement(_k.Provider,{value:o},st.createElement(jk.Provider,{value:l},st.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=St(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=St(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 St(Pk)},Tk=function(){return St(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 Vk(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 Uk(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 Uk(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 Uk(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=St(_k),s=kk(i),f=Ck(o),p=St(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=Vk(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 st.createElement(Xc,{className:Zn("recharts-reference-line",c)},function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):Ma(t)?t(e):st.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,st.Component),Ik(e,[{key:"render",value:function(){return st.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,st.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 st.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 st.isValidElement(t)?st.cloneElement(t,e):Ma(t)?t(e):st.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,st.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 st.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?Ua(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 st.isValidElement(t)?st.cloneElement(t,e):Ma(t)?t(e):st.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,jt),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 st.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 st.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&&st.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 st.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,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:st.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 st.isValidElement(t)?st.cloneElement(t,e):Ma(t)?t(e):st.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 VC(t){return VC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},VC(t)}function UC(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"===VC(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"!=VC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=VC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==VC(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,dt),r=e,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.points,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 st.createElement(Xc,u,c.map((function(t){return st.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 st.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=UC(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 st.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 st.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 st.createElement(Xc,{className:y},g||m?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(w)},st.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&&st.createElement("clipPath",{id:"clipPath-dots-".concat(w)},st.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(st.isValidElement(t))r=st.cloneElement(t,e);else if(Ma(t))r=t(e);else{var n=e.key,i=UC(e,FC),o=Zn("recharts-line-dot","boolean"!=typeof t?t.className:"");r=st.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,dt),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 st.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)?st.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)?st.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 st.createElement(Xc,{clipPath:r?"url(#clipPath-".concat(n,")"):null},st.createElement(x_,uE({},Sc(s,!0),{points:t,connectNulls:l,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&st.createElement(x_,uE({},Sc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:l,fill:"none",points:t})),"none"!==c&&u&&st.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 st.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 st.createElement(Xc,null,st.createElement("defs",null,st.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),st.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 st.createElement(Xc,{className:y},g||m?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(w)},st.createElement("rect",{x:g?c:c-s/2,y:m?a:a-f/2,width:g?s:2*s,height:m?f:2*f})),!A&&st.createElement("clipPath",{id:"clipPath-dots-".concat(w)},st.createElement("rect",{x:c-M/2,y:a-M/2,width:s+M,height:f+M}))):null,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:st.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(st.isValidElement(t))r=st.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=st.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,st.Component),xE(e,[{key:"render",value:function(){return st.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:st.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,st.Component),TE(e,[{key:"render",value:function(){return st.createElement($E,this.props)}}])}();function FE(t){return function(t){if(Array.isArray(t))return VE(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 VE(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 VE(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 VE(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 UE,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=(UE||(UE=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(jr(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 ft(h)?xt(h,w):Ot(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(Ua(s-u)!==Ua(f-s)){var d=[];if(Ua(f-s)===Ua(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 UO(UO({},t),{},WO({},p,t[p]+(s||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&Za(t[d]))return UO(UO({},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?UO(UO({},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?UO(UO({},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?UO(UO({},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 UO(UO({},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 UO(UO({},e),{},WO({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:nS(t,a.items,i)}))}),{})),UO(UO({},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 st.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 xt(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 xt(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 xt(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 xt(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 xt(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 xt(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=xt(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[xt(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[xt(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 xt(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,jt),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 st.createElement("defs",null,st.createElement("clipPath",{id:t},st.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 st.createElement(Ak,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},st.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 st.createElement(Ak,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},st.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}}),st.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=ft(t)?xt(t,e):Ma(t)?t(e):st.createElement(HP,e),st.createElement(Xc,{className:"recharts-active-dot",key:r},n)}));var h=ht((function(t,e){return st.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 VT=({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,{})},UT=({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}=qr({data:r,dataKey:n}),d=Un(),h=Un(),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=>VT({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]=gt(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(Lt,{}),onClick:()=>{a>0&&a<=n.length-1&&c((t=>t-1))}}),e(g,{variant:"ghost",isDisabled:a===n.length-1,"aria-label":"Next content",icon:e(Bt,{}),onClick:()=>{a<n.length-1&&c((t=>t+1))}})]})]})})},XT=t=>{const{isIndeterminate:r,isChecked:n,...i}=t;return n?e(Ht,{...i}):r?e(we,{...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]=gt(!1),[s,f]=gt(!1),[p,d]=gt(!1);bt((()=>{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(Pt,{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]=gt(!1),p=a?"green":"yellow";return bt((()=>{const t=t=>{t.ctrlKey&&"d"===t.key&&(c?u():l())};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[c,u,l]),bt((()=>{const t=t=>{t.ctrlKey&&"j"===t.key&&f(!s)};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[s,f]),t(r,{children:[t(A,{isOpen:c,placement:"right",onClose: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]=gt(!1);return bt((()=>{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=ht((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=wt((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||"",V=E||H.groupSeparator||"";if(F&&V&&F===V&&!1===A)throw new Error("decimalSeparator cannot be the same as groupSeparator");var U={decimalSeparator:F,groupSeparator:V,disableGroupSeparators:A,intlConfig:O,prefix:w||H.prefix,suffix:x},W={decimalSeparator:F,groupSeparator:V,allowDecimals:n,decimalsLimit:s||g||2,allowNegativeValue:o,disableAbbreviations:k,prefix:w||H.prefix,transformRawValue:L},Z=gt((function(){return null!=f?dD(aD(aD({},U),{decimalScale:b,value:String(f)})):null!=v?dD(aD(aD({},U),{decimalScale:b,value:String(v)})):""})),q=Z[0],Y=Z[1],G=gt(!1),X=G[0],K=G[1],J=gt(0),Q=J[0],tt=J[1],et=gt(0),rt=et[0],nt=et[1],it=gt(null),ot=it[0],at=it[1],ct=vt(null);yt(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:V}),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},U));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})}};bt((function(){null==v&&null==f&&Y("")}),[f,v]),bt((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({},U),{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:V,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({},U),{decimalScale:X?void 0:b,value:String(v)})),ref:ct},$);if(u){var ft=u;return st.createElement(ft,aD({},ut))}return st.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,_=Yr(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(V,{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=>Array.isArray(t)?t.filter(Boolean):[],PD=t=>void 0===t,AD=(t,e,r)=>{if(!e||!xD(t))return r;const n=jD(e.split(/[,[\].]+?/)).reduce(((t,e)=>wD(t)?t:t[e]),t);return PD(n)||n===t?PD(t[e])?r:t[e]:n},MD=t=>"boolean"==typeof t,kD=t=>/^\w*$/.test(t),CD=t=>jD(t.replace(/["|']|\]/g,"").split(/\.|\[/)),ED=(t,e,r)=>{let n=-1;const i=kD(e)?[e]:CD(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",VD="validate",UD=st.createContext(null);var WD=t=>"string"==typeof t,ZD=(t,e,r,n,i)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:i||!0}}:{},qD=t=>Array.isArray(t)?t:[t],YD=t=>xD(t)&&!Object.keys(t).length;function GD(t,e){const r=Array.isArray(e)?e:kD(e)?[e]:CD(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)&&YD(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!PD(t[e]))return!1;return!0}(n))&&GD(t,r.slice(0,-1)),t}var XD=t=>t instanceof RegExp,KD=t=>({isOnSubmit:!t||t===ID,isOnBlur:t===TD,isOnChange:t===DD,isOnAll:t===RD,isOnTouch:t===ND});const JD=(t,e,r,n)=>{for(const r of Object.keys(t)){const n=AD(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(JD(i,e))break}else if(xD(i)&&JD(i,e))break}}};var QD=(t,e,r)=>{const n=qD(AD(t,r));return ED(n,"root",e[r]),ED(t,r,n),t},tI=t=>WD(t);function eI(t,e,r="validate"){if(tI(t)||Array.isArray(t)&&t.every(tI)||MD(t)&&!t)return{type:r,message:tI(t)?t:"",ref:e}}var rI=t=>xD(t)&&!XD(t)?t:{value:t,message:""},nI=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=AD(r,v);if(!g||e.has(v))return{};const b=c?c[0]:a,w=t=>{i&&b.reportValidity&&(b.setCustomValidity(MD(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=ZD.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}=tI(l)?{value:!!l,message:l}:rI(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=rI(p),i=rI(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;WD(r.value)&&m&&(t=c?o(m)>o(r.value):l?m>r.value:n>new Date(r.value)),WD(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&&(WD(m)||Array.isArray(m))){const t=rI(u),e=rI(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&&WD(m)){const{value:t,message:e}=rI(d);if(XD(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=eI(await h(m,r),b);if(t&&(x[v]={...t,...S(VD,t.message)},!n))return w(t.message),x}else if(xD(h)){let t={};for(const e in h){if(!YD(t)&&!n)break;const i=eI(await h[e](m,r),b,e);i&&(t={...i,...S(e,i.message)},w(i.message),n&&(x[v]=t))}if(!YD(t)&&(x[v]={ref:b,...t},!n))return x}return w(!0),x},iI=()=>{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)}))},oI=(t,e,r={})=>r.shouldFocus||PD(r.shouldFocus)?r.focusName||`${t}.${PD(r.focusIndex)?e:r.focusIndex}.`:"",aI=(t,e)=>[...t,...qD(e)],cI=t=>Array.isArray(t)?t.map((()=>{})):void 0;function lI(t,e,r){return[...t.slice(0,e),...qD(r),...t.slice(e)]}var uI=(t,e,r)=>Array.isArray(t)?(PD(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],sI=(t,e)=>[...qD(e),...qD(t)];var fI=(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 jD(n).length?n:[]}(t,qD(e).sort(((t,e)=>t-e))),pI=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]},dI=(t,e,r)=>(t[e]=r,t);function hI(t){const e=st.useContext(UD),{control:r=e.control,name:n,keyName:i="id",shouldUnregister:o,rules:a}=t,[c,l]=st.useState(r._getFieldArray(n)),u=st.useRef(r._getFieldArray(n).map(iI)),s=st.useRef(c),f=st.useRef(n),p=st.useRef(!1);f.current=n,s.current=c,r._names.array.add(n),a&&r.register(n,a),st.useEffect((()=>r._subjects.array.subscribe({next:({values:t,name:e})=>{if(e===f.current||!e){const e=AD(t,f.current);Array.isArray(e)&&(l(e),u.current=e.map(iI))}}}).unsubscribe),[r]);const d=st.useCallback((t=>{p.current=!0,r._setFieldArray(n,t)}),[r,n]);return st.useEffect((()=>{if(r._state.action=!1,((t,e,r)=>e.watchAll||e.watch.has(t)||[...e.watch].some((e=>t.startsWith(e)&&/^\.\w+/.test(t.slice(e.length)))))(n,r._names)&&r._subjects.state.next({...r._formState}),p.current&&(!KD(r._options.mode).isOnSubmit||r._formState.isSubmitted)&&!KD(r._options.reValidateMode).isOnSubmit)if(r._options.resolver)r._runSchema([n]).then((t=>{const e=AD(t.errors,n),i=AD(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):GD(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=AD(r._fields,n);!t||!t._f||KD(r._options.reValidateMode).isOnSubmit&&KD(r._options.mode).isOnSubmit||nI(t,r._names.disabled,r._formValues,r._options.criteriaMode===RD,r._options.shouldUseNativeValidation).then((t=>!YD(t)&&r._subjects.state.next({errors:QD(r._formState.errors,t,n)})))}r._subjects.state.next({name:n,values:_D(r._formValues)}),r._names.focus&&JD(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]),st.useEffect((()=>(!AD(r._formValues,n)&&r._setFieldArray(n),()=>{r._options.shouldUnregister||o?r.unregister(n):((t,e)=>{const n=AD(r._fields,t);n&&n._f&&(n._f.mount=e)})(n,!1)})),[n,r,i,o]),{swap:st.useCallback(((t,e)=>{const i=r._getFieldArray(n);pI(i,t,e),pI(u.current,t,e),d(i),l(i),r._setFieldArray(n,i,pI,{argA:t,argB:e},!1)}),[d,n,r]),move:st.useCallback(((t,e)=>{const i=r._getFieldArray(n);uI(i,t,e),uI(u.current,t,e),d(i),l(i),r._setFieldArray(n,i,uI,{argA:t,argB:e},!1)}),[d,n,r]),prepend:st.useCallback(((t,e)=>{const i=qD(_D(t)),o=sI(r._getFieldArray(n),i);r._names.focus=oI(n,0,e),u.current=sI(u.current,i.map(iI)),d(o),l(o),r._setFieldArray(n,o,sI,{argA:cI(t)})}),[d,n,r]),append:st.useCallback(((t,e)=>{const i=qD(_D(t)),o=aI(r._getFieldArray(n),i);r._names.focus=oI(n,o.length-1,e),u.current=aI(u.current,i.map(iI)),d(o),l(o),r._setFieldArray(n,o,aI,{argA:cI(t)})}),[d,n,r]),remove:st.useCallback((t=>{const e=fI(r._getFieldArray(n),t);u.current=fI(u.current,t),d(e),l(e),!Array.isArray(AD(r._fields,n))&&ED(r._fields,n,void 0),r._setFieldArray(n,e,fI,{argA:t})}),[d,n,r]),insert:st.useCallback(((t,e,i)=>{const o=qD(_D(e)),a=lI(r._getFieldArray(n),t,o);r._names.focus=oI(n,t,i),u.current=lI(u.current,t,o.map(iI)),d(a),l(a),r._setFieldArray(n,a,lI,{argA:t,argB:cI(e)})}),[d,n,r]),update:st.useCallback(((t,e)=>{const i=_D(e),o=dI(r._getFieldArray(n),t,i);u.current=[...o].map(((e,r)=>e&&r!==t?u.current[r]:iI())),d(o),l([...o]),r._setFieldArray(n,o,dI,{argA:t,argB:i},!0,!1)}),[d,n,r]),replace:st.useCallback((t=>{const e=qD(_D(t));u.current=e.map(iI),d([...e]),l([...e]),r._setFieldArray(n,[...e],(t=>t),{},!0,!1)}),[d,n,r]),fields:st.useMemo((()=>c.map(((t,e)=>({...t,[i]:u.current[e]||iI()})))),[c,i])}}const vI=({name:r,control:n,register:i,defaultValues:o,onArrayAppend:a,onArrayRemove:c})=>{const{fields:l,append:u,remove:s}=hI({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:"+"})})]})},yI=({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}=qr({data:r,dataKey:n}),d=Un(),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=>VT({labelFormatter:u,formatter:l,...t}),dot:!1,scale:"threshold"}),h?.length&&e(pv,{cursor:!1,content:()=>null})]})})},gI=({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(U,{blockScrollOnMount:!1,scrollBehavior:"inside",isOpen:r,onClose:n,isCentered:c,size:l,trapFocus:!Gr(),...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})]})]})},mI=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 bI,wI={exports:{}};var xI,OI=(bI||(bI=1,xI=wI,function(t,e){xI.exports=e(st)}(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})()))),wI.exports);const SI=n(jr(OI)),_I=({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(SI,{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"}}})})},jI=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:i,lastEvaluatedKey:o,...a})=>{const[c,l]=gt([]),[u,s]=gt(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"})]})},PI=({children:t,isEnabled:r=!0,...n})=>{const i=r?At`
|
|
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 V_(){if(C_)return k_;C_=1;return k_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function U_(){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=V_(),r={},n=U_();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=V_(),n=U_(),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=V_();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_=jr(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(",")},Vj="production"!==process.env.NODE_ENV,Uj=function(t,e,r,n,i,o,a,c){if(Vj&&"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 Uj(!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)}Uj([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);Uj(!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:(Uj(!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,dt);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=pt.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 xt(t,bP(bP({},i),{},{style:bP(bP({},n),a),className:o}))};return 1===o?c(pt.only(e)):st.createElement("div",null,pt.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=vt(),n=EP(gt(-1),2),i=n[0],o=n[1];bt((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?st.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 st.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},st.createElement("path",CP({},Sc(e,!0),{className:g,d:RP(a,c,n,o,s),ref:r})))})):st.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?st.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 VP=["x","y","top","left","width","height","className"];function UP(){return UP=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},UP.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,VP));return Za(r)&&Za(i)&&Za(s)&&Za(p)&&Za(a)&&Za(l)?st.createElement("path",UP({},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=jr(rA);var iA=jr(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=vt(),n=cA(gt(-1),2),i=n[0],o=n[1];bt((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?st.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 st.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},st.createElement("path",aA({},Sc(e,!0),{className:y,d:wA(c,l,n,o,a),ref:r})))})):st.createElement("g",null,st.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 st.createElement(zP,r);case"trapezoid":return st.createElement(OA,r);case"sector":return st.createElement(u_,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return st.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(ft(r))e=xt(r,AA(AA({},u),function(t){return ft(t)?t.props:t}(r)));else if(Ma(r))e=r(u);else if(nA(r)&&!iA(r)){var s=o(r,u);e=st.createElement(CA,{shapeType:n,elementProps:s})}else{var f=u;e=st.createElement(CA,{shapeType:n,elementProps:f})}return l?st.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=jr(HA);function VA(t){return VA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},VA(t)}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 WA(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){ZA(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 ZA(t,e,r){return e=function(t){var e=function(t,e){if("object"!=VA(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=VA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==VA(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,dt),r=e,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,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 st.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=pt.only(a);return l?st.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 st.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 st.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill: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 st.createElement(Xc,{className:"recharts-brush-texts"},st.createElement(ly,GA({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:n+i/2},s),this.getTextOfTick(e)),st.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===st.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 st.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 st.createElement(st.Fragment,null,st.createElement("rect",{x:e,y:r,width:n,height:i,fill:o,stroke:"none"}),st.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),st.createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return st.isValidElement(t)?st.cloneElement(t,r):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=Up(),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=Uo(),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=jr(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=Up();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=jr(_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=Up(),n=Uo(),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=jr(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 st.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 VM(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 UM(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,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,dt),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=VM(VM(VM({},c),t),{},{isActive:l,option:u,index:r,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return st.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)}),st.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 st.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 VM(VM({},t),{},{x:o(i),y:a(i),width:c(i),height:l(i)})}if("horizontal"===n){var s=Ja(0,t.height)(i);return VM(VM({},t),{},{y:t.y+t.height-s,height:s})}var f=Ja(0,t.width)(i);return VM(VM({},t),{},{width:f})}));return st.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=VM(VM(VM(VM(VM({},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 st.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 st.createElement(Xc,s,c.map((function(t){return st.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 st.createElement(Xc,{className:h},v||y?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(m)},st.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,st.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&&UM(r.prototype,n),i&&UM(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?VM(VM({},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=Ua(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+=Ua(v||w)*(Math.abs(w)-Math.abs(v))}return VM(VM(VM({},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 VM({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=Up(),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=Up(),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=jr(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=_t(void 0),xk=_t(void 0),Ok=_t(void 0),Sk=_t({}),_k=_t(void 0),jk=_t(0),Pk=_t(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 st.createElement(wk.Provider,{value:r},st.createElement(xk.Provider,{value:n},st.createElement(Sk.Provider,{value:i},st.createElement(Ok.Provider,{value:u},st.createElement(_k.Provider,{value:o},st.createElement(jk.Provider,{value:l},st.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=St(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=St(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 St(Pk)},Tk=function(){return St(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 Vk(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 Uk(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 Uk(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 Uk(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=St(_k),s=kk(i),f=Ck(o),p=St(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=Vk(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 st.createElement(Xc,{className:Zn("recharts-reference-line",c)},function(t,e){return st.isValidElement(t)?st.cloneElement(t,e):Ma(t)?t(e):st.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,st.Component),Ik(e,[{key:"render",value:function(){return st.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,st.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 st.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 st.isValidElement(t)?st.cloneElement(t,e):Ma(t)?t(e):st.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,st.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 st.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?Ua(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 st.isValidElement(t)?st.cloneElement(t,e):Ma(t)?t(e):st.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,jt),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 st.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 st.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&&st.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 st.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,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:st.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 st.isValidElement(t)?st.cloneElement(t,e):Ma(t)?t(e):st.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 VC(t){return VC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},VC(t)}function UC(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"===VC(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"!=VC(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e);if("object"!=VC(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==VC(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,dt),r=e,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.points,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 st.createElement(Xc,u,c.map((function(t){return st.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 st.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=UC(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 st.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 st.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 st.createElement(Xc,{className:y},g||m?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(w)},st.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&&st.createElement("clipPath",{id:"clipPath-dots-".concat(w)},st.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(st.isValidElement(t))r=st.cloneElement(t,e);else if(Ma(t))r=t(e);else{var n=e.key,i=UC(e,FC),o=Zn("recharts-line-dot","boolean"!=typeof t?t.className:"");r=st.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,dt),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 st.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)?st.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)?st.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 st.createElement(Xc,{clipPath:r?"url(#clipPath-".concat(n,")"):null},st.createElement(x_,uE({},Sc(s,!0),{points:t,connectNulls:l,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&st.createElement(x_,uE({},Sc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:l,fill:"none",points:t})),"none"!==c&&u&&st.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 st.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 st.createElement(Xc,null,st.createElement("defs",null,st.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),st.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 st.createElement(Xc,{className:y},g||m?st.createElement("defs",null,st.createElement("clipPath",{id:"clipPath-".concat(w)},st.createElement("rect",{x:g?c:c-s/2,y:m?a:a-f/2,width:g?s:2*s,height:m?f:2*f})),!A&&st.createElement("clipPath",{id:"clipPath-dots-".concat(w)},st.createElement("rect",{x:c-M/2,y:a-M/2,width:s+M,height:f+M}))):null,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:st.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(st.isValidElement(t))r=st.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=st.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,st.Component),xE(e,[{key:"render",value:function(){return st.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:st.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,st.Component),TE(e,[{key:"render",value:function(){return st.createElement($E,this.props)}}])}();function FE(t){return function(t){if(Array.isArray(t))return VE(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 VE(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 VE(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 VE(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 UE,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=(UE||(UE=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(jr(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 ft(h)?xt(h,w):Ot(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(Ua(s-u)!==Ua(f-s)){var d=[];if(Ua(f-s)===Ua(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 UO(UO({},t),{},WO({},p,t[p]+(s||0)));if(("horizontal"===h||"vertical"===h&&"center"===p)&&"middle"!==d&&Za(t[d]))return UO(UO({},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?UO(UO({},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?UO(UO({},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?UO(UO({},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 UO(UO({},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 UO(UO({},e),{},WO({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:nS(t,a.items,i)}))}),{})),UO(UO({},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 st.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 xt(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 xt(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 xt(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 xt(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 xt(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 xt(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=xt(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[xt(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[xt(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 xt(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,jt),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 st.createElement("defs",null,st.createElement("clipPath",{id:t},st.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 st.createElement(Ak,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},st.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 st.createElement(Ak,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},st.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}}),st.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=ft(t)?xt(t,e):Ma(t)?t(e):st.createElement(HP,e),st.createElement(Xc,{className:"recharts-active-dot",key:r},n)}));var h=ht((function(t,e){return st.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 VT=({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,{})},UT=({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}=qr({data:r,dataKey:n}),d=Un(),h=Un(),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=>VT({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]=gt(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(Lt,{}),onClick:()=>{a>0&&a<=n.length-1&&c((t=>t-1))}}),e(g,{variant:"ghost",isDisabled:a===n.length-1,"aria-label":"Next content",icon:e(Bt,{}),onClick:()=>{a<n.length-1&&c((t=>t+1))}})]})]})})},XT=t=>{const{isIndeterminate:r,isChecked:n,...i}=t;return n?e(Ht,{...i}):r?e(we,{...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]=gt(!1),[s,f]=gt(!1),[p,d]=gt(!1);bt((()=>{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(Pt,{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]=gt(!1),p=a?"green":"yellow";return bt((()=>{const t=t=>{t.ctrlKey&&"d"===t.key&&(c?u():l())};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[c,u,l]),bt((()=>{const t=t=>{t.ctrlKey&&"j"===t.key&&f(!s)};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}}),[s,f]),t(r,{children:[t(A,{isOpen:c,placement:"right",onClose: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]=gt(!1);return bt((()=>{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=ht((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=wt((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||"",V=E||H.groupSeparator||"";if(F&&V&&F===V&&!1===A)throw new Error("decimalSeparator cannot be the same as groupSeparator");var U={decimalSeparator:F,groupSeparator:V,disableGroupSeparators:A,intlConfig:O,prefix:w||H.prefix,suffix:x},W={decimalSeparator:F,groupSeparator:V,allowDecimals:n,decimalsLimit:s||g||2,allowNegativeValue:o,disableAbbreviations:k,prefix:w||H.prefix,transformRawValue:L},Z=gt((function(){return null!=f?dD(aD(aD({},U),{decimalScale:b,value:String(f)})):null!=v?dD(aD(aD({},U),{decimalScale:b,value:String(v)})):""})),q=Z[0],Y=Z[1],G=gt(!1),X=G[0],K=G[1],J=gt(0),Q=J[0],tt=J[1],et=gt(0),rt=et[0],nt=et[1],it=gt(null),ot=it[0],at=it[1],ct=vt(null);yt(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:V}),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},U));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})}};bt((function(){null==v&&null==f&&Y("")}),[f,v]),bt((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({},U),{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:V,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({},U),{decimalScale:X?void 0:b,value:String(v)})),ref:ct},$);if(u){var ft=u;return st.createElement(ft,aD({},ut))}return st.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,_=Yr(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(V,{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=>Array.isArray(t)?t.filter(Boolean):[],PD=t=>void 0===t,AD=(t,e,r)=>{if(!e||!xD(t))return r;const n=jD(e.split(/[,[\].]+?/)).reduce(((t,e)=>wD(t)?t:t[e]),t);return PD(n)||n===t?PD(t[e])?r:t[e]:n},MD=t=>"boolean"==typeof t,kD=t=>/^\w*$/.test(t),CD=t=>jD(t.replace(/["|']|\]/g,"").split(/\.|\[/)),ED=(t,e,r)=>{let n=-1;const i=kD(e)?[e]:CD(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",VD="validate",UD=st.createContext(null);var WD=t=>"string"==typeof t,ZD=(t,e,r,n,i)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:i||!0}}:{},qD=t=>Array.isArray(t)?t:[t],YD=t=>xD(t)&&!Object.keys(t).length;function GD(t,e){const r=Array.isArray(e)?e:kD(e)?[e]:CD(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)&&YD(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!PD(t[e]))return!1;return!0}(n))&&GD(t,r.slice(0,-1)),t}var XD=t=>t instanceof RegExp,KD=t=>({isOnSubmit:!t||t===ID,isOnBlur:t===TD,isOnChange:t===DD,isOnAll:t===RD,isOnTouch:t===ND});const JD=(t,e,r,n)=>{for(const r of Object.keys(t)){const n=AD(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(JD(i,e))break}else if(xD(i)&&JD(i,e))break}}};var QD=(t,e,r)=>{const n=qD(AD(t,r));return ED(n,"root",e[r]),ED(t,r,n),t},tI=t=>WD(t);function eI(t,e,r="validate"){if(tI(t)||Array.isArray(t)&&t.every(tI)||MD(t)&&!t)return{type:r,message:tI(t)?t:"",ref:e}}var rI=t=>xD(t)&&!XD(t)?t:{value:t,message:""},nI=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=AD(r,v);if(!g||e.has(v))return{};const b=c?c[0]:a,w=t=>{i&&b.reportValidity&&(b.setCustomValidity(MD(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=ZD.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}=tI(l)?{value:!!l,message:l}:rI(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=rI(p),i=rI(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;WD(r.value)&&m&&(t=c?o(m)>o(r.value):l?m>r.value:n>new Date(r.value)),WD(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&&(WD(m)||Array.isArray(m))){const t=rI(u),e=rI(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&&WD(m)){const{value:t,message:e}=rI(d);if(XD(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=eI(await h(m,r),b);if(t&&(x[v]={...t,...S(VD,t.message)},!n))return w(t.message),x}else if(xD(h)){let t={};for(const e in h){if(!YD(t)&&!n)break;const i=eI(await h[e](m,r),b,e);i&&(t={...i,...S(e,i.message)},w(i.message),n&&(x[v]=t))}if(!YD(t)&&(x[v]={ref:b,...t},!n))return x}return w(!0),x},iI=()=>{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)}))},oI=(t,e,r={})=>r.shouldFocus||PD(r.shouldFocus)?r.focusName||`${t}.${PD(r.focusIndex)?e:r.focusIndex}.`:"",aI=(t,e)=>[...t,...qD(e)],cI=t=>Array.isArray(t)?t.map((()=>{})):void 0;function lI(t,e,r){return[...t.slice(0,e),...qD(r),...t.slice(e)]}var uI=(t,e,r)=>Array.isArray(t)?(PD(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],sI=(t,e)=>[...qD(e),...qD(t)];var fI=(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 jD(n).length?n:[]}(t,qD(e).sort(((t,e)=>t-e))),pI=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]},dI=(t,e,r)=>(t[e]=r,t);function hI(t){const e=st.useContext(UD),{control:r=e.control,name:n,keyName:i="id",shouldUnregister:o,rules:a}=t,[c,l]=st.useState(r._getFieldArray(n)),u=st.useRef(r._getFieldArray(n).map(iI)),s=st.useRef(c),f=st.useRef(n),p=st.useRef(!1);f.current=n,s.current=c,r._names.array.add(n),a&&r.register(n,a),st.useEffect((()=>r._subjects.array.subscribe({next:({values:t,name:e})=>{if(e===f.current||!e){const e=AD(t,f.current);Array.isArray(e)&&(l(e),u.current=e.map(iI))}}}).unsubscribe),[r]);const d=st.useCallback((t=>{p.current=!0,r._setFieldArray(n,t)}),[r,n]);return st.useEffect((()=>{if(r._state.action=!1,((t,e,r)=>e.watchAll||e.watch.has(t)||[...e.watch].some((e=>t.startsWith(e)&&/^\.\w+/.test(t.slice(e.length)))))(n,r._names)&&r._subjects.state.next({...r._formState}),p.current&&(!KD(r._options.mode).isOnSubmit||r._formState.isSubmitted)&&!KD(r._options.reValidateMode).isOnSubmit)if(r._options.resolver)r._runSchema([n]).then((t=>{const e=AD(t.errors,n),i=AD(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):GD(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=AD(r._fields,n);!t||!t._f||KD(r._options.reValidateMode).isOnSubmit&&KD(r._options.mode).isOnSubmit||nI(t,r._names.disabled,r._formValues,r._options.criteriaMode===RD,r._options.shouldUseNativeValidation).then((t=>!YD(t)&&r._subjects.state.next({errors:QD(r._formState.errors,t,n)})))}r._subjects.state.next({name:n,values:_D(r._formValues)}),r._names.focus&&JD(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]),st.useEffect((()=>(!AD(r._formValues,n)&&r._setFieldArray(n),()=>{r._options.shouldUnregister||o?r.unregister(n):((t,e)=>{const n=AD(r._fields,t);n&&n._f&&(n._f.mount=e)})(n,!1)})),[n,r,i,o]),{swap:st.useCallback(((t,e)=>{const i=r._getFieldArray(n);pI(i,t,e),pI(u.current,t,e),d(i),l(i),r._setFieldArray(n,i,pI,{argA:t,argB:e},!1)}),[d,n,r]),move:st.useCallback(((t,e)=>{const i=r._getFieldArray(n);uI(i,t,e),uI(u.current,t,e),d(i),l(i),r._setFieldArray(n,i,uI,{argA:t,argB:e},!1)}),[d,n,r]),prepend:st.useCallback(((t,e)=>{const i=qD(_D(t)),o=sI(r._getFieldArray(n),i);r._names.focus=oI(n,0,e),u.current=sI(u.current,i.map(iI)),d(o),l(o),r._setFieldArray(n,o,sI,{argA:cI(t)})}),[d,n,r]),append:st.useCallback(((t,e)=>{const i=qD(_D(t)),o=aI(r._getFieldArray(n),i);r._names.focus=oI(n,o.length-1,e),u.current=aI(u.current,i.map(iI)),d(o),l(o),r._setFieldArray(n,o,aI,{argA:cI(t)})}),[d,n,r]),remove:st.useCallback((t=>{const e=fI(r._getFieldArray(n),t);u.current=fI(u.current,t),d(e),l(e),!Array.isArray(AD(r._fields,n))&&ED(r._fields,n,void 0),r._setFieldArray(n,e,fI,{argA:t})}),[d,n,r]),insert:st.useCallback(((t,e,i)=>{const o=qD(_D(e)),a=lI(r._getFieldArray(n),t,o);r._names.focus=oI(n,t,i),u.current=lI(u.current,t,o.map(iI)),d(a),l(a),r._setFieldArray(n,a,lI,{argA:t,argB:cI(e)})}),[d,n,r]),update:st.useCallback(((t,e)=>{const i=_D(e),o=dI(r._getFieldArray(n),t,i);u.current=[...o].map(((e,r)=>e&&r!==t?u.current[r]:iI())),d(o),l([...o]),r._setFieldArray(n,o,dI,{argA:t,argB:i},!0,!1)}),[d,n,r]),replace:st.useCallback((t=>{const e=qD(_D(t));u.current=e.map(iI),d([...e]),l([...e]),r._setFieldArray(n,[...e],(t=>t),{},!0,!1)}),[d,n,r]),fields:st.useMemo((()=>c.map(((t,e)=>({...t,[i]:u.current[e]||iI()})))),[c,i])}}const vI=({name:r,control:n,register:i,defaultValues:o,onArrayAppend:a,onArrayRemove:c})=>{const{fields:l,append:u,remove:s}=hI({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:"+"})})]})},yI=({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}=qr({data:r,dataKey:n}),d=Un(),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=>VT({labelFormatter:u,formatter:l,...t}),dot:!1,scale:"threshold"}),h?.length&&e(pv,{cursor:!1,content:()=>null})]})})},gI=({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(U,{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})]})]})},mI=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 bI,wI={exports:{}};var xI,OI=(bI||(bI=1,xI=wI,function(t,e){xI.exports=e(st)}(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})()))),wI.exports);const SI=n(jr(OI)),_I=({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(SI,{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"}}})})},jI=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:i,lastEvaluatedKey:o,...a})=>{const[c,l]=gt([]),[u,s]=gt(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"})]})},PI=({children:t,isEnabled:r=!0,...n})=>{const i=r?At`
|
|
32
32
|
text-wrap: balance;
|
|
33
33
|
text-wrap: pretty;
|
|
34
34
|
`:void 0;return e(D,{css:i,...n,children:t})},AI=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=Yr(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(Rt,{}),size:i,...v,...d,children:n}),s&&e(x,{size:i,children:s}),f&&e(V,{fontSize:h,children:f})]})},MI=Mt({from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}}),kI=({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:`${MI} 2000ms infinite linear`,children:e(Ee,{boxSize:t,__css:{path:{fill:i}}})})})},CI=r=>{const{label:n,rightIcon:i,leftIcon:o,onClose:a,...c}=r,[l,u]=gt(!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},EI=({description:r,title:n,onClose:i,isClosable:o,status:a})=>{let c,l;switch(a){case"error":l=kt;break;case"success":l=Ht;break;case"warning":l=ue,c="yellow";break;case"loading":c="brand",l=lt;break;default:c="brand",l=ue}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})]})},TI=({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},DI=({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})},II=()=>{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 NI,RI={exports:{}},LI=RI.exports;
|
|
@@ -39,5 +39,5 @@ object-assign
|
|
|
39
39
|
* Released under MIT license <https://lodash.com/license>
|
|
40
40
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
41
41
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
42
|
-
*/var BI=(NI||(NI=1,function(t,e){(function(){var r,n="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",a=32,c=128,l=256,u=1/0,s=9007199254740991,f=NaN,p=4294967295,d=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",l]],h="[object Arguments]",v="[object Array]",y="[object Boolean]",g="[object Date]",m="[object Error]",b="[object Function]",w="[object GeneratorFunction]",x="[object Map]",O="[object Number]",S="[object Object]",_="[object Promise]",j="[object RegExp]",P="[object Set]",A="[object String]",M="[object Symbol]",k="[object WeakMap]",C="[object ArrayBuffer]",E="[object DataView]",T="[object Float32Array]",D="[object Float64Array]",I="[object Int8Array]",N="[object Int16Array]",R="[object Int32Array]",L="[object Uint8Array]",B="[object Uint8ClampedArray]",z="[object Uint16Array]",$="[object Uint32Array]",H=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,Z=RegExp(U.source),q=RegExp(W.source),Y=/<%-([\s\S]+?)%>/g,G=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tt=/[\\^$.*+?()[\]{}|]/g,et=RegExp(tt.source),rt=/^\s+/,nt=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ct=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,ut=/\\(\\)?/g,st=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,ht=/^\[object .+?Constructor\]$/,vt=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",xt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ot="\\u2700-\\u27bf",St="a-z\\xdf-\\xf6\\xf8-\\xff",_t="A-Z\\xc0-\\xd6\\xd8-\\xde",jt="\\ufe0e\\ufe0f",Pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",At="['’]",Mt="["+wt+"]",kt="["+Pt+"]",Ct="["+xt+"]",Et="\\d+",Tt="["+Ot+"]",Dt="["+St+"]",It="[^"+wt+Pt+Et+Ot+St+_t+"]",Nt="\\ud83c[\\udffb-\\udfff]",Rt="[^"+wt+"]",Lt="(?:\\ud83c[\\udde6-\\uddff]){2}",Bt="[\\ud800-\\udbff][\\udc00-\\udfff]",zt="["+_t+"]",$t="\\u200d",Ht="(?:"+Dt+"|"+It+")",Ft="(?:"+zt+"|"+It+")",Vt="(?:['’](?:d|ll|m|re|s|t|ve))?",Ut="(?:['’](?:D|LL|M|RE|S|T|VE))?",Wt="(?:"+Ct+"|"+Nt+")?",Zt="["+jt+"]?",qt=Zt+Wt+"(?:"+$t+"(?:"+[Rt,Lt,Bt].join("|")+")"+Zt+Wt+")*",Yt="(?:"+[Tt,Lt,Bt].join("|")+")"+qt,Gt="(?:"+[Rt+Ct+"?",Ct,Lt,Bt,Mt].join("|")+")",Xt=RegExp(At,"g"),Kt=RegExp(Ct,"g"),Jt=RegExp(Nt+"(?="+Nt+")|"+Gt+qt,"g"),Qt=RegExp([zt+"?"+Dt+"+"+Vt+"(?="+[kt,zt,"$"].join("|")+")",Ft+"+"+Ut+"(?="+[kt,zt+Ht,"$"].join("|")+")",zt+"?"+Ht+"+"+Vt,zt+"+"+Ut,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Et,Yt].join("|"),"g"),te=RegExp("["+$t+wt+xt+jt+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ne=-1,ie={};ie[T]=ie[D]=ie[I]=ie[N]=ie[R]=ie[L]=ie[B]=ie[z]=ie[$]=!0,ie[h]=ie[v]=ie[C]=ie[y]=ie[E]=ie[g]=ie[m]=ie[b]=ie[x]=ie[O]=ie[S]=ie[j]=ie[P]=ie[A]=ie[k]=!1;var oe={};oe[h]=oe[v]=oe[C]=oe[E]=oe[y]=oe[g]=oe[T]=oe[D]=oe[I]=oe[N]=oe[R]=oe[x]=oe[O]=oe[S]=oe[j]=oe[P]=oe[A]=oe[M]=oe[L]=oe[B]=oe[z]=oe[$]=!0,oe[m]=oe[b]=oe[k]=!1;var ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ce=parseFloat,le=parseInt,ue="object"==typeof _r&&_r&&_r.Object===Object&&_r,se="object"==typeof self&&self&&self.Object===Object&&self,fe=ue||se||Function("return this")(),pe=e&&!e.nodeType&&e,de=pe&&t&&!t.nodeType&&t,he=de&&de.exports===pe,ve=he&&ue.process,ye=function(){try{var t=de&&de.require&&de.require("util").types;return t||ve&&ve.binding&&ve.binding("util")}catch(t){}}(),ge=ye&&ye.isArrayBuffer,me=ye&&ye.isDate,be=ye&&ye.isMap,we=ye&&ye.isRegExp,xe=ye&&ye.isSet,Oe=ye&&ye.isTypedArray;function Se(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function _e(t,e,r,n){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(n,a,r(a),t)}return n}function je(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}function Pe(t,e){for(var r=null==t?0:t.length;r--&&!1!==e(t[r],r,t););return t}function Ae(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}function Me(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o}function ke(t,e){return!(null==t||!t.length)&&ze(t,e,0)>-1}function Ce(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}function Ee(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}function Te(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}function De(t,e,r,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(r=t[++i]);++i<o;)r=e(r,t[i],i,t);return r}function Ie(t,e,r,n){var i=null==t?0:t.length;for(n&&i&&(r=t[--i]);i--;)r=e(r,t[i],i,t);return r}function Ne(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var Re=Ve("length");function Le(t,e,r){var n;return r(t,(function(t,r,i){if(e(t,r,i))return n=r,!1})),n}function Be(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function ze(t,e,r){return e==e?function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}(t,e,r):Be(t,He,r)}function $e(t,e,r,n){for(var i=r-1,o=t.length;++i<o;)if(n(t[i],e))return i;return-1}function He(t){return t!=t}function Fe(t,e){var r=null==t?0:t.length;return r?Ze(t,e)/r:f}function Ve(t){return function(e){return null==e?r:e[t]}}function Ue(t){return function(e){return null==t?r:t[e]}}function We(t,e,r,n,i){return i(t,(function(t,i,o){r=n?(n=!1,t):e(r,t,i,o)})),r}function Ze(t,e){for(var n,i=-1,o=t.length;++i<o;){var a=e(t[i]);a!==r&&(n=n===r?a:n+a)}return n}function qe(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function Ye(t){return t?t.slice(0,fr(t)+1).replace(rt,""):t}function Ge(t){return function(e){return t(e)}}function Xe(t,e){return Ee(e,(function(e){return t[e]}))}function Ke(t,e){return t.has(e)}function Je(t,e){for(var r=-1,n=t.length;++r<n&&ze(e,t[r],0)>-1;);return r}function Qe(t,e){for(var r=t.length;r--&&ze(e,t[r],0)>-1;);return r}var tr=Ue({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),er=Ue({"&":"&","<":"<",">":">",'"':""","'":"'"});function rr(t){return"\\"+ae[t]}function nr(t){return te.test(t)}function ir(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function or(t,e){return function(r){return t(e(r))}}function ar(t,e){for(var r=-1,n=t.length,i=0,a=[];++r<n;){var c=t[r];c!==e&&c!==o||(t[r]=o,a[i++]=r)}return a}function cr(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}function lr(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=[t,t]})),r}function ur(t){return nr(t)?function(t){for(var e=Jt.lastIndex=0;Jt.test(t);)++e;return e}(t):Re(t)}function sr(t){return nr(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.split("")}(t)}function fr(t){for(var e=t.length;e--&&nt.test(t.charAt(e)););return e}var pr=Ue({"&":"&","<":"<",">":">",""":'"',"'":"'"}),dr=function t(e){var nt,wt=(e=null==e?fe:dr.defaults(fe.Object(),e,dr.pick(fe,re))).Array,xt=e.Date,Ot=e.Error,St=e.Function,_t=e.Math,jt=e.Object,Pt=e.RegExp,At=e.String,Mt=e.TypeError,kt=wt.prototype,Ct=St.prototype,Et=jt.prototype,Tt=e["__core-js_shared__"],Dt=Ct.toString,It=Et.hasOwnProperty,Nt=0,Rt=(nt=/[^.]+$/.exec(Tt&&Tt.keys&&Tt.keys.IE_PROTO||""))?"Symbol(src)_1."+nt:"",Lt=Et.toString,Bt=Dt.call(jt),zt=fe._,$t=Pt("^"+Dt.call(It).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=he?e.Buffer:r,Ft=e.Symbol,Vt=e.Uint8Array,Ut=Ht?Ht.allocUnsafe:r,Wt=or(jt.getPrototypeOf,jt),Zt=jt.create,qt=Et.propertyIsEnumerable,Yt=kt.splice,Gt=Ft?Ft.isConcatSpreadable:r,Jt=Ft?Ft.iterator:r,te=Ft?Ft.toStringTag:r,ae=function(){try{var t=so(jt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ue=e.clearTimeout!==fe.clearTimeout&&e.clearTimeout,se=xt&&xt.now!==fe.Date.now&&xt.now,pe=e.setTimeout!==fe.setTimeout&&e.setTimeout,de=_t.ceil,ve=_t.floor,ye=jt.getOwnPropertySymbols,Re=Ht?Ht.isBuffer:r,Ue=e.isFinite,hr=kt.join,vr=or(jt.keys,jt),yr=_t.max,gr=_t.min,mr=xt.now,br=e.parseInt,wr=_t.random,xr=kt.reverse,Or=so(e,"DataView"),Sr=so(e,"Map"),_r=so(e,"Promise"),jr=so(e,"Set"),Pr=so(e,"WeakMap"),Ar=so(jt,"create"),Mr=Pr&&new Pr,kr={},Cr=Lo(Or),Er=Lo(Sr),Tr=Lo(_r),Dr=Lo(jr),Ir=Lo(Pr),Nr=Ft?Ft.prototype:r,Rr=Nr?Nr.valueOf:r,Lr=Nr?Nr.toString:r;function Br(t){if(tc(t)&&!Va(t)&&!(t instanceof Fr)){if(t instanceof Hr)return t;if(It.call(t,"__wrapped__"))return Bo(t)}return new Hr(t)}var zr=function(){function t(){}return function(e){if(!Qa(e))return{};if(Zt)return Zt(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function $r(){}function Hr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function Fr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Vr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Ur(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Wr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Zr(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Wr;++e<r;)this.add(t[e])}function qr(t){var e=this.__data__=new Ur(t);this.size=e.size}function Yr(t,e){var r=Va(t),n=!r&&Fa(t),i=!r&&!n&&qa(t),o=!r&&!n&&!i&&lc(t),a=r||n||i||o,c=a?qe(t.length,At):[],l=c.length;for(var u in t)!e&&!It.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||mo(u,l))||c.push(u);return c}function Gr(t){var e=t.length;return e?t[qn(0,e-1)]:r}function Xr(t,e){return Io(Mi(t),an(e,0,t.length))}function Kr(t){return Io(Mi(t))}function Jr(t,e,n){(n!==r&&!za(t[e],n)||n===r&&!(e in t))&&nn(t,e,n)}function Qr(t,e,n){var i=t[e];It.call(t,e)&&za(i,n)&&(n!==r||e in t)||nn(t,e,n)}function tn(t,e){for(var r=t.length;r--;)if(za(t[r][0],e))return r;return-1}function en(t,e,r,n){return fn(t,(function(t,i,o){e(n,t,r(t),o)})),n}function rn(t,e){return t&&ki(e,Cc(e),t)}function nn(t,e,r){"__proto__"==e&&ae?ae(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function on(t,e){for(var n=-1,i=e.length,o=wt(i),a=null==t;++n<i;)o[n]=a?r:jc(t,e[n]);return o}function an(t,e,n){return t==t&&(n!==r&&(t=t<=n?t:n),e!==r&&(t=t>=e?t:e)),t}function cn(t,e,n,i,o,a){var c,l=1&e,u=2&e,s=4&e;if(n&&(c=o?n(t,i,o,a):n(t)),c!==r)return c;if(!Qa(t))return t;var f=Va(t);if(f){if(c=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&It.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!l)return Mi(t,c)}else{var p=ho(t),d=p==b||p==w;if(qa(t))return Oi(t,l);if(p==S||p==h||d&&!o){if(c=u||d?{}:yo(t),!l)return u?function(t,e){return ki(t,po(t),e)}(t,function(t,e){return t&&ki(e,Ec(e),t)}(c,t)):function(t,e){return ki(t,fo(t),e)}(t,rn(c,t))}else{if(!oe[p])return o?t:{};c=function(t,e,r){var n,i=t.constructor;switch(e){case C:return Si(t);case y:case g:return new i(+t);case E:return function(t,e){var r=e?Si(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case T:case D:case I:case N:case R:case L:case B:case z:case $:return _i(t,r);case x:return new i;case O:case A:return new i(t);case j:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case P:return new i;case M:return n=t,Rr?jt(Rr.call(n)):{}}}(t,p,l)}}a||(a=new qr);var v=a.get(t);if(v)return v;a.set(t,c),oc(t)?t.forEach((function(r){c.add(cn(r,e,n,r,t,a))})):ec(t)&&t.forEach((function(r,i){c.set(i,cn(r,e,n,i,t,a))}));var m=f?r:(s?u?no:ro:u?Ec:Cc)(t);return je(m||t,(function(r,i){m&&(r=t[i=r]),Qr(c,i,cn(r,e,n,i,t,a))})),c}function ln(t,e,n){var i=n.length;if(null==t)return!i;for(t=jt(t);i--;){var o=n[i],a=e[o],c=t[o];if(c===r&&!(o in t)||!a(c))return!1}return!0}function un(t,e,i){if("function"!=typeof t)throw new Mt(n);return Co((function(){t.apply(r,i)}),e)}function sn(t,e,r,n){var i=-1,o=ke,a=!0,c=t.length,l=[],u=e.length;if(!c)return l;r&&(e=Ee(e,Ge(r))),n?(o=Ce,a=!1):e.length>=200&&(o=Ke,a=!1,e=new Zr(e));t:for(;++i<c;){var s=t[i],f=null==r?s:r(s);if(s=n||0!==s?s:0,a&&f==f){for(var p=u;p--;)if(e[p]===f)continue t;l.push(s)}else o(e,f,n)||l.push(s)}return l}Br.templateSettings={escape:Y,evaluate:G,interpolate:X,variable:"",imports:{_:Br}},Br.prototype=$r.prototype,Br.prototype.constructor=Br,Hr.prototype=zr($r.prototype),Hr.prototype.constructor=Hr,Fr.prototype=zr($r.prototype),Fr.prototype.constructor=Fr,Vr.prototype.clear=function(){this.__data__=Ar?Ar(null):{},this.size=0},Vr.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Vr.prototype.get=function(t){var e=this.__data__;if(Ar){var n=e[t];return n===i?r:n}return It.call(e,t)?e[t]:r},Vr.prototype.has=function(t){var e=this.__data__;return Ar?e[t]!==r:It.call(e,t)},Vr.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ar&&e===r?i:e,this},Ur.prototype.clear=function(){this.__data__=[],this.size=0},Ur.prototype.delete=function(t){var e=this.__data__,r=tn(e,t);return!(r<0||(r==e.length-1?e.pop():Yt.call(e,r,1),--this.size,0))},Ur.prototype.get=function(t){var e=this.__data__,n=tn(e,t);return n<0?r:e[n][1]},Ur.prototype.has=function(t){return tn(this.__data__,t)>-1},Ur.prototype.set=function(t,e){var r=this.__data__,n=tn(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},Wr.prototype.clear=function(){this.size=0,this.__data__={hash:new Vr,map:new(Sr||Ur),string:new Vr}},Wr.prototype.delete=function(t){var e=lo(this,t).delete(t);return this.size-=e?1:0,e},Wr.prototype.get=function(t){return lo(this,t).get(t)},Wr.prototype.has=function(t){return lo(this,t).has(t)},Wr.prototype.set=function(t,e){var r=lo(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Zr.prototype.add=Zr.prototype.push=function(t){return this.__data__.set(t,i),this},Zr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.clear=function(){this.__data__=new Ur,this.size=0},qr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},qr.prototype.get=function(t){return this.__data__.get(t)},qr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Ur){var n=r.__data__;if(!Sr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Wr(n)}return r.set(t,e),this.size=r.size,this};var fn=Ti(bn),pn=Ti(wn,!0);function dn(t,e){var r=!0;return fn(t,(function(t,n,i){return r=!!e(t,n,i)})),r}function hn(t,e,n){for(var i=-1,o=t.length;++i<o;){var a=t[i],c=e(a);if(null!=c&&(l===r?c==c&&!cc(c):n(c,l)))var l=c,u=a}return u}function vn(t,e){var r=[];return fn(t,(function(t,n,i){e(t,n,i)&&r.push(t)})),r}function yn(t,e,r,n,i){var o=-1,a=t.length;for(r||(r=go),i||(i=[]);++o<a;){var c=t[o];e>0&&r(c)?e>1?yn(c,e-1,r,n,i):Te(i,c):n||(i[i.length]=c)}return i}var gn=Di(),mn=Di(!0);function bn(t,e){return t&&gn(t,e,Cc)}function wn(t,e){return t&&mn(t,e,Cc)}function xn(t,e){return Me(e,(function(e){return Xa(t[e])}))}function On(t,e){for(var n=0,i=(e=mi(e,t)).length;null!=t&&n<i;)t=t[Ro(e[n++])];return n&&n==i?t:r}function Sn(t,e,r){var n=e(t);return Va(t)?n:Te(n,r(t))}function _n(t){return null==t?t===r?"[object Undefined]":"[object Null]":te&&te in jt(t)?function(t){var e=It.call(t,te),n=t[te];try{t[te]=r;var i=!0}catch(t){}var o=Lt.call(t);return i&&(e?t[te]=n:delete t[te]),o}(t):function(t){return Lt.call(t)}(t)}function jn(t,e){return t>e}function Pn(t,e){return null!=t&&It.call(t,e)}function An(t,e){return null!=t&&e in jt(t)}function Mn(t,e,n){for(var i=n?Ce:ke,o=t[0].length,a=t.length,c=a,l=wt(a),u=1/0,s=[];c--;){var f=t[c];c&&e&&(f=Ee(f,Ge(e))),u=gr(f.length,u),l[c]=!n&&(e||o>=120&&f.length>=120)?new Zr(c&&f):r}f=t[0];var p=-1,d=l[0];t:for(;++p<o&&s.length<u;){var h=f[p],v=e?e(h):h;if(h=n||0!==h?h:0,!(d?Ke(d,v):i(s,v,n))){for(c=a;--c;){var y=l[c];if(!(y?Ke(y,v):i(t[c],v,n)))continue t}d&&d.push(v),s.push(h)}}return s}function kn(t,e,n){var i=null==(t=Ao(t,e=mi(e,t)))?t:t[Ro(Go(e))];return null==i?r:Se(i,t,n)}function Cn(t){return tc(t)&&_n(t)==h}function En(t,e,n,i,o){return t===e||(null==t||null==e||!tc(t)&&!tc(e)?t!=t&&e!=e:function(t,e,n,i,o,a){var c=Va(t),l=Va(e),u=c?v:ho(t),s=l?v:ho(e),f=(u=u==h?S:u)==S,p=(s=s==h?S:s)==S,d=u==s;if(d&&qa(t)){if(!qa(e))return!1;c=!0,f=!1}if(d&&!f)return a||(a=new qr),c||lc(t)?to(t,e,n,i,o,a):function(t,e,r,n,i,o,a){switch(r){case E:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case C:return!(t.byteLength!=e.byteLength||!o(new Vt(t),new Vt(e)));case y:case g:case O:return za(+t,+e);case m:return t.name==e.name&&t.message==e.message;case j:case A:return t==e+"";case x:var c=ir;case P:var l=1&n;if(c||(c=cr),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;n|=2,a.set(t,e);var s=to(c(t),c(e),n,i,o,a);return a.delete(t),s;case M:if(Rr)return Rr.call(t)==Rr.call(e)}return!1}(t,e,u,n,i,o,a);if(!(1&n)){var b=f&&It.call(t,"__wrapped__"),w=p&&It.call(e,"__wrapped__");if(b||w){var _=b?t.value():t,k=w?e.value():e;return a||(a=new qr),o(_,k,n,i,a)}}return!!d&&(a||(a=new qr),function(t,e,n,i,o,a){var c=1&n,l=ro(t),u=l.length,s=ro(e),f=s.length;if(u!=f&&!c)return!1;for(var p=u;p--;){var d=l[p];if(!(c?d in e:It.call(e,d)))return!1}var h=a.get(t),v=a.get(e);if(h&&v)return h==e&&v==t;var y=!0;a.set(t,e),a.set(e,t);for(var g=c;++p<u;){var m=t[d=l[p]],b=e[d];if(i)var w=c?i(b,m,d,e,t,a):i(m,b,d,t,e,a);if(!(w===r?m===b||o(m,b,n,i,a):w)){y=!1;break}g||(g="constructor"==d)}if(y&&!g){var x=t.constructor,O=e.constructor;x==O||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof O&&O instanceof O||(y=!1)}return a.delete(t),a.delete(e),y}(t,e,n,i,o,a))}(t,e,n,i,En,o))}function Tn(t,e,n,i){var o=n.length,a=o,c=!i;if(null==t)return!a;for(t=jt(t);o--;){var l=n[o];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++o<a;){var u=(l=n[o])[0],s=t[u],f=l[1];if(c&&l[2]){if(s===r&&!(u in t))return!1}else{var p=new qr;if(i)var d=i(s,f,u,t,e,p);if(!(d===r?En(f,s,3,i,p):d))return!1}}return!0}function Dn(t){return!(!Qa(t)||(e=t,Rt&&Rt in e))&&(Xa(t)?$t:ht).test(Lo(t));var e}function In(t){return"function"==typeof t?t:null==t?rl:"object"==typeof t?Va(t)?$n(t[0],t[1]):zn(t):fl(t)}function Nn(t){if(!So(t))return vr(t);var e=[];for(var r in jt(t))It.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Rn(t){if(!Qa(t))return function(t){var e=[];if(null!=t)for(var r in jt(t))e.push(r);return e}(t);var e=So(t),r=[];for(var n in t)("constructor"!=n||!e&&It.call(t,n))&&r.push(n);return r}function Ln(t,e){return t<e}function Bn(t,e){var r=-1,n=Wa(t)?wt(t.length):[];return fn(t,(function(t,i,o){n[++r]=e(t,i,o)})),n}function zn(t){var e=uo(t);return 1==e.length&&e[0][2]?jo(e[0][0],e[0][1]):function(r){return r===t||Tn(r,t,e)}}function $n(t,e){return wo(t)&&_o(e)?jo(Ro(t),e):function(n){var i=jc(n,t);return i===r&&i===e?Pc(n,t):En(e,i,3)}}function Hn(t,e,n,i,o){t!==e&&gn(e,(function(a,c){if(o||(o=new qr),Qa(a))!function(t,e,n,i,o,a,c){var l=Mo(t,n),u=Mo(e,n),s=c.get(u);if(s)Jr(t,n,s);else{var f=a?a(l,u,n+"",t,e,c):r,p=f===r;if(p){var d=Va(u),h=!d&&qa(u),v=!d&&!h&&lc(u);f=u,d||h||v?Va(l)?f=l:Za(l)?f=Mi(l):h?(p=!1,f=Oi(u,!0)):v?(p=!1,f=_i(u,!0)):f=[]:nc(u)||Fa(u)?(f=l,Fa(l)?f=yc(l):Qa(l)&&!Xa(l)||(f=yo(u))):p=!1}p&&(c.set(u,f),o(f,u,i,a,c),c.delete(u)),Jr(t,n,f)}}(t,e,c,n,Hn,i,o);else{var l=i?i(Mo(t,c),a,c+"",t,e,o):r;l===r&&(l=a),Jr(t,c,l)}}),Ec)}function Fn(t,e){var n=t.length;if(n)return mo(e+=e<0?n:0,n)?t[e]:r}function Vn(t,e,r){e=e.length?Ee(e,(function(t){return Va(t)?function(e){return On(e,1===t.length?t[0]:t)}:t})):[rl];var n=-1;e=Ee(e,Ge(co()));var i=Bn(t,(function(t,r,i){var o=Ee(e,(function(e){return e(t)}));return{criteria:o,index:++n,value:t}}));return function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}(i,(function(t,e){return function(t,e,r){for(var n=-1,i=t.criteria,o=e.criteria,a=i.length,c=r.length;++n<a;){var l=ji(i[n],o[n]);if(l)return n>=c?l:l*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}))}function Un(t,e,r){for(var n=-1,i=e.length,o={};++n<i;){var a=e[n],c=On(t,a);r(c,a)&&Jn(o,mi(a,t),c)}return o}function Wn(t,e,r,n){var i=n?$e:ze,o=-1,a=e.length,c=t;for(t===e&&(e=Mi(e)),r&&(c=Ee(t,Ge(r)));++o<a;)for(var l=0,u=e[o],s=r?r(u):u;(l=i(c,s,l,n))>-1;)c!==t&&Yt.call(c,l,1),Yt.call(t,l,1);return t}function Zn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==o){var o=i;mo(i)?Yt.call(t,i,1):si(t,i)}}return t}function qn(t,e){return t+ve(wr()*(e-t+1))}function Yn(t,e){var r="";if(!t||e<1||e>s)return r;do{e%2&&(r+=t),(e=ve(e/2))&&(t+=t)}while(e);return r}function Gn(t,e){return Eo(Po(t,e,rl),t+"")}function Xn(t){return Gr(zc(t))}function Kn(t,e){var r=zc(t);return Io(r,an(e,0,r.length))}function Jn(t,e,n,i){if(!Qa(t))return t;for(var o=-1,a=(e=mi(e,t)).length,c=a-1,l=t;null!=l&&++o<a;){var u=Ro(e[o]),s=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(o!=c){var f=l[u];(s=i?i(f,u,l):r)===r&&(s=Qa(f)?f:mo(e[o+1])?[]:{})}Qr(l,u,s),l=l[u]}return t}var Qn=Mr?function(t,e){return Mr.set(t,e),t}:rl,ti=ae?function(t,e){return ae(t,"toString",{configurable:!0,enumerable:!1,value:Qc(e),writable:!0})}:rl;function ei(t){return Io(zc(t))}function ri(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=wt(i);++n<i;)o[n]=t[n+e];return o}function ni(t,e){var r;return fn(t,(function(t,n,i){return!(r=e(t,n,i))})),!!r}function ii(t,e,r){var n=0,i=null==t?n:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;n<i;){var o=n+i>>>1,a=t[o];null!==a&&!cc(a)&&(r?a<=e:a<e)?n=o+1:i=o}return i}return oi(t,e,rl,r)}function oi(t,e,n,i){var o=0,a=null==t?0:t.length;if(0===a)return 0;for(var c=(e=n(e))!=e,l=null===e,u=cc(e),s=e===r;o<a;){var f=ve((o+a)/2),p=n(t[f]),d=p!==r,h=null===p,v=p==p,y=cc(p);if(c)var g=i||v;else g=s?v&&(i||d):l?v&&d&&(i||!h):u?v&&d&&!h&&(i||!y):!h&&!y&&(i?p<=e:p<e);g?o=f+1:a=f}return gr(a,4294967294)}function ai(t,e){for(var r=-1,n=t.length,i=0,o=[];++r<n;){var a=t[r],c=e?e(a):a;if(!r||!za(c,l)){var l=c;o[i++]=0===a?0:a}}return o}function ci(t){return"number"==typeof t?t:cc(t)?f:+t}function li(t){if("string"==typeof t)return t;if(Va(t))return Ee(t,li)+"";if(cc(t))return Lr?Lr.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ui(t,e,r){var n=-1,i=ke,o=t.length,a=!0,c=[],l=c;if(r)a=!1,i=Ce;else if(o>=200){var u=e?null:Yi(t);if(u)return cr(u);a=!1,i=Ke,l=new Zr}else l=e?[]:c;t:for(;++n<o;){var s=t[n],f=e?e(s):s;if(s=r||0!==s?s:0,a&&f==f){for(var p=l.length;p--;)if(l[p]===f)continue t;e&&l.push(f),c.push(s)}else i(l,f,r)||(l!==c&&l.push(f),c.push(s))}return c}function si(t,e){return null==(t=Ao(t,e=mi(e,t)))||delete t[Ro(Go(e))]}function fi(t,e,r,n){return Jn(t,e,r(On(t,e)),n)}function pi(t,e,r,n){for(var i=t.length,o=n?i:-1;(n?o--:++o<i)&&e(t[o],o,t););return r?ri(t,n?0:o,n?o+1:i):ri(t,n?o+1:0,n?i:o)}function di(t,e){var r=t;return r instanceof Fr&&(r=r.value()),De(e,(function(t,e){return e.func.apply(e.thisArg,Te([t],e.args))}),r)}function hi(t,e,r){var n=t.length;if(n<2)return n?ui(t[0]):[];for(var i=-1,o=wt(n);++i<n;)for(var a=t[i],c=-1;++c<n;)c!=i&&(o[i]=sn(o[i]||a,t[c],e,r));return ui(yn(o,1),e,r)}function vi(t,e,n){for(var i=-1,o=t.length,a=e.length,c={};++i<o;){var l=i<a?e[i]:r;n(c,t[i],l)}return c}function yi(t){return Za(t)?t:[]}function gi(t){return"function"==typeof t?t:rl}function mi(t,e){return Va(t)?t:wo(t,e)?[t]:No(gc(t))}var bi=Gn;function wi(t,e,n){var i=t.length;return n=n===r?i:n,!e&&n>=i?t:ri(t,e,n)}var xi=ue||function(t){return fe.clearTimeout(t)};function Oi(t,e){if(e)return t.slice();var r=t.length,n=Ut?Ut(r):new t.constructor(r);return t.copy(n),n}function Si(t){var e=new t.constructor(t.byteLength);return new Vt(e).set(new Vt(t)),e}function _i(t,e){var r=e?Si(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function ji(t,e){if(t!==e){var n=t!==r,i=null===t,o=t==t,a=cc(t),c=e!==r,l=null===e,u=e==e,s=cc(e);if(!l&&!s&&!a&&t>e||a&&c&&u&&!l&&!s||i&&c&&u||!n&&u||!o)return 1;if(!i&&!a&&!s&&t<e||s&&n&&o&&!i&&!a||l&&n&&o||!c&&o||!u)return-1}return 0}function Pi(t,e,r,n){for(var i=-1,o=t.length,a=r.length,c=-1,l=e.length,u=yr(o-a,0),s=wt(l+u),f=!n;++c<l;)s[c]=e[c];for(;++i<a;)(f||i<o)&&(s[r[i]]=t[i]);for(;u--;)s[c++]=t[i++];return s}function Ai(t,e,r,n){for(var i=-1,o=t.length,a=-1,c=r.length,l=-1,u=e.length,s=yr(o-c,0),f=wt(s+u),p=!n;++i<s;)f[i]=t[i];for(var d=i;++l<u;)f[d+l]=e[l];for(;++a<c;)(p||i<o)&&(f[d+r[a]]=t[i++]);return f}function Mi(t,e){var r=-1,n=t.length;for(e||(e=wt(n));++r<n;)e[r]=t[r];return e}function ki(t,e,n,i){var o=!n;n||(n={});for(var a=-1,c=e.length;++a<c;){var l=e[a],u=i?i(n[l],t[l],l,n,t):r;u===r&&(u=t[l]),o?nn(n,l,u):Qr(n,l,u)}return n}function Ci(t,e){return function(r,n){var i=Va(r)?_e:en,o=e?e():{};return i(r,t,co(n,2),o)}}function Ei(t){return Gn((function(e,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,c=o>2?n[2]:r;for(a=t.length>3&&"function"==typeof a?(o--,a):r,c&&bo(n[0],n[1],c)&&(a=o<3?r:a,o=1),e=jt(e);++i<o;){var l=n[i];l&&t(e,l,i,a)}return e}))}function Ti(t,e){return function(r,n){if(null==r)return r;if(!Wa(r))return t(r,n);for(var i=r.length,o=e?i:-1,a=jt(r);(e?o--:++o<i)&&!1!==n(a[o],o,a););return r}}function Di(t){return function(e,r,n){for(var i=-1,o=jt(e),a=n(e),c=a.length;c--;){var l=a[t?c:++i];if(!1===r(o[l],l,o))break}return e}}function Ii(t){return function(e){var n=nr(e=gc(e))?sr(e):r,i=n?n[0]:e.charAt(0),o=n?wi(n,1).join(""):e.slice(1);return i[t]()+o}}function Ni(t){return function(e){return De(Xc(Fc(e).replace(Xt,"")),t,"")}}function Ri(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=zr(t.prototype),n=t.apply(r,e);return Qa(n)?n:r}}function Li(t){return function(e,n,i){var o=jt(e);if(!Wa(e)){var a=co(n,3);e=Cc(e),n=function(t){return a(o[t],t,o)}}var c=t(e,n,i);return c>-1?o[a?e[c]:c]:r}}function Bi(t){return eo((function(e){var i=e.length,o=i,a=Hr.prototype.thru;for(t&&e.reverse();o--;){var c=e[o];if("function"!=typeof c)throw new Mt(n);if(a&&!l&&"wrapper"==oo(c))var l=new Hr([],!0)}for(o=l?o:i;++o<i;){var u=oo(c=e[o]),s="wrapper"==u?io(c):r;l=s&&xo(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?l[oo(s[0])].apply(l,s[3]):1==c.length&&xo(c)?l[u]():l.thru(c)}return function(){var t=arguments,r=t[0];if(l&&1==t.length&&Va(r))return l.plant(r).value();for(var n=0,o=i?e[n].apply(this,t):r;++n<i;)o=e[n].call(this,o);return o}}))}function zi(t,e,n,i,o,a,l,u,s,f){var p=e&c,d=1&e,h=2&e,v=24&e,y=512&e,g=h?r:Ri(t);return function c(){for(var m=arguments.length,b=wt(m),w=m;w--;)b[w]=arguments[w];if(v)var x=ao(c),O=function(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}(b,x);if(i&&(b=Pi(b,i,o,v)),a&&(b=Ai(b,a,l,v)),m-=O,v&&m<f){var S=ar(b,x);return Zi(t,e,zi,c.placeholder,n,b,S,u,s,f-m)}var _=d?n:this,j=h?_[t]:t;return m=b.length,u?b=function(t,e){for(var n=t.length,i=gr(e.length,n),o=Mi(t);i--;){var a=e[i];t[i]=mo(a,n)?o[a]:r}return t}(b,u):y&&m>1&&b.reverse(),p&&s<m&&(b.length=s),this&&this!==fe&&this instanceof c&&(j=g||Ri(j)),j.apply(_,b)}}function $i(t,e){return function(r,n){return function(t,e,r,n){return bn(t,(function(t,i,o){e(n,r(t),i,o)})),n}(r,t,e(n),{})}}function Hi(t,e){return function(n,i){var o;if(n===r&&i===r)return e;if(n!==r&&(o=n),i!==r){if(o===r)return i;"string"==typeof n||"string"==typeof i?(n=li(n),i=li(i)):(n=ci(n),i=ci(i)),o=t(n,i)}return o}}function Fi(t){return eo((function(e){return e=Ee(e,Ge(co())),Gn((function(r){var n=this;return t(e,(function(t){return Se(t,n,r)}))}))}))}function Vi(t,e){var n=(e=e===r?" ":li(e)).length;if(n<2)return n?Yn(e,t):e;var i=Yn(e,de(t/ur(e)));return nr(e)?wi(sr(i),0,t).join(""):i.slice(0,t)}function Ui(t){return function(e,n,i){return i&&"number"!=typeof i&&bo(e,n,i)&&(n=i=r),e=pc(e),n===r?(n=e,e=0):n=pc(n),function(t,e,r,n){for(var i=-1,o=yr(de((e-t)/(r||1)),0),a=wt(o);o--;)a[n?o:++i]=t,t+=r;return a}(e,n,i=i===r?e<n?1:-1:pc(i),t)}}function Wi(t){return function(e,r){return"string"==typeof e&&"string"==typeof r||(e=vc(e),r=vc(r)),t(e,r)}}function Zi(t,e,n,i,o,c,l,u,s,f){var p=8&e;e|=p?a:64,4&(e&=~(p?64:a))||(e&=-4);var d=[t,e,o,p?c:r,p?l:r,p?r:c,p?r:l,u,s,f],h=n.apply(r,d);return xo(t)&&ko(h,d),h.placeholder=i,To(h,t,e)}function qi(t){var e=_t[t];return function(t,r){if(t=vc(t),(r=null==r?0:gr(dc(r),292))&&Ue(t)){var n=(gc(t)+"e").split("e");return+((n=(gc(e(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}var Yi=jr&&1/cr(new jr([,-0]))[1]==u?function(t){return new jr(t)}:cl;function Gi(t){return function(e){var r=ho(e);return r==x?ir(e):r==P?lr(e):function(t,e){return Ee(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Xi(t,e,i,u,s,f,p,d){var h=2&e;if(!h&&"function"!=typeof t)throw new Mt(n);var v=u?u.length:0;if(v||(e&=-97,u=s=r),p=p===r?p:yr(dc(p),0),d=d===r?d:dc(d),v-=s?s.length:0,64&e){var y=u,g=s;u=s=r}var m=h?r:io(t),b=[t,e,i,u,s,y,g,f,p,d];if(m&&function(t,e){var r=t[1],n=e[1],i=r|n,a=i<131,u=n==c&&8==r||n==c&&r==l&&t[7].length<=e[8]||384==n&&e[7].length<=e[8]&&8==r;if(!a&&!u)return t;1&n&&(t[2]=e[2],i|=1&r?0:4);var s=e[3];if(s){var f=t[3];t[3]=f?Pi(f,s,e[4]):s,t[4]=f?ar(t[3],o):e[4]}(s=e[5])&&(f=t[5],t[5]=f?Ai(f,s,e[6]):s,t[6]=f?ar(t[5],o):e[6]),(s=e[7])&&(t[7]=s),n&c&&(t[8]=null==t[8]?e[8]:gr(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(b,m),t=b[0],e=b[1],i=b[2],u=b[3],s=b[4],!(d=b[9]=b[9]===r?h?0:t.length:yr(b[9]-v,0))&&24&e&&(e&=-25),e&&1!=e)w=8==e||16==e?function(t,e,n){var i=Ri(t);return function o(){for(var a=arguments.length,c=wt(a),l=a,u=ao(o);l--;)c[l]=arguments[l];var s=a<3&&c[0]!==u&&c[a-1]!==u?[]:ar(c,u);return(a-=s.length)<n?Zi(t,e,zi,o.placeholder,r,c,s,r,r,n-a):Se(this&&this!==fe&&this instanceof o?i:t,this,c)}}(t,e,d):e!=a&&33!=e||s.length?zi.apply(r,b):function(t,e,r,n){var i=1&e,o=Ri(t);return function e(){for(var a=-1,c=arguments.length,l=-1,u=n.length,s=wt(u+c),f=this&&this!==fe&&this instanceof e?o:t;++l<u;)s[l]=n[l];for(;c--;)s[l++]=arguments[++a];return Se(f,i?r:this,s)}}(t,e,i,u);else var w=function(t,e,r){var n=1&e,i=Ri(t);return function e(){return(this&&this!==fe&&this instanceof e?i:t).apply(n?r:this,arguments)}}(t,e,i);return To((m?Qn:ko)(w,b),t,e)}function Ki(t,e,n,i){return t===r||za(t,Et[n])&&!It.call(i,n)?e:t}function Ji(t,e,n,i,o,a){return Qa(t)&&Qa(e)&&(a.set(e,t),Hn(t,e,r,Ji,a),a.delete(e)),t}function Qi(t){return nc(t)?r:t}function to(t,e,n,i,o,a){var c=1&n,l=t.length,u=e.length;if(l!=u&&!(c&&u>l))return!1;var s=a.get(t),f=a.get(e);if(s&&f)return s==e&&f==t;var p=-1,d=!0,h=2&n?new Zr:r;for(a.set(t,e),a.set(e,t);++p<l;){var v=t[p],y=e[p];if(i)var g=c?i(y,v,p,e,t,a):i(v,y,p,t,e,a);if(g!==r){if(g)continue;d=!1;break}if(h){if(!Ne(e,(function(t,e){if(!Ke(h,e)&&(v===t||o(v,t,n,i,a)))return h.push(e)}))){d=!1;break}}else if(v!==y&&!o(v,y,n,i,a)){d=!1;break}}return a.delete(t),a.delete(e),d}function eo(t){return Eo(Po(t,r,Uo),t+"")}function ro(t){return Sn(t,Cc,fo)}function no(t){return Sn(t,Ec,po)}var io=Mr?function(t){return Mr.get(t)}:cl;function oo(t){for(var e=t.name+"",r=kr[e],n=It.call(kr,e)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==t)return i.name}return e}function ao(t){return(It.call(Br,"placeholder")?Br:t).placeholder}function co(){var t=Br.iteratee||nl;return t=t===nl?In:t,arguments.length?t(arguments[0],arguments[1]):t}function lo(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function uo(t){for(var e=Cc(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,_o(i)]}return e}function so(t,e){var n=function(t,e){return null==t?r:t[e]}(t,e);return Dn(n)?n:r}var fo=ye?function(t){return null==t?[]:(t=jt(t),Me(ye(t),(function(e){return qt.call(t,e)})))}:hl,po=ye?function(t){for(var e=[];t;)Te(e,fo(t)),t=Wt(t);return e}:hl,ho=_n;function vo(t,e,r){for(var n=-1,i=(e=mi(e,t)).length,o=!1;++n<i;){var a=Ro(e[n]);if(!(o=null!=t&&r(t,a)))break;t=t[a]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&Ja(i)&&mo(a,i)&&(Va(t)||Fa(t))}function yo(t){return"function"!=typeof t.constructor||So(t)?{}:zr(Wt(t))}function go(t){return Va(t)||Fa(t)||!!(Gt&&t&&t[Gt])}function mo(t,e){var r=typeof t;return!!(e=null==e?s:e)&&("number"==r||"symbol"!=r&&yt.test(t))&&t>-1&&t%1==0&&t<e}function bo(t,e,r){if(!Qa(r))return!1;var n=typeof e;return!!("number"==n?Wa(r)&&mo(e,r.length):"string"==n&&e in r)&&za(r[e],t)}function wo(t,e){if(Va(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!cc(t))||J.test(t)||!K.test(t)||null!=e&&t in jt(e)}function xo(t){var e=oo(t),r=Br[e];if("function"!=typeof r||!(e in Fr.prototype))return!1;if(t===r)return!0;var n=io(r);return!!n&&t===n[0]}(Or&&ho(new Or(new ArrayBuffer(1)))!=E||Sr&&ho(new Sr)!=x||_r&&ho(_r.resolve())!=_||jr&&ho(new jr)!=P||Pr&&ho(new Pr)!=k)&&(ho=function(t){var e=_n(t),n=e==S?t.constructor:r,i=n?Lo(n):"";if(i)switch(i){case Cr:return E;case Er:return x;case Tr:return _;case Dr:return P;case Ir:return k}return e});var Oo=Tt?Xa:vl;function So(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Et)}function _o(t){return t==t&&!Qa(t)}function jo(t,e){return function(n){return null!=n&&n[t]===e&&(e!==r||t in jt(n))}}function Po(t,e,n){return e=yr(e===r?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=yr(r.length-e,0),a=wt(o);++i<o;)a[i]=r[e+i];i=-1;for(var c=wt(e+1);++i<e;)c[i]=r[i];return c[e]=n(a),Se(t,this,c)}}function Ao(t,e){return e.length<2?t:On(t,ri(e,0,-1))}function Mo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var ko=Do(Qn),Co=pe||function(t,e){return fe.setTimeout(t,e)},Eo=Do(ti);function To(t,e,r){var n=e+"";return Eo(t,function(t,e){var r=e.length;if(!r)return t;var n=r-1;return e[n]=(r>1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return je(d,(function(r){var n="_."+r[0];e&r[1]&&!ke(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(ot);return e?e[1].split(at):[]}(n),r)))}function Do(t){var e=0,n=0;return function(){var i=mr(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function Io(t,e){var n=-1,i=t.length,o=i-1;for(e=e===r?i:e;++n<e;){var a=qn(n,o),c=t[a];t[a]=t[n],t[n]=c}return t.length=e,t}var No=function(t){var e=Da(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Q,(function(t,r,n,i){e.push(n?i.replace(ut,"$1"):r||t)})),e}));function Ro(t){if("string"==typeof t||cc(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Lo(t){if(null!=t){try{return Dt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Bo(t){if(t instanceof Fr)return t.clone();var e=new Hr(t.__wrapped__,t.__chain__);return e.__actions__=Mi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var zo=Gn((function(t,e){return Za(t)?sn(t,yn(e,1,Za,!0)):[]})),$o=Gn((function(t,e){var n=Go(e);return Za(n)&&(n=r),Za(t)?sn(t,yn(e,1,Za,!0),co(n,2)):[]})),Ho=Gn((function(t,e){var n=Go(e);return Za(n)&&(n=r),Za(t)?sn(t,yn(e,1,Za,!0),r,n):[]}));function Fo(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:dc(r);return i<0&&(i=yr(n+i,0)),Be(t,co(e,3),i)}function Vo(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return n!==r&&(o=dc(n),o=n<0?yr(i+o,0):gr(o,i-1)),Be(t,co(e,3),o,!0)}function Uo(t){return null!=t&&t.length?yn(t,1):[]}function Wo(t){return t&&t.length?t[0]:r}var Zo=Gn((function(t){var e=Ee(t,yi);return e.length&&e[0]===t[0]?Mn(e):[]})),qo=Gn((function(t){var e=Go(t),n=Ee(t,yi);return e===Go(n)?e=r:n.pop(),n.length&&n[0]===t[0]?Mn(n,co(e,2)):[]})),Yo=Gn((function(t){var e=Go(t),n=Ee(t,yi);return(e="function"==typeof e?e:r)&&n.pop(),n.length&&n[0]===t[0]?Mn(n,r,e):[]}));function Go(t){var e=null==t?0:t.length;return e?t[e-1]:r}var Xo=Gn(Ko);function Ko(t,e){return t&&t.length&&e&&e.length?Wn(t,e):t}var Jo=eo((function(t,e){var r=null==t?0:t.length,n=on(t,e);return Zn(t,Ee(e,(function(t){return mo(t,r)?+t:t})).sort(ji)),n}));function Qo(t){return null==t?t:xr.call(t)}var ta=Gn((function(t){return ui(yn(t,1,Za,!0))})),ea=Gn((function(t){var e=Go(t);return Za(e)&&(e=r),ui(yn(t,1,Za,!0),co(e,2))})),ra=Gn((function(t){var e=Go(t);return e="function"==typeof e?e:r,ui(yn(t,1,Za,!0),r,e)}));function na(t){if(!t||!t.length)return[];var e=0;return t=Me(t,(function(t){if(Za(t))return e=yr(t.length,e),!0})),qe(e,(function(e){return Ee(t,Ve(e))}))}function ia(t,e){if(!t||!t.length)return[];var n=na(t);return null==e?n:Ee(n,(function(t){return Se(e,r,t)}))}var oa=Gn((function(t,e){return Za(t)?sn(t,e):[]})),aa=Gn((function(t){return hi(Me(t,Za))})),ca=Gn((function(t){var e=Go(t);return Za(e)&&(e=r),hi(Me(t,Za),co(e,2))})),la=Gn((function(t){var e=Go(t);return e="function"==typeof e?e:r,hi(Me(t,Za),r,e)})),ua=Gn(na),sa=Gn((function(t){var e=t.length,n=e>1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,ia(t,n)}));function fa(t){var e=Br(t);return e.__chain__=!0,e}function pa(t,e){return e(t)}var da=eo((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,o=function(e){return on(e,t)};return!(e>1||this.__actions__.length)&&i instanceof Fr&&mo(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:pa,args:[o],thisArg:r}),new Hr(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(r),t}))):this.thru(o)})),ha=Ci((function(t,e,r){It.call(t,r)?++t[r]:nn(t,r,1)})),va=Li(Fo),ya=Li(Vo);function ga(t,e){return(Va(t)?je:fn)(t,co(e,3))}function ma(t,e){return(Va(t)?Pe:pn)(t,co(e,3))}var ba=Ci((function(t,e,r){It.call(t,r)?t[r].push(e):nn(t,r,[e])})),wa=Gn((function(t,e,r){var n=-1,i="function"==typeof e,o=Wa(t)?wt(t.length):[];return fn(t,(function(t){o[++n]=i?Se(e,t,r):kn(t,e,r)})),o})),xa=Ci((function(t,e,r){nn(t,r,e)}));function Oa(t,e){return(Va(t)?Ee:Bn)(t,co(e,3))}var Sa=Ci((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),_a=Gn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&bo(t,e[0],e[1])?e=[]:r>2&&bo(e[0],e[1],e[2])&&(e=[e[0]]),Vn(t,yn(e,1),[])})),ja=se||function(){return fe.Date.now()};function Pa(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Xi(t,c,r,r,r,r,e)}function Aa(t,e){var i;if("function"!=typeof e)throw new Mt(n);return t=dc(t),function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=r),i}}var Ma=Gn((function(t,e,r){var n=1;if(r.length){var i=ar(r,ao(Ma));n|=a}return Xi(t,n,e,r,i)})),ka=Gn((function(t,e,r){var n=3;if(r.length){var i=ar(r,ao(ka));n|=a}return Xi(e,n,t,r,i)}));function Ca(t,e,i){var o,a,c,l,u,s,f=0,p=!1,d=!1,h=!0;if("function"!=typeof t)throw new Mt(n);function v(e){var n=o,i=a;return o=a=r,f=e,l=t.apply(i,n)}function y(t){var n=t-s;return s===r||n>=e||n<0||d&&t-f>=c}function g(){var t=ja();if(y(t))return m(t);u=Co(g,function(t){var r=e-(t-s);return d?gr(r,c-(t-f)):r}(t))}function m(t){return u=r,h&&o?v(t):(o=a=r,l)}function b(){var t=ja(),n=y(t);if(o=arguments,a=this,s=t,n){if(u===r)return function(t){return f=t,u=Co(g,e),p?v(t):l}(s);if(d)return xi(u),u=Co(g,e),v(s)}return u===r&&(u=Co(g,e)),l}return e=vc(e)||0,Qa(i)&&(p=!!i.leading,c=(d="maxWait"in i)?yr(vc(i.maxWait)||0,e):c,h="trailing"in i?!!i.trailing:h),b.cancel=function(){u!==r&&xi(u),f=0,o=s=a=u=r},b.flush=function(){return u===r?l:m(ja())},b}var Ea=Gn((function(t,e){return un(t,1,e)})),Ta=Gn((function(t,e,r){return un(t,vc(e)||0,r)}));function Da(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Mt(n);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Da.Cache||Wr),r}function Ia(t){if("function"!=typeof t)throw new Mt(n);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Da.Cache=Wr;var Na=bi((function(t,e){var r=(e=1==e.length&&Va(e[0])?Ee(e[0],Ge(co())):Ee(yn(e,1),Ge(co()))).length;return Gn((function(n){for(var i=-1,o=gr(n.length,r);++i<o;)n[i]=e[i].call(this,n[i]);return Se(t,this,n)}))})),Ra=Gn((function(t,e){var n=ar(e,ao(Ra));return Xi(t,a,r,e,n)})),La=Gn((function(t,e){var n=ar(e,ao(La));return Xi(t,64,r,e,n)})),Ba=eo((function(t,e){return Xi(t,l,r,r,r,e)}));function za(t,e){return t===e||t!=t&&e!=e}var $a=Wi(jn),Ha=Wi((function(t,e){return t>=e})),Fa=Cn(function(){return arguments}())?Cn:function(t){return tc(t)&&It.call(t,"callee")&&!qt.call(t,"callee")},Va=wt.isArray,Ua=ge?Ge(ge):function(t){return tc(t)&&_n(t)==C};function Wa(t){return null!=t&&Ja(t.length)&&!Xa(t)}function Za(t){return tc(t)&&Wa(t)}var qa=Re||vl,Ya=me?Ge(me):function(t){return tc(t)&&_n(t)==g};function Ga(t){if(!tc(t))return!1;var e=_n(t);return e==m||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!nc(t)}function Xa(t){if(!Qa(t))return!1;var e=_n(t);return e==b||e==w||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ka(t){return"number"==typeof t&&t==dc(t)}function Ja(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function Qa(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function tc(t){return null!=t&&"object"==typeof t}var ec=be?Ge(be):function(t){return tc(t)&&ho(t)==x};function rc(t){return"number"==typeof t||tc(t)&&_n(t)==O}function nc(t){if(!tc(t)||_n(t)!=S)return!1;var e=Wt(t);if(null===e)return!0;var r=It.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Dt.call(r)==Bt}var ic=we?Ge(we):function(t){return tc(t)&&_n(t)==j},oc=xe?Ge(xe):function(t){return tc(t)&&ho(t)==P};function ac(t){return"string"==typeof t||!Va(t)&&tc(t)&&_n(t)==A}function cc(t){return"symbol"==typeof t||tc(t)&&_n(t)==M}var lc=Oe?Ge(Oe):function(t){return tc(t)&&Ja(t.length)&&!!ie[_n(t)]},uc=Wi(Ln),sc=Wi((function(t,e){return t<=e}));function fc(t){if(!t)return[];if(Wa(t))return ac(t)?sr(t):Mi(t);if(Jt&&t[Jt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Jt]());var e=ho(t);return(e==x?ir:e==P?cr:zc)(t)}function pc(t){return t?(t=vc(t))===u||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function dc(t){var e=pc(t),r=e%1;return e==e?r?e-r:e:0}function hc(t){return t?an(dc(t),0,p):0}function vc(t){if("number"==typeof t)return t;if(cc(t))return f;if(Qa(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Qa(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ye(t);var r=dt.test(t);return r||vt.test(t)?le(t.slice(2),r?2:8):pt.test(t)?f:+t}function yc(t){return ki(t,Ec(t))}function gc(t){return null==t?"":li(t)}var mc=Ei((function(t,e){if(So(e)||Wa(e))ki(e,Cc(e),t);else for(var r in e)It.call(e,r)&&Qr(t,r,e[r])})),bc=Ei((function(t,e){ki(e,Ec(e),t)})),wc=Ei((function(t,e,r,n){ki(e,Ec(e),t,n)})),xc=Ei((function(t,e,r,n){ki(e,Cc(e),t,n)})),Oc=eo(on),Sc=Gn((function(t,e){t=jt(t);var n=-1,i=e.length,o=i>2?e[2]:r;for(o&&bo(e[0],e[1],o)&&(i=1);++n<i;)for(var a=e[n],c=Ec(a),l=-1,u=c.length;++l<u;){var s=c[l],f=t[s];(f===r||za(f,Et[s])&&!It.call(t,s))&&(t[s]=a[s])}return t})),_c=Gn((function(t){return t.push(r,Ji),Se(Dc,r,t)}));function jc(t,e,n){var i=null==t?r:On(t,e);return i===r?n:i}function Pc(t,e){return null!=t&&vo(t,e,An)}var Ac=$i((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),t[e]=r}),Qc(rl)),Mc=$i((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),It.call(t,e)?t[e].push(r):t[e]=[r]}),co),kc=Gn(kn);function Cc(t){return Wa(t)?Yr(t):Nn(t)}function Ec(t){return Wa(t)?Yr(t,!0):Rn(t)}var Tc=Ei((function(t,e,r){Hn(t,e,r)})),Dc=Ei((function(t,e,r,n){Hn(t,e,r,n)})),Ic=eo((function(t,e){var r={};if(null==t)return r;var n=!1;e=Ee(e,(function(e){return e=mi(e,t),n||(n=e.length>1),e})),ki(t,no(t),r),n&&(r=cn(r,7,Qi));for(var i=e.length;i--;)si(r,e[i]);return r})),Nc=eo((function(t,e){return null==t?{}:function(t,e){return Un(t,e,(function(e,r){return Pc(t,r)}))}(t,e)}));function Rc(t,e){if(null==t)return{};var r=Ee(no(t),(function(t){return[t]}));return e=co(e),Un(t,r,(function(t,r){return e(t,r[0])}))}var Lc=Gi(Cc),Bc=Gi(Ec);function zc(t){return null==t?[]:Xe(t,Cc(t))}var $c=Ni((function(t,e,r){return e=e.toLowerCase(),t+(r?Hc(e):e)}));function Hc(t){return Gc(gc(t).toLowerCase())}function Fc(t){return(t=gc(t))&&t.replace(gt,tr).replace(Kt,"")}var Vc=Ni((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Uc=Ni((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),Wc=Ii("toLowerCase"),Zc=Ni((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),qc=Ni((function(t,e,r){return t+(r?" ":"")+Gc(e)})),Yc=Ni((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Gc=Ii("toUpperCase");function Xc(t,e,n){return t=gc(t),(e=n?r:e)===r?function(t){return ee.test(t)}(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.match(ct)||[]}(t):t.match(e)||[]}var Kc=Gn((function(t,e){try{return Se(t,r,e)}catch(t){return Ga(t)?t:new Ot(t)}})),Jc=eo((function(t,e){return je(e,(function(e){e=Ro(e),nn(t,e,Ma(t[e],t))})),t}));function Qc(t){return function(){return t}}var tl=Bi(),el=Bi(!0);function rl(t){return t}function nl(t){return In("function"==typeof t?t:cn(t,1))}var il=Gn((function(t,e){return function(r){return kn(r,t,e)}})),ol=Gn((function(t,e){return function(r){return kn(t,r,e)}}));function al(t,e,r){var n=Cc(e),i=xn(e,n);null!=r||Qa(e)&&(i.length||!n.length)||(r=e,e=t,t=this,i=xn(e,Cc(e)));var o=!(Qa(r)&&"chain"in r&&!r.chain),a=Xa(t);return je(i,(function(r){var n=e[r];t[r]=n,a&&(t.prototype[r]=function(){var e=this.__chain__;if(o||e){var r=t(this.__wrapped__);return(r.__actions__=Mi(this.__actions__)).push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,Te([this.value()],arguments))})})),t}function cl(){}var ll=Fi(Ee),ul=Fi(Ae),sl=Fi(Ne);function fl(t){return wo(t)?Ve(Ro(t)):function(t){return function(e){return On(e,t)}}(t)}var pl=Ui(),dl=Ui(!0);function hl(){return[]}function vl(){return!1}var yl,gl=Hi((function(t,e){return t+e}),0),ml=qi("ceil"),bl=Hi((function(t,e){return t/e}),1),wl=qi("floor"),xl=Hi((function(t,e){return t*e}),1),Ol=qi("round"),Sl=Hi((function(t,e){return t-e}),0);return Br.after=function(t,e){if("function"!=typeof e)throw new Mt(n);return t=dc(t),function(){if(--t<1)return e.apply(this,arguments)}},Br.ary=Pa,Br.assign=mc,Br.assignIn=bc,Br.assignInWith=wc,Br.assignWith=xc,Br.at=Oc,Br.before=Aa,Br.bind=Ma,Br.bindAll=Jc,Br.bindKey=ka,Br.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Va(t)?t:[t]},Br.chain=fa,Br.chunk=function(t,e,n){e=(n?bo(t,e,n):e===r)?1:yr(dc(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,c=wt(de(i/e));o<i;)c[a++]=ri(t,o,o+=e);return c},Br.compact=function(t){for(var e=-1,r=null==t?0:t.length,n=0,i=[];++e<r;){var o=t[e];o&&(i[n++]=o)}return i},Br.concat=function(){var t=arguments.length;if(!t)return[];for(var e=wt(t-1),r=arguments[0],n=t;n--;)e[n-1]=arguments[n];return Te(Va(r)?Mi(r):[r],yn(e,1))},Br.cond=function(t){var e=null==t?0:t.length,r=co();return t=e?Ee(t,(function(t){if("function"!=typeof t[1])throw new Mt(n);return[r(t[0]),t[1]]})):[],Gn((function(r){for(var n=-1;++n<e;){var i=t[n];if(Se(i[0],this,r))return Se(i[1],this,r)}}))},Br.conforms=function(t){return function(t){var e=Cc(t);return function(r){return ln(r,t,e)}}(cn(t,1))},Br.constant=Qc,Br.countBy=ha,Br.create=function(t,e){var r=zr(t);return null==e?r:rn(r,e)},Br.curry=function t(e,n,i){var o=Xi(e,8,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},Br.curryRight=function t(e,n,i){var o=Xi(e,16,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},Br.debounce=Ca,Br.defaults=Sc,Br.defaultsDeep=_c,Br.defer=Ea,Br.delay=Ta,Br.difference=zo,Br.differenceBy=$o,Br.differenceWith=Ho,Br.drop=function(t,e,n){var i=null==t?0:t.length;return i?ri(t,(e=n||e===r?1:dc(e))<0?0:e,i):[]},Br.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?ri(t,0,(e=i-(e=n||e===r?1:dc(e)))<0?0:e):[]},Br.dropRightWhile=function(t,e){return t&&t.length?pi(t,co(e,3),!0,!0):[]},Br.dropWhile=function(t,e){return t&&t.length?pi(t,co(e,3),!0):[]},Br.fill=function(t,e,n,i){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&bo(t,e,n)&&(n=0,i=o),function(t,e,n,i){var o=t.length;for((n=dc(n))<0&&(n=-n>o?0:o+n),(i=i===r||i>o?o:dc(i))<0&&(i+=o),i=n>i?0:hc(i);n<i;)t[n++]=e;return t}(t,e,n,i)):[]},Br.filter=function(t,e){return(Va(t)?Me:vn)(t,co(e,3))},Br.flatMap=function(t,e){return yn(Oa(t,e),1)},Br.flatMapDeep=function(t,e){return yn(Oa(t,e),u)},Br.flatMapDepth=function(t,e,n){return n=n===r?1:dc(n),yn(Oa(t,e),n)},Br.flatten=Uo,Br.flattenDeep=function(t){return null!=t&&t.length?yn(t,u):[]},Br.flattenDepth=function(t,e){return null!=t&&t.length?yn(t,e=e===r?1:dc(e)):[]},Br.flip=function(t){return Xi(t,512)},Br.flow=tl,Br.flowRight=el,Br.fromPairs=function(t){for(var e=-1,r=null==t?0:t.length,n={};++e<r;){var i=t[e];n[i[0]]=i[1]}return n},Br.functions=function(t){return null==t?[]:xn(t,Cc(t))},Br.functionsIn=function(t){return null==t?[]:xn(t,Ec(t))},Br.groupBy=ba,Br.initial=function(t){return null!=t&&t.length?ri(t,0,-1):[]},Br.intersection=Zo,Br.intersectionBy=qo,Br.intersectionWith=Yo,Br.invert=Ac,Br.invertBy=Mc,Br.invokeMap=wa,Br.iteratee=nl,Br.keyBy=xa,Br.keys=Cc,Br.keysIn=Ec,Br.map=Oa,Br.mapKeys=function(t,e){var r={};return e=co(e,3),bn(t,(function(t,n,i){nn(r,e(t,n,i),t)})),r},Br.mapValues=function(t,e){var r={};return e=co(e,3),bn(t,(function(t,n,i){nn(r,n,e(t,n,i))})),r},Br.matches=function(t){return zn(cn(t,1))},Br.matchesProperty=function(t,e){return $n(t,cn(e,1))},Br.memoize=Da,Br.merge=Tc,Br.mergeWith=Dc,Br.method=il,Br.methodOf=ol,Br.mixin=al,Br.negate=Ia,Br.nthArg=function(t){return t=dc(t),Gn((function(e){return Fn(e,t)}))},Br.omit=Ic,Br.omitBy=function(t,e){return Rc(t,Ia(co(e)))},Br.once=function(t){return Aa(2,t)},Br.orderBy=function(t,e,n,i){return null==t?[]:(Va(e)||(e=null==e?[]:[e]),Va(n=i?r:n)||(n=null==n?[]:[n]),Vn(t,e,n))},Br.over=ll,Br.overArgs=Na,Br.overEvery=ul,Br.overSome=sl,Br.partial=Ra,Br.partialRight=La,Br.partition=Sa,Br.pick=Nc,Br.pickBy=Rc,Br.property=fl,Br.propertyOf=function(t){return function(e){return null==t?r:On(t,e)}},Br.pull=Xo,Br.pullAll=Ko,Br.pullAllBy=function(t,e,r){return t&&t.length&&e&&e.length?Wn(t,e,co(r,2)):t},Br.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Wn(t,e,r,n):t},Br.pullAt=Jo,Br.range=pl,Br.rangeRight=dl,Br.rearg=Ba,Br.reject=function(t,e){return(Va(t)?Me:vn)(t,Ia(co(e,3)))},Br.remove=function(t,e){var r=[];if(!t||!t.length)return r;var n=-1,i=[],o=t.length;for(e=co(e,3);++n<o;){var a=t[n];e(a,n,t)&&(r.push(a),i.push(n))}return Zn(t,i),r},Br.rest=function(t,e){if("function"!=typeof t)throw new Mt(n);return Gn(t,e=e===r?e:dc(e))},Br.reverse=Qo,Br.sampleSize=function(t,e,n){return e=(n?bo(t,e,n):e===r)?1:dc(e),(Va(t)?Xr:Kn)(t,e)},Br.set=function(t,e,r){return null==t?t:Jn(t,e,r)},Br.setWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:Jn(t,e,n,i)},Br.shuffle=function(t){return(Va(t)?Kr:ei)(t)},Br.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&bo(t,e,n)?(e=0,n=i):(e=null==e?0:dc(e),n=n===r?i:dc(n)),ri(t,e,n)):[]},Br.sortBy=_a,Br.sortedUniq=function(t){return t&&t.length?ai(t):[]},Br.sortedUniqBy=function(t,e){return t&&t.length?ai(t,co(e,2)):[]},Br.split=function(t,e,n){return n&&"number"!=typeof n&&bo(t,e,n)&&(e=n=r),(n=n===r?p:n>>>0)?(t=gc(t))&&("string"==typeof e||null!=e&&!ic(e))&&!(e=li(e))&&nr(t)?wi(sr(t),0,n):t.split(e,n):[]},Br.spread=function(t,e){if("function"!=typeof t)throw new Mt(n);return e=null==e?0:yr(dc(e),0),Gn((function(r){var n=r[e],i=wi(r,0,e);return n&&Te(i,n),Se(t,this,i)}))},Br.tail=function(t){var e=null==t?0:t.length;return e?ri(t,1,e):[]},Br.take=function(t,e,n){return t&&t.length?ri(t,0,(e=n||e===r?1:dc(e))<0?0:e):[]},Br.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?ri(t,(e=i-(e=n||e===r?1:dc(e)))<0?0:e,i):[]},Br.takeRightWhile=function(t,e){return t&&t.length?pi(t,co(e,3),!1,!0):[]},Br.takeWhile=function(t,e){return t&&t.length?pi(t,co(e,3)):[]},Br.tap=function(t,e){return e(t),t},Br.throttle=function(t,e,r){var i=!0,o=!0;if("function"!=typeof t)throw new Mt(n);return Qa(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),Ca(t,e,{leading:i,maxWait:e,trailing:o})},Br.thru=pa,Br.toArray=fc,Br.toPairs=Lc,Br.toPairsIn=Bc,Br.toPath=function(t){return Va(t)?Ee(t,Ro):cc(t)?[t]:Mi(No(gc(t)))},Br.toPlainObject=yc,Br.transform=function(t,e,r){var n=Va(t),i=n||qa(t)||lc(t);if(e=co(e,4),null==r){var o=t&&t.constructor;r=i?n?new o:[]:Qa(t)&&Xa(o)?zr(Wt(t)):{}}return(i?je:bn)(t,(function(t,n,i){return e(r,t,n,i)})),r},Br.unary=function(t){return Pa(t,1)},Br.union=ta,Br.unionBy=ea,Br.unionWith=ra,Br.uniq=function(t){return t&&t.length?ui(t):[]},Br.uniqBy=function(t,e){return t&&t.length?ui(t,co(e,2)):[]},Br.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?ui(t,r,e):[]},Br.unset=function(t,e){return null==t||si(t,e)},Br.unzip=na,Br.unzipWith=ia,Br.update=function(t,e,r){return null==t?t:fi(t,e,gi(r))},Br.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:fi(t,e,gi(n),i)},Br.values=zc,Br.valuesIn=function(t){return null==t?[]:Xe(t,Ec(t))},Br.without=oa,Br.words=Xc,Br.wrap=function(t,e){return Ra(gi(e),t)},Br.xor=aa,Br.xorBy=ca,Br.xorWith=la,Br.zip=ua,Br.zipObject=function(t,e){return vi(t||[],e||[],Qr)},Br.zipObjectDeep=function(t,e){return vi(t||[],e||[],Jn)},Br.zipWith=sa,Br.entries=Lc,Br.entriesIn=Bc,Br.extend=bc,Br.extendWith=wc,al(Br,Br),Br.add=gl,Br.attempt=Kc,Br.camelCase=$c,Br.capitalize=Hc,Br.ceil=ml,Br.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=vc(n))==n?n:0),e!==r&&(e=(e=vc(e))==e?e:0),an(vc(t),e,n)},Br.clone=function(t){return cn(t,4)},Br.cloneDeep=function(t){return cn(t,5)},Br.cloneDeepWith=function(t,e){return cn(t,5,e="function"==typeof e?e:r)},Br.cloneWith=function(t,e){return cn(t,4,e="function"==typeof e?e:r)},Br.conformsTo=function(t,e){return null==e||ln(t,e,Cc(e))},Br.deburr=Fc,Br.defaultTo=function(t,e){return null==t||t!=t?e:t},Br.divide=bl,Br.endsWith=function(t,e,n){t=gc(t),e=li(e);var i=t.length,o=n=n===r?i:an(dc(n),0,i);return(n-=e.length)>=0&&t.slice(n,o)==e},Br.eq=za,Br.escape=function(t){return(t=gc(t))&&q.test(t)?t.replace(W,er):t},Br.escapeRegExp=function(t){return(t=gc(t))&&et.test(t)?t.replace(tt,"\\$&"):t},Br.every=function(t,e,n){var i=Va(t)?Ae:dn;return n&&bo(t,e,n)&&(e=r),i(t,co(e,3))},Br.find=va,Br.findIndex=Fo,Br.findKey=function(t,e){return Le(t,co(e,3),bn)},Br.findLast=ya,Br.findLastIndex=Vo,Br.findLastKey=function(t,e){return Le(t,co(e,3),wn)},Br.floor=wl,Br.forEach=ga,Br.forEachRight=ma,Br.forIn=function(t,e){return null==t?t:gn(t,co(e,3),Ec)},Br.forInRight=function(t,e){return null==t?t:mn(t,co(e,3),Ec)},Br.forOwn=function(t,e){return t&&bn(t,co(e,3))},Br.forOwnRight=function(t,e){return t&&wn(t,co(e,3))},Br.get=jc,Br.gt=$a,Br.gte=Ha,Br.has=function(t,e){return null!=t&&vo(t,e,Pn)},Br.hasIn=Pc,Br.head=Wo,Br.identity=rl,Br.includes=function(t,e,r,n){t=Wa(t)?t:zc(t),r=r&&!n?dc(r):0;var i=t.length;return r<0&&(r=yr(i+r,0)),ac(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&ze(t,e,r)>-1},Br.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:dc(r);return i<0&&(i=yr(n+i,0)),ze(t,e,i)},Br.inRange=function(t,e,n){return e=pc(e),n===r?(n=e,e=0):n=pc(n),function(t,e,r){return t>=gr(e,r)&&t<yr(e,r)}(t=vc(t),e,n)},Br.invoke=kc,Br.isArguments=Fa,Br.isArray=Va,Br.isArrayBuffer=Ua,Br.isArrayLike=Wa,Br.isArrayLikeObject=Za,Br.isBoolean=function(t){return!0===t||!1===t||tc(t)&&_n(t)==y},Br.isBuffer=qa,Br.isDate=Ya,Br.isElement=function(t){return tc(t)&&1===t.nodeType&&!nc(t)},Br.isEmpty=function(t){if(null==t)return!0;if(Wa(t)&&(Va(t)||"string"==typeof t||"function"==typeof t.splice||qa(t)||lc(t)||Fa(t)))return!t.length;var e=ho(t);if(e==x||e==P)return!t.size;if(So(t))return!Nn(t).length;for(var r in t)if(It.call(t,r))return!1;return!0},Br.isEqual=function(t,e){return En(t,e)},Br.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:r)?n(t,e):r;return i===r?En(t,e,r,n):!!i},Br.isError=Ga,Br.isFinite=function(t){return"number"==typeof t&&Ue(t)},Br.isFunction=Xa,Br.isInteger=Ka,Br.isLength=Ja,Br.isMap=ec,Br.isMatch=function(t,e){return t===e||Tn(t,e,uo(e))},Br.isMatchWith=function(t,e,n){return n="function"==typeof n?n:r,Tn(t,e,uo(e),n)},Br.isNaN=function(t){return rc(t)&&t!=+t},Br.isNative=function(t){if(Oo(t))throw new Ot("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dn(t)},Br.isNil=function(t){return null==t},Br.isNull=function(t){return null===t},Br.isNumber=rc,Br.isObject=Qa,Br.isObjectLike=tc,Br.isPlainObject=nc,Br.isRegExp=ic,Br.isSafeInteger=function(t){return Ka(t)&&t>=-9007199254740991&&t<=s},Br.isSet=oc,Br.isString=ac,Br.isSymbol=cc,Br.isTypedArray=lc,Br.isUndefined=function(t){return t===r},Br.isWeakMap=function(t){return tc(t)&&ho(t)==k},Br.isWeakSet=function(t){return tc(t)&&"[object WeakSet]"==_n(t)},Br.join=function(t,e){return null==t?"":hr.call(t,e)},Br.kebabCase=Vc,Br.last=Go,Br.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=dc(n))<0?yr(i+o,0):gr(o,i-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,o):Be(t,He,o,!0)},Br.lowerCase=Uc,Br.lowerFirst=Wc,Br.lt=uc,Br.lte=sc,Br.max=function(t){return t&&t.length?hn(t,rl,jn):r},Br.maxBy=function(t,e){return t&&t.length?hn(t,co(e,2),jn):r},Br.mean=function(t){return Fe(t,rl)},Br.meanBy=function(t,e){return Fe(t,co(e,2))},Br.min=function(t){return t&&t.length?hn(t,rl,Ln):r},Br.minBy=function(t,e){return t&&t.length?hn(t,co(e,2),Ln):r},Br.stubArray=hl,Br.stubFalse=vl,Br.stubObject=function(){return{}},Br.stubString=function(){return""},Br.stubTrue=function(){return!0},Br.multiply=xl,Br.nth=function(t,e){return t&&t.length?Fn(t,dc(e)):r},Br.noConflict=function(){return fe._===this&&(fe._=zt),this},Br.noop=cl,Br.now=ja,Br.pad=function(t,e,r){t=gc(t);var n=(e=dc(e))?ur(t):0;if(!e||n>=e)return t;var i=(e-n)/2;return Vi(ve(i),r)+t+Vi(de(i),r)},Br.padEnd=function(t,e,r){t=gc(t);var n=(e=dc(e))?ur(t):0;return e&&n<e?t+Vi(e-n,r):t},Br.padStart=function(t,e,r){t=gc(t);var n=(e=dc(e))?ur(t):0;return e&&n<e?Vi(e-n,r)+t:t},Br.parseInt=function(t,e,r){return r||null==e?e=0:e&&(e=+e),br(gc(t).replace(rt,""),e||0)},Br.random=function(t,e,n){if(n&&"boolean"!=typeof n&&bo(t,e,n)&&(e=n=r),n===r&&("boolean"==typeof e?(n=e,e=r):"boolean"==typeof t&&(n=t,t=r)),t===r&&e===r?(t=0,e=1):(t=pc(t),e===r?(e=t,t=0):e=pc(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var o=wr();return gr(t+o*(e-t+ce("1e-"+((o+"").length-1))),e)}return qn(t,e)},Br.reduce=function(t,e,r){var n=Va(t)?De:We,i=arguments.length<3;return n(t,co(e,4),r,i,fn)},Br.reduceRight=function(t,e,r){var n=Va(t)?Ie:We,i=arguments.length<3;return n(t,co(e,4),r,i,pn)},Br.repeat=function(t,e,n){return e=(n?bo(t,e,n):e===r)?1:dc(e),Yn(gc(t),e)},Br.replace=function(){var t=arguments,e=gc(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Br.result=function(t,e,n){var i=-1,o=(e=mi(e,t)).length;for(o||(o=1,t=r);++i<o;){var a=null==t?r:t[Ro(e[i])];a===r&&(i=o,a=n),t=Xa(a)?a.call(t):a}return t},Br.round=Ol,Br.runInContext=t,Br.sample=function(t){return(Va(t)?Gr:Xn)(t)},Br.size=function(t){if(null==t)return 0;if(Wa(t))return ac(t)?ur(t):t.length;var e=ho(t);return e==x||e==P?t.size:Nn(t).length},Br.snakeCase=Zc,Br.some=function(t,e,n){var i=Va(t)?Ne:ni;return n&&bo(t,e,n)&&(e=r),i(t,co(e,3))},Br.sortedIndex=function(t,e){return ii(t,e)},Br.sortedIndexBy=function(t,e,r){return oi(t,e,co(r,2))},Br.sortedIndexOf=function(t,e){var r=null==t?0:t.length;if(r){var n=ii(t,e);if(n<r&&za(t[n],e))return n}return-1},Br.sortedLastIndex=function(t,e){return ii(t,e,!0)},Br.sortedLastIndexBy=function(t,e,r){return oi(t,e,co(r,2),!0)},Br.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var r=ii(t,e,!0)-1;if(za(t[r],e))return r}return-1},Br.startCase=qc,Br.startsWith=function(t,e,r){return t=gc(t),r=null==r?0:an(dc(r),0,t.length),e=li(e),t.slice(r,r+e.length)==e},Br.subtract=Sl,Br.sum=function(t){return t&&t.length?Ze(t,rl):0},Br.sumBy=function(t,e){return t&&t.length?Ze(t,co(e,2)):0},Br.template=function(t,e,n){var i=Br.templateSettings;n&&bo(t,e,n)&&(e=r),t=gc(t),e=wc({},e,i,Ki);var o,a,c=wc({},e.imports,i.imports,Ki),l=Cc(c),u=Xe(c,l),s=0,f=e.interpolate||mt,p="__p += '",d=Pt((e.escape||mt).source+"|"+f.source+"|"+(f===X?st:mt).source+"|"+(e.evaluate||mt).source+"|$","g"),h="//# sourceURL="+(It.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ne+"]")+"\n";t.replace(d,(function(e,r,n,i,c,l){return n||(n=i),p+=t.slice(s,l).replace(bt,rr),r&&(o=!0,p+="' +\n__e("+r+") +\n'"),c&&(a=!0,p+="';\n"+c+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),s=l+e.length,e})),p+="';\n";var v=It.call(e,"variable")&&e.variable;if(v){if(lt.test(v))throw new Ot("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(H,""):p).replace(F,"$1").replace(V,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Kc((function(){return St(l,h+"return "+p).apply(r,u)}));if(y.source=p,Ga(y))throw y;return y},Br.times=function(t,e){if((t=dc(t))<1||t>s)return[];var r=p,n=gr(t,p);e=co(e),t-=p;for(var i=qe(n,e);++r<t;)e(r);return i},Br.toFinite=pc,Br.toInteger=dc,Br.toLength=hc,Br.toLower=function(t){return gc(t).toLowerCase()},Br.toNumber=vc,Br.toSafeInteger=function(t){return t?an(dc(t),-9007199254740991,s):0===t?t:0},Br.toString=gc,Br.toUpper=function(t){return gc(t).toUpperCase()},Br.trim=function(t,e,n){if((t=gc(t))&&(n||e===r))return Ye(t);if(!t||!(e=li(e)))return t;var i=sr(t),o=sr(e);return wi(i,Je(i,o),Qe(i,o)+1).join("")},Br.trimEnd=function(t,e,n){if((t=gc(t))&&(n||e===r))return t.slice(0,fr(t)+1);if(!t||!(e=li(e)))return t;var i=sr(t);return wi(i,0,Qe(i,sr(e))+1).join("")},Br.trimStart=function(t,e,n){if((t=gc(t))&&(n||e===r))return t.replace(rt,"");if(!t||!(e=li(e)))return t;var i=sr(t);return wi(i,Je(i,sr(e))).join("")},Br.truncate=function(t,e){var n=30,i="...";if(Qa(e)){var o="separator"in e?e.separator:o;n="length"in e?dc(e.length):n,i="omission"in e?li(e.omission):i}var a=(t=gc(t)).length;if(nr(t)){var c=sr(t);a=c.length}if(n>=a)return t;var l=n-ur(i);if(l<1)return i;var u=c?wi(c,0,l).join(""):t.slice(0,l);if(o===r)return u+i;if(c&&(l+=u.length-l),ic(o)){if(t.slice(l).search(o)){var s,f=u;for(o.global||(o=Pt(o.source,gc(ft.exec(o))+"g")),o.lastIndex=0;s=o.exec(f);)var p=s.index;u=u.slice(0,p===r?l:p)}}else if(t.indexOf(li(o),l)!=l){var d=u.lastIndexOf(o);d>-1&&(u=u.slice(0,d))}return u+i},Br.unescape=function(t){return(t=gc(t))&&Z.test(t)?t.replace(U,pr):t},Br.uniqueId=function(t){var e=++Nt;return gc(t)+e},Br.upperCase=Yc,Br.upperFirst=Gc,Br.each=ga,Br.eachRight=ma,Br.first=Wo,al(Br,(yl={},bn(Br,(function(t,e){It.call(Br.prototype,e)||(yl[e]=t)})),yl),{chain:!1}),Br.VERSION="4.17.21",je(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Br[t].placeholder=Br})),je(["drop","take"],(function(t,e){Fr.prototype[t]=function(n){n=n===r?1:yr(dc(n),0);var i=this.__filtered__&&!e?new Fr(this):this.clone();return i.__filtered__?i.__takeCount__=gr(n,i.__takeCount__):i.__views__.push({size:gr(n,p),type:t+(i.__dir__<0?"Right":"")}),i},Fr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),je(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;Fr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:co(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),je(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Fr.prototype[t]=function(){return this[r](1).value()[0]}})),je(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Fr.prototype[t]=function(){return this.__filtered__?new Fr(this):this[r](1)}})),Fr.prototype.compact=function(){return this.filter(rl)},Fr.prototype.find=function(t){return this.filter(t).head()},Fr.prototype.findLast=function(t){return this.reverse().find(t)},Fr.prototype.invokeMap=Gn((function(t,e){return"function"==typeof t?new Fr(this):this.map((function(r){return kn(r,t,e)}))})),Fr.prototype.reject=function(t){return this.filter(Ia(co(t)))},Fr.prototype.slice=function(t,e){t=dc(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Fr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=dc(e))<0?n.dropRight(-e):n.take(e-t)),n)},Fr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Fr.prototype.toArray=function(){return this.take(p)},bn(Fr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=Br[i?"take"+("last"==e?"Right":""):e],a=i||/^find/.test(e);o&&(Br.prototype[e]=function(){var e=this.__wrapped__,c=i?[1]:arguments,l=e instanceof Fr,u=c[0],s=l||Va(e),f=function(t){var e=o.apply(Br,Te([t],c));return i&&p?e[0]:e};s&&n&&"function"==typeof u&&1!=u.length&&(l=s=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,v=l&&!d;if(!a&&s){e=v?e:new Fr(this);var y=t.apply(e,c);return y.__actions__.push({func:pa,args:[f],thisArg:r}),new Hr(y,p)}return h&&v?t.apply(this,c):(y=this.thru(f),h?i?y.value()[0]:y.value():y)})})),je(["pop","push","shift","sort","splice","unshift"],(function(t){var e=kt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Br.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(Va(i)?i:[],t)}return this[r]((function(r){return e.apply(Va(r)?r:[],t)}))}})),bn(Fr.prototype,(function(t,e){var r=Br[e];if(r){var n=r.name+"";It.call(kr,n)||(kr[n]=[]),kr[n].push({name:e,func:r})}})),kr[zi(r,2).name]=[{name:"wrapper",func:r}],Fr.prototype.clone=function(){var t=new Fr(this.__wrapped__);return t.__actions__=Mi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Mi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Mi(this.__views__),t},Fr.prototype.reverse=function(){if(this.__filtered__){var t=new Fr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Fr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Va(t),n=e<0,i=r?t.length:0,o=function(t,e,r){for(var n=-1,i=r.length;++n<i;){var o=r[n],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=gr(e,t+a);break;case"takeRight":t=yr(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,c=o.end,l=c-a,u=n?c:a-1,s=this.__iteratees__,f=s.length,p=0,d=gr(l,this.__takeCount__);if(!r||!n&&i==l&&d==l)return di(t,this.__actions__);var h=[];t:for(;l--&&p<d;){for(var v=-1,y=t[u+=e];++v<f;){var g=s[v],m=g.iteratee,b=g.type,w=m(y);if(2==b)y=w;else if(!w){if(1==b)continue t;break t}}h[p++]=y}return h},Br.prototype.at=da,Br.prototype.chain=function(){return fa(this)},Br.prototype.commit=function(){return new Hr(this.value(),this.__chain__)},Br.prototype.next=function(){this.__values__===r&&(this.__values__=fc(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},Br.prototype.plant=function(t){for(var e,n=this;n instanceof $r;){var i=Bo(n);i.__index__=0,i.__values__=r,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e},Br.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Fr){var e=t;return this.__actions__.length&&(e=new Fr(this)),(e=e.reverse()).__actions__.push({func:pa,args:[Qo],thisArg:r}),new Hr(e,this.__chain__)}return this.thru(Qo)},Br.prototype.toJSON=Br.prototype.valueOf=Br.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},Br.prototype.first=Br.prototype.head,Jt&&(Br.prototype[Jt]=function(){return this}),Br}();de?((de.exports=dr)._=dr,pe._=dr):fe._=dr}).call(LI)}(RI,RI.exports)),RI.exports);function zI(t){const e=vt(t);e.current=t,bt((()=>()=>{e.current()}),[])}function $I(t,e=500,r){const n=vt(null);zI((()=>{n.current&&n.current.cancel()}));const i=wt((()=>{const i=BI.debounce(t,e,r),o=(...t)=>i(...t);return o.cancel=()=>{i.cancel()},o.isPending=()=>!!n.current,o.flush=()=>i.flush(),o}),[t,e,r]);return bt((()=>{n.current=BI.debounce(t,e,r)}),[t,e,r]),i}function HI(t,e,r){const n=r?.equalityFn??((t,e)=>t===e),i=t instanceof Function?t():t,[o,a]=gt(i),c=vt(i),l=$I(a,e,r);return n(c.current,i)||(l(i),c.current=i),[o,l]}export{UT as CfAreaChart,WT as CfBreakpointDebugger,ZT as CfButtonGroup,qT as CfButtonGroupButton,YT as CfCard,GT as CfCarousel,KT as CfCheckbox,eD as CfDevConsole,QT as CfDevConsoleActions,JT as CfDevConsoleButton,tD as CfDevConsoleDataGrid,rD as CfDevConsoleFloatingButton,nD as CfDevConsoleLinks,iD as CfDevConsoleSystemStatus,oD as CfForm,bD as CfInput,vI as CfInputArray,yI as CfLineChart,gI as CfModal,mI as CfNavLink,_I as CfOpenSearchPagination,jI as CfPagination,PI as CfPrettyWrap,AI as CfSelect,kI as CfSpinner,TI as CfStatCard,CI as CfTag,EI as CfToast,DI as CfTooltip,Le as IconAave,kt as IconAlert,Be as IconAlgo,Ct as IconArrowDown,Et as IconArrowUp,ze as IconAvax,Tt as IconBank,Dt as IconBarChart,$e as IconBch,It as IconBookCheck,He as IconBtc,Nt as IconCalendar,Rt as IconCaretDown,Lt as IconCaretLeft,Bt as IconCaretRight,zt as IconCaretUp,$t as IconCent,Ht as IconCheck,Ft as IconChecking,Vt as IconCircleCheck,Ut as IconClose,Wt as IconConnect,Zt as IconCopy,qt as IconDiamonds,Fe as IconDoge,Yt as IconDollar,Gt as IconDollarBill,Ve as IconDot,Xt as IconDownload,Kt as IconEdit,Jt as IconEnter,Qt as IconEnterInverted,Ue as IconEth,te as IconExchange,Re as IconExternalLink,ee as IconFaq,We as IconFil,re as IconFilter,ne as IconGlossary,ie as IconHelp,oe as IconHistory,ae as IconHome,ce as IconIndicatorDown,le as IconIndicatorUp,ue as IconInfo,se as IconLearn,Ze as IconLink,fe as IconLock,qe as IconLtc,pe as IconMail,Ye as IconMatic,de as IconMenu,he as IconMinus,Ge as IconMkr,ve as IconMore,Xe as IconNear,ye as IconNotification,ge as IconOverview,me as IconPercent,be as IconPieChart,we as IconPlus,xe as IconRefresh,Oe as IconReports,Se as IconReservesSuccess,_e as IconReservesWarning,je as IconSearch,Pe as IconSettings,Ae as IconSettlement,Ke as IconShib,Me as IconSignIn,ke as IconSignOut,Je as IconSol,Ce as IconSort,Ee as IconSpinner,Te as IconSupport,De as IconTrash,Ie as IconUpload,Qe as IconUsdc,tr as IconUsdt,Ne as IconUser,er as IconXlm,rr as IconXrp,Sr as aggregateAmounts,$n as coreTheme,on as dateFormats,Lr as dateToTimestamp,Br as formatPercentage,Hn as formatPhoneNumber,Zr as formatUsd,qr as getDelta,Gr as isIframe,Xr as isSecurity,nn as layoutMinWidth,Jr as sampleFromEnd,Qr as splitOnCapitals,tn as uiColors,rn as usdToNumber,II as useCfBreakpoint,$I as useDebounceCallback,HI as useDebounceValue,zI as useUnmount,an as utcDateToLocal};
|
|
42
|
+
*/var BI=(NI||(NI=1,function(t,e){(function(){var r,n="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",a=32,c=128,l=256,u=1/0,s=9007199254740991,f=NaN,p=4294967295,d=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",l]],h="[object Arguments]",v="[object Array]",y="[object Boolean]",g="[object Date]",m="[object Error]",b="[object Function]",w="[object GeneratorFunction]",x="[object Map]",O="[object Number]",S="[object Object]",_="[object Promise]",j="[object RegExp]",P="[object Set]",A="[object String]",M="[object Symbol]",k="[object WeakMap]",C="[object ArrayBuffer]",E="[object DataView]",T="[object Float32Array]",D="[object Float64Array]",I="[object Int8Array]",N="[object Int16Array]",R="[object Int32Array]",L="[object Uint8Array]",B="[object Uint8ClampedArray]",z="[object Uint16Array]",$="[object Uint32Array]",H=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,Z=RegExp(U.source),q=RegExp(W.source),Y=/<%-([\s\S]+?)%>/g,G=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tt=/[\\^$.*+?()[\]{}|]/g,et=RegExp(tt.source),rt=/^\s+/,nt=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ct=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,ut=/\\(\\)?/g,st=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,pt=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,ht=/^\[object .+?Constructor\]$/,vt=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",xt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ot="\\u2700-\\u27bf",St="a-z\\xdf-\\xf6\\xf8-\\xff",_t="A-Z\\xc0-\\xd6\\xd8-\\xde",jt="\\ufe0e\\ufe0f",Pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",At="['’]",Mt="["+wt+"]",kt="["+Pt+"]",Ct="["+xt+"]",Et="\\d+",Tt="["+Ot+"]",Dt="["+St+"]",It="[^"+wt+Pt+Et+Ot+St+_t+"]",Nt="\\ud83c[\\udffb-\\udfff]",Rt="[^"+wt+"]",Lt="(?:\\ud83c[\\udde6-\\uddff]){2}",Bt="[\\ud800-\\udbff][\\udc00-\\udfff]",zt="["+_t+"]",$t="\\u200d",Ht="(?:"+Dt+"|"+It+")",Ft="(?:"+zt+"|"+It+")",Vt="(?:['’](?:d|ll|m|re|s|t|ve))?",Ut="(?:['’](?:D|LL|M|RE|S|T|VE))?",Wt="(?:"+Ct+"|"+Nt+")?",Zt="["+jt+"]?",qt=Zt+Wt+"(?:"+$t+"(?:"+[Rt,Lt,Bt].join("|")+")"+Zt+Wt+")*",Yt="(?:"+[Tt,Lt,Bt].join("|")+")"+qt,Gt="(?:"+[Rt+Ct+"?",Ct,Lt,Bt,Mt].join("|")+")",Xt=RegExp(At,"g"),Kt=RegExp(Ct,"g"),Jt=RegExp(Nt+"(?="+Nt+")|"+Gt+qt,"g"),Qt=RegExp([zt+"?"+Dt+"+"+Vt+"(?="+[kt,zt,"$"].join("|")+")",Ft+"+"+Ut+"(?="+[kt,zt+Ht,"$"].join("|")+")",zt+"?"+Ht+"+"+Vt,zt+"+"+Ut,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Et,Yt].join("|"),"g"),te=RegExp("["+$t+wt+xt+jt+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ne=-1,ie={};ie[T]=ie[D]=ie[I]=ie[N]=ie[R]=ie[L]=ie[B]=ie[z]=ie[$]=!0,ie[h]=ie[v]=ie[C]=ie[y]=ie[E]=ie[g]=ie[m]=ie[b]=ie[x]=ie[O]=ie[S]=ie[j]=ie[P]=ie[A]=ie[k]=!1;var oe={};oe[h]=oe[v]=oe[C]=oe[E]=oe[y]=oe[g]=oe[T]=oe[D]=oe[I]=oe[N]=oe[R]=oe[x]=oe[O]=oe[S]=oe[j]=oe[P]=oe[A]=oe[M]=oe[L]=oe[B]=oe[z]=oe[$]=!0,oe[m]=oe[b]=oe[k]=!1;var ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ce=parseFloat,le=parseInt,ue="object"==typeof _r&&_r&&_r.Object===Object&&_r,se="object"==typeof self&&self&&self.Object===Object&&self,fe=ue||se||Function("return this")(),pe=e&&!e.nodeType&&e,de=pe&&t&&!t.nodeType&&t,he=de&&de.exports===pe,ve=he&&ue.process,ye=function(){try{var t=de&&de.require&&de.require("util").types;return t||ve&&ve.binding&&ve.binding("util")}catch(t){}}(),ge=ye&&ye.isArrayBuffer,me=ye&&ye.isDate,be=ye&&ye.isMap,we=ye&&ye.isRegExp,xe=ye&&ye.isSet,Oe=ye&&ye.isTypedArray;function Se(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function _e(t,e,r,n){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(n,a,r(a),t)}return n}function je(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}function Pe(t,e){for(var r=null==t?0:t.length;r--&&!1!==e(t[r],r,t););return t}function Ae(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}function Me(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o}function ke(t,e){return!(null==t||!t.length)&&ze(t,e,0)>-1}function Ce(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1}function Ee(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}function Te(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}function De(t,e,r,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(r=t[++i]);++i<o;)r=e(r,t[i],i,t);return r}function Ie(t,e,r,n){var i=null==t?0:t.length;for(n&&i&&(r=t[--i]);i--;)r=e(r,t[i],i,t);return r}function Ne(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var Re=Ve("length");function Le(t,e,r){var n;return r(t,(function(t,r,i){if(e(t,r,i))return n=r,!1})),n}function Be(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function ze(t,e,r){return e==e?function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}(t,e,r):Be(t,He,r)}function $e(t,e,r,n){for(var i=r-1,o=t.length;++i<o;)if(n(t[i],e))return i;return-1}function He(t){return t!=t}function Fe(t,e){var r=null==t?0:t.length;return r?Ze(t,e)/r:f}function Ve(t){return function(e){return null==e?r:e[t]}}function Ue(t){return function(e){return null==t?r:t[e]}}function We(t,e,r,n,i){return i(t,(function(t,i,o){r=n?(n=!1,t):e(r,t,i,o)})),r}function Ze(t,e){for(var n,i=-1,o=t.length;++i<o;){var a=e(t[i]);a!==r&&(n=n===r?a:n+a)}return n}function qe(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}function Ye(t){return t?t.slice(0,fr(t)+1).replace(rt,""):t}function Ge(t){return function(e){return t(e)}}function Xe(t,e){return Ee(e,(function(e){return t[e]}))}function Ke(t,e){return t.has(e)}function Je(t,e){for(var r=-1,n=t.length;++r<n&&ze(e,t[r],0)>-1;);return r}function Qe(t,e){for(var r=t.length;r--&&ze(e,t[r],0)>-1;);return r}var tr=Ue({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),er=Ue({"&":"&","<":"<",">":">",'"':""","'":"'"});function rr(t){return"\\"+ae[t]}function nr(t){return te.test(t)}function ir(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function or(t,e){return function(r){return t(e(r))}}function ar(t,e){for(var r=-1,n=t.length,i=0,a=[];++r<n;){var c=t[r];c!==e&&c!==o||(t[r]=o,a[i++]=r)}return a}function cr(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}function lr(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=[t,t]})),r}function ur(t){return nr(t)?function(t){for(var e=Jt.lastIndex=0;Jt.test(t);)++e;return e}(t):Re(t)}function sr(t){return nr(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.split("")}(t)}function fr(t){for(var e=t.length;e--&&nt.test(t.charAt(e)););return e}var pr=Ue({"&":"&","<":"<",">":">",""":'"',"'":"'"}),dr=function t(e){var nt,wt=(e=null==e?fe:dr.defaults(fe.Object(),e,dr.pick(fe,re))).Array,xt=e.Date,Ot=e.Error,St=e.Function,_t=e.Math,jt=e.Object,Pt=e.RegExp,At=e.String,Mt=e.TypeError,kt=wt.prototype,Ct=St.prototype,Et=jt.prototype,Tt=e["__core-js_shared__"],Dt=Ct.toString,It=Et.hasOwnProperty,Nt=0,Rt=(nt=/[^.]+$/.exec(Tt&&Tt.keys&&Tt.keys.IE_PROTO||""))?"Symbol(src)_1."+nt:"",Lt=Et.toString,Bt=Dt.call(jt),zt=fe._,$t=Pt("^"+Dt.call(It).replace(tt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=he?e.Buffer:r,Ft=e.Symbol,Vt=e.Uint8Array,Ut=Ht?Ht.allocUnsafe:r,Wt=or(jt.getPrototypeOf,jt),Zt=jt.create,qt=Et.propertyIsEnumerable,Yt=kt.splice,Gt=Ft?Ft.isConcatSpreadable:r,Jt=Ft?Ft.iterator:r,te=Ft?Ft.toStringTag:r,ae=function(){try{var t=so(jt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ue=e.clearTimeout!==fe.clearTimeout&&e.clearTimeout,se=xt&&xt.now!==fe.Date.now&&xt.now,pe=e.setTimeout!==fe.setTimeout&&e.setTimeout,de=_t.ceil,ve=_t.floor,ye=jt.getOwnPropertySymbols,Re=Ht?Ht.isBuffer:r,Ue=e.isFinite,hr=kt.join,vr=or(jt.keys,jt),yr=_t.max,gr=_t.min,mr=xt.now,br=e.parseInt,wr=_t.random,xr=kt.reverse,Or=so(e,"DataView"),Sr=so(e,"Map"),_r=so(e,"Promise"),jr=so(e,"Set"),Pr=so(e,"WeakMap"),Ar=so(jt,"create"),Mr=Pr&&new Pr,kr={},Cr=Lo(Or),Er=Lo(Sr),Tr=Lo(_r),Dr=Lo(jr),Ir=Lo(Pr),Nr=Ft?Ft.prototype:r,Rr=Nr?Nr.valueOf:r,Lr=Nr?Nr.toString:r;function Br(t){if(tc(t)&&!Va(t)&&!(t instanceof Fr)){if(t instanceof Hr)return t;if(It.call(t,"__wrapped__"))return Bo(t)}return new Hr(t)}var zr=function(){function t(){}return function(e){if(!Qa(e))return{};if(Zt)return Zt(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function $r(){}function Hr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function Fr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Vr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Ur(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Wr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Zr(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new Wr;++e<r;)this.add(t[e])}function qr(t){var e=this.__data__=new Ur(t);this.size=e.size}function Yr(t,e){var r=Va(t),n=!r&&Fa(t),i=!r&&!n&&qa(t),o=!r&&!n&&!i&&lc(t),a=r||n||i||o,c=a?qe(t.length,At):[],l=c.length;for(var u in t)!e&&!It.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||mo(u,l))||c.push(u);return c}function Gr(t){var e=t.length;return e?t[qn(0,e-1)]:r}function Xr(t,e){return Io(Mi(t),an(e,0,t.length))}function Kr(t){return Io(Mi(t))}function Jr(t,e,n){(n!==r&&!za(t[e],n)||n===r&&!(e in t))&&nn(t,e,n)}function Qr(t,e,n){var i=t[e];It.call(t,e)&&za(i,n)&&(n!==r||e in t)||nn(t,e,n)}function tn(t,e){for(var r=t.length;r--;)if(za(t[r][0],e))return r;return-1}function en(t,e,r,n){return fn(t,(function(t,i,o){e(n,t,r(t),o)})),n}function rn(t,e){return t&&ki(e,Cc(e),t)}function nn(t,e,r){"__proto__"==e&&ae?ae(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function on(t,e){for(var n=-1,i=e.length,o=wt(i),a=null==t;++n<i;)o[n]=a?r:jc(t,e[n]);return o}function an(t,e,n){return t==t&&(n!==r&&(t=t<=n?t:n),e!==r&&(t=t>=e?t:e)),t}function cn(t,e,n,i,o,a){var c,l=1&e,u=2&e,s=4&e;if(n&&(c=o?n(t,i,o,a):n(t)),c!==r)return c;if(!Qa(t))return t;var f=Va(t);if(f){if(c=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&It.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!l)return Mi(t,c)}else{var p=ho(t),d=p==b||p==w;if(qa(t))return Oi(t,l);if(p==S||p==h||d&&!o){if(c=u||d?{}:yo(t),!l)return u?function(t,e){return ki(t,po(t),e)}(t,function(t,e){return t&&ki(e,Ec(e),t)}(c,t)):function(t,e){return ki(t,fo(t),e)}(t,rn(c,t))}else{if(!oe[p])return o?t:{};c=function(t,e,r){var n,i=t.constructor;switch(e){case C:return Si(t);case y:case g:return new i(+t);case E:return function(t,e){var r=e?Si(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case T:case D:case I:case N:case R:case L:case B:case z:case $:return _i(t,r);case x:return new i;case O:case A:return new i(t);case j:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case P:return new i;case M:return n=t,Rr?jt(Rr.call(n)):{}}}(t,p,l)}}a||(a=new qr);var v=a.get(t);if(v)return v;a.set(t,c),oc(t)?t.forEach((function(r){c.add(cn(r,e,n,r,t,a))})):ec(t)&&t.forEach((function(r,i){c.set(i,cn(r,e,n,i,t,a))}));var m=f?r:(s?u?no:ro:u?Ec:Cc)(t);return je(m||t,(function(r,i){m&&(r=t[i=r]),Qr(c,i,cn(r,e,n,i,t,a))})),c}function ln(t,e,n){var i=n.length;if(null==t)return!i;for(t=jt(t);i--;){var o=n[i],a=e[o],c=t[o];if(c===r&&!(o in t)||!a(c))return!1}return!0}function un(t,e,i){if("function"!=typeof t)throw new Mt(n);return Co((function(){t.apply(r,i)}),e)}function sn(t,e,r,n){var i=-1,o=ke,a=!0,c=t.length,l=[],u=e.length;if(!c)return l;r&&(e=Ee(e,Ge(r))),n?(o=Ce,a=!1):e.length>=200&&(o=Ke,a=!1,e=new Zr(e));t:for(;++i<c;){var s=t[i],f=null==r?s:r(s);if(s=n||0!==s?s:0,a&&f==f){for(var p=u;p--;)if(e[p]===f)continue t;l.push(s)}else o(e,f,n)||l.push(s)}return l}Br.templateSettings={escape:Y,evaluate:G,interpolate:X,variable:"",imports:{_:Br}},Br.prototype=$r.prototype,Br.prototype.constructor=Br,Hr.prototype=zr($r.prototype),Hr.prototype.constructor=Hr,Fr.prototype=zr($r.prototype),Fr.prototype.constructor=Fr,Vr.prototype.clear=function(){this.__data__=Ar?Ar(null):{},this.size=0},Vr.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Vr.prototype.get=function(t){var e=this.__data__;if(Ar){var n=e[t];return n===i?r:n}return It.call(e,t)?e[t]:r},Vr.prototype.has=function(t){var e=this.__data__;return Ar?e[t]!==r:It.call(e,t)},Vr.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ar&&e===r?i:e,this},Ur.prototype.clear=function(){this.__data__=[],this.size=0},Ur.prototype.delete=function(t){var e=this.__data__,r=tn(e,t);return!(r<0||(r==e.length-1?e.pop():Yt.call(e,r,1),--this.size,0))},Ur.prototype.get=function(t){var e=this.__data__,n=tn(e,t);return n<0?r:e[n][1]},Ur.prototype.has=function(t){return tn(this.__data__,t)>-1},Ur.prototype.set=function(t,e){var r=this.__data__,n=tn(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},Wr.prototype.clear=function(){this.size=0,this.__data__={hash:new Vr,map:new(Sr||Ur),string:new Vr}},Wr.prototype.delete=function(t){var e=lo(this,t).delete(t);return this.size-=e?1:0,e},Wr.prototype.get=function(t){return lo(this,t).get(t)},Wr.prototype.has=function(t){return lo(this,t).has(t)},Wr.prototype.set=function(t,e){var r=lo(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Zr.prototype.add=Zr.prototype.push=function(t){return this.__data__.set(t,i),this},Zr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.clear=function(){this.__data__=new Ur,this.size=0},qr.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},qr.prototype.get=function(t){return this.__data__.get(t)},qr.prototype.has=function(t){return this.__data__.has(t)},qr.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Ur){var n=r.__data__;if(!Sr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Wr(n)}return r.set(t,e),this.size=r.size,this};var fn=Ti(bn),pn=Ti(wn,!0);function dn(t,e){var r=!0;return fn(t,(function(t,n,i){return r=!!e(t,n,i)})),r}function hn(t,e,n){for(var i=-1,o=t.length;++i<o;){var a=t[i],c=e(a);if(null!=c&&(l===r?c==c&&!cc(c):n(c,l)))var l=c,u=a}return u}function vn(t,e){var r=[];return fn(t,(function(t,n,i){e(t,n,i)&&r.push(t)})),r}function yn(t,e,r,n,i){var o=-1,a=t.length;for(r||(r=go),i||(i=[]);++o<a;){var c=t[o];e>0&&r(c)?e>1?yn(c,e-1,r,n,i):Te(i,c):n||(i[i.length]=c)}return i}var gn=Di(),mn=Di(!0);function bn(t,e){return t&&gn(t,e,Cc)}function wn(t,e){return t&&mn(t,e,Cc)}function xn(t,e){return Me(e,(function(e){return Xa(t[e])}))}function On(t,e){for(var n=0,i=(e=mi(e,t)).length;null!=t&&n<i;)t=t[Ro(e[n++])];return n&&n==i?t:r}function Sn(t,e,r){var n=e(t);return Va(t)?n:Te(n,r(t))}function _n(t){return null==t?t===r?"[object Undefined]":"[object Null]":te&&te in jt(t)?function(t){var e=It.call(t,te),n=t[te];try{t[te]=r;var i=!0}catch(t){}var o=Lt.call(t);return i&&(e?t[te]=n:delete t[te]),o}(t):function(t){return Lt.call(t)}(t)}function jn(t,e){return t>e}function Pn(t,e){return null!=t&&It.call(t,e)}function An(t,e){return null!=t&&e in jt(t)}function Mn(t,e,n){for(var i=n?Ce:ke,o=t[0].length,a=t.length,c=a,l=wt(a),u=1/0,s=[];c--;){var f=t[c];c&&e&&(f=Ee(f,Ge(e))),u=gr(f.length,u),l[c]=!n&&(e||o>=120&&f.length>=120)?new Zr(c&&f):r}f=t[0];var p=-1,d=l[0];t:for(;++p<o&&s.length<u;){var h=f[p],v=e?e(h):h;if(h=n||0!==h?h:0,!(d?Ke(d,v):i(s,v,n))){for(c=a;--c;){var y=l[c];if(!(y?Ke(y,v):i(t[c],v,n)))continue t}d&&d.push(v),s.push(h)}}return s}function kn(t,e,n){var i=null==(t=Ao(t,e=mi(e,t)))?t:t[Ro(Go(e))];return null==i?r:Se(i,t,n)}function Cn(t){return tc(t)&&_n(t)==h}function En(t,e,n,i,o){return t===e||(null==t||null==e||!tc(t)&&!tc(e)?t!=t&&e!=e:function(t,e,n,i,o,a){var c=Va(t),l=Va(e),u=c?v:ho(t),s=l?v:ho(e),f=(u=u==h?S:u)==S,p=(s=s==h?S:s)==S,d=u==s;if(d&&qa(t)){if(!qa(e))return!1;c=!0,f=!1}if(d&&!f)return a||(a=new qr),c||lc(t)?to(t,e,n,i,o,a):function(t,e,r,n,i,o,a){switch(r){case E:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case C:return!(t.byteLength!=e.byteLength||!o(new Vt(t),new Vt(e)));case y:case g:case O:return za(+t,+e);case m:return t.name==e.name&&t.message==e.message;case j:case A:return t==e+"";case x:var c=ir;case P:var l=1&n;if(c||(c=cr),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;n|=2,a.set(t,e);var s=to(c(t),c(e),n,i,o,a);return a.delete(t),s;case M:if(Rr)return Rr.call(t)==Rr.call(e)}return!1}(t,e,u,n,i,o,a);if(!(1&n)){var b=f&&It.call(t,"__wrapped__"),w=p&&It.call(e,"__wrapped__");if(b||w){var _=b?t.value():t,k=w?e.value():e;return a||(a=new qr),o(_,k,n,i,a)}}return!!d&&(a||(a=new qr),function(t,e,n,i,o,a){var c=1&n,l=ro(t),u=l.length,s=ro(e),f=s.length;if(u!=f&&!c)return!1;for(var p=u;p--;){var d=l[p];if(!(c?d in e:It.call(e,d)))return!1}var h=a.get(t),v=a.get(e);if(h&&v)return h==e&&v==t;var y=!0;a.set(t,e),a.set(e,t);for(var g=c;++p<u;){var m=t[d=l[p]],b=e[d];if(i)var w=c?i(b,m,d,e,t,a):i(m,b,d,t,e,a);if(!(w===r?m===b||o(m,b,n,i,a):w)){y=!1;break}g||(g="constructor"==d)}if(y&&!g){var x=t.constructor,O=e.constructor;x==O||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof O&&O instanceof O||(y=!1)}return a.delete(t),a.delete(e),y}(t,e,n,i,o,a))}(t,e,n,i,En,o))}function Tn(t,e,n,i){var o=n.length,a=o,c=!i;if(null==t)return!a;for(t=jt(t);o--;){var l=n[o];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++o<a;){var u=(l=n[o])[0],s=t[u],f=l[1];if(c&&l[2]){if(s===r&&!(u in t))return!1}else{var p=new qr;if(i)var d=i(s,f,u,t,e,p);if(!(d===r?En(f,s,3,i,p):d))return!1}}return!0}function Dn(t){return!(!Qa(t)||(e=t,Rt&&Rt in e))&&(Xa(t)?$t:ht).test(Lo(t));var e}function In(t){return"function"==typeof t?t:null==t?rl:"object"==typeof t?Va(t)?$n(t[0],t[1]):zn(t):fl(t)}function Nn(t){if(!So(t))return vr(t);var e=[];for(var r in jt(t))It.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Rn(t){if(!Qa(t))return function(t){var e=[];if(null!=t)for(var r in jt(t))e.push(r);return e}(t);var e=So(t),r=[];for(var n in t)("constructor"!=n||!e&&It.call(t,n))&&r.push(n);return r}function Ln(t,e){return t<e}function Bn(t,e){var r=-1,n=Wa(t)?wt(t.length):[];return fn(t,(function(t,i,o){n[++r]=e(t,i,o)})),n}function zn(t){var e=uo(t);return 1==e.length&&e[0][2]?jo(e[0][0],e[0][1]):function(r){return r===t||Tn(r,t,e)}}function $n(t,e){return wo(t)&&_o(e)?jo(Ro(t),e):function(n){var i=jc(n,t);return i===r&&i===e?Pc(n,t):En(e,i,3)}}function Hn(t,e,n,i,o){t!==e&&gn(e,(function(a,c){if(o||(o=new qr),Qa(a))!function(t,e,n,i,o,a,c){var l=Mo(t,n),u=Mo(e,n),s=c.get(u);if(s)Jr(t,n,s);else{var f=a?a(l,u,n+"",t,e,c):r,p=f===r;if(p){var d=Va(u),h=!d&&qa(u),v=!d&&!h&&lc(u);f=u,d||h||v?Va(l)?f=l:Za(l)?f=Mi(l):h?(p=!1,f=Oi(u,!0)):v?(p=!1,f=_i(u,!0)):f=[]:nc(u)||Fa(u)?(f=l,Fa(l)?f=yc(l):Qa(l)&&!Xa(l)||(f=yo(u))):p=!1}p&&(c.set(u,f),o(f,u,i,a,c),c.delete(u)),Jr(t,n,f)}}(t,e,c,n,Hn,i,o);else{var l=i?i(Mo(t,c),a,c+"",t,e,o):r;l===r&&(l=a),Jr(t,c,l)}}),Ec)}function Fn(t,e){var n=t.length;if(n)return mo(e+=e<0?n:0,n)?t[e]:r}function Vn(t,e,r){e=e.length?Ee(e,(function(t){return Va(t)?function(e){return On(e,1===t.length?t[0]:t)}:t})):[rl];var n=-1;e=Ee(e,Ge(co()));var i=Bn(t,(function(t,r,i){var o=Ee(e,(function(e){return e(t)}));return{criteria:o,index:++n,value:t}}));return function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}(i,(function(t,e){return function(t,e,r){for(var n=-1,i=t.criteria,o=e.criteria,a=i.length,c=r.length;++n<a;){var l=ji(i[n],o[n]);if(l)return n>=c?l:l*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}))}function Un(t,e,r){for(var n=-1,i=e.length,o={};++n<i;){var a=e[n],c=On(t,a);r(c,a)&&Jn(o,mi(a,t),c)}return o}function Wn(t,e,r,n){var i=n?$e:ze,o=-1,a=e.length,c=t;for(t===e&&(e=Mi(e)),r&&(c=Ee(t,Ge(r)));++o<a;)for(var l=0,u=e[o],s=r?r(u):u;(l=i(c,s,l,n))>-1;)c!==t&&Yt.call(c,l,1),Yt.call(t,l,1);return t}function Zn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var i=e[r];if(r==n||i!==o){var o=i;mo(i)?Yt.call(t,i,1):si(t,i)}}return t}function qn(t,e){return t+ve(wr()*(e-t+1))}function Yn(t,e){var r="";if(!t||e<1||e>s)return r;do{e%2&&(r+=t),(e=ve(e/2))&&(t+=t)}while(e);return r}function Gn(t,e){return Eo(Po(t,e,rl),t+"")}function Xn(t){return Gr(zc(t))}function Kn(t,e){var r=zc(t);return Io(r,an(e,0,r.length))}function Jn(t,e,n,i){if(!Qa(t))return t;for(var o=-1,a=(e=mi(e,t)).length,c=a-1,l=t;null!=l&&++o<a;){var u=Ro(e[o]),s=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(o!=c){var f=l[u];(s=i?i(f,u,l):r)===r&&(s=Qa(f)?f:mo(e[o+1])?[]:{})}Qr(l,u,s),l=l[u]}return t}var Qn=Mr?function(t,e){return Mr.set(t,e),t}:rl,ti=ae?function(t,e){return ae(t,"toString",{configurable:!0,enumerable:!1,value:Qc(e),writable:!0})}:rl;function ei(t){return Io(zc(t))}function ri(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=wt(i);++n<i;)o[n]=t[n+e];return o}function ni(t,e){var r;return fn(t,(function(t,n,i){return!(r=e(t,n,i))})),!!r}function ii(t,e,r){var n=0,i=null==t?n:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;n<i;){var o=n+i>>>1,a=t[o];null!==a&&!cc(a)&&(r?a<=e:a<e)?n=o+1:i=o}return i}return oi(t,e,rl,r)}function oi(t,e,n,i){var o=0,a=null==t?0:t.length;if(0===a)return 0;for(var c=(e=n(e))!=e,l=null===e,u=cc(e),s=e===r;o<a;){var f=ve((o+a)/2),p=n(t[f]),d=p!==r,h=null===p,v=p==p,y=cc(p);if(c)var g=i||v;else g=s?v&&(i||d):l?v&&d&&(i||!h):u?v&&d&&!h&&(i||!y):!h&&!y&&(i?p<=e:p<e);g?o=f+1:a=f}return gr(a,4294967294)}function ai(t,e){for(var r=-1,n=t.length,i=0,o=[];++r<n;){var a=t[r],c=e?e(a):a;if(!r||!za(c,l)){var l=c;o[i++]=0===a?0:a}}return o}function ci(t){return"number"==typeof t?t:cc(t)?f:+t}function li(t){if("string"==typeof t)return t;if(Va(t))return Ee(t,li)+"";if(cc(t))return Lr?Lr.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ui(t,e,r){var n=-1,i=ke,o=t.length,a=!0,c=[],l=c;if(r)a=!1,i=Ce;else if(o>=200){var u=e?null:Yi(t);if(u)return cr(u);a=!1,i=Ke,l=new Zr}else l=e?[]:c;t:for(;++n<o;){var s=t[n],f=e?e(s):s;if(s=r||0!==s?s:0,a&&f==f){for(var p=l.length;p--;)if(l[p]===f)continue t;e&&l.push(f),c.push(s)}else i(l,f,r)||(l!==c&&l.push(f),c.push(s))}return c}function si(t,e){return null==(t=Ao(t,e=mi(e,t)))||delete t[Ro(Go(e))]}function fi(t,e,r,n){return Jn(t,e,r(On(t,e)),n)}function pi(t,e,r,n){for(var i=t.length,o=n?i:-1;(n?o--:++o<i)&&e(t[o],o,t););return r?ri(t,n?0:o,n?o+1:i):ri(t,n?o+1:0,n?i:o)}function di(t,e){var r=t;return r instanceof Fr&&(r=r.value()),De(e,(function(t,e){return e.func.apply(e.thisArg,Te([t],e.args))}),r)}function hi(t,e,r){var n=t.length;if(n<2)return n?ui(t[0]):[];for(var i=-1,o=wt(n);++i<n;)for(var a=t[i],c=-1;++c<n;)c!=i&&(o[i]=sn(o[i]||a,t[c],e,r));return ui(yn(o,1),e,r)}function vi(t,e,n){for(var i=-1,o=t.length,a=e.length,c={};++i<o;){var l=i<a?e[i]:r;n(c,t[i],l)}return c}function yi(t){return Za(t)?t:[]}function gi(t){return"function"==typeof t?t:rl}function mi(t,e){return Va(t)?t:wo(t,e)?[t]:No(gc(t))}var bi=Gn;function wi(t,e,n){var i=t.length;return n=n===r?i:n,!e&&n>=i?t:ri(t,e,n)}var xi=ue||function(t){return fe.clearTimeout(t)};function Oi(t,e){if(e)return t.slice();var r=t.length,n=Ut?Ut(r):new t.constructor(r);return t.copy(n),n}function Si(t){var e=new t.constructor(t.byteLength);return new Vt(e).set(new Vt(t)),e}function _i(t,e){var r=e?Si(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function ji(t,e){if(t!==e){var n=t!==r,i=null===t,o=t==t,a=cc(t),c=e!==r,l=null===e,u=e==e,s=cc(e);if(!l&&!s&&!a&&t>e||a&&c&&u&&!l&&!s||i&&c&&u||!n&&u||!o)return 1;if(!i&&!a&&!s&&t<e||s&&n&&o&&!i&&!a||l&&n&&o||!c&&o||!u)return-1}return 0}function Pi(t,e,r,n){for(var i=-1,o=t.length,a=r.length,c=-1,l=e.length,u=yr(o-a,0),s=wt(l+u),f=!n;++c<l;)s[c]=e[c];for(;++i<a;)(f||i<o)&&(s[r[i]]=t[i]);for(;u--;)s[c++]=t[i++];return s}function Ai(t,e,r,n){for(var i=-1,o=t.length,a=-1,c=r.length,l=-1,u=e.length,s=yr(o-c,0),f=wt(s+u),p=!n;++i<s;)f[i]=t[i];for(var d=i;++l<u;)f[d+l]=e[l];for(;++a<c;)(p||i<o)&&(f[d+r[a]]=t[i++]);return f}function Mi(t,e){var r=-1,n=t.length;for(e||(e=wt(n));++r<n;)e[r]=t[r];return e}function ki(t,e,n,i){var o=!n;n||(n={});for(var a=-1,c=e.length;++a<c;){var l=e[a],u=i?i(n[l],t[l],l,n,t):r;u===r&&(u=t[l]),o?nn(n,l,u):Qr(n,l,u)}return n}function Ci(t,e){return function(r,n){var i=Va(r)?_e:en,o=e?e():{};return i(r,t,co(n,2),o)}}function Ei(t){return Gn((function(e,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,c=o>2?n[2]:r;for(a=t.length>3&&"function"==typeof a?(o--,a):r,c&&bo(n[0],n[1],c)&&(a=o<3?r:a,o=1),e=jt(e);++i<o;){var l=n[i];l&&t(e,l,i,a)}return e}))}function Ti(t,e){return function(r,n){if(null==r)return r;if(!Wa(r))return t(r,n);for(var i=r.length,o=e?i:-1,a=jt(r);(e?o--:++o<i)&&!1!==n(a[o],o,a););return r}}function Di(t){return function(e,r,n){for(var i=-1,o=jt(e),a=n(e),c=a.length;c--;){var l=a[t?c:++i];if(!1===r(o[l],l,o))break}return e}}function Ii(t){return function(e){var n=nr(e=gc(e))?sr(e):r,i=n?n[0]:e.charAt(0),o=n?wi(n,1).join(""):e.slice(1);return i[t]()+o}}function Ni(t){return function(e){return De(Xc(Fc(e).replace(Xt,"")),t,"")}}function Ri(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=zr(t.prototype),n=t.apply(r,e);return Qa(n)?n:r}}function Li(t){return function(e,n,i){var o=jt(e);if(!Wa(e)){var a=co(n,3);e=Cc(e),n=function(t){return a(o[t],t,o)}}var c=t(e,n,i);return c>-1?o[a?e[c]:c]:r}}function Bi(t){return eo((function(e){var i=e.length,o=i,a=Hr.prototype.thru;for(t&&e.reverse();o--;){var c=e[o];if("function"!=typeof c)throw new Mt(n);if(a&&!l&&"wrapper"==oo(c))var l=new Hr([],!0)}for(o=l?o:i;++o<i;){var u=oo(c=e[o]),s="wrapper"==u?io(c):r;l=s&&xo(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?l[oo(s[0])].apply(l,s[3]):1==c.length&&xo(c)?l[u]():l.thru(c)}return function(){var t=arguments,r=t[0];if(l&&1==t.length&&Va(r))return l.plant(r).value();for(var n=0,o=i?e[n].apply(this,t):r;++n<i;)o=e[n].call(this,o);return o}}))}function zi(t,e,n,i,o,a,l,u,s,f){var p=e&c,d=1&e,h=2&e,v=24&e,y=512&e,g=h?r:Ri(t);return function c(){for(var m=arguments.length,b=wt(m),w=m;w--;)b[w]=arguments[w];if(v)var x=ao(c),O=function(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}(b,x);if(i&&(b=Pi(b,i,o,v)),a&&(b=Ai(b,a,l,v)),m-=O,v&&m<f){var S=ar(b,x);return Zi(t,e,zi,c.placeholder,n,b,S,u,s,f-m)}var _=d?n:this,j=h?_[t]:t;return m=b.length,u?b=function(t,e){for(var n=t.length,i=gr(e.length,n),o=Mi(t);i--;){var a=e[i];t[i]=mo(a,n)?o[a]:r}return t}(b,u):y&&m>1&&b.reverse(),p&&s<m&&(b.length=s),this&&this!==fe&&this instanceof c&&(j=g||Ri(j)),j.apply(_,b)}}function $i(t,e){return function(r,n){return function(t,e,r,n){return bn(t,(function(t,i,o){e(n,r(t),i,o)})),n}(r,t,e(n),{})}}function Hi(t,e){return function(n,i){var o;if(n===r&&i===r)return e;if(n!==r&&(o=n),i!==r){if(o===r)return i;"string"==typeof n||"string"==typeof i?(n=li(n),i=li(i)):(n=ci(n),i=ci(i)),o=t(n,i)}return o}}function Fi(t){return eo((function(e){return e=Ee(e,Ge(co())),Gn((function(r){var n=this;return t(e,(function(t){return Se(t,n,r)}))}))}))}function Vi(t,e){var n=(e=e===r?" ":li(e)).length;if(n<2)return n?Yn(e,t):e;var i=Yn(e,de(t/ur(e)));return nr(e)?wi(sr(i),0,t).join(""):i.slice(0,t)}function Ui(t){return function(e,n,i){return i&&"number"!=typeof i&&bo(e,n,i)&&(n=i=r),e=pc(e),n===r?(n=e,e=0):n=pc(n),function(t,e,r,n){for(var i=-1,o=yr(de((e-t)/(r||1)),0),a=wt(o);o--;)a[n?o:++i]=t,t+=r;return a}(e,n,i=i===r?e<n?1:-1:pc(i),t)}}function Wi(t){return function(e,r){return"string"==typeof e&&"string"==typeof r||(e=vc(e),r=vc(r)),t(e,r)}}function Zi(t,e,n,i,o,c,l,u,s,f){var p=8&e;e|=p?a:64,4&(e&=~(p?64:a))||(e&=-4);var d=[t,e,o,p?c:r,p?l:r,p?r:c,p?r:l,u,s,f],h=n.apply(r,d);return xo(t)&&ko(h,d),h.placeholder=i,To(h,t,e)}function qi(t){var e=_t[t];return function(t,r){if(t=vc(t),(r=null==r?0:gr(dc(r),292))&&Ue(t)){var n=(gc(t)+"e").split("e");return+((n=(gc(e(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}var Yi=jr&&1/cr(new jr([,-0]))[1]==u?function(t){return new jr(t)}:cl;function Gi(t){return function(e){var r=ho(e);return r==x?ir(e):r==P?lr(e):function(t,e){return Ee(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Xi(t,e,i,u,s,f,p,d){var h=2&e;if(!h&&"function"!=typeof t)throw new Mt(n);var v=u?u.length:0;if(v||(e&=-97,u=s=r),p=p===r?p:yr(dc(p),0),d=d===r?d:dc(d),v-=s?s.length:0,64&e){var y=u,g=s;u=s=r}var m=h?r:io(t),b=[t,e,i,u,s,y,g,f,p,d];if(m&&function(t,e){var r=t[1],n=e[1],i=r|n,a=i<131,u=n==c&&8==r||n==c&&r==l&&t[7].length<=e[8]||384==n&&e[7].length<=e[8]&&8==r;if(!a&&!u)return t;1&n&&(t[2]=e[2],i|=1&r?0:4);var s=e[3];if(s){var f=t[3];t[3]=f?Pi(f,s,e[4]):s,t[4]=f?ar(t[3],o):e[4]}(s=e[5])&&(f=t[5],t[5]=f?Ai(f,s,e[6]):s,t[6]=f?ar(t[5],o):e[6]),(s=e[7])&&(t[7]=s),n&c&&(t[8]=null==t[8]?e[8]:gr(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(b,m),t=b[0],e=b[1],i=b[2],u=b[3],s=b[4],!(d=b[9]=b[9]===r?h?0:t.length:yr(b[9]-v,0))&&24&e&&(e&=-25),e&&1!=e)w=8==e||16==e?function(t,e,n){var i=Ri(t);return function o(){for(var a=arguments.length,c=wt(a),l=a,u=ao(o);l--;)c[l]=arguments[l];var s=a<3&&c[0]!==u&&c[a-1]!==u?[]:ar(c,u);return(a-=s.length)<n?Zi(t,e,zi,o.placeholder,r,c,s,r,r,n-a):Se(this&&this!==fe&&this instanceof o?i:t,this,c)}}(t,e,d):e!=a&&33!=e||s.length?zi.apply(r,b):function(t,e,r,n){var i=1&e,o=Ri(t);return function e(){for(var a=-1,c=arguments.length,l=-1,u=n.length,s=wt(u+c),f=this&&this!==fe&&this instanceof e?o:t;++l<u;)s[l]=n[l];for(;c--;)s[l++]=arguments[++a];return Se(f,i?r:this,s)}}(t,e,i,u);else var w=function(t,e,r){var n=1&e,i=Ri(t);return function e(){return(this&&this!==fe&&this instanceof e?i:t).apply(n?r:this,arguments)}}(t,e,i);return To((m?Qn:ko)(w,b),t,e)}function Ki(t,e,n,i){return t===r||za(t,Et[n])&&!It.call(i,n)?e:t}function Ji(t,e,n,i,o,a){return Qa(t)&&Qa(e)&&(a.set(e,t),Hn(t,e,r,Ji,a),a.delete(e)),t}function Qi(t){return nc(t)?r:t}function to(t,e,n,i,o,a){var c=1&n,l=t.length,u=e.length;if(l!=u&&!(c&&u>l))return!1;var s=a.get(t),f=a.get(e);if(s&&f)return s==e&&f==t;var p=-1,d=!0,h=2&n?new Zr:r;for(a.set(t,e),a.set(e,t);++p<l;){var v=t[p],y=e[p];if(i)var g=c?i(y,v,p,e,t,a):i(v,y,p,t,e,a);if(g!==r){if(g)continue;d=!1;break}if(h){if(!Ne(e,(function(t,e){if(!Ke(h,e)&&(v===t||o(v,t,n,i,a)))return h.push(e)}))){d=!1;break}}else if(v!==y&&!o(v,y,n,i,a)){d=!1;break}}return a.delete(t),a.delete(e),d}function eo(t){return Eo(Po(t,r,Uo),t+"")}function ro(t){return Sn(t,Cc,fo)}function no(t){return Sn(t,Ec,po)}var io=Mr?function(t){return Mr.get(t)}:cl;function oo(t){for(var e=t.name+"",r=kr[e],n=It.call(kr,e)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==t)return i.name}return e}function ao(t){return(It.call(Br,"placeholder")?Br:t).placeholder}function co(){var t=Br.iteratee||nl;return t=t===nl?In:t,arguments.length?t(arguments[0],arguments[1]):t}function lo(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function uo(t){for(var e=Cc(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,_o(i)]}return e}function so(t,e){var n=function(t,e){return null==t?r:t[e]}(t,e);return Dn(n)?n:r}var fo=ye?function(t){return null==t?[]:(t=jt(t),Me(ye(t),(function(e){return qt.call(t,e)})))}:hl,po=ye?function(t){for(var e=[];t;)Te(e,fo(t)),t=Wt(t);return e}:hl,ho=_n;function vo(t,e,r){for(var n=-1,i=(e=mi(e,t)).length,o=!1;++n<i;){var a=Ro(e[n]);if(!(o=null!=t&&r(t,a)))break;t=t[a]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&Ja(i)&&mo(a,i)&&(Va(t)||Fa(t))}function yo(t){return"function"!=typeof t.constructor||So(t)?{}:zr(Wt(t))}function go(t){return Va(t)||Fa(t)||!!(Gt&&t&&t[Gt])}function mo(t,e){var r=typeof t;return!!(e=null==e?s:e)&&("number"==r||"symbol"!=r&&yt.test(t))&&t>-1&&t%1==0&&t<e}function bo(t,e,r){if(!Qa(r))return!1;var n=typeof e;return!!("number"==n?Wa(r)&&mo(e,r.length):"string"==n&&e in r)&&za(r[e],t)}function wo(t,e){if(Va(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!cc(t))||J.test(t)||!K.test(t)||null!=e&&t in jt(e)}function xo(t){var e=oo(t),r=Br[e];if("function"!=typeof r||!(e in Fr.prototype))return!1;if(t===r)return!0;var n=io(r);return!!n&&t===n[0]}(Or&&ho(new Or(new ArrayBuffer(1)))!=E||Sr&&ho(new Sr)!=x||_r&&ho(_r.resolve())!=_||jr&&ho(new jr)!=P||Pr&&ho(new Pr)!=k)&&(ho=function(t){var e=_n(t),n=e==S?t.constructor:r,i=n?Lo(n):"";if(i)switch(i){case Cr:return E;case Er:return x;case Tr:return _;case Dr:return P;case Ir:return k}return e});var Oo=Tt?Xa:vl;function So(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Et)}function _o(t){return t==t&&!Qa(t)}function jo(t,e){return function(n){return null!=n&&n[t]===e&&(e!==r||t in jt(n))}}function Po(t,e,n){return e=yr(e===r?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=yr(r.length-e,0),a=wt(o);++i<o;)a[i]=r[e+i];i=-1;for(var c=wt(e+1);++i<e;)c[i]=r[i];return c[e]=n(a),Se(t,this,c)}}function Ao(t,e){return e.length<2?t:On(t,ri(e,0,-1))}function Mo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var ko=Do(Qn),Co=pe||function(t,e){return fe.setTimeout(t,e)},Eo=Do(ti);function To(t,e,r){var n=e+"";return Eo(t,function(t,e){var r=e.length;if(!r)return t;var n=r-1;return e[n]=(r>1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return je(d,(function(r){var n="_."+r[0];e&r[1]&&!ke(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(ot);return e?e[1].split(at):[]}(n),r)))}function Do(t){var e=0,n=0;return function(){var i=mr(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function Io(t,e){var n=-1,i=t.length,o=i-1;for(e=e===r?i:e;++n<e;){var a=qn(n,o),c=t[a];t[a]=t[n],t[n]=c}return t.length=e,t}var No=function(t){var e=Da(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Q,(function(t,r,n,i){e.push(n?i.replace(ut,"$1"):r||t)})),e}));function Ro(t){if("string"==typeof t||cc(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Lo(t){if(null!=t){try{return Dt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Bo(t){if(t instanceof Fr)return t.clone();var e=new Hr(t.__wrapped__,t.__chain__);return e.__actions__=Mi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var zo=Gn((function(t,e){return Za(t)?sn(t,yn(e,1,Za,!0)):[]})),$o=Gn((function(t,e){var n=Go(e);return Za(n)&&(n=r),Za(t)?sn(t,yn(e,1,Za,!0),co(n,2)):[]})),Ho=Gn((function(t,e){var n=Go(e);return Za(n)&&(n=r),Za(t)?sn(t,yn(e,1,Za,!0),r,n):[]}));function Fo(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:dc(r);return i<0&&(i=yr(n+i,0)),Be(t,co(e,3),i)}function Vo(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return n!==r&&(o=dc(n),o=n<0?yr(i+o,0):gr(o,i-1)),Be(t,co(e,3),o,!0)}function Uo(t){return null!=t&&t.length?yn(t,1):[]}function Wo(t){return t&&t.length?t[0]:r}var Zo=Gn((function(t){var e=Ee(t,yi);return e.length&&e[0]===t[0]?Mn(e):[]})),qo=Gn((function(t){var e=Go(t),n=Ee(t,yi);return e===Go(n)?e=r:n.pop(),n.length&&n[0]===t[0]?Mn(n,co(e,2)):[]})),Yo=Gn((function(t){var e=Go(t),n=Ee(t,yi);return(e="function"==typeof e?e:r)&&n.pop(),n.length&&n[0]===t[0]?Mn(n,r,e):[]}));function Go(t){var e=null==t?0:t.length;return e?t[e-1]:r}var Xo=Gn(Ko);function Ko(t,e){return t&&t.length&&e&&e.length?Wn(t,e):t}var Jo=eo((function(t,e){var r=null==t?0:t.length,n=on(t,e);return Zn(t,Ee(e,(function(t){return mo(t,r)?+t:t})).sort(ji)),n}));function Qo(t){return null==t?t:xr.call(t)}var ta=Gn((function(t){return ui(yn(t,1,Za,!0))})),ea=Gn((function(t){var e=Go(t);return Za(e)&&(e=r),ui(yn(t,1,Za,!0),co(e,2))})),ra=Gn((function(t){var e=Go(t);return e="function"==typeof e?e:r,ui(yn(t,1,Za,!0),r,e)}));function na(t){if(!t||!t.length)return[];var e=0;return t=Me(t,(function(t){if(Za(t))return e=yr(t.length,e),!0})),qe(e,(function(e){return Ee(t,Ve(e))}))}function ia(t,e){if(!t||!t.length)return[];var n=na(t);return null==e?n:Ee(n,(function(t){return Se(e,r,t)}))}var oa=Gn((function(t,e){return Za(t)?sn(t,e):[]})),aa=Gn((function(t){return hi(Me(t,Za))})),ca=Gn((function(t){var e=Go(t);return Za(e)&&(e=r),hi(Me(t,Za),co(e,2))})),la=Gn((function(t){var e=Go(t);return e="function"==typeof e?e:r,hi(Me(t,Za),r,e)})),ua=Gn(na),sa=Gn((function(t){var e=t.length,n=e>1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,ia(t,n)}));function fa(t){var e=Br(t);return e.__chain__=!0,e}function pa(t,e){return e(t)}var da=eo((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,o=function(e){return on(e,t)};return!(e>1||this.__actions__.length)&&i instanceof Fr&&mo(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:pa,args:[o],thisArg:r}),new Hr(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(r),t}))):this.thru(o)})),ha=Ci((function(t,e,r){It.call(t,r)?++t[r]:nn(t,r,1)})),va=Li(Fo),ya=Li(Vo);function ga(t,e){return(Va(t)?je:fn)(t,co(e,3))}function ma(t,e){return(Va(t)?Pe:pn)(t,co(e,3))}var ba=Ci((function(t,e,r){It.call(t,r)?t[r].push(e):nn(t,r,[e])})),wa=Gn((function(t,e,r){var n=-1,i="function"==typeof e,o=Wa(t)?wt(t.length):[];return fn(t,(function(t){o[++n]=i?Se(e,t,r):kn(t,e,r)})),o})),xa=Ci((function(t,e,r){nn(t,r,e)}));function Oa(t,e){return(Va(t)?Ee:Bn)(t,co(e,3))}var Sa=Ci((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]})),_a=Gn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&bo(t,e[0],e[1])?e=[]:r>2&&bo(e[0],e[1],e[2])&&(e=[e[0]]),Vn(t,yn(e,1),[])})),ja=se||function(){return fe.Date.now()};function Pa(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Xi(t,c,r,r,r,r,e)}function Aa(t,e){var i;if("function"!=typeof e)throw new Mt(n);return t=dc(t),function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=r),i}}var Ma=Gn((function(t,e,r){var n=1;if(r.length){var i=ar(r,ao(Ma));n|=a}return Xi(t,n,e,r,i)})),ka=Gn((function(t,e,r){var n=3;if(r.length){var i=ar(r,ao(ka));n|=a}return Xi(e,n,t,r,i)}));function Ca(t,e,i){var o,a,c,l,u,s,f=0,p=!1,d=!1,h=!0;if("function"!=typeof t)throw new Mt(n);function v(e){var n=o,i=a;return o=a=r,f=e,l=t.apply(i,n)}function y(t){var n=t-s;return s===r||n>=e||n<0||d&&t-f>=c}function g(){var t=ja();if(y(t))return m(t);u=Co(g,function(t){var r=e-(t-s);return d?gr(r,c-(t-f)):r}(t))}function m(t){return u=r,h&&o?v(t):(o=a=r,l)}function b(){var t=ja(),n=y(t);if(o=arguments,a=this,s=t,n){if(u===r)return function(t){return f=t,u=Co(g,e),p?v(t):l}(s);if(d)return xi(u),u=Co(g,e),v(s)}return u===r&&(u=Co(g,e)),l}return e=vc(e)||0,Qa(i)&&(p=!!i.leading,c=(d="maxWait"in i)?yr(vc(i.maxWait)||0,e):c,h="trailing"in i?!!i.trailing:h),b.cancel=function(){u!==r&&xi(u),f=0,o=s=a=u=r},b.flush=function(){return u===r?l:m(ja())},b}var Ea=Gn((function(t,e){return un(t,1,e)})),Ta=Gn((function(t,e,r){return un(t,vc(e)||0,r)}));function Da(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Mt(n);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Da.Cache||Wr),r}function Ia(t){if("function"!=typeof t)throw new Mt(n);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Da.Cache=Wr;var Na=bi((function(t,e){var r=(e=1==e.length&&Va(e[0])?Ee(e[0],Ge(co())):Ee(yn(e,1),Ge(co()))).length;return Gn((function(n){for(var i=-1,o=gr(n.length,r);++i<o;)n[i]=e[i].call(this,n[i]);return Se(t,this,n)}))})),Ra=Gn((function(t,e){var n=ar(e,ao(Ra));return Xi(t,a,r,e,n)})),La=Gn((function(t,e){var n=ar(e,ao(La));return Xi(t,64,r,e,n)})),Ba=eo((function(t,e){return Xi(t,l,r,r,r,e)}));function za(t,e){return t===e||t!=t&&e!=e}var $a=Wi(jn),Ha=Wi((function(t,e){return t>=e})),Fa=Cn(function(){return arguments}())?Cn:function(t){return tc(t)&&It.call(t,"callee")&&!qt.call(t,"callee")},Va=wt.isArray,Ua=ge?Ge(ge):function(t){return tc(t)&&_n(t)==C};function Wa(t){return null!=t&&Ja(t.length)&&!Xa(t)}function Za(t){return tc(t)&&Wa(t)}var qa=Re||vl,Ya=me?Ge(me):function(t){return tc(t)&&_n(t)==g};function Ga(t){if(!tc(t))return!1;var e=_n(t);return e==m||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!nc(t)}function Xa(t){if(!Qa(t))return!1;var e=_n(t);return e==b||e==w||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ka(t){return"number"==typeof t&&t==dc(t)}function Ja(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=s}function Qa(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function tc(t){return null!=t&&"object"==typeof t}var ec=be?Ge(be):function(t){return tc(t)&&ho(t)==x};function rc(t){return"number"==typeof t||tc(t)&&_n(t)==O}function nc(t){if(!tc(t)||_n(t)!=S)return!1;var e=Wt(t);if(null===e)return!0;var r=It.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Dt.call(r)==Bt}var ic=we?Ge(we):function(t){return tc(t)&&_n(t)==j},oc=xe?Ge(xe):function(t){return tc(t)&&ho(t)==P};function ac(t){return"string"==typeof t||!Va(t)&&tc(t)&&_n(t)==A}function cc(t){return"symbol"==typeof t||tc(t)&&_n(t)==M}var lc=Oe?Ge(Oe):function(t){return tc(t)&&Ja(t.length)&&!!ie[_n(t)]},uc=Wi(Ln),sc=Wi((function(t,e){return t<=e}));function fc(t){if(!t)return[];if(Wa(t))return ac(t)?sr(t):Mi(t);if(Jt&&t[Jt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Jt]());var e=ho(t);return(e==x?ir:e==P?cr:zc)(t)}function pc(t){return t?(t=vc(t))===u||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function dc(t){var e=pc(t),r=e%1;return e==e?r?e-r:e:0}function hc(t){return t?an(dc(t),0,p):0}function vc(t){if("number"==typeof t)return t;if(cc(t))return f;if(Qa(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Qa(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ye(t);var r=dt.test(t);return r||vt.test(t)?le(t.slice(2),r?2:8):pt.test(t)?f:+t}function yc(t){return ki(t,Ec(t))}function gc(t){return null==t?"":li(t)}var mc=Ei((function(t,e){if(So(e)||Wa(e))ki(e,Cc(e),t);else for(var r in e)It.call(e,r)&&Qr(t,r,e[r])})),bc=Ei((function(t,e){ki(e,Ec(e),t)})),wc=Ei((function(t,e,r,n){ki(e,Ec(e),t,n)})),xc=Ei((function(t,e,r,n){ki(e,Cc(e),t,n)})),Oc=eo(on),Sc=Gn((function(t,e){t=jt(t);var n=-1,i=e.length,o=i>2?e[2]:r;for(o&&bo(e[0],e[1],o)&&(i=1);++n<i;)for(var a=e[n],c=Ec(a),l=-1,u=c.length;++l<u;){var s=c[l],f=t[s];(f===r||za(f,Et[s])&&!It.call(t,s))&&(t[s]=a[s])}return t})),_c=Gn((function(t){return t.push(r,Ji),Se(Dc,r,t)}));function jc(t,e,n){var i=null==t?r:On(t,e);return i===r?n:i}function Pc(t,e){return null!=t&&vo(t,e,An)}var Ac=$i((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),t[e]=r}),Qc(rl)),Mc=$i((function(t,e,r){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),It.call(t,e)?t[e].push(r):t[e]=[r]}),co),kc=Gn(kn);function Cc(t){return Wa(t)?Yr(t):Nn(t)}function Ec(t){return Wa(t)?Yr(t,!0):Rn(t)}var Tc=Ei((function(t,e,r){Hn(t,e,r)})),Dc=Ei((function(t,e,r,n){Hn(t,e,r,n)})),Ic=eo((function(t,e){var r={};if(null==t)return r;var n=!1;e=Ee(e,(function(e){return e=mi(e,t),n||(n=e.length>1),e})),ki(t,no(t),r),n&&(r=cn(r,7,Qi));for(var i=e.length;i--;)si(r,e[i]);return r})),Nc=eo((function(t,e){return null==t?{}:function(t,e){return Un(t,e,(function(e,r){return Pc(t,r)}))}(t,e)}));function Rc(t,e){if(null==t)return{};var r=Ee(no(t),(function(t){return[t]}));return e=co(e),Un(t,r,(function(t,r){return e(t,r[0])}))}var Lc=Gi(Cc),Bc=Gi(Ec);function zc(t){return null==t?[]:Xe(t,Cc(t))}var $c=Ni((function(t,e,r){return e=e.toLowerCase(),t+(r?Hc(e):e)}));function Hc(t){return Gc(gc(t).toLowerCase())}function Fc(t){return(t=gc(t))&&t.replace(gt,tr).replace(Kt,"")}var Vc=Ni((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Uc=Ni((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),Wc=Ii("toLowerCase"),Zc=Ni((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()})),qc=Ni((function(t,e,r){return t+(r?" ":"")+Gc(e)})),Yc=Ni((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Gc=Ii("toUpperCase");function Xc(t,e,n){return t=gc(t),(e=n?r:e)===r?function(t){return ee.test(t)}(t)?function(t){return t.match(Qt)||[]}(t):function(t){return t.match(ct)||[]}(t):t.match(e)||[]}var Kc=Gn((function(t,e){try{return Se(t,r,e)}catch(t){return Ga(t)?t:new Ot(t)}})),Jc=eo((function(t,e){return je(e,(function(e){e=Ro(e),nn(t,e,Ma(t[e],t))})),t}));function Qc(t){return function(){return t}}var tl=Bi(),el=Bi(!0);function rl(t){return t}function nl(t){return In("function"==typeof t?t:cn(t,1))}var il=Gn((function(t,e){return function(r){return kn(r,t,e)}})),ol=Gn((function(t,e){return function(r){return kn(t,r,e)}}));function al(t,e,r){var n=Cc(e),i=xn(e,n);null!=r||Qa(e)&&(i.length||!n.length)||(r=e,e=t,t=this,i=xn(e,Cc(e)));var o=!(Qa(r)&&"chain"in r&&!r.chain),a=Xa(t);return je(i,(function(r){var n=e[r];t[r]=n,a&&(t.prototype[r]=function(){var e=this.__chain__;if(o||e){var r=t(this.__wrapped__);return(r.__actions__=Mi(this.__actions__)).push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,Te([this.value()],arguments))})})),t}function cl(){}var ll=Fi(Ee),ul=Fi(Ae),sl=Fi(Ne);function fl(t){return wo(t)?Ve(Ro(t)):function(t){return function(e){return On(e,t)}}(t)}var pl=Ui(),dl=Ui(!0);function hl(){return[]}function vl(){return!1}var yl,gl=Hi((function(t,e){return t+e}),0),ml=qi("ceil"),bl=Hi((function(t,e){return t/e}),1),wl=qi("floor"),xl=Hi((function(t,e){return t*e}),1),Ol=qi("round"),Sl=Hi((function(t,e){return t-e}),0);return Br.after=function(t,e){if("function"!=typeof e)throw new Mt(n);return t=dc(t),function(){if(--t<1)return e.apply(this,arguments)}},Br.ary=Pa,Br.assign=mc,Br.assignIn=bc,Br.assignInWith=wc,Br.assignWith=xc,Br.at=Oc,Br.before=Aa,Br.bind=Ma,Br.bindAll=Jc,Br.bindKey=ka,Br.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Va(t)?t:[t]},Br.chain=fa,Br.chunk=function(t,e,n){e=(n?bo(t,e,n):e===r)?1:yr(dc(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,c=wt(de(i/e));o<i;)c[a++]=ri(t,o,o+=e);return c},Br.compact=function(t){for(var e=-1,r=null==t?0:t.length,n=0,i=[];++e<r;){var o=t[e];o&&(i[n++]=o)}return i},Br.concat=function(){var t=arguments.length;if(!t)return[];for(var e=wt(t-1),r=arguments[0],n=t;n--;)e[n-1]=arguments[n];return Te(Va(r)?Mi(r):[r],yn(e,1))},Br.cond=function(t){var e=null==t?0:t.length,r=co();return t=e?Ee(t,(function(t){if("function"!=typeof t[1])throw new Mt(n);return[r(t[0]),t[1]]})):[],Gn((function(r){for(var n=-1;++n<e;){var i=t[n];if(Se(i[0],this,r))return Se(i[1],this,r)}}))},Br.conforms=function(t){return function(t){var e=Cc(t);return function(r){return ln(r,t,e)}}(cn(t,1))},Br.constant=Qc,Br.countBy=ha,Br.create=function(t,e){var r=zr(t);return null==e?r:rn(r,e)},Br.curry=function t(e,n,i){var o=Xi(e,8,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},Br.curryRight=function t(e,n,i){var o=Xi(e,16,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},Br.debounce=Ca,Br.defaults=Sc,Br.defaultsDeep=_c,Br.defer=Ea,Br.delay=Ta,Br.difference=zo,Br.differenceBy=$o,Br.differenceWith=Ho,Br.drop=function(t,e,n){var i=null==t?0:t.length;return i?ri(t,(e=n||e===r?1:dc(e))<0?0:e,i):[]},Br.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?ri(t,0,(e=i-(e=n||e===r?1:dc(e)))<0?0:e):[]},Br.dropRightWhile=function(t,e){return t&&t.length?pi(t,co(e,3),!0,!0):[]},Br.dropWhile=function(t,e){return t&&t.length?pi(t,co(e,3),!0):[]},Br.fill=function(t,e,n,i){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&bo(t,e,n)&&(n=0,i=o),function(t,e,n,i){var o=t.length;for((n=dc(n))<0&&(n=-n>o?0:o+n),(i=i===r||i>o?o:dc(i))<0&&(i+=o),i=n>i?0:hc(i);n<i;)t[n++]=e;return t}(t,e,n,i)):[]},Br.filter=function(t,e){return(Va(t)?Me:vn)(t,co(e,3))},Br.flatMap=function(t,e){return yn(Oa(t,e),1)},Br.flatMapDeep=function(t,e){return yn(Oa(t,e),u)},Br.flatMapDepth=function(t,e,n){return n=n===r?1:dc(n),yn(Oa(t,e),n)},Br.flatten=Uo,Br.flattenDeep=function(t){return null!=t&&t.length?yn(t,u):[]},Br.flattenDepth=function(t,e){return null!=t&&t.length?yn(t,e=e===r?1:dc(e)):[]},Br.flip=function(t){return Xi(t,512)},Br.flow=tl,Br.flowRight=el,Br.fromPairs=function(t){for(var e=-1,r=null==t?0:t.length,n={};++e<r;){var i=t[e];n[i[0]]=i[1]}return n},Br.functions=function(t){return null==t?[]:xn(t,Cc(t))},Br.functionsIn=function(t){return null==t?[]:xn(t,Ec(t))},Br.groupBy=ba,Br.initial=function(t){return null!=t&&t.length?ri(t,0,-1):[]},Br.intersection=Zo,Br.intersectionBy=qo,Br.intersectionWith=Yo,Br.invert=Ac,Br.invertBy=Mc,Br.invokeMap=wa,Br.iteratee=nl,Br.keyBy=xa,Br.keys=Cc,Br.keysIn=Ec,Br.map=Oa,Br.mapKeys=function(t,e){var r={};return e=co(e,3),bn(t,(function(t,n,i){nn(r,e(t,n,i),t)})),r},Br.mapValues=function(t,e){var r={};return e=co(e,3),bn(t,(function(t,n,i){nn(r,n,e(t,n,i))})),r},Br.matches=function(t){return zn(cn(t,1))},Br.matchesProperty=function(t,e){return $n(t,cn(e,1))},Br.memoize=Da,Br.merge=Tc,Br.mergeWith=Dc,Br.method=il,Br.methodOf=ol,Br.mixin=al,Br.negate=Ia,Br.nthArg=function(t){return t=dc(t),Gn((function(e){return Fn(e,t)}))},Br.omit=Ic,Br.omitBy=function(t,e){return Rc(t,Ia(co(e)))},Br.once=function(t){return Aa(2,t)},Br.orderBy=function(t,e,n,i){return null==t?[]:(Va(e)||(e=null==e?[]:[e]),Va(n=i?r:n)||(n=null==n?[]:[n]),Vn(t,e,n))},Br.over=ll,Br.overArgs=Na,Br.overEvery=ul,Br.overSome=sl,Br.partial=Ra,Br.partialRight=La,Br.partition=Sa,Br.pick=Nc,Br.pickBy=Rc,Br.property=fl,Br.propertyOf=function(t){return function(e){return null==t?r:On(t,e)}},Br.pull=Xo,Br.pullAll=Ko,Br.pullAllBy=function(t,e,r){return t&&t.length&&e&&e.length?Wn(t,e,co(r,2)):t},Br.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Wn(t,e,r,n):t},Br.pullAt=Jo,Br.range=pl,Br.rangeRight=dl,Br.rearg=Ba,Br.reject=function(t,e){return(Va(t)?Me:vn)(t,Ia(co(e,3)))},Br.remove=function(t,e){var r=[];if(!t||!t.length)return r;var n=-1,i=[],o=t.length;for(e=co(e,3);++n<o;){var a=t[n];e(a,n,t)&&(r.push(a),i.push(n))}return Zn(t,i),r},Br.rest=function(t,e){if("function"!=typeof t)throw new Mt(n);return Gn(t,e=e===r?e:dc(e))},Br.reverse=Qo,Br.sampleSize=function(t,e,n){return e=(n?bo(t,e,n):e===r)?1:dc(e),(Va(t)?Xr:Kn)(t,e)},Br.set=function(t,e,r){return null==t?t:Jn(t,e,r)},Br.setWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:Jn(t,e,n,i)},Br.shuffle=function(t){return(Va(t)?Kr:ei)(t)},Br.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&bo(t,e,n)?(e=0,n=i):(e=null==e?0:dc(e),n=n===r?i:dc(n)),ri(t,e,n)):[]},Br.sortBy=_a,Br.sortedUniq=function(t){return t&&t.length?ai(t):[]},Br.sortedUniqBy=function(t,e){return t&&t.length?ai(t,co(e,2)):[]},Br.split=function(t,e,n){return n&&"number"!=typeof n&&bo(t,e,n)&&(e=n=r),(n=n===r?p:n>>>0)?(t=gc(t))&&("string"==typeof e||null!=e&&!ic(e))&&!(e=li(e))&&nr(t)?wi(sr(t),0,n):t.split(e,n):[]},Br.spread=function(t,e){if("function"!=typeof t)throw new Mt(n);return e=null==e?0:yr(dc(e),0),Gn((function(r){var n=r[e],i=wi(r,0,e);return n&&Te(i,n),Se(t,this,i)}))},Br.tail=function(t){var e=null==t?0:t.length;return e?ri(t,1,e):[]},Br.take=function(t,e,n){return t&&t.length?ri(t,0,(e=n||e===r?1:dc(e))<0?0:e):[]},Br.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?ri(t,(e=i-(e=n||e===r?1:dc(e)))<0?0:e,i):[]},Br.takeRightWhile=function(t,e){return t&&t.length?pi(t,co(e,3),!1,!0):[]},Br.takeWhile=function(t,e){return t&&t.length?pi(t,co(e,3)):[]},Br.tap=function(t,e){return e(t),t},Br.throttle=function(t,e,r){var i=!0,o=!0;if("function"!=typeof t)throw new Mt(n);return Qa(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),Ca(t,e,{leading:i,maxWait:e,trailing:o})},Br.thru=pa,Br.toArray=fc,Br.toPairs=Lc,Br.toPairsIn=Bc,Br.toPath=function(t){return Va(t)?Ee(t,Ro):cc(t)?[t]:Mi(No(gc(t)))},Br.toPlainObject=yc,Br.transform=function(t,e,r){var n=Va(t),i=n||qa(t)||lc(t);if(e=co(e,4),null==r){var o=t&&t.constructor;r=i?n?new o:[]:Qa(t)&&Xa(o)?zr(Wt(t)):{}}return(i?je:bn)(t,(function(t,n,i){return e(r,t,n,i)})),r},Br.unary=function(t){return Pa(t,1)},Br.union=ta,Br.unionBy=ea,Br.unionWith=ra,Br.uniq=function(t){return t&&t.length?ui(t):[]},Br.uniqBy=function(t,e){return t&&t.length?ui(t,co(e,2)):[]},Br.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?ui(t,r,e):[]},Br.unset=function(t,e){return null==t||si(t,e)},Br.unzip=na,Br.unzipWith=ia,Br.update=function(t,e,r){return null==t?t:fi(t,e,gi(r))},Br.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:fi(t,e,gi(n),i)},Br.values=zc,Br.valuesIn=function(t){return null==t?[]:Xe(t,Ec(t))},Br.without=oa,Br.words=Xc,Br.wrap=function(t,e){return Ra(gi(e),t)},Br.xor=aa,Br.xorBy=ca,Br.xorWith=la,Br.zip=ua,Br.zipObject=function(t,e){return vi(t||[],e||[],Qr)},Br.zipObjectDeep=function(t,e){return vi(t||[],e||[],Jn)},Br.zipWith=sa,Br.entries=Lc,Br.entriesIn=Bc,Br.extend=bc,Br.extendWith=wc,al(Br,Br),Br.add=gl,Br.attempt=Kc,Br.camelCase=$c,Br.capitalize=Hc,Br.ceil=ml,Br.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=vc(n))==n?n:0),e!==r&&(e=(e=vc(e))==e?e:0),an(vc(t),e,n)},Br.clone=function(t){return cn(t,4)},Br.cloneDeep=function(t){return cn(t,5)},Br.cloneDeepWith=function(t,e){return cn(t,5,e="function"==typeof e?e:r)},Br.cloneWith=function(t,e){return cn(t,4,e="function"==typeof e?e:r)},Br.conformsTo=function(t,e){return null==e||ln(t,e,Cc(e))},Br.deburr=Fc,Br.defaultTo=function(t,e){return null==t||t!=t?e:t},Br.divide=bl,Br.endsWith=function(t,e,n){t=gc(t),e=li(e);var i=t.length,o=n=n===r?i:an(dc(n),0,i);return(n-=e.length)>=0&&t.slice(n,o)==e},Br.eq=za,Br.escape=function(t){return(t=gc(t))&&q.test(t)?t.replace(W,er):t},Br.escapeRegExp=function(t){return(t=gc(t))&&et.test(t)?t.replace(tt,"\\$&"):t},Br.every=function(t,e,n){var i=Va(t)?Ae:dn;return n&&bo(t,e,n)&&(e=r),i(t,co(e,3))},Br.find=va,Br.findIndex=Fo,Br.findKey=function(t,e){return Le(t,co(e,3),bn)},Br.findLast=ya,Br.findLastIndex=Vo,Br.findLastKey=function(t,e){return Le(t,co(e,3),wn)},Br.floor=wl,Br.forEach=ga,Br.forEachRight=ma,Br.forIn=function(t,e){return null==t?t:gn(t,co(e,3),Ec)},Br.forInRight=function(t,e){return null==t?t:mn(t,co(e,3),Ec)},Br.forOwn=function(t,e){return t&&bn(t,co(e,3))},Br.forOwnRight=function(t,e){return t&&wn(t,co(e,3))},Br.get=jc,Br.gt=$a,Br.gte=Ha,Br.has=function(t,e){return null!=t&&vo(t,e,Pn)},Br.hasIn=Pc,Br.head=Wo,Br.identity=rl,Br.includes=function(t,e,r,n){t=Wa(t)?t:zc(t),r=r&&!n?dc(r):0;var i=t.length;return r<0&&(r=yr(i+r,0)),ac(t)?r<=i&&t.indexOf(e,r)>-1:!!i&&ze(t,e,r)>-1},Br.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var i=null==r?0:dc(r);return i<0&&(i=yr(n+i,0)),ze(t,e,i)},Br.inRange=function(t,e,n){return e=pc(e),n===r?(n=e,e=0):n=pc(n),function(t,e,r){return t>=gr(e,r)&&t<yr(e,r)}(t=vc(t),e,n)},Br.invoke=kc,Br.isArguments=Fa,Br.isArray=Va,Br.isArrayBuffer=Ua,Br.isArrayLike=Wa,Br.isArrayLikeObject=Za,Br.isBoolean=function(t){return!0===t||!1===t||tc(t)&&_n(t)==y},Br.isBuffer=qa,Br.isDate=Ya,Br.isElement=function(t){return tc(t)&&1===t.nodeType&&!nc(t)},Br.isEmpty=function(t){if(null==t)return!0;if(Wa(t)&&(Va(t)||"string"==typeof t||"function"==typeof t.splice||qa(t)||lc(t)||Fa(t)))return!t.length;var e=ho(t);if(e==x||e==P)return!t.size;if(So(t))return!Nn(t).length;for(var r in t)if(It.call(t,r))return!1;return!0},Br.isEqual=function(t,e){return En(t,e)},Br.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:r)?n(t,e):r;return i===r?En(t,e,r,n):!!i},Br.isError=Ga,Br.isFinite=function(t){return"number"==typeof t&&Ue(t)},Br.isFunction=Xa,Br.isInteger=Ka,Br.isLength=Ja,Br.isMap=ec,Br.isMatch=function(t,e){return t===e||Tn(t,e,uo(e))},Br.isMatchWith=function(t,e,n){return n="function"==typeof n?n:r,Tn(t,e,uo(e),n)},Br.isNaN=function(t){return rc(t)&&t!=+t},Br.isNative=function(t){if(Oo(t))throw new Ot("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dn(t)},Br.isNil=function(t){return null==t},Br.isNull=function(t){return null===t},Br.isNumber=rc,Br.isObject=Qa,Br.isObjectLike=tc,Br.isPlainObject=nc,Br.isRegExp=ic,Br.isSafeInteger=function(t){return Ka(t)&&t>=-9007199254740991&&t<=s},Br.isSet=oc,Br.isString=ac,Br.isSymbol=cc,Br.isTypedArray=lc,Br.isUndefined=function(t){return t===r},Br.isWeakMap=function(t){return tc(t)&&ho(t)==k},Br.isWeakSet=function(t){return tc(t)&&"[object WeakSet]"==_n(t)},Br.join=function(t,e){return null==t?"":hr.call(t,e)},Br.kebabCase=Vc,Br.last=Go,Br.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=dc(n))<0?yr(i+o,0):gr(o,i-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,o):Be(t,He,o,!0)},Br.lowerCase=Uc,Br.lowerFirst=Wc,Br.lt=uc,Br.lte=sc,Br.max=function(t){return t&&t.length?hn(t,rl,jn):r},Br.maxBy=function(t,e){return t&&t.length?hn(t,co(e,2),jn):r},Br.mean=function(t){return Fe(t,rl)},Br.meanBy=function(t,e){return Fe(t,co(e,2))},Br.min=function(t){return t&&t.length?hn(t,rl,Ln):r},Br.minBy=function(t,e){return t&&t.length?hn(t,co(e,2),Ln):r},Br.stubArray=hl,Br.stubFalse=vl,Br.stubObject=function(){return{}},Br.stubString=function(){return""},Br.stubTrue=function(){return!0},Br.multiply=xl,Br.nth=function(t,e){return t&&t.length?Fn(t,dc(e)):r},Br.noConflict=function(){return fe._===this&&(fe._=zt),this},Br.noop=cl,Br.now=ja,Br.pad=function(t,e,r){t=gc(t);var n=(e=dc(e))?ur(t):0;if(!e||n>=e)return t;var i=(e-n)/2;return Vi(ve(i),r)+t+Vi(de(i),r)},Br.padEnd=function(t,e,r){t=gc(t);var n=(e=dc(e))?ur(t):0;return e&&n<e?t+Vi(e-n,r):t},Br.padStart=function(t,e,r){t=gc(t);var n=(e=dc(e))?ur(t):0;return e&&n<e?Vi(e-n,r)+t:t},Br.parseInt=function(t,e,r){return r||null==e?e=0:e&&(e=+e),br(gc(t).replace(rt,""),e||0)},Br.random=function(t,e,n){if(n&&"boolean"!=typeof n&&bo(t,e,n)&&(e=n=r),n===r&&("boolean"==typeof e?(n=e,e=r):"boolean"==typeof t&&(n=t,t=r)),t===r&&e===r?(t=0,e=1):(t=pc(t),e===r?(e=t,t=0):e=pc(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var o=wr();return gr(t+o*(e-t+ce("1e-"+((o+"").length-1))),e)}return qn(t,e)},Br.reduce=function(t,e,r){var n=Va(t)?De:We,i=arguments.length<3;return n(t,co(e,4),r,i,fn)},Br.reduceRight=function(t,e,r){var n=Va(t)?Ie:We,i=arguments.length<3;return n(t,co(e,4),r,i,pn)},Br.repeat=function(t,e,n){return e=(n?bo(t,e,n):e===r)?1:dc(e),Yn(gc(t),e)},Br.replace=function(){var t=arguments,e=gc(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Br.result=function(t,e,n){var i=-1,o=(e=mi(e,t)).length;for(o||(o=1,t=r);++i<o;){var a=null==t?r:t[Ro(e[i])];a===r&&(i=o,a=n),t=Xa(a)?a.call(t):a}return t},Br.round=Ol,Br.runInContext=t,Br.sample=function(t){return(Va(t)?Gr:Xn)(t)},Br.size=function(t){if(null==t)return 0;if(Wa(t))return ac(t)?ur(t):t.length;var e=ho(t);return e==x||e==P?t.size:Nn(t).length},Br.snakeCase=Zc,Br.some=function(t,e,n){var i=Va(t)?Ne:ni;return n&&bo(t,e,n)&&(e=r),i(t,co(e,3))},Br.sortedIndex=function(t,e){return ii(t,e)},Br.sortedIndexBy=function(t,e,r){return oi(t,e,co(r,2))},Br.sortedIndexOf=function(t,e){var r=null==t?0:t.length;if(r){var n=ii(t,e);if(n<r&&za(t[n],e))return n}return-1},Br.sortedLastIndex=function(t,e){return ii(t,e,!0)},Br.sortedLastIndexBy=function(t,e,r){return oi(t,e,co(r,2),!0)},Br.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var r=ii(t,e,!0)-1;if(za(t[r],e))return r}return-1},Br.startCase=qc,Br.startsWith=function(t,e,r){return t=gc(t),r=null==r?0:an(dc(r),0,t.length),e=li(e),t.slice(r,r+e.length)==e},Br.subtract=Sl,Br.sum=function(t){return t&&t.length?Ze(t,rl):0},Br.sumBy=function(t,e){return t&&t.length?Ze(t,co(e,2)):0},Br.template=function(t,e,n){var i=Br.templateSettings;n&&bo(t,e,n)&&(e=r),t=gc(t),e=wc({},e,i,Ki);var o,a,c=wc({},e.imports,i.imports,Ki),l=Cc(c),u=Xe(c,l),s=0,f=e.interpolate||mt,p="__p += '",d=Pt((e.escape||mt).source+"|"+f.source+"|"+(f===X?st:mt).source+"|"+(e.evaluate||mt).source+"|$","g"),h="//# sourceURL="+(It.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ne+"]")+"\n";t.replace(d,(function(e,r,n,i,c,l){return n||(n=i),p+=t.slice(s,l).replace(bt,rr),r&&(o=!0,p+="' +\n__e("+r+") +\n'"),c&&(a=!0,p+="';\n"+c+";\n__p += '"),n&&(p+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),s=l+e.length,e})),p+="';\n";var v=It.call(e,"variable")&&e.variable;if(v){if(lt.test(v))throw new Ot("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(a?p.replace(H,""):p).replace(F,"$1").replace(V,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Kc((function(){return St(l,h+"return "+p).apply(r,u)}));if(y.source=p,Ga(y))throw y;return y},Br.times=function(t,e){if((t=dc(t))<1||t>s)return[];var r=p,n=gr(t,p);e=co(e),t-=p;for(var i=qe(n,e);++r<t;)e(r);return i},Br.toFinite=pc,Br.toInteger=dc,Br.toLength=hc,Br.toLower=function(t){return gc(t).toLowerCase()},Br.toNumber=vc,Br.toSafeInteger=function(t){return t?an(dc(t),-9007199254740991,s):0===t?t:0},Br.toString=gc,Br.toUpper=function(t){return gc(t).toUpperCase()},Br.trim=function(t,e,n){if((t=gc(t))&&(n||e===r))return Ye(t);if(!t||!(e=li(e)))return t;var i=sr(t),o=sr(e);return wi(i,Je(i,o),Qe(i,o)+1).join("")},Br.trimEnd=function(t,e,n){if((t=gc(t))&&(n||e===r))return t.slice(0,fr(t)+1);if(!t||!(e=li(e)))return t;var i=sr(t);return wi(i,0,Qe(i,sr(e))+1).join("")},Br.trimStart=function(t,e,n){if((t=gc(t))&&(n||e===r))return t.replace(rt,"");if(!t||!(e=li(e)))return t;var i=sr(t);return wi(i,Je(i,sr(e))).join("")},Br.truncate=function(t,e){var n=30,i="...";if(Qa(e)){var o="separator"in e?e.separator:o;n="length"in e?dc(e.length):n,i="omission"in e?li(e.omission):i}var a=(t=gc(t)).length;if(nr(t)){var c=sr(t);a=c.length}if(n>=a)return t;var l=n-ur(i);if(l<1)return i;var u=c?wi(c,0,l).join(""):t.slice(0,l);if(o===r)return u+i;if(c&&(l+=u.length-l),ic(o)){if(t.slice(l).search(o)){var s,f=u;for(o.global||(o=Pt(o.source,gc(ft.exec(o))+"g")),o.lastIndex=0;s=o.exec(f);)var p=s.index;u=u.slice(0,p===r?l:p)}}else if(t.indexOf(li(o),l)!=l){var d=u.lastIndexOf(o);d>-1&&(u=u.slice(0,d))}return u+i},Br.unescape=function(t){return(t=gc(t))&&Z.test(t)?t.replace(U,pr):t},Br.uniqueId=function(t){var e=++Nt;return gc(t)+e},Br.upperCase=Yc,Br.upperFirst=Gc,Br.each=ga,Br.eachRight=ma,Br.first=Wo,al(Br,(yl={},bn(Br,(function(t,e){It.call(Br.prototype,e)||(yl[e]=t)})),yl),{chain:!1}),Br.VERSION="4.17.21",je(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Br[t].placeholder=Br})),je(["drop","take"],(function(t,e){Fr.prototype[t]=function(n){n=n===r?1:yr(dc(n),0);var i=this.__filtered__&&!e?new Fr(this):this.clone();return i.__filtered__?i.__takeCount__=gr(n,i.__takeCount__):i.__views__.push({size:gr(n,p),type:t+(i.__dir__<0?"Right":"")}),i},Fr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),je(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;Fr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:co(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),je(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Fr.prototype[t]=function(){return this[r](1).value()[0]}})),je(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Fr.prototype[t]=function(){return this.__filtered__?new Fr(this):this[r](1)}})),Fr.prototype.compact=function(){return this.filter(rl)},Fr.prototype.find=function(t){return this.filter(t).head()},Fr.prototype.findLast=function(t){return this.reverse().find(t)},Fr.prototype.invokeMap=Gn((function(t,e){return"function"==typeof t?new Fr(this):this.map((function(r){return kn(r,t,e)}))})),Fr.prototype.reject=function(t){return this.filter(Ia(co(t)))},Fr.prototype.slice=function(t,e){t=dc(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Fr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=dc(e))<0?n.dropRight(-e):n.take(e-t)),n)},Fr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Fr.prototype.toArray=function(){return this.take(p)},bn(Fr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=Br[i?"take"+("last"==e?"Right":""):e],a=i||/^find/.test(e);o&&(Br.prototype[e]=function(){var e=this.__wrapped__,c=i?[1]:arguments,l=e instanceof Fr,u=c[0],s=l||Va(e),f=function(t){var e=o.apply(Br,Te([t],c));return i&&p?e[0]:e};s&&n&&"function"==typeof u&&1!=u.length&&(l=s=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,v=l&&!d;if(!a&&s){e=v?e:new Fr(this);var y=t.apply(e,c);return y.__actions__.push({func:pa,args:[f],thisArg:r}),new Hr(y,p)}return h&&v?t.apply(this,c):(y=this.thru(f),h?i?y.value()[0]:y.value():y)})})),je(["pop","push","shift","sort","splice","unshift"],(function(t){var e=kt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Br.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var i=this.value();return e.apply(Va(i)?i:[],t)}return this[r]((function(r){return e.apply(Va(r)?r:[],t)}))}})),bn(Fr.prototype,(function(t,e){var r=Br[e];if(r){var n=r.name+"";It.call(kr,n)||(kr[n]=[]),kr[n].push({name:e,func:r})}})),kr[zi(r,2).name]=[{name:"wrapper",func:r}],Fr.prototype.clone=function(){var t=new Fr(this.__wrapped__);return t.__actions__=Mi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Mi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Mi(this.__views__),t},Fr.prototype.reverse=function(){if(this.__filtered__){var t=new Fr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Fr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Va(t),n=e<0,i=r?t.length:0,o=function(t,e,r){for(var n=-1,i=r.length;++n<i;){var o=r[n],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=gr(e,t+a);break;case"takeRight":t=yr(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,c=o.end,l=c-a,u=n?c:a-1,s=this.__iteratees__,f=s.length,p=0,d=gr(l,this.__takeCount__);if(!r||!n&&i==l&&d==l)return di(t,this.__actions__);var h=[];t:for(;l--&&p<d;){for(var v=-1,y=t[u+=e];++v<f;){var g=s[v],m=g.iteratee,b=g.type,w=m(y);if(2==b)y=w;else if(!w){if(1==b)continue t;break t}}h[p++]=y}return h},Br.prototype.at=da,Br.prototype.chain=function(){return fa(this)},Br.prototype.commit=function(){return new Hr(this.value(),this.__chain__)},Br.prototype.next=function(){this.__values__===r&&(this.__values__=fc(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},Br.prototype.plant=function(t){for(var e,n=this;n instanceof $r;){var i=Bo(n);i.__index__=0,i.__values__=r,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e},Br.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Fr){var e=t;return this.__actions__.length&&(e=new Fr(this)),(e=e.reverse()).__actions__.push({func:pa,args:[Qo],thisArg:r}),new Hr(e,this.__chain__)}return this.thru(Qo)},Br.prototype.toJSON=Br.prototype.valueOf=Br.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},Br.prototype.first=Br.prototype.head,Jt&&(Br.prototype[Jt]=function(){return this}),Br}();de?((de.exports=dr)._=dr,pe._=dr):fe._=dr}).call(LI)}(RI,RI.exports)),RI.exports);function zI(t){const e=vt(t);e.current=t,bt((()=>()=>{e.current()}),[])}function $I(t,e=500,r){const n=vt(null);zI((()=>{n.current&&n.current.cancel()}));const i=wt((()=>{const i=BI.debounce(t,e,r),o=(...t)=>i(...t);return o.cancel=()=>{i.cancel()},o.isPending=()=>!!n.current,o.flush=()=>i.flush(),o}),[t,e,r]);return bt((()=>{n.current=BI.debounce(t,e,r)}),[t,e,r]),i}function HI(t,e,r){const n=r?.equalityFn??((t,e)=>t===e),i=t instanceof Function?t():t,[o,a]=gt(i),c=vt(i),l=$I(a,e,r);return n(c.current,i)||(l(i),c.current=i),[o,l]}export{UT as CfAreaChart,WT as CfBreakpointDebugger,ZT as CfButtonGroup,qT as CfButtonGroupButton,YT as CfCard,GT as CfCarousel,KT as CfCheckbox,eD as CfDevConsole,QT as CfDevConsoleActions,JT as CfDevConsoleButton,tD as CfDevConsoleDataGrid,rD as CfDevConsoleFloatingButton,nD as CfDevConsoleLinks,iD as CfDevConsoleSystemStatus,oD as CfForm,bD as CfInput,vI as CfInputArray,yI as CfLineChart,gI as CfModal,mI as CfNavLink,_I as CfOpenSearchPagination,jI as CfPagination,PI as CfPrettyWrap,AI as CfSelect,kI as CfSpinner,TI as CfStatCard,CI as CfTag,EI as CfToast,DI as CfTooltip,Le as IconAave,kt as IconAlert,Be as IconAlgo,Ct as IconArrowDown,Et as IconArrowUp,ze as IconAvax,Tt as IconBank,Dt as IconBarChart,$e as IconBch,It as IconBookCheck,He as IconBtc,Nt as IconCalendar,Rt as IconCaretDown,Lt as IconCaretLeft,Bt as IconCaretRight,zt as IconCaretUp,$t as IconCent,Ht as IconCheck,Ft as IconChecking,Vt as IconCircleCheck,Ut as IconClose,Wt as IconConnect,Zt as IconCopy,qt as IconDiamonds,Fe as IconDoge,Yt as IconDollar,Gt as IconDollarBill,Ve as IconDot,Xt as IconDownload,Kt as IconEdit,Jt as IconEnter,Qt as IconEnterInverted,Ue as IconEth,te as IconExchange,Re as IconExternalLink,ee as IconFaq,We as IconFil,re as IconFilter,ne as IconGlossary,ie as IconHelp,oe as IconHistory,ae as IconHome,ce as IconIndicatorDown,le as IconIndicatorUp,ue as IconInfo,se as IconLearn,Ze as IconLink,fe as IconLock,qe as IconLtc,pe as IconMail,Ye as IconMatic,de as IconMenu,he as IconMinus,Ge as IconMkr,ve as IconMore,Xe as IconNear,ye as IconNotification,ge as IconOverview,me as IconPercent,be as IconPieChart,we as IconPlus,xe as IconRefresh,Oe as IconReports,Se as IconReservesSuccess,_e as IconReservesWarning,je as IconSearch,Pe as IconSettings,Ae as IconSettlement,Ke as IconShib,Me as IconSignIn,ke as IconSignOut,Je as IconSol,Ce as IconSort,Ee as IconSpinner,Te as IconSupport,De as IconTrash,Ie as IconUpload,Qe as IconUsdc,tr as IconUsdt,Ne as IconUser,er as IconXlm,rr as IconXrp,Sr as aggregateAmounts,$n as coreTheme,on as dateFormats,Lr as dateToTimestamp,Br as formatPercentage,Hn as formatPhoneNumber,Zr as formatUsd,qr as getDelta,Gr as isEqsSecurity,Xr as isIframe,nn as layoutMinWidth,Jr as sampleFromEnd,Qr as splitOnCapitals,tn as uiColors,rn as usdToNumber,II as useCfBreakpoint,$I as useDebounceCallback,HI as useDebounceValue,zI as useUnmount,an as utcDateToLocal};
|
|
43
43
|
//# sourceMappingURL=index.js.map
|